PageSourceSearch

https://www.amped.finance/_next/static/chunks/dac86449.b214b5a8d828e7d0.js

js amped.finance collected 2026-10-05 02:13:23 UTC 1,422,430 bytes, 2,053 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cfc5f904-153a-4624-9edc-e5887d7aa623",e._sentryDebugIdIdentifier="sentry-dbid-cfc5f904-153a-4624-9edc-e5887d7aa623")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4976],{3108:(e,t,r)=>{r.d(t,{$z:()=>eQ,Al:()=>PC,Bs:()=>eZ,By:()=>ef,Dk:()=>ay,E5:()=>da,EW:()=>PI,EY:()=>c2,H2:()=>em,IF:()=>ez,J3:()=>b2,JQ:()=>kQ,M:()=>b6,Nn:()=>PT,Nv:()=>PP,OL:()=>PA,OQ:()=>eK,Pq:()=>c7,Qt:()=>PR,Tp:()=>ej,UR:()=>eh,VZ:()=>Pv,WH:()=>eH,XP:()=>eW,Xw:()=>k7,Y4:()=>c6,Yi:()=>k1,ZD:()=>b5,ZH:()=>ah,ad:()=>PF,cM:()=>b3,e4:()=>PS,fL:()=>cQ,fd:()=>eq,h0:()=>c8,hA:()=>eV,it:()=>PU,kC:()=>PB,ml:()=>PN,nU:()=>ak,tX:()=>kX,t_:()=>eJ,uW:()=>PE});var a,n,i,o,s,l,c,d,p,u,m,h,g,f,b,y,k,x,w,v,T,E,B,C,U=r(20626),I=r(45847),N=r(17108),R=r(77184),S=r(80540),A=r(8935),P=r(87177),D=r(45050),L=r(24070),O=r(87358),F=r(81029).Buffer,_=(0,L.P$)({"../../node_modules/.pnpm/[email protected]/node_modules/store2/dist/store2.js"(e,t){var r,a,n;r=e&&e.define,(n=(a={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(e,t){for(var r in e)t.hasOwnProperty(r)||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t},stringify:function(e,t){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e,t||a.replace)},parse:function(e,t){try{return JSON.parse(e,t||a.revive)}catch(t){return e}},fn:function(e,t){for(var r in a.storeAPI[e]=t,a.apis)a.apis[r][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,r){e.setItem(t,r)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,r){var n=a.inherit(a.storeAPI,function(e,t,r){return 0==arguments.length?n.getAll():"function"==typeof t?n.transact(e,t,r):void 0!==t?n.set(e,t,r):"string"==typeof e||"number"==typeof e?n.get(e):"function"==typeof e?n.each(e):e?n.setAll(e,t):n.clear()});n._id=e;try{var i="__store2_test";t.setItem(i,"ok"),n._area=t,t.removeItem(i)}catch(e){n._area=a.storage("fake")}return n._ns=r||"",a.areas[e]||(a.areas[e]=n._area),a.apis[n._ns+n._id]||(a.apis[n._ns+n._id]=n),n},storeAPI:{area:function(e,t){var r=this[e];return r&&r.area||(r=a.Store(e,t,this._ns),this[e]||(this[e]=r)),r},namespace:function(e,t,r){if(r=r||this._delim||a.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-r.length):"";var n=this[e];if((!n||!n.namespace)&&((n=a.Store(this._id,this._area,this._ns+e+r))._delim=r,this[e]||(this[e]=n),!t))for(var i in a.areas)n.area(i,a.areas[i]);return n},isFake:function(e){return e?(this._real=this._area,this._area=a.storage("fake")):!1===e&&(this._area=this._real||this._area),"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(e){return this._area.has?this._area.has(this._in(e)):this._in(e)in this._area},size:function(){return this.keys().length},each:function(e,t){for(var r=0,n=a.length(this._area);r<n;r++){var i=this._out(a.key(this._area,r));if(void 0!==i&&!1===e.call(this,i,this.get(i),t))break;n>a.length(this._area)&&(n--,r--)}return t||this},keys:function(e){return this.each(function(e,t,r){r.push(e)},e||[])},get:function(e,t){var r,n=a.get(this._area,this._in(e));return"function"==typeof t&&(r=t,t=null),null!==n?a.parse(n,r):null!=t?t:n},getAll:function(e){return this.each(function(e,t,r){r[e]=t},e||{})},transact:function(e,t,r){var a=this.get(e,r),n=t(a);return this.set(e,void 0===n?a:n),this},set:function(e,t,r){var n,i=this.get(e);return null!=i&&!1===r?t:("function"==typeof r&&(n=r,r=void 0),a.set(this._area,this._in(e),a.stringify(t,n),r)||i)},setAll:function(e,t){var r,a;for(var n in e)a=e[n],this.set(n,a,t)!==a&&(r=!0);return r},add:function(e,t,r){var n=this.get(e);if(n instanceof Array)t=n.concat(t);else if(null!==n){var i=typeof n;if(i===typeof t&&"object"===i){for(var o in t)n[o]=t[o];t=n}else t=n+t}return a.set(this._area,this._in(e),a.stringify(t,r)),t},remove:function(e,t){var r=this.get(e,t);return a.remove(this._area,this._in(e)),r},clear:function(){return this._ns?this.each(function(e){a.remove(this._area,this._in(e))},1):a.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in a.areas)a.areas.hasOwnProperty(t)&&(this._area=a.areas[t],this.clear());return this._area=e,this}
1,_in:function(e){return"string"!=typeof e&&(e=a.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&0===e.indexOf(this._ns)?e.substring(this._ns.length):void 0:e}},storage:function(e){return a.inherit(a.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var r in this.items)if(this.has(r)&&e===t++)return r},setItem:function(e,t){!this.has(e)&&this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}}).Store("local",function(){try{return localStorage}catch(e){}}())).local=n,n._=a,n.area("session",function(){try{return sessionStorage}catch(e){}}()),n.area("page",a.storage("page")),"function"==typeof r&&void 0!==r.amd?r("store2",[],function(){return n}):void 0!==t&&t.exports?t.exports=n:(e.store&&(a.conflict=e.store),e.store=n)}}),M=(0,L.P$)({"../../node_modules/.pnpm/[email protected]/node_modules/map-obj/index.js"(e,t){var r=e=>"object"==typeof e&&null!==e,a=Symbol("skip"),n=e=>r(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),i=(e,t,r,o=new WeakMap)=>{if(r={deep:!1,target:{},...r},o.has(e))return o.get(e);o.set(e,r.target);let{target:s}=r;delete r.target;let l=e=>e.map(e=>n(e)?i(e,t,r,o):e);if(Array.isArray(e))return l(e);for(let[c,d]of Object.entries(e)){let p=t(c,d,e);if(p===a)continue;let[u,m,{shouldRecurse:h=!0}={}]=p;"__proto__"!==u&&(r.deep&&h&&n(m)&&(m=Array.isArray(m)?l(m):i(m,t,r,o)),s[u]=m)}return s};t.exports=(e,t,a)=>{if(!r(e))throw TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return i(e,t,a)},t.exports.mapObjectSkip=a}}),j=(0,L.E)({"../../node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.es6.mjs"(){i=function(){return(i=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)}}});function $(e){return e.toLowerCase()}var W=(0,L.E)({"../../node_modules/.pnpm/[email protected]/node_modules/lower-case/dist.es2015/index.js"(){}});function z(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(e,t){return e.replace(t,r)},e)}var V=(0,L.E)({"../../node_modules/.pnpm/[email protected]/node_modules/no-case/dist.es2015/index.js"(){W(),o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],s=/[^A-Z0-9]+/gi}}),H=(0,L.E)({"../../node_modules/.pnpm/[email protected]/node_modules/dot-case/dist.es2015/index.js"(){j(),V()}}),q={};function G(e,t){var r;return void 0===t&&(t={}),void 0===(r=i({delimiter:"_"},t))&&(r={}),function(e,t){void 0===t&&(t={});for(var r=t.splitRegexp,a=void 0===r?o:r,n=t.stripRegexp,i=void 0===n?s:n,l=t.transform,c=t.delimiter,d=z(z(e,a,"$1\0$2"),i,"\0"),p=0,u=d.length;"\0"===d.charAt(p);)p++;for(;"\0"===d.charAt(u-1);)u--;return d.slice(p,u).split("\0").map(void 0===l?$:l).join(void 0===c?" ":c)}(e,i({delimiter:"."},r))}(0,L.VA)(q,{snakeCase:()=>G});var K=(0,L.E)({"../../node_modules/.pnpm/[email protected]/node_modules/snake-case/dist.es2015/index.js"(){j(),H()}}),J=(0,L.P$)({"../../node_modules/.pnpm/[email protected]/node_modules/snakecase-keys/index.js"(e,t){var r=M(),{snakeCase:a}=(K(),(0,L.Yp)(q));t.exports=function(e,t){return r(e,function(e,r){var n,i;return[(n=t.exclude,i=e,n.some(function(e){return"string"==typeof e?e===i:e.test(i)}))?e:a(e,t.parsingOptions),r]},t=Object.assign({deep:!0,exclude:[],parsingOptions:{}},t))}}}),Z=(0,L.P$)({"../../node_modules/.pnpm/[email protected]/node_modules/eventemitter3/index.js"(e,t){var r=Object.prototype.hasOwnProperty,a="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,r,n,o){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new i(r,n||e,o),l=a?a+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(a=!1)),l.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var t=a?a+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,i=r.length,o=Array(i);n<i;n++)o[n]=r[n].fn;return o},l.prototype.listenerCount=function(e){var t=a?a+e:e,r=this._events[t];return r?r.fn?1:r.length:0},l.prototype.emit=function(e,t,r,n,i,o){var s=a?a+e:e;if(!this._events[s])return!1;var l,c,d=this._events[s],p=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),p){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,r),!0;case 4:return d.fn.call(d.context,t,r,n),!0;case 5:return d.fn.call(d.context,t,r,n,i),!0;case 6:return d.fn.call(d.context,t,r,n,i,o),!0}for(c=1,l=Array(p-1);c<p;c++)l[c-1]=arguments[c];d.fn.apply(d.context,l)}else{var u,m=d.length;for(c=0;c<m;c++)switch(d[c].once&&this.removeListener(e,d[c].fn,void 0,!0),p){case 1:d[c].fn.call(d[c].c
vendor: 4,427 bytes, line 1
1ontext);break;case 2:d[c].fn.call(d[c].context,t);break;case 3:d[c].fn.call(d[c].context,t,r);break;case 4:d[c].fn.call(d[c].context,t,r,n);break;default:if(!l)for(u=1,l=Array(p-1);u<p;u++)l[u-1]=arguments[u];d[c].fn.apply(d[c].context,l)}}return!0},l.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},l.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},l.prototype.removeListener=function(e,t,r,n){var i=a?a+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var o=this._events[i];if(o.fn)o.fn!==t||n&&!o.once||r&&o.context!==r||s(this,i);else{for(var l=0,c=[],d=o.length;l<d;l++)(o[l].fn!==t||n&&!o[l].once||r&&o[l].context!==r)&&c.push(o[l]);c.length?this._events[i]=1===c.length?c[0]:c:s(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=a?a+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=a,l.EventEmitter=l,void 0!==t&&(t.exports=l)}}),Q={Auction:"auction",CosmosSdk:"sdk",Staking:"staking",Bank:"bank",Distribution:"distribution",Gov:"gov",Exchange:"exchange",Insurance:"insurance",Ocr:"ocr",Oracle:"oracle",Peggy:"peggy",TokenFactory:"tokenfactory",Wasmx:"wasmx",Wasm:"wasm",AuthZ:"authz"},X={ErrTxDecode:2,ErrInvalidSequence:3,ErrUnauthorized:4,ErrInsufficientFunds:5,ErrUnknownRequest:6,ErrInvalidAddress:7,ErrInvalidPubKey:8,ErrUnknownAddress:9,ErrInvalidCoins:10,ErrOutOfGas:11,ErrMemoTooLarge:12,ErrInsufficientFee:13,ErrTooManySignatures:14,ErrNoSignatures:15,ErrJSONMarshal:16,ErrJSONUnmarshal:17,ErrInvalidRequest:18,ErrTxInMempoolCache:19,ErrMempoolIsFull:20,ErrTxTooLarge:21,ErrKeyNotFound:22,ErrWrongPassword:23,ErrorInvalidSigner:24,ErrorInvalidGasAdjustment:25,ErrInvalidHeight:26,ErrInvalidVersion:27,ErrInvalidChainID:28,ErrInvalidType:29,ErrTxTimeoutHeight:30,ErrUnknownExtensionOptions:31,ErrWrongSequence:32,ErrPackAny:33,ErrUnpackAny:34,ErrLogic:35,ErrConflict:36,ErrNotSupported:37,ErrNotFound:38,ErrIO:39,ErrAppConfig:40,ErrInvalidGasLimit:41},Y={ErrOrderInvalid:1,ErrSpotMarketNotFound:2,ErrSpotMarketExists:3,ErrBadField:4,ErrMarketInvalid:5,ErrInsufficientDeposit:6,ErrUnrecognizedOrderType:7,ErrInsufficientPositionQuantity:8,ErrOrderHashInvalid:9,ErrBadSubaccountID:10,ErrInvalidBaseDenom:12,ErrInvalidExpiry:15,ErrInvalidPrice:16,ErrInvalidQuantity:17,ErrUnsupportedOracleType:18,ErrOrderDoesntExist:19,ErrOrderbookFillInvalid:20,ErrPerpetualMarketExists:21,ErrExpiryFuturesMarketExists:22,ErrExpiryFuturesMarketExpired:23,ErrNoLiquidity:24,ErrSlippageExceedsWorstPrice:25,ErrInsufficientOrderMargin:26,ErrDerivativeMarketNotFound:27,ErrPositionNotFound:28,ErrInvalidReduceOnlyPositionDirection:29,ErrPriceSurpassesBankruptcyPrice:30,ErrPositionNotLiquidable:31,ErrInvalidTriggerPrice:32,ErrInvalidOracleType:33,ErrInvalidPriceTickSize:34,ErrInvalidQuantityTickSize:35,ErrInvalidMargin:36,ErrExceedsOrderSideCount:37,ErrMarketOrderAlreadyExists:38,ErrConditionalMarketOrderAlreadyExists:39,ErrMarketLaunchProposalAlreadyExists:40,ErrInvalidMarketStatus:41,ErrSameDenoms:42,ErrSameOracles:43,ErrFeeRatesRelation:44,ErrMarginsRelation:45,ErrExceedsMaxOracleScaleFactor:46,ErrSpotExchangeNotEnabled:47,ErrDerivativesExchangeNotEnabled:48,ErrOraclePriceDeltaExceedsThreshold:49,ErrInvalidHourlyInterestRate:50,ErrInvalidHourlyFundingRateCap:51,ErrInvalidMarketFundingParamUpdate:52,ErrInvalidTradingRewardCampaign:53,ErrInvalidFeeDiscountSchedule:54,ErrInvalidLiquidationOrder:55,ErrTradingRewardCampaignDistributionError:56,ErrInvalidTradingRewardsPendingPointsUpdate:57,ErrInvalidBatchMsgUpdate:58,ErrExceedsTopOfBookPrice:59,ErrInvalidOrderTypeForMessage:60,ErrInvalidDMMSender:61,ErrAlreadyOptedOutOfRewards:62,ErrInvalidMarginRatio:63,ErrBelowMinimalContribution:64,ErrLowPositionMargin:65,ErrInvalidTotalSupply:66,ErrInvalidLpTokenBurnAmount:67,ErrUnsupportedAction:68,ErrNegativePositionQuantity:69,ErrBinaryOptionsMarketExists:70,ErrBinaryOptionsMarketNotFound:71,ErrInvalidSettlement:72,ErrAccountDoesntExist:73,ErrSenderIsNotAnAdmin:74,ErrMarketAlreadyScheduledToSettle:75,ErrGenericMarketNotFound:76,ErrInvalidDenomDecimal:77,ErrInvalidState:78,ErrTransientOrdersUpToCancelNotSupported:79,ErrInvalidTrade:80,ErrNoMarginLocked:81,ErrInvalidAccessLevel:82,ErrInvalidAddress:83,ErrInvalidArgument:84,ErrInvalidFundsDirection:85,ErrNoFundsProvided:86,ErrInvalidSignature:87,ErrNoFundsToUnlock:88,ErrNoMsgsProvi
1ded:89,ErrNoMsgProvided:90,ErrInvalidAmount:91,ErrFeatureDisabled:92,ErrTooMuchOrderMargin:93,ErrBadSubaccountNonce:94,ErrInsufficientFunds:95,ErrPostOnlyMode:96,ErrClientOrderIdAlreadyExists:97,ErrInvalidCid:98,ErrInvalidClosingDirection:99},ee={ErrBidInvalid:1,ErrBidRound:2},et={ErrNoAuthorizationFound:2,ErrInvalidExpirationTime:3,ErrUnknownAuthorizationType:4,ErrNoGrantKeyFound:5,ErrAuthorizationExpired:6,ErrGranteeIsGranter:7,ErrAuthorizationNumOfSigners:9,ErrNegativeMaxTokens:12},er={ErrInsuranceFundAlreadyExists:1,ErrInsuranceFundNotFound:2,ErrRedemptionAlreadyExists:3,ErrInvalidDepositAmount:4,ErrInvalidDepositDenom:5,ErrPayoutTooLarge:6,ErrInvalidTicker:7,ErrInvalidQuoteDenom:8,ErrInvalidOracle:9,ErrInvalidExpirationTime:10,ErrInvalidMarketID:11,ErrInvalidShareDenom:12},ea={ErrStaleReport:1,ErrIncompleteProposal:2,ErrRepeatedAddress:3,ErrTooManySigners:4,ErrIncorrectConfig:5,ErrConfigDigestNotMatch:6,ErrWrongNumberOfSignatures:7,ErrIncorrectSignature:8,ErrNoTransmitter:9,ErrIncorrectTransmissionData:10,ErrNoTransmissionsFound:11,ErrMedianValueOutOfBounds:12,ErrIncorrectRewardPoolDenom:13,ErrNoRewardPool:14,ErrInvalidPayees:15,ErrModuleAdminRestricted:16,ErrFeedAlreadyExists:17,ErrFeedDoesntExists:19,ErrAdminRestricted:20,ErrInsufficientRewardPool:21,ErrPayeeAlreadySet:22,ErrPayeeRestricted:23,ErrFeedConfigNotFound:24},en={ErrEmptyRelayerAddr:1,ErrBadRatesCount:2,ErrBadResolveTimesCount:3,ErrBadRequestIDsCount:4,ErrRelayerNotAuthorized:5,ErrBadPriceFeedBaseCount:6,ErrBadPriceFeedQuoteCount:7,ErrUnsupportedOracleType:8,ErrBadMessagesCount:9,ErrBadCoinbaseMessage:10,ErrInvalidEthereumSignature:11,ErrBadCoinbaseMessageTimestamp:12,ErrCoinbasePriceNotFound:13,ErrBadPrice:14,ErrPriceTooLarge:15,ErrInvalidBandIBCRequest:16,ErrSample:17,ErrInvalidPacketTimeout:18,ErrBadSymbolsCount:19,ErrBadIBCPortBind:20,ErrInvalidPortID:21,ErrInvalidChannelID:22,ErrBadRequestInterval:23,ErrInvalidBandIBCUpdateRequest:24,ErrBandIBCRequestNotFound:25,ErrEmptyBaseInfo:26,ErrEmptyProvider:27,ErrInvalidProvider:28,ErrInvalidSymbol:29,ErrRelayerAlreadyExists:30,ErrProviderPriceNotFound:31,ErrInvalidOracleRequest:32,ErrOraclePriceNotFound:33},ei={ErrInternal:1,ErrDuplicate:2,ErrInvalid:3,ErrTimeout:4,ErrUnknown:5,ErrEmpty:6,ErrOutdated:7,ErrUnsupported:8,ErrNonContiguousEventNonce:9,ErrNoUnbatchedTxsFound:10,ErrResetDelegateKeys:11,ErrSupplyOverflow:12,ErrInvalidEthSender:13,ErrInvalidEthDestination:14},eo={ErrDenomExists:2,ErrUnauthorized:3,ErrInvalidDenom:4,ErrInvalidCreator:5,ErrInvalidAuthorityMetadata:6,ErrInvalidGenesis:7,ErrSubdenomTooLong:8,ErrSubdenomTooShort:9,ErrSubdenomNestedTooShort:10,ErrCreatorTooLong:11,ErrDenomDoesNotExist:12},es={ErrInvalidGasLimit:1,ErrInvalidGasPrice:2,ErrInvalidContractAddress:3,ErrAlreadyRegistered:4,ErrDuplicateContract:5,ErrNoContractAddresses:6,ErrInvalidCodeId:7},el={ErrEmptyValidatorAddr:2,ErrNoValidatorFound:3,ErrValidatorOwnerExists:4,ErrValidatorPubKeyExists:5,ErrValidatorPubKeyTypeNotSupported:6,ErrValidatorJailed:7,ErrBadRemoveValidator:8,ErrCommissionNegative:9,ErrCommissionHuge:10,ErrCommissionGTMaxRate:11,ErrCommissionUpdateTime:12,ErrCommissionChangeRateNegative:13,ErrCommissionChangeRateGTMaxRate:14,ErrCommissionGTMaxChangeRate:15,ErrSelfDelegationBelowMinimum:16,ErrMinSelfDelegationDecreased:17,ErrEmptyDelegatorAddr:18,ErrNoDelegation:19,ErrBadDelegatorAddr:20,ErrNoDelegatorForAddress:21,ErrInsufficientShares:22,ErrDelegationValidatorEmpty:23,ErrNotEnoughDelegationShares:24,ErrNotMature:25,ErrNoUnbondingDelegation:26,ErrMaxUnbondingDelegationEntries:27,ErrNoRedelegation:28,ErrSelfRedelegation:29,ErrTinyRedelegationAmount:30,ErrBadRedelegationDst:31,ErrTransitiveRedelegation:32,ErrMa
1xRedelegationEntries:33,ErrDelegatorShareExRateInvalid:34,ErrBothShareMsgsGiven:35,ErrNeitherShareMsgsGiven:36,ErrInvalidHistoricalInfo:37,ErrNoHistoricalInfo:38,ErrEmptyValidatorPubKey:39,ErrCommissionLTMinRate:40,ErrUnbondingNotFound:41,ErrUnbondingOnHoldRefCountNegative:42},ec={ErrUnknownProposal:2,ErrInactiveProposal:3,ErrAlreadyActiveProposal:4,ErrInvalidProposalContent:5,ErrInvalidProposalType:6,ErrInvalidVote:7,ErrInvalidGenesis:8,ErrNoProposalHandlerExists:9,ErrUnroutableProposalMsg:10,ErrNoProposalMsgs:11,ErrInvalidProposalMsg:12,ErrInvalidSigner:13,ErrInvalidSignalMsg:14,ErrMetadataTooLong:15,ErrMinDepositTooSmall:16,ErrProposalNotFound:17,ErrInvalidProposer:18,ErrNoDeposits:19,ErrVotingPeriodEnded:20,ErrInvalidProposal:21},ed={ErrEmptyDelegatorAddr:2,ErrEmptyWithdrawAddr:3,ErrEmptyValidatorAddr:4,ErrEmptyDelegationDistInfo:5,ErrNoValidatorDistInfo:6,ErrNoValidatorCommission:7,ErrSetWithdrawAddrDisabled:8,ErrBadDistribution:9,ErrInvalidProposalAmount:10,ErrEmptyProposalRecipient:11,ErrNoValidatorExists:12,ErrNoDelegationExists:13},ep={ErrNoInputs:2,ErrNoOutputs:3,ErrInputOutputMismatch:4,ErrSendDisabled:5,ErrDenomMetadataNotFound:6,ErrInvalidKey:7,ErrDuplicateEntry:8,ErrMultipleSenders:9},eu={ErrCreateFailed:2,ErrAccountExists:3,ErrInstantiateFailed:4,ErrExecuteFailed:5,ErrGasLimit:6,ErrInvalidGenesis:7,ErrNotFound:8,ErrQueryFailed:9,ErrInvalidMsg:10,ErrMigrationFailed:11,ErrEmpty:12,ErrLimit:13,ErrInvalid:14,ErrDuplicate:15,ErrMaxIBCChannels:16,ErrUnsupportedForContract:17,ErrPinContractFailed:18,ErrUnpinContractFailed:19,ErrUnknownMsg:20,ErrInvalidEvent:21},em=-1,eh={GetChainId:"get-chain-id",GetAccounts:"get-accounts",GetNetworkId:"get-network-id",SignArbitrary:"sign-arbitrary",SignTransaction:"sign-transaction",SendTransaction:"send-transaction",SendEvmTransaction:"send-evm-transaction",SignEvmTransaction:"sign-evm-transaction",GetEvmTransactionReceipt:"get-evm-transaction-receipt"},eg={Get:"GET",Post:"POST"},ef={Unspecified:"unspecified",ChainError:"chain-error",ExecutionError:"execution-error",NotFoundError:"not-found-error",ValidationError:"validation-error",WalletError:"wallet-error",WalletNotInstalledError:"wallet-not-installed-error",GrpcUnaryRequest:"grpc-unary-request",HttpRequest:"http-request",Web3:"web3",Web3Gateway:"web3-gateway"};function eb(e){return(eb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ey(e,t,r){var a;return(a=function(e,t){if("object"!=eb(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t);if("object"!=eb(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==eb(a)?a:a+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ek=e=>`${e}`.toLowerCase().replace(RegExp(/[-_]+/,"g")," ").replace(RegExp(/[^\w\s]/,"g"),"").replace(RegExp(/\s+(.)(\w*)/,"g"),(e,t,r)=>`${t.toUpperCase()+r}`).replace(new RegExp(/\w/),e=>e.toUpperCase()),ex=class extends Error{constructor(e,t){super(e.message),ey(this,"type",ef.Unspecified),ey(this,"code",em),ey(this,"name",void 0),ey(this,"errorClass",void 0),ey(this,"context",void 0),ey(this,"contextModule",void 0),ey(this,"contextCode",void 0),ey(this,"message",""),ey(this,"originalMessage",""),ey(this,"skipParsing",!1),this.skipParsing=(null==t?void 0:t.skipParsing)||!1,this.parseError(e),this.parseContext(t),this.parse()}parse(){}parseError(e){this.setStack(e.stack||""),this.setMessage(e.message),this.originalMessage=e.message}parseContext(e){let{contextModule:t,type:r,code:a,context:n,contextCode:i}=e||{contextModule:"Unknown",context:"Unknown",code:em,type:ef.Unspecified,contextCode:void 0};this.context=n,this.contextModule=t,this.type=r||ef.Unspecified,this.code=a||em,this.contextCode=i}
1setType(e){this.type=e}setCode(e){this.code=e}setContext(e){this.context=e}setOriginalMessage(e){this.originalMessage=e}setStack(e){this.stack=e}setName(e){this.name=e,this.errorClass=e}setMessage(e){this.message=e}setContextModule(e){this.contextModule=e}setContextCode(e){this.contextCode=e}toOriginalError(){let e=Error(this.originalMessage);return e.stack=this.stack,e.name=this.name||"",e}toError(){let e=Error(this.message);return e.stack=this.stack,e.name=this.name||"",e}toCompactError(){let e=this.name||ek(this.type),t=Error(`${this.message} | ${JSON.stringify({type:this.type,code:this.code,errorClass:e,message:this.message,context:this.context,contextCode:this.contextCode,contextModule:this.contextModule,originalMessage:this.originalMessage,stack:(this.stack||"").split("\n").map(e=>e.trim())})}`);return t.stack=this.stack,t.name=this.name||ek(this.type),t}toJson(){return JSON.stringify({error:this.message,stack:this.stack})}toObject(){let e=this.name||ek(this.type);return{code:this.code,type:this.type,errorClass:e,message:this.message,context:this.context,contextCode:this.contextCode,contextModule:this.contextModule,originalMessage:this.originalMessage,stack:(this.stack||"").split("\n").map(e=>e.trim())}}toString(){return this.message}};ey(class e extends ex{constructor(e,t){super(e,t),this.type=ef.Web3}parse(){this.setName(e.errorClass)}},"errorClass","Web3Exception");var ew={[ee.ErrBidInvalid]:"The gas limit provided in the transaction is not valid",[ee.ErrBidRound]:"The gas limit provided in the transaction is not valid"},ev={[et.ErrNoAuthorizationFound]:"Authorization not found",[et.ErrInvalidExpirationTime]:"Expiration time of authorization should be more than current time",[et.ErrUnknownAuthorizationType]:"Unknown authorization type",[et.ErrNoGrantKeyFound]:"Grant key not found",[et.ErrAuthorizationExpired]:"Authorization expired",[et.ErrGranteeIsGranter]:"Grantee and granter should be different",[et.ErrAuthorizationNumOfSigners]:"Authorization can be given to msg with only one signer",[et.ErrNegativeMaxTokens]:"Max tokens should be positive"},eT={[X.ErrInsufficientFee]:"You do not have enough funds to cover the transaction fees.",[X.ErrInsufficientFunds]:"You do not have enough funds.",[X.ErrTxTimeoutHeight]:"The transaction failed to be included within a block on time.",[X.ErrTxDecode]:"There is an issue while parsing the transaction",[X.ErrInvalidSequence]:"The sequence number is not valid",[X.ErrUnauthorized]:"Unauthorized",[X.ErrUnknownRequest]:"The request is not known",[X.ErrInvalidAddress]:"The address is not valid",[X.ErrInvalidPubKey]:"The public key is not valid",[X.ErrUnknownAddress]:"The address is unknown",[X.ErrInvalidCoins]:"The coins are not valid",[X.ErrOutOfGas]:"The transaction run out of gas",[X.ErrMemoTooLarge]:"The memo field in the transaction is too large",[X.ErrTooManySignatures]:"The transaction exceeded the maximum number of signatures",[X.ErrNoSignatures]:"There are no signatures appended on the transaction",[X.ErrJSONMarshal]:"There is an issue while parsing the transaction",[X.ErrJSONUnmarshal]:"There is an issue while parsing the transaction",[X.ErrInvalidRequest]:"invalid request",[X.ErrTxInMempoolCache]:"The transaction is already in the mempool",[X.ErrMempoolIsFull]:"The mempool is full",[X.ErrTxTooLarge]:"The transaction is too large",[X.ErrKeyNotFound]:"Address is not yet active on the chain as it has a $0 balance. To activate it, please send a small amount of funds. Once funded, the network will recognize the address, allowing you to proceed.",[X.ErrWrongPassword]:"invalid account password",[X.ErrorInvalidSigner]:"tx intended signer does not match the given signer",[X.ErrorInvalidGasAdjustment]:"invalid gas adjustment",[X.ErrInvalidHeight]:"The height provided in the transaction is not valid",[X.ErrInvalidVersion]:"The version provided in the transaction is not valid",[X.ErrInvalidChainID]:"The chainId provided in the transaction is not valid",[X.ErrInvalidType]:"The type provided in the transaction is not valid",[X.ErrUnknownExtensionOptions]:"The extension options provided in the transaction is unknown",[X.ErrWrongSequence]:"The sequence number provided in the transaction is incorrect",[X.ErrPackAny]:"failed packing protobuf message to Any",[X.ErrUnpackAny]:"failed unpacking protobuf message from Any",[X.ErrLogic]:"Internal logic error",[X.ErrConflict]:"conflict",[X.ErrNotSupported]:"The feature is not supported",[X.ErrNotFound]:"not found",[X.ErrIO]:"Internal IO error",[X.ErrAppConfig]:"error in app.toml",[X.ErrInvalidGasLimit]:"The gas limit provided in the transaction is not val
1id"},eE={[Y.ErrOrderInvalid]:"Your order failed to validate",[Y.ErrSpotMarketNotFound]:"The spot market has not been found",[Y.ErrSpotMarketExists]:"The spot market already exists",[Y.ErrBadField]:"There is an issue with your order",[Y.ErrMarketInvalid]:"The market failed to validate",[Y.ErrInsufficientDeposit]:"Your trading account has insufficient funds",[Y.ErrUnrecognizedOrderType]:"The order type is not recognized",[Y.ErrInsufficientPositionQuantity]:"The position quantity is insufficient for the order",[Y.ErrOrderHashInvalid]:"The order hash is not valid",[Y.ErrBadSubaccountID]:"The subaccount id is not valid",[Y.ErrInvalidBaseDenom]:"",[Y.ErrInvalidExpiry]:"The expiry date is not valid",[Y.ErrInvalidPrice]:"The price is not valid",[Y.ErrInvalidQuantity]:"The quantity is not valid",[Y.ErrUnsupportedOracleType]:"The oracle type is not supported",[Y.ErrOrderDoesntExist]:"The order does not exist",[Y.ErrOrderbookFillInvalid]:"",[Y.ErrPerpetualMarketExists]:"The perpetual market already exists",[Y.ErrExpiryFuturesMarketExists]:"The expiry futures market market already exists",[Y.ErrExpiryFuturesMarketExpired]:"The expiry futures market has expired",[Y.ErrNoLiquidity]:"There is not enough liquidity",[Y.ErrSlippageExceedsWorstPrice]:"There is not enough liquidity",[Y.ErrInsufficientOrderMargin]:"The order has insufficient margin",[Y.ErrDerivativeMarketNotFound]:"The derivative market cannot be found",[Y.ErrPositionNotFound]:"The position cannot be found",[Y.ErrInvalidReduceOnlyPositionDirection]:"Position direction does not oppose the reduce-only order",[Y.ErrPriceSurpassesBankruptcyPrice]:"Your order price surpasses bankruptcy price",[Y.ErrPositionNotLiquidable]:"The position is not liquidable",[Y.ErrInvalidTriggerPrice]:"Your order trigger price is not valid",[Y.ErrInvalidOracleType]:"The oracle type is not valid",[Y.ErrInvalidPriceTickSize]:"The minimum price tick size is not valid",[Y.ErrInvalidQuantityTickSize]:"The minimum quantity tick size is not valid",[Y.ErrInvalidMargin]:"Your order's minimum margin is not valid ",[Y.ErrExceedsOrderSideCount]:"You cannot have more orders for this market for this direction",[Y.ErrMarketOrderAlreadyExists]:"You cannot place another market order within this block",[Y.ErrConditionalMarketOrderAlreadyExists]:"You cannot place another conditional market order",[Y.ErrMarketLaunchProposalAlreadyExists]:"There is an existing equivalent market launch proposal.",[Y.ErrInvalidMarketStatus]:"The market status is not valid",[Y.ErrSameDenoms]:"The base denom and quote denom cannot be same",[Y.ErrSameOracles]:"The oracle base and the oracle quote cannot be the same",[Y.ErrFeeRatesRelation]:"The MakerFeeRate does not match TakerFeeRate requirements",[Y.ErrMarginsRelation]:"The MaintenanceMarginRatio cannot be greater than InitialMarginRatio",[Y.ErrExceedsMaxOracleScaleFactor]:"The OracleScaleFactor cannot be greater than MaxOracleScaleFactor",[Y.ErrSpotExchangeNotEnabled]:"Spot exchange is not enabled yet",[Y.ErrDerivativesExchangeNotEnabled]:"Derivatives exchange is not enabled yet",[Y.ErrOraclePriceDeltaExceedsThreshold]:"The oracle price delta exceeds threshold",[Y.ErrInvalidHourlyInterestRate]:"The hourly interest rate is not valid",[Y.ErrInvalidHourlyFundingRateCap]:"The hourly funding rate cap is not valid",[Y.ErrInvalidMarketFundingParamUpdate]:"You can only update funding parameters on perpetual markets.",[Y.ErrInvalidTradingRewardCampaign]:"The trading reward campaign is not valid",[Y.ErrInvalidFeeDiscountSchedule]:"The fee discount schedule is not valid",[Y.ErrInvalidLiquidationOrder]:"The liquidation order is not valid",[Y.ErrTradingRewardCampaignDistributionError]:"Unknown error happened for campaign distributions",[Y.ErrInvalidTradingRewardsPendingPointsUpdate]:"The updated trading reward points is not valid",[Y.ErrInvalidBatchMsgUpdate]:"The MsgBatchUpdate is not valid",[Y.ErrExceedsTopOfBookPrice]:"The post-only order price exceeds top of the orderbook price",[Y.ErrInvalidOrderTypeForMessage]:"The order type is not supported for this message",[Y.ErrInvalidDMMSender]:"The sender must match the DMM address",[Y.ErrAlreadyOptedOutOfRewards]:"The DMM address already opted out of rewards",[Y.ErrInvalidMarginRatio]:"The margin ratio is not val
1id",[Y.ErrBelowMinimalContribution]:"The provided funds are below minimum",[Y.ErrLowPositionMargin]:"The position is below initial margin requirement",[Y.ErrInvalidTotalSupply]:"The pool has non-positive total LP token supply",[Y.ErrInvalidLpTokenBurnAmount]:"The passed LP token burn amount is greater than total LP token supply",[Y.ErrUnsupportedAction]:"This action is not supported",[Y.ErrNegativePositionQuantity]:"The position quantity cannot be negative",[Y.ErrBinaryOptionsMarketExists]:"The BinaryOptions market already exists",[Y.ErrBinaryOptionsMarketNotFound]:"The BinaryOptions market cannot be found",[Y.ErrInvalidSettlement]:"The settlement price is not valid",[Y.ErrAccountDoesntExist]:"The trading account does not exist",[Y.ErrSenderIsNotAnAdmin]:"The sender should be the admin of the market",[Y.ErrMarketAlreadyScheduledToSettle]:"The market is already scheduled to settle ",[Y.ErrGenericMarketNotFound]:"The market cannot be found",[Y.ErrInvalidDenomDecimal]:"The denom decimal cannot be below 1 or above max scale factor",[Y.ErrInvalidState]:"The state is not valid",[Y.ErrTransientOrdersUpToCancelNotSupported]:"The transient orders up to cancellation not supported",[Y.ErrInvalidTrade]:"The trade is not valid",[Y.ErrNoMarginLocked]:"There is no margin locked in the trading account",[Y.ErrInvalidAccessLevel]:"There is no access to perform action",[Y.ErrInvalidAddress]:"The address is not valid",[Y.ErrInvalidArgument]:"The argument is not valid",[Y.ErrInvalidFundsDirection]:"Invalid funds direction",[Y.ErrNoFundsProvided]:"No funds provided",[Y.ErrInvalidSignature]:"Invalid signature",[Y.ErrNoFundsToUnlock]:"No funds to unlock",[Y.ErrNoMsgsProvided]:"No msgs provided",[Y.ErrNoMsgProvided]:"No msg provided",[Y.ErrInvalidAmount]:"Invalid amount",[Y.ErrFeatureDisabled]:"The current feature has been disabled",[Y.ErrTooMuchOrderMargin]:"Order has too much margin",[Y.ErrBadSubaccountNonce]:"Subaccount nonce is invalid",[Y.ErrInsufficientFunds]:"Insufficient funds",[Y.ErrPostOnlyMode]:"Only post-only actions available for approximately 30 minutes after a chain upgrade.",[Y.ErrClientOrderIdAlreadyExists]:"Client order id already exists",[Y.ErrInvalidCid]:"Client order id is invalid. Max length is 36 chars",[Y.ErrInvalidClosingDirection]:"Invalid closing direction"},eB={[er.ErrInsuranceFundAlreadyExists]:"The insurance fund already exists",[er.ErrInsuranceFundNotFound]:"The insurance fund is not found",[er.ErrRedemptionAlreadyExists]:"The redemption already exists",[er.ErrInvalidDepositAmount]:"The deposit amount is not valid",[er.ErrInvalidDepositDenom]:"The deposit denom is not valid",[er.ErrPayoutTooLarge]:"The insurance fund payout exceeds the deposits",[er.ErrInvalidTicker]:"The ticker is not valid",[er.ErrInvalidQuoteDenom]:"The quote denom is not valid",[er.ErrInvalidOracle]:"The oracle is not valid",[er.ErrInvalidExpirationTime]:"The expiration time is not valid",[er.ErrInvalidMarketID]:"The marketId is not valid",[er.ErrInvalidShareDenom]:"The share denom is not valid"},eC={[ea.ErrStaleReport]:"stale report",[ea.ErrIncompleteProposal]:"incomplete proposal",[ea.ErrRepeatedAddress]:"repeated oracle address",[ea.ErrTooManySigners]:"too many signers",[ea.ErrIncorrectConfig]:"incorrect config",[ea.ErrConfigDigestNotMatch]:"config digest doesn't match",[ea.ErrWrongNumberOfSignatures]:"wrong number of signatures",[ea.ErrIncorrectSignature]:"incorrect signature",[ea.ErrNoTransmitter]:"no transmitter specified",[ea.ErrIncorrectTransmissionData]:"incorrect transmission data",[ea.ErrNoTransmissionsFound]:"no transmissions found",[ea.ErrMedianValueOutOfBounds]:"median value is out of bounds",[ea.ErrIncorrectRewardPoolDenom]:"LINK denom doesn't match",[ea.ErrNoRewardPool]:"Reward Pool doesn't exist",[ea.ErrInvalidPayees]:"wrong number of payees and transmitters",[ea.ErrModuleAdminRestricted]:"action is restricted to the module admin",[ea.ErrFeedAlreadyExists]:"feed already exists",[ea.ErrFeedDoesntExists]:"feed doesnt exists",[ea.ErrAdminRestricted]:"action is admin-restricted",[ea.ErrInsufficientRewardPool]:"insufficient reward pool",[ea.ErrPayeeAlreadySet]:"payee already set",[ea.ErrPayeeRestricted]:"action is payee-restr
1icted",[ea.ErrFeedConfigNotFound]:"feed config not found"},eU={[en.ErrEmptyRelayerAddr]:"relayer address is empty",[en.ErrBadRatesCount]:"bad rates count",[en.ErrBadResolveTimesCount]:"bad resolve times",[en.ErrBadRequestIDsCount]:"bad request ID",[en.ErrRelayerNotAuthorized]:"relayer not authorized",[en.ErrBadPriceFeedBaseCount]:"bad price feed base count",[en.ErrBadPriceFeedQuoteCount]:"bad price feed quote count",[en.ErrUnsupportedOracleType]:"unsupported oracle type",[en.ErrBadMessagesCount]:"bad messages count",[en.ErrBadCoinbaseMessage]:"bad Coinbase message",[en.ErrInvalidEthereumSignature]:"bad Ethereum signature",[en.ErrBadCoinbaseMessageTimestamp]:"bad Coinbase message timestamp",[en.ErrCoinbasePriceNotFound]:"Coinbase price not found",[en.ErrBadPrice]:"Prices must be positive",[en.ErrPriceTooLarge]:"Prices must be less than 10 million.",[en.ErrInvalidBandIBCRequest]:"Invalid Band IBC Request",[en.ErrSample]:"sample error",[en.ErrInvalidPacketTimeout]:"invalid packet timeout",[en.ErrBadSymbolsCount]:"invalid symbols count",[en.ErrBadIBCPortBind]:"could not claim port capability",[en.ErrInvalidPortID]:"invalid IBC Port ID",[en.ErrInvalidChannelID]:"invalid IBC Channel ID",[en.ErrBadRequestInterval]:"invalid Band IBC request interval",[en.ErrInvalidBandIBCUpdateRequest]:"Invalid Band IBC Update Request Proposal",[en.ErrBandIBCRequestNotFound]:"Band IBC Oracle Request not found",[en.ErrEmptyBaseInfo]:"Base Info is empty",[en.ErrEmptyProvider]:"provider is empty",[en.ErrInvalidProvider]:"invalid provider name",[en.ErrInvalidSymbol]:"invalid symbol",[en.ErrRelayerAlreadyExists]:"relayer already exists",[en.ErrProviderPriceNotFound]:"provider price not found",[en.ErrInvalidOracleRequest]:"invalid oracle request",[en.ErrOraclePriceNotFound]:"no price for oracle was found"},eI={[ei.ErrInternal]:"internal",[ei.ErrDuplicate]:"duplicate",[ei.ErrInvalid]:"invalid",[ei.ErrTimeout]:"timeout",[ei.ErrUnknown]:"unknown",[ei.ErrEmpty]:"empty",[ei.ErrOutdated]:"outdated",[ei.ErrUnsupported]:"unsupported",[ei.ErrNonContiguousEventNonce]:"non contiguous event nonce",[ei.ErrNoUnbatchedTxsFound]:"no unbatched txs found",[ei.ErrResetDelegateKeys]:"can not set orchestrator addresses more than once",[ei.ErrSupplyOverflow]:"supply cannot exceed max ERC20 value",[ei.ErrInvalidEthSender]:"invalid ethereum sender on claim",[ei.ErrInvalidEthDestination]:"invalid ethereum destination"},eN={[eo.ErrDenomExists]:"attempting to create a denom that already exists",[eo.ErrUnauthorized]:"unauthorized account",[eo.ErrInvalidDenom]:"invalid denom",[eo.ErrInvalidCreator]:"invalid creator",[eo.ErrInvalidAuthorityMetadata]:"invalid authority metadata",[eo.ErrInvalidGenesis]:"invalid genesis",[eo.ErrSubdenomTooLong]:"subdenom too long",[eo.ErrSubdenomTooShort]:"subdenom too short",[eo.ErrSubdenomNestedTooShort]:"nested subdenom too short, each one should have at least",[eo.ErrCreatorTooLong]:"creator too long",[eo.ErrDenomDoesNotExist]:"denom does not exist"},eR={[es.ErrInvalidGasLimit]:"invalid gas limit",[es.ErrInvalidGasPrice]:"invalid gas price",[es.ErrInvalidContractAddress]:"invalid contract address",[es.ErrAlreadyRegistered]:"contract already registered",[es.ErrDuplicateContract]:"duplicate contract",[es.ErrNoContractAddresses]:"no contract addresses found",[es.ErrInvalidCodeId]:"invalid code id"},eS={[el.ErrEmptyValidatorAddr]:"empty validator address",[el.ErrNoValidatorFound]:"validator does not exist",[el.ErrValidatorOwnerExists]:"validator already exist for this operator address; must use new validator operator address",[el.ErrValidatorPubKeyExists]:"validator already exist for this pubkey; must use new validator pubkey",[el.ErrValidatorPubKeyTypeNotSupported]:"validator pubkey type is not supported",[el.ErrValidatorJailed]:"validator for this address is currently jailed",[el.ErrBadRemoveValidator]:"failed to remove validator",[el.ErrCommissionNegative]:"commission must be positive",[el.ErrCommissionHuge]:"commission cannot be more than 100%",[el.ErrCommissionGTMaxRate]:"commission cannot be more than the max rate",[el.ErrCommissionUpdateTime]:"commission cannot be changed more than once in 24h",[el.ErrCommissionChangeRateNegative]:"commission change rate must be positive",[el.ErrCommissionChangeRateGTMaxRate]:"commission change rate cannot be more than the max rate",[el.ErrCommissionGTMaxChangeRate]:"commission cannot be changed more than max change rate",[el.ErrSelfDelegationBelowMinimum]:"validator's self delegation must be greater than their minimum self delegation",[el.ErrMinSelfDelegationDecreased]:"minimum self delegation cannot be decrease",[el.ErrEmptyDelegatorAddr]:"empty delegator address",[el.ErrNoDelegation]:"no delegation for (address, val
1idator) tuple",[el.ErrBadDelegatorAddr]:"delegator does not exist with address",[el.ErrNoDelegatorForAddress]:"delegator does not contain delegation",[el.ErrInsufficientShares]:"insufficient delegation shares",[el.ErrDelegationValidatorEmpty]:"cannot delegate to an empty validator",[el.ErrNotEnoughDelegationShares]:"not enough delegation shares",[el.ErrNotMature]:"entry not mature",[el.ErrNoUnbondingDelegation]:"no unbonding delegation found",[el.ErrMaxUnbondingDelegationEntries]:"too many unbonding delegation entries for (delegator, validator) tuple",[el.ErrNoRedelegation]:"no redelegation found",[el.ErrSelfRedelegation]:"cannot redelegate to the same validator",[el.ErrTinyRedelegationAmount]:"too few tokens to redelegate (truncates to zero tokens)",[el.ErrBadRedelegationDst]:"redelegation destination validator not found",[el.ErrTransitiveRedelegation]:"redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation",[el.ErrMaxRedelegationEntries]:"too many redelegation entries for (delegator, src-validator, dst-validator) tuple",[el.ErrDelegatorShareExRateInvalid]:"cannot delegate to validators with invalid (zero) ex-rate",[el.ErrBothShareMsgsGiven]:"both shares amount and shares percent provided",[el.ErrNeitherShareMsgsGiven]:"neither shares amount nor shares percent provided",[el.ErrInvalidHistoricalInfo]:"invalid historical info",[el.ErrNoHistoricalInfo]:"no historical info found",[el.ErrEmptyValidatorPubKey]:"empty validator public key",[el.ErrCommissionLTMinRate]:"commission cannot be less than min rate",[el.ErrUnbondingNotFound]:"unbonding operation not found",[el.ErrUnbondingOnHoldRefCountNegative]:"cannot un-hold unbonding operation that is not on hold"},eA={[ec.ErrUnknownProposal]:"unknown proposal",[ec.ErrInactiveProposal]:"inactive proposal",[ec.ErrAlreadyActiveProposal]:"proposal already active",[ec.ErrInvalidProposalContent]:"invalid proposal content",[ec.ErrInvalidProposalType]:"invalid proposal type",[ec.ErrInvalidVote]:"invalid vote option",[ec.ErrInvalidGenesis]:"invalid genesis state",[ec.ErrNoProposalHandlerExists]:"no handler exists for proposal type",[ec.ErrUnroutableProposalMsg]:"proposal message not recognized by router",[ec.ErrNoProposalMsgs]:"no messages proposed",[ec.ErrInvalidProposalMsg]:"invalid proposal message",[ec.ErrInvalidSigner]:"expected gov account as only signer for proposal message",[ec.ErrInvalidSignalMsg]:"signal message is invalid",[ec.ErrMetadataTooLong]:"metadata too long",[ec.ErrMinDepositTooSmall]:"minimum deposit is too small",[ec.ErrProposalNotFound]:"proposal is not found",[ec.ErrInvalidProposer]:"invalid proposer",[ec.ErrNoDeposits]:"no deposits found",[ec.ErrVotingPeriodEnded]:"voting period already ended",[ec.ErrInvalidProposal]:"invalid proposal"},eP={[ep.ErrNoInputs]:"no inputs to send transaction",[ep.ErrNoOutputs]:"no outputs to send transaction",[ep.ErrInputOutputMismatch]:"sum inputs != sum outputs",[ep.ErrSendDisabled]:"send transactions are disabled",[ep.ErrDenomMetadataNotFound]:"client denom metadata not found",[ep.ErrInvalidKey]:"invalid key",[ep.ErrDuplicateEntry]:"duplicate entry",[ep.ErrMultipleSenders]:"multiple senders not allowed"},eD={[ed.ErrEmptyDelegatorAddr]:"delegator address is empty",[ed.ErrEmptyWithdrawAddr]:"withdraw address is empty",[ed.ErrEmptyValidatorAddr]:"validator address is empty",[ed.ErrEmptyDelegationDistInfo]:"no delegation distribution info",[ed.ErrNoValidatorDistInfo]:"no validator distribution info",[ed.ErrNoValidatorCommission]:"no validator commission to withdraw",[ed.ErrSetWithdrawAddrDisabled]:"set withdraw address disabled",[ed.ErrBadDistribution]:"community pool does not have sufficient coins to distribute",[ed.ErrInvalidProposalAmount]:"invalid community pool spend proposal amount",[ed.ErrEmptyProposalRecipient]:"invalid community pool spend proposal recipient",[ed.ErrNoValidatorExists]:"validator does not exist",[ed.ErrNoDelegationExists]:"delegation does not exist"},eL={[eu.ErrCreateFailed]:"create wasm contract failed",[eu.ErrAccountExists]:"contract account already exists",[eu.ErrInstantiateFailed]:"instantiate wasm contract failed",[eu.ErrExecuteFailed]:"Contract execution failed",[eu.ErrGasLim
1it]:"insufficient gas",[eu.ErrInvalidGenesis]:"invalid genesis",[eu.ErrNotFound]:"not found",[eu.ErrQueryFailed]:"query wasm contract failed",[eu.ErrInvalidMsg]:"invalid CosmosMsg from the contract",[eu.ErrMigrationFailed]:"migrate wasm contract failed",[eu.ErrEmpty]:"empty",[eu.ErrLimit]:"exceeds limit",[eu.ErrInvalid]:"invalid",[eu.ErrDuplicate]:"duplicate",[eu.ErrMaxIBCChannels]:"max transfer channels",[eu.ErrUnsupportedForContract]:"unsupported for this contract",[eu.ErrPinContractFailed]:"pinning contract failed",[eu.ErrUnpinContractFailed]:"unpinning contract failed",[eu.ErrUnknownMsg]:"unknown message from the contract",[eu.ErrInvalidEvent]:"invalid event"},eO={[Q.AuthZ]:ev,[Q.Auction]:ew,[Q.CosmosSdk]:eT,[Q.Exchange]:eE,[Q.Insurance]:eB,[Q.Ocr]:eC,[Q.Oracle]:eU,[Q.Peggy]:eI,[Q.TokenFactory]:eN,[Q.Wasmx]:eR,[Q.Wasm]:eL,[Q.Staking]:eS,[Q.Bank]:eP,[Q.Gov]:eA,[Q.Distribution]:eD},eF={"insufficient fee":{message:"You do not have enough funds to cover the transaction fees.",code:X.ErrInsufficientFee,module:Q.CosmosSdk},"insufficient funds":{message:"You do not have enough funds.",code:X.ErrInsufficientFunds,module:Q.CosmosSdk},"tx timeout height":{message:"The transaction failed to be included within a block on time.",code:X.ErrTxTimeoutHeight,module:Q.CosmosSdk},"tx parse error":{message:"There is an issue while parsing the transaction",code:X.ErrTxDecode,module:Q.CosmosSdk},"invalid sequence":{message:"The sequence number is not valid",code:X.ErrInvalidSequence,module:Q.CosmosSdk},unauthorized:{message:"Unauthorized",code:X.ErrUnauthorized,module:Q.CosmosSdk},"invalid address":{message:"The address is not valid",code:X.ErrInvalidAddress,module:Q.CosmosSdk},"cosmos account not exists":{message:"You need to create your address on Injective by transferring funds",code:X.ErrInsufficientFee,module:Q.CosmosSdk},"invalid pubkey":{message:"The public key is not valid",code:X.ErrInvalidPubKey,module:Q.CosmosSdk},"unknown address":{message:"The address is unknown",code:X.ErrUnknownAddress,module:Q.CosmosSdk},"invalid coins":{message:"The coins are not valid",code:X.ErrInvalidCoins,module:Q.CosmosSdk},"out of gas":{message:"The transaction run out of gas",code:X.ErrOutOfGas,module:Q.CosmosSdk},"memo too large":{message:"The memo field in the transaction is too large",code:X.ErrMemoTooLarge,module:Q.CosmosSdk},"maximum number of signatures exceeded":{message:"The transaction exceeded the maximum number of signatures",code:X.ErrTooManySignatures,module:Q.CosmosSdk},"no signatures supplied":{message:"There are no signatures appended on the transaction",code:X.ErrNoSignatures,module:Q.CosmosSdk},"failed to marshal JSON bytes":{message:"There is an issue while parsing the transaction",code:X.ErrJSONMarshal,module:Q.CosmosSdk},"failed to unmarshal JSON bytes":{message:"There is an issue while parsing the transaction",code:X.ErrJSONUnmarshal,module:Q.CosmosSdk},"invalid request":{message:"invalid request",code:X.ErrInvalidRequest,module:Q.CosmosSdk},"tx already in mempool":{message:"The transaction is already in the mempool",code:X.ErrTxInMempoolCache,module:Q.CosmosSdk},"mempool is full":{message:"The transaction failed to be included within a block on time.",code:X.ErrMempoolIsFull,module:Q.CosmosSdk},"tx too large":{message:"The transaction is too large",code:X.ErrTxTooLarge,module:Q.CosmosSdk},"key not found":{message:"Address is not yet active on the chain as it has a $0 balance. To activate it, please send a small amount of funds. Once funded, the network will recognize the address, allowing you to proceed.",code:X.ErrKeyNotFound,module:Q.CosmosSdk},"invalid account password":{message:"invalid account password",code:X.ErrWrongPassword,module:Q.CosmosSdk},"tx intended signer does not match the given signer":{message:"tx intended signer does not match the given signer",code:X.ErrorInvalidSigner,module:Q.CosmosSdk},"invalid gas adjustment":{message:"invalid gas adjustment",code:X.ErrorInvalidGasAdjustment,module:Q.CosmosSdk},"invalid height":{message:"The height provided in the transaction is not valid",code:X.ErrInvalidHeight,module:Q.CosmosSdk},"invalid version":{message:"The version provided in the transaction is not val
1id",code:X.ErrInvalidVersion,module:Q.CosmosSdk},"invalid chain-id":{message:"The chainId provided in the transaction is not valid",code:X.ErrInvalidChainID,module:Q.CosmosSdk},"invalid type":{message:"The type provided in the transaction is not valid",code:X.ErrInvalidType,module:Q.CosmosSdk},"unknown extension options":{message:"The extension options provided in the transaction is unknown",code:X.ErrUnknownExtensionOptions,module:Q.CosmosSdk},"incorrect account sequence":{message:"The sequence number provided in the transaction is incorrect",code:X.ErrWrongSequence,module:Q.CosmosSdk},"failed packing protobuf message to Any":{message:"failed packing protobuf message to Any",code:X.ErrPackAny,module:Q.CosmosSdk},"failed unpacking protobuf message from Any":{message:"failed unpacking protobuf message from Any",code:X.ErrUnpackAny,module:Q.CosmosSdk},"internal logic error":{message:"Internal logic error",code:X.ErrLogic,module:Q.CosmosSdk},conflict:{message:"conflict",code:X.ErrConflict,module:Q.CosmosSdk},"feature not supported":{message:"The feature is not supported",code:X.ErrNotSupported,module:Q.CosmosSdk},"Internal IO error":{message:"Internal IO error",code:X.ErrIO,module:Q.CosmosSdk},"error in app.toml":{message:"error in app.toml",code:X.ErrAppConfig,module:Q.CosmosSdk},"invalid gas limit":{message:"The gas limit provided in the transaction is not valid",code:X.ErrInvalidGasLimit,module:Q.CosmosSdk},"invalid bid denom":{message:"The gas limit provided in the transaction is not valid",code:ee.ErrBidInvalid,module:Q.Auction},"invalid bid round":{message:"The gas limit provided in the transaction is not valid",code:ee.ErrBidRound,module:Q.Auction},"insurance fund already exists":{message:"The insurance fund already exists",code:er.ErrInsuranceFundAlreadyExists,module:Q.Insurance},"insurance fund not found":{message:"The insurance fund is not found",code:er.ErrInsuranceFundNotFound,module:Q.Insurance},"redemption already exists":{message:"The redemption already exists",code:er.ErrRedemptionAlreadyExists,module:Q.Insurance},"invalid deposit amount":{message:"The deposit amount is not valid",code:er.ErrInvalidDepositAmount,module:Q.Insurance},"invalid deposit denom":{message:"The deposit denom is not valid",code:er.ErrInvalidDepositDenom,module:Q.Insurance},"insurance payout exceeds deposits":{message:"The insurance fund payout exceeds the deposits",code:er.ErrPayoutTooLarge,module:Q.Insurance},"invalid ticker":{message:"The ticker is not valid",code:er.ErrInvalidTicker,module:Q.Insurance},"invalid quote denom":{message:"The quote denom is not valid",code:er.ErrInvalidQuoteDenom,module:Q.Insurance},"invalid oracle":{message:"The oracle is not valid",code:er.ErrInvalidOracle,module:Q.Insurance},"invalid expiration time":{message:"The expiration time is not valid",code:er.ErrInvalidExpirationTime,module:Q.Insurance},"invalid marketID":{message:"The marketId is not valid",code:er.ErrInvalidMarketID,module:Q.Insurance},"invalid share denom":{message:"The share denom is not valid",code:er.ErrInvalidShareDenom,module:Q.Insurance},"failed to validate order":{message:"Your order failed to validate",code:Y.ErrOrderInvalid,module:Q.Exchange},"spot market not found":{message:"The spot market has not been found",code:Y.ErrSpotMarketNotFound,module:Q.Exchange},"spot market exists":{message:"The spot market already exists",code:Y.ErrSpotMarketExists,module:Q.Exchange},"struct field error":{message:"There is an issue with your order",code:Y.ErrBadField,module:Q.Exchange},"failed to validate market":{message:"The market failed to validate",code:Y.ErrMarketInvalid,module:Q.Exchange},"subaccount has insufficient deposits":{message:"Your trading account has insufficient funds",code:Y.ErrInsufficientDeposit,module:Q.Exchange},"unrecognized order type":{message:"The order type is not recognized",code:Y.ErrUnrecognizedOrderType,module:Q.Exchange},"position quantity insufficient for order":{message:"The position quantity is insufficient for the order",code:Y.ErrInsufficientPositionQuantity,module:Q.Exchange}
1,"order hash is not valid":{message:"The order hash is not valid",code:Y.ErrOrderHashInvalid,module:Q.Exchange},"subaccount id is not valid":{message:"The subaccount id is not valid",code:Y.ErrBadSubaccountID,module:Q.Exchange},"invalid base denom":{message:"",code:Y.ErrInvalidBaseDenom,module:Q.Exchange},"invalid expiry":{message:"The expiry date is not valid",code:Y.ErrInvalidExpiry,module:Q.Exchange},"invalid price":{message:"The price is not valid",code:Y.ErrInvalidPrice,module:Q.Exchange},"invalid quantity":{message:"The quantity is not valid",code:Y.ErrInvalidQuantity,module:Q.Exchange},"unsupported oracle type":{message:"The oracle type is not supported",code:Y.ErrUnsupportedOracleType,module:Q.Exchange},"order doesnt exist":{message:"The order does not exist",code:Y.ErrOrderDoesntExist,module:Q.Exchange},"spot limit orderbook fill invalid":{message:"",code:Y.ErrOrderbookFillInvalid,module:Q.Exchange},"perpetual market exists":{message:"The perpetual market already exists",code:Y.ErrPerpetualMarketExists,module:Q.Exchange},"expiry futures market exists":{message:"The expiry futures market market already exists",code:Y.ErrExpiryFuturesMarketExists,module:Q.Exchange},"expiry futures market expired":{message:"The expiry futures market has expired",code:Y.ErrExpiryFuturesMarketExpired,module:Q.Exchange},"no liquidity on the orderbook":{message:"There is not enough liquidity",code:Y.ErrNoLiquidity,module:Q.Exchange},"orderbook liquidity cannot satisfy current worst price":{message:"There is not enough liquidity",code:Y.ErrSlippageExceedsWorstPrice,module:Q.Exchange},"order has insufficient margin":{message:"The order has insufficient margin",code:Y.ErrInsufficientOrderMargin,module:Q.Exchange},"derivative market not found":{message:"The derivative market cannot be found",code:Y.ErrDerivativeMarketNotFound,module:Q.Exchange},"position not found":{message:"The position cannot be found",code:Y.ErrPositionNotFound,module:Q.Exchange},"position direction does not oppose the reduce-only order":{message:"Position direction does not oppose the reduce-only order",code:Y.ErrInvalidReduceOnlyPositionDirection,module:Q.Exchange},"price surpasses bankruptcy price":{message:"Your order price surpasses bankruptcy price",code:Y.ErrPriceSurpassesBankruptcyPrice,module:Q.Exchange},"position not liquidable":{message:"The position is not liquidable",code:Y.ErrPositionNotLiquidable,module:Q.Exchange},"invalid trigger price":{message:"Your order trigger price is not valid",code:Y.ErrInvalidTriggerPrice,module:Q.Exchange},"invalid oracle type":{message:"The oracle type is not valid",code:Y.ErrInvalidOracleType,module:Q.Exchange},"invalid minimum price tick size":{message:"The minimum price tick size is not valid",code:Y.ErrInvalidPriceTickSize,module:Q.Exchange},"invalid minimum quantity tick size":{message:"The minimum quantity tick size is not valid",code:Y.ErrInvalidQuantityTickSize,module:Q.Exchange},"invalid minimum order margin":{message:"Your order's minimum margin is not valid ",code:Y.ErrInvalidMargin,module:Q.Exchange},"exceeds order side count":{message:"You cannot have more orders for this market for this direction",code:Y.ErrExceedsOrderSideCount,module:Q.Exchange},"subaccount cannot place a market order when a market order in the same market was already placed in same block":{message:"You cannot place another market order within this block",code:Y.ErrMarketOrderAlreadyExists,module:Q.Exchange},"cannot place a conditional market order when a conditional market order in same relative direction already exists":{message:"You cannot place another conditional market order",code:Y.ErrConditionalMarketOrderAlreadyExists,module:Q.Exchange},"an equivalent market launch proposal already exists.":{message:"There is an existing equivalent market launch proposal.",code:Y.ErrMarketLaunchProposalAlreadyExists,module:Q.Exchange},"invalid market status":{message:"The market status is not valid",code:Y.ErrInvalidMarketStatus,module:Q.Exchange},"base denom cannot be same with quote denom":{message:"The base denom and quote denom cannot be same",code:Y.ErrSameDenoms,module:Q.Exchange},"oracle base cannot be same with oracle quote":{message:"The oracle base and the oracle quote cannot be the same",code:Y.ErrSameOracles,module:Q.Exchange},"makerfeerate does not match takerfeeeate requirements":{message:"The MakerFeeRate does not match TakerFeeRate requirements",code:Y.ErrFeeRatesRelation,module:Q.Exchange},"maintenancemarginratio cannot be greater than initialmarginratio":{message:"The MaintenanceMarginRatio cannot be greater than InitialMarginRatio",code:Y.ErrMarginsRelation,module:Q.Exchange},"oraclescalefactor cannot be greater than maxoraclescalefactor":{message:"The OracleScaleFactor cannot be greater than MaxOracleScaleFactor",code:Y.ErrExceedsMaxOracleScaleFactor,module:Q.Exchange},"spot exchange is not enabled yet":{message:"Spot exchange is not enabled yet",code:Y.ErrSpotExchangeNotEnabled,module:Q.Exchange},"derivatives exchange is not enabled yet":{message:"Derivatives exchange is not enabled yet",code:Y.ErrDerivativesExchangeNotEnabled,module:Q.Exchange},"oracle price delta exceeds threshold":{message:"The oracle price delta exceeds threshold",code:Y.ErrOraclePriceDeltaExceedsThreshold,module:Q.Exchange},"invalid hourly interest rate":{message:"The hourly interest rate is not val
1id",code:Y.ErrInvalidHourlyInterestRate,module:Q.Exchange},"invalid hourly funding rate cap":{message:"The hourly funding rate cap is not valid",code:Y.ErrInvalidHourlyFundingRateCap,module:Q.Exchange},"only perpetual markets can update funding parameters":{message:"You can only update funding parameters on perpetual markets.",code:Y.ErrInvalidMarketFundingParamUpdate,module:Q.Exchange},"invalid trading reward campaign":{message:"The trading reward campaign is not valid",code:Y.ErrInvalidTradingRewardCampaign,module:Q.Exchange},"invalid fee discount schedule":{message:"The fee discount schedule is not valid",code:Y.ErrInvalidFeeDiscountSchedule,module:Q.Exchange},"invalid liquidation order":{message:"The liquidation order is not valid",code:Y.ErrInvalidLiquidationOrder,module:Q.Exchange},"unknown error happened for campaign distributions":{message:"Unknown error happened for campaign distributions",code:Y.ErrTradingRewardCampaignDistributionError,module:Q.Exchange},"invalid trading reward points update":{message:"The updated trading reward points is not valid",code:Y.ErrInvalidTradingRewardsPendingPointsUpdate,module:Q.Exchange},"invalid batch msg update":{message:"The MsgBatchUpdate is not valid",code:Y.ErrInvalidBatchMsgUpdate,module:Q.Exchange},"post-only order exceeds top of book price":{message:"The post-only order price exceeds top of the orderbook price",code:Y.ErrExceedsTopOfBookPrice,module:Q.Exchange},"order type not supported for given message":{message:"The order type is not supported for this message",code:Y.ErrInvalidOrderTypeForMessage,module:Q.Exchange},"sender must match dmm account":{message:"The sender must match the DMM address",code:Y.ErrInvalidDMMSender,module:Q.Exchange},"already opted out of rewards":{message:"The DMM address already opted out of rewards",code:Y.ErrAlreadyOptedOutOfRewards,module:Q.Exchange},"invalid margin ratio":{message:"The margin ratio is not valid",code:Y.ErrInvalidMarginRatio,module:Q.Exchange},"provided funds are below minimum":{message:"The provided funds are below minimum",code:Y.ErrBelowMinimalContribution,module:Q.Exchange},"position is below initial margin requirement":{message:"The position is below initial margin requirement",code:Y.ErrLowPositionMargin,module:Q.Exchange},"pool has non-positive total lp token supply":{message:"The pool has non-positive total LP token supply",code:Y.ErrInvalidTotalSupply,module:Q.Exchange},"passed lp token burn amount is greater than total lp token supply":{message:"The passed LP token burn amount is greater than total LP token supply",code:Y.ErrInvalidLpTokenBurnAmount,module:Q.Exchange},"unsupported action":{message:"This action is not supported",code:Y.ErrUnsupportedAction,module:Q.Exchange},"position quantity cannot be negative":{message:"The position quantity cannot be negative",code:Y.ErrNegativePositionQuantity,module:Q.Exchange},"binary options market exists":{message:"The BinaryOptions market already exists",code:Y.ErrBinaryOptionsMarketExists,module:Q.Exchange},"binary options market not found":{message:"The BinaryOptions market cannot be found",code:Y.ErrBinaryOptionsMarketNotFound,module:Q.Exchange},"invalid settlement":{message:"The settlement price is not valid",code:Y.ErrInvalidSettlement,module:Q.Exchange},"account doesnt exist":{message:"The trading account does not exist",code:Y.ErrAccountDoesntExist,module:Q.Exchange},"sender should be a market admin":{message:"The sender should be the admin of the market",code:Y.ErrSenderIsNotAnAdmin,module:Q.Exchange},"market is already scheduled to settle":{message:"The market is already scheduled to settle ",code:Y.ErrMarketAlreadyScheduledToSettle,module:Q.Exchange},"market not found":{message:"The market cannot be found",code:Y.ErrGenericMarketNotFound,module:Q.Exchange},"denom decimal cannot be below 1 or above max scale factor":{message:"The denom decimal cannot be below 1 or above max scale factor",code:Y.ErrInvalidDenomDecimal,module:Q.Exchange},"state is invalid":{message:"The state is not valid",code:Y.ErrInvalidState,module:Q.Exchange},"transient orders up to cancellation not supported":{message:"The transient orders up to cancellation not supported",code:Y.ErrTransientOrdersUpToCancelNotSupported,module:Q.Exchange}
1,"invalid trade":{message:"The trade is not valid",code:Y.ErrInvalidTrade,module:Q.Exchange},"no margin locked in subaccount":{message:"There is no margin locked in the trading account",code:Y.ErrNoMarginLocked,module:Q.Exchange},"Invalid access level to perform action":{message:"There is no access to perform action",code:Y.ErrInvalidAccessLevel,module:Q.Exchange},"Invalid address":{message:"The address is not valid",code:Y.ErrInvalidAddress,module:Q.Exchange},"Invalid argument":{message:"The argument is not valid",code:Y.ErrInvalidArgument,module:Q.Exchange},"empty validator address":{message:"empty validator address",code:el.ErrEmptyValidatorAddr,module:Q.Staking},"validator does not exist":{message:"validator does not exist",code:el.ErrNoValidatorFound,module:Q.Staking},"validator already exist for this operator address; must use new validator operator address":{message:"validator already exist for this operator address; must use new validator operator address",code:el.ErrValidatorOwnerExists,module:Q.Staking},"validator already exist for this pubkey; must use new validator pubkey":{message:"validator already exist for this pubkey; must use new validator pubkey",code:el.ErrValidatorPubKeyExists,module:Q.Staking},"validator pubkey type is not supported":{message:"validator pubkey type is not supported",code:el.ErrValidatorPubKeyTypeNotSupported,module:Q.Staking},"validator for this address is currently jailed":{message:"validator for this address is currently jailed",code:el.ErrValidatorJailed,module:Q.Staking},"failed to remove validator":{message:"failed to remove validator",code:el.ErrBadRemoveValidator,module:Q.Staking},"commission must be positive":{message:"commission must be positive",code:el.ErrCommissionNegative,module:Q.Staking},"commission cannot be more than 100%":{message:"commission cannot be more than 100%",code:el.ErrCommissionHuge,module:Q.Staking},"commission cannot be more than the max rate":{message:"commission cannot be more than the max rate",code:el.ErrCommissionGTMaxRate,module:Q.Staking},"commission cannot be changed more than once in 24h":{message:"commission cannot be changed more than once in 24h",code:el.ErrCommissionUpdateTime,module:Q.Staking},"commission change rate must be positive":{message:"commission change rate must be positive",code:el.ErrCommissionChangeRateNegative,module:Q.Staking},"commission change rate cannot be more than the max rate":{message:"commission change rate cannot be more than the max rate",code:el.ErrCommissionChangeRateGTMaxRate,module:Q.Staking},"commission cannot be changed more than max change rate":{message:"commission cannot be changed more than max change rate",code:el.ErrCommissionGTMaxChangeRate,module:Q.Staking},"validator's self delegation must be greater than their minimum self delegation":{message:"validator's self delegation must be greater than their minimum self delegation",code:el.ErrSelfDelegationBelowMinimum,module:Q.Staking},"minimum self delegation cannot be decrease":{message:"minimum self delegation cannot be decrease",code:el.ErrMinSelfDelegationDecreased,module:Q.Staking},"empty delegator address":{message:"empty delegator address",code:el.ErrEmptyDelegatorAddr,module:Q.Staking},"no delegation for (address, validator) tuple":{message:"no delegation for (address, validator) tuple",code:el.ErrNoDelegation,module:Q.Staking},"delegator does not exist with address":{message:"delegator does not exist with address",code:el.ErrBadDelegatorAddr,module:Q.Staking},"delegator does not contain delegation":{message:"delegator does not contain delegation",code:el.ErrNoDelegatorForAddress,module:Q.Staking},"insufficient delegation shares":{message:"insufficient delegation shares",code:el.ErrInsufficientShares,module:Q.Staking},"cannot delegate to an empty validator":{message:"cannot delegate to an empty validator",code:el.ErrDelegationValidatorEmpty,module:Q.Staking},"not enough delegation shares":{message:"not enough delegation shares",code:el.ErrNotEnoughDelegationShares,module:Q.Staking},"entry not mature":{message:"entry not mature",code:el.ErrNotMature,module:Q.Staking},"no unbonding delegation found":{message:"no unbonding delegation found",code:el.ErrNoUnbondingDelegation,module:Q.Staking},"too many unbonding delegation entries for (delegator, validator) tuple":{message:"too many unbonding delegation entries for (delegator, validator) tuple",code:el.ErrMaxUnbondingDelegationEntries,module:Q.Staking},"no redelegation found":{message:"no redelegation found",code:el.ErrNoRedelegation,module:Q.Staking},"cannot redelegate to the same validator":{message:"cannot redelegate to the same validator",code:el.ErrSelfRedelegation,module:Q.Staking},"too few tokens to redelegate (truncates to zero tokens)":{message:"too few tokens to redelegate (truncates to zero tokens)",code:el.ErrTinyRedelegationAmount,module:Q.Staking},"redelegation destination validator not found":{message:"redelegation destination validator not found",code:el.ErrBadRedelegationDst,module:Q.Staking},"redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation":{message:"redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation",code:el.ErrTransitiveRedelegation,module:Q.Staking},"too many redelegation entries for (delegator, src-validator, dst-validator) tuple":{message:"too many redelegation entries for (delegator, src-validator, dst-validator) tuple",code:el.ErrMaxRedelegationEntries,module:Q.Staking}
1,"cannot delegate to validators with invalid (zero) ex-rate":{message:"cannot delegate to validators with invalid (zero) ex-rate",code:el.ErrDelegatorShareExRateInvalid,module:Q.Staking},"both shares amount and shares percent provided":{message:"both shares amount and shares percent provided",code:el.ErrBothShareMsgsGiven,module:Q.Staking},"neither shares amount nor shares percent provided":{message:"neither shares amount nor shares percent provided",code:el.ErrNeitherShareMsgsGiven,module:Q.Staking},"invalid historical info":{message:"invalid historical info",code:el.ErrInvalidHistoricalInfo,module:Q.Staking},"no historical info found":{message:"no historical info found",code:el.ErrNoHistoricalInfo,module:Q.Staking},"empty validator public key":{message:"empty validator public key",code:el.ErrEmptyValidatorPubKey,module:Q.Staking},"commission cannot be less than min rate":{message:"commission cannot be less than min rate",code:el.ErrCommissionLTMinRate,module:Q.Staking},"unbonding operation not found":{message:"unbonding operation not found",code:el.ErrUnbondingNotFound,module:Q.Staking},"cannot un-hold unbonding operation that is not on hold":{message:"cannot un-hold unbonding operation that is not on hold",code:el.ErrUnbondingOnHoldRefCountNegative,module:Q.Staking},"delegator address is empty":{message:"delegator address is empty",code:ed.ErrEmptyDelegatorAddr,module:Q.Distribution},"withdraw address is empty":{message:"withdraw address is empty",code:ed.ErrEmptyWithdrawAddr,module:Q.Distribution},"validator address is empty":{message:"validator address is empty",code:ed.ErrEmptyValidatorAddr,module:Q.Distribution},"no delegation distribution info":{message:"no delegation distribution info",code:ed.ErrEmptyDelegationDistInfo,module:Q.Distribution},"no validator distribution info":{message:"no validator distribution info",code:ed.ErrNoValidatorDistInfo,module:Q.Distribution},"no validator commission to withdraw":{message:"no validator commission to withdraw",code:ed.ErrNoValidatorCommission,module:Q.Distribution},"set withdraw address disabled":{message:"set withdraw address disabled",code:ed.ErrSetWithdrawAddrDisabled,module:Q.Distribution},"community pool does not have sufficient coins to distribute":{message:"community pool does not have sufficient coins distribute",code:ed.ErrBadDistribution,module:Q.Distribution},"invalid community pool spend proposal amount":{message:"invalid community pool spend proposal amount",code:ed.ErrInvalidProposalAmount,module:Q.Distribution},"invalid community pool spend proposal recipient":{message:"invalid community pool spend proposal recipient",code:ed.ErrEmptyProposalRecipient,module:Q.Distribution},"delegation does not exist":{message:"delegation does not exist",code:ed.ErrNoDelegationExists,module:Q.Distribution},"unknown proposal":{message:"unknown proposal",code:ec.ErrUnknownProposal,module:Q.Gov},"inactive proposal":{message:"inactive proposal",code:ec.ErrInactiveProposal,module:Q.Gov},"proposal already active":{message:"proposal already active",code:ec.ErrAlreadyActiveProposal,module:Q.Gov},"invalid proposal content":{message:"invalid proposal content",code:ec.ErrInvalidProposalContent,module:Q.Gov},"invalid proposal type":{message:"invalid proposal type",code:ec.ErrInvalidProposalType,module:Q.Gov},"invalid vote option":{message:"invalid vote option",code:ec.ErrInvalidVote,module:Q.Gov},"invalid genesis state":{message:"invalid genesis state",code:ec.ErrInvalidGenesis,module:Q.Gov},"no handler exists for proposal type":{message:"no handler exists for proposal type",code:ec.ErrNoProposalHandlerExists,module:Q.Gov},"proposal message not recognized by router":{message:"proposal message not recognized by router",code:ec.ErrUnroutableProposalMsg,module:Q.Gov},"no messages proposed":{message:"no messages proposed",code:ec.ErrNoProposalMsgs,module:Q.Gov},"invalid proposal message":{message:"invalid proposal message",code:ec.ErrInvalidProposalMsg,module:Q.Gov},"expected gov account as only signer for proposal message":{message:"expected gov account as only signer for proposal message",code:ec.ErrInvalidSigner,module:Q.Gov}
1,"signal message is invalid":{message:"signal message is invalid",code:ec.ErrInvalidSignalMsg,module:Q.Gov},"metadata too long":{message:"metadata too long",code:ec.ErrMetadataTooLong,module:Q.Gov},"minimum deposit is too small":{message:"minimum deposit is too small",code:ec.ErrMinDepositTooSmall,module:Q.Gov},"proposal is not found":{message:"proposal is not found",code:ec.ErrProposalNotFound,module:Q.Gov},"invalid proposer":{message:"invalid proposer",code:ec.ErrInvalidProposer,module:Q.Gov},"no deposits found":{message:"no deposits found",code:ec.ErrNoDeposits,module:Q.Gov},"voting period already ended":{message:"voting period already ended",code:ec.ErrVotingPeriodEnded,module:Q.Gov},"invalid proposal":{message:"invalid proposal",code:ec.ErrInvalidProposal,module:Q.Gov},"no inputs to send transaction":{message:"no inputs to send transaction",code:ep.ErrNoInputs,module:Q.Bank},"no outputs to send transaction":{message:"no outputs to send transaction",code:ep.ErrNoOutputs,module:Q.Bank},"sum inputs != sum outputs":{message:"sum inputs != sum outputs",code:ep.ErrInputOutputMismatch,module:Q.Bank},"send transactions are disabled":{message:"send transactions are disabled",code:ep.ErrSendDisabled,module:Q.Bank},"client denom metadata not found":{message:"client denom metadata not found",code:ep.ErrDenomMetadataNotFound,module:Q.Bank},"invalid key":{message:"invalid key",code:ep.ErrInvalidKey,module:Q.Bank},"duplicate entry":{message:"duplicate entry",code:ep.ErrDuplicateEntry,module:Q.Bank},"multiple senders not allowed":{message:"multiple senders not allowed",code:ep.ErrMultipleSenders,module:Q.Bank},"create wasm contract failed":{code:eu.ErrCreateFailed,message:"create wasm contract failed",module:Q.Wasm},"contract account already exists":{code:eu.ErrAccountExists,message:"contract account already exists",module:Q.Wasm},"instantiate wasm contract failed":{code:eu.ErrInstantiateFailed,message:"instantiate wasm contract failed",module:Q.Wasm},"execute wasm contract failed":{code:eu.ErrExecuteFailed,message:"Contract execution failed",module:Q.Wasm},"insufficient gas":{code:eu.ErrGasLimit,message:"insufficient gas",module:Q.Wasm},"invalid genesis":{code:eu.ErrInvalidGenesis,message:"invalid genesis",module:Q.Wasm},"query wasm contract failed":{code:eu.ErrQueryFailed,message:"query wasm contract failed",module:Q.Wasm},"invalid CosmosMsg from the contract":{code:eu.ErrInvalidMsg,message:"invalid CosmosMsg from the contract",module:Q.Wasm},"migrate wasm contract failed":{code:eu.ErrMigrationFailed,message:"migrate wasm contract failed",module:Q.Wasm},empty:{code:eu.ErrEmpty,message:"empty",module:Q.Wasm},"exceeds limit":{code:eu.ErrLimit,message:"exceeds limit",module:Q.Wasm},invalid:{code:eu.ErrInvalid,message:"invalid",module:Q.Wasm},duplicate:{code:eu.ErrDuplicate,message:"duplicate",module:Q.Wasm},"max transfer channels":{code:eu.ErrMaxIBCChannels,message:"max transfer channels",module:Q.Wasm},"unsupported for this contract":{code:eu.ErrUnsupportedForContract,message:"unsupported for this contract",module:Q.Wasm},"pinning contract failed":{code:eu.ErrPinContractFailed,message:"pinning contract failed",module:Q.Wasm},"unpinning contract failed":{code:eu.ErrUnpinContractFailed,message:"unpinning contract failed",module:Q.Wasm},"unknown message from the contract":{code:eu.ErrUnknownMsg,message:"unknown message from the contract",module:Q.Wasm},"invalid event":{code:eu.ErrInvalidEvent,message:"invalid event",module:Q.Wasm},"authorization not found":{code:et.ErrNoAuthorizationFound,message:"Authorization not found",module:Q.Wasm},"expiration time of authorization":{code:et.ErrAuthorizationExpired,message:"Authorization expired",module:Q.Wasm},"not found":{message:"not found",code:X.ErrNotFound,module:Q.CosmosSdk},"failed to fetch account num/seq":{message:"Address is not yet active on the chain as it has a $0 balance. To activate it, please send a small amount of funds. Once funded, the network will recognize the address, allowing you to proceed.",code:X.ErrKeyNotFound,module:Q.CosmosSdk}},e_=e=>{let t=e.split("message index: 0:");if(1===t.length){let[e]=t,[r]=e.split(": invalid request");return r.trim().trimEnd()}let[,r]=t,[a]=r.split(": invalid request");return a.trim().trimEnd()},eM=e=>{let t=e.trim().toLowerCase();return t.includes("user denied message signature")||t.toLowerCase().includes("user denied")?"The request has been rejected":t.toLowerCase().includes("provided chain")?"Your selected network is incorrect":t.toLowerCase().includes("keyring controller signtypedmessage")?"Please ensure your Ledger is connected, unlocked and your Ethereum app is open.":e.replaceAll("Keyring Controller signTypedMessage:","")},ej=class e extends ex{constructor(e,t){super(e,t),this.type=ef.WalletError}parse(){let{message:t}=this;t.trim().toLowerCase().includes("missing or invalid parameters")?this.setMessage("Please make sure you are using BitGet Wallet"):this.setMessage(eM(t.replaceAll("BitGet","").replaceAll("Bitget:","").replaceAll("Bitkeep:",""))),this.setName(e.errorClass)}};ey(ej,"errorClass","BitGetException");var e$=e=>{let t=["Ledger device: Incorrect length","Ledger device: INS_NOT_SUPPORTED","Ledger device: CLA_NOT_SUPPORTED","Unknown","Ledger device","CLA_NOT_SUPPORTED","CLA","Locked","Failed to open the device","Failed to open the device","Ledger Device is busy","
1Ledger device","UNKNOWN_ERROR"];return t.some(t=>t.includes(e))||t.some(t=>e.toLowerCase().includes(t.toLowerCase()))||t.some(t=>t.toLowerCase().includes(e.toLowerCase()))};ey(class e extends ex{constructor(e,t){super(e,t),this.type=ef.WalletError}parse(){let{message:t}=this;e$(t)&&this.setMessage("Please ensure your Ledger is connected, unlocked and your Ethereum app is open."),t.includes("No device selected.")&&this.setMessage("Please make sure your Ledger device is connected, unlocked and your Ethereum app is open"),t.includes("Unable to set device configuration.")&&this.setMessage("Please restart your Ledger device and try connecting again"),t.includes("Cannot read properties of undefined")&&this.setMessage("Please make sure your Ledger device is connected"),t.toLowerCase().includes("locked")&&this.setMessage("Please make sure your Ledger device is connected, unlocked and your Ethereum app is open"),(t.includes("Condition of use not satisfied")||t.includes("0x6985"))&&this.setMessage("The request has been rejected"),t.includes("U2F browser support is needed for Ledger.")&&this.setMessage("Please use the latest Chrome/Firefox browser versions to connect with your Ledger device"),this.setName(e.errorClass)}},"errorClass","LedgerException"),ey(class e extends ex{constructor(e,t){super(e,t),this.type=ef.WalletError}parse(){this.setName(e.errorClass)}},"errorClass","TrezorException");var eW=class e extends ex{parse(){this.setName(e.errorClass)}};ey(eW,"errorClass","WalletException");var ez=class e extends ex{parse(){this.setName(e.errorClass)}};ey(ez,"errorClass","GeneralException");var eV=class e extends ex{constructor(e,t){super(e,t),this.type=ef.WalletError}parse(){let{message:t}=this;t.trim().toLowerCase().includes("missing or invalid parameters")?this.setMessage("Please make sure you are using Metamask Wallet"):this.setMessage(eM(t.replaceAll("Metamask","").replaceAll("MetaMask","").replaceAll("Metamask:",""))),this.setName(e.errorClass)}};ey(eV,"errorClass","MetamaskException");var eH=class e extends ex{constructor(e,t){super(e,t),this.type=ef.WalletError}parse(){let{message:t}=this;t.trim().toLowerCase().includes("missing or invalid parameters")?this.setMessage("Please make sure you are using Keplr Wallet"):this.setMessage(eM(t.replaceAll("Keplr","").replaceAll("Keplr","").replaceAll("Keplr:",""))),this.setName(e.errorClass)}};ey(eH,"errorClass","KeplrException");var eq=class e extends ex{constructor(e,t){super(e,t),this.type=ef.WalletError}parse(){let{message:t}=this;t.trim().toLowerCase().includes("missing or invalid parameters")?this.setMessage("Please make sure you are using Okx Wallet"):this.setMessage(eM(t.replaceAll("OkxWallet","").replaceAll("OkxWallet:","").replaceAll("Okx",""))),this.setName(e.errorClass)}};ey(eq,"errorClass","OkxWalletException");var eG=class e extends ex{constructor(e,t){super(e,t),ey(this,"method",eg.Get),this.type=ef.HttpRequest,this.method=t&&t.method||eg.Get,this.context=(null==t?void 0:t.context)||"Unknown"}parse(){this.setName(e.errorClass)}};ey(eG,"errorClass","HttpRequestException");var eK=class e extends ex{constructor(e,t){super(e,t),this.type=ef.ChainError}parse(){let{message:t,context:r,contextModule:a,contextCode:n}=this;if(this.skipParsing){this.setContext(r||"Unknown"),this.setMessage(t),this.setOriginalMessage(t),this.setName(e.errorClass);return}let{code:i,message:o,contextModule:s}=((e,t)=>{let r=t&&t.contextCode?t.contextCode:(e=>{let t=/{key:"ABCICode"[ \t]+value:"(.*?)"}/g.exec(e);if(t&&!(t.length<2))return Number(t[1])})(e),a=(null==t?void 0:t.contextModule)||(e=>{let t=/{key:"Codespace"[ \t]+value:"(.*?)"}/g.exec(e);if(t&&!(t.length<2))return t[1]})(e),n=(e=>{let t=/\[reason:"(.*?)"/g.exec(e);if(!t||t.length<2)return e.includes("execute wasm contract failed")?(e=>{if(!e.includes("execute wasm contract failed"))return;let t=/(.*?)execute wasm contract failed(.*?)/g.exec(e);if(t&&!(t.length<2))return t[1].replace("failed to execute message; message index: 0: ","")})(e):void 0;let r=t[1];if("execute wasm contract failed"===r){let t=/(.*?)Generic error:(.*?): execute wasm/g.exec(e);return t&&t[2]||r}return r})(e);if(!r||!a){let t=(e=>{let t=e_(e),r=Object.keys(eF).find(e=>t.toLowerCase().includes(e.toLowerCase()));return r?eF[r]:{message:t,code:em,module:void 0}})(e);return{...t,contextModule:t.module||a,message:n||t.message}}let i=eO[a];return i?{message:i[r]||n||e_(e),code:r,contextModule:a}:{message:n||e_(e),code:r,contextModule:a}})(t,{contextCode:n,contextModule:a});this.setContext(r||"Unknown"),this.setMessage(o),this.setContextCode(i),this.setOriginalMessage(e_(t)),s&&this.setContextModule(s),this.setName(e.errorClass)}};ey(eK,"errorClass","TransactionException");var eJ=class e extends ex{constructor(e,t){super(e,t),this.type=ef.WalletError}parse(){let{message:t}=this;t.trim().toLowerCase().includes("missing or invalid parameters")?this.setMessage("Please make sure you are using TrustWallet"):this.setMessage(eM(t.replaceAll("Trust Wallet","").replaceAll("TrustWallet","").replaceAll("Trustwallet","").replaceAll("TrustWallet:","").replaceAll("Trust Wallet:",""))),this.setName(e.errorClass)}};ey(eJ,"errorClass","TrustWalletException");var eZ=class e extends ex{constructor(e,t){super(e,t),this.type=ef.WalletError}parse(){this.setName(e.errorClass)}};ey(eZ,"errorClass","CosmosWalletException"),ey(class e extends ex{constructor(e,t){super(e,t),this.type=ef.WalletError}parse(){let{message:t}=this;e$(t)&&this.setMessage("Please ensure your Ledger is connected, unlocked and your Cosmos app is open."),t.includes("No device selected.")&&this.setMessage("Please make sure your Ledger device is connected, unlocked and your Cosmos app is open"),t.includes("Unable to set device configuration.")&&this.setMessage("Please restart your Ledger device and try connecting again"),t.includes("Cannot read properties of undefined")&&this.setMessage("Please make sure your Ledger device is connected"),t.toLowerCase().includes("locked")&&this.setMessage("Please make sure your Ledger device is connected, unlocked and your Cosmos app is open"),(t.includes("Condition of use not satisfied")||t.includes("0x6985"))&&this.setMessage("The request has been rejected"),t.includes("U2F browser support is needed for Ledger.")&&this.setMessage("Please use the latest Chrome/Firefox browser versions to connect with your Ledger device"),this.setName(e.errorClass)}},"errorClass","LedgerCosmosException");var eQ=class e extends ex{constructor(e,t){super(e,t),this.type=ef.WalletError}parse(){let{message:t}=this;t.trim().toLowerCase().includes("missing or invalid parameters")?this.setMessage("Please make sure you are using Rainbow Wallet"):this.setMessage(eM(t.replaceAll("Rainbow","").replaceAll("RainBow","").replaceAll("Rainbow:",""))),this.setName(e.errorClass)}};ey(eQ,"errorClass","RainbowWalletException"),ey(class e extends ex{constructor(e,t){super(e,t),this.type=ef.WalletError}parse(){let{message:t}=this;t.trim().toLowerCase().includes("missing or invalid parameters")?this.setMessage("Please make sure you are using WalletConnect"):this.setMessage(eM(t.replaceAll("WalletConnect","").replaceAll("WalletConnect","").replaceAll("WalletConnect:",""))),this.setName(e.errorClass)}},"errorClass","WalletConnectException");var eX=class e extends ex{constructor(e,t){super(e,t),this.type=ef.GrpcUnaryRequest}parse(){let{message:t}=this;t.toLowerCase().includes("response closed without headers")&&(this.setMessage("The request has failed. The server has closed the connection without sending any headers."),this.setContextCode(14)),this.setName(e.errorClass)}};ey(eX,"errorClass","GrpcUnaryRequestException"),ey(class e extends ex{parse(){this.setName(e.errorClass)}},"errorClass","TurnkeyWalletSessionException");var eY=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,e0=Math.ceil,e1=Math.floor,e2="[BigNumber Error] ",e3=e2+"Number primitive has more than 15 significant digits: ",e6=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function e8(e){var t=0|e;return e>0||e===t?t:t-1}function e7(e){for(var t,r,a=1,n=e.length,i=e[0]+"";a<n;){for(r=14-(t=e[a++]+"").length;r--;t="0"+t);i+=t}for(n=i.length;48===i.charCodeAt(--n););return i.slice(0,n+1||1)}function e4(e,t){var r,a,n=e.c,i=t.c,o=e.s,s=t.s,l=e.e,c=t.e;if(!o||!s)return null;if(r=n&&!n[0],a=i&&!i[0],r||a)return r?a?0:-s:o;if(o!=s)return o;if(r=o<0,a=l==c,!n||!i)return a?0:!n^r?1:-1;if(!a)return l>c^r?1:-1;for(o=0,s=(l=n.length)<(c=i.length)?l:c;o<s;o++)if(n[o]!=i[o])return n[o]>i[o]^r?1:-1;return l==c?0:l>c^r?1:-1}function e5(e,t,r,a){if(e<t||e>r||e!==e1(e))throw Error(e2+(a||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function e9(e){var t=e.c.length-1;return e8(e.e/14)==t&&e.c[t]%2!=0}function te(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function tt(e,t,r){var a,n;if(t<0){for(n=r+".";++t;n+=r);e=n+e}else if(a=e.length,++t>a){for(n=r,t-=a;--t;n+=r);e+=n}else t<a&&(e=e.slice(0,t)+"."+e.slice(t));return e}var tr=function e(t){var r,a,n,i,o,s,l,c,d,p=B.prototype={constructor:B,toString:null,valueOf:null}
1,u=new B(1),m=20,h=4,g=-7,f=21,b=-1e7,y=1e7,k=!1,x=1,w=0,v={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},T="0123456789abcdefghijklmnopqrstuvwxyz",E=!0;function B(e,t){var r,a,n,i,o,s,l,p,u=this;if(!(u instanceof B))return new B(e,t);if(null==t){if(e&&!0===e._isBigNumber){u.s=e.s,!e.c||e.e>y?u.c=u.e=null:e.e<b?u.c=[u.e=0]:(u.e=e.e,u.c=e.c.slice());return}if((s="number"==typeof e)&&0*e==0){if(u.s=1/e<0?(e=-e,-1):1,e===~~e){for(i=0,o=e;o>=10;o/=10,i++);i>y?u.c=u.e=null:(u.e=i,u.c=[e]);return}p=String(e)}else{if(!eY.test(p=String(e)))return d(u,p,s);u.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(i=p.indexOf("."))>-1&&(p=p.replace(".","")),(o=p.search(/e/i))>0?(i<0&&(i=o),i+=+p.slice(o+1),p=p.substring(0,o)):i<0&&(i=p.length)}else{if(e5(t,2,T.length,"Base"),10==t&&E)return N(u=new B(e),m+u.e+1,h);if(p=String(e),s="number"==typeof e){if(0*e!=0)return d(u,p,s,t);if(u.s=1/e<0?(p=p.slice(1),-1):1,B.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(e3+e)}else u.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(r=T.slice(0,t),i=o=0,l=p.length;o<l;o++)if(0>r.indexOf(a=p.charAt(o))){if("."==a){if(o>i){i=l;continue}}else if(!n&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){n=!0,o=-1,i=0;continue}return d(u,String(e),s,t)}s=!1,(i=(p=c(p,t,10,u.s)).indexOf("."))>-1?p=p.replace(".",""):i=p.length}for(o=0;48===p.charCodeAt(o);o++);for(l=p.length;48===p.charCodeAt(--l););if(p=p.slice(o,++l)){if(l-=o,s&&B.DEBUG&&l>15&&(e>0x1fffffffffffff||e!==e1(e)))throw Error(e3+u.s*e);if((i=i-o-1)>y)u.c=u.e=null;else if(i<b)u.c=[u.e=0];else{if(u.e=i,u.c=[],o=(i+1)%14,i<0&&(o+=14),o<l){for(o&&u.c.push(+p.slice(0,o)),l-=14;o<l;)u.c.push(+p.slice(o,o+=14));o=14-(p=p.slice(o)).length}else o-=l;for(;o--;p+="0");u.c.push(+p)}}else u.c=[u.e=0]}function C(e,t,r,a){var n,i,o,s,l;if(null==r?r=h:e5(r,0,8),!e.c)return e.toString();if(n=e.c[0],o=e.e,null==t)l=e7(e.c),l=1==a||2==a&&(o<=g||o>=f)?te(l,o):tt(l,o,"0");else if(i=(e=N(new B(e),t,r)).e,s=(l=e7(e.c)).length,1==a||2==a&&(t<=i||i<=g)){for(;s<t;l+="0",s++);l=te(l,i)}else if(t-=o+(2===a&&i>o),l=tt(l,i,"0"),i+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=i-s)>0)for(i+1==s&&(l+=".");t--;l+="0");return e.s<0&&n?"-"+l:l}function U(e,t){for(var r,a,n=1,i=new B(e[0]);n<e.length;n++)(a=new B(e[n])).s&&(r=e4(i,a))!==t&&(0!==r||i.s!==t)||(i=a);return i}function I(e,t,r){for(var a=1,n=t.length;!t[--n];t.pop());for(n=t[0];n>=10;n/=10,a++);return(r=a+14*r-1)>y?e.c=e.e=null:r<b?e.c=[e.e=0]:(e.e=r,e.c=t),e}function N(e,t,r,a){var n,i,o,s,l,c,d,p=e.c;if(p){e:{for(n=1,s=p[0];s>=10;s/=10,n++);if((i=t-n)<0)i+=14,o=t,d=e1((l=p[c=0])/e6[n-o-1]%10);else if((c=e0((i+1)/14))>=p.length)if(a){for(;p.length<=c;p.push(0));l=d=0,n=1,i%=14,o=i-14+1}else break e;else{for(n=1,l=s=p[c];s>=10;s/=10,n++);i%=14,d=(o=i-14+n)<0?0:e1(l/e6[n-o-1]%10)}if(a=a||t<0||null!=p[c+1]||(o<0?l:l%e6[n-o-1]),a=r<4?(d||a)&&(0==r||r==(e.s<0?3:2)):d>5||5==d&&(4==r||a||6==r&&(i>0?o>0?l/e6[n-o]:0:p[c-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,a?(t-=e.e+1,p[0]=e6[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==i?(p.length=c,s=1,c--):(p.length=c+1,s=e6[14-i],p[c]=o>0?e1(l/e6[n-o]%e6[o])*s:0),a)for(;;)if(0==c){for(i=1,o=p[0];o>=10;o/=10,i++);for(o=p[0]+=s,s=1;o>=10;o/=10,s++);i!=s&&(e.e++,1e14==p[0]&&(p[0]=1));break}else{if(p[c]+=s,1e14!=p[c])break;p[c--]=0,s=1}for(i=p.length;0===p[--i];p.pop());}e.e>y?e.c=e.e=null:e.e<b&&(e.c=[e.e=0])}return e}function R(e){var t,r=e.e;return null===r?e.toString():(t=e7(e.c),t=r<=g||r>=f?te(t,r):tt(t,r,"0"),e.s<0?"-"+t:t)}return B.clone=e,B.ROUND_UP=0,B.ROUND_DOWN=1,B.ROUND_CEIL=2,B.ROUND_FLOOR=3,B.ROUND_HALF_UP=4,B.ROUND_HALF_DOWN=5,B.ROUND_HALF_EVEN=6,B.ROUND_HALF_CEIL=7,B.ROUND_HALF_FLOOR=8,B.EUCLID=9,B.config=B.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(e5(r=e[t],0,1e9,t),m=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(e5(r=e[t],0,8,t),h=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(e5(r[0],-1e9,0,t),e5(r[1],0,1e9,t),g=r[0],f=r[1]):(e5(r,-1e9,1e9,t),g=-(f=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)e5(r[0],-1e9,-1,t),e5(r[1],1,1e9,t),b=r[0],y=r[1];else if(e5(r,-1e9,1e9,t),r)b=-(y=r<0?-r:r);else throw Error(e2+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(!!(r=e[t])===r)if(r)if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))k=r;else throw k=!r,Error(e2+"crypto unavailable");else k=r;else throw Error(e2+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(e5(r=e[t],0,9,t),x=r),e.hasOwnProperty(t="POW_PRECISION")&&(e5(r=e[t],0,1e9,t),w=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))v=r;else throw Error(e2+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\
1s]|(.).*\1/.test(r))throw Error(e2+t+" invalid: "+r);E="0123456789"==r.slice(0,10),T=r}}else throw Error(e2+"Object expected: "+e);return{DECIMAL_PLACES:m,ROUNDING_MODE:h,EXPONENTIAL_AT:[g,f],RANGE:[b,y],CRYPTO:k,MODULO_MODE:x,POW_PRECISION:w,FORMAT:v,ALPHABET:T}},B.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!B.DEBUG)return!0;var t,r,a=e.c,n=e.e,i=e.s;e:if("[object Array]"==({}).toString.call(a)){if((1===i||-1===i)&&n>=-1e9&&n<=1e9&&n===e1(n)){if(0===a[0]){if(0===n&&1===a.length)return!0;break e}if((t=(n+1)%14)<1&&(t+=14),String(a[0]).length==t){for(t=0;t<a.length;t++)if((r=a[t])<0||r>=1e14||r!==e1(r))break e;if(0!==r)return!0}}}else if(null===a&&null===n&&(null===i||1===i||-1===i))return!0;throw Error(e2+"Invalid BigNumber: "+e)},B.maximum=B.max=function(){return U(arguments,-1)},B.minimum=B.min=function(){return U(arguments,1)},r=0x20000000000000*Math.random()&2097151?function(){return e1(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},B.random=function(e){var t,a,n,i,o,s=0,l=[],c=new B(u);if(null==e?e=m:e5(e,0,1e9),i=e0(e/14),k)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(o=131072*t[s]+(t[s+1]>>>11))>=9e15?(a=crypto.getRandomValues(new Uint32Array(2)),t[s]=a[0],t[s+1]=a[1]):(l.push(o%1e14),s+=2);s=i/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(i*=7);s<i;)(o=(31&t[s])*0x1000000000000+0x10000000000*t[s+1]+0x100000000*t[s+2]+0x1000000*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])>=9e15?crypto.randomBytes(7).copy(t,s):(l.push(o%1e14),s+=7);s=i/7}else throw k=!1,Error(e2+"crypto unavailable");if(!k)for(;s<i;)(o=r())<9e15&&(l[s++]=o%1e14);for(i=l[--s],e%=14,i&&e&&(o=e6[14-e],l[s]=e1(i/o)*o);0===l[s];l.pop(),s--);if(s<0)l=[n=0];else{for(n=-1;0===l[0];l.splice(0,1),n-=14);for(s=1,o=l[0];o>=10;o/=10,s++);s<14&&(n-=14-s)}return c.e=n,c.c=l,c},B.sum=function(){for(var e=1,t=arguments,r=new B(t[0]);e<t.length;)r=r.plus(t[e++]);return r},c=function(){var e="0123456789";function t(e,t,r,a){for(var n,i,o=[0],s=0,l=e.length;s<l;){for(i=o.length;i--;o[i]*=t);for(o[0]+=a.indexOf(e.charAt(s++)),n=0;n<o.length;n++)o[n]>r-1&&(null==o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}return function(r,a,n,i,o){var s,c,d,p,u,g,f,b,y=r.indexOf("."),k=m,x=h;for(y>=0&&(p=w,w=0,r=r.replace(".",""),g=(b=new B(a)).pow(r.length-y),w=p,b.c=t(tt(e7(g.c),g.e,"0"),10,n,e),b.e=b.c.length),d=p=(f=t(r,a,n,o?(s=T,e):(s=e,T))).length;0==f[--p];f.pop());if(!f[0])return s.charAt(0);if(y<0?--d:(g.c=f,g.e=d,g.s=i,f=(g=l(g,b,k,x,n)).c,u=g.r,d=g.e),y=f[c=d+k+1],p=n/2,u=u||c<0||null!=f[c+1],u=x<4?(null!=y||u)&&(0==x||x==(g.s<0?3:2)):y>p||y==p&&(4==x||u||6==x&&1&f[c-1]||x==(g.s<0?8:7)),c<1||!f[0])r=u?tt(s.charAt(1),-k,s.charAt(0)):s.charAt(0);else{if(f.length=c,u)for(--n;++f[--c]>n;)f[c]=0,c||(++d,f=[1].concat(f));for(p=f.length;!f[--p];);for(y=0,r="";y<=p;r+=s.charAt(f[y++]));r=tt(r,d,s.charAt(0))}return r}}(),l=function(){function e(e,t,r){var a,n,i,o,s=0,l=e.length,c=t%1e7,d=t/1e7|0;for(e=e.slice();l--;)a=d*(i=e[l]%1e7)+(o=e[l]/1e7|0)*c,s=((n=c*i+a%1e7*1e7+s)/r|0)+(a/1e7|0)+d*o,e[l]=n%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,a){var n,i;if(r!=a)i=r>a?1:-1;else for(n=i=0;n<r;n++)if(e[n]!=t[n]){i=e[n]>t[n]?1:-1;break}return i}function r(e,t,r,a){for(var n=0;r--;)e[r]-=n,n=+(e[r]<t[r]),e[r]=n*a+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(a,n,i,o,s){var l,c,d,p,u,m,h,g,f,b,y,k,x,w,v,T,E,C=a.s==n.s?1:-1,U=a.c,I=n.c;if(!U||!U[0]||!I||!I[0])return new B(!a.s||!n.s||(U?I&&U[0]==I[0]:!I)?NaN:U&&0==U[0]||!I?0*C:C/0);for(f=(g=new B(C)).c=[],C=i+(c=a.e-n.e)+1,s||(s=1e14,c=e8(a.e/14)-e8(n.e/14),C=C/14|0),d=0;I[d]==(U[d]||0);d++);if(I[d]>(U[d]||0)&&c--,C<0)f.push(1),p=!0;else{for(w=U.length,T=I.length,d=0,C+=2,(u=e1(s/(I[0]+1)))>1&&(I=e(I,u,s),U=e(U,u,s),T=I.length,w=U.length),x=T,y=(b=U.slice(0,T)).length;y<T;b[y++]=0);E=[0].concat(E=I.slice()),v=I[0],I[1]>=s/2&&v++;do{if(u=0,(l=t(I,b,T,y))<0){if(k=b[0],T!=y&&(k=k*s+(b[1]||0)),(u=e1(k/v))>1)for(u>=s&&(u=s-1),h=(m=e(I,u,s)).length,y=b.length;1==t(m,b,h,y);)u--,r(m,T<h?E:I,h,s),h=m.length,l=1;else 0==u&&(l=u=1),h=(m=I.slice()).length;
1if(h<y&&(m=[0].concat(m)),r(b,m,y,s),y=b.length,-1==l)for(;1>t(I,b,T,y);)u++,r(b,T<y?E:I,y,s),y=b.length}else 0===l&&(u++,b=[0]);f[d++]=u,b[0]?b[y++]=U[x]||0:(b=[U[x]],y=1)}while((x++<w||null!=b[0])&&C--);p=null!=b[0],f[0]||f.splice(0,1)}if(1e14==s){for(d=1,C=f[0];C>=10;C/=10,d++);N(g,i+(g.e=d+14*c-1)+1,o,p)}else g.e=c,g.r=+p;return g}}(),a=/^(-?)0([xbo])(?=\w[\w.]*$)/i,n=/^([^.]+)\.$/,i=/^\.([^.]+)$/,o=/^-?(Infinity|NaN)$/,s=/^\s*\+(?=[\w.])|^\s+|\s+$/g,d=function(e,t,r,l){var c,d=r?t:t.replace(s,"");if(o.test(d))e.s=isNaN(d)?null:d<0?-1:1;else{if(!r&&(d=d.replace(a,function(e,t,r){return c="x"==(r=r.toLowerCase())?16:"b"==r?2:8,l&&l!=c?e:t}),l&&(c=l,d=d.replace(n,"$1").replace(i,"0.$1")),t!=d))return new B(d,c);if(B.DEBUG)throw Error(e2+"Not a"+(l?" base "+l:"")+" number: "+t);e.s=null}e.c=e.e=null},p.absoluteValue=p.abs=function(){var e=new B(this);return e.s<0&&(e.s=1),e},p.comparedTo=function(e,t){return e4(this,new B(e,t))},p.decimalPlaces=p.dp=function(e,t){var r,a,n;if(null!=e)return e5(e,0,1e9),null==t?t=h:e5(t,0,8),N(new B(this),e+this.e+1,t);if(!(r=this.c))return null;if(a=((n=r.length-1)-e8(this.e/14))*14,n=r[n])for(;n%10==0;n/=10,a--);return a<0&&(a=0),a},p.dividedBy=p.div=function(e,t){return l(this,new B(e,t),m,h)},p.dividedToIntegerBy=p.idiv=function(e,t){return l(this,new B(e,t),0,1)},p.exponentiatedBy=p.pow=function(e,t){var r,a,n,i,o,s,l,c,d,p=this;if((e=new B(e)).c&&!e.isInteger())throw Error(e2+"Exponent not an integer: "+R(e));if(null!=t&&(t=new B(t)),s=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return d=new B(Math.pow(+R(p),s?e.s*(2-e9(e)):+R(e))),t?d.mod(t):d;if(l=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new B(NaN);(a=!l&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||s&&p.c[1]>=24e7:p.c[0]<8e13||s&&p.c[0]<=9999975e7)))return i=p.s<0&&e9(e)?-0:0,p.e>-1&&(i=1/i),new B(l?1/i:i);w&&(i=e0(w/14+2))}for(s?(r=new B(.5),l&&(e.s=1),c=e9(e)):c=(n=Math.abs(+R(e)))%2,d=new B(u);;){if(c){if(!(d=d.times(p)).c)break;i?d.c.length>i&&(d.c.length=i):a&&(d=d.mod(t))}if(n){if(0===(n=e1(n/2)))break;c=n%2}else if(N(e=e.times(r),e.e+1,1),e.e>14)c=e9(e);else{if(0==(n=+R(e)))break;c=n%2}p=p.times(p),i?p.c&&p.c.length>i&&(p.c.length=i):a&&(p=p.mod(t))}return a?d:(l&&(d=u.div(d)),t?d.mod(t):i?N(d,w,h,o):d)},p.integerValue=function(e){var t=new B(this);return null==e?e=h:e5(e,0,8),N(t,t.e+1,e)},p.isEqualTo=p.eq=function(e,t){return 0===e4(this,new B(e,t))},p.isFinite=function(){return!!this.c},p.isGreaterThan=p.gt=function(e,t){return e4(this,new B(e,t))>0},p.isGreaterThanOrEqualTo=p.gte=function(e,t){return 1===(t=e4(this,new B(e,t)))||0===t},p.isInteger=function(){return!!this.c&&e8(this.e/14)>this.c.length-2},p.isLessThan=p.lt=function(e,t){return 0>e4(this,new B(e,t))},p.isLessThanOrEqualTo=p.lte=function(e,t){return -1===(t=e4(this,new B(e,t)))||0===t},p.isNaN=function(){return!this.s},p.isNegative=function(){return this.s<0},p.isPositive=function(){return this.s>0},p.isZero=function(){return!!this.c&&0==this.c[0]},p.minus=function(e,t){var r,a,n,i,o=this.s;if(t=(e=new B(e,t)).s,!o||!t)return new B(NaN);if(o!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,c=this.c,d=e.c;if(!s||!l){if(!c||!d)return c?(e.s=-t,e):new B(d?this:NaN);if(!c[0]||!d[0])return d[0]?(e.s=-t,e):new B(c[0]?this:3==h?-0:0)}if(s=e8(s),l=e8(l),c=c.slice(),o=s-l){for((i=o<0)?(o=-o,n=c):(l=s,n=d),n.reverse(),t=o;t--;n.push(0));n.reverse()}else for(a=(i=(o=c.length)<(t=d.length))?o:t,o=t=0;t<a;t++)if(c[t]!=d[t]){i=c[t]<d[t];break}if(i&&(n=c,c=d,d=n,e.s=-e.s),(t=(a=d.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=1e14-1;a>o;){if(c[--a]<d[a]){for(r=a;r&&!c[--r];c[r]=t);--c[r],c[a]+=1e14}c[a]-=d[a]}for(;0==c[0];c.splice(0,1),--l);return c[0]?I(e,c,l):(e.s=3==h?-1:1,e.c=[e.e=0],e)},p.modulo=p.mod=function(e,t){var r,a;return(e=new B(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==x?(a=e.s,e.s=1,r=l(this,e,0,3),e.s=a,r.s*=a):r=l(this,e,0,x),(e=this.minus(r.times(e))).c[0]||1!=x||(e.s=this.s),e):new B(this):new B(NaN)},p.multipliedBy=p.times=function(e,t){var r,a,n,i,o,s,l,c,d,p,u,m,h,g=this.c,f=(e=new B(e,t)).c;if(!g||!f||!g[0]||!f[0])return this.s&&e.s&&(!g||g[0]||f)&&(!f||f[0]||g)?(e.s*=this.s,g&&f?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(a=e8(this.e/14)+e8(e.e/14),e.s*=this.s,(l=g.length)<(p=f.length)&&(h=g,g
1=f,f=h,n=l,l=p,p=n),n=l+p,h=[];n--;h.push(0));for(n=p;--n>=0;){for(r=0,u=f[n]%1e7,m=f[n]/1e7|0,i=n+(o=l);i>n;)s=m*(c=g[--o]%1e7)+(d=g[o]/1e7|0)*u,r=((c=u*c+s%1e7*1e7+h[i]+r)/1e14|0)+(s/1e7|0)+m*d,h[i--]=c%1e14;h[i]=r}return r?++a:h.splice(0,1),I(e,h,a)},p.negated=function(){var e=new B(this);return e.s=-e.s||null,e},p.plus=function(e,t){var r,a=this.s;if(t=(e=new B(e,t)).s,!a||!t)return new B(NaN);if(a!=t)return e.s=-t,this.minus(e);var n=this.e/14,i=e.e/14,o=this.c,s=e.c;if(!n||!i){if(!o||!s)return new B(a/0);if(!o[0]||!s[0])return s[0]?e:new B(o[0]?this:0*a)}if(n=e8(n),i=e8(i),o=o.slice(),a=n-i){for(a>0?(i=n,r=s):(a=-a,r=o),r.reverse();a--;r.push(0));r.reverse()}for((a=o.length)-(t=s.length)<0&&(r=s,s=o,o=r,t=a),a=0;t;)a=(o[--t]=o[t]+s[t]+a)/1e14|0,o[t]=1e14===o[t]?0:o[t]%1e14;return a&&(o=[a].concat(o),++i),I(e,o,i)},p.precision=p.sd=function(e,t){var r,a,n;if(null!=e&&!!e!==e)return e5(e,1,1e9),null==t?t=h:e5(t,0,8),N(new B(this),e,t);if(!(r=this.c))return null;if(a=14*(n=r.length-1)+1,n=r[n]){for(;n%10==0;n/=10,a--);for(n=r[0];n>=10;n/=10,a++);}return e&&this.e+1>a&&(a=this.e+1),a},p.shiftedBy=function(e){return e5(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},p.squareRoot=p.sqrt=function(){var e,t,r,a,n,i=this.c,o=this.s,s=this.e,c=m+4,d=new B("0.5");if(1!==o||!i||!i[0])return new B(!o||o<0&&(!i||i[0])?NaN:i?this:1/0);if(0==(o=Math.sqrt(+R(this)))||o==1/0?(((t=e7(i)).length+s)%2==0&&(t+="0"),o=Math.sqrt(+t),s=e8((s+1)/2)-(s<0||s%2),r=new B(t=o==1/0?"5e"+s:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new B(o+""),r.c[0]){for((o=(s=r.e)+c)<3&&(o=0);;)if(n=r,r=d.times(n.plus(l(this,n,c,1))),e7(n.c).slice(0,o)===(t=e7(r.c)).slice(0,o)){if(r.e<s&&--o,"9999"!=(t=t.slice(o-3,o+1))&&(a||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(N(r,r.e+m+2,1),e=!r.times(r).eq(this));break}if(!a&&(N(n,n.e+m+2,0),n.times(n).eq(this))){r=n;break}c+=4,o+=4,a=1}}return N(r,r.e+m+1,h,e)},p.toExponential=function(e,t){return null!=e&&(e5(e,0,1e9),e++),C(this,e,t,1)},p.toFixed=function(e,t){return null!=e&&(e5(e,0,1e9),e=e+this.e+1),C(this,e,t)},p.toFormat=function(e,t,r){var a;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=v;else if("object"!=typeof r)throw Error(e2+"Argument not an object: "+r);if(a=this.toFixed(e,t),this.c){var n,i=a.split("."),o=+r.groupSize,s=+r.secondaryGroupSize,l=r.groupSeparator||"",c=i[0],d=i[1],p=this.s<0,u=p?c.slice(1):c,m=u.length;if(s&&(n=o,o=s,s=n,m-=n),o>0&&m>0){for(n=m%o||o,c=u.substr(0,n);n<m;n+=o)c+=l+u.substr(n,o);s>0&&(c+=l+u.slice(n)),p&&(c="-"+c)}a=d?c+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):c}return(r.prefix||"")+a+(r.suffix||"")},p.toFraction=function(e){var t,r,a,n,i,o,s,c,d,p,m,g,f=this.c;if(null!=e&&(!(s=new B(e)).isInteger()&&(s.c||1!==s.s)||s.lt(u)))throw Error(e2+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+R(s));if(!f)return new B(this);for(t=new B(u),d=r=new B(u),a=c=new B(u),g=e7(f),i=t.e=g.length-this.e-1,t.c[0]=e6[(o=i%14)<0?14+o:o],e=!e||s.comparedTo(t)>0?i>0?t:d:s,o=y,y=1/0,s=new B(g),c.c[0]=0;p=l(s,t,0,1),1!=(n=r.plus(p.times(a))).comparedTo(e);)r=a,a=n,d=c.plus(p.times(n=d)),c=n,t=s.minus(p.times(n=t)),s=n;return n=l(e.minus(r),a,0,1),c=c.plus(n.times(d)),r=r.plus(n.times(a)),c.s=d.s=this.s,i*=2,m=1>l(d,a,i,h).minus(this).abs().comparedTo(l(c,r,i,h).minus(this).abs())?[d,a]:[c,r],y=o,m},p.toNumber=function(){return+R(this)},p.toPrecision=function(e,t){return null!=e&&e5(e,1,1e9),C(this,e,t,2)},p.toString=function(e){var t,r=this,a=r.s,n=r.e;return null===n?a?(t="Infinity",a<0&&(t="-"+t)):t="NaN":(null==e?t=n<=g||n>=f?te(e7(r.c),n):tt(e7(r.c),n,"0"):10===e&&E?t=tt(e7((r=N(new B(r),m+n+1,h)).c),r.e,"0"):(e5(e,2,T.length,"Base"),t=c(tt(e7(r.c),n,"0"),10,e,a,!0)),a<0&&r.c[0]&&(t="-"+t)),t},p.valueOf=p.toJSON=function(){return R(this)},p._isBigNumber=!0,p[Symbol.toStringTag]="BigNumber",p[Symbol.for("nodejs.util.inspect.custom")]=p.valueOf,null!=t&&B.set(t),B}(),ta=e=>e instanceof tr?e:new tr(e),tn=(e,t=18)=>ta(e).multipliedBy(new tr(10).pow(t)),ti=(e,t=18)=>ta(e).dividedBy(new tr(10).pow(t)),to=Math.floor(84e3);function ts(e,t){return function(){return e.apply(t,arguments)}}var{toString:tl}=Object.prototype,{getPrototypeOf:tc}=Object,{iterator:td,toStringTag:tp}=Symbol,tu=(e=>t=>{let r=tl.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),tm=e=>(e=e.toLowerCase(),t=>tu(t)===e),th=e=>t=>typeof t===e,{isArray:tg}=Array,tf=th("undefined");function tb(e){return null!==e&&!tf(e)&&null!==e.constructor&&!tf(e.constructor)&&tx(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var ty=tm("ArrayBuffer"),tk=th("string"),tx=th("function"),tw=th("number"),tv=e=>null!==e&&"object"==typeof e,tT=e=>{if("object"!==tu(e))return!1;let t=tc(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(tp in e)&&!(td in e)},tE=tm("Date"),tB=tm("File"),tC=tm("Blob"),tU=tm("FileList"),tI=tm("URLSearchParams"),[tN,tR,tS,tA]=["ReadableStream","Request","Response","Headers"].map(tm);function tP(e,t,{allOwnKeys:r=!1}={}){let a,n;if(null!=e)if("object"!=typeof e&&(e=[e]),tg(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{let n;if(tb(e))return;let i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;for(a=0;a<o;a++)n=i[a],t.call(null,e[n],n,e)}}function tD(e,t){let r;if(tb(e))return null;t=t.toLowerCase();let a=Object.keys(e),n=a.length;for(;n-- >0;)if(t===(r=a[n]).toLowerCase())return r;return null}var tL="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,tO=e=>!tf(e)&&e!==tL,tF=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&tc(Uint8Array)),t_=tm("HTMLFormElement"),tM=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),tj=tm("RegExp"),t$=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),a={};tP(r,(r,n)=>{let i;!1!==(i=t(r,n,e))&&(a[n]=i||r)}),Object.defineProperties(e,a)},tW=tm("AsyncFunction"),tz=(a="function"==typeof setImmediate,n=tx(tL.postMessage),a?setImmediate:n?((e,t)=>
1(tL.addEventListener("message",({source:r,data:a})=>{r===tL&&a===e&&t.length&&t.shift()()},!1),r=>{t.push(r),tL.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),tV="undefined"!=typeof queueMicrotask?queueMicrotask.bind(tL):void 0!==O&&O.nextTick||tz,tH={isArray:tg,isArrayBuffer:ty,isBuffer:tb,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||tx(e.append)&&("formdata"===(t=tu(e))||"object"===t&&tx(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ty(e.buffer)},isString:tk,isNumber:tw,isBoolean:e=>!0===e||!1===e,isObject:tv,isPlainObject:tT,isEmptyObject:e=>{if(!tv(e)||tb(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:tN,isRequest:tR,isResponse:tS,isHeaders:tA,isUndefined:tf,isDate:tE,isFile:tB,isBlob:tC,isRegExp:tj,isFunction:tx,isStream:e=>tv(e)&&tx(e.pipe),isURLSearchParams:tI,isTypedArray:tF,isFileList:tU,forEach:tP,merge:function e(){let{caseless:t,skipUndefined:r}=tO(this)&&this||{},a={},n=(n,i)=>{let o=t&&tD(a,i)||i;tT(a[o])&&tT(n)?a[o]=e(a[o],n):tT(n)?a[o]=e({},n):tg(n)?a[o]=n.slice():r&&tf(n)||(a[o]=n)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&tP(arguments[e],n);return a},extend:(e,t,r,{allOwnKeys:a}={})=>(tP(t,(t,a)=>{r&&tx(t)?e[a]=ts(t,r):e[a]=t},{allOwnKeys:a}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,a)=>{let n,i,o,s={};if(t=t||{},null==e)return t;do{for(i=(n=Object.getOwnPropertyNames(e)).length;i-- >0;)o=n[i],(!a||a(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=!1!==r&&tc(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:tu,kindOfTest:tm,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let a=e.indexOf(t,r);return -1!==a&&a===r},toArray:e=>{if(!e)return null;if(tg(e))return e;let t=e.length;if(!tw(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,a=(e&&e[td]).call(e);for(;(r=a.next())&&!r.done;){let a=r.value;t.call(e,a[0],a[1])}},matchAll:(e,t)=>{let r,a=[];for(;null!==(r=e.exec(t));)a.push(r);return a},isHTMLForm:t_,hasOwnProperty:tM,hasOwnProp:tM,reduceDescriptors:t$,freezeMethods:e=>{t$(e,(t,r)=>{if(tx(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(tx(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(tg(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:tD,global:tL,isContextDefined:tO,isSpecCompliantForm:function(e){return!!(e&&tx(e.append)&&"FormData"===e[tp]&&e[td])},toJSONObject:e=>{let t=Array(10),r=(e,a)=>{if(tv(e)){if(t.indexOf(e)>=0)return;if(tb(e))return e;if(!("toJSON"in e)){t[a]=e;let n=tg(e)?[]:{};return tP(e,(e,t)=>{let i=r(e,a+1);tf(i)||(n[t]=i)}),t[a]=void 0,n}}return e};return r(e,0)},isAsyncFn:tW,isThenable:e=>e&&(tv(e)||tx(e))&&tx(e.then)&&tx(e.catch),setImmediate:tz,asap:tV,isIterable:e=>null!=e&&tx(e[td])};function tq(e,t,r,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}tH.inherits(tq,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:tH.toJSONObject(this.config),code:this.code,status:this.status}}});var tG=tq.prototype,tK={};function tJ(e){return tH.isPlainObject(e)||tH.isArray(e)}function tZ(e){return tH.endsWith(e,"[]")?e.slice(0,-2):e}function tQ(e,t,r){return e?e.concat(t).map(function(e,t){return e=tZ(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","E
1RR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{tK[e]={value:e}}),Object.defineProperties(tq,tK),Object.defineProperty(tG,"isAxiosError",{value:!0}),tq.from=(e,t,r,a,n,i)=>{let o=Object.create(tG);tH.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);let s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return tq.call(o,s,l,r,a,n),e&&null==o.cause&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};var tX=tH.toFlatObject(tH,{},null,function(e){return/^is[A-Z]/.test(e)}),tY=function(e,t,r){if(!tH.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let a=(r=tH.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!tH.isUndefined(t[e])})).metaTokens,n=r.visitor||c,i=r.dots,o=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&tH.isSpecCompliantForm(t);if(!tH.isFunction(n))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(tH.isDate(e))return e.toISOString();if(tH.isBoolean(e))return e.toString();if(!s&&tH.isBlob(e))throw new tq("Blob is not supported. Use a Buffer instead.");return tH.isArrayBuffer(e)||tH.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):F.from(e):e}function c(e,r,n){let s=e;if(e&&!n&&"object"==typeof e)if(tH.endsWith(r,"{}"))r=a?r:r.slice(0,-2),e=JSON.stringify(e);else{var c;if(tH.isArray(e)&&(c=e,tH.isArray(c)&&!c.some(tJ))||(tH.isFileList(e)||tH.endsWith(r,"[]"))&&(s=tH.toArray(e)))return r=tZ(r),s.forEach(function(e,a){tH.isUndefined(e)||null===e||t.append(!0===o?tQ([r],a,i):null===o?r:r+"[]",l(e))}),!1}return!!tJ(e)||(t.append(tQ(n,r,i),l(e)),!1)}let d=[],p=Object.assign(tX,{defaultVisitor:c,convertValue:l,isVisitable:tJ});if(!tH.isObject(e))throw TypeError("data must be an object");return!function e(r,a){if(!tH.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+a.join("."));d.push(r),tH.forEach(r,function(r,i){!0===(!(tH.isUndefined(r)||null===r)&&n.call(t,r,tH.isString(i)?i.trim():i,a,p))&&e(r,a?a.concat(i):[i])}),d.pop()}}(e),t};function t0(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function t1(e,t){this._pairs=[],e&&tY(e,this,t)}var t2=t1.prototype;function t3(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function t6(e,t,r){let a;if(!t)return e;let n=r&&r.encode||t3;tH.isFunction(r)&&(r={serialize:r});let i=r&&r.serialize;if(a=i?i(t,r):tH.isURLSearchParams(t)?t.toString():new t1(t,r).toString(n)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}t2.append=function(e,t){this._pairs.push([e,t])},t2.toString=function(e){let t=e?function(t){return e.call(this,t,t0)}:t0;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var t8=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){tH.forEach(this.handlers,function(t){null!==t&&e(t)})}},t7={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},t4="undefined"!=typeof URLSearchParams?URLSearchParams:t1,t5="undefined"!=typeof FormData?FormData:null,t9="undefined"!=typeof Blob?Blob:null,re={};(0,L.VA)(re,{hasBrowserEnv:()=>rt,hasStandardBrowserEnv:()=>ra,hasStandardBrowserWebWorkerEnv:()=>rn,navigator:()=>rr,origin:()=>ri});var rt="undefined"!=typeof window&&"undefined"!=typeof document,rr="object"==typeof navigator&&navigator||void 0,ra=rt&&(!rr||0>["ReactNative","NativeScript","NS"].indexOf(rr.product)),rn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ri=rt&&window.location.href||"http://localhost",ro={...re,isBrowser:!0,classes:{URLSearchParams:t4,FormData:t5,Blob:t9},protocols:["http","https","file","blob","url","data"]},rs=function(e){if(tH.isFormData(e)&&tH.isFunction(e.entries)){let t={};return tH.forEachEntry(e,(e,r)=>{!function e(t,r,a,n){let i=t[n++];if("__proto__"===i)return!0;let o=Number.isFinite(+i),s=n>=t.length;return(i=!i&&tH.isArray(a)?a.length:i,s)?tH.hasOwnProp(a,i)?a[i]=[a[i],r]:a[i]=r:(a[i]&&tH.isObject(a[i])||(a[i]=[]),e(t,r,a[i],n)&&tH.isArray(a[i])&&(a[i]=function(e){let t,r,a={},n=Object.keys(e),i=n.length;for(t=0;t<i;t++)a[r=n[t]]=e[r];return a}(a[i]))),!o}(tH.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null},rl={transitional:t7,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,a=t.getContentType()||"",n=a.indexOf("application/json")>-1,i=tH.isObject(e);
1if(i&&tH.isHTMLForm(e)&&(e=new FormData(e)),tH.isFormData(e))return n?JSON.stringify(rs(e)):e;if(tH.isArrayBuffer(e)||tH.isBuffer(e)||tH.isStream(e)||tH.isFile(e)||tH.isBlob(e)||tH.isReadableStream(e))return e;if(tH.isArrayBufferView(e))return e.buffer;if(tH.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(a.indexOf("application/x-www-form-urlencoded")>-1){var o,s;return(o=e,s=this.formSerializer,tY(o,new ro.classes.URLSearchParams,{visitor:function(e,t,r,a){return ro.isNode&&tH.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...s})).toString()}if((r=tH.isFileList(e))||a.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return tY(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(i||n){t.setContentType("application/json",!1);var l=e;if(tH.isString(l))try{return(0,JSON.parse)(l),tH.trim(l)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(l)}return e}],transformResponse:[function(e){let t=this.transitional||rl.transitional,r=t&&t.forcedJSONParsing,a="json"===this.responseType;if(tH.isResponse(e)||tH.isReadableStream(e))return e;if(e&&tH.isString(e)&&(r&&!this.responseType||a)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!r&&a){if("SyntaxError"===e.name)throw tq.from(e,tq.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ro.classes.FormData,Blob:ro.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};tH.forEach(["delete","get","head","post","put","patch"],e=>{rl.headers[e]={}});var rc=tH.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rd=Symbol("internals");function rp(e){return e&&String(e).trim().toLowerCase()}function ru(e){return!1===e||null==e?e:tH.isArray(e)?e.map(ru):String(e)}function rm(e,t,r,a,n){if(tH.isFunction(a))return a.call(this,t,r);if(n&&(t=r),tH.isString(t)){if(tH.isString(a))return -1!==t.indexOf(a);if(tH.isRegExp(a))return a.test(t)}}var rh=class{constructor(e){e&&this.set(e)}set(e,t,r){let a=this;function n(e,t,r){let n=rp(t);if(!n)throw Error("header name must be a non-empty string");let i=tH.findKey(a,n);i&&void 0!==a[i]&&!0!==r&&(void 0!==r||!1===a[i])||(a[i||t]=ru(e))}let i=(e,t)=>tH.forEach(e,(e,r)=>n(e,r,t));if(tH.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let a;if(tH.isString(e)&&(e=e.trim())&&(a=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(a.trim())))i((e=>{let t,r,a,n={};return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),t=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!t||n[t]&&rc[t]||("set-cookie"===t?n[t]?n[t].push(r):n[t]=[r]:n[t]=n[t]?n[t]+", "+r:r)}),n})(e),t);else if(tH.isObject(e)&&tH.isIterable(e)){let r={},a,n;for(let t of e){if(!tH.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[n=t[0]]=(a=r[n])?tH.isArray(a)?[...a,t[1]]:[a,t[1]]:t[1]}i(r,t)}else null!=e&&n(t,e,r)}return this}get(e,t){if(e=rp(e)){let r=tH.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1for(;t=a.exec(e);)r[t[1]]=t[2];return r}if(tH.isFunction(t))return t.call(this,e,r);if(tH.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rp(e)){let r=tH.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||rm(this,this[r],r,t)))}return!1}delete(e,t){let r=this,a=!1;function n(e){if(e=rp(e)){let n=tH.findKey(r,e);n&&(!t||rm(r,r[n],n,t))&&(delete r[n],a=!0)}}return tH.isArray(e)?e.forEach(n):n(e),a}clear(e){let t=Object.keys(this),r=t.length,a=!1;for(;r--;){let n=t[r];(!e||rm(this,this[n],n,e,!0))&&(delete this[n],a=!0)}return a}normalize(e){let t=this,r={};return tH.forEach(this,(a,n)=>{let i=tH.findKey(r,n);if(i){t[i]=ru(a),delete t[n];return}let o=e?n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(n).trim();o!==n&&delete t[n],t[o]=ru(a),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return tH.forEach(this,(r,a)=>{null!=r&&!1!==r&&(t[a]=e&&tH.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[rd]=this[rd]={accessors:{}}).accessors,r=this.prototype;function a(e){let a=rp(e);if(!t[a]){let n=tH.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(r,t+n,{value:function(r,a,n){return this[t].call(this,e,r,a,n)},configurable:!0})}),t[a]=!0}}return tH.isArray(e)?e.forEach(a):a(e),this}};function rg(e,t){let r=this||rl,a=t||r,n=rh.from(a.headers),i=a.data;return tH.forEach(e,function(e){i=e.call(r,i,n.normalize(),t?t.status:void 0)}),n.normalize(),i}function rf(e){return!!(e&&e.__CANCEL__)}function rb(e,t,r){tq.call(this,null==e?"canceled":e,tq.ERR_CANCELED,t,r),this.name="CanceledError"}function ry(e,t,r){let a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new tq("Request failed with status code "+r.status,[tq.ERR_BAD_REQUEST,tq.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}rh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),tH.reduceDescriptors(rh.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),tH.freezeMethods(rh),tH.inherits(rb,tq,{__CANCEL__:!0});var rk=function(e,t){let r,a=Array(e=e||10),n=Array(e),i=0,o=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),c=n[o];r||(r=l),a[i]=s,n[i]=l;let d=o,p=0;for(;d!==i;)p+=a[d++],d%=e;if((i=(i+1)%e)===o&&(o=(o+1)%e),l-r<t)return;let u=c&&l-c;return u?Math.round(1e3*p/u):void 0}},rx=function(e,t){let r,a,n=0,i=1e3/t,o=(t,i=Date.now())=>{n=i,r=null,a&&(clearTimeout(a),a=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=i?o(e,t):(r=e,a||(a=setTimeout(()=>{a=null,o(r)},i-s)))},()=>r&&o(r)]},rw=(e,t,r=3)=>{let a=0,n=rk(50,250);return rx(r=>{let i=r.loaded,o=r.lengthComputable?r.total:void 0,s=i-a,l=n(s);a=i,e({loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&i<=o?(o-i)/l:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})},r)},rv=(e,t)=>{let r=null!=e;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},rT=e=>(...t)=>tH.asap(()=>e(...t)),rE=ro.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ro.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ro.origin),ro.navigator&&/(msie|trident)/i.test(ro.navigator.userAgent)):()=>!0,rB=ro.hasStandardBrowserEnv?{write(e,t,r,a,n,i,o){if("undefined"==typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];tH.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),tH.isString(a)&&s.push(`path=${a}`),tH.isString(n)&&s.push(`domain=${n}`),!0===i&&s.push("secure"),tH.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function rC(e,t,r){let a=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(a||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}var rU=e=>e instanceof rh?{...e}:e;function rI(e,t){t=t||{};let r={};function a(e,t,r,a){return tH.isPlainObject(e)&&tH.isPlainObject(t)?tH.merge.call({caseless:a},e,t):tH.isPlainObject(t)?tH.merge({},t):tH.isArray(t)?t.slice():t}function n(e,t,r,n){return tH.isUndefined(t)?tH.isUndefined(e)?void 0:a(void 0,e,r,n):a(e,t,r,n)}function i(e,t){if(!tH.isUndefined(t))return a(void 0,t)}function o(e,t){return tH.isUndefined(t)?tH.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function s(r,n,i){return i in t?a(r,n):i in e?a(void 0,r):void 0}let l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
1dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,r)=>n(rU(e),rU(t),r,!0)};return tH.forEach(Object.keys({...e,...t}),function(a){let i=l[a]||n,o=i(e[a],t[a],a);tH.isUndefined(o)&&i!==s||(r[a]=o)}),r}var rN=e=>{let t=rI({},e),{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:i,headers:o,auth:s}=t;if(t.headers=o=rh.from(o),t.url=t6(rC(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),tH.isFormData(r)){if(ro.hasStandardBrowserEnv||ro.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(tH.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&o.set(e,r)})}}if(ro.hasStandardBrowserEnv&&(a&&tH.isFunction(a)&&(a=a(t)),a||!1!==a&&rE(t.url))){let e=n&&i&&rB.read(i);e&&o.set(n,e)}return t},rR="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let a,n,i,o,s,l=rN(e),c=l.data,d=rh.from(l.headers).normalize(),{responseType:p,onUploadProgress:u,onDownloadProgress:m}=l;function h(){o&&o(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(a),l.signal&&l.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function f(){if(!g)return;let a=rh.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());ry(function(e){t(e),h()},function(e){r(e),h()},{data:p&&"text"!==p&&"json"!==p?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:a,config:e,request:g}),g=null}g.open(l.method.toUpperCase(),l.url,!0),g.timeout=l.timeout,"onloadend"in g?g.onloadend=f:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(f)},g.onabort=function(){g&&(r(new tq("Request aborted",tq.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){let a=new tq(t&&t.message?t.message:"Network Error",tq.ERR_NETWORK,e,g);a.event=t||null,r(a),g=null},g.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",a=l.transitional||t7;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),r(new tq(t,a.clarifyTimeoutError?tq.ETIMEDOUT:tq.ECONNABORTED,e,g)),g=null},void 0===c&&d.setContentType(null),"setRequestHeader"in g&&tH.forEach(d.toJSON(),function(e,t){g.setRequestHeader(t,e)}),tH.isUndefined(l.withCredentials)||(g.withCredentials=!!l.withCredentials),p&&"json"!==p&&(g.responseType=l.responseType),m&&([i,s]=rw(m,!0),g.addEventListener("progress",i)),u&&g.upload&&([n,o]=rw(u),g.upload.addEventListener("progress",n),g.upload.addEventListener("loadend",o)),(l.cancelToken||l.signal)&&(a=t=>{g&&(r(!t||t.type?new rb(null,e,g):t),g.abort(),g=null)},l.cancelToken&&l.cancelToken.subscribe(a),l.signal&&(l.signal.aborted?a():l.signal.addEventListener("abort",a)));let b=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l.url);if(b&&-1===ro.protocols.indexOf(b))return void r(new tq("Unsupported protocol "+b+":",tq.ERR_BAD_REQUEST,e));g.send(c||null)})},rS=function*(e,t){let r,a=e.byteLength;if(a<t)return void(yield e);let n=0;for(;n<a;)r=n+t,yield e.slice(n,r),n=r},rA=async function*(e,t){for await(let r of rP(e))yield*rS(r,t)},rP=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},rD=(e,t,r,a)=>{let n,i=rA(e,t),o=0,s=e=>{!n&&(n=!0,a&&a(e))};return new ReadableStream({async pull(e){try{let{done:t,value:a}=await i.next();if(t){s(),e.close();return}let n=a.byteLength;if(r){let e=o+=n;r(e)}e.enqueue(new Uint8Array(a))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},{isFunction:rL}=tH,rO=(({Request:e,Response:t})=>({Request:e,Response:t}))(tH.global),{ReadableStream:rF,TextEncoder:r_}=tH.global,rM=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},rj=e=>{let t,{fetch:r,Request:a,Response:n}=e=tH.merge.call({skipUndefined:!0},rO,e),i=r?rL(r):"function"==typeof fetch,o=rL(a),s=rL(n);if(!i)return!1;let l=i&&rL(rF),c=i&&("function"==typeof r_?(t=new r_,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),d=o&&l&&rM(()=>{let e=!1,t=new a(ro.origin,{body:new rF,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),p=s&&l&&rM(()=>
1tH.isReadableStream(new n("").body)),u={stream:p&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{u[e]||(u[e]=(t,r)=>{let a=t&&t[e];if(a)return a.call(t);throw new tq(`Response type '${e}' is not supported`,tq.ERR_NOT_SUPPORT,r)})});let m=async e=>{if(null==e)return 0;if(tH.isBlob(e))return e.size;if(tH.isSpecCompliantForm(e)){let t=new a(ro.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return tH.isArrayBufferView(e)||tH.isArrayBuffer(e)?e.byteLength:(tH.isURLSearchParams(e)&&(e+=""),tH.isString(e))?(await c(e)).byteLength:void 0},h=async(e,t)=>{let r=tH.toFiniteNumber(e.getContentLength());return null==r?m(t):r};return async e=>{let t,{url:i,method:s,data:l,signal:c,cancelToken:m,timeout:g,onDownloadProgress:f,onUploadProgress:b,responseType:y,headers:k,withCredentials:x="same-origin",fetchOptions:w}=rN(e),v=r||fetch;y=y?(y+"").toLowerCase():"text";let T=((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,a=new AbortController,n=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;a.abort(t instanceof tq?t:new rb(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,n(new tq(`timeout ${t} of ms exceeded`,tq.ETIMEDOUT))},t),o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));let{signal:s}=a;return s.unsubscribe=()=>tH.asap(o),s}})([c,m&&m.toAbortSignal()],g),E=null,B=T&&T.unsubscribe&&(()=>{T.unsubscribe()});try{if(b&&d&&"get"!==s&&"head"!==s&&0!==(t=await h(k,l))){let e,r=new a(i,{method:"POST",body:l,duplex:"half"});if(tH.isFormData(l)&&(e=r.headers.get("content-type"))&&k.setContentType(e),r.body){let[e,a]=rv(t,rw(rT(b)));l=rD(r.body,65536,e,a)}}tH.isString(x)||(x=x?"include":"omit");let r=o&&"credentials"in a.prototype,c={...w,signal:T,method:s.toUpperCase(),headers:k.normalize().toJSON(),body:l,duplex:"half",credentials:r?x:void 0};E=o&&new a(i,c);let m=await (o?v(E,w):v(i,c)),g=p&&("stream"===y||"response"===y);if(p&&(f||g&&B)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=m[t]});let t=tH.toFiniteNumber(m.headers.get("content-length")),[r,a]=f&&rv(t,rw(rT(f),!0))||[];m=new n(rD(m.body,65536,r,()=>{a&&a(),B&&B()}),e)}y=y||"text";let C=await u[tH.findKey(u,y)||"text"](m,e);return!g&&B&&B(),await new Promise((t,r)=>{ry(t,r,{data:C,headers:rh.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:E})})}catch(t){if(B&&B(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new tq("Network Error",tq.ERR_NETWORK,e,E),{cause:t.cause||t});throw tq.from(t,t&&t.code,e,E)}}},r$=new Map,rW=e=>{let t=e&&e.env||{},{fetch:r,Request:a,Response:n}=t,i=[a,n,r],o=i.length,s,l,c=r$;for(;o--;)s=i[o],void 0===(l=c.get(s))&&c.set(s,l=o?new Map:rj(t)),c=l;return l};rW();var rz={http:null,xhr:rR,fetch:{get:rW}};tH.forEach(rz,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});var rV=e=>`- ${e}`,rH=e=>tH.isFunction(e)||null===e||!1===e,rq={getAdapter:function(e,t){let r,a,{length:n}=e=tH.isArray(e)?e:[e],i={};for(let o=0;o<n;o++){let n;if(a=r=e[o],!rH(r)&&void 0===(a=rz[(n=String(r)).toLowerCase()]))throw new tq(`Unknown adapter '${n}'`);
1if(a&&(tH.isFunction(a)||(a=a.get(t))))break;i[n||"#"+o]=a}if(!a){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new tq("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(rV).join("\n"):" "+rV(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a}};function rG(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rb(null,e)}function rK(e){return rG(e),e.headers=rh.from(e.headers),e.data=rg.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rq.getAdapter(e.adapter||rl.adapter,e)(e).then(function(t){return rG(e),t.data=rg.call(e,e.transformResponse,t),t.headers=rh.from(t.headers),t},function(t){return!rf(t)&&(rG(e),t&&t.response&&(t.response.data=rg.call(e,e.transformResponse,t.response),t.response.headers=rh.from(t.response.headers))),Promise.reject(t)})}var rJ="1.13.2",rZ={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{rZ[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var rQ={};rZ.transitional=function(e,t,r){function a(e,t){return"[Axios v"+rJ+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,i)=>{if(!1===e)throw new tq(a(n," has been removed"+(t?" in "+t:"")),tq.ERR_DEPRECATED);return t&&!rQ[n]&&(rQ[n]=!0,console.warn(a(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}},rZ.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var rX={assertOptions:function(e,t,r){if("object"!=typeof e)throw new tq("options must be an object",tq.ERR_BAD_OPTION_VALUE);let a=Object.keys(e),n=a.length;for(;n-- >0;){let i=a[n],o=t[i];if(o){let t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new tq("option "+i+" must be "+r,tq.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new tq("Unknown option "+i,tq.ERR_BAD_OPTION)}},validators:rZ},rY=rX.validators,r0=class{constructor(e){this.defaults=e||{},this.interceptors={request:new t8,response:new t8}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,a;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:n,paramsSerializer:i,headers:o}=t=rI(this.defaults,t);void 0!==n&&rX.assertOptions(n,{silentJSONParsing:rY.transitional(rY.boolean),forcedJSONParsing:rY.transitional(rY.boolean),clarifyTimeoutError:rY.transitional(rY.boolean)},!1),null!=i&&(tH.isFunction(i)?t.paramsSerializer={serialize:i}:rX.assertOptions(i,{encode:rY.function,serialize:rY.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),rX.assertOptions(t,{baseUrl:rY.spelling("baseURL"),withXsrfToken:rY.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&tH.merge(o.common,o[t.method]);o&&tH.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=rh.concat(s,o);let l=[],c=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(c=c&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let p=0;if(!c){let e=[rK.bind(this),void 0];for(e.unshift(...l),e.push(...d),a=e.length,r=Promise.resolve(t);p<a;)r=r.then(e[p++],e[p++]);return r}a=l.length;let u=t;for(;p<a;){let e=l[p++],t=l[p++];try{u=e(u)}catch(e){t.call(this,e);break}}try{r=rK.call(this,u)}catch(e){return Promise.reject(e)}for(p=0,a=d.length;p<a;)r=r.then(d[p++],d[p++]);return r}getUri(e){return t6(rC((e=rI(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};tH.forEach(["delete","get","head","options"],function(e){r0.prototype[e]=function(t,r){return this.request(rI(r||{},{method:e,url:t,data:(r||{}).data}))}}),tH.forEach(["post","put","patch"],function(e){function t(t){return function(r,a,n){return this.request(rI(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:a}))}}r0.prototype[e]=t(),r0.prototype[e+"Form"]=t(!0)});var r1=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,a=new Promise(e=>{r.subscribe(e),t=e}).then(e);return a.cancel=function(){r.unsubscribe(t)},a},e(function(e,a,n){r.reason||(r.reason=new rb(e,a,n),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
1subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},r2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(r2).forEach(([e,t])=>{r2[t]=e});var r3=function e(t){let r=new r0(t),a=ts(r0.prototype.request,r);return tH.extend(a,r0.prototype,r,{allOwnKeys:!0}),tH.extend(a,r,null,{allOwnKeys:!0}),a.create=function(r){return e(rI(t,r))},a}(rl);r3.Axios=r0,r3.CanceledError=rb,r3.CancelToken=r1,r3.isCancel=rf,r3.VERSION=rJ,r3.toFormData=tY,r3.AxiosError=tq,r3.Cancel=r3.CanceledError,r3.all=function(e){return Promise.all(e)},r3.spread=function(e){return function(t){return e.apply(null,t)}},r3.isAxiosError=function(e){return tH.isObject(e)&&!0===e.isAxiosError},r3.mergeConfig=rI,r3.AxiosHeaders=rh,r3.formToJSON=e=>rs(tH.isHTMLForm(e)?new FormData(e):e),r3.getAdapter=rq.getAdapter,r3.HttpStatusCode=r2,r3.default=r3;var{Axios:r6,AxiosError:r8,CanceledError:r7,isCancel:r4,CancelToken:r5,VERSION:r9,all:ae,Cancel:at,isAxiosError:ar,spread:aa,toFormData:an,AxiosHeaders:ai,HttpStatusCode:ao,formToJSON:as,getAdapter:al,mergeConfig:ac}=r3;(0,L.f1)(_(),1);var ad={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",103:"Early Hints",426:"Upgrade Required",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"}
1,ap={Accepted:202,"Bad Gateway":502,"Bad Request":400,Conflict:409,Continue:100,Created:201,"Expectation Failed":417,"Failed Dependency":424,Forbidden:403,"Gateway Timeout":504,Gone:410,"HTTP Version Not Supported":505,"I'm a teapot":418,"Insufficient Space on Resource":419,"Insufficient Storage":507,"Internal Server Error":500,"Length Required":411,Locked:423,"Method Failure":420,"Method Not Allowed":405,"Moved Permanently":301,"Moved Temporarily":302,"Multi-Status":207,"Multiple Choices":300,"Network Authentication Required":511,"No Content":204,"Non Authoritative Information":203,"Not Acceptable":406,"Not Found":404,"Not Implemented":501,"Not Modified":304,OK:200,"Partial Content":206,"Payment Required":402,"Permanent Redirect":308,"Precondition Failed":412,"Precondition Required":428,Processing:102,"Early Hints":103,"Upgrade Required":426,"Proxy Authentication Required":407,"Request Header Fields Too Large":431,"Request Timeout":408,"Request Entity Too Large":413,"Request-URI Too Long":414,"Requested Range Not Satisfiable":416,"Reset Content":205,"See Other":303,"Service Unavailable":503,"Switching Protocols":101,"Temporary Redirect":307,"Too Many Requests":429,Unauthorized:401,"Unavailable For Legal Reasons":451,"Unprocessable Entity":422,"Unsupported Media Type":415,"Use Proxy":305,"Misdirected Request":421};!function(e){e[e.CONTINUE=100]="CONTINUE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.PROCESSING=102]="PROCESSING",e[e.EARLY_HINTS=103]="EARLY_HINTS",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.USE_PROXY=305]="USE_PROXY",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",e[e.METHOD_FAILURE=420]="METHOD_FAILURE",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.LOCKED=423]="LOCKED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED"}(l||(l={}));var au=function(){return(au=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};au(au({},{ACCEPTED:202,BAD_GATEWAY:502,BAD_REQUEST:400,CONFLICT:409,CONTINUE:100,CREATED:201,EXPECTATION_FAILED:417,FORBIDDEN:403,GATEWAY_TIMEOUT:504,GONE:410,HTTP_VERSION_NOT_SUPPORTED:505,IM_A_TEAPOT:418,INSUFFICIENT_SPACE_ON_RESOURCE:419,INSUFFICIENT_STORAGE:507,INTERNAL_SERVER_ERROR:500,LENGTH_REQUIRED:411,LOCKED:423,METHOD_FAILURE:420,METHOD_NOT_ALLOWED:405,MOVED_PE
1RMANENTLY:301,MOVED_TEMPORARILY:302,MULTI_STATUS:207,MULTIPLE_CHOICES:300,NETWORK_AUTHENTICATION_REQUIRED:511,NO_CONTENT:204,NON_AUTHORITATIVE_INFORMATION:203,NOT_ACCEPTABLE:406,NOT_FOUND:404,NOT_IMPLEMENTED:501,NOT_MODIFIED:304,OK:200,PARTIAL_CONTENT:206,PAYMENT_REQUIRED:402,PERMANENT_REDIRECT:308,PRECONDITION_FAILED:412,PRECONDITION_REQUIRED:428,PROCESSING:102,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_HEADER_FIELDS_TOO_LARGE:431,REQUEST_TIMEOUT:408,REQUEST_TOO_LONG:413,REQUEST_URI_TOO_LONG:414,REQUESTED_RANGE_NOT_SATISFIABLE:416,RESET_CONTENT:205,SEE_OTHER:303,SERVICE_UNAVAILABLE:503,SWITCHING_PROTOCOLS:101,TEMPORARY_REDIRECT:307,TOO_MANY_REQUESTS:429,UNAUTHORIZED:401,UNPROCESSABLE_ENTITY:422,UNSUPPORTED_MEDIA_TYPE:415,USE_PROXY:305}),{getStatusCode:function(e){var t=ap[e];if(!t)throw Error("Reason phrase does not exist: "+e);return t},getStatusText:function(e){var t=ad[e.toString()];if(!t)throw Error("Status code does not exist: "+e);return t}});var am=e=>e.split("/").map(e=>e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")).join("/"),ah=e=>e[0].toUpperCase()+e.slice(1);function ag(e){return(ag="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function af(e,t,r){var a;return(a=function(e,t){if("object"!=ag(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t);if("object"!=ag(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ag(a)?a:a+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ab=class{constructor(e,t={headers:{"Content-Type":"application/json"}}){af(this,"client",void 0),af(this,"config",{}),this.client=r3.create({baseURL:e,timeout:15e3,...t}),this.config={}}setConfig(e){return this.config=e,this}get(e,t={}){return this.client.get(e,{params:t,...this.config})}post(e,t={}){return this.client.post(e,t,this.config)}put(e,t={}){return this.client.put(e,t,this.config)}delete(e,t={}){return this.client.delete(e,{params:t,...this.config})}},ay={Mainnet:1,Ropsten:3,Rinkeby:4,Goerli:5,Kovan:42,Injective:888,Sepolia:0xaa36a7,Ganache:1337,HardHat:31337,MainnetEvm:1776,DevnetEvm:1337,TestnetEvm:1439},ak={Mainnet:"injective-1",Testnet:"injective-888",Devnet:"injective-777"};function ax(e,t,r){let a=e[t.name];if("function"==typeof a)return a;let n=e[r];return"function"==typeof n?n:r=>t(e,r)}var aw=class extends A.Cf{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}},av="/docs/contract/encodeEventTopics";function aT(e){let{abi:t,eventName:r,args:a}=e,n=t[0];if(r){let e=(0,A.iY)({abi:t,name:r});if(!e)throw new A.M_(r,{docsPath:av});n=e}if("event"!==n.type)throw new A.M_(void 0,{docsPath:av});let i=[];if(a&&"inputs"in n){let e=n.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(a)?a:Object.values(a).length>0?e?.map(e=>a[e.name])??[]:[];t.length>0&&(i=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((a,n)=>aE({param:e,value:t[r][n]})):void 0!==t[r]&&null!==t[r]?aE({param:e,value:t[r]}):null)??[])}if(n.anonymous)return i;let o=(0,A.Bp)(n);return[(0,A.h2)(o),...i]}function aE({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,A.So)((0,A.ZJ)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new aw(e.type);return(0,A.hd)([e],[t])}function aB(e,{method:t}){let r={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:a,status:n,transport:i})=>{"success"===n&&t===e&&(r[a]=i.request)}),t=>r[t]||e.request}async function aC(e,t){let{address:r,abi:a,args:n,eventName:i,fromBlock:o,strict:s,toBlock:l}=t,c=aB(e,{method:"eth_newFilter"}),d=i?aT({abi:a,args:n,eventName:i}):void 0,p=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:"bigint"==typeof o?(0,A.cK)(o):o,toBlock:"bigint"==typeof l?(0,A.cK)(l):l,topics:d}]});return{abi:a,args:n,eventName:i,id:p,request:c(p),strict:!!s,type:"event"}}function aU(e,{abi:t,address:r,args:a,docsPath:n,functionName:i,sender:o}){let s=e instanceof A.$S?e:e instanceof A.Cf?e.walk(e=>"data"in e)||e.walk():{},{code:l,data:c,details:d,message:p,shortMessage:u}=s,m=e instanceof A.O?new A.rR({functionName:i,cause:e}
1):[3,A.bq.code].includes(l)&&(c||d||p||u)||l===A.Di.code&&"execution reverted"===d&&c?new A.M({abi:t,data:"object"==typeof c?c.data:c,functionName:i,message:s instanceof A.J8?d:u??p,cause:e}):e;return new A.bG(m,{abi:t,args:a,contractAddress:r,docsPath:n,functionName:i,sender:o})}async function aI({hash:e,signature:t}){let a=(0,A.qv)(e)?e:(0,A.nj)(e),{secp256k1:n}=await r.e(9828).then(r.bind(r,49828)),i=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:r,v:a,yParity:i}=t,o=aN(Number(i??a));return new n.Signature((0,A.uU)(e),(0,A.uU)(r)).addRecoveryBit(o)}let e=(0,A.qv)(t)?t:(0,A.nj)(t);if(65!==(0,A.Ej)(e))throw Error("invalid signature length");let r=aN((0,A.ME)(`0x${e.slice(130)}`));return n.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(r)})().recoverPublicKey(a.substring(2)).toHex(!1);return`0x${i}`}function aN(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}async function aR({hash:e,signature:t}){var r=await aI({hash:e,signature:t});let a=(0,A.So)(`0x${r.substring(4)}`).substring(26);return(0,A.XG)(`0x${a}`)}function aS(e,t="hex"){let r=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),r=aA(t);return{length:t<=55?1+t:1+r+t,encode(a){for(let{encode:n}of(t<=55?a.pushByte(192+t):(a.pushByte(247+r),1===r?a.pushUint8(t):2===r?a.pushUint16(t):3===r?a.pushUint24(t):a.pushUint32(t)),e))n(a)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,A.aT)(e):e,r=aA(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),a=(0,A.E_)(new Uint8Array(r.length));return(r.encode(a),"hex"===t)?(0,A.My)(a.bytes):a.bytes}function aA(e){if(e<256)return 1;if(e<65536)return 2;if(e<0x1000000)return 3;if(e<0x100000000)return 4;throw new A.Cf("Length is too large.")}async function aP(e){let{authorization:t,signature:r}=e;return aR({hash:function(e){let{chainId:t,nonce:r,to:a}=e,n=e.contractAddress??e.address,i=(0,A.So)((0,A.aP)(["0x05",aS([t?(0,A.cK)(t):"0x",n,r?(0,A.cK)(r):"0x"])]));return"bytes"===a?(0,A.aT)(i):i}(t),signature:r??t})}var aD=class extends A.Cf{constructor(e,{account:t,docsPath:r,chain:a,data:n,gas:i,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:l,nonce:c,to:d,value:p}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,A.aO)({from:t?.address,to:d,value:void 0!==p&&`${(0,A.ck)(p)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:n,gas:i,gasPrice:void 0!==o&&`${(0,A.Q_)(o)} gwei`,maxFeePerGas:void 0!==s&&`${(0,A.Q_)(s)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,A.Q_)(l)} gwei`,nonce:c})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}},aL=class extends A.Cf{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}},aO=class extends A.Cf{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}},aF=class extends A.Cf{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,A.Q_)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}},a_=class extends A.Cf{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}},aM={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function aj(e,t){let r={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,...null!=e.blockTimestamp&&{blockTimestamp:BigInt(e.blockTimestamp)},chainId:e.chainId?(0,A.ME)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,A.ME)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?aM[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(r.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),r.yParity=(()=>
vendor: 4,297 bytes, line 1
1{if(e.yParity)return Number(e.yParity);if("bigint"==typeof r.v){if(0n===r.v||27n===r.v)return 0;if(1n===r.v||28n===r.v)return 1;if(r.v>=35n)return+(r.v%2n===0n)}})(),"legacy"===r.type&&(delete r.accessList,delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.yParity),"eip2930"===r.type&&(delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),"eip1559"===r.type&&delete r.maxFeePerBlobGas,r}var a$=(0,A.qQ)("transaction",aj);function aW(e,t){let r=(e.transactions??[]).map(e=>"string"==typeof e?e:aj(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}var az=(0,A.qQ)("block",aW);async function aV(e,{blockHash:t,blockNumber:r,blockTag:a=e.experimental_blockTag??"latest",includeTransactions:n}={}){let i=n??!1,o=void 0!==r?(0,A.cK)(r):void 0,s=null;if(!(s=t?await e.request({method:"eth_getBlockByHash",params:[t,i]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[o||a,i]},{dedupe:!!o})))throw new a_({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||aW)(s,"getBlock")}async function aH(e){return BigInt(await e.request({method:"eth_gasPrice"}))}async function aq(e,t){return aG(e,t)}async function aG(e,t){let{block:r,chain:a=e.chain,request:n}=t||{};try{let t=a?.fees?.maxPriorityFeePerGas??a?.fees?.defaultPriorityFee;if("function"==typeof t){let a=r||await ax(e,aV,"getBlock")({}),i=await t({block:a,client:e,request:n});if(null===i)throw Error();return i}if(void 0!==t)return t;let i=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,A.uU)(i)}catch{let[t,a]=await Promise.all([r?Promise.resolve(r):ax(e,aV,"getBlock")({}),ax(e,aH,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new aO;let n=a-t.baseFeePerGas;if(n<0n)return 0n;return n}}async function aK(e,t){return aJ(e,t)}async function aJ(e,t){let{block:r,chain:a=e.chain,request:n,type:i="eip1559"}=t||{},o=await (async()=>"function"==typeof a?.fees?.baseFeeMultiplier?a.fees.baseFeeMultiplier({block:r,client:e,request:n}):a?.fees?.baseFeeMultiplier??1.2)();if(o<1)throw new aL;let s=o.toString().split(".")[1]?.length??0,l=10**s,c=e=>e*BigInt(Math.ceil(o*l))/BigInt(l),d=r||await ax(e,aV,"getBlock")({});if("function"==typeof a?.fees?.estimateFeesPerGas){let t=await a.fees.estimateFeesPerGas({block:r,client:e,multiply:c,request:n,type:i});if(null!==t)return t}if("eip1559"===i){if("bigint"!=typeof d.baseFeePerGas)throw new aO;let t="bigint"==typeof n?.maxPriorityFeePerGas?n.maxPriorityFeePerGas:await aG(e,{block:d,chain:a,request:n}),r=c(d.baseFeePerGas);return{maxFeePerGas:n?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:n?.gasPrice??c(await ax(e,aH,"getGasPrice")({}))}}async function aZ(e,{address:t,blockHash:r,blockNumber:a,blockTag:n="latest",requireCanonical:i}){let o=(0,A.O$)({blockHash:r,blockNumber:a,blockTag:n,requireCanonical:i}),s=await e.request({method:"eth_getTransactionCount",params:[t,o]},{dedupe:"bigint"==typeof a||void 0!==r});return(0,A.ME)(s)}function aQ(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,A.aT)(e)):e.blobs,n=[];for(let e of a)n.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===r?n:n.map(e=>(0,A.My)(e))}function aX(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,A.aT)(e)):e.blobs,n="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,A.aT)(e)):e.commitments,i=[];for(let e=0;e<a.length;e++){let r=a[e],o=n[e];i.push(Uint8Array.from(t.computeBlobKzgProof(r,o)))}return"bytes"===r?i:i.map(e=>(0,A.My)(e))}function aY(e,t){let r=(0,I.sc)((0,A.qv)(e,{strict:!1})?(0,A.ZJ)(e):e);return"bytes"===(t||"hex")?r:(0,A.nj)(r)}
1function a0(e){let{commitments:t,version:r}=e,a=e.to??("string"==typeof t[0]?"hex":"bytes"),n=[];for(let e of t)n.push(function(e){let{commitment:t,version:r=1}=e,a=e.to??("string"==typeof t?"hex":"bytes"),n=aY(t,"bytes");return n.set([r],0),"bytes"===a?n:(0,A.My)(n)}({commitment:e,to:a,version:r}));return n}(0,I.P8)();var a1=class extends A.Cf{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}},a2=class extends A.Cf{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}},a3=class extends A.Cf{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}},a6=class extends A.Cf{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}};function a8(e){let{data:t,kzg:r,to:a}=e,n=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),r="string"==typeof e.data?(0,A.aT)(e.data):e.data,a=(0,A.Ej)(r);if(!a)throw new a2;if(a>761855)throw new a1({maxSize:761855,size:a});let n=[],i=!0,o=0;for(;i;){let e=(0,A.E_)(new Uint8Array(131072)),t=0;for(;t<4096;){let a=r.slice(o,o+31);if(e.pushByte(0),e.pushBytes(a),a.length<31){e.pushByte(128),i=!1;break}t++,o+=31}n.push(e)}return"bytes"===t?n.map(e=>e.bytes):n.map(e=>(0,A.My)(e.bytes))}({data:t,to:a}),i=e.commitments??aQ({blobs:n,kzg:r,to:a}),o=e.proofs??aX({blobs:n,commitments:i,kzg:r,to:a}),s=[];for(let e=0;e<n.length;e++)s.push({blob:n[e],commitment:i[e],proof:o[e]});return s}function a7(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new A.Vg({transaction:e})}function a4(e,{docsPath:t,...r}){let a=(()=>{let t=(0,A.lV)(e,r);return t instanceof A.RM?e:t})();return new A.$s(a,{docsPath:t,...r})}async function a5(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,A.ME)(t)}async function a9(e,t){let{account:r=e.account,accessList:a,authorizationList:n,chain:i=e.chain,blobVersionedHashes:o,blobs:s,data:l,gas:c,gasPrice:d,maxFeePerBlobGas:p,maxFeePerGas:u,maxPriorityFeePerGas:m,nonce:h,nonceManager:g,to:f,type:b,value:y,...k}=t,x=await (async()=>{if(!r||!g||void 0!==h)return h;let t=(0,A.J5)(r),a=i?i.id:await ax(e,a5,"getChainId")({});return await g.consume({address:t.address,chainId:a,client:e})})();(0,A.c3)(t);let w=i?.formatters?.transactionRequest?.format,v=(w||A.Bv)({...(0,A.o6)(k,{format:w}),account:r?(0,A.J5)(r):void 0,accessList:a,authorizationList:n,blobs:s,blobVersionedHashes:o,data:l,gas:c,gasPrice:d,maxFeePerBlobGas:p,maxFeePerGas:u,maxPriorityFeePerGas:m,nonce:x,to:f,type:b,value:y},"fillTransaction");try{let r=await e.request({method:"eth_fillTransaction",params:[v]}),a=(i?.formatters?.transaction?.format||aj)(r.tx);delete a.blockHash,delete a.blockNumber,delete a.r,delete a.s,delete a.transactionIndex,delete a.v,delete a.yParity,a.data=a.input,a.gas&&(a.gas=t.gas??a.gas),a.gasPrice&&(a.gasPrice=t.gasPrice??a.gasPrice),a.maxFeePerBlobGas&&(a.maxFeePerBlobGas=t.maxFeePerBlobGas??a.maxFeePerBlobGas),a.maxFeePerGas&&(a.maxFeePerGas=t.maxFeePerGas??a.maxFeePerGas),a.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=t.maxPriorityFeePerGas??a.maxPriorityFeePerGas),void 0!==a.nonce&&(a.nonce=t.nonce??a.nonce);let n=await (async()=>{if("function"==typeof i?.fees?.baseFeeMultiplier){let r=await ax(e,aV,"getBlock")({});return i.fees.baseFeeMultiplier({block:r,client:e,request:t})}return i?.fees?.baseFeeMultiplier??1.2})();if(n<1)throw new aL;let o=n.toString().split(".")[1]?.length??0,s=10**o,l=e=>e*BigInt(Math.ceil(n*s))/BigInt(s);return a.feePayerSignature||(a.maxFeePerGas&&!t.maxFeePerGas&&(a.maxFeePerGas=l(a.maxFeePerGas)),a.gasPrice&&!t.gasPrice&&(a.gasPrice=l(a.gasPrice))),{raw:r.raw,transaction:{from:v.from,...a},...r.capabilities?{capabilities:r.capabilities}:{}}}catch(r){throw a4(r,{...t,chain:e.chain})}}var ne=["blobVersionedHashes","chainId","fees","gas","nonce","type"],nt=ne
1w Map,nr=new A.AB(128);async function na(e,t){let r,a,n=t;n.account??=e.account,n.parameters??=ne;let{account:i,chain:o=e.chain,nonceManager:s,parameters:l}=n,c="function"==typeof o?.prepareTransactionRequest?{fn:o.prepareTransactionRequest,runAt:["beforeFillTransaction"]}:Array.isArray(o?.prepareTransactionRequest)?{fn:o.prepareTransactionRequest[0],runAt:o.prepareTransactionRequest[1].runAt}:void 0;async function d(){return r?r:void 0!==n.chainId?n.chainId:o?o.id:r=await ax(e,a5,"getChainId")({})}let p=i?(0,A.J5)(i):i,u=n.nonce;if(l.includes("nonce")&&void 0===u&&p&&s){let t=await d();u=await s.consume({address:p.address,chainId:t,client:e})}c?.fn&&c.runAt?.includes("beforeFillTransaction")&&(n=await c.fn({...n,chain:o},{phase:"beforeFillTransaction"}),u??=n.nonce);let m=(!(l.includes("blobVersionedHashes")||l.includes("sidecars"))||!n.kzg||!n.blobs)&&!1!==nr.get(e.uid)&&["fees","gas"].some(e=>l.includes(e))&&(l.includes("chainId")&&"number"!=typeof n.chainId||l.includes("nonce")&&"number"!=typeof u||l.includes("fees")&&"bigint"!=typeof n.gasPrice&&("bigint"!=typeof n.maxFeePerGas||"bigint"!=typeof n.maxPriorityFeePerGas)||l.includes("gas")&&"bigint"!=typeof n.gas)?await ax(e,a9,"fillTransaction")({...n,nonce:u}).then(t=>{let{chainId:r,from:a,gas:i,gasPrice:o,nonce:s,maxFeePerBlobGas:l,maxFeePerGas:c,maxPriorityFeePerGas:d,type:p,...u}=t.transaction;return nr.set(e.uid,!0),{...n,...a?{from:a}:{},...p&&!n.type?{type:p}:{},...void 0!==r?{chainId:r}:{},...void 0!==i?{gas:i}:{},...void 0!==o?{gasPrice:o}:{},...void 0!==s?{nonce:s}:{},...void 0!==l&&"legacy"!==n.type&&"eip2930"!==n.type?{maxFeePerBlobGas:l}:{},...void 0!==c&&"legacy"!==n.type&&"eip2930"!==n.type?{maxFeePerGas:c}:{},...void 0!==d&&"legacy"!==n.type&&"eip2930"!==n.type?{maxPriorityFeePerGas:d}:{},..."nonceKey"in u&&void 0!==u.nonceKey?{nonceKey:u.nonceKey}:{},..."keyAuthorization"in u&&void 0!==u.keyAuthorization&&null!==u.keyAuthorization&&!("keyAuthorization"in n)?{keyAuthorization:u.keyAuthorization}:{},..."feePayerSignature"in u&&void 0!==u.feePayerSignature&&null!==u.feePayerSignature?{feePayerSignature:u.feePayerSignature}:{},..."feeToken"in u&&void 0!==u.feeToken&&null!==u.feeToken&&!("feeToken"in n)?{feeToken:u.feeToken}:{},...t.capabilities?{_capabilities:t.capabilities}:{}}}).catch(t=>{if("TransactionExecutionError"!==t.name)return n;if(t.walk?.(e=>"ExecutionRevertedError"===e.name))throw t;return t.walk?.(e=>"MethodNotFoundRpcError"===e.name||"MethodNotSupportedRpcError"===e.name||e.message?.includes("eth_fillTransaction is not available"))&&nr.set(e.uid,!1),n}):n;u??=m.nonce;let{blobs:h,gas:g,kzg:f,type:b}=n={...m,...p?{from:p?.address}:{},...void 0!==u?{nonce:u}:{}};async function y(){return a||(a=await ax(e,aV,"getBlock")({blockTag:"latest"}))}if(c?.fn&&c.runAt?.includes("beforeFillParameters")&&(n=await c.fn({...n,chain:o},{phase:"beforeFillParameters"})),l.includes("nonce")&&void 0===u&&p&&!s&&(n.nonce=await ax(e,aZ,"getTransactionCount")({address:p.address,blockTag:"pending"})),(l.includes("blobVersionedHashes")||l.includes("sidecars"))&&h&&f){let e=aQ({blobs:h,kzg:f});if(l.includes("blobVersionedHashes")){let t=a0({commitments:e,to:"hex"});n.blobVersionedHashes=t}if(l.includes("sidecars")){let t=aX({blobs:h,commitments:e,kzg:f}),r=a8({blobs:h,commitments:e,proofs:t,to:"hex"});n.sidecars=r}}if(l.includes("chainId")&&(n.chainId=await d()),(l.includes("fees")||l.includes("type"))&&void 0===b)try{n.type=a7(n)}catch{let t=nt.get(e.uid);if(void 0===t){let r=await y();t="bigint"==typeof r?.baseFeePerGas,nt.set(e.uid,t)}n.type=t?"eip1559":"legacy"}if(l.includes("fees"))if("legacy"!==n.type&&"eip2930"!==n.type){if(void 0===n.maxFeePerGas||void 0===n.maxPriorityFeePerGas){let t=await y(),{maxFeePerGas:r,maxPriorityFeePerGas:a}=await aJ(e,{block:t,chain:o,request:n});if(void 0===n.maxPriorityFeePerGas&&n.maxFeePerGas&&n.maxFeePerGas<a)throw new aF({maxPriorityFeePerGas:a});n.maxPriorityFeePerGas=a,n.maxFeePerGas=r}}else{if(void 0!==n.maxFeePerGas||void 0!==n.maxPriorityFeePerGas)throw new aO;if(void 0===n.gasPrice){let t=await y(),{gasPrice:r}=await aJ(e,{block:t,chain:o,request:n,type:"legacy"});n.gasPrice=r}}return l.includes("gas")&&void 0===g&&(n.gas=await ax(e,nn,"estimateGas")({...n,account:p,prepare:p?.type==="local"?[]:["blobVersionedHashes"]})),c?.fn&&c.runAt?.includes("afterFillParameters")&&(n=await c.fn({...n,chain:o},{phase:"afterFillParameters"})),(0,A.c3)(n),delete n.parameters,n}async function nn(e,t){let{account:r=e.account,prepare:a=!0}=t,n=r?(0,A.J5)(r):void 0,i=Array.isArray(a)?a:n?.type!=="local"?["blobVersionedHashes"]:void 0;try{let r=await (async()=>t.to?t.to:t.authorizationList&&t.authorizationList.length>0?await aP({authorization:t.authorizationList[0]}).catch(()=>{throw new A.Cf("`to` is required. Could not infer from `authorizationList`")}):void 0)(),{accessList:o,authorizationList:s,blobs:l,blobVersionedHashes:c,blockNumber:d,blockTag:p,data:u,gas:m,gasPrice:h,maxFeePerBlobGas:g,maxFeePerGas:f,maxPriorityFeePerGas:b,nonce:y,value:k,stateOverride:x,...w}=a?await na(e,{...t,parameters:i,to:r}):t;if(m&&t.gas!==m)return m;let v=("bigint"==typeof d?(0,A.cK)(d):void 0)||p,T=(0,A.yH)(x);(0,A.c3)(t);let E=e.chain?.formatters?.transactionRequest?.format,B=(E||A.Bv)({...(0,A.o6)(w,{format:E}),account:n,accessList:o,authorizationList:s,blobs:l,blobVersionedHashes:c,data:u,gasPrice:h,maxFeePerBlobGas:g,maxFeePerGas:f,maxPriorityFeePerGas:b,nonce:y,to:r,value:k},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:T?[B,v??e.experimental_blockTag??"latest",T]:v?[B,v]:[B]}))}catch(r){throw function(e,{docsPath:t,...r}){return new aD((()=>{let t=(0,A.lV)(e,r);return t instanceof A.RM?e:t})(),{docsPath:t,...r})}(r,{...t,account:n,chain:e.chain})}}async function ni(e,t){let{abi:r,address:a,args:n,functionName:i,dataSuffix:o="string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value,...s}=t,l=(0,A.pT)({abi:r,args:n,functionName:i});try{return await ax(e,nn,"estimateGas")({data:`${l}${o?o.replace("0x",""):""}`,to:a,...s})}catch(t){let e=s.account?(0,A.J5)(s.account):void 0;throw aU(t,{abi:r,address:a,args:n,docsPath:"/docs/contract/estimateContractGas",functionName:i,sender:e?.address})}}function no(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}var ns="/docs/contract/decodeEventLog";function nl(e){let{abi:t,data:r,strict:a,topics:n}=e,i=a??!0,[o,...s]=n;if(!o)throw new A._z({docsPath:ns});let l=t.find(e=>"event"===e.type&&o===(0,A.h2)((0,A.Bp)(e)));if(!(l&&"name"in l)||"event"!==l.type)throw new A.kE(o,{docsPath:ns});let{name:c,inputs:d}=l,p=d?.some(e=>!("name"in e&&e.name)),u=p?[]:{},m=d.map((e,t)=>[e,t]).filter(([e])=>
1"indexed"in e&&e.indexed),h=[];for(let e=0;e<m.length;e++){let[t,r]=m[e],a=s[e];if(!a){if(i)throw new A.l3({abiItem:l,param:t});h.push([t,r]);continue}u[p?r:t.name||r]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,A.n2)([e],t)||[])[0]}({param:t,value:a})}let g=d.filter(e=>!("indexed"in e&&e.indexed)),f=i?g:[...h.map(([e])=>e),...g];if(f.length>0){if(r&&"0x"!==r)try{let e=(0,A.n2)(f,r);if(e){let t=0;if(!i)for(let[r,a]of h)u[p?a:r.name||a]=e[t++];if(p)for(let r=0;r<d.length;r++)void 0===u[r]&&t<e.length&&(u[r]=e[t++]);else for(let r=0;r<g.length;r++)u[g[r].name]=e[t++]}}catch(e){if(i){if(e instanceof A.Iy||e instanceof A.SK)throw new A.fo({abiItem:l,data:r,params:f,size:(0,A.Ej)(r)});throw e}}else if(i)throw new A.fo({abiItem:l,data:"0x",params:f,size:0})}return{eventName:c,args:Object.values(u).length>0?u:void 0}}function nc(e){let{abi:t,args:r,logs:a,strict:n=!0}=e,i=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),o=t.filter(e=>"event"===e.type).map(e=>({abi:e,selector:(0,A.h2)(e)}));return a.map(e=>{let t,a,s="string"==typeof e.blockNumber?no(e):e,l=o.filter(e=>s.topics[0]===e.selector);if(0===l.length)return null;for(let e of l)try{t=nl({...s,abi:[e.abi],strict:!0}),a=e;break}catch{}if(!t&&!n){a=l[0];try{t=nl({data:s.data,topics:s.topics,abi:[a.abi],strict:!1})}catch{let e=a.abi.inputs?.some(e=>!("name"in e&&e.name));return{...s,args:e?[]:{},eventName:a.abi.name}}}return t&&a&&(!i||i.includes(t.eventName))&&function(e){let{args:t,inputs:r,matchArgs:a}=e;if(!a)return!0;if(!t)return!1;function n(e,t,r){try{if("address"===e.type)return(0,A.ho)(t,r);if("string"===e.type||"bytes"===e.type)return(0,A.So)((0,A.ZJ)(t))===r;return t===r}catch{return!1}}return Array.isArray(t)&&Array.isArray(a)?a.every((e,a)=>{if(null==e)return!0;let i=r[a];return!!i&&(Array.isArray(e)?e:[e]).some(e=>n(i,e,t[a]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof a||Array.isArray(a))&&Object.entries(a).every(([e,a])=>{if(null==a)return!0;let i=r.find(t=>t.name===e);return!!i&&(Array.isArray(a)?a:[a]).some(r=>n(i,r,t[e]))})}({args:t.args,inputs:a.abi.inputs,matchArgs:r})?{...t,...s}:null}).filter(Boolean)}async function nd(e,{address:t,blockHash:r,fromBlock:a,toBlock:n,event:i,events:o,args:s,strict:l}={}){let c=o??(i?[i]:void 0),d=[];c&&(d=[c.flatMap(e=>aT({abi:[e],eventName:e.name,args:o?void 0:s}))],i&&(d=d[0]));let p=(r?await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:"bigint"==typeof a?(0,A.cK)(a):a,toBlock:"bigint"==typeof n?(0,A.cK)(n):n}]})).map(e=>no(e));return c?nc({abi:c,args:s,logs:p,strict:l??!1}):p}async function np(e,t){let{abi:r,address:a,args:n,blockHash:i,eventName:o,fromBlock:s,toBlock:l,strict:c}=t,d=o?(0,A.iY)({abi:r,name:o}):void 0,p=d?void 0:r.filter(e=>"event"===e.type);return ax(e,nd,"getLogs")({address:a,args:n,blockHash:i,event:d,events:p,fromBlock:s,toBlock:l,strict:c})}async function nu(e,t){let{abi:r,address:a,args:n,functionName:i,...o}=t,s=(0,A.pT)({abi:r,args:n,functionName:i});try{let{data:t}=await ax(e,A.T1,"call")({...o,data:s,to:a});return(0,A.e1)({abi:r,args:n,functionName:i,data:t||"0x"})}catch(e){throw aU(e,{abi:r,address:a,args:n,docsPath:"/docs/contract/readContract",functionName:i})}}async function nm(e,t){let{abi:r,address:a,args:n,functionName:i,dataSuffix:o="string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value,...s}=t,l=s.account?(0,A.J5)(s.account):e.account,c=(0,A.pT)({abi:r,args:n,functionName:i});try{let{data:d}=await ax(e,A.T1,"call")({batch:!1,data:`${c}${o?o.replace("0x",""):""}`,to:a,...s,account:l}),p=(0,A.e1)({abi:r,args:n,functionName:i,data:d||"0x"}),u=r.filter(e=>"name"in e&&e.name===t.functionName);return{result:p,request:{abi:u,address:a,args:n,dataSuffix:o,functionName:i,...s,account:l}}}catch(e){throw aU(e,{abi:r,address:a,args:n,docsPath:"/docs/contract/simulateContract",functionName:i,sender:l?.address})}}var nh=new Map,ng=new Map,nf=0;function nb(e,t,r){let a=++nf,n=()=>nh.get(e)||[],i=()=>{let t=n();if(!t.some(e=>e.id===a))return;let r=ng.get(e);if(1===t.length&&r){let e=r();e instanceof Promise&&e.catch(()=>{})}(()=>{let t=n().filter(e=>e.id!==a);if(0===t.length){nh.delete(e),ng.delete(e);return}nh.set(e,t)})()},o=n();if(nh.set(e,[...o,{id:a,fns:t}]),o&&o.length>0)return i;let s={};for(let e in t)s[e]=(...t)=>{let r=n();if(0!==r.length)for(let a of r)a.fns[e]?.(...t)};let l=r(s);return"function"==typeof l&&ng.set(e,l),i}async function ny(e,{signal:t}={}){return new Promise((r,a)=>{if(t?.aborted)return void a((0,A.TY)(t));let n=()=>t?.removeEventListener("abort",o),i=setTimeout(()=>{n(),r()},e),o=()=>{clearTimeout(i),n(),a((0,A.TY)(t))};t?.addEventListener("abort",o,{once:!0})})}function nk(e,{emitOnBegin:t,initialWaitTime:r,interval:a}){let n=!0,i=()=>n=!1;return(async()=>{let o;
1t&&(o=await e({unpoll:i}));let s=await r?.(o)??a;await ny(s);let l=async()=>{n&&(await e({unpoll:i}),await ny(a),l())};l()})(),i}var nx=new Map,nw=new Map;async function nv(e,{cacheKey:t,cacheTime:r=1/0}){let a=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,nx),a=t(e,nw);return{clear:()=>{r.clear(),a.clear()},promise:r,response:a}}(t),n=a.response.get();if(n&&r>0&&Date.now()-n.created.getTime()<r)return n.data;let i=a.promise.get();i||(i=e(),a.promise.set(i));try{let e=await i;return a.response.set({created:new Date,data:e}),e}finally{a.promise.clear()}}async function nT(e,{cacheTime:t=e.cacheTime}={}){let r;return BigInt(await nv(()=>e.request({method:"eth_blockNumber"}),{cacheKey:(r=e.uid,`blockNumber.${r}`),cacheTime:t}))}async function nE(e,{filter:t}){let r="strict"in t&&t.strict,a=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof a[0])return a;let n=a.map(e=>no(e));return"abi"in t&&t.abi?nc({abi:t.abi,logs:n,strict:r}):n}async function nB(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}var nC=class extends A.Cf{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}},nU=class extends A.Cf{constructor({docsPath:e,metaMessages:t,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}};async function nI(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}var nN=new A.AB(128);async function nR(e,t){let r,{account:a=e.account,assertChainId:n=!0,chain:i=e.chain,accessList:o,authorizationList:s,blobs:l,data:c,dataSuffix:d="string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value,gas:p,gasPrice:u,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:g,nonce:f,type:b,value:y,...k}=t;if(void 0===a)throw new nC({docsPath:"/docs/actions/wallet/sendTransaction"});let x=a?(0,A.J5)(a):null;try{(0,A.c3)(t);let a=await (async()=>t.to?t.to:null!==t.to&&s&&s.length>0?await aP({authorization:s[0]}).catch(()=>{throw new A.Cf("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(x?.type==="json-rpc"||null===x){let t;null!==i&&(t=await ax(e,a5,"getChainId")({}),n&&function({chain:e,currentChainId:t}){if(!e)throw new A.jF;if(t!==e.id)throw new A.EH({chain:e,currentChainId:t})}({currentChainId:t,chain:i}));let r=e.chain?.formatters?.transactionRequest?.format,w=(r||A.Bv)({...(0,A.o6)(k,{format:r}),accessList:o,account:x,authorizationList:s,blobs:l,chainId:t,data:d?(0,A.xW)([c??"0x",d]):c,gas:p,gasPrice:u,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:g,nonce:f,to:a,type:b,value:y},"sendTransaction"),v=nN.get(e.uid);try{return await e.request({method:v?"wallet_sendTransaction":"eth_sendTransaction",params:[w]},{retryCount:0})}catch(t){if(!1===v)throw t;if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[w]},{retryCount:0}).then(t=>(nN.set(e.uid,!0),t)).catch(r=>{if("MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)throw nN.set(e.uid,!1),t;throw r});throw t}}if(x?.type==="local"){if(x.nonceManager&&void 0===f){let t=k.chainId,a=await (async()=>"number"==typeof t?t:i?i.id:ax(e,a5,"getChainId")({}))();r={address:x.address,chainId:a}}let t=await ax(e,na,"prepareTransactionRequest")({account:x,accessList:o,authorizationList:s,blobs:l,chain:i,data:d?(0,A.xW)([c??"0x",d]):c,gas:p,gasPrice:u,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:g,nonce:f,nonceManager:x.nonceManager,parameters:[...ne,"sidecars"],type:b,value:y,...k,to:a}),n=i?.serializers?.transaction,w=await x.signTransaction(t,{serializer:n});return await ax(e,nI,"sendRawTransaction")({serializedTransaction:w})}if(x?.type==="smart")throw new nU({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new nU({docsPath:"/docs/actions/wallet/sendTransaction",type:x?.type})}catch(e){if(e instanceof nU)throw e;throw r&&x?.nonceManager?.reset(r),a4(e,{...t,account:x,chain:t.chain||void 0})}}async function nS(e,t){return nS.internal(e,nR,"sendTransaction",t)}function nA(e,{delay:t=100,retryCount:r=2,shouldRetry:a=()=>!0,signal:n}={}){return new Promise((i,o)=>{let s=async({count:l=0}={})=>
1{if(n?.aborted)return void o((0,A.TY)(n));let c=async({error:e})=>{let r="function"==typeof t?t({count:l,error:e}):t;if(r)try{await ny(r,{signal:n})}catch(e){o(e);return}s({count:l+1})};try{let t=await e();i(t)}catch(e){if(n?.aborted)return void o((0,A.TY)(n));if((0,A.zf)(e))return void o(e);if(l<r&&await a({count:l,error:e}))return c({error:e});o(e)}};s()})}(nS||(nS={})).internal=async function(e,t,r,a){let{abi:n,account:i=e.account,address:o,args:s,functionName:l,...c}=a;if(void 0===i)throw new nC({docsPath:"/docs/contract/writeContract"});let d=i?(0,A.J5)(i):null,p=(0,A.pT)({abi:n,args:s,functionName:l});try{return await ax(e,t,r)({data:p,to:o,account:d,...c})}catch(e){throw aU(e,{abi:n,address:o,args:s,docsPath:"/docs/contract/writeContract",functionName:l,sender:d?.address})}};var nP={"0x0":"reverted","0x1":"success"};function nD(e,t){let r={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>no(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,A.ME)(e.transactionIndex):null,status:e.status?nP[e.status]:null,type:e.type?aM[e.type]||e.type:null};return e.blobGasPrice&&(r.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(r.blobGasUsed=BigInt(e.blobGasUsed)),r}var nL=(0,A.qQ)("transactionReceipt",nD),nO=256;function nF(e=11){if(!c||nO+e>512){c="",nO=0;for(let e=0;e<256;e++)c+=(256+256*Math.random()|0).toString(16).substring(1)}return c.substring(nO,nO+++e)}function n_(e){if(!(e instanceof A.Cf))return!1;let t=e.walk(e=>e instanceof A.M);return t instanceof A.M&&(t.data?.errorName==="HttpError"||t.data?.errorName==="ResolverError"||t.data?.errorName==="ResolverNotContract"||t.data?.errorName==="ResolverNotFound"||t.data?.errorName==="ReverseAddressMismatch"||t.data?.errorName==="UnsupportedResolverProfile")}function nM(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,A.qv)(t)?t:null}function nj(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,A.My)(t);let r=e.split(".");for(let e=r.length-1;e>=0;e-=1){let a=nM(r[e]),n=a?(0,A.ZJ)(a):(0,A.So)((0,A.Af)(r[e]),"bytes");t=(0,A.So)((0,A.xW)([t,n]),"bytes")}return(0,A.My)(t)}function n$(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,A.Af)(t).byteLength+2),a=0,n=t.split(".");for(let e=0;e<n.length;e++){var i;let t=(0,A.Af)(n[e]);t.byteLength>255&&(t=(0,A.Af)((i=function(e){let t=new Uint8Array(32).fill(0);return e?nM(e)||(0,A.So)((0,A.Af)(e)):(0,A.My)(t)}(n[e]),`[${i.slice(2)}]`))),r[a]=t.length,r.set(t,a+1),a+=t.length+1}return r.byteLength!==a+1?r.slice(0,a+1):r}async function nW(e,t){let{blockNumber:r,blockTag:a,coinType:n,name:i,gatewayUrls:o,strict:s}=t,{chain:l}=e,c=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!l)throw Error("client chain not configured. universalResolverAddress is required.");return(0,A.MY)({blockNumber:r,chain:l,contract:"ensUniversalResolver"})})(),d=l?.ensTlds;if(d&&!d.some(e=>i.endsWith(e)))return null;let p=null!=n?[nj(i),BigInt(n)]:[nj(i)];try{let t=(0,A.pT)({abi:A.Rm,functionName:"addr",args:p}),s={address:c,abi:A.Ag,functionName:"resolveWithGateways",args:[(0,A.nj)(n$(i)),t,o??[A.JF]],blockNumber:r,blockTag:a},l=ax(e,nu,"readContract"),d=await l(s);if("0x"===d[0])return null;let u=function({coinType:e,data:t,args:r}){try{return(0,A.e1)({abi:A.Rm,args:r,functionName:"addr",data:t})}catch(a){if(null==e)throw a;let r=(0,A.Bq)(t);if(20===(0,A.Ej)(r))return(0,A.bv)(r);throw a}}({coinType:n,data:d[0],args:p});if("0x"===u||"0x00"===(0,A.Bq)(u))return null;return u}catch(e){if(s)throw e;if(n_(e))return null;throw e}}var nz=class extends A.Cf{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}},nV=class extends A.Cf{constructor({reason:e}
vendor: 4,320 bytes, line 1
1){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}},nH=class extends A.Cf{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}},nq=class extends A.Cf{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}},nG=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,nK=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,nJ=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,nZ=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function nQ(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!Object.hasOwn(globalThis,"Image"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function nX(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function nY({uri:e,gatewayUrls:t}){let r=nJ.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let a=nX(t?.ipfs,"https://ipfs.io"),n=nX(t?.arweave,"https://arweave.net"),i=e.match(nG),{protocol:o,subpath:s,target:l,subtarget:c=""}=i?.groups||{},d="ipns:/"===o||"ipns/"===s,p="ipfs:/"===o||"ipfs/"===s||nK.test(e);if(e.startsWith("http")&&!d&&!p){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((d||p)&&l)return{uri:`${a}/${d?"ipns":"ipfs"}/${l}${c}`,isOnChain:!1,isEncoded:!1};if("ar:/"===o&&l)return{uri:`${n}/${l}${c||""}`,isOnChain:!1,isEncoded:!1};let u=e.replace(nZ,"");if(u.startsWith("<svg")&&(u=`data:image/svg+xml;base64,${btoa(u)}`),u.startsWith("data:")||u.startsWith("{"))return{uri:u,isOnChain:!0,isEncoded:!1};throw new nH({uri:e})}function n0(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new nz({data:e});return e.image||e.image_url||e.image_data}async function n1({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(e=>e.json());return await n2({gatewayUrls:e,uri:n0(r)})}catch{throw new nH({uri:t})}}async function n2({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:a}=nY({uri:t,gatewayUrls:e});if(a||await nQ(r))return r;throw new nH({uri:t})}async function n3(e,{nft:t}){if("erc721"===t.namespace)return nu(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return nu(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new nq({namespace:t.namespace})}async function n6(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?n8(e,{gatewayUrls:t,record:r}):n2({uri:r,gatewayUrls:t})}async function n8(e,{gatewayUrls:t,record:r}){let a=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[r,a,n]=t.split("/"),[i,o]=r.split(":"),[s,l]=a.split(":");if(!i||"eip155"!==i.toLowerCase())throw new nV({reason:"Only EIP-155 supported"});if(!o)throw new nV({reason:"Chain ID not found"});if(!l)throw new nV({reason:"Contract address not found"});if(!n)throw new nV({reason:"Token ID not found"});if(!s)throw new nV({reason:"ERC namespace not found"});return{chainID:Number.parseInt(o,10),namespace:s.toLowerCase(),contractAddress:l,tokenID:n}}(r),{uri:n,isOnChain:i,isEncoded:o}=nY({uri:await n3(e,{nft:a}),gatewayUrls:t});if(i&&(n.includes("data:application/json;base64,")||n.startsWith("{")))return n2({uri:n0(JSON.parse(o?atob(n.replace("data:application/json;base64,","")):n)),gatewayUrls:t});let s=a.tokenID;return"erc1155"===a.namespace&&(s=s.replace("0x","").padStart(64,"0")),n1({gatewayUrls:t,uri:n.replace(/(?:0x)?{id}/,s)})}async function n7(e,t){let{blockNumber:r,blockTag:a,key:n,name:i,gatewayUrls:o,strict:s}=t,{chain:l}=e,c=(()=>
1{if(t.universalResolverAddress)return t.universalResolverAddress;if(!l)throw Error("client chain not configured. universalResolverAddress is required.");return(0,A.MY)({blockNumber:r,chain:l,contract:"ensUniversalResolver"})})(),d=l?.ensTlds;if(d&&!d.some(e=>i.endsWith(e)))return null;try{let t={address:c,abi:A.Ag,args:[(0,A.nj)(n$(i)),(0,A.pT)({abi:A.SJ,functionName:"text",args:[nj(i),n]}),o??[A.JF]],functionName:"resolveWithGateways",blockNumber:r,blockTag:a},s=ax(e,nu,"readContract"),l=await s(t);if("0x"===l[0])return null;let d=(0,A.e1)({abi:A.SJ,functionName:"text",data:l[0]});return""===d?null:d}catch(e){if(s)throw e;if(n_(e))return null;throw e}}async function n4(e,{blockNumber:t,blockTag:r,assetGatewayUrls:a,name:n,gatewayUrls:i,strict:o,universalResolverAddress:s}){let l=await ax(e,n7,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:n,universalResolverAddress:s,gatewayUrls:i,strict:o});if(!l)return null;try{return await n6(e,{record:l,gatewayUrls:a})}catch{return null}}async function n5(e,t){let{address:r,blockNumber:a,blockTag:n,coinType:i=60n,gatewayUrls:o,strict:s}=t,{chain:l}=e,c=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!l)throw Error("client chain not configured. universalResolverAddress is required.");return(0,A.MY)({blockNumber:a,chain:l,contract:"ensUniversalResolver"})})();try{let t={address:c,abi:A.oX,args:[r,i,o??[A.JF]],functionName:"reverseWithGateways",blockNumber:a,blockTag:n},s=ax(e,nu,"readContract"),[l]=await s(t);return l||null}catch(e){if(s)throw e;if(n_(e))return null;throw e}}async function n9(e,t){let{blockNumber:r,blockTag:a,name:n}=t,{chain:i}=e,o=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!i)throw Error("client chain not configured. universalResolverAddress is required.");return(0,A.MY)({blockNumber:r,chain:i,contract:"ensUniversalResolver"})})(),s=i?.ensTlds;if(s&&!s.some(e=>n.endsWith(e)))throw Error(`${n} is not a valid ENS TLD (${s?.join(", ")}) for chain "${i.name}" (id: ${i.id}).`);let[l]=await ax(e,nu,"readContract")({address:o,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,A.nj)(n$(n))],blockNumber:r,blockTag:a});return l}async function ie(e,t){let{account:r=e.account,blockNumber:a,blockTag:n="latest",blobs:i,data:o,gas:s,gasPrice:l,maxFeePerBlobGas:c,maxFeePerGas:d,maxPriorityFeePerGas:p,to:u,value:m,...h}=t,g=r?(0,A.J5)(r):void 0;try{(0,A.c3)(t);let r="bigint"==typeof a?(0,A.cK)(a):void 0,f=e.chain?.formatters?.transactionRequest?.format,b=(f||A.Bv)({...(0,A.o6)(h,{format:f}),account:g,blobs:i,data:o,gas:s,gasPrice:l,maxFeePerBlobGas:c,maxFeePerGas:d,maxPriorityFeePerGas:p,to:u,value:m},"createAccessList"),y=await e.request({method:"eth_createAccessList",params:[b,r||n]});return{accessList:y.accessList,gasUsed:BigInt(y.gasUsed)}}catch(r){throw(0,A.dt)(r,{...t,account:g,chain:e.chain})}}async function it(e){let t=aB(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}async function ir(e,{address:t,args:r,event:a,events:n,fromBlock:i,strict:o,toBlock:s}={}){let l=n??(a?[a]:void 0),c=aB(e,{method:"eth_newFilter"}),d=[];l&&(d=[l.flatMap(e=>aT({abi:[e],eventName:e.name,args:r}))],a&&(d=d[0]));let p=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof i?(0,A.cK)(i):i,toBlock:"bigint"==typeof s?(0,A.cK)(s):s,...d.length?{topics:d}:{}}]});return{abi:l,args:r,eventName:a?a.name:void 0,fromBlock:i,id:p,request:c(p),strict:!!o,toBlock:s,type:"event"}}async function ia(e){let t=aB(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}async function ii(e,{address:t,blockHash:r,blockNumber:a,blockTag:n=e.experimental_blockTag??"latest",requireCanonical:i}){let o=(0,A.O$)({blockHash:r,blockNumber:a,blockTag:n,requireCanonical:i});if(e.batch?.multicall&&e.chain?.contracts?.multicall3){let o=e.chain.contracts.multicall3.address,s=(0,A.pT)({abi:A.v2,functionName:"getEthBalance",args:[t]}),{data:l}=await ax(e,A.T1,"call")({to:o,data:s,blockHash:r,blockNumber:a,blockTag:n,requireCanonical:i});return(0,A.e1)({abi:A.v2,functionName:"getEthBalance",args:[t],data:l||"0x"})}return BigInt(await e.request({method:"eth_getBalance",params:[t,o]}))}async function io(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}async function is(e,{blockHash:t,blockNumber:r,blockTag:a="latest"}={}){let n,i=void 0!==r?(0,A.cK)(r):void 0;return n=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[i||a]},{dedupe:!!i}),(0,A.ME)(n)}async function il(e,{address:t,blockHash:r,blockNumber:a,blockTag:n="latest",requireCanonical:i}){let o=(0,A.O$)({blockHash:r,blockNumber:a,blockTag:n,requireCanonical:i}),s=await e.request({method:"eth_getCode",params:[t,o]},{dedupe:"bigint"==typeof a||void 0!==r});if("0x"!==s)return s}async function ic(e,{address:t,blockNumber:r,blockTag:a="latest"}){let n=await il(e,{address:t,...void 0!==r?{blockNumber:r}:{blockTag:a}});if(n&&23===(0,A.Ej)(n)&&n.startsWith("0xef0100"))return(0,A.bv)((0,A.di)(n,3,23))}var id=class extends A.Cf{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}};async function ip(e,t){let{address:r,factory:a,factoryData:n}=t;try{let[t,i,o,s,l,c,d]=await ax(e,nu,"readContract")({abi:iu,address:r,functionName:"eip712Domain",factory:a,factoryData:n});return{domain:{name:i,version:o,chainId:Number(s),verifyingContract:l,salt:c},extensions:d,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new id({address:r});throw e}}var iu=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function im(e,{blockCount:t,blockNumber:r,blockTag:a="latest",rewardPercentiles:n}){var i;let o="bigint"==typeof r?(0,A.cK)(r):void 0;return{baseFeePerGas:(i=await e.request({method:"eth_feeHistory",params:[(0,A.cK)(t),o||a,n]},{dedupe:!!o})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:i.gasUsedRatio,oldestBlock:BigInt(i.oldestBlock),reward:i.reward?.map(e=>e.map(e=>BigInt(e)))}}async function ih(e,{filter:t}){let r=t.strict??!1,a=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>no(e));return t.abi?nc({abi:t.abi,logs:a,strict:r}):a}function ig(e){let{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:a,to:n}=e;if(t<=0)throw new A.qD({chainId:t});if(n&&!(0,A.PW)(n))throw new A.Ms({address:n});if(a&&a>A.Ao)throw new A.BG({maxFeePerGas:a});if(r&&a&&r>a)throw new A.lN({maxFeePerGas:a,maxPriorityFeePerGas:r})}function ib(e){if(!e||0===e.length)return[];let t=[];for(let r=0;r<e.length;r++){let{address:a,storageKeys:n}=e[r];for(let e=0;e<n.length;e++)if(n[e].length-2!=64)throw new A.fZ({storageKey:n[e]});if(!(0,A.PW)(a,{strict:!1}))throw new A.Ms({address:a});t.push([a,n])}return t}function iy(e,t){let r=a7(e);return"eip1559"===r?function(e,t){let{chainId:r,gas:a,nonce:n,to:i,value:o,maxFeePerGas:s,maxPriorityFeePerGas:l,accessList:c,data:d}=e;ig(e);let p=ib(c),u=[(0,A.cK)(r),n?(0,A.cK)(n):"0x",l?(0,A.cK)(l):"0x",s?(0,A.cK)(s):"0x",a?(0,A.cK)(a):"0x",i??"0x",o?(0,A.cK)(o):"0x",d??"0x",p,...ik(e,t)];return(0,A.aP)(["0x02",aS(u)])}(e,t):"eip2930"===r?function(e,t){let{chainId:r,gas:a,data:n,nonce:i,to:o,value:s,accessList:l,gasPrice:c}=e,{chainId:d,maxPriorityFeePerGas:p,gasPrice:u,maxFeePerGas:m,to:
1h}=e;if(d<=0)throw new A.qD({chainId:d});if(h&&!(0,A.PW)(h))throw new A.Ms({address:h});if(p||m)throw new A.Cf("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(u&&u>A.Ao)throw new A.BG({maxFeePerGas:u});let g=ib(l),f=[(0,A.cK)(r),i?(0,A.cK)(i):"0x",c?(0,A.cK)(c):"0x",a?(0,A.cK)(a):"0x",o??"0x",s?(0,A.cK)(s):"0x",n??"0x",g,...ik(e,t)];return(0,A.aP)(["0x01",aS(f)])}(e,t):"eip4844"===r?function(e,t){let{chainId:r,gas:a,nonce:n,to:i,value:o,maxFeePerBlobGas:s,maxFeePerGas:l,maxPriorityFeePerGas:c,accessList:d,data:p}=e,{blobVersionedHashes:u}=e;if(u){if(0===u.length)throw new a2;for(let e of u){let t=(0,A.Ej)(e),r=(0,A.ME)((0,A.di)(e,0,1));if(32!==t)throw new a3({hash:e,size:t});if(1!==r)throw new a6({hash:e,version:r})}}ig(e);let m=e.blobVersionedHashes,h=e.sidecars;if(e.blobs&&(void 0===m||void 0===h)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,A.My)(e)),r=e.kzg,a=aQ({blobs:t,kzg:r});if(void 0===m&&(m=a0({commitments:a})),void 0===h){let e=aX({blobs:t,commitments:a,kzg:r});h=a8({blobs:t,commitments:a,proofs:e})}}let g=ib(d),f=[(0,A.cK)(r),n?(0,A.cK)(n):"0x",c?(0,A.cK)(c):"0x",l?(0,A.cK)(l):"0x",a?(0,A.cK)(a):"0x",i??"0x",o?(0,A.cK)(o):"0x",p??"0x",g,s?(0,A.cK)(s):"0x",m??[],...ik(e,t)],b=[],y=[],k=[];if(h)for(let e=0;e<h.length;e++){let{blob:t,commitment:r,proof:a}=h[e];b.push(t),y.push(r),k.push(a)}return(0,A.aP)(["0x03",h?aS([f,b,y,k]):aS(f)])}(e,t):"eip7702"===r?function(e,t){let{authorizationList:r,chainId:a,gas:n,nonce:i,to:o,value:s,maxFeePerGas:l,maxPriorityFeePerGas:c,accessList:d,data:p}=e,{authorizationList:u}=e;if(u)for(let e of u){let{chainId:t}=e,r=e.address;if(!(0,A.PW)(r))throw new A.Ms({address:r});if(t<0)throw new A.qD({chainId:t})}ig(e);let m=ib(d),h=function(e){if(!e||0===e.length)return[];let t=[];for(let r of e){let{chainId:e,nonce:a,...n}=r,i=r.address;t.push([e?(0,A.nj)(e):"0x",i,a?(0,A.nj)(a):"0x",...ik({},n)])}return t}(r);return(0,A.aP)(["0x04",aS([(0,A.cK)(a),i?(0,A.cK)(i):"0x",c?(0,A.cK)(c):"0x",l?(0,A.cK)(l):"0x",n?(0,A.cK)(n):"0x",o??"0x",s?(0,A.cK)(s):"0x",p??"0x",m,h,...ik(e,t)])])}(e,t):function(e,t){let{chainId:r=0,gas:a,data:n,nonce:i,to:o,value:s,gasPrice:l}=e,{chainId:c,maxPriorityFeePerGas:d,gasPrice:p,maxFeePerGas:u,to:m}=e;if(m&&!(0,A.PW)(m))throw new A.Ms({address:m});if(void 0!==c&&c<=0)throw new A.qD({chainId:c});if(d||u)throw new A.Cf("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(p&&p>A.Ao)throw new A.BG({maxFeePerGas:p});let h=[i?(0,A.cK)(i):"0x",l?(0,A.cK)(l):"0x",a?(0,A.cK)(a):"0x",o??"0x",s?(0,A.cK)(s):"0x",n??"0x"];if(t){let e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(r>0)return BigInt(2*r)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new A.zW({v:t.v});return e})(),a=(0,A.Bq)(t.r),n=(0,A.Bq)(t.s);h=[...h,(0,A.cK)(e),"0x00"===a?"0x":a,"0x00"===n?"0x":n]}else r>0&&(h=[...h,(0,A.cK)(r),"0x","0x"]);return aS(h)}(e,t)}function ik(e,t){let r=t??e,{v:a,yParity:n}=r;if(void 0===r.r||void 0===r.s||void 0===a&&void 0===n)return[];let i=(0,A.Bq)(r.r),o=(0,A.Bq)(r.s);return["number"==typeof n?n?(0,A.cK)(1):"0x":0n===a?"0x":1n===a?(0,A.cK)(1):27n===a?"0x":(0,A.cK)(1),"0x00"===i?"0x":i,"0x00"===o?"0x":o]}async function ix({address:e,authorization:t,signature:r}){return(0,A.ho)((0,A.bv)(e),await aP({authorization:t,signature:r}))}var iw=new A.AB(8192);function iv(e){let t={formatters:void 0,fees:void 0,serializers:void 0,...e};return Object.assign(t,{extend:function e(t){return r=>{let a="function"==typeof r?r(t):r,n={...t,...a};return Object.assign(n,{extend:e(n)})}}(t)})}function iT(e,t){return(0,A.So)(function(e){let t="string"==typeof e?(0,A.i3)(e):"string"==typeof e.raw?e.raw:(0,A.My)(e.raw),r=(0,A.i3)(`�Ethereum Signed Message:
2${(0,A.Ej)(t)}`);return(0,A.xW)([r,t])}(e),t)}var iE=class extends A.Cf{constructor({domain:e}){super(`Invalid domain "${(0,A.As)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}},iB=class extends A.Cf{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}},iC=class extends A.Cf{constructor({type:e}){super(`Struct type "${e}
2" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}};function iU(e){let{domain:t={},message:r,primaryType:a}=e,n={EIP712Domain:function({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},("number"==typeof e?.chainId||"bigint"==typeof e?.chainId)&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}({domain:t}),...e.types},{domain:i,message:o,primaryType:s,types:l}={domain:t,message:r,primaryType:a,types:n},c=(e,t)=>{for(let r of e){let{name:e,type:a}=r,n=t[e],i=a.match(A.Ge);if(i&&("number"==typeof n||"bigint"==typeof n)){let[e,t,r]=i;(0,A.cK)(n,{signed:"int"===t,size:Number.parseInt(r,10)/8})}if("address"===a&&"string"==typeof n&&!(0,A.PW)(n))throw new A.Ms({address:n});let o=a.match(A.BD);if(o){let[e,t]=o;if(t&&(0,A.Ej)(n)!==Number.parseInt(t,10))throw new A.BI({expectedSize:Number.parseInt(t,10),givenSize:(0,A.Ej)(n)})}let s=l[a];s&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new iC({type:e})}(a),c(s,n))}};if(l.EIP712Domain&&i){if("object"!=typeof i)throw new iE({domain:i});c(l.EIP712Domain,i)}if("EIP712Domain"!==s)if(l[s])c(l[s],o);else throw new iB({primaryType:s,types:l});let d=["0x1901"];return t&&d.push(function({domain:e,types:t}){return iI({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:n})),"EIP712Domain"!==a&&d.push(iI({data:r,primaryType:a,types:n})),(0,A.So)((0,A.xW)(d))}function iI({data:e,primaryType:t,types:r}){let a=function e({data:t,primaryType:r,types:a}){let n=[{type:"bytes32"}],i=[function({primaryType:e,types:t}){let r=(0,A.nj)(function({primaryType:e,types:t}){let r="",a=function e({primaryType:t,types:r},a=new Set){let n=t.match(/^\w*/u),i=n?.[0];if(a.has(i)||void 0===r[i])return a;for(let t of(a.add(i),r[i]))e({primaryType:t.type,types:r},a);return a}({primaryType:e,types:t});for(let n of(a.delete(e),[e,...Array.from(a).sort()]))r+=`${n}(${t[n].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}({primaryType:e,types:t}));return(0,A.So)(r)}({primaryType:r,types:a})];for(let o of a[r]){let[r,s]=function t({types:r,name:a,type:n,value:i}){if(void 0!==r[n])return[{type:"bytes32"},(0,A.So)(e({data:i,primaryType:n,types:r}))];if("bytes"===n)return[{type:"bytes32"},(0,A.So)(i)];if("string"===n)return[{type:"bytes32"},(0,A.So)((0,A.nj)(i))];if(n.lastIndexOf("]")===n.length-1){let e=n.slice(0,n.lastIndexOf("[")),o=i.map(n=>t({name:a,type:e,types:r,value:n}));return[{type:"bytes32"},(0,A.So)((0,A.hd)(o.map(([e])=>e),o.map(([,e])=>e)))]}return[{type:n},i]}({types:a,name:o.name,type:o.type,value:t[o.name]});n.push(r),i.push(s)}return(0,A.hd)(n,i)}({data:e,primaryType:t,types:r});return(0,A.So)(a)}var iN={};(0,L.VA)(iN,{InvalidWrappedSignatureError:()=>sy,assert:()=>sm,from:()=>sh,magicBytes:()=>sp,suffixParameters:()=>su,unwrap:()=>sg,validate:()=>sb,wrap:()=>sf});var iR=class e extends Error{constructor(t,r={}){let a=r.cause instanceof e?r.cause.details:r.cause?.message?r.cause.message:r.details,n=r.cause instanceof e&&r.cause.docsPath||r.docsPath;super([t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...a?[`Details: ${a}`]:[],"Version: [email protected]"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),r.cause&&(this.cause=r.cause),this.details=a,this.docsPath=n,this.metaMessages=r.metaMessages,this.shortMessage=t}};function iS(e,t){let r=e.exec(t);return r?.groups}var iA=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,iP=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,iD=/^\(.+?\).*?$/,iL=/^tuple(?<array>(\[(\d*)\])*)$/;function iO(e){let t="",r=e.length;for(let a=0;a<r;a++)t+=function e(t){let r=t.type;if(iL.test(t.type)&&"components"in t){r="(";let a=t.components.length;for(let n=0;n<a;
vendor: 9,930 bytes, line 2
2n++)r+=e(t.components[n]),n<a-1&&(r+=", ");let n=iS(iL,t.type);return r+=`)${n?.array||""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r} indexed`),t.name)?`${r} ${t.name}`:r}(e[a]),a!==r-1&&(t+=", ");return t}function iF(e){return"function"===e.type?`function ${e.name}(${iO(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${iO(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${iO(e.inputs)})`:"error"===e.type?`error ${e.name}(${iO(e.inputs)})`:"constructor"===e.type?`constructor(${iO(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}var i_=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,iM=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,ij=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,i$=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function iW(e){return i$.test(e)}var iz=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,iV=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,iH=/^receive\(\) external payable$/,iq=new Set(["memory","indexed","storage","calldata"]),iG=new Set(["indexed"]),iK=new Set(["calldata","memory","storage"]),iJ=class extends iR{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}},iZ=class extends iR{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}},iQ=class extends iR{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}},iX=class extends iR{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}},iY=class extends iR{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}},i0=class extends iR{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}},i1=class extends iR{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}},i2=class extends iR{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}},i3=class extends iR{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}},i6=class extends iR{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}},i8=class extends iR{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}},i7=class extends iR{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}},i4=class extends iR{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}},i5=class extends iR{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}},i9=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function oe(e,t={}){if(ij.test(e))return function(e,t={}){let r=iS(ij,e);if(!r)throw new i6({signature:e,type:"function"});let a=oi(r.parameters),n=[],i=a.length;for(let e=0;e<i;e++)n.push(on(a[e],{modifiers:iK,structs:t,type:"function"}));let o=[];if(r.returns){let e=oi(r.returns),a=e.length;for(let r=0;r<a;r++)o.push(on(e[r],{modifiers:iK,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:n,outputs:o}}(e,t);if(iM.test(e))return function(e,t={}){let r=iS(iM,e);if(!r)throw new i6({signature:e,type:"event"});let a=oi(r.parameters),n=[],i=a.length;for(let e=0;e<i;e++)n.push(on(a[e],{modifiers:iG,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:n}}(e,t);if(i_.test(e))return function(e,t={}){let r=iS(i_,e);if(!r)throw new i6({signature:e,type:"error"});let a=oi(r.parameters),n=[],i=a.length;for(let e=0;e<i;e++)n.push(on(a[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:n}}(e,t);if(iz.test(e))return function(e,t={}){let r=iS(iz,e);if(!r)throw new i6({signature:e,type:"constructor"});let a=oi(r.parameters),n=[],i=a.length;for(let e=0;e<i;e++)n.push(on(a[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:n}}(e,t);if(iV.test(e)){var r=e;let t=iS(iV,r);if(!t)throw new i6({signature:r,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}if(iH.test(e))return{type:"receive",stateMutability:"payable"};throw new i8({signature:e})}var ot=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,or=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,oa=/^u?int$/;function on(e,t){var r,a;let n,i=function(e,t,r){let a="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;a+=`(${e[0]}{${t}})`}return t?`${t}:${e}${a}`:`${e}${a}`}(e,t?.type,t?.structs);if(i9.has(i))return i9.get(i);let o=iD.test(e),s=iS(o?or:ot,e);if(!s)throw new iY({param:e});if(s.name&&("address"===(r=s.name)||"bool"===r||"function"===r||"string"===r||"tuple"===r||iA.test(r)||iP.test(r)||os.test(r)))throw new i0({param:e,name:s.name});let l=s.name?{name:s.name}:{},c="indexed"===s.modifier?{indexed:!0}:{},d=t?.structs??{},p={};if(o){n="tuple";let e=oi(s.type),t=[],r=e.length;for(let a=0;a<r;a++)t.push(on(e[a],{structs:d}));p={components:t}}else if(s.type in d)n="tuple",p={components:d[s.type]};else if(oa.test(s.type))n=`${s.type}256`;else if("address payable"===s.type)n="address";else if(n=s.type,t?.type!=="struct"&&!oo(n))throw new iQ({type:n});if(s.modifier){if(!t?.modifiers?.has?.(s.modifier))throw new i1({param:e,type:t?.type,modifier:s.modifier});if(iK.has(s.modifier)&&(a=n,!s.array&&"bytes"!==a&&"string"!==a&&"tuple"!==a)
2)throw new i2({param:e,type:t?.type,modifier:s.modifier})}let u={type:`${n}${s.array??""}`,...l,...c,...p};return i9.set(i,u),u}function oi(e,t=[],r="",a=0){let n=e.trim().length;for(let i=0;i<n;i++){let n=e[i],o=e.slice(i+1);switch(n){case",":return 0===a?oi(o,[...t,r.trim()]):oi(o,t,`${r}${n}`,a);case"(":return oi(o,t,`${r}${n}`,a+1);case")":return oi(o,t,`${r}${n}`,a-1);default:return oi(o,t,`${r}${n}`,a)}}if(""===r)return t;if(0!==a)throw new i5({current:r,depth:a});return t.push(r.trim()),t}function oo(e){return"address"===e||"bool"===e||"function"===e||"string"===e||iA.test(e)||iP.test(e)}var os=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function ol(e){let t={},r=e.length;for(let a=0;a<r;a++){let r=e[a];if(!iW(r))continue;let n=iS(i$,r);if(!n)throw new i6({signature:r,type:"struct"});let i=n.properties.split(";"),o=[],s=i.length;for(let e=0;e<s;e++){let t=i[e].trim();if(!t)continue;let r=on(t,{type:"struct"});o.push(r)}if(!o.length)throw new i7({signature:r});t[n.name]=o}let a={},n=Object.entries(t),i=n.length;for(let e=0;e<i;e++){let[r,i]=n[e];a[r]=function e(t=[],r={},a=new Set){let n=[],i=t.length;for(let o=0;o<i;o++){let i=t[o];if(iD.test(i.type))n.push(i);else{let t=iS(oc,i.type);if(!t?.type)throw new i3({abiParameter:i});let{array:o,type:s}=t;if(s in r){if(a.has(s))throw new i4({type:s});n.push({...i,type:`tuple${o??""}`,components:e(r[s],r,new Set([...a,s]))})}else if(oo(s))n.push(i);else throw new iZ({type:s})}}return n}(i,t)}return a}var oc=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/,od={checksum:new class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}(8192)}.checksum;function op(e,t={}){let{as:r="string"==typeof e?"Hex":"Bytes"}=t,a=(0,P.lY)((0,A.HT)(e));return"Bytes"===r?a:(0,A.uK)(a)}function ou(e,t={}){let{as:r="string"==typeof e?"Hex":"Bytes"}=t,a=(0,I.sc)((0,A.HT)(e));return"Bytes"===r?a:(0,A.uK)(a)}function om(e,t={}){let{compressed:r}=t,{prefix:a,x:n,y:i}=e;if(!1===r||"bigint"==typeof n&&"bigint"==typeof i){if(4!==a)throw new ob({prefix:a,cause:new ok});return}if(!0===r||"bigint"==typeof n&&void 0===i){if(3!==a&&2!==a)throw new ob({prefix:a,cause:new oy});return}throw new of({publicKey:e})}function oh(e){if(132!==e.length&&130!==e.length&&68!==e.length)throw new ox({publicKey:e});if(130===e.length)return{prefix:4,x:BigInt((0,A.iN)(e,0,32)),y:BigInt((0,A.iN)(e,32,64))};if(132===e.length){let t=Number((0,A.iN)(e,0,1));return{prefix:t,x:BigInt((0,A.iN)(e,1,33)),y:BigInt((0,A.iN)(e,33,65))}}return{prefix:Number((0,A.iN)(e,0,1)),x:BigInt((0,A.iN)(e,1,33))}}function og(e,t={}){om(e);let{prefix:r,x:a,y:n}=e,{includePrefix:i=!0}=t;return(0,A.eF)(i?(0,A.oB)(r,{size:1}):"0x",(0,A.oB)(a,{size:32}),"bigint"==typeof n?(0,A.oB)(n,{size:32}):"0x")}(0,P.ji)(),(0,I.P8)();var of=class extends A.kl{constructor({publicKey:e}){super(`Value \`${(0,A.iS)(e)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}},ob=class extends A.kl{constructor({prefix:e,cause:t}){super(`Prefix "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}},oy=class extends A.kl{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}},ok=class extends A.kl{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}},ox=class extends A.kl{constructor({publicKey:e}){super(`Value \`${e}
vendor: 13,099 bytes, line 2
2\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${(0,A.QN)((0,A.Fy)(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}},ow=/^0x[a-fA-F0-9]{40}$/;function ov(e,t={}){let{strict:r=!0}=t;if(!ow.test(e))throw new oU({address:e,cause:new oI});if(r){if(e.toLowerCase()===e)return;if(oT(e)!==e)throw new oU({address:e,cause:new oN})}}function oT(e){if(od.has(e))return od.get(e);ov(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=op((0,A.sH)(t),{as:"Bytes"}),a=t.split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&r[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());let n=`0x${a.join("")}`;return od.set(e,n),n}function oE(e,t={}){let r=op(`0x${og(e).slice(4)}`).substring(26);return function(e,t={}){let{checksum:r=!1}=t;return(ov(e),r)?oT(e):e}(`0x${r}`,t)}function oB(e,t){return ov(e,{strict:!1}),ov(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()}function oC(e,t={}){let{strict:r=!0}=t??{};try{return ov(e,{strict:r}),!0}catch{return!1}}var oU=class extends A.kl{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}},oI=class extends A.kl{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}},oN=class extends A.kl{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}},oR=/^(.*)\[([0-9]*)\]$/,oS=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,oA=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,oP=2n**256n-1n;function oD(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:a,encoded:n}=e[r];a?t+=32:t+=(0,A.QN)(n)}let r=[],a=[],n=0;for(let i=0;i<e.length;i++){let{dynamic:o,encoded:s}=e[i];o?(r.push((0,A.oB)(t+n,{size:32})),a.push(s),n+=(0,A.QN)(s)):r.push(s)}return(0,A.eF)(...r,...a)}function oL(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function oO(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(oO);let r=oL(e.type);return!!(r&&oO({...e,type:r[1]}))}var oF={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new o$({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new oj({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new oM({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new oM({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===1/0)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function o_(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(oF);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}var oM=class extends A.kl{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}},oj=class extends A.kl{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}},o$=class extends A.kl{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}};function oW(e,t,r={}){let{as:a="Array",checksumAddress:n=!1}=r,i="string"==typeof t?(0,A.aD)(t):t,o=o_(i);if(0===(0,A.E4)(i)&&e.length>0)throw new oG;if((0,A.E4)(i)&&32>(0,A.E4)(i))throw new oq({data:"string"==typeof t?t:(0,A.uK)(t),parameters:e,size:(0,A.E4)(i)});let s=0,l="Array"===a?[]:{};for(let t=0;t<e.length;++t){let r=e[t];o.setPosition(s);let[i,c]=function e(t,r,a){let{checksumAddress:n,staticPosition:i}=a,o=oL(r.type);if(o){let[a,s]=o;return function(t,r,a){let{checksumAddress:n,length:i,staticPosition:o}=a;if(!i){let a=o+(0,A.Ro)(t.readBytes(32)),i=a+32;t.setPosition(a);let s=(0,A.Ro)(t.readBytes(32)),l=oO(r),c=0,d=[];for(let a=0;a<s;++a){t.setPosition(i+(l?32*a:c));let[o,s]=e(t,r,{checksumAddress:n,staticPosition:i});c+=s,d.push(o)}return t.setPosition(o+32),[d,32]}if(oO(r)){let a=o+(0,A.Ro)(t.readBytes(32)),s=[];for(let o=0;o<i;++o){t.setPosition(a+32*o);let[i]=e(t,r,{checksumAddress:n,staticPosition:a});s.push(i)}return t.setPosition(o+32),[s,32]}let s=0,l=[];for(let a=0;a<i;++a){let[a,i]=e(t,r,{checksumAddress:n,staticPosition:o+s});s+=i,l.push(a)}return[l,s]}(t,{...r,type:s},{checksumAddress:n,length:a,staticPosition:i})}if("tuple"===r.type)return function(t,r,a){let{checksumAddress:n,staticPosition:i}=a,o=0===r.components.length||r.components.some(({name:e})=>!e),s=o?[]:{},l=0;if(oO(r)){let a=i+(0,A.Ro)(t.readBytes(32));for(let i=0;i<r.components.length;++i){let c=r.components[i];t.setPosition(a+l);let[d,p]=e(t,c,{checksumAddress:n,staticPosition:a});l+=p,s[o?i:c?.name]=d}return t.setPosition(i+32),[s,32]}for(let a=0;a<r.components.length;++a){let c=r.components[a],[d,p]=e(t,c,{checksumAddress:n,staticPosition:i});s[o?a:c?.name]=d,l+=p}return[s,l]}(t,r,{checksumAddress:n,staticPosition:i});if("address"===r.type)return function(e,t={}){let r,{checksum:a=!1}=t,n=e.readBytes(32);return[(r=(0,A.uK)((0,A.b$)(n,-20)),a?oT(r):r),32]}(t,{checksum:n});if("bool"===r.type){var s;return s=t,[(0,A.G4)(s.readBytes(32),{size:32}),32]}if(r.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[a,n]=t.type.split("bytes");if(!n){let t=(0,A.Ro)(e.readBytes(32));e.setPosition(r+t);let a=(0,A.Ro)(e.readBytes(32));if(0===a)return e.setPosition(r+32),["0x",32];let n=e.readBytes(a);return e.setPosition(r+32),[(0,A.uK)(n),32]}return[(0,A.uK)(e.readBytes(Number.parseInt(n,10),32)),32]}(t,r,{staticPosition:i});if(r.type.startsWith("uint")||r.type.startsWith("int")){var l=t,c=r;let e=c.type.startsWith("int"),a=Number.parseInt(c.type.split("int")[1]||"256",10),n=l.readBytes(32);return[a>48?(0,A.Dg)(n,{signed:e}):(0,A.Ro)(n,{signed:e}),32]}if("string"===r.type)return function(e,{staticPosition:t}){let r=(0,A.Ro)(e.readBytes(32));e.setPosition(t+r);let a=(0,A.Ro)(e.readBytes(32));if(0===a)return e.setPosition(t+32),["",32];let n=e.readBytes(a,32),i=(0,A.dI)((0,A.Mr)(n));return e.setPosition(t+32),[i,32]}(t,{staticPosition:i});throw new oX(r.type)}(o,r,{checksumAddress:n,staticPosition:0});s+=c,"Array"===a?l.push(i):l[r.name??t]=i}return l}function oz(e,t,r){let{checksumAddress:a=!1}={};if(e.length!==t.length)throw new oZ({expectedLength:e.length,givenLength:t.length});let n=oD(function({checksumAddress:e,parameters:t,values:r}){let a=[];for(let n=0;n<t.length;n++)a.push(function e({checksumAddress:t=!1,parameter:r,value:a}){let n=oL(r.type);if(n){let[i,o]=n;return function(t,r){let{checksumAddress:a,length:n,parameter:i}=r,o=null===n;if(!Array.isArray(t))throw new oQ(t);if(!o&&t.length!==n)throw new oK({expectedLength:n,givenLength:t.length,type:`${i.type}[${n}]`});let s=!1,l=[];for(let r=0;r<t.length;r++){let n=e({checksumAddress:a,parameter:i,value:t[r]});n.dynamic&&(s=!0),l.push(n)}if(o||s){let e=oD(l);if(o){let t=(0,A.oB)(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?(0,A.eF)(t,e):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,A.eF)(...l.map(({encoded:e})=>e))}}(a,{checksumAddress:t,length:i,parameter:{...r,type:o}})}if("tuple"===r.type)return function(t,r){let{checksumAddress:a,parameter:n}=r,i=!1,o=[];for(let r=0;r<n.components.length;r++){let s=n.components[r],l=Array.isArray(t)?r:s.name,c=e({checksumAddress:a,parameter:s,value:t[l]});o.push(c),c.dynamic&&(i=!0)}return{dynamic:i,encoded:i?oD(o):(0,A.eF)(...o.map(({encoded:e})=>e))}}(a,{checksumAddress:t,parameter:r});if("address"===r.type){var i=a,o={checksum:t};let{checksum:e=!1}=o;return ov(i,{strict:e}),{dynamic:!1,encoded:(0,A.Ho)(i.toLowerCase())}}if("bool"===r.type){var s=a;if("boolean"!=typeof s)throw new A.kl(`Invalid boolean value: "${s}" (type: ${typeof s}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,A.Ho)((0,A.xb)(s))}}if(r.type.startsWith("uint")||r.type.startsWith("int")){let e=r.type.startsWith("int"),[,,t="256"]=oA.exec(r.type)??[];return function(e,{signed:t,size:r}){if("number"==typeof r){let a=2n**(BigInt(r)-(t?1n:0n))-1n,n=t?-a-1n:0n;if(e>a||e<n)throw new A.Ty({max:a.toString(),min:n.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,A.oB)(e,{size:32,signed:t})}}(a,{signed:e,size:Number(t)})}if(r.type.startsWith("bytes"))return function(e,{type:t}){let[,r]=t.split("bytes"),a=(0,A.QN)(e);if(!r){let t=e;return a%32!=0&&(t=(0,A.M7)(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:(0,A.eF)((0,A.Ho)((0,A.oB)(a,{size:32})),t)}}if(a!==Number.parseInt(r,10))throw new oJ({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:(0,A.M7)(e)}}(a,{type:r.type});if("string"===r.type){var l=a;let e=(0,A.tN)(l),t=Math.ceil((0,A.QN)(e)/32),r=[];for(let a=0;a<t;a++)r.push((0,A.M7)((0,A.iN)(e,32*a,(a+1)*32)));return{dynamic:!0,encoded:(0,A.eF)((0,A.M7)((0,A.oB)((0,A.QN)(e),{size:32})),...r)}}throw new oX(r.type)}({checksumAddress:e,parameter:t[n],value:r[n]}));return a}({checksumAddress:a,parameters:e,values:t}));return 0===n.length?"0x":n}function oV(e,t){if(e.length!==t.length)throw new oZ({expectedLength:e.length,givenLength:t.length});let r=[];for(let a=0;a<e.length;a++){let n=e[a],i=t[a];r.push(oV.encode(n,i))}return(0,A.eF)(...r)}function oH(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?function(e){let t=[];if("string"==typeof e){let r=oi(e),a=r.length;for(let e=0;e<a;e++)t.push(on(r[e],{modifiers:iq}))}else{let r=ol(e),a=e.length;for(let n=0;n<a;n++){let a=e[n];if(iW(a))continue;let i=oi(a),o=i.length;for(let e=0;e<o;e++)t.push(on(i[e],{modifiers:iq,structs:r}))}}if(0===t.length)throw new iX({params:e});return t}(e):e}(oV||(oV={})).encode=function e(t,r,a=!1){if("address"===t)return ov(r),(0,A.Ho)(r.toLowerCase(),32*!!a);if("string"===t)return(0,A.tN)(r);if("bytes"===t)return r;if("bool"===t)return(0,A.Ho)((0,A.xb)(r),a?32:1);let n=t.match(oA);
2if(n){let[e,t,i="256"]=n,o=Number.parseInt(i,10)/8;return(0,A.oB)(r,{size:a?32:o,signed:"int"===t})}let i=t.match(oS);if(i){let[e,t]=i;if(Number.parseInt(t,10)!==(r.length-2)/2)throw new oJ({expectedSize:Number.parseInt(t,10),value:r});return(0,A.M7)(r,32*!!a)}let o=t.match(oR);if(o&&Array.isArray(r)){let[t,a]=o,n=[];for(let t=0;t<r.length;t++)n.push(e(a,r[t],!0));return 0===n.length?"0x":(0,A.eF)(...n)}throw new oX(t)};var oq=class extends A.kl{constructor({data:e,parameters:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${iO(t)})`,`Data:   ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}},oG=class extends A.kl{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}},oK=class extends A.kl{constructor({expectedLength:e,givenLength:t,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}},oJ=class extends A.kl{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,A.QN)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}},oZ=class extends A.kl{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch.
3Expected length (parameters): ${e}
4Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}},oQ=class extends A.kl{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}},oX=class extends A.kl{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}};function oY(e,t){return function e(t,r="Hex"){if(0===t.bytes.length)return"Hex"===r?(0,A.uK)(t.bytes):t.bytes;let a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){let e=o0(t,a,128),n=t.readBytes(e);return"Hex"===r?(0,A.uK)(n):n}let n=o0(t,a,192);var i=t,o=n,s=r;let l=i.position,c=[];for(;i.position-l<o;)c.push(e(i,s));return c}(o_((()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new A.o4(e);return(0,A.aD)(e)}return e})(),{recursiveReadLimit:1/0}),t)}function o0(e,t,r){if(128===r&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new A.kl("Invalid RLP prefix")}function o1(e,t={}){let{as:r="Hex"}=t;return function(e,t){let{as:r}=t,a=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),r=o2(t);return{length:t<=55?1+t:1+r+t,encode(a){for(let{encode:n}of(t<=55?a.pushByte(192+t):(a.pushByte(247+r),1===r?a.pushUint8(t):2===r?a.pushUint16(t):3===r?a.pushUint24(t):a.pushUint32(t)),e))n(a)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,A.aD)(e):e,r=o2(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),n=o_(new Uint8Array(a.length));return(a.encode(n),"Hex"===r)?(0,A.uK)(n.bytes):n.bytes}(e,{as:r})}function o2(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=0xffffff)return 3;if(e<=0xffffffff)return 4;throw new A.kl("Length is too large.")}function o3(e,t={}){let{recovered:r}=t;if(void 0===e.r||void 0===e.s||r&&void 0===e.yParity)throw new sa({signature:e});if(e.r<0n||e.r>oP)throw new sn({value:e.r});if(e.s<0n||e.s>oP)throw new si({value:e.s});if("number"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new so({value:e.yParity})}function o6(e){if(130!==e.length&&132!==e.length)throw new sr({signature:e});let t=BigInt((0,A.iN)(e,0,32)),r=BigInt((0,A.iN)(e,32,64)),a=(()=>{let t=Number(`0x${e.slice(130)}`);if(!Number.isNaN(t))try{return se(t)}catch{throw new so({value:t})}})();return void 0===a?{r:t,s:r}:{r:t,s:r,yParity:a}}function o8(e){if(void 0!==e.r&&void 0!==e.s)return o7(e)}function o7(e){let t=(()=>{var t;if("string"==typeof e)return o6(e);if(e instanceof Uint8Array)return o6((0,A.uK)(e));return"string"==typeof e.r?o4(e):e.v?{r:(t=e).r,s:t.s,yParity:se(t.v)}:{r:e.r,s:e.s,...void 0!==e.yParity?{yParity:e.yParity}:{}}})();return o3(t),t}function o4(e){let t=(()=>{let t=e.v?Number(e.v):void 0,r=e.yParity?Number(e.yParity):void 0;if("number"==typeof t&&"number"!=typeof r&&(r=se(t)),"number"!=typeof r)throw new so({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function o5(e){let{r:t,s:r,yParity:a}=e;return{r:(0,A.oB)(t,{size:32}),s:(0,A.oB)(r,{size:32}),yParity:0===a?"0x0":"0x1"}}function o9(e){let{r:t,s:r,yParity:a}=e;return[a?"0x01":"0x",0n===t?"0x":(0,A.mF)((0,A.oB)(t)),0n===r?"0x":(0,A.mF)((0,A.oB)(r))]}function se(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return+(e%2==0);throw new ss({value:e})}function st(e){if(0===e)return 27;if(1===e)return 28;throw new so({value:e})}var sr=class extends A.kl{constructor({signature:e}){super(`Value \`${e}
4\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${(0,A.QN)((0,A.Fy)(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}},sa=class extends A.kl{constructor({signature:e}){super(`Signature \`${(0,A.iS)(e)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}},sn=class extends A.kl{constructor({value:e}){super(`Value \`${e}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}},si=class extends A.kl{constructor({value:e}){super(`Value \`${e}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}},so=class extends A.kl{constructor({value:e}){super(`Value \`${e}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}},ss=class extends A.kl{constructor({value:e}){super(`Value \`${e}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}};function sl(e){let{address:t,chainId:r,nonce:a}=e,n=o8(e);return{address:t,chainId:Number(r),nonce:BigInt(a),...n}}function sc(e){let{address:t,chainId:r,nonce:a,...n}=e;return{address:t,chainId:(0,A.oB)(r),nonce:(0,A.oB)(a),...o5(n)}}function sd(e){let{payload:t,signature:r}=e,{r:a,s:n,yParity:i}=r;var o=new N.bI.Signature(BigInt(a),BigInt(n)).addRecoveryBit(i).recoverPublicKey((0,A.Fy)(t).substring(2));let s=(()=>{if((0,A.BH)(o))return oh(o);if((0,A.tf)(o)){var e;return e=o,oh((0,A.uK)(e))}let{prefix:t,x:r,y:a}=o;return"bigint"==typeof r&&"bigint"==typeof a?{prefix:t??4,x:r,y:a}:{prefix:t,x:r}})();return om(s),s}var sp="0x8010801080108010801080108010801080108010801080108010801080108010",su=oH("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function sm(e){if("string"==typeof e){if((0,A.iN)(e,-32)!==sp)throw new sy(e)}else o3(e.authorization)}function sh(e){return"string"==typeof e?sg(e):e}function sg(e){sm(e);let t=(0,A.jP)((0,A.iN)(e,-64,-32)),r=(0,A.iN)(e,-t-64,-64),a=(0,A.iN)(e,0,-t-64),[n,i,o]=oW(su,r);return{authorization:function(e,t={}){return"string"==typeof e.chainId?sl(e):{...e,...t.signature}}({address:n.delegation,chainId:Number(n.chainId),nonce:n.nonce,yParity:n.yParity,r:n.r,s:n.s}),signature:a,...o&&"0x"!==o?{data:o,to:i}:{}}}function sf(e){let{data:t,signature:r}=e;sm(e);let a=oE(sd({payload:function(e,t={}){let{presign:r}=t;return op((0,A.eF)("0x05",o1(function(e){let{address:t,chainId:r,nonce:a}=e,n=o8(e);return[r?(0,A.oB)(r):"0x",t,a?(0,A.oB)(a):"0x",...n?o9(n):[]]}(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}(e.authorization,{presign:!0}),signature:o7(e.authorization)})),n=oz(su,[{...e.authorization,delegation:e.authorization.address,chainId:BigInt(e.authorization.chainId)},e.to??a,t??"0x"]),i=(0,A.oB)((0,A.QN)(n),{size:32});return(0,A.eF)(r,n,i,sp)}function sb(e){try{return sm(e),!0}catch{return!1}}var sy=class extends A.kl{constructor(e){super(`Value \`${e}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}};async function sk(e,{address:t,blockHash:r,blockNumber:a,blockTag:n="latest",requireCanonical:i,storageKeys:o}){let s=(0,A.O$)({blockHash:r,blockNumber:a,blockTag:n,requireCanonical:i});var l=await e.request({method:"eth_getProof",params:[t,o,s]});return{...l,balance:l.balance?BigInt(l.balance):void 0,nonce:l.nonce?(0,A.ME)(l.nonce):void 0,storageProof:l.storageProof?l.storageProof.map(e=>({...e,value:BigInt(e.value)})):void 0}}async function sx(e,{address:t,blockHash:r,blockNumber:a,blockTag:n="latest",requireCanonical:i,slot:o}){let s=(0,A.O$)({blockHash:r,blockNumber:a,blockTag:n,requireCanonical:i});return await e.request({method:"eth_getStorageAt",params:[t,o,s]})}async function sw(e,{blockHash:t,blockNumber:r,blockTag:a,hash:n,index:i,sender:o,nonce:s}){let l=a||"latest",c=void 0!==r?(0,A.cK)(r):void 0,d=null;if(n?d=await e.request({method:"eth_getTransactionByHash",params:[n]},{dedupe:!0}):t?d=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,A.cK)(i)]},{dedupe:!0}):"number"==typeof i?d=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[c||l,(0,A.cK)(i)]},{dedupe:!!c}):o&&"number"==typeof s&&(d=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[o,(0,A.cK)(s)]},{dedupe:!0})),!d)throw new A.Kz({blockHash:t,blockNumber:r,blockTag:l,hash:n,index:i});return(e.chain?.formatters?.transaction?.format||aj)(d,"getTransaction")}async function sv(e,{hash:t,transactionReceipt:r}){let[a,n]=await Promise.all([ax(e,nT,"getBlockNumber")({}),t?ax(e,sw,"getTransaction")({hash:t}):void 0]),i=r?.blockNumber||n?.blockNumber;return i?a-i+1n:0n}async function sT(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new A.Kc({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||nD)(r,"getTransactionReceipt")}async function sE(e,t){let{account:r,authorizationList:a,allowFailure:n=!0,blockHash:i,blockNumber:o,blockOverrides:s,blockTag:l,requireCanonical:c,stateOverride:d}=t,p=t.contracts,{batchSize:u=t.batchSize??1024,deployless:m=t.deployless??!1}="object"==typeof e.batch?.multicall?e.batch.multicall:{},h=(()=>
vendor: 4,146 bytes, line 4
4{if(t.multicallAddress)return t.multicallAddress;if(m)return null;if(e.chain)return(0,A.MY)({blockNumber:o,chain:e.chain,contract:"multicall3"});throw Error("client chain not configured. multicallAddress is required.")})(),g=[[]],f=0,b=0;for(let e=0;e<p.length;e++){let{abi:t,address:a,args:i,functionName:o}=p[e];try{let e=(0,A.pT)({abi:t,args:i,functionName:o});b+=(e.length-2)/2,u>0&&b>u&&g[f].length>0&&(f++,b=(e.length-2)/2,g[f]=[]),g[f]=[...g[f],{allowFailure:!0,callData:e,target:a}]}catch(s){let e=aU(s,{abi:t,address:a,args:i,docsPath:"/docs/contract/multicall",functionName:o,sender:r});if(!n)throw e;g[f]=[...g[f],{allowFailure:!0,callData:"0x",target:a}]}}let y=await Promise.allSettled(g.map(t=>ax(e,nu,"readContract")({...null===h?{code:A.Ez}:{address:h},abi:A.v2,account:r,args:[t],authorizationList:a,blockHash:i,blockNumber:o,blockOverrides:s,blockTag:l,functionName:"aggregate3",requireCanonical:c,stateOverride:d}))),k=[];for(let e=0;e<y.length;e++){let t=y[e];if("rejected"===t.status){if(!n)throw t.reason;for(let r=0;r<g[e].length;r++)k.push({status:"failure",error:t.reason,result:void 0});continue}let r=t.value;for(let t=0;t<r.length;t++){let{returnData:a,success:i}=r[t],{callData:o}=g[e][t],{abi:s,address:l,functionName:c,args:d}=p[k.length];try{if("0x"===o)throw new A.O;if(!i)throw new A.$S({data:a});let e=(0,A.e1)({abi:s,args:d,data:a,functionName:c});k.push(n?{result:e,status:"success"}:e)}catch(t){let e=aU(t,{abi:s,address:l,args:d,docsPath:"/docs/contract/multicall",functionName:c});if(!n)throw e;k.push({error:e,result:void 0,status:"failure"})}}}if(k.length!==p.length)throw new A.Cf("multicall results mismatch");return k}async function sB(e,t){let{blockNumber:r,blockTag:a=e.experimental_blockTag??"latest",blocks:n,returnFullTransactions:i,traceTransfers:o,validation:s}=t;try{let t=[];for(let e of n){let r=e.blockOverrides?(0,A.J$)(e.blockOverrides):void 0,a=e.calls.map(e=>{let t=e.account?(0,A.J5)(e.account):void 0,r=e.abi?(0,A.pT)(e):e.data,a={...e,account:t,data:e.dataSuffix?(0,A.xW)([r||"0x",e.dataSuffix]):r,from:e.from??t?.address};return(0,A.c3)(a),(0,A.Bv)(a)}),n=e.stateOverrides?(0,A.yH)(e.stateOverrides):void 0;t.push({blockOverrides:r,calls:a,stateOverrides:n})}let l="bigint"==typeof r?(0,A.cK)(r):void 0;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:i,traceTransfers:o,validation:s},l||a]})).map((e,t)=>({...aW(e),calls:e.calls.map((e,r)=>{let{abi:a,args:i,functionName:o,to:s}=n[t].calls[r],l=e.error?.data??e.returnData,c=BigInt(e.gasUsed),d=e.logs?.map(e=>no(e)),p="0x1"===e.status?"success":"failure",u=a&&"success"===p&&"0x"!==l?(0,A.e1)({abi:a,data:l,functionName:o}):null,m=(()=>{let e;if("success"!==p&&("0x"===l?e=new A.O:l&&(e=new A.$S({data:l})),e))return aU(e,{abi:a??[],address:s??"0x",args:i,functionName:o??"<unknown>"})})();return{data:l,gasUsed:c,logs:d,status:p,..."success"===p?{result:u}:{error:m}}})}))}catch(t){let e=(0,A.lV)(t,{});if(e instanceof A.RM)throw t;throw e}}function sC(e){let t=!0,r="",a=0,n="",i=!1;for(let o=0;o<e.length;o++){let s=e[o];if(["(",")",","].includes(s)&&(t=!0),"("===s&&a++,")"===s&&a--,t){if(0===a){if(" "===s&&["event","function","error",""].includes(n))n="";else if(n+=s,")"===s){i=!0;break}continue}if(" "===s){","!==e[o-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}n+=s,r+=s}}if(!i)throw new A.kl("Unable to normalize signature.");return n}function sU(e,t={}){let{prepare:r=!0}=t,a=Array.isArray(e)||"string"==typeof e?function(e){let t;if("string"==typeof e)t=oe(e);else{let r=ol(e),a=e.length;for(let n=0;n<a;n++){let a=e[n];if(!iW(a)){t=oe(a,r);break}}}if(!t)throw new iJ({signature:e});return t}(e):e;return{...a,...r?{hash:sR(a)}:{}}}function sI(e,t,r){let a,{args:n=[],prepare:i=!0}=r??{},o=(0,A.BH)(t,{strict:!1}),s=e.filter(e=>o?"function"===e.type||"error"===e.type?sN(e)===(0,A.iN)(t,0,4):"event"===e.type&&sR(e)===t:"name"in e&&e.name===t);if(0===s.length)throw new sA({name:t});if(1===s.length)return{...s[0],...i?{hash:sR(s[0])}:{}};for(let e of s){if("inputs"in e){if(!n||0===n.length){if(!e.inputs||0===e.inputs.length)return{...e,...i?{hash:sR(e)}:{}};continue}
4if(e.inputs&&0!==e.inputs.length&&e.inputs.length===n.length&&n.every((t,r)=>{let a="inputs"in e&&e.inputs[r];return!!a&&function e(t,r){let a=typeof t,n=r.type;switch(n){case"address":return oC(t,{strict:!1});case"bool":return"boolean"===a;case"function":case"string":return"string"===a;default:if("tuple"===n&&"components"in r)return Object.values(r.components).every((r,a)=>e(Object.values(t)[a],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n))return"number"===a||"bigint"===a;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n))return"string"===a||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:n.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,a)})){if(a&&"inputs"in a&&a.inputs){let t=function e(t,r,a){for(let n in t){let i=t[n],o=r[n];if("tuple"===i.type&&"tuple"===o.type&&"components"in i&&"components"in o)return e(i.components,o.components,a[n]);let s=[i.type,o.type];if(s.includes("address")&&s.includes("bytes20")||(s.includes("address")&&s.includes("string")||s.includes("address")&&s.includes("bytes"))&&oC(a[n],{strict:!1}))return s}}(e.inputs,a.inputs,n);if(t)throw new sS({abiItem:e,type:t[0]},{abiItem:a,type:t[1]})}a=e}}}let l=(()=>{if(a)return a;let[e,...t]=s;return{...e,overloads:t}})();if(!l)throw new sA({name:t});return{...l,...i?{hash:sR(l)}:{}}}function sN(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return sI(t,r)}return e[0]})();return(0,A.iN)(sR(t),0,4)}function sR(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return sI(t,r)}return e[0]})();return"string"!=typeof t&&"hash"in t&&t.hash?t.hash:op((0,A.tN)(function(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return sI(t,r)}return e[0]})();return sC("string"==typeof t?t:iF(t))}(t)))}var sS=class extends A.kl{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${sC(iF(e.abiItem))}\`, and`,`\`${t.type}\` in \`${sC(iF(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}},sA=class extends A.kl{constructor({name:e,data:t,type:r="item"}){super(`ABI ${r}${e?` with name "${e}"`:t?` with data "${t}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}};function sP(e,t={}){return sU(e,t)}function sD(e,t,r){let a=sI(e,t,r);if("function"!==a.type)throw new sA({name:t,type:"function"});return a}var sL="0x0000000000000000000000000000000000000000";async function sO(e,t){let{blockNumber:r,blockTag:a,calls:n,stateOverrides:i,traceAssetChanges:o,traceTransfers:s,validation:l}=t,c=t.account?(0,A.J5)(t.account):void 0;if(o&&!c)throw new A.Cf("`account` is required when `traceAssetChanges` is true");let d=c?function(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return[function(e){let t=e.find(e=>"constructor"===e.type);if(!t)throw new sA({name:"constructor"});return t}(t),r]}return e})(),{bytecode:a,args:n}=r;return(0,A.eF)(a,t.inputs?.length&&n?.length?oz(t.inputs,n):"0x")}(sU("constructor(bytes, bytes)"),{bytecode:A.LX,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",function(...e){let[t,r=[]]=(()=>
vendor: 4,420 bytes, line 4
4{if(Array.isArray(e[0])){let[t,r,a]=e;return[sD(t,r,{args:a}),a]}let[t,r]=e;return[t,r]})(),{overloads:a}=t,n=a?sD([t,...a],t.name,{args:r}):t,i=sN(n),o=r.length>0?oz(n.inputs,r):void 0;return o?(0,A.eF)(i,o):i}(sP("function getBalance(address)"),[c.address])]}):void 0,p=o?await Promise.all(t.calls.map(async t=>{if(!t.data&&!t.abi)return;let{accessList:r}=await ie(e,{account:c.address,...t,data:t.abi?(0,A.pT)(t):t.data});return r.map(({address:e,storageKeys:t})=>t.length>0?e:null)})).then(e=>e.flat().filter(Boolean)):[],u=await sB(e,{blockNumber:r,blockTag:a,blocks:[...o?[{calls:[{data:d}],stateOverrides:i},{calls:p.map((e,t)=>({abi:[sP("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[c.address],to:e,from:sL,nonce:t})),stateOverrides:[{address:sL,nonce:0}]}]:[],{calls:[...n,{to:sL}].map(e=>({...e,from:c?.address})),stateOverrides:i},...o?[{calls:[{data:d}]},{calls:p.map((e,t)=>({abi:[sP("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[c.address],to:e,from:sL,nonce:t})),stateOverrides:[{address:sL,nonce:0}]},{calls:p.map((e,t)=>({to:e,abi:[sP("function decimals() returns (uint256)")],functionName:"decimals",from:sL,nonce:t})),stateOverrides:[{address:sL,nonce:0}]},{calls:p.map((e,t)=>({to:e,abi:[sP("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:sL,nonce:t})),stateOverrides:[{address:sL,nonce:0}]},{calls:p.map((e,t)=>({to:e,abi:[sP("function symbol() returns (string)")],functionName:"symbol",from:sL,nonce:t})),stateOverrides:[{address:sL,nonce:0}]}]:[]],traceTransfers:s,validation:l}),m=o?u[2]:u[0],[h,g,,f,b,y,k,x]=o?u:[],{calls:w,...v}=m,T=w.slice(0,-1)??[],E=[...h?.calls??[],...g?.calls??[]].map(e=>"success"===e.status?(0,A.uU)(e.data):null),B=[...f?.calls??[],...b?.calls??[]].map(e=>"success"===e.status?(0,A.uU)(e.data):null),C=(y?.calls??[]).map(e=>"success"===e.status?e.result:null),U=(x?.calls??[]).map(e=>"success"===e.status?e.result:null),I=(k?.calls??[]).map(e=>"success"===e.status?e.result:null),N=[];for(let[e,t]of B.entries()){let r=E[e];if("bigint"!=typeof t||"bigint"!=typeof r)continue;let a=C[e-1],n=U[e-1],i=I[e-1],o=0===e?{address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18,symbol:"ETH"}:{address:p[e-1],decimals:i||a?Number(a??1):void 0,symbol:n??void 0};N.some(e=>e.token.address===o.address)||N.push({token:o,value:{pre:r,post:t,diff:t-r}})}return{assetChanges:N,block:v,results:T}}var sF={};(0,L.VA)(sF,{InvalidWrappedSignatureError:()=>sq,assert:()=>s$,from:()=>sW,magicBytes:()=>s_,universalSignatureValidatorAbi:()=>sj,universalSignatureValidatorBytecode:()=>sM,unwrap:()=>sz,validate:()=>sH,wrap:()=>sV});var s_="0x6492649264926492649264926492649264926492649264926492649264926492",sM="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b8152
460206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848
4603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",sj=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}];function s$(e){if((0,A.iN)(e,-32)!==s_)throw new sq(e)}function sW(e){return"string"==typeof e?sz(e):e}function sz(e){s$(e);let[t,r,a]=oW(oH("address, bytes, bytes"),e);return{data:r,signature:a,to:t}}function sV(e){let{data:t,signature:r,to:a}=e;return(0,A.eF)(oz(oH("address, bytes, bytes"),[a,t,r]),s_)}function sH(e){try{return s$(e),!0}catch{return!1}}var sq=class extends A.kl{constructor(e){super(`Value \`${e}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}};async function sG(e,t){let{address:r,chain:a=e.chain,hash:n,erc6492VerifierAddress:i=t.universalSignatureVerifierAddress??a?.contracts?.erc6492Verifier?.address,multicallAddress:o=t.multicallAddress??a?.contracts?.multicall3?.address,mode:s="auto"}=t;if(a?.verifyHash)return await a.verifyHash(e,t);let l=(()=>{let e=t.signature;return(0,A.qv)(e)?e:"object"==typeof e&&"r"in e&&"s"in e?function({r:e,s:t,to:r="hex",v:a,yParity:n}){let i=(()=>{if(0===n||1===n)return n;if(a&&(27n===a||28n===a||a>=35n))return+(a%2n===0n);throw Error("Invalid `v` or `yParity` value")})(),o=`0x${new N.bI.Signature((0,A.uU)(e),(0,A.uU)(t)).toCompactHex()}${0===i?"1b":"1c"}`;return"hex"===r?o:(0,A.aT)(o)}(e):(0,A.My)(e)})();try{if("eoa"===s)try{if((0,A.ho)((0,A.bv)(r),await aR({hash:n,signature:l})))return!0}catch{}if(iN.validate(l))return await sK(e,{...t,multicallAddress:o,signature:l});return await sJ(e,{...t,verifierAddress:i,signature:l})}catch(e){if("eoa"!==s)try{if((0,A.ho)((0,A.bv)(r),await aR({hash:n,signature:l})))return!0}catch{}if(e instanceof sQ)return!1;throw e}}async function sK(e,t){let{address:r,blockNumber:a,blockTag:n,hash:i,multicallAddress:o}=t,{authorization:s,data:l,signature:c,to:d}=iN.unwrap(t.signature);if(await il(e,{address:r,blockNumber:a,blockTag:n})===(0,A.aP)(["0xef0100",s.address]))return await sZ(e,{address:r,blockNumber:a,blockTag:n,hash:i,signature:c});let p={address:s.address,chainId:Number(s.chainId),nonce:Number(s.nonce),r:(0,A.cK)(s.r,{size:32}),s:(0,A.cK)(s.s,{size:32}),yParity:s.yParity};if(!await ix({address:r,authorization:p}))throw new sQ;let u=await ax(e,nu,"readContract")({...o?{address:o}:{code:A.Ez},authorizationList:[p],abi:A.v2,blockNumber:a,blockTag:"pending",functionName:"aggregate3",args:[[...l?[{allowFailure:!0,target:d??r,callData:l}]:[],{allowFailure:!0,target:r,callData:(0,A.pT)({abi:A.UW,functionName:"isValidSignature",args:[i,c]})}]]}),m=u[u.length-1]?.returnData;if(m?.startsWith("0x1626ba7e"))return!0;throw new sQ}async function sJ(e,t){let{address:r,factory:a,factoryData:n,hash:i,signature:o,verifierAddress:s,...l}=t,c=await (async()=>!a&&!n||sF.validate(o)?o:sF.wrap({data:n,signature:o,to:a}))(),d=s?{to:s,data:(0,A.pT)({abi:A.E5,functionName:"isValidSig",args:[r,i,c]}),...l}:{data:(0,A.m)({abi:A.E5,args:[r,i,c],bytecode:A.fT}),...l},{data:p}=await ax(e,A.T1,"call")(d).catch(e=>{if(e instanceof A.zX)throw new sQ;throw e});if((0,A.Nx)(p??"0x0"))return!0;throw new sQ}async function sZ(e,t){let{address:r,blockNumber:a,blockTag:n,hash:i,signature:o}=t;if((await ax(e,nu,"readContract")({address:r,abi:A.UW,args:[i,o],blockNumber:a,blockTag:n,functionName:"isValidSignature"}).catch(e=>{if(e instanceof A.bG)throw new sQ;throw e})).startsWith("0x1626ba7e"))return!0;throw new sQ}
vendor: 8,745 bytes, line 4
4var sQ=class extends Error{};async function sX(e,{address:t,message:r,factory:a,factoryData:n,signature:i,...o}){let s=iT(r);return ax(e,sG,"verifyHash")({address:t,factory:a,factoryData:n,hash:s,signature:i,...o})}async function sY(e,t){let{address:r,factory:a,factoryData:n,signature:i,message:o,primaryType:s,types:l,domain:c,...d}=t,p=iU({message:o,primaryType:s,types:l,domain:c});return ax(e,sG,"verifyHash")({address:r,factory:a,factoryData:n,hash:p,signature:i,...d})}function s0(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:a,onError:n,poll:i,pollingInterval:o=e.pollingInterval}){let s;return(void 0!==i?i:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type&&"ipc"!==e.transport.transports[0].config.type))?nb((0,A.As)(["watchBlockNumber",e.uid,t,r,o]),{onBlockNumber:a,onError:n},a=>nk(async()=>{try{let t=await ax(e,nT,"getBlockNumber")({cacheTime:0});if(void 0!==s){if(t===s)return;if(t-s>1&&r)for(let e=s+1n;e<t;e++)a.onBlockNumber(e,s),s=e}(void 0===s||t>s)&&(a.onBlockNumber(t,s),s=t)}catch(e){a.onError?.(e)}},{emitOnBegin:t,interval:o})):nb((0,A.As)(["watchBlockNumber",e.uid,t,r]),{onBlockNumber:a,onError:n},t=>{let r=!0,a=()=>r=!1;return(async()=>{try{let n=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:i}=await n.subscribe({params:["newHeads"],onData(e){if(!r)return;let a=(0,A.uU)(e.result?.number);t.onBlockNumber(a,s),s=a},onError(e){t.onError?.(e)}});a=i,r||a()}catch(e){n?.(e)}})(),()=>a()})}async function s1(e,t){let r,a,n,i,o,{checkReplacement:s=!0,confirmations:l=1,hash:c,onReplaced:d,retryCount:p=6,retryDelay:u=({count:e})=>200*~~(1<<e),timeout:m=18e4}=t,h=(0,A.As)(["waitForTransactionReceipt",e.uid,c]),g=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,f=!1,{promise:b,resolve:y,reject:k}=(0,A.YN)(),x=m?setTimeout(()=>{o?.(),i?.(),k(new A.WA({hash:c}))},m):void 0;return i=nb(h,{onReplaced:d,resolve:y,reject:k},async t=>{if((n=await ax(e,sT,"getTransactionReceipt")({hash:c}).catch(()=>void 0))&&l<=1){clearTimeout(x),t.resolve(n),i?.();return}o=ax(e,s0,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:g,async onBlockNumber(d){let m=e=>{clearTimeout(x),o?.(),e(),i?.()},h=d;if(!f)try{if(n){if(l>1&&(!n.blockNumber||h-n.blockNumber+1n<l))return;m(()=>t.resolve(n));return}if(s&&!r&&(f=!0,await nA(async()=>{(r=await ax(e,sw,"getTransaction")({hash:c})).blockNumber&&(h=r.blockNumber)},{delay:u,retryCount:p}),f=!1),n=await ax(e,sT,"getTransactionReceipt")({hash:c}),l>1&&(!n.blockNumber||h-n.blockNumber+1n<l))return;m(()=>t.resolve(n))}catch(i){if(i instanceof A.Kz||i instanceof A.Kc){if(!r){f=!1;return}try{a=r,f=!0;let i=await nA(()=>ax(e,aV,"getBlock")({blockNumber:h,includeTransactions:!0}),{delay:u,retryCount:p,shouldRetry:({error:e})=>e instanceof a_});f=!1;let o=i.transactions.find(({from:e,nonce:t})=>e===a.from&&t===a.nonce);if(!o||(n=await ax(e,sT,"getTransactionReceipt")({hash:o.hash}),l>1&&(!n.blockNumber||h-n.blockNumber+1n<l)))return;let s="replaced";o.to===a.to&&o.value===a.value&&o.input===a.input?s="repriced":o.from===o.to&&0n===o.value&&(s="cancelled"),m(()=>{t.onReplaced?.({reason:s,replacedTransaction:a,transaction:o,transactionReceipt:n}),t.resolve(n)})}catch(e){m(()=>t.reject(e))}}else m(()=>t.reject(i))}}})}),b}var s2=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,s3=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;async function s6(e,t){let{address:r,domain:a,message:n,nonce:i,scheme:o,signature:s,time:l=new Date,...c}=t,d=function(e){let{scheme:t,statement:r,...a}=e.match(s2)?.groups??{},{chainId:n,expirationTime:i,issuedAt:o,notBefore:s,requestId:l,...c}=e.match(s3)?.groups??{},d=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...a,...c,...n?{chainId:Number(n)}:{},...i?{expirationTime:new Date(i)}:{},...o?{issuedAt:new Date(o)}:{},...s?{notBefore:new Date(s)}:{},...l?{requestId:l}:{},...d?{resources:d}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}(n);if(!d.address||!function(e){let{address:t,domain:r,message:a,nonce:n,scheme:i,time:o=new Date}=e;if(r&&a.domain!==r||n&&a.nonce!==n||i&&a.scheme!==i||a.expirationTime&&o>=a.expirationTime||a.notBefore&&o<a.notBefore)return!1;try{if(!a.address||!(0,A.PW)(a.address,{strict:!1})||t&&!(0,A.ho)(a.address,t))return!1}catch{return!1}return!0}({address:r,domain:a,message:d,nonce:i,scheme:o,time:l}))return!1;let p=iT(n);return sG(e,{address:d.address,hash:p,signature:s,...c})}async function s8(e,{serializedTransaction:t,throwOnReceiptRevert:r,timeout:a}){let n=await e.request({method:"eth_sendRawTransactionSync",params:a?[t,a]:[t]},{retryCount:0}),i=(e.chain?.formatters?.transactionReceipt?.format||nD)(n);if("reverted"===i.status&&r)throw new A.Sq({receipt:i});return i}function s7(e){return{call:t=>(0,A.T1)(e,t),createAccessList:t=>ie(e,t),createBlockFilter:()=>it(e),createContractEventFilter:t=>aC(e,t),createEventFilter:t=>ir(e,t),createPendingTransactionFilter:()=>ia(e),estimateContractGas:t=>ni(e,t),estimateGas:t=>nn(e,t),getBalance:t=>ii(e,t),getBlobBaseFee:()=>io(e),getBlock:t=>aV(e,t),getBlockNumber:t=>nT(e,t),getBlockTransactionCount:t=>is(e,t),getBytecode:t=>il(e,t),getChainId:()=>a5(e),getCode:t=>il(e,t),getContractEvents:t=>np(e,t),getDelegation:t=>ic(e,t),getEip712Domain:t=>ip(e,t),getEnsAddress:t=>nW(e,t),getEnsAvatar:t=>n4(e,t),getEnsName:t=>n5(e,t),getEnsResolver:t=>n9(e,t),getEnsText:t=>n7(e,t),getFeeHistory:t=>im(e,t),estimateFeesPerGas:t=>aK(e,t),getFilterChanges:t=>nE(e,t),getFilterLogs:t=>ih(e,t),getGasPrice:()=>aH(e),getLogs:t=>nd(e,t),getProof:t=>sk(e,t),estimateMaxPriorityFeePerGas:t=>aq(e,t),fillTransaction:t=>a9(e,t),getStorageAt:t=>sx(e,t),getTransaction:t=>sw(e,t),getTransactionConfirmations:t=>sv(e,t),getTransactionCount:t=>aZ(e,t),getTransactionReceipt:t=>sT(e,t),multicall:t=>sE(e,t),prepareTransactionRequest:t=>na(e,t),readContract:t=>nu(e,t),sendRawTransaction:t=>nI(e,t),sendRawTransactionSync:t=>s8(e,t),simulate:t=>sB(e,t),simulateBlocks:t=>sB(e,t),simulateCalls:t=>sO(e,t),simulateContract:t=>nm(e,t),verifyHash:t=>sG(e,t),verifyMessage:t=>sX(e,t),verifySiweMessage:t=>s6(e,t),verifyTypedData:t=>sY(e,t),uninstallFilter:t=>nB(e,t),waitForTransactionReceipt:t=>s1(e,t),watchBlocks:t=>(function(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:r=!1,emitOnBegin:a=!1,onBlock:n,onError:i,includeTransactions:o,poll:s,pollingInterval:l=e.pollingInterval}){let c,d,p,u,m=void 0!==s?s:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type&&"ipc"!==e.transport.transports[0].config.type),h=o??!1;return m?nb((0,A.As)(["watchBlocks",e.uid,t,r,a,h,l]),{onBlock:n,onError:i},n=>nk(async()=>{try{let a=await ax(e,aV,"getBlock")({blockTag:t,includeTransactions:h});if(null!==a.number&&c?.number!=null){if(a.number===c.number)return;if(a.number-c.number>1&&r)for(let t=c?.number+1n;t<a.number;t++){let r=await ax(e,aV,"getBlock")({blockNumber:t,includeTransactions:h});n.onBlock(r,c),c=r}}(c?.number==null||"pending"===t&&a?.number==null||null!==a.number&&a.number>c.number)&&(n.onBlock(a,c),c=a)}catch(e){n.onError?.(e)}},{emitOnBegin:a,interval:l})):(d=!0,p=!0,u=()=>d=!1,(async()=>{try{a&&ax(e,aV,"getBlock")({blockTag:t,includeTransactions:h}).then(e=>{d&&p&&(n(e,void 0),p=!1)}).catch(i);let r=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:o}=await r.subscribe({params:["newHeads"],async onData(t){if(!d)return;let r=await ax(e,aV,"getBlock")({blockNumber:t.result?.number,includeTransactions:h}).catch(()=>{});d&&(n(r,c),p=!1,c=r)},onError(e){i?.(e)}});u=o,d||u()}catch(e){i?.(e)}})(),()=>u())})(e,t),watchBlockNumber:t=>s0(e,t),watchContractEvent:t=>(function(e,t){let{abi:r,address:a,args:n,batch:i=!0,eventName:o,fromBlock:s,onError:l,onLogs:c,poll:d,pollingInterval:p=e.pollingInterval,strict:u}=t;return(void 0!==d?d:"bigint"==typeof s||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
4onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{let t=u??!1;return nb((0,A.As)(["watchContractEvent",a,n,i,e.uid,o,p,t,s]),{onLogs:c,onError:l},l=>{let c,d;void 0!==s&&(c=s-1n);let u=!1,m=nk(async()=>{if(!u){try{d=await ax(e,aC,"createContractEventFilter")({abi:r,address:a,args:n,eventName:o,strict:t,fromBlock:s})}catch{}u=!0;return}try{let s;if(d)s=await ax(e,nE,"getFilterChanges")({filter:d});else{let i=await ax(e,nT,"getBlockNumber")({});s=c&&c<i?await ax(e,np,"getContractEvents")({abi:r,address:a,args:n,eventName:o,fromBlock:c+1n,toBlock:i,strict:t}):[],c=i}if(0===s.length)return;if(i)l.onLogs(s);else for(let e of s)l.onLogs([e])}catch(e){d&&e instanceof A.Di&&(u=!1),l.onError?.(e)}},{emitOnBegin:!0,interval:p});return async()=>{d&&await ax(e,nB,"uninstallFilter")({filter:d}),m()}})})():(()=>{let t=(0,A.As)(["watchContractEvent",a,n,i,e.uid,o,p,u??!1]),s=!0,d=()=>s=!1;return nb(t,{onLogs:c,onError:l},t=>((async()=>{try{let i=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),l=o?aT({abi:r,eventName:o,args:n}):[],{unsubscribe:c}=await i.subscribe({params:["logs",{address:a,topics:l}],onData(e){if(!s)return;let a=e.result;try{let{eventName:e,args:n}=nl({abi:r,data:a.data,topics:a.topics,strict:u}),i=no(a,{args:n,eventName:e});t.onLogs([i])}catch(i){let e,r;if(i instanceof A.fo||i instanceof A.l3){if(u)return;e=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let n=no(a,{args:r?[]:{},eventName:e});t.onLogs([n])}},onError(e){t.onError?.(e)}});d=c,s||d()}catch(e){l?.(e)}})(),()=>d()))})()})(e,t),watchEvent:t=>(function(e,{address:t,args:r,batch:a=!0,event:n,events:i,fromBlock:o,onError:s,onLogs:l,poll:c,pollingInterval:d=e.pollingInterval,strict:p}){let u,m,h=void 0!==c?c:"bigint"==typeof o||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
vendor: 5,268 bytes, line 4
4onfig.type&&"ipc"!==e.transport.transports[0].config.type),g=p??!1;return h?nb((0,A.As)(["watchEvent",t,r,a,e.uid,n,d,o]),{onLogs:l,onError:s},s=>{let l,c;void 0!==o&&(l=o-1n);let p=!1,u=nk(async()=>{if(!p){try{c=await ax(e,ir,"createEventFilter")({address:t,args:r,event:n,events:i,strict:g,fromBlock:o})}catch{}p=!0;return}try{let o;if(c)o=await ax(e,nE,"getFilterChanges")({filter:c});else{let a=await ax(e,nT,"getBlockNumber")({});o=l&&l!==a?await ax(e,nd,"getLogs")({address:t,args:r,event:n,events:i,fromBlock:l+1n,toBlock:a}):[],l=a}if(0===o.length)return;if(a)s.onLogs(o);else for(let e of o)s.onLogs([e])}catch(e){c&&e instanceof A.Di&&(p=!1),s.onError?.(e)}},{emitOnBegin:!0,interval:d});return async()=>{c&&await ax(e,nB,"uninstallFilter")({filter:c}),u()}}):(u=!0,m=()=>u=!1,(async()=>{try{let a=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),o=i??(n?[n]:void 0),c=[];o&&(c=[o.flatMap(e=>aT({abi:[e],eventName:e.name,args:r}))],n&&(c=c[0]));let{unsubscribe:d}=await a.subscribe({params:["logs",{address:t,topics:c}],onData(e){if(!u)return;let t=e.result;try{let{eventName:e,args:r}=nl({abi:o??[],data:t.data,topics:t.topics,strict:g}),a=no(t,{args:r,eventName:e});l([a])}catch(n){let e,r;if(n instanceof A.fo||n instanceof A.l3){if(p)return;e=n.abiItem.name,r=n.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let a=no(t,{args:r?[]:{},eventName:e});l([a])}},onError(e){s?.(e)}});m=d,u||m()}catch(e){s?.(e)}})(),()=>m())})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:r,onTransactions:a,poll:n,pollingInterval:i=e.pollingInterval}){let o,s;return(void 0!==n?n:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type)?nb((0,A.As)(["watchPendingTransactions",e.uid,t,i]),{onTransactions:a,onError:r},r=>{let a,n=nk(async()=>{try{if(!a)try{a=await ax(e,ia,"createPendingTransactionFilter")({});return}catch(e){throw n(),e}let i=await ax(e,nE,"getFilterChanges")({filter:a});if(0===i.length)return;if(t)r.onTransactions(i);else for(let e of i)r.onTransactions([e])}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:i});return async()=>{a&&await ax(e,nB,"uninstallFilter")({filter:a}),n()}}):(o=!0,s=()=>o=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!o)return;let t=e.result;a([t])},onError(e){r?.(e)}});s=t,o||s()}catch(e){r?.(e)}})(),()=>s())})(e,t)}}(0,S.qW)(),(0,R.v)(),(0,D.fD)(),(0,D.fD)(),(0,D.fD)();var s4=BigInt(0),s5=BigInt(1);function s9(e,t=""){if("boolean"!=typeof e)throw Error((t&&`"${t}"`)+"expected boolean, got type="+typeof e);return e}function le(e,t,r=""){let a=(0,D.aY)(e),n=e?.length,i=void 0!==t;if(!a||i&&n!==t)throw Error((r&&`"${r}" `)+"expected Uint8Array"+(i?` of length ${t}`:"")+", got "+(a?`length=${n}`:`type=${typeof e}`));return e}function lt(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function lr(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?s4:BigInt("0x"+e)}function la(e){return lr((0,D.My)(e))}function ln(e){return(0,D.DO)(e),lr((0,D.My)(Uint8Array.from(e).reverse()))}function li(e,t){return(0,D.aT)(e.toString(16).padStart(2*t,"0"))}function lo(e,t){return li(e,t).reverse()}function ls(e,t,r){let a;if("string"==typeof t)try{a=(0,D.aT)(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if((0,D.aY)(t))a=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");return a.length,a}var ll=e=>"bigint"==typeof e&&s4<=e;function lc(e){let t;for(t=0;e>s4;e>>=s5,t+=1);return t}var ld=e=>(s5<<BigInt(e))-s5;function lp(e,t,r={}){if(!e||"object"!=typeof e)throw Error("expected valid options object");function a(t,r,a){let n=e[t];if(a&&void 0===n)return;let i=typeof n;if(i!==r||null===n)throw Error(`param "${t}" is invalid: expected ${r}, got ${i}`)}Object.entries(t).forEach(([e,t])=>a(e,t,!1)),Object.entries(r).forEach(([e,t])=>a(e,t,!0))}function lu(e){let t=new WeakMap;return(r,...a)=>{let n=t.get(r);if(void 0!==n)return n;let i=e(r,...a);return t.set(r,i),i}}var lm=BigInt(0),lh=BigInt(1),lg=BigInt(2),lf=BigInt(3),lb=BigInt(4),ly=BigInt(5),lk=BigInt(7),lx=BigInt(8),lw=BigInt(9),lv=BigInt(16);function lT(e,t){let r=e%t;return r>=lm?r:t+r}function lE(e,t,r){let a=e;for(;t-- >lm;)a*=a,a%=r;return a}function lB(e,t){if(e===lm)throw Error("invert: expected non-zero number");if(t<=lm)throw Error("invert: expected positive modulus, got "+t);let r=lT(e,t),a=t,n=lm,i=lh;for(;r!==lm;){let e=a/r,t=a%r,o=n-i*e;a=r,r=t,n=i,i=o}if(a!==lh)throw Error("invert: does not exist");return lT(n,t)}function lC(e,t,r){if(!e.eql(e.sqr(t),r))throw Error("Cannot find square root")}function lU(e,t){let r=(e.ORDER+lh)/lb,a=e.pow(t,r);return lC(e,a,t),a}function lI(e,t){let r=(e.ORDER-ly)/lx,a=e.mul(t,lg),n=e.pow(a,r),i=e.mul(t,n),o=e.mul(e.mul(i,lg),n),s=e.mul(i,e.sub(o,e.ONE));return lC(e,s,t),s}function lN(e){if(e<lf)throw Error("sqrt is not defined for small field");let t=e-lh,r=0;for(;t%lg===lm;)t/=lg,r++;let a=lg,n=lD(e);for(;1===lA(n,a);)if(a++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===r)return lU;let i=n.pow(a,t),o=(t+lh)/lg;return function(e,a){if(e.is0(a))return a;
vendor: 4,950 bytes, line 4
4if(1!==lA(e,a))throw Error("Cannot find square root");let n=r,s=e.mul(e.ONE,i),l=e.pow(a,t),c=e.pow(a,o);for(;!e.eql(l,e.ONE);){if(e.is0(l))return e.ZERO;let t=1,r=e.sqr(l);for(;!e.eql(r,e.ONE);)if(t++,r=e.sqr(r),t===n)throw Error("Cannot find square root");let a=lh<<BigInt(n-t-1),i=e.pow(s,a);n=t,s=e.sqr(i),l=e.mul(l,s),c=e.mul(c,i)}return c}}var lR=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function lS(e,t,r=!1){let a=Array(t.length).fill(r?e.ZERO:void 0),n=t.reduce((t,r,n)=>e.is0(r)?t:(a[n]=t,e.mul(t,r)),e.ONE),i=e.inv(n);return t.reduceRight((t,r,n)=>e.is0(r)?t:(a[n]=e.mul(t,a[n]),e.mul(t,r)),i),a}function lA(e,t){let r=(e.ORDER-lh)/lg,a=e.pow(t,r),n=e.eql(a,e.ONE),i=e.eql(a,e.ZERO),o=e.eql(a,e.neg(e.ONE));if(!n&&!i&&!o)throw Error("invalid Legendre symbol result");return n?1:i?0:-1}function lP(e,t){void 0!==t&&(0,D.Fe)(t);let r=void 0!==t?t:e.toString(2).length,a=Math.ceil(r/8);return{nBitLength:r,nByteLength:a}}function lD(e,t,r=!1,a={}){let n,i,o,s;if(e<=lm)throw Error("invalid field: expected ORDER > 0, got "+e);let l=!1;if("object"==typeof t&&null!=t){if(a.sqrt||r)throw Error("cannot specify opts in two arguments");t.BITS&&(i=t.BITS),t.sqrt&&(o=t.sqrt),"boolean"==typeof t.isLE&&(r=t.isLE),"boolean"==typeof t.modFromBytes&&(l=t.modFromBytes),s=t.allowedLengths}else"number"==typeof t&&(i=t),a.sqrt&&(o=a.sqrt);let{nBitLength:c,nByteLength:d}=lP(e,i);if(d>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let p=Object.freeze({ORDER:e,isLE:r,BITS:c,BYTES:d,MASK:ld(c),ZERO:lm,ONE:lh,allowedLengths:s,create:t=>lT(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return lm<=t&&t<e},is0:e=>e===lm,isValidNot0:e=>!p.is0(e)&&p.isValid(e),isOdd:e=>(e&lh)===lh,neg:t=>lT(-t,e),eql:(e,t)=>e===t,sqr:t=>lT(t*t,e),add:(t,r)=>lT(t+r,e),sub:(t,r)=>lT(t-r,e),mul:(t,r)=>lT(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<lm)throw Error("invalid exponent, negatives unsupported");if(r===lm)return e.ONE;if(r===lh)return t;let a=e.ONE,n=t;for(;r>lm;)r&lh&&(a=e.mul(a,n)),n=e.sqr(n),r>>=lh;return a})(p,e,t),div:(t,r)=>lT(t*lB(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>lB(t,e),sqrt:o||(t=>(n||(n=e%lb===lf?lU:e%lx===ly?lI:e%lv===lw?function(e){let t=lD(e),r=lN(e),a=r(t,t.neg(t.ONE)),n=r(t,a),i=r(t,t.neg(a)),o=(e+lk)/lv;return(e,t)=>{let r=e.pow(t,o),s=e.mul(r,a),l=e.mul(r,n),c=e.mul(r,i),d=e.eql(e.sqr(s),t),p=e.eql(e.sqr(l),t);r=e.cmov(r,s,d),s=e.cmov(c,l,p);let u=e.eql(e.sqr(s),t),m=e.cmov(r,s,u);return lC(e,m,t),m}}(e):lN(e)),n(p,t))),toBytes:e=>r?lo(e,d):li(e,d),fromBytes:(t,a=!0)=>{if(s){if(!s.includes(t.length)||t.length>d)throw Error("Field.fromBytes: expected "+s+" bytes, got "+t.length);let e=new Uint8Array(d);e.set(t,r?0:e.length-t.length),t=e}if(t.length!==d)throw Error("Field.fromBytes: expected "+d+" bytes, got "+t.length);let n=r?ln(t):la(t);if(l&&(n=lT(n,e)),!a&&!p.isValid(n))throw Error("invalid field element: outside of range 0..ORDER");return n},invertBatch:e=>lS(p,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(p)}function lL(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function lO(e){let t=lL(e);return t+Math.ceil(t/2)}var lF=BigInt(0),l_=BigInt(1);function lM(e,t){let r=t.negate();return e?r:t}function lj(e,t){let r=lS(e.Fp,t.map(e=>e.Z));return t.map((t,a)=>e.fromAffine(t.toAffine(r[a])))}function l$(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function lW(e,t){l$(e,t);let r=Math.ceil(t/e)+1,a=2**(e-1),n=2**e;return{windows:r,windowSize:a,mask:ld(e),maxNumber:n,shiftBy:BigInt(e)}}function lz(e,t,r){let{windowSize:a,mask:n,maxNumber:i,shiftBy:o}=r,s=Number(e&n),l=e>>o;s>a&&(s-=i,l+=l_);let c=t*a,d=c+Math.abs(s)-1,p=0===s;return{nextN:l,offset:d,isZero:p,isNeg:s<0,isNegF:t%2!=0,offsetF:c}}var lV=new WeakMap,lH=new WeakMap;function lq(e){return lH.get(e)||1}function lG(e){if(e!==lF)throw Error("invalid wNAF")}var lK=class{constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,r=this.ZERO){let a=e;for(;t>lF;)t&l_&&(r=r.add(a)),a=a.double(),t>>=l_;return r}precomputeWindow(e,t){let{windows:r,windowSize:a}=lW(t,this.bits),n=[],i=e,o=i;for(let e=0;e<r;e++){o=i,n.push(o);for(let e=1;e<a;e++)o=o.add(i),n.push(o);i=o.double()}return n}wNAF(e,t,r){if(!this.Fn.isValid(r))throw Error("invalid scalar");let a=this.ZERO,n=this.BASE,i=lW(e,this.bits);for(let e=0;e<i.windows;e++){let{nextN:o,offset:s,isZero:l,isNeg:c,isNegF:d,offsetF:p}=lz(r,e,i);r=o,l?n=n.add(lM(d,t[p])):a=a.add(lM(c,t[s]))}return lG(r),{p:a,f:n}}wNAFUnsafe(e,t,r,a=this.ZERO){let n=lW(e,this.bits);for(let e=0;e<n.windows&&r!==lF;e++){let{nextN:i,offset:o,isZero:s,isNeg:l}=lz(r,e,n);if(r=i,!s){let e=t[o];a=a.add(l?e.negate():e)}}return lG(r),a}getPrecomputes(e,t,r){let a=lV.get(t);
vendor: 6,793 bytes, line 4
4return a||(a=this.precomputeWindow(t,e),1!==e&&("function"==typeof r&&(a=r(a)),lV.set(t,a))),a}cached(e,t,r){let a=lq(e);return this.wNAF(a,this.getPrecomputes(a,e,r),t)}unsafe(e,t,r,a){let n=lq(e);return 1===n?this._unsafeLadder(e,t,a):this.wNAFUnsafe(n,this.getPrecomputes(n,e,r),t,a)}createCache(e,t){l$(t,this.bits),lH.set(e,t),lV.delete(e)}hasCache(e){return 1!==lq(e)}};function lJ(e,t,r){if(!t)return lD(e,{isLE:r});if(t.ORDER!==e)throw Error("Field.ORDER must match order: Fp == p, Fn == n");return lp(t,lR.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"})),t}var lZ=(e,t)=>(e+(e>=0?t:-t)/l2)/t;function lQ(e){if(!["compact","recovered","der"].includes(e))throw Error('Signature format must be "compact", "recovered", or "der"');return e}function lX(e,t){let r={};for(let a of Object.keys(t))r[a]=void 0===e[a]?t[a]:e[a];return s9(r.lowS,"lowS"),s9(r.prehash,"prehash"),void 0!==r.format&&lQ(r.format),r}var lY={Err:class extends Error{constructor(e=""){super(e)}},_tlv:{encode:(e,t)=>{let{Err:r}=lY;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(1&t.length)throw new r("tlv.encode: unpadded data");let a=t.length/2,n=lt(a);if(n.length/2&128)throw new r("tlv.encode: long form length too big");let i=a>127?lt(n.length/2|128):"";return lt(e)+i+n+t},decode(e,t){let{Err:r}=lY,a=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[a++]!==e)throw new r("tlv.decode: wrong tlv");let n=t[a++],i=0;if(128&n){let e=127&n;if(!e)throw new r("tlv.decode(long): indefinite length not supported");if(e>4)throw new r("tlv.decode(long): byte length is too big");let o=t.subarray(a,a+e);if(o.length!==e)throw new r("tlv.decode: length bytes not complete");if(0===o[0])throw new r("tlv.decode(long): zero leftmost byte");for(let e of o)i=i<<8|e;if(a+=e,i<128)throw new r("tlv.decode(long): not minimal encoding")}else i=n;let o=t.subarray(a,a+i);if(o.length!==i)throw new r("tlv.decode: wrong value length");return{v:o,l:t.subarray(a+i)}}},_int:{encode(e){let{Err:t}=lY;if(e<l0)throw new t("integer: negative integers are not allowed");let r=lt(e);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){let{Err:t}=lY;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return la(e)}},toSig(e){let{Err:t,_int:r,_tlv:a}=lY,n=ls("signature",e),{v:i,l:o}=a.decode(48,n);if(o.length)throw new t("invalid signature: left bytes after parsing");let{v:s,l:l}=a.decode(2,i),{v:c,l:d}=a.decode(2,l);if(d.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(s),s:r.decode(c)}},hexFromSig(e){let{_tlv:t,_int:r}=lY,a=t.encode(2,r.encode(e.r)),n=t.encode(2,r.encode(e.s));return t.encode(48,a+n)}},l0=BigInt(0),l1=BigInt(1),l2=BigInt(2),l3=BigInt(3),l6=BigInt(4);function l8(e,t){let r,{BYTES:a}=e;if("bigint"==typeof t)r=t;else{let n=ls("private key",t);try{r=e.fromBytes(n)}catch(e){throw Error(`invalid private key: expected ui8a of size ${a}, got ${typeof t}`)}}if(!e.isValidNot0(r))throw Error("invalid private key: out of range [1..N-1]");return r}function l7(e){return Uint8Array.of(e?2:3)}function l4(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}var l5={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},l9={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},ce=BigInt(2),ct=lD(l5.p,{sqrt:function(e){let t=l5.p,r=BigInt(3),a=BigInt(6),n=BigInt(11),i=BigInt(22),o=BigInt(23),s=BigInt(44),l=BigInt(88),c=e*e*e%t,d=c*c*e%t,p=lE(d,r,t)*d%t,u=lE(p,r,t)*d%t,m=lE(u,ce,t)*c%t,h=lE(m,n,t)*m%t,g=lE(h,i,t)*h%t,f=lE(g,s,t)*g%t,b=lE(f,l,t)*f%t,y=lE(b,s,t)*g%t,k=lE(y,r,t)*d%t,x=lE(k,o,t)*h%t,w=lE(x,a,t)*c%t,v=lE(w,ce,t);if(!ct.eql(ct.sqr(v),e))throw Error("Cannot find square root");return v}}),cr=function(e,t){let r=t=>(function(e){let{CURVE:t,curveOpts:r,hash:a,ecdsaOpts:n}=function(e){let{CURVE:t,curveOpts:r}=function(e){let t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},r=e.Fp,a=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(e=>Math.ceil(e/2)))):void 0,n={Fp:r,Fn:lD(t.n,{BITS:e.nBitLength,allowedLengths:a,modFromBytes:e.wrapPrivateKey}),allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:n}}(e),a={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:r,hash:e.hash,ecdsaOpts:a}}(e),i=function(e,t,r={}){(0,D.sd)(t),lp(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});let a=r.randomBytes||D.po,n=r.hmac||((e,...r)=>(0,R.w)(t,e,(0,D.Id)(...r))),{Fp:i,Fn:o}=e,{ORDER:s,BITS:l}=o,{keygen:c,getPublicKey:d,getSharedSecret:p,utils:u,lengths:m}=function(e,t={}){let{Fn:r}=e,a=t.randomBytes||D.po,n=Object.assign(l4(e.Fp,r),{seed:lO(r.ORDER)});function i(e){try{return!!l8(r,e)}catch(e){return!1}}function o(e=a(n.seed)){return function(e,t,r=!1){let a=e.length,n=lL(t),i=lO(t);if(a<16||a<i||a>1024)throw Error("expected "+i+"-1024 bytes of input, got "+a);let o=lT(r?ln(e):la(e),t-lh)+lh;return r?lo(o,n):li(o,n)}(le(e,n.seed,"seed"),r.ORDER)}function s(t,a=!0){return e.BASE.multiply(l8(r,t)).toBytes(a)}function l(t){if("bigint"==typeof t)return!1;if(t instanceof e)return!0;let{secretKey:a,publicKey:i,publicKeyUncompressed:o}=n;if(r.allowedLengths||a===i)return;let s=ls("key",t).length;return s===i||s===o}return Object.freeze({getPublicKey:s,getSharedSecret:function(t,a,n=!0){if(!0===l(t))throw Error("first arg must be private key");if(!1===l(a))throw Error("second arg must be public key");let i=l8(r,t);return e.fromHex(a).multiply(i).toBytes(n)},keygen:function(e){let t=o(e);return{secretKey:t,publicKey:s(t)}},Point:e,utils:{isValidSecretKey:i,isValidPublicKey:function(t,r){let{publicKey:a,publicKeyUncompressed:i}=n;try{let n=t.length;if(!0===r&&n!==a||!1===r&&n!==i)return!1;return!!e.fromBytes(t)}catch(e){return!1}},randomSecretKey:o,isValidPrivateKey:i,randomPrivateKey:o,normPrivateKeyToScalar:e=>
vendor: 12,026 bytes, line 4
4l8(r,e),precompute:(t=8,r=e.BASE)=>r.precompute(t,!1)},lengths:n})}(e,r),h={prehash:!1,lowS:"boolean"==typeof r.lowS&&r.lowS,format:void 0,extraEntropy:!1},g="compact";function f(e,t){if(!o.isValidNot0(t))throw Error(`invalid signature ${e}: out of range 1..Point.Fn.ORDER`);return t}class b{constructor(e,t,r){this.r=f("r",e),this.s=f("s",t),null!=r&&(this.recovery=r),Object.freeze(this)}static fromBytes(e,t=g){let r;if(!function(e,t){lQ(t);let r=m.signature;le(e,"compact"===t?r:"recovered"===t?r+1:void 0,`${t} signature`)}(e,t),"der"===t){let{r:t,s:r}=lY.toSig(le(e));return new b(t,r)}"recovered"===t&&(r=e[0],t="compact",e=e.subarray(1));let a=o.BYTES,n=e.subarray(0,a),i=e.subarray(a,2*a);return new b(o.fromBytes(n),o.fromBytes(i),r)}static fromHex(e,t){return this.fromBytes((0,D.aT)(e),t)}addRecoveryBit(e){return new b(this.r,this.s,e)}recoverPublicKey(t){let r=i.ORDER,{r:a,s:n,recovery:l}=this;if(null==l||![0,1,2,3].includes(l))throw Error("recovery id invalid");if(s*l2<r&&l>1)throw Error("recovery id is ambiguous for h>1 curve");let c=2===l||3===l?a+s:a;if(!i.isValid(c))throw Error("recovery id 2 or 3 invalid");let d=i.toBytes(c),p=e.fromBytes((0,D.Id)(l7((1&l)==0),d)),u=o.inv(c),m=k(ls("msgHash",t)),h=o.create(-m*u),g=o.create(n*u),f=e.BASE.multiplyUnsafe(h).add(p.multiplyUnsafe(g));if(f.is0())throw Error("point at infinify");return f.assertValidity(),f}hasHighS(){return this.s>s>>l1}toBytes(e=g){if(lQ(e),"der"===e)return(0,D.aT)(lY.hexFromSig(this));let t=o.toBytes(this.r),r=o.toBytes(this.s);if("recovered"===e){if(null==this.recovery)throw Error("recovery bit must be present");return(0,D.Id)(Uint8Array.of(this.recovery),t,r)}return(0,D.Id)(t,r)}toHex(e){return(0,D.My)(this.toBytes(e))}assertValidity(){}static fromCompact(e){return b.fromBytes(ls("sig",e),"compact")}static fromDER(e){return b.fromBytes(ls("sig",e),"der")}normalizeS(){return this.hasHighS()?new b(this.r,o.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,D.My)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,D.My)(this.toBytes("compact"))}}let y=r.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=la(e),r=8*e.length-l;return r>0?t>>BigInt(r):t},k=r.bits2int_modN||function(e){return o.create(y(e))},x=ld(l);function w(e){return!function(e,t,r,a){if(!(ll(t)&&ll(r)&&ll(a))||!(r<=t)||!(t<a))throw Error("expected valid "+e+": "+r+" <= n < "+a+", got "+t)}("num < 2^"+l,e,l0,x),o.toBytes(e)}function v(e,r){return le(e,void 0,"message"),r?le(t(e),void 0,"prehashed message"):e}return Object.freeze({keygen:c,getPublicKey:d,getSharedSecret:p,utils:u,lengths:m,Point:e,sign:function(r,i,l={}){let{seed:c,k2sig:d}=function(t,r,n){if(["recovered","canonical"].some(e=>e in n))throw Error("sign() legacy options not supported");let{lowS:i,prehash:l,extraEntropy:c}=lX(n,h),d=k(t=v(t,l)),p=l8(o,r),u=[w(p),w(d)];if(null!=c&&!1!==c){let e=!0===c?a(m.secretKey):c;u.push(ls("extraEntropy",e))}return{seed:(0,D.Id)(...u),k2sig:function(t){let r=y(t);if(!o.isValidNot0(r))return;let a=o.inv(r),n=e.BASE.multiply(r).toAffine(),l=o.create(n.x);if(l===l0)return;let c=o.create(a*o.create(d+l*p));if(c===l0)return;let u=2*(n.x!==l)|Number(n.y&l1),m=c;return i&&c>s>>l1&&(m=o.neg(c),u^=1),new b(l,m,u)}}}(r=ls("message",r),i,l);return(function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let a=e=>new Uint8Array(e),n=e=>Uint8Array.of(e),i=a(e),o=a(e),s=0,l=()=>{i.fill(1),o.fill(0),s=0},c=(...e)=>r(o,i,...e),d=(e=a(0))=>{o=c(n(0),e),i=c(),0!==e.length&&(o=c(n(1),e),i=c())},p=()=>{if(s++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(i=c()).slice();r.push(t),e+=i.length}return(0,D.Id)(...r)};return(e,t)=>{let r;for(l(),d(e);!(r=t(p()));)d();return l(),r}})(t.outputLen,o.BYTES,n)(c,d)},verify:function(t,r,a,n={}){let{lowS:i,prehash:s,format:l}=lX(n,h);if(a=ls("publicKey",a),r=v(ls("message",r),s),"strict"in n)throw Error("options.strict was renamed to lowS");let c=void 0===l?function(e){let t,r="string"==typeof e||(0,D.aY)(e),a=!r&&null!==e&&"object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!r&&!a)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(a)t=new b(e.r,e.s);else if(r){try{t=b.fromBytes(ls("sig",e),"der")}catch(e){if(!(e instanceof lY.Err))throw e}if(!t)try{t=b.fromBytes(ls("sig",e),"compact")}catch(e){return!1}}return!!t&&t}(t):b.fromBytes(ls("sig",t),l);if(!1===c)return!1;try{let t=e.fromBytes(a);if(i&&c.hasHighS())return!1;let{r:n,s}=c,l=k(r),d=o.inv(s),p=o.create(l*d),u=o.create(n*d),m=e.BASE.multiplyUnsafe(p).add(t.multiplyUnsafe(u));if(m.is0())return!1;return o.create(m.x)===n}catch(e){return!1}},recoverPublicKey:function(e,t,r={}){let{prehash:a}=lX(r,h);return t=v(t,a),b.fromBytes(e,"recovered").recoverPublicKey(t).toBytes()},Signature:b,hash:t})}(function(e,t={}){let r=function(e,t,r={},a){if(void 0===a&&(a="edwards"===e),!t||"object"!=typeof t)throw Error(`expected valid ${e} CURVE object`);for(let e of["p","n","h"]){let r=t[e];if(!("bigint"==typeof r&&r>lF))throw Error(`CURVE.${e} must be positive bigint`)}let n=lJ(t.p,r.Fp,a),i=lJ(t.n,r.Fn,a);for(let e of["Gx","Gy","a","b"])if(!n.isValid(t[e]))throw Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:n,Fn:i}}("weierstrass",e,t),{Fp:a,Fn:n}=r,i=r.CURVE,{h:o,n:s}=i;lp(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});let{endo:l}=t;if(l&&(!a.is0(i.a)||"bigint"!=typeof l.beta||!Array.isArray(l.basises)))throw Error('invalid endo: expected "beta": bigint and "basises": array');let c=l4(a,n);function d(){if(!a.isOdd)throw Error("compression is not supported: Field does not have .isOdd()")}let p=t.toBytes||function(e,t,r){let{x:n,y:i}=t.toAffine(),o=a.toBytes(n);if(s9(r,"isCompressed"),!r)return(0,D.Id)(Uint8Array.of(4),o,a.toBytes(i));{d();let e=!a.isOdd(i);return(0,D.Id)(l7(e),o)}},u=t.fromBytes||function(e){le(e,void 0,"Point");let{publicKey:t,publicKeyUncompressed:r}=c,n=e.length,i=e[0],o=e.subarray(1);if(n===t&&(2===i||3===i)){let e,t=a.fromBytes(o);if(!a.isValid(t))throw Error("bad point: is not on curve, wrong x");let r=m(t);try{e=a.sqrt(r)}catch(e){throw Error("bad point: is not on curve, sqrt error"+(e instanceof Error?": "+e.message:""))}return d(),(1&i)==1!==a.isOdd(e)&&(e=a.neg(e)),{x:t,y:e}}if(n===r&&4===i){let e=a.BYTES,t=a.fromBytes(o.subarray(0,e)),r=a.fromBytes(o.subarray(e,2*e));if(!h(t,r))throw Error("bad point: is not on curve");return{x:t,y:r}}throw Error(`bad point: got length ${n}, expected compressed=${t} or uncompressed=${r}`)};function m(e){let t=a.sqr(e),r=a.mul(t,e);return a.add(a.add(r,a.mul(e,i.a)),i.b)}function h(e,t){let r=a.sqr(t),n=m(e);return a.eql(r,n)}if(!h(i.Gx,i.Gy))throw Error("bad curve params: generator point");let g=a.mul(a.pow(i.a,l3),l6),f=a.mul(a.sqr(i.b),BigInt(27));if(a.is0(a.add(g,f)))throw Error("bad curve params: a or b");function b(e,t,r=!1){if(!a.isValid(t)||r&&a.is0(t))throw Error(`bad point coordinate ${e}`);return t}function y(e){if(!(e instanceof T))throw Error("ProjectivePoint expected")}function k(e){if(!l||!l.basises)throw Error("no endo");return function(e,t,r){let[[a,n],[i,o]]=t,s=lZ(o*e,r),l=lZ(-n*e,r),c=e-s*a-l*i,d=-s*n-l*o,p=c<l0,u=d<l0;p&&(c=-c),u&&(d=-d);let m=ld(Math.ceil(lc(r)/2))+l1;if(c<l0||c>=m||d<l0||d>=m)throw Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:p,k1:c,k2neg:u,k2:d}}(e,l.basises,n.ORDER)}let x=lu((e,t)=>{let{X:r,Y:n,Z:i}=e;if(a.eql(i,a.ONE))return{x:r,y:n};let o=e.is0();null==t&&(t=o?a.ONE:a.inv(i));let s=a.mul(r,t),l=a.mul(n,t),c=a.mul(i,t);if(o)return{x:a.ZERO,y:a.ZERO};if(!a.eql(c,a.ONE))throw Error("invZ was invalid");return{x:s,y:l}}),w=lu(e=>{if(e.is0()){if(t.allowInfinityPoint&&!a.is0(e.Y))return;throw Error("bad point: ZERO")}let{x:r,y:n}=e.toAffine();if(!a.isValid(r)||!a.isValid(n))throw Error("bad point: x or y not field elements");if(!h(r,n))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});function v(e,t,r,n,i){return r=new T(a.mul(r.X,e),r.Y,r.Z),t=lM(n,t),r=lM(i,r),t.add(r)}class T{constructor(e,t,r){this.X=b("x",e),this.Y=b("y",t,!0),this.Z=b("z",r),Object.freeze(this)}static CURVE(){return i}static fromAffine(e){let{x:t,y:r}=e||{};if(!e||!a.isValid(t)||!a.isValid(r))throw Error("invalid affine point");if(e instanceof T)throw Error("projective point not allowed");return a.is0(t)&&a.is0(r)?T.ZERO:new T(t,r,a.ONE)}static fromBytes(e){let t=T.fromAffine(u(le(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return T.fromBytes(ls("pointHex",e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return B.createCache(this,e),t||this.multiply(l3),this}assertValidity(){w(this)}hasEvenY(){let{y:e}=this.toAffine();if(!a.isOdd)throw Error("Field doesn't support isOdd");return!a.isOdd(e)}equals(e){y(e);let{X:t,Y:r,Z:n}=this,{X:i,Y:o,Z:s}=e,l=a.eql(a.mul(t,s),a.mul(i,n)),c=a.eql(a.mul(r,s),a.mul(o,n));return l&&c}negate(){return new T(this.X,a.neg(this.Y),this.Z)}double(){let{a:e,b:t}=i,r=a.mul(t,l3),{X:n,Y:o,Z:s}=this,l=a.ZERO,c=a.ZERO,d=a.ZERO,p=a.mul(n,n),u=a.mul(o,o),m=a.mul(s,s),h=a.mul(n,o);return h=a.add(h,h),d=a.mul(n,s),d=a.add(d,d),l=a.mul(e,d),c=a.mul(r,m),c=a.add(l,c),l=a.sub(u,c),c=a.add(u,c),c=a.mul(l,c),l=a.mul(h,l),d=a.mul(r,d),m=a.mul(e,m),h=a.sub(p,m),h=a.mul(e,h),h=a.add(h,d),d=a.add(p,p),p=a.add(d,p),p=a.add(p,m),p=a.mul(p,h),c=a.add(c,p),m=a.mul(o,s),m=a.add(m,m),p=a.mul(m,h),l=a.sub(l,p),d=a.mul(m,u),d=a.add(d,d),new T(l,c,d=a.add(d,d))}add(e){y(e);let{X:t,Y:r,Z:n}=this,{X:o,Y:s,Z:l}=e,c=a.ZERO,d=a.ZERO,p=a.ZERO,u=i.a,m=a.mul(i.b,l3),h=a.mul(t,o),g=a.mul(r,s),f=a.mul(n,l),b=a.add(t,r),k=a.add(o,s);b=a.mul(b,k),k=a.add(h,g),b=a.sub(b,k),k=a.add(t,n);let x=a.add(o,l);return k=a.mul(k,x),x=a.add(h,f),k=a.sub(k,x),x=a.add(r,n),c=a.add(s,l),x=a.mul(x,c),c=a.add(g,f),x=a.sub(x,c),p=a.mul(u,k),c=a.mul(m,f),p=a.add(c,p),c=a.sub(g,p),p=a.add(g,p),d=a.mul(c,p),g=a.add(h,h),g=a.add(g,h),f=a.mul(u,f),k=a.mul(m,k),g=a.add(g,f),f=a.sub(h,f),f=a.mul(u,f),k=a.add(k,f),h=a.mul(g,k),d=a.add(d,h),h=a.mul(x,k),c=a.mul(b,c),c=a.sub(c,h),h=a.mul(b,g),p=a.mul(x,p),new T(c,d,p=a.add(p,h))}subtract(e){return this.add(e.negate())}is0(){return this.equals(T.ZERO)}multiply(e){let r,a,{endo:i}=t;if(!n.isValidNot0(e))throw Error("invalid scalar: out of range");let o=e=>B.cached(this,e,e=>lj(T,e));if(i){let{k1neg:t,k1:n,k2neg:s,k2:l}=k(e),{p:c,f:d}=o(n),{p:p,f:u}=o(l);a=d.add(u),r=v(i.beta,c,p,t,s)}else{let{p:t,f:n}=o(e);r=t,a=n}return lj(T,[r,a])[0]}multiplyUnsafe(e){let{endo:r}=t;if(!n.isValid(e))throw Error("invalid scalar: out of range");if(e===l0||this.is0())return T.ZERO;if(e===l1)return this;if(B.hasCache(this))return this.multiply(e);if(!r)return B.unsafe(this,e);{let{k1neg:t,k1:a,k2neg:n,k2:i}=k(e),{p1:o,p2:s}=function(e,t,r,a){let n=t,i=e.ZERO,o=e.ZERO;for(;r>lF||a>lF;)r&l_&&(i=i.add(n)),a&l_&&(o=o.add(n)),n=n.double(),r>>=l_,a>>=l_;return{p1:i,p2:o}}(T,this,a,i);return v(r.beta,o,s,t,n)}}multiplyAndAddUnsafe(e,t,r){let a=this.multiplyUnsafe(t).add(e.multiplyUnsafe(r));return a.is0()?void 0:a}toAffine(e){return x(this,e)}isTorsionFree(){let{isTorsionFree:e}=t;return o===l1||(e?e(T,this):B.unsafe(this,s).is0())}clearCofactor(){let{clearCofactor:e}=t;return o===l1?this:e?e(T,this):this.multiplyUnsafe(o)}isSmallOrder(){return this.multiplyUnsafe(o).is0()}toBytes(e=!0){return s9(e,"isCompressed"),this.assertValidity(),p(T,this,e)}toHex(e=!0){return(0,D.My)(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(e=!0){return this.toBytes(e)}
4_setWindowSize(e){this.precompute(e)}static normalizeZ(e){return lj(T,e)}static msm(e,t){return function(e,t,r,a){if(!Array.isArray(r))throw Error("array expected");r.forEach((t,r)=>{if(!(t instanceof e))throw Error("invalid point at index "+r)});if(!Array.isArray(a))throw Error("array of scalars expected");a.forEach((e,r)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+r)});let n=r.length,i=a.length;if(n!==i)throw Error("arrays of points and scalars must have equal length");let o=e.ZERO,s=lc(BigInt(n)),l=1;s>12?l=s-3:s>4?l=s-2:s>0&&(l=2);let c=ld(l),d=Array(Number(c)+1).fill(o),p=Math.floor((t.BITS-1)/l)*l,u=o;for(let e=p;e>=0;e-=l){d.fill(o);for(let t=0;t<i;t++){let n=Number(a[t]>>BigInt(e)&c);d[n]=d[n].add(r[t])}let t=o;for(let e=d.length-1,r=o;e>0;e--)r=r.add(d[e]),t=t.add(r);if(u=u.add(t),0!==e)for(let e=0;e<l;e++)u=u.double()}return u}(T,n,e,t)}static fromPrivateKey(e){return T.BASE.multiply(l8(n,e))}}T.BASE=new T(i.Gx,i.Gy,a.ONE),T.ZERO=new T(a.ZERO,a.ONE,a.ZERO),T.Fp=a,T.Fn=n;let E=n.BITS,B=new lK(T,t.endo?Math.ceil(E/2):E);return T.BASE.precompute(8),T}(t,r),a,n),o=i.Point;return Object.assign({},i,{ProjectivePoint:o,CURVE:Object.assign({},e,lP(o.Fn.ORDER,o.Fn.BITS))})})({...e,hash:t});return{...r(t),create:r}}({...l5,Fp:ct,lowS:!0,endo:l9},S.sc);function ca(e){let t=typeof e;if("object"==t){if(Array.isArray(e))return"array";if(null===e)return"null"}return t}function cn(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}(0,S.qW)();var ci="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),co=[];for(let e=0;e<ci.length;e++)co[ci[e].charCodeAt(0)]=e;function cs(e){let t=3*e.length/4;"="==e[e.length-2]?t-=2:"="==e[e.length-1]&&(t-=1);let r=new Uint8Array(t),a=0,n=0,i,o=0;for(let t=0;t<e.length;t++){if(void 0===(i=co[e.charCodeAt(t)]))switch(e[t]){case"=":n=0;case"\n":case"\r":case"	":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[a++]=o<<2|(48&i)>>4,o=i,n=2;break;case 2:r[a++]=(15&o)<<4|(60&i)>>2,o=i,n=3;break;case 3:r[a++]=(3&o)<<6|i,n=0}}if(1==n)throw Error("invalid base64 string.");return r.subarray(0,a)}function cl(e){let t="",r=0,a,n=0;for(let i=0;i<e.length;i++)switch(a=e[i],r){case 0:t+=ci[a>>2],n=(3&a)<<4,r=1;break;case 1:t+=ci[n|a>>4],n=(15&a)<<2,r=2;break;case 2:t+=ci[n|a>>6],t+=ci[63&a],r=0}return r&&(t+=ci[n],t+="=",1==r&&(t+="=")),t}function cc(){let e=0,t=0;for(let r=0;r<28;r+=7){let a=this.buf[this.pos++];if(e|=(127&a)<<r,(128&a)==0)return this.assertBounds(),[e,t]}let r=this.buf[this.pos++];if(e|=(15&r)<<28,t=(112&r)>>4,(128&r)==0)return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let a=this.buf[this.pos++];if(t|=(127&a)<<r,(128&a)==0)return this.assertBounds(),[e,t]}throw Error("invalid varint")}function cd(e,t,r){for(let a=0;a<28;a+=7){let n=e>>>a,i=n>>>7!=0||0!=t,o=(i?128|n:n)&255;if(r.push(o),!i)return}let a=e>>>28&15|(7&t)<<4,n=t>>3!=0;if(r.push((n?128|a:a)&255),n){for(let e=3;e<31;e+=7){let a=t>>>e,n=a>>>7!=0,i=(n?128|a:a)&255;if(r.push(i),!n)return}r.push(t>>>31&1)}}function cp(e){let t="-"==e[0];t&&(e=e.slice(1));let r=0,a=0;function n(t,n){let i=Number(e.slice(t,n));a*=1e6,(r=1e6*r+i)>=0x100000000&&(a+=r/0x100000000|0,r%=0x100000000)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[t,r,a]}function cu(e,t){if(t>>>0<=2097151)return""+(0x100000000*t+(e>>>0));let r=(e>>>24|t<<8)>>>0&0xffffff,a=t>>16&65535,n=(0xffffff&e)+6777216*r+6710656*a,i=r+8147497*a,o=2*a;function s(e,t){let r=e?String(e):"";return t?"0000000".slice(r.length)+r:r}return n>=1e7&&(i+=Math.floor(n/1e7),n%=1e7),i>=1e7&&(o+=Math.floor(i/1e7),i%=1e7),s(o,0)+s(i,o)+s(n,1)}function cm(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(let r=0;r<9;r++)t.push(127&e|128),e>>=7;t.push(1)}}function ch(){let e=this.buf[this.pos++],t=127&e;if((128&e)==0||(t|=(127&(e=this.buf[this.pos++]))<<7,(128&e)==0)||(t|=(127&(e=this.buf[this.pos++]))<<14,(128&e)==0)||(t|=(127&(e=this.buf[this.pos++]))<<21,(128&e)==0))return this.assertBounds(),t;t|=(15&(e=this.buf[this.pos++]))<<28;for(let t=5;(128&e)!=0&&t<10;t++)e=this.buf[this.pos++];if((128&e)!=0)throw Error("invalid varint");return this.assertBounds(),t>>>0}function cg(e){if(!e)throw Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}co[45]=ci.indexOf("+"),co[95]=ci.indexOf("/"),function(e){e.symbol=Symbol.for("protobuf-ts/unknown"),e.onRead=(r,a,n,i,o)=>
4{(t(a)?a[e.symbol]:a[e.symbol]=[]).push({no:n,wireType:i,data:o})},e.onWrite=(t,r,a)=>{for(let{no:t,wireType:n,data:i}of e.list(r))a.tag(t,n).raw(i)},e.list=(r,a)=>{if(t(r)){let t=r[e.symbol];return a?t.filter(e=>e.no==a):t}return[]},e.last=(t,r)=>e.list(t,r).slice(-1)[0];let t=t=>t&&Array.isArray(t[e.symbol])}(d||(d={})),!function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"}(p||(p={})),!function(){let e=new DataView(new ArrayBuffer(8));u=void 0!==globalThis.BigInt&&"function"==typeof e.getBigInt64&&"function"==typeof e.getBigUint64&&"function"==typeof e.setBigInt64&&"function"==typeof e.setBigUint64?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:e}:void 0}();var cf=/^-?[0-9]+$/,cb=class{constructor(e,t){this.lo=0|e,this.hi=0|t}isZero(){return 0==this.lo&&0==this.hi}toNumber(){let e=0x100000000*this.hi+(this.lo>>>0);if(!Number.isSafeInteger(e))throw Error("cannot convert to safe number");return e}},cy=class e extends cb{static from(t){if(u)switch(typeof t){case"string":if("0"==t)return this.ZERO;if(""==t)throw Error("string is no integer");t=u.C(t);case"number":if(0===t)return this.ZERO;t=u.C(t);case"bigint":if(!t)return this.ZERO;if(t<u.UMIN)throw Error("signed value for ulong");if(t>u.UMAX)throw Error("ulong too large");return u.V.setBigUint64(0,t,!0),new e(u.V.getInt32(0,!0),u.V.getInt32(4,!0))}else switch(typeof t){case"string":if("0"==t)return this.ZERO;if(t=t.trim(),!cf.test(t))throw Error("string is no integer");let[r,a,n]=cp(t);if(r)throw Error("signed value for ulong");return new e(a,n);case"number":if(0==t)return this.ZERO;if(!Number.isSafeInteger(t))throw Error("number is no integer");if(t<0)throw Error("signed value for ulong");return new e(t,t/0x100000000)}throw Error("unknown value "+typeof t)}toString(){return u?this.toBigInt().toString():cu(this.lo,this.hi)}toBigInt(){return cg(u),u.V.setInt32(0,this.lo,!0),u.V.setInt32(4,this.hi,!0),u.V.getBigUint64(0,!0)}};cy.ZERO=new cy(0,0);var ck=class e extends cb{static from(t){if(u)switch(typeof t){case"string":if("0"==t)return this.ZERO;if(""==t)throw Error("string is no integer");t=u.C(t);case"number":if(0===t)return this.ZERO;t=u.C(t);case"bigint":if(!t)return this.ZERO;if(t<u.MIN)throw Error("signed long too small");if(t>u.MAX)throw Error("signed long too large");return u.V.setBigInt64(0,t,!0),new e(u.V.getInt32(0,!0),u.V.getInt32(4,!0))}else switch(typeof t){case"string":if("0"==t)return this.ZERO;if(t=t.trim(),!cf.test(t))throw Error("string is no integer");let[r,a,n]=cp(t);if(r){if(n>0x80000000||0x80000000==n&&0!=a)throw Error("signed long too small")}else if(n>=0x80000000)throw Error("signed long too large");let i=new e(a,n);return r?i.negate():i;case"number":if(0==t)return this.ZERO;if(!Number.isSafeInteger(t))throw Error("number is no integer");return t>0?new e(t,t/0x100000000):new e(-t,-t/0x100000000).negate()}throw Error("unknown value "+typeof t)}isNegative(){return(0x80000000&this.hi)!=0}negate(){let t=~this.hi,r=this.lo;return r?r=~r+1:t+=1,new e(r,t)}toString(){if(u)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+cu(e.lo,e.hi)}return cu(this.lo,this.hi)}toBigInt(){return cg(u),u.V.setInt32(0,this.lo,!0),u.V.setInt32(4,this.hi,!0),u.V.getBigInt64(0,!0)}};ck.ZERO=new ck(0,0);var cx={readUnknownField:!0,readerFactory:e=>new cw(e)},cw=class{constructor(e,t){this.varint64=cc,this.uint32=ch,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=null!=t?t:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),t=e>>>3,r=7&e;if(t<=0||r<0||r>5)throw Error("illegal tag: field no "+t+" wire type "+r);return[t,r]}skip(e){let t=this.pos;switch(e){case p.Varint:for(;128&this.buf[this.pos++];);break;case p.Bit64:this.pos+=4;case p.Bit32:this.pos+=4;break;case p.LengthDelimited:let r=this.uint32();this.pos+=r;break;case p.StartGroup:let a;for(;(a=this.tag()[1])!==p.EndGroup;)this.skip(a);break;default:throw Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError("premature EOF")}int32(){return 0|this.uint32()}sint32(){let e=this.uint32();return e>>>1^-(1&e)}int64(){return new ck(...this.varint64())}uint64(){return new cy(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(1&e);return new ck(e=(e>>>1|(1&t)<<31)^r,t=t>>>1^r)}bool(){let[e,t]=this.varint64();return 0!==e||0!==t}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new cy(this.sfixed32(),this.sfixed32())}sfixed64(){return new ck(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}};function cv(e,t){if(!e)throw Error(t)}function cT(e){if("number"!=typeof e)throw Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>0x7fffffff||e<-0x80000000)throw Error("invalid int 32: "+e)}function cE(e){if("number"!=typeof e)throw Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>0xffffffff||e<0)throw Error("invalid uint 32: "+e)}function cB(e){if("number"!=typeof e)throw Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error("invalid float 32: "+e)}var cC={writeUnknownFields:!0,writerFactory:()=>new cU},cU=class{constructor(e){this.stack=[],this.textEncoder=null!=e?e:new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t<this.chunks.length;t++)e+=this.chunks[t].length;let t=new Uint8Array(e),r=0;for(let e=0;e<this.chunks.length;e++)t.set(this.chunks[e],r),r+=this.chunks[e].length;return this.chunks=[],t}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let e=this.finish(),t=this.stack.pop();if(!t)throw Error("invalid state, fork stack empty");return this.chunks=t.chunks,this.buf=t.buf,this.uint32(e.byteLength),this.raw(e)}tag(e,t){return this.uint32((e<<3|t)>>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(cE(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return cT(e),cm(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){cB(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){cE(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){cT(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return cT(e),cm(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),r=new DataView(t.buffer),a=ck.from(e);return r.setInt32(0,a.lo,!0),r.setInt32(4,a.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),r=new DataView(t.buffer),a=cy.from(e);return r.setInt32(0,a.lo,!0),r.setInt32(4,a.hi,!0),this.raw(t)}int64(e){let t=ck.from(e);return cd(t.lo,t.hi,this.buf),this}sint64(e){let t=ck.from(e),r=t.hi>>31;return cd(t.lo<<1^r,(t.hi<<1|t.lo>>>31)^r,this.buf),this}uint64(e){let t=cy.from(e);return cd(t.lo,t.hi,this.buf),this}},cI={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},cN={ignoreUnknownFields:!1};function cR(e){return e?Object.assign(Object.assign({}
4,cI),e):cI}var cS=Symbol.for("protobuf-ts/message-type");function cA(e){let t=!1,r=[];for(let a=0;a<e.length;a++){let n=e.charAt(a);"_"==n?t=!0:/\d/.test(n)?(r.push(n),t=!0):t?(r.push(n.toUpperCase()),t=!1):0==a?r.push(n.toLowerCase()):r.push(n)}return r.join("")}function cP(e){var t,r,a,n;return e.localName=null!=(t=e.localName)?t:cA(e.name),e.jsonName=null!=(r=e.jsonName)?r:cA(e.name),e.repeat=null!=(a=e.repeat)?a:g.NO,e.opt=null!=(n=e.opt)?n:!e.repeat&&!e.oneof&&"message"==e.kind,e}!function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"}(m||(m={})),function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING",e[e.NUMBER=2]="NUMBER"}(h||(h={})),function(e){e[e.NO=0]="NO",e[e.PACKED=1]="PACKED",e[e.UNPACKED=2]="UNPACKED"}(g||(g={}));var cD=class{constructor(e){var t;this.fields=null!=(t=e.fields)?t:[]}prepare(){if(this.data)return;let e=[],t=[],r=[];for(let a of this.fields)if(a.oneof)r.includes(a.oneof)||(r.push(a.oneof),e.push(a.oneof),t.push(a.oneof));else switch(t.push(a.localName),a.kind){case"scalar":case"enum":(!a.opt||a.repeat)&&e.push(a.localName);break;case"message":a.repeat&&e.push(a.localName);break;case"map":e.push(a.localName)}this.data={req:e,known:t,oneofs:Object.values(r)}}is(e,t,r=!1){if(t<0)return!0;if(null==e||"object"!=typeof e)return!1;this.prepare();let a=Object.keys(e),n=this.data;if(a.length<n.req.length||n.req.some(e=>!a.includes(e))||!r&&a.some(e=>!n.known.includes(e)))return!1;if(t<1)return!0;for(let a of n.oneofs){let n=e[a];if(!function(e){if("object"!=typeof e||null===e||!e.hasOwnProperty("oneofKind"))return!1;switch(typeof e.oneofKind){case"string":if(void 0===e[e.oneofKind])return!1;return 2==Object.keys(e).length;case"undefined":return 1==Object.keys(e).length;default:return!1}}(n))return!1;if(void 0===n.oneofKind)continue;let i=this.fields.find(e=>e.localName===n.oneofKind);if(!i||!this.field(n[n.oneofKind],i,r,t))return!1}for(let a of this.fields)if(void 0===a.oneof&&!this.field(e[a.localName],a,r,t))return!1;return!0}field(e,t,r,a){let n=t.repeat;switch(t.kind){case"scalar":if(void 0===e)return t.opt;if(n)return this.scalars(e,t.T,a,t.L);return this.scalar(e,t.T,t.L);case"enum":if(void 0===e)return t.opt;if(n)return this.scalars(e,m.INT32,a);return this.scalar(e,m.INT32);case"message":if(void 0===e)break;if(n)return this.messages(e,t.T(),r,a);return this.message(e,t.T(),r,a);case"map":if("object"!=typeof e||null===e)return!1;if(a<2)break;if(!this.mapKeys(e,t.K,a))return!1;switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,a,t.V.L);case"enum":return this.scalars(Object.values(e),m.INT32,a);case"message":return this.messages(Object.values(e),t.V.T(),r,a)}}return!0}message(e,t,r,a){return r?t.isAssignable(e,a):t.is(e,a)}messages(e,t,r,a){if(!Array.isArray(e))return!1;if(a<2)return!0;if(r){for(let r=0;r<e.length&&r<a;r++)if(!t.isAssignable(e[r],a-1))return!1}else for(let r=0;r<e.length&&r<a;r++)if(!t.is(e[r],a-1))return!1;return!0}scalar(e,t,r){let a=typeof e;switch(t){case m.UINT64:case m.FIXED64:case m.INT64:case m.SFIXED64:case m.SINT64:switch(r){case h.BIGINT:return"bigint"==a;case h.NUMBER:return"number"==a&&!isNaN(e);default:return"string"==a}case m.BOOL:return"boolean"==a;case m.STRING:return"string"==a;case m.BYTES:return e instanceof Uint8Array;case m.DOUBLE:case m.FLOAT:return"number"==a&&!isNaN(e);default:return"number"==a&&Number.isInteger(e)}}scalars(e,t,r,a){if(!Array.isArray(e))return!1;if(r<2)return!0;if(Array.isArray(e)){for(let n=0;n<e.length&&n<r;n++)if(!this.scalar(e[n],t,a))return!1}return!0}mapKeys(e,t,r){let a=Object.keys(e);switch(t){case m.INT32:case m.FIXED32:case m.SFIXED32:case m.SINT32:case m.UINT32:return this.scalars(a.slice(0,r).map(e=>parseInt(e)),t,r);case m.BOOL:return this.scalars(a.slice(0,r).map(e=>"true"==e||"false"!=e&&e),t,r);default:return this.scalars(a,t,r,h.STRING)}}};function cL(e,t){switch(t){case h.BIGINT:return e.toBigInt();case h.NUMBER:return e.toNumber();default:return e.toString()}}var cO=class{constructor(e){this.info=e}prepare(){var e;if(void 0===this.fMap)for(let t of(this.fMap={},null!=(e=this.info.fields)?e:[]))this.fMap[t.name]=t,this.fMap[t.jsonName]=t,this.fMap[t.localName]=t}assert(e,t,r){if(!e){let e=ca(r);throw("number"==e||"boolean"==e)&&(e=r.toString()),Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${t}`)}}read(e,t,r){this.prepare();let a=[];for(let[n,i]of Object.entries(e)){let e,o=this.fMap[n];if(!o){if(!r.ignoreUnknownFields)throw Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${n}`);continue}let s=o.localName;if(o.oneof){if(null===i&&("enum"!==o.kind||"google.protobuf.NullValue"!==o.T()[0]))continue;if(a.includes(o.oneof))throw Error(`Multiple members of the oneof group "${o.oneof}" of ${this.info.typeName} are present in JSON.`);a.push(o.oneof),e=t[o.oneof]={oneofKind:s}}else e=t;if("map"==o.kind){if(null===i)continue;this.assert(cn(i),o.name,i);let t=e[s];for(let[e,a]of Object.entries(i)){let n;switch(this.assert(null!==a,o.name+" map value",null),o.V.kind){case"message":n=o.V.T().internalJsonRead(a,r);break;case"enum":if(!1===(n=this.enum(o.V.T(),a,o.name,r.ignoreUnknownFields)))continue;break;case"scalar":n=this.scalar(a,o.V.T,o.V.L,o.name)}this.assert(void 0!==n,o.name+" map value",a);let i=e;o.K==m.BOOL&&(i="true"==i||"false"!=i&&i),t[i=this.scalar(i,o.K,h.STRING,o.name).toString()]=n}}else if(o.repeat){if(null===i)continue;this.assert(Array.isArray(i),o.name,i);let t=e[s];for(let e of i){let a;switch(this.assert(null!==e,o.name,null),o.kind){case"message":a=o.T(
4).internalJsonRead(e,r);break;case"enum":if(!1===(a=this.enum(o.T(),e,o.name,r.ignoreUnknownFields)))continue;break;case"scalar":a=this.scalar(e,o.T,o.L,o.name)}this.assert(void 0!==a,o.name,i),t.push(a)}}else switch(o.kind){case"message":if(null===i&&"google.protobuf.Value"!=o.T().typeName){this.assert(void 0===o.oneof,o.name+" (oneof member)",null);continue}e[s]=o.T().internalJsonRead(i,r,e[s]);break;case"enum":if(null===i)continue;let l=this.enum(o.T(),i,o.name,r.ignoreUnknownFields);if(!1===l)continue;e[s]=l;break;case"scalar":if(null===i)continue;e[s]=this.scalar(i,o.T,o.L,o.name)}}}enum(e,t,r,a){if("google.protobuf.NullValue"==e[0]&&cv(null===t||"NULL_VALUE"===t,`Unable to parse field ${this.info.typeName}#${r}, enum ${e[0]} only accepts null.`),null===t)return 0;switch(typeof t){case"number":return cv(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${r}, enum can only be integral number, got ${t}.`),t;case"string":let n=t;e[2]&&t.substring(0,e[2].length)===e[2]&&(n=t.substring(e[2].length));let i=e[1][n];if(void 0===i&&a)return!1;return cv("number"==typeof i,`Unable to parse field ${this.info.typeName}#${r}, enum ${e[0]} has no value for "${t}".`),i}cv(!1,`Unable to parse field ${this.info.typeName}#${r}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,r,a){let n;try{switch(t){case m.DOUBLE:case m.FLOAT:if(null===e)return 0;if("NaN"===e)return NaN;if("Infinity"===e)return 1/0;if("-Infinity"===e)return-1/0;if(""===e){n="empty string";break}if("string"==typeof e&&e.trim().length!==e.length){n="extra whitespace";break}if("string"!=typeof e&&"number"!=typeof e)break;let a=Number(e);if(Number.isNaN(a)){n="not a number";break}if(!Number.isFinite(a)){n="too large or small";break}return t==m.FLOAT&&cB(a),a;case m.INT32:case m.FIXED32:case m.SFIXED32:case m.SINT32:case m.UINT32:let i;if(null===e)return 0;if("number"==typeof e?i=e:""===e?n="empty string":"string"==typeof e&&(e.trim().length!==e.length?n="extra whitespace":i=Number(e)),void 0===i)break;return t==m.UINT32?cE(i):cT(i),i;case m.INT64:case m.SFIXED64:case m.SINT64:if(null===e)return cL(ck.ZERO,r);if("number"!=typeof e&&"string"!=typeof e)break;return cL(ck.from(e),r);case m.FIXED64:case m.UINT64:if(null===e)return cL(cy.ZERO,r);if("number"!=typeof e&&"string"!=typeof e)break;return cL(cy.from(e),r);case m.BOOL:if(null===e)return!1;if("boolean"!=typeof e)break;return e;case m.STRING:if(null===e)return"";if("string"!=typeof e){n="extra whitespace";break}try{encodeURIComponent(e)}catch(e){break}return e;case m.BYTES:if(null===e||""===e)return new Uint8Array(0);if("string"!=typeof e)break;return cs(e)}}catch(e){n=e.message}this.assert(!1,a+(n?" - "+n:""),e)}},cF=class{constructor(e){var t;this.fields=null!=(t=e.fields)?t:[]}write(e,t){let r={};for(let a of this.fields){if(!a.oneof){let n=this.field(a,e[a.localName],t);void 0!==n&&(r[t.useProtoFieldName?a.name:a.jsonName]=n);continue}let n=e[a.oneof];if(n.oneofKind!==a.localName)continue;let i="scalar"==a.kind||"enum"==a.kind?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,o=this.field(a,n[a.localName],i);cv(void 0!==o),r[t.useProtoFieldName?a.name:a.jsonName]=o}return r}field(e,t,r){let a;if("map"==e.kind){cv("object"==typeof t&&null!==t);let n={};switch(e.V.kind){case"scalar":for(let[r,a]of Object.entries(t)){let t=this.scalar(e.V.T,a,e.name,!1,!0);cv(void 0!==t),n[r.toString()]=t}break;case"message":let i=e.V.T();for(let[a,o]of Object.entries(t)){let t=this.message(i,o,e.name,r);cv(void 0!==t),n[a.toString()]=t}break;case"enum":let o=e.V.T();for(let[a,i]of Object.entries(t)){cv(void 0===i||"number"==typeof i);let t=this.enum(o,i,e.name,!1,!0,r.enumAsInteger);cv(void 0!==t),n[a.toString()]=t}}(r.emitDefaultValues||Object.keys(n).length>0)&&(a=n)}else if(e.repeat){cv(Array.isArray(t));let n=[];switch(e.kind){case"scalar":for(let r=0;r<t.length;r++){let a=this.scalar(e.T,t[r],e.name,e.opt,!0);cv(void 0!==a),n.push(a)}break;case"enum":let i=e.T();for(let a=0;a<t.length;a++){cv(void 0===t[a]||"number"==typeof t[a]);let o=this.enum(i,t[a],e.name,e.opt,!0,r.enumAsInteger);cv(void 0!==o),n.push(o)}break;case"message":let o=e.T();for(let a=0;a<t.length;a++){let i=this.message(o,t[a],e.name,r);cv(void 0!==i),n.push(i)}}(r.emitDefaultValues||n.length>0||r.emitDefaultValues)&&(a=n)}else switch(e.kind){case"scalar":a=this.scalar(e.T,t,e.name,e.opt,r.emitDefaultValues);break;case"enum":a=this.enum(e.T(),t,e.name,e.opt,r.emitDefaultValues,r.enumAsInteger);break;case"message":a=this.message(e.T(),t,e.name,r)}return a}enum(e,t,r,a,n,i){return"google.protobuf.NullValue"==e[0]?n||a?null:void 0:void 0===t?void cv(a):0!==t||n||a?(cv("number"==typeof t),cv(Number.isInteger(t)),i||!e[1].hasOwnProperty(t))?t:e[2]?e[2]+e[1][t]:e[1][t]:void 0}message(e,t,r,a){return void 0===t?a.emitDefaultValues?null:void 0:e.internalJsonWrite(t,a)}scalar(e,t,r,a,n){if(void 0===t)return void cv(a);let i=n||a;switch(e){case m.INT32:case m.SFIXED32:case m.SINT32:if(0===t)return i?0:void 0;return cT(t),t;case m.FIXED32:case m.UINT32:if(0===t)return i?0:void 0;return cE(t),t;case m.FLOAT:cB(t);case m.DOUBLE:if(0===t)return i?0:void 0;if(cv("number"==typeof t),Number.isNaN(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";return t;case m.STRING:if(""===t)return i?"":void 0;return cv("string"==typeof t),t;case m.BOOL:if(!1===t)return!i&&void 0;return cv("boolean"==typeof t),t;case m.UINT64:case m.FIXED64:cv("number"==typeof t||"string"==typeof t||"bigint"==typeof t);let o=cy.from(t);if(o.isZero()&&!i)return;return o.toString();case m.INT64:case m.SFIXED64:case m.SINT64:cv("number"==typeof t||"string"==typeof t||"bigint"==typeof t);let s=ck.from(t);if(s.isZero()&&!i)return;return s.toString();case m.BYTES:if(cv(t instanceof Uint8Array),!t.byteLength)return i?"":void 0;return cl(t)}}};function c_(e,t=h.STRING){switch(e){case m.BOOL:return!1;case m.UINT64:case m.FIXED64:return cL(cy.ZERO,t);case m.INT64:case m.SFIXED64:case m.SINT64:return cL(ck.ZERO,t);case m.DOUBLE:case m.FLOAT:return 0;case m.BYTES:return new Uint8Array(0);case m.STRING:return"";default:return 0}}var cM=class{constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){let t=null!=(e=this.info.fields)?e:[];this.fieldNoToField=new Map(t.map(e=>[e.no,e]))}}read(e,t,r,a){this.prepare();let n=void 0===a?e.len:e.pos+a;for(;e.pos<n;){let[a,n]=e.tag(),i=this.fieldNoToField.get(a);if(!i){let i=r.readUnknownField;if("throw"==i)throw Error(`Unknown field ${a} (wire type ${n}) for ${this.info.typeName}`);let o=e.skip(n);!1!==i&&(!0===i?d.onRead:i)(this.info.typeName,t,a,n,o);continue}let o=t,s=i.repeat,l=i.localName;switch(i.oneof&&(o=o[i.oneof]).oneofKind!==l&&(o=t[i.oneof]={oneofKind:l}),i.kind){case"scalar":case"enum":let c="enum"==i.kind?m.INT32:i.T,u="scalar"==i.kind?i.L:void 0;
4if(s){let t=o[l];if(n==p.LengthDelimited&&c!=m.STRING&&c!=m.BYTES){let r=e.uint32()+e.pos;for(;e.pos<r;)t.push(this.scalar(e,c,u))}else t.push(this.scalar(e,c,u))}else o[l]=this.scalar(e,c,u);break;case"message":if(s){let t=o[l],a=i.T().internalBinaryRead(e,e.uint32(),r);t.push(a)}else o[l]=i.T().internalBinaryRead(e,e.uint32(),r,o[l]);break;case"map":let[h,g]=this.mapEntry(i,e,r);o[l][h]=g}}}mapEntry(e,t,r){let a,n,i=t.uint32(),o=t.pos+i;for(;t.pos<o;){let[i,o]=t.tag();switch(i){case 1:a=e.K==m.BOOL?t.bool().toString():this.scalar(t,e.K,h.STRING);break;case 2:switch(e.V.kind){case"scalar":n=this.scalar(t,e.V.T,e.V.L);break;case"enum":n=t.int32();break;case"message":n=e.V.T().internalBinaryRead(t,t.uint32(),r)}break;default:throw Error(`Unknown field ${i} (wire type ${o}) in map entry for ${this.info.typeName}#${e.name}`)}}if(void 0===a){let t=c_(e.K);a=e.K==m.BOOL?t.toString():t}if(void 0===n)switch(e.V.kind){case"scalar":n=c_(e.V.T,e.V.L);break;case"enum":n=0;break;case"message":n=e.V.T().create()}return[a,n]}scalar(e,t,r){switch(t){case m.INT32:return e.int32();case m.STRING:return e.string();case m.BOOL:return e.bool();case m.DOUBLE:return e.double();case m.FLOAT:return e.float();case m.INT64:return cL(e.int64(),r);case m.UINT64:return cL(e.uint64(),r);case m.FIXED64:return cL(e.fixed64(),r);case m.FIXED32:return e.fixed32();case m.BYTES:return e.bytes();case m.UINT32:return e.uint32();case m.SFIXED32:return e.sfixed32();case m.SFIXED64:return cL(e.sfixed64(),r);case m.SINT32:return e.sint32();case m.SINT64:return cL(e.sint64(),r)}}},cj=class{constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((e,t)=>e.no-t.no)}}write(e,t,r){for(let a of(this.prepare(),this.fields)){let n,i,o=a.repeat,s=a.localName;if(a.oneof){let t=e[a.oneof];if(t.oneofKind!==s)continue;n=t[s],i=!0}else n=e[s],i=!1;switch(a.kind){case"scalar":case"enum":let l="enum"==a.kind?m.INT32:a.T;if(o)if(cv(Array.isArray(n)),o==g.PACKED)this.packed(t,l,a.no,n);else for(let e of n)this.scalar(t,l,a.no,e,!0);else void 0===n?cv(a.opt):this.scalar(t,l,a.no,n,i||a.opt);break;case"message":if(o)for(let e of(cv(Array.isArray(n)),n))this.message(t,r,a.T(),a.no,e);else this.message(t,r,a.T(),a.no,n);break;case"map":for(let[e,i]of(cv("object"==typeof n&&null!==n),Object.entries(n)))this.mapEntry(t,r,a,e,i)}}let a=r.writeUnknownFields;!1!==a&&(!0===a?d.onWrite:a)(this.info.typeName,e,t)}mapEntry(e,t,r,a,n){e.tag(r.no,p.LengthDelimited),e.fork();let i=a;switch(r.K){case m.INT32:case m.FIXED32:case m.UINT32:case m.SFIXED32:case m.SINT32:i=Number.parseInt(a);break;case m.BOOL:cv("true"==a||"false"==a),i="true"==a}switch(this.scalar(e,r.K,1,i,!0),r.V.kind){case"scalar":this.scalar(e,r.V.T,2,n,!0);break;case"enum":this.scalar(e,m.INT32,2,n,!0);break;case"message":this.message(e,t,r.V.T(),2,n)}e.join()}message(e,t,r,a,n){void 0!==n&&(r.internalBinaryWrite(n,e.tag(a,p.LengthDelimited).fork(),t),e.join())}scalar(e,t,r,a,n){let[i,o,s]=this.scalarInfo(t,a);(!s||n)&&(e.tag(r,i),e[o](a))}packed(e,t,r,a){if(!a.length)return;cv(t!==m.BYTES&&t!==m.STRING),e.tag(r,p.LengthDelimited),e.fork();let[,n]=this.scalarInfo(t);for(let t=0;t<a.length;t++)e[n](a[t]);e.join()}scalarInfo(e,t){let r,a=p.Varint,n=void 0===t,i=0===t;switch(e){case m.INT32:r="int32";break;case m.STRING:i=n||!t.length,a=p.LengthDelimited,r="string";break;case m.BOOL:i=!1===t,r="bool";break;case m.UINT32:r="uint32";break;case m.DOUBLE:a=p.Bit64,r="double";break;case m.FLOAT:a=p.Bit32,r="float";break;case m.INT64:i=n||ck.from(t).isZero(),r="int64";break;case m.UINT64:i=n||cy.from(t).isZero(),r="uint64";break;case m.FIXED64:i=n||cy.from(t).isZero(),a=p.Bit64,r="fixed64";break;case m.BYTES:i=n||!t.byteLength,a=p.LengthDelimited,r="bytes";break;case m.FIXED32:a=p.Bit32,r="fixed32";break;case m.SFIXED32:a=p.Bit32,r="sfixed32";break;case m.SFIXED64:i=n||ck.from(t).isZero(),a=p.Bit64,r="sfixed64";break;case m.SINT32:r="sint32";break;case m.SINT64:i=n||ck.from(t).isZero(),r="sint64"}return[a,r,n||i]}};function c$(e,t,r){let a,n;for(let i of e.fields){let e=i.localName;if(i.oneof){let o=r[i.oneof];if((null==o?void 0:o.oneofKind)==void 0)continue;if(a=o[e],(n=t[i.oneof]).oneofKind=o.oneofKind,void 0==a){delete n[e];continue}}else if(a=r[e],n=t,void 0==a)continue;switch(i.repeat&&(n[e].length=a.length),i.kind){case"scalar":case"enum":if(i.repeat)for(let t=0;t<a.length;t++)n[e][t]=a[t];else n[e]=a;break;case"message":let o=i.T();if(i.repeat)for(let t=0;t<a.length;t++)n[e][t]=o.create(a[t]);else void 0===n[e]?n[e]=o.create(a):o.mergePartial(n[e],a);break;case"map":switch(i.V.kind){case"scalar":case"enum":Object.assign(n[e],a);break;case"message":let s=i.V.T();for(let t of Object.keys(a))n[e][t]=s.create(a[t])}}}}var cW=Object.values;function cz(e,t,r){if(t===r)return!0;
4if(e!==m.BYTES||t.length!==r.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!=r[e])return!1;return!0}function cV(e,t,r){if(t.length!==r.length)return!1;for(let a=0;a<t.length;a++)if(!cz(e,t[a],r[a]))return!1;return!0}function cH(e,t,r){if(t.length!==r.length)return!1;for(let a=0;a<t.length;a++)if(!e.equals(t[a],r[a]))return!1;return!0}var cq=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),cG=cq[cS]={},cK=class{constructor(e,t,r){this.defaultCheckDepth=16,this.typeName=e,this.fields=t.map(cP),this.options=null!=r?r:{},cG.value=this,this.messagePrototype=Object.create(null,cq),this.refTypeCheck=new cD(this),this.refJsonReader=new cO(this),this.refJsonWriter=new cF(this),this.refBinReader=new cM(this),this.refBinWriter=new cj(this)}create(e){let t=function(e){let t=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},cS,{value:e});for(let r of e.fields){let e=r.localName;if(!r.opt)if(r.oneof)t[r.oneof]={oneofKind:void 0};else if(r.repeat)t[e]=[];else switch(r.kind){case"scalar":t[e]=c_(r.T,r.L);break;case"enum":t[e]=0;break;case"map":t[e]={}}}return t}(this);return void 0!==e&&c$(this,t,e),t}clone(e){let t=this.create();return c$(this,t,e),t}equals(e,t){return function(e,t,r){if(t===r)return!0;if(!t||!r)return!1;for(let a of e.fields){let e=a.localName,n=a.oneof?t[a.oneof][e]:t[e],i=a.oneof?r[a.oneof][e]:r[e];switch(a.kind){case"enum":case"scalar":let o="enum"==a.kind?m.INT32:a.T;if(!(a.repeat?cV(o,n,i):cz(o,n,i)))return!1;break;case"map":if(!("message"==a.V.kind?cH(a.V.T(),cW(n),cW(i)):cV("enum"==a.V.kind?m.INT32:a.V.T,cW(n),cW(i))))return!1;break;case"message":let s=a.T();if(!(a.repeat?cH(s,n,i):s.equals(n,i)))return!1}}return!0}(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!1)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!0)}mergePartial(e,t){c$(this,e,t)}fromBinary(e,t){let r=t?Object.assign(Object.assign({},cx),t):cx;return this.internalBinaryRead(r.readerFactory(e),e.byteLength,r)}fromJson(e,t){return this.internalJsonRead(e,t?Object.assign(Object.assign({},cN),t):cN)}fromJsonString(e,t){let r=JSON.parse(e);return this.fromJson(r,t)}toJson(e,t){return this.internalJsonWrite(e,cR(t))}toJsonString(e,t){var r;return JSON.stringify(this.toJson(e,t),null,null!=(r=null==t?void 0:t.prettySpaces)?r:0)}toBinary(e,t){let r=t?Object.assign(Object.assign({},cC),t):cC;return this.internalBinaryWrite(e,r.writerFactory(),r).finish()}internalJsonRead(e,t,r){if(null!==e&&"object"==typeof e&&!Array.isArray(e)){let a=null!=r?r:this.create();return this.refJsonReader.read(e,a,t),a}throw Error(`Unable to parse message ${this.typeName} from JSON ${ca(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,r){return this.refBinWriter.write(e,t,r),t}internalBinaryRead(e,t,r,a){let n=null!=a?a:this.create();return this.refBinReader.read(e,n,r,t),n}},cJ=new class extends cK{constructor(){super("cosmos.base.query.v1beta1.PageRequest",[{no:1,name:"key",kind:"scalar",T:12},{no:2,name:"offset",kind:"scalar",T:4,L:0},{no:3,name:"limit",kind:"scalar",T:4,L:0},{no:4,name:"count_total",kind:"scalar",T:8},{no:5,name:"reverse",kind:"scalar",T:8}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.key=new Uint8Array(0),t.offset=0n,t.limit=0n,t.countTotal=!1,t.reverse=!1,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.key=e.bytes();break;case 2:n.offset=e.uint64().toBigInt();break;case 3:n.limit=e.uint64().toBigInt();break;case 4:n.countTotal=e.bool();break;case 5:n.reverse=e.bool();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.key.length&&t.tag(1,p.LengthDelimited).bytes(e.key),0n!==e.offset&&t.tag(2,p.Varint).uint64(e.offset),0n!==e.limit&&t.tag(3,p.Varint).uint64(e.limit),!1!==e.countTotal&&t.tag(4,p.Varint).bool(e.countTotal),!1!==e.reverse&&t.tag(5,p.Varint).bool(e.reverse);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},cZ=new class extends cK{constructor(){super("cosmos.base.query.v1beta1.PageResponse",[{no:1,name:"next_key",kind:"scalar",T:12},{no:2,name:"total",kind:"scalar",T:4,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.nextKey=new Uint8Array(0),t.total=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
4){let[t,a]=e.tag();switch(t){case 1:n.nextKey=e.bytes();break;case 2:n.total=e.uint64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.nextKey.length&&t.tag(1,p.LengthDelimited).bytes(e.nextKey),0n!==e.total&&t.tag(2,p.Varint).uint64(e.total);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},cQ=()=>"undefined"==typeof window,cX=(e,t)=>e.response?e.response.data?e.response.data.message||e.response.data:e.response.statusText:`The request to ${t} has failed.`,cY=e=>null==e?0:"bigint"==typeof e?Number(e):"string"==typeof e?parseInt(e||"0",10):"number"==typeof e?e:parseInt(String(e||"0"),10),c0=e=>null==e?"":"bigint"==typeof e?e.toString():"string"==typeof e?e:"number"==typeof e?e.toString():String(e||"");function c1(e){if("string"!=typeof e)throw Error("Hex string must be a string");if(""===e.trim())throw Error("Hex string cannot be empty");let t=e.startsWith("0x")?e:`0x${e}`;try{return(0,A.aT)(t)}catch(t){throw Error(`Invalid hex string: ${e}`)}}function c2(e){return(0,A.My)(e).slice(2)}function c3(e){if("string"!=typeof e)throw Error("Base64 string must be a string");if(""===e.trim())throw Error("Base64 string cannot be empty");try{return U.K3.decode(e)}catch(t){throw Error(`Invalid base64 string: ${e}`)}}function c6(e){return U.K3.encode(e)}function c8(e){return new TextEncoder().encode(e)}function c7(e){return"string"==typeof e?e:new TextDecoder().decode(e)}function c4(e){return e?e.constructor!==Uint8Array?e:new TextDecoder().decode(e):""}var c5="m/44'/60'/0'/0/0",c9=e=>{switch(Object.prototype.toString.call(e)){case"[object Object]":return Object.fromEntries(Object.keys(e).map(t=>[t,c9(e[t])]));case"[object Array]":return e.map(e=>c9(e));case"[object BigInt]":return c0(e);default:return e}};tr.clone({ROUNDING_MODE:tr.ROUND_DOWN});var de=e=>{let t=(0,A.ZJ)(e.toString());return U.I.encode("inj",U.I.toWords(t))},dt=e=>e?{...e,total:cY(e.total),to:parseInt(e.to.toString()||"0",10),from:parseInt(e.from.toString()||"0",10),countBySubaccount:cY(e.countBySubaccount)}:{to:0,from:0,total:0},dr=async(e,t)=>{let r=await aI({hash:iU(e),signature:t});return`0x${c2(cr.ProjectivePoint.fromHex(r.slice(2)).toRawBytes(!0))}`},da={};(0,L.VA)(da,{AuthInfo:()=>dk,AuxSignerData:()=>dC,Fee:()=>dE,ModeInfo:()=>dw,ModeInfo_Multi:()=>dT,ModeInfo_Single:()=>dv,SignDoc:()=>df,SignDocDirectAux:()=>db,SignerInfo:()=>dx,Tip:()=>dB,Tx:()=>dh,TxBody:()=>dy,TxRaw:()=>dg});var dn=new class extends cK{constructor(){super("cosmos.base.v1beta1.Coin",[{no:1,name:"denom",kind:"scalar",T:9},{no:2,name:"amount",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.Int","cosmos_proto.scalar":"cosmos.Int","amino.dont_omitempty":!0}}],{"gogoproto.equal":!0})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.denom="",t.amount="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.denom=e.string();break;case 2:n.amount=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.denom&&t.tag(1,p.LengthDelimited).string(e.denom),""!==e.amount&&t.tag(2,p.LengthDelimited).string(e.amount);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},di=new class extends cK{constructor(){super("cosmos.base.v1beta1.DecCoin",[{no:1,name:"denom",kind:"scalar",T:9},{no:2,name:"amount",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec","cosmos_proto.scalar":"cosmos.Dec"}}],{"gogoproto.equal":!0})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.denom="",t.amount="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
4){let[t,a]=e.tag();switch(t){case 1:n.denom=e.string();break;case 2:n.amount=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.denom&&t.tag(1,p.LengthDelimited).string(e.denom),""!==e.amount&&t.tag(2,p.LengthDelimited).string(e.amount);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cosmos.base.v1beta1.IntProto",[{no:1,name:"int",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.Int","cosmos_proto.scalar":"cosmos.Int"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.int="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.int=e.string();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.int&&t.tag(1,p.LengthDelimited).string(e.int);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cosmos.base.v1beta1.DecProto",[{no:1,name:"dec",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec","cosmos_proto.scalar":"cosmos.Dec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.dec="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.dec=e.string();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.dec&&t.tag(1,p.LengthDelimited).string(e.dec);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cosmos.crypto.multisig.v1beta1.MultiSignature",[{no:1,name:"signatures",kind:"scalar",repeat:2,T:12}],{"gogoproto.goproto_unrecognized":!0})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.signatures=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.signatures.push(e.bytes());else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let r=0;r<e.signatures.length;r++)t.tag(1,p.LengthDelimited).bytes(e.signatures[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var ds=new class extends cK{constructor(){super("cosmos.crypto.multisig.v1beta1.CompactBitArray",[{no:1,name:"extra_bits_stored",kind:"scalar",T:13},{no:2,name:"elems",kind:"scalar",T:12}],{"gogoproto.goproto_stringer":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.extraBitsStored=0,t.elems=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.extraBitsStored=e.uint32();break;case 2:n.elems=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.extraBitsStored&&t.tag(1,p.Varint).uint32(e.extraBitsStored),e.elems.length&&t.tag(2,p.LengthDelimited).bytes(e.elems);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dl=new class extends cK{constructor(){super("google.protobuf.Any",[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}])}pack(e,t){return{typeUrl:this.typeNameToUrl(t.typeName),value:t.toBinary(e)}}unpack(e,t,r){if(!this.contains(e,t))throw Error("Cannot unpack google.protobuf.Any with typeUrl '"+e.typeUrl+"' as "+t.typeName+".");return t.fromBinary(e.value,r)}contains(e,t){return!!e.typeUrl.length&&("string"==typeof t?t:t.typeName)===this.typeUrlToName(e.typeUrl)}internalJsonWrite(e,t){if(""===e.typeUrl)return{};
4let r=this.typeUrlToName(e.typeUrl),a=cR(t),n=a.typeRegistry?.find(e=>e.typeName===r);if(!n)throw new globalThis.Error("Unable to convert google.protobuf.Any with typeUrl '"+e.typeUrl+"' to JSON. The specified type "+r+" is not available in the type registry.");let i=n.fromBinary(e.value,{readUnknownField:!1}),o=n.internalJsonWrite(i,a);return(r.startsWith("google.protobuf.")||!cn(o))&&(o={value:o}),o["@type"]=e.typeUrl,o}internalJsonRead(e,t,r){let a;if(!cn(e))throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON "+ca(e)+".");if("string"!=typeof e["@type"]||""==e["@type"])return this.create();let n=this.typeUrlToName(e["@type"]),i=t?.typeRegistry?.find(e=>e.typeName==n);if(!i)throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON. The specified type "+n+" is not available in the type registry.");if(n.startsWith("google.protobuf.")&&e.hasOwnProperty("value"))a=i.fromJson(e.value,t);else{let r=Object.assign({},e);delete r["@type"],a=i.fromJson(r,t)}return void 0===r&&(r=this.create()),r.typeUrl=e["@type"],r.value=i.toBinary(a),r}typeNameToUrl(e){if(!e.length)throw Error("invalid type name: "+e);return"type.googleapis.com/"+e}typeUrlToName(e){if(!e.length)throw Error("invalid type url: "+e);let t=e.lastIndexOf("/"),r=t>0?e.substring(t+1):e;if(!r.length)throw Error("invalid type url: "+e);return r}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.typeUrl="",t.value=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.typeUrl=e.string();break;case 2:n.value=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.typeUrl&&t.tag(1,p.LengthDelimited).string(e.typeUrl),e.value.length&&t.tag(2,p.LengthDelimited).bytes(e.value);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dc=(e=>(e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.DIRECT=1]="DIRECT",e[e.TEXTUAL=2]="TEXTUAL",e[e.DIRECT_AUX=3]="DIRECT_AUX",e[e.LEGACY_AMINO_JSON=127]="LEGACY_AMINO_JSON",e[e.EIP712_V2=128]="EIP712_V2",e[e.EIP_191=191]="EIP_191",e))(dc||{});new class extends cK{constructor(){super("cosmos.tx.signing.v1beta1.SignatureDescriptors",[{no:1,name:"signatures",kind:"message",repeat:2,T:()=>dd}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.signatures=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.signatures.push(dd.internalBinaryRead(e,e.uint32(),r));else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.signatures.length;a++)dd.internalBinaryWrite(e.signatures[a],t.tag(1,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var dd=new class extends cK{constructor(){super("cosmos.tx.signing.v1beta1.SignatureDescriptor",[{no:1,name:"public_key",kind:"message",T:()=>dl},{no:2,name:"data",kind:"message",T:()=>dp},{no:3,name:"sequence",kind:"scalar",T:4,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sequence=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.publicKey=dl.internalBinaryRead(e,e.uint32(),r,n.publicKey);break;case 2:n.data=dp.internalBinaryRead(e,e.uint32(),r,n.data);break;case 3:n.sequence=e.uint64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.publicKey&&dl.internalBinaryWrite(e.publicKey,t.tag(1,p.LengthDelimited).fork(),r).join(),e.data&&dp.internalBinaryWrite(e.data,t.tag(2,p.LengthDelimited).fork(),r).join(),0n!==e.sequence&&t.tag(3,p.Varint).uint64(e.sequence);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dp=new class extends cK{constructor(){super("cosmos.tx.signing.v1beta1.SignatureDescriptor.Data",[{no:1,name:"single",kind:"message",oneof:"sum",T:()=>du},{no:2,name:"multi",kind:"message",oneof:"sum",T:()=>dm}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sum={oneofKind:void 0},void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
4){let[t,a]=e.tag();switch(t){case 1:n.sum={oneofKind:"single",single:du.internalBinaryRead(e,e.uint32(),r,n.sum.single)};break;case 2:n.sum={oneofKind:"multi",multi:dm.internalBinaryRead(e,e.uint32(),r,n.sum.multi)};break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){"single"===e.sum.oneofKind&&du.internalBinaryWrite(e.sum.single,t.tag(1,p.LengthDelimited).fork(),r).join(),"multi"===e.sum.oneofKind&&dm.internalBinaryWrite(e.sum.multi,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},du=new class extends cK{constructor(){super("cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single",[{no:1,name:"mode",kind:"enum",T:()=>["cosmos.tx.signing.v1beta1.SignMode",dc,"SIGN_MODE_"]},{no:2,name:"signature",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.mode=0,t.signature=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.mode=e.int32();break;case 2:n.signature=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.mode&&t.tag(1,p.Varint).int32(e.mode),e.signature.length&&t.tag(2,p.LengthDelimited).bytes(e.signature);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dm=new class extends cK{constructor(){super("cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi",[{no:1,name:"bitarray",kind:"message",T:()=>ds},{no:2,name:"signatures",kind:"message",repeat:2,T:()=>dp}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.signatures=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.bitarray=ds.internalBinaryRead(e,e.uint32(),r,n.bitarray);break;case 2:n.signatures.push(dp.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.bitarray&&ds.internalBinaryWrite(e.bitarray,t.tag(1,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.signatures.length;a++)dp.internalBinaryWrite(e.signatures[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dh=new class extends cK{constructor(){super("cosmos.tx.v1beta1.Tx",[{no:1,name:"body",kind:"message",T:()=>dy},{no:2,name:"auth_info",kind:"message",T:()=>dk},{no:3,name:"signatures",kind:"scalar",repeat:2,T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.signatures=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.body=dy.internalBinaryRead(e,e.uint32(),r,n.body);break;case 2:n.authInfo=dk.internalBinaryRead(e,e.uint32(),r,n.authInfo);break;case 3:n.signatures.push(e.bytes());break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.body&&dy.internalBinaryWrite(e.body,t.tag(1,p.LengthDelimited).fork(),r).join(),e.authInfo&&dk.internalBinaryWrite(e.authInfo,t.tag(2,p.LengthDelimited).fork(),r).join();for(let r=0;r<e.signatures.length;r++)t.tag(3,p.LengthDelimited).bytes(e.signatures[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dg=new class extends cK{constructor(){super("cosmos.tx.v1beta1.TxRaw",[{no:1,name:"body_bytes",kind:"scalar",T:12},{no:2,name:"auth_info_bytes",kind:"scalar",T:12},{no:3,name:"signatures",kind:"scalar",repeat:2,T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.bodyBytes=new Uint8Array(0),t.authInfoBytes=new Uint8Array(0),t.signatures=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
4){let[t,a]=e.tag();switch(t){case 1:n.bodyBytes=e.bytes();break;case 2:n.authInfoBytes=e.bytes();break;case 3:n.signatures.push(e.bytes());break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.bodyBytes.length&&t.tag(1,p.LengthDelimited).bytes(e.bodyBytes),e.authInfoBytes.length&&t.tag(2,p.LengthDelimited).bytes(e.authInfoBytes);for(let r=0;r<e.signatures.length;r++)t.tag(3,p.LengthDelimited).bytes(e.signatures[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},df=new class extends cK{constructor(){super("cosmos.tx.v1beta1.SignDoc",[{no:1,name:"body_bytes",kind:"scalar",T:12},{no:2,name:"auth_info_bytes",kind:"scalar",T:12},{no:3,name:"chain_id",kind:"scalar",T:9},{no:4,name:"account_number",kind:"scalar",T:4,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.bodyBytes=new Uint8Array(0),t.authInfoBytes=new Uint8Array(0),t.chainId="",t.accountNumber=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.bodyBytes=e.bytes();break;case 2:n.authInfoBytes=e.bytes();break;case 3:n.chainId=e.string();break;case 4:n.accountNumber=e.uint64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.bodyBytes.length&&t.tag(1,p.LengthDelimited).bytes(e.bodyBytes),e.authInfoBytes.length&&t.tag(2,p.LengthDelimited).bytes(e.authInfoBytes),""!==e.chainId&&t.tag(3,p.LengthDelimited).string(e.chainId),0n!==e.accountNumber&&t.tag(4,p.Varint).uint64(e.accountNumber);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},db=new class extends cK{constructor(){super("cosmos.tx.v1beta1.SignDocDirectAux",[{no:1,name:"body_bytes",kind:"scalar",T:12},{no:2,name:"public_key",kind:"message",T:()=>dl},{no:3,name:"chain_id",kind:"scalar",T:9},{no:4,name:"account_number",kind:"scalar",T:4,L:0},{no:5,name:"sequence",kind:"scalar",T:4,L:0},{no:6,name:"tip",kind:"message",T:()=>dB}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.bodyBytes=new Uint8Array(0),t.chainId="",t.accountNumber=0n,t.sequence=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.bodyBytes=e.bytes();break;case 2:n.publicKey=dl.internalBinaryRead(e,e.uint32(),r,n.publicKey);break;case 3:n.chainId=e.string();break;case 4:n.accountNumber=e.uint64().toBigInt();break;case 5:n.sequence=e.uint64().toBigInt();break;case 6:n.tip=dB.internalBinaryRead(e,e.uint32(),r,n.tip);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.bodyBytes.length&&t.tag(1,p.LengthDelimited).bytes(e.bodyBytes),e.publicKey&&dl.internalBinaryWrite(e.publicKey,t.tag(2,p.LengthDelimited).fork(),r).join(),""!==e.chainId&&t.tag(3,p.LengthDelimited).string(e.chainId),0n!==e.accountNumber&&t.tag(4,p.Varint).uint64(e.accountNumber),0n!==e.sequence&&t.tag(5,p.Varint).uint64(e.sequence),e.tip&&dB.internalBinaryWrite(e.tip,t.tag(6,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dy=new class extends cK{constructor(){super("cosmos.tx.v1beta1.TxBody",[{no:1,name:"messages",kind:"message",repeat:2,T:()=>dl},{no:2,name:"memo",kind:"scalar",T:9},{no:3,name:"timeout_height",kind:"scalar",T:4,L:0},{no:1023,name:"extension_options",kind:"message",repeat:2,T:()=>dl},{no:2047,name:"non_critical_extension_options",kind:"message",repeat:2,T:()=>dl}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.messages=[],t.memo="",t.timeoutHeight=0n,t.extensionOptions=[],t.nonCriticalExtensionOptions=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
4){let[t,a]=e.tag();switch(t){case 1:n.messages.push(dl.internalBinaryRead(e,e.uint32(),r));break;case 2:n.memo=e.string();break;case 3:n.timeoutHeight=e.uint64().toBigInt();break;case 1023:n.extensionOptions.push(dl.internalBinaryRead(e,e.uint32(),r));break;case 2047:n.nonCriticalExtensionOptions.push(dl.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.messages.length;a++)dl.internalBinaryWrite(e.messages[a],t.tag(1,p.LengthDelimited).fork(),r).join();""!==e.memo&&t.tag(2,p.LengthDelimited).string(e.memo),0n!==e.timeoutHeight&&t.tag(3,p.Varint).uint64(e.timeoutHeight);for(let a=0;a<e.extensionOptions.length;a++)dl.internalBinaryWrite(e.extensionOptions[a],t.tag(1023,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.nonCriticalExtensionOptions.length;a++)dl.internalBinaryWrite(e.nonCriticalExtensionOptions[a],t.tag(2047,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dk=new class extends cK{constructor(){super("cosmos.tx.v1beta1.AuthInfo",[{no:1,name:"signer_infos",kind:"message",repeat:2,T:()=>dx},{no:2,name:"fee",kind:"message",T:()=>dE},{no:3,name:"tip",kind:"message",T:()=>dB}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.signerInfos=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.signerInfos.push(dx.internalBinaryRead(e,e.uint32(),r));break;case 2:n.fee=dE.internalBinaryRead(e,e.uint32(),r,n.fee);break;case 3:n.tip=dB.internalBinaryRead(e,e.uint32(),r,n.tip);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.signerInfos.length;a++)dx.internalBinaryWrite(e.signerInfos[a],t.tag(1,p.LengthDelimited).fork(),r).join();e.fee&&dE.internalBinaryWrite(e.fee,t.tag(2,p.LengthDelimited).fork(),r).join(),e.tip&&dB.internalBinaryWrite(e.tip,t.tag(3,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dx=new class extends cK{constructor(){super("cosmos.tx.v1beta1.SignerInfo",[{no:1,name:"public_key",kind:"message",T:()=>dl},{no:2,name:"mode_info",kind:"message",T:()=>dw},{no:3,name:"sequence",kind:"scalar",T:4,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sequence=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.publicKey=dl.internalBinaryRead(e,e.uint32(),r,n.publicKey);break;case 2:n.modeInfo=dw.internalBinaryRead(e,e.uint32(),r,n.modeInfo);break;case 3:n.sequence=e.uint64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.publicKey&&dl.internalBinaryWrite(e.publicKey,t.tag(1,p.LengthDelimited).fork(),r).join(),e.modeInfo&&dw.internalBinaryWrite(e.modeInfo,t.tag(2,p.LengthDelimited).fork(),r).join(),0n!==e.sequence&&t.tag(3,p.Varint).uint64(e.sequence);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dw=new class extends cK{constructor(){super("cosmos.tx.v1beta1.ModeInfo",[{no:1,name:"single",kind:"message",oneof:"sum",T:()=>dv},{no:2,name:"multi",kind:"message",oneof:"sum",T:()=>dT}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sum={oneofKind:void 0},void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sum={oneofKind:"single",single:dv.internalBinaryRead(e,e.uint32(),r,n.sum.single)};break;case 2:n.sum={oneofKind:"multi",multi:dT.internalBinaryRead(e,e.uint32(),r,n.sum.multi)};break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){"single"===e.sum.oneofKind&&dv.internalBinaryWrite(e.sum.single,t.tag(1,p.LengthDelimited).fork(),r).join(),"multi"===e.sum.oneofKind&&dT.internalBinaryWrite(e.sum.multi,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dv=new class extends cK{constructor(){super("cosmos.tx.v1beta1.ModeInfo.Single",[{no:1,name:"mode",kind:"enum",T:()=>["cosmos.tx.signing.v1beta1.SignMode",dc,"SIGN_MODE_"]}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.mode=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
4){let[t,a]=e.tag();if(1===t)n.mode=e.int32();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.mode&&t.tag(1,p.Varint).int32(e.mode);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dT=new class extends cK{constructor(){super("cosmos.tx.v1beta1.ModeInfo.Multi",[{no:1,name:"bitarray",kind:"message",T:()=>ds},{no:2,name:"mode_infos",kind:"message",repeat:2,T:()=>dw}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.modeInfos=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.bitarray=ds.internalBinaryRead(e,e.uint32(),r,n.bitarray);break;case 2:n.modeInfos.push(dw.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.bitarray&&ds.internalBinaryWrite(e.bitarray,t.tag(1,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.modeInfos.length;a++)dw.internalBinaryWrite(e.modeInfos[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dE=new class extends cK{constructor(){super("cosmos.tx.v1beta1.Fee",[{no:1,name:"amount",kind:"message",repeat:2,T:()=>dn,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"github.com/cosmos/cosmos-sdk/types.Coins","amino.encoding":"legacy_coins","amino.dont_omitempty":!0}},{no:2,name:"gas_limit",kind:"scalar",T:4,L:0},{no:3,name:"payer",kind:"scalar",T:9,options:{"cosmos_proto.scalar":"cosmos.AddressString"}},{no:4,name:"granter",kind:"scalar",T:9,options:{"cosmos_proto.scalar":"cosmos.AddressString"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.amount=[],t.gasLimit=0n,t.payer="",t.granter="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.amount.push(dn.internalBinaryRead(e,e.uint32(),r));break;case 2:n.gasLimit=e.uint64().toBigInt();break;case 3:n.payer=e.string();break;case 4:n.granter=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.amount.length;a++)dn.internalBinaryWrite(e.amount[a],t.tag(1,p.LengthDelimited).fork(),r).join();0n!==e.gasLimit&&t.tag(2,p.Varint).uint64(e.gasLimit),""!==e.payer&&t.tag(3,p.LengthDelimited).string(e.payer),""!==e.granter&&t.tag(4,p.LengthDelimited).string(e.granter);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dB=new class extends cK{constructor(){super("cosmos.tx.v1beta1.Tip",[{no:1,name:"amount",kind:"message",repeat:2,T:()=>dn,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"github.com/cosmos/cosmos-sdk/types.Coins","amino.encoding":"legacy_coins","amino.dont_omitempty":!0}},{no:2,name:"tipper",kind:"scalar",T:9,options:{"cosmos_proto.scalar":"cosmos.AddressString"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.amount=[],t.tipper="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.amount.push(dn.internalBinaryRead(e,e.uint32(),r));break;case 2:n.tipper=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.amount.length;a++)dn.internalBinaryWrite(e.amount[a],t.tag(1,p.LengthDelimited).fork(),r).join();""!==e.tipper&&t.tag(2,p.LengthDelimited).string(e.tipper);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},dC=new class extends cK{constructor(){super("cosmos.tx.v1beta1.AuxSignerData",[{no:1,name:"address",kind:"scalar",T:9,options:{"cosmos_proto.scalar":"cosmos.AddressString"}},{no:2,name:"sign_doc",kind:"message",T:()=>db},{no:3,name:"mode",kind:"enum",T:()=>["cosmos.tx.signing.v1beta1.SignMode",dc,"SIGN_MODE_"]},{no:4,name:"sig",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.address="",t.mode=0,t.sig=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
4){let[t,a]=e.tag();switch(t){case 1:n.address=e.string();break;case 2:n.signDoc=db.internalBinaryRead(e,e.uint32(),r,n.signDoc);break;case 3:n.mode=e.int32();break;case 4:n.sig=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.address&&t.tag(1,p.LengthDelimited).string(e.address),e.signDoc&&db.internalBinaryWrite(e.signDoc,t.tag(2,p.LengthDelimited).fork(),r).join(),0!==e.mode&&t.tag(3,p.Varint).int32(e.mode),e.sig.length&&t.tag(4,p.LengthDelimited).bytes(e.sig);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};function dU(e){return(dU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dI(e,t,r){var a;return(a=function(e,t){if("object"!=dU(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t);if("object"!=dU(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==dU(a)?a:a+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dN=(0,L.f1)(J(),1),dR=({object:e,messageType:t,primaryType:r="MsgValue"})=>{let a=["order_mask","order_type","oracle_type","round","expiration_timestamp","settlement_timestamp","oracle_scale_factor","expiry","option","proposal_id","creation_height","contract_hook_max_gas"],n=["timeout_timestamp","revision_height","revision_number"],i=["cid"],o=["admin_info","order"],s=new Map,l=[];for(let c in(0,dN.default)(e)){let d=(0,dN.default)(e)[c];if("@type"===c||o.includes(c)&&!d)continue;let p=typeof d;if("boolean"===p)l.push({name:c,type:"bool"});else if("number"===p||"bigint"===p||a.includes(c))l.push({name:c,type:dS(c,t)});else if("string"===p){if(i.includes(c)&&!d)continue;if(n.includes(c)){l.push({name:c,type:dA(c)});continue}l.push({name:c,type:"string"})}else if("object"===p)if(Array.isArray(d)&&0===d.length)throw new ez(Error("Array with length 0 found"));else if(Array.isArray(d)&&d.length>0){let e=typeof d[0];if("boolean"===e||"number"===e||"string"===e){for(let t in d)if(typeof t!==e)throw new ez(Error("Array with different types found"));"boolean"===e?l.push({name:c,type:"bool[]"}):"number"===e?l.push({name:c,type:"number[]"}):"string"===e&&l.push({name:c,type:"string[]"})}else if("object"===e){let e=dP({property:am(c),parentProperty:r,messageType:t}),a=dR({object:d[0],primaryType:e,messageType:t}),n=a.get(e);for(let t of(l.push({name:c,type:`${e}[]`}),s.set(e,n),a.keys()))t!==r&&s.set(t,a.get(t))}else throw new ez(Error("Array with elements of unknown type found"))}else if(d instanceof Date)l.push({name:c,type:"string"});else{let e=dP({property:am(c),parentProperty:r,messageType:t}),a=dR({object:d,primaryType:e,messageType:t}),n=a.get(e);for(let t of(l.push({name:c,type:e}),s.set(e,n),a.keys()))t!==r&&s.set(t,a.get(t))}else throw new ez(Error(`Type ${c}
4 not found`))}return s.set(r,l),s},dS=(e,t)=>{let r={"cosmos-sdk/MsgSubmitProposal":{status:"int32",base_decimals:"uint32",quote_decimals:"uint32"},"injective/tokenfactory/set-denom-metadata":{decimals:"uint32"},"injective/tokenfactory/create-denom":{decimals:"uint32"},"exchange/MsgAdminUpdateBinaryOptionsMarket":{status:"int32",expiration_timestamp:"int64",settlement_timestamp:"int64"},"exchange/MsgInstantBinaryOptionsMarketLaunch":{status:"int32",expiration_timestamp:"int64",settlement_timestamp:"int64"},"exchange/MsgInstantSpotMarketLaunch":{base_decimals:"uint32",quote_decimals:"uint32"}};if(t&&r[t]&&e){let a=r[t];if(a[e])return a[e]}switch(e){case"order_mask":case"order_type":case"oracle_type":case"option":return"int32";case"timeout_timestamp":return"timeout_timestamp";case"revision_number":case"revision_height":case"round":case"proposal_id":default:return"uint64";case"admin_permissions":case"oracle_scale_factor":case"exponent":return"uint32";case"expiry":case"creation_height":return"int64"}},dA=e=>"uint64",dP=({property:e,parentProperty:t,messageType:r})=>"wasm/MsgExecuteContract"===r?dD(e,t):dL(e,t),dD=(e,t="")=>{let r="CosmwasmInnerMsgMarker",a=e.replace("Type","");return"Msg"===a?r:`${t.replace(r,"")+a}Value`},dL=(e,t="")=>{let r=e.replace("Type","");return`Type${("MsgValue"===t?"":t.replace("Type",""))+r}`};function dO(e){if(Array.isArray(e))return e.map(dO);if("bigint"==typeof e)return e.toString();if("object"!=typeof e||null===e)return e;let t={};return Object.keys(e).sort().forEach(r=>{void 0!==e[r]&&null!==e[r]&&(t[r]=dO(e[r]))}),t}var dF=class{constructor(e){dI(this,"params",void 0),this.params=e}toWeb3(){return this.toWeb3Gw()}toJSON(){return JSON.stringify(dO(this.toData()))}toEip712Types(){let e=this.toAmino();return dR({object:e.value,messageType:e.type})}toEip712(){return this.toAmino()}toEip712V2(){return this.toWeb3Gw()}toDirectSignJSON(){return JSON.stringify(dO(this.toDirectSign()))}},d_=new class extends cK{constructor(){super("injective.crypto.v1beta1.ethsecp256k1.PubKey",[{no:1,name:"key",kind:"scalar",T:12}],{"gogoproto.goproto_stringer":!1,"amino.name":"injective/PubKeyEthSecp256k1","amino.message_encoding":"key_field"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.key=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.key=e.bytes();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.key.length&&t.tag(1,p.LengthDelimited).bytes(e.key);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.crypto.v1beta1.ethsecp256k1.PrivKey",[{no:1,name:"key",kind:"scalar",T:12}],{"amino.name":"injective/PrivKeyEthSecp256k1","amino.message_encoding":"key_field"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.key=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.key=e.bytes();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.key.length&&t.tag(1,p.LengthDelimited).bytes(e.key);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},(0,S.qW)(),(0,D.fD)();var dM=e=>{let t=8-e.length/4;return new Uint8Array([(0,S.sc)(e)[0]>>t<<t])},dj=
vendor: 13,124 bytes, lines 4-2051
4`abandon
5ability
6able
7about
8above
9absent
10absorb
11abstract
12absurd
13abuse
14access
15accident
16account
17accuse
18achieve
19acid
20acoustic
21acquire
22across
23act
24action
25actor
26actress
27actual
28adapt
29add
30addict
31address
32adjust
33admit
34adult
35advance
36advice
37aerobic
38affair
39afford
40afraid
41again
42age
43agent
44agree
45ahead
46aim
47air
48airport
49aisle
50alarm
51album
52alcohol
53alert
54alien
55all
56alley
57allow
58almost
59alone
60alpha
61already
62also
63alter
64always
65amateur
66amazing
67among
68amount
69amused
70analyst
71anchor
72ancient
73anger
74angle
75angry
76animal
77ankle
78announce
79annual
80another
81answer
82antenna
83antique
84anxiety
85any
86apart
87apology
88appear
89apple
90approve
91april
92arch
93arctic
94area
95arena
96argue
97arm
98armed
99armor
100army
101around
102arrange
103arrest
104arrive
105arrow
106art
107artefact
108artist
109artwork
110ask
111aspect
112assault
113asset
114assist
115assume
116asthma
117athlete
118atom
119attack
120attend
121attitude
122attract
123auction
124audit
125august
126aunt
127author
128auto
129autumn
130average
131avocado
132avoid
133awake
134aware
135away
136awesome
137awful
138awkward
139axis
140baby
141bachelor
142bacon
143badge
144bag
145balance
146balcony
147ball
148bamboo
149banana
150banner
151bar
152barely
153bargain
154barrel
155base
156basic
157basket
158battle
159beach
160bean
161beauty
162because
163become
164beef
165before
166begin
167behave
168behind
169believe
170below
171belt
172bench
173benefit
174best
175betray
176better
177between
178beyond
179bicycle
180bid
181bike
182bind
183biology
184bird
185birth
186bitter
187black
188blade
189blame
190blanket
191blast
192bleak
193bless
194blind
195blood
196blossom
197blouse
198blue
199blur
200blush
201board
202boat
203body
204boil
205bomb
206bone
207bonus
208book
209boost
210border
211boring
212borrow
213boss
214bottom
215bounce
216box
217boy
218bracket
219brain
220brand
221brass
222brave
223bread
224breeze
225brick
226bridge
227brief
228bright
229bring
230brisk
231broccoli
232broken
233bronze
234broom
235brother
236brown
237brush
238bubble
239buddy
240budget
241buffalo
242build
243bulb
244bulk
245bullet
246bundle
247bunker
248burden
249burger
250burst
251bus
252business
253busy
254butter
255buyer
256buzz
257cabbage
258cabin
259cable
260cactus
261cage
262cake
263call
264calm
265camera
266camp
267can
268canal
269cancel
270candy
271cannon
272canoe
273canvas
274canyon
275capable
276capital
277captain
278car
279carbon
280card
281cargo
282carpet
283carry
284cart
285case
286cash
287casino
288castle
289casual
290cat
291catalog
292catch
293category
294cattle
295caught
296cause
297caution
298cave
299ceiling
300celery
301cement
302census
303century
304cereal
305certain
306chair
307chalk
308champion
309change
310chaos
311chapter
312charge
313chase
314chat
315cheap
316check
317cheese
318chef
319cherry
320chest
321chicken
322chief
323child
324chimney
325choice
326choose
327chronic
328chuckle
329chunk
330churn
331cigar
332cinnamon
333circle
334citizen
335city
336civil
337claim
338clap
339clarify
340claw
341clay
342clean
343clerk
344clever
345click
346client
347cliff
348climb
349clinic
350clip
351clock
352clog
353close
354cloth
355cloud
356clown
357club
358clump
359cluster
360clutch
361coach
362coast
363coconut
364code
365coffee
366coil
367coin
368collect
369color
370column
371combine
372come
373comfort
374comic
375common
376company
377concert
378conduct
379confirm
380congress
381connect
382consider
383control
384convince
385cook
386cool
387copper
388copy
389coral
390core
391corn
392correct
393cost
394cotton
395couch
396country
397couple
398course
399cousin
400cover
401coyote
402crack
403cradle
404craft
405cram
406crane
407crash
408crater
409crawl
410crazy
411cream
412credit
413creek
414crew
415cricket
416crime
417crisp
418critic
419crop
420cross
421crouch
422crowd
423crucial
424cruel
425cruise
426crumble
427crunch
428crush
429cry
430crystal
431cube
432culture
433cup
434cupboard
435curious
436current
437curtain
438curve
439cushion
440custom
441cute
442cycle
443dad
444damage
445damp
446dance
447danger
448daring
449dash
450daughter
451dawn
452day
453deal
454debate
455debris
456decade
457december
458decide
459decline
460decorate
461decrease
462deer
463defense
464define
465defy
466degree
467delay
468deliver
469demand
470demise
471denial
472dentist
473deny
474depart
475depend
476deposit
477depth
478deputy
479derive
480describe
481desert
482design
483desk
484despair
485destroy
486detail
487detect
488develop
489device
490devote
491diagram
492dial
493diamond
494diary
495dice
496diesel
497diet
498differ
499digital
500dignity
501dilemma
502dinner
503dinosaur
504direct
505dirt
506disagree
507discover
508disease
509dish
510dismiss
511disorder
512display
513distance
514divert
515divide
516divorce
517dizzy
518doctor
519document
520dog
521doll
522dolphin
523domain
524donate
525donkey
526donor
527door
528dose
529double
530dove
531draft
532dragon
533drama
534drastic
535draw
536dream
537dress
538drift
539drill
540drink
541drip
542drive
543drop
544drum
545dry
546duck
547dumb
548dune
549during
550dust
551dutch
552duty
553dwarf
554dynamic
555eager
556eagle
557early
558earn
559earth
560easily
561east
562easy
563echo
564ecology
565economy
566edge
567edit
568educate
569effort
570egg
571eight
572either
573elbow
574elder
575electric
576elegant
577element
578elephant
579elevator
580elite
581else
582embark
583embody
584embrace
585emerge
586emotion
587employ
588empower
589empty
590enable
591enact
592end
593endless
594endorse
595enemy
596energy
597enforce
598engage
599engine
600enhance
601enjoy
602enlist
603enough
604enrich
605enroll
606ensure
607enter
608entire
609entry
610envelope
611episode
612equal
613equip
614era
615erase
616erode
617erosion
618error
619erupt
620escape
621essay
622essence
623estate
624eternal
625ethics
626evidence
627evil
628evoke
629evolve
630exact
631example
632excess
633exchange
634excite
635exclude
636excuse
637execute
638exercise
639exhaust
640exhibit
641exile
642exist
643exit
644exotic
645expand
646expect
647expire
648explain
649expose
650express
651extend
652extra
653eye
654eyebrow
655fabric
656face
657faculty
658fade
659faint
660faith
661fall
662false
663fame
664family
665famous
666fan
667fancy
668fantasy
669farm
670fashion
671fat
672fatal
673father
674fatigue
675fault
676favorite
677feature
678february
679federal
680fee
681feed
682feel
683female
684fence
685festival
686fetch
687fever
688few
689fiber
690fiction
691field
692figure
693file
694film
695filter
696final
697find
698fine
699finger
700finish
701fire
702firm
703first
704fiscal
705fish
706fit
707fitness
708fix
709flag
710flame
711flash
712flat
713flavor
714flee
715flight
716flip
717float
718flock
719floor
720flower
721fluid
722flush
723fly
724foam
725focus
726fog
727foil
728fold
729follow
730food
731foot
732force
733forest
734forget
735fork
736fortune
737forum
738forward
739fossil
740foster
741found
742fox
743fragile
744frame
745frequent
746fresh
747friend
748fringe
749frog
750front
751frost
752frown
753frozen
754fruit
755fuel
756fun
757funny
758furnace
759fury
760future
761gadget
762gain
763galaxy
764gallery
765game
766gap
767garage
768garbage
769garden
770garlic
771garment
772gas
773gasp
774gate
775gather
776gauge
777gaze
778general
779genius
780genre
781gentle
782genuine
783gesture
784ghost
785giant
786gift
787giggle
788ginger
789giraffe
790girl
791give
792glad
793glance
794glare
795glass
796glide
797glimpse
798globe
799gloom
800glory
801glove
802glow
803glue
804goat
805goddess
806gold
807good
808goose
809gorilla
810gospel
811gossip
812govern
813gown
814grab
815grace
816grain
817grant
818grape
819grass
820gravity
821great
822green
823grid
824grief
825grit
826grocery
827group
828grow
829grunt
830guard
831guess
832guide
833guilt
834guitar
835gun
836gym
837habit
838hair
839half
840hammer
841hamster
842hand
843happy
844harbor
845hard
846harsh
847harvest
848hat
849have
850hawk
851hazard
852head
853health
854heart
855heavy
856hedgehog
857height
858hello
859helmet
860help
861hen
862hero
863hidden
864high
865hill
866hint
867hip
868hire
869history
870hobby
871hockey
872hold
873hole
874holiday
875hollow
876home
877honey
878hood
879hope
880horn
881horror
882horse
883hospital
884host
885hotel
886hour
887hover
888hub
889huge
890human
891humble
892humor
893hundred
894hungry
895hunt
896hurdle
897hurry
898hurt
899husband
900hybrid
901ice
902icon
903idea
904identify
905idle
906ignore
907ill
908illegal
909illness
910image
911imitate
912immense
913immune
914impact
915impose
916improve
917impulse
918inch
919include
920income
921increase
922index
923indicate
924indoor
925industry
926infant
927inflict
928inform
929inhale
930inherit
931initial
932inject
933injury
934inmate
935inner
936innocent
937input
938inquiry
939insane
940insect
941inside
942inspire
943install
944intact
945interest
946into
947invest
948invite
949involve
950iron
951island
952isolate
953issue
954item
955ivory
956jacket
957jaguar
958jar
959jazz
960jealous
961jeans
962jelly
963jewel
964job
965join
966joke
967journey
968joy
969judge
970juice
971jump
972jungle
973junior
974junk
975just
976kangaroo
977keen
978keep
979ketchup
980key
981kick
982kid
983kidney
984kind
985kingdom
986kiss
987kit
988kitchen
989kite
990kitten
991kiwi
992knee
993knife
994knock
995know
996lab
997label
998labor
999ladder
1000lady
1001lake
1002lamp
1003language
1004laptop
1005large
1006later
1007latin
1008laugh
1009laundry
1010lava
1011law
1012lawn
1013lawsuit
1014layer
1015lazy
1016leader
1017leaf
1018learn
1019leave
1020lecture
1021left
1022leg
1023legal
1024legend
1025leisure
1026lemon
1027lend
1028length
1029lens
1030leopard
1031lesson
1032letter
1033level
1034liar
1035liberty
1036library
1037license
1038life
1039lift
1040light
1041like
1042limb
1043limit
1044link
1045lion
1046liquid
1047list
1048little
1049live
1050lizard
1051load
1052loan
1053lobster
1054local
1055lock
1056logic
1057lonely
1058long
1059loop
1060lottery
1061loud
1062lounge
1063love
1064loyal
1065lucky
1066luggage
1067lumber
1068lunar
1069lunch
1070luxury
1071lyrics
1072machine
1073mad
1074magic
1075magnet
1076maid
1077mail
1078main
1079major
1080make
1081mammal
1082man
1083manage
1084mandate
1085mango
1086mansion
1087manual
1088maple
1089marble
1090march
1091margin
1092marine
1093market
1094marriage
1095mask
1096mass
1097master
1098match
1099material
1100math
1101matrix
1102matter
1103maximum
1104maze
1105meadow
1106mean
1107measure
1108meat
1109mechanic
1110medal
1111media
1112melody
1113melt
1114member
1115memory
1116mention
1117menu
1118mercy
1119merge
1120merit
1121merry
1122mesh
1123message
1124metal
1125method
1126middle
1127midnight
1128milk
1129million
1130mimic
1131mind
1132minimum
1133minor
1134minute
1135miracle
1136mirror
1137misery
1138miss
1139mistake
1140mix
1141mixed
1142mixture
1143mobile
1144model
1145modify
1146mom
1147moment
1148monitor
1149monkey
1150monster
1151month
1152moon
1153moral
1154more
1155morning
1156mosquito
1157mother
1158motion
1159motor
1160mountain
1161mouse
1162move
1163movie
1164much
1165muffin
1166mule
1167multiply
1168muscle
1169museum
1170mushroom
1171music
1172must
1173mutual
1174myself
1175mystery
1176myth
1177naive
1178name
1179napkin
1180narrow
1181nasty
1182nation
1183nature
1184near
1185neck
1186need
1187negative
1188neglect
1189neither
1190nephew
1191nerve
1192nest
1193net
1194network
1195neutral
1196never
1197news
1198next
1199nice
1200night
1201noble
1202noise
1203nominee
1204noodle
1205normal
1206north
1207nose
1208notable
1209note
1210nothing
1211notice
1212novel
1213now
1214nuclear
1215number
1216nurse
1217nut
1218oak
1219obey
1220object
1221oblige
1222obscure
1223observe
1224obtain
1225obvious
1226occur
1227ocean
1228october
1229odor
1230off
1231offer
1232office
1233often
1234oil
1235okay
1236old
1237olive
1238olympic
1239omit
1240once
1241one
1242onion
1243online
1244only
1245open
1246opera
1247opinion
1248oppose
1249option
1250orange
1251orbit
1252orchard
1253order
1254ordinary
1255organ
1256orient
1257original
1258orphan
1259ostrich
1260other
1261outdoor
1262outer
1263output
1264outside
1265oval
1266oven
1267over
1268own
1269owner
1270oxygen
1271oyster
1272ozone
1273pact
1274paddle
1275page
1276pair
1277palace
1278palm
1279panda
1280panel
1281panic
1282panther
1283paper
1284parade
1285parent
1286park
1287parrot
1288party
1289pass
1290patch
1291path
1292patient
1293patrol
1294pattern
1295pause
1296pave
1297payment
1298peace
1299peanut
1300pear
1301peasant
1302pelican
1303pen
1304penalty
1305pencil
1306people
1307pepper
1308perfect
1309permit
1310person
1311pet
1312phone
1313photo
1314phrase
1315physical
1316piano
1317picnic
1318picture
1319piece
1320pig
1321pigeon
1322pill
1323pilot
1324pink
1325pioneer
1326pipe
1327pistol
1328pitch
1329pizza
1330place
1331planet
1332plastic
1333plate
1334play
1335please
1336pledge
1337pluck
1338plug
1339plunge
1340poem
1341poet
1342point
1343polar
1344pole
1345police
1346pond
1347pony
1348pool
1349popular
1350portion
1351position
1352possible
1353post
1354potato
1355pottery
1356poverty
1357powder
1358power
1359practice
1360praise
1361predict
1362prefer
1363prepare
1364present
1365pretty
1366prevent
1367price
1368pride
1369primary
1370print
1371priority
1372prison
1373private
1374prize
1375problem
1376process
1377produce
1378profit
1379program
1380project
1381promote
1382proof
1383property
1384prosper
1385protect
1386proud
1387provide
1388public
1389pudding
1390pull
1391pulp
1392pulse
1393pumpkin
1394punch
1395pupil
1396puppy
1397purchase
1398purity
1399purpose
1400purse
1401push
1402put
1403puzzle
1404pyramid
1405quality
1406quantum
1407quarter
1408question
1409quick
1410quit
1411quiz
1412quote
1413rabbit
1414raccoon
1415race
1416rack
1417radar
1418radio
1419rail
1420rain
1421raise
1422rally
1423ramp
1424ranch
1425random
1426range
1427rapid
1428rare
1429rate
1430rather
1431raven
1432raw
1433razor
1434ready
1435real
1436reason
1437rebel
1438rebuild
1439recall
1440receive
1441recipe
1442record
1443recycle
1444reduce
1445reflect
1446reform
1447refuse
1448region
1449regret
1450regular
1451reject
1452relax
1453release
1454relief
1455rely
1456remain
1457remember
1458remind
1459remove
1460render
1461renew
1462rent
1463reopen
1464repair
1465repeat
1466replace
1467report
1468require
1469rescue
1470resemble
1471resist
1472resource
1473response
1474result
1475retire
1476retreat
1477return
1478reunion
1479reveal
1480review
1481reward
1482rhythm
1483rib
1484ribbon
1485rice
1486rich
1487ride
1488ridge
1489rifle
1490right
1491rigid
1492ring
1493riot
1494ripple
1495risk
1496ritual
1497rival
1498river
1499road
1500roast
1501robot
1502robust
1503rocket
1504romance
1505roof
1506rookie
1507room
1508rose
1509rotate
1510rough
1511round
1512route
1513royal
1514rubber
1515rude
1516rug
1517rule
1518run
1519runway
1520rural
1521sad
1522saddle
1523sadness
1524safe
1525sail
1526salad
1527salmon
1528salon
1529salt
1530salute
1531same
1532sample
1533sand
1534satisfy
1535satoshi
1536sauce
1537sausage
1538save
1539say
1540scale
1541scan
1542scare
1543scatter
1544scene
1545scheme
1546school
1547science
1548scissors
1549scorpion
1550scout
1551scrap
1552screen
1553script
1554scrub
1555sea
1556search
1557season
1558seat
1559second
1560secret
1561section
1562security
1563seed
1564seek
1565segment
1566select
1567sell
1568seminar
1569senior
1570sense
1571sentence
1572series
1573service
1574session
1575settle
1576setup
1577seven
1578shadow
1579shaft
1580shallow
1581share
1582shed
1583shell
1584sheriff
1585shield
1586shift
1587shine
1588ship
1589shiver
1590shock
1591shoe
1592shoot
1593shop
1594short
1595shoulder
1596shove
1597shrimp
1598shrug
1599shuffle
1600shy
1601sibling
1602sick
1603side
1604siege
1605sight
1606sign
1607silent
1608silk
1609silly
1610silver
1611similar
1612simple
1613since
1614sing
1615siren
1616sister
1617situate
1618six
1619size
1620skate
1621sketch
1622ski
1623skill
1624skin
1625skirt
1626skull
1627slab
1628slam
1629sleep
1630slender
1631slice
1632slide
1633slight
1634slim
1635slogan
1636slot
1637slow
1638slush
1639small
1640smart
1641smile
1642smoke
1643smooth
1644snack
1645snake
1646snap
1647sniff
1648snow
1649soap
1650soccer
1651social
1652sock
1653soda
1654soft
1655solar
1656soldier
1657solid
1658solution
1659solve
1660someone
1661song
1662soon
1663sorry
1664sort
1665soul
1666sound
1667soup
1668source
1669south
1670space
1671spare
1672spatial
1673spawn
1674speak
1675special
1676speed
1677spell
1678spend
1679sphere
1680spice
1681spider
1682spike
1683spin
1684spirit
1685split
1686spoil
1687sponsor
1688spoon
1689sport
1690spot
1691spray
1692spread
1693spring
1694spy
1695square
1696squeeze
1697squirrel
1698stable
1699stadium
1700staff
1701stage
1702stairs
1703stamp
1704stand
1705start
1706state
1707stay
1708steak
1709steel
1710stem
1711step
1712stereo
1713stick
1714still
1715sting
1716stock
1717stomach
1718stone
1719stool
1720story
1721stove
1722strategy
1723street
1724strike
1725strong
1726struggle
1727student
1728stuff
1729stumble
1730style
1731subject
1732submit
1733subway
1734success
1735such
1736sudden
1737suffer
1738sugar
1739suggest
1740suit
1741summer
1742sun
1743sunny
1744sunset
1745super
1746supply
1747supreme
1748sure
1749surface
1750surge
1751surprise
1752surround
1753survey
1754suspect
1755sustain
1756swallow
1757swamp
1758swap
1759swarm
1760swear
1761sweet
1762swift
1763swim
1764swing
1765switch
1766sword
1767symbol
1768symptom
1769syrup
1770system
1771table
1772tackle
1773tag
1774tail
1775talent
1776talk
1777tank
1778tape
1779target
1780task
1781taste
1782tattoo
1783taxi
1784teach
1785team
1786tell
1787ten
1788tenant
1789tennis
1790tent
1791term
1792test
1793text
1794thank
1795that
1796theme
1797then
1798theory
1799there
1800they
1801thing
1802this
1803thought
1804three
1805thrive
1806throw
1807thumb
1808thunder
1809ticket
1810tide
1811tiger
1812tilt
1813timber
1814time
1815tiny
1816tip
1817tired
1818tissue
1819title
1820toast
1821tobacco
1822today
1823toddler
1824toe
1825together
1826toilet
1827token
1828tomato
1829tomorrow
1830tone
1831tongue
1832tonight
1833tool
1834tooth
1835top
1836topic
1837topple
1838torch
1839tornado
1840tortoise
1841toss
1842total
1843tourist
1844toward
1845tower
1846town
1847toy
1848track
1849trade
1850traffic
1851tragic
1852train
1853transfer
1854trap
1855trash
1856travel
1857tray
1858treat
1859tree
1860trend
1861trial
1862tribe
1863trick
1864trigger
1865trim
1866trip
1867trophy
1868trouble
1869truck
1870true
1871truly
1872trumpet
1873trust
1874truth
1875try
1876tube
1877tuition
1878tumble
1879tuna
1880tunnel
1881turkey
1882turn
1883turtle
1884twelve
1885twenty
1886twice
1887twin
1888twist
1889two
1890type
1891typical
1892ugly
1893umbrella
1894unable
1895unaware
1896uncle
1897uncover
1898under
1899undo
1900unfair
1901unfold
1902unhappy
1903uniform
1904unique
1905unit
1906universe
1907unknown
1908unlock
1909until
1910unusual
1911unveil
1912update
1913upgrade
1914uphold
1915upon
1916upper
1917upset
1918urban
1919urge
1920usage
1921use
1922used
1923useful
1924useless
1925usual
1926utility
1927vacant
1928vacuum
1929vague
1930valid
1931valley
1932valve
1933van
1934vanish
1935vapor
1936various
1937vast
1938vault
1939vehicle
1940velvet
1941vendor
1942venture
1943venue
1944verb
1945verify
1946version
1947very
1948vessel
1949veteran
1950viable
1951vibrant
1952vicious
1953victory
1954video
1955view
1956village
1957vintage
1958violin
1959virtual
1960virus
1961visa
1962visit
1963visual
1964vital
1965vivid
1966vocal
1967voice
1968void
1969volcano
1970volume
1971vote
1972voyage
1973wage
1974wagon
1975wait
1976walk
1977wall
1978walnut
1979want
1980warfare
1981warm
1982warrior
1983wash
1984wasp
1985waste
1986water
1987wave
1988way
1989wealth
1990weapon
1991wear
1992weasel
1993weather
1994web
1995wedding
1996weekend
1997weird
1998welcome
1999west
2000wet
2001whale
2002what
2003wheat
2004wheel
2005when
2006where
2007whip
2008whisper
2009wide
2010width
2011wife
2012wild
2013will
2014win
2015window
2016wine
2017wing
2018wink
2019winner
2020winter
2021wire
2022wisdom
2023wise
2024wish
2025witness
2026wolf
2027woman
2028wonder
2029wood
2030wool
2031word
2032work
2033world
2034worry
2035worth
2036wrap
2037wreck
2038wrestle
2039wrist
2040write
2041wrong
2042yard
2043year
2044yellow
2045you
2046young
2047youth
2048zebra
2049zero
2050zone
2051zoo`.split(
2051"\n"),d$="6.16.0";async function dW(e){let t=Object.keys(e);return(await Promise.all(t.map(t=>Promise.resolve(e[t])))).reduce((e,r,a)=>(e[t[a]]=r,e),{})}function dz(e,t,r){for(let r in t){let a=t[r];Object.defineProperty(e,r,{enumerable:!0,value:a,writable:!1})}}function dV(e,t){if(null==e)return"null";if(null==t&&(t=new Set),"object"==typeof e){if(t.has(e))return"[Circular]";t.add(e)}if(Array.isArray(e))return"[ "+e.map(e=>dV(e,t)).join(", ")+" ]";if(e instanceof Uint8Array){let t="0123456789abcdef",r="0x";for(let a=0;a<e.length;a++)r+=t[e[a]>>4],r+=t[15&e[a]];return r}if("object"==typeof e&&"function"==typeof e.toJSON)return dV(e.toJSON(),t);switch(typeof e){case"boolean":case"number":case"symbol":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{let r=Object.keys(e);return r.sort(),"{ "+r.map(r=>`${dV(r,t)}: ${dV(e[r],t)}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function dH(e,t,r,a){if(!e)throw function(e,t,r){let a,n=e;{let a=[];if(r){if("message"in r||"code"in r||"name"in r)throw Error(`value will overwrite populated values: ${dV(r)}`);for(let e in r){if("shortMessage"===e)continue;let t=r[e];a.push(e+"="+dV(t))}}a.push(`code=${t}`),a.push(`version=${d$}`),a.length&&(e+=" ("+a.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":a=TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":a=RangeError(e);break;default:a=Error(e)}return dz(a,{code:t}),r&&Object.assign(a,r),null==a.shortMessage&&dz(a,{shortMessage:n}),a}(t,r,a)}function dq(e,t,r,a){dH(e,t,"INVALID_ARGUMENT",{argument:r,value:a})}var dG=["NFD","NFC","NFKD","NFKC"].reduce((e,t)=>{try{if("test"!=="test".normalize(t))throw Error("bad");if("NFD"===t){let e=String.fromCharCode(233).normalize("NFD"),t=String.fromCharCode(101,769);if(e!==t)throw Error("broken")}e.push(t)}catch(e){}return e},[]);function dK(e){dH(dG.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})}function dJ(e,t,r){if(null==r&&(r=""),e!==t){let e=r,t="new";r&&(e+=".",t+=" "+r),dH(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}function dZ(e,t,r){if(e instanceof Uint8Array)return r?new Uint8Array(e):e;if("string"==typeof e&&e.length%2==0&&e.match(/^0x[0-9a-f]*$/i)){let t=new Uint8Array((e.length-2)/2),r=2;for(let a=0;a<t.length;a++)t[a]=parseInt(e.substring(r,r+2),16),r+=2;return t}dq(!1,"invalid BytesLike value",t||"value",e)}function dQ(e,t){return dZ(e,t,!1)}function dX(e,t){return dZ(e,t,!0)}function dY(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&("number"!=typeof t||e.length===2+2*t)&&(!0!==t||e.length%2==0)}function d0(e){return dY(e,!0)||e instanceof Uint8Array}var d1="0123456789abcdef";function d2(e){let t=dQ(e),r="0x";for(let e=0;e<t.length;e++){let a=t[e];r+=d1[(240&a)>>4]+d1[15&a]}return r}function d3(e){return"0x"+e.map(e=>d2(e).substring(2)).join("")}function d6(e){return dY(e,!0)?(e.length-2)/2:dQ(e).length}function d8(e,t,r){let a=dQ(e);return r>a.length&&dH(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:a,length:a.length,offset:r}),d2(a.slice(t,r))}function d7(e,t){let r=dQ(e);dH(t>=r.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(r),length:t,offset:t+1});let a=new Uint8Array(t);return a.fill(0),a.set(r,t-r.length),d2(a)}var d4=BigInt(0),d5=BigInt(1);function d9(e,t){switch(typeof e){case"bigint":return e;case"number":return dq(Number.isInteger(e),"underflow",t||"value",e),dq(e>=-0x1fffffffffffff&&e<=0x1fffffffffffff,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw Error("empty string");if("-"===e[0]&&"-"!==e[1])return-BigInt(e.substring(1));return BigInt(e)}catch(r){dq(!1,`invalid BigNumberish string: ${r.message}`,t||"value",e)}}dq(!1,"invalid BigNumberish value",t||"value",e)}function pe(e,t){let r=d9(e,t);return dH(r>=d4,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),r}var pt="0123456789abcdef";function pr(e){if(e instanceof Uint8Array){let t="0x0";
2051for(let r of e)t+=pt[r>>4],t+=pt[15&r];return BigInt(t)}return d9(e)}function pa(e,t){switch(typeof e){case"bigint":return dq(e>=-0x1fffffffffffff&&e<=0x1fffffffffffff,"overflow",t||"value",e),Number(e);case"number":return dq(Number.isInteger(e),"underflow",t||"value",e),dq(e>=-0x1fffffffffffff&&e<=0x1fffffffffffff,"overflow",t||"value",e),e;case"string":try{if(""===e)throw Error("empty string");return pa(BigInt(e),t)}catch(r){dq(!1,`invalid numeric string: ${r.message}`,t||"value",e)}}dq(!1,"invalid numeric value",t||"value",e)}function pn(e,t){let r=pe(e,"value"),a=r.toString(16);{let n=pa(t,"width");if(0===n&&r===d4)return"0x";for(dH(2*n>=a.length,`value exceeds width (${n} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});a.length<2*n;)a="0"+a}return"0x"+a}function pi(e,t){let r=pe(e,"value");if(r===d4)return new Uint8Array(0);let a=r.toString(16);a.length%2&&(a="0"+a);let n=new Uint8Array(a.length/2);for(let e=0;e<n.length;e++){let t=2*e;n[e]=parseInt(a.substring(t,t+2),16)}return n}var po="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",ps=null,pl=BigInt(0),pc=BigInt(58);function pd(e,t){dq("string"==typeof e,"invalid string value","str",e),null!=t&&(dK(t),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){let a=e.charCodeAt(t);if(a<128)r.push(a);else if(a<2048)r.push(a>>6|192),r.push(63&a|128);else if((64512&a)==55296){t++;let n=e.charCodeAt(t);dq(t<e.length&&(64512&n)==56320,"invalid surrogate pair","str",e);let i=65536+((1023&a)<<10)+(1023&n);r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(63&i|128)}else r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)}return new Uint8Array(r)}function pp(e,t,r){let a=0;for(let n=0;n<r;n++)a=256*a+e[t+n];return a}function pu(e,t,r,a){let n=[];for(;r<t+1+a;){let i=pm(e,r);n.push(i.result),dH((r+=i.consumed)<=t+1+a,"child data too short","BUFFER_OVERRUN",{buffer:e,length:a,offset:t})}return{consumed:1+a,result:n}}function pm(e,t){dH(0!==e.length,"data too short","BUFFER_OVERRUN",{buffer:e,length:0,offset:1});let r=t=>{dH(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){let a=e[t]-247;r(t+1+a);let n=pp(e,t+1,a);return r(t+1+a+n),pu(e,t,t+1+a,a+n)}if(e[t]>=192){let a=e[t]-192;return r(t+1+a),pu(e,t,t+1,a)}if(e[t]>=184){let a=e[t]-183;r(t+1+a);let n=pp(e,t+1,a);r(t+1+a+n);let i=d2(e.slice(t+1+a,t+1+a+n));return{consumed:1+a+n,result:i}}if(e[t]>=128){let a=e[t]-128;r(t+1+a);let n=d2(e.slice(t+1,t+1+a));return{consumed:1+a,result:n}}return{consumed:1,result:function(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}(e[t])}}function ph(e){let t=dQ(e,"data"),r=pm(t,0);return dq(r.consumed===t.length,"unexpected junk after rlp payload","data",e),r.result}function pg(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}var pf="0123456789abcdef";function pb(e){let t="0x";for(let r of function e(t){if(Array.isArray(t)){let r=[];if(t.forEach(function(t){r=r.concat(e(t))}),r.length<=55)return r.unshift(192+r.length),r;let a=pg(r.length);return a.unshift(247+a.length),a.concat(r)}let r=Array.prototype.slice.call(dQ(t,"object"));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let a=pg(r.length);return a.unshift(183+a.length),a.concat(r)}(e))t+=pf[r>>4],t+=pf[15&r];return t}function py(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function pk(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function px(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");py(e.outputLen),py(e.blockLen)}function pw(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function pv(e,t){pk(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}var pT="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,pE=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),pB=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),pC=(e,t)=>e<<32-t|e>>>t;if(68!==new Uint8Array(new Uint32Array([0x11223344]).buffer)[0])throw Error("Non little-endian hardware is not supported");var pU=async()=>{};async function pI(e,t,r){let a=Date.now();for(let n=0;n<e;n++){r(n);let e=Date.now()-a;e>=0&&e<t||(await pU(),a+=e)}}function pN(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),!(e instanceof Uint8Array))throw Error(`expected Uint8Array, got ${typeof e}`);return e}var pR=class{clone(){return this._cloneInto()}},pS={}.toString;function pA(e,t){if(void 0!==t&&"[object Object]"!==pS.call(t))throw Error("Options should be object or undefined");return Object.assign(e,t)}function pP(e){let t=t=>e().update(pN(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function pD(e=32){if(pT&&"function"==typeof pT.getRandomValues)return pT.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}var pL=class extends pR{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,px(e);let r=pN(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let a=this.blockLen,n=new Uint8Array(a);n.set(r.length>a?e.create().update(r).digest():r);for(let e=0;e<n.length;e++)n[e]^=54;this.iHash.update(n),this.oHash=e.create();for(let e=0;e<n.length;e++)n[e]^=106;this.oHash.update(n),n.fill(0)}update(e){return pw(this),this.iHash.update(e),this}digestInto(e){pw(this),pk(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:a,destroyed:n,blockLen:i,outputLen:o}=this;return e.finished=a,e.destroyed=n,e.blockLen=i,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},pO=(e,t,r)=>new pL(e,t).update(r).digest();function pF(e,t,r,a){var n;let i,{c:o,dkLen:s,DK:l,PRF:c,PRFSalt:d}=function(e,t,r,a){px(e);let{c:n,dkLen:i,asyncTick:o}=pA({dkLen:32,asyncTick:10},a);if(py(n),py(i),py(o),n<1)throw Error("PBKDF2: iterations (c) should be >= 1");let s=pN(t),l=pN(r),c=new Uint8Array(i),d=pO.create(e,s),p=d._cloneInto().update(l);return{c:n,dkLen:i,asyncTick:o,DK:c,PRF:d,PRFSalt:p}}(e,t,r,a),p=new Uint8Array(4),u=pB(p),m=new Uint8Array(c.outputLen);for(let e=1,t=0;t<s;e++,t+=c.outputLen){let r=l.subarray(t,t+c.outputLen);u.setInt32(0,e,!1),(i=d._cloneInto(i)).update(p).digestInto(m),r.set(m.subarray(0,r.length));for(let e=1;e<o;e++){c._cloneInto(i).update(m).digestInto(m);for(let e=0;e<r.length;e++)r[e]^=m[e]}}return n=i,c.destroy(),d.destroy(),n&&n.destroy(),m.fill(0),l}pO.create=(e,t)=>
2051new pL(e,t);var p_=class extends pR{constructor(e,t,r,a){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=pB(this.buffer)}update(e){pw(this);let{view:t,buffer:r,blockLen:a}=this,n=(e=pN(e)).length;for(let i=0;i<n;){let o=Math.min(a-this.pos,n-i);if(o===a){let t=pB(e);for(;a<=n-i;i+=a)this.process(t,i);continue}r.set(e.subarray(i,i+o),this.pos),this.pos+=o,i+=o,this.pos===a&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){pw(this),pv(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:a,isLE:n}=this,{pos:i}=this;t[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>a-i&&(this.process(r,0),i=0);for(let e=i;e<a;e++)t[e]=0;!function(e,t,r,a){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,a);let n=BigInt(32),i=BigInt(0xffffffff),o=Number(r>>n&i),s=Number(r&i),l=4*!!a,c=4*!a;e.setUint32(t+l,o,a),e.setUint32(t+c,s,a)}(r,a-8,BigInt(8*this.length),n),this.process(r,0);let o=pB(e),s=this.outputLen;if(s%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=s/4,c=this.get();if(l>c.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)o.setUint32(4*e,c[e],n)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:a,finished:n,destroyed:i,pos:o}=this;return e.length=a,e.pos=o,e.finished=n,e.destroyed=i,a%t&&e.buffer.set(r),e}},pM=(e,t,r)=>e&t^~e&r,pj=(e,t,r)=>e&t^e&r^t&r,p$=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),pW=new Uint32Array([0x6a09e66
20517,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),pz=new Uint32Array(64),pV=class extends p_{constructor(){super(64,32,8,!1),this.A=0|pW[0],this.B=0|pW[1],this.C=0|pW[2],this.D=0|pW[3],this.E=0|pW[4],this.F=0|pW[5],this.G=0|pW[6],this.H=0|pW[7]}get(){let{A:e,B:t,C:r,D:a,E:n,F:i,G:o,H:s}=this;return[e,t,r,a,n,i,o,s]}set(e,t,r,a,n,i,o,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|a,this.E=0|n,this.F=0|i,this.G=0|o,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)pz[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=pz[e-15],r=pz[e-2],a=pC(t,7)^pC(t,18)^t>>>3,n=pC(r,17)^pC(r,19)^r>>>10;pz[e]=n+pz[e-7]+a+pz[e-16]|0}let{A:r,B:a,C:n,D:i,E:o,F:s,G:l,H:c}=this;for(let e=0;e<64;e++){let t=c+(pC(o,6)^pC(o,11)^pC(o,25))+pM(o,s,l)+p$[e]+pz[e]|0,d=(pC(r,2)^pC(r,13)^pC(r,22))+pj(r,a,n)|0;c=l,l=s,s=o,o=i+t|0,i=n,n=a,a=r,r=t+d|0}r=r+this.A|0,a=a+this.B|0,n=n+this.C|0,i=i+this.D|0,o=o+this.E|0,s=s+this.F|0,l=l+this.G|0,c=c+this.H|0,this.set(r,a,n,i,o,s,l,c)}roundClean(){pz.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},pH=pP(()=>new pV),pq=BigInt(0x100000000-1),pG=BigInt(32);function pK(e,t=!1){let r=new Uint32Array(e.length),a=new Uint32Array(e.length);for(let n=0;n<e.length;n++){let{h:i,l:o}=function(e,t=!1){return t?{h:Number(e&pq),l:Number(e>>pG&pq)}:{h:0|Number(e>>pG&pq),l:0|Number(e&pq)}}(e[n],t);[r[n],a[n]]=[i,o]}return[r,a]}var pJ={split:pK,shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,add:function(e,t,r,a){let n=(t>>>0)+(a>>>0);return{h:e+r+(n/0x100000000|0)|0,l:0|n}},add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,a)=>t+r+a+(e/0x100000000|0)|0,add4L:(e,t,r,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(a>>>0),add4H:(e,t,r,a,n)=>t+r+a+n+(e/0x100000000|0)|0,add5H:(e,t,r,a,n,i)=>t+r+a+n+i+(e/0x100000000|0)|0,add5L:(e,t,r,a,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(a>>>0)+(n>>>0)},[pZ,pQ]=pJ.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
20515771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),pX=new Uint32Array(80),pY=new Uint32Array(80),p0=class extends p_{constructor(){super(128,64,16,!1),this.Ah=0x6a09e667,this.Al=-0xc4336f8,this.Bh=-0x4498517b,this.Bl=-0x7b3558c5,this.Ch=0x3c6ef372,this.Cl=-0x16b07d5,this.Dh=-0x5ab00ac6,this.Dl=0x5f1d36f1,this.Eh=0x510e527f,this.El=-0x52197d2f,this.Fh=-0x64fa9774,this.Fl=0x2b3e6c1f,this.Gh=0x1f83d9ab,this.Gl=-0x4be4295,this.Hh=0x5be0cd19,this.Hl=0x137e2179}get(){let{Ah:e,Al:t,Bh:r,Bl:a,Ch:n,Cl:i,Dh:o,Dl:s,Eh:l,El:c,Fh:d,Fl:p,Gh:u,Gl:m,Hh:h,Hl:g}=this;return[e,t,r,a,n,i,o,s,l,c,d,p,u,m,h,g]}set(e,t,r,a,n,i,o,s,l,c,d,p,u,m,h,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|a,this.Ch=0|n,this.Cl=0|i,this.Dh=0|o,this.Dl=0|s,this.Eh=0|l,this.El=0|c,this.Fh=0|d,this.Fl=0|p,this.Gh=0|u,this.Gl=0|m,this.Hh=0|h,this.Hl=0|g}process(e,t){for(let r=0;r<16;r++,t+=4)pX[r]=e.getUint32(t),pY[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|pX[e-15],r=0|pY[e-15],a=pJ.rotrSH(t,r,1)^pJ.rotrSH(t,r,8)^pJ.shrSH(t,r,7),n=pJ.rotrSL(t,r,1)^pJ.rotrSL(t,r,8)^pJ.shrSL(t,r,7),i=0|pX[e-2],o=0|pY[e-2],s=pJ.rotrSH(i,o,19)^pJ.rotrBH(i,o,61)^pJ.shrSH(i,o,6),l=pJ.rotrSL(i,o,19)^pJ.rotrBL(i,o,61)^pJ.shrSL(i,o,6),c=pJ.add4L(n,l,pY[e-7],pY[e-16]),d=pJ.add4H(c,a,s,pX[e-7],pX[e-16]);pX[e]=0|d,pY[e]=0|c}let{Ah:r,Al:a,Bh:n,Bl:i,Ch:o,Cl:s,Dh:l,Dl:c,Eh:d,El:p,Fh:u,Fl:m,Gh:h,Gl:g,Hh:f,Hl:b}=this;for(let e=0;e<80;e++){let t=pJ.rotrSH(d,p,14)^pJ.rotrSH(d,p,18)^pJ.rotrBH(d,p,41),y=pJ.rotrSL(d,p,14)^pJ.rotrSL(d,p,18)^pJ.rotrBL(d,p,41),k=d&u^~d&h,x=p&m^~p&g,w=pJ.add5L(b,y,x,pQ[e],pY[e]),v=pJ.add5H(w,f,t,k,pZ[e],pX[e]),T=0|w,E=pJ.rotrSH(r,a,28)^pJ.rotrBH(r,a,34)^pJ.rotrBH(r,a,39),B=pJ.rotrSL(r,a,28)^pJ.rotrBL(r,a,34)^pJ.rotrBL(r,a,39),C=r&n^r&o^n&o,U=a&i^a&s^i&s;f=0|h,b=0|g,h=0|u,g=0|m,u=0|d,m=0|p,({h:d,l:p}=pJ.add(0|l,0|c,0|v,0|T)),l=0|o,c=0|s,o=0|n,s=0|i,n=0|r,i=0|a;let I=pJ.add3L(T,B,U);r=pJ.add3H(I,v,E,C),a=0|I}({h:r,l:a}=pJ.add(0|this.Ah,0|this.Al,0|r,0|a)),({h:n,l:i}=pJ.add(0|this.Bh,0|this.Bl,0|n,0|i)),({h:o,l:s}=pJ.add(0|this.Ch,0|this.Cl,0|o,0|s)),({h:l,l:c}=pJ.add(0|this.Dh,0|this.Dl,0|l,0|c)),({h:d,l:p}=pJ.add(0|this.Eh,0|this.El,0|d,0|p)),({h:u,l:m}=pJ.add(0|this.Fh,0|this.Fl,0|u,0|m)),({h:h,l:g}=pJ.add(0|this.Gh,0|this.Gl,0|h,0|g)),({h:f,l:b}=pJ.add(0|this.Hh,0|this.Hl,0|f,0|b)),this.set(r,a,n,i,o,s,l,c,d,p,u,m,h,g,f,b)}roundClean(){pX.fill(0),pY.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},p1=pP(()=>new p0),p2=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}(),p3=p2.crypto||p2.msCrypto,p6=!1,p8=function(e,t,r){return(function(e,t){let r={sha256:pH,sha512:p1}[e];return dq(null!=r,"invalid hmac algorithm","algorithm",e),pO.create(r,t)})(e,t).update(r).digest()},p7=p8;function p4(e,t,r){let a=dQ(t,"key"),n=dQ(r,"data");return d2(p7(e,a,n))}p4._=p8,p4.lock=function(){p6=!0},p4.register=function(e){if(p6)throw Error("computeHmac is locked");p7=e},Object.freeze(p4);var[p5,p9,ue]=[[],[],[]],ut=BigInt(0),ur=BigInt(1),ua=BigInt(2),un=BigInt(7),ui=BigInt(256),uo=BigInt(113);for(let e=0,t=ur,r=1,a=0;e<24;e++){[r,a]=[a,(2*r+3*a)%5],p5.push(2*(5*a+r)),p9.push((e+1)*(e+2)/2%64);let n=ut;for(let e=0;e<7;e++)(t=(t<<ur^(t>>un)*uo)%ui)&ua&&(n^=ur<<(ur<<BigInt(e))-ur);ue.push(n)}var[us,ul]=pK(ue,!0),uc=(e,t,r)=>r>32?((e,t,r)=>t<<r-32|e>>>64-r)(e,t,r):((e,t,r)=>e<<r|t>>>32-r)(e,t,r),ud=(e,t,r)=>r>32?((e,t,r)=>e<<r-32|t>>>64-r)(e,t,r):((e,t,r)=>t<<r|e>>>32-r)(e,t,r),up=class e extends pR{constructor(e,t,r,a=!1,n=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=a,this.rounds=n,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,py(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=pE(this.state)}keccak(){!function(e,t=24){let r=new Uint32Array(10);for(let a=24-t;a<24;a++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let a=(t+8)%10,n=(t+2)%10,i=r[n],o=r[n+1],s=uc(i,o,1)^r[a],l=ud(i,o,1)^r[a+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=l}let t=e[2],n=e[3];for(let r=0;r<24;
2051r++){let a=p9[r],i=uc(t,n,a),o=ud(t,n,a),s=p5[r];t=e[s],n=e[s+1],e[s]=i,e[s+1]=o}for(let t=0;t<50;t+=10){for(let a=0;a<10;a++)r[a]=e[t+a];for(let a=0;a<10;a++)e[t+a]^=~r[(a+2)%10]&r[(a+4)%10]}e[0]^=us[a],e[1]^=ul[a]}r.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){pw(this);let{blockLen:t,state:r}=this,a=(e=pN(e)).length;for(let n=0;n<a;){let i=Math.min(t-this.pos,a-n);for(let t=0;t<i;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:a}=this;e[r]^=t,(128&t)!=0&&r===a-1&&this.keccak(),e[a-1]^=128,this.keccak()}writeInto(e){pw(this,!1),pk(e),this.finish();let t=this.state,{blockLen:r}=this;for(let a=0,n=e.length;a<n;){this.posOut>=r&&this.keccak();let i=Math.min(r-this.posOut,n-a);e.set(t.subarray(this.posOut,this.posOut+i),a),this.posOut+=i,a+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return py(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(pv(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:r,suffix:a,outputLen:n,rounds:i,enableXOF:o}=this;return t||(t=new e(r,a,n,o,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=a,t.outputLen=n,t.enableXOF=o,t.destroyed=this.destroyed,t}},uu=pP(()=>new up(136,1,32)),um=!1,uh=function(e){return uu(e)},ug=uh;function uf(e){let t=dQ(e,"data");return d2(ug(t))}uf._=uh,uf.lock=function(){um=!0},uf.register=function(e){if(um)throw TypeError("keccak256 is locked");ug=e},Object.freeze(uf);var ub=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),uy=Uint8Array.from({length:16},(e,t)=>t),uk=uy.map(e=>(9*e+5)%16),ux=[uy],uw=[uk];for(let e=0;e<4;e++)for(let t of[ux,uw])t.push(t[e].map(e=>ub[e]));var uv=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>new Uint8Array(e)),uT=ux.map((e,t)=>e.map(e=>uv[t][e])),uE=uw.map((e,t)=>e.map(e=>uv[t][e])),uB=new Uint32Array([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),uC=new Uint32Array([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]),uU=(e,t)=>e<<t|e>>>32-t;function uI(e,t,r,a){return 0===e?t^r^a:1===e?t&r|~t&a:2===e?(t|~r)^a:3===e?t&a|r&~a:t^(r|~a)}var uN=new Uint32Array(16),uR=class extends p_{constructor(){super(64,20,8,!0),this.h0=0x67452301,this.h1=-0x10325477,this.h2=-0x67452302,this.h3=0x10325476,this.h4=-0x3c2d1e10}get(){let{h0:e,h1:t,h2:r,h3:a,h4:n}=this;return[e,t,r,a,n]}set(e,t,r,a,n){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|a,this.h4=0|n}process(e,t){for(let r=0;r<16;r++,t+=4)uN[r]=e.getUint32(t,!0);let r=0|this.h0,a=r,n=0|this.h1,i=n,o=0|this.h2,s=o,l=0|this.h3,c=l,d=0|this.h4,p=d;for(let e=0;e<5;e++){let t=4-e,u=uB[e],m=uC[e],h=ux[e],g=uw[e],f=uT[e],b=uE[e];for(let t=0;t<16;t++){let a=uU(r+uI(e,n,o,l)+uN[h[t]]+u,f[t])+d|0;r=d,d=l,l=0|uU(o,10),o=n,n=a}for(let e=0;e<16;e++){let r=uU(a+uI(t,i,s,c)+uN[g[e]]+m,b[e])+p|0;a=p,p=c,c=0|uU(s,10),s=i,i=r}}this.set(this.h1+o+c|0,this.h2+l+p|0,this.h3+d+a|0,this.h4+r+i|0,this.h0+n+s|0)}roundClean(){uN.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}},uS=pP(()=>new uR),uA=!1,uP=function(e){return uS(e)},uD=uP;function uL(e){let t=dQ(e,"data");return d2(uD(t))}uL._=uP,uL.lock=function(){uA=!0},uL.register=function(e){if(uA)throw TypeError("ripemd160 is locked");uD=e},Object.freeze(uL);var uO=!1,uF=function(e,t,r,a,n){let i={sha256:pH,sha512:p1}[n];return dq(null!=i,"invalid pbkdf2 algorithm","algorithm",n),pF(i,e,t,{c:r,dkLen:a})},u_=uF;function uM(e,t,r,a,n){let i=dQ(e,"password"),o=dQ(t,"salt");return d2(u_(i,o,r,a,n))}uM._=uF,uM.lock=function(){uO=!0},uM.register=function(e){if(uO)throw Error("pbkdf2 is locked");u_=e},Object.freeze(uM);var uj=!1,u$=function(e){return new Uint8Array(function(e){dH(null!=p3,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),dq(Number.isInteger(e)&&e>
20510&&e<=1024,"invalid length","length",e);let t=new Uint8Array(e);return p3.getRandomValues(t),t}(e))},uW=u$;function uz(e){return uW(e)}uz._=u$,uz.lock=function(){uj=!0},uz.register=function(e){if(uj)throw Error("randomBytes is locked");uW=e},Object.freeze(uz);var uV=(e,t)=>e<<t|e>>>32-t;function uH(e,t,r,a,n,i){let o=e[t++]^r[a++],s=e[t++]^r[a++],l=e[t++]^r[a++],c=e[t++]^r[a++],d=e[t++]^r[a++],p=e[t++]^r[a++],u=e[t++]^r[a++],m=e[t++]^r[a++],h=e[t++]^r[a++],g=e[t++]^r[a++],f=e[t++]^r[a++],b=e[t++]^r[a++],y=e[t++]^r[a++],k=e[t++]^r[a++],x=e[t++]^r[a++],w=e[t++]^r[a++],v=o,T=s,E=l,B=c,C=d,U=p,I=u,N=m,R=h,S=g,A=f,P=b,D=y,L=k,O=x,F=w;for(let e=0;e<8;e+=2)C^=uV(v+D|0,7),R^=uV(C+v|0,9),D^=uV(R+C|0,13),v^=uV(D+R|0,18),S^=uV(U+T|0,7),L^=uV(S+U|0,9),T^=uV(L+S|0,13),U^=uV(T+L|0,18),O^=uV(A+I|0,7),E^=uV(O+A|0,9),I^=uV(E+O|0,13),A^=uV(I+E|0,18),B^=uV(F+P|0,7),N^=uV(B+F|0,9),P^=uV(N+B|0,13),F^=uV(P+N|0,18),T^=uV(v+B|0,7),E^=uV(T+v|0,9),B^=uV(E+T|0,13),v^=uV(B+E|0,18),I^=uV(U+C|0,7),N^=uV(I+U|0,9),C^=uV(N+I|0,13),U^=uV(C+N|0,18),P^=uV(A+S|0,7),R^=uV(P+A|0,9),S^=uV(R+P|0,13),A^=uV(S+R|0,18),D^=uV(F+O|0,7),L^=uV(D+F|0,9),O^=uV(L+D|0,13),F^=uV(O+L|0,18);n[i++]=o+v|0,n[i++]=s+T|0,n[i++]=l+E|0,n[i++]=c+B|0,n[i++]=d+C|0,n[i++]=p+U|0,n[i++]=u+I|0,n[i++]=m+N|0,n[i++]=h+R|0,n[i++]=g+S|0,n[i++]=f+A|0,n[i++]=b+P|0,n[i++]=y+D|0,n[i++]=k+L|0,n[i++]=x+O|0,n[i++]=w+F|0}function uq(e,t,r,a,n){let i=a+0,o=a+16*n;for(let a=0;a<16;a++)r[o+a]=e[t+(2*n-1)*16+a];for(let a=0;a<n;a++,i+=16,t+=16)uH(r,o,e,t,r,i),a>0&&(o+=16),uH(r,i,e,t+=16,r,o)}function uG(e,t,r){let{N:a,r:n,p:i,dkLen:o,asyncTick:s,maxmem:l,onProgress:c}=pA({dkLen:32,asyncTick:10,maxmem:0x40000400},r);if(py(a),py(n),py(i),py(o),py(s),py(l),void 0!==c&&"function"!=typeof c)throw Error("progressCb should be function");let d=128*n,p=d/4;if(a<=1||(a&a-1)!=0||a>=2**(d/8)||a>0x100000000)throw Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(i<0||i>(0x100000000-1)*32/d)throw Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(o<0||o>(0x100000000-1)*32)throw Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");let u=d*(a+i);if(u>l)throw Error(`Scrypt: parameters too large, ${u} (128 * r * (N + p)) > ${l} (maxmem)`);let m=pF(pH,e,t,{c:1,dkLen:d*i}),h=pE(m),g=pE(new Uint8Array(d*a)),f=pE(new Uint8Array(d)),b=()=>{};if(c){let e=2*a*i,t=Math.max(Math.floor(e/1e4),1),r=0;b=()=>{r++,c&&(!(r%t)||r===e)&&c(r/e)}}return{N:a,r:n,p:i,dkLen:o,blockSize32:p,V:g,B32:h,B:m,tmp:f,blockMixCb:b,asyncTick:s}}function uK(e,t,r,a,n){let i=pF(pH,e,r,{c:1,dkLen:t});return r.fill(0),a.fill(0),n.fill(0),i}async function uJ(e,t,r){let{N:a,r:n,p:i,dkLen:o,blockSize32:s,V:l,B32:c,B:d,tmp:p,blockMixCb:u,asyncTick:m}=uG(e,t,r);for(let e=0;e<i;e++){let t=s*e;for(let e=0;e<s;e++)l[e]=c[t+e];let r=0;await pI(a-1,m,()=>{uq(l,r,l,r+=s,n),u()}),uq(l,(a-1)*s,c,t,n),u(),await pI(a,m,()=>{let e=c[t+s-16]%a;for(let r=0;r<s;r++)p[r]=c[t+r]^l[e*s+r];uq(p,0,c,t,n),u()})}return uK(e,o,d,l,p)}var uZ=!1,uQ=!1,uX=async function(e,t,r,a,n,i,o){return await uJ(e,t,{N:r,r:a,p:n,dkLen:i,onProgress:o})},uY=function(e,t,r,a,n,i){return function(e,t,r){let{N:a,r:n,p:i,dkLen:o,blockSize32:s,V:l,B32:c,B:d,tmp:p,blockMixCb:u}=uG(e,t,r);for(let e=0;e<i;e++){let t=s*e;for(let e=0;e<s;e++)l[e]=c[t+e];for(let e=0,t=0;e<a-1;e++)uq(l,t,l,t+=s,n),u();uq(l,(a-1)*s,c,t,n),u();for(let e=0;e<a;e++){let e=c[t+s-16]%a;for(let r=0;r<s;r++)p[r]=c[t+r]^l[e*s+r];uq(p,0,c,t,n),u()}}return uK(e,o,d,l,p)}(e,t,{N:r,r:a,p:n,dkLen:i})},u0=uX,u1=uY;async function u2(e,t,r,a,n,i,o){let s=dQ(e,"passwd"),l=dQ(t,"salt");return d2(await u0(s,l,r,a,n,i,o))}function u3(e,t,r,a,n,i){let o=dQ(e,"passwd"),s=dQ(t,"salt");return d2(u1(o,s,r,a,n,i))}u2._=uX,u2.lock=function(){uQ=!0},u2.register=function(e){if(uQ)throw Error("scrypt is locked");u0=e},Object.freeze(u2),u3._=uY,u3.lock=function(){uZ=!0},u3.register=function(e){if(uZ)throw Error("scryptSync is locked");u1=e},Object.freeze(u3);var u6=function(e){return(function(e){switch(e){case"sha256":return pH.create();case"sha512":return p1.create()}dq(!1,"invalid hashing algorithm name","algorithm",e)})("sha256").update(e).digest()},u8=u6,u7=!1;function u4(e){let t=dQ(e,"data");return d2(u8(t))}u4._=u6,u4.lock=function(){u7=!0},u4.register=function(e){if(u7)throw Error("sha256 is locked");u8=e},Object.freeze(u4),Object.freeze(u4);var u5={};(0,L.VA)(u5,{bitGet:()=>mb,bitLen:()=>mf,bitMask:()=>mk,bitSet:()=>my,bytesToHex:()=>ma,bytesToNumberBE:()=>ms,bytesToNumberLE:()=>ml,concatBytes:()=>mm,createHmacDrbg:()=>mv,ensureBytes:()=>mu,equalBytes:()=>mh,hexToBytes:()=>mo,hexToNumber:()=>mi,numberToBytesBE:()=>mc,numberToBytesLE:()=>md,numberToHexUnpadded:()=>mn,numberToVarBytesBE:()=>mp,utf8ToBytes:()=>mg,validateObject:()=>mE});var u9=BigInt(0),me=BigInt(1),mt=BigInt(2),mr=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ma(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=mr[e[r]];return t}function mn(e){let t=e.toString(16);return 1&t.length?`0${t}`:t}function mi(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function mo(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(t/2);for(let t=0;t<r.length;t++){let a=2*t,n=Number.parseInt(e.slice(a,a+2),16);if(Number.isNaN(n)||n<0)throw Error("Invalid byte sequence");r[t]=n}return r}function ms(e){return mi(ma(e))}function ml(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");return mi(ma(Uint8Array.from(e).reverse()))}function mc(e,t){return mo(e.toString(16).padStart(2*t,"0"))}function md(e,t){return mc(e,t).reverse()}
2051function mp(e){return mo(mn(e))}function mu(e,t,r){let a;if("string"==typeof t)try{a=mo(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(t instanceof Uint8Array)a=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let n=a.length;if("number"==typeof r&&n!==r)throw Error(`${e} expected ${r} bytes, got ${n}`);return a}function mm(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}function mh(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function mg(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function mf(e){let t;for(t=0;e>u9;e>>=me,t+=1);return t}function mb(e,t){return e>>BigInt(t)&me}var my=(e,t,r)=>e|(r?me:u9)<<BigInt(t),mk=e=>(mt<<BigInt(e-1))-me,mx=e=>new Uint8Array(e),mw=e=>Uint8Array.from(e);function mv(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let a=mx(e),n=mx(e),i=0,o=()=>{a.fill(1),n.fill(0),i=0},s=(...e)=>r(n,a,...e),l=(e=mx())=>{n=s(mw([0]),e),a=s(),0!==e.length&&(n=s(mw([1]),e),a=s())},c=()=>{if(i++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(a=s()).slice();r.push(t),e+=a.length}return mm(...r)};return(e,t)=>{let r;for(o(),l(e);!(r=t(c()));)l();return o(),r}}var mT={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function mE(e,t,r={}){let a=(t,r,a)=>{let n=mT[r];if("function"!=typeof n)throw Error(`Invalid validator "${r}", expected function`);let i=e[t];if((!a||void 0!==i)&&!n(i,e))throw Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${r}`)};for(let[e,r]of Object.entries(t))a(e,r,!1);for(let[e,t]of Object.entries(r))a(e,t,!0);return e}var mB=BigInt(0),mC=BigInt(1),mU=BigInt(2),mI=BigInt(3),mN=BigInt(4),mR=BigInt(5),mS=BigInt(8);function mA(e,t){let r=e%t;return r>=mB?r:t+r}function mP(e,t,r){let a=e;for(;t-- >mB;)a*=a,a%=r;return a}function mD(e,t){if(e===mB||t<=mB)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=mA(e,t),a=t,n=mB,i=mC;for(;r!==mB;){let e=a/r,t=a%r,o=n-i*e;a=r,r=t,n=i,i=o}if(a!==mC)throw Error("invert: does not exist");return mA(n,t)}BigInt(9),BigInt(16);var mL=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function mO(e,t){let r=void 0!==t?t:e.toString(2).length,a=Math.ceil(r/8);return{nBitLength:r,nByteLength:a}}function mF(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function m_(e){let t=mF(e);return t+Math.ceil(t/2)}var mM=BigInt(0),mj=BigInt(1);function m$(e){return mE(e.Fp,mL.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),mE(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...mO(e.n,e.nBitLength),...e,...{p:e.Fp.ORDER}})}var{bytesToNumberBE:mW,hexToBytes:mz}=u5,mV={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:t}=mV;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");let r=e[1],a=e.subarray(2,r+2);if(!r||a.length!==r)throw new t("Invalid signature integer: wrong length");if(128&a[0])throw new t("Invalid signature integer: negative");
2051if(0===a[0]&&!(128&a[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:mW(a),l:e.subarray(r+2)}},toSig(e){let{Err:t}=mV,r="string"==typeof e?mz(e):e;if(!(r instanceof Uint8Array))throw Error("ui8a expected");let a=r.length;if(a<2||48!=r[0])throw new t("Invalid signature tag");if(r[1]!==a-2)throw new t("Invalid signature: incorrect length");let{d:n,l:i}=mV._parseInt(r.subarray(2)),{d:o,l:s}=mV._parseInt(i);if(s.length)throw new t("Invalid signature: left bytes after parsing");return{r:n,s:o}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},a=t(r(e.s)),n=t(r(e.r)),i=a.length/2,o=n.length/2,s=r(i),l=r(o);return`30${r(o+i+4)}02${l}${n}02${s}${a}`}},mH=BigInt(0),mq=BigInt(1);BigInt(2);var mG=BigInt(3);BigInt(4);var mK=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),mJ=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),mZ=BigInt(1),mQ=BigInt(2),mX=(e,t)=>(e+t/mQ)/t,mY=function(e,t,r=!1,a={}){if(e<=mB)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:n,nByteLength:i}=mO(e,t);if(i>2048)throw Error("Field lengths over 2048 bytes are not supported");let o=function(e){if(e%mN===mI){let t=(e+mC)/mN;return function(e,r){let a=e.pow(r,t);if(!e.eql(e.sqr(a),r))throw Error("Cannot find square root");return a}}if(e%mS===mR){let t=(e-mR)/mS;return function(e,r){let a=e.mul(r,mU),n=e.pow(a,t),i=e.mul(r,n),o=e.mul(e.mul(i,mU),n),s=e.mul(i,e.sub(o,e.ONE));if(!e.eql(e.sqr(s),r))throw Error("Cannot find square root");return s}}return function(e){let t,r,a,n=(e-mC)/mU;for(t=e-mC,r=0;t%mU===mB;t/=mU,r++);for(a=mU;a<e&&function(e,t,r){if(r<=mB||t<mB)throw Error("Expected power/modulo > 0");if(r===mC)return mB;let a=mC;for(;t>mB;)t&mC&&(a=a*e%r),e=e*e%r,t>>=mC;return a}(a,n,e)!==e-mC;a++);if(1===r){let t=(e+mC)/mN;return function(e,r){let a=e.pow(r,t);if(!e.eql(e.sqr(a),r))throw Error("Cannot find square root");return a}}let i=(t+mC)/mU;return function(e,o){if(e.pow(o,n)===e.neg(e.ONE))throw Error("Cannot find square root");let s=r,l=e.pow(e.mul(e.ONE,a),t),c=e.pow(o,i),d=e.pow(o,t);for(;!e.eql(d,e.ONE);){if(e.eql(d,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(d);t<s&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(l,mC<<BigInt(s-t-1));l=e.sqr(r),c=e.mul(c,r),d=e.mul(d,l),s=t}return c}}(e)}(e),s=Object.freeze({ORDER:e,BITS:n,BYTES:i,MASK:mk(n),ZERO:mB,ONE:mC,create:t=>mA(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return mB<=t&&t<e},is0:e=>e===mB,isOdd:e=>(e&mC)===mC,neg:t=>mA(-t,e),eql:(e,t)=>e===t,sqr:t=>mA(t*t,e),add:(t,r)=>mA(t+r,e),sub:(t,r)=>mA(t-r,e),mul:(t,r)=>mA(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<mB)throw Error("Expected power > 0");if(r===mB)return e.ONE;if(r===mC)return t;let a=e.ONE,n=t;for(;r>mB;)r&mC&&(a=e.mul(a,n)),n=e.sqr(n),r>>=mC;return a})(s,e,t),div:(t,r)=>mA(t*mD(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>mD(t,e),sqrt:a.sqrt||(e=>o(s,e)),invertBatch:e=>(function(e,t){let r=Array(t.length),a=t.reduce((t,a,n)=>e.is0(a)?t:(r[n]=t,e.mul(t,a)),e.ONE),n=e.inv(a);return t.reduceRight((t,a,n)=>e.is0(a)?t:(r[n]=e.mul(t,r[n]),e.mul(t,a)),n),r})(s,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?md(e,i):mc(e,i),fromBytes:e=>{if(e.length!==i)throw Error(`Fp.fromBytes: expected ${i}, got ${e.length}`);return r?ml(e):ms(e)}});return Object.freeze(s)}(mK,void 0,void 0,{sqrt:function(e){let t=BigInt(3),r=BigInt(6),a=BigInt(11),n=BigInt(22),i=BigInt(23),o=BigInt(44),s=BigInt(88),l=e*e*e%mK,c=l*l*e%mK,d=mP(c,t,mK)*c%mK,p=mP(d,t,mK)*c%mK,u=mP(p,mQ,mK)*l%mK,m=mP(u,a,mK)*u%mK,h=mP(m,n,mK)*m%mK,g=mP(h,o,mK)*h%mK,f=mP(g,s,mK)*g%mK,b=mP(f,o,mK)*h%mK,y=mP(b,t,mK)*c%mK,k=mP(y,i,mK)*m%mK,x=mP(k,r,mK)*l%mK,w=mP(x,mQ,mK);if(!mY.eql(mY.sqr(w),e))throw Error("Cannot find square root");return w}}),m0=function(e,t){let r=t=>(function(e){let t=function(e){let t=m$(e);return mE(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:r,n:a}=t,n=r.BYTES+1,i=2*r.BYTES+1;function o(e){return mA(e,a)}let{ProjectivePoint:s,normPrivateKeyToScalar:l,weierstrassEquation:c,isWithinCurveOrder:d}=function(e){let t=function(e){let t=m$(e);mE(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:a,a:n}=t;if(r){if(!a.eql(n,a.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,a=t.toBytes||((e,t,a)=>{let n=t.toAffine();return mm(Uint8Array.from([4]),r.toBytes(n.x),r.toBytes(n.y))}),n=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function i(e){let{a,b:n}=t,i=r.sqr(e),o=r.mul(i,e);return r.add(r.add(o,r.mul(e,a)),n)}if(!r.eql(r.sqr(t.Gy),i(t.Gx)))throw Error("bad generator point: equation left != right");function o(e){return"bigint"==typeof e&&mH<e&&e<t.n}function s(e){if(!o(e))throw Error("Expected valid bigint: 0 < bigint < curve.n")}function l(e){let r,{allowedPrivateKeyLengths:a,nByteLength:n,wrapPrivateKey:i,n:o}=t;if(a&&"bigint"!=typeof e){if(e instanceof Uint8Array&&(e=ma(e)),"string"!=typeof e||!a.includes(e.length))throw Error("Invalid key");e=e.padStart(2*n,"0")}try{r="bigint"==typeof e?e:ms(mu("private key",e,n))}catch(t){throw Error(`private key must be ${n} bytes, hex or bigint, not ${typeof e}`)}return i&&(r=mA(r,o)),s(r),r}let c=new Map;function d(e){if(!(e instanceof p))throw Error("ProjectivePoint expected")}class p{constructor(e,t,a){if(this.px=e,this.py=t,this.pz=a,null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t))throw Error("y required");if(null==a||!r.isValid(a))throw Error("z required")}static fromAffine(e){let{x:t,y:a}=e||{};if(!e||!r.isValid(t)||!r.isValid(a))throw Error("invalid affine point");if(e instanceof p)throw Error("projective point not allowed");let n=e=>r.eql(e,r.ZERO);return n(t)&&n(a)?p.ZERO:new p(t,a,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(p.fromAffine)}static fromHex(e){let t=p.fromAffine(n(mu("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return p.BASE.multiply(l(e))}_setWindowSize(e){this._WINDOW_SIZE=e,c.delete(this)}
2051assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error("bad point: ZERO")}let{x:e,y:a}=this.toAffine();if(!r.isValid(e)||!r.isValid(a))throw Error("bad point: x or y not FE");let n=r.sqr(a),o=i(e);if(!r.eql(n,o))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){d(e);let{px:t,py:a,pz:n}=this,{px:i,py:o,pz:s}=e,l=r.eql(r.mul(t,s),r.mul(i,n)),c=r.eql(r.mul(a,s),r.mul(o,n));return l&&c}negate(){return new p(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:a}=t,n=r.mul(a,mG),{px:i,py:o,pz:s}=this,l=r.ZERO,c=r.ZERO,d=r.ZERO,u=r.mul(i,i),m=r.mul(o,o),h=r.mul(s,s),g=r.mul(i,o);return g=r.add(g,g),d=r.mul(i,s),d=r.add(d,d),l=r.mul(e,d),c=r.mul(n,h),c=r.add(l,c),l=r.sub(m,c),c=r.add(m,c),c=r.mul(l,c),l=r.mul(g,l),d=r.mul(n,d),h=r.mul(e,h),g=r.sub(u,h),g=r.mul(e,g),g=r.add(g,d),d=r.add(u,u),u=r.add(d,u),u=r.add(u,h),u=r.mul(u,g),c=r.add(c,u),h=r.mul(o,s),h=r.add(h,h),u=r.mul(h,g),l=r.sub(l,u),d=r.mul(h,m),d=r.add(d,d),new p(l,c,d=r.add(d,d))}add(e){d(e);let{px:a,py:n,pz:i}=this,{px:o,py:s,pz:l}=e,c=r.ZERO,u=r.ZERO,m=r.ZERO,h=t.a,g=r.mul(t.b,mG),f=r.mul(a,o),b=r.mul(n,s),y=r.mul(i,l),k=r.add(a,n),x=r.add(o,s);k=r.mul(k,x),x=r.add(f,b),k=r.sub(k,x),x=r.add(a,i);let w=r.add(o,l);return x=r.mul(x,w),w=r.add(f,y),x=r.sub(x,w),w=r.add(n,i),c=r.add(s,l),w=r.mul(w,c),c=r.add(b,y),w=r.sub(w,c),m=r.mul(h,x),c=r.mul(g,y),m=r.add(c,m),c=r.sub(b,m),m=r.add(b,m),u=r.mul(c,m),b=r.add(f,f),b=r.add(b,f),y=r.mul(h,y),x=r.mul(g,x),b=r.add(b,y),y=r.sub(f,y),y=r.mul(h,y),x=r.add(x,y),f=r.mul(b,x),u=r.add(u,f),f=r.mul(w,x),c=r.mul(k,c),c=r.sub(c,f),f=r.mul(k,b),m=r.mul(w,m),new p(c,u,m=r.add(m,f))}subtract(e){return this.add(e.negate())}is0(){return this.equals(p.ZERO)}wNAF(e){return m.wNAFCached(this,c,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(p.fromAffine)})}multiplyUnsafe(e){let a=p.ZERO;if(e===mH)return a;if(s(e),e===mq)return this;let{endo:n}=t;if(!n)return m.unsafeLadder(this,e);let{k1neg:i,k1:o,k2neg:l,k2:c}=n.splitScalar(e),d=a,u=a,h=this;for(;o>mH||c>mH;)o&mq&&(d=d.add(h)),c&mq&&(u=u.add(h)),h=h.double(),o>>=mq,c>>=mq;return i&&(d=d.negate()),l&&(u=u.negate()),u=new p(r.mul(u.px,n.beta),u.py,u.pz),d.add(u)}multiply(e){let a,n;s(e);let{endo:i}=t;if(i){let{k1neg:t,k1:o,k2neg:s,k2:l}=i.splitScalar(e),{p:c,f:d}=this.wNAF(o),{p:u,f:h}=this.wNAF(l);c=m.constTimeNegate(t,c),u=m.constTimeNegate(s,u),u=new p(r.mul(u.px,i.beta),u.py,u.pz),a=c.add(u),n=d.add(h)}else{let{p:t,f:r}=this.wNAF(e);a=t,n=r}return p.normalizeZ([a,n])[0]}multiplyAndAddUnsafe(e,t,r){let a=p.BASE,n=(e,t)=>t!==mH&&t!==mq&&e.equals(a)?e.multiply(t):e.multiplyUnsafe(t),i=n(this,t).add(n(e,r));return i.is0()?void 0:i}toAffine(e){let{px:t,py:a,pz:n}=this,i=this.is0();null==e&&(e=i?r.ONE:r.inv(n));let o=r.mul(t,e),s=r.mul(a,e),l=r.mul(n,e);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(l,r.ONE))throw Error("invZ was invalid");return{x:o,y:s}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===mq)return!0;if(r)return r(p,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===mq?this:r?r(p,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),a(p,this,e)}toHex(e=!0){return ma(this.toRawBytes(e))}}p.BASE=new p(t.Gx,t.Gy,r.ONE),p.ZERO=new p(r.ZERO,r.ONE,r.ZERO);let u=t.nBitLength,m=function(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},a=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let a=e.ZERO,n=t;for(;r>mM;)r&mj&&(a=a.add(n)),n=n.double(),r>>=mj;return a},precomputeWindow(e,t){let{windows:r,windowSize:n}=a(t),i=[],o=e,s=o;for(let e=0;e<r;e++){s=o,i.push(s);for(let e=1;e<n;e++)s=s.add(o),i.push(s);o=s.double()}return i},wNAF(t,n,i){let{windows:o,windowSize:s}=a(t),l=e.ZERO,c=e.BASE,d=BigInt(2**t-1),p=2**t,u=BigInt(t);for(let e=0;e<o;e++){let t=e*s,a=Number(i&d);i>>=u,a>s&&(a-=p,i+=mj);let o=t+Math.abs(a)-1,m=e%2!=0,h=a<0;0===a?c=c.add(r(m,n[t])):l=l.add(r(h,n[o]))}return{p:l,f:c}},wNAFCached(e,t,r,a){let n=e._WINDOW_SIZE||1,i=t.get(e);
2051return i||(i=this.precomputeWindow(e,n),1!==n&&t.set(e,a(i))),this.wNAF(n,i,r)}}}(p,t.endo?Math.ceil(u/2):u);return{CURVE:t,ProjectivePoint:p,normPrivateKeyToScalar:l,weierstrassEquation:i,isWithinCurveOrder:o}}({...t,toBytes(e,t,a){let n=t.toAffine(),i=r.toBytes(n.x),o=mm;return a?o(Uint8Array.from([t.hasEvenY()?2:3]),i):o(Uint8Array.from([4]),i,r.toBytes(n.y))},fromBytes(e){let t=e.length,a=e[0],o=e.subarray(1);if(t===n&&(2===a||3===a)){let e=ms(o);if(!(mH<e&&e<r.ORDER))throw Error("Point is not on curve");let t=c(e),n=r.sqrt(t);return(1&a)==1!=((n&mq)===mq)&&(n=r.neg(n)),{x:e,y:n}}if(t===i&&4===a)return{x:r.fromBytes(o.subarray(0,r.BYTES)),y:r.fromBytes(o.subarray(r.BYTES,2*r.BYTES))};throw Error(`Point of length ${t} was invalid. Expected ${n} compressed bytes or ${i} uncompressed bytes`)}}),p=e=>ma(mc(e,t.nByteLength)),u=(e,t,r)=>ms(e.slice(t,r));class m{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return new m(u(e=mu("compactSignature",e,2*r),0,r),u(e,r,2*r))}static fromDER(e){let{r:t,s:r}
2051=mV.toSig(mu("DER",e));return new m(t,r)}assertValidity(){if(!d(this.r))throw Error("r must be 0 < r < CURVE.n");if(!d(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new m(this.r,this.s,e)}recoverPublicKey(e){let{r:n,s:i,recovery:l}=this,c=f(mu("msgHash",e));if(null==l||![0,1,2,3].includes(l))throw Error("recovery id invalid");let d=2===l||3===l?n+t.n:n;if(d>=r.ORDER)throw Error("recovery id 2 or 3 invalid");let u=(1&l)==0?"02":"03",m=s.fromHex(u+p(d)),h=mD(d,a),g=o(-c*h),b=o(i*h),y=s.BASE.multiplyAndAddUnsafe(m,g,b);if(!y)throw Error("point at infinify");return y.assertValidity(),y}hasHighS(){return this.s>a>>mq}normalizeS(){return this.hasHighS()?new m(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return mo(this.toDERHex())}toDERHex(){return mV.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return mo(this.toCompactHex())}toCompactHex(){return p(this.r)+p(this.s)}}function h(e){let t=e instanceof Uint8Array,r="string"==typeof e,a=(t||r)&&e.length;return t?a===n||a===i:r?a===2*n||a===2*i:e instanceof s}let g=t.bits2int||function(e){let r=ms(e),a=8*e.length-t.nBitLength;return a>0?r>>BigInt(a):r},f=t.bits2int_modN||function(e){return o(g(e))},b=mk(t.nBitLength);function y(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(mH<=e&&e<b))throw Error(`bigint expected < 2^${t.nBitLength}`);return mc(e,t.nByteLength)}let k={lowS:t.lowS,prehash:!1},x={lowS:t.lowS,prehash:!1};return s.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return s.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(h(e))throw Error("first arg must be private key");if(!h(t))throw Error("second arg must be public key");return s.fromHex(t).multiply(l(e)).toRawBytes(r)},sign:function(e,n,i=k){let{seed:c,k2sig:p}=function(e,n,i=k){if(["recovered","canonical"].some(e=>e in i))throw Error("sign() legacy options not supported");let{hash:c,randomBytes:p}=t,{lowS:u,prehash:h,extraEntropy:b}=i;null==u&&(u=!0),e=mu("msgHash",e),h&&(e=mu("prehashed msgHash",c(e)));let x=f(e),w=l(n),v=[y(w),y(x)];if(null!=b){let e=!0===b?p(r.BYTES):b;v.push(mu("extraEntropy",e))}return{seed:mm(...v),k2sig:function(e){var t;let r=g(e);if(!d(r))return;let n=mD(r,a),i=s.BASE.multiply(r).toAffine(),l=o(i.x);if(l===mH)return;let c=o(n*o(x+l*w));if(c===mH)return;let p=2*(i.x!==l)|Number(i.y&mq),h=c;return u&&c>a>>mq&&(h=(t=c)>a>>mq?o(-t):t,p^=1),new m(l,h,p)}}}(e,n,i);return mv(t.hash.outputLen,t.nByteLength,t.hmac)(c,p)},verify:function(e,r,n,i=x){let l,c;if(r=mu("msgHash",r),n=mu("publicKey",n),"strict"in i)throw Error("options.strict was renamed to lowS");let{lowS:d,prehash:p}=i;try{if("string"==typeof e||e instanceof Uint8Array)try{c=m.fromDER(e)}catch(t){if(!(t instanceof mV.Err))throw t;c=m.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:r}=e;c=new m(t,r)}else throw Error("PARSE");l=s.fromHex(n)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(d&&c.hasHighS())return!1;p&&(r=t.hash(r));let{r:u,s:h}=c,g=f(r),b=mD(h,a),y=o(g*b),k=o(u*b),w=s.BASE.multiplyAndAddUnsafe(l,y,k)?.toAffine();return!!w&&o(w.x)===u},ProjectivePoint:s,Signature:m,utils:{isValidPrivateKey(e){try{return l(e),!0}catch(e){return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{let e=m_(t.n);return function(e,t,r=!1){let a=e.length,n=mF(t),i=m_(t);if(a<16||a<i||a>1024)throw Error(`expected ${i}-1024 bytes of input, got ${a}`);let o=mA(r?ms(e):ml(e),t-mC)+mC;return r?md(o,n):mc(o,n)}(t.randomBytes(e),t.n)},precompute:(e=8,t=s.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,hash:t,hmac:(e,...r)=>pO(t,e,function(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}(...r)),randomBytes:pD});return Object.freeze({...r(t),create:r})}({a:BigInt(0),b:BigInt(7),Fp:mY,n:mJ,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-mZ*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),n=BigInt("0x100000000000000000000000000000000"),i=mX(t*e,mJ),o=mX(-r*e,mJ),s=mA(e-i*t-o*a,mJ),l=mA(-i*r-o*t,mJ),c=s>n,d=l>n;if(c&&(s=mJ-s),d&&(l=mJ-l),s>n||l>n)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:c,k1:s,k2neg:d,k2:l}}}},pH);BigInt(0),m0.ProjectivePoint;var m1="0x0000000000000000000000000000000000000000",m2="0x0000000000000000000000000000000000000000000000000000000000000000",m3=BigInt(0),m6=BigInt(1),m8=BigInt(2),m7=BigInt(27),m4=BigInt(28),m5=BigInt(35),m9=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),he=m9/m8,ht=Symbol.for("nodejs.util.inspect.custom"),hr={};function ha(e){return d7(pi(e),32)}var hn=class e{#e;#t;#r;#a;get r(){return this.#e}set r(e){dq(32===d6(e),"invalid r","value",e),this.#e=d2(e)}get s(){return dq(8>
2051parseInt(this.#t.substring(0,3)),"non-canonical s; use ._s","s",this.#t),this.#t}set s(e){dq(32===d6(e),"invalid s","value",e),this.#t=d2(e)}get _s(){return this.#t}isValid(){return BigInt(this.#t)<=he}get v(){return this.#r}set v(e){let t=pa(e,"value");dq(27===t||28===t,"invalid v","v",e),this.#r=t}get networkV(){return this.#a}get legacyChainId(){let t=this.networkV;return null==t?null:e.getChainId(t)}get yParity(){return+(27!==this.v)}get yParityAndS(){let e=dQ(this.s);return this.yParity&&(e[0]|=128),d2(e)}get compactSerialized(){return d3([this.r,this.yParityAndS])}get serialized(){return d3([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,r,a){dJ(e,hr,"Signature"),this.#e=t,this.#t=r,this.#r=a,this.#a=null}getCanonical(){if(this.isValid())return this;let t=m9-BigInt(this._s),r=55-this.v,a=new e(hr,this.r,ha(t),r);return this.networkV&&(a.#a=this.networkV),a}clone(){let t=new e(hr,this.r,this._s,this.v);return this.networkV&&(t.#a=this.networkV),t}toJSON(){let e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this._s,v:this.v}}[ht](){return this.toString()}toString(){return this.isValid()?`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v} }`:`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v}, valid: false }`}static getChainId(e){let t=d9(e,"v");return t==m7||t==m4?m3:(dq(t>=m5,"invalid EIP-155 v","v",e),(t-m5)/m8)}static getChainIdV(e,t){return d9(e)*m8+BigInt(35+t-27)}static getNormalizedV(e){let t=d9(e);return t===m3||t===m7?27:t===m6||t===m4?28:(dq(t>=m5,"invalid v","v",e),t&m6?27:28)}static from(t){function r(e,r){dq(e,r,"signature",t)}if(null==t)return new e(hr,m2,m2,27);if("string"==typeof t){let a=dQ(t,"signature");if(64===a.length){let t=d2(a.slice(0,32)),r=a.slice(32,64),n=128&r[0]?28:27;return r[0]&=127,new e(hr,t,d2(r),n)}if(65===a.length){let t=d2(a.slice(0,32)),r=d2(a.slice(32,64)),n=e.getNormalizedV(a[64]);return new e(hr,t,r,n)}r(!1,"invalid raw signature length")}if(t instanceof e)return t.clone();let a=t.r;r(null!=a,"missing r");let n=ha(a),i=function(e,t){if(null!=e)return ha(e);if(null!=t){r(dY(t,32),"invalid yParityAndS");let e=dQ(t);return e[0]&=127,d2(e)}r(!1,"missing s")}(t.s,t.yParityAndS),{networkV:o,v:s}=function(t,a,n){if(null!=t){let r=d9(t);return{networkV:r>=m5?r:void 0,v:e.getNormalizedV(r)}}if(null!=a)return r(dY(a,32),"invalid yParityAndS"),{v:128&dQ(a)[0]?28:27};if(null!=n){switch(pa(n,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}r(!1,"invalid yParity")}r(!1,"missing v")}(t.v,t.yParityAndS,t.yParity),l=new e(hr,n,i,s);return o&&(l.#a=o),r(null==t.yParity||pa(t.yParity,"sig.yParity")===l.yParity,"yParity mismatch"),r(null==t.yParityAndS||t.yParityAndS===l.yParityAndS,"yParityAndS mismatch"),l}},hi=class e{#n;constructor(e){dq(32===d6(e),"invalid private key","privateKey","[REDACTED]"),this.#n=d2(e)}get privateKey(){return this.#n}get publicKey(){return e.computePublicKey(this.#n)}get compressedPublicKey(){return e.computePublicKey(this.#n,!0)}sign(e){dq(32===d6(e),"invalid digest length","digest",e);let t=m0.sign(dX(e),dX(this.#n),{lowS:!0});return hn.from({r:pn(t.r,32),s:pn(t.s,32),v:t.recovery?28:27})}computeSharedSecret(t){let r=e.computePublicKey(t);return d2(m0.getSharedSecret(dX(this.#n),dQ(r),!1))}static computePublicKey(e,t){let r=dQ(e,"key");if(32===r.length)return d2(m0.getPublicKey(r,!!t));if(64===r.length){let e=new Uint8Array(65);e[0]=4,e.set(r,1),r=e}return d2(m0.ProjectivePoint.fromHex(r).toRawBytes(t))}static recoverPublicKey(e,t){dq(32===d6(e),"invalid digest length","digest",e);let r=hn.from(t),a=m0.Signature.fromCompact(dX(d3([r.r,r.s]))),n=(a=a.addRecoveryBit(r.yParity)).recoverPublicKey(dX(e));return dq(null!=n,"invalid signature for digest","signature",t),"0x"+n.toHex(!1)}static addPoints(t,r,a){let n=m0.ProjectivePoint.fromHex(e.computePublicKey(t).substring(2)),i=m0.ProjectivePoint.fromHex(e.computePublicKey(r).substring(2));return"0x"+n.add(i).toHex(!!a)}},ho=BigInt(0),hs=BigInt(36);function hl(e){let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let a=dQ(uf(r));for(let e=0;e<40;e+=2)a[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&a[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}var hc={};for(let e=0;e<10;e++)hc[String(e)]=String(e);for(let e=0;e<26;e++)hc[String.fromCharCode(65+e)]=String(10+e);var hd=function(){let e={};for(let t=0;t<36;t++)e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t);return e}();
2051function hp(e){if(dq("string"==typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);let t=hl(e);return dq(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){dq(e.substring(2,4)===function(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>hc[e]).join("");for(;t.length>=15;){let e=t.substring(0,15);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}(e),"bad icap checksum","address",e);let t=(function(e){e=e.toLowerCase();let t=ho;for(let r=0;r<e.length;r++)t=t*hs+hd[e[r]];return t})(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return hl("0x"+t)}dq(!1,"invalid address","address",e)}async function hu(e,t){let r=await t;return(null==r||"0x0000000000000000000000000000000000000000"===r)&&(dH("string"!=typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),dq(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),hp(r)}function hm(e,t){return"string"==typeof e?e.match(/^0x[0-9a-f]{40}$/i)?hp(e):(dH(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),hu(e,t.resolveName(e))):e&&"function"==typeof e.getAddress?hu(e,e.getAddress()):e&&"function"==typeof e.then?hu(e,e):void dq(!1,"unsupported addressable value","target",e)}function hh(e,t){return{address:hp(e),storageKeys:t.map((e,t)=>(dq(dY(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase()))}}function hg(e){if(Array.isArray(e))return e.map((t,r)=>Array.isArray(t)?(dq(2===t.length,"invalid slot set",`value[${r}]`,t),hh(t[0],t[1])):(dq(null!=t&&"object"==typeof t,"invalid address-slot set","value",e),hh(t.address,t.storageKeys)));dq(null!=e&&"object"==typeof e,"invalid access list","value",e);let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return hh(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}function hf(e){return hp(uf("0x"+("string"==typeof e?hi.computePublicKey(e,!1):e.publicKey).substring(4)).substring(26))}var hb=BigInt(0),hy=BigInt(2),hk=BigInt(27),hx=BigInt(28),hw=BigInt(35),hv=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),hT=Symbol.for("nodejs.util.inspect.custom");function hE(e,t){let r=e.toString(16);for(;r.length<2;)r="0"+r;return"0x"+(r+=u4(t).substring(4))}function hB(e){return"0x"===e?null:hp(e)}function hC(e,t){try{return hg(e)}catch(r){dq(!1,r.message,t,e)}}function hU(e,t){return"0x"===e?0:pa(e,t)}function hI(e,t){if("0x"===e)return hb;let r=d9(e,t);return dq(r<=hv,"value exceeds uint size",t,r),r}function hN(e,t){let r=d9(e,"value"),a=pi(r);return dq(a.length<=32,"value too large",`tx.${t}`,r),a}function hR(e){return hg(e).map(e=>[e.address,e.storageKeys])}function hS(e,t){let r;try{if(r=hU(t[0],"yParity"),0!==r&&1!==r)throw Error("bad yParity")}catch(e){dq(!1,"invalid yParity","yParity",t[0])}let a=d7(t[1],32),n=d7(t[2],32);e.signature=hn.from({r:a,s:n,yParity:r})}var hA=class e{#i;#o;#s;#l;#c;#d;#p;#u;#m;#h;#g;#f;#b;#y;#k;#x;#w;#v;get type(){return this.#i}set type(e){switch(e){case null:this.#i=null;break;case 0:case"legacy":this.#i=0;break;case 1:case"berlin":case"eip-2930":this.#i=1;break;case 2:case"london":case"eip-1559":this.#i=2;break;case 3:case"cancun":case"eip-4844":this.#i=3;break;case 4:case"pectra":case"eip-7702":this.#i=4;break;default:dq(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844";case 4:return"eip-7702"}return null}get to(){let e=this.#o;return null==e&&3===this.type?m1:e}set to(e){this.#o=null==e?null:hp(e)}get nonce(){return this.#l}set nonce(e){this.#l=pa(e,"value")}get gasLimit(){return this.#c}set gasLimit(e){this.#c=d9(e)}get gasPrice(){let e=this.#d;return null==e&&(0===this.type||1===this.type)?hb:e}set gasPrice(e){this.#d=null==e?null:d9(e,"gasPrice")}get maxPriorityFeePerGas(){let e=this.#p;return null==e?2===this.type||3===this.type?hb:null:e}set maxPriorityFeePerGas(e){this.#p=null==e?null:d9(e,"maxPriorityFeePerGas")}get maxFeePerGas(){let e=this.#u;return null==e?2===this.type||3===this.type?hb:null:e}set maxFeePerGas(e){this.#u=null==e?null:d9(e,"maxFeePerGas")}get data(){return this.#s}set data(e){this.#s=d2(e)}get value(){return this.#m}set value(e){this.#m=d9(e,"value")}get chainId(){return this.#h}set chainId(e){this.#h=d9(e)}get signature(){return this.#g||null}set signature(e){this.#g=null==e?null:hn.from(e)}isValid(){let e=this.signature;if(e&&!e.isValid())return!1;let t=this.authorizationList;if(t){for(let e of t)if(!e.signature.isValid())return!1}return!0}get accessList(){let e=this.#f||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){this.#f=null==e?null:hg(e)}get authorizationList(){let e=this.#w||null;return null==e&&4===this.type?[]:e}set authorizationList(e){this.#w=null==e?null:e.map(e=>
2051({address:hp(e.address),nonce:d9(null!=e.nonce?e.nonce:0),chainId:d9(null!=e.chainId?e.chainId:0),signature:hn.from(e.signature)}))}get maxFeePerBlobGas(){let e=this.#b;return null==e&&3===this.type?hb:e}set maxFeePerBlobGas(e){this.#b=null==e?null:d9(e,"maxFeePerBlobGas")}get blobVersionedHashes(){let e=this.#y;return null==e&&3===this.type?[]:e}set blobVersionedHashes(e){if(null!=e){dq(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;t<e.length;t++)dq(dY(e[t],32),"invalid blobVersionedHash",`value[${t}]`,e[t])}this.#y=e}get blobs(){return null==this.#x?null:this.#x.map(e=>Object.assign({},e))}set blobs(e){if(null==e){this.#x=null;return}let t=[],r=[];for(let a=0;a<e.length;a++){let n=e[a];if(d0(n)){dH(this.#k,"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let e=dQ(n);if(dq(e.length<=131072,"blob is too large",`blobs[${a}]`,n),131072!==e.length){let t=new Uint8Array(131072);t.set(e),e=t}let i=this.#k.blobToKzgCommitment(e),o=d2(this.#k.computeBlobKzgProof(e,i));t.push({data:d2(e),commitment:d2(i),proof:o}),r.push(hE(1,i))}else{let e=d2(n.data),a=d2(n.commitment),i=d2(n.proof);t.push({data:e,commitment:a,proof:i}),r.push(hE(1,a))}}this.#x=t,this.#y=r}get kzg(){return this.#k}set kzg(e){if(null==e)this.#k=null;else this.#k={blobToKzgCommitment:t=>{if("computeBlobProof"in e){if("blobToKzgCommitment"in e&&"function"==typeof e.blobToKzgCommitment)return dQ(e.blobToKzgCommitment(d2(t)))}else if("blobToKzgCommitment"in e&&"function"==typeof e.blobToKzgCommitment)return dQ(e.blobToKzgCommitment(t));if("blobToKZGCommitment"in e&&"function"==typeof e.blobToKZGCommitment)return dQ(e.blobToKZGCommitment(d2(t)));dq(!1,"unsupported KZG library","kzg",e)},computeBlobKzgProof:(t,r)=>"computeBlobProof"in e&&"function"==typeof e.computeBlobProof?dQ(e.computeBlobProof(d2(t),d2(r))):"computeBlobKzgProof"in e&&"function"==typeof e.computeBlobKzgProof?e.computeBlobKzgProof(t,r):"computeBlobKZGProof"in e&&"function"==typeof e.computeBlobKZGProof?dQ(e.computeBlobKZGProof(d2(t),d2(r))):void dq(!1,"unsupported KZG library","kzg",e)}}get blobWrapperVersion(){return this.#v}set blobWrapperVersion(e){this.#v=e}constructor(){this.#i=null,this.#o=null,this.#l=0,this.#c=hb,this.#d=null,this.#p=null,this.#u=null,this.#s="0x",this.#m=hb,this.#h=hb,this.#g=null,this.#f=null,this.#b=null,this.#y=null,this.#k=null,this.#x=null,this.#w=null,this.#v=null}get hash(){return null==this.signature?null:uf(this.#T(!0,!1))}get unsignedHash(){return uf(this.unsignedSerialized)}get from(){var e,t;return null==this.signature?null:(e=this.unsignedHash,t=this.signature.getCanonical(),hf(hi.recoverPublicKey(e,t)))}get fromPublicKey(){return null==this.signature?null:hi.recoverPublicKey(this.unsignedHash,this.signature.getCanonical())}isSigned(){return null!=this.signature}#T(e,t){dH(!e||null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});let r=e?this.signature:null;switch(this.inferType()){case 0:return function(e,t){let r=[hN(e.nonce,"nonce"),hN(e.gasPrice||0,"gasPrice"),hN(e.gasLimit,"gasLimit"),e.to||"0x",hN(e.value,"value"),e.data],a=hb;if(e.chainId!=hb)a=d9(e.chainId,"tx.chainId"),dq(!t||null==t.networkV||t.legacyChainId===a,"tx.chainId/sig.v mismatch","sig",t);else if(e.signature){let t=e.signature.legacyChainId;null!=t&&(a=t)}if(!t)return a!==hb&&(r.push(pi(a)),r.push("0x"),r.push("0x")),pb(r);let n=BigInt(27+t.yParity);return a!==hb?n=hn.getChainIdV(a,t.v):BigInt(t.v)!==n&&dq(!1,"tx.chainId/sig.v mismatch","sig",t),r.push(pi(n)),r.push(pi(t.r)),r.push(pi(t._s)),pb(r)}(this,r);case 1:let a=[hN(this.chainId,"chainId"),hN(this.nonce,"nonce"),hN(this.gasPrice||0,"gasPrice"),hN(this.gasLimit,"gasLimit"),this.to||"0x",hN(this.value,"value"),this.data,hR(this.accessList||[])];return r&&(a.push(hN(r.yParity,"recoveryParam")),a.push(pi(r.r)),a.push(pi(r.s))),d3(["0x01",pb(a)]);case 2:let n=[hN(this.chainId,"chainId"),hN(this.nonce,"nonce"),hN(this.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),hN(this.maxFeePerGas||0,"maxFeePerGas"),hN(this.gasLimit,"gasLimit"),this.to||"0x",hN(this.value,"value"),this.data,hR(this.accessList||[])];return r&&(n.push(hN(r.yParity,"yParity")),n.push(pi(r.r)),n.push(pi(r.s))),d3(["0x02",pb(n)]);case 3:return function(e,t,r){let a=[hN(e.chainId,"chainId"),hN(e.nonce,"nonce"),hN(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),hN(e.maxFeePerGas||0,"maxFeePerGas"),hN(e.gasLim
2051it,"gasLimit"),e.to||m1,hN(e.value,"value"),e.data,hR(e.accessList||[]),hN(e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),function(e,t){dq(Array.isArray(e),`invalid ${t}`,"value",e);for(let t=0;t<e.length;t++)dq(dY(e[t],32),"invalid ${ param } hash",`value[${t}]`,e[t]);return e}(e.blobVersionedHashes||[],"blobVersionedHashes")];if(t&&(a.push(hN(t.yParity,"yParity")),a.push(pi(t.r)),a.push(pi(t.s)),r)){if(null!=e.blobWrapperVersion){let t=pi(e.blobWrapperVersion),n=[];for(let{proof:e}of r){let t=dQ(e),r=t.length/128;for(let e=0;e<t.length;e+=r)n.push(t.subarray(e,e+r))}return d3(["0x03",pb([a,t,r.map(e=>e.data),r.map(e=>e.commitment),n])])}return d3(["0x03",pb([a,r.map(e=>e.data),r.map(e=>e.commitment),r.map(e=>e.proof)])])}return d3(["0x03",pb(a)])}(this,r,t?this.blobs:null);case 4:let i=[hN(this.chainId,"chainId"),hN(this.nonce,"nonce"),hN(this.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),hN(this.maxFeePerGas||0,"maxFeePerGas"),hN(this.gasLimit,"gasLimit"),this.to||"0x",hN(this.value,"value"),this.data,hR(this.accessList||[]),(this.authorizationList||[]).map(e=>[hN(e.chainId,"chainId"),e.address,hN(e.nonce,"nonce"),hN(e.signature.yParity,"yParity"),pi(e.signature.r),pi(e.signature._s)])];return r&&(i.push(hN(r.yParity,"yParity")),i.push(pi(r.r)),i.push(pi(r.s))),d3(["0x04",pb(i)])}dH(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#T(!0,!0)}get unsignedSerialized(){return this.#T(!1,!1)}inferType(){let e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){let e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,r=null!=this.accessList,a=null!=this.#b||this.#y;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&dH(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),dH(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),dH(0!==this.type||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});let n=[];return null!=this.type?n.push(this.type):this.authorizationList&&this.authorizationList.length?n.push(4):t?n.push(2):e?(n.push(1),r||n.push(0)):r?(n.push(1),n.push(2)):(a&&this.to||(n.push(0),n.push(1),n.push(2)),n.push(3)),n.sort(),n}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return e.from(this)}toJSON(){let e=e=>null==e?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}[hT](){return this.toString()}toString(){let e=[],t=t=>{let r=this[t];"string"==typeof r&&(r=JSON.stringify(r)),e.push(`${t}: ${r}`)};this.type&&t("type"),t("to"),t("data"),t("nonce"),t("gasLimit"),t("value"),null!=this.chainId&&t("chainId"),this.signature&&(t("from"),e.push(`signature: ${this.signature.toString()}`));let r=this.authorizationList;if(r){let t=[];for(let e of r){let r=[];r.push(`address: ${JSON.stringify(e.address)}`),null!=e.nonce&&r.push(`nonce: ${e.nonce}`),null!=e.chainId&&r.push(`chainId: ${e.chainId}`),e.signature&&r.push(`signature: ${e.signature.toString()}`),t.push(`Authorization { ${r.join(", ")} }`)}e.push(`authorizations: [ ${t.join(", ")} ]`)}return`Transaction { ${e.join(", ")} }`}static from(t){if(null==t)return new e;if("string"==typeof t){let r=dQ(t);if(r[0]>=127)return e.from(function(e){let t=ph(e);dq(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);let r={type:0,nonce:hU(t[0],"nonce"),gasPrice:hI(t[1],"gasPrice"),gasLimit:hI(t[2],"gasLimit"),to:hB(t[3]),value:hI(t[4],"value"),data:d2(t[5]),chainId:hb};if(6===t.length)return r;let a=hI(t[6],"v"),n=hI(t[7],"r"),i=hI(t[8],"s");if(n===hb&&i===hb)r.chainId=a;else{let e=(a-hw)/hy;
2051e<hb&&(e=hb),r.chainId=e,dq(e!==hb||a===hk||a===hx,"non-canonical legacy v","v",t[6]),r.signature=hn.from({r:d7(t[7],32),s:d7(t[8],32),v:a})}return r}(r));switch(r[0]){case 1:return e.from(function(e){let t=ph(dQ(e).slice(1));dq(Array.isArray(t)&&(8===t.length||11===t.length),"invalid field count for transaction type: 1","data",d2(e));let r={type:1,chainId:hI(t[0],"chainId"),nonce:hU(t[1],"nonce"),gasPrice:hI(t[2],"gasPrice"),gasLimit:hI(t[3],"gasLimit"),to:hB(t[4]),value:hI(t[5],"value"),data:d2(t[6]),accessList:hC(t[7],"accessList")};return 8===t.length||hS(r,t.slice(8)),r}(r));case 2:return e.from(function(e){let t=ph(dQ(e).slice(1));dq(Array.isArray(t)&&(9===t.length||12===t.length),"invalid field count for transaction type: 2","data",d2(e));let r={type:2,chainId:hI(t[0],"chainId"),nonce:hU(t[1],"nonce"),maxPriorityFeePerGas:hI(t[2],"maxPriorityFeePerGas"),maxFeePerGas:hI(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:hI(t[4],"gasLimit"),to:hB(t[5]),value:hI(t[6],"value"),data:d2(t[7]),accessList:hC(t[8],"accessList")};return 9===t.length||hS(r,t.slice(9)),r}(r));case 3:return e.from(function(e){let t=ph(dQ(e).slice(1)),r="3",a=null,n=null;if(4===t.length&&Array.isArray(t[0])){r="3 (network format)";let e=t[1],a=t[2],i=t[3];dq(Array.isArray(e),"invalid network format: blobs not an array","fields[1]",e),dq(Array.isArray(a),"invalid network format: commitments not an array","fields[2]",a),dq(Array.isArray(i),"invalid network format: proofs not an array","fields[3]",i),dq(e.length===a.length,"invalid network format: blobs/commitments length mismatch","fields",t),dq(e.length===i.length,"invalid network format: blobs/proofs length mismatch","fields",t),n=[];for(let r=0;r<t[1].length;r++)n.push({data:e[r],commitment:a[r],proof:i[r]});t=t[0]}else if(5===t.length&&Array.isArray(t[0])){r="3 (EIP-7594 network format)",a=pa(t[1]);let e=t[2],i=t[3],o=t[4];dq(1===a,`unsupported EIP-7594 network format version: ${a}`,"fields[1]",a),dq(Array.isArray(e),"invalid EIP-7594 network format: blobs not an array","fields[2]",e),dq(Array.isArray(i),"invalid EIP-7594 network format: commitments not an array","fields[3]",i),dq(Array.isArray(o),"invalid EIP-7594 network format: proofs not an array","fields[4]",o),dq(e.length===i.length,"invalid network format: blobs/commitments length mismatch","fields",t),dq(128*e.length===o.length,"invalid network format: blobs/proofs length mismatch","fields",t),n=[];for(let t=0;t<e.length;t++){let r=[];for(let e=0;e<128;e++)r.push(o[128*t+e]);n.push({data:e[t],commitment:i[t],proof:d3(r)})}t=t[0]}dq(Array.isArray(t)&&(11===t.length||14===t.length),`invalid field count for transaction type: ${r}`,"data",d2(e));let i={type:3,chainId:hI(t[0],"chainId"),nonce:hU(t[1],"nonce"),maxPriorityFeePerGas:hI(t[2],"maxPriorityFeePerGas"),maxFeePerGas:hI(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:hI(t[4],"gasLimit"),to:hB(t[5]),value:hI(t[6],"value"),data:d2(t[7]),accessList:hC(t[8],"accessList"),maxFeePerBlobGas:hI(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10],blobWrapperVersion:a};n&&(i.blobs=n),dq(null!=i.to,`invalid address for transaction type: ${r}`,"data",e),dq(Array.isArray(i.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",e);for(let t=0;t<i.blobVersionedHashes.length;t++)dq(dY(i.blobVersionedHashes[t],32),`invalid blobVersionedHash at index ${t}: must be length 32`,"data",e);return 11===t.length||hS(i,t.slice(11)),i}(r));case 4:return e.from(function(e){let t=ph(dQ(e).slice(1));dq(Array.isArray(t)&&(10===t.length||13===t.length),"invalid field count for transaction type: 4","data",d2(e));let r={type:4,chainId:hI(t[0],"chainId"),nonce:hU(t[1],"nonce"),maxPriorityFeePerGas:hI(t[2],"maxPriorityFeePerGas"),maxFeePerGas:hI(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:hI(t[4],"gasLimit"),to:hB(t[5]),value:hI(t[6],"value"),data:d2(t[7]),accessList:hC(t[8],"accessList"),authorizationList:function(e,t){try{if(!Array.isArray(e))throw Error("authorizationList: invalid array");let t=[];for(let r=0;r<e.length;r++){let a=e[r];if(!Array.isArray(a))throw Error(`authorization[${r}
2051]: invalid array`);if(6!==a.length)throw Error(`authorization[${r}]: wrong length`);if(!a[1])throw Error(`authorization[${r}]: null address`);t.push({address:hB(a[1]),nonce:hI(a[2],"nonce"),chainId:hI(a[0],"chainId"),signature:hn.from({yParity:hU(a[3],"yParity"),r:d7(a[4],32),s:d7(a[5],32)})})}return t}catch(r){dq(!1,r.message,t,e)}}(t[9],"authorizationList")};return 10===t.length||hS(r,t.slice(10)),r}(r))}dH(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}let r=new e;return null!=t.type&&(r.type=t.type),null!=t.to&&(r.to=t.to),null!=t.nonce&&(r.nonce=t.nonce),null!=t.gasLimit&&(r.gasLimit=t.gasLimit),null!=t.gasPrice&&(r.gasPrice=t.gasPrice),null!=t.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=t.maxPriorityFeePerGas),null!=t.maxFeePerGas&&(r.maxFeePerGas=t.maxFeePerGas),null!=t.maxFeePerBlobGas&&(r.maxFeePerBlobGas=t.maxFeePerBlobGas),null!=t.data&&(r.data=t.data),null!=t.value&&(r.value=t.value),null!=t.chainId&&(r.chainId=t.chainId),null!=t.signature&&(r.signature=hn.from(t.signature)),null!=t.accessList&&(r.accessList=t.accessList),null!=t.authorizationList&&(r.authorizationList=t.authorizationList),null!=t.blobVersionedHashes&&(r.blobVersionedHashes=t.blobVersionedHashes),null!=t.kzg&&(r.kzg=t.kzg),null!=t.blobWrapperVersion&&(r.blobWrapperVersion=t.blobWrapperVersion),null!=t.blobs&&(r.blobs=t.blobs),null!=t.hash&&(dq(r.isSigned(),"unsigned transaction cannot define '.hash'","tx",t),dq(r.hash===t.hash,"hash mismatch","tx",t)),null!=t.from&&(dq(r.isSigned(),"unsigned transaction cannot define '.from'","tx",t),dq(r.from.toLowerCase()===(t.from||"").toLowerCase(),"from mismatch","tx",t)),r}},hP=new Uint8Array(32);hP.fill(0);var hD=BigInt(-1),hL=BigInt(0),hO=BigInt(1),hF=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),h_=pn(hO,32),hM=pn(hL,32),hj={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},h$=["name","version","chainId","verifyingContract","salt"];function hW(e){return function(t){return dq("string"==typeof t,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}var hz={name:hW("name"),version:hW("version"),chainId:function(e){let t=d9(e,"domain.chainId");if(dq(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t))return Number(t);let r=d2(d0(t)?t:pi(t)).substring(2);for(;r.startsWith("0");)r=r.substring(1);return""===r&&(r="0"),"0x"+r},verifyingContract:function(e){try{return hp(e).toLowerCase()}catch(e){}dq(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){let t=dQ(e,"domain.salt");return dq(32===t.length,'invalid domain value "salt"',"domain.salt",e),d2(t)}};function hV(e){{let a=e.match(/^(u?)int(\d+)$/);if(a){var t,r;let n=""===a[1],i=parseInt(a[2]);dq(i%8==0&&0!==i&&i<=256&&a[2]===String(i),"invalid numeric width","type",e);let o=(t=hF,r=n?i-1:i,pe(t,"value")&(d5<<BigInt(pa(r,"bits")))-d5),s=n?(o+hO)*hD:hL;return function(t){let r=d9(t,"value");return dq(r>=s&&r<=o,`value out-of-bounds for ${e}`,"value",r),pn(n?function(e,t){let r=d9(e,"value"),a=BigInt(pa(256,"width")),n=d5<<a-d5;return r<d4?(dH((r=-r)<=n,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),(~r&(d5<<a)-d5)+d5):(dH(r<n,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),r)}(r,0):r,32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return dq(0!==r&&r<=32&&t[1]===String(r),"invalid bytes width","type",e),function(t){dq(dQ(t).length===r,`invalid length for ${e}`,"value",t);let a=dQ(t),n=a.length%32;return n?d3([a,hP.slice(n)]):d2(a)}}}switch(e){case"address":return function(e){return d7(hp(e),32)};case"bool":return function(e){return e?h_:hM};case"bytes":return function(e){return uf(e)};case"string":return function(e){return uf(pd(e))}}return null}function hH(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}function hq(e){let t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}var hG=class e{primaryType;#E;get types(){return JSON.parse(this.#E)}#B;#C;constructor(e){this.#B=new Map,this.#C=new Map;let t=new Map,r=new Map,a=new Map,n={};for(let i in Object.keys(e).forEach(i=>
2051{n[i]=e[i].map(({name:t,type:r})=>{let{base:a,index:n}=hq(r);return"int"!==a||e.int||(a="int256"),"uint"!==a||e.uint||(a="uint256"),{name:t,type:a+(n||"")}}),t.set(i,new Set),r.set(i,[]),a.set(i,new Set)}),this.#E=JSON.stringify(n),n){let a=new Set;for(let o of n[i]){dq(!a.has(o.name),`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(i)}`,"types",e),a.add(o.name);let n=hq(o.type).base;dq(n!==i,`circular type reference to ${JSON.stringify(n)}`,"types",e),hV(n)||(dq(r.has(n),`unknown type ${JSON.stringify(n)}`,"types",e),r.get(n).push(i),t.get(i).add(n))}}let i=Array.from(r.keys()).filter(e=>0===r.get(e).length);for(let[o,s]of(dq(0!==i.length,"missing primary type","types",e),dq(1===i.length,`ambiguous primary types or unused types: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),dz(this,{primaryType:i[0]}),!function n(i,o){for(let s of(dq(!o.has(i),`circular type reference to ${JSON.stringify(i)}`,"types",e),o.add(i),t.get(i)))if(r.has(s))for(let e of(n(s,o),o))a.get(e).add(s);o.delete(i)}(this.primaryType,new Set),a)){let e=Array.from(s);e.sort(),this.#B.set(o,hH(o,n[o])+e.map(e=>hH(e,n[e])).join(""))}}getEncoder(e){let t=this.#C.get(e);return t||(t=this.#U(e),this.#C.set(e,t)),t}#U(e){{let t=hV(e);if(t)return t}let t=hq(e).array;
2051if(t){let e=t.prefix,r=this.getEncoder(e);return a=>{dq(-1===t.count||t.count===a.length,`array length mismatch; expected length ${t.count}`,"value",a);let n=a.map(r);return this.#B.has(e)&&(n=n.map(uf)),uf(d3(n))}}let r=this.types[e];if(r){let t=uf(pd(this.#B.get(e)));return e=>{let a=r.map(({name:t,type:r})=>{let a=this.getEncoder(r)(e[t]);return this.#B.has(r)?uf(a):a});return a.unshift(t),d3(a)}}dq(!1,`unknown type: ${e}`,"type",e)}encodeType(e){let t=this.#B.get(e);return dq(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return uf(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(hV(e))return r(e,t);let a=hq(e).array;if(a)return dq(-1===a.count||a.count===t.length,`array length mismatch; expected length ${a.count}`,"value",t),t.map(e=>this._visit(a.prefix,e,r));let n=this.types[e];if(n)return n.reduce((e,{name:a,type:n})=>(e[a]=this._visit(n,t[a],r),e),{});dq(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(t){return new e(t)}static getPrimaryType(t){return e.from(t).primaryType}static hashStruct(t,r,a){return e.from(r).hashStruct(t,a)}static hashDomain(t){let r=[];for(let e in t){if(null==t[e])continue;let a=hj[e];dq(a,`invalid typed-data domain key: ${JSON.stringify(e)}`,"domain",t),r.push({name:e,type:a})}return r.sort((e,t)=>h$.indexOf(e.name)-h$.indexOf(t.name)),e.hashStruct("EIP712Domain",{EIP712Domain:r},t)}static encode(t,r,a){return d3(["0x1901",e.hashDomain(t),e.from(r).hash(a)])}static hash(t,r,a){return uf(e.encode(t,r,a))}static async resolveNames(t,r,a,n){for(let e in t=Object.assign({},t))null==t[e]&&delete t[e];let i={};t.verifyingContract&&!dY(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");let o=e.from(r);for(let e in o.visit(a,(e,t)=>("address"!==e||dY(t,20)||(i[t]="0x"),t)),i)i[e]=await n(e);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),a=o.visit(a,(e,t)=>"address"===e&&i[t]?i[t]:t),{domain:t,value:a}}static getPayload(t,r,a){e.hashDomain(t);let n={},i=[];h$.forEach(e=>{let r=t[e];null!=r&&(n[e]=hz[e](r),i.push({name:e,type:hj[e]}))});let o=e.from(r),s=Object.assign({},r=o.types);return dq(null==s.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",r),s.EIP712Domain=i,o.encode(a),{types:s,domain:n,primaryType:o.primaryType,message:o.visit(a,(e,t)=>{if(e.match(/^bytes(\d*)/))return d2(dQ(t));if(e.match(/^u?int/))return d9(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return dq("string"==typeof t,"invalid string","value",t),t}dq(!1,"unsupported type","type",e)})}}};function hK(e){let t={};for(let r of(e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=d2(e.data)),"chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/)))r in e&&null!=e[r]&&(t[r]=d9(e[r],`request.${r}`));for(let r of"type,nonce".split(/,/))r in e&&null!=e[r]&&(t[r]=pa(e[r],`request.${r}`));return e.accessList&&(t.accessList=hg(e.accessList)),e.authorizationList&&(t.authorizationList=e.authorizationList.slice()),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobWrapperVersion"in e&&(t.blobWrapperVersion=e.blobWrapperVersion),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map(e=>d0(e)?d2(e):Object.assign({},e))),t}function hJ(e,t){if(e.provider)return e.provider;dH(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function hZ(e,t){let r=hK(t);if(null!=r.to&&(r.to=hm(r.to,e)),null!=r.from){let t=r.from;r.from=Promise.all([e.getAddress(),hm(t,e)]).then(([e,t])=>(dq(e.toLowerCase()===t.toLowerCase(),"transaction from mismatch","tx.from",t),e))}else r.from=e.getAddress();return await dW(r)}BigInt(0);var hQ=class{provider;constructor(e){dz(this,{provider:e||null})}async getNonce(e){return hJ(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await hZ(this,e)}async populateTransaction(e){let t=hJ(this,"populateTransaction"),r=await hZ(this,e);null==r.nonce&&(r.nonce=await this.getNonce("pending")),null==r.gasLimit&&(r.gasLimit=await this.estimateGas(r));let a=await this.provider.getNetwork();null!=r.chainId?dq(d9(r.chainId)===a.chainId,"transaction chainId mismatch","tx.chainId",e.chainId):r.chainId=a.chainId;let n=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas;if(null!=r.gasPrice&&(2===r.type||n)?dq(!1,"eip-1559 transaction do n
2051ot support gasPrice","tx",e):(0===r.type||1===r.type)&&n&&dq(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(2===r.type||null==r.type)&&null!=r.maxFeePerGas&&null!=r.maxPriorityFeePerGas)r.type=2;else if(0===r.type||1===r.type){let e=await t.getFeeData();dH(null!=e.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice)}else{let e=await t.getFeeData();if(null==r.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(r.authorizationList&&r.authorizationList.length?r.type=4:r.type=2,null!=r.gasPrice){let e=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=e,r.maxPriorityFeePerGas=e}else null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(dH(!n,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice),r.type=0):dH(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(2===r.type||3===r.type||4===r.type)&&(null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return await dW(r)}async populateAuthorization(e){let t=Object.assign({},e);return null==t.chainId&&(t.chainId=(await hJ(this,"getNetwork").getNetwork()).chainId),null==t.nonce&&(t.nonce=await this.getNonce()),t}async estimateGas(e){return hJ(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return hJ(this,"call").call(await this.populateCall(e))}async resolveName(e){let t=hJ(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){let t=hJ(this,"sendTransaction"),r=await this.populateTransaction(e);delete r.from;let a=hA.from(r);return await t.broadcastTransaction(await this.signTransaction(a))}authorize(e){dH(!1,"authorization not implemented for this signer","UNSUPPORTED_OPERATION",{operation:"authorize"})}},hX=class e extends hQ{address;constructor(e,t){super(t),dz(this,{address:e})}async getAddress(){return this.address}connect(t){return new e(this.address,t)}#I(e,t){dH(!1,`VoidSigner cannot sign ${e}`,"UNSUPPORTED_OPERATION",{operation:t})}async signTransaction(e){this.#I("transactions","signTransaction")}async signMessage(e){this.#I("messages","signMessage")}async signTypedData(e,t,r){this.#I("typed-data","signTypedData")}},hY=class e extends hQ{address;#N;constructor(e,t){super(t),dq(e&&"function"==typeof e.sign,"invalid private key","privateKey","[ REDACTED ]"),this.#N=e,dz(this,{address:hf(this.signingKey.publicKey)})}get signingKey(){return this.#N}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(t){return new e(this.#N,t)}async signTransaction(e){e=hK(e);let{to:t,from:r}=await dW({to:e.to?hm(e.to,this):void 0,from:e.from?hm(e.from,this):void 0});null!=t&&(e.to=t),null!=r&&(e.from=r),null!=e.from&&(dq(hp(e.from)===this.address,"transaction from address mismatch","tx.from",e.from),delete e.from);let a=hA.from(e);return a.signature=this.signingKey.sign(a.unsignedHash),a.serialized}async signMessage(e){return this.signMessageSync(e)}signMessageSync(e){var t;return this.signingKey.sign(("string"==typeof(t=e)&&(t=pd(t)),uf(d3([pd("\x19Ethereum Signed Message:\n"),pd(String(t.length)),t])))).serialized}authorizeSync(e){dq("string"==typeof e.address,"invalid address for authorizeSync","auth.address",e);let t=this.signingKey.sign((dq("string"==typeof e.address,"invalid address for hashAuthorization","auth.address",e),uf(d3(["0x05",pb([null!=e.chainId?pi(e.chainId):"0x",hp(e.address),null!=e.nonce?pi(e.nonce):"0x"])]))));return Object.assign({}
2051,{address:hp(e.address),nonce:d9(e.nonce||0),chainId:d9(e.chainId||0)},{signature:t})}async authorize(e){return e=Object.assign({},e,{address:await hm(e.address,this)}),this.authorizeSync(await this.populateAuthorization(e))}async signTypedData(e,t,r){let a=await hG.resolveNames(e,t,r,async e=>{dH(null!=this.provider,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:e}});let t=await this.provider.resolveName(e);return dH(null!=t,"unconfigured ENS name","UNCONFIGURED_NAME",{value:e}),t});return this.signingKey.sign(hG.hash(a.domain,t,a.value)).serialized}},h0=" !#$%&'()*+,-./<=>?@[]^_`{|}~",h1=/^[a-z]*$/i;function h2(e,t){let r=97;return e.reduce((e,a)=>(a===t?r++:a.match(h1)?e.push(String.fromCharCode(r)+a):(r=97,e.push(a)),e),[])}var h3=class{locale;constructor(e){dz(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}},h6=class extends h3{#s;#R;constructor(e,t,r){super(e),this.#s=t,this.#R=r,this.#S=null}get _data(){return this.#s}_decodeWords(){var e;return dq("0"===(e=this.#s)[0],"unsupported auwl data","data",e),function(e,t){for(let r=h0.length-1;r>=0;r--)e=e.split(h0[r]).join(t.substring(2*r,2*r+2));let r=[],a=e.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(e,t,a,n)=>{if(a)for(let e=parseInt(a);e>=0;e--)r.push(";");else r.push(t.toLowerCase());return""});if(a)throw Error(`leftovers: ${JSON.stringify(a)}`);return h2(h2(r,";"),":")}(e.substring(1+2*h0.length),e.substring(1,1+2*h0.length))}#S;#A(){if(null==this.#S){let e=this._decodeWords();if(uf(pd(e.join("\n")+"\n"))!==this.#R)throw Error(`BIP39 Wordlist for ${this.locale} FAILED`);this.#S=e}return this.#S}getWord(e){let t=this.#A();return dq(e>=0&&e<t.length,`invalid word index: ${e}`,"index",e),t[e]}getWordIndex(e){return this.#A().indexOf(e)}},h8=null,h7=class e extends h6{constructor(){super("en","0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}
2051RumRw?dSsil/ UndX_gi!AmeEqu|EshI&dIn+OgOntO,OwnOz&U.2ElNNnyRna)RyTu*:D+tInLaxy~ yMePRa+Rba+Rd&Rl-Rm|SSpTeTh U+Ze3N $NiusN*Nt!Nu(e/u*2O,0AntFtGg!Ng RaffeRlVe_dAn)A*A[IdeImp'ObeOomOryO=OwUe_tDde[LdOdO'RillaSpelSsipV nWn_bA)A(AntApeA[Av.yEatE&IdIefItOc yOupOwUnt_rdE[IdeIltIt?N3M:B.IrLfMm M, NdPpyRb%RdRshR=,TVeWkZ?d3AdAl`ArtAvyD+hogIght~oLmetLpNRo3Dd&Gh~NtPRe/%y5BbyCkeyLdLeLiday~owMeNeyOdPeRnRr%R'Sp.$/TelUrV 5BGeM<Mb!M%Nd*dNgryNtRd!RryRtSb<d3Brid:1EOn0EaEntifyLe2N%e4LLeg$L}[0A+Ita>M&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryF<tFl-tF%mHa!H .Iti$Je@JuryMa>N Noc|PutQuiryS<eSe@SideSpi*/$lTa@T e,ToVe,V.eVol=3On0L<dOla>Sue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurE<Tob 0Or1FF Fi)T&2L1Ay0DI=Ymp-0It0CeEI#L(eLy1EnEraIn]Po'T]1An+B.Ch?dD D(?yG<I|Ig($Ph<0Tr-h0H 0Tdo%T TputTside0AlEnEr0NN 0Yg&0/ 0O}:CtDd!GeIrLa)LmNdaNelN-N` P RadeR|RkRrotRtySsT^ThTi|TrolTt nU'VeYm|3A)AnutArAs<tL-<NN$tyNcilOp!Pp [email protected]#T2O}OtoRa'Ys-$0AnoCn-Ctu*E)GGe#~LotNkO} Pe/olT^Zza_)A}tA,-A>AyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|[email protected])[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO","0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60")}static wordlist(){return null==h8&&(h8=new e),h8}};function h4(e){return(1<<e)-1<<8-e&255}function h5(e,t){dK("NFKD"),null==t&&(t=h7.wordlist());let r=t.split(e);dq(r.length%3==0&&r.length>
2051=12&&r.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");let a=new Uint8Array(Math.ceil(11*r.length/8)),n=0;for(let e=0;e<r.length;e++){let i=t.getWordIndex(r[e].normalize("NFKD"));dq(i>=0,`invalid mnemonic word at index ${e}`,"mnemonic","[ REDACTED ]");for(let e=0;e<11;e++)i&1<<10-e&&(a[n>>3]|=1<<7-n%8),n++}let i=32*r.length/3,o=h4(r.length/3);return dq((dQ(u4(a.slice(0,i/8)))[0]&o)==(a[a.length-1]&o),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),d2(a.slice(0,i/8))}function h9(e,t){dq(e.length%4==0&&e.length>=16&&e.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),null==t&&(t=h7.wordlist());let r=[0],a=11;for(let t=0;t<e.length;t++)a>8?(r[r.length-1]<<=8,r[r.length-1]|=e[t],a-=8):(r[r.length-1]<<=a,r[r.length-1]|=e[t]>>8-a,r.push(e[t]&((1<<8-a)-1&255)),a+=3);let n=e.length/4,i=parseInt(u4(e).substring(2,4),16)&h4(n);return r[r.length-1]<<=n,r[r.length-1]|=i>>8-n,t.join(r.map(e=>t.getWord(e)))}var ge={},gt=class e{phrase;password;wordlist;entropy;constructor(e,t,r,a,n){null==a&&(a=""),null==n&&(n=h7.wordlist()),dJ(e,ge,"Mnemonic"),dz(this,{phrase:r,password:a,wordlist:n,entropy:t})}computeSeed(){let e=pd("mnemonic"+this.password,"NFKD");return uM(pd(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(t,r,a){let n=h5(t,a);return t=h9(dQ(n),a),new e(ge,n,t,r,a)}static fromEntropy(t,r,a){let n=dQ(t,"entropy"),i=h9(n,a);return new e(ge,d2(n),i,r,a)}static entropyToPhrase(e,t){return h9(dQ(e,"entropy"),t)}static phraseToEntropy(e,t){return h5(e,t)}static isValidMnemonic(e,t){try{return h5(e,t),!0}catch(e){}return!1}},gr=function(e,t,r,a){if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?a:"a"===r?a.call(e):a?a.value:t.get(e)},ga=function(e,t,r,a,n){if("function"==typeof t||!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r},gn={16:10,24:12,32:14},gi=[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],go=[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],gs=[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],gl=[0xc66363a5,0xf87c7c84,0xee777799,0xf67b7b8d,0xfff2f20d,0xd66b6bbd,0xde6f6fb1,0x91c5c554,0x60303050,0x2010103,0xce6767a9,0x562b2b7d,0xe7fefe19,0xb5d7d762,0x4dababe6,0xec76769a,0x8fcaca45,0x1f82829d,0x89c9c940,0xfa7d7d87,0xeffafa15,0xb25959eb,0x8e4747c9,0xfbf0f00b,0x41adadec,0xb3d4d467,0x5fa2a2fd,0x45afafea,0x239c9cbf,0x53a4a4f7,0xe4727296,0x9bc0c05b,0x75b7b7c2,0xe1fdfd1c,0x3d9393ae,0x4c26266a,0x6c36365a,0x7e3f3f41,0xf5f7f702,0x83cccc4f,0x6834345c,0x51a5a5f4,0xd1e5e534,0xf9f1f
2051108,0xe2717193,0xabd8d873,0x62313153,0x2a15153f,0x804040c,0x95c7c752,0x46232365,0x9dc3c35e,0x30181828,0x379696a1,0xa05050f,0x2f9a9ab5,0xe070709,0x24121236,0x1b80809b,0xdfe2e23d,0xcdebeb26,0x4e272769,0x7fb2b2cd,0xea75759f,0x1209091b,0x1d83839e,0x582c2c74,0x341a1a2e,0x361b1b2d,0xdc6e6eb2,0xb45a5aee,0x5ba0a0fb,0xa45252f6,0x763b3b4d,0xb7d6d661,0x7db3b3ce,0x5229297b,0xdde3e33e,0x5e2f2f71,0x13848497,0xa65353f5,0xb9d1d168,0,0xc1eded2c,0x40202060,0xe3fcfc1f,0x79b1b1c8,0xb65b5bed,0xd46a6abe,0x8dcbcb46,0x67bebed9,0x7239394b,0x944a4ade,0x984c4cd4,0xb05858e8,0x85cfcf4a,0xbbd0d06b,0xc5efef2a,0x4faaaae5,0xedfbfb16,0x864343c5,0x9a4d4dd7,0x66333355,0x11858594,0x8a4545cf,0xe9f9f910,0x4020206,0xfe7f7f81,0xa05050f0,0x783c3c44,0x259f9fba,0x4ba8a8e3,0xa25151f3,0x5da3a3fe,0x804040c0,0x58f8f8a,0x3f9292ad,0x219d9dbc,0x70383848,0xf1f5f504,0x63bcbcdf,0x77b6b6c1,0xafdada75,0x42212163,0x20101030,0xe5ffff1a,0xfdf3f30e,0xbfd2d26d,0x81cdcd4c,0x180c0c14,0x26131335,0xc3ecec2f,0xbe5f5fe1,0x359797a2,0x884444cc,0x2e171739,0x93c4c457,0x55a7a7f2,0xfc7e7e82,0x7a3d3d47,0xc86464ac,0xba5d5de7,0x3219192b,0xe6737395,0xc06060a0,0x19818198,0x9e4f4fd1,0xa3dcdc7f,0x44222266,0x542a2a7e,0x3b9090ab,0xb888883,0x8c4646ca,0xc7eeee29,0x6bb8b8d3,0x2814143c,0xa7dede79,0xbc5e5ee2,0x160b0b1d,0xaddbdb76,0xdbe0e03b,0x64323256,0x743a3a4e,0x140a0a1e,0x924949db,0xc06060a,0x4824246c,0xb85c5ce4,0x9fc2c25d,0xbdd3d36e,0x43acacef,0xc46262a6,0x399191a8,0x319595a4,0xd3e4e437,0xf279798b,0xd5e7e732,0x8bc8c843,0x6e373759,0xda6d6db7,0x18d8d8c,0xb1d5d564,0x9c4e4ed2,0x49a9a9e0,0xd86c6cb4,0xac5656fa,0xf3f4f407,0xcfeaea25,0xca6565af,0xf47a7a8e,0x47aeaee9,0x10080818,0x6fbabad5,0xf0787888,0x4a25256f,0x5c2e2e72,0x381c1c24,0x57a6a6f1,0x73b4b4c7,0x97c6c651,0xcbe8e823,0xa1dddd7c,0xe874749c,0x3e1f1f21,0x964b4bdd,0x61bdbddc,0xd8b8b86,0xf8a8a85,0xe0707090,0x7c3e3e42,0x71b5b5c4,0xcc6666aa,0x904848d8,0x6030305,0xf7f6f601,0x1c0e0e12,0xc26161a3,0x6a35355f,0xae5757f9,0x69b9b9d0,0x17868691,0x99c1c158,0x3a1d1d27,0x279e9eb9,0xd9e1e138,0xebf8f813,0x2b9898b3,0x22111133,0xd26969bb,0xa9d9d970,0x78e8e89,0x339494a7,0x2d9b9bb6,0x3c1e1e22,0x15878792,0xc9e9e920,0x87cece49,0xaa5555ff,0x50282878,0xa5dfdf7a,0x38c8c8f,0x59a1a1f8,0x9898980,0x1a0d0d17,0x65bfbfda,0xd7e6e631,0x844242c6,0xd06868b8,0x824141c3,0x299999b0,0x5a2d2d77,0x1e0f0f11,0x7bb0b0cb,0xa85454fc,0x6dbbbbd6,0x2c16163a],gc=[0xa5c66363,0x84f87c7c,0x99ee7777,0x8df67b7b,0xdfff2f2,0xbdd66b6b,0xb1de6f6f,0x5491c5c5,0x50603030,0x3020101,0xa9ce6767,0x7d562b2b,0x19e7fefe,0x62b5d7d7,0xe64dabab,0x9aec7676,0x458fcaca,0x9d1f8282,0x4089c9c9,0x87fa7d7d,0x15effafa,0xebb25959,0xc98e4747,0xbfbf0f0,0xec41adad,0x67b3d4d4,0xfd5fa2a2,0xea45afaf,0xbf239c9c,0xf753a4a4,0x96e47272,0x5b9bc0c0,0xc275b7b7,0x1ce1fdfd,0xae3d9393,0x6a4c2626,0x5a6c3636,0x417e3f3f,0x2f5f7f7,0x4f83cccc,0x5c683434,0xf451a5a5,0x34d1e5e5,0x8f9f1f1,0x93e27171,0x73abd8d8,0x53623131,0x3f2a1515,0xc080404,0x5295c7c7,0x65462323,0x5e9dc3c3,0x28301818,0xa1379696,0xf0a0505,0xb52f9a9a,0x90e0707,0x36241212,0x9b1b8080,0x3ddfe2e2,0x26cdebeb,0x694e2727,0xcd7fb2b2,0x9fea7575,0x1b120909,0x9e1d8383,0x74582c2c,0x2e341a1a,0x2d361b1b,0xb2dc6e6e,0xeeb45a5a,0xfb5ba0a0,0xf6a45252,0x4d763b3b,0x61b7d6d6,0xce7db3b3,0x7b522929,0x3edde3e3,0x715e2f2f,0x97138484,0xf5a65353,0x68b9d1d1,0,0x2cc1eded,0x60402020,0x1fe3fcfc,0xc879b1b1,0xedb65b5b,0xbed46a6a,0x468dcbcb,0xd967bebe,0x4b723939,0xde944a4a,0xd4984c4c,0xe8b05858,0x4a85cfcf,0x6bbbd0d0,0x2ac5efef,0xe54faaaa,0x16edfbfb,0xc5864343,0xd79a4d4d,0x55663333,0x94118585,0xcf8a4545,0x10e9f9f9,0x6040202,0x81fe7f7f,0xf0a05050,0x44783c3c,0xba259f9f,0xe34ba8a8,0xf3a25151,0xfe5da3a3,0xc0804040,0x8a058f8f,0xad3f9292,0xbc219d9d,0x48703838,0x4f1f5f5,0xdf63bcbc,0xc177b6b6,0x75afdada,0x63422121,0x30201010,0x1ae5ffff,0xefdf3f3,0x6dbfd2d2,0x4c81cdcd,0x14180c0c,0x35261313,0x2fc3ecec,0xe1be5f5f,0xa2359797,0xcc884444,0x392e1717,0x5793c4c4,0xf255a7a7,0x82fc7e7e,0x477a3d3d,0xacc86464,0xe7ba5d5d,0x2b321919,0x95e67373,0xa0c06060,0x98198181,0xd19e4f4f,0x7fa3dcdc,0x66442222,0x7e542a2a,0xab3b9090,0x83
20510b8888,0xca8c4646,0x29c7eeee,0xd36bb8b8,0x3c281414,0x79a7dede,0xe2bc5e5e,0x1d160b0b,0x76addbdb,0x3bdbe0e0,0x56643232,0x4e743a3a,0x1e140a0a,0xdb924949,0xa0c0606,0x6c482424,0xe4b85c5c,0x5d9fc2c2,0x6ebdd3d3,0xef43acac,0xa6c46262,0xa8399191,0xa4319595,0x37d3e4e4,0x8bf27979,0x32d5e7e7,0x438bc8c8,0x596e3737,0xb7da6d6d,0x8c018d8d,0x64b1d5d5,0xd29c4e4e,0xe049a9a9,0xb4d86c6c,0xfaac5656,0x7f3f4f4,0x25cfeaea,0xafca6565,0x8ef47a7a,0xe947aeae,0x18100808,0xd56fbaba,0x88f07878,0x6f4a2525,0x725c2e2e,0x24381c1c,0xf157a6a6,0xc773b4b4,0x5197c6c6,0x23cbe8e8,0x7ca1dddd,0x9ce87474,0x213e1f1f,0xdd964b4b,0xdc61bdbd,0x860d8b8b,0x850f8a8a,0x90e07070,0x427c3e3e,0xc471b5b5,0xaacc6666,0xd8904848,0x5060303,0x1f7f6f6,0x121c0e0e,0xa3c26161,0x5f6a3535,0xf9ae5757,0xd069b9b9,0x91178686,0x5899c1c1,0x273a1d1d,0xb9279e9e,0x38d9e1e1,0x13ebf8f8,0xb32b9898,0x33221111,0xbbd26969,0x70a9d9d9,0x89078e8e,0xa7339494,0xb62d9b9b,0x223c1e1e,0x92158787,0x20c9e9e9,0x4987cece,0xffaa5555,0x78502828,0x7aa5dfdf,0x8f038c8c,0xf859a1a1,0x80098989,0x171a0d0d,0xda65bfbf,0x31d7e6e6,0xc6844242,0xb8d06868,0xc3824141,0xb0299999,0x775a2d2d,0x111e0f0f,0xcb7bb0b0,0xfca85454,0xd66dbbbb,0x3a2c1616],gd=[0x63a5c663,0x7c84f87c,0x7799ee77,0x7b8df67b,0xf20dfff2,0x6bbdd66b,0x6fb1de6f,0xc55491c5,0x30506030,0x1030201,0x67a9ce67,0x2b7d562b,0xfe19e7fe,0xd762b5d7,0xabe64dab,0x769aec76,0xca458fca,0x829d1f82,0xc94089c9,0x7d87fa7d,0xfa15effa,0x59ebb259,0x47c98e47,0xf00bfbf0,0xadec41ad,0xd467b3d4,0xa2fd5fa2,0xafea45af,0x9cbf239c,0xa4f753a4,0x7296e472,0xc05b9bc0,0xb7c275b7,0xfd1ce1fd,0x93ae3d93,0x266a4c26,0x365a6c36,0x3f417e3f,0xf702f5f7,0xcc4f83cc,0x345c6834,0xa5f451a5,0xe534d1e5,0xf108f9f1,0x7193e271,0xd873abd8,0x31536231,0x153f2a15,0x40c0804,0xc75295c7,0x23654623,0xc35e9dc3,0x18283018,0x96a13796,0x50f0a05,0x9ab52f9a,0x7090e07,0x12362412,0x809b1b80,0xe23ddfe2,0xeb26cdeb,0x27694e27,0xb2cd7fb2,0x759fea75,0x91b1209,0x839e1d83,0x2c74582c,0x1a2e341a,0x1b2d361b,0x6eb2dc6e,0x5aeeb45a,0xa0fb5ba0,0x52f6a452,0x3b4d763b,0xd661b7d6,0xb3ce7db3,0x297b5229,0xe33edde3,0x2f715e2f,0x84971384,0x53f5a653,0xd168b9d1,0,0xed2cc1ed,0x20604020,0xfc1fe3fc,0xb1c879b1,0x5bedb65b,0x6abed46a,0xcb468dcb,0xbed967be,0x394b7239,0x4ade944a,0x4cd4984c,0x58e8b058,0xcf4a85cf,0xd06bbbd0,0xef2ac5ef,0xaae54faa,0xfb16edfb,0x43c58643,0x4dd79a4d,0x33556633,0x85941185,0x45cf8a45,0xf910e9f9,0x2060402,0x7f81fe7f,0x50f0a050,0x3c44783c,0x9fba259f,0xa8e34ba8,0x51f3a251,0xa3fe5da3,0x40c08040,0x8f8a058f,0x92ad3f92,0x9dbc219d,0x38487038,0xf504f1f5,0xbcdf63bc,0xb6c177b6,0xda75afda,0x21634221,0x10302010,0xff1ae5ff,0xf30efdf3,0xd26dbfd2,0xcd4c81cd,0xc14180c,0x13352613,0xec2fc3ec,0x5fe1be5f,0x97a23597,0x44cc8844,0x17392e17,0xc45793c4,0xa7f255a7,0x7e82fc7e,0x3d477a3d,0x64acc864,0x5de7ba5d,0x192b3219,0x7395e673,0x60a0c060,0x81981981,0x4fd19e4f,0xdc7fa3dc,0x22664422,0x2a7e542a,0x90ab3b90,0x88830b88,0x46ca8c46,0xee29c7ee,0xb8d36bb8,0x143c2814,0xde79a7de,0x5ee2bc5e,0xb1d160b,0xdb76addb,0xe03bdbe0,0x32566432,0x3a4e743a,0xa1e140a,0x49db9249,0x60a0c06,0x246c4824,0x5ce4b85c,0xc25d9fc2,0xd36ebdd3,0xacef43ac,0x62a6c462,0x91a83991,0x95a43195,0xe437d3e4,0x798bf279,0xe732d5e7,0xc8438bc8,0x37596e37,0x6db7da6d,0x8d8c018d,0xd564b1d5,0x4ed29c4e,0xa9e049a9,0x6cb4d86c,0x56faac56,0xf407f3f4,0xea25cfea,0x65afca65,0x7a8ef47a,0xaee947ae,0x8181008,0xbad56fba,0x7888f078,0x256f4a25,0x2e725c2e,0x1c24381c,0xa6f157a6,0xb4c773b4,0xc65197c6,0xe823cbe8,0xdd7ca1dd,0x749ce874,0x1f213e1f,0x4bdd964b,0xbddc61bd,0x8b860d8b,0x8a850f8a,0x7090e070,0x3e427c3e,0xb5c471b5,0x66aacc66,0x48d89048,0x3050603,0xf601f7f6,0xe121c0e,0x61a3c261,0x355f6a35,0x57f9ae57,0xb9d069b9,0x86911786,0xc15899c1,0x1d273a1d,0x9eb9279e,0xe138d9e1,0xf813ebf8,0x98b32b98,0x11332211,0x69bbd269,0xd970a9d9,0x8e89078e,0x94a73394,0x9bb62d9b,0x1e223c1e,0x87921587,0xe920c9e9,0xce4987ce,0x55ffaa55,0x28785028,0xdf7aa5df,0x8c8f038c,0xa1f859a1,0x89800989,0xd171a0d,0xbfda65bf,0xe631d7e6,0x42c68442,0x68b8d068,0x41c38241,0x99b02999,0x2d775a2d,0xf111e0f,0xb0cb7bb0,0x54fca854,0xbbd66dbb,0x163a2c16],gp=[0x6363a5c6,0x7c7c84f8,0x777799ee,0x7b7b8df6,0xf2f20dff,0x6b6bbdd6,0x6f6fb1de,0xc5c55491,0x30305060,0x1010302,0x6767a9ce,0x2b2b7d56,0xfefe19e7,0xd7d762b5,0xababe64d,0x76769aec,0xcaca458f,0x82829d1f,0xc9c94089,0x7d7d87fa,0xfafa15ef,0x5959ebb2,0x4747c98e,0xf0f00bfb,0xadadec41,0xd4d467b3,0xa2a2fd5f,0
2051xafafea45,0x9c9cbf23,0xa4a4f753,0x727296e4,0xc0c05b9b,0xb7b7c275,0xfdfd1ce1,0x9393ae3d,0x26266a4c,0x36365a6c,0x3f3f417e,0xf7f702f5,0xcccc4f83,0x34345c68,0xa5a5f451,0xe5e534d1,0xf1f108f9,0x717193e2,0xd8d873ab,0x31315362,0x15153f2a,0x4040c08,0xc7c75295,0x23236546,0xc3c35e9d,0x18182830,0x9696a137,0x5050f0a,0x9a9ab52f,0x707090e,0x12123624,0x80809b1b,0xe2e23ddf,0xebeb26cd,0x2727694e,0xb2b2cd7f,0x75759fea,0x9091b12,0x83839e1d,0x2c2c7458,0x1a1a2e34,0x1b1b2d36,0x6e6eb2dc,0x5a5aeeb4,0xa0a0fb5b,0x5252f6a4,0x3b3b4d76,0xd6d661b7,0xb3b3ce7d,0x29297b52,0xe3e33edd,0x2f2f715e,0x84849713,0x5353f5a6,0xd1d168b9,0,0xeded2cc1,0x20206040,0xfcfc1fe3,0xb1b1c879,0x5b5bedb6,0x6a6abed4,0xcbcb468d,0xbebed967,0x39394b72,0x4a4ade94,0x4c4cd498,0x5858e8b0,0xcfcf4a85,0xd0d06bbb,0xefef2ac5,0xaaaae54f,0xfbfb16ed,0x4343c586,0x4d4dd79a,0x33335566,0x85859411,0x4545cf8a,0xf9f910e9,0x2020604,0x7f7f81fe,0x5050f0a0,0x3c3c4478,0x9f9fba25,0xa8a8e34b,0x5151f3a2,0xa3a3fe5d,0x4040c080,0x8f8f8a05,0x9292ad3f,0x9d9dbc21,0x38384870,0xf5f504f1,0xbcbcdf63,0xb6b6c177,0xdada75af,0x21216342,0x10103020,0xffff1ae5,0xf3f30efd,0xd2d26dbf,0xcdcd4c81,0xc0c1418,0x13133526,0xecec2fc3,0x5f5fe1be,0x9797a235,0x4444cc88,0x1717392e,0xc4c45793,0xa7a7f255,0x7e7e82fc,0x3d3d477a,0x6464acc8,0x5d5de7ba,0x19192b32,0x737395e6,0x6060a0c0,0x81819819,0x4f4fd19e,0xdcdc7fa3,0x22226644,0x2a2a7e54,0x9090ab3b,0x8888830b,0x4646ca8c,0xeeee29c7,0xb8b8d36b,0x14143c28,0xdede79a7,0x5e5ee2bc,0xb0b1d16,0xdbdb76ad,0xe0e03bdb,0x32325664,0x3a3a4e74,0xa0a1e14,0x4949db92,0x6060a0c,0x24246c48,0x5c5ce4b8,0xc2c25d9f,0xd3d36ebd,0xacacef43,0x6262a6c4,0x9191a839,0x9595a431,0xe4e437d3,0x79798bf2,0xe7e732d5,0xc8c8438b,0x3737596e,0x6d6db7da,0x8d8d8c01,0xd5d564b1,0x4e4ed29c,0xa9a9e049,0x6c6cb4d8,0x5656faac,0xf4f407f3,0xeaea25cf,0x6565afca,0x7a7a8ef4,0xaeaee947,0x8081810,0xbabad56f,0x787888f0,0x25256f4a,0x2e2e725c,0x1c1c2438,0xa6a6f157,0xb4b4c773,0xc6c65197,0xe8e823cb,0xdddd7ca1,0x74749ce8,0x1f1f213e,0x4b4bdd96,0xbdbddc61,0x8b8b860d,0x8a8a850f,0x707090e0,0x3e3e427c,0xb5b5c471,0x6666aacc,0x4848d890,0x3030506,0xf6f601f7,0xe0e121c,0x6161a3c2,0x35355f6a,0x5757f9ae,0xb9b9d069,0x86869117,0xc1c15899,0x1d1d273a,0x9e9eb927,0xe1e138d9,0xf8f813eb,0x9898b32b,0x11113322,0x6969bbd2,0xd9d970a9,0x8e8e8907,0x9494a733,0x9b9bb62d,0x1e1e223c,0x87879215,0xe9e920c9,0xcece4987,0x5555ffaa,0x28287850,0xdfdf7aa5,0x8c8c8f03,0xa1a1f859,0x89898009,0xd0d171a,0xbfbfda65,0xe6e631d7,0x4242c684,0x6868b8d0,0x4141c382,0x9999b029,0x2d2d775a,0xf0f111e,0xb0b0cb7b,0x5454fca8,0xbbbbd66d,0x16163a2c],gu=[0x51f4a750,0x7e416553,0x1a17a4c3,0x3a275e96,0x3bab6bcb,0x1f9d45f1,0xacfa58ab,0x4be30393,0x2030fa55,0xad766df6,0x88cc7691,0xf5024c25,0x4fe5d7fc,0xc52acbd7,0x26354480,0xb562a38f,0xdeb15a49,0x25ba1b67,0x45ea0e98,0x5dfec0e1,0xc32f7502,0x814cf012,0x8d4697a3,0x6bd3f9c6,0x38f5fe7,0x15929c95,0xbf6d7aeb,0x955259da,0xd4be832d,0x587421d3,0x49e06929,0x8ec9c844,0x75c2896a,0xf48e7978,0x99583e6b,0x27b971dd,0xbee14fb6,0xf088ad17,0xc920ac66,0x7dce3ab4,0x63df4a18,0xe51a3182,0x97513360,0x62537f45,0xb16477e0,0xbb6bae84,0xfe81a01c,0xf9082b94,0x70486858,0x8f45fd19,0x94de6c87,0x527bf8b7,0xab73d323,0x724b02e2,0xe31f8f57,0x6655ab2a,0xb2eb2807,0x2fb5c203,0x86c57b9a,0xd33708a5,0x302887f2,0x23bfa5b2,0x2036aba,0xed16825c,0x8acf1c2b,0xa779b492,0xf307f2f0,0x4e69e2a1,0x65daf4cd,0x605bed5,0xd134621f,0xc4a6fe8a,0x342e539d,0xa2f355a0,0x58ae132,0xa4f6eb75,0xb83ec39,0x4060efaa,0x5e719f06,0xbd6e1051,0x3e218af9,0x96dd063d,0xdd3e05ae,0x4de6bd46,0x91548db5,0x71c45d05,0x406d46f,0x605015ff,0x1998fb24,0xd6bde997,0x894043cc,0x67d99e77,0xb0e842bd,0x7898b88,0xe7195b38,0x79c8eedb,0xa17c0a47,0x7c420fe9,0xf8841ec9,0,0x9808683,0x322bed48,0x1e1170ac,0x6c5a724e,0xfd0efffb,0xf853856,0x3daed51e,0x362d3927,0xa0fd964,0x685ca621,0x9b5b54d1,0x24362e3a,0xc0a67b1,0x9357e70f,0xb4ee96d2,0x1b9b919e,0x80c0c54f,0x61dc20a2,0x5a774b69,0x1c121a16,0xe293ba0a,0xc0a02ae5,0x3c22e043,0x121b171d,0xe090d0b,0xf28bc7ad,0x2db6a8b9,0x141ea9c8,0x57f11985,0xaf75074c,0xee99ddbb,0xa37f60fd,0xf701269f,0x5c72f5bc,0x44663bc5,0x5bfb7e34,0x8b432976,0xcb23c6dc,0xb6edfc68,0xb8e4f163,0xd731dcca,0x42638510,0x13972240,0x84c61120,0x854a247d,0xd2bb3df8,0xaef93211,0xc729a16d,0x1d9e2f4b,0xdcb230f3,0xd8652ec,0x77c1e3d0,0x2bb3166c,0xa970b999,0x119448fa,0x47e96422,0xa8fc8cc4,0xa0f03f1a,0x567d2cd8,0x223390ef,0x87494ec7,0xd938d1c1,0x8ccaa2fe,0x98d40b36,0xa6f581cf,0xa57ade28,0xdab78e26,0x3fadbfa4,0x2c3a9de4,0x5078920d,0x6a5fcc9b,0x547e4662,0xf68d13c2,0x90d8b8e8,0x2e39f75e,0x82c3aff5,0x9f5d80be,0x69d0937c,0x6fd52da9,0xcf2512b3,0xc8ac993b,0x10187da7,0xe89c636e,0xdb3bbb7b,0xcd267809,0x6e5918f4,0xec9ab701,0x834f9aa8,0xe6956e65,0xaaffe67e,0x21bccf08,0xef15e8e6,0xbae79bd9,0x4a6f36ce,0xea9f09d4,0x29b07cd6,0x31a4b2af,0x2a3f2331,0xc6a59430,0x35a266c0,0x744ebc37,0xfc82caa6,0xe090d0b0,0x33a7d815,0xf104984a,0x41ecdaf7,0x7fcd500e,0x1791f62f,0x764dd68d,0x43efb04d,0xccaa4d54,0xe49604df,0x9ed1b5e3,0x4c6a881b,0xc12c1fb8,0x4665517f,0x9d5eea04,0
2051x18c355d,0xfa877473,0xfb0b412e,0xb3671d5a,0x92dbd252,0xe9105633,0x6dd64713,0x9ad7618c,0x37a10c7a,0x59f8148e,0xeb133c89,0xcea927ee,0xb761c935,0xe11ce5ed,0x7a47b13c,0x9cd2df59,0x55f2733f,0x1814ce79,0x73c737bf,0x53f7cdea,0x5ffdaa5b,0xdf3d6f14,0x7844db86,0xcaaff381,0xb968c43e,0x3824342c,0xc2a3405f,0x161dc372,0xbce2250c,0x283c498b,0xff0d9541,0x39a80171,0x80cb3de,0xd8b4e49c,0x6456c190,0x7bcb8461,0xd532b670,0x486c5c74,0xd0b85742],gm=[0x5051f4a7,0x537e4165,0xc31a17a4,0x963a275e,0xcb3bab6b,0xf11f9d45,0xabacfa58,0x934be303,0x552030fa,0xf6ad766d,0x9188cc76,0x25f5024c,0xfc4fe5d7,0xd7c52acb,0x80263544,0x8fb562a3,0x49deb15a,0x6725ba1b,0x9845ea0e,0xe15dfec0,0x2c32f75,0x12814cf0,0xa38d4697,0xc66bd3f9,0xe7038f5f,0x9515929c,0xebbf6d7a,0xda955259,0x2dd4be83,0xd3587421,0x2949e069,0x448ec9c8,0x6a75c289,0x78f48e79,0x6b99583e,0xdd27b971,0xb6bee14f,0x17f088ad,0x66c920ac,0xb47dce3a,0x1863df4a,0x82e51a31,0x60975133,0x4562537f,0xe0b16477,0x84bb6bae,0x1cfe81a0,0x94f9082b,0x58704868,0x198f45fd,0x8794de6c,0xb7527bf8,0x23ab73d3,0xe2724b02,0x57e31f8f,0x2a6655ab,0x7b2eb28,0x32fb5c2,0x9a86c57b,0xa5d33708,0xf2302887,0xb223bfa5,0xba02036a,0x5ced1682,0x2b8acf1c,0x92a779b4,0xf0f307f2,0xa14e69e2,0xcd65daf4,0xd50605be,0x1fd13462,0x8ac4a6fe,0x9d342e53,0xa0a2f355,0x32058ae1,0x75a4f6eb,0x390b83ec,0xaa4060ef,0x65e719f,0x51bd6e10,0xf93e218a,0x3d96dd06,0xaedd3e05,0x464de6bd,0xb591548d,0x571c45d,0x6f0406d4,0xff605015,0x241998fb,0x97d6bde9,0xcc894043,0x7767d99e,0xbdb0e842,0x8807898b,0x38e7195b,0xdb79c8ee,0x47a17c0a,0xe97c420f,0xc9f8841e,0,0x83098086,0x48322bed,0xac1e1170,0x4e6c5a72,0xfbfd0eff,0x560f8538,0x1e3daed5,0x27362d39,0x640a0fd9,0x21685ca6,0xd19b5b54,0x3a24362e,0xb10c0a67,0xf9357e7,0xd2b4ee96,0x9e1b9b91,0x4f80c0c5,0xa261dc20,0x695a774b,0x161c121a,0xae293ba,0xe5c0a02a,0x433c22e0,0x1d121b17,0xb0e090d,0xadf28bc7,0xb92db6a8,0xc8141ea9,0x8557f119,0x4caf7507,0xbbee99dd,0xfda37f60,0x9ff70126,0xbc5c72f5,0xc544663b,0x345bfb7e,0x768b4329,0xdccb23c6,0x68b6edfc,0x63b8e4f1,0xcad731dc,0x10426385,0x40139722,0x2084c611,0x7d854a24,0xf8d2bb3d,0x11aef932,0x6dc729a1,0x4b1d9e2f,0xf3dcb230,0xec0d8652,0xd077c1e3,0x6c2bb316,0x99a970b9,0xfa119448,0x2247e964,0xc4a8fc8c,0x1aa0f03f,0xd8567d2c,0xef223390,0xc787494e,0xc1d938d1,0xfe8ccaa2,0x3698d40b,0xcfa6f581,0x28a57ade,0x26dab78e,0xa43fadbf,0xe42c3a9d,0xd507892,0x9b6a5fcc,0x62547e46,0xc2f68d13,0xe890d8b8,0x5e2e39f7,0xf582c3af,0xbe9f5d80,0x7c69d093,0xa96fd52d,0xb3cf2512,0x3bc8ac99,0xa710187d,0x6ee89c63,0x7bdb3bbb,0x9cd2678,0xf46e5918,0x1ec9ab7,0xa8834f9a,0x65e6956e,0x7eaaffe6,0x821bccf,0xe6ef15e8,0xd9bae79b,0xce4a6f36,0xd4ea9f09,0xd629b07c,0xaf31a4b2,0x312a3f23,0x30c6a594,0xc035a266,0x37744ebc,0xa6fc82ca,0xb0e090d0,0x1533a7d8,0x4af10498,0xf741ecda,0xe7fcd50,0x2f1791f6,0x8d764dd6,0x4d43efb0,0x54ccaa4d,0xdfe49604,0xe39ed1b5,0x1b4c6a88,0xb8c12c1f,0x7f466551,0x49d5eea,0x5d018c35,0x73fa8774,0x2efb0b41,0x5ab3671d,0x5292dbd2,0x33e91056,0x136dd647,0x8c9ad761,0x7a37a10c,0x8e59f814,0x89eb133c,0xeecea927,0x35b761c9,0xede11ce5,0x3c7a47b1,0x599cd2df,0x3f55f273,0x791814ce,0xbf73c737,0xea53f7cd,0x5b5ffdaa,0x14df3d6f,0x867844db,0x81caaff3,0x3eb968c4,0x2c382434,0x5fc2a340,0x72161dc3,0xcbce225,0x8b283c49,0x41ff0d95,0x7139a801,0xde080cb3,0x9cd8b4e4,0x906456c1,0x617bcb84,0x70d532b6,0x74486c5c,0x42d0b857],gh=[0xa75051f4,0x65537e41,0xa4c31a17,0x5e963a27,0x6bcb3bab,0x45f11f9d,0x58abacfa,0x3934be3,0xfa552030,0x6df6ad76,0x769188cc,0x4c25f502,0xd7fc4fe5,0xcbd7c52a,0x44802635,0xa38fb562,0x5a49deb1,0x1b6725ba,0xe9845ea,0xc0e15dfe,0x7502c32f,0xf012814c,0x97a38d46,0xf9c66bd3,0x5fe7038f,0x9c951592,0x7aebbf6d,0x59da9552,0x832dd4be,0x21d35874,0x692949e0,0xc8448ec9,0x896a75c2,0x7978f48e,1047239e3,0x71dd27b9,0x4fb6bee1,0xad17f088,0xac66c920,0x3ab47dce,0x4a1863df,0x3182e51a,0x33609751,0x7f456253,0x77e0b164,0xae84bb6b,0xa01cfe81,0x2b94f908,0x68587048,0xfd198f45,0x6c8794de,0xf8b7527b,0xd323ab73,0x2e2724b,0x8f57e31f,0xab2a6655,0x2807b2eb,0xc2032fb5,0x7b9a86c5,0x8a5d337,0x87f23028,0xa5b223bf,0x6aba0203,0x825ced16,0x1c2b8acf,0xb492a779,0xf2f0f307,0xe2a14e69,0xf4cd65da,0xbed50605,0x621fd134,0xfe8ac4a6,0x539d342e,0x55a0a2f3,0xe132058a,0xeb75a4f6,0xec390b83,0xefaa4060,0x9f065e71,0x1051bd6e,0x8af93e21,0x63d96dd,0x5aedd3e,0xbd464de6,0x8db59154,0x5d0571c4,0xd46f0406,0x15ff6050,0xfb241998,0xe997d6bd,0x43cc8940,0x9e7767d9,0x42bdb0e8,0x8b880789,0x5b38e719,0xeedb79c8,0xa47a17c,0xfe97c42,0x1ec9f884,0,0x86830980,0xed48322b,0x70ac1e11,0x724e6c5a,0xfffbfd0e,0x38560f85,0xd51e3dae,0x3927362d,0xd9640a0f,0xa621685c,0x54d19b5b,0x2e3a2436,0x67b10c0a,0xe70f9357,0x96d2b4ee,0x919e1b9b,0xc54f80c0,0x20a261dc,0x4b695a77,0x1a161c12,0xba0ae293,0x2ae5c0a0,0xe0433c22,0x171d121b,0xd0b0e09,0xc7adf28b,0xa8b92db6,0xa9c8141e,0x198557f
20511,0x74caf75,0xddbbee99,0x60fda37f,0x269ff701,0xf5bc5c72,0x3bc54466,0x7e345bfb,0x29768b43,0xc6dccb23,0xfc68b6ed,0xf163b8e4,0xdccad731,0x85104263,0x22401397,0x112084c6,0x247d854a,0x3df8d2bb,0x3211aef9,0xa16dc729,0x2f4b1d9e,0x30f3dcb2,0x52ec0d86,0xe3d077c1,0x166c2bb3,0xb999a970,0x48fa1194,0x642247e9,0x8cc4a8fc,0x3f1aa0f0,0x2cd8567d,0x90ef2233,0x4ec78749,0xd1c1d938,0xa2fe8cca,0xb3698d4,0x81cfa6f5,0xde28a57a,0x8e26dab7,0xbfa43fad,0x9de42c3a,0x920d5078,0xcc9b6a5f,0x4662547e,0x13c2f68d,0xb8e890d8,0xf75e2e39,0xaff582c3,0x80be9f5d,0x937c69d0,0x2da96fd5,0x12b3cf25,0x993bc8ac,0x7da71018,0x636ee89c,0xbb7bdb3b,0x7809cd26,0x18f46e59,0xb701ec9a,0x9aa8834f,0x6e65e695,0xe67eaaff,0xcf0821bc,0xe8e6ef15,0x9bd9bae7,0x36ce4a6f,0x9d4ea9f,0x7cd629b0,0xb2af31a4,0x23312a3f,0x9430c6a5,0x66c035a2,0xbc37744e,0xcaa6fc82,0xd0b0e090,0xd81533a7,0x984af104,0xdaf741ec,0x500e7fcd,0xf62f1791,0xd68d764d,0xb04d43ef,0x4d54ccaa,0x4dfe496,0xb5e39ed1,0x881b4c6a,0x1fb8c12c,0x517f4665,0xea049d5e,0x355d018c,0x7473fa87,0x412efb0b,0x1d5ab367,0xd25292db,0x5633e910,0x47136dd6,0x618c9ad7,0xc7a37a1,0x148e59f8,0x3c89eb13,0x27eecea9,0xc935b761,0xe5ede11c,0xb13c7a47,0xdf599cd2,0x733f55f2,0xce791814,0x37bf73c7,0xcdea53f7,0xaa5b5ffd,0x6f14df3d,0xdb867844,0xf381caaf,0xc43eb968,0x342c3824,0x405fc2a3,0xc372161d,0x250cbce2,0x498b283c,0x9541ff0d,0x17139a8,0xb3de080c,0xe49cd8b4,0xc1906456,0x84617bcb,0xb670d532,0x5c74486c,0x5742d0b8],gg=[0xf4a75051,0x4165537e,0x17a4c31a,0x275e963a,0xab6bcb3b,0x9d45f11f,0xfa58abac,0xe303934b,0x30fa5520,0x766df6ad,0xcc769188,0x24c25f5,0xe5d7fc4f,0x2acbd7c5,0x35448026,0x62a38fb5,0xb15a49de,0xba1b6725,0xea0e9845,0xfec0e15d,0x2f7502c3,0x4cf01281,0x4697a38d,0xd3f9c66b,0x8f5fe703,0x929c9515,0x6d7aebbf,0x5259da95,0xbe832dd4,0x7421d358,0xe0692949,0xc9c8448e,0xc2896a75,0x8e7978f4,0x583e6b99,0xb971dd27,0xe14fb6be,0x88ad17f0,0x20ac66c9,0xce3ab47d,0xdf4a1863,0x1a3182e5,0x51336097,0x537f4562,0x6477e0b1,0x6bae84bb,0x81a01cfe,0x82b94f9,0x48685870,0x45fd198f,0xde6c8794,0x7bf8b752,0x73d323ab,0x4b02e272,0x1f8f57e3,0x55ab2a66,0xeb2807b2,0xb5c2032f,0xc57b9a86,0x3708a5d3,679998e3,0xbfa5b223,0x36aba02,0x16825ced,0xcf1c2b8a,0x79b492a7,0x7f2f0f3,0x69e2a14e,0xdaf4cd65,0x5bed506,0x34621fd1,0xa6fe8ac4,0x2e539d34,0xf355a0a2,0x8ae13205,0xf6eb75a4,0x83ec390b,0x60efaa40,0x719f065e,0x6e1051bd,0x218af93e,0xdd063d96,0x3e05aedd,0xe6bd464d,0x548db591,0xc45d0571,0x6d46f04,0x5015ff60,0x98fb2419,0xbde997d6,0x4043cc89,0xd99e7767,0xe842bdb0,0x898b8807,0x195b38e7,0xc8eedb79,0x7c0a47a1,0x420fe97c,0x841ec9f8,0,0x80868309,0x2bed4832,0x1170ac1e,0x5a724e6c,0xefffbfd,0x8538560f,0xaed51e3d,0x2d392736,0xfd9640a,0x5ca62168,0x5b54d19b,0x362e3a24,0xa67b10c,0x57e70f93,0xee96d2b4,0x9b919e1b,0xc0c54f80,0xdc20a261,0x774b695a,0x121a161c,0x93ba0ae2,0xa02ae5c0,0x22e0433c,0x1b171d12,0x90d0b0e,0x8bc7adf2,0xb6a8b92d,0x1ea9c814,0xf1198557,0x75074caf,0x99ddbbee,0x7f60fda3,0x1269ff7,0x72f5bc5c,0x663bc544,0xfb7e345b,0x4329768b,0x23c6dccb,0xedfc68b6,0xe4f163b8,0x31dccad7,0x63851042,0x97224013,0xc6112084,0x4a247d85,0xbb3df8d2,0xf93211ae,0x29a16dc7,0x9e2f4b1d,0xb230f3dc,0x8652ec0d,0xc1e3d077,0xb3166c2b,0x70b999a9,0x9448fa11,0xe9642247,0xfc8cc4a8,0xf03f1aa0,0x7d2cd856,0x3390ef22,0x494ec787,0x38d1c1d9,0xcaa2fe8c,0xd40b3698,0xf581cfa6,0x7ade28a5,0xb78e26da,0xadbfa43f,0x3a9de42c,0x78920d50,0x5fcc9b6a,0x7e466254,0x8d13c2f6,0xd8b8e890,0x39f75e2e,0xc3aff582,0x5d80be9f,0xd0937c69,0xd52da96f,0x2512b3cf,0xac993bc8,0x187da710,0x9c636ee8,0x3bbb7bdb,0x267809cd,0x5918f46e,0x9ab701ec,0x4f9aa883,0x956e65e6,0xffe67eaa,0xbccf0821,0x15e8e6ef,0xe79bd9ba,0x6f36ce4a,0x9f09d4ea,0xb07cd629,0xa4b2af31,0x3f23312a,0xa59430c6,0xa266c035,0x4ebc3774,0x82caa6fc,0x90d0b0e0,0xa7d81533,0x4984af1,0xecdaf741,0xcd500e7f,0x91f62f17,0x4dd68d76,0xefb04d43,0xaa4d54cc,0x9604dfe4,0xd1b5e39e,0x6a881b4c,0x2c1fb8c1,0x65517f46,0x5eea049d,0x8c355d01,0x877473fa,0xb412efb,0x671d5ab3,0xdbd25292,0x105633e9,0
2051xd647136d,0xd7618c9a,0xa10c7a37,0xf8148e59,0x133c89eb,0xa927eece,0x61c935b7,0x1ce5ede1,0x47b13c7a,0xd2df599c,0xf2733f55,0x14ce7918,0xc737bf73,0xf7cdea53,0xfdaa5b5f,0x3d6f14df,0x44db8678,0xaff381ca,0x68c43eb9,0x24342c38,0xa3405fc2,0x1dc37216,0xe2250cbc,0x3c498b28,0xd9541ff,0xa8017139,0xcb3de08,0xb4e49cd8,0x56c19064,0xcb84617b,0x32b670d5,0x6c5c7448,0xb85742d0],gf=[0,0xe090d0b,0x1c121a16,0x121b171d,0x3824342c,0x362d3927,0x24362e3a,0x2a3f2331,0x70486858,0x7e416553,0x6c5a724e,0x62537f45,0x486c5c74,0x4665517f,0x547e4662,0x5a774b69,0xe090d0b0,0xee99ddbb,0xfc82caa6,0xf28bc7ad,0xd8b4e49c,0xd6bde997,0xc4a6fe8a,0xcaaff381,0x90d8b8e8,0x9ed1b5e3,0x8ccaa2fe,0x82c3aff5,0xa8fc8cc4,0xa6f581cf,0xb4ee96d2,0xbae79bd9,0xdb3bbb7b,0xd532b670,0xc729a16d,0xc920ac66,0xe31f8f57,0xed16825c,0xff0d9541,0xf104984a,0xab73d323,0xa57ade28,0xb761c935,0xb968c43e,0x9357e70f,0x9d5eea04,0x8f45fd19,0x814cf012,0x3bab6bcb,0x35a266c0,0x27b971dd,0x29b07cd6,0x38f5fe7,0xd8652ec,0x1f9d45f1,0x119448fa,0x4be30393,0x45ea0e98,0x57f11985,0x59f8148e,0x73c737bf,0x7dce3ab4,0x6fd52da9,0x61dc20a2,0xad766df6,0xa37f60fd,0xb16477e0,0xbf6d7aeb,0x955259da,0x9b5b54d1,0x894043cc,0x87494ec7,0xdd3e05ae,0xd33708a5,0xc12c1fb8,0xcf2512b3,0xe51a3182,0xeb133c89,0xf9082b94,0xf701269f,0x4de6bd46,0x43efb04d,0x51f4a750,0x5ffdaa5b,0x75c2896a,0x7bcb8461,0x69d0937c,0x67d99e77,0x3daed51e,0x33a7d815,0x21bccf08,0x2fb5c203,0x58ae132,0xb83ec39,0x1998fb24,0x1791f62f,0x764dd68d,0x7844db86,0x6a5fcc9b,0x6456c190,0x4e69e2a1,0x4060efaa,0x527bf8b7,0x5c72f5bc,0x605bed5,0x80cb3de,0x1a17a4c3,0x141ea9c8,0x3e218af9,0x302887f2,0x223390ef,0x2c3a9de4,0x96dd063d,0x98d40b36,0x8acf1c2b,0x84c61120,0xaef93211,0xa0f03f1a,0xb2eb2807,0xbce2250c,0xe6956e65,0xe89c636e,0xfa877473,0xf48e7978,0xdeb15a49,0xd0b85742,0xc2a3405f,0xccaa4d54,0x41ecdaf7,0x4fe5d7fc,0x5dfec0e1,0x53f7cdea,0x79c8eedb,0x77c1e3d0,0x65daf4cd,0x6bd3f9c6,0x31a4b2af,0x3fadbfa4,0x2db6a8b9,0x23bfa5b2,0x9808683,0x7898b88,0x15929c95,0x1b9b919e,0xa17c0a47,0xaf75074c,0xbd6e1051,0xb3671d5a,0x99583e6b,0x97513360,0x854a247d,0x8b432976,0xd134621f,0xdf3d6f14,0xcd267809,0xc32f7502,0xe9105633,0xe7195b38,0xf5024c25,0xfb0b412e,0x9ad7618c,0x94de6c87,0x86c57b9a,0x88cc7691,0xa2f355a0,0xacfa58ab,0xbee14fb6,0xb0e842bd,0xea9f09d4,0xe49604df,0xf68d13c2,0xf8841ec9,0xd2bb3df8,0xdcb230f3,0xcea927ee,0xc0a02ae5,0x7a47b13c,0x744ebc37,0x6655ab2a,0x685ca621,0x42638510,0x4c6a881b,0x5e719f06,0x5078920d,0xa0fd964,0x406d46f,0x161dc372,0x1814ce79,0x322bed48,0x3c22e043,0x2e39f75e,0x2030fa55,0xec9ab701,0xe293ba0a,0xf088ad17,0xfe81a01c,0xd4be832d,0xdab78e26,0xc8ac993b,0xc6a59430,0x9cd2df59,0x92dbd252,0x80c0c54f,0x8ec9c844,0xa4f6eb75,0xaaffe67e,0xb8e4f163,0xb6edfc68,0xc0a67b1,0x2036aba,0x10187da7,0x1e1170ac,0x342e539d,0x3a275e96,0x283c498b,0x26354480,0x7c420fe9,0x724b02e2,0x605015ff,0x6e5918f4,0x44663bc5,0x4a6f36ce,0x587421d3,0x567d2cd8,0x37a10c7a,0x39a80171,0x2bb3166c,0x25ba1b67,0xf853856,0x18c355d,0x13972240,0x1d9e2f4b,0x47e96422,0x49e06929,0x5bfb7e34,0x55f2733f,0x7fcd500e,0x71c45d05,0x63df4a18,0x6dd64713,0xd731dcca,0xd938d1c1,0xcb23c6dc,0xc52acbd7,0xef15e8e6,0xe11ce5ed,0xf307f2f0,0xfd0efffb,0xa779b492,0xa970b999,0xbb6bae84,0xb562a38f,0x9f5d80be,0x91548db5,0x834f9aa8,0x8d4697a3],gb=[0,0xb0e090d,0x161c121a,0x1d121b17,0x2c382434,0x27362d39,0x3a24362e,0x312a3f23,0x58704868,0x537e4165,0x4e6c5a72,0x4562537f,0x74486c5c,0x7f466551,0x62547e46,0x695a774b,0xb0e090d0,0xbbee99dd,0xa6fc82ca,0xadf28bc7,0x9cd8b4e4,0x97d6bde9,0x8ac4a6fe,0x81caaff3,0xe890d8b8,0xe39ed1b5,0xfe8ccaa2,0xf582c3af,0xc4a8fc8c,0xcfa6f581,0xd2b4ee96,0xd9bae79b,0x7bdb3bbb,0x70d532b6,0x6dc729a1,0x66c920ac,0x57e31f8f,0x5ced1682,0x41ff0d95,0x4af10498,0x23ab73d3,0x28a57ade,0x35b761c9,0x3eb968c4,0xf9357e7,0x49d5eea,0x198f45fd,0x12814cf0,0xcb3bab6b,0xc035a266,0xdd27b971,0xd629b07c,0xe7038f5f,0xec0d8652,0xf11f9d45,0xfa119448,0x934be303,0x9845ea0e,0x8557f119,0x8e59f814,0xbf73c737,0xb47dce3a,0xa96fd52d,0xa261dc20,0xf6ad766d,0xfda37f60,0xe0b16477,0xebbf6d7a,0xda955259,0xd19b5b54,0xcc894043,0xc787494e,0xaedd3e05,0xa5d33708,0xb8c12c1f,0xb3cf2512,0x82e51a31,0x89eb133c,0x94f9082b,0x9ff70126,0x464de6bd,0x4d43efb0,0x5051f4a7,0x5b5ffdaa,0x6a75c289,0x617bcb84,0x7c69d093,0x7767d99e,0x1e3daed5,0x1533a7d8,0x821bccf,0x32fb5c2,0x32058ae1,0x390b83ec,0x241998fb,0x2f1791f6,0x8d764dd6,0x867844db,0x9b6a5fcc,0x906456c1,
20510xa14e69e2,0xaa4060ef,0xb7527bf8,0xbc5c72f5,0xd50605be,0xde080cb3,0xc31a17a4,0xc8141ea9,0xf93e218a,0xf2302887,0xef223390,0xe42c3a9d,0x3d96dd06,0x3698d40b,0x2b8acf1c,0x2084c611,0x11aef932,0x1aa0f03f,0x7b2eb28,0xcbce225,0x65e6956e,0x6ee89c63,0x73fa8774,0x78f48e79,0x49deb15a,0x42d0b857,0x5fc2a340,0x54ccaa4d,0xf741ecda,0xfc4fe5d7,0xe15dfec0,0xea53f7cd,0xdb79c8ee,0xd077c1e3,0xcd65daf4,0xc66bd3f9,0xaf31a4b2,0xa43fadbf,0xb92db6a8,0xb223bfa5,0x83098086,0x8807898b,0x9515929c,0x9e1b9b91,0x47a17c0a,0x4caf7507,0x51bd6e10,0x5ab3671d,0x6b99583e,0x60975133,0x7d854a24,0x768b4329,0x1fd13462,0x14df3d6f,0x9cd2678,0x2c32f75,0x33e91056,0x38e7195b,0x25f5024c,0x2efb0b41,0x8c9ad761,0x8794de6c,0x9a86c57b,0x9188cc76,0xa0a2f355,0xabacfa58,0xb6bee14f,0xbdb0e842,0xd4ea9f09,0xdfe49604,0xc2f68d13,0xc9f8841e,0xf8d2bb3d,0xf3dcb230,0xeecea927,0xe5c0a02a,0x3c7a47b1,0x37744ebc,0x2a6655ab,0x21685ca6,0x10426385,0x1b4c6a88,0x65e719f,0xd507892,0x640a0fd9,0x6f0406d4,0x72161dc3,0x791814ce,0x48322bed,0x433c22e0,0x5e2e39f7,0x552030fa,0x1ec9ab7,0xae293ba,0x17f088ad,0x1cfe81a0,0x2dd4be83,0x26dab78e,0x3bc8ac99,0x30c6a594,0x599cd2df,0x5292dbd2,0x4f80c0c5,0x448ec9c8,0x75a4f6eb,0x7eaaffe6,0x63b8e4f1,0x68b6edfc,0xb10c0a67,0xba02036a,0xa710187d,0xac1e1170,0x9d342e53,0x963a275e,0x8b283c49,0x80263544,0xe97c420f,0xe2724b02,0xff605015,0xf46e5918,0xc544663b,0xce4a6f36,0xd3587421,0xd8567d2c,0x7a37a10c,0x7139a801,0x6c2bb316,0x6725ba1b,0x560f8538,0x5d018c35,0x40139722,0x4b1d9e2f,0x2247e964,0x2949e069,0x345bfb7e,0x3f55f273,0xe7fcd50,0x571c45d,0x1863df4a,0x136dd647,0xcad731dc,0xc1d938d1,0xdccb23c6,0xd7c52acb,0xe6ef15e8,0xede11ce5,0xf0f307f2,0xfbfd0eff,0x92a779b4,0x99a970b9,0x84bb6bae,0x8fb562a3,0xbe9f5d80,0xb591548d,0xa8834f9a,0xa38d4697],gy=[0,0xd0b0e09,0x1a161c12,0x171d121b,0x342c3824,0x3927362d,0x2e3a2436,0x23312a3f,0x68587048,0x65537e41,0x724e6c5a,0x7f456253,0x5c74486c,0x517f4665,0x4662547e,0x4b695a77,0xd0b0e090,0xddbbee99,0xcaa6fc82,0xc7adf28b,0xe49cd8b4,0xe997d6bd,0xfe8ac4a6,0xf381caaf,0xb8e890d8,0xb5e39ed1,0xa2fe8cca,0xaff582c3,0x8cc4a8fc,0x81cfa6f5,0x96d2b4ee,0x9bd9bae7,0xbb7bdb3b,0xb670d532,0xa16dc729,0xac66c920,0x8f57e31f,0x825ced16,0x9541ff0d,0x984af104,0xd323ab73,0xde28a57a,0xc935b761,0xc43eb968,0xe70f9357,0xea049d5e,0xfd198f45,0xf012814c,0x6bcb3bab,0x66c035a2,0x71dd27b9,0x7cd629b0,0x5fe7038f,0x52ec0d86,0x45f11f9d,0x48fa1194,0x3934be3,0xe9845ea,0x198557f1,0x148e59f8,0x37bf73c7,0x3ab47dce,0x2da96fd5,0x20a261dc,0x6df6ad76,0x60fda37f,0x77e0b164,0x7aebbf6d,0x59da9552,0x54d19b5b,0x43cc8940,0x4ec78749,0x5aedd3e,0x8a5d337,0x1fb8c12c,0x12b3cf25,0x3182e51a,0x3c89eb13,0x2b94f908,0x269ff701,0xbd464de6,0xb04d43ef,0xa75051f4,0xaa5b5ffd,0x896a75c2,0x84617bcb,0x937c69d0,0x9e7767d9,0xd51e3dae,0xd81533a7,0xcf0821bc,0xc2032fb5,0xe132058a,0xec390b83,0xfb241998,0xf62f1791,0xd68d764d,0xdb867844,0xcc9b6a5f,0xc1906456,0xe2a14e69,0xefaa4060,0xf8b7527b,0xf5bc5c72,0xbed50605,0xb3de080c,0xa4c31a17,0xa9c8141e,0x8af93e21,0x87f23028,0x90ef2233,0x9de42c3a,0x63d96dd,0xb3698d4,0x1c2b8acf,0x112084c6,0x3211aef9,0x3f1aa0f0,0x2807b2eb,0x250cbce2,0x6e65e695,0x636ee89c,0x7473fa87,0x7978f48e,0x5a49deb1,0x5742d0b8,0x405fc2a3,0x4d54ccaa,0xdaf741ec,0xd7fc4fe5,0xc0e15dfe,0xcdea53f7,0xeedb79c8,0xe3d077c1,0xf4cd65da,0xf9c66bd3,0xb2af31a4,0xbfa43fad,0xa8b92db6,0xa5b223bf,0x86830980,0x8b880789,0x9c951592,0x919e1b9b,0xa47a17c,0x74caf75,0x1051bd6e,0x1d5ab367,1047239e3,0x33609751,0x247d854a,0x29768b43,0x621fd134,0x6f14df3d,0x7809cd26,0x7502c32f,0x5633e910,0x5b38e719,0x4c25f502,0x412efb0b,0x618c9ad7,0x6c8794de,0x7b9a86c5,0x769188cc,0x55a0a2f3,0x58abacfa,0x4fb6bee1,0x42bdb0e8,0x9d4ea9f,0x4dfe496,0x13c2f68d,0x1ec9f884,0x3df8d2bb,0x30f3dcb2,0x27eecea9,0x2ae5c0a0,0xb13c7a47,0xbc37744e,0xab2a6655,0xa621685c,0x85104263,0x881b4c6a,0x9f065e71,0x920d5078,0xd9640a0f,0xd46f0406,0xc372161d,0xce791814,0xed48322b,0xe0433c22,0xf75e2e39,0xfa552030,0xb701ec9a,0xba0ae293,0xad17f088,0xa01cfe81,0x832dd4be,0x8e26dab7,0x993bc8ac,0x9430c6a5,0xdf599cd2,0xd25292db,0xc54f80c0,0xc8448ec9,0xeb75a4f6,0xe67eaaff,0xf163b8e4,0xfc68b6ed,0x67b10c0a,0x6aba0203,0x7da71018,0x70ac1e11,0x539d342e,0x5e963a27,0x498b283c,0x44802635,0xfe97c42,0x2e2724b,0x15ff6050,0x18f46e59,0x3bc54466,0x36ce4a6f,0x21d35874,0x2cd8567d,0xc7a37a1,0x17139a8,0x166c2bb3,0x1b6725ba,0x38560f85,0x355d018c,0x22401397,0x2f4b1d9e,0x642247e9,0x692949e0,0x7e345bfb,0x733f55f2,0x500e7fcd,0x5d0571c4,0x4a1863df,0x47136dd6,0xdccad731,0xd1c1d938,0xc6dccb23,0xcbd7c52a,0xe8e6ef15,0xe5ede11c,0xf2f0f307,0xfffbfd0e,0xb492a779,0xb999a970,0xae84bb6b,0xa38fb562,0x80be9f5d,0x8db59154,0x9aa8834f,0x97a38d46],gk=[0,0x90d0b0e,0x121a161c,0x1b171d12,0x24342c38,0x2d392736,0x362e3a24,0x3f23312a,0x48685870,0x4165537e,0x5a724e6c,0x537f4562,0x6c5c7448,0x65517f46,0x7e466254,0x774b695a,0x90d0b0e0,0x99ddbbee,0x82caa6fc,0x8bc7adf2,0xb4e49cd8,0xbde997d6,0xa6fe8ac4,0xaff381ca,0xd8b8e890,0xd1b5e39e,0xcaa2fe8c,0xc3aff582,0xfc8cc4a8,0xf581cfa6,0xee96d2b4,0xe79bd9ba,0x3bbb7bdb,0x32b670d5,0x29a16dc7,0x20ac66c9,0x1f8f57e3,0x16825ced,0xd9541ff,0x4984af1,0x73d323ab,0x7ade28a5,0x61c935b7,0x68c43eb9,0x57e70f93,0x5eea049d,0x45fd198f,0x4cf01281,0xab6bcb3b,0xa266c035,0xb971dd27,0xb07cd629,0
2051x8f5fe703,0x8652ec0d,0x9d45f11f,0x9448fa11,0xe303934b,0xea0e9845,0xf1198557,0xf8148e59,0xc737bf73,0xce3ab47d,0xd52da96f,0xdc20a261,0x766df6ad,0x7f60fda3,0x6477e0b1,0x6d7aebbf,0x5259da95,0x5b54d19b,0x4043cc89,0x494ec787,0x3e05aedd,0x3708a5d3,0x2c1fb8c1,0x2512b3cf,0x1a3182e5,0x133c89eb,0x82b94f9,0x1269ff7,0xe6bd464d,0xefb04d43,0xf4a75051,0xfdaa5b5f,0xc2896a75,0xcb84617b,0xd0937c69,0xd99e7767,0xaed51e3d,0xa7d81533,0xbccf0821,0xb5c2032f,0x8ae13205,0x83ec390b,0x98fb2419,0x91f62f17,0x4dd68d76,0x44db8678,0x5fcc9b6a,0x56c19064,0x69e2a14e,0x60efaa40,0x7bf8b752,0x72f5bc5c,0x5bed506,0xcb3de08,0x17a4c31a,0x1ea9c814,0x218af93e,679998e3,0x3390ef22,0x3a9de42c,0xdd063d96,0xd40b3698,0xcf1c2b8a,0xc6112084,0xf93211ae,0xf03f1aa0,0xeb2807b2,0xe2250cbc,0x956e65e6,0x9c636ee8,0x877473fa,0x8e7978f4,0xb15a49de,0xb85742d0,0xa3405fc2,0xaa4d54cc,0xecdaf741,0xe5d7fc4f,0xfec0e15d,0xf7cdea53,0xc8eedb79,0xc1e3d077,0xdaf4cd65,0xd3f9c66b,0xa4b2af31,0xadbfa43f,0xb6a8b92d,0xbfa5b223,0x80868309,0x898b8807,0x929c9515,0x9b919e1b,0x7c0a47a1,0x75074caf,0x6e1051bd,0x671d5ab3,0x583e6b99,0x51336097,0x4a247d85,0x4329768b,0x34621fd1,0x3d6f14df,0x267809cd,0x2f7502c3,0x105633e9,0
2051x195b38e7,0x24c25f5,0xb412efb,0xd7618c9a,0xde6c8794,0xc57b9a86,0xcc769188,0xf355a0a2,0xfa58abac,0xe14fb6be,0xe842bdb0,0x9f09d4ea,0x9604dfe4,0x8d13c2f6,0x841ec9f8,0xbb3df8d2,0xb230f3dc,0xa927eece,0xa02ae5c0,0x47b13c7a,0x4ebc3774,0x55ab2a66,0x5ca62168,0x63851042,0x6a881b4c,0x719f065e,0x78920d50,0xfd9640a,0x6d46f04,0x1dc37216,0x14ce7918,0x2bed4832,0x22e0433c,0x39f75e2e,0x30fa5520,0x9ab701ec,0x93ba0ae2,0x88ad17f0,0x81a01cfe,0xbe832dd4,0xb78e26da,0xac993bc8,0xa59430c6,0xd2df599c,0xdbd25292,0xc0c54f80,0xc9c8448e,0xf6eb75a4,0xffe67eaa,0xe4f163b8,0xedfc68b6,0xa67b10c,0x36aba02,0x187da710,0x1170ac1e,0x2e539d34,0x275e963a,0x3c498b28,0x35448026,0x420fe97c,0x4b02e272,0x5015ff60,0x5918f46e,0x663bc544,0x6f36ce4a,0x7421d358,0x7d2cd856,0xa10c7a37,0xa8017139,0xb3166c2b,0xba1b6725,0x8538560f,0x8c355d01,0x97224013,0x9e2f4b1d,0xe9642247,0xe0692949,0xfb7e345b,0xf2733f55,0xcd500e7f,0xc45d0571,0xdf4a1863,0xd647136d,0x31dccad7,0x38d1c1d9,0x23c6dccb,0x2acbd7c5,0x15e8e6ef,0x1ce5ede1,0x7f2f0f3,0xefffbfd,0x79b492a7,0x70b999a9,0x6bae84bb,0x62a38fb5,0x5d80be9f,0x548db591,0x4f9aa883,0x4697a38d];function gx(e){let t=[];for(let r=0;r<e.length;r+=4)t.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return t}var gw=class e{get key(){return gr(this,f,"f").slice()}constructor(t){let r;if(f.set(this,void 0),b.set(this,void 0),y.set(this,void 0),!(this instanceof e))throw Error("AES must be instanitated with `new`");ga(this,f,new Uint8Array(t));let a=gn[this.key.length];if(null==a)throw TypeError("invalid key size (must be 16, 24 or 32 bytes)");ga(this,y,[]),ga(this,b,[]);for(let e=0;e<=a;e++)gr(this,y,"f").push([0,0,0,0]),gr(this,b,"f").push([0,0,0,0]);let n=(a+1)*4,i=this.key.length/4,o=gx(this.key);for(let e=0;e<i;e++)r=e>>2,gr(this,y,"f")[r][e%4]=o[e],gr(this,b,"f")[a-r][e%4]=o[e];let s=0,l=i,c;for(;l<n;){if(c=o[i-1],o[0]^=go[c>>16&255]<<24^go[c>>8&255]<<16^go[255&c]<<8^go[c>>24&255]^gi[s]<<24,s+=1,8!=i)for(let e=1;e<i;e++)o[e]^=o[e-1];else{for(let e=1;e<i/2;e++)o[e]^=o[e-1];c=o[i/2-1],o[i/2]^=go[255&c]^go[c>>8&255]<<8^go[c>>16&255]<<16^go[c>>24&255]<<24;for(let e=i/2+1;e<i;e++)o[e]^=o[e-1]}let e=0,t,r;for(;e<i&&l<n;)t=l>>2,r=l%4,gr(this,y,"f")[t][r]=o[e],gr(this,b,"f")[a-t][r]=o[e++],l++}for(let e=1;e<a;e++)for(let t=0;t<4;t++)c=gr(this,b,"f")[e][t],gr(this,b,"f")[e][t]=gf[c>>24&255]^gb[c>>16&255]^gy[c>>8&255]^gk[255&c]}encrypt(e){if(16!=e.length)throw TypeError("invalid plaintext size (must be 16 bytes)");let t=gr(this,y,"f").length-1,r=[0,0,0,0],a=gx(e);for(let e=0;e<4;e++)a[e]^=gr(this,y,"f")[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)r[t]=gl[a[t]>>24&255]^gc[a[(t+1)%4]>>16&255]^gd[a[(t+2)%4]>>8&255]^gp[255&a[(t+3)%4]]^gr(this,y,"f")[e][t];a=r.slice()}let n=new Uint8Array(16),i=0;for(let e=0;e<4;e++)i=gr(this,y,"f")[t][e],n[4*e]=(go[a[e]>>24&255]^i>>24)&255,n[4*e+1]=(go[a[(e+1)%4]>>16&255]^i>>16)&255,n[4*e+2]=(go[a[(e+2)%4]>>8&255]^i>>8)&255,n[4*e+3]=(go[255&a[(e+3)%4]]^i)&255;return n}decrypt(e){if(16!=e.length)throw TypeError("invalid ciphertext size (must be 16 bytes)");let t=gr(this,b,"f").length-1,r=[0,0,0,0],a=gx(e);for(let e=0;e<4;e++)a[e]^=gr(this,b,"f")[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)r[t]=gu[a[t]>>24&255]^gm[a[(t+3)%4]>>16&255]^gh[a[(t+2)%4]>>8&255]^gg[255&a[(t+1)%4]]^gr(this,b,"f")[e][t];a=r.slice()}let n=new Uint8Array(16),i=0;for(let e=0;e<4;e++)i=gr(this,b,"f")[t][e],n[4*e]=(gs[a[e]>>24&255]^i>>24)&255,n[4*e+1]=(gs[a[(e+3)%4]>>16&255]^i>>16)&255,n[4*e+2]=(gs[a[(e+2)%4]>>8&255]^i>>8)&255,n[4*e+3]=(gs[255&a[(e+1)%4]]^i)&255;return n}};f=new WeakMap,b=new WeakMap,y=new WeakMap;var gv=class{constructor(e,t,r){if(r&&!(this instanceof r))throw Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new gw(t)},name:{enumerable:!0,value:e}})}},gT=function(e,t,r,a,n){if("function"==typeof t||!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r},gE=function(e,t,r,a){if("function"==typeof t||!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)},gB=class e extends gv{constructor(t,r){if(super("ECC",t,e),k.set(this,void 0),x.set(this,void 0),r){if(r.length%16)throw TypeError("invalid iv size (must be 16 bytes)");gT(this,k,new Uint8Array(r))}else gT(this,k,new Uint8Array(16));gT(this,x,this.iv)}get iv(){return new Uint8Array(gE(this,k))}encrypt(e){if(e.length%16)throw TypeError("invalid plaintext size (must be multiple of 16 bytes)");let t=new Uint8Array(e.length);for(let r=0;r<e.length;r+=16){for(let t=0;t<16;t++)gE(this,x)[t]^=e[r+t];
2051gT(this,x,this.aes.encrypt(gE(this,x))),t.set(gE(this,x),r)}return t}decrypt(e){if(e.length%16)throw TypeError("invalid ciphertext size (must be multiple of 16 bytes)");let t=new Uint8Array(e.length);for(let r=0;r<e.length;r+=16){let a=this.aes.decrypt(e.subarray(r,r+16));for(let n=0;n<16;n++)t[r+n]=a[n]^gE(this,x)[n],gE(this,x)[n]=e[r+n]}return t}};k=new WeakMap,x=new WeakMap;var gC=function(e,t,r,a,n){if("function"==typeof t||!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r},gU=function(e,t,r,a){if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?a:"a"===r?a.call(e):a?a.value:t.get(e)},gI=class e extends gv{constructor(t,r){super("CTR",t,e),w.set(this,void 0),v.set(this,void 0),T.set(this,void 0),gC(this,T,new Uint8Array(16)),gU(this,T,"f").fill(0),gC(this,w,gU(this,T,"f")),gC(this,v,16),null==r&&(r=1),"number"==typeof r?this.setCounterValue(r):this.setCounterBytes(r)}get counter(){return new Uint8Array(gU(this,T,"f"))}setCounterValue(e){if(!Number.isInteger(e)||e<0||e>Number.MAX_SAFE_INTEGER)throw TypeError("invalid counter initial integer value");for(let t=15;t>=0;--t)gU(this,T,"f")[t]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(16!==e.length)throw TypeError("invalid counter initial Uint8Array value length");gU(this,T,"f").set(e)}increment(){for(let e=15;e>=0;e--)if(255===gU(this,T,"f")[e])gU(this,T,"f")[e]=0;else{gU(this,T,"f")[e]++;break}}encrypt(e){var t,r;let a=new Uint8Array(e);for(let e=0;e<a.length;e++)16===gU(this,v,"f")&&(gC(this,w,this.aes.encrypt(gU(this,T,"f"))),gC(this,v,0),this.increment()),a[e]^=gU(this,w,"f")[gC(this,v,(r=gU(this,v,"f"),t=r++,r)),t];return a}decrypt(e){return this.encrypt(e)}};function gN(e){return"string"!=typeof e||e.startsWith("0x")||(e="0x"+e),dX(e)}function gR(e,t){for(e=String(e);e.length<t;)e="0"+e;return e}function gS(e){return"string"==typeof e?pd(e,"NFKC"):dX(e)}function gA(e,t){let r=t.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);dq(null!=r,"invalid path","path",t);let a=r[1],n=r[3],i="!"===r[4],o=e;for(let e of a.toLowerCase().split(".")){if(Array.isArray(o)){if(!e.match(/^[0-9]+$/))break;o=o[parseInt(e)]}else if("object"==typeof o){let t=null;for(let r in o)if(r.toLowerCase()===e){t=o[r];break}o=t}else o=null;if(null==o)break}if(dq(!i||null!=o,"missing required value","path",a),n&&null!=o){if("int"===n){if("string"==typeof o&&o.match(/^-?[0-9]+$/))return parseInt(o);else if(Number.isSafeInteger(o))return o}if("number"===n&&"string"==typeof o&&o.match(/^-?[0-9.]*$/))return parseFloat(o);if("data"===n&&"string"==typeof o)return gN(o);if("array"===n&&Array.isArray(o)||n===typeof o)return o;dq(!1,`wrong type found for ${n} `,"path",a)}return o}w=new WeakMap,v=new WeakMap,T=new WeakMap;var gP="m/44'/60'/0'/0/0";function gD(e){try{let t=JSON.parse(e),r=null!=t.version?parseInt(t.version):0;if(3===r)return!0}catch(e){}return!1}function gL(e,t){let r=dQ(t),a=gA(e,"crypto.ciphertext:data!");dq(d2(uf(d3([r.slice(16,32),a]))).substring(2)===gA(e,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");let n=function(e,t,r){if("aes-128-ctr"===gA(e,"crypto.cipher:string"))return d2(new gI(t,gA(e,"crypto.cipherparams.iv:data!")).decrypt(r));dH(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}(e,r.slice(0,16),a),i=hf(n);if(e.address){let t=e.address.toLowerCase();t.startsWith("0x")||(t="0x"+t),dq(hp(t)===i,"keystore address/privateKey mismatch","address",e.address)}let o={address:i,privateKey:n};if("0.1"===gA(e,"x-ethers.version:string")){let t=r.slice(32,64),a=gA(e,"x-ethers.mnemonicCiphertext:data!"),n=new gI(t,gA(e,"x-ethers.mnemonicCounter:data!"));o.mnemonic={path:gA(e,"x-ethers.path:string")||gP,locale:gA(e,"x-ethers.locale:string")||"en",entropy:d2(dQ(n.decrypt(a)))}}return o}function gO(e){let t=gA(e,"crypto.kdf:string");if(t&&"string"==typeof t){if("scrypt"===t.toLowerCase()){let r=gA(e,"crypto.kdfparams.salt:data!"),a=gA(e,"crypto.kdfparams.n:int!"),n=gA(e,"crypto.kdfparams.r:int!"),i=gA(e,"crypto.kdfparams.p:int!");dq(a>0&&(a&a-1)==0,"invalid kdf.N","kdf.N",a),dq(n>0&&i>0,"invalid kdf","kdf",t);let o=gA(e,"crypto.kdfparams.dklen:int!");return dq(32===o,"invalid kdf.dklen","kdf.dflen",o),{name:"scrypt",salt:r,N:a,r:n,p:i,dkLen:64}}else if("pbkdf2"===t.toLowerCase()){let t=gA(e,"crypto.kdfparams.salt:data!"),r=gA(e,"crypto.kdfparams.prf:string!"),a=r.split("-").pop();dq("sha256"===a||"sha512"===a,"invalid kdf.pdf","kdf.pdf",r);let n=gA(e,"crypto.kdfparams.c:int!"),i=gA(e,"crypto.kdfparams.dklen:int!");
2051return dq(32===i,"invalid kdf.dklen","kdf.dklen",i),{name:"pbkdf2",salt:t,count:n,dkLen:i,algorithm:a}}}dq(!1,"unsupported key-derivation function","kdf",t)}function gF(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}async function g_(e,t,r){let a=JSON.parse(e),n=gS(t),i=gO(a);if("pbkdf2"===i.name){r&&(r(0),await gF(0));let{salt:e,count:t,dkLen:o,algorithm:s}=i,l=uM(n,e,t,o,s);return r&&(r(1),await gF(0)),gL(a,l)}dH("scrypt"===i.name,"cannot be reached","UNKNOWN_ERROR",{params:i});let{salt:o,N:s,r:l,p:c,dkLen:d}=i;return gL(a,await u2(n,o,s,l,c,d,r))}function gM(e){let t=null!=e.salt?dQ(e.salt,"options.salt"):uz(32),r=131072,a=8,n=1;return e.scrypt&&(e.scrypt.N&&(r=e.scrypt.N),e.scrypt.r&&(a=e.scrypt.r),e.scrypt.p&&(n=e.scrypt.p)),dq("number"==typeof r&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),dq("number"==typeof a&&a>0&&Number.isSafeInteger(a),"invalid scrypt r parameter","options.r",a),dq("number"==typeof n&&n>0&&Number.isSafeInteger(n),"invalid scrypt p parameter","options.p",n),{name:"scrypt",dkLen:32,salt:t,N:r,r:a,p:n}}function gj(e,t,r,a){let n=dQ(r.privateKey,"privateKey"),i=null!=a.iv?dQ(a.iv,"options.iv"):uz(16);dq(16===i.length,"invalid options.iv length","options.iv",a.iv);let o=null!=a.uuid?dQ(a.uuid,"options.uuid"):uz(16);dq(16===o.length,"invalid options.uuid length","options.uuid",a.iv);let s=e.slice(0,16),l=e.slice(16,32),c=dQ(new gI(s,i).encrypt(n)),d=uf(d3([l,c])),p={address:r.address.substring(2).toLowerCase(),id:function(e){let t=dQ(e,"randomBytes");t[6]=15&t[6]|64,t[8]=63&t[8]|128;let r=d2(t);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}(o),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:d2(i).substring(2)},ciphertext:d2(c).substring(2),kdf:"scrypt",kdfparams:{salt:d2(t.salt).substring(2),n:t.N,dklen:32,p:t.p,r:t.r},mac:d.substring(2)}};if(r.mnemonic){let t=null!=a.client?a.client:`ethers/${d$}`,n=r.mnemonic.path||gP,i=r.mnemonic.locale||"en",o=e.slice(32,64),s=dQ(r.mnemonic.entropy,"account.mnemonic.entropy"),l=uz(16),c=dQ(new gI(o,l).encrypt(s)),d=new Date,u="UTC--"+(d.getUTCFullYear()+"-"+gR(d.getUTCMonth()+1,2)+"-"+gR(d.getUTCDate(),2)+"T"+gR(d.getUTCHours(),2)+"-"+gR(d.getUTCMinutes(),2)+"-"+gR(d.getUTCSeconds(),2))+".0Z--"+p.address;p["x-ethers"]={client:t,gethFilename:u,path:n,locale:i,mnemonicCounter:d2(l).substring(2),mnemonicCiphertext:d2(c).substring(2),version:"0.1"}}return JSON.stringify(p)}function g$(e,t,r){null==r&&(r={});let a=gS(t),n=gM(r);return gj(dQ(u3(a,n.salt,n.N,n.r,n.p,64)),n,e,r)}async function gW(e,t,r){null==r&&(r={});let a=gS(t),n=gM(r);return gj(dQ(await u2(a,n.salt,n.N,n.r,n.p,64,r.progressCallback)),n,e,r)}var gz="m/44'/60'/0'/0/0",gV=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),gH=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");function gq(e,t){let r="";for(;e;)r="0123456789abcdef"[e%16]+r,e=Math.trunc(e/16);for(;r.length<2*t;)r="0"+r;return"0x"+r}function gG(e){let t=dQ(e),r=d8(u4(u4(t)),0,4),a=dQ(d3([t,r])),n=pr(a),i="";for(;n;)i=po[Number(n%pc)]+i,n/=pc;for(let e=0;e<a.length&&!a[e];e++)i=po[0]+i;return i}var gK={};function gJ(e,t,r,a){let n=new Uint8Array(37);0x80000000&e?(dH(null!=a,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),n.set(dQ(a),1)):n.set(dQ(r));for(let t=24;t>=0;t-=8)n[33+(t>>3)]=e>>24-t&255;let i=dQ(p4("sha512",t,n));return{IL:i.slice(0,32),IR:i.slice(32)}}function gZ(e,t){let r=t.split("/");dq(r.length>0,"invalid path","path",t),"m"===r[0]&&(dq(0===e.depth,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${e.depth}`,"path",t),r.shift());let a=e;for(let e=0;e<r.length;e++){let t=r[e];if(t.match(/^[0-9]+'$/)){let r=parseInt(t.substring(0,t.length-1));dq(r<0x80000000,"invalid path index",`path[${e}]`,t),a=a.deriveChild(0x80000000+r)}else if(t.match(/^[0-9]+$/)){let r=parseInt(t);dq(r<0x80000000,"invalid path index",`path[${e}]`,t),a=a.deriveChild(r)}else dq(!1,"invalid path component",`path[${e}]`,t)}return a}var gQ=class e extends hY{publicKey;fingerprint;parentFingerprint;mnemonic;chainCode;path;index;depth;constructor(e,t,r,a,n,i,o,s,l){super(t,l),dJ(e,gK,"HDNodeWallet"),dz(this,{publicKey:t.compressedPublicKey}),dz(this,{parentFingerprint:r,fingerprint:d8(uL(u4(this.publicKey)),0,4),chainCode:a,path:n,index:i,depth:o}),dz(this,{mnemonic:s})}connect(t){return new e(gK,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,t)}#P(){let e={address:this.address,privateKey:this.privateKey},t=this.mnemonic;return this.path&&t&&"en"===t.wordlist.locale&&""===t.password&&(e.mnemonic={path:this.path,locale:"en",entropy:t.entropy}),e}async encrypt(e,t){return await gW(this.#P(),e,{progressCallback:t})}encryptSync(e){return g$(this.#P(),e)}get extendedKey(){return dH(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),gG(d3(["0x0488ADE4",gq(this.depth,1),this.parentFingerprint,gq(this.index,4),this.chainCode,d3(["0x00",this.privateKey])]))}hasPath(){return null!=this.path}neuter(){return new gX(gK,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(t){let r=pa(t,"index");
2051dq(r<=0xffffffff,"invalid index","index",r);let a=this.path;a&&(a+="/"+(0x7fffffff&r),0x80000000&r&&(a+="'"));let{IR:n,IL:i}=gJ(r,this.chainCode,this.publicKey,this.privateKey);return new e(gK,new hi(pn((pr(i)+BigInt(this.privateKey))%gH,32)),this.fingerprint,d2(n),a,r,this.depth+1,this.mnemonic,this.provider)}derivePath(e){return gZ(this,e)}static #D(t,r){dq(d0(t),"invalid seed","seed","[REDACTED]");let a=dQ(t,"seed");dq(a.length>=16&&a.length<=64,"invalid seed","seed","[REDACTED]");let n=dQ(p4("sha512",gV,a));return new e(gK,new hi(d2(n.slice(0,32))),"0x00000000",d2(n.slice(32)),"m",0,0,r,null)}static fromExtendedKey(t){let r=pi(function(e){let t=pl;for(let r=0;r<e.length;r++)t*=pc,t+=function(e){if(null==ps){ps={};for(let e=0;e<po.length;e++)ps[po[e]]=BigInt(e)}let t=ps[e];return dq(null!=t,"invalid base58 value","letter",e),t}(e[r]);return t}(t));dq(82===r.length||gG(r.slice(0,78))===t,"invalid extended key","extendedKey","[ REDACTED ]");let a=r[4],n=d2(r.slice(5,9)),i=parseInt(d2(r.slice(9,13)).substring(2),16),o=d2(r.slice(13,45)),s=r.slice(45,78);switch(d2(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":{let e=d2(s);return new gX(gK,hf(e),e,n,o,null,i,a,null)}case"0x0488ade4":case"0x04358394 ":if(0!==s[0])break;return new e(gK,new hi(s.slice(1)),n,o,null,i,a,null,null)}dq(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(t,r,a){null==t&&(t=""),null==r&&(r=gz),null==a&&(a=h7.wordlist());let n=gt.fromEntropy(uz(16),t,a);return e.#D(n.computeSeed(),n).derivePath(r)}static fromMnemonic(t,r){return r||(r=gz),e.#D(t.computeSeed(),t).derivePath(r)}static fromPhrase(t,r,a,n){null==r&&(r=""),null==a&&(a=gz),null==n&&(n=h7.wordlist());let i=gt.fromPhrase(t,r,n);return e.#D(i.computeSeed(),i).derivePath(a)}static fromSeed(t){return e.#D(t,null)}},gX=class e extends hX{publicKey;fingerprint;parentFingerprint;chainCode;path;index;depth;constructor(e,t,r,a,n,i,o,s,l){super(t,l),dJ(e,gK,"HDNodeVoidWallet"),dz(this,{publicKey:r});let c=d8(uL(u4(r)),0,4);dz(this,{publicKey:r,fingerprint:c,parentFingerprint:a,chainCode:n,path:i,index:o,depth:s})}connect(t){return new e(gK,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,t)}get extendedKey(){return dH(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),gG(d3(["0x0488B21E",gq(this.depth,1),this.parentFingerprint,gq(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return null!=this.path}deriveChild(t){let r=pa(t,"index");dq(r<=0xffffffff,"invalid index","index",r);let a=this.path;a&&(a+="/"+(0x7fffffff&r),0x80000000&r&&(a+="'"));let{IR:n,IL:i}=gJ(r,this.chainCode,this.publicKey,null),o=hi.addPoints(i,this.publicKey,!0);return new e(gK,hf(o),o,this.fingerprint,d2(n),a,r,this.depth+1,this.provider)}derivePath(e){return gZ(this,e)}};function gY(e){try{if(JSON.parse(e).encseed)return!0}catch(e){}return!1}function g0(e,t){let r=JSON.parse(e),a=gS(t),n=hp(gA(r,"ethaddr:string!")),i=gN(gA(r,"encseed:string!"));dq(i&&i.length%16==0,"invalid encseed","json",e);let o=dQ(uM(a,a,2e3,32,"sha256")).slice(0,16),s=i.slice(0,16),l=i.slice(16),c=function(e){if(e.length<16)throw TypeError("PKCS#7 invalid length");let t=e[e.length-1];if(t>16)throw TypeError("PKCS#7 padding byte out of range");let r=e.length-t;for(let a=0;a<t;a++)if(e[r+a]!==t)throw TypeError("PKCS#7 invalid padding byte");return new Uint8Array(e.subarray(0,r))}(dQ(new gB(o,s).decrypt(l))),d="";for(let e=0;e<c.length;e++)d+=String.fromCharCode(c[e]);return{address:n,privateKey:uf(pd(d))}}function g1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}var g2=class e extends hY{constructor(e,t){"string"!=typeof e||e.startsWith("0x")||(e="0x"+e),super("string"==typeof e?new hi(e):e,t)}connect(t){return new e(this.signingKey,t)}async encrypt(e,t){let r={address:this.address,privateKey:this.privateKey};return await gW(r,e,{progressCallback:t})}encryptSync(e){return g$({address:this.address,privateKey:this.privateKey},e)}static #L(t){if(dq(t,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in t&&t.mnemonic&&"en"===t.mnemonic.locale){let e=gt.fromEntropy(t.mnemonic.entropy),r=gQ.fromMnemonic(e,t.mnemonic.path);if(r.address===t.address&&r.privateKey===t.privateKey)return r;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}let r=new e(t.privateKey);return dq(r.address===t.address,"address/privateKey mismatch","json","[ REDACTED ]"),r}static async fromEncryptedJson(t,r,a){let n=null;return gD(t)?n=await g_(t,r,a):gY(t)&&(a&&(a(0),await g1(0)),n=g0(t,r),a&&(a(1),await g1(0))),e.#L(n)}static fromEncryptedJsonSync(t,r){let a=null;return gD(t)?a=function(e,t){let r=JSON.parse(e),a=gS(t),n=gO(r);if("pbkdf2"===n.name){let{salt:e,count:t,dkLen:i,algorithm:o}=n;return gL(r,uM(a,e,t,i,o))}dH("scrypt"===n.name,"cannot be reached","UNKNOWN_ERROR",{params:n});let{salt:i,N:o,r:s,p:l,dkLen:c}=n;return gL(r,u3(a,i,o,s,l,c))}(t,r):gY(t)?a=g0(t,r):dq(!1,"invalid JSON wallet","json","[ REDACTED ]"),e.#L(a)}static createRandom(e){let t=gQ.createRandom();return e?t.connect(e):t}static fromPhrase(e,t){let r=gQ.fromPhrase(e);return t?r.connect(t):r}},g3=new class extends cK{constructor(){super("injective.types.v1beta1.ExtensionOptionsWeb3Tx",[{no:1,name:"typedDataChainID",kind:"scalar",T:4,L:0},{no:2,name:"feePayer",kind:"scalar",T:9},{no:3,name:"feePayerSig",kind:"scalar",T:12}],{"gogoproto.goproto_getters":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.typedDataChainID=0n,t.feePayer="",t.feePayerSig=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.typedDataChainID=e.uint64().toBigInt();break;case 2:n.feePayer=e.string();break;case 3:n.feePayerSig=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.typedDataChainID&&t.tag(1,p.Varint).uint64(e.typedDataChainID),""!==e.feePayer&&t.tag(2,p.LengthDelimited).string(e.feePayer),e.feePayerSig.length&&t.tag(3,p.LengthDelimited).bytes(e.feePayerSig);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},g6=class{constructor(e,t,r){this.typeName=e,this.methods=t.map(e=>(function(e,t){var r,a,n;return e.service=t,e.localName=null!=(r=e.localName)?r:cA(e.name),e.serverStreaming=!!e.serverStreaming,e.clientStreaming=!!e.clientStreaming,e.options=null!=(a=e.options)?a:{},e.idempotency=null!=(n=e.idempotency)?n:void 0,e})(e,this)),this.options=null!=r?r:{}}},g8=class extends Error{constructor(e,t="UNKNOWN",r){super(e),this.name="RpcError",Object.setPrototypeOf(this,new.target.prototype),this.code=t,this.meta=null!=r?r:{}}toString(){let e=[this.name+": "+this.message];this.code&&(e.push(""),e.push("Code: "+this.code)),this.serviceName&&this.methodName&&e.push("Method: "+this.serviceName+"/"+this.methodName);let t=Object.entries(this.meta);if(t.length)for(let[r,a]of(e.push(""),e.push("Meta:"),t))e.push(`  ${r}: ${a}`);return e.join("\n")}};function g7(e,t){if(e)for(let[r,a]of Object.entries(e))a instanceof Date?t[r]=new Date(a.getTime()):Array.isArray(a)?t[r]=a.concat():t[r]=a}!function(e){e[e.PENDING=0]="PENDING",e[e.REJECTED=1]="REJECTED",e[e.RESOLVED=2]="RESOLVED"}(E||(E={}));var g4=class{constructor(e=!0){this._state=E.PENDING,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),e&&this._promise.catch(e=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==E.PENDING)throw Error(`cannot resolve ${E[this.state].toLowerCase()}`);this._resolve(e),this._state=E.RESOLVED}reject(e){if(this.state!==E.PENDING)throw Error(`cannot reject ${E[this.state].toLowerCase()}`);this._reject(e),this._state=E.REJECTED}resolvePending(e){this._state===E.PENDING&&this.resolve(e)}rejectPending(e){this._state===E.PENDING&&this.reject(e)}},g5=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){return t.push(e),()=>{let r=t.indexOf(e);r>=0&&t.splice(r,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return!1!==this._closed}notifyNext(e,t,r){cv(+!!e+ +!!t+ +!!r<=1,"only one emission at a time"),e&&this.notifyMessage(e),t&&this.notifyError(t),r&&this.notifyComplete()}notifyMessage(e){cv(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(e,void 0,!1))}notifyError(e){cv(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(void 0,e,!1)),this.clearLis()}notifyComplete(){cv(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return!0===this._closed?this.pushIt({value:null,done:!0}):!1!==this._closed&&this.pushIt(this._closed),{next:()=>{let e=this._itState;cv(e,"bad state"),cv(!e.p,"iterator contract broken");let t=e.q.shift();return t?"value"in t?Promise.resolve(t):Promise.reject(t):(e.p=new g4,e.p.promise)}}}pushIt(e){let t=this._itState;if(t.p){let r=t.p;cv(r.state==E.PENDING,"iterator contract broken"),"value"in e?r.resolve(e):r.reject(e),delete t.p}else t.q.push(e)}},g9=class{constructor(e,t,r,a,n,i,o){this.method=e,this.requestHeaders=t,this.request=r,this.headers=a,this.response=n,this.status=i,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){var e,t,r;return e=this,t=void 0,r=function*(){let[e,t,r,a]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:r,trailers:a}},new(t||(t=Promise))(function(a,n){function i(e){try{s(r.next(e))}catch(e){n(e)}}function o(e){try{s(r.throw(e))}catch(e){n(e)}}function s(e){var r;e.done?a(e.value):((r=e.value)instanceof t?r:new t(function(e){e(r)})).then(i,o)}s((r=r.apply(e,[])).next())})}},fe=class{constructor(e,t,r,a,n,i,o){this.method=e,this.requestHeaders=t,this.request=r,this.headers=a,this.responses=n,this.status=i,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){var e,t,r;return e=this,t=void 0,r=function*(){let[e,t,r]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:r}},new(t||(t=Promise))(function(a,n){function i(e){try{s(r.next(e))}catch(e){n(e)}}function o(e){try{s(r.throw(e))}catch(e){n(e)}}function s(e){var r;e.done?a(e.value):((r=e.value)instanceof t?r:new t(function(e){e(r)})).then(i,o)}s((r=r.apply(e,[])).next())})}};function ft(e,t,r,a,n){var i;{let e=(e,r,a)=>t.unary(e,r,a);for(let t of(null!=(i=a.interceptors)?i:[]).filter(e=>e.interceptUnary).reverse()){let r=e;e=(e,a,n)=>t.interceptUnary(r,e,a,n)}return e(r,n,a)}}var fr=(e=>(e[e.Unspecified=0]="Unspecified",e[e.Band=1]="Band",e[e.PriceFeed=2]="PriceFeed",e[e.Coinbase=3]="Coinbase",e[e.Chainlink=4]="Chainlink",e[e.Razor=5]="Razor",e[e.Dia=6]="Dia",e[e.API3=7]="API3",e[e.Uma=8]="Uma",e[e.Pyth=9]="Pyth",e[e.BandIBC=10]="BandIBC",e[e.Provider=11]="Provider",e[e.Stork=12]="Stork",e[e.ChainlinkDataStream
2051s=13]="ChainlinkDataStreams",e))(fr||{});new class extends cK{constructor(){super("injective.oracle.v1beta1.Params",[{no:1,name:"pyth_contract",kind:"scalar",T:9},{no:2,name:"chainlink_verifier_proxy_contract",kind:"scalar",T:9},{no:3,name:"accept_unverified_chainlink_data_streams_reports",kind:"scalar",T:8},{no:4,name:"chainlink_data_streams_verification_gas_limit",kind:"scalar",T:4,L:0}],{"gogoproto.equal":!0,"amino.name":"oracle/Params"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.pythContract="",t.chainlinkVerifierProxyContract="",t.acceptUnverifiedChainlinkDataStreamsReports=!1,t.chainlinkDataStreamsVerificationGasLimit=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.pythContract=e.string();break;case 2:n.chainlinkVerifierProxyContract=e.string();break;case 3:n.acceptUnverifiedChainlinkDataStreamsReports=e.bool();break;case 4:n.chainlinkDataStreamsVerificationGasLimit=e.uint64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.pythContract&&t.tag(1,p.LengthDelimited).string(e.pythContract),""!==e.chainlinkVerifierProxyContract&&t.tag(2,p.LengthDelimited).string(e.chainlinkVerifierProxyContract),!1!==e.acceptUnverifiedChainlinkDataStreamsReports&&t.tag(3,p.Varint).bool(e.acceptUnverifiedChainlinkDataStreamsReports),0n!==e.chainlinkDataStreamsVerificationGasLimit&&t.tag(4,p.Varint).uint64(e.chainlinkDataStreamsVerificationGasLimit);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.oracle.v1beta1.OracleInfo",[{no:1,name:"symbol",kind:"scalar",T:9},{no:2,name:"oracle_type",kind:"enum",T:()=>["injective.oracle.v1beta1.OracleType",fr]}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.symbol="",t.oracleType=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.symbol=e.string();break;case 2:n.oracleType=e.int32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.symbol&&t.tag(1,p.LengthDelimited).string(e.symbol),0!==e.oracleType&&t.tag(2,p.Varint).int32(e.oracleType);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.oracle.v1beta1.ChainlinkPriceState",[{no:1,name:"feed_id",kind:"scalar",T:9},{no:2,name:"answer",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"timestamp",kind:"scalar",T:4,L:0},{no:4,name:"price_state",kind:"message",T:()=>fi,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.feedId="",t.answer="",t.timestamp=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.feedId=e.string();break;case 2:n.answer=e.string();break;case 3:n.timestamp=e.uint64().toBigInt();break;case 4:n.priceState=fi.internalBinaryRead(e,e.uint32(),r,n.priceState);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.feedId&&t.tag(1,p.LengthDelimited).string(e.feedId),""!==e.answer&&t.tag(2,p.LengthDelimited).string(e.answer),0n!==e.timestamp&&t.tag(3,p.Varint).uint64(e.timestamp),e.priceState&&fi.internalBinaryWrite(e.priceState,t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.oracle.v1beta1.BandPriceState",[{no:1,name:"symbol",kind:"scalar",T:9},{no:2,name:"rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.Int"}},{no:3,name:"resolve_time",kind:"scalar",T:4,L:0},{no:4,name:"request_ID",kind:"scalar",T:4,L:0},{no:5,name:"price_state",kind:"message",T:()=>fi,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.symbol="",t.rate="",t.resolveTime=0n,t.requestID=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.symbol=e.string();break;case 2:n.rate=e.string();break;case 3:n.resolveTime=e.uint64().toBigInt();break;case 4:n.requestID=e.uint64().toBigInt();break;case 5:n.priceState=fi.internalBinaryRead(e,e.uint32(),r,n.priceState);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.symbol&&t.tag(1,p.LengthDelimited).string(e.symbol),""!==e.rate&&t.tag(2,p.LengthDelimited).string(e.rate),0n!==e.resolveTime&&t.tag(3,p.Varint).uint64(e.resolveTime),0n!==e.requestID&&t.tag(4,p.Varint).uint64(e.requestID),e.priceState&&fi.internalBinaryWrite(e.priceState,t.tag(5,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.oracle.v1beta1.PriceFeedState",[{no:1,name:"base",kind:"scalar",T:9},{no:2,name:"quote",kind:"scalar",T:9},{no:3,name:"price_state",kind:"message",T:()=>fi},{no:4,name:"relayers",kind:"scalar",repeat:2,T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.base="",t.quote="",t.relayers=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.base=e.string();break;case 2:n.quote=e.string();break;case 3:n.priceState=fi.internalBinaryRead(e,e.uint32(),r,n.priceState);break;case 4:n.relayers.push(e.string());break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.base&&t.tag(1,p.LengthDelimited).string(e.base),""!==e.quote&&t.tag(2,p.LengthDelimited).string(e.quote),e.priceState&&fi.internalBinaryWrite(e.priceState,t.tag(3,p.LengthDelimited).fork(),r).join();for(let r=0;r<e.relayers.length;r++)t.tag(4,p.LengthDelimited).string(e.relayers[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fa=new class extends cK{constructor(){super("injective.oracle.v1beta1.ProviderInfo",[{no:1,name:"provider",kind:"scalar",T:9},{no:2,name:"relayers",kind:"scalar",repeat:2,T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.provider="",t.relayers=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.provider=e.string();break;case 2:n.relayers.push(e.string());break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.provider&&t.tag(1,p.LengthDelimited).string(e.provider);for(let r=0;r<e.relayers.length;r++)t.tag(2,p.LengthDelimited).string(e.relayers[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.oracle.v1beta1.ProviderState",[{no:1,name:"provider_info",kind:"message",T:()=>fa},{no:2,name:"provider_price_states",kind:"message",repeat:2,T:()=>fn}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.providerPriceStates=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.providerInfo=fa.internalBinaryRead(e,e.uint32(),r,n.providerInfo);break;case 2:n.providerPriceStates.push(fn.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.providerInfo&&fa.internalBinaryWrite(e.providerInfo,t.tag(1,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.providerPriceStates.length;a++)fn.internalBinaryWrite(e.providerPriceStates[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fn=new class extends cK{constructor(){super("injective.oracle.v1beta1.ProviderPriceState",[{no:1,name:"symbol",kind:"scalar",T:9},{no:2,name:"state",kind:"message",T:()=>fi}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.symbol="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.symbol=e.string();break;case 2:n.state=fi.internalBinaryRead(e,e.uint32(),r,n.state);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.symbol&&t.tag(1,p.LengthDelimited).string(e.symbol),e.state&&fi.internalBinaryWrite(e.state,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.oracle.v1beta1.PriceFeedInfo",[{no:1,name:"base",kind:"scalar",T:9},{no:2,name:"quote",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.base="",t.quote="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.base=e.string();break;case 2:n.quote=e.str
2051ing();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.base&&t.tag(1,p.LengthDelimited).string(e.base),""!==e.quote&&t.tag(2,p.LengthDelimited).string(e.quote);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.oracle.v1beta1.PriceFeedPrice",[{no:1,name:"price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.price="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.price=e.string();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.price&&t.tag(1,p.LengthDelimited).string(e.price);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.oracle.v1beta1.CoinbasePriceState",[{no:1,name:"kind",kind:"scalar",T:9},{no:2,name:"timestamp",kind:"scalar",T:4,L:0},{no:3,name:"key",kind:"scalar",T:9},{no:4,name:"value",kind:"scalar",T:4,L:0},{no:5,name:"price_state",kind:"message",T:()=>fi,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.kind="",t.timestamp=0n,t.key="",t.value=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.kind=e.string();break;case 2:n.timestamp=e.uint64().toBigInt();break;case 3:n.key=e.string();break;case 4:n.value=e.uint64().toBigInt();break;case 5:n.priceState=fi.internalBinaryRead(e,e.uint32(),r,n.priceState);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.kind&&t.tag(1,p.LengthDelimited).string(e.kind),0n!==e.timestamp&&t.tag(2,p.Varint).uint64(e.timestamp),""!==e.key&&t.tag(3,p.LengthDelimited).string(e.key),0n!==e.value&&t.tag(4,p.Varint).uint64(e.value),e.priceState&&fi.internalBinaryWrite(e.priceState,t.tag(5,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.oracle.v1beta1.StorkPriceState",[{no:1,name:"timestamp",kind:"scalar",T:4,L:0},{no:2,name:"symbol",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"price_state",kind:"message",T:()=>fi,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.timestamp=0n,t.symbol="",t.value="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.timestamp=e.uint64().toBigInt();break;case 2:n.symbol=e.string();break;case 3:n.value=e.string();break;case 5:n.priceState=fi.internalBinaryRead(e,e.uint32(),r,n.priceState);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.timestamp&&t.tag(1,p.Varint).uint64(e.timestamp),""!==e.symbol&&t.tag(2,p.LengthDelimited).string(e.symbol),""!==e.value&&t.tag(3,p.LengthDelimited).string(e.value),e.priceState&&fi.internalBinaryWrite(e.priceState,t.tag(5,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fi=new class extends cK{constructor(){super("injective.oracle.v1beta1.PriceState",[{no:1,name:"price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:2,name:"cumulative_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"timestamp",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.price="",t.cumulativePrice="",t.timestamp=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.price=e.string();break;case 2:n.cumulativePrice=e.string();break;case 3:n.timestamp=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.price&&t.tag(1,p.LengthDelimited).string(e.price),""!==e.cumulativePrice&&t.tag(2,p.LengthDelimited).string(e.cumulativePrice),0n!==e.timestamp&&t.tag(3,p.Varint).int64(e.timestamp);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.oracle.v1beta1.PythPriceState",[{no:1,name:"price_id",kind:"scalar",T:9},{no:2,name:"ema_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"ema_conf",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"conf",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"publish_time",kind:"scalar",T:4,L:0},{no:6,name:"price_state",kind:"message",T:()=>fi,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.priceId="",t.emaPrice="",t.emaConf="",t.conf="",t.publishTime=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.priceId=e.string();break;case 2:n.emaPrice=e.string();break;case 3:n.emaConf=e.string();break;case 4:n.conf=e.string();break;case 5:n.publishTime=e.uint64().toBigInt();break;case 6:n.priceState=fi.internalBinaryRead(e,e.uint32(),r,n.priceState);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.priceId&&t.tag(1,p.LengthDelimited).string(e.priceId),""!==e.emaPrice&&t.tag(2,p.LengthDelimited).string(e.emaPrice),""!==e.emaConf&&t.tag(3,p.LengthDelimited).string(e.emaConf),""!==e.conf&&t.tag(4,p.LengthDelimited).string(e.conf),0n!==e.publishTime&&t.tag(5,p.Varint).uint64(e.publishTime),e.priceState&&fi.internalBinaryWrite(e.priceState,t.tag(6,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.oracle.v1beta1.ChainlinkDataStreamsPriceState",[{no:1,name:"feed_id",kind:"scalar",T:9},{no:2,name:"report_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.Int"}},{no:3,name:"valid_from_timestamp",kind:"scalar",T:4,L:0},{no:4,name:"observations_timestamp",kind:"scalar",T:4,L:0},{no:5,name:"price_state",kind:"message",T:()=>fi,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.feedId="",t.reportPrice="",t.validFromTimestamp=0n,t.observationsTimestamp=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.feedId=e.string();break;case 2:n.reportPrice=e.string();break;case 3:n.validFromTimestamp=e.uint64().toBigInt();break;case 4:n.observationsTimestamp=e.uint64().toBigInt();break;case 5:n.priceState=fi.internalBinaryRead(e,e.uint32(),r,n.priceState);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.feedId&&t.tag(1,p.LengthDelimited).string(e.feedId),""!==e.reportPrice&&t.tag(2,p.LengthDelimited).string(e.reportPrice),0n!==e.validFromTimestamp&&t.tag(3,p.Varint).uint64(e.validFromTimestamp),0n!==e.observationsTimestamp&&t.tag(4,p.Varint).uint64(e.observationsTimestamp),e.priceState&&fi.internalBinaryWrite(e.priceState,t.tag(5,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.oracle.v1beta1.BandOracleRequest",[{no:1,name:"request_id",kind:"scalar",T:4,L:0},{no:2,name:"oracle_script_id",kind:"scalar",T:3,L:0},{no:3,name:"symbols",kind:"scalar",repeat:2,T:9},{no:4,name:"ask_count",kind:"scalar",T:4,L:0},{no:5,name:"min_count",kind:"scalar",T:4,L:0},{no:6,name:"fee_limit",kind:"message",repeat:2,T:()=>dn,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"github.com/cosmos/cosmos-sdk/types.Coins"}},{no:7,name:"prepare_gas",kind:"scalar",T:4,L:0},{no:8,name:"execute_gas",kind:"scalar",T:4,L:0},{no:9,name:"min_source_count",kind:"scalar",T:4,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.requestId=0n,t.oracleScriptId=0n,t.symbols=[],t.askCount=0n,t.minCount=0n,t.feeLimit=[],t.prepareGas=0n,t.executeGas=0n,t.minSourceCount=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.requestId=e.uint64().toBigInt();break;case 2:n.oracleScriptId=e.int64().toBigInt();break;case 3:n.symbols.push(e.string());break;case 4:n.askCount=e.uint64().toBigInt();break;case 5:n.minCount=e.uint64().toBigInt();break;case 6:n.feeLimit.push(dn.internalBinaryRead(e,e.uint32(),r));break;case 7:n.prepareGas=e.uint64().toBigInt();break;case 8:n.executeGas=e.uint64().toBigInt();break;case 9:n.minSourceCount=e.uint64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.requestId&&t.tag(1,p.Varint).uint64(e.requestId),0n!==e.oracleScriptId&&t.tag(2,p.Varint).int64(e.oracleScriptId);for(let r=0;r<e.symbols.length;r++)t.tag(3,p.LengthDelimited).string(e.symbols[r]);0n!==e.askCount&&t.tag(4,p.Varint).uint64(e.askCount),0n!==e.minCount&&t.tag(5,p.Varint).uint64(e.minCount);for(let a=0;a<e.feeLimit.length;a++)dn.internalBinaryWrite(e.feeLimit[a],t.tag(6,p.LengthDelimited).fork(),r).join();0n!==e.prepareGas&&t.tag(7,p.Varint).uint64(e.prepareGas),0n!==e.executeGas&&t.tag(8,p.Varint).uint64(e.executeGas),0n!==e.minSourceCount&&t.tag(9,p.Varint).uint64(e.minSourceCount);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.oracle.v1beta1.BandIBCParams",[{no:1,name:"band_ibc_enabled",kind:"scalar",T:8},{no:2,name:"ibc_request_interval",kind:"scalar",T:3,L:0},{no:3,name:"ibc_source_channel",kind:"scalar",T:9},{no:4,name:"ibc_version",kind:"scalar",T:9},{no:5,name:"ibc_port_id",kind:"scalar",T:9},{no:6,name:"legacy_oracle_ids",kind:"scalar",repeat:1,T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.bandIbcEnabled=!1,t.ibcRequestInterval=0n,t.ibcSourceChannel="",t.ibcVersion="",t.ibcPortId="",t.legacyOracleIds=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.bandIbcEnabled=e.bool();break;case 2:n.ibcRequestInterval=e.int64().toBigInt();break;case 3:n.ibcSourceChannel=e.string();break;case 4:n.ibcVersion=e.string();break;case 5:n.ibcPortId=e.string();break;case 6:if(a===p.LengthDelimited)for(let t=e.int32()+e.pos;e.pos<t;)n.legacyOracleIds.push(e.int64().toBigInt());else n.legacyOracleIds.push(e.int64().toBigInt());break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){if(!1!==e.bandIbcEnabled&&t.tag(1,p.Varint).bool(e.bandIbcEnabled),0n!==e.ibcRequestInterval&&t.tag(2,p.Varint).int64(e.ibcRequestInterval),""!==e.ibcSourceChannel&&t.tag(3,p.LengthDelimited).string(e.ibcSourceChannel),""!==e.ibcVersion&&t.tag(4,p.LengthDelimited).string(e.ibcVersion),""!==e.ibcPortId&&t.tag(5,p.LengthDelimited).string(e.ibcPortId),e.legacyOracleIds.length){t.tag(6,p.LengthDelimited).fork();for(let r=0;r<e.legacyOracleIds.length;r++)t.int64(e.legacyOracleIds[r]);t.join()}let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fo=new class extends cK{constructor(){super("injective.oracle.v1beta1.SymbolPriceTimestamp",[{no:1,name:"oracle",kind:"enum",T:()=>["injective.oracle.v1beta1.OracleType",fr]},{no:2,name:"symbol_id",kind:"scalar",T:9},{no:3,name:"timestamp",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.oracle=0,t.symbolId="",t.timestamp=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.oracle=e.int32();break;case 2:n.symbolId=e.string();break;case 3:n.timestamp=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.oracle&&t.tag(1,p.Varint).int32(e.oracle),""!==e.symbolId&&t.tag(2,p.LengthDelimited).string(e.symbolId),0n!==e.timestamp&&t.tag(3,p.Varint).int64(e.timestamp);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.oracle.v1beta1.LastPriceTimestamps",[{no:1,name:"last_price_timestamps",kind:"message",repeat:2,T:()=>fo}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.lastPriceTimestamps=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();if(1===t)n.lastPriceTimestamps.push(fo.internalBinaryRead(e,e.uint32(),r));else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.lastPriceTimestamps.length;a++)fo.internalBinaryWrite(e.lastPriceTimestamps[a],t.tag(1,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.oracle.v1beta1.PriceRecords",[{no:1,name:"oracle",kind:"enum",T:()=>["injective.oracle.v1beta1.OracleType",fr]},{no:2,name:"symbol_id",kind:"scalar",T:9},{no:3,name:"latest_price_records",kind:"message",repeat:2,T:()=>fs}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.oracle=0,t.symbolId="",t.latestPriceRecords=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.oracle=e.int32();break;case 2:n.symbolId=e.string();break;case 3:n.latestPriceRecords.push(fs.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.oracle&&t.tag(1,p.Varint).int32(e.oracle),""!==e.symbolId&&t.tag(2,p.LengthDelimited).string(e.symbolId);for(let a=0;a<e.latestPriceRecords.length;a++)fs.internalBinaryWrite(e.latestPriceRecords[a],t.tag(3,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fs=new class extends cK{constructor(){super("injective.oracle.v1beta1.PriceRecord",[{no:1,name:"timestamp",kind:"scalar",T:3,L:0},{no:2,name:"price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.timestamp=0n,t.price="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.timestamp=e.int64().toBigInt();break;case 2:n.price=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.timestamp&&t.tag(1,p.Varint).int64(e.timestamp),""!==e.price&&t.tag(2,p.LengthDelimited).string(e.price);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.oracle.v1beta1.MetadataStatistics",[{no:1,name:"group_count",kind:"scalar",T:13},{no:2,name:"records_sample_size",kind:"scalar",T:13},{no:3,name:"mean",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"twap",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"first_timestamp",kind:"scalar",T:3,L:0},{no:6,name:"last_timestamp",kind:"scalar",T:3,L:0},{no:7,name:"min_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:8,name:"max_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:9,name:"median_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.groupCount=0,t.recordsSampleSize=0,t.mean="",t.twap="",t.firstTimestamp=0n,t.lastTimestamp=0n,t.minPrice="",t.maxPrice="",t.medianPrice="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.groupCount=e.uint32();break;case 2:n.recordsSampleSize=e.uint32();break;case 3:n.mean=e.string();break;case 4:n.twap=e.string();break;case 5:n.firstTimestamp=e.int64().toBigInt();break;case 6:n.lastTimestamp=e.int64().toBigInt();break;case 7:n.minPrice=e.string();break;case 8:n.maxPrice=e.string();break;case 9:n.medianPrice=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.groupCount&&t.tag(1,p.Varint).uint32(e.groupCount),0!==e.recordsSampleSize&&t.tag(2,p.Varint).uint32(e.recordsSampleSize),""!==e.mean&&t.tag(3,p.LengthDelimited).string(e.mean),""!==e.twap&&t.tag(4,p.LengthDelimited).string(e.twap),0n!==e.firstTimestamp&&t.tag(5,p.Varint).int64(e.firstTimestamp),0n!==e.lastTimestamp&&t.tag(6,p.Varint).int64(e.lastTimestamp),""!==e.minPrice&&t.tag(7,p.LengthDelimited).string(e.minPrice),""!==e.maxPrice&&t.tag(8,p.LengthDelimited).string(e.maxPrice),""!==e.medianPrice&&t.tag(9,p.LengthDelimited).string(e.medianPrice);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.oracle.v1beta1.PriceAttestation",[{no:1,name:"price_id",kind:"scalar",T:9},{no:2,name:"price",kind:"scalar",T:3,L:0},{no:3,name:"conf",kind:"scalar",T:4,L:0},{no:4,name:"expo",kind:"scalar",T:5},{no:5,name:"ema_price",kind:"scalar",T:3,L:0},{no:6,name:"ema_conf",kind:"scalar",T:4,L:0},{no:7,name:"ema_expo",kind:"scalar",T:5},{no:8,name:"publish_time",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.priceId="",t.price=0n,t.conf=0n,t.expo=0,t.emaPrice=0n,t.emaConf=0n,t.emaExpo=0,t.publishTime=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.priceId=e.string();break;case 2:n.price=e.int64().toBigInt();break;case 3:n.conf=e.uint64().toBigInt();break;case 4:n.expo=e.int32();break;case 5:n.emaPrice=e.int64().toBigInt();break;case 6:n.emaConf=e.uint64().toBigInt();break;case 7:n.emaExpo=e.int32();break;case 8:n.publishTime=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.priceId&&t.tag(1,p.LengthDelimited).string(e.priceId),0n!==e.price&&t.tag(2,p.Varint).int64(e.price),0n!==e.conf&&t.tag(3,p.Varint).uint64(e.conf),0!==e.expo&&t.tag(4,p.Varint).int32(e.expo),0n!==e.emaPrice&&t.tag(5,p.Varint).int64(e.emaPrice),0n!==e.emaConf&&t.tag(6,p.Varint).uint64(e.emaConf),0!==e.emaExpo&&t.tag(7,p.Varint).int32(e.emaExpo),0n!==e.publishTime&&t.tag(8,p.Varint).int64(e.publishTime);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.oracle.v1beta1.AssetPair",[{no:1,name:"asset_id",kind:"scalar",T:9},{no:2,name:"signed_prices",kind:"message",repeat:2,T:()=>fl}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.assetId="",t.signedPrices=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.assetId=e.string();break;case 2:n.signedPrices.push(fl.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.assetId&&t.tag(1,p.LengthDelimited).string(e.assetId);for(let a=0;a<e.signedPrices.length;a++)fl.internalBinaryWrite(e.signedPrices[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fl=new class extends cK{constructor(){super("injective.oracle.v1beta1.SignedPriceOfAssetPair",[{no:1,name:"publisher_key",kind:"scalar",T:9},{no:2,name:"timestamp",kind:"scalar",T:4,L:0},{no:3,name:"price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"signature",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.publisherKey="",t.timestamp=0n,t.price="",t.signature=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.publisherKey=e.string();break;case 2:n.timestamp=e.uint64().toBigInt();break;case 3:n.price=e.string();break;case 4:n.signature=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.publisherKey&&t.tag(1,p.LengthDelimited).string(e.publisherKey),0n!==e.timestamp&&t.tag(2,p.Varint).uint64(e.timestamp),""!==e.price&&t.tag(3,p.LengthDelimited).string(e.price),e.signature.length&&t.tag(4,p.LengthDelimited).bytes(e.signature);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.oracle.v1beta1.ChainlinkReport",[{no:1,name:"feed_id",kind:"scalar",T:12},{no:2,name:"full_report",kind:"scalar",T:12},{no:3,name:"valid_from_timestamp",kind:"scalar",T:4,L:0},{no:4,name:"observations_timestamp",kind:"scalar",T:4,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.feedId=new Uint8Array(0),t.fullReport=new Uint8Array(0),t.validFromTimestamp=0n,t.observationsTimestamp=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.feedId=e.bytes();break;case 2:n.fullReport=e.bytes();break;case 3:n.validFromTimestamp=e.uint64().toBigInt();break;case 4:n.observationsTimestamp=e.uint64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.feedId.length&&t.tag(1,p.LengthDelimited).bytes(e.feedId),e.fullReport.length&&t.tag(2,p.LengthDelimited).bytes(e.fullReport),0n!==e.validFromTimestamp&&t.tag(3,p.Varint).uint64(e.validFromTimestamp),0n!==e.observationsTimestamp&&t.tag(4,p.Varint).uint64(e.observationsTimestamp);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fc=(e=>(e[e.Nobody=0]="Nobody",e[e.BeginBlockerSmartContractsOnly=1]="BeginBlockerSmartContractsOnly",e[e.SmartContractsOnly=2]="SmartContractsOnly",e[e.Everyone=3]="Everyone",e))(fc||{}),fd=(e=>(e[e.Unspecified=0]="Unspecified",e[e.Active=1]="Active",e[e.Paused=2]="Paused",e[e.Demolished=3]="Demolished",e[e.Expired=4]="Expired",e))(fd||{}),fp=(e=>(e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.BUY=1]="BUY",e[e.SELL=2]="SELL",e[e.STOP_BUY=3]="STOP_BUY",e[e.STOP_SELL=4]="STOP_SELL",e[e.TAKE_BUY=5]="TAKE_BUY",e[e.TAKE_SELL=6]="TAKE_SELL",e[e.BUY_PO=7]="BUY_PO",e[e.SELL_PO=8]="SELL_PO",e[e.BUY_ATOMIC=9]="BUY_ATOMIC",e[e.SELL_ATOMIC=10]="SELL_ATOMIC",e))(fp||{}),fu=new class extends cK{constructor(){super("injective.exchange.v1beta1.OpenNotionalCap",[{no:1,name:"uncapped",kind:"message",oneof:"cap",T:()=>fm,options:{"amino.oneof_name":"injective.exchange.v1beta1.OpenNotionalCapUncapped"}},{no:2,name:"capped",kind:"message",oneof:"cap",T:()=>fh,options:{"amino.oneof_name":"injective.exchange.v1beta1.OpenNotionalCapCapped"}}],{"amino.name":"injective.exchange.v1beta1.OpenNotionalCap"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.cap={oneofKind:void 0},void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.cap={oneofKind:"uncapped",uncapped:fm.internalBinaryRead(e,e.uint32(),r,n.cap.uncapped)};break;case 2:n.cap={oneofKind:"capped",capped:fh.internalBinaryRead(e,e.uint32(),r,n.cap.capped)};break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){"uncapped"===e.cap.oneofKind&&fm.internalBinaryWrite(e.cap.uncapped,t.tag(1,p.LengthDelimited).fork(),r).join(),"capped"===e.cap.oneofKind&&fh.internalBinaryWrite(e.cap.capped,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fm=new class extends cK{constructor(){super("injective.exchange.v1beta1.OpenNotionalCapUncapped",[],{"amino.name":"injective.exchange.v1beta1.OpenNotionalCapUncapped"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fh=new class extends cK{constructor(){super("injective.exchange.v1beta1.OpenNotionalCapCapped",[{no:1,name:"value",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}],{"amino.name":"injective.exchange.v1beta1.OpenNotionalCapCapped"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.value="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.value=e.string();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.value&&t.tag(1,p.LengthDelimited).string(e.value);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fg=new class extends cK{constructor(){super("injective.exchange.v1beta1.Params",[{no:1,name:"spot_market_instant_listing_fee",kind:"message",T:()=>dn,options:{"gogoproto.nullable":!1}},{no:2,name:"derivative_market_instant_listing_fee",kind:"message",T:()=>dn,options:{"gogoproto.nullable":!1}},{no:3,name:"default_spot_maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"default_spot_taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"default_derivative_maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:6,name:"default_derivative_taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:7,name:"default_initial_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:8,name:"default_maintenance_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:9,name:"default_funding_interval",kind:"scalar",T:3,L:0},{no:10,name:"funding_multiple",kind:"scalar",T:3,L:0},{no:11,name:"relayer_fee_share_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:12,name:"default_hourly_funding_rate_cap",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:13,name:"default_hourly_interest_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:14,name:"max_derivative_order_side_count",kind:"scalar",T:13},{no:15,name:"inj_reward_staked_requirement_threshold",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.Int"}},{no:16,name:"trading_rewards_vesting_duration",kind:"scalar",T:3,L:0},{no:17,name:"liquidator_reward_share_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:18,name:"binary_options_market_instant_listing_fee",kind:"message",T:()=>dn,options:{"gogoproto.nullable":!1}},{no:19,name:"atomic_market_order_access_level",kind:"enum",T:()=>["injective.exchange.v1beta1.AtomicMarketOrderAccessLevel",fc]},{no:20,name:"spot_atomic_market_order_fee_multiplier",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:21,name:"derivative_atomic_market_order_fee_multiplier",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:22,name:"binary_options_atomic_market_order_fee_multiplier",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:23,name:"minimal_protocol_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:24,name:"is_instant_derivative_market_launch_enabled",kind:"scalar",T:8},{no:25,name:"post_only_mode_height_threshold",kind:"scalar",T:3,L:0},{no:26,name:"margin_decrease_price_timestamp_threshold_seconds",kind:"scalar",T:3,L:0},{no:27,name:"exchange_admins",kind:"scalar",repeat:2,T:9},{no:28,name:"inj_auction_max_cap",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.Int"}},{no:29,name:"fixed_gas_enabled",kind:"scalar",T:8}],{"gogoproto.equal":!0,"amino.name":"exchange/Params"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.defaultSpotMakerFeeRate="",t.defaultSpotTakerFeeRate="",t.defaultDerivativeMakerFeeRate="",t.defaultDerivativeTakerFeeRate="",t.defaultInitialMarginRatio="",t.defaultMaintenanceMarginRatio="",t.defaultFundingInterval=0n,t.fundingMultiple=0n,t.relayerFeeShareRate="",t.defaultHourlyFundingRateCap="",t.defaultHourlyInterestRate="",t.maxDerivativeOrderSideCount=0,t.injRewardStakedRequirementThreshold="",t.tradingRewardsVestingDuration=0n,t.liquidatorRewardShareRate="",t.atomicMarketOrderAccessLevel=0,t.spotAtomicMarketOrderFeeMultiplier="",t.derivativeAtomicMarketOrderFeeMultiplier="",t.binaryOptionsAtomicMarketOrderFeeMultiplier="",t.minimalProtocolFeeRate="",t.isInstantDerivativeMarketLaunchEnabled=!1,t.postOnlyModeHeightThreshold=0n,t.marginDecreasePriceTimestampThresholdSeconds=0n,t.exchangeAdmins=[],t.injAuctionMaxCap="",t.fixedGasEnabled=!1,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.spotMarketInstantListingFee=dn.internalBinaryRead(e,e.uint32(),r,n.spotMarketInstantListingFee);break;case 2:n.derivativeMarketInstantListingFee=dn.internalBinaryRead(e,e.uint32(),r,n.derivativeMarketInstantListingFee);break;case 3:n.defaultSpotMakerFeeRate=e.string();break;case 4:n.defaultSpotTakerFeeRate=e.string();break;case 5:n.defaultDerivativeMakerFeeRate=e.string();break;case 6:n.defaultDerivativeTakerFeeRate=e.string();break;case 7:n.defaultInitialMarginRatio=e.string();break;case 8:n.defaultMaintenanceMarginRatio=e.string();break;case 9:n.defaultFundingInterval=e.int64().toBigInt();break;case 10:n.fundingMultiple=e.int64().toBigInt();break;case 11:n.relayerFeeShareRate=e.string();break;case 12:n.defaultHourlyFundingRateCap=e.string();break;case 13:n.defaultHourlyInterestRate=e.string();break;case 14:n.maxDerivativeOrderSideCount=e.uint32();break;case 15:n.injRewardStakedRequirementThreshold=e.string();break;case 16:n.tradingRewardsVestingDuration=e.int64().toBigInt();break;case 17:n.liquidatorRewardShareRate=e.string();break;case 18:n.binaryOptionsMarketInstantListingFee=dn.internalBinaryRead(e,e.uint32(),r,n.binaryOptionsMarketInstantListingFee);break;case 19:n.atomicMarketOrderAccessLevel=e.int32();break;case 20:n.spotAtomicMarketOrderFeeMultiplier=e.string();break;case 21:n.derivativeAtomicMarketOrderFeeMultiplier=e.string();break;case 22:n.binaryOptionsAtomicMarketOrderFeeMultiplier=e.string();break;case 23:n.minimalProtocolFeeRate=e.string();break;case 24:n.isInstantDerivativeMarketLaunchEnabled=e.bool();break;case 25:n.postOnlyModeHeightThreshold=e.int64().toBigInt();break;case 26:n.marginDecreasePriceTimestampThresholdSeconds=e.int64().toBigInt();break;case 27:n.exchangeAdmins.push(e.string());break;case 28:n.injAuctionMaxCap=e.string();break;case 29:n.fixedGasEnabled=e.bool();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.spotMarketInstantListingFee&&dn.internalBinaryWrite(e.spotMarketInstantListingFee,t.tag(1,p.LengthDelimited).fork(),r).join(),e.derivativeMarketInstantListingFee&&dn.internalBinaryWrite(e.derivativeMarketInstantListingFee,t.tag(2,p.LengthDelimited).fork(),r).join(),""!==e.defaultSpotMakerFeeRate&&t.tag(3,p.LengthDelimited).string(e.defaultSpotMakerFeeRate),""!==e.defaultSpotTakerFeeRate&&t.tag(4,p.LengthDelimited).string(e.defaultSpotTakerFeeRate),""!==e.defaultDerivativeMakerFeeRate&&t.tag(5,p.LengthDelimited).string(e.defaultDerivativeMakerFeeRate),""!==e.defaultDerivativeTakerFeeRate&&t.tag(6,p.LengthDelimited).string(e.defaultDerivativeTakerFeeRate),""!==e.defaultInitialMarginRatio&&t.tag(7,p.LengthDelimited).string(e.defaultInitialMarginRatio),""!==e.defaultMaintenanceMarginRatio&&t.tag(8,p.LengthDelimited).string(e.defaultMaintenanceMarginRatio),0n!==e.defaultFundingInterval&&t.tag(9,p.Varint).int64(e.defaultFundingInterval),0n!==e.fundingMultiple&&t.tag(10,p.Varint).int64(e.fundingMultiple),""!==e.relayerFeeShareRate&&t.tag(11,p.LengthDelimited).string(e.relayerFeeShareRate),""!==e.defaultHourlyFundingRateCap&&t.tag(12,p.LengthDelimited).string(e.defaultHourlyFundingRateCap),""!==e.defaultHourlyInterestRate&&t.tag(13,p.LengthDelimited).string(e.defaultHourlyInterestRate),0!==e.maxDerivativeOrderSideCount&&t.tag(14,p.Varint).uint32(e.maxDerivativeOrderSideCount),""!==e.injRewardStakedRequirementThreshold&&t.tag(15,p.LengthDelimited).string(e.injRewardStakedRequirementThreshold),0n!==e.tradingRewardsVestingDuration&&t.tag(16,p.Varint).int64(e.tradingRewardsVestingDuration),""!==e.liquidatorRewardShareRate&&t.tag(17,p.LengthDelimited).string(e.liquidatorRewardShareRate),e.binaryOptionsMarketInstantListingFee&&dn.internalBinaryWrite(e.binaryOptionsMarketInstantListingFee,t.tag(18,p.LengthDelimited).fork(),r).join(),0!==e.atomicMarketOrderAccessLevel&&t.tag(19,p.Varint).int32(e.atomicMarketOrderAccessLevel),""!==e.spotAtomicMarketOrderFeeMultiplier&&t.tag(20,p.LengthDelimited).string(e.spotAtomicMarketOrderFeeMultiplier),""!==e.derivativeAtomicMarketOrderFeeMultiplier&&t.tag(21,p.LengthDelimited).string(e.derivativeAtomicMarketOrderFeeMultiplier),""!==e.binaryOptionsAtomicMarketOrderFeeMultiplier&&t.tag(22,p.LengthDelimited).string(e.binaryOptionsAtomicMarketOrderFeeMultiplier),""!==e.minimalProtocolFeeRate&&t.tag(23,p.LengthDelimited).string(e.minimalProtocolFeeRate),!1!==e.isInstantDerivativeMarketLaunchEnabled&&t.tag(24,p.Varint).bool(e.isInstantDerivativeMarketLaunchEnabled),0n!==e.postOnlyModeHeightThreshold&&t.tag(25,p.Varint).int64(e.postOnlyModeHeightThreshold),0n!==e.marginDecreasePriceTimestampThresholdSeconds&&t.tag(26,p.Varint).int64(e.marginDecreasePriceTimestampThresholdSeconds);for(let r=0;r<e.exchangeAdmins.length;r++)t.tag(27,p.LengthDelimited).string(e.exchangeAdmins[r]);""!==e.injAuctionMaxCap&&t.tag(28,p.LengthDelimited).string(e.injAuctionMaxCap),!1!==e.fixedGasEnabled&&t.tag(29,p.Varint).bool(e.fixedGasEnabled);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},ff=new class extends cK{constructor(){super("injective.exchange.v1beta1.MarketFeeMultiplier",[{no:1,name:"market_id",kind:"scalar",T:9},{no:2,name:"fee_multiplier",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}],{"gogoproto.goproto_getters":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.marketId="",t.feeMultiplier="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.marketId=e.string();break;case 2:n.feeMultiplier=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.marketId&&t.tag(1,p.LengthDelimited).string(e.marketId),""!==e.feeMultiplier&&t.tag(2,p.LengthDelimited).string(e.feeMultiplier);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.DerivativeMarket",[{no:1,name:"ticker",kind:"scalar",T:9},{no:2,name:"oracle_base",kind:"scalar",T:9},{no:3,name:"oracle_quote",kind:"scalar",T:9},{no:4,name:"oracle_type",kind:"enum",T:()=>["injective.oracle.v1beta1.OracleType",fr]},{no:5,name:"oracle_scale_factor",kind:"scalar",T:13},{no:6,name:"quote_denom",kind:"scalar",T:9},{no:7,name:"market_id",kind:"scalar",T:9},{no:8,name:"initial_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:9,name:"maintenance_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:10,name:"maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:11,name:"taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:12,name:"relayer_fee_share_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:13,name:"isPerpetual",kind:"scalar",T:8},{no:14,name:"status",kind:"enum",T:()=>["injective.exchange.v1beta1.MarketStatus",fd]},{no:15,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:16,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:17,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:18,name:"admin",kind:"scalar",T:9},{no:19,name:"admin_permissions",kind:"scalar",T:13},{no:20,name:"quote_decimals",kind:"scalar",T:13},{no:21,name:"reduce_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:22,name:"open_notional_cap",kind:"message",T:()=>fu,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.ticker="",t.oracleBase="",t.oracleQuote="",t.oracleType=0,t.oracleScaleFactor=0,t.quoteDenom="",t.marketId="",t.initialMarginRatio="",t.maintenanceMarginRatio="",t.makerFeeRate="",t.takerFeeRate="",t.relayerFeeShareRate="",t.isPerpetual=!1,t.status=0,t.minPriceTickSize="",t.minQuantityTickSize="",t.minNotional="",t.admin="",t.adminPermissions=0,t.quoteDecimals=0,t.reduceMarginRatio="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.ticker=e.string();break;case 2:n.oracleBase=e.string();break;case 3:n.oracleQuote=e.string();break;case 4:n.oracleType=e.int32();break;case 5:n.oracleScaleFactor=e.uint32();break;case 6:n.quoteDenom=e.string();break;case 7:n.marketId=e.string();break;case 8:n.initialMarginRatio=e.string();break;case 9:n.maintenanceMarginRatio=e.string();break;case 10:n.makerFeeRate=e.string();break;case 11:n.takerFeeRate=e.string();break;case 12:n.relayerFeeShareRate=e.string();break;case 13:n.isPerpetual=e.bool();break;case 14:n.status=e.int32();break;case 15:n.minPriceTickSize=e.string();break;case 16:n.minQuantityTickSize=e.string();break;case 17:n.minNotional=e.string();break;case 18:n.admin=e.string();break;case 19:n.adminPermissions=e.uint32();break;case 20:n.quoteDecimals=e.uint32();break;case 21:n.reduceMarginRatio=e.string();break;case 22:n.openNotionalCap=fu.internalBinaryRead(e,e.uint32(),r,n.openNotionalCap);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.ticker&&t.tag(1,p.LengthDelimited).string(e.ticker),""!==e.oracleBase&&t.tag(2,p.LengthDelimited).string(e.oracleBase),""!==e.oracleQuote&&t.tag(3,p.LengthDelimited).string(e.oracleQuote),0!==e.oracleType&&t.tag(4,p.Varint).int32(e.oracleType),0!==e.oracleScaleFactor&&t.tag(5,p.Varint).uint32(e.oracleScaleFactor),""!==e.quoteDenom&&t.tag(6,p.LengthDelimited).string(e.quoteDenom),""!==e.marketId&&t.tag(7,p.LengthDelimited).string(e.marketId),""!==e.initialMarginRatio&&t.tag(8,p.LengthDelimited).string(e.initialMarginRatio),""!==e.maintenanceMarginRatio&&t.tag(9,p.LengthDelimited).string(e.maintenanceMarginRatio),""!==e.makerFeeRate&&t.tag(10,p.LengthDelimited).string(e.makerFeeRate),""!==e.takerFeeRate&&t.tag(11,p.LengthDelimited).string(e.takerFeeRate),""!==e.relayerFeeShareRate&&t.tag(12,p.LengthDelimited).string(e.relayerFeeShareRate),!1!==e.isPerpetual&&t.tag(13,p.Varint).bool(e.isPerpetual),0!==e.status&&t.tag(14,p.Varint).int32(e.status),""!==e.minPriceTickSize&&t.tag(15,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(16,p.LengthDelimited).string(e.minQuantityTickSize),""!==e.minNotional&&t.tag(17,p.LengthDelimited).string(e.minNotional),""!==e.admin&&t.tag(18,p.LengthDelimited).string(e.admin),0!==e.adminPermissions&&t.tag(19,p.Varint).uint32(e.adminPermissions),0!==e.quoteDecimals&&t.tag(20,p.Varint).uint32(e.quoteDecimals),""!==e.reduceMarginRatio&&t.tag(21,p.LengthDelimited).string(e.reduceMarginRatio),e.openNotionalCap&&fu.internalBinaryWrite(e.openNotionalCap,t.tag(22,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.BinaryOptionsMarket",[{no:1,name:"ticker",kind:"scalar",T:9},{no:2,name:"oracle_symbol",kind:"scalar",T:9},{no:3,name:"oracle_provider",kind:"scalar",T:9},{no:4,name:"oracle_type",kind:"enum",T:()=>["injective.oracle.v1beta1.OracleType",fr]},{no:5,name:"oracle_scale_factor",kind:"scalar",T:13},{no:6,name:"expiration_timestamp",kind:"scalar",T:3,L:0},{no:7,name:"settlement_timestamp",kind:"scalar",T:3,L:0},{no:8,name:"admin",kind:"scalar",T:9},{no:9,name:"quote_denom",kind:"scalar",T:9},{no:10,name:"market_id",kind:"scalar",T:9},{no:11,name:"maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:12,name:"taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:13,name:"relayer_fee_share_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:14,name:"status",kind:"enum",T:()=>["injective.exchange.v1beta1.MarketStatus",fd]},{no:15,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:16,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:17,name:"settlement_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:18,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:19,name:"admin_permissions",kind:"scalar",T:13},{no:20,name:"quote_decimals",kind:"scalar",T:13}],{"gogoproto.goproto_getters":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.ticker="",t.oracleSymbol="",t.oracleProvider="",t.oracleType=0,t.oracleScaleFactor=0,t.expirationTimestamp=0n,t.settlementTimestamp=0n,t.admin="",t.quoteDenom="",t.marketId="",t.makerFeeRate="",t.takerFeeRate="",t.relayerFeeShareRate="",t.status=0,t.minPriceTickSize="",t.minQuantityTickSize="",t.settlementPrice
2051="",t.minNotional="",t.adminPermissions=0,t.quoteDecimals=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.ticker=e.string();break;case 2:n.oracleSymbol=e.string();break;case 3:n.oracleProvider=e.string();break;case 4:n.oracleType=e.int32();break;case 5:n.oracleScaleFactor=e.uint32();break;case 6:n.expirationTimestamp=e.int64().toBigInt();break;case 7:n.settlementTimestamp=e.int64().toBigInt();break;case 8:n.admin=e.string();break;case 9:n.quoteDenom=e.string();break;case 10:n.marketId=e.string();break;case 11:n.makerFeeRate=e.string();break;case 12:n.takerFeeRate=e.string();break;case 13:n.relayerFeeShareRate=e.string();break;case 14:n.status=e.int32();break;case 15:n.minPriceTickSize=e.string();break;case 16:n.minQuantityTickSize=e.string();break;case 17:n.settlementPrice=e.string();break;case 18:n.minNotional=e.string();break;case 19:n.adminPermissions=e.uint32();break;case 20:n.quoteDecimals=e.uint32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.ticker&&t.tag(1,p.LengthDelimited).string(e.ticker),""!==e.oracleSymbol&&t.tag(2,p.LengthDelimited).string(e.oracleSymbol),""!==e.oracleProvider&&t.tag(3,p.LengthDelimited).string(e.oracleProvider),0!==e.oracleType&&t.tag(4,p.Varint).int32(e.oracleType),0!==e.oracleScaleFactor&&t.tag(5,p.Varint).uint32(e.oracleScaleFactor),0n!==e.expirationTimestamp&&t.tag(6,p.Varint).int64(e.expirationTimestamp),0n!==e.settlementTimestamp&&t.tag(7,p.Varint).int64(e.settlementTimestamp),""!==e.admin&&t.tag(8,p.LengthDelimited).string(e.admin),""!==e.quoteDenom&&t.tag(9,p.LengthDelimited).string(e.quoteDenom),""!==e.marketId&&t.tag(10,p.LengthDelimited).string(e.marketId),""!==e.makerFeeRate&&t.tag(11,p.LengthDelimited).string(e.makerFeeRate),""!==e.takerFeeRate&&t.tag(12,p.LengthDelimited).string(e.takerFeeRate),""!==e.relayerFeeShareRate&&t.tag(13,p.LengthDelimited).string(e.relayerFeeShareRate),0!==e.status&&t.tag(14,p.Varint).int32(e.status),""!==e.minPriceTickSize&&t.tag(15,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(16,p.LengthDelimited).string(e.minQuantityTickSize),""!==e.settlementPrice&&t.tag(17,p.LengthDelimited).string(e.settlementPrice),""!==e.minNotional&&t.tag(18,p.LengthDelimited).string(e.minNotional),0!==e.adminPermissions&&t.tag(19,p.Varint).uint32(e.adminPermissions),0!==e.quoteDecimals&&t.tag(20,p.Varint).uint32(e.quoteDecimals);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.ExpiryFuturesMarketInfo",[{no:1,name:"market_id",kind:"scalar",T:9},{no:2,name:"expiration_timestamp",kind:"scalar",T:3,L:0},{no:3,name:"twap_start_timestamp",kind:"scalar",T:3,L:0},{no:4,name:"expiration_twap_start_price_cumulative",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"settlement_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.marketId="",t.expirationTimestamp=0n,t.twapStartTimestamp=0n,t.expirationTwapStartPriceCumulative="",t.settlementPrice="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.marketId=e.string();break;case 2:n.expirationTimestamp=e.int64().toBigInt();break;case 3:n.twapStartTimestamp=e.int64().toBigInt();break;case 4:n.expirationTwapStartPriceCumulative=e.string();break;case 5:n.settlementPrice=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.marketId&&t.tag(1,p.LengthDelimited).string(e.marketId),0n!==e.expirationTimestamp&&t.tag(2,p.Varint).int64(e.expirationTimestamp),0n!==e.twapStartTimestamp&&t.tag(3,p.Varint).int64(e.twapStartTimestamp),""!==e.expirationTwapStartPriceCumulative&&t.tag(4,p.LengthDelimited).string(e.expirationTwapStartPriceCumulative),""!==e.settlementPrice&&t.tag(5,p.LengthDelimited).string(e.settlementPrice);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.PerpetualMarketInfo",[{no:1,name:"market_id",kind:"scalar",T:9},{no:2,name:"hourly_funding_rate_cap",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"hourly_interest_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"next_funding_timestamp",kind:"scalar",T:3,L:0},{no:5,name:"funding_interval",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.marketId="",t.hourlyFundingRateCap="",t.hourlyInterestRate="",t.nextFundingTimestamp=0n,t.fundingInterval=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.marketId=e.string();break;case 2:n.hourlyFundingRateCap=e.string();break;case 3:n.hourlyInterestRate=e.string();break;case 4:n.nextFundingTimestamp=e.int64().toBigInt();break;case 5:n.fundingInterval=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.marketId&&t.tag(1,p.LengthDelimited).string(e.marketId),""!==e.hourlyFundingRateCap&&t.tag(2,p.LengthDelimited).string(e.hourlyFundingRateCap),""!==e.hourlyInterestRate&&t.tag(3,p.LengthDelimited).string(e.hourlyInterestRate),0n!==e.nextFundingTimestamp&&t.tag(4,p.Varint).int64(e.nextFundingTimestamp),0n!==e.fundingInterval&&t.tag(5,p.Varint).int64(e.fundingInterval);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.PerpetualMarketFunding",[{no:1,name:"cumulative_funding",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:2,name:"cumulative_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"last_timestamp",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.cumulativeFunding="",t.cumulativePrice="",t.lastTimestamp=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.cumulativeFunding=e.string();break;case 2:n.cumulativePrice=e.string();break;case 3:n.lastTimestamp=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.cumulativeFunding&&t.tag(1,p.LengthDelimited).string(e.cumulativeFunding),""!==e.cumulativePrice&&t.tag(2,p.LengthDelimited).string(e.cumulativePrice),0n!==e.lastTimestamp&&t.tag(3,p.Varint).int64(e.lastTimestamp);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.DerivativeMarketSettlementInfo",[{no:1,name:"market_id",kind:"scalar",T:9},{no:2,name:"settlement_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.marketId="",t.settlementPrice="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.marketId=e.string();break;case 2:n.settlementPrice=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.marketId&&t.tag(1,p.LengthDelimited).string(e.marketId),""!==e.settlementPrice&&t.tag(2,p.LengthDelimited).string(e.settlementPrice);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.NextFundingTimestamp",[{no:1,name:"next_timestamp",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.nextTimestamp=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.nextTimestamp=e.int64().toBigInt();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.nextTimestamp&&t.tag(1,p.Varint).int64(e.nextTimestamp);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.MidPriceAndTOB",[{no:1,name:"mid_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:2,name:"best_buy_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"best_sell_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.midPrice="",t.bestBuyPrice="",t.bestSellPrice="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.midPrice=e.string();break;case 2:n.bestBuyPrice=e.string();break;case 3:n.bestSellPrice=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.midPrice&&t.tag(1,p.LengthDelimited).string(e.midPrice),""!==e.bestBuyPrice&&t.tag(2,p.LengthDelimited).string(e.bestBuyPrice),""!==e.bestSellPrice&&t.tag(3,p.LengthDelimited).string(e.bestSellPrice);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.SpotMarket",[{no:1,name:"ticker",kind:"scalar",T:9},{no:2,name:"base_denom",kind:"scalar",T:9},{no:3,name:"quote_denom",kind:"scalar",T:9},{no:4,name:"maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:6,name:"relayer_fee_share_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:7,name:"market_id",kind:"scalar",T:9},{no:8,name:"status",kind:"enum",T:()=>["injective.exchange.v1beta1.MarketStatus",fd]},{no:9,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:10,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:11,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:12,name:"admin",kind:"scalar",T:9},{no:13,name:"admin_permissions",kind:"scalar",T:13},{no:14,name:"base_decimals",kind:"scalar",T:13},{no:15,name:"quote_decimals",kind:"scalar",T:13}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.ticker="",t.baseDenom="",t.quoteDenom="",t.makerFeeRate="",t.takerFeeRate="",t.relayerFeeShareRate="",t.marketId="",t.status=0,t.minPriceTickSize="",t.minQuantityTickSize="",t.minNotional="",t.admin="",t.adminPermissions=0,t.baseDecimals=0,t.quoteDecimals=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.ticker=e.string();break;case 2:n.baseDenom=e.string();break;case 3:n.quoteDenom=e.string();break;case 4:n.makerFeeRate=e.string();break;case 5:n.takerFeeRate=e.string();break;case 6:n.relayerFeeShareRate=e.string();break;case 7:n.marketId=e.string();break;case 8:n.status=e.int32();break;case 9:n.minPriceTickSize=e.string();break;case 10:n.minQuantityTickSize=e.string();break;case 11:n.minNotional=e.string();break;case 12:n.admin=e.string();break;case 13:n.adminPermissions=e.uint32();break;case 14:n.baseDecimals=e.uint32();break;case 15:n.quoteDecimals=e.uint32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.ticker&&t.tag(1,p.LengthDelimited).string(e.ticker),""!==e.baseDenom&&t.tag(2,p.LengthDelimited).string(e.baseDenom),""!==e.quoteDenom&&t.tag(3,p.LengthDelimited).string(e.quoteDenom),""!==e.makerFeeRate&&t.tag(4,p.LengthDelimited).string(e.makerFeeRate),""!==e.takerFeeRate&&t.tag(5,p.LengthDelimited).string(e.takerFeeRate),""!==e.relayerFeeShareRate&&t.tag(6,p.LengthDelimited).string(e.relayerFeeShareRate),""!==e.marketId&&t.tag(7,p.LengthDelimited).string(e.marketId),0!==e.status&&t.tag(8,p.Varint).int32(e.status),""!==e.minPriceTickSize&&t.tag(9,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(10,p.LengthDelimited).string(e.minQuantityTickSize),""!==e.minNotional&&t.tag(11,p.LengthDelimited).string(e.minNotional),""!==e.admin&&t.tag(12,p.LengthDelimited).string(e.admin),0!==e.adminPermissions&&t.tag(13,p.Varint).uint32(e.adminPermissions),0!==e.baseDecimals&&t.tag(14,p.Varint).uint32(e.baseDecimals),0!==e.quoteDecimals&&t.tag(15,p.Varint).uint32(e.quoteDecimals);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fb=new class extends cK{constructor(){super("injective.exchange.v1beta1.Deposit",[{no:1,name:"available_balance",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:2,name:"total_balance",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.availableBalance="",t.totalBalance="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.availableBalance=e.string();break;case 2:n.totalBalance=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.availableBalance&&t.tag(1,p.LengthDelimited).string(e.availableBalance),""!==e.totalBalance&&t.tag(2,p.LengthDelimited).string(e.totalBalance);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.SubaccountTradeNonce",[{no:1,name:"nonce",kind:"scalar",T:13}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.nonce=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.nonce=e.uint32();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.nonce&&t.tag(1,p.Varint).uint32(e.nonce);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fy=new class extends cK{constructor(){super("injective.exchange.v1beta1.OrderInfo",[{no:1,name:"subaccount_id",kind:"scalar",T:9},{no:2,name:"fee_recipient",kind:"scalar",T:9},{no:3,name:"price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"quantity",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"cid",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.subaccountId="",t.feeRecipient="",t.price="",t.quantity="",t.cid="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.subaccountId=e.string();break;case 2:n.feeRecipient=e.string();break;case 3:n.price=e.string();break;case 4:n.quantity=e.string();break;case 5:n.cid=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.subaccountId&&t.tag(1,p.LengthDelimited).string(e.subaccountId),""!==e.feeRecipient&&t.tag(2,p.LengthDelimited).string(e.feeRecipient),""!==e.price&&t.tag(3,p.LengthDelimited).string(e.price),""!==e.quantity&&t.tag(4,p.LengthDelimited).string(e.quantity),""!==e.cid&&t.tag(5,p.LengthDelimited).string(e.cid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fk=new class extends cK{constructor(){super("injective.exchange.v1beta1.SpotOrder",[{no:1,name:"market_id",kind:"scalar",T:9},{no:2,name:"order_info",kind:"message",T:()=>fy,options:{"gogoproto.nullable":!1}},{no:3,name:"order_type",kind:"enum",T:()=>["injective.exchange.v1beta1.OrderType",fp]},{no:4,name:"trigger_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.marketId="",t.orderType=0,t.triggerPrice="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.marketId=e.string();break;case 2:n.orderInfo=fy.internalBinaryRead(e,e.uint32(),r,n.orderInfo);break;case 3:n.orderType=e.int32();break;case 4:n.triggerPrice=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.marketId&&t.tag(1,p.LengthDelimited).string(e.marketId),e.orderInfo&&fy.internalBinaryWrite(e.orderInfo,t.tag(2,p.LengthDelimited).fork(),r).join(),0!==e.orderType&&t.tag(3,p.Varint).int32(e.orderType),""!==e.triggerPrice&&t.tag(4,p.LengthDelimited).string(e.triggerPrice);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.SpotLimitOrder",[{no:1,name:"order_info",kind:"message",T:()=>fy,options:{"gogoproto.nullable":!1}},{no:2,name:"order_type",kind:"enum",T:()=>["injective.exchange.v1beta1.OrderType",fp]},{no:3,name:"fillable",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"trigger_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"order_hash",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.orderType=0,t.fillable="",t.triggerPrice="",t.orderHash=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.orderInfo=fy.internalBinaryRead(e,e.uint32(),r,n.orderInfo);break;case 2:n.orderType=e.int32();break;case 3:n.fillable=e.string();break;case 4:n.triggerPrice=e.string();break;case 5:n.orderHash=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.orderInfo&&fy.internalBinaryWrite(e.orderInfo,t.tag(1,p.LengthDelimited).fork(),r).join(),0!==e.orderType&&t.tag(2,p.Varint).int32(e.orderType),""!==e.fillable&&t.tag(3,p.LengthDelimited).string(e.fillable),""!==e.triggerPrice&&t.tag(4,p.LengthDelimited).string(e.triggerPrice),e.orderHash.length&&t.tag(5,p.LengthDelimited).bytes(e.orderHash);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.SpotMarketOrder",[{no:1,name:"order_info",kind:"message",T:()=>fy,options:{"gogoproto.nullable":!1}},{no:2,name:"balance_hold",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"order_hash",kind:"scalar",T:12},{no:4,name:"order_type",kind:"enum",T:()=>["injective.exchange.v1beta1.OrderType",fp]},{no:5,name:"trigger_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.balanceHold="",t.orderHash=new Uint8Array(0),t.orderType=0,t.triggerPrice="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.orderInfo=fy.internalBinaryRead(e,e.uint32(),r,n.orderInfo);break;case 2:n.balanceHold=e.string();break;case 3:n.orderHash=e.bytes();break;case 4:n.orderType=e.int32();break;case 5:n.triggerPrice=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.orderInfo&&fy.internalBinaryWrite(e.orderInfo,t.tag(1,p.LengthDelimited).fork(),r).join(),""!==e.balanceHold&&t.tag(2,p.LengthDelimited).string(e.balanceHold),e.orderHash.length&&t.tag(3,p.LengthDelimited).bytes(e.orderHash),0!==e.orderType&&t.tag(4,p.Varint).int32(e.orderType),""!==e.triggerPrice&&t.tag(5,p.LengthDelimited).string(e.triggerPrice);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fx=new class extends cK{constructor(){super("injective.exchange.v1beta1.DerivativeOrder",[{no:1,name:"market_id",kind:"scalar",T:9},{no:2,name:"order_info",kind:"message",T:()=>fy,options:{"gogoproto.nullable":!1}},{no:3,name:"order_type",kind:"enum",T:()=>["injective.exchange.v1beta1.OrderType",fp]},{no:4,name:"margin",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"trigger_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.marketId="",t.orderType=0,t.margin="",t.triggerPrice="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.marketId=e.string();break;case 2:n.orderInfo=fy.internalBinaryRead(e,e.uint32(),r,n.orderInfo);break;case 3:n.orderType=e.int32();break;case 4:n.margin=e.string();break;case 5:n.triggerPrice=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.marketId&&t.tag(1,p.LengthDelimited).string(e.marketId),e.orderInfo&&fy.internalBinaryWrite(e.orderInfo,t.tag(2,p.LengthDelimited).fork(),r).join(),0!==e.orderType&&t.tag(3,p.Varint).int32(e.orderType),""!==e.margin&&t.tag(4,p.LengthDelimited).string(e.margin),""!==e.triggerPrice&&t.tag(5,p.LengthDelimited).string(e.triggerPrice);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.SubaccountOrderbookMetadata",[{no:1,name:"vanilla_limit_order_count",kind:"scalar",T:13},{no:2,name:"reduce_only_limit_order_count",kind:"scalar",T:13},{no:3,name:"aggregate_reduce_only_quantity",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"aggregate_vanilla_quantity",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"vanilla_conditional_order_count",kind:"scalar",T:13},{no:6,name:"reduce_only_conditional_order_count",kind:"scalar",T:13}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.vanillaLimitOrderCount=0,t.reduceOnlyLimitOrderCount=0,t.aggregateReduceOnlyQuantity="",t.aggregateVanillaQuantity="",t.vanillaConditionalOrderCount=0,t.reduceOnlyConditionalOrderCount=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.vanillaLimitOrderCount=e.uint32();break;case 2:n.reduceOnlyLimitOrderCount=e.uint32();break;case 3:n.aggregateReduceOnlyQuantity=e.string();break;case 4:n.aggregateVanillaQuantity=e.string();break;case 5:n.vanillaConditionalOrderCount=e.uint32();break;case 6:n.reduceOnlyConditionalOrderCount=e.uint32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.vanillaLimitOrderCount&&t.tag(1,p.Varint).uint32(e.vanillaLimitOrderCount),0!==e.reduceOnlyLimitOrderCount&&t.tag(2,p.Varint).uint32(e.reduceOnlyLimitOrderCount),""!==e.aggregateReduceOnlyQuantity&&t.tag(3,p.LengthDelimited).string(e.aggregateReduceOnlyQuantity),""!==e.aggregateVanillaQuantity&&t.tag(4,p.LengthDelimited).string(e.aggregateVanillaQuantity),0!==e.vanillaConditionalOrderCount&&t.tag(5,p.Varint).uint32(e.vanillaConditionalOrderCount),0!==e.reduceOnlyConditionalOrderCount&&t.tag(6,p.Varint).uint32(e.reduceOnlyConditionalOrderCount);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fw=new class extends cK{constructor(){super("injective.exchange.v1beta1.SubaccountOrder",[{no:1,name:"price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:2,name:"quantity",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"isReduceOnly",kind:"scalar",T:8},{no:4,name:"cid",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.price="",t.quantity="",t.isReduceOnly=!1,t.cid="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.price=e.string();break;case 2:n.quantity=e.string();break;case 3:n.isReduceOnly=e.bool();break;case 4:n.cid=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.price&&t.tag(1,p.LengthDelimited).string(e.price),""!==e.quantity&&t.tag(2,p.LengthDelimited).string(e.quantity),!1!==e.isReduceOnly&&t.tag(3,p.Varint).bool(e.isReduceOnly),""!==e.cid&&t.tag(4,p.LengthDelimited).string(e.cid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.SubaccountOrderData",[{no:1,name:"order",kind:"message",T:()=>fw},{no:2,name:"order_hash",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.orderHash=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.order=fw.internalBinaryRead(e,e.uint32(),r,n.order);break;case 2:n.orderHash=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.order&&fw.internalBinaryWrite(e.order,t.tag(1,p.LengthDelimited).fork(),r).join(),e.orderHash.length&&t.tag(2,p.LengthDelimited).bytes(e.orderHash);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.DerivativeLimitOrder",[{no:1,name:"order_info",kind:"message",T:()=>fy,options:{"gogoproto.nullable":!1}},{no:2,name:"order_type",kind:"enum",T:()=>["injective.exchange.v1beta1.OrderType",fp]},{no:3,name:"margin",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"fillable",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"trigger_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:6,name:"order_hash",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.orderType=0,t.margin="",t.fillable="",t.triggerPrice="",t.orderHash=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.orderInfo=fy.internalBinaryRead(e,e.uint32(),r,n.orderInfo);break;case 2:n.orderType=e.int32();break;case 3:n.margin=e.string();break;case 4:n.fillable=e.string();break;case 5:n.triggerPrice=e.string();break;case 6:n.orderHash=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.orderInfo&&fy.internalBinaryWrite(e.orderInfo,t.tag(1,p.LengthDelimited).fork(),r).join(),0!==e.orderType&&t.tag(2,p.Varint).int32(e.orderType),""!==e.margin&&t.tag(3,p.LengthDelimited).string(e.margin),""!==e.fillable&&t.tag(4,p.LengthDelimited).string(e.fillable),""!==e.triggerPrice&&t.tag(5,p.LengthDelimited).string(e.triggerPrice),e.orderHash.length&&t.tag(6,p.LengthDelimited).bytes(e.orderHash);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.DerivativeMarketOrder",[{no:1,name:"order_info",kind:"message",T:()=>fy,options:{"gogoproto.nullable":!1}},{no:2,name:"order_type",kind:"enum",T:()=>["injective.exchange.v1beta1.OrderType",fp]},{no:3,name:"margin",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"margin_hold",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"trigger_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:6,name:"order_hash",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.orderType=0,t.margin="",t.marginHold="",t.triggerPrice="",t.orderHash=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.orderInfo=fy.internalBinaryRead(e,e.uint32(),r,n.orderInfo);break;case 2:n.orderType=e.int32();break;case 3:n.margin=e.string();break;case 4:n.marginHold=e.string();break;case 5:n.triggerPrice=e.string();break;case 6:n.orderHash=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.orderInfo&&fy.internalBinaryWrite(e.orderInfo,t.tag(1,p.LengthDelimited).fork(),r).join(),0!==e.orderType&&t.tag(2,p.Varint).int32(e.orderType),""!==e.margin&&t.tag(3,p.LengthDelimited).string(e.margin),""!==e.marginHold&&t.tag(4,p.LengthDelimited).string(e.marginHold),""!==e.triggerPrice&&t.tag(5,p.LengthDelimited).string(e.triggerPrice),e.orderHash.length&&t.tag(6,p.LengthDelimited).bytes(e.orderHash);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fv=new class extends cK{constructor(){super("injective.exchange.v1beta1.Position",[{no:1,name:"isLong",kind:"scalar",T:8},{no:2,name:"quantity",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"entry_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"margin",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"cumulative_funding_entry",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.isLong=!1,t.quantity="",t.entryPrice="",t.margin="",t.cumulativeFundingEntry="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.isLong=e.bool();break;case 2:n.quantity=e.string();break;case 3:n.entryPrice=e.string();break;case 4:n.margin=e.string();break;case 5:n.cumulativeFundingEntry=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){!1!==e.isLong&&t.tag(1,p.Varint).bool(e.isLong),""!==e.quantity&&t.tag(2,p.LengthDelimited).string(e.quantity),""!==e.entryPrice&&t.tag(3,p.LengthDelimited).string(e.entryPrice),""!==e.margin&&t.tag(4,p.LengthDelimited).string(e.margin),""!==e.cumulativeFundingEntry&&t.tag(5,p.LengthDelimited).string(e.cumulativeFundingEntry
2051);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.MarketOrderIndicator",[{no:1,name:"market_id",kind:"scalar",T:9},{no:2,name:"isBuy",kind:"scalar",T:8}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.marketId="",t.isBuy=!1,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.marketId=e.string();break;case 2:n.isBuy=e.bool();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.marketId&&t.tag(1,p.LengthDelimited).string(e.marketId),!1!==e.isBuy&&t.tag(2,p.Varint).bool(e.isBuy);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.TradeLog",[{no:1,name:"quantity",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:2,name:"price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"subaccount_id",kind:"scalar",T:12},{no:4,name:"fee",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"order_hash",kind:"scalar",T:12},{no:6,name:"fee_recipient_address",kind:"scalar",T:12,options:{"gogoproto.nullable":!0}},{no:7,name:"cid",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.quantity="",t.price="",t.subaccountId=new Uint8Array(0),t.fee="",t.orderHash=new Uint8Array(0),t.feeRecipientAddress=new Uint8Array(0),t.cid="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.quantity=e.string();break;case 2:n.price=e.string();break;case 3:n.subaccountId=e.bytes();break;case 4:n.fee=e.string();break;case 5:n.orderHash=e.bytes();break;case 6:n.feeRecipientAddress=e.bytes();break;case 7:n.cid=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.quantity&&t.tag(1,p.LengthDelimited).string(e.quantity),""!==e.price&&t.tag(2,p.LengthDelimited).string(e.price),e.subaccountId.length&&t.tag(3,p.LengthDelimited).bytes(e.subaccountId),""!==e.fee&&t.tag(4,p.LengthDelimited).string(e.fee),e.orderHash.length&&t.tag(5,p.LengthDelimited).bytes(e.orderHash),e.feeRecipientAddress.length&&t.tag(6,p.LengthDelimited).bytes(e.feeRecipientAddress),""!==e.cid&&t.tag(7,p.LengthDelimited).string(e.cid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fT=new class extends cK{constructor(){super("injective.exchange.v1beta1.PositionDelta",[{no:1,name:"is_long",kind:"scalar",T:8},{no:2,name:"execution_quantity",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"execution_margin",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"execution_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.isLong=!1,t.executionQuantity="",t.executionMargin="",t.executionPrice="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.isLong=e.bool();break;case 2:n.executionQuantity=e.string();break;case 3:n.executionMargin=e.string();break;case 4:n.executionPrice=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){!1!==e.isLong&&t.tag(1,p.Varint).bool(e.isLong),""!==e.executionQuantity&&t.tag(2,p.LengthDelimited).string(e.executionQuantity),""!==e.executionMargin&&t.tag(3,p.LengthDelimited).string(e.executionMargin),""!==e.executionPrice&&t.tag(4,p.LengthDelimited).string(e.executionPrice);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.DerivativeTradeLog",[{no:1,name:"subaccount_id",kind:"scalar",T:12},{no:2,name:"position_delta",kind:"message",T:()=>fT},{no:3,name:"payout",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"fee",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"order_hash",kind:"scalar",T:12},{no:6,name:"fee_recipient_address",kind:"scalar",T:12,options:{"gogoproto.nullable":!0}},{no:7,name:"cid",kind:"scalar",T:9},{no:8,name:"pnl",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.subaccountId=new Uint8Array(0),t.payout="",t.fee="",t.orderHash=new Uint8Array(0),t.feeRecipientAddress=new Uint8Array(0),t.cid="",t.pnl="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.subaccountId=e.bytes();break;case 2:n.positionDelta=fT.internalBinaryRead(e,e.uint32(),r,n.positionDelta);break;case 3:n.payout=e.string();break;case 4:n.fee=e.string();break;case 5:n.orderHash=e.bytes();break;case 6:n.feeRecipientAddress=e.bytes();break;case 7:n.cid=e.string();break;case 8:n.pnl=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.subaccountId.length&&t.tag(1,p.LengthDelimited).bytes(e.subaccountId),e.positionDelta&&fT.internalBinaryWrite(e.positionDelta,t.tag(2,p.LengthDelimited).fork(),r).join(),""!==e.payout&&t.tag(3,p.LengthDelimited).string(e.payout),""!==e.fee&&t.tag(4,p.LengthDelimited).string(e.fee),e.orderHash.length&&t.tag(5,p.LengthDelimited).bytes(e.orderHash),e.feeRecipientAddress.length&&t.tag(6,p.LengthDelimited).bytes(e.feeRecipientAddress),""!==e.cid&&t.tag(7,p.LengthDelimited).string(e.cid),""!==e.pnl&&t.tag(8,p.LengthDelimited).string(e.pnl);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.SubaccountPosition",[{no:1,name:"position",kind:"message",T:()=>fv},{no:2,name:"subaccount_id",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.subaccountId=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.position=fv.internalBinaryRead(e,e.uint32(),r,n.position);break;case 2:n.subaccountId=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.position&&fv.internalBinaryWrite(e.position,t.tag(1,p.LengthDelimited).fork(),r).join(),e.subaccountId.length&&t.tag(2,p.LengthDelimited).bytes(e.subaccountId);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fE=new class extends cK{constructor(){super("injective.exchange.v1beta1.SubaccountDeposit",[{no:1,name:"subaccount_id",kind:"scalar",T:12},{no:2,name:"deposit",kind:"message",T:()=>fb}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.subaccountId=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.subaccountId=e.bytes();break;case 2:n.deposit=fb.internalBinaryRead(e,e.uint32(),r,n.deposit);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.subaccountId.length&&t.tag(1,p.LengthDelimited).bytes(e.subaccountId),e.deposit&&fb.internalBinaryWrite(e.deposit,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.DepositUpdate",[{no:1,name:"denom",kind:"scalar",T:9},{no:2,name:"deposits",kind:"message",repeat:2,T:()=>fE}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.denom="",t.deposits=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.denom=e.string();break;case 2:n.deposits.push(fE.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.denom&&t.tag(1,p.LengthDelimited).string(e.denom);for(let a=0;a<e.deposits.length;a++)fE.internalBinaryWrite(e.deposits[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fB=new class extends cK{constructor(){super("injective.exchange.v1beta1.PointsMultiplier",[{no:1,name:"maker_points_multiplier",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:2,name:"taker_points_multiplier",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.makerPointsMultiplier="",t.takerPointsMultiplier="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.makerPointsMultiplier=e.string();break;case 2:n.takerPointsMultiplier=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.makerPointsMultiplier&&t.tag(1,p.LengthDelimited).string(e.makerPointsMultiplier),""!==e.takerPointsMultiplier&&t.tag(2,p.LengthDelimited).string(e.takerPointsMultiplier);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fC=new class extends cK{constructor(){super("injective.exchange.v1beta1.TradingRewardCampaignBoostInfo",[{no:1,name:"boosted_spot_market_ids",kind:"scalar",repeat:2,T:9},{no:2,name:"spot_market_multipliers",kind:"message",repeat:2,T:()=>fB,options:{"gogoproto.nullable":!1}},{no:3,name:"boosted_derivative_market_ids",kind:"scalar",repeat:2,T:9},{no:4,name:"derivative_market_multipliers",kind:"message",repeat:2,T:()=>fB,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.boostedSpotMarketIds=[],t.spotMarketMultipliers=[],t.boostedDerivativeMarketIds=[],t.derivativeMarketMultipliers=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.boostedSpotMarketIds.push(e.string());break;case 2:n.spotMarketMultipliers.push(fB.internalBinaryRead(e,e.uint32(),r));break;case 3:n.boostedDerivativeMarketIds.push(e.string());break;case 4:n.derivativeMarketMultipliers.push(fB.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let r=0;r<e.boostedSpotMarketIds.length;r++)t.tag(1,p.LengthDelimited).string(e.boostedSpotMarketIds[r]);for(let a=0;a<e.spotMarketMultipliers.length;a++)fB.internalBinaryWrite(e.spotMarketMultipliers[a],t.tag(2,p.LengthDelimited).fork(),r).join();for(let r=0;r<e.boostedDerivativeMarketIds.length;r++)t.tag(3,p.LengthDelimited).string(e.boostedDerivativeMarketIds[r]);for(let a=0;a<e.derivativeMarketMultipliers.length;a++)fB.internalBinaryWrite(e.derivativeMarketMultipliers[a],t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fU=new class extends cK{constructor(){super("injective.exchange.v1beta1.CampaignRewardPool",[{no:1,name:"start_timestamp",kind:"scalar",T:3,L:0},{no:2,name:"max_campaign_rewards",kind:"message",repeat:2,T:()=>dn,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"github.com/cosmos/cosmos-sdk/types.Coins"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.startTimestamp=0n,t.maxCampaignRewards=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.startTimestamp=e.int64().toBigInt();break;case 2:n.maxCampaignRewards.push(dn.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.startTimestamp&&t.tag(1,p.Varint).int64(e.startTimestamp);for(let a=0;a<e.maxCampaignRewards.length;a++)dn.internalBinaryWrite(e.maxCampaignRewards[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fI=new class extends cK{constructor(){super("injective.exchange.v1beta1.TradingRewardCampaignInfo",[{no:1,name:"campaign_duration_seconds",kind:"scalar",T:3,L:0},{no:2,name:"quote_denoms",kind:"scalar",repeat:2,T:9},{no:3,name:"trading_reward_boost_info",kind:"message",T:()=>fC},{no:4,name:"disqualified_market_ids",kind:"scalar",repeat:2,T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.campaignDurationSeconds=0n,t.quoteDenoms=[],t.disqualifiedMarketIds=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.campaignDurationSeconds=e.int64().toBigInt();break;case 2:n.quoteDenoms.push(e.string());break;case 3:n.tradingRewardBoostInfo=fC.internalBinaryRead(e,e.uint32(),r,n.tradingRewardBoostInfo);break;case 4:n.disqualifiedMarketIds.push(e.string());break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.campaignDurationSeconds&&t.tag(1,p.Varint).int64(e.campaignDurationSeconds);for(let r=0;r<e.quoteDenoms.length;r++)t.tag(2,p.LengthDelimited).string(e.quoteDenoms[r]);e.tradingRewardBoostInfo&&fC.internalBinaryWrite(e.tradingRewardBoostInfo,t.tag(3,p.LengthDelimited).fork(),r).join();for(let r=0;r<e.disqualifiedMarketIds.length;r++)t.tag(4,p.LengthDelimited).string(e.disqualifiedMarketIds[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fN=new class extends cK{constructor(){super("injective.exchange.v1beta1.FeeDiscountTierInfo",[{no:1,name:"maker_discount_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:2,name:"taker_discount_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"staked_amount",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.Int"}},{no:4,name:"volume",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.makerDiscountRate="",t.takerDiscountRate="",t.stakedAmount="",t.volume="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.makerDiscountRate=e.string();break;case 2:n.takerDiscountRate=e.string();break;case 3:n.stakedAmount=e.string();break;case 4:n.volume=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.makerDiscountRate&&t.tag(1,p.LengthDelimited).string(e.makerDiscountRate),""!==e.takerDiscountRate&&t.tag(2,p.LengthDelimited).string(e.takerDiscountRate),""!==e.stakedAmount&&t.tag(3,p.LengthDelimited).string(e.stakedAmount),""!==e.volume&&t.tag(4,p.LengthDelimited).string(e.volume);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fR=new class extends cK{constructor(){super("injective.exchange.v1beta1.FeeDiscountSchedule",[{no:1,name:"bucket_count",kind:"scalar",T:4,L:0},{no:2,name:"bucket_duration",kind:"scalar",T:3,L:0},{no:3,name:"quote_denoms",kind:"scalar",repeat:2,T:9},{no:4,name:"tier_infos",kind:"message",repeat:2,T:()=>fN},{no:5,name:"disqualified_market_ids",kind:"scalar",repeat:2,T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.bucketCount=0n,t.bucketDuration=0n,t.quoteDenoms=[],t.tierInfos=[],t.disqualifiedMarketIds=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.bucketCount=e.uint64().toBigInt();break;case 2:n.bucketDuration=e.int64().toBigInt();break;case 3:n.quoteDenoms.push(e.string());break;case 4:n.tierInfos.push(fN.internalBinaryRead(e,e.uint32(),r));break;case 5:n.disqualifiedMarketIds.push(e.string());break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.bucketCount&&t.tag(1,p.Varint).uint64(e.bucketCount),0n!==e.bucketDuration&&t.tag(2,p.Varint).int64(e.bucketDuration);for(let r=0;r<e.quoteDenoms.length;r++)t.tag(3,p.LengthDelimited).string(e.quoteDenoms[r]);for(let a=0;a<e.tierInfos.length;a++)fN.internalBinaryWrite(e.tierInfos[a],t.tag(4,p.LengthDelimited).fork(),r).join();for(let r=0;r<e.disqualifiedMarketIds.length;r++)t.tag(5,p.LengthDelimited).string(e.disqualifiedMarketIds[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.FeeDiscountTierTTL",[{no:1,name:"tier",kind:"scalar",T:4,L:0},{no:2,name:"ttl_timestamp",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.tier=0n,t.ttlTimestamp=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.tier=e.uint64().toBigInt();break;case 2:n.ttlTimestamp=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.tier&&t.tag(1,p.Varint).uint64(e.tier),0n!==e.ttlTimestamp&&t.tag(2,p.Varint).int64(e.ttlTimestamp);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fS=new class extends cK{constructor(){super("injective.exchange.v1beta1.VolumeRecord",[{no:1,name:"maker_volume",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:2,name:"taker_volume",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.makerVolume="",t.takerVolume="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.makerVolume=e.string();break;case 2:n.takerVolume=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.makerVolume&&t.tag(1,p.LengthDelimited).string(e.makerVolume),""!==e.takerVolume&&t.tag(2,p.LengthDelimited).string(e.takerVolume);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.AccountRewards",[{no:1,name:"account",kind:"scalar",T:9},{no:2,name:"rewards",kind:"message",repeat:2,T:()=>dn,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"github.com/cosmos/cosmos-sdk/types.Coins"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.account="",t.rewards=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.account=e.string();break;case 2:n.rewards.push(dn.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.account&&t.tag(1,p.LengthDelimited).string(e.account);for(let a=0;a<e.rewards.length;a++)dn.internalBinaryWrite(e.rewards[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.TradeRecords",[{no:1,name:"market_id",kind:"scalar",T:9},{no:2,name:"latest_trade_records",kind:"message",repeat:2,T:()=>fA}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.marketId="",t.latestTradeRecords=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.marketId=e.string();break;case 2:n.latestTradeRecords.push(fA.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.marketId&&t.tag(1,p.LengthDelimited).string(e.marketId);for(let a=0;a<e.latestTradeRecords.length;a++)fA.internalBinaryWrite(e.latestTradeRecords[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.SubaccountIDs",[{no:1,name:"subaccount_ids",kind:"scalar",repeat:2,T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.subaccountIds=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();if(1===t)n.subaccountIds.push(e.bytes());else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let r=0;r<e.subaccountIds.length;r++)t.tag(1,p.LengthDelimited).bytes(e.subaccountIds[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fA=new class extends cK{constructor(){super("injective.exchange.v1beta1.TradeRecord",[{no:1,name:"timestamp",kind:"scalar",T:3,L:0},{no:2,name:"price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"quantity",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.timestamp=0n,t.price="",t.quantity="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.timestamp=e.int64().toBigInt();break;case 2:n.price=e.string();break;case 3:n.quantity=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.timestamp&&t.tag(1,p.Varint).int64(e.timestamp),""!==e.price&&t.tag(2,p.LengthDelimited).string(e.price),""!==e.quantity&&t.tag(3,p.LengthDelimited).string(e.quantity);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.Level",[{no:1,name:"p",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:2,name:"q",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.p="",t.q="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.p=e.string();break;case 2:n.q=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.p&&t.tag(1,p.LengthDelimited).string(e.p),""!==e.q&&t.tag(2,p.LengthDelimited).string(e.q);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.AggregateSubaccountVolumeRecord",[{no:1,name:"subaccount_id",kind:"scalar",T:9},{no:2,name:"market_volumes",kind:"message",repeat:2,T:()=>fP}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.subaccountId="",t.marketVolumes=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.subaccountId=e.string();break;case 2:n.marketVolumes.push(fP.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.subaccountId&&t.tag(1,p.LengthDelimited).string(e.subaccountId);for(let a=0;a<e.marketVolumes.length;a++)fP.internalBinaryWrite(e.marketVolumes[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.AggregateAccountVolumeRecord",[{no:1,name:"account",kind:"scalar",T:9},{no:2,name:"market_volumes",kind:"message",repeat:2,T:()=>fP}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.account="",t.marketVolumes=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.account=e.string();break;case 2:n.marketVolumes.push(fP.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.account&&t.tag(1,p.LengthDelimited).string(e.account);for(let a=0;a<e.marketVolumes.length;a++)fP.internalBinaryWrite(e.marketVolumes[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fP=new class extends cK{constructor(){super("injective.exchange.v1beta1.MarketVolume",[{no:1,name:"market_id",kind:"scalar",T:9},{no:2,name:"volume",kind:"message",T:()=>fS,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.marketId="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.marketId=e.string();break;case 2:n.volume=fS.internalBinaryRead(e,e.uint32(),r,n.volume);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.marketId&&t.tag(1,p.LengthDelimited).string(e.marketId),e.volume&&fS.internalBinaryWrite(e.volume,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fD=new class extends cK{constructor(){super("injective.exchange.v1beta1.DenomDecimals",[{no:1,name:"denom",kind:"scalar",T:9},{no:2,name:"decimals",kind:"scalar",T:4,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.denom="",t.decimals=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.denom=e.string();break;case 2:n.decimals=e.uint64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.denom&&t.tag(1,p.LengthDelimited).string(e.denom),0n!==e.decimals&&t.tag(2,p.Varint).uint64(e.decimals);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fL=new class extends cK{constructor(){super("injective.exchange.v1beta1.GrantAuthorization",[{no:1,name:"grantee",kind:"scalar",T:9},{no:2,name:"amount",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.Int"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.grantee="",t.amount="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.grantee=e.string();break;case 2:n.amount=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.grantee&&t.tag(1,p.LengthDelimited).string(e.grantee),""!==e.amount&&t.tag(2,p.LengthDelimited).string(e.amount);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.ActiveGrant",[{no:1,name:"granter",kind:"scalar",T:9},{no:2,name:"amount",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.Int"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.granter="",t.amount="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.granter=e.string();break;case 2:n.amount=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.granter&&t.tag(1,p.LengthDelimited).string(e.granter),""!==e.amount&&t.tag(2,p.LengthDelimited).string(e.amount);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.EffectiveGrant",[{no:1,name:"granter",kind:"scalar",T:9},{no:2,name:"net_granted_stake",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.Int"}},{no:3,name:"is_valid",kind:"scalar",T:8}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.granter="",t.netGrantedStake="",t.isValid=!1,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.granter=e.string();break;case 2:n.netGrantedStake=e.string();break;case 3:n.isValid=e.bool();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.granter&&t.tag(1,p.LengthDelimited).string(e.granter),""!==e.netGrantedStake&&t.tag(2,p.LengthDelimited).string(e.netGrantedStake),!1!==e.isValid&&t.tag(3,p.Varint).bool(e.isValid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fO=new class extends cK{constructor(){super("injective.exchange.v1beta1.DenomMinNotional",[{no:1,name:"denom",kind:"scalar",T:9},{no:2,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.denom="",t.minNotional="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.denom=e.string();break;case 2:n.minNotional=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.denom&&t.tag(1,p.LengthDelimited).string(e.denom),""!==e.minNotional&&t.tag(2,p.LengthDelimited).string(e.minNotional);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cosmos.distribution.v1beta1.Params",[{no:1,name:"community_tax",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec","cosmos_proto.scalar":"cosmos.Dec","amino.dont_omitempty":!0}},{no:2,name:"base_proposer_reward",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec","cosmos_proto.scalar":"cosmos.Dec","amino.dont_omitempty":!0}},{no:3,name:"bonus_proposer_reward",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec","cosmos_proto.scalar":"cosmos.Dec","amino.dont_omitempty":!0}},{no:4,name:"withdraw_addr_enabled",kind:"scalar",T:8}],{"amino.name":"cosmos-sdk/x/distribution/Params"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.communityTax="",t.baseProposerReward="",t.bonusProposerReward="",t.withdrawAddrEnabled=!1,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.communityTax=e.string();break;case 2:n.baseProposerReward=e.string();break;case 3:n.bonusProposerReward=e.string();break;case 4:n.withdrawAddrEnabled=e.bool();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.communityTax&&t.tag(1,p.LengthDelimited).string(e.communityTax),""!==e.baseProposerReward&&t.tag(2,p.LengthDelimited).string(e.baseProposerReward),""!==e.bonusProposerReward&&t.tag(3,p.LengthDelimited).string(e.bonusProposerReward),!1!==e.withdrawAddrEnabled&&t.tag(4,p.Varint).bool(e.withdrawAddrEnabled);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cosmos.distribution.v1beta1.ValidatorHistoricalRewards",[{no:1,name:"cumulative_reward_ratio",kind:"message",repeat:2,T:()=>di,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"github.com/cosmos/cosmos-sdk/types.DecCoins","amino.dont_omitempty":!0}},{no:2,name:"reference_count",kind:"scalar",T:13}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.cumulativeRewardRatio=[],t.referenceCount=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.cumulativeRewardRatio.push(di.internalBinaryRead(e,e.uint32(),r));break;case 2:n.referenceCount=e.uint32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.cumulativeRewardRatio.length;a++)di.internalBinaryWrite(e.cumulativeRewardRatio[a],t.tag(1,p.LengthDelimited).fork(),r).join();0!==e.referenceCount&&t.tag(2,p.Varint).uint32(e.referenceCount);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cosmos.distribution.v1beta1.ValidatorCurrentRewards",[{no:1,name:"rewards",kind:"message",repeat:2,T:()=>di,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"github.com/cosmos/cosmos-sdk/types.DecCoins","amino.dont_omitempty":!0}},{no:2,name:"period",kind:"scalar",T:4,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.rewards=[],t.period=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.rewards.push(di.internalBinaryRead(e,e.uint32(),r));break;case 2:n.period=e.uint64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.rewards.length;a++)di.internalBinaryWrite(e.rewards[a],t.tag(1,p.LengthDelimited).fork(),r).join();0n!==e.period&&t.tag(2,p.Varint).uint64(e.period);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cosmos.distribution.v1beta1.ValidatorAccumulatedCommission",[{no:1,name:"commission",kind:"message",repeat:2,T:()=>di,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"github.com/cosmos/cosmos-sdk/types.DecCoins","amino.dont_omitempty":!0}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.commission=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.commission.push(di.internalBinaryRead(e,e.uint32(),r));else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.commission.length;a++)di.internalBinaryWrite(e.commission[a],t.tag(1,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cosmos.distribution.v1beta1.ValidatorOutstandingRewards",[{no:1,name:"rewards",kind:"message",repeat:2,T:()=>di,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"github.com/cosmos/cosmos-sdk/types.DecCoins","amino.dont_omitempty":!0}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.rewards=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.rewards.push(di.internalBinaryRead(e,e.uint32(),r));else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.rewards.length;a++)di.internalBinaryWrite(e.rewards[a],t.tag(1,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fF=new class extends cK{constructor(){super("cosmos.distribution.v1beta1.ValidatorSlashEvent",[{no:1,name:"validator_period",kind:"scalar",T:4,L:0},{no:2,name:"fraction",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec","cosmos_proto.scalar":"cosmos.Dec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.validatorPeriod=0n,t.fraction="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.validatorPeriod=e.uint64().toBigInt();break;case 2:n.fraction=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.validatorPeriod&&t.tag(1,p.Varint).uint64(e.validatorPeriod),""!==e.fraction&&t.tag(2,p.LengthDelimited).string(e.fraction);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cosmos.distribution.v1beta1.ValidatorSlashEvents",[{no:1,name:"validator_slash_events",kind:"message",repeat:2,T:()=>fF,options:{"gogoproto.nullable":!1,"amino.dont_omitempty":!0}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.validatorSlashEvents=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.validatorSlashEvents.push(fF.internalBinaryRead(e,e.uint32(),r));else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.validatorSlashEvents.length;a++)fF.internalBinaryWrite(e.validatorSlashEvents[a],t.tag(1,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cosmos.distribution.v1beta1.FeePool",[{no:1,name:"community_pool",kind:"message",repeat:2,T:()=>di,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"github.com/cosmos/cosmos-sdk/types.DecCoins","amino.dont_omitempty":!0}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.communityPool=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.communityPool.push(di.internalBinaryRead(e,e.uint32(),r));else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.communityPool.length;a++)di.internalBinaryWrite(e.communityPool[a],t.tag(1,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var f_=new class extends cK{constructor(){super("cosmos.distribution.v1beta1.CommunityPoolSpendProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"recipient",kind:"scalar",T:9},{no:4,name:"amount",kind:"message",repeat:2,T:()=>dn,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"github.com/cosmos/cosmos-sdk/types.Coins","amino.encoding":"legacy_coins","amino.dont_omitempty":!0}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.recipient="",t.amount=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.recipient=e.string();break;case 4:n.amount.push(dn.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),""!==e.recipient&&t.tag(3,p.LengthDelimited).string(e.recipient);for(let a=0;a<e.amount.length;a++)dn.internalBinaryWrite(e.amount[a],t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cosmos.distribution.v1beta1.DelegatorStartingInfo",[{no:1,name:"previous_period",kind:"scalar",T:4,L:0},{no:2,name:"stake",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec","cosmos_proto.scalar":"cosmos.Dec","amino.dont_omitempty":!0}},{no:3,name:"height",kind:"scalar",T:4,L:0,options:{"gogoproto.jsontag":"creation_height","amino.field_name":"creation_height","amino.dont_omitempty":!0}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.previousPeriod=0n,t.stake="",t.height=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.previousPeriod=e.uint64().toBigInt();break;case 2:n.stake=e.string();break;case 3:n.height=e.uint64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.previousPeriod&&t.tag(1,p.Varint).uint64(e.previousPeriod),""!==e.stake&&t.tag(2,p.LengthDelimited).string(e.stake),0n!==e.height&&t.tag(3,p.Varint).uint64(e.height);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cosmos.distribution.v1beta1.DelegationDelegatorReward",[{no:1,name:"validator_address",kind:"scalar",T:9,options:{"cosmos_proto.scalar":"cosmos.ValidatorAddressString"}},{no:2,name:"reward",kind:"message",repeat:2,T:()=>di,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"github.com/cosmos/cosmos-sdk/types.DecCoins","amino.dont_omitempty":!0}}],{"gogoproto.goproto_getters":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.validatorAddress="",t.reward=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.validatorAddress=e.string();break;case 2:n.reward.push(di.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.validatorAddress&&t.tag(1,p.LengthDelimited).string(e.validatorAddress);for(let a=0;a<e.reward.length;a++)di.internalBinaryWrite(e.reward[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"recipient",kind:"scalar",T:9},{no:4,name:"amount",kind:"scalar",T:9},{no:5,name:"deposit",kind:"scalar",T:9}],{"gogoproto.goproto_getters":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.recipient="",t.amount="",t.deposit="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.recipient=e.string();break;case 4:n.amount=e.string();break;case 5:n.deposit=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),""!==e.recipient&&t.tag(3,p.LengthDelimited).string(e.recipient),""!==e.amount&&t.tag(4,p.LengthDelimited).string(e.amount),""!==e.deposit&&t.tag(5,p.LengthDelimited).string(e.deposit);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fM=(e=>(e[e.EXCHANGE_UNSPECIFIED=0]="EXCHANGE_UNSPECIFIED",e[e.SPOT=1]="SPOT",e[e.DERIVATIVES=2]="DERIVATIVES",e))(fM||{}),fj=new class extends cK{constructor(){super("injective.exchange.v1beta1.SpotMarketParamUpdateProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"market_id",kind:"scalar",T:9},{no:4,name:"maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:6,name:"relayer_fee_share_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:7,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:8,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:9,name:"status",kind:"enum",T:()=>["injective.exchange.v1beta1.MarketStatus",fd]},{no:10,name:"ticker",kind:"scalar",T:9,options:{"gogoproto.nullable":!0}},{no:11,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:12,name:"admin_info",kind:"message",T:()=>fG},{no:13,name:"base_decimals",kind:"scalar",T:13},{no:14,name:"quote_decimals",kind:"scalar",T:13}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/SpotMarketParamUpdateProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.marketId="",t.makerFeeRate="",t.takerFeeRate="",t.relayerFeeShareRate="",t.minPriceTickSize="",t.minQuantityTickSize="",t.status=0,t.ticker="",t.minNotional="",t.baseDecimals=0,t.quoteDecimals=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.marketId=e.string();break;case 4:n.makerFeeRate=e.string();break;case 5:n.takerFeeRate=e.string();break;case 6:n.relayerFeeShareRate=e.string();break;case 7:n.minPriceTickSize=e.string();break;case 8:n.minQuantityTickSize=e.string();break;case 9:n.status=e.int32();break;case 10:n.ticker=e.string();break;case 11:n.minNotional=e.string();break;case 12:n.adminInfo=fG.internalBinaryRead(e,e.uint32(),r,n.adminInfo);break;case 13:n.baseDecimals=e.uint32();break;case 14:n.quoteDecimals=e.uint32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),""!==e.marketId&&t.tag(3,p.LengthDelimited).string(e.marketId),""!==e.makerFeeRate&&t.tag(4,p.LengthDelimited).string(e.makerFeeRate),""!==e.takerFeeRate&&t.tag(5,p.LengthDelimited).string(e.takerFeeRate),""!==e.relayerFeeShareRate&&t.tag(6,p.LengthDelimited).string(e.relayerFeeShareRate),""!==e.minPriceTickSize&&t.tag(7,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(8,p.LengthDelimited).string(e.minQuantityTickSize),0!==e.status&&t.tag(9,p.Varint).int32(e.status),""!==e.ticker&&t.tag(10,p.LengthDelimited).string(e.ticker),""!==e.minNotional&&t.tag(11,p.LengthDelimited).string(e.minNotional),e.adminInfo&&fG.internalBinaryWrite(e.adminInfo,t.tag(12,p.LengthDelimited).fork(),r).join(),0!==e.baseDecimals&&t.tag(13,p.Varint).uint32(e.baseDecimals),0!==e.quoteDecimals&&t.tag(14,p.Varint).uint32(e.quoteDecimals);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.ExchangeEnableProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"exchangeType",kind:"enum",T:()=>["injective.exchange.v1beta1.ExchangeType",fM]}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/ExchangeEnableProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.exchangeType=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.exchangeType=e.int32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),0!==e.exchangeType&&t.tag(3,p.Varint).int32(e.exchangeType);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var f$=new class extends cK{constructor(){super("injective.exchange.v1beta1.BatchExchangeModificationProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"spot_market_param_update_proposals",kind:"message",repeat:2,T:()=>fj},{no:4,name:"derivative_market_param_update_proposals",kind:"message",repeat:2,T:()=>fq},{no:5,name:"spot_market_launch_proposals",kind:"message",repeat:2,T:()=>fW},{no:6,name:"perpetual_market_launch_proposals",kind:"message",repeat:2,T:()=>fz},{no:7,name:"expiry_futures_market_launch_proposals",kind:"message",repeat:2,T:()=>fH},{no:8,name:"trading_reward_campaign_update_proposal",kind:"message",T:()=>fY},{no:9,name:"binary_options_market_launch_proposals",kind:"message",repeat:2,T:()=>fV},{no:10,name:"binary_options_param_update_proposals",kind:"message",repeat:2,T:()=>fZ},{no:11,name:"denom_decimals_update_proposal",kind:"message",T:()=>fJ},{no:12,name:"fee_discount_proposal",kind:"message",T:()=>f1},{no:13,name:"market_forced_settlement_proposals",kind:"message",repeat:2,T:()=>fK},{no:14,name:"denom_min_notional_proposal",kind:"message",T:()=>f2}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/BatchExchangeModificationProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.spotMarketParamUpdateProposals=[],t.derivativeMarketParamUpdateProposals=[],t.spotMarketLaunchProposals=[],t.perpetualMarketLaunchProposals=[],t.expiryFuturesMarketLaunchProposals=[],t.binaryOptionsMarketLaunchProposals=[],t.binaryOptionsParamUpdateProposals=[],t.marketForcedSettlementProposals=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.spotMarketParamUpdateProposals.push(fj.internalBinaryRead(e,e.uint32(),r));break;case 4:n.derivativeMarketParamUpdateProposals.push(fq.internalBinaryRead(e,e.uint32(),r));break;case 5:n.spotMarketLaunchProposals.push(fW.internalBinaryRead(e,e.uint32(),r));break;case 6:n.perpetualMarketLaunchProposals.push(fz.internalBinaryRead(e,e.uint32(),r));break;case 7:n.expiryFuturesMarketLaunchProposals.push(fH.internalBinaryRead(e,e.uint32(),r));break;case 8:n.tradingRewardCampaignUpdateProposal=fY.internalBinaryRead(e,e.uint32(),r,n.tradingRewardCampaignUpdateProposal);break;case 9:n.binaryOptionsMarketLaunchProposals.push(fV.internalBinaryRead(e,e.uint32(),r));break;case 10:n.binaryOptionsParamUpdateProposals.push(fZ.internalBinaryRead(e,e.uint32(),r));break;case 11:n.denomDecimalsUpdateProposal=fJ.internalBinaryRead(e,e.uint32(),r,n.denomDecimalsUpdateProposal);break;case 12:n.feeDiscountProposal=f1.internalBinaryRead(e,e.uint32(),r,n.feeDiscountProposal);break;case 13:n.marketForcedSettlementProposals.push(fK.internalBinaryRead(e,e.uint32(),r));break;case 14:n.denomMinNotionalProposal=f2.internalBinaryRead(e,e.uint32(),r,n.denomMinNotionalProposal);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description);for(let a=0;a<e.spotMarketParamUpdateProposals.length;a++)fj.internalBinaryWrite(e.spotMarketParamUpdateProposals[a],t.tag(3,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.derivativeMarketParamUpdateProposals.length;a++)fq.internalBinaryWrite(e.derivativeMarketParamUpdateProposals[a],t.tag(4,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.spotMarketLaunchProposals.length;a++)fW.internalBinaryWrite(e.spotMarketLaunchProposals[a],t.tag(5,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.perpetualMarketLaunchProposals.length;a++)fz.internalBinaryWrite(e.perpetualMarketLaunchProposals[a],t.tag(6,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.expiryFuturesMarketLaunchProposals.length;a++)fH.internalBinaryWrite(e.expiryFuturesMarketLaunchProposals[a],t.tag(7,p.LengthDelimited).fork(),r).join();e.tradingRewardCampaignUpdateProposal&&fY.internalBinaryWrite(e.tradingRewardCampaignUpdateProposal,t.tag(8,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.binaryOptionsMarketLaunchProposals.length;a++)fV.internalBinaryWrite(e.binaryOptionsMarketLaunchProposals[a],t.tag(9,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.binaryOptionsParamUpdateProposals.length;a++)fZ.internalBinaryWrite(e.binaryOptionsParamUpdateProposals[a],t.tag(10,p.LengthDelimited).fork(),r).join();e.denomDecimalsUpdateProposal&&fJ.internalBinaryWrite(e.denomDecimalsUpdateProposal,t.tag(11,p.LengthDelimited).fork(),r).join(),e.feeDiscountProposal&&f1.internalBinaryWrite(e.feeDiscountProposal,t.tag(12,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.marketForcedSettlementProposals.length;a++)fK.internalBinaryWrite(e.marketForcedSettlementProposals[a],t.tag(13,p.LengthDelimited).fork(),r).join();e.denomMinNotionalProposal&&f2.internalBinaryWrite(e.denomMinNotionalProposal,t.tag(14,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fW=new class extends cK{constructor(){super("injective.exchange.v1beta1.SpotMarketLaunchProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"ticker",kind:"scalar",T:9},{no:4,name:"base_denom",kind:"scalar",T:9},{no:5,name:"quote_denom",kind:"scalar",T:9},{no:6,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:7,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:8,name:"maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:9,name:"taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:10,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:11,name:"admin_info",kind:"message",T:()=>fG},{no:14,name:"base_decimals",kind:"scalar",T:13},{no:15,name:"quote_decimals",kind:"scalar",T:13}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/SpotMarketLaunchProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.ticker="",t.baseDenom="",t.quoteDenom="",t.minPriceTickSize="",t.minQuantityTickSize="",t.makerFeeRate="",t.takerFeeRate="",t.minNotional="",t.baseDecimals=0,t.quoteDecimals=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.ticker=e.string();break;case 4:n.baseDenom=e.string();break;case 5:n.quoteDenom=e.string();break;case 6:n.minPriceTickSize=e.string();break;case 7:n.minQuantityTickSize=e.string();break;case 8:n.makerFeeRate=e.string();break;case 9:n.takerFeeRate=e.string();break;case 10:n.minNotional=e.string();break;case 11:n.adminInfo=fG.internalBinaryRead(e,e.uint32(),r,n.adminInfo);break;case 14:n.baseDecimals=e.uint32();break;case 15:n.quoteDecimals=e.uint32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),""!==e.ticker&&t.tag(3,p.LengthDelimited).string(e.ticker),""!==e.baseDenom&&t.tag(4,p.LengthDelimited).string(e.baseDenom),""!==e.quoteDenom&&t.tag(5,p.LengthDelimited).string(e.quoteDenom),""!==e.minPriceTickSize&&t.tag(6,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(7,p.LengthDelimited).string(e.minQuantityTickSize),""!==e.makerFeeRate&&t.tag(8,p.LengthDelimited).string(e.makerFeeRate),""!==e.takerFeeRate&&t.tag(9,p.LengthDelimited).string(e.takerFeeRate),""!==e.minNotional&&t.tag(10,p.LengthDelimited).string(e.minNotional),e.adminInfo&&fG.internalBinaryWrite(e.adminInfo,t.tag(11,p.LengthDelimited).fork(),r).join(),0!==e.baseDecimals&&t.tag(14,p.Varint).uint32(e.baseDecimals),0!==e.quoteDecimals&&t.tag(15,p.Varint).uint32(e.quoteDecimals);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fz=new class extends cK{constructor(){super("injective.exchange.v1beta1.PerpetualMarketLaunchProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"ticker",kind:"scalar",T:9},{no:4,name:"quote_denom",kind:"scalar",T:9},{no:5,name:"oracle_base",kind:"scalar",T:9},{no:6,name:"oracle_quote",kind:"scalar",T:9},{no:7,name:"oracle_scale_factor",kind:"scalar",T:13},{no:8,name:"oracle_type",kind:"enum",T:()=>["injective.oracle.v1beta1.OracleType",fr]},{no:9,name:"initial_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:10,name:"maintenance_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:11,name:"maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:12,name:"taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:13,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:14,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:15,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:16,name:"admin_info",kind:"message",T:()=>fG}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/PerpetualMarketLaunchProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.ticker="",t.quoteDenom="",t.oracleBase="",t.oracleQuote="",t.oracleScaleFactor=0,t.oracleType=0,t.initialMarginRatio="",t.maintenanceMarginRatio="",t.makerFeeRate="",t.takerFeeRate="",t.minPriceTickSize="",t.minQuantityTickSize="",t.minNotional="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.ticker=e.string();break;case 4:n.quoteDenom=e.string();break;case 5:n.oracleBase=e.string();break;case 6:n.oracleQuote=e.string();break;case 7:n.oracleScaleFactor=e.uint32();break;case 8:n.oracleType=e.int32();break;case 9:n.initialMarginRatio=e.string();break;case 10:n.maintenanceMarginRatio=e.string();break;case 11:n.makerFeeRate=e.string();break;case 12:n.takerFeeRate=e.string();break;case 13:n.minPriceTickSize=e.string();break;case 14:n.minQuantityTickSize=e.string();break;case 15:n.minNotional=e.string();break;case 16:n.adminInfo=fG.internalBinaryRead(e,e.uint32(),r,n.adminInfo);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),""!==e.ticker&&t.tag(3,p.LengthDelimited).string(e.ticker),""!==e.quoteDenom&&t.tag(4,p.LengthDelimited).string(e.quoteDenom),""!==e.oracleBase&&t.tag(5,p.LengthDelimited).string(e.oracleBase),""!==e.oracleQuote&&t.tag(6,p.LengthDelimited).string(e.oracleQuote),0!==e.oracleScaleFactor&&t.tag(7,p.Varint).uint32(e.oracleScaleFactor),0!==e.oracleType&&t.tag(8,p.Varint).int32(e.oracleType),""!==e.initialMarginRatio&&t.tag(9,p.LengthDelimited).string(e.initialMarginRatio),""!==e.maintenanceMarginRatio&&t.tag(10,p.LengthDelimited).string(e.maintenanceMarginRatio),""!==e.makerFeeRate&&t.tag(11,p.LengthDelimited).string(e.makerFeeRate),""!==e.takerFeeRate&&t.tag(12,p.LengthDelimited).string(e.takerFeeRate),""!==e.minPriceTickSize&&t.tag(13,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(14,p.LengthDelimited).string(e.minQuantityTickSize),""!==e.minNotional&&t.tag(15,p.LengthDelimited).string(e.minNotional),e.adminInfo&&fG.internalBinaryWrite(e.adminInfo,t.tag(16,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fV=new class extends cK{constructor(){super("injective.exchange.v1beta1.BinaryOptionsMarketLaunchProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"ticker",kind:"scalar",T:9},{no:4,name:"oracle_symbol",kind:"scalar",T:9},{no:5,name:"oracle_provider",kind:"scalar",T:9},{no:6,name:"oracle_type",kind:"enum",T:()=>["injective.oracle.v1beta1.OracleType",fr]},{no:7,name:"oracle_scale_factor",kind:"scalar",T:13},{no:8,name:"expiration_timestamp",kind:"scalar",T:3,L:0},{no:9,name:"settlement_timestamp",kind:"scalar",T:3,L:0},{no:10,name:"admin",kind:"scalar",T:9},{no:11,name:"quote_denom",kind:"scalar",T:9},{no:12,name:"maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:13,name:"taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:14,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:15,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:16,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:17,name:"admin_permissions",kind:"scalar",T:13}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/BinaryOptionsMarketLaunchProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.ticker="",t.oracleSymbol="",t.oracleProvider="",t.oracleType=0,t.oracleScaleFactor=0,t.expirationTimestamp=0n,t.settlementTimestamp=0n,t.admin="",t.quoteDenom="",t.makerFeeRate="",t.takerFeeRate="",t.minPriceTickSize="",t.minQuantityTickSize="",t.minNotional="",t.adminPermissions=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.ticker=e.string();break;case 4:n.oracleSymbol=e.string();break;case 5:n.oracleProvider=e.string();break;case 6:n.oracleType=e.int32();break;case 7:n.oracleScaleFactor=e.uint32();break;case 8:n.expirationTimestamp=e.int64().toBigInt();break;case 9:n.settlementTimestamp=e.int64().toBigInt();break;case 10:n.admin=e.string();break;case 11:n.quoteDenom=e.string();break;case 12:n.makerFeeRate=e.string();break;case 13:n.takerFeeRate=e.string();break;case 14:n.minPriceTickSize=e.string();break;case 15:n.minQuantityTickSize=e.string();break;case 16:n.minNotional=e.string();break;case 17:n.adminPermissions=e.uint32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),""!==e.ticker&&t.tag(3,p.LengthDelimited).string(e.ticker),""!==e.oracleSymbol&&t.tag(4,p.LengthDelimited).string(e.oracleSymbol),""!==e.oracleProvider&&t.tag(5,p.LengthDelimited).string(e.oracleProvider),0!==e.oracleType&&t.tag(6,p.Varint).int32(e.oracleType),0!==e.oracleScaleFactor&&t.tag(7,p.Varint).uint32(e.oracleScaleFactor),0n!==e.expirationTimestamp&&t.tag(8,p.Varint).int64(e.expirationTimestamp),0n!==e.settlementTimestamp&&t.tag(9,p.Varint).int64(e.settlementTimestamp),""!==e.admin&&t.tag(10,p.LengthDelimited).string(e.admin),""!==e.quoteDenom&&t.tag(11,p.LengthDelimited).string(e.quoteDenom),""!==e.makerFeeRate&&t.tag(12,p.LengthDelimited).string(e.makerFeeRate),""!==e.takerFeeRate&&t.tag(13,p.LengthDelimited).string(e.takerFeeRate),""!==e.minPriceTickSize&&t.tag(14,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(15,p.LengthDelimited).string(e.minQuantityTickSize),""!==e.minNotional&&t.tag(16,p.LengthDelimited).string(e.minNotional),0!==e.adminPermissions&&t.tag(17,p.Varint).uint32(e.adminPermissions);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fH=new class extends cK{constructor(){super("injective.exchange.v1beta1.ExpiryFuturesMarketLaunchProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"ticker",kind:"scalar",T:9},{no:4,name:"quote_denom",kind:"scalar",T:9},{no:5,name:"oracle_base",kind:"scalar",T:9},{no:6,name:"oracle_quote",kind:"scalar",T:9},{no:7,name:"oracle_scale_factor",kind:"scalar",T:13},{no:8,name:"oracle_type",kind:"enum",T:()=>["injective.oracle.v1beta1.OracleType",fr]},{no:9,name:"expiry",kind:"scalar",T:3,L:0},{no:10,name:"initial_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:11,name:"maintenance_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:12,name:"maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:13,name:"taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:14,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:15,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:16,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:17,name:"admin_info",kind:"message",T:()=>fG}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/ExpiryFuturesMarketLaunchProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.ticker="",t.quoteDenom="",t.oracleBase="",t.oracleQuote="",t.oracleScaleFactor=0,t.oracleType=0,t.expiry=0n,t.initialMarginRatio="",t.maintenanceMarginRatio="",t.makerFeeRate="",t.takerFeeRate="",t.minPriceTickSize="",t.minQuantityTickSize="",t.minNotional="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.ticker=e.string();break;case 4:n.quoteDenom=e.string();break;case 5:n.oracleBase=e.string();break;case 6:n.oracleQuote=e.string();break;case 7:n.oracleScaleFactor=e.uint32();break;case 8:n.oracleType=e.int32();break;case 9:n.expiry=e.int64().toBigInt();break;case 10:n.initialMarginRatio=e.string();break;case 11:n.maintenanceMarginRatio=e.string();break;case 12:n.makerFeeRate=e.string();break;case 13:n.takerFeeRate=e.string();break;case 14:n.minPriceTickSize=e.string();break;case 15:n.minQuantityTickSize=e.string();break;case 16:n.minNotional=e.string();break;case 17:n.adminInfo=fG.internalBinaryRead(e,e.uint32(),r,n.adminInfo);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),""!==e.ticker&&t.tag(3,p.LengthDelimited).string(e.ticker),""!==e.quoteDenom&&t.tag(4,p.LengthDelimited).string(e.quoteDenom),""!==e.oracleBase&&t.tag(5,p.LengthDelimited).string(e.oracleBase),""!==e.oracleQuote&&t.tag(6,p.LengthDelimited).string(e.oracleQuote),0!==e.oracleScaleFactor&&t.tag(7,p.Varint).uint32(e.oracleScaleFactor),0!==e.oracleType&&t.tag(8,p.Varint).int32(e.oracleType),0n!==e.expiry&&t.tag(9,p.Varint).int64(e.expiry),""!==e.initialMarginRatio&&t.tag(10,p.LengthDelimited).string(e.initialMarginRatio),""!==e.maintenanceMarginRatio&&t.tag(11,p.LengthDelimited).string(e.maintenanceMarginRatio),""!==e.makerFeeRate&&t.tag(12,p.LengthDelimited).string(e.makerFeeRate),""!==e.takerFeeRate&&t.tag(13,p.LengthDelimited).string(e.takerFeeRate),""!==e.minPriceTickSize&&t.tag(14,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(15,p.LengthDelimited).string(e.minQuantityTickSize),""!==e.minNotional&&t.tag(16,p.LengthDelimited).string(e.minNotional),e.adminInfo&&fG.internalBinaryWrite(e.adminInfo,t.tag(17,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fq=new class extends cK{constructor(){super("injective.exchange.v1beta1.DerivativeMarketParamUpdateProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"market_id",kind:"scalar",T:9},{no:4,name:"initial_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"maintenance_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:6,name:"maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:7,name:"taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:8,name:"relayer_fee_share_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:9,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:10,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:11,name:"HourlyInterestRate",kind:"scalar",jsonName:"HourlyInterestRate",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:12,name:"HourlyFundingRateCap",kind:"scalar",jsonName:"HourlyFundingRateCap",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:13,name:"status",kind:"enum",T:()=>["injective.exchange.v1beta1.MarketStatus",fd]},{no:14,name:"oracle_params",kind:"message",T:()=>fX},{no:15,name:"ticker",kind:"scalar",T:9,options:{"gogoproto.nullable":!0}},{no:16,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:17,name:"admin_info",kind:"message",T:()=>fG}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/DerivativeMarketParamUpdateProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.marketId="",t.initialMarginRatio="",t.maintenanceMarginRatio="",t.makerFeeRate="",t.takerFeeRate="",t.relayerFeeShareRate="",t.minPriceTickSize="",t.minQuantityTickSize="",t.hourlyInterestRate="",t.hourlyFundingRateCap="",t.status=0,t.ticker="",t.minNotional="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.marketId=e.string();break;case 4:n.initialMarginRatio=e.string();break;case 5:n.maintenanceMarginRatio=e.string();break;case 6:n.makerFeeRate=e.string();break;case 7:n.takerFeeRate=e.string();break;case 8:n.relayerFeeShareRate=e.string();break;case 9:n.minPriceTickSize=e.string();break;case 10:n.minQuantityTickSize=e.string();break;case 11:n.hourlyInterestRate=e.string();break;case 12:n.hourlyFundingRateCap=e.string();break;case 13:n.status=e.int32();break;case 14:n.oracleParams=fX.internalBinaryRead(e,e.uint32(),r,n.oracleParams);break;case 15:n.ticker=e.string();break;case 16:n.minNotional=e.string();break;case 17:n.adminInfo=fG.internalBinaryRead(e,e.uint32(),r,n.adminInfo);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),""!==e.marketId&&t.tag(3,p.LengthDelimited).string(e.marketId),""!==e.initialMarginRatio&&t.tag(4,p.LengthDelimited).string(e.initialMarginRatio),""!==e.maintenanceMarginRatio&&t.tag(5,p.LengthDelimited).string(e.maintenanceMarginRatio),""!==e.makerFeeRate&&t.tag(6,p.LengthDelimited).string(e.makerFeeRate),""!==e.takerFeeRate&&t.tag(7,p.LengthDelimited).string(e.takerFeeRate),""!==e.relayerFeeShareRate&&t.tag(8,p.LengthDelimited).string(e.relayerFeeShareRate),""!==e.minPriceTickSize&&t.tag(9,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(10,p.LengthDelimited).string(e.minQuantityTickSize),""!==e.hourlyInterestRate&&t.tag(11,p.LengthDelimited).string(e.hourlyInterestRate),""!==e.hourlyFundingRateCap&&t.tag(12,p.LengthDelimited).string(e.hourlyFundingRateCap),0!==e.status&&t.tag(13,p.Varint).int32(e.status),e.oracleParams&&fX.internalBinaryWrite(e.oracleParams,t.tag(14,p.LengthDelimited).fork(),r).join(),""!==e.ticker&&t.tag(15,p.LengthDelimited).string(e.ticker),""!==e.minNotional&&t.tag(16,p.LengthDelimited).string(e.minNotional),e.adminInfo&&fG.internalBinaryWrite(e.adminInfo,t.tag(17,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fG=new class extends cK{constructor(){super("injective.exchange.v1beta1.AdminInfo",[{no:1,name:"admin",kind:"scalar",T:9},{no:2,name:"admin_permissions",kind:"scalar",T:13}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.admin="",t.adminPermissions=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.admin=e.string();break;case 2:n.adminPermissions=e.uint32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.admin&&t.tag(1,p.LengthDelimited).string(e.admin),0!==e.adminPermissions&&t.tag(2,p.Varint).uint32(e.adminPermissions);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fK=new class extends cK{constructor(){super("injective.exchange.v1beta1.MarketForcedSettlementProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"market_id",kind:"scalar",T:9},{no:4,name:"settlement_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/MarketForcedSettlementProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.marketId="",t.settlementPrice="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.marketId=e.string();break;case 4:n.settlementPrice=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),""!==e.marketId&&t.tag(3,p.LengthDelimited).string(e.marketId),""!==e.settlementPrice&&t.tag(4,p.LengthDelimited).string(e.settlementPrice);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fJ=new class extends cK{constructor(){super("injective.exchange.v1beta1.UpdateDenomDecimalsProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"denom_decimals",kind:"message",repeat:2,T:()=>fD}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/UpdateDenomDecimalsProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.denomDecimals=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.denomDecimals.push(fD.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description);for(let a=0;a<e.denomDecimals.length;a++)fD.internalBinaryWrite(e.denomDecimals[a],t.tag(3,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fZ=new class extends cK{constructor(){super("injective.exchange.v1beta1.BinaryOptionsMarketParamUpdateProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"market_id",kind:"scalar",T:9},{no:4,name:"maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:6,name:"relayer_fee_share_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:7,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:8,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:9,name:"expiration_timestamp",kind:"scalar",T:3,L:0},{no:10,name:"settlement_timestamp",kind:"scalar",T:3,L:0},{no:11,name:"settlement_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:12,name:"admin",kind:"scalar",T:9},{no:13,name:"status",kind:"enum",T:()=>["injective.exchange.v1beta1.MarketStatus",fd]},{no:14,name:"oracle_params",kind:"message",T:()=>fQ},{no:15,name:"ticker",kind:"scalar",T:9,options:{"gogoproto.nullable":!0}},{no:16,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/BinaryOptionsMarketParamUpdateProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.marketId="",t.makerFeeRate="",t.takerFeeRate="",t.relayerFeeShareRate="",t.minPriceTickSize="",t.minQuantityTickSize="",t.expirationTimestamp=0n,t.settlementTimestamp=0n,t.settlementPrice
2051="",t.admin="",t.status=0,t.ticker="",t.minNotional="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.marketId=e.string();break;case 4:n.makerFeeRate=e.string();break;case 5:n.takerFeeRate=e.string();break;case 6:n.relayerFeeShareRate=e.string();break;case 7:n.minPriceTickSize=e.string();break;case 8:n.minQuantityTickSize=e.string();break;case 9:n.expirationTimestamp=e.int64().toBigInt();break;case 10:n.settlementTimestamp=e.int64().toBigInt();break;case 11:n.settlementPrice=e.string();break;case 12:n.admin=e.string();break;case 13:n.status=e.int32();break;case 14:n.oracleParams=fQ.internalBinaryRead(e,e.uint32(),r,n.oracleParams);break;case 15:n.ticker=e.string();break;case 16:n.minNotional=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),""!==e.marketId&&t.tag(3,p.LengthDelimited).string(e.marketId),""!==e.makerFeeRate&&t.tag(4,p.LengthDelimited).string(e.makerFeeRate),""!==e.takerFeeRate&&t.tag(5,p.LengthDelimited).string(e.takerFeeRate),""!==e.relayerFeeShareRate&&t.tag(6,p.LengthDelimited).string(e.relayerFeeShareRate),""!==e.minPriceTickSize&&t.tag(7,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(8,p.LengthDelimited).string(e.minQuantityTickSize),0n!==e.expirationTimestamp&&t.tag(9,p.Varint).int64(e.expirationTimestamp),0n!==e.settlementTimestamp&&t.tag(10,p.Varint).int64(e.settlementTimestamp),""!==e.settlementPrice&&t.tag(11,p.LengthDelimited).string(e.settlementPrice),""!==e.admin&&t.tag(12,p.LengthDelimited).string(e.admin),0!==e.status&&t.tag(13,p.Varint).int32(e.status),e.oracleParams&&fQ.internalBinaryWrite(e.oracleParams,t.tag(14,p.LengthDelimited).fork(),r).join(),""!==e.ticker&&t.tag(15,p.LengthDelimited).string(e.ticker),""!==e.minNotional&&t.tag(16,p.LengthDelimited).string(e.minNotional);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fQ=new class extends cK{constructor(){super("injective.exchange.v1beta1.ProviderOracleParams",[{no:1,name:"symbol",kind:"scalar",T:9},{no:2,name:"provider",kind:"scalar",T:9},{no:3,name:"oracle_scale_factor",kind:"scalar",T:13},{no:4,name:"oracle_type",kind:"enum",T:()=>["injective.oracle.v1beta1.OracleType",fr]}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.symbol="",t.provider="",t.oracleScaleFactor=0,t.oracleType=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.symbol=e.string();break;case 2:n.provider=e.string();break;case 3:n.oracleScaleFactor=e.uint32();break;case 4:n.oracleType=e.int32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.symbol&&t.tag(1,p.LengthDelimited).string(e.symbol),""!==e.provider&&t.tag(2,p.LengthDelimited).string(e.provider),0!==e.oracleScaleFactor&&t.tag(3,p.Varint).uint32(e.oracleScaleFactor),0!==e.oracleType&&t.tag(4,p.Varint).int32(e.oracleType);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},fX=new class extends cK{constructor(){super("injective.exchange.v1beta1.OracleParams",[{no:1,name:"oracle_base",kind:"scalar",T:9},{no:2,name:"oracle_quote",kind:"scalar",T:9},{no:3,name:"oracle_scale_factor",kind:"scalar",T:13},{no:4,name:"oracle_type",kind:"enum",T:()=>["injective.oracle.v1beta1.OracleType",fr]}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.oracleBase="",t.oracleQuote="",t.oracleScaleFactor=0,t.oracleType=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.oracleBase=e.string();break;case 2:n.oracleQuote=e.string();break;case 3:n.oracleScaleFactor=e.uint32();break;case 4:n.oracleType=e.int32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.oracleBase&&t.tag(1,p.LengthDelimited).string(e.oracleBase),""!==e.oracleQuote&&t.tag(2,p.LengthDelimited).string(e.oracleQuote),0!==e.oracleScaleFactor&&t.tag(3,p.Varint).uint32(e.oracleScaleFactor),0!==e.oracleType&&t.tag(4,p.Varint).int32(e.oracleType);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.TradingRewardCampaignLaunchProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"campaign_info",kind:"message",T:()=>fI},{no:4,name:"campaign_reward_pools",kind:"message",repeat:2,T:()=>fU}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/TradingRewardCampaignLaunchProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.campaignRewardPools=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.campaignInfo=fI.internalBinaryRead(e,e.uint32(),r,n.campaignInfo);break;case 4:n.campaignRewardPools.push(fU.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),e.campaignInfo&&fI.internalBinaryWrite(e.campaignInfo,t.tag(3,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.campaignRewardPools.length;a++)fU.internalBinaryWrite(e.campaignRewardPools[a],t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var fY=new class extends cK{constructor(){super("injective.exchange.v1beta1.TradingRewardCampaignUpdateProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"campaign_info",kind:"message",T:()=>fI},{no:4,name:"campaign_reward_pools_additions",kind:"message",repeat:2,T:()=>fU},{no:5,name:"campaign_reward_pools_updates",kind:"message",repeat:2,T:()=>fU}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/TradingRewardCampaignUpdateProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.campaignRewardPoolsAdditions=[],t.campaignRewardPoolsUpdates=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.campaignInfo=fI.internalBinaryRead(e,e.uint32(),r,n.campaignInfo);break;case 4:n.campaignRewardPoolsAdditions.push(fU.internalBinaryRead(e,e.uint32(),r));break;case 5:n.campaignRewardPoolsUpdates.push(fU.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),e.campaignInfo&&fI.internalBinaryWrite(e.campaignInfo,t.tag(3,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.campaignRewardPoolsAdditions.length;a++)fU.internalBinaryWrite(e.campaignRewardPoolsAdditions[a],t.tag(4,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.campaignRewardPoolsUpdates.length;a++)fU.internalBinaryWrite(e.campaignRewardPoolsUpdates[a],t.tag(5,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},f0=new class extends cK{constructor(){super("injective.exchange.v1beta1.RewardPointUpdate",[{no:1,name:"account_address",kind:"scalar",T:9},{no:12,name:"new_points",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.accountAddress="",t.newPoints="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.accountAddress=e.string();break;case 12:n.newPoints=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.accountAddress&&t.tag(1,p.LengthDelimited).string(e.accountAddress),""!==e.newPoints&&t.tag(12,p.LengthDelimited).string(e.newPoints);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.TradingRewardPendingPointsUpdateProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"pending_pool_timestamp",kind:"scalar",T:3,L:0},{no:4,name:"reward_point_updates",kind:"message",repeat:2,T:()=>f0}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/TradingRewardPendingPointsUpdateProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.pendingPoolTimestamp=0n,t.rewardPointUpdates=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.pendingPoolTimestamp=e.int64().toBigInt();break;case 4:n.rewardPointUpdates.push(f0.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),0n!==e.pendingPoolTimestamp&&t.tag(3,p.Varint).int64(e.pendingPoolTimestamp);for(let a=0;a<e.rewardPointUpdates.length;a++)f0.internalBinaryWrite(e.rewardPointUpdates[a],t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var f1=new class extends cK{constructor(){super("injective.exchange.v1beta1.FeeDiscountProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"schedule",kind:"message",T:()=>fR}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/FeeDiscountProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.schedule=fR.internalBinaryRead(e,e.uint32(),r,n.schedule);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description),e.schedule&&fR.internalBinaryWrite(e.schedule,t.tag(3,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.BatchCommunityPoolSpendProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"proposals",kind:"message",repeat:2,T:()=>f_}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/BatchCommunityPoolSpendProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.proposals=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.proposals.push(f_.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description);for(let a=0;a<e.proposals.length;a++)f_.internalBinaryWrite(e.proposals[a],t.tag(3,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.AtomicMarketOrderFeeMultiplierScheduleProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"market_fee_multipliers",kind:"message",repeat:2,T:()=>ff}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/AtomicMarketOrderFeeMultiplierScheduleProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.marketFeeMultipliers=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.marketFeeMultipliers.push(ff.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description);for(let a=0;a<e.marketFeeMultipliers.length;a++)ff.internalBinaryWrite(e.marketFeeMultipliers[a],t.tag(3,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var f2=new class extends cK{constructor(){super("injective.exchange.v1beta1.DenomMinNotionalProposal",[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"denom_min_notionals",kind:"message",repeat:2,T:()=>fO}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos_proto.implements_interface":["cosmos.gov.v1beta1.Content"],"amino.name":"exchange/DenomMinNotionalProposal"})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.title="",t.description="",t.denomMinNotionals=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.denomMinNotionals.push(fO.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.title&&t.tag(1,p.LengthDelimited).string(e.title),""!==e.description&&t.tag(2,p.LengthDelimited).string(e.description);for(let a=0;a<e.denomMinNotionals.length;a++)fO.internalBinaryWrite(e.denomMinNotionals[a],t.tag(3,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},f3=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgUpdateSpotMarket",[{no:1,name:"admin",kind:"scalar",T:9},{no:2,name:"market_id",kind:"scalar",T:9},{no:3,name:"new_ticker",kind:"scalar",T:9},{no:4,name:"new_min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"new_min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:6,name:"new_min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}],{"gogoproto.equal":!1,"amino.name":"exchange/MsgUpdateSpotMarket","cosmos.msg.v1.signer":["admin"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.admin="",t.marketId="",t.newTicker="",t.newMinPriceTickSize="",t.newMinQuantityTickSize="",t.newMinNotional="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.admin=e.string();break;case 2:n.marketId=e.string();break;case 3:n.newTicker=e.string();break;case 4:n.newMinPriceTickSize=e.string();break;case 5:n.newMinQuantityTickSize=e.string();break;case 6:n.newMinNotional=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.admin&&t.tag(1,p.LengthDelimited).string(e.admin),""!==e.marketId&&t.tag(2,p.LengthDelimited).string(e.marketId),""!==e.newTicker&&t.tag(3,p.LengthDelimited).string(e.newTicker),""!==e.newMinPriceTickSize&&t.tag(4,p.LengthDelimited).string(e.newMinPriceTickSize),""!==e.newMinQuantityTickSize&&t.tag(5,p.LengthDelimited).string(e.newMinQuantityTickSize),""!==e.newMinNotional&&t.tag(6,p.LengthDelimited).string(e.newMinNotional);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},f6=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgUpdateSpotMarketResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},f8=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgUpdateDerivativeMarket",[{no:1,name:"admin",kind:"scalar",T:9},{no:2,name:"market_id",kind:"scalar",T:9},{no:3,name:"new_ticker",kind:"scalar",T:9},{no:4,name:"new_min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:5,name:"new_min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:6,name:"new_min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:7,name:"new_initial_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:8,name:"new_maintenance_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/MsgUpdateDerivativeMarket","cosmos.msg.v1.signer":["admin"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.admin="",t.marketId="",t.newTicker="",t.newMinPriceTickSize="",t.newMinQuantityTickSize="",t.newMinNotional="",t.newInitialMarginRatio="",t.newMaintenanceMarginRatio="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.admin=e.string();break;case 2:n.marketId=e.string();break;case 3:n.newTicker=e.string();break;case 4:n.newMinPriceTickSize=e.string();break;case 5:n.newMinQuantityTickSize=e.string();break;case 6:n.newMinNotional=e.string();break;case 7:n.newInitialMarginRatio=e.string();break;case 8:n.newMaintenanceMarginRatio=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.admin&&t.tag(1,p.LengthDelimited).string(e.admin),""!==e.marketId&&t.tag(2,p.LengthDelimited).string(e.marketId),""!==e.newTicker&&t.tag(3,p.LengthDelimited).string(e.newTicker),""!==e.newMinPriceTickSize&&t.tag(4,p.LengthDelimited).string(e.newMinPriceTickSize),""!==e.newMinQuantityTickSize&&t.tag(5,p.LengthDelimited).string(e.newMinQuantityTickSize),""!==e.newMinNotional&&t.tag(6,p.LengthDelimited).string(e.newMinNotional),""!==e.newInitialMarginRatio&&t.tag(7,p.LengthDelimited).string(e.newInitialMarginRatio),""!==e.newMaintenanceMarginRatio&&t.tag(8,p.LengthDelimited).string(e.newMaintenanceMarginRatio);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},f7=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgUpdateDerivativeMarketRe
2051sponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgUpdateParams",[{no:1,name:"authority",kind:"scalar",T:9,options:{"cosmos_proto.scalar":"cosmos.AddressString"}},{no:2,name:"params",kind:"message",T:()=>fg,options:{"gogoproto.nullable":!1}}],{"amino.name":"exchange/MsgUpdateParams","cosmos.msg.v1.signer":["authority"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.authority="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.authority=e.string();break;case 2:n.params=fg.internalBinaryRead(e,e.uint32(),r,n.params);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.authority&&t.tag(1,p.LengthDelimited).string(e.authority),e.params&&fg.internalBinaryWrite(e.params,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgUpdateParamsResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var f4=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgDeposit",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"subaccount_id",kind:"scalar",T:9},{no:3,name:"amount",kind:"message",T:()=>dn,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/MsgDeposit","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.subaccountId="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.subaccountId=e.string();break;case 3:n.amount=dn.internalBinaryRead(e,e.uint32(),r,n.amount);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.subaccountId&&t.tag(2,p.LengthDelimited).string(e.subaccountId),e.amount&&dn.internalBinaryWrite(e.amount,t.tag(3,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},f5=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgDepositResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},f9=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgWithdraw",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"subaccount_id",kind:"scalar",T:9},{no:3,name:"amount",kind:"message",T:()=>dn,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/MsgWithdraw","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.subaccountId="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.subaccountId=e.string();break;case 3:n.amount=dn.internalBinaryRead(e,e.uint32(),r,n.amount);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.subaccountId&&t.tag(2,p.LengthDelimited).string(e.subaccountId),e.amount&&dn.internalBinaryWrite(e.amount,t.tag(3,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},be=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgWithdrawResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bt=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCreateSpotLimitOrder",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"order",kind:"message",T:()=>fk,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/MsgCreateSpotLimitOrder","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.order=fk.internalBinaryRead(e,e.uint32(),r,n.order);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),e.order&&fk.internalBinaryWrite(e.order,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},br=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCreateSpotLimitOrderResponse",[{no:1,name:"order_hash",kind:"scalar",T:9},{no:2,name:"cid",kind:"scalar",T:9}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.orderHash="",t.cid="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.orderHash=e.string();break;case 2:n.cid=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.orderHash&&t.tag(1,p.LengthDelimited).string(e.orderHash),""!==e.cid&&t.tag(2,p.LengthDelimited).string(e.cid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},ba=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchCreateSpotLimitOrders",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"orders",kind:"message",repeat:2,T:()=>fk,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/MsgBatchCreateSpotLimitOrders","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.orders=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.orders.push(fk.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender);for(let a=0;a<e.orders.length;a++)fk.internalBinaryWrite(e.orders[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bn=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchCreateSpotLimitOrdersResponse",[{no:1,name:"order_hashes",kind:"scalar",repeat:2,T:9},{no:2,name:"created_orders_cids",kind:"scalar",repeat:2,T:9},{no:3,name:"failed_orders_cids",kind:"scalar",repeat:2,T:9}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.orderHashes=[],t.createdOrdersCids=[],t.failedOrdersCids=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.orderHashes.push(e.string());break;case 2:n.createdOrdersCids.push(e.string());break;case 3:n.failedOrdersCids.push(e.string());break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let r=0;r<e.orderHashes.length;r++)t.tag(1,p.LengthDelimited).string(e.orderHashes[r]);for(let r=0;r<e.createdOrdersCids.length;r++)t.tag(2,p.LengthDelimited).string(e.createdOrdersCids[r]);for(let r=0;r<e.failedOrdersCids.length;r++)t.tag(3,p.LengthDelimited).string(e.failedOrdersCids[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bi=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgInstantSpotMarketLaunch",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"ticker",kind:"scalar",T:9},{no:3,name:"base_denom",kind:"scalar",T:9},{no:4,name:"quote_denom",kind:"scalar",T:9},{no:5,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:6,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:7,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:8,name:"base_decimals",kind:"scalar",T:13},{no:9,name:"quote_decimals",kind:"scalar",T:13}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/MsgInstantSpotMarketLaunch","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.ticker="",t.baseDenom="",t.quoteDenom="",t.minPriceTickSize="",t.minQuantityTickSize="",t.minNotional="",t.baseDecimals=0,t.quoteDecimals=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.ticker=e.string();break;case 3:n.baseDenom=e.string();break;case 4:n.quoteDenom=e.string();break;case 5:n.minPriceTickSize=e.string();break;case 6:n.minQuantityTickSize=e.string();break;case 7:n.minNotional=e.string();break;case 8:n.baseDecimals=e.uint32();break;case 9:n.quoteDecimals=e.uint32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.ticker&&t.tag(2,p.LengthDelimited).string(e.ticker),""!==e.baseDenom&&t.tag(3,p.LengthDelimited).string(e.baseDenom),""!==e.quoteDenom&&t.tag(4,p.LengthDelimited).string(e.quoteDenom),""!==e.minPriceTickSize&&t.tag(5,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(6,p.LengthDelimited).string(e.minQuantityTickSize),""!==e.minNotional&&t.tag(7,p.LengthDelimited).string(e.minNotional),0!==e.baseDecimals&&t.tag(8,p.Varint).uint32(e.baseDecimals),0!==e.quoteDecimals&&t.tag(9,p.Varint).uint32(e.quoteDecimals);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bo=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgInstantSpotMarketLaunchResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgInstantPerpetualMarketLaunch",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"ticker",kind:"scalar",T:9},{no:3,name:"quote_denom",kind:"scalar",T:9},{no:4,name:"oracle_base",kind:"scalar",T:9},{no:5,name:"oracle_quote",kind:"scalar",T:9},{no:6,name:"oracle_scale_factor",kind:"scalar",T:13},{no:7,name:"oracle_type",kind:"enum",T:()=>["injective.oracle.v1beta1.OracleType",fr]},{no:8,name:"maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:9,name:"taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:10,name:"initial_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:11,name:"maintenance_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:12,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:13,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:14,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/MsgInstantPerpetualMarketLaunch","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.ticker="",t.quoteDenom="",t.oracleBase="",t.oracleQuote="",t.oracleScaleFactor=0,t.oracleType=0,t.makerFeeRate="",t.takerFeeRate="",t.initialMarginRatio="",t.maintenanceMarginRatio="",t.minPriceTickSize="",t.minQuantityTickSize="",t.minNotional="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.ticker=e.string();break;case 3:n.quoteDenom=e.string();break;case 4:n.oracleBase=e.string();break;case 5:n.oracleQuote=e.string();break;case 6:n.oracleScaleFactor=e.uint32();break;case 7:n.oracleType=e.int32();break;case 8:n.makerFeeRate=e.string();break;case 9:n.takerFeeRate=e.string();break;case 10:n.initialMarginRatio=e.string();break;case 11:n.maintenanceMarginRatio=e.string();break;case 12:n.minPriceTickSize=e.string();break;case 13:n.minQuantityTickSize=e.string();break;case 14:n.minNotional=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.ticker&&t.tag(2,p.LengthDelimited).string(e.ticker),""!==e.quoteDenom&&t.tag(3,p.LengthDelimited).string(e.quoteDenom),""!==e.oracleBase&&t.tag(4,p.LengthDelimited).string(e.oracleBase),""!==e.oracleQuote&&t.tag(5,p.LengthDelimited).string(e.oracleQuote),0!==e.oracleScaleFactor&&t.tag(6,p.Varint).uint32(e.oracleScaleFactor),0!==e.oracleType&&t.tag(7,p.Varint).int32(e.oracleType),""!==e.makerFeeRate&&t.tag(8,p.LengthDelimited).string(e.makerFeeRate),""!==e.takerFeeRate&&t.tag(9,p.LengthDelimited).string(e.takerFeeRate),""!==e.initialMarginRatio&&t.tag(10,p.LengthDelimited).string(e.initialMarginRatio),""!==e.maintenanceMarginRatio&&t.tag(11,p.LengthDelimited).string(e.maintenanceMarginRatio),""!==e.minPriceTickSize&&t.tag(12,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(13,p.LengthDelimited).string(e.minQuantityTickSize),""!==e.minNotional&&t.tag(14,p.LengthDelimited).string(e.minNotional);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgInstantPerpetualMarketLaunchResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var bs=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunch",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"ticker",kind:"scalar",T:9},{no:3,name:"oracle_symbol",kind:"scalar",T:9},{no:4,name:"oracle_provider",kind:"scalar",T:9},{no:5,name:"oracle_type",kind:"enum",T:()=>["injective.oracle.v1beta1.OracleType",fr]},{no:6,name:"oracle_scale_factor",kind:"scalar",T:13},{no:7,name:"maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:8,name:"taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:9,name:"expiration_timestamp",kind:"scalar",T:3,L:0},{no:10,name:"settlement_timestamp",kind:"scalar",T:3,L:0},{no:11,name:"admin",kind:"scalar",T:9},{no:12,name:"quote_denom",kind:"scalar",T:9},{no:13,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:14,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:15,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/MsgInstantBinaryOptionsMarketLaunch","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.ticker="",t.oracleSymbol="",t.oracleProvider="",t.oracleType=0,t.oracleScaleFactor=0,t.makerFeeRate="",t.takerFeeRate="",t.expirationTimestamp=0n,t.settlementTimestamp=0n,t.admin="",t.quoteDenom="",t.minPriceTickSize="",t.minQuantityTickSize="",t.minNotional="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.ticker=e.string();break;case 3:n.oracleSymbol=e.string();break;case 4:n.oracleProvider=e.string();break;case 5:n.oracleType=e.int32();break;case 6:n.oracleScaleFactor=e.uint32();break;case 7:n.makerFeeRate=e.string();break;case 8:n.takerFeeRate=e.string();break;case 9:n.expirationTimestamp=e.int64().toBigInt();break;case 10:n.settlementTimestamp=e.int64().toBigInt();break;case 11:n.admin=e.string();break;case 12:n.quoteDenom=e.string();break;case 13:n.minPriceTickSize=e.string();break;case 14:n.minQuantityTickSize=e.string();break;case 15:n.minNotional=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.ticker&&t.tag(2,p.LengthDelimited).string(e.ticker),""!==e.oracleSymbol&&t.tag(3,p.LengthDelimited).string(e.oracleSymbol),""!==e.oracleProvider&&t.tag(4,p.LengthDelimited).string(e.oracleProvider),0!==e.oracleType&&t.tag(5,p.Varint).int32(e.oracleType),0!==e.oracleScaleFactor&&t.tag(6,p.Varint).uint32(e.oracleScaleFactor),""!==e.makerFeeRate&&t.tag(7,p.LengthDelimited).string(e.makerFeeRate),""!==e.takerFeeRate&&t.tag(8,p.LengthDelimited).string(e.takerFeeRate),0n!==e.expirationTimestamp&&t.tag(9,p.Varint).int64(e.expirationTimestamp),0n!==e.settlementTimestamp&&t.tag(10,p.Varint).int64(e.settlementTimestamp),""!==e.admin&&t.tag(11,p.LengthDelimited).string(e.admin),""!==e.quoteDenom&&t.tag(12,p.LengthDelimited).string(e.quoteDenom),""!==e.minPriceTickSize&&t.tag(13,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(14,p.LengthDelimited).string(e.minQuantityTickSize),""!==e.minNotional&&t.tag(15,p.LengthDelimited).string(e.minNotional);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bl=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunchResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgInstantExpiryFuturesMarketLaunch",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"ticker",kind:"scalar",T:9},{no:3,name:"quote_denom",kind:"scalar",T:9},{no:4,name:"oracle_base",kind:"scalar",T:9},{no:5,name:"oracle_quote",kind:"scalar",T:9},{no:6,name:"oracle_type",kind:"enum",T:()=>["injective.oracle.v1beta1.OracleType",fr]},{no:7,name:"oracle_scale_factor",kind:"scalar",T:13},{no:8,name:"expiry",kind:"scalar",T:3,L:0},{no:9,name:"maker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:10,name:"taker_fee_rate",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:11,name:"initial_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:12,name:"maintenance_margin_ratio",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:13,name:"min_price_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:14,name:"min_quantity_tick_size",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:15,name:"min_notional",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/MsgInstantExpiryFuturesMarketLaunch","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.ticker="",t.quoteDenom="",t.oracleBase="",t.oracleQuote="",t.oracleType=0,t.oracleScaleFactor=0,t.expiry=0n,t.makerFeeRate="",t.takerFeeRate="",t.initialMarginRatio="",t.maintenanceMarginRatio="",t.minPriceTickSize="",t.minQuantityTickSize="",t.minNotional="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.ticker=e.string();break;case 3:n.quoteDenom=e.string();break;case 4:n.oracleBase=e.string();break;case 5:n.oracleQuote=e.string();break;case 6:n.oracleType=e.int32();break;case 7:n.oracleScaleFactor=e.uint32();break;case 8:n.expiry=e.int64().toBigInt();break;case 9:n.makerFeeRate=e.string();break;case 10:n.takerFeeRate=e.string();break;case 11:n.initialMarginRatio=e.string();break;case 12:n.maintenanceMarginRatio=e.string();break;case 13:n.minPriceTickSize=e.string();break;case 14:n.minQuantityTickSize=e.string();break;case 15:n.minNotional=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.ticker&&t.tag(2,p.LengthDelimited).string(e.ticker),""!==e.quoteDenom&&t.tag(3,p.LengthDelimited).string(e.quoteDenom),""!==e.oracleBase&&t.tag(4,p.LengthDelimited).string(e.oracleBase),""!==e.oracleQuote&&t.tag(5,p.LengthDelimited).string(e.oracleQuote),0!==e.oracleType&&t.tag(6,p.Varint).int32(e.oracleType),0!==e.oracleScaleFactor&&t.tag(7,p.Varint).uint32(e.oracleScaleFactor),0n!==e.expiry&&t.tag(8,p.Varint).int64(e.expiry),""!==e.makerFeeRate&&t.tag(9,p.LengthDelimited).string(e.makerFeeRate),""!==e.takerFeeRate&&t.tag(10,p.LengthDelimited).string(e.takerFeeRate),""!==e.initialMarginRatio&&t.tag(11,p.LengthDelimited).string(e.initialMarginRatio),""!==e.maintenanceMarginRatio&&t.tag(12,p.LengthDelimited).string(e.maintenanceMarginRatio),""!==e.minPriceTickSize&&t.tag(13,p.LengthDelimited).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.tag(14,p.LengthDelimited).string(e.minQuantityTickSize),""!==e.minNotional&&t.tag(15,p.LengthDelimited).string(e.minNotional);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgInstantExpiryFuturesMarketLaunchResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var bc=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCreateSpotMarketOrder",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"order",kind:"message",T:()=>fk,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/MsgCreateSpotMarketOrder","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.order=fk.internalBinaryRead(e,e.uint32(),r,n.order);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),e.order&&fk.internalBinaryWrite(e.order,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bd=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCreateSpotMarketOrderResponse",[{no:1,name:"order_hash",kind:"scalar",T:9},{no:2,name:"results",kind:"message",T:()=>bp,options:{"gogoproto.nullable":!0}},{no:3,name:"cid",kind:"scalar",T:9}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.orderHash="",t.cid="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.orderHash=e.string();break;case 2:n.results=bp.internalBinaryRead(e,e.uint32(),r,n.results);break;case 3:n.cid=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.orderHash&&t.tag(1,p.LengthDelimited).string(e.orderHash),e.results&&bp.internalBinaryWrite(e.results,t.tag(2,p.LengthDelimited).fork(),r).join(),""!==e.cid&&t.tag(3,p.LengthDelimited).string(e.cid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bp=new class extends cK{constructor(){super("injective.exchange.v1beta1.SpotMarketOrderResults",[{no:1,name:"quantity",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:2,name:"price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"fee",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.quantity="",t.price="",t.fee="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.quantity=e.string();break;case 2:n.price=e.string();break;case 3:n.fee=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.quantity&&t.tag(1,p.LengthDelimited).string(e.quantity),""!==e.price&&t.tag(2,p.LengthDelimited).string(e.price),""!==e.fee&&t.tag(3,p.LengthDelimited).string(e.fee);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bu=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCreateDerivativeLimitOrder",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"order",kind:"message",T:()=>fx,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1,"amino.name":"exchange/MsgCreateDerivativeLimitOrder","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.order=fx.internalBinaryRead(e,e.uint32(),r,n.order);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),e.order&&fx.internalBinaryWrite(e.order,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bm=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCreateDerivativeLimitOrderResponse",[{no:1,name:"order_hash",kind:"scalar",T:9},{no:2,name:"cid",kind:"scalar",T:9}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.orderHash="",t.cid="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.orderHash=e.string();break;case 2:n.cid=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.orderHash&&t.tag(1,p.LengthDelimited).string(e.orderHash),""!==e.cid&&t.tag(2,p.LengthDelimited).string(e.cid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bh=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrder",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"order",kind:"message",T:()=>fx,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1,"amino.name":"exchange/MsgCreateBinaryOptionsLimitOrder","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.order=fx.internalBinaryRead(e,e.uint32(),r,n.order);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),e.order&&fx.internalBinaryWrite(e.order,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bg=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrderResponse",[{no:1,name:"order_hash",kind:"scalar",T:9},{no:2,name:"cid",kind:"scalar",T:9}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.orderHash="",t.cid="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.orderHash=e.string();break;case 2:n.cid=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.orderHash&&t.tag(1,p.LengthDelimited).string(e.orderHash),""!==e.cid&&t.tag(2,p.LengthDelimited).string(e.cid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bf=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrders",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"orders",kind:"message",repeat:2,T:()=>fx,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1,"amino.name":"exchange/MsgBatchCreateDerivativeLimitOrders","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.orders=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.orders.push(fx.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender);for(let a=0;a<e.orders.length;a++)fx.internalBinaryWrite(e.orders[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bb=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrdersResponse",[{no:1,name:"order_hashes",kind:"scalar",repeat:2,T:9},{no:2,name:"created_orders_cids",kind:"scalar",repeat:2,T:9},{no:3,name:"failed_orders_cids",kind:"scalar",repeat:2,T:9}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.orderHashes=[],t.createdOrdersCids=[],t.failedOrdersCids=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.orderHashes.push(e.string());break;case 2:n.createdOrdersCids.push(e.string());break;case 3:n.failedOrdersCids.push(e.string());break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let r=0;r<e.orderHashes.length;r++)t.tag(1,p.LengthDelimited).string(e.orderHashes[r]);for(let r=0;r<e.createdOrdersCids.length;r++)t.tag(2,p.LengthDelimited).string(e.createdOrdersCids[r]);for(let r=0;r<e.failedOrdersCids.length;r++)t.tag(3,p.LengthDelimited).string(e.failedOrdersCids[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},by=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCancelSpotOrder",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"market_id",kind:"scalar",T:9},{no:3,name:"subaccount_id",kind:"scalar",T:9},{no:4,name:"order_hash",kind:"scalar",T:9},{no:5,name:"cid",kind:"scalar",T:9}],{"gogoproto.goproto_getters":!1,"amino.name":"exchange/MsgCancelSpotOrder","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.marketId="",t.subaccountId="",t.orderHash="",t.cid="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.marketId=e.string();break;case 3:n.subaccountId=e.string();break;case 4:n.orderHash=e.string();break;case 5:n.cid=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.marketId&&t.tag(2,p.LengthDelimited).string(e.marketId),""!==e.subaccountId&&t.tag(3,p.LengthDelimited).string(e.subaccountId),""!==e.orderHash&&t.tag(4,p.LengthDelimited).string(e.orderHash),""!==e.cid&&t.tag(5,p.LengthDelimited).string(e.cid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bk=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCancelSpotOrderResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bx=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchCancelSpotOrders",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"data",kind:"message",repeat:2,T:()=>bL,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1,"amino.name":"exchange/MsgBatchCancelSpotOrders","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.data=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.data.push(bL.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender);for(let a=0;a<e.data.length;a++)bL.internalBinaryWrite(e.data[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bw=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchCancelSpotOrdersResponse",[{no:1,name:"success",kind:"scalar",repeat:1,T:8}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.success=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)if(a===p.LengthDelimited)for(let t=e.int32()+e.pos;e.pos<t;)n.success.push(e.bool());else n.success.push(e.bool());else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){if(e.success.length){t.tag(1,p.LengthDelimited).fork();for(let r=0;r<e.success.length;r++)t.bool(e.success[r]);t.join()}let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bv=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchCancelBinaryOptionsOrders",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"data",kind:"message",repeat:2,T:()=>bL,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1,"amino.name":"exchange/MsgBatchCancelBinaryOptionsOrders","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.data=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.data.push(bL.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender);for(let a=0;a<e.data.length;a++)bL.internalBinaryWrite(e.data[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bT=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchCancelBinaryOptionsOrdersResponse",[{no:1,name:"success",kind:"scalar",repeat:1,T:8}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.success=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)if(a===p.LengthDelimited)for(let t=e.int32()+e.pos;e.pos<t;)n.success.push(e.bool());else n.success.push(e.bool());else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){if(e.success.length){t.tag(1,p.LengthDelimited).fork();for(let r=0;r<e.success.length;r++)t.bool(e.success[r]);t.join()}let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bE=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchUpdateOrders",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"subaccount_id",kind:"scalar",T:9},{no:3,name:"spot_market_ids_to_cancel_all",kind:"scalar",repeat:2,T:9},{no:4,name:"derivative_market_ids_to_cancel_all",kind:"scalar",repeat:2,T:9},{no:5,name:"spot_orders_to_cancel",kind:"message",repeat:2,T:()=>bL,options:{"gogoproto.nullable":!0}},{no:6,name:"derivative_orders_to_cancel",kind:"message",repeat:2,T:()=>bL,options:{"gogoproto.nullable":!0}},{no:7,name:"spot_orders_to_create",kind:"message",repeat:2,T:()=>fk,options:{"gogoproto.nullable":!0}},{no:8,name:"derivative_orders_to_create",kind:"message",repeat:2,T:()=>fx,options:{"gogoproto.nullable":!0}},{no:9,name:"binary_options_orders_to_cancel",kind:"message",repeat:2,T:()=>bL,options:{"gogoproto.nullable":!0}},{no:10,name:"binary_options_market_ids_to_cancel_all",kind:"scalar",repeat:2,T:9},{no:11,name:"binary_options_orders_to_create",kind:"message",repeat:2,T:()=>fx,options:{"gogoproto.nullable":!0}}],{"gogoproto.goproto_getters":!1,"amino.name":"exchange/MsgBatchUpdateOrders","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.subaccountId="",t.spotMarketIdsToCancelAll=[],t.derivativeMarketIdsToCancelAll=[],t.spotOrdersToCancel=[],t.derivativeOrdersToCancel=[],t.spotOrdersToCreate=[],t.derivativeOrdersToCreate=[],t.binaryOptionsOrdersToCancel=[],t.binaryOptionsMarketIdsToCancelAll=[],t.binaryOptionsOrdersToCreate=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.subaccountId=e.string();break;case 3:n.spotMarketIdsToCancelAll.push(e.string());break;case 4:n.derivativeMarketIdsToCancelAll.push(e.string());break;case 5:n.spotOrdersToCancel.push(bL.internalBinaryRead(e,e.uint32(),r));break;case 6:n.derivativeOrdersToCancel.push(bL.internalBinaryRead(e,e.uint32(),r));break;case 7:n.spotOrdersToCreate.push(fk.internalBinaryRead(e,e.uint32(),r));break;case 8:n.derivativeOrdersToCreate.push(fx.internalBinaryRead(e,e.uint32(),r));break;case 9:n.binaryOptionsOrdersToCancel.push(bL.internalBinaryRead(e,e.uint32(),r));break;case 10:n.binaryOptionsMarketIdsToCancelAll.push(e.string());break;case 11:n.binaryOptionsOrdersToCreate.push(fx.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.subaccountId&&t.tag(2,p.LengthDelimited).string(e.subaccountId);for(let r=0;r<e.spotMarketIdsToCancelAll.length;r++)t.tag(3,p.LengthDelimited).string(e.spotMarketIdsToCancelAll[r]);for(let r=0;r<e.derivativeMarketIdsToCancelAll.length;r++)t.tag(4,p.LengthDelimited).string(e.derivativeMarketIdsToCancelAll[r]);for(let a=0;a<e.spotOrdersToCancel.length;a++)bL.internalBinaryWrite(e.spotOrdersToCancel[a],t.tag(5,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.derivativeOrdersToCancel.length;a++)bL.internalBinaryWrite(e.derivativeOrdersToCancel[a],t.tag(6,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.spotOrdersToCreate.length;a++)fk.internalBinaryWrite(e.spotOrdersToCreate[a],t.tag(7,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.derivativeOrdersToCreate.length;a++)fx.internalBinaryWrite(e.derivativeOrdersToCreate[a],t.tag(8,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.binaryOptionsOrdersToCancel.length;a++)bL.internalBinaryWrite(e.binaryOptionsOrdersToCancel[a],t.tag(9,p.LengthDelimited).fork(),r).join();for(let r=0;r<e.binaryOptionsMarketIdsToCancelAll.length;r++)t.tag(10,p.LengthDelimited).string(e.binaryOptionsMarketIdsToCancelAll[r]);for(let a=0;a<e.binaryOptionsOrdersToCreate.length;a++)fx.internalBinaryWrite(e.binaryOptionsOrdersToCreate[a],t.tag(11,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bB=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchUpdateOrdersResponse",[{no:1,name:"spot_cancel_success",kind:"scalar",repeat:1,T:8},{no:2,name:"derivative_cancel_success",kind:"scalar",repeat:1,T:8},{no:3,name:"spot_order_hashes",kind:"scalar",repeat:2,T:9},{no:4,name:"derivative_order_hashes",kind:"scalar",repeat:2,T:9},{no:5,name:"binary_options_cancel_success",kind:"scalar",repeat:1,T:8},{no:6,name:"binary_options_order_hashes",kind:"scalar",repeat:2,T:9},{no:7,name:"created_spot_orders_cids",kind:"scalar",repeat:2,T:9},{no:8,name:"failed_spot_orders_cids",kind:"scalar",repeat:2,T:9},{no:9,name:"created_derivative_orders_cids",kind:"scalar",repeat:2,T:9},{no:10,name:"failed_derivative_orders_cids",kind:"scalar",repeat:2,T:9},{no:11,name:"created_binary_options_orders_cids",kind:"scalar",repeat:2,T:9},{no:12,name:"failed_binary_options_orders_cids",kind:"scalar",repeat:2,T:9}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.spotCancelSuccess=[],t.derivativeCancelSuccess=[],t.spotOrderHashes=[],t.derivativeOrderHashes=[],t.binaryOptionsCancelSuccess=[],t.binaryOptionsOrderHashes=[],t.createdSpotOrdersCids=[],t.failedSpotOrdersCids=[],t.createdDerivativeOrdersCids=[],t.failedDerivativeOrdersCids=[],t.createdBinaryOptionsOrdersCids=[],t.failedBinaryOptionsOrdersCids=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:if(a===p.LengthDelimited)for(let t=e.int32()+e.pos;e.pos<t;)n.spotCancelSuccess.push(e.bool());else n.spotCancelSuccess.push(e.bool());break;case 2:if(a===p.LengthDelimited)for(let t=e.int32()+e.pos;e.pos<t;)n.derivativeCancelSuccess.push(e.bool());else n.derivativeCancelSuccess.push(e.bool());break;case 3:n.spotOrderHashes.push(e.string());break;case 4:n.derivativeOrderHashes.push(e.string());break;case 5:if(a===p.LengthDelimited)for(let t=e.int32()+e.pos;e.pos<t;)n.binaryOptionsCancelSuccess.push(e.bool());else n.binaryOptionsCancelSuccess.push(e.bool());break;case 6:n.binaryOptionsOrderHashes.push(e.string());break;case 7:n.createdSpotOrdersCids.push(e.string());break;case 8:n.failedSpotOrdersCids.push(e.string());break;case 9:n.createdDerivativeOrdersCids.push(e.string());break;case 10:n.failedDerivativeOrdersCids.push(e.string());break;case 11:n.createdBinaryOptionsOrdersCids.push(e.string());break;case 12:n.failedBinaryOptionsOrdersCids.push(e.string());break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){if(e.spotCancelSuccess.length){t.tag(1,p.LengthDelimited).fork();for(let r=0;r<e.spotCancelSuccess.length;r++)t.bool(e.spotCancelSuccess[r]);t.join()}if(e.derivativeCancelSuccess.length){t.tag(2,p.LengthDelimited).fork();for(let r=0;r<e.derivativeCancelSuccess.length;r++)t.bool(e.derivativeCancelSuccess[r]);t.join()}for(let r=0;r<e.spotOrderHashes.length;r++)t.tag(3,p.LengthDelimited).string(e.spotOrderHashes[r]);for(let r=0;r<e.derivativeOrderHashes.length;r++)t.tag(4,p.LengthDelimited).string(e.derivativeOrderHashes[r]);if(e.binaryOptionsCancelSuccess.length){t.tag(5,p.LengthDelimited).fork();for(let r=0;r<e.binaryOptionsCancelSuccess.length;r++)t.bool(e.binaryOptionsCancelSuccess[r]);t.join()}for(let r=0;r<e.binaryOptionsOrderHashes.length;r++)t.tag(6,p.LengthDelimited).string(e.binaryOptionsOrderHashes[r]);for(let r=0;r<e.createdSpotOrdersCids.length;r++)t.tag(7,p.LengthDelimited).string(e.createdSpotOrdersCids[r]);for(let r=0;r<e.failedSpotOrdersCids.length;r++)t.tag(8,p.LengthDelimited).string(e.failedSpotOrdersCids[r]);for(let r=0;r<e.createdDerivativeOrdersCids.length;r++)t.tag(9,p.LengthDelimited).string(e.createdDerivativeOrdersCids[r]);for(let r=0;r<e.failedDerivativeOrdersCids.length;r++)t.tag(10,p.LengthDelimited).string(e.failedDerivativeOrdersCids[r]);for(let r=0;r<e.createdBinaryOptionsOrdersCids.length;r++)t.tag(11,p.LengthDelimited).string(e.createdBinaryOptionsOrdersCids[r]);for(let r=0;r<e.failedBinaryOptionsOrdersCids.length;r++)t.tag(12,p.LengthDelimited).string(e.failedBinaryOptionsOrdersCids[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bC=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCreateDerivativeMarketOrder",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"order",kind:"message",T:()=>fx,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1,"amino.name":"exchange/MsgCreateDerivativeMarketOrder","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.order=fx.internalBinaryRead(e,e.uint32(),r,n.order);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),e.order&&fx.internalBinaryWrite(e.order,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bU=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCreateDerivativeMarketOrderResponse",[{no:1,name:"order_hash",kind:"scalar",T:9},{no:2,name:"results",kind:"message",T:()=>bI,options:{"gogoproto.nullable":!0}},{no:3,name:"cid",kind:"scalar",T:9}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.orderHash="",t.cid="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.orderHash=e.string();break;case 2:n.results=bI.internalBinaryRead(e,e.uint32(),r,n.results);break;case 3:n.cid=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.orderHash&&t.tag(1,p.LengthDelimited).string(e.orderHash),e.results&&bI.internalBinaryWrite(e.results,t.tag(2,p.LengthDelimited).fork(),r).join(),""!==e.cid&&t.tag(3,p.LengthDelimited).string(e.cid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bI=new class extends cK{constructor(){super("injective.exchange.v1beta1.DerivativeMarketOrderResults",[{no:1,name:"quantity",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:2,name:"price",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:3,name:"fee",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"position_delta",kind:"message",T:()=>fT,options:{"gogoproto.nullable":!1}},{no:5,name:"payout",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.quantity="",t.price="",t.fee="",t.payout="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.quantity=e.string();break;case 2:n.price=e.string();break;case 3:n.fee=e.string();break;case 4:n.positionDelta=fT.internalBinaryRead(e,e.uint32(),r,n.positionDelta);break;case 5:n.payout=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.quantity&&t.tag(1,p.LengthDelimited).string(e.quantity),""!==e.price&&t.tag(2,p.LengthDelimited).string(e.price),""!==e.fee&&t.tag(3,p.LengthDelimited).string(e.fee),e.positionDelta&&fT.internalBinaryWrite(e.positionDelta,t.tag(4,p.LengthDelimited).fork(),r).join(),""!==e.payout&&t.tag(5,p.LengthDelimited).string(e.payout);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bN=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrder",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"order",kind:"message",T:()=>fx,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1,"amino.name":"exchange/MsgCreateBinaryOptionsMarketOrder","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.order=fx.internalBinaryRead(e,e.uint32(),r,n.order);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),e.order&&fx.internalBinaryWrite(e.order,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bR=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrderResponse",[{no:1,name:"order_hash",kind:"scalar",T:9},{no:2,name:"results",kind:"message",T:()=>bI,options:{"gogoproto.nullable":!0}},{no:3,name:"cid",kind:"scalar",T:9}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.orderHash="",t.cid="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.orderHash=e.string();break;case 2:n.results=bI.internalBinaryRead(e,e.uint32(),r,n.results);break;case 3:n.cid=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.orderHash&&t.tag(1,p.LengthDelimited).string(e.orderHash),e.results&&bI.internalBinaryWrite(e.results,t.tag(2,p.LengthDelimited).fork(),r).join(),""!==e.cid&&t.tag(3,p.LengthDelimited).string(e.cid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bS=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCancelDerivativeOrder",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"market_id",kind:"scalar",T:9},{no:3,name:"subaccount_id",kind:"scalar",T:9},{no:4,name:"order_hash",kind:"scalar",T:9},{no:5,name:"order_mask",kind:"scalar",T:5},{no:6,name:"cid",kind:"scalar",T:9}],{"gogoproto.goproto_getters":!1,"amino.name":"exchange/MsgCancelDerivativeOrder","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.marketId="",t.subaccountId="",t.orderHash="",t.orderMask=0,t.cid="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.marketId=e.string();break;case 3:n.subaccountId=e.string();break;case 4:n.orderHash=e.string();break;case 5:n.orderMask=e.int32();break;case 6:n.cid=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.marketId&&t.tag(2,p.LengthDelimited).string(e.marketId),""!==e.subaccountId&&t.tag(3,p.LengthDelimited).string(e.subaccountId),""!==e.orderHash&&t.tag(4,p.LengthDelimited).string(e.orderHash),0!==e.orderMask&&t.tag(5,p.Varint).int32(e.orderMask),""!==e.cid&&t.tag(6,p.LengthDelimited).string(e.cid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bA=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCancelDerivativeOrderResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bP=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCancelBinaryOptionsOrder",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"market_id",kind:"scalar",T:9},{no:3,name:"subaccount_id",kind:"scalar",T:9},{no:4,name:"order_hash",kind:"scalar",T:9},{no:5,name:"order_mask",kind:"scalar",T:5},{no:6,name:"cid",kind:"scalar",T:9}],{"gogoproto.goproto_getters":!1,"amino.name":"exchange/MsgCancelBinaryOptionsOrder","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.marketId="",t.subaccountId="",t.orderHash="",t.orderMask=0,t.cid="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.marketId=e.string();break;case 3:n.subaccountId=e.string();break;case 4:n.orderHash=e.string();break;case 5:n.orderMask=e.int32();break;case 6:n.cid=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.marketId&&t.tag(2,p.LengthDelimited).string(e.marketId),""!==e.subaccountId&&t.tag(3,p.LengthDelimited).string(e.subaccountId),""!==e.orderHash&&t.tag(4,p.LengthDelimited).string(e.orderHash),0!==e.orderMask&&t.tag(5,p.Varint).int32(e.orderMask),""!==e.cid&&t.tag(6,p.LengthDelimited).string(e.cid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bD=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgCancelBinaryOptionsOrderResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bL=new class extends cK{constructor(){super("injective.exchange.v1beta1.OrderData",[{no:1,name:"market_id",kind:"scalar",T:9},{no:2,name:"subaccount_id",kind:"scalar",T:9},{no:3,name:"order_hash",kind:"scalar",T:9},{no:4,name:"order_mask",kind:"scalar",T:5},{no:5,name:"cid",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.marketId="",t.subaccountId="",t.orderHash="",t.orderMask=0,t.cid="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.marketId=e.string();break;case 2:n.subaccountId=e.string();break;case 3:n.orderHash=e.string();break;case 4:n.orderMask=e.int32();break;case 5:n.cid=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.marketId&&t.tag(1,p.LengthDelimited).string(e.marketId),""!==e.subaccountId&&t.tag(2,p.LengthDelimited).string(e.subaccountId),""!==e.orderHash&&t.tag(3,p.LengthDelimited).string(e.orderHash),0!==e.orderMask&&t.tag(4,p.Varint).int32(e.orderMask),""!==e.cid&&t.tag(5,p.LengthDelimited).string(e.cid);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bO=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchCancelDerivativeOrders",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"data",kind:"message",repeat:2,T:()=>bL,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1,"amino.name":"exchange/MsgBatchCancelDerivativeOrders","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.data=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.data.push(bL.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender);for(let a=0;a<e.data.length;a++)bL.internalBinaryWrite(e.data[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bF=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchCancelDerivativeOrdersResponse",[{no:1,name:"success",kind:"scalar",repeat:1,T:8}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.success=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)if(a===p.LengthDelimited)for(let t=e.int32()+e.pos;e.pos<t;)n.success.push(e.bool());else n.success.push(e.bool());else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){if(e.success.length){t.tag(1,p.LengthDelimited).fork();for(let r=0;r<e.success.length;r++)t.bool(e.success[r]);t.join()}let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},b_=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgSubaccountTransfer",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"source_subaccount_id",kind:"scalar",T:9},{no:3,name:"destination_subaccount_id",kind:"scalar",T:9},{no:4,name:"amount",kind:"message",T:()=>dn,options:{"gogoproto.nullable":!1}}],{"amino.name":"exchange/MsgSubaccountTransfer","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);
2051return t.sender="",t.sourceSubaccountId="",t.destinationSubaccountId="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.sourceSubaccountId=e.string();break;case 3:n.destinationSubaccountId=e.string();break;case 4:n.amount=dn.internalBinaryRead(e,e.uint32(),r,n.amount);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.sourceSubaccountId&&t.tag(2,p.LengthDelimited).string(e.sourceSubaccountId),""!==e.destinationSubaccountId&&t.tag(3,p.LengthDelimited).string(e.destinationSubaccountId),e.amount&&dn.internalBinaryWrite(e.amount,t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bM=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgSubaccountTransferResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bj=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgExternalTransfer",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"source_subaccount_id",kind:"scalar",T:9},{no:3,name:"destination_subaccount_id",kind:"scalar",T:9},{no:4,name:"amount",kind:"message",T:()=>dn,options:{"gogoproto.nullable":!1}}],{"amino.name":"exchange/MsgExternalTransfer","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.sourceSubaccountId="",t.destinationSubaccountId="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.sourceSubaccountId=e.string();break;case 3:n.destinationSubaccountId=e.string();break;case 4:n.amount=dn.internalBinaryRead(e,e.uint32(),r,n.amount);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.sourceSubaccountId&&t.tag(2,p.LengthDelimited).string(e.sourceSubaccountId),""!==e.destinationSubaccountId&&t.tag(3,p.LengthDelimited).string(e.destinationSubaccountId),e.amount&&dn.internalBinaryWrite(e.amount,t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},b$=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgExternalTransferResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bW=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgLiquidatePosition",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"subaccount_id",kind:"scalar",T:9},{no:3,name:"market_id",kind:"scalar",T:9},{no:4,name:"order",kind:"message",T:()=>fx,options:{"gogoproto.nullable":!0}}],{"amino.name":"exchange/MsgLiquidatePosition","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.subaccountId="",t.marketId="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.subaccountId=e.string();break;case 3:n.marketId=e.string();break;case 4:n.order=fx.internalBinaryRead(e,e.uint32(),r,n.order);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.subaccountId&&t.tag(2,p.LengthDelimited).string(e.subaccountId),""!==e.marketId&&t.tag(3,p.LengthDelimited).string(e.marketId),e.order&&fx.internalBinaryWrite(e.order,t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bz=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgLiquidatePositionResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bV=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgEmergencySettleMarket",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"subaccount_id",kind:"scalar",T:9},{no:3,name:"market_id",kind:"scalar",T:9}],{"amino.name":"exchange/MsgEmergencySettleMarket","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.subaccountId="",t.marketId="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.subaccountId=e.string();break;case 3:n.marketId=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.subaccountId&&t.tag(2,p.LengthDelimited).string(e.subaccountId),""!==e.marketId&&t.tag(3,p.LengthDelimited).string(e.marketId);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bH=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgEmergencySettleMarketResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bq=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgIncreasePositionMargin",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"source_subaccount_id",kind:"scalar",T:9},{no:3,name:"destination_subaccount_id",kind:"scalar",T:9},{no:4,name:"market_id",kind:"scalar",T:9},{no:5,name:"amount",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}],{"amino.name":"exchange/MsgIncreasePositionMargin","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.sourceSubaccountId="",t.destinationSubaccountId="",t.marketId="",t.amount="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.sourceSubaccountId=e.string();break;case 3:n.destinationSubaccountId=e.string();break;case 4:n.marketId=e.string();break;case 5:n.amount=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.sourceSubaccountId&&t.tag(2,p.LengthDelimited).string(e.sourceSubaccountId),""!==e.destinationSubaccountId&&t.tag(3,p.LengthDelimited).string(e.destinationSubaccountId),""!==e.marketId&&t.tag(4,p.LengthDelimited).string(e.marketId),""!==e.amount&&t.tag(5,p.LengthDelimited).string(e.amount);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bG=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgIncreasePositionMarginResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bK=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgDecreasePositionMargin",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"source_subaccount_id",kind:"scalar",T:9},{no:3,name:"destination_subaccount_id",kind:"scalar",T:9},{no:4,name:"market_id",kind:"scalar",T:9},{no:5,name:"amount",kind:"scalar",T:9,options:{"gogoproto.nullable":!1,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}}],{"amino.name":"exchange/MsgDecreasePositionMargin","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.sourceSubaccountId="",t.destinationSubaccountId="",t.marketId="",t.amount="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.sourceSubaccountId=e.string();break;case 3:n.destinationSubaccountId=e.string();break;case 4:n.marketId=e.string();break;case 5:n.amount=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.sourceSubaccountId&&t.tag(2,p.LengthDelimited).string(e.sourceSubaccountId),""!==e.destinationSubaccountId&&t.tag(3,p.LengthDelimited).string(e.destinationSubaccountId),""!==e.marketId&&t.tag(4,p.LengthDelimited).string(e.marketId),""!==e.amount&&t.tag(5,p.LengthDelimited).string(e.amount);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bJ=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgDecreasePositionMarginResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bZ=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgPrivilegedExecuteContract",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"funds",kind:"scalar",T:9},{no:3,name:"contract_address",kind:"scalar",T:9},{no:4,name:"data",kind:"scalar",T:9}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/MsgPrivilegedExecuteContract","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.funds="",t.contractAddress="",t.data="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.funds=e.string();break;case 3:n.contractAddress=e.string();break;case 4:n.data=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.funds&&t.tag(2,p.LengthDelimited).string(e.funds),""!==e.contractAddress&&t.tag(3,p.LengthDelimited).string(e.contractAddress),""!==e.data&&t.tag(4,p.LengthDelimited).string(e.data);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bQ=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgPrivilegedExecuteContractResponse",[{no:1,name:"funds_diff",kind:"message",repeat:2,T:()=>dn,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"github.com/cosmos/cosmos-sdk/types.Coins"}}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.fundsDiff=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();if(1===t)n.fundsDiff.push(dn.internalBinaryRead(e,e.uint32(),r));else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.fundsDiff.length;a++)dn.internalBinaryWrite(e.fundsDiff[a],t.tag(1,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bX=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgRewardsOptOut",[{no:1,name:"sender",kind:"scalar",T:9}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/MsgRewardsOptOut","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.sender=e.string();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},bY=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgRewardsOptOutResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgReclaimLockedFunds",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"lockedAccountPubKey",kind:"scalar",T:12},{no:3,name:"signature",kind:"scalar",T:12}],{"amino.name":"exchange/MsgReclaimLockedFunds","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.lockedAccountPubKey=new Uint8Array(0),t.signature=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.lockedAccountPubKey=e.bytes();break;case 3:n.signature=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),e.lockedAccountPubKey.length&&t.tag(2,p.LengthDelimited).bytes(e.lockedAccountPubKey),e.signature.length&&t.tag(3,p.LengthDelimited).bytes(e.signature);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgReclaimLockedFundsResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var b0=new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgSignData",[{no:1,name:"Signer",kind:"scalar",jsonName:"Signer",T:12,options:{"gogoproto.jsontag":"signer","gogoproto.casttype":"github.com/cosmos/cosmos-sdk/types.AccAddress"}},{no:2,name:"Data",kind:"scalar",jsonName:"Data",T:12,options:{"gogoproto.jsontag":"data"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.signer=new Uint8Array(0),t.data=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.signer=e.bytes();break;case 2:n.data=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.signer.length&&t.tag(1,p.LengthDelimited).bytes(e.signer),e.data.length&&t.tag(2,p.LengthDelimited).bytes(e.data);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgSignDoc",[{no:1,name:"sign_type",kind:"scalar",T:9,options:{"gogoproto.jsontag":"type"}},{no:2,name:"value",kind:"message",T:()=>b0,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.signType="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.signType=e.string();break;case 2:n.value=b0.internalBinaryRead(e,e.uint32(),r,n.value);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.signType&&t.tag(1,p.LengthDelimited).string(e.signType),e.value&&b0.internalBinaryWrite(e.value,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new g6("injective.exchange.v1beta1.Msg",[{name:"Deposit",options:{},I:f4,O:f5},{name:"Withdraw",options:{},I:f9,O:be},{name:"InstantSpotMarketLaunch",options:{},I:bi,O:bo},{name:"CreateSpotLimitOrder",options:{},I:bt,O:br},{name:"BatchCreateSpotLimitOrders",options:{},I:ba,O:bn},{name:"CreateSpotMarketOrder",options:{},I:bc,O:bd},{name:"CancelSpotOrder",options:{},I:by,O:bk},{name:"BatchCancelSpotOrders",options:{},I:bx,O:bw},{name:"BatchUpdateOrders",options:{},I:bE,O:bB},{name:"PrivilegedExecuteContract",options:{},I:bZ,O:bQ},{name:"CreateDerivativeLimitOrder",options:{},I:bu,O:bm},{name:"BatchCreateDerivativeLimitOrders",options:{},I:bf,O:bb},{name:"CreateDerivativeMarketOrder",options:{},I:bC,O:bU},{name:"CancelDerivativeOrder",options:{},I:bS,O:bA},{name:"BatchCancelDerivativeOrders",options:{},I:bO,O:bF},{name:"InstantBinaryOptionsMarketLaunch",options:{},I:bs,O:bl},{name:"CreateBinaryOptionsLimitOrder",options:{},I:bh,O:bg},{name:"CreateBinaryOptionsMarketOrder",options:{},I:bN,O:bR},{name:"CancelBinaryOptionsOrder",options:{},I:bP,O:bD},{name:"BatchCancelBinaryOptionsOrders",options:{},I:bv,O:bT},{name:"SubaccountTransfer",options:{},I:b_,O:bM},{name:"ExternalTransfer",options:{},I:bj,O:b$},{name:"LiquidatePosition",options:{},I:bW,O:bz},{name:"EmergencySettleMarket",options:{},I:bV,O:bH},{name:"IncreasePositionMargin",options:{},I:bq,O:bG},{name:"DecreasePositionMargin",options:{},I:bK,O:bJ},{name:"RewardsOptOut",options:{},I:bX,O:bY},{name:"AdminUpdateBinaryOptionsMarket",options:{},I:new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarket",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"market_id",kind:"scalar",T:9},{no:3,name:"settlement_price",kind:"scalar",T:9,options:{"gogoproto.nullable":!0,"gogoproto.customtype":"cosmossdk.io/math.LegacyDec"}},{no:4,name:"expiration_timestamp",kind:"scalar",T:3,L:0},{no:5,name:"settlement_timestamp",kind:"scalar",T:3,L:0},{no:6,name:"status",kind:"enum",T:()=>["injective.exchange.v1beta1.MarketStatus",fd]}],{"amino.name":"exchange/MsgAdminUpdateBinaryOptionsMarket","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.marketId="",t.settlementPrice="",t.expirationTimestamp=0n,t.settlementTimestamp=0n,t.status=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.marketId=e.string();break;
2051case 3:n.settlementPrice=e.string();break;case 4:n.expirationTimestamp=e.int64().toBigInt();break;case 5:n.settlementTimestamp=e.int64().toBigInt();break;case 6:n.status=e.int32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.marketId&&t.tag(2,p.LengthDelimited).string(e.marketId),""!==e.settlementPrice&&t.tag(3,p.LengthDelimited).string(e.settlementPrice),0n!==e.expirationTimestamp&&t.tag(4,p.Varint).int64(e.expirationTimestamp),0n!==e.settlementTimestamp&&t.tag(5,p.Varint).int64(e.settlementTimestamp),0!==e.status&&t.tag(6,p.Varint).int32(e.status);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},O:new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarketResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}}},{name:"UpdateSpotMarket",options:{},I:f3,O:f6},{name:"UpdateDerivativeMarket",options:{},I:f8,O:f7},{name:"AuthorizeStakeGrants",options:{},I:new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgAuthorizeStakeGrants",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"grants",kind:"message",repeat:2,T:()=>fL}],{"amino.name":"exchange/MsgAuthorizeStakeGrants","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.grants=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.grants.push(fL.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender);for(let a=0;a<e.grants.length;a++)fL.internalBinaryWrite(e.grants[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},O:new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgAuthorizeStakeGrantsResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}}},{name:"ActivateStakeGrant",options:{},I:new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgActivateStakeGrant",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"granter",kind:"scalar",T:9}],{"amino.name":"exchange/MsgActivateStakeGrant","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",t.granter="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.granter=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),""!==e.granter&&t.tag(2,p.LengthDelimited).string(e.granter);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},O:new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgActivateStakeGrantResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}}},{name:"BatchExchangeModification",options:{},I:new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchExchangeModification",[{no:1,name:"sender",kind:"scalar",T:9},{no:2,name:"proposal",kind:"message",T:()=>f$}],{"gogoproto.goproto_getters":!1,"gogoproto.equal":!1,"amino.name":"exchange/MsgBatchExchangeModification","cosmos.msg.v1.signer":["sender"]})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sender="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sender=e.string();break;case 2:n.proposal=f$.internalBinaryRead(e,e.uint32(),r,n.proposal);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.sender&&t.tag(1,p.LengthDelimited).string(e.sender),e.proposal&&f$.internalBinaryWrite(e.proposal,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},O:new class extends cK{constructor(){super("injective.exchange.v1beta1.MsgBatchExchangeModificationResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}}}],{"cosmos.msg.v1.service":!0});var b1=class e{constructor(e){dI(this,"bech32Address",void 0),this.bech32Address=e}compare(e){return this.bech32Address===e.bech32Address}get address(){return this.bech32Address}static fromBech32(t,r="inj"){try{let a=c2(U.I.fromWords(U.I.decode(t).words)),n=(0,A.ZJ)((a.startsWith("0x")?a:`0x${a}`).toString());return new e(U.I.encode(r,U.I.toWords(n)))}catch(e){throw new ez(Error(e),{type:ef.ValidationError})}}static fromHex(t,r="inj"){let a=(0,A.ZJ)((t.startsWith("0x")?t:`0x${t}`).toString());return new e(U.I.encode(r,U.I.toWords(a)))}toBech32(e="inj"){let t=this.toHex(),r=(0,A.ZJ)(t.startsWith("0x")?t:`0x${t}`);return U.I.encode(e,U.I.toWords(r))}toAccountAddress(){return this.toBech32("inj")}toValidatorAddress(){return this.toBech32("injvaloper")}toConsensusAddress(){return this.toBech32("injvalcons")}toHex(){let{bech32Address:e}=this,t=c2(U.I.fromWords(U.I.decode(e).words));return t.startsWith("0x")?t:`0x${t}`}getSubaccountId(e=0){let t="0".repeat(23)+e;return`${this.toHex()}${t}`}getEthereumAddress(){return this.toHex()}},b2=class e{constructor(e,t){dI(this,"type",void 0),dI(this,"key",void 0),this.key=e,this.type=t||"/injective.crypto.v1beta1.ethsecp256k1.PubKey"}static fromBase64(t){return new e(c3(t))}static fromBytes(t){return new e(t)}static fromHex(t){return new e(c1((t.startsWith("0x")?t.slice(2):t).toString()))}static fromPrivateKeyHex(t){let r="string"==typeof t,a=r&&t.startsWith("0x")?t.slice(2):t,n=r?c1(a.toString()):t;return new e(cr.getPublicKey(n,!0),"/injective.crypto.v1beta1.ethsecp256k1.PubKey")}toPubKeyBytes(){return this.key}toBase64(){return c6(this.toPubKeyBytes())}toHex(){return c2(this.toPubKeyBytes())}toBech32(){return U.I.encode("injpub",U.I.toWords(c1(this.toHex())))}toAddress(){let e=function(e){64===c1(e).length&&(e="04"+e);let t=cr.ProjectivePoint.fromHex(e).toHex(!1);return t.startsWith("04")?t.slice(2):t}(this.toHex()),t=(0,A.So)((0,A.ZJ)(e.startsWith("0x")?e:"0x"+e),"bytes").subarray(-20);return b1.fromHex(c2(t).toLowerCase())}toProto(){let e=d_.create();return e.key=this.key,e}toAny(){let e=this.toProto(),t=dl.create();return t.typeUrl=this.type,t.value=d_.toBinary(e),t}},b3=e=>e?e.startsWith("inj")?e:e.startsWith("0x")?de(e):e:"",b6=e=>df.create({bodyBytes:e.txRaw.bodyBytes,authInfoBytes:e.txRaw.authInfoBytes,accountNumber:BigInt(e.accountNumber),chainId:e.chainId}),b8=class e extends dF{static fromJSON(t){return new e(t)}toProto(){var e;let{params:t}=this;return b0.create({signer:c1((e=t.sender).startsWith("0x")?e:`0x${c2(U.I.fromWords(U.I.decode(e).words))}`),data:c8(c7(t.data))})}toData(){return{"@type":"/injective.exchange.v1beta1.MsgSignData",...this.toProto()}}toAmino(){let e=this.toProto();return{type:"sign/MsgSignData",value:{signer:c2(e.signer),data:c7(e.data)}}}toWeb3Gw(){let{value:e}=this.toAmino();return{"@type":"/injective.exchange.v1beta1.MsgSignData",...e}}toDirectSign(){return{type:"/injective.exchange.v1beta1.MsgSignData",message:this.toProto()}}toBinary(){return b0.toBinary(this.toProto())}},b7=class e extends dF{static fromJSON(t){return new e(t)}toProto(){let e,{params:t}=this;return e={...t,amount:tn(t.amount).toFixed()},bq.create({sender:e.injectiveAddress,sourceSubaccountId:e.srcSubaccountId,destinationSubaccountId:e.dstSubaccountId,marketId:e.marketId,amount:e.amount})}toData(){return{"@type":"/injective.exchange.v1beta1.MsgIncreasePositionMargin",...this.toProto()}}toAmino(){let{params:e}=this;return{type:"exchange/MsgIncreasePositionMargin",value:{sender:e.injectiveAddress,source_subaccount_id:e.srcSubaccountId,destination_subaccount_id:e.dstSubaccountId,market_id:e.marketId,amount:e.amount}}}toWeb3Gw(){let{value:e}=this.toAmino();return{"@type":"/injective.exchange.v1beta1.MsgIncreasePositionMargin",...e}}toEip712(){let{type:e,value:t}=this.toAmino();return{type:e,value:{...t,amount:tn(t.amount).toFixed()}}}toEip712V2(){let{params:e}=this;return{...this.toWeb3Gw(),amount:new tr(e.amount).toFixed(18)}}toDirectSign(){return{type:"/injective.exchange.v1beta1.MsgIncreasePositionMargin",message:this.toProto()}}toBinary(){return bq.toBinary(this.toProto())}},b4=class{static decode(e){let t=e.typeUrl;switch(!0){case t.includes("MsgIncreasePositionMargin"):{let t=bq.fromBinary(e.value);return b7.fromJSON({marketId:t.marketId,injectiveAddress:t.sender,srcSubaccountId:t.sourceSubaccountId,dstSubaccountId:t.destinationSubaccountId,amount:t.amount})}case t.includes("MsgSignData"):{let t=b0.fromBinary(e.value);return b8.fromJSON({data:c7(t.data),sender:de(c2(t.signer))})}default:throw Error("Unknown message type")}}},b5=class e{constructor(e){dI(this,"wallet",void 0),this.wallet=e}static generate(){let t=function(e,t=128){if((0,D.Fe)(t),t%32!=0||t>256)throw TypeError("Invalid entropy");return function(e,t){return(0,D.DO)(e,16,20,24,28,32),(function(e){if(!Array.isArray(e)||2048!==e.length||"string"!=typeof e[0])throw Error("Wordlist: expected array of 2048 strings");
2051return e.forEach(e=>{if("string"!=typeof e)throw Error("wordlist: non-string element: "+e)}),U.Wp.chain(U.Wp.checksum(1,dM),U.Wp.radix2(11,!0),U.Wp.alphabet(e))})(t).encode(e).join("あいこくしん"===t[0]?" ":" ")}((0,D.po)(t/8),e)}(dj);return{privateKey:e.fromMnemonic(t),mnemonic:t}}static fromMnemonic(t,r=c5){return new e(new g2(gQ.fromPhrase(t,void 0,r).privateKey))}static fromPrivateKey(t){return new e(new g2(t))}static fromHex(t){let r="string"==typeof t,a=r&&t.startsWith("0x")?t.slice(2):t;return new e(new g2(c2(r?c1(a.toString()):t)))}toPrivateKeyHex(){return this.wallet.privateKey.startsWith("0x")?this.wallet.privateKey:`0x${this.wallet.privateKey}`}toPublicKey(){return b2.fromPrivateKeyHex(this.wallet.privateKey)}toHex(){return this.wallet.address.startsWith("0x")?this.wallet.address:`0x${this.wallet.address}`}toAddress(){return b1.fromHex(this.toHex())}toBech32(){return b1.fromHex(this.toHex()).toBech32()}sign(e){let{wallet:t}=this,r=(0,A.So)(e),a=t.signingKey.sign(r),n=hn.from(a);return dQ(d3([n.r,n.s]))}signEcda(e){let{wallet:t}=this,r=(0,A.So)(e),a=c1(t.privateKey.startsWith("0x")?t.privateKey.slice(2):t.privateKey);return cr.sign((0,A.ZJ)(r),a).toCompactRawBytes()}signHashed(e){let{wallet:t}=this,r=t.signingKey.sign(e),a=hn.from(r);return dQ(d3([a.r,a.s]))}signHashedEcda(e){let{wallet:t}=this,r=c1(t.privateKey.startsWith("0x")?t.privateKey.slice(2):t.privateKey);return cr.sign(e,r).toCompactRawBytes()}async signTypedData(e){let{wallet:t}=this,r=t.privateKey.startsWith("0x")?t.privateKey.slice(2):t.privateKey,a=iU(c9(e)),n=c1(r),i=cr.sign((0,A.ZJ)(a),n),o=i.toCompactRawBytes(),s=new Uint8Array(o.length+1);return s.set(o),s[o.length]=i.recovery+27,s}signHashedTypedData(e){let{wallet:t}=this,r=c1(t.privateKey.startsWith("0x")?t.privateKey.slice(2):t.privateKey);return cr.sign(e,r).toCompactRawBytes()}static async verifySignature({signature:e,eip712:t,publicKey:r}){let a=r.startsWith("0x")?r:`0x${r}`,n=await dr(t,e),i=n.startsWith("0x")?n:`0x${n}`;return a.length!==i.length?i.substring(0,a.length)===a:a===i}async verifyThisPkSignature({signature:e,eip712:t}){let r=`0x${this.toPublicKey().toHex()}`,a=await dr(t,e),n=a.startsWith("0x")?a:`0x${a}`;return r.length!==n.length?n.substring(0,r.length)===r:r===n}static async verifyCosmosSignature({txRaw:e,signer:t}){let{body:r,authInfo:a,signatures:n}=(e=>{let t=dk.fromBinary(e.authInfoBytes);return{body:dy.fromBinary(e.bodyBytes),authInfo:t,signatures:e.signatures}})(e);if(a.signerInfos.length>1||n.length>1)throw new ez(Error("Validation of multiple signers is not supported"));if(r.messages.length>1)throw new ez(Error("Validation of multiple messages is not supported"));let{evmChainId:i,chainId:o}=(()=>{if(!r.extensionOptions.length)return{chainId:ak.Mainnet,EvmChainId:ay.Mainnet};let e=r.extensionOptions.find(e=>e.typeUrl.includes("ExtensionOptionsWeb3Tx"));if(!e)return{chainId:ak.Mainnet,EvmChainId:ay.Mainnet};let t=Number(g3.fromBinary(e.value).typedDataChainID);return{evmChainId:ay,chainId:[ay.Kovan,ay.Goerli,ay.Sepolia].includes(t)?ak.Testnet:ak.Mainnet}})(),[s]=a.signerInfos,[l]=n,[c]=r.messages,d=(({msgs:e,tx:t,fee:r,evmChainId:a})=>{let n=Array.isArray(e)?e:[e],i=n.map(e=>e.toEip712());return{...(({fee:e,types:t})=>(e&&e.feePayer&&t.types.Fee.unshift({name:"feePayer",type:"string"}),t))({fee:r,types:{types:{EIP712Domain:[{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"string"},{name:"salt",type:"string"}],Tx:[{name:"account_number",type:"string"},{name:"chain_id",type:"string"},{name:"fee",type:"Fee"},{name:"memo",type:"string"},{name:"msgs",type:"Msg[]"},{name:"sequence",type:"string"},{name:"timeout_height",type:"string"}],Fee:[{name:"amount",type:"Coin[]"},{name:"gas",type:"string"}],Coin:[{name:"denom",type:"string"},{name:"amount",type:"string"}],Msg:[{name:"type",type:"string"},{name:"value",type:"MsgValue"}],...Object.fromEntries(n[0].toEip712Types())}}}),primaryType:"Tx",...{domain:{name:"Injective Web3",version:"1.0.0",chainId:"0x"+ta(a).toString(16),salt:"0",verifyingContract:"cosmos"}},message:{...(({accountNumber:e,sequence:t,timeoutHeight:r,chainId:a,memo:n})=>({account_number:e,chain_id:a,timeout_height:r,memo:n||"",sequence:t}))(t),...(e=>{let t={amount:[{amount:new tr(4e5).times(16e7).toString(),denom:"inj"}],gas:"400000",payer:"",granter:"",feePayer:""};if(!e)return{fee:t};let{amount:r,gas:a,feePayer:n}={amount:e.amount||t.amount,gas:e.gas||"400000",feePayer:e.feePayer};return{fee:{...n&&{feePayer:n},gas:a,amount:r}}})(r),msgs:i}}})({msgs:[b4.decode(c)],fee:a.fee,tx:{memo:r.memo,accountNumber:t.accountNumber.toString(),sequence:s.sequence.toString(),timeoutHeight:r.timeoutHeight.toString(),chainId:o},evmChainId:i});return await this.verifySignature({eip712:d,signature:c2(l),publicKey:c2(c3(t.publicKey))})}static verifyArbitrarySignature({signature:e,signDoc:t,publicKey:r}){let a=e.startsWith("0x")?e:`0x${e}`,n=r.startsWith("0x")?r:`0x${r}`;return cr.verify((0,A.ZJ)(a),(0,A.ZJ)((0,A.So)(t)),(0,A.ZJ)(n))}};function b9(e,t,r,a,n){if(a)for(let[t,r]of Object.entries(a))if("string"==typeof r)e.append(t,r);else for(let a of r)e.append(t,a);if(e.set("Content-Type","text"===t?"application/grpc-web-text":"application/grpc-web+proto"),"text"==t&&e.set("Accept","application/grpc-web-text"),e.set("X-Grpc-Web","1"),"number"==typeof r){if(r<=0)throw new g8(`timeout ${r} ms exceeded`,B[B.DEADLINE_EXCEEDED]);e.set("grpc-timeout",`${r}m`)}else if(r){let t=r.getTime(),a=Date.now();if(t<=a)throw new g8(`deadline ${r} exceeded`,B[B.DEADLINE_EXCEEDED]);e.set("grpc-timeout",`${t-a}m`)}return e}function ye(e,t){let r=new Uint8Array(5+e.length);r[0]=C.DATA;for(let t=e.length,a=4;a>0;a--)r[a]=t%256,t>>>=8;return r.set(e,5),"binary"===t?r:cl(r)}function yt(e,t,r){if(1==arguments.length){var a;let t,r;try{t=e.type}catch(e){}switch(t){case"error":case"opaque":case"opaqueredirect":throw new g8(`fetch response type ${e.type}`,B[B.UNKNOWN])}
2051return yt((a=e.headers,r={},a.forEach((e,t)=>{let a=r[t];"string"==typeof a?r[t]=[a,e]:Array.isArray(a)?a.push(e):r[t]=e}),r),e.status,e.statusText)}let n=t>=200&&t<300,i=ys(e),[o,s]=yo(e);return void 0!==o&&o!==B.OK||n||(o=function(e){switch(e){case 200:return B.OK;case 400:return B.INVALID_ARGUMENT;case 401:return B.UNAUTHENTICATED;case 403:return B.PERMISSION_DENIED;case 404:return B.NOT_FOUND;case 409:return B.ABORTED;case 412:return B.FAILED_PRECONDITION;case 429:return B.RESOURCE_EXHAUSTED;case 499:return B.CANCELLED;case 500:default:return B.UNKNOWN;case 501:return B.UNIMPLEMENTED;case 503:return B.UNAVAILABLE;case 504:return B.DEADLINE_EXCEEDED}}(t),s=r),[o,s,i]}function yr(e){let t=function(e){let t={};for(let r of String.fromCharCode.apply(String,e).trim().split("\r\n")){if(""==r)continue;let[e,...a]=r.split(":"),n=a.join(":").trim(),i=t[e=e.trim()];"string"==typeof i?t[e]=[i,n]:Array.isArray(i)?i.push(n):t[e]=n}return t}(e),[r,a]=yo(t),n=ys(t);return[null!=r?r:B.OK,a,n]}function ya(e,t,r){var a,n,i;return a=this,n=void 0,i=function*(){let a,n="",i=new Uint8Array(0),o=function(e){switch(e){case"application/grpc-web-text":case"application/grpc-web-text+proto":return"text";case"application/grpc-web":case"application/grpc-web+proto":return"binary";case void 0:case null:throw new g8("missing response content type",B[B.INTERNAL]);default:throw new g8("unexpected response content type: "+e,B[B.INTERNAL])}}(t);if(yn(e)){let t=e.getReader();a={next:()=>t.read()}}else a=e[Symbol.asyncIterator]();for(;;){let e=yield a.next();if(void 0!==e.value){if("text"===o){for(let t=0;t<e.value.length;t++)n+=String.fromCharCode(e.value[t]);let t=n.length-n.length%4;if(0===t)continue;i=yi(i,cs(n.substring(0,t))),n=n.substring(t)}else i=yi(i,e.value);for(;i.length>=5&&i[0]===C.DATA;){let e=0;for(let t=1;t<5;t++)e=(e<<8)+i[t];if(i.length-5>=e)r(C.DATA,i.subarray(5,5+e)),i=i.subarray(5+e);else break}}if(e.done){if(0===i.length)break;if(i[0]!==C.TRAILER||i.length<5)throw new g8("premature EOF",B[B.DATA_LOSS]);r(C.TRAILER,i.subarray(5));break}}},new(n||(n=Promise))(function(e,t){function r(e){try{s(i.next(e))}catch(e){t(e)}}function o(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var a;t.done?e(t.value):((a=t.value)instanceof n?a:new n(function(e){e(a)})).then(r,o)}s((i=i.apply(a,[])).next())})}!function(e){e[e.OK=0]="OK",e[e.CANCELLED=1]="CANCELLED",e[e.UNKNOWN=2]="UNKNOWN",e[e.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",e[e.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",e[e.NOT_FOUND=5]="NOT_FOUND",e[e.ALREADY_EXISTS=6]="ALREADY_EXISTS",e[e.PERMISSION_DENIED=7]="PERMISSION_DENIED",e[e.UNAUTHENTICATED=16]="UNAUTHENTICATED",e[e.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",e[e.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",e[e.ABORTED=10]="ABORTED",e[e.OUT_OF_RANGE=11]="OUT_OF_RANGE",e[e.UNIMPLEMENTED=12]="UNIMPLEMENTED",e[e.INTERNAL=13]="INTERNAL",e[e.UNAVAILABLE=14]="UNAVAILABLE",e[e.DATA_LOSS=15]="DATA_LOSS"}(B||(B={})),!function(e){e[e.DATA=0]="DATA",e[e.TRAILER=128]="TRAILER"}(C||(C={}));var yn=e=>"function"==typeof e.getReader;function yi(e,t){let r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}function yo(e){let t,r,a=e["grpc-message"];if(void 0!==a){if(Array.isArray(a))return[B.INTERNAL,"invalid grpc-web message"];r=a}let n=e["grpc-status"];return void 0!==n&&(Array.isArray(n)||void 0===B[t=parseInt(n,10)])?[B.INTERNAL,"invalid grpc-web status"]:[t,r]}function ys(e){let t={};for(let[r,a]of Object.entries(e))switch(r){case"grpc-message":case"grpc-status":case"content-type":break;default:t[r]=a}return t}var yl=class{constructor(e){this.defaultOptions=e}mergeOptions(e){return function(e,t){if(!t)return e;let r={};for(let i of(g7(e,r),g7(t,r),Object.keys(t))){let o=t[i];switch(i){case"jsonOptions":r.jsonOptions=function(e,t){var r,a;let n=Object.assign(Object.assign({},e),t);return n.typeRegistry=[...null!=(r=null==e?void 0:e.typeRegistry)?r:[],...null!=(a=null==t?void 0:t.typeRegistry)?a:[]],n}(e.jsonOptions,r.jsonOptions);break;case"binaryOptions":var a,n;a=e.binaryOptions,n=r.binaryOptions,r.binaryOptions=Object.assign(Object.assign({},a),n);break;case"meta":r.meta={},g7(e.meta,r.meta),g7(t.meta,r.meta);break;case"interceptors":r.interceptors=e.interceptors?e.interceptors.concat(o):o.c
2051oncat()}}return r}(this.defaultOptions,e)}makeUrl(e,t){let r=t.baseUrl;return r.endsWith("/")&&(r=r.substring(0,r.length-1)),`${r}/${e.service.typeName}/${e.name}`}clientStreaming(e){let t=new g8("Client streaming is not supported by grpc-web",B[B.UNIMPLEMENTED]);throw t.methodName=e.name,t.serviceName=e.service.typeName,t}duplex(e){let t=new g8("Duplex streaming is not supported by grpc-web",B[B.UNIMPLEMENTED]);throw t.methodName=e.name,t.serviceName=e.service.typeName,t}serverStreaming(e,t,r){var a,n,i,o,s;let l=null!=(a=r.format)?a:"text",c=null!=(n=r.fetch)?n:globalThis.fetch,d=null!=(i=r.fetchInit)?i:{},p=this.makeUrl(e,r),u=e.I.toBinary(t,r.binaryOptions),m=new g4,h=new g5,g=!0,f,b=new g4,y,k=new g4;return c(p,Object.assign(Object.assign({},d),{method:"POST",headers:b9(new globalThis.Headers,l,r.timeout,r.meta),body:ye(u,l),signal:null!=(o=r.abort)?o:null})).then(e=>{let[t,r,a]=yt(e);if(m.resolve(a),null!=t&&t!==B.OK)throw new g8(null!=r?r:B[t],B[t],a);return null!=t&&(f={code:B[t],detail:null!=r?r:B[t]}),e}).then(t=>{if(!t.body)throw new g8("missing response body",B[B.INTERNAL]);return ya(t.body,t.headers.get("content-type"),(t,a)=>{switch(t){case C.DATA:h.notifyMessage(e.O.fromBinary(a,r.binaryOptions)),g=!1;break;case C.TRAILER:let n,i;[n,i,y]=yr(a),f={code:B[n],detail:null!=i?i:B[n]}}})}).then(()=>{if(!y&&!g)throw new g8("missing trailers",B[B.DATA_LOSS]);if(!f)throw new g8("missing status",B[B.INTERNAL]);if("OK"!==f.code)throw new g8(f.detail,f.code,y);h.notifyComplete(),b.resolve(f),k.resolve(y||{})}).catch(t=>{let r;(r=t instanceof g8?t:t instanceof Error&&"AbortError"===t.name?new g8(t.message,B[B.CANCELLED]):new g8(t instanceof Error?t.message:""+t,B[B.INTERNAL])).methodName=e.n
2051ame,r.serviceName=e.service.typeName,m.rejectPending(r),h.notifyError(r),b.rejectPending(r),k.rejectPending(r)}),new fe(e,null!=(s=r.meta)?s:{},t,m.promise,h,b.promise,k.promise)}unary(e,t,r){var a,n,i,o,s;let l=null!=(a=r.format)?a:"text",c=null!=(n=r.fetch)?n:globalThis.fetch,d=null!=(i=r.fetchInit)?i:{},p=this.makeUrl(e,r),u=e.I.toBinary(t,r.binaryOptions),m=new g4,h,g=new g4,f,b=new g4,y,k=new g4;return c(p,Object.assign(Object.assign({},d),{method:"POST",headers:b9(new globalThis.Headers,l,r.timeout,r.meta),body:ye(u,l),signal:null!=(o=r.abort)?o:null})).then(e=>{let[t,r,a]=yt(e);if(m.resolve(a),null!=t&&t!==B.OK)throw new g8(null!=r?r:B[t],B[t],a);return null!=t&&(f={code:B[t],detail:null!=r?r:B[t]}),e}).then(t=>{if(!t.body)throw new g8("missing response body",B[B.INTERNAL]);return ya(t.body,t.headers.get("content-type"),(t,a)=>{switch(t){case C.DATA:if(h)throw new g8("unary call received 2nd message",B[B.DATA_LOSS]);h=e.O.fromBinary(a,r.binaryOptions);break;case C.TRAILER:let n,i;[n,i,y]=yr(a),f={code:B[n],detail:null!=i?i:B[n]}}})}).then(()=>{if(!y&&h)throw new g8("missing trailers",B[B.DATA_LOSS]);if(!f)throw new g8("missing status",B[B.INTERNAL]);if(!h&&"OK"===f.code)throw new g8("expected error status",B[B.DATA_LOSS]);if(!h||(g.resolve(h),"OK"!==f.code))throw new g8(f.detail,f.code,y);b.resolve(f),k.resolve(y||{})}).catch(t=>{let r;(r=t instanceof g8?t:t instanceof Error&&"AbortError"===t.name?new g8(t.message,B[B.CANCELLED]):new g8(t instanceof Error?t.message:""+t,B[B.INTERNAL])).methodName=e.n
2051ame,r.serviceName=e.service.typeName,m.rejectPending(r),g.rejectPending(r),b.rejectPending(r),k.rejectPending(r)}),new g9(e,null!=(s=r.meta)?s:{},t,m.promise,g.promise,b.promise,k.promise)}},yc=class{constructor(e,t){dI(this,"transport",void 0),this.transport=new yl({baseUrl:e,...t})}mergeOptions(e){return this.transport.mergeOptions(e)}unary(e,t,r){return this.transport.unary(e,t,r)}serverStreaming(e,t,r){return this.transport.serverStreaming(e,t,r)}clientStreaming(e,t){return this.transport.clientStreaming(e,t)}duplex(e,t){return this.transport.duplex(e,t)}},yd=class{constructor(e,t){dI(this,"_client",void 0),dI(this,"endpoint",void 0),dI(this,"module",""),dI(this,"transport",void 0),dI(this,"metadata",void 0),dI(this,"options",void 0),this.options=t,this.endpoint=e,this.transport=new yc(e,t)}setMetadata(e){return this.metadata=e,this.transport=new yc(this.endpoint,{...this.options,meta:this.metadata}),this._client=void 0,this}clearMetadata(){this.metadata=void 0,this.transport=new yc(this.endpoint,this.options),this._client=void 0}getTransport(){return this.transport}initClient(e){return this._client||(this._client=new e(this.transport)),this._client}getRpcOptions(){return{meta:this.metadata||{}}}retry(e,t=3,r=1e3){let a=async(n=1)=>{try{return await e()}catch(e){if(n>=t)throw e;return new Promise(e=>setTimeout(()=>e(a(n+1)),r*n))}};return a()}getABCICodeFromMessage(e){let t=/{key:"ABCICode"[ \t]+value:"(.*?)"}/g.exec(e);if(t&&!(t.length<2))return Number(t[1])}getCodespaceFromMessage(e){let t=/{key:"Codespace"[ \t]+value:"(.*?)"}/g.exec(e);if(t&&!(t.length<2))return t[1]}handleGrpcError(e,t){if(e instanceof g8){let r=e.message,a=this.getABCICodeFromMessage(r),n=this.getCodespaceFromMessage(r);if(a&&n)throw new eK(Error(r),{code:Number(e.code),context:t,contextModule:n,contextCode:a});throw new eX(Error(r),{code:Number(e.code),context:t,contextModule:this.module})}let r=(null==e?void 0:e.message)||"",a=this.getABCICodeFromMessage(r),n=this.getCodespaceFromMessage(r);if(a&&n)throw new eK(e,{code:em,context:t,contextModule:n,contextCode:a});throw new eX(e,{code:em,context:t,contextModule:this.module})}async executeGrpcCall(e,t){try{return await this.retry(async()=>await t(e,this.getRpcOptions()).response)}catch(r){let e=t.name||"UnknownMethod";this.handleGrpcError(r,e)}}},yp=new class extends cK{constructor(){super("google.protobuf.Duration",[{no:1,name:"seconds",kind:"scalar",T:3,L:0},{no:2,name:"nanos",kind:"scalar",T:5}])}internalJsonWrite(e,t){let r=ck.from(e.seconds).toNumber();if(r>315576e6||r<-315576e6)throw Error("Duration value out of range.");let a=e.seconds.toString();if(0===r&&e.nanos<0&&(a="-"+a),0!==e.nanos){let t=Math.abs(e.nanos).toString();"000000"===(t="0".repeat(9-t.length)+t).substring(3)?t=t.substring(0,3):"000"===t.substring(6)&&(t=t.substring(0,6)),a+="."+t}return a+"s"}internalJsonRead(e,t,r){if("string"!=typeof e)throw Error("Unable to parse Duration from JSON "+ca(e)+". Expected string.");let a=e.match(/^(-?)([0-9]+)(?:\.([0-9]+))?s/);if(null===a)throw Error("Unable to parse Duration from JSON string. Invalid format.");r||(r=this.create());let[,n,i,o]=a,s=ck.from(n+i);if(s.toNumber()>315576e6||-315576e6>s.toNumber())throw Error("Unable to parse Duration from JSON string. Value out of range.");if(r.seconds=s.toBigInt(),"string"==typeof o){let e=n+o+"0".repeat(9-o.length);r.nanos=parseInt(e)}return r}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.seconds=0n,t.nanos=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.seconds=e.int64().toBigInt();break;case 2:n.nanos=e.int32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.seconds&&t.tag(1,p.Varint).int64(e.seconds),0!==e.nanos&&t.tag(2,p.Varint).int32(e.nanos);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yu=new class extends cK{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3,L:0},{no:2,name:"nanos",kind:"scalar",T:5}])}
2051now(){let e=this.create(),t=Date.now();return e.seconds=ck.from(Math.floor(t/1e3)).toBigInt(),e.nanos=t%1e3*1e6,e}toDate(e){return new Date(1e3*ck.from(e.seconds).toNumber()+Math.ceil(e.nanos/1e6))}fromDate(e){let t=this.create(),r=e.getTime();return t.seconds=ck.from(Math.floor(r/1e3)).toBigInt(),t.nanos=(r%1e3+1e3*(r<0&&r%1e3!=0))*1e6,t}internalJsonWrite(e,t){let r=1e3*ck.from(e.seconds).toNumber();if(r<Date.parse("0001-01-01T00:00:00Z")||r>Date.parse("9999-12-31T23:59:59Z"))throw Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let a="Z";if(e.nanos>0){let t=(e.nanos+1e9).toString().substring(1);a="000000"===t.substring(3)?"."+t.substring(0,3)+"Z":"000"===t.substring(6)?"."+t.substring(0,6)+"Z":"."+t+"Z"}return new Date(r).toISOString().replace(".000Z",a)}internalJsonRead(e,t,r){if("string"!=typeof e)throw Error("Unable to parse Timestamp from JSON "+ca(e)+".");let a=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!a)throw Error("Unable to parse Timestamp from JSON. Invalid format.");let n=Date.parse(a[1]+"-"+a[2]+"-"+a[3]+"T"+a[4]+":"+a[5]+":"+a[6]+(a[8]?a[8]:"Z"));if(Number.isNaN(n))throw Error("Unable to parse Timestamp from JSON. Invalid value.");if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return r||(r=this.create()),r.seconds=ck.from(n/1e3).toBigInt(),r.nanos=0,a[7]&&(r.nanos=parseInt("1"+a[7]+"0".repeat(9-a[7].length))-1e9),r}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.seconds=0n,t.nanos=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.seconds=e.int64().toBigInt();break;case 2:n.nanos=e.int32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.seconds&&t.tag(1,p.Varint).int64(e.seconds),0!==e.nanos&&t.tag(2,p.Varint).int32(e.nanos);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},ym=new class extends cK{constructor(){super("cometbft.crypto.v1.PublicKey",[{no:1,name:"ed25519",kind:"scalar",oneof:"sum",T:12},{no:2,name:"secp256k1",kind:"scalar",jsonName:"secp256k1",oneof:"sum",T:12},{no:3,name:"bls12381",kind:"scalar",oneof:"sum",T:12}],{"gogoproto.equal":!0,"gogoproto.compare":!0})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sum={oneofKind:void 0},void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sum={oneofKind:"ed25519",ed25519:e.bytes()};break;case 2:n.sum={oneofKind:"secp256K1",secp256K1:e.bytes()};break;case 3:n.sum={oneofKind:"bls12381",bls12381:e.bytes()};break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){"ed25519"===e.sum.oneofKind&&t.tag(1,p.LengthDelimited).bytes(e.sum.ed25519),"secp256K1"===e.sum.oneofKind&&t.tag(2,p.LengthDelimited).bytes(e.sum.secp256K1),"bls12381"===e.sum.oneofKind&&t.tag(3,p.LengthDelimited).bytes(e.sum.bls12381);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yh=(e=>(e[e.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",e[e.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",e[e.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",e[e.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",e))(yh||{}),yg=new class extends cK{constructor(){super("cometbft.types.v1.ValidatorSet",[{no:1,name:"validators",kind:"message",repeat:2,T:()=>yf},{no:2,name:"proposer",kind:"message",T:()=>yf},{no:3,name:"total_voting_power",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.validators=[],t.totalVotingPower=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.validators.push(yf.internalBinaryRead(e,e.uint32(),r));break;case 2:n.proposer=yf.internalBinaryRead(e,e.uint32(),r,n.proposer);break;case 3:n.totalVotingPower=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.validators.length;a++)yf.internalBinaryWrite(e.validators[a],t.tag(1,p.LengthDelimited).fork(),r).join();e.proposer&&yf.internalBinaryWrite(e.proposer,t.tag(2,p.LengthDelimited).fork(),r).join(),0n!==e.totalVotingPower&&t.tag(3,p.Varint).int64(e.totalVotingPower);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yf=new class extends cK{constructor(){super("cometbft.types.v1.Validator",[{no:1,name:"address",kind:"scalar",T:12},{no:2,name:"pub_key",kind:"message",T:()=>ym},{no:3,name:"voting_power",kind:"scalar",T:3,L:0},{no:4,name:"proposer_priority",kind:"scalar",T:3,L:0},{no:5,name:"pub_key_bytes",kind:"scalar",T:12},{no:6,name:"pub_key_type",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.address=new Uint8Array(0),t.votingPower=0n,t.proposerPriority=0n,t.pubKeyBytes=new Uint8Array(0),t.pubKeyType="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.address=e.bytes();break;case 2:n.pubKey=ym.internalBinaryRead(e,e.uint32(),r,n.pubKey);break;case 3:n.votingPower=e.int64().toBigInt();break;case 4:n.proposerPriority=e.int64().toBigInt();break;case 5:n.pubKeyBytes=e.bytes();break;case 6:n.pubKeyType=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.address.length&&t.tag(1,p.LengthDelimited).bytes(e.address),e.pubKey&&ym.internalBinaryWrite(e.pubKey,t.tag(2,p.LengthDelimited).fork(),r).join(),0n!==e.votingPower&&t.tag(3,p.Varint).int64(e.votingPower),0n!==e.proposerPriority&&t.tag(4,p.Varint).int64(e.proposerPriority),e.pubKeyBytes.length&&t.tag(5,p.LengthDelimited).bytes(e.pubKeyBytes),""!==e.pubKeyType&&t.tag(6,p.LengthDelimited).string(e.pubKeyType);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cometbft.types.v1.SimpleValidator",[{no:1,name:"pub_key",kind:"message",T:()=>ym},{no:2,name:"voting_power",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.votingPower=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.pubKey=ym.internalBinaryRead(e,e.uint32(),r,n.pubKey);break;case 2:n.votingPower=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.pubKey&&ym.internalBinaryWrite(e.pubKey,t.tag(1,p.LengthDelimited).fork(),r).join(),0n!==e.votingPower&&t.tag(2,p.Varint).int64(e.votingPower);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cometbft.version.v1.App",[{no:1,name:"protocol",kind:"scalar",T:4,L:0},{no:2,name:"software",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.protocol=0n,t.software="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.protocol=e.uint64().toBigInt();break;case 2:n.software=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.protocol&&t.tag(1,p.Varint).uint64(e.protocol),""!==e.software&&t.tag(2,p.LengthDelimited).string(e.software);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var yb=new class extends cK{constructor(){super("cometbft.version.v1.Consensus",[{no:1,name:"block",kind:"scalar",T:4,L:0},{no:2,name:"app",kind:"scalar",T:4,L:0}],{"gogoproto.equal":!0})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.block=0n,t.app=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.block=e.uint64().toBigInt();break;case 2:n.app=e.uint64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.block&&t.tag(1,p.Varint).uint64(e.block),0n!==e.app&&t.tag(2,p.Varint).uint64(e.app);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yy=new class extends cK{constructor(){super("cometbft.crypto.v1.Proof",[{no:1,name:"total",kind:"scalar",T:3,L:0},{no:2,name:"index",kind:"scalar",T:3,L:0},{no:3,name:"leaf_hash",kind:"scalar",T:12},{no:4,name:"aunts",kind:"scalar",repeat:2,T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.total=0n,t.index=0n,t.leafHash=new Uint8Array(0),t.aunts=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.total=e.int64().toBigInt();break;case 2:n.index=e.int64().toBigInt();break;case 3:n.leafHash=e.bytes();break;case 4:n.aunts.push(e.bytes());break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.total&&t.tag(1,p.Varint).int64(e.total),0n!==e.index&&t.tag(2,p.Varint).int64(e.index),e.leafHash.length&&t.tag(3,p.LengthDelimited).bytes(e.leafHash);for(let r=0;r<e.aunts.length;r++)t.tag(4,p.LengthDelimited).bytes(e.aunts[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cometbft.crypto.v1.ValueOp",[{no:1,name:"key",kind:"scalar",T:12},{no:2,name:"proof",kind:"message",T:()=>yy}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.key=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.key=e.bytes();break;case 2:n.proof=yy.internalBinaryRead(e,e.uint32(),r,n.proof);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.key.length&&t.tag(1,p.LengthDelimited).bytes(e.key),e.proof&&yy.internalBinaryWrite(e.proof,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cometbft.crypto.v1.DominoOp",[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"input",kind:"scalar",T:9},{no:3,name:"output",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.key="",t.input="",t.output="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.key=e.string();break;case 2:n.input=e.string();break;case 3:n.output=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.key&&t.tag(1,p.LengthDelimited).string(e.key),""!==e.input&&t.tag(2,p.LengthDelimited).string(e.input),""!==e.output&&t.tag(3,p.LengthDelimited).string(e.output);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var yk=new class extends cK{constructor(){super("cometbft.crypto.v1.ProofOp",[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:12},{no:3,name:"data",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.type="",t.key=new Uint8Array(0),t.data=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.type=e.string();break;case 2:n.key=e.bytes();break;case 3:n.data=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.type&&t.tag(1,p.LengthDelimited).string(e.type),e.key.length&&t.tag(2,p.LengthDelimited).bytes(e.key),e.data.length&&t.tag(3,p.LengthDelimited).bytes(e.data);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yx=new class extends cK{constructor(){super("cometbft.crypto.v1.ProofOps",[{no:1,name:"ops",kind:"message",repeat:2,T:()=>yk,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.ops=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.ops.push(yk.internalBinaryRead(e,e.uint32(),r));else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.ops.length;a++)yk.internalBinaryWrite(e.ops[a],t.tag(1,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yw=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.PREVOTE=1]="PREVOTE",e[e.PRECOMMIT=2]="PRECOMMIT",e[e.PROPOSAL=32]="PROPOSAL",e))(yw||{}),yv=new class extends cK{constructor(){super("cometbft.types.v1.PartSetHeader",[{no:1,name:"total",kind:"scalar",T:13},{no:2,name:"hash",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.total=0,t.hash=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.total=e.uint32();break;case 2:n.hash=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.total&&t.tag(1,p.Varint).uint32(e.total),e.hash.length&&t.tag(2,p.LengthDelimited).bytes(e.hash);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cometbft.types.v1.Part",[{no:1,name:"index",kind:"scalar",T:13},{no:2,name:"bytes",kind:"scalar",T:12},{no:3,name:"proof",kind:"message",T:()=>yy,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.index=0,t.bytes=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.index=e.uint32();break;case 2:n.bytes=e.bytes();break;case 3:n.proof=yy.internalBinaryRead(e,e.uint32(),r,n.proof);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.index&&t.tag(1,p.Varint).uint32(e.index),e.bytes.length&&t.tag(2,p.LengthDelimited).bytes(e.bytes),e.proof&&yy.internalBinaryWrite(e.proof,t.tag(3,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var yT=new class extends cK{constructor(){super("cometbft.types.v1.BlockID",[{no:1,name:"hash",kind:"scalar",T:12},{no:2,name:"part_set_header",kind:"message",T:()=>yv,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.hash=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.hash=e.bytes();break;case 2:n.partSetHeader=yv.internalBinaryRead(e,e.uint32(),r,n.partSetHeader);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.hash.length&&t.tag(1,p.LengthDelimited).bytes(e.hash),e.partSetHeader&&yv.internalBinaryWrite(e.partSetHeader,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yE=new class extends cK{constructor(){super("cometbft.types.v1.Header",[{no:1,name:"version",kind:"message",T:()=>yb,options:{"gogoproto.nullable":!1}},{no:2,name:"chain_id",kind:"scalar",T:9,options:{"gogoproto.customname":"ChainID"}},{no:3,name:"height",kind:"scalar",T:3,L:0},{no:4,name:"time",kind:"message",T:()=>yu,options:{"gogoproto.nullable":!1,"gogoproto.stdtime":!0}},{no:5,name:"last_block_id",kind:"message",T:()=>yT,options:{"gogoproto.nullable":!1}},{no:6,name:"last_commit_hash",kind:"scalar",T:12},{no:7,name:"data_hash",kind:"scalar",T:12},{no:8,name:"validators_hash",kind:"scalar",T:12},{no:9,name:"next_validators_hash",kind:"scalar",T:12},{no:10,name:"consensus_hash",kind:"scalar",T:12},{no:11,name:"app_hash",kind:"scalar",T:12},{no:12,name:"last_results_hash",kind:"scalar",T:12},{no:13,name:"evidence_hash",kind:"scalar",T:12},{no:14,name:"proposer_address",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.chainId="",t.height=0n,t.lastCommitHash=new Uint8Array(0),t.dataHash=new Uint8Array(0),t.validatorsHash=new Uint8Array(0),t.nextValidatorsHash=new Uint8Array(0),t.consensusHash=new Uint8Array(0),t.appHash=new Uint8Array(0),t.lastResultsHash=new Uint8Array(0),t.evidenceHash=new Uint8Array(0),t.proposerAddress=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.version=yb.internalBinaryRead(e,e.uint32(),r,n.version);break;case 2:n.chainId=e.string();break;case 3:n.height=e.int64().toBigInt();break;case 4:n.time=yu.internalBinaryRead(e,e.uint32(),r,n.time);break;case 5:n.lastBlockId=yT.internalBinaryRead(e,e.uint32(),r,n.lastBlockId);break;case 6:n.lastCommitHash=e.bytes();break;case 7:n.dataHash=e.bytes();break;case 8:n.validatorsHash=e.bytes();break;case 9:n.nextValidatorsHash=e.bytes();break;case 10:n.consensusHash=e.bytes();break;case 11:n.appHash=e.bytes();break;case 12:n.lastResultsHash=e.bytes();break;case 13:n.evidenceHash=e.bytes();break;case 14:n.proposerAddress=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.version&&yb.internalBinaryWrite(e.version,t.tag(1,p.LengthDelimited).fork(),r).join(),""!==e.chainId&&t.tag(2,p.LengthDelimited).string(e.chainId),0n!==e.height&&t.tag(3,p.Varint).int64(e.height),e.time&&yu.internalBinaryWrite(e.time,t.tag(4,p.LengthDelimited).fork(),r).join(),e.lastBlockId&&yT.internalBinaryWrite(e.lastBlockId,t.tag(5,p.LengthDelimited).fork(),r).join(),e.lastCommitHash.length&&t.tag(6,p.LengthDelimited).bytes(e.lastCommitHash),e.dataHash.length&&t.tag(7,p.LengthDelimited).bytes(e.dataHash),e.validatorsHash.length&&t.tag(8,p.LengthDelimited).bytes(e.validatorsHash),e.nextValidatorsHash.length&&t.tag(9,p.LengthDelimited).bytes(e.nextValidatorsHash),e.consensusHash.length&&t.tag(10,p.LengthDelimited).bytes(e.consensusHash),e.appHash.length&&t.tag(11,p.LengthDelimited).bytes(e.appHash),e.lastResultsHash.length&&t.tag(12,p.LengthDelimited).bytes(e.lastResultsHash),e.evidenceHash.length&&t.tag(13,p.LengthDelimited).bytes(e.evidenceHash),e.proposerAddress.length&&t.tag(14,p.LengthDelimited).bytes(e.proposerAddress);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yB=new class extends cK{constructor(){super("cometbft.types.v1.Data",[{no:1,name:"txs",kind:"scalar",repeat:2,T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.txs=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.txs.push(e.bytes());else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let r=0;r<e.txs.length;r++)t.tag(1,p.LengthDelimited).bytes(e.txs[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yC=new class extends cK{constructor(){super("cometbft.types.v1.Vote",[{no:1,name:"type",kind:"enum",T:()=>["cometbft.types.v1.SignedMsgType",yw,"SIGNED_MSG_TYPE_"]},{no:2,name:"height",kind:"scalar",T:3,L:0},{no:3,name:"round",kind:"scalar",T:5},{no:4,name:"block_id",kind:"message",T:()=>yT,options:{"gogoproto.nullable":!1,"gogoproto.customname":"BlockID"}},{no:5,name:"timestamp",kind:"message",T:()=>yu,options:{"gogoproto.nullable":!1,"gogoproto.stdtime":!0}},{no:6,name:"validator_address",kind:"scalar",T:12},{no:7,name:"validator_index",kind:"scalar",T:5},{no:8,name:"signature",kind:"scalar",T:12},{no:9,name:"extension",kind:"scalar",T:12},{no:10,name:"extension_signature",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.type=0,t.height=0n,t.round=0,t.validatorAddress=new Uint8Array(0),t.validatorIndex=0,t.signature=new Uint8Array(0),t.extension=new Uint8Array(0),t.extensionSignature=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.type=e.int32();break;case 2:n.height=e.int64().toBigInt();break;case 3:n.round=e.int32();break;case 4:n.blockId=yT.internalBinaryRead(e,e.uint32(),r,n.blockId);break;case 5:n.timestamp=yu.internalBinaryRead(e,e.uint32(),r,n.timestamp);break;case 6:n.validatorAddress=e.bytes();break;case 7:n.validatorIndex=e.int32();break;case 8:n.signature=e.bytes();break;case 9:n.extension=e.bytes();break;case 10:n.extensionSignature=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.type&&t.tag(1,p.Varint).int32(e.type),0n!==e.height&&t.tag(2,p.Varint).int64(e.height),0!==e.round&&t.tag(3,p.Varint).int32(e.round),e.blockId&&yT.internalBinaryWrite(e.blockId,t.tag(4,p.LengthDelimited).fork(),r).join(),e.timestamp&&yu.internalBinaryWrite(e.timestamp,t.tag(5,p.LengthDelimited).fork(),r).join(),e.validatorAddress.length&&t.tag(6,p.LengthDelimited).bytes(e.validatorAddress),0!==e.validatorIndex&&t.tag(7,p.Varint).int32(e.validatorIndex),e.signature.length&&t.tag(8,p.LengthDelimited).bytes(e.signature),e.extension.length&&t.tag(9,p.LengthDelimited).bytes(e.extension),e.extensionSignature.length&&t.tag(10,p.LengthDelimited).bytes(e.extensionSignature);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yU=new class extends cK{constructor(){super("cometbft.types.v1.Commit",[{no:1,name:"height",kind:"scalar",T:3,L:0},{no:2,name:"round",kind:"scalar",T:5},{no:3,name:"block_id",kind:"message",T:()=>yT,options:{"gogoproto.nullable":!1,"gogoproto.customname":"BlockID"}},{no:4,name:"signatures",kind:"message",repeat:2,T:()=>yI,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.height=0n,t.round=0,t.signatures=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.height=e.int64().toBigInt();break;case 2:n.round=e.int32();break;case 3:n.blockId=yT.internalBinaryRead(e,e.uint32(),r,n.blockId);break;case 4:n.signatures.push(yI.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.height&&t.tag(1,p.Varint).int64(e.height),0!==e.round&&t.tag(2,p.Varint).int32(e.round),e.blockId&&yT.internalBinaryWrite(e.blockId,t.tag(3,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.signatures.length;a++)yI.internalBinaryWrite(e.signatures[a],t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yI=new class extends cK{constructor(){super("cometbft.types.v1.CommitSig",[{no:1,name:"block_id_flag",kind:"enum",T:()=>["cometbft.types.v1.BlockIDFlag",yh]},{no:2,name:"validator_address",kind:"scalar",T:12},{no:3,name:"timestamp",kind:"message",T:()=>yu,options:{"gogoproto.nullable":!1,"gogoproto.stdtime":!0}},{no:4,name:"signature",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.blockIdFlag=0,t.validatorAddress=new Uint8Array(0),t.signature=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.blockIdFlag=e.int32();break;case 2:n.validatorAddress=e.bytes();break;case 3:n.timestamp=yu.internalBinaryRead(e,e.uint32(),r,n.timestamp);break;case 4:n.signature=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.blockIdFlag&&t.tag(1,p.Varint).int32(e.blockIdFlag),e.validatorAddress.length&&t.tag(2,p.LengthDelimited).bytes(e.validatorAddress),e.timestamp&&yu.internalBinaryWrite(e.timestamp,t.tag(3,p.LengthDelimited).fork(),r).join(),e.signature.length&&t.tag(4,p.LengthDelimited).bytes(e.signature);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cometbft.types.v1.ExtendedCommit",[{no:1,name:"height",kind:"scalar",T:3,L:0},{no:2,name:"round",kind:"scalar",T:5},{no:3,name:"block_id",kind:"message",T:()=>yT,options:{"gogoproto.nullable":!1,"gogoproto.customname":"BlockID"}},{no:4,name:"extended_signatures",kind:"message",repeat:2,T:()=>yN,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.height=0n,t.round=0,t.extendedSignatures=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.height=e.int64().toBigInt();break;case 2:n.round=e.int32();break;case 3:n.blockId=yT.internalBinaryRead(e,e.uint32(),r,n.blockId);break;case 4:n.extendedSignatures.push(yN.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.height&&t.tag(1,p.Varint).int64(e.height),0!==e.round&&t.tag(2,p.Varint).int32(e.round),e.blockId&&yT.internalBinaryWrite(e.blockId,t.tag(3,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.extendedSignatures.length;a++)yN.internalBinaryWrite(e.extendedSignatures[a],t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var yN=new class extends cK{constructor(){super("cometbft.types.v1.ExtendedCommitSig",[{no:1,name:"block_id_flag",kind:"enum",T:()=>["cometbft.types.v1.BlockIDFlag",yh]},{no:2,name:"validator_address",kind:"scalar",T:12},{no:3,name:"timestamp",kind:"message",T:()=>yu,options:{"gogoproto.nullable":!1,"gogoproto.stdtime":!0}},{no:4,name:"signature",kind:"scalar",T:12},{no:5,name:"extension",kind:"scalar",T:12},{no:6,name:"extension_signature",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.blockIdFlag=0,t.validatorAddress=new Uint8Array(0),t.signature=new Uint8Array(0),t.extension=new Uint8Array(0),t.extensionSignature=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.blockIdFlag=e.int32();break;case 2:n.validatorAddress=e.bytes();break;case 3:n.timestamp=yu.internalBinaryRead(e,e.uint32(),r,n.timestamp);break;case 4:n.signature=e.bytes();break;case 5:n.extension=e.bytes();break;case 6:n.extensionSignature=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.blockIdFlag&&t.tag(1,p.Varint).int32(e.blockIdFlag),e.validatorAddress.length&&t.tag(2,p.LengthDelimited).bytes(e.validatorAddress),e.timestamp&&yu.internalBinaryWrite(e.timestamp,t.tag(3,p.LengthDelimited).fork(),r).join(),e.signature.length&&t.tag(4,p.LengthDelimited).bytes(e.signature),e.extension.length&&t.tag(5,p.LengthDelimited).bytes(e.extension),e.extensionSignature.length&&t.tag(6,p.LengthDelimited).bytes(e.extensionSignature);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cometbft.types.v1.Proposal",[{no:1,name:"type",kind:"enum",T:()=>["cometbft.types.v1.SignedMsgType",yw,"SIGNED_MSG_TYPE_"]},{no:2,name:"height",kind:"scalar",T:3,L:0},{no:3,name:"round",kind:"scalar",T:5},{no:4,name:"pol_round",kind:"scalar",T:5},{no:5,name:"block_id",kind:"message",T:()=>yT,options:{"gogoproto.nullable":!1,"gogoproto.customname":"BlockID"}},{no:6,name:"timestamp",kind:"message",T:()=>yu,options:{"gogoproto.nullable":!1,"gogoproto.stdtime":!0}},{no:7,name:"signature",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.type=0,t.height=0n,t.round=0,t.polRound=0,t.signature=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.type=e.int32();break;case 2:n.height=e.int64().toBigInt();break;case 3:n.round=e.int32();break;case 4:n.polRound=e.int32();break;case 5:n.blockId=yT.internalBinaryRead(e,e.uint32(),r,n.blockId);break;case 6:n.timestamp=yu.internalBinaryRead(e,e.uint32(),r,n.timestamp);break;case 7:n.signature=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.type&&t.tag(1,p.Varint).int32(e.type),0n!==e.height&&t.tag(2,p.Varint).int64(e.height),0!==e.round&&t.tag(3,p.Varint).int32(e.round),0!==e.polRound&&t.tag(4,p.Varint).int32(e.polRound),e.blockId&&yT.internalBinaryWrite(e.blockId,t.tag(5,p.LengthDelimited).fork(),r).join(),e.timestamp&&yu.internalBinaryWrite(e.timestamp,t.tag(6,p.LengthDelimited).fork(),r).join(),e.signature.length&&t.tag(7,p.LengthDelimited).bytes(e.signature);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var yR=new class extends cK{constructor(){super("cometbft.types.v1.SignedHeader",[{no:1,name:"header",kind:"message",T:()=>yE},{no:2,name:"commit",kind:"message",T:()=>yU}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.header=yE.internalBinaryRead(e,e.uint32(),r,n.header);break;case 2:n.commit=yU.internalBinaryRead(e,e.uint32(),r,n.commit);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.header&&yE.internalBinaryWrite(e.header,t.tag(1,p.LengthDelimited).fork(),r).join(),e.commit&&yU.internalBinaryWrite(e.commit,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yS=new class extends cK{constructor(){super("cometbft.types.v1.LightBlock",[{no:1,name:"signed_header",kind:"message",T:()=>yR},{no:2,name:"validator_set",kind:"message",T:()=>yg}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.signedHeader=yR.internalBinaryRead(e,e.uint32(),r,n.signedHeader);break;case 2:n.validatorSet=yg.internalBinaryRead(e,e.uint32(),r,n.validatorSet);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.signedHeader&&yR.internalBinaryWrite(e.signedHeader,t.tag(1,p.LengthDelimited).fork(),r).join(),e.validatorSet&&yg.internalBinaryWrite(e.validatorSet,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cometbft.types.v1.BlockMeta",[{no:1,name:"block_id",kind:"message",T:()=>yT,options:{"gogoproto.nullable":!1,"gogoproto.customname":"BlockID"}},{no:2,name:"block_size",kind:"scalar",T:3,L:0},{no:3,name:"header",kind:"message",T:()=>yE,options:{"gogoproto.nullable":!1}},{no:4,name:"num_txs",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.blockSize=0n,t.numTxs=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.blockId=yT.internalBinaryRead(e,e.uint32(),r,n.blockId);break;case 2:n.blockSize=e.int64().toBigInt();break;case 3:n.header=yE.internalBinaryRead(e,e.uint32(),r,n.header);break;case 4:n.numTxs=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.blockId&&yT.internalBinaryWrite(e.blockId,t.tag(1,p.LengthDelimited).fork(),r).join(),0n!==e.blockSize&&t.tag(2,p.Varint).int64(e.blockSize),e.header&&yE.internalBinaryWrite(e.header,t.tag(3,p.LengthDelimited).fork(),r).join(),0n!==e.numTxs&&t.tag(4,p.Varint).int64(e.numTxs);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cometbft.types.v1.TxProof",[{no:1,name:"root_hash",kind:"scalar",T:12},{no:2,name:"data",kind:"scalar",T:12},{no:3,name:"proof",kind:"message",T:()=>yy}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.rootHash=new Uint8Array(0),t.data=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.rootHash=e.bytes();break;case 2:n.data=e.bytes();break;case 3:n.proof=yy.internalBinaryRead(e,e.uint32(),r,n.proof);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.rootHash.length&&t.tag(1,p.LengthDelimited).bytes(e.rootHash),e.data.length&&t.tag(2,p.LengthDelimited).bytes(e.data),e.proof&&yy.internalBinaryWrite(e.proof,t.tag(3,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var yA=new class extends cK{constructor(){super("cometbft.types.v1.Evidence",[{no:1,name:"duplicate_vote_evidence",kind:"message",oneof:"sum",T:()=>yP},{no:2,name:"light_client_attack_evidence",kind:"message",oneof:"sum",T:()=>yD}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.sum={oneofKind:void 0},void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.sum={oneofKind:"duplicateVoteEvidence",duplicateVoteEvidence:yP.internalBinaryRead(e,e.uint32(),r,n.sum.duplicateVoteEvidence)};break;case 2:n.sum={oneofKind:"lightClientAttackEvidence",lightClientAttackEvidence:yD.internalBinaryRead(e,e.uint32(),r,n.sum.lightClientAttackEvidence)};break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}
2051internalBinaryWrite(e,t,r){"duplicateVoteEvidence"===e.sum.oneofKind&&yP.internalBinaryWrite(e.sum.duplicateVoteEvidence,t.tag(1,p.LengthDelimited).fork(),r).join(),"lightClientAttackEvidence"===e.sum.oneofKind&&yD.internalBinaryWrite(e.sum.lightClientAttackEvidence,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yP=new class extends cK{constructor(){super("cometbft.types.v1.DuplicateVoteEvidence",[{no:1,name:"vote_a",kind:"message",T:()=>yC},{no:2,name:"vote_b",kind:"message",T:()=>yC},{no:3,name:"total_voting_power",kind:"scalar",T:3,L:0},{no:4,name:"validator_power",kind:"scalar",T:3,L:0},{no:5,name:"timestamp",kind:"message",T:()=>yu,options:{"gogoproto.nullable":!1,"gogoproto.stdtime":!0}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.totalVotingPower=0n,t.validatorPower=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.voteA=yC.internalBinaryRead(e,e.uint32(),r,n.voteA);break;case 2:n.voteB=yC.internalBinaryRead(e,e.uint32(),r,n.voteB);break;case 3:n.totalVotingPower=e.int64().toBigInt();break;case 4:n.validatorPower=e.int64().toBigInt();break;case 5:n.timestamp=yu.internalBinaryRead(e,e.uint32(),r,n.timestamp);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.voteA&&yC.internalBinaryWrite(e.voteA,t.tag(1,p.LengthDelimited).fork(),r).join(),e.voteB&&yC.internalBinaryWrite(e.voteB,t.tag(2,p.LengthDelimited).fork(),r).join(),0n!==e.totalVotingPower&&t.tag(3,p.Varint).int64(e.totalVotingPower),0n!==e.validatorPower&&t.tag(4,p.Varint).int64(e.validatorPower),e.timestamp&&yu.internalBinaryWrite(e.timestamp,t.tag(5,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yD=new class extends cK{constructor(){super("cometbft.types.v1.LightClientAttackEvidence",[{no:1,name:"conflicting_block",kind:"message",T:()=>yS},{no:2,name:"common_height",kind:"scalar",T:3,L:0},{no:3,name:"byzantine_validators",kind:"message",repeat:2,T:()=>yf},{no:4,name:"total_voting_power",kind:"scalar",T:3,L:0},{no:5,name:"timestamp",kind:"message",T:()=>yu,options:{"gogoproto.nullable":!1,"gogoproto.stdtime":!0}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.commonHeight=0n,t.byzantineValidators=[],t.totalVotingPower=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.conflictingBlock=yS.internalBinaryRead(e,e.uint32(),r,n.conflictingBlock);break;case 2:n.commonHeight=e.int64().toBigInt();break;case 3:n.byzantineValidators.push(yf.internalBinaryRead(e,e.uint32(),r));break;case 4:n.totalVotingPower=e.int64().toBigInt();break;case 5:n.timestamp=yu.internalBinaryRead(e,e.uint32(),r,n.timestamp);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.conflictingBlock&&yS.internalBinaryWrite(e.conflictingBlock,t.tag(1,p.LengthDelimited).fork(),r).join(),0n!==e.commonHeight&&t.tag(2,p.Varint).int64(e.commonHeight);for(let a=0;a<e.byzantineValidators.length;a++)yf.internalBinaryWrite(e.byzantineValidators[a],t.tag(3,p.LengthDelimited).fork(),r).join();0n!==e.totalVotingPower&&t.tag(4,p.Varint).int64(e.totalVotingPower),e.timestamp&&yu.internalBinaryWrite(e.timestamp,t.tag(5,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yL=new class extends cK{constructor(){super("cometbft.types.v1.EvidenceList",[{no:1,name:"evidence",kind:"message",repeat:2,T:()=>yA,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.evidence=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();if(1===t)n.evidence.push(yA.internalBinaryRead(e,e.uint32(),r));else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.evidence.length;a++)yA.internalBinaryWrite(e.evidence[a],t.tag(1,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yO=new class extends cK{constructor(){super("cometbft.types.v1.Block",[{no:1,name:"header",kind:"message",T:()=>yE,options:{"gogoproto.nullable":!1}},{no:2,name:"data",kind:"message",T:()=>yB,options:{"gogoproto.nullable":!1}},{no:3,name:"evidence",kind:"message",T:()=>yL,options:{"gogoproto.nullable":!1}},{no:4,name:"last_commit",kind:"message",T:()=>yU}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.header=yE.internalBinaryRead(e,e.uint32(),r,n.header);break;case 2:n.data=yB.internalBinaryRead(e,e.uint32(),r,n.data);break;case 3:n.evidence=yL.internalBinaryRead(e,e.uint32(),r,n.evidence);break;case 4:n.lastCommit=yU.internalBinaryRead(e,e.uint32(),r,n.lastCommit);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.header&&yE.internalBinaryWrite(e.header,t.tag(1,p.LengthDelimited).fork(),r).join(),e.data&&yB.internalBinaryWrite(e.data,t.tag(2,p.LengthDelimited).fork(),r).join(),e.evidence&&yL.internalBinaryWrite(e.evidence,t.tag(3,p.LengthDelimited).fork(),r).join(),e.lastCommit&&yU.internalBinaryWrite(e.lastCommit,t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(e,t){return this.refJsonWriter.scalar(2,e.value,"value",!1,!0)}internalJsonRead(e,t,r){return r||(r=this.create()),r.value=this.refJsonReader.scalar(e,1,void 0,"value"),r}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.value=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.value=e.double();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.value&&t.tag(1,p.Bit64).double(e.value);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("google.protobuf.FloatValue",[{no:1,name:"value",kind:"scalar",T:2}])}internalJsonWrite(e,t){return this.refJsonWriter.scalar(1,e.value,"value",!1,!0)}internalJsonRead(e,t,r){return r||(r=this.create()),r.value=this.refJsonReader.scalar(e,1,void 0,"value"),r}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.value=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.value=e.float();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.value&&t.tag(1,p.Bit32).float(e.value);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var yF=new class extends cK{constructor(){super("google.protobuf.Int64Value",[{no:1,name:"value",kind:"scalar",T:3,L:0}])}internalJsonWrite(e,t){return this.refJsonWriter.scalar(m.INT64,e.value,"value",!1,!0)}internalJsonRead(e,t,r){return r||(r=this.create()),r.value=this.refJsonReader.scalar(e,m.INT64,h.BIGINT,"value"),r}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.value=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();if(1===t)n.value=e.int64().toBigInt();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.value&&t.tag(1,p.Varint).int64(e.value);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("google.protobuf.UInt64Value",[{no:1,name:"value",kind:"scalar",T:4,L:0}])}internalJsonWrite(e,t){return this.refJsonWriter.scalar(m.UINT64,e.value,"value",!1,!0)}internalJsonRead(e,t,r){return r||(r=this.create()),r.value=this.refJsonReader.scalar(e,m.UINT64,h.BIGINT,"value"),r}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.value=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.value=e.uint64().toBigInt();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.value&&t.tag(1,p.Varint).uint64(e.value);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("google.protobuf.Int32Value",[{no:1,name:"value",kind:"scalar",T:5}])}internalJsonWrite(e,t){return this.refJsonWriter.scalar(5,e.value,"value",!1,!0)}internalJsonRead(e,t,r){return r||(r=this.create()),r.value=this.refJsonReader.scalar(e,5,void 0,"value"),r}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.value=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.value=e.int32();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.value&&t.tag(1,p.Varint).int32(e.value);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("google.protobuf.UInt32Value",[{no:1,name:"value",kind:"scalar",T:13}])}internalJsonWrite(e,t){return this.refJsonWriter.scalar(13,e.value,"value",!1,!0)}internalJsonRead(e,t,r){return r||(r=this.create()),r.value=this.refJsonReader.scalar(e,13,void 0,"value"),r}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.value=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.value=e.uint32();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.value&&t.tag(1,p.Varint).uint32(e.value);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("google.protobuf.BoolValue",[{no:1,name:"value",kind:"scalar",T:8}])}internalJsonWrite(e,t){return e.value}internalJsonRead(e,t,r){return r||(r=this.create()),r.value=this.refJsonReader.scalar(e,8,void 0,"value"),r}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.value=!1,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.value=e.bool();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){!1!==e.value&&t.tag(1,p.Varint).bool(e.value);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("google.protobuf.StringValue",[{no:1,name:"value",kind:"scalar",T:9}])}internalJsonWrite(e,t){return e.value}internalJsonRead(e,t,r){return r||(r=this.create()),r.value=this.refJsonReader.scalar(e,9,void 0,"value"),r}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.value="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();if(1===t)n.value=e.string();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.value&&t.tag(1,p.LengthDelimited).string(e.value);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("google.protobuf.BytesValue",[{no:1,name:"value",kind:"scalar",T:12}])}internalJsonWrite(e,t){return this.refJsonWriter.scalar(12,e.value,"value",!1,!0)}internalJsonRead(e,t,r){return r||(r=this.create()),r.value=this.refJsonReader.scalar(e,12,void 0,"value"),r}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.value=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.value=e.bytes();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.value.length&&t.tag(1,p.LengthDelimited).bytes(e.value);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var y_=new class extends cK{constructor(){super("cometbft.types.v1.ConsensusParams",[{no:1,name:"block",kind:"message",T:()=>yM},{no:2,name:"evidence",kind:"message",T:()=>yj},{no:3,name:"validator",kind:"message",T:()=>y$},{no:4,name:"version",kind:"message",T:()=>yW},{no:5,name:"abci",kind:"message",T:()=>yH},{no:6,name:"synchrony",kind:"message",T:()=>yz},{no:7,name:"feature",kind:"message",T:()=>yV}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.block=yM.internalBinaryRead(e,e.uint32(),r,n.block);break;case 2:n.evidence=yj.internalBinaryRead(e,e.uint32(),r,n.evidence);break;case 3:n.validator=y$.internalBinaryRead(e,e.uint32(),r,n.validator);break;case 4:n.version=yW.internalBinaryRead(e,e.uint32(),r,n.version);break;case 5:n.abci=yH.internalBinaryRead(e,e.uint32(),r,n.abci);break;case 6:n.synchrony=yz.internalBinaryRead(e,e.uint32(),r,n.synchrony);break;case 7:n.feature=yV.internalBinaryRead(e,e.uint32(),r,n.feature);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.block&&yM.internalBinaryWrite(e.block,t.tag(1,p.LengthDelimited).fork(),r).join(),e.evidence&&yj.internalBinaryWrite(e.evidence,t.tag(2,p.LengthDelimited).fork(),r).join(),e.validator&&y$.internalBinaryWrite(e.validator,t.tag(3,p.LengthDelimited).fork(),r).join(),e.version&&yW.internalBinaryWrite(e.version,t.tag(4,p.LengthDelimited).fork(),r).join(),e.abci&&yH.internalBinaryWrite(e.abci,t.tag(5,p.LengthDelimited).fork(),r).join(),e.synchrony&&yz.internalBinaryWrite(e.synchrony,t.tag(6,p.LengthDelimited).fork(),r).join(),e.feature&&yV.internalBinaryWrite(e.feature,t.tag(7,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yM=new class extends cK{constructor(){super("cometbft.types.v1.BlockParams",[{no:1,name:"max_bytes",kind:"scalar",T:3,L:0},{no:2,name:"max_gas",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.maxBytes=0n,t.maxGas=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.maxBytes=e.int64().toBigInt();break;case 2:n.maxGas=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.maxBytes&&t.tag(1,p.Varint).int64(e.maxBytes),0n!==e.maxGas&&t.tag(2,p.Varint).int64(e.maxGas);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yj=new class extends cK{constructor(){super("cometbft.types.v1.EvidenceParams",[{no:1,name:"max_age_num_blocks",kind:"scalar",T:3,L:0},{no:2,name:"max_age_duration",kind:"message",T:()=>yp,options:{"gogoproto.nullable":!1,"gogoproto.stdduration":!0}},{no:3,name:"max_bytes",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);
2051return t.maxAgeNumBlocks=0n,t.maxBytes=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.maxAgeNumBlocks=e.int64().toBigInt();break;case 2:n.maxAgeDuration=yp.internalBinaryRead(e,e.uint32(),r,n.maxAgeDuration);break;case 3:n.maxBytes=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.maxAgeNumBlocks&&t.tag(1,p.Varint).int64(e.maxAgeNumBlocks),e.maxAgeDuration&&yp.internalBinaryWrite(e.maxAgeDuration,t.tag(2,p.LengthDelimited).fork(),r).join(),0n!==e.maxBytes&&t.tag(3,p.Varint).int64(e.maxBytes);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},y$=new class extends cK{constructor(){super("cometbft.types.v1.ValidatorParams",[{no:1,name:"pub_key_types",kind:"scalar",repeat:2,T:9}],{"gogoproto.populate":!0,"gogoproto.equal":!0})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.pubKeyTypes=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.pubKeyTypes.push(e.string());else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let r=0;r<e.pubKeyTypes.length;r++)t.tag(1,p.LengthDelimited).string(e.pubKeyTypes[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yW=new class extends cK{constructor(){super("cometbft.types.v1.VersionParams",[{no:1,name:"app",kind:"scalar",T:4,L:0}],{"gogoproto.populate":!0,"gogoproto.equal":!0})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.app=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.app=e.uint64().toBigInt();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.app&&t.tag(1,p.Varint).uint64(e.app);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cometbft.types.v1.HashedParams",[{no:1,name:"block_max_bytes",kind:"scalar",T:3,L:0},{no:2,name:"block_max_gas",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.blockMaxBytes=0n,t.blockMaxGas=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.blockMaxBytes=e.int64().toBigInt();break;case 2:n.blockMaxGas=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.blockMaxBytes&&t.tag(1,p.Varint).int64(e.blockMaxBytes),0n!==e.blockMaxGas&&t.tag(2,p.Varint).int64(e.blockMaxGas);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var yz=new class extends cK{constructor(){super("cometbft.types.v1.SynchronyParams",[{no:1,name:"precision",kind:"message",T:()=>yp,options:{"gogoproto.stdduration":!0}},{no:2,name:"message_delay",kind:"message",T:()=>yp,options:{"gogoproto.stdduration":!0}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.precision=yp.internalBinaryRead(e,e.uint32(),r,n.precision);break;case 2:n.messageDelay=yp.internalBinaryRead(e,e.uint32(),r,n.messageDelay);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.precision&&yp.internalBinaryWrite(e.precision,t.tag(1,p.LengthDelimited).fork(),r).join(),e.messageDelay&&yp.internalBinaryWrite(e.messageDelay,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yV=new class extends cK{constructor(){super("cometbft.types.v1.FeatureParam
2051s",[{no:1,name:"vote_extensions_enable_height",kind:"message",T:()=>yF,options:{"gogoproto.nullable":!0}},{no:2,name:"pbts_enable_height",kind:"message",T:()=>yF,options:{"gogoproto.nullable":!0}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.voteExtensionsEnableHeight=yF.internalBinaryRead(e,e.uint32(),r,n.voteExtensionsEnableHeight);break;case 2:n.pbtsEnableHeight=yF.internalBinaryRead(e,e.uint32(),r,n.pbtsEnableHeight);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.voteExtensionsEnableHeight&&yF.internalBinaryWrite(e.voteExtensionsEnableHeight,t.tag(1,p.LengthDelimited).fork(),r).join(),e.pbtsEnableHeight&&yF.internalBinaryWrite(e.pbtsEnableHeight,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yH=new class extends cK{constructor(){super("cometbft.types.v1.ABCIParams",[{no:1,name:"vote_extensions_enable_height",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.voteExtensionsEnableHeight=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.voteExtensionsEnableHeight=e.int64().toBigInt();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.voteExtensionsEnableHeight&&t.tag(1,p.Varint).int64(e.voteExtensionsEnableHeight);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yq=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.RECHECK=1]="RECHECK",e[e.CHECK=2]="CHECK",e))(yq||{}),yG=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.REJECT=3]="REJECT",e[e.REJECT_FORMAT=4]="REJECT_FORMAT",e[e.REJECT_SENDER=5]="REJECT_SENDER",e))(yG||{}),yK=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.RETRY=3]="RETRY",e[e.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",e[e.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",e))(yK||{}),yJ=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.REJECT=2]="REJECT",e))(yJ||{}),yZ=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.REJECT=2]="REJECT",e))(yZ||{}),yQ=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",e[e.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",e))(yQ||{});new class extends cK{constructor(){super("cometbft.abci.v1.Request",[{no:1,name:"echo",kind:"message",oneof:"value",T:()=>yX},{no:2,name:"flush",kind:"message",oneof:"value",T:()=>yY},{no:3,name:"info",kind:"message",oneof:"value",T:()=>y0},{no:5,name:"init_chain",kind:"message",oneof:"value",T:()=>y1},{no:6,name:"query",kind:"message",oneof:"value",T:()=>y2},{no:8,name:"check_tx",kind:"message",oneof:"value",T:()=>y3},{no:11,name:"commit",kind:"message",oneof:"value",T:()=>y6},{no:12,name:"list_snapshots",kind:"message",oneof:"value",T:()=>y8},{no:13,name:"offer_snapshot",kind:"message",oneof:"value",T:()=>y7},{no:14,name:"load_snapshot_chunk",kind:"message",oneof:"value",T:()=>y4},{no:15,name:"apply_snapshot_chunk",kind:"message",oneof:"value",T:()=>y5},{no:16,name:"prepare_proposal",kind:"message",oneof:"value",T:()=>y9},{no:17,name:"process_proposal",kind:"message",oneof:"value",T:()=>ke},{no:18,name:"extend_vote",kind:"message",oneof:"value",T:()=>kt},{no:19,name:"verify_vote_extension",kind:"message",oneof:"value",T:()=>kr},{no:20,name:"finalize_block",kind:"message",oneof:"value",T:()=>ka}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.value={oneofKind:void 0},void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.value={oneofKind:"echo",echo:yX.internalBinaryRead(e,e.uint32(),r,n.value.echo)};break;case 2:n.value={oneofKind:"flush",flush:yY.internalBinaryRead(e,e.uint32(),r,n.value.flush)};break;case 3:n.value={oneofKind:"info",info:y0.internalBinaryRead(e,e.uint32(),r,n.value.info)};break;case 5:n.value={oneofKind:"initChain",initChain:y1.internalBinaryRead(e,e.uint32(),r,n.value.initChain)};break;case 6:n.value={oneofKind:"query",query:y2.internalBinaryRead(e,e.uint32(),r,n.value.query)};break;case 8:n.value={oneofKind:"checkTx",checkTx:y3.internalBinaryRead(e,e.uint32(),r,n.value.checkTx)};break;case 11:n.value={oneofKind:"commit",commit:y6.internalBinaryRead(e,e.uint32(),r,n.value.commit)};break;case 12:n.value={oneofKind:"listSnapshots",listSnapshots:y8.internalBinaryRead(e,e.uint32(),r,n.value.listSnapshots)};break;case 13:n.value={oneofKind:"offerSnapshot",offerSnapshot:y7.internalBinaryRead(e,e.uint32(),r,n.value.offerSnapshot)};break;
2051case 14:n.value={oneofKind:"loadSnapshotChunk",loadSnapshotChunk:y4.internalBinaryRead(e,e.uint32(),r,n.value.loadSnapshotChunk)};break;case 15:n.value={oneofKind:"applySnapshotChunk",applySnapshotChunk:y5.internalBinaryRead(e,e.uint32(),r,n.value.applySnapshotChunk)};break;case 16:n.value={oneofKind:"prepareProposal",prepareProposal:y9.internalBinaryRead(e,e.uint32(),r,n.value.prepareProposal)};break;case 17:n.value={oneofKind:"processProposal",processProposal:ke.internalBinaryRead(e,e.uint32(),r,n.value.processProposal)};break;case 18:n.value={oneofKind:"extendVote",extendVote:kt.internalBinaryRead(e,e.uint32(),r,n.value.extendVote)};break;case 19:n.value={oneofKind:"verifyVoteExtension",verifyVoteExtension:kr.internalBinaryRead(e,e.uint32(),r,n.value.verifyVoteExtension)};break;case 20:n.value={oneofKind:"finalizeBlock",finalizeBlock:ka.internalBinaryRead(e,e.uint32(),r,n.value.finalizeBlock)};break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){"echo"===e.value.oneofKind&&yX.internalBinaryWrite(e.value.echo,t.tag(1,p.LengthDelimited).fork(),r).join(),"flush"===e.value.oneofKind&&yY.internalBinaryWrite(e.value.flush,t.tag(2,p.LengthDelimited).fork(),r).join(),"info"===e.value.oneofKind&&y0.internalBinaryWrite(e.value.info,t.tag(3,p.LengthDelimited).fork(),r).join(),"initChain"===e.value.oneofKind&&y1.internalBinaryWrite(e.value.initChain,t.tag(5,p.LengthDelimited).fork(),r).join(),"query"===e.value.oneofKind&&y2.internalBinaryWrite(e.value.query,t.tag(6,p.LengthDelimited).fork(),r).join(),"checkTx"===e.value.oneofKind&&y3.internalBinaryWrite(e.value.checkTx,t.tag(8,p.LengthDelimited).fork(),r).join(),"commit"===e.value.oneofKind&&y6.internalBinaryWrite(e.value.commit,t.tag(11,p.LengthDelimited).fork(),r).join(),"listSnapshots"===e.value.oneofKind&&y8.internalBinaryWrite(e.value.listSnapshots,t.tag(12,p.LengthDelimited).fork(),r).join(),"offerSnapshot"===e.value.oneofKind&&y7.internalBinaryWrite(e.value.offerSnapshot,t.tag(13,p.LengthDelimited).fork(),r).join(),"loadSnapshotChunk"===e.value.oneofKind&&y4.internalBinaryWrite(e.value.loadSnapshotChunk,t.tag(14,p.LengthDelimited).fork(),r).join(),"applySnapshotChunk"===e.value.oneofKind&&y5.internalBinaryWrite(e.value.applySnapshotChunk,t.tag(15,p.LengthDelimited).fork(),r).join(),"prepareProposal"===e.value.oneofKind&&y9.internalBinaryWrite(e.value.prepareProposal,t.tag(16,p.LengthDelimited).fork(),r).join(),"processProposal"===e.value.oneofKind&&ke.internalBinaryWrite(e.value.processProposal,t.tag(17,p.LengthDelimited).fork(),r).join(),"extendVote"===e.value.oneofKind&&kt.internalBinaryWrite(e.value.extendVote,t.tag(18,p.LengthDelimited).fork(),r).join(),"verifyVoteExtension"===e.value.oneofKind&&kr.internalBinaryWrite(e.value.verifyVoteExtension,t.tag(19,p.LengthDelimited).fork(),r).join(),"finalizeBlock"===e.value.oneofKind&&ka.internalBinaryWrite(e.value.finalizeBlock,t.tag(20,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var yX=new class extends cK{constructor(){super("cometbft.abci.v1.EchoRequest",[{no:1,name:"message",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.message="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.message=e.string();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.message&&t.tag(1,p.LengthDelimited).string(e.message);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},yY=new class extends cK{constructor(){super("cometbft.abci.v1.FlushRequest",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},y0=new class extends cK{constructor(){super("cometbft.abci.v1.InfoRequest",[{no:1,name:"version",kind:"scalar",T:9},{no:2,name:"block_version",kind:"scalar",T:4,L:0},{no:3,name:"p2p_version",kind:"scalar",jsonName:"p2pVersion",T:4,L:0},{no:4,name:"abci_version",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.version="",t.blockVersion=0n,t.p2PVersion=0n,t.abciVersion="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.version=e.string();break;case 2:n.blockVersion=e.uint64().toBigInt();break;case 3:n.p2PVersion=e.uint64().toBigInt();break;case 4:n.abciVersion=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.version&&t.tag(1,p.LengthDelimited).string(e.version),0n!==e.blockVersion&&t.tag(2,p.Varint).uint64(e.blockVersion),0n!==e.p2PVersion&&t.tag(3,p.Varint).uint64(e.p2PVersion),""!==e.abciVersion&&t.tag(4,p.LengthDelimited).string(e.abciVersion);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},y1=new class extends cK{constructor(){super("cometbft.abci.v1.InitChainRequest",[{no:1,name:"time",kind:"message",T:()=>yu,options:{"gogoproto.nullable":!1,"gogoproto.stdtime":!0}},{no:2,name:"chain_id",kind:"scalar",T:9},{no:3,name:"consensus_params",kind:"message",T:()=>y_},{no:4,name:"validators",kind:"message",repeat:2,T:()=>kU,options:{"gogoproto.nullable":!1}},{no:5,name:"app_state_bytes",kind:"scalar",T:12},{no:6,name:"initial_height",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.chainId="",t.validators=[],t.appStateBytes=new Uint8Array(0),t.initialHeight=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.time=yu.internalBinaryRead(e,e.uint32(),r,n.time);break;case 2:n.chainId=e.string();break;case 3:n.consensusParams=y_.internalBinaryRead(e,e.uint32(),r,n.consensusParams);break;case 4:n.validators.push(kU.internalBinaryRead(e,e.uint32(),r));break;case 5:n.appStateBytes=e.bytes();break;case 6:n.initialHeight=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.time&&yu.internalBinaryWrite(e.time,t.tag(1,p.LengthDelimited).fork(),r).join(),""!==e.chainId&&t.tag(2,p.LengthDelimited).string(e.chainId),e.consensusParams&&y_.internalBinaryWrite(e.consensusParams,t.tag(3,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.validators.length;a++)kU.internalBinaryWrite(e.validators[a],t.tag(4,p.LengthDelimited).fork(),r).join();e.appStateBytes.length&&t.tag(5,p.LengthDelimited).bytes(e.appStateBytes),0n!==e.initialHeight&&t.tag(6,p.Varint).int64(e.initialHeight);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},y2=new class extends cK{constructor(){super("cometbft.abci.v1.QueryRequest",[{no:1,name:"data",kind:"scalar",T:12},{no:2,name:"path",kind:"scalar",T:9},{no:3,name:"height",kind:"scalar",T:3,L:0},{no:4,name:"prove",kind:"scalar",T:8}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.data=new Uint8Array(0),t.path="",t.height=0n,t.prove=!1,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.data=e.bytes();break;case 2:n.path=e.string();break;case 3:n.height=e.int64().toBigInt();break;case 4:n.prove=e.bool();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.data.length&&t.tag(1,p.LengthDelimited).bytes(e.data),""!==e.path&&t.tag(2,p.LengthDelimited).string(e.path),0n!==e.height&&t.tag(3,p.Varint).int64(e.height),!1!==e.prove&&t.tag(4,p.Varint).bool(e.prove);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},y3=new class extends cK{constructor(){super("cometbft.abci.v1.CheckTxRequest",[{no:1,name:"tx",kind:"scalar",T:12},{no:3,name:"type",kind:"enum",T:()=>["cometbft.abci.v1.CheckTxType",yq,"CHECK_TX_TYPE_"]}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.tx=new Uint8Array(0),t.type=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.tx=e.bytes();break;case 3:n.type=e.int32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.tx.length&&t.tag(1,p.LengthDelimited).bytes(e.tx),0!==e.type&&t.tag(3,p.Varint).int32(e.type);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},y6=new class extends cK{constructor(){super("cometbft.abci.v1.CommitRequest",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},y8=new class extends cK{constructor(){super("cometbft.abci.v1.ListSnapshotsRequest",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},y7=new class extends cK{constructor(){super("cometbft.abci.v1.OfferSnapshotRequest",[{no:1,name:"snapshot",kind:"message",T:()=>kS},{no:2,name:"app_hash",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.appHash=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.snapshot=kS.internalBinaryRead(e,e.uint32(),r,n.snapshot);break;case 2:n.appHash=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.snapshot&&kS.internalBinaryWrite(e.snapshot,t.tag(1,p.LengthDelimited).fork(),r).join(),e.appHash.length&&t.tag(2,p.LengthDelimited).bytes(e.appHash);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},y4=new class extends cK{constructor(){super("cometbft.abci.v1.LoadSnapshotChunkRequest",[{no:1,name:"height",kind:"scalar",T:4,L:0},{no:2,name:"format",kind:"scalar",T:13},{no:3,name:"chunk",kind:"scalar",T:13}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.height=0n,t.format=0,t.chunk=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.height=e.uint64().toBigInt();break;case 2:n.format=e.uint32();break;case 3:n.chunk=e.uint32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.height&&t.tag(1,p.Varint).uint64(e.height),0!==e.format&&t.tag(2,p.Varint).uint32(e.format),0!==e.chunk&&t.tag(3,p.Varint).uint32(e.chunk);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},y5=new class extends cK{constructor(){super("cometbft.abci.v1.ApplySnapshotChunkRequest",[{no:1,name:"index",kind:"scalar",T:13},{no:2,name:"chunk",kind:"scalar",T:12},{no:3,name:"sender",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.index=0,t.chunk=new Uint8Array(0),t.sender="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.index=e.uint32();break;case 2:n.chunk=e.bytes();break;case 3:n.sender=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.index&&t.tag(1,p.Varint).uint32(e.index),e.chunk.length&&t.tag(2,p.LengthDelimited).bytes(e.chunk),""!==e.sender&&t.tag(3,p.LengthDelimited).string(e.sender);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},y9=new class extends cK{constructor(){super("cometbft.abci.v1.PrepareProposalRequest",[{no:1,name:"max_tx_bytes",kind:"scalar",T:3,L:0},{no:2,name:"txs",kind:"scalar",repeat:2,T:12},{no:3,name:"local_last_commit",kind:"message",T:()=>kv,options:{"gogoproto.nullable":!1}},{no:4,name:"misbehavior",kind:"message",repeat:2,T:()=>kR,options:{"gogoproto.nullable":!1}},{no:5,name:"height",kind:"scalar",T:3,L:0},{no:6,name:"time",kind:"message",T:()=>yu,options:{"gogoproto.nullable":!1,"gogoproto.stdtime":!0}},{no:7,name:"next_validators_hash",kind:"scalar",T:12},{no:8,name:"proposer_address",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.maxTxBytes=0n,t.txs=[],t.misbehavior=[],t.height=0n,t.nextValidatorsHash=new Uint8Array(0),t.proposerAddress=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.maxTxBytes=e.int64().toBigInt();break;case 2:n.txs.push(e.bytes());break;case 3:n.localLastCommit=kv.internalBinaryRead(e,e.uint32(),r,n.localLastCommit);break;case 4:n.misbehavior.push(kR.internalBinaryRead(e,e.uint32(),r));break;case 5:n.height=e.int64().toBigInt();break;case 6:n.time=yu.internalBinaryRead(e,e.uint32(),r,n.time);break;case 7:n.nextValidatorsHash=e.bytes();break;case 8:n.proposerAddress=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.maxTxBytes&&t.tag(1,p.Varint).int64(e.maxTxBytes);for(let r=0;r<e.txs.length;r++)t.tag(2,p.LengthDelimited).bytes(e.txs[r]);e.localLastCommit&&kv.internalBinaryWrite(e.localLastCommit,t.tag(3,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.misbehavior.length;a++)kR.internalBinaryWrite(e.misbehavior[a],t.tag(4,p.LengthDelimited).fork(),r).join();0n!==e.height&&t.tag(5,p.Varint).int64(e.height),e.time&&yu.internalBinaryWrite(e.time,t.tag(6,p.LengthDelimited).fork(),r).join(),e.nextValidatorsHash.length&&t.tag(7,p.LengthDelimited).bytes(e.nextValidatorsHash),e.proposerAddress.length&&t.tag(8,p.LengthDelimited).bytes(e.proposerAddress);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},ke=new class extends cK{constructor(){super("cometbft.abci.v1.ProcessProposalRequest",[{no:1,name:"txs",kind:"scalar",repeat:2,T:12},{no:2,name:"proposed_last_commit",kind:"message",T:()=>kw,options:{"gogoproto.nullable":!1}},{no:3,name:"misbehavior",kind:"message",repeat:2,T:()=>kR,options:{"gogoproto.nullable":!1}},{no:4,name:"hash",kind:"scalar",T:12},{no:5,name:"height",kind:"scalar",T:3,L:0},{no:6,name:"time",kind:"message",T:()=>yu,options:{"gogoproto.nullable":!1,"gogoproto.stdtime":!0}},{no:7,name:"next_validators_hash",kind:"scalar",T:12},{no:8,name:"proposer_address",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.txs=[],t.misbehavior=[],t.hash=new Uint8Array(0),t.height=0n,t.nextValidatorsHash=new Uint8Array(0),t.proposerAddress=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.txs.push(e.bytes());break;case 2:n.proposedLastCommit=kw.internalBinaryRead(e,e.uint32(),r,n.proposedLastCommit);break;case 3:n.misbehavior.push(kR.internalBinaryRead(e,e.uint32(),r));break;case 4:n.hash=e.bytes();break;case 5:n.height=e.int64().toBigInt();break;case 6:n.time=yu.internalBinaryRead(e,e.uint32(),r,n.time);break;case 7:n.nextValidatorsHash=e.bytes();break;case 8:n.proposerAddress=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let r=0;r<e.txs.length;r++)t.tag(1,p.LengthDelimited).bytes(e.txs[r]);e.proposedLastCommit&&kw.internalBinaryWrite(e.proposedLastCommit,t.tag(2,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.misbehavior.length;a++)kR.internalBinaryWrite(e.misbehavior[a],t.tag(3,p.LengthDelimited).fork(),r).join();e.hash.length&&t.tag(4,p.LengthDelimited).bytes(e.hash),0n!==e.height&&t.tag(5,p.Varint).int64(e.height),e.time&&yu.internalBinaryWrite(e.time,t.tag(6,p.LengthDelimited).fork(),r).join(),e.nextValidatorsHash.length&&t.tag(7,p.LengthDelimited).bytes(e.nextValidatorsHash
2051),e.proposerAddress.length&&t.tag(8,p.LengthDelimited).bytes(e.proposerAddress);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kt=new class extends cK{constructor(){super("cometbft.abci.v1.ExtendVoteRequest",[{no:1,name:"hash",kind:"scalar",T:12},{no:2,name:"height",kind:"scalar",T:3,L:0},{no:3,name:"time",kind:"message",T:()=>yu,options:{"gogoproto.nullable":!1,"gogoproto.stdtime":!0}},{no:4,name:"txs",kind:"scalar",repeat:2,T:12},{no:5,name:"proposed_last_commit",kind:"message",T:()=>kw,options:{"gogoproto.nullable":!1}},{no:6,name:"misbehavior",kind:"message",repeat:2,T:()=>kR,options:{"gogoproto.nullable":!1}},{no:7,name:"next_validators_hash",kind:"scalar",T:12},{no:8,name:"proposer_address",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.hash=new Uint8Array(0),t.height=0n,t.txs=[],t.misbehavior=[],t.nextValidatorsHash=new Uint8Array(0),t.proposerAddress=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.hash=e.bytes();break;case 2:n.height=e.int64().toBigInt();break;case 3:n.time=yu.internalBinaryRead(e,e.uint32(),r,n.time);break;case 4:n.txs.push(e.bytes());break;case 5:n.proposedLastCommit=kw.internalBinaryRead(e,e.uint32(),r,n.proposedLastCommit);break;case 6:n.misbehavior.push(kR.internalBinaryRead(e,e.uint32(),r));break;case 7:n.nextValidatorsHash=e.bytes();break;case 8:n.proposerAddress=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.hash.length&&t.tag(1,p.LengthDelimited).bytes(e.hash),0n!==e.height&&t.tag(2,p.Varint).int64(e.height),e.time&&yu.internalBinaryWrite(e.time,t.tag(3,p.LengthDelimited).fork(),r).join();for(let r=0;r<e.txs.length;r++)t.tag(4,p.LengthDelimited).bytes(e.txs[r]);e.proposedLastCommit&&kw.internalBinaryWrite(e.proposedLastCommit,t.tag(5,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.misbehavior.length;a++)kR.internalBinaryWrite(e.misbehavior[a],t.tag(6,p.LengthDelimited).fork(),r).join();e.nextValidatorsHash.length&&t.tag(7,p.LengthDelimited).bytes(e.nextValidatorsHash),e.proposerAddress.length&&t.tag(8,p.LengthDelimited).bytes(e.proposerAddress);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kr=new class extends cK{constructor(){super("cometbft.abci.v1.VerifyVoteExtensionRequest",[{no:1,name:"hash",kind:"scalar",T:12},{no:2,name:"validator_address",kind:"scalar",T:12},{no:3,name:"height",kind:"scalar",T:3,L:0},{no:4,name:"vote_extension",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.hash=new Uint8Array(0),t.validatorAddress=new Uint8Array(0),t.height=0n,t.voteExtension=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.hash=e.bytes();break;case 2:n.validatorAddress=e.bytes();break;case 3:n.height=e.int64().toBigInt();break;case 4:n.voteExtension=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.hash.length&&t.tag(1,p.LengthDelimited).bytes(e.hash),e.validatorAddress.length&&t.tag(2,p.LengthDelimited).bytes(e.validatorAddress),0n!==e.height&&t.tag(3,p.Varint).int64(e.height),e.voteExtension.length&&t.tag(4,p.LengthDelimited).bytes(e.voteExtension);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},ka=new class extends cK{constructor(){super("cometbft.abci.v1.FinalizeBlockRequest",[{no:1,name:"txs",kind:"scalar",repeat:2,T:12},{no:2,name:"decided_last_commit",kind:"message",T:()=>kw,options:{"gogoproto.nullable":!1}},{no:3,name:"misbehavior",kind:"message",repeat:2,T:()=>kR,options:{"gogoproto.nullable":!1}},{no:4,name:"hash",kind:"scalar",T:12},{no:5,name:"height",kind:"scalar",T:3,L:0},{no:6,name:"time",kind:"message",T:()=>yu,options:{"gogoproto.nullable":!1,"gogoproto.stdtime":!0}},{no:7,name:"next_validators_hash",kind:"scalar",T:12},{no:8,name:"proposer_address",kind:"scalar",T:12},{no:9,name:"syncing_to_height",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.txs=[],t.misbehavior=[],t.hash=new Uint8Array(0),t.height=0n,t.nextValidatorsHash=new Uint8Array(0),t.proposerAddress=new Uint8Array(0),t.syncingToHeight=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.txs.push(e.bytes());break;case 2:n.decidedLastCommit=kw.internalBinaryRead(e,e.uint32(),r,n.decidedLastCommit);break;case 3:n.misbehavior.push(kR.internalBinaryRead(e,e.uint32(),r));break;case 4:n.hash=e.bytes();break;case 5:n.height=e.int64().toBigInt();break;case 6:n.time=yu.internalBinaryRead(e,e.uint32(),r,n.time);break;case 7:n.nextValidatorsHash=e.bytes();break;case 8:n.proposerAddress=e.bytes();break;case 9:n.syncingToHeight=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let r=0;r<e.txs.length;r++)t.tag(1,p.LengthDelimited).bytes(e.txs[r]);e.decidedLastCommit&&kw.internalBinaryWrite(e.decidedLastCommit,t.tag(2,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.misbehavior.length;a++)kR.internalBinaryWrite(e.misbehavior[a],t.tag(3,p.LengthDelimited).fork(),r).join();e.hash.length&&t.tag(4,p.LengthDelimited).bytes(e.hash),0n!==e.height&&t.tag(5,p.Varint).int64(e.height),e.time&&yu.internalBinaryWrite(e.time,t.tag(6,p.LengthDelimited).fork(),r).join(),e.nextValidatorsHash.length&&t.tag(7,p.LengthDelimited).bytes(e.nextValidatorsHash),e.proposerAddress.length&&t.tag(8,p.LengthDelimited).bytes(e.proposerAddress),0n!==e.syncingToHeight&&t.tag(9,p.Varint).int64(e.syncingToHeight);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cometbft.abci.v1.Response",[{no:1,name:"exception",kind:"message",oneof:"value",T:()=>kn},{no:2,name:"echo",kind:"message",oneof:"value",T:()=>ki},{no:3,name:"flush",kind:"message",oneof:"value",T:()=>ko},{no:4,name:"info",kind:"message",oneof:"value",T:()=>ks},{no:6,name:"init_chain",kind:"message",oneof:"value",T:()=>kl},{no:7,name:"query",kind:"message",oneof:"value",T:()=>kc},{no:9,name:"check_tx",kind:"message",oneof:"value",T:()=>kd},{no:12,name:"commit",kind:"message",oneof:"value",T:()=>kp},{no:13,name:"list_snapshots",kind:"message",oneof:"value",T:()=>ku},{no:14,name:"offer_snapshot",kind:"message",oneof:"value",T:()=>km},{no:15,name:"load_snapshot_chunk",kind:"message",oneof:"value",T:()=>kh},{no:16,name:"apply_snapshot_chunk",kind:"message",oneof:"value",T:()=>kg},{no:17,name:"prepare_proposal",kind:"message",oneof:"value",T:()=>kf},{no:18,name:"process_proposal",kind:"message",oneof:"value",T:()=>kb},{no:19,name:"extend_vote",kind:"message",oneof:"value",T:()=>ky},{no:20,name:"verify_vote_extension",kind:"message",oneof:"value",T:()=>kk},{no:21,name:"finalize_block",kind:"message",oneof:"value",T:()=>kx}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.value={oneofKind:void 0},void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.value={oneofKind:"exception",exception:kn.internalBinaryRead(e,e.uint32(),r,n.value.exception)};break;case 2:n.value={oneofKind:"echo",echo:ki.internalBinaryRead(e,e.uint32(),r,n.value.echo)};break;case 3:n.value={oneofKind:"flush",flush:ko.internalBinaryRead(e,e.uint32(),r,n.value.flush)};break;case 4:n.value={oneofKind:"info",info:ks.internalBinaryRead(e,e.uint32(),r,n.value.info)};break;case 6:n.value={oneofKind:"initChain",initChain:kl.internalBinaryRead(e,e.uint32(),r,n.value.initChain)};break;case 7:n.value={oneofKind:"query",query:kc.internalBinaryRead(e,e.uint32(),r,n.value.query)};break;case 9:n.value={oneofKind:"checkTx",checkTx:kd.internalBinaryRead(e,e.uint32(),r,n.value.checkTx)};break;case 12:n.value={oneofKind:"commit",commit:kp.internalBinaryRead(e,e.uint32(),r,n.value.commit)};break;case 13:n.value={oneofKind:"listSnapshots",listSnapshots:ku.internalBinaryRead(e,e.uint32(),r,n.value.listSnapshots)};break;case 14:n.value={oneofKind:"offerSnapshot",offerSnapshot:km.internalBinaryRead(e,e.uint32(),r,n.value.offerSnapshot)};break;case 15:n.value={oneofKind:"loadSnapshotChunk",loadSnapshotChunk:kh.internalBinaryRead(e,e.uint32(),r,n.value.loadSnapsh
2051otChunk)};break;case 16:n.value={oneofKind:"applySnapshotChunk",applySnapshotChunk:kg.internalBinaryRead(e,e.uint32(),r,n.value.applySnapshotChunk)};break;case 17:n.value={oneofKind:"prepareProposal",prepareProposal:kf.internalBinaryRead(e,e.uint32(),r,n.value.prepareProposal)};break;case 18:n.value={oneofKind:"processProposal",processProposal:kb.internalBinaryRead(e,e.uint32(),r,n.value.processProposal)};break;case 19:n.value={oneofKind:"extendVote",extendVote:ky.internalBinaryRead(e,e.uint32(),r,n.value.extendVote)};break;case 20:n.value={oneofKind:"verifyVoteExtension",verifyVoteExtension:kk.internalBinaryRead(e,e.uint32(),r,n.value.verifyVoteExtension)};break;case 21:n.value={oneofKind:"finalizeBlock",finalizeBlock:kx.internalBinaryRead(e,e.uint32(),r,n.value.finalizeBlock)};break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){"exception"===e.value.oneofKind&&kn.internalBinaryWrite(e.value.exception,t.tag(1,p.LengthDelimited).fork(),r).join(),"echo"===e.value.oneofKind&&ki.internalBinaryWrite(e.value.echo,t.tag(2,p.LengthDelimited).fork(),r).join(),"flush"===e.value.oneofKind&&ko.internalBinaryWrite(e.value.flush,t.tag(3,p.LengthDelimited).fork(),r).join(),"info"===e.value.oneofKind&&ks.internalBinaryWrite(e.value.info,t.tag(4,p.LengthDelimited).fork(),r).join(),"initChain"===e.value.oneofKind&&kl.internalBinaryWrite(e.value.initChain,t.tag(6,p.LengthDelimited).fork(),r).join(),"query"===e.value.oneofKind&&kc.internalBinaryWrite(e.value.query,t.tag(7,p.LengthDelimited).fork(),r).join(),"checkTx"===e.value.oneofKind&&kd.internalBinaryWrite(e.value.checkTx,t.tag(9,p.LengthDelimited).fork(),r).join(),"commit"===e.value.oneofKind&&kp.internalBinaryWrite(e.value.commit,t.tag(12,p.LengthDelimited).fork(),r).join(),"listSnapshots"===e.value.oneofKind&&ku.internalBinaryWrite(e.value.listSnapshots,t.tag(13,p.LengthDelimited).fork(),r).join(),"offerSnapshot"===e.value.oneofKind&&km.internalBinaryWrite(e.value.offerSnapshot,t.tag(14,p.LengthDelimited).fork(),r).join(),"loadSnapshotChunk"===e.value.oneofKind&&kh.internalBinaryWrite(e.value.loadSnapshotChunk,t.tag(15,p.LengthDelimited).fork(),r).join(),"applySnapshotChunk"===e.value.oneofKind&&kg.internalBinaryWrite(e.value.applySnapshotChunk,t.tag(16,p.LengthDelimited).fork(),r).join(),"prepareProposal"===e.value.oneofKind&&kf.internalBinaryWrite(e.value.prepareProposal,t.tag(17,p.LengthDelimited).fork(),r).join(),"processProposal"===e.value.oneofKind&&kb.internalBinaryWrite(e.value.processProposal,t.tag(18,p.LengthDelimited).fork(),r).join(),"extendVote"===e.value.oneofKind&&ky.internalBinaryWrite(e.value.extendVote,t.tag(19,p.LengthDelimited).fork(),r).join(),"verifyVoteExtension"===e.value.oneofKind&&kk.internalBinaryWrite(e.value.verifyVoteExtension,t.tag(20,p.LengthDelimited).fork(),r).join(),"finalizeBlock"===e.value.oneofKind&&kx.internalBinaryWrite(e.value.finalizeBlock,t.tag(21,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var kn=new class extends cK{constructor(){super("cometbft.abci.v1.ExceptionResponse",[{no:1,name:"error",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.error="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.error=e.string();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.error&&t.tag(1,p.LengthDelimited).string(e.error);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},ki=new class extends cK{constructor(){super("cometbft.abci.v1.EchoResponse",[{no:1,name:"message",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.message="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();if(1===t)n.message=e.string();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.message&&t.tag(1,p.LengthDelimited).string(e.message);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},ko=new class extends cK{constructor(){super("cometbft.abci.v1.FlushResponse",[])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},ks=new class extends cK{constructor(){super("cometbft.abci.v1.InfoResponse",[{no:1,name:"data",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"app_version",kind:"scalar",T:4,L:0},{no:4,name:"last_block_height",kind:"scalar",T:3,L:0},{no:5,name:"last_block_app_hash",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.data="",t.version="",t.appVersion=0n,t.lastBlockHeight=0n,t.lastBlockAppHash=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.data=e.string();break;case 2:n.version=e.string();break;case 3:n.appVersion=e.uint64().toBigInt();break;case 4:n.lastBlockHeight=e.int64().toBigInt();break;case 5:n.lastBlockAppHash=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.data&&t.tag(1,p.LengthDelimited).string(e.data),""!==e.version&&t.tag(2,p.LengthDelimited).string(e.version),0n!==e.appVersion&&t.tag(3,p.Varint).uint64(e.appVersion),0n!==e.lastBlockHeight&&t.tag(4,p.Varint).int64(e.lastBlockHeight),e.lastBlockAppHash.length&&t.tag(5,p.LengthDelimited).bytes(e.lastBlockAppHash);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kl=new class extends cK{constructor(){super("cometbft.abci.v1.InitChainResponse",[{no:1,name:"consensus_params",kind:"message",T:()=>y_},{no:2,name:"validators",kind:"message",repeat:2,T:()=>kU,options:{"gogoproto.nullable":!1}},{no:3,name:"app_hash",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.validators=[],t.appHash=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.consensusParams=y_.internalBinaryRead(e,e.uint32(),r,n.consensusParams);break;case 2:n.validators.push(kU.internalBinaryRead(e,e.uint32(),r));break;case 3:n.appHash=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.consensusParams&&y_.internalBinaryWrite(e.consensusParams,t.tag(1,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.validators.length;a++)kU.internalBinaryWrite(e.validators[a],t.tag(2,p.LengthDelimited).fork(),r).join();e.appHash.length&&t.tag(3,p.LengthDelimited).bytes(e.appHash);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kc=new class extends cK{constructor(){super("cometbft.abci.v1.QueryResponse",[{no:1,name:"code",kind:"scalar",T:13},{no:3,name:"log",kind:"scalar",T:9},{no:4,name:"info",kind:"scalar",T:9},{no:5,name:"index",kind:"scalar",T:3,L:0},{no:6,name:"key",kind:"scalar",T:12},{no:7,name:"value",kind:"scalar",T:12},{no:8,name:"proof_ops",kind:"message",T:()=>yx},{no:9,name:"height",kind:"scalar",T:3,L:0},{no:10,name:"codespace",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.code=0,t.log="",t.info="",t.index=0n,t.key=new Uint8Array(0),t.value=new Uint8Array(0),t.height=0n,t.codespace="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.code=e.uint32();break;case 3:n.log=e.string();break;case 4:n.info=e.string();break;case 5:n.index=e.int64().toBigInt();break;case 6:n.key=e.bytes();break;case 7:n.value=e.bytes();break;case 8:n.proofOps=yx.internalBinaryRead(e,e.uint32(),r,n.proofOps);break;case 9:n.height=e.int64().toBigInt();break;case 10:n.codespace=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.code&&t.tag(1,p.Varint).uint32(e.code),""!==e.log&&t.tag(3,p.LengthDelimited).string(e.log),""!==e.info&&t.tag(4,p.LengthDelimited).string(e.info),0n!==e.index&&t.tag(5,p.Varint).int64(e.index),e.key.length&&t.tag(6,p.LengthDelimited).bytes(e.key),e.value.length&&t.tag(7,p.LengthDelimited).bytes(e.value),e.proofOps&&yx.internalBinaryWrite(e.proofOps,t.tag(8,p.LengthDelimited).fork(),r).join(),0n!==e.height&&t.tag(9,p.Varint).int64(e.height),""!==e.codespace&&t.tag(10,p.LengthDelimited).string(e.codespace);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kd=new class extends cK{constructor(){super("cometbft.abci.v1.CheckTxResponse",[{no:1,name:"code",kind:"scalar",T:13},{no:2,name:"data",kind:"scalar",T:12},{no:3,name:"log",kind:"scalar",T:9},{no:4,name:"info",kind:"scalar",T:9},{no:5,name:"gas_wanted",kind:"scalar",jsonName:"gas_wanted",T:3,L:0},{no:6,name:"gas_used",kind:"scalar",jsonName:"gas_used",T:3,L:0},{no:7,name:"events",kind:"message",repeat:2,T:()=>kT,options:{"gogoproto.nullable":!1,"gogoproto.jsontag":"events,omitempty"}},{no:8,name:"codespace",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.code=0,t.data=new Uint8Array(0),t.log="",t.info="",t.gasWanted=0n,t.gasUsed=0n,t.events=[],t.codespace="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.code=e.uint32();break;case 2:n.data=e.bytes();break;case 3:n.log=e.string();break;case 4:n.info=e.string();break;case 5:n.gasWanted=e.int64().toBigInt();break;case 6:n.gasUsed=e.int64().toBigInt();break;case 7:n.events.push(kT.internalBinaryRead(e,e.uint32(),r));break;case 8:n.codespace=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.code&&t.tag(1,p.Varint).uint32(e.code),e.data.length&&t.tag(2,p.LengthDelimited).bytes(e.data),""!==e.log&&t.tag(3,p.LengthDelimited).string(e.log),""!==e.info&&t.tag(4,p.LengthDelimited).string(e.info),0n!==e.gasWanted&&t.tag(5,p.Varint).int64(e.gasWanted),0n!==e.gasUsed&&t.tag(6,p.Varint).int64(e.gasUsed);for(let a=0;a<e.events.length;a++)kT.internalBinaryWrite(e.events[a],t.tag(7,p.LengthDelimited).fork(),r).join();""!==e.codespace&&t.tag(8,p.LengthDelimited).string(e.codespace);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kp=new class extends cK{constructor(){super("cometbft.abci.v1.CommitResponse",[{no:3,name:"retain_height",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.retainHeight=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(3===t)n.retainHeight=e.int64().toBigInt();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.retainHeight&&t.tag(3,p.Varint).int64(e.retainHeight);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},ku=new class extends cK{constructor(){super("cometbft.abci.v1.ListSnapshotsResponse",[{no:1,name:"snapshots",kind:"message",repeat:2,T:()=>kS}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.snapshots=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();if(1===t)n.snapshots.push(kS.internalBinaryRead(e,e.uint32(),r));else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.snapshots.length;a++)kS.internalBinaryWrite(e.snapshots[a],t.tag(1,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},km=new class extends cK{constructor(){super("cometbft.abci.v1.OfferSnapshotResponse",[{no:1,name:"result",kind:"enum",T:()=>["cometbft.abci.v1.OfferSnapshotResult",yG,"OFFER_SNAPSHOT_RESULT_"]}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.result=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.result=e.int32();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.result&&t.tag(1,p.Varint).int32(e.result);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kh=new class extends cK{constructor(){super("cometbft.abci.v1.LoadSnapshotChunkResponse",[{no:1,name:"chunk",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.chunk=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.chunk=e.bytes();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.chunk.length&&t.tag(1,p.LengthDelimited).bytes(e.chunk);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kg=new class extends cK{constructor(){super("cometbft.abci.v1.ApplySnapshotChunkResponse",[{no:1,name:"result",kind:"enum",T:()=>["cometbft.abci.v1.ApplySnapshotChunkResult",yK,"APPLY_SNAPSHOT_CHUNK_RESULT_"]},{no:2,name:"refetch_chunks",kind:"scalar",repeat:1,T:13},{no:3,name:"reject_senders",kind:"scalar",repeat:2,T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.result=0,t.refetchChunks=[],t.rejectSenders=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.result=e.int32();break;case 2:if(a===p.LengthDelimited)for(let t=e.int32()+e.pos;e.pos<t;)n.refetchChunks.push(e.uint32());else n.refetchChunks.push(e.uint32());break;case 3:n.rejectSenders.push(e.string());break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){if(0!==e.result&&t.tag(1,p.Varint).int32(e.result),e.refetchChunks.length){t.tag(2,p.LengthDelimited).fork();for(let r=0;r<e.refetchChunks.length;r++)t.uint32(e.refetchChunks[r]);t.join()}for(let r=0;r<e.rejectSenders.length;r++)t.tag(3,p.LengthDelimited).string(e.rejectSenders[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kf=new class extends cK{constructor(){super("cometbft.abci.v1.PrepareProposalResponse",[{no:1,name:"txs",kind:"scalar",repeat:2,T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.txs=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.txs.push(e.bytes());else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let r=0;r<e.txs.length;r++)t.tag(1,p.LengthDelimited).bytes(e.txs[r]);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kb=new class extends cK{constructor(){super("cometbft.abci.v1.ProcessProposalResponse",[{no:1,name:"status",kind:"enum",T:()=>["cometbft.abci.v1.ProcessProposalStatus",yJ,"PROCESS_PROPOSAL_STATUS_"]}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.status=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();if(1===t)n.status=e.int32();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.status&&t.tag(1,p.Varint).int32(e.status);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},ky=new class extends cK{constructor(){super("cometbft.abci.v1.ExtendVoteResponse",[{no:1,name:"vote_extension",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.voteExtension=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.voteExtension=e.bytes();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.voteExtension.length&&t.tag(1,p.LengthDelimited).bytes(e.voteExtension);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kk=new class extends cK{constructor(){super("cometbft.abci.v1.VerifyVoteExtensionResponse",[{no:1,name:"status",kind:"enum",T:()=>["cometbft.abci.v1.VerifyVoteExtensionStatus",yZ,"VERIFY_VOTE_EXTENSION_STATUS_"]}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.status=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.status=e.int32();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.status&&t.tag(1,p.Varint).int32(e.status);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kx=new class extends cK{constructor(){super("cometbft.abci.v1.FinalizeBlockResponse",[{no:1,name:"events",kind:"message",repeat:2,T:()=>kT,options:{"gogoproto.nullable":!1,"gogoproto.jsontag":"events,omitempty"}},{no:2,name:"tx_results",kind:"message",repeat:2,T:()=>kB},{no:3,name:"validator_updates",kind:"message",repeat:2,T:()=>kU,options:{"gogoproto.nullable":!1}},{no:4,name:"consensus_param_updates",kind:"message",T:()=>y_},{no:5,name:"app_hash",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.events=[],t.txResults=[],t.validatorUpdates=[],t.appHash=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.events.push(kT.internalBinaryRead(e,e.uint32(),r));break;case 2:n.txResults.push(kB.internalBinaryRead(e,e.uint32(),r));break;case 3:n.validatorUpdates.push(kU.internalBinaryRead(e,e.uint32(),r));break;case 4:n.consensusParamUpdates=y_.internalBinaryRead(e,e.uint32(),r,n.consensusParamUpdates);break;case 5:n.appHash=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.events.length;a++)kT.internalBinaryWrite(e.events[a],t.tag(1,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.txResults.length;a++)kB.internalBinaryWrite(e.txResults[a],t.tag(2,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.validatorUpdates.length;a++)kU.internalBinaryWrite(e.validatorUpdates[a],t.tag(3,p.LengthDelimited).fork(),r).join();e.consensusParamUpdates&&y_.internalBinaryWrite(e.consensusParamUpdates,t.tag(4,p.LengthDelimited).fork(),r).join(),e.appHash.length&&t.tag(5,p.LengthDelimited).bytes(e.appHash);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kw=new class extends cK{constructor(){super("cometbft.abci.v1.CommitInfo",[{no:1,name:"round",kind:"scalar",T:5},{no:2,name:"votes",kind:"message",repeat:2,T:()=>kI,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.round=0,t.votes=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.round=e.int32();break;case 2:n.votes.push(kI.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.round&&t.tag(1,p.Varint).int32(e.round);for(let a=0;a<e.votes.length;a++)kI.internalBinaryWrite(e.votes[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kv=new class extends cK{constructor(){super("cometbft.abci.v1.ExtendedCommitInfo",[{no:1,name:"round",kind:"scalar",T:5},{no:2,name:"votes",kind:"message",repeat:2,T:()=>kN,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.round=0,t.votes=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.round=e.int32();break;case 2:n.votes.push(kN.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.round&&t.tag(1,p.Varint).int32(e.round);for(let a=0;a<e.votes.length;a++)kN.internalBinaryWrite(e.votes[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kT=new class extends cK{constructor(){super("cometbft.abci.v1.Event",[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"attributes",kind:"message",repeat:2,T:()=>kE,options:{"gogoproto.nullable":!1,"gogoproto.jsontag":"attributes,omitempty"}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.type="",t.attributes=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.type=e.string();break;case 2:n.attributes.push(kE.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.type&&t.tag(1,p.LengthDelimited).string(e.type);for(let a=0;a<e.attributes.length;a++)kE.internalBinaryWrite(e.attributes[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kE=new class extends cK{constructor(){super("cometbft.abci.v1.EventAttribute",[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"index",kind:"scalar",T:8}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.key="",t.value="",t.index=!1,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.key=e.string();break;case 2:n.value=e.string();break;case 3:n.index=e.bool();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.key&&t.tag(1,p.LengthDelimited).string(e.key),""!==e.value&&t.tag(2,p.LengthDelimited).string(e.value),!1!==e.index&&t.tag(3,p.Varint).bool(e.index);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kB=new class extends cK{constructor(){super("cometbft.abci.v1.ExecTxResult",[{no:1,name:"code",kind:"scalar",T:13},{no:2,name:"data",kind:"scalar",T:12},{no:3,name:"log",kind:"scalar",T:9},{no:4,name:"info",kind:"scalar",T:9},{no:5,name:"gas_wanted",kind:"scalar",jsonName:"gas_wanted",T:3,L:0},{no:6,name:"gas_used",kind:"scalar",jsonName:"gas_used",T:3,L:0},{no:7,name:"events",kind:"message",repeat:2,T:()=>kT,options:{"gogoproto.nullable":!1,"gogoproto.jsontag":"events,omitempty"}},{no:8,name:"codespace",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.code=0,t.data=new Uint8Array(0),t.log="",t.info="",t.gasWanted=0n,t.gasUsed=0n,t.events=[],t.codespace="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.code=e.uint32();break;case 2:n.data=e.bytes();break;case 3:n.log=e.string();break;case 4:n.info=e.string();break;case 5:n.gasWanted=e.int64().toBigInt();break;case 6:n.gasUsed=e.int64().toBigInt();break;case 7:n.events.push(kT.internalBinaryRead(e,e.uint32(),r));break;case 8:n.codespace=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.code&&t.tag(1,p.Varint).uint32(e.code),e.data.length&&t.tag(2,p.LengthDelimited).bytes(e.data),""!==e.log&&t.tag(3,p.LengthDelimited).string(e.log),""!==e.info&&t.tag(4,p.LengthDelimited).string(e.info),0n!==e.gasWanted&&t.tag(5,p.Varint).int64(e.gasWanted),0n!==e.gasUsed&&t.tag(6,p.Varint).int64(e.gasUsed);for(let a=0;a<e.events.length;a++)kT.internalBinaryWrite(e.events[a],t.tag(7,p.LengthDelimited).fork(),r).join();""!==e.codespace&&t.tag(8,p.LengthDelimited).string(e.codespace);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cometbft.abci.v1.TxResult",[{no:1,name:"height",kind:"scalar",T:3,L:0},{no:2,name:"index",kind:"scalar",T:13},{no:3,name:"tx",kind:"scalar",T:12},{no:4,name:"result",kind:"message",T:()=>kB,options:{"gogoproto.nullable":!1}}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.height=0n,t.index=0,t.tx=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.height=e.int64().toBigInt();break;case 2:n.index=e.uint32();break;case 3:n.tx=e.bytes();break;case 4:n.result=kB.internalBinaryRead(e,e.uint32(),r,n.result);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.height&&t.tag(1,p.Varint).int64(e.height),0!==e.index&&t.tag(2,p.Varint).uint32(e.index),e.tx.length&&t.tag(3,p.LengthDelimited).bytes(e.tx),e.result&&kB.internalBinaryWrite(e.result,t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var kC=new class extends cK{constructor(){super("cometbft.abci.v1.Validator",[{no:1,name:"address",kind:"scalar",T:12},{no:3,name:"power",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.address=new Uint8Array(0),t.power=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.address=e.bytes();break;case 3:n.power=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.address.length&&t.tag(1,p.LengthDelimited).bytes(e.address),0n!==e.power&&t.tag(3,p.Varint).int64(e.power);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kU=new class extends cK{constructor(){super("cometbft.abci.v1.ValidatorUpdate",[{no:2,name:"power",kind:"scalar",T:3,L:0},{no:3,name:"pub_key_bytes",kind:"scalar",T:12},{no:4,name:"pub_key_type",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.power=0n,t.pubKeyBytes=new Uint8Array(0),t.pubKeyType="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 2:n.power=e.int64().toBigInt();break;case 3:n.pubKeyBytes=e.bytes();break;case 4:n.pubKeyType=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.power&&t.tag(2,p.Varint).int64(e.power),e.pubKeyBytes.length&&t.tag(3,p.LengthDelimited).bytes(e.pubKeyBytes),""!==e.pubKeyType&&t.tag(4,p.LengthDelimited).string(e.pubKeyType);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kI=new class extends cK{constructor(){super("cometbft.abci.v1.VoteInfo",[{no:1,name:"validator",kind:"message",T:()=>kC,options:{"gogoproto.nullable":!1}},{no:3,name:"block_id_flag",kind:"enum",T:()=>["cometbft.types.v1.BlockIDFlag",yh]}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.blockIdFlag=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.validator=kC.internalBinaryRead(e,e.uint32(),r,n.validator);break;case 3:n.blockIdFlag=e.int32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.validator&&kC.internalBinaryWrite(e.validator,t.tag(1,p.LengthDelimited).fork(),r).join(),0!==e.blockIdFlag&&t.tag(3,p.Varint).int32(e.blockIdFlag);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kN=new class extends cK{constructor(){super("cometbft.abci.v1.ExtendedVoteInfo",[{no:1,name:"validator",kind:"message",T:()=>kC,options:{"gogoproto.nullable":!1}},{no:3,name:"vote_extension",kind:"scalar",T:12},{no:4,name:"extension_signature",kind:"scalar",T:12},{no:5,name:"block_id_flag",kind:"enum",T:()=>["cometbft.types.v1.BlockIDFlag",yh]}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.voteExtension=new Uint8Array(0),t.extensionSignature=new Uint8Array(0),t.blockIdFlag=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.validator=kC.internalBinaryRead(e,e.uint32(),r,n.validator);break;case 3:n.voteExtension=e.bytes();break;case 4:n.extensionSignature=e.bytes();break;case 5:n.blockIdFlag=e.int32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.validator&&kC.internalBinaryWrite(e.validator,t.tag(1,p.LengthDelimited).fork(),r).join(),e.voteExtension.length&&t.tag(3,p.LengthDelimited).bytes(e.voteExtension),e.extensionSignature.length&&t.tag(4,p.LengthDelimited).bytes(e.extensionSignature),0!==e.blockIdFlag&&t.tag(5,p.Varint).int32(e.blockIdFlag);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kR=new class extends cK{constructor(){super("cometbft.abci.v1.Misbehavior",[{no:1,name:"type",kind:"enum",T:()=>["cometbft.abci.v1.MisbehaviorType",yQ,"MISBEHAVIOR_TYPE_"]},{no:2,name:"validator",kind:"message",T:()=>kC,options:{"gogoproto.nullable":!1}},{no:3,name:"height",kind:"scalar",T:3,L:0},{no:4,name:"time",kind:"message",T:()=>yu,options:{"gogoproto.nullable":!1,"gogoproto.stdtime":!0}},{no:5,name:"total_voting_power",kind:"scalar",T:3,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.type=0,t.height=0n,t.totalVotingPower=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.type=e.int32();break;case 2:n.validator=kC.internalBinaryRead(e,e.uint32(),r,n.validator);break;case 3:n.height=e.int64().toBigInt();break;case 4:n.time=yu.internalBinaryRead(e,e.uint32(),r,n.time);break;case 5:n.totalVotingPower=e.int64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.type&&t.tag(1,p.Varint).int32(e.type),e.validator&&kC.internalBinaryWrite(e.validator,t.tag(2,p.LengthDelimited).fork(),r).join(),0n!==e.height&&t.tag(3,p.Varint).int64(e.height),e.time&&yu.internalBinaryWrite(e.time,t.tag(4,p.LengthDelimited).fork(),r).join(),0n!==e.totalVotingPower&&t.tag(5,p.Varint).int64(e.totalVotingPower);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kS=new class extends cK{constructor(){super("cometbft.abci.v1.Snapshot",[{no:1,name:"height",kind:"scalar",T:4,L:0},{no:2,name:"format",kind:"scalar",T:13},{no:3,name:"chunks",kind:"scalar",T:13},{no:4,name:"hash",kind:"scalar",T:12},{no:5,name:"metadata",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.height=0n,t.format=0,t.chunks=0,t.hash=new Uint8Array(0),t.metadata=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.height=e.uint64().toBigInt();break;case 2:n.format=e.uint32();break;case 3:n.chunks=e.uint32();break;case 4:n.hash=e.bytes();break;case 5:n.metadata=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.height&&t.tag(1,p.Varint).uint64(e.height),0!==e.format&&t.tag(2,p.Varint).uint32(e.format),0!==e.chunks&&t.tag(3,p.Varint).uint32(e.chunks),e.hash.length&&t.tag(4,p.LengthDelimited).bytes(e.hash),e.metadata.length&&t.tag(5,p.LengthDelimited).bytes(e.metadata);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kA=new class extends cK{constructor(){super("cosmos.base.abci.v1beta1.TxResponse",[{no:1,name:"height",kind:"scalar",T:3,L:0},{no:2,name:"txhash",kind:"scalar",T:9,options:{"gogoproto.customname":"TxHash"}},{no:3,name:"codespace",kind:"scalar",T:9},{no:4,name:"code",kind:"scalar",T:13},{no:5,name:"data",kind:"scalar",T:9},{no:6,name:"raw_log",kind:"scalar",T:9},{no:7,name:"logs",kind:"message",repeat:2,T:()=>kP,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"ABCIMessageLogs"}},{no:8,name:"info",kind:"scalar",T:9},{no:9,name:"gas_wanted",kind:"scalar",T:3,L:0},{no:10,name:"gas_used",kind:"scalar",T:3,L:0},{no:11,name:"tx",kind:"message",T:()=>dl},{no:12,name:"timestamp",kind:"scalar",T:9},{no:13,name:"events",kind:"message",repeat:2,T:()=>kT,options:{"gogoproto.nullable":!1}}],{"gogoproto.goproto_getters":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.height=0n,t.txhash="",t.codespace="",t.code=0,t.data="",t.rawLog="",t.logs=[],t.info="",t.gasWanted=0n,t.gasUsed=0n,t.timestamp="",t.events=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.height=e.int64().toBigInt();break;case 2:n.txhash=e.string();break;case 3:n.codespace=e.string();break;case 4:n.code=e.uint32();break;case 5:n.data=e.string();break;case 6:n.rawLog=e.string();break;case 7:n.logs.push(kP.internalBinaryRead(e,e.uint32(),r));break;case 8:n.info=e.string();break;case 9:n.gasWanted=e.int64().toBigInt();break;case 10:n.gasUsed=e.int64().toBigInt();break;case 11:n.tx=dl.internalBinaryRead(e,e.uint32(),r,n.tx);break;case 12:n.timestamp=e.string();break;case 13:n.events.push(kT.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.height&&t.tag(1,p.Varint).int64(e.height),""!==e.txhash&&t.tag(2,p.LengthDelimited).string(e.txhash),""!==e.codespace&&t.tag(3,p.LengthDelimited).string(e.codespace),0!==e.code&&t.tag(4,p.Varint).uint32(e.code),""!==e.data&&t.tag(5,p.LengthDelimited).string(e.data),""!==e.rawLog&&t.tag(6,p.LengthDelimited).string(e.rawLog);for(let a=0;a<e.logs.length;a++)kP.internalBinaryWrite(e.logs[a],t.tag(7,p.LengthDelimited).fork(),r).join();""!==e.info&&t.tag(8,p.LengthDelimited).string(e.info),0n!==e.gasWanted&&t.tag(9,p.Varint).int64(e.gasWanted),0n!==e.gasUsed&&t.tag(10,p.Varint).int64(e.gasUsed),e.tx&&dl.internalBinaryWrite(e.tx,t.tag(11,p.LengthDelimited).fork(),r).join(),""!==e.timestamp&&t.tag(12,p.LengthDelimited).string(e.timestamp);for(let a=0;a<e.events.length;a++)kT.internalBinaryWrite(e.events[a],t.tag(13,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kP=new class extends cK{constructor(){super("cosmos.base.abci.v1beta1.ABCIMessageLog",[{no:1,name:"msg_index",kind:"scalar",T:13,options:{"gogoproto.jsontag":"msg_index"}},{no:2,name:"log",kind:"scalar",T:9},{no:3,name:"events",kind:"message",repeat:2,T:()=>kD,options:{"gogoproto.nullable":!1,"gogoproto.castrepeated":"StringEvents"}}],{"gogoproto.stringer":!0})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.msgIndex=0,t.log="",t.events=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.msgIndex=e.uint32();break;case 2:n.log=e.string();break;case 3:n.events.push(kD.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0!==e.msgIndex&&t.tag(1,p.Varint).uint32(e.msgIndex),""!==e.log&&t.tag(2,p.LengthDelimited).string(e.log);for(let a=0;a<e.events.length;a++)kD.internalBinaryWrite(e.events[a],t.tag(3,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kD=new class extends cK{constructor(){super("cosmos.base.abci.v1beta1.StringEvent",[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"attributes",kind:"message",repeat:2,T:()=>kL,options:{"gogoproto.nullable":!1}}],{"gogoproto.stringer":!0})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.type="",t.attributes=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.type=e.string();break;case 2:n.attributes.push(kL.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.type&&t.tag(1,p.LengthDelimited).string(e.type);for(let a=0;a<e.attributes.length;a++)kL.internalBinaryWrite(e.attributes[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kL=new class extends cK{constructor(){super("cosmos.base.abci.v1beta1.Attribute",[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.key="",t.value="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.key=e.string();break;case 2:n.value=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.key&&t.tag(1,p.LengthDelimited).string(e.key),""!==e.value&&t.tag(2,p.LengthDelimited).string(e.value);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kO=new class extends cK{constructor(){super("cosmos.base.abci.v1beta1.GasInfo",[{no:1,name:"gas_wanted",kind:"scalar",T:4,L:0},{no:2,name:"gas_used",kind:"scalar",T:4,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.gasWanted=0n,t.gasUsed=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.gasWanted=e.uint64().toBigInt();break;case 2:n.gasUsed=e.uint64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.gasWanted&&t.tag(1,p.Varint).uint64(e.gasWanted),0n!==e.gasUsed&&t.tag(2,p.Varint).uint64(e.gasUsed);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kF=new class extends cK{constructor(){super("cosmos.base.abci.v1beta1.Result",[{no:1,name:"data",kind:"scalar",T:12},{no:2,name:"log",kind:"scalar",T:9},{no:3,name:"events",kind:"message",repeat:2,T:()=>kT,options:{"gogoproto.nullable":!1}},{no:4,name:"msg_responses",kind:"message",repeat:2,T:()=>dl}],{"gogoproto.goproto_getters":!1})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.data=new Uint8Array(0),t.log="",t.events=[],t.msgResponses=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.data=e.bytes();break;case 2:n.log=e.string();break;case 3:n.events.push(kT.internalBinaryRead(e,e.uint32(),r));break;case 4:n.msgResponses.push(dl.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.data.length&&t.tag(1,p.LengthDelimited).bytes(e.data),""!==e.log&&t.tag(2,p.LengthDelimited).string(e.log);for(let a=0;a<e.events.length;a++)kT.internalBinaryWrite(e.events[a],t.tag(3,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.msgResponses.length;a++)dl.internalBinaryWrite(e.msgResponses[a],t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cosmos.base.abci.v1beta1.SimulationResponse",[{no:1,name:"gas_info",kind:"message",T:()=>kO,options:{"gogoproto.nullable":!1,"gogoproto.embed":!0}},{no:2,name:"result",kind:"message",T:()=>kF}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.gasInfo=kO.internalBinaryRead(e,e.uint32(),r,n.gasInfo);break;case 2:n.result=kF.internalBinaryRead(e,e.uint32(),r,n.result);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.gasInfo&&kO.internalBinaryWrite(e.gasInfo,t.tag(1,p.LengthDelimited).fork(),r).join(),e.result&&kF.internalBinaryWrite(e.result,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var k_=new class extends cK{constructor(){super("cosmos.base.abci.v1beta1.MsgData",[{no:1,name:"msg_type",kind:"scalar",T:9},{no:2,name:"data",kind:"scalar",T:12}],{"gogoproto.stringer":!0})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.msgType="",t.data=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.msgType=e.string();break;case 2:n.data=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.msgType&&t.tag(1,p.LengthDelimited).string(e.msgType),e.data.length&&t.tag(2,p.LengthDelimited).bytes(e.data);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};new class extends cK{constructor(){super("cosmos.base.abci.v1beta1.TxMsgData",[{no:1,name:"data",kind:"message",repeat:2,T:()=>k_},{no:2,name:"msg_responses",kind:"message",repeat:2,T:()=>dl}],{"gogoproto.stringer":!0})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.data=[],t.msgResponses=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.data.push(k_.internalBinaryRead(e,e.uint32(),r));break;case 2:n.msgResponses.push(dl.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.data.length;a++)k_.internalBinaryWrite(e.data[a],t.tag(1,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.msgResponses.length;a++)dl.internalBinaryWrite(e.msgResponses[a],t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cosmos.base.abci.v1beta1.SearchTxsResult",[{no:1,name:"total_count",kind:"scalar",T:4,L:0},{no:2,name:"count",kind:"scalar",T:4,L:0},{no:3,name:"page_number",kind:"scalar",T:4,L:0},{no:4,name:"page_total",kind:"scalar",T:4,L:0},{no:5,name:"limit",kind:"scalar",T:4,L:0},{no:6,name:"txs",kind:"message",repeat:2,T:()=>kA}],{"gogoproto.stringer":!0})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.totalCount=0n,t.count=0n,t.pageNumber=0n,t.pageTotal=0n,t.limit=0n,t.txs=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.totalCount=e.uint64().toBigInt();break;case 2:n.count=e.uint64().toBigInt();break;case 3:n.pageNumber=e.uint64().toBigInt();break;case 4:n.pageTotal=e.uint64().toBigInt();break;case 5:n.limit=e.uint64().toBigInt();break;case 6:n.txs.push(kA.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.totalCount&&t.tag(1,p.Varint).uint64(e.totalCount),0n!==e.count&&t.tag(2,p.Varint).uint64(e.count),0n!==e.pageNumber&&t.tag(3,p.Varint).uint64(e.pageNumber),0n!==e.pageTotal&&t.tag(4,p.Varint).uint64(e.pageTotal),0n!==e.limit&&t.tag(5,p.Varint).uint64(e.limit);for(let a=0;a<e.txs.length;a++)kA.internalBinaryWrite(e.txs[a],t.tag(6,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},new class extends cK{constructor(){super("cosmos.base.abci.v1beta1.SearchBlocksResult",[{no:1,name:"total_count",kind:"scalar",T:3,L:0},{no:2,name:"count",kind:"scalar",T:3,L:0},{no:3,name:"page_number",kind:"scalar",T:3,L:0},{no:4,name:"page_total",kind:"scalar",T:3,L:0},{no:5,name:"limit",kind:"scalar",T:3,L:0},{no:6,name:"blocks",kind:"message",repeat:2,T:()=>yO}],{"gogoproto.stringer":!0})}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.totalCount=0n,t.count=0n,t.pageNumber=0n,t.pageTotal=0n,t.limit=0n,t.blocks=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.totalCount=e.int64().toBigInt();break;case 2:n.count=e.int64().toBigInt();break;case 3:n.pageNumber=e.int64().toBigInt();break;case 4:n.pageTotal=e.int64().toBigInt();break;case 5:n.limit=e.int64().toBigInt();break;case 6:n.blocks.push(yO.internalBinaryRead(e,e.uint32(),r));break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.totalCount&&t.tag(1,p.Varint).int64(e.totalCount),0n!==e.count&&t.tag(2,p.Varint).int64(e.count),0n!==e.pageNumber&&t.tag(3,p.Varint).int64(e.pageNumber),0n!==e.pageTotal&&t.tag(4,p.Varint).int64(e.pageTotal),0n!==e.limit&&t.tag(5,p.Varint).int64(e.limit);for(let a=0;a<e.blocks.length;a++)yO.internalBinaryWrite(e.blocks[a],t.tag(6,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}};var kM=(e=>(e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ASC=1]="ASC",e[e.DESC=2]="DESC",e))(kM||{}),kj=(e=>(e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.BLOCK=1]="BLOCK",e[e.SYNC=2]="SYNC",e[e.ASYNC=3]="ASYNC",e))(kj||{}),k$=new class extends cK{constructor(){super("cosmos.tx.v1beta1.GetTxsEventRequest",[{no:1,name:"events",kind:"scalar",repeat:2,T:9},{no:2,name:"pagination",kind:"message",T:()=>cJ},{no:3,name:"order_by",kind:"enum",T:()=>["cosmos.tx.v1beta1.OrderBy",kM,"ORDER_BY_"]},{no:4,name:"page",kind:"scalar",T:4,L:0},{no:5,name:"limit",kind:"scalar",T:4,L:0},{no:6,name:"query",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.events=[],t.orderBy=0,t.page=0n,t.limit=0n,t.query="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.events.push(e.string());break;case 2:n.pagination=cJ.internalBinaryRead(e,e.uint32(),r,n.pagination);break;case 3:n.orderBy=e.int32();break;case 4:n.page=e.uint64().toBigInt();break;case 5:n.limit=e.uint64().toBigInt();break;case 6:n.query=e.string();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let r=0;r<e.events.length;r++)t.tag(1,p.LengthDelimited).string(e.events[r]);e.pagination&&cJ.internalBinaryWrite(e.pagination,t.tag(2,p.LengthDelimited).fork(),r).join(),0!==e.orderBy&&t.tag(3,p.Varint).int32(e.orderBy),0n!==e.page&&t.tag(4,p.Varint).uint64(e.page),0n!==e.limit&&t.tag(5,p.Varint).uint64(e.limit),""!==e.query&&t.tag(6,p.LengthDelimited).string(e.query);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kW=new class extends cK{constructor(){super("cosmos.tx.v1beta1.GetTxsEventResponse",[{no:1,name:"txs",kind:"message",repeat:2,T:()=>dh},{no:2,name:"tx_responses",kind:"message",repeat:2,T:()=>kA},{no:3,name:"pagination",kind:"message",T:()=>cZ},{no:4,name:"total",kind:"scalar",T:4,L:0}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.txs=[],t.txResponses=[],t.total=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();switch(t){case 1:n.txs.push(dh.internalBinaryRead(e,e.uint32(),r));break;case 2:n.txResponses.push(kA.internalBinaryRead(e,e.uint32(),r));break;case 3:n.pagination=cZ.internalBinaryRead(e,e.uint32(),r,n.pagination);break;case 4:n.total=e.uint64().toBigInt();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.txs.length;a++)dh.internalBinaryWrite(e.txs[a],t.tag(1,p.LengthDelimited).fork(),r).join();for(let a=0;a<e.txResponses.length;a++)kA.internalBinaryWrite(e.txResponses[a],t.tag(2,p.LengthDelimited).fork(),r).join();e.pagination&&cZ.internalBinaryWrite(e.pagination,t.tag(3,p.LengthDelimited).fork(),r).join(),0n!==e.total&&t.tag(4,p.Varint).uint64(e.total);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kz=new class extends cK{constructor(){super("cosmos.tx.v1beta1.BroadcastTxRequest",[{no:1,name:"tx_bytes",kind:"scalar",T:12},{no:2,name:"mode",kind:"enum",T:()=>["cosmos.tx.v1beta1.BroadcastMode",kj,"BROADCAST_MODE_"]}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.txBytes=new Uint8Array(0),t.mode=0,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.txBytes=e.bytes();break;case 2:n.mode=e.int32();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.txBytes.length&&t.tag(1,p.LengthDelimited).bytes(e.txBytes),0!==e.mode&&t.tag(2,p.Varint).int32(e.mode);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kV=new class extends cK{constructor(){super("cosmos.tx.v1beta1.BroadcastTxResponse",[{no:1,name:"tx_response",kind:"message",T:()=>kA}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.txResponse=kA.internalBinaryRead(e,e.uint32(),r,n.txResponse);else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.txResponse&&kA.internalBinaryWrite(e.txResponse,t.tag(1,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kH=new class extends cK{constructor(){super("cosmos.tx.v1beta1.SimulateRequest",[{no:1,name:"tx",kind:"message",T:()=>dh},{no:2,name:"tx_bytes",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.txBytes=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.tx=dh.internalBinaryRead(e,e.uint32(),r,n.tx);break;case 2:n.txBytes=e.bytes();break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.tx&&dh.internalBinaryWrite(e.tx,t.tag(1,p.LengthDelimited).fork(),r).join(),e.txBytes.length&&t.tag(2,p.LengthDelimited).bytes(e.txBytes);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kq=new class extends cK{constructor(){super("cosmos.tx.v1beta1.SimulateResponse",[{no:1,name:"gas_info",kind:"message",T:()=>kO},{no:2,name:"result",kind:"message",T:()=>kF}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.gasInfo=kO.internalBinaryRead(e,e.uint32(),r,n.gasInfo);break;case 2:n.result=kF.internalBinaryRead(e,e.uint32(),r,n.result);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.gasInfo&&kO.internalBinaryWrite(e.gasInfo,t.tag(1,p.LengthDelimited).fork(),r).join(),e.result&&kF.internalBinaryWrite(e.result,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kG=new class extends cK{constructor(){super("cosmos.tx.v1beta1.GetTxRequest",[{no:1,name:"hash",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.hash="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();if(1===t)n.hash=e.string();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.hash&&t.tag(1,p.LengthDelimited).string(e.hash);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},kK=new g6("cosmos.tx.v1beta1.Service",[{name:"Simulate",options:{"google.api.http":{post:"/cosmos/tx/v1beta1/simulate",body:"*"}},I:kH,O:kq},{name:"GetTx",options:{"google.api.http":{get:"/cosmos/tx/v1beta1/txs/{hash}"}},I:kG,O:new class extends cK{constructor(){super("cosmos.tx.v1beta1.GetTxResponse",[{no:1,name:"tx",kind:"message",T:()=>dh},{no:2,name:"tx_response",kind:"message",T:()=>kA}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.tx=dh.internalBinaryRead(e,e.uint32(),r,n.tx);break;case 2:n.txResponse=kA.internalBinaryRead(e,e.uint32(),r,n.txResponse);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.tx&&dh.internalBinaryWrite(e.tx,t.tag(1,p.LengthDelimited).fork(),r).join(),e.txResponse&&kA.internalBinaryWrite(e.txResponse,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}}},{name:"BroadcastTx",options:{"google.api.http":{post:"/cosmos/tx/v1beta1/txs",body:"*"}},I:kz,O:kV},{name:"GetTxsEvent",options:{"google.api.http":{get:"/cosmos/tx/v1beta1/txs"}},I:k$,O:kW},{name:"GetBlockWithTxs",options:{"google.api.http":{get:"/cosmos/tx/v1beta1/txs/block/{height}"}},I:new class extends cK{constructor(){super("cosmos.tx.v1beta1.GetBlockWithTxsRequest",[{no:1,name:"height",kind:"scalar",T:3,L:0},{no:2,name:"pagination",kind:"message",T:()=>cJ}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.height=0n,void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.height=e.int64().toBigInt();break;case 2:n.pagination=cJ.internalBinaryRead(e,e.uint32(),r,n.pagination);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){0n!==e.height&&t.tag(1,p.Varint).int64(e.height),e.pagination&&cJ.internalBinaryWrite(e.pagination,t.tag(2,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},O:new class extends cK{constructor(){super("cosmos.tx.v1beta1.GetBlockWithTxsResponse",[{no:1,name:"txs",kind:"message",repeat:2,T:()=>dh},{no:2,name:"block_id",kind:"message",T:()=>yT},{no:3,name:"block",kind:"message",T:()=>yO},{no:4,name:"pagination",kind:"message",T:()=>cZ}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.txs=[],void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();switch(t){case 1:n.txs.push(dh.internalBinaryRead(e,e.uint32(),r));break;case 2:n.blockId=yT.internalBinaryRead(e,e.uint32(),r,n.blockId);break;case 3:n.block=yO.internalBinaryRead(e,e.uint32(),r,n.block);break;case 4:n.pagination=cZ.internalBinaryRead(e,e.uint32(),r,n.pagination);break;default:let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){for(let a=0;a<e.txs.length;a++)dh.internalBinaryWrite(e.txs[a],t.tag(1,p.LengthDelimited).fork(),r).join();e.blockId&&yT.internalBinaryWrite(e.blockId,t.tag(2,p.LengthDelimited).fork(),r).join(),e.block&&yO.internalBinaryWrite(e.block,t.tag(3,p.LengthDelimited).fork(),r).join(),e.pagination&&cZ.internalBinaryWrite(e.pagination,t.tag(4,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}}},{name:"TxDecode",options:{"google.api.http":{post:"/cosmos/tx/v1beta1/decode",body:"*"}},I:new class extends cK{constructor(){super("cosmos.tx.v1beta1.TxDecodeRequest",[{no:1,name:"tx_bytes",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.txBytes=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();if(1===t)n.txBytes=e.bytes();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.txBytes.length&&t.tag(1,p.LengthDelimited).bytes(e.txBytes);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},O:new class extends cK{constructor(){super("cosmos.tx.v1beta1.TxDecodeResponse",[{no:1,name:"tx",kind:"message",T:()=>dh}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.tx=dh.internalBinaryRead(e,e.uint32(),r,n.tx);else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.tx&&dh.internalBinaryWrite(e.tx,t.tag(1,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}}},{name:"TxEncode",options:{"google.api.http":{post:"/cosmos/tx/v1beta1/encode",body:"*"}},I:new class extends cK{constructor(){super("cosmos.tx.v1beta1.TxEncodeRequest",[{no:1,name:"tx",kind:"message",T:()=>dh}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.tx=dh.internalBinaryRead(e,e.uint32(),r,n.tx);else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.tx&&dh.internalBinaryWrite(e.tx,t.tag(1,p.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},O:new class extends cK{constructor(){super("cosmos.tx.v1beta1.TxEncodeResponse",[{no:1,name:"tx_bytes",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.txBytes=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.txBytes=e.bytes();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.txBytes.length&&t.tag(1,p.LengthDelimited).bytes(e.txBytes);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}}},{name:"TxEncodeAmino",options:{"google.api.http":{post:"/cosmos/tx/v1beta1/encode/amino",body:"*"}},I:new class extends cK{constructor(){super("cosmos.tx.v1beta1.TxEncodeAminoRequest",[{no:1,name:"amino_json",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.aminoJson="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.aminoJson=e.string();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.aminoJson&&t.tag(1,p.LengthDelimited).string(e.aminoJson);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},O:new class extends cK{constructor(){super("cosmos.tx.v1beta1.TxEncodeAminoResponse",[{no:1,name:"amino_binary",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.aminoBinary=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.aminoBinary=e.bytes();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.aminoBinary.length&&t.tag(1,p.LengthDelimited).bytes(e.aminoBinary);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}}},{name:"TxDecodeAmino",options:{"google.api.http":{post:"/cosmos/tx/v1beta1/decode/amino",body:"*"}},I:new class extends cK{constructor(){super("cosmos.tx.v1beta1.TxDecodeAminoRequest",[{no:1,name:"amino_binary",kind:"scalar",T:12}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.aminoBinary=new Uint8Array(0),void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;
2051){let[t,a]=e.tag();if(1===t)n.aminoBinary=e.bytes();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){e.aminoBinary.length&&t.tag(1,p.LengthDelimited).bytes(e.aminoBinary);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}},O:new class extends cK{constructor(){super("cosmos.tx.v1beta1.TxDecodeAminoResponse",[{no:1,name:"amino_json",kind:"scalar",T:9}])}create(e){let t=globalThis.Object.create(this.messagePrototype);return t.aminoJson="",void 0!==e&&c$(this,t,e),t}internalBinaryRead(e,t,r,a){let n=a??this.create(),i=e.pos+t;for(;e.pos<i;){let[t,a]=e.tag();if(1===t)n.aminoJson=e.string();else{let i=r.readUnknownField;if("throw"===i)throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);let o=e.skip(a);!1!==i&&(!0===i?d.onRead:i)(this.typeName,n,t,a,o)}}return n}internalBinaryWrite(e,t,r){""!==e.aminoJson&&t.tag(1,p.LengthDelimited).string(e.aminoJson);let a=r.writeUnknownFields;return!1!==a&&(!0==a?d.onWrite:a)(this.typeName,e,t),t}}}]),kJ=class{constructor(e){this._transport=e,this.typeName=kK.typeName,this.methods=kK.methods,this.options=kK.options}simulate(e,t){let r=this.methods[0],a=this._transport.mergeOptions(t);return ft("unary",this._transport,r,a,e)}getTx(e,t){let r=this.methods[1],a=this._transport.mergeOptions(t);return ft("unary",this._transport,r,a,e)}broadcastTx(e,t){let r=this.methods[2],a=this._transport.mergeOptions(t);return ft("unary",this._transport,r,a,e)}getTxsEvent(e,t){let r=this.methods[3],a=this._transport.mergeOptions(t);return ft("unary",this._transport,r,a,e)}getBlockWithTxs(e,t){let r=this.methods[4],a=this._transport.mergeOptions(t);return ft("unary",this._transport,r,a,e)}txDecode(e,t){let r=this.methods[5],a=this._transport.mergeOptions(t);return ft("unary",this._transport,r,a,e)}txEncode(e,t){let r=this.methods[6],a=this._transport.mergeOptions(t);return ft("unary",this._transport,r,a,e)}txEncodeAmino(e,t){let r=this.methods[7],a=this._transport.mergeOptions(t);return ft("unary",this._transport,r,a,e)}txDecodeAmino(e,t){let r=this.methods[8],a=this._transport.mergeOptions(t);return ft("unary",this._transport,r,a,e)}};dc.DIRECT,dc.LEGACY_AMINO_JSON,dc.LEGACY_AMINO_JSON,dc.EIP712_V2;var kZ=class e{static encode(e){return c6(dg.toBinary(e))}static decode(e){return dg.fromBinary(c3(e))}static hash(t){let r;return r=e.encode(t),c2((0,S.sc)(c3(r))).toUpperCase()}},kQ=e=>{if(void 0===e.signed)return e;let t=dg.create();return t.authInfoBytes=e.signed.authInfoBytes,t.bodyBytes=e.signed.bodyBytes,t.signatures=[c3(e.signature.signature)],t},kX=class extends yd{constructor(...e){super(...e),dI(this,"module","TxGrpcApi")}get client(){return this.initClient(kJ)}async fetchTx(e){let t=kG.create();t.hash=e;try{let r=(await this.executeGrpcCall(t,this.client.getTx.bind(this.client))).txResponse;if(!r)throw new eX(Error(`The transaction with ${e} is not found`),{context:"TxGrpcApi",contextModule:"fetch-tx"});if(0!==r.code)throw new eK(Error(r.rawLog),{contextCode:Number(r.code),contextModule:r.codespace});return{...r,height:Number(r.height),gasWanted:Number(r.gasWanted),gasUsed:Number(r.gasUsed),txHash:r.txhash}}catch(e){if(e instanceof eK||e instanceof eX)throw e;throw new eX(Error("There was an issue while fetching transaction details"),{context:"TxGrpcApi",contextModule:"fetch-tx"})}}async fetchTxPoll(e,t=to){for(let r=0;r<=t/700;r+=1){try{let t=await this.fetchTx(e);if(t)return t}catch(e){if(e instanceof eK)throw e}await new Promise(e=>setTimeout(e,700))}throw new eX(Error(`Transaction was not included in a block before timeout of ${t}ms`),{context:"TxGrpcApi",contextModule:"fetch-tx-poll"})}async simulate(e){let t=dg.create({...e}),r=kH.create();0===t.signatures.length&&(t.signatures=[new Uint8Array(0)]),r.txBytes=dg.toBinary(t);try{var a,n,i;let e=await this.executeGrpcCall(r,this.client.simulate.bind(this.client));return{result:{...e.result,data:(null==(a=e.result)?void 0:a.data)||"",log:(null==(n=e.result)?void 0:n.log)||"",eventsList:(null==(i=e.result)?void 0:i.events)||[]},gasInfo:{...e.gasInfo,gasWanted:e.gasInfo?Number(e.gasInfo.gasWanted):0,gasUsed:e.gasInfo?Number(e.gasInfo.gasUsed):0}}}
2051catch(e){throw new eK(e,{context:"TxGrpcApi.simulate",skipParsing:!0})}}async broadcast(e,t){let r=(null==t?void 0:t.mode)||kj.SYNC,a=(null==t?void 0:t.timeout)||ta((null==t?void 0:t.txTimeout)||120).times(700).toNumber(),n=kz.create();n.txBytes=dg.toBinary(e),n.mode=r;try{let e=(await this.executeGrpcCall(n,this.client.broadcastTx.bind(this.client))).txResponse;if(!e)throw new eX(Error("The transaction has failed to be broadcasted"),{context:"TxGrpcApi.broadcast",contextModule:"broadcast"});if(0!==e.code)throw new eK(Error(e.rawLog),{contextCode:Number(e.code),contextModule:e.codespace});return await this.fetchTxPoll(e.txhash,a)}catch(e){if(e instanceof eK||e instanceof eX)throw e;throw new eK(Error(e))}}async broadcastBlock(e){let t=kz.create();t.txBytes=dg.toBinary(e),t.mode=kj.BLOCK;try{let e=(await this.executeGrpcCall(t,this.client.broadcastTx.bind(this.client))).txResponse;if(!e)throw new ez(Error("There was an issue broadcasting the transaction"));let r={...e,height:Number(e.height),gasWanted:Number(e.gasWanted),gasUsed:Number(e.gasUsed),txHash:e.txhash};if(0!==r.code)throw new eK(Error(r.rawLog),{contextCode:r.code,contextModule:r.codespace});return r}catch(e){if(e instanceof eK)throw e;throw new eK(Error(e))}}},kY={Sync:"BROADCAST_MODE_SYNC",Block:"BROADCAST_MODE_BLOCK"},k0=class{constructor(e,t){dI(this,"httpClient",void 0),this.httpClient=new ab(e,{headers:{Accept:"application/json"},timeout:(null==t?void 0:t.timeout)||15e3})}async fetchTx(e,t={}){try{let{tx_response:r}=await this.getRaw(`/cosmos/tx/v1beta1/txs/${e}`,t);if(!r)throw new eG(Error(`The transaction with ${e} is not found`),{context:`/cosmos/tx/v1beta1/txs/${e}`,contextModule:"TxRestApi.fetch-tx"});if(0!==parseInt(r.code.toString(),10))throw new eK(Error(r.raw_log),{contextCode:r.code,contextModule:r.codespace});return{...r,rawLog:r.raw_log,gasWanted:parseInt(r.gas_wanted,10),gasUsed:parseInt(r.gas_used,10),height:parseInt(r.height,10),txHash:r.txhash}}catch(t){if(t instanceof eK||t instanceof eG)throw t;throw new eG(Error("There was an issue while fetching transaction details"),{context:`/cosmos/tx/v1beta1/txs/${e}`,contextModule:"TxRestApi.fetch-tx"})}}async fetchTxPoll(e,t=to||6e4){for(let r=0;r<=t/700;r+=1){try{let t=await this.fetchTx(e);if(t)return t}catch(e){if(e instanceof eK)throw e}await new Promise(e=>setTimeout(e,700))}throw new eG(Error(`Transaction was not included in a block before timeout of ${t}ms`),{context:`/cosmos/tx/v1beta1/txs/${e}`,contextModule:"TxRestApi.fetch-tx-poll"})}async simulate(e){let t=dg.create({...e});0===t.signatures.length&&(t.signatures=[new Uint8Array(0)]);try{let e=await this.postRaw("/cosmos/tx/v1beta1/simulate",{tx_bytes:kZ.encode(t)});return{result:{data:e.result.data,log:e.result.log,eventsList:e.result.events},gasInfo:{gasWanted:parseInt(e.gas_info.gas_wanted,10),gasUsed:parseInt(e.gas_info.gas_used,10)}}}catch(e){throw new eK(Error(e))}}async broadcast(e,t){let r=(null==t?void 0:t.timeout)||ta((null==t?void 0:t.txTimeout)||120).times(700).toNumber();try{let{tx_response:t}=await this.broadcastTx(e,kY.Sync);if(!t)throw new eG(Error("The transaction has failed to be broadcasted"),{context:"TxRestApi.broadcast",contextModule:"broadcast"});if(0!==t.code)throw new eK(Error(t.raw_log),{contextCode:t.code,contextModule:t.codespace});return this.fetchTxPoll(t.txhash,r)}catch(e){throw e instanceof eG&&e.code!==l.OK,e}}async broadcastBlock(e){let t=await this.broadcastTx(e,kY.Block);try{let{tx_response:e}=t;if(0!==e.code)throw new eK(Error(e.raw_log),{contextCode:e.code,contextModule:e.codespace});return{txHash:e.txhash,rawLog:e.raw_log,gasWanted:parseInt(e.gas_wanted||"0",10),gasUsed:parseInt(e.gas_used||"0",10),height:parseInt(e.height||"0",10),logs:e.logs||[],code:e.code,codespace:e.codespace,data:e.data,info:e.info,timestamp:e.timestamp||"0"}}catch(e){if(e instanceof eK)throw e;throw new eK(Error(e))}}async broadcastTx(e,t=kY.Sync){return await this.postRaw("cosmos/tx/v1beta1/txs",{tx_bytes:kZ.encode(e),mode:t})}async getRaw(e,t={}){try{return await this.httpClient.get(e,t).then(e=>e.data)}catch(t){if(r3.isAxiosError(t)){if("ECONNABORTED"===t.code)throw new eG(Error(t.message),{code:l.REQUEST_TOO_LONG,context:e});throw new eG(Error(cX(t,e)),{context:e,code:t.response?t.response.status:l.BAD_REQUEST})}throw new eG(Error(t.message),{context:e,code:em})}}async postRaw(e,t={}){try{return await this.httpClient.post(e,t).then(e=>e.data)}catch(t){if(r3.isAxiosError(t))throw new eG(Error(cX(t,e)),{code:t.response?t.response.status:l.BAD_REQUEST,context:e,contextModule:eg.Post});throw new eG(Error(t.message),{code:em,context:e,contextModule:eg.Post})}}},k1=(e,t)=>{let r=ta((null==t?void 0:t.txTimeout)||120).times(700).toNumber();return t.endpoints.grpc?new kX(t.endpoints.grpc).fetchTxPoll(e,r):new k0(t.endpoints.rest).fetchTxPoll(e,r)};new tr(888).toString(16);var k2={Unknown:"unknown"},k3={Buy:"buy"},k6={Booked:"booked"},k8={Insert:"insert",Update:"update"},k7=(0,L.f1)(Z(),1),k4=class e{static grpcRfqRequestToRfqRequest(e){return{margin:e.margin,status:e.status,marketId:e.marketId,quantity:e.quantity,direction:e.direction,rfqId:Number(e.rfqId),worstPrice:e.worstPrice,expiry:Number(e.expiry),height:Number(e.height),createdAt:Number(e.createdAt),updatedAt:Number(e.updatedAt),clientId:e.clientId.toString(),requestAddress:e.requestAddress,transactionTime:Number(e.transactionTime)}}static grpcRfqQuoteToRfqQuote(e){var t,r;return{price:e.price,maker:e.maker,taker:e.taker,margin:e.margin,status:e.status,chainId:e.chainId,marketId:e.marketId,quantity:e.quantity,signature:e.signature,rfqId:Number(e.rfqId),height:Number(e.height),createdAt:Number(e.createdAt),updatedAt:Number(e.updatedAt),eventTime:Number(e.eventTime),takerDirection:e.takerDirection,contractAddress:e.contractAddress,minFillQuantity:e.minFillQuantity,transactionTime:Number(e.transactionTime),makerSubaccountNonce:Number(e.makerSubaccountNonce),expiry:{...(null==(t=e.expiry)?void 0:t.height)&&{height:Number(e.expiry.height)},...(null==(r=e.expiry)?void 0:r.timestamp)&&{timestamp:Number(e.expiry.timestamp)}}}}static grpcRfqSettlementToRfqSettlement(e){return{cid:e.cid,taker:e.taker,margin:e.margin,marketId:e.marketId,quantity:e.quantity,rfqId:Number(e.rfqId),direction:e.direction,worstPrice:e.worstPrice,height:Number(e.height),createdAt:Number(e.createdAt),updatedAt:Number(e.updatedAt),eventTime:Number(e.eventTime),fallbackMargin:e.fallbackMargin,fallbackQuantity:e.fallbackQuantity,transactionTime:Number(e.transactionTime),unfilledAction:e.unfilledAction?{limit:e.unfilledAction.limit?{price:e.unfilledAction.limit.price}:void 0,market:e.unfilledAction.market?{}:void 0}:void 0}}static grpcRfqProcessedQuoteToRfqProcessedQuote(e){return{error:e.error,price:e.price,maker:e.maker,taker:e.taker,margin:e.margin,status:e.status,chainId:e.chainId,marketId:e.marketId,quantity:e.quantity,signature:e.signature,rfqId:Number(e.rfqId),height:Number(e.height),createdAt:Number(e.createdAt),updatedAt:Number(e.updatedAt),eventTime:Number(e.eventTime),executedMargin:e.executedMargin,takerDirection:e.takerDirection,contractAddress:e.contractAddress,minFillQuantity:e.minFillQuantity,executedQuantity:e.executedQuantity,transactionTime:Number(e.transactionTime),makerSubaccountNonce:Number(e.makerSubaccountNonce),expiry:e.expiry?{...e.expiry.height&&{height:Number(e.expiry.height)},...e.expiry.timestamp&&{timestamp:Number(e.expiry.timestamp)}}:void 0}}static listSettlementsResponseToSettlements(t){return{settlements:t.settlements.map(e.grpcRfqSettlementToRfqSettlement),next:t.
2051next}}},k5=class{static grpcCoinToCoin(e){return{denom:e.denom,amount:e.amount}}},k9=class e{static grpcTokenInfoToTokenInfo(e){return{denom:e.denom,supply:e.supply,symbol:e.symbol,decimal:e.decimal,logoUrl:e.logoUrl}}static mitoPaginationToPagination(e){if(e)return{total:e.total}}static mitoDenomBalanceToDenomBalance(e){return{denom:e.denom,totalBalance:e.totalBalance}}static changesResponseToChanges(e){if(e)return{allTimeChange:e.allTimeChange,threeMonthsChange:e.threeMonthsChange,oneMonthChange:e.oneMonthChange,oneDayChange:e.oneDayChange,oneWeekChange:e.oneWeekChange,oneYearChange:e.oneYearChange,threeYearsChange:e.threeYearsChange,sixMonthsChange:e.sixMonthsChange}}static mitoSubaccountInfoToSubaccountInfo(t){if(t)return{subaccountId:t.subaccountId,balancesList:t.balances.map(e.mitoDenomBalanceToDenomBalance)}}static mitoVaultToVault(t){return{slug:t.slug,codeId:t.codeId.toString(),marketId:t.marketId,vaultName:t.vaultName,vaultType:t.vaultType,currentTvl:t.currentTvl,lpTokenPrice:t.lpTokenPrice,totalLpAmount:t.totalLpAmount,contractAddress:t.contractAddress,notionalValueCap:t.notionalValueCap,masterContractAddress:t.masterContractAddress,updatedAt:Number(t.updatedAt),createdAt:Number(t.createdAt),apy:t.apy,apyue:t.apyue,apy7D:t.apy7D,apy7DFq:t.apy7DFq,apyV3:t.apyV3,registrationMode:t.registrationMode,profits:e.changesResponseToChanges(t.profits),tvlChanges:e.changesResponseToChanges(t.tvlChanges),subaccountInfo:e.mitoSubaccountInfoToSubaccountInfo(t.subaccountInfo)}}static mitoPriceSnapshotToPriceSnapshot(e){return{price:e.price,updatedAt:Number(e.updatedAt)}}static portfolioResponseToPortfolio(t){return{pnl:t.pnl,totalValue:cY(t.totalValue),updatedAt:Number(t.pnlUpdatedAt),totalValueChartList:t.totalValueChart.map(e.mitoPriceSnapshotToPriceSnapshot),pnlChartList:t.pnlChart.map(e.mitoPriceSnapshotToPriceSnapshot)}}static leaderboardResponseToLeaderboard(e){return{epochId:e.epochId,snapshotBlock:c0(e.snapshotBlock),updatedAt:Number(e.updatedAt),entriesList:e.entries.map(e=>({address:e.address,pnl:e.pnl}))}}static mitoTransferHistoryToTransferHistory(e){return{vault:e.vault,txHash:e.txHash,account:e.account,lpAmount:e.lpAmount,usdValue:e.usdValue,isDeposit:e.isDeposit,tidByVault:e.tidByVault,tidByAccount:e.tidByAccount,executedAt:Number(e.executedAt),coins:e.coins.map(k5.grpcCoinToCoin)}}static mitoLeaderboardEpochToLeaderboardEpoch(e){return{isLive:e.isLive,epochId:e.epochId,startAt:Number(e.startAt),endAt:Number(e.endAt)}}static mitoStakingRewardToStakingReward(e){return{apr:e.apr,vaultName:e.vaultName,vaultAddress:e.vaultAddress,lockTimestamp:Number(e.lockTimestamp),claimableRewards:e.claimableRewards.map(k5.grpcCoinToCoin),stakedAmount:e.stakedAmount?k5.grpcCoinToCoin(e.stakedAmount):void 0,lockedAmount:e.lockedAmount?k5.grpcCoinToCoin(e.lockedAmount):void 0}}static mitoGaugeToGauge(e){return{id:e.id,owner:e.owner,status:e.status,lastDistribution:e.lastDistribution,endTimestamp:Number(e.endTimestamp),startTimestamp:Number(e.startTimestamp),rewardTokens:e.rewardTokens.map(k5.grpcCoinToCoin)}}static mitoStakingPoolToStakingPool(t){return{apr:t.apr,vaultName:t.vaultName,stakeDenom:t.stakeDenom,vaultAddress:t.vaultAddress,aprBreakdown:t.aprBreakdown,totalLiquidity:t.totalLiquidity,stakingAddress:t.stakingAddress,gauges:t.gauges.map(e.mitoGaugeToGauge)}}static mitoStakingActivityToStakingActivity(e){return{action:e.action,txHash:e.txHash,staker:e.staker,vaultAddress:e.vaultAddress,numberByAccount:e.numberByAccount,timestamp:Number(e.timestamp),rewardedTokens:e.rewardedTokens.map(k5.grpcCoinToCoin),stakeAmount:e.stakeAmount?k5.grpcCoinToCoin(e.stakeAmount):void 0}}static mitoSubscriptionToSubscription(t){return{vaultInfo:t.vaultInfo?e.mitoVaultToVault(t.vaultInfo):void 0,lpAmount:t.lpAmount,holderAddress:t.holderAddress,lpAmountPercentage:t.lpAmountPercentage}}static mitoLpHolderToLPHolder(e){return{amount:e.amount,vaultAddress:e.vaultAddress,stakedAmount:e.stakedAmount,holderAddress:e.holderAddress,lpAmountPercentage:e.lpAmountPercentage,redemptionLockTime:c0(e.redemptionLockTime),updatedAt:Number(e.updatedAt)}}static mitoMissionToMission(e){return{id:e.id,points:c0(e.points),progress:e.progress,expected:e.expected,completed:e.completed,accruedPoints:c0(e.accruedPoints),updatedAt:Number(e.updatedAt)}}static mitoMissionLeaderboardEntryToMissionLeaderboardEntry(e){return{address:e.address,accruedPoints:c0(e.accruedPoints)}}static mitoIDOProgressToIDOProgress(e){return{status:e.status,timestamp:Number(e.timestamp)}}static mitoStakedToSubscriptionToStakedToSubscription(e){return{stakedAmount:e.field[0],subscribableAmou
2051nt:e.field[1]}}static mitoIDOToIDO(t){return{name:t.name,owner:t.owner,status:t.status,marketId:t.marketId,tokenPrice:t.tokenPrice,quoteDenom:t.quoteDenom,useWhitelist:t.useWhitelist,vaultAddress:t.vaultAddress,capPerAddress:t.capPerAddress,contractAddress:t.contractAddress,subscribedAmount:t.subscribedAmount,isPermissionless:t.isPermissionless,isLaunchWithVault:t.isLaunchWithVault,targetAmountInUsd:t.targetAmountInUsd,projectTokenAmount:t.projectTokenAmount,projectDescription:t.projectDescription,isAccountWhiteListed:t.isAccountWhiteListed,isVestingScheduleEnabled:t.isVestingScheduleEnabled,targetAmountInQuoteDenom:t.targetAmountInQuoteDenom,endTime:Number(t.endTime),startTime:Number(t.startTime),secondBeforeStartToSetQuotePrice:Number(t.secondBeforeStartToSetQuotePrice),progress:t.progress.map(e.mitoIDOProgressToIDOProgress),tokenInfo:t.tokenInfo?e.grpcTokenInfoToTokenInfo(t.tokenInfo):void 0,stakeToSubscription:t.stakeToSubscription.map(e.mitoStakedToSubscriptionToStakedToSubscription),vestingConfig:e.mitoIDOInitParamsToIDOVestingConfig(t.initParams)}}static mitoIDOSubscriberToIDOSubscriber(e){return{address:e.address,lastSubscribeTime:Number(e.lastSubscribeTime),subscribedCoin:e.subscribedCoin?k5.grpcCoinToCoin(e.subscribedCoin):void 0,estimateLpAmount:e.estimateLpAmount?k5.grpcCoinToCoin(e.estimateLpAmount):void 0,estimateRefundAmount:e.estimateRefundAmount?k5.grpcCoinToCoin(e.estimateRefundAmount):void 0,estimateTokenReceived:e.estimateTokenReceived?k5.grpcCoinToCoin(e.estimateTokenReceived):void 0,createdAt:Number(e.createdAt)}}static mitoIDOClaimedCoinsToIDOClaimedCoins(e){return{claimedCoins:e.claimedCoins.map(k5.grpcCoinToCoin),updatedAt:Number(e.updatedAt)}}static mitoIDOSubscriptionToIDOSubscription(t){return{price:t.price,marketId:t.marketId,quoteDenom:t.quoteDenom,stakedAmount:t.stakedAmount,rewardClaimed:t.rewardClaimed,committedAmount:t.committedAmount,updatedAt:Number(t.updatedAt),claimableCoins:t.claimableCoins.map(k5.grpcCoinToCoin),ownerClaimableCoins:t.ownerClaimableCoins.map(k5.grpcCoinToCoin),claimTxHash:t.claimTxHash,maxSubscriptionCoin:t.maxSubscriptionCoin?k5.grpcCoinToCoin(t.maxSubscriptionCoin):void 0,tokenInfo:t.tokenInfo?e.grpcTokenInfoToTokenInfo(t.tokenInfo):void 0,claimedCoins:t.claimedCoins?e.mitoIDOClaimedCoinsToIDOClaimedCoins(t.claimedCoins):void 0}}static mitoIDOSubscriptionActivityToIDOSubscriptionActivity(e){return{txHash:e.txHash,address:e.address,usdValue:e.usdValue,timestamp:Number(e.timestamp),subscribedCoin:e.subscribedCoin?k5.grpcCoinToCoin(e.subscribedCoin):void 0}}static mitoWhitelistAccountToWhitelistAccount(e){return{weight:e.weight,accountAddress:e.accountAddress,updatedAt:Number(e.updatedAt)}}static mitoClaimReferenceToClaimReference(e){return{denom:e.denom,claimedAmount:e.claimedAmount,accountAddress:e.accountAddress,claimableAmount:e.claimableAmount,cwContractAddress:e.cwContractAddress,idoContractAddress:e.idoContractAddress,vestingDurationSeconds:Number(e.vestingDurationSeconds),updatedAt:Number(e.updatedAt),startVestingTime:Number(e.startVestingTime)}}static mitoVestingCOonfigToVestingConfig(e){return{schedule:(null==e?void 0:e.schedule)||"",vestingDurationSeconds:Number((null==e?void 0:e.vestingDurationSeconds)||0n),vestingStartDelaySeconds:Number((null==e?void 0:e.vestingStartDelaySeconds)||0n)}}static mitoIDOInitParamsToIDOVestingConfig(t){if(t&&t.vestingConfig)return{projectOwnerQuote:e.mitoVestingCOonfigToVestingConfig(t.vestingConfig.projectOwnerQuote),usersProjectToken:e.mitoVestingCOonfigToVestingConfig(t.vestingConfig.usersProjectToken)}}static vaultResponseToVault(t){let[r]=t.vault;return e.mitoVaultToVault(r)}static vaultsResponseToVaults(t){return{vaults:t.vaults.map(e.mitoVaultToVault),pagination:e.mitoPaginationToPagination(t.pagination)}}static lpTokenPriceChartResponseToLPTokenPriceChart(t){return t.prices.map(e.mitoPriceSnapshotToPriceSnapshot)}static vaultsByHolderAddressResponseToVaultsByHolderAddress(t){return{subscriptions:t.subscriptions.map(e.mitoSubscriptionToSubscription),pagination:e.mitoPaginationToPagination(t.pagination)}}static lpHoldersResponseToLPHolders(t){return{holders:t.holders.map(e.mitoLpHolderToLPHolder),pagination:e.mitoPaginationToPagination(t.pagination)}}static transferHistoryResponseToTransfer(t){return{transfers:t.transfers.map(e.mitoTransferHistoryToTransferHistory),pagination:e.mitoPaginationToPagination(t.pagination)}}static leaderboardEpochsResponseToLeaderboardEpochs(t){return{epochs:t.epochs.map(e.mitoLeaderboardEpochToLeaderboardEpoch),pagination:e.mitoPaginationToPagination(t.pagination)}}static stakingPoolsResponseToStakingPools(t){return{pools:t.pools.map(e.mitoStakingPoolToStakingPool),pagination:e.mitoPaginationToPagination(t.pagination)}}static stakingRewardByAccountResponseToStakingRewardByAccount(t){return{rewards:t.rewards.map(e.mitoStakingRewardToStakingReward),pagination:e.mitoPaginationToPagination(t.pagination)}}static mitoStakingHistoryResponseTpStakingHistory(t){return{activities:t.activities.map(e.mitoStakingActivityToStakingActivity),pagination:e.mitoPaginationToPagination(t.pagination)}}static mitoMissionsResponseMissions(t){return t.data.map(e.mitoMissionToMission)}static mitoMissionLeaderboardResponseToMissionLeaderboard(t){var r;return{entries:t.data.map(e.mitoMissionLeaderboardEntryToMissionLeaderboardEntry),updatedAt:Number(t.updatedAt),rank:null==(r=t.userRank)?void 0:r.toString()}}static mitoListIDOsResponseToIDOs(t){return{idos:t.idos.map(e.mitoIDOToIDO),pagination:e.mitoPaginationToPagination(t.pagination)}}static mitoIDOResponseToIDO(t){return{ido:t.ido?e.mitoIDOToIDO(t.ido):void 0}}static mitoIDOSubscribersResponseToIDOSubscribers(t){return{marketId:t.marketId,quoteDenom:t.quoteDenom,subscribers:t.subscribers.map(e.mitoIDOSubscriberToIDOSubscriber),pagination:e.mitoPaginationToPagination(t.pagination),tokenInfo:t.tokenInfo?e.grpcTokenInfoToTokenInfo(t.tokenInfo):void 0}}static mitoIDOSubscriptionResponseToIDOSubscription(t){return{subscription:t.subscription?e.mitoIDOSubscriptionToIDOSubscription(t.subscription):void 0}}static mitoIDOActivitiesResponseToIDOActivities(t){return{activities:t.activities.map(e.mitoIDOSubscriptionActivityToI
2051DOSubscriptionActivity),pagination:e.mitoPaginationToPagination(t.pagination)}}static mitoWhitelistAccountResponseToWhitelistAccount(t){return{idoAddress:t.idoAddress,accounts:t.accounts.map(e.mitoWhitelistAccountToWhitelistAccount),pagination:e.mitoPaginationToPagination(t.pagination)}}static claimReferencesResponseToClaimReferences(t){return{claimReferences:t.claimReferences?t.claimReferences.map(e.mitoClaimReferenceToClaimReference):[],pagination:e.mitoPaginationToPagination(t.pagination)}}},xe=class e{static grpcTokenMetaToTokenMeta(e){if(e)return{name:e.name,address:e.address,symbol:e.symbol,logo:e.logo,decimals:e.decimals,updatedAt:Number(e.updatedAt),coinGeckoId:"",tokenType:k2.Unknown}}static marketResponseToMarket(t){let r=t.market;return e.grpcMarketToMarket(r)}static marketsResponseToMarkets(t){let r=t.markets;return e.grpcMarketsToMarkets(r)}static ordersResponseToOrders(t){let r=t.orders,a=t.paging;return{orders:e.grpcOrdersToOrders(r),pagination:dt(a)}}static orderHistoryResponseToOrderHistory(t){let r=t.orders,a=t.paging;return{orderHistory:e.grpcOrderHistoryListToOrderHistoryList(r),pagination:dt(a)}}static tradesResponseToTrades(t){let r=t.trades,a=t.paging;return{trades:e.grpcTradesToTrades(r),pagination:dt(a)}}static subaccountTradesListResponseToTradesList(t){let r=t.trades;return e.grpcTradesToTrades(r)}static orderbookV2ResponseToOrderbookV2(t){let r=t.orderbook;return e.grpcOrderbookV2ToOrderbookV2({sequence:Number(r.sequence),buys:null==r?void 0:r.buys,sells:null==r?void 0:r.sells})}static orderbooksV2ResponseToOrderbooksV2(t){return t.orderbooks.map(t=>{let r=t.orderbook;return{marketId:t.marketId,orderbook:e.grpcOrderbookV2ToOrderbookV2({sequence:Number(r.sequence),buys:r.buys,sells:r.sells})}})}static grpcMarketToMarket(t){return{marketId:t.marketId,marketStatus:t.marketStatus,ticker:t.ticker,baseDenom:t.baseDenom,quoteDenom:t.quoteDenom,quoteToken:e.grpcTokenMetaToTokenMeta(t.quoteTokenMeta),baseToken:e.grpcTokenMetaToTokenMeta(t.baseTokenMeta),makerFeeRate:t.makerFeeRate,takerFeeRate:t.takerFeeRate,serviceProviderFee:t.serviceProviderFee,minPriceTickSize:new tr(t.minPriceTickSize).toNumber(),minQuantityTickSize:new tr(t.minQuantityTickSize).toNumber(),minNotional:new tr(t.minNotional).toNumber()}}static grpcMarketsToMarkets(t){return t.map(t=>e.grpcMarketToMarket(t))}static grpcPriceLevelToPriceLevel(e){return{price:e.price,quantity:e.quantity,timestamp:Number(e.timestamp)}}static grpcPriceLevelsToPriceLevels(t){return t.map(t=>e.grpcPriceLevelToPriceLevel(t))}static grpcOrderbookToOrderbook({buys:t,sells:r}){return{buys:e.grpcPriceLevelsToPriceLevels(t),sells:e.grpcPriceLevelsToPriceLevels(r)}}static grpcOrderbookV2ToOrderbookV2({buys:t,sells:r,sequence:a}){return{sequence:a,buys:e.grpcPriceLevelsToPriceLevels(t),sells:e.grpcPriceLevelsToPriceLevels(r)}}static grpcOrderToOrder(e){return{orderHash:e.orderHash,orderSide:e.orderSide,marketId:e.marketId,cid:e.cid,subaccountId:e.subaccountId,price:e.price,state:e.state,quantity:e.quantity,unfilledQuantity:e.unfilledQuantity,triggerPrice:e.triggerPrice,feeRecipient:e.feeRecipient,createdAt:Number(e.createdAt),updatedAt:Number(e.updatedAt)}}static grpcOrdersToOrders(t){return t.map(t=>e.grpcOrderToOrder(t))}static grpcOrderHistoryToOrderHistory(e){return{orderHash:e.orderHash,marketId:e.marketId,cid:e.cid,active:e.isActive,subaccountId:e.subaccountId,executionType:e.executionType,orderType:e.orderType,price:e.price,triggerPrice:e.triggerPrice,quantity:e.quantity,filledQuantity:e.filledQuantity,state:e.state,createdAt:Number(e.createdAt),updatedAt:Number(e.updatedAt),direction:e.direction}}static grpcOrderHistoryListToOrderHistoryList(t){return t.map(t=>e.grpcOrderHistoryToOrderHistory(t))}static grpcTradeToTrade(e){let t=e.price,r=t?{price:t.price,quantity:t.quantity,timestamp:Number(t.timestamp)}:{price:"0",quantity:"0",timestamp:0};return{orderHash:e.orderHash,subaccountId:e.subaccountId,marketId:e.marketId,tradeId:e.tradeId,cid:e.cid,executedAt:Number(e.executedAt),feeRecipient:e.feeRecipient,tradeExecutionType:e.tradeExecutionType,executionSide:e.executionSide,tradeDirection:e.tradeDirection,fee:e.fee,price:r.price,quantity:r.quantity,timestamp:r.timestamp}}static grpcTradesToTrades(t){return t.map(t=>e.grpcTradeToTrade(t))}static grpcAtomicSwapHistoryListToAtomicSwapHistoryList(t){let r=t.data,a=t.paging;return{swapHistory:r.map(e.grpcAtomicSwapHistoryToAtomicSwapHistory),pagination:dt(a)}}static grpcAtomicSwapHistoryToAtomicSwapHistory(e){return{sender:e.sender,route:e.route,sourceCoin:e.sourceCoin||void 0,destinationCoin:e.destCoin||void 0,fees:e.fees,contractAddress:e.contractAddress,indexBySender:e.indexBySender,indexBySenderContract:e.indexBySenderContract,txHash:e.txHash,executedAt:Number(e.executedAt)}}},xt=class{};dI(xt,"requestStreamCallback",e=>{let t=e.request;return{request:t?k4.grpcRfqRequestToRfqRequest(t):void 0}}),dI(xt,"quoteStreamCallback",e=>{let t=e.quote;return{quote:t?k4.grpcRfqQuoteToRfqQuote(t):void 0}}),dI(xt,"settlementStreamCallback",e=>{let t=e.settlement;return{settlement:t?k4.grpcRfqSettlementToRfqSettlement(t):void 0}});var xr=class{};dI(xr,"tradesStreamCallback",e=>{let t=e.trade;return{trade:t?xe.grpcTradeToTrade(t):void 0,operation:e.operationType,timestamp:e.timestamp}}),dI(xr,"ordersStreamCallback",e=>{let t=e.order;return{order:t?xe.grpcOrderToOrder(t):void 0,operation:e.operationType,timestamp:e.timestamp}}),dI(xr,"orderHistoryStreamCallback",e=>{let t=e.order;return{order:t?xe.grpcOrderHistoryToOrderHistory(t):void 0,operation:e.operationType,timestamp:e.timestamp}}),dI(xr,"orderbookV2StreamCallback",e=>{let t=e.orderbook;return{orderbook:t?xe.grpcOrderbookV2ToOrderbookV2({sequence:Number(t.sequence),buys:t.buys,sells:t.sells}):void 0,operation:e.operationType,marketId:e.marketId,timestamp:e.timestamp}}),dI(xr,"orderbookUpdateStreamCallback",e=>{let t=e.orderbookLevelUpdates;return{orderbook:t?xe.grpcOrderbookV2ToOrderbookV2({sequence:Number(t.sequence),buys:t.buys,sells:t.sells}):void 0,operation:e.operationType,marketId:e.marketId,timestamp:e.timestamp}});var xa=class e{static accountPortfolioResponseToAccountPortfolio(t){let r=t.portfolio,a=r.subaccounts||[];return{portfolioValue:r.portfolioValue,availableBalance:r.availableBalance,lockedBalance:r.lockedBalance,unrealizedPnl:r.unrealizedPnl,subaccountsList:a.map(e.grpcSubaccountPortfolioToSubaccountPortfolio)}}static grpcSubaccountPortfolioToSubaccountPortfolio(e){return{subaccountId:e.subaccountId,availableBalance:e.availableBalance,lockedBalance:e.lockedBalance,unrealizedPnl:e.unrealizedPnl}}static grpcAccountPortfolioToAccountPortfolio(t){return{portfolioValue:t.portfolioValue,availableBalance:t.availableBalance,lockedBalance:t.lockedBalance,unrealizedPnl:t.unrealizedPnl,subaccountsList:t.subaccounts.map(e.grpcSubaccountPortfolioToSubaccountPortfolio)}}static grpcAmountToAmount(e){return{amount:e.amount,denom:e.denom}}static grpcDepositToDeposit(e){return{totalBalance:e.totalBalance,availableBalance:e.availableBalance}}static balancesResponseToBalances(t){return t.balances.map(t=>e.grpcBalanceToBalance(t))}static balanceResponseToBalance(t){return e.grpcBalanceToBalance(t.balance)}static grpcBalanceToBalance(t){let r=t.deposit;return{subaccountId:t.subaccountId,accountAddress:t.accountAddress,denom:t.denom,deposit:r?e.grpcDepositToDeposit(r):void 0}}static grpcBalancesToBalances(t){return t.map(t=>e.grpcBalanceToBalance(t))}static grpcTransferHistoryEntryToTransferHistoryEntry(t){let r=t.amount;return{transferType:t.transferType,srcSubaccountId:t.srcSubaccountId,srcSubaccountAddress:t.srcAccountAddress,dstSubaccountId:t.dstSubaccountId,dstSubaccountAddress:t.dstAccountAddress,executedAt:Number(t.executedAt),amount:r?e.grpcAmountToAmount(r):void 0}}static tradingRewardsResponseToTradingRewards(t){return t.rewards.map(e.grpcTradingRewardToTradingReward)}static grpcTradingRewardsToTradingRewards(t){return t.map(e.grpcTradingRewardToTradingReward)}static grpcTradingRewardToTradingReward(e){return{accountAddress:e.accountAddress,rewards:e.rewards.map(e=>({amount:e.amount,denom:e.denom})),distributedAt:Number(e.distributedAt)}}static transferHistoryResponseToTransferHistory(t){let r=t.transfers,a=t.paging;return{transfers:r.map(t=>e.grpcTransferHistoryEntryToTransferHistoryEntry(t)),pagination:dt(a)}}static grpcTransferHistoryToTransferHistory(t){return t.map(t=>e.grpcTransferHistoryEntryToTransferHistoryEntry(t))}},xn=class e{static grpcHistoricalBalanceToHistoricalBalance(e){return{t:e.t,v:e.v}}static grpcHistoricalRPNLToHistoricalRPNL(e){return{t:e.t,v:e.v}}static grpcHistoricalVolumesToHistoricalVolumes(e){return{t:e.t,v:e.v}}static grpcLeaderboardRowToLeaderboardRow(e){return{account:e.account,pnl:e.pnl,volume:e.volume,rank:e.rank}}static grpcHistoricalBalanceResponseToHistoricalBalances(t){return t.historicalBalance?e.grpcHistoricalBalanceToHistoricalBalance(t.historicalBalance):{t:[],v:[]}}static grpcHistoricalRPNLResponseToHistoricalRPNL(t){return t.historicalRpnl?e.grpcHistoricalRPNLToHistoricalRPNL(t.historicalRpnl):{t:[],v:[]}}static grpcHistoricalVolumesResponseToHistoricalVolumes(t){return t.historicalVolumes?e.grpcHistoricalVolumesToHistoricalVolumes(t.historicalVolumes):{t:[],v:[]}}static grpcPnlLeaderboardResponseToPnlLeaderboard(t){return{firstDate:t.firstDate,lastDate:t.lastDate,leaders:t.leaders.map(e.grpcLeaderboardRowToLeaderboardRow),accountRow:t.accountRow?e.grpcLeaderboardRowToLeaderboardRow(t.accountRow):void 0}}static grpcVolLeaderboardResponseToVolLeaderboard(t){return{firstDate:t.firstDate,lastDate:t.lastDate,leaders:t.leaders.map(e.grpcLeaderboardRowToLeaderboardRow),accountRow:t.accountRow?e.grpcLeaderboardRowToLeaderboardRow(t.accountRow):void 0}}static grpcPnlLeaderboardFixedResolutionResponseToPnlLeaderboard(t){return{firstDate:t.firstDate,lastDate:t.lastDate,leaders:t.leaders.map(e.grpcLeaderboardRowToLeaderboardRow),accountRow:t.accountRow?e.grpcLeaderboardRowToLeaderboardRow(t.accountRow):void 0}}static grpcVolLeaderboardFixedResolutionResponseToVolLeaderboard(t){return{firstDate:t.firstDate,lastDate:t.lastDate,leaders:t.leaders.map(e.grpcLeaderboardRowToLeaderboardRow),accountRow:t.accountRow?e.grpcLeaderboardRowToLeaderboardRow(t.accountRow):void 0}}static grpcDenomHoldersResponseToDenomHolders(e){return{holders:e.holders.map(e=>({accountAddress:e.accountAddress,balance:e.balance})),next:e.next,total:e.total}}static grpcAccountStatsResponseToAccountStats(e){return{pnl:e.pnl,stake:e.stake,volume:e.volume}}static grpcSpotAverageEntryToSpotAverageEntry(e){return{marketId:e.marketId,averageEntryPrice:e.averageEntryPrice,quantity:e.quantity,usdValue:e.usdValue}}},xi=ta(0),xo=(e,t=[])=>{if(!e)return t;if("string"==typeof e)try{return JSON.parse(e)}catch(e){return t}try{return JSON.parse(c4(e))}catch(e){return t}},xs=e=>xo(e).filter(e=>!!e).map(e=>({type:e.type,message:e.value})),xl=class e{static getTxByTxHashResponseToTx(t){return e.grpcTransactionToTransaction(t)}static getAccountTxsResponseToAccountTxs(t){let r=t.data,a=t.paging;return{txs:e.grpcTransactionsToTransactionsFromDetail(r),pagination:dt(a)}}static getValidatorUptimeResponseToValidatorUptime(t){return t.data.map(t=>e.grpcValidatorUptimeToValidatorUptime(t))}static getPeggyDepositTxsResponseToPeggyDepositTxs(t){return t.field.map(t=>e.grpcPeggyDepositTx(t))}static getPeggyWithdrawalTxsResponseToPeggyWithdrawalTxs(t){return t.field.map(t=>e.grpcPeggyWithdrawalTx(t))}
2051static getIBCTransferTxsResponseToIBCTransferTxs(t){return t.field.map(t=>e.grpcIBCTransferTxToIBCTransferTx(t))}static validatorResponseToValidator(t){let r=t.data;return{id:r.id,moniker:r.moniker,operatorAddress:r.operatorAddress,consensusAddress:r.consensusAddress,jailed:r.jailed,status:r.status,tokens:r.tokens,delegatorShares:r.delegatorShares,description:e.grpcValidatorDescriptionToValidatorDescription(r.description),unbondingHeight:cY(r.unbondingHeight),unbondingTime:r.unbondingTime,commissionRate:r.commissionRate,commissionMaxRate:r.commissionMaxRate,commissionMaxChangeRate:r.commissionMaxChangeRate,commissionUpdateTime:r.commissionUpdateTime,signed:cY(r.signed),missed:cY(r.missed),proposed:cY(r.proposed),uptimePercentage:r.uptimePercentage,imageUrl:r.imageUrl,timestamp:r.timestamp,uptimesList:r.uptimes.map(e.grpcValidatorUptimeToValidatorUptime),slashingEventsList:r.slashingEvents.map(e.grpcValidatorSlashingEventToValidatorSlashingEvent)}}static streamTxResponseToTxs(e){return{id:e.id,hash:e.hash,code:e.code,messages:e.messages,errorLog:e.errorLog,codespace:e.codespace,blockTimestamp:e.blockTimestamp,txNumber:cY(e.txNumber),blockNumber:cY(e.blockNumber)}}static grpcGasFeeToGasFee(e){return{amounts:e.amount.map(e=>({amount:e.amount,denom:e.denom})),payer:e.payer,granter:e.granter,gasLimit:cY(e.gasLimit)}}static grpcTransactionToBankMsgSendTransaction(e){let t=e.data,[r]=JSON.parse(c4(t.messages));return{hash:t.hash,sender:r.value.from_address,receiver:r.value.to_address,blockTimestamp:t.blockTimestamp,denom:r.value.amount[0].denom,amount:r.value.amount[0].amount,blockNumber:cY(t.blockNumber)}}static grpcTransactionToTransaction(t){let r=t.data;return{id:r.id,hash:r.hash,code:r.code,info:r.info,data:r.data,txType:r.txType,codespace:r.codespace,blockTimestamp:r.blockTimestamp,gasUsed:cY(r.gasUsed),gasWanted:cY(r.gasWanted),blockNumber:cY(r.blockNumber),gasFee:e.grpcGasFeeToGasFee(r.gasFee),signatures:r.signatures.map(e=>({pubkey:e.pubkey,address:e.address,sequence:cY(e.sequence),signature:e.signature})),events:r.events.map(e=>({type:e.type,attributes:e.attributes})),messages:JSON.parse(c4(r.messages))}}static grpcTransactionsToTransactions(t){return t.map(t=>e.grpcTransactionToTransaction(t))}static grpcTransactionToTransactionFromDetail(t){let r=JSON.parse(c4(t.messages));return{...t,gasUsed:cY(t.gasUsed),gasWanted:cY(t.gasWanted),blockNumber:cY(t.blockNumber),signatures:t.signatures.map(e=>({pubkey:e.pubkey,address:e.address,signature:e.signature,sequence:cY(e.sequence)})),gasFee:t.gasFee?e.grpcGasFeeToGasFee(t.gasFee):{gasLimit:0,payer:"",granter:"",amounts:[]},events:t.events.map(e=>({type:e.type,attributes:e.attributes})),messages:r}}static grpcTransactionsToTransactionsFromDetail(t){return t.map(e.grpcTransactionToTransactionFromDetail)}static grpcBlockToBlock(e){return{moniker:e.moniker,proposer:e.proposer,blockHash:e.blockHash,timestamp:e.timestamp,parentHash:e.parentHash,height:cY(e.height),numTxs:cY(e.numTxs),numPreCommits:cY(e.numPreCommits)}}static grpcBlockToBlockWithTxs(e){return{moniker:e.moniker,proposer:e.proposer,blockHash:e.blockHash,timestamp:e.timestamp,parentHash:e.parentHash,height:cY(e.height),numTxs:cY(e.numTxs),numPreCommits:cY(e.numPreCommits)}}static grpcBlocksToBlocks(t){return t.map(t=>e.grpcBlockToBlock(t))}static grpcBlocksToBlocksWithTxs(t){return t.map(t=>e.grpcBlockToBlockWithTxs(t))}static grpcValidatorDescriptionToValidatorDescription(e){return{moniker:e.moniker,identity:e.identity,website:e.website,securityContact:e.securityContact,details:e.details}}static grpcValidatorUptimeToValidatorUptime(e){return{status:e.status,blockNumber:cY(e.blockNumber)}}static grpcValidatorSlashingEventToValidatorSlashingEvent(e){return{reason:e.reason,jailed:e.jailed,address:e.address,power:cY(e.power),blockTimestamp:e.blockTimestamp,blockNumber:cY(e.blockNumber),missedBlocks:cY(e.missedBlocks)}}static grpcIBCTransferTxToIBCTransferTx(e){return{denom:e.denom,state:e.state,sender:e.sender,amount:e.amount,dataHex:e.dataHex,receiver:e.receiver,createdAt:e.createdAt,updatedAt:e.updatedAt,sourcePort:e.sourcePort,txHashesList:e.txHashes,sourceChannel:e.sourceChannel,timeoutHeight:e.timeoutHeight,destinationPort:e.destinationPort,destinationChannel:e.destinationChannel,packetSequence:cY(e.packetSequence),timeoutTimestamp:cY(e.timeoutTimestamp)}}static grpcPeggyDepositTx(e){return{denom:e.denom,state:e.state,sender:e.sender,amount:e.amount,receiver:e.receiver,claimType:e.claimType,createdAt:e.createdAt,updatedAt:e.updatedAt,txHashesList:e.txHashes,eventNonce:cY(e.eventNonce),eventHeight:cY(e.eventHeight),orchestratorAddress:e.orchestratorAddress}}static grpcPeggyWithdrawalTx(e){return{denom:e.denom,state:e.state,sender:e.sender,amount:e.amount,receiver:e.receiver,bridgeFee:e.bridgeFee,claimType:e.claimType,createdAt:e.createdAt,updatedAt:e.updatedAt,txHashesList:e.txHashes,batchNonce:cY(e.batchNonce),eventNonce:cY(e.eventNonce),eventHeight:cY(e.eventHeight),orchestratorAddress:e.orchestratorAddress,outgoingTxId:cY(e.outgoingTxId),batchTimeout:cY(e.batchTimeout)}}static getExplorerStatsResponseToExplorerStats(e){return{assets:c0(e.assets),txsTotal:c0(e.txsTotal),addresses:c0(e.addresses),injSupply:c0(e.injSupply),txsInPast30Days:c0(e.txs30D),txsInPast24Hours:c0(e.txs24H),txsPerSecondInPast24Hours:c0(e.txsPs24H),blockCountInPast24Hours:c0(e.blockCount24H),txsPerSecondInPast100Blocks:c0(e.txsPs100B)}}static getTxsV2ResponseToTxs(t){return{data:t.data.map(t=>e.grpcTxV2ToTransaction(t)),paging:t.paging}}static grpcTxV2ToTransaction(e){let t=xo(e.logs),r=xo(e.txMsgTypes),a=xs(e.messages),n=e.signatures.map(e=>({address:e.address,pubkey:e.pubkey,signature:e.signature,sequence:(()=>{try{return cY(e.sequence)}catch(e){return 0}})()})),i=e.claimIds.map(e=>{try{return cY(e)}catch(e){return 0}}),o=cY(e.blockNumber);return{logs:t,info:"",memo:"",claimIds:i,messages:a,id:e.id,signatures:n,blockNumber:o,gasUsed:0,gasWanted:0,hash:e.hash,code:e.code,errorLog:e.errorLog,codespace:e.codespace,blockTimestamp:e.blockTimestamp,txType:Array.isArray(r)?r.join(","):r,gasFee:{amounts:[],gasLimit:0,granter:"",payer:""}}}static getAccountTxsV2ResponseToAccountTxs(t){return{data:t.data.map(t=>e.grpcAccountTxV2ToTransaction(t)),paging:t.paging}}static grpcAccountTxV2ToTransaction(e){var t,r,a,n,i,o;return{id:e.id,hash:e.hash,code:e.code,info:e.info,memo:e.memo,txType:e.txType,gasFee:{amounts:((null==(t=e.gasFee)?void 0:t.amount)||[]).map(e=>({amount:e.amount,denom:e.denom})),gasLimit:cY(null==(r=e.gasFee)?void 0:r.gasLimit),granter:null!=(a=null==(n=e.gasFee)?void 0:n.granter)?a:"",payer:null!=(i=null==(o=e.gasFee)?void 0:o.payer)?i:""},events:e.events,errorLog:e.errorLog,codespace:e.codespace,gasUsed:cY(e.gasUsed),blockTimestamp:e.blockTimestamp,gasWanted:cY(e.gasWanted),blockNumber:cY(e.blockNumber),signatures:e.signatures.map(e=>({address:e.address,pubkey:e.pubkey,signature:e.signature,sequence:cY(e.sequence)})),messages:xs(e.messages),logs:xo(e.logs),data:"/"+c4(e.data).split("/").pop(),claimIds:e.claimIds.map(e=>cY(e))}}static getBlocksV2ResponseToBlocks(t){return{paging:t.paging,data:t.data.map(t=>e.grpcBlockV2ToBlock(t))}}static grpcBlockV2ToBlock(e){return{moniker:e.moniker,proposer:e.proposer,blockHash:e.blockHash,timestamp:e.timestamp,parentHash:e.parentHash,height:cY(e.height),numTxs:cY(e.numTxs),numPreCommits:cY(e.numPreCommits)}}static getContractTxsV2ResponseToContractTxs(t){return{data:t.data.map(t=>e.grpcContractTxV2ToTransaction(t)),paging:t.paging}}static grpcContractTxV2ToTransaction(e){var t;return{messages:xs(e.messages),code:e.code,memo:e.memo,type:e.txType,txHash:e.hash,error_log:e.errorLog,height:cY(e.blockNumber),tx_number:cY(e.txNumber),time:cY(e.blockUnixTimestamp),amount:(e=>{let{type:t,value:r}=JSON.parse(c4(e.messages))[0],{msg:a}=r;if(!t.includes("MsgExecuteContract")||"string"==typeof a&&!function(e){if("string"!=typeof e)return!1;try{JSON.parse(e)}catch(e){return!1}return!0}(a))return xi;let n="string"==typeof a?JSON.parse(a):a;return n.transfer?ti(n.transfer.amount):xi})(e),logs:JSON.parse(c4(e.logs)),data:"/"+c4(e.data).split("/").pop(),fee:ti((null==(t=e.gasFee)||null==(t=t.amount[0])?void 0:t.amount)||"0"),signatures:e.signatures.map(e=>({address:e.address,pubkey:e.pubkey,signature:e.signature,sequence:cY(e.sequence)}))}}},xc=class{};dI(xc,"pricesStreamCallback",e=>({price:e.price,timestamp:cY(e.timestamp),operation:k8.Update})),dI(xc,"pricesByMarketsCallback",e=>({...e})),ta(0),dI(class{},"balanceStreamCallback",e=>{let t=e.balance;return{balance:t?xa.grpcBalanceToBalance(t):void 0,operation:k8.Update,timestamp:e.timestamp}}),dI(class{},"bidsStreamCallback",e=>({bid:{bidder:e.bidder,bidAmount:e.bidAmount,bidTimestamp:cY(e.timestamp)},operation:k8.Insert})),dI(class{},"spotAverageEntriesStreamCallback",e=>{let t=e.averageEntry;return{averageEntry:t?xn.grpcSpotAverageEntryToSpotAverageEntry(t):void 0,operation:k8.Update,timestamp:cY(e.timestamp)}});var xd=class{};dI(xd,"blocksStreamCallback",e=>({block:xl.grpcBlockToBlock(e),operation:k8.Insert})),dI(xd,"blocksWithTxsStreamCallback",e=>({block:xl.grpcBlockToBlockWithTxs(e),operation:k8.Insert})),dI(xd,"transactionsStreamCallback",e=>({block:xl.streamTxResponseToTxs(e),operation:k8.Insert}));var xp=class e{static grpcTokenMetaToTokenMeta(e){if(e)return{name:e.name,address:e.address,symbol:e.symbol,logo:e.logo,decimals:e.decimals,updatedAt:Number(e.updatedAt),coinGeckoId:"",tokenType:k2.Unknown}}static grpcPerpetualMarketInfoToPerpetualMarketInfo(e){if(e)return{hourlyFundingRateCap:e.hourlyFundingRateCap,hourlyInterestRate:e.hourlyInterestRate,nextFundingTimestamp:Number(e.nextFundingTimestamp),fundingInterval:Number(e.fundingInterval)}}static grpcPerpetualMarketFundingToPerpetualMarketFunding(e){if(e)return{cumulativeFunding:e.cumulativeFunding,cumulativePrice:e.cumulativePrice,lastTimestamp:Number(e.lastTimestamp)}}static grpcExpiryFuturesMarketInfoToExpiryFuturesMarketInfo(e){if(e)return{expirationTimestamp:Number(e.expirationTimestamp),settlementPrice:e.settlementPrice}}static marketResponseToMarket(t){let r=t.market;return e.grpcMarketToMarket(r)}static marketsResponseToMarkets(t){let r=t.markets;return e.grpcMarketsToMarkets(r)}static ordersResponseToOrders(t){let r=t.orders,a=t.paging;return{orders:e.grpcOrdersToOrders(r),pagination:dt(a)}}static orderHistoryResponseToOrderHistory(t,r){let a=t.orders,n=t.paging;return{orderHistory:e.grpcOrderHistoryListToOrderHistoryList(a,r),pagination:dt(n)}}static positionsResponseToPositions(t){let r=t.positions,a=t.paging;return{positions:e.grpcPositionsToPositions(r),pagination:dt(a)}}static positionsV2ResponseToPositionsV2(t){let r=t.positions,a=t.paging;return{positions:e.grpcPositionsV2ToPositionsV2(r),pagination:dt(a)}}static tradesResponseToTrades(t){let r=t.trades,a=t.paging;return{trades:e.grpcTradesToTrades(r),pagination:dt(a)}}static subaccountTradesListResponseToSubaccountTradesList(t){let r=t.trades;return e.grpcTradesToTrades(r)}static fundingPaymentsResponseToFundingPayments(t){let r=t.payments,a=t.paging;return{fundingPayments:e.grpcFundingPaymentsToFundingPayments(r),pagination:dt(a)}}static fundingRatesResponseToFundingRates(t){let r=t.fundingRates,a=t.paging;return{fundingRates:e.grpcFundingRatesToFundingRates(r),pagination:dt(a)}}static orderbookV2ResponseToOrderbookV2(t){let r=t.orderbook;return e.grpcOrderbookV2ToOrderbookV2({sequence:Number(r.sequence),buys:(null==r?void 0:r.buys)||[],sells:(null==r?void 0:r.sells)||[]})}static orderbooksV2ResponseToOrderbooksV2(t){return t.orderbooks.map(t=>{let r=t.orderbook;return{marketId:t.marketId,orderbook:e.grpcOrderbookV2ToOrderbookV2({sequence:Number(r.sequence),buys:r.buys||[],sells:r.sells||[]})}})}static binaryOptionsMarketResponseToBinaryOptionsMarket(t){let r=t.market;return e.grpcBinaryOptionsMarketToBinaryOptionsMarket(r)}static binaryOptionsMarketResponseWithPaginationToBinaryOptionsMarket(t){let r=t.markets,a=t.paging;return{markets:e.grpcBinaryOptionsMarketsToBinaryOptionsMarkets(r),pagination:dt(a)}}static binaryOptionsMarketsResponseToBinaryOptionsMarkets(t){let r=t.markets;return e.grpcBinaryOptionsMarketsToBinaryOptionsMarkets(r)}static grpcBinaryOptionsMarketToBinaryOptionsMarket(t){return{marketId:t.marketId,marketStatus:t.marketStatus,ticker:t.ticker,oracleSymbol:t.oracleSymbol,oracleProvider:t.oracleProvider,oracleType:t.oracleType,oracleScaleFactor:t.oracleScaleFactor,expirationTimestamp:Number(t.expirationTimestamp),settlementTimestamp:Number(t.settlementTimestamp),quoteDenom:t.quoteDenom,quoteToken:e.grpcTokenMetaToTokenMeta(t.quoteTokenMeta),makerFeeRate:t.makerFeeRate,takerFeeRate:t.takerFeeRate,serviceProviderFee:t.serviceProviderFee,minPriceTickSize:new tr(t.minPriceTickSize).toNumber(),minQuantityTickSize:new tr(t.minQuantityTickSize).toNumber(),minNotional:new tr(t.minNotional).toNumber(),settlementPrice:t.settlementPrice}}static grpcBinaryOptionsMarketsToBinaryOptionsMarkets(t){return t.map(e.grpcBinaryOptionsMarketToBinaryOptionsMarket)}static grpcMarketToMarket(t){return{oracleBase:t.oracleBase,oracleQuote:t.oracleQuote,oracleType:t.oracleType,oracleScaleFactor:t.oracleScaleFactor,reduceMarginRatio:t.reduceMarginRatio,initialMarginRatio:t.initialMarginRatio,maintenanceMarginRatio:t.maintenanceMarginRatio,isPerpetual:t.isPerpetual,marketId:t.marketId,marketStatus:t.marketStatus,ticker:t.ticker,quoteDenom:t.quoteDenom,quoteToken:e.grpcTokenMetaToTokenMeta(t.quoteTokenMeta),makerFeeRate:t.makerFeeRate,takerFeeRate:t.takerFeeRate,serviceProviderFee:t.serviceProviderFee,minPriceTickSize:new tr(t.minPriceTickSize).toNumber(),minQuantityTickSize:new tr(t.minQuantityTickSize).toNumber(),minNotional:new tr(t.minNotional).toNumber(),perpetualMarketInfo:e.grpcPerpetualMarketInfoToPerpetualMarketInfo(t.perpetualMarketInfo),perpetualMarketFunding:e.grpcPerpetualMarketFundingToPerpetualMarketFunding(t.perpetualMarketFunding),expiryFuturesMarketInfo:e.grpcExpiryFuturesMarketInfoToExpiryFuturesMarketInfo(t.expiryFuturesMarketInfo)}}static grpcMarketsToMarkets(t){return t.map(t=>e.grpcMarketToMarket(t))}static grpcPositionDeltaToPositionDelta(e){return{tradeDirection:e.tradeDirection,executionPrice:e.executionPrice,executionQuantity:e.executionQuantity,executionMargin:e.executionMargin}}static grpcPriceLevelToPriceLevel(e){return{price:e.price,quantity:e.quantity,timestamp:Number(e.timestamp)}}static grpcPriceLevelsToPriceLevels(t){return t.map(t=>e.grpcPriceLevelToPriceLevel(t))}static grpcOrderbookToOrderbook({buys:t,sells:r}){return{buys:e.grpcPriceLevelsToPriceLevels(t),sells:e.grpcPriceLevelsToPriceLevels(r)}}static grpcOrderbookV2ToOrderbookV2({sequence:t,buys:r,sells:a}){return{sequence:t,buys:e.grpcPriceLevelsToPriceLevels(r),sells:e.grpcPriceLevelsToPriceLevels(a)}}static priceLevelsToGrpcPriceLevels(e){return e.map(e=>({price:e.price,quantity:e.quantity,timestamp:BigInt(e.timestamp)}))}static grpcOrderToOrder(e){return{orderHash:e.orderHash,orderSide:e.orderSide,marketId:e.marketId,cid:e.cid,subaccountId:e.subaccountId,isReduceOnly:e.isReduceOnly,margin:e.margin,price:e.price,quantity:e.quantity,unfilledQuantity:e.unfilledQuantity,triggerPrice:e.triggerPrice,feeRecipient:e.feeRecipient,state:e.state,createdAt:Number(e.createdAt),updatedAt:Number(e.updatedAt),orderNumber:Number(e.orderNumber),triggerAt:Number(e.triggerAt),orderType:e.orderType,isConditional:e.isConditional,placedOrderHash:e.placedOrderHash,executionType:e.executionType}}static grpcOrdersToOrders(t){return t.map(t=>e.grpcOrderToOrder(t))}static grpcOrderHistoryToOrderHistory(e){return{orderHash:e.orderHash,marketId:e.marketId,cid:e.cid,isActive:e.isActive,subaccountId:e.subaccountId,executionType:e.executionType,orderType:e.orderType,price:e.price,triggerPrice:e.triggerPrice,quantity:e.quantity,filledQuantity:e.filledQuantity,state:e.state,createdAt:Number(e.createdAt),updatedAt:Number(e.updatedAt),triggerAt:Number(e.triggerAt),isReduceOnly:e.isReduceOnly,direction:e.direction,isConditional:e.isConditional,placedOrderHash:e.placedOrderHash,margin:e.margin}}static grpcOrderHistoryListToOrderHistoryList(t,r){return(r?t:t.filter(e=>e.state!==k6.Booked)).map(t=>e.grpcOrderHistoryToOrderHistory(t))}static grpcPositionToPosition(e){return{marketId:e.marketId,subaccountId:e.subaccountId,direction:e.direction,quantity:e.quantity,entryPrice:e.entryPrice,margin:e.margin,liquidationPrice:e.liquidationPrice,aggre
2051gateReduceOnlyQuantity:e.aggregateReduceOnlyQuantity,markPrice:e.markPrice,ticker:e.ticker,updatedAt:Number(e.updatedAt)}}static grpcPositionV2ToPositionV2(e){return{marketId:e.marketId,subaccountId:e.subaccountId,direction:e.direction,quantity:e.quantity,entryPrice:e.entryPrice,margin:e.margin,denom:e.denom,liquidationPrice:e.liquidationPrice,markPrice:e.markPrice,ticker:e.ticker,updatedAt:Number(e.updatedAt),fundingSum:e.fundingSum,fundingLast:e.fundingLast,cumulativeFundingEntry:e.cumulativeFundingEntry,effectiveCumulativeFundingEntry:e.effectiveCumulativeFundingEntry}}static grpcPositionsToPositions(t){return t.map(t=>e.grpcPositionToPosition(t))}static grpcPositionsV2ToPositionsV2(t){return t.map(t=>e.grpcPositionV2ToPositionV2(t))}static grpcTradeToTrade(t){let r=t.positionDelta,a=r?e.grpcPositionDeltaToPositionDelta(r):{tradeDirection:k3.Buy,executionPrice:"0",executionQuantity:"0",executionMargin:"0"};return{cid:t.cid,fee:t.fee,pnl:t.pnl,payout:t.payout,tradeId:t.tradeId,marketId:t.marketId,orderHash:t.orderHash,subaccountId:t.subaccountId,feeRecipient:t.feeRecipient,isLiquidation:t.isLiquidation,executedAt:Number(t.executedAt),executionSide:t.executionSide,tradeExecutionType:t.tradeExecutionType,...a}}static grpcTradesToTrades(t){return t.map(t=>e.grpcTradeToTrade(t))}static grpcFundingPaymentToFundingPayment(e){return{marketId:e.marketId,subaccountId:e.subaccountId,amount:e.amount,timestamp:Number(e.timestamp)}}static grpcFundingPaymentsToFundingPayments(t){return t.map(e.grpcFundingPaymentToFundingPayment)}static grpcFundingRateToFundingRate(e){return{marketId:e.marketId,rate:e.rate,timestamp:Number(e.timestamp)}}static grpcFundingRatesToFundingRates(t){return t.map(e.grpcFundingRateToFundingRate)}},xu=class{};dI(xu,"transfersStreamCallback",e=>({transfer:e.data?k9.mitoTransferHistoryToTransferHistory(e.data):void 0,opType:e.opType})),dI(xu,"vaultStreamCallback",e=>({vault:e.data?k9.mitoVaultToVault(e.data):void 0,opType:e.opType})),dI(xu,"vaultHolderSubscriptionStreamCallback",e=>({subscription:e.data?k9.mitoSubscriptionToSubscription(e.data):void 0,opType:e.opType})),dI(xu,"stakingRewardByAccountStreamCallback",e=>({stakingReward:e.data?k9.mitoStakingRewardToStakingReward(e.data):void 0,opType:e.opType})),dI(xu,"historicalStakingStreamCallback",e=>({historicalStaking:e.data?k9.mitoStakingActivityToStakingActivity(e.data):void 0,opType:e.opType}));var xm=class{};dI(xm,"tradesStreamCallback",e=>{let t=e.trade;return{trade:t?xp.grpcTradeToTrade(t):void 0,operation:e.operationType,timestamp:e.timestamp}}),dI(xm,"positionStreamCallback",e=>{let t=e.position;return{position:t?xp.grpcPositionToPosition(t):void 0,timestamp:e.timestamp}}),dI(xm,"ordersStreamCallback",e=>{let t=e.order;return{order:t?xp.grpcOrderToOrder(t):void 0,operation:e.operationType,timestamp:e.timestamp}}),dI(xm,"orderHistoryStreamCallback",e=>{let t=e.order;return{order:t?xp.grpcOrderHistoryToOrderHistory(t):void 0,operation:e.operationType,timestamp:e.timestamp}}),dI(xm,"orderbookV2StreamCallback",e=>{let t=e.orderbook;return{orderbook:t?xp.grpcOrderbookV2ToOrderbookV2({sequence:Number(t.sequence),buys:t.buys,sells:t.sells}):void 0,operation:e.operationType,marketId:e.marketId,timestamp:e.timestamp}}),dI(xm,"orderbookUpdateStreamCallback",e=>{let t=e.orderbookLevelUpdates;return{orderbook:t?xp.grpcOrderbookV2ToOrderbookV2({sequence:Number(t.sequence),buys:t.buys,sells:t.sells}):void 0,operation:e.operationType,marketId:e.marketId,timestamp:e.timestamp}}),dI(xm,"positionV2StreamCallback",e=>{let t=e.position;return{position:t?xp.grpcPositionV2ToPositionV2(t):void 0,timestamp:e.timestamp}});var xh=class e{static grpcPositionDeltaToPositionDelta(e){return{executionPrice:e.executionPrice,executionMargin:e.executionMargin,executionQuantity:e.executionQuantity,tradeDirection:e.tradeDirection}}static grpcOrderHistoryToOrderHistory(e){return{cid:e.cid,price:e.price,margin:e.margin,txHash:e.txHash,marketId:e.marketId,isActive:e.isActive,quantity:e.quantity,orderHash:e.orderHash,orderType:e.orderType,state:e.state,subaccountId:e.subaccountId,triggerPrice:e.triggerPrice,isReduceOnly:e.isReduceOnly,executionType:e.executionType,createdAt:Number(e.createdAt),updatedAt:Number(e.updatedAt),isConditional:e.isConditional,triggerAt:Number(e.triggerAt),filledQuantity:e.filledQuantity,placedOrderHash:e.placedOrderHash,direction:e.direction}}static grpcTradeToTrade(t){let r=t.positionDelta,a=r?e.grpcPositionDeltaToPositionDelta(r):{executionPrice:"0",executionMargin:"0",executionQuantity:"0",tradeDirection:k3.Buy};return{fee:t.fee,cid:t.cid,pnl:t.pnl,payout:t.payout,tradeId:t.tradeId,marketId:t.marketId,orderHash:t.orderHash,subaccountId:t.subaccountId,feeRecipient:t.feeRecipient,isLiquidation:t.isLiquidation,executedAt:Number(t.executedAt),executionSide:t.executionSide,tradeExecutionType:t.tradeExecutionType,...a}}static grpcPositionToPosition(e){return{denom:e.denom,ticker:e.ticker,margin:e.margin,marketId:e.marketId,quantity:e.quantity,markPrice:e.markPrice,entryPrice:e.entryPrice,fundingSum:e.fundingSum,fundingLast:e.fundingLast,subaccountId:e.subaccountId,updatedAt:Number(e.updatedAt),liquidationPrice:e.liquidationPrice,direction:e.direction,cumulativeFundingEntry:e.cumulativeFundingEntry,effectiveCumulativeFundingEntry:e.effectiveCumulativeFundingEntry}}static grpcDerivativeLimitOrderToDerivativeLimitOrder(e){return{cid:e.cid,price:e.price,margin:e.margin,marketId:e.marketId,quantity:e.quantity,orderHash:e.orderHash,orderType:e.orderType,subaccountId:e.subaccountId,isReduceOnly:e.isReduceOnly,triggerPrice:e.triggerPrice,feeRecipient:e.feeRecipient,state:e.state,createdAt:Number(e.createdAt),updatedAt:Number(e.updatedAt),isConditional:e.isConditional,triggerAt:Number(e.triggerAt),executionType:e.executionType,orderNumber:Number(e.orderNumber),placedOrderHash:e.placedOrderHash,orderSide:e.orderSide,unfilledQuantity:e.unfilledQuantity}}static ordersHistoryResponseToOrdersHistory(t){var r;let a=null==(r=t.orders)?void 0:r.filter(e=>e.state!==k6.Booked);return{next:t.next,orders:a.map(e.grpcOrderHistoryToOrderHistory)}}static ordersResponseToOrders(t){return{next:t.next,orders:t.orders.map(e.grpcDerivativeLimitOrderToDerivativeLimitOrder)}}static tradesResponseToTrades(t){return{next:t.next,trades:t.trades.map(e.grpcTradeToTrade)}}static positionsResponseToPositions(t){return{next:t.next,total:t.total?Number(t.total):void 0,positions:t.positions.map(e.grpcPositionToPosition)}}},xg=class{};dI(xg,"orderHistoryStreamCallback",e=>{let t=e.order;return{operationType:e.operationType,timestamp:Number(e.timestamp),order:t?xh.grpcOrderHistoryToOrderHistory(t):void 0}}),dI(xg,"tradesStreamCallback",e=>{let t=e.trade;return{operationType:e.operationType,timestamp:Number(e.timestamp),trade:t?xh.grpcTradeToTrade(t):void 0}}),dI(xg,"positionsStreamCallback",e=>{let t=e.position;return{timestamp:Number(e.timestamp),position:t?xh.grpcPositionToPosition(t):void 0}}),dI(xg,"ordersStreamCallback",e=>{let t=e.order;return{operationType:e.operationType,timestamp:Number(e.timestamp),order:t?xh.grpcDerivativeLimitOrderToDerivativeLimitOrder(t):void 0}}),dI(class{},"accountPortfolioStreamCallback",e=>({type:e.type,denom:e.denom,amount:e.amount,subaccountId:e.subaccountId}));var xf={};(0,L.VA)(xf,{abey:()=>xv,abstract:()=>xA,abstractTestnet:()=>xP,acala:()=>xD,acria:()=>xL,adf:()=>xO,adi:()=>xF,agungTestnet:()=>x_,aioz:()=>xM,alephZero:()=>xj,alephZeroTestnet:()=>x$,alienx:()=>xW,alienxHalTestnet:()=>xz,alpenTestnet:()=>xV,ancient8:()=>xJ,ancient8Sepolia:()=>xZ,anvil:()=>xQ,apeChain:()=>xX,apexTestnet:()=>xY,apollo:()=>x0,arbitrum:()=>x1,arbitrumGoerli:()=>x2,arbitrumNova:()=>x3,arbitrumSepolia:()=>x6,arc:()=>x8,arcTestnet:()=>x7,arenaz:()=>x4,areonNetwork:()=>x5,areonNetworkTestnet:()=>x9,areum:()=>we,artelaTestnet:()=>wt,arthera:()=>wr,artheraTestnet:()=>wa,assetChain:()=>wn,assetChainTestnet:()=>wi,astar:()=>wo,astarZkEVM:()=>ws,astarZkyoto:()=>wl,atletaOlympia:()=>wc,aurora:()=>wd,auroraTestnet:()=>wp,auroria:()=>wu,autheoTestnet:()=>wm,avalanche:()=>wh,avalancheFuji:()=>wg,b3:()=>wf,b3Sepolia:()=>wb,bahamut:()=>wy,base:()=>wk,baseGoerli:()=>wv,basePreconf:()=>wx,baseSepolia:()=>wT,baseSepoliaPreconf:()=>wE,basecampTestnet:()=>ww,battlechainTestnet:()=>wB,beam:()=>wC,beamTestnet:()=>wU,bearNetworkChainMainnet:()=>wI,bearNetworkChainTestnet:()=>wN,berachain:()=>wR,berachainBepolia:()=>wS,berachainTestnet:()=>wA,berachainTestnetbArtio:()=>wP,bevmMainnet:()=>wD,bifrost:()=>wL,birdlayer:()=>wO,bitTorrent:()=>wz,bitTorrentTestnet:()=>wV,bitgert:()=>wF,bitkub:()=>w_,bitkubTestnet:()=>wM,bitlayer:()=>wj,bitlayerTestnet:()=>w$,bitrock:()=>wW,blast:()=>wH,blastSepolia:()=>wq,bob:()=>wG,bobSepolia:()=>wZ,boba:()=>wK,bobaSepolia:()=>wJ,boolBetaMainnet:()=>wQ,botanix:()=>wX,botanixTestnet:()=>wY,bounceBit:()=>w0,bounceBitTestnet:()=>w1,bronos:()=>w2,bronosTestnet:()=>w3,bsc:()=>w6,bscGreenfield:()=>w8,bscTestnet:()=>w7,bsquared:()=>w4,bsquaredTestnet:()=>w5,btr:()=>w9,btrTestnet:()=>ve,bxn:()=>vt,bxnTestnet:()=>vr,cannon:()=>va,canto:()=>vn,celo:()=>vu,celoAlfajores:()=>vm,celoSepolia:()=>vh,chang:()=>vg,chiliz:()=>vf,chips:()=>vb,citrea:()=>vy,citreaTestnet:()=>vk,classic:()=>vx,codex:()=>vw,codexTestnet:()=>vv,coinbit:()=>vT,coinex:()=>vE,confluxESpace:()=>vB,confluxESpaceTestnet:()=>vC,coreDao:()=>vU,coreTestnet1:()=>vI,coreTestnet2:()=>vN,corn:()=>vR,cornTestnet:()=>vS,cpchain:()=>vA,crab:()=>vP,creatorTestnet:()=>vD,creditCoin3Devnet:()=>vL,creditCoin3Mainnet:()=>vO,creditCoin3Testnet:()=>vF,cronos:()=>v_,cronosTestnet:()=>vM,cronoszkEVM:()=>vj,cronoszkEVMTestnet:()=>v$,crossbell:()=>vW,crossfi:()=>vz,curtis:()=>vV,cyber:()=>vH,cyberTestnet:()=>vq,dailyNetwork:()=>vG,dailyNetworkTestnet:()=>vK,darwinia:()=>
2051vJ,datahavenTestnet:()=>vZ,dbkchain:()=>vQ,dchain:()=>vX,dchainTestnet:()=>vY,defichainEvm:()=>v0,defichainEvmTestnet:()=>v1,degen:()=>v2,dfk:()=>v3,diode:()=>v6,disChain:()=>v8,dodochainTestnet:()=>v7,dogechain:()=>v4,domaTestnet:()=>v5,donatuz:()=>v9,dosChain:()=>Te,dosChainTestnet:()=>Tt,dreyerxMainnet:()=>Tr,dreyerxTestnet:()=>Ta,dustboyIoT:()=>Tn,dymension:()=>Ti,eden:()=>To,edexa:()=>Ts,edexaTestnet:()=>Tl,edgeless:()=>Tc,edgelessTestnet:()=>Td,edgeware:()=>Tp,edgewareTestnet:()=>Tu,eduChain:()=>Tm,eduChainTestnet:()=>Th,elastos:()=>Tg,elastosTestnet:()=>Tf,electroneum:()=>Tb,electroneumTestnet:()=>Ty,elysiumTestnet:()=>Tk,energy:()=>Tx,eni:()=>Tw,eniTestnet:()=>Tv,enuls:()=>TT,eon:()=>TE,eos:()=>TB,eosTestnet:()=>TC,eteria:()=>TU,etherlink:()=>TI,etherlinkShadownetTestnet:()=>TN,etherlinkTestnet:()=>TR,ethernity:()=>TS,etp:()=>TA,evmos:()=>TP,evmosTestnet:()=>TD,excelonMainnet:()=>TL,expanse:()=>TO,exsat:()=>TF,exsatTestnet:()=>T_,fantom:()=>TM,fantomSonicTestnet:()=>Tj,fantomTestnet:()=>T$,fibo:()=>TW,filecoin:()=>Tz,filecoinCalibration:()=>TV,filecoinHyperspace:()=>TH,fireChain:()=>xw,flame:()=>Tq,flare:()=>TG,flareTestnet:()=>TK,flowMainnet:()=>TJ,flowPreviewnet:()=>TZ,flowTestnet:()=>TQ,fluence:()=>TX,fluenceStage:()=>TY,fluenceTestnet:()=>T0,fluent:()=>T1,fluentDevnet:()=>T2,fluentTestnet:()=>T3,form:()=>T6,formTestnet:()=>T7,forma:()=>T8,formicarium:()=>CM,forta:()=>T4,foundry:()=>T5,fraxtal:()=>T9,fraxtalTestnet:()=>Ee,funkiMainnet:()=>Et,funkiSepolia:()=>Er,fuse:()=>Ea,fuseSparknet:()=>En,fusion:()=>Ei,fusionTestnet:()=>Eo,garnet:()=>Es,gatechain:()=>El,geist:()=>Ec,genesys:()=>Ed,gensyn:()=>Ep,giwaSepolia:()=>Eu,giwaSepoliaPreconf:()=>Em,glideL1Protocol:()=>Eh,glideL2Protocol:()=>Eg,gnosis:()=>Ef,gnosisChiado:()=>Eb,goChain:()=>Ex,goat:()=>Ey,gobi:()=>Ek,godwoken:()=>Ew,goerli:()=>Ev,graphite:()=>ET,graphiteTestnet:()=>EE,gravity:()=>EB,gunz:()=>EC,guruNetwork:()=>EU,guruTestnet:()=>EI,ham:()=>EN,happychainTestnet:()=>ER,haqqMainnet:()=>ES,haqqTestedge2:()=>EA,hardhat:()=>EP,harmonyOne:()=>ED,hashkey:()=>EL,hashkeyTestnet:()=>EO,haustTestnet:()=>EF,hedera:()=>E_,hederaPreviewnet:()=>EM,hederaTestnet:()=>Ej,hela:()=>E$,heliosTestnet:()=>EW,hemi:()=>Ez,hemiSepolia:()=>EV,henesys:()=>EH,holesky:()=>Eq,hoodi:()=>EG,horizenTestnet:()=>EK,hpb:()=>EJ,hpp:()=>EZ,hppSepolia:()=>EQ,huddle01Mainnet:()=>EX,huddle01Testnet:()=>EY,humanity:()=>E0,humanityTestnet:()=>E1,humanode:()=>E2,humanodeTestnet5:()=>E3,hychain:()=>E6,hychainTestnet:()=>E8,hyperEvm:()=>E7,hyperliquid:()=>E7,hyperliquidEvmTestnet:()=>E4,iSunCoin:()=>Bh,icbNetwork:()=>E5,idchain:()=>E9,igra:()=>Be,immutableZkEvm:()=>Bt,immutableZkEvmTestnet:()=>Br,inEVM:()=>Ba,initVerse:()=>Bn,initVerseGenesis:()=>Bi,injective:()=>Bo,injectiveTestnet:()=>Bs,ink:()=>Bl,inkSepolia:()=>Bc,iota:()=>Bd,iotaTestnet:()=>Bp,iotex:()=>Bu,iotexTestnet:()=>Bm,jasmyChain:()=>Bg,jasmyChainTestnet:()=>Bf,jbc:()=>Bb,jbcTestnet:()=>By,jocMainnet:()=>Bk,jocTestnet:()=>Bx,jovay:()=>Bw,jovaySepolia:()=>Bv,juneo:()=>BT,juneoBCH1Chain:()=>BE,juneoDAI1Chain:()=>BB,juneoDOGE1Chain:()=>BC,juneoEUR1Chain:()=>BU,juneoGLD1Chain:()=>BI,juneoLINK1Chain:()=>BN,juneoLTC1Chain:()=>BR,juneoSGD1Chain:()=>BA,juneoSocotraTestnet:()=>BP,juneoUSD1Chain:()=>BD,juneoUSDT1Chain:()=>BL,juneomBTC1Chain:()=>BS,kaia:()=>BO,kairos:()=>BF,kakarotSepolia:()=>B_,kakarotStarknetSepolia:()=>BM,kardiaChain:()=>Bj,karura:()=>B$,katana:()=>BW,kava:()=>Bz,kavaTestnet:()=>BV,kcc:()=>BH,kii:()=>Bq,kiiTestnetOro:()=>BG,kinto:()=>BK,klaytn:()=>BJ,klaytnBaobab:()=>BZ,koi:()=>BQ,kroma:()=>BX,kromaSepolia:()=>BY,krown:()=>B0,l3x:()=>B1,l3xTestnet:()=>B2,lavita:()=>B3,lens:()=>B6,lensTestnet:()=>B8,lestnet:()=>B7,lightlinkPegasus:()=>B4,lightlinkPhoenix:()=>B5,linea:()=>Cr,lineaGoerli:()=>Ca,lineaSepolia:()=>Cn,lineaTestnet:()=>Ci,lisk:()=>Co,liskSepolia:()=>Cs,loadAlphanet:()=>Cl,localhost:()=>Cc,loop:()=>Cd,lukso:()=>Cp,luksoTestnet:()=>Cu,lumiaMainnet:()=>Cm,lumiaTestnet:()=>Ch,lumoz:()=>Cg,lumozTestnet:()=>Cf,luxeports:()=>Cb,lycan:()=>Cy,lyra:()=>Ck,mainnet:()=>Cx,mandala:()=>Cw,manta:()=>Cv,mantaSepoliaTestnet:()=>CT,mantaTestnet:()=>CE,mantle:()=>CB,mantleSepoliaTestnet:()=>CC,mantleTestnet:()=>CU,mantraDuKongEVMTestnet:()=>CI,mantraEVM:()=>CN,mapProtocol:()=>CR,matchain:()=>CS,matchainTestnet:()=>CA,mchVerse:()=>CP,megaeth:()=>CD,megaethTestnet:()=>CL,mekong:()=>CO,meld:()=>CF,memecore:()=>C_,merlin:()=>Cj,merlinErigonTestnet:()=>C$,metachain:()=>CW,metachainIstanbul:()=>Cz,metadium:()=>CV,metalL2:()=>CH,meter:()=>Cq,meterTestnet:()=>CG,metis:()=>CK,metisGoerli:()=>CJ,metisSepolia:()=>CZ,mev:()=>CQ,mevTestnet:()=>CX,mezo:()=>CY,mezoTestnet:()=>C0,mint:()=>C1,mintSepoliaTestnet:()=>C2,mitosisTestnet:()=>C3,mizuhikiTestnetAwaji:()=>C6,mode:()=>C8,modeTestnet:()=>C7,monad:()=>C4,monadTestnet:()=>C5,moonbaseAlpha:()=>C9,moonbeam:()=>Ue,moonbeamDev:()=>Ut,moonriver:()=>Ur,morph:()=>Ua,morphHolesky:()=>Un,morphSepolia:()=>Ui,nahmii:()=>Uo,nautilus:()=>Us,near:()=>Ul,nearTestnet:()=>Uc,neonDevnet:()=>Ud,neonMainnet:()=>Up,neoxMainnet:()=>Uu,neoxT4:()=>Um,newton:()=>Uh,nexi:()=>Ug,nexilix:()=>
2051Uf,nibiru:()=>Ub,nitrographTestnet:()=>Uy,nomina:()=>Uk,oasisTestnet:()=>Ux,oasys:()=>Uw,odysseyTestnet:()=>Uv,okc:()=>UT,omax:()=>UE,omni:()=>UB,omniOmega:()=>UC,oneWorld:()=>UU,oortMainnetDev:()=>UI,opBNB:()=>UN,opBNBTestnet:()=>UR,openledger:()=>US,optimism:()=>UA,optimismGoerli:()=>UP,optimismSepolia:()=>UD,optopia:()=>UL,optopiaTestnet:()=>UO,orderly:()=>UF,orderlySepolia:()=>U_,otimDevnet:()=>UM,palm:()=>Uj,palmTestnet:()=>U$,paseoPassetHub:()=>UW,peaq:()=>Uz,pgn:()=>UV,pgnTestnet:()=>UH,phoenix:()=>Uq,planq:()=>UG,plasma:()=>UK,plasmaDevnet:()=>UJ,plasmaTestnet:()=>UZ,playfiAlbireo:()=>UQ,plinga:()=>UX,plume:()=>UY,plumeDevnet:()=>U0,plumeMainnet:()=>U1,plumeSepolia:()=>U2,plumeTestnet:()=>U3,polterTestnet:()=>U6,polygon:()=>U8,polygonAmoy:()=>U7,polygonMumbai:()=>U4,polygonZkEvm:()=>U5,polygonZkEvmCardona:()=>U9,polygonZkEvmTestnet:()=>Ie,polynomial:()=>It,polynomialSepolia:()=>Ir,potos:()=>Ia,potosTestnet:()=>In,premiumBlockTestnet:()=>Ii,pulsechain:()=>Io,pulsechainV4:()=>Is,pumpfiTestnet:()=>Il,pyrope:()=>Ic,qMainnet:()=>Ip,qTestnet:()=>Iu,ql1:()=>Id,quai:()=>Im,quaiTestnet:()=>Ih,radius:()=>Ig,radiusTestnet:()=>If,reactiveTestnet:()=>Ib,real:()=>Iy,redbellyMainnet:()=>Ik,redbellyTestnet:()=>Ix,reddio:()=>Iw,reddioSepolia:()=>Iv,redstone:()=>IT,rei:()=>IE,reyaNetwork:()=>IB,rise:()=>IC,riseTestnet:()=>IU,rivalz:()=>II,rollux:()=>IN,rolluxTestnet:()=>IR,ronin:()=>IS,root:()=>IA,rootPorcini:()=>IP,rootstock:()=>ID,rootstockTestnet:()=>IL,rss3:()=>IO,rss3Sepolia:()=>IF,saakuru:()=>I_,saga:()=>IM,saigon:()=>Ij,sanko:()=>I$,sapphire:()=>IW,sapphireTestnet:()=>Iz,satoshiVM:()=>IV,satoshiVMTestnet:()=>IH,scroll:()=>Iq,scrollSepolia:()=>IG,sei:()=>IK,seiTestnet:()=>IZ,seismicDevnet:()=>IJ,sentrix:()=>IQ,sentrixTestnet:()=>IX,sepolia:()=>IY,shape:()=>I0,shapeSepolia:()=>I1,shardeum:()=>I2,shardeumSphinx:()=>I3,shibarium:()=>I6,shibariumTestnet:()=>I8,shiden:()=>I7,shimmer:()=>I4,shimmerTestnet:()=>I5,sidraChain:()=>I9,silentData:()=>Ne,silicon:()=>Nt,siliconSepolia:()=>Nr,sixProtocol:()=>Na,skaleBase:()=>Nf,skaleBaseSepoliaTestnet:()=>Nb,skaleBlockBrawlers:()=>Nn,skaleCalypso:()=>Ni,skaleCalypsoTestnet:()=>No,skaleCryptoBlades:()=>Ns,skaleCryptoColosseum:()=>Nl,skaleEuropa:()=>Nc,skaleEuropaTestnet:()=>Nd,skaleExorde:()=>Np,skaleHumanProtocol:()=>Nu,skaleNebula:()=>Nm,skaleNebulaTestnet:()=>Nh,skaleRazor:()=>Ng,skaleTitan:()=>Ny,skaleTitanTestnet:()=>Nk,sketchpad:()=>Nx,snax:()=>Nw,snaxTestnet:()=>Nv,somnia:()=>NT,somniaTestnet:()=>NE,soneium:()=>NB,soneiumMinato:()=>NC,songbird:()=>NU,songbirdTestnet:()=>NI,sonic:()=>NN,sonicBlazeTestnet:()=>NR,sonicTestnet:()=>NS,sophon:()=>NA,sophonTestnet:()=>NP,sova:()=>ND,sovaSepolia:()=>NL,spicy:()=>NO,stable:()=>NF,stableTestnet:()=>N_,statusNetworkSepolia:()=>NM,statusSepolia:()=>NM,step:()=>Nj,story:()=>N$,storyAeneid:()=>NW,storyOdyssey:()=>Nz,storyTestnet:()=>NV,stratis:()=>NH,subtensorEvm:()=>Nq,superlumio:()=>NG,superposition:()=>NK,superseed:()=>NJ,superseedSepolia:()=>NZ,surgeTestnet:()=>NQ,swan:()=>NX,swanProximaTestnet:()=>NY,swanSaturnTestnet:()=>N0,swellchain:()=>N1,swellchainTestnet:()=>N2,swissdlt:()=>N3,syscoin:()=>N6,syscoinTestnet:()=>N8,tac:()=>N7,tacSPB:()=>N4,taiko:()=>N5,taikoHekla:()=>N9,taikoHoodi:()=>Re,taikoJolnir:()=>Rt,taikoKatla:()=>Rr,taikoTestnetSepolia:()=>Ra,taraxa:()=>Rn,taraxaTestnet:()=>Ri,teaSepolia:()=>Ro,telcoinTestnet:()=>Rs,telos:()=>Rl,telosTestnet:()=>Rc,tempo:()=>S0,tempoDevnet:()=>S1,tempoLocalnet:()=>S2,tempoMainnet:()=>S0,tempoModerato:()=>S3,tempoTestnet:()=>S3,tenet:()=>S6,ternoa:()=>S8,thaiChain:()=>S7,that:()=>S4,theta:()=>S5,thetaTestnet:()=>S9,thunderCore:()=>Ae,thunderTestnet:()=>At,tiktrixTestnet:()=>Ar,tomb:()=>Aa,treasure:()=>An,treasureTopaz:()=>Ai,tron:()=>Ao,tronNile:()=>As,tronShasta:()=>Al,ubiq:()=>Ac,ultra:()=>Ad,ultraTestnet:()=>Ap,ultron:()=>Au,ultronTestnet:()=>Am,unichain:()=>Ah,unichainSepolia:()=>Ag,unique:()=>Af,uniqueOpal:()=>Ab,uniqueQuartz:()=>Ay,unreal:()=>Ak,vana:()=>Ax,vanaMoksha:()=>Aw,vanar:()=>Av,vechain:()=>AT,velas:()=>AE,viction:()=>AB,victionTestnet:()=>AC,vision:()=>AU,visionTestnet:()=>AI,wanchain:()=>AN,wanchainTestnet:()=>AR,weaveVMAlphanet:()=>AS,wemix:()=>AA,wemixTestnet:()=>AP,westendAssetHub:()=>AD,whitechain:()=>AL,whitechainTestnet:()=>AO,wmcTestnet:()=>AF,worldLand:()=>Aj,worldchain:()=>
2051A_,worldchainSepolia:()=>AM,x1Testnet:()=>AG,xLayer:()=>Aq,xLayerTestnet:()=>AG,xai:()=>A$,xaiTestnet:()=>AW,xdc:()=>Az,xdcTestnet:()=>AV,xgr:()=>AH,xoneMainnet:()=>AK,xoneTestnet:()=>AJ,xphereMainnet:()=>AZ,xphereTestnet:()=>AQ,xpla:()=>AX,xrOne:()=>AY,xrSepolia:()=>A3,xrplevm:()=>A0,xrplevmDevnet:()=>A1,xrplevmTestnet:()=>A2,yooldoVerse:()=>A6,yooldoVerseTestnet:()=>A8,zenchainTestnet:()=>A7,zeniq:()=>A4,zeroG:()=>xb,zeroGGalileoTestnet:()=>xy,zeroGMainnet:()=>xk,zeroGTestnet:()=>xx,zeroNetwork:()=>A5,zetachain:()=>A9,zetachainAthensTestnet:()=>Pe,zhejiang:()=>Pt,zilliqa:()=>Pr,zilliqaTestnet:()=>Pa,zircuit:()=>Pn,zircuitGarfieldTestnet:()=>Pi,zkFair:()=>Po,zkFairTestnet:()=>Ps,zkLinkNova:()=>Pl,zkLinkNovaSepoliaTestnet:()=>Pc,zkSync:()=>Pd,zkSyncInMemoryNode:()=>Pp,zkSyncLocalNode:()=>Pg,zkSyncSepoliaTestnet:()=>Pf,zkXPLA:()=>Pb,zkXPLATestnet:()=>Py,zksync:()=>Pd,zksyncInMemoryNode:()=>Pp,zksyncLocalCustomHyperchain:()=>Pu,zksyncLocalHyperchain:()=>Pm,zksyncLocalHyperchainL1:()=>Ph,zksyncLocalNode:()=>Pg,zksyncSepoliaTestnet:()=>Pf,zora:()=>Pk,zoraSepolia:()=>Px,zoraTestnet:()=>Pw});var xb=iv({id:16600,name:"0G Newton Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-newton.0g.ai"}},testnet:!0}),xy=iv({id:16601,name:"0G Galileo Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-galileo.0g.ai"}},testnet:!0}),xk=iv({id:16661,name:"0G Mainnet",nativeCurrency:{name:"0G",symbol:"0G",decimals:18},rpcUrls:{default:{http:["https://evmrpc.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan.0g.ai"}},testnet:!1}),xx=iv({id:16602,name:"0G Galileo Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-galileo.0g.ai"}},testnet:!0}),xw=iv({id:995,name:"5ireChain",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Mainnet Explorer",url:"https://5irescan.io/"}},testnet:!1}),xv=iv({id:179,name:"ABEY Mainnet",nativeCurrency:{name:"ABEY",symbol:"ABEY",decimals:18},rpcUrls:{default:{http:["https://rpc.abeychain.com"]}},blockExplorers:{default:{name:"Abey Scan",url:"https://abeyscan.com"}},testnet:!1}),xT=32n*A.Au,xE={block:az({format(e){let t=e.transactions?.map(e=>{if("string"==typeof e)return e;let t=xE.transaction?.format(e);return"0x71"===t.typeHex?t.type="eip712":"0xff"===t.typeHex&&(t.type="priority"),t});return{l1BatchNumber:e.l1BatchNumber?(0,A.uU)(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?(0,A.uU)(e.l1BatchTimestamp):null,transactions:t}}}),transaction:a$({format(e){let t={};return"0x71"===e.type?t.type="eip712":"0xff"===e.type&&(t.type="priority"),{...t,l1BatchNumber:e.l1BatchNumber?(0,A.uU)(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?(0,A.uU)(e.l1BatchTxIndex):null}}}),transactionReceipt:nL({format:e=>({l1BatchNumber:e.l1BatchNumber?(0,A.uU)(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?(0,A.uU)(e.l1BatchTxIndex):null,logs:e.logs.map(e=>({...no(e),l1BatchNumber:e.l1BatchNumber?(0,A.uU)(e.l1BatchNumber):null,transactionLogIndex:(0,A.ME)(e.transactionLogIndex),logType:e.logType})),l2ToL1Logs:e.l2ToL1Logs.map(e=>({blockNumber:(0,A.uU)(e.blockHash),blockHash:e.blockHash,l1BatchNumber:e.l1BatchNumber?(0,A.uU)(e.l1BatchNumber):null,transactionIndex:(0,A.uU)(e.transactionIndex),shardId:(0,A.uU)(e.shardId),isService:e.isService,sender:e.sender,key:e.key,value:e.value,transactionHash:e.transactionHash,logIndex:(0,A.uU)(e.logIndex)}))})}),transactionRequest:(0,A.bm)({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format:e=>e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:(0,A.nj)(e.gasPerPubdata)}:{gasPerPubdata:(0,A.nj)(50000n)},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from((0,A.aT)(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps.map(e=>Array.from((0,A.aT)(e)))}:{},...e.customSignature?{customSignature:Array.from((0,A.aT)(e.customSignature))}:{}}
2051,type:"0x71"}:{}})},xB=class extends A.Cf{constructor(){super('Transaction is not an EIP712 transaction.\n\nTransaction must:\n  - include `type: "eip712"`\n  - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`',{name:"InvalidEip712TransactionError"})}};function xC(e){return"eip712"===e.type||"customSignature"in e&&!!e.customSignature||"paymaster"in e&&!!e.paymaster||"paymasterInput"in e&&!!e.paymasterInput||"gasPerPubdata"in e&&"bigint"==typeof e.gasPerPubdata||"factoryDeps"in e&&!!e.factoryDeps||!1}function xU(e){let{chainId:t,to:r,from:a,paymaster:n,paymasterInput:i}=e;if(!xC(e))throw new xB;if(!t||t<=0)throw new A.qD({chainId:t});if(r&&!(0,A.PW)(r))throw new A.Ms({address:r});if(a&&!(0,A.PW)(a))throw new A.Ms({address:a});if(n&&!(0,A.PW)(n))throw new A.Ms({address:n});if(n&&!i)throw new A.Cf("`paymasterInput` must be provided when `paymaster` is defined");if(!n&&i)throw new A.Cf("`paymaster` must be provided when `paymasterInput` is defined")}var xI=class extends A.Cf{constructor({givenLength:e,maxBytecodeSize:t}){super(`Bytecode cannot be longer than ${t} bytes. Given length: ${e}`,{name:"BytecodeLengthExceedsMaxSizeError"})}},xN=class extends A.Cf{constructor({givenLengthInWords:e}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${e}`,{name:"BytecodeLengthInWordsMustBeOddError"})}},xR=class extends A.Cf{constructor({givenLength:e}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${e}`,{name:"BytecodeLengthMustBeDivisibleBy32Error"})}},xS={blockTime:1e3,formatters:xE,serializers:{transaction:function(e,t){return xC(e)?function(e){let{chainId:t,gas:r,nonce:a,to:n,from:i,value:o,maxFeePerGas:s,maxPriorityFeePerGas:l,customSignature:c,factoryDeps:d,paymaster:p,paymasterInput:u,gasPerPubdata:m,data:h}=e;xU(e);let g=[a?(0,A.nj)(a):"0x",l?(0,A.nj)(l):"0x",s?(0,A.nj)(s):"0x",r?(0,A.nj)(r):"0x",n??"0x",o?(0,A.nj)(o):"0x",h??"0x",(0,A.nj)(t),(0,A.nj)(""),(0,A.nj)(""),(0,A.nj)(t),i??"0x",m?(0,A.nj)(m):(0,A.nj)(50000n),d??[],c??"0x",p&&u?[p,u]:[]];return(0,A.aP)(["0x71",aS(g)])}(e):iy(e,t)}},custom:{getEip712Domain:e=>{xU(e);let t=function(e){let{gas:t,nonce:r,to:a,from:n,value:i,maxFeePerGas:o,maxPriorityFeePerGas:s,factoryDeps:l,paymaster:c,paymasterInput:d,gasPerPubdata:p,data:u}=e;return{txType:113n,from:BigInt(n),to:a?BigInt(a):0n,gasLimit:t??0n,gasPerPubdataByteLimit:p??50000n,maxFeePerGas:o??0n,maxPriorityFeePerGas:s??0n,paymaster:c?BigInt(c):0n,nonce:r?BigInt(r):0n,value:i??0n,data:u??"0x",factoryDeps:l?.map(e=>(0,A.nj)(function(e){let t=(0,A.ZJ)(e);if(t.length%32!=0)throw new xR({givenLength:t.length});if(t.length>xT)throw new xI({givenLength:t.length,maxBytecodeSize:xT});let r=aY(t),a=(0,A.ZJ)(r),n=t.length/32;if(n%2==0)throw new xN({givenLengthInWords:n});let i=(0,A.ZJ)(n),o=(0,A.eV)(i,{size:2}),s=new Uint8Array([1,0]);return a.set(s,0),a.set(o,2),a}(e)))??[],paymasterInput:d||"0x"}}(e);return{domain:{name:"zkSync",version:"2",chainId:e.chainId},types:{Transaction:[{name:"txType",type:"uint256"},{name:"from",type:"uint256"},{name:"to",type:"uint256"},{name:"gasLimit",type:"uint256"},{name:"gasPerPubdataByteLimit",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymaster",type:"uint256"},{name:"nonce",type:"uint256"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"factoryDeps",type:"bytes32[]"},{name:"paymasterInput",type:"bytes"}]},primaryType:"Transaction",message:t}}}},xA=iv({...xS,blockTime:200,id:2741,name:"Abstract",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.mainnet.abs.xyz"],webSocket:["wss://api.mainnet.abs.xyz/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.mainnet.abs.xyz"}},contracts:{multicall3:{address:"0xAa4De41dba0Ca5dCBb288b7cC6b708F3aaC759E7",blockCreated:5288},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:5263}}}
vendor: 4,185 bytes, line 2051
2051),xP=iv({...xS,blockTime:200,id:11124,name:"Abstract Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.testnet.abs.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.testnet.abs.xyz"}},testnet:!0,contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:358349},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:431682}}}),xD=iv({id:787,name:"Acala",network:"acala",nativeCurrency:{name:"Acala",symbol:"ACA",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]}},blockExplorers:{default:{name:"Acala Blockscout",url:"https://blockscout.acala.network",apiUrl:"https://blockscout.acala.network/api"}},testnet:!1}),xL=iv({id:47,name:"Acria IntelliChain",nativeCurrency:{decimals:18,name:"ACRIA",symbol:"ACRIA"},rpcUrls:{default:{http:["https://aic.acria.ai"]}},blockExplorers:{default:{name:"Acria Explorer",url:"https://explorer.acria.ai"}},testnet:!1}),xO=iv({id:1215,name:"ADF Chain",nativeCurrency:{name:"ADDFILL",symbol:"ADF",decimals:18},rpcUrls:{default:{http:["https://mainnet.adftechnology.com"]}},blockExplorers:{default:{name:"ADF Mainnet Explorer",url:"https://explorer.adftechnology.com"}},testnet:!1}),xF=iv({id:36900,name:"ADI_Chain",nativeCurrency:{decimals:18,name:"ADI",symbol:"ADI"},rpcUrls:{default:{http:["https://rpc.adifoundation.ai"]}},blockExplorers:{default:{name:"ADI Explorer",url:"https://explorer.adifoundation.ai"}},testnet:!1}),x_=iv({id:9990,name:"Agung Network",nativeCurrency:{decimals:18,name:"Agung",symbol:"AGNG"},rpcUrls:{default:{http:["https://wss-async.agung.peaq.network"],webSocket:["wss://wss-async.agung.peaq.network"]}},blockExplorers:{default:{name:"Subscan",url:"https://agung-testnet.subscan.io"}},testnet:!0}),xM=iv({id:168,name:"AIOZ Network",nativeCurrency:{decimals:18,name:"AIOZ",symbol:"AIOZ"},rpcUrls:{default:{http:["https://eth-dataseed.aioz.network"]}},blockExplorers:{default:{name:"AIOZ Explorer",url:"https://explorer.aioz.network"}},testnet:!1}),xj=iv({id:41455,name:"Aleph Zero",nativeCurrency:{name:"Aleph Zero",symbol:"AZERO",decimals:18},rpcUrls:{default:{http:["https://rpc.alephzero.raas.gelato.cloud"]}},blockExplorers:{default:{name:"Aleph Zero EVM Explorer",url:"https://evm-explorer.alephzero.org",apiUrl:"https://evm-explorer.alephzero.org/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4603377}}}),x$=iv({id:2039,name:"Aleph Zero Testnet",nativeCurrency:{name:"TZERO",symbol:"TZERO",decimals:18},rpcUrls:{default:{http:["https://rpc.alephzero-testnet.gelato.digital"],webSocket:["wss://ws.alephzero-testnet.gelato.digital"]}},blockExplorers:{default:{name:"Aleph Zero EVM Testnet explorer",url:"https://evm-explorer-testnet.alephzero.org",apiUrl:"https://evm-explorer-testnet.alephzero.org/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2861745}},testnet:!0}),xW=iv({id:0x9c4400,name:"AlienX Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.alienxchain.io/http"]}},blockExplorers:{default:{name:"AlienX Explorer",url:"https://explorer.alienxchain.io"}},testnet:!1}),xz=iv({id:0x9c4401,name:"ALIENX Hal Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://hal-rpc.alienxchain.io/http"]}},blockExplorers:{default:{name:"AlienX Explorer",url:"https://hal-explorer.alienxchain.io"}},testnet:!0}),xV=iv({id:8150,name:"Alpen Testnet",nativeCurrency:{name:"Signet BTC",symbol:"sBTC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.alpenlabs.io"]}},blockExplorers:{default:{name:"Alpen Explorer",url:"https://explorer.testnet.alpenlabs.io",apiUrl:"https://explorer.testnet.alpenlabs.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:290408}},testnet:!0}),xH={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"}
2051,l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},xq={block:az({format:e=>({transactions:e.transactions?.map(e=>{if("string"==typeof e)return e;let t=aj(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,A.uU)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot})}),transaction:a$({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,A.uU)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:nL({format:e=>({l1GasPrice:e.l1GasPrice?(0,A.uU)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,A.uU)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,A.uU)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})};function xG(e,t){var r;return"deposit"===(r=e).type||void 0!==r.sourceHash?function(e){var t=e;let{from:r,to:a}=t;if(r&&!(0,A.PW)(r))throw new A.Ms({address:r});if(a&&!(0,A.PW)(a))throw new A.Ms({address:a});let{sourceHash:n,data:i,from:o,gas:s,isSystemTx:l,mint:c,to:d,value:p}=e,u=[n,o,d??"0x",c?(0,A.nj)(c):"0x",p?(0,A.nj)(p):"0x",s?(0,A.nj)(s):"0x",l?"0x1":"0x",i??"0x"];return(0,A.aP)(["0x7e",aS(u)])}(e):iy(e,t)}var xK={blockTime:2e3,contracts:xH,formatters:xq,serializers:{transaction:xG}},xJ=iv({...xK,id:0x34fb5e38,name:"Ancient8",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 explorer",url:"https://scan.ancient8.gg",apiUrl:"https://scan.ancient8.gg/api"}},contracts:{...xK.contracts,l2OutputOracle:{1:{address:"0xB09DC08428C8b4EFB4ff9C0827386CDF34277996"}},portal:{1:{address:"0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68",blockCreated:0x122fe6b}},l1StandardBridge:{1:{address:"0xd5e3eDf5b68135D559D572E26bF863FBC1950033",blockCreated:0x122fe6b}}},sourceId:1}),xZ=iv({...xK,id:0x1ad1ba8,name:"Ancient8 Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpcv2-testnet.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 Celestia Testnet explorer",url:"https://scanv2-testnet.ancient8.gg",apiUrl:"https://scanv2-testnet.ancient8.gg/api"}},contracts:{...xK.contracts,l2OutputOracle:{0xaa36a7:{address:"0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB"}},portal:{0xaa36a7:{address:"0xfa1d9E26A6aCD7b22115D27572c1221B9803c960",blockCreated:4972908}},l1StandardBridge:{0xaa36a7:{address:"0xF6Bc0146d3c74D48306e79Ae134A260E418C9335",blockCreated:4972908}}},sourceId:0xaa36a7,testnet:!0}),xQ=iv({id:31337,name:"Anvil",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}}),xX=iv({id:33139,name:"ApeChain",nativeCurrency:{name:"ApeCoin",symbol:"APE",decimals:18},rpcUrls:{default:{http:["https://rpc.apechain.com/http"],webSocket:["wss://rpc.apechain.com/ws"]}},blockExplorers:{default:{name:"Apescan",url:"https://apescan.io",apiUrl:"https://api.apescan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:20889}},sourceId:42161}),xY=iv({id:3993,name:"APEX Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.apexlayer.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-testnet.apexlayer.xyz",apiUrl:"https://exp-testnet.apexlayer.xyz/api"}},contracts:{multicall3:{address:"0xf7642be33a6b18D16a995657adb5a68CD0438aE2",blockCreated:283775}},testnet:!0}),x0=iv({id:62606,name:"Apollo",nativeCurrency:{decimals:18,name:"Apollo",symbol:"APOLLO"},rpcUrls:{default:{http:["https://mainnet-rpc.apolloscan.io"]}},blockExplorers:{default:{name:"Apollo Explorer",url:"https://apolloscan.io"}}}),x1=iv({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),x2=iv({id:421613,name:"Arbitrum Goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol
vendor: 8,686 bytes, line 2051
2051:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://goerli.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0}),x3=iv({id:42170,name:"Arbitrum Nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://nova.arbiscan.io",apiUrl:"https://api-nova.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}}),x6=iv({id:421614,name:"Arbitrum Sepolia",blockTime:250,nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io",apiUrl:"https://api-sepolia.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0}),x8=iv({id:5042,name:"Arc",nativeCurrency:{name:"USDC",symbol:"USDC",decimals:18},rpcUrls:{default:{http:[]}}}),x7=iv({id:5042002,name:"Arc Testnet",nativeCurrency:{name:"USDC",symbol:"USDC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.arc.network","https://rpc.quicknode.testnet.arc.network","https://rpc.blockdaemon.testnet.arc.network"],webSocket:["wss://rpc.testnet.arc.network","wss://rpc.quicknode.testnet.arc.network"]}},blockExplorers:{default:{name:"ArcScan",url:"https://testnet.arcscan.app",apiUrl:"https://testnet.arcscan.app/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0}),x4=iv({id:7897,name:"Arena-Z",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.arena-z.gg"]}},blockExplorers:{default:{name:"Arena-Z Explorer",url:"https://explorer.arena-z.gg",apiUrl:"https://explorer.arena-z.gg"}}}),x5=iv({id:463,name:"Areon Network",nativeCurrency:{decimals:18,name:"AREA",symbol:"AREA"},rpcUrls:{default:{http:["https://mainnet-rpc.areon.network"],webSocket:["wss://mainnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:353286}},testnet:!1}),x9=iv({id:462,name:"Areon Network Testnet",nativeCurrency:{decimals:18,name:"TAREA",symbol:"TAREA"},rpcUrls:{default:{http:["https://testnet-rpc.areon.network"],webSocket:["wss://testnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},testnet:!0}),we=iv({id:463,name:"Areum",nativeCurrency:{decimals:18,name:"AREA",symbol:"AREA"},rpcUrls:{default:{http:["https://mainnet-rpc.areum.network"],webSocket:["wss://mainnet-ws.areum.network"]}},blockExplorers:{default:{name:"Areum Explorer",url:"https://explorer.areum.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:353286}},testnet:!1}),wt=iv({id:11822,name:"Artela Testnet",nativeCurrency:{name:"ART",symbol:"ART",decimals:18},rpcUrls:{default:{http:["https://betanet-rpc1.artela.network"]}},blockExplorers:{default:{name:"Artela",url:"https://betanet-scan.artela.network",apiUrl:"https://betanet-scan.artela.network/api"}},contracts:{multicall3:{address:"0xd07c8635f76e8745Ee7092fbb6e8fbc5FeF09DD7",blockCreated:7001871}},testnet:!0}),wr=iv({id:10242,name:"Arthera",nativeCurrency:{name:"Arthera",symbol:"AA",decimals:18},rpcUrls:{default:{http:["https://rpc.arthera.net"]}},blockExplorers:{default:{name:"Arthera EVM Explorer",url:"https://explorer.arthera.net",apiUrl:"https://explorer.arthera.net/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4502791}}}),wa=iv({id:10243,name:"Arthera Testnet",nativeCurrency:{name:"Arthera",symbol:"AA",decimals:18},rpcUrls:{default:{http:["https://rpc-test.arthera.net"]}},blockExplorers:{default:{name:"Arthera EVM Explorer",url:"https://explorer-test.arthera.net",apiUrl:"https://explorer-test.arthera.net/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:22051}},testnet:!0}),wn=iv({id:42420,name:"AssetChain Mainnet",nativeCurrency:{decimals:18,name:"Real World Asset",symbol:"RWA"},rpcUrls:{default:{http:["https://mainnet-rpc.assetchain.org"]}},blockExplorers:{default:{name:"Asset Chain Explorer",url:"https://scan.assetchain.org",apiUrl:"https://scan.assetchain.org/api"}},testnet:!1,contracts:{}}),wi=iv({id:42421,name:"AssetChain Testnet",nativeCurrency:{decimals:18,name:"Real World Asset",symbol:"RWA"},rpcUrls:{default:{http:["https://enugu-rpc.assetchain.org"]}},blockExplorers:{default:{name:"Asset Chain Testnet Explorer",url:"https://scan-testnet.assetchain.org",apiUrl:"https://scan-testnet.assetchain.org/api"}},testnet:!0,contracts:{multicall3:{address:"0x989F832D35988cb5e3eB001Fa2Fe789469EC31Ea",blockCreated:17177}}}),wo=iv({id:592,name:"Astar",network:"astar-mainnet",nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},rpcUrls:{default:{http:["https://astar.api.onfinality.io/public"]}},blockExplorers:{default:{name:"Astar Subscan",url:"https://astar.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:761794}},testnet:!1}),ws=iv({id:3776,name:"Astar zkEVM",network:"AstarZkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-zkevm.astar.network"]}},blockExplorers:{default:{name:"Astar zkEVM Explorer",url:"https://astar-zkevm.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:93528}},testnet:!1}),wl=iv({id:6038361,name:"Astar zkEVM Testnet zKyoto",network:"zKyoto",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.startale.com/zkyoto"]}},blockExplorers:{default:{name:"zKyoto Explorer",url:"https://zkyoto.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:196153}},testnet:!0}),wc=iv({id:2340,name:"Atleta Olympia",nativeCurrency:{decimals:18,name:"Atla",symbol:"ATLA"},rpcUrls:{default:{http:["https://testnet-rpc.atleta.network:9944","https://testnet-rpc.atleta.network"],ws:["wss://testnet-rpc.atleta.network:9944"]}},blockExplorers:{default:{name:"Atleta Olympia Explorer",url:"https://blockscout.atleta.network",apiUrl:"https://blockscout.atleta.network/api"}},contracts:{multicall3:{address:"0x1472ec6392180fb84F345d2455bCC75B26577115",blockCreated:1076473}},testnet:!0}),wd=iv({id:0x4e454152,name:"Aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://aurorascan.dev",apiUrl:"https://aurorascan.dev/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x3bfe5a8}}}),wp=iv({id:0x4e454153,name:"Aurora Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev",apiUrl:"https://testnet.aurorascan.dev/api"}},testnet:!0}),wu=iv({id:205205,name:"Auroria Testnet",network:"auroria",nativeCurrency:{name:"Auroria Stratis",symbol:"tSTRAX",decimals:18},rpcUrls:{default:{http:["https://auroria.rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Auroria Testnet Explorer",url:"https://auroria.explorer.stratisevm.com"}},testnet:!0}),wm=iv({id:785,name:"Autheo Testnet",nativeCurrency:{decimals:18,name:"Autheo",symbol:"THEO"},rpcUrls:{default:{http:["https://testnet-rpc1.autheo.com","https://testnet-rpc2.autheo.com"]}},blockExplorers:{default:{name:"Autheo Testnet Block Explorer",url:"https://testnet-explorer.autheo.com/"}},testnet:!0}),wh=iv({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xb5b35e}}}),wg=iv({id:43113,name:"Avalanche Fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://testnet.snowtrace.io",apiUrl:"https://api-testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0}
2051),wf=iv({id:8333,name:"B3",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.b3.fun/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.b3.fun"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},sourceId:8453}),wb=iv({id:1993,name:"B3 Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.b3.fun/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.b3.fun"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},testnet:!0,sourceId:0xa0c71fd}),wy=iv({id:5165,network:"bahamut",name:"Bahamut",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.bahamut.io","https://bahamut-rpc.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut-rpc.publicnode.com","wss://ws2.sahara.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://www.ftnscan.com",apiUrl:"https://www.ftnscan.com/api"}}}),wk=iv({...xK,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...xK.contracts,disputeGameFactory:{1:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{1:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{1:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:0x10ac19f}},l1StandardBridge:{1:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:0x10ac19f}}},sourceId:1}),wx=iv({...wk,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://mainnet-preconf.base.org"]}}}),ww=iv({id:0x1cbc67c35a,name:"Basecamp Testnet",nativeCurrency:{decimals:18,name:"Camp",symbol:"CAMP"},rpcUrls:{default:{http:["https://rpc.basecamp.t.raas.gelato.cloud"]}},blockExplorers:{default:{name:"basecamp",url:"https://basecamp.cloud.blockscout.com"}},testnet:!0}),wv=iv({...xK,id:84531,name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://goerli.basescan.org",apiUrl:"https://goerli.basescan.org/api"}},contracts:{...xK.contracts,l2OutputOracle:{5:{address:"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988},portal:{5:{address:"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA"}},l1StandardBridge:{5:{address:"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a"}}},testnet:!0,sourceId:5}),wT=iv({...xK,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...xK.contracts,disputeGameFactory:{0xaa36a7:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{0xaa36a7:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{0xaa36a7:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{0xaa36a7:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:0xaa36a7}),wE=iv({...wT,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-preconf.base.org"]}}}),wB=iv({...xS,id:627,name:"BattleChain Testnet",network:"battlechain-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.battlechain.com"]}},blockExplorers:{default:{name:"BattleChain Explorer",url:"https://explorer.testnet.battlechain.com",blockExplorerApi:"https://block-explorer-api.testnet.battlechain.com/api"}},testnet:!0}
vendor: 4,219 bytes, line 2051
2051),wC=iv({id:4337,name:"Beam",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{default:{http:["https://build.onbeam.com/rpc"],webSocket:["wss://build.onbeam.com/ws"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets.avax.network/beam"}},contracts:{multicall3:{address:"0x4956f15efdc3dc16645e90cc356eafa65ffc65ec",blockCreated:1}}}),wU=iv({id:13337,name:"Beam Testnet",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{default:{http:["https://build.onbeam.com/rpc/testnet"],webSocket:["wss://build.onbeam.com/ws/testnet"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets-test.avax.network/beam"}},contracts:{multicall3:{address:"0x9bf49b704ee2a095b95c1f2d4eb9010510c41c9e",blockCreated:3}},testnet:!0}),wI=iv({id:641230,name:"Bear Network Chain Mainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net",apiUrl:"https://brnkscan.bearnetwork.net/api"}}}),wN=iv({id:751230,name:"Bear Network Chain Testnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net",apiUrl:"https://brnktest-scan.bearnetwork.net/api"}},testnet:!0}),wR=iv({id:80094,name:"Berachain",blockTime:2e3,nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},ensRegistry:{address:"0x5b22280886a2f5e09a49bea7e320eab0e5320e28",blockCreated:877007},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:9310021}},rpcUrls:{default:{http:["https://rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://berascan.com"}},ensTlds:[".bera"],testnet:!1}),wS=iv({id:80069,blockTime:2e3,name:"Berachain Bepolia",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},rpcUrls:{default:{http:["https://bepolia.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://bepolia.beratrail.io"}},testnet:!0}),wA=iv({id:80085,name:"Berachain Artio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},rpcUrls:{default:{http:["https://artio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain",url:"https://artio.beratrail.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:866924}},testnet:!0}),wP=iv({id:80084,name:"Berachain bArtio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:109269},ensRegistry:{address:"0xB0eef18971290b333450586D33dcA6cE122651D2",blockCreated:7736794},ensUniversalResolver:{address:"0x41692Ef1EA0C79E6b73077E4A67572D2BDbD7057",blockCreated:7736795}},ensTlds:[".bera"],rpcUrls:{default:{http:["https://bartio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain bArtio Beratrail",url:"https://bartio.beratrail.io"}},testnet:!0}),wD=iv({id:11501,name:"BEVM Mainnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet-1.bevm.io"]}},blockExplorers:{default:{name:"Bevmscan",url:"https://scan-mainnet.bevm.io",apiUrl:"https://scan-mainnet-api.bevm.io/api"}}}),wL=iv({id:3068,name:"Bifrost Mainnet",nativeCurrency:{name:"BFC",symbol:"BFC",decimals:18},rpcUrls:{default:{http:["https://public-01.mainnet.bifrostnetwork.com/rpc"]}},blockExplorers:{default:{name:"Bifrost Blockscout",url:"https://explorer.mainnet.bifrostnetwork.com"}},testnet:!1}),wO=iv({id:53456,name:"BirdLayer",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.birdlayer.xyz","https://rpc1.birdlayer.xyz"],webSocket:["wss://rpc.birdlayer.xyz/ws"]}},blockExplorers:{default:{name:"BirdLayer Explorer",url:"https://scan.birdlayer.xyz"}}}),wF=iv({id:32520,name:"Bitgert Mainnet",nativeCurrency:{decimals:18,name:"Brise",symbol
2051:"Brise"},rpcUrls:{default:{http:["https://rpc-bitgert.icecreamswap.com"]}},blockExplorers:{default:{name:"Bitgert Scan",url:"https://brisescan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2118034}},testnet:!1}),w_=iv({id:96,name:"KUB Mainnet",nativeCurrency:{name:"KUB Coin",symbol:"KUB",decimals:18},rpcUrls:{default:{http:["https://rpc.bitkubchain.io"]}},blockExplorers:{default:{name:"KUB Chain Mainnet Explorer",url:"https://www.bkcscan.com",apiUrl:"https://www.bkcscan.com/api"}}}),wM=iv({id:25925,name:"Bitkub Testnet",network:"Bitkub Testnet",nativeCurrency:{name:"Bitkub Test",symbol:"tKUB",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.bitkubchain.io"]}},blockExplorers:{default:{name:"Bitkub Chain Testnet Explorer",url:"https://testnet.bkcscan.com",apiUrl:"https://testnet.bkcscan.com/api"}},testnet:!0}),wj=iv({id:200901,name:"Bitlayer Mainnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bitlayer.org"],webSocket:["wss://ws.bitlayer.org"]}},blockExplorers:{default:{name:"bitlayer mainnet scan",url:"https://www.btrscan.com"}},contracts:{multicall3:{address:"0x5B256fE9e993902eCe49D138a5b1162cBb529474",blockCreated:2421963}}}),w$=iv({id:200810,name:"Bitlayer Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bitlayer.org"],webSocket:["wss://testnet-ws.bitlayer.org"]}},blockExplorers:{default:{name:"bitlayer testnet scan",url:"https://testnet.btrscan.com"}},contracts:{multicall3:{address:"0x5B256fE9e993902eCe49D138a5b1162cBb529474",blockCreated:4135671}},testnet:!0}),wW=iv({id:7171,name:"Bitrock Mainnet",nativeCurrency:{name:"BROCK",symbol:"BROCK",decimals:18},rpcUrls:{default:{http:["https://brockrpc.io"]}},blockExplorers:{default:{name:"Bitrock Explorer",url:"https://explorer.bit-rock.io"}},testnet:!1}),wz=iv({id:199,name:"BitTorrent",network:"bittorrent-chain-mainnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://rpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://bttcscan.com",apiUrl:"https://api.bttcscan.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0x1da3898}}}),wV=iv({id:1028,name:"BitTorrent Chain Testnet",network:"bittorrent-chain-testnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://testrpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://testnet.bttcscan.com",apiUrl:"https://testnet.bttcscan.com/api"}},testnet:!0}),wH=iv({...xK,id:81457,name:"Blast",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://blastscan.io",apiUrl:"https://api.blastscan.io/api"}},contracts:{...xK.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:212929},l2OutputOracle:{1:{address:"0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76",blockCreated:0x1268006}},portal:{1:{address:"0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb",blockCreated:0x1268005}},l1StandardBridge:{1:{address:"0x697402166Fbf2F22E970df8a6486Ef171dbfc524",blockCreated:0x1268008}}},sourceId:1}),wq=iv({id:0xa0c71fd,name:"Blast Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://sepolia.blastscan.io",apiUrl:"https://api-sepolia.blastscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:756690}},testnet:!0,sourceId:0xaa36a7}),wG=iv({...xK,id:60808,name:"BOB",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.gobob.xyz"],webSocket:["wss://rpc.gobob.xyz"]}},blockExplorers:{default:{name:"BOB Explorer",url:"https://explorer.gobob.xyz"}},contracts:{...xK.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:23131},l2OutputOracle:{1:{address:"0xdDa53E23f8a32640b04D7256e651C1db98dB11C1",blockCreated:4462615}},portal:{1:{address:"0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E",blockCreated:4462615}}},sourceId:1}),wK=iv({id:288,name:"Boba Network",nativeCurrency:{decimals:18,name:"Ether",symbol
2051:"ETH"},rpcUrls:{default:{http:["https://mainnet.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}}),wJ=iv({id:28882,name:"Boba Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://testnet.bobascan.com"}},testnet:!0}),wZ=iv({...xK,id:808813,name:"BOB Sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://bob-sepolia.rpc.gobob.xyz"],webSocket:["wss://bob-sepolia.rpc.gobob.xyz"]}},blockExplorers:{default:{name:"BOB Sepolia Explorer",url:"https://bob-sepolia.explorer.gobob.xyz"}},contracts:{...xK.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:35677},l2OutputOracle:{0xaa36a7:{address:"0x14D0069452b4AE2b250B395b8adAb771E4267d2f",blockCreated:4462615}},portal:{0xaa36a7:{address:"0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4",blockCreated:4462615}}},testnet:!0,sourceId:0xaa36a7}),wQ=iv({id:11100,name:"Bool Beta Mainnet",nativeCurrency:{decimals:18,name:"BOL",symbol:"BOL"},rpcUrls:{default:{http:["https://beta-rpc-node-http.bool.network"]}},blockExplorers:{default:{name:"BoolScan",url:"https://beta-mainnet.boolscan.com/"}},testnet:!1}),wX=iv({id:3637,name:"Botanix",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.botanixlabs.com"],webSocket:["wss://rpc.botanixlabs.com/ws"]}},blockExplorers:{default:{name:"Botanixscan",url:"https://botanixscan.io"}}}),wY=iv({id:3636,name:"Botanix Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://node.botanixlabs.dev"]}},blockExplorers:{default:{name:"Botanix Testnet Explorer",url:"https://testnet.botanixscan.io"}},testnet:!0}),w0=iv({id:6001,name:"BounceBit Mainnet",nativeCurrency:{name:"BounceBit",symbol:"BB",decimals:18},rpcUrls:{default:{http:["https://fullnode-mainnet.bouncebitapi.com"]}}
2051,blockExplorers:{default:{name:"BB Scan",url:"https://bbscan.io"}},testnet:!1}),w1=iv({id:6e3,name:"BounceBit Testnet",nativeCurrency:{name:"BounceBit",symbol:"BB",decimals:18},rpcUrls:{default:{http:["https://fullnode-testnet.bouncebitapi.com"]}},blockExplorers:{default:{name:"BB Scan",url:"https://testnet.bbscan.io"}},testnet:!0}),w2=iv({id:1039,name:"Bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}}),w3=iv({id:1038,name:"Bronos Testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0}),w6=iv({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xf2f12c}}}),w8=iv({id:1017,name:"BNB Greenfield Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://greenfield-chain.bnbchain.org"]}},blockExplorers:{default:{name:"BNB Greenfield Mainnet Scan",url:"https://greenfieldscan.com"}},testnet:!1}),w7=iv({id:97,name:"BNB Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://api-testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x109d893}},testnet:!0}),w4=iv({id:223,name:"B2",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bsquared.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.bsquared.network"}}}),w5=iv({id:1123,name:"B2 Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bsquared.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet-explorer.bsquared.network"}},testnet:!0}),w9=iv({id:200901,name:"Bitlayer",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bitlayer.org","https://rpc.bitlayer-rpc.com"],webSocket:["wss://ws.bitlayer.org","wss://ws.bitlayer-rpc.com"]}},blockExplorers:{default:{name:"Bitlayer(BTR) Scan",url:"https://www.btrscan.com"}}}),ve=iv({id:200810,name:"Bitlayer Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bitlayer.org"],webSocket:["wss://testnet-ws.bitlayer.org","wss://testnet-ws.bitlayer-rpc.com"]}},blockExplorers:{default:{name:"Bitlayer(BTR) Scan",url:"https://testnet.btrscan.com"}},testnet:!0}),vt=iv({id:4999,name:"BlackFort Exchange Network",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network",apiUrl:"https://explorer.blackfort.network/api"}}}),vr=iv({id:4777,name:"BlackFort Exchange Network Testnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network",apiUrl:"https://testnet-explorer.blackfort.network/api"}},testnet:!0}),va=iv({id:13370,name:"Cannon",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),vn=iv({id:7700,name:"Canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}});async function vi(e,t){return BigInt(await e.request({method:"eth_gasPrice",params:[t]}))}async function vo(e,t){return BigInt(await e.request({method:"eth_maxPriorityFeePerGas",params:[t]}))}function vs(e){return 0===e||0n===e||null==e||"0"===e||""===e||"string"==typeof e&&("0x"===(0,A.Bq)(e).toLowerCase()||"0x00"===(0,A.Bq)(e).toLowerCase())}function vl(e){return"cip64"===e.type||void 0!==e.maxFeePerGas&&void 0!==e.maxPriorityFeePerGas&&!vs(e.feeCurrency)}var vc={block:az({format:e=>({transactions:e.transactions?.map(e=>"string"==typeof e?e:{...aj(e),...e.gatewayFee?{gatewayFee:(0,A.uU)(e.gatewayFee),gatewayFeeRecipient:e.gatewayFeeRecipient}:{},feeCurrency:e.feeCurrency})})}),transaction:a$({format(e){if("0x7e"===e.type)return{isSystemTx:e.isSystemTx,mint:e.mint?(0,A.uU)(e.mint):void 0,sourceHash:e.sourceHash,type:"deposit"};let t={feeCurrency:e.feeCurrency};return"0x7b"===e.type?t.type="cip64":("0x7c"===e.type&&(t.type="cip42"),t.gatewayFee=e.gatewayFee?(0,A.uU)(e.gatewayFee):null,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}}),transactionRequest:(0,A.bm)({format(e){let t={};return e.feeCurrency&&(t.feeCurrency=e.feeCurrency),vl(e)&&(t.type="0x7b"),t}})},vd=A.Ao,vp={blockTime:1e3,contracts:xH,formatters:vc,serializers:{transaction:function(e,t){return vl(e)?function(e,t){var r=e;let{chainId:a,maxPriorityFeePerGas:n,gasPrice:i,maxFeePerGas:o,to:s,feeCurrency:l}=r;if(a<=0)throw new A.qD({chainId:a});if(s&&!(0,A.PW)(s))throw new A.Ms({address:s});if(i)throw new A.Cf("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(!vs(o)&&o>vd)throw new A.BG({maxFeePerGas:o});if(!vs(n)&&!vs(o)&&n>o)throw new A.lN({maxFeePerGas:o,maxPriorityFeePerGas:n});if(!vs(l)&&!(0,A.PW)(l))throw new A.Cf("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(vs(l))throw new A.Cf("`feeCurrency` must be provided for CIP-64 transactions.");let{chainId:c,gas:d,nonce:p,to:u,value:m,maxFeePerGas:h,maxPriorityFeePerGas:g,accessList:f,feeCurrency:b,data:y}=e,k=[(0,A.nj)(c),p?(0,A.nj)(p):"0x",g?(0,A.nj)(g):"0x",h?(0,A.nj)(h):"0x",d?(0,A.nj)(d):"0x",u??"0x",m?(0,A.nj)(m):"0x",y??"0x",ib(f),b,...ik(e,t)];return(0,A.aP)(["0x7b",aS(k)])}(e,t):xG(e,t)}},fees:{estimateFeesPerGas:async e=>{if(!e.request?.feeCurrency)return null;let[t,r]=await Promise.all([vi(e.client,e.request.feeCurrency),vo(e.client,e.request.feeCurrency)]);return{maxFeePerGas:e.multiply(t-r)+r,maxPriorityFeePerGas:r}}}},vu=iv({...vp,id:42220,name:"Celo",nativeCurrency:{decimals:18,name:"CELO",symbol
2051:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://celoscan.io",apiUrl:"https://api.celoscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0xc81517}},testnet:!1}),vm=iv({...vp,id:44787,name:"Alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Alfajores Explorer",url:"https://celo-alfajores.blockscout.com",apiUrl:"https://celo-alfajores.blockscout.com/api"}},contracts:{...vp.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0xde4e29},portal:{17e3:{address:"0x82527353927d8D069b3B452904c942dA149BA381",blockCreated:2411324}},disputeGameFactory:{17e3:{address:"0xE28AAdcd9883746c0e5068F58f9ea06027b214cb",blockCreated:2411324}},l2OutputOracle:{17e3:{address:"0x4a2635e9e4f6e45817b1D402ac4904c1d1752438",blockCreated:2411324}},l1StandardBridge:{17e3:{address:"0xD1B0E0581973c9eB7f886967A606b9441A897037",blockCreated:2411324}}},testnet:!0}),vh=iv({...vp,id:0xaa044c,name:"Celo Sepolia Testnet",nativeCurrency:{decimals:18,name:"CELO",symbol:"S-CELO"},rpcUrls:{default:{http:["https://forno.celo-sepolia.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Sepolia Explorer",url:"https://celo-sepolia.blockscout.com/",apiUrl:"https://celo-sepolia.blockscout.com/api"}},contracts:{...vp.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1},portal:{0xaa36a7:{address:"0x44ae3d41a335a7d05eb533029917aad35662dcc2",blockCreated:8825790}},disputeGameFactory:{0xaa36a7:{address:"0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa",blockCreated:8825790}},l1StandardBridge:{0xaa36a7:{address:"0xec18a3c30131a0db4246e785355fbc16e2eaf408",blockCreated:8825790}}},testnet:!0}),vg=iv({id:5858,name:"Chang Chain Foundation Mainnet",nativeCurrency:{decimals:18,name:"CTH",symbol:"CTH"},rpcUrls:{default:{http:["https://rpc.cthscan.com"]}},blockExplorers:{default:{name:"Chang Chain explorer",url:"https://cthscan.com"}}}),vf=iv({id:88888,name:"Chiliz Chain",network:"chiliz-chain",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://rpc.chiliz.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"https://scan.chiliz.com",apiUrl:"https://scan.chiliz.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:8080847}}}),vb=iv({id:2882,name:"Chips Network",network:"CHIPS",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://node.chips.ooo/wasp/api/v1/chains/iota1pp3d3mnap3ufmgqnjsnw344sqmf5svjh26y2khnmc89sv6788y3r207a8fn/evm"]}}}),vy=iv({id:4114,name:"Citrea Mainnet",nativeCurrency:{name:"Citrea Bitcoin",symbol:"cBTC",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.citrea.xyz"]}},blockExplorers:{default:{name:"Citrea Explorer",url:"https://explorer.mainnet.citrea.xyz",apiUrl:"https://explorer.mainnet.citrea.xyz/api"}},testnet:!1}),vk=iv({id:5115,name:"Citrea Testnet",nativeCurrency:{name:"cBTC",symbol:"cBTC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.citrea.xyz"]}},blockExplorers:{default:{name:"Citrea Explorer",url:"https://explorer.testnet.citrea.xyz",apiUrl:"https://explorer.testnet.citrea.xyz/api"}},testnet:!0}),vx=iv({id:61,name:"Ethereum Classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}}),vw=iv({...xK,id:81224,name:"Codex",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.codex.xyz"]}},blockExplorers:{default:{name:"Codex Explorer",url:"https://explorer.codex.xyz",apiUrl:"https://explorer.codex.xyz/api"}},contracts:{...xK.contracts,disputeGameFactory:{1:{address:"0x6A3855dc26e2beA8Ac73f82Cda79f3808B6C6F6C"}},portal:{1:{address:"0x52759C07A759c81BAab28AE1BE5A19e6450959bD"}},l1StandardBridge:{1:{address:"0xa6b1A05a592719B0C8a70c69eac114C48410aDE4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},sourceId:1}
2051),vv=iv({...xK,id:812242,name:"Codex Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.codex-stg.xyz"]}},blockExplorers:{default:{name:"Codex Testnet Explorer",url:"https://explorer.codex-stg.xyz",apiUrl:"https://explorer.codex-stg.xyz/api"}},contracts:{...xK.contracts,disputeGameFactory:{0xaa36a7:{address:"0x390e24E8324E56f13A8d48eB938b6f9De24CD205"}},portal:{0xaa36a7:{address:"0x037F161D12c829A9ca4742eEd9371830CA54fcB2"}},l1StandardBridge:{0xaa36a7:{address:"0xCf4df2bDB14C8FDB25FdacCEC10Ce5C4bAEDB3De"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},sourceId:0xaa36a7,testnet:!0}),vT=iv({id:112,name:"Coinbit Mainnet",nativeCurrency:{name:"GIDR",symbol:"GIDR",decimals:18},rpcUrls:{default:{http:["https://coinbit-rpc-mainnet.chain.sbcrypto.app"]}},blockExplorers:{default:{name:"Coinbit Explorer",url:"https://coinbit-explorer.chain.sbcrypto.app"}},testnet:!1}),vE=iv({id:52,name:"CoinEx Mainnet",nativeCurrency:{name:"cet",symbol:"cet",decimals:18},rpcUrls:{default:{http:["https://rpc.coinex.net"]}},blockExplorers:{default:{name:"CoinEx Explorer",url:"https://www.coinex.net"}},testnet:!1}),vB=iv({id:1030,name:"Conflux eSpace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.com"],webSocket:["wss://evm.confluxrpc.com/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.org"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:0x416cc37}}}),vC=iv({id:71,name:"Conflux eSpace Testnet",network:"cfx-espace-testnet",testnet:!0,nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evmtestnet.confluxrpc.com"],webSocket:["wss://evmtestnet.confluxrpc.com/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evmtestnet.confluxscan.org"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:0x700e4aa}}}),vU=iv({id:1116,name:"Core Dao",nativeCurrency:{decimals:18,name:"Core",symbol:"CORE"},rpcUrls:{default:{http:["https://rpc.coredao.org"]}},blockExplorers:{default:{name:"CoreDao",url:"https://scan.coredao.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0xb5b35e}},testnet:!1}),vI=iv({id:1115,name:"Core Testnet",nativeCurrency:{decimals:18,name:"tCore",symbol:"TCORE"},rpcUrls:{default:{http:["https://rpc.test.btcs.network"]}},blockExplorers:{default:{name:"Core Testnet",url:"https://scan.test.btcs.network",apiUrl:"https://api.test.btcs.network/api"}},contracts:{multicall3:{address:"0xCcddF20A1932537123C2E48Bd8e00b108B8f7569",blockCreated:0x1bfda6d}},testnet:!0}),vN=iv({id:1114,name:"Core Testnet2",nativeCurrency:{decimals:18,name:"tCore2",symbol:"TCORE2"},rpcUrls:{default:{http:["https://rpc.test2.btcs.network"]}},blockExplorers:{default:{name:"Core Testnet2",url:"https://scan.test2.btcs.network",apiUrl:"https://api.test2.btcs.network/api"}},contracts:{multicall3:{address:"0x3CB285ff3Cd5C7C7e570b1E7DE3De17A0f985e56",blockCreated:3838600}},testnet:!0}),vR=iv({id:21e6,name:"Corn",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Explorer",url:"https://cornscan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/21000000/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3228}},sourceId:1}),vS=iv({id:0x1406f41,name:"Corn Testnet",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000001.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Testnet Explorer",url:"https://testnet.cornscan.io",apiUrl:"https://api.routescan.io/v2/network/testnet/evm/21000001/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4886}},testnet:!0,sourceId:0xaa36a7}),vA=iv({id:86608,name:"CpChain",nativeCurrency:{decimals:18,name:"CpChain",symbol:"CP"},rpcUrls:{default:{http:["https://rpc.cpchain.com"]}},blockExplorers:{default:{name:"CpChain Explorer",url:"https://explorer.cpchain.com"}},testnet:!1}),vP=iv({id:44,name:"Crab Network",nativeCurrency:{decimals:18,name:"Crab Network Native Token",symbol:"CRAB"},rpcUrls:{default:{http:["https://crab-rpc.darwinia.network"],webS
vendor: 27,931 bytes, line 2051
2051ocket:["wss://crab-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://crab-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3032593}}}),vD=iv({id:66665,name:"Creator",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.creatorchain.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.creatorchain.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0}),vL=iv({id:102032,name:"Creditcoin Devnet",nativeCurrency:{name:"Devnet CTC",symbol:"devCTC",decimals:18},rpcUrls:{default:{http:["https://rpc.cc3-devnet.creditcoin.network"],webSocket:["wss://rpc.cc3-devnet.creditcoin.network/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin-devnet.blockscout.com",apiUrl:"https://creditcoin3-dev.subscan.io"}},testnet:!0}),vO=iv({id:102030,name:"Creditcoin",nativeCurrency:{name:"Creditcoin",symbol:"CTC",decimals:18},rpcUrls:{default:{http:["https://mainnet3.creditcoin.network"],webSocket:["wss://mainnet3.creditcoin.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin.blockscout.com",apiUrl:"https://creditcoin.blockscout.com/api"}},testnet:!1}),vF=iv({id:102031,name:"Creditcoin Testnet",nativeCurrency:{name:"Creditcoin Testnet",symbol:"tCTC",decimals:18},rpcUrls:{default:{http:["https://rpc.cc3-testnet.creditcoin.network"],webSocket:["wss://rpc.cc3-testnet.creditcoin.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin-testnet.blockscout.com",apiUrl:"https://creditcoin-testnet.blockscout.com/api"}},testnet:!0}),v_=iv({id:25,name:"Cronos Mainnet",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://explorer.cronos.org",apiUrl:"https://explorer-api.cronos.org/mainnet/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}}),vM=iv({id:338,name:"Cronos Testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer (Testnet)",url:"https://explorer.cronos.org/testnet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0x9b8193}},testnet:!0}),vj=iv({id:388,name:"Cronos zkEVM Mainnet",nativeCurrency:{decimals:18,name:"Cronos zkEVM CRO",symbol:"zkCRO"},rpcUrls:{default:{http:["https://mainnet.zkevm.cronos.org"]}},blockExplorers:{default:{name:"Cronos zkEVM (Mainnet) Chain Explorer",url:"https://explorer.zkevm.cronos.org"}},contracts:{multicall3:{address:"0x06f4487d7c4a5983d2660db965cc6d2565e4cfaa",blockCreated:72}}}),v$=iv({id:282,name:"Cronos zkEVM Testnet",nativeCurrency:{decimals:18,name:"Cronos zkEVM Test Coin",symbol:"zkTCRO"},rpcUrls:{default:{http:["https://testnet.zkevm.cronos.org"]}},blockExplorers:{default:{name:"Cronos zkEVM Testnet Explorer",url:"https://explorer.zkevm.cronos.org/testnet"}},testnet:!0}),vW=iv({id:3737,name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io",apiUrl:"https://scan.crossbell.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0x247968f}}}),vz=iv({id:4158,name:"CrossFi Mainnet",nativeCurrency:{decimals:18,name:"CrossFi",symbol:"XFI"},rpcUrls:{default:{http:["https://rpc.mainnet.ms"]}},blockExplorers:{default:{name:"CrossFi Blockchain Explorer",url:"https://xfiscan.com"}},testnet:!1}),vV=iv({id:33111,name:"Curtis",nativeCurrency:{name:"ApeCoin",symbol:"APE",decimals:18},rpcUrls:{default:{http:["https://rpc.curtis.apechain.com"]}},blockExplorers:{default:{name:"Curtis Explorer",url:"https://explorer.curtis.apechain.com"}},testnet:!0}),vH=iv({id:7560,name:"Cyber",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://cyberscan.co",apiUrl:"https://cyberscan.co/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),vq=iv({id:0x6a63bb8,name:"Cyber Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber-testnet.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet.cyberscan.co",apiUrl:"https://testnet.cyberscan.co/api"}},contracts:{multicall3:{address:"0xffc391F0018269d4758AEA1a144772E8FB99545E",blockCreated:304545}},testnet:!0}),vG=iv({id:824,name:"Daily Network Mainnet",nativeCurrency:{decimals:18,name:"Daily",symbol:"DLY"},rpcUrls:{default:{http:["https://rpc.mainnet.dailycrypto.net"]}},blockExplorers:{default:{name:"Daily Mainnet Explorer",url:"https://explorer.mainnet.dailycrypto.net"}},testnet:!1}),vK=iv({id:825,name:"Daily Network Testnet",nativeCurrency:{decimals:18,name:"Daily",symbol:"DLY"},rpcUrls:{default:{http:["https://rpc.testnet.dailycrypto.net"]}},blockExplorers:{default:{name:"Daily Testnet Explorer",url:"https://explorer.testnet.dailycrypto.net"}},testnet:!0}),vJ=iv({id:46,name:"Darwinia Network",nativeCurrency:{decimals:18,name:"RING",symbol:"RING"},rpcUrls:{default:{http:["https://rpc.darwinia.network"],webSocket:["wss://rpc.darwinia.network"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:69420}}}),vZ=iv({id:55931,name:"Datahaven Testnet",nativeCurrency:{decimals:18,name:"MOCK",symbol:"MOCK"},rpcUrls:{default:{http:["https://services.datahaven-testnet.network/testnet"],webSocket:["wss://services.datahaven-testnet.network/testnet"]}},blockExplorers:{default:{name:"DhScan",url:"https://testnet.dhscan.io/",apiUrl:"https://testnet.dhscan.io/api-docs"}},contracts:{},testnet:!0}),vQ=iv({id:0x134d8db,name:"DBK chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.dbkchain.io"]}},blockExplorers:{default:{name:"DBK Chain Explorer",url:"https://scan.dbkchain.io"}},testnet:!1}),vX=iv({...xK,id:2716446429837e3,name:"Dchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://dchain-2716446429837000-1.jsonrpc.sagarpc.io"]}},blockExplorers:{default:{name:"Dchain Explorer",url:"https://dchain-2716446429837000-1.sagaexplorer.io",apiUrl:"https://api-dchain-2716446429837000-1.sagaexplorer.io/api"}},contracts:{...xK.contracts}}),vY=iv({...xK,id:2713017997578e3,name:"Dchain Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://dchaintestnet-2713017997578000-1.jsonrpc.testnet.sagarpc.io"]}},blockExplorers:{default:{name:"Dchain Explorer",url:"https://dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io",apiUrl:"https://api-dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io/api"}},contracts:{...xK.contracts},testnet:!0}),v0=iv({id:1130,network:"defichain-evm",name:"DeFiChain EVM Mainnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},rpcUrls:{default:{http:["https://eth.mainnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:137852}}}),v1=iv({id:1131,network:"defichain-evm-testnet",name:"DeFiChain EVM Testnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},rpcUrls:{default:{http:["https://eth.testnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live/?network=TestNet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:156462}},testnet:!0}),v2=iv({id:0x27bc86aa,name:"Degen",nativeCurrency:{decimals:18,name:"Degen",symbol:"DEGEN"},rpcUrls:{default:{http:["https://rpc.degen.tips"],webSocket:["wss://rpc.degen.tips"]}},blockExplorers:{default:{name:"Degen Chain Explorer",url:"https://explorer.degen.tips",apiUrl:"https://explorer.degen.tips/api/v2"}}}),v3=iv({id:53935,name:"DFK Chain",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xe1af97}}}),v6=iv({id:15,name:"Diode Prenet",nativeCurrency:{decimals:18,name:"DIODE",symbol:"DIODE"},rpcUrls:{default:{http:["https://prenet.diode.io:8443"],webSocket:["wss://prenet.diode.io:8443/ws"]}},blockExplorers:{default:{name:"Diode Explorer",url:"https://diode.io/prenet"}},testnet:!1}),v8=iv({id:513100,name:"DisChain",nativeCurrency:{decimals:18,name:"DIS",symbol:"DIS"},rpcUrls:{default:{http:["https://rpc.dischain.xyz"]}},blockExplorers:{default:{name:"DisChain Explorer",url:"https://www.oklink.com/dis"}}}),v7=iv({id:53457,name:"DODOchain Testnet",nativeCurrency:{decimals:18,name:"DODO",symbol:"DODO"},rpcUrls:{default:{http:["https://dodochain-testnet.alt.technology"],webSocket:["wss://dodochain-testnet.alt.technology/ws"]}},blockExplorers:{default:{name:"DODOchain Testnet (Sepolia) Explorer",url:"https://testnet-scan.dodochain.com"}},testnet:!0}),v4=iv({id:2e3,name:"Dogechain",nativeCurrency:{decimals:18,name:"Wrapped Dogecoin",symbol:"WDOGE"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog",apiUrl:"https://explorer.dogechain.dog/api"}},contracts:{multicall3:{address:"0x68a8609a60a008EFA633dfdec592c03B030cC508",blockCreated:0x183545f}}}),v5=iv({id:97476,name:"Doma Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc-testnet.doma.xyz"]}},blockExplorers:{default:{name:"Doma Testnet Explorer",url:"https://explorer-testnet.doma.xyz"}},testnet:!0}),v9=iv({id:42026,name:"Donatuz",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.donatuz.com"]}},blockExplorers:{default:{name:"Donatuz Explorer",url:"https://explorer.donatuz.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),Te=iv({id:7979,name:"DOS Chain",nativeCurrency:{decimals:18,name:"DOS Chain",symbol:"DOS"},rpcUrls:{default:{http:["https://main.doschain.com"]}},blockExplorers:{default:{name:"DOS Chain Explorer",url:"https://doscan.io",apiUrl:"https://api.doscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:161908}}}),Tt=iv({id:3939,name:"DOS Chain Testnet",nativeCurrency:{decimals:18,name:"DOS Chain Testnet",symbol:"DOS"},rpcUrls:{default:{http:["https://test.doschain.com"]}},blockExplorers:{default:{name:"DOS Chain Testnet Explorer",url:"https://test.doscan.io",apiUrl:"https://api-test.doscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:69623}},testnet:!0}),Tr=iv({id:23451,name:"DreyerX Mainnet",nativeCurrency:{name:"DreyerX",symbol:"DRX",decimals:18},rpcUrls:{default:{http:["https://rpc.dreyerx.com"]}},blockExplorers:{default:{name:"DreyerX Scan",url:"https://scan.dreyerx.com"}}}),Ta=iv({id:23452,name:"DreyerX Testnet",nativeCurrency:{name:"DreyerX",symbol:"DRX",decimals:18},rpcUrls:{default:{http:["http://testnet-rpc.dreyerx.com"]}},blockExplorers:{default:{name:"DreyerX Testnet Scan",url:"https://testnet-scan.dreyerx.com"}},testnet:!0}),Tn=iv({id:555888,name:"DustBoy IoT",nativeCurrency:{name:"Ether",symbol:"DST",decimals:18},rpcUrls:{default:{http:["https://dustboy-rpc.jibl2.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://dustboy.jibl2.com",apiUrl:"https://dustboy.jibl2.com/api"}},contracts:{multicall3:{address:"0xFFD34aa2C62B2D52E00A361e466C229788f4eD6a",blockCreated:526569}},testnet:!1}),Ti=iv({id:1100,name:"Dymension",nativeCurrency:{name:"DYM",symbol:"DYM",decimals:18},rpcUrls:{default:{http:["https://dymension-evm-rpc.publicnode.com"],webSocket:["wss://dymension-evm-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Dym FYI",url:"https://dym.fyi"}},testnet:!1}),To=iv({id:714,name:"Eden",nativeCurrency:{name:"TIA",symbol:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.eden.gateway.fm"]}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},blockExplorers:{default:{name:"Blockscout",url:"https://eden.blockscout.com",apiUrl:"https://eden.blockscout.com/api"}}}),Ts=iv({id:5424,name:"edeXa",nativeCurrency:{name:"edeXa",symbol:"EDX",decimals:18},rpcUrls:{default:{http:["https://rpc.edexa.network"]}},blockExplorers:{default:{name:"edeXa Explorer",url:"https://explorer.edexa.network",apiUrl:"https://explorer.edexa.network/api/v2"}}}),Tl=iv({id:1995,name:"edeXa Testnet",nativeCurrency:{name:"edeXa",symbol:"tEDX",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.edexa.network"]}},blockExplorers:{default:{name:"edeXa Testnet Explorer",url:"https://explorer.testnet.edexa.network",apiUrl:"https://explorer.testnet.edexa.network/api/v2"}},testnet:!0}),Tc=iv({id:2026,name:"Edgeless Network",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://rpc.edgeless.network/http"],webSocket:["wss://rpc.edgeless.network/ws"]}},blockExplorers:{default:{name:"Edgeless Explorer",url:"https://explorer.edgeless.network"}}}),Td=iv({id:202,name:"Edgeless Testnet",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://edgeless-testnet.rpc.caldera.xyz/http"],webSocket:["wss://edgeless-testnet.rpc.caldera.xyz/ws"]}},blockExplorers:{default:{name:"Edgeless Testnet Explorer",url:"https://testnet.explorer.edgeless.network"}},testnet:!0}),Tp=iv({id:2021,name:"Edgeware EdgeEVM Mainnet",nativeCurrency:{decimals:18,name:"Edgeware",symbol:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",apiUrl:"https://edgscan.live/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x11474f0}}}),Tu=iv({id:2022,name:"Beresheet BereEVM Testnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",apiUrl:"https://testnet.edgscan.live/api"}},testnet:!0}),Tm=iv({id:41923,name:"EDU Chain",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.edu-chain.raas.gelato.cloud"]}},blockExplorers:{default:{name:"EDU Chain Explorer",url:"https://educhain.blockscout.com/"}},testnet:!1}),Th=iv({id:656476,name:"EDU Chain Testnet",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.open-campus-codex.gelato.digital/"],webSocket:["wss://ws.open-campus-codex.gelato.digital"]}},blockExplorers:{default:{name:"EDU Chain Testnet Explorer",url:"https://opencampus-codex.blockscout.com",apiUrl:"https://opencampus-codex.blockscout.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0xecba15}},testnet:!0}),Tg=iv({id:20,name:"Elastos Smart Chain",nativeCurrency:{name:"ELA",symbol:"ELA",decimals:18},rpcUrls:{default:{http:["https://api2.elastos.io/eth"]}},blockExplorers:{default:{name:"Elastos Explorer",url:"https://esc.elastos.io"}},testnet:!1}),Tf=iv({id:21,name:"Elastos Smart Chain Testnet",nativeCurrency:{name:"tELA",symbol:"tELA",decimals:18},rpcUrls:{default:{http:["https://api-testnet.elastos.io/eth"]}},blockExplorers:{default:{name:"Elastos Explorer",url:"https://esc-testnet.elastos.io"}},testnet:!0}),Tb=iv({id:52014,name:"Electroneum Mainnet",nativeCurrency:{name:"ETN",symbol:"ETN",decimals:18},rpcUrls:{default:{http:["https://rpc.electroneum.com"]}},blockExplorers:{default:{name:"Electroneum Block Explorer",url:"https://blockexplorer.electroneum.com"}},testnet:!1}),Ty=iv({id:5201420,name:"Electroneum Testnet",nativeCurrency:{name:"ETN",symbol:"ETN",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.electroneum.com"]}},blockExplorers:{default:{name:"Electroneum Block Explorer",url:"https://blockexplorer.thesecurityteam.rocks"}},testnet:!0}),Tk=iv({...xK,id:1338,name:"Elysium Testnet",nativeCurrency:{decimals:18,name:"LAVA",symbol:"LAVA"},rpcUrls:{default:{http:["https://elysium-test-rpc.vulcanforged.com"]}},blockExplorers:{default:{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com"}},testnet:!0}),Tx=iv({id:246,name:"Energy Mainnet",nativeCurrency:{name:"EWT",symbol:"EWT",decimals:18},rpcUrls:{default:{http:["https://rpc.energyweb.org"]}},blockExplorers:{default:{name:"EnergyWeb Explorer",url:"https://explorer.energyweb.org"}},testnet:!1}),Tw=iv({id:173,name:"ENI Mainnet",nativeCurrency:{decimals:18,name:"ENI",symbol:"ENI"},rpcUrls:{default:{http:["https://rpc.eniac.network"]}},blockExplorers:{default:{name:"ENI Explorer",url:"https://scan.eniac.network"}},testnet:!1}),Tv=iv({id:6912115,name:"ENI Testnet",nativeCurrency:{decimals:18,name:"ENI Testnet Token",symbol:"ENI"},rpcUrls:{default:{http:["https://rpc-testnet.eniac.network"]}},blockExplorers:{default:{name:"ENI Testnet Explorer",url:"https://scan-testnet.eniac.network"}},testnet:!0}),TT=iv({id:119,name:"ENULS Mainnet",nativeCurrency:{decimals:18,name:"NULS",symbol:"NULS"},rpcUrls:{default:{http:["https://evmapi2.nuls.io"]}},blockExplorers:{default:{name:"ENULS Explorer",url:"https://evmscan.nuls.io"}},testnet:!1}),TE=iv({id:7332,name:"Horizen EON",nativeCurrency:{decimals:18,name:"ZEN",symbol:"ZEN"},rpcUrls:{default:{http:["https://eon-rpc.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"EON Explorer",url:"https://eon-explorer.horizenlabs.io"}},contracts:{}}),TB=iv({id:17777,name:"EOS EVM",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com",apiUrl:"https://explorer.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}}),TC=iv({id:15557,name:"EOS EVM Testnet",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com",apiUrl:"https://explorer.testnet.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0}),TU=iv({id:140,name:"Eteria",nativeCurrency:{name:"Eteria",symbol:"ERA",decimals:18},rpcUrls:{default:{http:["https://mainnet.eteria.io/v1"]}},blockExplorers:{default:{name:"Eteria Explorer",url:"https://explorer.eteria.io",apiUrl:"https://explorer.eteria.io/api"}}}),TI=iv({id:42793,name:"Etherlink",blockTime:4830,nativeCurrency:{decimals:18,name:"Tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.mainnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink",url:"https://explorer.etherlink.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:33899}}}),TN=iv({id:127823,name:"Etherlink Shadownet Testnet",nativeCurrency:{decimals:18,name:"tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.shadownet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Shadownet Testnet Explorer",url:"https://shadownet.explorer.etherlink.com"}},testnet:!0}),TR=iv({id:128123,name:"Etherlink Testnet",nativeCurrency:{decimals:18,name:"Tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.ghostnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Testnet",url:"https://testnet.explorer.etherlink.com"}},testnet:!0}),TS=iv({id:183,name:"Ethernity",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.ethernitychain.io"]}},blockExplorers:{default:{name:"Ethernity Explorer",url:"https://ernscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1}),TA=iv({id:0x1351815,name:"ETP Mainnet",nativeCurrency:{decimals:18,name:"ETP Chain Native Token",symbol:"ETP"},rpcUrls:{default:{http:["https://rpc.etpscan.xyz"]}},blockExplorers:{default:{name:"ETP Scan",url:"https://etpscan.xyz"}}}),TP=iv({id:9001,name:"Evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}}),TD=iv({id:9e3,name:"Evmos Testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}},testnet:!0}),TL=iv({id:0x1507ca2,name:"Excelon Mainnet",network:"XLON",nativeCurrency:{decimals:18,name:"Excelon",symbol:"xlon"},rpcUrls:{default:{http:["https://edgewallet1.xlon.org"]}},blockExplorers:{default:{name:"Excelon explorer",url:"https://explorer.excelon.io"}}}),TO=iv({id:2,name:"Expanse Network",nativeCurrency:{decimals:18,name:"EXP",symbol:"EXP"},rpcUrls:{default:{http:["https://node.expanse.tech"]}},blockExplorers:{default:{name:"Expanse Explorer",url:"https://explorer.expanse.tech"}},testnet:!1}),TF=iv({id:7200,name:"exSat Network",nativeCurrency:{decimals:18,name:"BTC",symbol:"BTC"},rpcUrls:{default:{http:["https://evm.exsat.network"]}},blockExplorers:{default:{name:"exSat Explorer",url:"https://scan.exsat.network",apiUrl:"https://scan.exsat.network/api"}}}),T_=iv({id:839999,name:"exSat Testnet",nativeCurrency:{decimals:18,name:"BTC",symbol:"BTC"},rpcUrls:{default:{http:["https://evm-tst3.exsat.network"]}},blockExplorers:{default:{name:"exSat Explorer",url:"https://scan-testnet.exsat.network",apiUrl:"https://scan-testnet.exsat.network/api"}},testnet:!0}),TM=iv({id:250,name:"Fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://250.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"FTMScan",url:"https://ftmscan.com",apiUrl:"https://api.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x1f79203}}}),Tj=iv({id:64240,name:"Fantom Sonic Open Testnet",network:"fantom-sonic-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpcapi.sonic.fantom.network"]}},blockExplorers:{default:{name:"Fantom Sonic Open Testnet Explorer",url:"https://public-sonic.fantom.network"}},testnet:!0}),T$=iv({id:4002,name:"Fantom Testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{default:{name:"FTMScan",url:"https://testnet.ftmscan.com",apiUrl:"https://testnet.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}},testnet:!0}),TW=iv({id:12306,name:"Fibo Chain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}}),Tz=iv({id:314,name:"Filecoin Mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328594}}}),TV=iv({id:314159,name:"Filecoin Calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}},testnet:!0}),TH=iv({id:3141,name:"Filecoin Hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"}},testnet:!0}),Tq=iv({id:0xf1a177e,name:"Flame",network:"flame",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.flame.astria.org"],webSocket:["wss://ws.flame.astria.org"]}},blockExplorers:{default:{name:"Flame Explorer",url:"https://explorer.flame.astria.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6829148}}}),TG=iv({id:14,name:"Flare Mainnet",nativeCurrency:{decimals:18,name:"Flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network",apiUrl:"https://flare-explorer.flare.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3002461}}}),TK=iv({id:114,name:"Flare Testnet Coston2",nativeCurrency:{decimals:18,name:"Coston2 Flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network",apiUrl:"https://coston2-explorer.flare.network/api"}},testnet:!0}),TJ=iv({id:747,name:"Flow EVM Mainnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://mainnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Mainnet Explorer",url:"https://evm.flowscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6205}},blockTime:800}),TZ=iv({id:646,name:"Flow EVM Previewnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://previewnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Previewnet Explorer",url:"https://previewnet.flowdiver.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6205}},testnet:!0}),TQ=iv({id:545,name:"Flow EVM Testnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://testnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Flow Diver",url:"https://evm-testnet.flowscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:137518}},testnet:!0,blockTime:800}),TX=iv({id:9999999,name:"Fluence",nativeCurrency:{name:"FLT",symbol:"FLT",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.fluence.dev"],webSocket:["wss://ws.mainnet.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.mainnet.fluence.dev",apiUrl:"https://blockscout.mainnet.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:207583}}}),TY=iv({id:0x1cbc67bfdc,name:"Fluence Stage",nativeCurrency:{name:"tFLT",symbol:"tFLT",decimals:18},rpcUrls:{default:{http:["https://rpc.stage.fluence.dev"],webSocket:["wss://ws.stage.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.stage.fluence.dev",apiUrl:"https://blockscout.stage.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83227}},testnet:!0}),T0=iv({id:0x31bf8c3,name:"Fluence Testnet",nativeCurrency:{name:"tFLT",symbol:"tFLT",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.fluence.dev"],webSocket:["wss://ws.testnet.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.testnet.fluence.dev",apiUrl:"https://blockscout.testnet.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96424}},testnet:!0}),T1=iv({id:25363,name:"Fluent",nativeCurrency:{name:"Ether",symbol
2051:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.fluent.xyz"]}},blockExplorers:{default:{name:"Fluent Explorer",url:"https://fluentscan.xyz"}},testnet:!1}),T2=iv({id:20993,name:"Fluent Devnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.devnet.fluent.xyz"]}},blockExplorers:{default:{name:"Fluent Devnet Explorer",url:"https://devnet.fluentscan.xyz"}},testnet:!0}),T3=iv({id:20994,name:"Fluent Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.fluent.xyz"]}},blockExplorers:{default:{name:"Fluent Testnet Explorer",url:"https://testnet.fluentscan.xyz"}},testnet:!0}),T6=iv({id:478,name:"Form Network",nativeCurrency:{decimals:18,name:"Ethereum",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.form.network/http"],webSocket:["wss://rpc.form.network/ws"]}},blockExplorers:{default:{name:"Form Explorer",url:"https://explorer.form.network"}},contracts:{...xK.contracts,addressManager:{1:{address:"0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B"}},l1CrossDomainMessenger:{1:{address:"0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c"}},l2OutputOracle:{1:{address:"0x4ccAAF69F41c5810cA875183648B577CaCf1F67E"}},portal:{1:{address:"0x4E259Ee5F4136408908160dD32295A5031Fa426F"}},l1StandardBridge:{1:{address:"0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:1}),T8=iv({id:984122,name:"Forma",network:"forma",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.forma.art"],webSocket:["wss://ws.forma.art"]}},blockExplorers:{default:{name:"Forma Explorer",url:"https://explorer.forma.art"}},contracts:{multicall3:{address:"0xd53C6FFB123F7349A32980F87faeD8FfDc9ef079",blockCreated:252705}}}),T7=iv({id:132902,name:"Form Testnet",nativeCurrency:{decimals:18,name:"Ethereum",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia-rpc.form.network/http"],webSocket:["wss://sepolia-rpc.form.network/ws"]}},blockExplorers:{default:{name:"Form Testnet Explorer",url:"https://sepolia-explorer.form.network"}},contracts:{...xK.contracts,addressManager:{0xaa36a7:{address:"0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373"}},l1CrossDomainMessenger:{0xaa36a7:{address:"0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa"}},l2OutputOracle:{0xaa36a7:{address:"0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2"}},portal:{0xaa36a7:{address:"0x60377e3cE15dF4CCA24c4beF076b60314240b032"}},l1StandardBridge:{0xaa36a7:{address:"0xD4531f633942b2725896F47cD2aFd260b44Ab1F7"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0,sourceId:0xaa36a7}),T4=iv({id:80931,name:"Forta Chain",nativeCurrency:{symbol:"FORT",name:"FORT",decimals:18},rpcUrls:{default:{http:["https://rpc-forta-chain-8gj1qndmfc.t.conduit.xyz"]}},blockExplorers:{default:{name:"Forta Explorer",url:"https://explorer.forta.org"}}}),T5=iv({id:31337,name:"Foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}}),T9=iv({...xK,id:252,name:"Fraxtal",nativeCurrency:{name:"Frax",symbol:"FRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.frax.com"]}},blockExplorers:{default:{name:"fraxscan",url:"https://fraxscan.com",apiUrl:"https://api.fraxscan.com/api"}},contracts:{...xK.contracts,l2OutputOracle:{1:{address:"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{1:{address:"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D",blockCreated:0x123fb5b}},l1StandardBridge:{1:{address:"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2",blockCreated:0x123fb5b}}},sourceId:1}),Ee=iv({...xK,id:2522,name:"Fraxtal Testnet",nativeCurrency:{name:"Frax",symbol:"FRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.frax.com"]}},blockExplorers:{default:{name:"fraxscan testnet",url:"https://holesky.fraxscan.com",apiUrl:"https://api-holesky.fraxscan.com/api"}},contracts:{...xK.contracts,l2OutputOracle:{17e3:{address:"0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{17e3:{address:"0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d",blockCreated:318416}},l1StandardBridge:{17e3:{address:"0x0BaafC217162f64930909aD9f2B27125121d6332",blockCreated:318416}}},sourceId:17e3,testnet:!0}),Et=iv({...xK,id:33979,name:"Funki",nativeCurrency:{name:"Ether",symbol
vendor: 4,057 bytes, line 2051
2051:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.funkichain.com"]}},blockExplorers:{default:{name:"Funki Mainnet Explorer",url:"https://funkiscan.io"}},contracts:{...xK.contracts},sourceId:1}),Er=iv({...xK,id:3397901,network:"funkiSepolia",name:"Funki Sepolia Sandbox",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://funki-testnet.alt.technology"]}},blockExplorers:{default:{name:"Funki Sepolia Sandbox Explorer",url:"https://sepolia-sandbox.funkichain.com/"}},testnet:!0,contracts:{...xK.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204}},sourceId:0xaa36a7}),Ea=iv({id:122,name:"Fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io",apiUrl:"https://explorer.fuse.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xf660c4}}}),En=iv({id:123,name:"Fuse Sparknet",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io",apiUrl:"https://explorer.fusespark.io/api"}}}),Ei=iv({id:32659,name:"Fusion Mainnet",nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},rpcUrls:{default:{http:["https://mainnet.fusionnetwork.io"],webSocket:["wss://mainnet.fusionnetwork.io"]}},blockExplorers:{default:{name:"FSNscan",url:"https://fsnscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x9f5385}},testnet:!1}),Eo=iv({id:46688,name:"Fusion Testnet",nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},rpcUrls:{default:{http:["https://testnet.fusionnetwork.io"],webSocket:["wss://testnet.fusionnetwork.io"]}},blockExplorers:{default:{name:"FSNscan",url:"https://testnet.fsnscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x9f1f95}},testnet:!0}),Es=iv({...xK,name:"Garnet Testnet",testnet:!0,id:17069,sourceId:17e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"],webSocket:["wss://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}},contracts:{...xK.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{17e3:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{17e3:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{17e3:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}}),El=iv({id:86,name:"GateChain Mainnet",nativeCurrency:{name:"GateChainToken",symbol:"GT",decimals:18},rpcUrls:{default:{http:["https://evm.nodeinfo.cc"],webSocket:["wss://evm-ws.gatenode.cc"]}},blockExplorers:{default:{name:"Gate Scan",url:"https://www.gatescan.org",apiUrl:"https://gatescan.org/api"}},testnet:!1}),Ec=iv({id:63157,name:"Geist Mainnet",nativeCurrency:{decimals:18,name:"Aavegotchi GHST Token",symbol:"GHST"},rpcUrls:{default:{http:["https://geist-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://geist-mainnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:660735}}}),Ed=iv({id:16507,name:"Genesys Mainnet",nativeCurrency:{decimals:18,name:"GSYS",symbol:"GSYS"},rpcUrls:{default:{http:["https://rpc.genesys.network"]}},blockExplorers:{default:{name:"Genesys Explorer",url:"https://gchainexplorer.genesys.network"}},testnet:!1}),Ep=iv({id:685689,name:"Gensyn Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://gensyn-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://gensyn-mainnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}
2051),Eu=iv({...xK,id:91342,network:"giwa-sepolia",name:"GIWA Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://sepolia-rpc.giwa.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-explorer.giwa.io",apiUrl:"https://sepolia-explorer.giwa.io/api"}},contracts:{...xK.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{0xaa36a7:{address:"0x37347caB2afaa49B776372279143D71ad1f354F6"}},portal:{0xaa36a7:{address:"0x956962C34687A954e611A83619ABaA37Ce6bC78A"}},l1StandardBridge:{0xaa36a7:{address:"0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7"}}},testnet:!0,sourceId:0xaa36a7}),Em=iv({...Eu,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-rpc-flashblocks.giwa.io"]}}}),Eh=iv({id:251,name:"Glide L1 Protocol XP",nativeCurrency:{name:"GLXP",symbol:"GLXP",decimals:18},rpcUrls:{default:{http:["https://rpc-api.glideprotocol.xyz/l1-rpc"],webSocket:["wss://rpc-api.glideprotocol.xyz/l1-rpc"]}},blockExplorers:{default:{name:"Glide Protocol Explore",url:"https://blockchain-explorer.glideprotocol.xyz"}},testnet:!1}),Eg=iv({id:253,name:"Glide L2 Protocol XP",nativeCurrency:{name:"GLXP",symbol:"GLXP",decimals:18},rpcUrls:{default:{http:["https://rpc-api.glideprotocol.xyz/l2-rpc"],webSocket:["wss://rpc-api.glideprotocol.xyz/l2-rpc"]}},blockExplorers:{default:{name:"Glide Protocol Explore",url:"https://blockchain-explorer.glideprotocol.xyz"}},testnet:!1}),Ef=iv({id:100,name:"Gnosis",nativeCurrency:{decimals:18,name:"xDAI",symbol:"XDAI"},blockTime:5e3,rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{default:{name:"Gnosisscan",url:"https://gnosisscan.io",apiUrl:"https://api.gnosisscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x140c71b}}}),Eb=iv({id:10200,name:"Gnosis Chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},blockTime:5e3,rpcUrls:{default:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net",apiUrl:"https://blockscout.chiadochain.net/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4967313}},testnet:!0}),Ey=iv({id:2345,name:"GOAT",nativeCurrency:{decimals:18,name:"Bitcoin",symbol:"BTC"},rpcUrls:{default:{http:["https://rpc.goat.network"]}},blockExplorers:{default:{name:"Goat Explorer",url:"https://explorer.goat.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),Ek=iv({id:1663,name:"Horizen Gobi Testnet",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0}),Ex=iv({id:60,name:"GoChain",nativeCurrency:{decimals:18,name:"GO",symbol
vendor: 6,046 bytes, line 2051
2051:"GO"},rpcUrls:{default:{http:["https://rpc.gochain.io"]}},blockExplorers:{default:{name:"GoChain Explorer",url:"https://explorer.gochain.io"}},testnet:!1}),Ew=iv({id:71402,name:"Godwoken Mainnet",nativeCurrency:{decimals:18,name:"pCKB",symbol:"pCKB"},rpcUrls:{default:{http:["https://v1.mainnet.godwoken.io/rpc"]}},blockExplorers:{default:{name:"GW Scan",url:"https://v1.gwscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:15034}},testnet:!1}),Ev=iv({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://5.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:0x9dc386},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),ET=iv({id:440017,name:"Graphite Network",nativeCurrency:{name:"Graphite",symbol:"@G",decimals:18},rpcUrls:{default:{http:["https://anon-entrypoint-1.atgraphite.com"],webSocket:["wss://ws-anon-entrypoint-1.atgraphite.com"]}},blockExplorers:{default:{name:"Graphite Spectre",url:"https://main.atgraphite.com",apiUrl:"https://api.main.atgraphite.com/api"}},testnet:!1}),EE=iv({id:54170,name:"Graphite Network Testnet",nativeCurrency:{name:"Graphite",symbol:"@G",decimals:18},rpcUrls:{default:{http:["https://anon-entrypoint-test-1.atgraphite.com"],webSocket:["wss://ws-anon-entrypoint-test-1.atgraphite.com"]}},blockExplorers:{default:{name:"Graphite Testnet Spectre",url:"https://test.atgraphite.com",apiUrl:"https://api.test.atgraphite.com/api"}},testnet:!0}),EB=iv({id:1625,name:"Gravity Alpha Mainnet",nativeCurrency:{name:"G",symbol:"G",decimals:18},rpcUrls:{default:{http:["https://rpc.gravity.xyz"]}},blockExplorers:{default:{name:"Gravity Explorer",url:"https://explorer.gravity.xyz",apiUrl:"https://explorer.gravity.xyz/api"}},contracts:{multicall3:{address:"0xf8ac4BEB2F75d2cFFb588c63251347fdD629B92c",blockCreated:16851}}}),EC=iv({id:43419,name:"Gunz Mainnet",nativeCurrency:{name:"GUN",symbol:"GUN",decimals:18},rpcUrls:{default:{http:["https://rpc.gunzchain.io/ext/bc/2M47TxWHGnhNtq6pM5zPXdATBtuqubxn5EPFgFmEawCQr9WFML/rpc"]}},blockExplorers:{default:{name:"Gunz Explorer",url:"https://gunzscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:70502}}}),EU=iv({id:260,name:"Guru Network Mainnet",nativeCurrency:{name:"GURU Token",symbol:"GURU",decimals:18},rpcUrls:{default:{http:["https://rpc-main.gurunetwork.ai","https://rpc.gurunetwork.ai/archive/260"]}},blockExplorers:{default:{name:"Guruscan",url:"https://scan.gurunetwork.ai"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:271691}},testnet:!1}),EI=iv({id:261,name:"Guru Network Testnet",nativeCurrency:{name:"tGURU Token",symbol:"tGURU",decimals:18},rpcUrls:{default:{http:["https://rpc-test.gurunetwork.ai","https://rpc.gurunetwork.ai/archive/261"]}},blockExplorers:{default:{name:"Guruscan",url:"https://sepolia.gurunetwork.ai"}},testnet:!0}),EN=iv({id:5112,name:"Ham",nativeCurrency:{decimals:18,name:"Ham",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.ham.fun"],webSocket:["wss://rpc.ham.fun"]}},blockExplorers:{default:{name:"Ham Chain Explorer",url:"https://explorer.ham.fun",apiUrl:"https://explorer.ham.fun/api/v2"}}}),ER=iv({id:216,name:"Happychain Testnet",nativeCurrency:{symbol:"HAPPY",name:"HAPPY",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.happy.tech/http"],webSocket:["wss://rpc.testnet.happy.tech/ws"]}},blockExplorers:{default:{name:"Happy Chain Testnet Explorer",url:"https://explorer.testnet.happy.tech"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1}},testnet:!0}),ES=iv({id:11235,name:"HAQQ Mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network",apiUrl:"https://explorer.haqq.network/api"}}}),EA=iv({id:54211,name:"HAQQ Testedge 2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",apiUrl:"https://explorer.testedge2.haqq.network/api"}},testnet:!0}),EP=iv({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),ED=iv({id:16666e5,name:"Harmony One",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{default:{http:["https://1666600000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x1710b99}}}),EL=iv({id:177,name:"HashKey Chain",nativeCurrency:{decimals:18,name:"HashKey EcoPoints",symbol:"HSK"},rpcUrls:{default:{http:["https://mainnet.hsk.xyz"]}},blockExplorers:{default:{name:"HashKey Chain Explorer",url:"https://hashkey.blockscout.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),EO=iv({id:133,name:"HashKey Chain Testnet",nativeCurrency:{decimals:18,name:"HashKey EcoPoints",symbol:"HSK"},rpcUrls:{default:{http:["https://testnet.hsk.xyz"]}},blockExplorers:{default:{name:"HashKey Chain Testnet explorer",url:"https://testnet-explorer.hsk.xyz"}},testnet:!0}),EF=iv({id:0x5ad4eb13,name:"Haust Network Testnet",nativeCurrency:{decimals:18,name:"HAUST",symbol:"HAUST"},rpcUrls:{default:{http:["https://rpc-testnet.haust.app"]}},blockExplorers:{default:{name:"Haust Network Testnet Explorer",url:"https://explorer-testnet.haust.app"}},testnet:!0}),E_=iv({id:295,name:"Hedera Mainnet",network:"hedera-mainnet",nativeCurrency:{symbol
2051:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://mainnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/mainnet"}},testnet:!1}),EM=iv({id:297,name:"Hedera Previewnet",network:"hedera-previewnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://previewnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/previewnet"}},testnet:!0}),Ej=iv({id:296,name:"Hedera Testnet",network:"hedera-testnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://testnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/testnet"}},testnet:!0}),E$=iv({id:8668,name:"Hela Mainnet",nativeCurrency:{name:"HLUSD",symbol:"HLUSD",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.helachain.com"]}},blockExplorers:{default:{name:"Hela explorer",url:"https://mainnet-blockexplorer.helachain.com"}},testnet:!1}),EW=iv({id:42e3,name:"Helios Testnet",network:"helios-testnet",nativeCurrency:{symbol:"HLS",name:"Helios",decimals:18},rpcUrls:{default:{http:["https://testnet1.helioschainlabs.org"]}},blockExplorers:{default:{name:"Helios Testnet Explorer",url:"https://explorer.helioschainlabs.org/"}},testnet:!0}),Ez=iv({id:43111,name:"Hemi",network:"Hemi",blockTime:12e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hemi.network/rpc"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.hemi.xyz"}},testnet:!1}),EV=iv({id:743111,name:"Hemi Sepolia",network:"Hemi Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.rpc.hemi.network/rpc"]}},blockExplorers:{default:{name:"Hemi Sepolia explorer",url:"https://testnet.explorer.hemi.xyz"}},testnet:!0}),EH=iv({id:68414,name:"Henesys",nativeCurrency:{name:"NEXPACE",symbol:"NXPC",decimals:18},rpcUrls:{default:{http:["https://henesys-rpc.msu.io"]}},blockExplorers:{default:{name:"Avalanche Explorer",url:"https://subnets.avax.network/henesys"}}}),Eq=iv({id:17e3,name:"Holesky",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://holesky.etherscan.io",apiUrl:"https://api-holesky.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:4295055}},testnet:!0}
vendor: 6,221 bytes, line 2051
2051),EG=iv({id:560048,name:"Hoodi",nativeCurrency:{name:"Hoodi Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hoodi.ethpandaops.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://hoodi.etherscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2589}},testnet:!0}),EK=iv({id:2651420,name:"Horizen Testnet",network:"horizen-testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://horizen-testnet.rpc.caldera.xyz/http"]}},blockExplorers:{default:{name:"Horizen Testnet Caldera Explorer",url:"https://horizen-testnet.explorer.caldera.xyz"}},testnet:!0}),EJ=iv({id:269,name:"High Performance Blockchain",nativeCurrency:{name:"HPB",symbol:"HPB",decimals:18},rpcUrls:{default:{http:["https://hpbnode.com"]}},blockExplorers:{default:{name:"hpbScan",url:"https://hscan.org"}},testnet:!1}),EZ=iv({id:190415,name:"HPP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.hpp.io"],webSocket:["wss://mainnet.hpp.io"]}},blockExplorers:{default:{name:"HPP Mainnet Explorer",url:"https://explorer.hpp.io"}},testnet:!1}),EQ=iv({id:181228,name:"HPP Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.hpp.io"],webSocket:["wss://testnet.hpp.io"]}},blockExplorers:{default:{name:"HPP Sepolia Explorer",url:"https://sepolia-explorer.hpp.io"}},testnet:!0}),EX=iv({id:12323,name:"Huddle01 dRTC Chain",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://huddle01.calderachain.xyz/http"],webSocket:["wss://huddle01.calderachain.xyz/ws"]}},blockExplorers:{default:{name:"Huddle01 Caldera Explorer",url:"https://huddle01.calderaexplorer.xyz",apiUrl:"https://huddle01.calderaexplorer.xyz/api"}},sourceId:42161}),EY=iv({id:2524852,name:"Huddle01 dRTC Chain Testnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://huddle-testnet.rpc.caldera.xyz/http"],webSocket:["wss://huddle-testnet.rpc.caldera.xyz/ws"]}},blockExplorers:{default:{name:"Huddle01 Caldera Explorer",url:"https://huddle-testnet.explorer.caldera.xyz",apiUrl:"https://huddle-testnet.explorer.caldera.xyz/api"}},sourceId:421614,testnet:!0}),E0=iv({id:6985385,name:"Humanity",nativeCurrency:{name:"H",symbol:"H",decimals:18},rpcUrls:{default:{http:["https://humanity-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Humanity Mainnet Explorer",url:"https://humanity-mainnet.explorer.alchemy.com",apiUrl:"https://humanity-mainnet.explorer.alchemy.com/api"}},testnet:!1}),E1=iv({id:7080969,name:"Humanity Testnet",nativeCurrency:{name:"tHP",symbol:"tHP",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.humanity.org"]}},blockExplorers:{default:{name:"Humanity Testnet Explorer",url:"https://humanity-testnet.explorer.alchemy.com",apiUrl:"https://humanity-testnet.explorer.alchemy.com/api"}},testnet:!0}),E2=iv({id:5234,name:"Humanode",nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},rpcUrls:{default:{http:["https://explorer-rpc-http.mainnet.stages.humanode.io"],webSocket:["wss://explorer-rpc-ws.mainnet.stages.humanode.io"]}},blockExplorers:{default:{name:"Subscan",url:"https://humanode.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4413097}}}),E3=iv({id:14853,name:"Humanode Testnet 5",nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},rpcUrls:{default:{http:["https://explorer-rpc-http.testnet5.stages.humanode.io"],webSocket:["wss://explorer-rpc-ws.testnet5.stages.humanode.io"]}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},testnet:!0}),E6=iv({id:2911,name:"HYCHAIN",nativeCurrency:{name:"HYTOPIA",symbol:"TOPIA",decimals:18},rpcUrls:{default:{http:["https://rpc.hychain.com/http"]}},blockExplorers:{default:{name:"HYCHAIN Explorer",url:"https://explorer.hychain.com"}},testnet:!1}),E8=iv({id:29112,name:"HYCHAIN Testnet",nativeCurrency:{name:"HYTOPIA",symbol:"TOPIA",decimals:18},rpcUrls:{default:{http:["https://rpc.hychain.com/http"]}},blockExplorers:{default:{name:"HYCHAIN Explorer",url:"https://testnet-rpc.hychain.com/http"}},testnet:!0}),E7=iv({id:999,name:"HyperEVM",nativeCurrency:{name:"HYPE",symbol:"HYPE",decimals:18},blockExplorers:{default:{name:"HyperEVMScan",url:"https://hyperevmscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13051}},rpcUrls:{default:{http:["https://rpc.hyperliquid.xyz/evm"]}},testnet:!1}),E4=iv({id:998,name:"Hyperliquid EVM Testnet",nativeCurrency:{name:"HYPE",symbol:"HYPE",decimals:18},rpcUrls:{default:{http:["https://rpc.hyperliquid-testnet.xyz/evm"]}},testnet:!0}),E5=iv({id:73115,name:"ICB Network",nativeCurrency:{decimals:18,name:"ICB Native Token",symbol:"ICBX"},rpcUrls:{default:{http:["https://rpc1-mainnet.icbnetwork.info"]}},blockExplorers:{default:{name:"ICB Explorer",url:"https://icbscan.io",apiUrl:"https://icbscan.io/api"}},testnet:!1}),E9=iv({id:74,name:"IDChain Mainnet",nativeCurrency:{decimals:18,name:"EIDI",symbol:"EIDI"},rpcUrls:{default:{http:["https://idchain.one/rpc"],webSocket:["wss://idchain.one/ws"]}},blockExplorers:{default:{name:"IDChain Explorer",url:"https://explorer.idchain.one"}},testnet:!1}),Be=iv({id:38833,name:"Igra Network",nativeCurrency:{decimals:18,name:"iKAS",symbol:"iKAS"},rpcUrls:{default:{http:["https://rpc.igralabs.com:8545"]}},blockExplorers:{default:{name:"Igra Explorer",url:"https://explorer.igralabs.com"}},testnet:!1}),Bt=iv({id:13371,name:"Immutable zkEVM",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.immutable.com"]}},blockExplorers:{default:{name:"Immutable Explorer",url:"https://explorer.immutable.com",apiUrl:"https://explorer.immutable.com/api"}},contracts:{multicall3:{address:"0x236bdA4589e44e6850f5aC6a74BfCa398a86c6c0",blockCreated:4335972}}}),Br=iv({id:13473,name:"Immutable zkEVM Testnet",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.testnet.immutable.com"]}},blockExplorers:{default:{name:"Immutable Testnet Explorer",url:"https://explorer.testnet.immutable.com/"}}
2051,contracts:{multicall3:{address:"0x2CC787Ed364600B0222361C4188308Fa8E68bA60",blockCreated:5977391}},testnet:!0}),Ba=iv({id:2525,name:"inEVM Mainnet",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://mainnet.rpc.inevm.com/http"]}},blockExplorers:{default:{name:"inEVM Explorer",url:"https://inevm.calderaexplorer.xyz",apiUrl:"https://inevm.calderaexplorer.xyz/api/v2"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:118606}}}),Bn=iv({id:7233,name:"InitVerse Mainnet",nativeCurrency:{decimals:18,name:"InitVerse",symbol:"INI"},rpcUrls:{default:{http:["https://rpc-mainnet.inichain.com"]}},blockExplorers:{default:{name:"InitVerseScan",url:"https://www.iniscan.com",apiUrl:"https://explorer-api.inichain.com/api"}},contracts:{multicall3:{address:"0x83466BE48A067115FFF91f7b892Ed1726d032e47",blockCreated:2318}}}),Bi=iv({id:7234,name:"InitVerse Genesis Testnet",nativeCurrency:{decimals:18,name:"InitVerse",symbol:"INI"},rpcUrls:{default:{http:["https://rpc-testnet.inichain.com"]}},blockExplorers:{default:{name:"InitVerseGenesisScan",url:"https://genesis-testnet.iniscan.com",apiUrl:"https://explorer-testnet-api.inichain.com/api"}},contracts:{multicall3:{address:"0x0cF32CBDd6c437331EA4f85ed2d881A5379B5a6F",blockCreated:16361}},testnet:!0}),Bo=iv({id:1776,name:"Injective",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://sentry.evm-rpc.injective.network"],webSocket:["wss://sentry.evm-ws.injective.network"]}},blockExplorers:{default:{name:"Injective Explorer",url:"https://blockscout.injective.network",apiUrl:"https://blockscout.injective.network/api"}},testnet:!1}),Bs=iv({id:1439,name:"Injective Testnet",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://k8s.testnet.json-rpc.injective.network"],webSocket:["wss://k8s.testnet.ws.injective.network"]}},blockExplorers:{default:{name:"Injective Explorer",url:"https://testnet.blockscout.injective.network",apiUrl:"https://testnet.blockscout.injective.network/api"}},testnet:!0}),Bl=iv({...xK,id:57073,name:"Ink",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel.inkonchain.com","https://rpc-qnd.inkonchain.com"],webSocket:["wss://rpc-gel.inkonchain.com","wss://rpc-qnd.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.inkonchain.com",apiUrl:"https://explorer.inkonchain.com/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},...xK.contracts,disputeGameFactory:{1:{address:"0x10d7b35078d3baabb96dd45a9143b94be65b12cd"}},portal:{1:{address:"0x5d66c1782664115999c47c9fa5cd031f495d3e4f"}},l1StandardBridge:{1:{address:"0x88ff1e5b602916615391f55854588efcbb7663f0"}}},testnet:!1,sourceId:1}),Bc=iv({...xK,id:763373,name:"Ink Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel-sepolia.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer-sepolia.inkonchain.com/",apiUrl:"https://explorer-sepolia.inkonchain.com/api/v2"}},contracts:{...xK.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{0xaa36a7:{address:"0x860e626c700af381133d9f4af31412a2d1db3d5d"}},portal:{0xaa36a7:{address:"0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7"}},l1StandardBridge:{0xaa36a7:{address:"0x33f60714bbd74d62b66d79213c348614de51901c"}}},testnet:!0,sourceId:0xaa36a7}),Bd=iv({id:8822,name:"IOTA EVM",network:"iotaevm",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://json-rpc.evm.iotaledger.net"],webSocket:["wss://ws.json-rpc.evm.iotaledger.net"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.evm.iota.org",apiUrl:"https://explorer.evm.iota.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:25022}}}),Bp=iv({id:1075,name:"IOTA EVM Testnet",network:"iotaevm-testnet",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.iotaledger.net"],webSocket:["wss://ws.json-rpc.evm.testnet.iotaledger.net"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.evm.testnet.iotaledger.net",apiUrl:"https://explorer.evm.testnet.iotaledger.net/api"}},testnet:!0}),Bu=iv({id:4689,name:"IoTeX",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webS
vendor: 4,122 bytes, line 2051
2051ocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0x15230d6}}}),Bm=iv({id:4690,name:"IoTeX Testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}},contracts:{multicall3:{address:"0xb5cecD6894c6f473Ec726A176f1512399A2e355d",blockCreated:0x17383c8}},testnet:!0}),Bh=iv({id:8017,name:"iSunCoin Mainnet",nativeCurrency:{decimals:18,name:"ISC",symbol:"ISC"},rpcUrls:{default:{http:["https://mainnet.isuncoin.com"]}},blockExplorers:{default:{name:"iSunCoin Explorer",url:"https://baifa.io/app/chains/8017"}}}),Bg=iv({id:680,name:"Jasmy Chain",network:"jasmyChain",nativeCurrency:{name:"JasmyCoin",symbol:"JASMY",decimals:18},rpcUrls:{default:{http:["https://rpc.jasmychain.io"],webSocket:["wss://rpc.jasmychain.io"]}},testnet:!1}),Bf=iv({id:681,name:"Jasmy Chain Testnet",network:"jasmyChainTestnet",nativeCurrency:{name:"JasmyCoin",symbol:"JASMY",decimals:18},rpcUrls:{default:{http:["https://rpc_testnet.jasmychain.io"],webSocket:["wss://rpc_testnet.jasmychain.io"]}},testnet:!0}),Bb=iv({id:8899,name:"JB Chain",network:"jbc",nativeCurrency:{name:"JBC",symbol:"JBC",decimals:18},rpcUrls:{default:{http:["https://rpc-l1.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-l1.jibchain.net",apiUrl:"https://exp-l1.jibchain.net/api"}},contracts:{multicall3:{address:"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC",blockCreated:2299048}},testnet:!1}),By=iv({id:88991,name:"Jibchain Testnet",nativeCurrency:{name:"tJBC",symbol:"tJBC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp.testnet.jibchain.net",apiUrl:"https://exp.testnet.jibchain.net/api"}},contracts:{multicall3:{address:"0xa1a858ad9041B4741e620355a3F96B3c78e70ecE",blockCreated:32848}},testnet:!0}),Bk=iv({id:81,name:"Japan Open Chain Mainnet",nativeCurrency:{decimals:18,name:"Japan Open Chain Token",symbol:"JOC"},rpcUrls:{default:{http:["https://rpc-1.japanopenchain.org:8545","https://rpc-2.japanopenchain.org:8545","https://rpc-3.japanopenchain.org"]}},blockExplorers:{default:{name:"Block Explorer",url:"https://explorer.japanopenchain.org"}},testnet:!1}),Bx=iv({id:10081,name:"Japan Open Chain Testnet",nativeCurrency:{decimals:18,name:"Japan Open Chain Testnet Token",symbol:"JOCT"},rpcUrls:{default:{http:["https://rpc-1.testnet.japanopenchain.org:8545","https://rpc-2.testnet.japanopenchain.org:8545","https://rpc-3.testnet.japanopenchain.org"]}},blockExplorers:{default:{name:"Testnet Block Explorer",url:"https://explorer.testnet.japanopenchain.org"}},testnet:!0}),Bw=iv({id:5734951,name:"Jovay Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.jovay.io"]}},blockExplorers:{default:{name:"Jovay Explorer",url:"https://explorer.jovay.io/l2"}},testnet:!1}),Bv=iv({id:2019775,name:"Jovay Sepolia Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://api.zan.top/public/jovay-testnet"]}},blockExplorers:{default:{name:"Jovay Testnet Explorer",url:"https://sepolia-explorer.jovay.io/l2"}},testnet:!0}),BT=iv({id:45003,name:"Juneo JUNE-Chain",nativeCurrency:{decimals:18,name:"JUNE-Chain",symbol:"JUNE"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/JUNE/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/2",apiUrl:"https://juneoscan.io/chain/2/api"}}}),BE=iv({id:45013,name:"Juneo BCH1-Chain",nativeCurrency:{decimals:18,name:"Juneo BCH1-Chain",symbol:"BCH1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/BCH1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/12",apiUrl:"https://juneoscan.io/chain/12/api"}}}),BB=iv({id:45004,name:"Juneo DAI1-Chain",nativeCurrency:{decimals:18,name:"Juneo DAI1-Ch
2051ain",symbol:"DAI1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/DAI1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/5",apiUrl:"https://juneoscan.io/chain/5/api"}}}),BC=iv({id:45010,name:"Juneo DOGE1-Chain",nativeCurrency:{decimals:18,name:"Juneo DOGE1-Chain",symbol:"DOGE1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/DOGE1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/10",apiUrl:"https://juneoscan.io/chain/10/api"}}}),BU=iv({id:45011,name:"Juneo EUR1-Chain",nativeCurrency:{decimals:18,name:"Juneo EUR1-Chain",symbol:"EUR1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/EUR1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/6",apiUrl:"https://juneoscan.io/chain/6/api"}}}),BI=iv({id:45008,name:"Juneo GLD1-Chain",nativeCurrency:{decimals:18,name:"Juneo GLD1-Chain",symbol:"GLD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/GLD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/8",apiUrl:"https://juneoscan.io/chain/8/api"}}}),BN=iv({id:45014,name:"Juneo LINK1-Chain",nativeCurrency:{decimals:18,name:"Juneo LINK1-Chain",symbol:"LINK1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/LINK1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/13",apiUrl:"https://juneoscan.io/chain/13/api"}}}),BR=iv({id:45009,name:"Juneo LTC1-Chain",nativeCurrency:{decimals:18,name:"Juneo LTC1-Chain",symbol:"LTC1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/LTC1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/11",apiUrl:"https://juneoscan.io/chain/11/api"}}}),BS=iv({id:45007,name:"Juneo mBTC1-Chain",nativeCurrency:{decimals:18,name:"Juneo mBTC1-Chain",symbol:"mBTC1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/mBTC1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/9",apiUrl:"https://juneoscan.io/chain/9/api"}}}),BA=iv({id:45012,name:"Juneo SGD1-Chain",nativeCurrency:{decimals:18,name:"Juneo SGD1-Chain",symbol:"SGD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/SGD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/7",apiUrl:"https://juneoscan.io/chain/7/api"}}}),BP=iv({id:101003,name:"Socotra JUNE-Chain",nativeCurrency:{decimals:18,name:"Socotra JUNE-Chain",symbol:"JUNE"},rpcUrls:{default:{http:["https://rpc.socotra-testnet.network/ext/bc/JUNE/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://socotra.juneoscan.io/chain/2",apiUrl:"https://socotra.juneoscan.io/chain/2/api"}},testnet:!0}),BD=iv({id:45006,name:"Juneo USD1-Chain",nativeCurrency:{decimals:18,name:"Juneo USD1-Chain",symbol:"USD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/USD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/4",apiUrl:"https://juneoscan.io/chain/4/api"}}}),BL=iv({id:45005,name:"Juneo USDT1-Chain",nativeCurrency:{decimals:18,name:"Juneo USDT1-Chain",symbol:"USDT1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/USDT1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/3",apiUrl:"https://juneoscan.io/chain/3/api"}}}),BO=iv({id:8217,name:"Kaia",nativeCurrency:{decimals:18,name:"Kaia",symbol:"KAIA"},rpcUrls:{default:{http:["https://public-en.node.kaia.io"]}},blockExplorers:{default:{name:"KaiaScan",url:"https://kaiascan.io",apiUrl:"https://api-cypress.klaytnscope.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0x5b8e16f}}}),BF=iv({id:1001,name:"Kairos Testnet",network:"kairos",nativeCurrency:{decimals:18,name:"Kairos KAIA",symbol:"KAIA"},rpcUrls:{default:{http:["https://public-en-kairos.node.kaia.io"]}},blockExplorers:{default:{name:"KaiaScan",url:"https://kairos.kaiascan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0x75aca81}},testnet:!0}),B_=iv({id:0x6b6b7274,name:"Kakarot Sepolia",nativeCurrency:{name:"Ether",symbol
vendor: 4,120 bytes, line 2051
2051:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0}),BM=iv({id:0x34550b76e4065,name:"Kakarot Starknet Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0}),Bj=iv({id:24,name:"KardiaChain Mainnet",nativeCurrency:{name:"KAI",symbol:"KAI",decimals:18},rpcUrls:{default:{http:["https://rpc.kardiachain.io"]}},blockExplorers:{default:{name:"KardiaChain Explorer",url:"https://explorer.kardiachain.io"}},testnet:!1}),B$=iv({id:686,name:"Karura",network:"karura",nativeCurrency:{name:"Karura",symbol:"KAR",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]}},blockExplorers:{default:{name:"Karura Blockscout",url:"https://blockscout.karura.network",apiUrl:"https://blockscout.karura.network/api"}},testnet:!1}),BW=iv({id:747474,name:"Katana",network:"katana",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katana.network"]}},blockExplorers:{default:{name:"katana explorer",url:"https://katanascan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1}),Bz=iv({id:2222,name:"Kava EVM",network:"kava-mainnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Explorer",url:"https://kavascan.com",apiUrl:"https://kavascan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3661165}},testnet:!1}),BV=iv({id:2221,name:"Kava EVM Testnet",network:"kava-testnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.testnet.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Testnet Explorer",url:"https://testnet.kavascan.com/",apiUrl:"https://testnet.kavascan.com/api"}},contracts:{multicall3:{address:"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6",blockCreated:7242179}},testnet:!0}),BH=iv({id:321,name:"KCC Mainnet",network:"KCC Mainnet",nativeCurrency:{decimals:18,name:"KCS",symbol:"KCS"},rpcUrls:{default:{http:["https://kcc-rpc.com"]}},blockExplorers:{default:{name:"KCC Explorer",url:"https://explorer.kcc.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xb3732e}},testnet:!1}),Bq=iv({id:1783,name:"KiiChain",network:"kii-chain",nativeCurrency:{name:"Kii",symbol:"KII",decimals:18},rpcUrls:{default:{http:["https://json-rpc.kiivalidator.com"]}},blockExplorers:{default:{name:"KiiExplorer",url:"https://explorer.kiichain.io"}}}),BG=iv({id:1336,name:"Kii Testnet Oro",network:"kii-testnet-oro",nativeCurrency:{name:"Kii",symbol:"KII",decimals:18},rpcUrls:{default:{http:["https://json-rpc.uno.sentry.testnet.v3.kiivalidator.com"]}},blockExplorers:{default:{name:"KiiExplorer",url:"https://testnet.explorer.kiichain.io"}},testnet:!0}),BK=iv({id:7887,name:"Kinto Mainnet",network:"Kinto Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.kinto.xyz/http"]}},blockExplorers:{default:{name:"Kinto Explorer",url:"https://explorer.kinto.xyz"}},testnet:!1}),BJ=iv({id:8217,name:"Klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-cypress.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0x5b8e16f}}}),BZ=iv({id:1001,name:"Klaytn Baobab Testnet",network:"klaytn-baobab",nativeCurrency:{decimals:18,name:"Baobab Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-baobab.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0x75aca81}},testnet:!0}
2051),BQ=iv({id:701,name:"Koi Network",nativeCurrency:{decimals:18,name:"Koi Network Native Token",symbol:"KRING"},rpcUrls:{default:{http:["https://koi-rpc.darwinia.network"],webSocket:["wss://koi-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://koi-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:180001}},testnet:!0}),BX=iv({id:255,name:"Kroma",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.kroma.network"]}},blockExplorers:{default:{name:"Kroma Explorer",url:"https://blockscout.kroma.network",apiUrl:"https://blockscout.kroma.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0xf4fa54}},testnet:!1}),BY=iv({id:2358,name:"Kroma Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.sepolia.kroma.network"]}},blockExplorers:{default:{name:"Kroma Sepolia Explorer",url:"https://blockscout.sepolia.kroma.network",apiUrl:"https://blockscout.sepolia.kroma.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:8900914}},testnet:!0}),B0=iv({id:1983,name:"Krown",nativeCurrency:{decimals:18,name:"Krown",symbol:"KROWN"},rpcUrls:{default:{http:["https://mainnet.krown.network"]}},blockExplorers:{default:{name:"Krown Explorer",url:"https://explorer.krown.network"}},testnet:!1}),B1=iv({id:12324,name:"L3X Protocol",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.l3x.com"],webSocket:["wss://rpc-mainnet.l3x.com"]}},blockExplorers:{default:{name:"L3X Mainnet Explorer",url:"https://explorer.l3x.com",apiUrl:"https://explorer.l3x.com/api/v2"}},testnet:!1}),B2=iv({id:12325,name:"L3X Protocol Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.l3x.com"],webSocket:["wss://rpc-testnet.l3x.com"]}},blockExplorers:{default:{name:"L3X Testnet Explorer",url:"https://explorer-testnet.l3x.com",apiUrl:"https://explorer-testnet.l3x.com/api/v2"}},testnet:!0}),B3=iv({id:360890,name:"LAVITA Mainnet",nativeCurrency:{name:"vTFUEL",symbol:"vTFUEL",decimals:18},rpcUrls:{default:{http:["https://tsub360890-eth-rpc.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"LAVITA Explorer",url:"https://tsub360890-explorer.thetatoken.org"}},testnet:!1}),B6=iv({id:232,name:"Lens",nativeCurrency:{name:"GHO",symbol:"GHO",decimals:18},rpcUrls:{default:{http:["https://rpc.lens.xyz"]}},blockExplorers:{default:{name:"Lens Block Explorer",url:"https://explorer.lens.xyz",apiUrl:"https://explorer.lens.xyz/api"}}}),B8=iv({id:37111,name:"Lens Testnet",nativeCurrency:{name:"GRASS",symbol:"GRASS",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.lens.dev"],webSocket:["wss://rpc.testnet.lens.dev/ws"]}},blockExplorers:{default:{name:"Lens Block Explorer",url:"https://block-explorer.testnet.lens.dev",apiUrl:"https://block-explorer-api.staging.lens.dev/api"}},testnet:!0}),B7=iv({id:21363,name:"Lestnet",nativeCurrency:{name:"Lestnet Ether",symbol:"LETH",decimals:18},rpcUrls:{default:{http:["https://service.lestnet.org"]}},blockExplorers:{default:{name:"Lestnet Explorer",url:"https://explore.lestnet.org"}},testnet:!0}),B4=iv({id:1891,name:"LightLink Pegasus Testnet",network:"lightlink-pegasus",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.pegasus.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Pegasus Explorer",url:"https://pegasus.lightlink.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x794be34}},testnet:!0}),B5=iv({id:1890,name:"LightLink Phoenix Mainnet",network:"lightlink-phoenix",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.phoenix.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Phoenix Explorer",url:"https://phoenix.lightlink.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x77af730}},testnet:!1});async function B9(e,t){let{account:r=e.account}=t;if(!r)throw new nC;let a=(0,A.J5)(r);try{let{accessList:r,blockNumber:n,blockTag:i,data:o,gas:s,gasPrice:l,maxFeePerGas:c,maxPriorityFeePerGas:d,nonce:p,to:u,value:m,...h}=t,g=("bigint"==typeof n?(0,A.cK)(n):void 0)||i;(0,A.c3)(t);let f=e.chain?.formatters?.transactionRequest?.format,b=(f||A.Bv)({...(0,A.o6)(h,{format:f}),account:a,accessList:r,data:o,gas:s,gasPrice:l,maxFeePerGas:c,maxPriorityFeePerGas:d,nonce:p,to:u,value:m},"estimateGas"),{baseFeePerGas:y,gasLimit:k,priorityFeePerGas:x}=await e.request({method:"linea_estimateGas",params:g?[b,g]:[b]});return{baseFeePerGas:BigInt(y),gasLimit:BigInt(k),priorityFeePerGas:BigInt(x)}}catch(r){throw(0,A.dt)(r,{...t,account:a,chain:e.chain})}}var Ce={fees:{estimateFeesPerGas:Ct,async maxPriorityFeePerGas({block:e,client:t,request:r}){let a=await Ct({block:e,client:t,multiply:e=>e,request:r,type:"eip1559"});return a?.maxPriorityFeePerGas?a.maxPriorityFeePerGas:null}}};async function Ct({client:e,multiply:t,request:r,type:a}){try{let n=await B9(e,{...r,account:r?.account}),{priorityFeePerGas:i}=n,o=t(BigInt(n.baseFeePerGas))+i;if("legacy"===a)return{gasPrice:o};return{maxFeePerGas:o,maxPriorityFeePerGas:i}}catch{return null}}var Cr=iv({...Ce,id:59144,name:"Linea Mainnet",blockTime:2e3,nativeCurrency:{name:"Linea Ether",symbol
2051:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42},ensRegistry:{address:"0x50130b669B28C339991d8676FA73CF122a121267",blockCreated:6682888},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:0x1531547}},ensTlds:[".linea.eth"],testnet:!1}),Ca=iv({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://api-goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),Cn=iv({...Ce,id:59141,name:"Linea Sepolia Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.linea.build"],webSocket:["wss://rpc.sepolia.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.lineascan.build",apiUrl:"https://api-sepolia.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:227427},ensRegistry:{address:"0x5B2636F0f2137B4aE722C01dd5122D7d3e9541f7",blockCreated:2395094},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:0x105f864}},ensTlds:[".linea.eth"],testnet:!0}),Ci=iv({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),Co=iv({...xK,id:1135,name:"Lisk",network:"lisk",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.lisk.com",apiUrl:"https://blockscout.lisk.com/api"}},contracts:{...xK.contracts,disputeGameFactory:{1:{address:"0x0CF7D3706a27CCE2017aEB11E8a9c8b5388c282C"}},multicall3:{address:"0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0"},l2OutputOracle:{1:{address:"0x113cB99283AF242Da0A0C54347667edF531Aa7d6"}},portal:{1:{address:"0x26dB93F8b8b4f7016240af62F7730979d353f9A7"}},l1StandardBridge:{1:{address:"0x2658723Bf70c7667De6B25F99fcce13A16D25d08"}}},sourceId:1}),Cs=iv({...xK,id:4202,network:"lisk-sepolia",name:"Lisk Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia-api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.lisk.com",apiUrl:"https://sepolia-blockscout.lisk.com/api"}},contracts:{...xK.contracts,l2OutputOracle:{0xaa36a7:{address:"0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{0xaa36a7:{address:"0xe3d90F21490686Ec7eF37BE788E02dfC12787264"}},l1StandardBridge:{0xaa36a7:{address:"0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5"}}},testnet:!0,sourceId:0xaa36a7}),Cl=iv({id:9496,name:"Load Alphanet",nativeCurrency:{name:"Testnet LOAD",symbol:"tLOAD",decimals:18},rpcUrls:{default:{http:["https://alphanet.load.network"]}},blockExplorers:{default:{name:"Load Alphanet Explorer",url:"https://explorer.load.network"}},testnet:!0}),Cc=iv({id:1337,name:"Localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),Cd=iv({id:15551,name:"LoopNetwork Mainnet",nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},rpcUrls:{default:{http:["https://api.mainnetloop.com"]}},blockExplorers:{default:{name:"LoopNetwork Blockchain Explorer",url:"https://explorer.mainnetloop.com/"}},testnet:!1}),Cp=iv({id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol
vendor: 5,774 bytes, line 2051
2051:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network",apiUrl:"https://api.explorer.execution.mainnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:468183}}}),Cu=iv({id:4201,name:"LUKSO Testnet",nativeCurrency:{decimals:18,name:"LUKSO Testnet",symbol:"LYXt"},rpcUrls:{default:{http:["https://rpc.testnet.lukso.network"],webSocket:["wss://ws-rpc.testnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Testnet Explorer",url:"https://explorer.execution.testnet.lukso.network",apiUrl:"https://api.explorer.execution.testnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:605348}},testnet:!0}),Cm=iv({id:0x3b4c8eb9,name:"Lumia Mainnet",network:"LumiaMainnet",nativeCurrency:{name:"Lumia",symbol:"LUMIA",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.lumia.org"]}},blockExplorers:{default:{name:"Lumia Explorer",url:"https://explorer.lumia.org/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3975939}},testnet:!1}),Ch=iv({id:0x7467cbf8,name:"Lumia Testnet",network:"LumiaTestnet",nativeCurrency:{name:"Lumia",symbol:"LUMIA",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.lumia.org"]}},blockExplorers:{default:{name:"Lumia Testnet Explorer",url:"https://testnet-explorer.lumia.org/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2235063}},testnet:!0}),Cg=iv({id:96370,name:"Lumoz",nativeCurrency:{decimals:18,name:"Lumoz Token",symbol:"MOZ"},rpcUrls:{default:{http:["https://rpc.lumoz.org"]}},blockExplorers:{default:{name:"Lumoz Scan",url:"https://scan.lumoz.info"}},testnet:!1}),Cf=iv({id:105363,name:"Lumoz Testnet",nativeCurrency:{decimals:18,name:"Lumoz Testnet Token",symbol:"MOZ"},rpcUrls:{default:{http:["https://testnet-rpc.lumoz.org"]}},testnet:!0}),Cb=iv({id:1122,name:"LuxePorts",network:"luxeports",nativeCurrency:{name:"LuxePorts",symbol:"LXP",decimals:18},rpcUrls:{default:{http:["https://rpc.luxeports.com","https://erpc.luxeports.com"],webSocket:["wss://rpc.luxeports.com/ws","wss://erpc.luxeports.com/ws"]}},blockExplorers:{default:{name:"LXPScan",url:"https://lxpscan.com"}},testnet:!1}),Cy=iv({id:721,name:"Lycan",nativeCurrency:{decimals:18,name:"Lycan",symbol:"LYC"},rpcUrls:{default:{http:["https://rpc.lycanchain.com","https://us-east.lycanchain.com","https://us-west.lycanchain.com","https://eu-north.lycanchain.com","https://eu-west.lycanchain.com","https://asia-southeast.lycanchain.com"],webSocket:["wss://rpc.lycanchain.com","wss://us-east.lycanchain.com","wss://us-west.lycanchain.com","wss://eu-north.lycanchain.com","wss://eu-west.lycanchain.com","wss://asia-southeast.lycanchain.com"]}},blockExplorers:{default:{name:"Lycan Explorer",url:"https://explorer.lycanchain.com"}}}),Ck=iv({id:957,name:"Lyra Chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.lyra.finance"]}},blockExplorers:{default:{name:"Lyra Explorer",url:"https://explorer.lyra.finance",apiUrl:"https://explorer.lyra.finance/api/v2"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1935198}}}),Cx=iv({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:0x16041f6},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xdb04c1}}}),Cw=iv({id:595,name:"Mandala TC9",network:"mandala",nativeCurrency:{name:"Mandala",symbol:"mACA",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]}},blockExplorers:{default:{name:"Mandala Blockscout",url:"https://blockscout.mandala.aca-staging.network",apiUrl:"https://blockscout.mandala.aca-staging.network/api"}},testnet:!0}),Cv=iv({id:169,name:"Manta Pacific Mainnet",network:"manta",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.manta.network/http"]}},blockExplorers:{default:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network",apiUrl:"https://pacific-explorer.manta.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:332890}}}),CT=iv({id:3441006,name:"Manta Pacific Sepolia Testnet",network:"manta-sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.sepolia-testnet.manta.network/http"]}},blockExplorers:{default:{name:"Manta Sepolia Testnet Explorer",url:"https://pacific-explorer.sepolia-testnet.manta.network",apiUrl:"https://pacific-explorer.sepolia-testnet.manta.network/api"}},contracts:{multicall3:{address:"0xca54918f7B525C8df894668846506767412b53E3",blockCreated:479584}},testnet:!0}),CE=iv({id:3441005,name:"Manta Pacific Testnet",network:"manta-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://manta-testnet.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network",apiUrl:"https://pacific-explorer.testnet.manta.network/api"}},contracts:{multicall3:{address:"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C",blockCreated:419915}},testnet:!0}),CB=iv({id:5e3,name:"Mantle",nativeCurrency:{decimals:18,name:"MNT",symbol
2051:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Explorer",url:"https://mantlescan.xyz/",apiUrl:"https://api.mantlescan.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}}),CC=iv({id:5003,name:"Mantle Sepolia Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.sepolia.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.sepolia.mantle.xyz/",apiUrl:"https://explorer.sepolia.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4584012}},testnet:!0}),CU=iv({id:5001,name:"Mantle Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",apiUrl:"https://explorer.testnet.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:561333}},testnet:!0}),CI=iv({id:5887,name:"MANTRA DuKong EVM Testnet",nativeCurrency:{decimals:18,name:"MANTRA",symbol:"MANTRA"},rpcUrls:{default:{http:["https://evm.dukong.mantrachain.io"]}},blockExplorers:{default:{name:"MANTRAScan",url:"https://mantrascan.io/dukong"}},testnet:!0}),CN=iv({id:5888,name:"MANTRA EVM",nativeCurrency:{decimals:18,name:"MANTRA",symbol:"MANTRA"},rpcUrls:{default:{http:["https://evm.mantrachain.io"],webSocket:["https://evm.mantrachain.io/ws"]}},blockExplorers:{default:{name:"MANTRA Blockscout Explorer",url:"https://blockscout.mantrascan.io"}}}),CR=iv({id:22776,name:"MAP Protocol",nativeCurrency:{decimals:18,name:"MAPO",symbol:"MAPO"},rpcUrls:{default:{http:["https://rpc.maplabs.io"]}},blockExplorers:{default:{name:"MAPO Scan",url:"https://maposcan.io"}},testnet:!1}),CS=iv({id:698,name:"Matchain",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://rpc.matchain.io"]}},blockExplorers:{default:{name:"Matchain Scan",url:"https://matchscan.io"}}}),CA=iv({id:699,name:"Matchain Testnet",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.matchain.io"]}},blockExplorers:{default:{name:"Matchain Scan",url:"https://testnet.matchscan.io"}},testnet:!0}),CP=iv({id:29548,name:"MCH Verse",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.oasys.mycryptoheroes.net"]}},blockExplorers:{default:{name:"MCH Verse Explorer",url:"https://explorer.oasys.mycryptoheroes.net",apiUrl:"https://explorer.oasys.mycryptoheroes.net/api"}},testnet:!1}),CD=iv({...xK,id:4326,blockTime:1e3,name:"MegaETH",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.megaeth.com/rpc"],webSocket:["wss://mainnet.megaeth.com/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://mega.etherscan.io",apiUrl:"https://api.etherscan.io/v2/api"},blockscout:{name:"Blockscout",url:"https://megaeth.blockscout.com",apiUrl:"https://megaeth.blockscout.com/api"}},contracts:{...xK.contracts,disputeGameFactory:{1:{address:"0x8546840adF796875cD9AAcc5B3B048f6B2c9D563"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},portal:{1:{address:"0x7f82f57F0Dd546519324392e408b01fcC7D709e8",blockCreated:0x14a43fd}},l1StandardBridge:{1:{address:"0x0CA3A2FBC3D770b578223FBB6b062fa875a2eE75",blockCreated:0x14a43fd}}},sourceId:1}),CL=iv({id:6343,blockTime:1e3,name:"MegaETH Testnet",nativeCurrency:{name:"MegaETH Testnet Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://carrot.megaeth.com/rpc"],webSocket:["wss://carrot.megaeth.com/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://testnet-mega.etherscan.io",apiUrl:"https://api.etherscan.io/v2/api"},blockscout:{name:"Blockscout",url:"https://megaeth-testnet-v2.blockscout.com",apiUrl:"https://megaeth-testnet-v2.blockscout.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0}
2051),CO=iv({id:0x1a5ee289c,name:"Mekong Pectra Devnet",nativeCurrency:{name:"eth",symbol:"eth",decimals:18},rpcUrls:{default:{http:["https://rpc.mekong.ethpandaops.io"]}},blockExplorers:{default:{name:"Block Explorer",url:"https://explorer.mekong.ethpandaops.io"}},testnet:!0}),CF=iv({id:0x13d92e8d,name:"Meld",nativeCurrency:{decimals:18,name:"Meld",symbol:"MELD"},rpcUrls:{default:{http:["https://rpc-1.meld.com"]}},blockExplorers:{default:{name:"MELDscan",url:"https://meldscan.io"}},contracts:{multicall3:{address:"0x769ee5a8e82c15c1b6e358f62ac8eb6e3abe8dc5",blockCreated:360069}}}),C_=iv({id:4352,name:"MemeCore",nativeCurrency:{decimals:18,name:"M",symbol:"M"},rpcUrls:{default:{http:["https://rpc.memecore.net"],webSocket:["wss://ws.memecore.net"]}},blockExplorers:{default:{name:"MemeCore Explorer",url:"https://memecorescan.io",apiUrl:"https://api.memecorescan.io/api"},okx:{name:"MemeCore Explorer",url:"https://web3.okx.com/explorer/memecore"},memecore:{name:"MemeCore Explorer",url:"https://blockscout.memecore.com",apiUrl:"https://blockscout.memecore.com/api"}}}),CM=iv({id:43521,name:"Formicarium",nativeCurrency:{decimals:18,name:"M",symbol:"M"},rpcUrls:{default:{http:["https://rpc.formicarium.memecore.net"],webSocket:["wss://ws.formicarium.memecore.net"]}},blockExplorers:{default:{name:"MemeCore Testnet Explorer",url:"https://formicarium.memecorescan.io"},okx:{name:"MemeCore Testnet Explorer",url:"https://web3.okx.com/explorer/formicarium-testnet"},memecore:{name:"MemeCore Testnet Explorer",url:"https://formicarium.blockscout.memecore.com",apiUrl:"https://formicarium.blockscout.memecore.com/api"}},testnet:!0}),Cj=iv({id:4200,name:"Merlin",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://scan.merlinchain.io",apiUrl:"https://scan.merlinchain.io/api"}}}),C$=iv({id:4203,name:"Merlin Erigon Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-erigon-rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet-erigon-scan.merlinchain.io",apiUrl:"https://testnet-erigon-scan.merlinchain.io/api"}},testnet:!0}),CW=iv({id:571,name:"MetaChain Mainnet",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://rpc.metatime.com"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://explorer.metatime.com"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}}}),Cz=iv({id:1453,name:"MetaChain Istanbul",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://istanbul-rpc.metachain.dev"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://istanbul-explorer.metachain.dev"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}},testnet:!0}),CV=iv({id:11,name:"Metadium Network",nativeCurrency:{decimals:18,name:"META",symbol:"META"},rpcUrls:{default:{http:["https://api.metadium.com/prod"]}},blockExplorers:{default:{name:"Metadium Explorer",url:"https://explorer.metadium.com"}},testnet:!1}),CH=iv({...xK,id:1750,name:"Metal L2",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.metall2.com"],webSocket:["wss://rpc.metall2.com"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.metall2.com",apiUrl:"https://explorer.metall2.com/api"}},contracts:{...xK.contracts,l2OutputOracle:{1:{address:"0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},portal:{1:{address:"0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956"}},l1StandardBridge:{1:{address:"0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3"}}},sourceId:1}),Cq=iv({id:82,name:"Meter",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpc.meter.io"]}},blockExplorers:{default:{name:"MeterScan",url:"https://scan.meter.io"}}}),CG=iv({id:83,name:"Meter Testnet",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpctest.meter.io"]}},blockExplorers:{default:{name:"MeterTestnetScan",url:"https://scan-warringstakes.meter.io"}},testnet:!0}),CK=iv({id:1088,name:"Metis",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://metis.rpc.hypersync.xyz","https://metis-pokt.nodies.app","https://api.blockeden.xyz/metis/67nCBdZQSH9z3YqDDjdm","https://metis-andromeda.rpc.thirdweb.com","https://metis-andromeda.gateway.tenderly.co","https://metis.api.onfinality.io/public","https://andromeda.metis.io/?owner=1088","https://metis-mainnet.public.blastapi.io"],webS
2051ocket:["wss://metis-rpc.publicnode.com","wss://metis.drpc.org"]}},blockExplorers:{default:{name:"Metis Explorer",url:"https://explorer.metis.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}}),CJ=iv({id:599,name:"Metis Goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link",apiUrl:"https://goerli.explorer.metisdevops.link/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}},testnet:!0}),CZ=iv({id:59902,name:"Metis Sepolia",nativeCurrency:{decimals:18,name:"Test Metis",symbol:"tMETIS"},rpcUrls:{default:{http:["https://sepolia.metisdevops.link","https://metis-sepolia-rpc.publicnode.com","https://metis-sepolia.gateway.tenderly.co"],webSocket:["wss://metis-sepolia-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Metis Sepolia Explorer",url:"https://sepolia-explorer.metisdevops.link",apiUrl:"https://sepolia-explorer.metisdevops.link/api-docs"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:224185}},testnet:!0}),CQ=iv({id:7518,name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x52db43c}}}),CX=iv({id:4759,name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x3d639ab}},testnet:!0}),CY=iv({id:31612,name:"Mezo",nativeCurrency:{decimals:18,name:"Bitcoin",symbol:"BTC"},rpcUrls:{default:{http:["https://rpc.mezo.org"]}},blockExplorers:{default:{name:"Mezo Explorer",url:"https://explorer.mezo.org"}}}),C0=iv({id:31611,name:"Mezo Testnet",nativeCurrency:{decimals:18,name:"Bitcoin",symbol:"BTC"},rpcUrls:{default:{http:["https://rpc.test.mezo.org"]}},blockExplorers:{default:{name:"Mezo Testnet Explorer",url:"https://explorer.test.mezo.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328573}},testnet:!0}),C1=iv({id:185,name:"Mint Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.mintchain.io"]}},blockExplorers:{default:{name:"Mintchain explorer",url:"https://explorer.mintchain.io"}},testnet:!1}),C2=iv({id:1686,name:"Mint Sepolia Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.mintchain.io"]}},blockExplorers:{default:{name:"Mintchain Testnet explorer",url:"https://testnet-explorer.mintchain.io"}},testnet:!0}),C3=iv({id:124832,name:"Mitosis Testnet",nativeCurrency:{name:"MITO",symbol:"MITO",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.mitosis.org"]}},blockExplorers:{default:{name:"Mitosis testnet explorer",url:"https://testnet.mitosiscan.xyz"}},testnet:!0}),C6=iv({id:6497,name:"MIZUHIKI Testnet Awaji",nativeCurrency:{name:"MIZU",symbol:"MIZU",decimals:18},rpcUrls:{default:{http:["https://rpc.awaji.mizuhiki.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://awaji.blockscout.com",apiUrl:"https://awaji.blockscout.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},testnet:!0}),C8=iv({...xK,id:34443,name:"Mode Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.mode.network"]}},blockExplorers:{default:{name:"Modescan",url:"https://modescan.io"}},contracts:{...xK.contracts,disputeGameFactory:{1:{address:"0x6f13EFadABD9269D6cEAd22b448d434A1f1B433E"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2465882},l2OutputOracle:{1:{address:"0x4317ba146D4933D889518a3e5E11Fe7a53199b04"}},portal:{1:{address:"0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07"}},l1StandardBridge:{1:{address:"0x735aDBbE72226BD52e818E7181953f42E3b0FF21"}}},sourceId:1}
vendor: 9,232 bytes, line 2051
2051),C7=iv({...xK,id:919,name:"Mode Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network",apiUrl:"https://sepolia.explorer.mode.network/api"}},contracts:{...xK.contracts,l2OutputOracle:{0xaa36a7:{address:"0x2634BD65ba27AB63811c74A63118ACb312701Bfa",blockCreated:3778393}},portal:{0xaa36a7:{address:"0x320e1580effF37E008F1C92700d1eBa47c1B23fD",blockCreated:3778395}},l1StandardBridge:{0xaa36a7:{address:"0xbC5C679879B2965296756CD959C3C739769995E2",blockCreated:3778392}},multicall3:{address:"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF",blockCreated:3019007}},testnet:!0,sourceId:0xaa36a7}),C4=iv({id:143,name:"Monad",blockTime:400,nativeCurrency:{name:"Monad",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://rpc.monad.xyz","https://rpc1.monad.xyz"],webSocket:["wss://rpc.monad.xyz","wss://rpc1.monad.xyz"]}},blockExplorers:{default:{name:"MonadVision",url:"https://monadvision.com"},monadscan:{name:"Monadscan",url:"https://monadscan.com",apiUrl:"https://api.monadscan.com/api"}},testnet:!1,contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:9248132}}}),C5=iv({id:10143,name:"Monad Testnet",blockTime:400,nativeCurrency:{name:"Testnet MON Token",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.monad.xyz"]}},blockExplorers:{default:{name:"Monad Testnet explorer",url:"https://testnet.monadexplorer.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:251449}},testnet:!0}),C9=iv({id:1287,name:"Moonbase Alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io",apiUrl:"https://moonbase.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0}),Ue=iv({id:1284,name:"Moonbeam",nativeCurrency:{decimals:18,name:"Moonbeam",symbol:"GLMR"},rpcUrls:{default:{http:["https://rpc.api.moonbeam.network"],webSocket:["wss://wss.api.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io",apiUrl:"https://api-moonbeam.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1}),Ut=iv({id:1281,name:"Moonbeam Development Node",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]}}}),Ur=iv({id:1285,name:"Moonriver",nativeCurrency:{decimals:18,name:"Moonriver",symbol:"MOVR"},rpcUrls:{default:{http:["https://rpc.api.moonriver.moonbeam.network"],webSocket:["wss://wss.api.moonriver.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io",apiUrl:"https://api-moonriver.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1}),Ua=iv({id:2818,name:"Morph",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.morphl2.io"],webSocket:["wss://rpc.morphl2.io:8443"]}},blockExplorers:{default:{name:"Morph Explorer",url:"https://explorer.morphl2.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3654913}},testnet:!1}),Un=iv({id:2810,name:"Morph Holesky",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-quicknode-holesky.morphl2.io"],webSocket:["wss://rpc-quicknode-holesky.morphl2.io"]}},blockExplorers:{default:{name:"Morph Holesky Explorer",url:"https://explorer-holesky.morphl2.io",apiUrl:"https://explorer-api-holesky.morphl2.io/api"}},testnet:!0}),Ui=iv({id:2710,name:"Morph Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.morphl2.io"]}},blockExplorers:{default:{name:"Morph Testnet Explorer",url:"https://explorer-testnet.morphl2.io",apiUrl:"https://explorer-api-testnet.morphl2.io/api"}},testnet:!0}),Uo=iv({id:5551,name:"Nahmii 2 Mainnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://l2.nahmii.io"]}},blockExplorers:{default:{name:"Nahmii 2 Explorer",url:"https://explorer.n2.nahmii.io"}},testnet:!1}),Us=iv({id:22222,name:"Nautilus Mainnet",nativeCurrency:{name:"ZBC",symbol:"ZBC",decimals:9},rpcUrls:{default:{http:["https://api.nautilus.nautchain.xyz"]}},blockExplorers:{default:{name:"NautScan",url:"https://nautscan.com"}}}),Ul=iv({id:397,name:"NEAR Protocol",nativeCurrency:{decimals:18,name:"NEAR",symbol:"NEAR"},rpcUrls:{default:{http:["https://eth-rpc.mainnet.near.org"]}},blockExplorers:{default:{name:"NEAR Explorer",url:"https://eth-explorer.near.org"}},testnet:!1}),Uc=iv({id:398,name:"NEAR Protocol Testnet",nativeCurrency:{decimals:18,name:"NEAR",symbol:"NEAR"},rpcUrls:{default:{http:["https://eth-rpc.testnet.near.org"]}},blockExplorers:{default:{name:"NEAR Explorer",url:"https://eth-explorer-testnet.near.org"}},testnet:!0}),Ud=iv({id:0xe9ac0ce,name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://devnet.neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xc3b3260}},testnet:!0}),Up=iv({id:0xe9ac0d6,network:"neonMainnet",name:"Neon EVM MainNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://neon-proxy-mainnet.solana.p2p.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xc4fa274}},testnet:!1}),Uu=iv({id:47763,name:"Neo X Mainnet",nativeCurrency:{name:"Gas",symbol:"GAS",decimals:18},rpcUrls:{default:{http:["https://mainnet-1.rpc.banelabs.org","https://mainnet-2.rpc.banelabs.org"]}},blockExplorers:{default:{name:"Neo X - Explorer",url:"https://xexplorer.neo.org"}},testnet:!1}),Um=iv({id:0xba9304,name:"Neo X Testnet T4",nativeCurrency:{name:"Gas",symbol:"GAS",decimals:18},rpcUrls:{default:{http:["https://testnet.rpc.banelabs.org/"]}},blockExplorers:{default:{name:"neox-scan",url:"https://xt4scan.ngd.network"}},testnet:!0}),Uh=iv({id:1012,name:"Newton",nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},rpcUrls:{default:{http:["https://global.rpc.mainnet.newtonproject.org"]}},blockExplorers:{default:{name:"NewFi explorer",url:"https://explorer.newtonproject.org/"}},testnet:!1}),Ug=iv({id:4242,name:"Nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{default:{name:"NexiScan",url:"https://www.nexiscan.com",apiUrl:"https://www.nexiscan.com/api"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:0x18938b0}}}),Uf=iv({id:240,name:"Nexilix Smart Chain",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}}),Ub=iv({id:6900,name:"Nibiru",nativeCurrency:{decimals:18,name:"NIBI",symbol:"NIBI"},rpcUrls:{default:{http:["https://evm-rpc.nibiru.fi"]}},blockExplorers:{default:{name:"NibiScan",url:"https://nibiscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0x12ae1f5}}}),Uy=iv({id:200024,name:"Nitrograph Testnet",testnet:!0,rpcUrls:{default:{http:["https://rpc-testnet.nitrograph.foundation"]}},nativeCurrency:{name:"Nitro",symbol:"NOS",decimals:18},blockExplorers:{default:{url:"https://explorer-testnet.nitrograph.foundation",name:"Nitrograph Explorer"}}}),Uk=iv({id:166,name:"Nomina",nativeCurrency:{name:"Nomina",symbol:"NOM",decimals:18},rpcUrls:{default:{http:["https://mainnet.nomina.io"],webSocket:["wss://mainnet.nomina.io"]}},blockExplorers:{default:{name:"Nomina Explorer",url:"https://nomscan.io"}},testnet:!1}),Ux=iv({id:4090,network:"oasis-testnet",name:"Oasis Testnet",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.oasis.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://oasis.ftnscan.com",apiUrl:"https://oasis.ftnscan.com/api"}},testnet:!0}),Uw=iv({id:248,name:"Oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games",apiUrl:"https://scan.oasys.games/api"}}}),Uv=iv({id:911867,name:"Odyssey Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://odyssey.ithaca.xyz"]}},blockExplorers:{default:{name:"Odyssey Explorer",url:"https://odyssey-explorer.ithaca.xyz",apiUrl:"https://odyssey-explorer.ithaca.xyz/api"}},testnet:!0}),UT=iv({id:66,name:"OKC",nativeCurrency:{decimals:18,name:"OKT",symbol
2051:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x9e2778}}}),UE=iv({id:311,name:"Omax Mainnet",nativeCurrency:{decimals:18,name:"OMAX",symbol:"OMAX"},rpcUrls:{default:{http:["https://mainapi.omaxray.com"]}},blockExplorers:{default:{name:"Omax Explorer",url:"https://omaxscan.com"}},testnet:!1}),UB=iv({id:166,name:"Omni",nativeCurrency:{name:"Omni",symbol:"OMNI",decimals:18},rpcUrls:{default:{http:["https://mainnet.omni.network"],webSocket:["wss://mainnet.omni.network"]}},blockExplorers:{default:{name:"OmniScan",url:"https://omniscan.network"}},testnet:!1}),UC=iv({id:164,name:"Omni Omega",nativeCurrency:{name:"Omni",symbol:"OMNI",decimals:18},rpcUrls:{default:{http:["https://omega.omni.network"],webSocket:["wss://omega.omni.network"]}},blockExplorers:{default:{name:"Omega OmniScan",url:"https://omega.omniscan.network/"}},testnet:!0}),UU=iv({id:309075,name:"One World Chain Mainnet",nativeCurrency:{decimals:18,name:"OWCT",symbol:"OWCT"},rpcUrls:{default:{http:["https://mainnet-rpc.oneworldchain.org"]}},blockExplorers:{default:{name:"One World Explorer",url:"https://mainnet.oneworldchain.org"}},testnet:!1}),UI=iv({id:9700,name:"OORT MainnetDev",nativeCurrency:{decimals:18,name:"OORT",symbol:"OORT"},rpcUrls:{default:{http:["https://dev-rpc.oortech.com"]}},blockExplorers:{default:{name:"OORT MainnetDev Explorer",url:"https://dev-scan.oortech.com"}}}),UN=iv({id:204,name:"opBNB",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opBNB (BSCScan)",url:"https://opbnb.bscscan.com",apiUrl:"https://api-opbnb.bscscan.com/api"}},contracts:{...xK.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:512881},l2OutputOracle:{56:{address:"0x153CAB79f4767E2ff862C94aa49573294B13D169"}},portal:{56:{address:"0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519"}},l1StandardBridge:{56:{address:"0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea"}}},sourceId:56}),UR=iv({id:5611,name:"opBNB Testnet",nativeCurrency:{decimals:18,name:"tBNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://opbnb-testnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://testnet.opbnbscan.com"}},contracts:{...xK.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3705108},l2OutputOracle:{97:{address:"0xFf2394Bb843012562f4349C6632a0EcB92fC8810"}},portal:{97:{address:"0x4386C8ABf2009aC0c263462Da568DD9d46e52a31"}},l1StandardBridge:{97:{address:"0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840"}}},testnet:!0,sourceId:97}),US=iv({id:1612,name:"OpenLedger",nativeCurrency:{name:"Open",symbol:"OPEN",decimals:18},rpcUrls:{default:{http:["https://rpc.openledger.xyz"]}},blockExplorers:{default:{name:"OpenLedger Explorer",url:"https://scan.openledger.xyz"}},testnet:!1}),UA=iv({...xK,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...xK.contracts,disputeGameFactory:{1:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{1:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{1:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{1:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:1}),UP=iv({...xK,id:420,name:"Optimism Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.optimism.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io",apiUrl:"https://goerli-optimism.etherscan.io/api"}},contracts:{...xK.contracts,l2OutputOracle:{5:{address:"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461},portal:{5:{address:"0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383"}},l1StandardBridge:{5:{address:"0x636Af16bf2f682dD3109e60102b8E1A089FedAa8"}}},testnet:!0,sourceId:5}),UD=iv({...xK,id:0xaa37dc,name:"OP Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol
2051:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.optimism.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com",apiUrl:"https://optimism-sepolia.blockscout.com/api"}},contracts:{...xK.contracts,disputeGameFactory:{0xaa36a7:{address:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"}},l2OutputOracle:{0xaa36a7:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{0xaa36a7:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{0xaa36a7:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:0xaa36a7}),UL=iv({id:62050,name:"Optopia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.optopia.ai"]}},blockExplorers:{default:{name:"Optopia Explorer",url:"https://scan.optopia.ai"}},testnet:!1}),UO=iv({id:62049,name:"Optopia Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.optopia.ai"]}},blockExplorers:{default:{name:"Optopia Explorer",url:"https://scan-testnet.optopia.ai"}},testnet:!0}),UF=iv({id:291,name:"Orderly",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.orderly.network"]}},blockExplorers:{default:{name:"Orderly Explorer",url:"https://explorer.orderly.network"}},testnet:!1}),U_=iv({id:4460,name:"Orderly Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://l2-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz"]}},blockExplorers:{default:{name:"Orderly Explorer",url:"https://explorerl2new-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz"}},testnet:!0}),UM=iv({id:0x273cf32,name:"Otim Devnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["http://devnet.otim.xyz"]}},contracts:{batchInvoker:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3"}},testnet:!0}),Uj=iv({id:0x2a15c308d,name:"Palm",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xeb6e80}}}),U$=iv({id:0x2a15c3083,name:"Palm Testnet",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xeb6e80}},testnet:!0}),UW=iv({id:0x190f1b46,name:"Paseo PassetHub",nativeCurrency:{name:"PAS",symbol:"PAS",decimals:18},rpcUrls:{default:{http:["https://testnet-passet-hub-eth-rpc.polkadot.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout-passet-hub.parity-testnet.parity.io"}},testnet:!0}),Uz=iv({id:3338,name:"Peaq",nativeCurrency:{decimals:18,name:"peaq",symbol
2051:"PEAQ"},rpcUrls:{default:{http:["https://quicknode1.peaq.xyz","https://quicknode2.peaq.xyz","https://quicknode3.peaq.xyz"],webSocket:["wss://quicknode1.peaq.xyz","wss://quicknode2.peaq.xyz","wss://quicknode3.peaq.xyz"]}},blockExplorers:{default:{name:"Subscan",url:"https://peaq.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3566354}}}),UV=iv({id:424,network:"pgn",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Explorer",url:"https://explorer.publicgoods.network",apiUrl:"https://explorer.publicgoods.network/api"}},contracts:{l2OutputOracle:{1:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3380209},portal:{1:{address:"0xb26Fd985c5959bBB382BAFdD0b879E149e48116c"}},l1StandardBridge:{1:{address:"0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b"}}},formatters:xq,sourceId:1}),UH=iv({id:58008,network:"pgn-testnet",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network",apiUrl:"https://explorer.sepolia.publicgoods.network/api"}},contracts:{l2OutputOracle:{0xaa36a7:{address:"0xD5bAc3152ffC25318F848B3DD5dA6C85171BaEEe"}},portal:{0xaa36a7:{address:"0xF04BdD5353Bb0EFF6CA60CfcC78594278eBfE179"}},l1StandardBridge:{0xaa36a7:{address:"0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3754925}},formatters:xq,sourceId:0xaa36a7,testnet:!0}),Uq=iv({id:13381,name:"Phoenix Blockchain",nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},rpcUrls:{default:{http:["https://rpc.phoenixplorer.com"]}},blockExplorers:{default:{name:"Phoenixplorer",url:"https://phoenixplorer.com",apiUrl:"https://phoenixplorer.com/api"}},contracts:{multicall3:{address:"0x498cF757a575cFF2c2Ed9f532f56Efa797f86442",blockCreated:5620192}}}),UG=iv({id:7070,name:"Planq Mainnet",nativeCurrency:{decimals:18,name:"PLQ",symbol:"PLQ"},rpcUrls:{default:{http:["https://planq-rpc.nodies.app","https://evm-rpc.planq.network","https://jsonrpc.planq.nodestake.top"]}},blockExplorers:{default:{name:"Planq Explorer",url:"https://evm.planq.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8470015}},testnet:!1}),UK=iv({id:9745,name:"Plasma",blockTime:1e3,nativeCurrency:{name:"Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://rpc.plasma.to"]}},blockExplorers:{default:{name:"PlasmaScan",url:"https://plasmascan.to"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),UJ=iv({id:9747,name:"Plasma Devnet",nativeCurrency:{name:"Devnet Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://devnet-rpc.plasma.to"]}},testnet:!0,contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),UZ=iv({id:9746,name:"Plasma Testnet",nativeCurrency:{name:"Testnet Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plasma.to"]}},blockExplorers:{default:{name:"RouteScan",url:"https://testnet.plasmascan.to"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0}),UQ=iv({...xS,id:1612127,name:"PlayFi Albireo Testnet",network:"albireo",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://albireo-rpc.playfi.ai"],webSocket:["wss://albireo-rpc-ws.playfi.ai/ws"]}},blockExplorers:{default:{name:"PlayFi Albireo Explorer",url:"https://albireo-explorer.playfi.ai"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0}),UX=iv({id:242,name:"Plinga",nativeCurrency:{name:"Plinga",symbol:"PLINGA",decimals:18},rpcUrls:{default:{http:["https://rpcurl.mainnet.plgchain.com"]}},blockExplorers:{default:{name:"Plgscan",url:"https://www.plgscan.com"}},contracts:{multicall3:{address:"0x0989576160f2e7092908BB9479631b901060b6e4",blockCreated:204489}}}),UY=iv({id:98865,name:"Plume (Legacy)",nativeCurrency:{name:"Plume Ether",symbol
vendor: 6,469 bytes, line 2051
2051:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.plumenetwork.xyz"],webSocket:["wss://rpc.plumenetwork.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.plumenetwork.xyz",apiUrl:"https://explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:48577}},sourceId:1}),U0=iv({id:98864,name:"Plume Devnet (Legacy)",nativeCurrency:{name:"Plume Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://test-rpc.plumenetwork.xyz"],webSocket:["wss://test-rpc.plumenetwork.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://test-explorer.plumenetwork.xyz",apiUrl:"https://test-explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:481948}},testnet:!0,sourceId:0xaa36a7}),U1=iv({id:98866,name:"Plume",nativeCurrency:{name:"Plume",symbol:"PLUME",decimals:18},rpcUrls:{default:{http:["https://rpc.plume.org"],webSocket:["wss://rpc.plume.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.plume.org",apiUrl:"https://explorer.plume.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:39679}},sourceId:1}),U2=iv({id:98867,name:"Plume Testnet",nativeCurrency:{name:"Plume",symbol:"PLUME",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plume.org"],webSocket:["wss://testnet-rpc.plume.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.plume.org",apiUrl:"https://testnet-explorer.plume.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:199712}},testnet:!0,sourceId:0xaa36a7}),U3=iv({id:0x99c0a0f,name:"Plume Testnet (Legacy)",nativeCurrency:{name:"Plume Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plumenetwork.xyz/http"],webSocket:["wss://testnet-rpc.plumenetwork.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.plumenetwork.xyz",apiUrl:"https://testnet-explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6022332}},testnet:!0,sourceId:0xaa36a7}),U6=iv({id:631571,name:"Polter Testnet",nativeCurrency:{decimals:18,name:"Polter GHST",symbol:"GHST"},rpcUrls:{default:{http:["https://geist-polter.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://polter-testnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11245}},testnet:!0}),U8=iv({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon.drpc.org"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x18938b0}}}),U7=iv({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://amoy.polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0}),U4=iv({id:80001,name:"Polygon Mumbai",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://80001.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com",apiUrl:"https://api-testnet.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x18938b0}},testnet:!0}),U5=iv({id:1101,name:"Polygon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com",apiUrl:"https://api-zkevm.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}}),U9=iv({id:2442,name:"Polygon zkEVM Cardona",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.cardona.zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://cardona-zkevm.polygonscan.com",apiUrl:"https://cardona-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:114091}}}),Ie=iv({id:1442,name:"Polygon zkEVM Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com",apiUrl:"https://testnet-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}}),It=iv({id:8008,name:"Polynomial",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.polynomial.fi"]}},blockExplorers:{default:{name:"Polynomial Scan",url:"https://polynomialscan.io"}},testnet:!1,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),Ir=iv({id:80008,name:"Polynomia Sepolia",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.sepolia.polynomial.fi"]}},blockExplorers:{default:{name:"Polynomial Scan",url:"https://sepolia.polynomialscan.io"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),Ia=iv({id:60603,name:"POTOS Mainnet",nativeCurrency:{decimals:18,name:"POTOS Token",symbol:"POT"},rpcUrls:{default:{http:["https://rpc.potos.hk"]}},blockExplorers:{default:{name:"POTOS Mainnet explorer",url:"https://scan.potos.hk"}},testnet:!1}),In=iv({id:60600,name:"POTOS Testnet",nativeCurrency:{decimals:18,name:"POTOS Token",symbol:"POT"},rpcUrls:{default:{http:["https://rpc-testnet.potos.hk"]}},blockExplorers:{default:{name:"POTOS Testnet explorer",url:"https://scan-testnet.potos.hk"}},testnet:!0}),Ii=iv({id:23023,name:"PremiumBlock Testnet",nativeCurrency:{name:"Premium Block",symbol:"PBLK",decimals:18},rpcUrls:{default:{http:["https://rpc.premiumblock.org"]}},blockExplorers:{default:{name:"PremiumBlocks Explorer",url:"https://scan.premiumblock.org"}},testnet:!0}),Io=iv({id:369,name:"PulseChain",nativeCurrency:{name:"Pulse",symbol
2051:"PLS",decimals:18},testnet:!1,blockTime:1e4,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://ipfs.scan.pulsechain.com",apiUrl:"https://api.scan.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xdb04c1}}}),Is=iv({id:943,name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},blockTime:1e4,rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com",apiUrl:"https://scan.v4.testnet.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xdb04c1}}}),Il=iv({id:490092,name:"Pumpfi Testnet",nativeCurrency:{decimals:18,name:"PMPT",symbol:"PMPT"},rpcUrls:{default:{http:["https://rpc1testnet.pumpfi.me"]}},blockExplorers:{default:{name:"Pumpfi Testnet Scan",url:"https://testnetscan.pumpfi.me"}},testnet:!0}),Ic=iv({...xK,name:"Pyrope Testnet",testnet:!0,id:695569,sourceId:0xaa36a7,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.pyropechain.com"],webSocket:["wss://rpc.pyropechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://pyrope.blockscout.com"}},contracts:{...xK.contracts,l1StandardBridge:{0xaa36a7:{address:"0xC24932c31D9621aE9e792576152B7ef010cFC2F8"}}}}),Id=iv({id:766,name:"QL1",nativeCurrency:{decimals:18,name:"QOM",symbol:"QOM"},rpcUrls:{default:{http:["https://rpc.qom.one"]}},blockExplorers:{default:{name:"Ql1 Explorer",url:"https://scan.qom.one"}},contracts:{multicall3:{address:"0x7A52370716ea730585884F5BDB0f6E60C39b8C64"}},testnet:!1}),Ip=iv({id:35441,name:"Q Mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org",apiUrl:"https://explorer.q.org/api"}}}),Iu=iv({id:35443,name:"Q Testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org",apiUrl:"https://explorer.qtestnet.org/api"}},testnet:!0}),Im=iv({id:9,name:"Quai Network Mainnet",nativeCurrency:{decimals:18,name:"Quai",symbol:"QUAI"},rpcUrls:{default:{http:["https://rpc.quai.network/cyprus1"]}},blockExplorers:{default:{name:"Quaiscan",url:"https://quaiscan.io",apiUrl:"https://quaiscan.io/api"}},testnet:!1}),Ih=iv({id:15e3,name:"Quai Network Testnet",nativeCurrency:{decimals:18,name:"Quai",symbol:"QUAI"},rpcUrls:{default:{http:["https://orchard.rpc.quai.network/cyprus1"]}},blockExplorers:{default:{name:"Orchard Quaiscan",url:"https://orchard.quaiscan.io",apiUrl:"https://orchard.quaiscan.io/api"}},testnet:!0}),Ig=iv({id:723487,name:"Radius Network",nativeCurrency:{name:"Radius USD",symbol:"RUSD",decimals:18},rpcUrls:{default:{http:["https://rpc.radiustech.xyz"]}},blockExplorers:{default:{name:"Radius Network Explorer",url:"https://network.radiustech.xyz"}},testnet:!1}),If=iv({id:72344,name:"Radius Test Network",nativeCurrency:{name:"Radius USD",symbol:"RUSD",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.radiustech.xyz"]}},blockExplorers:{default:{name:"Radius Test Network Explorer",url:"https://testnet.radiustech.xyz"}},testnet:!0}),Ib=iv({id:5318007,name:"Reactive Lasna Testnet",nativeCurrency:{decimals:18,name:"Lasna React",symbol:"lREACT"},rpcUrls:{default:{http:["https://lasna-rpc.rnk.dev"]}},blockExplorers:{default:{name:"Reactscan",url:"https://lasna.reactscan.net"}},testnet:!0}),Iy=iv({id:111188,name:"re.al",nativeCurrency:{name:"reETH",decimals:18,symbol:"reETH"},rpcUrls:{default:{http:["https://rpc.realforreal.gelato.digital"]}},blockExplorers:{default:{name:"re.al Explorer",url:"https://explorer.re.al",apiUrl:"https://explorer.re.al/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:695}}}),Ik=iv({id:151,name:"Redbelly Network Mainnet",nativeCurrency:{name:"Redbelly Native Coin",symbol:"RBNT",decimals:18},rpcUrls:{default:{http:["https://governors.mainnet.redbelly.network"]}},blockExplorers:{default:{name:"Routescan",url:"https://redbelly.routescan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/151/etherscan/api"}},testnet:!1}
2051),Ix=iv({id:153,name:"Redbelly Network Testnet",nativeCurrency:{name:"Redbelly Native Coin",symbol:"RBNT",decimals:18},rpcUrls:{default:{http:["https://governors.testnet.redbelly.network"]}},blockExplorers:{default:{name:"Routescan",url:"https://redbelly.testnet.routescan.io",apiUrl:"https://api.routescan.io/v2/network/testnet/evm/153_2/etherscan/api"}},testnet:!0}),Iw=iv({id:50342,name:"Reddio",nativeCurrency:{name:"Reddio",symbol:"RED",decimals:18},rpcUrls:{default:{http:["https://mainnet.reddio.com/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://reddio.cloud.blockscout.com",apiUrl:"https://reddio.cloud.blockscout.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:848849}},testnet:!1}),Iv=iv({id:50341,name:"Reddio Sepolia",nativeCurrency:{name:"Reddio",symbol:"RED",decimals:18},rpcUrls:{default:{http:["https://reddio-dev.reddio.com"]}},blockExplorers:{default:{name:"Reddioscan",url:"https://reddio-devnet.l2scan.co",apiUrl:"https://reddio-devnet.l2scan.co/api"}},testnet:!0}),IT=iv({...xK,name:"Redstone",id:690,sourceId:1,nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.redstonechain.com"],webSocket:["wss://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz"}},contracts:{...xK.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{1:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:0x12abdd9}},l2OutputOracle:{1:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:0x12abde1}},l1StandardBridge:{1:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:0x12abddb}}}}),IE=iv({id:47805,name:"REI Mainnet",nativeCurrency:{decimals:18,name:"REI",symbol:"REI"},rpcUrls:{default:{http:["https://rpc.rei.network"],webSocket:["wss://rpc.rei.network"]}},blockExplorers:{default:{name:"REI Scan",url:"https://scan.rei.network"}},testnet:!1}),IB=iv({id:1729,name:"Reya Network",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.reya.network"],webSocket:["wss://ws.reya.network"]}},blockExplorers:{default:{name:"Reya Network Explorer",url:"https://explorer.reya.network"}},testnet:!1}),IC=iv({id:4153,name:"RISE",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.risechain.com"],webSocket:["wss://rpc.risechain.com/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.risechain.com",apiUrl:"https://explorer.risechain.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),IU=iv({id:0xaa39db,name:"RISE Testnet",nativeCurrency:{name:"RISE Testnet Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.riselabs.xyz"],webSocket:["wss://testnet.riselabs.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.testnet.riselabs.xyz/",apiUrl:"https://explorer.testnet.riselabs.xyz/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},testnet:!0}),II=iv({id:753,name:"Rivalz",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rivalz.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Rivalz Caldera Explorer",url:"https://rivalz.calderaexplorer.xyz"}},testnet:!1}),IN=iv({id:570,name:"Rollux Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com",apiUrl:"https://explorer.rollux.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}}),IR=iv({id:57e3,name:"Rollux Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io",apiUrl:"https://rollux.tanenbaum.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}},testnet:!0}),IS=iv({id:2020,name:"Ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x18d166f}}}),IA=iv({id:7668,name:"The Root Network",nativeCurrency:{decimals:18,name:"XRP",symbol
2051:"XRP"},rpcUrls:{default:{http:["https://root.rootnet.live/archive"],webSocket:["wss://root.rootnet.live/archive/ws"]}},blockExplorers:{default:{name:"Rootscan",url:"https://rootscan.io"}},contracts:{multicall3:{address:"0xc9C2E2429AeC354916c476B30d729deDdC94988d",blockCreated:9218338}}}),IP=iv({id:7672,name:"The Root Network - Porcini",nativeCurrency:{decimals:18,name:"XRP",symbol:"XRP"},rpcUrls:{default:{http:["https://porcini.rootnet.app/archive"],webSocket:["wss://porcini.rootnet.app/archive/ws"]}},blockExplorers:{default:{name:"Rootscan",url:"https://porcini.rootscan.io"}},contracts:{multicall3:{address:"0xc9C2E2429AeC354916c476B30d729deDdC94988d",blockCreated:0xa1112c}},testnet:!0}),ID=iv({id:30,name:"Rootstock Mainnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"RBTC"},rpcUrls:{default:{http:["https://public-node.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.rsk.co"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4249540}}}),IL=iv({id:31,name:"Rootstock Testnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"tRBTC"},rpcUrls:{default:{http:["https://public-node.testnet.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.testnet.rootstock.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2771150}},testnet:!0}),IO=iv({...xK,id:12553,name:"RSS3 VSL Mainnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Mainnet Scan",url:"https://scan.rss3.io",apiUrl:"https://scan.rss3.io/api"}},contracts:{...xK.contracts,l2OutputOracle:{1:{address:"0xE6f24d2C32B3109B18ed33cF08eFb490b1e09C10"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14193},portal:{1:{address:"0x6A12432491bbbE8d3babf75F759766774C778Db4",blockCreated:0x127d2b1}},l1StandardBridge:{1:{address:"0x4cbab69108Aa72151EDa5A3c164eA86845f18438"}}},sourceId:1}),IF=iv({...xK,id:2331,name:"RSS3 VSL Sepolia Testnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Sepolia Testnet Scan",url:"https://scan.testnet.rss3.io",apiUrl:"https://scan.testnet.rss3.io/api"}},contracts:{...xK.contracts,l2OutputOracle:{0xaa36a7:{address:"0xDb5c46C3Eaa6Ed6aE8b2379785DF7dd029C0dC81"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:55697},portal:{0xaa36a7:{address:"0xcBD77E8E1E7F06B25baDe67142cdE82652Da7b57",blockCreated:5345035}},l1StandardBridge:{0xaa36a7:{address:"0xdDD29bb63B0839FB1cE0eE439Ff027738595D07B"}}},testnet:!0,sourceId:0xaa36a7}),I_=iv({id:7225878,name:"Saakuru Mainnet",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.saakuru.network"]}},blockExplorers:{default:{name:"Saakuru Explorer",url:"https://explorer.saakuru.network"}},testnet:!1}),IM=iv({id:5464,name:"Saga",network:"saga",nativeCurrency:{decimals:18,name:"gas",symbol:"GAS"},rpcUrls:{default:{http:["https://sagaevm.jsonrpc.sagarpc.io"]}},blockExplorers:{default:{name:"Saga Explorer",url:"https://sagaevm.sagaexplorer.io"}},contracts:{multicall3:{address:"0x864DDc9B50B9A0dF676d826c9B9EDe9F8913a160",blockCreated:467530}}}),Ij=iv({id:202601,name:"Ronin Saigon Testnet",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-explorer.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x11de6e7}},testnet:!0}),I$=iv({id:1996,name:"Sanko",nativeCurrency:{name:"DMT",symbol:"DMT",decimals:18},rpcUrls:{default:{http:["https://mainnet.sanko.xyz"]}},blockExplorers:{default:{name:"Sanko Explorer",url:"https://explorer.sanko.xyz"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:37}},testnet:!1}),IW=iv({id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{name:"Sapphire Rose",symbol
vendor: 4,517 bytes, line 2051
2051:"ROSE",decimals:18},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/mainnet/sapphire"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}}),Iz=iv({id:23295,name:"Oasis Sapphire Testnet",network:"sapphire-testnet",nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/testnet/sapphire"}},testnet:!0}),IV=iv({id:3109,name:"SatoshiVM Alpha Mainnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc-node-http.svmscan.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://svmscan.io",apiUrl:"https://svmscan.io/api"}}}),IH=iv({id:3110,name:"SatoshiVM Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://test-rpc-node-http.svmscan.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet.svmscan.io",apiUrl:"https://testnet.svmscan.io/api"}},testnet:!0}),Iq=iv({id:534352,name:"Scroll",blockTime:3e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com",apiUrl:"https://api.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1}),IG=iv({id:534351,name:"Scroll Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://sepolia.scrollscan.com",apiUrl:"https://api-sepolia.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9473}},testnet:!0}),IK=iv({id:1329,name:"Sei Network",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc.sei-apis.com/"],webSocket:["wss://evm-ws.sei-apis.com/"]}},blockExplorers:{default:{name:"Seiscan",url:"https://seiscan.io",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}}}),IJ=iv({id:5124,name:"Seismic Devnet",nativeCurrency:{name:"Seismic Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://node-2.seismicdev.net/rpc"]}},blockExplorers:{default:{name:"Seismic Devnet Explorer",url:"https://explorer-2.seismicdev.net"}},testnet:!0}),IZ=iv({id:1328,name:"Sei Testnet",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc-testnet.sei-apis.com"],webSocket:["wss://evm-ws-testnet.sei-apis.com"]}},blockExplorers:{default:{name:"Seiscan",url:"https://testnet.seiscan.io",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0x5e201b3}},testnet:!0}),IQ=iv({id:7119,name:"Sentrix Chain",nativeCurrency:{name:"Sentrix",symbol:"SRX",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://rpc.sentrixchain.com"],webSocket:["wss://rpc.sentrixchain.com/ws"]}},blockExplorers:{default:{name:"SentrixScan",url:"https://scan.sentrixchain.com"}},contracts:{multicall3:{address:"0xFd4b34b5763f54a580a0d9f7997A2A993ef9ceE9",blockCreated:717078}}}),IX=iv({id:7120,name:"Sentrix Testnet",nativeCurrency:{name:"Sentrix",symbol:"SRX",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://testnet-rpc.sentrixchain.com"],webSocket:["wss://testnet-rpc.sentrixchain.com/ws"]}},blockExplorers:{default:{name:"SentrixScan Testnet",url:"https://scan-testnet.sentrixchain.com"}},contracts:{multicall3:{address:"0x7900826De548425c6BE56caEbD4760AB0155Cd54",blockCreated:723191}},testnet:!0}),IY=iv({id:0xaa36a7,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0}),I0=iv({...xK,id:360,name:"Shape",nativeCurrency:{name:"Ether",symbol
2051:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.shape.network"]}},blockExplorers:{default:{name:"shapescan",url:"https://shapescan.xyz",apiUrl:"https://shapescan.xyz/api"}},contracts:{...xK.contracts,l2OutputOracle:{1:{address:"0x6Ef8c69CfE4635d866e3E02732068022c06e724D",blockCreated:0x136d214}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1},portal:{1:{address:"0xEB06fFa16011B5628BaB98E29776361c83741dd3",blockCreated:0x136d20d}},l1StandardBridge:{1:{address:"0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B",blockCreated:0x136d20f}}},sourceId:1}),I1=iv({...xK,id:11011,name:"Shape Sepolia Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.shape.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer-sepolia.shape.network/",apiUrl:"https://explorer-sepolia.shape.network/api/v2"}},contracts:{...xK.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1}},testnet:!0,sourceId:0xaa36a7}),I2=iv({id:8118,name:"Shardeum",nativeCurrency:{name:"Shardeum",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://api.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer.shardeum.org"}},testnet:!1}),I3=iv({id:8082,name:"Shardeum Sphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0}),I6=iv({id:109,name:"Shibarium",network:"shibarium",nativeCurrency:{name:"Bone",symbol:"BONE",decimals:18},rpcUrls:{default:{http:["https://rpc.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://shibariumscan.io"}},contracts:{multicall3:{address:"0x864Bf681ADD6052395188A89101A1B37d3B4C961",blockCreated:265900}}}),I8=iv({id:157,name:"Puppynet Shibarium",nativeCurrency:{decimals:18,name:"Bone",symbol:"BONE"},rpcUrls:{default:{http:["https://puppynet.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://puppyscan.shib.io",apiUrl:"https://puppyscan.shib.io/api"}},contracts:{multicall3:{address:"0xA4029b74FBA366c926eDFA7Dd10B21C621170a4c",blockCreated:3035769}},testnet:!0}),I7=iv({id:336,name:"Shiden",nativeCurrency:{decimals:18,name:"SDN",symbol:"SDN"},rpcUrls:{default:{http:["https://shiden.public.blastapi.io"],webSocket:["wss://shiden-rpc.dwellir.com"]}},blockExplorers:{default:{name:"Shiden Scan",url:"https://shiden.subscan.io"}},testnet:!1}),I4=iv({id:148,name:"Shimmer",network:"shimmer",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.shimmer.network",apiUrl:"https://explorer.evm.shimmer.network/api"}}}),I5=iv({id:1073,name:"Shimmer Testnet",network:"shimmer-testnet",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.testnet.shimmer.network",apiUrl:"https://explorer.evm.testnet.shimmer.network/api"}},testnet:!0}),I9=iv({id:97453,name:"Sidra Chain",nativeCurrency:{decimals:18,name:"Sidra Digital Asset",symbol:"SDA"},rpcUrls:{default:{http:["https://node.sidrachain.com"]}},blockExplorers:{default:{name:"Sidra Chain Explorer",url:"https://ledger.sidrachain.com"}}}),Ne=iv({id:380929,name:"Silent Data Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.silentdata.com"]}},blockExplorers:{default:{name:"Silent Data Mainnet Explorer",url:"https://explorer-mainnet.rollup.silentdata.com"}},testnet:!1}),Nt=iv({id:2355,name:"Silicon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.silicon.network","https://silicon-mainnet.nodeinfra.com"]}},blockExplorers:{default:{name:"SiliconScope",url:"https://scope.silicon.network"}}}
vendor: 4,945 bytes, line 2051
2051),Nr=iv({id:0x66ad6b08,name:"Silicon Sepolia zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-sepolia.silicon.network","https://silicon-testnet.nodeinfra.com"]}},blockExplorers:{default:{name:"SiliconSepoliaScope",url:"https://scope-sepolia.silicon.network"}},testnet:!0}),Na=iv({id:98,name:"Six Protocol",nativeCurrency:{decimals:18,name:"SIX",symbol:"SIX"},rpcUrls:{default:{http:["https://sixnet-rpc-evm.sixprotocol.net"]}},blockExplorers:{default:{name:"Six Protocol Scan",url:"https://sixscan.io/sixnet"}},testnet:!1}),Nn=iv({id:0x175b1806,name:"SKALE | Block Brawlers",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}}),Ni=iv({id:0x5d456c62,name:"SKALE Calypso Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}}),No=iv({id:0x3a14269b,name:"SKALE Calypso Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/giant-half-dual-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/giant-half-dual-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://giant-half-dual-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:103220}},testnet:!0}),Ns=iv({id:0x3d28774d,name:"SKALE | CryptoBlades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}}),Nl=iv({id:0x3d91725c,name:"SKALE | Crypto Colosseum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}}),Nc=iv({id:0x79f99296,name:"SKALE Europa Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}}),Nd=iv({id:0x561bf78b,name:"SKALE Europa Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/juicy-low-small-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/juicy-low-small-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://juicy-low-small-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:110858}},testnet:!0}),Np=iv({id:0x7f8cb400,name:"Exorde Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}}),Nu=iv({id:0x4be3e8bd,name:"SKALE | Human Protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}}),Nm=iv({id:0x585eb4b1,name:"SKALE Nebula Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}}
2051),Nh=iv({id:0x235ddd0,name:"SKALE Nebula Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/lanky-ill-funny-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/lanky-ill-funny-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://lanky-ill-funny-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:105141}},testnet:!0}),Ng=iv({id:0x109b4597,name:"SKALE | Razor Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}}),Nf=iv({id:0x46cea59d,name:"SKALE Base",nativeCurrency:{name:"Credits",symbol:"CREDIT",decimals:18},rpcUrls:{default:{http:["https://skale-base.skalenodes.com/v1/base"],webSocket:["wss://skale-base.skalenodes.com/v1/ws/base"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://skale-base-explorer.skalenodes.com/"}},testnet:!0}),Nb=iv({id:0x135a9d92,name:"SKALE Base Sepolia Testnet",nativeCurrency:{name:"Credits",symbol:"CREDIT",decimals:18},rpcUrls:{default:{http:["https://base-sepolia-testnet.skalenodes.com/v1/base-testnet"],webSocket:["wss://base-sepolia-testnet.skalenodes.com/v1/ws/base-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://base-sepolia-testnet-explorer.skalenodes.com/"}},testnet:!0}),Ny=iv({id:0x507aaa2a,name:"SKALE Titan Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}}),Nk=iv({id:0x3cd156dc,name:"SKALE Titan Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/aware-fake-trim-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/aware-fake-trim-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://aware-fake-trim-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:104072}},testnet:!0}),Nx=iv({id:984123,name:"Forma Sketchpad",network:"sketchpad",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.sketchpad-1.forma.art"],webSocket:["wss://ws.sketchpad-1.forma.art"]}},blockExplorers:{default:{name:"Sketchpad Explorer",url:"https://explorer.sketchpad-1.forma.art"}},testnet:!0}),Nw=iv({...xK,id:2192,network:"snaxchain-mainnet",name:"SnaxChain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.snaxchain.io"]}},blockExplorers:{default:{name:"Snax Explorer",url:"https://explorer.snaxchain.io",apiUrl:"https://explorer.snaxchain.io/api"}},contracts:{...xK.contracts,disputeGameFactory:{1:{address:"0x472562Fcf26D6b2793f8E0b0fB660ba0E5e08A46"}},l2OutputOracle:{1:{address:"0x2172e492Fc807F5d5645D0E3543f139ECF539294"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{1:{address:"0x79f446D024d74D0Bb6E699C131c703463c5D65E9"}},l1StandardBridge:{1:{address:"0x6534Bdb6b5c060d3e6aa833433333135eFE8E0aA"}}},sourceId:1}),Nv=iv({...xK,id:13001,network:"snaxchain-testnet",name:"SnaxChain Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.snaxchain.io"]}},blockExplorers:{default:{name:"Snax Explorer",url:"https://testnet-explorer.snaxchain.io",apiUrl:"https://testnet-explorer.snaxchain.io/api"}},contracts:{...xK.contracts,disputeGameFactory:{0xaa36a7:{address:"0x206a75d89d45F146C54020F132FF93bEDD09f55E"}},l2OutputOracle:{0xaa36a7:{address:"0x60e3A368a4cdCEf85ffB964e372726F56A46221e"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{0xaa36a7:{address:"0xb5afdd0E8dDF081Ef90e8A3e0c7b5798e66E954E"}},l1StandardBridge:{0xaa36a7:{address:"0xbd37E1a59D4C00C9A46F75018dffd84061b
2051C5f74"}}},testnet:!0,sourceId:0xaa36a7}),NT=iv({id:5031,name:"Somnia",nativeCurrency:{name:"Somnia",symbol:"SOMI",decimals:18},rpcUrls:{default:{http:["https://api.infra.mainnet.somnia.network"]}},blockExplorers:{default:{name:"Somnia Explorer",url:"https://explorer.somnia.network",apiUrl:"https://explorer.somnia.network/api"}},testnet:!1}),NE=iv({id:50312,name:"Somnia Testnet",nativeCurrency:{name:"STT",symbol:"STT",decimals:18},rpcUrls:{default:{http:["https://dream-rpc.somnia.network"]}},blockExplorers:{default:{name:"Somnia Testnet Explorer",url:"https://shannon-explorer.somnia.network/",apiUrl:"https://shannon-explorer.somnia.network/api"}},contracts:{multicall3:{address:"0x841b8199E6d3Db3C6f264f6C2bd8848b3cA64223",blockCreated:0x4402b3b}},testnet:!0}),NB=iv({...xK,id:1868,name:"Soneium Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium.blockscout.com",apiUrl:"https://soneium.blockscout.com/api"}},contracts:{...xK.contracts,disputeGameFactory:{1:{address:"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"}},l2OutputOracle:{1:{address:"0x0000000000000000000000000000000000000000"}},portal:{1:{address:"0x88e529a6ccd302c948689cd5156c83d4614fae92",blockCreated:7061266}},l1StandardBridge:{1:{address:"0xeb9bf100225c214efc3e7c651ebbadcf85177607",blockCreated:7061266}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},sourceId:1}),NC=iv({...xK,id:1946,name:"Soneium Minato Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.minato.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium-minato.blockscout.com",apiUrl:"https://soneium-minato.blockscout.com/api"}},contracts:{...xK.contracts,disputeGameFactory:{0xaa36a7:{address:"0xB3Ad2c38E6e0640d7ce6aA952AB3A60E81bf7a01"}},l2OutputOracle:{0xaa36a7:{address:"0x710e5286C746eC38beeB7538d0146f60D27be343"}},portal:{0xaa36a7:{address:"0x65ea1489741A5D72fFdD8e6485B216bBdcC15Af3",blockCreated:6466136}},l1StandardBridge:{0xaa36a7:{address:"0x5f5a404A5edabcDD80DB05E8e54A78c9EBF000C2",blockCreated:6466136}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},testnet:!0,sourceId:0xaa36a7}),NU=iv({id:19,name:"Songbird Canary-Network",nativeCurrency:{decimals:18,name:"Songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network",apiUrl:"https://songbird-explorer.flare.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0xcc3368}}}),NI=iv({id:16,name:"Songbird Testnet Coston",nativeCurrency:{decimals:18,name:"Coston Flare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network",apiUrl:"https://coston-explorer.flare.network/api"}},testnet:!0}),NN=iv({id:146,name:"Sonic",blockTime:630,nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Explorer",url:"https://sonicscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:60}},testnet:!1}),NR=iv({id:57054,name:"Sonic Blaze Testnet",nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.blaze.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Blaze Testnet Explorer",url:"https://testnet.sonicscan.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1100}},testnet:!0}),NS=iv({id:64165,name:"Sonic Testnet",nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.testnet.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Testnet Explorer",url:"https://testnet.soniclabs.com/"}},testnet:!0}),NA=iv({...xS,blockTime:200,id:50104,name:"Sophon",nativeCurrency:{decimals:18,name:"Sophon",symbol:"SOPH"},rpcUrls:{default:{http:["https://rpc.sophon.xyz"],webSocket:["wss://rpc.sophon.xyz/ws"]}},blockExplorers:{default:{name:"Sophon Block Explorer",url:"https://explorer.sophon.xyz"}},contracts:{multicall3:{address:"0x5f4867441d2416cA88B1b3fd38f21811680CD2C8",blockCreated:116}},testnet:!1}),NP=iv({...xS,blockTime:200,id:0x1fa72e78,name:"Sophon Testnet",n
vendor: 4,149 bytes, line 2051
2051ativeCurrency:{decimals:18,name:"Sophon",symbol:"SOPH"},rpcUrls:{default:{http:["https://rpc.testnet.sophon.xyz"],webSocket:["wss://rpc.testnet.sophon.xyz/ws"]}},blockExplorers:{default:{name:"Sophon Block Explorer",url:"https://explorer.testnet.sophon.xyz"}},contracts:{multicall3:{address:"0x83c04d112adedA2C6D9037bb6ecb42E7f0b108Af",blockCreated:15642}},testnet:!0}),ND=iv({id:100021,name:"Sova",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.sova.io"]}},blockExplorers:{default:{name:"Sova Block Explorer",url:"https://explorer.sova.io"}},testnet:!1}),NL=iv({id:120893,name:"Sova Network Sepolia",nativeCurrency:{decimals:18,name:"Sepolia Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.testnet.sova.io"]}},blockExplorers:{default:{name:"Sova Sepolia Explorer",url:"https://explorer.testnet.sova.io"}},testnet:!0}),NO=iv({id:88882,name:"Chiliz Spicy Testnet",network:"chiliz-spicy-Testnet",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy-rpc.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"http://spicy-explorer.chiliz.com",apiUrl:"http://spicy-explorer.chiliz.com/api"}},testnet:!0}),NF=iv({id:988,name:"Stable Mainnet",blockTime:700,nativeCurrency:{name:"USDT0",symbol:"USDT0",decimals:18},rpcUrls:{default:{http:["https://rpc.stable.xyz"],webSocket:["wss://rpc.stable.xyz"]}},blockExplorers:{default:{name:"Stablescan",url:"https://stablescan.xyz",apiUrl:"https://api.etherscan.io/v2/api?chainid=988"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2423647}},testnet:!1}),N_=iv({id:2201,name:"Stable Testnet",blockTime:700,nativeCurrency:{name:"USDT0",symbol:"USDT0",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.stable.xyz"],webSocket:["wss://rpc.testnet.stable.xyz"]}},blockExplorers:{default:{name:"Stablescan",url:"https://testnet.stablescan.xyz",apiUrl:"https://api.etherscan.io/v2/api?chainid=2201"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0x155410e}},testnet:!0}),NM=iv({...Ce,id:0x6300b5ea,name:"Status Network Sepolia",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://public.sepolia.rpc.status.network"],webSocket:["wss://public.sepolia.rpc.status.network/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepoliascan.status.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1578364}},testnet:!0}),Nj=iv({id:1234,name:"Step Network",nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},rpcUrls:{default:{http:["https://rpc.step.network"]}},blockExplorers:{default:{name:"Step Scan",url:"https://stepscan.io"}},testnet:!1}),N$=iv({id:1514,name:"Story",nativeCurrency:{decimals:18,name:"IP Token",symbol:"IP"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:340998},ensRegistry:{address:"0x5dc881dda4e4a8d312be3544ad13118d1a04cb17",blockCreated:648924},ensUniversalResolver:{address:"0xddfb18888a9466688235887dec2a10c4f5effee9",blockCreated:649114}},rpcUrls:{default:{http:["https://mainnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story explorer",url:"https://storyscan.io",apiUrl:"https://storyscan.io/api/v2"}},ensTlds:[".ip"],testnet:!1}),NW=iv({id:1315,name:"Story Aeneid",network:"story-aeneid",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1792},ensRegistry:{address:"0x5dC881dDA4e4a8d312be3544AD13118D1a04Cb17",blockCreated:1322033},ensUniversalResolver:{address:"0x6D3B3F99177FB2A5de7F9E928a9BD807bF7b5BAD",blockCreated:1322097}},rpcUrls:{default:{http:["https://aeneid.storyrpc.io"]}},blockExplorers:{default:{name:"Story Aeneid Explorer",url:"https://aeneid.storyscan.io",apiUrl:"https://aeneid.storyscan.io/api/v2"}},ensTlds:[".ip"],testnet:!0}),Nz=iv({id:1516,name:"Story Odyssey",nativeCurrency:{decimals:18,name:"IP",symbol
2051:"IP"},rpcUrls:{default:{http:["https://rpc.odyssey.storyrpc.io"]}},blockExplorers:{default:{name:"Story Odyssey Explorer",url:"https://odyssey.storyscan.xyz"}},testnet:!0}),NV=iv({id:1513,name:"Story Testnet",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://testnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story Testnet Explorer",url:"https://testnet.storyscan.xyz"}},testnet:!0}),NH=iv({id:105105,name:"Stratis Mainnet",network:"stratis",nativeCurrency:{name:"Stratis",symbol:"STRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Stratis Explorer",url:"https://explorer.stratisevm.com"}}}),Nq=iv({id:964,name:"Subtensor EVM",nativeCurrency:{decimals:18,name:"TAO",symbol:"TAO"},rpcUrls:{default:{http:["https://lite.chain.opentensor.ai"]}},blockExplorers:{default:{name:"Taostats EVM Explorer",url:"https://evm.taostats.io",apiUrl:"https://evm.taostats.io/api"}},testnet:!1}),NG=iv({id:8866,name:"SuperLumio",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.lumio.io"]}},blockExplorers:{default:{name:"Lumio explorer",url:"https://explorer.lumio.io"}},testnet:!1}),NK=iv({id:55244,name:"Superposition",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.superposition.so"]}},blockExplorers:{default:{name:"Superposition Explorer",url:"https://explorer.superposition.so"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:39}},testnet:!1}),NJ=iv({...xK,id:5330,name:"Superseed",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.superseed.xyz"]}},blockExplorers:{default:{name:"Superseed Explorer",url:"https://explorer.superseed.xyz",apiUrl:"https://explorer.superseed.xyz/api/v2"}},contracts:{...xK.contracts,disputeGameFactory:{1:{address:"0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0",blockCreated:0x13c6dc9}},l2OutputOracle:{1:{address:"0x693A0F8854F458D282DE3C5b69E8eE5EEE8aA949",blockCreated:0x13c6dc9}},portal:{1:{address:"0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07",blockCreated:0x13c6dc9}},l1StandardBridge:{1:{address:"0x8b0576E39F1233679109F9b40cFcC2a7E0901Ede",blockCreated:0x13c6dc9}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:1}),NZ=iv({...xK,id:53302,name:"Superseed Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.superseed.xyz"]}},blockExplorers:{default:{name:"Superseed Sepolia Explorer",url:"https://sepolia-explorer.superseed.xyz",apiUrl:"https://sepolia-explorer.superseed.xyz/api/v2"}},contracts:{...xK.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},portal:{0xaa36a7:{address:"0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB",blockCreated:5523438}},l1StandardBridge:{0xaa36a7:{address:"0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C",blockCreated:5523442}}},testnet:!0,sourceId:0xaa36a7}),NQ=iv({id:763375,name:"Surge Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://l2-rpc.hoodi.surge.wtf"],webSocket:["wss://l2-ws.hoodi.surge.wtf"]}},blockExplorers:{default:{name:"Surge Testnet Blockscout",url:"https://explorer.hoodi.surge.wtf"}},testnet:!0}),NX=iv({id:254,name:"Swan Chain Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.swanchain.org"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://swanscan.io"}},testnet:!1}),NY=iv({id:0x134daed,name:"Swan Proxima Testnet",nativeCurrency:{name:"Swan Ether",symbol:"sETH",decimals:18},rpcUrls:{default:{http:["https://rpc-proxima.swanchain.io"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://proxima-explorer.swanchain.io"}},testnet:!0}),N0=iv({id:2024,name:"Swan Saturn Testnet",nativeCurrency:{name:"Swan Ether",symbol:"sETH",decimals:18},rpcUrls:{default:{http:["https://saturn-rpc.swanchain.io"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://saturn-explorer.swanchain.io"}},testnet:!0}),N1=iv({...xK,id:1923,name:"Swellchain",nativeCurrency:{name:"Ether",symbol
vendor: 4,224 bytes, line 2051
2051:"ETH",decimals:18},rpcUrls:{default:{http:["https://swell-mainnet.alt.technology"]}},blockExplorers:{default:{name:"Swell Explorer",url:"https://explorer.swellnetwork.io",apiUrl:"https://explorer.swellnetwork.io/api"}},contracts:{...xK.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}}}),N2=iv({...xK,id:1924,name:"Swellchain Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://swell-testnet.alt.technology"]}},blockExplorers:{default:{name:"Swellchain Testnet Explorer",url:"https://swell-testnet-explorer.alt.technology",apiUrl:"https://swell-testnet-explorer.alt.technology/api"}},contracts:{...xK.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},testnet:!0}),N3=iv({id:94,name:"SwissDLT Mainnet",nativeCurrency:{decimals:18,name:"BCTS",symbol:"BCTS"},rpcUrls:{default:{http:["https://rpc.swissdlt.ch"]}},blockExplorers:{default:{name:"SwissDLT Explorer",url:"https://explorer.swissdlt.ch"}},testnet:!1}),N6=iv({id:57,name:"Syscoin Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org",apiUrl:"https://explorer.syscoin.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}}),N8=iv({id:5700,name:"Syscoin Tanenbaum Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}},testnet:!0}),N7=iv({id:239,name:"TAC",nativeCurrency:{name:"TAC",symbol:"TAC",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/tac"]}},blockExplorers:{default:{name:"Blockscout",url:"https://tac.blockscout.com",apiUrl:"https://tac.blockscout.com/api"},native:{name:"TAC Explorer",url:"https://explorer.tac.build",apiUrl:"https://explorer.tac.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),N4=iv({id:2391,name:"TAC SPB Testnet",nativeCurrency:{name:"TAC",symbol:"TAC",decimals:18},rpcUrls:{default:{http:["https://spb.rpc.tac.build"]}},blockExplorers:{default:{name:"TAC",url:"https://spb.explorer.tac.build",apiUrl:"https://spb.explorer.tac.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:471429}},testnet:!0}),N5=iv({id:167e3,name:"Taiko Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.mainnet.taiko.xyz"],webSocket:["wss://ws.mainnet.taiko.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://taikoscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11269}}}),N9=iv({id:167009,name:"Taiko Hekla L2",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hekla.taiko.xyz"]}},blockExplorers:{default:{name:"Taikoscan",url:"https://hekla.taikoscan.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59757}},testnet:!0}),Re=iv({id:167013,name:"Taiko Hoodi",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hoodi.taiko.xyz"],webSocket:["wss://ws.hoodi.taiko.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://hoodi.taikoscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:581116}},testnet:!0}),Rt=iv({id:167007,name:"Taiko Jolnir (Alpha-5 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.jolnir.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.jolnir.taiko.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:732706}},testnet:!0}),Rr=iv({id:167008,name:"Taiko Katla (Alpha-6 Testnet)",network:"tko-katla",nativeCurrency:{name:"Ether",symbol
2051:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katla.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.katla.taiko.xyz"}},testnet:!0}),Ra=iv({id:167005,name:"Taiko (Alpha-3 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}},testnet:!0}),Rn=iv({id:841,name:"Taraxa Mainnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}}),Ri=iv({id:842,name:"Taraxa Testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0}),Ro=iv({id:10218,name:"Tea Sepolia",nativeCurrency:{name:"Sepolia Tea",symbol:"TEA",decimals:18},rpcUrls:{default:{http:["https://tea-sepolia.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Tea Sepolia Explorer",url:"https://sepolia.tea.xyz"}},testnet:!0}),Rs=iv({id:2017,name:"Telcoin Adiri Testnet",nativeCurrency:{name:"Telcoin",symbol:"TEL",decimals:18},rpcUrls:{default:{http:["https://rpc.telcoin.network"]}},blockExplorers:{default:{name:"telscan",url:"https://telscan.io"}},testnet:!0}),Rl=iv({id:40,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://rpc.telos.net"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0xeb1c295}}}),Rc=iv({id:41,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://rpc.testnet.telos.net"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0}),Rd={};(0,L.VA)(Rd,{CoercionError:()=>R$,InvalidSerializedError:()=>Rz,MissingPropertiesError:()=>RW,VerificationError:()=>RV,assert:()=>RR,deserialize:()=>RP,extractAddress:()=>RS,extractPublicKey:()=>RA,from:()=>RD,fromRpc:()=>RL,getType:()=>RO,magicBytes:()=>RI,serialize:()=>RF,toRpc:()=>R_,types:()=>RN,validate:()=>RM,verify:()=>Rj}),(0,S.qW)();var Rp=(0,N.D0)(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")),Ru=Rp.create(BigInt("-3")),Rm=BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"),Rh=(0,N.s7)({a:Ru,b:Rm,Fp:Rp,n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),h:BigInt(1),lowS:!1},S.sc),Rg=(0,N.D0)(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff")),Rf=Rg.create(BigInt("-3")),Rb=BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");(0,N.s7)({a:Rf,b:Rb,Fp:Rg,n:BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973"),Gx:BigInt("0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"),Gy:BigInt("0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f"),h:BigInt(1),lowS:!1},S.qt);var Ry=(0,N.D0)(BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")),Rk=Ry.create(BigInt("-3")),Rx=BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00");function Rw(e){let{hash:t,payload:r,publicKey:a,signature:n}=e;return Rh.verify(n,r instanceof Uint8Array?r:(0,A.aD)(r),og(a).substring(2),{lowS:!0,...t?{prehash:!0}:{}})}(0,N.s7)({a:Rk,b:Rx,Fp:Ry,n:BigInt("0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409"),Gx:BigInt("0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66"),Gy:BigInt("0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},S.Zf);var Rv=new TextEncoder;Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2051+/").map((e,t)=>[t,e.charCodeAt(0)]);var RT={...Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63},RE="0x01",RB="0x02",RC="0x03",RU="0x04",RI="0x7777777777777777777777777777777777777777777777777777777777777777",RN=["secp256k1","p256","webAuthn"];function RR(e){let t=RO(e);if("secp256k1"===t)return void o3(e.signature);if("p256"===t){let t=[];if("bigint"!=typeof e.signature?.r&&t.push("signature.r"),"bigint"!=typeof e.signature?.s&&t.push("signature.s"),"boolean"!=typeof e.prehash&&t.push("prehash"),e.publicKey?("bigint"!=typeof e.publicKey.x&&t.push("publicKey.x"),"bigint"!=typeof e.publicKey.y&&t.push("publicKey.y")):t.push("publicKey"),t.length>0)throw new RW({envelope:e,missing:t,type:"p256"});return}if("webAuthn"===t){let t=[];if("bigint"!=typeof e.signature?.r&&t.push("signature.r"),"bigint"!=typeof e.signature?.s&&t.push("signature.s"),e.metadata?(e.metadata.authenticatorData||t.push("metadata.authenticatorData"),e.metadata.clientDataJSON||t.push("metadata.clientDataJSON")):t.push("metadata"),e.publicKey?("bigint"!=typeof e.publicKey.x&&t.push("publicKey.x"),"bigint"!=typeof e.publicKey.y&&t.push("publicKey.y")):t.push("publicKey"),t.length>0)throw new RW({envelope:e,missing:t,type:"webAuthn"});return}if("keychain"===t)return void RR(e.inner)}function RS(e){let{signature:t,root:r}=e;return"keychain"===t.type?r?t.userAddress:RS({...e,signature:t.inner}):oE(RA(e))}function RA(e){let{payload:t,signature:r}=e;switch(r.type){case"secp256k1":return sd({payload:t,signature:r.signature});case"p256":case"webAuthn":return r.publicKey;case"keychain":return RA({payload:t,signature:r.inner})}}function RP(e){let t=e.endsWith(RI.slice(2))?(0,A.iN)(e,0,-(0,A.QN)(RI)):e;if(65===(0,A.QN)(t)){let e=o6(t);return o3(e),{signature:e,type:"secp256k1"}}let r=(0,A.iN)(t,0,1),a=(0,A.iN)(t,1),n=(0,A.QN)(a);if(r===RE){if(129!==n)throw new Rz({reason:`Invalid P256 signature envelope size: expected 129 bytes, got ${n} bytes`,serialized:t});return{publicKey:{prefix:4,x:(0,A.J1)((0,A.iN)(a,64,96)),y:(0,A.J1)((0,A.iN)(a,96,128))},prehash:0!==(0,A.jP)((0,A.iN)(a,128,129)),signature:{r:(0,A.J1)((0,A.iN)(a,0,32)),s:(0,A.J1)((0,A.iN)(a,32,64))},type:"p256"}}if(r===RB){let e,r;if(n<128)throw new Rz({reason:`Invalid WebAuthn signature envelope size: expected at least 128 bytes, got ${n} bytes`,serialized:t});let i=n-128,o=(0,A.iN)(a,0,i);for(let t=37;t<i;t++){let a=(0,A.V4)((0,A.iN)(o,t));if(a.startsWith("{")&&a.endsWith("}"))try{JSON.parse(a),e=(0,A.iN)(o,0,t),r=a;break}catch{}}if(!e||!r)throw new Rz({reason:"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",serialized:t});return{publicKey:{prefix:4,x:(0,A.J1)((0,A.iN)(a,i+64,i+96)),y:(0,A.J1)((0,A.iN)(a,i+96,i+128))},metadata:{authenticatorData:e,clientDataJSON:r},signature:{r:(0,A.J1)((0,A.iN)(a,i,i+32)),s:(0,A.J1)((0,A.iN)(a,i+32,i+64))},type:"webAuthn"}}if(r===RC||r===RU)return{userAddress:(0,A.iN)(a,0,20),inner:RP((0,A.iN)(a,20)),type:"keychain",version:r===RU?"v2":"v1"};throw new Rz({reason:`Unknown signature type identifier: ${r}. Expected ${RE} (P256), ${RB} (WebAuthn), ${RC} (Keychain V1), or ${RU} (Keychain V2)`,serialized:t})}function RD(e,t){if("string"==typeof e)return RP(e);if("object"==typeof e&&null!==e&&"r"in e&&"s"in e&&"yParity"in e)return{signature:e,type:"secp256k1"};let r=RO(e);return{...e,..."p256"===r?{prehash:e.prehash}:{},..."keychain"===r?{...!("object"==typeof e&&null!==e&&"version"in e&&e.version)?{version:"v2"}:{},...!("object"==typeof e&&"keyId"in e&&e.keyId)?(()=>{let r=e.inner;return"p256"===r.type||"webAuthn"===r.type?{keyId:oE(r.publicKey)}:"secp256k1"===r.type&&t?.payload?{keyId:oE(sd({payload:t.payload,signature:r.signature}))}:{}})():{}}:{},type:r}}function RL(e){if("secp256k1"===e.type)return{signature:o4(e),type:"secp256k1"};if("p256"===e.type)return{prehash:e.preHash,publicKey:{prefix:4,x:(0,A.J1)(e.pubKeyX),y:(0,A.J1)(e.pubKeyY)},signature:{r:(0,A.J1)(e.r),s:(0,A.J1)(e.s)},type:"p256"};if("webAuthn"===e.type){let t,r,a=e.webauthnData,n=(0,A.QN)(a);for(let e=37;e<n;e++){let n=(0,A.V4)((0,A.iN)(a,e));if(n.startsWith("{")&&n.endsWith("}"))try{JSON.parse(n),t=(0,A.iN)(a,0,e),r=n;break}catch{}}if(!t||!r)throw new Rz({reason:"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",serialized:a});return{metadata:{authenticatorData:t,clientDataJSON:r},publicKey:{prefix:4,x:(0,A.J1)(e.pubKeyX),y:(0,A.J1)(e.pubKeyY)},signature:{r:(0,A.J1)(e.r),s:(0,A.J1)(e.s)},type:"webAuthn"}}if("keychain"===e.type||"userAddress"in e&&"signature"in e)return{type:"keychain",userAddress:e.userAddress,inner:RL(e.signature),...e.keyId?{keyId:e.keyId}:{},...e.version?{version:e.version}:{}};throw new R$({envelope:e})}function RO(e){if("object"!=typeof e||null===e)throw new R$({envelope:e});if("type"in e&&e.type)return e.type;if("signature"in e&&!("publicKey"in e)&&"object"==typeof e.signature&&null!==e.signature&&"r"in e.signature&&"s"in e.signature&&"yParity"in e.signature||"r"in e&&"s"in e&&"yParity"in e)return"secp256k1";if("signature"in e&&"prehash"in e&&"publicKey"in e&&"boolean"==typeof e.prehash)return"p256";if("signature"in e&&"metadata"in e&&"publicKey"in e)return"webAuthn";if("userAddress"in e&&"inner"in e)return"keychain";throw new R$({envelope:e})}function RF(e,t={}){let r=RO(e);if("secp256k1"===r)return(0,A.eF)(function(e){o3(e);let t=e.r,r=e.s;return(0,A.eF)((0,A.oB)(t,{size:32}),(0,A.oB)(r,{size:32}),"number"==typeof e.yParity?(0,A.oB)(st(e.yParity),{size:1}):"0x")}(e.signature),t.magic?RI:"0x");if("p256"===r)return(0,A.eF)(RE,(0,A.oB)(e.signature.r,{size:32}),(0,A.oB)(e.signature.s,{size:32}),(0,A.oB)(e.publicKey.x,{size:32}),(0,A.oB)(e.publicKey.y,{size:32}),(0,A.oB)(+!!e.prehash,{size:1}),t.magic?RI:"0x");if("webAuthn"===r){let r=(0,A.eF)(e.metadata.authenticatorData,(0,A.tN)(e.metadata.clientDataJSON));return(0,A.eF)(RB,r,(0,A.oB)(e.signature.r,{size:32}),(0,A.oB)(e.signature.s,{size:32}),(0,A.oB)(e.publicKey.x,{size:32}),(0,A.oB)(e.publicKey.y,{size:32}),t.magic?RI:"0x")}if("keychain"===r){let r="v1"===e.version?RC:RU;return(0,A.eF)(r,e.userAddress,RF(e.inner),t.magic?RI:"0x")}throw new R$({envelope:e})}function R_(e){let t=RO(e);if("secp256k1"===t)return{...o5(e.signature),type:"secp256k1"};if("p256"===t)return{preHash:e.prehash,pubKeyX:(0,A.oB)(e.publicKey.x,{size:32}),pubKeyY:(0,A.oB)(e.publicKey.y,{size:32}),r:(0,A.oB)(e.signature.r,{size:32}),s:(0,A.oB)(e.signature.s,{size:32}),type:"p256"};if("webAuthn"===t){let t=(0,A.eF)(e.metadata.authenticatorData,(0,A.tN)(e.metadata.clientDataJSON));return{pubKeyX:(0,A.oB)(e.publicKey.x,{size:32}),pubKeyY:(0,A.oB)(e.publicKey.y,{size:32}),r:(0,A.oB)(e.signature.r,{size:32}),s:(0,A.oB)(e.signature.s,{size:32}),type:"webAuthn",webauthnData:t}}if("keychain"===t)return{type:"keychain",userAddress:e.userAddress,signature:R_(e.inner),...e.keyId?{keyId:e.keyId}:{},...e.version?{version:e.version}:{}};throw new R$({envelope:e})}function RM(e){try{return RR(e),!0}catch{return!1}}function Rj(e,t){let{payload:r}=t,a=t.address?t.address:t.publicKey?oE(t.publicKey):void 0;if(!a)return!1;let n=RD(e);if("secp256k1"===n.type){if(!a)return!1;var i={address:a,payload:r,signature:n.signature};let{hash:e,payload:t}=i;return i.address?oB(i.address,oE(sd({payload:t,signature:i.signature}))):N.bI.verify(i.signature,(0,A.HT)(t),function(e,t={}){return(0,A.aD)(og(e,t))}(i.publicKey),...e?[{prehash:!0,lowS:!0}]:[])}if("p256"===n.type)return!!oB(oE(n.publicKey),a)&&Rw({hash:n.prehash,publicKey:n.publicKey,payload:r,signature:n.signature});if("webAuthn"===n.type)return!!oB(oE(n.publicKey),a)&&function(e){let{challenge:t,metadata:r,origin:a,publicKey:n,rpId:i,signature:o}=e,{authenticatorData:s,clientDataJSON:l,userVerificationRequired:c}=r,d=(0,A.aD)(s);if(d.length<37)return!1;if(void 0!==i){let e=d.slice(0,32),t=ou((0,A.tN)(i),{as:"Bytes"});if(!(0,A.n4)(e,t))return!1}let p=d[32];if((1&p)!=1||c&&(4&p)!=4||(8&p)!=8&&(16&p)==16)return!1;let u=JSON.parse(l);if("webauthn.get"!==u.type||!u.challenge||(0,A.uK)(function(e){let t=e.replace(/=+$/,""),r=t.length,a=new Uint8Array(r+3);Rv.encodeInto(t+"===",a);for(let e=0,r=0;e<t.length;e+=4,r+=3){let t=(RT[a[e]]<<18)+(RT[a[e+1]]<<12)+(RT[a[e+2]]<<6)+RT[a[e+3]];a[r]=t>>16,a[r+1]=t>>8&255,a[r+2]=255&t}return new Uint8Array(a.buffer,0,(r>>2)*3+(r%4&&r%4-1))}(u.challenge))!==t||void 0!==a&&!(Array.isArray(a)?a:[a]).includes(u.origin))return!1;let m=ou((0,A.sH)(l),{as:"Bytes"});return Rw({hash:!0,payload:(0,A.Z2)(d,m),publicKey:n,signature:o})}({challenge:(0,A.Fy)(r),metadata:n.metadata,publicKey:n.publicKey,signature:n.signature});throw new RV(`Unable to verify signature envelope of type "${n.type}".`)}var R$=class extends A.kl{constructor({envelope:e}){super(`Unable to coerce value (\`${(0,A.iS)(e)}\`) to a valid signature envelope.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.CoercionError"})}},RW=class extends A.kl{constructor({envelope:e,missing:t,type:r}){super(`Signature envelope of type "${r}" is missing required properties: ${t.map(e=>`\`${e}\``).join(", ")}.
2052
2053Provided: ${(0,A.iS)(e)}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.MissingPropertiesError"})}},Rz=class extends A.kl{constructor({reason:e,serialized:t}){super(`Unable to deserialize signature envelope: ${e}`,{metaMessages:[`Serialized: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.InvalidSerializedError"})}},RV=class extends A.kl{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.VerificationError"})}};function RH(e){return e.startsWith("tempo")?function(e){if(!e.startsWith("tempox"))throw new Rq({address:e});let t=e.slice(6);return(0,A.vA)(t,{strict:!0}),{address:oT(t)}}(e).address:e}var Rq=class extends A.kl{constructor({address:e}){super(`Tempo address "${e}" has an invalid prefix. Expected "tempox".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TempoAddress.InvalidPrefixError"})}};function RG(e){let{address:t,chainId:r,nonce:a}=e,n=RL(e.signature);return{address:t,chainId:Number(r),nonce:BigInt(a),signature:n}}function RK(e){return e.map(e=>RG(e))}function RJ(e){return e.map(e=>(function(e){let{address:t,chainId:r,nonce:a,signature:n}=e;return{address:t,chainId:(0,A.oB)(r),nonce:(0,A.oB)(a),signature:R_(n)}})(e))}var RZ={};function RQ(e,t={}){if("keyId"in e)return RX(e);let r={...e,address:RH(e.address),...e.limits?{limits:e.limits.map(e=>({...e,token:RH(e.token)}))}:{},...e.scopes?{scopes:e.scopes.map(e=>({...e,address:RH(e.address),selector:R9(e.selector),...e.recipients?{recipients:e.recipients.map(e=>RH(e))}:{}}))}:{}};return t.signature?{...r,signature:RD(t.signature)}:r}function RX(e){let{allowedCalls:t,chainId:r,keyId:a,expiry:n,limits:i,keyType:o}=e,s=RL(e.signature),l=t?t.flatMap(e=>e.selectorRules&&0!==e.selectorRules.length?e.selectorRules.map(t=>{var r;return{address:e.target,selector:"string"==typeof(r=t.selector)?r:Array.isArray(r)?(0,A.uK)(new Uint8Array(r)):r,...t.recipients&&t.recipients.length>0?{recipients:t.recipients}:{}}
2053}):[{address:e.target}]):void 0;return{address:a,chainId:"0x"===r?0n:(0,A.J1)(r),...null!=n?{expiry:Number(n)}:{},limits:i?.map(e=>({token:e.token,limit:BigInt(e.limit),...e.period&&R5(e.period)>0?{period:R5(e.period)}:{}})),...l?{scopes:l}:{},signature:s,type:o}}function RY(e){let[t,r]=e,[a,n,i,o,s,l]=t,c=(()=>{switch(n){case"0x":case"0x00":return"secp256k1";case"0x01":return"p256";case"0x02":return"webAuthn";default:throw Error(`Invalid key type: ${n}`)}})(),d={address:i,expiry:void 0!==o&&R5(o)||void 0,type:c,chainId:"0x"===a?0n:(0,A.J1)(a),...void 0!==o?{expiry:R5(o)||void 0}:{},...void 0!==s&&Array.isArray(s)&&s.length>0?{limits:s.map(e=>{var t;let[r,a,n]=e;return{token:r,limit:"0x"===(t=a)?0n:BigInt(t),...void 0!==n?{period:R5(n)}:{}}})}:{},...void 0!==l&&Array.isArray(l)?{scopes:l.flatMap(e=>{let[t,r]=e;return Array.isArray(r)&&0!==r.length?r.map(e=>{let[r,a]=e;return{address:t,selector:r,...Array.isArray(a)&&a.length>0?{recipients:a}:{}}}):[{address:t}]})}:{}};return r&&(d.signature=RP(r)),RQ(d)}function R0(e){return R2(e)}function R1(e){return RY(oY(e,"Hex"))}function R2(e){let[t]=R8(e);return op(o1(t))}function R3(e){return o1(R8(e))}function R6(e){let{address:t,scopes:r,chainId:a,expiry:n,limits:i,type:o,signature:s}=e,l=(()=>{if(!r)return;let e=new Map;for(let t of r){let r=t.address;e.has(r)||e.set(r,[]),t.selector&&e.get(r).push({selector:R9(t.selector),...t.recipients&&t.recipients.length>0?{recipients:t.recipients}:{}}
2053)}return[...e.entries()].map(([e,t])=>({target:e,...t.length>0?{selectorRules:t}:{}}))})();return{chainId:0n===a?"0x":(0,A.oB)(a),expiry:"number"==typeof n?(0,A.oB)(n):null,keyId:RH(t),keyType:o,limits:i?.map(({token:e,limit:t,period:r})=>({token:e,limit:(0,A.oB)(t),...r?{period:R4(r)}:{}})),signature:R_(s),...l?{allowedCalls:l}:{}}}function R8(e){let{address:t,chainId:r,scopes:a,expiry:n,limits:i}=e,o=e.signature?RF(e.signature):void 0,s=(()=>{switch(e.type){case"secp256k1":return"0x";case"p256":return"0x01";case"webAuthn":return"0x02";default:throw Error(`Invalid key type: ${e.type}`)}})(),l=i?.map(e=>{let t=[e.token,R7(e.limit)];return e.period&&e.period>0&&t.push(R4(e.period)),t}),c=(()=>{if(!a)return;let e=new Map;for(let t of a){let r=t.address;e.has(r)||e.set(r,[]),t.selector&&e.get(r).push([R9(t.selector),t.recipients??[]])}return[...e.entries()].map(([e,t])=>[e,t.map(([e,t])=>[e,t])])})();return[[R7(r),s,t,null!=n&&0!==n||l||c?R4(n??0):void 0,l||c?l??[]:void 0,c].filter(e=>void 0!==e),...o?[o]:[]]}function R7(e){return 0n===e?"0x":(0,A.oB)(e)}function R4(e){return 0===e?"0x":(0,A.oB)(e)}function R5(e){return"0x"===e?0:(0,A.jP)(e)}function R9(e){if(e)return e.startsWith("0x")?e:sN(e)}function Se(e){if("string"==typeof e){let t=RH(e);return ov(t),t}let t=(0,A.oB)(e,{size:18});return(0,A.eF)("0x20c0",t)}(0,L.VA)(RZ,{deserialize:()=>R1,from:()=>RQ,fromRpc:()=>RX,fromTuple:()=>RY,getSignPayload:()=>R0,hash:()=>R2,serialize:()=>R3,toRpc:()=>R6,toTuple:()=>R8});var St={};(0,L.VA)(St,{fromRpc:()=>So,fromRpcType:()=>Si,toRpc:()=>Ss,toRpcType:()=>Sn});var Sr={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"},Sa={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"},Sn={...Sr,tempo:"0x76"},Si={...Sa,"0x76":"tempo"};function So(e,t={}){if(!e)return null;let r=function(e,t={}){if(!e)return null;let r=o8(e),a={...e,...r};return a.blockNumber=e.blockNumber?BigInt(e.blockNumber):null,"blockTimestamp"in e&&(a.blockTimestamp=e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0),a.data=e.input,a.gas=BigInt(e.gas??0n),a.nonce=BigInt(e.nonce??0n),a.transactionIndex=e.transactionIndex?Number(e.transactionIndex):null,a.value=BigInt(e.value??0n),e.authorizationList&&(a.authorizationList=e.authorizationList.map(sl)),e.chainId&&(a.chainId=Number(e.chainId)),e.gasPrice&&(a.gasPrice=BigInt(e.gasPrice)),e.maxFeePerBlobGas&&(a.maxFeePerBlobGas=BigInt(e.maxFeePerBlobGas)),e.maxFeePerGas&&(a.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.type&&(a.type=Sa[e.type]??e.type),r&&(a.v=st(r.yParity)),a}(e);return r.type=Si[e.type],e.aaAuthorizationList&&(r.authorizationList=RK(e.aaAuthorizationList),delete r.aaAuthorizationList),e.calls&&(r.calls=e.calls.map(e=>({to:e.to,value:e.value&&"0x"!==e.value?BigInt(e.value):void 0,data:e.input||e.data||"0x"}))),e.feeToken&&(r.feeToken=e.feeToken),e.nonceKey&&(r.nonceKey=BigInt(e.nonceKey)),e.signature&&(r.signature=RL(e.signature)),e.validAfter&&(r.validAfter=Number(e.validAfter)),e.validBefore&&(r.validBefore=Number(e.validBefore)),e.keyAuthorization&&(r.keyAuthorization=RX(e.keyAuthorization)),e.feePayerSignature&&(r.feePayerSignature=o4(e.feePayerSignature),r.feePayerSignature.v=st(r.feePayerSignature.yParity)),r}function Ss(e,t){let r=function(e,t){let r={};return r.blockHash=e.blockHash,r.blockNumber="bigint"==typeof e.blockNumber?(0,A.oB)(e.blockNumber):null,"bigint"==typeof e.blockTimestamp?r.blockTimestamp=(0,A.oB)(e.blockTimestamp):null===e.blockTimestamp&&(r.blockTimestamp=null),r.from=e.from,r.gas=(0,A.oB)(e.gas??0n),r.hash=e.hash,r.input=e.input,r.nonce=(0,A.oB)(e.nonce??0n),r.to=e.to,r.transactionIndex=e.transactionIndex?(0,A.oB)(e.transactionIndex):null,r.type=Sr[e.type]??e.type,r.value=(0,A.oB)(e.value??0n),e.accessList&&(r.accessList=e.accessList),e.authorizationList&&(r.authorizationList=e.authorizationList.map(sc)),e.blobVersionedHashes&&(r.blobVersionedHashes=e.blobVersionedHashes),e.chainId&&(r.chainId=(0,A.oB)(e.chainId)),"bigint"==typeof e.gasPrice&&(r.gasPrice=(0,A.oB)(e.gasPrice)),"bigint"==typeof e.maxFeePerBlobGas&&(r.maxFeePerBlobGas=(0,A.oB)(e.maxFeePerBlobGas)),"bigint"==typeof e.maxFeePerGas&&(r.maxFeePerGas=(0,A.oB)(e.maxFeePerGas)),"bigint"==typeof e.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=(0,A.oB)(e.maxPriorityFeePerGas)),"bigint"==typeof e.r&&(r.r=(0,A.oB)(e.r,{size:32}
2053)),"bigint"==typeof e.s&&(r.s=(0,A.oB)(e.s,{size:32})),"number"==typeof e.v&&(r.v=(0,A.oB)(e.v,{size:1})),"number"==typeof e.yParity&&(r.yParity=0===e.yParity?"0x0":"0x1"),r}(e);return r.type=Sn[e.type],e.authorizationList&&(r.aaAuthorizationList=RJ(e.authorizationList)),e.calls&&(r.calls=e.calls.map(e=>({to:e.to,value:e.value?(0,A.oB)(e.value):void 0,data:e.data}))),e.feeToken&&(r.feeToken=e.feeToken),e.keyAuthorization&&(r.keyAuthorization=R6(e.keyAuthorization)),e.feePayerSignature&&(r.feePayerSignature=o5(e.feePayerSignature),r.feePayerSignature.v=(0,A.oB)(st(e.feePayerSignature?.yParity))),e.signature&&(r.signature=R_(e.signature)),"number"==typeof e.validAfter&&(r.validAfter=(0,A.oB)(e.validAfter)),"number"==typeof e.validBefore&&(r.validBefore=(0,A.oB)(e.validBefore)),r}var Sl={};function Sc(e){var t;let{authorizationList:r,...a}=e,n=(void 0!==(t=a).authorizationList&&(t.authorizationList=t.authorizationList.map(sl)),void 0!==t.chainId&&(t.chainId=(0,A.jP)(t.chainId)),void 0!==t.gas&&(t.gas=(0,A.J1)(t.gas)),void 0!==t.gasPrice&&(t.gasPrice=(0,A.J1)(t.gasPrice)),void 0!==t.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,A.J1)(t.maxFeePerBlobGas)),void 0!==t.maxFeePerGas&&(t.maxFeePerGas=(0,A.J1)(t.maxFeePerGas)),void 0!==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,A.J1)(t.maxPriorityFeePerGas)),void 0!==t.nonce&&(t.nonce=(0,A.J1)(t.nonce)),void 0!==t.type&&(t.type=Sa[t.type]||t.type),void 0!==t.value&&(t.value=(0,A.J1)(t.value)),t);return void 0!==e.type&&(n.type=Si[e.type]||n.type),e.authorizationList&&(n.authorizationList=RK(e.authorizationList)),e.calls&&(n.calls=e.calls.map(e=>{let t={to:e.to,data:e.data};return e.value&&"0x"!==e.value&&(t.value=(0,A.J1)(e.value)),t})),void 0!==e.feeToken&&(n.feeToken=e.feeToken),e.keyAuthorization&&(n.keyAuthorization=RX(e.keyAuthorization)),void 0!==e.validBefore&&(n.validBefore=(0,A.jP)(e.validBefore)),void 0!==e.validAfter&&(n.validAfter=(0,A.jP)(e.validAfter)),void 0!==e.nonceKey&&(n.nonceKey=(0,A.J1)(e.nonceKey)),n}function Sd(e){let t=function(e){let t={};return void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(sc)),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&(t.blobs=e.blobs),void 0!==e.chainId&&(t.chainId=(0,A.oB)(e.chainId)),void 0!==e.data?(t.data=e.data,t.input=e.data):void 0!==e.input&&(t.data=e.input,t.input=e.input),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=(0,A.oB)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,A.oB)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,A.oB)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,A.oB)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,A.oB)(e.maxPriorityFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,A.oB)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,A.oB)(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=Sr[e.type]||e.type),void 0!==e.value&&(t.value=(0,A.oB)(e.value)),t}({...e,authorizationList:void 0});e.authorizationList&&(t.authorizationList=RJ(e.authorizationList)),e.calls?t.calls=e.calls.map(e=>({to:e.to?RH(e.to):e.to,value:e.value?(0,A.oB)(e.value):"0x",data:e.data??"0x"})):(e.to||e.data||e.value)&&(t.calls=[{to:e.to?RH(e.to):void 0,value:e.value?(0,A.oB)(e.value):"0x",data:e.data??"0x"}]),void 0!==e.feeToken&&(t.feeToken=Se(e.feeToken)),e.keyAuthorization&&(t.keyAuthorization=R6(e.keyAuthorization)),void 0!==e.validBefore&&(t.validBefore=(0,A.oB)(e.validBefore)),void 0!==e.validAfter&&(t.validAfter=(0,A.oB)(e.validAfter));let r="random"===e.nonceKey?(0,A.yT)(6):"bigint"==typeof e.nonceKey?(0,A.oB)(e.nonceKey):void 0;return r&&(t.nonceKey=r),(void 0!==e.calls||void 0!==e.feePayer||void 0!==e.feeToken||void 0!==e.ke
2053yAuthorization||void 0!==e.nonceKey||void 0!==e.validBefore||void 0!==e.validAfter||"tempo"===e.type)&&(t.type=Sn.tempo,delete t.data,delete t.input,delete t.to,delete t.value),t}(0,L.VA)(Sl,{fromRpc:()=>Sc,toRpc:()=>Sd});var Sp={};(0,L.VA)(Sp,{CallsEmptyError:()=>SS,InvalidValidityWindowError:()=>SA,assert:()=>Sv,deserialize:()=>ST,encodeForSigning:()=>SC,feePayerMagic:()=>Sk,from:()=>SE,getFeePayerSignPayload:()=>SN,getSignPayload:()=>SU,hash:()=>SI,serialize:()=>SB,serializedType:()=>Sx,type:()=>Sw,validate:()=>SR});var Su=class extends A.kl{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${(0,A.QN)(e)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccessList.InvalidStorageKeySizeError"})}},Sm={wei:0,gwei:9,szabo:12,finney:15,ether:18};function Sh(e,t="wei"){return function(e,t=0){let r=e.toString(),a=r.startsWith("-");a&&(r=r.slice(1));let[n,i]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return i=i.replace(/(0+)$/,""),`${a?"-":""}${n||"0"}${i?`.${i}`:""}`}(e,Sm.gwei-Sm[t])}var Sg=class extends A.kl{constructor({feeCap:e}={}){super(`The fee cap (\`maxFeePerGas\`/\`maxPriorityFeePerGas\`${e?` = ${Sh(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.FeeCapTooHighError"})}},Sf=class extends A.kl{constructor({chainId:e}){super(void 0!==e?`Chain ID "${e}
2053" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidChainIdError"})}},Sb=class extends A.kl{constructor({attributes:e,serialized:t,type:r}){let a=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,a.length>0?`Missing Attributes: ${a.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidSerializedError"})}},Sy=class extends A.kl{constructor({maxPriorityFeePerGas:e,maxFeePerGas:t}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${Sh(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t?` = ${Sh(t)} gwei`:""}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.TipAboveFeeCapError"})}},Sk="0x78",Sx="0x76",Sw="tempo";function Sv(e){let{calls:t,chainId:r,maxFeePerGas:a,maxPriorityFeePerGas:n,validBefore:i,validAfter:o}=e;if(!t||0===t.length)throw new SS;if("number"==typeof i&&"number"==typeof o&&i<=o)throw new SA({validBefore:i,validAfter:o});if(t)for(let e of t)e.to&&ov(e.to,{strict:!1});if(r<=0)throw new Sf({chainId:r});if(a&&BigInt(a)>2n**256n-1n)throw new Sg({feeCap:a});if(n&&a&&n>a)throw new Sy({maxFeePerGas:a,maxPriorityFeePerGas:n})}function ST(e){let t=oY((0,A.iN)(e,1),"Hex"),[r,a,n,i,o,s,l,c,d,p,u,m,h,g,f]=t,b=Array.isArray(g)?g:void 0,y=b?f:g;if(13!==t.length&&14!==t.length&&15!==t.length)throw new Sb({attributes:{authorizationList:h,chainId:r,maxPriorityFeePerGas:a,maxFeePerGas:n,gas:i,calls:o,accessList:s,keyAuthorization:b,nonceKey:l,nonce:c,validBefore:d,validAfter:p,feeToken:u,feePayerSignatureOrSender:m,...t.length>12?{signature:y}:{}},serialized:e,type:Sw});let k={chainId:Number(r),type:Sw};(0,A.BH)(i)&&"0x"!==i&&(k.gas=BigInt(i)),(0,A.BH)(c)&&(k.nonce="0x"===c?0n:BigInt(c)),(0,A.BH)(n)&&"0x"!==n&&(k.maxFeePerGas=BigInt(n)),(0,A.BH)(a)&&"0x"!==a&&(k.maxPriorityFeePerGas=BigInt(a)),(0,A.BH)(l)&&(k.nonceKey="0x"===l?0n:BigInt(l)),(0,A.BH)(d)&&"0x"!==d&&(k.validBefore=Number(d)),(0,A.BH)(p)&&"0x"!==p&&(k.validAfter=Number(p)),(0,A.BH)(u)&&"0x"!==u&&(k.feeToken=u),o&&"0x"!==o&&(k.calls=o.map(e=>{let[t,r,a]=e,n={};return t&&"0x"!==t&&(n.to=t),r&&"0x"!==r&&(n.value=BigInt(r)),a&&"0x"!==a&&(n.data=a),n})),s?.length!==0&&"0x"!==s&&(k.accessList=function(e){let t=[];for(let r=0;r<e.length;r++){let[a,n]=e[r];a&&ov(a,{strict:!1}),t.push({address:a,storageKeys:n.map(e=>(0,A.BH)(e)&&32===(0,A.QN)(e)?e:(0,A.mF)(e))})}return t}(s)),h?.length!==0&&"0x"!==h&&(k.authorizationList=function(e){let t=[];for(let r of e)t.push(function(e){let[t,r,a,n]=e,i={address:r,chainId:"0x"===t?0:Number(t),nonce:"0x"===a?0n:BigInt(a)};return n&&(i.signature=RP(n)),function(e,t={}){if("string"==typeof e.chainId)return RG(e);let r={...e,address:RH(e.address)};return t.signature?{...r,signature:t.signature}:r}(i)}(r));return t}(h)),"0x"!==m&&void 0!==m&&("0x00"===m||oC(m)?(k.feePayerSignature=null,oC(m)&&(k.from=m)):k.feePayerSignature=function(e){let[t,r,a]=e;return o7({r:"0x"===r?0n:BigInt(r),s:"0x"===a?0n:BigInt(a),yParity:"0x"===t?0:Number(t)})}(m)),b&&(k.keyAuthorization=RY(b));let x=y?RP(y):void 0;if(x&&(k={...k,signature:x}),!k.from&&x)try{k.from=RS({payload:SU(SE(k)),signature:x,root:!0})}catch{}return Sv(k),k}function SE(e,t={}){let{feePayerSignature:r,signature:a}=t,n="string"==typeof e?ST(e):e;return n.from&&(n.from=RH(n.from)),n.calls&&(n.calls=n.calls.map(e=>({...e,...e.to?{to:RH(e.to)}:{}}))),Sv(n),{...n,...a?{signature:RD(a)}:{},...r?{feePayerSignature:o7(r)}:{},type:"tempo"}}function SB(e,t={}){let{accessList:r,authorizationList:a,calls:n,chainId:i,feeToken:o,gas:s,keyAuthorization:l,nonce:c,nonceKey:d,maxFeePerGas:p,maxPriorityFeePerGas:u,validBefore:m,validAfter:h}=e;Sv(e);let g=function(e){if(!e||0===e.length)return[];let t=[];for(let{address:r,storageKeys:a}of e){for(let e=0;e<a.length;e++)if(32!==(0,A.QN)(a[e]))throw new Su({storageKey:a[e]});r&&ov(r,{strict:!1}),t.push([r,a])}return t}(r),f=t.signature||e.signature,b=function(e){if(!e||0===e.length)return[];let t=[];for(let r of e)t.push(function(e){let{address:t,chainId:r,nonce:a}=e,n=e.signature?RF(e.signature):void 0;return[r?(0,A.oB)(r):"0x",t,a?(0,A.oB)(a):"0x",...n?[n]:[]]}(r));return t}(a),y=n.map(e=>[e.to?RH(e.to):"0x",e.value?(0,A.oB)(e.value):"0x",e.data??"0x"]),k=!1,x=(()=>
2053{if(t.sender)return t.sender;if("feePayer"===t.format&&f){let t=RD(f);if("keychain"===t.type)return t.userAddress;if("p256"===t.type||"webAuthn"===t.type)return oE(t.publicKey);if("secp256k1"===t.type)return oE(sd({payload:SU(SE(e)),signature:t.signature}))}let r=void 0!==t.feePayerSignature?t.feePayerSignature:e.feePayerSignature;return null===r?(k=!0,"0x00"):r?o9(r):"0x"})(),w=[(0,A.oB)(i),u?(0,A.oB)(u):"0x",p?(0,A.oB)(p):"0x",s?(0,A.oB)(s):"0x",y,g,d?(0,A.oB)(d):"0x",c?(0,A.oB)(c):"0x","number"==typeof m?(0,A.oB)(m):"0x","number"==typeof h?(0,A.oB)(h):"0x",k||"bigint"!=typeof o&&"string"!=typeof o?"0x":Se(o),x,b,...l?[R8(l)]:[],...f?[RF(RD(f))]:[]];return(0,A.eF)("feePayer"===t.format?Sk:Sx,o1(w))}function SC(e){return SB({...e,signature:void 0,...void 0!==e.feePayerSignature?{feePayerSignature:null}:{}})}function SU(e,t={}){let r=SI(e,{presign:!0});return t.from?op((0,A.eF)("0x04",r,RH(t.from))):r}function SI(e,t={}){return op(t.presign?SC(e):SB(e))}function SN(e,t){let r=RH(t.sender);return op(SB({...e,signature:void 0},{sender:r,format:"feePayer"}))}function SR(e){try{return Sv(e),!0}catch{return!1}}var SS=class extends A.kl{constructor(){super("Calls list cannot be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.CallsEmptyError"})}},SA=class extends A.kl{constructor({validBefore:e,validAfter:t}){super(`validBefore (${e}) must be greater than validAfter (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.InvalidValidityWindowError"})}},SP=[{name:"authorizeKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"uint8",name:"signatureType"},{type:"uint64",name:"expiry"},{type:"bool",name:"enforceLimits"},{type:"tuple[]",name:"limits",components:[{type:"address",name:"token"},{type:"uint256",name:"amount"}]}],outputs:[]},{name:"authorizeKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"uint8",name:"signatureType"},{type:"tuple",name:"config",components:[{type:"uint64",name:"expiry"},{type:"bool",name:"enforceLimits"},{type:"tuple[]",name:"limits",components:[{type:"address",name:"token"},{type:"uint256",name:"amount"},{type:"uint64",name:"period"}]},{type:"bool",name:"allowAnyCalls"},{type:"tuple[]",name:"allowedCalls",components:[{type:"address",name:"target"},{type:"tuple[]",name:"selectorRules",components:[{type:"bytes4",name:"selector"},{type:"address[]",name:"recipients"}]}]}]}],outputs:[]},{name:"revokeKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"}],outputs:[]},{name:"updateSpendingLimit",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"address",name:"token"},{type:"uint256",name:"newLimit"}],outputs:[]},{name:"setAllowedCalls",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"tuple[]",name:"scopes",components:[{type:"address",name:"target"},{type:"tuple[]",name:"selectorRules",components:[{type:"bytes4",name:"selector"},{type:"address[]",name:"recipients"}]}]}],outputs:[]},{name:"removeAllowedCalls",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"address",name:"target"}],outputs:[]},{name:"getKey",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"}],outputs:[{type:"tuple",components:[{type:"uint8",name:"signatureType"},{type:"address",name:"keyId"},{type:"uint64",name:"expiry"},{type:"bool",name:"enforceLimits"},{type:"bool",name:"isRevoked"}]}]},{name:"getRemainingLimit",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"},{type:"address",name:"token"}],outputs:[{type:"uint256",name:"remaining"}]},{name:"getRemainingLimitWithPeriod",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"},{type:"address",name:"token"}],outputs:[{type:"uint256",name:"remaining"},{type:"uint64",name:"periodEnd"}]},{name:"getAllowedCalls",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"}],outputs:[{type:"bool",name:"isScoped"},{type:"tuple[]",name:"scopes",components:[{type:"address",name:"target"},{type:"tuple[]",name:"selectorRules",components:[{type:"bytes4",name:"selector"},{type:"address[]",name:"recipients"}]}]}]},{name:"getTransactionKey",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"KeyAuthorized",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0},{type:"uint8",name:"signatureType"},{type:"uint64",name:"expiry"}]},{name:"KeyRevoked",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0}]},{name:"SpendingLimitUpdated",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0}
2053,{type:"address",name:"token",indexed:!0},{type:"uint256",name:"newLimit"}]},{name:"AccessKeySpend",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0},{type:"address",name:"token",indexed:!0},{type:"uint256",name:"amount"},{type:"uint256",name:"remainingLimit"}]},{name:"UnauthorizedCaller",type:"error",inputs:[]},{name:"KeyAlreadyExists",type:"error",inputs:[]},{name:"KeyNotFound",type:"error",inputs:[]},{name:"KeyExpired",type:"error",inputs:[]},{name:"SpendingLimitExceeded",type:"error",inputs:[]},{name:"InvalidSpendingLimit",type:"error",inputs:[]},{name:"InvalidSignatureType",type:"error",inputs:[]},{name:"ZeroPublicKey",type:"error",inputs:[]},{name:"ExpiryInPast",type:"error",inputs:[]},{name:"KeyAlreadyRevoked",type:"error",inputs:[]},{name:"SignatureTypeMismatch",type:"error",inputs:[{type:"uint8",name:"expected"},{type:"uint8",name:"actual"}]},{name:"CallNotAllowed",type:"error",inputs:[]},{name:"InvalidCallScope",type:"error",inputs:[]},{name:"LegacyAuthorizeKeySelectorChanged",type:"error",inputs:[{type:"bytes4",name:"newSelector"}]}];function SD(e){let t=e.account;return t?.keyType&&"secp256k1"!==t.keyType||t?.source==="accessKey"||void 0!==e.calls||void 0!==e.feePayer||void 0!==e.feeToken||void 0!==e.ke
2053yAuthorization||void 0!==e.nonceKey||void 0!==e.signature||void 0!==e.validBefore||void 0!==e.validAfter?"tempo":e.type?e.type:a7(e)}function SL(e){try{let t=SD(e);return"tempo"===t}catch{return!1}}async function SO(e,t){if(!SL(e)){if(t&&"type"in t&&"secp256k1"!==t.type)throw Error("Unsupported signature type. Expected `secp256k1` but got `"+t.type+"`.");if(t&&"type"in t){let{r,s:a,yParity:n}=t?.signature;return iy(e,{r:(0,A.oB)(r,{size:32}),s:(0,A.oB)(a,{size:32}),yParity:n})}return iy(e,t)}if("tempo"===SD(e))return SF(e,t);throw Error("Unsupported transaction type")}async function SF(e,t){let r=e.signature?e.signature:t&&"type"in t?t:t?Rd.from({r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)}):void 0,{chainId:a,feePayer:n,nonce:i,...o}=e,s=(()=>{let t=e.feePayerSignature;return t?{r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)}:null===t||n?null:void 0})(),l={...o,calls:o.calls?.length?o.calls:[{to:o.to||(o.data&&"0x"!==o.data?void 0:"0x0000000000000000000000000000000000000000"),value:o.value,data:o.data}],chainId:Number(a),feePayerSignature:s,type:"tempo",...i?{nonce:BigInt(i)}:{}};if(!0!==n||s||delete l.feeToken,r&&"object"==typeof e.feePayer){let t=Sp.from(l,{signature:r}),a=(()=>{if(e.from)return e.from;if("secp256k1"===r.type)return oE(sd({payload:Sp.getSignPayload(t),signature:r.signature}));throw Error("Unable to extract sender from transaction or signature.")})(),n=Sp.getFeePayerSignPayload(t,{sender:a}),i=await e.feePayer.sign({hash:n});return Sp.serialize(t,{feePayerSignature:o7(i)})}return!0===n?r?Sp.serialize(l,{format:"feePayer",sender:e.from,signature:r}):Sp.serialize(l,{feePayerSignature:null}):Sp.serialize({...l,...n&&!s?{feeToken:void 0}:{}},{feePayerSignature:void 0,signature:r})}async function S_(e,t){var r;let{chainId:a,key:n,expiry:i,limits:o,scopes:s}=t,{accessKeyAddress:l,keyType:c}="accessKeyAddress"in(r=n)?{accessKeyAddress:r.accessKeyAddress,keyType:r.keyType}:"publicKey"in r&&r.publicKey?{accessKeyAddress:oE(oh(r.publicKey)),keyType:r.type}:{accessKeyAddress:r.address,keyType:r.type},d=await e.sign({hash:RZ.getSignPayload({address:l,chainId:a,expiry:i,limits:o,scopes:s,type:c})});return RZ.from({address:l,chainId:a,expiry:i,limits:o,scopes:s,signature:Rd.from(d),type:c})}[...SP];var SM="0xaAAAaaAA00000000000000000000000000000000",Sj=["genesis","t0","t1","t1a","t1b","t1c","t2","t3"];function S$(e){return{...e,data:(0,A.pT)(e),to:e.address}}var SW={0:"secp256k1",1:"p256",2:"webAuthn"}
2053,Sz={true:"limited",false:"unlimited"};async function SV(e,t){return SV.inner(nR,e,t)}async function SH(e,t){return SH.inner(nS,e,t)}async function Sq(e,t){return Sq.inner(nS,e,t)}async function SG(e,t){let{account:r=e.account,accessKey:a,...n}=t;if(!r)throw Error("account is required.");let i=(0,A.J5)(r),o=await nu(e,{...n,...SG.call({account:i.address,accessKey:a})});return{address:o.keyId,keyType:SW[o.signatureType]??"secp256k1",expiry:o.expiry,spendPolicy:Sz[`${o.enforceLimits}`],isRevoked:o.isRevoked}}async function SK(e,t){let{account:r=e.account,accessKey:a,token:n,...i}=t;if(!r)throw Error("account is required.");let o=(0,A.J5)(r),s=e.chain?.hardfork;if(s&&Sj.indexOf(s)<Sj.indexOf("t3"))return{remaining:await nu(e,{...i,...SK.call({account:o.address,accessKey:a,token:n})}),periodEnd:void 0};let[l,c]=await nu(e,{...i,...SK.callWithPeriod({account:o.address,accessKey:a,token:n})});return{remaining:l,periodEnd:c}}function SJ(e){return"string"==typeof e?e:e.accessKeyAddress}function SZ(e){if(!e)return e;let t=(e.length-2)/2;return t<=4?e:(0,A.oB)(t,{size:2})}!function(e){e.inner=async function(e,t,r){let{accessKey:a,chainId:n=t.chain?.id,expiry:i,limits:o,scopes:s,...l}=r,c=l.account??t.account;if(!c)throw Error("account is required.");if(!n)throw Error("chainId is required.");let d=(0,A.J5)(c),p=await S_(d,{chainId:BigInt(n),key:a,expiry:i,limits:o,scopes:s});return await e(t,{...l,keyAuthorization:p})},e.extractEvent=function(e){let[t]=nc({abi:SP,logs:e,eventName:"KeyAuthorized",strict:!0});if(!t)throw Error("`KeyAuthorized` event not found.");return t}}(SV||(SV={})),function(e){async function t(t,r,a){let{accessKey:n,...i}=a,o=e.call({accessKey:n});return await t(r,{...i,...o})}e.inner=t,e.call=function(e){let{accessKey:t}=e;return S$({address:SM,abi:SP,functionName:"revokeKey",args:[SJ(t)]})},e.extractEvent=function(e){let[t]=nc({abi:SP,logs:e,eventName:"KeyRevoked",strict:!0});if(!t)throw Error("`KeyRevoked` event not found.");return t}}(SH||(SH={})),function(e){async function t(t,r,a){let{accessKey:n,token:i,limit:o,...s}=a,l=e.call({accessKey:n,token:i,limit:o});return await t(r,{...s,...l})}e.inner=t,e.call=function(e){let{accessKey:t,token:r,limit:a}=e;return S$({address:SM,abi:SP,functionName:"updateSpendingLimit",args:[SJ(t),r,a]})},e.extractEvent=function(e){let[t]=nc({abi:SP,logs:e,eventName:"SpendingLimitUpdated",strict:!0});if(!t)throw Error("`SpendingLimitUpdated` event not found.");return t}}(Sq||(Sq={})),(SG||(SG={})).call=function(e){let{account:t,accessKey:r}=e;return S$({address:SM,abi:SP,functionName:"getKey",args:[t,SJ(r)]})},function(e){e.call=function(e){let{account:t,accessKey:r,token:a}=e;return S$({address:SM,abi:SP,functionName:"getRemainingLimit",args:[t,SJ(r),a]})},e.callWithPeriod=function(e){let{account:t,accessKey:r,token:a}=e;return S$({address:SM,abi:SP,functionName:"getRemainingLimitWithPeriod",args:[t,SJ(r),a]})}}(SK||(SK={}));var SQ=new Map;async function SX(e){SQ.set(e,(SQ.get(e)??0)+1),await Promise.resolve();let t=(SQ.get(e)??0)>1;return queueMicrotask(()=>{let t=SQ.get(e)??0;t<=1?SQ.delete(e):SQ.set(e,t-1)}),t}var SY={blockTime:1e3,extendSchema:{},formatters:{transaction:a$({exclude:["aaAuthorizationList"],format:function(e){if(!SL(e))return aj(e);let t=null==e.blockTimestamp?void 0:BigInt(e.blockTimestamp),{feePayerSignature:r,gasPrice:a,nonce:n,...i}=St.fromRpc(e);return{...i,accessList:i.accessList,...void 0!==t&&{blockTimestamp:t},feePayerSignature:r?{r:(0,A.oB)(r.r,{size:32}),s:(0,A.oB)(r.s,{size:32}),v:BigInt(r.v??27),yParity:r.yParity}:void 0,nonce:Number(n),typeHex:St.toRpcType[i.type],type:i.type}}}),transactionReceipt:nL({format:function(e){return nD(e)}}),transactionRequest:(0,A.bm)({format:function(e,t){let r=e.account?(0,A.J5)(e.account):void 0;if(!SL(e))return(0,A.Bv)(e,t);t&&(e.calls=e.calls??[{to:e.to||(e.data&&"0x"!==e.data?void 0:"0x0000000000000000000000000000000000000000"),value:e.value,data:e.data}]),!0!==e.feePayer||e.feePayerSignature||delete e.feeToken;let a=Sl.toRpc({...e,type:"tempo"});"estimateGas"===t&&(a.maxFeePerGas=void 0,a.maxPriorityFeePerGas=void 0),a.to=void 0,a.data=void 0,a.value=void 0;let[n,i]=(()=>{let t=r&&"keyType"in r?r.keyType:r?.source;return t?"webAuthn"===t?["webAuthn","0x0578"]:["p256","secp256k1"].includes(t)?[t,void 0]:[e.keyType,SZ(e.keyData)]:[e.keyType,SZ(e.keyData)]})(),o=r&&"accessKeyAddress"in r?r.accessKeyAddress:e.keyId;return r&&(a.from=r.address),{...a,...e.capabilities?{capabilities:e.capabilities}:{},...i?{keyData:i}:{},...o?{keyId:o}:{},...n?{keyType:n}:{},...void 0!==e.feePayer?{feePayer:"object"==typeof e.feePayer?(0,A.J5)(e.feePayer):e.feePayer}:{},..."feePayerSignature"in e&&void 0!==e.feePayerSignature?{feePayerSignature:e.feePayerSignature}:{}}}})},prepareTransactionRequest:[async(e,{phase:t})=>("afterFillParameters"===t?e.feePayer&&(e.keyAuthorization?.signature.type==="webAuthn"?e.gas=(e.gas??0n)+20000n:e.account?.source==="accessKey"&&(e.gas=(e.gas??0n)+10000n)):(await (async()=>
2053{if("expiring"===e.nonceKey||e.feePayer&&void 0===e.nonceKey)return!0;let t=e.account?.address;return!!t&&void 0===e.nonceKey&&await SX(t)})()?(e.nonceKey=A.Ao,e.nonce=0,void 0===e.validBefore&&(e.validBefore=Math.floor(Date.now()/1e3)+25)):void 0!==e.nonceKey&&(e.nonce="number"==typeof e.nonce?e.nonce:0),!e.feeToken&&e.chain?.feeToken&&(e.feeToken=e.chain.feeToken)),e),{runAt:["beforeFillTransaction","afterFillParameters"]}],serializers:{transaction:(e,t)=>SO(e,t)},async verifyHash(e,t){let{address:r,hash:a,signature:n,mode:i}=t,o=(()=>{if("string"==typeof n)try{return Rd.deserialize(n)}catch{return}})();if(o){if(o?.type==="keychain"&&"allowAccessKey"===i){let n="v2"===o.version?(0,A.So)((0,A.eF)("0x04",a,r)):a,i=(()=>{try{return Rd.extractAddress({payload:n,signature:o.inner})}catch{return}})();if(!i)return!1;let s=await SG(e,{account:r,accessKey:i,blockNumber:t.blockNumber,blockTag:t.blockTag});return!(s.isRevoked||s.expiry<=BigInt(Math.floor(Date.now()/1e3)))&&Rd.verify(o.inner,{address:i,payload:n})}if("p256"===o.type||"webAuthn"===o.type){let n=await il(e,{address:r,blockNumber:t.blockNumber,blockTag:t.blockTag});if(!n||"0xef01007702c00000000000000000000000000000000000"===n)return Rd.verify(o,{address:r,payload:a})}}return await ax(e,sG,"verifyHash")({...t,chain:null})}},S0=iv({...SY,id:4217,blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.tempo.xyz"}},name:"Tempo Mainnet",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.tempo.xyz"],webSocket:["wss://rpc.tempo.xyz"]}}}),S1=iv({...SY,id:31318,name:"Tempo Devnet",hardfork:"t3",blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.devnet.tempo.xyz"}},nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.devnet.tempoxyz.dev"],webSocket:["wss://rpc.devnet.tempoxyz.dev"]}},testnet:!0}),S2=iv({...SY,id:1337,name:"Tempo",hardfork:"t3",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["http://localhost:8545"]}}}),S3=iv({...SY,id:42431,blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.testnet.tempo.xyz"}},name:"Tempo Testnet (Moderato)",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.moderato.tempo.xyz"],webSocket:["wss://rpc.moderato.tempo.xyz"]}},testnet:!0}),S6=iv({id:1559,name:"Tenet",network:"tenet-mainnet",nativeCurrency:{name:"TENET",symbol:"TENET",decimals:18},rpcUrls:{default:{http:["https://rpc.tenet.org"]}},blockExplorers:{default:{name:"TenetScan Mainnet",url:"https://tenetscan.io",apiUrl:"https://tenetscan.io/api"}},testnet:!1}),S8=iv({id:752025,name:"Ternoa",nativeCurrency:{name:"Capsule Coin",symbol:"CAPS",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.zkevm.ternoa.network"]}},blockExplorers:{default:{name:"Ternoa Explorer",url:"https://explorer-mainnet.zkevm.ternoa.network"}},testnet:!1}),S7=iv({id:7,name:"ThaiChain",nativeCurrency:{name:"TCH",symbol:"TCH",decimals:18},rpcUrls:{default:{http:["https://rpc.thaichain.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp.thaichain.org",apiUrl:"https://exp.thaichain.org/api"}},contracts:{multicall3:{address:"0x0DaD6130e832c21719C5CE3bae93454E16A84826",blockCreated:4806386}},testnet:!1}),S4=iv({id:8428,name:"THAT Mainnet",nativeCurrency:{name:"THAT",symbol:"THAT",decimals:18},rpcUrls:{default:{http:["https://api.thatchain.io/mainnet"]}},blockExplorers:{default:{name:"Blockscout",url:"https://that.blockscout.com"}},testnet:!1}),S5=iv({id:361,name:"Theta Mainnet",nativeCurrency:{name:"TFUEL",symbol:"TFUEL",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-api.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"Theta Explorer",url:"https://explorer.thetatoken.org"}},testnet:!1}),S9=iv({id:365,name:"Theta Testnet",nativeCurrency:{name:"TFUEL",symbol:"TFUEL",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-api-testnet.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"Theta Explorer",url:"https://testnet-explorer.thetatoken.org"}},testnet:!0}),Ae=iv({id:108,name:"ThunderCore Mainnet",nativeCurrency:{name:"TT",symbol
2053:"TT",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.thundercore.com"]}},blockExplorers:{default:{name:"ThunderCore Explorer",url:"https://explorer-mainnet.thundercore.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1}),At=iv({id:997,name:"5ireChain Thunder Testnet",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Thunder Explorer",url:"https://testnet.5irescan.io/"}},testnet:!0}),Ar=iv({id:62092,name:"TikTrix Testnet",nativeCurrency:{name:"tTTX",symbol:"tTTX",decimals:18},rpcUrls:{default:{http:["https://tiktrix-rpc.xyz"]}},blockExplorers:{default:{name:"TikTrix Testnet Explorer",url:"https://tiktrix.xyz"}},testnet:!0}),Aa=iv({id:6969,name:"Tomb Mainnet",nativeCurrency:{name:"TOMB",symbol:"TOMB",decimals:18},rpcUrls:{default:{http:["https://rpc.tombchain.com"]}},blockExplorers:{default:{name:"Tomb Explorer",url:"https://tombscout.com"}},testnet:!1}),An=iv({...xS,id:61166,name:"Treasure",nativeCurrency:{decimals:18,name:"MAGIC",symbol:"MAGIC"},rpcUrls:{default:{http:["https://rpc.treasure.lol"],webSocket:["wss://rpc.treasure.lol/ws"]}},blockExplorers:{default:{name:"Treasure Block Explorer",url:"https://treasurescan.io"}},contracts:{multicall3:{address:"0x2e29fe39496a56856D8698bD43e1dF4D0CE6266a",blockCreated:101}},testnet:!1}),Ai=iv({...xS,id:978658,name:"Treasure Topaz Testnet",nativeCurrency:{decimals:18,name:"MAGIC",symbol:"MAGIC"},rpcUrls:{default:{http:["https://rpc.topaz.treasure.lol"],webSocket:["wss://rpc.topaz.treasure.lol/ws"]}},blockExplorers:{default:{name:"Treasure Topaz Block Explorer",url:"https://topaz.treasurescan.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:108112}},testnet:!0}),Ao=iv({id:0x2b6653dc,name:"Tron",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://api.trongrid.io/jsonrpc"]}},blockTime:3e3,blockExplorers:{default:{name:"Tronscan",url:"https://tronscan.org",apiUrl:"https://apilist.tronscanapi.com/api"}}}),As=iv({id:0xcd8690dc,name:"Tron Nile",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://nile.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://nile.tronscan.org"}},testnet:!0}),Al=iv({id:0x94a9059e,name:"Tron Shasta",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://api.shasta.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://shasta.tronscan.org"}},testnet:!0}),Ac=iv({id:8,name:"Ubiq Mainnet",nativeCurrency:{name:"UBQ",symbol:"UBQ",decimals:18},rpcUrls:{default:{http:["https://pyrus2.ubiqscan.io"]}},blockExplorers:{default:{name:"Ubiq Scan",url:"https://ubiqscan.io"}},testnet:!1}),Ad=iv({id:19991,name:"Ultra EVM",nativeCurrency:{decimals:18,name:"Ultra Token",symbol:"UOS"},rpcUrls:{default:{http:["https://evm.ultra.eosusa.io"]}},blockExplorers:{default:{name:"Ultra EVM Explorer",url:"https://evmexplorer.ultra.io"}}}),Ap=iv({id:18881,name:"Ultra EVM Testnet",nativeCurrency:{decimals:18,name:"Ultra Token",symbol:"UOS"},rpcUrls:{default:{http:["https://evm.test.ultra.eosusa.io"]}},blockExplorers:{default:{name:"Ultra EVM Testnet Explorer",url:"https://evmexplorer.testnet.ultra.io"}},testnet:!0}),Au=iv({id:1231,name:"Ultron Mainnet",nativeCurrency:{name:"ULX",symbol:"ULX",decimals:18},rpcUrls:{default:{http:["https://ultron-rpc.net"]}},blockExplorers:{default:{name:"Ultron Scan",url:"https://ulxscan.com"}},testnet:!1}),Am=iv({id:1230,name:"Ultron Testnet",nativeCurrency:{name:"ULX",symbol:"ULX",decimals:18},rpcUrls:{default:{http:["https://ultron-dev.io"]}},blockExplorers:{default:{name:"Ultron Scan",url:"https://explorer.ultron-dev.io"}},testnet:!0}),Ah=iv({...xK,id:130,name:"Unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://mainnet.unichain.org/"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz",apiUrl:"https://api.uniscan.xyz/api"}},contracts:{...xK.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{1:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{1:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{1:{address:"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA"}}},sourceId:1}),Ag=iv({...xK,id:1301,name:"Unichain Sepolia",nativeCurrency:{name:"Ether",symbol
2053:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://sepolia.unichain.org"]}},blockExplorers:{default:{name:"Uniscan",url:"https://sepolia.uniscan.xyz",apiUrl:"https://api-sepolia.uniscan.xyz/api"}},contracts:{...xK.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},portal:{0xaa36a7:{address:"0x0d83dab629f0e0F9d36c0Cbc89B69a489f0751bD"}},l1StandardBridge:{0xaa36a7:{address:"0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2"}},disputeGameFactory:{0xaa36a7:{address:"0xeff73e5aa3B9AEC32c659Aa3E00444d20a84394b"}}},testnet:!0,sourceId:0xaa36a7}),Af=iv({id:8880,name:"Unique Mainnet",nativeCurrency:{decimals:18,name:"UNQ",symbol:"UNQ"},rpcUrls:{default:{http:["https://rpc.unique.network"]}},blockExplorers:{default:{name:"Unique Subscan",url:"https://unique.subscan.io/"}}}),Ab=iv({id:8882,name:"Opal Testnet",nativeCurrency:{decimals:18,name:"OPL",symbol:"OPL"},rpcUrls:{default:{http:["https://rpc-opal.unique.network"]}},blockExplorers:{default:{name:"Opal Subscan",url:"https://opal.subscan.io/"}},testnet:!0}),Ay=iv({id:8881,name:"Quartz Mainnet",nativeCurrency:{decimals:18,name:"QTZ",symbol:"QTZ"},rpcUrls:{default:{http:["https://rpc-quartz.unique.network"]}},blockExplorers:{default:{name:"Quartz Subscan",url:"https://quartz.subscan.io/"}}}),Ak=iv({id:18233,name:"Unreal",nativeCurrency:{name:"reETH",decimals:18,symbol:"reETH"},rpcUrls:{default:{http:["https://rpc.unreal-orbit.gelato.digital"]}},blockExplorers:{default:{name:"Unreal Explorer",url:"https://unreal.blockscout.com",apiUrl:"https://unreal.blockscout.com/api/v2"}},testnet:!0,contracts:{multicall3:{address:"0x8b6B0e60D8CD84898Ea8b981065A12F876eA5677",blockCreated:1745}}}),Ax=iv({id:1480,name:"Vana",blockTime:6e3,nativeCurrency:{decimals:18,name:"Vana",symbol:"VANA"},rpcUrls:{default:{http:["https://rpc.vana.org/"]}},blockExplorers:{default:{name:"Vana Block Explorer",url:"https://vanascan.io",apiUrl:"https://vanascan.io/api"}},contracts:{multicall3:{address:"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",blockCreated:716763}}}),Aw=iv({id:14800,name:"Vana Moksha Testnet",blockTime:6e3,nativeCurrency:{decimals:18,name:"Vana",symbol:"VANA"},rpcUrls:{default:{http:["https://rpc.moksha.vana.org"]}},blockExplorers:{default:{name:"Vana Moksha Testnet",url:"https://moksha.vanascan.io",apiUrl:"https://moksha.vanascan.io/api"}},contracts:{multicall3:{address:"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",blockCreated:732283}},testnet:!0}),Av=iv({id:2040,name:"Vanar Mainnet",nativeCurrency:{name:"VANRY",symbol:"VANRY",decimals:18},rpcUrls:{default:{http:["https://rpc.vanarchain.com"]}},blockExplorers:{default:{name:"Vanar Mainnet Explorer",url:"https://explorer.vanarchain.com/"}},testnet:!1}),AT=iv({id:100009,name:"Vechain",nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},rpcUrls:{default:{http:["https://mainnet.vechain.org"]}},blockExplorers:{default:{name:"Vechain Explorer",url:"https://explore.vechain.org"},vechainStats:{name:"Vechain Stats",url:"https://vechainstats.com"}}}),AE=iv({id:106,name:"Velas EVM Mainnet",nativeCurrency:{name:"VLX",symbol:"VLX",decimals:18},rpcUrls:{default:{http:["https://evmexplorer.velas.com/rpc"]}},blockExplorers:{default:{name:"Velas Explorer",url:"https://evmexplorer.velas.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0x354b739}},testnet:!1}),AB=iv({id:88,name:"Viction",nativeCurrency:{name:"Viction",symbol:"VIC",decimals:18},rpcUrls:{default:{http:["https://rpc.viction.xyz"]}},blockExplorers:{default:{name:"VIC Scan",url:"https://vicscan.xyz"}},testnet:!1}),AC=iv({id:89,name:"Viction Testnet",nativeCurrency:{name:"Viction",symbol:"VIC",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.viction.xyz"]}},blockExplorers:{default:{name:"VIC Scan",url:"https://testnet.vicscan.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0xb9b3c3}},testnet:!0}),AU=iv({id:888888,name:"Vision",nativeCurrency:{name:"VISION",symbol:"VS",decimals:18},rpcUrls:{default:{http:["https://infragrid.v.network/ethereum/compatible"]}},blockExplorers:{default:{name:"Vision Scan",url:"https://visionscan.org"}},testnet:!1}
2053),AI=iv({id:666666,name:"Vision Testnet",nativeCurrency:{name:"VISION",symbol:"VS",decimals:18},rpcUrls:{default:{http:["https://vpioneer.infragrid.v.network/ethereum/compatible"]}},blockExplorers:{default:{name:"Vision Scan",url:"https://visionscan.org/?chain=vpioneer"}},testnet:!0}),AN=iv({id:888,name:"Wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:0x1823c86}}}),AR=iv({id:999,name:"Wanchain Testnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:0x1798e18}},testnet:!0}),AS=iv({id:9496,name:"WeaveVM Alphanet",nativeCurrency:{name:"Testnet WeaveVM",symbol:"tWVM",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.wvm.dev"]}},blockExplorers:{default:{name:"WeaveVM Alphanet Explorer",url:"https://explorer.wvm.dev"}},testnet:!0}),AA=iv({id:1111,name:"WEMIX",network:"wemix-mainnet",nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},rpcUrls:{default:{http:["https://api.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://explorer.wemix.com"}}}),AP=iv({id:1112,name:"WEMIX Testnet",network:"wemix-testnet",nativeCurrency:{name:"WEMIX",symbol:"tWEMIX",decimals:18},rpcUrls:{default:{http:["https://api.test.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://testnet.wemixscan.com",apiUrl:"https://testnet.wemixscan.com/api"}},testnet:!0}),AD=iv({id:0x190f1b45,name:"Westend Asset Hub",nativeCurrency:{decimals:18,name:"Westies",symbol:"WND"},rpcUrls:{default:{http:["https://westend-asset-hub-eth-rpc.polkadot.io"]}},blockExplorers:{default:{name:"subscan",url:"https://westend-asset-hub-eth-explorer.parity.io"}},testnet:!0}),AL=iv({testnet:!1,name:"Whitechain",blockExplorers:{default:{name:"Whitechain Explorer",url:"https://explorer.whitechain.io"}},id:1875,rpcUrls:{default:{http:["https://rpc.whitechain.io"]}},nativeCurrency:{decimals:18,name:"WhiteBIT Coin",symbol:"WBT"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0x180b54d}}}),AO=iv({testnet:!0,name:"Whitechain Testnet",blockExplorers:{default:{name:"Whitechain Explorer",url:"https://testnet.whitechain.io"}},id:2625,rpcUrls:{default:{http:["https://rpc-testnet.whitechain.io"]}},nativeCurrency:{decimals:18,name:"WhiteBIT Coin",symbol:"WBT"}}),AF=iv({id:42070,name:"WMC Testnet",nativeCurrency:{name:"WMTx",symbol:"WMTx",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet-base.worldmobile.net"]}},blockExplorers:{default:{name:"WMC Explorer",url:"https://explorer2-base-testnet.worldmobile.net"}},testnet:!0}),A_=iv({...xK,id:480,name:"World Chain",network:"worldchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://worldchain-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Worldscan",url:"https://worldscan.org",apiUrl:"https://api.worldscan.org/api"},blockscout:{name:"Blockscout",url:"https://worldchain-mainnet.explorer.alchemy.com",apiUrl:"https://worldchain-mainnet.explorer.alchemy.com/api"}},contracts:{...xK.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{1:{address:"0x069c4c579671f8c120b1327a73217D01Ea2EC5ea"}},l2OutputOracle:{1:{address:"0x19A6d1E9034596196295CF148509796978343c5D"}},portal:{1:{address:"0xd5ec14a83B7d95BE1E2Ac12523e2dEE12Cbeea6C"}},l1StandardBridge:{1:{address:"0x470458C91978D2d929704489Ad730DC3E3001113"}}},testnet:!1,sourceId:1}),AM=iv({...xK,id:4801,name:"World Chain Sepolia",network:"worldchain-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://worldchain-sepolia.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Worldscan Sepolia",url:"https://sepolia.worldscan.org",apiUrl:"https://api-sepolia.worldscan.org/api"},blockscout:{name:"Blockscout",url:"https://worldchain-sepolia.explorer.alchemy.com",apiUrl:"https://worldchain-sepolia.explorer.alchemy.com/api"}},contracts:{...xK.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{0xaa36a7:{address:"0x8Ec1111f67Dad6b6A93B3F42DfBC92D81c98449A"}},l2OutputOracle:{0xaa36a7:{address:"0xc8886f8BAb6Eaeb215aDB5f1c686BF699248300e"}},portal:{0xaa36a7:{address:"0xFf6EBa109271fe6d4237EeeD4bAb1dD9A77dD1A4"}},l1StandardBridge:{0xaa36a7:{address:"0xd7DF54b3989855eb66497301a4aAEc33Dbb3F8DE"}}},testnet:!0,sourceId:0xaa36a7}),Aj=iv({id:103,name:"WorldLand Mainnet",nativeCurrency:{decimals:18,name:"WLC",symbol:"WLC"},rpcUrls:{default:{http:["https://seoul.worldland.foundation"]}},blockExplorers:{default:{name:"WorldLand Scan",url:"https://scan.worldland.foundation"}},testnet:!1}),A$=iv({id:660279,name:"Xai Mainnet",nativeCurrency:{name:"Xai",symbol:"XAI",decimals:18},rpcUrls:{default:{http:["https://xai-chain.net/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.xai-chain.net"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:222549}},testnet:!1}
vendor: 4,198 bytes, line 2053
2053),AW=iv({id:0x8c7f67225,name:"Xai Testnet",nativeCurrency:{name:"sXai",symbol:"sXAI",decimals:18},rpcUrls:{default:{http:["https://testnet-v2.xai-chain.net/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer-v2.xai-chain.net"}},testnet:!0}),Az=iv({id:50,name:"XDC Network",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xdcrpc.com"]}},blockExplorers:{default:{name:"XDCScan",url:"https://xdcscan.com"}},contracts:{multicall3:{address:"0x0B1795ccA8E4eC4df02346a082df54D437F8D9aF",blockCreated:0x485e5f4}}}),AV=iv({id:51,name:"Apothem Network",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]}},blockExplorers:{default:{name:"XDCScan",url:"https://testnet.xdcscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x38ff28d}},testnet:!0}),AH=iv({id:1643,name:"XGR Mainnet",nativeCurrency:{name:"XGR",symbol:"XGR",decimals:18},rpcUrls:{default:{http:["https://rpc.xgr.network"]}},blockExplorers:{default:{name:"XGR Explorer",url:"https://explorer.xgr.network"}}}),Aq=iv({id:196,name:"X Layer Mainnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},rpcUrls:{default:{http:["https://xlayerrpc.okx.com"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/xlayer",apiUrl:"https://www.oklink.com/api/v5/explorer/xlayer/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:47416}}}),AG=iv({id:1952,name:"X1 Testnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},rpcUrls:{default:{http:["https://xlayertestrpc.okx.com"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/xlayer-test"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:624344}},testnet:!0}),AK=iv({id:3721,name:"Xone Chain Mainnet",nativeCurrency:{decimals:18,name:"XOC",symbol:"XOC"},rpcUrls:{default:{http:["https://rpc.xone.org"]}},blockExplorers:{default:{name:"Xone Mainnet Explorer",url:"https://xonescan.com",apiUrl:"http://api.xonescan.com/api"}},testnet:!1}),AJ=iv({id:0x20352b3,name:"Xone Chain Testnet",nativeCurrency:{decimals:18,name:"XOC",symbol:"XOC"},rpcUrls:{default:{http:["https://rpc-testnet.xone.org","https://rpc-testnet.xone.plus","https://rpc-testnet.knight.center"]}},blockExplorers:{default:{name:"Xone Testnet Explorer",url:"https://testnet.xonescan.com",apiUrl:"http://api.testnet.xonescan.com/api"}},testnet:!0}),AZ=iv({id:0x134fe69,name:"Xphere Mainnet",nativeCurrency:{decimals:18,name:"XP",symbol:"XP"},rpcUrls:{default:{http:["https://en-bkk.x-phere.com"]}},blockExplorers:{default:{name:"Xphere Tamsa Explorer",url:"https://xp.tamsa.io"}},testnet:!1}),AQ=iv({id:1998991,name:"Xphere Testnet",nativeCurrency:{decimals:18,name:"XPT",symbol:"XPT"},rpcUrls:{default:{http:["http://testnet.x-phere.com"]}},blockExplorers:{default:{name:"Xphere Tamsa Explorer",url:"https://xpt.tamsa.io"}},testnet:!0}),AX=iv({id:37,name:"CONX Chain",nativeCurrency:{decimals:18,name:"XPLA",symbol:"XPLA"},rpcUrls:{default:{http:["https://dimension-evm-rpc.xpla.dev"]}},blockExplorers:{default:{name:"CONX Explorer",url:"https://explorer.conx.xyz"}},testnet:!1}),AY=iv({id:273,name:"XR One",nativeCurrency:{decimals:18,name:"XR1",symbol:"XR1"},rpcUrls:{default:{http:["https://xr1.calderachain.xyz/http"],webSocket:["wss://xr1.calderachain.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://xr1.calderaexplorer.xyz"}},testnet:!1}),A0=iv({id:144e4,name:"XRPL EVM",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.xrplevm.org"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.xrplevm.org",apiUrl:"https://explorer.xrplevm.org/api/v2"}},testnet:!1}),A1=iv({id:1440002,name:"XRPL EVM Devnet",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.xrplevm.org/"]},public:{http:["https://rpc.xrplevm.org/"]}},blockExplorers:{default:{name:"XRPLEVM Devnet Explorer",url:"https://explorer.xrplevm.org/"}},contracts:{multicall3:{address:"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31",blockCreated:0xe880a6}},testnet:!0}
2053),A2=iv({id:1449e3,name:"XRPL EVM Testnet",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.xrplevm.org"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.testnet.xrplevm.org",apiUrl:"https://explorer.testnet.xrplevm.org/api/v2"}},contracts:{multicall3:{address:"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31",blockCreated:492302}},testnet:!0}),A3=iv({id:2730,name:"XR Sepolia",nativeCurrency:{decimals:18,name:"tXR",symbol:"tXR"},rpcUrls:{default:{http:["https://xr-sepolia-testnet.rpc.caldera.xyz/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://xr-sepolia-testnet.explorer.caldera.xyz"}},testnet:!0}),A6=iv({id:50005,name:"Yooldo Verse",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.yooldo-verse.xyz"]}},blockExplorers:{default:{name:"Yooldo Verse Explorer",url:"https://explorer.yooldo-verse.xyz"}}}),A8=iv({id:50006,name:"Yooldo Verse Testnet",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.yooldo-verse.xyz"]}},blockExplorers:{default:{name:"Yooldo Verse Testnet Explorer",url:"https://explorer.testnet.yooldo-verse.xyz"}},testnet:!0}),A7=iv({id:8408,name:"ZenChain Testnet",nativeCurrency:{decimals:18,name:"ZTC",symbol:"ZTC"},rpcUrls:{default:{http:["https://zenchain-testnet.api.onfinality.io/public"],webSocket:["wss://zenchain-testnet.api.onfinality.io/public-ws"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:230019}},blockExplorers:{default:{name:"Zentrace",url:"https://zentrace.io"}},testnet:!0}),A4=iv({id:0x59454e4951,name:"Zeniq Mainnet",nativeCurrency:{name:"ZENIQ",symbol:"ZENIQ",decimals:18},rpcUrls:{default:{http:["https://api.zeniq.network"]}},blockExplorers:{default:{name:"Zeniq Explorer",url:"https://zeniqscan.com"}},testnet:!1}),A5=iv({id:543210,name:"Zero Network",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zerion.io/v1/zero"]}},blockExplorers:{default:{name:"Zero Network Explorer",url:"https://explorer.zero.network"}},testnet:!1}),A9=iv({id:7e3,name:"ZetaChain",nativeCurrency:{decimals:18,name:"Zeta",symbol:"ZETA"},rpcUrls:{default:{http:["https://zetachain-evm.blockpi.network/v1/rpc/public"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1632781}},blockExplorers:{default:{name:"ZetaScan",url:"https://zetascan.com"}},testnet:!1}),Pe=iv({id:7001,name:"ZetaChain Athens Testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2715217}},blockExplorers:{default:{name:"ZetaScan",url:"https://testnet.zetascan.com"}},testnet:!0}),Pt=iv({id:1337803,name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0}),Pr=iv({id:32769,name:"Zilliqa",network:"zilliqa",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.zilliqa.com"}},testnet:!1}),Pa=iv({id:33101,name:"Zilliqa Testnet",network:"zilliqa-testnet",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://dev-api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.testnet.zilliqa.com"}},testnet:!0}),Pn=iv({...xK,id:48900,name:"Zircuit Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.zircuit.com"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.zircuit.com"}},contracts:{...xK.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{1:{address:"0x92Ef6Af472b39F1b363da45E35530c24619245A4"}},portal:{1:{address:"0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"}},l1StandardBridge:{1:{address:"0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"}}},testnet:!1}
2053),Pi=iv({...xK,id:48898,name:"Zircuit Garfield Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://garfield-testnet.zircuit.com/"]}},blockExplorers:{default:{name:"Zircuit Garfield Testnet Explorer",url:"https://explorer.garfield-testnet.zircuit.com"}},contracts:{...xK.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{0xaa36a7:{address:"0xd69D3AC5CA686cCF94b258291772bc520FEAf211"}},portal:{0xaa36a7:{address:"0x4E21A71Ac3F7607Da5c06153A17B1DD20E702c21"}},l1StandardBridge:{0xaa36a7:{address:"0x87a7E2bCA9E35BA49282E832a28A6023904460D8"}}},testnet:!0}),Po=iv({id:42766,name:"ZKFair Mainnet",network:"zkfair-mainnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://scan.zkfair.io",apiUrl:"https://scan.zkfair.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6090959}},testnet:!1}),Ps=iv({id:43851,name:"ZKFair Testnet",network:"zkfair-testnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://testnet-rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://testnet-scan.zkfair.io"}},testnet:!0}),Pl=iv({id:810180,name:"zkLink Nova",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zklink.io"]}},blockExplorers:{default:{name:"zkLink Nova Block Explorer",url:"https://explorer.zklink.io"}}}),Pc=iv({id:810181,name:"zkLink Nova Sepolia Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zklink.io"]}},blockExplorers:{default:{name:"zkLink Nova Block Explorer",url:"https://sepolia.explorer.zklink.io"}},testnet:!0}),Pd=iv({...xS,blockTime:200,id:324,name:"ZKsync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"ZKsync Explorer",url:"https://explorer.zksync.io/",apiUrl:"https://block-explorer-api.mainnet.zksync.io/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:3908235},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:0x2b8b4fc}}}),Pp=iv({...xS,id:260,name:"ZKsync InMemory Node",network:"zksync-in-memory-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8011"]}},testnet:!0}),Pu=iv({...xS,id:272,name:"ZKsync CLI Local Custom Hyperchain",nativeCurrency:{name:"BAT",symbol:"BAT",decimals:18},rpcUrls:{default:{http:["http://localhost:15200"],webSocket:["ws://localhost:15201"]}},blockExplorers:{default:{name:"ZKsync explorer",url:"http://localhost:15005/",apiUrl:"http://localhost:15005/api"}},testnet:!0}),Pm=iv({...xS,id:270,name:"ZKsync CLI Local Hyperchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:15100"],webSocket:["ws://localhost:15101"]}},blockExplorers:{default:{name:"ZKsync explorer",url:"http://localhost:15005/",apiUrl:"http://localhost:15005/api"}},testnet:!0}),Ph=iv({id:9,name:"ZKsync CLI Local Hyperchain L1",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:15045"]}},blockExplorers:{default:{name:"Blockscout",url:"http://localhost:15001/",a
2053piUrl:"http://localhost:15001/api/v2"}},testnet:!0}),Pg=iv({...xS,id:270,name:"ZKsync CLI Local Node",network:"zksync-cli-local-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:3050"]}},testnet:!0}),Pf=iv({...xS,blockTime:200,id:300,name:"ZKsync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"ZKsync Explorer",url:"https://sepolia.explorer.zksync.io/",blockExplorerApi:"https://block-explorer-api.sepolia.zksync.dev/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:3855712}},testnet:!0}),Pb=iv({id:375,name:"zkXPLA Mainnet",network:"zkxpla",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zkxpla.io"]}},blockExplorers:{default:{name:"zkXPLA Mainnet Explorer",url:"https://explorer.zkxpla.io",apiUrl:"https://explorer.zkxpla.io/api"}},testnet:!1}),Py=iv({id:475,name:"zkXPLA Testnet",network:"zkxpla-testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet-rpc.zkxpla.io"]}},blockExplorers:{default:{name:"zkXPLA Testnet Explorer",url:"https://testnet-explorer.zkxpla.io",apiUrl:"https://testnet-explorer.zkxpla.io/api"}},testnet:!0}),Pk=iv({...xK,id:7777777,name:"Zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy",apiUrl:"https://explorer.zora.energy/api"}},contracts:{...xK.contracts,disputeGameFactory:{1:{address:"0xB0F15106fa1e473Ddb39790f197275BC979Aa37e"}},l2OutputOracle:{1:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882},portal:{1:{address:"0x1a0ad011913A150f69f6A19DF447A0CfD9551054"}},l1StandardBridge:{1:{address:"0x3e2Ea9B92B7E48A52296fD261dc26fd995284631"}}},sourceId:1}),Px=iv({...xK,id:0x3b9ac9ff,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/",apiUrl:"https://sepolia.explorer.zora.energy/api"}},contracts:{...xK.contracts,l2OutputOracle:{0xaa36a7:{address:"0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83160},portal:{0xaa36a7:{address:"0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f"}},l1StandardBridge:{0xaa36a7:{address:"0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB"}}},sourceId:0xaa36a7,testnet:!0}),Pw=iv({...xK,id:999,name:"Zora Goerli Testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy",apiUrl:"https://testnet.explorer.zora.energy/api"}},contracts:{...xK.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123},portal:{5:{address:"0xDb9F51790365e7dc196e7D072728df39Be958ACe"}}},sourceId:5,testnet:!0}),Pv={TransactionFail:"transaction-fail",TransactionSigned:"transaction-signed",TransactionSignStart:"transaction-sign-start",TransactionBroadcastEnd:"transaction-broadcast-end",TransactionBroadcastStart:"transaction-broadcast-start",TransactionPreparationEnd:"transaction-preparation-end",TransactionPreparationStart:"transaction-preparation-start",WalletStrategyDisconnect:"wallet-strategy-disconnect"},PT={Block:"block",Sync:"sync",Async:"async"},PE={Leap:"leap",Keplr:"keplr",Ninji:"ninji",Magic:"magic",Rabby:"rabby",Ledger:"ledger",BitGet:"BitGet",OWallet:"owallet",Phantom:"phantom",Rainbow:"rainbow",Turnkey:"turnkey",Metamask:"metamask",KeplrEvm:"keplr-evm",OkxWallet:"okx-wallet",PrivateKey:"private-key",TrustWallet:"trust-wallet",TrezorBip32:"trezor-bip32",TrezorBip44:"trezor-bip44",Cosmostation:"cosmostation",LedgerCosmos:"ledger-cosmos",LedgerLegacy:"ledger-legacy",WalletConnect:"wallet-connect",CosmostationEth:"cosmostation-eth"},PB={Mobile:"mobile",Other:"other",Browser:"browser",Hardware:"hardware"},PC={AccountChange:"account-change",ChainIdChange:"chain-id-change"},PU={...eh},PI=e=>{if(e===ay.DevnetEvm)return{id:ay.DevnetEvm,name:"Injective EVM Devnet",n
2053ativeCurrency:Bo.nativeCurrency,rpcUrls:{default:{http:["https://devnet.json-rpc.injective.dev"]}},blockExplorers:{default:{name:"",url:""}},testnet:!0};try{return function({chains:e,id:t}){return e.find(e=>e.id===t)}({id:e,chains:Object.values(xf)})}catch(t){throw Error(`Unsupported chainId: ${e}`)}},PN=(e,t)=>(function(e){let{key:t="public",name:r="Public Client"}=e;return(function(e){let{batch:t,chain:r,ccipRead:a,dataSuffix:n,key:i="base",name:o="Base Client",type:s="base"}=e,l=e.experimental_blockTag??("number"==typeof r?.experimental_preconfirmationTime?"pending":void 0),c=Math.min(Math.max(Math.floor((r?.blockTime??12e3)/2),500),4e3),d=e.pollingInterval??c,p=e.cacheTime??d,u=e.account?(0,A.J5)(e.account):void 0,{config:m,request:h,value:g}=e.transport({account:u,chain:r,pollingInterval:d}),f={account:u,batch:t,cacheTime:p,ccipRead:a,chain:r,dataSuffix:n,key:i,name:o,pollingInterval:d,request:h,transport:{...m,...g},type:s,uid:nF(),...l?{experimental_blockTag:l}:{}};return Object.assign(f,{extend:function e(t){return r=>{let a=r(t);for(let e in f)delete a[e];let n={...t,...a};return Object.assign(n,{extend:e(n)})}}(f)})})({...e,key:t,name:r,type:"publicClient"}).extend(s7)})({chain:PI(e),transport:function(e,t={}){let{key:r="custom",methods:a,name:n="Custom Provider",retryDelay:i}=t;return({retryCount:o})=>(function({key:e,methods:t,name:r,request:a,retryCount:n=3,retryDelay:i=150,timeout:o,type:s},l){return{config:{key:e,methods:t,name:r,request:a,retryCount:n,retryDelay:i,timeout:o,type:s},request:function(e,t={}){return async(r,a={})=>{let{dedupe:n=!1,methods:i,retryDelay:o=150,retryCount:s=3,signal:l,uid:c}={...t,...a},{method:d}=r;if(i?.exclude?.includes(d)||i?.include&&!i.include.includes(d))throw new A.ab(Error("method not supported"),{method:d});if(l?.aborted)throw(0,A.TY)(l);let p=n?function(e,t=0){let r=0xdeadbeef^t,a=0x41c6ce57^t;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);r=Math.imul(r^n,0x9e3779b1),a=Math.imul(a^n,0x5f356495)}return r=Math.imul(r^r>>>16,0x85ebca6b)^Math.imul(a^a>>>16,0xc2b2ae35),(0x100000000*(2097151&(a=Math.imul(a^a>>>16,0x85ebca6b)^Math.imul(r^r>>>16,0xc2b2ae35)))+(r>>>0)).toString(36)}(`${c}.${(0,A.As)(r)}`):void 0;return function(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(iw.get(r))return iw.get(r);let a=e().finally(()=>iw.delete(r));return iw.set(r,a),a}(()=>nA(async()=>{try{return await e(r,l?{signal:l}:void 0)}catch(e){if(l?.aborted)throw(0,A.TY)(l);if((0,A.zf)(e))throw e;switch(e.code){case A.XU.code:throw new A.XU(e);case A.CL.code:throw new A.CL(e);case A.Gi.code:throw new A.Gi(e,{method:r.method});case A.D5.code:throw new A.D5(e);case A.bq.code:throw new A.bq(e);case A.Di.code:throw new A.Di(e);case A.hA.code:throw new A.hA(e);case A.qZ.code:throw new A.qZ(e);case A.YW.code:throw new A.YW(e);case A.ab.code:throw new A.ab(e,{method:r.method});case A.s0.code:throw new A.s0(e);case A.xQ.code:throw new A.xQ(e);case A.vx.code:throw new A.vx(e);case A.sV.code:throw new A.sV(e);case A.Sf.code:throw new A.Sf(e);case A.RV.code:throw new A.RV(e);case A.xq.code:throw new A.xq(e);case A.ch.code:throw new A.ch(e);case A.L5.code:throw new A.L5(e);case A.WT.code:throw new A.WT(e);case A.hl.code:throw new A.hl(e);case A.cg.code:throw new A.cg(e);case A.uL.code:throw new A.uL(e);case A.G1.code:throw new A.G1(e);case A.jz.code:throw new A.jz(e);case 5e3:throw new A.vx(e);case A.nR.code:throw new A.nR(e);default:if(e instanceof A.Cf)throw e;throw new A.MI(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof A.Ci){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return~~(1<<e)*o},retryCount:s,signal:l,shouldRetry:({error:e})=>{var t;return t=e,!(0,A.zf)(t)&&("code"in t&&"number"==typeof t.code?-1===t.code||t.code===A.s0.code||t.code===A.bq.code||429===t.code:!(t instanceof A.Ci)||!t.status||403===t.status||408===t.status||413===t.status||429===t.status||500===t.status||502===t.status||503===t.status||504===t.status||!1)}}),{enabled:n,id:p})}}(a,{methods:t,retryCount:n,retryDelay:i,uid:nF()}),value:void 0}})({key:r,methods:a,name:n,request:e.request.bind(e),retryCount:t.retryCount??o,retryDelay:i,type:"custom"})}(t)}),PR=e=>[PE.Magic,PE.Rabby,PE.BitGet,PE.Ledger,PE.Phantom,PE.Rainbow,PE.Turnkey,PE.Metamask,PE.KeplrEvm,P
2053E.OkxWallet,PE.PrivateKey,PE.TrezorBip32,PE.TrezorBip44,PE.TrustWallet,PE.LedgerLegacy,PE.WalletConnect,PE.CosmostationEth].includes(e),PS=e=>!PR(e),PA=e=>[PE.Rabby,PE.BitGet,PE.Phantom,PE.Rainbow,PE.Metamask,PE.KeplrEvm,PE.OkxWallet,PE.TrustWallet].includes(e),PP=e=>da.SignDoc.create({bodyBytes:e.bodyBytes,authInfoBytes:e.authInfoBytes,accountNumber:BigInt(e.accountNumber),chainId:e.chainId}),PD=ta(1e9);function PL(e){return(PL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function PO(e,t,r){var a;return(a=function(e,t){if("object"!=PL(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t);if("object"!=PL(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==PL(a)?a:a+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}ta(2).times(PD);var PF=class{constructor(e){PO(this,"chainId",void 0),PO(this,"evmChainId",void 0),PO(this,"listeners",{}),PO(this,"metadata",void 0),PO(this,"emitter",void 0),this.evmChainId="evmOptions"in e&&e.evmOptions?e.evmOptions.evmChainId:void 0,this.chainId=e.chainId,this.metadata=e.metadata,this.emitter=e.emitter}setMetadata(e){this.metadata=e}emit(e,t){var r;null==(r=this.emitter)||r.emit(e,t)}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.