edge-currency-accountbased 2.2.3 → 2.2.5
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/CHANGELOG.md +14 -0
- package/android/src/main/assets/edge-currency-accountbased/1944.chunk.js +4 -0
- package/android/src/main/assets/edge-currency-accountbased/2153.chunk.js +2 -0
- package/android/src/main/assets/edge-currency-accountbased/2821.chunk.js +2 -0
- package/android/src/main/assets/edge-currency-accountbased/2896.chunk.js +35 -0
- package/android/src/main/assets/edge-currency-accountbased/2945.chunk.js +25 -0
- package/android/src/main/assets/edge-currency-accountbased/3491.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{620.chunk.js → 3620.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/{666.chunk.js → 3666.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/3720.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{978.chunk.js → 3978.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/4251.chunk.js +4 -0
- package/android/src/main/assets/edge-currency-accountbased/4431.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/4618.chunk.js +20 -0
- package/android/src/main/assets/edge-currency-accountbased/{627.chunk.js → 4627.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/4650.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{826.chunk.js → 5179.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/{835.chunk.js → 5835.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/5836.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/6266.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/6291.chunk.js +58 -0
- package/android/src/main/assets/edge-currency-accountbased/6341.chunk.js +44 -0
- package/android/src/main/assets/edge-currency-accountbased/7221.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/7428.chunk.js +6 -0
- package/android/src/main/assets/edge-currency-accountbased/{481.chunk.js → 7481.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/7542.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/7786.chunk.js +2 -0
- package/android/src/main/assets/edge-currency-accountbased/8190.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{689.chunk.js → 8689.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/{726.chunk.js → 8726.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/9068.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{223.chunk.js → 9223.chunk.js} +2 -2
- package/android/src/main/assets/edge-currency-accountbased/9539.chunk.js +10 -0
- package/android/src/main/assets/edge-currency-accountbased/{645.chunk.js → 9645.chunk.js} +6 -6
- package/android/src/main/assets/edge-currency-accountbased/9669.chunk.js +7 -0
- package/android/src/main/assets/edge-currency-accountbased/algorand.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/bnb.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/edge-currency-accountbased.js +2 -18
- package/android/src/main/assets/edge-currency-accountbased/eos.chunk.js +5 -5
- package/android/src/main/assets/edge-currency-accountbased/ethereum.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/filecoin.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/fio.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/hedera.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/polkadot.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/ripple.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/solana.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/stellar.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/tezos.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/tron.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/zcash.chunk.js +2 -2
- package/lib/ethereum/info/avalancheInfo.js +8 -0
- package/lib/ethereum/info/ethereumInfo.js +8 -0
- package/lib/filecoin/FilecoinEngine.js +112 -79
- package/lib/filecoin/Filfox.js +68 -1
- package/lib/filecoin/filecoinInfo.js +8 -3
- package/lib/filecoin/filecoinTypes.js +1 -6
- package/lib/zcash/ZcashEngine.js +11 -9
- package/package.json +1 -1
- package/android/src/main/assets/edge-currency-accountbased/124.chunk.js +0 -35
- package/android/src/main/assets/edge-currency-accountbased/17.chunk.js +0 -58
- package/android/src/main/assets/edge-currency-accountbased/190.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/221.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/298.chunk.js +0 -44
- package/android/src/main/assets/edge-currency-accountbased/431.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/491.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/539.chunk.js +0 -10
- package/android/src/main/assets/edge-currency-accountbased/542.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/618.chunk.js +0 -20
- package/android/src/main/assets/edge-currency-accountbased/650.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/68.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/720.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/786.chunk.js +0 -2
- package/android/src/main/assets/edge-currency-accountbased/836.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/935.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/944.chunk.js +0 -4
- package/android/src/main/assets/edge-currency-accountbased/945.chunk.js +0 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[666],{48794:function(G,x,C){"use strict";C.d(x,{i:function(){return H}});const H="bignumber/5.7.0"},2593:function(G,x,C){"use strict";C.d(x,{O$:function(){return z},Zm:function(){return r},g$:function(){return re},t2:function(){return X}});var H=C(13550),O=C.n(H),P=C(93286),m=C(80711),o=C(48794),h=O().BN;const f=new m.Logger(o.i),a={},t=9007199254740991;function r(j){return j!=null&&(z.isBigNumber(j)||typeof j=="number"&&j%1===0||typeof j=="string"&&!!j.match(/^-?[0-9]+$/)||(0,P.isHexString)(j)||typeof j=="bigint"||(0,P.isBytes)(j))}let c=!1;class z{constructor(J,oe){J!==a&&f.throwError("cannot call constructor directly; use BigNumber.from",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=oe,this._isBigNumber=!0,Object.freeze(this)}fromTwos(J){return L(F(this).fromTwos(J))}toTwos(J){return L(F(this).toTwos(J))}abs(){return this._hex[0]==="-"?z.from(this._hex.substring(1)):this}add(J){return L(F(this).add(F(J)))}sub(J){return L(F(this).sub(F(J)))}div(J){return z.from(J).isZero()&&fe("division-by-zero","div"),L(F(this).div(F(J)))}mul(J){return L(F(this).mul(F(J)))}mod(J){const oe=F(J);return oe.isNeg()&&fe("division-by-zero","mod"),L(F(this).umod(oe))}pow(J){const oe=F(J);return oe.isNeg()&&fe("negative-power","pow"),L(F(this).pow(oe))}and(J){const oe=F(J);return(this.isNegative()||oe.isNeg())&&fe("unbound-bitwise-result","and"),L(F(this).and(oe))}or(J){const oe=F(J);return(this.isNegative()||oe.isNeg())&&fe("unbound-bitwise-result","or"),L(F(this).or(oe))}xor(J){const oe=F(J);return(this.isNegative()||oe.isNeg())&&fe("unbound-bitwise-result","xor"),L(F(this).xor(oe))}mask(J){return(this.isNegative()||J<0)&&fe("negative-width","mask"),L(F(this).maskn(J))}shl(J){return(this.isNegative()||J<0)&&fe("negative-width","shl"),L(F(this).shln(J))}shr(J){return(this.isNegative()||J<0)&&fe("negative-width","shr"),L(F(this).shrn(J))}eq(J){return F(this).eq(F(J))}lt(J){return F(this).lt(F(J))}lte(J){return F(this).lte(F(J))}gt(J){return F(this).gt(F(J))}gte(J){return F(this).gte(F(J))}isNegative(){return this._hex[0]==="-"}isZero(){return F(this).isZero()}toNumber(){try{return F(this).toNumber()}catch{fe("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return f.throwError("this platform does not support BigInt",m.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?c||(c=!0,f.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?f.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",m.Logger.errors.UNEXPECTED_ARGUMENT,{}):f.throwError("BigNumber.toString does not accept parameters",m.Logger.errors.UNEXPECTED_ARGUMENT,{})),F(this).toString(10)}toHexString(){return this._hex}toJSON(J){return{type:"BigNumber",hex:this.toHexString()}}static from(J){if(J instanceof z)return J;if(typeof J=="string")return J.match(/^-?0x[0-9a-f]+$/i)?new z(a,K(J)):J.match(/^-?[0-9]+$/)?new z(a,K(new h(J))):f.throwArgumentError("invalid BigNumber string","value",J);if(typeof J=="number")return J%1&&fe("underflow","BigNumber.from",J),(J>=t||J<=-t)&&fe("overflow","BigNumber.from",J),z.from(String(J));const oe=J;if(typeof oe=="bigint")return z.from(oe.toString());if((0,P.isBytes)(oe))return z.from((0,P.hexlify)(oe));if(oe)if(oe.toHexString){const Ce=oe.toHexString();if(typeof Ce=="string")return z.from(Ce)}else{let Ce=oe._hex;if(Ce==null&&oe.type==="BigNumber"&&(Ce=oe.hex),typeof Ce=="string"&&((0,P.isHexString)(Ce)||Ce[0]==="-"&&(0,P.isHexString)(Ce.substring(1))))return z.from(Ce)}return f.throwArgumentError("invalid BigNumber value","value",J)}static isBigNumber(J){return!!(J&&J._isBigNumber)}}function K(j){if(typeof j!="string")return K(j.toString(16));if(j[0]==="-")return j=j.substring(1),j[0]==="-"&&f.throwArgumentError("invalid hex","value",j),j=K(j),j==="0x00"?j:"-"+j;if(j.substring(0,2)!=="0x"&&(j="0x"+j),j==="0x")return"0x00";for(j.length%2&&(j="0x0"+j.substring(2));j.length>4&&j.substring(0,4)==="0x00";)j="0x"+j.substring(4);return j}function L(j){return z.from(K(j))}function F(j){const J=z.from(j).toHexString();return J[0]==="-"?new h("-"+J.substring(3),16):new h(J.substring(2),16)}function fe(j,J,oe){const Ce={fault:j,operation:J};return oe!=null&&(Ce.value=oe),f.throwError(j,m.Logger.errors.NUMERIC_FAULT,Ce)}function re(j){return new h(j,36).toString(16)}function X(j){return new h(j,16).toString(36)}},20335:function(G,x,C){"use strict";C.d(x,{Ox:function(){return K},S5:function(){return z},xO:function(){return L},xs:function(){return F}});var H=C(93286),O=C(80711),P=C(48794),m=C(2593);const o=new O.Logger(P.i),h={},f=m.O$.from(0),a=m.O$.from(-1);function t(X,j,J,oe){const Ce={fault:j,operation:J};return oe!==void 0&&(Ce.value=oe),o.throwError(X,O.Logger.errors.NUMERIC_FAULT,Ce)}let r="0";for(;r.length<256;)r+=r;function c(X){if(typeof X!="number")try{X=m.O$.from(X).toNumber()}catch{}return typeof X=="number"&&X>=0&&X<=256&&!(X%1)?"1"+r.substring(0,X):o.throwArgumentError("invalid decimal size","decimals",X)}function z(X,j){j==null&&(j=0);const J=c(j);X=m.O$.from(X);const oe=X.lt(f);oe&&(X=X.mul(a));let Ce=X.mod(J).toString();for(;Ce.length<J.length-1;)Ce="0"+Ce;Ce=Ce.match(/^([0-9]*[1-9]|0)(0*)/)[1];const se=X.div(J).toString();return J.length===1?X=se:X=se+"."+Ce,oe&&(X="-"+X),X}function K(X,j){j==null&&(j=0);const J=c(j);(typeof X!="string"||!X.match(/^-?[0-9.]+$/))&&o.throwArgumentError("invalid decimal value","value",X);const oe=X.substring(0,1)==="-";oe&&(X=X.substring(1)),X==="."&&o.throwArgumentError("missing value","value",X);const Ce=X.split(".");Ce.length>2&&o.throwArgumentError("too many decimal points","value",X);let se=Ce[0],ne=Ce[1];for(se||(se="0"),ne||(ne="0");ne[ne.length-1]==="0";)ne=ne.substring(0,ne.length-1);for(ne.length>J.length-1&&t("fractional component exceeds decimals","underflow","parseFixed"),ne===""&&(ne="0");ne.length<J.length-1;)ne+="0";const xe=m.O$.from(se),Ue=m.O$.from(ne);let ct=xe.mul(J).add(Ue);return oe&&(ct=ct.mul(a)),ct}class L{constructor(j,J,oe,Ce){j!==h&&o.throwError("cannot use FixedFormat constructor; use FixedFormat.from",O.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=J,this.width=oe,this.decimals=Ce,this.name=(J?"":"u")+"fixed"+String(oe)+"x"+String(Ce),this._multiplier=c(Ce),Object.freeze(this)}static from(j){if(j instanceof L)return j;typeof j=="number"&&(j=`fixed128x${j}`);let J=!0,oe=128,Ce=18;if(typeof j=="string"){if(j!=="fixed")if(j==="ufixed")J=!1;else{const se=j.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);se||o.throwArgumentError("invalid fixed format","format",j),J=se[1]!=="u",oe=parseInt(se[2]),Ce=parseInt(se[3])}}else if(j){const se=(ne,xe,Ue)=>j[ne]==null?Ue:(typeof j[ne]!==xe&&o.throwArgumentError("invalid fixed format ("+ne+" not "+xe+")","format."+ne,j[ne]),j[ne]);J=se("signed","boolean",J),oe=se("width","number",oe),Ce=se("decimals","number",Ce)}return oe%8&&o.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",oe),Ce>80&&o.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",Ce),new L(h,J,oe,Ce)}}class F{constructor(j,J,oe,Ce){j!==h&&o.throwError("cannot use FixedNumber constructor; use FixedNumber.from",O.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=Ce,this._hex=J,this._value=oe,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(j){this.format.name!==j.format.name&&o.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",j)}addUnsafe(j){this._checkFormat(j);const J=K(this._value,this.format.decimals),oe=K(j._value,j.format.decimals);return F.fromValue(J.add(oe),this.format.decimals,this.format)}subUnsafe(j){this._checkFormat(j);const J=K(this._value,this.format.decimals),oe=K(j._value,j.format.decimals);return F.fromValue(J.sub(oe),this.format.decimals,this.format)}mulUnsafe(j){this._checkFormat(j);const J=K(this._value,this.format.decimals),oe=K(j._value,j.format.decimals);return F.fromValue(J.mul(oe).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(j){this._checkFormat(j);const J=K(this._value,this.format.decimals),oe=K(j._value,j.format.decimals);return F.fromValue(J.mul(this.format._multiplier).div(oe),this.format.decimals,this.format)}floor(){const j=this.toString().split(".");j.length===1&&j.push("0");let J=F.from(j[0],this.format);const oe=!j[1].match(/^(0*)$/);return this.isNegative()&&oe&&(J=J.subUnsafe(fe.toFormat(J.format))),J}ceiling(){const j=this.toString().split(".");j.length===1&&j.push("0");let J=F.from(j[0],this.format);const oe=!j[1].match(/^(0*)$/);return!this.isNegative()&&oe&&(J=J.addUnsafe(fe.toFormat(J.format))),J}round(j){j==null&&(j=0);const J=this.toString().split(".");if(J.length===1&&J.push("0"),(j<0||j>80||j%1)&&o.throwArgumentError("invalid decimal count","decimals",j),J[1].length<=j)return this;const oe=F.from("1"+r.substring(0,j),this.format),Ce=re.toFormat(this.format);return this.mulUnsafe(oe).addUnsafe(Ce).floor().divUnsafe(oe)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(j){if(j==null)return this._hex;j%8&&o.throwArgumentError("invalid byte width","width",j);const J=m.O$.from(this._hex).fromTwos(this.format.width).toTwos(j).toHexString();return(0,H.hexZeroPad)(J,j/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(j){return F.fromString(this._value,j)}static fromValue(j,J,oe){return oe==null&&J!=null&&!(0,m.Zm)(J)&&(oe=J,J=null),J==null&&(J=0),oe==null&&(oe="fixed"),F.fromString(z(j,J),L.from(oe))}static fromString(j,J){J==null&&(J="fixed");const oe=L.from(J),Ce=K(j,oe.decimals);!oe.signed&&Ce.lt(f)&&t("unsigned value cannot be negative","overflow","value",j);let se=null;oe.signed?se=Ce.toTwos(oe.width).toHexString():(se=Ce.toHexString(),se=(0,H.hexZeroPad)(se,oe.width/8));const ne=z(Ce,oe.decimals);return new F(h,se,ne,oe)}static fromBytes(j,J){J==null&&(J="fixed");const oe=L.from(J);if((0,H.arrayify)(j).length>oe.width/8)throw new Error("overflow");let Ce=m.O$.from(j);oe.signed&&(Ce=Ce.fromTwos(oe.width));const se=Ce.toTwos((oe.signed?0:1)+oe.width).toHexString(),ne=z(Ce,oe.decimals);return new F(h,se,ne,oe)}static from(j,J){if(typeof j=="string")return F.fromString(j,J);if((0,H.isBytes)(j))return F.fromBytes(j,J);try{return F.fromValue(j,0,J)}catch(oe){if(oe.code!==O.Logger.errors.INVALID_ARGUMENT)throw oe}return o.throwArgumentError("invalid FixedNumber value","value",j)}static isFixedNumber(j){return!!(j&&j._isFixedNumber)}}const fe=F.from(1),re=F.from("0.5")},833:function(G,x,C){"use strict";C.r(x),C.d(x,{BigNumber:function(){return H.O$},FixedFormat:function(){return O.xO},FixedNumber:function(){return O.xs},_base16To36:function(){return H.t2},_base36To16:function(){return H.g$},formatFixed:function(){return O.S5},parseFixed:function(){return O.Ox}});var H=C(2593),O=C(20335)},93286:function(G,x,C){"use strict";C.r(x),C.d(x,{arrayify:function(){return t},concat:function(){return r},hexConcat:function(){return X},hexDataLength:function(){return fe},hexDataSlice:function(){return re},hexStripZeros:function(){return J},hexValue:function(){return j},hexZeroPad:function(){return oe},hexlify:function(){return F},isBytes:function(){return a},isBytesLike:function(){return h},isHexString:function(){return K},joinSignature:function(){return se},splitSignature:function(){return Ce},stripZeros:function(){return c},zeroPad:function(){return z}});var H=C(80711);const O="bytes/5.7.0",P=new H.Logger(O);function m(ne){return!!ne.toHexString}function o(ne){return ne.slice||(ne.slice=function(){const xe=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(ne,xe)))}),ne}function h(ne){return K(ne)&&!(ne.length%2)||a(ne)}function f(ne){return typeof ne=="number"&&ne==ne&&ne%1===0}function a(ne){if(ne==null)return!1;if(ne.constructor===Uint8Array)return!0;if(typeof ne=="string"||!f(ne.length)||ne.length<0)return!1;for(let xe=0;xe<ne.length;xe++){const Ue=ne[xe];if(!f(Ue)||Ue<0||Ue>=256)return!1}return!0}function t(ne,xe){if(xe||(xe={}),typeof ne=="number"){P.checkSafeUint53(ne,"invalid arrayify value");const Ue=[];for(;ne;)Ue.unshift(ne&255),ne=parseInt(String(ne/256));return Ue.length===0&&Ue.push(0),o(new Uint8Array(Ue))}if(xe.allowMissingPrefix&&typeof ne=="string"&&ne.substring(0,2)!=="0x"&&(ne="0x"+ne),m(ne)&&(ne=ne.toHexString()),K(ne)){let Ue=ne.substring(2);Ue.length%2&&(xe.hexPad==="left"?Ue="0"+Ue:xe.hexPad==="right"?Ue+="0":P.throwArgumentError("hex data is odd-length","value",ne));const ct=[];for(let ft=0;ft<Ue.length;ft+=2)ct.push(parseInt(Ue.substring(ft,ft+2),16));return o(new Uint8Array(ct))}return a(ne)?o(new Uint8Array(ne)):P.throwArgumentError("invalid arrayify value","value",ne)}function r(ne){const xe=ne.map(ft=>t(ft)),Ue=xe.reduce((ft,Je)=>ft+Je.length,0),ct=new Uint8Array(Ue);return xe.reduce((ft,Je)=>(ct.set(Je,ft),ft+Je.length),0),o(ct)}function c(ne){let xe=t(ne);if(xe.length===0)return xe;let Ue=0;for(;Ue<xe.length&&xe[Ue]===0;)Ue++;return Ue&&(xe=xe.slice(Ue)),xe}function z(ne,xe){ne=t(ne),ne.length>xe&&P.throwArgumentError("value out of range","value",arguments[0]);const Ue=new Uint8Array(xe);return Ue.set(ne,xe-ne.length),o(Ue)}function K(ne,xe){return!(typeof ne!="string"||!ne.match(/^0x[0-9A-Fa-f]*$/)||xe&&ne.length!==2+2*xe)}const L="0123456789abcdef";function F(ne,xe){if(xe||(xe={}),typeof ne=="number"){P.checkSafeUint53(ne,"invalid hexlify value");let Ue="";for(;ne;)Ue=L[ne&15]+Ue,ne=Math.floor(ne/16);return Ue.length?(Ue.length%2&&(Ue="0"+Ue),"0x"+Ue):"0x00"}if(typeof ne=="bigint")return ne=ne.toString(16),ne.length%2?"0x0"+ne:"0x"+ne;if(xe.allowMissingPrefix&&typeof ne=="string"&&ne.substring(0,2)!=="0x"&&(ne="0x"+ne),m(ne))return ne.toHexString();if(K(ne))return ne.length%2&&(xe.hexPad==="left"?ne="0x0"+ne.substring(2):xe.hexPad==="right"?ne+="0":P.throwArgumentError("hex data is odd-length","value",ne)),ne.toLowerCase();if(a(ne)){let Ue="0x";for(let ct=0;ct<ne.length;ct++){let ft=ne[ct];Ue+=L[(ft&240)>>4]+L[ft&15]}return Ue}return P.throwArgumentError("invalid hexlify value","value",ne)}function fe(ne){if(typeof ne!="string")ne=F(ne);else if(!K(ne)||ne.length%2)return null;return(ne.length-2)/2}function re(ne,xe,Ue){return typeof ne!="string"?ne=F(ne):(!K(ne)||ne.length%2)&&P.throwArgumentError("invalid hexData","value",ne),xe=2+2*xe,Ue!=null?"0x"+ne.substring(xe,2+2*Ue):"0x"+ne.substring(xe)}function X(ne){let xe="0x";return ne.forEach(Ue=>{xe+=F(Ue).substring(2)}),xe}function j(ne){const xe=J(F(ne,{hexPad:"left"}));return xe==="0x"?"0x0":xe}function J(ne){typeof ne!="string"&&(ne=F(ne)),K(ne)||P.throwArgumentError("invalid hex string","value",ne),ne=ne.substring(2);let xe=0;for(;xe<ne.length&&ne[xe]==="0";)xe++;return"0x"+ne.substring(xe)}function oe(ne,xe){for(typeof ne!="string"?ne=F(ne):K(ne)||P.throwArgumentError("invalid hex string","value",ne),ne.length>2*xe+2&&P.throwArgumentError("value out of range","value",arguments[1]);ne.length<2*xe+2;)ne="0x0"+ne.substring(2);return ne}function Ce(ne){const xe={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(h(ne)){let Ue=t(ne);Ue.length===64?(xe.v=27+(Ue[32]>>7),Ue[32]&=127,xe.r=F(Ue.slice(0,32)),xe.s=F(Ue.slice(32,64))):Ue.length===65?(xe.r=F(Ue.slice(0,32)),xe.s=F(Ue.slice(32,64)),xe.v=Ue[64]):P.throwArgumentError("invalid signature string","signature",ne),xe.v<27&&(xe.v===0||xe.v===1?xe.v+=27:P.throwArgumentError("signature invalid v byte","signature",ne)),xe.recoveryParam=1-xe.v%2,xe.recoveryParam&&(Ue[32]|=128),xe._vs=F(Ue.slice(32,64))}else{if(xe.r=ne.r,xe.s=ne.s,xe.v=ne.v,xe.recoveryParam=ne.recoveryParam,xe._vs=ne._vs,xe._vs!=null){const ft=z(t(xe._vs),32);xe._vs=F(ft);const Je=ft[0]>=128?1:0;xe.recoveryParam==null?xe.recoveryParam=Je:xe.recoveryParam!==Je&&P.throwArgumentError("signature recoveryParam mismatch _vs","signature",ne),ft[0]&=127;const Ot=F(ft);xe.s==null?xe.s=Ot:xe.s!==Ot&&P.throwArgumentError("signature v mismatch _vs","signature",ne)}if(xe.recoveryParam==null)xe.v==null?P.throwArgumentError("signature missing v and recoveryParam","signature",ne):xe.v===0||xe.v===1?xe.recoveryParam=xe.v:xe.recoveryParam=1-xe.v%2;else if(xe.v==null)xe.v=27+xe.recoveryParam;else{const ft=xe.v===0||xe.v===1?xe.v:1-xe.v%2;xe.recoveryParam!==ft&&P.throwArgumentError("signature recoveryParam mismatch v","signature",ne)}xe.r==null||!K(xe.r)?P.throwArgumentError("signature missing or invalid r","signature",ne):xe.r=oe(xe.r,32),xe.s==null||!K(xe.s)?P.throwArgumentError("signature missing or invalid s","signature",ne):xe.s=oe(xe.s,32);const Ue=t(xe.s);Ue[0]>=128&&P.throwArgumentError("signature s out of range","signature",ne),xe.recoveryParam&&(Ue[0]|=128);const ct=F(Ue);xe._vs&&(K(xe._vs)||P.throwArgumentError("signature invalid _vs","signature",ne),xe._vs=oe(xe._vs,32)),xe._vs==null?xe._vs=ct:xe._vs!==ct&&P.throwArgumentError("signature _vs mismatch v and s","signature",ne)}return xe.yParityAndS=xe._vs,xe.compact=xe.r+xe.yParityAndS.substring(2),xe}function se(ne){return ne=Ce(ne),F(r([ne.r,ne.s,ne.recoveryParam?"0x1c":"0x1b"]))}},57218:function(G,x,C){"use strict";C.d(x,{R:function(){return H}});const H="0x0000000000000000000000000000000000000000000000000000000000000000"},48709:function(G){"use strict";(function(x){function C(Ee){return parseInt(Ee)===Ee}function H(Ee){if(!C(Ee.length))return!1;for(var Oe=0;Oe<Ee.length;Oe++)if(!C(Ee[Oe])||Ee[Oe]<0||Ee[Oe]>255)return!1;return!0}function O(Ee,Oe){if(Ee.buffer&&ArrayBuffer.isView(Ee)&&Ee.name==="Uint8Array")return Oe&&(Ee.slice?Ee=Ee.slice():Ee=Array.prototype.slice.call(Ee)),Ee;if(Array.isArray(Ee)){if(!H(Ee))throw new Error("Array contains invalid value: "+Ee);return new Uint8Array(Ee)}if(C(Ee.length)&&H(Ee))return new Uint8Array(Ee);throw new Error("unsupported array-like object")}function P(Ee){return new Uint8Array(Ee)}function m(Ee,Oe,Ke,_e,ke){(_e!=null||ke!=null)&&(Ee.slice?Ee=Ee.slice(_e,ke):Ee=Array.prototype.slice.call(Ee,_e,ke)),Oe.set(Ee,Ke)}var o=function(){function Ee(Ke){var _e=[],ke=0;for(Ke=encodeURI(Ke);ke<Ke.length;){var dt=Ke.charCodeAt(ke++);dt===37?(_e.push(parseInt(Ke.substr(ke,2),16)),ke+=2):_e.push(dt)}return O(_e)}function Oe(Ke){for(var _e=[],ke=0;ke<Ke.length;){var dt=Ke[ke];dt<128?(_e.push(String.fromCharCode(dt)),ke++):dt>191&&dt<224?(_e.push(String.fromCharCode((dt&31)<<6|Ke[ke+1]&63)),ke+=2):(_e.push(String.fromCharCode((dt&15)<<12|(Ke[ke+1]&63)<<6|Ke[ke+2]&63)),ke+=3)}return _e.join("")}return{toBytes:Ee,fromBytes:Oe}}(),h=function(){function Ee(_e){for(var ke=[],dt=0;dt<_e.length;dt+=2)ke.push(parseInt(_e.substr(dt,2),16));return ke}var Oe="0123456789abcdef";function Ke(_e){for(var ke=[],dt=0;dt<_e.length;dt++){var nt=_e[dt];ke.push(Oe[(nt&240)>>4]+Oe[nt&15])}return ke.join("")}return{toBytes:Ee,fromBytes:Ke}}(),f={16:10,24:12,32:14},a=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],t=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],r=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],c=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],z=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],K=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],L=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],F=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],fe=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],re=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],X=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],j=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],J=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],oe=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],Ce=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function se(Ee){for(var Oe=[],Ke=0;Ke<Ee.length;Ke+=4)Oe.push(Ee[Ke]<<24|Ee[Ke+1]<<16|Ee[Ke+2]<<8|Ee[Ke+3]);return Oe}var ne=function(Ee){if(!(this instanceof ne))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:O(Ee,!0)}),this._prepare()};ne.prototype._prepare=function(){var Ee=f[this.key.length];if(Ee==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var Oe=0;Oe<=Ee;Oe++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var Ke=(Ee+1)*4,_e=this.key.length/4,ke=se(this.key),dt,Oe=0;Oe<_e;Oe++)dt=Oe>>2,this._Ke[dt][Oe%4]=ke[Oe],this._Kd[Ee-dt][Oe%4]=ke[Oe];for(var nt=0,vt=_e,Et;vt<Ke;){if(Et=ke[_e-1],ke[0]^=t[Et>>16&255]<<24^t[Et>>8&255]<<16^t[Et&255]<<8^t[Et>>24&255]^a[nt]<<24,nt+=1,_e!=8)for(var Oe=1;Oe<_e;Oe++)ke[Oe]^=ke[Oe-1];else{for(var Oe=1;Oe<_e/2;Oe++)ke[Oe]^=ke[Oe-1];Et=ke[_e/2-1],ke[_e/2]^=t[Et&255]^t[Et>>8&255]<<8^t[Et>>16&255]<<16^t[Et>>24&255]<<24;for(var Oe=_e/2+1;Oe<_e;Oe++)ke[Oe]^=ke[Oe-1]}for(var Oe=0,xt,ut;Oe<_e&&vt<Ke;)xt=vt>>2,ut=vt%4,this._Ke[xt][ut]=ke[Oe],this._Kd[Ee-xt][ut]=ke[Oe++],vt++}for(var xt=1;xt<Ee;xt++)for(var ut=0;ut<4;ut++)Et=this._Kd[xt][ut],this._Kd[xt][ut]=j[Et>>24&255]^J[Et>>16&255]^oe[Et>>8&255]^Ce[Et&255]},ne.prototype.encrypt=function(Ee){if(Ee.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var Oe=this._Ke.length-1,Ke=[0,0,0,0],_e=se(Ee),ke=0;ke<4;ke++)_e[ke]^=this._Ke[0][ke];for(var dt=1;dt<Oe;dt++){for(var ke=0;ke<4;ke++)Ke[ke]=c[_e[ke]>>24&255]^z[_e[(ke+1)%4]>>16&255]^K[_e[(ke+2)%4]>>8&255]^L[_e[(ke+3)%4]&255]^this._Ke[dt][ke];_e=Ke.slice()}for(var nt=P(16),vt,ke=0;ke<4;ke++)vt=this._Ke[Oe][ke],nt[4*ke]=(t[_e[ke]>>24&255]^vt>>24)&255,nt[4*ke+1]=(t[_e[(ke+1)%4]>>16&255]^vt>>16)&255,nt[4*ke+2]=(t[_e[(ke+2)%4]>>8&255]^vt>>8)&255,nt[4*ke+3]=(t[_e[(ke+3)%4]&255]^vt)&255;return nt},ne.prototype.decrypt=function(Ee){if(Ee.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var Oe=this._Kd.length-1,Ke=[0,0,0,0],_e=se(Ee),ke=0;ke<4;ke++)_e[ke]^=this._Kd[0][ke];for(var dt=1;dt<Oe;dt++){for(var ke=0;ke<4;ke++)Ke[ke]=F[_e[ke]>>24&255]^fe[_e[(ke+3)%4]>>16&255]^re[_e[(ke+2)%4]>>8&255]^X[_e[(ke+1)%4]&255]^this._Kd[dt][ke];_e=Ke.slice()}for(var nt=P(16),vt,ke=0;ke<4;ke++)vt=this._Kd[Oe][ke],nt[4*ke]=(r[_e[ke]>>24&255]^vt>>24)&255,nt[4*ke+1]=(r[_e[(ke+3)%4]>>16&255]^vt>>16)&255,nt[4*ke+2]=(r[_e[(ke+2)%4]>>8&255]^vt>>8)&255,nt[4*ke+3]=(r[_e[(ke+1)%4]&255]^vt)&255;return nt};var xe=function(Ee){if(!(this instanceof xe))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new ne(Ee)};xe.prototype.encrypt=function(Ee){if(Ee=O(Ee),Ee.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var Oe=P(Ee.length),Ke=P(16),_e=0;_e<Ee.length;_e+=16)m(Ee,Ke,0,_e,_e+16),Ke=this._aes.encrypt(Ke),m(Ke,Oe,_e);return Oe},xe.prototype.decrypt=function(Ee){if(Ee=O(Ee),Ee.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var Oe=P(Ee.length),Ke=P(16),_e=0;_e<Ee.length;_e+=16)m(Ee,Ke,0,_e,_e+16),Ke=this._aes.decrypt(Ke),m(Ke,Oe,_e);return Oe};var Ue=function(Ee,Oe){if(!(this instanceof Ue))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!Oe)Oe=P(16);else if(Oe.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=O(Oe,!0),this._aes=new ne(Ee)};Ue.prototype.encrypt=function(Ee){if(Ee=O(Ee),Ee.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var Oe=P(Ee.length),Ke=P(16),_e=0;_e<Ee.length;_e+=16){m(Ee,Ke,0,_e,_e+16);for(var ke=0;ke<16;ke++)Ke[ke]^=this._lastCipherblock[ke];this._lastCipherblock=this._aes.encrypt(Ke),m(this._lastCipherblock,Oe,_e)}return Oe},Ue.prototype.decrypt=function(Ee){if(Ee=O(Ee),Ee.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var Oe=P(Ee.length),Ke=P(16),_e=0;_e<Ee.length;_e+=16){m(Ee,Ke,0,_e,_e+16),Ke=this._aes.decrypt(Ke);for(var ke=0;ke<16;ke++)Oe[_e+ke]=Ke[ke]^this._lastCipherblock[ke];m(Ee,this._lastCipherblock,0,_e,_e+16)}return Oe};var ct=function(Ee,Oe,Ke){if(!(this instanceof ct))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!Oe)Oe=P(16);else if(Oe.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");Ke||(Ke=1),this.segmentSize=Ke,this._shiftRegister=O(Oe,!0),this._aes=new ne(Ee)};ct.prototype.encrypt=function(Ee){if(Ee.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var Oe=O(Ee,!0),Ke,_e=0;_e<Oe.length;_e+=this.segmentSize){Ke=this._aes.encrypt(this._shiftRegister);for(var ke=0;ke<this.segmentSize;ke++)Oe[_e+ke]^=Ke[ke];m(this._shiftRegister,this._shiftRegister,0,this.segmentSize),m(Oe,this._shiftRegister,16-this.segmentSize,_e,_e+this.segmentSize)}return Oe},ct.prototype.decrypt=function(Ee){if(Ee.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var Oe=O(Ee,!0),Ke,_e=0;_e<Oe.length;_e+=this.segmentSize){Ke=this._aes.encrypt(this._shiftRegister);for(var ke=0;ke<this.segmentSize;ke++)Oe[_e+ke]^=Ke[ke];m(this._shiftRegister,this._shiftRegister,0,this.segmentSize),m(Ee,this._shiftRegister,16-this.segmentSize,_e,_e+this.segmentSize)}return Oe};var ft=function(Ee,Oe){if(!(this instanceof ft))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!Oe)Oe=P(16);else if(Oe.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=O(Oe,!0),this._lastPrecipherIndex=16,this._aes=new ne(Ee)};ft.prototype.encrypt=function(Ee){for(var Oe=O(Ee,!0),Ke=0;Ke<Oe.length;Ke++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),Oe[Ke]^=this._lastPrecipher[this._lastPrecipherIndex++];return Oe},ft.prototype.decrypt=ft.prototype.encrypt;var Je=function(Ee){if(!(this instanceof Je))throw Error("Counter must be instanitated with `new`");Ee!==0&&!Ee&&(Ee=1),typeof Ee=="number"?(this._counter=P(16),this.setValue(Ee)):this.setBytes(Ee)};Je.prototype.setValue=function(Ee){if(typeof Ee!="number"||parseInt(Ee)!=Ee)throw new Error("invalid counter value (must be an integer)");for(var Oe=15;Oe>=0;--Oe)this._counter[Oe]=Ee%256,Ee=Ee>>8},Je.prototype.setBytes=function(Ee){if(Ee=O(Ee,!0),Ee.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=Ee},Je.prototype.increment=function(){for(var Ee=15;Ee>=0;Ee--)if(this._counter[Ee]===255)this._counter[Ee]=0;else{this._counter[Ee]++;break}};var Ot=function(Ee,Oe){if(!(this instanceof Ot))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",Oe instanceof Je||(Oe=new Je(Oe)),this._counter=Oe,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new ne(Ee)};Ot.prototype.encrypt=function(Ee){for(var Oe=O(Ee,!0),Ke=0;Ke<Oe.length;Ke++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),Oe[Ke]^=this._remainingCounter[this._remainingCounterIndex++];return Oe},Ot.prototype.decrypt=Ot.prototype.encrypt;function Tt(Ee){Ee=O(Ee,!0);var Oe=16-Ee.length%16,Ke=P(Ee.length+Oe);m(Ee,Ke);for(var _e=Ee.length;_e<Ke.length;_e++)Ke[_e]=Oe;return Ke}function Ft(Ee){if(Ee=O(Ee,!0),Ee.length<16)throw new Error("PKCS#7 invalid length");var Oe=Ee[Ee.length-1];if(Oe>16)throw new Error("PKCS#7 padding byte out of range");for(var Ke=Ee.length-Oe,_e=0;_e<Oe;_e++)if(Ee[Ke+_e]!==Oe)throw new Error("PKCS#7 invalid padding byte");var ke=P(Ke);return m(Ee,ke,0,0,Ke),ke}var Ne={AES:ne,Counter:Je,ModeOfOperation:{ecb:xe,cbc:Ue,cfb:ct,ofb:ft,ctr:Ot},utils:{hex:h,utf8:o},padding:{pkcs7:{pad:Tt,strip:Ft}},_arrayTest:{coerceArray:O,createArray:P,copyArray:m}};G.exports=Ne})(this)},38197:function(G,x,C){"use strict";C.r(x),C.d(x,{keccak256:function(){return m}});var H=C(91094),O=C.n(H),P=C(93286);function m(o){return"0x"+O().keccak_256((0,P.arrayify)(o))}},80711:function(G,x,C){"use strict";C.r(x),C.d(x,{ErrorCode:function(){return r},LogLevel:function(){return t},Logger:function(){return z}});const H="logger/5.7.0";let O=!1,P=!1;const m={debug:1,default:2,info:2,warning:3,error:4,off:5};let o=m.default,h=null;function f(){try{const K=[];if(["NFD","NFC","NFKD","NFKC"].forEach(L=>{try{if("test".normalize(L)!=="test")throw new Error("bad normalize")}catch{K.push(L)}}),K.length)throw new Error("missing "+K.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(K){return K.message}return null}const a=f();var t;(function(K){K.DEBUG="DEBUG",K.INFO="INFO",K.WARNING="WARNING",K.ERROR="ERROR",K.OFF="OFF"})(t||(t={}));var r;(function(K){K.UNKNOWN_ERROR="UNKNOWN_ERROR",K.NOT_IMPLEMENTED="NOT_IMPLEMENTED",K.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",K.NETWORK_ERROR="NETWORK_ERROR",K.SERVER_ERROR="SERVER_ERROR",K.TIMEOUT="TIMEOUT",K.BUFFER_OVERRUN="BUFFER_OVERRUN",K.NUMERIC_FAULT="NUMERIC_FAULT",K.MISSING_NEW="MISSING_NEW",K.INVALID_ARGUMENT="INVALID_ARGUMENT",K.MISSING_ARGUMENT="MISSING_ARGUMENT",K.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",K.CALL_EXCEPTION="CALL_EXCEPTION",K.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",K.NONCE_EXPIRED="NONCE_EXPIRED",K.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",K.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",K.TRANSACTION_REPLACED="TRANSACTION_REPLACED",K.ACTION_REJECTED="ACTION_REJECTED"})(r||(r={}));const c="0123456789abcdef";class z{constructor(L){Object.defineProperty(this,"version",{enumerable:!0,value:L,writable:!1})}_log(L,F){const fe=L.toLowerCase();m[fe]==null&&this.throwArgumentError("invalid log level name","logLevel",L),!(o>m[fe])&&console.log.apply(console,F)}debug(...L){this._log(z.levels.DEBUG,L)}info(...L){this._log(z.levels.INFO,L)}warn(...L){this._log(z.levels.WARNING,L)}makeError(L,F,fe){if(P)return this.makeError("censored error",F,{});F||(F=z.errors.UNKNOWN_ERROR),fe||(fe={});const re=[];Object.keys(fe).forEach(oe=>{const Ce=fe[oe];try{if(Ce instanceof Uint8Array){let se="";for(let ne=0;ne<Ce.length;ne++)se+=c[Ce[ne]>>4],se+=c[Ce[ne]&15];re.push(oe+"=Uint8Array(0x"+se+")")}else re.push(oe+"="+JSON.stringify(Ce))}catch{re.push(oe+"="+JSON.stringify(fe[oe].toString()))}}),re.push(`code=${F}`),re.push(`version=${this.version}`);const X=L;let j="";switch(F){case r.NUMERIC_FAULT:{j="NUMERIC_FAULT";const oe=L;switch(oe){case"overflow":case"underflow":case"division-by-zero":j+="-"+oe;break;case"negative-power":case"negative-width":j+="-unsupported";break;case"unbound-bitwise-result":j+="-unbound-result";break}break}case r.CALL_EXCEPTION:case r.INSUFFICIENT_FUNDS:case r.MISSING_NEW:case r.NONCE_EXPIRED:case r.REPLACEMENT_UNDERPRICED:case r.TRANSACTION_REPLACED:case r.UNPREDICTABLE_GAS_LIMIT:j=F;break}j&&(L+=" [ See: https://links.ethers.org/v5-errors-"+j+" ]"),re.length&&(L+=" ("+re.join(", ")+")");const J=new Error(L);return J.reason=X,J.code=F,Object.keys(fe).forEach(function(oe){J[oe]=fe[oe]}),J}throwError(L,F,fe){throw this.makeError(L,F,fe)}throwArgumentError(L,F,fe){return this.throwError(L,z.errors.INVALID_ARGUMENT,{argument:F,value:fe})}assert(L,F,fe,re){L||this.throwError(F,fe,re)}assertArgument(L,F,fe,re){L||this.throwArgumentError(F,fe,re)}checkNormalize(L){L==null&&(L="platform missing String.prototype.normalize"),a&&this.throwError("platform missing String.prototype.normalize",z.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:a})}checkSafeUint53(L,F){typeof L=="number"&&(F==null&&(F="value not safe"),(L<0||L>=9007199254740991)&&this.throwError(F,z.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:L}),L%1&&this.throwError(F,z.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:L}))}checkArgumentCount(L,F,fe){fe?fe=": "+fe:fe="",L<F&&this.throwError("missing argument"+fe,z.errors.MISSING_ARGUMENT,{count:L,expectedCount:F}),L>F&&this.throwError("too many arguments"+fe,z.errors.UNEXPECTED_ARGUMENT,{count:L,expectedCount:F})}checkNew(L,F){(L===Object||L==null)&&this.throwError("missing new",z.errors.MISSING_NEW,{name:F.name})}checkAbstract(L,F){L===F?this.throwError("cannot instantiate abstract class "+JSON.stringify(F.name)+" directly; use a sub-class",z.errors.UNSUPPORTED_OPERATION,{name:L.name,operation:"new"}):(L===Object||L==null)&&this.throwError("missing new",z.errors.MISSING_NEW,{name:F.name})}static globalLogger(){return h||(h=new z(H)),h}static setCensorship(L,F){if(!L&&F&&this.globalLogger().throwError("cannot permanently disable censorship",z.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),O){if(!L)return;this.globalLogger().throwError("error censorship permanent",z.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}P=!!L,O=!!F}static setLogLevel(L){const F=m[L.toLowerCase()];if(F==null){z.globalLogger().warn("invalid log level - "+L);return}o=F}static from(L){return new z(L)}}z.errors=r,z.levels=t},53587:function(G,x,C){"use strict";C.r(x),C.d(x,{Description:function(){return L},checkProperties:function(){return a},deepCopy:function(){return K},defineReadOnly:function(){return o},getStatic:function(){return h},resolveProperties:function(){return f},shallowCopy:function(){return t}});var H=C(80711);const O="properties/5.7.0";var P=function(F,fe,re,X){function j(J){return J instanceof re?J:new re(function(oe){oe(J)})}return new(re||(re=Promise))(function(J,oe){function Ce(xe){try{ne(X.next(xe))}catch(Ue){oe(Ue)}}function se(xe){try{ne(X.throw(xe))}catch(Ue){oe(Ue)}}function ne(xe){xe.done?J(xe.value):j(xe.value).then(Ce,se)}ne((X=X.apply(F,fe||[])).next())})};const m=new H.Logger(O);function o(F,fe,re){Object.defineProperty(F,fe,{enumerable:!0,value:re,writable:!1})}function h(F,fe){for(let re=0;re<32;re++){if(F[fe])return F[fe];if(!F.prototype||typeof F.prototype!="object")break;F=Object.getPrototypeOf(F.prototype).constructor}return null}function f(F){return P(this,void 0,void 0,function*(){const fe=Object.keys(F).map(X=>{const j=F[X];return Promise.resolve(j).then(J=>({key:X,value:J}))});return(yield Promise.all(fe)).reduce((X,j)=>(X[j.key]=j.value,X),{})})}function a(F,fe){(!F||typeof F!="object")&&m.throwArgumentError("invalid object","object",F),Object.keys(F).forEach(re=>{fe[re]||m.throwArgumentError("invalid object key - "+re,"transaction:"+re,F)})}function t(F){const fe={};for(const re in F)fe[re]=F[re];return fe}const r={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function c(F){if(F==null||r[typeof F])return!0;if(Array.isArray(F)||typeof F=="object"){if(!Object.isFrozen(F))return!1;const fe=Object.keys(F);for(let re=0;re<fe.length;re++){let X=null;try{X=F[fe[re]]}catch{continue}if(!c(X))return!1}return!0}return m.throwArgumentError(`Cannot deepCopy ${typeof F}`,"object",F)}function z(F){if(c(F))return F;if(Array.isArray(F))return Object.freeze(F.map(fe=>K(fe)));if(typeof F=="object"){const fe={};for(const re in F){const X=F[re];X!==void 0&&o(fe,re,K(X))}return fe}return m.throwArgumentError(`Cannot deepCopy ${typeof F}`,"object",F)}function K(F){return z(F)}class L{constructor(fe){for(const re in fe)this[re]=K(fe[re])}}},86237:function(G,x,C){"use strict";C.d(x,{F:function(){return o},s:function(){return m}});var H=C(57218),O=C(93286),P=C(44242);function m(h){const f=(0,P.Y0)(h);if(f.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,O.hexlify)((0,O.concat)([f,H.R]).slice(0,32))}function o(h){const f=(0,O.arrayify)(h);if(f.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(f[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let a=31;for(;f[a-1]===0;)a--;return(0,P.ZN)(f.slice(0,a))}},35637:function(G,x,C){"use strict";C.d(x,{Ll:function(){return re}});var H=C(44242);function O(X){if(X.length%4!==0)throw new Error("bad data");let j=[];for(let J=0;J<X.length;J+=4)j.push(parseInt(X.substring(J,J+4),16));return j}function P(X,j){j||(j=function(Ce){return[parseInt(Ce,16)]});let J=0,oe={};return X.split(",").forEach(Ce=>{let se=Ce.split(":");J+=parseInt(se[0],16),oe[J]=j(se[1])}),oe}function m(X){let j=0;return X.split(",").map(J=>{let oe=J.split("-");oe.length===1?oe[1]="0":oe[1]===""&&(oe[1]="1");let Ce=j+parseInt(oe[0],16);return j=parseInt(oe[1],16),{l:Ce,h:j}})}function o(X,j){let J=0;for(let oe=0;oe<j.length;oe++){let Ce=j[oe];if(J+=Ce.l,X>=J&&X<=J+Ce.h&&(X-J)%(Ce.d||1)===0){if(Ce.e&&Ce.e.indexOf(X-J)!==-1)continue;return Ce}}return null}const h=m("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),f="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(X=>parseInt(X,16)),a=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],t=P("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),r=P("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),c=P("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",O),z=m("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function K(X){return X.reduce((j,J)=>(J.forEach(oe=>{j.push(oe)}),j),[])}function L(X){return!!o(X,h)}function F(X){let j=o(X,a);if(j)return[X+j.s];let J=t[X];if(J)return J;let oe=r[X];if(oe)return[X+oe[0]];let Ce=c[X];return Ce||null}function fe(X){return!!o(X,z)}function re(X){if(X.match(/^[a-z0-9-]*$/i)&&X.length<=59)return X.toLowerCase();let j=(0,H.XL)(X);j=K(j.map(oe=>{if(f.indexOf(oe)>=0)return[];if(oe>=65024&&oe<=65039)return[];let Ce=F(oe);return Ce||[oe]})),j=(0,H.XL)((0,H.uu)(j),H.Uj.NFKC),j.forEach(oe=>{if(fe(oe))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),j.forEach(oe=>{if(L(oe))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});let J=(0,H.uu)(j);if(J.substring(0,1)==="-"||J.substring(2,4)==="--"||J.substring(J.length-1)==="-")throw new Error("invalid hyphen");return J}},62741:function(G,x,C){"use strict";C.r(x),C.d(x,{UnicodeNormalizationForm:function(){return P.Uj},Utf8ErrorFuncs:function(){return P.te},Utf8ErrorReason:function(){return P.Uw},_toEscapedUtf8String:function(){return P.U$},formatBytes32String:function(){return H.s},nameprep:function(){return O.Ll},parseBytes32String:function(){return H.F},toUtf8Bytes:function(){return P.Y0},toUtf8CodePoints:function(){return P.XL},toUtf8String:function(){return P.ZN}});var H=C(86237),O=C(35637),P=C(44242)},44242:function(G,x,C){"use strict";C.d(x,{Uj:function(){return o},te:function(){return r},Uw:function(){return h},U$:function(){return L},uu:function(){return F},Y0:function(){return z},XL:function(){return re},ZN:function(){return fe}});var H=C(93286),O=C(80711);const P="strings/5.7.0",m=new O.Logger(P);var o;(function(X){X.current="",X.NFC="NFC",X.NFD="NFD",X.NFKC="NFKC",X.NFKD="NFKD"})(o||(o={}));var h;(function(X){X.UNEXPECTED_CONTINUE="unexpected continuation byte",X.BAD_PREFIX="bad codepoint prefix",X.OVERRUN="string overrun",X.MISSING_CONTINUE="missing continuation byte",X.OUT_OF_RANGE="out of UTF-8 range",X.UTF16_SURROGATE="UTF-16 surrogate",X.OVERLONG="overlong representation"})(h||(h={}));function f(X,j,J,oe,Ce){return m.throwArgumentError(`invalid codepoint at offset ${j}; ${X}`,"bytes",J)}function a(X,j,J,oe,Ce){if(X===h.BAD_PREFIX||X===h.UNEXPECTED_CONTINUE){let se=0;for(let ne=j+1;ne<J.length&&J[ne]>>6===2;ne++)se++;return se}return X===h.OVERRUN?J.length-j-1:0}function t(X,j,J,oe,Ce){return X===h.OVERLONG?(oe.push(Ce),0):(oe.push(65533),a(X,j,J,oe,Ce))}const r=Object.freeze({error:f,ignore:a,replace:t});function c(X,j){j==null&&(j=r.error),X=(0,H.arrayify)(X);const J=[];let oe=0;for(;oe<X.length;){const Ce=X[oe++];if(Ce>>7===0){J.push(Ce);continue}let se=null,ne=null;if((Ce&224)===192)se=1,ne=127;else if((Ce&240)===224)se=2,ne=2047;else if((Ce&248)===240)se=3,ne=65535;else{(Ce&192)===128?oe+=j(h.UNEXPECTED_CONTINUE,oe-1,X,J):oe+=j(h.BAD_PREFIX,oe-1,X,J);continue}if(oe-1+se>=X.length){oe+=j(h.OVERRUN,oe-1,X,J);continue}let xe=Ce&(1<<8-se-1)-1;for(let Ue=0;Ue<se;Ue++){let ct=X[oe];if((ct&192)!=128){oe+=j(h.MISSING_CONTINUE,oe,X,J),xe=null;break}xe=xe<<6|ct&63,oe++}if(xe!==null){if(xe>1114111){oe+=j(h.OUT_OF_RANGE,oe-1-se,X,J,xe);continue}if(xe>=55296&&xe<=57343){oe+=j(h.UTF16_SURROGATE,oe-1-se,X,J,xe);continue}if(xe<=ne){oe+=j(h.OVERLONG,oe-1-se,X,J,xe);continue}J.push(xe)}}return J}function z(X,j=o.current){j!=o.current&&(m.checkNormalize(),X=X.normalize(j));let J=[];for(let oe=0;oe<X.length;oe++){const Ce=X.charCodeAt(oe);if(Ce<128)J.push(Ce);else if(Ce<2048)J.push(Ce>>6|192),J.push(Ce&63|128);else if((Ce&64512)==55296){oe++;const se=X.charCodeAt(oe);if(oe>=X.length||(se&64512)!==56320)throw new Error("invalid utf-8 string");const ne=65536+((Ce&1023)<<10)+(se&1023);J.push(ne>>18|240),J.push(ne>>12&63|128),J.push(ne>>6&63|128),J.push(ne&63|128)}else J.push(Ce>>12|224),J.push(Ce>>6&63|128),J.push(Ce&63|128)}return(0,H.arrayify)(J)}function K(X){const j="0000"+X.toString(16);return"\\u"+j.substring(j.length-4)}function L(X,j){return'"'+c(X,j).map(J=>{if(J<256){switch(J){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(J>=32&&J<127)return String.fromCharCode(J)}return J<=65535?K(J):(J-=65536,K((J>>10&1023)+55296)+K((J&1023)+56320))}).join("")+'"'}function F(X){return X.map(j=>j<=65535?String.fromCharCode(j):(j-=65536,String.fromCharCode((j>>10&1023)+55296,(j&1023)+56320))).join("")}function fe(X,j){return F(c(X,j))}function re(X,j=o.current){return c(z(X,j))}},55595:function(G,x,C){var H=typeof Object.defineProperties=="function"?Object.defineProperty:function(s,l,y){s!=Array.prototype&&s!=Object.prototype&&(s[l]=y.value)},O=typeof window<"u"&&window===this?this:typeof C.g<"u"&&C.g!=null?C.g:this;function P(s,l){if(l){var y=O;s=s.split(".");for(var N=0;N<s.length-1;N++){var ie=s[N];ie in y||(y[ie]={}),y=y[ie]}s=s[s.length-1],N=y[s],l=l(N),l!=N&&l!=null&&H(y,s,{configurable:!0,writable:!0,value:l})}}function m(s){var l=0;return function(){return l<s.length?{done:!1,value:s[l++]}:{done:!0}}}function o(){o=function(){},O.Symbol||(O.Symbol=f)}function h(s,l){this.a=s,H(this,"description",{configurable:!0,writable:!0,value:l})}h.prototype.toString=function(){return this.a};var f=function(){function s(y){if(this instanceof s)throw new TypeError("Symbol is not a constructor");return new h("jscomp_symbol_"+(y||"")+"_"+l++,y)}var l=0;return s}();function a(){o();var s=O.Symbol.iterator;s||(s=O.Symbol.iterator=O.Symbol("Symbol.iterator")),typeof Array.prototype[s]!="function"&&H(Array.prototype,s,{configurable:!0,writable:!0,value:function(){return t(m(this))}}),a=function(){}}function t(s){return a(),s={next:s},s[O.Symbol.iterator]=function(){return this},s}function r(s,l){a(),s instanceof String&&(s+="");var y=0,N={next:function(){if(y<s.length){var ie=y++;return{value:l(ie,s[ie]),done:!1}}return N.next=function(){return{done:!0,value:void 0}},N.next()}};return N[Symbol.iterator]=function(){return N},N}P("Array.prototype.entries",function(s){return s||function(){return r(this,function(l,y){return[l,y]})}});var c=this||self;function z(s,l,y){s=s.split("."),y=y||c,s[0]in y||typeof y.execScript>"u"||y.execScript("var "+s[0]);for(var N;s.length&&(N=s.shift());)s.length||l===void 0?y[N]&&y[N]!==Object.prototype[N]?y=y[N]:y=y[N]={}:y[N]=l}function K(s){var l=typeof s;if(l=="object")if(s){if(s instanceof Array)return"array";if(s instanceof Object)return l;var y=Object.prototype.toString.call(s);if(y=="[object Window]")return"object";if(y=="[object Array]"||typeof s.length=="number"&&typeof s.splice<"u"&&typeof s.propertyIsEnumerable<"u"&&!s.propertyIsEnumerable("splice"))return"array";if(y=="[object Function]"||typeof s.call<"u"&&typeof s.propertyIsEnumerable<"u"&&!s.propertyIsEnumerable("call"))return"function"}else return"null";else if(l=="function"&&typeof s.call>"u")return"object";return l}function L(s){var l=typeof s;return l=="object"&&s!=null||l=="function"}function F(s,l,y){z(s,l,y)}function fe(s,l){function y(){}y.prototype=l.prototype,s.prototype=new y,s.prototype.constructor=s}var re="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function X(s,l){for(var y,N,ie=1;ie<arguments.length;ie++){N=arguments[ie];for(y in N)s[y]=N[y];for(var Pe=0;Pe<re.length;Pe++)y=re[Pe],Object.prototype.hasOwnProperty.call(N,y)&&(s[y]=N[y])}}var j=Array.prototype.forEach?function(s,l){Array.prototype.forEach.call(s,l,void 0)}:function(s,l){for(var y=s.length,N=typeof s=="string"?s.split(""):s,ie=0;ie<y;ie++)ie in N&&l.call(void 0,N[ie],ie,s)},J=Array.prototype.map?function(s,l){return Array.prototype.map.call(s,l,void 0)}:function(s,l){for(var y=s.length,N=Array(y),ie=typeof s=="string"?s.split(""):s,Pe=0;Pe<y;Pe++)Pe in ie&&(N[Pe]=l.call(void 0,ie[Pe],Pe,s));return N};function oe(s,l,y){return 2>=arguments.length?Array.prototype.slice.call(s,l):Array.prototype.slice.call(s,l,y)}function Ce(s,l,y,N){var ie="Assertion failed";if(y){ie+=": "+y;var Pe=N}else s&&(ie+=": "+s,Pe=l);throw Error(ie,Pe||[])}function se(s,l,y){for(var N=[],ie=2;ie<arguments.length;++ie)N[ie-2]=arguments[ie];return s||Ce("",null,l,N),s}function ne(s,l,y){for(var N=[],ie=2;ie<arguments.length;++ie)N[ie-2]=arguments[ie];typeof s!="string"&&Ce("Expected string but got %s: %s.",[K(s),s],l,N)}function xe(s,l,y){for(var N=[],ie=2;ie<arguments.length;++ie)N[ie-2]=arguments[ie];Array.isArray(s)||Ce("Expected array but got %s: %s.",[K(s),s],l,N)}function Ue(s,l){for(var y=[],N=1;N<arguments.length;++N)y[N-1]=arguments[N];throw Error("Failure"+(s?": "+s:""),y)}function ct(s,l,y,N){for(var ie=[],Pe=3;Pe<arguments.length;++Pe)ie[Pe-3]=arguments[Pe];s instanceof l||Ce("Expected instanceof %s but got %s.",[ft(l),ft(s)],y,ie)}function ft(s){return s instanceof Function?s.displayName||s.name||"unknown type name":s instanceof Object?s.constructor.displayName||s.constructor.name||Object.prototype.toString.call(s):s===null?"null":typeof s}function Je(s,l){if(this.c=s,this.b=l,this.a={},this.arrClean=!0,0<this.c.length){for(s=0;s<this.c.length;s++){l=this.c[s];var y=l[0];this.a[y.toString()]=new Ne(y,l[1])}this.arrClean=!0}}z("jspb.Map",Je,void 0),Je.prototype.g=function(){if(this.arrClean){if(this.b){var s=this.a,l;for(l in s)if(Object.prototype.hasOwnProperty.call(s,l)){var y=s[l].a;y&&y.g()}}}else{for(this.c.length=0,s=Ft(this),s.sort(),l=0;l<s.length;l++){var N=this.a[s[l]];(y=N.a)&&y.g(),this.c.push([N.key,N.value])}this.arrClean=!0}return this.c},Je.prototype.toArray=Je.prototype.g,Je.prototype.Mc=function(s,l){for(var y=this.g(),N=[],ie=0;ie<y.length;ie++){var Pe=this.a[y[ie][0].toString()];Tt(this,Pe);var De=Pe.a;De?(se(l),N.push([Pe.key,l(s,De)])):N.push([Pe.key,Pe.value])}return N},Je.prototype.toObject=Je.prototype.Mc,Je.fromObject=function(s,l,y){l=new Je([],l);for(var N=0;N<s.length;N++){var ie=s[N][0],Pe=y(s[N][1]);l.set(ie,Pe)}return l};function Ot(s){this.a=0,this.b=s}Ot.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(Ot.prototype[Symbol.iterator]=function(){return this}),Je.prototype.Jb=function(){return Ft(this).length},Je.prototype.getLength=Je.prototype.Jb,Je.prototype.clear=function(){this.a={},this.arrClean=!1},Je.prototype.clear=Je.prototype.clear,Je.prototype.Cb=function(s){s=s.toString();var l=this.a.hasOwnProperty(s);return delete this.a[s],this.arrClean=!1,l},Je.prototype.del=Je.prototype.Cb,Je.prototype.Eb=function(){var s=[],l=Ft(this);l.sort();for(var y=0;y<l.length;y++){var N=this.a[l[y]];s.push([N.key,N.value])}return s},Je.prototype.getEntryList=Je.prototype.Eb,Je.prototype.entries=function(){var s=[],l=Ft(this);l.sort();for(var y=0;y<l.length;y++){var N=this.a[l[y]];s.push([N.key,Tt(this,N)])}return new Ot(s)},Je.prototype.entries=Je.prototype.entries,Je.prototype.keys=function(){var s=[],l=Ft(this);l.sort();for(var y=0;y<l.length;y++)s.push(this.a[l[y]].key);return new Ot(s)},Je.prototype.keys=Je.prototype.keys,Je.prototype.values=function(){var s=[],l=Ft(this);l.sort();for(var y=0;y<l.length;y++)s.push(Tt(this,this.a[l[y]]));return new Ot(s)},Je.prototype.values=Je.prototype.values,Je.prototype.forEach=function(s,l){var y=Ft(this);y.sort();for(var N=0;N<y.length;N++){var ie=this.a[y[N]];s.call(l,Tt(this,ie),ie.key,this)}},Je.prototype.forEach=Je.prototype.forEach,Je.prototype.set=function(s,l){var y=new Ne(s);return this.b?(y.a=l,y.value=l.g()):y.value=l,this.a[s.toString()]=y,this.arrClean=!1,this},Je.prototype.set=Je.prototype.set;function Tt(s,l){return s.b?(l.a||(l.a=new s.b(l.value)),l.a):l.value}Je.prototype.get=function(s){if(s=this.a[s.toString()])return Tt(this,s)},Je.prototype.get=Je.prototype.get,Je.prototype.has=function(s){return s.toString()in this.a},Je.prototype.has=Je.prototype.has,Je.prototype.Jc=function(s,l,y,N,ie){var Pe=Ft(this);Pe.sort();for(var De=0;De<Pe.length;De++){var bt=this.a[Pe[De]];l.Va(s),y.call(l,1,bt.key),this.b?N.call(l,2,Tt(this,bt),ie):N.call(l,2,bt.value),l.Ya()}},Je.prototype.serializeBinary=Je.prototype.Jc,Je.deserializeBinary=function(s,l,y,N,ie,Pe,De){for(;l.oa()&&!l.bb();){var bt=l.c;bt==1?Pe=y.call(l):bt==2&&(s.b?(se(ie),De||(De=new s.b),N.call(l,De,ie)):De=N.call(l))}se(Pe!=null),se(De!=null),s.set(Pe,De)};function Ft(s){s=s.a;var l=[],y;for(y in s)Object.prototype.hasOwnProperty.call(s,y)&&l.push(y);return l}function Ne(s,l){this.key=s,this.value=l,this.a=void 0}function Ee(s){if(8192>=s.length)return String.fromCharCode.apply(null,s);for(var l="",y=0;y<s.length;y+=8192)l+=String.fromCharCode.apply(null,oe(s,y,y+8192));return l}var Oe={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},Ke={"'":"\\'"},_e={},ke=null;function dt(s,l){l===void 0&&(l=0),Et(),l=_e[l];for(var y=[],N=0;N<s.length;N+=3){var ie=s[N],Pe=N+1<s.length,De=Pe?s[N+1]:0,bt=N+2<s.length,Rt=bt?s[N+2]:0,ao=ie>>2;ie=(ie&3)<<4|De>>4,De=(De&15)<<2|Rt>>6,Rt&=63,bt||(Rt=64,Pe||(De=64)),y.push(l[ao],l[ie],l[De]||"",l[Rt]||"")}return y.join("")}function nt(s){var l=s.length,y=3*l/4;y%3?y=Math.floor(y):"=.".indexOf(s[l-1])!=-1&&(y="=.".indexOf(s[l-2])!=-1?y-2:y-1);var N=new Uint8Array(y),ie=0;return vt(s,function(Pe){N[ie++]=Pe}),N.subarray(0,ie)}function vt(s,l){function y(Rt){for(;N<s.length;){var ao=s.charAt(N++),Io=ke[ao];if(Io!=null)return Io;if(!/^[\s\xa0]*$/.test(ao))throw Error("Unknown base64 encoding at char: "+ao)}return Rt}Et();for(var N=0;;){var ie=y(-1),Pe=y(0),De=y(64),bt=y(64);if(bt===64&&ie===-1)break;l(ie<<2|Pe>>4),De!=64&&(l(Pe<<4&240|De>>2),bt!=64&&l(De<<6&192|bt))}}function Et(){if(!ke){ke={};for(var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),l=["+/=","+/","-_=","-_.","-_"],y=0;5>y;y++){var N=s.concat(l[y].split(""));_e[y]=N;for(var ie=0;ie<N.length;ie++){var Pe=N[ie];ke[Pe]===void 0&&(ke[Pe]=ie)}}}}z("jspb.ConstBinaryMessage",function(){},void 0),z("jspb.BinaryMessage",function(){},void 0),z("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),z("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),z("jspb.BinaryConstants.FieldTypeToWireType",function(s){switch(s){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}},void 0),z("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),z("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),z("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),z("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),z("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),z("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),z("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),z("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),z("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),z("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),z("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),z("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),z("jspb.BinaryConstants.TWO_TO_63",9223372036854776e3,void 0),z("jspb.BinaryConstants.TWO_TO_64",18446744073709552e3,void 0),z("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var xt=0,ut=0;z("jspb.utils.getSplit64Low",function(){return xt},void 0),z("jspb.utils.getSplit64High",function(){return ut},void 0);function nr(s){var l=s>>>0;s=Math.floor((s-l)/4294967296)>>>0,xt=l,ut=s}z("jspb.utils.splitUint64",nr,void 0);function tr(s){var l=0>s;s=Math.abs(s);var y=s>>>0;s=Math.floor((s-y)/4294967296),s>>>=0,l&&(s=~s>>>0,y=(~y>>>0)+1,4294967295<y&&(y=0,s++,4294967295<s&&(s=0))),xt=y,ut=s}z("jspb.utils.splitInt64",tr,void 0);function fr(s){var l=0>s;s=2*Math.abs(s),nr(s),s=xt;var y=ut;l&&(s==0?y==0?y=s=4294967295:(y--,s=4294967295):s--),xt=s,ut=y}z("jspb.utils.splitZigzag64",fr,void 0);function Lr(s){var l=0>s?1:0;if(s=l?-s:s,s===0)0<1/s?xt=ut=0:(ut=0,xt=2147483648);else if(isNaN(s))ut=0,xt=2147483647;else if(34028234663852886e22<s)ut=0,xt=(l<<31|2139095040)>>>0;else if(11754943508222875e-54>s)s=Math.round(s/Math.pow(2,-149)),ut=0,xt=(l<<31|s)>>>0;else{var y=Math.floor(Math.log(s)/Math.LN2);s*=Math.pow(2,-y),s=Math.round(8388608*s),16777216<=s&&++y,ut=0,xt=(l<<31|y+127<<23|s&8388607)>>>0}}z("jspb.utils.splitFloat32",Lr,void 0);function ur(s){var l=0>s?1:0;if(s=l?-s:s,s===0)ut=0<1/s?0:2147483648,xt=0;else if(isNaN(s))ut=2147483647,xt=4294967295;else if(17976931348623157e292<s)ut=(l<<31|2146435072)>>>0,xt=0;else if(22250738585072014e-324>s)s/=Math.pow(2,-1074),ut=(l<<31|s/4294967296)>>>0,xt=s>>>0;else{var y=s,N=0;if(2<=y)for(;2<=y&&1023>N;)N++,y/=2;else for(;1>y&&-1022<N;)y*=2,N--;s*=Math.pow(2,-N),ut=(l<<31|N+1023<<20|1048576*s&1048575)>>>0,xt=4503599627370496*s>>>0}}z("jspb.utils.splitFloat64",ur,void 0);function rr(s){var l=s.charCodeAt(4),y=s.charCodeAt(5),N=s.charCodeAt(6),ie=s.charCodeAt(7);xt=s.charCodeAt(0)+(s.charCodeAt(1)<<8)+(s.charCodeAt(2)<<16)+(s.charCodeAt(3)<<24)>>>0,ut=l+(y<<8)+(N<<16)+(ie<<24)>>>0}z("jspb.utils.splitHash64",rr,void 0);function ae(s,l){return 4294967296*l+(s>>>0)}z("jspb.utils.joinUint64",ae,void 0);function ve(s,l){var y=l&2147483648;return y&&(s=~s+1>>>0,l=~l>>>0,s==0&&(l=l+1>>>0)),s=ae(s,l),y?-s:s}z("jspb.utils.joinInt64",ve,void 0);function we(s,l,y){var N=l>>31;return y(s<<1^N,(l<<1|s>>>31)^N)}z("jspb.utils.toZigzag64",we,void 0);function Xe(s,l){return Ze(s,l,ve)}z("jspb.utils.joinZigzag64",Xe,void 0);function Ze(s,l,y){var N=-(s&1);return y((s>>>1|l<<31)^N,l>>>1^N)}z("jspb.utils.fromZigzag64",Ze,void 0);function tt(s){var l=2*(s>>31)+1,y=s>>>23&255;return s&=8388607,y==255?s?NaN:1/0*l:y==0?l*Math.pow(2,-149)*s:l*Math.pow(2,y-150)*(s+Math.pow(2,23))}z("jspb.utils.joinFloat32",tt,void 0);function ht(s,l){var y=2*(l>>31)+1,N=l>>>20&2047;return s=4294967296*(l&1048575)+s,N==2047?s?NaN:1/0*y:N==0?y*Math.pow(2,-1074)*s:y*Math.pow(2,N-1075)*(s+4503599627370496)}z("jspb.utils.joinFloat64",ht,void 0);function wt(s,l){return String.fromCharCode(s>>>0&255,s>>>8&255,s>>>16&255,s>>>24&255,l>>>0&255,l>>>8&255,l>>>16&255,l>>>24&255)}z("jspb.utils.joinHash64",wt,void 0),z("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function St(s,l){function y(ie,Pe){return ie=ie?String(ie):"",Pe?"0000000".slice(ie.length)+ie:ie}if(2097151>=l)return""+ae(s,l);var N=(s>>>24|l<<8)>>>0&16777215;return l=l>>16&65535,s=(s&16777215)+6777216*N+6710656*l,N+=8147497*l,l*=2,1e7<=s&&(N+=Math.floor(s/1e7),s%=1e7),1e7<=N&&(l+=Math.floor(N/1e7),N%=1e7),y(l,0)+y(N,l)+y(s,1)}z("jspb.utils.joinUnsignedDecimalString",St,void 0);function Mt(s,l){var y=l&2147483648;return y&&(s=~s+1>>>0,l=~l+(s==0?1:0)>>>0),s=St(s,l),y?"-"+s:s}z("jspb.utils.joinSignedDecimalString",Mt,void 0);function Vt(s,l){rr(s),s=xt;var y=ut;return l?Mt(s,y):St(s,y)}z("jspb.utils.hash64ToDecimalString",Vt,void 0),z("jspb.utils.hash64ArrayToDecimalStrings",function(s,l){for(var y=Array(s.length),N=0;N<s.length;N++)y[N]=Vt(s[N],l);return y},void 0);function Wt(s){function l(De,bt){for(var Rt=0;8>Rt&&(De!==1||0<bt);Rt++)bt=De*ie[Rt]+bt,ie[Rt]=bt&255,bt>>>=8}function y(){for(var De=0;8>De;De++)ie[De]=~ie[De]&255}se(0<s.length);var N=!1;s[0]==="-"&&(N=!0,s=s.slice(1));for(var ie=[0,0,0,0,0,0,0,0],Pe=0;Pe<s.length;Pe++)l(10,s.charCodeAt(Pe)-48);return N&&(y(),l(1,1)),Ee(ie)}z("jspb.utils.decimalStringToHash64",Wt,void 0),z("jspb.utils.splitDecimalString",function(s){rr(Wt(s))},void 0);function ir(s){return String.fromCharCode(10>s?48+s:87+s)}function Ct(s){return 97<=s?s-97+10:s-48}z("jspb.utils.hash64ToHexString",function(s){var l=Array(18);l[0]="0",l[1]="x";for(var y=0;8>y;y++){var N=s.charCodeAt(7-y);l[2*y+2]=ir(N>>4),l[2*y+3]=ir(N&15)}return l.join("")},void 0),z("jspb.utils.hexStringToHash64",function(s){s=s.toLowerCase(),se(s.length==18),se(s[0]=="0"),se(s[1]=="x");for(var l="",y=0;8>y;y++)l=String.fromCharCode(16*Ct(s.charCodeAt(2*y+2))+Ct(s.charCodeAt(2*y+3)))+l;return l},void 0),z("jspb.utils.hash64ToNumber",function(s,l){rr(s),s=xt;var y=ut;return l?ve(s,y):ae(s,y)},void 0),z("jspb.utils.numberToHash64",function(s){return tr(s),wt(xt,ut)},void 0),z("jspb.utils.countVarints",function(s,l,y){for(var N=0,ie=l;ie<y;ie++)N+=s[ie]>>7;return y-l-N},void 0),z("jspb.utils.countVarintFields",function(s,l,y,N){var ie=0;if(N*=8,128>N)for(;l<y&&s[l++]==N;)for(ie++;;){var Pe=s[l++];if((Pe&128)==0)break}else for(;l<y;){for(Pe=N;128<Pe;){if(s[l]!=(Pe&127|128))return ie;l++,Pe>>=7}if(s[l++]!=Pe)break;for(ie++;Pe=s[l++],(Pe&128)!=0;);}return ie},void 0);function xr(s,l,y,N,ie){var Pe=0;if(128>N)for(;l<y&&s[l++]==N;)Pe++,l+=ie;else for(;l<y;){for(var De=N;128<De;){if(s[l++]!=(De&127|128))return Pe;De>>=7}if(s[l++]!=De)break;Pe++,l+=ie}return Pe}z("jspb.utils.countFixed32Fields",function(s,l,y,N){return xr(s,l,y,8*N+5,4)},void 0),z("jspb.utils.countFixed64Fields",function(s,l,y,N){return xr(s,l,y,8*N+1,8)},void 0),z("jspb.utils.countDelimitedFields",function(s,l,y,N){var ie=0;for(N=8*N+2;l<y;){for(var Pe=N;128<Pe;){if(s[l++]!=(Pe&127|128))return ie;Pe>>=7}if(s[l++]!=Pe)break;ie++;for(var De=0,bt=1;Pe=s[l++],De+=(Pe&127)*bt,bt*=128,(Pe&128)!=0;);l+=De}return ie},void 0),z("jspb.utils.debugBytesToTextFormat",function(s){var l='"';if(s){s=lr(s);for(var y=0;y<s.length;y++)l+="\\x",16>s[y]&&(l+="0"),l+=s[y].toString(16)}return l+'"'},void 0),z("jspb.utils.debugScalarToTextFormat",function(s){if(typeof s=="string"){s=String(s);for(var l=['"'],y=0;y<s.length;y++){var N=s.charAt(y),ie=N.charCodeAt(0),Pe=y+1,De;(De=Oe[N])||(31<ie&&127>ie||(ie=N,ie in Ke?N=Ke[ie]:ie in Oe?N=Ke[ie]=Oe[ie]:(De=ie.charCodeAt(0),31<De&&127>De?N=ie:(256>De?(N="\\x",(16>De||256<De)&&(N+="0")):(N="\\u",4096>De&&(N+="0")),N+=De.toString(16).toUpperCase()),N=Ke[ie]=N)),De=N),l[Pe]=De}l.push('"'),s=l.join("")}else s=s.toString();return s},void 0),z("jspb.utils.stringToByteArray",function(s){for(var l=new Uint8Array(s.length),y=0;y<s.length;y++){var N=s.charCodeAt(y);if(255<N)throw Error("Conversion error: string contains codepoint outside of byte range");l[y]=N}return l},void 0);function lr(s){return s.constructor===Uint8Array?s:s.constructor===ArrayBuffer?new Uint8Array(s):s.constructor===Array?new Uint8Array(s):s.constructor===String?nt(s):s instanceof Uint8Array?new Uint8Array(s.buffer,s.byteOffset,s.byteLength):(Ue("Type not convertible to Uint8Array."),new Uint8Array(0))}z("jspb.utils.byteSourceToUint8Array",lr,void 0);function Te(s,l,y){this.b=null,this.a=this.c=this.h=0,this.v=!1,s&&this.H(s,l,y)}z("jspb.BinaryDecoder",Te,void 0);var sr=[];Te.getInstanceCacheLength=function(){return sr.length};function zr(s,l,y){if(sr.length){var N=sr.pop();return s&&N.H(s,l,y),N}return new Te(s,l,y)}Te.alloc=zr,Te.prototype.Ca=function(){this.clear(),100>sr.length&&sr.push(this)},Te.prototype.free=Te.prototype.Ca,Te.prototype.clone=function(){return zr(this.b,this.h,this.c-this.h)},Te.prototype.clone=Te.prototype.clone,Te.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},Te.prototype.clear=Te.prototype.clear,Te.prototype.Y=function(){return this.b},Te.prototype.getBuffer=Te.prototype.Y,Te.prototype.H=function(s,l,y){this.b=lr(s),this.h=l!==void 0?l:0,this.c=y!==void 0?this.h+y:this.b.length,this.a=this.h},Te.prototype.setBlock=Te.prototype.H,Te.prototype.Db=function(){return this.c},Te.prototype.getEnd=Te.prototype.Db,Te.prototype.setEnd=function(s){this.c=s},Te.prototype.setEnd=Te.prototype.setEnd,Te.prototype.reset=function(){this.a=this.h},Te.prototype.reset=Te.prototype.reset,Te.prototype.B=function(){return this.a},Te.prototype.getCursor=Te.prototype.B,Te.prototype.Ma=function(s){this.a=s},Te.prototype.setCursor=Te.prototype.Ma,Te.prototype.advance=function(s){this.a+=s,se(this.a<=this.c)},Te.prototype.advance=Te.prototype.advance,Te.prototype.ya=function(){return this.a==this.c},Te.prototype.atEnd=Te.prototype.ya,Te.prototype.Qb=function(){return this.a>this.c},Te.prototype.pastEnd=Te.prototype.Qb,Te.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},Te.prototype.getError=Te.prototype.getError,Te.prototype.w=function(s){for(var l=128,y=0,N=0,ie=0;4>ie&&128<=l;ie++)l=this.b[this.a++],y|=(l&127)<<7*ie;if(128<=l&&(l=this.b[this.a++],y|=(l&127)<<28,N|=(l&127)>>4),128<=l)for(ie=0;5>ie&&128<=l;ie++)l=this.b[this.a++],N|=(l&127)<<7*ie+3;if(128>l)return s(y>>>0,N>>>0);Ue("Failed to read varint, encoding is invalid."),this.v=!0},Te.prototype.readSplitVarint64=Te.prototype.w,Te.prototype.ea=function(s){return this.w(function(l,y){return Ze(l,y,s)})},Te.prototype.readSplitZigzagVarint64=Te.prototype.ea,Te.prototype.ta=function(s){var l=this.b,y=this.a;this.a+=8;for(var N=0,ie=0,Pe=y+7;Pe>=y;Pe--)N=N<<8|l[Pe],ie=ie<<8|l[Pe+4];return s(N,ie)},Te.prototype.readSplitFixed64=Te.prototype.ta,Te.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},Te.prototype.skipVarint=Te.prototype.kb,Te.prototype.mb=function(s){for(;128<s;)this.a--,s>>>=7;this.a--},Te.prototype.unskipVarint=Te.prototype.mb,Te.prototype.o=function(){var s=this.b,l=s[this.a],y=l&127;return 128>l?(this.a+=1,se(this.a<=this.c),y):(l=s[this.a+1],y|=(l&127)<<7,128>l?(this.a+=2,se(this.a<=this.c),y):(l=s[this.a+2],y|=(l&127)<<14,128>l?(this.a+=3,se(this.a<=this.c),y):(l=s[this.a+3],y|=(l&127)<<21,128>l?(this.a+=4,se(this.a<=this.c),y):(l=s[this.a+4],y|=(l&15)<<28,128>l?(this.a+=5,se(this.a<=this.c),y>>>0):(this.a+=5,128<=s[this.a++]&&128<=s[this.a++]&&128<=s[this.a++]&&128<=s[this.a++]&&128<=s[this.a++]&&se(!1),se(this.a<=this.c),y)))))},Te.prototype.readUnsignedVarint32=Te.prototype.o,Te.prototype.da=function(){return~~this.o()},Te.prototype.readSignedVarint32=Te.prototype.da,Te.prototype.O=function(){return this.o().toString()},Te.prototype.Ea=function(){return this.da().toString()},Te.prototype.readSignedVarint32String=Te.prototype.Ea,Te.prototype.Ia=function(){var s=this.o();return s>>>1^-(s&1)},Te.prototype.readZigzagVarint32=Te.prototype.Ia,Te.prototype.Ga=function(){return this.w(ae)},Te.prototype.readUnsignedVarint64=Te.prototype.Ga,Te.prototype.Ha=function(){return this.w(St)},Te.prototype.readUnsignedVarint64String=Te.prototype.Ha,Te.prototype.sa=function(){return this.w(ve)},Te.prototype.readSignedVarint64=Te.prototype.sa,Te.prototype.Fa=function(){return this.w(Mt)},Te.prototype.readSignedVarint64String=Te.prototype.Fa,Te.prototype.Ja=function(){return this.w(Xe)},Te.prototype.readZigzagVarint64=Te.prototype.Ja,Te.prototype.fb=function(){return this.ea(wt)},Te.prototype.readZigzagVarintHash64=Te.prototype.fb,Te.prototype.Ka=function(){return this.ea(Mt)},Te.prototype.readZigzagVarint64String=Te.prototype.Ka,Te.prototype.Gc=function(){var s=this.b[this.a];return this.a+=1,se(this.a<=this.c),s},Te.prototype.readUint8=Te.prototype.Gc,Te.prototype.Ec=function(){var s=this.b[this.a],l=this.b[this.a+1];return this.a+=2,se(this.a<=this.c),s<<0|l<<8},Te.prototype.readUint16=Te.prototype.Ec,Te.prototype.m=function(){var s=this.b[this.a],l=this.b[this.a+1],y=this.b[this.a+2],N=this.b[this.a+3];return this.a+=4,se(this.a<=this.c),(s<<0|l<<8|y<<16|N<<24)>>>0},Te.prototype.readUint32=Te.prototype.m,Te.prototype.ga=function(){var s=this.m(),l=this.m();return ae(s,l)},Te.prototype.readUint64=Te.prototype.ga,Te.prototype.ha=function(){var s=this.m(),l=this.m();return St(s,l)},Te.prototype.readUint64String=Te.prototype.ha,Te.prototype.Xb=function(){var s=this.b[this.a];return this.a+=1,se(this.a<=this.c),s<<24>>24},Te.prototype.readInt8=Te.prototype.Xb,Te.prototype.Vb=function(){var s=this.b[this.a],l=this.b[this.a+1];return this.a+=2,se(this.a<=this.c),(s<<0|l<<8)<<16>>16},Te.prototype.readInt16=Te.prototype.Vb,Te.prototype.P=function(){var s=this.b[this.a],l=this.b[this.a+1],y=this.b[this.a+2],N=this.b[this.a+3];return this.a+=4,se(this.a<=this.c),s<<0|l<<8|y<<16|N<<24},Te.prototype.readInt32=Te.prototype.P,Te.prototype.ba=function(){var s=this.m(),l=this.m();return ve(s,l)},Te.prototype.readInt64=Te.prototype.ba,Te.prototype.ca=function(){var s=this.m(),l=this.m();return Mt(s,l)},Te.prototype.readInt64String=Te.prototype.ca,Te.prototype.aa=function(){var s=this.m();return tt(s,0)},Te.prototype.readFloat=Te.prototype.aa,Te.prototype.Z=function(){var s=this.m(),l=this.m();return ht(s,l)},Te.prototype.readDouble=Te.prototype.Z,Te.prototype.pa=function(){return!!this.b[this.a++]},Te.prototype.readBool=Te.prototype.pa,Te.prototype.ra=function(){return this.da()},Te.prototype.readEnum=Te.prototype.ra,Te.prototype.fa=function(s){var l=this.b,y=this.a;s=y+s;for(var N=[],ie="";y<s;){var Pe=l[y++];if(128>Pe)N.push(Pe);else{if(192>Pe)continue;if(224>Pe){var De=l[y++];N.push((Pe&31)<<6|De&63)}else if(240>Pe){De=l[y++];var bt=l[y++];N.push((Pe&15)<<12|(De&63)<<6|bt&63)}else if(248>Pe){De=l[y++],bt=l[y++];var Rt=l[y++];Pe=(Pe&7)<<18|(De&63)<<12|(bt&63)<<6|Rt&63,Pe-=65536,N.push((Pe>>10&1023)+55296,(Pe&1023)+56320)}}8192<=N.length&&(ie+=String.fromCharCode.apply(null,N),N.length=0)}return ie+=Ee(N),this.a=y,ie},Te.prototype.readString=Te.prototype.fa,Te.prototype.Dc=function(){var s=this.o();return this.fa(s)},Te.prototype.readStringWithLength=Te.prototype.Dc,Te.prototype.qa=function(s){if(0>s||this.a+s>this.b.length)return this.v=!0,Ue("Invalid byte length!"),new Uint8Array(0);var l=this.b.subarray(this.a,this.a+s);return this.a+=s,se(this.a<=this.c),l},Te.prototype.readBytes=Te.prototype.qa,Te.prototype.ia=function(){return this.w(wt)},Te.prototype.readVarintHash64=Te.prototype.ia,Te.prototype.$=function(){var s=this.b,l=this.a,y=s[l],N=s[l+1],ie=s[l+2],Pe=s[l+3],De=s[l+4],bt=s[l+5],Rt=s[l+6];return s=s[l+7],this.a+=8,String.fromCharCode(y,N,ie,Pe,De,bt,Rt,s)},Te.prototype.readFixedHash64=Te.prototype.$;function ce(s,l,y){this.a=zr(s,l,y),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}z("jspb.BinaryReader",ce,void 0);var It=[];ce.clearInstanceCache=function(){It=[]},ce.getInstanceCacheLength=function(){return It.length};function Qr(s,l,y){if(It.length){var N=It.pop();return s&&N.a.H(s,l,y),N}return new ce(s,l,y)}ce.alloc=Qr,ce.prototype.zb=Qr,ce.prototype.alloc=ce.prototype.zb,ce.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>It.length&&It.push(this)},ce.prototype.free=ce.prototype.Ca,ce.prototype.Fb=function(){return this.O},ce.prototype.getFieldCursor=ce.prototype.Fb,ce.prototype.B=function(){return this.a.B()},ce.prototype.getCursor=ce.prototype.B,ce.prototype.Y=function(){return this.a.Y()},ce.prototype.getBuffer=ce.prototype.Y,ce.prototype.Hb=function(){return this.c},ce.prototype.getFieldNumber=ce.prototype.Hb,ce.prototype.Lb=function(){return this.b},ce.prototype.getWireType=ce.prototype.Lb,ce.prototype.Mb=function(){return this.b==2},ce.prototype.isDelimited=ce.prototype.Mb,ce.prototype.bb=function(){return this.b==4},ce.prototype.isEndGroup=ce.prototype.bb,ce.prototype.getError=function(){return this.h||this.a.getError()},ce.prototype.getError=ce.prototype.getError,ce.prototype.H=function(s,l,y){this.a.H(s,l,y),this.b=this.c=-1},ce.prototype.setBlock=ce.prototype.H,ce.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ce.prototype.reset=ce.prototype.reset,ce.prototype.advance=function(s){this.a.advance(s)},ce.prototype.advance=ce.prototype.advance,ce.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return Ue("Decoder hit an error"),!1;this.O=this.a.B();var s=this.a.o(),l=s>>>3;return s&=7,s!=0&&s!=5&&s!=1&&s!=2&&s!=3&&s!=4?(Ue("Invalid wire type: %s (at position %s)",s,this.O),this.h=!0,!1):(this.c=l,this.b=s,!0)},ce.prototype.nextField=ce.prototype.oa,ce.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ce.prototype.unskipHeader=ce.prototype.Oa,ce.prototype.Lc=function(){var s=this.c;for(this.Oa();this.oa()&&this.c==s;)this.C();this.a.ya()||this.Oa()},ce.prototype.skipMatchingFields=ce.prototype.Lc,ce.prototype.lb=function(){this.b!=0?(Ue("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ce.prototype.skipVarintField=ce.prototype.lb,ce.prototype.gb=function(){if(this.b!=2)Ue("Invalid wire type for skipDelimitedField"),this.C();else{var s=this.a.o();this.a.advance(s)}},ce.prototype.skipDelimitedField=ce.prototype.gb,ce.prototype.hb=function(){this.b!=5?(Ue("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ce.prototype.skipFixed32Field=ce.prototype.hb,ce.prototype.ib=function(){this.b!=1?(Ue("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ce.prototype.skipFixed64Field=ce.prototype.ib,ce.prototype.jb=function(){var s=this.c;do{if(!this.oa()){Ue("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=s&&(Ue("Unmatched end-group tag"),this.h=!0);break}this.C()}while(1)},ce.prototype.skipGroup=ce.prototype.jb,ce.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:Ue("Invalid wire encoding for field.")}},ce.prototype.skipField=ce.prototype.C,ce.prototype.Hc=function(s,l){this.v===null&&(this.v={}),se(!this.v[s]),this.v[s]=l},ce.prototype.registerReadCallback=ce.prototype.Hc,ce.prototype.Ic=function(s){return se(this.v!==null),s=this.v[s],se(s),s(this)},ce.prototype.runReadCallback=ce.prototype.Ic,ce.prototype.Yb=function(s,l){se(this.b==2);var y=this.a.c,N=this.a.o();N=this.a.B()+N,this.a.setEnd(N),l(s,this),this.a.Ma(N),this.a.setEnd(y)},ce.prototype.readMessage=ce.prototype.Yb,ce.prototype.Ub=function(s,l,y){se(this.b==3),se(this.c==s),y(l,this),this.h||this.b==4||(Ue("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ce.prototype.readGroup=ce.prototype.Ub,ce.prototype.Gb=function(){se(this.b==2);var s=this.a.o(),l=this.a.B(),y=l+s;return s=zr(this.a.Y(),l,s),this.a.Ma(y),s},ce.prototype.getFieldDecoder=ce.prototype.Gb,ce.prototype.P=function(){return se(this.b==0),this.a.da()},ce.prototype.readInt32=ce.prototype.P,ce.prototype.Wb=function(){return se(this.b==0),this.a.Ea()},ce.prototype.readInt32String=ce.prototype.Wb,ce.prototype.ba=function(){return se(this.b==0),this.a.sa()},ce.prototype.readInt64=ce.prototype.ba,ce.prototype.ca=function(){return se(this.b==0),this.a.Fa()},ce.prototype.readInt64String=ce.prototype.ca,ce.prototype.m=function(){return se(this.b==0),this.a.o()},ce.prototype.readUint32=ce.prototype.m,ce.prototype.Fc=function(){return se(this.b==0),this.a.O()},ce.prototype.readUint32String=ce.prototype.Fc,ce.prototype.ga=function(){return se(this.b==0),this.a.Ga()},ce.prototype.readUint64=ce.prototype.ga,ce.prototype.ha=function(){return se(this.b==0),this.a.Ha()},ce.prototype.readUint64String=ce.prototype.ha,ce.prototype.zc=function(){return se(this.b==0),this.a.Ia()},ce.prototype.readSint32=ce.prototype.zc,ce.prototype.Ac=function(){return se(this.b==0),this.a.Ja()},ce.prototype.readSint64=ce.prototype.Ac,ce.prototype.Bc=function(){return se(this.b==0),this.a.Ka()},ce.prototype.readSint64String=ce.prototype.Bc,ce.prototype.Rb=function(){return se(this.b==5),this.a.m()},ce.prototype.readFixed32=ce.prototype.Rb,ce.prototype.Sb=function(){return se(this.b==1),this.a.ga()},ce.prototype.readFixed64=ce.prototype.Sb,ce.prototype.Tb=function(){return se(this.b==1),this.a.ha()},ce.prototype.readFixed64String=ce.prototype.Tb,ce.prototype.vc=function(){return se(this.b==5),this.a.P()},ce.prototype.readSfixed32=ce.prototype.vc,ce.prototype.wc=function(){return se(this.b==5),this.a.P().toString()},ce.prototype.readSfixed32String=ce.prototype.wc,ce.prototype.xc=function(){return se(this.b==1),this.a.ba()},ce.prototype.readSfixed64=ce.prototype.xc,ce.prototype.yc=function(){return se(this.b==1),this.a.ca()},ce.prototype.readSfixed64String=ce.prototype.yc,ce.prototype.aa=function(){return se(this.b==5),this.a.aa()},ce.prototype.readFloat=ce.prototype.aa,ce.prototype.Z=function(){return se(this.b==1),this.a.Z()},ce.prototype.readDouble=ce.prototype.Z,ce.prototype.pa=function(){return se(this.b==0),!!this.a.o()},ce.prototype.readBool=ce.prototype.pa,ce.prototype.ra=function(){return se(this.b==0),this.a.sa()},ce.prototype.readEnum=ce.prototype.ra,ce.prototype.fa=function(){se(this.b==2);var s=this.a.o();return this.a.fa(s)},ce.prototype.readString=ce.prototype.fa,ce.prototype.qa=function(){se(this.b==2);var s=this.a.o();return this.a.qa(s)},ce.prototype.readBytes=ce.prototype.qa,ce.prototype.ia=function(){return se(this.b==0),this.a.ia()},ce.prototype.readVarintHash64=ce.prototype.ia,ce.prototype.Cc=function(){return se(this.b==0),this.a.fb()},ce.prototype.readSintHash64=ce.prototype.Cc,ce.prototype.w=function(s){return se(this.b==0),this.a.w(s)},ce.prototype.readSplitVarint64=ce.prototype.w,ce.prototype.ea=function(s){return se(this.b==0),this.a.w(function(l,y){return Ze(l,y,s)})},ce.prototype.readSplitZigzagVarint64=ce.prototype.ea,ce.prototype.$=function(){return se(this.b==1),this.a.$()},ce.prototype.readFixedHash64=ce.prototype.$,ce.prototype.ta=function(s){return se(this.b==1),this.a.ta(s)},ce.prototype.readSplitFixed64=ce.prototype.ta;function Bt(s,l){se(s.b==2);var y=s.a.o();y=s.a.B()+y;for(var N=[];s.a.B()<y;)N.push(l.call(s.a));return N}ce.prototype.gc=function(){return Bt(this,this.a.da)},ce.prototype.readPackedInt32=ce.prototype.gc,ce.prototype.hc=function(){return Bt(this,this.a.Ea)},ce.prototype.readPackedInt32String=ce.prototype.hc,ce.prototype.ic=function(){return Bt(this,this.a.sa)},ce.prototype.readPackedInt64=ce.prototype.ic,ce.prototype.jc=function(){return Bt(this,this.a.Fa)},ce.prototype.readPackedInt64String=ce.prototype.jc,ce.prototype.qc=function(){return Bt(this,this.a.o)},ce.prototype.readPackedUint32=ce.prototype.qc,ce.prototype.rc=function(){return Bt(this,this.a.O)},ce.prototype.readPackedUint32String=ce.prototype.rc,ce.prototype.sc=function(){return Bt(this,this.a.Ga)},ce.prototype.readPackedUint64=ce.prototype.sc,ce.prototype.tc=function(){return Bt(this,this.a.Ha)},ce.prototype.readPackedUint64String=ce.prototype.tc,ce.prototype.nc=function(){return Bt(this,this.a.Ia)},ce.prototype.readPackedSint32=ce.prototype.nc,ce.prototype.oc=function(){return Bt(this,this.a.Ja)},ce.prototype.readPackedSint64=ce.prototype.oc,ce.prototype.pc=function(){return Bt(this,this.a.Ka)},ce.prototype.readPackedSint64String=ce.prototype.pc,ce.prototype.bc=function(){return Bt(this,this.a.m)},ce.prototype.readPackedFixed32=ce.prototype.bc,ce.prototype.cc=function(){return Bt(this,this.a.ga)},ce.prototype.readPackedFixed64=ce.prototype.cc,ce.prototype.dc=function(){return Bt(this,this.a.ha)},ce.prototype.readPackedFixed64String=ce.prototype.dc,ce.prototype.kc=function(){return Bt(this,this.a.P)},ce.prototype.readPackedSfixed32=ce.prototype.kc,ce.prototype.lc=function(){return Bt(this,this.a.ba)},ce.prototype.readPackedSfixed64=ce.prototype.lc,ce.prototype.mc=function(){return Bt(this,this.a.ca)},ce.prototype.readPackedSfixed64String=ce.prototype.mc,ce.prototype.fc=function(){return Bt(this,this.a.aa)},ce.prototype.readPackedFloat=ce.prototype.fc,ce.prototype.$b=function(){return Bt(this,this.a.Z)},ce.prototype.readPackedDouble=ce.prototype.$b,ce.prototype.Zb=function(){return Bt(this,this.a.pa)},ce.prototype.readPackedBool=ce.prototype.Zb,ce.prototype.ac=function(){return Bt(this,this.a.ra)},ce.prototype.readPackedEnum=ce.prototype.ac,ce.prototype.uc=function(){return Bt(this,this.a.ia)},ce.prototype.readPackedVarintHash64=ce.prototype.uc,ce.prototype.ec=function(){return Bt(this,this.a.$)},ce.prototype.readPackedFixedHash64=ce.prototype.ec;function Xt(s,l,y,N,ie){this.ma=s,this.Ba=l,this.la=y,this.Na=N,this.na=ie}z("jspb.ExtensionFieldInfo",Xt,void 0);function dr(s,l,y,N,ie,Pe){this.Za=s,this.za=l,this.Aa=y,this.Wa=N,this.Ab=ie,this.Nb=Pe}z("jspb.ExtensionFieldBinaryInfo",dr,void 0),Xt.prototype.F=function(){return!!this.la},Xt.prototype.isMessageType=Xt.prototype.F;function je(){}z("jspb.Message",je,void 0),je.GENERATE_TO_OBJECT=!0,je.GENERATE_FROM_OBJECT=!0;var gr=typeof Uint8Array=="function";je.prototype.Ib=function(){return this.b},je.prototype.getJsPbMessageId=je.prototype.Ib,je.initialize=function(s,l,y,N,ie,Pe){s.f=null,l||(l=y?[y]:[]),s.b=y?String(y):void 0,s.D=y===0?-1:0,s.u=l;e:{if(y=s.u.length,l=-1,y&&(l=y-1,y=s.u[l],!(y===null||typeof y!="object"||Array.isArray(y)||gr&&y instanceof Uint8Array))){s.G=l-s.D,s.i=y;break e}-1<N?(s.G=Math.max(N,l+1-s.D),s.i=null):s.G=Number.MAX_VALUE}if(s.a={},ie)for(N=0;N<ie.length;N++)l=ie[N],l<s.G?(l+=s.D,s.u[l]=s.u[l]||Qt):($t(s),s.i[l]=s.i[l]||Qt);if(Pe&&Pe.length)for(N=0;N<Pe.length;N++)oo(s,Pe[N])};var Qt=Object.freeze?Object.freeze([]):[];function $t(s){var l=s.G+s.D;s.u[l]||(s.i=s.u[l]={})}function ar(s,l,y){for(var N=[],ie=0;ie<s.length;ie++)N[ie]=l.call(s[ie],y,s[ie]);return N}je.toObjectList=ar,je.toObjectExtension=function(s,l,y,N,ie){for(var Pe in y){var De=y[Pe],bt=N.call(s,De);if(bt!=null){for(var Rt in De.Ba)if(De.Ba.hasOwnProperty(Rt))break;l[Rt]=De.Na?De.na?ar(bt,De.Na,ie):De.Na(ie,bt):bt}}},je.serializeBinaryExtensions=function(s,l,y,N){for(var ie in y){var Pe=y[ie],De=Pe.Za;if(!Pe.Aa)throw Error("Message extension present that was generated without binary serialization support");var bt=N.call(s,De);if(bt!=null)if(De.F())if(Pe.Wa)Pe.Aa.call(l,De.ma,bt,Pe.Wa);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else Pe.Aa.call(l,De.ma,bt)}},je.readBinaryExtension=function(s,l,y,N,ie){var Pe=y[l.c];if(Pe){if(y=Pe.Za,!Pe.za)throw Error("Deserializing extension whose generated code does not support binary format");if(y.F()){var De=new y.la;Pe.za.call(l,De,Pe.Ab)}else De=Pe.za.call(l);y.na&&!Pe.Nb?(l=N.call(s,y))?l.push(De):ie.call(s,y,[De]):ie.call(s,y,De)}else l.C()};function Jt(s,l){if(l<s.G){l+=s.D;var y=s.u[l];return y===Qt?s.u[l]=[]:y}if(s.i)return y=s.i[l],y===Qt?s.i[l]=[]:y}je.getField=Jt,je.getRepeatedField=function(s,l){return Jt(s,l)};function Ht(s,l){return s=Jt(s,l),s==null?s:+s}je.getOptionalFloatingPointField=Ht;function yr(s,l){return s=Jt(s,l),s==null?s:!!s}je.getBooleanField=yr,je.getRepeatedFloatingPointField=function(s,l){var y=Jt(s,l);if(s.a||(s.a={}),!s.a[l]){for(var N=0;N<y.length;N++)y[N]=+y[N];s.a[l]=!0}return y},je.getRepeatedBooleanField=function(s,l){var y=Jt(s,l);if(s.a||(s.a={}),!s.a[l]){for(var N=0;N<y.length;N++)y[N]=!!y[N];s.a[l]=!0}return y};function Rr(s){return s==null||typeof s=="string"?s:gr&&s instanceof Uint8Array?dt(s):(Ue("Cannot coerce to b64 string: "+K(s)),null)}je.bytesAsB64=Rr;function ro(s){return s==null||s instanceof Uint8Array?s:typeof s=="string"?nt(s):(Ue("Cannot coerce to Uint8Array: "+K(s)),null)}je.bytesAsU8=ro,je.bytesListAsB64=function(s){return jr(s),s.length&&typeof s[0]!="string"?J(s,Rr):s},je.bytesListAsU8=function(s){return jr(s),!s.length||s[0]instanceof Uint8Array?s:J(s,ro)};function jr(s){if(s&&1<s.length){var l=K(s[0]);j(s,function(y){K(y)!=l&&Ue("Inconsistent type in JSPB repeated field array. Got "+K(y)+" expected "+l)})}}function Dr(s,l,y){return s=Jt(s,l),s==null?y:s}je.getFieldWithDefault=Dr,je.getBooleanFieldWithDefault=function(s,l,y){return s=yr(s,l),s==null?y:s},je.getFloatingPointFieldWithDefault=function(s,l,y){return s=Ht(s,l),s==null?y:s},je.getFieldProto3=Dr,je.getMapField=function(s,l,y,N){if(s.f||(s.f={}),l in s.f)return s.f[l];var ie=Jt(s,l);if(!ie){if(y)return;ie=[],Cr(s,l,ie)}return s.f[l]=new Je(ie,N)};function Cr(s,l,y){return ct(s,je),l<s.G?s.u[l+s.D]=y:($t(s),s.i[l]=y),s}je.setField=Cr,je.setProto3IntField=function(s,l,y){return hr(s,l,y,0)},je.setProto3FloatField=function(s,l,y){return hr(s,l,y,0)},je.setProto3BooleanField=function(s,l,y){return hr(s,l,y,!1)},je.setProto3StringField=function(s,l,y){return hr(s,l,y,"")},je.setProto3BytesField=function(s,l,y){return hr(s,l,y,"")},je.setProto3EnumField=function(s,l,y){return hr(s,l,y,0)},je.setProto3StringIntField=function(s,l,y){return hr(s,l,y,"0")};function hr(s,l,y,N){return ct(s,je),y!==N?Cr(s,l,y):l<s.G?s.u[l+s.D]=null:($t(s),delete s.i[l]),s}je.addToRepeatedField=function(s,l,y,N){return ct(s,je),l=Jt(s,l),N!=null?l.splice(N,0,y):l.push(y),s};function so(s,l,y,N){return ct(s,je),(y=oo(s,y))&&y!==l&&N!==void 0&&(s.f&&y in s.f&&(s.f[y]=void 0),Cr(s,y,void 0)),Cr(s,l,N)}je.setOneofField=so;function oo(s,l){for(var y,N,ie=0;ie<l.length;ie++){var Pe=l[ie],De=Jt(s,Pe);De!=null&&(y=Pe,N=De,Cr(s,Pe,void 0))}return y?(Cr(s,y,N),y):0}je.computeOneofCase=oo,je.getWrapperField=function(s,l,y,N){if(s.f||(s.f={}),!s.f[y]){var ie=Jt(s,y);(N||ie)&&(s.f[y]=new l(ie))}return s.f[y]},je.getRepeatedWrapperField=function(s,l,y){return eo(s,l,y),l=s.f[y],l==Qt&&(l=s.f[y]=[]),l};function eo(s,l,y){if(s.f||(s.f={}),!s.f[y]){for(var N=Jt(s,y),ie=[],Pe=0;Pe<N.length;Pe++)ie[Pe]=new l(N[Pe]);s.f[y]=ie}}je.setWrapperField=function(s,l,y){ct(s,je),s.f||(s.f={});var N=y&&y.g();return s.f[l]=y,Cr(s,l,N)},je.setOneofWrapperField=function(s,l,y,N){ct(s,je),s.f||(s.f={});var ie=N&&N.g();return s.f[l]=N,so(s,l,y,ie)},je.setRepeatedWrapperField=function(s,l,y){ct(s,je),s.f||(s.f={}),y=y||[];for(var N=[],ie=0;ie<y.length;ie++)N[ie]=y[ie].g();return s.f[l]=y,Cr(s,l,N)},je.addToRepeatedWrapperField=function(s,l,y,N,ie){eo(s,N,l);var Pe=s.f[l];return Pe||(Pe=s.f[l]=[]),y=y||new N,s=Jt(s,l),ie!=null?(Pe.splice(ie,0,y),s.splice(ie,0,y.g())):(Pe.push(y),s.push(y.g())),y},je.toMap=function(s,l,y,N){for(var ie={},Pe=0;Pe<s.length;Pe++)ie[l.call(s[Pe])]=y?y.call(s[Pe],N,s[Pe]):s[Pe];return ie};function Zr(s){if(s.f)for(var l in s.f){var y=s.f[l];if(Array.isArray(y))for(var N=0;N<y.length;N++)y[N]&&y[N].g();else y&&y.g()}}je.prototype.g=function(){return Zr(this),this.u},je.prototype.toArray=je.prototype.g,je.prototype.toString=function(){return Zr(this),this.u.toString()},je.prototype.getExtension=function(s){if(this.i){this.f||(this.f={});var l=s.ma;if(s.na){if(s.F())return this.f[l]||(this.f[l]=J(this.i[l]||[],function(y){return new s.la(y)})),this.f[l]}else if(s.F())return!this.f[l]&&this.i[l]&&(this.f[l]=new s.la(this.i[l])),this.f[l];return this.i[l]}},je.prototype.getExtension=je.prototype.getExtension,je.prototype.Kc=function(s,l){this.f||(this.f={}),$t(this);var y=s.ma;return s.na?(l=l||[],s.F()?(this.f[y]=l,this.i[y]=J(l,function(N){return N.g()})):this.i[y]=l):s.F()?(this.f[y]=l,this.i[y]=l&&l.g()):this.i[y]=l,this},je.prototype.setExtension=je.prototype.Kc,je.difference=function(s,l){if(!(s instanceof l.constructor))throw Error("Messages have different types.");var y=s.g();l=l.g();var N=[],ie=0,Pe=y.length>l.length?y.length:l.length;for(s.b&&(N[0]=s.b,ie=1);ie<Pe;ie++)Gr(y[ie],l[ie])||(N[ie]=l[ie]);return new s.constructor(N)},je.equals=function(s,l){return s==l||!(!s||!l)&&s instanceof l.constructor&&Gr(s.g(),l.g())};function jt(s,l){s=s||{},l=l||{};var y={},N;for(N in s)y[N]=0;for(N in l)y[N]=0;for(N in y)if(!Gr(s[N],l[N]))return!1;return!0}je.compareExtensions=jt;function Gr(s,l){if(s==l)return!0;if(!L(s)||!L(l))return typeof s=="number"&&isNaN(s)||typeof l=="number"&&isNaN(l)?String(s)==String(l):!1;if(s.constructor!=l.constructor)return!1;if(gr&&s.constructor===Uint8Array){if(s.length!=l.length)return!1;for(var y=0;y<s.length;y++)if(s[y]!=l[y])return!1;return!0}if(s.constructor===Array){var N=void 0,ie=void 0,Pe=Math.max(s.length,l.length);for(y=0;y<Pe;y++){var De=s[y],bt=l[y];if(De&&De.constructor==Object&&(se(N===void 0),se(y===s.length-1),N=De,De=void 0),bt&&bt.constructor==Object&&(se(ie===void 0),se(y===l.length-1),ie=bt,bt=void 0),!Gr(De,bt))return!1}return N||ie?(N=N||{},ie=ie||{},jt(N,ie)):!0}if(s.constructor===Object)return jt(s,l);throw Error("Invalid type in JSPB array")}je.compareFields=Gr,je.prototype.Bb=function(){return Br(this)},je.prototype.cloneMessage=je.prototype.Bb,je.prototype.clone=function(){return Br(this)},je.prototype.clone=je.prototype.clone,je.clone=function(s){return Br(s)};function Br(s){return new s.constructor(to(s.g()))}je.copyInto=function(s,l){ct(s,je),ct(l,je),se(s.constructor==l.constructor,"Copy source and target message should have the same type."),s=Br(s);for(var y=l.g(),N=s.g(),ie=y.length=0;ie<N.length;ie++)y[ie]=N[ie];l.f=s.f,l.i=s.i};function to(s){if(Array.isArray(s)){for(var l=Array(s.length),y=0;y<s.length;y++){var N=s[y];N!=null&&(l[y]=typeof N=="object"?to(se(N)):N)}return l}if(gr&&s instanceof Uint8Array)return new Uint8Array(s);l={};for(y in s)N=s[y],N!=null&&(l[y]=typeof N=="object"?to(se(N)):N);return l}je.registerMessageType=function(s,l){l.we=s};var cr={dump:function(s){return ct(s,je,"jspb.Message instance expected"),se(s.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),cr.X(s)}};z("jspb.debug.dump",cr.dump,void 0),cr.X=function(s){var l=K(s);if(l=="number"||l=="string"||l=="boolean"||l=="null"||l=="undefined"||typeof Uint8Array<"u"&&s instanceof Uint8Array)return s;if(l=="array")return xe(s),J(s,cr.X);if(s instanceof Je){var y={};s=s.entries();for(var N=s.next();!N.done;N=s.next())y[N.value[0]]=cr.X(N.value[1]);return y}ct(s,je,"Only messages expected: "+s),l=s.constructor;var ie={$name:l.name||l.displayName};for(bt in l.prototype){var Pe=/^get([A-Z]\w*)/.exec(bt);if(Pe&&bt!="getExtension"&&bt!="getJsPbMessageId"){var De="has"+Pe[1];(!s[De]||s[De]())&&(De=s[bt](),ie[cr.$a(Pe[1])]=cr.X(De))}}if(s.extensionObject_)return ie.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",ie;for(N in l.extensions)if(/^\d+$/.test(N)){De=l.extensions[N];var bt=s.getExtension(De);Pe=void 0,De=De.Ba;var Rt=[],ao=0;for(Pe in De)Rt[ao++]=Pe;Pe=Rt[0],bt!=null&&(y||(y=ie.$extensions={}),y[cr.$a(Pe)]=cr.X(bt))}return ie},cr.$a=function(s){return s.replace(/^[A-Z]/,function(l){return l.toLowerCase()})};function He(){this.a=[]}z("jspb.BinaryEncoder",He,void 0),He.prototype.length=function(){return this.a.length},He.prototype.length=He.prototype.length,He.prototype.end=function(){var s=this.a;return this.a=[],s},He.prototype.end=He.prototype.end,He.prototype.l=function(s,l){for(se(s==Math.floor(s)),se(l==Math.floor(l)),se(0<=s&&4294967296>s),se(0<=l&&4294967296>l);0<l||127<s;)this.a.push(s&127|128),s=(s>>>7|l<<25)>>>0,l>>>=7;this.a.push(s)},He.prototype.writeSplitVarint64=He.prototype.l,He.prototype.A=function(s,l){se(s==Math.floor(s)),se(l==Math.floor(l)),se(0<=s&&4294967296>s),se(0<=l&&4294967296>l),this.s(s),this.s(l)},He.prototype.writeSplitFixed64=He.prototype.A,He.prototype.j=function(s){for(se(s==Math.floor(s)),se(0<=s&&4294967296>s);127<s;)this.a.push(s&127|128),s>>>=7;this.a.push(s)},He.prototype.writeUnsignedVarint32=He.prototype.j,He.prototype.M=function(s){if(se(s==Math.floor(s)),se(-2147483648<=s&&2147483648>s),0<=s)this.j(s);else{for(var l=0;9>l;l++)this.a.push(s&127|128),s>>=7;this.a.push(1)}},He.prototype.writeSignedVarint32=He.prototype.M,He.prototype.va=function(s){se(s==Math.floor(s)),se(0<=s&&18446744073709552e3>s),tr(s),this.l(xt,ut)},He.prototype.writeUnsignedVarint64=He.prototype.va,He.prototype.ua=function(s){se(s==Math.floor(s)),se(-9223372036854776e3<=s&&9223372036854776e3>s),tr(s),this.l(xt,ut)},He.prototype.writeSignedVarint64=He.prototype.ua,He.prototype.wa=function(s){se(s==Math.floor(s)),se(-2147483648<=s&&2147483648>s),this.j((s<<1^s>>31)>>>0)},He.prototype.writeZigzagVarint32=He.prototype.wa,He.prototype.xa=function(s){se(s==Math.floor(s)),se(-9223372036854776e3<=s&&9223372036854776e3>s),fr(s),this.l(xt,ut)},He.prototype.writeZigzagVarint64=He.prototype.xa,He.prototype.Ta=function(s){this.W(Wt(s))},He.prototype.writeZigzagVarint64String=He.prototype.Ta,He.prototype.W=function(s){var l=this;rr(s),we(xt,ut,function(y,N){l.l(y>>>0,N>>>0)})},He.prototype.writeZigzagVarintHash64=He.prototype.W,He.prototype.be=function(s){se(s==Math.floor(s)),se(0<=s&&256>s),this.a.push(s>>>0&255)},He.prototype.writeUint8=He.prototype.be,He.prototype.ae=function(s){se(s==Math.floor(s)),se(0<=s&&65536>s),this.a.push(s>>>0&255),this.a.push(s>>>8&255)},He.prototype.writeUint16=He.prototype.ae,He.prototype.s=function(s){se(s==Math.floor(s)),se(0<=s&&4294967296>s),this.a.push(s>>>0&255),this.a.push(s>>>8&255),this.a.push(s>>>16&255),this.a.push(s>>>24&255)},He.prototype.writeUint32=He.prototype.s,He.prototype.V=function(s){se(s==Math.floor(s)),se(0<=s&&18446744073709552e3>s),nr(s),this.s(xt),this.s(ut)},He.prototype.writeUint64=He.prototype.V,He.prototype.Qc=function(s){se(s==Math.floor(s)),se(-128<=s&&128>s),this.a.push(s>>>0&255)},He.prototype.writeInt8=He.prototype.Qc,He.prototype.Pc=function(s){se(s==Math.floor(s)),se(-32768<=s&&32768>s),this.a.push(s>>>0&255),this.a.push(s>>>8&255)},He.prototype.writeInt16=He.prototype.Pc,He.prototype.S=function(s){se(s==Math.floor(s)),se(-2147483648<=s&&2147483648>s),this.a.push(s>>>0&255),this.a.push(s>>>8&255),this.a.push(s>>>16&255),this.a.push(s>>>24&255)},He.prototype.writeInt32=He.prototype.S,He.prototype.T=function(s){se(s==Math.floor(s)),se(-9223372036854776e3<=s&&9223372036854776e3>s),tr(s),this.A(xt,ut)},He.prototype.writeInt64=He.prototype.T,He.prototype.ka=function(s){se(s==Math.floor(s)),se(-9223372036854776e3<=+s&&9223372036854776e3>+s),rr(Wt(s)),this.A(xt,ut)},He.prototype.writeInt64String=He.prototype.ka,He.prototype.L=function(s){se(s===1/0||s===-1/0||isNaN(s)||-34028234663852886e22<=s&&34028234663852886e22>=s),Lr(s),this.s(xt)},He.prototype.writeFloat=He.prototype.L,He.prototype.J=function(s){se(s===1/0||s===-1/0||isNaN(s)||-17976931348623157e292<=s&&17976931348623157e292>=s),ur(s),this.s(xt),this.s(ut)},He.prototype.writeDouble=He.prototype.J,He.prototype.I=function(s){se(typeof s=="boolean"||typeof s=="number"),this.a.push(s?1:0)},He.prototype.writeBool=He.prototype.I,He.prototype.R=function(s){se(s==Math.floor(s)),se(-2147483648<=s&&2147483648>s),this.M(s)},He.prototype.writeEnum=He.prototype.R,He.prototype.ja=function(s){this.a.push.apply(this.a,s)},He.prototype.writeBytes=He.prototype.ja,He.prototype.N=function(s){rr(s),this.l(xt,ut)},He.prototype.writeVarintHash64=He.prototype.N,He.prototype.K=function(s){rr(s),this.s(xt),this.s(ut)},He.prototype.writeFixedHash64=He.prototype.K,He.prototype.U=function(s){var l=this.a.length;ne(s);for(var y=0;y<s.length;y++){var N=s.charCodeAt(y);if(128>N)this.a.push(N);else if(2048>N)this.a.push(N>>6|192),this.a.push(N&63|128);else if(65536>N)if(55296<=N&&56319>=N&&y+1<s.length){var ie=s.charCodeAt(y+1);56320<=ie&&57343>=ie&&(N=1024*(N-55296)+ie-56320+65536,this.a.push(N>>18|240),this.a.push(N>>12&63|128),this.a.push(N>>6&63|128),this.a.push(N&63|128),y++)}else this.a.push(N>>12|224),this.a.push(N>>6&63|128),this.a.push(N&63|128)}return this.a.length-l},He.prototype.writeString=He.prototype.U;function D(s,l){this.lo=s,this.hi=l}z("jspb.arith.UInt64",D,void 0),D.prototype.cmp=function(s){return this.hi<s.hi||this.hi==s.hi&&this.lo<s.lo?-1:this.hi==s.hi&&this.lo==s.lo?0:1},D.prototype.cmp=D.prototype.cmp,D.prototype.La=function(){return new D((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},D.prototype.rightShift=D.prototype.La,D.prototype.Da=function(){return new D(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},D.prototype.leftShift=D.prototype.Da,D.prototype.cb=function(){return!!(this.hi&2147483648)},D.prototype.msb=D.prototype.cb,D.prototype.Ob=function(){return!!(this.lo&1)},D.prototype.lsb=D.prototype.Ob,D.prototype.Ua=function(){return this.lo==0&&this.hi==0},D.prototype.zero=D.prototype.Ua,D.prototype.add=function(s){return new D((this.lo+s.lo&4294967295)>>>0>>>0,((this.hi+s.hi&4294967295)>>>0)+(4294967296<=this.lo+s.lo?1:0)>>>0)},D.prototype.add=D.prototype.add,D.prototype.sub=function(s){return new D((this.lo-s.lo&4294967295)>>>0>>>0,((this.hi-s.hi&4294967295)>>>0)-(0>this.lo-s.lo?1:0)>>>0)},D.prototype.sub=D.prototype.sub;function be(s,l){var y=s&65535;s>>>=16;var N=l&65535,ie=l>>>16;for(l=y*N+65536*(y*ie&65535)+65536*(s*N&65535),y=s*ie+(y*ie>>>16)+(s*N>>>16);4294967296<=l;)l-=4294967296,y+=1;return new D(l>>>0,y>>>0)}D.mul32x32=be,D.prototype.eb=function(s){var l=be(this.lo,s);return s=be(this.hi,s),s.hi=s.lo,s.lo=0,l.add(s)},D.prototype.mul=D.prototype.eb,D.prototype.Xa=function(s){if(s==0)return[];var l=new D(0,0),y=new D(this.lo,this.hi);s=new D(s,0);for(var N=new D(1,0);!s.cb();)s=s.Da(),N=N.Da();for(;!N.Ua();)0>=s.cmp(y)&&(l=l.add(N),y=y.sub(s)),s=s.La(),N=N.La();return[l,y]},D.prototype.div=D.prototype.Xa,D.prototype.toString=function(){for(var s="",l=this;!l.Ua();){l=l.Xa(10);var y=l[0];s=l[1].lo+s,l=y}return s==""&&(s="0"),s},D.prototype.toString=D.prototype.toString;function Fe(s){for(var l=new D(0,0),y=new D(0,0),N=0;N<s.length;N++){if("0">s[N]||"9"<s[N])return null;y.lo=parseInt(s[N],10),l=l.eb(10).add(y)}return l}D.fromString=Fe,D.prototype.clone=function(){return new D(this.lo,this.hi)},D.prototype.clone=D.prototype.clone;function Ge(s,l){this.lo=s,this.hi=l}z("jspb.arith.Int64",Ge,void 0),Ge.prototype.add=function(s){return new Ge((this.lo+s.lo&4294967295)>>>0>>>0,((this.hi+s.hi&4294967295)>>>0)+(4294967296<=this.lo+s.lo?1:0)>>>0)},Ge.prototype.add=Ge.prototype.add,Ge.prototype.sub=function(s){return new Ge((this.lo-s.lo&4294967295)>>>0>>>0,((this.hi-s.hi&4294967295)>>>0)-(0>this.lo-s.lo?1:0)>>>0)},Ge.prototype.sub=Ge.prototype.sub,Ge.prototype.clone=function(){return new Ge(this.lo,this.hi)},Ge.prototype.clone=Ge.prototype.clone,Ge.prototype.toString=function(){var s=(this.hi&2147483648)!=0,l=new D(this.lo,this.hi);return s&&(l=new D(0,0).sub(l)),(s?"-":"")+l.toString()},Ge.prototype.toString=Ge.prototype.toString;function ze(s){var l=0<s.length&&s[0]=="-";return l&&(s=s.substring(1)),s=Fe(s),s===null?null:(l&&(s=new D(0,0).sub(s)),new Ge(s.lo,s.hi))}Ge.fromString=ze;function $(){this.c=[],this.b=0,this.a=new He,this.h=[]}z("jspb.BinaryWriter",$,void 0);function ot(s,l){var y=s.a.end();s.c.push(y),s.c.push(l),s.b+=y.length+l.length}function pt(s,l){return it(s,l,2),l=s.a.end(),s.c.push(l),s.b+=l.length,l.push(s.b),l}function lt(s,l){var y=l.pop();for(y=s.b+s.a.length()-y,se(0<=y);127<y;)l.push(y&127|128),y>>>=7,s.b++;l.push(y),s.b++}$.prototype.pb=function(s,l,y){ot(this,s.subarray(l,y))},$.prototype.writeSerializedMessage=$.prototype.pb,$.prototype.Pb=function(s,l,y){s!=null&&l!=null&&y!=null&&this.pb(s,l,y)},$.prototype.maybeWriteSerializedMessage=$.prototype.Pb,$.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},$.prototype.reset=$.prototype.reset,$.prototype.ab=function(){se(this.h.length==0);for(var s=new Uint8Array(this.b+this.a.length()),l=this.c,y=l.length,N=0,ie=0;ie<y;ie++){var Pe=l[ie];s.set(Pe,N),N+=Pe.length}return l=this.a.end(),s.set(l,N),N+=l.length,se(N==s.length),this.c=[s],s},$.prototype.getResultBuffer=$.prototype.ab,$.prototype.Kb=function(s){return dt(this.ab(),s)},$.prototype.getResultBase64String=$.prototype.Kb,$.prototype.Va=function(s){this.h.push(pt(this,s))},$.prototype.beginSubMessage=$.prototype.Va,$.prototype.Ya=function(){se(0<=this.h.length),lt(this,this.h.pop())},$.prototype.endSubMessage=$.prototype.Ya;function it(s,l,y){se(1<=l&&l==Math.floor(l)),s.a.j(8*l+y)}$.prototype.Nc=function(s,l,y){switch(s){case 1:this.J(l,y);break;case 2:this.L(l,y);break;case 3:this.T(l,y);break;case 4:this.V(l,y);break;case 5:this.S(l,y);break;case 6:this.Qa(l,y);break;case 7:this.Pa(l,y);break;case 8:this.I(l,y);break;case 9:this.U(l,y);break;case 10:Ue("Group field type not supported in writeAny()");break;case 11:Ue("Message field type not supported in writeAny()");break;case 12:this.ja(l,y);break;case 13:this.s(l,y);break;case 14:this.R(l,y);break;case 15:this.Ra(l,y);break;case 16:this.Sa(l,y);break;case 17:this.rb(l,y);break;case 18:this.sb(l,y);break;case 30:this.K(l,y);break;case 31:this.N(l,y);break;default:Ue("Invalid field type in writeAny()")}},$.prototype.writeAny=$.prototype.Nc;function Er(s,l,y){y!=null&&(it(s,l,0),s.a.j(y))}function qt(s,l,y){y!=null&&(it(s,l,0),s.a.M(y))}$.prototype.S=function(s,l){l!=null&&(se(-2147483648<=l&&2147483648>l),qt(this,s,l))},$.prototype.writeInt32=$.prototype.S,$.prototype.ob=function(s,l){l!=null&&(l=parseInt(l,10),se(-2147483648<=l&&2147483648>l),qt(this,s,l))},$.prototype.writeInt32String=$.prototype.ob,$.prototype.T=function(s,l){l!=null&&(se(-9223372036854776e3<=l&&9223372036854776e3>l),l!=null&&(it(this,s,0),this.a.ua(l)))},$.prototype.writeInt64=$.prototype.T,$.prototype.ka=function(s,l){l!=null&&(l=ze(l),it(this,s,0),this.a.l(l.lo,l.hi))},$.prototype.writeInt64String=$.prototype.ka,$.prototype.s=function(s,l){l!=null&&(se(0<=l&&4294967296>l),Er(this,s,l))},$.prototype.writeUint32=$.prototype.s,$.prototype.ub=function(s,l){l!=null&&(l=parseInt(l,10),se(0<=l&&4294967296>l),Er(this,s,l))},$.prototype.writeUint32String=$.prototype.ub,$.prototype.V=function(s,l){l!=null&&(se(0<=l&&18446744073709552e3>l),l!=null&&(it(this,s,0),this.a.va(l)))},$.prototype.writeUint64=$.prototype.V,$.prototype.vb=function(s,l){l!=null&&(l=Fe(l),it(this,s,0),this.a.l(l.lo,l.hi))},$.prototype.writeUint64String=$.prototype.vb,$.prototype.rb=function(s,l){l!=null&&(se(-2147483648<=l&&2147483648>l),l!=null&&(it(this,s,0),this.a.wa(l)))},$.prototype.writeSint32=$.prototype.rb,$.prototype.sb=function(s,l){l!=null&&(se(-9223372036854776e3<=l&&9223372036854776e3>l),l!=null&&(it(this,s,0),this.a.xa(l)))},$.prototype.writeSint64=$.prototype.sb,$.prototype.$d=function(s,l){l!=null&&l!=null&&(it(this,s,0),this.a.W(l))},$.prototype.writeSintHash64=$.prototype.$d,$.prototype.Zd=function(s,l){l!=null&&l!=null&&(it(this,s,0),this.a.Ta(l))},$.prototype.writeSint64String=$.prototype.Zd,$.prototype.Pa=function(s,l){l!=null&&(se(0<=l&&4294967296>l),it(this,s,5),this.a.s(l))},$.prototype.writeFixed32=$.prototype.Pa,$.prototype.Qa=function(s,l){l!=null&&(se(0<=l&&18446744073709552e3>l),it(this,s,1),this.a.V(l))},$.prototype.writeFixed64=$.prototype.Qa,$.prototype.nb=function(s,l){l!=null&&(l=Fe(l),it(this,s,1),this.a.A(l.lo,l.hi))},$.prototype.writeFixed64String=$.prototype.nb,$.prototype.Ra=function(s,l){l!=null&&(se(-2147483648<=l&&2147483648>l),it(this,s,5),this.a.S(l))},$.prototype.writeSfixed32=$.prototype.Ra,$.prototype.Sa=function(s,l){l!=null&&(se(-9223372036854776e3<=l&&9223372036854776e3>l),it(this,s,1),this.a.T(l))},$.prototype.writeSfixed64=$.prototype.Sa,$.prototype.qb=function(s,l){l!=null&&(l=ze(l),it(this,s,1),this.a.A(l.lo,l.hi))},$.prototype.writeSfixed64String=$.prototype.qb,$.prototype.L=function(s,l){l!=null&&(it(this,s,5),this.a.L(l))},$.prototype.writeFloat=$.prototype.L,$.prototype.J=function(s,l){l!=null&&(it(this,s,1),this.a.J(l))},$.prototype.writeDouble=$.prototype.J,$.prototype.I=function(s,l){l!=null&&(se(typeof l=="boolean"||typeof l=="number"),it(this,s,0),this.a.I(l))},$.prototype.writeBool=$.prototype.I,$.prototype.R=function(s,l){l!=null&&(se(-2147483648<=l&&2147483648>l),it(this,s,0),this.a.M(l))},$.prototype.writeEnum=$.prototype.R,$.prototype.U=function(s,l){l!=null&&(s=pt(this,s),this.a.U(l),lt(this,s))},$.prototype.writeString=$.prototype.U,$.prototype.ja=function(s,l){l!=null&&(l=lr(l),it(this,s,2),this.a.j(l.length),ot(this,l))},$.prototype.writeBytes=$.prototype.ja,$.prototype.Rc=function(s,l,y){l!=null&&(s=pt(this,s),y(l,this),lt(this,s))},$.prototype.writeMessage=$.prototype.Rc,$.prototype.Sc=function(s,l,y){l!=null&&(it(this,1,3),it(this,2,0),this.a.M(s),s=pt(this,3),y(l,this),lt(this,s),it(this,1,4))},$.prototype.writeMessageSet=$.prototype.Sc,$.prototype.Oc=function(s,l,y){l!=null&&(it(this,s,3),y(l,this),it(this,s,4))},$.prototype.writeGroup=$.prototype.Oc,$.prototype.K=function(s,l){l!=null&&(se(l.length==8),it(this,s,1),this.a.K(l))},$.prototype.writeFixedHash64=$.prototype.K,$.prototype.N=function(s,l){l!=null&&(se(l.length==8),it(this,s,0),this.a.N(l))},$.prototype.writeVarintHash64=$.prototype.N,$.prototype.A=function(s,l,y){it(this,s,1),this.a.A(l,y)},$.prototype.writeSplitFixed64=$.prototype.A,$.prototype.l=function(s,l,y){it(this,s,0),this.a.l(l,y)},$.prototype.writeSplitVarint64=$.prototype.l,$.prototype.tb=function(s,l,y){it(this,s,0);var N=this.a;we(l,y,function(ie,Pe){N.l(ie>>>0,Pe>>>0)})},$.prototype.writeSplitZigzagVarint64=$.prototype.tb,$.prototype.Ed=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)qt(this,s,l[y])},$.prototype.writeRepeatedInt32=$.prototype.Ed,$.prototype.Fd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.ob(s,l[y])},$.prototype.writeRepeatedInt32String=$.prototype.Fd,$.prototype.Gd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++){var N=l[y];N!=null&&(it(this,s,0),this.a.ua(N))}},$.prototype.writeRepeatedInt64=$.prototype.Gd,$.prototype.Qd=function(s,l,y,N){if(l!=null)for(var ie=0;ie<l.length;ie++)this.A(s,y(l[ie]),N(l[ie]))},$.prototype.writeRepeatedSplitFixed64=$.prototype.Qd,$.prototype.Rd=function(s,l,y,N){if(l!=null)for(var ie=0;ie<l.length;ie++)this.l(s,y(l[ie]),N(l[ie]))},$.prototype.writeRepeatedSplitVarint64=$.prototype.Rd,$.prototype.Sd=function(s,l,y,N){if(l!=null)for(var ie=0;ie<l.length;ie++)this.tb(s,y(l[ie]),N(l[ie]))},$.prototype.writeRepeatedSplitZigzagVarint64=$.prototype.Sd,$.prototype.Hd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.ka(s,l[y])},$.prototype.writeRepeatedInt64String=$.prototype.Hd,$.prototype.Ud=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)Er(this,s,l[y])},$.prototype.writeRepeatedUint32=$.prototype.Ud,$.prototype.Vd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.ub(s,l[y])},$.prototype.writeRepeatedUint32String=$.prototype.Vd,$.prototype.Wd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++){var N=l[y];N!=null&&(it(this,s,0),this.a.va(N))}},$.prototype.writeRepeatedUint64=$.prototype.Wd,$.prototype.Xd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.vb(s,l[y])},$.prototype.writeRepeatedUint64String=$.prototype.Xd,$.prototype.Md=function(s,l){if(l!=null)for(var y=0;y<l.length;y++){var N=l[y];N!=null&&(it(this,s,0),this.a.wa(N))}},$.prototype.writeRepeatedSint32=$.prototype.Md,$.prototype.Nd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++){var N=l[y];N!=null&&(it(this,s,0),this.a.xa(N))}},$.prototype.writeRepeatedSint64=$.prototype.Nd,$.prototype.Od=function(s,l){if(l!=null)for(var y=0;y<l.length;y++){var N=l[y];N!=null&&(it(this,s,0),this.a.Ta(N))}},$.prototype.writeRepeatedSint64String=$.prototype.Od,$.prototype.Pd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++){var N=l[y];N!=null&&(it(this,s,0),this.a.W(N))}},$.prototype.writeRepeatedSintHash64=$.prototype.Pd,$.prototype.yd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.Pa(s,l[y])},$.prototype.writeRepeatedFixed32=$.prototype.yd,$.prototype.zd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.Qa(s,l[y])},$.prototype.writeRepeatedFixed64=$.prototype.zd,$.prototype.Ad=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.nb(s,l[y])},$.prototype.writeRepeatedFixed64String=$.prototype.Ad,$.prototype.Jd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.Ra(s,l[y])},$.prototype.writeRepeatedSfixed32=$.prototype.Jd,$.prototype.Kd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.Sa(s,l[y])},$.prototype.writeRepeatedSfixed64=$.prototype.Kd,$.prototype.Ld=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.qb(s,l[y])},$.prototype.writeRepeatedSfixed64String=$.prototype.Ld,$.prototype.Cd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.L(s,l[y])},$.prototype.writeRepeatedFloat=$.prototype.Cd,$.prototype.wd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.J(s,l[y])},$.prototype.writeRepeatedDouble=$.prototype.wd,$.prototype.ud=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.I(s,l[y])},$.prototype.writeRepeatedBool=$.prototype.ud,$.prototype.xd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.R(s,l[y])},$.prototype.writeRepeatedEnum=$.prototype.xd,$.prototype.Td=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.U(s,l[y])},$.prototype.writeRepeatedString=$.prototype.Td,$.prototype.vd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.ja(s,l[y])},$.prototype.writeRepeatedBytes=$.prototype.vd,$.prototype.Id=function(s,l,y){if(l!=null)for(var N=0;N<l.length;N++){var ie=pt(this,s);y(l[N],this),lt(this,ie)}},$.prototype.writeRepeatedMessage=$.prototype.Id,$.prototype.Dd=function(s,l,y){if(l!=null)for(var N=0;N<l.length;N++)it(this,s,3),y(l[N],this),it(this,s,4)},$.prototype.writeRepeatedGroup=$.prototype.Dd,$.prototype.Bd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.K(s,l[y])},$.prototype.writeRepeatedFixedHash64=$.prototype.Bd,$.prototype.Yd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.N(s,l[y])},$.prototype.writeRepeatedVarintHash64=$.prototype.Yd,$.prototype.ad=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.M(l[y]);lt(this,s)}},$.prototype.writePackedInt32=$.prototype.ad,$.prototype.bd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.M(parseInt(l[y],10));lt(this,s)}},$.prototype.writePackedInt32String=$.prototype.bd,$.prototype.cd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.ua(l[y]);lt(this,s)}},$.prototype.writePackedInt64=$.prototype.cd,$.prototype.md=function(s,l,y,N){if(l!=null){s=pt(this,s);for(var ie=0;ie<l.length;ie++)this.a.A(y(l[ie]),N(l[ie]));lt(this,s)}},$.prototype.writePackedSplitFixed64=$.prototype.md,$.prototype.nd=function(s,l,y,N){if(l!=null){s=pt(this,s);for(var ie=0;ie<l.length;ie++)this.a.l(y(l[ie]),N(l[ie]));lt(this,s)}},$.prototype.writePackedSplitVarint64=$.prototype.nd,$.prototype.od=function(s,l,y,N){if(l!=null){s=pt(this,s);for(var ie=this.a,Pe=0;Pe<l.length;Pe++)we(y(l[Pe]),N(l[Pe]),function(De,bt){ie.l(De>>>0,bt>>>0)});lt(this,s)}},$.prototype.writePackedSplitZigzagVarint64=$.prototype.od,$.prototype.dd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++){var N=ze(l[y]);this.a.l(N.lo,N.hi)}lt(this,s)}},$.prototype.writePackedInt64String=$.prototype.dd,$.prototype.pd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.j(l[y]);lt(this,s)}},$.prototype.writePackedUint32=$.prototype.pd,$.prototype.qd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.j(parseInt(l[y],10));lt(this,s)}},$.prototype.writePackedUint32String=$.prototype.qd,$.prototype.rd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.va(l[y]);lt(this,s)}},$.prototype.writePackedUint64=$.prototype.rd,$.prototype.sd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++){var N=Fe(l[y]);this.a.l(N.lo,N.hi)}lt(this,s)}},$.prototype.writePackedUint64String=$.prototype.sd,$.prototype.hd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.wa(l[y]);lt(this,s)}},$.prototype.writePackedSint32=$.prototype.hd,$.prototype.jd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.xa(l[y]);lt(this,s)}},$.prototype.writePackedSint64=$.prototype.jd,$.prototype.kd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.W(Wt(l[y]));lt(this,s)}},$.prototype.writePackedSint64String=$.prototype.kd,$.prototype.ld=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.W(l[y]);lt(this,s)}},$.prototype.writePackedSintHash64=$.prototype.ld,$.prototype.Wc=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(4*l.length),s=0;s<l.length;s++)this.a.s(l[s])},$.prototype.writePackedFixed32=$.prototype.Wc,$.prototype.Xc=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(8*l.length),s=0;s<l.length;s++)this.a.V(l[s])},$.prototype.writePackedFixed64=$.prototype.Xc,$.prototype.Yc=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(8*l.length),s=0;s<l.length;s++){var y=Fe(l[s]);this.a.A(y.lo,y.hi)}},$.prototype.writePackedFixed64String=$.prototype.Yc,$.prototype.ed=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(4*l.length),s=0;s<l.length;s++)this.a.S(l[s])},$.prototype.writePackedSfixed32=$.prototype.ed,$.prototype.fd=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(8*l.length),s=0;s<l.length;s++)this.a.T(l[s])},$.prototype.writePackedSfixed64=$.prototype.fd,$.prototype.gd=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(8*l.length),s=0;s<l.length;s++)this.a.ka(l[s])},$.prototype.writePackedSfixed64String=$.prototype.gd,$.prototype.$c=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(4*l.length),s=0;s<l.length;s++)this.a.L(l[s])},$.prototype.writePackedFloat=$.prototype.$c,$.prototype.Uc=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(8*l.length),s=0;s<l.length;s++)this.a.J(l[s])},$.prototype.writePackedDouble=$.prototype.Uc,$.prototype.Tc=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(l.length),s=0;s<l.length;s++)this.a.I(l[s])},$.prototype.writePackedBool=$.prototype.Tc,$.prototype.Vc=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.R(l[y]);lt(this,s)}},$.prototype.writePackedEnum=$.prototype.Vc,$.prototype.Zc=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(8*l.length),s=0;s<l.length;s++)this.a.K(l[s])},$.prototype.writePackedFixedHash64=$.prototype.Zc,$.prototype.td=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.N(l[y]);lt(this,s)}},$.prototype.writePackedVarintHash64=$.prototype.td,x.debug=cr,x.Map=Je,x.Message=je,x.BinaryReader=ce,x.BinaryWriter=$,x.ExtensionFieldInfo=Xt,x.ExtensionFieldBinaryInfo=dr,x.exportSymbol=F,x.inherits=fe,x.object={extend:X},x.typeOf=K},36177:function(G,x,C){var H=C(55595),O=H,P=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof P<"u"&&P||typeof self<"u"&&self||function(){return this}.call(null)||Function("return this")();O.exportSymbol("proto.google.protobuf.Any",null,P),proto.google.protobuf.Any=function(m){H.Message.initialize(this,m,0,-1,null,null)},O.inherits(proto.google.protobuf.Any,H.Message),O.DEBUG&&!COMPILED&&(proto.google.protobuf.Any.displayName="proto.google.protobuf.Any"),H.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Any.prototype.toObject=function(m){return proto.google.protobuf.Any.toObject(m,this)},proto.google.protobuf.Any.toObject=function(m,o){var h,f={typeUrl:H.Message.getFieldWithDefault(o,1,""),value:o.getValue_asB64()};return m&&(f.$jspbMessageInstance=o),f}),proto.google.protobuf.Any.deserializeBinary=function(m){var o=new H.BinaryReader(m),h=new proto.google.protobuf.Any;return proto.google.protobuf.Any.deserializeBinaryFromReader(h,o)},proto.google.protobuf.Any.deserializeBinaryFromReader=function(m,o){for(;o.nextField()&&!o.isEndGroup();){var h=o.getFieldNumber();switch(h){case 1:var f=o.readString();m.setTypeUrl(f);break;case 2:var f=o.readBytes();m.setValue(f);break;default:o.skipField();break}}return m},proto.google.protobuf.Any.prototype.serializeBinary=function(){var m=new H.BinaryWriter;return proto.google.protobuf.Any.serializeBinaryToWriter(this,m),m.getResultBuffer()},proto.google.protobuf.Any.serializeBinaryToWriter=function(m,o){var h=void 0;h=m.getTypeUrl(),h.length>0&&o.writeString(1,h),h=m.getValue_asU8(),h.length>0&&o.writeBytes(2,h)},proto.google.protobuf.Any.prototype.getTypeUrl=function(){return H.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.Any.prototype.setTypeUrl=function(m){return H.Message.setProto3StringField(this,1,m)},proto.google.protobuf.Any.prototype.getValue=function(){return H.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.Any.prototype.getValue_asB64=function(){return H.Message.bytesAsB64(this.getValue())},proto.google.protobuf.Any.prototype.getValue_asU8=function(){return H.Message.bytesAsU8(this.getValue())},proto.google.protobuf.Any.prototype.setValue=function(m){return H.Message.setProto3BytesField(this,2,m)},O.object.extend(x,proto.google.protobuf),proto.google.protobuf.Any.prototype.getTypeName=function(){return this.getTypeUrl().split("/").pop()},proto.google.protobuf.Any.prototype.pack=function(m,o,h){h||(h="type.googleapis.com/"),h.substr(-1)!="/"?this.setTypeUrl(h+"/"+o):this.setTypeUrl(h+o),this.setValue(m)},proto.google.protobuf.Any.prototype.unpack=function(m,o){return this.getTypeName()==o?m(this.getValue_asU8()):null}},92882:function(G){"use strict";for(var x="qpzry9x8gf2tvdw0s3jn54khce6mua7l",C={},H=0;H<x.length;H++){var O=x.charAt(H);if(C[O]!==void 0)throw new TypeError(O+" is ambiguous");C[O]=H}function P(L){var F=L>>25;return(L&33554431)<<5^-(F>>0&1)&996825010^-(F>>1&1)&642813549^-(F>>2&1)&513874426^-(F>>3&1)&1027748829^-(F>>4&1)&705979059}function m(L){for(var F=1,fe=0;fe<L.length;++fe){var re=L.charCodeAt(fe);if(re<33||re>126)return"Invalid prefix ("+L+")";F=P(F)^re>>5}for(F=P(F),fe=0;fe<L.length;++fe){var X=L.charCodeAt(fe);F=P(F)^X&31}return F}function o(L,F,fe){if(fe=fe||90,L.length+7+F.length>fe)throw new TypeError("Exceeds length limit");L=L.toLowerCase();var re=m(L);if(typeof re=="string")throw new Error(re);for(var X=L+"1",j=0;j<F.length;++j){var J=F[j];if(J>>5!==0)throw new Error("Non 5-bit word");re=P(re)^J,X+=x.charAt(J)}for(j=0;j<6;++j)re=P(re);for(re^=1,j=0;j<6;++j){var oe=re>>(5-j)*5&31;X+=x.charAt(oe)}return X}function h(L,F){if(F=F||90,L.length<8)return L+" too short";if(L.length>F)return"Exceeds length limit";var fe=L.toLowerCase(),re=L.toUpperCase();if(L!==fe&&L!==re)return"Mixed-case string "+L;L=fe;var X=L.lastIndexOf("1");if(X===-1)return"No separator character for "+L;if(X===0)return"Missing prefix for "+L;var j=L.slice(0,X),J=L.slice(X+1);if(J.length<6)return"Data too short";var oe=m(j);if(typeof oe=="string")return oe;for(var Ce=[],se=0;se<J.length;++se){var ne=J.charAt(se),xe=C[ne];if(xe===void 0)return"Unknown character "+ne;oe=P(oe)^xe,!(se+6>=J.length)&&Ce.push(xe)}return oe!==1?"Invalid checksum for "+L:{prefix:j,words:Ce}}function f(){var L=h.apply(null,arguments);if(typeof L=="object")return L}function a(L){var F=h.apply(null,arguments);if(typeof F=="object")return F;throw new Error(F)}function t(L,F,fe,re){for(var X=0,j=0,J=(1<<fe)-1,oe=[],Ce=0;Ce<L.length;++Ce)for(X=X<<F|L[Ce],j+=F;j>=fe;)j-=fe,oe.push(X>>j&J);if(re)j>0&&oe.push(X<<fe-j&J);else{if(j>=F)return"Excess padding";if(X<<fe-j&J)return"Non-zero padding"}return oe}function r(L){var F=t(L,8,5,!0);if(Array.isArray(F))return F}function c(L){var F=t(L,8,5,!0);if(Array.isArray(F))return F;throw new Error(F)}function z(L){var F=t(L,5,8,!1);if(Array.isArray(F))return F}function K(L){var F=t(L,5,8,!1);if(Array.isArray(F))return F;throw new Error(F)}G.exports={decodeUnsafe:f,decode:a,encode:o,toWordsUnsafe:r,toWords:c,fromWordsUnsafe:z,fromWords:K}},43467:function(G,x,C){"use strict";C.r(x),C.d(x,{BaseContract:function(){return Pn},BigNumber:function(){return a.O$},Contract:function(){return $o},ContractFactory:function(){return Ho},FixedNumber:function(){return Mo.xs},Signer:function(){return N},VoidSigner:function(){return ie},Wallet:function(){return Ro},Wordlist:function(){return b},constants:function(){return O},errors:function(){return r.ErrorCode},ethers:function(){return h},getDefaultProvider:function(){return cs},logger:function(){return Ia},providers:function(){return P},utils:function(){return o},version:function(){return ls},wordlists:function(){return Re}});var H={};C.r(H),C.d(H,{decode:function(){return Ue},encode:function(){return se}});var O={};C.r(O),C.d(O,{AddressZero:function(){return xs},EtherSymbol:function(){return Va},HashZero:function(){return bs.R},MaxInt256:function(){return Mt},MaxUint256:function(){return wt},MinInt256:function(){return St},NegativeOne:function(){return we},One:function(){return Ze},Two:function(){return tt},WeiPerEther:function(){return ht},Zero:function(){return Xe}});var P={};C.r(P),C.d(P,{AlchemyProvider:function(){return ns},AlchemyWebSocketProvider:function(){return Xs},AnkrProvider:function(){return Qs},BaseProvider:function(){return hi},CloudflareProvider:function(){return ta},EtherscanProvider:function(){return ia},FallbackProvider:function(){return la},Formatter:function(){return gt},InfuraProvider:function(){return ss},InfuraWebSocketProvider:function(){return fa},IpcProvider:function(){return da},JsonRpcBatchProvider:function(){return Hc},JsonRpcProvider:function(){return Jo},JsonRpcSigner:function(){return rs},NodesmithProvider:function(){return pa},PocketProvider:function(){return ya},Provider:function(){return it},Resolver:function(){return Qi},StaticJsonRpcProvider:function(){return qs},UrlJsonRpcProvider:function(){return Eo},Web3Provider:function(){return xa},WebSocketProvider:function(){return yi},getDefaultProvider:function(){return cs},getNetwork:function(){return Ki},isCommunityResourcable:function(){return Ws},isCommunityResource:function(){return qi},showThrottleMessage:function(){return Nn}});var m={};C.r(m),C.d(m,{decode:function(){return Zi},encode:function(){return Ji}});var o={};C.r(o),C.d(o,{AbiCoder:function(){return eo},ConstructorFragment:function(){return ar},ErrorFragment:function(){return yr},EventFragment:function(){return je},FormatTypes:function(){return It},Fragment:function(){return dr},FunctionFragment:function(){return Jt},HDNode:function(){return he},Indexed:function(){return cr},Interface:function(){return be},LogDescription:function(){return Gr},Logger:function(){return r.Logger},ParamType:function(){return Bt},RLP:function(){return H},SigningKey:function(){return vo},SupportedAlgorithm:function(){return Or},TransactionDescription:function(){return Br},TransactionTypes:function(){return Bn},UnicodeNormalizationForm:function(){return nt.Uj},Utf8ErrorFuncs:function(){return nt.te},Utf8ErrorReason:function(){return nt.Uw},_TypedDataEncoder:function(){return Ar},_fetchData:function(){return Ns},_toEscapedUtf8String:function(){return nt.U$},accessListify:function(){return fo},arrayify:function(){return f.arrayify},base58:function(){return Ao},base64:function(){return m},checkProperties:function(){return t.checkProperties},checkResultErrors:function(){return K},commify:function(){return iu},computeAddress:function(){return qr},computeHmac:function(){return _},computePublicKey:function(){return Cn},concat:function(){return f.concat},deepCopy:function(){return t.deepCopy},defaultAbiCoder:function(){return Zr},defaultPath:function(){return ye},defineReadOnly:function(){return t.defineReadOnly},dnsEncode:function(){return ks},entropyToMnemonic:function(){return Ae},fetchJson:function(){return gn},formatBytes32String:function(){return wa.s},formatEther:function(){return su},formatUnits:function(){return Ea},getAccountPath:function(){return Ie},getAddress:function(){return Oe},getContractAddress:function(){return ke},getCreate2Address:function(){return dt},getIcapAddress:function(){return _e},getJsonWalletAddress:function(){return Sa},getStatic:function(){return t.getStatic},hashMessage:function(){return an},hexConcat:function(){return f.hexConcat},hexDataLength:function(){return f.hexDataLength},hexDataSlice:function(){return f.hexDataSlice},hexStripZeros:function(){return f.hexStripZeros},hexValue:function(){return f.hexValue},hexZeroPad:function(){return f.hexZeroPad},hexlify:function(){return f.hexlify},id:function(){return vt},isAddress:function(){return Ke},isBytes:function(){return f.isBytes},isBytesLike:function(){return f.isBytesLike},isHexString:function(){return f.isHexString},isValidMnemonic:function(){return ge},isValidName:function(){return yc},joinSignature:function(){return f.joinSignature},keccak256:function(){return re.keccak256},mnemonicToEntropy:function(){return me},mnemonicToSeed:function(){return de},namehash:function(){return kn},nameprep:function(){return ou.Ll},parseBytes32String:function(){return wa.F},parseEther:function(){return au},parseTransaction:function(){return sn},parseUnits:function(){return Ta},poll:function(){return Zo},randomBytes:function(){return Xr},recoverAddress:function(){return zo},recoverPublicKey:function(){return Uo},resolveProperties:function(){return t.resolveProperties},ripemd160:function(){return zt},serializeTransaction:function(){return nn},sha256:function(){return B},sha512:function(){return I},shallowCopy:function(){return t.shallowCopy},shuffled:function(){return sa},solidityKeccak256:function(){return tu},solidityPack:function(){return us},soliditySha256:function(){return ru},splitSignature:function(){return f.splitSignature},stripZeros:function(){return f.stripZeros},toUtf8Bytes:function(){return nt.Y0},toUtf8CodePoints:function(){return nt.XL},toUtf8String:function(){return nt.ZN},verifyMessage:function(){return ja},verifyTypedData:function(){return Ga},zeroPad:function(){return f.zeroPad}});var h={};C.r(h),C.d(h,{BaseContract:function(){return Pn},BigNumber:function(){return a.O$},Contract:function(){return $o},ContractFactory:function(){return Ho},FixedNumber:function(){return Mo.xs},Signer:function(){return N},VoidSigner:function(){return ie},Wallet:function(){return Ro},Wordlist:function(){return b},constants:function(){return O},errors:function(){return r.ErrorCode},getDefaultProvider:function(){return cs},logger:function(){return Ia},providers:function(){return P},utils:function(){return o},version:function(){return ls},wordlists:function(){return Re}});var f=C(93286),a=C(2593),t=C(53587),r=C(80711);const c="abi/5.7.0",z=new r.Logger(c);function K(u){const e=[],n=function(i,d){if(!!Array.isArray(d))for(let g in d){const p=i.slice();p.push(g);try{n(p,d[g])}catch(E){e.push({path:p,error:E})}}};return n([],u),e}class L{constructor(e,n,i,d){this.name=e,this.type=n,this.localName=i,this.dynamic=d}_throwError(e,n){z.throwArgumentError(e,this.localName,n)}}class F{constructor(e){(0,t.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,f.hexConcat)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData((0,f.concat)(e._data))}writeBytes(e){let n=(0,f.arrayify)(e);const i=n.length%this.wordSize;return i&&(n=(0,f.concat)([n,this._padding.slice(i)])),this._writeData(n)}_getValue(e){let n=(0,f.arrayify)(a.O$.from(e));return n.length>this.wordSize&&z.throwError("value out-of-bounds",r.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:n.length}),n.length%this.wordSize&&(n=(0,f.concat)([this._padding.slice(n.length%this.wordSize),n])),n}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,n=>{this._data[e]=this._getValue(n)}}}class fe{constructor(e,n,i,d){(0,t.defineReadOnly)(this,"_data",(0,f.arrayify)(e)),(0,t.defineReadOnly)(this,"wordSize",n||32),(0,t.defineReadOnly)(this,"_coerceFunc",i),(0,t.defineReadOnly)(this,"allowLoose",d),this._offset=0}get data(){return(0,f.hexlify)(this._data)}get consumed(){return this._offset}static coerce(e,n){let i=e.match("^u?int([0-9]+)$");return i&&parseInt(i[1])<=48&&(n=n.toNumber()),n}coerce(e,n){return this._coerceFunc?this._coerceFunc(e,n):fe.coerce(e,n)}_peekBytes(e,n,i){let d=Math.ceil(n/this.wordSize)*this.wordSize;return this._offset+d>this._data.length&&(this.allowLoose&&i&&this._offset+n<=this._data.length?d=n:z.throwError("data out-of-bounds",r.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+d})),this._data.slice(this._offset,this._offset+d)}subReader(e){return new fe(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,n){let i=this._peekBytes(0,e,!!n);return this._offset+=i.length,i.slice(0,e)}readValue(){return a.O$.from(this.readBytes(this.wordSize))}}var re=C(38197);const X="rlp/5.7.0",j=new r.Logger(X);function J(u){const e=[];for(;u;)e.unshift(u&255),u>>=8;return e}function oe(u,e,n){let i=0;for(let d=0;d<n;d++)i=i*256+u[e+d];return i}function Ce(u){if(Array.isArray(u)){let i=[];if(u.forEach(function(g){i=i.concat(Ce(g))}),i.length<=55)return i.unshift(192+i.length),i;const d=J(i.length);return d.unshift(247+d.length),d.concat(i)}(0,f.isBytesLike)(u)||j.throwArgumentError("RLP object must be BytesLike","object",u);const e=Array.prototype.slice.call((0,f.arrayify)(u));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const n=J(e.length);return n.unshift(183+n.length),n.concat(e)}function se(u){return(0,f.hexlify)(Ce(u))}function ne(u,e,n,i){const d=[];for(;n<e+1+i;){const g=xe(u,n);d.push(g.result),n+=g.consumed,n>e+1+i&&j.throwError("child data too short",r.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+i,result:d}}function xe(u,e){if(u.length===0&&j.throwError("data too short",r.Logger.errors.BUFFER_OVERRUN,{}),u[e]>=248){const n=u[e]-247;e+1+n>u.length&&j.throwError("data short segment too short",r.Logger.errors.BUFFER_OVERRUN,{});const i=oe(u,e+1,n);return e+1+n+i>u.length&&j.throwError("data long segment too short",r.Logger.errors.BUFFER_OVERRUN,{}),ne(u,e,e+1+n,n+i)}else if(u[e]>=192){const n=u[e]-192;return e+1+n>u.length&&j.throwError("data array too short",r.Logger.errors.BUFFER_OVERRUN,{}),ne(u,e,e+1,n)}else if(u[e]>=184){const n=u[e]-183;e+1+n>u.length&&j.throwError("data array too short",r.Logger.errors.BUFFER_OVERRUN,{});const i=oe(u,e+1,n);e+1+n+i>u.length&&j.throwError("data array too short",r.Logger.errors.BUFFER_OVERRUN,{});const d=(0,f.hexlify)(u.slice(e+1+n,e+1+n+i));return{consumed:1+n+i,result:d}}else if(u[e]>=128){const n=u[e]-128;e+1+n>u.length&&j.throwError("data too short",r.Logger.errors.BUFFER_OVERRUN,{});const i=(0,f.hexlify)(u.slice(e+1,e+1+n));return{consumed:1+n,result:i}}return{consumed:1,result:(0,f.hexlify)(u[e])}}function Ue(u){const e=(0,f.arrayify)(u),n=xe(e,0);return n.consumed!==e.length&&j.throwArgumentError("invalid rlp data","data",u),n.result}const ct="address/5.7.0",ft=new r.Logger(ct);function Je(u){(0,f.isHexString)(u,20)||ft.throwArgumentError("invalid address","address",u),u=u.toLowerCase();const e=u.substring(2).split(""),n=new Uint8Array(40);for(let d=0;d<40;d++)n[d]=e[d].charCodeAt(0);const i=(0,f.arrayify)((0,re.keccak256)(n));for(let d=0;d<40;d+=2)i[d>>1]>>4>=8&&(e[d]=e[d].toUpperCase()),(i[d>>1]&15)>=8&&(e[d+1]=e[d+1].toUpperCase());return"0x"+e.join("")}const Ot=9007199254740991;function Tt(u){return Math.log10?Math.log10(u):Math.log(u)/Math.LN10}const Ft={};for(let u=0;u<10;u++)Ft[String(u)]=String(u);for(let u=0;u<26;u++)Ft[String.fromCharCode(65+u)]=String(10+u);const Ne=Math.floor(Tt(Ot));function Ee(u){u=u.toUpperCase(),u=u.substring(4)+u.substring(0,2)+"00";let e=u.split("").map(i=>Ft[i]).join("");for(;e.length>=Ne;){let i=e.substring(0,Ne);e=parseInt(i,10)%97+e.substring(i.length)}let n=String(98-parseInt(e,10)%97);for(;n.length<2;)n="0"+n;return n}function Oe(u){let e=null;if(typeof u!="string"&&ft.throwArgumentError("invalid address","address",u),u.match(/^(0x)?[0-9a-fA-F]{40}$/))u.substring(0,2)!=="0x"&&(u="0x"+u),e=Je(u),u.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==u&&ft.throwArgumentError("bad address checksum","address",u);else if(u.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(u.substring(2,4)!==Ee(u)&&ft.throwArgumentError("bad icap checksum","address",u),e=(0,a.g$)(u.substring(4));e.length<40;)e="0"+e;e=Je("0x"+e)}else ft.throwArgumentError("invalid address","address",u);return e}function Ke(u){try{return Oe(u),!0}catch{}return!1}function _e(u){let e=(0,a.t2)(Oe(u).substring(2)).toUpperCase();for(;e.length<30;)e="0"+e;return"XE"+Ee("XE00"+e)+e}function ke(u){let e=null;try{e=Oe(u.from)}catch{ft.throwArgumentError("missing from address","transaction",u)}const n=(0,f.stripZeros)((0,f.arrayify)(a.O$.from(u.nonce).toHexString()));return Oe((0,f.hexDataSlice)((0,re.keccak256)(se([e,n])),12))}function dt(u,e,n){return(0,f.hexDataLength)(e)!==32&&ft.throwArgumentError("salt must be 32 bytes","salt",e),(0,f.hexDataLength)(n)!==32&&ft.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),Oe((0,f.hexDataSlice)((0,re.keccak256)((0,f.concat)(["0xff",Oe(u),e,n])),12))}var nt=C(44242);function vt(u){return(0,re.keccak256)((0,nt.Y0)(u))}class Et extends L{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,n){try{n=Oe(n)}catch(i){this._throwError(i.message,n)}return e.writeValue(n)}decode(e){return Oe((0,f.hexZeroPad)(e.readValue().toHexString(),20))}}class xt extends L{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,n){return this.coder.encode(e,n)}decode(e){return this.coder.decode(e)}}const ut=new r.Logger(c);function nr(u,e,n){let i=null;if(Array.isArray(n))i=n;else if(n&&typeof n=="object"){let R={};i=e.map(U=>{const Z=U.localName;return Z||ut.throwError("cannot encode object for signature with missing names",r.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:U,value:n}),R[Z]&&ut.throwError("cannot encode object for signature with duplicate names",r.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:U,value:n}),R[Z]=!0,n[Z]})}else ut.throwArgumentError("invalid tuple value","tuple",n);e.length!==i.length&&ut.throwArgumentError("types/value length mismatch","tuple",n);let d=new F(u.wordSize),g=new F(u.wordSize),p=[];e.forEach((R,U)=>{let Z=i[U];if(R.dynamic){let ue=g.length;R.encode(g,Z);let Me=d.writeUpdatableValue();p.push(Se=>{Me(Se+ue)})}else R.encode(d,Z)}),p.forEach(R=>{R(d.length)});let E=u.appendWriter(d);return E+=u.appendWriter(g),E}function tr(u,e){let n=[],i=u.subReader(0);e.forEach(g=>{let p=null;if(g.dynamic){let E=u.readValue(),R=i.subReader(E.toNumber());try{p=g.decode(R)}catch(U){if(U.code===r.Logger.errors.BUFFER_OVERRUN)throw U;p=U,p.baseType=g.name,p.name=g.localName,p.type=g.type}}else try{p=g.decode(u)}catch(E){if(E.code===r.Logger.errors.BUFFER_OVERRUN)throw E;p=E,p.baseType=g.name,p.name=g.localName,p.type=g.type}p!=null&&n.push(p)});const d=e.reduce((g,p)=>{const E=p.localName;return E&&(g[E]||(g[E]=0),g[E]++),g},{});e.forEach((g,p)=>{let E=g.localName;if(!E||d[E]!==1||(E==="length"&&(E="_length"),n[E]!=null))return;const R=n[p];R instanceof Error?Object.defineProperty(n,E,{enumerable:!0,get:()=>{throw R}}):n[E]=R});for(let g=0;g<n.length;g++){const p=n[g];p instanceof Error&&Object.defineProperty(n,g,{enumerable:!0,get:()=>{throw p}})}return Object.freeze(n)}class fr extends L{constructor(e,n,i){const d=e.type+"["+(n>=0?n:"")+"]",g=n===-1||e.dynamic;super("array",d,i,g),this.coder=e,this.length=n}defaultValue(){const e=this.coder.defaultValue(),n=[];for(let i=0;i<this.length;i++)n.push(e);return n}encode(e,n){Array.isArray(n)||this._throwError("expected array value",n);let i=this.length;i===-1&&(i=n.length,e.writeValue(n.length)),ut.checkArgumentCount(n.length,i,"coder array"+(this.localName?" "+this.localName:""));let d=[];for(let g=0;g<n.length;g++)d.push(this.coder);return nr(e,d,n)}decode(e){let n=this.length;n===-1&&(n=e.readValue().toNumber(),n*32>e._data.length&&ut.throwError("insufficient data length",r.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:n}));let i=[];for(let d=0;d<n;d++)i.push(new xt(this.coder));return e.coerce(this.name,tr(e,i))}}class Lr extends L{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,n){return e.writeValue(n?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class ur extends L{constructor(e,n){super(e,e,n,!0)}defaultValue(){return"0x"}encode(e,n){n=(0,f.arrayify)(n);let i=e.writeValue(n.length);return i+=e.writeBytes(n),i}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class rr extends ur{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,(0,f.hexlify)(super.decode(e)))}}class ae extends L{constructor(e,n){let i="bytes"+String(e);super(i,i,n,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(e,n){let i=(0,f.arrayify)(n);return i.length!==this.size&&this._throwError("incorrect data length",n),e.writeBytes(i)}decode(e){return e.coerce(this.name,(0,f.hexlify)(e.readBytes(this.size)))}}class ve extends L{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,n){return n!=null&&this._throwError("not null",n),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}const we=a.O$.from(-1),Xe=a.O$.from(0),Ze=a.O$.from(1),tt=a.O$.from(2),ht=a.O$.from("1000000000000000000"),wt=a.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),St=a.O$.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),Mt=a.O$.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class Vt extends L{constructor(e,n,i){const d=(n?"int":"uint")+e*8;super(d,d,i,!1),this.size=e,this.signed=n}defaultValue(){return 0}encode(e,n){let i=a.O$.from(n),d=wt.mask(e.wordSize*8);if(this.signed){let g=d.mask(this.size*8-1);(i.gt(g)||i.lt(g.add(Ze).mul(we)))&&this._throwError("value out-of-bounds",n)}else(i.lt(Xe)||i.gt(d.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return i=i.toTwos(this.size*8).mask(this.size*8),this.signed&&(i=i.fromTwos(this.size*8).toTwos(8*e.wordSize)),e.writeValue(i)}decode(e){let n=e.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),e.coerce(this.name,n)}}class Wt extends ur{constructor(e){super("string",e)}defaultValue(){return""}encode(e,n){return super.encode(e,(0,nt.Y0)(n))}decode(e){return(0,nt.ZN)(super.decode(e))}}class ir extends L{constructor(e,n){let i=!1;const d=[];e.forEach(p=>{p.dynamic&&(i=!0),d.push(p.type)});const g="tuple("+d.join(",")+")";super("tuple",g,n,i),this.coders=e}defaultValue(){const e=[];this.coders.forEach(i=>{e.push(i.defaultValue())});const n=this.coders.reduce((i,d)=>{const g=d.localName;return g&&(i[g]||(i[g]=0),i[g]++),i},{});return this.coders.forEach((i,d)=>{let g=i.localName;!g||n[g]!==1||(g==="length"&&(g="_length"),e[g]==null&&(e[g]=e[d]))}),Object.freeze(e)}encode(e,n){return nr(e,this.coders,n)}decode(e){return e.coerce(this.name,tr(e,this.coders))}}const Ct=new r.Logger(c),xr={};let lr={calldata:!0,memory:!0,storage:!0},Te={calldata:!0,memory:!0};function sr(u,e){if(u==="bytes"||u==="string"){if(lr[e])return!0}else if(u==="address"){if(e==="payable")return!0}else if((u.indexOf("[")>=0||u==="tuple")&&Te[e])return!0;return(lr[e]||e==="payable")&&Ct.throwArgumentError("invalid modifier","name",e),!1}function zr(u,e){let n=u;function i(E){Ct.throwArgumentError(`unexpected character at position ${E}`,"param",u)}u=u.replace(/\s/g," ");function d(E){let R={type:"",name:"",parent:E,state:{allowType:!0}};return e&&(R.indexed=!1),R}let g={type:"",name:"",state:{allowType:!0}},p=g;for(let E=0;E<u.length;E++){let R=u[E];switch(R){case"(":p.state.allowType&&p.type===""?p.type="tuple":p.state.allowParams||i(E),p.state.allowType=!1,p.type=Rr(p.type),p.components=[d(p)],p=p.components[0];break;case")":delete p.state,p.name==="indexed"&&(e||i(E),p.indexed=!0,p.name=""),sr(p.type,p.name)&&(p.name=""),p.type=Rr(p.type);let U=p;p=p.parent,p||i(E),delete U.parent,p.state.allowParams=!1,p.state.allowName=!0,p.state.allowArray=!0;break;case",":delete p.state,p.name==="indexed"&&(e||i(E),p.indexed=!0,p.name=""),sr(p.type,p.name)&&(p.name=""),p.type=Rr(p.type);let Z=d(p.parent);p.parent.components.push(Z),delete p.parent,p=Z;break;case" ":p.state.allowType&&p.type!==""&&(p.type=Rr(p.type),delete p.state.allowType,p.state.allowName=!0,p.state.allowParams=!0),p.state.allowName&&p.name!==""&&(p.name==="indexed"?(e||i(E),p.indexed&&i(E),p.indexed=!0,p.name=""):sr(p.type,p.name)?p.name="":p.state.allowName=!1);break;case"[":p.state.allowArray||i(E),p.type+=R,p.state.allowArray=!1,p.state.allowName=!1,p.state.readArray=!0;break;case"]":p.state.readArray||i(E),p.type+=R,p.state.readArray=!1,p.state.allowArray=!0,p.state.allowName=!0;break;default:p.state.allowType?(p.type+=R,p.state.allowParams=!0,p.state.allowArray=!0):p.state.allowName?(p.name+=R,delete p.state.allowArray):p.state.readArray?p.type+=R:i(E)}}return p.parent&&Ct.throwArgumentError("unexpected eof","param",u),delete g.state,p.name==="indexed"?(e||i(n.length-7),p.indexed&&i(n.length-7),p.indexed=!0,p.name=""):sr(p.type,p.name)&&(p.name=""),g.type=Rr(g.type),g}function ce(u,e){for(let n in e)(0,t.defineReadOnly)(u,n,e[n])}const It=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),Qr=new RegExp(/^(.*)\[([0-9]*)\]$/);class Bt{constructor(e,n){e!==xr&&Ct.throwError("use fromString",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),ce(this,n);let i=this.type.match(Qr);i?ce(this,{arrayLength:parseInt(i[2]||"-1"),arrayChildren:Bt.fromObject({type:i[1],components:this.components}),baseType:"array"}):ce(this,{arrayLength:null,arrayChildren:null,baseType:this.components!=null?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=It.sighash),It[e]||Ct.throwArgumentError("invalid format type","format",e),e===It.json){let i={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(i.indexed=this.indexed),this.components&&(i.components=this.components.map(d=>JSON.parse(d.format(e)))),JSON.stringify(i)}let n="";return this.baseType==="array"?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==It.sighash&&(n+=this.type),n+="("+this.components.map(i=>i.format(e)).join(e===It.full?", ":",")+")"):n+=this.type,e!==It.sighash&&(this.indexed===!0&&(n+=" indexed"),e===It.full&&this.name&&(n+=" "+this.name)),n}static from(e,n){return typeof e=="string"?Bt.fromString(e,n):Bt.fromObject(e)}static fromObject(e){return Bt.isParamType(e)?e:new Bt(xr,{name:e.name||null,type:Rr(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(Bt.fromObject):null})}static fromString(e,n){function i(d){return Bt.fromObject({name:d.name,type:d.type,indexed:d.indexed,components:d.components})}return i(zr(e,!!n))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function Xt(u,e){return Cr(u).map(n=>Bt.fromString(n,e))}class dr{constructor(e,n){e!==xr&&Ct.throwError("use a static from method",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),ce(this,n),this._isFragment=!0,Object.freeze(this)}static from(e){return dr.isFragment(e)?e:typeof e=="string"?dr.fromString(e):dr.fromObject(e)}static fromObject(e){if(dr.isFragment(e))return e;switch(e.type){case"function":return Jt.fromObject(e);case"event":return je.fromObject(e);case"constructor":return ar.fromObject(e);case"error":return yr.fromObject(e);case"fallback":case"receive":return null}return Ct.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return e=e.replace(/\s/g," "),e=e.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),e=e.trim(),e.split(" ")[0]==="event"?je.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?Jt.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?ar.fromString(e.trim()):e.split(" ")[0]==="error"?yr.fromString(e.substring(5).trim()):Ct.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class je extends dr{format(e){if(e||(e=It.sighash),It[e]||Ct.throwArgumentError("invalid format type","format",e),e===It.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(i=>JSON.parse(i.format(e)))});let n="";return e!==It.sighash&&(n+="event "),n+=this.name+"("+this.inputs.map(i=>i.format(e)).join(e===It.full?", ":",")+") ",e!==It.sighash&&this.anonymous&&(n+="anonymous "),n.trim()}static from(e){return typeof e=="string"?je.fromString(e):je.fromObject(e)}static fromObject(e){if(je.isEventFragment(e))return e;e.type!=="event"&&Ct.throwArgumentError("invalid event object","value",e);const n={name:jr(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(Bt.fromObject):[],type:"event"};return new je(xr,n)}static fromString(e){let n=e.match(Dr);n||Ct.throwArgumentError("invalid event string","value",e);let i=!1;return n[3].split(" ").forEach(d=>{switch(d.trim()){case"anonymous":i=!0;break;case"":break;default:Ct.warn("unknown modifier: "+d)}}),je.fromObject({name:n[1].trim(),anonymous:i,inputs:Xt(n[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function gr(u,e){e.gas=null;let n=u.split("@");return n.length!==1?(n.length>2&&Ct.throwArgumentError("invalid human-readable ABI signature","value",u),n[1].match(/^[0-9]+$/)||Ct.throwArgumentError("invalid human-readable ABI signature gas","value",u),e.gas=a.O$.from(n[1]),n[0]):u}function Qt(u,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",u.split(" ").forEach(n=>{switch(n.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+n)}})}function $t(u){let e={constant:!1,payable:!0,stateMutability:"payable"};return u.stateMutability!=null?(e.stateMutability=u.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",u.constant!=null&&!!u.constant!==e.constant&&Ct.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",u),e.payable=e.stateMutability==="payable",u.payable!=null&&!!u.payable!==e.payable&&Ct.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",u)):u.payable!=null?(e.payable=!!u.payable,u.constant==null&&!e.payable&&u.type!=="constructor"&&Ct.throwArgumentError("unable to determine stateMutability","value",u),e.constant=!!u.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&Ct.throwArgumentError("cannot have constant payable function","value",u)):u.constant!=null?(e.constant=!!u.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):u.type!=="constructor"&&Ct.throwArgumentError("unable to determine stateMutability","value",u),e}class ar extends dr{format(e){if(e||(e=It.sighash),It[e]||Ct.throwArgumentError("invalid format type","format",e),e===It.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(i=>JSON.parse(i.format(e)))});e===It.sighash&&Ct.throwError("cannot format a constructor for sighash",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let n="constructor("+this.inputs.map(i=>i.format(e)).join(e===It.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()}static from(e){return typeof e=="string"?ar.fromString(e):ar.fromObject(e)}static fromObject(e){if(ar.isConstructorFragment(e))return e;e.type!=="constructor"&&Ct.throwArgumentError("invalid constructor object","value",e);let n=$t(e);n.constant&&Ct.throwArgumentError("constructor cannot be constant","value",e);const i={name:null,type:e.type,inputs:e.inputs?e.inputs.map(Bt.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?a.O$.from(e.gas):null};return new ar(xr,i)}static fromString(e){let n={type:"constructor"};e=gr(e,n);let i=e.match(Dr);return(!i||i[1].trim()!=="constructor")&&Ct.throwArgumentError("invalid constructor string","value",e),n.inputs=Xt(i[2].trim(),!1),Qt(i[3].trim(),n),ar.fromObject(n)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class Jt extends ar{format(e){if(e||(e=It.sighash),It[e]||Ct.throwArgumentError("invalid format type","format",e),e===It.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(i=>JSON.parse(i.format(e))),outputs:this.outputs.map(i=>JSON.parse(i.format(e)))});let n="";return e!==It.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(i=>i.format(e)).join(e===It.full?", ":",")+") ",e!==It.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(i=>i.format(e)).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()}static from(e){return typeof e=="string"?Jt.fromString(e):Jt.fromObject(e)}static fromObject(e){if(Jt.isFunctionFragment(e))return e;e.type!=="function"&&Ct.throwArgumentError("invalid function object","value",e);let n=$t(e);const i={type:e.type,name:jr(e.name),constant:n.constant,inputs:e.inputs?e.inputs.map(Bt.fromObject):[],outputs:e.outputs?e.outputs.map(Bt.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?a.O$.from(e.gas):null};return new Jt(xr,i)}static fromString(e){let n={type:"function"};e=gr(e,n);let i=e.split(" returns ");i.length>2&&Ct.throwArgumentError("invalid function string","value",e);let d=i[0].match(Dr);if(d||Ct.throwArgumentError("invalid function signature","value",e),n.name=d[1].trim(),n.name&&jr(n.name),n.inputs=Xt(d[2],!1),Qt(d[3].trim(),n),i.length>1){let g=i[1].match(Dr);(g[1].trim()!=""||g[3].trim()!="")&&Ct.throwArgumentError("unexpected tokens","value",e),n.outputs=Xt(g[2],!1)}else n.outputs=[];return Jt.fromObject(n)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function Ht(u){const e=u.format();return(e==="Error(string)"||e==="Panic(uint256)")&&Ct.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",u),u}class yr extends dr{format(e){if(e||(e=It.sighash),It[e]||Ct.throwArgumentError("invalid format type","format",e),e===It.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(i=>JSON.parse(i.format(e)))});let n="";return e!==It.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(i=>i.format(e)).join(e===It.full?", ":",")+") ",n.trim()}static from(e){return typeof e=="string"?yr.fromString(e):yr.fromObject(e)}static fromObject(e){if(yr.isErrorFragment(e))return e;e.type!=="error"&&Ct.throwArgumentError("invalid error object","value",e);const n={type:e.type,name:jr(e.name),inputs:e.inputs?e.inputs.map(Bt.fromObject):[]};return Ht(new yr(xr,n))}static fromString(e){let n={type:"error"},i=e.match(Dr);return i||Ct.throwArgumentError("invalid error signature","value",e),n.name=i[1].trim(),n.name&&jr(n.name),n.inputs=Xt(i[2],!1),Ht(yr.fromObject(n))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function Rr(u){return u.match(/^uint($|[^1-9])/)?u="uint256"+u.substring(4):u.match(/^int($|[^1-9])/)&&(u="int256"+u.substring(3)),u}const ro=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function jr(u){return(!u||!u.match(ro))&&Ct.throwArgumentError(`invalid identifier "${u}"`,"value",u),u}const Dr=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function Cr(u){u=u.trim();let e=[],n="",i=0;for(let d=0;d<u.length;d++){let g=u[d];g===","&&i===0?(e.push(n),n=""):(n+=g,g==="("?i++:g===")"&&(i--,i===-1&&Ct.throwArgumentError("unbalanced parenthesis","value",u)))}return n&&e.push(n),e}const hr=new r.Logger(c),so=new RegExp(/^bytes([0-9]*)$/),oo=new RegExp(/^(u?int)([0-9]*)$/);class eo{constructor(e){(0,t.defineReadOnly)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new Et(e.name);case"bool":return new Lr(e.name);case"string":return new Wt(e.name);case"bytes":return new rr(e.name);case"array":return new fr(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new ir((e.components||[]).map(i=>this._getCoder(i)),e.name);case"":return new ve(e.name)}let n=e.type.match(oo);if(n){let i=parseInt(n[2]||"256");return(i===0||i>256||i%8!==0)&&hr.throwArgumentError("invalid "+n[1]+" bit length","param",e),new Vt(i/8,n[1]==="int",e.name)}if(n=e.type.match(so),n){let i=parseInt(n[1]);return(i===0||i>32)&&hr.throwArgumentError("invalid bytes length","param",e),new ae(i,e.name)}return hr.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,n){return new fe(e,this._getWordSize(),this.coerceFunc,n)}_getWriter(){return new F(this._getWordSize())}getDefaultValue(e){const n=e.map(d=>this._getCoder(Bt.from(d)));return new ir(n,"_").defaultValue()}encode(e,n){e.length!==n.length&&hr.throwError("types/values length mismatch",r.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:n.length},value:{types:e,values:n}});const i=e.map(p=>this._getCoder(Bt.from(p))),d=new ir(i,"_"),g=this._getWriter();return d.encode(g,n),g.data}decode(e,n,i){const d=e.map(p=>this._getCoder(Bt.from(p)));return new ir(d,"_").decode(this._getReader((0,f.arrayify)(n),i))}}const Zr=new eo,jt=new r.Logger(c);class Gr extends t.Description{}class Br extends t.Description{}class to extends t.Description{}class cr extends t.Description{static isIndexed(e){return!!(e&&e._isIndexed)}}const He={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function D(u,e){const n=new Error(`deferred error during ABI decoding triggered accessing ${u}`);return n.error=e,n}class be{constructor(e){let n=[];typeof e=="string"?n=JSON.parse(e):n=e,(0,t.defineReadOnly)(this,"fragments",n.map(i=>dr.from(i)).filter(i=>i!=null)),(0,t.defineReadOnly)(this,"_abiCoder",(0,t.getStatic)(new.target,"getAbiCoder")()),(0,t.defineReadOnly)(this,"functions",{}),(0,t.defineReadOnly)(this,"errors",{}),(0,t.defineReadOnly)(this,"events",{}),(0,t.defineReadOnly)(this,"structs",{}),this.fragments.forEach(i=>{let d=null;switch(i.type){case"constructor":if(this.deploy){jt.warn("duplicate definition - constructor");return}(0,t.defineReadOnly)(this,"deploy",i);return;case"function":d=this.functions;break;case"event":d=this.events;break;case"error":d=this.errors;break;default:return}let g=i.format();if(d[g]){jt.warn("duplicate definition - "+g);return}d[g]=i}),this.deploy||(0,t.defineReadOnly)(this,"deploy",ar.from({payable:!1,type:"constructor"})),(0,t.defineReadOnly)(this,"_isInterface",!0)}format(e){e||(e=It.full),e===It.sighash&&jt.throwArgumentError("interface does not support formatting sighash","format",e);const n=this.fragments.map(i=>i.format(e));return e===It.json?JSON.stringify(n.map(i=>JSON.parse(i))):n}static getAbiCoder(){return Zr}static getAddress(e){return Oe(e)}static getSighash(e){return(0,f.hexDataSlice)(vt(e.format()),0,4)}static getEventTopic(e){return vt(e.format())}getFunction(e){if((0,f.isHexString)(e)){for(const i in this.functions)if(e===this.getSighash(i))return this.functions[i];jt.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const i=e.trim(),d=Object.keys(this.functions).filter(g=>g.split("(")[0]===i);return d.length===0?jt.throwArgumentError("no matching function","name",i):d.length>1&&jt.throwArgumentError("multiple matching functions","name",i),this.functions[d[0]]}const n=this.functions[Jt.fromString(e).format()];return n||jt.throwArgumentError("no matching function","signature",e),n}getEvent(e){if((0,f.isHexString)(e)){const i=e.toLowerCase();for(const d in this.events)if(i===this.getEventTopic(d))return this.events[d];jt.throwArgumentError("no matching event","topichash",i)}if(e.indexOf("(")===-1){const i=e.trim(),d=Object.keys(this.events).filter(g=>g.split("(")[0]===i);return d.length===0?jt.throwArgumentError("no matching event","name",i):d.length>1&&jt.throwArgumentError("multiple matching events","name",i),this.events[d[0]]}const n=this.events[je.fromString(e).format()];return n||jt.throwArgumentError("no matching event","signature",e),n}getError(e){if((0,f.isHexString)(e)){const i=(0,t.getStatic)(this.constructor,"getSighash");for(const d in this.errors){const g=this.errors[d];if(e===i(g))return this.errors[d]}jt.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const i=e.trim(),d=Object.keys(this.errors).filter(g=>g.split("(")[0]===i);return d.length===0?jt.throwArgumentError("no matching error","name",i):d.length>1&&jt.throwArgumentError("multiple matching errors","name",i),this.errors[d[0]]}const n=this.errors[Jt.fromString(e).format()];return n||jt.throwArgumentError("no matching error","signature",e),n}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(n){try{e=this.getError(e)}catch{throw n}}return(0,t.getStatic)(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),(0,t.getStatic)(this.constructor,"getEventTopic")(e)}_decodeParams(e,n){return this._abiCoder.decode(e,n)}_encodeParams(e,n){return this._abiCoder.encode(e,n)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,n){typeof e=="string"&&(e=this.getError(e));const i=(0,f.arrayify)(n);return(0,f.hexlify)(i.slice(0,4))!==this.getSighash(e)&&jt.throwArgumentError(`data signature does not match error ${e.name}.`,"data",(0,f.hexlify)(i)),this._decodeParams(e.inputs,i.slice(4))}encodeErrorResult(e,n){return typeof e=="string"&&(e=this.getError(e)),(0,f.hexlify)((0,f.concat)([this.getSighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionData(e,n){typeof e=="string"&&(e=this.getFunction(e));const i=(0,f.arrayify)(n);return(0,f.hexlify)(i.slice(0,4))!==this.getSighash(e)&&jt.throwArgumentError(`data signature does not match function ${e.name}.`,"data",(0,f.hexlify)(i)),this._decodeParams(e.inputs,i.slice(4))}encodeFunctionData(e,n){return typeof e=="string"&&(e=this.getFunction(e)),(0,f.hexlify)((0,f.concat)([this.getSighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionResult(e,n){typeof e=="string"&&(e=this.getFunction(e));let i=(0,f.arrayify)(n),d=null,g="",p=null,E=null,R=null;switch(i.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,i)}catch{}break;case 4:{const U=(0,f.hexlify)(i.slice(0,4)),Z=He[U];if(Z)p=this._abiCoder.decode(Z.inputs,i.slice(4)),E=Z.name,R=Z.signature,Z.reason&&(d=p[0]),E==="Error"?g=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(p[0])}`:E==="Panic"&&(g=`; VM Exception while processing transaction: reverted with panic code ${p[0]}`);else try{const ue=this.getError(U);p=this._abiCoder.decode(ue.inputs,i.slice(4)),E=ue.name,R=ue.format()}catch{}break}}return jt.throwError("call revert exception"+g,r.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,f.hexlify)(n),errorArgs:p,errorName:E,errorSignature:R,reason:d})}encodeFunctionResult(e,n){return typeof e=="string"&&(e=this.getFunction(e)),(0,f.hexlify)(this._abiCoder.encode(e.outputs,n||[]))}encodeFilterTopics(e,n){typeof e=="string"&&(e=this.getEvent(e)),n.length>e.inputs.length&&jt.throwError("too many arguments for "+e.format(),r.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:n});let i=[];e.anonymous||i.push(this.getEventTopic(e));const d=(g,p)=>g.type==="string"?vt(p):g.type==="bytes"?(0,re.keccak256)((0,f.hexlify)(p)):(g.type==="bool"&&typeof p=="boolean"&&(p=p?"0x01":"0x00"),g.type.match(/^u?int/)&&(p=a.O$.from(p).toHexString()),g.type==="address"&&this._abiCoder.encode(["address"],[p]),(0,f.hexZeroPad)((0,f.hexlify)(p),32));for(n.forEach((g,p)=>{let E=e.inputs[p];if(!E.indexed){g!=null&&jt.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+E.name,g);return}g==null?i.push(null):E.baseType==="array"||E.baseType==="tuple"?jt.throwArgumentError("filtering with tuples or arrays not supported","contract."+E.name,g):Array.isArray(g)?i.push(g.map(R=>d(E,R))):i.push(d(E,g))});i.length&&i[i.length-1]===null;)i.pop();return i}encodeEventLog(e,n){typeof e=="string"&&(e=this.getEvent(e));const i=[],d=[],g=[];return e.anonymous||i.push(this.getEventTopic(e)),n.length!==e.inputs.length&&jt.throwArgumentError("event arguments/values mismatch","values",n),e.inputs.forEach((p,E)=>{const R=n[E];if(p.indexed)if(p.type==="string")i.push(vt(R));else if(p.type==="bytes")i.push((0,re.keccak256)(R));else{if(p.baseType==="tuple"||p.baseType==="array")throw new Error("not implemented");i.push(this._abiCoder.encode([p.type],[R]))}else d.push(p),g.push(R)}),{data:this._abiCoder.encode(d,g),topics:i}}decodeEventLog(e,n,i){if(typeof e=="string"&&(e=this.getEvent(e)),i!=null&&!e.anonymous){let Me=this.getEventTopic(e);(!(0,f.isHexString)(i[0],32)||i[0].toLowerCase()!==Me)&&jt.throwError("fragment/topic mismatch",r.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:Me,value:i[0]}),i=i.slice(1)}let d=[],g=[],p=[];e.inputs.forEach((Me,Se)=>{Me.indexed?Me.type==="string"||Me.type==="bytes"||Me.baseType==="tuple"||Me.baseType==="array"?(d.push(Bt.fromObject({type:"bytes32",name:Me.name})),p.push(!0)):(d.push(Me),p.push(!1)):(g.push(Me),p.push(!1))});let E=i!=null?this._abiCoder.decode(d,(0,f.concat)(i)):null,R=this._abiCoder.decode(g,n,!0),U=[],Z=0,ue=0;e.inputs.forEach((Me,Se)=>{if(Me.indexed)if(E==null)U[Se]=new cr({_isIndexed:!0,hash:null});else if(p[Se])U[Se]=new cr({_isIndexed:!0,hash:E[ue++]});else try{U[Se]=E[ue++]}catch(Le){U[Se]=Le}else try{U[Se]=R[Z++]}catch(Le){U[Se]=Le}if(Me.name&&U[Me.name]==null){const Le=U[Se];Le instanceof Error?Object.defineProperty(U,Me.name,{enumerable:!0,get:()=>{throw D(`property ${JSON.stringify(Me.name)}`,Le)}}):U[Me.name]=Le}});for(let Me=0;Me<U.length;Me++){const Se=U[Me];Se instanceof Error&&Object.defineProperty(U,Me,{enumerable:!0,get:()=>{throw D(`index ${Me}`,Se)}})}return Object.freeze(U)}parseTransaction(e){let n=this.getFunction(e.data.substring(0,10).toLowerCase());return n?new Br({args:this._abiCoder.decode(n.inputs,"0x"+e.data.substring(10)),functionFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n),value:a.O$.from(e.value||"0")}):null}parseLog(e){let n=this.getEvent(e.topics[0]);return!n||n.anonymous?null:new Gr({eventFragment:n,name:n.name,signature:n.format(),topic:this.getEventTopic(n),args:this.decodeEventLog(n,e.data,e.topics)})}parseError(e){const n=(0,f.hexlify)(e);let i=this.getError(n.substring(0,10).toLowerCase());return i?new to({args:this._abiCoder.decode(i.inputs,"0x"+n.substring(10)),errorFragment:i,name:i.name,signature:i.format(),sighash:this.getSighash(i)}):null}static isInterface(e){return!!(e&&e._isInterface)}}const Fe="abstract-provider/5.7.0";var Ge=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const ze=new r.Logger(Fe);class $ extends t.Description{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class ot extends null{constructor(e,n){isHexString(e,32)||ze.throwArgumentError("invalid blockHash","blockHash",e),super({_isForkEvent:!0,_isBlockForkEvent:!0,expiry:n||0,blockHash:e})}}class pt extends null{constructor(e,n){isHexString(e,32)||ze.throwArgumentError("invalid transaction hash","hash",e),super({_isForkEvent:!0,_isTransactionForkEvent:!0,expiry:n||0,hash:e})}}class lt extends null{constructor(e,n,i){isHexString(e,32)||ze.throwArgumentError("invalid transaction hash","beforeHash",e),isHexString(n,32)||ze.throwArgumentError("invalid transaction hash","afterHash",n),super({_isForkEvent:!0,_isTransactionOrderForkEvent:!0,expiry:i||0,beforeHash:e,afterHash:n})}}class it{constructor(){ze.checkAbstract(new.target,it),(0,t.defineReadOnly)(this,"_isProvider",!0)}getFeeData(){return Ge(this,void 0,void 0,function*(){const{block:e,gasPrice:n}=yield(0,t.resolveProperties)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(p=>null)});let i=null,d=null,g=null;return e&&e.baseFeePerGas&&(i=e.baseFeePerGas,g=a.O$.from("1500000000"),d=e.baseFeePerGas.mul(2).add(g)),{lastBaseFeePerGas:i,maxFeePerGas:d,maxPriorityFeePerGas:g,gasPrice:n}})}addListener(e,n){return this.on(e,n)}removeListener(e,n){return this.off(e,n)}static isProvider(e){return!!(e&&e._isProvider)}}const Er="abstract-signer/5.7.0";var qt=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const s=new r.Logger(Er),l=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],y=[r.Logger.errors.INSUFFICIENT_FUNDS,r.Logger.errors.NONCE_EXPIRED,r.Logger.errors.REPLACEMENT_UNDERPRICED];class N{constructor(){s.checkAbstract(new.target,N),(0,t.defineReadOnly)(this,"_isSigner",!0)}getBalance(e){return qt(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return qt(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return qt(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const n=yield(0,t.resolveProperties)(this.checkTransaction(e));return yield this.provider.estimateGas(n)})}call(e,n){return qt(this,void 0,void 0,function*(){this._checkProvider("call");const i=yield(0,t.resolveProperties)(this.checkTransaction(e));return yield this.provider.call(i,n)})}sendTransaction(e){return qt(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const n=yield this.populateTransaction(e),i=yield this.signTransaction(n);return yield this.provider.sendTransaction(i)})}getChainId(){return qt(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return qt(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return qt(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return qt(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const i in e)l.indexOf(i)===-1&&s.throwArgumentError("invalid transaction key: "+i,"transaction",e);const n=(0,t.shallowCopy)(e);return n.from==null?n.from=this.getAddress():n.from=Promise.all([Promise.resolve(n.from),this.getAddress()]).then(i=>(i[0].toLowerCase()!==i[1].toLowerCase()&&s.throwArgumentError("from address mismatch","transaction",e),i[0])),n}populateTransaction(e){return qt(this,void 0,void 0,function*(){const n=yield(0,t.resolveProperties)(this.checkTransaction(e));n.to!=null&&(n.to=Promise.resolve(n.to).then(d=>qt(this,void 0,void 0,function*(){if(d==null)return null;const g=yield this.resolveName(d);return g==null&&s.throwArgumentError("provided ENS name resolves to null","tx.to",d),g})),n.to.catch(d=>{}));const i=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||i)?s.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(n.type===0||n.type===1)&&i&&s.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1)n.gasPrice==null&&(n.gasPrice=this.getGasPrice());else{const d=yield this.getFeeData();if(n.type==null)if(d.maxFeePerGas!=null&&d.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const g=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=g,n.maxPriorityFeePerGas=g}else n.maxFeePerGas==null&&(n.maxFeePerGas=d.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=d.maxPriorityFeePerGas);else d.gasPrice!=null?(i&&s.throwError("network does not support EIP-1559",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=d.gasPrice),n.type=0):s.throwError("failed to get consistent fee data",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else n.type===2&&(n.maxFeePerGas==null&&(n.maxFeePerGas=d.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=d.maxPriorityFeePerGas))}return n.nonce==null&&(n.nonce=this.getTransactionCount("pending")),n.gasLimit==null&&(n.gasLimit=this.estimateGas(n).catch(d=>{if(y.indexOf(d.code)>=0)throw d;return s.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:d,tx:n})})),n.chainId==null?n.chainId=this.getChainId():n.chainId=Promise.all([Promise.resolve(n.chainId),this.getChainId()]).then(d=>(d[1]!==0&&d[0]!==d[1]&&s.throwArgumentError("chainId address mismatch","transaction",e),d[0])),yield(0,t.resolveProperties)(n)})}_checkProvider(e){this.provider||s.throwError("missing provider",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class ie extends N{constructor(e,n){super(),(0,t.defineReadOnly)(this,"address",e),(0,t.defineReadOnly)(this,"provider",n||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,n){return Promise.resolve().then(()=>{s.throwError(e,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:n})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,n,i){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new ie(this.address,e)}}var Pe=C(13550),De=C.n(Pe),bt=C(33715),Rt=C.n(bt),ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof C.g<"u"?C.g:typeof self<"u"?self:{};function Io(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function yo(u,e,n){return n={path:e,exports:{},require:function(i,d){return No(i,d==null?n.path:d)}},u(n,n.exports),n.exports}function Bi(u){return u&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function ds(u){return u&&Object.prototype.hasOwnProperty.call(u,"default")&&Object.keys(u).length===1?u.default:u}function fs(u){if(u.__esModule)return u;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(u).forEach(function(n){var i=Object.getOwnPropertyDescriptor(u,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return u[n]}})}),e}function No(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Yo=Do;function Do(u,e){if(!u)throw new Error(e||"Assertion failed")}Do.equal=function(e,n,i){if(e!=n)throw new Error(i||"Assertion failed: "+e+" != "+n)};var Vr=yo(function(u,e){"use strict";var n=e;function i(p,E){if(Array.isArray(p))return p.slice();if(!p)return[];var R=[];if(typeof p!="string"){for(var U=0;U<p.length;U++)R[U]=p[U]|0;return R}if(E==="hex"){p=p.replace(/[^a-z0-9]+/ig,""),p.length%2!==0&&(p="0"+p);for(var U=0;U<p.length;U+=2)R.push(parseInt(p[U]+p[U+1],16))}else for(var U=0;U<p.length;U++){var Z=p.charCodeAt(U),ue=Z>>8,Me=Z&255;ue?R.push(ue,Me):R.push(Me)}return R}n.toArray=i;function d(p){return p.length===1?"0"+p:p}n.zero2=d;function g(p){for(var E="",R=0;R<p.length;R++)E+=d(p[R].toString(16));return E}n.toHex=g,n.encode=function(E,R){return R==="hex"?g(E):E}}),kr=yo(function(u,e){"use strict";var n=e;n.assert=Yo,n.toArray=Vr.toArray,n.zero2=Vr.zero2,n.toHex=Vr.toHex,n.encode=Vr.encode;function i(R,U,Z){var ue=new Array(Math.max(R.bitLength(),Z)+1);ue.fill(0);for(var Me=1<<U+1,Se=R.clone(),Le=0;Le<ue.length;Le++){var Ve,at=Se.andln(Me-1);Se.isOdd()?(at>(Me>>1)-1?Ve=(Me>>1)-at:Ve=at,Se.isubn(Ve)):Ve=0,ue[Le]=Ve,Se.iushrn(1)}return ue}n.getNAF=i;function d(R,U){var Z=[[],[]];R=R.clone(),U=U.clone();for(var ue=0,Me=0,Se;R.cmpn(-ue)>0||U.cmpn(-Me)>0;){var Le=R.andln(3)+ue&3,Ve=U.andln(3)+Me&3;Le===3&&(Le=-1),Ve===3&&(Ve=-1);var at;(Le&1)===0?at=0:(Se=R.andln(7)+ue&7,(Se===3||Se===5)&&Ve===2?at=-Le:at=Le),Z[0].push(at);var et;(Ve&1)===0?et=0:(Se=U.andln(7)+Me&7,(Se===3||Se===5)&&Le===2?et=-Ve:et=Ve),Z[1].push(et),2*ue===at+1&&(ue=1-ue),2*Me===et+1&&(Me=1-Me),R.iushrn(1),U.iushrn(1)}return Z}n.getJSF=d;function g(R,U,Z){var ue="_"+U;R.prototype[U]=function(){return this[ue]!==void 0?this[ue]:this[ue]=Z.call(this)}}n.cachedProperty=g;function p(R){return typeof R=="string"?n.toArray(R,"hex"):R}n.parseBytes=p;function E(R){return new(De())(R,"hex","le")}n.intFromLE=E}),So=kr.getNAF,Ei=kr.getJSF,Xo=kr.assert;function no(u,e){this.type=u,this.p=new(De())(e.p,16),this.red=e.prime?De().red(e.prime):De().mont(this.p),this.zero=new(De())(0).toRed(this.red),this.one=new(De())(1).toRed(this.red),this.two=new(De())(2).toRed(this.red),this.n=e.n&&new(De())(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var co=no;no.prototype.point=function(){throw new Error("Not implemented")},no.prototype.validate=function(){throw new Error("Not implemented")},no.prototype._fixedNafMul=function(e,n){Xo(e.precomputed);var i=e._getDoubles(),d=So(n,1,this._bitLength),g=(1<<i.step+1)-(i.step%2===0?2:1);g/=3;var p=[],E,R;for(E=0;E<d.length;E+=i.step){R=0;for(var U=E+i.step-1;U>=E;U--)R=(R<<1)+d[U];p.push(R)}for(var Z=this.jpoint(null,null,null),ue=this.jpoint(null,null,null),Me=g;Me>0;Me--){for(E=0;E<p.length;E++)R=p[E],R===Me?ue=ue.mixedAdd(i.points[E]):R===-Me&&(ue=ue.mixedAdd(i.points[E].neg()));Z=Z.add(ue)}return Z.toP()},no.prototype._wnafMul=function(e,n){var i=4,d=e._getNAFPoints(i);i=d.wnd;for(var g=d.points,p=So(n,i,this._bitLength),E=this.jpoint(null,null,null),R=p.length-1;R>=0;R--){for(var U=0;R>=0&&p[R]===0;R--)U++;if(R>=0&&U++,E=E.dblp(U),R<0)break;var Z=p[R];Xo(Z!==0),e.type==="affine"?Z>0?E=E.mixedAdd(g[Z-1>>1]):E=E.mixedAdd(g[-Z-1>>1].neg()):Z>0?E=E.add(g[Z-1>>1]):E=E.add(g[-Z-1>>1].neg())}return e.type==="affine"?E.toP():E},no.prototype._wnafMulAdd=function(e,n,i,d,g){var p=this._wnafT1,E=this._wnafT2,R=this._wnafT3,U=0,Z,ue,Me;for(Z=0;Z<d;Z++){Me=n[Z];var Se=Me._getNAFPoints(e);p[Z]=Se.wnd,E[Z]=Se.points}for(Z=d-1;Z>=1;Z-=2){var Le=Z-1,Ve=Z;if(p[Le]!==1||p[Ve]!==1){R[Le]=So(i[Le],p[Le],this._bitLength),R[Ve]=So(i[Ve],p[Ve],this._bitLength),U=Math.max(R[Le].length,U),U=Math.max(R[Ve].length,U);continue}var at=[n[Le],null,null,n[Ve]];n[Le].y.cmp(n[Ve].y)===0?(at[1]=n[Le].add(n[Ve]),at[2]=n[Le].toJ().mixedAdd(n[Ve].neg())):n[Le].y.cmp(n[Ve].y.redNeg())===0?(at[1]=n[Le].toJ().mixedAdd(n[Ve]),at[2]=n[Le].add(n[Ve].neg())):(at[1]=n[Le].toJ().mixedAdd(n[Ve]),at[2]=n[Le].toJ().mixedAdd(n[Ve].neg()));var et=[-3,-1,-5,-7,0,7,5,1,3],At=Ei(i[Le],i[Ve]);for(U=Math.max(At[0].length,U),R[Le]=new Array(U),R[Ve]=new Array(U),ue=0;ue<U;ue++){var Gt=At[0][ue]|0,or=At[1][ue]|0;R[Le][ue]=et[(Gt+1)*3+(or+1)],R[Ve][ue]=0,E[Le]=at}}var _t=this.jpoint(null,null,null),pr=this._wnafT4;for(Z=U;Z>=0;Z--){for(var To=0;Z>=0;){var Ur=!0;for(ue=0;ue<d;ue++)pr[ue]=R[ue][Z]|0,pr[ue]!==0&&(Ur=!1);if(!Ur)break;To++,Z--}if(Z>=0&&To++,_t=_t.dblp(To),Z<0)break;for(ue=0;ue<d;ue++){var Nr=pr[ue];Nr!==0&&(Nr>0?Me=E[ue][Nr-1>>1]:Nr<0&&(Me=E[ue][-Nr-1>>1].neg()),Me.type==="affine"?_t=_t.mixedAdd(Me):_t=_t.add(Me))}}for(Z=0;Z<d;Z++)E[Z]=null;return g?_t:_t.toP()};function $r(u,e){this.curve=u,this.type=e,this.precomputed=null}no.BasePoint=$r,$r.prototype.eq=function(){throw new Error("Not implemented")},$r.prototype.validate=function(){return this.curve.validate(this)},no.prototype.decodePoint=function(e,n){e=kr.toArray(e,n);var i=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*i){e[0]===6?Xo(e[e.length-1]%2===0):e[0]===7&&Xo(e[e.length-1]%2===1);var d=this.point(e.slice(1,1+i),e.slice(1+i,1+2*i));return d}else if((e[0]===2||e[0]===3)&&e.length-1===i)return this.pointFromX(e.slice(1,1+i),e[0]===3);throw new Error("Unknown point format")},$r.prototype.encodeCompressed=function(e){return this.encode(e,!0)},$r.prototype._encode=function(e){var n=this.curve.p.byteLength(),i=this.getX().toArray("be",n);return e?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",n))},$r.prototype.encode=function(e,n){return kr.encode(this._encode(n),e)},$r.prototype.precompute=function(e){if(this.precomputed)return this;var n={doubles:null,naf:null,beta:null};return n.naf=this._getNAFPoints(8),n.doubles=this._getDoubles(4,e),n.beta=this._getBeta(),this.precomputed=n,this},$r.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var n=this.precomputed.doubles;return n?n.points.length>=Math.ceil((e.bitLength()+1)/n.step):!1},$r.prototype._getDoubles=function(e,n){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],d=this,g=0;g<n;g+=e){for(var p=0;p<e;p++)d=d.dbl();i.push(d)}return{step:e,points:i}},$r.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var n=[this],i=(1<<e)-1,d=i===1?null:this.dbl(),g=1;g<i;g++)n[g]=n[g-1].add(d);return{wnd:e,points:n}},$r.prototype._getBeta=function(){return null},$r.prototype.dblp=function(e){for(var n=this,i=0;i<e;i++)n=n.dbl();return n};var Wo=yo(function(u){typeof Object.create=="function"?u.exports=function(n,i){i&&(n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:u.exports=function(n,i){if(i){n.super_=i;var d=function(){};d.prototype=i.prototype,n.prototype=new d,n.prototype.constructor=n}}}),Nt=kr.assert;function Hr(u){co.call(this,"short",u),this.a=new(De())(u.a,16).toRed(this.red),this.b=new(De())(u.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(u),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Wo(Hr,co);var Ti=Hr;Hr.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var n,i;if(e.beta)n=new(De())(e.beta,16).toRed(this.red);else{var d=this._getEndoRoots(this.p);n=d[0].cmp(d[1])<0?d[0]:d[1],n=n.toRed(this.red)}if(e.lambda)i=new(De())(e.lambda,16);else{var g=this._getEndoRoots(this.n);this.g.mul(g[0]).x.cmp(this.g.x.redMul(n))===0?i=g[0]:(i=g[1],Nt(this.g.mul(i).x.cmp(this.g.x.redMul(n))===0))}var p;return e.basis?p=e.basis.map(function(E){return{a:new(De())(E.a,16),b:new(De())(E.b,16)}}):p=this._getEndoBasis(i),{beta:n,lambda:i,basis:p}}},Hr.prototype._getEndoRoots=function(e){var n=e===this.p?this.red:De().mont(e),i=new(De())(2).toRed(n).redInvm(),d=i.redNeg(),g=new(De())(3).toRed(n).redNeg().redSqrt().redMul(i),p=d.redAdd(g).fromRed(),E=d.redSub(g).fromRed();return[p,E]},Hr.prototype._getEndoBasis=function(e){for(var n=this.n.ushrn(Math.floor(this.n.bitLength()/2)),i=e,d=this.n.clone(),g=new(De())(1),p=new(De())(0),E=new(De())(0),R=new(De())(1),U,Z,ue,Me,Se,Le,Ve,at=0,et,At;i.cmpn(0)!==0;){var Gt=d.div(i);et=d.sub(Gt.mul(i)),At=E.sub(Gt.mul(g));var or=R.sub(Gt.mul(p));if(!ue&&et.cmp(n)<0)U=Ve.neg(),Z=g,ue=et.neg(),Me=At;else if(ue&&++at===2)break;Ve=et,d=i,i=et,E=g,g=At,R=p,p=or}Se=et.neg(),Le=At;var _t=ue.sqr().add(Me.sqr()),pr=Se.sqr().add(Le.sqr());return pr.cmp(_t)>=0&&(Se=U,Le=Z),ue.negative&&(ue=ue.neg(),Me=Me.neg()),Se.negative&&(Se=Se.neg(),Le=Le.neg()),[{a:ue,b:Me},{a:Se,b:Le}]},Hr.prototype._endoSplit=function(e){var n=this.endo.basis,i=n[0],d=n[1],g=d.b.mul(e).divRound(this.n),p=i.b.neg().mul(e).divRound(this.n),E=g.mul(i.a),R=p.mul(d.a),U=g.mul(i.b),Z=p.mul(d.b),ue=e.sub(E).sub(R),Me=U.add(Z).neg();return{k1:ue,k2:Me}},Hr.prototype.pointFromX=function(e,n){e=new(De())(e,16),e.red||(e=e.toRed(this.red));var i=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),d=i.redSqrt();if(d.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var g=d.fromRed().isOdd();return(n&&!g||!n&&g)&&(d=d.redNeg()),this.point(e,d)},Hr.prototype.validate=function(e){if(e.inf)return!0;var n=e.x,i=e.y,d=this.a.redMul(n),g=n.redSqr().redMul(n).redIAdd(d).redIAdd(this.b);return i.redSqr().redISub(g).cmpn(0)===0},Hr.prototype._endoWnafMulAdd=function(e,n,i){for(var d=this._endoWnafT1,g=this._endoWnafT2,p=0;p<e.length;p++){var E=this._endoSplit(n[p]),R=e[p],U=R._getBeta();E.k1.negative&&(E.k1.ineg(),R=R.neg(!0)),E.k2.negative&&(E.k2.ineg(),U=U.neg(!0)),d[p*2]=R,d[p*2+1]=U,g[p*2]=E.k1,g[p*2+1]=E.k2}for(var Z=this._wnafMulAdd(1,d,g,p*2,i),ue=0;ue<p*2;ue++)d[ue]=null,g[ue]=null;return Z};function er(u,e,n,i){co.BasePoint.call(this,u,"affine"),e===null&&n===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new(De())(e,16),this.y=new(De())(n,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Wo(er,co.BasePoint),Hr.prototype.point=function(e,n,i){return new er(this,e,n,i)},Hr.prototype.pointFromJSON=function(e,n){return er.fromJSON(this,e,n)},er.prototype._getBeta=function(){if(!!this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var n=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var i=this.curve,d=function(g){return i.point(g.x.redMul(i.endo.beta),g.y)};e.beta=n,n.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(d)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(d)}}}return n}},er.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},er.fromJSON=function(e,n,i){typeof n=="string"&&(n=JSON.parse(n));var d=e.point(n[0],n[1],i);if(!n[2])return d;function g(E){return e.point(E[0],E[1],i)}var p=n[2];return d.precomputed={beta:null,doubles:p.doubles&&{step:p.doubles.step,points:[d].concat(p.doubles.points.map(g))},naf:p.naf&&{wnd:p.naf.wnd,points:[d].concat(p.naf.points.map(g))}},d},er.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},er.prototype.isInfinity=function(){return this.inf},er.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var n=this.y.redSub(e.y);n.cmpn(0)!==0&&(n=n.redMul(this.x.redSub(e.x).redInvm()));var i=n.redSqr().redISub(this.x).redISub(e.x),d=n.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,d)},er.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var n=this.curve.a,i=this.x.redSqr(),d=e.redInvm(),g=i.redAdd(i).redIAdd(i).redIAdd(n).redMul(d),p=g.redSqr().redISub(this.x.redAdd(this.x)),E=g.redMul(this.x.redSub(p)).redISub(this.y);return this.curve.point(p,E)},er.prototype.getX=function(){return this.x.fromRed()},er.prototype.getY=function(){return this.y.fromRed()},er.prototype.mul=function(e){return e=new(De())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},er.prototype.mulAdd=function(e,n,i){var d=[this,n],g=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(d,g):this.curve._wnafMulAdd(1,d,g,2)},er.prototype.jmulAdd=function(e,n,i){var d=[this,n],g=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(d,g,!0):this.curve._wnafMulAdd(1,d,g,2,!0)},er.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)},er.prototype.neg=function(e){if(this.inf)return this;var n=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var i=this.precomputed,d=function(g){return g.neg()};n.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(d)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(d)}}}return n},er.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function br(u,e,n,i){co.BasePoint.call(this,u,"jacobian"),e===null&&n===null&&i===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(De())(0)):(this.x=new(De())(e,16),this.y=new(De())(n,16),this.z=new(De())(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Wo(br,co.BasePoint),Hr.prototype.jpoint=function(e,n,i){return new br(this,e,n,i)},br.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),n=e.redSqr(),i=this.x.redMul(n),d=this.y.redMul(n).redMul(e);return this.curve.point(i,d)},br.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},br.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var n=e.z.redSqr(),i=this.z.redSqr(),d=this.x.redMul(n),g=e.x.redMul(i),p=this.y.redMul(n.redMul(e.z)),E=e.y.redMul(i.redMul(this.z)),R=d.redSub(g),U=p.redSub(E);if(R.cmpn(0)===0)return U.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Z=R.redSqr(),ue=Z.redMul(R),Me=d.redMul(Z),Se=U.redSqr().redIAdd(ue).redISub(Me).redISub(Me),Le=U.redMul(Me.redISub(Se)).redISub(p.redMul(ue)),Ve=this.z.redMul(e.z).redMul(R);return this.curve.jpoint(Se,Le,Ve)},br.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var n=this.z.redSqr(),i=this.x,d=e.x.redMul(n),g=this.y,p=e.y.redMul(n).redMul(this.z),E=i.redSub(d),R=g.redSub(p);if(E.cmpn(0)===0)return R.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var U=E.redSqr(),Z=U.redMul(E),ue=i.redMul(U),Me=R.redSqr().redIAdd(Z).redISub(ue).redISub(ue),Se=R.redMul(ue.redISub(Me)).redISub(g.redMul(Z)),Le=this.z.redMul(E);return this.curve.jpoint(Me,Se,Le)},br.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var n;if(this.curve.zeroA||this.curve.threeA){var i=this;for(n=0;n<e;n++)i=i.dbl();return i}var d=this.curve.a,g=this.curve.tinv,p=this.x,E=this.y,R=this.z,U=R.redSqr().redSqr(),Z=E.redAdd(E);for(n=0;n<e;n++){var ue=p.redSqr(),Me=Z.redSqr(),Se=Me.redSqr(),Le=ue.redAdd(ue).redIAdd(ue).redIAdd(d.redMul(U)),Ve=p.redMul(Me),at=Le.redSqr().redISub(Ve.redAdd(Ve)),et=Ve.redISub(at),At=Le.redMul(et);At=At.redIAdd(At).redISub(Se);var Gt=Z.redMul(R);n+1<e&&(U=U.redMul(Se)),p=at,R=Gt,Z=At}return this.curve.jpoint(p,Z.redMul(g),R)},br.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},br.prototype._zeroDbl=function(){var e,n,i;if(this.zOne){var d=this.x.redSqr(),g=this.y.redSqr(),p=g.redSqr(),E=this.x.redAdd(g).redSqr().redISub(d).redISub(p);E=E.redIAdd(E);var R=d.redAdd(d).redIAdd(d),U=R.redSqr().redISub(E).redISub(E),Z=p.redIAdd(p);Z=Z.redIAdd(Z),Z=Z.redIAdd(Z),e=U,n=R.redMul(E.redISub(U)).redISub(Z),i=this.y.redAdd(this.y)}else{var ue=this.x.redSqr(),Me=this.y.redSqr(),Se=Me.redSqr(),Le=this.x.redAdd(Me).redSqr().redISub(ue).redISub(Se);Le=Le.redIAdd(Le);var Ve=ue.redAdd(ue).redIAdd(ue),at=Ve.redSqr(),et=Se.redIAdd(Se);et=et.redIAdd(et),et=et.redIAdd(et),e=at.redISub(Le).redISub(Le),n=Ve.redMul(Le.redISub(e)).redISub(et),i=this.y.redMul(this.z),i=i.redIAdd(i)}return this.curve.jpoint(e,n,i)},br.prototype._threeDbl=function(){var e,n,i;if(this.zOne){var d=this.x.redSqr(),g=this.y.redSqr(),p=g.redSqr(),E=this.x.redAdd(g).redSqr().redISub(d).redISub(p);E=E.redIAdd(E);var R=d.redAdd(d).redIAdd(d).redIAdd(this.curve.a),U=R.redSqr().redISub(E).redISub(E);e=U;var Z=p.redIAdd(p);Z=Z.redIAdd(Z),Z=Z.redIAdd(Z),n=R.redMul(E.redISub(U)).redISub(Z),i=this.y.redAdd(this.y)}else{var ue=this.z.redSqr(),Me=this.y.redSqr(),Se=this.x.redMul(Me),Le=this.x.redSub(ue).redMul(this.x.redAdd(ue));Le=Le.redAdd(Le).redIAdd(Le);var Ve=Se.redIAdd(Se);Ve=Ve.redIAdd(Ve);var at=Ve.redAdd(Ve);e=Le.redSqr().redISub(at),i=this.y.redAdd(this.z).redSqr().redISub(Me).redISub(ue);var et=Me.redSqr();et=et.redIAdd(et),et=et.redIAdd(et),et=et.redIAdd(et),n=Le.redMul(Ve.redISub(e)).redISub(et)}return this.curve.jpoint(e,n,i)},br.prototype._dbl=function(){var e=this.curve.a,n=this.x,i=this.y,d=this.z,g=d.redSqr().redSqr(),p=n.redSqr(),E=i.redSqr(),R=p.redAdd(p).redIAdd(p).redIAdd(e.redMul(g)),U=n.redAdd(n);U=U.redIAdd(U);var Z=U.redMul(E),ue=R.redSqr().redISub(Z.redAdd(Z)),Me=Z.redISub(ue),Se=E.redSqr();Se=Se.redIAdd(Se),Se=Se.redIAdd(Se),Se=Se.redIAdd(Se);var Le=R.redMul(Me).redISub(Se),Ve=i.redAdd(i).redMul(d);return this.curve.jpoint(ue,Le,Ve)},br.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),n=this.y.redSqr(),i=this.z.redSqr(),d=n.redSqr(),g=e.redAdd(e).redIAdd(e),p=g.redSqr(),E=this.x.redAdd(n).redSqr().redISub(e).redISub(d);E=E.redIAdd(E),E=E.redAdd(E).redIAdd(E),E=E.redISub(p);var R=E.redSqr(),U=d.redIAdd(d);U=U.redIAdd(U),U=U.redIAdd(U),U=U.redIAdd(U);var Z=g.redIAdd(E).redSqr().redISub(p).redISub(R).redISub(U),ue=n.redMul(Z);ue=ue.redIAdd(ue),ue=ue.redIAdd(ue);var Me=this.x.redMul(R).redISub(ue);Me=Me.redIAdd(Me),Me=Me.redIAdd(Me);var Se=this.y.redMul(Z.redMul(U.redISub(Z)).redISub(E.redMul(R)));Se=Se.redIAdd(Se),Se=Se.redIAdd(Se),Se=Se.redIAdd(Se);var Le=this.z.redAdd(E).redSqr().redISub(i).redISub(R);return this.curve.jpoint(Me,Se,Le)},br.prototype.mul=function(e,n){return e=new(De())(e,n),this.curve._wnafMul(this,e)},br.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var n=this.z.redSqr(),i=e.z.redSqr();if(this.x.redMul(i).redISub(e.x.redMul(n)).cmpn(0)!==0)return!1;var d=n.redMul(this.z),g=i.redMul(e.z);return this.y.redMul(g).redISub(e.y.redMul(d)).cmpn(0)===0},br.prototype.eqXToP=function(e){var n=this.z.redSqr(),i=e.toRed(this.curve.red).redMul(n);if(this.x.cmp(i)===0)return!0;for(var d=e.clone(),g=this.curve.redN.redMul(n);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(g),this.x.cmp(i)===0)return!0}},br.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},br.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Qo=yo(function(u,e){"use strict";var n=e;n.base=co,n.short=Ti,n.mont=null,n.edwards=null}),en=yo(function(u,e){"use strict";var n=e,i=kr.assert;function d(E){E.type==="short"?this.curve=new Qo.short(E):E.type==="edwards"?this.curve=new Qo.edwards(E):this.curve=new Qo.mont(E),this.g=this.curve.g,this.n=this.curve.n,this.hash=E.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}n.PresetCurve=d;function g(E,R){Object.defineProperty(n,E,{configurable:!0,enumerable:!0,get:function(){var U=new d(R);return Object.defineProperty(n,E,{configurable:!0,enumerable:!0,value:U}),U}})}g("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Rt().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),g("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Rt().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),g("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Rt().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),g("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Rt().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),g("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Rt().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),g("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Rt().sha256,gRed:!1,g:["9"]}),g("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Rt().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var p;try{p=null.crash()}catch{p=void 0}g("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Rt().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",p]})});function uo(u){if(!(this instanceof uo))return new uo(u);this.hash=u.hash,this.predResist=!!u.predResist,this.outLen=this.hash.outSize,this.minEntropy=u.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Vr.toArray(u.entropy,u.entropyEnc||"hex"),n=Vr.toArray(u.nonce,u.nonceEnc||"hex"),i=Vr.toArray(u.pers,u.persEnc||"hex");Yo(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,i)}var Hn=uo;uo.prototype._init=function(e,n,i){var d=e.concat(n).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var g=0;g<this.V.length;g++)this.K[g]=0,this.V[g]=1;this._update(d),this._reseed=1,this.reseedInterval=281474976710656},uo.prototype._hmac=function(){return new(Rt()).hmac(this.hash,this.K)},uo.prototype._update=function(e){var n=this._hmac().update(this.V).update([0]);e&&(n=n.update(e)),this.K=n.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},uo.prototype.reseed=function(e,n,i,d){typeof n!="string"&&(d=i,i=n,n=null),e=Vr.toArray(e,n),i=Vr.toArray(i,d),Yo(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(i||[])),this._reseed=1},uo.prototype.generate=function(e,n,i,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof n!="string"&&(d=i,i=n,n=null),i&&(i=Vr.toArray(i,d||"hex"),this._update(i));for(var g=[];g.length<e;)this.V=this._hmac().update(this.V).digest(),g=g.concat(this.V);var p=g.slice(0,e);return this._update(i),this._reseed++,Vr.encode(p,n)};var bn=kr.assert;function Tr(u,e){this.ec=u,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var An=Tr;Tr.fromPublic=function(e,n,i){return n instanceof Tr?n:new Tr(e,{pub:n,pubEnc:i})},Tr.fromPrivate=function(e,n,i){return n instanceof Tr?n:new Tr(e,{priv:n,privEnc:i})},Tr.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},Tr.prototype.getPublic=function(e,n){return typeof e=="string"&&(n=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),n?this.pub.encode(n,e):this.pub},Tr.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv},Tr.prototype._importPrivate=function(e,n){this.priv=new(De())(e,n||16),this.priv=this.priv.umod(this.ec.curve.n)},Tr.prototype._importPublic=function(e,n){if(e.x||e.y){this.ec.curve.type==="mont"?bn(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&bn(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,n)},Tr.prototype.derive=function(e){return e.validate()||bn(e.validate(),"public point not validated"),e.mul(this.priv).getX()},Tr.prototype.sign=function(e,n,i){return this.ec.sign(e,this,n,i)},Tr.prototype.verify=function(e,n){return this.ec.verify(e,n,this)},Tr.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var Ii=kr.assert;function mo(u,e){if(u instanceof mo)return u;this._importDER(u,e)||(Ii(u.r&&u.s,"Signature without r or s"),this.r=new(De())(u.r,16),this.s=new(De())(u.s,16),u.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=u.recoveryParam)}var tn=mo;function Si(){this.place=0}function rn(u,e){var n=u[e.place++];if(!(n&128))return n;var i=n&15;if(i===0||i>4)return!1;for(var d=0,g=0,p=e.place;g<i;g++,p++)d<<=8,d|=u[p],d>>>=0;return d<=127?!1:(e.place=p,d)}function Kn(u){for(var e=0,n=u.length-1;!u[e]&&!(u[e+1]&128)&&e<n;)e++;return e===0?u:u.slice(e)}mo.prototype._importDER=function(e,n){e=kr.toArray(e,n);var i=new Si;if(e[i.place++]!==48)return!1;var d=rn(e,i);if(d===!1||d+i.place!==e.length||e[i.place++]!==2)return!1;var g=rn(e,i);if(g===!1)return!1;var p=e.slice(i.place,g+i.place);if(i.place+=g,e[i.place++]!==2)return!1;var E=rn(e,i);if(E===!1||e.length!==E+i.place)return!1;var R=e.slice(i.place,E+i.place);if(p[0]===0)if(p[1]&128)p=p.slice(1);else return!1;if(R[0]===0)if(R[1]&128)R=R.slice(1);else return!1;return this.r=new(De())(p),this.s=new(De())(R),this.recoveryParam=null,!0};function lo(u,e){if(e<128){u.push(e);return}var n=1+(Math.log(e)/Math.LN2>>>3);for(u.push(n|128);--n;)u.push(e>>>(n<<3)&255);u.push(e)}mo.prototype.toDER=function(e){var n=this.r.toArray(),i=this.s.toArray();for(n[0]&128&&(n=[0].concat(n)),i[0]&128&&(i=[0].concat(i)),n=Kn(n),i=Kn(i);!i[0]&&!(i[1]&128);)i=i.slice(1);var d=[2];lo(d,n.length),d=d.concat(n),d.push(2),lo(d,i.length);var g=d.concat(i),p=[48];return lo(p,g.length),p=p.concat(g),kr.encode(p,e)};var Pi=function(){throw new Error("unsupported")},Zn=kr.assert;function Kr(u){if(!(this instanceof Kr))return new Kr(u);typeof u=="string"&&(Zn(Object.prototype.hasOwnProperty.call(en,u),"Unknown curve "+u),u=en[u]),u instanceof en.PresetCurve&&(u={curve:u}),this.curve=u.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=u.curve.g,this.g.precompute(u.curve.n.bitLength()+1),this.hash=u.hash||u.curve.hash}var Oi=Kr;Kr.prototype.keyPair=function(e){return new An(this,e)},Kr.prototype.keyFromPrivate=function(e,n){return An.fromPrivate(this,e,n)},Kr.prototype.keyFromPublic=function(e,n){return An.fromPublic(this,e,n)},Kr.prototype.genKeyPair=function(e){e||(e={});for(var n=new Hn({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||Pi(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),d=this.n.sub(new(De())(2));;){var g=new(De())(n.generate(i));if(!(g.cmp(d)>0))return g.iaddn(1),this.keyFromPrivate(g)}},Kr.prototype._truncateToN=function(e,n){var i=e.byteLength()*8-this.n.bitLength();return i>0&&(e=e.ushrn(i)),!n&&e.cmp(this.n)>=0?e.sub(this.n):e},Kr.prototype.sign=function(e,n,i,d){typeof i=="object"&&(d=i,i=null),d||(d={}),n=this.keyFromPrivate(n,i),e=this._truncateToN(new(De())(e,16));for(var g=this.n.byteLength(),p=n.getPrivate().toArray("be",g),E=e.toArray("be",g),R=new Hn({hash:this.hash,entropy:p,nonce:E,pers:d.pers,persEnc:d.persEnc||"utf8"}),U=this.n.sub(new(De())(1)),Z=0;;Z++){var ue=d.k?d.k(Z):new(De())(R.generate(this.n.byteLength()));if(ue=this._truncateToN(ue,!0),!(ue.cmpn(1)<=0||ue.cmp(U)>=0)){var Me=this.g.mul(ue);if(!Me.isInfinity()){var Se=Me.getX(),Le=Se.umod(this.n);if(Le.cmpn(0)!==0){var Ve=ue.invm(this.n).mul(Le.mul(n.getPrivate()).iadd(e));if(Ve=Ve.umod(this.n),Ve.cmpn(0)!==0){var at=(Me.getY().isOdd()?1:0)|(Se.cmp(Le)!==0?2:0);return d.canonical&&Ve.cmp(this.nh)>0&&(Ve=this.n.sub(Ve),at^=1),new tn({r:Le,s:Ve,recoveryParam:at})}}}}}},Kr.prototype.verify=function(e,n,i,d){e=this._truncateToN(new(De())(e,16)),i=this.keyFromPublic(i,d),n=new tn(n,"hex");var g=n.r,p=n.s;if(g.cmpn(1)<0||g.cmp(this.n)>=0||p.cmpn(1)<0||p.cmp(this.n)>=0)return!1;var E=p.invm(this.n),R=E.mul(e).umod(this.n),U=E.mul(g).umod(this.n),Z;return this.curve._maxwellTrick?(Z=this.g.jmulAdd(R,i.getPublic(),U),Z.isInfinity()?!1:Z.eqXToP(g)):(Z=this.g.mulAdd(R,i.getPublic(),U),Z.isInfinity()?!1:Z.getX().umod(this.n).cmp(g)===0)},Kr.prototype.recoverPubKey=function(u,e,n,i){Zn((3&n)===n,"The recovery param is more than two bits"),e=new tn(e,i);var d=this.n,g=new(De())(u),p=e.r,E=e.s,R=n&1,U=n>>1;if(p.cmp(this.curve.p.umod(this.curve.n))>=0&&U)throw new Error("Unable to find sencond key candinate");U?p=this.curve.pointFromX(p.add(this.curve.n),R):p=this.curve.pointFromX(p,R);var Z=e.r.invm(d),ue=d.sub(g).mul(Z).umod(d),Me=E.mul(Z).umod(d);return this.g.mulAdd(ue,p,Me)},Kr.prototype.getKeyRecoveryParam=function(u,e,n,i){if(e=new tn(e,i),e.recoveryParam!==null)return e.recoveryParam;for(var d=0;d<4;d++){var g;try{g=this.recoverPubKey(u,e,d)}catch{continue}if(g.eq(n))return d}throw new Error("Unable to find valid recovery factor")};var Fi=yo(function(u,e){"use strict";var n=e;n.version="6.5.4",n.utils=kr,n.rand=function(){throw new Error("unsupported")},n.curve=Qo,n.curves=en,n.ec=Oi,n.eddsa=null}),Po=Fi.ec;const Oo="signing-key/5.7.0",on=new r.Logger(Oo);let wn=null;function Jr(){return wn||(wn=new Po("secp256k1")),wn}class vo{constructor(e){(0,t.defineReadOnly)(this,"curve","secp256k1"),(0,t.defineReadOnly)(this,"privateKey",(0,f.hexlify)(e)),(0,f.hexDataLength)(this.privateKey)!==32&&on.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const n=Jr().keyFromPrivate((0,f.arrayify)(this.privateKey));(0,t.defineReadOnly)(this,"publicKey","0x"+n.getPublic(!1,"hex")),(0,t.defineReadOnly)(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),(0,t.defineReadOnly)(this,"_isSigningKey",!0)}_addPoint(e){const n=Jr().keyFromPublic((0,f.arrayify)(this.publicKey)),i=Jr().keyFromPublic((0,f.arrayify)(e));return"0x"+n.pub.add(i.pub).encodeCompressed("hex")}signDigest(e){const n=Jr().keyFromPrivate((0,f.arrayify)(this.privateKey)),i=(0,f.arrayify)(e);i.length!==32&&on.throwArgumentError("bad digest length","digest",e);const d=n.sign(i,{canonical:!0});return(0,f.splitSignature)({recoveryParam:d.recoveryParam,r:(0,f.hexZeroPad)("0x"+d.r.toString(16),32),s:(0,f.hexZeroPad)("0x"+d.s.toString(16),32)})}computeSharedSecret(e){const n=Jr().keyFromPrivate((0,f.arrayify)(this.privateKey)),i=Jr().keyFromPublic((0,f.arrayify)(Cn(e)));return(0,f.hexZeroPad)("0x"+n.derive(i.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function Uo(u,e){const n=(0,f.splitSignature)(e),i={r:(0,f.arrayify)(n.r),s:(0,f.arrayify)(n.s)};return"0x"+Jr().recoverPubKey((0,f.arrayify)(u),i,n.recoveryParam).encode("hex",!1)}function Cn(u,e){const n=(0,f.arrayify)(u);if(n.length===32){const i=new vo(n);return e?"0x"+Jr().keyFromPrivate(n).getPublic(!0,"hex"):i.publicKey}else{if(n.length===33)return e?(0,f.hexlify)(n):"0x"+Jr().keyFromPublic(n).getPublic(!1,"hex");if(n.length===65)return e?"0x"+Jr().keyFromPublic(n).getPublic(!0,"hex"):(0,f.hexlify)(n)}return on.throwArgumentError("invalid public or private key","key","[REDACTED]")}const Mi="transactions/5.7.0",Ir=new r.Logger(Mi);var Bn;(function(u){u[u.legacy=0]="legacy",u[u.eip2930=1]="eip2930",u[u.eip1559=2]="eip1559"})(Bn||(Bn={}));function Lo(u){return u==="0x"?null:Oe(u)}function Sr(u){return u==="0x"?Xe:a.O$.from(u)}const Ri=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],ki={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function qr(u){const e=Cn(u);return Oe((0,f.hexDataSlice)((0,re.keccak256)((0,f.hexDataSlice)(e,1)),12))}function zo(u,e){return qr(Uo((0,f.arrayify)(u),e))}function Wr(u,e){const n=(0,f.stripZeros)(a.O$.from(u).toHexString());return n.length>32&&Ir.throwArgumentError("invalid length for "+e,"transaction:"+e,u),n}function En(u,e){return{address:Oe(u),storageKeys:(e||[]).map((n,i)=>((0,f.hexDataLength)(n)!==32&&Ir.throwArgumentError("invalid access list storageKey",`accessList[${u}:${i}]`,n),n.toLowerCase()))}}function fo(u){if(Array.isArray(u))return u.map((n,i)=>Array.isArray(n)?(n.length>2&&Ir.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${i}]`,n),En(n[0],n[1])):En(n.address,n.storageKeys));const e=Object.keys(u).map(n=>{const i=u[n].reduce((d,g)=>(d[g]=!0,d),{});return En(n,Object.keys(i).sort())});return e.sort((n,i)=>n.address.localeCompare(i.address)),e}function st(u){return fo(u).map(e=>[e.address,e.storageKeys])}function Ut(u,e){if(u.gasPrice!=null){const i=a.O$.from(u.gasPrice),d=a.O$.from(u.maxFeePerGas||0);i.eq(d)||Ir.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:i,maxFeePerGas:d})}const n=[Wr(u.chainId||0,"chainId"),Wr(u.nonce||0,"nonce"),Wr(u.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Wr(u.maxFeePerGas||0,"maxFeePerGas"),Wr(u.gasLimit||0,"gasLimit"),u.to!=null?Oe(u.to):"0x",Wr(u.value||0,"value"),u.data||"0x",st(u.accessList||[])];if(e){const i=(0,f.splitSignature)(e);n.push(Wr(i.recoveryParam,"recoveryParam")),n.push((0,f.stripZeros)(i.r)),n.push((0,f.stripZeros)(i.s))}return(0,f.hexConcat)(["0x02",se(n)])}function Jn(u,e){const n=[Wr(u.chainId||0,"chainId"),Wr(u.nonce||0,"nonce"),Wr(u.gasPrice||0,"gasPrice"),Wr(u.gasLimit||0,"gasLimit"),u.to!=null?Oe(u.to):"0x",Wr(u.value||0,"value"),u.data||"0x",st(u.accessList||[])];if(e){const i=(0,f.splitSignature)(e);n.push(Wr(i.recoveryParam,"recoveryParam")),n.push((0,f.stripZeros)(i.r)),n.push((0,f.stripZeros)(i.s))}return(0,f.hexConcat)(["0x01",se(n)])}function _i(u,e){(0,t.checkProperties)(u,ki);const n=[];Ri.forEach(function(p){let E=u[p.name]||[];const R={};p.numeric&&(R.hexPad="left"),E=(0,f.arrayify)((0,f.hexlify)(E,R)),p.length&&E.length!==p.length&&E.length>0&&Ir.throwArgumentError("invalid length for "+p.name,"transaction:"+p.name,E),p.maxLength&&(E=(0,f.stripZeros)(E),E.length>p.maxLength&&Ir.throwArgumentError("invalid length for "+p.name,"transaction:"+p.name,E)),n.push((0,f.hexlify)(E))});let i=0;if(u.chainId!=null?(i=u.chainId,typeof i!="number"&&Ir.throwArgumentError("invalid transaction.chainId","transaction",u)):e&&!(0,f.isBytesLike)(e)&&e.v>28&&(i=Math.floor((e.v-35)/2)),i!==0&&(n.push((0,f.hexlify)(i)),n.push("0x"),n.push("0x")),!e)return se(n);const d=(0,f.splitSignature)(e);let g=27+d.recoveryParam;return i!==0?(n.pop(),n.pop(),n.pop(),g+=i*2+8,d.v>28&&d.v!==g&&Ir.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):d.v!==g&&Ir.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),n.push((0,f.hexlify)(g)),n.push((0,f.stripZeros)((0,f.arrayify)(d.r))),n.push((0,f.stripZeros)((0,f.arrayify)(d.s))),se(n)}function nn(u,e){if(u.type==null||u.type===0)return u.accessList!=null&&Ir.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",u),_i(u,e);switch(u.type){case 1:return Jn(u,e);case 2:return Ut(u,e);default:break}return Ir.throwError(`unsupported transaction type: ${u.type}`,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:u.type})}function Tn(u,e,n){try{const i=Sr(e[0]).toNumber();if(i!==0&&i!==1)throw new Error("bad recid");u.v=i}catch{Ir.throwArgumentError("invalid v for transaction type: 1","v",e[0])}u.r=(0,f.hexZeroPad)(e[1],32),u.s=(0,f.hexZeroPad)(e[2],32);try{const i=(0,re.keccak256)(n(u));u.from=zo(i,{r:u.r,s:u.s,recoveryParam:u.v})}catch{}}function qn(u){const e=Ue(u.slice(1));e.length!==9&&e.length!==12&&Ir.throwArgumentError("invalid component count for transaction type: 2","payload",(0,f.hexlify)(u));const n=Sr(e[2]),i=Sr(e[3]),d={type:2,chainId:Sr(e[0]).toNumber(),nonce:Sr(e[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:i,gasPrice:null,gasLimit:Sr(e[4]),to:Lo(e[5]),value:Sr(e[6]),data:e[7],accessList:fo(e[8])};return e.length===9||(d.hash=(0,re.keccak256)(u),Tn(d,e.slice(9),Ut)),d}function Yn(u){const e=Ue(u.slice(1));e.length!==8&&e.length!==11&&Ir.throwArgumentError("invalid component count for transaction type: 1","payload",(0,f.hexlify)(u));const n={type:1,chainId:Sr(e[0]).toNumber(),nonce:Sr(e[1]).toNumber(),gasPrice:Sr(e[2]),gasLimit:Sr(e[3]),to:Lo(e[4]),value:Sr(e[5]),data:e[6],accessList:fo(e[7])};return e.length===8||(n.hash=(0,re.keccak256)(u),Tn(n,e.slice(8),Jn)),n}function In(u){const e=Ue(u);e.length!==9&&e.length!==6&&Ir.throwArgumentError("invalid raw transaction","rawTransaction",u);const n={nonce:Sr(e[0]).toNumber(),gasPrice:Sr(e[1]),gasLimit:Sr(e[2]),to:Lo(e[3]),value:Sr(e[4]),data:e[5],chainId:0};if(e.length===6)return n;try{n.v=a.O$.from(e[6]).toNumber()}catch{return n}if(n.r=(0,f.hexZeroPad)(e[7],32),n.s=(0,f.hexZeroPad)(e[8],32),a.O$.from(n.r).isZero()&&a.O$.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);let i=n.v-27;const d=e.slice(0,6);n.chainId!==0&&(d.push((0,f.hexlify)(n.chainId)),d.push("0x"),d.push("0x"),i-=n.chainId*2+8);const g=(0,re.keccak256)(se(d));try{n.from=zo(g,{r:(0,f.hexlify)(n.r),s:(0,f.hexlify)(n.s),recoveryParam:i})}catch{}n.hash=(0,re.keccak256)(u)}return n.type=null,n}function sn(u){const e=(0,f.arrayify)(u);if(e[0]>127)return In(e);switch(e[0]){case 1:return Yn(e);case 2:return qn(e);default:break}return Ir.throwError(`unsupported transaction type: ${e[0]}`,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const Ni="contracts/5.7.0";var po=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const Yt=new r.Logger(Ni),Di={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function ho(u,e){return po(this,void 0,void 0,function*(){const n=yield e;typeof n!="string"&&Yt.throwArgumentError("invalid address or ENS name","name",n);try{return Oe(n)}catch{}u||Yt.throwError("a provider or signer is needed to resolve ENS names",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const i=yield u.resolveName(n);return i==null&&Yt.throwArgumentError("resolver or addr is not configured for ENS name","name",n),i})}function Fo(u,e,n){return po(this,void 0,void 0,function*(){return Array.isArray(n)?yield Promise.all(n.map((i,d)=>Fo(u,Array.isArray(e)?e[d]:e[i.name],i))):n.type==="address"?yield ho(u,e):n.type==="tuple"?yield Fo(u,e,n.components):n.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(i=>Fo(u,i,n.arrayChildren))):Promise.reject(Yt.makeError("invalid value for array",r.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function jo(u,e,n){return po(this,void 0,void 0,function*(){let i={};n.length===e.inputs.length+1&&typeof n[n.length-1]=="object"&&(i=(0,t.shallowCopy)(n.pop())),Yt.checkArgumentCount(n.length,e.inputs.length,"passed to contract"),u.signer?i.from?i.from=(0,t.resolveProperties)({override:ho(u.signer,i.from),signer:u.signer.getAddress()}).then(U=>po(this,void 0,void 0,function*(){return Oe(U.signer)!==U.override&&Yt.throwError("Contract with a Signer cannot override from",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),U.override})):i.from=u.signer.getAddress():i.from&&(i.from=ho(u.provider,i.from));const d=yield(0,t.resolveProperties)({args:Fo(u.signer||u.provider,n,e.inputs),address:u.resolvedAddress,overrides:(0,t.resolveProperties)(i)||{}}),g=u.interface.encodeFunctionData(e,d.args),p={data:g,to:d.address},E=d.overrides;if(E.nonce!=null&&(p.nonce=a.O$.from(E.nonce).toNumber()),E.gasLimit!=null&&(p.gasLimit=a.O$.from(E.gasLimit)),E.gasPrice!=null&&(p.gasPrice=a.O$.from(E.gasPrice)),E.maxFeePerGas!=null&&(p.maxFeePerGas=a.O$.from(E.maxFeePerGas)),E.maxPriorityFeePerGas!=null&&(p.maxPriorityFeePerGas=a.O$.from(E.maxPriorityFeePerGas)),E.from!=null&&(p.from=E.from),E.type!=null&&(p.type=E.type),E.accessList!=null&&(p.accessList=fo(E.accessList)),p.gasLimit==null&&e.gas!=null){let U=21e3;const Z=(0,f.arrayify)(g);for(let ue=0;ue<Z.length;ue++)U+=4,Z[ue]&&(U+=64);p.gasLimit=a.O$.from(e.gas).add(U)}if(E.value){const U=a.O$.from(E.value);!U.isZero()&&!e.payable&&Yt.throwError("non-payable method cannot override value",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:i.value}),p.value=U}E.customData&&(p.customData=(0,t.shallowCopy)(E.customData)),E.ccipReadEnabled&&(p.ccipReadEnabled=!!E.ccipReadEnabled),delete i.nonce,delete i.gasLimit,delete i.gasPrice,delete i.from,delete i.value,delete i.type,delete i.accessList,delete i.maxFeePerGas,delete i.maxPriorityFeePerGas,delete i.customData,delete i.ccipReadEnabled;const R=Object.keys(i).filter(U=>i[U]!=null);return R.length&&Yt.throwError(`cannot override ${R.map(U=>JSON.stringify(U)).join(",")}`,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:R}),p})}function Q(u,e){return function(...n){return jo(u,e,n)}}function Mr(u,e){const n=u.signer||u.provider;return function(...i){return po(this,void 0,void 0,function*(){n||Yt.throwError("estimate require a provider or signer",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const d=yield jo(u,e,i);return yield n.estimateGas(d)})}}function Xn(u,e){const n=e.wait.bind(e);e.wait=i=>n(i).then(d=>(d.events=d.logs.map(g=>{let p=(0,t.deepCopy)(g),E=null;try{E=u.interface.parseLog(g)}catch{}return E&&(p.args=E.args,p.decode=(R,U)=>u.interface.decodeEventLog(E.eventFragment,R,U),p.event=E.name,p.eventSignature=E.signature),p.removeListener=()=>u.provider,p.getBlock=()=>u.provider.getBlock(d.blockHash),p.getTransaction=()=>u.provider.getTransaction(d.transactionHash),p.getTransactionReceipt=()=>Promise.resolve(d),p}),d))}function Qn(u,e,n){const i=u.signer||u.provider;return function(...d){return po(this,void 0,void 0,function*(){let g;if(d.length===e.inputs.length+1&&typeof d[d.length-1]=="object"){const R=(0,t.shallowCopy)(d.pop());R.blockTag!=null&&(g=yield R.blockTag),delete R.blockTag,d.push(R)}u.deployTransaction!=null&&(yield u._deployed(g));const p=yield jo(u,e,d),E=yield i.call(p,g);try{let R=u.interface.decodeFunctionResult(e,E);return n&&e.outputs.length===1&&(R=R[0]),R}catch(R){throw R.code===r.Logger.errors.CALL_EXCEPTION&&(R.address=u.address,R.args=d,R.transaction=p),R}})}}function Wi(u,e){return function(...n){return po(this,void 0,void 0,function*(){u.signer||Yt.throwError("sending a transaction requires a signer",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),u.deployTransaction!=null&&(yield u._deployed());const i=yield jo(u,e,n),d=yield u.signer.sendTransaction(i);return Xn(u,d),d})}}function ei(u,e,n){return e.constant?Qn(u,e,n):Wi(u,e)}function Sn(u){return u.address&&(u.topics==null||u.topics.length===0)?"*":(u.address||"*")+"@"+(u.topics?u.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class Go{constructor(e,n){(0,t.defineReadOnly)(this,"tag",e),(0,t.defineReadOnly)(this,"filter",n),this._listeners=[]}addListener(e,n){this._listeners.push({listener:e,once:n})}removeListener(e){let n=!1;this._listeners=this._listeners.filter(i=>n||i.listener!==e?!0:(n=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){const n=this.listenerCount();return this._listeners=this._listeners.filter(i=>{const d=e.slice();return setTimeout(()=>{i.listener.apply(this,d)},0),!i.once}),n}prepareEvent(e){}getEmit(e){return[e]}}class xo extends Go{constructor(){super("error",null)}}class ti extends Go{constructor(e,n,i,d){const g={address:e};let p=n.getEventTopic(i);d?(p!==d[0]&&Yt.throwArgumentError("topic mismatch","topics",d),g.topics=d.slice()):g.topics=[p],super(Sn(g),g),(0,t.defineReadOnly)(this,"address",e),(0,t.defineReadOnly)(this,"interface",n),(0,t.defineReadOnly)(this,"fragment",i)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(n,i)=>this.interface.decodeEventLog(this.fragment,n,i);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(n){e.args=null,e.decodeError=n}}getEmit(e){const n=K(e.args);if(n.length)throw n[0].error;const i=(e.args||[]).slice();return i.push(e),i}}class Vo extends Go{constructor(e,n){super("*",{address:e}),(0,t.defineReadOnly)(this,"address",e),(0,t.defineReadOnly)(this,"interface",n)}prepareEvent(e){super.prepareEvent(e);try{const n=this.interface.parseLog(e);e.event=n.name,e.eventSignature=n.signature,e.decode=(i,d)=>this.interface.decodeEventLog(n.eventFragment,i,d),e.args=n.args}catch{}}}class Pn{constructor(e,n,i){(0,t.defineReadOnly)(this,"interface",(0,t.getStatic)(new.target,"getInterface")(n)),i==null?((0,t.defineReadOnly)(this,"provider",null),(0,t.defineReadOnly)(this,"signer",null)):N.isSigner(i)?((0,t.defineReadOnly)(this,"provider",i.provider||null),(0,t.defineReadOnly)(this,"signer",i)):it.isProvider(i)?((0,t.defineReadOnly)(this,"provider",i),(0,t.defineReadOnly)(this,"signer",null)):Yt.throwArgumentError("invalid signer or provider","signerOrProvider",i),(0,t.defineReadOnly)(this,"callStatic",{}),(0,t.defineReadOnly)(this,"estimateGas",{}),(0,t.defineReadOnly)(this,"functions",{}),(0,t.defineReadOnly)(this,"populateTransaction",{}),(0,t.defineReadOnly)(this,"filters",{});{const p={};Object.keys(this.interface.events).forEach(E=>{const R=this.interface.events[E];(0,t.defineReadOnly)(this.filters,E,(...U)=>({address:this.address,topics:this.interface.encodeFilterTopics(R,U)})),p[R.name]||(p[R.name]=[]),p[R.name].push(E)}),Object.keys(p).forEach(E=>{const R=p[E];R.length===1?(0,t.defineReadOnly)(this.filters,E,this.filters[R[0]]):Yt.warn(`Duplicate definition of ${E} (${R.join(", ")})`)})}if((0,t.defineReadOnly)(this,"_runningEvents",{}),(0,t.defineReadOnly)(this,"_wrappedEmits",{}),e==null&&Yt.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,t.defineReadOnly)(this,"address",e),this.provider)(0,t.defineReadOnly)(this,"resolvedAddress",ho(this.provider,e));else try{(0,t.defineReadOnly)(this,"resolvedAddress",Promise.resolve(Oe(e)))}catch{Yt.throwError("provider is required to use ENS name as contract address",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(p=>{});const d={},g={};Object.keys(this.interface.functions).forEach(p=>{const E=this.interface.functions[p];if(g[p]){Yt.warn(`Duplicate ABI entry for ${JSON.stringify(p)}`);return}g[p]=!0;{const R=E.name;d[`%${R}`]||(d[`%${R}`]=[]),d[`%${R}`].push(p)}this[p]==null&&(0,t.defineReadOnly)(this,p,ei(this,E,!0)),this.functions[p]==null&&(0,t.defineReadOnly)(this.functions,p,ei(this,E,!1)),this.callStatic[p]==null&&(0,t.defineReadOnly)(this.callStatic,p,Qn(this,E,!0)),this.populateTransaction[p]==null&&(0,t.defineReadOnly)(this.populateTransaction,p,Q(this,E)),this.estimateGas[p]==null&&(0,t.defineReadOnly)(this.estimateGas,p,Mr(this,E))}),Object.keys(d).forEach(p=>{const E=d[p];if(E.length>1)return;p=p.substring(1);const R=E[0];try{this[p]==null&&(0,t.defineReadOnly)(this,p,this[R])}catch{}this.functions[p]==null&&(0,t.defineReadOnly)(this.functions,p,this.functions[R]),this.callStatic[p]==null&&(0,t.defineReadOnly)(this.callStatic,p,this.callStatic[R]),this.populateTransaction[p]==null&&(0,t.defineReadOnly)(this.populateTransaction,p,this.populateTransaction[R]),this.estimateGas[p]==null&&(0,t.defineReadOnly)(this.estimateGas,p,this.estimateGas[R])})}static getContractAddress(e){return ke(e)}static getInterface(e){return be.isInterface(e)?e:new be(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(n=>(n==="0x"&&Yt.throwError("contract not deployed",r.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||Yt.throwError("sending a transactions require a signer",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const n=(0,t.shallowCopy)(e||{});return["from","to"].forEach(function(i){n[i]!=null&&Yt.throwError("cannot override "+i,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:i})}),n.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(n))}connect(e){typeof e=="string"&&(e=new ie(e,this.provider));const n=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,t.defineReadOnly)(n,"deployTransaction",this.deployTransaction),n}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return cr.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new xo);if(e==="event")return this._normalizeRunningEvent(new Go("event",null));if(e==="*")return this._normalizeRunningEvent(new Vo(this.address,this.interface));const n=this.interface.getEvent(e);return this._normalizeRunningEvent(new ti(this.address,this.interface,n))}if(e.topics&&e.topics.length>0){try{const i=e.topics[0];if(typeof i!="string")throw new Error("invalid topic");const d=this.interface.getEvent(i);return this._normalizeRunningEvent(new ti(this.address,this.interface,d,e.topics))}catch{}const n={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Go(Sn(n),n))}return this._normalizeRunningEvent(new Vo(this.address,this.interface))}_checkRunningEvents(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];const n=this._wrappedEmits[e.tag];n&&e.filter&&(this.provider.off(e.filter,n),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,n,i){const d=(0,t.deepCopy)(n);return d.removeListener=()=>{!i||(e.removeListener(i),this._checkRunningEvents(e))},d.getBlock=()=>this.provider.getBlock(n.blockHash),d.getTransaction=()=>this.provider.getTransaction(n.transactionHash),d.getTransactionReceipt=()=>this.provider.getTransactionReceipt(n.transactionHash),e.prepareEvent(d),d}_addEventListener(e,n,i){if(this.provider||Yt.throwError("events require a provider or a signer with a provider",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(n,i),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const d=g=>{let p=this._wrapEvent(e,g,n);if(p.decodeError==null)try{const E=e.getEmit(p);this.emit(e.filter,...E)}catch(E){p.decodeError=E.error}e.filter!=null&&this.emit("event",p),p.decodeError!=null&&this.emit("error",p.decodeError,p)};this._wrappedEmits[e.tag]=d,e.filter!=null&&this.provider.on(e.filter,d)}}queryFilter(e,n,i){const d=this._getRunningEvent(e),g=(0,t.shallowCopy)(d.filter);return typeof n=="string"&&(0,f.isHexString)(n,32)?(i!=null&&Yt.throwArgumentError("cannot specify toBlock with blockhash","toBlock",i),g.blockHash=n):(g.fromBlock=n!=null?n:0,g.toBlock=i!=null?i:"latest"),this.provider.getLogs(g).then(p=>p.map(E=>this._wrapEvent(d,E,null)))}on(e,n){return this._addEventListener(this._getRunningEvent(e),n,!1),this}once(e,n){return this._addEventListener(this._getRunningEvent(e),n,!0),this}emit(e,...n){if(!this.provider)return!1;const i=this._getRunningEvent(e),d=i.run(n)>0;return this._checkRunningEvents(i),d}listenerCount(e){return this.provider?e==null?Object.keys(this._runningEvents).reduce((n,i)=>n+this._runningEvents[i].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(e==null){const n=[];for(let i in this._runningEvents)this._runningEvents[i].listeners().forEach(d=>{n.push(d)});return n}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(e==null){for(const i in this._runningEvents){const d=this._runningEvents[i];d.removeAllListeners(),this._checkRunningEvents(d)}return this}const n=this._getRunningEvent(e);return n.removeAllListeners(),this._checkRunningEvents(n),this}off(e,n){if(!this.provider)return this;const i=this._getRunningEvent(e);return i.removeListener(n),this._checkRunningEvents(i),this}removeListener(e,n){return this.off(e,n)}}class $o extends Pn{}class Ho{constructor(e,n,i){let d=null;typeof n=="string"?d=n:(0,f.isBytes)(n)?d=(0,f.hexlify)(n):n&&typeof n.object=="string"?d=n.object:d="!",d.substring(0,2)!=="0x"&&(d="0x"+d),(!(0,f.isHexString)(d)||d.length%2)&&Yt.throwArgumentError("invalid bytecode","bytecode",n),i&&!N.isSigner(i)&&Yt.throwArgumentError("invalid signer","signer",i),(0,t.defineReadOnly)(this,"bytecode",d),(0,t.defineReadOnly)(this,"interface",(0,t.getStatic)(new.target,"getInterface")(e)),(0,t.defineReadOnly)(this,"signer",i||null)}getDeployTransaction(...e){let n={};if(e.length===this.interface.deploy.inputs.length+1&&typeof e[e.length-1]=="object"){n=(0,t.shallowCopy)(e.pop());for(const i in n)if(!Di[i])throw new Error("unknown transaction override "+i)}return["data","from","to"].forEach(i=>{n[i]!=null&&Yt.throwError("cannot override "+i,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:i})}),n.value&&!a.O$.from(n.value).isZero()&&!this.interface.deploy.payable&&Yt.throwError("non-payable constructor cannot override value",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),Yt.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),n.data=(0,f.hexlify)((0,f.concat)([this.bytecode,this.interface.encodeDeploy(e)])),n}deploy(...e){return po(this,void 0,void 0,function*(){let n={};e.length===this.interface.deploy.inputs.length+1&&(n=e.pop()),Yt.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");const i=yield Fo(this.signer,e,this.interface.deploy.inputs);i.push(n);const d=this.getDeployTransaction(...i),g=yield this.signer.sendTransaction(d),p=(0,t.getStatic)(this.constructor,"getContractAddress")(g),E=(0,t.getStatic)(this.constructor,"getContract")(p,this.interface,this.signer);return Xn(E,g),(0,t.defineReadOnly)(E,"deployTransaction",g),E})}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,n){e==null&&Yt.throwError("missing compiler output",r.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),typeof e=="string"&&(e=JSON.parse(e));const i=e.abi;let d=null;return e.bytecode?d=e.bytecode:e.evm&&e.evm.bytecode&&(d=e.evm.bytecode),new this(i,d,n)}static getInterface(e){return $o.getInterface(e)}static getContractAddress(e){return ke(e)}static getContract(e,n,i){return new $o(e,n,i)}}var Mo=C(20335);const ri=`Ethereum Signed Message:
|
|
1
|
+
(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[3666],{48794:function(G,x,C){"use strict";C.d(x,{i:function(){return H}});const H="bignumber/5.7.0"},2593:function(G,x,C){"use strict";C.d(x,{O$:function(){return z},Zm:function(){return r},g$:function(){return re},t2:function(){return X}});var H=C(13550),O=C.n(H),P=C(93286),m=C(80711),o=C(48794),h=O().BN;const f=new m.Logger(o.i),a={},t=9007199254740991;function r(j){return j!=null&&(z.isBigNumber(j)||typeof j=="number"&&j%1===0||typeof j=="string"&&!!j.match(/^-?[0-9]+$/)||(0,P.isHexString)(j)||typeof j=="bigint"||(0,P.isBytes)(j))}let c=!1;class z{constructor(J,oe){J!==a&&f.throwError("cannot call constructor directly; use BigNumber.from",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=oe,this._isBigNumber=!0,Object.freeze(this)}fromTwos(J){return L(F(this).fromTwos(J))}toTwos(J){return L(F(this).toTwos(J))}abs(){return this._hex[0]==="-"?z.from(this._hex.substring(1)):this}add(J){return L(F(this).add(F(J)))}sub(J){return L(F(this).sub(F(J)))}div(J){return z.from(J).isZero()&&fe("division-by-zero","div"),L(F(this).div(F(J)))}mul(J){return L(F(this).mul(F(J)))}mod(J){const oe=F(J);return oe.isNeg()&&fe("division-by-zero","mod"),L(F(this).umod(oe))}pow(J){const oe=F(J);return oe.isNeg()&&fe("negative-power","pow"),L(F(this).pow(oe))}and(J){const oe=F(J);return(this.isNegative()||oe.isNeg())&&fe("unbound-bitwise-result","and"),L(F(this).and(oe))}or(J){const oe=F(J);return(this.isNegative()||oe.isNeg())&&fe("unbound-bitwise-result","or"),L(F(this).or(oe))}xor(J){const oe=F(J);return(this.isNegative()||oe.isNeg())&&fe("unbound-bitwise-result","xor"),L(F(this).xor(oe))}mask(J){return(this.isNegative()||J<0)&&fe("negative-width","mask"),L(F(this).maskn(J))}shl(J){return(this.isNegative()||J<0)&&fe("negative-width","shl"),L(F(this).shln(J))}shr(J){return(this.isNegative()||J<0)&&fe("negative-width","shr"),L(F(this).shrn(J))}eq(J){return F(this).eq(F(J))}lt(J){return F(this).lt(F(J))}lte(J){return F(this).lte(F(J))}gt(J){return F(this).gt(F(J))}gte(J){return F(this).gte(F(J))}isNegative(){return this._hex[0]==="-"}isZero(){return F(this).isZero()}toNumber(){try{return F(this).toNumber()}catch{fe("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return f.throwError("this platform does not support BigInt",m.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?c||(c=!0,f.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?f.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",m.Logger.errors.UNEXPECTED_ARGUMENT,{}):f.throwError("BigNumber.toString does not accept parameters",m.Logger.errors.UNEXPECTED_ARGUMENT,{})),F(this).toString(10)}toHexString(){return this._hex}toJSON(J){return{type:"BigNumber",hex:this.toHexString()}}static from(J){if(J instanceof z)return J;if(typeof J=="string")return J.match(/^-?0x[0-9a-f]+$/i)?new z(a,K(J)):J.match(/^-?[0-9]+$/)?new z(a,K(new h(J))):f.throwArgumentError("invalid BigNumber string","value",J);if(typeof J=="number")return J%1&&fe("underflow","BigNumber.from",J),(J>=t||J<=-t)&&fe("overflow","BigNumber.from",J),z.from(String(J));const oe=J;if(typeof oe=="bigint")return z.from(oe.toString());if((0,P.isBytes)(oe))return z.from((0,P.hexlify)(oe));if(oe)if(oe.toHexString){const Ce=oe.toHexString();if(typeof Ce=="string")return z.from(Ce)}else{let Ce=oe._hex;if(Ce==null&&oe.type==="BigNumber"&&(Ce=oe.hex),typeof Ce=="string"&&((0,P.isHexString)(Ce)||Ce[0]==="-"&&(0,P.isHexString)(Ce.substring(1))))return z.from(Ce)}return f.throwArgumentError("invalid BigNumber value","value",J)}static isBigNumber(J){return!!(J&&J._isBigNumber)}}function K(j){if(typeof j!="string")return K(j.toString(16));if(j[0]==="-")return j=j.substring(1),j[0]==="-"&&f.throwArgumentError("invalid hex","value",j),j=K(j),j==="0x00"?j:"-"+j;if(j.substring(0,2)!=="0x"&&(j="0x"+j),j==="0x")return"0x00";for(j.length%2&&(j="0x0"+j.substring(2));j.length>4&&j.substring(0,4)==="0x00";)j="0x"+j.substring(4);return j}function L(j){return z.from(K(j))}function F(j){const J=z.from(j).toHexString();return J[0]==="-"?new h("-"+J.substring(3),16):new h(J.substring(2),16)}function fe(j,J,oe){const Ce={fault:j,operation:J};return oe!=null&&(Ce.value=oe),f.throwError(j,m.Logger.errors.NUMERIC_FAULT,Ce)}function re(j){return new h(j,36).toString(16)}function X(j){return new h(j,16).toString(36)}},20335:function(G,x,C){"use strict";C.d(x,{Ox:function(){return K},S5:function(){return z},xO:function(){return L},xs:function(){return F}});var H=C(93286),O=C(80711),P=C(48794),m=C(2593);const o=new O.Logger(P.i),h={},f=m.O$.from(0),a=m.O$.from(-1);function t(X,j,J,oe){const Ce={fault:j,operation:J};return oe!==void 0&&(Ce.value=oe),o.throwError(X,O.Logger.errors.NUMERIC_FAULT,Ce)}let r="0";for(;r.length<256;)r+=r;function c(X){if(typeof X!="number")try{X=m.O$.from(X).toNumber()}catch{}return typeof X=="number"&&X>=0&&X<=256&&!(X%1)?"1"+r.substring(0,X):o.throwArgumentError("invalid decimal size","decimals",X)}function z(X,j){j==null&&(j=0);const J=c(j);X=m.O$.from(X);const oe=X.lt(f);oe&&(X=X.mul(a));let Ce=X.mod(J).toString();for(;Ce.length<J.length-1;)Ce="0"+Ce;Ce=Ce.match(/^([0-9]*[1-9]|0)(0*)/)[1];const se=X.div(J).toString();return J.length===1?X=se:X=se+"."+Ce,oe&&(X="-"+X),X}function K(X,j){j==null&&(j=0);const J=c(j);(typeof X!="string"||!X.match(/^-?[0-9.]+$/))&&o.throwArgumentError("invalid decimal value","value",X);const oe=X.substring(0,1)==="-";oe&&(X=X.substring(1)),X==="."&&o.throwArgumentError("missing value","value",X);const Ce=X.split(".");Ce.length>2&&o.throwArgumentError("too many decimal points","value",X);let se=Ce[0],ne=Ce[1];for(se||(se="0"),ne||(ne="0");ne[ne.length-1]==="0";)ne=ne.substring(0,ne.length-1);for(ne.length>J.length-1&&t("fractional component exceeds decimals","underflow","parseFixed"),ne===""&&(ne="0");ne.length<J.length-1;)ne+="0";const xe=m.O$.from(se),Ue=m.O$.from(ne);let ct=xe.mul(J).add(Ue);return oe&&(ct=ct.mul(a)),ct}class L{constructor(j,J,oe,Ce){j!==h&&o.throwError("cannot use FixedFormat constructor; use FixedFormat.from",O.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=J,this.width=oe,this.decimals=Ce,this.name=(J?"":"u")+"fixed"+String(oe)+"x"+String(Ce),this._multiplier=c(Ce),Object.freeze(this)}static from(j){if(j instanceof L)return j;typeof j=="number"&&(j=`fixed128x${j}`);let J=!0,oe=128,Ce=18;if(typeof j=="string"){if(j!=="fixed")if(j==="ufixed")J=!1;else{const se=j.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);se||o.throwArgumentError("invalid fixed format","format",j),J=se[1]!=="u",oe=parseInt(se[2]),Ce=parseInt(se[3])}}else if(j){const se=(ne,xe,Ue)=>j[ne]==null?Ue:(typeof j[ne]!==xe&&o.throwArgumentError("invalid fixed format ("+ne+" not "+xe+")","format."+ne,j[ne]),j[ne]);J=se("signed","boolean",J),oe=se("width","number",oe),Ce=se("decimals","number",Ce)}return oe%8&&o.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",oe),Ce>80&&o.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",Ce),new L(h,J,oe,Ce)}}class F{constructor(j,J,oe,Ce){j!==h&&o.throwError("cannot use FixedNumber constructor; use FixedNumber.from",O.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=Ce,this._hex=J,this._value=oe,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(j){this.format.name!==j.format.name&&o.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",j)}addUnsafe(j){this._checkFormat(j);const J=K(this._value,this.format.decimals),oe=K(j._value,j.format.decimals);return F.fromValue(J.add(oe),this.format.decimals,this.format)}subUnsafe(j){this._checkFormat(j);const J=K(this._value,this.format.decimals),oe=K(j._value,j.format.decimals);return F.fromValue(J.sub(oe),this.format.decimals,this.format)}mulUnsafe(j){this._checkFormat(j);const J=K(this._value,this.format.decimals),oe=K(j._value,j.format.decimals);return F.fromValue(J.mul(oe).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(j){this._checkFormat(j);const J=K(this._value,this.format.decimals),oe=K(j._value,j.format.decimals);return F.fromValue(J.mul(this.format._multiplier).div(oe),this.format.decimals,this.format)}floor(){const j=this.toString().split(".");j.length===1&&j.push("0");let J=F.from(j[0],this.format);const oe=!j[1].match(/^(0*)$/);return this.isNegative()&&oe&&(J=J.subUnsafe(fe.toFormat(J.format))),J}ceiling(){const j=this.toString().split(".");j.length===1&&j.push("0");let J=F.from(j[0],this.format);const oe=!j[1].match(/^(0*)$/);return!this.isNegative()&&oe&&(J=J.addUnsafe(fe.toFormat(J.format))),J}round(j){j==null&&(j=0);const J=this.toString().split(".");if(J.length===1&&J.push("0"),(j<0||j>80||j%1)&&o.throwArgumentError("invalid decimal count","decimals",j),J[1].length<=j)return this;const oe=F.from("1"+r.substring(0,j),this.format),Ce=re.toFormat(this.format);return this.mulUnsafe(oe).addUnsafe(Ce).floor().divUnsafe(oe)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(j){if(j==null)return this._hex;j%8&&o.throwArgumentError("invalid byte width","width",j);const J=m.O$.from(this._hex).fromTwos(this.format.width).toTwos(j).toHexString();return(0,H.hexZeroPad)(J,j/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(j){return F.fromString(this._value,j)}static fromValue(j,J,oe){return oe==null&&J!=null&&!(0,m.Zm)(J)&&(oe=J,J=null),J==null&&(J=0),oe==null&&(oe="fixed"),F.fromString(z(j,J),L.from(oe))}static fromString(j,J){J==null&&(J="fixed");const oe=L.from(J),Ce=K(j,oe.decimals);!oe.signed&&Ce.lt(f)&&t("unsigned value cannot be negative","overflow","value",j);let se=null;oe.signed?se=Ce.toTwos(oe.width).toHexString():(se=Ce.toHexString(),se=(0,H.hexZeroPad)(se,oe.width/8));const ne=z(Ce,oe.decimals);return new F(h,se,ne,oe)}static fromBytes(j,J){J==null&&(J="fixed");const oe=L.from(J);if((0,H.arrayify)(j).length>oe.width/8)throw new Error("overflow");let Ce=m.O$.from(j);oe.signed&&(Ce=Ce.fromTwos(oe.width));const se=Ce.toTwos((oe.signed?0:1)+oe.width).toHexString(),ne=z(Ce,oe.decimals);return new F(h,se,ne,oe)}static from(j,J){if(typeof j=="string")return F.fromString(j,J);if((0,H.isBytes)(j))return F.fromBytes(j,J);try{return F.fromValue(j,0,J)}catch(oe){if(oe.code!==O.Logger.errors.INVALID_ARGUMENT)throw oe}return o.throwArgumentError("invalid FixedNumber value","value",j)}static isFixedNumber(j){return!!(j&&j._isFixedNumber)}}const fe=F.from(1),re=F.from("0.5")},833:function(G,x,C){"use strict";C.r(x),C.d(x,{BigNumber:function(){return H.O$},FixedFormat:function(){return O.xO},FixedNumber:function(){return O.xs},_base16To36:function(){return H.t2},_base36To16:function(){return H.g$},formatFixed:function(){return O.S5},parseFixed:function(){return O.Ox}});var H=C(2593),O=C(20335)},93286:function(G,x,C){"use strict";C.r(x),C.d(x,{arrayify:function(){return t},concat:function(){return r},hexConcat:function(){return X},hexDataLength:function(){return fe},hexDataSlice:function(){return re},hexStripZeros:function(){return J},hexValue:function(){return j},hexZeroPad:function(){return oe},hexlify:function(){return F},isBytes:function(){return a},isBytesLike:function(){return h},isHexString:function(){return K},joinSignature:function(){return se},splitSignature:function(){return Ce},stripZeros:function(){return c},zeroPad:function(){return z}});var H=C(80711);const O="bytes/5.7.0",P=new H.Logger(O);function m(ne){return!!ne.toHexString}function o(ne){return ne.slice||(ne.slice=function(){const xe=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(ne,xe)))}),ne}function h(ne){return K(ne)&&!(ne.length%2)||a(ne)}function f(ne){return typeof ne=="number"&&ne==ne&&ne%1===0}function a(ne){if(ne==null)return!1;if(ne.constructor===Uint8Array)return!0;if(typeof ne=="string"||!f(ne.length)||ne.length<0)return!1;for(let xe=0;xe<ne.length;xe++){const Ue=ne[xe];if(!f(Ue)||Ue<0||Ue>=256)return!1}return!0}function t(ne,xe){if(xe||(xe={}),typeof ne=="number"){P.checkSafeUint53(ne,"invalid arrayify value");const Ue=[];for(;ne;)Ue.unshift(ne&255),ne=parseInt(String(ne/256));return Ue.length===0&&Ue.push(0),o(new Uint8Array(Ue))}if(xe.allowMissingPrefix&&typeof ne=="string"&&ne.substring(0,2)!=="0x"&&(ne="0x"+ne),m(ne)&&(ne=ne.toHexString()),K(ne)){let Ue=ne.substring(2);Ue.length%2&&(xe.hexPad==="left"?Ue="0"+Ue:xe.hexPad==="right"?Ue+="0":P.throwArgumentError("hex data is odd-length","value",ne));const ct=[];for(let ft=0;ft<Ue.length;ft+=2)ct.push(parseInt(Ue.substring(ft,ft+2),16));return o(new Uint8Array(ct))}return a(ne)?o(new Uint8Array(ne)):P.throwArgumentError("invalid arrayify value","value",ne)}function r(ne){const xe=ne.map(ft=>t(ft)),Ue=xe.reduce((ft,Je)=>ft+Je.length,0),ct=new Uint8Array(Ue);return xe.reduce((ft,Je)=>(ct.set(Je,ft),ft+Je.length),0),o(ct)}function c(ne){let xe=t(ne);if(xe.length===0)return xe;let Ue=0;for(;Ue<xe.length&&xe[Ue]===0;)Ue++;return Ue&&(xe=xe.slice(Ue)),xe}function z(ne,xe){ne=t(ne),ne.length>xe&&P.throwArgumentError("value out of range","value",arguments[0]);const Ue=new Uint8Array(xe);return Ue.set(ne,xe-ne.length),o(Ue)}function K(ne,xe){return!(typeof ne!="string"||!ne.match(/^0x[0-9A-Fa-f]*$/)||xe&&ne.length!==2+2*xe)}const L="0123456789abcdef";function F(ne,xe){if(xe||(xe={}),typeof ne=="number"){P.checkSafeUint53(ne,"invalid hexlify value");let Ue="";for(;ne;)Ue=L[ne&15]+Ue,ne=Math.floor(ne/16);return Ue.length?(Ue.length%2&&(Ue="0"+Ue),"0x"+Ue):"0x00"}if(typeof ne=="bigint")return ne=ne.toString(16),ne.length%2?"0x0"+ne:"0x"+ne;if(xe.allowMissingPrefix&&typeof ne=="string"&&ne.substring(0,2)!=="0x"&&(ne="0x"+ne),m(ne))return ne.toHexString();if(K(ne))return ne.length%2&&(xe.hexPad==="left"?ne="0x0"+ne.substring(2):xe.hexPad==="right"?ne+="0":P.throwArgumentError("hex data is odd-length","value",ne)),ne.toLowerCase();if(a(ne)){let Ue="0x";for(let ct=0;ct<ne.length;ct++){let ft=ne[ct];Ue+=L[(ft&240)>>4]+L[ft&15]}return Ue}return P.throwArgumentError("invalid hexlify value","value",ne)}function fe(ne){if(typeof ne!="string")ne=F(ne);else if(!K(ne)||ne.length%2)return null;return(ne.length-2)/2}function re(ne,xe,Ue){return typeof ne!="string"?ne=F(ne):(!K(ne)||ne.length%2)&&P.throwArgumentError("invalid hexData","value",ne),xe=2+2*xe,Ue!=null?"0x"+ne.substring(xe,2+2*Ue):"0x"+ne.substring(xe)}function X(ne){let xe="0x";return ne.forEach(Ue=>{xe+=F(Ue).substring(2)}),xe}function j(ne){const xe=J(F(ne,{hexPad:"left"}));return xe==="0x"?"0x0":xe}function J(ne){typeof ne!="string"&&(ne=F(ne)),K(ne)||P.throwArgumentError("invalid hex string","value",ne),ne=ne.substring(2);let xe=0;for(;xe<ne.length&&ne[xe]==="0";)xe++;return"0x"+ne.substring(xe)}function oe(ne,xe){for(typeof ne!="string"?ne=F(ne):K(ne)||P.throwArgumentError("invalid hex string","value",ne),ne.length>2*xe+2&&P.throwArgumentError("value out of range","value",arguments[1]);ne.length<2*xe+2;)ne="0x0"+ne.substring(2);return ne}function Ce(ne){const xe={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(h(ne)){let Ue=t(ne);Ue.length===64?(xe.v=27+(Ue[32]>>7),Ue[32]&=127,xe.r=F(Ue.slice(0,32)),xe.s=F(Ue.slice(32,64))):Ue.length===65?(xe.r=F(Ue.slice(0,32)),xe.s=F(Ue.slice(32,64)),xe.v=Ue[64]):P.throwArgumentError("invalid signature string","signature",ne),xe.v<27&&(xe.v===0||xe.v===1?xe.v+=27:P.throwArgumentError("signature invalid v byte","signature",ne)),xe.recoveryParam=1-xe.v%2,xe.recoveryParam&&(Ue[32]|=128),xe._vs=F(Ue.slice(32,64))}else{if(xe.r=ne.r,xe.s=ne.s,xe.v=ne.v,xe.recoveryParam=ne.recoveryParam,xe._vs=ne._vs,xe._vs!=null){const ft=z(t(xe._vs),32);xe._vs=F(ft);const Je=ft[0]>=128?1:0;xe.recoveryParam==null?xe.recoveryParam=Je:xe.recoveryParam!==Je&&P.throwArgumentError("signature recoveryParam mismatch _vs","signature",ne),ft[0]&=127;const Ot=F(ft);xe.s==null?xe.s=Ot:xe.s!==Ot&&P.throwArgumentError("signature v mismatch _vs","signature",ne)}if(xe.recoveryParam==null)xe.v==null?P.throwArgumentError("signature missing v and recoveryParam","signature",ne):xe.v===0||xe.v===1?xe.recoveryParam=xe.v:xe.recoveryParam=1-xe.v%2;else if(xe.v==null)xe.v=27+xe.recoveryParam;else{const ft=xe.v===0||xe.v===1?xe.v:1-xe.v%2;xe.recoveryParam!==ft&&P.throwArgumentError("signature recoveryParam mismatch v","signature",ne)}xe.r==null||!K(xe.r)?P.throwArgumentError("signature missing or invalid r","signature",ne):xe.r=oe(xe.r,32),xe.s==null||!K(xe.s)?P.throwArgumentError("signature missing or invalid s","signature",ne):xe.s=oe(xe.s,32);const Ue=t(xe.s);Ue[0]>=128&&P.throwArgumentError("signature s out of range","signature",ne),xe.recoveryParam&&(Ue[0]|=128);const ct=F(Ue);xe._vs&&(K(xe._vs)||P.throwArgumentError("signature invalid _vs","signature",ne),xe._vs=oe(xe._vs,32)),xe._vs==null?xe._vs=ct:xe._vs!==ct&&P.throwArgumentError("signature _vs mismatch v and s","signature",ne)}return xe.yParityAndS=xe._vs,xe.compact=xe.r+xe.yParityAndS.substring(2),xe}function se(ne){return ne=Ce(ne),F(r([ne.r,ne.s,ne.recoveryParam?"0x1c":"0x1b"]))}},57218:function(G,x,C){"use strict";C.d(x,{R:function(){return H}});const H="0x0000000000000000000000000000000000000000000000000000000000000000"},48709:function(G){"use strict";(function(x){function C(Ee){return parseInt(Ee)===Ee}function H(Ee){if(!C(Ee.length))return!1;for(var Oe=0;Oe<Ee.length;Oe++)if(!C(Ee[Oe])||Ee[Oe]<0||Ee[Oe]>255)return!1;return!0}function O(Ee,Oe){if(Ee.buffer&&ArrayBuffer.isView(Ee)&&Ee.name==="Uint8Array")return Oe&&(Ee.slice?Ee=Ee.slice():Ee=Array.prototype.slice.call(Ee)),Ee;if(Array.isArray(Ee)){if(!H(Ee))throw new Error("Array contains invalid value: "+Ee);return new Uint8Array(Ee)}if(C(Ee.length)&&H(Ee))return new Uint8Array(Ee);throw new Error("unsupported array-like object")}function P(Ee){return new Uint8Array(Ee)}function m(Ee,Oe,Ke,_e,ke){(_e!=null||ke!=null)&&(Ee.slice?Ee=Ee.slice(_e,ke):Ee=Array.prototype.slice.call(Ee,_e,ke)),Oe.set(Ee,Ke)}var o=function(){function Ee(Ke){var _e=[],ke=0;for(Ke=encodeURI(Ke);ke<Ke.length;){var dt=Ke.charCodeAt(ke++);dt===37?(_e.push(parseInt(Ke.substr(ke,2),16)),ke+=2):_e.push(dt)}return O(_e)}function Oe(Ke){for(var _e=[],ke=0;ke<Ke.length;){var dt=Ke[ke];dt<128?(_e.push(String.fromCharCode(dt)),ke++):dt>191&&dt<224?(_e.push(String.fromCharCode((dt&31)<<6|Ke[ke+1]&63)),ke+=2):(_e.push(String.fromCharCode((dt&15)<<12|(Ke[ke+1]&63)<<6|Ke[ke+2]&63)),ke+=3)}return _e.join("")}return{toBytes:Ee,fromBytes:Oe}}(),h=function(){function Ee(_e){for(var ke=[],dt=0;dt<_e.length;dt+=2)ke.push(parseInt(_e.substr(dt,2),16));return ke}var Oe="0123456789abcdef";function Ke(_e){for(var ke=[],dt=0;dt<_e.length;dt++){var nt=_e[dt];ke.push(Oe[(nt&240)>>4]+Oe[nt&15])}return ke.join("")}return{toBytes:Ee,fromBytes:Ke}}(),f={16:10,24:12,32:14},a=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],t=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],r=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],c=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],z=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],K=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],L=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],F=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],fe=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],re=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],X=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],j=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],J=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],oe=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],Ce=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function se(Ee){for(var Oe=[],Ke=0;Ke<Ee.length;Ke+=4)Oe.push(Ee[Ke]<<24|Ee[Ke+1]<<16|Ee[Ke+2]<<8|Ee[Ke+3]);return Oe}var ne=function(Ee){if(!(this instanceof ne))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:O(Ee,!0)}),this._prepare()};ne.prototype._prepare=function(){var Ee=f[this.key.length];if(Ee==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var Oe=0;Oe<=Ee;Oe++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var Ke=(Ee+1)*4,_e=this.key.length/4,ke=se(this.key),dt,Oe=0;Oe<_e;Oe++)dt=Oe>>2,this._Ke[dt][Oe%4]=ke[Oe],this._Kd[Ee-dt][Oe%4]=ke[Oe];for(var nt=0,vt=_e,Et;vt<Ke;){if(Et=ke[_e-1],ke[0]^=t[Et>>16&255]<<24^t[Et>>8&255]<<16^t[Et&255]<<8^t[Et>>24&255]^a[nt]<<24,nt+=1,_e!=8)for(var Oe=1;Oe<_e;Oe++)ke[Oe]^=ke[Oe-1];else{for(var Oe=1;Oe<_e/2;Oe++)ke[Oe]^=ke[Oe-1];Et=ke[_e/2-1],ke[_e/2]^=t[Et&255]^t[Et>>8&255]<<8^t[Et>>16&255]<<16^t[Et>>24&255]<<24;for(var Oe=_e/2+1;Oe<_e;Oe++)ke[Oe]^=ke[Oe-1]}for(var Oe=0,xt,ut;Oe<_e&&vt<Ke;)xt=vt>>2,ut=vt%4,this._Ke[xt][ut]=ke[Oe],this._Kd[Ee-xt][ut]=ke[Oe++],vt++}for(var xt=1;xt<Ee;xt++)for(var ut=0;ut<4;ut++)Et=this._Kd[xt][ut],this._Kd[xt][ut]=j[Et>>24&255]^J[Et>>16&255]^oe[Et>>8&255]^Ce[Et&255]},ne.prototype.encrypt=function(Ee){if(Ee.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var Oe=this._Ke.length-1,Ke=[0,0,0,0],_e=se(Ee),ke=0;ke<4;ke++)_e[ke]^=this._Ke[0][ke];for(var dt=1;dt<Oe;dt++){for(var ke=0;ke<4;ke++)Ke[ke]=c[_e[ke]>>24&255]^z[_e[(ke+1)%4]>>16&255]^K[_e[(ke+2)%4]>>8&255]^L[_e[(ke+3)%4]&255]^this._Ke[dt][ke];_e=Ke.slice()}for(var nt=P(16),vt,ke=0;ke<4;ke++)vt=this._Ke[Oe][ke],nt[4*ke]=(t[_e[ke]>>24&255]^vt>>24)&255,nt[4*ke+1]=(t[_e[(ke+1)%4]>>16&255]^vt>>16)&255,nt[4*ke+2]=(t[_e[(ke+2)%4]>>8&255]^vt>>8)&255,nt[4*ke+3]=(t[_e[(ke+3)%4]&255]^vt)&255;return nt},ne.prototype.decrypt=function(Ee){if(Ee.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var Oe=this._Kd.length-1,Ke=[0,0,0,0],_e=se(Ee),ke=0;ke<4;ke++)_e[ke]^=this._Kd[0][ke];for(var dt=1;dt<Oe;dt++){for(var ke=0;ke<4;ke++)Ke[ke]=F[_e[ke]>>24&255]^fe[_e[(ke+3)%4]>>16&255]^re[_e[(ke+2)%4]>>8&255]^X[_e[(ke+1)%4]&255]^this._Kd[dt][ke];_e=Ke.slice()}for(var nt=P(16),vt,ke=0;ke<4;ke++)vt=this._Kd[Oe][ke],nt[4*ke]=(r[_e[ke]>>24&255]^vt>>24)&255,nt[4*ke+1]=(r[_e[(ke+3)%4]>>16&255]^vt>>16)&255,nt[4*ke+2]=(r[_e[(ke+2)%4]>>8&255]^vt>>8)&255,nt[4*ke+3]=(r[_e[(ke+1)%4]&255]^vt)&255;return nt};var xe=function(Ee){if(!(this instanceof xe))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new ne(Ee)};xe.prototype.encrypt=function(Ee){if(Ee=O(Ee),Ee.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var Oe=P(Ee.length),Ke=P(16),_e=0;_e<Ee.length;_e+=16)m(Ee,Ke,0,_e,_e+16),Ke=this._aes.encrypt(Ke),m(Ke,Oe,_e);return Oe},xe.prototype.decrypt=function(Ee){if(Ee=O(Ee),Ee.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var Oe=P(Ee.length),Ke=P(16),_e=0;_e<Ee.length;_e+=16)m(Ee,Ke,0,_e,_e+16),Ke=this._aes.decrypt(Ke),m(Ke,Oe,_e);return Oe};var Ue=function(Ee,Oe){if(!(this instanceof Ue))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!Oe)Oe=P(16);else if(Oe.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=O(Oe,!0),this._aes=new ne(Ee)};Ue.prototype.encrypt=function(Ee){if(Ee=O(Ee),Ee.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var Oe=P(Ee.length),Ke=P(16),_e=0;_e<Ee.length;_e+=16){m(Ee,Ke,0,_e,_e+16);for(var ke=0;ke<16;ke++)Ke[ke]^=this._lastCipherblock[ke];this._lastCipherblock=this._aes.encrypt(Ke),m(this._lastCipherblock,Oe,_e)}return Oe},Ue.prototype.decrypt=function(Ee){if(Ee=O(Ee),Ee.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var Oe=P(Ee.length),Ke=P(16),_e=0;_e<Ee.length;_e+=16){m(Ee,Ke,0,_e,_e+16),Ke=this._aes.decrypt(Ke);for(var ke=0;ke<16;ke++)Oe[_e+ke]=Ke[ke]^this._lastCipherblock[ke];m(Ee,this._lastCipherblock,0,_e,_e+16)}return Oe};var ct=function(Ee,Oe,Ke){if(!(this instanceof ct))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!Oe)Oe=P(16);else if(Oe.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");Ke||(Ke=1),this.segmentSize=Ke,this._shiftRegister=O(Oe,!0),this._aes=new ne(Ee)};ct.prototype.encrypt=function(Ee){if(Ee.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var Oe=O(Ee,!0),Ke,_e=0;_e<Oe.length;_e+=this.segmentSize){Ke=this._aes.encrypt(this._shiftRegister);for(var ke=0;ke<this.segmentSize;ke++)Oe[_e+ke]^=Ke[ke];m(this._shiftRegister,this._shiftRegister,0,this.segmentSize),m(Oe,this._shiftRegister,16-this.segmentSize,_e,_e+this.segmentSize)}return Oe},ct.prototype.decrypt=function(Ee){if(Ee.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var Oe=O(Ee,!0),Ke,_e=0;_e<Oe.length;_e+=this.segmentSize){Ke=this._aes.encrypt(this._shiftRegister);for(var ke=0;ke<this.segmentSize;ke++)Oe[_e+ke]^=Ke[ke];m(this._shiftRegister,this._shiftRegister,0,this.segmentSize),m(Ee,this._shiftRegister,16-this.segmentSize,_e,_e+this.segmentSize)}return Oe};var ft=function(Ee,Oe){if(!(this instanceof ft))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!Oe)Oe=P(16);else if(Oe.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=O(Oe,!0),this._lastPrecipherIndex=16,this._aes=new ne(Ee)};ft.prototype.encrypt=function(Ee){for(var Oe=O(Ee,!0),Ke=0;Ke<Oe.length;Ke++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),Oe[Ke]^=this._lastPrecipher[this._lastPrecipherIndex++];return Oe},ft.prototype.decrypt=ft.prototype.encrypt;var Je=function(Ee){if(!(this instanceof Je))throw Error("Counter must be instanitated with `new`");Ee!==0&&!Ee&&(Ee=1),typeof Ee=="number"?(this._counter=P(16),this.setValue(Ee)):this.setBytes(Ee)};Je.prototype.setValue=function(Ee){if(typeof Ee!="number"||parseInt(Ee)!=Ee)throw new Error("invalid counter value (must be an integer)");for(var Oe=15;Oe>=0;--Oe)this._counter[Oe]=Ee%256,Ee=Ee>>8},Je.prototype.setBytes=function(Ee){if(Ee=O(Ee,!0),Ee.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=Ee},Je.prototype.increment=function(){for(var Ee=15;Ee>=0;Ee--)if(this._counter[Ee]===255)this._counter[Ee]=0;else{this._counter[Ee]++;break}};var Ot=function(Ee,Oe){if(!(this instanceof Ot))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",Oe instanceof Je||(Oe=new Je(Oe)),this._counter=Oe,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new ne(Ee)};Ot.prototype.encrypt=function(Ee){for(var Oe=O(Ee,!0),Ke=0;Ke<Oe.length;Ke++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),Oe[Ke]^=this._remainingCounter[this._remainingCounterIndex++];return Oe},Ot.prototype.decrypt=Ot.prototype.encrypt;function Tt(Ee){Ee=O(Ee,!0);var Oe=16-Ee.length%16,Ke=P(Ee.length+Oe);m(Ee,Ke);for(var _e=Ee.length;_e<Ke.length;_e++)Ke[_e]=Oe;return Ke}function Ft(Ee){if(Ee=O(Ee,!0),Ee.length<16)throw new Error("PKCS#7 invalid length");var Oe=Ee[Ee.length-1];if(Oe>16)throw new Error("PKCS#7 padding byte out of range");for(var Ke=Ee.length-Oe,_e=0;_e<Oe;_e++)if(Ee[Ke+_e]!==Oe)throw new Error("PKCS#7 invalid padding byte");var ke=P(Ke);return m(Ee,ke,0,0,Ke),ke}var Ne={AES:ne,Counter:Je,ModeOfOperation:{ecb:xe,cbc:Ue,cfb:ct,ofb:ft,ctr:Ot},utils:{hex:h,utf8:o},padding:{pkcs7:{pad:Tt,strip:Ft}},_arrayTest:{coerceArray:O,createArray:P,copyArray:m}};G.exports=Ne})(this)},38197:function(G,x,C){"use strict";C.r(x),C.d(x,{keccak256:function(){return m}});var H=C(91094),O=C.n(H),P=C(93286);function m(o){return"0x"+O().keccak_256((0,P.arrayify)(o))}},80711:function(G,x,C){"use strict";C.r(x),C.d(x,{ErrorCode:function(){return r},LogLevel:function(){return t},Logger:function(){return z}});const H="logger/5.7.0";let O=!1,P=!1;const m={debug:1,default:2,info:2,warning:3,error:4,off:5};let o=m.default,h=null;function f(){try{const K=[];if(["NFD","NFC","NFKD","NFKC"].forEach(L=>{try{if("test".normalize(L)!=="test")throw new Error("bad normalize")}catch{K.push(L)}}),K.length)throw new Error("missing "+K.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(K){return K.message}return null}const a=f();var t;(function(K){K.DEBUG="DEBUG",K.INFO="INFO",K.WARNING="WARNING",K.ERROR="ERROR",K.OFF="OFF"})(t||(t={}));var r;(function(K){K.UNKNOWN_ERROR="UNKNOWN_ERROR",K.NOT_IMPLEMENTED="NOT_IMPLEMENTED",K.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",K.NETWORK_ERROR="NETWORK_ERROR",K.SERVER_ERROR="SERVER_ERROR",K.TIMEOUT="TIMEOUT",K.BUFFER_OVERRUN="BUFFER_OVERRUN",K.NUMERIC_FAULT="NUMERIC_FAULT",K.MISSING_NEW="MISSING_NEW",K.INVALID_ARGUMENT="INVALID_ARGUMENT",K.MISSING_ARGUMENT="MISSING_ARGUMENT",K.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",K.CALL_EXCEPTION="CALL_EXCEPTION",K.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",K.NONCE_EXPIRED="NONCE_EXPIRED",K.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",K.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",K.TRANSACTION_REPLACED="TRANSACTION_REPLACED",K.ACTION_REJECTED="ACTION_REJECTED"})(r||(r={}));const c="0123456789abcdef";class z{constructor(L){Object.defineProperty(this,"version",{enumerable:!0,value:L,writable:!1})}_log(L,F){const fe=L.toLowerCase();m[fe]==null&&this.throwArgumentError("invalid log level name","logLevel",L),!(o>m[fe])&&console.log.apply(console,F)}debug(...L){this._log(z.levels.DEBUG,L)}info(...L){this._log(z.levels.INFO,L)}warn(...L){this._log(z.levels.WARNING,L)}makeError(L,F,fe){if(P)return this.makeError("censored error",F,{});F||(F=z.errors.UNKNOWN_ERROR),fe||(fe={});const re=[];Object.keys(fe).forEach(oe=>{const Ce=fe[oe];try{if(Ce instanceof Uint8Array){let se="";for(let ne=0;ne<Ce.length;ne++)se+=c[Ce[ne]>>4],se+=c[Ce[ne]&15];re.push(oe+"=Uint8Array(0x"+se+")")}else re.push(oe+"="+JSON.stringify(Ce))}catch{re.push(oe+"="+JSON.stringify(fe[oe].toString()))}}),re.push(`code=${F}`),re.push(`version=${this.version}`);const X=L;let j="";switch(F){case r.NUMERIC_FAULT:{j="NUMERIC_FAULT";const oe=L;switch(oe){case"overflow":case"underflow":case"division-by-zero":j+="-"+oe;break;case"negative-power":case"negative-width":j+="-unsupported";break;case"unbound-bitwise-result":j+="-unbound-result";break}break}case r.CALL_EXCEPTION:case r.INSUFFICIENT_FUNDS:case r.MISSING_NEW:case r.NONCE_EXPIRED:case r.REPLACEMENT_UNDERPRICED:case r.TRANSACTION_REPLACED:case r.UNPREDICTABLE_GAS_LIMIT:j=F;break}j&&(L+=" [ See: https://links.ethers.org/v5-errors-"+j+" ]"),re.length&&(L+=" ("+re.join(", ")+")");const J=new Error(L);return J.reason=X,J.code=F,Object.keys(fe).forEach(function(oe){J[oe]=fe[oe]}),J}throwError(L,F,fe){throw this.makeError(L,F,fe)}throwArgumentError(L,F,fe){return this.throwError(L,z.errors.INVALID_ARGUMENT,{argument:F,value:fe})}assert(L,F,fe,re){L||this.throwError(F,fe,re)}assertArgument(L,F,fe,re){L||this.throwArgumentError(F,fe,re)}checkNormalize(L){L==null&&(L="platform missing String.prototype.normalize"),a&&this.throwError("platform missing String.prototype.normalize",z.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:a})}checkSafeUint53(L,F){typeof L=="number"&&(F==null&&(F="value not safe"),(L<0||L>=9007199254740991)&&this.throwError(F,z.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:L}),L%1&&this.throwError(F,z.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:L}))}checkArgumentCount(L,F,fe){fe?fe=": "+fe:fe="",L<F&&this.throwError("missing argument"+fe,z.errors.MISSING_ARGUMENT,{count:L,expectedCount:F}),L>F&&this.throwError("too many arguments"+fe,z.errors.UNEXPECTED_ARGUMENT,{count:L,expectedCount:F})}checkNew(L,F){(L===Object||L==null)&&this.throwError("missing new",z.errors.MISSING_NEW,{name:F.name})}checkAbstract(L,F){L===F?this.throwError("cannot instantiate abstract class "+JSON.stringify(F.name)+" directly; use a sub-class",z.errors.UNSUPPORTED_OPERATION,{name:L.name,operation:"new"}):(L===Object||L==null)&&this.throwError("missing new",z.errors.MISSING_NEW,{name:F.name})}static globalLogger(){return h||(h=new z(H)),h}static setCensorship(L,F){if(!L&&F&&this.globalLogger().throwError("cannot permanently disable censorship",z.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),O){if(!L)return;this.globalLogger().throwError("error censorship permanent",z.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}P=!!L,O=!!F}static setLogLevel(L){const F=m[L.toLowerCase()];if(F==null){z.globalLogger().warn("invalid log level - "+L);return}o=F}static from(L){return new z(L)}}z.errors=r,z.levels=t},53587:function(G,x,C){"use strict";C.r(x),C.d(x,{Description:function(){return L},checkProperties:function(){return a},deepCopy:function(){return K},defineReadOnly:function(){return o},getStatic:function(){return h},resolveProperties:function(){return f},shallowCopy:function(){return t}});var H=C(80711);const O="properties/5.7.0";var P=function(F,fe,re,X){function j(J){return J instanceof re?J:new re(function(oe){oe(J)})}return new(re||(re=Promise))(function(J,oe){function Ce(xe){try{ne(X.next(xe))}catch(Ue){oe(Ue)}}function se(xe){try{ne(X.throw(xe))}catch(Ue){oe(Ue)}}function ne(xe){xe.done?J(xe.value):j(xe.value).then(Ce,se)}ne((X=X.apply(F,fe||[])).next())})};const m=new H.Logger(O);function o(F,fe,re){Object.defineProperty(F,fe,{enumerable:!0,value:re,writable:!1})}function h(F,fe){for(let re=0;re<32;re++){if(F[fe])return F[fe];if(!F.prototype||typeof F.prototype!="object")break;F=Object.getPrototypeOf(F.prototype).constructor}return null}function f(F){return P(this,void 0,void 0,function*(){const fe=Object.keys(F).map(X=>{const j=F[X];return Promise.resolve(j).then(J=>({key:X,value:J}))});return(yield Promise.all(fe)).reduce((X,j)=>(X[j.key]=j.value,X),{})})}function a(F,fe){(!F||typeof F!="object")&&m.throwArgumentError("invalid object","object",F),Object.keys(F).forEach(re=>{fe[re]||m.throwArgumentError("invalid object key - "+re,"transaction:"+re,F)})}function t(F){const fe={};for(const re in F)fe[re]=F[re];return fe}const r={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function c(F){if(F==null||r[typeof F])return!0;if(Array.isArray(F)||typeof F=="object"){if(!Object.isFrozen(F))return!1;const fe=Object.keys(F);for(let re=0;re<fe.length;re++){let X=null;try{X=F[fe[re]]}catch{continue}if(!c(X))return!1}return!0}return m.throwArgumentError(`Cannot deepCopy ${typeof F}`,"object",F)}function z(F){if(c(F))return F;if(Array.isArray(F))return Object.freeze(F.map(fe=>K(fe)));if(typeof F=="object"){const fe={};for(const re in F){const X=F[re];X!==void 0&&o(fe,re,K(X))}return fe}return m.throwArgumentError(`Cannot deepCopy ${typeof F}`,"object",F)}function K(F){return z(F)}class L{constructor(fe){for(const re in fe)this[re]=K(fe[re])}}},86237:function(G,x,C){"use strict";C.d(x,{F:function(){return o},s:function(){return m}});var H=C(57218),O=C(93286),P=C(44242);function m(h){const f=(0,P.Y0)(h);if(f.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,O.hexlify)((0,O.concat)([f,H.R]).slice(0,32))}function o(h){const f=(0,O.arrayify)(h);if(f.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(f[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let a=31;for(;f[a-1]===0;)a--;return(0,P.ZN)(f.slice(0,a))}},35637:function(G,x,C){"use strict";C.d(x,{Ll:function(){return re}});var H=C(44242);function O(X){if(X.length%4!==0)throw new Error("bad data");let j=[];for(let J=0;J<X.length;J+=4)j.push(parseInt(X.substring(J,J+4),16));return j}function P(X,j){j||(j=function(Ce){return[parseInt(Ce,16)]});let J=0,oe={};return X.split(",").forEach(Ce=>{let se=Ce.split(":");J+=parseInt(se[0],16),oe[J]=j(se[1])}),oe}function m(X){let j=0;return X.split(",").map(J=>{let oe=J.split("-");oe.length===1?oe[1]="0":oe[1]===""&&(oe[1]="1");let Ce=j+parseInt(oe[0],16);return j=parseInt(oe[1],16),{l:Ce,h:j}})}function o(X,j){let J=0;for(let oe=0;oe<j.length;oe++){let Ce=j[oe];if(J+=Ce.l,X>=J&&X<=J+Ce.h&&(X-J)%(Ce.d||1)===0){if(Ce.e&&Ce.e.indexOf(X-J)!==-1)continue;return Ce}}return null}const h=m("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),f="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(X=>parseInt(X,16)),a=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],t=P("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),r=P("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),c=P("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",O),z=m("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function K(X){return X.reduce((j,J)=>(J.forEach(oe=>{j.push(oe)}),j),[])}function L(X){return!!o(X,h)}function F(X){let j=o(X,a);if(j)return[X+j.s];let J=t[X];if(J)return J;let oe=r[X];if(oe)return[X+oe[0]];let Ce=c[X];return Ce||null}function fe(X){return!!o(X,z)}function re(X){if(X.match(/^[a-z0-9-]*$/i)&&X.length<=59)return X.toLowerCase();let j=(0,H.XL)(X);j=K(j.map(oe=>{if(f.indexOf(oe)>=0)return[];if(oe>=65024&&oe<=65039)return[];let Ce=F(oe);return Ce||[oe]})),j=(0,H.XL)((0,H.uu)(j),H.Uj.NFKC),j.forEach(oe=>{if(fe(oe))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),j.forEach(oe=>{if(L(oe))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});let J=(0,H.uu)(j);if(J.substring(0,1)==="-"||J.substring(2,4)==="--"||J.substring(J.length-1)==="-")throw new Error("invalid hyphen");return J}},62741:function(G,x,C){"use strict";C.r(x),C.d(x,{UnicodeNormalizationForm:function(){return P.Uj},Utf8ErrorFuncs:function(){return P.te},Utf8ErrorReason:function(){return P.Uw},_toEscapedUtf8String:function(){return P.U$},formatBytes32String:function(){return H.s},nameprep:function(){return O.Ll},parseBytes32String:function(){return H.F},toUtf8Bytes:function(){return P.Y0},toUtf8CodePoints:function(){return P.XL},toUtf8String:function(){return P.ZN}});var H=C(86237),O=C(35637),P=C(44242)},44242:function(G,x,C){"use strict";C.d(x,{Uj:function(){return o},te:function(){return r},Uw:function(){return h},U$:function(){return L},uu:function(){return F},Y0:function(){return z},XL:function(){return re},ZN:function(){return fe}});var H=C(93286),O=C(80711);const P="strings/5.7.0",m=new O.Logger(P);var o;(function(X){X.current="",X.NFC="NFC",X.NFD="NFD",X.NFKC="NFKC",X.NFKD="NFKD"})(o||(o={}));var h;(function(X){X.UNEXPECTED_CONTINUE="unexpected continuation byte",X.BAD_PREFIX="bad codepoint prefix",X.OVERRUN="string overrun",X.MISSING_CONTINUE="missing continuation byte",X.OUT_OF_RANGE="out of UTF-8 range",X.UTF16_SURROGATE="UTF-16 surrogate",X.OVERLONG="overlong representation"})(h||(h={}));function f(X,j,J,oe,Ce){return m.throwArgumentError(`invalid codepoint at offset ${j}; ${X}`,"bytes",J)}function a(X,j,J,oe,Ce){if(X===h.BAD_PREFIX||X===h.UNEXPECTED_CONTINUE){let se=0;for(let ne=j+1;ne<J.length&&J[ne]>>6===2;ne++)se++;return se}return X===h.OVERRUN?J.length-j-1:0}function t(X,j,J,oe,Ce){return X===h.OVERLONG?(oe.push(Ce),0):(oe.push(65533),a(X,j,J,oe,Ce))}const r=Object.freeze({error:f,ignore:a,replace:t});function c(X,j){j==null&&(j=r.error),X=(0,H.arrayify)(X);const J=[];let oe=0;for(;oe<X.length;){const Ce=X[oe++];if(Ce>>7===0){J.push(Ce);continue}let se=null,ne=null;if((Ce&224)===192)se=1,ne=127;else if((Ce&240)===224)se=2,ne=2047;else if((Ce&248)===240)se=3,ne=65535;else{(Ce&192)===128?oe+=j(h.UNEXPECTED_CONTINUE,oe-1,X,J):oe+=j(h.BAD_PREFIX,oe-1,X,J);continue}if(oe-1+se>=X.length){oe+=j(h.OVERRUN,oe-1,X,J);continue}let xe=Ce&(1<<8-se-1)-1;for(let Ue=0;Ue<se;Ue++){let ct=X[oe];if((ct&192)!=128){oe+=j(h.MISSING_CONTINUE,oe,X,J),xe=null;break}xe=xe<<6|ct&63,oe++}if(xe!==null){if(xe>1114111){oe+=j(h.OUT_OF_RANGE,oe-1-se,X,J,xe);continue}if(xe>=55296&&xe<=57343){oe+=j(h.UTF16_SURROGATE,oe-1-se,X,J,xe);continue}if(xe<=ne){oe+=j(h.OVERLONG,oe-1-se,X,J,xe);continue}J.push(xe)}}return J}function z(X,j=o.current){j!=o.current&&(m.checkNormalize(),X=X.normalize(j));let J=[];for(let oe=0;oe<X.length;oe++){const Ce=X.charCodeAt(oe);if(Ce<128)J.push(Ce);else if(Ce<2048)J.push(Ce>>6|192),J.push(Ce&63|128);else if((Ce&64512)==55296){oe++;const se=X.charCodeAt(oe);if(oe>=X.length||(se&64512)!==56320)throw new Error("invalid utf-8 string");const ne=65536+((Ce&1023)<<10)+(se&1023);J.push(ne>>18|240),J.push(ne>>12&63|128),J.push(ne>>6&63|128),J.push(ne&63|128)}else J.push(Ce>>12|224),J.push(Ce>>6&63|128),J.push(Ce&63|128)}return(0,H.arrayify)(J)}function K(X){const j="0000"+X.toString(16);return"\\u"+j.substring(j.length-4)}function L(X,j){return'"'+c(X,j).map(J=>{if(J<256){switch(J){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(J>=32&&J<127)return String.fromCharCode(J)}return J<=65535?K(J):(J-=65536,K((J>>10&1023)+55296)+K((J&1023)+56320))}).join("")+'"'}function F(X){return X.map(j=>j<=65535?String.fromCharCode(j):(j-=65536,String.fromCharCode((j>>10&1023)+55296,(j&1023)+56320))).join("")}function fe(X,j){return F(c(X,j))}function re(X,j=o.current){return c(z(X,j))}},55595:function(G,x,C){var H=typeof Object.defineProperties=="function"?Object.defineProperty:function(s,l,y){s!=Array.prototype&&s!=Object.prototype&&(s[l]=y.value)},O=typeof window<"u"&&window===this?this:typeof C.g<"u"&&C.g!=null?C.g:this;function P(s,l){if(l){var y=O;s=s.split(".");for(var N=0;N<s.length-1;N++){var ie=s[N];ie in y||(y[ie]={}),y=y[ie]}s=s[s.length-1],N=y[s],l=l(N),l!=N&&l!=null&&H(y,s,{configurable:!0,writable:!0,value:l})}}function m(s){var l=0;return function(){return l<s.length?{done:!1,value:s[l++]}:{done:!0}}}function o(){o=function(){},O.Symbol||(O.Symbol=f)}function h(s,l){this.a=s,H(this,"description",{configurable:!0,writable:!0,value:l})}h.prototype.toString=function(){return this.a};var f=function(){function s(y){if(this instanceof s)throw new TypeError("Symbol is not a constructor");return new h("jscomp_symbol_"+(y||"")+"_"+l++,y)}var l=0;return s}();function a(){o();var s=O.Symbol.iterator;s||(s=O.Symbol.iterator=O.Symbol("Symbol.iterator")),typeof Array.prototype[s]!="function"&&H(Array.prototype,s,{configurable:!0,writable:!0,value:function(){return t(m(this))}}),a=function(){}}function t(s){return a(),s={next:s},s[O.Symbol.iterator]=function(){return this},s}function r(s,l){a(),s instanceof String&&(s+="");var y=0,N={next:function(){if(y<s.length){var ie=y++;return{value:l(ie,s[ie]),done:!1}}return N.next=function(){return{done:!0,value:void 0}},N.next()}};return N[Symbol.iterator]=function(){return N},N}P("Array.prototype.entries",function(s){return s||function(){return r(this,function(l,y){return[l,y]})}});var c=this||self;function z(s,l,y){s=s.split("."),y=y||c,s[0]in y||typeof y.execScript>"u"||y.execScript("var "+s[0]);for(var N;s.length&&(N=s.shift());)s.length||l===void 0?y[N]&&y[N]!==Object.prototype[N]?y=y[N]:y=y[N]={}:y[N]=l}function K(s){var l=typeof s;if(l=="object")if(s){if(s instanceof Array)return"array";if(s instanceof Object)return l;var y=Object.prototype.toString.call(s);if(y=="[object Window]")return"object";if(y=="[object Array]"||typeof s.length=="number"&&typeof s.splice<"u"&&typeof s.propertyIsEnumerable<"u"&&!s.propertyIsEnumerable("splice"))return"array";if(y=="[object Function]"||typeof s.call<"u"&&typeof s.propertyIsEnumerable<"u"&&!s.propertyIsEnumerable("call"))return"function"}else return"null";else if(l=="function"&&typeof s.call>"u")return"object";return l}function L(s){var l=typeof s;return l=="object"&&s!=null||l=="function"}function F(s,l,y){z(s,l,y)}function fe(s,l){function y(){}y.prototype=l.prototype,s.prototype=new y,s.prototype.constructor=s}var re="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function X(s,l){for(var y,N,ie=1;ie<arguments.length;ie++){N=arguments[ie];for(y in N)s[y]=N[y];for(var Pe=0;Pe<re.length;Pe++)y=re[Pe],Object.prototype.hasOwnProperty.call(N,y)&&(s[y]=N[y])}}var j=Array.prototype.forEach?function(s,l){Array.prototype.forEach.call(s,l,void 0)}:function(s,l){for(var y=s.length,N=typeof s=="string"?s.split(""):s,ie=0;ie<y;ie++)ie in N&&l.call(void 0,N[ie],ie,s)},J=Array.prototype.map?function(s,l){return Array.prototype.map.call(s,l,void 0)}:function(s,l){for(var y=s.length,N=Array(y),ie=typeof s=="string"?s.split(""):s,Pe=0;Pe<y;Pe++)Pe in ie&&(N[Pe]=l.call(void 0,ie[Pe],Pe,s));return N};function oe(s,l,y){return 2>=arguments.length?Array.prototype.slice.call(s,l):Array.prototype.slice.call(s,l,y)}function Ce(s,l,y,N){var ie="Assertion failed";if(y){ie+=": "+y;var Pe=N}else s&&(ie+=": "+s,Pe=l);throw Error(ie,Pe||[])}function se(s,l,y){for(var N=[],ie=2;ie<arguments.length;++ie)N[ie-2]=arguments[ie];return s||Ce("",null,l,N),s}function ne(s,l,y){for(var N=[],ie=2;ie<arguments.length;++ie)N[ie-2]=arguments[ie];typeof s!="string"&&Ce("Expected string but got %s: %s.",[K(s),s],l,N)}function xe(s,l,y){for(var N=[],ie=2;ie<arguments.length;++ie)N[ie-2]=arguments[ie];Array.isArray(s)||Ce("Expected array but got %s: %s.",[K(s),s],l,N)}function Ue(s,l){for(var y=[],N=1;N<arguments.length;++N)y[N-1]=arguments[N];throw Error("Failure"+(s?": "+s:""),y)}function ct(s,l,y,N){for(var ie=[],Pe=3;Pe<arguments.length;++Pe)ie[Pe-3]=arguments[Pe];s instanceof l||Ce("Expected instanceof %s but got %s.",[ft(l),ft(s)],y,ie)}function ft(s){return s instanceof Function?s.displayName||s.name||"unknown type name":s instanceof Object?s.constructor.displayName||s.constructor.name||Object.prototype.toString.call(s):s===null?"null":typeof s}function Je(s,l){if(this.c=s,this.b=l,this.a={},this.arrClean=!0,0<this.c.length){for(s=0;s<this.c.length;s++){l=this.c[s];var y=l[0];this.a[y.toString()]=new Ne(y,l[1])}this.arrClean=!0}}z("jspb.Map",Je,void 0),Je.prototype.g=function(){if(this.arrClean){if(this.b){var s=this.a,l;for(l in s)if(Object.prototype.hasOwnProperty.call(s,l)){var y=s[l].a;y&&y.g()}}}else{for(this.c.length=0,s=Ft(this),s.sort(),l=0;l<s.length;l++){var N=this.a[s[l]];(y=N.a)&&y.g(),this.c.push([N.key,N.value])}this.arrClean=!0}return this.c},Je.prototype.toArray=Je.prototype.g,Je.prototype.Mc=function(s,l){for(var y=this.g(),N=[],ie=0;ie<y.length;ie++){var Pe=this.a[y[ie][0].toString()];Tt(this,Pe);var De=Pe.a;De?(se(l),N.push([Pe.key,l(s,De)])):N.push([Pe.key,Pe.value])}return N},Je.prototype.toObject=Je.prototype.Mc,Je.fromObject=function(s,l,y){l=new Je([],l);for(var N=0;N<s.length;N++){var ie=s[N][0],Pe=y(s[N][1]);l.set(ie,Pe)}return l};function Ot(s){this.a=0,this.b=s}Ot.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(Ot.prototype[Symbol.iterator]=function(){return this}),Je.prototype.Jb=function(){return Ft(this).length},Je.prototype.getLength=Je.prototype.Jb,Je.prototype.clear=function(){this.a={},this.arrClean=!1},Je.prototype.clear=Je.prototype.clear,Je.prototype.Cb=function(s){s=s.toString();var l=this.a.hasOwnProperty(s);return delete this.a[s],this.arrClean=!1,l},Je.prototype.del=Je.prototype.Cb,Je.prototype.Eb=function(){var s=[],l=Ft(this);l.sort();for(var y=0;y<l.length;y++){var N=this.a[l[y]];s.push([N.key,N.value])}return s},Je.prototype.getEntryList=Je.prototype.Eb,Je.prototype.entries=function(){var s=[],l=Ft(this);l.sort();for(var y=0;y<l.length;y++){var N=this.a[l[y]];s.push([N.key,Tt(this,N)])}return new Ot(s)},Je.prototype.entries=Je.prototype.entries,Je.prototype.keys=function(){var s=[],l=Ft(this);l.sort();for(var y=0;y<l.length;y++)s.push(this.a[l[y]].key);return new Ot(s)},Je.prototype.keys=Je.prototype.keys,Je.prototype.values=function(){var s=[],l=Ft(this);l.sort();for(var y=0;y<l.length;y++)s.push(Tt(this,this.a[l[y]]));return new Ot(s)},Je.prototype.values=Je.prototype.values,Je.prototype.forEach=function(s,l){var y=Ft(this);y.sort();for(var N=0;N<y.length;N++){var ie=this.a[y[N]];s.call(l,Tt(this,ie),ie.key,this)}},Je.prototype.forEach=Je.prototype.forEach,Je.prototype.set=function(s,l){var y=new Ne(s);return this.b?(y.a=l,y.value=l.g()):y.value=l,this.a[s.toString()]=y,this.arrClean=!1,this},Je.prototype.set=Je.prototype.set;function Tt(s,l){return s.b?(l.a||(l.a=new s.b(l.value)),l.a):l.value}Je.prototype.get=function(s){if(s=this.a[s.toString()])return Tt(this,s)},Je.prototype.get=Je.prototype.get,Je.prototype.has=function(s){return s.toString()in this.a},Je.prototype.has=Je.prototype.has,Je.prototype.Jc=function(s,l,y,N,ie){var Pe=Ft(this);Pe.sort();for(var De=0;De<Pe.length;De++){var bt=this.a[Pe[De]];l.Va(s),y.call(l,1,bt.key),this.b?N.call(l,2,Tt(this,bt),ie):N.call(l,2,bt.value),l.Ya()}},Je.prototype.serializeBinary=Je.prototype.Jc,Je.deserializeBinary=function(s,l,y,N,ie,Pe,De){for(;l.oa()&&!l.bb();){var bt=l.c;bt==1?Pe=y.call(l):bt==2&&(s.b?(se(ie),De||(De=new s.b),N.call(l,De,ie)):De=N.call(l))}se(Pe!=null),se(De!=null),s.set(Pe,De)};function Ft(s){s=s.a;var l=[],y;for(y in s)Object.prototype.hasOwnProperty.call(s,y)&&l.push(y);return l}function Ne(s,l){this.key=s,this.value=l,this.a=void 0}function Ee(s){if(8192>=s.length)return String.fromCharCode.apply(null,s);for(var l="",y=0;y<s.length;y+=8192)l+=String.fromCharCode.apply(null,oe(s,y,y+8192));return l}var Oe={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},Ke={"'":"\\'"},_e={},ke=null;function dt(s,l){l===void 0&&(l=0),Et(),l=_e[l];for(var y=[],N=0;N<s.length;N+=3){var ie=s[N],Pe=N+1<s.length,De=Pe?s[N+1]:0,bt=N+2<s.length,Rt=bt?s[N+2]:0,ao=ie>>2;ie=(ie&3)<<4|De>>4,De=(De&15)<<2|Rt>>6,Rt&=63,bt||(Rt=64,Pe||(De=64)),y.push(l[ao],l[ie],l[De]||"",l[Rt]||"")}return y.join("")}function nt(s){var l=s.length,y=3*l/4;y%3?y=Math.floor(y):"=.".indexOf(s[l-1])!=-1&&(y="=.".indexOf(s[l-2])!=-1?y-2:y-1);var N=new Uint8Array(y),ie=0;return vt(s,function(Pe){N[ie++]=Pe}),N.subarray(0,ie)}function vt(s,l){function y(Rt){for(;N<s.length;){var ao=s.charAt(N++),Io=ke[ao];if(Io!=null)return Io;if(!/^[\s\xa0]*$/.test(ao))throw Error("Unknown base64 encoding at char: "+ao)}return Rt}Et();for(var N=0;;){var ie=y(-1),Pe=y(0),De=y(64),bt=y(64);if(bt===64&&ie===-1)break;l(ie<<2|Pe>>4),De!=64&&(l(Pe<<4&240|De>>2),bt!=64&&l(De<<6&192|bt))}}function Et(){if(!ke){ke={};for(var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),l=["+/=","+/","-_=","-_.","-_"],y=0;5>y;y++){var N=s.concat(l[y].split(""));_e[y]=N;for(var ie=0;ie<N.length;ie++){var Pe=N[ie];ke[Pe]===void 0&&(ke[Pe]=ie)}}}}z("jspb.ConstBinaryMessage",function(){},void 0),z("jspb.BinaryMessage",function(){},void 0),z("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),z("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),z("jspb.BinaryConstants.FieldTypeToWireType",function(s){switch(s){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}},void 0),z("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),z("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),z("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),z("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),z("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),z("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),z("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),z("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),z("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),z("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),z("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),z("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),z("jspb.BinaryConstants.TWO_TO_63",9223372036854776e3,void 0),z("jspb.BinaryConstants.TWO_TO_64",18446744073709552e3,void 0),z("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var xt=0,ut=0;z("jspb.utils.getSplit64Low",function(){return xt},void 0),z("jspb.utils.getSplit64High",function(){return ut},void 0);function nr(s){var l=s>>>0;s=Math.floor((s-l)/4294967296)>>>0,xt=l,ut=s}z("jspb.utils.splitUint64",nr,void 0);function tr(s){var l=0>s;s=Math.abs(s);var y=s>>>0;s=Math.floor((s-y)/4294967296),s>>>=0,l&&(s=~s>>>0,y=(~y>>>0)+1,4294967295<y&&(y=0,s++,4294967295<s&&(s=0))),xt=y,ut=s}z("jspb.utils.splitInt64",tr,void 0);function fr(s){var l=0>s;s=2*Math.abs(s),nr(s),s=xt;var y=ut;l&&(s==0?y==0?y=s=4294967295:(y--,s=4294967295):s--),xt=s,ut=y}z("jspb.utils.splitZigzag64",fr,void 0);function Lr(s){var l=0>s?1:0;if(s=l?-s:s,s===0)0<1/s?xt=ut=0:(ut=0,xt=2147483648);else if(isNaN(s))ut=0,xt=2147483647;else if(34028234663852886e22<s)ut=0,xt=(l<<31|2139095040)>>>0;else if(11754943508222875e-54>s)s=Math.round(s/Math.pow(2,-149)),ut=0,xt=(l<<31|s)>>>0;else{var y=Math.floor(Math.log(s)/Math.LN2);s*=Math.pow(2,-y),s=Math.round(8388608*s),16777216<=s&&++y,ut=0,xt=(l<<31|y+127<<23|s&8388607)>>>0}}z("jspb.utils.splitFloat32",Lr,void 0);function ur(s){var l=0>s?1:0;if(s=l?-s:s,s===0)ut=0<1/s?0:2147483648,xt=0;else if(isNaN(s))ut=2147483647,xt=4294967295;else if(17976931348623157e292<s)ut=(l<<31|2146435072)>>>0,xt=0;else if(22250738585072014e-324>s)s/=Math.pow(2,-1074),ut=(l<<31|s/4294967296)>>>0,xt=s>>>0;else{var y=s,N=0;if(2<=y)for(;2<=y&&1023>N;)N++,y/=2;else for(;1>y&&-1022<N;)y*=2,N--;s*=Math.pow(2,-N),ut=(l<<31|N+1023<<20|1048576*s&1048575)>>>0,xt=4503599627370496*s>>>0}}z("jspb.utils.splitFloat64",ur,void 0);function rr(s){var l=s.charCodeAt(4),y=s.charCodeAt(5),N=s.charCodeAt(6),ie=s.charCodeAt(7);xt=s.charCodeAt(0)+(s.charCodeAt(1)<<8)+(s.charCodeAt(2)<<16)+(s.charCodeAt(3)<<24)>>>0,ut=l+(y<<8)+(N<<16)+(ie<<24)>>>0}z("jspb.utils.splitHash64",rr,void 0);function ae(s,l){return 4294967296*l+(s>>>0)}z("jspb.utils.joinUint64",ae,void 0);function ve(s,l){var y=l&2147483648;return y&&(s=~s+1>>>0,l=~l>>>0,s==0&&(l=l+1>>>0)),s=ae(s,l),y?-s:s}z("jspb.utils.joinInt64",ve,void 0);function we(s,l,y){var N=l>>31;return y(s<<1^N,(l<<1|s>>>31)^N)}z("jspb.utils.toZigzag64",we,void 0);function Xe(s,l){return Ze(s,l,ve)}z("jspb.utils.joinZigzag64",Xe,void 0);function Ze(s,l,y){var N=-(s&1);return y((s>>>1|l<<31)^N,l>>>1^N)}z("jspb.utils.fromZigzag64",Ze,void 0);function tt(s){var l=2*(s>>31)+1,y=s>>>23&255;return s&=8388607,y==255?s?NaN:1/0*l:y==0?l*Math.pow(2,-149)*s:l*Math.pow(2,y-150)*(s+Math.pow(2,23))}z("jspb.utils.joinFloat32",tt,void 0);function ht(s,l){var y=2*(l>>31)+1,N=l>>>20&2047;return s=4294967296*(l&1048575)+s,N==2047?s?NaN:1/0*y:N==0?y*Math.pow(2,-1074)*s:y*Math.pow(2,N-1075)*(s+4503599627370496)}z("jspb.utils.joinFloat64",ht,void 0);function wt(s,l){return String.fromCharCode(s>>>0&255,s>>>8&255,s>>>16&255,s>>>24&255,l>>>0&255,l>>>8&255,l>>>16&255,l>>>24&255)}z("jspb.utils.joinHash64",wt,void 0),z("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function St(s,l){function y(ie,Pe){return ie=ie?String(ie):"",Pe?"0000000".slice(ie.length)+ie:ie}if(2097151>=l)return""+ae(s,l);var N=(s>>>24|l<<8)>>>0&16777215;return l=l>>16&65535,s=(s&16777215)+6777216*N+6710656*l,N+=8147497*l,l*=2,1e7<=s&&(N+=Math.floor(s/1e7),s%=1e7),1e7<=N&&(l+=Math.floor(N/1e7),N%=1e7),y(l,0)+y(N,l)+y(s,1)}z("jspb.utils.joinUnsignedDecimalString",St,void 0);function Mt(s,l){var y=l&2147483648;return y&&(s=~s+1>>>0,l=~l+(s==0?1:0)>>>0),s=St(s,l),y?"-"+s:s}z("jspb.utils.joinSignedDecimalString",Mt,void 0);function Vt(s,l){rr(s),s=xt;var y=ut;return l?Mt(s,y):St(s,y)}z("jspb.utils.hash64ToDecimalString",Vt,void 0),z("jspb.utils.hash64ArrayToDecimalStrings",function(s,l){for(var y=Array(s.length),N=0;N<s.length;N++)y[N]=Vt(s[N],l);return y},void 0);function Wt(s){function l(De,bt){for(var Rt=0;8>Rt&&(De!==1||0<bt);Rt++)bt=De*ie[Rt]+bt,ie[Rt]=bt&255,bt>>>=8}function y(){for(var De=0;8>De;De++)ie[De]=~ie[De]&255}se(0<s.length);var N=!1;s[0]==="-"&&(N=!0,s=s.slice(1));for(var ie=[0,0,0,0,0,0,0,0],Pe=0;Pe<s.length;Pe++)l(10,s.charCodeAt(Pe)-48);return N&&(y(),l(1,1)),Ee(ie)}z("jspb.utils.decimalStringToHash64",Wt,void 0),z("jspb.utils.splitDecimalString",function(s){rr(Wt(s))},void 0);function ir(s){return String.fromCharCode(10>s?48+s:87+s)}function Ct(s){return 97<=s?s-97+10:s-48}z("jspb.utils.hash64ToHexString",function(s){var l=Array(18);l[0]="0",l[1]="x";for(var y=0;8>y;y++){var N=s.charCodeAt(7-y);l[2*y+2]=ir(N>>4),l[2*y+3]=ir(N&15)}return l.join("")},void 0),z("jspb.utils.hexStringToHash64",function(s){s=s.toLowerCase(),se(s.length==18),se(s[0]=="0"),se(s[1]=="x");for(var l="",y=0;8>y;y++)l=String.fromCharCode(16*Ct(s.charCodeAt(2*y+2))+Ct(s.charCodeAt(2*y+3)))+l;return l},void 0),z("jspb.utils.hash64ToNumber",function(s,l){rr(s),s=xt;var y=ut;return l?ve(s,y):ae(s,y)},void 0),z("jspb.utils.numberToHash64",function(s){return tr(s),wt(xt,ut)},void 0),z("jspb.utils.countVarints",function(s,l,y){for(var N=0,ie=l;ie<y;ie++)N+=s[ie]>>7;return y-l-N},void 0),z("jspb.utils.countVarintFields",function(s,l,y,N){var ie=0;if(N*=8,128>N)for(;l<y&&s[l++]==N;)for(ie++;;){var Pe=s[l++];if((Pe&128)==0)break}else for(;l<y;){for(Pe=N;128<Pe;){if(s[l]!=(Pe&127|128))return ie;l++,Pe>>=7}if(s[l++]!=Pe)break;for(ie++;Pe=s[l++],(Pe&128)!=0;);}return ie},void 0);function xr(s,l,y,N,ie){var Pe=0;if(128>N)for(;l<y&&s[l++]==N;)Pe++,l+=ie;else for(;l<y;){for(var De=N;128<De;){if(s[l++]!=(De&127|128))return Pe;De>>=7}if(s[l++]!=De)break;Pe++,l+=ie}return Pe}z("jspb.utils.countFixed32Fields",function(s,l,y,N){return xr(s,l,y,8*N+5,4)},void 0),z("jspb.utils.countFixed64Fields",function(s,l,y,N){return xr(s,l,y,8*N+1,8)},void 0),z("jspb.utils.countDelimitedFields",function(s,l,y,N){var ie=0;for(N=8*N+2;l<y;){for(var Pe=N;128<Pe;){if(s[l++]!=(Pe&127|128))return ie;Pe>>=7}if(s[l++]!=Pe)break;ie++;for(var De=0,bt=1;Pe=s[l++],De+=(Pe&127)*bt,bt*=128,(Pe&128)!=0;);l+=De}return ie},void 0),z("jspb.utils.debugBytesToTextFormat",function(s){var l='"';if(s){s=lr(s);for(var y=0;y<s.length;y++)l+="\\x",16>s[y]&&(l+="0"),l+=s[y].toString(16)}return l+'"'},void 0),z("jspb.utils.debugScalarToTextFormat",function(s){if(typeof s=="string"){s=String(s);for(var l=['"'],y=0;y<s.length;y++){var N=s.charAt(y),ie=N.charCodeAt(0),Pe=y+1,De;(De=Oe[N])||(31<ie&&127>ie||(ie=N,ie in Ke?N=Ke[ie]:ie in Oe?N=Ke[ie]=Oe[ie]:(De=ie.charCodeAt(0),31<De&&127>De?N=ie:(256>De?(N="\\x",(16>De||256<De)&&(N+="0")):(N="\\u",4096>De&&(N+="0")),N+=De.toString(16).toUpperCase()),N=Ke[ie]=N)),De=N),l[Pe]=De}l.push('"'),s=l.join("")}else s=s.toString();return s},void 0),z("jspb.utils.stringToByteArray",function(s){for(var l=new Uint8Array(s.length),y=0;y<s.length;y++){var N=s.charCodeAt(y);if(255<N)throw Error("Conversion error: string contains codepoint outside of byte range");l[y]=N}return l},void 0);function lr(s){return s.constructor===Uint8Array?s:s.constructor===ArrayBuffer?new Uint8Array(s):s.constructor===Array?new Uint8Array(s):s.constructor===String?nt(s):s instanceof Uint8Array?new Uint8Array(s.buffer,s.byteOffset,s.byteLength):(Ue("Type not convertible to Uint8Array."),new Uint8Array(0))}z("jspb.utils.byteSourceToUint8Array",lr,void 0);function Te(s,l,y){this.b=null,this.a=this.c=this.h=0,this.v=!1,s&&this.H(s,l,y)}z("jspb.BinaryDecoder",Te,void 0);var sr=[];Te.getInstanceCacheLength=function(){return sr.length};function zr(s,l,y){if(sr.length){var N=sr.pop();return s&&N.H(s,l,y),N}return new Te(s,l,y)}Te.alloc=zr,Te.prototype.Ca=function(){this.clear(),100>sr.length&&sr.push(this)},Te.prototype.free=Te.prototype.Ca,Te.prototype.clone=function(){return zr(this.b,this.h,this.c-this.h)},Te.prototype.clone=Te.prototype.clone,Te.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},Te.prototype.clear=Te.prototype.clear,Te.prototype.Y=function(){return this.b},Te.prototype.getBuffer=Te.prototype.Y,Te.prototype.H=function(s,l,y){this.b=lr(s),this.h=l!==void 0?l:0,this.c=y!==void 0?this.h+y:this.b.length,this.a=this.h},Te.prototype.setBlock=Te.prototype.H,Te.prototype.Db=function(){return this.c},Te.prototype.getEnd=Te.prototype.Db,Te.prototype.setEnd=function(s){this.c=s},Te.prototype.setEnd=Te.prototype.setEnd,Te.prototype.reset=function(){this.a=this.h},Te.prototype.reset=Te.prototype.reset,Te.prototype.B=function(){return this.a},Te.prototype.getCursor=Te.prototype.B,Te.prototype.Ma=function(s){this.a=s},Te.prototype.setCursor=Te.prototype.Ma,Te.prototype.advance=function(s){this.a+=s,se(this.a<=this.c)},Te.prototype.advance=Te.prototype.advance,Te.prototype.ya=function(){return this.a==this.c},Te.prototype.atEnd=Te.prototype.ya,Te.prototype.Qb=function(){return this.a>this.c},Te.prototype.pastEnd=Te.prototype.Qb,Te.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},Te.prototype.getError=Te.prototype.getError,Te.prototype.w=function(s){for(var l=128,y=0,N=0,ie=0;4>ie&&128<=l;ie++)l=this.b[this.a++],y|=(l&127)<<7*ie;if(128<=l&&(l=this.b[this.a++],y|=(l&127)<<28,N|=(l&127)>>4),128<=l)for(ie=0;5>ie&&128<=l;ie++)l=this.b[this.a++],N|=(l&127)<<7*ie+3;if(128>l)return s(y>>>0,N>>>0);Ue("Failed to read varint, encoding is invalid."),this.v=!0},Te.prototype.readSplitVarint64=Te.prototype.w,Te.prototype.ea=function(s){return this.w(function(l,y){return Ze(l,y,s)})},Te.prototype.readSplitZigzagVarint64=Te.prototype.ea,Te.prototype.ta=function(s){var l=this.b,y=this.a;this.a+=8;for(var N=0,ie=0,Pe=y+7;Pe>=y;Pe--)N=N<<8|l[Pe],ie=ie<<8|l[Pe+4];return s(N,ie)},Te.prototype.readSplitFixed64=Te.prototype.ta,Te.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},Te.prototype.skipVarint=Te.prototype.kb,Te.prototype.mb=function(s){for(;128<s;)this.a--,s>>>=7;this.a--},Te.prototype.unskipVarint=Te.prototype.mb,Te.prototype.o=function(){var s=this.b,l=s[this.a],y=l&127;return 128>l?(this.a+=1,se(this.a<=this.c),y):(l=s[this.a+1],y|=(l&127)<<7,128>l?(this.a+=2,se(this.a<=this.c),y):(l=s[this.a+2],y|=(l&127)<<14,128>l?(this.a+=3,se(this.a<=this.c),y):(l=s[this.a+3],y|=(l&127)<<21,128>l?(this.a+=4,se(this.a<=this.c),y):(l=s[this.a+4],y|=(l&15)<<28,128>l?(this.a+=5,se(this.a<=this.c),y>>>0):(this.a+=5,128<=s[this.a++]&&128<=s[this.a++]&&128<=s[this.a++]&&128<=s[this.a++]&&128<=s[this.a++]&&se(!1),se(this.a<=this.c),y)))))},Te.prototype.readUnsignedVarint32=Te.prototype.o,Te.prototype.da=function(){return~~this.o()},Te.prototype.readSignedVarint32=Te.prototype.da,Te.prototype.O=function(){return this.o().toString()},Te.prototype.Ea=function(){return this.da().toString()},Te.prototype.readSignedVarint32String=Te.prototype.Ea,Te.prototype.Ia=function(){var s=this.o();return s>>>1^-(s&1)},Te.prototype.readZigzagVarint32=Te.prototype.Ia,Te.prototype.Ga=function(){return this.w(ae)},Te.prototype.readUnsignedVarint64=Te.prototype.Ga,Te.prototype.Ha=function(){return this.w(St)},Te.prototype.readUnsignedVarint64String=Te.prototype.Ha,Te.prototype.sa=function(){return this.w(ve)},Te.prototype.readSignedVarint64=Te.prototype.sa,Te.prototype.Fa=function(){return this.w(Mt)},Te.prototype.readSignedVarint64String=Te.prototype.Fa,Te.prototype.Ja=function(){return this.w(Xe)},Te.prototype.readZigzagVarint64=Te.prototype.Ja,Te.prototype.fb=function(){return this.ea(wt)},Te.prototype.readZigzagVarintHash64=Te.prototype.fb,Te.prototype.Ka=function(){return this.ea(Mt)},Te.prototype.readZigzagVarint64String=Te.prototype.Ka,Te.prototype.Gc=function(){var s=this.b[this.a];return this.a+=1,se(this.a<=this.c),s},Te.prototype.readUint8=Te.prototype.Gc,Te.prototype.Ec=function(){var s=this.b[this.a],l=this.b[this.a+1];return this.a+=2,se(this.a<=this.c),s<<0|l<<8},Te.prototype.readUint16=Te.prototype.Ec,Te.prototype.m=function(){var s=this.b[this.a],l=this.b[this.a+1],y=this.b[this.a+2],N=this.b[this.a+3];return this.a+=4,se(this.a<=this.c),(s<<0|l<<8|y<<16|N<<24)>>>0},Te.prototype.readUint32=Te.prototype.m,Te.prototype.ga=function(){var s=this.m(),l=this.m();return ae(s,l)},Te.prototype.readUint64=Te.prototype.ga,Te.prototype.ha=function(){var s=this.m(),l=this.m();return St(s,l)},Te.prototype.readUint64String=Te.prototype.ha,Te.prototype.Xb=function(){var s=this.b[this.a];return this.a+=1,se(this.a<=this.c),s<<24>>24},Te.prototype.readInt8=Te.prototype.Xb,Te.prototype.Vb=function(){var s=this.b[this.a],l=this.b[this.a+1];return this.a+=2,se(this.a<=this.c),(s<<0|l<<8)<<16>>16},Te.prototype.readInt16=Te.prototype.Vb,Te.prototype.P=function(){var s=this.b[this.a],l=this.b[this.a+1],y=this.b[this.a+2],N=this.b[this.a+3];return this.a+=4,se(this.a<=this.c),s<<0|l<<8|y<<16|N<<24},Te.prototype.readInt32=Te.prototype.P,Te.prototype.ba=function(){var s=this.m(),l=this.m();return ve(s,l)},Te.prototype.readInt64=Te.prototype.ba,Te.prototype.ca=function(){var s=this.m(),l=this.m();return Mt(s,l)},Te.prototype.readInt64String=Te.prototype.ca,Te.prototype.aa=function(){var s=this.m();return tt(s,0)},Te.prototype.readFloat=Te.prototype.aa,Te.prototype.Z=function(){var s=this.m(),l=this.m();return ht(s,l)},Te.prototype.readDouble=Te.prototype.Z,Te.prototype.pa=function(){return!!this.b[this.a++]},Te.prototype.readBool=Te.prototype.pa,Te.prototype.ra=function(){return this.da()},Te.prototype.readEnum=Te.prototype.ra,Te.prototype.fa=function(s){var l=this.b,y=this.a;s=y+s;for(var N=[],ie="";y<s;){var Pe=l[y++];if(128>Pe)N.push(Pe);else{if(192>Pe)continue;if(224>Pe){var De=l[y++];N.push((Pe&31)<<6|De&63)}else if(240>Pe){De=l[y++];var bt=l[y++];N.push((Pe&15)<<12|(De&63)<<6|bt&63)}else if(248>Pe){De=l[y++],bt=l[y++];var Rt=l[y++];Pe=(Pe&7)<<18|(De&63)<<12|(bt&63)<<6|Rt&63,Pe-=65536,N.push((Pe>>10&1023)+55296,(Pe&1023)+56320)}}8192<=N.length&&(ie+=String.fromCharCode.apply(null,N),N.length=0)}return ie+=Ee(N),this.a=y,ie},Te.prototype.readString=Te.prototype.fa,Te.prototype.Dc=function(){var s=this.o();return this.fa(s)},Te.prototype.readStringWithLength=Te.prototype.Dc,Te.prototype.qa=function(s){if(0>s||this.a+s>this.b.length)return this.v=!0,Ue("Invalid byte length!"),new Uint8Array(0);var l=this.b.subarray(this.a,this.a+s);return this.a+=s,se(this.a<=this.c),l},Te.prototype.readBytes=Te.prototype.qa,Te.prototype.ia=function(){return this.w(wt)},Te.prototype.readVarintHash64=Te.prototype.ia,Te.prototype.$=function(){var s=this.b,l=this.a,y=s[l],N=s[l+1],ie=s[l+2],Pe=s[l+3],De=s[l+4],bt=s[l+5],Rt=s[l+6];return s=s[l+7],this.a+=8,String.fromCharCode(y,N,ie,Pe,De,bt,Rt,s)},Te.prototype.readFixedHash64=Te.prototype.$;function ce(s,l,y){this.a=zr(s,l,y),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}z("jspb.BinaryReader",ce,void 0);var It=[];ce.clearInstanceCache=function(){It=[]},ce.getInstanceCacheLength=function(){return It.length};function Qr(s,l,y){if(It.length){var N=It.pop();return s&&N.a.H(s,l,y),N}return new ce(s,l,y)}ce.alloc=Qr,ce.prototype.zb=Qr,ce.prototype.alloc=ce.prototype.zb,ce.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>It.length&&It.push(this)},ce.prototype.free=ce.prototype.Ca,ce.prototype.Fb=function(){return this.O},ce.prototype.getFieldCursor=ce.prototype.Fb,ce.prototype.B=function(){return this.a.B()},ce.prototype.getCursor=ce.prototype.B,ce.prototype.Y=function(){return this.a.Y()},ce.prototype.getBuffer=ce.prototype.Y,ce.prototype.Hb=function(){return this.c},ce.prototype.getFieldNumber=ce.prototype.Hb,ce.prototype.Lb=function(){return this.b},ce.prototype.getWireType=ce.prototype.Lb,ce.prototype.Mb=function(){return this.b==2},ce.prototype.isDelimited=ce.prototype.Mb,ce.prototype.bb=function(){return this.b==4},ce.prototype.isEndGroup=ce.prototype.bb,ce.prototype.getError=function(){return this.h||this.a.getError()},ce.prototype.getError=ce.prototype.getError,ce.prototype.H=function(s,l,y){this.a.H(s,l,y),this.b=this.c=-1},ce.prototype.setBlock=ce.prototype.H,ce.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ce.prototype.reset=ce.prototype.reset,ce.prototype.advance=function(s){this.a.advance(s)},ce.prototype.advance=ce.prototype.advance,ce.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return Ue("Decoder hit an error"),!1;this.O=this.a.B();var s=this.a.o(),l=s>>>3;return s&=7,s!=0&&s!=5&&s!=1&&s!=2&&s!=3&&s!=4?(Ue("Invalid wire type: %s (at position %s)",s,this.O),this.h=!0,!1):(this.c=l,this.b=s,!0)},ce.prototype.nextField=ce.prototype.oa,ce.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ce.prototype.unskipHeader=ce.prototype.Oa,ce.prototype.Lc=function(){var s=this.c;for(this.Oa();this.oa()&&this.c==s;)this.C();this.a.ya()||this.Oa()},ce.prototype.skipMatchingFields=ce.prototype.Lc,ce.prototype.lb=function(){this.b!=0?(Ue("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ce.prototype.skipVarintField=ce.prototype.lb,ce.prototype.gb=function(){if(this.b!=2)Ue("Invalid wire type for skipDelimitedField"),this.C();else{var s=this.a.o();this.a.advance(s)}},ce.prototype.skipDelimitedField=ce.prototype.gb,ce.prototype.hb=function(){this.b!=5?(Ue("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ce.prototype.skipFixed32Field=ce.prototype.hb,ce.prototype.ib=function(){this.b!=1?(Ue("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ce.prototype.skipFixed64Field=ce.prototype.ib,ce.prototype.jb=function(){var s=this.c;do{if(!this.oa()){Ue("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=s&&(Ue("Unmatched end-group tag"),this.h=!0);break}this.C()}while(1)},ce.prototype.skipGroup=ce.prototype.jb,ce.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:Ue("Invalid wire encoding for field.")}},ce.prototype.skipField=ce.prototype.C,ce.prototype.Hc=function(s,l){this.v===null&&(this.v={}),se(!this.v[s]),this.v[s]=l},ce.prototype.registerReadCallback=ce.prototype.Hc,ce.prototype.Ic=function(s){return se(this.v!==null),s=this.v[s],se(s),s(this)},ce.prototype.runReadCallback=ce.prototype.Ic,ce.prototype.Yb=function(s,l){se(this.b==2);var y=this.a.c,N=this.a.o();N=this.a.B()+N,this.a.setEnd(N),l(s,this),this.a.Ma(N),this.a.setEnd(y)},ce.prototype.readMessage=ce.prototype.Yb,ce.prototype.Ub=function(s,l,y){se(this.b==3),se(this.c==s),y(l,this),this.h||this.b==4||(Ue("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ce.prototype.readGroup=ce.prototype.Ub,ce.prototype.Gb=function(){se(this.b==2);var s=this.a.o(),l=this.a.B(),y=l+s;return s=zr(this.a.Y(),l,s),this.a.Ma(y),s},ce.prototype.getFieldDecoder=ce.prototype.Gb,ce.prototype.P=function(){return se(this.b==0),this.a.da()},ce.prototype.readInt32=ce.prototype.P,ce.prototype.Wb=function(){return se(this.b==0),this.a.Ea()},ce.prototype.readInt32String=ce.prototype.Wb,ce.prototype.ba=function(){return se(this.b==0),this.a.sa()},ce.prototype.readInt64=ce.prototype.ba,ce.prototype.ca=function(){return se(this.b==0),this.a.Fa()},ce.prototype.readInt64String=ce.prototype.ca,ce.prototype.m=function(){return se(this.b==0),this.a.o()},ce.prototype.readUint32=ce.prototype.m,ce.prototype.Fc=function(){return se(this.b==0),this.a.O()},ce.prototype.readUint32String=ce.prototype.Fc,ce.prototype.ga=function(){return se(this.b==0),this.a.Ga()},ce.prototype.readUint64=ce.prototype.ga,ce.prototype.ha=function(){return se(this.b==0),this.a.Ha()},ce.prototype.readUint64String=ce.prototype.ha,ce.prototype.zc=function(){return se(this.b==0),this.a.Ia()},ce.prototype.readSint32=ce.prototype.zc,ce.prototype.Ac=function(){return se(this.b==0),this.a.Ja()},ce.prototype.readSint64=ce.prototype.Ac,ce.prototype.Bc=function(){return se(this.b==0),this.a.Ka()},ce.prototype.readSint64String=ce.prototype.Bc,ce.prototype.Rb=function(){return se(this.b==5),this.a.m()},ce.prototype.readFixed32=ce.prototype.Rb,ce.prototype.Sb=function(){return se(this.b==1),this.a.ga()},ce.prototype.readFixed64=ce.prototype.Sb,ce.prototype.Tb=function(){return se(this.b==1),this.a.ha()},ce.prototype.readFixed64String=ce.prototype.Tb,ce.prototype.vc=function(){return se(this.b==5),this.a.P()},ce.prototype.readSfixed32=ce.prototype.vc,ce.prototype.wc=function(){return se(this.b==5),this.a.P().toString()},ce.prototype.readSfixed32String=ce.prototype.wc,ce.prototype.xc=function(){return se(this.b==1),this.a.ba()},ce.prototype.readSfixed64=ce.prototype.xc,ce.prototype.yc=function(){return se(this.b==1),this.a.ca()},ce.prototype.readSfixed64String=ce.prototype.yc,ce.prototype.aa=function(){return se(this.b==5),this.a.aa()},ce.prototype.readFloat=ce.prototype.aa,ce.prototype.Z=function(){return se(this.b==1),this.a.Z()},ce.prototype.readDouble=ce.prototype.Z,ce.prototype.pa=function(){return se(this.b==0),!!this.a.o()},ce.prototype.readBool=ce.prototype.pa,ce.prototype.ra=function(){return se(this.b==0),this.a.sa()},ce.prototype.readEnum=ce.prototype.ra,ce.prototype.fa=function(){se(this.b==2);var s=this.a.o();return this.a.fa(s)},ce.prototype.readString=ce.prototype.fa,ce.prototype.qa=function(){se(this.b==2);var s=this.a.o();return this.a.qa(s)},ce.prototype.readBytes=ce.prototype.qa,ce.prototype.ia=function(){return se(this.b==0),this.a.ia()},ce.prototype.readVarintHash64=ce.prototype.ia,ce.prototype.Cc=function(){return se(this.b==0),this.a.fb()},ce.prototype.readSintHash64=ce.prototype.Cc,ce.prototype.w=function(s){return se(this.b==0),this.a.w(s)},ce.prototype.readSplitVarint64=ce.prototype.w,ce.prototype.ea=function(s){return se(this.b==0),this.a.w(function(l,y){return Ze(l,y,s)})},ce.prototype.readSplitZigzagVarint64=ce.prototype.ea,ce.prototype.$=function(){return se(this.b==1),this.a.$()},ce.prototype.readFixedHash64=ce.prototype.$,ce.prototype.ta=function(s){return se(this.b==1),this.a.ta(s)},ce.prototype.readSplitFixed64=ce.prototype.ta;function Bt(s,l){se(s.b==2);var y=s.a.o();y=s.a.B()+y;for(var N=[];s.a.B()<y;)N.push(l.call(s.a));return N}ce.prototype.gc=function(){return Bt(this,this.a.da)},ce.prototype.readPackedInt32=ce.prototype.gc,ce.prototype.hc=function(){return Bt(this,this.a.Ea)},ce.prototype.readPackedInt32String=ce.prototype.hc,ce.prototype.ic=function(){return Bt(this,this.a.sa)},ce.prototype.readPackedInt64=ce.prototype.ic,ce.prototype.jc=function(){return Bt(this,this.a.Fa)},ce.prototype.readPackedInt64String=ce.prototype.jc,ce.prototype.qc=function(){return Bt(this,this.a.o)},ce.prototype.readPackedUint32=ce.prototype.qc,ce.prototype.rc=function(){return Bt(this,this.a.O)},ce.prototype.readPackedUint32String=ce.prototype.rc,ce.prototype.sc=function(){return Bt(this,this.a.Ga)},ce.prototype.readPackedUint64=ce.prototype.sc,ce.prototype.tc=function(){return Bt(this,this.a.Ha)},ce.prototype.readPackedUint64String=ce.prototype.tc,ce.prototype.nc=function(){return Bt(this,this.a.Ia)},ce.prototype.readPackedSint32=ce.prototype.nc,ce.prototype.oc=function(){return Bt(this,this.a.Ja)},ce.prototype.readPackedSint64=ce.prototype.oc,ce.prototype.pc=function(){return Bt(this,this.a.Ka)},ce.prototype.readPackedSint64String=ce.prototype.pc,ce.prototype.bc=function(){return Bt(this,this.a.m)},ce.prototype.readPackedFixed32=ce.prototype.bc,ce.prototype.cc=function(){return Bt(this,this.a.ga)},ce.prototype.readPackedFixed64=ce.prototype.cc,ce.prototype.dc=function(){return Bt(this,this.a.ha)},ce.prototype.readPackedFixed64String=ce.prototype.dc,ce.prototype.kc=function(){return Bt(this,this.a.P)},ce.prototype.readPackedSfixed32=ce.prototype.kc,ce.prototype.lc=function(){return Bt(this,this.a.ba)},ce.prototype.readPackedSfixed64=ce.prototype.lc,ce.prototype.mc=function(){return Bt(this,this.a.ca)},ce.prototype.readPackedSfixed64String=ce.prototype.mc,ce.prototype.fc=function(){return Bt(this,this.a.aa)},ce.prototype.readPackedFloat=ce.prototype.fc,ce.prototype.$b=function(){return Bt(this,this.a.Z)},ce.prototype.readPackedDouble=ce.prototype.$b,ce.prototype.Zb=function(){return Bt(this,this.a.pa)},ce.prototype.readPackedBool=ce.prototype.Zb,ce.prototype.ac=function(){return Bt(this,this.a.ra)},ce.prototype.readPackedEnum=ce.prototype.ac,ce.prototype.uc=function(){return Bt(this,this.a.ia)},ce.prototype.readPackedVarintHash64=ce.prototype.uc,ce.prototype.ec=function(){return Bt(this,this.a.$)},ce.prototype.readPackedFixedHash64=ce.prototype.ec;function Xt(s,l,y,N,ie){this.ma=s,this.Ba=l,this.la=y,this.Na=N,this.na=ie}z("jspb.ExtensionFieldInfo",Xt,void 0);function dr(s,l,y,N,ie,Pe){this.Za=s,this.za=l,this.Aa=y,this.Wa=N,this.Ab=ie,this.Nb=Pe}z("jspb.ExtensionFieldBinaryInfo",dr,void 0),Xt.prototype.F=function(){return!!this.la},Xt.prototype.isMessageType=Xt.prototype.F;function je(){}z("jspb.Message",je,void 0),je.GENERATE_TO_OBJECT=!0,je.GENERATE_FROM_OBJECT=!0;var gr=typeof Uint8Array=="function";je.prototype.Ib=function(){return this.b},je.prototype.getJsPbMessageId=je.prototype.Ib,je.initialize=function(s,l,y,N,ie,Pe){s.f=null,l||(l=y?[y]:[]),s.b=y?String(y):void 0,s.D=y===0?-1:0,s.u=l;e:{if(y=s.u.length,l=-1,y&&(l=y-1,y=s.u[l],!(y===null||typeof y!="object"||Array.isArray(y)||gr&&y instanceof Uint8Array))){s.G=l-s.D,s.i=y;break e}-1<N?(s.G=Math.max(N,l+1-s.D),s.i=null):s.G=Number.MAX_VALUE}if(s.a={},ie)for(N=0;N<ie.length;N++)l=ie[N],l<s.G?(l+=s.D,s.u[l]=s.u[l]||Qt):($t(s),s.i[l]=s.i[l]||Qt);if(Pe&&Pe.length)for(N=0;N<Pe.length;N++)oo(s,Pe[N])};var Qt=Object.freeze?Object.freeze([]):[];function $t(s){var l=s.G+s.D;s.u[l]||(s.i=s.u[l]={})}function ar(s,l,y){for(var N=[],ie=0;ie<s.length;ie++)N[ie]=l.call(s[ie],y,s[ie]);return N}je.toObjectList=ar,je.toObjectExtension=function(s,l,y,N,ie){for(var Pe in y){var De=y[Pe],bt=N.call(s,De);if(bt!=null){for(var Rt in De.Ba)if(De.Ba.hasOwnProperty(Rt))break;l[Rt]=De.Na?De.na?ar(bt,De.Na,ie):De.Na(ie,bt):bt}}},je.serializeBinaryExtensions=function(s,l,y,N){for(var ie in y){var Pe=y[ie],De=Pe.Za;if(!Pe.Aa)throw Error("Message extension present that was generated without binary serialization support");var bt=N.call(s,De);if(bt!=null)if(De.F())if(Pe.Wa)Pe.Aa.call(l,De.ma,bt,Pe.Wa);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else Pe.Aa.call(l,De.ma,bt)}},je.readBinaryExtension=function(s,l,y,N,ie){var Pe=y[l.c];if(Pe){if(y=Pe.Za,!Pe.za)throw Error("Deserializing extension whose generated code does not support binary format");if(y.F()){var De=new y.la;Pe.za.call(l,De,Pe.Ab)}else De=Pe.za.call(l);y.na&&!Pe.Nb?(l=N.call(s,y))?l.push(De):ie.call(s,y,[De]):ie.call(s,y,De)}else l.C()};function Jt(s,l){if(l<s.G){l+=s.D;var y=s.u[l];return y===Qt?s.u[l]=[]:y}if(s.i)return y=s.i[l],y===Qt?s.i[l]=[]:y}je.getField=Jt,je.getRepeatedField=function(s,l){return Jt(s,l)};function Ht(s,l){return s=Jt(s,l),s==null?s:+s}je.getOptionalFloatingPointField=Ht;function yr(s,l){return s=Jt(s,l),s==null?s:!!s}je.getBooleanField=yr,je.getRepeatedFloatingPointField=function(s,l){var y=Jt(s,l);if(s.a||(s.a={}),!s.a[l]){for(var N=0;N<y.length;N++)y[N]=+y[N];s.a[l]=!0}return y},je.getRepeatedBooleanField=function(s,l){var y=Jt(s,l);if(s.a||(s.a={}),!s.a[l]){for(var N=0;N<y.length;N++)y[N]=!!y[N];s.a[l]=!0}return y};function Rr(s){return s==null||typeof s=="string"?s:gr&&s instanceof Uint8Array?dt(s):(Ue("Cannot coerce to b64 string: "+K(s)),null)}je.bytesAsB64=Rr;function ro(s){return s==null||s instanceof Uint8Array?s:typeof s=="string"?nt(s):(Ue("Cannot coerce to Uint8Array: "+K(s)),null)}je.bytesAsU8=ro,je.bytesListAsB64=function(s){return jr(s),s.length&&typeof s[0]!="string"?J(s,Rr):s},je.bytesListAsU8=function(s){return jr(s),!s.length||s[0]instanceof Uint8Array?s:J(s,ro)};function jr(s){if(s&&1<s.length){var l=K(s[0]);j(s,function(y){K(y)!=l&&Ue("Inconsistent type in JSPB repeated field array. Got "+K(y)+" expected "+l)})}}function Dr(s,l,y){return s=Jt(s,l),s==null?y:s}je.getFieldWithDefault=Dr,je.getBooleanFieldWithDefault=function(s,l,y){return s=yr(s,l),s==null?y:s},je.getFloatingPointFieldWithDefault=function(s,l,y){return s=Ht(s,l),s==null?y:s},je.getFieldProto3=Dr,je.getMapField=function(s,l,y,N){if(s.f||(s.f={}),l in s.f)return s.f[l];var ie=Jt(s,l);if(!ie){if(y)return;ie=[],Cr(s,l,ie)}return s.f[l]=new Je(ie,N)};function Cr(s,l,y){return ct(s,je),l<s.G?s.u[l+s.D]=y:($t(s),s.i[l]=y),s}je.setField=Cr,je.setProto3IntField=function(s,l,y){return hr(s,l,y,0)},je.setProto3FloatField=function(s,l,y){return hr(s,l,y,0)},je.setProto3BooleanField=function(s,l,y){return hr(s,l,y,!1)},je.setProto3StringField=function(s,l,y){return hr(s,l,y,"")},je.setProto3BytesField=function(s,l,y){return hr(s,l,y,"")},je.setProto3EnumField=function(s,l,y){return hr(s,l,y,0)},je.setProto3StringIntField=function(s,l,y){return hr(s,l,y,"0")};function hr(s,l,y,N){return ct(s,je),y!==N?Cr(s,l,y):l<s.G?s.u[l+s.D]=null:($t(s),delete s.i[l]),s}je.addToRepeatedField=function(s,l,y,N){return ct(s,je),l=Jt(s,l),N!=null?l.splice(N,0,y):l.push(y),s};function so(s,l,y,N){return ct(s,je),(y=oo(s,y))&&y!==l&&N!==void 0&&(s.f&&y in s.f&&(s.f[y]=void 0),Cr(s,y,void 0)),Cr(s,l,N)}je.setOneofField=so;function oo(s,l){for(var y,N,ie=0;ie<l.length;ie++){var Pe=l[ie],De=Jt(s,Pe);De!=null&&(y=Pe,N=De,Cr(s,Pe,void 0))}return y?(Cr(s,y,N),y):0}je.computeOneofCase=oo,je.getWrapperField=function(s,l,y,N){if(s.f||(s.f={}),!s.f[y]){var ie=Jt(s,y);(N||ie)&&(s.f[y]=new l(ie))}return s.f[y]},je.getRepeatedWrapperField=function(s,l,y){return eo(s,l,y),l=s.f[y],l==Qt&&(l=s.f[y]=[]),l};function eo(s,l,y){if(s.f||(s.f={}),!s.f[y]){for(var N=Jt(s,y),ie=[],Pe=0;Pe<N.length;Pe++)ie[Pe]=new l(N[Pe]);s.f[y]=ie}}je.setWrapperField=function(s,l,y){ct(s,je),s.f||(s.f={});var N=y&&y.g();return s.f[l]=y,Cr(s,l,N)},je.setOneofWrapperField=function(s,l,y,N){ct(s,je),s.f||(s.f={});var ie=N&&N.g();return s.f[l]=N,so(s,l,y,ie)},je.setRepeatedWrapperField=function(s,l,y){ct(s,je),s.f||(s.f={}),y=y||[];for(var N=[],ie=0;ie<y.length;ie++)N[ie]=y[ie].g();return s.f[l]=y,Cr(s,l,N)},je.addToRepeatedWrapperField=function(s,l,y,N,ie){eo(s,N,l);var Pe=s.f[l];return Pe||(Pe=s.f[l]=[]),y=y||new N,s=Jt(s,l),ie!=null?(Pe.splice(ie,0,y),s.splice(ie,0,y.g())):(Pe.push(y),s.push(y.g())),y},je.toMap=function(s,l,y,N){for(var ie={},Pe=0;Pe<s.length;Pe++)ie[l.call(s[Pe])]=y?y.call(s[Pe],N,s[Pe]):s[Pe];return ie};function Zr(s){if(s.f)for(var l in s.f){var y=s.f[l];if(Array.isArray(y))for(var N=0;N<y.length;N++)y[N]&&y[N].g();else y&&y.g()}}je.prototype.g=function(){return Zr(this),this.u},je.prototype.toArray=je.prototype.g,je.prototype.toString=function(){return Zr(this),this.u.toString()},je.prototype.getExtension=function(s){if(this.i){this.f||(this.f={});var l=s.ma;if(s.na){if(s.F())return this.f[l]||(this.f[l]=J(this.i[l]||[],function(y){return new s.la(y)})),this.f[l]}else if(s.F())return!this.f[l]&&this.i[l]&&(this.f[l]=new s.la(this.i[l])),this.f[l];return this.i[l]}},je.prototype.getExtension=je.prototype.getExtension,je.prototype.Kc=function(s,l){this.f||(this.f={}),$t(this);var y=s.ma;return s.na?(l=l||[],s.F()?(this.f[y]=l,this.i[y]=J(l,function(N){return N.g()})):this.i[y]=l):s.F()?(this.f[y]=l,this.i[y]=l&&l.g()):this.i[y]=l,this},je.prototype.setExtension=je.prototype.Kc,je.difference=function(s,l){if(!(s instanceof l.constructor))throw Error("Messages have different types.");var y=s.g();l=l.g();var N=[],ie=0,Pe=y.length>l.length?y.length:l.length;for(s.b&&(N[0]=s.b,ie=1);ie<Pe;ie++)Gr(y[ie],l[ie])||(N[ie]=l[ie]);return new s.constructor(N)},je.equals=function(s,l){return s==l||!(!s||!l)&&s instanceof l.constructor&&Gr(s.g(),l.g())};function jt(s,l){s=s||{},l=l||{};var y={},N;for(N in s)y[N]=0;for(N in l)y[N]=0;for(N in y)if(!Gr(s[N],l[N]))return!1;return!0}je.compareExtensions=jt;function Gr(s,l){if(s==l)return!0;if(!L(s)||!L(l))return typeof s=="number"&&isNaN(s)||typeof l=="number"&&isNaN(l)?String(s)==String(l):!1;if(s.constructor!=l.constructor)return!1;if(gr&&s.constructor===Uint8Array){if(s.length!=l.length)return!1;for(var y=0;y<s.length;y++)if(s[y]!=l[y])return!1;return!0}if(s.constructor===Array){var N=void 0,ie=void 0,Pe=Math.max(s.length,l.length);for(y=0;y<Pe;y++){var De=s[y],bt=l[y];if(De&&De.constructor==Object&&(se(N===void 0),se(y===s.length-1),N=De,De=void 0),bt&&bt.constructor==Object&&(se(ie===void 0),se(y===l.length-1),ie=bt,bt=void 0),!Gr(De,bt))return!1}return N||ie?(N=N||{},ie=ie||{},jt(N,ie)):!0}if(s.constructor===Object)return jt(s,l);throw Error("Invalid type in JSPB array")}je.compareFields=Gr,je.prototype.Bb=function(){return Br(this)},je.prototype.cloneMessage=je.prototype.Bb,je.prototype.clone=function(){return Br(this)},je.prototype.clone=je.prototype.clone,je.clone=function(s){return Br(s)};function Br(s){return new s.constructor(to(s.g()))}je.copyInto=function(s,l){ct(s,je),ct(l,je),se(s.constructor==l.constructor,"Copy source and target message should have the same type."),s=Br(s);for(var y=l.g(),N=s.g(),ie=y.length=0;ie<N.length;ie++)y[ie]=N[ie];l.f=s.f,l.i=s.i};function to(s){if(Array.isArray(s)){for(var l=Array(s.length),y=0;y<s.length;y++){var N=s[y];N!=null&&(l[y]=typeof N=="object"?to(se(N)):N)}return l}if(gr&&s instanceof Uint8Array)return new Uint8Array(s);l={};for(y in s)N=s[y],N!=null&&(l[y]=typeof N=="object"?to(se(N)):N);return l}je.registerMessageType=function(s,l){l.we=s};var cr={dump:function(s){return ct(s,je,"jspb.Message instance expected"),se(s.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),cr.X(s)}};z("jspb.debug.dump",cr.dump,void 0),cr.X=function(s){var l=K(s);if(l=="number"||l=="string"||l=="boolean"||l=="null"||l=="undefined"||typeof Uint8Array<"u"&&s instanceof Uint8Array)return s;if(l=="array")return xe(s),J(s,cr.X);if(s instanceof Je){var y={};s=s.entries();for(var N=s.next();!N.done;N=s.next())y[N.value[0]]=cr.X(N.value[1]);return y}ct(s,je,"Only messages expected: "+s),l=s.constructor;var ie={$name:l.name||l.displayName};for(bt in l.prototype){var Pe=/^get([A-Z]\w*)/.exec(bt);if(Pe&&bt!="getExtension"&&bt!="getJsPbMessageId"){var De="has"+Pe[1];(!s[De]||s[De]())&&(De=s[bt](),ie[cr.$a(Pe[1])]=cr.X(De))}}if(s.extensionObject_)return ie.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",ie;for(N in l.extensions)if(/^\d+$/.test(N)){De=l.extensions[N];var bt=s.getExtension(De);Pe=void 0,De=De.Ba;var Rt=[],ao=0;for(Pe in De)Rt[ao++]=Pe;Pe=Rt[0],bt!=null&&(y||(y=ie.$extensions={}),y[cr.$a(Pe)]=cr.X(bt))}return ie},cr.$a=function(s){return s.replace(/^[A-Z]/,function(l){return l.toLowerCase()})};function He(){this.a=[]}z("jspb.BinaryEncoder",He,void 0),He.prototype.length=function(){return this.a.length},He.prototype.length=He.prototype.length,He.prototype.end=function(){var s=this.a;return this.a=[],s},He.prototype.end=He.prototype.end,He.prototype.l=function(s,l){for(se(s==Math.floor(s)),se(l==Math.floor(l)),se(0<=s&&4294967296>s),se(0<=l&&4294967296>l);0<l||127<s;)this.a.push(s&127|128),s=(s>>>7|l<<25)>>>0,l>>>=7;this.a.push(s)},He.prototype.writeSplitVarint64=He.prototype.l,He.prototype.A=function(s,l){se(s==Math.floor(s)),se(l==Math.floor(l)),se(0<=s&&4294967296>s),se(0<=l&&4294967296>l),this.s(s),this.s(l)},He.prototype.writeSplitFixed64=He.prototype.A,He.prototype.j=function(s){for(se(s==Math.floor(s)),se(0<=s&&4294967296>s);127<s;)this.a.push(s&127|128),s>>>=7;this.a.push(s)},He.prototype.writeUnsignedVarint32=He.prototype.j,He.prototype.M=function(s){if(se(s==Math.floor(s)),se(-2147483648<=s&&2147483648>s),0<=s)this.j(s);else{for(var l=0;9>l;l++)this.a.push(s&127|128),s>>=7;this.a.push(1)}},He.prototype.writeSignedVarint32=He.prototype.M,He.prototype.va=function(s){se(s==Math.floor(s)),se(0<=s&&18446744073709552e3>s),tr(s),this.l(xt,ut)},He.prototype.writeUnsignedVarint64=He.prototype.va,He.prototype.ua=function(s){se(s==Math.floor(s)),se(-9223372036854776e3<=s&&9223372036854776e3>s),tr(s),this.l(xt,ut)},He.prototype.writeSignedVarint64=He.prototype.ua,He.prototype.wa=function(s){se(s==Math.floor(s)),se(-2147483648<=s&&2147483648>s),this.j((s<<1^s>>31)>>>0)},He.prototype.writeZigzagVarint32=He.prototype.wa,He.prototype.xa=function(s){se(s==Math.floor(s)),se(-9223372036854776e3<=s&&9223372036854776e3>s),fr(s),this.l(xt,ut)},He.prototype.writeZigzagVarint64=He.prototype.xa,He.prototype.Ta=function(s){this.W(Wt(s))},He.prototype.writeZigzagVarint64String=He.prototype.Ta,He.prototype.W=function(s){var l=this;rr(s),we(xt,ut,function(y,N){l.l(y>>>0,N>>>0)})},He.prototype.writeZigzagVarintHash64=He.prototype.W,He.prototype.be=function(s){se(s==Math.floor(s)),se(0<=s&&256>s),this.a.push(s>>>0&255)},He.prototype.writeUint8=He.prototype.be,He.prototype.ae=function(s){se(s==Math.floor(s)),se(0<=s&&65536>s),this.a.push(s>>>0&255),this.a.push(s>>>8&255)},He.prototype.writeUint16=He.prototype.ae,He.prototype.s=function(s){se(s==Math.floor(s)),se(0<=s&&4294967296>s),this.a.push(s>>>0&255),this.a.push(s>>>8&255),this.a.push(s>>>16&255),this.a.push(s>>>24&255)},He.prototype.writeUint32=He.prototype.s,He.prototype.V=function(s){se(s==Math.floor(s)),se(0<=s&&18446744073709552e3>s),nr(s),this.s(xt),this.s(ut)},He.prototype.writeUint64=He.prototype.V,He.prototype.Qc=function(s){se(s==Math.floor(s)),se(-128<=s&&128>s),this.a.push(s>>>0&255)},He.prototype.writeInt8=He.prototype.Qc,He.prototype.Pc=function(s){se(s==Math.floor(s)),se(-32768<=s&&32768>s),this.a.push(s>>>0&255),this.a.push(s>>>8&255)},He.prototype.writeInt16=He.prototype.Pc,He.prototype.S=function(s){se(s==Math.floor(s)),se(-2147483648<=s&&2147483648>s),this.a.push(s>>>0&255),this.a.push(s>>>8&255),this.a.push(s>>>16&255),this.a.push(s>>>24&255)},He.prototype.writeInt32=He.prototype.S,He.prototype.T=function(s){se(s==Math.floor(s)),se(-9223372036854776e3<=s&&9223372036854776e3>s),tr(s),this.A(xt,ut)},He.prototype.writeInt64=He.prototype.T,He.prototype.ka=function(s){se(s==Math.floor(s)),se(-9223372036854776e3<=+s&&9223372036854776e3>+s),rr(Wt(s)),this.A(xt,ut)},He.prototype.writeInt64String=He.prototype.ka,He.prototype.L=function(s){se(s===1/0||s===-1/0||isNaN(s)||-34028234663852886e22<=s&&34028234663852886e22>=s),Lr(s),this.s(xt)},He.prototype.writeFloat=He.prototype.L,He.prototype.J=function(s){se(s===1/0||s===-1/0||isNaN(s)||-17976931348623157e292<=s&&17976931348623157e292>=s),ur(s),this.s(xt),this.s(ut)},He.prototype.writeDouble=He.prototype.J,He.prototype.I=function(s){se(typeof s=="boolean"||typeof s=="number"),this.a.push(s?1:0)},He.prototype.writeBool=He.prototype.I,He.prototype.R=function(s){se(s==Math.floor(s)),se(-2147483648<=s&&2147483648>s),this.M(s)},He.prototype.writeEnum=He.prototype.R,He.prototype.ja=function(s){this.a.push.apply(this.a,s)},He.prototype.writeBytes=He.prototype.ja,He.prototype.N=function(s){rr(s),this.l(xt,ut)},He.prototype.writeVarintHash64=He.prototype.N,He.prototype.K=function(s){rr(s),this.s(xt),this.s(ut)},He.prototype.writeFixedHash64=He.prototype.K,He.prototype.U=function(s){var l=this.a.length;ne(s);for(var y=0;y<s.length;y++){var N=s.charCodeAt(y);if(128>N)this.a.push(N);else if(2048>N)this.a.push(N>>6|192),this.a.push(N&63|128);else if(65536>N)if(55296<=N&&56319>=N&&y+1<s.length){var ie=s.charCodeAt(y+1);56320<=ie&&57343>=ie&&(N=1024*(N-55296)+ie-56320+65536,this.a.push(N>>18|240),this.a.push(N>>12&63|128),this.a.push(N>>6&63|128),this.a.push(N&63|128),y++)}else this.a.push(N>>12|224),this.a.push(N>>6&63|128),this.a.push(N&63|128)}return this.a.length-l},He.prototype.writeString=He.prototype.U;function D(s,l){this.lo=s,this.hi=l}z("jspb.arith.UInt64",D,void 0),D.prototype.cmp=function(s){return this.hi<s.hi||this.hi==s.hi&&this.lo<s.lo?-1:this.hi==s.hi&&this.lo==s.lo?0:1},D.prototype.cmp=D.prototype.cmp,D.prototype.La=function(){return new D((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},D.prototype.rightShift=D.prototype.La,D.prototype.Da=function(){return new D(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},D.prototype.leftShift=D.prototype.Da,D.prototype.cb=function(){return!!(this.hi&2147483648)},D.prototype.msb=D.prototype.cb,D.prototype.Ob=function(){return!!(this.lo&1)},D.prototype.lsb=D.prototype.Ob,D.prototype.Ua=function(){return this.lo==0&&this.hi==0},D.prototype.zero=D.prototype.Ua,D.prototype.add=function(s){return new D((this.lo+s.lo&4294967295)>>>0>>>0,((this.hi+s.hi&4294967295)>>>0)+(4294967296<=this.lo+s.lo?1:0)>>>0)},D.prototype.add=D.prototype.add,D.prototype.sub=function(s){return new D((this.lo-s.lo&4294967295)>>>0>>>0,((this.hi-s.hi&4294967295)>>>0)-(0>this.lo-s.lo?1:0)>>>0)},D.prototype.sub=D.prototype.sub;function be(s,l){var y=s&65535;s>>>=16;var N=l&65535,ie=l>>>16;for(l=y*N+65536*(y*ie&65535)+65536*(s*N&65535),y=s*ie+(y*ie>>>16)+(s*N>>>16);4294967296<=l;)l-=4294967296,y+=1;return new D(l>>>0,y>>>0)}D.mul32x32=be,D.prototype.eb=function(s){var l=be(this.lo,s);return s=be(this.hi,s),s.hi=s.lo,s.lo=0,l.add(s)},D.prototype.mul=D.prototype.eb,D.prototype.Xa=function(s){if(s==0)return[];var l=new D(0,0),y=new D(this.lo,this.hi);s=new D(s,0);for(var N=new D(1,0);!s.cb();)s=s.Da(),N=N.Da();for(;!N.Ua();)0>=s.cmp(y)&&(l=l.add(N),y=y.sub(s)),s=s.La(),N=N.La();return[l,y]},D.prototype.div=D.prototype.Xa,D.prototype.toString=function(){for(var s="",l=this;!l.Ua();){l=l.Xa(10);var y=l[0];s=l[1].lo+s,l=y}return s==""&&(s="0"),s},D.prototype.toString=D.prototype.toString;function Fe(s){for(var l=new D(0,0),y=new D(0,0),N=0;N<s.length;N++){if("0">s[N]||"9"<s[N])return null;y.lo=parseInt(s[N],10),l=l.eb(10).add(y)}return l}D.fromString=Fe,D.prototype.clone=function(){return new D(this.lo,this.hi)},D.prototype.clone=D.prototype.clone;function Ge(s,l){this.lo=s,this.hi=l}z("jspb.arith.Int64",Ge,void 0),Ge.prototype.add=function(s){return new Ge((this.lo+s.lo&4294967295)>>>0>>>0,((this.hi+s.hi&4294967295)>>>0)+(4294967296<=this.lo+s.lo?1:0)>>>0)},Ge.prototype.add=Ge.prototype.add,Ge.prototype.sub=function(s){return new Ge((this.lo-s.lo&4294967295)>>>0>>>0,((this.hi-s.hi&4294967295)>>>0)-(0>this.lo-s.lo?1:0)>>>0)},Ge.prototype.sub=Ge.prototype.sub,Ge.prototype.clone=function(){return new Ge(this.lo,this.hi)},Ge.prototype.clone=Ge.prototype.clone,Ge.prototype.toString=function(){var s=(this.hi&2147483648)!=0,l=new D(this.lo,this.hi);return s&&(l=new D(0,0).sub(l)),(s?"-":"")+l.toString()},Ge.prototype.toString=Ge.prototype.toString;function ze(s){var l=0<s.length&&s[0]=="-";return l&&(s=s.substring(1)),s=Fe(s),s===null?null:(l&&(s=new D(0,0).sub(s)),new Ge(s.lo,s.hi))}Ge.fromString=ze;function $(){this.c=[],this.b=0,this.a=new He,this.h=[]}z("jspb.BinaryWriter",$,void 0);function ot(s,l){var y=s.a.end();s.c.push(y),s.c.push(l),s.b+=y.length+l.length}function pt(s,l){return it(s,l,2),l=s.a.end(),s.c.push(l),s.b+=l.length,l.push(s.b),l}function lt(s,l){var y=l.pop();for(y=s.b+s.a.length()-y,se(0<=y);127<y;)l.push(y&127|128),y>>>=7,s.b++;l.push(y),s.b++}$.prototype.pb=function(s,l,y){ot(this,s.subarray(l,y))},$.prototype.writeSerializedMessage=$.prototype.pb,$.prototype.Pb=function(s,l,y){s!=null&&l!=null&&y!=null&&this.pb(s,l,y)},$.prototype.maybeWriteSerializedMessage=$.prototype.Pb,$.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},$.prototype.reset=$.prototype.reset,$.prototype.ab=function(){se(this.h.length==0);for(var s=new Uint8Array(this.b+this.a.length()),l=this.c,y=l.length,N=0,ie=0;ie<y;ie++){var Pe=l[ie];s.set(Pe,N),N+=Pe.length}return l=this.a.end(),s.set(l,N),N+=l.length,se(N==s.length),this.c=[s],s},$.prototype.getResultBuffer=$.prototype.ab,$.prototype.Kb=function(s){return dt(this.ab(),s)},$.prototype.getResultBase64String=$.prototype.Kb,$.prototype.Va=function(s){this.h.push(pt(this,s))},$.prototype.beginSubMessage=$.prototype.Va,$.prototype.Ya=function(){se(0<=this.h.length),lt(this,this.h.pop())},$.prototype.endSubMessage=$.prototype.Ya;function it(s,l,y){se(1<=l&&l==Math.floor(l)),s.a.j(8*l+y)}$.prototype.Nc=function(s,l,y){switch(s){case 1:this.J(l,y);break;case 2:this.L(l,y);break;case 3:this.T(l,y);break;case 4:this.V(l,y);break;case 5:this.S(l,y);break;case 6:this.Qa(l,y);break;case 7:this.Pa(l,y);break;case 8:this.I(l,y);break;case 9:this.U(l,y);break;case 10:Ue("Group field type not supported in writeAny()");break;case 11:Ue("Message field type not supported in writeAny()");break;case 12:this.ja(l,y);break;case 13:this.s(l,y);break;case 14:this.R(l,y);break;case 15:this.Ra(l,y);break;case 16:this.Sa(l,y);break;case 17:this.rb(l,y);break;case 18:this.sb(l,y);break;case 30:this.K(l,y);break;case 31:this.N(l,y);break;default:Ue("Invalid field type in writeAny()")}},$.prototype.writeAny=$.prototype.Nc;function Er(s,l,y){y!=null&&(it(s,l,0),s.a.j(y))}function qt(s,l,y){y!=null&&(it(s,l,0),s.a.M(y))}$.prototype.S=function(s,l){l!=null&&(se(-2147483648<=l&&2147483648>l),qt(this,s,l))},$.prototype.writeInt32=$.prototype.S,$.prototype.ob=function(s,l){l!=null&&(l=parseInt(l,10),se(-2147483648<=l&&2147483648>l),qt(this,s,l))},$.prototype.writeInt32String=$.prototype.ob,$.prototype.T=function(s,l){l!=null&&(se(-9223372036854776e3<=l&&9223372036854776e3>l),l!=null&&(it(this,s,0),this.a.ua(l)))},$.prototype.writeInt64=$.prototype.T,$.prototype.ka=function(s,l){l!=null&&(l=ze(l),it(this,s,0),this.a.l(l.lo,l.hi))},$.prototype.writeInt64String=$.prototype.ka,$.prototype.s=function(s,l){l!=null&&(se(0<=l&&4294967296>l),Er(this,s,l))},$.prototype.writeUint32=$.prototype.s,$.prototype.ub=function(s,l){l!=null&&(l=parseInt(l,10),se(0<=l&&4294967296>l),Er(this,s,l))},$.prototype.writeUint32String=$.prototype.ub,$.prototype.V=function(s,l){l!=null&&(se(0<=l&&18446744073709552e3>l),l!=null&&(it(this,s,0),this.a.va(l)))},$.prototype.writeUint64=$.prototype.V,$.prototype.vb=function(s,l){l!=null&&(l=Fe(l),it(this,s,0),this.a.l(l.lo,l.hi))},$.prototype.writeUint64String=$.prototype.vb,$.prototype.rb=function(s,l){l!=null&&(se(-2147483648<=l&&2147483648>l),l!=null&&(it(this,s,0),this.a.wa(l)))},$.prototype.writeSint32=$.prototype.rb,$.prototype.sb=function(s,l){l!=null&&(se(-9223372036854776e3<=l&&9223372036854776e3>l),l!=null&&(it(this,s,0),this.a.xa(l)))},$.prototype.writeSint64=$.prototype.sb,$.prototype.$d=function(s,l){l!=null&&l!=null&&(it(this,s,0),this.a.W(l))},$.prototype.writeSintHash64=$.prototype.$d,$.prototype.Zd=function(s,l){l!=null&&l!=null&&(it(this,s,0),this.a.Ta(l))},$.prototype.writeSint64String=$.prototype.Zd,$.prototype.Pa=function(s,l){l!=null&&(se(0<=l&&4294967296>l),it(this,s,5),this.a.s(l))},$.prototype.writeFixed32=$.prototype.Pa,$.prototype.Qa=function(s,l){l!=null&&(se(0<=l&&18446744073709552e3>l),it(this,s,1),this.a.V(l))},$.prototype.writeFixed64=$.prototype.Qa,$.prototype.nb=function(s,l){l!=null&&(l=Fe(l),it(this,s,1),this.a.A(l.lo,l.hi))},$.prototype.writeFixed64String=$.prototype.nb,$.prototype.Ra=function(s,l){l!=null&&(se(-2147483648<=l&&2147483648>l),it(this,s,5),this.a.S(l))},$.prototype.writeSfixed32=$.prototype.Ra,$.prototype.Sa=function(s,l){l!=null&&(se(-9223372036854776e3<=l&&9223372036854776e3>l),it(this,s,1),this.a.T(l))},$.prototype.writeSfixed64=$.prototype.Sa,$.prototype.qb=function(s,l){l!=null&&(l=ze(l),it(this,s,1),this.a.A(l.lo,l.hi))},$.prototype.writeSfixed64String=$.prototype.qb,$.prototype.L=function(s,l){l!=null&&(it(this,s,5),this.a.L(l))},$.prototype.writeFloat=$.prototype.L,$.prototype.J=function(s,l){l!=null&&(it(this,s,1),this.a.J(l))},$.prototype.writeDouble=$.prototype.J,$.prototype.I=function(s,l){l!=null&&(se(typeof l=="boolean"||typeof l=="number"),it(this,s,0),this.a.I(l))},$.prototype.writeBool=$.prototype.I,$.prototype.R=function(s,l){l!=null&&(se(-2147483648<=l&&2147483648>l),it(this,s,0),this.a.M(l))},$.prototype.writeEnum=$.prototype.R,$.prototype.U=function(s,l){l!=null&&(s=pt(this,s),this.a.U(l),lt(this,s))},$.prototype.writeString=$.prototype.U,$.prototype.ja=function(s,l){l!=null&&(l=lr(l),it(this,s,2),this.a.j(l.length),ot(this,l))},$.prototype.writeBytes=$.prototype.ja,$.prototype.Rc=function(s,l,y){l!=null&&(s=pt(this,s),y(l,this),lt(this,s))},$.prototype.writeMessage=$.prototype.Rc,$.prototype.Sc=function(s,l,y){l!=null&&(it(this,1,3),it(this,2,0),this.a.M(s),s=pt(this,3),y(l,this),lt(this,s),it(this,1,4))},$.prototype.writeMessageSet=$.prototype.Sc,$.prototype.Oc=function(s,l,y){l!=null&&(it(this,s,3),y(l,this),it(this,s,4))},$.prototype.writeGroup=$.prototype.Oc,$.prototype.K=function(s,l){l!=null&&(se(l.length==8),it(this,s,1),this.a.K(l))},$.prototype.writeFixedHash64=$.prototype.K,$.prototype.N=function(s,l){l!=null&&(se(l.length==8),it(this,s,0),this.a.N(l))},$.prototype.writeVarintHash64=$.prototype.N,$.prototype.A=function(s,l,y){it(this,s,1),this.a.A(l,y)},$.prototype.writeSplitFixed64=$.prototype.A,$.prototype.l=function(s,l,y){it(this,s,0),this.a.l(l,y)},$.prototype.writeSplitVarint64=$.prototype.l,$.prototype.tb=function(s,l,y){it(this,s,0);var N=this.a;we(l,y,function(ie,Pe){N.l(ie>>>0,Pe>>>0)})},$.prototype.writeSplitZigzagVarint64=$.prototype.tb,$.prototype.Ed=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)qt(this,s,l[y])},$.prototype.writeRepeatedInt32=$.prototype.Ed,$.prototype.Fd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.ob(s,l[y])},$.prototype.writeRepeatedInt32String=$.prototype.Fd,$.prototype.Gd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++){var N=l[y];N!=null&&(it(this,s,0),this.a.ua(N))}},$.prototype.writeRepeatedInt64=$.prototype.Gd,$.prototype.Qd=function(s,l,y,N){if(l!=null)for(var ie=0;ie<l.length;ie++)this.A(s,y(l[ie]),N(l[ie]))},$.prototype.writeRepeatedSplitFixed64=$.prototype.Qd,$.prototype.Rd=function(s,l,y,N){if(l!=null)for(var ie=0;ie<l.length;ie++)this.l(s,y(l[ie]),N(l[ie]))},$.prototype.writeRepeatedSplitVarint64=$.prototype.Rd,$.prototype.Sd=function(s,l,y,N){if(l!=null)for(var ie=0;ie<l.length;ie++)this.tb(s,y(l[ie]),N(l[ie]))},$.prototype.writeRepeatedSplitZigzagVarint64=$.prototype.Sd,$.prototype.Hd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.ka(s,l[y])},$.prototype.writeRepeatedInt64String=$.prototype.Hd,$.prototype.Ud=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)Er(this,s,l[y])},$.prototype.writeRepeatedUint32=$.prototype.Ud,$.prototype.Vd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.ub(s,l[y])},$.prototype.writeRepeatedUint32String=$.prototype.Vd,$.prototype.Wd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++){var N=l[y];N!=null&&(it(this,s,0),this.a.va(N))}},$.prototype.writeRepeatedUint64=$.prototype.Wd,$.prototype.Xd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.vb(s,l[y])},$.prototype.writeRepeatedUint64String=$.prototype.Xd,$.prototype.Md=function(s,l){if(l!=null)for(var y=0;y<l.length;y++){var N=l[y];N!=null&&(it(this,s,0),this.a.wa(N))}},$.prototype.writeRepeatedSint32=$.prototype.Md,$.prototype.Nd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++){var N=l[y];N!=null&&(it(this,s,0),this.a.xa(N))}},$.prototype.writeRepeatedSint64=$.prototype.Nd,$.prototype.Od=function(s,l){if(l!=null)for(var y=0;y<l.length;y++){var N=l[y];N!=null&&(it(this,s,0),this.a.Ta(N))}},$.prototype.writeRepeatedSint64String=$.prototype.Od,$.prototype.Pd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++){var N=l[y];N!=null&&(it(this,s,0),this.a.W(N))}},$.prototype.writeRepeatedSintHash64=$.prototype.Pd,$.prototype.yd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.Pa(s,l[y])},$.prototype.writeRepeatedFixed32=$.prototype.yd,$.prototype.zd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.Qa(s,l[y])},$.prototype.writeRepeatedFixed64=$.prototype.zd,$.prototype.Ad=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.nb(s,l[y])},$.prototype.writeRepeatedFixed64String=$.prototype.Ad,$.prototype.Jd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.Ra(s,l[y])},$.prototype.writeRepeatedSfixed32=$.prototype.Jd,$.prototype.Kd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.Sa(s,l[y])},$.prototype.writeRepeatedSfixed64=$.prototype.Kd,$.prototype.Ld=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.qb(s,l[y])},$.prototype.writeRepeatedSfixed64String=$.prototype.Ld,$.prototype.Cd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.L(s,l[y])},$.prototype.writeRepeatedFloat=$.prototype.Cd,$.prototype.wd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.J(s,l[y])},$.prototype.writeRepeatedDouble=$.prototype.wd,$.prototype.ud=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.I(s,l[y])},$.prototype.writeRepeatedBool=$.prototype.ud,$.prototype.xd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.R(s,l[y])},$.prototype.writeRepeatedEnum=$.prototype.xd,$.prototype.Td=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.U(s,l[y])},$.prototype.writeRepeatedString=$.prototype.Td,$.prototype.vd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.ja(s,l[y])},$.prototype.writeRepeatedBytes=$.prototype.vd,$.prototype.Id=function(s,l,y){if(l!=null)for(var N=0;N<l.length;N++){var ie=pt(this,s);y(l[N],this),lt(this,ie)}},$.prototype.writeRepeatedMessage=$.prototype.Id,$.prototype.Dd=function(s,l,y){if(l!=null)for(var N=0;N<l.length;N++)it(this,s,3),y(l[N],this),it(this,s,4)},$.prototype.writeRepeatedGroup=$.prototype.Dd,$.prototype.Bd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.K(s,l[y])},$.prototype.writeRepeatedFixedHash64=$.prototype.Bd,$.prototype.Yd=function(s,l){if(l!=null)for(var y=0;y<l.length;y++)this.N(s,l[y])},$.prototype.writeRepeatedVarintHash64=$.prototype.Yd,$.prototype.ad=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.M(l[y]);lt(this,s)}},$.prototype.writePackedInt32=$.prototype.ad,$.prototype.bd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.M(parseInt(l[y],10));lt(this,s)}},$.prototype.writePackedInt32String=$.prototype.bd,$.prototype.cd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.ua(l[y]);lt(this,s)}},$.prototype.writePackedInt64=$.prototype.cd,$.prototype.md=function(s,l,y,N){if(l!=null){s=pt(this,s);for(var ie=0;ie<l.length;ie++)this.a.A(y(l[ie]),N(l[ie]));lt(this,s)}},$.prototype.writePackedSplitFixed64=$.prototype.md,$.prototype.nd=function(s,l,y,N){if(l!=null){s=pt(this,s);for(var ie=0;ie<l.length;ie++)this.a.l(y(l[ie]),N(l[ie]));lt(this,s)}},$.prototype.writePackedSplitVarint64=$.prototype.nd,$.prototype.od=function(s,l,y,N){if(l!=null){s=pt(this,s);for(var ie=this.a,Pe=0;Pe<l.length;Pe++)we(y(l[Pe]),N(l[Pe]),function(De,bt){ie.l(De>>>0,bt>>>0)});lt(this,s)}},$.prototype.writePackedSplitZigzagVarint64=$.prototype.od,$.prototype.dd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++){var N=ze(l[y]);this.a.l(N.lo,N.hi)}lt(this,s)}},$.prototype.writePackedInt64String=$.prototype.dd,$.prototype.pd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.j(l[y]);lt(this,s)}},$.prototype.writePackedUint32=$.prototype.pd,$.prototype.qd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.j(parseInt(l[y],10));lt(this,s)}},$.prototype.writePackedUint32String=$.prototype.qd,$.prototype.rd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.va(l[y]);lt(this,s)}},$.prototype.writePackedUint64=$.prototype.rd,$.prototype.sd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++){var N=Fe(l[y]);this.a.l(N.lo,N.hi)}lt(this,s)}},$.prototype.writePackedUint64String=$.prototype.sd,$.prototype.hd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.wa(l[y]);lt(this,s)}},$.prototype.writePackedSint32=$.prototype.hd,$.prototype.jd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.xa(l[y]);lt(this,s)}},$.prototype.writePackedSint64=$.prototype.jd,$.prototype.kd=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.W(Wt(l[y]));lt(this,s)}},$.prototype.writePackedSint64String=$.prototype.kd,$.prototype.ld=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.W(l[y]);lt(this,s)}},$.prototype.writePackedSintHash64=$.prototype.ld,$.prototype.Wc=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(4*l.length),s=0;s<l.length;s++)this.a.s(l[s])},$.prototype.writePackedFixed32=$.prototype.Wc,$.prototype.Xc=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(8*l.length),s=0;s<l.length;s++)this.a.V(l[s])},$.prototype.writePackedFixed64=$.prototype.Xc,$.prototype.Yc=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(8*l.length),s=0;s<l.length;s++){var y=Fe(l[s]);this.a.A(y.lo,y.hi)}},$.prototype.writePackedFixed64String=$.prototype.Yc,$.prototype.ed=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(4*l.length),s=0;s<l.length;s++)this.a.S(l[s])},$.prototype.writePackedSfixed32=$.prototype.ed,$.prototype.fd=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(8*l.length),s=0;s<l.length;s++)this.a.T(l[s])},$.prototype.writePackedSfixed64=$.prototype.fd,$.prototype.gd=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(8*l.length),s=0;s<l.length;s++)this.a.ka(l[s])},$.prototype.writePackedSfixed64String=$.prototype.gd,$.prototype.$c=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(4*l.length),s=0;s<l.length;s++)this.a.L(l[s])},$.prototype.writePackedFloat=$.prototype.$c,$.prototype.Uc=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(8*l.length),s=0;s<l.length;s++)this.a.J(l[s])},$.prototype.writePackedDouble=$.prototype.Uc,$.prototype.Tc=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(l.length),s=0;s<l.length;s++)this.a.I(l[s])},$.prototype.writePackedBool=$.prototype.Tc,$.prototype.Vc=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.R(l[y]);lt(this,s)}},$.prototype.writePackedEnum=$.prototype.Vc,$.prototype.Zc=function(s,l){if(l!=null&&l.length)for(it(this,s,2),this.a.j(8*l.length),s=0;s<l.length;s++)this.a.K(l[s])},$.prototype.writePackedFixedHash64=$.prototype.Zc,$.prototype.td=function(s,l){if(l!=null&&l.length){s=pt(this,s);for(var y=0;y<l.length;y++)this.a.N(l[y]);lt(this,s)}},$.prototype.writePackedVarintHash64=$.prototype.td,x.debug=cr,x.Map=Je,x.Message=je,x.BinaryReader=ce,x.BinaryWriter=$,x.ExtensionFieldInfo=Xt,x.ExtensionFieldBinaryInfo=dr,x.exportSymbol=F,x.inherits=fe,x.object={extend:X},x.typeOf=K},36177:function(G,x,C){var H=C(55595),O=H,P=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof P<"u"&&P||typeof self<"u"&&self||function(){return this}.call(null)||Function("return this")();O.exportSymbol("proto.google.protobuf.Any",null,P),proto.google.protobuf.Any=function(m){H.Message.initialize(this,m,0,-1,null,null)},O.inherits(proto.google.protobuf.Any,H.Message),O.DEBUG&&!COMPILED&&(proto.google.protobuf.Any.displayName="proto.google.protobuf.Any"),H.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Any.prototype.toObject=function(m){return proto.google.protobuf.Any.toObject(m,this)},proto.google.protobuf.Any.toObject=function(m,o){var h,f={typeUrl:H.Message.getFieldWithDefault(o,1,""),value:o.getValue_asB64()};return m&&(f.$jspbMessageInstance=o),f}),proto.google.protobuf.Any.deserializeBinary=function(m){var o=new H.BinaryReader(m),h=new proto.google.protobuf.Any;return proto.google.protobuf.Any.deserializeBinaryFromReader(h,o)},proto.google.protobuf.Any.deserializeBinaryFromReader=function(m,o){for(;o.nextField()&&!o.isEndGroup();){var h=o.getFieldNumber();switch(h){case 1:var f=o.readString();m.setTypeUrl(f);break;case 2:var f=o.readBytes();m.setValue(f);break;default:o.skipField();break}}return m},proto.google.protobuf.Any.prototype.serializeBinary=function(){var m=new H.BinaryWriter;return proto.google.protobuf.Any.serializeBinaryToWriter(this,m),m.getResultBuffer()},proto.google.protobuf.Any.serializeBinaryToWriter=function(m,o){var h=void 0;h=m.getTypeUrl(),h.length>0&&o.writeString(1,h),h=m.getValue_asU8(),h.length>0&&o.writeBytes(2,h)},proto.google.protobuf.Any.prototype.getTypeUrl=function(){return H.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.Any.prototype.setTypeUrl=function(m){return H.Message.setProto3StringField(this,1,m)},proto.google.protobuf.Any.prototype.getValue=function(){return H.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.Any.prototype.getValue_asB64=function(){return H.Message.bytesAsB64(this.getValue())},proto.google.protobuf.Any.prototype.getValue_asU8=function(){return H.Message.bytesAsU8(this.getValue())},proto.google.protobuf.Any.prototype.setValue=function(m){return H.Message.setProto3BytesField(this,2,m)},O.object.extend(x,proto.google.protobuf),proto.google.protobuf.Any.prototype.getTypeName=function(){return this.getTypeUrl().split("/").pop()},proto.google.protobuf.Any.prototype.pack=function(m,o,h){h||(h="type.googleapis.com/"),h.substr(-1)!="/"?this.setTypeUrl(h+"/"+o):this.setTypeUrl(h+o),this.setValue(m)},proto.google.protobuf.Any.prototype.unpack=function(m,o){return this.getTypeName()==o?m(this.getValue_asU8()):null}},92882:function(G){"use strict";for(var x="qpzry9x8gf2tvdw0s3jn54khce6mua7l",C={},H=0;H<x.length;H++){var O=x.charAt(H);if(C[O]!==void 0)throw new TypeError(O+" is ambiguous");C[O]=H}function P(L){var F=L>>25;return(L&33554431)<<5^-(F>>0&1)&996825010^-(F>>1&1)&642813549^-(F>>2&1)&513874426^-(F>>3&1)&1027748829^-(F>>4&1)&705979059}function m(L){for(var F=1,fe=0;fe<L.length;++fe){var re=L.charCodeAt(fe);if(re<33||re>126)return"Invalid prefix ("+L+")";F=P(F)^re>>5}for(F=P(F),fe=0;fe<L.length;++fe){var X=L.charCodeAt(fe);F=P(F)^X&31}return F}function o(L,F,fe){if(fe=fe||90,L.length+7+F.length>fe)throw new TypeError("Exceeds length limit");L=L.toLowerCase();var re=m(L);if(typeof re=="string")throw new Error(re);for(var X=L+"1",j=0;j<F.length;++j){var J=F[j];if(J>>5!==0)throw new Error("Non 5-bit word");re=P(re)^J,X+=x.charAt(J)}for(j=0;j<6;++j)re=P(re);for(re^=1,j=0;j<6;++j){var oe=re>>(5-j)*5&31;X+=x.charAt(oe)}return X}function h(L,F){if(F=F||90,L.length<8)return L+" too short";if(L.length>F)return"Exceeds length limit";var fe=L.toLowerCase(),re=L.toUpperCase();if(L!==fe&&L!==re)return"Mixed-case string "+L;L=fe;var X=L.lastIndexOf("1");if(X===-1)return"No separator character for "+L;if(X===0)return"Missing prefix for "+L;var j=L.slice(0,X),J=L.slice(X+1);if(J.length<6)return"Data too short";var oe=m(j);if(typeof oe=="string")return oe;for(var Ce=[],se=0;se<J.length;++se){var ne=J.charAt(se),xe=C[ne];if(xe===void 0)return"Unknown character "+ne;oe=P(oe)^xe,!(se+6>=J.length)&&Ce.push(xe)}return oe!==1?"Invalid checksum for "+L:{prefix:j,words:Ce}}function f(){var L=h.apply(null,arguments);if(typeof L=="object")return L}function a(L){var F=h.apply(null,arguments);if(typeof F=="object")return F;throw new Error(F)}function t(L,F,fe,re){for(var X=0,j=0,J=(1<<fe)-1,oe=[],Ce=0;Ce<L.length;++Ce)for(X=X<<F|L[Ce],j+=F;j>=fe;)j-=fe,oe.push(X>>j&J);if(re)j>0&&oe.push(X<<fe-j&J);else{if(j>=F)return"Excess padding";if(X<<fe-j&J)return"Non-zero padding"}return oe}function r(L){var F=t(L,8,5,!0);if(Array.isArray(F))return F}function c(L){var F=t(L,8,5,!0);if(Array.isArray(F))return F;throw new Error(F)}function z(L){var F=t(L,5,8,!1);if(Array.isArray(F))return F}function K(L){var F=t(L,5,8,!1);if(Array.isArray(F))return F;throw new Error(F)}G.exports={decodeUnsafe:f,decode:a,encode:o,toWordsUnsafe:r,toWords:c,fromWordsUnsafe:z,fromWords:K}},43467:function(G,x,C){"use strict";C.r(x),C.d(x,{BaseContract:function(){return Pn},BigNumber:function(){return a.O$},Contract:function(){return $o},ContractFactory:function(){return Ho},FixedNumber:function(){return Mo.xs},Signer:function(){return N},VoidSigner:function(){return ie},Wallet:function(){return Ro},Wordlist:function(){return b},constants:function(){return O},errors:function(){return r.ErrorCode},ethers:function(){return h},getDefaultProvider:function(){return cs},logger:function(){return Ia},providers:function(){return P},utils:function(){return o},version:function(){return ls},wordlists:function(){return Re}});var H={};C.r(H),C.d(H,{decode:function(){return Ue},encode:function(){return se}});var O={};C.r(O),C.d(O,{AddressZero:function(){return xs},EtherSymbol:function(){return Va},HashZero:function(){return bs.R},MaxInt256:function(){return Mt},MaxUint256:function(){return wt},MinInt256:function(){return St},NegativeOne:function(){return we},One:function(){return Ze},Two:function(){return tt},WeiPerEther:function(){return ht},Zero:function(){return Xe}});var P={};C.r(P),C.d(P,{AlchemyProvider:function(){return ns},AlchemyWebSocketProvider:function(){return Xs},AnkrProvider:function(){return Qs},BaseProvider:function(){return hi},CloudflareProvider:function(){return ta},EtherscanProvider:function(){return ia},FallbackProvider:function(){return la},Formatter:function(){return gt},InfuraProvider:function(){return ss},InfuraWebSocketProvider:function(){return fa},IpcProvider:function(){return da},JsonRpcBatchProvider:function(){return Hc},JsonRpcProvider:function(){return Jo},JsonRpcSigner:function(){return rs},NodesmithProvider:function(){return pa},PocketProvider:function(){return ya},Provider:function(){return it},Resolver:function(){return Qi},StaticJsonRpcProvider:function(){return qs},UrlJsonRpcProvider:function(){return Eo},Web3Provider:function(){return xa},WebSocketProvider:function(){return yi},getDefaultProvider:function(){return cs},getNetwork:function(){return Ki},isCommunityResourcable:function(){return Ws},isCommunityResource:function(){return qi},showThrottleMessage:function(){return Nn}});var m={};C.r(m),C.d(m,{decode:function(){return Zi},encode:function(){return Ji}});var o={};C.r(o),C.d(o,{AbiCoder:function(){return eo},ConstructorFragment:function(){return ar},ErrorFragment:function(){return yr},EventFragment:function(){return je},FormatTypes:function(){return It},Fragment:function(){return dr},FunctionFragment:function(){return Jt},HDNode:function(){return he},Indexed:function(){return cr},Interface:function(){return be},LogDescription:function(){return Gr},Logger:function(){return r.Logger},ParamType:function(){return Bt},RLP:function(){return H},SigningKey:function(){return vo},SupportedAlgorithm:function(){return Or},TransactionDescription:function(){return Br},TransactionTypes:function(){return Bn},UnicodeNormalizationForm:function(){return nt.Uj},Utf8ErrorFuncs:function(){return nt.te},Utf8ErrorReason:function(){return nt.Uw},_TypedDataEncoder:function(){return Ar},_fetchData:function(){return Ns},_toEscapedUtf8String:function(){return nt.U$},accessListify:function(){return fo},arrayify:function(){return f.arrayify},base58:function(){return Ao},base64:function(){return m},checkProperties:function(){return t.checkProperties},checkResultErrors:function(){return K},commify:function(){return iu},computeAddress:function(){return qr},computeHmac:function(){return _},computePublicKey:function(){return Cn},concat:function(){return f.concat},deepCopy:function(){return t.deepCopy},defaultAbiCoder:function(){return Zr},defaultPath:function(){return ye},defineReadOnly:function(){return t.defineReadOnly},dnsEncode:function(){return ks},entropyToMnemonic:function(){return Ae},fetchJson:function(){return gn},formatBytes32String:function(){return wa.s},formatEther:function(){return su},formatUnits:function(){return Ea},getAccountPath:function(){return Ie},getAddress:function(){return Oe},getContractAddress:function(){return ke},getCreate2Address:function(){return dt},getIcapAddress:function(){return _e},getJsonWalletAddress:function(){return Sa},getStatic:function(){return t.getStatic},hashMessage:function(){return an},hexConcat:function(){return f.hexConcat},hexDataLength:function(){return f.hexDataLength},hexDataSlice:function(){return f.hexDataSlice},hexStripZeros:function(){return f.hexStripZeros},hexValue:function(){return f.hexValue},hexZeroPad:function(){return f.hexZeroPad},hexlify:function(){return f.hexlify},id:function(){return vt},isAddress:function(){return Ke},isBytes:function(){return f.isBytes},isBytesLike:function(){return f.isBytesLike},isHexString:function(){return f.isHexString},isValidMnemonic:function(){return ge},isValidName:function(){return yc},joinSignature:function(){return f.joinSignature},keccak256:function(){return re.keccak256},mnemonicToEntropy:function(){return me},mnemonicToSeed:function(){return de},namehash:function(){return kn},nameprep:function(){return ou.Ll},parseBytes32String:function(){return wa.F},parseEther:function(){return au},parseTransaction:function(){return sn},parseUnits:function(){return Ta},poll:function(){return Zo},randomBytes:function(){return Xr},recoverAddress:function(){return zo},recoverPublicKey:function(){return Uo},resolveProperties:function(){return t.resolveProperties},ripemd160:function(){return zt},serializeTransaction:function(){return nn},sha256:function(){return B},sha512:function(){return I},shallowCopy:function(){return t.shallowCopy},shuffled:function(){return sa},solidityKeccak256:function(){return tu},solidityPack:function(){return us},soliditySha256:function(){return ru},splitSignature:function(){return f.splitSignature},stripZeros:function(){return f.stripZeros},toUtf8Bytes:function(){return nt.Y0},toUtf8CodePoints:function(){return nt.XL},toUtf8String:function(){return nt.ZN},verifyMessage:function(){return ja},verifyTypedData:function(){return Ga},zeroPad:function(){return f.zeroPad}});var h={};C.r(h),C.d(h,{BaseContract:function(){return Pn},BigNumber:function(){return a.O$},Contract:function(){return $o},ContractFactory:function(){return Ho},FixedNumber:function(){return Mo.xs},Signer:function(){return N},VoidSigner:function(){return ie},Wallet:function(){return Ro},Wordlist:function(){return b},constants:function(){return O},errors:function(){return r.ErrorCode},getDefaultProvider:function(){return cs},logger:function(){return Ia},providers:function(){return P},utils:function(){return o},version:function(){return ls},wordlists:function(){return Re}});var f=C(93286),a=C(2593),t=C(53587),r=C(80711);const c="abi/5.7.0",z=new r.Logger(c);function K(u){const e=[],n=function(i,d){if(!!Array.isArray(d))for(let g in d){const p=i.slice();p.push(g);try{n(p,d[g])}catch(E){e.push({path:p,error:E})}}};return n([],u),e}class L{constructor(e,n,i,d){this.name=e,this.type=n,this.localName=i,this.dynamic=d}_throwError(e,n){z.throwArgumentError(e,this.localName,n)}}class F{constructor(e){(0,t.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,f.hexConcat)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData((0,f.concat)(e._data))}writeBytes(e){let n=(0,f.arrayify)(e);const i=n.length%this.wordSize;return i&&(n=(0,f.concat)([n,this._padding.slice(i)])),this._writeData(n)}_getValue(e){let n=(0,f.arrayify)(a.O$.from(e));return n.length>this.wordSize&&z.throwError("value out-of-bounds",r.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:n.length}),n.length%this.wordSize&&(n=(0,f.concat)([this._padding.slice(n.length%this.wordSize),n])),n}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,n=>{this._data[e]=this._getValue(n)}}}class fe{constructor(e,n,i,d){(0,t.defineReadOnly)(this,"_data",(0,f.arrayify)(e)),(0,t.defineReadOnly)(this,"wordSize",n||32),(0,t.defineReadOnly)(this,"_coerceFunc",i),(0,t.defineReadOnly)(this,"allowLoose",d),this._offset=0}get data(){return(0,f.hexlify)(this._data)}get consumed(){return this._offset}static coerce(e,n){let i=e.match("^u?int([0-9]+)$");return i&&parseInt(i[1])<=48&&(n=n.toNumber()),n}coerce(e,n){return this._coerceFunc?this._coerceFunc(e,n):fe.coerce(e,n)}_peekBytes(e,n,i){let d=Math.ceil(n/this.wordSize)*this.wordSize;return this._offset+d>this._data.length&&(this.allowLoose&&i&&this._offset+n<=this._data.length?d=n:z.throwError("data out-of-bounds",r.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+d})),this._data.slice(this._offset,this._offset+d)}subReader(e){return new fe(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,n){let i=this._peekBytes(0,e,!!n);return this._offset+=i.length,i.slice(0,e)}readValue(){return a.O$.from(this.readBytes(this.wordSize))}}var re=C(38197);const X="rlp/5.7.0",j=new r.Logger(X);function J(u){const e=[];for(;u;)e.unshift(u&255),u>>=8;return e}function oe(u,e,n){let i=0;for(let d=0;d<n;d++)i=i*256+u[e+d];return i}function Ce(u){if(Array.isArray(u)){let i=[];if(u.forEach(function(g){i=i.concat(Ce(g))}),i.length<=55)return i.unshift(192+i.length),i;const d=J(i.length);return d.unshift(247+d.length),d.concat(i)}(0,f.isBytesLike)(u)||j.throwArgumentError("RLP object must be BytesLike","object",u);const e=Array.prototype.slice.call((0,f.arrayify)(u));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const n=J(e.length);return n.unshift(183+n.length),n.concat(e)}function se(u){return(0,f.hexlify)(Ce(u))}function ne(u,e,n,i){const d=[];for(;n<e+1+i;){const g=xe(u,n);d.push(g.result),n+=g.consumed,n>e+1+i&&j.throwError("child data too short",r.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+i,result:d}}function xe(u,e){if(u.length===0&&j.throwError("data too short",r.Logger.errors.BUFFER_OVERRUN,{}),u[e]>=248){const n=u[e]-247;e+1+n>u.length&&j.throwError("data short segment too short",r.Logger.errors.BUFFER_OVERRUN,{});const i=oe(u,e+1,n);return e+1+n+i>u.length&&j.throwError("data long segment too short",r.Logger.errors.BUFFER_OVERRUN,{}),ne(u,e,e+1+n,n+i)}else if(u[e]>=192){const n=u[e]-192;return e+1+n>u.length&&j.throwError("data array too short",r.Logger.errors.BUFFER_OVERRUN,{}),ne(u,e,e+1,n)}else if(u[e]>=184){const n=u[e]-183;e+1+n>u.length&&j.throwError("data array too short",r.Logger.errors.BUFFER_OVERRUN,{});const i=oe(u,e+1,n);e+1+n+i>u.length&&j.throwError("data array too short",r.Logger.errors.BUFFER_OVERRUN,{});const d=(0,f.hexlify)(u.slice(e+1+n,e+1+n+i));return{consumed:1+n+i,result:d}}else if(u[e]>=128){const n=u[e]-128;e+1+n>u.length&&j.throwError("data too short",r.Logger.errors.BUFFER_OVERRUN,{});const i=(0,f.hexlify)(u.slice(e+1,e+1+n));return{consumed:1+n,result:i}}return{consumed:1,result:(0,f.hexlify)(u[e])}}function Ue(u){const e=(0,f.arrayify)(u),n=xe(e,0);return n.consumed!==e.length&&j.throwArgumentError("invalid rlp data","data",u),n.result}const ct="address/5.7.0",ft=new r.Logger(ct);function Je(u){(0,f.isHexString)(u,20)||ft.throwArgumentError("invalid address","address",u),u=u.toLowerCase();const e=u.substring(2).split(""),n=new Uint8Array(40);for(let d=0;d<40;d++)n[d]=e[d].charCodeAt(0);const i=(0,f.arrayify)((0,re.keccak256)(n));for(let d=0;d<40;d+=2)i[d>>1]>>4>=8&&(e[d]=e[d].toUpperCase()),(i[d>>1]&15)>=8&&(e[d+1]=e[d+1].toUpperCase());return"0x"+e.join("")}const Ot=9007199254740991;function Tt(u){return Math.log10?Math.log10(u):Math.log(u)/Math.LN10}const Ft={};for(let u=0;u<10;u++)Ft[String(u)]=String(u);for(let u=0;u<26;u++)Ft[String.fromCharCode(65+u)]=String(10+u);const Ne=Math.floor(Tt(Ot));function Ee(u){u=u.toUpperCase(),u=u.substring(4)+u.substring(0,2)+"00";let e=u.split("").map(i=>Ft[i]).join("");for(;e.length>=Ne;){let i=e.substring(0,Ne);e=parseInt(i,10)%97+e.substring(i.length)}let n=String(98-parseInt(e,10)%97);for(;n.length<2;)n="0"+n;return n}function Oe(u){let e=null;if(typeof u!="string"&&ft.throwArgumentError("invalid address","address",u),u.match(/^(0x)?[0-9a-fA-F]{40}$/))u.substring(0,2)!=="0x"&&(u="0x"+u),e=Je(u),u.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==u&&ft.throwArgumentError("bad address checksum","address",u);else if(u.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(u.substring(2,4)!==Ee(u)&&ft.throwArgumentError("bad icap checksum","address",u),e=(0,a.g$)(u.substring(4));e.length<40;)e="0"+e;e=Je("0x"+e)}else ft.throwArgumentError("invalid address","address",u);return e}function Ke(u){try{return Oe(u),!0}catch{}return!1}function _e(u){let e=(0,a.t2)(Oe(u).substring(2)).toUpperCase();for(;e.length<30;)e="0"+e;return"XE"+Ee("XE00"+e)+e}function ke(u){let e=null;try{e=Oe(u.from)}catch{ft.throwArgumentError("missing from address","transaction",u)}const n=(0,f.stripZeros)((0,f.arrayify)(a.O$.from(u.nonce).toHexString()));return Oe((0,f.hexDataSlice)((0,re.keccak256)(se([e,n])),12))}function dt(u,e,n){return(0,f.hexDataLength)(e)!==32&&ft.throwArgumentError("salt must be 32 bytes","salt",e),(0,f.hexDataLength)(n)!==32&&ft.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),Oe((0,f.hexDataSlice)((0,re.keccak256)((0,f.concat)(["0xff",Oe(u),e,n])),12))}var nt=C(44242);function vt(u){return(0,re.keccak256)((0,nt.Y0)(u))}class Et extends L{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,n){try{n=Oe(n)}catch(i){this._throwError(i.message,n)}return e.writeValue(n)}decode(e){return Oe((0,f.hexZeroPad)(e.readValue().toHexString(),20))}}class xt extends L{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,n){return this.coder.encode(e,n)}decode(e){return this.coder.decode(e)}}const ut=new r.Logger(c);function nr(u,e,n){let i=null;if(Array.isArray(n))i=n;else if(n&&typeof n=="object"){let R={};i=e.map(U=>{const Z=U.localName;return Z||ut.throwError("cannot encode object for signature with missing names",r.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:U,value:n}),R[Z]&&ut.throwError("cannot encode object for signature with duplicate names",r.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:U,value:n}),R[Z]=!0,n[Z]})}else ut.throwArgumentError("invalid tuple value","tuple",n);e.length!==i.length&&ut.throwArgumentError("types/value length mismatch","tuple",n);let d=new F(u.wordSize),g=new F(u.wordSize),p=[];e.forEach((R,U)=>{let Z=i[U];if(R.dynamic){let ue=g.length;R.encode(g,Z);let Me=d.writeUpdatableValue();p.push(Se=>{Me(Se+ue)})}else R.encode(d,Z)}),p.forEach(R=>{R(d.length)});let E=u.appendWriter(d);return E+=u.appendWriter(g),E}function tr(u,e){let n=[],i=u.subReader(0);e.forEach(g=>{let p=null;if(g.dynamic){let E=u.readValue(),R=i.subReader(E.toNumber());try{p=g.decode(R)}catch(U){if(U.code===r.Logger.errors.BUFFER_OVERRUN)throw U;p=U,p.baseType=g.name,p.name=g.localName,p.type=g.type}}else try{p=g.decode(u)}catch(E){if(E.code===r.Logger.errors.BUFFER_OVERRUN)throw E;p=E,p.baseType=g.name,p.name=g.localName,p.type=g.type}p!=null&&n.push(p)});const d=e.reduce((g,p)=>{const E=p.localName;return E&&(g[E]||(g[E]=0),g[E]++),g},{});e.forEach((g,p)=>{let E=g.localName;if(!E||d[E]!==1||(E==="length"&&(E="_length"),n[E]!=null))return;const R=n[p];R instanceof Error?Object.defineProperty(n,E,{enumerable:!0,get:()=>{throw R}}):n[E]=R});for(let g=0;g<n.length;g++){const p=n[g];p instanceof Error&&Object.defineProperty(n,g,{enumerable:!0,get:()=>{throw p}})}return Object.freeze(n)}class fr extends L{constructor(e,n,i){const d=e.type+"["+(n>=0?n:"")+"]",g=n===-1||e.dynamic;super("array",d,i,g),this.coder=e,this.length=n}defaultValue(){const e=this.coder.defaultValue(),n=[];for(let i=0;i<this.length;i++)n.push(e);return n}encode(e,n){Array.isArray(n)||this._throwError("expected array value",n);let i=this.length;i===-1&&(i=n.length,e.writeValue(n.length)),ut.checkArgumentCount(n.length,i,"coder array"+(this.localName?" "+this.localName:""));let d=[];for(let g=0;g<n.length;g++)d.push(this.coder);return nr(e,d,n)}decode(e){let n=this.length;n===-1&&(n=e.readValue().toNumber(),n*32>e._data.length&&ut.throwError("insufficient data length",r.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:n}));let i=[];for(let d=0;d<n;d++)i.push(new xt(this.coder));return e.coerce(this.name,tr(e,i))}}class Lr extends L{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,n){return e.writeValue(n?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class ur extends L{constructor(e,n){super(e,e,n,!0)}defaultValue(){return"0x"}encode(e,n){n=(0,f.arrayify)(n);let i=e.writeValue(n.length);return i+=e.writeBytes(n),i}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class rr extends ur{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,(0,f.hexlify)(super.decode(e)))}}class ae extends L{constructor(e,n){let i="bytes"+String(e);super(i,i,n,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(e,n){let i=(0,f.arrayify)(n);return i.length!==this.size&&this._throwError("incorrect data length",n),e.writeBytes(i)}decode(e){return e.coerce(this.name,(0,f.hexlify)(e.readBytes(this.size)))}}class ve extends L{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,n){return n!=null&&this._throwError("not null",n),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}const we=a.O$.from(-1),Xe=a.O$.from(0),Ze=a.O$.from(1),tt=a.O$.from(2),ht=a.O$.from("1000000000000000000"),wt=a.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),St=a.O$.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),Mt=a.O$.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class Vt extends L{constructor(e,n,i){const d=(n?"int":"uint")+e*8;super(d,d,i,!1),this.size=e,this.signed=n}defaultValue(){return 0}encode(e,n){let i=a.O$.from(n),d=wt.mask(e.wordSize*8);if(this.signed){let g=d.mask(this.size*8-1);(i.gt(g)||i.lt(g.add(Ze).mul(we)))&&this._throwError("value out-of-bounds",n)}else(i.lt(Xe)||i.gt(d.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return i=i.toTwos(this.size*8).mask(this.size*8),this.signed&&(i=i.fromTwos(this.size*8).toTwos(8*e.wordSize)),e.writeValue(i)}decode(e){let n=e.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),e.coerce(this.name,n)}}class Wt extends ur{constructor(e){super("string",e)}defaultValue(){return""}encode(e,n){return super.encode(e,(0,nt.Y0)(n))}decode(e){return(0,nt.ZN)(super.decode(e))}}class ir extends L{constructor(e,n){let i=!1;const d=[];e.forEach(p=>{p.dynamic&&(i=!0),d.push(p.type)});const g="tuple("+d.join(",")+")";super("tuple",g,n,i),this.coders=e}defaultValue(){const e=[];this.coders.forEach(i=>{e.push(i.defaultValue())});const n=this.coders.reduce((i,d)=>{const g=d.localName;return g&&(i[g]||(i[g]=0),i[g]++),i},{});return this.coders.forEach((i,d)=>{let g=i.localName;!g||n[g]!==1||(g==="length"&&(g="_length"),e[g]==null&&(e[g]=e[d]))}),Object.freeze(e)}encode(e,n){return nr(e,this.coders,n)}decode(e){return e.coerce(this.name,tr(e,this.coders))}}const Ct=new r.Logger(c),xr={};let lr={calldata:!0,memory:!0,storage:!0},Te={calldata:!0,memory:!0};function sr(u,e){if(u==="bytes"||u==="string"){if(lr[e])return!0}else if(u==="address"){if(e==="payable")return!0}else if((u.indexOf("[")>=0||u==="tuple")&&Te[e])return!0;return(lr[e]||e==="payable")&&Ct.throwArgumentError("invalid modifier","name",e),!1}function zr(u,e){let n=u;function i(E){Ct.throwArgumentError(`unexpected character at position ${E}`,"param",u)}u=u.replace(/\s/g," ");function d(E){let R={type:"",name:"",parent:E,state:{allowType:!0}};return e&&(R.indexed=!1),R}let g={type:"",name:"",state:{allowType:!0}},p=g;for(let E=0;E<u.length;E++){let R=u[E];switch(R){case"(":p.state.allowType&&p.type===""?p.type="tuple":p.state.allowParams||i(E),p.state.allowType=!1,p.type=Rr(p.type),p.components=[d(p)],p=p.components[0];break;case")":delete p.state,p.name==="indexed"&&(e||i(E),p.indexed=!0,p.name=""),sr(p.type,p.name)&&(p.name=""),p.type=Rr(p.type);let U=p;p=p.parent,p||i(E),delete U.parent,p.state.allowParams=!1,p.state.allowName=!0,p.state.allowArray=!0;break;case",":delete p.state,p.name==="indexed"&&(e||i(E),p.indexed=!0,p.name=""),sr(p.type,p.name)&&(p.name=""),p.type=Rr(p.type);let Z=d(p.parent);p.parent.components.push(Z),delete p.parent,p=Z;break;case" ":p.state.allowType&&p.type!==""&&(p.type=Rr(p.type),delete p.state.allowType,p.state.allowName=!0,p.state.allowParams=!0),p.state.allowName&&p.name!==""&&(p.name==="indexed"?(e||i(E),p.indexed&&i(E),p.indexed=!0,p.name=""):sr(p.type,p.name)?p.name="":p.state.allowName=!1);break;case"[":p.state.allowArray||i(E),p.type+=R,p.state.allowArray=!1,p.state.allowName=!1,p.state.readArray=!0;break;case"]":p.state.readArray||i(E),p.type+=R,p.state.readArray=!1,p.state.allowArray=!0,p.state.allowName=!0;break;default:p.state.allowType?(p.type+=R,p.state.allowParams=!0,p.state.allowArray=!0):p.state.allowName?(p.name+=R,delete p.state.allowArray):p.state.readArray?p.type+=R:i(E)}}return p.parent&&Ct.throwArgumentError("unexpected eof","param",u),delete g.state,p.name==="indexed"?(e||i(n.length-7),p.indexed&&i(n.length-7),p.indexed=!0,p.name=""):sr(p.type,p.name)&&(p.name=""),g.type=Rr(g.type),g}function ce(u,e){for(let n in e)(0,t.defineReadOnly)(u,n,e[n])}const It=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),Qr=new RegExp(/^(.*)\[([0-9]*)\]$/);class Bt{constructor(e,n){e!==xr&&Ct.throwError("use fromString",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),ce(this,n);let i=this.type.match(Qr);i?ce(this,{arrayLength:parseInt(i[2]||"-1"),arrayChildren:Bt.fromObject({type:i[1],components:this.components}),baseType:"array"}):ce(this,{arrayLength:null,arrayChildren:null,baseType:this.components!=null?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=It.sighash),It[e]||Ct.throwArgumentError("invalid format type","format",e),e===It.json){let i={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(i.indexed=this.indexed),this.components&&(i.components=this.components.map(d=>JSON.parse(d.format(e)))),JSON.stringify(i)}let n="";return this.baseType==="array"?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==It.sighash&&(n+=this.type),n+="("+this.components.map(i=>i.format(e)).join(e===It.full?", ":",")+")"):n+=this.type,e!==It.sighash&&(this.indexed===!0&&(n+=" indexed"),e===It.full&&this.name&&(n+=" "+this.name)),n}static from(e,n){return typeof e=="string"?Bt.fromString(e,n):Bt.fromObject(e)}static fromObject(e){return Bt.isParamType(e)?e:new Bt(xr,{name:e.name||null,type:Rr(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(Bt.fromObject):null})}static fromString(e,n){function i(d){return Bt.fromObject({name:d.name,type:d.type,indexed:d.indexed,components:d.components})}return i(zr(e,!!n))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function Xt(u,e){return Cr(u).map(n=>Bt.fromString(n,e))}class dr{constructor(e,n){e!==xr&&Ct.throwError("use a static from method",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),ce(this,n),this._isFragment=!0,Object.freeze(this)}static from(e){return dr.isFragment(e)?e:typeof e=="string"?dr.fromString(e):dr.fromObject(e)}static fromObject(e){if(dr.isFragment(e))return e;switch(e.type){case"function":return Jt.fromObject(e);case"event":return je.fromObject(e);case"constructor":return ar.fromObject(e);case"error":return yr.fromObject(e);case"fallback":case"receive":return null}return Ct.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return e=e.replace(/\s/g," "),e=e.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),e=e.trim(),e.split(" ")[0]==="event"?je.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?Jt.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?ar.fromString(e.trim()):e.split(" ")[0]==="error"?yr.fromString(e.substring(5).trim()):Ct.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class je extends dr{format(e){if(e||(e=It.sighash),It[e]||Ct.throwArgumentError("invalid format type","format",e),e===It.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(i=>JSON.parse(i.format(e)))});let n="";return e!==It.sighash&&(n+="event "),n+=this.name+"("+this.inputs.map(i=>i.format(e)).join(e===It.full?", ":",")+") ",e!==It.sighash&&this.anonymous&&(n+="anonymous "),n.trim()}static from(e){return typeof e=="string"?je.fromString(e):je.fromObject(e)}static fromObject(e){if(je.isEventFragment(e))return e;e.type!=="event"&&Ct.throwArgumentError("invalid event object","value",e);const n={name:jr(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(Bt.fromObject):[],type:"event"};return new je(xr,n)}static fromString(e){let n=e.match(Dr);n||Ct.throwArgumentError("invalid event string","value",e);let i=!1;return n[3].split(" ").forEach(d=>{switch(d.trim()){case"anonymous":i=!0;break;case"":break;default:Ct.warn("unknown modifier: "+d)}}),je.fromObject({name:n[1].trim(),anonymous:i,inputs:Xt(n[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function gr(u,e){e.gas=null;let n=u.split("@");return n.length!==1?(n.length>2&&Ct.throwArgumentError("invalid human-readable ABI signature","value",u),n[1].match(/^[0-9]+$/)||Ct.throwArgumentError("invalid human-readable ABI signature gas","value",u),e.gas=a.O$.from(n[1]),n[0]):u}function Qt(u,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",u.split(" ").forEach(n=>{switch(n.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+n)}})}function $t(u){let e={constant:!1,payable:!0,stateMutability:"payable"};return u.stateMutability!=null?(e.stateMutability=u.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",u.constant!=null&&!!u.constant!==e.constant&&Ct.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",u),e.payable=e.stateMutability==="payable",u.payable!=null&&!!u.payable!==e.payable&&Ct.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",u)):u.payable!=null?(e.payable=!!u.payable,u.constant==null&&!e.payable&&u.type!=="constructor"&&Ct.throwArgumentError("unable to determine stateMutability","value",u),e.constant=!!u.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&Ct.throwArgumentError("cannot have constant payable function","value",u)):u.constant!=null?(e.constant=!!u.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):u.type!=="constructor"&&Ct.throwArgumentError("unable to determine stateMutability","value",u),e}class ar extends dr{format(e){if(e||(e=It.sighash),It[e]||Ct.throwArgumentError("invalid format type","format",e),e===It.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(i=>JSON.parse(i.format(e)))});e===It.sighash&&Ct.throwError("cannot format a constructor for sighash",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let n="constructor("+this.inputs.map(i=>i.format(e)).join(e===It.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()}static from(e){return typeof e=="string"?ar.fromString(e):ar.fromObject(e)}static fromObject(e){if(ar.isConstructorFragment(e))return e;e.type!=="constructor"&&Ct.throwArgumentError("invalid constructor object","value",e);let n=$t(e);n.constant&&Ct.throwArgumentError("constructor cannot be constant","value",e);const i={name:null,type:e.type,inputs:e.inputs?e.inputs.map(Bt.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?a.O$.from(e.gas):null};return new ar(xr,i)}static fromString(e){let n={type:"constructor"};e=gr(e,n);let i=e.match(Dr);return(!i||i[1].trim()!=="constructor")&&Ct.throwArgumentError("invalid constructor string","value",e),n.inputs=Xt(i[2].trim(),!1),Qt(i[3].trim(),n),ar.fromObject(n)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class Jt extends ar{format(e){if(e||(e=It.sighash),It[e]||Ct.throwArgumentError("invalid format type","format",e),e===It.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(i=>JSON.parse(i.format(e))),outputs:this.outputs.map(i=>JSON.parse(i.format(e)))});let n="";return e!==It.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(i=>i.format(e)).join(e===It.full?", ":",")+") ",e!==It.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(i=>i.format(e)).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()}static from(e){return typeof e=="string"?Jt.fromString(e):Jt.fromObject(e)}static fromObject(e){if(Jt.isFunctionFragment(e))return e;e.type!=="function"&&Ct.throwArgumentError("invalid function object","value",e);let n=$t(e);const i={type:e.type,name:jr(e.name),constant:n.constant,inputs:e.inputs?e.inputs.map(Bt.fromObject):[],outputs:e.outputs?e.outputs.map(Bt.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?a.O$.from(e.gas):null};return new Jt(xr,i)}static fromString(e){let n={type:"function"};e=gr(e,n);let i=e.split(" returns ");i.length>2&&Ct.throwArgumentError("invalid function string","value",e);let d=i[0].match(Dr);if(d||Ct.throwArgumentError("invalid function signature","value",e),n.name=d[1].trim(),n.name&&jr(n.name),n.inputs=Xt(d[2],!1),Qt(d[3].trim(),n),i.length>1){let g=i[1].match(Dr);(g[1].trim()!=""||g[3].trim()!="")&&Ct.throwArgumentError("unexpected tokens","value",e),n.outputs=Xt(g[2],!1)}else n.outputs=[];return Jt.fromObject(n)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function Ht(u){const e=u.format();return(e==="Error(string)"||e==="Panic(uint256)")&&Ct.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",u),u}class yr extends dr{format(e){if(e||(e=It.sighash),It[e]||Ct.throwArgumentError("invalid format type","format",e),e===It.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(i=>JSON.parse(i.format(e)))});let n="";return e!==It.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(i=>i.format(e)).join(e===It.full?", ":",")+") ",n.trim()}static from(e){return typeof e=="string"?yr.fromString(e):yr.fromObject(e)}static fromObject(e){if(yr.isErrorFragment(e))return e;e.type!=="error"&&Ct.throwArgumentError("invalid error object","value",e);const n={type:e.type,name:jr(e.name),inputs:e.inputs?e.inputs.map(Bt.fromObject):[]};return Ht(new yr(xr,n))}static fromString(e){let n={type:"error"},i=e.match(Dr);return i||Ct.throwArgumentError("invalid error signature","value",e),n.name=i[1].trim(),n.name&&jr(n.name),n.inputs=Xt(i[2],!1),Ht(yr.fromObject(n))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function Rr(u){return u.match(/^uint($|[^1-9])/)?u="uint256"+u.substring(4):u.match(/^int($|[^1-9])/)&&(u="int256"+u.substring(3)),u}const ro=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function jr(u){return(!u||!u.match(ro))&&Ct.throwArgumentError(`invalid identifier "${u}"`,"value",u),u}const Dr=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function Cr(u){u=u.trim();let e=[],n="",i=0;for(let d=0;d<u.length;d++){let g=u[d];g===","&&i===0?(e.push(n),n=""):(n+=g,g==="("?i++:g===")"&&(i--,i===-1&&Ct.throwArgumentError("unbalanced parenthesis","value",u)))}return n&&e.push(n),e}const hr=new r.Logger(c),so=new RegExp(/^bytes([0-9]*)$/),oo=new RegExp(/^(u?int)([0-9]*)$/);class eo{constructor(e){(0,t.defineReadOnly)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new Et(e.name);case"bool":return new Lr(e.name);case"string":return new Wt(e.name);case"bytes":return new rr(e.name);case"array":return new fr(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new ir((e.components||[]).map(i=>this._getCoder(i)),e.name);case"":return new ve(e.name)}let n=e.type.match(oo);if(n){let i=parseInt(n[2]||"256");return(i===0||i>256||i%8!==0)&&hr.throwArgumentError("invalid "+n[1]+" bit length","param",e),new Vt(i/8,n[1]==="int",e.name)}if(n=e.type.match(so),n){let i=parseInt(n[1]);return(i===0||i>32)&&hr.throwArgumentError("invalid bytes length","param",e),new ae(i,e.name)}return hr.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,n){return new fe(e,this._getWordSize(),this.coerceFunc,n)}_getWriter(){return new F(this._getWordSize())}getDefaultValue(e){const n=e.map(d=>this._getCoder(Bt.from(d)));return new ir(n,"_").defaultValue()}encode(e,n){e.length!==n.length&&hr.throwError("types/values length mismatch",r.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:n.length},value:{types:e,values:n}});const i=e.map(p=>this._getCoder(Bt.from(p))),d=new ir(i,"_"),g=this._getWriter();return d.encode(g,n),g.data}decode(e,n,i){const d=e.map(p=>this._getCoder(Bt.from(p)));return new ir(d,"_").decode(this._getReader((0,f.arrayify)(n),i))}}const Zr=new eo,jt=new r.Logger(c);class Gr extends t.Description{}class Br extends t.Description{}class to extends t.Description{}class cr extends t.Description{static isIndexed(e){return!!(e&&e._isIndexed)}}const He={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function D(u,e){const n=new Error(`deferred error during ABI decoding triggered accessing ${u}`);return n.error=e,n}class be{constructor(e){let n=[];typeof e=="string"?n=JSON.parse(e):n=e,(0,t.defineReadOnly)(this,"fragments",n.map(i=>dr.from(i)).filter(i=>i!=null)),(0,t.defineReadOnly)(this,"_abiCoder",(0,t.getStatic)(new.target,"getAbiCoder")()),(0,t.defineReadOnly)(this,"functions",{}),(0,t.defineReadOnly)(this,"errors",{}),(0,t.defineReadOnly)(this,"events",{}),(0,t.defineReadOnly)(this,"structs",{}),this.fragments.forEach(i=>{let d=null;switch(i.type){case"constructor":if(this.deploy){jt.warn("duplicate definition - constructor");return}(0,t.defineReadOnly)(this,"deploy",i);return;case"function":d=this.functions;break;case"event":d=this.events;break;case"error":d=this.errors;break;default:return}let g=i.format();if(d[g]){jt.warn("duplicate definition - "+g);return}d[g]=i}),this.deploy||(0,t.defineReadOnly)(this,"deploy",ar.from({payable:!1,type:"constructor"})),(0,t.defineReadOnly)(this,"_isInterface",!0)}format(e){e||(e=It.full),e===It.sighash&&jt.throwArgumentError("interface does not support formatting sighash","format",e);const n=this.fragments.map(i=>i.format(e));return e===It.json?JSON.stringify(n.map(i=>JSON.parse(i))):n}static getAbiCoder(){return Zr}static getAddress(e){return Oe(e)}static getSighash(e){return(0,f.hexDataSlice)(vt(e.format()),0,4)}static getEventTopic(e){return vt(e.format())}getFunction(e){if((0,f.isHexString)(e)){for(const i in this.functions)if(e===this.getSighash(i))return this.functions[i];jt.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const i=e.trim(),d=Object.keys(this.functions).filter(g=>g.split("(")[0]===i);return d.length===0?jt.throwArgumentError("no matching function","name",i):d.length>1&&jt.throwArgumentError("multiple matching functions","name",i),this.functions[d[0]]}const n=this.functions[Jt.fromString(e).format()];return n||jt.throwArgumentError("no matching function","signature",e),n}getEvent(e){if((0,f.isHexString)(e)){const i=e.toLowerCase();for(const d in this.events)if(i===this.getEventTopic(d))return this.events[d];jt.throwArgumentError("no matching event","topichash",i)}if(e.indexOf("(")===-1){const i=e.trim(),d=Object.keys(this.events).filter(g=>g.split("(")[0]===i);return d.length===0?jt.throwArgumentError("no matching event","name",i):d.length>1&&jt.throwArgumentError("multiple matching events","name",i),this.events[d[0]]}const n=this.events[je.fromString(e).format()];return n||jt.throwArgumentError("no matching event","signature",e),n}getError(e){if((0,f.isHexString)(e)){const i=(0,t.getStatic)(this.constructor,"getSighash");for(const d in this.errors){const g=this.errors[d];if(e===i(g))return this.errors[d]}jt.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const i=e.trim(),d=Object.keys(this.errors).filter(g=>g.split("(")[0]===i);return d.length===0?jt.throwArgumentError("no matching error","name",i):d.length>1&&jt.throwArgumentError("multiple matching errors","name",i),this.errors[d[0]]}const n=this.errors[Jt.fromString(e).format()];return n||jt.throwArgumentError("no matching error","signature",e),n}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(n){try{e=this.getError(e)}catch{throw n}}return(0,t.getStatic)(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),(0,t.getStatic)(this.constructor,"getEventTopic")(e)}_decodeParams(e,n){return this._abiCoder.decode(e,n)}_encodeParams(e,n){return this._abiCoder.encode(e,n)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,n){typeof e=="string"&&(e=this.getError(e));const i=(0,f.arrayify)(n);return(0,f.hexlify)(i.slice(0,4))!==this.getSighash(e)&&jt.throwArgumentError(`data signature does not match error ${e.name}.`,"data",(0,f.hexlify)(i)),this._decodeParams(e.inputs,i.slice(4))}encodeErrorResult(e,n){return typeof e=="string"&&(e=this.getError(e)),(0,f.hexlify)((0,f.concat)([this.getSighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionData(e,n){typeof e=="string"&&(e=this.getFunction(e));const i=(0,f.arrayify)(n);return(0,f.hexlify)(i.slice(0,4))!==this.getSighash(e)&&jt.throwArgumentError(`data signature does not match function ${e.name}.`,"data",(0,f.hexlify)(i)),this._decodeParams(e.inputs,i.slice(4))}encodeFunctionData(e,n){return typeof e=="string"&&(e=this.getFunction(e)),(0,f.hexlify)((0,f.concat)([this.getSighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionResult(e,n){typeof e=="string"&&(e=this.getFunction(e));let i=(0,f.arrayify)(n),d=null,g="",p=null,E=null,R=null;switch(i.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,i)}catch{}break;case 4:{const U=(0,f.hexlify)(i.slice(0,4)),Z=He[U];if(Z)p=this._abiCoder.decode(Z.inputs,i.slice(4)),E=Z.name,R=Z.signature,Z.reason&&(d=p[0]),E==="Error"?g=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(p[0])}`:E==="Panic"&&(g=`; VM Exception while processing transaction: reverted with panic code ${p[0]}`);else try{const ue=this.getError(U);p=this._abiCoder.decode(ue.inputs,i.slice(4)),E=ue.name,R=ue.format()}catch{}break}}return jt.throwError("call revert exception"+g,r.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,f.hexlify)(n),errorArgs:p,errorName:E,errorSignature:R,reason:d})}encodeFunctionResult(e,n){return typeof e=="string"&&(e=this.getFunction(e)),(0,f.hexlify)(this._abiCoder.encode(e.outputs,n||[]))}encodeFilterTopics(e,n){typeof e=="string"&&(e=this.getEvent(e)),n.length>e.inputs.length&&jt.throwError("too many arguments for "+e.format(),r.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:n});let i=[];e.anonymous||i.push(this.getEventTopic(e));const d=(g,p)=>g.type==="string"?vt(p):g.type==="bytes"?(0,re.keccak256)((0,f.hexlify)(p)):(g.type==="bool"&&typeof p=="boolean"&&(p=p?"0x01":"0x00"),g.type.match(/^u?int/)&&(p=a.O$.from(p).toHexString()),g.type==="address"&&this._abiCoder.encode(["address"],[p]),(0,f.hexZeroPad)((0,f.hexlify)(p),32));for(n.forEach((g,p)=>{let E=e.inputs[p];if(!E.indexed){g!=null&&jt.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+E.name,g);return}g==null?i.push(null):E.baseType==="array"||E.baseType==="tuple"?jt.throwArgumentError("filtering with tuples or arrays not supported","contract."+E.name,g):Array.isArray(g)?i.push(g.map(R=>d(E,R))):i.push(d(E,g))});i.length&&i[i.length-1]===null;)i.pop();return i}encodeEventLog(e,n){typeof e=="string"&&(e=this.getEvent(e));const i=[],d=[],g=[];return e.anonymous||i.push(this.getEventTopic(e)),n.length!==e.inputs.length&&jt.throwArgumentError("event arguments/values mismatch","values",n),e.inputs.forEach((p,E)=>{const R=n[E];if(p.indexed)if(p.type==="string")i.push(vt(R));else if(p.type==="bytes")i.push((0,re.keccak256)(R));else{if(p.baseType==="tuple"||p.baseType==="array")throw new Error("not implemented");i.push(this._abiCoder.encode([p.type],[R]))}else d.push(p),g.push(R)}),{data:this._abiCoder.encode(d,g),topics:i}}decodeEventLog(e,n,i){if(typeof e=="string"&&(e=this.getEvent(e)),i!=null&&!e.anonymous){let Me=this.getEventTopic(e);(!(0,f.isHexString)(i[0],32)||i[0].toLowerCase()!==Me)&&jt.throwError("fragment/topic mismatch",r.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:Me,value:i[0]}),i=i.slice(1)}let d=[],g=[],p=[];e.inputs.forEach((Me,Se)=>{Me.indexed?Me.type==="string"||Me.type==="bytes"||Me.baseType==="tuple"||Me.baseType==="array"?(d.push(Bt.fromObject({type:"bytes32",name:Me.name})),p.push(!0)):(d.push(Me),p.push(!1)):(g.push(Me),p.push(!1))});let E=i!=null?this._abiCoder.decode(d,(0,f.concat)(i)):null,R=this._abiCoder.decode(g,n,!0),U=[],Z=0,ue=0;e.inputs.forEach((Me,Se)=>{if(Me.indexed)if(E==null)U[Se]=new cr({_isIndexed:!0,hash:null});else if(p[Se])U[Se]=new cr({_isIndexed:!0,hash:E[ue++]});else try{U[Se]=E[ue++]}catch(Le){U[Se]=Le}else try{U[Se]=R[Z++]}catch(Le){U[Se]=Le}if(Me.name&&U[Me.name]==null){const Le=U[Se];Le instanceof Error?Object.defineProperty(U,Me.name,{enumerable:!0,get:()=>{throw D(`property ${JSON.stringify(Me.name)}`,Le)}}):U[Me.name]=Le}});for(let Me=0;Me<U.length;Me++){const Se=U[Me];Se instanceof Error&&Object.defineProperty(U,Me,{enumerable:!0,get:()=>{throw D(`index ${Me}`,Se)}})}return Object.freeze(U)}parseTransaction(e){let n=this.getFunction(e.data.substring(0,10).toLowerCase());return n?new Br({args:this._abiCoder.decode(n.inputs,"0x"+e.data.substring(10)),functionFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n),value:a.O$.from(e.value||"0")}):null}parseLog(e){let n=this.getEvent(e.topics[0]);return!n||n.anonymous?null:new Gr({eventFragment:n,name:n.name,signature:n.format(),topic:this.getEventTopic(n),args:this.decodeEventLog(n,e.data,e.topics)})}parseError(e){const n=(0,f.hexlify)(e);let i=this.getError(n.substring(0,10).toLowerCase());return i?new to({args:this._abiCoder.decode(i.inputs,"0x"+n.substring(10)),errorFragment:i,name:i.name,signature:i.format(),sighash:this.getSighash(i)}):null}static isInterface(e){return!!(e&&e._isInterface)}}const Fe="abstract-provider/5.7.0";var Ge=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const ze=new r.Logger(Fe);class $ extends t.Description{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class ot extends null{constructor(e,n){isHexString(e,32)||ze.throwArgumentError("invalid blockHash","blockHash",e),super({_isForkEvent:!0,_isBlockForkEvent:!0,expiry:n||0,blockHash:e})}}class pt extends null{constructor(e,n){isHexString(e,32)||ze.throwArgumentError("invalid transaction hash","hash",e),super({_isForkEvent:!0,_isTransactionForkEvent:!0,expiry:n||0,hash:e})}}class lt extends null{constructor(e,n,i){isHexString(e,32)||ze.throwArgumentError("invalid transaction hash","beforeHash",e),isHexString(n,32)||ze.throwArgumentError("invalid transaction hash","afterHash",n),super({_isForkEvent:!0,_isTransactionOrderForkEvent:!0,expiry:i||0,beforeHash:e,afterHash:n})}}class it{constructor(){ze.checkAbstract(new.target,it),(0,t.defineReadOnly)(this,"_isProvider",!0)}getFeeData(){return Ge(this,void 0,void 0,function*(){const{block:e,gasPrice:n}=yield(0,t.resolveProperties)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(p=>null)});let i=null,d=null,g=null;return e&&e.baseFeePerGas&&(i=e.baseFeePerGas,g=a.O$.from("1500000000"),d=e.baseFeePerGas.mul(2).add(g)),{lastBaseFeePerGas:i,maxFeePerGas:d,maxPriorityFeePerGas:g,gasPrice:n}})}addListener(e,n){return this.on(e,n)}removeListener(e,n){return this.off(e,n)}static isProvider(e){return!!(e&&e._isProvider)}}const Er="abstract-signer/5.7.0";var qt=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const s=new r.Logger(Er),l=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],y=[r.Logger.errors.INSUFFICIENT_FUNDS,r.Logger.errors.NONCE_EXPIRED,r.Logger.errors.REPLACEMENT_UNDERPRICED];class N{constructor(){s.checkAbstract(new.target,N),(0,t.defineReadOnly)(this,"_isSigner",!0)}getBalance(e){return qt(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return qt(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return qt(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const n=yield(0,t.resolveProperties)(this.checkTransaction(e));return yield this.provider.estimateGas(n)})}call(e,n){return qt(this,void 0,void 0,function*(){this._checkProvider("call");const i=yield(0,t.resolveProperties)(this.checkTransaction(e));return yield this.provider.call(i,n)})}sendTransaction(e){return qt(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const n=yield this.populateTransaction(e),i=yield this.signTransaction(n);return yield this.provider.sendTransaction(i)})}getChainId(){return qt(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return qt(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return qt(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return qt(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const i in e)l.indexOf(i)===-1&&s.throwArgumentError("invalid transaction key: "+i,"transaction",e);const n=(0,t.shallowCopy)(e);return n.from==null?n.from=this.getAddress():n.from=Promise.all([Promise.resolve(n.from),this.getAddress()]).then(i=>(i[0].toLowerCase()!==i[1].toLowerCase()&&s.throwArgumentError("from address mismatch","transaction",e),i[0])),n}populateTransaction(e){return qt(this,void 0,void 0,function*(){const n=yield(0,t.resolveProperties)(this.checkTransaction(e));n.to!=null&&(n.to=Promise.resolve(n.to).then(d=>qt(this,void 0,void 0,function*(){if(d==null)return null;const g=yield this.resolveName(d);return g==null&&s.throwArgumentError("provided ENS name resolves to null","tx.to",d),g})),n.to.catch(d=>{}));const i=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||i)?s.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(n.type===0||n.type===1)&&i&&s.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1)n.gasPrice==null&&(n.gasPrice=this.getGasPrice());else{const d=yield this.getFeeData();if(n.type==null)if(d.maxFeePerGas!=null&&d.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const g=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=g,n.maxPriorityFeePerGas=g}else n.maxFeePerGas==null&&(n.maxFeePerGas=d.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=d.maxPriorityFeePerGas);else d.gasPrice!=null?(i&&s.throwError("network does not support EIP-1559",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=d.gasPrice),n.type=0):s.throwError("failed to get consistent fee data",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else n.type===2&&(n.maxFeePerGas==null&&(n.maxFeePerGas=d.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=d.maxPriorityFeePerGas))}return n.nonce==null&&(n.nonce=this.getTransactionCount("pending")),n.gasLimit==null&&(n.gasLimit=this.estimateGas(n).catch(d=>{if(y.indexOf(d.code)>=0)throw d;return s.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:d,tx:n})})),n.chainId==null?n.chainId=this.getChainId():n.chainId=Promise.all([Promise.resolve(n.chainId),this.getChainId()]).then(d=>(d[1]!==0&&d[0]!==d[1]&&s.throwArgumentError("chainId address mismatch","transaction",e),d[0])),yield(0,t.resolveProperties)(n)})}_checkProvider(e){this.provider||s.throwError("missing provider",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class ie extends N{constructor(e,n){super(),(0,t.defineReadOnly)(this,"address",e),(0,t.defineReadOnly)(this,"provider",n||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,n){return Promise.resolve().then(()=>{s.throwError(e,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:n})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,n,i){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new ie(this.address,e)}}var Pe=C(13550),De=C.n(Pe),bt=C(33715),Rt=C.n(bt),ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof C.g<"u"?C.g:typeof self<"u"?self:{};function Io(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function yo(u,e,n){return n={path:e,exports:{},require:function(i,d){return No(i,d==null?n.path:d)}},u(n,n.exports),n.exports}function Bi(u){return u&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function ds(u){return u&&Object.prototype.hasOwnProperty.call(u,"default")&&Object.keys(u).length===1?u.default:u}function fs(u){if(u.__esModule)return u;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(u).forEach(function(n){var i=Object.getOwnPropertyDescriptor(u,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return u[n]}})}),e}function No(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Yo=Do;function Do(u,e){if(!u)throw new Error(e||"Assertion failed")}Do.equal=function(e,n,i){if(e!=n)throw new Error(i||"Assertion failed: "+e+" != "+n)};var Vr=yo(function(u,e){"use strict";var n=e;function i(p,E){if(Array.isArray(p))return p.slice();if(!p)return[];var R=[];if(typeof p!="string"){for(var U=0;U<p.length;U++)R[U]=p[U]|0;return R}if(E==="hex"){p=p.replace(/[^a-z0-9]+/ig,""),p.length%2!==0&&(p="0"+p);for(var U=0;U<p.length;U+=2)R.push(parseInt(p[U]+p[U+1],16))}else for(var U=0;U<p.length;U++){var Z=p.charCodeAt(U),ue=Z>>8,Me=Z&255;ue?R.push(ue,Me):R.push(Me)}return R}n.toArray=i;function d(p){return p.length===1?"0"+p:p}n.zero2=d;function g(p){for(var E="",R=0;R<p.length;R++)E+=d(p[R].toString(16));return E}n.toHex=g,n.encode=function(E,R){return R==="hex"?g(E):E}}),kr=yo(function(u,e){"use strict";var n=e;n.assert=Yo,n.toArray=Vr.toArray,n.zero2=Vr.zero2,n.toHex=Vr.toHex,n.encode=Vr.encode;function i(R,U,Z){var ue=new Array(Math.max(R.bitLength(),Z)+1);ue.fill(0);for(var Me=1<<U+1,Se=R.clone(),Le=0;Le<ue.length;Le++){var Ve,at=Se.andln(Me-1);Se.isOdd()?(at>(Me>>1)-1?Ve=(Me>>1)-at:Ve=at,Se.isubn(Ve)):Ve=0,ue[Le]=Ve,Se.iushrn(1)}return ue}n.getNAF=i;function d(R,U){var Z=[[],[]];R=R.clone(),U=U.clone();for(var ue=0,Me=0,Se;R.cmpn(-ue)>0||U.cmpn(-Me)>0;){var Le=R.andln(3)+ue&3,Ve=U.andln(3)+Me&3;Le===3&&(Le=-1),Ve===3&&(Ve=-1);var at;(Le&1)===0?at=0:(Se=R.andln(7)+ue&7,(Se===3||Se===5)&&Ve===2?at=-Le:at=Le),Z[0].push(at);var et;(Ve&1)===0?et=0:(Se=U.andln(7)+Me&7,(Se===3||Se===5)&&Le===2?et=-Ve:et=Ve),Z[1].push(et),2*ue===at+1&&(ue=1-ue),2*Me===et+1&&(Me=1-Me),R.iushrn(1),U.iushrn(1)}return Z}n.getJSF=d;function g(R,U,Z){var ue="_"+U;R.prototype[U]=function(){return this[ue]!==void 0?this[ue]:this[ue]=Z.call(this)}}n.cachedProperty=g;function p(R){return typeof R=="string"?n.toArray(R,"hex"):R}n.parseBytes=p;function E(R){return new(De())(R,"hex","le")}n.intFromLE=E}),So=kr.getNAF,Ei=kr.getJSF,Xo=kr.assert;function no(u,e){this.type=u,this.p=new(De())(e.p,16),this.red=e.prime?De().red(e.prime):De().mont(this.p),this.zero=new(De())(0).toRed(this.red),this.one=new(De())(1).toRed(this.red),this.two=new(De())(2).toRed(this.red),this.n=e.n&&new(De())(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var co=no;no.prototype.point=function(){throw new Error("Not implemented")},no.prototype.validate=function(){throw new Error("Not implemented")},no.prototype._fixedNafMul=function(e,n){Xo(e.precomputed);var i=e._getDoubles(),d=So(n,1,this._bitLength),g=(1<<i.step+1)-(i.step%2===0?2:1);g/=3;var p=[],E,R;for(E=0;E<d.length;E+=i.step){R=0;for(var U=E+i.step-1;U>=E;U--)R=(R<<1)+d[U];p.push(R)}for(var Z=this.jpoint(null,null,null),ue=this.jpoint(null,null,null),Me=g;Me>0;Me--){for(E=0;E<p.length;E++)R=p[E],R===Me?ue=ue.mixedAdd(i.points[E]):R===-Me&&(ue=ue.mixedAdd(i.points[E].neg()));Z=Z.add(ue)}return Z.toP()},no.prototype._wnafMul=function(e,n){var i=4,d=e._getNAFPoints(i);i=d.wnd;for(var g=d.points,p=So(n,i,this._bitLength),E=this.jpoint(null,null,null),R=p.length-1;R>=0;R--){for(var U=0;R>=0&&p[R]===0;R--)U++;if(R>=0&&U++,E=E.dblp(U),R<0)break;var Z=p[R];Xo(Z!==0),e.type==="affine"?Z>0?E=E.mixedAdd(g[Z-1>>1]):E=E.mixedAdd(g[-Z-1>>1].neg()):Z>0?E=E.add(g[Z-1>>1]):E=E.add(g[-Z-1>>1].neg())}return e.type==="affine"?E.toP():E},no.prototype._wnafMulAdd=function(e,n,i,d,g){var p=this._wnafT1,E=this._wnafT2,R=this._wnafT3,U=0,Z,ue,Me;for(Z=0;Z<d;Z++){Me=n[Z];var Se=Me._getNAFPoints(e);p[Z]=Se.wnd,E[Z]=Se.points}for(Z=d-1;Z>=1;Z-=2){var Le=Z-1,Ve=Z;if(p[Le]!==1||p[Ve]!==1){R[Le]=So(i[Le],p[Le],this._bitLength),R[Ve]=So(i[Ve],p[Ve],this._bitLength),U=Math.max(R[Le].length,U),U=Math.max(R[Ve].length,U);continue}var at=[n[Le],null,null,n[Ve]];n[Le].y.cmp(n[Ve].y)===0?(at[1]=n[Le].add(n[Ve]),at[2]=n[Le].toJ().mixedAdd(n[Ve].neg())):n[Le].y.cmp(n[Ve].y.redNeg())===0?(at[1]=n[Le].toJ().mixedAdd(n[Ve]),at[2]=n[Le].add(n[Ve].neg())):(at[1]=n[Le].toJ().mixedAdd(n[Ve]),at[2]=n[Le].toJ().mixedAdd(n[Ve].neg()));var et=[-3,-1,-5,-7,0,7,5,1,3],At=Ei(i[Le],i[Ve]);for(U=Math.max(At[0].length,U),R[Le]=new Array(U),R[Ve]=new Array(U),ue=0;ue<U;ue++){var Gt=At[0][ue]|0,or=At[1][ue]|0;R[Le][ue]=et[(Gt+1)*3+(or+1)],R[Ve][ue]=0,E[Le]=at}}var _t=this.jpoint(null,null,null),pr=this._wnafT4;for(Z=U;Z>=0;Z--){for(var To=0;Z>=0;){var Ur=!0;for(ue=0;ue<d;ue++)pr[ue]=R[ue][Z]|0,pr[ue]!==0&&(Ur=!1);if(!Ur)break;To++,Z--}if(Z>=0&&To++,_t=_t.dblp(To),Z<0)break;for(ue=0;ue<d;ue++){var Nr=pr[ue];Nr!==0&&(Nr>0?Me=E[ue][Nr-1>>1]:Nr<0&&(Me=E[ue][-Nr-1>>1].neg()),Me.type==="affine"?_t=_t.mixedAdd(Me):_t=_t.add(Me))}}for(Z=0;Z<d;Z++)E[Z]=null;return g?_t:_t.toP()};function $r(u,e){this.curve=u,this.type=e,this.precomputed=null}no.BasePoint=$r,$r.prototype.eq=function(){throw new Error("Not implemented")},$r.prototype.validate=function(){return this.curve.validate(this)},no.prototype.decodePoint=function(e,n){e=kr.toArray(e,n);var i=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*i){e[0]===6?Xo(e[e.length-1]%2===0):e[0]===7&&Xo(e[e.length-1]%2===1);var d=this.point(e.slice(1,1+i),e.slice(1+i,1+2*i));return d}else if((e[0]===2||e[0]===3)&&e.length-1===i)return this.pointFromX(e.slice(1,1+i),e[0]===3);throw new Error("Unknown point format")},$r.prototype.encodeCompressed=function(e){return this.encode(e,!0)},$r.prototype._encode=function(e){var n=this.curve.p.byteLength(),i=this.getX().toArray("be",n);return e?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",n))},$r.prototype.encode=function(e,n){return kr.encode(this._encode(n),e)},$r.prototype.precompute=function(e){if(this.precomputed)return this;var n={doubles:null,naf:null,beta:null};return n.naf=this._getNAFPoints(8),n.doubles=this._getDoubles(4,e),n.beta=this._getBeta(),this.precomputed=n,this},$r.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var n=this.precomputed.doubles;return n?n.points.length>=Math.ceil((e.bitLength()+1)/n.step):!1},$r.prototype._getDoubles=function(e,n){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],d=this,g=0;g<n;g+=e){for(var p=0;p<e;p++)d=d.dbl();i.push(d)}return{step:e,points:i}},$r.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var n=[this],i=(1<<e)-1,d=i===1?null:this.dbl(),g=1;g<i;g++)n[g]=n[g-1].add(d);return{wnd:e,points:n}},$r.prototype._getBeta=function(){return null},$r.prototype.dblp=function(e){for(var n=this,i=0;i<e;i++)n=n.dbl();return n};var Wo=yo(function(u){typeof Object.create=="function"?u.exports=function(n,i){i&&(n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:u.exports=function(n,i){if(i){n.super_=i;var d=function(){};d.prototype=i.prototype,n.prototype=new d,n.prototype.constructor=n}}}),Nt=kr.assert;function Hr(u){co.call(this,"short",u),this.a=new(De())(u.a,16).toRed(this.red),this.b=new(De())(u.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(u),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Wo(Hr,co);var Ti=Hr;Hr.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var n,i;if(e.beta)n=new(De())(e.beta,16).toRed(this.red);else{var d=this._getEndoRoots(this.p);n=d[0].cmp(d[1])<0?d[0]:d[1],n=n.toRed(this.red)}if(e.lambda)i=new(De())(e.lambda,16);else{var g=this._getEndoRoots(this.n);this.g.mul(g[0]).x.cmp(this.g.x.redMul(n))===0?i=g[0]:(i=g[1],Nt(this.g.mul(i).x.cmp(this.g.x.redMul(n))===0))}var p;return e.basis?p=e.basis.map(function(E){return{a:new(De())(E.a,16),b:new(De())(E.b,16)}}):p=this._getEndoBasis(i),{beta:n,lambda:i,basis:p}}},Hr.prototype._getEndoRoots=function(e){var n=e===this.p?this.red:De().mont(e),i=new(De())(2).toRed(n).redInvm(),d=i.redNeg(),g=new(De())(3).toRed(n).redNeg().redSqrt().redMul(i),p=d.redAdd(g).fromRed(),E=d.redSub(g).fromRed();return[p,E]},Hr.prototype._getEndoBasis=function(e){for(var n=this.n.ushrn(Math.floor(this.n.bitLength()/2)),i=e,d=this.n.clone(),g=new(De())(1),p=new(De())(0),E=new(De())(0),R=new(De())(1),U,Z,ue,Me,Se,Le,Ve,at=0,et,At;i.cmpn(0)!==0;){var Gt=d.div(i);et=d.sub(Gt.mul(i)),At=E.sub(Gt.mul(g));var or=R.sub(Gt.mul(p));if(!ue&&et.cmp(n)<0)U=Ve.neg(),Z=g,ue=et.neg(),Me=At;else if(ue&&++at===2)break;Ve=et,d=i,i=et,E=g,g=At,R=p,p=or}Se=et.neg(),Le=At;var _t=ue.sqr().add(Me.sqr()),pr=Se.sqr().add(Le.sqr());return pr.cmp(_t)>=0&&(Se=U,Le=Z),ue.negative&&(ue=ue.neg(),Me=Me.neg()),Se.negative&&(Se=Se.neg(),Le=Le.neg()),[{a:ue,b:Me},{a:Se,b:Le}]},Hr.prototype._endoSplit=function(e){var n=this.endo.basis,i=n[0],d=n[1],g=d.b.mul(e).divRound(this.n),p=i.b.neg().mul(e).divRound(this.n),E=g.mul(i.a),R=p.mul(d.a),U=g.mul(i.b),Z=p.mul(d.b),ue=e.sub(E).sub(R),Me=U.add(Z).neg();return{k1:ue,k2:Me}},Hr.prototype.pointFromX=function(e,n){e=new(De())(e,16),e.red||(e=e.toRed(this.red));var i=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),d=i.redSqrt();if(d.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var g=d.fromRed().isOdd();return(n&&!g||!n&&g)&&(d=d.redNeg()),this.point(e,d)},Hr.prototype.validate=function(e){if(e.inf)return!0;var n=e.x,i=e.y,d=this.a.redMul(n),g=n.redSqr().redMul(n).redIAdd(d).redIAdd(this.b);return i.redSqr().redISub(g).cmpn(0)===0},Hr.prototype._endoWnafMulAdd=function(e,n,i){for(var d=this._endoWnafT1,g=this._endoWnafT2,p=0;p<e.length;p++){var E=this._endoSplit(n[p]),R=e[p],U=R._getBeta();E.k1.negative&&(E.k1.ineg(),R=R.neg(!0)),E.k2.negative&&(E.k2.ineg(),U=U.neg(!0)),d[p*2]=R,d[p*2+1]=U,g[p*2]=E.k1,g[p*2+1]=E.k2}for(var Z=this._wnafMulAdd(1,d,g,p*2,i),ue=0;ue<p*2;ue++)d[ue]=null,g[ue]=null;return Z};function er(u,e,n,i){co.BasePoint.call(this,u,"affine"),e===null&&n===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new(De())(e,16),this.y=new(De())(n,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Wo(er,co.BasePoint),Hr.prototype.point=function(e,n,i){return new er(this,e,n,i)},Hr.prototype.pointFromJSON=function(e,n){return er.fromJSON(this,e,n)},er.prototype._getBeta=function(){if(!!this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var n=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var i=this.curve,d=function(g){return i.point(g.x.redMul(i.endo.beta),g.y)};e.beta=n,n.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(d)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(d)}}}return n}},er.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},er.fromJSON=function(e,n,i){typeof n=="string"&&(n=JSON.parse(n));var d=e.point(n[0],n[1],i);if(!n[2])return d;function g(E){return e.point(E[0],E[1],i)}var p=n[2];return d.precomputed={beta:null,doubles:p.doubles&&{step:p.doubles.step,points:[d].concat(p.doubles.points.map(g))},naf:p.naf&&{wnd:p.naf.wnd,points:[d].concat(p.naf.points.map(g))}},d},er.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},er.prototype.isInfinity=function(){return this.inf},er.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var n=this.y.redSub(e.y);n.cmpn(0)!==0&&(n=n.redMul(this.x.redSub(e.x).redInvm()));var i=n.redSqr().redISub(this.x).redISub(e.x),d=n.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,d)},er.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var n=this.curve.a,i=this.x.redSqr(),d=e.redInvm(),g=i.redAdd(i).redIAdd(i).redIAdd(n).redMul(d),p=g.redSqr().redISub(this.x.redAdd(this.x)),E=g.redMul(this.x.redSub(p)).redISub(this.y);return this.curve.point(p,E)},er.prototype.getX=function(){return this.x.fromRed()},er.prototype.getY=function(){return this.y.fromRed()},er.prototype.mul=function(e){return e=new(De())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},er.prototype.mulAdd=function(e,n,i){var d=[this,n],g=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(d,g):this.curve._wnafMulAdd(1,d,g,2)},er.prototype.jmulAdd=function(e,n,i){var d=[this,n],g=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(d,g,!0):this.curve._wnafMulAdd(1,d,g,2,!0)},er.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)},er.prototype.neg=function(e){if(this.inf)return this;var n=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var i=this.precomputed,d=function(g){return g.neg()};n.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(d)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(d)}}}return n},er.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function br(u,e,n,i){co.BasePoint.call(this,u,"jacobian"),e===null&&n===null&&i===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(De())(0)):(this.x=new(De())(e,16),this.y=new(De())(n,16),this.z=new(De())(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Wo(br,co.BasePoint),Hr.prototype.jpoint=function(e,n,i){return new br(this,e,n,i)},br.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),n=e.redSqr(),i=this.x.redMul(n),d=this.y.redMul(n).redMul(e);return this.curve.point(i,d)},br.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},br.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var n=e.z.redSqr(),i=this.z.redSqr(),d=this.x.redMul(n),g=e.x.redMul(i),p=this.y.redMul(n.redMul(e.z)),E=e.y.redMul(i.redMul(this.z)),R=d.redSub(g),U=p.redSub(E);if(R.cmpn(0)===0)return U.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Z=R.redSqr(),ue=Z.redMul(R),Me=d.redMul(Z),Se=U.redSqr().redIAdd(ue).redISub(Me).redISub(Me),Le=U.redMul(Me.redISub(Se)).redISub(p.redMul(ue)),Ve=this.z.redMul(e.z).redMul(R);return this.curve.jpoint(Se,Le,Ve)},br.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var n=this.z.redSqr(),i=this.x,d=e.x.redMul(n),g=this.y,p=e.y.redMul(n).redMul(this.z),E=i.redSub(d),R=g.redSub(p);if(E.cmpn(0)===0)return R.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var U=E.redSqr(),Z=U.redMul(E),ue=i.redMul(U),Me=R.redSqr().redIAdd(Z).redISub(ue).redISub(ue),Se=R.redMul(ue.redISub(Me)).redISub(g.redMul(Z)),Le=this.z.redMul(E);return this.curve.jpoint(Me,Se,Le)},br.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var n;if(this.curve.zeroA||this.curve.threeA){var i=this;for(n=0;n<e;n++)i=i.dbl();return i}var d=this.curve.a,g=this.curve.tinv,p=this.x,E=this.y,R=this.z,U=R.redSqr().redSqr(),Z=E.redAdd(E);for(n=0;n<e;n++){var ue=p.redSqr(),Me=Z.redSqr(),Se=Me.redSqr(),Le=ue.redAdd(ue).redIAdd(ue).redIAdd(d.redMul(U)),Ve=p.redMul(Me),at=Le.redSqr().redISub(Ve.redAdd(Ve)),et=Ve.redISub(at),At=Le.redMul(et);At=At.redIAdd(At).redISub(Se);var Gt=Z.redMul(R);n+1<e&&(U=U.redMul(Se)),p=at,R=Gt,Z=At}return this.curve.jpoint(p,Z.redMul(g),R)},br.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},br.prototype._zeroDbl=function(){var e,n,i;if(this.zOne){var d=this.x.redSqr(),g=this.y.redSqr(),p=g.redSqr(),E=this.x.redAdd(g).redSqr().redISub(d).redISub(p);E=E.redIAdd(E);var R=d.redAdd(d).redIAdd(d),U=R.redSqr().redISub(E).redISub(E),Z=p.redIAdd(p);Z=Z.redIAdd(Z),Z=Z.redIAdd(Z),e=U,n=R.redMul(E.redISub(U)).redISub(Z),i=this.y.redAdd(this.y)}else{var ue=this.x.redSqr(),Me=this.y.redSqr(),Se=Me.redSqr(),Le=this.x.redAdd(Me).redSqr().redISub(ue).redISub(Se);Le=Le.redIAdd(Le);var Ve=ue.redAdd(ue).redIAdd(ue),at=Ve.redSqr(),et=Se.redIAdd(Se);et=et.redIAdd(et),et=et.redIAdd(et),e=at.redISub(Le).redISub(Le),n=Ve.redMul(Le.redISub(e)).redISub(et),i=this.y.redMul(this.z),i=i.redIAdd(i)}return this.curve.jpoint(e,n,i)},br.prototype._threeDbl=function(){var e,n,i;if(this.zOne){var d=this.x.redSqr(),g=this.y.redSqr(),p=g.redSqr(),E=this.x.redAdd(g).redSqr().redISub(d).redISub(p);E=E.redIAdd(E);var R=d.redAdd(d).redIAdd(d).redIAdd(this.curve.a),U=R.redSqr().redISub(E).redISub(E);e=U;var Z=p.redIAdd(p);Z=Z.redIAdd(Z),Z=Z.redIAdd(Z),n=R.redMul(E.redISub(U)).redISub(Z),i=this.y.redAdd(this.y)}else{var ue=this.z.redSqr(),Me=this.y.redSqr(),Se=this.x.redMul(Me),Le=this.x.redSub(ue).redMul(this.x.redAdd(ue));Le=Le.redAdd(Le).redIAdd(Le);var Ve=Se.redIAdd(Se);Ve=Ve.redIAdd(Ve);var at=Ve.redAdd(Ve);e=Le.redSqr().redISub(at),i=this.y.redAdd(this.z).redSqr().redISub(Me).redISub(ue);var et=Me.redSqr();et=et.redIAdd(et),et=et.redIAdd(et),et=et.redIAdd(et),n=Le.redMul(Ve.redISub(e)).redISub(et)}return this.curve.jpoint(e,n,i)},br.prototype._dbl=function(){var e=this.curve.a,n=this.x,i=this.y,d=this.z,g=d.redSqr().redSqr(),p=n.redSqr(),E=i.redSqr(),R=p.redAdd(p).redIAdd(p).redIAdd(e.redMul(g)),U=n.redAdd(n);U=U.redIAdd(U);var Z=U.redMul(E),ue=R.redSqr().redISub(Z.redAdd(Z)),Me=Z.redISub(ue),Se=E.redSqr();Se=Se.redIAdd(Se),Se=Se.redIAdd(Se),Se=Se.redIAdd(Se);var Le=R.redMul(Me).redISub(Se),Ve=i.redAdd(i).redMul(d);return this.curve.jpoint(ue,Le,Ve)},br.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),n=this.y.redSqr(),i=this.z.redSqr(),d=n.redSqr(),g=e.redAdd(e).redIAdd(e),p=g.redSqr(),E=this.x.redAdd(n).redSqr().redISub(e).redISub(d);E=E.redIAdd(E),E=E.redAdd(E).redIAdd(E),E=E.redISub(p);var R=E.redSqr(),U=d.redIAdd(d);U=U.redIAdd(U),U=U.redIAdd(U),U=U.redIAdd(U);var Z=g.redIAdd(E).redSqr().redISub(p).redISub(R).redISub(U),ue=n.redMul(Z);ue=ue.redIAdd(ue),ue=ue.redIAdd(ue);var Me=this.x.redMul(R).redISub(ue);Me=Me.redIAdd(Me),Me=Me.redIAdd(Me);var Se=this.y.redMul(Z.redMul(U.redISub(Z)).redISub(E.redMul(R)));Se=Se.redIAdd(Se),Se=Se.redIAdd(Se),Se=Se.redIAdd(Se);var Le=this.z.redAdd(E).redSqr().redISub(i).redISub(R);return this.curve.jpoint(Me,Se,Le)},br.prototype.mul=function(e,n){return e=new(De())(e,n),this.curve._wnafMul(this,e)},br.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var n=this.z.redSqr(),i=e.z.redSqr();if(this.x.redMul(i).redISub(e.x.redMul(n)).cmpn(0)!==0)return!1;var d=n.redMul(this.z),g=i.redMul(e.z);return this.y.redMul(g).redISub(e.y.redMul(d)).cmpn(0)===0},br.prototype.eqXToP=function(e){var n=this.z.redSqr(),i=e.toRed(this.curve.red).redMul(n);if(this.x.cmp(i)===0)return!0;for(var d=e.clone(),g=this.curve.redN.redMul(n);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(g),this.x.cmp(i)===0)return!0}},br.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},br.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Qo=yo(function(u,e){"use strict";var n=e;n.base=co,n.short=Ti,n.mont=null,n.edwards=null}),en=yo(function(u,e){"use strict";var n=e,i=kr.assert;function d(E){E.type==="short"?this.curve=new Qo.short(E):E.type==="edwards"?this.curve=new Qo.edwards(E):this.curve=new Qo.mont(E),this.g=this.curve.g,this.n=this.curve.n,this.hash=E.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}n.PresetCurve=d;function g(E,R){Object.defineProperty(n,E,{configurable:!0,enumerable:!0,get:function(){var U=new d(R);return Object.defineProperty(n,E,{configurable:!0,enumerable:!0,value:U}),U}})}g("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Rt().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),g("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Rt().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),g("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Rt().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),g("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Rt().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),g("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Rt().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),g("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Rt().sha256,gRed:!1,g:["9"]}),g("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Rt().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var p;try{p=null.crash()}catch{p=void 0}g("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Rt().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",p]})});function uo(u){if(!(this instanceof uo))return new uo(u);this.hash=u.hash,this.predResist=!!u.predResist,this.outLen=this.hash.outSize,this.minEntropy=u.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Vr.toArray(u.entropy,u.entropyEnc||"hex"),n=Vr.toArray(u.nonce,u.nonceEnc||"hex"),i=Vr.toArray(u.pers,u.persEnc||"hex");Yo(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,i)}var Hn=uo;uo.prototype._init=function(e,n,i){var d=e.concat(n).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var g=0;g<this.V.length;g++)this.K[g]=0,this.V[g]=1;this._update(d),this._reseed=1,this.reseedInterval=281474976710656},uo.prototype._hmac=function(){return new(Rt()).hmac(this.hash,this.K)},uo.prototype._update=function(e){var n=this._hmac().update(this.V).update([0]);e&&(n=n.update(e)),this.K=n.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},uo.prototype.reseed=function(e,n,i,d){typeof n!="string"&&(d=i,i=n,n=null),e=Vr.toArray(e,n),i=Vr.toArray(i,d),Yo(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(i||[])),this._reseed=1},uo.prototype.generate=function(e,n,i,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof n!="string"&&(d=i,i=n,n=null),i&&(i=Vr.toArray(i,d||"hex"),this._update(i));for(var g=[];g.length<e;)this.V=this._hmac().update(this.V).digest(),g=g.concat(this.V);var p=g.slice(0,e);return this._update(i),this._reseed++,Vr.encode(p,n)};var bn=kr.assert;function Tr(u,e){this.ec=u,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var An=Tr;Tr.fromPublic=function(e,n,i){return n instanceof Tr?n:new Tr(e,{pub:n,pubEnc:i})},Tr.fromPrivate=function(e,n,i){return n instanceof Tr?n:new Tr(e,{priv:n,privEnc:i})},Tr.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},Tr.prototype.getPublic=function(e,n){return typeof e=="string"&&(n=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),n?this.pub.encode(n,e):this.pub},Tr.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv},Tr.prototype._importPrivate=function(e,n){this.priv=new(De())(e,n||16),this.priv=this.priv.umod(this.ec.curve.n)},Tr.prototype._importPublic=function(e,n){if(e.x||e.y){this.ec.curve.type==="mont"?bn(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&bn(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,n)},Tr.prototype.derive=function(e){return e.validate()||bn(e.validate(),"public point not validated"),e.mul(this.priv).getX()},Tr.prototype.sign=function(e,n,i){return this.ec.sign(e,this,n,i)},Tr.prototype.verify=function(e,n){return this.ec.verify(e,n,this)},Tr.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var Ii=kr.assert;function mo(u,e){if(u instanceof mo)return u;this._importDER(u,e)||(Ii(u.r&&u.s,"Signature without r or s"),this.r=new(De())(u.r,16),this.s=new(De())(u.s,16),u.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=u.recoveryParam)}var tn=mo;function Si(){this.place=0}function rn(u,e){var n=u[e.place++];if(!(n&128))return n;var i=n&15;if(i===0||i>4)return!1;for(var d=0,g=0,p=e.place;g<i;g++,p++)d<<=8,d|=u[p],d>>>=0;return d<=127?!1:(e.place=p,d)}function Kn(u){for(var e=0,n=u.length-1;!u[e]&&!(u[e+1]&128)&&e<n;)e++;return e===0?u:u.slice(e)}mo.prototype._importDER=function(e,n){e=kr.toArray(e,n);var i=new Si;if(e[i.place++]!==48)return!1;var d=rn(e,i);if(d===!1||d+i.place!==e.length||e[i.place++]!==2)return!1;var g=rn(e,i);if(g===!1)return!1;var p=e.slice(i.place,g+i.place);if(i.place+=g,e[i.place++]!==2)return!1;var E=rn(e,i);if(E===!1||e.length!==E+i.place)return!1;var R=e.slice(i.place,E+i.place);if(p[0]===0)if(p[1]&128)p=p.slice(1);else return!1;if(R[0]===0)if(R[1]&128)R=R.slice(1);else return!1;return this.r=new(De())(p),this.s=new(De())(R),this.recoveryParam=null,!0};function lo(u,e){if(e<128){u.push(e);return}var n=1+(Math.log(e)/Math.LN2>>>3);for(u.push(n|128);--n;)u.push(e>>>(n<<3)&255);u.push(e)}mo.prototype.toDER=function(e){var n=this.r.toArray(),i=this.s.toArray();for(n[0]&128&&(n=[0].concat(n)),i[0]&128&&(i=[0].concat(i)),n=Kn(n),i=Kn(i);!i[0]&&!(i[1]&128);)i=i.slice(1);var d=[2];lo(d,n.length),d=d.concat(n),d.push(2),lo(d,i.length);var g=d.concat(i),p=[48];return lo(p,g.length),p=p.concat(g),kr.encode(p,e)};var Pi=function(){throw new Error("unsupported")},Zn=kr.assert;function Kr(u){if(!(this instanceof Kr))return new Kr(u);typeof u=="string"&&(Zn(Object.prototype.hasOwnProperty.call(en,u),"Unknown curve "+u),u=en[u]),u instanceof en.PresetCurve&&(u={curve:u}),this.curve=u.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=u.curve.g,this.g.precompute(u.curve.n.bitLength()+1),this.hash=u.hash||u.curve.hash}var Oi=Kr;Kr.prototype.keyPair=function(e){return new An(this,e)},Kr.prototype.keyFromPrivate=function(e,n){return An.fromPrivate(this,e,n)},Kr.prototype.keyFromPublic=function(e,n){return An.fromPublic(this,e,n)},Kr.prototype.genKeyPair=function(e){e||(e={});for(var n=new Hn({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||Pi(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),d=this.n.sub(new(De())(2));;){var g=new(De())(n.generate(i));if(!(g.cmp(d)>0))return g.iaddn(1),this.keyFromPrivate(g)}},Kr.prototype._truncateToN=function(e,n){var i=e.byteLength()*8-this.n.bitLength();return i>0&&(e=e.ushrn(i)),!n&&e.cmp(this.n)>=0?e.sub(this.n):e},Kr.prototype.sign=function(e,n,i,d){typeof i=="object"&&(d=i,i=null),d||(d={}),n=this.keyFromPrivate(n,i),e=this._truncateToN(new(De())(e,16));for(var g=this.n.byteLength(),p=n.getPrivate().toArray("be",g),E=e.toArray("be",g),R=new Hn({hash:this.hash,entropy:p,nonce:E,pers:d.pers,persEnc:d.persEnc||"utf8"}),U=this.n.sub(new(De())(1)),Z=0;;Z++){var ue=d.k?d.k(Z):new(De())(R.generate(this.n.byteLength()));if(ue=this._truncateToN(ue,!0),!(ue.cmpn(1)<=0||ue.cmp(U)>=0)){var Me=this.g.mul(ue);if(!Me.isInfinity()){var Se=Me.getX(),Le=Se.umod(this.n);if(Le.cmpn(0)!==0){var Ve=ue.invm(this.n).mul(Le.mul(n.getPrivate()).iadd(e));if(Ve=Ve.umod(this.n),Ve.cmpn(0)!==0){var at=(Me.getY().isOdd()?1:0)|(Se.cmp(Le)!==0?2:0);return d.canonical&&Ve.cmp(this.nh)>0&&(Ve=this.n.sub(Ve),at^=1),new tn({r:Le,s:Ve,recoveryParam:at})}}}}}},Kr.prototype.verify=function(e,n,i,d){e=this._truncateToN(new(De())(e,16)),i=this.keyFromPublic(i,d),n=new tn(n,"hex");var g=n.r,p=n.s;if(g.cmpn(1)<0||g.cmp(this.n)>=0||p.cmpn(1)<0||p.cmp(this.n)>=0)return!1;var E=p.invm(this.n),R=E.mul(e).umod(this.n),U=E.mul(g).umod(this.n),Z;return this.curve._maxwellTrick?(Z=this.g.jmulAdd(R,i.getPublic(),U),Z.isInfinity()?!1:Z.eqXToP(g)):(Z=this.g.mulAdd(R,i.getPublic(),U),Z.isInfinity()?!1:Z.getX().umod(this.n).cmp(g)===0)},Kr.prototype.recoverPubKey=function(u,e,n,i){Zn((3&n)===n,"The recovery param is more than two bits"),e=new tn(e,i);var d=this.n,g=new(De())(u),p=e.r,E=e.s,R=n&1,U=n>>1;if(p.cmp(this.curve.p.umod(this.curve.n))>=0&&U)throw new Error("Unable to find sencond key candinate");U?p=this.curve.pointFromX(p.add(this.curve.n),R):p=this.curve.pointFromX(p,R);var Z=e.r.invm(d),ue=d.sub(g).mul(Z).umod(d),Me=E.mul(Z).umod(d);return this.g.mulAdd(ue,p,Me)},Kr.prototype.getKeyRecoveryParam=function(u,e,n,i){if(e=new tn(e,i),e.recoveryParam!==null)return e.recoveryParam;for(var d=0;d<4;d++){var g;try{g=this.recoverPubKey(u,e,d)}catch{continue}if(g.eq(n))return d}throw new Error("Unable to find valid recovery factor")};var Fi=yo(function(u,e){"use strict";var n=e;n.version="6.5.4",n.utils=kr,n.rand=function(){throw new Error("unsupported")},n.curve=Qo,n.curves=en,n.ec=Oi,n.eddsa=null}),Po=Fi.ec;const Oo="signing-key/5.7.0",on=new r.Logger(Oo);let wn=null;function Jr(){return wn||(wn=new Po("secp256k1")),wn}class vo{constructor(e){(0,t.defineReadOnly)(this,"curve","secp256k1"),(0,t.defineReadOnly)(this,"privateKey",(0,f.hexlify)(e)),(0,f.hexDataLength)(this.privateKey)!==32&&on.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const n=Jr().keyFromPrivate((0,f.arrayify)(this.privateKey));(0,t.defineReadOnly)(this,"publicKey","0x"+n.getPublic(!1,"hex")),(0,t.defineReadOnly)(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),(0,t.defineReadOnly)(this,"_isSigningKey",!0)}_addPoint(e){const n=Jr().keyFromPublic((0,f.arrayify)(this.publicKey)),i=Jr().keyFromPublic((0,f.arrayify)(e));return"0x"+n.pub.add(i.pub).encodeCompressed("hex")}signDigest(e){const n=Jr().keyFromPrivate((0,f.arrayify)(this.privateKey)),i=(0,f.arrayify)(e);i.length!==32&&on.throwArgumentError("bad digest length","digest",e);const d=n.sign(i,{canonical:!0});return(0,f.splitSignature)({recoveryParam:d.recoveryParam,r:(0,f.hexZeroPad)("0x"+d.r.toString(16),32),s:(0,f.hexZeroPad)("0x"+d.s.toString(16),32)})}computeSharedSecret(e){const n=Jr().keyFromPrivate((0,f.arrayify)(this.privateKey)),i=Jr().keyFromPublic((0,f.arrayify)(Cn(e)));return(0,f.hexZeroPad)("0x"+n.derive(i.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function Uo(u,e){const n=(0,f.splitSignature)(e),i={r:(0,f.arrayify)(n.r),s:(0,f.arrayify)(n.s)};return"0x"+Jr().recoverPubKey((0,f.arrayify)(u),i,n.recoveryParam).encode("hex",!1)}function Cn(u,e){const n=(0,f.arrayify)(u);if(n.length===32){const i=new vo(n);return e?"0x"+Jr().keyFromPrivate(n).getPublic(!0,"hex"):i.publicKey}else{if(n.length===33)return e?(0,f.hexlify)(n):"0x"+Jr().keyFromPublic(n).getPublic(!1,"hex");if(n.length===65)return e?"0x"+Jr().keyFromPublic(n).getPublic(!0,"hex"):(0,f.hexlify)(n)}return on.throwArgumentError("invalid public or private key","key","[REDACTED]")}const Mi="transactions/5.7.0",Ir=new r.Logger(Mi);var Bn;(function(u){u[u.legacy=0]="legacy",u[u.eip2930=1]="eip2930",u[u.eip1559=2]="eip1559"})(Bn||(Bn={}));function Lo(u){return u==="0x"?null:Oe(u)}function Sr(u){return u==="0x"?Xe:a.O$.from(u)}const Ri=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],ki={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function qr(u){const e=Cn(u);return Oe((0,f.hexDataSlice)((0,re.keccak256)((0,f.hexDataSlice)(e,1)),12))}function zo(u,e){return qr(Uo((0,f.arrayify)(u),e))}function Wr(u,e){const n=(0,f.stripZeros)(a.O$.from(u).toHexString());return n.length>32&&Ir.throwArgumentError("invalid length for "+e,"transaction:"+e,u),n}function En(u,e){return{address:Oe(u),storageKeys:(e||[]).map((n,i)=>((0,f.hexDataLength)(n)!==32&&Ir.throwArgumentError("invalid access list storageKey",`accessList[${u}:${i}]`,n),n.toLowerCase()))}}function fo(u){if(Array.isArray(u))return u.map((n,i)=>Array.isArray(n)?(n.length>2&&Ir.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${i}]`,n),En(n[0],n[1])):En(n.address,n.storageKeys));const e=Object.keys(u).map(n=>{const i=u[n].reduce((d,g)=>(d[g]=!0,d),{});return En(n,Object.keys(i).sort())});return e.sort((n,i)=>n.address.localeCompare(i.address)),e}function st(u){return fo(u).map(e=>[e.address,e.storageKeys])}function Ut(u,e){if(u.gasPrice!=null){const i=a.O$.from(u.gasPrice),d=a.O$.from(u.maxFeePerGas||0);i.eq(d)||Ir.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:i,maxFeePerGas:d})}const n=[Wr(u.chainId||0,"chainId"),Wr(u.nonce||0,"nonce"),Wr(u.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Wr(u.maxFeePerGas||0,"maxFeePerGas"),Wr(u.gasLimit||0,"gasLimit"),u.to!=null?Oe(u.to):"0x",Wr(u.value||0,"value"),u.data||"0x",st(u.accessList||[])];if(e){const i=(0,f.splitSignature)(e);n.push(Wr(i.recoveryParam,"recoveryParam")),n.push((0,f.stripZeros)(i.r)),n.push((0,f.stripZeros)(i.s))}return(0,f.hexConcat)(["0x02",se(n)])}function Jn(u,e){const n=[Wr(u.chainId||0,"chainId"),Wr(u.nonce||0,"nonce"),Wr(u.gasPrice||0,"gasPrice"),Wr(u.gasLimit||0,"gasLimit"),u.to!=null?Oe(u.to):"0x",Wr(u.value||0,"value"),u.data||"0x",st(u.accessList||[])];if(e){const i=(0,f.splitSignature)(e);n.push(Wr(i.recoveryParam,"recoveryParam")),n.push((0,f.stripZeros)(i.r)),n.push((0,f.stripZeros)(i.s))}return(0,f.hexConcat)(["0x01",se(n)])}function _i(u,e){(0,t.checkProperties)(u,ki);const n=[];Ri.forEach(function(p){let E=u[p.name]||[];const R={};p.numeric&&(R.hexPad="left"),E=(0,f.arrayify)((0,f.hexlify)(E,R)),p.length&&E.length!==p.length&&E.length>0&&Ir.throwArgumentError("invalid length for "+p.name,"transaction:"+p.name,E),p.maxLength&&(E=(0,f.stripZeros)(E),E.length>p.maxLength&&Ir.throwArgumentError("invalid length for "+p.name,"transaction:"+p.name,E)),n.push((0,f.hexlify)(E))});let i=0;if(u.chainId!=null?(i=u.chainId,typeof i!="number"&&Ir.throwArgumentError("invalid transaction.chainId","transaction",u)):e&&!(0,f.isBytesLike)(e)&&e.v>28&&(i=Math.floor((e.v-35)/2)),i!==0&&(n.push((0,f.hexlify)(i)),n.push("0x"),n.push("0x")),!e)return se(n);const d=(0,f.splitSignature)(e);let g=27+d.recoveryParam;return i!==0?(n.pop(),n.pop(),n.pop(),g+=i*2+8,d.v>28&&d.v!==g&&Ir.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):d.v!==g&&Ir.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),n.push((0,f.hexlify)(g)),n.push((0,f.stripZeros)((0,f.arrayify)(d.r))),n.push((0,f.stripZeros)((0,f.arrayify)(d.s))),se(n)}function nn(u,e){if(u.type==null||u.type===0)return u.accessList!=null&&Ir.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",u),_i(u,e);switch(u.type){case 1:return Jn(u,e);case 2:return Ut(u,e);default:break}return Ir.throwError(`unsupported transaction type: ${u.type}`,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:u.type})}function Tn(u,e,n){try{const i=Sr(e[0]).toNumber();if(i!==0&&i!==1)throw new Error("bad recid");u.v=i}catch{Ir.throwArgumentError("invalid v for transaction type: 1","v",e[0])}u.r=(0,f.hexZeroPad)(e[1],32),u.s=(0,f.hexZeroPad)(e[2],32);try{const i=(0,re.keccak256)(n(u));u.from=zo(i,{r:u.r,s:u.s,recoveryParam:u.v})}catch{}}function qn(u){const e=Ue(u.slice(1));e.length!==9&&e.length!==12&&Ir.throwArgumentError("invalid component count for transaction type: 2","payload",(0,f.hexlify)(u));const n=Sr(e[2]),i=Sr(e[3]),d={type:2,chainId:Sr(e[0]).toNumber(),nonce:Sr(e[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:i,gasPrice:null,gasLimit:Sr(e[4]),to:Lo(e[5]),value:Sr(e[6]),data:e[7],accessList:fo(e[8])};return e.length===9||(d.hash=(0,re.keccak256)(u),Tn(d,e.slice(9),Ut)),d}function Yn(u){const e=Ue(u.slice(1));e.length!==8&&e.length!==11&&Ir.throwArgumentError("invalid component count for transaction type: 1","payload",(0,f.hexlify)(u));const n={type:1,chainId:Sr(e[0]).toNumber(),nonce:Sr(e[1]).toNumber(),gasPrice:Sr(e[2]),gasLimit:Sr(e[3]),to:Lo(e[4]),value:Sr(e[5]),data:e[6],accessList:fo(e[7])};return e.length===8||(n.hash=(0,re.keccak256)(u),Tn(n,e.slice(8),Jn)),n}function In(u){const e=Ue(u);e.length!==9&&e.length!==6&&Ir.throwArgumentError("invalid raw transaction","rawTransaction",u);const n={nonce:Sr(e[0]).toNumber(),gasPrice:Sr(e[1]),gasLimit:Sr(e[2]),to:Lo(e[3]),value:Sr(e[4]),data:e[5],chainId:0};if(e.length===6)return n;try{n.v=a.O$.from(e[6]).toNumber()}catch{return n}if(n.r=(0,f.hexZeroPad)(e[7],32),n.s=(0,f.hexZeroPad)(e[8],32),a.O$.from(n.r).isZero()&&a.O$.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);let i=n.v-27;const d=e.slice(0,6);n.chainId!==0&&(d.push((0,f.hexlify)(n.chainId)),d.push("0x"),d.push("0x"),i-=n.chainId*2+8);const g=(0,re.keccak256)(se(d));try{n.from=zo(g,{r:(0,f.hexlify)(n.r),s:(0,f.hexlify)(n.s),recoveryParam:i})}catch{}n.hash=(0,re.keccak256)(u)}return n.type=null,n}function sn(u){const e=(0,f.arrayify)(u);if(e[0]>127)return In(e);switch(e[0]){case 1:return Yn(e);case 2:return qn(e);default:break}return Ir.throwError(`unsupported transaction type: ${e[0]}`,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const Ni="contracts/5.7.0";var po=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const Yt=new r.Logger(Ni),Di={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function ho(u,e){return po(this,void 0,void 0,function*(){const n=yield e;typeof n!="string"&&Yt.throwArgumentError("invalid address or ENS name","name",n);try{return Oe(n)}catch{}u||Yt.throwError("a provider or signer is needed to resolve ENS names",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const i=yield u.resolveName(n);return i==null&&Yt.throwArgumentError("resolver or addr is not configured for ENS name","name",n),i})}function Fo(u,e,n){return po(this,void 0,void 0,function*(){return Array.isArray(n)?yield Promise.all(n.map((i,d)=>Fo(u,Array.isArray(e)?e[d]:e[i.name],i))):n.type==="address"?yield ho(u,e):n.type==="tuple"?yield Fo(u,e,n.components):n.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(i=>Fo(u,i,n.arrayChildren))):Promise.reject(Yt.makeError("invalid value for array",r.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function jo(u,e,n){return po(this,void 0,void 0,function*(){let i={};n.length===e.inputs.length+1&&typeof n[n.length-1]=="object"&&(i=(0,t.shallowCopy)(n.pop())),Yt.checkArgumentCount(n.length,e.inputs.length,"passed to contract"),u.signer?i.from?i.from=(0,t.resolveProperties)({override:ho(u.signer,i.from),signer:u.signer.getAddress()}).then(U=>po(this,void 0,void 0,function*(){return Oe(U.signer)!==U.override&&Yt.throwError("Contract with a Signer cannot override from",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),U.override})):i.from=u.signer.getAddress():i.from&&(i.from=ho(u.provider,i.from));const d=yield(0,t.resolveProperties)({args:Fo(u.signer||u.provider,n,e.inputs),address:u.resolvedAddress,overrides:(0,t.resolveProperties)(i)||{}}),g=u.interface.encodeFunctionData(e,d.args),p={data:g,to:d.address},E=d.overrides;if(E.nonce!=null&&(p.nonce=a.O$.from(E.nonce).toNumber()),E.gasLimit!=null&&(p.gasLimit=a.O$.from(E.gasLimit)),E.gasPrice!=null&&(p.gasPrice=a.O$.from(E.gasPrice)),E.maxFeePerGas!=null&&(p.maxFeePerGas=a.O$.from(E.maxFeePerGas)),E.maxPriorityFeePerGas!=null&&(p.maxPriorityFeePerGas=a.O$.from(E.maxPriorityFeePerGas)),E.from!=null&&(p.from=E.from),E.type!=null&&(p.type=E.type),E.accessList!=null&&(p.accessList=fo(E.accessList)),p.gasLimit==null&&e.gas!=null){let U=21e3;const Z=(0,f.arrayify)(g);for(let ue=0;ue<Z.length;ue++)U+=4,Z[ue]&&(U+=64);p.gasLimit=a.O$.from(e.gas).add(U)}if(E.value){const U=a.O$.from(E.value);!U.isZero()&&!e.payable&&Yt.throwError("non-payable method cannot override value",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:i.value}),p.value=U}E.customData&&(p.customData=(0,t.shallowCopy)(E.customData)),E.ccipReadEnabled&&(p.ccipReadEnabled=!!E.ccipReadEnabled),delete i.nonce,delete i.gasLimit,delete i.gasPrice,delete i.from,delete i.value,delete i.type,delete i.accessList,delete i.maxFeePerGas,delete i.maxPriorityFeePerGas,delete i.customData,delete i.ccipReadEnabled;const R=Object.keys(i).filter(U=>i[U]!=null);return R.length&&Yt.throwError(`cannot override ${R.map(U=>JSON.stringify(U)).join(",")}`,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:R}),p})}function Q(u,e){return function(...n){return jo(u,e,n)}}function Mr(u,e){const n=u.signer||u.provider;return function(...i){return po(this,void 0,void 0,function*(){n||Yt.throwError("estimate require a provider or signer",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const d=yield jo(u,e,i);return yield n.estimateGas(d)})}}function Xn(u,e){const n=e.wait.bind(e);e.wait=i=>n(i).then(d=>(d.events=d.logs.map(g=>{let p=(0,t.deepCopy)(g),E=null;try{E=u.interface.parseLog(g)}catch{}return E&&(p.args=E.args,p.decode=(R,U)=>u.interface.decodeEventLog(E.eventFragment,R,U),p.event=E.name,p.eventSignature=E.signature),p.removeListener=()=>u.provider,p.getBlock=()=>u.provider.getBlock(d.blockHash),p.getTransaction=()=>u.provider.getTransaction(d.transactionHash),p.getTransactionReceipt=()=>Promise.resolve(d),p}),d))}function Qn(u,e,n){const i=u.signer||u.provider;return function(...d){return po(this,void 0,void 0,function*(){let g;if(d.length===e.inputs.length+1&&typeof d[d.length-1]=="object"){const R=(0,t.shallowCopy)(d.pop());R.blockTag!=null&&(g=yield R.blockTag),delete R.blockTag,d.push(R)}u.deployTransaction!=null&&(yield u._deployed(g));const p=yield jo(u,e,d),E=yield i.call(p,g);try{let R=u.interface.decodeFunctionResult(e,E);return n&&e.outputs.length===1&&(R=R[0]),R}catch(R){throw R.code===r.Logger.errors.CALL_EXCEPTION&&(R.address=u.address,R.args=d,R.transaction=p),R}})}}function Wi(u,e){return function(...n){return po(this,void 0,void 0,function*(){u.signer||Yt.throwError("sending a transaction requires a signer",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),u.deployTransaction!=null&&(yield u._deployed());const i=yield jo(u,e,n),d=yield u.signer.sendTransaction(i);return Xn(u,d),d})}}function ei(u,e,n){return e.constant?Qn(u,e,n):Wi(u,e)}function Sn(u){return u.address&&(u.topics==null||u.topics.length===0)?"*":(u.address||"*")+"@"+(u.topics?u.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class Go{constructor(e,n){(0,t.defineReadOnly)(this,"tag",e),(0,t.defineReadOnly)(this,"filter",n),this._listeners=[]}addListener(e,n){this._listeners.push({listener:e,once:n})}removeListener(e){let n=!1;this._listeners=this._listeners.filter(i=>n||i.listener!==e?!0:(n=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){const n=this.listenerCount();return this._listeners=this._listeners.filter(i=>{const d=e.slice();return setTimeout(()=>{i.listener.apply(this,d)},0),!i.once}),n}prepareEvent(e){}getEmit(e){return[e]}}class xo extends Go{constructor(){super("error",null)}}class ti extends Go{constructor(e,n,i,d){const g={address:e};let p=n.getEventTopic(i);d?(p!==d[0]&&Yt.throwArgumentError("topic mismatch","topics",d),g.topics=d.slice()):g.topics=[p],super(Sn(g),g),(0,t.defineReadOnly)(this,"address",e),(0,t.defineReadOnly)(this,"interface",n),(0,t.defineReadOnly)(this,"fragment",i)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(n,i)=>this.interface.decodeEventLog(this.fragment,n,i);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(n){e.args=null,e.decodeError=n}}getEmit(e){const n=K(e.args);if(n.length)throw n[0].error;const i=(e.args||[]).slice();return i.push(e),i}}class Vo extends Go{constructor(e,n){super("*",{address:e}),(0,t.defineReadOnly)(this,"address",e),(0,t.defineReadOnly)(this,"interface",n)}prepareEvent(e){super.prepareEvent(e);try{const n=this.interface.parseLog(e);e.event=n.name,e.eventSignature=n.signature,e.decode=(i,d)=>this.interface.decodeEventLog(n.eventFragment,i,d),e.args=n.args}catch{}}}class Pn{constructor(e,n,i){(0,t.defineReadOnly)(this,"interface",(0,t.getStatic)(new.target,"getInterface")(n)),i==null?((0,t.defineReadOnly)(this,"provider",null),(0,t.defineReadOnly)(this,"signer",null)):N.isSigner(i)?((0,t.defineReadOnly)(this,"provider",i.provider||null),(0,t.defineReadOnly)(this,"signer",i)):it.isProvider(i)?((0,t.defineReadOnly)(this,"provider",i),(0,t.defineReadOnly)(this,"signer",null)):Yt.throwArgumentError("invalid signer or provider","signerOrProvider",i),(0,t.defineReadOnly)(this,"callStatic",{}),(0,t.defineReadOnly)(this,"estimateGas",{}),(0,t.defineReadOnly)(this,"functions",{}),(0,t.defineReadOnly)(this,"populateTransaction",{}),(0,t.defineReadOnly)(this,"filters",{});{const p={};Object.keys(this.interface.events).forEach(E=>{const R=this.interface.events[E];(0,t.defineReadOnly)(this.filters,E,(...U)=>({address:this.address,topics:this.interface.encodeFilterTopics(R,U)})),p[R.name]||(p[R.name]=[]),p[R.name].push(E)}),Object.keys(p).forEach(E=>{const R=p[E];R.length===1?(0,t.defineReadOnly)(this.filters,E,this.filters[R[0]]):Yt.warn(`Duplicate definition of ${E} (${R.join(", ")})`)})}if((0,t.defineReadOnly)(this,"_runningEvents",{}),(0,t.defineReadOnly)(this,"_wrappedEmits",{}),e==null&&Yt.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,t.defineReadOnly)(this,"address",e),this.provider)(0,t.defineReadOnly)(this,"resolvedAddress",ho(this.provider,e));else try{(0,t.defineReadOnly)(this,"resolvedAddress",Promise.resolve(Oe(e)))}catch{Yt.throwError("provider is required to use ENS name as contract address",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(p=>{});const d={},g={};Object.keys(this.interface.functions).forEach(p=>{const E=this.interface.functions[p];if(g[p]){Yt.warn(`Duplicate ABI entry for ${JSON.stringify(p)}`);return}g[p]=!0;{const R=E.name;d[`%${R}`]||(d[`%${R}`]=[]),d[`%${R}`].push(p)}this[p]==null&&(0,t.defineReadOnly)(this,p,ei(this,E,!0)),this.functions[p]==null&&(0,t.defineReadOnly)(this.functions,p,ei(this,E,!1)),this.callStatic[p]==null&&(0,t.defineReadOnly)(this.callStatic,p,Qn(this,E,!0)),this.populateTransaction[p]==null&&(0,t.defineReadOnly)(this.populateTransaction,p,Q(this,E)),this.estimateGas[p]==null&&(0,t.defineReadOnly)(this.estimateGas,p,Mr(this,E))}),Object.keys(d).forEach(p=>{const E=d[p];if(E.length>1)return;p=p.substring(1);const R=E[0];try{this[p]==null&&(0,t.defineReadOnly)(this,p,this[R])}catch{}this.functions[p]==null&&(0,t.defineReadOnly)(this.functions,p,this.functions[R]),this.callStatic[p]==null&&(0,t.defineReadOnly)(this.callStatic,p,this.callStatic[R]),this.populateTransaction[p]==null&&(0,t.defineReadOnly)(this.populateTransaction,p,this.populateTransaction[R]),this.estimateGas[p]==null&&(0,t.defineReadOnly)(this.estimateGas,p,this.estimateGas[R])})}static getContractAddress(e){return ke(e)}static getInterface(e){return be.isInterface(e)?e:new be(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(n=>(n==="0x"&&Yt.throwError("contract not deployed",r.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||Yt.throwError("sending a transactions require a signer",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const n=(0,t.shallowCopy)(e||{});return["from","to"].forEach(function(i){n[i]!=null&&Yt.throwError("cannot override "+i,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:i})}),n.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(n))}connect(e){typeof e=="string"&&(e=new ie(e,this.provider));const n=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,t.defineReadOnly)(n,"deployTransaction",this.deployTransaction),n}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return cr.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new xo);if(e==="event")return this._normalizeRunningEvent(new Go("event",null));if(e==="*")return this._normalizeRunningEvent(new Vo(this.address,this.interface));const n=this.interface.getEvent(e);return this._normalizeRunningEvent(new ti(this.address,this.interface,n))}if(e.topics&&e.topics.length>0){try{const i=e.topics[0];if(typeof i!="string")throw new Error("invalid topic");const d=this.interface.getEvent(i);return this._normalizeRunningEvent(new ti(this.address,this.interface,d,e.topics))}catch{}const n={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Go(Sn(n),n))}return this._normalizeRunningEvent(new Vo(this.address,this.interface))}_checkRunningEvents(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];const n=this._wrappedEmits[e.tag];n&&e.filter&&(this.provider.off(e.filter,n),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,n,i){const d=(0,t.deepCopy)(n);return d.removeListener=()=>{!i||(e.removeListener(i),this._checkRunningEvents(e))},d.getBlock=()=>this.provider.getBlock(n.blockHash),d.getTransaction=()=>this.provider.getTransaction(n.transactionHash),d.getTransactionReceipt=()=>this.provider.getTransactionReceipt(n.transactionHash),e.prepareEvent(d),d}_addEventListener(e,n,i){if(this.provider||Yt.throwError("events require a provider or a signer with a provider",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(n,i),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const d=g=>{let p=this._wrapEvent(e,g,n);if(p.decodeError==null)try{const E=e.getEmit(p);this.emit(e.filter,...E)}catch(E){p.decodeError=E.error}e.filter!=null&&this.emit("event",p),p.decodeError!=null&&this.emit("error",p.decodeError,p)};this._wrappedEmits[e.tag]=d,e.filter!=null&&this.provider.on(e.filter,d)}}queryFilter(e,n,i){const d=this._getRunningEvent(e),g=(0,t.shallowCopy)(d.filter);return typeof n=="string"&&(0,f.isHexString)(n,32)?(i!=null&&Yt.throwArgumentError("cannot specify toBlock with blockhash","toBlock",i),g.blockHash=n):(g.fromBlock=n!=null?n:0,g.toBlock=i!=null?i:"latest"),this.provider.getLogs(g).then(p=>p.map(E=>this._wrapEvent(d,E,null)))}on(e,n){return this._addEventListener(this._getRunningEvent(e),n,!1),this}once(e,n){return this._addEventListener(this._getRunningEvent(e),n,!0),this}emit(e,...n){if(!this.provider)return!1;const i=this._getRunningEvent(e),d=i.run(n)>0;return this._checkRunningEvents(i),d}listenerCount(e){return this.provider?e==null?Object.keys(this._runningEvents).reduce((n,i)=>n+this._runningEvents[i].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(e==null){const n=[];for(let i in this._runningEvents)this._runningEvents[i].listeners().forEach(d=>{n.push(d)});return n}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(e==null){for(const i in this._runningEvents){const d=this._runningEvents[i];d.removeAllListeners(),this._checkRunningEvents(d)}return this}const n=this._getRunningEvent(e);return n.removeAllListeners(),this._checkRunningEvents(n),this}off(e,n){if(!this.provider)return this;const i=this._getRunningEvent(e);return i.removeListener(n),this._checkRunningEvents(i),this}removeListener(e,n){return this.off(e,n)}}class $o extends Pn{}class Ho{constructor(e,n,i){let d=null;typeof n=="string"?d=n:(0,f.isBytes)(n)?d=(0,f.hexlify)(n):n&&typeof n.object=="string"?d=n.object:d="!",d.substring(0,2)!=="0x"&&(d="0x"+d),(!(0,f.isHexString)(d)||d.length%2)&&Yt.throwArgumentError("invalid bytecode","bytecode",n),i&&!N.isSigner(i)&&Yt.throwArgumentError("invalid signer","signer",i),(0,t.defineReadOnly)(this,"bytecode",d),(0,t.defineReadOnly)(this,"interface",(0,t.getStatic)(new.target,"getInterface")(e)),(0,t.defineReadOnly)(this,"signer",i||null)}getDeployTransaction(...e){let n={};if(e.length===this.interface.deploy.inputs.length+1&&typeof e[e.length-1]=="object"){n=(0,t.shallowCopy)(e.pop());for(const i in n)if(!Di[i])throw new Error("unknown transaction override "+i)}return["data","from","to"].forEach(i=>{n[i]!=null&&Yt.throwError("cannot override "+i,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:i})}),n.value&&!a.O$.from(n.value).isZero()&&!this.interface.deploy.payable&&Yt.throwError("non-payable constructor cannot override value",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),Yt.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),n.data=(0,f.hexlify)((0,f.concat)([this.bytecode,this.interface.encodeDeploy(e)])),n}deploy(...e){return po(this,void 0,void 0,function*(){let n={};e.length===this.interface.deploy.inputs.length+1&&(n=e.pop()),Yt.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");const i=yield Fo(this.signer,e,this.interface.deploy.inputs);i.push(n);const d=this.getDeployTransaction(...i),g=yield this.signer.sendTransaction(d),p=(0,t.getStatic)(this.constructor,"getContractAddress")(g),E=(0,t.getStatic)(this.constructor,"getContract")(p,this.interface,this.signer);return Xn(E,g),(0,t.defineReadOnly)(E,"deployTransaction",g),E})}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,n){e==null&&Yt.throwError("missing compiler output",r.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),typeof e=="string"&&(e=JSON.parse(e));const i=e.abi;let d=null;return e.bytecode?d=e.bytecode:e.evm&&e.evm.bytecode&&(d=e.evm.bytecode),new this(i,d,n)}static getInterface(e){return $o.getInterface(e)}static getContractAddress(e){return ke(e)}static getContract(e,n,i){return new $o(e,n,i)}}var Mo=C(20335);const ri=`Ethereum Signed Message:
|
|
2
2
|
`;function an(u){return typeof u=="string"&&(u=(0,nt.Y0)(u)),(0,re.keccak256)((0,f.concat)([(0,nt.Y0)(ri),(0,nt.Y0)(String(u.length)),u]))}const cn="hash/5.7.0";var oi=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const rt=new r.Logger(cn),Pr=new Uint8Array(32);Pr.fill(0);const Lt=a.O$.from(-1),ni=a.O$.from(0),On=a.O$.from(1),ii=a.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function bo(u){const e=(0,f.arrayify)(u),n=e.length%32;return n?(0,f.hexConcat)([e,Pr.slice(n)]):(0,f.hexlify)(e)}const go=(0,f.hexZeroPad)(On.toHexString(),32),si=(0,f.hexZeroPad)(ni.toHexString(),32),Fn={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Yr=["name","version","chainId","verifyingContract","salt"];function un(u){return function(e){return typeof e!="string"&&rt.throwArgumentError(`invalid domain value for ${JSON.stringify(u)}`,`domain.${u}`,e),e}}const Ui={name:un("name"),version:un("version"),chainId:function(u){try{return a.O$.from(u).toString()}catch{}return rt.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",u)},verifyingContract:function(u){try{return Oe(u).toLowerCase()}catch{}return rt.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",u)},salt:function(u){try{const e=(0,f.arrayify)(u);if(e.length!==32)throw new Error("bad length");return(0,f.hexlify)(e)}catch{}return rt.throwArgumentError('invalid domain value "salt"',"domain.salt",u)}};function ln(u){{const e=u.match(/^(u?)int(\d*)$/);if(e){const n=e[1]==="",i=parseInt(e[2]||"256");(i%8!==0||i>256||e[2]&&e[2]!==String(i))&&rt.throwArgumentError("invalid numeric width","type",u);const d=ii.mask(n?i-1:i),g=n?d.add(On).mul(Lt):ni;return function(p){const E=a.O$.from(p);return(E.lt(g)||E.gt(d))&&rt.throwArgumentError(`value out-of-bounds for ${u}`,"value",p),(0,f.hexZeroPad)(E.toTwos(256).toHexString(),32)}}}{const e=u.match(/^bytes(\d+)$/);if(e){const n=parseInt(e[1]);return(n===0||n>32||e[1]!==String(n))&&rt.throwArgumentError("invalid bytes width","type",u),function(i){return(0,f.arrayify)(i).length!==n&&rt.throwArgumentError(`invalid length for ${u}`,"value",i),bo(i)}}}switch(u){case"address":return function(e){return(0,f.hexZeroPad)(Oe(e),32)};case"bool":return function(e){return e?go:si};case"bytes":return function(e){return(0,re.keccak256)(e)};case"string":return function(e){return vt(e)}}return null}function Mn(u,e){return`${u}(${e.map(({name:n,type:i})=>i+" "+n).join(",")})`}class Ar{constructor(e){(0,t.defineReadOnly)(this,"types",Object.freeze((0,t.deepCopy)(e))),(0,t.defineReadOnly)(this,"_encoderCache",{}),(0,t.defineReadOnly)(this,"_types",{});const n={},i={},d={};Object.keys(e).forEach(E=>{n[E]={},i[E]=[],d[E]={}});for(const E in e){const R={};e[E].forEach(U=>{R[U.name]&&rt.throwArgumentError(`duplicate variable name ${JSON.stringify(U.name)} in ${JSON.stringify(E)}`,"types",e),R[U.name]=!0;const Z=U.type.match(/^([^\x5b]*)(\x5b|$)/)[1];Z===E&&rt.throwArgumentError(`circular type reference to ${JSON.stringify(Z)}`,"types",e),!ln(Z)&&(i[Z]||rt.throwArgumentError(`unknown type ${JSON.stringify(Z)}`,"types",e),i[Z].push(E),n[E][Z]=!0)})}const g=Object.keys(i).filter(E=>i[E].length===0);g.length===0?rt.throwArgumentError("missing primary type","types",e):g.length>1&&rt.throwArgumentError(`ambiguous primary types or unused types: ${g.map(E=>JSON.stringify(E)).join(", ")}`,"types",e),(0,t.defineReadOnly)(this,"primaryType",g[0]);function p(E,R){R[E]&&rt.throwArgumentError(`circular type reference to ${JSON.stringify(E)}`,"types",e),R[E]=!0,Object.keys(n[E]).forEach(U=>{!i[U]||(p(U,R),Object.keys(R).forEach(Z=>{d[Z][U]=!0}))}),delete R[E]}p(this.primaryType,{});for(const E in d){const R=Object.keys(d[E]);R.sort(),this._types[E]=Mn(E,e[E])+R.map(U=>Mn(U,e[U])).join("")}}getEncoder(e){let n=this._encoderCache[e];return n||(n=this._encoderCache[e]=this._getEncoder(e)),n}_getEncoder(e){{const d=ln(e);if(d)return d}const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const d=n[1],g=this.getEncoder(d),p=parseInt(n[3]);return E=>{p>=0&&E.length!==p&&rt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",E);let R=E.map(g);return this._types[d]&&(R=R.map(re.keccak256)),(0,re.keccak256)((0,f.hexConcat)(R))}}const i=this.types[e];if(i){const d=vt(this._types[e]);return g=>{const p=i.map(({name:E,type:R})=>{const U=this.getEncoder(R)(g[E]);return this._types[R]?(0,re.keccak256)(U):U});return p.unshift(d),(0,f.hexConcat)(p)}}return rt.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const n=this._types[e];return n||rt.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),n}encodeData(e,n){return this.getEncoder(e)(n)}hashStruct(e,n){return(0,re.keccak256)(this.encodeData(e,n))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,n,i){if(ln(e))return i(e,n);const d=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(d){const p=d[1],E=parseInt(d[3]);return E>=0&&n.length!==E&&rt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",n),n.map(R=>this._visit(p,R,i))}const g=this.types[e];return g?g.reduce((p,{name:E,type:R})=>(p[E]=this._visit(R,n[E],i),p),{}):rt.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,n){return this._visit(this.primaryType,e,n)}static from(e){return new Ar(e)}static getPrimaryType(e){return Ar.from(e).primaryType}static hashStruct(e,n,i){return Ar.from(n).hashStruct(e,i)}static hashDomain(e){const n=[];for(const i in e){const d=Fn[i];d||rt.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(i)}`,"domain",e),n.push({name:i,type:d})}return n.sort((i,d)=>Yr.indexOf(i.name)-Yr.indexOf(d.name)),Ar.hashStruct("EIP712Domain",{EIP712Domain:n},e)}static encode(e,n,i){return(0,f.hexConcat)(["0x1901",Ar.hashDomain(e),Ar.from(n).hash(i)])}static hash(e,n,i){return(0,re.keccak256)(Ar.encode(e,n,i))}static resolveNames(e,n,i,d){return oi(this,void 0,void 0,function*(){e=(0,t.shallowCopy)(e);const g={};e.verifyingContract&&!(0,f.isHexString)(e.verifyingContract,20)&&(g[e.verifyingContract]="0x");const p=Ar.from(n);p.visit(i,(E,R)=>(E==="address"&&!(0,f.isHexString)(R,20)&&(g[R]="0x"),R));for(const E in g)g[E]=yield d(E);return e.verifyingContract&&g[e.verifyingContract]&&(e.verifyingContract=g[e.verifyingContract]),i=p.visit(i,(E,R)=>E==="address"&&g[R]?g[R]:R),{domain:e,value:i}})}static getPayload(e,n,i){Ar.hashDomain(e);const d={},g=[];Yr.forEach(R=>{const U=e[R];U!=null&&(d[R]=Ui[R](U),g.push({name:R,type:Fn[R]}))});const p=Ar.from(n),E=(0,t.shallowCopy)(n);return E.EIP712Domain?rt.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",n):E.EIP712Domain=g,p.encode(i),{types:E,domain:d,primaryType:p.primaryType,message:p.visit(i,(R,U)=>{if(R.match(/^bytes(\d*)/))return(0,f.hexlify)((0,f.arrayify)(U));if(R.match(/^u?int/))return a.O$.from(U).toString();switch(R){case"address":return U.toLowerCase();case"bool":return!!U;case"string":return typeof U!="string"&&rt.throwArgumentError("invalid string","value",U),U}return rt.throwArgumentError("unsupported type","type",R)})}}}class ai{constructor(e){(0,t.defineReadOnly)(this,"alphabet",e),(0,t.defineReadOnly)(this,"base",e.length),(0,t.defineReadOnly)(this,"_alphabetMap",{}),(0,t.defineReadOnly)(this,"_leader",e.charAt(0));for(let n=0;n<e.length;n++)this._alphabetMap[e.charAt(n)]=n}encode(e){let n=(0,f.arrayify)(e);if(n.length===0)return"";let i=[0];for(let g=0;g<n.length;++g){let p=n[g];for(let E=0;E<i.length;++E)p+=i[E]<<8,i[E]=p%this.base,p=p/this.base|0;for(;p>0;)i.push(p%this.base),p=p/this.base|0}let d="";for(let g=0;n[g]===0&&g<n.length-1;++g)d+=this._leader;for(let g=i.length-1;g>=0;--g)d+=this.alphabet[i[g]];return d}decode(e){if(typeof e!="string")throw new TypeError("Expected String");let n=[];if(e.length===0)return new Uint8Array(n);n.push(0);for(let i=0;i<e.length;i++){let d=this._alphabetMap[e[i]];if(d===void 0)throw new Error("Non-base"+this.base+" character");let g=d;for(let p=0;p<n.length;++p)g+=n[p]*this.base,n[p]=g&255,g>>=8;for(;g>0;)n.push(g&255),g>>=8}for(let i=0;e[i]===this._leader&&i<e.length-1;++i)n.push(0);return(0,f.arrayify)(new Uint8Array(n.reverse()))}}const Li=new ai("abcdefghijklmnopqrstuvwxyz234567"),Ao=new ai("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");var Or;(function(u){u.sha256="sha256",u.sha512="sha512"})(Or||(Or={}));const zi="sha2/5.7.0",ji=new r.Logger(zi);function zt(u){return"0x"+Rt().ripemd160().update((0,f.arrayify)(u)).digest("hex")}function B(u){return"0x"+Rt().sha256().update((0,f.arrayify)(u)).digest("hex")}function I(u){return"0x"+Rt().sha512().update((0,f.arrayify)(u)).digest("hex")}function _(u,e,n){return Or[u]||ji.throwError("unsupported algorithm "+u,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:u}),"0x"+Rt().hmac(Rt()[u],(0,f.arrayify)(e)).update((0,f.arrayify)(n)).digest("hex")}function S(u,e,n,i,d){u=(0,f.arrayify)(u),e=(0,f.arrayify)(e);let g,p=1;const E=new Uint8Array(i),R=new Uint8Array(e.length+4);R.set(e);let U,Z;for(let ue=1;ue<=p;ue++){R[e.length]=ue>>24&255,R[e.length+1]=ue>>16&255,R[e.length+2]=ue>>8&255,R[e.length+3]=ue&255;let Me=(0,f.arrayify)(_(d,u,R));g||(g=Me.length,Z=new Uint8Array(g),p=Math.ceil(i/g),U=i-(p-1)*g),Z.set(Me);for(let Ve=1;Ve<n;Ve++){Me=(0,f.arrayify)(_(d,u,Me));for(let at=0;at<g;at++)Z[at]^=Me[at]}const Se=(ue-1)*g,Le=ue===p?U:g;E.set((0,f.arrayify)(Z).slice(0,Le),Se)}return(0,f.hexlify)(E)}const te="wordlists/5.7.0",w=!1,v=new r.Logger(te);class b{constructor(e){v.checkAbstract(new.target,b),(0,t.defineReadOnly)(this,"locale",e)}split(e){return e.toLowerCase().split(/ +/g)}join(e){return e.join(" ")}static check(e){const n=[];for(let i=0;i<2048;i++){const d=e.getWord(i);if(i!==e.getWordIndex(d))return"0x";n.push(d)}return vt(n.join(`
|
|
3
3
|
`)+`
|
|
4
4
|
`)}static register(e,n){if(n||(n=e.locale),w)try{const i=window;i._ethers&&i._ethers.wordlists&&(i._ethers.wordlists[n]||(0,t.defineReadOnly)(i._ethers.wordlists,n,e))}catch{}}}const A="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo";let T=null;function W(u){if(T==null&&(T=A.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),b.check(u)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw T=null,new Error("BIP39 Wordlist for en (English) FAILED")}class le extends b{constructor(){super("en")}getWord(e){return W(this),T[e]}getWordIndex(e){return W(this),T.indexOf(e)}}const Be=new le;b.register(Be);const Re={en:Be},We="hdnode/5.7.0",qe=new r.Logger(We),yt=a.O$.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),mt=(0,nt.Y0)("Bitcoin seed"),V=2147483648;function M(u){return(1<<u)-1<<8-u}function k(u){return(1<<u)-1}function Y(u){return(0,f.hexZeroPad)((0,f.hexlify)(u),32)}function q(u){return Ao.encode((0,f.concat)([u,(0,f.hexDataSlice)(B(B(u)),0,4)]))}function ee(u){if(u==null)return Re.en;if(typeof u=="string"){const e=Re[u];return e==null&&qe.throwArgumentError("unknown locale","wordlist",u),e}return u}const pe={},ye="m/44'/60'/0'/0/0";class he{constructor(e,n,i,d,g,p,E,R){if(e!==pe)throw new Error("HDNode constructor cannot be called directly");if(n){const U=new vo(n);(0,t.defineReadOnly)(this,"privateKey",U.privateKey),(0,t.defineReadOnly)(this,"publicKey",U.compressedPublicKey)}else(0,t.defineReadOnly)(this,"privateKey",null),(0,t.defineReadOnly)(this,"publicKey",(0,f.hexlify)(i));(0,t.defineReadOnly)(this,"parentFingerprint",d),(0,t.defineReadOnly)(this,"fingerprint",(0,f.hexDataSlice)(zt(B(this.publicKey)),0,4)),(0,t.defineReadOnly)(this,"address",qr(this.publicKey)),(0,t.defineReadOnly)(this,"chainCode",g),(0,t.defineReadOnly)(this,"index",p),(0,t.defineReadOnly)(this,"depth",E),R==null?((0,t.defineReadOnly)(this,"mnemonic",null),(0,t.defineReadOnly)(this,"path",null)):typeof R=="string"?((0,t.defineReadOnly)(this,"mnemonic",null),(0,t.defineReadOnly)(this,"path",R)):((0,t.defineReadOnly)(this,"mnemonic",R),(0,t.defineReadOnly)(this,"path",R.path))}get extendedKey(){if(this.depth>=256)throw new Error("Depth too large!");return q((0,f.concat)([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",(0,f.hexlify)(this.depth),this.parentFingerprint,(0,f.hexZeroPad)((0,f.hexlify)(this.index),4),this.chainCode,this.privateKey!=null?(0,f.concat)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new he(pe,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let n=this.path;n&&(n+="/"+(e&~V));const i=new Uint8Array(37);if(e&V){if(!this.privateKey)throw new Error("cannot derive child of neutered node");i.set((0,f.arrayify)(this.privateKey),1),n&&(n+="'")}else i.set((0,f.arrayify)(this.publicKey));for(let ue=24;ue>=0;ue-=8)i[33+(ue>>3)]=e>>24-ue&255;const d=(0,f.arrayify)(_(Or.sha512,this.chainCode,i)),g=d.slice(0,32),p=d.slice(32);let E=null,R=null;this.privateKey?E=Y(a.O$.from(g).add(this.privateKey).mod(yt)):R=new vo((0,f.hexlify)(g))._addPoint(this.publicKey);let U=n;const Z=this.mnemonic;return Z&&(U=Object.freeze({phrase:Z.phrase,path:n,locale:Z.locale||"en"})),new he(pe,E,R,this.fingerprint,Y(p),e,this.depth+1,U)}derivePath(e){const n=e.split("/");if(n.length===0||n[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);n[0]==="m"&&n.shift();let i=this;for(let d=0;d<n.length;d++){const g=n[d];if(g.match(/^[0-9]+'$/)){const p=parseInt(g.substring(0,g.length-1));if(p>=V)throw new Error("invalid path index - "+g);i=i._derive(V+p)}else if(g.match(/^[0-9]+$/)){const p=parseInt(g);if(p>=V)throw new Error("invalid path index - "+g);i=i._derive(p)}else throw new Error("invalid path component - "+g)}return i}static _fromSeed(e,n){const i=(0,f.arrayify)(e);if(i.length<16||i.length>64)throw new Error("invalid seed");const d=(0,f.arrayify)(_(Or.sha512,mt,i));return new he(pe,Y(d.slice(0,32)),null,"0x00000000",Y(d.slice(32)),0,0,n)}static fromMnemonic(e,n,i){return i=ee(i),e=Ae(me(e,i),i),he._fromSeed(de(e,n),{phrase:e,path:"m",locale:i.locale})}static fromSeed(e){return he._fromSeed(e,null)}static fromExtendedKey(e){const n=Ao.decode(e);(n.length!==82||q(n.slice(0,78))!==e)&&qe.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const i=n[4],d=(0,f.hexlify)(n.slice(5,9)),g=parseInt((0,f.hexlify)(n.slice(9,13)).substring(2),16),p=(0,f.hexlify)(n.slice(13,45)),E=n.slice(45,78);switch((0,f.hexlify)(n.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new he(pe,null,(0,f.hexlify)(E),d,p,g,i,null);case"0x0488ade4":case"0x04358394 ":if(E[0]!==0)break;return new he(pe,(0,f.hexlify)(E.slice(1)),null,d,p,g,i,null)}return qe.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function de(u,e){e||(e="");const n=(0,nt.Y0)("mnemonic"+e,nt.Uj.NFKD);return S((0,nt.Y0)(u,nt.Uj.NFKD),n,2048,64,"sha512")}function me(u,e){e=ee(e),qe.checkNormalize();const n=e.split(u);if(n.length%3!==0)throw new Error("invalid mnemonic");const i=(0,f.arrayify)(new Uint8Array(Math.ceil(11*n.length/8)));let d=0;for(let U=0;U<n.length;U++){let Z=e.getWordIndex(n[U].normalize("NFKD"));if(Z===-1)throw new Error("invalid mnemonic");for(let ue=0;ue<11;ue++)Z&1<<10-ue&&(i[d>>3]|=1<<7-d%8),d++}const g=32*n.length/3,p=n.length/3,E=M(p);if(((0,f.arrayify)(B(i.slice(0,g/8)))[0]&E)!==(i[i.length-1]&E))throw new Error("invalid checksum");return(0,f.hexlify)(i.slice(0,g/8))}function Ae(u,e){if(e=ee(e),u=(0,f.arrayify)(u),u.length%4!==0||u.length<16||u.length>32)throw new Error("invalid entropy");const n=[0];let i=11;for(let p=0;p<u.length;p++)i>8?(n[n.length-1]<<=8,n[n.length-1]|=u[p],i-=8):(n[n.length-1]<<=i,n[n.length-1]|=u[p]>>8-i,n.push(u[p]&k(8-i)),i+=3);const d=u.length/4,g=(0,f.arrayify)(B(u))[0]&M(d);return n[n.length-1]<<=d,n[n.length-1]|=g>>8-d,e.join(n.map(p=>e.getWord(p)))}function ge(u,e){try{return me(u,e),!0}catch{}return!1}function Ie(u){return(typeof u!="number"||u<0||u>=V||u%1)&&qe.throwArgumentError("invalid account index","index",u),`m/44'/60'/${u}'/0/0`}const $e="random/5.7.0",Qe=new r.Logger($e);function Dt(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof C.g<"u")return C.g;throw new Error("unable to locate global object")}const Ye=Dt();let wr=Ye.crypto||Ye.msCrypto;(!wr||!wr.getRandomValues)&&(Qe.warn("WARNING: Missing strong random number source"),wr={getRandomValues:function(u){return Qe.throwError("no secure random source avaialble",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function Xr(u){(u<=0||u>1024||u%1||u!=u)&&Qe.throwArgumentError("invalid length","length",u);const e=new Uint8Array(u);return wr.getRandomValues(e),(0,f.arrayify)(e)}var dn=C(48709),mr=C.n(dn);const Kt="json-wallets/5.7.0";function wo(u){return typeof u=="string"&&u.substring(0,2)!=="0x"&&(u="0x"+u),(0,f.arrayify)(u)}function Ko(u,e){for(u=String(u);u.length<e;)u="0"+u;return u}function fn(u){return typeof u=="string"?(0,nt.Y0)(u,nt.Uj.NFKC):(0,f.arrayify)(u)}function Zt(u,e){let n=u;const i=e.toLowerCase().split("/");for(let d=0;d<i.length;d++){let g=null;for(const p in n)if(p.toLowerCase()===i[d]){g=n[p];break}if(g===null)return null;n=g}return n}function pn(u){const e=(0,f.arrayify)(u);e[6]=e[6]&15|64,e[8]=e[8]&63|128;const n=(0,f.hexlify)(e);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join("-")}const Rn=new r.Logger(Kt);class Fr extends t.Description{isCrowdsaleAccount(e){return!!(e&&e._isCrowdsaleAccount)}}function ps(u,e){const n=JSON.parse(u);e=fn(e);const i=Oe(Zt(n,"ethaddr")),d=wo(Zt(n,"encseed"));(!d||d.length%16!==0)&&Rn.throwArgumentError("invalid encseed","json",u);const g=(0,f.arrayify)(S(e,e,2e3,32,"sha256")).slice(0,16),p=d.slice(0,16),E=d.slice(16),R=new(mr()).ModeOfOperation.cbc(g,p),U=mr().padding.pkcs7.strip((0,f.arrayify)(R.decrypt(E)));let Z="";for(let Se=0;Se<U.length;Se++)Z+=String.fromCharCode(U[Se]);const ue=(0,nt.Y0)(Z),Me=(0,re.keccak256)(ue);return new Fr({_isCrowdsaleAccount:!0,address:i,privateKey:Me})}function Gi(u){let e=null;try{e=JSON.parse(u)}catch{return!1}return e.encseed&&e.ethaddr}function Vi(u){let e=null;try{e=JSON.parse(u)}catch{return!1}return!(!e.version||parseInt(e.version)!==e.version||parseInt(e.version)!==3)}function Sa(u){if(Gi(u))try{return Oe(JSON.parse(u).ethaddr)}catch{return null}if(Vi(u))try{return Oe(JSON.parse(u).address)}catch{return null}return null}var Pa=C(17635),$i=C.n(Pa),Oa=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const Hi=new r.Logger(Kt);function hs(u){return u!=null&&u.mnemonic&&u.mnemonic.phrase}class Fa extends t.Description{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function Ma(u,e,n){if(Zt(u,"crypto/cipher")==="aes-128-ctr"){const d=wo(Zt(u,"crypto/cipherparams/iv")),g=new(mr()).Counter(d),p=new(mr()).ModeOfOperation.ctr(e,g);return(0,f.arrayify)(p.decrypt(n))}return null}function gs(u,e){const n=wo(Zt(u,"crypto/ciphertext"));if((0,f.hexlify)((0,re.keccak256)((0,f.concat)([e.slice(16,32),n]))).substring(2)!==Zt(u,"crypto/mac").toLowerCase())throw new Error("invalid password");const d=Ma(u,e.slice(0,16),n);d||Hi.throwError("unsupported cipher",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const g=e.slice(32,64),p=qr(d);if(u.address){let R=u.address.toLowerCase();if(R.substring(0,2)!=="0x"&&(R="0x"+R),Oe(R)!==p)throw new Error("address mismatch")}const E={_isKeystoreAccount:!0,address:p,privateKey:(0,f.hexlify)(d)};if(Zt(u,"x-ethers/version")==="0.1"){const R=wo(Zt(u,"x-ethers/mnemonicCiphertext")),U=wo(Zt(u,"x-ethers/mnemonicCounter")),Z=new(mr()).Counter(U),ue=new(mr()).ModeOfOperation.ctr(g,Z),Me=Zt(u,"x-ethers/path")||ye,Se=Zt(u,"x-ethers/locale")||"en",Le=(0,f.arrayify)(ue.decrypt(R));try{const Ve=Ae(Le,Se),at=he.fromMnemonic(Ve,null,Se).derivePath(Me);if(at.privateKey!=E.privateKey)throw new Error("mnemonic mismatch");E.mnemonic=at.mnemonic}catch(Ve){if(Ve.code!==r.Logger.errors.INVALID_ARGUMENT||Ve.argument!=="wordlist")throw Ve}}return new Fa(E)}function ys(u,e,n,i,d){return(0,f.arrayify)(S(u,e,n,i,d))}function Ra(u,e,n,i,d){return Promise.resolve(ys(u,e,n,i,d))}function ms(u,e,n,i,d){const g=fn(e),p=Zt(u,"crypto/kdf");if(p&&typeof p=="string"){const E=function(R,U){return Hi.throwArgumentError("invalid key-derivation function parameters",R,U)};if(p.toLowerCase()==="scrypt"){const R=wo(Zt(u,"crypto/kdfparams/salt")),U=parseInt(Zt(u,"crypto/kdfparams/n")),Z=parseInt(Zt(u,"crypto/kdfparams/r")),ue=parseInt(Zt(u,"crypto/kdfparams/p"));(!U||!Z||!ue)&&E("kdf",p),(U&U-1)!==0&&E("N",U);const Me=parseInt(Zt(u,"crypto/kdfparams/dklen"));return Me!==32&&E("dklen",Me),i(g,R,U,Z,ue,64,d)}else if(p.toLowerCase()==="pbkdf2"){const R=wo(Zt(u,"crypto/kdfparams/salt"));let U=null;const Z=Zt(u,"crypto/kdfparams/prf");Z==="hmac-sha256"?U="sha256":Z==="hmac-sha512"?U="sha512":E("prf",Z);const ue=parseInt(Zt(u,"crypto/kdfparams/c")),Me=parseInt(Zt(u,"crypto/kdfparams/dklen"));return Me!==32&&E("dklen",Me),n(g,R,ue,Me,U)}}return Hi.throwArgumentError("unsupported key-derivation function","kdf",p)}function ka(u,e){const n=JSON.parse(u),i=ms(n,e,ys,$i().syncScrypt);return gs(n,i)}function _a(u,e,n){return Oa(this,void 0,void 0,function*(){const i=JSON.parse(u),d=yield ms(i,e,Ra,$i().scrypt,n);return gs(i,d)})}function Na(u,e,n,i){try{if(Oe(u.address)!==qr(u.privateKey))throw new Error("address/privateKey mismatch");if(hs(u)){const at=u.mnemonic;if(he.fromMnemonic(at.phrase,null,at.locale).derivePath(at.path||ye).privateKey!=u.privateKey)throw new Error("mnemonic mismatch")}}catch(at){return Promise.reject(at)}typeof n=="function"&&!i&&(i=n,n={}),n||(n={});const d=(0,f.arrayify)(u.privateKey),g=fn(e);let p=null,E=null,R=null;if(hs(u)){const at=u.mnemonic;p=(0,f.arrayify)(me(at.phrase,at.locale||"en")),E=at.path||ye,R=at.locale||"en"}let U=n.client;U||(U="ethers.js");let Z=null;n.salt?Z=(0,f.arrayify)(n.salt):Z=Xr(32);let ue=null;if(n.iv){if(ue=(0,f.arrayify)(n.iv),ue.length!==16)throw new Error("invalid iv")}else ue=Xr(16);let Me=null;if(n.uuid){if(Me=(0,f.arrayify)(n.uuid),Me.length!==16)throw new Error("invalid uuid")}else Me=Xr(16);let Se=1<<17,Le=8,Ve=1;return n.scrypt&&(n.scrypt.N&&(Se=n.scrypt.N),n.scrypt.r&&(Le=n.scrypt.r),n.scrypt.p&&(Ve=n.scrypt.p)),$i().scrypt(g,Z,Se,Le,Ve,64,i).then(at=>{at=(0,f.arrayify)(at);const et=at.slice(0,16),At=at.slice(16,32),Gt=at.slice(32,64),or=new(mr()).Counter(ue),_t=new(mr()).ModeOfOperation.ctr(et,or),pr=(0,f.arrayify)(_t.encrypt(d)),To=(0,re.keccak256)((0,f.concat)([At,pr])),Ur={address:u.address.substring(2).toLowerCase(),id:pn(Me),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,f.hexlify)(ue).substring(2)},ciphertext:(0,f.hexlify)(pr).substring(2),kdf:"scrypt",kdfparams:{salt:(0,f.hexlify)(Z).substring(2),n:Se,dklen:32,p:Ve,r:Le},mac:To.substring(2)}};if(p){const Nr=Xr(16),$n=new(mr()).Counter(Nr),cu=new(mr()).ModeOfOperation.ctr(Gt,$n),uu=(0,f.arrayify)(cu.encrypt(p)),xn=new Date,lu=xn.getUTCFullYear()+"-"+Ko(xn.getUTCMonth()+1,2)+"-"+Ko(xn.getUTCDate(),2)+"T"+Ko(xn.getUTCHours(),2)+"-"+Ko(xn.getUTCMinutes(),2)+"-"+Ko(xn.getUTCSeconds(),2)+".0Z";Ur["x-ethers"]={client:U,gethFilename:"UTC--"+lu+"--"+Ur.address,mnemonicCounter:(0,f.hexlify)(Nr).substring(2),mnemonicCiphertext:(0,f.hexlify)(uu).substring(2),path:E,locale:R,version:"0.1"}}return JSON.stringify(Ur)})}function Da(u,e,n){if(Gi(u)){n&&n(0);const i=ps(u,e);return n&&n(1),Promise.resolve(i)}return Vi(u)?_a(u,e,n):Promise.reject(new Error("invalid JSON wallet"))}function Wa(u,e){if(Gi(u))return ps(u,e);if(Vi(u))return ka(u,e);throw new Error("invalid JSON wallet")}const Ua="wallet/5.7.0";var vs=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const hn=new r.Logger(Ua);function La(u){return u!=null&&(0,f.isHexString)(u.privateKey,32)&&u.address!=null}function za(u){const e=u.mnemonic;return e&&e.phrase}class Ro extends N{constructor(e,n){if(super(),La(e)){const i=new vo(e.privateKey);if((0,t.defineReadOnly)(this,"_signingKey",()=>i),(0,t.defineReadOnly)(this,"address",qr(this.publicKey)),this.address!==Oe(e.address)&&hn.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),za(e)){const d=e.mnemonic;(0,t.defineReadOnly)(this,"_mnemonic",()=>({phrase:d.phrase,path:d.path||ye,locale:d.locale||"en"}));const g=this.mnemonic,p=he.fromMnemonic(g.phrase,null,g.locale).derivePath(g.path);qr(p.privateKey)!==this.address&&hn.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,t.defineReadOnly)(this,"_mnemonic",()=>null)}else{if(vo.isSigningKey(e))e.curve!=="secp256k1"&&hn.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,t.defineReadOnly)(this,"_signingKey",()=>e);else{typeof e=="string"&&e.match(/^[0-9a-f]*$/i)&&e.length===64&&(e="0x"+e);const i=new vo(e);(0,t.defineReadOnly)(this,"_signingKey",()=>i)}(0,t.defineReadOnly)(this,"_mnemonic",()=>null),(0,t.defineReadOnly)(this,"address",qr(this.publicKey))}n&&!it.isProvider(n)&&hn.throwArgumentError("invalid provider","provider",n),(0,t.defineReadOnly)(this,"provider",n||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new Ro(this,e)}signTransaction(e){return(0,t.resolveProperties)(e).then(n=>{n.from!=null&&(Oe(n.from)!==this.address&&hn.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete n.from);const i=this._signingKey().signDigest((0,re.keccak256)(nn(n)));return nn(n,i)})}signMessage(e){return vs(this,void 0,void 0,function*(){return(0,f.joinSignature)(this._signingKey().signDigest(an(e)))})}_signTypedData(e,n,i){return vs(this,void 0,void 0,function*(){const d=yield Ar.resolveNames(e,n,i,g=>(this.provider==null&&hn.throwError("cannot resolve ENS names without a provider",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:g}),this.provider.resolveName(g)));return(0,f.joinSignature)(this._signingKey().signDigest(Ar.hash(d.domain,n,d.value)))})}encrypt(e,n,i){if(typeof n=="function"&&!i&&(i=n,n={}),i&&typeof i!="function")throw new Error("invalid callback");return n||(n={}),Na(this,e,n,i)}static createRandom(e){let n=Xr(16);e||(e={}),e.extraEntropy&&(n=(0,f.arrayify)((0,f.hexDataSlice)((0,re.keccak256)((0,f.concat)([n,e.extraEntropy])),0,16)));const i=Ae(n,e.locale);return Ro.fromMnemonic(i,e.path,e.locale)}static fromEncryptedJson(e,n,i){return Da(e,n,i).then(d=>new Ro(d))}static fromEncryptedJsonSync(e,n){return new Ro(Wa(e,n))}static fromMnemonic(e,n,i){return n||(n=ye),new Ro(he.fromMnemonic(e,null,i).derivePath(n))}}function ja(u,e){return zo(an(u),e)}function Ga(u,e,n,i){return zo(Ar.hash(u,e,n),i)}const xs="0x0000000000000000000000000000000000000000";var bs=C(57218);const Va="\u039E",$a="networks/5.7.1",As=new r.Logger($a);function Ha(u){return u&&typeof u.renetwork=="function"}function Co(u){const e=function(n,i){i==null&&(i={});const d=[];if(n.InfuraProvider&&i.infura!=="-")try{d.push(new n.InfuraProvider(u,i.infura))}catch{}if(n.EtherscanProvider&&i.etherscan!=="-")try{d.push(new n.EtherscanProvider(u,i.etherscan))}catch{}if(n.AlchemyProvider&&i.alchemy!=="-")try{d.push(new n.AlchemyProvider(u,i.alchemy))}catch{}if(n.PocketProvider&&i.pocket!=="-"){const g=["goerli","ropsten","rinkeby","sepolia"];try{const p=new n.PocketProvider(u,i.pocket);p.network&&g.indexOf(p.network.name)===-1&&d.push(p)}catch{}}if(n.CloudflareProvider&&i.cloudflare!=="-")try{d.push(new n.CloudflareProvider(u))}catch{}if(n.AnkrProvider&&i.ankr!=="-")try{const g=["ropsten"],p=new n.AnkrProvider(u,i.ankr);p.network&&g.indexOf(p.network.name)===-1&&d.push(p)}catch{}if(d.length===0)return null;if(n.FallbackProvider){let g=1;return i.quorum!=null?g=i.quorum:u==="homestead"&&(g=2),new n.FallbackProvider(d,g)}return d[0]};return e.renetwork=function(n){return Co(n)},e}function ci(u,e){const n=function(i,d){return i.JsonRpcProvider?new i.JsonRpcProvider(u,e):null};return n.renetwork=function(i){return ci(u,i)},n}const ws={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:Co("homestead")},Cs={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:Co("ropsten")},Bs={chainId:63,name:"classicMordor",_defaultProvider:ci("https://www.ethercluster.com/mordor","classicMordor")},ui={unspecified:{chainId:0,name:"unspecified"},homestead:ws,mainnet:ws,morden:{chainId:2,name:"morden"},ropsten:Cs,testnet:Cs,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:Co("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:Co("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:Co("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:Co("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:ci("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:Bs,classicTestnet:Bs,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:ci("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:Co("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:Co("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function Ki(u){if(u==null)return null;if(typeof u=="number"){for(const i in ui){const d=ui[i];if(d.chainId===u)return{name:d.name,chainId:d.chainId,ensAddress:d.ensAddress||null,_defaultProvider:d._defaultProvider||null}}return{chainId:u,name:"unknown"}}if(typeof u=="string"){const i=ui[u];return i==null?null:{name:i.name,chainId:i.chainId,ensAddress:i.ensAddress,_defaultProvider:i._defaultProvider||null}}const e=ui[u.name];if(!e)return typeof u.chainId!="number"&&As.throwArgumentError("invalid network chainId","network",u),u;u.chainId!==0&&u.chainId!==e.chainId&&As.throwArgumentError("network chainId mismatch","network",u);let n=u._defaultProvider||null;return n==null&&e._defaultProvider&&(Ha(e._defaultProvider)?n=e._defaultProvider.renetwork(u):n=e._defaultProvider),{name:u.name,chainId:e.chainId,ensAddress:u.ensAddress||e.ensAddress||null,_defaultProvider:n}}function Zi(u){u=atob(u);const e=[];for(let n=0;n<u.length;n++)e.push(u.charCodeAt(n));return(0,f.arrayify)(e)}function Ji(u){u=(0,f.arrayify)(u);let e="";for(let n=0;n<u.length;n++)e+=String.fromCharCode(u[n]);return btoa(e)}function Es(u,e){e==null&&(e=1);const n=[],i=n.forEach,d=function(g,p){i.call(g,function(E){p>0&&Array.isArray(E)?d(E,p-1):n.push(E)})};return d(u,e),n}function Ka(u){const e={};for(let n=0;n<u.length;n++){const i=u[n];e[i[0]]=i[1]}return e}function Za(u){let e=0;function n(){return u[e++]<<8|u[e++]}let i=n(),d=1,g=[0,1];for(let _t=1;_t<i;_t++)g.push(d+=n());let p=n(),E=e;e+=p;let R=0,U=0;function Z(){return R==0&&(U=U<<8|u[e++],R=8),U>>--R&1}const ue=31,Me=Math.pow(2,ue),Se=Me>>>1,Le=Se>>1,Ve=Me-1;let at=0;for(let _t=0;_t<ue;_t++)at=at<<1|Z();let et=[],At=0,Gt=Me;for(;;){let _t=Math.floor(((at-At+1)*d-1)/Gt),pr=0,To=i;for(;To-pr>1;){let $n=pr+To>>>1;_t<g[$n]?To=$n:pr=$n}if(pr==0)break;et.push(pr);let Ur=At+Math.floor(Gt*g[pr]/d),Nr=At+Math.floor(Gt*g[pr+1]/d)-1;for(;((Ur^Nr)&Se)==0;)at=at<<1&Ve|Z(),Ur=Ur<<1&Ve,Nr=Nr<<1&Ve|1;for(;Ur&~Nr&Le;)at=at&Se|at<<1&Ve>>>1|Z(),Ur=Ur<<1^Se,Nr=(Nr^Se)<<1|Se|1;At=Ur,Gt=1+Nr-Ur}let or=i-4;return et.map(_t=>{switch(_t-or){case 3:return or+65792+(u[E++]<<16|u[E++]<<8|u[E++]);case 2:return or+256+(u[E++]<<8|u[E++]);case 1:return or+u[E++];default:return _t-1}})}function Ja(u){let e=0;return()=>u[e++]}function qa(u){return Ja(Za(u))}function Ya(u){return u&1?~u>>1:u>>1}function Xa(u,e){let n=Array(u);for(let i=0;i<u;i++)n[i]=1+e();return n}function Ts(u,e){let n=Array(u);for(let i=0,d=-1;i<u;i++)n[i]=d+=1+e();return n}function Qa(u,e){let n=Array(u);for(let i=0,d=0;i<u;i++)n[i]=d+=Ya(e());return n}function li(u,e){let n=Ts(u(),u),i=u(),d=Ts(i,u),g=Xa(i,u);for(let p=0;p<i;p++)for(let E=0;E<g[p];E++)n.push(d[p]+E);return e?n.map(p=>e[p]):n}function ec(u){let e=[];for(;;){let n=u();if(n==0)break;e.push(rc(n,u))}for(;;){let n=u()-1;if(n<0)break;e.push(oc(n,u))}return Ka(Es(e))}function tc(u){let e=[];for(;;){let n=u();if(n==0)break;e.push(n)}return e}function Is(u,e,n){let i=Array(u).fill(void 0).map(()=>[]);for(let d=0;d<e;d++)Qa(u,n).forEach((g,p)=>i[p].push(g));return i}function rc(u,e){let n=1+e(),i=e(),d=tc(e),g=Is(d.length,1+u,e);return Es(g.map((p,E)=>{const R=p[0],U=p.slice(1);return Array(d[E]).fill(void 0).map((Z,ue)=>{let Me=ue*i;return[R+ue*n,U.map(Se=>Se+Me)]})}))}function oc(u,e){let n=1+e();return Is(n,1+u,e).map(d=>[d[0],d.slice(1)])}function nc(u){let e=li(u).sort((i,d)=>i-d);return n();function n(){let i=[];for(;;){let U=li(u,e);if(U.length==0)break;i.push({set:new Set(U),node:n()})}i.sort((U,Z)=>Z.set.size-U.set.size);let d=u(),g=d%3;d=d/3|0;let p=!!(d&1);d>>=1;let E=d==1,R=d==2;return{branches:i,valid:g,fe0f:p,save:E,check:R}}}function ic(){return qa(Zi("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}const di=ic(),sc=new Set(li(di)),ac=new Set(li(di)),cc=ec(di),uc=nc(di),Ss=45,Ps=95;function Os(u){return(0,nt.XL)(u)}function lc(u){return u.filter(e=>e!=65039)}function Fs(u){for(let e of u.split(".")){let n=Os(e);try{for(let i=n.lastIndexOf(Ps)-1;i>=0;i--)if(n[i]!==Ps)throw new Error("underscore only allowed at start");if(n.length>=4&&n.every(i=>i<128)&&n[2]===Ss&&n[3]===Ss)throw new Error("invalid label extension")}catch(i){throw new Error(`Invalid label "${e}": ${i.message}`)}}return u}function dc(u){return Fs(fc(u,lc))}function fc(u,e){let n=Os(u).reverse(),i=[];for(;n.length;){let d=hc(n);if(d){i.push(...e(d));continue}let g=n.pop();if(sc.has(g)){i.push(g);continue}if(ac.has(g))continue;let p=cc[g];if(p){i.push(...p);continue}throw new Error(`Disallowed codepoint: 0x${g.toString(16).toUpperCase()}`)}return Fs(pc(String.fromCodePoint(...i)))}function pc(u){return u.normalize("NFC")}function hc(u,e){var n;let i=uc,d,g,p=[],E=u.length;for(e&&(e.length=0);E;){let R=u[--E];if(i=(n=i.branches.find(U=>U.set.has(R)))===null||n===void 0?void 0:n.node,!i)break;if(i.save)g=R;else if(i.check&&R===g)break;p.push(R),i.fe0f&&(p.push(65039),E>0&&u[E-1]==65039&&E--),i.valid&&(d=p.slice(),i.valid==2&&d.splice(1,1),e&&e.push(...u.slice(E).reverse()),u.length=E)}return d}const gc=new r.Logger(cn),Ms=new Uint8Array(32);Ms.fill(0);function Rs(u){if(u.length===0)throw new Error("invalid ENS name; empty component");return u}function fi(u){const e=(0,nt.Y0)(dc(u)),n=[];if(u.length===0)return n;let i=0;for(let d=0;d<e.length;d++)e[d]===46&&(n.push(Rs(e.slice(i,d))),i=d+1);if(i>=e.length)throw new Error("invalid ENS name; empty component");return n.push(Rs(e.slice(i))),n}function du(u){return fi(u).map(e=>toUtf8String(e)).join(".")}function yc(u){try{return fi(u).length!==0}catch{}return!1}function kn(u){typeof u!="string"&&gc.throwArgumentError("invalid ENS name; not a string","name",u);let e=Ms;const n=fi(u);for(;n.length;)e=(0,re.keccak256)((0,f.concat)([e,(0,re.keccak256)(n.pop())]));return(0,f.hexlify)(e)}function ks(u){return(0,f.hexlify)((0,f.concat)(fi(u).map(e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const n=new Uint8Array(e.length+1);return n.set(e,1),n[0]=n.length-1,n})))+"00"}const mc="web/5.7.1";var vc=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};function xc(u,e){return vc(this,void 0,void 0,function*(){e==null&&(e={});const n={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};if(e.skipFetchSetup!==!0&&(n.mode="cors",n.cache="no-cache",n.credentials="same-origin",n.redirect="follow",n.referrer="client"),e.fetchOptions!=null){const p=e.fetchOptions;p.mode&&(n.mode=p.mode),p.cache&&(n.cache=p.cache),p.credentials&&(n.credentials=p.credentials),p.redirect&&(n.redirect=p.redirect),p.referrer&&(n.referrer=p.referrer)}const i=yield fetch(u,n),d=yield i.arrayBuffer(),g={};return i.headers.forEach?i.headers.forEach((p,E)=>{g[E.toLowerCase()]=p}):i.headers.keys().forEach(p=>{g[p.toLowerCase()]=i.headers.get(p)}),{headers:g,statusCode:i.status,statusMessage:i.statusText,body:(0,f.arrayify)(new Uint8Array(d))}})}var bc=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const io=new r.Logger(mc);function _s(u){return new Promise(e=>{setTimeout(e,u)})}function ko(u,e){if(u==null)return null;if(typeof u=="string")return u;if((0,f.isBytesLike)(u)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return(0,nt.ZN)(u)}catch{}return(0,f.hexlify)(u)}return u}function Ac(u){return(0,nt.Y0)(u.replace(/%([0-9a-f][0-9a-f])/gi,(e,n)=>String.fromCharCode(parseInt(n,16))))}function Ns(u,e,n){const i=typeof u=="object"&&u.throttleLimit!=null?u.throttleLimit:12;io.assertArgument(i>0&&i%1===0,"invalid connection throttle limit","connection.throttleLimit",i);const d=typeof u=="object"?u.throttleCallback:null,g=typeof u=="object"&&typeof u.throttleSlotInterval=="number"?u.throttleSlotInterval:100;io.assertArgument(g>0&&g%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",g);const p=typeof u=="object"?!!u.errorPassThrough:!1,E={};let R=null;const U={method:"GET"};let Z=!1,ue=2*60*1e3;if(typeof u=="string")R=u;else if(typeof u=="object"){if((u==null||u.url==null)&&io.throwArgumentError("missing URL","connection.url",u),R=u.url,typeof u.timeout=="number"&&u.timeout>0&&(ue=u.timeout),u.headers)for(const et in u.headers)E[et.toLowerCase()]={key:et,value:String(u.headers[et])},["if-none-match","if-modified-since"].indexOf(et.toLowerCase())>=0&&(Z=!0);if(U.allowGzip=!!u.allowGzip,u.user!=null&&u.password!=null){R.substring(0,6)!=="https:"&&u.allowInsecureAuthentication!==!0&&io.throwError("basic authentication requires a secure https url",r.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:R,user:u.user,password:"[REDACTED]"});const et=u.user+":"+u.password;E.authorization={key:"Authorization",value:"Basic "+Ji((0,nt.Y0)(et))}}u.skipFetchSetup!=null&&(U.skipFetchSetup=!!u.skipFetchSetup),u.fetchOptions!=null&&(U.fetchOptions=(0,t.shallowCopy)(u.fetchOptions))}const Me=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),Se=R?R.match(Me):null;if(Se)try{const et={statusCode:200,statusMessage:"OK",headers:{"content-type":Se[1]||"text/plain"},body:Se[2]?Zi(Se[3]):Ac(Se[3])};let At=et.body;return n&&(At=n(et.body,et)),Promise.resolve(At)}catch(et){io.throwError("processing response error",r.Logger.errors.SERVER_ERROR,{body:ko(Se[1],Se[2]),error:et,requestBody:null,requestMethod:"GET",url:R})}e&&(U.method="POST",U.body=e,E["content-type"]==null&&(E["content-type"]={key:"Content-Type",value:"application/octet-stream"}),E["content-length"]==null&&(E["content-length"]={key:"Content-Length",value:String(e.length)}));const Le={};Object.keys(E).forEach(et=>{const At=E[et];Le[At.key]=At.value}),U.headers=Le;const Ve=function(){let et=null;return{promise:new Promise(function(or,_t){ue&&(et=setTimeout(()=>{et!=null&&(et=null,_t(io.makeError("timeout",r.Logger.errors.TIMEOUT,{requestBody:ko(U.body,Le["content-type"]),requestMethod:U.method,timeout:ue,url:R})))},ue))}),cancel:function(){et!=null&&(clearTimeout(et),et=null)}}}(),at=function(){return bc(this,void 0,void 0,function*(){for(let et=0;et<i;et++){let At=null;try{if(At=yield xc(R,U),et<i){if(At.statusCode===301||At.statusCode===302){const or=At.headers.location||"";if(U.method==="GET"&&or.match(/^https:/)){R=At.headers.location;continue}}else if(At.statusCode===429){let or=!0;if(d&&(or=yield d(et,R)),or){let _t=0;const pr=At.headers["retry-after"];typeof pr=="string"&&pr.match(/^[1-9][0-9]*$/)?_t=parseInt(pr)*1e3:_t=g*parseInt(String(Math.random()*Math.pow(2,et))),yield _s(_t);continue}}}}catch(or){At=or.response,At==null&&(Ve.cancel(),io.throwError("missing response",r.Logger.errors.SERVER_ERROR,{requestBody:ko(U.body,Le["content-type"]),requestMethod:U.method,serverError:or,url:R}))}let Gt=At.body;if(Z&&At.statusCode===304?Gt=null:!p&&(At.statusCode<200||At.statusCode>=300)&&(Ve.cancel(),io.throwError("bad response",r.Logger.errors.SERVER_ERROR,{status:At.statusCode,headers:At.headers,body:ko(Gt,At.headers?At.headers["content-type"]:null),requestBody:ko(U.body,Le["content-type"]),requestMethod:U.method,url:R})),n)try{const or=yield n(Gt,At);return Ve.cancel(),or}catch(or){if(or.throttleRetry&&et<i){let _t=!0;if(d&&(_t=yield d(et,R)),_t){const pr=g*parseInt(String(Math.random()*Math.pow(2,et)));yield _s(pr);continue}}Ve.cancel(),io.throwError("processing response error",r.Logger.errors.SERVER_ERROR,{body:ko(Gt,At.headers?At.headers["content-type"]:null),error:or,requestBody:ko(U.body,Le["content-type"]),requestMethod:U.method,url:R})}return Ve.cancel(),Gt}return io.throwError("failed response",r.Logger.errors.SERVER_ERROR,{requestBody:ko(U.body,Le["content-type"]),requestMethod:U.method,url:R})})}();return Promise.race([Ve.promise,at])}function gn(u,e,n){let i=(g,p)=>{let E=null;if(g!=null)try{E=JSON.parse((0,nt.ZN)(g))}catch(R){io.throwError("invalid JSON",r.Logger.errors.SERVER_ERROR,{body:g,error:R})}return n&&(E=n(E,p)),E},d=null;if(e!=null){d=(0,nt.Y0)(e);const g=typeof u=="string"?{url:u}:(0,t.shallowCopy)(u);g.headers?Object.keys(g.headers).filter(E=>E.toLowerCase()==="content-type").length!==0||(g.headers=(0,t.shallowCopy)(g.headers),g.headers["content-type"]="application/json"):g.headers={"content-type":"application/json"},u=g}return Ns(u,d,i)}function Zo(u,e){return e||(e={}),e=(0,t.shallowCopy)(e),e.floor==null&&(e.floor=0),e.ceiling==null&&(e.ceiling=1e4),e.interval==null&&(e.interval=250),new Promise(function(n,i){let d=null,g=!1;const p=()=>g?!1:(g=!0,d&&clearTimeout(d),!0);e.timeout&&(d=setTimeout(()=>{p()&&i(new Error("timeout"))},e.timeout));const E=e.retryLimit;let R=0;function U(){return u().then(function(Z){if(Z!==void 0)p()&&n(Z);else if(e.oncePoll)e.oncePoll.once("poll",U);else if(e.onceBlock)e.onceBlock.once("block",U);else if(!g){if(R++,R>E){p()&&i(new Error("retry limit reached"));return}let ue=e.interval*parseInt(String(Math.random()*Math.pow(2,R)));ue<e.floor&&(ue=e.floor),ue>e.ceiling&&(ue=e.ceiling),setTimeout(U,ue)}return null},function(Z){p()&&i(Z)})}U()})}var wc=C(92882),Ds=C.n(wc);const _r="providers/5.7.2",_n=new r.Logger(_r);class gt{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},n=this.address.bind(this),i=this.bigNumber.bind(this),d=this.blockTag.bind(this),g=this.data.bind(this),p=this.hash.bind(this),E=this.hex.bind(this),R=this.number.bind(this),U=this.type.bind(this),Z=ue=>this.data(ue,!0);return e.transaction={hash:p,type:U,accessList:gt.allowNull(this.accessList.bind(this),null),blockHash:gt.allowNull(p,null),blockNumber:gt.allowNull(R,null),transactionIndex:gt.allowNull(R,null),confirmations:gt.allowNull(R,null),from:n,gasPrice:gt.allowNull(i),maxPriorityFeePerGas:gt.allowNull(i),maxFeePerGas:gt.allowNull(i),gasLimit:i,to:gt.allowNull(n,null),value:i,nonce:R,data:g,r:gt.allowNull(this.uint256),s:gt.allowNull(this.uint256),v:gt.allowNull(R),creates:gt.allowNull(n,null),raw:gt.allowNull(g)},e.transactionRequest={from:gt.allowNull(n),nonce:gt.allowNull(R),gasLimit:gt.allowNull(i),gasPrice:gt.allowNull(i),maxPriorityFeePerGas:gt.allowNull(i),maxFeePerGas:gt.allowNull(i),to:gt.allowNull(n),value:gt.allowNull(i),data:gt.allowNull(Z),type:gt.allowNull(R),accessList:gt.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:R,blockNumber:R,transactionHash:p,address:n,topics:gt.arrayOf(p),data:g,logIndex:R,blockHash:p},e.receipt={to:gt.allowNull(this.address,null),from:gt.allowNull(this.address,null),contractAddress:gt.allowNull(n,null),transactionIndex:R,root:gt.allowNull(E),gasUsed:i,logsBloom:gt.allowNull(g),blockHash:p,transactionHash:p,logs:gt.arrayOf(this.receiptLog.bind(this)),blockNumber:R,confirmations:gt.allowNull(R,null),cumulativeGasUsed:i,effectiveGasPrice:gt.allowNull(i),status:gt.allowNull(R),type:U},e.block={hash:gt.allowNull(p),parentHash:p,number:R,timestamp:R,nonce:gt.allowNull(E),difficulty:this.difficulty.bind(this),gasLimit:i,gasUsed:i,miner:gt.allowNull(n),extraData:g,transactions:gt.allowNull(gt.arrayOf(p)),baseFeePerGas:gt.allowNull(i)},e.blockWithTransactions=(0,t.shallowCopy)(e.block),e.blockWithTransactions.transactions=gt.allowNull(gt.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:gt.allowNull(d,void 0),toBlock:gt.allowNull(d,void 0),blockHash:gt.allowNull(p,void 0),address:gt.allowNull(n,void 0),topics:gt.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:gt.allowNull(R),blockHash:gt.allowNull(p),transactionIndex:R,removed:gt.allowNull(this.boolean.bind(this)),address:n,data:gt.allowFalsish(g,"0x"),topics:gt.arrayOf(p),transactionHash:p,logIndex:R},e}accessList(e){return fo(e||[])}number(e){return e==="0x"?0:a.O$.from(e).toNumber()}type(e){return e==="0x"||e==null?0:a.O$.from(e).toNumber()}bigNumber(e){return a.O$.from(e)}boolean(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)}hex(e,n){return typeof e=="string"&&(!n&&e.substring(0,2)!=="0x"&&(e="0x"+e),(0,f.isHexString)(e))?e.toLowerCase():_n.throwArgumentError("invalid hash","value",e)}data(e,n){const i=this.hex(e,n);if(i.length%2!==0)throw new Error("invalid data; odd-length - "+e);return i}address(e){return Oe(e)}callAddress(e){if(!(0,f.isHexString)(e,32))return null;const n=Oe((0,f.hexDataSlice)(e,12));return n===xs?null:n}contractAddress(e){return ke(e)}blockTag(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||(0,f.isHexString)(e))return(0,f.hexValue)(e);throw new Error("invalid blockTag")}hash(e,n){const i=this.hex(e,n);return(0,f.hexDataLength)(i)!==32?_n.throwArgumentError("invalid hash","value",e):i}difficulty(e){if(e==null)return null;const n=a.O$.from(e);try{return n.toNumber()}catch{}return null}uint256(e){if(!(0,f.isHexString)(e))throw new Error("invalid uint256");return(0,f.hexZeroPad)(e,32)}_block(e,n){e.author!=null&&e.miner==null&&(e.miner=e.author);const i=e._difficulty!=null?e._difficulty:e.difficulty,d=gt.check(n,e);return d._difficulty=i==null?null:a.O$.from(i),d}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return gt.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&a.O$.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);const n=gt.check(this.formats.transaction,e);if(e.chainId!=null){let i=e.chainId;(0,f.isHexString)(i)&&(i=a.O$.from(i).toNumber()),n.chainId=i}else{let i=e.networkId;i==null&&n.v==null&&(i=e.chainId),(0,f.isHexString)(i)&&(i=a.O$.from(i).toNumber()),typeof i!="number"&&n.v!=null&&(i=(n.v-35)/2,i<0&&(i=0),i=parseInt(i)),typeof i!="number"&&(i=0),n.chainId=i}return n.blockHash&&n.blockHash.replace(/0/g,"")==="x"&&(n.blockHash=null),n}transaction(e){return sn(e)}receiptLog(e){return gt.check(this.formats.receiptLog,e)}receipt(e){const n=gt.check(this.formats.receipt,e);if(n.root!=null)if(n.root.length<=4){const i=a.O$.from(n.root).toNumber();i===0||i===1?(n.status!=null&&n.status!==i&&_n.throwArgumentError("alt-root-status/status mismatch","value",{root:n.root,status:n.status}),n.status=i,delete n.root):_n.throwArgumentError("invalid alt-root-status","value.root",n.root)}else n.root.length!==66&&_n.throwArgumentError("invalid root hash","value.root",n.root);return n.status!=null&&(n.byzantium=!0),n}topics(e){return Array.isArray(e)?e.map(n=>this.topics(n)):e!=null?this.hash(e,!0):null}filter(e){return gt.check(this.formats.filter,e)}filterLog(e){return gt.check(this.formats.filterLog,e)}static check(e,n){const i={};for(const d in e)try{const g=e[d](n[d]);g!==void 0&&(i[d]=g)}catch(g){throw g.checkKey=d,g.checkValue=n[d],g}return i}static allowNull(e,n){return function(i){return i==null?n:e(i)}}static allowFalsish(e,n){return function(i){return i?e(i):n}}static arrayOf(e){return function(n){if(!Array.isArray(n))throw new Error("not an array");const i=[];return n.forEach(function(d){i.push(e(d))}),i}}}function Ws(u){return u&&typeof u.isCommunityResource=="function"}function qi(u){return Ws(u)&&u.isCommunityResource()}let Us=!1;function Nn(){Us||(Us=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var Pt=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const kt=new r.Logger(_r),Cc=10;function Ls(u){return u==null?"null":((0,f.hexDataLength)(u)!==32&&kt.throwArgumentError("invalid topic","topic",u),u.toLowerCase())}function zs(u){for(u=u.slice();u.length>0&&u[u.length-1]==null;)u.pop();return u.map(e=>{if(Array.isArray(e)){const n={};e.forEach(d=>{n[Ls(d)]=!0});const i=Object.keys(n);return i.sort(),i.join("|")}else return Ls(e)}).join("&")}function Bc(u){return u===""?[]:u.split(/&/g).map(e=>{if(e==="")return[];const n=e.split("|").map(i=>i==="null"?null:i);return n.length===1?n[0]:n})}function yn(u){if(typeof u=="string"){if(u=u.toLowerCase(),(0,f.hexDataLength)(u)===32)return"tx:"+u;if(u.indexOf(":")===-1)return u}else{if(Array.isArray(u))return"filter:*:"+zs(u);if($.isForkEvent(u))throw kt.warn("not implemented"),new Error("not implemented");if(u&&typeof u=="object")return"filter:"+(u.address||"*")+":"+zs(u.topics||[])}throw new Error("invalid event - "+u)}function Dn(){return new Date().getTime()}function js(u){return new Promise(e=>{setTimeout(e,u)})}const Ec=["block","network","pending","poll"];class Tc{constructor(e,n,i){(0,t.defineReadOnly)(this,"tag",e),(0,t.defineReadOnly)(this,"listener",n),(0,t.defineReadOnly)(this,"once",i),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return e[0]!=="tx"?null:e[1]}get filter(){const e=this.tag.split(":");if(e[0]!=="filter")return null;const n=e[1],i=Bc(e[2]),d={};return i.length>0&&(d.topics=i),n&&n!=="*"&&(d.address=n),d}pollable(){return this.tag.indexOf(":")>=0||Ec.indexOf(this.tag)>=0}}const Ic={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function Yi(u){return(0,f.hexZeroPad)(a.O$.from(u).toHexString(),32)}function Gs(u){return Ao.encode((0,f.concat)([u,(0,f.hexDataSlice)(B(B(u)),0,4)]))}const Vs=new RegExp("^(ipfs)://(.*)$","i"),$s=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),Vs,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function pi(u,e){try{return(0,nt.ZN)(Wn(u,e))}catch{}return null}function Wn(u,e){if(u==="0x")return null;const n=a.O$.from((0,f.hexDataSlice)(u,e,e+32)).toNumber(),i=a.O$.from((0,f.hexDataSlice)(u,n,n+32)).toNumber();return(0,f.hexDataSlice)(u,n+32,n+32+i)}function Xi(u){return u.match(/^ipfs:\/\/ipfs\//i)?u=u.substring(12):u.match(/^ipfs:\/\//i)?u=u.substring(7):kt.throwArgumentError("unsupported IPFS format","link",u),`https://gateway.ipfs.io/ipfs/${u}`}function Hs(u){const e=(0,f.arrayify)(u);if(e.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(e,32-e.length),n}function Sc(u){if(u.length%32===0)return u;const e=new Uint8Array(Math.ceil(u.length/32)*32);return e.set(u),e}function Ks(u){const e=[];let n=0;for(let i=0;i<u.length;i++)e.push(null),n+=32;for(let i=0;i<u.length;i++){const d=(0,f.arrayify)(u[i]);e[i]=Hs(n),e.push(Hs(d.length)),e.push(Sc(d)),n+=32+Math.ceil(d.length/32)*32}return(0,f.hexConcat)(e)}class Qi{constructor(e,n,i,d){(0,t.defineReadOnly)(this,"provider",e),(0,t.defineReadOnly)(this,"name",i),(0,t.defineReadOnly)(this,"address",e.formatter.address(n)),(0,t.defineReadOnly)(this,"_resolvedAddress",d)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then(e=>a.O$.from(e).eq(1)).catch(e=>{if(e.code===r.Logger.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,n){return Pt(this,void 0,void 0,function*(){const i={to:this.address,ccipReadEnabled:!0,data:(0,f.hexConcat)([e,kn(this.name),n||"0x"])};let d=!1;(yield this.supportsWildcard())&&(d=!0,i.data=(0,f.hexConcat)(["0x9061b923",Ks([ks(this.name),i.data])]));try{let g=yield this.provider.call(i);return(0,f.arrayify)(g).length%32===4&&kt.throwError("resolver threw error",r.Logger.errors.CALL_EXCEPTION,{transaction:i,data:g}),d&&(g=Wn(g,0)),g}catch(g){if(g.code===r.Logger.errors.CALL_EXCEPTION)return null;throw g}})}_fetchBytes(e,n){return Pt(this,void 0,void 0,function*(){const i=yield this._fetch(e,n);return i!=null?Wn(i,0):null})}_getAddress(e,n){const i=Ic[String(e)];if(i==null&&kt.throwError(`unsupported coin type: ${e}`,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),i.ilk==="eth")return this.provider.formatter.address(n);const d=(0,f.arrayify)(n);if(i.p2pkh!=null){const g=n.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(g){const p=parseInt(g[1],16);if(g[2].length===p*2&&p>=1&&p<=75)return Gs((0,f.concat)([[i.p2pkh],"0x"+g[2]]))}}if(i.p2sh!=null){const g=n.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(g){const p=parseInt(g[1],16);if(g[2].length===p*2&&p>=1&&p<=75)return Gs((0,f.concat)([[i.p2sh],"0x"+g[2]]))}}if(i.prefix!=null){const g=d[1];let p=d[0];if(p===0?g!==20&&g!==32&&(p=-1):p=-1,p>=0&&d.length===2+g&&g>=1&&g<=75){const E=Ds().toWords(d.slice(2));return E.unshift(p),Ds().encode(i.prefix,E)}}return null}getAddress(e){return Pt(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const d=yield this._fetch("0x3b3b57de");return d==="0x"||d===bs.R?null:this.provider.formatter.callAddress(d)}catch(d){if(d.code===r.Logger.errors.CALL_EXCEPTION)return null;throw d}const n=yield this._fetchBytes("0xf1cb7e06",Yi(e));if(n==null||n==="0x")return null;const i=this._getAddress(e,n);return i==null&&kt.throwError("invalid or unsupported coin data",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:n}),i})}getAvatar(){return Pt(this,void 0,void 0,function*(){const e=[{type:"name",content:this.name}];try{const n=yield this.getText("avatar");if(n==null)return null;for(let i=0;i<$s.length;i++){const d=n.match($s[i]);if(d==null)continue;const g=d[1].toLowerCase();switch(g){case"https":return e.push({type:"url",content:n}),{linkage:e,url:n};case"data":return e.push({type:"data",content:n}),{linkage:e,url:n};case"ipfs":return e.push({type:"ipfs",content:n}),{linkage:e,url:Xi(n)};case"erc721":case"erc1155":{const p=g==="erc721"?"0xc87b56dd":"0x0e89341c";e.push({type:g,content:n});const E=this._resolvedAddress||(yield this.getAddress()),R=(d[2]||"").split("/");if(R.length!==2)return null;const U=yield this.provider.formatter.address(R[0]),Z=(0,f.hexZeroPad)(a.O$.from(R[1]).toHexString(),32);if(g==="erc721"){const Ve=this.provider.formatter.callAddress(yield this.provider.call({to:U,data:(0,f.hexConcat)(["0x6352211e",Z])}));if(E!==Ve)return null;e.push({type:"owner",content:Ve})}else if(g==="erc1155"){const Ve=a.O$.from(yield this.provider.call({to:U,data:(0,f.hexConcat)(["0x00fdd58e",(0,f.hexZeroPad)(E,32),Z])}));if(Ve.isZero())return null;e.push({type:"balance",content:Ve.toString()})}const ue={to:this.provider.formatter.address(R[0]),data:(0,f.hexConcat)([p,Z])};let Me=pi(yield this.provider.call(ue),0);if(Me==null)return null;e.push({type:"metadata-url-base",content:Me}),g==="erc1155"&&(Me=Me.replace("{id}",Z.substring(2)),e.push({type:"metadata-url-expanded",content:Me})),Me.match(/^ipfs:/i)&&(Me=Xi(Me)),e.push({type:"metadata-url",content:Me});const Se=yield gn(Me);if(!Se)return null;e.push({type:"metadata",content:JSON.stringify(Se)});let Le=Se.image;if(typeof Le!="string")return null;if(!Le.match(/^(https:\/\/|data:)/i)){if(Le.match(Vs)==null)return null;e.push({type:"url-ipfs",content:Le}),Le=Xi(Le)}return e.push({type:"url",content:Le}),{linkage:e,url:Le}}}}}catch{}return null})}getContentHash(){return Pt(this,void 0,void 0,function*(){const e=yield this._fetchBytes("0xbc1c58d1");if(e==null||e==="0x")return null;const n=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(n){const p=parseInt(n[3],16);if(n[4].length===p*2)return"ipfs://"+Ao.encode("0x"+n[1])}const i=e.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(i){const p=parseInt(i[3],16);if(i[4].length===p*2)return"ipns://"+Ao.encode("0x"+i[1])}const d=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(d&&d[1].length===32*2)return"bzz://"+d[1];const g=e.match(/^0x90b2c605([0-9a-f]*)$/);if(g&&g[1].length===34*2){const p={"=":"","+":"-","/":"_"};return"sia://"+Ji("0x"+g[1]).replace(/[=+\/]/g,R=>p[R])}return kt.throwError("invalid or unsupported content hash data",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return Pt(this,void 0,void 0,function*(){let n=(0,nt.Y0)(e);n=(0,f.concat)([Yi(64),Yi(n.length),n]),n.length%32!==0&&(n=(0,f.concat)([n,(0,f.hexZeroPad)("0x",32-e.length%32)]));const i=yield this._fetchBytes("0x59d1d43c",(0,f.hexlify)(n));return i==null||i==="0x"?null:(0,nt.ZN)(i)})}}let es=null,Pc=1;class hi extends it{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,t.defineReadOnly)(this,"anyNetwork",e==="any"),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(n=>{}),this._ready().catch(n=>{});else{const n=(0,t.getStatic)(new.target,"getNetwork")(e);n?((0,t.defineReadOnly)(this,"_network",n),this.emit("network",n,null)):kt.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Pt(this,void 0,void 0,function*(){if(this._network==null){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch{}e==null&&(e=yield this.detectNetwork()),e||kt.throwError("no network detected",r.Logger.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=e:(0,t.defineReadOnly)(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return Zo(()=>this._ready().then(e=>e,e=>{if(!(e.code===r.Logger.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return es==null&&(es=new gt),es}static getNetwork(e){return Ki(e==null?"homestead":e)}ccipReadFetch(e,n,i){return Pt(this,void 0,void 0,function*(){if(this.disableCcipRead||i.length===0)return null;const d=e.to.toLowerCase(),g=n.toLowerCase(),p=[];for(let E=0;E<i.length;E++){const R=i[E],U=R.replace("{sender}",d).replace("{data}",g),Z=R.indexOf("{data}")>=0?null:JSON.stringify({data:g,sender:d}),ue=yield gn({url:U,errorPassThrough:!0},Z,(Se,Le)=>(Se.status=Le.statusCode,Se));if(ue.data)return ue.data;const Me=ue.message||"unknown error";if(ue.status>=400&&ue.status<500)return kt.throwError(`response not found during CCIP fetch: ${Me}`,r.Logger.errors.SERVER_ERROR,{url:R,errorMessage:Me});p.push(Me)}return kt.throwError(`error encountered during CCIP fetch: ${p.map(E=>JSON.stringify(E)).join(", ")}`,r.Logger.errors.SERVER_ERROR,{urls:i,errorMessages:p})})}_getInternalBlockNumber(e){return Pt(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const d=this._internalBlockNumber;try{const g=yield d;if(Dn()-g.respTime<=e)return g.blockNumber;break}catch{if(this._internalBlockNumber===d)break}}const n=Dn(),i=(0,t.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(d=>null,d=>d)}).then(({blockNumber:d,networkError:g})=>{if(g)throw this._internalBlockNumber===i&&(this._internalBlockNumber=null),g;const p=Dn();return d=a.O$.from(d).toNumber(),d<this._maxInternalBlockNumber&&(d=this._maxInternalBlockNumber),this._maxInternalBlockNumber=d,this._setFastBlockNumber(d),{blockNumber:d,reqTime:n,respTime:p}});return this._internalBlockNumber=i,i.catch(d=>{this._internalBlockNumber===i&&(this._internalBlockNumber=null)}),(yield i).blockNumber})}poll(){return Pt(this,void 0,void 0,function*(){const e=Pc++,n=[];let i=null;try{i=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(d){this.emit("error",d);return}if(this._setFastBlockNumber(i),this.emit("poll",e,i),i===this._lastBlockNumber){this.emit("didPoll",e);return}if(this._emitted.block===-2&&(this._emitted.block=i-1),Math.abs(this._emitted.block-i)>1e3)kt.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${i})`),this.emit("error",kt.makeError("network block skew detected",r.Logger.errors.NETWORK_ERROR,{blockNumber:i,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",i);else for(let d=this._emitted.block+1;d<=i;d++)this.emit("block",d);this._emitted.block!==i&&(this._emitted.block=i,Object.keys(this._emitted).forEach(d=>{if(d==="block")return;const g=this._emitted[d];g!=="pending"&&i-g>12&&delete this._emitted[d]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=i-1),this._events.forEach(d=>{switch(d.type){case"tx":{const g=d.hash;let p=this.getTransactionReceipt(g).then(E=>(!E||E.blockNumber==null||(this._emitted["t:"+g]=E.blockNumber,this.emit(g,E)),null)).catch(E=>{this.emit("error",E)});n.push(p);break}case"filter":{if(!d._inflight){d._inflight=!0,d._lastBlockNumber===-2&&(d._lastBlockNumber=i-1);const g=d.filter;g.fromBlock=d._lastBlockNumber+1,g.toBlock=i;const p=g.toBlock-this._maxFilterBlockRange;p>g.fromBlock&&(g.fromBlock=p),g.fromBlock<0&&(g.fromBlock=0);const E=this.getLogs(g).then(R=>{d._inflight=!1,R.length!==0&&R.forEach(U=>{U.blockNumber>d._lastBlockNumber&&(d._lastBlockNumber=U.blockNumber),this._emitted["b:"+U.blockHash]=U.blockNumber,this._emitted["t:"+U.transactionHash]=U.blockNumber,this.emit(g,U)})}).catch(R=>{this.emit("error",R),d._inflight=!1});n.push(E)}break}}}),this._lastBlockNumber=i,Promise.all(n).then(()=>{this.emit("didPoll",e)}).catch(d=>{this.emit("error",d)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return Pt(this,void 0,void 0,function*(){return kt.throwError("provider does not support network detection",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return Pt(this,void 0,void 0,function*(){const e=yield this._ready(),n=yield this.detectNetwork();if(e.chainId!==n.chainId){if(this.anyNetwork)return this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,e),yield js(0),this._network;const i=kt.makeError("underlying network changed",r.Logger.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:n});throw this.emit("error",i),i}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if(typeof e!="number"||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const e=Dn();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(n=>((this._fastBlockNumber==null||n>this._fastBlockNumber)&&(this._fastBlockNumber=n),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){this._fastBlockNumber!=null&&e<this._fastBlockNumber||(this._fastQueryDate=Dn(),(this._fastBlockNumber==null||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,n,i){return Pt(this,void 0,void 0,function*(){return this._waitForTransaction(e,n==null?1:n,i||0,null)})}_waitForTransaction(e,n,i,d){return Pt(this,void 0,void 0,function*(){const g=yield this.getTransactionReceipt(e);return(g?g.confirmations:0)>=n?g:new Promise((p,E)=>{const R=[];let U=!1;const Z=function(){return U?!0:(U=!0,R.forEach(Me=>{Me()}),!1)},ue=Me=>{Me.confirmations<n||Z()||p(Me)};if(this.on(e,ue),R.push(()=>{this.removeListener(e,ue)}),d){let Me=d.startBlock,Se=null;const Le=Ve=>Pt(this,void 0,void 0,function*(){U||(yield js(1e3),this.getTransactionCount(d.from).then(at=>Pt(this,void 0,void 0,function*(){if(!U){if(at<=d.nonce)Me=Ve;else{{const et=yield this.getTransaction(e);if(et&&et.blockNumber!=null)return}for(Se==null&&(Se=Me-3,Se<d.startBlock&&(Se=d.startBlock));Se<=Ve;){if(U)return;const et=yield this.getBlockWithTransactions(Se);for(let At=0;At<et.transactions.length;At++){const Gt=et.transactions[At];if(Gt.hash===e)return;if(Gt.from===d.from&&Gt.nonce===d.nonce){if(U)return;const or=yield this.waitForTransaction(Gt.hash,n);if(Z())return;let _t="replaced";Gt.data===d.data&&Gt.to===d.to&&Gt.value.eq(d.value)?_t="repriced":Gt.data==="0x"&&Gt.from===Gt.to&&Gt.value.isZero()&&(_t="cancelled"),E(kt.makeError("transaction was replaced",r.Logger.errors.TRANSACTION_REPLACED,{cancelled:_t==="replaced"||_t==="cancelled",reason:_t,replacement:this._wrapTransaction(Gt),hash:e,receipt:or}));return}}Se++}}U||this.once("block",Le)}}),at=>{U||this.once("block",Le)}))});if(U)return;this.once("block",Le),R.push(()=>{this.removeListener("block",Le)})}if(typeof i=="number"&&i>0){const Me=setTimeout(()=>{Z()||E(kt.makeError("timeout exceeded",r.Logger.errors.TIMEOUT,{timeout:i}))},i);Me.unref&&Me.unref(),R.push(()=>{clearTimeout(Me)})}})})}getBlockNumber(){return Pt(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return Pt(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return a.O$.from(e)}catch(n){return kt.throwError("bad result from backend",r.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:n})}})}getBalance(e,n){return Pt(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield(0,t.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(n)}),d=yield this.perform("getBalance",i);try{return a.O$.from(d)}catch(g){return kt.throwError("bad result from backend",r.Logger.errors.SERVER_ERROR,{method:"getBalance",params:i,result:d,error:g})}})}getTransactionCount(e,n){return Pt(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield(0,t.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(n)}),d=yield this.perform("getTransactionCount",i);try{return a.O$.from(d).toNumber()}catch(g){return kt.throwError("bad result from backend",r.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:i,result:d,error:g})}})}getCode(e,n){return Pt(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield(0,t.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(n)}),d=yield this.perform("getCode",i);try{return(0,f.hexlify)(d)}catch(g){return kt.throwError("bad result from backend",r.Logger.errors.SERVER_ERROR,{method:"getCode",params:i,result:d,error:g})}})}getStorageAt(e,n,i){return Pt(this,void 0,void 0,function*(){yield this.getNetwork();const d=yield(0,t.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(i),position:Promise.resolve(n).then(p=>(0,f.hexValue)(p))}),g=yield this.perform("getStorageAt",d);try{return(0,f.hexlify)(g)}catch(p){return kt.throwError("bad result from backend",r.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:d,result:g,error:p})}})}_wrapTransaction(e,n,i){if(n!=null&&(0,f.hexDataLength)(n)!==32)throw new Error("invalid response - sendTransaction");const d=e;return n!=null&&e.hash!==n&&kt.throwError("Transaction hash mismatch from Provider.sendTransaction.",r.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:n}),d.wait=(g,p)=>Pt(this,void 0,void 0,function*(){g==null&&(g=1),p==null&&(p=0);let E;g!==0&&i!=null&&(E={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:i});const R=yield this._waitForTransaction(e.hash,g,p,E);return R==null&&g===0?null:(this._emitted["t:"+e.hash]=R.blockNumber,R.status===0&&kt.throwError("transaction failed",r.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:R}),R)}),d}sendTransaction(e){return Pt(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield Promise.resolve(e).then(g=>(0,f.hexlify)(g)),i=this.formatter.transaction(e);i.confirmations==null&&(i.confirmations=0);const d=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const g=yield this.perform("sendTransaction",{signedTransaction:n});return this._wrapTransaction(i,g,d)}catch(g){throw g.transaction=i,g.transactionHash=i.hash,g}})}_getTransactionRequest(e){return Pt(this,void 0,void 0,function*(){const n=yield e,i={};return["from","to"].forEach(d=>{n[d]!=null&&(i[d]=Promise.resolve(n[d]).then(g=>g?this._getAddress(g):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(d=>{n[d]!=null&&(i[d]=Promise.resolve(n[d]).then(g=>g?a.O$.from(g):null))}),["type"].forEach(d=>{n[d]!=null&&(i[d]=Promise.resolve(n[d]).then(g=>g!=null?g:null))}),n.accessList&&(i.accessList=this.formatter.accessList(n.accessList)),["data"].forEach(d=>{n[d]!=null&&(i[d]=Promise.resolve(n[d]).then(g=>g?(0,f.hexlify)(g):null))}),this.formatter.transactionRequest(yield(0,t.resolveProperties)(i))})}_getFilter(e){return Pt(this,void 0,void 0,function*(){e=yield e;const n={};return e.address!=null&&(n.address=this._getAddress(e.address)),["blockHash","topics"].forEach(i=>{e[i]!=null&&(n[i]=e[i])}),["fromBlock","toBlock"].forEach(i=>{e[i]!=null&&(n[i]=this._getBlockTag(e[i]))}),this.formatter.filter(yield(0,t.resolveProperties)(n))})}_call(e,n,i){return Pt(this,void 0,void 0,function*(){i>=Cc&&kt.throwError("CCIP read exceeded maximum redirections",r.Logger.errors.SERVER_ERROR,{redirects:i,transaction:e});const d=e.to,g=yield this.perform("call",{transaction:e,blockTag:n});if(i>=0&&n==="latest"&&d!=null&&g.substring(0,10)==="0x556f1830"&&(0,f.hexDataLength)(g)%32===4)try{const p=(0,f.hexDataSlice)(g,4),E=(0,f.hexDataSlice)(p,0,32);a.O$.from(E).eq(d)||kt.throwError("CCIP Read sender did not match",r.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:g});const R=[],U=a.O$.from((0,f.hexDataSlice)(p,32,64)).toNumber(),Z=a.O$.from((0,f.hexDataSlice)(p,U,U+32)).toNumber(),ue=(0,f.hexDataSlice)(p,U+32);for(let et=0;et<Z;et++){const At=pi(ue,et*32);At==null&&kt.throwError("CCIP Read contained corrupt URL string",r.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:g}),R.push(At)}const Me=Wn(p,64);a.O$.from((0,f.hexDataSlice)(p,100,128)).isZero()||kt.throwError("CCIP Read callback selector included junk",r.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:g});const Se=(0,f.hexDataSlice)(p,96,100),Le=Wn(p,128),Ve=yield this.ccipReadFetch(e,Me,R);Ve==null&&kt.throwError("CCIP Read disabled or provided no URLs",r.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:g});const at={to:d,data:(0,f.hexConcat)([Se,Ks([Ve,Le])])};return this._call(at,n,i+1)}catch(p){if(p.code===r.Logger.errors.SERVER_ERROR)throw p}try{return(0,f.hexlify)(g)}catch(p){return kt.throwError("bad result from backend",r.Logger.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:n},result:g,error:p})}})}call(e,n){return Pt(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield(0,t.resolveProperties)({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(n),ccipReadEnabled:Promise.resolve(e.ccipReadEnabled)});return this._call(i.transaction,i.blockTag,i.ccipReadEnabled?0:-1)})}estimateGas(e){return Pt(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield(0,t.resolveProperties)({transaction:this._getTransactionRequest(e)}),i=yield this.perform("estimateGas",n);try{return a.O$.from(i)}catch(d){return kt.throwError("bad result from backend",r.Logger.errors.SERVER_ERROR,{method:"estimateGas",params:n,result:i,error:d})}})}_getAddress(e){return Pt(this,void 0,void 0,function*(){e=yield e,typeof e!="string"&&kt.throwArgumentError("invalid address or ENS name","name",e);const n=yield this.resolveName(e);return n==null&&kt.throwError("ENS name not configured",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),n})}_getBlock(e,n){return Pt(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let i=-128;const d={includeTransactions:!!n};if((0,f.isHexString)(e,32))d.blockHash=e;else try{d.blockTag=yield this._getBlockTag(e),(0,f.isHexString)(d.blockTag)&&(i=parseInt(d.blockTag.substring(2),16))}catch{kt.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return Zo(()=>Pt(this,void 0,void 0,function*(){const g=yield this.perform("getBlock",d);if(g==null)return d.blockHash!=null&&this._emitted["b:"+d.blockHash]==null||d.blockTag!=null&&i>this._emitted.block?null:void 0;if(n){let p=null;for(let R=0;R<g.transactions.length;R++){const U=g.transactions[R];if(U.blockNumber==null)U.confirmations=0;else if(U.confirmations==null){p==null&&(p=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let Z=p-U.blockNumber+1;Z<=0&&(Z=1),U.confirmations=Z}}const E=this.formatter.blockWithTransactions(g);return E.transactions=E.transactions.map(R=>this._wrapTransaction(R)),E}return this.formatter.block(g)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return Pt(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const n={transactionHash:this.formatter.hash(e,!0)};return Zo(()=>Pt(this,void 0,void 0,function*(){const i=yield this.perform("getTransaction",n);if(i==null)return this._emitted["t:"+e]==null?null:void 0;const d=this.formatter.transactionResponse(i);if(d.blockNumber==null)d.confirmations=0;else if(d.confirmations==null){let p=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-d.blockNumber+1;p<=0&&(p=1),d.confirmations=p}return this._wrapTransaction(d)}),{oncePoll:this})})}getTransactionReceipt(e){return Pt(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const n={transactionHash:this.formatter.hash(e,!0)};return Zo(()=>Pt(this,void 0,void 0,function*(){const i=yield this.perform("getTransactionReceipt",n);if(i==null)return this._emitted["t:"+e]==null?null:void 0;if(i.blockHash==null)return;const d=this.formatter.receipt(i);if(d.blockNumber==null)d.confirmations=0;else if(d.confirmations==null){let p=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-d.blockNumber+1;p<=0&&(p=1),d.confirmations=p}return d}),{oncePoll:this})})}getLogs(e){return Pt(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield(0,t.resolveProperties)({filter:this._getFilter(e)}),i=yield this.perform("getLogs",n);return i.forEach(d=>{d.removed==null&&(d.removed=!1)}),gt.arrayOf(this.formatter.filterLog.bind(this.formatter))(i)})}getEtherPrice(){return Pt(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return Pt(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&kt.throwArgumentError("invalid BlockTag","blockTag",e);let n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return n+=e,n<0&&(n=0),this.formatter.blockTag(n)}return this.formatter.blockTag(e)})}getResolver(e){return Pt(this,void 0,void 0,function*(){let n=e;for(;;){if(n===""||n==="."||e!=="eth"&&n==="eth")return null;const i=yield this._getResolver(n,"getResolver");if(i!=null){const d=new Qi(this,i,e);return n!==e&&!(yield d.supportsWildcard())?null:d}n=n.split(".").slice(1).join(".")}})}_getResolver(e,n){return Pt(this,void 0,void 0,function*(){n==null&&(n="ENS");const i=yield this.getNetwork();i.ensAddress||kt.throwError("network does not support ENS",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:n,network:i.name});try{const d=yield this.call({to:i.ensAddress,data:"0x0178b8bf"+kn(e).substring(2)});return this.formatter.callAddress(d)}catch{}return null})}resolveName(e){return Pt(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(i){if((0,f.isHexString)(e))throw i}typeof e!="string"&&kt.throwArgumentError("invalid ENS name","name",e);const n=yield this.getResolver(e);return n?yield n.getAddress():null})}lookupAddress(e){return Pt(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);const n=e.substring(2).toLowerCase()+".addr.reverse",i=yield this._getResolver(n,"lookupAddress");if(i==null)return null;const d=pi(yield this.call({to:i,data:"0x691f3431"+kn(n).substring(2)}),0);return(yield this.resolveName(d))!=e?null:d})}getAvatar(e){return Pt(this,void 0,void 0,function*(){let n=null;if((0,f.isHexString)(e)){const g=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",p=yield this._getResolver(g,"getAvatar");if(!p)return null;n=new Qi(this,p,g);try{const E=yield n.getAvatar();if(E)return E.url}catch(E){if(E.code!==r.Logger.errors.CALL_EXCEPTION)throw E}try{const E=pi(yield this.call({to:p,data:"0x691f3431"+kn(g).substring(2)}),0);n=yield this.getResolver(E)}catch(E){if(E.code!==r.Logger.errors.CALL_EXCEPTION)throw E;return null}}else if(n=yield this.getResolver(e),!n)return null;const i=yield n.getAvatar();return i==null?null:i.url})}perform(e,n){return kt.throwError(e+" not implemented",r.Logger.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(n=>n.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(n=>n.pollable()).length>0}_addEventListener(e,n,i){const d=new Tc(yn(e),n,i);return this._events.push(d),this._startEvent(d),this}on(e,n){return this._addEventListener(e,n,!1)}once(e,n){return this._addEventListener(e,n,!0)}emit(e,...n){let i=!1,d=[],g=yn(e);return this._events=this._events.filter(p=>p.tag!==g?!0:(setTimeout(()=>{p.listener.apply(this,n)},0),i=!0,p.once?(d.push(p),!1):!0)),d.forEach(p=>{this._stopEvent(p)}),i}listenerCount(e){if(!e)return this._events.length;let n=yn(e);return this._events.filter(i=>i.tag===n).length}listeners(e){if(e==null)return this._events.map(i=>i.listener);let n=yn(e);return this._events.filter(i=>i.tag===n).map(i=>i.listener)}off(e,n){if(n==null)return this.removeAllListeners(e);const i=[];let d=!1,g=yn(e);return this._events=this._events.filter(p=>p.tag!==g||p.listener!=n||d?!0:(d=!0,i.push(p),!1)),i.forEach(p=>{this._stopEvent(p)}),this}removeAllListeners(e){let n=[];if(e==null)n=this._events,this._events=[];else{const i=yn(e);this._events=this._events.filter(d=>d.tag!==i?!0:(n.push(d),!1))}return n.forEach(i=>{this._stopEvent(i)}),this}}var Bo=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const vr=new r.Logger(_r),Oc=["call","estimateGas"];function Un(u,e){if(u==null)return null;if(typeof u.message=="string"&&u.message.match("reverted")){const n=(0,f.isHexString)(u.data)?u.data:null;if(!e||n)return{message:u.message,data:n}}if(typeof u=="object"){for(const n in u){const i=Un(u[n],e);if(i)return i}return null}if(typeof u=="string")try{return Un(JSON.parse(u),e)}catch{}return null}function Zs(u,e,n){const i=n.transaction||n.signedTransaction;if(u==="call"){const g=Un(e,!0);if(g)return g.data;vr.throwError("missing revert data in call exception; Transaction reverted without a reason string",r.Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:i,error:e})}if(u==="estimateGas"){let g=Un(e.body,!1);g==null&&(g=Un(e,!1)),g&&vr.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:g.message,method:u,transaction:i,error:e})}let d=e.message;throw e.code===r.Logger.errors.SERVER_ERROR&&e.error&&typeof e.error.message=="string"?d=e.error.message:typeof e.body=="string"?d=e.body:typeof e.responseText=="string"&&(d=e.responseText),d=(d||"").toLowerCase(),d.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&vr.throwError("insufficient funds for intrinsic transaction cost",r.Logger.errors.INSUFFICIENT_FUNDS,{error:e,method:u,transaction:i}),d.match(/nonce (is )?too low/i)&&vr.throwError("nonce has already been used",r.Logger.errors.NONCE_EXPIRED,{error:e,method:u,transaction:i}),d.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&vr.throwError("replacement fee too low",r.Logger.errors.REPLACEMENT_UNDERPRICED,{error:e,method:u,transaction:i}),d.match(/only replay-protected/i)&&vr.throwError("legacy pre-eip-155 transactions not supported",r.Logger.errors.UNSUPPORTED_OPERATION,{error:e,method:u,transaction:i}),Oc.indexOf(u)>=0&&d.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&vr.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:u,transaction:i}),e}function Js(u){return new Promise(function(e){setTimeout(e,u)})}function Fc(u){if(u.error){const e=new Error(u.error.message);throw e.code=u.error.code,e.data=u.error.data,e}return u.result}function Ln(u){return u&&u.toLowerCase()}const ts={};class rs extends N{constructor(e,n,i){if(super(),e!==ts)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,t.defineReadOnly)(this,"provider",n),i==null&&(i=0),typeof i=="string"?((0,t.defineReadOnly)(this,"_address",this.provider.formatter.address(i)),(0,t.defineReadOnly)(this,"_index",null)):typeof i=="number"?((0,t.defineReadOnly)(this,"_index",i),(0,t.defineReadOnly)(this,"_address",null)):vr.throwArgumentError("invalid address or index","addressOrIndex",i)}connect(e){return vr.throwError("cannot alter JSON-RPC Signer connection",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new Mc(ts,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&vr.throwError("unknown account #"+this._index,r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=(0,t.shallowCopy)(e);const n=this.getAddress().then(i=>(i&&(i=i.toLowerCase()),i));if(e.gasLimit==null){const i=(0,t.shallowCopy)(e);i.from=n,e.gasLimit=this.provider.estimateGas(i)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(i=>Bo(this,void 0,void 0,function*(){if(i==null)return null;const d=yield this.provider.resolveName(i);return d==null&&vr.throwArgumentError("provided ENS name resolves to null","tx.to",i),d}))),(0,t.resolveProperties)({tx:(0,t.resolveProperties)(e),sender:n}).then(({tx:i,sender:d})=>{i.from!=null?i.from.toLowerCase()!==d&&vr.throwArgumentError("from address mismatch","transaction",e):i.from=d;const g=this.provider.constructor.hexlifyTransaction(i,{from:!0});return this.provider.send("eth_sendTransaction",[g]).then(p=>p,p=>(typeof p.message=="string"&&p.message.match(/user denied/i)&&vr.throwError("user rejected transaction",r.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:i}),Zs("sendTransaction",p,g)))})}signTransaction(e){return vr.throwError("signing transactions is unsupported",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return Bo(this,void 0,void 0,function*(){const n=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),i=yield this.sendUncheckedTransaction(e);try{return yield Zo(()=>Bo(this,void 0,void 0,function*(){const d=yield this.provider.getTransaction(i);if(d!==null)return this.provider._wrapTransaction(d,i,n)}),{oncePoll:this.provider})}catch(d){throw d.transactionHash=i,d}})}signMessage(e){return Bo(this,void 0,void 0,function*(){const n=typeof e=="string"?(0,nt.Y0)(e):e,i=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,f.hexlify)(n),i.toLowerCase()])}catch(d){throw typeof d.message=="string"&&d.message.match(/user denied/i)&&vr.throwError("user rejected signing",r.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:i,messageData:e}),d}})}_legacySignMessage(e){return Bo(this,void 0,void 0,function*(){const n=typeof e=="string"?(0,nt.Y0)(e):e,i=yield this.getAddress();try{return yield this.provider.send("eth_sign",[i.toLowerCase(),(0,f.hexlify)(n)])}catch(d){throw typeof d.message=="string"&&d.message.match(/user denied/i)&&vr.throwError("user rejected signing",r.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:i,messageData:e}),d}})}_signTypedData(e,n,i){return Bo(this,void 0,void 0,function*(){const d=yield Ar.resolveNames(e,n,i,p=>this.provider.resolveName(p)),g=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[g.toLowerCase(),JSON.stringify(Ar.getPayload(d.domain,n,d.value))])}catch(p){throw typeof p.message=="string"&&p.message.match(/user denied/i)&&vr.throwError("user rejected signing",r.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:g,messageData:{domain:d.domain,types:n,value:d.value}}),p}})}unlock(e){return Bo(this,void 0,void 0,function*(){const n=this.provider,i=yield this.getAddress();return n.send("personal_unlockAccount",[i.toLowerCase(),e,null])})}}class Mc extends rs{sendTransaction(e){return this.sendUncheckedTransaction(e).then(n=>({hash:n,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:i=>this.provider.waitForTransaction(n,i)}))}}const Rc={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class Jo extends hi{constructor(e,n){let i=n;i==null&&(i=new Promise((d,g)=>{setTimeout(()=>{this.detectNetwork().then(p=>{d(p)},p=>{g(p)})},0)})),super(i),e||(e=(0,t.getStatic)(this.constructor,"defaultUrl")()),typeof e=="string"?(0,t.defineReadOnly)(this,"connection",Object.freeze({url:e})):(0,t.defineReadOnly)(this,"connection",Object.freeze((0,t.shallowCopy)(e))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return Bo(this,void 0,void 0,function*(){yield Js(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch{try{e=yield this.send("net_version",[])}catch{}}if(e!=null){const n=(0,t.getStatic)(this.constructor,"getNetwork");try{return n(a.O$.from(e).toNumber())}catch(i){return vr.throwError("could not detect network",r.Logger.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:i})}}return vr.throwError("could not detect network",r.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new rs(ts,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(n=>this.formatter.address(n)))}send(e,n){const i={method:e,params:n,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,t.deepCopy)(i),provider:this});const d=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(d&&this._cache[e])return this._cache[e];const g=gn(this.connection,JSON.stringify(i),Fc).then(p=>(this.emit("debug",{action:"response",request:i,response:p,provider:this}),p),p=>{throw this.emit("debug",{action:"response",error:p,request:i,provider:this}),p});return d&&(this._cache[e]=g,setTimeout(()=>{this._cache[e]=null},0)),g}prepareRequest(e,n){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[Ln(n.address),n.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[Ln(n.address),n.blockTag]];case"getCode":return["eth_getCode",[Ln(n.address),n.blockTag]];case"getStorageAt":return["eth_getStorageAt",[Ln(n.address),(0,f.hexZeroPad)(n.position,32),n.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[n.signedTransaction]];case"getBlock":return n.blockTag?["eth_getBlockByNumber",[n.blockTag,!!n.includeTransactions]]:n.blockHash?["eth_getBlockByHash",[n.blockHash,!!n.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[n.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[n.transactionHash]];case"call":return["eth_call",[(0,t.getStatic)(this.constructor,"hexlifyTransaction")(n.transaction,{from:!0}),n.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,t.getStatic)(this.constructor,"hexlifyTransaction")(n.transaction,{from:!0})]];case"getLogs":return n.filter&&n.filter.address!=null&&(n.filter.address=Ln(n.filter.address)),["eth_getLogs",[n.filter]];default:break}return null}perform(e,n){return Bo(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const d=n.transaction;if(d&&d.type!=null&&a.O$.from(d.type).isZero()&&d.maxFeePerGas==null&&d.maxPriorityFeePerGas==null){const g=yield this.getFeeData();g.maxFeePerGas==null&&g.maxPriorityFeePerGas==null&&(n=(0,t.shallowCopy)(n),n.transaction=(0,t.shallowCopy)(d),delete n.transaction.type)}}const i=this.prepareRequest(e,n);i==null&&vr.throwError(e+" not implemented",r.Logger.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(i[0],i[1])}catch(d){return Zs(e,d,n)}})}_startEvent(e){e.tag==="pending"&&this._startPending(),super._startEvent(e)}_startPending(){if(this._pendingFilter!=null)return;const e=this,n=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=n,n.then(function(i){function d(){e.send("eth_getFilterChanges",[i]).then(function(g){if(e._pendingFilter!=n)return null;let p=Promise.resolve();return g.forEach(function(E){e._emitted["t:"+E.toLowerCase()]="pending",p=p.then(function(){return e.getTransaction(E).then(function(R){return e.emit("pending",R),null})})}),p.then(function(){return Js(1e3)})}).then(function(){if(e._pendingFilter!=n){e.send("eth_uninstallFilter",[i]);return}return setTimeout(function(){d()},0),null}).catch(g=>{})}return d(),i}).catch(i=>{})}_stopEvent(e){e.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,n){const i=(0,t.shallowCopy)(Rc);if(n)for(const g in n)n[g]&&(i[g]=!0);(0,t.checkProperties)(e,i);const d={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(g){if(e[g]==null)return;const p=(0,f.hexValue)(a.O$.from(e[g]));g==="gasLimit"&&(g="gas"),d[g]=p}),["from","to","data"].forEach(function(g){e[g]!=null&&(d[g]=(0,f.hexlify)(e[g]))}),e.accessList&&(d.accessList=fo(e.accessList)),d}}let zn=null;try{if(zn=WebSocket,zn==null)throw new Error("inject please")}catch{const e=new r.Logger(_r);zn=function(){e.throwError("WebSockets not supported in this environment",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var os=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const gi=new r.Logger(_r);let kc=1;class yi extends Jo{constructor(e,n){n==="any"&&gi.throwError("WebSocketProvider does not support 'any' network yet",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),typeof e=="string"?super(e,n):super("_websocket",n),this._pollingInterval=-1,this._wsReady=!1,typeof e=="string"?(0,t.defineReadOnly)(this,"_websocket",new zn(this.connection.url)):(0,t.defineReadOnly)(this,"_websocket",e),(0,t.defineReadOnly)(this,"_requests",{}),(0,t.defineReadOnly)(this,"_subs",{}),(0,t.defineReadOnly)(this,"_subIds",{}),(0,t.defineReadOnly)(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach(d=>{this.websocket.send(this._requests[d].payload)})},this.websocket.onmessage=d=>{const g=d.data,p=JSON.parse(g);if(p.id!=null){const E=String(p.id),R=this._requests[E];if(delete this._requests[E],p.result!==void 0)R.callback(null,p.result),this.emit("debug",{action:"response",request:JSON.parse(R.payload),response:p.result,provider:this});else{let U=null;p.error?(U=new Error(p.error.message||"unknown error"),(0,t.defineReadOnly)(U,"code",p.error.code||null),(0,t.defineReadOnly)(U,"response",g)):U=new Error("unknown error"),R.callback(U,void 0),this.emit("debug",{action:"response",error:U,request:JSON.parse(R.payload),provider:this})}}else if(p.method==="eth_subscription"){const E=this._subs[p.params.subscription];E&&E.processFunc(p.params.result)}else console.warn("this should not happen")};const i=setInterval(()=>{this.emit("poll")},1e3);i.unref&&i.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){gi.throwError("cannot reset events block on WebSocketProvider",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){gi.throwError("cannot set polling interval on WebSocketProvider",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return os(this,void 0,void 0,function*(){return null})}set polling(e){!e||gi.throwError("cannot set polling on WebSocketProvider",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,n){const i=kc++;return new Promise((d,g)=>{function p(R,U){return R?g(R):d(U)}const E=JSON.stringify({method:e,params:n,id:i,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(E),provider:this}),this._requests[String(i)]={callback:p,payload:E},this._wsReady&&this.websocket.send(E)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,n,i){return os(this,void 0,void 0,function*(){let d=this._subIds[e];d==null&&(d=Promise.all(n).then(p=>this.send("eth_subscribe",p)),this._subIds[e]=d);const g=yield d;this._subs[g]={tag:e,processFunc:i}})}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],n=>{const i=a.O$.from(n.number).toNumber();this._emitted.block=i,this.emit("block",i)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],n=>{this.emit("pending",n)});break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],n=>{n.removed==null&&(n.removed=!1),this.emit(e.filter,this.formatter.filterLog(n))});break;case"tx":{const n=i=>{const d=i.hash;this.getTransactionReceipt(d).then(g=>{!g||this.emit(d,g)})};n(e),this._subscribe("tx",["newHeads"],i=>{this._events.filter(d=>d.type==="tx").forEach(n)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e);break}}_stopEvent(e){let n=e.tag;if(e.type==="tx"){if(this._events.filter(d=>d.type==="tx").length)return;n="tx"}else if(this.listenerCount(e.event))return;const i=this._subIds[n];!i||(delete this._subIds[n],i.then(d=>{!this._subs[d]||(delete this._subs[d],this.send("eth_unsubscribe",[d]))}))}destroy(){return os(this,void 0,void 0,function*(){this.websocket.readyState===zn.CONNECTING&&(yield new Promise(e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}})),this.websocket.close(1e3)})}}var _c=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const jn=new r.Logger(_r);class qs extends Jo{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return _c(this,void 0,void 0,function*(){let n=this.network;return n==null&&(n=yield e.detectNetwork.call(this),n||jn.throwError("no network detected",r.Logger.errors.UNKNOWN_ERROR,{}),this._network==null&&((0,t.defineReadOnly)(this,"_network",n),this.emit("network",n,null))),n})}}class Eo extends qs{constructor(e,n){jn.checkAbstract(new.target,Eo),e=(0,t.getStatic)(new.target,"getNetwork")(e),n=(0,t.getStatic)(new.target,"getApiKey")(n);const i=(0,t.getStatic)(new.target,"getUrl")(e,n);super(i,e),typeof n=="string"?(0,t.defineReadOnly)(this,"apiKey",n):n!=null&&Object.keys(n).forEach(d=>{(0,t.defineReadOnly)(this,d,n[d])})}_startPending(){jn.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return jn.throwError("API provider does not support signing",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,n){return jn.throwError("not implemented; sub-classes must override getUrl",r.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const Ys=new r.Logger(_r),mi="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class Xs extends yi{constructor(e,n){const i=new ns(e,n),d=i.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");super(d,i.network),(0,t.defineReadOnly)(this,"apiKey",i.apiKey)}isCommunityResource(){return this.apiKey===mi}}class ns extends Eo{static getWebSocketProvider(e,n){return new Xs(e,n)}static getApiKey(e){return e==null?mi:(e&&typeof e!="string"&&Ys.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,n){let i=null;switch(e.name){case"homestead":i="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":i="eth-goerli.g.alchemy.com/v2/";break;case"matic":i="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":i="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":i="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":i="arb-goerli.g.alchemy.com/v2/";break;case"optimism":i="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":i="opt-goerli.g.alchemy.com/v2/";break;default:Ys.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+i+n,throttleCallback:(d,g)=>(n===mi&&Nn(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===mi}}const Nc=new r.Logger(_r),vi="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function Dc(u){switch(u){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return Nc.throwArgumentError("unsupported network","name",u)}class Qs extends Eo{isCommunityResource(){return this.apiKey===vi}static getApiKey(e){return e==null?vi:e}static getUrl(e,n){n==null&&(n=vi);const i={allowGzip:!0,url:"https://"+Dc(e.name)+n,throttleCallback:(d,g)=>(n.apiKey===vi&&Nn(),Promise.resolve(!0))};return n.projectSecret!=null&&(i.user="",i.password=n.projectSecret),i}}var Wc=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const ea=new r.Logger(_r);class ta extends Eo{static getApiKey(e){return e!=null&&ea.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,n){let i=null;switch(e.name){case"homestead":i="https://cloudflare-eth.com/";break;default:ea.throwArgumentError("unsupported network","network",arguments[0])}return i}perform(e,n){const i=Object.create(null,{perform:{get:()=>super.perform}});return Wc(this,void 0,void 0,function*(){return e==="getBlockNumber"?(yield i.perform.call(this,"getBlock",{blockTag:"latest"})).number:i.perform.call(this,e,n)})}}var xi=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const _o=new r.Logger(_r);function ra(u){const e={};for(let n in u){if(u[n]==null)continue;let i=u[n];n==="type"&&i===0||({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n]?i=(0,f.hexValue)((0,f.hexlify)(i)):n==="accessList"?i="["+fo(i).map(d=>`{address:"${d.address}",storageKeys:["${d.storageKeys.join('","')}"]}`).join(",")+"]":i=(0,f.hexlify)(i),e[n]=i)}return e}function Uc(u){if(u.status==0&&(u.message==="No records found"||u.message==="No transactions found"))return u.result;if(u.status!=1||typeof u.message!="string"||!u.message.match(/^OK/)){const e=new Error("invalid response");throw e.result=JSON.stringify(u),(u.result||"").toLowerCase().indexOf("rate limit")>=0&&(e.throttleRetry=!0),e}return u.result}function oa(u){if(u&&u.status==0&&u.message=="NOTOK"&&(u.result||"").toLowerCase().indexOf("rate limit")>=0){const e=new Error("throttled response");throw e.result=JSON.stringify(u),e.throttleRetry=!0,e}if(u.jsonrpc!="2.0"){const e=new Error("invalid response");throw e.result=JSON.stringify(u),e}if(u.error){const e=new Error(u.error.message||"unknown error");throw u.error.code&&(e.code=u.error.code),u.error.data&&(e.data=u.error.data),e}return u.result}function na(u){if(u==="pending")throw new Error("pending not supported");return u==="latest"?u:parseInt(u.substring(2),16)}function is(u,e,n){if(u==="call"&&e.code===r.Logger.errors.SERVER_ERROR){const d=e.error;if(d&&(d.message.match(/reverted/i)||d.message.match(/VM execution error/i))){let g=d.data;if(g&&(g="0x"+g.replace(/^.*0x/i,"")),(0,f.isHexString)(g))return g;_o.throwError("missing revert data in call exception",r.Logger.errors.CALL_EXCEPTION,{error:e,data:"0x"})}}let i=e.message;throw e.code===r.Logger.errors.SERVER_ERROR&&(e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText)),i=(i||"").toLowerCase(),i.match(/insufficient funds/)&&_o.throwError("insufficient funds for intrinsic transaction cost",r.Logger.errors.INSUFFICIENT_FUNDS,{error:e,method:u,transaction:n}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&_o.throwError("nonce has already been used",r.Logger.errors.NONCE_EXPIRED,{error:e,method:u,transaction:n}),i.match(/another transaction with same nonce/)&&_o.throwError("replacement fee too low",r.Logger.errors.REPLACEMENT_UNDERPRICED,{error:e,method:u,transaction:n}),i.match(/execution failed due to an exception|execution reverted/)&&_o.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:u,transaction:n}),e}class ia extends hi{constructor(e,n){super(e),(0,t.defineReadOnly)(this,"baseUrl",this.getBaseUrl()),(0,t.defineReadOnly)(this,"apiKey",n||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";default:}return _o.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,n){const i=Object.keys(n).reduce((g,p)=>{const E=n[p];return E!=null&&(g+=`&${p}=${E}`),g},""),d=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${i}${d}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,n){return n.module=e,n.apikey=this.apiKey,n}fetch(e,n,i){return xi(this,void 0,void 0,function*(){const d=i?this.getPostUrl():this.getUrl(e,n),g=i?this.getPostData(e,n):null,p=e==="proxy"?oa:Uc;this.emit("debug",{action:"request",request:d,provider:this});const E={url:d,throttleSlotInterval:1e3,throttleCallback:(Z,ue)=>(this.isCommunityResource()&&Nn(),Promise.resolve(!0))};let R=null;g&&(E.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},R=Object.keys(g).map(Z=>`${Z}=${g[Z]}`).join("&"));const U=yield gn(E,R,p||oa);return this.emit("debug",{action:"response",request:d,response:(0,t.deepCopy)(U),provider:this}),U})}detectNetwork(){return xi(this,void 0,void 0,function*(){return this.network})}perform(e,n){const i=Object.create(null,{perform:{get:()=>super.perform}});return xi(this,void 0,void 0,function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:n.address,tag:n.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:n.address,tag:n.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:n.address,tag:n.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:n.address,position:n.position,tag:n.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:n.signedTransaction},!0).catch(d=>is("sendTransaction",d,n.signedTransaction));case"getBlock":if(n.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:n.blockTag,boolean:n.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:n.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:n.transactionHash});case"call":{if(n.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const d=ra(n.transaction);d.module="proxy",d.action="eth_call";try{return yield this.fetch("proxy",d,!0)}catch(g){return is("call",g,n.transaction)}}case"estimateGas":{const d=ra(n.transaction);d.module="proxy",d.action="eth_estimateGas";try{return yield this.fetch("proxy",d,!0)}catch(g){return is("estimateGas",g,n.transaction)}}case"getLogs":{const d={action:"getLogs"};if(n.filter.fromBlock&&(d.fromBlock=na(n.filter.fromBlock)),n.filter.toBlock&&(d.toBlock=na(n.filter.toBlock)),n.filter.address&&(d.address=n.filter.address),n.filter.topics&&n.filter.topics.length>0&&(n.filter.topics.length>1&&_o.throwError("unsupported topic count",r.Logger.errors.UNSUPPORTED_OPERATION,{topics:n.filter.topics}),n.filter.topics.length===1)){const E=n.filter.topics[0];(typeof E!="string"||E.length!==66)&&_o.throwError("unsupported topic format",r.Logger.errors.UNSUPPORTED_OPERATION,{topic0:E}),d.topic0=E}const g=yield this.fetch("logs",d);let p={};for(let E=0;E<g.length;E++){const R=g[E];if(R.blockHash==null){if(p[R.blockNumber]==null){const U=yield this.getBlock(R.blockNumber);U&&(p[R.blockNumber]=U.hash)}R.blockHash=p[R.blockNumber]}}return g}case"getEtherPrice":return this.network.name!=="homestead"?0:parseFloat((yield this.fetch("stats",{action:"ethprice"})).ethusd);default:break}return i.perform.call(this,e,n)})}getHistory(e,n,i){return xi(this,void 0,void 0,function*(){const d={action:"txlist",address:yield this.resolveName(e),startblock:n==null?0:n,endblock:i==null?99999999:i,sort:"asc"};return(yield this.fetch("account",d)).map(p=>{["contractAddress","to"].forEach(function(R){p[R]==""&&delete p[R]}),p.creates==null&&p.contractAddress!=null&&(p.creates=p.contractAddress);const E=this.formatter.transactionResponse(p);return p.timeStamp&&(E.timestamp=parseInt(p.timeStamp)),E})})}isCommunityResource(){return this.apiKey==null}}function sa(u){u=u.slice();for(let e=u.length-1;e>0;e--){const n=Math.floor(Math.random()*(e+1)),i=u[e];u[e]=u[n],u[n]=i}return u}var bi=function(u,e,n,i){function d(g){return g instanceof n?g:new n(function(p){p(g)})}return new(n||(n=Promise))(function(g,p){function E(Z){try{U(i.next(Z))}catch(ue){p(ue)}}function R(Z){try{U(i.throw(Z))}catch(ue){p(ue)}}function U(Z){Z.done?g(Z.value):d(Z.value).then(E,R)}U((i=i.apply(u,e||[])).next())})};const qo=new r.Logger(_r);function Ai(){return new Date().getTime()}function aa(u){let e=null;for(let n=0;n<u.length;n++){const i=u[n];if(i==null)return null;e?e.name===i.name&&e.chainId===i.chainId&&(e.ensAddress===i.ensAddress||e.ensAddress==null&&i.ensAddress==null)||qo.throwArgumentError("provider mismatch","networks",u):e=i}return e}function ca(u,e){u=u.slice().sort();const n=Math.floor(u.length/2);if(u.length%2)return u[n];const i=u[n-1],d=u[n];return e!=null&&Math.abs(i-d)>e?null:(i+d)/2}function mn(u){if(u===null)return"null";if(typeof u=="number"||typeof u=="boolean")return JSON.stringify(u);if(typeof u=="string")return u;if(a.O$.isBigNumber(u))return u.toString();if(Array.isArray(u))return JSON.stringify(u.map(e=>mn(e)));if(typeof u=="object"){const e=Object.keys(u);return e.sort(),"{"+e.map(n=>{let i=u[n];return typeof i=="function"?i="[function]":i=mn(i),JSON.stringify(n)+":"+i}).join(",")+"}"}throw new Error("unknown value type: "+typeof u)}let Lc=1;function ua(u){let e=null,n=null,i=new Promise(p=>{e=function(){n&&(clearTimeout(n),n=null),p()},n=setTimeout(e,u)});const d=p=>(i=i.then(p),i);function g(){return i}return{cancel:e,getPromise:g,wait:d}}const zc=[r.Logger.errors.CALL_EXCEPTION,r.Logger.errors.INSUFFICIENT_FUNDS,r.Logger.errors.NONCE_EXPIRED,r.Logger.errors.REPLACEMENT_UNDERPRICED,r.Logger.errors.UNPREDICTABLE_GAS_LIMIT],jc=["address","args","errorArgs","errorSignature","method","transaction"];function wi(u,e){const n={weight:u.weight};return Object.defineProperty(n,"provider",{get:()=>u.provider}),u.start&&(n.start=u.start),e&&(n.duration=e-u.start),u.done&&(u.error?n.error=u.error:n.result=u.result||null),n}function Gc(u,e){return function(n){const i={};n.forEach(g=>{const p=u(g.result);i[p]||(i[p]={count:0,result:g.result}),i[p].count++});const d=Object.keys(i);for(let g=0;g<d.length;g++){const p=i[d[g]];if(p.count>=e)return p.result}}}function Vc(u,e,n){let i=mn;switch(e){case"getBlockNumber":return function(d){const g=d.map(E=>E.result);let p=ca(d.map(E=>E.result),2);if(p!=null)return p=Math.ceil(p),g.indexOf(p+1)>=0&&p++,p>=u._highestBlockNumber&&(u._highestBlockNumber=p),u._highestBlockNumber};case"getGasPrice":return function(d){const g=d.map(p=>p.result);return g.sort(),g[Math.floor(g.length/2)]};case"getEtherPrice":return function(d){return ca(d.map(g=>g.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":i=function(d){return d==null?null:(d=(0,t.shallowCopy)(d),d.confirmations=-1,mn(d))};break;case"getBlock":n.includeTransactions?i=function(d){return d==null?null:(d=(0,t.shallowCopy)(d),d.transactions=d.transactions.map(g=>(g=(0,t.shallowCopy)(g),g.confirmations=-1,g)),mn(d))}:i=function(d){return d==null?null:mn(d)};break;default:throw new Error("unknown method: "+e)}return Gc(i,u.quorum)}function Gn(u,e){return bi(this,void 0,void 0,function*(){const n=u.provider;return n.blockNumber!=null&&n.blockNumber>=e||e===-1?n:Zo(()=>new Promise((i,d)=>{setTimeout(function(){return n.blockNumber>=e?i(n):u.cancelled?i(null):i(void 0)},0)}),{oncePoll:n})})}function $c(u,e,n,i){return bi(this,void 0,void 0,function*(){let d=u.provider;switch(n){case"getBlockNumber":case"getGasPrice":return d[n]();case"getEtherPrice":if(d.getEtherPrice)return d.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return i.blockTag&&(0,f.isHexString)(i.blockTag)&&(d=yield Gn(u,e)),d[n](i.address,i.blockTag||"latest");case"getStorageAt":return i.blockTag&&(0,f.isHexString)(i.blockTag)&&(d=yield Gn(u,e)),d.getStorageAt(i.address,i.position,i.blockTag||"latest");case"getBlock":return i.blockTag&&(0,f.isHexString)(i.blockTag)&&(d=yield Gn(u,e)),d[i.includeTransactions?"getBlockWithTransactions":"getBlock"](i.blockTag||i.blockHash);case"call":case"estimateGas":return i.blockTag&&(0,f.isHexString)(i.blockTag)&&(d=yield Gn(u,e)),n==="call"&&i.blockTag?d[n](i.transaction,i.blockTag):d[n](i.transaction);case"getTransaction":case"getTransactionReceipt":return d[n](i.transactionHash);case"getLogs":{let g=i.filter;return(g.fromBlock&&(0,f.isHexString)(g.fromBlock)||g.toBlock&&(0,f.isHexString)(g.toBlock))&&(d=yield Gn(u,e)),d.getLogs(g)}}return qo.throwError("unknown method error",r.Logger.errors.UNKNOWN_ERROR,{method:n,params:i})})}class la extends hi{constructor(e,n){e.length===0&&qo.throwArgumentError("missing providers","providers",e);const i=e.map((p,E)=>{if(it.isProvider(p)){const Z=qi(p)?2e3:750;return Object.freeze({provider:p,weight:1,stallTimeout:Z,priority:1})}const R=(0,t.shallowCopy)(p);R.priority==null&&(R.priority=1),R.stallTimeout==null&&(R.stallTimeout=qi(p)?2e3:750),R.weight==null&&(R.weight=1);const U=R.weight;return(U%1||U>512||U<1)&&qo.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${E}].weight`,U),Object.freeze(R)}),d=i.reduce((p,E)=>p+E.weight,0);n==null?n=d/2:n>d&&qo.throwArgumentError("quorum will always fail; larger than total weight","quorum",n);let g=aa(i.map(p=>p.provider.network));g==null&&(g=new Promise((p,E)=>{setTimeout(()=>{this.detectNetwork().then(p,E)},0)})),super(g),(0,t.defineReadOnly)(this,"providerConfigs",Object.freeze(i)),(0,t.defineReadOnly)(this,"quorum",n),this._highestBlockNumber=-1}detectNetwork(){return bi(this,void 0,void 0,function*(){const e=yield Promise.all(this.providerConfigs.map(n=>n.provider.getNetwork()));return aa(e)})}perform(e,n){return bi(this,void 0,void 0,function*(){if(e==="sendTransaction"){const R=yield Promise.all(this.providerConfigs.map(U=>U.provider.sendTransaction(n.signedTransaction).then(Z=>Z.hash,Z=>Z)));for(let U=0;U<R.length;U++){const Z=R[U];if(typeof Z=="string")return Z}throw R[0]}this._highestBlockNumber===-1&&e!=="getBlockNumber"&&(yield this.getBlockNumber());const i=Vc(this,e,n),d=sa(this.providerConfigs.map(t.shallowCopy));d.sort((R,U)=>R.priority-U.priority);const g=this._highestBlockNumber;let p=0,E=!0;for(;;){const R=Ai();let U=d.filter(Se=>Se.runner&&R-Se.start<Se.stallTimeout).reduce((Se,Le)=>Se+Le.weight,0);for(;U<this.quorum&&p<d.length;){const Se=d[p++],Le=Lc++;Se.start=Ai(),Se.staller=ua(Se.stallTimeout),Se.staller.wait(()=>{Se.staller=null}),Se.runner=$c(Se,g,e,n).then(Ve=>{Se.done=!0,Se.result=Ve,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:Le,backend:wi(Se,Ai()),request:{method:e,params:(0,t.deepCopy)(n)},provider:this})},Ve=>{Se.done=!0,Se.error=Ve,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:Le,backend:wi(Se,Ai()),request:{method:e,params:(0,t.deepCopy)(n)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:Le,backend:wi(Se,null),request:{method:e,params:(0,t.deepCopy)(n)},provider:this}),U+=Se.weight}const Z=[];d.forEach(Se=>{Se.done||!Se.runner||(Z.push(Se.runner),Se.staller&&Z.push(Se.staller.getPromise()))}),Z.length&&(yield Promise.race(Z));const ue=d.filter(Se=>Se.done&&Se.error==null);if(ue.length>=this.quorum){const Se=i(ue);if(Se!==void 0)return d.forEach(Le=>{Le.staller&&Le.staller.cancel(),Le.cancelled=!0}),Se;E||(yield ua(100).getPromise()),E=!1}const Me=d.reduce((Se,Le)=>{if(!Le.done||Le.error==null)return Se;const Ve=Le.error.code;return zc.indexOf(Ve)>=0&&(Se[Ve]||(Se[Ve]={error:Le.error,weight:0}),Se[Ve].weight+=Le.weight),Se},{});if(Object.keys(Me).forEach(Se=>{const Le=Me[Se];if(Le.weight<this.quorum)return;d.forEach(et=>{et.staller&&et.staller.cancel(),et.cancelled=!0});const Ve=Le.error,at={};jc.forEach(et=>{Ve[et]!=null&&(at[et]=Ve[et])}),qo.throwError(Ve.reason||Ve.message,Se,at)}),d.filter(Se=>!Se.done).length===0)break}return d.forEach(R=>{R.staller&&R.staller.cancel(),R.cancelled=!0}),qo.throwError("failed to meet quorum",r.Logger.errors.SERVER_ERROR,{method:e,params:n,results:d.map(R=>wi(R)),provider:this})})}}const da=null,Ci=new r.Logger(_r),Vn="84842078b09946638c03157f83405213";class fa extends yi{constructor(e,n){const i=new ss(e,n),d=i.connection;d.password&&Ci.throwError("INFURA WebSocket project secrets unsupported",r.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});const g=d.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(g,e),(0,t.defineReadOnly)(this,"apiKey",i.projectId),(0,t.defineReadOnly)(this,"projectId",i.projectId),(0,t.defineReadOnly)(this,"projectSecret",i.projectSecret)}isCommunityResource(){return this.projectId===Vn}}class ss extends Eo{static getWebSocketProvider(e,n){return new fa(e,n)}static getApiKey(e){const n={apiKey:Vn,projectId:Vn,projectSecret:null};return e==null||(typeof e=="string"?n.projectId=e:e.projectSecret!=null?(Ci.assertArgument(typeof e.projectId=="string","projectSecret requires a projectId","projectId",e.projectId),Ci.assertArgument(typeof e.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),n.projectId=e.projectId,n.projectSecret=e.projectSecret):e.projectId&&(n.projectId=e.projectId),n.apiKey=n.projectId),n}static getUrl(e,n){let i=null;switch(e?e.name:"unknown"){case"homestead":i="mainnet.infura.io";break;case"goerli":i="goerli.infura.io";break;case"sepolia":i="sepolia.infura.io";break;case"matic":i="polygon-mainnet.infura.io";break;case"maticmum":i="polygon-mumbai.infura.io";break;case"optimism":i="optimism-mainnet.infura.io";break;case"optimism-goerli":i="optimism-goerli.infura.io";break;case"arbitrum":i="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":i="arbitrum-goerli.infura.io";break;default:Ci.throwError("unsupported network",r.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const d={allowGzip:!0,url:"https://"+i+"/v3/"+n.projectId,throttleCallback:(g,p)=>(n.projectId===Vn&&Nn(),Promise.resolve(!0))};return n.projectSecret!=null&&(d.user="",d.password=n.projectSecret),d}isCommunityResource(){return this.projectId===Vn}}class Hc extends Jo{send(e,n){const i={method:e,params:n,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch==null&&(this._pendingBatch=[]);const d={request:i,resolve:null,reject:null},g=new Promise((p,E)=>{d.resolve=p,d.reject=E});return this._pendingBatch.push(d),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{const p=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const E=p.map(R=>R.request);return this.emit("debug",{action:"requestBatch",request:(0,t.deepCopy)(E),provider:this}),gn(this.connection,JSON.stringify(E)).then(R=>{this.emit("debug",{action:"response",request:E,response:R,provider:this}),p.forEach((U,Z)=>{const ue=R[Z];if(ue.error){const Me=new Error(ue.error.message);Me.code=ue.error.code,Me.data=ue.error.data,U.reject(Me)}else U.resolve(ue.result)})},R=>{this.emit("debug",{action:"response",error:R,request:E,provider:this}),p.forEach(U=>{U.reject(R)})})},10)),g}}const as=new r.Logger(_r),Kc="ETHERS_JS_SHARED";class pa extends Eo{static getApiKey(e){return e&&typeof e!="string"&&as.throwArgumentError("invalid apiKey","apiKey",e),e||Kc}static getUrl(e,n){as.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let i=null;switch(e.name){case"homestead":i="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":i="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":i="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":i="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":i="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:as.throwArgumentError("unsupported network","network",arguments[0])}return i+"?apiKey="+n}}const ha=new r.Logger(_r),ga="62e1ad51b37b8e00394bda3b";class ya extends Eo{static getApiKey(e){const n={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return e==null?n.applicationId=ga:typeof e=="string"?n.applicationId=e:e.applicationSecretKey!=null?(n.applicationId=e.applicationId,n.applicationSecretKey=e.applicationSecretKey):e.applicationId?n.applicationId=e.applicationId:ha.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),n}static getUrl(e,n){let i=null;switch(e?e.name:"unknown"){case"goerli":i="eth-goerli.gateway.pokt.network";break;case"homestead":i="eth-mainnet.gateway.pokt.network";break;case"kovan":i="poa-kovan.gateway.pokt.network";break;case"matic":i="poly-mainnet.gateway.pokt.network";break;case"maticmum":i="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":i="eth-rinkeby.gateway.pokt.network";break;case"ropsten":i="eth-ropsten.gateway.pokt.network";break;default:ha.throwError("unsupported network",r.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const d=`https://${i}/v1/lb/${n.applicationId}`,g={headers:{},url:d};return n.applicationSecretKey!=null&&(g.user="",g.password=n.applicationSecretKey),g}isCommunityResource(){return this.applicationId===ga}}const ma=new r.Logger(_r);let Zc=1;function va(u,e){const n="Web3LegacyFetcher";return function(i,d){const g={method:i,params:d,id:Zc++,jsonrpc:"2.0"};return new Promise((p,E)=>{this.emit("debug",{action:"request",fetcher:n,request:(0,t.deepCopy)(g),provider:this}),e(g,(R,U)=>{if(R)return this.emit("debug",{action:"response",fetcher:n,error:R,request:g,provider:this}),E(R);if(this.emit("debug",{action:"response",fetcher:n,request:g,response:U,provider:this}),U.error){const Z=new Error(U.error.message);return Z.code=U.error.code,Z.data=U.error.data,E(Z)}p(U.result)})})}}function Jc(u){return function(e,n){n==null&&(n=[]);const i={method:e,params:n};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,t.deepCopy)(i),provider:this}),u.request(i).then(d=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,response:d,provider:this}),d),d=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,error:d,provider:this}),d})}}class xa extends Jo{constructor(e,n){e==null&&ma.throwArgumentError("missing provider","provider",e);let i=null,d=null,g=null;typeof e=="function"?(i="unknown:",d=e):(i=e.host||e.path||"",!i&&e.isMetaMask&&(i="metamask"),g=e,e.request?(i===""&&(i="eip-1193:"),d=Jc(e)):e.sendAsync?d=va(e,e.sendAsync.bind(e)):e.send?d=va(e,e.send.bind(e)):ma.throwArgumentError("unsupported provider","provider",e),i||(i="unknown:")),super(i,n),(0,t.defineReadOnly)(this,"jsonRpcFetchFunc",d),(0,t.defineReadOnly)(this,"provider",g)}send(e,n){return this.jsonRpcFetchFunc(e,n)}}const ba=new r.Logger(_r);function cs(u,e){if(u==null&&(u="homestead"),typeof u=="string"){const i=u.match(/^(ws|http)s?:/i);if(i)switch(i[1].toLowerCase()){case"http":case"https":return new Jo(u);case"ws":case"wss":return new yi(u);default:ba.throwArgumentError("unsupported URL scheme","network",u)}}const n=Ki(u);return(!n||!n._defaultProvider)&&ba.throwError("unsupported getDefaultProvider network",r.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:u}),n._defaultProvider({FallbackProvider:la,AlchemyProvider:ns,AnkrProvider:Qs,CloudflareProvider:ta,EtherscanProvider:ia,InfuraProvider:ss,JsonRpcProvider:Jo,NodesmithProvider:pa,PocketProvider:ya,Web3Provider:xa,IpcProvider:da},e)}const qc="solidity/5.7.0",Yc=new RegExp("^bytes([0-9]+)$"),Xc=new RegExp("^(u?int)([0-9]*)$"),Qc=new RegExp("^(.*)\\[([0-9]*)\\]$"),eu="0000000000000000000000000000000000000000000000000000000000000000",vn=new r.Logger(qc);function Aa(u,e,n){switch(u){case"address":return n?(0,f.zeroPad)(e,32):(0,f.arrayify)(e);case"string":return(0,nt.Y0)(e);case"bytes":return(0,f.arrayify)(e);case"bool":return e=e?"0x01":"0x00",n?(0,f.zeroPad)(e,32):(0,f.arrayify)(e)}let i=u.match(Xc);if(i){let d=parseInt(i[2]||"256");return(i[2]&&String(d)!==i[2]||d%8!==0||d===0||d>256)&&vn.throwArgumentError("invalid number type","type",u),n&&(d=256),e=a.O$.from(e).toTwos(d),(0,f.zeroPad)(e,d/8)}if(i=u.match(Yc),i){const d=parseInt(i[1]);return(String(d)!==i[1]||d===0||d>32)&&vn.throwArgumentError("invalid bytes type","type",u),(0,f.arrayify)(e).byteLength!==d&&vn.throwArgumentError(`invalid value for ${u}`,"value",e),n?(0,f.arrayify)((e+eu).substring(0,66)):e}if(i=u.match(Qc),i&&Array.isArray(e)){const d=i[1];parseInt(i[2]||String(e.length))!=e.length&&vn.throwArgumentError(`invalid array length for ${u}`,"value",e);const p=[];return e.forEach(function(E){p.push(Aa(d,E,!0))}),(0,f.concat)(p)}return vn.throwArgumentError("invalid type","type",u)}function us(u,e){u.length!=e.length&&vn.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);const n=[];return u.forEach(function(i,d){n.push(Aa(i,e[d]))}),(0,f.hexlify)((0,f.concat)(n))}function tu(u,e){return(0,re.keccak256)(us(u,e))}function ru(u,e){return B(us(u,e))}var ou=C(35637),wa=C(86237);const nu="units/5.7.0",Ca=new r.Logger(nu),Ba=["wei","kwei","mwei","gwei","szabo","finney","ether"];function iu(u){const e=String(u).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||u==="."||u==="-.")&&Ca.throwArgumentError("invalid value","value",u);let n=e[0],i="";for(n.substring(0,1)==="-"&&(i="-",n=n.substring(1));n.substring(0,1)==="0";)n=n.substring(1);n===""&&(n="0");let d="";for(e.length===2&&(d="."+(e[1]||"0"));d.length>2&&d[d.length-1]==="0";)d=d.substring(0,d.length-1);const g=[];for(;n.length;)if(n.length<=3){g.unshift(n);break}else{const p=n.length-3;g.unshift(n.substring(p)),n=n.substring(0,p)}return i+g.join(",")+d}function Ea(u,e){if(typeof e=="string"){const n=Ba.indexOf(e);n!==-1&&(e=3*n)}return(0,Mo.S5)(u,e!=null?e:18)}function Ta(u,e){if(typeof u!="string"&&Ca.throwArgumentError("value must be a string","value",u),typeof e=="string"){const n=Ba.indexOf(e);n!==-1&&(e=3*n)}return(0,Mo.Ox)(u,e!=null?e:18)}function su(u){return Ea(u,18)}function au(u){return Ta(u,18)}const ls="ethers/5.7.2",Ia=new r.Logger(ls);try{const u=window;u._ethers==null&&(u._ethers=h)}catch{}},37832:function(G){G.exports=function(x){return(C,...H)=>function(O,...P){return new Promise((m,o)=>{O(...P,(h,f)=>{h?o(h):m(f)})})}(C.bind(x),...H)}},62587:function(G){"use strict";function x(C,H){return Object.prototype.hasOwnProperty.call(C,H)}G.exports=function(C,H,O,P){H=H||"&",O=O||"=";var m={};if(typeof C!="string"||C.length===0)return m;var o=/\+/g;C=C.split(H);var h=1e3;P&&typeof P.maxKeys=="number"&&(h=P.maxKeys);var f=C.length;h>0&&f>h&&(f=h);for(var a=0;a<f;++a){var t=C[a].replace(o,"%20"),r=t.indexOf(O),c,z,K,L;r>=0?(c=t.substr(0,r),z=t.substr(r+1)):(c=t,z=""),K=decodeURIComponent(c),L=decodeURIComponent(z),x(m,K)?Array.isArray(m[K])?m[K].push(L):m[K]=[m[K],L]:m[K]=L}return m}},12361:function(G){"use strict";var x=function(C){switch(typeof C){case"string":return C;case"boolean":return C?"true":"false";case"number":return isFinite(C)?C:"";default:return""}};G.exports=function(C,H,O,P){return H=H||"&",O=O||"=",C===null&&(C=void 0),typeof C=="object"?Object.keys(C).map(function(m){var o=encodeURIComponent(x(m))+O;return Array.isArray(C[m])?C[m].map(function(h){return o+encodeURIComponent(x(h))}).join(H):o+encodeURIComponent(x(C[m]))}).join(H):P?encodeURIComponent(x(P))+O+encodeURIComponent(x(C)):""}},17673:function(G,x,C){"use strict";x.decode=x.parse=C(62587),x.encode=x.stringify=C(12361)},17635:function(G){"use strict";(function(x){function H(z){const K=new Uint32Array([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]);let L=1779033703,F=3144134277,fe=1013904242,re=2773480762,X=1359893119,j=2600822924,J=528734635,oe=1541459225;const Ce=new Uint32Array(64);function se(Ot){let Tt=0,Ft=Ot.length;for(;Ft>=64;){let Ne=L,Ee=F,Oe=fe,Ke=re,_e=X,ke=j,dt=J,nt=oe,vt,Et,xt,ut,nr;for(Et=0;Et<16;Et++)xt=Tt+Et*4,Ce[Et]=(Ot[xt]&255)<<24|(Ot[xt+1]&255)<<16|(Ot[xt+2]&255)<<8|Ot[xt+3]&255;for(Et=16;Et<64;Et++)vt=Ce[Et-2],ut=(vt>>>17|vt<<32-17)^(vt>>>19|vt<<32-19)^vt>>>10,vt=Ce[Et-15],nr=(vt>>>7|vt<<32-7)^(vt>>>18|vt<<32-18)^vt>>>3,Ce[Et]=(ut+Ce[Et-7]|0)+(nr+Ce[Et-16]|0)|0;for(Et=0;Et<64;Et++)ut=(((_e>>>6|_e<<32-6)^(_e>>>11|_e<<32-11)^(_e>>>25|_e<<32-25))+(_e&ke^~_e&dt)|0)+(nt+(K[Et]+Ce[Et]|0)|0)|0,nr=((Ne>>>2|Ne<<32-2)^(Ne>>>13|Ne<<32-13)^(Ne>>>22|Ne<<32-22))+(Ne&Ee^Ne&Oe^Ee&Oe)|0,nt=dt,dt=ke,ke=_e,_e=Ke+ut|0,Ke=Oe,Oe=Ee,Ee=Ne,Ne=ut+nr|0;L=L+Ne|0,F=F+Ee|0,fe=fe+Oe|0,re=re+Ke|0,X=X+_e|0,j=j+ke|0,J=J+dt|0,oe=oe+nt|0,Tt+=64,Ft-=64}}se(z);let ne,xe=z.length%64,Ue=z.length/536870912|0,ct=z.length<<3,ft=xe<56?56:120,Je=z.slice(z.length-xe,z.length);for(Je.push(128),ne=xe+1;ne<ft;ne++)Je.push(0);return Je.push(Ue>>>24&255),Je.push(Ue>>>16&255),Je.push(Ue>>>8&255),Je.push(Ue>>>0&255),Je.push(ct>>>24&255),Je.push(ct>>>16&255),Je.push(ct>>>8&255),Je.push(ct>>>0&255),se(Je),[L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255,F>>>24&255,F>>>16&255,F>>>8&255,F>>>0&255,fe>>>24&255,fe>>>16&255,fe>>>8&255,fe>>>0&255,re>>>24&255,re>>>16&255,re>>>8&255,re>>>0&255,X>>>24&255,X>>>16&255,X>>>8&255,X>>>0&255,j>>>24&255,j>>>16&255,j>>>8&255,j>>>0&255,J>>>24&255,J>>>16&255,J>>>8&255,J>>>0&255,oe>>>24&255,oe>>>16&255,oe>>>8&255,oe>>>0&255]}function O(z,K,L){z=z.length<=64?z:H(z);const F=64+K.length+4,fe=new Array(F),re=new Array(64);let X,j=[];for(X=0;X<64;X++)fe[X]=54;for(X=0;X<z.length;X++)fe[X]^=z[X];for(X=0;X<K.length;X++)fe[64+X]=K[X];for(X=F-4;X<F;X++)fe[X]=0;for(X=0;X<64;X++)re[X]=92;for(X=0;X<z.length;X++)re[X]^=z[X];function J(){for(let oe=F-1;oe>=F-4;oe--){if(fe[oe]++,fe[oe]<=255)return;fe[oe]=0}}for(;L>=32;)J(),j=j.concat(H(re.concat(H(fe)))),L-=32;return L>0&&(J(),j=j.concat(H(re.concat(H(fe))).slice(0,L))),j}function P(z,K,L,F,fe){let re;for(f(z,(2*L-1)*16,fe,0,16),re=0;re<2*L;re++)h(z,re*16,fe,16),o(fe,F),f(fe,0,z,K+re*16,16);for(re=0;re<L;re++)f(z,K+re*2*16,z,re*16,16);for(re=0;re<L;re++)f(z,K+(re*2+1)*16,z,(re+L)*16,16)}function m(z,K){return z<<K|z>>>32-K}function o(z,K){f(z,0,K,0,16);for(let L=8;L>0;L-=2)K[4]^=m(K[0]+K[12],7),K[8]^=m(K[4]+K[0],9),K[12]^=m(K[8]+K[4],13),K[0]^=m(K[12]+K[8],18),K[9]^=m(K[5]+K[1],7),K[13]^=m(K[9]+K[5],9),K[1]^=m(K[13]+K[9],13),K[5]^=m(K[1]+K[13],18),K[14]^=m(K[10]+K[6],7),K[2]^=m(K[14]+K[10],9),K[6]^=m(K[2]+K[14],13),K[10]^=m(K[6]+K[2],18),K[3]^=m(K[15]+K[11],7),K[7]^=m(K[3]+K[15],9),K[11]^=m(K[7]+K[3],13),K[15]^=m(K[11]+K[7],18),K[1]^=m(K[0]+K[3],7),K[2]^=m(K[1]+K[0],9),K[3]^=m(K[2]+K[1],13),K[0]^=m(K[3]+K[2],18),K[6]^=m(K[5]+K[4],7),K[7]^=m(K[6]+K[5],9),K[4]^=m(K[7]+K[6],13),K[5]^=m(K[4]+K[7],18),K[11]^=m(K[10]+K[9],7),K[8]^=m(K[11]+K[10],9),K[9]^=m(K[8]+K[11],13),K[10]^=m(K[9]+K[8],18),K[12]^=m(K[15]+K[14],7),K[13]^=m(K[12]+K[15],9),K[14]^=m(K[13]+K[12],13),K[15]^=m(K[14]+K[13],18);for(let L=0;L<16;++L)z[L]+=K[L]}function h(z,K,L,F){for(let fe=0;fe<F;fe++)L[fe]^=z[K+fe]}function f(z,K,L,F,fe){for(;fe--;)L[F++]=z[K++]}function a(z){if(!z||typeof z.length!="number")return!1;for(let K=0;K<z.length;K++){const L=z[K];if(typeof L!="number"||L%1||L<0||L>=256)return!1}return!0}function t(z,K){if(typeof z!="number"||z%1)throw new Error("invalid "+K);return z}function r(z,K,L,F,fe,re,X){if(L=t(L,"N"),F=t(F,"r"),fe=t(fe,"p"),re=t(re,"dkLen"),L===0||(L&L-1)!==0)throw new Error("N must be power of 2");if(L>2147483647/128/F)throw new Error("N too large");if(F>2147483647/128/fe)throw new Error("r too large");if(!a(z))throw new Error("password must be an array or buffer");if(z=Array.prototype.slice.call(z),!a(K))throw new Error("salt must be an array or buffer");K=Array.prototype.slice.call(K);let j=O(z,K,fe*128*F);const J=new Uint32Array(fe*32*F);for(let _e=0;_e<J.length;_e++){const ke=_e*4;J[_e]=(j[ke+3]&255)<<24|(j[ke+2]&255)<<16|(j[ke+1]&255)<<8|(j[ke+0]&255)<<0}const oe=new Uint32Array(64*F),Ce=new Uint32Array(32*F*L),se=32*F,ne=new Uint32Array(16),xe=new Uint32Array(16),Ue=fe*L*2;let ct=0,ft=null,Je=!1,Ot=0,Tt=0,Ft,Ne;const Ee=X?parseInt(1e3/F):4294967295,Oe=typeof setImmediate<"u"?setImmediate:setTimeout,Ke=function(){if(Je)return X(new Error("cancelled"),ct/Ue);let _e;switch(Ot){case 0:Ne=Tt*32*F,f(J,Ne,oe,0,se),Ot=1,Ft=0;case 1:_e=L-Ft,_e>Ee&&(_e=Ee);for(let dt=0;dt<_e;dt++)f(oe,0,Ce,(Ft+dt)*se,se),P(oe,se,F,ne,xe);if(Ft+=_e,ct+=_e,X){const dt=parseInt(1e3*ct/Ue);if(dt!==ft){if(Je=X(null,ct/Ue),Je)break;ft=dt}}if(Ft<L)break;Ft=0,Ot=2;case 2:_e=L-Ft,_e>Ee&&(_e=Ee);for(let dt=0;dt<_e;dt++){const nt=(2*F-1)*16,vt=oe[nt]&L-1;h(Ce,vt*se,oe,se),P(oe,se,F,ne,xe)}if(Ft+=_e,ct+=_e,X){const dt=parseInt(1e3*ct/Ue);if(dt!==ft){if(Je=X(null,ct/Ue),Je)break;ft=dt}}if(Ft<L)break;if(f(oe,0,J,Ne,se),Tt++,Tt<fe){Ot=0;break}j=[];for(let dt=0;dt<J.length;dt++)j.push(J[dt]>>0&255),j.push(J[dt]>>8&255),j.push(J[dt]>>16&255),j.push(J[dt]>>24&255);const ke=O(z,j,re);return X&&X(null,1,ke),ke}X&&Oe(Ke)};if(!X)for(;;){const _e=Ke();if(_e!=null)return _e}Ke()}const c={scrypt:function(z,K,L,F,fe,re,X){return new Promise(function(j,J){let oe=0;X&&X(0),r(z,K,L,F,fe,re,function(Ce,se,ne){if(Ce)J(Ce);else if(ne)X&&oe!==1&&X(1),j(new Uint8Array(ne));else if(X&&se!==oe)return oe=se,X(se)})})},syncScrypt:function(z,K,L,F,fe,re){return new Uint8Array(r(z,K,L,F,fe,re))}};G.exports=c})(this)},3666:function(G,x,C){var H=C(48764).Buffer;G.exports=function(O){var P={};function m(o){if(P[o])return P[o].exports;var h=P[o]={i:o,l:!1,exports:{}};return O[o].call(h.exports,h,h.exports,m),h.l=!0,h.exports}return m.m=O,m.c=P,m.d=function(o,h,f){m.o(o,h)||Object.defineProperty(o,h,{enumerable:!0,get:f})},m.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},m.t=function(o,h){if(1&h&&(o=m(o)),8&h||4&h&&typeof o=="object"&&o&&o.__esModule)return o;var f=Object.create(null);if(m.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:o}),2&h&&typeof o!="string")for(var a in o)m.d(f,a,function(t){return o[t]}.bind(null,a));return f},m.n=function(o){var h=o&&o.__esModule?function(){return o.default}:function(){return o};return m.d(h,"a",h),h},m.o=function(o,h){return Object.prototype.hasOwnProperty.call(o,h)},m.p="",m(m.s=41)}([function(O,P){O.exports=C(64687)},function(O,P){O.exports=C(17156)},function(O,P){O.exports=C(56690)},function(O,P){O.exports=C(89728)},function(O,P){O.exports=C(38416)},function(O,P){O.exports=C(43467)},function(O,P){O.exports=C(93286)},function(O,P){O.exports=C(37832)},function(O,P){O.exports=C(55595)},function(O,P){O.exports=C(18698)},function(O,P){O.exports=C(861)},function(O,P){O.exports=C(833)},function(O,P){O.exports=C(27424)},function(O,P){O.exports=C(38197)},function(O,P){O.exports=C(44431)},function(O,P){O.exports=C(66115)},function(O,P){O.exports=C(53587)},function(O,P){O.exports=C(77898)},function(O,P){O.exports=C(86266)},function(O,P){O.exports=C(73808)},function(O,P,m){var o=m(8),h=o,f=function(){return this||window||f||self||Function("return this")()}.call(null),a=m(32);h.object.extend(proto,a),h.exportSymbol("proto.protocol.Account",null,f),h.exportSymbol("proto.protocol.Account.AccountResource",null,f),h.exportSymbol("proto.protocol.Account.Frozen",null,f),h.exportSymbol("proto.protocol.AccountId",null,f),h.exportSymbol("proto.protocol.AccountType",null,f),h.exportSymbol("proto.protocol.DelegatedResource",null,f),h.exportSymbol("proto.protocol.Exchange",null,f),h.exportSymbol("proto.protocol.Key",null,f),h.exportSymbol("proto.protocol.MarketOrderDetail",null,f),h.exportSymbol("proto.protocol.Permission",null,f),h.exportSymbol("proto.protocol.Permission.PermissionType",null,f),h.exportSymbol("proto.protocol.Proposal",null,f),h.exportSymbol("proto.protocol.Proposal.State",null,f),h.exportSymbol("proto.protocol.Transaction",null,f),h.exportSymbol("proto.protocol.Transaction.Contract",null,f),h.exportSymbol("proto.protocol.Transaction.Contract.ContractType",null,f),h.exportSymbol("proto.protocol.Transaction.Result",null,f),h.exportSymbol("proto.protocol.Transaction.Result.code",null,f),h.exportSymbol("proto.protocol.Transaction.Result.contractResult",null,f),h.exportSymbol("proto.protocol.Transaction.raw",null,f),h.exportSymbol("proto.protocol.Vote",null,f),h.exportSymbol("proto.protocol.Votes",null,f),h.exportSymbol("proto.protocol.Witness",null,f),h.exportSymbol("proto.protocol.authority",null,f),proto.protocol.AccountId=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.AccountId,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.AccountId.displayName="proto.protocol.AccountId"),proto.protocol.Vote=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.Vote,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Vote.displayName="proto.protocol.Vote"),proto.protocol.Proposal=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Proposal.repeatedFields_,null)},h.inherits(proto.protocol.Proposal,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Proposal.displayName="proto.protocol.Proposal"),proto.protocol.Exchange=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.Exchange,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Exchange.displayName="proto.protocol.Exchange"),proto.protocol.Account=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Account.repeatedFields_,null)},h.inherits(proto.protocol.Account,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Account.displayName="proto.protocol.Account"),proto.protocol.Account.Frozen=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.Account.Frozen,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Account.Frozen.displayName="proto.protocol.Account.Frozen"),proto.protocol.Account.AccountResource=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.Account.AccountResource,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Account.AccountResource.displayName="proto.protocol.Account.AccountResource"),proto.protocol.Key=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.Key,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Key.displayName="proto.protocol.Key"),proto.protocol.DelegatedResource=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.DelegatedResource,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.DelegatedResource.displayName="proto.protocol.DelegatedResource"),proto.protocol.authority=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.authority,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.authority.displayName="proto.protocol.authority"),proto.protocol.Permission=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Permission.repeatedFields_,null)},h.inherits(proto.protocol.Permission,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Permission.displayName="proto.protocol.Permission"),proto.protocol.Witness=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.Witness,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Witness.displayName="proto.protocol.Witness"),proto.protocol.Votes=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Votes.repeatedFields_,null)},h.inherits(proto.protocol.Votes,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Votes.displayName="proto.protocol.Votes"),proto.protocol.MarketOrderDetail=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.MarketOrderDetail,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.MarketOrderDetail.displayName="proto.protocol.MarketOrderDetail"),proto.protocol.Transaction=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Transaction.repeatedFields_,null)},h.inherits(proto.protocol.Transaction,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Transaction.displayName="proto.protocol.Transaction"),proto.protocol.Transaction.Contract=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.Transaction.Contract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Transaction.Contract.displayName="proto.protocol.Transaction.Contract"),proto.protocol.Transaction.Result=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Transaction.Result.repeatedFields_,null)},h.inherits(proto.protocol.Transaction.Result,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Transaction.Result.displayName="proto.protocol.Transaction.Result"),proto.protocol.Transaction.raw=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Transaction.raw.repeatedFields_,null)},h.inherits(proto.protocol.Transaction.raw,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.Transaction.raw.displayName="proto.protocol.Transaction.raw"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountId.prototype.toObject=function(t){return proto.protocol.AccountId.toObject(t,this)},proto.protocol.AccountId.toObject=function(t,r){var c={name:r.getName_asB64(),address:r.getAddress_asB64()};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.AccountId.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.AccountId;return proto.protocol.AccountId.deserializeBinaryFromReader(c,r)},proto.protocol.AccountId.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setName(c);break;case 2:c=r.readBytes(),t.setAddress(c);break;default:r.skipField()}return t},proto.protocol.AccountId.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountId.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountId.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getName_asU8()).length>0&&r.writeBytes(1,c),(c=t.getAddress_asU8()).length>0&&r.writeBytes(2,c)},proto.protocol.AccountId.prototype.getName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.AccountId.prototype.getName_asB64=function(){return o.Message.bytesAsB64(this.getName())},proto.protocol.AccountId.prototype.getName_asU8=function(){return o.Message.bytesAsU8(this.getName())},proto.protocol.AccountId.prototype.setName=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.AccountId.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.AccountId.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.AccountId.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.AccountId.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Vote.prototype.toObject=function(t){return proto.protocol.Vote.toObject(t,this)},proto.protocol.Vote.toObject=function(t,r){var c={voteAddress:r.getVoteAddress_asB64(),voteCount:o.Message.getFieldWithDefault(r,2,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.Vote.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Vote;return proto.protocol.Vote.deserializeBinaryFromReader(c,r)},proto.protocol.Vote.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setVoteAddress(c);break;case 2:c=r.readInt64(),t.setVoteCount(c);break;default:r.skipField()}return t},proto.protocol.Vote.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Vote.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Vote.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getVoteAddress_asU8()).length>0&&r.writeBytes(1,c),(c=t.getVoteCount())!==0&&r.writeInt64(2,c)},proto.protocol.Vote.prototype.getVoteAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.Vote.prototype.getVoteAddress_asB64=function(){return o.Message.bytesAsB64(this.getVoteAddress())},proto.protocol.Vote.prototype.getVoteAddress_asU8=function(){return o.Message.bytesAsU8(this.getVoteAddress())},proto.protocol.Vote.prototype.setVoteAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.Vote.prototype.getVoteCount=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Vote.prototype.setVoteCount=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.Proposal.repeatedFields_=[6],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Proposal.prototype.toObject=function(t){return proto.protocol.Proposal.toObject(t,this)},proto.protocol.Proposal.toObject=function(t,r){var c,z={proposalId:o.Message.getFieldWithDefault(r,1,0),proposerAddress:r.getProposerAddress_asB64(),parametersMap:(c=r.getParametersMap())?c.toObject(t,void 0):[],expirationTime:o.Message.getFieldWithDefault(r,4,0),createTime:o.Message.getFieldWithDefault(r,5,0),approvalsList:r.getApprovalsList_asB64(),state:o.Message.getFieldWithDefault(r,7,0)};return t&&(z.$jspbMessageInstance=r),z}),proto.protocol.Proposal.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Proposal;return proto.protocol.Proposal.deserializeBinaryFromReader(c,r)},proto.protocol.Proposal.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readInt64();t.setProposalId(c);break;case 2:c=r.readBytes(),t.setProposerAddress(c);break;case 3:c=t.getParametersMap(),r.readMessage(c,function(z,K){o.Map.deserializeBinary(z,K,o.BinaryReader.prototype.readInt64,o.BinaryReader.prototype.readInt64,null,0,0)});break;case 4:c=r.readInt64(),t.setExpirationTime(c);break;case 5:c=r.readInt64(),t.setCreateTime(c);break;case 6:c=r.readBytes(),t.addApprovals(c);break;case 7:c=r.readEnum(),t.setState(c);break;default:r.skipField()}return t},proto.protocol.Proposal.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Proposal.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Proposal.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getProposalId())!==0&&r.writeInt64(1,c),(c=t.getProposerAddress_asU8()).length>0&&r.writeBytes(2,c),(c=t.getParametersMap(!0))&&c.getLength()>0&&c.serializeBinary(3,r,o.BinaryWriter.prototype.writeInt64,o.BinaryWriter.prototype.writeInt64),(c=t.getExpirationTime())!==0&&r.writeInt64(4,c),(c=t.getCreateTime())!==0&&r.writeInt64(5,c),(c=t.getApprovalsList_asU8()).length>0&&r.writeRepeatedBytes(6,c),(c=t.getState())!==0&&r.writeEnum(7,c)},proto.protocol.Proposal.State={PENDING:0,DISAPPROVED:1,APPROVED:2,CANCELED:3},proto.protocol.Proposal.prototype.getProposalId=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Proposal.prototype.setProposalId=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.Proposal.prototype.getProposerAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.Proposal.prototype.getProposerAddress_asB64=function(){return o.Message.bytesAsB64(this.getProposerAddress())},proto.protocol.Proposal.prototype.getProposerAddress_asU8=function(){return o.Message.bytesAsU8(this.getProposerAddress())},proto.protocol.Proposal.prototype.setProposerAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.Proposal.prototype.getParametersMap=function(t){return o.Message.getMapField(this,3,t,null)},proto.protocol.Proposal.prototype.clearParametersMap=function(){return this.getParametersMap().clear(),this},proto.protocol.Proposal.prototype.getExpirationTime=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.Proposal.prototype.setExpirationTime=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.Proposal.prototype.getCreateTime=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.Proposal.prototype.setCreateTime=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.Proposal.prototype.getApprovalsList=function(){return o.Message.getRepeatedField(this,6)},proto.protocol.Proposal.prototype.getApprovalsList_asB64=function(){return o.Message.bytesListAsB64(this.getApprovalsList())},proto.protocol.Proposal.prototype.getApprovalsList_asU8=function(){return o.Message.bytesListAsU8(this.getApprovalsList())},proto.protocol.Proposal.prototype.setApprovalsList=function(t){return o.Message.setField(this,6,t||[])},proto.protocol.Proposal.prototype.addApprovals=function(t,r){return o.Message.addToRepeatedField(this,6,t,r)},proto.protocol.Proposal.prototype.clearApprovalsList=function(){return this.setApprovalsList([])},proto.protocol.Proposal.prototype.getState=function(){return o.Message.getFieldWithDefault(this,7,0)},proto.protocol.Proposal.prototype.setState=function(t){return o.Message.setProto3EnumField(this,7,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Exchange.prototype.toObject=function(t){return proto.protocol.Exchange.toObject(t,this)},proto.protocol.Exchange.toObject=function(t,r){var c={exchangeId:o.Message.getFieldWithDefault(r,1,0),creatorAddress:r.getCreatorAddress_asB64(),createTime:o.Message.getFieldWithDefault(r,3,0),firstTokenId:r.getFirstTokenId_asB64(),firstTokenBalance:o.Message.getFieldWithDefault(r,7,0),secondTokenId:r.getSecondTokenId_asB64(),secondTokenBalance:o.Message.getFieldWithDefault(r,9,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.Exchange.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Exchange;return proto.protocol.Exchange.deserializeBinaryFromReader(c,r)},proto.protocol.Exchange.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readInt64();t.setExchangeId(c);break;case 2:c=r.readBytes(),t.setCreatorAddress(c);break;case 3:c=r.readInt64(),t.setCreateTime(c);break;case 6:c=r.readBytes(),t.setFirstTokenId(c);break;case 7:c=r.readInt64(),t.setFirstTokenBalance(c);break;case 8:c=r.readBytes(),t.setSecondTokenId(c);break;case 9:c=r.readInt64(),t.setSecondTokenBalance(c);break;default:r.skipField()}return t},proto.protocol.Exchange.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Exchange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Exchange.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getExchangeId())!==0&&r.writeInt64(1,c),(c=t.getCreatorAddress_asU8()).length>0&&r.writeBytes(2,c),(c=t.getCreateTime())!==0&&r.writeInt64(3,c),(c=t.getFirstTokenId_asU8()).length>0&&r.writeBytes(6,c),(c=t.getFirstTokenBalance())!==0&&r.writeInt64(7,c),(c=t.getSecondTokenId_asU8()).length>0&&r.writeBytes(8,c),(c=t.getSecondTokenBalance())!==0&&r.writeInt64(9,c)},proto.protocol.Exchange.prototype.getExchangeId=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Exchange.prototype.setExchangeId=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.Exchange.prototype.getCreatorAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.Exchange.prototype.getCreatorAddress_asB64=function(){return o.Message.bytesAsB64(this.getCreatorAddress())},proto.protocol.Exchange.prototype.getCreatorAddress_asU8=function(){return o.Message.bytesAsU8(this.getCreatorAddress())},proto.protocol.Exchange.prototype.setCreatorAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.Exchange.prototype.getCreateTime=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.Exchange.prototype.setCreateTime=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.Exchange.prototype.getFirstTokenId=function(){return o.Message.getFieldWithDefault(this,6,"")},proto.protocol.Exchange.prototype.getFirstTokenId_asB64=function(){return o.Message.bytesAsB64(this.getFirstTokenId())},proto.protocol.Exchange.prototype.getFirstTokenId_asU8=function(){return o.Message.bytesAsU8(this.getFirstTokenId())},proto.protocol.Exchange.prototype.setFirstTokenId=function(t){return o.Message.setProto3BytesField(this,6,t)},proto.protocol.Exchange.prototype.getFirstTokenBalance=function(){return o.Message.getFieldWithDefault(this,7,0)},proto.protocol.Exchange.prototype.setFirstTokenBalance=function(t){return o.Message.setProto3IntField(this,7,t)},proto.protocol.Exchange.prototype.getSecondTokenId=function(){return o.Message.getFieldWithDefault(this,8,"")},proto.protocol.Exchange.prototype.getSecondTokenId_asB64=function(){return o.Message.bytesAsB64(this.getSecondTokenId())},proto.protocol.Exchange.prototype.getSecondTokenId_asU8=function(){return o.Message.bytesAsU8(this.getSecondTokenId())},proto.protocol.Exchange.prototype.setSecondTokenId=function(t){return o.Message.setProto3BytesField(this,8,t)},proto.protocol.Exchange.prototype.getSecondTokenBalance=function(){return o.Message.getFieldWithDefault(this,9,0)},proto.protocol.Exchange.prototype.setSecondTokenBalance=function(t){return o.Message.setProto3IntField(this,9,t)},proto.protocol.Account.repeatedFields_=[5,7,16,33],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Account.prototype.toObject=function(t){return proto.protocol.Account.toObject(t,this)},proto.protocol.Account.toObject=function(t,r){var c,z={accountName:r.getAccountName_asB64(),type:o.Message.getFieldWithDefault(r,2,0),address:r.getAddress_asB64(),balance:o.Message.getFieldWithDefault(r,4,0),votesList:o.Message.toObjectList(r.getVotesList(),proto.protocol.Vote.toObject,t),assetMap:(c=r.getAssetMap())?c.toObject(t,void 0):[],assetv2Map:(c=r.getAssetv2Map())?c.toObject(t,void 0):[],frozenList:o.Message.toObjectList(r.getFrozenList(),proto.protocol.Account.Frozen.toObject,t),netUsage:o.Message.getFieldWithDefault(r,8,0),acquiredDelegatedFrozenBalanceForBandwidth:o.Message.getFieldWithDefault(r,41,0),delegatedFrozenBalanceForBandwidth:o.Message.getFieldWithDefault(r,42,0),oldTronPower:o.Message.getFieldWithDefault(r,46,0),tronPower:(c=r.getTronPower())&&proto.protocol.Account.Frozen.toObject(t,c),assetOptimized:o.Message.getBooleanFieldWithDefault(r,60,!1),createTime:o.Message.getFieldWithDefault(r,9,0),latestOprationTime:o.Message.getFieldWithDefault(r,10,0),allowance:o.Message.getFieldWithDefault(r,11,0),latestWithdrawTime:o.Message.getFieldWithDefault(r,12,0),code:r.getCode_asB64(),isWitness:o.Message.getBooleanFieldWithDefault(r,14,!1),isCommittee:o.Message.getBooleanFieldWithDefault(r,15,!1),frozenSupplyList:o.Message.toObjectList(r.getFrozenSupplyList(),proto.protocol.Account.Frozen.toObject,t),assetIssuedName:r.getAssetIssuedName_asB64(),assetIssuedId:r.getAssetIssuedId_asB64(),latestAssetOperationTimeMap:(c=r.getLatestAssetOperationTimeMap())?c.toObject(t,void 0):[],latestAssetOperationTimev2Map:(c=r.getLatestAssetOperationTimev2Map())?c.toObject(t,void 0):[],freeNetUsage:o.Message.getFieldWithDefault(r,19,0),freeAssetNetUsageMap:(c=r.getFreeAssetNetUsageMap())?c.toObject(t,void 0):[],freeAssetNetUsagev2Map:(c=r.getFreeAssetNetUsagev2Map())?c.toObject(t,void 0):[],latestConsumeTime:o.Message.getFieldWithDefault(r,21,0),latestConsumeFreeTime:o.Message.getFieldWithDefault(r,22,0),accountId:r.getAccountId_asB64(),accountResource:(c=r.getAccountResource())&&proto.protocol.Account.AccountResource.toObject(t,c),codehash:r.getCodehash_asB64(),ownerPermission:(c=r.getOwnerPermission())&&proto.protocol.Permission.toObject(t,c),witnessPermission:(c=r.getWitnessPermission())&&proto.protocol.Permission.toObject(t,c),activePermissionList:o.Message.toObjectList(r.getActivePermissionList(),proto.protocol.Permission.toObject,t)};return t&&(z.$jspbMessageInstance=r),z}),proto.protocol.Account.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Account;return proto.protocol.Account.deserializeBinaryFromReader(c,r)},proto.protocol.Account.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setAccountName(c);break;case 2:c=r.readEnum(),t.setType(c);break;case 3:c=r.readBytes(),t.setAddress(c);break;case 4:c=r.readInt64(),t.setBalance(c);break;case 5:c=new proto.protocol.Vote,r.readMessage(c,proto.protocol.Vote.deserializeBinaryFromReader),t.addVotes(c);break;case 6:c=t.getAssetMap(),r.readMessage(c,function(z,K){o.Map.deserializeBinary(z,K,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readInt64,null,"",0)});break;case 56:c=t.getAssetv2Map(),r.readMessage(c,function(z,K){o.Map.deserializeBinary(z,K,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readInt64,null,"",0)});break;case 7:c=new proto.protocol.Account.Frozen,r.readMessage(c,proto.protocol.Account.Frozen.deserializeBinaryFromReader),t.addFrozen(c);break;case 8:c=r.readInt64(),t.setNetUsage(c);break;case 41:c=r.readInt64(),t.setAcquiredDelegatedFrozenBalanceForBandwidth(c);break;case 42:c=r.readInt64(),t.setDelegatedFrozenBalanceForBandwidth(c);break;case 46:c=r.readInt64(),t.setOldTronPower(c);break;case 47:c=new proto.protocol.Account.Frozen,r.readMessage(c,proto.protocol.Account.Frozen.deserializeBinaryFromReader),t.setTronPower(c);break;case 60:c=r.readBool(),t.setAssetOptimized(c);break;case 9:c=r.readInt64(),t.setCreateTime(c);break;case 10:c=r.readInt64(),t.setLatestOprationTime(c);break;case 11:c=r.readInt64(),t.setAllowance(c);break;case 12:c=r.readInt64(),t.setLatestWithdrawTime(c);break;case 13:c=r.readBytes(),t.setCode(c);break;case 14:c=r.readBool(),t.setIsWitness(c);break;case 15:c=r.readBool(),t.setIsCommittee(c);break;case 16:c=new proto.protocol.Account.Frozen,r.readMessage(c,proto.protocol.Account.Frozen.deserializeBinaryFromReader),t.addFrozenSupply(c);break;case 17:c=r.readBytes(),t.setAssetIssuedName(c);break;case 57:c=r.readBytes(),t.setAssetIssuedId(c);break;case 18:c=t.getLatestAssetOperationTimeMap(),r.readMessage(c,function(z,K){o.Map.deserializeBinary(z,K,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readInt64,null,"",0)});break;case 58:c=t.getLatestAssetOperationTimev2Map(),r.readMessage(c,function(z,K){o.Map.deserializeBinary(z,K,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readInt64,null,"",0)});break;case 19:c=r.readInt64(),t.setFreeNetUsage(c);break;case 20:c=t.getFreeAssetNetUsageMap(),r.readMessage(c,function(z,K){o.Map.deserializeBinary(z,K,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readInt64,null,"",0)});break;case 59:c=t.getFreeAssetNetUsagev2Map(),r.readMessage(c,function(z,K){o.Map.deserializeBinary(z,K,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readInt64,null,"",0)});break;case 21:c=r.readInt64(),t.setLatestConsumeTime(c);break;case 22:c=r.readInt64(),t.setLatestConsumeFreeTime(c);break;case 23:c=r.readBytes(),t.setAccountId(c);break;case 26:c=new proto.protocol.Account.AccountResource,r.readMessage(c,proto.protocol.Account.AccountResource.deserializeBinaryFromReader),t.setAccountResource(c);break;case 30:c=r.readBytes(),t.setCodehash(c);break;case 31:c=new proto.protocol.Permission,r.readMessage(c,proto.protocol.Permission.deserializeBinaryFromReader),t.setOwnerPermission(c);break;case 32:c=new proto.protocol.Permission,r.readMessage(c,proto.protocol.Permission.deserializeBinaryFromReader),t.setWitnessPermission(c);break;case 33:c=new proto.protocol.Permission,r.readMessage(c,proto.protocol.Permission.deserializeBinaryFromReader),t.addActivePermission(c);break;default:r.skipField()}return t},proto.protocol.Account.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Account.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Account.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getAccountName_asU8()).length>0&&r.writeBytes(1,c),(c=t.getType())!==0&&r.writeEnum(2,c),(c=t.getAddress_asU8()).length>0&&r.writeBytes(3,c),(c=t.getBalance())!==0&&r.writeInt64(4,c),(c=t.getVotesList()).length>0&&r.writeRepeatedMessage(5,c,proto.protocol.Vote.serializeBinaryToWriter),(c=t.getAssetMap(!0))&&c.getLength()>0&&c.serializeBinary(6,r,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeInt64),(c=t.getAssetv2Map(!0))&&c.getLength()>0&&c.serializeBinary(56,r,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeInt64),(c=t.getFrozenList()).length>0&&r.writeRepeatedMessage(7,c,proto.protocol.Account.Frozen.serializeBinaryToWriter),(c=t.getNetUsage())!==0&&r.writeInt64(8,c),(c=t.getAcquiredDelegatedFrozenBalanceForBandwidth())!==0&&r.writeInt64(41,c),(c=t.getDelegatedFrozenBalanceForBandwidth())!==0&&r.writeInt64(42,c),(c=t.getOldTronPower())!==0&&r.writeInt64(46,c),(c=t.getTronPower())!=null&&r.writeMessage(47,c,proto.protocol.Account.Frozen.serializeBinaryToWriter),(c=t.getAssetOptimized())&&r.writeBool(60,c),(c=t.getCreateTime())!==0&&r.writeInt64(9,c),(c=t.getLatestOprationTime())!==0&&r.writeInt64(10,c),(c=t.getAllowance())!==0&&r.writeInt64(11,c),(c=t.getLatestWithdrawTime())!==0&&r.writeInt64(12,c),(c=t.getCode_asU8()).length>0&&r.writeBytes(13,c),(c=t.getIsWitness())&&r.writeBool(14,c),(c=t.getIsCommittee())&&r.writeBool(15,c),(c=t.getFrozenSupplyList()).length>0&&r.writeRepeatedMessage(16,c,proto.protocol.Account.Frozen.serializeBinaryToWriter),(c=t.getAssetIssuedName_asU8()).length>0&&r.writeBytes(17,c),(c=t.getAssetIssuedId_asU8()).length>0&&r.writeBytes(57,c),(c=t.getLatestAssetOperationTimeMap(!0))&&c.getLength()>0&&c.serializeBinary(18,r,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeInt64),(c=t.getLatestAssetOperationTimev2Map(!0))&&c.getLength()>0&&c.serializeBinary(58,r,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeInt64),(c=t.getFreeNetUsage())!==0&&r.writeInt64(19,c),(c=t.getFreeAssetNetUsageMap(!0))&&c.getLength()>0&&c.serializeBinary(20,r,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeInt64),(c=t.getFreeAssetNetUsagev2Map(!0))&&c.getLength()>0&&c.serializeBinary(59,r,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeInt64),(c=t.getLatestConsumeTime())!==0&&r.writeInt64(21,c),(c=t.getLatestConsumeFreeTime())!==0&&r.writeInt64(22,c),(c=t.getAccountId_asU8()).length>0&&r.writeBytes(23,c),(c=t.getAccountResource())!=null&&r.writeMessage(26,c,proto.protocol.Account.AccountResource.serializeBinaryToWriter),(c=t.getCodehash_asU8()).length>0&&r.writeBytes(30,c),(c=t.getOwnerPermission())!=null&&r.writeMessage(31,c,proto.protocol.Permission.serializeBinaryToWriter),(c=t.getWitnessPermission())!=null&&r.writeMessage(32,c,proto.protocol.Permission.serializeBinaryToWriter),(c=t.getActivePermissionList()).length>0&&r.writeRepeatedMessage(33,c,proto.protocol.Permission.serializeBinaryToWriter)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Account.Frozen.prototype.toObject=function(t){return proto.protocol.Account.Frozen.toObject(t,this)},proto.protocol.Account.Frozen.toObject=function(t,r){var c={frozenBalance:o.Message.getFieldWithDefault(r,1,0),expireTime:o.Message.getFieldWithDefault(r,2,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.Account.Frozen.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Account.Frozen;return proto.protocol.Account.Frozen.deserializeBinaryFromReader(c,r)},proto.protocol.Account.Frozen.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readInt64();t.setFrozenBalance(c);break;case 2:c=r.readInt64(),t.setExpireTime(c);break;default:r.skipField()}return t},proto.protocol.Account.Frozen.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Account.Frozen.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Account.Frozen.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getFrozenBalance())!==0&&r.writeInt64(1,c),(c=t.getExpireTime())!==0&&r.writeInt64(2,c)},proto.protocol.Account.Frozen.prototype.getFrozenBalance=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Account.Frozen.prototype.setFrozenBalance=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.Account.Frozen.prototype.getExpireTime=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Account.Frozen.prototype.setExpireTime=function(t){return o.Message.setProto3IntField(this,2,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Account.AccountResource.prototype.toObject=function(t){return proto.protocol.Account.AccountResource.toObject(t,this)},proto.protocol.Account.AccountResource.toObject=function(t,r){var c,z={energyUsage:o.Message.getFieldWithDefault(r,1,0),frozenBalanceForEnergy:(c=r.getFrozenBalanceForEnergy())&&proto.protocol.Account.Frozen.toObject(t,c),latestConsumeTimeForEnergy:o.Message.getFieldWithDefault(r,3,0),acquiredDelegatedFrozenBalanceForEnergy:o.Message.getFieldWithDefault(r,4,0),delegatedFrozenBalanceForEnergy:o.Message.getFieldWithDefault(r,5,0),storageLimit:o.Message.getFieldWithDefault(r,6,0),storageUsage:o.Message.getFieldWithDefault(r,7,0),latestExchangeStorageTime:o.Message.getFieldWithDefault(r,8,0)};return t&&(z.$jspbMessageInstance=r),z}),proto.protocol.Account.AccountResource.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Account.AccountResource;return proto.protocol.Account.AccountResource.deserializeBinaryFromReader(c,r)},proto.protocol.Account.AccountResource.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readInt64();t.setEnergyUsage(c);break;case 2:c=new proto.protocol.Account.Frozen,r.readMessage(c,proto.protocol.Account.Frozen.deserializeBinaryFromReader),t.setFrozenBalanceForEnergy(c);break;case 3:c=r.readInt64(),t.setLatestConsumeTimeForEnergy(c);break;case 4:c=r.readInt64(),t.setAcquiredDelegatedFrozenBalanceForEnergy(c);break;case 5:c=r.readInt64(),t.setDelegatedFrozenBalanceForEnergy(c);break;case 6:c=r.readInt64(),t.setStorageLimit(c);break;case 7:c=r.readInt64(),t.setStorageUsage(c);break;case 8:c=r.readInt64(),t.setLatestExchangeStorageTime(c);break;default:r.skipField()}return t},proto.protocol.Account.AccountResource.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Account.AccountResource.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Account.AccountResource.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getEnergyUsage())!==0&&r.writeInt64(1,c),(c=t.getFrozenBalanceForEnergy())!=null&&r.writeMessage(2,c,proto.protocol.Account.Frozen.serializeBinaryToWriter),(c=t.getLatestConsumeTimeForEnergy())!==0&&r.writeInt64(3,c),(c=t.getAcquiredDelegatedFrozenBalanceForEnergy())!==0&&r.writeInt64(4,c),(c=t.getDelegatedFrozenBalanceForEnergy())!==0&&r.writeInt64(5,c),(c=t.getStorageLimit())!==0&&r.writeInt64(6,c),(c=t.getStorageUsage())!==0&&r.writeInt64(7,c),(c=t.getLatestExchangeStorageTime())!==0&&r.writeInt64(8,c)},proto.protocol.Account.AccountResource.prototype.getEnergyUsage=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Account.AccountResource.prototype.setEnergyUsage=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.Account.AccountResource.prototype.getFrozenBalanceForEnergy=function(){return o.Message.getWrapperField(this,proto.protocol.Account.Frozen,2)},proto.protocol.Account.AccountResource.prototype.setFrozenBalanceForEnergy=function(t){return o.Message.setWrapperField(this,2,t)},proto.protocol.Account.AccountResource.prototype.clearFrozenBalanceForEnergy=function(){return this.setFrozenBalanceForEnergy(void 0)},proto.protocol.Account.AccountResource.prototype.hasFrozenBalanceForEnergy=function(){return o.Message.getField(this,2)!=null},proto.protocol.Account.AccountResource.prototype.getLatestConsumeTimeForEnergy=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.Account.AccountResource.prototype.setLatestConsumeTimeForEnergy=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.Account.AccountResource.prototype.getAcquiredDelegatedFrozenBalanceForEnergy=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.Account.AccountResource.prototype.setAcquiredDelegatedFrozenBalanceForEnergy=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.Account.AccountResource.prototype.getDelegatedFrozenBalanceForEnergy=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.Account.AccountResource.prototype.setDelegatedFrozenBalanceForEnergy=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.Account.AccountResource.prototype.getStorageLimit=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.Account.AccountResource.prototype.setStorageLimit=function(t){return o.Message.setProto3IntField(this,6,t)},proto.protocol.Account.AccountResource.prototype.getStorageUsage=function(){return o.Message.getFieldWithDefault(this,7,0)},proto.protocol.Account.AccountResource.prototype.setStorageUsage=function(t){return o.Message.setProto3IntField(this,7,t)},proto.protocol.Account.AccountResource.prototype.getLatestExchangeStorageTime=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.Account.AccountResource.prototype.setLatestExchangeStorageTime=function(t){return o.Message.setProto3IntField(this,8,t)},proto.protocol.Account.prototype.getAccountName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.Account.prototype.getAccountName_asB64=function(){return o.Message.bytesAsB64(this.getAccountName())},proto.protocol.Account.prototype.getAccountName_asU8=function(){return o.Message.bytesAsU8(this.getAccountName())},proto.protocol.Account.prototype.setAccountName=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.Account.prototype.getType=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Account.prototype.setType=function(t){return o.Message.setProto3EnumField(this,2,t)},proto.protocol.Account.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.Account.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.Account.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.Account.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,3,t)},proto.protocol.Account.prototype.getBalance=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.Account.prototype.setBalance=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.Account.prototype.getVotesList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Vote,5)},proto.protocol.Account.prototype.setVotesList=function(t){return o.Message.setRepeatedWrapperField(this,5,t)},proto.protocol.Account.prototype.addVotes=function(t,r){return o.Message.addToRepeatedWrapperField(this,5,t,proto.protocol.Vote,r)},proto.protocol.Account.prototype.clearVotesList=function(){return this.setVotesList([])},proto.protocol.Account.prototype.getAssetMap=function(t){return o.Message.getMapField(this,6,t,null)},proto.protocol.Account.prototype.clearAssetMap=function(){return this.getAssetMap().clear(),this},proto.protocol.Account.prototype.getAssetv2Map=function(t){return o.Message.getMapField(this,56,t,null)},proto.protocol.Account.prototype.clearAssetv2Map=function(){return this.getAssetv2Map().clear(),this},proto.protocol.Account.prototype.getFrozenList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Account.Frozen,7)},proto.protocol.Account.prototype.setFrozenList=function(t){return o.Message.setRepeatedWrapperField(this,7,t)},proto.protocol.Account.prototype.addFrozen=function(t,r){return o.Message.addToRepeatedWrapperField(this,7,t,proto.protocol.Account.Frozen,r)},proto.protocol.Account.prototype.clearFrozenList=function(){return this.setFrozenList([])},proto.protocol.Account.prototype.getNetUsage=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.Account.prototype.setNetUsage=function(t){return o.Message.setProto3IntField(this,8,t)},proto.protocol.Account.prototype.getAcquiredDelegatedFrozenBalanceForBandwidth=function(){return o.Message.getFieldWithDefault(this,41,0)},proto.protocol.Account.prototype.setAcquiredDelegatedFrozenBalanceForBandwidth=function(t){return o.Message.setProto3IntField(this,41,t)},proto.protocol.Account.prototype.getDelegatedFrozenBalanceForBandwidth=function(){return o.Message.getFieldWithDefault(this,42,0)},proto.protocol.Account.prototype.setDelegatedFrozenBalanceForBandwidth=function(t){return o.Message.setProto3IntField(this,42,t)},proto.protocol.Account.prototype.getOldTronPower=function(){return o.Message.getFieldWithDefault(this,46,0)},proto.protocol.Account.prototype.setOldTronPower=function(t){return o.Message.setProto3IntField(this,46,t)},proto.protocol.Account.prototype.getTronPower=function(){return o.Message.getWrapperField(this,proto.protocol.Account.Frozen,47)},proto.protocol.Account.prototype.setTronPower=function(t){return o.Message.setWrapperField(this,47,t)},proto.protocol.Account.prototype.clearTronPower=function(){return this.setTronPower(void 0)},proto.protocol.Account.prototype.hasTronPower=function(){return o.Message.getField(this,47)!=null},proto.protocol.Account.prototype.getAssetOptimized=function(){return o.Message.getBooleanFieldWithDefault(this,60,!1)},proto.protocol.Account.prototype.setAssetOptimized=function(t){return o.Message.setProto3BooleanField(this,60,t)},proto.protocol.Account.prototype.getCreateTime=function(){return o.Message.getFieldWithDefault(this,9,0)},proto.protocol.Account.prototype.setCreateTime=function(t){return o.Message.setProto3IntField(this,9,t)},proto.protocol.Account.prototype.getLatestOprationTime=function(){return o.Message.getFieldWithDefault(this,10,0)},proto.protocol.Account.prototype.setLatestOprationTime=function(t){return o.Message.setProto3IntField(this,10,t)},proto.protocol.Account.prototype.getAllowance=function(){return o.Message.getFieldWithDefault(this,11,0)},proto.protocol.Account.prototype.setAllowance=function(t){return o.Message.setProto3IntField(this,11,t)},proto.protocol.Account.prototype.getLatestWithdrawTime=function(){return o.Message.getFieldWithDefault(this,12,0)},proto.protocol.Account.prototype.setLatestWithdrawTime=function(t){return o.Message.setProto3IntField(this,12,t)},proto.protocol.Account.prototype.getCode=function(){return o.Message.getFieldWithDefault(this,13,"")},proto.protocol.Account.prototype.getCode_asB64=function(){return o.Message.bytesAsB64(this.getCode())},proto.protocol.Account.prototype.getCode_asU8=function(){return o.Message.bytesAsU8(this.getCode())},proto.protocol.Account.prototype.setCode=function(t){return o.Message.setProto3BytesField(this,13,t)},proto.protocol.Account.prototype.getIsWitness=function(){return o.Message.getBooleanFieldWithDefault(this,14,!1)},proto.protocol.Account.prototype.setIsWitness=function(t){return o.Message.setProto3BooleanField(this,14,t)},proto.protocol.Account.prototype.getIsCommittee=function(){return o.Message.getBooleanFieldWithDefault(this,15,!1)},proto.protocol.Account.prototype.setIsCommittee=function(t){return o.Message.setProto3BooleanField(this,15,t)},proto.protocol.Account.prototype.getFrozenSupplyList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Account.Frozen,16)},proto.protocol.Account.prototype.setFrozenSupplyList=function(t){return o.Message.setRepeatedWrapperField(this,16,t)},proto.protocol.Account.prototype.addFrozenSupply=function(t,r){return o.Message.addToRepeatedWrapperField(this,16,t,proto.protocol.Account.Frozen,r)},proto.protocol.Account.prototype.clearFrozenSupplyList=function(){return this.setFrozenSupplyList([])},proto.protocol.Account.prototype.getAssetIssuedName=function(){return o.Message.getFieldWithDefault(this,17,"")},proto.protocol.Account.prototype.getAssetIssuedName_asB64=function(){return o.Message.bytesAsB64(this.getAssetIssuedName())},proto.protocol.Account.prototype.getAssetIssuedName_asU8=function(){return o.Message.bytesAsU8(this.getAssetIssuedName())},proto.protocol.Account.prototype.setAssetIssuedName=function(t){return o.Message.setProto3BytesField(this,17,t)},proto.protocol.Account.prototype.getAssetIssuedId=function(){return o.Message.getFieldWithDefault(this,57,"")},proto.protocol.Account.prototype.getAssetIssuedId_asB64=function(){return o.Message.bytesAsB64(this.getAssetIssuedId())},proto.protocol.Account.prototype.getAssetIssuedId_asU8=function(){return o.Message.bytesAsU8(this.getAssetIssuedId())},proto.protocol.Account.prototype.setAssetIssuedId=function(t){return o.Message.setProto3BytesField(this,57,t)},proto.protocol.Account.prototype.getLatestAssetOperationTimeMap=function(t){return o.Message.getMapField(this,18,t,null)},proto.protocol.Account.prototype.clearLatestAssetOperationTimeMap=function(){return this.getLatestAssetOperationTimeMap().clear(),this},proto.protocol.Account.prototype.getLatestAssetOperationTimev2Map=function(t){return o.Message.getMapField(this,58,t,null)},proto.protocol.Account.prototype.clearLatestAssetOperationTimev2Map=function(){return this.getLatestAssetOperationTimev2Map().clear(),this},proto.protocol.Account.prototype.getFreeNetUsage=function(){return o.Message.getFieldWithDefault(this,19,0)},proto.protocol.Account.prototype.setFreeNetUsage=function(t){return o.Message.setProto3IntField(this,19,t)},proto.protocol.Account.prototype.getFreeAssetNetUsageMap=function(t){return o.Message.getMapField(this,20,t,null)},proto.protocol.Account.prototype.clearFreeAssetNetUsageMap=function(){return this.getFreeAssetNetUsageMap().clear(),this},proto.protocol.Account.prototype.getFreeAssetNetUsagev2Map=function(t){return o.Message.getMapField(this,59,t,null)},proto.protocol.Account.prototype.clearFreeAssetNetUsagev2Map=function(){return this.getFreeAssetNetUsagev2Map().clear(),this},proto.protocol.Account.prototype.getLatestConsumeTime=function(){return o.Message.getFieldWithDefault(this,21,0)},proto.protocol.Account.prototype.setLatestConsumeTime=function(t){return o.Message.setProto3IntField(this,21,t)},proto.protocol.Account.prototype.getLatestConsumeFreeTime=function(){return o.Message.getFieldWithDefault(this,22,0)},proto.protocol.Account.prototype.setLatestConsumeFreeTime=function(t){return o.Message.setProto3IntField(this,22,t)},proto.protocol.Account.prototype.getAccountId=function(){return o.Message.getFieldWithDefault(this,23,"")},proto.protocol.Account.prototype.getAccountId_asB64=function(){return o.Message.bytesAsB64(this.getAccountId())},proto.protocol.Account.prototype.getAccountId_asU8=function(){return o.Message.bytesAsU8(this.getAccountId())},proto.protocol.Account.prototype.setAccountId=function(t){return o.Message.setProto3BytesField(this,23,t)},proto.protocol.Account.prototype.getAccountResource=function(){return o.Message.getWrapperField(this,proto.protocol.Account.AccountResource,26)},proto.protocol.Account.prototype.setAccountResource=function(t){return o.Message.setWrapperField(this,26,t)},proto.protocol.Account.prototype.clearAccountResource=function(){return this.setAccountResource(void 0)},proto.protocol.Account.prototype.hasAccountResource=function(){return o.Message.getField(this,26)!=null},proto.protocol.Account.prototype.getCodehash=function(){return o.Message.getFieldWithDefault(this,30,"")},proto.protocol.Account.prototype.getCodehash_asB64=function(){return o.Message.bytesAsB64(this.getCodehash())},proto.protocol.Account.prototype.getCodehash_asU8=function(){return o.Message.bytesAsU8(this.getCodehash())},proto.protocol.Account.prototype.setCodehash=function(t){return o.Message.setProto3BytesField(this,30,t)},proto.protocol.Account.prototype.getOwnerPermission=function(){return o.Message.getWrapperField(this,proto.protocol.Permission,31)},proto.protocol.Account.prototype.setOwnerPermission=function(t){return o.Message.setWrapperField(this,31,t)},proto.protocol.Account.prototype.clearOwnerPermission=function(){return this.setOwnerPermission(void 0)},proto.protocol.Account.prototype.hasOwnerPermission=function(){return o.Message.getField(this,31)!=null},proto.protocol.Account.prototype.getWitnessPermission=function(){return o.Message.getWrapperField(this,proto.protocol.Permission,32)},proto.protocol.Account.prototype.setWitnessPermission=function(t){return o.Message.setWrapperField(this,32,t)},proto.protocol.Account.prototype.clearWitnessPermission=function(){return this.setWitnessPermission(void 0)},proto.protocol.Account.prototype.hasWitnessPermission=function(){return o.Message.getField(this,32)!=null},proto.protocol.Account.prototype.getActivePermissionList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Permission,33)},proto.protocol.Account.prototype.setActivePermissionList=function(t){return o.Message.setRepeatedWrapperField(this,33,t)},proto.protocol.Account.prototype.addActivePermission=function(t,r){return o.Message.addToRepeatedWrapperField(this,33,t,proto.protocol.Permission,r)},proto.protocol.Account.prototype.clearActivePermissionList=function(){return this.setActivePermissionList([])},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Key.prototype.toObject=function(t){return proto.protocol.Key.toObject(t,this)},proto.protocol.Key.toObject=function(t,r){var c={address:r.getAddress_asB64(),weight:o.Message.getFieldWithDefault(r,2,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.Key.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Key;return proto.protocol.Key.deserializeBinaryFromReader(c,r)},proto.protocol.Key.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setAddress(c);break;case 2:c=r.readInt64(),t.setWeight(c);break;default:r.skipField()}return t},proto.protocol.Key.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Key.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Key.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getAddress_asU8()).length>0&&r.writeBytes(1,c),(c=t.getWeight())!==0&&r.writeInt64(2,c)},proto.protocol.Key.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.Key.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.Key.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.Key.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.Key.prototype.getWeight=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Key.prototype.setWeight=function(t){return o.Message.setProto3IntField(this,2,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.DelegatedResource.prototype.toObject=function(t){return proto.protocol.DelegatedResource.toObject(t,this)},proto.protocol.DelegatedResource.toObject=function(t,r){var c={from:r.getFrom_asB64(),to:r.getTo_asB64(),frozenBalanceForBandwidth:o.Message.getFieldWithDefault(r,3,0),frozenBalanceForEnergy:o.Message.getFieldWithDefault(r,4,0),expireTimeForBandwidth:o.Message.getFieldWithDefault(r,5,0),expireTimeForEnergy:o.Message.getFieldWithDefault(r,6,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.DelegatedResource.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.DelegatedResource;return proto.protocol.DelegatedResource.deserializeBinaryFromReader(c,r)},proto.protocol.DelegatedResource.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setFrom(c);break;case 2:c=r.readBytes(),t.setTo(c);break;case 3:c=r.readInt64(),t.setFrozenBalanceForBandwidth(c);break;case 4:c=r.readInt64(),t.setFrozenBalanceForEnergy(c);break;case 5:c=r.readInt64(),t.setExpireTimeForBandwidth(c);break;case 6:c=r.readInt64(),t.setExpireTimeForEnergy(c);break;default:r.skipField()}return t},proto.protocol.DelegatedResource.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.DelegatedResource.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.DelegatedResource.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getFrom_asU8()).length>0&&r.writeBytes(1,c),(c=t.getTo_asU8()).length>0&&r.writeBytes(2,c),(c=t.getFrozenBalanceForBandwidth())!==0&&r.writeInt64(3,c),(c=t.getFrozenBalanceForEnergy())!==0&&r.writeInt64(4,c),(c=t.getExpireTimeForBandwidth())!==0&&r.writeInt64(5,c),(c=t.getExpireTimeForEnergy())!==0&&r.writeInt64(6,c)},proto.protocol.DelegatedResource.prototype.getFrom=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.DelegatedResource.prototype.getFrom_asB64=function(){return o.Message.bytesAsB64(this.getFrom())},proto.protocol.DelegatedResource.prototype.getFrom_asU8=function(){return o.Message.bytesAsU8(this.getFrom())},proto.protocol.DelegatedResource.prototype.setFrom=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.DelegatedResource.prototype.getTo=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.DelegatedResource.prototype.getTo_asB64=function(){return o.Message.bytesAsB64(this.getTo())},proto.protocol.DelegatedResource.prototype.getTo_asU8=function(){return o.Message.bytesAsU8(this.getTo())},proto.protocol.DelegatedResource.prototype.setTo=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.DelegatedResource.prototype.getFrozenBalanceForBandwidth=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.DelegatedResource.prototype.setFrozenBalanceForBandwidth=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.DelegatedResource.prototype.getFrozenBalanceForEnergy=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.DelegatedResource.prototype.setFrozenBalanceForEnergy=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.DelegatedResource.prototype.getExpireTimeForBandwidth=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.DelegatedResource.prototype.setExpireTimeForBandwidth=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.DelegatedResource.prototype.getExpireTimeForEnergy=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.DelegatedResource.prototype.setExpireTimeForEnergy=function(t){return o.Message.setProto3IntField(this,6,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.authority.prototype.toObject=function(t){return proto.protocol.authority.toObject(t,this)},proto.protocol.authority.toObject=function(t,r){var c,z={account:(c=r.getAccount())&&proto.protocol.AccountId.toObject(t,c),permissionName:r.getPermissionName_asB64()};return t&&(z.$jspbMessageInstance=r),z}),proto.protocol.authority.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.authority;return proto.protocol.authority.deserializeBinaryFromReader(c,r)},proto.protocol.authority.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=new proto.protocol.AccountId;r.readMessage(c,proto.protocol.AccountId.deserializeBinaryFromReader),t.setAccount(c);break;case 2:c=r.readBytes(),t.setPermissionName(c);break;default:r.skipField()}return t},proto.protocol.authority.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.authority.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.authority.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getAccount())!=null&&r.writeMessage(1,c,proto.protocol.AccountId.serializeBinaryToWriter),(c=t.getPermissionName_asU8()).length>0&&r.writeBytes(2,c)},proto.protocol.authority.prototype.getAccount=function(){return o.Message.getWrapperField(this,proto.protocol.AccountId,1)},proto.protocol.authority.prototype.setAccount=function(t){return o.Message.setWrapperField(this,1,t)},proto.protocol.authority.prototype.clearAccount=function(){return this.setAccount(void 0)},proto.protocol.authority.prototype.hasAccount=function(){return o.Message.getField(this,1)!=null},proto.protocol.authority.prototype.getPermissionName=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.authority.prototype.getPermissionName_asB64=function(){return o.Message.bytesAsB64(this.getPermissionName())},proto.protocol.authority.prototype.getPermissionName_asU8=function(){return o.Message.bytesAsU8(this.getPermissionName())},proto.protocol.authority.prototype.setPermissionName=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.Permission.repeatedFields_=[7],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Permission.prototype.toObject=function(t){return proto.protocol.Permission.toObject(t,this)},proto.protocol.Permission.toObject=function(t,r){var c={type:o.Message.getFieldWithDefault(r,1,0),id:o.Message.getFieldWithDefault(r,2,0),permissionName:o.Message.getFieldWithDefault(r,3,""),threshold:o.Message.getFieldWithDefault(r,4,0),parentId:o.Message.getFieldWithDefault(r,5,0),operations:r.getOperations_asB64(),keysList:o.Message.toObjectList(r.getKeysList(),proto.protocol.Key.toObject,t)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.Permission.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Permission;return proto.protocol.Permission.deserializeBinaryFromReader(c,r)},proto.protocol.Permission.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readEnum();t.setType(c);break;case 2:c=r.readInt32(),t.setId(c);break;case 3:c=r.readString(),t.setPermissionName(c);break;case 4:c=r.readInt64(),t.setThreshold(c);break;case 5:c=r.readInt32(),t.setParentId(c);break;case 6:c=r.readBytes(),t.setOperations(c);break;case 7:c=new proto.protocol.Key,r.readMessage(c,proto.protocol.Key.deserializeBinaryFromReader),t.addKeys(c);break;default:r.skipField()}return t},proto.protocol.Permission.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Permission.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Permission.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getType())!==0&&r.writeEnum(1,c),(c=t.getId())!==0&&r.writeInt32(2,c),(c=t.getPermissionName()).length>0&&r.writeString(3,c),(c=t.getThreshold())!==0&&r.writeInt64(4,c),(c=t.getParentId())!==0&&r.writeInt32(5,c),(c=t.getOperations_asU8()).length>0&&r.writeBytes(6,c),(c=t.getKeysList()).length>0&&r.writeRepeatedMessage(7,c,proto.protocol.Key.serializeBinaryToWriter)},proto.protocol.Permission.PermissionType={OWNER:0,WITNESS:1,ACTIVE:2},proto.protocol.Permission.prototype.getType=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Permission.prototype.setType=function(t){return o.Message.setProto3EnumField(this,1,t)},proto.protocol.Permission.prototype.getId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Permission.prototype.setId=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.Permission.prototype.getPermissionName=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.Permission.prototype.setPermissionName=function(t){return o.Message.setProto3StringField(this,3,t)},proto.protocol.Permission.prototype.getThreshold=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.Permission.prototype.setThreshold=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.Permission.prototype.getParentId=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.Permission.prototype.setParentId=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.Permission.prototype.getOperations=function(){return o.Message.getFieldWithDefault(this,6,"")},proto.protocol.Permission.prototype.getOperations_asB64=function(){return o.Message.bytesAsB64(this.getOperations())},proto.protocol.Permission.prototype.getOperations_asU8=function(){return o.Message.bytesAsU8(this.getOperations())},proto.protocol.Permission.prototype.setOperations=function(t){return o.Message.setProto3BytesField(this,6,t)},proto.protocol.Permission.prototype.getKeysList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Key,7)},proto.protocol.Permission.prototype.setKeysList=function(t){return o.Message.setRepeatedWrapperField(this,7,t)},proto.protocol.Permission.prototype.addKeys=function(t,r){return o.Message.addToRepeatedWrapperField(this,7,t,proto.protocol.Key,r)},proto.protocol.Permission.prototype.clearKeysList=function(){return this.setKeysList([])},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Witness.prototype.toObject=function(t){return proto.protocol.Witness.toObject(t,this)},proto.protocol.Witness.toObject=function(t,r){var c={address:r.getAddress_asB64(),votecount:o.Message.getFieldWithDefault(r,2,0),pubkey:r.getPubkey_asB64(),url:o.Message.getFieldWithDefault(r,4,""),totalproduced:o.Message.getFieldWithDefault(r,5,0),totalmissed:o.Message.getFieldWithDefault(r,6,0),latestblocknum:o.Message.getFieldWithDefault(r,7,0),latestslotnum:o.Message.getFieldWithDefault(r,8,0),isjobs:o.Message.getBooleanFieldWithDefault(r,9,!1)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.Witness.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Witness;return proto.protocol.Witness.deserializeBinaryFromReader(c,r)},proto.protocol.Witness.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setAddress(c);break;case 2:c=r.readInt64(),t.setVotecount(c);break;case 3:c=r.readBytes(),t.setPubkey(c);break;case 4:c=r.readString(),t.setUrl(c);break;case 5:c=r.readInt64(),t.setTotalproduced(c);break;case 6:c=r.readInt64(),t.setTotalmissed(c);break;case 7:c=r.readInt64(),t.setLatestblocknum(c);break;case 8:c=r.readInt64(),t.setLatestslotnum(c);break;case 9:c=r.readBool(),t.setIsjobs(c);break;default:r.skipField()}return t},proto.protocol.Witness.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Witness.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Witness.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getAddress_asU8()).length>0&&r.writeBytes(1,c),(c=t.getVotecount())!==0&&r.writeInt64(2,c),(c=t.getPubkey_asU8()).length>0&&r.writeBytes(3,c),(c=t.getUrl()).length>0&&r.writeString(4,c),(c=t.getTotalproduced())!==0&&r.writeInt64(5,c),(c=t.getTotalmissed())!==0&&r.writeInt64(6,c),(c=t.getLatestblocknum())!==0&&r.writeInt64(7,c),(c=t.getLatestslotnum())!==0&&r.writeInt64(8,c),(c=t.getIsjobs())&&r.writeBool(9,c)},proto.protocol.Witness.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.Witness.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.Witness.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.Witness.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.Witness.prototype.getVotecount=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Witness.prototype.setVotecount=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.Witness.prototype.getPubkey=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.Witness.prototype.getPubkey_asB64=function(){return o.Message.bytesAsB64(this.getPubkey())},proto.protocol.Witness.prototype.getPubkey_asU8=function(){return o.Message.bytesAsU8(this.getPubkey())},proto.protocol.Witness.prototype.setPubkey=function(t){return o.Message.setProto3BytesField(this,3,t)},proto.protocol.Witness.prototype.getUrl=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.Witness.prototype.setUrl=function(t){return o.Message.setProto3StringField(this,4,t)},proto.protocol.Witness.prototype.getTotalproduced=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.Witness.prototype.setTotalproduced=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.Witness.prototype.getTotalmissed=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.Witness.prototype.setTotalmissed=function(t){return o.Message.setProto3IntField(this,6,t)},proto.protocol.Witness.prototype.getLatestblocknum=function(){return o.Message.getFieldWithDefault(this,7,0)},proto.protocol.Witness.prototype.setLatestblocknum=function(t){return o.Message.setProto3IntField(this,7,t)},proto.protocol.Witness.prototype.getLatestslotnum=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.Witness.prototype.setLatestslotnum=function(t){return o.Message.setProto3IntField(this,8,t)},proto.protocol.Witness.prototype.getIsjobs=function(){return o.Message.getBooleanFieldWithDefault(this,9,!1)},proto.protocol.Witness.prototype.setIsjobs=function(t){return o.Message.setProto3BooleanField(this,9,t)},proto.protocol.Votes.repeatedFields_=[2,3],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Votes.prototype.toObject=function(t){return proto.protocol.Votes.toObject(t,this)},proto.protocol.Votes.toObject=function(t,r){var c={address:r.getAddress_asB64(),oldVotesList:o.Message.toObjectList(r.getOldVotesList(),proto.protocol.Vote.toObject,t),newVotesList:o.Message.toObjectList(r.getNewVotesList(),proto.protocol.Vote.toObject,t)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.Votes.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Votes;return proto.protocol.Votes.deserializeBinaryFromReader(c,r)},proto.protocol.Votes.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setAddress(c);break;case 2:c=new proto.protocol.Vote,r.readMessage(c,proto.protocol.Vote.deserializeBinaryFromReader),t.addOldVotes(c);break;case 3:c=new proto.protocol.Vote,r.readMessage(c,proto.protocol.Vote.deserializeBinaryFromReader),t.addNewVotes(c);break;default:r.skipField()}return t},proto.protocol.Votes.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Votes.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Votes.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getAddress_asU8()).length>0&&r.writeBytes(1,c),(c=t.getOldVotesList()).length>0&&r.writeRepeatedMessage(2,c,proto.protocol.Vote.serializeBinaryToWriter),(c=t.getNewVotesList()).length>0&&r.writeRepeatedMessage(3,c,proto.protocol.Vote.serializeBinaryToWriter)},proto.protocol.Votes.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.Votes.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.Votes.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.Votes.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.Votes.prototype.getOldVotesList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Vote,2)},proto.protocol.Votes.prototype.setOldVotesList=function(t){return o.Message.setRepeatedWrapperField(this,2,t)},proto.protocol.Votes.prototype.addOldVotes=function(t,r){return o.Message.addToRepeatedWrapperField(this,2,t,proto.protocol.Vote,r)},proto.protocol.Votes.prototype.clearOldVotesList=function(){return this.setOldVotesList([])},proto.protocol.Votes.prototype.getNewVotesList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Vote,3)},proto.protocol.Votes.prototype.setNewVotesList=function(t){return o.Message.setRepeatedWrapperField(this,3,t)},proto.protocol.Votes.prototype.addNewVotes=function(t,r){return o.Message.addToRepeatedWrapperField(this,3,t,proto.protocol.Vote,r)},proto.protocol.Votes.prototype.clearNewVotesList=function(){return this.setNewVotesList([])},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.MarketOrderDetail.prototype.toObject=function(t){return proto.protocol.MarketOrderDetail.toObject(t,this)},proto.protocol.MarketOrderDetail.toObject=function(t,r){var c={makerorderid:r.getMakerorderid_asB64(),takerorderid:r.getTakerorderid_asB64(),fillsellquantity:o.Message.getFieldWithDefault(r,3,0),fillbuyquantity:o.Message.getFieldWithDefault(r,4,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.MarketOrderDetail.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.MarketOrderDetail;return proto.protocol.MarketOrderDetail.deserializeBinaryFromReader(c,r)},proto.protocol.MarketOrderDetail.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setMakerorderid(c);break;case 2:c=r.readBytes(),t.setTakerorderid(c);break;case 3:c=r.readInt64(),t.setFillsellquantity(c);break;case 4:c=r.readInt64(),t.setFillbuyquantity(c);break;default:r.skipField()}return t},proto.protocol.MarketOrderDetail.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.MarketOrderDetail.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.MarketOrderDetail.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getMakerorderid_asU8()).length>0&&r.writeBytes(1,c),(c=t.getTakerorderid_asU8()).length>0&&r.writeBytes(2,c),(c=t.getFillsellquantity())!==0&&r.writeInt64(3,c),(c=t.getFillbuyquantity())!==0&&r.writeInt64(4,c)},proto.protocol.MarketOrderDetail.prototype.getMakerorderid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.MarketOrderDetail.prototype.getMakerorderid_asB64=function(){return o.Message.bytesAsB64(this.getMakerorderid())},proto.protocol.MarketOrderDetail.prototype.getMakerorderid_asU8=function(){return o.Message.bytesAsU8(this.getMakerorderid())},proto.protocol.MarketOrderDetail.prototype.setMakerorderid=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.MarketOrderDetail.prototype.getTakerorderid=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.MarketOrderDetail.prototype.getTakerorderid_asB64=function(){return o.Message.bytesAsB64(this.getTakerorderid())},proto.protocol.MarketOrderDetail.prototype.getTakerorderid_asU8=function(){return o.Message.bytesAsU8(this.getTakerorderid())},proto.protocol.MarketOrderDetail.prototype.setTakerorderid=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.MarketOrderDetail.prototype.getFillsellquantity=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.MarketOrderDetail.prototype.setFillsellquantity=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.MarketOrderDetail.prototype.getFillbuyquantity=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.MarketOrderDetail.prototype.setFillbuyquantity=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.Transaction.repeatedFields_=[2,5],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Transaction.prototype.toObject=function(t){return proto.protocol.Transaction.toObject(t,this)},proto.protocol.Transaction.toObject=function(t,r){var c,z={rawData:(c=r.getRawData())&&proto.protocol.Transaction.raw.toObject(t,c),signatureList:r.getSignatureList_asB64(),retList:o.Message.toObjectList(r.getRetList(),proto.protocol.Transaction.Result.toObject,t)};return t&&(z.$jspbMessageInstance=r),z}),proto.protocol.Transaction.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Transaction;return proto.protocol.Transaction.deserializeBinaryFromReader(c,r)},proto.protocol.Transaction.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=new proto.protocol.Transaction.raw;r.readMessage(c,proto.protocol.Transaction.raw.deserializeBinaryFromReader),t.setRawData(c);break;case 2:c=r.readBytes(),t.addSignature(c);break;case 5:c=new proto.protocol.Transaction.Result,r.readMessage(c,proto.protocol.Transaction.Result.deserializeBinaryFromReader),t.addRet(c);break;default:r.skipField()}return t},proto.protocol.Transaction.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Transaction.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Transaction.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getRawData())!=null&&r.writeMessage(1,c,proto.protocol.Transaction.raw.serializeBinaryToWriter),(c=t.getSignatureList_asU8()).length>0&&r.writeRepeatedBytes(2,c),(c=t.getRetList()).length>0&&r.writeRepeatedMessage(5,c,proto.protocol.Transaction.Result.serializeBinaryToWriter)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Transaction.Contract.prototype.toObject=function(t){return proto.protocol.Transaction.Contract.toObject(t,this)},proto.protocol.Transaction.Contract.toObject=function(t,r){var c,z={type:o.Message.getFieldWithDefault(r,1,0),parameter:(c=r.getParameter())&&a.Any.toObject(t,c),provider:r.getProvider_asB64(),contractname:r.getContractname_asB64(),permissionId:o.Message.getFieldWithDefault(r,5,0)};return t&&(z.$jspbMessageInstance=r),z}),proto.protocol.Transaction.Contract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Transaction.Contract;return proto.protocol.Transaction.Contract.deserializeBinaryFromReader(c,r)},proto.protocol.Transaction.Contract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readEnum();t.setType(c);break;case 2:c=new a.Any,r.readMessage(c,a.Any.deserializeBinaryFromReader),t.setParameter(c);break;case 3:c=r.readBytes(),t.setProvider(c);break;case 4:c=r.readBytes(),t.setContractname(c);break;case 5:c=r.readInt32(),t.setPermissionId(c);break;default:r.skipField()}return t},proto.protocol.Transaction.Contract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Transaction.Contract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Transaction.Contract.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getType())!==0&&r.writeEnum(1,c),(c=t.getParameter())!=null&&r.writeMessage(2,c,a.Any.serializeBinaryToWriter),(c=t.getProvider_asU8()).length>0&&r.writeBytes(3,c),(c=t.getContractname_asU8()).length>0&&r.writeBytes(4,c),(c=t.getPermissionId())!==0&&r.writeInt32(5,c)},proto.protocol.Transaction.Contract.ContractType={ACCOUNTCREATECONTRACT:0,TRANSFERCONTRACT:1,TRANSFERASSETCONTRACT:2,VOTEASSETCONTRACT:3,VOTEWITNESSCONTRACT:4,WITNESSCREATECONTRACT:5,ASSETISSUECONTRACT:6,WITNESSUPDATECONTRACT:8,PARTICIPATEASSETISSUECONTRACT:9,ACCOUNTUPDATECONTRACT:10,FREEZEBALANCECONTRACT:11,UNFREEZEBALANCECONTRACT:12,WITHDRAWBALANCECONTRACT:13,UNFREEZEASSETCONTRACT:14,UPDATEASSETCONTRACT:15,PROPOSALCREATECONTRACT:16,PROPOSALAPPROVECONTRACT:17,PROPOSALDELETECONTRACT:18,SETACCOUNTIDCONTRACT:19,CUSTOMCONTRACT:20,CREATESMARTCONTRACT:30,TRIGGERSMARTCONTRACT:31,GETCONTRACT:32,UPDATESETTINGCONTRACT:33,EXCHANGECREATECONTRACT:41,EXCHANGEINJECTCONTRACT:42,EXCHANGEWITHDRAWCONTRACT:43,EXCHANGETRANSACTIONCONTRACT:44,UPDATEENERGYLIMITCONTRACT:45,ACCOUNTPERMISSIONUPDATECONTRACT:46,CLEARABICONTRACT:48,UPDATEBROKERAGECONTRACT:49,SHIELDEDTRANSFERCONTRACT:51,MARKETSELLASSETCONTRACT:52,MARKETCANCELORDERCONTRACT:53,FREEZEBALANCEV2CONTRACT:54,UNFREEZEBALANCEV2CONTRACT:55,WITHDRAWEXPIREUNFREEZECONTRACT:56,DELEGATERESOURCECONTRACT:57,UNDELEGATERESOURCECONTRACT:58},proto.protocol.Transaction.Contract.prototype.getType=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Transaction.Contract.prototype.setType=function(t){return o.Message.setProto3EnumField(this,1,t)},proto.protocol.Transaction.Contract.prototype.getParameter=function(){return o.Message.getWrapperField(this,a.Any,2)},proto.protocol.Transaction.Contract.prototype.setParameter=function(t){return o.Message.setWrapperField(this,2,t)},proto.protocol.Transaction.Contract.prototype.clearParameter=function(){return this.setParameter(void 0)},proto.protocol.Transaction.Contract.prototype.hasParameter=function(){return o.Message.getField(this,2)!=null},proto.protocol.Transaction.Contract.prototype.getProvider=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.Transaction.Contract.prototype.getProvider_asB64=function(){return o.Message.bytesAsB64(this.getProvider())},proto.protocol.Transaction.Contract.prototype.getProvider_asU8=function(){return o.Message.bytesAsU8(this.getProvider())},proto.protocol.Transaction.Contract.prototype.setProvider=function(t){return o.Message.setProto3BytesField(this,3,t)},proto.protocol.Transaction.Contract.prototype.getContractname=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.Transaction.Contract.prototype.getContractname_asB64=function(){return o.Message.bytesAsB64(this.getContractname())},proto.protocol.Transaction.Contract.prototype.getContractname_asU8=function(){return o.Message.bytesAsU8(this.getContractname())},proto.protocol.Transaction.Contract.prototype.setContractname=function(t){return o.Message.setProto3BytesField(this,4,t)},proto.protocol.Transaction.Contract.prototype.getPermissionId=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.Transaction.Contract.prototype.setPermissionId=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.Transaction.Result.repeatedFields_=[26],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Transaction.Result.prototype.toObject=function(t){return proto.protocol.Transaction.Result.toObject(t,this)},proto.protocol.Transaction.Result.toObject=function(t,r){var c={fee:o.Message.getFieldWithDefault(r,1,0),ret:o.Message.getFieldWithDefault(r,2,0),contractret:o.Message.getFieldWithDefault(r,3,0),assetissueid:o.Message.getFieldWithDefault(r,14,""),withdrawAmount:o.Message.getFieldWithDefault(r,15,0),unfreezeAmount:o.Message.getFieldWithDefault(r,16,0),exchangeReceivedAmount:o.Message.getFieldWithDefault(r,18,0),exchangeInjectAnotherAmount:o.Message.getFieldWithDefault(r,19,0),exchangeWithdrawAnotherAmount:o.Message.getFieldWithDefault(r,20,0),exchangeId:o.Message.getFieldWithDefault(r,21,0),shieldedTransactionFee:o.Message.getFieldWithDefault(r,22,0),orderid:r.getOrderid_asB64(),orderdetailsList:o.Message.toObjectList(r.getOrderdetailsList(),proto.protocol.MarketOrderDetail.toObject,t)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.Transaction.Result.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Transaction.Result;return proto.protocol.Transaction.Result.deserializeBinaryFromReader(c,r)},proto.protocol.Transaction.Result.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readInt64();t.setFee(c);break;case 2:c=r.readEnum(),t.setRet(c);break;case 3:c=r.readEnum(),t.setContractret(c);break;case 14:c=r.readString(),t.setAssetissueid(c);break;case 15:c=r.readInt64(),t.setWithdrawAmount(c);break;case 16:c=r.readInt64(),t.setUnfreezeAmount(c);break;case 18:c=r.readInt64(),t.setExchangeReceivedAmount(c);break;case 19:c=r.readInt64(),t.setExchangeInjectAnotherAmount(c);break;case 20:c=r.readInt64(),t.setExchangeWithdrawAnotherAmount(c);break;case 21:c=r.readInt64(),t.setExchangeId(c);break;case 22:c=r.readInt64(),t.setShieldedTransactionFee(c);break;case 25:c=r.readBytes(),t.setOrderid(c);break;case 26:c=new proto.protocol.MarketOrderDetail,r.readMessage(c,proto.protocol.MarketOrderDetail.deserializeBinaryFromReader),t.addOrderdetails(c);break;default:r.skipField()}return t},proto.protocol.Transaction.Result.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Transaction.Result.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Transaction.Result.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getFee())!==0&&r.writeInt64(1,c),(c=t.getRet())!==0&&r.writeEnum(2,c),(c=t.getContractret())!==0&&r.writeEnum(3,c),(c=t.getAssetissueid()).length>0&&r.writeString(14,c),(c=t.getWithdrawAmount())!==0&&r.writeInt64(15,c),(c=t.getUnfreezeAmount())!==0&&r.writeInt64(16,c),(c=t.getExchangeReceivedAmount())!==0&&r.writeInt64(18,c),(c=t.getExchangeInjectAnotherAmount())!==0&&r.writeInt64(19,c),(c=t.getExchangeWithdrawAnotherAmount())!==0&&r.writeInt64(20,c),(c=t.getExchangeId())!==0&&r.writeInt64(21,c),(c=t.getShieldedTransactionFee())!==0&&r.writeInt64(22,c),(c=t.getOrderid_asU8()).length>0&&r.writeBytes(25,c),(c=t.getOrderdetailsList()).length>0&&r.writeRepeatedMessage(26,c,proto.protocol.MarketOrderDetail.serializeBinaryToWriter)},proto.protocol.Transaction.Result.code={SUCESS:0,FAILED:1},proto.protocol.Transaction.Result.contractResult={DEFAULT:0,SUCCESS:1,REVERT:2,BAD_JUMP_DESTINATION:3,OUT_OF_MEMORY:4,PRECOMPILED_CONTRACT:5,STACK_TOO_SMALL:6,STACK_TOO_LARGE:7,ILLEGAL_OPERATION:8,STACK_OVERFLOW:9,OUT_OF_ENERGY:10,OUT_OF_TIME:11,JVM_STACK_OVER_FLOW:12,UNKNOWN:13,TRANSFER_FAILED:14,INVALID_CODE:15},proto.protocol.Transaction.Result.prototype.getFee=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Transaction.Result.prototype.setFee=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.Transaction.Result.prototype.getRet=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Transaction.Result.prototype.setRet=function(t){return o.Message.setProto3EnumField(this,2,t)},proto.protocol.Transaction.Result.prototype.getContractret=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.Transaction.Result.prototype.setContractret=function(t){return o.Message.setProto3EnumField(this,3,t)},proto.protocol.Transaction.Result.prototype.getAssetissueid=function(){return o.Message.getFieldWithDefault(this,14,"")},proto.protocol.Transaction.Result.prototype.setAssetissueid=function(t){return o.Message.setProto3StringField(this,14,t)},proto.protocol.Transaction.Result.prototype.getWithdrawAmount=function(){return o.Message.getFieldWithDefault(this,15,0)},proto.protocol.Transaction.Result.prototype.setWithdrawAmount=function(t){return o.Message.setProto3IntField(this,15,t)},proto.protocol.Transaction.Result.prototype.getUnfreezeAmount=function(){return o.Message.getFieldWithDefault(this,16,0)},proto.protocol.Transaction.Result.prototype.setUnfreezeAmount=function(t){return o.Message.setProto3IntField(this,16,t)},proto.protocol.Transaction.Result.prototype.getExchangeReceivedAmount=function(){return o.Message.getFieldWithDefault(this,18,0)},proto.protocol.Transaction.Result.prototype.setExchangeReceivedAmount=function(t){return o.Message.setProto3IntField(this,18,t)},proto.protocol.Transaction.Result.prototype.getExchangeInjectAnotherAmount=function(){return o.Message.getFieldWithDefault(this,19,0)},proto.protocol.Transaction.Result.prototype.setExchangeInjectAnotherAmount=function(t){return o.Message.setProto3IntField(this,19,t)},proto.protocol.Transaction.Result.prototype.getExchangeWithdrawAnotherAmount=function(){return o.Message.getFieldWithDefault(this,20,0)},proto.protocol.Transaction.Result.prototype.setExchangeWithdrawAnotherAmount=function(t){return o.Message.setProto3IntField(this,20,t)},proto.protocol.Transaction.Result.prototype.getExchangeId=function(){return o.Message.getFieldWithDefault(this,21,0)},proto.protocol.Transaction.Result.prototype.setExchangeId=function(t){return o.Message.setProto3IntField(this,21,t)},proto.protocol.Transaction.Result.prototype.getShieldedTransactionFee=function(){return o.Message.getFieldWithDefault(this,22,0)},proto.protocol.Transaction.Result.prototype.setShieldedTransactionFee=function(t){return o.Message.setProto3IntField(this,22,t)},proto.protocol.Transaction.Result.prototype.getOrderid=function(){return o.Message.getFieldWithDefault(this,25,"")},proto.protocol.Transaction.Result.prototype.getOrderid_asB64=function(){return o.Message.bytesAsB64(this.getOrderid())},proto.protocol.Transaction.Result.prototype.getOrderid_asU8=function(){return o.Message.bytesAsU8(this.getOrderid())},proto.protocol.Transaction.Result.prototype.setOrderid=function(t){return o.Message.setProto3BytesField(this,25,t)},proto.protocol.Transaction.Result.prototype.getOrderdetailsList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.MarketOrderDetail,26)},proto.protocol.Transaction.Result.prototype.setOrderdetailsList=function(t){return o.Message.setRepeatedWrapperField(this,26,t)},proto.protocol.Transaction.Result.prototype.addOrderdetails=function(t,r){return o.Message.addToRepeatedWrapperField(this,26,t,proto.protocol.MarketOrderDetail,r)},proto.protocol.Transaction.Result.prototype.clearOrderdetailsList=function(){return this.setOrderdetailsList([])},proto.protocol.Transaction.raw.repeatedFields_=[9,11],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Transaction.raw.prototype.toObject=function(t){return proto.protocol.Transaction.raw.toObject(t,this)},proto.protocol.Transaction.raw.toObject=function(t,r){var c={refBlockBytes:r.getRefBlockBytes_asB64(),refBlockNum:o.Message.getFieldWithDefault(r,3,0),refBlockHash:r.getRefBlockHash_asB64(),expiration:o.Message.getFieldWithDefault(r,8,0),authsList:o.Message.toObjectList(r.getAuthsList(),proto.protocol.authority.toObject,t),data:r.getData_asB64(),contractList:o.Message.toObjectList(r.getContractList(),proto.protocol.Transaction.Contract.toObject,t),scripts:r.getScripts_asB64(),timestamp:o.Message.getFieldWithDefault(r,14,0),feeLimit:o.Message.getFieldWithDefault(r,18,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.Transaction.raw.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.Transaction.raw;return proto.protocol.Transaction.raw.deserializeBinaryFromReader(c,r)},proto.protocol.Transaction.raw.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setRefBlockBytes(c);break;case 3:c=r.readInt64(),t.setRefBlockNum(c);break;case 4:c=r.readBytes(),t.setRefBlockHash(c);break;case 8:c=r.readInt64(),t.setExpiration(c);break;case 9:c=new proto.protocol.authority,r.readMessage(c,proto.protocol.authority.deserializeBinaryFromReader),t.addAuths(c);break;case 10:c=r.readBytes(),t.setData(c);break;case 11:c=new proto.protocol.Transaction.Contract,r.readMessage(c,proto.protocol.Transaction.Contract.deserializeBinaryFromReader),t.addContract(c);break;case 12:c=r.readBytes(),t.setScripts(c);break;case 14:c=r.readInt64(),t.setTimestamp(c);break;case 18:c=r.readInt64(),t.setFeeLimit(c);break;default:r.skipField()}return t},proto.protocol.Transaction.raw.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Transaction.raw.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Transaction.raw.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getRefBlockBytes_asU8()).length>0&&r.writeBytes(1,c),(c=t.getRefBlockNum())!==0&&r.writeInt64(3,c),(c=t.getRefBlockHash_asU8()).length>0&&r.writeBytes(4,c),(c=t.getExpiration())!==0&&r.writeInt64(8,c),(c=t.getAuthsList()).length>0&&r.writeRepeatedMessage(9,c,proto.protocol.authority.serializeBinaryToWriter),(c=t.getData_asU8()).length>0&&r.writeBytes(10,c),(c=t.getContractList()).length>0&&r.writeRepeatedMessage(11,c,proto.protocol.Transaction.Contract.serializeBinaryToWriter),(c=t.getScripts_asU8()).length>0&&r.writeBytes(12,c),(c=t.getTimestamp())!==0&&r.writeInt64(14,c),(c=t.getFeeLimit())!==0&&r.writeInt64(18,c)},proto.protocol.Transaction.raw.prototype.getRefBlockBytes=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.Transaction.raw.prototype.getRefBlockBytes_asB64=function(){return o.Message.bytesAsB64(this.getRefBlockBytes())},proto.protocol.Transaction.raw.prototype.getRefBlockBytes_asU8=function(){return o.Message.bytesAsU8(this.getRefBlockBytes())},proto.protocol.Transaction.raw.prototype.setRefBlockBytes=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.Transaction.raw.prototype.getRefBlockNum=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.Transaction.raw.prototype.setRefBlockNum=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.Transaction.raw.prototype.getRefBlockHash=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.Transaction.raw.prototype.getRefBlockHash_asB64=function(){return o.Message.bytesAsB64(this.getRefBlockHash())},proto.protocol.Transaction.raw.prototype.getRefBlockHash_asU8=function(){return o.Message.bytesAsU8(this.getRefBlockHash())},proto.protocol.Transaction.raw.prototype.setRefBlockHash=function(t){return o.Message.setProto3BytesField(this,4,t)},proto.protocol.Transaction.raw.prototype.getExpiration=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.Transaction.raw.prototype.setExpiration=function(t){return o.Message.setProto3IntField(this,8,t)},proto.protocol.Transaction.raw.prototype.getAuthsList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.authority,9)},proto.protocol.Transaction.raw.prototype.setAuthsList=function(t){return o.Message.setRepeatedWrapperField(this,9,t)},proto.protocol.Transaction.raw.prototype.addAuths=function(t,r){return o.Message.addToRepeatedWrapperField(this,9,t,proto.protocol.authority,r)},proto.protocol.Transaction.raw.prototype.clearAuthsList=function(){return this.setAuthsList([])},proto.protocol.Transaction.raw.prototype.getData=function(){return o.Message.getFieldWithDefault(this,10,"")},proto.protocol.Transaction.raw.prototype.getData_asB64=function(){return o.Message.bytesAsB64(this.getData())},proto.protocol.Transaction.raw.prototype.getData_asU8=function(){return o.Message.bytesAsU8(this.getData())},proto.protocol.Transaction.raw.prototype.setData=function(t){return o.Message.setProto3BytesField(this,10,t)},proto.protocol.Transaction.raw.prototype.getContractList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Transaction.Contract,11)},proto.protocol.Transaction.raw.prototype.setContractList=function(t){return o.Message.setRepeatedWrapperField(this,11,t)},proto.protocol.Transaction.raw.prototype.addContract=function(t,r){return o.Message.addToRepeatedWrapperField(this,11,t,proto.protocol.Transaction.Contract,r)},proto.protocol.Transaction.raw.prototype.clearContractList=function(){return this.setContractList([])},proto.protocol.Transaction.raw.prototype.getScripts=function(){return o.Message.getFieldWithDefault(this,12,"")},proto.protocol.Transaction.raw.prototype.getScripts_asB64=function(){return o.Message.bytesAsB64(this.getScripts())},proto.protocol.Transaction.raw.prototype.getScripts_asU8=function(){return o.Message.bytesAsU8(this.getScripts())},proto.protocol.Transaction.raw.prototype.setScripts=function(t){return o.Message.setProto3BytesField(this,12,t)},proto.protocol.Transaction.raw.prototype.getTimestamp=function(){return o.Message.getFieldWithDefault(this,14,0)},proto.protocol.Transaction.raw.prototype.setTimestamp=function(t){return o.Message.setProto3IntField(this,14,t)},proto.protocol.Transaction.raw.prototype.getFeeLimit=function(){return o.Message.getFieldWithDefault(this,18,0)},proto.protocol.Transaction.raw.prototype.setFeeLimit=function(t){return o.Message.setProto3IntField(this,18,t)},proto.protocol.Transaction.prototype.getRawData=function(){return o.Message.getWrapperField(this,proto.protocol.Transaction.raw,1)},proto.protocol.Transaction.prototype.setRawData=function(t){return o.Message.setWrapperField(this,1,t)},proto.protocol.Transaction.prototype.clearRawData=function(){return this.setRawData(void 0)},proto.protocol.Transaction.prototype.hasRawData=function(){return o.Message.getField(this,1)!=null},proto.protocol.Transaction.prototype.getSignatureList=function(){return o.Message.getRepeatedField(this,2)},proto.protocol.Transaction.prototype.getSignatureList_asB64=function(){return o.Message.bytesListAsB64(this.getSignatureList())},proto.protocol.Transaction.prototype.getSignatureList_asU8=function(){return o.Message.bytesListAsU8(this.getSignatureList())},proto.protocol.Transaction.prototype.setSignatureList=function(t){return o.Message.setField(this,2,t||[])},proto.protocol.Transaction.prototype.addSignature=function(t,r){return o.Message.addToRepeatedField(this,2,t,r)},proto.protocol.Transaction.prototype.clearSignatureList=function(){return this.setSignatureList([])},proto.protocol.Transaction.prototype.getRetList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Transaction.Result,5)},proto.protocol.Transaction.prototype.setRetList=function(t){return o.Message.setRepeatedWrapperField(this,5,t)},proto.protocol.Transaction.prototype.addRet=function(t,r){return o.Message.addToRepeatedWrapperField(this,5,t,proto.protocol.Transaction.Result,r)},proto.protocol.Transaction.prototype.clearRetList=function(){return this.setRetList([])},proto.protocol.AccountType={NORMAL:0,ASSETISSUE:1,CONTRACT:2},h.object.extend(P,proto.protocol)},function(O,P,m){var o=m(8),h=function(){return this||window||h||self||Function("return this")()}.call(null);o.exportSymbol("proto.protocol.ResourceCode",null,h),proto.protocol.ResourceCode={BANDWIDTH:0,ENERGY:1,TRON_POWER:2},o.object.extend(P,proto.protocol)},function(O,P){O.exports=C(61655)},function(O,P){O.exports=C(94993)},function(O,P){O.exports=C(9669)},function(O,P){O.exports=C(62741)},function(O,P){O.exports=C(80711)},function(O,P){O.exports=C(48966)},function(O,P){O.exports=C(49300)},function(O){O.exports=JSON.parse('{"a":"5.1.0"}')},function(O,P){O.exports=C(17673)},function(O,P){O.exports=C(36177)},function(O,P){O.exports=C(36177)},function(O,P,m){var o=m(8),h=o,f=function(){return this||window||f||self||Function("return this")()}.call(null),a=m(21);h.object.extend(proto,a),h.exportSymbol("proto.protocol.AccountBalanceRequest",null,f),h.exportSymbol("proto.protocol.AccountBalanceResponse",null,f),h.exportSymbol("proto.protocol.AccountIdentifier",null,f),h.exportSymbol("proto.protocol.AccountTrace",null,f),h.exportSymbol("proto.protocol.BlockBalanceTrace",null,f),h.exportSymbol("proto.protocol.BlockBalanceTrace.BlockIdentifier",null,f),h.exportSymbol("proto.protocol.DelegateResourceContract",null,f),h.exportSymbol("proto.protocol.FreezeBalanceContract",null,f),h.exportSymbol("proto.protocol.FreezeBalanceV2Contract",null,f),h.exportSymbol("proto.protocol.TransactionBalanceTrace",null,f),h.exportSymbol("proto.protocol.TransactionBalanceTrace.Operation",null,f),h.exportSymbol("proto.protocol.TransferContract",null,f),h.exportSymbol("proto.protocol.UnDelegateResourceContract",null,f),h.exportSymbol("proto.protocol.UnfreezeBalanceContract",null,f),h.exportSymbol("proto.protocol.UnfreezeBalanceV2Contract",null,f),h.exportSymbol("proto.protocol.WithdrawBalanceContract",null,f),h.exportSymbol("proto.protocol.WithdrawExpireUnfreezeContract",null,f),proto.protocol.FreezeBalanceContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.FreezeBalanceContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.FreezeBalanceContract.displayName="proto.protocol.FreezeBalanceContract"),proto.protocol.UnfreezeBalanceContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.UnfreezeBalanceContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.UnfreezeBalanceContract.displayName="proto.protocol.UnfreezeBalanceContract"),proto.protocol.WithdrawBalanceContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.WithdrawBalanceContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.WithdrawBalanceContract.displayName="proto.protocol.WithdrawBalanceContract"),proto.protocol.TransferContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.TransferContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.TransferContract.displayName="proto.protocol.TransferContract"),proto.protocol.TransactionBalanceTrace=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.TransactionBalanceTrace.repeatedFields_,null)},h.inherits(proto.protocol.TransactionBalanceTrace,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.TransactionBalanceTrace.displayName="proto.protocol.TransactionBalanceTrace"),proto.protocol.TransactionBalanceTrace.Operation=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.TransactionBalanceTrace.Operation,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.TransactionBalanceTrace.Operation.displayName="proto.protocol.TransactionBalanceTrace.Operation"),proto.protocol.BlockBalanceTrace=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.BlockBalanceTrace.repeatedFields_,null)},h.inherits(proto.protocol.BlockBalanceTrace,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.BlockBalanceTrace.displayName="proto.protocol.BlockBalanceTrace"),proto.protocol.BlockBalanceTrace.BlockIdentifier=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.BlockBalanceTrace.BlockIdentifier,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.BlockBalanceTrace.BlockIdentifier.displayName="proto.protocol.BlockBalanceTrace.BlockIdentifier"),proto.protocol.AccountTrace=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.AccountTrace,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.AccountTrace.displayName="proto.protocol.AccountTrace"),proto.protocol.AccountIdentifier=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.AccountIdentifier,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.AccountIdentifier.displayName="proto.protocol.AccountIdentifier"),proto.protocol.AccountBalanceRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.AccountBalanceRequest,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.AccountBalanceRequest.displayName="proto.protocol.AccountBalanceRequest"),proto.protocol.AccountBalanceResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.AccountBalanceResponse,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.AccountBalanceResponse.displayName="proto.protocol.AccountBalanceResponse"),proto.protocol.FreezeBalanceV2Contract=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.FreezeBalanceV2Contract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.FreezeBalanceV2Contract.displayName="proto.protocol.FreezeBalanceV2Contract"),proto.protocol.UnfreezeBalanceV2Contract=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.UnfreezeBalanceV2Contract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.UnfreezeBalanceV2Contract.displayName="proto.protocol.UnfreezeBalanceV2Contract"),proto.protocol.WithdrawExpireUnfreezeContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.WithdrawExpireUnfreezeContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.WithdrawExpireUnfreezeContract.displayName="proto.protocol.WithdrawExpireUnfreezeContract"),proto.protocol.DelegateResourceContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.DelegateResourceContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.DelegateResourceContract.displayName="proto.protocol.DelegateResourceContract"),proto.protocol.UnDelegateResourceContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.UnDelegateResourceContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.UnDelegateResourceContract.displayName="proto.protocol.UnDelegateResourceContract"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.FreezeBalanceContract.prototype.toObject=function(t){return proto.protocol.FreezeBalanceContract.toObject(t,this)},proto.protocol.FreezeBalanceContract.toObject=function(t,r){var c={ownerAddress:r.getOwnerAddress_asB64(),frozenBalance:o.Message.getFieldWithDefault(r,2,0),frozenDuration:o.Message.getFieldWithDefault(r,3,0),resource:o.Message.getFieldWithDefault(r,10,0),receiverAddress:r.getReceiverAddress_asB64()};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.FreezeBalanceContract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.FreezeBalanceContract;return proto.protocol.FreezeBalanceContract.deserializeBinaryFromReader(c,r)},proto.protocol.FreezeBalanceContract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setOwnerAddress(c);break;case 2:c=r.readInt64(),t.setFrozenBalance(c);break;case 3:c=r.readInt64(),t.setFrozenDuration(c);break;case 10:c=r.readEnum(),t.setResource(c);break;case 15:c=r.readBytes(),t.setReceiverAddress(c);break;default:r.skipField()}return t},proto.protocol.FreezeBalanceContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.FreezeBalanceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.FreezeBalanceContract.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getOwnerAddress_asU8()).length>0&&r.writeBytes(1,c),(c=t.getFrozenBalance())!==0&&r.writeInt64(2,c),(c=t.getFrozenDuration())!==0&&r.writeInt64(3,c),(c=t.getResource())!==0&&r.writeEnum(10,c),(c=t.getReceiverAddress_asU8()).length>0&&r.writeBytes(15,c)},proto.protocol.FreezeBalanceContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.FreezeBalanceContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.FreezeBalanceContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.FreezeBalanceContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.FreezeBalanceContract.prototype.getFrozenBalance=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.FreezeBalanceContract.prototype.setFrozenBalance=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.FreezeBalanceContract.prototype.getFrozenDuration=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.FreezeBalanceContract.prototype.setFrozenDuration=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.FreezeBalanceContract.prototype.getResource=function(){return o.Message.getFieldWithDefault(this,10,0)},proto.protocol.FreezeBalanceContract.prototype.setResource=function(t){return o.Message.setProto3EnumField(this,10,t)},proto.protocol.FreezeBalanceContract.prototype.getReceiverAddress=function(){return o.Message.getFieldWithDefault(this,15,"")},proto.protocol.FreezeBalanceContract.prototype.getReceiverAddress_asB64=function(){return o.Message.bytesAsB64(this.getReceiverAddress())},proto.protocol.FreezeBalanceContract.prototype.getReceiverAddress_asU8=function(){return o.Message.bytesAsU8(this.getReceiverAddress())},proto.protocol.FreezeBalanceContract.prototype.setReceiverAddress=function(t){return o.Message.setProto3BytesField(this,15,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UnfreezeBalanceContract.prototype.toObject=function(t){return proto.protocol.UnfreezeBalanceContract.toObject(t,this)},proto.protocol.UnfreezeBalanceContract.toObject=function(t,r){var c={ownerAddress:r.getOwnerAddress_asB64(),resource:o.Message.getFieldWithDefault(r,10,0),receiverAddress:r.getReceiverAddress_asB64()};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.UnfreezeBalanceContract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.UnfreezeBalanceContract;return proto.protocol.UnfreezeBalanceContract.deserializeBinaryFromReader(c,r)},proto.protocol.UnfreezeBalanceContract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setOwnerAddress(c);break;case 10:c=r.readEnum(),t.setResource(c);break;case 15:c=r.readBytes(),t.setReceiverAddress(c);break;default:r.skipField()}return t},proto.protocol.UnfreezeBalanceContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.UnfreezeBalanceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.UnfreezeBalanceContract.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getOwnerAddress_asU8()).length>0&&r.writeBytes(1,c),(c=t.getResource())!==0&&r.writeEnum(10,c),(c=t.getReceiverAddress_asU8()).length>0&&r.writeBytes(15,c)},proto.protocol.UnfreezeBalanceContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UnfreezeBalanceContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UnfreezeBalanceContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UnfreezeBalanceContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.UnfreezeBalanceContract.prototype.getResource=function(){return o.Message.getFieldWithDefault(this,10,0)},proto.protocol.UnfreezeBalanceContract.prototype.setResource=function(t){return o.Message.setProto3EnumField(this,10,t)},proto.protocol.UnfreezeBalanceContract.prototype.getReceiverAddress=function(){return o.Message.getFieldWithDefault(this,15,"")},proto.protocol.UnfreezeBalanceContract.prototype.getReceiverAddress_asB64=function(){return o.Message.bytesAsB64(this.getReceiverAddress())},proto.protocol.UnfreezeBalanceContract.prototype.getReceiverAddress_asU8=function(){return o.Message.bytesAsU8(this.getReceiverAddress())},proto.protocol.UnfreezeBalanceContract.prototype.setReceiverAddress=function(t){return o.Message.setProto3BytesField(this,15,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.WithdrawBalanceContract.prototype.toObject=function(t){return proto.protocol.WithdrawBalanceContract.toObject(t,this)},proto.protocol.WithdrawBalanceContract.toObject=function(t,r){var c={ownerAddress:r.getOwnerAddress_asB64()};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.WithdrawBalanceContract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.WithdrawBalanceContract;return proto.protocol.WithdrawBalanceContract.deserializeBinaryFromReader(c,r)},proto.protocol.WithdrawBalanceContract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setOwnerAddress(c);break;default:r.skipField()}return t},proto.protocol.WithdrawBalanceContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.WithdrawBalanceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.WithdrawBalanceContract.serializeBinaryToWriter=function(t,r){var c;(c=t.getOwnerAddress_asU8()).length>0&&r.writeBytes(1,c)},proto.protocol.WithdrawBalanceContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.WithdrawBalanceContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.WithdrawBalanceContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.WithdrawBalanceContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.TransferContract.prototype.toObject=function(t){return proto.protocol.TransferContract.toObject(t,this)},proto.protocol.TransferContract.toObject=function(t,r){var c={ownerAddress:r.getOwnerAddress_asB64(),toAddress:r.getToAddress_asB64(),amount:o.Message.getFieldWithDefault(r,3,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.TransferContract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.TransferContract;return proto.protocol.TransferContract.deserializeBinaryFromReader(c,r)},proto.protocol.TransferContract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setOwnerAddress(c);break;case 2:c=r.readBytes(),t.setToAddress(c);break;case 3:c=r.readInt64(),t.setAmount(c);break;default:r.skipField()}return t},proto.protocol.TransferContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.TransferContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.TransferContract.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getOwnerAddress_asU8()).length>0&&r.writeBytes(1,c),(c=t.getToAddress_asU8()).length>0&&r.writeBytes(2,c),(c=t.getAmount())!==0&&r.writeInt64(3,c)},proto.protocol.TransferContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.TransferContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.TransferContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.TransferContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.TransferContract.prototype.getToAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.TransferContract.prototype.getToAddress_asB64=function(){return o.Message.bytesAsB64(this.getToAddress())},proto.protocol.TransferContract.prototype.getToAddress_asU8=function(){return o.Message.bytesAsU8(this.getToAddress())},proto.protocol.TransferContract.prototype.setToAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.TransferContract.prototype.getAmount=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.TransferContract.prototype.setAmount=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.TransactionBalanceTrace.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.TransactionBalanceTrace.prototype.toObject=function(t){return proto.protocol.TransactionBalanceTrace.toObject(t,this)},proto.protocol.TransactionBalanceTrace.toObject=function(t,r){var c={transactionIdentifier:r.getTransactionIdentifier_asB64(),operationList:o.Message.toObjectList(r.getOperationList(),proto.protocol.TransactionBalanceTrace.Operation.toObject,t),type:o.Message.getFieldWithDefault(r,3,""),status:o.Message.getFieldWithDefault(r,4,"")};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.TransactionBalanceTrace.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.TransactionBalanceTrace;return proto.protocol.TransactionBalanceTrace.deserializeBinaryFromReader(c,r)},proto.protocol.TransactionBalanceTrace.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setTransactionIdentifier(c);break;case 2:c=new proto.protocol.TransactionBalanceTrace.Operation,r.readMessage(c,proto.protocol.TransactionBalanceTrace.Operation.deserializeBinaryFromReader),t.addOperation(c);break;case 3:c=r.readString(),t.setType(c);break;case 4:c=r.readString(),t.setStatus(c);break;default:r.skipField()}return t},proto.protocol.TransactionBalanceTrace.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.TransactionBalanceTrace.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.TransactionBalanceTrace.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getTransactionIdentifier_asU8()).length>0&&r.writeBytes(1,c),(c=t.getOperationList()).length>0&&r.writeRepeatedMessage(2,c,proto.protocol.TransactionBalanceTrace.Operation.serializeBinaryToWriter),(c=t.getType()).length>0&&r.writeString(3,c),(c=t.getStatus()).length>0&&r.writeString(4,c)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.TransactionBalanceTrace.Operation.prototype.toObject=function(t){return proto.protocol.TransactionBalanceTrace.Operation.toObject(t,this)},proto.protocol.TransactionBalanceTrace.Operation.toObject=function(t,r){var c={operationIdentifier:o.Message.getFieldWithDefault(r,1,0),address:r.getAddress_asB64(),amount:o.Message.getFieldWithDefault(r,3,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.TransactionBalanceTrace.Operation.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.TransactionBalanceTrace.Operation;return proto.protocol.TransactionBalanceTrace.Operation.deserializeBinaryFromReader(c,r)},proto.protocol.TransactionBalanceTrace.Operation.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readInt64();t.setOperationIdentifier(c);break;case 2:c=r.readBytes(),t.setAddress(c);break;case 3:c=r.readInt64(),t.setAmount(c);break;default:r.skipField()}return t},proto.protocol.TransactionBalanceTrace.Operation.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.TransactionBalanceTrace.Operation.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.TransactionBalanceTrace.Operation.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getOperationIdentifier())!==0&&r.writeInt64(1,c),(c=t.getAddress_asU8()).length>0&&r.writeBytes(2,c),(c=t.getAmount())!==0&&r.writeInt64(3,c)},proto.protocol.TransactionBalanceTrace.Operation.prototype.getOperationIdentifier=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.TransactionBalanceTrace.Operation.prototype.setOperationIdentifier=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.TransactionBalanceTrace.Operation.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.TransactionBalanceTrace.Operation.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.TransactionBalanceTrace.Operation.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.TransactionBalanceTrace.Operation.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.TransactionBalanceTrace.Operation.prototype.getAmount=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.TransactionBalanceTrace.Operation.prototype.setAmount=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.TransactionBalanceTrace.prototype.getTransactionIdentifier=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.TransactionBalanceTrace.prototype.getTransactionIdentifier_asB64=function(){return o.Message.bytesAsB64(this.getTransactionIdentifier())},proto.protocol.TransactionBalanceTrace.prototype.getTransactionIdentifier_asU8=function(){return o.Message.bytesAsU8(this.getTransactionIdentifier())},proto.protocol.TransactionBalanceTrace.prototype.setTransactionIdentifier=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.TransactionBalanceTrace.prototype.getOperationList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.TransactionBalanceTrace.Operation,2)},proto.protocol.TransactionBalanceTrace.prototype.setOperationList=function(t){return o.Message.setRepeatedWrapperField(this,2,t)},proto.protocol.TransactionBalanceTrace.prototype.addOperation=function(t,r){return o.Message.addToRepeatedWrapperField(this,2,t,proto.protocol.TransactionBalanceTrace.Operation,r)},proto.protocol.TransactionBalanceTrace.prototype.clearOperationList=function(){return this.setOperationList([])},proto.protocol.TransactionBalanceTrace.prototype.getType=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.TransactionBalanceTrace.prototype.setType=function(t){return o.Message.setProto3StringField(this,3,t)},proto.protocol.TransactionBalanceTrace.prototype.getStatus=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.TransactionBalanceTrace.prototype.setStatus=function(t){return o.Message.setProto3StringField(this,4,t)},proto.protocol.BlockBalanceTrace.repeatedFields_=[3],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.BlockBalanceTrace.prototype.toObject=function(t){return proto.protocol.BlockBalanceTrace.toObject(t,this)},proto.protocol.BlockBalanceTrace.toObject=function(t,r){var c,z={blockIdentifier:(c=r.getBlockIdentifier())&&proto.protocol.BlockBalanceTrace.BlockIdentifier.toObject(t,c),timestamp:o.Message.getFieldWithDefault(r,2,0),transactionBalanceTraceList:o.Message.toObjectList(r.getTransactionBalanceTraceList(),proto.protocol.TransactionBalanceTrace.toObject,t)};return t&&(z.$jspbMessageInstance=r),z}),proto.protocol.BlockBalanceTrace.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.BlockBalanceTrace;return proto.protocol.BlockBalanceTrace.deserializeBinaryFromReader(c,r)},proto.protocol.BlockBalanceTrace.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=new proto.protocol.BlockBalanceTrace.BlockIdentifier;r.readMessage(c,proto.protocol.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader),t.setBlockIdentifier(c);break;case 2:c=r.readInt64(),t.setTimestamp(c);break;case 3:c=new proto.protocol.TransactionBalanceTrace,r.readMessage(c,proto.protocol.TransactionBalanceTrace.deserializeBinaryFromReader),t.addTransactionBalanceTrace(c);break;default:r.skipField()}return t},proto.protocol.BlockBalanceTrace.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.BlockBalanceTrace.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.BlockBalanceTrace.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getBlockIdentifier())!=null&&r.writeMessage(1,c,proto.protocol.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter),(c=t.getTimestamp())!==0&&r.writeInt64(2,c),(c=t.getTransactionBalanceTraceList()).length>0&&r.writeRepeatedMessage(3,c,proto.protocol.TransactionBalanceTrace.serializeBinaryToWriter)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.toObject=function(t){return proto.protocol.BlockBalanceTrace.BlockIdentifier.toObject(t,this)},proto.protocol.BlockBalanceTrace.BlockIdentifier.toObject=function(t,r){var c={hash:r.getHash_asB64(),number:o.Message.getFieldWithDefault(r,2,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.BlockBalanceTrace.BlockIdentifier.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.BlockBalanceTrace.BlockIdentifier;return proto.protocol.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader(c,r)},proto.protocol.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setHash(c);break;case 2:c=r.readInt64(),t.setNumber(c);break;default:r.skipField()}return t},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getHash_asU8()).length>0&&r.writeBytes(1,c),(c=t.getNumber())!==0&&r.writeInt64(2,c)},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.getHash=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.getHash_asB64=function(){return o.Message.bytesAsB64(this.getHash())},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.getHash_asU8=function(){return o.Message.bytesAsU8(this.getHash())},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.setHash=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.getNumber=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.setNumber=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.BlockBalanceTrace.prototype.getBlockIdentifier=function(){return o.Message.getWrapperField(this,proto.protocol.BlockBalanceTrace.BlockIdentifier,1)},proto.protocol.BlockBalanceTrace.prototype.setBlockIdentifier=function(t){return o.Message.setWrapperField(this,1,t)},proto.protocol.BlockBalanceTrace.prototype.clearBlockIdentifier=function(){return this.setBlockIdentifier(void 0)},proto.protocol.BlockBalanceTrace.prototype.hasBlockIdentifier=function(){return o.Message.getField(this,1)!=null},proto.protocol.BlockBalanceTrace.prototype.getTimestamp=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.BlockBalanceTrace.prototype.setTimestamp=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.BlockBalanceTrace.prototype.getTransactionBalanceTraceList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.TransactionBalanceTrace,3)},proto.protocol.BlockBalanceTrace.prototype.setTransactionBalanceTraceList=function(t){return o.Message.setRepeatedWrapperField(this,3,t)},proto.protocol.BlockBalanceTrace.prototype.addTransactionBalanceTrace=function(t,r){return o.Message.addToRepeatedWrapperField(this,3,t,proto.protocol.TransactionBalanceTrace,r)},proto.protocol.BlockBalanceTrace.prototype.clearTransactionBalanceTraceList=function(){return this.setTransactionBalanceTraceList([])},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountTrace.prototype.toObject=function(t){return proto.protocol.AccountTrace.toObject(t,this)},proto.protocol.AccountTrace.toObject=function(t,r){var c={balance:o.Message.getFieldWithDefault(r,1,0),placeholder:o.Message.getFieldWithDefault(r,99,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.AccountTrace.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.AccountTrace;return proto.protocol.AccountTrace.deserializeBinaryFromReader(c,r)},proto.protocol.AccountTrace.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readInt64();t.setBalance(c);break;case 99:c=r.readInt64(),t.setPlaceholder(c);break;default:r.skipField()}return t},proto.protocol.AccountTrace.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountTrace.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountTrace.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getBalance())!==0&&r.writeInt64(1,c),(c=t.getPlaceholder())!==0&&r.writeInt64(99,c)},proto.protocol.AccountTrace.prototype.getBalance=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.AccountTrace.prototype.setBalance=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.AccountTrace.prototype.getPlaceholder=function(){return o.Message.getFieldWithDefault(this,99,0)},proto.protocol.AccountTrace.prototype.setPlaceholder=function(t){return o.Message.setProto3IntField(this,99,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountIdentifier.prototype.toObject=function(t){return proto.protocol.AccountIdentifier.toObject(t,this)},proto.protocol.AccountIdentifier.toObject=function(t,r){var c={address:r.getAddress_asB64()};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.AccountIdentifier.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.AccountIdentifier;return proto.protocol.AccountIdentifier.deserializeBinaryFromReader(c,r)},proto.protocol.AccountIdentifier.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setAddress(c);break;default:r.skipField()}return t},proto.protocol.AccountIdentifier.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountIdentifier.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountIdentifier.serializeBinaryToWriter=function(t,r){var c;(c=t.getAddress_asU8()).length>0&&r.writeBytes(1,c)},proto.protocol.AccountIdentifier.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.AccountIdentifier.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.AccountIdentifier.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.AccountIdentifier.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountBalanceRequest.prototype.toObject=function(t){return proto.protocol.AccountBalanceRequest.toObject(t,this)},proto.protocol.AccountBalanceRequest.toObject=function(t,r){var c,z={accountIdentifier:(c=r.getAccountIdentifier())&&proto.protocol.AccountIdentifier.toObject(t,c),blockIdentifier:(c=r.getBlockIdentifier())&&proto.protocol.BlockBalanceTrace.BlockIdentifier.toObject(t,c)};return t&&(z.$jspbMessageInstance=r),z}),proto.protocol.AccountBalanceRequest.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.AccountBalanceRequest;return proto.protocol.AccountBalanceRequest.deserializeBinaryFromReader(c,r)},proto.protocol.AccountBalanceRequest.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=new proto.protocol.AccountIdentifier;r.readMessage(c,proto.protocol.AccountIdentifier.deserializeBinaryFromReader),t.setAccountIdentifier(c);break;case 2:c=new proto.protocol.BlockBalanceTrace.BlockIdentifier,r.readMessage(c,proto.protocol.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader),t.setBlockIdentifier(c);break;default:r.skipField()}return t},proto.protocol.AccountBalanceRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountBalanceRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountBalanceRequest.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getAccountIdentifier())!=null&&r.writeMessage(1,c,proto.protocol.AccountIdentifier.serializeBinaryToWriter),(c=t.getBlockIdentifier())!=null&&r.writeMessage(2,c,proto.protocol.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter)},proto.protocol.AccountBalanceRequest.prototype.getAccountIdentifier=function(){return o.Message.getWrapperField(this,proto.protocol.AccountIdentifier,1)},proto.protocol.AccountBalanceRequest.prototype.setAccountIdentifier=function(t){return o.Message.setWrapperField(this,1,t)},proto.protocol.AccountBalanceRequest.prototype.clearAccountIdentifier=function(){return this.setAccountIdentifier(void 0)},proto.protocol.AccountBalanceRequest.prototype.hasAccountIdentifier=function(){return o.Message.getField(this,1)!=null},proto.protocol.AccountBalanceRequest.prototype.getBlockIdentifier=function(){return o.Message.getWrapperField(this,proto.protocol.BlockBalanceTrace.BlockIdentifier,2)},proto.protocol.AccountBalanceRequest.prototype.setBlockIdentifier=function(t){return o.Message.setWrapperField(this,2,t)},proto.protocol.AccountBalanceRequest.prototype.clearBlockIdentifier=function(){return this.setBlockIdentifier(void 0)},proto.protocol.AccountBalanceRequest.prototype.hasBlockIdentifier=function(){return o.Message.getField(this,2)!=null},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountBalanceResponse.prototype.toObject=function(t){return proto.protocol.AccountBalanceResponse.toObject(t,this)},proto.protocol.AccountBalanceResponse.toObject=function(t,r){var c,z={balance:o.Message.getFieldWithDefault(r,1,0),blockIdentifier:(c=r.getBlockIdentifier())&&proto.protocol.BlockBalanceTrace.BlockIdentifier.toObject(t,c)};return t&&(z.$jspbMessageInstance=r),z}),proto.protocol.AccountBalanceResponse.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.AccountBalanceResponse;return proto.protocol.AccountBalanceResponse.deserializeBinaryFromReader(c,r)},proto.protocol.AccountBalanceResponse.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readInt64();t.setBalance(c);break;case 2:c=new proto.protocol.BlockBalanceTrace.BlockIdentifier,r.readMessage(c,proto.protocol.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader),t.setBlockIdentifier(c);break;default:r.skipField()}return t},proto.protocol.AccountBalanceResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountBalanceResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountBalanceResponse.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getBalance())!==0&&r.writeInt64(1,c),(c=t.getBlockIdentifier())!=null&&r.writeMessage(2,c,proto.protocol.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter)},proto.protocol.AccountBalanceResponse.prototype.getBalance=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.AccountBalanceResponse.prototype.setBalance=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.AccountBalanceResponse.prototype.getBlockIdentifier=function(){return o.Message.getWrapperField(this,proto.protocol.BlockBalanceTrace.BlockIdentifier,2)},proto.protocol.AccountBalanceResponse.prototype.setBlockIdentifier=function(t){return o.Message.setWrapperField(this,2,t)},proto.protocol.AccountBalanceResponse.prototype.clearBlockIdentifier=function(){return this.setBlockIdentifier(void 0)},proto.protocol.AccountBalanceResponse.prototype.hasBlockIdentifier=function(){return o.Message.getField(this,2)!=null},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.FreezeBalanceV2Contract.prototype.toObject=function(t){return proto.protocol.FreezeBalanceV2Contract.toObject(t,this)},proto.protocol.FreezeBalanceV2Contract.toObject=function(t,r){var c={ownerAddress:r.getOwnerAddress_asB64(),frozenBalance:o.Message.getFieldWithDefault(r,2,0),resource:o.Message.getFieldWithDefault(r,3,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.FreezeBalanceV2Contract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.FreezeBalanceV2Contract;return proto.protocol.FreezeBalanceV2Contract.deserializeBinaryFromReader(c,r)},proto.protocol.FreezeBalanceV2Contract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setOwnerAddress(c);break;case 2:c=r.readInt64(),t.setFrozenBalance(c);break;case 3:c=r.readEnum(),t.setResource(c);break;default:r.skipField()}return t},proto.protocol.FreezeBalanceV2Contract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.FreezeBalanceV2Contract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.FreezeBalanceV2Contract.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getOwnerAddress_asU8()).length>0&&r.writeBytes(1,c),(c=t.getFrozenBalance())!==0&&r.writeInt64(2,c),(c=t.getResource())!==0&&r.writeEnum(3,c)},proto.protocol.FreezeBalanceV2Contract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.FreezeBalanceV2Contract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.FreezeBalanceV2Contract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.FreezeBalanceV2Contract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.FreezeBalanceV2Contract.prototype.getFrozenBalance=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.FreezeBalanceV2Contract.prototype.setFrozenBalance=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.FreezeBalanceV2Contract.prototype.getResource=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.FreezeBalanceV2Contract.prototype.setResource=function(t){return o.Message.setProto3EnumField(this,3,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UnfreezeBalanceV2Contract.prototype.toObject=function(t){return proto.protocol.UnfreezeBalanceV2Contract.toObject(t,this)},proto.protocol.UnfreezeBalanceV2Contract.toObject=function(t,r){var c={ownerAddress:r.getOwnerAddress_asB64(),unfreezeBalance:o.Message.getFieldWithDefault(r,2,0),resource:o.Message.getFieldWithDefault(r,3,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.UnfreezeBalanceV2Contract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.UnfreezeBalanceV2Contract;return proto.protocol.UnfreezeBalanceV2Contract.deserializeBinaryFromReader(c,r)},proto.protocol.UnfreezeBalanceV2Contract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setOwnerAddress(c);break;case 2:c=r.readInt64(),t.setUnfreezeBalance(c);break;case 3:c=r.readEnum(),t.setResource(c);break;default:r.skipField()}return t},proto.protocol.UnfreezeBalanceV2Contract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.UnfreezeBalanceV2Contract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.UnfreezeBalanceV2Contract.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getOwnerAddress_asU8()).length>0&&r.writeBytes(1,c),(c=t.getUnfreezeBalance())!==0&&r.writeInt64(2,c),(c=t.getResource())!==0&&r.writeEnum(3,c)},proto.protocol.UnfreezeBalanceV2Contract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UnfreezeBalanceV2Contract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UnfreezeBalanceV2Contract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UnfreezeBalanceV2Contract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.UnfreezeBalanceV2Contract.prototype.getUnfreezeBalance=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.UnfreezeBalanceV2Contract.prototype.setUnfreezeBalance=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.UnfreezeBalanceV2Contract.prototype.getResource=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.UnfreezeBalanceV2Contract.prototype.setResource=function(t){return o.Message.setProto3EnumField(this,3,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.WithdrawExpireUnfreezeContract.prototype.toObject=function(t){return proto.protocol.WithdrawExpireUnfreezeContract.toObject(t,this)},proto.protocol.WithdrawExpireUnfreezeContract.toObject=function(t,r){var c={ownerAddress:r.getOwnerAddress_asB64()};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.WithdrawExpireUnfreezeContract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.WithdrawExpireUnfreezeContract;return proto.protocol.WithdrawExpireUnfreezeContract.deserializeBinaryFromReader(c,r)},proto.protocol.WithdrawExpireUnfreezeContract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setOwnerAddress(c);break;default:r.skipField()}return t},proto.protocol.WithdrawExpireUnfreezeContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.WithdrawExpireUnfreezeContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.WithdrawExpireUnfreezeContract.serializeBinaryToWriter=function(t,r){var c;(c=t.getOwnerAddress_asU8()).length>0&&r.writeBytes(1,c)},proto.protocol.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.WithdrawExpireUnfreezeContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.DelegateResourceContract.prototype.toObject=function(t){return proto.protocol.DelegateResourceContract.toObject(t,this)},proto.protocol.DelegateResourceContract.toObject=function(t,r){var c={ownerAddress:r.getOwnerAddress_asB64(),resource:o.Message.getFieldWithDefault(r,2,0),balance:o.Message.getFieldWithDefault(r,3,0),receiverAddress:r.getReceiverAddress_asB64(),lock:o.Message.getBooleanFieldWithDefault(r,5,!1)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.DelegateResourceContract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.DelegateResourceContract;return proto.protocol.DelegateResourceContract.deserializeBinaryFromReader(c,r)},proto.protocol.DelegateResourceContract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setOwnerAddress(c);break;case 2:c=r.readEnum(),t.setResource(c);break;case 3:c=r.readInt64(),t.setBalance(c);break;case 4:c=r.readBytes(),t.setReceiverAddress(c);break;case 5:c=r.readBool(),t.setLock(c);break;default:r.skipField()}return t},proto.protocol.DelegateResourceContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.DelegateResourceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.DelegateResourceContract.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getOwnerAddress_asU8()).length>0&&r.writeBytes(1,c),(c=t.getResource())!==0&&r.writeEnum(2,c),(c=t.getBalance())!==0&&r.writeInt64(3,c),(c=t.getReceiverAddress_asU8()).length>0&&r.writeBytes(4,c),(c=t.getLock())&&r.writeBool(5,c)},proto.protocol.DelegateResourceContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.DelegateResourceContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.DelegateResourceContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.DelegateResourceContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.DelegateResourceContract.prototype.getResource=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.DelegateResourceContract.prototype.setResource=function(t){return o.Message.setProto3EnumField(this,2,t)},proto.protocol.DelegateResourceContract.prototype.getBalance=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.DelegateResourceContract.prototype.setBalance=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.DelegateResourceContract.prototype.getReceiverAddress=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.DelegateResourceContract.prototype.getReceiverAddress_asB64=function(){return o.Message.bytesAsB64(this.getReceiverAddress())},proto.protocol.DelegateResourceContract.prototype.getReceiverAddress_asU8=function(){return o.Message.bytesAsU8(this.getReceiverAddress())},proto.protocol.DelegateResourceContract.prototype.setReceiverAddress=function(t){return o.Message.setProto3BytesField(this,4,t)},proto.protocol.DelegateResourceContract.prototype.getLock=function(){return o.Message.getBooleanFieldWithDefault(this,5,!1)},proto.protocol.DelegateResourceContract.prototype.setLock=function(t){return o.Message.setProto3BooleanField(this,5,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UnDelegateResourceContract.prototype.toObject=function(t){return proto.protocol.UnDelegateResourceContract.toObject(t,this)},proto.protocol.UnDelegateResourceContract.toObject=function(t,r){var c={ownerAddress:r.getOwnerAddress_asB64(),resource:o.Message.getFieldWithDefault(r,2,0),balance:o.Message.getFieldWithDefault(r,3,0),receiverAddress:r.getReceiverAddress_asB64()};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.UnDelegateResourceContract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.UnDelegateResourceContract;return proto.protocol.UnDelegateResourceContract.deserializeBinaryFromReader(c,r)},proto.protocol.UnDelegateResourceContract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setOwnerAddress(c);break;case 2:c=r.readEnum(),t.setResource(c);break;case 3:c=r.readInt64(),t.setBalance(c);break;case 4:c=r.readBytes(),t.setReceiverAddress(c);break;default:r.skipField()}return t},proto.protocol.UnDelegateResourceContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.UnDelegateResourceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.UnDelegateResourceContract.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getOwnerAddress_asU8()).length>0&&r.writeBytes(1,c),(c=t.getResource())!==0&&r.writeEnum(2,c),(c=t.getBalance())!==0&&r.writeInt64(3,c),(c=t.getReceiverAddress_asU8()).length>0&&r.writeBytes(4,c)},proto.protocol.UnDelegateResourceContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UnDelegateResourceContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UnDelegateResourceContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UnDelegateResourceContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.UnDelegateResourceContract.prototype.getResource=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.UnDelegateResourceContract.prototype.setResource=function(t){return o.Message.setProto3EnumField(this,2,t)},proto.protocol.UnDelegateResourceContract.prototype.getBalance=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.UnDelegateResourceContract.prototype.setBalance=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.UnDelegateResourceContract.prototype.getReceiverAddress=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.UnDelegateResourceContract.prototype.getReceiverAddress_asB64=function(){return o.Message.bytesAsB64(this.getReceiverAddress())},proto.protocol.UnDelegateResourceContract.prototype.getReceiverAddress_asU8=function(){return o.Message.bytesAsU8(this.getReceiverAddress())},proto.protocol.UnDelegateResourceContract.prototype.setReceiverAddress=function(t){return o.Message.setProto3BytesField(this,4,t)},h.object.extend(P,proto.protocol)},function(O,P,m){var o=m(8),h=o,f=function(){return this||window||f||self||Function("return this")()}.call(null);h.exportSymbol("proto.protocol.AssetIssueContract",null,f),h.exportSymbol("proto.protocol.AssetIssueContract.FrozenSupply",null,f),h.exportSymbol("proto.protocol.ParticipateAssetIssueContract",null,f),h.exportSymbol("proto.protocol.TransferAssetContract",null,f),h.exportSymbol("proto.protocol.UnfreezeAssetContract",null,f),h.exportSymbol("proto.protocol.UpdateAssetContract",null,f),proto.protocol.AssetIssueContract=function(a){o.Message.initialize(this,a,0,-1,proto.protocol.AssetIssueContract.repeatedFields_,null)},h.inherits(proto.protocol.AssetIssueContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.AssetIssueContract.displayName="proto.protocol.AssetIssueContract"),proto.protocol.AssetIssueContract.FrozenSupply=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.AssetIssueContract.FrozenSupply,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.AssetIssueContract.FrozenSupply.displayName="proto.protocol.AssetIssueContract.FrozenSupply"),proto.protocol.TransferAssetContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.TransferAssetContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.TransferAssetContract.displayName="proto.protocol.TransferAssetContract"),proto.protocol.UnfreezeAssetContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.UnfreezeAssetContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.UnfreezeAssetContract.displayName="proto.protocol.UnfreezeAssetContract"),proto.protocol.UpdateAssetContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.UpdateAssetContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.UpdateAssetContract.displayName="proto.protocol.UpdateAssetContract"),proto.protocol.ParticipateAssetIssueContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.ParticipateAssetIssueContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.ParticipateAssetIssueContract.displayName="proto.protocol.ParticipateAssetIssueContract"),proto.protocol.AssetIssueContract.repeatedFields_=[5],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AssetIssueContract.prototype.toObject=function(a){return proto.protocol.AssetIssueContract.toObject(a,this)},proto.protocol.AssetIssueContract.toObject=function(a,t){var r={id:o.Message.getFieldWithDefault(t,41,""),ownerAddress:t.getOwnerAddress_asB64(),name:t.getName_asB64(),abbr:t.getAbbr_asB64(),totalSupply:o.Message.getFieldWithDefault(t,4,0),frozenSupplyList:o.Message.toObjectList(t.getFrozenSupplyList(),proto.protocol.AssetIssueContract.FrozenSupply.toObject,a),trxNum:o.Message.getFieldWithDefault(t,6,0),precision:o.Message.getFieldWithDefault(t,7,0),num:o.Message.getFieldWithDefault(t,8,0),startTime:o.Message.getFieldWithDefault(t,9,0),endTime:o.Message.getFieldWithDefault(t,10,0),order:o.Message.getFieldWithDefault(t,11,0),voteScore:o.Message.getFieldWithDefault(t,16,0),description:t.getDescription_asB64(),url:t.getUrl_asB64(),freeAssetNetLimit:o.Message.getFieldWithDefault(t,22,0),publicFreeAssetNetLimit:o.Message.getFieldWithDefault(t,23,0),publicFreeAssetNetUsage:o.Message.getFieldWithDefault(t,24,0),publicLatestFreeNetTime:o.Message.getFieldWithDefault(t,25,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.AssetIssueContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.AssetIssueContract;return proto.protocol.AssetIssueContract.deserializeBinaryFromReader(r,t)},proto.protocol.AssetIssueContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 41:var r=t.readString();a.setId(r);break;case 1:r=t.readBytes(),a.setOwnerAddress(r);break;case 2:r=t.readBytes(),a.setName(r);break;case 3:r=t.readBytes(),a.setAbbr(r);break;case 4:r=t.readInt64(),a.setTotalSupply(r);break;case 5:r=new proto.protocol.AssetIssueContract.FrozenSupply,t.readMessage(r,proto.protocol.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader),a.addFrozenSupply(r);break;case 6:r=t.readInt32(),a.setTrxNum(r);break;case 7:r=t.readInt32(),a.setPrecision(r);break;case 8:r=t.readInt32(),a.setNum(r);break;case 9:r=t.readInt64(),a.setStartTime(r);break;case 10:r=t.readInt64(),a.setEndTime(r);break;case 11:r=t.readInt64(),a.setOrder(r);break;case 16:r=t.readInt32(),a.setVoteScore(r);break;case 20:r=t.readBytes(),a.setDescription(r);break;case 21:r=t.readBytes(),a.setUrl(r);break;case 22:r=t.readInt64(),a.setFreeAssetNetLimit(r);break;case 23:r=t.readInt64(),a.setPublicFreeAssetNetLimit(r);break;case 24:r=t.readInt64(),a.setPublicFreeAssetNetUsage(r);break;case 25:r=t.readInt64(),a.setPublicLatestFreeNetTime(r);break;default:t.skipField()}return a},proto.protocol.AssetIssueContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.AssetIssueContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.AssetIssueContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getId()).length>0&&t.writeString(41,r),(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getName_asU8()).length>0&&t.writeBytes(2,r),(r=a.getAbbr_asU8()).length>0&&t.writeBytes(3,r),(r=a.getTotalSupply())!==0&&t.writeInt64(4,r),(r=a.getFrozenSupplyList()).length>0&&t.writeRepeatedMessage(5,r,proto.protocol.AssetIssueContract.FrozenSupply.serializeBinaryToWriter),(r=a.getTrxNum())!==0&&t.writeInt32(6,r),(r=a.getPrecision())!==0&&t.writeInt32(7,r),(r=a.getNum())!==0&&t.writeInt32(8,r),(r=a.getStartTime())!==0&&t.writeInt64(9,r),(r=a.getEndTime())!==0&&t.writeInt64(10,r),(r=a.getOrder())!==0&&t.writeInt64(11,r),(r=a.getVoteScore())!==0&&t.writeInt32(16,r),(r=a.getDescription_asU8()).length>0&&t.writeBytes(20,r),(r=a.getUrl_asU8()).length>0&&t.writeBytes(21,r),(r=a.getFreeAssetNetLimit())!==0&&t.writeInt64(22,r),(r=a.getPublicFreeAssetNetLimit())!==0&&t.writeInt64(23,r),(r=a.getPublicFreeAssetNetUsage())!==0&&t.writeInt64(24,r),(r=a.getPublicLatestFreeNetTime())!==0&&t.writeInt64(25,r)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AssetIssueContract.FrozenSupply.prototype.toObject=function(a){return proto.protocol.AssetIssueContract.FrozenSupply.toObject(a,this)},proto.protocol.AssetIssueContract.FrozenSupply.toObject=function(a,t){var r={frozenAmount:o.Message.getFieldWithDefault(t,1,0),frozenDays:o.Message.getFieldWithDefault(t,2,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.AssetIssueContract.FrozenSupply.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.AssetIssueContract.FrozenSupply;return proto.protocol.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader(r,t)},proto.protocol.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt64();a.setFrozenAmount(r);break;case 2:r=t.readInt64(),a.setFrozenDays(r);break;default:t.skipField()}return a},proto.protocol.AssetIssueContract.FrozenSupply.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.AssetIssueContract.FrozenSupply.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.AssetIssueContract.FrozenSupply.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getFrozenAmount())!==0&&t.writeInt64(1,r),(r=a.getFrozenDays())!==0&&t.writeInt64(2,r)},proto.protocol.AssetIssueContract.FrozenSupply.prototype.getFrozenAmount=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.AssetIssueContract.FrozenSupply.prototype.setFrozenAmount=function(a){return o.Message.setProto3IntField(this,1,a)},proto.protocol.AssetIssueContract.FrozenSupply.prototype.getFrozenDays=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.AssetIssueContract.FrozenSupply.prototype.setFrozenDays=function(a){return o.Message.setProto3IntField(this,2,a)},proto.protocol.AssetIssueContract.prototype.getId=function(){return o.Message.getFieldWithDefault(this,41,"")},proto.protocol.AssetIssueContract.prototype.setId=function(a){return o.Message.setProto3StringField(this,41,a)},proto.protocol.AssetIssueContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.AssetIssueContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.AssetIssueContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.AssetIssueContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.AssetIssueContract.prototype.getName=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.AssetIssueContract.prototype.getName_asB64=function(){return o.Message.bytesAsB64(this.getName())},proto.protocol.AssetIssueContract.prototype.getName_asU8=function(){return o.Message.bytesAsU8(this.getName())},proto.protocol.AssetIssueContract.prototype.setName=function(a){return o.Message.setProto3BytesField(this,2,a)},proto.protocol.AssetIssueContract.prototype.getAbbr=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.AssetIssueContract.prototype.getAbbr_asB64=function(){return o.Message.bytesAsB64(this.getAbbr())},proto.protocol.AssetIssueContract.prototype.getAbbr_asU8=function(){return o.Message.bytesAsU8(this.getAbbr())},proto.protocol.AssetIssueContract.prototype.setAbbr=function(a){return o.Message.setProto3BytesField(this,3,a)},proto.protocol.AssetIssueContract.prototype.getTotalSupply=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.AssetIssueContract.prototype.setTotalSupply=function(a){return o.Message.setProto3IntField(this,4,a)},proto.protocol.AssetIssueContract.prototype.getFrozenSupplyList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.AssetIssueContract.FrozenSupply,5)},proto.protocol.AssetIssueContract.prototype.setFrozenSupplyList=function(a){return o.Message.setRepeatedWrapperField(this,5,a)},proto.protocol.AssetIssueContract.prototype.addFrozenSupply=function(a,t){return o.Message.addToRepeatedWrapperField(this,5,a,proto.protocol.AssetIssueContract.FrozenSupply,t)},proto.protocol.AssetIssueContract.prototype.clearFrozenSupplyList=function(){return this.setFrozenSupplyList([])},proto.protocol.AssetIssueContract.prototype.getTrxNum=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.AssetIssueContract.prototype.setTrxNum=function(a){return o.Message.setProto3IntField(this,6,a)},proto.protocol.AssetIssueContract.prototype.getPrecision=function(){return o.Message.getFieldWithDefault(this,7,0)},proto.protocol.AssetIssueContract.prototype.setPrecision=function(a){return o.Message.setProto3IntField(this,7,a)},proto.protocol.AssetIssueContract.prototype.getNum=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.AssetIssueContract.prototype.setNum=function(a){return o.Message.setProto3IntField(this,8,a)},proto.protocol.AssetIssueContract.prototype.getStartTime=function(){return o.Message.getFieldWithDefault(this,9,0)},proto.protocol.AssetIssueContract.prototype.setStartTime=function(a){return o.Message.setProto3IntField(this,9,a)},proto.protocol.AssetIssueContract.prototype.getEndTime=function(){return o.Message.getFieldWithDefault(this,10,0)},proto.protocol.AssetIssueContract.prototype.setEndTime=function(a){return o.Message.setProto3IntField(this,10,a)},proto.protocol.AssetIssueContract.prototype.getOrder=function(){return o.Message.getFieldWithDefault(this,11,0)},proto.protocol.AssetIssueContract.prototype.setOrder=function(a){return o.Message.setProto3IntField(this,11,a)},proto.protocol.AssetIssueContract.prototype.getVoteScore=function(){return o.Message.getFieldWithDefault(this,16,0)},proto.protocol.AssetIssueContract.prototype.setVoteScore=function(a){return o.Message.setProto3IntField(this,16,a)},proto.protocol.AssetIssueContract.prototype.getDescription=function(){return o.Message.getFieldWithDefault(this,20,"")},proto.protocol.AssetIssueContract.prototype.getDescription_asB64=function(){return o.Message.bytesAsB64(this.getDescription())},proto.protocol.AssetIssueContract.prototype.getDescription_asU8=function(){return o.Message.bytesAsU8(this.getDescription())},proto.protocol.AssetIssueContract.prototype.setDescription=function(a){return o.Message.setProto3BytesField(this,20,a)},proto.protocol.AssetIssueContract.prototype.getUrl=function(){return o.Message.getFieldWithDefault(this,21,"")},proto.protocol.AssetIssueContract.prototype.getUrl_asB64=function(){return o.Message.bytesAsB64(this.getUrl())},proto.protocol.AssetIssueContract.prototype.getUrl_asU8=function(){return o.Message.bytesAsU8(this.getUrl())},proto.protocol.AssetIssueContract.prototype.setUrl=function(a){return o.Message.setProto3BytesField(this,21,a)},proto.protocol.AssetIssueContract.prototype.getFreeAssetNetLimit=function(){return o.Message.getFieldWithDefault(this,22,0)},proto.protocol.AssetIssueContract.prototype.setFreeAssetNetLimit=function(a){return o.Message.setProto3IntField(this,22,a)},proto.protocol.AssetIssueContract.prototype.getPublicFreeAssetNetLimit=function(){return o.Message.getFieldWithDefault(this,23,0)},proto.protocol.AssetIssueContract.prototype.setPublicFreeAssetNetLimit=function(a){return o.Message.setProto3IntField(this,23,a)},proto.protocol.AssetIssueContract.prototype.getPublicFreeAssetNetUsage=function(){return o.Message.getFieldWithDefault(this,24,0)},proto.protocol.AssetIssueContract.prototype.setPublicFreeAssetNetUsage=function(a){return o.Message.setProto3IntField(this,24,a)},proto.protocol.AssetIssueContract.prototype.getPublicLatestFreeNetTime=function(){return o.Message.getFieldWithDefault(this,25,0)},proto.protocol.AssetIssueContract.prototype.setPublicLatestFreeNetTime=function(a){return o.Message.setProto3IntField(this,25,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.TransferAssetContract.prototype.toObject=function(a){return proto.protocol.TransferAssetContract.toObject(a,this)},proto.protocol.TransferAssetContract.toObject=function(a,t){var r={assetName:t.getAssetName_asB64(),ownerAddress:t.getOwnerAddress_asB64(),toAddress:t.getToAddress_asB64(),amount:o.Message.getFieldWithDefault(t,4,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.TransferAssetContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.TransferAssetContract;return proto.protocol.TransferAssetContract.deserializeBinaryFromReader(r,t)},proto.protocol.TransferAssetContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setAssetName(r);break;case 2:r=t.readBytes(),a.setOwnerAddress(r);break;case 3:r=t.readBytes(),a.setToAddress(r);break;case 4:r=t.readInt64(),a.setAmount(r);break;default:t.skipField()}return a},proto.protocol.TransferAssetContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.TransferAssetContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.TransferAssetContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getAssetName_asU8()).length>0&&t.writeBytes(1,r),(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(2,r),(r=a.getToAddress_asU8()).length>0&&t.writeBytes(3,r),(r=a.getAmount())!==0&&t.writeInt64(4,r)},proto.protocol.TransferAssetContract.prototype.getAssetName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.TransferAssetContract.prototype.getAssetName_asB64=function(){return o.Message.bytesAsB64(this.getAssetName())},proto.protocol.TransferAssetContract.prototype.getAssetName_asU8=function(){return o.Message.bytesAsU8(this.getAssetName())},proto.protocol.TransferAssetContract.prototype.setAssetName=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.TransferAssetContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.TransferAssetContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.TransferAssetContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.TransferAssetContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,2,a)},proto.protocol.TransferAssetContract.prototype.getToAddress=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.TransferAssetContract.prototype.getToAddress_asB64=function(){return o.Message.bytesAsB64(this.getToAddress())},proto.protocol.TransferAssetContract.prototype.getToAddress_asU8=function(){return o.Message.bytesAsU8(this.getToAddress())},proto.protocol.TransferAssetContract.prototype.setToAddress=function(a){return o.Message.setProto3BytesField(this,3,a)},proto.protocol.TransferAssetContract.prototype.getAmount=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.TransferAssetContract.prototype.setAmount=function(a){return o.Message.setProto3IntField(this,4,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UnfreezeAssetContract.prototype.toObject=function(a){return proto.protocol.UnfreezeAssetContract.toObject(a,this)},proto.protocol.UnfreezeAssetContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64()};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.UnfreezeAssetContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.UnfreezeAssetContract;return proto.protocol.UnfreezeAssetContract.deserializeBinaryFromReader(r,t)},proto.protocol.UnfreezeAssetContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;default:t.skipField()}return a},proto.protocol.UnfreezeAssetContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.UnfreezeAssetContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.UnfreezeAssetContract.serializeBinaryToWriter=function(a,t){var r;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r)},proto.protocol.UnfreezeAssetContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UnfreezeAssetContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UnfreezeAssetContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UnfreezeAssetContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UpdateAssetContract.prototype.toObject=function(a){return proto.protocol.UpdateAssetContract.toObject(a,this)},proto.protocol.UpdateAssetContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),description:t.getDescription_asB64(),url:t.getUrl_asB64(),newLimit:o.Message.getFieldWithDefault(t,4,0),newPublicLimit:o.Message.getFieldWithDefault(t,5,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.UpdateAssetContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.UpdateAssetContract;return proto.protocol.UpdateAssetContract.deserializeBinaryFromReader(r,t)},proto.protocol.UpdateAssetContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readBytes(),a.setDescription(r);break;case 3:r=t.readBytes(),a.setUrl(r);break;case 4:r=t.readInt64(),a.setNewLimit(r);break;case 5:r=t.readInt64(),a.setNewPublicLimit(r);break;default:t.skipField()}return a},proto.protocol.UpdateAssetContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.UpdateAssetContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.UpdateAssetContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getDescription_asU8()).length>0&&t.writeBytes(2,r),(r=a.getUrl_asU8()).length>0&&t.writeBytes(3,r),(r=a.getNewLimit())!==0&&t.writeInt64(4,r),(r=a.getNewPublicLimit())!==0&&t.writeInt64(5,r)},proto.protocol.UpdateAssetContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UpdateAssetContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UpdateAssetContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UpdateAssetContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.UpdateAssetContract.prototype.getDescription=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.UpdateAssetContract.prototype.getDescription_asB64=function(){return o.Message.bytesAsB64(this.getDescription())},proto.protocol.UpdateAssetContract.prototype.getDescription_asU8=function(){return o.Message.bytesAsU8(this.getDescription())},proto.protocol.UpdateAssetContract.prototype.setDescription=function(a){return o.Message.setProto3BytesField(this,2,a)},proto.protocol.UpdateAssetContract.prototype.getUrl=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.UpdateAssetContract.prototype.getUrl_asB64=function(){return o.Message.bytesAsB64(this.getUrl())},proto.protocol.UpdateAssetContract.prototype.getUrl_asU8=function(){return o.Message.bytesAsU8(this.getUrl())},proto.protocol.UpdateAssetContract.prototype.setUrl=function(a){return o.Message.setProto3BytesField(this,3,a)},proto.protocol.UpdateAssetContract.prototype.getNewLimit=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.UpdateAssetContract.prototype.setNewLimit=function(a){return o.Message.setProto3IntField(this,4,a)},proto.protocol.UpdateAssetContract.prototype.getNewPublicLimit=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.UpdateAssetContract.prototype.setNewPublicLimit=function(a){return o.Message.setProto3IntField(this,5,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ParticipateAssetIssueContract.prototype.toObject=function(a){return proto.protocol.ParticipateAssetIssueContract.toObject(a,this)},proto.protocol.ParticipateAssetIssueContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),toAddress:t.getToAddress_asB64(),assetName:t.getAssetName_asB64(),amount:o.Message.getFieldWithDefault(t,4,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.ParticipateAssetIssueContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.ParticipateAssetIssueContract;return proto.protocol.ParticipateAssetIssueContract.deserializeBinaryFromReader(r,t)},proto.protocol.ParticipateAssetIssueContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readBytes(),a.setToAddress(r);break;case 3:r=t.readBytes(),a.setAssetName(r);break;case 4:r=t.readInt64(),a.setAmount(r);break;default:t.skipField()}return a},proto.protocol.ParticipateAssetIssueContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.ParticipateAssetIssueContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.ParticipateAssetIssueContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getToAddress_asU8()).length>0&&t.writeBytes(2,r),(r=a.getAssetName_asU8()).length>0&&t.writeBytes(3,r),(r=a.getAmount())!==0&&t.writeInt64(4,r)},proto.protocol.ParticipateAssetIssueContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ParticipateAssetIssueContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ParticipateAssetIssueContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ParticipateAssetIssueContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.ParticipateAssetIssueContract.prototype.getToAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.ParticipateAssetIssueContract.prototype.getToAddress_asB64=function(){return o.Message.bytesAsB64(this.getToAddress())},proto.protocol.ParticipateAssetIssueContract.prototype.getToAddress_asU8=function(){return o.Message.bytesAsU8(this.getToAddress())},proto.protocol.ParticipateAssetIssueContract.prototype.setToAddress=function(a){return o.Message.setProto3BytesField(this,2,a)},proto.protocol.ParticipateAssetIssueContract.prototype.getAssetName=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.ParticipateAssetIssueContract.prototype.getAssetName_asB64=function(){return o.Message.bytesAsB64(this.getAssetName())},proto.protocol.ParticipateAssetIssueContract.prototype.getAssetName_asU8=function(){return o.Message.bytesAsU8(this.getAssetName())},proto.protocol.ParticipateAssetIssueContract.prototype.setAssetName=function(a){return o.Message.setProto3BytesField(this,3,a)},proto.protocol.ParticipateAssetIssueContract.prototype.getAmount=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.ParticipateAssetIssueContract.prototype.setAmount=function(a){return o.Message.setProto3IntField(this,4,a)},h.object.extend(P,proto.protocol)},function(O,P,m){var o=m(8),h=o,f=function(){return this||window||f||self||Function("return this")()}.call(null);h.exportSymbol("proto.protocol.ClearABIContract",null,f),h.exportSymbol("proto.protocol.CreateSmartContract",null,f),h.exportSymbol("proto.protocol.SmartContract",null,f),h.exportSymbol("proto.protocol.SmartContract.ABI",null,f),h.exportSymbol("proto.protocol.SmartContract.ABI.Entry",null,f),h.exportSymbol("proto.protocol.SmartContract.ABI.Entry.EntryType",null,f),h.exportSymbol("proto.protocol.SmartContract.ABI.Entry.Param",null,f),h.exportSymbol("proto.protocol.SmartContract.ABI.Entry.StateMutabilityType",null,f),h.exportSymbol("proto.protocol.SmartContractDataWrapper",null,f),h.exportSymbol("proto.protocol.TriggerSmartContract",null,f),h.exportSymbol("proto.protocol.UpdateEnergyLimitContract",null,f),h.exportSymbol("proto.protocol.UpdateSettingContract",null,f),proto.protocol.SmartContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.SmartContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.SmartContract.displayName="proto.protocol.SmartContract"),proto.protocol.SmartContract.ABI=function(a){o.Message.initialize(this,a,0,-1,proto.protocol.SmartContract.ABI.repeatedFields_,null)},h.inherits(proto.protocol.SmartContract.ABI,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.SmartContract.ABI.displayName="proto.protocol.SmartContract.ABI"),proto.protocol.SmartContract.ABI.Entry=function(a){o.Message.initialize(this,a,0,-1,proto.protocol.SmartContract.ABI.Entry.repeatedFields_,null)},h.inherits(proto.protocol.SmartContract.ABI.Entry,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.SmartContract.ABI.Entry.displayName="proto.protocol.SmartContract.ABI.Entry"),proto.protocol.SmartContract.ABI.Entry.Param=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.SmartContract.ABI.Entry.Param,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.SmartContract.ABI.Entry.Param.displayName="proto.protocol.SmartContract.ABI.Entry.Param"),proto.protocol.CreateSmartContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.CreateSmartContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.CreateSmartContract.displayName="proto.protocol.CreateSmartContract"),proto.protocol.TriggerSmartContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.TriggerSmartContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.TriggerSmartContract.displayName="proto.protocol.TriggerSmartContract"),proto.protocol.ClearABIContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.ClearABIContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.ClearABIContract.displayName="proto.protocol.ClearABIContract"),proto.protocol.UpdateSettingContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.UpdateSettingContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.UpdateSettingContract.displayName="proto.protocol.UpdateSettingContract"),proto.protocol.UpdateEnergyLimitContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.UpdateEnergyLimitContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.UpdateEnergyLimitContract.displayName="proto.protocol.UpdateEnergyLimitContract"),proto.protocol.SmartContractDataWrapper=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.SmartContractDataWrapper,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.SmartContractDataWrapper.displayName="proto.protocol.SmartContractDataWrapper"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SmartContract.prototype.toObject=function(a){return proto.protocol.SmartContract.toObject(a,this)},proto.protocol.SmartContract.toObject=function(a,t){var r,c={originAddress:t.getOriginAddress_asB64(),contractAddress:t.getContractAddress_asB64(),abi:(r=t.getAbi())&&proto.protocol.SmartContract.ABI.toObject(a,r),bytecode:t.getBytecode_asB64(),callValue:o.Message.getFieldWithDefault(t,5,0),consumeUserResourcePercent:o.Message.getFieldWithDefault(t,6,0),name:o.Message.getFieldWithDefault(t,7,""),originEnergyLimit:o.Message.getFieldWithDefault(t,8,0),codeHash:t.getCodeHash_asB64(),trxHash:t.getTrxHash_asB64()};return a&&(c.$jspbMessageInstance=t),c}),proto.protocol.SmartContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.SmartContract;return proto.protocol.SmartContract.deserializeBinaryFromReader(r,t)},proto.protocol.SmartContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOriginAddress(r);break;case 2:r=t.readBytes(),a.setContractAddress(r);break;case 3:r=new proto.protocol.SmartContract.ABI,t.readMessage(r,proto.protocol.SmartContract.ABI.deserializeBinaryFromReader),a.setAbi(r);break;case 4:r=t.readBytes(),a.setBytecode(r);break;case 5:r=t.readInt64(),a.setCallValue(r);break;case 6:r=t.readInt64(),a.setConsumeUserResourcePercent(r);break;case 7:r=t.readString(),a.setName(r);break;case 8:r=t.readInt64(),a.setOriginEnergyLimit(r);break;case 9:r=t.readBytes(),a.setCodeHash(r);break;case 10:r=t.readBytes(),a.setTrxHash(r);break;default:t.skipField()}return a},proto.protocol.SmartContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.SmartContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.SmartContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOriginAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getContractAddress_asU8()).length>0&&t.writeBytes(2,r),(r=a.getAbi())!=null&&t.writeMessage(3,r,proto.protocol.SmartContract.ABI.serializeBinaryToWriter),(r=a.getBytecode_asU8()).length>0&&t.writeBytes(4,r),(r=a.getCallValue())!==0&&t.writeInt64(5,r),(r=a.getConsumeUserResourcePercent())!==0&&t.writeInt64(6,r),(r=a.getName()).length>0&&t.writeString(7,r),(r=a.getOriginEnergyLimit())!==0&&t.writeInt64(8,r),(r=a.getCodeHash_asU8()).length>0&&t.writeBytes(9,r),(r=a.getTrxHash_asU8()).length>0&&t.writeBytes(10,r)},proto.protocol.SmartContract.ABI.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SmartContract.ABI.prototype.toObject=function(a){return proto.protocol.SmartContract.ABI.toObject(a,this)},proto.protocol.SmartContract.ABI.toObject=function(a,t){var r={entrysList:o.Message.toObjectList(t.getEntrysList(),proto.protocol.SmartContract.ABI.Entry.toObject,a)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.SmartContract.ABI.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.SmartContract.ABI;return proto.protocol.SmartContract.ABI.deserializeBinaryFromReader(r,t)},proto.protocol.SmartContract.ABI.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.protocol.SmartContract.ABI.Entry;t.readMessage(r,proto.protocol.SmartContract.ABI.Entry.deserializeBinaryFromReader),a.addEntrys(r);break;default:t.skipField()}return a},proto.protocol.SmartContract.ABI.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.SmartContract.ABI.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.SmartContract.ABI.serializeBinaryToWriter=function(a,t){var r;(r=a.getEntrysList()).length>0&&t.writeRepeatedMessage(1,r,proto.protocol.SmartContract.ABI.Entry.serializeBinaryToWriter)},proto.protocol.SmartContract.ABI.Entry.repeatedFields_=[4,5],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SmartContract.ABI.Entry.prototype.toObject=function(a){return proto.protocol.SmartContract.ABI.Entry.toObject(a,this)},proto.protocol.SmartContract.ABI.Entry.toObject=function(a,t){var r={anonymous:o.Message.getBooleanFieldWithDefault(t,1,!1),constant:o.Message.getBooleanFieldWithDefault(t,2,!1),name:o.Message.getFieldWithDefault(t,3,""),inputsList:o.Message.toObjectList(t.getInputsList(),proto.protocol.SmartContract.ABI.Entry.Param.toObject,a),outputsList:o.Message.toObjectList(t.getOutputsList(),proto.protocol.SmartContract.ABI.Entry.Param.toObject,a),type:o.Message.getFieldWithDefault(t,6,0),payable:o.Message.getBooleanFieldWithDefault(t,7,!1),statemutability:o.Message.getFieldWithDefault(t,8,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.SmartContract.ABI.Entry.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.SmartContract.ABI.Entry;return proto.protocol.SmartContract.ABI.Entry.deserializeBinaryFromReader(r,t)},proto.protocol.SmartContract.ABI.Entry.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBool();a.setAnonymous(r);break;case 2:r=t.readBool(),a.setConstant(r);break;case 3:r=t.readString(),a.setName(r);break;case 4:r=new proto.protocol.SmartContract.ABI.Entry.Param,t.readMessage(r,proto.protocol.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader),a.addInputs(r);break;case 5:r=new proto.protocol.SmartContract.ABI.Entry.Param,t.readMessage(r,proto.protocol.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader),a.addOutputs(r);break;case 6:r=t.readEnum(),a.setType(r);break;case 7:r=t.readBool(),a.setPayable(r);break;case 8:r=t.readEnum(),a.setStatemutability(r);break;default:t.skipField()}return a},proto.protocol.SmartContract.ABI.Entry.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.SmartContract.ABI.Entry.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.SmartContract.ABI.Entry.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getAnonymous())&&t.writeBool(1,r),(r=a.getConstant())&&t.writeBool(2,r),(r=a.getName()).length>0&&t.writeString(3,r),(r=a.getInputsList()).length>0&&t.writeRepeatedMessage(4,r,proto.protocol.SmartContract.ABI.Entry.Param.serializeBinaryToWriter),(r=a.getOutputsList()).length>0&&t.writeRepeatedMessage(5,r,proto.protocol.SmartContract.ABI.Entry.Param.serializeBinaryToWriter),(r=a.getType())!==0&&t.writeEnum(6,r),(r=a.getPayable())&&t.writeBool(7,r),(r=a.getStatemutability())!==0&&t.writeEnum(8,r)},proto.protocol.SmartContract.ABI.Entry.EntryType={UNKNOWNENTRYTYPE:0,CONSTRUCTOR:1,FUNCTION:2,EVENT:3,FALLBACK:4,RECEIVE:5,ERROR:6},proto.protocol.SmartContract.ABI.Entry.StateMutabilityType={UNKNOWNMUTABILITYTYPE:0,PURE:1,VIEW:2,NONPAYABLE:3,PAYABLE:4},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SmartContract.ABI.Entry.Param.prototype.toObject=function(a){return proto.protocol.SmartContract.ABI.Entry.Param.toObject(a,this)},proto.protocol.SmartContract.ABI.Entry.Param.toObject=function(a,t){var r={indexed:o.Message.getBooleanFieldWithDefault(t,1,!1),name:o.Message.getFieldWithDefault(t,2,""),type:o.Message.getFieldWithDefault(t,3,"")};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.SmartContract.ABI.Entry.Param.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.SmartContract.ABI.Entry.Param;return proto.protocol.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader(r,t)},proto.protocol.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBool();a.setIndexed(r);break;case 2:r=t.readString(),a.setName(r);break;case 3:r=t.readString(),a.setType(r);break;default:t.skipField()}return a},proto.protocol.SmartContract.ABI.Entry.Param.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.SmartContract.ABI.Entry.Param.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.SmartContract.ABI.Entry.Param.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getIndexed())&&t.writeBool(1,r),(r=a.getName()).length>0&&t.writeString(2,r),(r=a.getType()).length>0&&t.writeString(3,r)},proto.protocol.SmartContract.ABI.Entry.Param.prototype.getIndexed=function(){return o.Message.getBooleanFieldWithDefault(this,1,!1)},proto.protocol.SmartContract.ABI.Entry.Param.prototype.setIndexed=function(a){return o.Message.setProto3BooleanField(this,1,a)},proto.protocol.SmartContract.ABI.Entry.Param.prototype.getName=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.SmartContract.ABI.Entry.Param.prototype.setName=function(a){return o.Message.setProto3StringField(this,2,a)},proto.protocol.SmartContract.ABI.Entry.Param.prototype.getType=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.SmartContract.ABI.Entry.Param.prototype.setType=function(a){return o.Message.setProto3StringField(this,3,a)},proto.protocol.SmartContract.ABI.Entry.prototype.getAnonymous=function(){return o.Message.getBooleanFieldWithDefault(this,1,!1)},proto.protocol.SmartContract.ABI.Entry.prototype.setAnonymous=function(a){return o.Message.setProto3BooleanField(this,1,a)},proto.protocol.SmartContract.ABI.Entry.prototype.getConstant=function(){return o.Message.getBooleanFieldWithDefault(this,2,!1)},proto.protocol.SmartContract.ABI.Entry.prototype.setConstant=function(a){return o.Message.setProto3BooleanField(this,2,a)},proto.protocol.SmartContract.ABI.Entry.prototype.getName=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.SmartContract.ABI.Entry.prototype.setName=function(a){return o.Message.setProto3StringField(this,3,a)},proto.protocol.SmartContract.ABI.Entry.prototype.getInputsList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.SmartContract.ABI.Entry.Param,4)},proto.protocol.SmartContract.ABI.Entry.prototype.setInputsList=function(a){return o.Message.setRepeatedWrapperField(this,4,a)},proto.protocol.SmartContract.ABI.Entry.prototype.addInputs=function(a,t){return o.Message.addToRepeatedWrapperField(this,4,a,proto.protocol.SmartContract.ABI.Entry.Param,t)},proto.protocol.SmartContract.ABI.Entry.prototype.clearInputsList=function(){return this.setInputsList([])},proto.protocol.SmartContract.ABI.Entry.prototype.getOutputsList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.SmartContract.ABI.Entry.Param,5)},proto.protocol.SmartContract.ABI.Entry.prototype.setOutputsList=function(a){return o.Message.setRepeatedWrapperField(this,5,a)},proto.protocol.SmartContract.ABI.Entry.prototype.addOutputs=function(a,t){return o.Message.addToRepeatedWrapperField(this,5,a,proto.protocol.SmartContract.ABI.Entry.Param,t)},proto.protocol.SmartContract.ABI.Entry.prototype.clearOutputsList=function(){return this.setOutputsList([])},proto.protocol.SmartContract.ABI.Entry.prototype.getType=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.SmartContract.ABI.Entry.prototype.setType=function(a){return o.Message.setProto3EnumField(this,6,a)},proto.protocol.SmartContract.ABI.Entry.prototype.getPayable=function(){return o.Message.getBooleanFieldWithDefault(this,7,!1)},proto.protocol.SmartContract.ABI.Entry.prototype.setPayable=function(a){return o.Message.setProto3BooleanField(this,7,a)},proto.protocol.SmartContract.ABI.Entry.prototype.getStatemutability=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.SmartContract.ABI.Entry.prototype.setStatemutability=function(a){return o.Message.setProto3EnumField(this,8,a)},proto.protocol.SmartContract.ABI.prototype.getEntrysList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.SmartContract.ABI.Entry,1)},proto.protocol.SmartContract.ABI.prototype.setEntrysList=function(a){return o.Message.setRepeatedWrapperField(this,1,a)},proto.protocol.SmartContract.ABI.prototype.addEntrys=function(a,t){return o.Message.addToRepeatedWrapperField(this,1,a,proto.protocol.SmartContract.ABI.Entry,t)},proto.protocol.SmartContract.ABI.prototype.clearEntrysList=function(){return this.setEntrysList([])},proto.protocol.SmartContract.prototype.getOriginAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.SmartContract.prototype.getOriginAddress_asB64=function(){return o.Message.bytesAsB64(this.getOriginAddress())},proto.protocol.SmartContract.prototype.getOriginAddress_asU8=function(){return o.Message.bytesAsU8(this.getOriginAddress())},proto.protocol.SmartContract.prototype.setOriginAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.SmartContract.prototype.getContractAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.SmartContract.prototype.getContractAddress_asB64=function(){return o.Message.bytesAsB64(this.getContractAddress())},proto.protocol.SmartContract.prototype.getContractAddress_asU8=function(){return o.Message.bytesAsU8(this.getContractAddress())},proto.protocol.SmartContract.prototype.setContractAddress=function(a){return o.Message.setProto3BytesField(this,2,a)},proto.protocol.SmartContract.prototype.getAbi=function(){return o.Message.getWrapperField(this,proto.protocol.SmartContract.ABI,3)},proto.protocol.SmartContract.prototype.setAbi=function(a){return o.Message.setWrapperField(this,3,a)},proto.protocol.SmartContract.prototype.clearAbi=function(){return this.setAbi(void 0)},proto.protocol.SmartContract.prototype.hasAbi=function(){return o.Message.getField(this,3)!=null},proto.protocol.SmartContract.prototype.getBytecode=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.SmartContract.prototype.getBytecode_asB64=function(){return o.Message.bytesAsB64(this.getBytecode())},proto.protocol.SmartContract.prototype.getBytecode_asU8=function(){return o.Message.bytesAsU8(this.getBytecode())},proto.protocol.SmartContract.prototype.setBytecode=function(a){return o.Message.setProto3BytesField(this,4,a)},proto.protocol.SmartContract.prototype.getCallValue=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.SmartContract.prototype.setCallValue=function(a){return o.Message.setProto3IntField(this,5,a)},proto.protocol.SmartContract.prototype.getConsumeUserResourcePercent=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.SmartContract.prototype.setConsumeUserResourcePercent=function(a){return o.Message.setProto3IntField(this,6,a)},proto.protocol.SmartContract.prototype.getName=function(){return o.Message.getFieldWithDefault(this,7,"")},proto.protocol.SmartContract.prototype.setName=function(a){return o.Message.setProto3StringField(this,7,a)},proto.protocol.SmartContract.prototype.getOriginEnergyLimit=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.SmartContract.prototype.setOriginEnergyLimit=function(a){return o.Message.setProto3IntField(this,8,a)},proto.protocol.SmartContract.prototype.getCodeHash=function(){return o.Message.getFieldWithDefault(this,9,"")},proto.protocol.SmartContract.prototype.getCodeHash_asB64=function(){return o.Message.bytesAsB64(this.getCodeHash())},proto.protocol.SmartContract.prototype.getCodeHash_asU8=function(){return o.Message.bytesAsU8(this.getCodeHash())},proto.protocol.SmartContract.prototype.setCodeHash=function(a){return o.Message.setProto3BytesField(this,9,a)},proto.protocol.SmartContract.prototype.getTrxHash=function(){return o.Message.getFieldWithDefault(this,10,"")},proto.protocol.SmartContract.prototype.getTrxHash_asB64=function(){return o.Message.bytesAsB64(this.getTrxHash())},proto.protocol.SmartContract.prototype.getTrxHash_asU8=function(){return o.Message.bytesAsU8(this.getTrxHash())},proto.protocol.SmartContract.prototype.setTrxHash=function(a){return o.Message.setProto3BytesField(this,10,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.CreateSmartContract.prototype.toObject=function(a){return proto.protocol.CreateSmartContract.toObject(a,this)},proto.protocol.CreateSmartContract.toObject=function(a,t){var r,c={ownerAddress:t.getOwnerAddress_asB64(),newContract:(r=t.getNewContract())&&proto.protocol.SmartContract.toObject(a,r),callTokenValue:o.Message.getFieldWithDefault(t,3,0),tokenId:o.Message.getFieldWithDefault(t,4,0)};return a&&(c.$jspbMessageInstance=t),c}),proto.protocol.CreateSmartContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.CreateSmartContract;return proto.protocol.CreateSmartContract.deserializeBinaryFromReader(r,t)},proto.protocol.CreateSmartContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=new proto.protocol.SmartContract,t.readMessage(r,proto.protocol.SmartContract.deserializeBinaryFromReader),a.setNewContract(r);break;case 3:r=t.readInt64(),a.setCallTokenValue(r);break;case 4:r=t.readInt64(),a.setTokenId(r);break;default:t.skipField()}return a},proto.protocol.CreateSmartContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.CreateSmartContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.CreateSmartContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getNewContract())!=null&&t.writeMessage(2,r,proto.protocol.SmartContract.serializeBinaryToWriter),(r=a.getCallTokenValue())!==0&&t.writeInt64(3,r),(r=a.getTokenId())!==0&&t.writeInt64(4,r)},proto.protocol.CreateSmartContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.CreateSmartContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.CreateSmartContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.CreateSmartContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.CreateSmartContract.prototype.getNewContract=function(){return o.Message.getWrapperField(this,proto.protocol.SmartContract,2)},proto.protocol.CreateSmartContract.prototype.setNewContract=function(a){return o.Message.setWrapperField(this,2,a)},proto.protocol.CreateSmartContract.prototype.clearNewContract=function(){return this.setNewContract(void 0)},proto.protocol.CreateSmartContract.prototype.hasNewContract=function(){return o.Message.getField(this,2)!=null},proto.protocol.CreateSmartContract.prototype.getCallTokenValue=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.CreateSmartContract.prototype.setCallTokenValue=function(a){return o.Message.setProto3IntField(this,3,a)},proto.protocol.CreateSmartContract.prototype.getTokenId=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.CreateSmartContract.prototype.setTokenId=function(a){return o.Message.setProto3IntField(this,4,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.TriggerSmartContract.prototype.toObject=function(a){return proto.protocol.TriggerSmartContract.toObject(a,this)},proto.protocol.TriggerSmartContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),contractAddress:t.getContractAddress_asB64(),callValue:o.Message.getFieldWithDefault(t,3,0),data:t.getData_asB64(),callTokenValue:o.Message.getFieldWithDefault(t,5,0),tokenId:o.Message.getFieldWithDefault(t,6,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.TriggerSmartContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.TriggerSmartContract;return proto.protocol.TriggerSmartContract.deserializeBinaryFromReader(r,t)},proto.protocol.TriggerSmartContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readBytes(),a.setContractAddress(r);break;case 3:r=t.readInt64(),a.setCallValue(r);break;case 4:r=t.readBytes(),a.setData(r);break;case 5:r=t.readInt64(),a.setCallTokenValue(r);break;case 6:r=t.readInt64(),a.setTokenId(r);break;default:t.skipField()}return a},proto.protocol.TriggerSmartContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.TriggerSmartContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.TriggerSmartContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getContractAddress_asU8()).length>0&&t.writeBytes(2,r),(r=a.getCallValue())!==0&&t.writeInt64(3,r),(r=a.getData_asU8()).length>0&&t.writeBytes(4,r),(r=a.getCallTokenValue())!==0&&t.writeInt64(5,r),(r=a.getTokenId())!==0&&t.writeInt64(6,r)},proto.protocol.TriggerSmartContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.TriggerSmartContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.TriggerSmartContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.TriggerSmartContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.TriggerSmartContract.prototype.getContractAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.TriggerSmartContract.prototype.getContractAddress_asB64=function(){return o.Message.bytesAsB64(this.getContractAddress())},proto.protocol.TriggerSmartContract.prototype.getContractAddress_asU8=function(){return o.Message.bytesAsU8(this.getContractAddress())},proto.protocol.TriggerSmartContract.prototype.setContractAddress=function(a){return o.Message.setProto3BytesField(this,2,a)},proto.protocol.TriggerSmartContract.prototype.getCallValue=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.TriggerSmartContract.prototype.setCallValue=function(a){return o.Message.setProto3IntField(this,3,a)},proto.protocol.TriggerSmartContract.prototype.getData=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.TriggerSmartContract.prototype.getData_asB64=function(){return o.Message.bytesAsB64(this.getData())},proto.protocol.TriggerSmartContract.prototype.getData_asU8=function(){return o.Message.bytesAsU8(this.getData())},proto.protocol.TriggerSmartContract.prototype.setData=function(a){return o.Message.setProto3BytesField(this,4,a)},proto.protocol.TriggerSmartContract.prototype.getCallTokenValue=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.TriggerSmartContract.prototype.setCallTokenValue=function(a){return o.Message.setProto3IntField(this,5,a)},proto.protocol.TriggerSmartContract.prototype.getTokenId=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.TriggerSmartContract.prototype.setTokenId=function(a){return o.Message.setProto3IntField(this,6,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ClearABIContract.prototype.toObject=function(a){return proto.protocol.ClearABIContract.toObject(a,this)},proto.protocol.ClearABIContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),contractAddress:t.getContractAddress_asB64()};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.ClearABIContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.ClearABIContract;return proto.protocol.ClearABIContract.deserializeBinaryFromReader(r,t)},proto.protocol.ClearABIContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readBytes(),a.setContractAddress(r);break;default:t.skipField()}return a},proto.protocol.ClearABIContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.ClearABIContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.ClearABIContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getContractAddress_asU8()).length>0&&t.writeBytes(2,r)},proto.protocol.ClearABIContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ClearABIContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ClearABIContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ClearABIContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.ClearABIContract.prototype.getContractAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.ClearABIContract.prototype.getContractAddress_asB64=function(){return o.Message.bytesAsB64(this.getContractAddress())},proto.protocol.ClearABIContract.prototype.getContractAddress_asU8=function(){return o.Message.bytesAsU8(this.getContractAddress())},proto.protocol.ClearABIContract.prototype.setContractAddress=function(a){return o.Message.setProto3BytesField(this,2,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UpdateSettingContract.prototype.toObject=function(a){return proto.protocol.UpdateSettingContract.toObject(a,this)},proto.protocol.UpdateSettingContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),contractAddress:t.getContractAddress_asB64(),consumeUserResourcePercent:o.Message.getFieldWithDefault(t,3,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.UpdateSettingContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.UpdateSettingContract;return proto.protocol.UpdateSettingContract.deserializeBinaryFromReader(r,t)},proto.protocol.UpdateSettingContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readBytes(),a.setContractAddress(r);break;case 3:r=t.readInt64(),a.setConsumeUserResourcePercent(r);break;default:t.skipField()}return a},proto.protocol.UpdateSettingContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.UpdateSettingContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.UpdateSettingContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getContractAddress_asU8()).length>0&&t.writeBytes(2,r),(r=a.getConsumeUserResourcePercent())!==0&&t.writeInt64(3,r)},proto.protocol.UpdateSettingContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UpdateSettingContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UpdateSettingContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UpdateSettingContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.UpdateSettingContract.prototype.getContractAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.UpdateSettingContract.prototype.getContractAddress_asB64=function(){return o.Message.bytesAsB64(this.getContractAddress())},proto.protocol.UpdateSettingContract.prototype.getContractAddress_asU8=function(){return o.Message.bytesAsU8(this.getContractAddress())},proto.protocol.UpdateSettingContract.prototype.setContractAddress=function(a){return o.Message.setProto3BytesField(this,2,a)},proto.protocol.UpdateSettingContract.prototype.getConsumeUserResourcePercent=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.UpdateSettingContract.prototype.setConsumeUserResourcePercent=function(a){return o.Message.setProto3IntField(this,3,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UpdateEnergyLimitContract.prototype.toObject=function(a){return proto.protocol.UpdateEnergyLimitContract.toObject(a,this)},proto.protocol.UpdateEnergyLimitContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),contractAddress:t.getContractAddress_asB64(),originEnergyLimit:o.Message.getFieldWithDefault(t,3,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.UpdateEnergyLimitContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.UpdateEnergyLimitContract;return proto.protocol.UpdateEnergyLimitContract.deserializeBinaryFromReader(r,t)},proto.protocol.UpdateEnergyLimitContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readBytes(),a.setContractAddress(r);break;case 3:r=t.readInt64(),a.setOriginEnergyLimit(r);break;default:t.skipField()}return a},proto.protocol.UpdateEnergyLimitContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.UpdateEnergyLimitContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.UpdateEnergyLimitContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getContractAddress_asU8()).length>0&&t.writeBytes(2,r),(r=a.getOriginEnergyLimit())!==0&&t.writeInt64(3,r)},proto.protocol.UpdateEnergyLimitContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UpdateEnergyLimitContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UpdateEnergyLimitContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UpdateEnergyLimitContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.UpdateEnergyLimitContract.prototype.getContractAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.UpdateEnergyLimitContract.prototype.getContractAddress_asB64=function(){return o.Message.bytesAsB64(this.getContractAddress())},proto.protocol.UpdateEnergyLimitContract.prototype.getContractAddress_asU8=function(){return o.Message.bytesAsU8(this.getContractAddress())},proto.protocol.UpdateEnergyLimitContract.prototype.setContractAddress=function(a){return o.Message.setProto3BytesField(this,2,a)},proto.protocol.UpdateEnergyLimitContract.prototype.getOriginEnergyLimit=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.UpdateEnergyLimitContract.prototype.setOriginEnergyLimit=function(a){return o.Message.setProto3IntField(this,3,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SmartContractDataWrapper.prototype.toObject=function(a){return proto.protocol.SmartContractDataWrapper.toObject(a,this)},proto.protocol.SmartContractDataWrapper.toObject=function(a,t){var r,c={smartContract:(r=t.getSmartContract())&&proto.protocol.SmartContract.toObject(a,r),runtimecode:t.getRuntimecode_asB64()};return a&&(c.$jspbMessageInstance=t),c}),proto.protocol.SmartContractDataWrapper.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.SmartContractDataWrapper;return proto.protocol.SmartContractDataWrapper.deserializeBinaryFromReader(r,t)},proto.protocol.SmartContractDataWrapper.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.protocol.SmartContract;t.readMessage(r,proto.protocol.SmartContract.deserializeBinaryFromReader),a.setSmartContract(r);break;case 2:r=t.readBytes(),a.setRuntimecode(r);break;default:t.skipField()}return a},proto.protocol.SmartContractDataWrapper.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.SmartContractDataWrapper.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.SmartContractDataWrapper.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getSmartContract())!=null&&t.writeMessage(1,r,proto.protocol.SmartContract.serializeBinaryToWriter),(r=a.getRuntimecode_asU8()).length>0&&t.writeBytes(2,r)},proto.protocol.SmartContractDataWrapper.prototype.getSmartContract=function(){return o.Message.getWrapperField(this,proto.protocol.SmartContract,1)},proto.protocol.SmartContractDataWrapper.prototype.setSmartContract=function(a){return o.Message.setWrapperField(this,1,a)},proto.protocol.SmartContractDataWrapper.prototype.clearSmartContract=function(){return this.setSmartContract(void 0)},proto.protocol.SmartContractDataWrapper.prototype.hasSmartContract=function(){return o.Message.getField(this,1)!=null},proto.protocol.SmartContractDataWrapper.prototype.getRuntimecode=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.SmartContractDataWrapper.prototype.getRuntimecode_asB64=function(){return o.Message.bytesAsB64(this.getRuntimecode())},proto.protocol.SmartContractDataWrapper.prototype.getRuntimecode_asU8=function(){return o.Message.bytesAsU8(this.getRuntimecode())},proto.protocol.SmartContractDataWrapper.prototype.setRuntimecode=function(a){return o.Message.setProto3BytesField(this,2,a)},h.object.extend(P,proto.protocol)},function(O,P,m){var o=m(8),h=o,f=function(){return this||window||f||self||Function("return this")()}.call(null);h.exportSymbol("proto.protocol.VoteWitnessContract",null,f),h.exportSymbol("proto.protocol.VoteWitnessContract.Vote",null,f),h.exportSymbol("proto.protocol.WitnessCreateContract",null,f),h.exportSymbol("proto.protocol.WitnessUpdateContract",null,f),proto.protocol.WitnessCreateContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.WitnessCreateContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.WitnessCreateContract.displayName="proto.protocol.WitnessCreateContract"),proto.protocol.WitnessUpdateContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.WitnessUpdateContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.WitnessUpdateContract.displayName="proto.protocol.WitnessUpdateContract"),proto.protocol.VoteWitnessContract=function(a){o.Message.initialize(this,a,0,-1,proto.protocol.VoteWitnessContract.repeatedFields_,null)},h.inherits(proto.protocol.VoteWitnessContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.VoteWitnessContract.displayName="proto.protocol.VoteWitnessContract"),proto.protocol.VoteWitnessContract.Vote=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.VoteWitnessContract.Vote,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.VoteWitnessContract.Vote.displayName="proto.protocol.VoteWitnessContract.Vote"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.WitnessCreateContract.prototype.toObject=function(a){return proto.protocol.WitnessCreateContract.toObject(a,this)},proto.protocol.WitnessCreateContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),url:t.getUrl_asB64()};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.WitnessCreateContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.WitnessCreateContract;return proto.protocol.WitnessCreateContract.deserializeBinaryFromReader(r,t)},proto.protocol.WitnessCreateContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readBytes(),a.setUrl(r);break;default:t.skipField()}return a},proto.protocol.WitnessCreateContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.WitnessCreateContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.WitnessCreateContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getUrl_asU8()).length>0&&t.writeBytes(2,r)},proto.protocol.WitnessCreateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.WitnessCreateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.WitnessCreateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.WitnessCreateContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.WitnessCreateContract.prototype.getUrl=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.WitnessCreateContract.prototype.getUrl_asB64=function(){return o.Message.bytesAsB64(this.getUrl())},proto.protocol.WitnessCreateContract.prototype.getUrl_asU8=function(){return o.Message.bytesAsU8(this.getUrl())},proto.protocol.WitnessCreateContract.prototype.setUrl=function(a){return o.Message.setProto3BytesField(this,2,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.WitnessUpdateContract.prototype.toObject=function(a){return proto.protocol.WitnessUpdateContract.toObject(a,this)},proto.protocol.WitnessUpdateContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),updateUrl:t.getUpdateUrl_asB64()};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.WitnessUpdateContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.WitnessUpdateContract;return proto.protocol.WitnessUpdateContract.deserializeBinaryFromReader(r,t)},proto.protocol.WitnessUpdateContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 12:r=t.readBytes(),a.setUpdateUrl(r);break;default:t.skipField()}return a},proto.protocol.WitnessUpdateContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.WitnessUpdateContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.WitnessUpdateContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getUpdateUrl_asU8()).length>0&&t.writeBytes(12,r)},proto.protocol.WitnessUpdateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.WitnessUpdateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.WitnessUpdateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.WitnessUpdateContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.WitnessUpdateContract.prototype.getUpdateUrl=function(){return o.Message.getFieldWithDefault(this,12,"")},proto.protocol.WitnessUpdateContract.prototype.getUpdateUrl_asB64=function(){return o.Message.bytesAsB64(this.getUpdateUrl())},proto.protocol.WitnessUpdateContract.prototype.getUpdateUrl_asU8=function(){return o.Message.bytesAsU8(this.getUpdateUrl())},proto.protocol.WitnessUpdateContract.prototype.setUpdateUrl=function(a){return o.Message.setProto3BytesField(this,12,a)},proto.protocol.VoteWitnessContract.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.VoteWitnessContract.prototype.toObject=function(a){return proto.protocol.VoteWitnessContract.toObject(a,this)},proto.protocol.VoteWitnessContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),votesList:o.Message.toObjectList(t.getVotesList(),proto.protocol.VoteWitnessContract.Vote.toObject,a),support:o.Message.getBooleanFieldWithDefault(t,3,!1)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.VoteWitnessContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.VoteWitnessContract;return proto.protocol.VoteWitnessContract.deserializeBinaryFromReader(r,t)},proto.protocol.VoteWitnessContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=new proto.protocol.VoteWitnessContract.Vote,t.readMessage(r,proto.protocol.VoteWitnessContract.Vote.deserializeBinaryFromReader),a.addVotes(r);break;case 3:r=t.readBool(),a.setSupport(r);break;default:t.skipField()}return a},proto.protocol.VoteWitnessContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.VoteWitnessContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.VoteWitnessContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getVotesList()).length>0&&t.writeRepeatedMessage(2,r,proto.protocol.VoteWitnessContract.Vote.serializeBinaryToWriter),(r=a.getSupport())&&t.writeBool(3,r)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.VoteWitnessContract.Vote.prototype.toObject=function(a){return proto.protocol.VoteWitnessContract.Vote.toObject(a,this)},proto.protocol.VoteWitnessContract.Vote.toObject=function(a,t){var r={voteAddress:t.getVoteAddress_asB64(),voteCount:o.Message.getFieldWithDefault(t,2,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.VoteWitnessContract.Vote.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.VoteWitnessContract.Vote;return proto.protocol.VoteWitnessContract.Vote.deserializeBinaryFromReader(r,t)},proto.protocol.VoteWitnessContract.Vote.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setVoteAddress(r);break;case 2:r=t.readInt64(),a.setVoteCount(r);break;default:t.skipField()}return a},proto.protocol.VoteWitnessContract.Vote.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.VoteWitnessContract.Vote.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.VoteWitnessContract.Vote.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getVoteAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getVoteCount())!==0&&t.writeInt64(2,r)},proto.protocol.VoteWitnessContract.Vote.prototype.getVoteAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.VoteWitnessContract.Vote.prototype.getVoteAddress_asB64=function(){return o.Message.bytesAsB64(this.getVoteAddress())},proto.protocol.VoteWitnessContract.Vote.prototype.getVoteAddress_asU8=function(){return o.Message.bytesAsU8(this.getVoteAddress())},proto.protocol.VoteWitnessContract.Vote.prototype.setVoteAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.VoteWitnessContract.Vote.prototype.getVoteCount=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.VoteWitnessContract.Vote.prototype.setVoteCount=function(a){return o.Message.setProto3IntField(this,2,a)},proto.protocol.VoteWitnessContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.VoteWitnessContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.VoteWitnessContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.VoteWitnessContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.VoteWitnessContract.prototype.getVotesList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.VoteWitnessContract.Vote,2)},proto.protocol.VoteWitnessContract.prototype.setVotesList=function(a){return o.Message.setRepeatedWrapperField(this,2,a)},proto.protocol.VoteWitnessContract.prototype.addVotes=function(a,t){return o.Message.addToRepeatedWrapperField(this,2,a,proto.protocol.VoteWitnessContract.Vote,t)},proto.protocol.VoteWitnessContract.prototype.clearVotesList=function(){return this.setVotesList([])},proto.protocol.VoteWitnessContract.prototype.getSupport=function(){return o.Message.getBooleanFieldWithDefault(this,3,!1)},proto.protocol.VoteWitnessContract.prototype.setSupport=function(a){return o.Message.setProto3BooleanField(this,3,a)},h.object.extend(P,proto.protocol)},function(O,P,m){var o=m(8),h=o,f=function(){return this||window||f||self||Function("return this")()}.call(null);h.exportSymbol("proto.protocol.BuyStorageBytesContract",null,f),h.exportSymbol("proto.protocol.BuyStorageContract",null,f),h.exportSymbol("proto.protocol.SellStorageContract",null,f),h.exportSymbol("proto.protocol.UpdateBrokerageContract",null,f),proto.protocol.BuyStorageBytesContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.BuyStorageBytesContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.BuyStorageBytesContract.displayName="proto.protocol.BuyStorageBytesContract"),proto.protocol.BuyStorageContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.BuyStorageContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.BuyStorageContract.displayName="proto.protocol.BuyStorageContract"),proto.protocol.SellStorageContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.SellStorageContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.SellStorageContract.displayName="proto.protocol.SellStorageContract"),proto.protocol.UpdateBrokerageContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.UpdateBrokerageContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.UpdateBrokerageContract.displayName="proto.protocol.UpdateBrokerageContract"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.BuyStorageBytesContract.prototype.toObject=function(a){return proto.protocol.BuyStorageBytesContract.toObject(a,this)},proto.protocol.BuyStorageBytesContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),bytes:o.Message.getFieldWithDefault(t,2,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.BuyStorageBytesContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.BuyStorageBytesContract;return proto.protocol.BuyStorageBytesContract.deserializeBinaryFromReader(r,t)},proto.protocol.BuyStorageBytesContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readInt64(),a.setBytes(r);break;default:t.skipField()}return a},proto.protocol.BuyStorageBytesContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.BuyStorageBytesContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.BuyStorageBytesContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getBytes())!==0&&t.writeInt64(2,r)},proto.protocol.BuyStorageBytesContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.BuyStorageBytesContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.BuyStorageBytesContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.BuyStorageBytesContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.BuyStorageBytesContract.prototype.getBytes=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.BuyStorageBytesContract.prototype.setBytes=function(a){return o.Message.setProto3IntField(this,2,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.BuyStorageContract.prototype.toObject=function(a){return proto.protocol.BuyStorageContract.toObject(a,this)},proto.protocol.BuyStorageContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),quant:o.Message.getFieldWithDefault(t,2,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.BuyStorageContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.BuyStorageContract;return proto.protocol.BuyStorageContract.deserializeBinaryFromReader(r,t)},proto.protocol.BuyStorageContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readInt64(),a.setQuant(r);break;default:t.skipField()}return a},proto.protocol.BuyStorageContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.BuyStorageContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.BuyStorageContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getQuant())!==0&&t.writeInt64(2,r)},proto.protocol.BuyStorageContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.BuyStorageContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.BuyStorageContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.BuyStorageContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.BuyStorageContract.prototype.getQuant=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.BuyStorageContract.prototype.setQuant=function(a){return o.Message.setProto3IntField(this,2,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SellStorageContract.prototype.toObject=function(a){return proto.protocol.SellStorageContract.toObject(a,this)},proto.protocol.SellStorageContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),storageBytes:o.Message.getFieldWithDefault(t,2,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.SellStorageContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.SellStorageContract;return proto.protocol.SellStorageContract.deserializeBinaryFromReader(r,t)},proto.protocol.SellStorageContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readInt64(),a.setStorageBytes(r);break;default:t.skipField()}return a},proto.protocol.SellStorageContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.SellStorageContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.SellStorageContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getStorageBytes())!==0&&t.writeInt64(2,r)},proto.protocol.SellStorageContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.SellStorageContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.SellStorageContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.SellStorageContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.SellStorageContract.prototype.getStorageBytes=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.SellStorageContract.prototype.setStorageBytes=function(a){return o.Message.setProto3IntField(this,2,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UpdateBrokerageContract.prototype.toObject=function(a){return proto.protocol.UpdateBrokerageContract.toObject(a,this)},proto.protocol.UpdateBrokerageContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),brokerage:o.Message.getFieldWithDefault(t,2,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.UpdateBrokerageContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.UpdateBrokerageContract;return proto.protocol.UpdateBrokerageContract.deserializeBinaryFromReader(r,t)},proto.protocol.UpdateBrokerageContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readInt32(),a.setBrokerage(r);break;default:t.skipField()}return a},proto.protocol.UpdateBrokerageContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.UpdateBrokerageContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.UpdateBrokerageContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getBrokerage())!==0&&t.writeInt32(2,r)},proto.protocol.UpdateBrokerageContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UpdateBrokerageContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UpdateBrokerageContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UpdateBrokerageContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.UpdateBrokerageContract.prototype.getBrokerage=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.UpdateBrokerageContract.prototype.setBrokerage=function(a){return o.Message.setProto3IntField(this,2,a)},h.object.extend(P,proto.protocol)},function(O,P,m){var o=m(8),h=o,f=function(){return this||window||f||self||Function("return this")()}.call(null),a=m(20);h.object.extend(proto,a),h.exportSymbol("proto.protocol.AccountCreateContract",null,f),h.exportSymbol("proto.protocol.AccountPermissionUpdateContract",null,f),h.exportSymbol("proto.protocol.AccountUpdateContract",null,f),h.exportSymbol("proto.protocol.SetAccountIdContract",null,f),proto.protocol.AccountCreateContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.AccountCreateContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.AccountCreateContract.displayName="proto.protocol.AccountCreateContract"),proto.protocol.AccountUpdateContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.AccountUpdateContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.AccountUpdateContract.displayName="proto.protocol.AccountUpdateContract"),proto.protocol.SetAccountIdContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},h.inherits(proto.protocol.SetAccountIdContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.SetAccountIdContract.displayName="proto.protocol.SetAccountIdContract"),proto.protocol.AccountPermissionUpdateContract=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.AccountPermissionUpdateContract.repeatedFields_,null)},h.inherits(proto.protocol.AccountPermissionUpdateContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.AccountPermissionUpdateContract.displayName="proto.protocol.AccountPermissionUpdateContract"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountCreateContract.prototype.toObject=function(t){return proto.protocol.AccountCreateContract.toObject(t,this)},proto.protocol.AccountCreateContract.toObject=function(t,r){var c={ownerAddress:r.getOwnerAddress_asB64(),accountAddress:r.getAccountAddress_asB64(),type:o.Message.getFieldWithDefault(r,3,0)};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.AccountCreateContract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.AccountCreateContract;return proto.protocol.AccountCreateContract.deserializeBinaryFromReader(c,r)},proto.protocol.AccountCreateContract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setOwnerAddress(c);break;case 2:c=r.readBytes(),t.setAccountAddress(c);break;case 3:c=r.readEnum(),t.setType(c);break;default:r.skipField()}return t},proto.protocol.AccountCreateContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountCreateContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountCreateContract.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getOwnerAddress_asU8()).length>0&&r.writeBytes(1,c),(c=t.getAccountAddress_asU8()).length>0&&r.writeBytes(2,c),(c=t.getType())!==0&&r.writeEnum(3,c)},proto.protocol.AccountCreateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.AccountCreateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.AccountCreateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.AccountCreateContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.AccountCreateContract.prototype.getAccountAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.AccountCreateContract.prototype.getAccountAddress_asB64=function(){return o.Message.bytesAsB64(this.getAccountAddress())},proto.protocol.AccountCreateContract.prototype.getAccountAddress_asU8=function(){return o.Message.bytesAsU8(this.getAccountAddress())},proto.protocol.AccountCreateContract.prototype.setAccountAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.AccountCreateContract.prototype.getType=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.AccountCreateContract.prototype.setType=function(t){return o.Message.setProto3EnumField(this,3,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountUpdateContract.prototype.toObject=function(t){return proto.protocol.AccountUpdateContract.toObject(t,this)},proto.protocol.AccountUpdateContract.toObject=function(t,r){var c={accountName:r.getAccountName_asB64(),ownerAddress:r.getOwnerAddress_asB64()};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.AccountUpdateContract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.AccountUpdateContract;return proto.protocol.AccountUpdateContract.deserializeBinaryFromReader(c,r)},proto.protocol.AccountUpdateContract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setAccountName(c);break;case 2:c=r.readBytes(),t.setOwnerAddress(c);break;default:r.skipField()}return t},proto.protocol.AccountUpdateContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountUpdateContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountUpdateContract.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getAccountName_asU8()).length>0&&r.writeBytes(1,c),(c=t.getOwnerAddress_asU8()).length>0&&r.writeBytes(2,c)},proto.protocol.AccountUpdateContract.prototype.getAccountName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.AccountUpdateContract.prototype.getAccountName_asB64=function(){return o.Message.bytesAsB64(this.getAccountName())},proto.protocol.AccountUpdateContract.prototype.getAccountName_asU8=function(){return o.Message.bytesAsU8(this.getAccountName())},proto.protocol.AccountUpdateContract.prototype.setAccountName=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.AccountUpdateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.AccountUpdateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.AccountUpdateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.AccountUpdateContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SetAccountIdContract.prototype.toObject=function(t){return proto.protocol.SetAccountIdContract.toObject(t,this)},proto.protocol.SetAccountIdContract.toObject=function(t,r){var c={accountId:r.getAccountId_asB64(),ownerAddress:r.getOwnerAddress_asB64()};return t&&(c.$jspbMessageInstance=r),c}),proto.protocol.SetAccountIdContract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.SetAccountIdContract;return proto.protocol.SetAccountIdContract.deserializeBinaryFromReader(c,r)},proto.protocol.SetAccountIdContract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setAccountId(c);break;case 2:c=r.readBytes(),t.setOwnerAddress(c);break;default:r.skipField()}return t},proto.protocol.SetAccountIdContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.SetAccountIdContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.SetAccountIdContract.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getAccountId_asU8()).length>0&&r.writeBytes(1,c),(c=t.getOwnerAddress_asU8()).length>0&&r.writeBytes(2,c)},proto.protocol.SetAccountIdContract.prototype.getAccountId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.SetAccountIdContract.prototype.getAccountId_asB64=function(){return o.Message.bytesAsB64(this.getAccountId())},proto.protocol.SetAccountIdContract.prototype.getAccountId_asU8=function(){return o.Message.bytesAsU8(this.getAccountId())},proto.protocol.SetAccountIdContract.prototype.setAccountId=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.SetAccountIdContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.SetAccountIdContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.SetAccountIdContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.SetAccountIdContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.AccountPermissionUpdateContract.repeatedFields_=[4],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountPermissionUpdateContract.prototype.toObject=function(t){return proto.protocol.AccountPermissionUpdateContract.toObject(t,this)},proto.protocol.AccountPermissionUpdateContract.toObject=function(t,r){var c,z={ownerAddress:r.getOwnerAddress_asB64(),owner:(c=r.getOwner())&&a.Permission.toObject(t,c),witness:(c=r.getWitness())&&a.Permission.toObject(t,c),activesList:o.Message.toObjectList(r.getActivesList(),a.Permission.toObject,t)};return t&&(z.$jspbMessageInstance=r),z}),proto.protocol.AccountPermissionUpdateContract.deserializeBinary=function(t){var r=new o.BinaryReader(t),c=new proto.protocol.AccountPermissionUpdateContract;return proto.protocol.AccountPermissionUpdateContract.deserializeBinaryFromReader(c,r)},proto.protocol.AccountPermissionUpdateContract.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var c=r.readBytes();t.setOwnerAddress(c);break;case 2:c=new a.Permission,r.readMessage(c,a.Permission.deserializeBinaryFromReader),t.setOwner(c);break;case 3:c=new a.Permission,r.readMessage(c,a.Permission.deserializeBinaryFromReader),t.setWitness(c);break;case 4:c=new a.Permission,r.readMessage(c,a.Permission.deserializeBinaryFromReader),t.addActives(c);break;default:r.skipField()}return t},proto.protocol.AccountPermissionUpdateContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountPermissionUpdateContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountPermissionUpdateContract.serializeBinaryToWriter=function(t,r){var c=void 0;(c=t.getOwnerAddress_asU8()).length>0&&r.writeBytes(1,c),(c=t.getOwner())!=null&&r.writeMessage(2,c,a.Permission.serializeBinaryToWriter),(c=t.getWitness())!=null&&r.writeMessage(3,c,a.Permission.serializeBinaryToWriter),(c=t.getActivesList()).length>0&&r.writeRepeatedMessage(4,c,a.Permission.serializeBinaryToWriter)},proto.protocol.AccountPermissionUpdateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.AccountPermissionUpdateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.AccountPermissionUpdateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.AccountPermissionUpdateContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.AccountPermissionUpdateContract.prototype.getOwner=function(){return o.Message.getWrapperField(this,a.Permission,2)},proto.protocol.AccountPermissionUpdateContract.prototype.setOwner=function(t){return o.Message.setWrapperField(this,2,t)},proto.protocol.AccountPermissionUpdateContract.prototype.clearOwner=function(){return this.setOwner(void 0)},proto.protocol.AccountPermissionUpdateContract.prototype.hasOwner=function(){return o.Message.getField(this,2)!=null},proto.protocol.AccountPermissionUpdateContract.prototype.getWitness=function(){return o.Message.getWrapperField(this,a.Permission,3)},proto.protocol.AccountPermissionUpdateContract.prototype.setWitness=function(t){return o.Message.setWrapperField(this,3,t)},proto.protocol.AccountPermissionUpdateContract.prototype.clearWitness=function(){return this.setWitness(void 0)},proto.protocol.AccountPermissionUpdateContract.prototype.hasWitness=function(){return o.Message.getField(this,3)!=null},proto.protocol.AccountPermissionUpdateContract.prototype.getActivesList=function(){return o.Message.getRepeatedWrapperField(this,a.Permission,4)},proto.protocol.AccountPermissionUpdateContract.prototype.setActivesList=function(t){return o.Message.setRepeatedWrapperField(this,4,t)},proto.protocol.AccountPermissionUpdateContract.prototype.addActives=function(t,r){return o.Message.addToRepeatedWrapperField(this,4,t,proto.protocol.Permission,r)},proto.protocol.AccountPermissionUpdateContract.prototype.clearActivesList=function(){return this.setActivesList([])},h.object.extend(P,proto.protocol)},function(O,P,m){var o=m(8),h=o,f=function(){return this||window||f||self||Function("return this")()}.call(null);h.exportSymbol("proto.protocol.ProposalApproveContract",null,f),h.exportSymbol("proto.protocol.ProposalCreateContract",null,f),h.exportSymbol("proto.protocol.ProposalDeleteContract",null,f),proto.protocol.ProposalApproveContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.ProposalApproveContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.ProposalApproveContract.displayName="proto.protocol.ProposalApproveContract"),proto.protocol.ProposalCreateContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.ProposalCreateContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.ProposalCreateContract.displayName="proto.protocol.ProposalCreateContract"),proto.protocol.ProposalDeleteContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.ProposalDeleteContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.ProposalDeleteContract.displayName="proto.protocol.ProposalDeleteContract"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ProposalApproveContract.prototype.toObject=function(a){return proto.protocol.ProposalApproveContract.toObject(a,this)},proto.protocol.ProposalApproveContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),proposalId:o.Message.getFieldWithDefault(t,2,0),isAddApproval:o.Message.getBooleanFieldWithDefault(t,3,!1)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.ProposalApproveContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.ProposalApproveContract;return proto.protocol.ProposalApproveContract.deserializeBinaryFromReader(r,t)},proto.protocol.ProposalApproveContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readInt64(),a.setProposalId(r);break;case 3:r=t.readBool(),a.setIsAddApproval(r);break;default:t.skipField()}return a},proto.protocol.ProposalApproveContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.ProposalApproveContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.ProposalApproveContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getProposalId())!==0&&t.writeInt64(2,r),(r=a.getIsAddApproval())&&t.writeBool(3,r)},proto.protocol.ProposalApproveContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ProposalApproveContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ProposalApproveContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ProposalApproveContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.ProposalApproveContract.prototype.getProposalId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.ProposalApproveContract.prototype.setProposalId=function(a){return o.Message.setProto3IntField(this,2,a)},proto.protocol.ProposalApproveContract.prototype.getIsAddApproval=function(){return o.Message.getBooleanFieldWithDefault(this,3,!1)},proto.protocol.ProposalApproveContract.prototype.setIsAddApproval=function(a){return o.Message.setProto3BooleanField(this,3,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ProposalCreateContract.prototype.toObject=function(a){return proto.protocol.ProposalCreateContract.toObject(a,this)},proto.protocol.ProposalCreateContract.toObject=function(a,t){var r,c={ownerAddress:t.getOwnerAddress_asB64(),parametersMap:(r=t.getParametersMap())?r.toObject(a,void 0):[]};return a&&(c.$jspbMessageInstance=t),c}),proto.protocol.ProposalCreateContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.ProposalCreateContract;return proto.protocol.ProposalCreateContract.deserializeBinaryFromReader(r,t)},proto.protocol.ProposalCreateContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=a.getParametersMap(),t.readMessage(r,function(c,z){o.Map.deserializeBinary(c,z,o.BinaryReader.prototype.readInt64,o.BinaryReader.prototype.readInt64,null,0,0)});break;default:t.skipField()}return a},proto.protocol.ProposalCreateContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.ProposalCreateContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.ProposalCreateContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getParametersMap(!0))&&r.getLength()>0&&r.serializeBinary(2,t,o.BinaryWriter.prototype.writeInt64,o.BinaryWriter.prototype.writeInt64)},proto.protocol.ProposalCreateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ProposalCreateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ProposalCreateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ProposalCreateContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.ProposalCreateContract.prototype.getParametersMap=function(a){return o.Message.getMapField(this,2,a,null)},proto.protocol.ProposalCreateContract.prototype.clearParametersMap=function(){return this.getParametersMap().clear(),this},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ProposalDeleteContract.prototype.toObject=function(a){return proto.protocol.ProposalDeleteContract.toObject(a,this)},proto.protocol.ProposalDeleteContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),proposalId:o.Message.getFieldWithDefault(t,2,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.ProposalDeleteContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.ProposalDeleteContract;return proto.protocol.ProposalDeleteContract.deserializeBinaryFromReader(r,t)},proto.protocol.ProposalDeleteContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readInt64(),a.setProposalId(r);break;default:t.skipField()}return a},proto.protocol.ProposalDeleteContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.ProposalDeleteContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.ProposalDeleteContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getProposalId())!==0&&t.writeInt64(2,r)},proto.protocol.ProposalDeleteContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ProposalDeleteContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ProposalDeleteContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ProposalDeleteContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.ProposalDeleteContract.prototype.getProposalId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.ProposalDeleteContract.prototype.setProposalId=function(a){return o.Message.setProto3IntField(this,2,a)},h.object.extend(P,proto.protocol)},function(O,P,m){var o=m(8),h=o,f=function(){return this||window||f||self||Function("return this")()}.call(null);h.exportSymbol("proto.protocol.ExchangeCreateContract",null,f),h.exportSymbol("proto.protocol.ExchangeInjectContract",null,f),h.exportSymbol("proto.protocol.ExchangeTransactionContract",null,f),h.exportSymbol("proto.protocol.ExchangeWithdrawContract",null,f),proto.protocol.ExchangeCreateContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.ExchangeCreateContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.ExchangeCreateContract.displayName="proto.protocol.ExchangeCreateContract"),proto.protocol.ExchangeInjectContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.ExchangeInjectContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.ExchangeInjectContract.displayName="proto.protocol.ExchangeInjectContract"),proto.protocol.ExchangeWithdrawContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.ExchangeWithdrawContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.ExchangeWithdrawContract.displayName="proto.protocol.ExchangeWithdrawContract"),proto.protocol.ExchangeTransactionContract=function(a){o.Message.initialize(this,a,0,-1,null,null)},h.inherits(proto.protocol.ExchangeTransactionContract,o.Message),h.DEBUG&&!COMPILED&&(proto.protocol.ExchangeTransactionContract.displayName="proto.protocol.ExchangeTransactionContract"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ExchangeCreateContract.prototype.toObject=function(a){return proto.protocol.ExchangeCreateContract.toObject(a,this)},proto.protocol.ExchangeCreateContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),firstTokenId:t.getFirstTokenId_asB64(),firstTokenBalance:o.Message.getFieldWithDefault(t,3,0),secondTokenId:t.getSecondTokenId_asB64(),secondTokenBalance:o.Message.getFieldWithDefault(t,5,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.ExchangeCreateContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.ExchangeCreateContract;return proto.protocol.ExchangeCreateContract.deserializeBinaryFromReader(r,t)},proto.protocol.ExchangeCreateContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readBytes(),a.setFirstTokenId(r);break;case 3:r=t.readInt64(),a.setFirstTokenBalance(r);break;case 4:r=t.readBytes(),a.setSecondTokenId(r);break;case 5:r=t.readInt64(),a.setSecondTokenBalance(r);break;default:t.skipField()}return a},proto.protocol.ExchangeCreateContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.ExchangeCreateContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.ExchangeCreateContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getFirstTokenId_asU8()).length>0&&t.writeBytes(2,r),(r=a.getFirstTokenBalance())!==0&&t.writeInt64(3,r),(r=a.getSecondTokenId_asU8()).length>0&&t.writeBytes(4,r),(r=a.getSecondTokenBalance())!==0&&t.writeInt64(5,r)},proto.protocol.ExchangeCreateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ExchangeCreateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ExchangeCreateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ExchangeCreateContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.ExchangeCreateContract.prototype.getFirstTokenId=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.ExchangeCreateContract.prototype.getFirstTokenId_asB64=function(){return o.Message.bytesAsB64(this.getFirstTokenId())},proto.protocol.ExchangeCreateContract.prototype.getFirstTokenId_asU8=function(){return o.Message.bytesAsU8(this.getFirstTokenId())},proto.protocol.ExchangeCreateContract.prototype.setFirstTokenId=function(a){return o.Message.setProto3BytesField(this,2,a)},proto.protocol.ExchangeCreateContract.prototype.getFirstTokenBalance=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.ExchangeCreateContract.prototype.setFirstTokenBalance=function(a){return o.Message.setProto3IntField(this,3,a)},proto.protocol.ExchangeCreateContract.prototype.getSecondTokenId=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.ExchangeCreateContract.prototype.getSecondTokenId_asB64=function(){return o.Message.bytesAsB64(this.getSecondTokenId())},proto.protocol.ExchangeCreateContract.prototype.getSecondTokenId_asU8=function(){return o.Message.bytesAsU8(this.getSecondTokenId())},proto.protocol.ExchangeCreateContract.prototype.setSecondTokenId=function(a){return o.Message.setProto3BytesField(this,4,a)},proto.protocol.ExchangeCreateContract.prototype.getSecondTokenBalance=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.ExchangeCreateContract.prototype.setSecondTokenBalance=function(a){return o.Message.setProto3IntField(this,5,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ExchangeInjectContract.prototype.toObject=function(a){return proto.protocol.ExchangeInjectContract.toObject(a,this)},proto.protocol.ExchangeInjectContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),exchangeId:o.Message.getFieldWithDefault(t,2,0),tokenId:t.getTokenId_asB64(),quant:o.Message.getFieldWithDefault(t,4,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.ExchangeInjectContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.ExchangeInjectContract;return proto.protocol.ExchangeInjectContract.deserializeBinaryFromReader(r,t)},proto.protocol.ExchangeInjectContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readInt64(),a.setExchangeId(r);break;case 3:r=t.readBytes(),a.setTokenId(r);break;case 4:r=t.readInt64(),a.setQuant(r);break;default:t.skipField()}return a},proto.protocol.ExchangeInjectContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.ExchangeInjectContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.ExchangeInjectContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getExchangeId())!==0&&t.writeInt64(2,r),(r=a.getTokenId_asU8()).length>0&&t.writeBytes(3,r),(r=a.getQuant())!==0&&t.writeInt64(4,r)},proto.protocol.ExchangeInjectContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ExchangeInjectContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ExchangeInjectContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ExchangeInjectContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.ExchangeInjectContract.prototype.getExchangeId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.ExchangeInjectContract.prototype.setExchangeId=function(a){return o.Message.setProto3IntField(this,2,a)},proto.protocol.ExchangeInjectContract.prototype.getTokenId=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.ExchangeInjectContract.prototype.getTokenId_asB64=function(){return o.Message.bytesAsB64(this.getTokenId())},proto.protocol.ExchangeInjectContract.prototype.getTokenId_asU8=function(){return o.Message.bytesAsU8(this.getTokenId())},proto.protocol.ExchangeInjectContract.prototype.setTokenId=function(a){return o.Message.setProto3BytesField(this,3,a)},proto.protocol.ExchangeInjectContract.prototype.getQuant=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.ExchangeInjectContract.prototype.setQuant=function(a){return o.Message.setProto3IntField(this,4,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ExchangeWithdrawContract.prototype.toObject=function(a){return proto.protocol.ExchangeWithdrawContract.toObject(a,this)},proto.protocol.ExchangeWithdrawContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),exchangeId:o.Message.getFieldWithDefault(t,2,0),tokenId:t.getTokenId_asB64(),quant:o.Message.getFieldWithDefault(t,4,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.ExchangeWithdrawContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.ExchangeWithdrawContract;return proto.protocol.ExchangeWithdrawContract.deserializeBinaryFromReader(r,t)},proto.protocol.ExchangeWithdrawContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readInt64(),a.setExchangeId(r);break;case 3:r=t.readBytes(),a.setTokenId(r);break;case 4:r=t.readInt64(),a.setQuant(r);break;default:t.skipField()}return a},proto.protocol.ExchangeWithdrawContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.ExchangeWithdrawContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.ExchangeWithdrawContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getExchangeId())!==0&&t.writeInt64(2,r),(r=a.getTokenId_asU8()).length>0&&t.writeBytes(3,r),(r=a.getQuant())!==0&&t.writeInt64(4,r)},proto.protocol.ExchangeWithdrawContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ExchangeWithdrawContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ExchangeWithdrawContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ExchangeWithdrawContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.ExchangeWithdrawContract.prototype.getExchangeId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.ExchangeWithdrawContract.prototype.setExchangeId=function(a){return o.Message.setProto3IntField(this,2,a)},proto.protocol.ExchangeWithdrawContract.prototype.getTokenId=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.ExchangeWithdrawContract.prototype.getTokenId_asB64=function(){return o.Message.bytesAsB64(this.getTokenId())},proto.protocol.ExchangeWithdrawContract.prototype.getTokenId_asU8=function(){return o.Message.bytesAsU8(this.getTokenId())},proto.protocol.ExchangeWithdrawContract.prototype.setTokenId=function(a){return o.Message.setProto3BytesField(this,3,a)},proto.protocol.ExchangeWithdrawContract.prototype.getQuant=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.ExchangeWithdrawContract.prototype.setQuant=function(a){return o.Message.setProto3IntField(this,4,a)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ExchangeTransactionContract.prototype.toObject=function(a){return proto.protocol.ExchangeTransactionContract.toObject(a,this)},proto.protocol.ExchangeTransactionContract.toObject=function(a,t){var r={ownerAddress:t.getOwnerAddress_asB64(),exchangeId:o.Message.getFieldWithDefault(t,2,0),tokenId:t.getTokenId_asB64(),quant:o.Message.getFieldWithDefault(t,4,0),expected:o.Message.getFieldWithDefault(t,5,0)};return a&&(r.$jspbMessageInstance=t),r}),proto.protocol.ExchangeTransactionContract.deserializeBinary=function(a){var t=new o.BinaryReader(a),r=new proto.protocol.ExchangeTransactionContract;return proto.protocol.ExchangeTransactionContract.deserializeBinaryFromReader(r,t)},proto.protocol.ExchangeTransactionContract.deserializeBinaryFromReader=function(a,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();a.setOwnerAddress(r);break;case 2:r=t.readInt64(),a.setExchangeId(r);break;case 3:r=t.readBytes(),a.setTokenId(r);break;case 4:r=t.readInt64(),a.setQuant(r);break;case 5:r=t.readInt64(),a.setExpected(r);break;default:t.skipField()}return a},proto.protocol.ExchangeTransactionContract.prototype.serializeBinary=function(){var a=new o.BinaryWriter;return proto.protocol.ExchangeTransactionContract.serializeBinaryToWriter(this,a),a.getResultBuffer()},proto.protocol.ExchangeTransactionContract.serializeBinaryToWriter=function(a,t){var r=void 0;(r=a.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,r),(r=a.getExchangeId())!==0&&t.writeInt64(2,r),(r=a.getTokenId_asU8()).length>0&&t.writeBytes(3,r),(r=a.getQuant())!==0&&t.writeInt64(4,r),(r=a.getExpected())!==0&&t.writeInt64(5,r)},proto.protocol.ExchangeTransactionContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ExchangeTransactionContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ExchangeTransactionContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ExchangeTransactionContract.prototype.setOwnerAddress=function(a){return o.Message.setProto3BytesField(this,1,a)},proto.protocol.ExchangeTransactionContract.prototype.getExchangeId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.ExchangeTransactionContract.prototype.setExchangeId=function(a){return o.Message.setProto3IntField(this,2,a)},proto.protocol.ExchangeTransactionContract.prototype.getTokenId=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.ExchangeTransactionContract.prototype.getTokenId_asB64=function(){return o.Message.bytesAsB64(this.getTokenId())},proto.protocol.ExchangeTransactionContract.prototype.getTokenId_asU8=function(){return o.Message.bytesAsU8(this.getTokenId())},proto.protocol.ExchangeTransactionContract.prototype.setTokenId=function(a){return o.Message.setProto3BytesField(this,3,a)},proto.protocol.ExchangeTransactionContract.prototype.getQuant=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.ExchangeTransactionContract.prototype.setQuant=function(a){return o.Message.setProto3IntField(this,4,a)},proto.protocol.ExchangeTransactionContract.prototype.getExpected=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.ExchangeTransactionContract.prototype.setExpected=function(a){return o.Message.setProto3IntField(this,5,a)},h.object.extend(P,proto.protocol)},function(O,P,m){"use strict";m.r(P),m.d(P,"default",function(){return zt});var o={};m.r(o),m.d(o,"byte2hexStr",function(){return _e}),m.d(o,"bytesToString",function(){return ke}),m.d(o,"hextoString",function(){return dt}),m.d(o,"byteArray2hexStr",function(){return nt}),m.d(o,"base64DecodeFromString",function(){return vt}),m.d(o,"base64EncodeToString",function(){return Et});var h={};m.r(h),m.d(h,"bin2String",function(){return tr}),m.d(h,"arrayEquals",function(){return fr}),m.d(h,"stringToBytes",function(){return Lr}),m.d(h,"byte2hexStr",function(){return _e}),m.d(h,"bytesToString",function(){return ke}),m.d(h,"hextoString",function(){return dt}),m.d(h,"byteArray2hexStr",function(){return nt}),m.d(h,"base64DecodeFromString",function(){return vt}),m.d(h,"base64EncodeToString",function(){return Et}),m.d(h,"hexChar2byte",function(){return ur}),m.d(h,"isHexChar",function(){return rr}),m.d(h,"hexStr2byteArray",function(){return ae}),m.d(h,"strToDate",function(){return ve}),m.d(h,"isNumber",function(){return we}),m.d(h,"getStringType",function(){return Xe});var f={};m.r(f),m.d(f,"encode58",function(){return wt}),m.d(f,"decode58",function(){return St});var a={};m.r(a),m.d(a,"keccak256",function(){return Wt}),m.d(a,"sha256",function(){return ir}),m.d(a,"toUtf8Bytes",function(){return Ct}),m.d(a,"toUtf8String",function(){return xr}),m.d(a,"recoverAddress",function(){return lr}),m.d(a,"SigningKey",function(){return Te}),m.d(a,"AbiCoder",function(){return sr}),m.d(a,"Interface",function(){return zr}),m.d(a,"FormatTypes",function(){return ce}),m.d(a,"splitSignature",function(){return Qr}),m.d(a,"joinSignature",function(){return Bt}),m.d(a,"arrayify",function(){return It}),m.d(a,"ethersWallet",function(){return Vt.Wallet}),m.d(a,"concat",function(){return Xt}),m.d(a,"id",function(){return dr}),m.d(a,"isValidMnemonic",function(){return je});var t={};m.r(t),m.d(t,"getBase58CheckAddress",function(){return He}),m.d(t,"decodeBase58Address",function(){return D}),m.d(t,"signTransaction",function(){return be}),m.d(t,"arrayToBase64String",function(){return Fe}),m.d(t,"signBytes",function(){return Ge}),m.d(t,"_signTypedData",function(){return ze}),m.d(t,"getRowBytesFromTransactionBase64",function(){return $}),m.d(t,"genPriKey",function(){return ot}),m.d(t,"computeAddress",function(){return pt}),m.d(t,"getAddressFromPriKey",function(){return lt}),m.d(t,"decode58Check",function(){return it}),m.d(t,"isAddressValid",function(){return Er}),m.d(t,"getBase58CheckAddressFromPriKeyBase64String",function(){return qt}),m.d(t,"getHexStrAddressFromPriKeyBase64String",function(){return s}),m.d(t,"getAddressFromPriKeyBase64String",function(){return l}),m.d(t,"getPubKeyFromPriKey",function(){return y}),m.d(t,"ECKeySign",function(){return N}),m.d(t,"SHA256",function(){return ie}),m.d(t,"passwordToAddress",function(){return Pe}),m.d(t,"pkToAddress",function(){return De});var r={};m.r(r),m.d(r,"generateAccount",function(){return bt}),m.d(r,"generateRandom",function(){return Rt}),m.d(r,"generateAccountWithMnemonic",function(){return ao});var c={};m.r(c),m.d(c,"decodeParams",function(){return ds}),m.d(c,"encodeParams",function(){return fs}),m.d(c,"encodeParamsV2ByABI",function(){return Do}),m.d(c,"decodeParamsV2ByABI",function(){return Vr});var z={};m.r(z),m.d(z,"TRON_MESSAGE_PREFIX",function(){return kr}),m.d(z,"hashMessage",function(){return So}),m.d(z,"signMessage",function(){return Ei}),m.d(z,"verifyMessage",function(){return Xo});var K={};m.r(K),m.d(K,"txJsonToPb",function(){return Tn}),m.d(K,"txPbToTxID",function(){return Ni}),m.d(K,"txJsonToPbWithArgs",function(){return qn}),m.d(K,"txCheckWithArgs",function(){return sn}),m.d(K,"txCheck",function(){return In});var L=m(1),F=m.n(L),fe=m(9),re=m.n(fe),X=m(2),j=m.n(X),J=m(3),oe=m.n(J),Ce=m(15),se=m.n(Ce),ne=m(22),xe=m.n(ne),Ue=m(23),ct=m.n(Ue),ft=m(19),Je=m.n(ft),Ot=m(4),Tt=m.n(Ot),Ft=m(0),Ne=m.n(Ft),Ee=m(24),Oe=m.n(Ee);function Ke(){var B=this;this._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.encode=function(I){for(var _,S,te,w,v,b,A,T="",W=0;W<I.length;)w=(_=I.charCodeAt(W++))>>2,v=(3&_)<<4|(S=I.charCodeAt(W++))>>4,b=(15&S)<<2|(te=I.charCodeAt(W++))>>6,A=63&te,isNaN(S)?b=A=64:isNaN(te)&&(A=64),T=T+B._keyStr.charAt(w)+B._keyStr.charAt(v)+B._keyStr.charAt(b)+B._keyStr.charAt(A);return T},this.encodeIgnoreUtf8=function(I){for(var _,S,te,w,v,b,A,T="",W=0;W<I.length;)w=(_=I[W++])>>2,v=(3&_)<<4|(S=I[W++])>>4,b=(15&S)<<2|(te=I[W++])>>6,A=63&te,isNaN(S)?b=A=64:isNaN(te)&&(A=64),T=T+B._keyStr.charAt(w)+B._keyStr.charAt(v)+B._keyStr.charAt(b)+B._keyStr.charAt(A);return T},this.decode=function(I){var _,S,te,w,v,b,A="",T=0;for(I=I.replace(/[^A-Za-z0-9\+\/\=]/g,"");T<I.length;)_=B._keyStr.indexOf(I.charAt(T++))<<2|(w=B._keyStr.indexOf(I.charAt(T++)))>>4,S=(15&w)<<4|(v=B._keyStr.indexOf(I.charAt(T++)))>>2,te=(3&v)<<6|(b=B._keyStr.indexOf(I.charAt(T++))),A+=String.fromCharCode(_),v!=64&&(A+=String.fromCharCode(S)),b!=64&&(A+=String.fromCharCode(te));return B._utf8_decode(A)},this.decodeToByteArray=function(I){var _,S,te,w,v,b,A="",T=0;for(I=I.replace(/[^A-Za-z0-9\+\/\=]/g,"");T<I.length;)_=B._keyStr.indexOf(I.charAt(T++))<<2|(w=B._keyStr.indexOf(I.charAt(T++)))>>4,S=(15&w)<<4|(v=B._keyStr.indexOf(I.charAt(T++)))>>2,te=(3&v)<<6|(b=B._keyStr.indexOf(I.charAt(T++))),A+=String.fromCharCode(_),v!=64&&(A+=String.fromCharCode(S)),b!=64&&(A+=String.fromCharCode(te));return B._out2ByteArray(A)},this._out2ByteArray=function(I){for(var _=new Array(I.length),S=0,te=0;S<I.length;)te=I.charCodeAt(S),_[S]=te,S++;return _},this._utf8_encode=function(I){I=I.replace(/\r\n/g,`
|