LavaPack.loadBundle([[6898,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;
/**
   * @license
   * Copyright 2009 The Closure Library Authors
   * Copyright 2020 Daniel Wirtz / The long.js Authors.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   *
   * SPDX-License-Identifier: Apache-2.0
   */
var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function r(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function n(e){return!0===(e&&e.__isLong__)}function i(e){var t=Math.clz32(e&-e);return e?31-t:t}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=n;var o={},s={};function a(e,t){var r,n,i;return t?(i=0<=(e>>>=0)&&e<256)&&(n=s[e])?n:(r=c(e,0,!0),i&&(s[e]=r),r):(i=-128<=(e|=0)&&e<128)&&(n=o[e])?n:(r=c(e,e<0?-1:0,!1),i&&(o[e]=r),r)}function u(e,t){if(isNaN(e))return t?y:g;if(t){if(e<0)return y;if(e>=p)return k}else{if(e<=-b)return x;if(e+1>=b)return j}return e<0?u(-e,t).neg():c(e%h|0,e/h|0,t)}function c(e,t,n){return new r(e,t,n)}r.fromInt=a,r.fromNumber=u,r.fromBits=c;var l=Math.pow;function f(e,t,r){if(0===e.length)throw Error("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?y:g;if((r=r||10)<2||36<r)throw RangeError("radix");var n;if((n=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return f(e.substring(1),t,r).neg();for(var i=u(l(r,8)),o=g,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),c=parseInt(e.substring(s,s+a),r);if(a<8){var d=u(l(r,a));o=o.mul(d).add(u(c))}else o=(o=o.mul(i)).add(u(c))}return o.unsigned=t,o}function d(e,t){return"number"==typeof e?u(e,t):"string"==typeof e?f(e,t):c(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}r.fromString=f,r.fromValue=d;var h=4294967296,p=h*h,b=p/2,m=a(1<<24),g=a(0);r.ZERO=g;var y=a(0,!0);r.UZERO=y;var v=a(1);r.ONE=v;var w=a(1,!0);r.UONE=w;var _=a(-1);r.NEG_ONE=_;var j=c(-1,2147483647,!1);r.MAX_VALUE=j;var k=c(-1,-1,!0);r.MAX_UNSIGNED_VALUE=k;var x=c(0,-2147483648,!1);r.MIN_VALUE=x;var E=r.prototype;E.toInt=function(){return this.unsigned?this.low>>>0:this.low},E.toNumber=function(){return this.unsigned?(this.high>>>0)*h+(this.low>>>0):this.high*h+(this.low>>>0)},E.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(x)){var t=u(e),r=this.div(t),n=r.mul(t).sub(this);return r.toString(e)+n.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var i=u(l(e,6),this.unsigned),o=this,s="";;){var a=o.div(i),c=(o.sub(a.mul(i)).toInt()>>>0).toString(e);if((o=a).isZero())return c+s;for(;c.length<6;)c="0"+c;s=""+c+s}},E.getHighBits=function(){return this.high},E.getHighBitsUnsigned=function(){return this.high>>>0},E.getLowBits=function(){return this.low},E.getLowBitsUnsigned=function(){return this.low>>>0},E.getNumBitsAbs=function(){if(this.isNegative())return this.eq(x)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<<t);t--);return 0!=this.high?t+33:t+1},E.isZero=function(){return 0===this.high&&0===this.low},E.eqz=E.isZero,E.isNegative=function(){return!this.unsigned&&this.high<0},E.isPositive=function(){return this.unsigned||this.high>=0},E.isOdd=function(){return!(1&~this.low)},E.isEven=function(){return!(1&this.low)},E.equals=function(e){return n(e)||(e=d(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},E.eq=E.equals,E.notEquals=function(e){return!this.eq(e)},E.neq=E.notEquals,E.ne=E.notEquals,E.lessThan=function(e){return this.comp(e)<0},E.lt=E.lessThan,E.lessThanOrEqual=function(e){return this.comp(e)<=0},E.lte=E.lessThanOrEqual,E.le=E.lessThanOrEqual,E.greaterThan=function(e){return this.comp(e)>0},E.gt=E.greaterThan,E.greaterThanOrEqual=function(e){return this.comp(e)>=0},E.gte=E.greaterThanOrEqual,E.ge=E.greaterThanOrEqual,E.compare=function(e){if(n(e)||(e=d(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},E.comp=E.compare,E.negate=function(){return!this.unsigned&&this.eq(x)?x:this.not().add(v)},E.neg=E.negate,E.add=function(e){n(e)||(e=d(e));var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,o=65535&this.low,s=e.high>>>16,a=65535&e.high,u=e.low>>>16,l=0,f=0,h=0,p=0;return h+=(p+=o+(65535&e.low))>>>16,f+=(h+=i+u)>>>16,l+=(f+=r+a)>>>16,l+=t+s,c((h&=65535)<<16|(p&=65535),(l&=65535)<<16|(f&=65535),this.unsigned)},E.subtract=function(e){return n(e)||(e=d(e)),this.add(e.neg())},E.sub=E.subtract,E.multiply=function(e){if(this.isZero())return this;if(n(e)||(e=d(e)),t)return c(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?y:g;if(this.eq(x))return e.isOdd()?x:g;if(e.eq(x))return this.isOdd()?x:g;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(m)&&e.lt(m))return u(this.toNumber()*e.toNumber(),this.unsigned);var r=this.high>>>16,i=65535&this.high,o=this.low>>>16,s=65535&this.low,a=e.high>>>16,l=65535&e.high,f=e.low>>>16,h=65535&e.low,p=0,b=0,v=0,w=0;return v+=(w+=s*h)>>>16,b+=(v+=o*h)>>>16,v&=65535,b+=(v+=s*f)>>>16,p+=(b+=i*h)>>>16,b&=65535,p+=(b+=o*f)>>>16,b&=65535,p+=(b+=s*l)>>>16,p+=r*h+i*f+o*l+s*a,c((v&=65535)<<16|(w&=65535),(p&=65535)<<16|(b&=65535),this.unsigned)},E.mul=E.multiply,E.divide=function(e){if(n(e)||(e=d(e)),e.isZero())throw Error("division by zero");var r,i,o;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?c((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?y:g;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return y;if(e.gt(this.shru(1)))return w;o=y}else{if(this.eq(x))return e.eq(v)||e.eq(_)?x:e.eq(x)?v:(r=this.shr(1).div(e).shl(1)).eq(g)?e.isNegative()?v:_:(i=this.sub(e.mul(r)),o=r.add(i.div(e)));if(e.eq(x))return this.unsigned?y:g;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=g}for(i=this;i.gte(e);){r=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var s=Math.ceil(Math.log(r)/Math.LN2),a=s<=48?1:l(2,s-48),f=u(r),h=f.mul(e);h.isNegative()||h.gt(i);)h=(f=u(r-=a,this.unsigned)).mul(e);f.isZero()&&(f=v),o=o.add(f),i=i.sub(h)}return o},E.div=E.divide,E.modulo=function(e){return n(e)||(e=d(e)),t?c((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},E.mod=E.modulo,E.rem=E.modulo,E.not=function(){return c(~this.low,~this.high,this.unsigned)},E.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},E.clz=E.countLeadingZeros,E.countTrailingZeros=function(){return this.low?i(this.low):i(this.high)+32},E.ctz=E.countTrailingZeros,E.and=function(e){return n(e)||(e=d(e)),c(this.low&e.low,this.high&e.high,this.unsigned)},E.or=function(e){return n(e)||(e=d(e)),c(this.low|e.low,this.high|e.high,this.unsigned)},E.xor=function(e){return n(e)||(e=d(e)),c(this.low^e.low,this.high^e.high,this.unsigned)},E.shiftLeft=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):c(0,this.low<<e-32,this.unsigned)},E.shl=E.shiftLeft,E.shiftRight=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):c(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},E.shr=E.shiftRight,E.shiftRightUnsigned=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):c(32===e?this.high:this.high>>>e-32,0,this.unsigned)},E.shru=E.shiftRightUnsigned,E.shr_u=E.shiftRightUnsigned,E.rotateLeft=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?c(this.high,this.low,this.unsigned):e<32?(t=32-e,c(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),c(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},E.rotl=E.rotateLeft,E.rotateRight=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?c(this.high,this.low,this.unsigned):e<32?(t=32-e,c(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),c(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},E.rotr=E.rotateRight,E.toSigned=function(){return this.unsigned?c(this.low,this.high,!1):this},E.toUnsigned=function(){return this.unsigned?this:c(this.low,this.high,!0)},E.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},E.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},E.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};var T=r;return e.default=T,"default"in e?e.default:e}({});"function"==typeof define&&define.amd?define([],function(){return n}):"object"==typeof t&&"object"==typeof r&&(t.exports=n)}}},{package:"@google/genai>protobufjs>long",file:"node_modules/long/umd/index.js"}],[69,{"./middleware/pending":97,"@metamask/eth-json-rpc-middleware":2213,"@metamask/json-rpc-engine/v2":2572},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({version:e,getAccounts:t,processTransaction:r,processTypedMessage:s,processTypedMessageV3:a,processTypedMessageV4:u,processPersonalMessage:c,processDecryptMessage:l,processEncryptionPublicKey:f,getPendingNonce:d,getPendingTransactionByHash:h,processRequestExecutionPermissions:p,processGetSupportedExecutionPermissions:b,processGetGrantedExecutionPermissions:m}){const g=i.JsonRpcEngineV2.create({middleware:[(0,i.createScaffoldMiddleware)({eth_syncing:!1,web3_clientVersion:`MetaMask/v${e}`}),(0,n.createWalletMiddleware)({getAccounts:t,processTransaction:r,processTypedMessage:s,processTypedMessageV3:a,processTypedMessageV4:u,processPersonalMessage:c,processDecryptMessage:l,processEncryptionPublicKey:f,processRequestExecutionPermissions:p,processGetSupportedExecutionPermissions:b,processGetGrantedExecutionPermissions:m}),(0,o.createPendingNonceMiddleware)({getPendingNonce:d}),(0,o.createPendingTxMiddleware)({getPendingTransactionByHash:h})]});return(0,i.asLegacyMiddleware)(g)};var n=e("@metamask/eth-json-rpc-middleware"),i=e("@metamask/json-rpc-engine/v2"),o=e("./middleware/pending")}}},{package:"$root$",file:"app/scripts/lib/createMetamaskMiddleware.ts"}],[7,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.COOKIE_ID_MARKETING_WHITELIST_ORIGINS=r.COOKIE_ID_MARKETING_WHITELIST=void 0;const n=r.COOKIE_ID_MARKETING_WHITELIST=["https://metamask.io","https://learn.metamask.io","https://mmi-support.zendesk.com","https://community.metamask.io","https://support.metamask.io"];r.COOKIE_ID_MARKETING_WHITELIST_ORIGINS=n.map(e=>new URL(e).origin)}}},{package:"$root$",file:"app/scripts/constants/marketing-site-whitelist.ts"}],[70,{loglevel:6897,"webextension-polyfill":8189},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({location:e,registerOnboarding:t}){return async function(r,o,s,a){try{if("wallet_registerOnboarding"!==r.method)return void s();r.tabId&&r.tabId!==i.default.tabs.TAB_ID_NONE?await t(e,r.tabId):n.default.debug(`'wallet_registerOnboarding' message from ${e} ignored due to missing tabId`),o.result=!0,a()}catch(e){a(e)}}};var n=o(e("loglevel")),i=o(e("webextension-polyfill"));function o(e){return e&&e.__esModule?e:{default:e}}}}},{package:"$root$",file:"app/scripts/lib/createOnboardingMiddleware.js"}],[7040,{"./util":7044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{encodeText:n}=e("./util");t.exports=class{constructor(e,t,r,i){this.name=e,this.code=t,this.codeBuf=n(this.code),this.alphabet=i,this.codec=r(i)}encode(e){return this.codec.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}}}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/base.js"}],[7041,{"./base.js":7040,"./rfc4648":7043,"./util":7044,"@multiformats/base-x":4765},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("@multiformats/base-x"),i=e("./base.js"),{rfc4648:o}=e("./rfc4648"),{decodeText:s,encodeText:a}=e("./util"),u=[["identity","\0",()=>({encode:s,decode:a}),""],["base2","0",o(1),"01"],["base8","7",o(3),"01234567"],["base10","9",n,"0123456789"],["base16","f",o(4),"0123456789abcdef"],["base16upper","F",o(4),"0123456789ABCDEF"],["base32hex","v",o(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",o(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",o(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",o(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",o(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",n,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",n,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",n,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",n,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],c=u.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=u.reduce((e,t)=>(e[t[1]]=c[t[0]],e),{});t.exports={names:c,codes:l}}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/constants.js"}],[7042,{"./constants":7041,"./util":7044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./constants"),{encodeText:i,decodeText:o,concat:s}=e("./util");function a(e){if(Object.prototype.hasOwnProperty.call(n.names,e))return n.names[e];if(Object.prototype.hasOwnProperty.call(n.codes,e))return n.codes[e];throw new Error(`Unsupported encoding: ${e}`)}(r=t.exports=function(e,t){if(!t)throw new Error("requires an encoded Uint8Array");const{name:r,codeBuf:n}=a(e);return function(e,t){const r=a(e);r.decode(o(t))}(r,t),s([n,t],n.length+t.length)}).encode=function(e,t){const r=a(e),n=i(r.encode(t));return s([r.codeBuf,n],r.codeBuf.length+n.length)},r.decode=function(e){e instanceof Uint8Array&&(e=o(e));const t=e[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase()),a(e[0]).decode(e.substring(1))},r.isEncoded=function(e){if(e instanceof Uint8Array&&(e=o(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{return a(e[0]).name}catch(e){return!1}},r.encoding=a,r.encodingFromData=function(e){return e instanceof Uint8Array&&(e=o(e)),a(e[0])};const u=Object.freeze(n.names),c=Object.freeze(n.codes);r.names=u,r.codes=c}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/index.js"}],[7043,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={rfc4648:e=>t=>({encode:r=>((e,t,r)=>{const n="="===t[t.length-1],i=(1<<r)-1;let o="",s=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o})(r,t,e),decode:r=>((e,t,r)=>{const n={};for(let e=0;e<t.length;++e)n[t[e]]=e;let i=e.length;for(;"="===e[i-1];)--i;const o=new Uint8Array(i*r/8|0);let s=0,a=0,u=0;for(let t=0;t<i;++t){const i=n[e[t]];if(i===undefined)throw new SyntaxError("Invalid character "+e[t]);a=a<<r|i,s+=r,s>=8&&(s-=8,o[u++]=255&a>>s)}if(s>=r||255&a<<8-s)throw new SyntaxError("Unexpected end of data");return o})(r,t,e)})}}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/rfc4648.js"}],[7044,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=new TextDecoder,i=new TextEncoder;t.exports={decodeText:e=>n.decode(e),encodeText:e=>i.encode(e),concat:function(e,t){const r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}}}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/util.js"}],[7045,{"./util/as-uint8array.js":7049},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./util/as-uint8array.js");r.alloc=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.alloc?n.asUint8Array(globalThis.Buffer.alloc(e)):new Uint8Array(e)},r.allocUnsafe=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?n.asUint8Array(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/alloc.js"}],[7046,{"./alloc.js":7045,"./util/as-uint8array.js":7049},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./alloc.js"),i=e("./util/as-uint8array.js");r.concat=function(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const r=n.allocUnsafe(t);let o=0;for(const t of e)r.set(t,o),o+=t.length;return i.asUint8Array(r)}}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/concat.js"}],[7047,{"./util/as-uint8array.js":7049,"./util/bases.js":7050},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./util/bases.js"),i=e("./util/as-uint8array.js");r.fromString=function(e,t="utf8"){const r=n[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${e}`):i.asUint8Array(globalThis.Buffer.from(e,"utf-8"))}}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/from-string.js"}],[7048,{"./util/bases.js":7050},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./util/bases.js");r.toString=function(e,t="utf8"){const r=n[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.encoder.encode(e).substring(1):globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/to-string.js"}],[7049,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.asUint8Array=function(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/util/as-uint8array.js"}],[7050,{"../alloc.js":7045,"multiformats/basics":7066},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("multiformats/basics"),i=e("../alloc.js");function o(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const s=o("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>(new TextEncoder).encode(e.substring(1))),a=o("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=i.allocUnsafe(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),u={utf8:s,"utf-8":s,hex:n.bases.base16,latin1:a,ascii:a,binary:a,...n.bases};t.exports=u}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/util/bases.js"}],[7051,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});t.exports={baseTable:n}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/generated-table.js"}],[7052,{"./maps":7053,"./util":7054,"uint8arrays/concat":7046,varint:7849},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("varint"),{concat:i}=e("uint8arrays/concat"),o=e("./util"),{nameToVarint:s,constantToCode:a,nameToCode:u,codeToName:c}=e("./maps");function l(e){const t=n.decode(e),r=c[t];if(r===undefined)throw new Error(`Code "${t}" not found`);return r}function f(e){return c[e]}function d(e){const t=u[e];if(t===undefined)throw new Error(`Codec "${e}" not found`);return t}function h(e){return n.decode(e)}function p(e){const t=s[e];if(t===undefined)throw new Error(`Codec "${e}" not found`);return t}function b(e){return o.varintEncode(e)}t.exports={addPrefix:function(e,t){let r;if(e instanceof Uint8Array)r=o.varintUint8ArrayEncode(e);else{if(!s[e])throw new Error("multicodec not recognized");r=s[e]}return i([r,t],r.length+t.length)},rmPrefix:function(e){return n.decode(e),e.slice(n.decode.bytes)},getNameFromData:l,getNameFromCode:f,getCodeFromName:d,getCodeFromData:h,getVarintFromName:p,getVarintFromCode:b,getCodec:function(e){return l(e)},getName:function(e){return f(e)},getNumber:function(e){return d(e)},getCode:function(e){return h(e)},getCodeVarint:function(e){return p(e)},getVarint:function(e){return Array.from(b(e))},...a,nameToVarint:s,nameToCode:u,codeToName:c}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/index.js"}],[7053,{"./generated-table":7051,"./util":7054},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{baseTable:n}=e("./generated-table"),i=e("./util").varintEncode,o={},s={},a={};for(const e in n){const t=e,r=n[t];o[t]=i(r);s[t.toUpperCase().replace(/-/g,"_")]=r,a[r]||(a[r]=t)}Object.freeze(o),Object.freeze(s),Object.freeze(a);const u=Object.freeze(n);t.exports={nameToVarint:o,constantToCode:s,nameToCode:u,codeToName:a}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/maps.js"}],[7054,{"uint8arrays/from-string":7047,"uint8arrays/to-string":7048,varint:7849},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("varint"),{toString:i}=e("uint8arrays/to-string"),{fromString:o}=e("uint8arrays/from-string");function s(e){return parseInt(i(e,"base16"),16)}t.exports={numberToUint8Array:function(e){let t=e.toString(16);t.length%2==1&&(t="0"+t);return o(t,"base16")},uint8ArrayToNumber:s,varintUint8ArrayEncode:function(e){return Uint8Array.from(n.encode(s(e)))},varintEncode:function(e){return Uint8Array.from(n.encode(e))}}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/util.js"}],[7056,{"./base.js":7055},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e("./base.js").baseX({prefix:"9",name:"base10",alphabet:"0123456789"});r.base10=n}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base10.js"}],[7057,{"./base.js":7055},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./base.js");const i=n.rfc4648({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),o=n.rfc4648({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});r.base16=i,r.base16upper=o}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base16.js"}],[7058,{"./base.js":7055},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e("./base.js").rfc4648({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});r.base2=n}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base2.js"}],[7059,{"./base.js":7055},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./base.js");const i=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),o=i.reduce((e,t,r)=>(e[r]=t,e),[]),s=i.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);const a=n.from({prefix:"🚀",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=o[t],"")},decode:function(e){const t=[];for(const r of e){const e=s[r.codePointAt(0)];if(e===undefined)throw new Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});r.base256emoji=a}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base256emoji.js"}],[7061,{"./base.js":7055},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./base.js");const i=n.baseX({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),o=n.baseX({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});r.base36=i,r.base36upper=o}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base36.js"}],[7063,{"./base.js":7055},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./base.js");const i=n.rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),o=n.rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),s=n.rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),a=n.rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});r.base64=i,r.base64pad=o,r.base64url=s,r.base64urlpad=a}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base64.js"}],[7064,{"./base.js":7055},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e("./base.js").rfc4648({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});r.base8=n}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base8.js"}],[7065,{"../bytes.js":7067,"./base.js":7055},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./base.js"),i=e("../bytes.js");const o=n.from({prefix:"\0",name:"identity",encode:e=>i.toString(e),decode:e=>i.fromString(e)});r.identity=o}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/identity.js"}],[7066,{"./bases/base10.js":7056,"./bases/base16.js":7057,"./bases/base2.js":7058,"./bases/base256emoji.js":7059,"./bases/base32.js":7060,"./bases/base36.js":7061,"./bases/base58.js":7062,"./bases/base64.js":7063,"./bases/base8.js":7064,"./bases/identity.js":7065,"./bytes.js":7067,"./cid.js":7068,"./codecs/json.js":7069,"./codecs/raw.js":7070,"./hashes/digest.js":7071,"./hashes/hasher.js":7072,"./hashes/identity.js":7073,"./hashes/sha2.js":7074,"./index.js":7075,"./varint.js":7076},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./bases/identity.js"),i=e("./bases/base2.js"),o=e("./bases/base8.js"),s=e("./bases/base10.js"),a=e("./bases/base16.js"),u=e("./bases/base32.js"),c=e("./bases/base36.js"),l=e("./bases/base58.js"),f=e("./bases/base64.js"),d=e("./bases/base256emoji.js"),h=e("./hashes/sha2.js"),p=e("./hashes/identity.js"),b=e("./codecs/raw.js"),m=e("./codecs/json.js");e("./index.js");var g=e("./cid.js"),y=e("./hashes/hasher.js"),v=e("./hashes/digest.js"),w=e("./varint.js"),_=e("./bytes.js");const j={...n,...i,...o,...s,...a,...u,...c,...l,...f,...d},k={...h,...p},x={raw:b,json:m};r.CID=g.CID,r.hasher=y,r.digest=v,r.varint=w,r.bytes=_,r.bases=j,r.codecs=x,r.hashes=k}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/basics.js"}],[7069,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=new TextEncoder,i=new TextDecoder;r.code=512,r.decode=e=>JSON.parse(i.decode(e)),r.encode=e=>n.encode(JSON.stringify(e)),r.name="json"}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/codecs/json.js"}],[7070,{"../bytes.js":7067},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("../bytes.js");r.code=85,r.decode=e=>n.coerce(e),r.encode=e=>n.coerce(e),r.name="raw"}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/codecs/raw.js"}],[7072,{"./digest.js":7071},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./digest.js");class i{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?n.create(this.code,t):t.then(e=>n.create(this.code,e))}throw Error("Unknown type, must be binary type")}}r.Hasher=i,r.from=({name:e,code:t,encode:r})=>new i(e,t,r)}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/hashes/hasher.js"}],[7073,{"../bytes.js":7067,"./digest.js":7071},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("../bytes.js"),i=e("./digest.js");const o=n.coerce,s={code:0,name:"identity",encode:o,digest:e=>i.create(0,o(e))};r.identity=s}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/hashes/identity.js"}],[7074,{"./hasher.js":7072},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./hasher.js");const i=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),o=n.from({name:"sha2-256",code:18,encode:i("SHA-256")}),s=n.from({name:"sha2-512",code:19,encode:i("SHA-512")});r.sha256=o,r.sha512=s}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/hashes/sha2-browser.js"}],[7075,{"./bytes.js":7067,"./cid.js":7068,"./hashes/digest.js":7071,"./hashes/hasher.js":7072,"./varint.js":7076},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./cid.js"),i=e("./varint.js"),o=e("./bytes.js"),s=e("./hashes/hasher.js"),a=e("./hashes/digest.js");r.CID=n.CID,r.varint=i,r.bytes=o,r.hasher=s,r.digest=a}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/index.js"}],[7079,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}}}},{package:"@ensdomains/content-hash>cids>multihashes>uint8arrays",file:"node_modules/multihashes/node_modules/uint8arrays/concat.js"}],[7080,{multibase:7042},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{encoding:n}=e("multibase"),i=new TextEncoder;t.exports=function(e,t="utf8"){return"utf8"===t||"utf-8"===t?i.encode(e):"ascii"===t?function(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(e):n(t).decode(e)}}}},{package:"@ensdomains/content-hash>cids>multihashes>uint8arrays",file:"node_modules/multihashes/node_modules/uint8arrays/from-string.js"}],[7081,{multibase:7042},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{encoding:n}=e("multibase"),i=new TextDecoder("utf8");t.exports=function(e,t="utf8"){return"utf8"===t||"utf-8"===t?i.decode(e):"ascii"===t?function(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}(e):n(t).encode(e)}}}},{package:"@ensdomains/content-hash>cids>multihashes>uint8arrays",file:"node_modules/multihashes/node_modules/uint8arrays/to-string.js"}],[7082,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function e(t,r){var o,s=0,a=0,u=r=r||0,c=t.length;do{if(u>=c)throw e.bytes=0,new RangeError("Could not decode varint");o=t[u++],s+=a<28?(o&i)<<a:(o&i)*Math.pow(2,a),a+=7}while(o>=n);return e.bytes=u-r,s};var n=128,i=127}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/decode.js"}],[7083,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function e(t,r,s){r=r||[];var a=s=s||0;for(;t>=o;)r[s++]=255&t|n,t/=128;for(;t&i;)r[s++]=255&t|n,t>>>=7;return r[s]=0|t,e.bytes=s-a+1,r};var n=128,i=-128,o=Math.pow(2,31)}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/encode.js"}],[7084,{"./decode.js":7082,"./encode.js":7083,"./length.js":7085},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={encode:e("./encode.js"),decode:e("./decode.js"),encodingLength:e("./length.js")}}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/index.js"}],[7085,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=Math.pow(2,7),i=Math.pow(2,14),o=Math.pow(2,21),s=Math.pow(2,28),a=Math.pow(2,35),u=Math.pow(2,42),c=Math.pow(2,49),l=Math.pow(2,56),f=Math.pow(2,63);t.exports=function(e){return e<n?1:e<i?2:e<o?3:e<s?4:e<a?5:e<u?6:e<c?7:e<l?8:e<f?9:10}}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/length.js"}],[7086,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});t.exports={names:n}}}},{package:"@ensdomains/content-hash>cids>multihashes",file:"node_modules/multihashes/src/constants.js"}],[7087,{"./constants":7086,multibase:7042,"uint8arrays/concat":7079,"uint8arrays/from-string":7080,"uint8arrays/to-string":7081,varint:7084},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("multibase"),i=e("varint"),{names:o}=e("./constants"),s=e("uint8arrays/to-string"),a=e("uint8arrays/from-string"),u=e("uint8arrays/concat"),c={};for(const e in o){const t=e;c[o[t]]=t}function l(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const t=i.decode(e);if(!h(t))throw new Error(`multihash unknown function code: 0x${t.toString(16)}`);e=e.slice(i.decode.bytes);const r=i.decode(e);if(r<0)throw new Error(`multihash invalid length: ${r}`);if((e=e.slice(i.decode.bytes)).length!==r)throw new Error(`multihash length inconsistent: 0x${s(e,"base16")}`);return{code:t,name:c[t],length:r,digest:e}}function f(e){let t=e;if("string"==typeof e){if(o[e]===undefined)throw new Error(`Unrecognized hash function named: ${e}`);t=o[e]}if("number"!=typeof t)throw new Error(`Hash function code should be a number. Got: ${t}`);if(c[t]===undefined&&!d(t))throw new Error(`Unrecognized function code: ${t}`);return t}function d(e){return e>0&&e<16}function h(e){return!!d(e)||!!c[e]}function p(e){l(e)}Object.freeze(c),t.exports={names:o,codes:c,toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return s(e,"base16")},fromHexString:function(e){return a(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return s(n.encode("base58btc",e)).slice(1)},fromB58String:function(e){const t=e instanceof Uint8Array?s(e):e;return n.decode("z"+t)},decode:l,encode:function(e,t,r){if(!e||t===undefined)throw new Error("multihash encode requires at least two args: digest, code");const n=f(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==r&&(r=e.length),r&&e.length!==r)throw new Error("digest length should be equal to specified length.");const o=i.encode(n),s=i.encode(r);return u([o,s,e],o.length+s.length+e.length)},coerceCode:f,isAppCode:d,validate:p,prefix:function(e){return p(e),e.subarray(0,2)},isValidCode:h}}}},{package:"@ensdomains/content-hash>cids>multihashes",file:"node_modules/multihashes/src/index.js"}],[7090,{buffer:5972,stream:7723},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("stream"),{Buffer:i}=e("buffer"),o=new TextDecoder("utf8",{fatal:!0,ignoreBOM:!0});class s extends n.Transform{constructor(e,t,r={}){let n=null,o=null;switch(typeof e){case"object":i.isBuffer(e)?n=e:e&&(r=e);break;case"string":n=e;break;case"undefined":break;default:throw new TypeError("Invalid input")}switch(typeof t){case"object":t&&(r=t);break;case"string":o=t;break;case"undefined":break;default:throw new TypeError("Invalid inputEncoding")}if(!r||"object"!=typeof r)throw new TypeError("Invalid options");null==n&&(n=r.input),null==o&&(o=r.inputEncoding),delete r.input,delete r.inputEncoding;const s=null==r.watchPipe||r.watchPipe;delete r.watchPipe;const a=Boolean(r.readError);delete r.readError,super(r),this.readError=a,s&&this.on("pipe",e=>{const t=e._readableState.objectMode;if(this.length>0&&t!==this._readableState.objectMode)throw new Error("Do not switch objectMode in the middle of the stream");this._readableState.objectMode=t,this._writableState.objectMode=t}),null!=n&&this.end(n,o)}static isNoFilter(e){return e instanceof this}static compare(e,t){if(!(e instanceof this))throw new TypeError("Arguments must be NoFilters");return e===t?0:e.compare(t)}static concat(e,t){if(!Array.isArray(e))throw new TypeError("list argument must be an Array of NoFilters");if(0===e.length||0===t)return i.alloc(0);null==t&&(t=e.reduce((e,t)=>{if(!(t instanceof s))throw new TypeError("list argument must be an Array of NoFilters");return e+t.length},0));let r=!0,n=!0;const o=e.map(e=>{if(!(e instanceof s))throw new TypeError("list argument must be an Array of NoFilters");const t=e.slice();return i.isBuffer(t)?n=!1:r=!1,t});if(r)return i.concat(o,t);if(n)return[].concat(...o).slice(0,t);throw new Error("Concatenating mixed object and byte streams not supported")}_transform(e,t,r){this._readableState.objectMode||i.isBuffer(e)||(e=i.from(e,t)),this.push(e),r()}_bufArray(){let e=this._readableState.buffer;if(!Array.isArray(e)){let t=e.head;for(e=[];null!=t;)e.push(t.data),t=t.next}return e}read(e){const t=super.read(e);if(null!=t){if(this.emit("read",t),this.readError&&t.length<e)throw new Error(`Read ${t.length}, wanted ${e}`)}else if(this.readError)throw new Error(`No data available, wanted ${e}`);return t}readFull(e){let t=null,r=null,n=null;return new Promise((i,o)=>{this.length>=e?i(this.read(e)):this.writableFinished?o(new Error(`Stream finished before ${e} bytes were available`)):(t=t=>{this.length>=e&&i(this.read(e))},r=()=>{o(new Error(`Stream finished before ${e} bytes were available`))},n=o,this.on("readable",t),this.on("error",n),this.on("finish",r))}).finally(()=>{t&&(this.removeListener("readable",t),this.removeListener("error",n),this.removeListener("finish",r))})}promise(e){let t=!1;return new Promise((r,n)=>{this.on("finish",()=>{const n=this.read();null==e||t||(t=!0,e(null,n)),r(n)}),this.on("error",r=>{null==e||t||(t=!0,e(r)),n(r)})})}compare(e){if(!(e instanceof s))throw new TypeError("Arguments must be NoFilters");if(this===e)return 0;const t=this.slice(),r=e.slice();if(i.isBuffer(t)&&i.isBuffer(r))return t.compare(r);throw new Error("Cannot compare streams in object mode")}equals(e){return 0===this.compare(e)}slice(e,t){if(this._readableState.objectMode)return this._bufArray().slice(e,t);const r=this._bufArray();switch(r.length){case 0:return i.alloc(0);case 1:return r[0].slice(e,t);default:return i.concat(r).slice(e,t)}}get(e){return this.slice()[e]}toJSON(){const e=this.slice();return i.isBuffer(e)?e.toJSON():e}toString(e,t,r){const n=this.slice(t,r);return i.isBuffer(n)?e&&"utf8"!==e?n.toString(e):o.decode(n):JSON.stringify(n)}[Symbol.for("nodejs.util.inspect.custom")](e,t){const r=this._bufArray().map(e=>i.isBuffer(e)?t.stylize(e.toString("hex"),"string"):JSON.stringify(e)).join(", ");return`${this.constructor.name} [${r}]`}get length(){return this._readableState.length}writeBigInt(e){let t=e.toString(16);if(e<0){const r=BigInt(Math.floor(t.length/2));t=(e=(BigInt(1)<<r*BigInt(8))+e).toString(16)}return t.length%2&&(t=`0${t}`),this.push(i.from(t,"hex"))}readUBigInt(e){const t=this.read(e);return i.isBuffer(t)?BigInt(`0x${t.toString("hex")}`):null}readBigInt(e){const t=this.read(e);if(!i.isBuffer(t))return null;let r=BigInt(`0x${t.toString("hex")}`);if(128&t[0]){r-=BigInt(1)<<BigInt(t.length)*BigInt(8)}return r}writeUInt8(e){const t=i.from([e]);return this.push(t)}writeUInt16LE(e){const t=i.alloc(2);return t.writeUInt16LE(e),this.push(t)}writeUInt16BE(e){const t=i.alloc(2);return t.writeUInt16BE(e),this.push(t)}writeUInt32LE(e){const t=i.alloc(4);return t.writeUInt32LE(e),this.push(t)}writeUInt32BE(e){const t=i.alloc(4);return t.writeUInt32BE(e),this.push(t)}writeInt8(e){const t=i.from([e]);return this.push(t)}writeInt16LE(e){const t=i.alloc(2);return t.writeUInt16LE(e),this.push(t)}writeInt16BE(e){const t=i.alloc(2);return t.writeUInt16BE(e),this.push(t)}writeInt32LE(e){const t=i.alloc(4);return t.writeUInt32LE(e),this.push(t)}writeInt32BE(e){const t=i.alloc(4);return t.writeUInt32BE(e),this.push(t)}writeFloatLE(e){const t=i.alloc(4);return t.writeFloatLE(e),this.push(t)}writeFloatBE(e){const t=i.alloc(4);return t.writeFloatBE(e),this.push(t)}writeDoubleLE(e){const t=i.alloc(8);return t.writeDoubleLE(e),this.push(t)}writeDoubleBE(e){const t=i.alloc(8);return t.writeDoubleBE(e),this.push(t)}writeBigInt64LE(e){const t=i.alloc(8);return t.writeBigInt64LE(e),this.push(t)}writeBigInt64BE(e){const t=i.alloc(8);return t.writeBigInt64BE(e),this.push(t)}writeBigUInt64LE(e){const t=i.alloc(8);return t.writeBigUInt64LE(e),this.push(t)}writeBigUInt64BE(e){const t=i.alloc(8);return t.writeBigUInt64BE(e),this.push(t)}readUInt8(){const e=this.read(1);return i.isBuffer(e)?e.readUInt8():null}readUInt16LE(){const e=this.read(2);return i.isBuffer(e)?e.readUInt16LE():null}readUInt16BE(){const e=this.read(2);return i.isBuffer(e)?e.readUInt16BE():null}readUInt32LE(){const e=this.read(4);return i.isBuffer(e)?e.readUInt32LE():null}readUInt32BE(){const e=this.read(4);return i.isBuffer(e)?e.readUInt32BE():null}readInt8(){const e=this.read(1);return i.isBuffer(e)?e.readInt8():null}readInt16LE(){const e=this.read(2);return i.isBuffer(e)?e.readInt16LE():null}readInt16BE(){const e=this.read(2);return i.isBuffer(e)?e.readInt16BE():null}readInt32LE(){const e=this.read(4);return i.isBuffer(e)?e.readInt32LE():null}readInt32BE(){const e=this.read(4);return i.isBuffer(e)?e.readInt32BE():null}readFloatLE(){const e=this.read(4);return i.isBuffer(e)?e.readFloatLE():null}readFloatBE(){const e=this.read(4);return i.isBuffer(e)?e.readFloatBE():null}readDoubleLE(){const e=this.read(8);return i.isBuffer(e)?e.readDoubleLE():null}readDoubleBE(){const e=this.read(8);return i.isBuffer(e)?e.readDoubleBE():null}readBigInt64LE(){const e=this.read(8);return i.isBuffer(e)?e.readBigInt64LE():null}readBigInt64BE(){const e=this.read(8);return i.isBuffer(e)?e.readBigInt64BE():null}readBigUInt64LE(){const e=this.read(8);return i.isBuffer(e)?e.readBigUInt64LE():null}readBigUInt64BE(){const e=this.read(8);return i.isBuffer(e)?e.readBigUInt64BE():null}}t.exports=s}}},{package:"eth-lattice-keyring>gridplus-sdk>cbor>nofilter",file:"node_modules/nofilter/lib/index.js"}],[71,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return function(t,r,n){t.origin=e.origin,n()}}}}},{package:"$root$",file:"app/scripts/lib/createOriginMiddleware.js"}],[7106,{"./AbiItem.js":7108,"./AbiParameters.js":7109,"./Hex.js":7117,abitype:5787},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.decode=function(...e){const[t,r]=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return[a(t),r]}return e})(),{bytecode:n}=r;if(0===t.inputs?.length)return undefined;const i=r.data.replace(n,"0x");return o.decode(t.inputs,i)},r.encode=function(...e){const[t,r]=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return[a(t),r]}return e})(),{bytecode:n,args:i}=r;return s.concat(n,t.inputs?.length&&i?.length?o.encode(t.inputs,i):"0x")},r.format=function(e){return n.formatAbiItem(e)},r.from=function(e){return i.from(e)},r.fromAbi=a;const n=e("abitype"),i=e("./AbiItem.js"),o=e("./AbiParameters.js"),s=e("./Hex.js");function a(e){const t=e.find(e=>"constructor"===e.type);if(!t)throw new i.NotFoundError({name:"constructor"});return t}}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/AbiConstructor.js"}],[7107,{"./AbiItem.js":7108,"./AbiParameters.js":7109,"./Hex.js":7117,abitype:5787},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.decodeData=function(...e){const[t,r]=(()=>{if(Array.isArray(e[0])){const[t,r,n]=e;return[a(t,r),n]}return e})(),{overloads:n}=t;if(s.size(r)<4)throw new i.InvalidSelectorSizeError({data:r});if(0===t.inputs?.length)return undefined;const u=n?a([t,...n],r):t;return s.size(r)<=4?undefined:o.decode(u.inputs,s.slice(r,4))},r.decodeResult=function(...e){const[t,r,n={}]=(()=>{if(Array.isArray(e[0])){const[t,r,n,i]=e;return[a(t,r),n,i]}return e})(),i=o.decode(t.outputs,r,n);if(i&&0===Object.keys(i).length)return undefined;if(i&&1===Object.keys(i).length)return Array.isArray(i)?i[0]:Object.values(i)[0];return i},r.encodeData=function(...e){const[t,r=[]]=(()=>{if(Array.isArray(e[0])){const[t,r,n]=e;return[a(t,r,{args:n}),n]}const[t,r]=e;return[t,r]})(),{overloads:n}=t,i=n?a([t,...n],t.name,{args:r}):t,c=u(i),l=r.length>0?o.encode(i.inputs,r):undefined;return l?s.concat(c,l):c},r.encodeResult=function(...e){const[t,r,n={}]=(()=>{if(Array.isArray(e[0])){const[t,r,n,i]=e;return[a(t,r),n,i]}return e})(),{as:i="Array"}=n,s=1===t.outputs.length?[r]:Array.isArray(r)?r:"Object"===i?Object.values(r):[r];return o.encode(t.outputs,s)},r.format=function(e){return n.formatAbiItem(e)},r.from=function(e,t={}){return i.from(e,t)},r.fromAbi=a,r.getSelector=u;const n=e("abitype"),i=e("./AbiItem.js"),o=e("./AbiParameters.js"),s=e("./Hex.js");function a(e,t,r){const n=i.fromAbi(e,t,r);if("function"!==n.type)throw new i.NotFoundError({name:t,type:"function"});return n}function u(e){return i.getSelector(e)}}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/AbiFunction.js"}],[7108,{"./Errors.js":7115,"./Hash.js":7116,"./Hex.js":7117,"./internal/abiItem.js":7125,abitype:5787},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidSelectorSizeError=r.NotFoundError=r.AmbiguityError=void 0,r.format=function(e){return n.formatAbiItem(e)},r.from=function(e,t={}){const{prepare:r=!0}=t,i=Array.isArray(e)||"string"==typeof e?n.parseAbiItem(e):e;return{...i,...r?{hash:f(i)}:{}}},r.fromAbi=u,r.getSelector=c,r.getSignature=l,r.getSignatureHash=f;const n=e("abitype"),i=e("./Errors.js"),o=e("./Hash.js"),s=e("./Hex.js"),a=e("./internal/abiItem.js");function u(e,t,r){const{args:n=[],prepare:i=!0}=r??{},o=s.validate(t,{strict:!1}),u=e.filter(e=>o?"function"===e.type||"error"===e.type?c(e)===s.slice(t,0,4):"event"===e.type&&f(e)===t:"name"in e&&e.name===t);if(0===u.length)throw new h({name:t});if(1===u.length)return{...u[0],...i?{hash:f(u[0])}:{}};let l;for(const e of u){if(!("inputs"in e))continue;if(!n||0===n.length){if(!e.inputs||0===e.inputs.length)return{...e,...i?{hash:f(e)}:{}};continue}if(!e.inputs)continue;if(0===e.inputs.length)continue;if(e.inputs.length!==n.length)continue;if(n.every((t,r)=>{const n="inputs"in e&&e.inputs[r];return!!n&&a.isArgOfType(t,n)})){if(l&&"inputs"in l&&l.inputs){const t=a.getAmbiguousTypes(e.inputs,l.inputs,n);if(t)throw new d({abiItem:e,type:t[0]},{abiItem:l,type:t[1]})}l=e}}const p=(()=>{if(l)return l;const[e,...t]=u;return{...e,overloads:t}})();if(!p)throw new h({name:t});return{...p,...i?{hash:f(p)}:{}}}function c(...e){const t=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return u(t,r)}return e[0]})();return s.slice(f(t),0,4)}function l(...e){const t=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return u(t,r)}return e[0]})(),r="string"==typeof t?t:n.formatAbiItem(t);return a.normalizeSignature(r)}function f(...e){const t=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return u(t,r)}return e[0]})();return"string"!=typeof t&&"hash"in t&&t.hash?t.hash:o.keccak256(s.fromString(l(t)))}class d extends i.BaseError{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${a.normalizeSignature(n.formatAbiItem(e.abiItem))}\`, and`,`\`${t.type}\` in \`${a.normalizeSignature(n.formatAbiItem(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"})}}r.AmbiguityError=d;class h extends i.BaseError{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"})}}r.NotFoundError=h;class p extends i.BaseError{constructor({data:e}){super(`Selector size is invalid. Expected 4 bytes. Received ${s.size(e)} bytes ("${e}").`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.InvalidSelectorSizeError"})}}r.InvalidSelectorSizeError=p}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/AbiItem.js"}],[7109,{"./Address.js":7110,"./Bytes.js":7113,"./Errors.js":7115,"./Hex.js":7117,"./Solidity.js":7123,"./internal/abiParameters.js":7126,"./internal/cursor.js":7128,abitype:5787},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidTypeError=r.InvalidArrayError=r.LengthMismatchError=r.BytesSizeMismatchError=r.ArrayLengthMismatchError=r.ZeroDataError=r.DataSizeTooSmallError=void 0,r.decode=function(e,t,r={}){const{as:n="Array",checksumAddress:i=!1}=r,s="string"==typeof t?o.fromHex(t):t,l=c.create(s);if(0===o.size(s)&&e.length>0)throw new h;if(o.size(s)&&o.size(s)<32)throw new d({data:"string"==typeof t?t:a.fromBytes(t),parameters:e,size:o.size(s)});let f=0;const p="Array"===n?[]:{};for(let t=0;t<e.length;++t){const r=e[t];l.setPosition(f);const[o,s]=u.decodeParameter(l,r,{checksumAddress:i,staticPosition:0});f+=s,"Array"===n?p.push(o):p[r.name??t]=o}return p},r.encode=function(e,t,r){const{checksumAddress:n=!1}=r??{};if(e.length!==t.length)throw new m({expectedLength:e.length,givenLength:t.length});const i=u.prepareParameters({checksumAddress:n,parameters:e,values:t}),o=u.encode(i);return 0===o.length?"0x":o},r.encodePacked=f,r.format=function(e){return n.formatAbiParameters(e)},r.from=function(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?n.parseAbiParameters(e):e};const n=e("abitype"),i=e("./Address.js"),o=e("./Bytes.js"),s=e("./Errors.js"),a=e("./Hex.js"),u=e("./internal/abiParameters.js"),c=e("./internal/cursor.js"),l=e("./Solidity.js");function f(e,t){if(e.length!==t.length)throw new m({expectedLength:e.length,givenLength:t.length});const r=[];for(let n=0;n<e.length;n++){const i=e[n],o=t[n];r.push(f.encode(i,o))}return a.concat(...r)}!function(e){e.encode=function e(t,r,n=!1){if("address"===t){const e=r;return i.assert(e),a.padLeft(e.toLowerCase(),n?32:0)}if("string"===t)return a.fromString(r);if("bytes"===t)return r;if("bool"===t)return a.padLeft(a.fromBoolean(r),n?32:1);const o=t.match(l.integerRegex);if(o){const[e,t,i="256"]=o,s=Number.parseInt(i,10)/8;return a.fromNumber(r,{size:n?32:s,signed:"int"===t})}const s=t.match(l.bytesRegex);if(s){const[e,t]=s;if(Number.parseInt(t,10)!==(r.length-2)/2)throw new b({expectedSize:Number.parseInt(t,10),value:r});return a.padRight(r,n?32:0)}const u=t.match(l.arrayRegex);if(u&&Array.isArray(r)){const[t,n]=u,i=[];for(let t=0;t<r.length;t++)i.push(e(n,r[t],!0));return 0===i.length?"0x":a.concat(...i)}throw new y(t)}}(f||(r.encodePacked=f={}));class d extends s.BaseError{constructor({data:e,parameters:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${n.formatAbiParameters(t)})`,`Data:   ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}r.DataSizeTooSmallError=d;class h extends s.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}r.ZeroDataError=h;class p extends s.BaseError{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"})}}r.ArrayLengthMismatchError=p;class b extends s.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${a.size(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}r.BytesSizeMismatchError=b;class m extends s.BaseError{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${e}`,`Given length (values): ${t}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}r.LengthMismatchError=m;class g extends s.BaseError{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}r.InvalidArrayError=g;class y extends s.BaseError{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}r.InvalidTypeError=y}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/AbiParameters.js"}],[7110,{"./Bytes.js":7113,"./Caches.js":7114,"./Errors.js":7115,"./Hash.js":7116,"./PublicKey.js":7119},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidChecksumError=r.InvalidInputError=r.InvalidAddressError=void 0,r.assert=c,r.checksum=l,r.from=f,r.fromPublicKey=function(e,t={}){return f(`0x${s.keccak256(`0x${a.toHex(e).slice(4)}`).substring(26)}`,t)},r.isEqual=function(e,t){return c(e,{strict:!1}),c(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()},r.validate=function(e,t={}){const{strict:r=!0}=t??{};try{return c(e,{strict:r}),!0}catch{return!1}};const n=e("./Bytes.js"),i=e("./Caches.js"),o=e("./Errors.js"),s=e("./Hash.js"),a=e("./PublicKey.js"),u=/^0x[a-fA-F0-9]{40}$/;function c(e,t={}){const{strict:r=!0}=t;if(!u.test(e))throw new d({address:e,cause:new h});if(r){if(e.toLowerCase()===e)return;if(l(e)!==e)throw new d({address:e,cause:new p})}}function l(e){if(i.checksum.has(e))return i.checksum.get(e);c(e,{strict:!1});const t=e.substring(2).toLowerCase(),r=s.keccak256(n.fromString(t),{as:"Bytes"}),o=t.split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&r[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());const a=`0x${o.join("")}`;return i.checksum.set(e,a),a}function f(e,t={}){const{checksum:r=!1}=t;return c(e),r?l(e):e}class d extends o.BaseError{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"})}}r.InvalidAddressError=d;class h extends o.BaseError{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"})}}r.InvalidInputError=h;class p extends o.BaseError{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}r.InvalidChecksumError=p}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/Address.js"}],[7111,{"./Hash.js":7116,"./Hex.js":7117,"./Rlp.js":7120,"./Signature.js":7122},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.from=a,r.fromRpc=u,r.fromRpcList=function(e){return e.map(u)},r.fromTuple=c,r.fromTupleList=function(e){const t=[];for(const r of e)t.push(c(r));return t},r.getSignPayload=function(e){return l(e,{presign:!0})},r.hash=l,r.toRpc=f,r.toRpcList=function(e){return e.map(f)},r.toTuple=d,r.toTupleList=function(e){if(!e||0===e.length)return[];const t=[];for(const r of e)t.push(d(r));return t};const n=e("./Hash.js"),i=e("./Hex.js"),o=e("./Rlp.js"),s=e("./Signature.js");function a(e,t={}){return"string"==typeof e.chainId?u(e):{...e,...t.signature}}function u(e){const{address:t,chainId:r,nonce:n}=e,i=s.extract(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...i}}function c(e){const[t,r,n,i,o,u]=e;let c={address:r,chainId:"0x"===t?0:Number(t),nonce:"0x"===n?0n:BigInt(n)};return i&&o&&u&&(c={...c,...s.fromTuple([i,o,u])}),a(c)}function l(e,t={}){const{presign:r}=t;return n.keccak256(i.concat("0x05",o.fromHex(d(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}function f(e){const{address:t,chainId:r,nonce:n,...o}=e;return{address:t,chainId:i.fromNumber(r),nonce:i.fromNumber(n),...s.toRpc(o)}}function d(e){const{address:t,chainId:r,nonce:n}=e,o=s.extract(e);return[r?i.fromNumber(r):"0x",t,n?i.fromNumber(n):"0x",...o?s.toTuple(o):[]]}}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/Authorization.js"}],[7112,{"./Hex.js":7117,"./Withdrawal.js":7124},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.fromRpc=function(e){return{...e.baseFeePerGas&&{baseFeePerGas:BigInt(e.baseFeePerGas)},...e.blobBaseFee&&{blobBaseFee:BigInt(e.blobBaseFee)},...e.feeRecipient&&{feeRecipient:e.feeRecipient},...e.gasLimit&&{gasLimit:BigInt(e.gasLimit)},...e.number&&{number:BigInt(e.number)},...e.prevRandao&&{prevRandao:BigInt(e.prevRandao)},...e.time&&{time:BigInt(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(i.fromRpc)}}},r.toRpc=function(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:n.fromNumber(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:n.fromNumber(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:n.fromNumber(e.gasLimit)},..."bigint"==typeof e.number&&{number:n.fromNumber(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:n.fromNumber(e.prevRandao)},..."bigint"==typeof e.time&&{time:n.fromNumber(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(i.toRpc)}}};const n=e("./Hex.js"),i=e("./Withdrawal.js")}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/BlockOverrides.js"}],[7113,{"./Errors.js":7115,"./Hex.js":7117,"./Json.js":7118,"./internal/bytes.js":7127,"./internal/hex.js":7131,"@noble/curves/abstract/utils":7142},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SizeExceedsPaddingSizeError=r.SliceOffsetOutOfBoundsError=r.SizeOverflowError=r.InvalidBytesTypeError=r.InvalidBytesBooleanError=void 0,r.assert=f,r.concat=function(...e){let t=0;for(const r of e)t+=r.length;const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const i=e[t];r.set(i,n),n+=i.length}return r},r.from=function(e){return e instanceof Uint8Array?e:"string"==typeof e?h(e):d(e)},r.fromArray=d,r.fromBoolean=function(e,t={}){const{size:r}=t,n=new Uint8Array(1);if(n[0]=Number(e),"number"==typeof r)return s.assertSize(n,r),p(n,r);return n},r.fromHex=h,r.fromNumber=function(e,t){return h(o.fromNumber(e,t))},r.fromString=function(e,t={}){const{size:r}=t,n=l.encode(e);if("number"==typeof r)return s.assertSize(n,r),b(n,r);return n},r.isEqual=function(e,t){return(0,n.equalBytes)(e,t)},r.padLeft=p,r.padRight=b,r.random=function(e){return crypto.getRandomValues(new Uint8Array(e))},r.size=function(e){return e.length},r.slice=function(e,t,r,n={}){const{strict:i}=n;s.assertStartOffset(e,t);const o=e.slice(t,r);i&&s.assertEndOffset(o,t,r);return o},r.toBigInt=function(e,t={}){const{size:r}=t;void 0!==r&&s.assertSize(e,r);const n=o.fromBytes(e,t);return o.toBigInt(n,t)},r.toBoolean=function(e,t={}){const{size:r}=t;let n=e;void 0!==r&&(s.assertSize(n,r),n=m(n));if(n.length>1||n[0]>1)throw new y(n);return Boolean(n[0])},r.toHex=function(e,t={}){return o.fromBytes(e,t)},r.toNumber=function(e,t={}){const{size:r}=t;void 0!==r&&s.assertSize(e,r);const n=o.fromBytes(e,t);return o.toNumber(n,t)},r.toString=function(e,t={}){const{size:r}=t;let n=e;void 0!==r&&(s.assertSize(n,r),n=g(n));return c.decode(n)},r.trimLeft=m,r.trimRight=g,r.validate=function(e){try{return f(e),!0}catch{return!1}};const n=e("@noble/curves/abstract/utils"),i=e("./Errors.js"),o=e("./Hex.js"),s=e("./internal/bytes.js"),a=e("./internal/hex.js"),u=e("./Json.js"),c=new TextDecoder,l=new TextEncoder;function f(e){if(!(e instanceof Uint8Array)){if(!e)throw new v(e);if("object"!=typeof e)throw new v(e);if(!("BYTES_PER_ELEMENT"in e))throw new v(e);if(1!==e.BYTES_PER_ELEMENT||"Uint8Array"!==e.constructor.name)throw new v(e)}}function d(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function h(e,t={}){const{size:r}=t;let n=e;r&&(a.assertSize(e,r),n=o.padRight(e,r));let u=n.slice(2);u.length%2&&(u=`0${u}`);const c=u.length/2,l=new Uint8Array(c);for(let e=0,t=0;e<c;e++){const r=s.charCodeToBase16(u.charCodeAt(t++)),n=s.charCodeToBase16(u.charCodeAt(t++));if(r===undefined||n===undefined)throw new i.BaseError(`Invalid byte sequence ("${u[t-2]}${u[t-1]}" in "${u}").`);l[e]=r<<4|n}return l}function p(e,t){return s.pad(e,{dir:"left",size:t})}function b(e,t){return s.pad(e,{dir:"right",size:t})}function m(e){return s.trim(e,{dir:"left"})}function g(e){return s.trim(e,{dir:"right"})}class y extends i.BaseError{constructor(e){super(`Bytes value \`${e}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}r.InvalidBytesBooleanError=y;class v extends i.BaseError{constructor(e){super(`Value \`${"object"==typeof e?u.stringify(e):e}\` of type \`${typeof e}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}r.InvalidBytesTypeError=v;class w extends i.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}r.SizeOverflowError=w;class _ extends i.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}}r.SliceOffsetOutOfBoundsError=_;class j extends i.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}r.SizeExceedsPaddingSizeError=j}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/Bytes.js"}],[7114,{"./internal/lru.js":7132},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.checksum=void 0,r.clear=function(){for(const e of Object.values(n))e.clear()};const n={checksum:new(e("./internal/lru.js").LruMap)(8192)};r.checksum=n.checksum}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/Caches.js"}],[7115,{"./internal/errors.js":7130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BaseError=void 0;const n=e("./internal/errors.js");class i extends Error{static setStaticOptions(e){i.prototype.docsOrigin=e.docsOrigin,i.prototype.showVersion=e.showVersion,i.prototype.version=e.version}constructor(e,t={}){const r=(()=>{if(t.cause instanceof i){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),n=t.cause instanceof i&&t.cause.docsPath||t.docsPath,o=t.docsOrigin??i.prototype.docsOrigin,s=`${o}${n??""}`,a=Boolean(t.version??i.prototype.showVersion),u=t.version??i.prototype.version;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||n||a?["",r?`Details: ${r}`:undefined,n?`See: ${s}`:undefined,a?`Version: ${u}`:undefined]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:undefined),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{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,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=t.cause,this.details=r,this.docs=s,this.docsOrigin=o,this.docsPath=n,this.shortMessage=e,this.showVersion=a,this.version=u}walk(e){return o(this,e)}}function o(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e&&e.cause?o(e.cause,t):t?null:e}r.BaseError=i,Object.defineProperty(i,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${(0,n.getVersion)()}`}}),i.setStaticOptions(i.defaultStaticOptions)}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/Errors.js"}],[7116,{"./Bytes.js":7113,"./Hex.js":7117,"@noble/hashes/hmac":4990,"@noble/hashes/ripemd160":4993,"@noble/hashes/sha256":4996,"@noble/hashes/sha3":4997},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.keccak256=function(e,t={}){const{as:r=("string"==typeof e?"Hex":"Bytes")}=t,n=(0,o.keccak_256)(a.from(e));return"Bytes"===r?n:u.fromBytes(n)},r.hmac256=function(e,t,r={}){const{as:i=("string"==typeof t?"Hex":"Bytes")}=r,o=(0,n.hmac)(s.sha256,a.from(e),a.from(t));return"Bytes"===i?o:u.fromBytes(o)},r.ripemd160=function(e,t={}){const{as:r=("string"==typeof e?"Hex":"Bytes")}=t,n=(0,i.ripemd160)(a.from(e));return"Bytes"===r?n:u.fromBytes(n)},r.sha256=function(e,t={}){const{as:r=("string"==typeof e?"Hex":"Bytes")}=t,n=(0,s.sha256)(a.from(e));return"Bytes"===r?n:u.fromBytes(n)},r.validate=function(e){return u.validate(e)&&32===u.size(e)};const n=e("@noble/hashes/hmac"),i=e("@noble/hashes/ripemd160"),o=e("@noble/hashes/sha3"),s=e("@noble/hashes/sha256"),a=e("./Bytes.js"),u=e("./Hex.js")}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/Hash.js"}],[7117,{"./Bytes.js":7113,"./Errors.js":7115,"./Json.js":7118,"./internal/bytes.js":7127,"./internal/hex.js":7131,"@noble/curves/abstract/utils":7142},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SizeExceedsPaddingSizeError=r.SliceOffsetOutOfBoundsError=r.SizeOverflowError=r.InvalidLengthError=r.InvalidHexValueError=r.InvalidHexTypeError=r.InvalidHexBooleanError=r.IntegerOutOfRangeError=void 0,r.assert=f,r.concat=function(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`},r.from=function(e){return e instanceof Uint8Array?d(e):Array.isArray(e)?d(new Uint8Array(e)):e},r.fromBoolean=function(e,t={}){const r=`0x${Number(e)}`;if("number"==typeof t.size)return a.assertSize(r,t.size),h(r,t.size);return r},r.fromBytes=d,r.fromNumber=function(e,t={}){const{signed:r,size:n}=t,i=BigInt(e);let o;n?o=r?(1n<<8n*BigInt(n)-1n)-1n:2n**(8n*BigInt(n))-1n:"number"==typeof e&&(o=BigInt(Number.MAX_SAFE_INTEGER));const s="bigint"==typeof o&&r?-o-1n:0;if(o&&i>o||i<s){const t="bigint"==typeof e?"n":"";throw new g({max:o?`${o}${t}`:undefined,min:`${s}${t}`,signed:r,size:n,value:`${e}${t}`})}const a=(r&&i<0?BigInt.asUintN(8*n,BigInt(i)):i).toString(16),u=`0x${a}`;return n?h(u,n):u},r.fromString=function(e,t={}){return d(c.encode(e),t)},r.isEqual=function(e,t){return(0,n.equalBytes)(i.fromHex(e),i.fromHex(t))},r.padLeft=h,r.padRight=p,r.random=function(e){return d(i.random(e))},r.slice=function(e,t,r,n={}){const{strict:i}=n;a.assertStartOffset(e,t);const o=`0x${e.replace("0x","").slice(2*(t??0),2*(r??e.length))}`;i&&a.assertEndOffset(o,t,r);return o},r.size=function(e){return Math.ceil((e.length-2)/2)},r.trimLeft=b,r.trimRight=function(e){return a.trim(e,{dir:"right"})},r.toBigInt=m,r.toBoolean=function(e,t={}){t.size&&a.assertSize(e,t.size);const r=b(e);if("0x"===r)return!1;if("0x1"===r)return!0;throw new y(e)},r.toBytes=function(e,t={}){return i.fromHex(e,t)},r.toNumber=function(e,t={}){const{signed:r,size:n}=t;return Number(r||n?m(e,t):e)},r.toString=function(e,t={}){const{size:r}=t;let n=i.fromHex(e);r&&(s.assertSize(n,r),n=i.trimRight(n));return(new TextDecoder).decode(n)},r.validate=function(e,t={}){const{strict:r=!1}=t;try{return f(e,{strict:r}),!0}catch{return!1}};const n=e("@noble/curves/abstract/utils"),i=e("./Bytes.js"),o=e("./Errors.js"),s=e("./internal/bytes.js"),a=e("./internal/hex.js"),u=e("./Json.js"),c=new TextEncoder,l=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function f(e,t={}){const{strict:r=!1}=t;if(!e)throw new v(e);if("string"!=typeof e)throw new v(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new w(e);if(!e.startsWith("0x"))throw new w(e)}function d(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=l[e[t]];const n=`0x${r}`;return"number"==typeof t.size?(a.assertSize(n,t.size),p(n,t.size)):n}function h(e,t){return a.pad(e,{dir:"left",size:t})}function p(e,t){return a.pad(e,{dir:"right",size:t})}function b(e){return a.trim(e,{dir:"left"})}function m(e,t={}){const{signed:r}=t;t.size&&a.assertSize(e,t.size);const n=BigInt(e);if(!r)return n;const i=(e.length-2)/2,o=(1n<<8n*BigInt(i))-1n;return n<=o>>1n?n:n-o-1n}class g extends o.BaseError{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number \`${i}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}r.IntegerOutOfRangeError=g;class y extends o.BaseError{constructor(e){super(`Hex value \`"${e}"\` is not a valid boolean.`,{metaMessages:['The hex value must be `"0x0"` (false) or `"0x1"` (true).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexBooleanError"})}}r.InvalidHexBooleanError=y;class v extends o.BaseError{constructor(e){super(`Value \`${"object"==typeof e?u.stringify(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}r.InvalidHexTypeError=v;class w extends o.BaseError{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}r.InvalidHexValueError=w;class _ extends o.BaseError{constructor(e){super(`Hex value \`"${e}"\` is an odd length (${e.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}r.InvalidLengthError=_;class j extends o.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}r.SizeOverflowError=j;class k extends o.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}r.SliceOffsetOutOfBoundsError=k;class x extends o.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}r.SizeExceedsPaddingSizeError=x}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/Hex.js"}],[7118,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.canonicalize=function e(t){if(null===t||"boolean"==typeof t||"string"==typeof t)return JSON.stringify(t);if("number"==typeof t){if(!Number.isFinite(t))throw new TypeError("Cannot canonicalize non-finite number");return Object.is(t,-0)?"0":JSON.stringify(t)}if("bigint"==typeof t)throw new TypeError("Cannot canonicalize bigint");if(Array.isArray(t))return`[${t.map(t=>e(t)).join(",")}]`;if("object"==typeof t){return`{${Object.keys(t).sort().reduce((r,n)=>{const i=t[n];return i!==undefined&&r.push(`${JSON.stringify(n)}:${e(i)}`),r},[]).join(",")}}`}return undefined},r.parse=function(e,t){return JSON.parse(e,(e,r)=>{const i=r;return"string"==typeof i&&i.endsWith(n)?BigInt(i.slice(0,-n.length)):"function"==typeof t?t(e,i):i})},r.stringify=function(e,t,r){return JSON.stringify(e,(e,r)=>"function"==typeof t?t(e,r):"bigint"==typeof r?r.toString()+n:r,r)};const n="#__bigint"}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/Json.js"}],[7119,{"./Bytes.js":7113,"./Errors.js":7115,"./Hex.js":7117,"./Json.js":7118},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidSerializedSizeError=r.InvalidUncompressedPrefixError=r.InvalidCompressedPrefixError=r.InvalidPrefixError=r.InvalidError=void 0,r.assert=a,r.compress=function(e){const{x:t,y:r}=e;return{prefix:r%2n==0n?2:3,x:t}},r.from=function(e){const t=(()=>{if(o.validate(e))return c(e);if(n.validate(e))return u(e);const{prefix:t,x:r,y:i}=e;return"bigint"==typeof r&&"bigint"==typeof i?{prefix:t??4,x:r,y:i}:{prefix:t,x:r}})();return a(t),t},r.fromBytes=u,r.fromHex=c,r.toBytes=function(e,t={}){return n.fromHex(l(e,t))},r.toHex=l,r.validate=function(e,t={}){try{return a(e,t),!0}catch(e){return!1}};const n=e("./Bytes.js"),i=e("./Errors.js"),o=e("./Hex.js"),s=e("./Json.js");function a(e,t={}){const{compressed:r}=t,{prefix:n,x:i,y:o}=e;if(!1===r||"bigint"==typeof i&&"bigint"==typeof o){if(4!==n)throw new d({prefix:n,cause:new p})}else{if(!0!==r&&("bigint"!=typeof i||void 0!==o))throw new f({publicKey:e});if(3!==n&&2!==n)throw new d({prefix:n,cause:new h})}}function u(e){return c(o.fromBytes(e))}function c(e){if(132!==e.length&&130!==e.length&&68!==e.length)throw new b({publicKey:e});if(130===e.length){return{prefix:4,x:BigInt(o.slice(e,0,32)),y:BigInt(o.slice(e,32,64))}}if(132===e.length){return{prefix:Number(o.slice(e,0,1)),x:BigInt(o.slice(e,1,33)),y:BigInt(o.slice(e,33,65))}}return{prefix:Number(o.slice(e,0,1)),x:BigInt(o.slice(e,1,33))}}function l(e,t={}){a(e);const{prefix:r,x:n,y:i}=e,{includePrefix:s=!0}=t;return o.concat(s?o.fromNumber(r,{size:1}):"0x",o.fromNumber(n,{size:32}),"bigint"==typeof i?o.fromNumber(i,{size:32}):"0x")}class f extends i.BaseError{constructor({publicKey:e}){super(`Value \`${s.stringify(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"})}}r.InvalidError=f;class d extends i.BaseError{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"})}}r.InvalidPrefixError=d;class h extends i.BaseError{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"})}}r.InvalidCompressedPrefixError=h;class p extends i.BaseError{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}r.InvalidUncompressedPrefixError=p;class b extends i.BaseError{constructor({publicKey:e}){super(`Value \`${e}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${o.size(o.from(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}}r.InvalidSerializedSizeError=b}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/PublicKey.js"}],[7120,{"./Bytes.js":7113,"./Errors.js":7115,"./Hex.js":7117,"./internal/cursor.js":7128},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.toBytes=function(e){return a(e,"Bytes")},r.toHex=function(e){return a(e,"Hex")},r.to=a,r.decodeRlpCursor=u,r.readLength=c,r.readList=l,r.from=f,r.fromBytes=function(e,t={}){const{as:r="Bytes"}=t;return f(e,{as:r})},r.fromHex=function(e,t={}){const{as:r="Hex"}=t;return f(e,{as:r})};const n=e("./Bytes.js"),i=e("./Errors.js"),o=e("./Hex.js"),s=e("./internal/cursor.js");function a(e,t){const r=t??("string"==typeof e?"Hex":"Bytes"),i=(()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new o.InvalidLengthError(e);return n.fromHex(e)}return e})();return u(s.create(i,{recursiveReadLimit:Number.POSITIVE_INFINITY}),r)}function u(e,t="Hex"){if(0===e.bytes.length)return"Hex"===t?o.fromBytes(e.bytes):e.bytes;const r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){const n=c(e,r,128),i=e.readBytes(n);return"Hex"===t?o.fromBytes(i):i}return l(e,c(e,r,192),t)}function c(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 i.BaseError("Invalid RLP prefix")}function l(e,t,r){const n=e.position,i=[];for(;e.position-n<t;)i.push(u(e,r));return i}function f(e,t){const{as:r}=t,n=d(e),i=s.create(new Uint8Array(n.length));return n.encode(i),"Hex"===r?o.fromBytes(i.bytes):i.bytes}function d(e){return Array.isArray(e)?function(e){const t=e.reduce((e,t)=>e+t.length,0),r=h(t);return{length:t<=55?1+t:1+r+t,encode(n){t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t));for(const{encode:t}of e)t(n)}}}(e.map(e=>d(e))):function(e){const t="string"==typeof e?n.fromHex(e):e,r=h(t.length),i=1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length;return{length:i,encode(e){1===t.length&&t[0]<128?e.pushBytes(t):t.length<=55?(e.pushByte(128+t.length),e.pushBytes(t)):(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))}}}(e)}function h(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=16777215)return 3;if(e<=4294967295)return 4;throw new i.BaseError("Length is too large.")}}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/Rlp.js"}],[7121,{"./Address.js":7110,"./Bytes.js":7113,"./Hex.js":7117,"./PublicKey.js":7119,"./internal/entropy.js":7129,"@noble/curves/secp256k1":7144},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.noble=void 0,r.createKeyPair=function(e={}){const{as:t="Hex"}=e,r=l({as:t}),n=c({privateKey:r});return{privateKey:r,publicKey:n}},r.getPublicKey=c,r.getSharedSecret=function(e){const{as:t="Hex",privateKey:r,publicKey:i}=e,o=n.secp256k1.ProjectivePoint.fromHex(u.toHex(i).slice(2)),a=o.multiply(n.secp256k1.utils.normPrivateKeyToScalar(s.from(r).slice(2))).toRawBytes(!0);return"Hex"===t?s.fromBytes(a):a},r.randomPrivateKey=l,r.recoverAddress=f,r.recoverPublicKey=d,r.sign=function(e){const{extraEntropy:t=a.extraEntropy,hash:r,payload:i,privateKey:u}=e,{r:c,s:l,recovery:f}=n.secp256k1.sign(o.from(i),o.from(u),{extraEntropy:"boolean"==typeof t?t:s.from(t).slice(2),lowS:!0,...r?{prehash:!0}:{}});return{r:c,s:l,yParity:f}},r.verify=function(e){const{address:t,hash:r,payload:s,publicKey:a,signature:c}=e;return t?i.isEqual(t,f({payload:s,signature:c})):n.secp256k1.verify(c,o.from(s),u.toBytes(a),...r?[{prehash:!0,lowS:!0}]:[])};const n=e("@noble/curves/secp256k1"),i=e("./Address.js"),o=e("./Bytes.js"),s=e("./Hex.js"),a=e("./internal/entropy.js"),u=e("./PublicKey.js");function c(e){const{privateKey:t}=e,r=n.secp256k1.ProjectivePoint.fromPrivateKey(s.from(t).slice(2));return u.from(r)}function l(e={}){const{as:t="Hex"}=e,r=n.secp256k1.utils.randomPrivateKey();return"Hex"===t?s.fromBytes(r):r}function f(e){return i.fromPublicKey(d(e))}function d(e){const{payload:t,signature:r}=e,{r:i,s:o,yParity:a}=r,c=new n.secp256k1.Signature(BigInt(i),BigInt(o)).addRecoveryBit(a).recoverPublicKey(s.from(t).substring(2));return u.from(c)}r.noble=n.secp256k1}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/Secp256k1.js"}],[7122,{"./Bytes.js":7113,"./Errors.js":7115,"./Hex.js":7117,"./Json.js":7118,"./Solidity.js":7123,"@noble/curves/secp256k1":7144},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidVError=r.InvalidYParityError=r.InvalidSError=r.InvalidRError=r.MissingPropertiesError=r.InvalidSerializedSizeError=void 0,r.assert=c,r.fromBytes=l,r.fromHex=f,r.extract=function(e){return void 0===e.r||void 0===e.s?undefined:d(e)},r.from=d,r.fromDerBytes=function(e){return h(s.fromBytes(e))},r.fromDerHex=h,r.fromLegacy=p,r.fromRpc=b,r.fromTuple=function(e){const[t,r,n]=e;return d({r:"0x"===r?0n:BigInt(r),s:"0x"===n?0n:BigInt(n),yParity:"0x"===t?0:Number(t)})},r.toBytes=function(e){return i.fromHex(m(e))},r.toHex=m,r.toDerBytes=function(e){return new n.secp256k1.Signature(e.r,e.s).toDERRawBytes()},r.toDerHex=function(e){return`0x${new n.secp256k1.Signature(e.r,e.s).toDERHex()}`},r.toLegacy=function(e){return{r:e.r,s:e.s,v:y(e.yParity)}},r.toRpc=function(e){const{r:t,s:r,yParity:n}=e;return{r:s.fromNumber(t,{size:32}),s:s.fromNumber(r,{size:32}),yParity:0===n?"0x0":"0x1"}},r.toTuple=function(e){const{r:t,s:r,yParity:n}=e;return[n?"0x01":"0x",0n===t?"0x":s.trimLeft(s.fromNumber(t)),0n===r?"0x":s.trimLeft(s.fromNumber(r))]},r.validate=function(e,t={}){try{return c(e,t),!0}catch{return!1}},r.vToYParity=g,r.yParityToV=y;const n=e("@noble/curves/secp256k1"),i=e("./Bytes.js"),o=e("./Errors.js"),s=e("./Hex.js"),a=e("./Json.js"),u=e("./Solidity.js");function c(e,t={}){const{recovered:r}=t;if(void 0===e.r)throw new w({signature:e});if(void 0===e.s)throw new w({signature:e});if(r&&void 0===e.yParity)throw new w({signature:e});if(e.r<0n||e.r>u.maxUint256)throw new _({value:e.r});if(e.s<0n||e.s>u.maxUint256)throw new j({value:e.s});if("number"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new k({value:e.yParity})}function l(e){return f(s.fromBytes(e))}function f(e){if(130!==e.length&&132!==e.length)throw new v({signature:e});const t=BigInt(s.slice(e,0,32)),r=BigInt(s.slice(e,32,64)),n=(()=>{const t=Number(`0x${e.slice(130)}`);if(Number.isNaN(t))return undefined;try{return g(t)}catch{throw new k({value:t})}})();return void 0===n?{r:t,s:r}:{r:t,s:r,yParity:n}}function d(e){const t="string"==typeof e?f(e):e instanceof Uint8Array?l(e):"string"==typeof e.r?b(e):e.v?p(e):{r:e.r,s:e.s,...void 0!==e.yParity?{yParity:e.yParity}:{}};return c(t),t}function h(e){const{r:t,s:r}=n.secp256k1.Signature.fromDER(s.from(e).slice(2));return{r:t,s:r}}function p(e){return{r:e.r,s:e.s,yParity:g(e.v)}}function b(e){const t=(()=>{const t=e.v?Number(e.v):undefined;let r=e.yParity?Number(e.yParity):undefined;if("number"==typeof t&&"number"!=typeof r&&(r=g(t)),"number"!=typeof r)throw new k({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function m(e){c(e);const t=e.r,r=e.s;return s.concat(s.fromNumber(t,{size:32}),s.fromNumber(r,{size:32}),"number"==typeof e.yParity?s.fromNumber(y(e.yParity),{size:1}):"0x")}function g(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return e%2==0?1:0;throw new x({value:e})}function y(e){if(0===e)return 27;if(1===e)return 28;throw new k({value:e})}class v extends o.BaseError{constructor({signature:e}){super(`Value \`${e}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${s.size(s.from(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}r.InvalidSerializedSizeError=v;class w extends o.BaseError{constructor({signature:e}){super(`Signature \`${a.stringify(e)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}r.MissingPropertiesError=w;class _ extends o.BaseError{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"})}}r.InvalidRError=_;class j extends o.BaseError{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"})}}r.InvalidSError=j;class k extends o.BaseError{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"})}}r.InvalidYParityError=k;class x extends o.BaseError{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"})}}r.InvalidVError=x}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/Signature.js"}],[7123,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.minInt120=r.minInt112=r.minInt104=r.minInt96=r.minInt88=r.minInt80=r.minInt72=r.minInt64=r.minInt56=r.minInt48=r.minInt40=r.minInt32=r.minInt24=r.minInt16=r.minInt8=r.maxInt256=r.maxInt248=r.maxInt240=r.maxInt232=r.maxInt224=r.maxInt216=r.maxInt208=r.maxInt200=r.maxInt192=r.maxInt184=r.maxInt176=r.maxInt168=r.maxInt160=r.maxInt152=r.maxInt144=r.maxInt136=r.maxInt128=r.maxInt120=r.maxInt112=r.maxInt104=r.maxInt96=r.maxInt88=r.maxInt80=r.maxInt72=r.maxInt64=r.maxInt56=r.maxInt48=r.maxInt40=r.maxInt32=r.maxInt24=r.maxInt16=r.maxInt8=r.integerRegex=r.bytesRegex=r.arrayRegex=void 0,r.maxUint256=r.maxUint248=r.maxUint240=r.maxUint232=r.maxUint224=r.maxUint216=r.maxUint208=r.maxUint200=r.maxUint192=r.maxUint184=r.maxUint176=r.maxUint168=r.maxUint160=r.maxUint152=r.maxUint144=r.maxUint136=r.maxUint128=r.maxUint120=r.maxUint112=r.maxUint104=r.maxUint96=r.maxUint88=r.maxUint80=r.maxUint72=r.maxUint64=r.maxUint56=r.maxUint48=r.maxUint40=r.maxUint32=r.maxUint24=r.maxUint16=r.maxUint8=r.minInt256=r.minInt248=r.minInt240=r.minInt232=r.minInt224=r.minInt216=r.minInt208=r.minInt200=r.minInt192=r.minInt184=r.minInt176=r.minInt168=r.minInt160=r.minInt152=r.minInt144=r.minInt136=r.minInt128=void 0,r.arrayRegex=/^(.*)\[([0-9]*)\]$/,r.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,r.integerRegex=/^(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)?$/,r.maxInt8=127n,r.maxInt16=32767n,r.maxInt24=8388607n,r.maxInt32=2n**31n-1n,r.maxInt40=2n**39n-1n,r.maxInt48=2n**47n-1n,r.maxInt56=2n**55n-1n,r.maxInt64=2n**63n-1n,r.maxInt72=2n**71n-1n,r.maxInt80=2n**79n-1n,r.maxInt88=2n**87n-1n,r.maxInt96=2n**95n-1n,r.maxInt104=2n**103n-1n,r.maxInt112=2n**111n-1n,r.maxInt120=2n**119n-1n,r.maxInt128=2n**127n-1n,r.maxInt136=2n**135n-1n,r.maxInt144=2n**143n-1n,r.maxInt152=2n**151n-1n,r.maxInt160=2n**159n-1n,r.maxInt168=2n**167n-1n,r.maxInt176=2n**175n-1n,r.maxInt184=2n**183n-1n,r.maxInt192=2n**191n-1n,r.maxInt200=2n**199n-1n,r.maxInt208=2n**207n-1n,r.maxInt216=2n**215n-1n,r.maxInt224=2n**223n-1n,r.maxInt232=2n**231n-1n,r.maxInt240=2n**239n-1n,r.maxInt248=2n**247n-1n,r.maxInt256=2n**255n-1n,r.minInt8=-128n,r.minInt16=-32768n,r.minInt24=-8388608n,r.minInt32=-(2n**31n),r.minInt40=-(2n**39n),r.minInt48=-(2n**47n),r.minInt56=-(2n**55n),r.minInt64=-(2n**63n),r.minInt72=-(2n**71n),r.minInt80=-(2n**79n),r.minInt88=-(2n**87n),r.minInt96=-(2n**95n),r.minInt104=-(2n**103n),r.minInt112=-(2n**111n),r.minInt120=-(2n**119n),r.minInt128=-(2n**127n),r.minInt136=-(2n**135n),r.minInt144=-(2n**143n),r.minInt152=-(2n**151n),r.minInt160=-(2n**159n),r.minInt168=-(2n**167n),r.minInt176=-(2n**175n),r.minInt184=-(2n**183n),r.minInt192=-(2n**191n),r.minInt200=-(2n**199n),r.minInt208=-(2n**207n),r.minInt216=-(2n**215n),r.minInt224=-(2n**223n),r.minInt232=-(2n**231n),r.minInt240=-(2n**239n),r.minInt248=-(2n**247n),r.minInt256=-(2n**255n),r.maxUint8=255n,r.maxUint16=65535n,r.maxUint24=2n**24n-1n,r.maxUint32=2n**32n-1n,r.maxUint40=2n**40n-1n,r.maxUint48=2n**48n-1n,r.maxUint56=2n**56n-1n,r.maxUint64=2n**64n-1n,r.maxUint72=2n**72n-1n,r.maxUint80=2n**80n-1n,r.maxUint88=2n**88n-1n,r.maxUint96=2n**96n-1n,r.maxUint104=2n**104n-1n,r.maxUint112=2n**112n-1n,r.maxUint120=2n**120n-1n,r.maxUint128=2n**128n-1n,r.maxUint136=2n**136n-1n,r.maxUint144=2n**144n-1n,r.maxUint152=2n**152n-1n,r.maxUint160=2n**160n-1n,r.maxUint168=2n**168n-1n,r.maxUint176=2n**176n-1n,r.maxUint184=2n**184n-1n,r.maxUint192=2n**192n-1n,r.maxUint200=2n**200n-1n,r.maxUint208=2n**208n-1n,r.maxUint216=2n**216n-1n,r.maxUint224=2n**224n-1n,r.maxUint232=2n**232n-1n,r.maxUint240=2n**240n-1n,r.maxUint248=2n**248n-1n,r.maxUint256=2n**256n-1n}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/Solidity.js"}],[7124,{"./Hex.js":7117},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.fromRpc=function(e){return{...e,amount:BigInt(e.amount),index:Number(e.index),validatorIndex:Number(e.validatorIndex)}},r.toRpc=function(e){return{address:e.address,amount:n.fromNumber(e.amount),index:n.fromNumber(e.index),validatorIndex:n.fromNumber(e.validatorIndex)}};const n=e("./Hex.js")}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/Withdrawal.js"}],[7125,{"../Address.js":7110,"../Errors.js":7115},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.normalizeSignature=function(e){let t=!0,r="",n=0,o="",s=!1;for(let i=0;i<e.length;i++){const a=e[i];if(["(",")",","].includes(a)&&(t=!0),"("===a&&n++,")"===a&&n--,t)if(0!==n)" "!==a?(o+=a,r+=a):","!==e[i-1]&&","!==r&&",("!==r&&(r="",t=!1);else if(" "===a&&["event","function","error",""].includes(o))o="";else if(o+=a,")"===a){s=!0;break}}if(!s)throw new i.BaseError("Unable to normalize signature.");return o},r.isArgOfType=function e(t,r){const i=typeof t,o=r.type;switch(o){case"address":return n.validate(t,{strict:!1});case"bool":return"boolean"===i;case"function":case"string":return"string"===i;default:return"tuple"===o&&"components"in r?Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r)):/^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(o)?"number"===i||"bigint"===i:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o)?"string"===i||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o)&&(Array.isArray(t)&&t.every(t=>e(t,{...r,type:o.replace(/(\[[0-9]{0,}\])$/,"")})))}},r.getAmbiguousTypes=function e(t,r,i){for(const o in t){const s=t[o],a=r[o];if("tuple"===s.type&&"tuple"===a.type&&"components"in s&&"components"in a)return e(s.components,a.components,i[o]);const u=[s.type,a.type];if((()=>!(!u.includes("address")||!u.includes("bytes20"))||(u.includes("address")&&u.includes("string")||!(!u.includes("address")||!u.includes("bytes")))&&n.validate(i[o],{strict:!1}))())return u}return};const n=e("../Address.js"),i=e("../Errors.js")}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/internal/abiItem.js"}],[7126,{"../AbiParameters.js":7109,"../Address.js":7110,"../Bytes.js":7113,"../Errors.js":7115,"../Hex.js":7117,"../Solidity.js":7123},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.decodeParameter=c,r.decodeAddress=d,r.decodeArray=h,r.decodeBool=p,r.decodeBytes=b,r.decodeNumber=m,r.decodeTuple=g,r.decodeString=y,r.prepareParameters=function({checksumAddress:e,parameters:t,values:r}){const n=[];for(let i=0;i<t.length;i++)n.push(v({checksumAddress:e,parameter:t[i],value:r[i]}));return n},r.prepareParameter=v,r.encode=w,r.encodeAddress=_,r.encodeArray=j,r.encodeBytes=k,r.encodeBoolean=x,r.encodeNumber=E,r.encodeString=T,r.encodeTuple=S,r.getArrayComponents=O,r.hasDynamicChild=P;const n=e("../AbiParameters.js"),i=e("../Address.js"),o=e("../Bytes.js"),s=e("../Errors.js"),a=e("../Hex.js"),u=e("../Solidity.js");function c(e,t,r){const{checksumAddress:i,staticPosition:o}=r,s=O(t.type);if(s){const[r,n]=s;return h(e,{...t,type:n},{checksumAddress:i,length:r,staticPosition:o})}if("tuple"===t.type)return g(e,t,{checksumAddress:i,staticPosition:o});if("address"===t.type)return d(e,{checksum:i});if("bool"===t.type)return p(e);if(t.type.startsWith("bytes"))return b(e,t,{staticPosition:o});if(t.type.startsWith("uint")||t.type.startsWith("int"))return m(e,t);if("string"===t.type)return y(e,{staticPosition:o});throw new n.InvalidTypeError(t.type)}const l=32,f=32;function d(e,t={}){const{checksum:r=!1}=t,n=e.readBytes(32);return[(s=a.fromBytes(o.slice(n,-20)),r?i.checksum(s):s),32];var s}function h(e,t,r){const{checksumAddress:n,length:i,staticPosition:s}=r;if(!i){const r=s+o.toNumber(e.readBytes(f)),i=r+l;e.setPosition(r);const a=o.toNumber(e.readBytes(l)),u=P(t);let d=0;const h=[];for(let r=0;r<a;++r){e.setPosition(i+(u?32*r:d));const[o,s]=c(e,t,{checksumAddress:n,staticPosition:i});d+=s,h.push(o)}return e.setPosition(s+32),[h,32]}if(P(t)){const r=s+o.toNumber(e.readBytes(f)),a=[];for(let o=0;o<i;++o){e.setPosition(r+32*o);const[i]=c(e,t,{checksumAddress:n,staticPosition:r});a.push(i)}return e.setPosition(s+32),[a,32]}let a=0;const u=[];for(let r=0;r<i;++r){const[r,i]=c(e,t,{checksumAddress:n,staticPosition:s+a});a+=i,u.push(r)}return[u,a]}function p(e){return[o.toBoolean(e.readBytes(32),{size:32}),32]}function b(e,t,{staticPosition:r}){const[n,i]=t.type.split("bytes");if(!i){const t=o.toNumber(e.readBytes(32));e.setPosition(r+t);const n=o.toNumber(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];const i=e.readBytes(n);return e.setPosition(r+32),[a.fromBytes(i),32]}return[a.fromBytes(e.readBytes(Number.parseInt(i,10),32)),32]}function m(e,t){const r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[n>48?o.toBigInt(i,{signed:r}):o.toNumber(i,{signed:r}),32]}function g(e,t,r){const{checksumAddress:n,staticPosition:i}=r,s=0===t.components.length||t.components.some(({name:e})=>!e),a=s?[]:{};let u=0;if(P(t)){const r=i+o.toNumber(e.readBytes(f));for(let i=0;i<t.components.length;++i){const o=t.components[i];e.setPosition(r+u);const[l,f]=c(e,o,{checksumAddress:n,staticPosition:r});u+=f,a[s?i:o?.name]=l}return e.setPosition(i+32),[a,32]}for(let r=0;r<t.components.length;++r){const o=t.components[r],[l,f]=c(e,o,{checksumAddress:n,staticPosition:i});a[s?r:o?.name]=l,u+=f}return[a,u]}function y(e,{staticPosition:t}){const r=t+o.toNumber(e.readBytes(32));e.setPosition(r);const n=o.toNumber(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];const i=e.readBytes(n,32),s=o.toString(o.trimLeft(i));return e.setPosition(t+32),[s,32]}function v({checksumAddress:e=!1,parameter:t,value:r}){const i=t,o=O(i.type);if(o){const[t,n]=o;return j(r,{checksumAddress:e,length:t,parameter:{...i,type:n}})}if("tuple"===i.type)return S(r,{checksumAddress:e,parameter:i});if("address"===i.type)return _(r,{checksum:e});if("bool"===i.type)return x(r);if(i.type.startsWith("uint")||i.type.startsWith("int")){const e=i.type.startsWith("int"),[,,t="256"]=u.integerRegex.exec(i.type)??[];return E(r,{signed:e,size:Number(t)})}if(i.type.startsWith("bytes"))return k(r,{type:i.type});if("string"===i.type)return T(r);throw new n.InvalidTypeError(i.type)}function w(e){let t=0;for(let r=0;r<e.length;r++){const{dynamic:n,encoded:i}=e[r];t+=n?32:a.size(i)}const r=[],n=[];let i=0;for(let o=0;o<e.length;o++){const{dynamic:s,encoded:u}=e[o];s?(r.push(a.fromNumber(t+i,{size:32})),n.push(u),i+=a.size(u)):r.push(u)}return a.concat(...r,...n)}function _(e,t){const{checksum:r=!1}=t;return i.assert(e,{strict:r}),{dynamic:!1,encoded:a.padLeft(e.toLowerCase())}}function j(e,t){const{checksumAddress:r,length:i,parameter:o}=t,s=null===i;if(!Array.isArray(e))throw new n.InvalidArrayError(e);if(!s&&e.length!==i)throw new n.ArrayLengthMismatchError({expectedLength:i,givenLength:e.length,type:`${o.type}[${i}]`});let u=!1;const c=[];for(let t=0;t<e.length;t++){const n=v({checksumAddress:r,parameter:o,value:e[t]});n.dynamic&&(u=!0),c.push(n)}if(s||u){const e=w(c);if(s){const t=a.fromNumber(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?a.concat(t,e):t}}if(u)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:a.concat(...c.map(({encoded:e})=>e))}}function k(e,{type:t}){const[,r]=t.split("bytes"),i=a.size(e);if(!r){let t=e;return i%32!=0&&(t=a.padRight(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:a.concat(a.padLeft(a.fromNumber(i,{size:32})),t)}}if(i!==Number.parseInt(r,10))throw new n.BytesSizeMismatchError({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:a.padRight(e)}}function x(e){if("boolean"!=typeof e)throw new s.BaseError(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:a.padLeft(a.fromBoolean(e))}}function E(e,{signed:t,size:r}){if("number"==typeof r){const n=2n**(BigInt(r)-(t?1n:0n))-1n,i=t?-n-1n:0n;if(e>n||e<i)throw new a.IntegerOutOfRangeError({max:n.toString(),min:i.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:a.fromNumber(e,{size:32,signed:t})}}function T(e){const t=a.fromString(e),r=Math.ceil(a.size(t)/32),n=[];for(let e=0;e<r;e++)n.push(a.padRight(a.slice(t,32*e,32*(e+1))));return{dynamic:!0,encoded:a.concat(a.padRight(a.fromNumber(a.size(t),{size:32})),...n)}}function S(e,t){const{checksumAddress:r,parameter:n}=t;let i=!1;const o=[];for(let t=0;t<n.components.length;t++){const s=n.components[t],a=v({checksumAddress:r,parameter:s,value:e[Array.isArray(e)?t:s.name]});o.push(a),a.dynamic&&(i=!0)}return{dynamic:i,encoded:i?w(o):a.concat(...o.map(({encoded:e})=>e))}}function O(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:undefined}function P(e){const{type:t}=e;if("string"===t)return!0;if("bytes"===t)return!0;if(t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(P);const r=O(e.type);return!(!r||!P({...e,type:r[1]}))}}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/internal/abiParameters.js"}],[7127,{"../Bytes.js":7113},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.charCodeMap=void 0,r.assertSize=function(e,t){if(n.size(e)>t)throw new n.SizeOverflowError({givenSize:n.size(e),maxSize:t})},r.assertStartOffset=function(e,t){if("number"==typeof t&&t>0&&t>n.size(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:n.size(e)})},r.assertEndOffset=function(e,t,r){if("number"==typeof t&&"number"==typeof r&&n.size(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:n.size(e)})},r.charCodeToBase16=function(e){return e>=r.charCodeMap.zero&&e<=r.charCodeMap.nine?e-r.charCodeMap.zero:e>=r.charCodeMap.A&&e<=r.charCodeMap.F?e-(r.charCodeMap.A-10):e>=r.charCodeMap.a&&e<=r.charCodeMap.f?e-(r.charCodeMap.a-10):undefined},r.pad=function(e,t={}){const{dir:r,size:i=32}=t;if(0===i)return e;if(e.length>i)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:i,type:"Bytes"});const o=new Uint8Array(i);for(let t=0;t<i;t++){const n="right"===r;o[n?t:i-t-1]=e[n?t:e.length-t-1]}return o},r.trim=function(e,t={}){const{dir:r="left"}=t;let n=e,i=0;for(let e=0;e<n.length-1&&"0"===n["left"===r?e:n.length-e-1].toString();e++)i++;return n="left"===r?n.slice(i):n.slice(0,n.length-i),n};const n=e("../Bytes.js");r.charCodeMap={zero:48,nine:57,A:65,F:70,a:97,f:102}}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/internal/bytes.js"}],[7128,{"../Errors.js":7115},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RecursiveReadLimitExceededError=r.PositionOutOfBoundsError=r.NegativeOffsetError=void 0,r.create=function(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(i);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r};const n=e("../Errors.js"),i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new a({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new s({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new o({offset:e});const 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 o({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const 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();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};class o extends n.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}r.NegativeOffsetError=o;class s extends n.BaseError{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"})}}r.PositionOutOfBoundsError=s;class a extends n.BaseError{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"})}}r.RecursiveReadLimitExceededError=a}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/internal/cursor.js"}],[7129,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.extraEntropy=void 0,r.setExtraEntropy=function(e){r.extraEntropy=e},r.extraEntropy=!1}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/internal/entropy.js"}],[7130,{"../version.js":7133},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getUrl=function(e){return e},r.getVersion=function(){return n.version},r.prettyPrint=function(e){if(!e)return"";const t=Object.entries(e).map(([e,t])=>t===undefined||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join("\n")};const n=e("../version.js")}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/internal/errors.js"}],[7131,{"../Hex.js":7117},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.assertSize=function(e,t){if(n.size(e)>t)throw new n.SizeOverflowError({givenSize:n.size(e),maxSize:t})},r.assertStartOffset=function(e,t){if("number"==typeof t&&t>0&&t>n.size(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:n.size(e)})},r.assertEndOffset=function(e,t,r){if("number"==typeof t&&"number"==typeof r&&n.size(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:n.size(e)})},r.pad=function(e,t={}){const{dir:r,size:i=32}=t;if(0===i)return e;const o=e.replace("0x","");if(o.length>2*i)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(o.length/2),targetSize:i,type:"Hex"});return`0x${o["right"===r?"padEnd":"padStart"](2*i,"0")}`},r.trim=function(e,t={}){const{dir:r="left"}=t;let n=e.replace("0x",""),i=0;for(let e=0;e<n.length-1&&"0"===n["left"===r?e:n.length-e-1].toString();e++)i++;return n="left"===r?n.slice(i):n.slice(0,n.length-i),"0"===n?"0x":"right"===r&&n.length%2==1?`0x${n}0`:`0x${n}`};const n=e("../Hex.js")}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/internal/hex.js"}],[7132,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.LruMap=void 0;class n extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&t!==undefined&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){const e=this.keys().next().value;e&&this.delete(e)}return this}}r.LruMap=n}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/internal/lru.js"}],[7133,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="0.1.1"}}},{package:"viem>ox",file:"node_modules/ox/_cjs/core/version.js"}],[7134,{"../core/AbiParameters.js":7109,"../core/Errors.js":7115,"../core/Hex.js":7117},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidWrappedSignatureError=r.universalSignatureValidatorAbi=r.universalSignatureValidatorBytecode=r.magicBytes=void 0,r.assert=s,r.from=function(e){return"string"==typeof e?a(e):e},r.unwrap=a,r.wrap=function(e){const{data:t,signature:i,to:s}=e;return o.concat(n.encode(n.from("address, bytes, bytes"),[s,t,i]),r.magicBytes)},r.validate=function(e){try{return s(e),!0}catch{return!1}};const n=e("../core/AbiParameters.js"),i=e("../core/Errors.js"),o=e("../core/Hex.js");function s(e){if(o.slice(e,-32)!==r.magicBytes)throw new u(e)}function a(e){s(e);const[t,r,i]=n.decode(n.from("address, bytes, bytes"),e);return{data:r,signature:i,to:t}}r.magicBytes="0x6492649264926492649264926492649264926492649264926492649264926492",r.universalSignatureValidatorBytecode="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",r.universalSignatureValidatorAbi=[{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"}];class u extends i.BaseError{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"})}}r.InvalidWrappedSignatureError=u}}},{package:"viem>ox",file:"node_modules/ox/_cjs/erc6492/SignatureErc6492.js"}],[7135,{"./SignatureErc6492.js":7134},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SignatureErc6492=void 0,r.SignatureErc6492=e("./SignatureErc6492.js")}}},{package:"viem>ox",file:"node_modules/ox/_cjs/erc6492/index.js"}],[7136,{"../core/AbiParameters.js":7109,"../core/Authorization.js":7111,"../core/Errors.js":7115,"../core/Hex.js":7117,"../core/Secp256k1.js":7121,"../core/Signature.js":7122},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidWrappedSignatureError=r.suffixParameters=r.magicBytes=void 0,r.assert=c,r.from=function(e){return"string"==typeof e?l(e):e},r.unwrap=l,r.wrap=function(e){const{data:t,signature:o}=e;c(e);const l=a.recoverAddress({payload:i.getSignPayload(e.authorization),signature:u.from(e.authorization)}),f=n.encode(r.suffixParameters,[{...e.authorization,delegation:e.authorization.address,chainId:BigInt(e.authorization.chainId)},e.to??l,t??"0x"]),d=s.fromNumber(s.size(f),{size:32});return s.concat(o,f,d,r.magicBytes)},r.validate=function(e){try{return c(e),!0}catch{return!1}};const n=e("../core/AbiParameters.js"),i=e("../core/Authorization.js"),o=e("../core/Errors.js"),s=e("../core/Hex.js"),a=e("../core/Secp256k1.js"),u=e("../core/Signature.js");function c(e){if("string"==typeof e){if(s.slice(e,-32)!==r.magicBytes)throw new f(e)}else u.assert(e.authorization)}function l(e){c(e);const t=s.toNumber(s.slice(e,-64,-32)),o=s.slice(e,-t-64,-64),a=s.slice(e,0,-t-64),[u,l,f]=n.decode(r.suffixParameters,o);return{authorization:i.from({address:u.delegation,chainId:Number(u.chainId),nonce:u.nonce,yParity:u.yParity,r:u.r,s:u.s}),signature:a,...f&&"0x"!==f?{data:f,to:l}:{}}}r.magicBytes="0x8010801080108010801080108010801080108010801080108010801080108010",r.suffixParameters=n.from("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");class f extends o.BaseError{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"})}}r.InvalidWrappedSignatureError=f}}},{package:"viem>ox",file:"node_modules/ox/_cjs/erc8010/SignatureErc8010.js"}],[7137,{"./SignatureErc8010.js":7136},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SignatureErc8010=void 0,r.SignatureErc8010=e("./SignatureErc8010.js")}}},{package:"viem>ox",file:"node_modules/ox/_cjs/erc8010/index.js"}],[7138,{"./abstract/weierstrass.js":7143,"@noble/hashes/hmac":4990,"@noble/hashes/utils":4999},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getHash=s,r.createCurve=function(e,t){const r=t=>(0,o.weierstrass)({...e,...s(t)});return{...r(t),create:r}};
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
const n=e("@noble/hashes/hmac"),i=e("@noble/hashes/utils"),o=e("./abstract/weierstrass.js");function s(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}}}},{package:"viem>ox>@noble/curves",file:"node_modules/ox/node_modules/@noble/curves/_shortw_utils.js"}],[7139,{"./modular.js":7141,"./utils.js":7142},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.wNAF=function(e,t){return{constTimeNegate:a,hasPrecomputes:e=>1!==b(e),unsafeLadder(t,r,n=e.ZERO){let i=t;for(;r>o;)r&s&&(n=n.add(i)),i=i.double(),r>>=s;return n},precomputeWindow(e,r){const{windows:n,windowSize:i}=c(r,t),o=[];let s=e,a=s;for(let e=0;e<n;e++){a=s,o.push(a);for(let e=1;e<i;e++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(r,n,i){let o=e.ZERO,s=e.BASE;const u=c(r,t);for(let e=0;e<u.windows;e++){const{nextN:t,offset:r,isZero:c,isNeg:f,isNegF:d,offsetF:h}=l(i,e,u);i=t,c?s=s.add(a(d,n[h])):o=o.add(a(f,n[r]))}return{p:o,f:s}},wNAFUnsafe(r,n,i,s=e.ZERO){const a=c(r,t);for(let e=0;e<a.windows&&i!==o;e++){const{nextN:t,offset:r,isZero:o,isNeg:u}=l(i,e,a);if(i=t,!o){const e=n[r];s=s.add(u?e.negate():e)}}return s},getPrecomputes(e,t,r){let n=h.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&h.set(t,r(n))),n},wNAFCached(e,t,r){const n=b(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)},wNAFCachedUnsafe(e,t,r,n){const i=b(e);return 1===i?this.unsafeLadder(e,t,n):this.wNAFUnsafe(i,this.getPrecomputes(i,e,r),t,n)},setWindowSize(e,r){u(r,t),p.set(e,r),h.delete(e)}}},r.pippenger=function(e,t,r,n){f(r,e),d(n,t);const o=r.length,s=n.length;if(o!==s)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,u=(0,i.bitLen)(BigInt(o));let c=1;u>12?c=u-3:u>4?c=u-2:u>0&&(c=2);const l=(0,i.bitMask)(c),h=new Array(Number(l)+1).fill(a),p=Math.floor((t.BITS-1)/c)*c;let b=a;for(let e=p;e>=0;e-=c){h.fill(a);for(let t=0;t<s;t++){const i=n[t],o=Number(i>>BigInt(e)&l);h[o]=h[o].add(r[t])}let t=a;for(let e=h.length-1,r=a;e>0;e--)r=r.add(h[e]),t=t.add(r);if(b=b.add(t),0!==e)for(let e=0;e<c;e++)b=b.double()}return b},r.precomputeMSMUnsafe=function(e,t,r,n){u(n,t.BITS),f(r,e);const o=e.ZERO,s=2**n-1,a=Math.ceil(t.BITS/n),c=(0,i.bitMask)(n),l=r.map(e=>{const t=[];for(let r=0,n=e;r<s;r++)t.push(n),n=n.add(e);return t});return e=>{if(d(e,t),e.length>r.length)throw new Error("array of scalars must be smaller than array of points");let i=o;for(let t=0;t<a;t++){if(i!==o)for(let e=0;e<n;e++)i=i.double();const r=BigInt(a*n-(t+1)*n);for(let t=0;t<e.length;t++){const n=e[t],o=Number(n>>r&c);o&&(i=i.add(l[t][o-1]))}}return i}},r.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,i.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
const n=e("./modular.js"),i=e("./utils.js"),o=BigInt(0),s=BigInt(1);function a(e,t){const r=t.negate();return e?r:t}function u(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function c(e,t){u(e,t);const r=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:(0,i.bitMask)(e),maxNumber:r,shiftBy:BigInt(e)}}function l(e,t,r){const{windowSize:n,mask:i,maxNumber:o,shiftBy:a}=r;let u=Number(e&i),c=e>>a;u>n&&(u-=o,c+=s);const l=t*n;return{nextN:c,offset:l+Math.abs(u)-1,isZero:0===u,isNeg:u<0,isNegF:t%2!=0,offsetF:l}}function f(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw new Error("invalid point at index "+r)})}function d(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+r)})}const h=new WeakMap,p=new WeakMap;function b(e){return p.get(e)||1}}}},{package:"viem>ox>@noble/curves",file:"node_modules/ox/node_modules/@noble/curves/abstract/curve.js"}],[7140,{"./modular.js":7141,"./utils.js":7142},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.expand_message_xmd=c,r.expand_message_xof=l,r.hash_to_field=f,r.isogenyMap=function(e,t){const r=t.map(e=>Array.from(e).reverse());return(t,i)=>{const[o,s,a,u]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n))),[c,l]=(0,n.FpInvertBatch)(e,[s,u],!0);return t=e.mul(o,c),i=e.mul(i,e.mul(a,l)),{x:t,y:i}}},r.createHasher=function(e,t,r){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");function n(r){return e.fromAffine(t(r))}function i(t){const r=t.clearCofactor();return r.equals(e.ZERO)?e.ZERO:(r.assertValidity(),r)}return{defaults:r,hashToCurve(e,t){const o=f(e,2,{...r,DST:r.DST,...t}),s=n(o[0]),a=n(o[1]);return i(s.add(a))},encodeToCurve:(e,t)=>i(n(f(e,1,{...r,DST:r.encodeDST,...t})[0])),mapToCurve(e){if(!Array.isArray(e))throw new Error("expected array of bigints");for(const t of e)if("bigint"!=typeof t)throw new Error("expected array of bigints");return i(n(e))}}};const n=e("./modular.js"),i=e("./utils.js"),o=i.bytesToNumberBE;function s(e,t){if(u(e),u(t),e<0||e>=1<<8*t)throw new Error("invalid I2OSP input: "+e);const r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function a(e,t){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}function u(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function c(e,t,r,n){(0,i.abytes)(e),(0,i.abytes)(t),u(r),t.length>255&&(t=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:o,blockLen:c}=n,l=Math.ceil(r/o);if(r>65535||l>255)throw new Error("expand_message_xmd: invalid lenInBytes");const f=(0,i.concatBytes)(t,s(t.length,1)),d=s(0,c),h=s(r,2),p=new Array(l),b=n((0,i.concatBytes)(d,e,h,s(0,1),f));p[0]=n((0,i.concatBytes)(b,s(1,1),f));for(let e=1;e<=l;e++){const t=[a(b,p[e-1]),s(e+1,1),f];p[e]=n((0,i.concatBytes)(...t))}return(0,i.concatBytes)(...p).slice(0,r)}function l(e,t,r,n,o){if((0,i.abytes)(e),(0,i.abytes)(t),u(r),t.length>255){const e=Math.ceil(2*n/8);t=o.create({dkLen:e}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:r}).update(e).update(s(r,2)).update(t).update(s(t.length,1)).digest()}function f(e,t,r){(0,i.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:s,k:a,m:f,hash:d,expand:h,DST:p}=r;(0,i.abytes)(e),u(t);const b="string"==typeof p?(0,i.utf8ToBytes)(p):p,m=s.toString(2).length,g=Math.ceil((m+a)/8),y=t*f*g;let v;if("xmd"===h)v=c(e,b,y,d);else if("xof"===h)v=l(e,b,y,a,d);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');v=e}const w=new Array(t);for(let e=0;e<t;e++){const t=new Array(f);for(let r=0;r<f;r++){const i=g*(r+e*f),a=v.subarray(i,i+g);t[r]=(0,n.mod)(o(a),s)}w[e]=t}return w}}}},{package:"viem>ox>@noble/curves",file:"node_modules/ox/node_modules/@noble/curves/abstract/hash-to-curve.js"}],[7141,{"./utils.js":7142,"@noble/hashes/utils":4999},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isNegativeLE=void 0,r.mod=d,r.pow=function(e,t,r){return v(k(r),e,t)},r.pow2=function(e,t,r){let n=e;for(;t-- >o;)n*=n,n%=r;return n},r.invert=h,r.tonelliShanks=m,r.FpSqrt=g,r.validateField=function(e){const t=y.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,i.validateObject)(e,t)},r.FpPow=v,r.FpInvertBatch=w,r.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},r.FpLegendre=_,r.FpIsSquare=function(e,t){return 1===_(e,t)},r.nLength=j,r.Field=k,r.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},r.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},r.hashToPrivateScalar=function(e,t,r=!1){const n=(e=(0,i.ensureBytes)("privateHash",e)).length,o=j(t).nByteLength+8;if(o<24||n<o||n>1024)throw new Error("hashToPrivateScalar: expected "+o+"-1024 bytes of input, got "+n);return d(r?(0,i.bytesToNumberLE)(e):(0,i.bytesToNumberBE)(e),t-s)+s},r.getFieldBytesLength=x,r.getMinHashLength=E,r.mapHashToField=function(e,t,r=!1){const n=e.length,o=x(t),a=E(t);if(n<16||n<a||n>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+n);const u=d(r?(0,i.bytesToNumberLE)(e):(0,i.bytesToNumberBE)(e),t-s)+s;return r?(0,i.numberToBytesLE)(u,o):(0,i.numberToBytesBE)(u,o)};
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
const n=e("@noble/hashes/utils"),i=e("./utils.js"),o=BigInt(0),s=BigInt(1),a=BigInt(2),u=BigInt(3),c=BigInt(4),l=BigInt(5),f=BigInt(8);function d(e,t){const r=e%t;return r>=o?r:t+r}function h(e,t){if(e===o)throw new Error("invert: expected non-zero number");if(t<=o)throw new Error("invert: expected positive modulus, got "+t);let r=d(e,t),n=t,i=o,a=s,u=s,c=o;for(;r!==o;){const e=n/r,t=n%r,o=i-u*e,s=a-c*e;n=r,r=t,i=u,a=c,u=o,c=s}if(n!==s)throw new Error("invert: does not exist");return d(i,t)}function p(e,t){const r=(e.ORDER+s)/c,n=e.pow(t,r);if(!e.eql(e.sqr(n),t))throw new Error("Cannot find square root");return n}function b(e,t){const r=(e.ORDER-l)/f,n=e.mul(t,a),i=e.pow(n,r),o=e.mul(t,i),s=e.mul(e.mul(o,a),i),u=e.mul(o,e.sub(s,e.ONE));if(!e.eql(e.sqr(u),t))throw new Error("Cannot find square root");return u}function m(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-s,r=0;for(;t%a===o;)t/=a,r++;let n=a;const i=k(e);for(;1===_(i,n);)if(n++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===r)return p;let u=i.pow(n,t);const c=(t+s)/a;return function(e,n){if(e.is0(n))return n;if(1!==_(e,n))throw new Error("Cannot find square root");let i=r,o=e.mul(e.ONE,u),a=e.pow(n,t),l=e.pow(n,c);for(;!e.eql(a,e.ONE);){if(e.is0(a))return e.ZERO;let t=1,r=e.sqr(a);for(;!e.eql(r,e.ONE);)if(t++,r=e.sqr(r),t===i)throw new Error("Cannot find square root");const n=s<<BigInt(i-t-1),u=e.pow(o,n);i=t,o=e.sqr(u),a=e.mul(a,o),l=e.mul(l,u)}return l}}function g(e){return e%c===u?p:e%f===l?b:m(e)}r.isNegativeLE=(e,t)=>(d(e,t)&s)===s;const y=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function v(e,t,r){if(r<o)throw new Error("invalid exponent, negatives unsupported");if(r===o)return e.ONE;if(r===s)return t;let n=e.ONE,i=t;for(;r>o;)r&s&&(n=e.mul(n,i)),i=e.sqr(i),r>>=s;return n}function w(e,t,r=!1){const n=new Array(t.length).fill(r?e.ZERO:undefined),i=t.reduce((t,r,i)=>e.is0(r)?t:(n[i]=t,e.mul(t,r)),e.ONE),o=e.inv(i);return t.reduceRight((t,r,i)=>e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r)),o),n}function _(e,t){const r=(e.ORDER-s)/a,n=e.pow(t,r),i=e.eql(n,e.ONE),o=e.eql(n,e.ZERO),u=e.eql(n,e.neg(e.ONE));if(!i&&!o&&!u)throw new Error("invalid Legendre symbol result");return i?1:o?0:-1}function j(e,t){t!==undefined&&(0,n.anumber)(t);const r=t!==undefined?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function k(e,t,r=!1,n={}){if(e<=o)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:a,nByteLength:u}=j(e,t);if(u>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let c;const l=Object.freeze({ORDER:e,isLE:r,BITS:a,BYTES:u,MASK:(0,i.bitMask)(a),ZERO:o,ONE:s,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return o<=t&&t<e},is0:e=>e===o,isOdd:e=>(e&s)===s,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,r)=>d(t+r,e),sub:(t,r)=>d(t-r,e),mul:(t,r)=>d(t*r,e),pow:(e,t)=>v(l,e,t),div:(t,r)=>d(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:n.sqrt||(t=>(c||(c=g(e)),c(l,t))),toBytes:e=>r?(0,i.numberToBytesLE)(e,u):(0,i.numberToBytesBE)(e,u),fromBytes:e=>{if(e.length!==u)throw new Error("Field.fromBytes: expected "+u+" bytes, got "+e.length);return r?(0,i.bytesToNumberLE)(e):(0,i.bytesToNumberBE)(e)},invertBatch:e=>w(l,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(l)}function x(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function E(e){const t=x(e);return t+Math.ceil(t/2)}}}},{package:"viem>ox>@noble/curves",file:"node_modules/ox/node_modules/@noble/curves/abstract/modular.js"}],[7142,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
Object.defineProperty(r,"__esModule",{value:!0}),r.notImplemented=r.bitMask=void 0,r.isBytes=o,r.abytes=s,r.abool=function(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)},r.numberToHexUnpadded=a,r.hexToNumber=u,r.bytesToHex=f,r.hexToBytes=p,r.bytesToNumberBE=function(e){return u(f(e))},r.bytesToNumberLE=function(e){return s(e),u(f(Uint8Array.from(e).reverse()))},r.numberToBytesBE=b,r.numberToBytesLE=function(e,t){return b(e,t).reverse()},r.numberToVarBytesBE=function(e){return p(a(e))},r.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=p(t)}catch(t){throw new Error(e+" must be hex string or Uint8Array, cause: "+t)}else{if(!o(t))throw new Error(e+" must be hex string or Uint8Array");n=Uint8Array.from(t)}const i=n.length;if("number"==typeof r&&i!==r)throw new Error(e+" of length "+r+" expected, got "+i);return n},r.concatBytes=m,r.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r},r.utf8ToBytes=function(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))},r.inRange=y,r.aInRange=function(e,t,r,n){if(!y(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)},r.bitLen=function(e){let t;for(t=0;e>n;e>>=i,t+=1);return t},r.bitGet=function(e,t){return e>>BigInt(t)&i},r.bitSet=function(e,t,r){return e|(r?i:n)<<BigInt(t)},r.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=v(e),i=v(e),o=0;const s=()=>{n.fill(1),i.fill(0),o=0},a=(...e)=>r(i,n,...e),u=(e=v(0))=>{i=a(w([0]),e),n=a(),0!==e.length&&(i=a(w([1]),e),n=a())},c=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e<t;){n=a();const t=n.slice();r.push(t),e+=n.length}return m(...r)};return(e,t)=>{s(),u(e);let r=undefined;for(;!(r=t(c()));)u();return s(),r}},r.validateObject=function(e,t,r={}){const n=(t,r,n)=>{const i=_[r];if("function"!=typeof i)throw new Error("invalid validator function");const o=e[t];if(!(n&&o===undefined||i(o,e)))throw new Error("param "+String(t)+" is invalid. Expected "+r+", got "+o)};for(const[e,r]of Object.entries(t))n(e,r,!1);for(const[e,t]of Object.entries(r))n(e,t,!0);return e},r.memoized=function(e){const t=new WeakMap;return(r,...n)=>{const i=t.get(r);if(i!==undefined)return i;const o=e(r,...n);return t.set(r,o),o}};const n=BigInt(0),i=BigInt(1);function o(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function s(e){if(!o(e))throw new Error("Uint8Array expected")}function a(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function u(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?n:BigInt("0x"+e)}const c="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,l=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function f(e){if(s(e),c)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=l[e[r]];return t}const d={_0:48,_9:57,A:65,F:70,a:97,f:102};function h(e){return e>=d._0&&e<=d._9?e-d._0:e>=d.A&&e<=d.F?e-(d.A-10):e>=d.a&&e<=d.f?e-(d.a-10):void 0}function p(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(c)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){const r=h(e.charCodeAt(i)),o=h(e.charCodeAt(i+1));if(r===undefined||o===undefined){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}n[t]=16*r+o}return n}function b(e,t){return p(e.toString(16).padStart(2*t,"0"))}function m(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];s(n),t+=n.length}const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const i=e[t];r.set(i,n),n+=i.length}return r}const g=e=>"bigint"==typeof e&&n<=e;function y(e,t,r){return g(e)&&g(t)&&g(r)&&t<=e&&e<r}r.bitMask=e=>(i<<BigInt(e))-i;const v=e=>new Uint8Array(e),w=e=>Uint8Array.from(e);const _={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||o(e),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)};r.notImplemented=()=>{throw new Error("not implemented")}}}},{package:"viem>ox>@noble/curves",file:"node_modules/ox/node_modules/@noble/curves/abstract/utils.js"}],[7143,{"./curve.js":7139,"./modular.js":7141,"./utils.js":7142},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DER=r.DERErr=void 0,r.weierstrassPoints=p,r.weierstrass=function(e){const t=function(e){const t=(0,n.validateBasic)(e);return(0,o.validateObject)(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:a,n:f,nByteLength:d,nBitLength:h}=t,b=a.BYTES+1,m=2*a.BYTES+1;function g(e){return(0,i.mod)(e,f)}function y(e){return(0,i.invert)(e,f)}const{ProjectivePoint:v,normPrivateKeyToScalar:w,weierstrassEquation:_,isWithinCurveOrder:j}=p({...t,toBytes(e,t,r){const n=t.toAffine(),i=a.toBytes(n.x),s=o.concatBytes;return(0,o.abool)("isCompressed",r),r?s(Uint8Array.from([t.hasEvenY()?2:3]),i):s(Uint8Array.from([4]),i,a.toBytes(n.y))},fromBytes(e){const t=e.length,r=e[0],n=e.subarray(1);if(t!==b||2!==r&&3!==r){if(t===m&&4===r){return{x:a.fromBytes(n.subarray(0,a.BYTES)),y:a.fromBytes(n.subarray(a.BYTES,2*a.BYTES))}}throw new Error("invalid Point, expected length of "+b+", or uncompressed "+m+", got "+t)}{const e=(0,o.bytesToNumberBE)(n);if(!(0,o.inRange)(e,l,a.ORDER))throw new Error("Point is not on curve");const t=_(e);let i;try{i=a.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("Point is not on curve"+t)}return!(1&~r)!==((i&l)===l)&&(i=a.neg(i)),{x:e,y:i}}}});function k(e){return e>f>>l}const x=(e,t,r)=>(0,o.bytesToNumberBE)(e.slice(t,r));class E{constructor(e,t,r){(0,o.aInRange)("r",e,l,f),(0,o.aInRange)("s",t,l,f),this.r=e,this.s=t,null!=r&&(this.recovery=r),Object.freeze(this)}static fromCompact(e){const t=d;return e=(0,o.ensureBytes)("compactSignature",e,2*t),new E(x(e,0,t),x(e,t,2*t))}static fromDER(e){const{r:t,s:n}=r.DER.toSig((0,o.ensureBytes)("DER",e));return new E(t,n)}assertValidity(){}addRecoveryBit(e){return new E(this.r,this.s,e)}recoverPublicKey(e){const{r:r,s:n,recovery:i}=this,s=P((0,o.ensureBytes)("msgHash",e));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const c=2===i||3===i?r+t.n:r;if(c>=a.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=1&i?"03":"02",f=v.fromHex(l+u(c,a.BYTES)),d=y(c),h=g(-s*d),p=g(n*d),b=v.BASE.multiplyAndAddUnsafe(f,h,p);if(!b)throw new Error("point at infinify");return b.assertValidity(),b}hasHighS(){return k(this.s)}normalizeS(){return this.hasHighS()?new E(this.r,g(-this.s),this.recovery):this}toDERRawBytes(){return(0,o.hexToBytes)(this.toDERHex())}toDERHex(){return r.DER.hexFromSig(this)}toCompactRawBytes(){return(0,o.hexToBytes)(this.toCompactHex())}toCompactHex(){const e=d;return u(this.r,e)+u(this.s,e)}}const T={isValidPrivateKey(e){try{return w(e),!0}catch(e){return!1}},normPrivateKeyToScalar:w,randomPrivateKey:()=>{const e=(0,i.getMinHashLength)(t.n);return(0,i.mapHashToField)(t.randomBytes(e),t.n)},precompute:(e=8,t=v.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function S(e){if("bigint"==typeof e)return!1;if(e instanceof v)return!0;const r=(0,o.ensureBytes)("key",e).length,n=a.BYTES,i=n+1,s=2*n+1;return t.allowedPrivateKeyLengths||d===i?undefined:r===i||r===s}const O=t.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=(0,o.bytesToNumberBE)(e),r=8*e.length-h;return r>0?t>>BigInt(r):t},P=t.bits2int_modN||function(e){return g(O(e))},A=(0,o.bitMask)(h);function I(e){return(0,o.aInRange)("num < 2^"+h,e,c,A),(0,o.numberToBytesBE)(e,d)}function M(e,r,n=R){if(["recovered","canonical"].some(e=>e in n))throw new Error("sign() legacy options not supported");const{hash:i,randomBytes:u}=t;let{lowS:f,prehash:d,extraEntropy:h}=n;null==f&&(f=!0),e=(0,o.ensureBytes)("msgHash",e),s(n),d&&(e=(0,o.ensureBytes)("prehashed msgHash",i(e)));const p=P(e),b=w(r),m=[I(b),I(p)];if(null!=h&&!1!==h){const e=!0===h?u(a.BYTES):h;m.push((0,o.ensureBytes)("extraEntropy",e))}const _=(0,o.concatBytes)(...m),x=p;return{seed:_,k2sig:function(e){const t=O(e);if(!j(t))return;const r=y(t),n=v.BASE.multiply(t).toAffine(),i=g(n.x);if(i===c)return;const o=g(r*g(x+i*b));if(o===c)return;let s=(n.x===i?0:2)|Number(n.y&l),a=o;return f&&k(o)&&(a=function(e){return k(e)?g(-e):e}(o),s^=1),new E(i,a,s)}}}const R={lowS:t.lowS,prehash:!1},B={lowS:t.lowS,prehash:!1};return v.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return v.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(!0===S(e))throw new Error("first arg must be private key");if(!1===S(t))throw new Error("second arg must be public key");return v.fromHex(t).multiply(w(e)).toRawBytes(r)},sign:function(e,r,n=R){const{seed:i,k2sig:s}=M(e,r,n),a=t;return(0,o.createHmacDrbg)(a.hash.outputLen,a.nByteLength,a.hmac)(i,s)},verify:function(e,n,i,a=B){const u=e;n=(0,o.ensureBytes)("msgHash",n),i=(0,o.ensureBytes)("publicKey",i);const{lowS:c,prehash:l,format:f}=a;if(s(a),"strict"in a)throw new Error("options.strict was renamed to lowS");if(f!==undefined&&"compact"!==f&&"der"!==f)throw new Error("format must be compact or der");const d="string"==typeof u||(0,o.isBytes)(u),h=!d&&!f&&"object"==typeof u&&null!==u&&"bigint"==typeof u.r&&"bigint"==typeof u.s;if(!d&&!h)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let p,b=undefined;try{if(h&&(b=new E(u.r,u.s)),d){try{"compact"!==f&&(b=E.fromDER(u))}catch(e){if(!(e instanceof r.DER.Err))throw e}b||"der"===f||(b=E.fromCompact(u))}p=v.fromHex(i)}catch(e){return!1}if(!b)return!1;if(c&&b.hasHighS())return!1;l&&(n=t.hash(n));const{r:m,s:w}=b,_=P(n),j=y(w),k=g(_*j),x=g(m*j),T=v.BASE.multiplyAndAddUnsafe(p,k,x)?.toAffine();if(!T)return!1;return g(T.x)===m},ProjectivePoint:v,Signature:E,utils:T}},r.SWUFpSqrtRatio=b,r.mapToCurveSimpleSWU=function(e,t){if((0,i.validateField)(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=b(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let o,s,a,u,c,l,f,d;o=e.sqr(n),o=e.mul(o,t.Z),s=e.sqr(o),s=e.add(s,o),a=e.add(s,e.ONE),a=e.mul(a,t.B),u=e.cmov(t.Z,e.neg(s),!e.eql(s,e.ZERO)),u=e.mul(u,t.A),s=e.sqr(a),l=e.sqr(u),c=e.mul(l,t.A),s=e.add(s,c),s=e.mul(s,a),l=e.mul(l,u),c=e.mul(l,t.B),s=e.add(s,c),f=e.mul(o,a);const{isValid:h,value:p}=r(s,l);d=e.mul(o,n),d=e.mul(d,p),f=e.cmov(f,a,h),d=e.cmov(d,p,h);const b=e.isOdd(n)===e.isOdd(d);d=e.cmov(e.neg(d),d,b);const m=(0,i.FpInvertBatch)(e,[u],!0)[0];return f=e.mul(f,m),{x:f,y:d}}};
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
const n=e("./curve.js"),i=e("./modular.js"),o=e("./utils.js");function s(e){e.lowS!==undefined&&(0,o.abool)("lowS",e.lowS),e.prehash!==undefined&&(0,o.abool)("prehash",e.prehash)}class a extends Error{constructor(e=""){super(e)}}function u(e,t){return(0,o.bytesToHex)((0,o.numberToBytesBE)(e,t))}r.DERErr=a,r.DER={Err:a,_tlv:{encode:(e,t)=>{const{Err:n}=r.DER;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");const i=t.length/2,s=(0,o.numberToHexUnpadded)(i);if(s.length/2&128)throw new n("tlv.encode: long form length too big");const a=i>127?(0,o.numberToHexUnpadded)(s.length/2|128):"";return(0,o.numberToHexUnpadded)(e)+a+s+t},decode(e,t){const{Err:n}=r.DER;let i=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[i++]!==e)throw new n("tlv.decode: wrong tlv");const o=t[i++];let s=0;if(!!(128&o)){const e=127&o;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");const r=t.subarray(i,i+e);if(r.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===r[0])throw new n("tlv.decode(long): zero leftmost byte");for(const e of r)s=s<<8|e;if(i+=e,s<128)throw new n("tlv.decode(long): not minimal encoding")}else s=o;const a=t.subarray(i,i+s);if(a.length!==s)throw new n("tlv.decode: wrong value length");return{v:a,l:t.subarray(i+s)}}},_int:{encode(e){const{Err:t}=r.DER;if(e<c)throw new t("integer: negative integers are not allowed");let n=(0,o.numberToHexUnpadded)(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=r.DER;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(0,o.bytesToNumberBE)(e)}},toSig(e){const{Err:t,_int:n,_tlv:i}=r.DER,s=(0,o.ensureBytes)("signature",e),{v:a,l:u}=i.decode(48,s);if(u.length)throw new t("invalid signature: left bytes after parsing");const{v:c,l:l}=i.decode(2,a),{v:f,l:d}=i.decode(2,l);if(d.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(c),s:n.decode(f)}},hexFromSig(e){const{_tlv:t,_int:n}=r.DER,i=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,i)}};const c=BigInt(0),l=BigInt(1),f=BigInt(2),d=BigInt(3),h=BigInt(4);function p(e){const t=function(e){const t=(0,n.validateBasic)(e);(0,o.validateObject)(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:r,Fp:i,a:s}=t;if(r){if(!i.eql(s,i.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}(e),{Fp:r}=t,s=(0,i.Field)(t.n,t.nBitLength),a=t.toBytes||((e,t,n)=>{const i=t.toAffine();return(0,o.concatBytes)(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),u=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function f(e){const{a:n,b:i}=t,o=r.sqr(e),s=r.mul(o,e);return r.add(r.add(s,r.mul(e,n)),i)}function p(e,t){const n=r.sqr(t),i=f(e);return r.eql(n,i)}if(!p(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const b=r.mul(r.pow(t.a,d),h),m=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(b,m)))throw new Error("bad curve params: a or b");function g(e){const{allowedPrivateKeyLengths:r,nByteLength:n,wrapPrivateKey:s,n:a}=t;if(r&&"bigint"!=typeof e){if((0,o.isBytes)(e)&&(e=(0,o.bytesToHex)(e)),"string"!=typeof e||!r.includes(e.length))throw new Error("invalid private key");e=e.padStart(2*n,"0")}let u;try{u="bigint"==typeof e?e:(0,o.bytesToNumberBE)((0,o.ensureBytes)("private key",e,n))}catch(t){throw new Error("invalid private key, expected hex or "+n+" bytes, got "+typeof e)}return s&&(u=(0,i.mod)(u,a)),(0,o.aInRange)("private key",u,l,a),u}function y(e){if(!(e instanceof _))throw new Error("ProjectivePoint expected")}const v=(0,o.memoized)((e,t)=>{const{px:n,py:i,pz:o}=e;if(r.eql(o,r.ONE))return{x:n,y:i};const s=e.is0();null==t&&(t=s?r.ONE:r.inv(o));const a=r.mul(n,t),u=r.mul(i,t),c=r.mul(o,t);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:a,y:u}}),w=(0,o.memoized)(e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=e.toAffine();if(!r.isValid(n)||!r.isValid(i))throw new Error("bad point: x or y not FE");if(!p(n,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class _{constructor(e,t,n){if(null==e||!r.isValid(e))throw new Error("x required");if(null==t||!r.isValid(t)||r.is0(t))throw new Error("y required");if(null==n||!r.isValid(n))throw new Error("z required");this.px=e,this.py=t,this.pz=n,Object.freeze(this)}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw new Error("invalid affine point");if(e instanceof _)throw new Error("projective point not allowed");const i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?_.ZERO:new _(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=(0,i.FpInvertBatch)(r,e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(_.fromAffine)}static fromHex(e){const t=_.fromAffine(u((0,o.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return _.BASE.multiply(g(e))}static msm(e,t){return(0,n.pippenger)(_,s,e,t)}_setWindowSize(e){x.setWindowSize(this,e)}assertValidity(){w(this)}hasEvenY(){const{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){y(e);const{px:t,py:n,pz:i}=this,{px:o,py:s,pz:a}=e,u=r.eql(r.mul(t,a),r.mul(o,i)),c=r.eql(r.mul(n,a),r.mul(s,i));return u&&c}negate(){return new _(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:n}=t,i=r.mul(n,d),{px:o,py:s,pz:a}=this;let u=r.ZERO,c=r.ZERO,l=r.ZERO,f=r.mul(o,o),h=r.mul(s,s),p=r.mul(a,a),b=r.mul(o,s);return b=r.add(b,b),l=r.mul(o,a),l=r.add(l,l),u=r.mul(e,l),c=r.mul(i,p),c=r.add(u,c),u=r.sub(h,c),c=r.add(h,c),c=r.mul(u,c),u=r.mul(b,u),l=r.mul(i,l),p=r.mul(e,p),b=r.sub(f,p),b=r.mul(e,b),b=r.add(b,l),l=r.add(f,f),f=r.add(l,f),f=r.add(f,p),f=r.mul(f,b),c=r.add(c,f),p=r.mul(s,a),p=r.add(p,p),f=r.mul(p,b),u=r.sub(u,f),l=r.mul(p,h),l=r.add(l,l),l=r.add(l,l),new _(u,c,l)}add(e){y(e);const{px:n,py:i,pz:o}=this,{px:s,py:a,pz:u}=e;let c=r.ZERO,l=r.ZERO,f=r.ZERO;const h=t.a,p=r.mul(t.b,d);let b=r.mul(n,s),m=r.mul(i,a),g=r.mul(o,u),v=r.add(n,i),w=r.add(s,a);v=r.mul(v,w),w=r.add(b,m),v=r.sub(v,w),w=r.add(n,o);let j=r.add(s,u);return w=r.mul(w,j),j=r.add(b,g),w=r.sub(w,j),j=r.add(i,o),c=r.add(a,u),j=r.mul(j,c),c=r.add(m,g),j=r.sub(j,c),f=r.mul(h,w),c=r.mul(p,g),f=r.add(c,f),c=r.sub(m,f),f=r.add(m,f),l=r.mul(c,f),m=r.add(b,b),m=r.add(m,b),g=r.mul(h,g),w=r.mul(p,w),m=r.add(m,g),g=r.sub(b,g),g=r.mul(h,g),w=r.add(w,g),b=r.mul(m,w),l=r.add(l,b),b=r.mul(j,w),c=r.mul(v,c),c=r.sub(c,b),b=r.mul(v,m),f=r.mul(j,f),f=r.add(f,b),new _(c,l,f)}subtract(e){return this.add(e.negate())}is0(){return this.equals(_.ZERO)}wNAF(e){return x.wNAFCached(this,e,_.normalizeZ)}multiplyUnsafe(e){const{endo:n,n:i}=t;(0,o.aInRange)("scalar",e,c,i);const s=_.ZERO;if(e===c)return s;if(this.is0()||e===l)return this;if(!n||x.hasPrecomputes(this))return x.wNAFCachedUnsafe(this,e,_.normalizeZ);let{k1neg:a,k1:u,k2neg:f,k2:d}=n.splitScalar(e),h=s,p=s,b=this;for(;u>c||d>c;)u&l&&(h=h.add(b)),d&l&&(p=p.add(b)),b=b.double(),u>>=l,d>>=l;return a&&(h=h.negate()),f&&(p=p.negate()),p=new _(r.mul(p.px,n.beta),p.py,p.pz),h.add(p)}multiply(e){const{endo:n,n:i}=t;let s,a;if((0,o.aInRange)("scalar",e,l,i),n){const{k1neg:t,k1:i,k2neg:o,k2:u}=n.splitScalar(e);let{p:c,f:l}=this.wNAF(i),{p:f,f:d}=this.wNAF(u);c=x.constTimeNegate(t,c),f=x.constTimeNegate(o,f),f=new _(r.mul(f.px,n.beta),f.py,f.pz),s=c.add(f),a=l.add(d)}else{const{p:t,f:r}=this.wNAF(e);s=t,a=r}return _.normalizeZ([s,a])[0]}multiplyAndAddUnsafe(e,t,r){const n=_.BASE,i=(e,t)=>t!==c&&t!==l&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?undefined:o}toAffine(e){return v(this,e)}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===l)return!0;if(r)return r(_,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===l?this:r?r(_,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return(0,o.abool)("isCompressed",e),this.assertValidity(),a(_,this,e)}toHex(e=!0){return(0,o.abool)("isCompressed",e),(0,o.bytesToHex)(this.toRawBytes(e))}}_.BASE=new _(t.Gx,t.Gy,r.ONE),_.ZERO=new _(r.ZERO,r.ONE,r.ZERO);const{endo:j,nBitLength:k}=t,x=(0,n.wNAF)(_,j?Math.ceil(k/2):k);return{CURVE:t,ProjectivePoint:_,normPrivateKeyToScalar:g,weierstrassEquation:f,isWithinCurveOrder:function(e){return(0,o.inRange)(e,l,t.n)}}}function b(e,t){const r=e.ORDER;let n=c;for(let e=r-l;e%f===c;e/=f)n+=l;const i=n,o=f<<i-l-l,s=o*f,a=(r-l)/s,u=(a-l)/f,p=s-l,b=o,m=e.pow(t,a),g=e.pow(t,(a+l)/f);let y=(t,r)=>{let n=m,o=e.pow(r,p),s=e.sqr(o);s=e.mul(s,r);let a=e.mul(t,s);a=e.pow(a,u),a=e.mul(a,o),o=e.mul(a,r),s=e.mul(a,t);let c=e.mul(s,o);a=e.pow(c,b);let d=e.eql(a,e.ONE);o=e.mul(s,g),a=e.mul(c,n),s=e.cmov(o,s,d),c=e.cmov(a,c,d);for(let t=i;t>l;t--){let r=t-f;r=f<<r-l;let i=e.pow(c,r);const a=e.eql(i,e.ONE);o=e.mul(s,n),n=e.mul(n,n),i=e.mul(c,n),s=e.cmov(o,s,a),c=e.cmov(i,c,a)}return{isValid:d,value:s}};if(e.ORDER%h===d){const r=(e.ORDER-d)/h,n=e.sqrt(e.neg(t));y=(t,i)=>{let o=e.sqr(i);const s=e.mul(t,i);o=e.mul(o,s);let a=e.pow(o,r);a=e.mul(a,s);const u=e.mul(a,n),c=e.mul(e.sqr(a),i),l=e.eql(c,t);return{isValid:l,value:e.cmov(u,a,l)}}}return y}}}},{package:"viem>ox>@noble/curves",file:"node_modules/ox/node_modules/@noble/curves/abstract/weierstrass.js"}],[7144,{"./_shortw_utils.js":7138,"./abstract/hash-to-curve.js":7140,"./abstract/modular.js":7141,"./abstract/utils.js":7142,"./abstract/weierstrass.js":7143,"@noble/hashes/sha2":4995,"@noble/hashes/utils":4999},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.encodeToCurve=r.hashToCurve=r.secp256k1_hasher=r.schnorr=r.secp256k1=void 0;
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
const n=e("@noble/hashes/sha2"),i=e("@noble/hashes/utils"),o=e("./_shortw_utils.js"),s=e("./abstract/hash-to-curve.js"),a=e("./abstract/modular.js"),u=e("./abstract/utils.js"),c=e("./abstract/weierstrass.js"),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),f=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(0),h=BigInt(1),p=BigInt(2),b=(e,t)=>(e+t/p)/t;function m(e){const t=l,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),u=BigInt(44),c=BigInt(88),f=e*e*e%t,d=f*f*e%t,h=(0,a.pow2)(d,r,t)*d%t,b=(0,a.pow2)(h,r,t)*d%t,m=(0,a.pow2)(b,p,t)*f%t,y=(0,a.pow2)(m,i,t)*m%t,v=(0,a.pow2)(y,o,t)*y%t,w=(0,a.pow2)(v,u,t)*v%t,_=(0,a.pow2)(w,c,t)*w%t,j=(0,a.pow2)(_,u,t)*v%t,k=(0,a.pow2)(j,r,t)*d%t,x=(0,a.pow2)(k,s,t)*y%t,E=(0,a.pow2)(x,n,t)*f%t,T=(0,a.pow2)(E,p,t);if(!g.eql(g.sqr(T),e))throw new Error("Cannot find square root");return T}const g=(0,a.Field)(l,undefined,undefined,{sqrt:m});r.secp256k1=(0,o.createCurve)({a:d,b:BigInt(7),Fp:g,n:f,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=f,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-h*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,s=BigInt("0x100000000000000000000000000000000"),u=b(o*e,t),c=b(-n*e,t);let l=(0,a.mod)(e-u*r-c*i,t),d=(0,a.mod)(-u*n-c*o,t);const p=l>s,m=d>s;if(p&&(l=t-l),m&&(d=t-d),l>s||d>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:p,k1:l,k2neg:m,k2:d}}}},n.sha256);const y={};function v(e,...t){let r=y[e];if(r===undefined){const t=(0,n.sha256)(Uint8Array.from(e,e=>e.charCodeAt(0)));r=(0,u.concatBytes)(t,t),y[e]=r}return(0,n.sha256)((0,u.concatBytes)(r,...t))}const w=e=>e.toRawBytes(!0).slice(1),_=e=>(0,u.numberToBytesBE)(e,32),j=e=>(0,a.mod)(e,l),k=e=>(0,a.mod)(e,f),x=(()=>r.secp256k1.ProjectivePoint)();function E(e){let t=r.secp256k1.utils.normPrivateKeyToScalar(e),n=x.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:k(-t),bytes:w(n)}}function T(e){(0,u.aInRange)("x",e,h,l);const t=j(e*e);let r=m(j(t*e+BigInt(7)));r%p!==d&&(r=j(-r));const n=new x(e,r,h);return n.assertValidity(),n}const S=u.bytesToNumberBE;function O(...e){return k(S(v("BIP0340/challenge",...e)))}function P(e){return E(e).bytes}function A(e,t,r=(0,i.randomBytes)(32)){const n=(0,u.ensureBytes)("message",e),{bytes:o,scalar:s}=E(t),a=(0,u.ensureBytes)("auxRand",r,32),c=_(s^S(v("BIP0340/aux",a))),l=v("BIP0340/nonce",c,o,n),f=k(S(l));if(f===d)throw new Error("sign failed: k is zero");const{bytes:h,scalar:p}=E(f),b=O(h,o,n),m=new Uint8Array(64);if(m.set(h,0),m.set(_(k(p+b*s)),32),!I(m,n,o))throw new Error("sign: Invalid signature produced");return m}function I(e,t,r){const n=(0,u.ensureBytes)("signature",e,64),i=(0,u.ensureBytes)("message",t),o=(0,u.ensureBytes)("publicKey",r,32);try{const e=T(S(o)),t=S(n.subarray(0,32));if(!(0,u.inRange)(t,h,l))return!1;const r=S(n.subarray(32,64));if(!(0,u.inRange)(r,h,f))return!1;const d=O(_(t),w(e),i),p=(s=e,a=r,c=k(-d),x.BASE.multiplyAndAddUnsafe(s,a,c));return!(!p||!p.hasEvenY()||p.toAffine().x!==t)}catch(e){return!1}var s,a,c}r.schnorr={getPublicKey:P,sign:A,verify:I,utils:{randomPrivateKey:r.secp256k1.utils.randomPrivateKey,lift_x:T,pointToBytes:w,numberToBytesBE:u.numberToBytesBE,bytesToNumberBE:u.bytesToNumberBE,taggedHash:v,mod:a.mod}};const M=(()=>(0,s.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))))(),R=(()=>(0,c.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}))();r.secp256k1_hasher=(0,s.createHasher)(r.secp256k1.ProjectivePoint,e=>{const{x:t,y:r}=R(g.create(e[0]));return M(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}),r.hashToCurve=r.secp256k1_hasher.hashToCurve,r.encodeToCurve=r.secp256k1_hasher.encodeToCurve}}},{package:"viem>ox>@noble/curves",file:"node_modules/ox/node_modules/@noble/curves/secp256k1.js"}],[7174,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=(e,t,r,n)=>function(...i){return new(0,t.promiseModule)((o,s)=>{t.multiArgs?i.push((...e)=>{t.errorFirst?e[0]?s(e):(e.shift(),o(e)):o(e)}):t.errorFirst?i.push((e,t)=>{e?s(e):o(t)}):i.push(o);const a=this===r?n:this;Reflect.apply(e,a,i)})},i=new WeakMap;t.exports=(e,t)=>{t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};const r=typeof e;if(null===e||"object"!==r&&"function"!==r)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":r}\``);const o=new WeakMap,s=new Proxy(e,{apply(e,r,i){const a=o.get(e);if(a)return Reflect.apply(a,r,i);const u=t.excludeMain?e:n(e,t,s,e);return o.set(e,u),Reflect.apply(u,r,i)},get(e,r){const a=e[r];if(!((e,r)=>{let n=i.get(e);if(n||(n={},i.set(e,n)),r in n)return n[r];const o=e=>"string"==typeof e||"symbol"==typeof r?r===e:e.test(r),s=Reflect.getOwnPropertyDescriptor(e,r),a=s===undefined||s.writable||s.configurable,u=(t.include?t.include.some(o):!t.exclude.some(o))&&a;return n[r]=u,u})(e,r)||a===Function.prototype[r])return a;const u=o.get(a);if(u)return u;if("function"==typeof a){const r=n(a,t,s,e);return o.set(a,r),r}return a}});return s}}}},{package:"pify",file:"node_modules/pify/index.js"}],[72,{"../../../shared/constants/app":8202,"@metamask/rpc-errors":3494},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SPAM_FILTER_ACTIVATED_ERROR=r.REJECTION_THRESHOLD_IN_MS=r.NUMBER_OF_REJECTIONS_THRESHOLD=r.BLOCKING_THRESHOLD_IN_MS=r.BLOCKABLE_METHODS=void 0,r.default=function({getThrottledOriginState:e,updateThrottledOriginState:t}){return function(r,n,i,d){const{method:h,origin:p}=r;if(!u.has(h)||c.includes(p))return void i();!function(e){if(!e)return!1;const t=Date.now(),{rejections:r,lastRejection:n}=e,i=t-n<=a;return r>=o&&i}(e(p))?i(r=>{if("error"in n&&n.error&&f(n.error)){const i=n.error?.data;if("rejectAllApprovals"===i?.cause)return void r();const o=e(p)||{rejections:0,lastRejection:0},a=Date.now(),u=a-o.lastRejection<s?o.rejections+1:1;t(p,{rejections:u,lastRejection:a})}else{const r=e(p);Boolean(r)&&t(p,{rejections:0,lastRejection:0})}r()}):d(l)}};var n=e("@metamask/rpc-errors"),i=e("../../../shared/constants/app");const o=r.NUMBER_OF_REJECTIONS_THRESHOLD=3,s=r.REJECTION_THRESHOLD_IN_MS=3e4,a=r.BLOCKING_THRESHOLD_IN_MS=6e4,u=r.BLOCKABLE_METHODS=new Set([i.MESSAGE_TYPE.ADD_ETHEREUM_CHAIN,i.MESSAGE_TYPE.ETH_SEND_TRANSACTION,i.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA,i.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA_V1,i.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA_V3,i.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA_V4,i.MESSAGE_TYPE.PERSONAL_SIGN,i.MESSAGE_TYPE.SWITCH_ETHEREUM_CHAIN,i.MESSAGE_TYPE.WALLET_SEND_CALLS,i.MESSAGE_TYPE.WATCH_ASSET]),c=["http://127.0.0.1:8080","http://127.0.0.1:8081","http://127.0.0.1:8082","http://localhost:8080","http://localhost:8081","http://localhost:8082"],l=r.SPAM_FILTER_ACTIVATED_ERROR=n.providerErrors.unauthorized("Request blocked due to spam filter."),f=e=>e.code===n.errorCodes.provider.userRejectedRequest}}},{package:"$root$",file:"app/scripts/lib/createOriginThrottlingMiddleware.ts"}],[7210,{"./src/index-light":7216},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("./src/index-light")}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/light.js"}],[7211,{"./enum":7214,"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r,i=e("./enum"),o=e("./util");function s(e,t,r,n){var o=!1;if(t.resolvedType)if(t.resolvedType instanceof i){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u<a.length;++u)s[a[u]]!==t.typeDefault||o||(e("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',n,n,n),t.repeated||e("break"),o=!0),e("case%j:",a[u])("case %i:",s[a[u]])("m%s=%j",n,s[a[u]])("break");e("}")}else e('if(typeof d%s!=="object")',n)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s,n+1)",n,r,n);else{var c=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",n,n);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof i?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,o?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=o.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;n<t.length;++n){var a=t[n].resolve(),u=o.safeProp(a.name);a.map?(r("if(d%s){",u)('if(typeof d%s!=="object")',u)("throw TypeError(%j)",a.fullName+": object expected")("m%s={}",u)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",u),r('if(ks[i]==="__proto__")')("util.makeProp(m%s,ks[i])",u),s(r,a,n,u+"[ks[i]]")("}")("}")):a.repeated?(r("if(d%s){",u)("if(!Array.isArray(d%s))",u)("throw TypeError(%j)",a.fullName+": array expected")("m%s=[]",u)("for(var i=0;i<d%s.length;++i){",u),s(r,a,n,u+"[i]")("}")("}")):(a.resolvedType instanceof i||r("if(d%s!=null){",u),s(r,a,n,u),a.resolvedType instanceof i||r("}"))}return r("return m")},n.toObject=function(e){var t=e.fieldsArray.slice().sort(o.compareFieldsById);if(!t.length)return o.codegen()("return {}");for(var r=o.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),n=[],s=[],u=[],c=0;c<t.length;++c)t[c].partOf||(t[c].resolve().repeated?n:t[c].map?s:u).push(t[c]);if(n.length){for(r("if(o.arrays||o.defaults){"),c=0;c<n.length;++c)r("d%s=[]",o.safeProp(n[c].name));r("}")}if(s.length){for(r("if(o.objects||o.defaults){"),c=0;c<s.length;++c)r("d%s={}",o.safeProp(s[c].name));r("}")}if(u.length){for(r("if(o.defaults){"),c=0;c<u.length;++c){var l=u[c],f=o.safeProp(l.name);if(l.resolvedType instanceof i)r("d%s=o.enums===String?%j:%j",f,l.resolvedType.valuesById[l.typeDefault],l.typeDefault);else if(l.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",l.typeDefault.low,l.typeDefault.high,l.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",f)("}else")("d%s=o.longs===String?%j:%i",f,l.typeDefault.toString(),l.typeDefault.toNumber());else if(l.bytes){var d=Array.prototype.slice.call(l.typeDefault);r("if(o.bytes===String)d%s=%j",f,String.fromCharCode.apply(String,l.typeDefault))("else{")("d%s=%j",f,d)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",f,f)("}")}else r("d%s=%j",f,l.typeDefault)}r("}")}var h=!1;for(c=0;c<t.length;++c){l=t[c];var p=e._fieldsArray.indexOf(l);f=o.safeProp(l.name);l.map?(h||(h=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",f,f)("d%s={}",f)("for(var j=0;j<ks2.length;++j){"),r('if(ks2[j]==="__proto__")')("util.makeProp(d%s,ks2[j])",f),a(r,l,p,f+"[ks2[j]]")("}")):l.repeated?(r("if(m%s&&m%s.length){",f,f)("d%s=[]",f)("for(var j=0;j<m%s.length;++j){",f),a(r,l,p,f+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",f,l.name),a(r,l,p,f),l.partOf&&r("if(o.oneofs)")("d%s=%j",o.safeProp(l.partOf.name),l.name)),r("}")}return r("return d")}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/converter.js"}],[7212,{"./enum":7214,"./types":7232,"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){for(var t=o.codegen(["r","l","e","n"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("if(n===undefined)n=0")("if(n>Reader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),r=0;r<e.fieldsArray.length;++r){var a=e._fieldsArray[r].resolve(),u=a.resolvedType instanceof n?"int32":a.type,c="m"+o.safeProp(a.name);t("case %i: {",a.id),a.map?(t("if(%s===util.emptyObject)",c)("%s={}",c)("var c2 = r.uint32()+r.pos"),i.defaults[a.keyType]!==undefined?t("k=%j",i.defaults[a.keyType]):t("k=null"),i.defaults[u]!==undefined?t("value=%j",i.defaults[u]):t("value=null"),t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),i.basic[u]===undefined?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),i.long[a.keyType]!==undefined?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),i.packed[u]!==undefined&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",c,u)("}else"),i.basic[u]===undefined?t(a.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4),n+1))":"%s.push(types[%i].decode(r,r.uint32(),undefined,n+1))",c,r):t("%s.push(r.%s())",c,u)):i.basic[u]===undefined?t(a.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4),n+1)":"%s=types[%i].decode(r,r.uint32(),undefined,n+1)",c,r):t("%s=r.%s()",c,u),t("break")("}")}for(t("default:")("r.skipType(t&7,n)")("break")("}")("}"),r=0;r<e._fieldsArray.length;++r){var l=e._fieldsArray[r];l.required&&t("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",s(l))}return t("return m")};var n=e("./enum"),i=e("./types"),o=e("./util");function s(e){return"missing required '"+e.name+"'"}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/decoder.js"}],[7213,{"./enum":7214,"./types":7232,"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){for(var t,r=o.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),a=e.fieldsArray.slice().sort(o.compareFieldsById),u=0;u<a.length;++u){var c=a[u].resolve(),l=e._fieldsArray.indexOf(c),f=c.resolvedType instanceof n?"int32":c.type,d=i.basic[f];t="m"+o.safeProp(c.name),c.map?(r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",t,c.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",t)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(c.id<<3|2)>>>0,8|i.mapKey[c.keyType],c.keyType),d===undefined?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|d,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&i.packed[f]!==undefined?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),d===undefined?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|d)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),d===undefined?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|d)>>>0,f,t))}return r("return w")};var n=e("./enum"),i=e("./types"),o=e("./util");function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/encoder.js"}],[7214,{"./namespace":7221,"./object":7222,"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=s;var n=e("./object");((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var i=e("./namespace"),o=e("./util");function s(e,t,r,i,o,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=i,this.comments=o||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=undefined,t)for(var a=Object.keys(t),u=0;u<a.length;++u)"__proto__"!==a[u]&&"number"==typeof t[a[u]]&&(this.valuesById[this.values[a[u]]=t[a[u]]]=a[u])}s.prototype._resolveFeatures=function(e){return e=this._edition||e,n.prototype._resolveFeatures.call(this,e),Object.keys(this.values).forEach(e=>{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:undefined,"comment",t?this.comment:undefined,"comments",t?this.comments:undefined])},s.prototype.add=function(e,t,r,n){if(!o.isString(e))throw TypeError("name must be a string");if(!o.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(this.values[e]!==undefined)throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(this.valuesById[t]!==undefined){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(this.valuesOptions===undefined&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!o.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/enum.js"}],[7215,{"./enum":7214,"./object":7222,"./types":7232,"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=c;var n=e("./object");((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var i,o=e("./enum"),s=e("./types"),a=e("./util"),u=/^required|optional|repeated$/;function c(e,t,r,i,o,c,l){if(a.isObject(i)?(l=o,c=i,i=o=undefined):a.isObject(o)&&(l=c,c=o,o=undefined),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(i!==undefined&&!u.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(o!==undefined&&!a.isString(o))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:undefined,this.type=r,this.id=t,this.extend=o||undefined,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&s.long[r]!==undefined,this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof i&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||undefined,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:undefined])},c.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=s.defaults[this.type])===undefined?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(this.options.packed===undefined||!this.resolvedType||this.resolvedType instanceof o||delete this.options.packed,Object.keys(this.options).length||(this.options=undefined)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&s.defaults[this.type]===undefined){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof i&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(i,o){a.decorateType(i.constructor).add(new c(o,e,t,r,{default:n}))}},c._configure=function(e){i=e}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/field.js"}],[7216,{"./converter":7211,"./decoder":7212,"./encoder":7213,"./enum":7214,"./field":7215,"./index-minimal":7217,"./mapfield":7218,"./message":7219,"./method":7220,"./namespace":7221,"./object":7222,"./oneof":7223,"./root":7226,"./service":7230,"./type":7231,"./types":7232,"./util":7233,"./verifier":7237,"./wrappers":7238},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=t.exports=e("./index-minimal");n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=e("./encoder"),n.decoder=e("./decoder"),n.verifier=e("./verifier"),n.converter=e("./converter"),n.ReflectionObject=e("./object"),n.Namespace=e("./namespace"),n.Root=e("./root"),n.Enum=e("./enum"),n.Type=e("./type"),n.Field=e("./field"),n.OneOf=e("./oneof"),n.MapField=e("./mapfield"),n.Service=e("./service"),n.Method=e("./method"),n.Message=e("./message"),n.wrappers=e("./wrappers"),n.types=e("./types"),n.util=e("./util"),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/index-light.js"}],[7217,{"./reader":7224,"./reader_buffer":7225,"./roots":7227,"./rpc":7228,"./util/minimal":7235,"./writer":7239,"./writer_buffer":7240},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=e("./writer"),n.BufferWriter=e("./writer_buffer"),n.Reader=e("./reader"),n.BufferReader=e("./reader_buffer"),n.util=e("./util/minimal"),n.rpc=e("./rpc"),n.roots=e("./roots"),n.configure=i,i()}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/index-minimal.js"}],[7218,{"./field":7215,"./types":7232,"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=s;var n=e("./field");((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var i=e("./types"),o=e("./util");function s(e,t,r,i,s,a){if(n.call(this,e,t,i,undefined,undefined,s,a),!o.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:undefined])},s.prototype.resolve=function(){if(this.resolved)return this;if(i.mapKey[this.keyType]===undefined)throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=o.decorateType(r).name:r&&"object"==typeof r&&(r=o.decorateEnum(r).name),function(n,i){o.decorateType(n.constructor).add(new s(i,e,t,r))}}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/mapfield.js"}],[7219,{"./util/minimal":7235},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=i;var n=e("./util/minimal");function i(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r){var n=t[r];"__proto__"!==n&&(this[n]=e[n])}}i.create=function(e){return this.$type.create(e)},i.encode=function(e,t){return this.$type.encode(e,t)},i.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},i.decode=function(e){return this.$type.decode(e)},i.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},i.verify=function(e){return this.$type.verify(e)},i.fromObject=function(e){return this.$type.fromObject(e)},i.toObject=function(e,t){return this.$type.toObject(e,t)},i.prototype.toJSON=function(){return this.$type.toObject(this,n.toJSONOptions)}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/message.js"}],[7220,{"./object":7222,"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=o;var n=e("./object");((o.prototype=Object.create(n.prototype)).constructor=o).className="Method";var i=e("./util");function o(e,t,r,o,s,a,u,c,l){if(i.isObject(s)?(u=s,s=a=undefined):i.isObject(a)&&(u=a,a=undefined),t!==undefined&&!i.isString(t))throw TypeError("type must be a string");if(!i.isString(r))throw TypeError("requestType must be a string");if(!i.isString(o))throw TypeError("responseType must be a string");n.call(this,e,u),this.type=t||"rpc",this.requestType=r,this.requestStream=!!s||undefined,this.responseType=o,this.responseStream=!!a||undefined,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=c,this.parsedOptions=l}o.fromJSON=function(e,t){return new o(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["type","rpc"!==this.type&&this.type||undefined,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:undefined,"parsedOptions",this.parsedOptions])},o.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/method.js"}],[7221,{"./field":7215,"./object":7222,"./oneof":7223,"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=f;var n=e("./object");((f.prototype=Object.create(n.prototype)).constructor=f).className="Namespace";var i,o,s,a=e("./field"),u=e("./util"),c=e("./oneof");function l(e,t){if(!e||!e.length)return undefined;for(var r={},n=0;n<e.length;++n)r[e[n].name]=e[n].toJSON(t);return r}function f(e,t){n.call(this,e,t),this.nested=undefined,this._nestedArray=null,this._lookupCache=Object.create(null),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function d(e){e._nestedArray=null,e._lookupCache=Object.create(null);for(var t=e;t=t.parent;)t._lookupCache=Object.create(null);return e}f.fromJSON=function(e,t,r){return r=u.checkDepth(r),new f(e,t.options).addJSON(t.nested,r)},f.arrayToJSON=l,f.isReservedId=function(e,t){if(e)for(var r=0;r<e.length;++r)if("string"!=typeof e[r]&&e[r][0]<=t&&e[r][1]>t)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r<e.length;++r)if(e[r]===t)return!0;return!1},Object.defineProperty(f.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=u.toArray(this.nested))}}),f.prototype.toJSON=function(e){return u.toObject(["options",this.options,"nested",l(this.nestedArray,e)])},f.prototype.addJSON=function(e,t){t=u.checkDepth(t);if(e)for(var r,n=Object.keys(e),c=0;c<n.length;++c)r=e[n[c]],this.add((r.fields!==undefined?i.fromJSON:r.values!==undefined?s.fromJSON:r.methods!==undefined?o.fromJSON:r.id!==undefined?a.fromJSON:f.fromJSON)(n[c],r,t+1));return this},f.prototype.get=function(e){return this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},f.prototype.getEnum=function(e){if(this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)&&this.nested[e]instanceof s)return this.nested[e].values;throw Error("no such enum: "+e)},f.prototype.add=function(e){if(!(e instanceof a&&e.extend!==undefined||e instanceof i||e instanceof c||e instanceof s||e instanceof o||e instanceof f))throw TypeError("object must be a valid nested object");if("__proto__"===e.name)return this;if(this.nested){var t=this.get(e.name);if(t){if(!(t instanceof f&&e instanceof f)||t instanceof i||t instanceof o)throw Error("duplicate name '"+e.name+"' in "+this);for(var r=t.nestedArray,n=0;n<r.length;++n)e.add(r[n]);this.remove(t),this.nested||(this.nested={}),e.setOptions(t.options,!0)}}else this.nested={};this.nested[e.name]=e,this instanceof i||this instanceof o||this instanceof s||this instanceof a||e._edition||(e._edition=e._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var u=this;u=u.parent;)u._needsRecursiveFeatureResolution=!0,u._needsRecursiveResolve=!0;return e.onAdd(this),d(this)},f.prototype.remove=function(e){if(!(e instanceof n))throw TypeError("object must be a ReflectionObject");if(e.parent!==this)throw Error(e+" is not a member of "+this);return delete this.nested[e.name],Object.keys(this.nested).length||(this.nested=undefined),e.onRemove(this),d(this)},f.prototype.define=function(e,t){if(u.isString(e))e=e.split(".");else if(!Array.isArray(e))throw TypeError("illegal path");if(e&&e.length&&""===e[0])throw Error("path must be relative");for(var r=this;e.length>0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t<e.length;)e[t]instanceof f?e[t++].resolveAll():e[t++].resolve();return this._needsRecursiveResolve=!1,this},f.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution?(this._needsRecursiveFeatureResolution=!1,e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.nestedArray.forEach(t=>{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=undefined):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var i=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(i&&(!t||t.indexOf(i.constructor)>-1))return i;if((i=this._lookupImpl(e,n))&&(!t||t.indexOf(i.constructor)>-1))return i;if(r)return null;for(var o=this;o.parent;){if((i=o.parent._lookupImpl(e,n))&&(!t||t.indexOf(i.constructor)>-1))return i;o=o.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var i=0;i<this.nestedArray.length;++i)if(this._nestedArray[i]instanceof f&&(r=this._nestedArray[i]._lookupImpl(e,t))){n=r;break}return this._lookupCache[t]=n,n},f.prototype.lookupType=function(e){var t=this.lookup(e,[i]);if(!t)throw Error("no such type: "+e);return t},f.prototype.lookupEnum=function(e){var t=this.lookup(e,[s]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},f.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[i,s]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},f.prototype.lookupService=function(e){var t=this.lookup(e,[o]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},f._configure=function(e,t,r){i=e,o=t,s=r}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/namespace.js"}],[7222,{"./oneof":7223,"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=c,c.className="ReflectionObject";const n=e("./oneof");var i,o=e("./util"),s={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"},a={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE"},u={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"};function c(e,t){if(!o.isString(e))throw TypeError("name must be a string");if(t&&!o.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(c.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),c.prototype.toJSON=function(){throw Error()},c.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof i&&t._handleAdd(this)},c.prototype.onRemove=function(e){var t=e.root;t instanceof i&&t._handleRemove(this),this.parent=null,this.resolved=!1},c.prototype.resolve=function(){return this.resolved||this.root instanceof i&&(this.resolved=!0),this},c.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},c.prototype._resolveFeatures=function(e){if(!this._featuresResolved){var t={};if(!e)throw new Error("Unknown edition for "+this.fullName);var r=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(e));if(this._edition){if("proto2"===e)t=Object.assign({},a);else if("proto3"===e)t=Object.assign({},u);else{if("2023"!==e)throw new Error("Unknown edition: "+e);t=Object.assign({},s)}return this._features=Object.assign(t,r||{}),void(this._featuresResolved=!0)}if(this.partOf instanceof n){var i=Object.assign({},this.partOf._features);this._features=Object.assign(i,r||{})}else if(this.declaringField);else{if(!this.parent)throw new Error("Unable to find a parent for "+this.fullName);var o=Object.assign({},this.parent._features);this._features=Object.assign(o,r||{})}this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},c.prototype._inferLegacyProtoFeatures=function(){return{}},c.prototype.getOption=function(e){return this.options?this.options[e]:undefined},c.prototype.setOption=function(e,t,r){return"__proto__"===e||(this.options||(this.options={}),/^features\./.test(e)?o.setProperty(this.options,e,t,r):r&&this.options[e]!==undefined||(this.getOption(e)!==t&&(this.resolved=!1),this.options[e]=t)),this},c.prototype.setParsedOption=function(e,t,r){if("__proto__"===e)return this;this.parsedOptions||(this.parsedOptions=[]);var n=this.parsedOptions;if(r){var i=n.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(i){var s=i[e];o.setProperty(s,r,t)}else(i={})[e]=o.setProperty({},r,t),n.push(i)}else{var a={};a[e]=t,n.push(a)}return this},c.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),n=0;n<r.length;++n)this.setOption(r[n],e[r[n]],t);return this},c.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},c.prototype._editionToJSON=function(){return this._edition&&"proto3"!==this._edition?this._edition:undefined},c._configure=function(e){i=e}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/object.js"}],[7223,{"./field":7215,"./object":7222,"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=s;var n=e("./object");((s.prototype=Object.create(n.prototype)).constructor=s).className="OneOf";var i=e("./field"),o=e("./util");function s(e,t,r,i){if(Array.isArray(t)||(r=t,t=undefined),n.call(this,e,r),t!==undefined&&!Array.isArray(t))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=i}function a(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}s.fromJSON=function(e,t){return new s(e,t.oneof,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:undefined])},s.prototype.add=function(e){if(!(e instanceof i))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,a(this),this},s.prototype.remove=function(e){if(!(e instanceof i))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t<this.oneof.length;++t){var r=e.get(this.oneof[t]);r&&!r.partOf&&(r.partOf=this,this.fieldsArray.push(r))}a(this)},s.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);n.prototype.onRemove.call(this,e)},Object.defineProperty(s.prototype,"isProto3Optional",{get:function(){if(null==this.fieldsArray||1!==this.fieldsArray.length)return!1;var e=this.fieldsArray[0];return null!=e.options&&!0===e.options.proto3_optional}}),s.d=function(){for(var e=new Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){o.decorateType(t.constructor).add(new s(r,e)),Object.defineProperty(t,r,{get:o.oneOfGetter(e),set:o.oneOfSetter(e)})}}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/oneof.js"}],[7224,{"./util/minimal":7235},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=u;var n,i=e("./util/minimal"),o=i.LongBits,s=i.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return i.Buffer?function(e){return(u.create=function(e){return i.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function d(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw a(this,8);return new o(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=i.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=i.recursionLimit,u.prototype.skipType=function(e,t){if(t===undefined&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=i.Long?"toLong":"toNumber";i.merge(u.prototype,{int64:function(){return d.call(this)[t](!1)},uint64:function(){return d.call(this)[t](!0)},sint64:function(){return d.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/reader.js"}],[7225,{"./reader":7224,"./util/minimal":7235},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=o;var n=e("./reader");(o.prototype=Object.create(n.prototype)).constructor=o;var i=e("./util/minimal");function o(e){n.call(this,e)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/reader_buffer.js"}],[7226,{"./enum":7214,"./field":7215,"./namespace":7221,"./oneof":7223,"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=f;var n=e("./namespace");((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var i,o,s,a=e("./field"),u=e("./enum"),c=e("./oneof"),l=e("./util");function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function d(){}f.fromJSON=function(e,t,r){return r=l.checkDepth(r),t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested,r).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=undefined);var i=this;if(!n)return l.asPromise(e,i,t,r);var a=n===d;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){o.filename=e;var n,s=o(t,i,r),f=0;if(s.imports)for(;f<s.imports.length;++f)(n=c(s.imports[f])||i.resolvePath(e,s.imports[f]))&&h(n);if(s.weakImports)for(f=0;f<s.weakImports.length;++f)(n=c(s.weakImports[f])||i.resolvePath(e,s.weakImports[f]))&&h(n,!0)}else i.setOptions(t.options).addJSON(t.nested)}catch(e){u(e)}a||p||u(null,i)}function h(e,t){if(e=c(e)||e,!(i.files.indexOf(e)>-1))if(i.files.push(e),e in s)a?f(e,s[e]):(++p,setTimeout(function(){--p,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++p,i.fetch(e,function(r,o){--p,n&&(r?t?p||u(null,i):u(r):f(e,o))})}var p=0;l.isString(t)&&(t=[t]);for(var b,m=0;m<t.length;++m)(b=i.resolvePath("",t[m]))&&h(b);return a?(i.resolveAll(),i):(p||u(null,i),i)},f.prototype.loadSync=function(e,t){if(!l.isNode)throw Error("not supported");return this.load(e,t,d)},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(e){return"'extend "+e.extend+"' in "+e.parent.fullName}).join(", "));return n.prototype.resolveAll.call(this)};var h=/^[A-Z]/;function p(e,t){var r=t.parent.lookup(t.extend);if(r){var n=new a(t.fullName,t.id,t.type,t.rule,undefined,t.options);return r.get(n.name)||(n.declaringField=t,t.extensionField=n,r.add(n)),!0}return!1}f.prototype._handleAdd=function(e){if(e instanceof a)e.extend===undefined||e.extensionField||p(0,e)||this.deferred.push(e);else if(e instanceof u)h.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof c)){if(e instanceof i)for(var t=0;t<this.deferred.length;)p(0,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);h.test(e.name)&&(e.parent[e.name]=e)}(e instanceof i||e instanceof u||e instanceof a)&&(this._fullyQualifiedObjects[e.fullName]=e)},f.prototype._handleRemove=function(e){if(e instanceof a){if(e.extend!==undefined)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var t=this.deferred.indexOf(e);t>-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r<e.nestedArray.length;++r)this._handleRemove(e._nestedArray[r]);h.test(e.name)&&delete e.parent[e.name]}delete this._fullyQualifiedObjects[e.fullName]},f._configure=function(e,t,r){i=e,o=t,s=r}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/root.js"}],[7227,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/roots.js"}],[7228,{"./rpc/service":7229},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){r.Service=e("./rpc/service")}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/rpc.js"}],[7229,{"../util/minimal":7235},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=i;var n=e("../util/minimal");function i(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,r,i,o,s){if(!o)throw TypeError("request must be specified");var a=this;if(!s)return n.asPromise(e,a,t,r,i,o);if(!a.rpcImpl)return setTimeout(function(){s(Error("already ended"))},0),undefined;try{return a.rpcImpl(t,r[a.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(e,r){if(e)return a.emit("error",e,t),s(e);if(null===r)return a.end(!0),undefined;if(!(r instanceof i))try{r=i[a.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return a.emit("error",e,t),s(e)}return a.emit("data",r,t),s(null,r)})}catch(e){return a.emit("error",e,t),setTimeout(function(){s(e)},0),undefined}},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/rpc/service.js"}],[7230,{"./method":7220,"./namespace":7221,"./rpc":7228,"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=u;var n=e("./namespace");((u.prototype=Object.create(n.prototype)).constructor=u).className="Service";var i=e("./method"),o=e("./util"),s=e("./rpc"),a=o.patterns.reservedRe;function u(e,t){n.call(this,e,t),this.methods={},this._methodsArray=null}function c(e){return e._methodsArray=null,e}u.fromJSON=function(e,t,r){r=o.checkDepth(r);var n=new u(e,t.options);if(t.methods)for(var s=Object.keys(t.methods),a=0;a<s.length;++a)n.add(i.fromJSON(s[a],t.methods[s[a]]));return t.nested&&n.addJSON(t.nested,r),t.edition&&(n._edition=t.edition),n.comment=t.comment,n._defaultEdition="proto3",n},u.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=!!e&&Boolean(e.keepComments);return o.toObject(["edition",this._editionToJSON(),"options",t&&t.options||undefined,"methods",n.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||undefined,"comment",r?this.comment:undefined])},Object.defineProperty(u.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=o.toArray(this.methods))}}),u.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.methods,e)?this.methods[e]:n.prototype.get.call(this,e)},u.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;n.prototype.resolve.call(this);for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return this},u.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution?(e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.methodsArray.forEach(t=>{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof i?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof i){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,i=new s.Service(e,t,r),u=0;u<this.methodsArray.length;++u){var c=o.lcFirst((n=this._methodsArray[u]).resolve().name).replace(/[^$\w_]/g,"");i[c]=o.codegen(["r","c"],a.test(c)?c+"_":c)("return this.rpcCall(m,q,s,r,c)")({m:n,q:n.resolvedRequestType.ctor,s:n.resolvedResponseType.ctor})}return i}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/service.js"}],[7231,{"./converter":7211,"./decoder":7212,"./encoder":7213,"./enum":7214,"./field":7215,"./mapfield":7218,"./message":7219,"./namespace":7221,"./oneof":7223,"./reader":7224,"./service":7230,"./util":7233,"./verifier":7237,"./wrappers":7238,"./writer":7239},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=y;var n=e("./namespace");((y.prototype=Object.create(n.prototype)).constructor=y).className="Type";var i=e("./enum"),o=e("./oneof"),s=e("./field"),a=e("./mapfield"),u=e("./service"),c=e("./message"),l=e("./reader"),f=e("./writer"),d=e("./util"),h=e("./encoder"),p=e("./decoder"),b=e("./verifier"),m=e("./converter"),g=e("./wrappers");function y(e,t){e=e.replace(/\W/g,""),n.call(this,e,t),this.fields={},this.oneofs=undefined,this.extensions=undefined,this.reserved=undefined,this.group=undefined,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function v(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(y.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t<e.length;++t){var r=this.fields[e[t]],n=r.id;if(this._fieldsById[n])throw Error("duplicate id "+n+" in "+this);this._fieldsById[n]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=d.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=d.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=y.generateConstructor(this)())},set:function(e){var t=e.prototype;t instanceof c||((e.prototype=new c).constructor=e,d.merge(e.prototype,t)),e.$type=e.prototype.$type=this,d.merge(e,c,!0),this._ctor=e;for(var r=0;r<this.fieldsArray.length;++r)this._fieldsArray[r].resolve();var n={};for(r=0;r<this.oneofsArray.length;++r)n[this._oneofsArray[r].resolve().name]={get:d.oneOfGetter(this._oneofsArray[r].oneof),set:d.oneOfSetter(this._oneofsArray[r].oneof)};r&&Object.defineProperties(e.prototype,n)}}}),y.generateConstructor=function(e){for(var t,r=d.codegen(["p"],e.name),n=0;n<e.fieldsArray.length;++n)(t=e._fieldsArray[n]).map?r("this%s={}",d.safeProp(t.name)):t.repeated&&r("this%s=[]",d.safeProp(t.name));return r('if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null&&ks[i]!=="__proto__")')("this[ks[i]]=p[ks[i]]")},y.fromJSON=function(e,t,r){r=d.checkDepth(r);var c=new y(e,t.options);c.extensions=t.extensions,c.reserved=t.reserved;for(var l=Object.keys(t.fields),f=0;f<l.length;++f)c.add((void 0!==t.fields[l[f]].keyType?a.fromJSON:s.fromJSON)(l[f],t.fields[l[f]]));if(t.oneofs)for(l=Object.keys(t.oneofs),f=0;f<l.length;++f)c.add(o.fromJSON(l[f],t.oneofs[l[f]]));if(t.nested)for(l=Object.keys(t.nested),f=0;f<l.length;++f){var h=t.nested[l[f]];c.add((h.id!==undefined?s.fromJSON:h.fields!==undefined?y.fromJSON:h.values!==undefined?i.fromJSON:h.methods!==undefined?u.fromJSON:n.fromJSON)(l[f],h,r+1))}return t.extensions&&t.extensions.length&&(c.extensions=t.extensions),t.reserved&&t.reserved.length&&(c.reserved=t.reserved),t.group&&(c.group=!0),t.comment&&(c.comment=t.comment),t.edition&&(c._edition=t.edition),c._defaultEdition="proto3",c},y.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=!!e&&Boolean(e.keepComments);return d.toObject(["edition",this._editionToJSON(),"options",t&&t.options||undefined,"oneofs",n.arrayToJSON(this.oneofsArray,e),"fields",n.arrayToJSON(this.fieldsArray.filter(function(e){return!e.declaringField}),e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:undefined,"reserved",this.reserved&&this.reserved.length?this.reserved:undefined,"group",this.group||undefined,"nested",t&&t.nested||undefined,"comment",r?this.comment:undefined])},y.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;n.prototype.resolveAll.call(this);var e=this.oneofsArray;for(r=0;r<e.length;)e[r++].resolve();for(var t=this.fieldsArray,r=0;r<t.length;)t[r++].resolve();return this},y.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution?(e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.oneofsArray.forEach(t=>{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},y.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},y.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&e.extend===undefined){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),v(this))}return e instanceof o?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),v(this)):n.prototype.add.call(this,e)},y.prototype.remove=function(e){if(e instanceof s&&e.extend===undefined){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),v(this)}if(e instanceof o){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),v(this)}return n.prototype.remove.call(this,e)},y.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},y.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},y.prototype.create=function(e){return new this.ctor(e)},y.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r<this.fieldsArray.length;++r)t.push(this._fieldsArray[r].resolve().resolvedType);this.encode=h(this)({Writer:f,types:t,util:d}),this.decode=p(this)({Reader:l,types:t,util:d}),this.verify=b(this)({types:t,util:d}),this.fromObject=m.fromObject(this)({types:t,util:d}),this.toObject=m.toObject(this)({types:t,util:d});var n=g[e];if(n){var i=Object.create(this);i.fromObject=this.fromObject,this.fromObject=n.fromObject.bind(i),i.toObject=this.toObject,this.toObject=n.toObject.bind(i)}return this},y.prototype.encode=function(e,t){return this.setup().encode(e,t)},y.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},y.prototype.decode=function(e,t,r,n){return this.setup().decode(e,t,r,n)},y.prototype.decodeDelimited=function(e){return e instanceof l||(e=l.create(e)),this.decode(e,e.uint32())},y.prototype.verify=function(e,t){return this.setup().verify(e,t)},y.prototype.fromObject=function(e,t){return this.setup().fromObject(e,t)},y.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},y.d=function(e){return function(t){d.decorateType(t,e)}}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/type.js"}],[7232,{"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r,i=e("./util"),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function s(e,t){var r=0,n=Object.create(null);for(t|=0;r<e.length;)n[o[r+t]]=e[r++];return n}n.basic=s([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),n.defaults=s([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",i.emptyArray,null]),n.long=s([0,0,0,1,1],7),n.mapKey=s([0,0,0,5,5,0,0,0,1,1,0,2],2),n.packed=s([1,5,0,0,0,5,5,0,0,0,1,1,0])}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/types.js"}],[7233,{"./enum":7214,"./root":7226,"./roots":7227,"./type":7231,"./util/minimal":7235,"./util/patterns":7236,"@protobufjs/codegen":5007,"@protobufjs/fetch":5009,"@protobufjs/path":5012},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i,o=t.exports=e("./util/minimal"),s=e("./roots");o.codegen=e("@protobufjs/codegen"),o.fetch=e("@protobufjs/fetch"),o.path=e("@protobufjs/path"),o.patterns=e("./util/patterns");var a=o.patterns.reservedRe,u=o.patterns.unsafePropertyRe;o.fs=o.inquire("fs"),o.checkDepth=function(e){if(e===undefined&&(e=0),e>o.recursionLimit)throw Error("max depth exceeded");return e},o.toArray=function(e){if(e){for(var t=Object.keys(e),r=new Array(t.length),n=0;n<t.length;)r[n]=e[t[n++]];return r}return[]},o.toObject=function(e){for(var t={},r=0;r<e.length;){var n=e[r++],i=e[r++];i!==undefined&&(t[n]=i)}return t},o.isReserved=function(e){return a.test(e)},o.safeProp=function(e){return!/^[$\w_]+$/.test(e)||a.test(e)?"["+JSON.stringify(e)+"]":"."+e},o.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var c=/_([a-z])/g;o.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(c,function(e,t){return t.toUpperCase()})},o.compareFieldsById=function(e,t){return e.id-t.id},o.decorateType=function(t,r){if(t.$type)return r&&t.$type.name!==r&&(o.decorateRoot.remove(t.$type),t.$type.name=r,o.decorateRoot.add(t.$type)),t.$type;n||(n=e("./type"));var i=new n(r||t.name);return o.decorateRoot.add(i),i.ctor=t,Object.defineProperty(t,"$type",{value:i,enumerable:!1}),Object.defineProperty(t.prototype,"$type",{value:i,enumerable:!1}),i};var l=0;o.decorateEnum=function(t){if(t.$type)return t.$type;i||(i=e("./enum"));var r=new i("Enum"+l++,t);return o.decorateRoot.add(r),Object.defineProperty(t,"$type",{value:r,enumerable:!1}),r},o.setProperty=function(e,t,r,n){if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return function e(t,r,i){var o=r.shift();if(u.test(o))return t;if(r.length>0)t[o]=e(t[o]||{},r,i);else{var s=t[o];if(s&&n)return t;s&&(i=[].concat(s).concat(i)),t[o]=i}return t}(e,t=t.split("."),r)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(e("./root")))}})}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/util.js"}],[7234,{"../util/minimal":7235},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=i;var n=e("../util/minimal");function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new i(r,n)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(n.isString(e)){if(!n.Long)return i.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):o},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;i.fromHash=function(e){return e===s?o:new i((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/util/longbits.js"}],[7235,{"./longbits":7234,"@protobufjs/aspromise":5005,"@protobufjs/base64":5006,"@protobufjs/eventemitter":5008,"@protobufjs/float":5010,"@protobufjs/inquire":5011,"@protobufjs/pool":5013,"@protobufjs/utf8":5014},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;function i(e,t,r){for(var n=Object.keys(t),i=0;i<n.length;++i)e[n[i]]!==undefined&&r||"__proto__"!==n[i]&&(e[n[i]]=t[n[i]]);return e}function o(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),r&&i(this,r)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:undefined,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}n.asPromise=e("@protobufjs/aspromise"),n.base64=e("@protobufjs/base64"),n.EventEmitter=e("@protobufjs/eventemitter"),n.float=e("@protobufjs/float"),n.inquire=e("@protobufjs/inquire"),n.utf8=e("@protobufjs/utf8"),n.pool=e("@protobufjs/pool"),n.LongBits=e("./longbits"),n.isNode=Boolean("undefined"!=typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),n.global=n.isNode&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},n.isString=function(e){return"string"==typeof e||e instanceof String},n.isObject=function(e){return e&&"object"==typeof e},n.isset=n.isSet=function(e,t){var r=e[t];return!(null==r||!e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=i,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&this[e[r]]!==undefined&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n._configure=function(){var e=n.Buffer;e?(n._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},n._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):n._Buffer_from=n._Buffer_allocUnsafe=null}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/util/minimal.js"}],[7236,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;n.numberRe=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,n.typeRefRe=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,n.reservedRe=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/,n.unsafePropertyRe=/^(?:__proto__|prototype|constructor)$/}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/util/patterns.js"}],[7237,{"./enum":7214,"./util":7233},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){var t=i.codegen(["m","n"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected")("if(n===undefined)n=0")("if(n>util.recursionLimit)")("return%j","maximum nesting depth exceeded"),r=e.oneofsArray,n={};r.length&&t("var p={}");for(var u=0;u<e.fieldsArray.length;++u){var c=e._fieldsArray[u].resolve(),l="m"+i.safeProp(c.name);if(c.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",l,c.name),c.map)t("if(!util.isObject(%s))",l)("return%j",o(c,"object"))("var k=Object.keys(%s)",l)("for(var i=0;i<k.length;++i){"),a(t,c,"k[i]"),s(t,c,u,l+"[k[i]]")("}");else if(c.repeated)t("if(!Array.isArray(%s))",l)("return%j",o(c,"array"))("for(var i=0;i<%s.length;++i){",l),s(t,c,u,l+"[i]")("}");else{if(c.partOf){var f=i.safeProp(c.partOf.name);1===n[c.partOf.name]&&t("if(p%s===1)",f)("return%j",c.partOf.name+": multiple values"),n[c.partOf.name]=1,t("p%s=1",f)}s(t,c,u,l)}c.optional&&t("}")}return t("return null")};var n=e("./enum"),i=e("./util");function o(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function s(e,t,r,i){if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(%s){",i)("default:")("return%j",o(t,"enum value"));for(var s=Object.keys(t.resolvedType.values),a=0;a<s.length;++a)e("case %i:",t.resolvedType.values[s[a]]);e("break")("}")}else e("{")("var e=types[%i].verify(%s,n+1);",r,i)("if(e)")("return%j+e",t.name+".")("}");else switch(t.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.isInteger(%s))",i)("return%j",o(t,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",i,i,i,i)("return%j",o(t,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',i)("return%j",o(t,"number"));break;case"bool":e('if(typeof %s!=="boolean")',i)("return%j",o(t,"boolean"));break;case"string":e("if(!util.isString(%s))",i)("return%j",o(t,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',i,i,i)("return%j",o(t,"buffer"))}return e}function a(e,t,r){switch(t.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.key32Re.test(%s))",r)("return%j",o(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",r)("return%j",o(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",r)("return%j",o(t,"boolean key"))}return e}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/verifier.js"}],[7238,{"./message":7219},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r,i=e("./message");n[".google.protobuf.Any"]={fromObject:function(e,t){if(e&&e["@type"]){var r=e["@type"].substring(e["@type"].lastIndexOf("/")+1),n=this.lookup(r);if(n){var i="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];-1===i.indexOf("/")&&(i="/"+i);var o=t===undefined?1:t+1;return this.create({type_url:i,value:n.encode(n.fromObject(e,o)).finish()})}}return this.fromObject(e,t)},toObject:function(e,t){var r="",n="";if(t&&t.json&&e.type_url&&e.value){n=e.type_url.substring(e.type_url.lastIndexOf("/")+1),r=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var o=this.lookup(n);o&&(e=o.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof i){var s=e.$type.toObject(e,t);return""===r&&(r="type.googleapis.com/"),n=r+("."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName),s["@type"]=n,s}return this.toObject(e,t)}}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/wrappers.js"}],[7239,{"./util/minimal":7235},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=f;var n,i=e("./util/minimal"),o=i.LongBits,s=i.base64,a=i.utf8;function u(e,t,r){this.fn=e,this.len=t,this.next=undefined,this.val=r}function c(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function f(){this.len=0,this.head=new u(c,0,0),this.tail=this.head,this.states=null}var d=function(){return i.Buffer?function(){return(f.create=function(){return new n})()}:function(){return new f}};function h(e,t,r){t[r]=255&e}function p(e,t){this.len=e,this.next=undefined,this.val=t}function b(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=d(),f.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(f.alloc=i.pool(f.alloc,i.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},p.prototype=Object.create(u.prototype),p.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(b,10,o.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=o.from(e);return this._push(b,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(b,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var g=i.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n<e.length;++n)t[r+n]=e[n]};f.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(h,1,0);if(i.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(g,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=d(),n._configure()}}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/writer.js"}],[7240,{"./util/minimal":7235,"./writer":7239},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=o;var n=e("./writer");(o.prototype=Object.create(n.prototype)).constructor=o;var i=e("./util/minimal");function o(){n.call(this)}function s(e,t,r){e.length<40?i.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n<e.length;)t[r++]=e[n++]}},o.prototype.bytes=function(e){i.isString(e)&&(e=i._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},o._configure()}}},{package:"@google/genai>protobufjs",file:"node_modules/protobufjs/src/writer_buffer.js"}],[7256,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)}}},{package:"@metamask/snaps-controllers>tar-stream>streamx>queue-tick",file:"node_modules/queue-tick/queue-microtask.js"}],[73,{"../../../shared/constants/app":8202,"../../../shared/constants/metametrics":8223,"../../../shared/constants/security-provider":8238,"../../../shared/constants/signatures":8239,"../../../shared/constants/transaction":8249,"../../../shared/lib/error":8326,"../../../shared/lib/snaps/snaps":8402,"../../../shared/lib/transaction.utils":8419,"../../../shared/lib/trust-signals":8425,"../../../ui/helpers/utils/metrics":9692,"./getIframeProperties":91,"./snap-keyring/metrics":140,"@metamask/controller-utils":1642,"@metamask/rpc-errors":3494,"ethereumjs-util":6238},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({rateLimitTimeout:e=3e5,rateLimitSamplePercent:t=.001,globalRateLimitTimeout:r=3e5,globalRateLimitMaxAmount:T=10,getAccountType:S,getDeviceModel:O,getHardwareTypeForMetric:P,snapAndHardwareMessenger:A,appStateController:I,metaMetricsController:M,getHDEntropyIndex:R}){return async function(B,N,F){const{origin:C,method:L,params:U,mainFrameOrigin:D,frameId:z}=B,q=function(e){return[s.MESSAGE_TYPE.WALLET_CREATE_SESSION,s.MESSAGE_TYPE.WALLET_INVOKE_METHOD].includes(e)}(L),H=q?a.MetaMetricsRequestedThrough.MultichainApi:a.MetaMetricsRequestedThrough.EthereumProvider,W=q?a.MetaMetricsEventCategory.MultichainApi:a.MetaMetricsEventCategory.InpageProvider;let G,V=L;L===s.MESSAGE_TYPE.WALLET_INVOKE_METHOD&&(V=U?.request?.method,G=U?.scope);const $=w[V];let Y;switch($){case y.TIMEOUT:Y=void 0!==x[V];break;case y.NON_RATE_LIMITED:Y=!1;break;case y.BLOCKED:Y=!0;break;default:case y.RANDOM_SAMPLE:Y=Math.random()>=t}const K=T>0&&E>=T,J=!0===M.state.participateInMetaMetrics,Z=_[V],Q={api_source:H,...(0,g.getIframeProperties)({frameId:z,origin:C,mainFrameOrigin:D})};let X;G&&(Q.chain_id_caip=G);const ee=(0,b.isSnapPreinstalled)(C),te=C!==s.ORIGIN_METAMASK&&!ee&&!Y&&!K&&!0===J;if(te){const t=Z?Z.REQUESTED:a.MetaMetricsEventName.ProviderMethodCalled;if(t===a.MetaMetricsEventName.SignatureRequested){let e;Q.signature_type=V,Q.hd_entropy_index=R(),e=(0,o.isValidAddress)(B?.params?.[1])?B?.params?.[0]:B?.params?.[1],B.securityAlertResponse?.providerRequestsCount&&Object.keys(B.securityAlertResponse.providerRequestsCount).forEach(e=>{Q[`ppom_${e}_count`]=B.securityAlertResponse.providerRequestsCount[e]}),Q.security_alert_response=B.securityAlertResponse?.result_type??c.BlockaidResultType.NotApplicable,Q.security_alert_reason=B.securityAlertResponse?.reason??c.BlockaidReason.notApplicable,Q.address_alert_response=l.ResultType.Loading,B.securityAlertResponse?.description&&(Q.security_alert_description=B.securityAlertResponse.description);const t=await(0,m.getSnapAndHardwareInfoForMetrics)(S,O,P,A);Object.assign(Q,t);try{if(V===s.MESSAGE_TYPE.PERSONAL_SIGN){const{isSIWEMessage:t}=(0,n.detectSIWE)({data:e});t&&(Q.ui_customizations=[...Q.ui_customizations||[],a.MetaMetricsEventUiCustomization.Siwe])}else if(V===s.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA_V4){const t=(0,u.parseTypedDataMessage)(e);X={},Q.eip712_primary_type=t.primaryType,X.eip712_verifyingContract=t.domain.verifyingContract,X.eip712_domain_version=t.domain.version,X.eip712_domain_name=t.domain.name,f.PRIMARY_TYPES_PERMIT.includes(t.primaryType)?Q.ui_customizations=[...Q.ui_customizations||[],a.MetaMetricsEventUiCustomization.Permit]:f.PRIMARY_TYPES_ORDER.includes(t.primaryType)&&(Q.ui_customizations=[...Q.ui_customizations||[],a.MetaMetricsEventUiCustomization.Order])}}catch(e){console.warn(`createRPCMethodTrackingMiddleware: Errored - ${e}`)}}else Q.method=V;const i=j[V];if(i&&(Q.params=i(U)),k[V]?.(B,undefined,v.REQUESTED,Q),t===a.MetaMetricsEventName.SignatureRequested){!function(e,t,r,n){e.createEventFragment({category:n,initialEvent:a.MetaMetricsEventName.SignatureRequested,successEvent:a.MetaMetricsEventName.SignatureApproved,failureEvent:a.MetaMetricsEventName.SignatureRejected,uniqueIdentifier:(0,p.generateSignatureUniqueId)(t.id),persist:!0,referrer:{url:t.origin},...r})}(M,B,{properties:Q,sensitiveProperties:X},W)}else M.trackEvent({event:t,category:W,referrer:{url:C},properties:Q});$===y.TIMEOUT&&(x[V]=setTimeout(()=>{delete x[V]},e)),E+=1,setTimeout(()=>{E-=1},r)}F(async e=>{if(!1===te||void 0===Z)return e();const t=N.error?.data?.location;let r,n;const o=(0,h.getErrorMessage)(N.error);if(N.error?.code===i.errorCodes.provider.userRejectedRequest?(r=Z.REJECTED,n=v.REJECTED):N.error?.code===i.errorCodes.rpc.internal&&[o,N.error.message].includes("Request rejected by user or snap.")?(r=Z.REJECTED,n=v.REJECTED,Q.status=o):(r=Z.APPROVED,n=v.APPROVED),!r)return e();if(k[V]?.(B,N,n,Q),Z.REQUESTED===a.MetaMetricsEventName.SignatureRequested){const e=await(0,m.getSnapAndHardwareInfoForMetrics)(S,O,P,A);Object.assign(Q,e)}let s={};if(d.SIGNING_METHODS.includes(V)){const e=I.getSignatureSecurityAlertResponse(B.securityAlertResponse?.securityAlertId);s=(0,p.getBlockaidMetricsProps)({securityAlertResponse:e})}const u={...Q,...s,location:t};if(delete u.address_alert_response,r===a.MetaMetricsEventName.SignatureRejected||r===a.MetaMetricsEventName.SignatureApproved){const e={abandoned:r===Z.REJECTED},t={properties:{...u,hd_entropy_index:R()},sensitiveProperties:X};!function(e,t,r,n){const i=(0,p.generateSignatureUniqueId)(t.id);e.updateEventFragment(i,n),e.finalizeEventFragment(i,r)}(M,B,e,t)}else M.trackEvent({event:r,category:W,referrer:{url:C},properties:u});return e()})}};var n=e("@metamask/controller-utils"),i=e("@metamask/rpc-errors"),o=e("ethereumjs-util"),s=e("../../../shared/constants/app"),a=e("../../../shared/constants/metametrics"),u=e("../../../shared/lib/transaction.utils"),c=e("../../../shared/constants/security-provider"),l=e("../../../shared/lib/trust-signals"),f=e("../../../shared/constants/signatures"),d=e("../../../shared/constants/transaction"),h=e("../../../shared/lib/error"),p=e("../../../ui/helpers/utils/metrics"),b=e("../../../shared/lib/snaps/snaps"),m=e("./snap-keyring/metrics"),g=e("./getIframeProperties");const y={TIMEOUT:"timeout",BLOCKED:"blocked",NON_RATE_LIMITED:"non_rate_limited",RANDOM_SAMPLE:"random_sample"},v={REQUESTED:"REQUESTED",APPROVED:"APPROVED",REJECTED:"REJECTED"},w={[s.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA]:y.NON_RATE_LIMITED,[s.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA_V3]:y.NON_RATE_LIMITED,[s.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA_V4]:y.NON_RATE_LIMITED,[s.MESSAGE_TYPE.PERSONAL_SIGN]:y.NON_RATE_LIMITED,[s.MESSAGE_TYPE.ETH_DECRYPT]:y.NON_RATE_LIMITED,[s.MESSAGE_TYPE.ETH_GET_ENCRYPTION_PUBLIC_KEY]:y.NON_RATE_LIMITED,[s.MESSAGE_TYPE.ADD_ETHEREUM_CHAIN]:y.NON_RATE_LIMITED,[s.MESSAGE_TYPE.SWITCH_ETHEREUM_CHAIN]:y.NON_RATE_LIMITED,[s.MESSAGE_TYPE.ETH_REQUEST_ACCOUNTS]:y.TIMEOUT,[s.MESSAGE_TYPE.WALLET_REQUEST_PERMISSIONS]:y.TIMEOUT,[s.MESSAGE_TYPE.WALLET_CREATE_SESSION]:y.NON_RATE_LIMITED,[s.MESSAGE_TYPE.SEND_METADATA]:y.BLOCKED,[s.MESSAGE_TYPE.ETH_CHAIN_ID]:y.BLOCKED,[s.MESSAGE_TYPE.ETH_ACCOUNTS]:y.BLOCKED,[s.MESSAGE_TYPE.LOG_WEB3_SHIM_USAGE]:y.BLOCKED,[s.MESSAGE_TYPE.GET_PROVIDER_STATE]:y.BLOCKED,[s.MESSAGE_TYPE.WALLET_GET_CALLS_STATUS]:y.NON_RATE_LIMITED,[s.MESSAGE_TYPE.WALLET_GET_CAPABILITIES]:y.NON_RATE_LIMITED,[s.MESSAGE_TYPE.WALLET_SEND_CALLS]:y.NON_RATE_LIMITED},_={[s.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA]:{APPROVED:a.MetaMetricsEventName.SignatureApproved,REJECTED:a.MetaMetricsEventName.SignatureRejected,REQUESTED:a.MetaMetricsEventName.SignatureRequested},[s.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA_V3]:{APPROVED:a.MetaMetricsEventName.SignatureApproved,REJECTED:a.MetaMetricsEventName.SignatureRejected,REQUESTED:a.MetaMetricsEventName.SignatureRequested},[s.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA_V4]:{APPROVED:a.MetaMetricsEventName.SignatureApproved,REJECTED:a.MetaMetricsEventName.SignatureRejected,REQUESTED:a.MetaMetricsEventName.SignatureRequested},[s.MESSAGE_TYPE.PERSONAL_SIGN]:{APPROVED:a.MetaMetricsEventName.SignatureApproved,REJECTED:a.MetaMetricsEventName.SignatureRejected,REQUESTED:a.MetaMetricsEventName.SignatureRequested},[s.MESSAGE_TYPE.ETH_DECRYPT]:{APPROVED:a.MetaMetricsEventName.DecryptionApproved,REJECTED:a.MetaMetricsEventName.DecryptionRejected,REQUESTED:a.MetaMetricsEventName.DecryptionRequested},[s.MESSAGE_TYPE.ETH_GET_ENCRYPTION_PUBLIC_KEY]:{APPROVED:a.MetaMetricsEventName.EncryptionPublicKeyApproved,REJECTED:a.MetaMetricsEventName.EncryptionPublicKeyRejected,REQUESTED:a.MetaMetricsEventName.EncryptionPublicKeyRequested},[s.MESSAGE_TYPE.ETH_REQUEST_ACCOUNTS]:{APPROVED:a.MetaMetricsEventName.PermissionsApproved,REJECTED:a.MetaMetricsEventName.PermissionsRejected,REQUESTED:a.MetaMetricsEventName.PermissionsRequested},[s.MESSAGE_TYPE.WALLET_REQUEST_PERMISSIONS]:{APPROVED:a.MetaMetricsEventName.PermissionsApproved,REJECTED:a.MetaMetricsEventName.PermissionsRejected,REQUESTED:a.MetaMetricsEventName.PermissionsRequested},[s.MESSAGE_TYPE.WALLET_CREATE_SESSION]:{APPROVED:a.MetaMetricsEventName.PermissionsApproved,REJECTED:a.MetaMetricsEventName.PermissionsRejected,REQUESTED:a.MetaMetricsEventName.PermissionsRequested},[s.MESSAGE_TYPE.WALLET_GET_CALLS_STATUS]:{REQUESTED:a.MetaMetricsEventName.Wallet5792Called},[s.MESSAGE_TYPE.WALLET_GET_CAPABILITIES]:{REQUESTED:a.MetaMetricsEventName.Wallet5792Called},[s.MESSAGE_TYPE.WALLET_SEND_CALLS]:{REQUESTED:a.MetaMetricsEventName.Wallet5792Called}},j={[s.MESSAGE_TYPE.WATCH_ASSET]:({type:e})=>({type:e}),[s.MESSAGE_TYPE.ADD_ETHEREUM_CHAIN]:([{chainId:e}])=>({chainId:e}),[s.MESSAGE_TYPE.SWITCH_ETHEREUM_CHAIN]:([{chainId:e}])=>({chainId:e})},k={[s.MESSAGE_TYPE.WALLET_SEND_CALLS]:function(e,t,r,n){if(r!==v.REQUESTED)return;const{params:i}=e,o=i?.[0]?.calls?.length;o&&(n.batch_transaction_count=o)},[s.MESSAGE_TYPE.WALLET_CREATE_SESSION]:function(e,t,r,n){if(r===v.REQUESTED){const{params:t}=e,r=t?.requiredScopes||{},i=t?.optionalScopes||{},o=new Set;for(const e of Object.keys(r))o.add(e);for(const e of Object.keys(i))o.add(e);n.chain_id_list=Array.from(o)}else if(r===v.APPROVED){const{result:e}=t,r=Object.keys(e?.sessionScopes||{});n.chain_id_list=r}}},x={};let E=0}}},{package:"$root$",file:"app/scripts/lib/createRPCMethodTrackingMiddleware.js"}],[7377,{"readable-stream":7392},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ReadableWebToNodeStream=void 0;const n=e("readable-stream");class i extends n.Readable{constructor(e){super(),this.bytesRead=0,this.released=!1,this.reader=e.getReader()}async _read(){if(this.released)return void this.push(null);this.pendingRead=this.reader.read();const e=await this.pendingRead;delete this.pendingRead,e.done||this.released?this.push(null):(this.bytesRead+=e.value.length,this.push(e.value))}async waitForReadToComplete(){this.pendingRead&&await this.pendingRead}async close(){await this.syncAndRelease()}async syncAndRelease(){this.released=!0,await this.waitForReadToComplete(),await this.reader.releaseLock()}}r.ReadableWebToNodeStream=i}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream",file:"node_modules/readable-web-to-node-stream/lib/index.js"}],[7378,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n={};function i(e,t,r){r||(r=Error);var i=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){var n,i,s,a;if("string"==typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(r===undefined||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(u," ").concat(n," ").concat(o(t,"type"))}return a+=". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/errors-browser.js"}],[7379,{"./_stream_readable":7381,"./_stream_writable":7383,_process:7180,inherits:6576},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=c;var i=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(c,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var u=s[a];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/_stream_duplex.js"}],[7380,{"./_stream_transform":7382,inherits:6576},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=i;var n=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e("inherits")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/_stream_passthrough.js"}],[7381,{"../errors":7378,"./_stream_duplex":7379,"./internal/streams/async_iterator":7384,"./internal/streams/buffer_list":7385,"./internal/streams/destroy":7386,"./internal/streams/from":7388,"./internal/streams/state":7390,"./internal/streams/stream":7391,_process:7180,buffer:5972,events:6281,inherits:6576,"string_decoder/":7758,util:5924},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n;t.exports=x,x.ReadableState=k;e("events").EventEmitter;var i=function(e,t){return e.listeners(t).length},o=e("./internal/streams/stream"),s=e("buffer").Buffer,a=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,c=e("util");u=c&&c.debuglog?c.debuglog("stream"):function(){};var l,f,d,h=e("./internal/streams/buffer_list"),p=e("./internal/streams/destroy"),b=e("./internal/streams/state").getHighWaterMark,m=e("../errors").codes,g=m.ERR_INVALID_ARG_TYPE,y=m.ERR_STREAM_PUSH_AFTER_EOF,v=m.ERR_METHOD_NOT_IMPLEMENTED,w=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(x,o);var _=p.errorOrDestroy,j=["error","close","destroy","pause","resume"];function k(t,r,i){n=n||e("./_stream_duplex"),t=t||{},"boolean"!=typeof i&&(i=r instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(l||(l=e("string_decoder/").StringDecoder),this.decoder=new l(t.encoding),this.encoding=t.encoding)}function x(t){if(n=n||e("./_stream_duplex"),!(this instanceof x))return new x(t);var r=this instanceof n;this._readableState=new k(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function E(e,t,r,n,i){u("readableAddChunk",t);var o,c=e._readableState;if(null===t)c.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?P(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,A(e)))}(e,c);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof a||"string"==typeof t||t===undefined||e.objectMode||(r=new g("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(c,t)),o)_(e,o);else if(c.objectMode||t&&t.length>0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)c.endEmitted?_(e,new w):T(e,c,t,!0);else if(c.ended)_(e,new y);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!r?(t=c.decoder.write(t),c.objectMode||0!==t.length?T(e,c,t,!1):I(e,c)):T(e,c,t,!1)}else n||(c.reading=!1,I(e,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function T(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&P(e)),I(e,t)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=p.destroy,x.prototype._undestroy=p.undestroy,x.prototype._destroy=function(e,t){t(e)},x.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),E(this,e,t,!1,r)},x.prototype.unshift=function(e){return E(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(t){l||(l=e("string_decoder/").StringDecoder);var r=new l(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var S=1073741824;function O(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function P(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(A,e))}function A(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,F(e)}function I(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(u("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function R(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function B(e){u("readable nexttick read 0"),e.read(0)}function N(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function C(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function L(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function D(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}x.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):P(this),null;if(0===(e=O(e,t))&&t.ended)return 0===t.length&&L(this),null;var n,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&u("length less than watermark",i=!0),t.ended||t.reading?u("reading or ended",i=!1):i&&(u("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=O(r,t))),null===(n=e>0?C(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==n&&this.emit("data",n),n},x.prototype._read=function(e){_(this,new v("_read()"))},x.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,u("pipe count=%d opts=%j",o.pipesCount,t);var s=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:m;function a(t,r){u("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,u("cleanup"),e.removeListener("close",p),e.removeListener("finish",b),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",a),n.removeListener("end",c),n.removeListener("end",m),n.removeListener("data",d),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function c(){u("onend"),e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",a);var l=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,F(e))}}(n);e.on("drain",l);var f=!1;function d(t){u("ondata");var r=e.write(t);u("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==D(o.pipes,e))&&!f&&(u("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function h(t){u("onerror",t),m(),e.removeListener("error",h),0===i(e,"error")&&_(e,t)}function p(){e.removeListener("finish",b),m()}function b(){u("onfinish"),e.removeListener("close",p),m()}function m(){u("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",b),e.emit("pipe",n),o.flowing||(u("pipe resume"),n.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=D(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},x.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?P(this):i.reading||r.nextTick(B,this))),n},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(R,this),n},x.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&e!==undefined||r.nextTick(R,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(N,e,t))}(this,e)),e.paused=!1,this},x.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(u("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&i!==undefined)&&((r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause())))}),e)this[i]===undefined&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<j.length;o++)e.on(j[o],this.emit.bind(this,j[o]));return this._read=function(t){u("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return f===undefined&&(f=e("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),x._fromList=C,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(t,r){return d===undefined&&(d=e("./internal/streams/from")),d(x,t,r)})}).call(this)}).call(this,e("_process"))}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/_stream_readable.js"}],[7382,{"../errors":7378,"./_stream_duplex":7379,inherits:6576},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=l;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=e("./_stream_duplex");function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}e("inherits")(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/_stream_transform.js"}],[7383,{"../errors":7378,"./_stream_duplex":7379,"./internal/streams/destroy":7386,"./internal/streams/state":7390,"./internal/streams/stream":7391,_process:7180,buffer:5972,inherits:6576,"util-deprecate":7826},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;t.exports=x,x.WritableState=k;var o={deprecate:e("util-deprecate")},s=e("./internal/streams/stream"),a=e("buffer").Buffer,u=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,l=e("./internal/streams/destroy"),f=e("./internal/streams/state").getHighWaterMark,d=e("../errors").codes,h=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,b=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,v=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,_=l.errorOrDestroy;function j(){}function k(t,o,s){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof s&&(s=o instanceof i),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new b;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(A,e,t),e._writableState.errorEmitted=!0,_(e,i)):(o(i),e._writableState.errorEmitted=!0,_(e,i),A(e,t))}(e,n,i,t,o);else{var s=O(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),i?r.nextTick(T,e,n,s,o):T(e,n,s,o)}}(o,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function x(t){var r=this instanceof(i=i||e("./_stream_duplex"));if(!r&&!c.call(x,this))return new x(t);this._writableState=new k(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function E(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function T(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),A(e,t)}function S(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,E(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback;if(E(e,t,!1,t.objectMode?1:c.length,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function O(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function P(e,t){e._final(function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),A(e,t)})}function A(e,t){var n=O(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(P,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}e("inherits")(x,s),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===x&&(e&&e._writableState instanceof k)}})):c=function(e){return e instanceof this},x.prototype.pipe=function(){_(this,new m)},x.prototype.write=function(e,t,n){var i,o=this._writableState,s=!1,c=!o.objectMode&&(i=e,a.isBuffer(i)||i instanceof u);return c&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(n=t,t=null),c?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=j),o.ending?function(e,t){var n=new v;_(e,n),r.nextTick(t,n)}(this,n):(c||function(e,t,n,i){var o;return null===n?o=new y:"string"==typeof n||t.objectMode||(o=new h("chunk",["string","Buffer"],n)),!o||(_(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var u=t.objectMode?1:n.length;t.length+=u;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,u,n,i,o);return c}(this,o,c,e,t,n)),s},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||S(this,e))},x.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new p("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&e!==undefined&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,A(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==undefined&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=l.destroy,x.prototype._undestroy=l.undestroy,x.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"))}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/_stream_writable.js"}],[7384,{"./end-of-stream":7387,_process:7180},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=e("./end-of-stream"),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[l]=null,e[s]=null,e[a]=null,t(h(r,!1)))}}function b(e){r.nextTick(p,e)}var m=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(h(undefined,!0));if(this[d].destroyed)return new Promise(function(t,n){r.nextTick(function(){e[u]?n(e[u]):t(h(undefined,!0))})});var n,i=this[l];if(i)n=new Promise(function(e,t){return function(r,n){e.then(function(){t[c]?r(h(undefined,!0)):t[f](r,n)},n)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[f])}return this[l]=n,n}},Symbol.asyncIterator,function(){return this}),i(n,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){e?r(e):t(h(undefined,!0))})})}),n),m);t.exports=function(e){var t,r=Object.create(g,(i(t={},d,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var n=r[d].read();n?(r[l]=null,r[s]=null,r[a]=null,e(h(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[l]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[l]=null,r[s]=null,r[a]=null,t(e)),void(r[u]=e)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[a]=null,n(h(undefined,!0))),r[c]=!0}),e.on("readable",b.bind(null,r)),r}}).call(this)}).call(this,e("_process"))}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/async_iterator.js"}],[7385,{buffer:5972,util:5924},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var u=e("buffer").Buffer,c=e("util").inspect,l=c&&c.custom||"inspect";function f(e,t,r){u.prototype.copy.call(e,t,r)}t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js"}],[7386,{_process:7180},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,o){var s=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!o&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(n,s):(s._writableState.errorEmitted=!0,e.nextTick(r,s,t)):e.nextTick(r,s,t):o?(e.nextTick(n,s),o(t)):e.nextTick(n,s)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/destroy.js"}],[7387,{"../../../errors":7378},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||l()},c=t._writableState&&t._writableState.finished,l=function(){a=!1,c=!0,s||o.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){s=!1,f=!0,a||o.call(t)},h=function(e){o.call(t,e)},p=function(){var e;return s&&!f?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},b=function(){t.req.on("finish",l)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",u),t.on("close",u)):(t.on("complete",l),t.on("abort",p),t.req?b():t.on("request",b)),t.on("end",d),t.on("finish",l),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",l),t.removeListener("abort",p),t.removeListener("request",b),t.req&&t.req.removeListener("finish",l),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",l),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"}],[7388,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/from-browser.js"}],[7389,{"../../../errors":7378,"./end-of-stream":7387},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;var i=e("../../../errors").codes,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function u(e){e()}function c(e,t){return e.pipe(t)}t.exports=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var l,f=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new o("streams");var d=r.map(function(t,i){var o=i<r.length-1;return function(t,r,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;t.on("close",function(){a=!0}),n===undefined&&(n=e("./end-of-stream")),n(t,{readable:r,writable:i},function(e){if(e)return o(e);a=!0,o()});var u=!1;return function(e){if(!a&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}(t,o,i>0,function(e){l||(l=e),e&&d.forEach(u),o||(d.forEach(u),f(l))})});return r.reduce(c)}}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js"}],[7390,{"../../../errors":7378},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/state.js"}],[7391,{events:6281},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("events").EventEmitter}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/stream-browser.js"}],[7392,{"./lib/_stream_duplex.js":7379,"./lib/_stream_passthrough.js":7380,"./lib/_stream_readable.js":7381,"./lib/_stream_transform.js":7382,"./lib/_stream_writable.js":7383,"./lib/internal/streams/end-of-stream.js":7387,"./lib/internal/streams/pipeline.js":7389},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/readable-browser.js"}],[74,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return function(t,r,n){t.tabId=e.tabId,n()}}}}},{package:"$root$",file:"app/scripts/lib/createTabIdMiddleware.js"}],[740,{buffer:5972},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Buffer:n}=e("buffer");t.exports=class{constructor(e,t,r,i){this.name=e,this.code=t,this.codeBuf=n.from(this.code),this.alphabet=i,this.engine=r(i)}encode(e){return this.engine.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.engine.decode(e)}}}}},{package:"@ensdomains/content-hash>multihashes>multibase",file:"node_modules/@ensdomains/content-hash/node_modules/multibase/src/base.js"}],[741,{"./base.js":740,"./rfc4648":743,"./util":744,"base-x":5911},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("base-x"),i=e("./base.js"),o=e("./rfc4648"),{decodeText:s,encodeText:a}=e("./util"),u=[["identity","\0",()=>({encode:s,decode:a}),""],["base2","0",o(1),"01"],["base8","7",o(3),"01234567"],["base10","9",n,"0123456789"],["base16","f",o(4),"0123456789abcdef"],["base16upper","F",o(4),"0123456789ABCDEF"],["base32hex","v",o(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",o(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",o(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",o(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",o(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",n,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",n,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",n,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",n,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],c=u.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=u.reduce((e,t)=>(e[t[1]]=c[t[0]],e),{});t.exports={names:c,codes:l}}}},{package:"@ensdomains/content-hash>multihashes>multibase",file:"node_modules/@ensdomains/content-hash/node_modules/multibase/src/constants.js"}],[742,{"./constants":741,"./util":744,buffer:5972},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Buffer:n}=e("buffer"),i=e("./constants"),{decodeText:o,asBuffer:s}=e("./util");function a(e){if(i.names[e])return i.names[e];if(i.codes[e])return i.codes[e];throw new Error(`Unsupported encoding: ${e}`)}(r=t.exports=function(e,t){if(!t)throw new Error("requires an encoded buffer");const{name:r,codeBuf:i}=a(e);!function(e,t){const r=a(e);r.decode(o(t))}(r,t);const s=n.alloc(i.length+t.length);return s.set(i,0),s.set(t,i.length),s}).encode=function(e,t){const r=a(e);return n.concat([r.codeBuf,n.from(r.encode(t))])},r.decode=function(e){ArrayBuffer.isView(e)&&(e=o(e));const t=e[0];["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase());const r=a(e[0]);return s(r.decode(e.substring(1)))},r.isEncoded=function(e){if(e instanceof Uint8Array&&(e=o(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{return a(e[0]).name}catch(e){return!1}},r.encoding=a,r.encodingFromData=function(e){return e instanceof Uint8Array&&(e=o(e)),a(e[0])},r.names=Object.freeze(i.names),r.codes=Object.freeze(i.codes)}}},{package:"@ensdomains/content-hash>multihashes>multibase",file:"node_modules/@ensdomains/content-hash/node_modules/multibase/src/index.js"}],[7422,{"./internal/AsyncSubject":7423,"./internal/BehaviorSubject":7424,"./internal/Notification":7425,"./internal/Observable":7427,"./internal/ReplaySubject":7428,"./internal/Scheduler":7429,"./internal/Subject":7430,"./internal/Subscriber":7431,"./internal/Subscription":7432,"./internal/config":7433,"./internal/firstValueFrom":7434,"./internal/lastValueFrom":7435,"./internal/observable/ConnectableObservable":7436,"./internal/observable/bindCallback":7437,"./internal/observable/bindNodeCallback":7439,"./internal/observable/combineLatest":7440,"./internal/observable/concat":7441,"./internal/observable/connectable":7442,"./internal/observable/defer":7443,"./internal/observable/dom/animationFrames":7444,"./internal/observable/empty":7445,"./internal/observable/forkJoin":7446,"./internal/observable/from":7447,"./internal/observable/fromEvent":7448,"./internal/observable/fromEventPattern":7449,"./internal/observable/generate":7451,"./internal/observable/iif":7452,"./internal/observable/interval":7454,"./internal/observable/merge":7455,"./internal/observable/never":7456,"./internal/observable/of":7457,"./internal/observable/onErrorResumeNext":7458,"./internal/observable/pairs":7459,"./internal/observable/partition":7460,"./internal/observable/race":7461,"./internal/observable/range":7462,"./internal/observable/throwError":7463,"./internal/observable/timer":7464,"./internal/observable/using":7465,"./internal/observable/zip":7466,"./internal/operators/audit":7468,"./internal/operators/auditTime":7469,"./internal/operators/buffer":7470,"./internal/operators/bufferCount":7471,"./internal/operators/bufferTime":7472,"./internal/operators/bufferToggle":7473,"./internal/operators/bufferWhen":7474,"./internal/operators/catchError":7475,"./internal/operators/combineAll":7476,"./internal/operators/combineLatestAll":7478,"./internal/operators/combineLatestWith":7479,"./internal/operators/concatAll":7481,"./internal/operators/concatMap":7482,"./internal/operators/concatMapTo":7483,"./internal/operators/concatWith":7484,"./internal/operators/connect":7485,"./internal/operators/count":7486,"./internal/operators/debounce":7487,"./internal/operators/debounceTime":7488,"./internal/operators/defaultIfEmpty":7489,"./internal/operators/delay":7490,"./internal/operators/delayWhen":7491,"./internal/operators/dematerialize":7492,"./internal/operators/distinct":7493,"./internal/operators/distinctUntilChanged":7494,"./internal/operators/distinctUntilKeyChanged":7495,"./internal/operators/elementAt":7496,"./internal/operators/endWith":7497,"./internal/operators/every":7498,"./internal/operators/exhaust":7499,"./internal/operators/exhaustAll":7500,"./internal/operators/exhaustMap":7501,"./internal/operators/expand":7502,"./internal/operators/filter":7503,"./internal/operators/finalize":7504,"./internal/operators/find":7505,"./internal/operators/findIndex":7506,"./internal/operators/first":7507,"./internal/operators/flatMap":7508,"./internal/operators/groupBy":7509,"./internal/operators/ignoreElements":7510,"./internal/operators/isEmpty":7511,"./internal/operators/last":7513,"./internal/operators/map":7514,"./internal/operators/mapTo":7515,"./internal/operators/materialize":7516,"./internal/operators/max":7517,"./internal/operators/mergeAll":7519,"./internal/operators/mergeMap":7521,"./internal/operators/mergeMapTo":7522,"./internal/operators/mergeScan":7523,"./internal/operators/mergeWith":7524,"./internal/operators/min":7525,"./internal/operators/multicast":7526,"./internal/operators/observeOn":7527,"./internal/operators/onErrorResumeNextWith":7528,"./internal/operators/pairwise":7529,"./internal/operators/pluck":7530,"./internal/operators/publish":7531,"./internal/operators/publishBehavior":7532,"./internal/operators/publishLast":7533,"./internal/operators/publishReplay":7534,"./internal/operators/raceWith":7535,"./internal/operators/reduce":7536,"./internal/operators/refCount":7537,"./internal/operators/repeat":7538,"./internal/operators/repeatWhen":7539,"./internal/operators/retry":7540,"./internal/operators/retryWhen":7541,"./internal/operators/sample":7542,"./internal/operators/sampleTime":7543,"./internal/operators/scan":7544,"./internal/operators/sequenceEqual":7546,"./internal/operators/share":7547,"./internal/operators/shareReplay":7548,"./internal/operators/single":7549,"./internal/operators/skip":7550,"./internal/operators/skipLast":7551,"./internal/operators/skipUntil":7552,"./internal/operators/skipWhile":7553,"./internal/operators/startWith":7554,"./internal/operators/subscribeOn":7555,"./internal/operators/switchAll":7556,"./internal/operators/switchMap":7557,"./internal/operators/switchMapTo":7558,"./internal/operators/switchScan":7559,"./internal/operators/take":7560,"./internal/operators/takeLast":7561,"./internal/operators/takeUntil":7562,"./internal/operators/takeWhile":7563,"./internal/operators/tap":7564,"./internal/operators/throttle":7565,"./internal/operators/throttleTime":7566,"./internal/operators/throwIfEmpty":7567,"./internal/operators/timeInterval":7568,"./internal/operators/timeout":7569,"./internal/operators/timeoutWith":7570,"./internal/operators/timestamp":7571,"./internal/operators/toArray":7572,"./internal/operators/window":7573,"./internal/operators/windowCount":7574,"./internal/operators/windowTime":7575,"./internal/operators/windowToggle":7576,"./internal/operators/windowWhen":7577,"./internal/operators/withLatestFrom":7578,"./internal/operators/zipAll":7580,"./internal/operators/zipWith":7581,"./internal/scheduled/scheduled":7588,"./internal/scheduler/VirtualTimeScheduler":7598,"./internal/scheduler/animationFrame":7599,"./internal/scheduler/asap":7601,"./internal/scheduler/async":7602,"./internal/scheduler/queue":7607,"./internal/symbol/observable":7610,"./internal/types":7611,"./internal/util/ArgumentOutOfRangeError":7612,"./internal/util/EmptyError":7613,"./internal/util/NotFoundError":7615,"./internal/util/ObjectUnsubscribedError":7616,"./internal/util/SequenceError":7617,"./internal/util/UnsubscriptionError":7618,"./internal/util/identity":7627,"./internal/util/isObservable":7634,"./internal/util/noop":7640,"./internal/util/pipe":7642},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.interval=r.iif=r.generate=r.fromEventPattern=r.fromEvent=r.from=r.forkJoin=r.empty=r.defer=r.connectable=r.concat=r.combineLatest=r.bindNodeCallback=r.bindCallback=r.UnsubscriptionError=r.TimeoutError=r.SequenceError=r.ObjectUnsubscribedError=r.NotFoundError=r.EmptyError=r.ArgumentOutOfRangeError=r.firstValueFrom=r.lastValueFrom=r.isObservable=r.identity=r.noop=r.pipe=r.NotificationKind=r.Notification=r.Subscriber=r.Subscription=r.Scheduler=r.VirtualAction=r.VirtualTimeScheduler=r.animationFrameScheduler=r.animationFrame=r.queueScheduler=r.queue=r.asyncScheduler=r.async=r.asapScheduler=r.asap=r.AsyncSubject=r.ReplaySubject=r.BehaviorSubject=r.Subject=r.animationFrames=r.observable=r.ConnectableObservable=r.Observable=void 0,r.filter=r.expand=r.exhaustMap=r.exhaustAll=r.exhaust=r.every=r.endWith=r.elementAt=r.distinctUntilKeyChanged=r.distinctUntilChanged=r.distinct=r.dematerialize=r.delayWhen=r.delay=r.defaultIfEmpty=r.debounceTime=r.debounce=r.count=r.connect=r.concatWith=r.concatMapTo=r.concatMap=r.concatAll=r.combineLatestWith=r.combineLatestAll=r.combineAll=r.catchError=r.bufferWhen=r.bufferToggle=r.bufferTime=r.bufferCount=r.buffer=r.auditTime=r.audit=r.config=r.NEVER=r.EMPTY=r.scheduled=r.zip=r.using=r.timer=r.throwError=r.range=r.race=r.partition=r.pairs=r.onErrorResumeNext=r.of=r.never=r.merge=void 0,r.switchMap=r.switchAll=r.subscribeOn=r.startWith=r.skipWhile=r.skipUntil=r.skipLast=r.skip=r.single=r.shareReplay=r.share=r.sequenceEqual=r.scan=r.sampleTime=r.sample=r.refCount=r.retryWhen=r.retry=r.repeatWhen=r.repeat=r.reduce=r.raceWith=r.publishReplay=r.publishLast=r.publishBehavior=r.publish=r.pluck=r.pairwise=r.onErrorResumeNextWith=r.observeOn=r.multicast=r.min=r.mergeWith=r.mergeScan=r.mergeMapTo=r.mergeMap=r.flatMap=r.mergeAll=r.max=r.materialize=r.mapTo=r.map=r.last=r.isEmpty=r.ignoreElements=r.groupBy=r.first=r.findIndex=r.find=r.finalize=void 0,r.zipWith=r.zipAll=r.withLatestFrom=r.windowWhen=r.windowToggle=r.windowTime=r.windowCount=r.window=r.toArray=r.timestamp=r.timeoutWith=r.timeout=r.timeInterval=r.throwIfEmpty=r.throttleTime=r.throttle=r.tap=r.takeWhile=r.takeUntil=r.takeLast=r.take=r.switchScan=r.switchMapTo=void 0;var o=e("./internal/Observable");Object.defineProperty(r,"Observable",{enumerable:!0,get:function(){return o.Observable}});var s=e("./internal/observable/ConnectableObservable");Object.defineProperty(r,"ConnectableObservable",{enumerable:!0,get:function(){return s.ConnectableObservable}});var a=e("./internal/symbol/observable");Object.defineProperty(r,"observable",{enumerable:!0,get:function(){return a.observable}});var u=e("./internal/observable/dom/animationFrames");Object.defineProperty(r,"animationFrames",{enumerable:!0,get:function(){return u.animationFrames}});var c=e("./internal/Subject");Object.defineProperty(r,"Subject",{enumerable:!0,get:function(){return c.Subject}});var l=e("./internal/BehaviorSubject");Object.defineProperty(r,"BehaviorSubject",{enumerable:!0,get:function(){return l.BehaviorSubject}});var f=e("./internal/ReplaySubject");Object.defineProperty(r,"ReplaySubject",{enumerable:!0,get:function(){return f.ReplaySubject}});var d=e("./internal/AsyncSubject");Object.defineProperty(r,"AsyncSubject",{enumerable:!0,get:function(){return d.AsyncSubject}});var h=e("./internal/scheduler/asap");Object.defineProperty(r,"asap",{enumerable:!0,get:function(){return h.asap}}),Object.defineProperty(r,"asapScheduler",{enumerable:!0,get:function(){return h.asapScheduler}});var p=e("./internal/scheduler/async");Object.defineProperty(r,"async",{enumerable:!0,get:function(){return p.async}}),Object.defineProperty(r,"asyncScheduler",{enumerable:!0,get:function(){return p.asyncScheduler}});var b=e("./internal/scheduler/queue");Object.defineProperty(r,"queue",{enumerable:!0,get:function(){return b.queue}}),Object.defineProperty(r,"queueScheduler",{enumerable:!0,get:function(){return b.queueScheduler}});var m=e("./internal/scheduler/animationFrame");Object.defineProperty(r,"animationFrame",{enumerable:!0,get:function(){return m.animationFrame}}),Object.defineProperty(r,"animationFrameScheduler",{enumerable:!0,get:function(){return m.animationFrameScheduler}});var g=e("./internal/scheduler/VirtualTimeScheduler");Object.defineProperty(r,"VirtualTimeScheduler",{enumerable:!0,get:function(){return g.VirtualTimeScheduler}}),Object.defineProperty(r,"VirtualAction",{enumerable:!0,get:function(){return g.VirtualAction}});var y=e("./internal/Scheduler");Object.defineProperty(r,"Scheduler",{enumerable:!0,get:function(){return y.Scheduler}});var v=e("./internal/Subscription");Object.defineProperty(r,"Subscription",{enumerable:!0,get:function(){return v.Subscription}});var w=e("./internal/Subscriber");Object.defineProperty(r,"Subscriber",{enumerable:!0,get:function(){return w.Subscriber}});var _=e("./internal/Notification");Object.defineProperty(r,"Notification",{enumerable:!0,get:function(){return _.Notification}}),Object.defineProperty(r,"NotificationKind",{enumerable:!0,get:function(){return _.NotificationKind}});var j=e("./internal/util/pipe");Object.defineProperty(r,"pipe",{enumerable:!0,get:function(){return j.pipe}});var k=e("./internal/util/noop");Object.defineProperty(r,"noop",{enumerable:!0,get:function(){return k.noop}});var x=e("./internal/util/identity");Object.defineProperty(r,"identity",{enumerable:!0,get:function(){return x.identity}});var E=e("./internal/util/isObservable");Object.defineProperty(r,"isObservable",{enumerable:!0,get:function(){return E.isObservable}});var T=e("./internal/lastValueFrom");Object.defineProperty(r,"lastValueFrom",{enumerable:!0,get:function(){return T.lastValueFrom}});var S=e("./internal/firstValueFrom");Object.defineProperty(r,"firstValueFrom",{enumerable:!0,get:function(){return S.firstValueFrom}});var O=e("./internal/util/ArgumentOutOfRangeError");Object.defineProperty(r,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return O.ArgumentOutOfRangeError}});var P=e("./internal/util/EmptyError");Object.defineProperty(r,"EmptyError",{enumerable:!0,get:function(){return P.EmptyError}});var A=e("./internal/util/NotFoundError");Object.defineProperty(r,"NotFoundError",{enumerable:!0,get:function(){return A.NotFoundError}});var I=e("./internal/util/ObjectUnsubscribedError");Object.defineProperty(r,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return I.ObjectUnsubscribedError}});var M=e("./internal/util/SequenceError");Object.defineProperty(r,"SequenceError",{enumerable:!0,get:function(){return M.SequenceError}});var R=e("./internal/operators/timeout");Object.defineProperty(r,"TimeoutError",{enumerable:!0,get:function(){return R.TimeoutError}});var B=e("./internal/util/UnsubscriptionError");Object.defineProperty(r,"UnsubscriptionError",{enumerable:!0,get:function(){return B.UnsubscriptionError}});var N=e("./internal/observable/bindCallback");Object.defineProperty(r,"bindCallback",{enumerable:!0,get:function(){return N.bindCallback}});var F=e("./internal/observable/bindNodeCallback");Object.defineProperty(r,"bindNodeCallback",{enumerable:!0,get:function(){return F.bindNodeCallback}});var C=e("./internal/observable/combineLatest");Object.defineProperty(r,"combineLatest",{enumerable:!0,get:function(){return C.combineLatest}});var L=e("./internal/observable/concat");Object.defineProperty(r,"concat",{enumerable:!0,get:function(){return L.concat}});var U=e("./internal/observable/connectable");Object.defineProperty(r,"connectable",{enumerable:!0,get:function(){return U.connectable}});var D=e("./internal/observable/defer");Object.defineProperty(r,"defer",{enumerable:!0,get:function(){return D.defer}});var z=e("./internal/observable/empty");Object.defineProperty(r,"empty",{enumerable:!0,get:function(){return z.empty}});var q=e("./internal/observable/forkJoin");Object.defineProperty(r,"forkJoin",{enumerable:!0,get:function(){return q.forkJoin}});var H=e("./internal/observable/from");Object.defineProperty(r,"from",{enumerable:!0,get:function(){return H.from}});var W=e("./internal/observable/fromEvent");Object.defineProperty(r,"fromEvent",{enumerable:!0,get:function(){return W.fromEvent}});var G=e("./internal/observable/fromEventPattern");Object.defineProperty(r,"fromEventPattern",{enumerable:!0,get:function(){return G.fromEventPattern}});var V=e("./internal/observable/generate");Object.defineProperty(r,"generate",{enumerable:!0,get:function(){return V.generate}});var $=e("./internal/observable/iif");Object.defineProperty(r,"iif",{enumerable:!0,get:function(){return $.iif}});var Y=e("./internal/observable/interval");Object.defineProperty(r,"interval",{enumerable:!0,get:function(){return Y.interval}});var K=e("./internal/observable/merge");Object.defineProperty(r,"merge",{enumerable:!0,get:function(){return K.merge}});var J=e("./internal/observable/never");Object.defineProperty(r,"never",{enumerable:!0,get:function(){return J.never}});var Z=e("./internal/observable/of");Object.defineProperty(r,"of",{enumerable:!0,get:function(){return Z.of}});var Q=e("./internal/observable/onErrorResumeNext");Object.defineProperty(r,"onErrorResumeNext",{enumerable:!0,get:function(){return Q.onErrorResumeNext}});var X=e("./internal/observable/pairs");Object.defineProperty(r,"pairs",{enumerable:!0,get:function(){return X.pairs}});var ee=e("./internal/observable/partition");Object.defineProperty(r,"partition",{enumerable:!0,get:function(){return ee.partition}});var te=e("./internal/observable/race");Object.defineProperty(r,"race",{enumerable:!0,get:function(){return te.race}});var re=e("./internal/observable/range");Object.defineProperty(r,"range",{enumerable:!0,get:function(){return re.range}});var ne=e("./internal/observable/throwError");Object.defineProperty(r,"throwError",{enumerable:!0,get:function(){return ne.throwError}});var ie=e("./internal/observable/timer");Object.defineProperty(r,"timer",{enumerable:!0,get:function(){return ie.timer}});var oe=e("./internal/observable/using");Object.defineProperty(r,"using",{enumerable:!0,get:function(){return oe.using}});var se=e("./internal/observable/zip");Object.defineProperty(r,"zip",{enumerable:!0,get:function(){return se.zip}});var ae=e("./internal/scheduled/scheduled");Object.defineProperty(r,"scheduled",{enumerable:!0,get:function(){return ae.scheduled}});var ue=e("./internal/observable/empty");Object.defineProperty(r,"EMPTY",{enumerable:!0,get:function(){return ue.EMPTY}});var ce=e("./internal/observable/never");Object.defineProperty(r,"NEVER",{enumerable:!0,get:function(){return ce.NEVER}}),i(e("./internal/types"),r);var le=e("./internal/config");Object.defineProperty(r,"config",{enumerable:!0,get:function(){return le.config}});var fe=e("./internal/operators/audit");Object.defineProperty(r,"audit",{enumerable:!0,get:function(){return fe.audit}});var de=e("./internal/operators/auditTime");Object.defineProperty(r,"auditTime",{enumerable:!0,get:function(){return de.auditTime}});var he=e("./internal/operators/buffer");Object.defineProperty(r,"buffer",{enumerable:!0,get:function(){return he.buffer}});var pe=e("./internal/operators/bufferCount");Object.defineProperty(r,"bufferCount",{enumerable:!0,get:function(){return pe.bufferCount}});var be=e("./internal/operators/bufferTime");Object.defineProperty(r,"bufferTime",{enumerable:!0,get:function(){return be.bufferTime}});var me=e("./internal/operators/bufferToggle");Object.defineProperty(r,"bufferToggle",{enumerable:!0,get:function(){return me.bufferToggle}});var ge=e("./internal/operators/bufferWhen");Object.defineProperty(r,"bufferWhen",{enumerable:!0,get:function(){return ge.bufferWhen}});var ye=e("./internal/operators/catchError");Object.defineProperty(r,"catchError",{enumerable:!0,get:function(){return ye.catchError}});var ve=e("./internal/operators/combineAll");Object.defineProperty(r,"combineAll",{enumerable:!0,get:function(){return ve.combineAll}});var we=e("./internal/operators/combineLatestAll");Object.defineProperty(r,"combineLatestAll",{enumerable:!0,get:function(){return we.combineLatestAll}});var _e=e("./internal/operators/combineLatestWith");Object.defineProperty(r,"combineLatestWith",{enumerable:!0,get:function(){return _e.combineLatestWith}});var je=e("./internal/operators/concatAll");Object.defineProperty(r,"concatAll",{enumerable:!0,get:function(){return je.concatAll}});var ke=e("./internal/operators/concatMap");Object.defineProperty(r,"concatMap",{enumerable:!0,get:function(){return ke.concatMap}});var xe=e("./internal/operators/concatMapTo");Object.defineProperty(r,"concatMapTo",{enumerable:!0,get:function(){return xe.concatMapTo}});var Ee=e("./internal/operators/concatWith");Object.defineProperty(r,"concatWith",{enumerable:!0,get:function(){return Ee.concatWith}});var Te=e("./internal/operators/connect");Object.defineProperty(r,"connect",{enumerable:!0,get:function(){return Te.connect}});var Se=e("./internal/operators/count");Object.defineProperty(r,"count",{enumerable:!0,get:function(){return Se.count}});var Oe=e("./internal/operators/debounce");Object.defineProperty(r,"debounce",{enumerable:!0,get:function(){return Oe.debounce}});var Pe=e("./internal/operators/debounceTime");Object.defineProperty(r,"debounceTime",{enumerable:!0,get:function(){return Pe.debounceTime}});var Ae=e("./internal/operators/defaultIfEmpty");Object.defineProperty(r,"defaultIfEmpty",{enumerable:!0,get:function(){return Ae.defaultIfEmpty}});var Ie=e("./internal/operators/delay");Object.defineProperty(r,"delay",{enumerable:!0,get:function(){return Ie.delay}});var Me=e("./internal/operators/delayWhen");Object.defineProperty(r,"delayWhen",{enumerable:!0,get:function(){return Me.delayWhen}});var Re=e("./internal/operators/dematerialize");Object.defineProperty(r,"dematerialize",{enumerable:!0,get:function(){return Re.dematerialize}});var Be=e("./internal/operators/distinct");Object.defineProperty(r,"distinct",{enumerable:!0,get:function(){return Be.distinct}});var Ne=e("./internal/operators/distinctUntilChanged");Object.defineProperty(r,"distinctUntilChanged",{enumerable:!0,get:function(){return Ne.distinctUntilChanged}});var Fe=e("./internal/operators/distinctUntilKeyChanged");Object.defineProperty(r,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Fe.distinctUntilKeyChanged}});var Ce=e("./internal/operators/elementAt");Object.defineProperty(r,"elementAt",{enumerable:!0,get:function(){return Ce.elementAt}});var Le=e("./internal/operators/endWith");Object.defineProperty(r,"endWith",{enumerable:!0,get:function(){return Le.endWith}});var Ue=e("./internal/operators/every");Object.defineProperty(r,"every",{enumerable:!0,get:function(){return Ue.every}});var De=e("./internal/operators/exhaust");Object.defineProperty(r,"exhaust",{enumerable:!0,get:function(){return De.exhaust}});var ze=e("./internal/operators/exhaustAll");Object.defineProperty(r,"exhaustAll",{enumerable:!0,get:function(){return ze.exhaustAll}});var qe=e("./internal/operators/exhaustMap");Object.defineProperty(r,"exhaustMap",{enumerable:!0,get:function(){return qe.exhaustMap}});var He=e("./internal/operators/expand");Object.defineProperty(r,"expand",{enumerable:!0,get:function(){return He.expand}});var We=e("./internal/operators/filter");Object.defineProperty(r,"filter",{enumerable:!0,get:function(){return We.filter}});var Ge=e("./internal/operators/finalize");Object.defineProperty(r,"finalize",{enumerable:!0,get:function(){return Ge.finalize}});var Ve=e("./internal/operators/find");Object.defineProperty(r,"find",{enumerable:!0,get:function(){return Ve.find}});var $e=e("./internal/operators/findIndex");Object.defineProperty(r,"findIndex",{enumerable:!0,get:function(){return $e.findIndex}});var Ye=e("./internal/operators/first");Object.defineProperty(r,"first",{enumerable:!0,get:function(){return Ye.first}});var Ke=e("./internal/operators/groupBy");Object.defineProperty(r,"groupBy",{enumerable:!0,get:function(){return Ke.groupBy}});var Je=e("./internal/operators/ignoreElements");Object.defineProperty(r,"ignoreElements",{enumerable:!0,get:function(){return Je.ignoreElements}});var Ze=e("./internal/operators/isEmpty");Object.defineProperty(r,"isEmpty",{enumerable:!0,get:function(){return Ze.isEmpty}});var Qe=e("./internal/operators/last");Object.defineProperty(r,"last",{enumerable:!0,get:function(){return Qe.last}});var Xe=e("./internal/operators/map");Object.defineProperty(r,"map",{enumerable:!0,get:function(){return Xe.map}});var et=e("./internal/operators/mapTo");Object.defineProperty(r,"mapTo",{enumerable:!0,get:function(){return et.mapTo}});var tt=e("./internal/operators/materialize");Object.defineProperty(r,"materialize",{enumerable:!0,get:function(){return tt.materialize}});var rt=e("./internal/operators/max");Object.defineProperty(r,"max",{enumerable:!0,get:function(){return rt.max}});var nt=e("./internal/operators/mergeAll");Object.defineProperty(r,"mergeAll",{enumerable:!0,get:function(){return nt.mergeAll}});var it=e("./internal/operators/flatMap");Object.defineProperty(r,"flatMap",{enumerable:!0,get:function(){return it.flatMap}});var ot=e("./internal/operators/mergeMap");Object.defineProperty(r,"mergeMap",{enumerable:!0,get:function(){return ot.mergeMap}});var st=e("./internal/operators/mergeMapTo");Object.defineProperty(r,"mergeMapTo",{enumerable:!0,get:function(){return st.mergeMapTo}});var at=e("./internal/operators/mergeScan");Object.defineProperty(r,"mergeScan",{enumerable:!0,get:function(){return at.mergeScan}});var ut=e("./internal/operators/mergeWith");Object.defineProperty(r,"mergeWith",{enumerable:!0,get:function(){return ut.mergeWith}});var ct=e("./internal/operators/min");Object.defineProperty(r,"min",{enumerable:!0,get:function(){return ct.min}});var lt=e("./internal/operators/multicast");Object.defineProperty(r,"multicast",{enumerable:!0,get:function(){return lt.multicast}});var ft=e("./internal/operators/observeOn");Object.defineProperty(r,"observeOn",{enumerable:!0,get:function(){return ft.observeOn}});var dt=e("./internal/operators/onErrorResumeNextWith");Object.defineProperty(r,"onErrorResumeNextWith",{enumerable:!0,get:function(){return dt.onErrorResumeNextWith}});var ht=e("./internal/operators/pairwise");Object.defineProperty(r,"pairwise",{enumerable:!0,get:function(){return ht.pairwise}});var pt=e("./internal/operators/pluck");Object.defineProperty(r,"pluck",{enumerable:!0,get:function(){return pt.pluck}});var bt=e("./internal/operators/publish");Object.defineProperty(r,"publish",{enumerable:!0,get:function(){return bt.publish}});var mt=e("./internal/operators/publishBehavior");Object.defineProperty(r,"publishBehavior",{enumerable:!0,get:function(){return mt.publishBehavior}});var gt=e("./internal/operators/publishLast");Object.defineProperty(r,"publishLast",{enumerable:!0,get:function(){return gt.publishLast}});var yt=e("./internal/operators/publishReplay");Object.defineProperty(r,"publishReplay",{enumerable:!0,get:function(){return yt.publishReplay}});var vt=e("./internal/operators/raceWith");Object.defineProperty(r,"raceWith",{enumerable:!0,get:function(){return vt.raceWith}});var wt=e("./internal/operators/reduce");Object.defineProperty(r,"reduce",{enumerable:!0,get:function(){return wt.reduce}});var _t=e("./internal/operators/repeat");Object.defineProperty(r,"repeat",{enumerable:!0,get:function(){return _t.repeat}});var jt=e("./internal/operators/repeatWhen");Object.defineProperty(r,"repeatWhen",{enumerable:!0,get:function(){return jt.repeatWhen}});var kt=e("./internal/operators/retry");Object.defineProperty(r,"retry",{enumerable:!0,get:function(){return kt.retry}});var xt=e("./internal/operators/retryWhen");Object.defineProperty(r,"retryWhen",{enumerable:!0,get:function(){return xt.retryWhen}});var Et=e("./internal/operators/refCount");Object.defineProperty(r,"refCount",{enumerable:!0,get:function(){return Et.refCount}});var Tt=e("./internal/operators/sample");Object.defineProperty(r,"sample",{enumerable:!0,get:function(){return Tt.sample}});var St=e("./internal/operators/sampleTime");Object.defineProperty(r,"sampleTime",{enumerable:!0,get:function(){return St.sampleTime}});var Ot=e("./internal/operators/scan");Object.defineProperty(r,"scan",{enumerable:!0,get:function(){return Ot.scan}});var Pt=e("./internal/operators/sequenceEqual");Object.defineProperty(r,"sequenceEqual",{enumerable:!0,get:function(){return Pt.sequenceEqual}});var At=e("./internal/operators/share");Object.defineProperty(r,"share",{enumerable:!0,get:function(){return At.share}});var It=e("./internal/operators/shareReplay");Object.defineProperty(r,"shareReplay",{enumerable:!0,get:function(){return It.shareReplay}});var Mt=e("./internal/operators/single");Object.defineProperty(r,"single",{enumerable:!0,get:function(){return Mt.single}});var Rt=e("./internal/operators/skip");Object.defineProperty(r,"skip",{enumerable:!0,get:function(){return Rt.skip}});var Bt=e("./internal/operators/skipLast");Object.defineProperty(r,"skipLast",{enumerable:!0,get:function(){return Bt.skipLast}});var Nt=e("./internal/operators/skipUntil");Object.defineProperty(r,"skipUntil",{enumerable:!0,get:function(){return Nt.skipUntil}});var Ft=e("./internal/operators/skipWhile");Object.defineProperty(r,"skipWhile",{enumerable:!0,get:function(){return Ft.skipWhile}});var Ct=e("./internal/operators/startWith");Object.defineProperty(r,"startWith",{enumerable:!0,get:function(){return Ct.startWith}});var Lt=e("./internal/operators/subscribeOn");Object.defineProperty(r,"subscribeOn",{enumerable:!0,get:function(){return Lt.subscribeOn}});var Ut=e("./internal/operators/switchAll");Object.defineProperty(r,"switchAll",{enumerable:!0,get:function(){return Ut.switchAll}});var Dt=e("./internal/operators/switchMap");Object.defineProperty(r,"switchMap",{enumerable:!0,get:function(){return Dt.switchMap}});var zt=e("./internal/operators/switchMapTo");Object.defineProperty(r,"switchMapTo",{enumerable:!0,get:function(){return zt.switchMapTo}});var qt=e("./internal/operators/switchScan");Object.defineProperty(r,"switchScan",{enumerable:!0,get:function(){return qt.switchScan}});var Ht=e("./internal/operators/take");Object.defineProperty(r,"take",{enumerable:!0,get:function(){return Ht.take}});var Wt=e("./internal/operators/takeLast");Object.defineProperty(r,"takeLast",{enumerable:!0,get:function(){return Wt.takeLast}});var Gt=e("./internal/operators/takeUntil");Object.defineProperty(r,"takeUntil",{enumerable:!0,get:function(){return Gt.takeUntil}});var Vt=e("./internal/operators/takeWhile");Object.defineProperty(r,"takeWhile",{enumerable:!0,get:function(){return Vt.takeWhile}});var $t=e("./internal/operators/tap");Object.defineProperty(r,"tap",{enumerable:!0,get:function(){return $t.tap}});var Yt=e("./internal/operators/throttle");Object.defineProperty(r,"throttle",{enumerable:!0,get:function(){return Yt.throttle}});var Kt=e("./internal/operators/throttleTime");Object.defineProperty(r,"throttleTime",{enumerable:!0,get:function(){return Kt.throttleTime}});var Jt=e("./internal/operators/throwIfEmpty");Object.defineProperty(r,"throwIfEmpty",{enumerable:!0,get:function(){return Jt.throwIfEmpty}});var Zt=e("./internal/operators/timeInterval");Object.defineProperty(r,"timeInterval",{enumerable:!0,get:function(){return Zt.timeInterval}});var Qt=e("./internal/operators/timeout");Object.defineProperty(r,"timeout",{enumerable:!0,get:function(){return Qt.timeout}});var Xt=e("./internal/operators/timeoutWith");Object.defineProperty(r,"timeoutWith",{enumerable:!0,get:function(){return Xt.timeoutWith}});var er=e("./internal/operators/timestamp");Object.defineProperty(r,"timestamp",{enumerable:!0,get:function(){return er.timestamp}});var tr=e("./internal/operators/toArray");Object.defineProperty(r,"toArray",{enumerable:!0,get:function(){return tr.toArray}});var rr=e("./internal/operators/window");Object.defineProperty(r,"window",{enumerable:!0,get:function(){return rr.window}});var nr=e("./internal/operators/windowCount");Object.defineProperty(r,"windowCount",{enumerable:!0,get:function(){return nr.windowCount}});var ir=e("./internal/operators/windowTime");Object.defineProperty(r,"windowTime",{enumerable:!0,get:function(){return ir.windowTime}});var or=e("./internal/operators/windowToggle");Object.defineProperty(r,"windowToggle",{enumerable:!0,get:function(){return or.windowToggle}});var sr=e("./internal/operators/windowWhen");Object.defineProperty(r,"windowWhen",{enumerable:!0,get:function(){return sr.windowWhen}});var ar=e("./internal/operators/withLatestFrom");Object.defineProperty(r,"withLatestFrom",{enumerable:!0,get:function(){return ar.withLatestFrom}});var ur=e("./internal/operators/zipAll");Object.defineProperty(r,"zipAll",{enumerable:!0,get:function(){return ur.zipAll}});var cr=e("./internal/operators/zipWith");Object.defineProperty(r,"zipWith",{enumerable:!0,get:function(){return cr.zipWith}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/index.js"}],[7423,{"./Subject":7430},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncSubject=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,i=t._value,o=t.thrownError,s=t.isStopped,a=t._isComplete;r?e.error(o):(s||a)&&(n&&e.next(i),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,n=t._value;t._isComplete||(this._isComplete=!0,r&&e.prototype.next.call(this,n),e.prototype.complete.call(this))},t}(e("./Subject").Subject);r.AsyncSubject=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/AsyncSubject.js"}],[7424,{"./Subject":7430},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.BehaviorSubject=void 0;var o=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(e("./Subject").Subject);r.BehaviorSubject=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js"}],[7425,{"./observable/empty":7445,"./observable/of":7457,"./observable/throwError":7463,"./util/isFunction":7631},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.observeNotification=r.Notification=r.NotificationKind=void 0;var n=e("./observable/empty"),i=e("./observable/of"),o=e("./observable/throwError"),s=e("./util/isFunction");!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(r.NotificationKind||(r.NotificationKind={}));var a=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return u(this,e)},e.prototype.do=function(e,t,r){var n=this,i=n.kind,o=n.value,s=n.error;return"N"===i?null==e?void 0:e(o):"E"===i?null==t?void 0:t(s):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var n;return s.isFunction(null===(n=e)||void 0===n?void 0:n.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,r=e.value,s=e.error,a="N"===t?i.of(r):"E"===t?o.throwError(function(){return s}):"C"===t?n.EMPTY:0;if(!a)throw new TypeError("Unexpected notification kind "+t);return a},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",undefined,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function u(e,t){var r,n,i,o=e,s=o.kind,a=o.value,u=o.error;if("string"!=typeof s)throw new TypeError('Invalid notification, missing "kind"');"N"===s?null===(r=t.next)||void 0===r||r.call(t,a):"E"===s?null===(n=t.error)||void 0===n||n.call(t,u):null===(i=t.complete)||void 0===i||i.call(t)}r.Notification=a,r.observeNotification=u}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Notification.js"}],[7426,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t,r){return{kind:e,value:t,error:r}}Object.defineProperty(r,"__esModule",{value:!0}),r.createNotification=r.nextNotification=r.errorNotification=r.COMPLETE_NOTIFICATION=void 0,r.COMPLETE_NOTIFICATION=n("C",undefined,undefined),r.errorNotification=function(e){return n("E",undefined,e)},r.nextNotification=function(e){return n("N",e,undefined)},r.createNotification=n}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/NotificationFactories.js"}],[7427,{"./Subscriber":7431,"./Subscription":7432,"./config":7433,"./symbol/observable":7610,"./util/errorContext":7625,"./util/isFunction":7631,"./util/pipe":7642},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Observable=void 0;var n=e("./Subscriber"),i=e("./Subscription"),o=e("./symbol/observable"),s=e("./util/pipe"),a=e("./config"),u=e("./util/isFunction"),c=e("./util/errorContext"),l=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o,s=this,a=(o=e)&&o instanceof n.Subscriber||function(e){return e&&u.isFunction(e.next)&&u.isFunction(e.error)&&u.isFunction(e.complete)}(o)&&i.isSubscription(o)?e:new n.SafeSubscriber(e,t,r);return c.errorContext(function(){var e=s,t=e.operator,r=e.source;a.add(t?t.call(a,r):r?s._subscribe(a):s._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=f(t))(function(t,i){var o=new n.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e),o.unsubscribe()}},error:i,complete:t});r.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=f(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function f(e){var t;return null!==(t=null!=e?e:a.config.Promise)&&void 0!==t?t:Promise}r.Observable=l}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Observable.js"}],[7428,{"./Subject":7430,"./scheduler/dateTimestampProvider":7603},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.ReplaySubject=void 0;var o=e("./Subject"),s=e("./scheduler/dateTimestampProvider"),a=function(e){function t(t,r,n){void 0===t&&(t=Infinity),void 0===r&&(r=Infinity),void 0===n&&(n=s.dateTimestampProvider);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===Infinity,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return i(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<Infinity&&o<n.length&&n.splice(0,n.length-o),!i){for(var s=r.now(),a=0,u=1;u<n.length&&n[u]<=s;u+=2)a=u;a&&n.splice(0,a+1)}},t}(o.Subject);r.ReplaySubject=a}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/ReplaySubject.js"}],[7429,{"./scheduler/dateTimestampProvider":7603},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Scheduler=void 0;var n=e("./scheduler/dateTimestampProvider"),i=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=n.dateTimestampProvider.now,e}();r.Scheduler=i}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Scheduler.js"}],[743,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e=>t=>({encode:r=>((e,t,r)=>{const n="="===t[t.length-1],i=(1<<r)-1;let o="",s=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o})(r,t,e),decode:r=>((e,t,r)=>{const n={};for(let e=0;e<t.length;++e)n[t[e]]=e;let i=e.length;for(;"="===e[i-1];)--i;const o=new Uint8Array(i*r/8|0);let s=0,a=0,u=0;for(let t=0;t<i;++t){const i=n[e[t]];if(i===undefined)throw new SyntaxError("Invalid character "+e[t]);a=a<<r|i,s+=r,s>=8&&(s-=8,o[u++]=255&a>>s)}if(s>=r||255&a<<8-s)throw new SyntaxError("Unexpected end of data");return o})(r,t,e)})}}},{package:"@ensdomains/content-hash>multihashes>multibase",file:"node_modules/@ensdomains/content-hash/node_modules/multibase/src/rfc4648.js"}],[7430,{"./Observable":7427,"./Subscription":7432,"./util/ObjectUnsubscribedError":7616,"./util/arrRemove":7622,"./util/errorContext":7625},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.AnonymousSubject=r.Subject=void 0;var s=e("./Observable"),a=e("./Subscription"),u=e("./util/ObjectUnsubscribedError"),c=e("./util/arrRemove"),l=e("./util/errorContext"),f=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new u.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;l.errorContext(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=o(t.currentObservers),s=i.next();!s.done;s=i.next()){s.value.next(e)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;l.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;l.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?a.EMPTY_SUBSCRIPTION:(this.currentObservers=null,o.push(e),new a.Subscription(function(){t.currentObservers=null,c.arrRemove(o,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new s.Observable;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(s.Observable);r.Subject=f;var d=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:a.EMPTY_SUBSCRIPTION},t}(f);r.AnonymousSubject=d}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Subject.js"}],[7431,{"./NotificationFactories":7426,"./Subscription":7432,"./config":7433,"./scheduler/timeoutProvider":7608,"./util/errorContext":7625,"./util/isFunction":7631,"./util/noop":7640,"./util/reportUnhandledError":7643},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.EMPTY_OBSERVER=r.SafeSubscriber=r.Subscriber=void 0;var o=e("./util/isFunction"),s=e("./Subscription"),a=e("./config"),u=e("./util/reportUnhandledError"),c=e("./util/noop"),l=e("./NotificationFactories"),f=e("./scheduler/timeoutProvider"),d=e("./util/errorContext"),h=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,s.isSubscription(t)&&t.add(n)):n.destination=r.EMPTY_OBSERVER,n}return i(t,e),t.create=function(e,t,r){return new g(e,t,r)},t.prototype.next=function(e){this.isStopped?v(l.nextNotification(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?v(l.errorNotification(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?v(l.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(s.Subscription);r.Subscriber=h;var p=Function.prototype.bind;function b(e,t){return p.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){y(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){y(e)}else y(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){y(e)}},e}(),g=function(e){function t(t,r,n){var i,s,u=e.call(this)||this;o.isFunction(t)||!t?i={next:null!=t?t:undefined,error:null!=r?r:undefined,complete:null!=n?n:undefined}:u&&a.config.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return u.unsubscribe()},i={next:t.next&&b(t.next,s),error:t.error&&b(t.error,s),complete:t.complete&&b(t.complete,s)}):i=t;return u.destination=new m(i),u}return i(t,e),t}(h);function y(e){a.config.useDeprecatedSynchronousErrorHandling?d.captureError(e):u.reportUnhandledError(e)}function v(e,t){var r=a.config.onStoppedNotification;r&&f.timeoutProvider.setTimeout(function(){return r(e,t)})}r.SafeSubscriber=g,r.EMPTY_OBSERVER={closed:!0,next:c.noop,error:function(e){throw e},complete:c.noop}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Subscriber.js"}],[7432,{"./util/UnsubscriptionError":7618,"./util/arrRemove":7622,"./util/isFunction":7631},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.isSubscription=r.EMPTY_SUBSCRIPTION=r.Subscription=void 0;var s=e("./util/isFunction"),a=e("./util/UnsubscriptionError"),u=e("./util/arrRemove"),c=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,u,c;if(!this.closed){this.closed=!0;var f=this._parentage;if(f)if(this._parentage=null,Array.isArray(f))try{for(var d=n(f),h=d.next();!h.done;h=d.next()){h.value.remove(this)}}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}else f.remove(this);var p=this.initialTeardown;if(s.isFunction(p))try{p()}catch(e){c=e instanceof a.UnsubscriptionError?e.errors:[e]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var m=n(b),g=m.next();!g.done;g=m.next()){var y=g.value;try{l(y)}catch(e){c=null!=c?c:[],e instanceof a.UnsubscriptionError?c=o(o([],i(c)),i(e.errors)):c.push(e)}}}catch(e){r={error:e}}finally{try{g&&!g.done&&(u=m.return)&&u.call(m)}finally{if(r)throw r.error}}}if(c)throw new a.UnsubscriptionError(c)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)l(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&u.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&u.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function l(e){s.isFunction(e)?e():e.unsubscribe()}r.Subscription=c,r.EMPTY_SUBSCRIPTION=c.EMPTY,r.isSubscription=function(e){return e instanceof c||e&&"closed"in e&&s.isFunction(e.remove)&&s.isFunction(e.add)&&s.isFunction(e.unsubscribe)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Subscription.js"}],[7433,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.config=void 0,r.config={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/config.js"}],[7434,{"./Subscriber":7431,"./util/EmptyError":7613},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.firstValueFrom=void 0;var n=e("./util/EmptyError"),i=e("./Subscriber");r.firstValueFrom=function(e,t){var r="object"==typeof t;return new Promise(function(o,s){var a=new i.SafeSubscriber({next:function(e){o(e),a.unsubscribe()},error:s,complete:function(){r?o(t.defaultValue):s(new n.EmptyError)}});e.subscribe(a)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/firstValueFrom.js"}],[7435,{"./util/EmptyError":7613},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lastValueFrom=void 0;var n=e("./util/EmptyError");r.lastValueFrom=function(e,t){var r="object"==typeof t;return new Promise(function(i,o){var s,a=!1;e.subscribe({next:function(e){s=e,a=!0},error:o,complete:function(){a?i(s):r?i(t.defaultValue):o(new n.EmptyError)}})})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/lastValueFrom.js"}],[7436,{"../Observable":7427,"../Subscription":7432,"../operators/OperatorSubscriber":7467,"../operators/refCount":7537,"../util/lift":7638},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectableObservable=void 0;var o=e("../Observable"),s=e("../Subscription"),a=e("../operators/refCount"),u=e("../operators/OperatorSubscriber"),c=e("../util/lift"),l=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._subject=null,n._refCount=0,n._connection=null,c.hasLift(t)&&(n.lift=t.lift),n}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new s.Subscription;var r=this.getSubject();t.add(this.source.subscribe(u.createOperatorSubscriber(r,undefined,function(){e._teardown(),r.complete()},function(t){e._teardown(),r.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=s.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return a.refCount()(this)},t}(o.Observable);r.ConnectableObservable=l}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js"}],[7437,{"./bindCallbackInternals":7438},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.bindCallback=void 0;var n=e("./bindCallbackInternals");r.bindCallback=function(e,t,r){return n.bindCallbackInternals(!1,e,t,r)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js"}],[7438,{"../AsyncSubject":7423,"../Observable":7427,"../operators/observeOn":7527,"../operators/subscribeOn":7555,"../util/isScheduler":7637,"../util/mapOneOrManyArgs":7639},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.bindCallbackInternals=void 0;var o=e("../util/isScheduler"),s=e("../Observable"),a=e("../operators/subscribeOn"),u=e("../util/mapOneOrManyArgs"),c=e("../operators/observeOn"),l=e("../AsyncSubject");r.bindCallbackInternals=function e(t,r,f,d){if(f){if(!o.isScheduler(f))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r,d).apply(this,n).pipe(u.mapOneOrManyArgs(f))};d=f}return d?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r).apply(this,n).pipe(a.subscribeOn(d),c.observeOn(d))}:function(){for(var e=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=new l.AsyncSubject,c=!0;return new s.Observable(function(s){var a=u.subscribe(s);if(c){c=!1;var l=!1,f=!1;r.apply(e,i(i([],n(o)),[function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t){var n=e.shift();if(null!=n)return void u.error(n)}u.next(1<e.length?e:e[0]),f=!0,l&&u.complete()}])),f&&u.complete(),l=!0}return a})}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js"}],[7439,{"./bindCallbackInternals":7438},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.bindNodeCallback=void 0;var n=e("./bindCallbackInternals");r.bindNodeCallback=function(e,t,r){return n.bindCallbackInternals(!0,e,t,r)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js"}],[744,{buffer:5972,"web-encoding":8186},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Buffer:n}=e("buffer"),{TextEncoder:i,TextDecoder:o}=e("web-encoding"),s=new o,a=new i;t.exports={decodeText:e=>s.decode(e),encodeText:e=>a.encode(e),asBuffer:({buffer:e,byteLength:t,byteOffset:r})=>n.from(e,r,t)}}}},{package:"@ensdomains/content-hash>multihashes>multibase",file:"node_modules/@ensdomains/content-hash/node_modules/multibase/src/util.js"}],[7440,{"../Observable":7427,"../operators/OperatorSubscriber":7467,"../util/args":7619,"../util/argsArgArrayOrObject":7620,"../util/createObject":7624,"../util/executeSchedule":7626,"../util/identity":7627,"../util/mapOneOrManyArgs":7639,"./from":7447},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.combineLatestInit=r.combineLatest=void 0;var n=e("../Observable"),i=e("../util/argsArgArrayOrObject"),o=e("./from"),s=e("../util/identity"),a=e("../util/mapOneOrManyArgs"),u=e("../util/args"),c=e("../util/createObject"),l=e("../operators/OperatorSubscriber"),f=e("../util/executeSchedule");function d(e,t,r){return void 0===r&&(r=s.identity),function(n){h(t,function(){for(var i=e.length,s=new Array(i),a=i,u=i,c=function(i){h(t,function(){var c=o.from(e[i],t),f=!1;c.subscribe(l.createOperatorSubscriber(n,function(e){s[i]=e,f||(f=!0,u--),u||n.next(r(s.slice()))},function(){--a||n.complete()}))},n)},f=0;f<i;f++)c(f)},n)}}function h(e,t,r){e?f.executeSchedule(r,e,t):t()}r.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=u.popScheduler(e),l=u.popResultSelector(e),f=i.argsArgArrayOrObject(e),h=f.args,p=f.keys;if(0===h.length)return o.from([],r);var b=new n.Observable(d(h,r,p?function(e){return c.createObject(p,e)}:s.identity));return l?b.pipe(a.mapOneOrManyArgs(l)):b},r.combineLatestInit=d}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js"}],[7441,{"../operators/concatAll":7481,"../util/args":7619,"./from":7447},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.concat=void 0;var n=e("../operators/concatAll"),i=e("../util/args"),o=e("./from");r.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.concatAll()(o.from(e,i.popScheduler(e)))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/concat.js"}],[7442,{"../Observable":7427,"../Subject":7430,"./defer":7443},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.connectable=void 0;var n=e("../Subject"),i=e("../Observable"),o=e("./defer"),s={connector:function(){return new n.Subject},resetOnDisconnect:!0};r.connectable=function(e,t){void 0===t&&(t=s);var r=null,n=t.connector,a=t.resetOnDisconnect,u=void 0===a||a,c=n(),l=new i.Observable(function(e){return c.subscribe(e)});return l.connect=function(){return r&&!r.closed||(r=o.defer(function(){return e}).subscribe(c),u&&r.add(function(){return c=n()})),r},l}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/connectable.js"}],[7443,{"../Observable":7427,"./innerFrom":7453},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.defer=void 0;var n=e("../Observable"),i=e("./innerFrom");r.defer=function(e){return new n.Observable(function(t){i.innerFrom(e()).subscribe(t)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/defer.js"}],[7444,{"../../Observable":7427,"../../scheduler/animationFrameProvider":7600,"../../scheduler/performanceTimestampProvider":7606},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.animationFrames=void 0;var n=e("../../Observable"),i=e("../../scheduler/performanceTimestampProvider"),o=e("../../scheduler/animationFrameProvider");function s(e){return new n.Observable(function(t){var r=e||i.performanceTimestampProvider,n=r.now(),s=0,a=function(){t.closed||(s=o.animationFrameProvider.requestAnimationFrame(function(i){s=0;var o=r.now();t.next({timestamp:e?o:i,elapsed:o-n}),a()}))};return a(),function(){s&&o.animationFrameProvider.cancelAnimationFrame(s)}})}r.animationFrames=function(e){return e?s(e):a};var a=s()}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js"}],[7445,{"../Observable":7427},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.empty=r.EMPTY=void 0;var n=e("../Observable");r.EMPTY=new n.Observable(function(e){return e.complete()}),r.empty=function(e){return e?function(e){return new n.Observable(function(t){return e.schedule(function(){return t.complete()})})}(e):r.EMPTY}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/empty.js"}],[7446,{"../Observable":7427,"../operators/OperatorSubscriber":7467,"../util/args":7619,"../util/argsArgArrayOrObject":7620,"../util/createObject":7624,"../util/mapOneOrManyArgs":7639,"./innerFrom":7453},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.forkJoin=void 0;var n=e("../Observable"),i=e("../util/argsArgArrayOrObject"),o=e("./innerFrom"),s=e("../util/args"),a=e("../operators/OperatorSubscriber"),u=e("../util/mapOneOrManyArgs"),c=e("../util/createObject");r.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.popResultSelector(e),l=i.argsArgArrayOrObject(e),f=l.args,d=l.keys,h=new n.Observable(function(e){var t=f.length;if(t)for(var r=new Array(t),n=t,i=t,s=function(t){var s=!1;o.innerFrom(f[t]).subscribe(a.createOperatorSubscriber(e,function(e){s||(s=!0,i--),r[t]=e},function(){return n--},undefined,function(){n&&s||(i||e.next(d?c.createObject(d,r):r),e.complete())}))},u=0;u<t;u++)s(u);else e.complete()});return r?h.pipe(u.mapOneOrManyArgs(r)):h}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js"}],[7447,{"../scheduled/scheduled":7588,"./innerFrom":7453},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.from=void 0;var n=e("../scheduled/scheduled"),i=e("./innerFrom");r.from=function(e,t){return t?n.scheduled(e,t):i.innerFrom(e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/from.js"}],[7448,{"../Observable":7427,"../observable/innerFrom":7453,"../operators/mergeMap":7521,"../util/isArrayLike":7628,"../util/isFunction":7631,"../util/mapOneOrManyArgs":7639},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(r,"__esModule",{value:!0}),r.fromEvent=void 0;var i=e("../observable/innerFrom"),o=e("../Observable"),s=e("../operators/mergeMap"),a=e("../util/isArrayLike"),u=e("../util/isFunction"),c=e("../util/mapOneOrManyArgs"),l=["addListener","removeListener"],f=["addEventListener","removeEventListener"],d=["on","off"];function h(e,t){return function(r){return function(n){return e[r](t,n)}}}r.fromEvent=function e(t,r,p,b){if(u.isFunction(p)&&(b=p,p=undefined),b)return e(t,r,p).pipe(c.mapOneOrManyArgs(b));var m=n(function(e){return u.isFunction(e.addEventListener)&&u.isFunction(e.removeEventListener)}(t)?f.map(function(e){return function(n){return t[e](r,n,p)}}):function(e){return u.isFunction(e.addListener)&&u.isFunction(e.removeListener)}(t)?l.map(h(t,r)):function(e){return u.isFunction(e.on)&&u.isFunction(e.off)}(t)?d.map(h(t,r)):[],2),g=m[0],y=m[1];if(!g&&a.isArrayLike(t))return s.mergeMap(function(t){return e(t,r,p)})(i.innerFrom(t));if(!g)throw new TypeError("Invalid event target");return new o.Observable(function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return g(t),function(){return y(t)}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js"}],[7449,{"../Observable":7427,"../util/isFunction":7631,"../util/mapOneOrManyArgs":7639},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.fromEventPattern=void 0;var n=e("../Observable"),i=e("../util/isFunction"),o=e("../util/mapOneOrManyArgs");r.fromEventPattern=function e(t,r,s){return s?e(t,r).pipe(o.mapOneOrManyArgs(s)):new n.Observable(function(e){var n=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1===t.length?t[0]:t)},o=t(n);return i.isFunction(r)?function(){return r(n,o)}:undefined})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js"}],[745,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});t.exports={names:n}}}},{package:"@ensdomains/content-hash>multihashes",file:"node_modules/@ensdomains/content-hash/node_modules/multihashes/src/constants.js"}],[7450,{"../Observable":7427},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.fromSubscribable=void 0;var n=e("../Observable");r.fromSubscribable=function(e){return new n.Observable(function(t){return e.subscribe(t)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js"}],[7451,{"../scheduled/scheduleIterable":7584,"../util/identity":7627,"../util/isScheduler":7637,"./defer":7443},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.generate=void 0;var i=e("../util/identity"),o=e("../util/isScheduler"),s=e("./defer"),a=e("../scheduled/scheduleIterable");r.generate=function(e,t,r,u,c){var l,f,d,h;function p(){var e;return n(this,function(n){switch(n.label){case 0:e=h,n.label=1;case 1:return t&&!t(e)?[3,4]:[4,d(e)];case 2:n.sent(),n.label=3;case 3:return e=r(e),[3,1];case 4:return[2]}})}return 1===arguments.length?(h=(l=e).initialState,t=l.condition,r=l.iterate,f=l.resultSelector,d=void 0===f?i.identity:f,c=l.scheduler):(h=e,!u||o.isScheduler(u)?(d=i.identity,c=u):d=u),s.defer(c?function(){return a.scheduleIterable(p(),c)}:p)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/generate.js"}],[7452,{"./defer":7443},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.iif=void 0;var n=e("./defer");r.iif=function(e,t,r){return n.defer(function(){return e()?t:r})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/iif.js"}],[7453,{"../Observable":7427,"../symbol/observable":7610,"../util/isArrayLike":7628,"../util/isAsyncIterable":7629,"../util/isFunction":7631,"../util/isInteropObservable":7632,"../util/isIterable":7633,"../util/isPromise":7635,"../util/isReadableStreamLike":7636,"../util/reportUnhandledError":7643,"../util/throwUnobservableError":7644},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof s?s(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,i,(t=e[r](t)).done,t.value)})}}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.fromReadableStreamLike=r.fromAsyncIterable=r.fromIterable=r.fromPromise=r.fromArrayLike=r.fromInteropObservable=r.innerFrom=void 0;var a=e("../util/isArrayLike"),u=e("../util/isPromise"),c=e("../Observable"),l=e("../util/isInteropObservable"),f=e("../util/isAsyncIterable"),d=e("../util/throwUnobservableError"),h=e("../util/isIterable"),p=e("../util/isReadableStreamLike"),b=e("../util/isFunction"),m=e("../util/reportUnhandledError"),g=e("../symbol/observable");function y(e){return new c.Observable(function(t){var r=e[g.observable]();if(b.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function v(e){return new c.Observable(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function w(e){return new c.Observable(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,m.reportUnhandledError)})}function _(e){return new c.Observable(function(t){var r,n;try{for(var i=s(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(t.next(a),t.closed)return}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()})}function j(e){return new c.Observable(function(t){(function(e,t){var r,s,a,u;return n(this,void 0,void 0,function(){var n,c;return i(this,function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]),r=o(e),i.label=1;case 1:return[4,r.next()];case 2:if((s=i.sent()).done)return[3,4];if(n=s.value,t.next(n),t.closed)return[2];i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=i.sent(),a={error:c},[3,11];case 6:return i.trys.push([6,,9,10]),s&&!s.done&&(u=r.return)?[4,u.call(r)]:[3,8];case 7:i.sent(),i.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function k(e){return j(p.readableStreamLikeToAsyncGenerator(e))}r.innerFrom=function(e){if(e instanceof c.Observable)return e;if(null!=e){if(l.isInteropObservable(e))return y(e);if(a.isArrayLike(e))return v(e);if(u.isPromise(e))return w(e);if(f.isAsyncIterable(e))return j(e);if(h.isIterable(e))return _(e);if(p.isReadableStreamLike(e))return k(e)}throw d.createInvalidObservableTypeError(e)},r.fromInteropObservable=y,r.fromArrayLike=v,r.fromPromise=w,r.fromIterable=_,r.fromAsyncIterable=j,r.fromReadableStreamLike=k}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js"}],[7454,{"../scheduler/async":7602,"./timer":7464},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.interval=void 0;var n=e("../scheduler/async"),i=e("./timer");r.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=n.asyncScheduler),e<0&&(e=0),i.timer(e,e,t)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/interval.js"}],[7455,{"../operators/mergeAll":7519,"../util/args":7619,"./empty":7445,"./from":7447,"./innerFrom":7453},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.merge=void 0;var n=e("../operators/mergeAll"),i=e("./innerFrom"),o=e("./empty"),s=e("../util/args"),a=e("./from");r.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.popScheduler(e),u=s.popNumber(e,Infinity),c=e;return c.length?1===c.length?i.innerFrom(c[0]):n.mergeAll(u)(a.from(c,r)):o.EMPTY}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/merge.js"}],[7456,{"../Observable":7427,"../util/noop":7640},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.never=r.NEVER=void 0;var n=e("../Observable"),i=e("../util/noop");r.NEVER=new n.Observable(i.noop),r.never=function(){return r.NEVER}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/never.js"}],[7457,{"../util/args":7619,"./from":7447},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.of=void 0;var n=e("../util/args"),i=e("./from");r.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=n.popScheduler(e);return i.from(e,r)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/of.js"}],[7458,{"../Observable":7427,"../operators/OperatorSubscriber":7467,"../util/argsOrArgArray":7621,"../util/noop":7640,"./innerFrom":7453},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.onErrorResumeNext=void 0;var n=e("../Observable"),i=e("../util/argsOrArgArray"),o=e("../operators/OperatorSubscriber"),s=e("../util/noop"),a=e("./innerFrom");r.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.argsOrArgArray(e);return new n.Observable(function(e){var t=0,n=function(){if(t<r.length){var i=void 0;try{i=a.innerFrom(r[t++])}catch(e){return void n()}var u=new o.OperatorSubscriber(e,undefined,s.noop,s.noop);i.subscribe(u),u.add(n)}else e.complete()};n()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js"}],[7459,{"./from":7447},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pairs=void 0;var n=e("./from");r.pairs=function(e,t){return n.from(Object.entries(e),t)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/pairs.js"}],[746,{"./constants":745,buffer:5972,multibase:742,varint:749,"web-encoding":8186},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Buffer:n}=e("buffer"),i=e("multibase"),o=e("varint"),{names:s}=e("./constants"),{TextDecoder:a}=e("web-encoding"),u=new a,c={};for(const e in s)c[s[e]]=e;function l(e){r.decode(e)}r.names=s,r.codes=Object.freeze(c),r.toHexString=function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return(n.isBuffer(e)?e:n.from(e.buffer,e.byteOffset,e.byteLength)).toString("hex")},r.fromHexString=function(e){return n.from(e,"hex")},r.toB58String=function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return u.decode(i.encode("base58btc",e)).slice(1)},r.fromB58String=function(e){const t=e instanceof Uint8Array?u.decode(e):e;return i.decode("z"+t)},r.decode=function(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");let t=n.isBuffer(e)?e:n.from(e.buffer,e.byteOffset,e.byteLength);if(t.length<2)throw new Error("multihash too short. must be > 2 bytes.");const i=o.decode(t);if(!r.isValidCode(i))throw new Error(`multihash unknown function code: 0x${i.toString(16)}`);t=t.slice(o.decode.bytes);const s=o.decode(t);if(s<0)throw new Error(`multihash invalid length: ${s}`);if(t=t.slice(o.decode.bytes),t.length!==s)throw new Error(`multihash length inconsistent: 0x${t.toString("hex")}`);return{code:i,name:c[i],length:s,digest:t}},r.encode=function(e,t,i){if(!e||t===undefined)throw new Error("multihash encode requires at least two args: digest, code");const s=r.coerceCode(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==i&&(i=e.length),i&&e.length!==i)throw new Error("digest length should be equal to specified length.");const a=o.encode(s),u=o.encode(i),c=n.alloc(a.length+u.length+e.length);return c.set(a,0),c.set(u,a.length),c.set(e,a.length+u.length),c},r.coerceCode=function(e){let t=e;if("string"==typeof e){if(s[e]===undefined)throw new Error(`Unrecognized hash function named: ${e}`);t=s[e]}if("number"!=typeof t)throw new Error(`Hash function code should be a number. Got: ${t}`);if(c[t]===undefined&&!r.isAppCode(t))throw new Error(`Unrecognized function code: ${t}`);return t},r.isAppCode=function(e){return e>0&&e<16},r.isValidCode=function(e){return!!r.isAppCode(e)||!!c[e]},r.validate=l,r.prefix=function(e){return l(e),n.from(e.buffer,e.byteOffset,2)}}}},{package:"@ensdomains/content-hash>multihashes",file:"node_modules/@ensdomains/content-hash/node_modules/multihashes/src/index.js"}],[7460,{"../operators/filter":7503,"../util/not":7641,"./innerFrom":7453},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.partition=void 0;var n=e("../util/not"),i=e("../operators/filter"),o=e("./innerFrom");r.partition=function(e,t,r){return[i.filter(t,r)(o.innerFrom(e)),i.filter(n.not(t,r))(o.innerFrom(e))]}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/partition.js"}],[7461,{"../Observable":7427,"../operators/OperatorSubscriber":7467,"../util/argsOrArgArray":7621,"./innerFrom":7453},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.raceInit=r.race=void 0;var n=e("../Observable"),i=e("./innerFrom"),o=e("../util/argsOrArgArray"),s=e("../operators/OperatorSubscriber");function a(e){return function(t){for(var r=[],n=function(n){r.push(i.innerFrom(e[n]).subscribe(s.createOperatorSubscriber(t,function(e){if(r){for(var i=0;i<r.length;i++)i!==n&&r[i].unsubscribe();r=null}t.next(e)})))},o=0;r&&!t.closed&&o<e.length;o++)n(o)}}r.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=o.argsOrArgArray(e)).length?i.innerFrom(e[0]):new n.Observable(a(e))},r.raceInit=a}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/race.js"}],[7462,{"../Observable":7427,"./empty":7445},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.range=void 0;var n=e("../Observable"),i=e("./empty");r.range=function(e,t,r){if(null==t&&(t=e,e=0),t<=0)return i.EMPTY;var o=t+e;return new n.Observable(r?function(t){var n=e;return r.schedule(function(){n<o?(t.next(n++),this.schedule()):t.complete()})}:function(t){for(var r=e;r<o&&!t.closed;)t.next(r++);t.complete()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/range.js"}],[7463,{"../Observable":7427,"../util/isFunction":7631},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throwError=void 0;var n=e("../Observable"),i=e("../util/isFunction");r.throwError=function(e,t){var r=i.isFunction(e)?e:function(){return e},o=function(e){return e.error(r())};return new n.Observable(t?function(e){return t.schedule(o,0,e)}:o)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/throwError.js"}],[7464,{"../Observable":7427,"../scheduler/async":7602,"../util/isDate":7630,"../util/isScheduler":7637},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.timer=void 0;var n=e("../Observable"),i=e("../scheduler/async"),o=e("../util/isScheduler"),s=e("../util/isDate");r.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=i.async);var a=-1;return null!=t&&(o.isScheduler(t)?r=t:a=t),new n.Observable(function(t){var n=s.isValidDate(e)?+e-r.now():e;n<0&&(n=0);var i=0;return r.schedule(function(){t.closed||(t.next(i++),0<=a?this.schedule(undefined,a):t.complete())},n)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/timer.js"}],[7465,{"../Observable":7427,"./empty":7445,"./innerFrom":7453},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.using=void 0;var n=e("../Observable"),i=e("./innerFrom"),o=e("./empty");r.using=function(e,t){return new n.Observable(function(r){var n=e(),s=t(n);return(s?i.innerFrom(s):o.EMPTY).subscribe(r),function(){n&&n.unsubscribe()}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/using.js"}],[7466,{"../Observable":7427,"../operators/OperatorSubscriber":7467,"../util/args":7619,"../util/argsOrArgArray":7621,"./empty":7445,"./innerFrom":7453},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.zip=void 0;var o=e("../Observable"),s=e("./innerFrom"),a=e("../util/argsOrArgArray"),u=e("./empty"),c=e("../operators/OperatorSubscriber"),l=e("../util/args");r.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=l.popResultSelector(e),f=a.argsOrArgArray(e);return f.length?new o.Observable(function(e){var t=f.map(function(){return[]}),o=f.map(function(){return!1});e.add(function(){t=o=null});for(var a=function(a){s.innerFrom(f[a]).subscribe(c.createOperatorSubscriber(e,function(s){if(t[a].push(s),t.every(function(e){return e.length})){var u=t.map(function(e){return e.shift()});e.next(r?r.apply(void 0,i([],n(u))):u),t.some(function(e,t){return!e.length&&o[t]})&&e.complete()}},function(){o[a]=!0,!t[a].length&&e.complete()}))},u=0;!e.closed&&u<f.length;u++)a(u);return function(){t=o=null}}):u.EMPTY}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/zip.js"}],[7467,{"../Subscriber":7431},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.OperatorSubscriber=r.createOperatorSubscriber=void 0;var o=e("../Subscriber");r.createOperatorSubscriber=function(e,t,r,n,i){return new s(e,t,r,n,i)};var s=function(e){function t(t,r,n,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return i(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(o.Subscriber);r.OperatorSubscriber=s}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js"}],[7468,{"../observable/innerFrom":7453,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.audit=void 0;var n=e("../util/lift"),i=e("../observable/innerFrom"),o=e("./OperatorSubscriber");r.audit=function(e){return n.operate(function(t,r){var n=!1,s=null,a=null,u=!1,c=function(){if(null==a||a.unsubscribe(),a=null,n){n=!1;var e=s;s=null,r.next(e)}u&&r.complete()},l=function(){a=null,u&&r.complete()};t.subscribe(o.createOperatorSubscriber(r,function(t){n=!0,s=t,a||i.innerFrom(e(t)).subscribe(a=o.createOperatorSubscriber(r,c,l))},function(){u=!0,(!n||!a||a.closed)&&r.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/audit.js"}],[7469,{"../observable/timer":7464,"../scheduler/async":7602,"./audit":7468},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.auditTime=void 0;var n=e("../scheduler/async"),i=e("./audit"),o=e("../observable/timer");r.auditTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.audit(function(){return o.timer(e,t)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/auditTime.js"}],[747,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function e(t,r){var o,s=0,a=0,u=r=r||0,c=t.length;do{if(u>=c)throw e.bytes=0,new RangeError("Could not decode varint");o=t[u++],s+=a<28?(o&i)<<a:(o&i)*Math.pow(2,a),a+=7}while(o>=n);return e.bytes=u-r,s};var n=128,i=127}}},{package:"@ensdomains/content-hash>multihashes>varint",file:"node_modules/@ensdomains/content-hash/node_modules/varint/decode.js"}],[7470,{"../observable/innerFrom":7453,"../util/lift":7638,"../util/noop":7640,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.buffer=void 0;var n=e("../util/lift"),i=e("../util/noop"),o=e("./OperatorSubscriber"),s=e("../observable/innerFrom");r.buffer=function(e){return n.operate(function(t,r){var n=[];return t.subscribe(o.createOperatorSubscriber(r,function(e){return n.push(e)},function(){r.next(n),r.complete()})),s.innerFrom(e).subscribe(o.createOperatorSubscriber(r,function(){var e=n;n=[],r.next(e)},i.noop)),function(){n=null}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/buffer.js"}],[7471,{"../util/arrRemove":7622,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.bufferCount=void 0;var i=e("../util/lift"),o=e("./OperatorSubscriber"),s=e("../util/arrRemove");r.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,i.operate(function(r,i){var a=[],u=0;r.subscribe(o.createOperatorSubscriber(i,function(r){var o,c,l,f,d=null;u++%t===0&&a.push([]);try{for(var h=n(a),p=h.next();!p.done;p=h.next()){(g=p.value).push(r),e<=g.length&&(d=null!=d?d:[]).push(g)}}catch(e){o={error:e}}finally{try{p&&!p.done&&(c=h.return)&&c.call(h)}finally{if(o)throw o.error}}if(d)try{for(var b=n(d),m=b.next();!m.done;m=b.next()){var g=m.value;s.arrRemove(a,g),i.next(g)}}catch(e){l={error:e}}finally{try{m&&!m.done&&(f=b.return)&&f.call(b)}finally{if(l)throw l.error}}},function(){var e,t;try{for(var r=n(a),o=r.next();!o.done;o=r.next()){var s=o.value;i.next(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}i.complete()},undefined,function(){a=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js"}],[7472,{"../Subscription":7432,"../scheduler/async":7602,"../util/args":7619,"../util/arrRemove":7622,"../util/executeSchedule":7626,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.bufferTime=void 0;var i=e("../Subscription"),o=e("../util/lift"),s=e("./OperatorSubscriber"),a=e("../util/arrRemove"),u=e("../scheduler/async"),c=e("../util/args"),l=e("../util/executeSchedule");r.bufferTime=function(e){for(var t,r,f=[],d=1;d<arguments.length;d++)f[d-1]=arguments[d];var h=null!==(t=c.popScheduler(f))&&void 0!==t?t:u.asyncScheduler,p=null!==(r=f[0])&&void 0!==r?r:null,b=f[1]||Infinity;return o.operate(function(t,r){var o=[],u=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),a.arrRemove(o,e),r.next(t),u&&f()},f=function(){if(o){var t=new i.Subscription;r.add(t);var n={buffer:[],subs:t};o.push(n),l.executeSchedule(t,h,function(){return c(n)},e)}};null!==p&&p>=0?l.executeSchedule(r,h,f,p,!0):u=!0,f();var d=s.createOperatorSubscriber(r,function(e){var t,r,i=o.slice();try{for(var s=n(i),a=s.next();!a.done;a=s.next()){var u=a.value,l=u.buffer;l.push(e),b<=l.length&&c(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}},function(){for(;null==o?void 0:o.length;)r.next(o.shift().buffer);null==d||d.unsubscribe(),r.complete(),r.unsubscribe()},undefined,function(){return o=null});t.subscribe(d)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js"}],[7473,{"../Subscription":7432,"../observable/innerFrom":7453,"../util/arrRemove":7622,"../util/lift":7638,"../util/noop":7640,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.bufferToggle=void 0;var i=e("../Subscription"),o=e("../util/lift"),s=e("../observable/innerFrom"),a=e("./OperatorSubscriber"),u=e("../util/noop"),c=e("../util/arrRemove");r.bufferToggle=function(e,t){return o.operate(function(r,o){var l=[];s.innerFrom(e).subscribe(a.createOperatorSubscriber(o,function(e){var r=[];l.push(r);var n=new i.Subscription;n.add(s.innerFrom(t(e)).subscribe(a.createOperatorSubscriber(o,function(){c.arrRemove(l,r),o.next(r),n.unsubscribe()},u.noop)))},u.noop)),r.subscribe(a.createOperatorSubscriber(o,function(e){var t,r;try{for(var i=n(l),o=i.next();!o.done;o=i.next()){o.value.push(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},function(){for(;l.length>0;)o.next(l.shift());o.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js"}],[7474,{"../observable/innerFrom":7453,"../util/lift":7638,"../util/noop":7640,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.bufferWhen=void 0;var n=e("../util/lift"),i=e("../util/noop"),o=e("./OperatorSubscriber"),s=e("../observable/innerFrom");r.bufferWhen=function(e){return n.operate(function(t,r){var n=null,a=null,u=function(){null==a||a.unsubscribe();var t=n;n=[],t&&r.next(t),s.innerFrom(e()).subscribe(a=o.createOperatorSubscriber(r,u,i.noop))};u(),t.subscribe(o.createOperatorSubscriber(r,function(e){return null==n?void 0:n.push(e)},function(){n&&r.next(n),r.complete()},undefined,function(){return n=a=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js"}],[7475,{"../observable/innerFrom":7453,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.catchError=void 0;var n=e("../observable/innerFrom"),i=e("./OperatorSubscriber"),o=e("../util/lift");r.catchError=function e(t){return o.operate(function(r,o){var s,a=null,u=!1;a=r.subscribe(i.createOperatorSubscriber(o,undefined,undefined,function(i){s=n.innerFrom(t(i,e(t)(r))),a?(a.unsubscribe(),a=null,s.subscribe(o)):u=!0})),u&&(a.unsubscribe(),a=null,s.subscribe(o))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/catchError.js"}],[7476,{"./combineLatestAll":7478},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.combineAll=void 0;var n=e("./combineLatestAll");r.combineAll=n.combineLatestAll}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/combineAll.js"}],[7477,{"../observable/combineLatest":7440,"../util/args":7619,"../util/argsOrArgArray":7621,"../util/lift":7638,"../util/mapOneOrManyArgs":7639,"../util/pipe":7642},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.combineLatest=void 0;var o=e("../observable/combineLatest"),s=e("../util/lift"),a=e("../util/argsOrArgArray"),u=e("../util/mapOneOrManyArgs"),c=e("../util/pipe"),l=e("../util/args");r.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var f=l.popResultSelector(t);return f?c.pipe(e.apply(void 0,i([],n(t))),u.mapOneOrManyArgs(f)):s.operate(function(e,r){o.combineLatestInit(i([e],n(a.argsOrArgArray(t))))(r)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js"}],[7478,{"../observable/combineLatest":7440,"./joinAllInternals":7512},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.combineLatestAll=void 0;var n=e("../observable/combineLatest"),i=e("./joinAllInternals");r.combineLatestAll=function(e){return i.joinAllInternals(n.combineLatest,e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js"}],[7479,{"./combineLatest":7477},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.combineLatestWith=void 0;var o=e("./combineLatest");r.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.combineLatest.apply(void 0,i([],n(e)))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js"}],[748,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function e(t,r,s){r=r||[];var a=s=s||0;for(;t>=o;)r[s++]=255&t|n,t/=128;for(;t&i;)r[s++]=255&t|n,t>>>=7;return r[s]=0|t,e.bytes=s-a+1,r};var n=128,i=-128,o=Math.pow(2,31)}}},{package:"@ensdomains/content-hash>multihashes>varint",file:"node_modules/@ensdomains/content-hash/node_modules/varint/encode.js"}],[7480,{"../observable/from":7447,"../util/args":7619,"../util/lift":7638,"./concatAll":7481},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.concat=void 0;var o=e("../util/lift"),s=e("./concatAll"),a=e("../util/args"),u=e("../observable/from");r.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=a.popScheduler(e);return o.operate(function(t,o){s.concatAll()(u.from(i([t],n(e)),r)).subscribe(o)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/concat.js"}],[7481,{"./mergeAll":7519},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.concatAll=void 0;var n=e("./mergeAll");r.concatAll=function(){return n.mergeAll(1)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/concatAll.js"}],[7482,{"../util/isFunction":7631,"./mergeMap":7521},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.concatMap=void 0;var n=e("./mergeMap"),i=e("../util/isFunction");r.concatMap=function(e,t){return i.isFunction(t)?n.mergeMap(e,t,1):n.mergeMap(e,1)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/concatMap.js"}],[7483,{"../util/isFunction":7631,"./concatMap":7482},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.concatMapTo=void 0;var n=e("./concatMap"),i=e("../util/isFunction");r.concatMapTo=function(e,t){return i.isFunction(t)?n.concatMap(function(){return e},t):n.concatMap(function(){return e})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js"}],[7484,{"./concat":7480},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.concatWith=void 0;var o=e("./concat");r.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.concat.apply(void 0,i([],n(e)))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/concatWith.js"}],[7485,{"../Subject":7430,"../observable/fromSubscribable":7450,"../observable/innerFrom":7453,"../util/lift":7638},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.connect=void 0;var n=e("../Subject"),i=e("../observable/innerFrom"),o=e("../util/lift"),s=e("../observable/fromSubscribable"),a={connector:function(){return new n.Subject}};r.connect=function(e,t){void 0===t&&(t=a);var r=t.connector;return o.operate(function(t,n){var o=r();i.innerFrom(e(s.fromSubscribable(o))).subscribe(n),n.add(t.subscribe(o))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/connect.js"}],[7486,{"./reduce":7536},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.count=void 0;var n=e("./reduce");r.count=function(e){return n.reduce(function(t,r,n){return!e||e(r,n)?t+1:t},0)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/count.js"}],[7487,{"../observable/innerFrom":7453,"../util/lift":7638,"../util/noop":7640,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.debounce=void 0;var n=e("../util/lift"),i=e("../util/noop"),o=e("./OperatorSubscriber"),s=e("../observable/innerFrom");r.debounce=function(e){return n.operate(function(t,r){var n=!1,a=null,u=null,c=function(){if(null==u||u.unsubscribe(),u=null,n){n=!1;var e=a;a=null,r.next(e)}};t.subscribe(o.createOperatorSubscriber(r,function(t){null==u||u.unsubscribe(),n=!0,a=t,u=o.createOperatorSubscriber(r,c,i.noop),s.innerFrom(e(t)).subscribe(u)},function(){c(),r.complete()},undefined,function(){a=u=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/debounce.js"}],[7488,{"../scheduler/async":7602,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.debounceTime=void 0;var n=e("../scheduler/async"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.debounceTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.operate(function(r,n){var i=null,s=null,a=null,u=function(){if(i){i.unsubscribe(),i=null;var e=s;s=null,n.next(e)}};function c(){var r=a+e,o=t.now();if(o<r)return i=this.schedule(undefined,r-o),void n.add(i);u()}r.subscribe(o.createOperatorSubscriber(n,function(r){s=r,a=t.now(),i||(i=t.schedule(c,e),n.add(i))},function(){u(),n.complete()},undefined,function(){s=i=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js"}],[7489,{"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.defaultIfEmpty=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.defaultIfEmpty=function(e){return n.operate(function(t,r){var n=!1;t.subscribe(i.createOperatorSubscriber(r,function(e){n=!0,r.next(e)},function(){n||r.next(e),r.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js"}],[749,{"./decode.js":747,"./encode.js":748,"./length.js":750},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={encode:e("./encode.js"),decode:e("./decode.js"),encodingLength:e("./length.js")}}}},{package:"@ensdomains/content-hash>multihashes>varint",file:"node_modules/@ensdomains/content-hash/node_modules/varint/index.js"}],[7490,{"../observable/timer":7464,"../scheduler/async":7602,"./delayWhen":7491},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.delay=void 0;var n=e("../scheduler/async"),i=e("./delayWhen"),o=e("../observable/timer");r.delay=function(e,t){void 0===t&&(t=n.asyncScheduler);var r=o.timer(e,t);return i.delayWhen(function(){return r})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/delay.js"}],[7491,{"../observable/concat":7441,"../observable/innerFrom":7453,"./ignoreElements":7510,"./mapTo":7515,"./mergeMap":7521,"./take":7560},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.delayWhen=void 0;var n=e("../observable/concat"),i=e("./take"),o=e("./ignoreElements"),s=e("./mapTo"),a=e("./mergeMap"),u=e("../observable/innerFrom");r.delayWhen=function e(t,r){return r?function(s){return n.concat(r.pipe(i.take(1),o.ignoreElements()),s.pipe(e(t)))}:a.mergeMap(function(e,r){return u.innerFrom(t(e,r)).pipe(i.take(1),s.mapTo(e))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js"}],[7492,{"../Notification":7425,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.dematerialize=void 0;var n=e("../Notification"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.dematerialize=function(){return i.operate(function(e,t){e.subscribe(o.createOperatorSubscriber(t,function(e){return n.observeNotification(e,t)}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js"}],[7493,{"../observable/innerFrom":7453,"../util/lift":7638,"../util/noop":7640,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.distinct=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../util/noop"),s=e("../observable/innerFrom");r.distinct=function(e,t){return n.operate(function(r,n){var a=new Set;r.subscribe(i.createOperatorSubscriber(n,function(t){var r=e?e(t):t;a.has(r)||(a.add(r),n.next(t))})),t&&s.innerFrom(t).subscribe(i.createOperatorSubscriber(n,function(){return a.clear()},o.noop))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/distinct.js"}],[7494,{"../util/identity":7627,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.distinctUntilChanged=void 0;var n=e("../util/identity"),i=e("../util/lift"),o=e("./OperatorSubscriber");function s(e,t){return e===t}r.distinctUntilChanged=function(e,t){return void 0===t&&(t=n.identity),e=null!=e?e:s,i.operate(function(r,n){var i,s=!0;r.subscribe(o.createOperatorSubscriber(n,function(r){var o=t(r);!s&&e(i,o)||(s=!1,i=o,n.next(r))}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js"}],[7495,{"./distinctUntilChanged":7494},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.distinctUntilKeyChanged=void 0;var n=e("./distinctUntilChanged");r.distinctUntilKeyChanged=function(e,t){return n.distinctUntilChanged(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js"}],[7496,{"../util/ArgumentOutOfRangeError":7612,"./defaultIfEmpty":7489,"./filter":7503,"./take":7560,"./throwIfEmpty":7567},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.elementAt=void 0;var n=e("../util/ArgumentOutOfRangeError"),i=e("./filter"),o=e("./throwIfEmpty"),s=e("./defaultIfEmpty"),a=e("./take");r.elementAt=function(e,t){if(e<0)throw new n.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(u){return u.pipe(i.filter(function(t,r){return r===e}),a.take(1),r?s.defaultIfEmpty(t):o.throwIfEmpty(function(){return new n.ArgumentOutOfRangeError}))}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/elementAt.js"}],[7497,{"../observable/concat":7441,"../observable/of":7457},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.endWith=void 0;var o=e("../observable/concat"),s=e("../observable/of");r.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return o.concat(t,s.of.apply(void 0,i([],n(e))))}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/endWith.js"}],[7498,{"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.every=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.every=function(e,t){return n.operate(function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,function(i){e.call(t,i,o++,r)||(n.next(!1),n.complete())},function(){n.next(!0),n.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/every.js"}],[7499,{"./exhaustAll":7500},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.exhaust=void 0;var n=e("./exhaustAll");r.exhaust=n.exhaustAll}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/exhaust.js"}],[75,{"../../../shared/constants/app":8202,"../../../shared/lib/trace":8417},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){return async function(e,t,r){const{id:n,method:a}=e,u=o[a];u&&(e.traceContext=await(0,i.trace)({name:u,id:n,tags:s[a]}),await(0,i.trace)({name:i.TraceName.Middleware,id:n,parentContext:e.traceContext})),r()}};var n=e("../../../shared/constants/app"),i=e("../../../shared/lib/trace");const o={[n.MESSAGE_TYPE.ETH_SEND_TRANSACTION]:i.TraceName.Transaction,[n.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA]:i.TraceName.Signature,[n.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA_V1]:i.TraceName.Signature,[n.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA_V3]:i.TraceName.Signature,[n.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA_V4]:i.TraceName.Signature,[n.MESSAGE_TYPE.PERSONAL_SIGN]:i.TraceName.Signature},s={[n.MESSAGE_TYPE.ETH_SEND_TRANSACTION]:{source:"dapp"}}}}},{package:"$root$",file:"app/scripts/lib/createTracingMiddleware.ts"}],[750,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=Math.pow(2,7),i=Math.pow(2,14),o=Math.pow(2,21),s=Math.pow(2,28),a=Math.pow(2,35),u=Math.pow(2,42),c=Math.pow(2,49),l=Math.pow(2,56),f=Math.pow(2,63);t.exports=function(e){return e<n?1:e<i?2:e<o?3:e<s?4:e<a?5:e<u?6:e<c?7:e<l?8:e<f?9:10}}}},{package:"@ensdomains/content-hash>multihashes>varint",file:"node_modules/@ensdomains/content-hash/node_modules/varint/length.js"}],[7500,{"../util/identity":7627,"./exhaustMap":7501},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.exhaustAll=void 0;var n=e("./exhaustMap"),i=e("../util/identity");r.exhaustAll=function(){return n.exhaustMap(i.identity)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js"}],[7501,{"../observable/innerFrom":7453,"../util/lift":7638,"./OperatorSubscriber":7467,"./map":7514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.exhaustMap=void 0;var n=e("./map"),i=e("../observable/innerFrom"),o=e("../util/lift"),s=e("./OperatorSubscriber");r.exhaustMap=function e(t,r){return r?function(o){return o.pipe(e(function(e,o){return i.innerFrom(t(e,o)).pipe(n.map(function(t,n){return r(e,t,o,n)}))}))}:o.operate(function(e,r){var n=0,o=null,a=!1;e.subscribe(s.createOperatorSubscriber(r,function(e){o||(o=s.createOperatorSubscriber(r,undefined,function(){o=null,a&&r.complete()}),i.innerFrom(t(e,n++)).subscribe(o))},function(){a=!0,!o&&r.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js"}],[7502,{"../util/lift":7638,"./mergeInternals":7520},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.expand=void 0;var n=e("../util/lift"),i=e("./mergeInternals");r.expand=function(e,t,r){return void 0===t&&(t=Infinity),t=(t||0)<1?Infinity:t,n.operate(function(n,o){return i.mergeInternals(n,o,e,t,undefined,!0,r)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/expand.js"}],[7503,{"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.filter=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.filter=function(e,t){return n.operate(function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,function(r){return e.call(t,r,o++)&&n.next(r)}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/filter.js"}],[7504,{"../util/lift":7638},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.finalize=void 0;var n=e("../util/lift");r.finalize=function(e){return n.operate(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/finalize.js"}],[7505,{"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createFind=r.find=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");function o(e,t,r){var n="index"===r;return function(r,o){var s=0;r.subscribe(i.createOperatorSubscriber(o,function(i){var a=s++;e.call(t,i,a,r)&&(o.next(n?a:i),o.complete())},function(){o.next(n?-1:undefined),o.complete()}))}}r.find=function(e,t){return n.operate(o(e,t,"value"))},r.createFind=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/find.js"}],[7506,{"../util/lift":7638,"./find":7505},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.findIndex=void 0;var n=e("../util/lift"),i=e("./find");r.findIndex=function(e,t){return n.operate(i.createFind(e,t,"index"))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/findIndex.js"}],[7507,{"../util/EmptyError":7613,"../util/identity":7627,"./defaultIfEmpty":7489,"./filter":7503,"./take":7560,"./throwIfEmpty":7567},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.first=void 0;var n=e("../util/EmptyError"),i=e("./filter"),o=e("./take"),s=e("./defaultIfEmpty"),a=e("./throwIfEmpty"),u=e("../util/identity");r.first=function(e,t){var r=arguments.length>=2;return function(c){return c.pipe(e?i.filter(function(t,r){return e(t,r,c)}):u.identity,o.take(1),r?s.defaultIfEmpty(t):a.throwIfEmpty(function(){return new n.EmptyError}))}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/first.js"}],[7508,{"./mergeMap":7521},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.flatMap=void 0;var n=e("./mergeMap");r.flatMap=n.mergeMap}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/flatMap.js"}],[7509,{"../Observable":7427,"../Subject":7430,"../observable/innerFrom":7453,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.groupBy=void 0;var n=e("../Observable"),i=e("../observable/innerFrom"),o=e("../Subject"),s=e("../util/lift"),a=e("./OperatorSubscriber");r.groupBy=function(e,t,r,u){return s.operate(function(s,c){var l;t&&"function"!=typeof t?(r=t.duration,l=t.element,u=t.connector):l=t;var f=new Map,d=function(e){f.forEach(e),e(c)},h=function(e){return d(function(t){return t.error(e)})},p=0,b=!1,m=new a.OperatorSubscriber(c,function(t){try{var s=e(t),d=f.get(s);if(!d){f.set(s,d=u?u():new o.Subject);var g=(v=s,w=d,(_=new n.Observable(function(e){p++;var t=w.subscribe(e);return function(){t.unsubscribe(),0===--p&&b&&m.unsubscribe()}})).key=v,_);if(c.next(g),r){var y=a.createOperatorSubscriber(d,function(){d.complete(),null==y||y.unsubscribe()},undefined,undefined,function(){return f.delete(s)});m.add(i.innerFrom(r(g)).subscribe(y))}}d.next(l?l(t):t)}catch(e){h(e)}var v,w,_},function(){return d(function(e){return e.complete()})},h,function(){return f.clear()},function(){return b=!0,0===p});s.subscribe(m)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/groupBy.js"}],[751,{cids:6018},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("cids");r.cidForWeb=e=>{let t=new n(e);0===t.version&&(t=t.toV1());let r=t.toString("base32");if(r.length>63){const e=t.toString("base36");if(e.length<=63)return e;throw new TypeError("CID is longer than DNS limit of 63 characters and is not compatible with public gateways")}return r};r.cidV0ToV1Base32=e=>{let t=new n(e);return 0===t.version&&(t=t.toV1()),t.toString("base32")}}}},{package:"@ensdomains/content-hash",file:"node_modules/@ensdomains/content-hash/src/helpers.js"}],[7510,{"../util/lift":7638,"../util/noop":7640,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ignoreElements=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../util/noop");r.ignoreElements=function(){return n.operate(function(e,t){e.subscribe(i.createOperatorSubscriber(t,o.noop))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js"}],[7511,{"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isEmpty=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.isEmpty=function(){return n.operate(function(e,t){e.subscribe(i.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js"}],[7512,{"../util/identity":7627,"../util/mapOneOrManyArgs":7639,"../util/pipe":7642,"./mergeMap":7521,"./toArray":7572},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.joinAllInternals=void 0;var n=e("../util/identity"),i=e("../util/mapOneOrManyArgs"),o=e("../util/pipe"),s=e("./mergeMap"),a=e("./toArray");r.joinAllInternals=function(e,t){return o.pipe(a.toArray(),s.mergeMap(function(t){return e(t)}),t?i.mapOneOrManyArgs(t):n.identity)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js"}],[7513,{"../util/EmptyError":7613,"../util/identity":7627,"./defaultIfEmpty":7489,"./filter":7503,"./takeLast":7561,"./throwIfEmpty":7567},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.last=void 0;var n=e("../util/EmptyError"),i=e("./filter"),o=e("./takeLast"),s=e("./throwIfEmpty"),a=e("./defaultIfEmpty"),u=e("../util/identity");r.last=function(e,t){var r=arguments.length>=2;return function(c){return c.pipe(e?i.filter(function(t,r){return e(t,r,c)}):u.identity,o.takeLast(1),r?a.defaultIfEmpty(t):s.throwIfEmpty(function(){return new n.EmptyError}))}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/last.js"}],[7514,{"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.map=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.map=function(e,t){return n.operate(function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,function(r){n.next(e.call(t,r,o++))}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/map.js"}],[7515,{"./map":7514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mapTo=void 0;var n=e("./map");r.mapTo=function(e){return n.map(function(){return e})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mapTo.js"}],[7516,{"../Notification":7425,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.materialize=void 0;var n=e("../Notification"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.materialize=function(){return i.operate(function(e,t){e.subscribe(o.createOperatorSubscriber(t,function(e){t.next(n.Notification.createNext(e))},function(){t.next(n.Notification.createComplete()),t.complete()},function(e){t.next(n.Notification.createError(e)),t.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/materialize.js"}],[7517,{"../util/isFunction":7631,"./reduce":7536},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.max=void 0;var n=e("./reduce"),i=e("../util/isFunction");r.max=function(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/max.js"}],[7518,{"../observable/from":7447,"../util/args":7619,"../util/lift":7638,"./mergeAll":7519},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.merge=void 0;var o=e("../util/lift"),s=e("./mergeAll"),a=e("../util/args"),u=e("../observable/from");r.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=a.popScheduler(e),c=a.popNumber(e,Infinity);return o.operate(function(t,o){s.mergeAll(c)(u.from(i([t],n(e)),r)).subscribe(o)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/merge.js"}],[7519,{"../util/identity":7627,"./mergeMap":7521},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeAll=void 0;var n=e("./mergeMap"),i=e("../util/identity");r.mergeAll=function(e){return void 0===e&&(e=Infinity),n.mergeMap(i.identity,e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js"}],[752,{"./helpers":751,"./profiles":753,multicodec:7052,multihashes:746},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("multicodec"),i=e("multihashes"),{hexStringToBuffer:o,profiles:s}=e("./profiles"),{cidForWeb:a,cidV0ToV1Base32:u}=e("./helpers");t.exports={helpers:{cidForWeb:a,cidV0ToV1Base32:u},decode:function(e){const t=o(e),r=n.getCodec(t),i=n.rmPrefix(t);let a=s[r];return a||(a=s.default),a.decode(i)},fromIpfs:function(e){return this.encode("ipfs-ns",e)},fromSkylink:function(e){return this.encode("skynet-ns",e)},fromSwarm:function(e){return this.encode("swarm-ns",e)},fromArweave:function(e){return this.encode("arweave-ns",e)},encode:function(e,t){let r=s[e];r||(r=s.default);const o=r.encode(t);return i.toHexString(n.addPrefix(e,o))},getCodec:function(e){let t=o(e);return n.getCodec(t)}}}}},{package:"@ensdomains/content-hash",file:"node_modules/@ensdomains/content-hash/src/index.js"}],[7520,{"../observable/innerFrom":7453,"../util/executeSchedule":7626,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeInternals=void 0;var n=e("../observable/innerFrom"),i=e("../util/executeSchedule"),o=e("./OperatorSubscriber");r.mergeInternals=function(e,t,r,s,a,u,c,l){var f=[],d=0,h=0,p=!1,b=function(){!p||f.length||d||t.complete()},m=function(e){return d<s?g(e):f.push(e)},g=function(e){u&&t.next(e),d++;var l=!1;n.innerFrom(r(e,h++)).subscribe(o.createOperatorSubscriber(t,function(e){null==a||a(e),u?m(e):t.next(e)},function(){l=!0},undefined,function(){if(l)try{d--;for(var e=function(){var e=f.shift();c?i.executeSchedule(t,c,function(){return g(e)}):g(e)};f.length&&d<s;)e();b()}catch(e){t.error(e)}}))};return e.subscribe(o.createOperatorSubscriber(t,m,function(){p=!0,b()})),function(){null==l||l()}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js"}],[7521,{"../observable/innerFrom":7453,"../util/isFunction":7631,"../util/lift":7638,"./map":7514,"./mergeInternals":7520},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeMap=void 0;var n=e("./map"),i=e("../observable/innerFrom"),o=e("../util/lift"),s=e("./mergeInternals"),a=e("../util/isFunction");r.mergeMap=function e(t,r,u){return void 0===u&&(u=Infinity),a.isFunction(r)?e(function(e,o){return n.map(function(t,n){return r(e,t,o,n)})(i.innerFrom(t(e,o)))},u):("number"==typeof r&&(u=r),o.operate(function(e,r){return s.mergeInternals(e,r,t,u)}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"}],[7522,{"../util/isFunction":7631,"./mergeMap":7521},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeMapTo=void 0;var n=e("./mergeMap"),i=e("../util/isFunction");r.mergeMapTo=function(e,t,r){return void 0===r&&(r=Infinity),i.isFunction(t)?n.mergeMap(function(){return e},t,r):("number"==typeof t&&(r=t),n.mergeMap(function(){return e},r))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js"}],[7523,{"../util/lift":7638,"./mergeInternals":7520},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeScan=void 0;var n=e("../util/lift"),i=e("./mergeInternals");r.mergeScan=function(e,t,r){return void 0===r&&(r=Infinity),n.operate(function(n,o){var s=t;return i.mergeInternals(n,o,function(t,r){return e(s,t,r)},r,function(e){s=e},!1,undefined,function(){return s=null})})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js"}],[7524,{"./merge":7518},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.mergeWith=void 0;var o=e("./merge");r.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.merge.apply(void 0,i([],n(e)))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js"}],[7525,{"../util/isFunction":7631,"./reduce":7536},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.min=void 0;var n=e("./reduce"),i=e("../util/isFunction");r.min=function(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/min.js"}],[7526,{"../observable/ConnectableObservable":7436,"../util/isFunction":7631,"./connect":7485},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.multicast=void 0;var n=e("../observable/ConnectableObservable"),i=e("../util/isFunction"),o=e("./connect");r.multicast=function(e,t){var r=i.isFunction(e)?e:function(){return e};return i.isFunction(t)?o.connect(t,{connector:r}):function(e){return new n.ConnectableObservable(e,r)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/multicast.js"}],[7527,{"../util/executeSchedule":7626,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.observeOn=void 0;var n=e("../util/executeSchedule"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.observeOn=function(e,t){return void 0===t&&(t=0),i.operate(function(r,i){r.subscribe(o.createOperatorSubscriber(i,function(r){return n.executeSchedule(i,e,function(){return i.next(r)},t)},function(){return n.executeSchedule(i,e,function(){return i.complete()},t)},function(r){return n.executeSchedule(i,e,function(){return i.error(r)},t)}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/observeOn.js"}],[7528,{"../observable/onErrorResumeNext":7458,"../util/argsOrArgArray":7621},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.onErrorResumeNext=r.onErrorResumeNextWith=void 0;var o=e("../util/argsOrArgArray"),s=e("../observable/onErrorResumeNext");function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.argsOrArgArray(e);return function(e){return s.onErrorResumeNext.apply(void 0,i([e],n(r)))}}r.onErrorResumeNextWith=a,r.onErrorResumeNext=a}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js"}],[7529,{"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pairwise=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.pairwise=function(){return n.operate(function(e,t){var r,n=!1;e.subscribe(i.createOperatorSubscriber(t,function(e){var i=r;r=e,n&&t.next([i,e]),n=!0}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/pairwise.js"}],[753,{buffer:5972,cids:6018,"js-base64":6688,multihashes:746},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){const n=e("cids"),i=e("multihashes"),o=e("js-base64"),s=e=>{let t=e.slice(0,2),r=e.slice(2),n="";return n="0x"===t?r:e,i.fromHexString(n)},a=e=>{try{const{multihash:t}=e;if(t.length<38){const e=i.decode(t);if("identity"===e.name&&e.length<36)return!1}return!0}catch(e){return!1}},u={skynet:e=>o.toUint8Array(e),swarm:e=>{const t=i.encode(s(e),"keccak-256");return new n(1,"swarm-manifest",t).bytes},ipfs:e=>new n(e).toV1().bytes,ipns:e=>{const t=new n(e);if(!a(t))throw Error("ipns-ns allows only valid cryptographic libp2p-key identifiers, try using ED25519 pubkey instead");return new n(1,"libp2p-key",t.multihash).bytes},utf8:e=>t.from(e,"utf8"),arweave:e=>o.toUint8Array(e)},c={hexMultiHash:e=>{const t=new n(e);return i.decode(t.multihash).digest.toString("hex")},ipfs:e=>{const t=new n(e).toV1();return t.toString("libp2p-key"===t.codec?"base36":"base32")},ipns:e=>{const t=new n(e).toV1();return a(t)?t.toString("base36"):(console.warn("[ensdomains/content-hash] use of non-cryptographic identifiers in ipns-ns is deprecated and will be removed, migrate to ED25519 libp2p-key"),String(i.decode(new n(e).multihash).digest))},utf8:e=>e.toString("utf8"),base64:e=>o.fromUint8Array(e,!0)},l={"skynet-ns":{encode:u.skynet,decode:c.base64},"swarm-ns":{encode:u.swarm,decode:c.hexMultiHash},"ipfs-ns":{encode:u.ipfs,decode:c.ipfs},"ipns-ns":{encode:u.ipns,decode:c.ipns},"arweave-ns":{encode:u.arweave,decode:c.base64},default:{encode:u.utf8,decode:c.utf8}};r.hexStringToBuffer=s,r.profiles=l}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@ensdomains/content-hash",file:"node_modules/@ensdomains/content-hash/src/profiles.js"}],[7530,{"./map":7514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pluck=void 0;var n=e("./map");r.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return n.map(function(t){for(var n=t,i=0;i<r;i++){var o=null==n?void 0:n[e[i]];if(void 0===o)return undefined;n=o}return n})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/pluck.js"}],[7531,{"../Subject":7430,"./connect":7485,"./multicast":7526},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.publish=void 0;var n=e("../Subject"),i=e("./multicast"),o=e("./connect");r.publish=function(e){return e?function(t){return o.connect(e)(t)}:function(e){return i.multicast(new n.Subject)(e)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/publish.js"}],[7532,{"../BehaviorSubject":7424,"../observable/ConnectableObservable":7436},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.publishBehavior=void 0;var n=e("../BehaviorSubject"),i=e("../observable/ConnectableObservable");r.publishBehavior=function(e){return function(t){var r=new n.BehaviorSubject(e);return new i.ConnectableObservable(t,function(){return r})}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js"}],[7533,{"../AsyncSubject":7423,"../observable/ConnectableObservable":7436},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.publishLast=void 0;var n=e("../AsyncSubject"),i=e("../observable/ConnectableObservable");r.publishLast=function(){return function(e){var t=new n.AsyncSubject;return new i.ConnectableObservable(e,function(){return t})}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/publishLast.js"}],[7534,{"../ReplaySubject":7428,"../util/isFunction":7631,"./multicast":7526},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.publishReplay=void 0;var n=e("../ReplaySubject"),i=e("./multicast"),o=e("../util/isFunction");r.publishReplay=function(e,t,r,s){r&&!o.isFunction(r)&&(s=r);var a=o.isFunction(r)?r:undefined;return function(r){return i.multicast(new n.ReplaySubject(e,t,s),a)(r)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js"}],[7535,{"../observable/race":7461,"../util/identity":7627,"../util/lift":7638},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.raceWith=void 0;var o=e("../observable/race"),s=e("../util/lift"),a=e("../util/identity");r.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?s.operate(function(t,r){o.raceInit(i([t],n(e)))(r)}):a.identity}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/raceWith.js"}],[7536,{"../util/lift":7638,"./scanInternals":7545},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.reduce=void 0;var n=e("./scanInternals"),i=e("../util/lift");r.reduce=function(e,t){return i.operate(n.scanInternals(e,t,arguments.length>=2,!1,!0))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/reduce.js"}],[7537,{"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.refCount=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.refCount=function(){return n.operate(function(e,t){var r=null;e._refCount++;var n=i.createOperatorSubscriber(t,undefined,undefined,undefined,function(){if(!e||e._refCount<=0||0<--e._refCount)r=null;else{var n=e._connection,i=r;r=null,!n||i&&n!==i||n.unsubscribe(),t.unsubscribe()}});e.subscribe(n),n.closed||(r=e.connect())})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/refCount.js"}],[7538,{"../observable/empty":7445,"../observable/innerFrom":7453,"../observable/timer":7464,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.repeat=void 0;var n=e("../observable/empty"),i=e("../util/lift"),o=e("./OperatorSubscriber"),s=e("../observable/innerFrom"),a=e("../observable/timer");r.repeat=function(e){var t,r,u=Infinity;return null!=e&&("object"==typeof e?(t=e.count,u=void 0===t?Infinity:t,r=e.delay):u=e),u<=0?function(){return n.EMPTY}:i.operate(function(e,t){var n,i=0,c=function(){if(null==n||n.unsubscribe(),n=null,null!=r){var e="number"==typeof r?a.timer(r):s.innerFrom(r(i)),u=o.createOperatorSubscriber(t,function(){u.unsubscribe(),l()});e.subscribe(u)}else l()},l=function(){var r=!1;n=e.subscribe(o.createOperatorSubscriber(t,undefined,function(){++i<u?n?c():r=!0:t.complete()})),r&&c()};l()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/repeat.js"}],[7539,{"../Subject":7430,"../observable/innerFrom":7453,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.repeatWhen=void 0;var n=e("../observable/innerFrom"),i=e("../Subject"),o=e("../util/lift"),s=e("./OperatorSubscriber");r.repeatWhen=function(e){return o.operate(function(t,r){var o,a,u=!1,c=!1,l=!1,f=function(){return l&&c&&(r.complete(),!0)},d=function(){l=!1,o=t.subscribe(s.createOperatorSubscriber(r,undefined,function(){l=!0,!f()&&(a||(a=new i.Subject,n.innerFrom(e(a)).subscribe(s.createOperatorSubscriber(r,function(){o?d():u=!0},function(){c=!0,f()}))),a).next()})),u&&(o.unsubscribe(),o=null,u=!1,d())};d()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js"}],[7540,{"../observable/innerFrom":7453,"../observable/timer":7464,"../util/identity":7627,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.retry=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../util/identity"),s=e("../observable/timer"),a=e("../observable/innerFrom");r.retry=function(e){var t;void 0===e&&(e=Infinity);var r=(t=e&&"object"==typeof e?e:{count:e}).count,u=void 0===r?Infinity:r,c=t.delay,l=t.resetOnSuccess,f=void 0!==l&&l;return u<=0?o.identity:n.operate(function(e,t){var r,n=0,o=function(){var l=!1;r=e.subscribe(i.createOperatorSubscriber(t,function(e){f&&(n=0),t.next(e)},undefined,function(e){if(n++<u){var f=function(){r?(r.unsubscribe(),r=null,o()):l=!0};if(null!=c){var d="number"==typeof c?s.timer(c):a.innerFrom(c(e,n)),h=i.createOperatorSubscriber(t,function(){h.unsubscribe(),f()},function(){t.complete()});d.subscribe(h)}else f()}else t.error(e)})),l&&(r.unsubscribe(),r=null,o())};o()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/retry.js"}],[7541,{"../Subject":7430,"../observable/innerFrom":7453,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.retryWhen=void 0;var n=e("../observable/innerFrom"),i=e("../Subject"),o=e("../util/lift"),s=e("./OperatorSubscriber");r.retryWhen=function(e){return o.operate(function(t,r){var o,a,u=!1,c=function(){o=t.subscribe(s.createOperatorSubscriber(r,undefined,undefined,function(t){a||(a=new i.Subject,n.innerFrom(e(a)).subscribe(s.createOperatorSubscriber(r,function(){return o?c():u=!0}))),a&&a.next(t)})),u&&(o.unsubscribe(),o=null,u=!1,c())};c()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js"}],[7542,{"../observable/innerFrom":7453,"../util/lift":7638,"../util/noop":7640,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sample=void 0;var n=e("../observable/innerFrom"),i=e("../util/lift"),o=e("../util/noop"),s=e("./OperatorSubscriber");r.sample=function(e){return i.operate(function(t,r){var i=!1,a=null;t.subscribe(s.createOperatorSubscriber(r,function(e){i=!0,a=e})),n.innerFrom(e).subscribe(s.createOperatorSubscriber(r,function(){if(i){i=!1;var e=a;a=null,r.next(e)}},o.noop))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/sample.js"}],[7543,{"../observable/interval":7454,"../scheduler/async":7602,"./sample":7542},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sampleTime=void 0;var n=e("../scheduler/async"),i=e("./sample"),o=e("../observable/interval");r.sampleTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.sample(o.interval(e,t))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js"}],[7544,{"../util/lift":7638,"./scanInternals":7545},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scan=void 0;var n=e("../util/lift"),i=e("./scanInternals");r.scan=function(e,t){return n.operate(i.scanInternals(e,t,arguments.length>=2,!0))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/scan.js"}],[7545,{"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scanInternals=void 0;var n=e("./OperatorSubscriber");r.scanInternals=function(e,t,r,i,o){return function(s,a){var u=r,c=t,l=0;s.subscribe(n.createOperatorSubscriber(a,function(t){var r=l++;c=u?e(c,t,r):(u=!0,t),i&&a.next(c)},o&&function(){u&&a.next(c),a.complete()}))}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js"}],[7546,{"../observable/innerFrom":7453,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sequenceEqual=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../observable/innerFrom");r.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),n.operate(function(r,n){var s={buffer:[],complete:!1},a={buffer:[],complete:!1},u=function(e){n.next(e),n.complete()},c=function(e,r){var o=i.createOperatorSubscriber(n,function(n){var i=r.buffer,o=r.complete;0===i.length?o?u(!1):e.buffer.push(n):!t(n,i.shift())&&u(!1)},function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&u(0===n.length),null==o||o.unsubscribe()});return o};r.subscribe(c(s,a)),o.innerFrom(e).subscribe(c(a,s))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js"}],[7547,{"../Subject":7430,"../Subscriber":7431,"../observable/innerFrom":7453,"../util/lift":7638},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.share=void 0;var o=e("../observable/innerFrom"),s=e("../Subject"),a=e("../Subscriber"),u=e("../util/lift");function c(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];if(!0!==t){if(!1!==t){var u=new a.SafeSubscriber({next:function(){u.unsubscribe(),e()}});return o.innerFrom(t.apply(void 0,i([],n(r)))).subscribe(u)}}else e()}r.share=function(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new s.Subject}:t,n=e.resetOnError,i=void 0===n||n,l=e.resetOnComplete,f=void 0===l||l,d=e.resetOnRefCountZero,h=void 0===d||d;return function(e){var t,n,s,l=0,d=!1,p=!1,b=function(){null==n||n.unsubscribe(),n=undefined},m=function(){b(),t=s=undefined,d=p=!1},g=function(){var e=t;m(),null==e||e.unsubscribe()};return u.operate(function(e,u){l++,p||d||b();var y=s=null!=s?s:r();u.add(function(){0!==--l||p||d||(n=c(g,h))}),y.subscribe(u),!t&&l>0&&(t=new a.SafeSubscriber({next:function(e){return y.next(e)},error:function(e){p=!0,b(),n=c(m,i,e),y.error(e)},complete:function(){d=!0,b(),n=c(m,f),y.complete()}}),o.innerFrom(e).subscribe(t))})(e)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/share.js"}],[7548,{"../ReplaySubject":7428,"./share":7547},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shareReplay=void 0;var n=e("../ReplaySubject"),i=e("./share");r.shareReplay=function(e,t,r){var o,s,a,u,c=!1;return e&&"object"==typeof e?(o=e.bufferSize,u=void 0===o?Infinity:o,s=e.windowTime,t=void 0===s?Infinity:s,c=void 0!==(a=e.refCount)&&a,r=e.scheduler):u=null!=e?e:Infinity,i.share({connector:function(){return new n.ReplaySubject(u,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js"}],[7549,{"../util/EmptyError":7613,"../util/NotFoundError":7615,"../util/SequenceError":7617,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.single=void 0;var n=e("../util/EmptyError"),i=e("../util/SequenceError"),o=e("../util/NotFoundError"),s=e("../util/lift"),a=e("./OperatorSubscriber");r.single=function(e){return s.operate(function(t,r){var s,u=!1,c=!1,l=0;t.subscribe(a.createOperatorSubscriber(r,function(n){c=!0,e&&!e(n,l++,t)||(u&&r.error(new i.SequenceError("Too many matching values")),u=!0,s=n)},function(){u?(r.next(s),r.complete()):r.error(c?new o.NotFoundError("No matching values"):new n.EmptyError)}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/single.js"}],[7550,{"./filter":7503},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.skip=void 0;var n=e("./filter");r.skip=function(e){return n.filter(function(t,r){return e<=r})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/skip.js"}],[7551,{"../util/identity":7627,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.skipLast=void 0;var n=e("../util/identity"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.skipLast=function(e){return e<=0?n.identity:i.operate(function(t,r){var n=new Array(e),i=0;return t.subscribe(o.createOperatorSubscriber(r,function(t){var o=i++;if(o<e)n[o]=t;else{var s=o%e,a=n[s];n[s]=t,r.next(a)}})),function(){n=null}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/skipLast.js"}],[7552,{"../observable/innerFrom":7453,"../util/lift":7638,"../util/noop":7640,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.skipUntil=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../observable/innerFrom"),s=e("../util/noop");r.skipUntil=function(e){return n.operate(function(t,r){var n=!1,a=i.createOperatorSubscriber(r,function(){null==a||a.unsubscribe(),n=!0},s.noop);o.innerFrom(e).subscribe(a),t.subscribe(i.createOperatorSubscriber(r,function(e){return n&&r.next(e)}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js"}],[7553,{"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.skipWhile=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.skipWhile=function(e){return n.operate(function(t,r){var n=!1,o=0;t.subscribe(i.createOperatorSubscriber(r,function(t){return(n||(n=!e(t,o++)))&&r.next(t)}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js"}],[7554,{"../observable/concat":7441,"../util/args":7619,"../util/lift":7638},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.startWith=void 0;var n=e("../observable/concat"),i=e("../util/args"),o=e("../util/lift");r.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.popScheduler(e);return o.operate(function(t,i){(r?n.concat(e,t,r):n.concat(e,t)).subscribe(i)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/startWith.js"}],[7555,{"../util/lift":7638},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.subscribeOn=void 0;var n=e("../util/lift");r.subscribeOn=function(e,t){return void 0===t&&(t=0),n.operate(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js"}],[7556,{"../util/identity":7627,"./switchMap":7557},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.switchAll=void 0;var n=e("./switchMap"),i=e("../util/identity");r.switchAll=function(){return n.switchMap(i.identity)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/switchAll.js"}],[7557,{"../observable/innerFrom":7453,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.switchMap=void 0;var n=e("../observable/innerFrom"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.switchMap=function(e,t){return i.operate(function(r,i){var s=null,a=0,u=!1,c=function(){return u&&!s&&i.complete()};r.subscribe(o.createOperatorSubscriber(i,function(r){null==s||s.unsubscribe();var u=0,l=a++;n.innerFrom(e(r,l)).subscribe(s=o.createOperatorSubscriber(i,function(e){return i.next(t?t(r,e,l,u++):e)},function(){s=null,c()}))},function(){u=!0,c()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/switchMap.js"}],[7558,{"../util/isFunction":7631,"./switchMap":7557},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.switchMapTo=void 0;var n=e("./switchMap"),i=e("../util/isFunction");r.switchMapTo=function(e,t){return i.isFunction(t)?n.switchMap(function(){return e},t):n.switchMap(function(){return e})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js"}],[7559,{"../util/lift":7638,"./switchMap":7557},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.switchScan=void 0;var n=e("./switchMap"),i=e("../util/lift");r.switchScan=function(e,t){return i.operate(function(r,i){var o=t;return n.switchMap(function(t,r){return e(o,t,r)},function(e,t){return o=t,t})(r).subscribe(i),function(){o=null}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/switchScan.js"}],[7560,{"../observable/empty":7445,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.take=void 0;var n=e("../observable/empty"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.take=function(e){return e<=0?function(){return n.EMPTY}:i.operate(function(t,r){var n=0;t.subscribe(o.createOperatorSubscriber(r,function(t){++n<=e&&(r.next(t),e<=n&&r.complete())}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/take.js"}],[7561,{"../observable/empty":7445,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.takeLast=void 0;var i=e("../observable/empty"),o=e("../util/lift"),s=e("./OperatorSubscriber");r.takeLast=function(e){return e<=0?function(){return i.EMPTY}:o.operate(function(t,r){var i=[];t.subscribe(s.createOperatorSubscriber(r,function(t){i.push(t),e<i.length&&i.shift()},function(){var e,t;try{for(var o=n(i),s=o.next();!s.done;s=o.next()){var a=s.value;r.next(a)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}r.complete()},undefined,function(){i=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/takeLast.js"}],[7562,{"../observable/innerFrom":7453,"../util/lift":7638,"../util/noop":7640,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.takeUntil=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../observable/innerFrom"),s=e("../util/noop");r.takeUntil=function(e){return n.operate(function(t,r){o.innerFrom(e).subscribe(i.createOperatorSubscriber(r,function(){return r.complete()},s.noop)),!r.closed&&t.subscribe(r)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js"}],[7563,{"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.takeWhile=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.takeWhile=function(e,t){return void 0===t&&(t=!1),n.operate(function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,function(r){var i=e(r,o++);(i||t)&&n.next(r),!i&&n.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js"}],[7564,{"../util/identity":7627,"../util/isFunction":7631,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.tap=void 0;var n=e("../util/isFunction"),i=e("../util/lift"),o=e("./OperatorSubscriber"),s=e("../util/identity");r.tap=function(e,t,r){var a=n.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return a?i.operate(function(e,t){var r;null===(r=a.subscribe)||void 0===r||r.call(a);var n=!0;e.subscribe(o.createOperatorSubscriber(t,function(e){var r;null===(r=a.next)||void 0===r||r.call(a,e),t.next(e)},function(){var e;n=!1,null===(e=a.complete)||void 0===e||e.call(a),t.complete()},function(e){var r;n=!1,null===(r=a.error)||void 0===r||r.call(a,e),t.error(e)},function(){var e,t;n&&(null===(e=a.unsubscribe)||void 0===e||e.call(a)),null===(t=a.finalize)||void 0===t||t.call(a)}))}):s.identity}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/tap.js"}],[7565,{"../observable/innerFrom":7453,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throttle=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../observable/innerFrom");r.throttle=function(e,t){return n.operate(function(r,n){var s=null!=t?t:{},a=s.leading,u=void 0===a||a,c=s.trailing,l=void 0!==c&&c,f=!1,d=null,h=null,p=!1,b=function(){null==h||h.unsubscribe(),h=null,l&&(y(),p&&n.complete())},m=function(){h=null,p&&n.complete()},g=function(t){return h=o.innerFrom(e(t)).subscribe(i.createOperatorSubscriber(n,b,m))},y=function(){if(f){f=!1;var e=d;d=null,n.next(e),!p&&g(e)}};r.subscribe(i.createOperatorSubscriber(n,function(e){f=!0,d=e,(!h||h.closed)&&(u?y():g(e))},function(){p=!0,(!(l&&f&&h)||h.closed)&&n.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/throttle.js"}],[7566,{"../observable/timer":7464,"../scheduler/async":7602,"./throttle":7565},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throttleTime=void 0;var n=e("../scheduler/async"),i=e("./throttle"),o=e("../observable/timer");r.throttleTime=function(e,t,r){void 0===t&&(t=n.asyncScheduler);var s=o.timer(e,t);return i.throttle(function(){return s},r)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js"}],[7567,{"../util/EmptyError":7613,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throwIfEmpty=void 0;var n=e("../util/EmptyError"),i=e("../util/lift"),o=e("./OperatorSubscriber");function s(){return new n.EmptyError}r.throwIfEmpty=function(e){return void 0===e&&(e=s),i.operate(function(t,r){var n=!1;t.subscribe(o.createOperatorSubscriber(r,function(e){n=!0,r.next(e)},function(){return n?r.complete():r.error(e())}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js"}],[7568,{"../scheduler/async":7602,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TimeInterval=r.timeInterval=void 0;var n=e("../scheduler/async"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.timeInterval=function(e){return void 0===e&&(e=n.asyncScheduler),i.operate(function(t,r){var n=e.now();t.subscribe(o.createOperatorSubscriber(r,function(t){var i=e.now(),o=i-n;n=i,r.next(new s(t,o))}))})};var s=function(e,t){this.value=e,this.interval=t};r.TimeInterval=s}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js"}],[7569,{"../observable/innerFrom":7453,"../scheduler/async":7602,"../util/createErrorClass":7623,"../util/executeSchedule":7626,"../util/isDate":7630,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.timeout=r.TimeoutError=void 0;var n=e("../scheduler/async"),i=e("../util/isDate"),o=e("../util/lift"),s=e("../observable/innerFrom"),a=e("../util/createErrorClass"),u=e("./OperatorSubscriber"),c=e("../util/executeSchedule");function l(e){throw new r.TimeoutError(e)}r.TimeoutError=a.createErrorClass(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}),r.timeout=function(e,t){var r=i.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,a=r.first,f=r.each,d=r.with,h=void 0===d?l:d,p=r.scheduler,b=void 0===p?null!=t?t:n.asyncScheduler:p,m=r.meta,g=void 0===m?null:m;if(null==a&&null==f)throw new TypeError("No timeout provided.");return o.operate(function(e,t){var r,n,i=null,o=0,l=function(e){n=c.executeSchedule(t,b,function(){try{r.unsubscribe(),s.innerFrom(h({meta:g,lastValue:i,seen:o})).subscribe(t)}catch(e){t.error(e)}},e)};r=e.subscribe(u.createOperatorSubscriber(t,function(e){null==n||n.unsubscribe(),o++,t.next(i=e),f>0&&l(f)},undefined,undefined,function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),i=null})),!o&&l(null!=a?"number"==typeof a?a:+a-b.now():f)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/timeout.js"}],[7570,{"../scheduler/async":7602,"../util/isDate":7630,"./timeout":7569},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.timeoutWith=void 0;var n=e("../scheduler/async"),i=e("../util/isDate"),o=e("./timeout");r.timeoutWith=function(e,t,r){var s,a,u;if(r=null!=r?r:n.async,i.isValidDate(e)?s=e:"number"==typeof e&&(a=e),!t)throw new TypeError("No observable provided to switch to");if(u=function(){return t},null==s&&null==a)throw new TypeError("No timeout provided.");return o.timeout({first:s,each:a,scheduler:r,with:u})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js"}],[7571,{"../scheduler/dateTimestampProvider":7603,"./map":7514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.timestamp=void 0;var n=e("../scheduler/dateTimestampProvider"),i=e("./map");r.timestamp=function(e){return void 0===e&&(e=n.dateTimestampProvider),i.map(function(t){return{value:t,timestamp:e.now()}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/timestamp.js"}],[7572,{"../util/lift":7638,"./reduce":7536},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.toArray=void 0;var n=e("./reduce"),i=e("../util/lift"),o=function(e,t){return e.push(t),e};r.toArray=function(){return i.operate(function(e,t){n.reduce(o,[])(e).subscribe(t)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/toArray.js"}],[7573,{"../Subject":7430,"../observable/innerFrom":7453,"../util/lift":7638,"../util/noop":7640,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.window=void 0;var n=e("../Subject"),i=e("../util/lift"),o=e("./OperatorSubscriber"),s=e("../util/noop"),a=e("../observable/innerFrom");r.window=function(e){return i.operate(function(t,r){var i=new n.Subject;r.next(i.asObservable());var u=function(e){i.error(e),r.error(e)};return t.subscribe(o.createOperatorSubscriber(r,function(e){return null==i?void 0:i.next(e)},function(){i.complete(),r.complete()},u)),a.innerFrom(e).subscribe(o.createOperatorSubscriber(r,function(){i.complete(),r.next(i=new n.Subject)},s.noop,u)),function(){null==i||i.unsubscribe(),i=null}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/window.js"}],[7574,{"../Subject":7430,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.windowCount=void 0;var i=e("../Subject"),o=e("../util/lift"),s=e("./OperatorSubscriber");r.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return o.operate(function(t,o){var a=[new i.Subject],u=0;o.next(a[0].asObservable()),t.subscribe(s.createOperatorSubscriber(o,function(t){var s,c;try{for(var l=n(a),f=l.next();!f.done;f=l.next()){f.value.next(t)}}catch(e){s={error:e}}finally{try{f&&!f.done&&(c=l.return)&&c.call(l)}finally{if(s)throw s.error}}var d=u-e+1;if(d>=0&&d%r===0&&a.shift().complete(),++u%r===0){var h=new i.Subject;a.push(h),o.next(h.asObservable())}},function(){for(;a.length>0;)a.shift().complete();o.complete()},function(e){for(;a.length>0;)a.shift().error(e);o.error(e)},function(){a=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/windowCount.js"}],[7575,{"../Subject":7430,"../Subscription":7432,"../scheduler/async":7602,"../util/args":7619,"../util/arrRemove":7622,"../util/executeSchedule":7626,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.windowTime=void 0;var n=e("../Subject"),i=e("../scheduler/async"),o=e("../Subscription"),s=e("../util/lift"),a=e("./OperatorSubscriber"),u=e("../util/arrRemove"),c=e("../util/args"),l=e("../util/executeSchedule");r.windowTime=function(e){for(var t,r,f=[],d=1;d<arguments.length;d++)f[d-1]=arguments[d];var h=null!==(t=c.popScheduler(f))&&void 0!==t?t:i.asyncScheduler,p=null!==(r=f[0])&&void 0!==r?r:null,b=f[1]||Infinity;return s.operate(function(t,r){var i=[],s=!1,c=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),u.arrRemove(i,e),s&&f()},f=function(){if(i){var t=new o.Subscription;r.add(t);var s=new n.Subject,a={window:s,subs:t,seen:0};i.push(a),r.next(s.asObservable()),l.executeSchedule(t,h,function(){return c(a)},e)}};null!==p&&p>=0?l.executeSchedule(r,h,f,p,!0):s=!0,f();var d=function(e){return i.slice().forEach(e)},m=function(e){d(function(t){var r=t.window;return e(r)}),e(r),r.unsubscribe()};return t.subscribe(a.createOperatorSubscriber(r,function(e){d(function(t){t.window.next(e),b<=++t.seen&&c(t)})},function(){return m(function(e){return e.complete()})},function(e){return m(function(t){return t.error(e)})})),function(){i=null}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/windowTime.js"}],[7576,{"../Subject":7430,"../Subscription":7432,"../observable/innerFrom":7453,"../util/arrRemove":7622,"../util/lift":7638,"../util/noop":7640,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.windowToggle=void 0;var i=e("../Subject"),o=e("../Subscription"),s=e("../util/lift"),a=e("../observable/innerFrom"),u=e("./OperatorSubscriber"),c=e("../util/noop"),l=e("../util/arrRemove");r.windowToggle=function(e,t){return s.operate(function(r,s){var f=[],d=function(e){for(;0<f.length;)f.shift().error(e);s.error(e)};a.innerFrom(e).subscribe(u.createOperatorSubscriber(s,function(e){var r=new i.Subject;f.push(r);var n,h=new o.Subscription;try{n=a.innerFrom(t(e))}catch(e){return void d(e)}s.next(r.asObservable()),h.add(n.subscribe(u.createOperatorSubscriber(s,function(){l.arrRemove(f,r),r.complete(),h.unsubscribe()},c.noop,d)))},c.noop)),r.subscribe(u.createOperatorSubscriber(s,function(e){var t,r,i=f.slice();try{for(var o=n(i),s=o.next();!s.done;s=o.next()){s.value.next(e)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},function(){for(;0<f.length;)f.shift().complete();s.complete()},d,function(){for(;0<f.length;)f.shift().unsubscribe()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js"}],[7577,{"../Subject":7430,"../observable/innerFrom":7453,"../util/lift":7638,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.windowWhen=void 0;var n=e("../Subject"),i=e("../util/lift"),o=e("./OperatorSubscriber"),s=e("../observable/innerFrom");r.windowWhen=function(e){return i.operate(function(t,r){var i,a,u=function(e){i.error(e),r.error(e)},c=function(){var t;null==a||a.unsubscribe(),null==i||i.complete(),i=new n.Subject,r.next(i.asObservable());try{t=s.innerFrom(e())}catch(e){return void u(e)}t.subscribe(a=o.createOperatorSubscriber(r,c,c,u))};c(),t.subscribe(o.createOperatorSubscriber(r,function(e){return i.next(e)},function(){i.complete(),r.complete()},u,function(){null==a||a.unsubscribe(),i=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js"}],[7578,{"../observable/innerFrom":7453,"../util/args":7619,"../util/identity":7627,"../util/lift":7638,"../util/noop":7640,"./OperatorSubscriber":7467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.withLatestFrom=void 0;var o=e("../util/lift"),s=e("./OperatorSubscriber"),a=e("../observable/innerFrom"),u=e("../util/identity"),c=e("../util/noop"),l=e("../util/args");r.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=l.popResultSelector(e);return o.operate(function(t,o){for(var l=e.length,f=new Array(l),d=e.map(function(){return!1}),h=!1,p=function(t){a.innerFrom(e[t]).subscribe(s.createOperatorSubscriber(o,function(e){f[t]=e,h||d[t]||(d[t]=!0,(h=d.every(u.identity))&&(d=null))},c.noop))},b=0;b<l;b++)p(b);t.subscribe(s.createOperatorSubscriber(o,function(e){if(h){var t=i([e],n(f));o.next(r?r.apply(void 0,i([],n(t))):t)}}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js"}],[7579,{"../observable/zip":7466,"../util/lift":7638},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.zip=void 0;var o=e("../observable/zip"),s=e("../util/lift");r.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.operate(function(t,r){o.zip.apply(void 0,i([t],n(e))).subscribe(r)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/zip.js"}],[7580,{"../observable/zip":7466,"./joinAllInternals":7512},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.zipAll=void 0;var n=e("../observable/zip"),i=e("./joinAllInternals");r.zipAll=function(e){return i.joinAllInternals(n.zip,e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/zipAll.js"}],[7581,{"./zip":7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.zipWith=void 0;var o=e("./zip");r.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.zip.apply(void 0,i([],n(e)))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/zipWith.js"}],[7582,{"../Observable":7427},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleArray=void 0;var n=e("../Observable");r.scheduleArray=function(e,t){return new n.Observable(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js"}],[7583,{"../Observable":7427,"../util/executeSchedule":7626},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleAsyncIterable=void 0;var n=e("../Observable"),i=e("../util/executeSchedule");r.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new n.Observable(function(r){i.executeSchedule(r,t,function(){var n=e[Symbol.asyncIterator]();i.executeSchedule(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js"}],[7584,{"../Observable":7427,"../symbol/iterator":7609,"../util/executeSchedule":7626,"../util/isFunction":7631},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleIterable=void 0;var n=e("../Observable"),i=e("../symbol/iterator"),o=e("../util/isFunction"),s=e("../util/executeSchedule");r.scheduleIterable=function(e,t){return new n.Observable(function(r){var n;return s.executeSchedule(r,t,function(){n=e[i.iterator](),s.executeSchedule(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){return void r.error(e)}i?r.complete():r.next(t)},0,!0)}),function(){return o.isFunction(null==n?void 0:n.return)&&n.return()}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js"}],[7585,{"../observable/innerFrom":7453,"../operators/observeOn":7527,"../operators/subscribeOn":7555},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleObservable=void 0;var n=e("../observable/innerFrom"),i=e("../operators/observeOn"),o=e("../operators/subscribeOn");r.scheduleObservable=function(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js"}],[7586,{"../observable/innerFrom":7453,"../operators/observeOn":7527,"../operators/subscribeOn":7555},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.schedulePromise=void 0;var n=e("../observable/innerFrom"),i=e("../operators/observeOn"),o=e("../operators/subscribeOn");r.schedulePromise=function(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js"}],[7587,{"../util/isReadableStreamLike":7636,"./scheduleAsyncIterable":7583},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleReadableStreamLike=void 0;var n=e("./scheduleAsyncIterable"),i=e("../util/isReadableStreamLike");r.scheduleReadableStreamLike=function(e,t){return n.scheduleAsyncIterable(i.readableStreamLikeToAsyncGenerator(e),t)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js"}],[7588,{"../util/isArrayLike":7628,"../util/isAsyncIterable":7629,"../util/isInteropObservable":7632,"../util/isIterable":7633,"../util/isPromise":7635,"../util/isReadableStreamLike":7636,"../util/throwUnobservableError":7644,"./scheduleArray":7582,"./scheduleAsyncIterable":7583,"./scheduleIterable":7584,"./scheduleObservable":7585,"./schedulePromise":7586,"./scheduleReadableStreamLike":7587},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduled=void 0;var n=e("./scheduleObservable"),i=e("./schedulePromise"),o=e("./scheduleArray"),s=e("./scheduleIterable"),a=e("./scheduleAsyncIterable"),u=e("../util/isInteropObservable"),c=e("../util/isPromise"),l=e("../util/isArrayLike"),f=e("../util/isIterable"),d=e("../util/isAsyncIterable"),h=e("../util/throwUnobservableError"),p=e("../util/isReadableStreamLike"),b=e("./scheduleReadableStreamLike");r.scheduled=function(e,t){if(null!=e){if(u.isInteropObservable(e))return n.scheduleObservable(e,t);if(l.isArrayLike(e))return o.scheduleArray(e,t);if(c.isPromise(e))return i.schedulePromise(e,t);if(d.isAsyncIterable(e))return a.scheduleAsyncIterable(e,t);if(f.isIterable(e))return s.scheduleIterable(e,t);if(p.isReadableStreamLike(e))return b.scheduleReadableStreamLike(e,t)}throw h.createInvalidObservableTypeError(e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js"}],[7589,{"../Subscription":7432},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.Action=void 0;var o=function(e){function t(t,r){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(e("../Subscription").Subscription);r.Action=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/Action.js"}],[7590,{"./AsyncAction":7594,"./animationFrameProvider":7600},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AnimationFrameAction=void 0;var o=e("./AsyncAction"),s=e("./animationFrameProvider"),a=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=s.animationFrameProvider.requestAnimationFrame(function(){return t.flush(undefined)})))},t.prototype.recycleAsyncId=function(t,r,n){var i;if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var o=t.actions;return null!=r&&r===t._scheduled&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==r&&(s.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=undefined),undefined},t}(o.AsyncAction);r.AnimationFrameAction=a}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js"}],[7591,{"./AsyncScheduler":7595},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AnimationFrameScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){var t;this._active=!0,e?t=e.id:(t=this._scheduled,this._scheduled=undefined);var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(e("./AsyncScheduler").AsyncScheduler);r.AnimationFrameScheduler=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js"}],[7592,{"./AsyncAction":7594,"./immediateProvider":7604},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AsapAction=void 0;var o=e("./AsyncAction"),s=e("./immediateProvider"),a=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=s.immediateProvider.setImmediate(t.flush.bind(t,undefined))))},t.prototype.recycleAsyncId=function(t,r,n){var i;if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var o=t.actions;return null!=r&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==r&&(s.immediateProvider.clearImmediate(r),t._scheduled===r&&(t._scheduled=undefined)),undefined},t}(o.AsyncAction);r.AsapAction=a}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js"}],[7593,{"./AsyncScheduler":7595},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AsapScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=undefined;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(e("./AsyncScheduler").AsyncScheduler);r.AsapScheduler=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js"}],[7594,{"../util/arrRemove":7622,"./Action":7589,"./intervalProvider":7605},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncAction=void 0;var o=e("./Action"),s=e("./intervalProvider"),a=e("../util/arrRemove"),u=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return i(t,e),t.prototype.schedule=function(e,t){var r;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),s.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){return void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending?t:(null!=t&&s.intervalProvider.clearInterval(t),undefined)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,a.arrRemove(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(o.Action);r.AsyncAction=u}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"}],[7595,{"../Scheduler":7429},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncScheduler=void 0;var o=e("../Scheduler"),s=function(e){function t(t,r){void 0===r&&(r=o.Scheduler.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return i(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(o.Scheduler);r.AsyncScheduler=s}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js"}],[7596,{"./AsyncAction":7594},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.QueueAction=void 0;var o=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.flush(this),0)},t}(e("./AsyncAction").AsyncAction);r.QueueAction=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js"}],[7597,{"./AsyncScheduler":7595},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.QueueScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(e("./AsyncScheduler").AsyncScheduler);r.QueueScheduler=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js"}],[7598,{"../Subscription":7432,"./AsyncAction":7594,"./AsyncScheduler":7595},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.VirtualAction=r.VirtualTimeScheduler=void 0;var o=e("./AsyncAction"),s=e("../Subscription"),a=function(e){function t(t,r){void 0===t&&(t=u),void 0===r&&(r=Infinity);var n=e.call(this,t,function(){return n.frame})||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return i(t,e),t.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r[0])&&t.delay<=n&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(e("./AsyncScheduler").AsyncScheduler);r.VirtualTimeScheduler=a;var u=function(e){function t(t,r,n){void 0===n&&(n=t.index+=1);var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.index=n,i.active=!0,i.index=t.index=n,i}return i(t,e),t.prototype.schedule=function(r,n){if(void 0===n&&(n=0),Number.isFinite(n)){if(!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(r,n)}return s.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,r,n){void 0===n&&(n=0),this.delay=e.frame+n;var i=e.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,t,r){return void 0===r&&(r=0),undefined},t.prototype._execute=function(t,r){if(!0===this.active)return e.prototype._execute.call(this,t,r)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(o.AsyncAction);r.VirtualAction=u}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js"}],[7599,{"./AnimationFrameAction":7590,"./AnimationFrameScheduler":7591},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.animationFrame=r.animationFrameScheduler=void 0;var n=e("./AnimationFrameAction"),i=e("./AnimationFrameScheduler");r.animationFrameScheduler=new i.AnimationFrameScheduler(n.AnimationFrameAction),r.animationFrame=r.animationFrameScheduler}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js"}],[76,{"../../../../shared/constants/metametrics":8223,"../../../../shared/constants/start-up-errors":8242,"../../../../shared/constants/state-corruption":8243,"../../../../shared/lib/sentry":8394,"./track-critical-error":78},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CriticalErrorHandler=void 0;var n=e("../../../../shared/constants/start-up-errors"),i=e("../../../../shared/constants/state-corruption"),o=e("../../../../shared/constants/metametrics"),s=e("../../../../shared/lib/sentry"),a=e("./track-critical-error");function u(e,t,r){c(e,t),t.set(e,r)}function c(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){return e.get(d(e,t))}function d(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function h(e){const{criticalErrorType:t}=e;return Object.values(i.CriticalErrorType).includes(t)?t:i.CriticalErrorType.Other}var p=new WeakMap,b=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakSet;async function v(e){if(e?.data?.method!==i.METHOD_REPAIR_DATABASE_TIMEOUT)return;const t=e?.data?.params??{};if(!f(p,this)||!t.backup)return;for(const e of this.connectedPorts)this.removeListenersForPort(e);const r=h(t);try{(0,a.trackCriticalErrorEvent)(t.backup,o.MetaMetricsEventName.CriticalErrorRestoreWalletButtonPressed,r),await f(p,this).call(this)}catch(e){(0,s.captureException)(e)}}async function w(e){if(e?.data?.method!==n.CRITICAL_ERROR_SCREEN_VIEWED)return;const t=e?.data?.params??{};if(!t.backup)return;const r=Boolean(t.canTriggerRestore),i=h(t);(0,a.trackCriticalErrorEvent)(t.backup,o.MetaMetricsEventName.CriticalErrorScreenViewed,i,{restore_accounts_enabled:r})}r.CriticalErrorHandler=class{constructor(){var e,t;c(e=this,t=y),t.add(e),l(this,"connectedPorts",new Set),u(this,p,null),u(this,b,new WeakMap),u(this,m,e=>{d(y,this,v).call(this,e)}),u(this,g,e=>{d(y,this,w).call(this,e)})}registerPortForCriticalError({port:e,repairCallback:t}){var r,n,i;n=this,i=t,(r=p).set(d(r,n),i),this.connectedPorts.add(e),e.onMessage.addListener(f(m,this)),e.onMessage.addListener(f(g,this));const o=()=>{this.removeListenersForPort(e)};f(b,this).set(e,o),e.onDisconnect.addListener(o)}removeListenersForPort(e){e.onMessage.removeListener(f(m,this)),e.onMessage.removeListener(f(g,this));const t=f(b,this).get(e);t&&(e.onDisconnect.removeListener(t),f(b,this).delete(e)),this.connectedPorts.delete(e)}}}}},{package:"$root$",file:"app/scripts/lib/critical-error/critical-error-recovery.ts"}],[7600,{"../Subscription":7432},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.animationFrameProvider=void 0;var o=e("../Subscription");r.animationFrameProvider={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,i=r.animationFrameProvider.delegate;i&&(t=i.requestAnimationFrame,n=i.cancelAnimationFrame);var s=t(function(t){n=undefined,e(t)});return new o.Subscription(function(){return null==n?void 0:n(s)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=r.animationFrameProvider.delegate;return((null==o?void 0:o.requestAnimationFrame)||requestAnimationFrame).apply(void 0,i([],n(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=r.animationFrameProvider.delegate;return((null==o?void 0:o.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,i([],n(e)))},delegate:undefined}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js"}],[7601,{"./AsapAction":7592,"./AsapScheduler":7593},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.asap=r.asapScheduler=void 0;var n=e("./AsapAction"),i=e("./AsapScheduler");r.asapScheduler=new i.AsapScheduler(n.AsapAction),r.asap=r.asapScheduler}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/asap.js"}],[7602,{"./AsyncAction":7594,"./AsyncScheduler":7595},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.async=r.asyncScheduler=void 0;var n=e("./AsyncAction"),i=e("./AsyncScheduler");r.asyncScheduler=new i.AsyncScheduler(n.AsyncAction),r.async=r.asyncScheduler}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/async.js"}],[7603,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.dateTimestampProvider=void 0,r.dateTimestampProvider={now:function(){return(r.dateTimestampProvider.delegate||Date).now()},delegate:undefined}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js"}],[7604,{"../util/Immediate":7614},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.immediateProvider=void 0;var o=e("../util/Immediate"),s=o.Immediate.setImmediate,a=o.Immediate.clearImmediate;r.immediateProvider={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=r.immediateProvider.delegate;return((null==o?void 0:o.setImmediate)||s).apply(void 0,i([],n(e)))},clearImmediate:function(e){var t=r.immediateProvider.delegate;return((null==t?void 0:t.clearImmediate)||a)(e)},delegate:undefined}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js"}],[7605,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.intervalProvider=void 0,r.intervalProvider={setInterval:function(e,t){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var a=r.intervalProvider.delegate;return(null==a?void 0:a.setInterval)?a.setInterval.apply(a,i([e,t],n(o))):setInterval.apply(void 0,i([e,t],n(o)))},clearInterval:function(e){var t=r.intervalProvider.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:undefined}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js"}],[7606,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.performanceTimestampProvider=void 0,r.performanceTimestampProvider={now:function(){return(r.performanceTimestampProvider.delegate||performance).now()},delegate:undefined}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js"}],[7607,{"./QueueAction":7596,"./QueueScheduler":7597},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.queue=r.queueScheduler=void 0;var n=e("./QueueAction"),i=e("./QueueScheduler");r.queueScheduler=new i.QueueScheduler(n.QueueAction),r.queue=r.queueScheduler}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/queue.js"}],[7608,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.timeoutProvider=void 0,r.timeoutProvider={setTimeout:function(e,t){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var a=r.timeoutProvider.delegate;return(null==a?void 0:a.setTimeout)?a.setTimeout.apply(a,i([e,t],n(o))):setTimeout.apply(void 0,i([e,t],n(o)))},clearTimeout:function(e){var t=r.timeoutProvider.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:undefined}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js"}],[7609,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(r,"__esModule",{value:!0}),r.iterator=r.getSymbolIterator=void 0,r.getSymbolIterator=n,r.iterator=n()}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/symbol/iterator.js"}],[7610,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.observable=void 0,r.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/symbol/observable.js"}],[7611,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/types.js"}],[7612,{"./createErrorClass":7623},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ArgumentOutOfRangeError=void 0;var n=e("./createErrorClass");r.ArgumentOutOfRangeError=n.createErrorClass(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js"}],[7613,{"./createErrorClass":7623},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EmptyError=void 0;var n=e("./createErrorClass");r.EmptyError=n.createErrorClass(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/EmptyError.js"}],[7614,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TestTools=r.Immediate=void 0;var n,i=1,o={};function s(e){return e in o&&(delete o[e],!0)}r.Immediate={setImmediate:function(e){var t=i++;return o[t]=!0,n||(n=Promise.resolve()),n.then(function(){return s(t)&&e()}),t},clearImmediate:function(e){s(e)}},r.TestTools={pending:function(){return Object.keys(o).length}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/Immediate.js"}],[7615,{"./createErrorClass":7623},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.NotFoundError=void 0;var n=e("./createErrorClass");r.NotFoundError=n.createErrorClass(function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js"}],[7616,{"./createErrorClass":7623},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ObjectUnsubscribedError=void 0;var n=e("./createErrorClass");r.ObjectUnsubscribedError=n.createErrorClass(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js"}],[7617,{"./createErrorClass":7623},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SequenceError=void 0;var n=e("./createErrorClass");r.SequenceError=n.createErrorClass(function(e){return function(t){e(this),this.name="SequenceError",this.message=t}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/SequenceError.js"}],[7618,{"./createErrorClass":7623},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UnsubscriptionError=void 0;var n=e("./createErrorClass");r.UnsubscriptionError=n.createErrorClass(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js"}],[7619,{"./isFunction":7631,"./isScheduler":7637},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.popNumber=r.popScheduler=r.popResultSelector=void 0;var n=e("./isFunction"),i=e("./isScheduler");function o(e){return e[e.length-1]}r.popResultSelector=function(e){return n.isFunction(o(e))?e.pop():undefined},r.popScheduler=function(e){return i.isScheduler(o(e))?e.pop():undefined},r.popNumber=function(e,t){return"number"==typeof o(e)?e.pop():t}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/args.js"}],[7620,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.argsArgArrayOrObject=void 0;var n=Array.isArray,i=Object.getPrototypeOf,o=Object.prototype,s=Object.keys;r.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(n(t))return{args:t,keys:null};if((a=t)&&"object"==typeof a&&i(a)===o){var r=s(t);return{args:r.map(function(e){return t[e]}),keys:r}}}var a;return{args:e,keys:null}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js"}],[7621,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.argsOrArgArray=void 0;var n=Array.isArray;r.argsOrArgArray=function(e){return 1===e.length&&n(e[0])?e[0]:e}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js"}],[7622,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.arrRemove=void 0,r.arrRemove=function(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/arrRemove.js"}],[7623,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createErrorClass=void 0,r.createErrorClass=function(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js"}],[7624,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createObject=void 0,r.createObject=function(e,t){return e.reduce(function(e,r,n){return e[r]=t[n],e},{})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/createObject.js"}],[7625,{"../config":7433},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.captureError=r.errorContext=void 0;var n=e("../config"),i=null;r.errorContext=function(e){if(n.config.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,o=r.errorThrown,s=r.error;if(i=null,o)throw s}}else e()},r.captureError=function(e){n.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/errorContext.js"}],[7626,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.executeSchedule=void 0,r.executeSchedule=function(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js"}],[7627,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.identity=void 0,r.identity=function(e){return e}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/identity.js"}],[7628,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isArrayLike=void 0,r.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js"}],[7629,{"./isFunction":7631},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isAsyncIterable=void 0;var n=e("./isFunction");r.isAsyncIterable=function(e){return Symbol.asyncIterator&&n.isFunction(null==e?void 0:e[Symbol.asyncIterator])}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js"}],[7630,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isValidDate=void 0,r.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isDate.js"}],[7631,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isFunction=void 0,r.isFunction=function(e){return"function"==typeof e}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isFunction.js"}],[7632,{"../symbol/observable":7610,"./isFunction":7631},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isInteropObservable=void 0;var n=e("../symbol/observable"),i=e("./isFunction");r.isInteropObservable=function(e){return i.isFunction(e[n.observable])}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js"}],[7633,{"../symbol/iterator":7609,"./isFunction":7631},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isIterable=void 0;var n=e("../symbol/iterator"),i=e("./isFunction");r.isIterable=function(e){return i.isFunction(null==e?void 0:e[n.iterator])}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isIterable.js"}],[7634,{"../Observable":7427,"./isFunction":7631},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isObservable=void 0;var n=e("../Observable"),i=e("./isFunction");r.isObservable=function(e){return!!e&&(e instanceof n.Observable||i.isFunction(e.lift)&&i.isFunction(e.subscribe))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isObservable.js"}],[7635,{"./isFunction":7631},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isPromise=void 0;var n=e("./isFunction");r.isPromise=function(e){return n.isFunction(null==e?void 0:e.then)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isPromise.js"}],[7636,{"./isFunction":7631},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},i=this&&this.__await||function(e){return this instanceof i?(this.v=e,this):new i(e)},o=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),s=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){s.push([e,t,r,n])>1||u(e,t)})})}function u(e,t){try{(r=o[e](t)).value instanceof i?Promise.resolve(r.value.v).then(c,l):f(s[0][2],r)}catch(e){f(s[0][3],e)}var r}function c(e){u("next",e)}function l(e){u("throw",e)}function f(e,t){e(t),s.shift(),s.length&&u(s[0][0],s[0][1])}};Object.defineProperty(r,"__esModule",{value:!0}),r.isReadableStreamLike=r.readableStreamLikeToAsyncGenerator=void 0;var s=e("./isFunction");r.readableStreamLikeToAsyncGenerator=function(e){return o(this,arguments,function(){var t,r,o;return n(this,function(n){switch(n.label){case 0:t=e.getReader(),n.label=1;case 1:n.trys.push([1,,9,10]),n.label=2;case 2:return[4,i(t.read())];case 3:return r=n.sent(),o=r.value,r.done?[4,i(void 0)]:[3,5];case 4:return[2,n.sent()];case 5:return[4,i(o)];case 6:return[4,n.sent()];case 7:return n.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})},r.isReadableStreamLike=function(e){return s.isFunction(null==e?void 0:e.getReader)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js"}],[7637,{"./isFunction":7631},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isScheduler=void 0;var n=e("./isFunction");r.isScheduler=function(e){return e&&n.isFunction(e.schedule)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isScheduler.js"}],[7638,{"./isFunction":7631},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.operate=r.hasLift=void 0;var n=e("./isFunction");function i(e){return n.isFunction(null==e?void 0:e.lift)}r.hasLift=i,r.operate=function(e){return function(t){if(i(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/lift.js"}],[7639,{"../operators/map":7514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.mapOneOrManyArgs=void 0;var o=e("../operators/map"),s=Array.isArray;r.mapOneOrManyArgs=function(e){return o.map(function(t){return function(e,t){return s(t)?e.apply(void 0,i([],n(t))):e(t)}(e,t)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"}],[7640,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.noop=void 0,r.noop=function(){}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/noop.js"}],[7641,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.not=void 0,r.not=function(e,t){return function(r,n){return!e.call(t,r,n)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/not.js"}],[7642,{"./identity":7627},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pipeFromArray=r.pipe=void 0;var n=e("./identity");function i(e){return 0===e.length?n.identity:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}r.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(e)},r.pipeFromArray=i}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/pipe.js"}],[7643,{"../config":7433,"../scheduler/timeoutProvider":7608},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.reportUnhandledError=void 0;var n=e("../config"),i=e("../scheduler/timeoutProvider");r.reportUnhandledError=function(e){i.timeoutProvider.setTimeout(function(){var t=n.config.onUnhandledError;if(!t)throw e;t(e)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js"}],[7644,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createInvalidObservableTypeError=void 0,r.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js"}],[77,{"../../../../shared/constants/critical-error-restore-session":8208,"../../../../shared/lib/sentry":8394,loglevel:6897,"webextension-polyfill":8189},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.clearCriticalErrorRestoreSession=async function(e){try{await e.storage.local.remove(s.CRITICAL_ERROR_RESTORE_KEY)}catch(e){(0,o.captureException)(new Error("critical-error-restore: failed to clear restore session from storage.local",{cause:e}))}},r.handoffRestoringTabToExtension=async function(e,t){await async function(e,t){if("number"!=typeof t.tabId)return i.default.warn("critical-error-restore: missing restoring tab id; opening extension UI in a new tab"),!1;const r=new URL(t.tabUrl);let o;try{o=await n.default.tabs.get(t.tabId)}catch(e){return i.default.warn("critical-error-restore: restoring tab is gone",e),!1}if(!o.url)return i.default.warn("critical-error-restore: restoring tab has no URL"),!1;const s=new URL(o.url);if(s.origin!==r.origin||!s.pathname.endsWith("/restoring")||s.hash!==r.hash)return i.default.warn(`critical-error-restore: restoring tab URL diverged — expected ${t.tabUrl}, got ${o.url}`),!1;try{return await n.default.tabs.update(t.tabId,{active:!0,url:e.getExtensionURL()}),!0}catch(e){return i.default.warn("critical-error-restore: failed to update restoring tab; opening extension UI in a new tab",e),!1}}(e,t)||await async function(e){try{const t=e.getExtensionURL();await n.default.tabs.create({url:t,active:!0})}catch(e){i.default.error("critical-error-restore: failed to open extension UI in a new tab",e)}}(e)},r.openRestoringTabAndReload=async function(e){const t=crypto.randomUUID(),r=`${s.METAMASK_RESTORING_PAGE_URL}#${t}`,o={tabUrl:r};try{const{id:e}=await n.default.tabs.create({url:r,active:!0});"number"==typeof e&&(o.tabId=e)}catch(e){i.default.error(e)}await n.default.storage.local.set({[s.CRITICAL_ERROR_RESTORE_KEY]:o}),await e()},r.readCriticalErrorRestoreSession=async function(e){try{const t=(await e.storage.local.get(s.CRITICAL_ERROR_RESTORE_KEY))[s.CRITICAL_ERROR_RESTORE_KEY];if(!t||"object"!=typeof t)return null;const{tabUrl:r,tabId:n}=t;return"string"!=typeof r?null:{tabId:"number"==typeof n?n:undefined,tabUrl:r}}catch(e){return(0,o.captureException)(e),null}};var n=a(e("webextension-polyfill")),i=a(e("loglevel")),o=e("../../../../shared/lib/sentry"),s=e("../../../../shared/constants/critical-error-restore-session");function a(e){return e&&e.__esModule?e:{default:e}}}}},{package:"$root$",file:"app/scripts/lib/critical-error/critical-error-tab-handoff.ts"}],[7757,{events:6281,"fast-fifo":6295,"queue-tick":7256},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{EventEmitter:n}=e("events"),i=new Error("Stream was destroyed"),o=new Error("Premature close"),s=e("queue-tick"),a=e("fast-fifo"),u=134217727,c=1^u,l=2^u,f=64,d=128,h=256,p=1024,b=2048,m=4096,g=8192,y=16384,v=32768,w=16^u,_=768^u,j=134184959,k=32^u,x=2<<17,E=4<<17,T=8<<17,S=16<<17,O=32<<17,P=64<<17,A=128<<17,I=256<<17,M=512<<17,R=100532223,B=133693439,N=117440511,F=131088,C=134086639,L=4210688,U=14,D=15,z=4210702,q=16809984,H=16809999,W=1179648,G=1179663,V=Symbol.asyncIterator||Symbol("asyncIterator");class ${constructor(e,{highWaterMark:t=16384,map:r=null,mapWritable:n,byteLength:i,byteLengthWritable:o}={}){this.stream=e,this.queue=new a,this.highWaterMark=t,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||i||pe,this.map=n||r,this.afterWrite=ee.bind(this),this.afterUpdateNextTick=ne.bind(this)}get ended(){return 0!==(this.stream._duplexState&O)}push(e){return null!==this.map&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=T,!0):(this.stream._duplexState|=3145728,!1)}shift(){const e=this.queue.shift();return this.buffered-=this.byteLength(e),0===this.buffered&&(this.stream._duplexState&=133169151),e}end(e){"function"==typeof e?this.stream.once("finish",e):e!==undefined&&null!==e&&this.push(e),this.stream._duplexState=(this.stream._duplexState|M)&B}autoBatch(e,t){const r=[],n=this.stream;for(r.push(e);(n._duplexState&G)===W;)r.push(n._writableState.shift());if(0!==(n._duplexState&D))return t(null);n._writev(r,t)}update(){const e=this.stream;e._duplexState|=x;do{for(;(e._duplexState&G)===T;){const t=this.shift();e._duplexState|=33685504,e._write(t,this.afterWrite)}655360&e._duplexState||this.updateNonPrimary()}while(!0===this.continueUpdate());e._duplexState&=133955583}updateNonPrimary(){const e=this.stream;if((72482831&e._duplexState)===M)return e._duplexState=67108863&e._duplexState|131072,void e._final(Q.bind(this));4!==(e._duplexState&U)?1===(e._duplexState&H)&&(e._duplexState=(e._duplexState|F)&c,e._open(ie.bind(this))):0===(e._duplexState&q)&&(e._duplexState|=F,e._destroy(X.bind(this)))}continueUpdate(){return 0!==(this.stream._duplexState&A)&&(this.stream._duplexState&=N,!0)}updateCallback(){(17563663&this.stream._duplexState)===E?this.update():this.updateNextTick()}updateNextTick(){0===(this.stream._duplexState&A)&&(this.stream._duplexState|=A,0===(this.stream._duplexState&x)&&s(this.afterUpdateNextTick))}}class Y{constructor(e,{highWaterMark:t=16384,map:r=null,mapReadable:n,byteLength:i,byteLengthReadable:o}={}){this.stream=e,this.queue=new a,this.highWaterMark=t,this.buffered=0,this.error=null,this.pipeline=null,this.byteLength=o||i||pe,this.map=n||r,this.pipeTo=null,this.afterRead=te.bind(this),this.afterUpdateNextTick=re.bind(this)}get ended(){return 0!==(this.stream._duplexState&y)}pipe(e,t){if(null!==this.pipeTo)throw new Error("Can only pipe to one destination");if("function"!=typeof t&&(t=null),this.stream._duplexState|=512,this.pipeTo=e,this.pipeline=new J(this.stream,e,t),t&&this.stream.on("error",be),he(e))e._writableState.pipeline=this.pipeline,t&&e.on("error",be),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{const t=this.pipeline.done.bind(this.pipeline,e),r=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",t),e.on("close",r),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",Z.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){const t=this.stream;return null===e?(this.highWaterMark=0,t._duplexState=134152127&t._duplexState|1024,!1):(null!==this.map&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),t._duplexState=134152191&t._duplexState|128,this.buffered<this.highWaterMark)}shift(){const e=this.queue.shift();return this.buffered-=this.byteLength(e),0===this.buffered&&(this.stream._duplexState&=134209407),e}unshift(e){const t=[null!==this.map?this.map(e):e];for(;this.buffered>0;)t.push(this.shift());for(let e=0;e<t.length-1;e++){const r=t[e];this.buffered+=this.byteLength(r),this.queue.push(r)}this.push(t[t.length-1])}read(){const e=this.stream;if((16527&e._duplexState)===d){const t=this.shift();return null!==this.pipeTo&&!1===this.pipeTo.write(t)&&(e._duplexState&=_),0!==(e._duplexState&b)&&e.emit("data",t),t}return null}drain(){const e=this.stream;for(;(16527&e._duplexState)===d&&768&e._duplexState;){const t=this.shift();null!==this.pipeTo&&!1===this.pipeTo.write(t)&&(e._duplexState&=_),0!==(e._duplexState&b)&&e.emit("data",t)}}update(){const e=this.stream;e._duplexState|=32;do{for(this.drain();this.buffered<this.highWaterMark&&!(82975&e._duplexState);)e._duplexState|=65552,e._read(this.afterRead),this.drain();4224==(12431&e._duplexState)&&(e._duplexState|=g,e.emit("readable")),80&e._duplexState||this.updateNonPrimary()}while(!0===this.continueUpdate());e._duplexState&=k}updateNonPrimary(){const e=this.stream;(1167&e._duplexState)===p&&(e._duplexState=134216703&e._duplexState|16384,e.emit("end"),(e._duplexState&z)===L&&(e._duplexState|=4),null!==this.pipeTo&&this.pipeTo.end()),4!==(e._duplexState&U)?1===(e._duplexState&H)&&(e._duplexState=(e._duplexState|F)&c,e._open(ie.bind(this))):0===(e._duplexState&q)&&(e._duplexState|=F,e._destroy(X.bind(this)))}continueUpdate(){return 0!==(this.stream._duplexState&v)&&(this.stream._duplexState&=j,!0)}updateCallback(){(32879&this.stream._duplexState)===f?this.update():this.updateNextTick()}updateNextTick(){0===(this.stream._duplexState&v)&&(this.stream._duplexState|=v,32&this.stream._duplexState||s(this.afterUpdateNextTick))}}class K{constructor(e){this.data=null,this.afterTransform=oe.bind(e),this.afterFinal=null}}class J{constructor(e,t,r){this.from=e,this.to=t,this.afterPipe=r,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,t){t&&(this.error=t),e!==this.to||(this.to=null,null===this.from)?e!==this.from||(this.from=null,null===this.to)?(null!==this.afterPipe&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null):0===(e._duplexState&y)&&this.to.destroy(this.error||new Error("Readable stream closed before ending")):0!==(this.from._duplexState&y)&&this.pipeToFinished||this.from.destroy(this.error||new Error("Writable stream closed prematurely"))}}function Z(){this.stream._duplexState|=512,this.updateCallback()}function Q(e){const t=this.stream;e&&t.destroy(e),0===(t._duplexState&U)&&(t._duplexState|=O,t.emit("finish")),(t._duplexState&z)===L&&(t._duplexState|=4),t._duplexState&=R,0===(t._duplexState&x)?this.update():this.updateNextTick()}function X(e){const t=this.stream;e||this.error===i||(e=this.error),e&&t.emit("error",e),t._duplexState|=8,t.emit("close");const r=t._readableState,n=t._writableState;if(null!==r&&null!==r.pipeline&&r.pipeline.done(t,e),null!==n){for(;null!==n.drains&&n.drains.length>0;)n.drains.shift().resolve(!1);null!==n.pipeline&&n.pipeline.done(t,e)}}function ee(e){const t=this.stream;e&&t.destroy(e),t._duplexState&=R,null!==this.drains&&function(e){for(let t=0;t<e.length;t++)0===--e[t].writes&&(e.shift().resolve(!0),t--)}(this.drains),(3276815&t._duplexState)===S&&(t._duplexState&=132120575,(t._duplexState&P)===P&&t.emit("drain")),this.updateCallback()}function te(e){e&&this.stream.destroy(e),this.stream._duplexState&=w,this.updateCallback()}function re(){32&this.stream._duplexState||(this.stream._duplexState&=j,this.update())}function ne(){0===(this.stream._duplexState&x)&&(this.stream._duplexState&=N,this.update())}function ie(e){const t=this.stream;e&&t.destroy(e),4&t._duplexState||(17423&t._duplexState||(t._duplexState|=f),71303183&t._duplexState||(t._duplexState|=E),t.emit("open")),t._duplexState&=C,null!==t._writableState&&t._writableState.updateCallback(),null!==t._readableState&&t._readableState.updateCallback()}function oe(e,t){t!==undefined&&null!==t&&this.push(t),this._writableState.afterWrite(e)}class se extends n{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",me.bind(this)))}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return null!==this._readableState||undefined}get writable(){return null!==this._writableState||undefined}get destroyed(){return!!(8&this._duplexState)}get destroying(){return 0!==(this._duplexState&U)}destroy(e){0===(this._duplexState&U)&&(e||(e=i),this._duplexState=133693375&this._duplexState|4,null!==this._readableState&&(this._readableState.highWaterMark=0,this._readableState.error=e),null!==this._writableState&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=2,this._predestroy(),this._duplexState&=l,null!==this._readableState&&this._readableState.updateNextTick(),null!==this._writableState&&this._writableState.updateNextTick())}on(e,t){return null!==this._readableState&&("data"===e&&(this._duplexState|=2304,this._readableState.updateNextTick()),"readable"===e&&(this._duplexState|=m,this._readableState.updateNextTick())),null!==this._writableState&&"drain"===e&&(this._duplexState|=P,this._writableState.updateNextTick()),super.on(e,t)}}class ae extends se{constructor(e){super(e),this._duplexState|=4194305,this._readableState=new Y(this,e),e&&(e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick())}_read(e){e(null)}pipe(e,t){return this._readableState.updateNextTick(),this._readableState.pipe(e,t),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTick(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTick(),this._readableState.unshift(e)}resume(){return this._duplexState|=h,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=134217471,this}static _fromAsyncIterator(e,t){let r;const n=new ae({...t,read(t){e.next().then(i).then(t.bind(null,null)).catch(t)},predestroy(){r=e.return()},destroy(e){if(!r)return e(null);r.then(e.bind(null,null)).catch(e)}});return n;function i(e){e.done?n.push(null):n.push(e.value)}}static from(e,t){if(he(r=e)&&r.readable)return e;var r;if(e[V])return this._fromAsyncIterator(e[V](),t);Array.isArray(e)||(e=e===undefined?[]:[e]);let n=0;return new ae({...t,read(t){this.push(n===e.length?null:e[n++]),t(null)}})}static isBackpressured(e){return!!(17422&e._duplexState)||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return 0===(e._duplexState&h)}[V](){const e=this;let t=null,r=null,n=null;return this.on("error",e=>{t=e}),this.on("readable",function(){null!==r&&o(e.read())}),this.on("close",function(){null!==r&&o(null)}),{[V](){return this},next:()=>new Promise(function(t,i){r=t,n=i;const s=e.read();null!==s?o(s):8&e._duplexState&&o(null)}),return:()=>s(null),throw:e=>s(e)};function o(o){null!==n&&(t?n(t):null===o&&0===(e._duplexState&y)?n(i):r({value:o,done:null===o}),n=r=null)}function s(t){return e.destroy(t),new Promise((r,n)=>{if(8&e._duplexState)return r({value:undefined,done:!0});e.once("close",function(){t?n(t):r({value:undefined,done:!0})})})}}}class ue extends ae{constructor(e){super(e),this._duplexState=1,this._writableState=new $(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}}class ce extends ue{constructor(e){super(e),this._transformState=new K(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,t){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(null!==this._transformState.data){const t=this._transformState.data;this._transformState.data=null,e(null),this._transform(t,this._transformState.afterTransform)}else e(null)}_transform(e,t){t(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(le.bind(this))}}function le(e,t){const r=this._transformState.afterFinal;if(e)return r(e);null!==t&&t!==undefined&&this.push(t),this.push(null),r(null)}function fe(e,...t){const r=Array.isArray(e)?[...e,...t]:[e,...t],n=r.length&&"function"==typeof r[r.length-1]?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let i=r[0],s=null,a=null;for(let e=1;e<r.length;e++)s=r[e],he(i)?i.pipe(s,c):(u(i,!0,e>1,c),i.pipe(s)),i=s;if(n){let e=!1;const t=he(s)||!(!s._writableState||!s._writableState.autoDestroy);s.on("error",e=>{null===a&&(a=e)}),s.on("finish",()=>{e=!0,t||n(a)}),t&&s.on("close",()=>n(a||(e?null:o)))}return s;function u(e,t,r,n){e.on("error",n),e.on("close",function(){if(t&&e._readableState&&!e._readableState.ended)return n(o);if(r&&e._writableState&&!e._writableState.ended)return n(o)})}function c(e){if(e&&!a){a=e;for(const t of r)t.destroy(e)}}}function de(e){return!!e._readableState||!!e._writableState}function he(e){return"number"==typeof e._duplexState&&de(e)}function pe(e){return function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.byteLength}(e)?e.byteLength:1024}function be(){}function me(){this.destroy(new Error("Stream aborted."))}t.exports={pipeline:fe,pipelinePromise:function(...e){return new Promise((t,r)=>fe(...e,e=>{if(e)return r(e);t()}))},isStream:de,isStreamx:he,getStreamError:function(e){const t=e._readableState&&e._readableState.error||e._writableState&&e._writableState.error;return t===i?null:t},Stream:se,Writable:class extends se{constructor(e){super(e),this._duplexState|=16385,this._writableState=new $(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}static isBackpressured(e){return!!(73400334&e._duplexState)}static drained(e){if(e.destroyed)return Promise.resolve(!1);const t=e._writableState,r=t.queue.length+(e._duplexState&I?1:0);return 0===r?Promise.resolve(!0):(null===t.drains&&(t.drains=[]),new Promise(e=>{t.drains.push({writes:r,resolve:e})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Readable:ae,Duplex:ue,Transform:ce,PassThrough:class extends ce{}}}}},{package:"@metamask/snaps-controllers>tar-stream>streamx",file:"node_modules/streamx/index.js"}],[7763,{fs:5924},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{t.exports=e("fs").constants||n}catch{t.exports=n}}}},{package:"@metamask/snaps-controllers>tar-stream",file:"node_modules/tar-stream/constants.js"}],[7764,{"./headers":7765,b4a:5904,"fast-fifo":6295,streamx:7757},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Writable:n,Readable:i,getStreamError:o}=e("streamx"),s=e("fast-fifo"),a=e("b4a"),u=e("./headers"),c=a.alloc(0);class l{constructor(){this.buffered=0,this.shifted=0,this.queue=new s,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return 0===this._buffered?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(0===e)return c;let t=this._next(e);if(e===t.byteLength)return t;const r=[t];for(;(e-=t.byteLength)>0;)t=this._next(e),r.push(t);return a.concat(r)}_next(e){const t=this.queue.peek(),r=t.byteLength-this._offset;if(e>=r){const e=this._offset?t.subarray(this._offset,t.byteLength):t;return this.queue.shift(),this._offset=0,this.buffered-=r,this.shifted+=r,e}return this.buffered-=e,this.shifted+=e,t.subarray(this._offset,this._offset+=e)}}class f extends i{constructor(e,t,r){super(),this.header=t,this.offset=r,this._parent=e}_read(e){0===this.header.size&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(o(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=p(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}}class d extends n{constructor(e){super(e),e||(e={}),this._buffer=new l,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=h,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e)return this.destroy(e),void this._continueWrite(e);this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=u.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),0===this._header.size||"directory"===this._header.type?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=u.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=u.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=u.decodePax(e);break;case"pax-header":this._pax=null===this._paxGlobal?u.decodePax(e):Object.assign({},this._paxGlobal,u.decodePax(e))}}_consumeLongHeader(){this._longHeader=!1,this._missing=p(this._header.size);const e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(e){return this._continueWrite(e),!1}return!0}_consumeStream(){const e=this._buffer.shiftFirst(this._missing);if(null===e)return!1;this._missing-=e.byteLength;const t=this._stream.push(e);return 0===this._missing?(this._stream.push(null),t&&this._stream._detach(),t&&!1===this._locked):t}_createStream(){return new f(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(null!==this._stream){if(!1===this._consumeStream())return;continue}if(!0===this._longHeader){if(this._missing>this._buffer.buffered)break;if(!1===this._consumeLongHeader())return!1;continue}const e=this._buffer.shiftFirst(this._missing);null!==e&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(null!==this._stream||!1===this._consumeHeader())return}this._continueWrite(null)}_continueWrite(e){const t=this._callback;this._callback=h,t(e)}_write(e,t){this._callback=t,this._buffer.push(e),this._update()}_final(e){this._finished=0===this._missing&&0===this._buffer.buffered,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(o(this)),e(null)}[Symbol.asyncIterator](){let e=null,t=null,r=null,n=null,i=null;const o=this;return this.on("entry",function(e,o,s){i=s,o.on("error",h),t?(t({value:o,done:!1}),t=r=null):n=o}),this.on("error",t=>{e=t}),this.on("close",function(){if(s(e),!t)return;e?r(e):t({value:undefined,done:!0});t=r=null}),{[Symbol.asyncIterator](){return this},next:()=>new Promise(a),return:()=>u(null),throw:e=>u(e)};function s(e){if(!i)return;const t=i;i=null,t(e)}function a(i,a){return e?a(e):n?(i({value:n,done:!1}),void(n=null)):(t=i,r=a,s(null),void(o._finished&&t&&(t({value:undefined,done:!0}),t=r=null)))}function u(e){return o.destroy(e),s(e),new Promise((t,r)=>{if(o.destroyed)return t({value:undefined,done:!0});o.once("close",function(){e?r(e):t({value:undefined,done:!0})})})}}}function h(){}function p(e){return(e&=511)&&512-e}t.exports=function(e){return new d(e)}}}},{package:"@metamask/snaps-controllers>tar-stream",file:"node_modules/tar-stream/extract.js"}],[7765,{b4a:5904},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("b4a"),i="0".charCodeAt(0),o=n.from([117,115,116,97,114,0]),s=n.from([i,i]),a=n.from([117,115,116,97,114,32]),u=n.from([32,0]),c=257,l=263;function f(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n}function d(e){let t=256;for(let r=0;r<148;r++)t+=e[r];for(let r=156;r<512;r++)t+=e[r];return t}function h(e,t){return(e=e.toString(8)).length>t?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "}function p(e,t,r){if(128&(e=e.subarray(t,t+r))[t=0])return function(e){let t;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}const r=[];let n;for(n=e.length-1;n>0;n--){const i=e[n];t?r.push(i):r.push(255-i)}let i=0;const o=r.length;for(n=0;n<o;n++)i+=r[n]*Math.pow(256,n);return t?i:-1*i}(e);{for(;t<e.length&&32===e[t];)t++;const r=(i=f(e,32,t,e.length),o=e.length,s=e.length,"number"!=typeof i?s:(i=~~i)>=o?o:i>=0||(i+=o)>=0?i:0);for(;t<r&&0===e[t];)t++;return r===t?0:parseInt(n.toString(e.subarray(t,r)),8)}var i,o,s}function b(e,t,r,i){return n.toString(e.subarray(t,f(e,0,t,t+r)),i)}function m(e){const t=n.byteLength(e);let r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e}r.decodeLongPath=function(e,t){return b(e,0,e.length,t)},r.encodePax=function(e){let t="";e.name&&(t+=m(" path="+e.name+"\n")),e.linkname&&(t+=m(" linkpath="+e.linkname+"\n"));const r=e.pax;if(r)for(const e in r)t+=m(" "+e+"="+r[e]+"\n");return n.from(t)},r.decodePax=function(e){const t={};for(;e.length;){let r=0;for(;r<e.length&&32!==e[r];)r++;const i=parseInt(n.toString(e.subarray(0,r)),10);if(!i)return t;const o=n.toString(e.subarray(r+1,i-1)),s=o.indexOf("=");if(-1===s)return t;t[o.slice(0,s)]=o.slice(s+1),e=e.subarray(i)}return t},r.encode=function(e){const t=n.alloc(512);let r=e.name,a="";if(5===e.typeflag&&"/"!==r[r.length-1]&&(r+="/"),n.byteLength(r)!==r.length)return null;for(;n.byteLength(r)>100;){const e=r.indexOf("/");if(-1===e)return null;a+=a?"/"+r.slice(0,e):r.slice(0,e),r=r.slice(e+1)}return n.byteLength(r)>100||n.byteLength(a)>155||e.linkname&&n.byteLength(e.linkname)>100?null:(n.write(t,r),n.write(t,h(4095&e.mode,6),100),n.write(t,h(e.uid,6),108),n.write(t,h(e.gid,6),116),function(e,t,r){e.toString(8).length>11?function(e,t,r){t[r]=128;for(let n=11;n>0;n--)t[r+n]=255&e,e=Math.floor(e/256)}(e,t,r):n.write(t,h(e,11),r)}(e.size,t,124),n.write(t,h(e.mtime.getTime()/1e3|0,11),136),t[156]=i+function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(e.type),e.linkname&&n.write(t,e.linkname,157),n.copy(o,t,c),n.copy(s,t,263),e.uname&&n.write(t,e.uname,265),e.gname&&n.write(t,e.gname,297),n.write(t,h(e.devmajor||0,6),329),n.write(t,h(e.devminor||0,6),337),a&&n.write(t,a,345),n.write(t,h(d(t),6),148),t)},r.decode=function(e,t,r){let s=0===e[156]?0:e[156]-i,f=b(e,0,100,t);const h=p(e,100,8),m=p(e,108,8),g=p(e,116,8),y=p(e,124,12),v=p(e,136,12),w=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(s),_=0===e[157]?null:b(e,157,100,t),j=b(e,265,32),k=b(e,297,32),x=p(e,329,8),E=p(e,337,8),T=d(e);if(256===T)return null;if(T!==p(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(function(e){return n.equals(o,e.subarray(c,263))}(e))e[345]&&(f=b(e,345,155,t)+"/"+f);else if(function(e){return n.equals(a,e.subarray(c,263))&&n.equals(u,e.subarray(l,265))}(e));else if(!r)throw new Error("Invalid tar header: unknown format.");return 0===s&&f&&"/"===f[f.length-1]&&(s=5),{name:f,mode:h,uid:m,gid:g,size:y,mtime:new Date(1e3*v),type:w,linkname:_,uname:j,gname:k,devmajor:x,devminor:E,pax:null}}}}},{package:"@metamask/snaps-controllers>tar-stream",file:"node_modules/tar-stream/headers.js"}],[7766,{"./extract":7764,"./pack":7767},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){r.extract=e("./extract"),r.pack=e("./pack")}}},{package:"@metamask/snaps-controllers>tar-stream",file:"node_modules/tar-stream/index.js"}],[7767,{"./constants":7763,"./headers":7765,b4a:5904,streamx:7757},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Readable:n,Writable:i,getStreamError:o}=e("streamx"),s=e("b4a"),a=e("./constants"),u=e("./headers"),c=s.alloc(1024);class l extends i{constructor(e,t,r){super({mapWritable:p,eagerOpen:!0}),this.written=0,this.header=t,this._callback=r,this._linkname=null,this._isLinkname="symlink"===t.type&&!t.linkname,this._isVoid="file"!==t.type&&"contiguous-file"!==t.type,this._finished=!1,this._pack=e,this._openCallback=null,null===this._pack._stream?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(null===this._callback)return;const t=this._callback;this._callback=null,t(e)}_continueOpen(){null===this._pack._stream&&(this._pack._stream=this);const e=this._openCallback;if(this._openCallback=null,null!==e){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,t){return this._isLinkname?(this._linkname=this._linkname?s.concat([this._linkname,e]):e,t(null)):this._isVoid?e.byteLength>0?t(new Error("No body allowed for this entry")):t():(this.written+=e.byteLength,this._pack.push(e)?t():void(this._pack._drain=t))}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?s.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),h(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return o(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}}class f extends n{constructor(e){super(e),this._drain=d,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,t,r){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");"function"==typeof t&&(r=t,t=null),r||(r=d),e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=function(e){switch(e&a.S_IFMT){case a.S_IFBLK:return"block-device";case a.S_IFCHR:return"character-device";case a.S_IFDIR:return"directory";case a.S_IFIFO:return"fifo";case a.S_IFLNK:return"symlink"}return"file"}(e.mode)),e.mode||(e.mode="directory"===e.type?493:420),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=s.from(t));const n=new l(this,e,r);return s.isBuffer(t)?(e.size=t.byteLength,n.write(t),n.end(),n):(n._isVoid,n)}finalize(){this._stream||this._pending.length>0?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(c),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){const t=u.encode(e);if(t)return void this.push(t)}this._encodePax(e)}_encodePax(e){const t=u.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(u.encode(r)),this.push(t),h(this,t.byteLength),r.size=e.size,r.type=e.type,this.push(u.encode(r))}_doDrain(){const e=this._drain;this._drain=d,e()}_predestroy(){const e=o(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){const t=this._pending.shift();t.destroy(e),t._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}}function d(){}function h(e,t){(t&=511)&&e.push(c.subarray(0,512-t))}function p(e){return s.isBuffer(e)?e:s.from(e)}t.exports=function(e){return new f(e)}}}},{package:"@metamask/snaps-controllers>tar-stream",file:"node_modules/tar-stream/pack.js"}],[7771,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){if(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new DataView(e.buffer,e.byteOffset,e.byteLength);if(e instanceof ArrayBuffer)return new DataView(e);throw new TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}}}},{package:"base32-encode>to-data-view",file:"node_modules/to-data-view/index.js"}],[7775,{"./mixin-tracking":7777,"./util":7781},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.decorate=r.getDecoratorsForClass=r.directDecoratorSearch=r.deepDecoratorSearch=void 0;const n=e("./util"),i=e("./mixin-tracking"),o=(e,t)=>{var r,i;const o=(0,n.unique)([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),s={};for(let a of o)s[a]=(0,n.unique)([...null!==(r=null==e?void 0:e[a])&&void 0!==r?r:[],...null!==(i=null==t?void 0:t[a])&&void 0!==i?i:[]]);return s},s=(e,t)=>{var r,n,i,s;return{property:o(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:o(null!==(i=null==e?void 0:e.method)&&void 0!==i?i:{},null!==(s=null==t?void 0:t.method)&&void 0!==s?s:{})}},a=(e,t)=>{var r,i,o,a,u,c;return{class:(0,n.unique)([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(i=null==t?void 0:t.class)&&void 0!==i?i:[]]),static:s(null!==(o=null==e?void 0:e.static)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.static)&&void 0!==a?a:{}),instance:s(null!==(u=null==e?void 0:e.instance)&&void 0!==u?u:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},u=new Map;r.deepDecoratorSearch=(...e)=>{const t=((...e)=>{var t;const r=new Set,o=new Set([...e]);for(;o.size>0;)for(let e of o){const s=[...(0,n.protoChain)(e.prototype).map(e=>e.constructor),...null!==(t=(0,i.getMixinsForClass)(e))&&void 0!==t?t:[]].filter(e=>!r.has(e));for(let e of s)o.add(e);r.add(e),o.delete(e)}return[...r]})(...e).map(e=>u.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>a(e,t))};r.directDecoratorSearch=(...e)=>{const t=e.map(e=>(0,r.getDecoratorsForClass)(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>a(e,t))};r.getDecoratorsForClass=e=>{let t=u.get(e);return t||(t={},u.set(e,t)),t};r.decorate=e=>(...t)=>1===t.length?(e=>t=>{const n=(0,r.getDecoratorsForClass)(t);let i=n.class;return i||(i=[],n.class=i),i.push(e),e(t)})(e)(t[0]):(e=>(t,n,...i)=>{var o,s,a;const u="function"==typeof t?"static":"instance",c="function"==typeof t[n]?"method":"property",l="static"===u?t:t.constructor,f=(0,r.getDecoratorsForClass)(l),d=null!==(o=null==f?void 0:f[u])&&void 0!==o?o:{};f[u]=d;let h=null!==(s=null==d?void 0:d[c])&&void 0!==s?s:{};d[c]=h;let p=null!==(a=null==h?void 0:h[n])&&void 0!==a?a:[];return h[n]=p,p.push(e),e(t,n,...i)})(e)(...t)}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/decorator.js"}],[7776,{"./decorator":7775,"./mixin-tracking":7777,"./mixins":7778,"./settings":7780},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hasMixin=r.decorate=r.settings=r.mix=r.Mixin=void 0;var n=e("./mixins");Object.defineProperty(r,"Mixin",{enumerable:!0,get:function(){return n.Mixin}}),Object.defineProperty(r,"mix",{enumerable:!0,get:function(){return n.mix}});var i=e("./settings");Object.defineProperty(r,"settings",{enumerable:!0,get:function(){return i.settings}});var o=e("./decorator");Object.defineProperty(r,"decorate",{enumerable:!0,get:function(){return o.decorate}});var s=e("./mixin-tracking");Object.defineProperty(r,"hasMixin",{enumerable:!0,get:function(){return s.hasMixin}})}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/index.js"}],[7777,{"./util":7781},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hasMixin=r.registerMixins=r.getMixinsForClass=void 0;const n=e("./util"),i=new WeakMap;r.getMixinsForClass=e=>i.get(e);r.registerMixins=(e,t)=>i.set(e,t);r.hasMixin=(e,t)=>{if(e instanceof t)return!0;const r=e.constructor,o=new Set;let s=new Set;for(s.add(r);s.size>0;){if(s.has(t))return!0;s.forEach(e=>o.add(e));const e=new Set;s.forEach(t=>{var r;const a=null!==(r=i.get(t))&&void 0!==r?r:(0,n.protoChain)(t.prototype).map(e=>e.constructor).filter(e=>null!==e);a&&a.forEach(t=>{o.has(t)||s.has(t)||e.add(t)})}),s=e}return!1}}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/mixin-tracking.js"}],[7778,{"./decorator":7775,"./mixin-tracking":7777,"./proxy":7779,"./settings":7780,"./util":7781},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mix=r.Mixin=void 0;const n=e("./proxy"),i=e("./settings"),o=e("./util"),s=e("./decorator"),a=e("./mixin-tracking");function u(...e){var t,r,u;const l=e.map(e=>e.prototype),f=i.settings.initFunction;if(null!==f){const e=l.map(e=>e[f]).filter(e=>"function"==typeof e),t=function(...t){for(let r of e)r.apply(this,t)},r={[f]:t};l.push(r)}function d(...t){for(const r of e)(0,o.copyProps)(this,new r(...t));null!==f&&"function"==typeof this[f]&&this[f].apply(this,t)}d.prototype="copy"===i.settings.prototypeStrategy?(0,o.hardMixProtos)(l,d):(0,n.softMixProtos)(l,d),Object.setPrototypeOf(d,"copy"===i.settings.staticsStrategy?(0,o.hardMixProtos)(e,null,["prototype"]):(0,n.proxyMix)(e,Function.prototype));let h=d;if("none"!==i.settings.decoratorInheritance){const n="deep"===i.settings.decoratorInheritance?(0,s.deepDecoratorSearch)(...e):(0,s.directDecoratorSearch)(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(h);t&&(h=t)}c(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},h),c(null!==(u=null==n?void 0:n.instance)&&void 0!==u?u:{},h.prototype)}return(0,a.registerMixins)(h,e),h}r.Mixin=u;const c=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};r.mix=(...e)=>t=>{const r=u(...e.concat([t]));return Object.defineProperty(r,"name",{value:t.name,writable:!1}),r}}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/mixins.js"}],[7779,{"./util":7781},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.softMixProtos=r.proxyMix=r.getIngredientWithProp=void 0;const n=e("./util");r.getIngredientWithProp=(e,t)=>{const r=t.map(e=>(0,n.protoChain)(e));let i=0,o=!0;for(;o;){o=!1;for(let n=t.length-1;n>=0;n--){const t=r[n][i];if(t!==undefined&&null!==t&&(o=!0,Object.getOwnPropertyDescriptor(t,e)!=undefined))return r[n][0]}i++}return undefined};r.proxyMix=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,n)=>Object.getOwnPropertyDescriptor((0,r.getIngredientWithProp)(n,e)||{},n),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(n,i)=>(0,r.getIngredientWithProp)(i,e)!==undefined||t[i]!==undefined,get:(n,i)=>((0,r.getIngredientWithProp)(i,e)||t)[i],set(t,n,i){const o=(0,r.getIngredientWithProp)(n,e);if(o===undefined)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return o[n]=i,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce((e,t)=>t.concat(e.filter(e=>t.indexOf(e)<0)))});r.softMixProtos=(e,t)=>(0,r.proxyMix)([...e,{constructor:t}])}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/proxy.js"}],[7780,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.settings=void 0,r.settings={initFunction:null,staticsStrategy:"copy",prototypeStrategy:"copy",decoratorInheritance:"deep"}}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/settings.js"}],[7781,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.flatten=r.unique=r.hardMixProtos=r.nearestCommonProto=r.protoChain=r.copyProps=void 0;r.copyProps=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)};r.protoChain=(e,t=[e])=>{const n=Object.getPrototypeOf(e);return null===n?t:(0,r.protoChain)(n,[...t,n])};r.nearestCommonProto=(...e)=>{if(0===e.length)return undefined;let t=undefined;const n=e.map(e=>(0,r.protoChain)(e));for(;n.every(e=>e.length>0);){const e=n.map(e=>e.pop()),r=e[0];if(!e.every(e=>e===r))break;t=r}return t};r.hardMixProtos=(e,t,n=[])=>{var i;const o=null!==(i=(0,r.nearestCommonProto)(...e))&&void 0!==i?i:Object.prototype,s=Object.create(o),a=(0,r.protoChain)(o);for(let t of e){let e=(0,r.protoChain)(t);for(let t=e.length-1;t>=0;t--){let i=e[t];-1===a.indexOf(i)&&((0,r.copyProps)(s,i,["constructor",...n]),a.push(i))}}return s.constructor=t,s};r.unique=e=>e.filter((t,r)=>e.indexOf(t)==r);r.flatten=e=>0===e.length?[]:1===e.length?e[0]:e.reduce((e,t)=>[...e,...t])}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/util.js"}],[7785,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i,o,s=void 0,a=(n=Object.prototype.toString,i=Object.prototype.hasOwnProperty,{Class:function(e){return n.call(e).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,t){return i.call(e,t)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return 0|e},ToUint32:function(e){return e>>>0}}),u=Math.LN2,c=Math.abs,l=Math.floor,f=Math.log,d=Math.min,h=Math.pow,p=Math.round;function b(e){if(m&&o){var t,r=m(e);for(t=0;t<r.length;t+=1)o(e,r[t],{value:e[r[t]],writable:!1,enumerable:!1,configurable:!1})}}o=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()?Object.defineProperty:function(e,t,r){if(!e===Object(e))throw new TypeError("Object.defineProperty called on non-object");return a.HasProperty(r,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,r.get),a.HasProperty(r,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,r.set),a.HasProperty(r,"value")&&(e[t]=r.value),e};var m=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)a.HasOwnProperty(e,t)&&r.push(t);return r};function g(e,t){var r=32-t;return e<<r>>r}function y(e,t){var r=32-t;return e<<r>>>r}function v(e){return[255&e]}function w(e){return g(e[0],8)}function _(e){return[255&e]}function j(e){return y(e[0],8)}function k(e){return[(e=p(Number(e)))<0?0:e>255?255:255&e]}function x(e){return[e>>8&255,255&e]}function E(e){return g(e[0]<<8|e[1],16)}function T(e){return[e>>8&255,255&e]}function S(e){return y(e[0]<<8|e[1],16)}function O(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function P(e){return g(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function A(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function I(e){return y(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function M(e,t,r){var n,i,o,s,a,p,b,m=(1<<t-1)-1;function g(e){var t=l(e),r=e-t;return r<.5?t:r>.5||t%2?t+1:t}for(e!=e?(i=(1<<t)-1,o=h(2,r-1),n=0):e===Infinity||e===-Infinity?(i=(1<<t)-1,o=0,n=e<0?1:0):0===e?(i=0,o=0,n=1/e===-Infinity?1:0):(n=e<0,(e=c(e))>=h(2,1-m)?(i=d(l(f(e)/u),1023),(o=g(e/h(2,i)*h(2,r)))/h(2,r)>=2&&(i+=1,o=1),i>m?(i=(1<<t)-1,o=0):(i+=m,o-=h(2,r))):(i=0,o=g(e/h(2,1-m-r)))),a=[],s=r;s;s-=1)a.push(o%2?1:0),o=l(o/2);for(s=t;s;s-=1)a.push(i%2?1:0),i=l(i/2);for(a.push(n?1:0),a.reverse(),p=a.join(""),b=[];p.length;)b.push(parseInt(p.substring(0,8),2)),p=p.substring(8);return b}function R(e,t,r){var n,i,o,s,a,u,c,l,f=[];for(n=e.length;n;n-=1)for(o=e[n-1],i=8;i;i-=1)f.push(o%2?1:0),o>>=1;return f.reverse(),s=f.join(""),a=(1<<t-1)-1,u=parseInt(s.substring(0,1),2)?-1:1,c=parseInt(s.substring(1,1+t),2),l=parseInt(s.substring(1+t),2),c===(1<<t)-1?0!==l?NaN:u*Infinity:c>0?u*h(2,c-a)*(1+l/h(2,r)):0!==l?u*h(2,-(a-1))*(l/h(2,r)):u<0?-0:0}function B(e){return R(e,11,52)}function N(e){return M(e,11,52)}function F(e){return R(e,8,23)}function C(e){return M(e,8,23)}!function(){var e=function(e){if((e=a.ToInt32(e))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var t;for(this.byteLength=e,this._bytes=[],this._bytes.length=e,t=0;t<this.byteLength;t+=1)this._bytes[t]=0;b(this)};r.ArrayBuffer=r.ArrayBuffer||e;var t=function(){};function n(r,n,i){var u;return u=function(t,r,n){var i,s,c,l;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===u)for(i=arguments[0],this.length=i.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)this._setter(c,i._getter(c));else if("object"!=typeof arguments[0]||(arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0]))){if("object"!=typeof arguments[0]||!(arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])))throw new TypeError("Unexpected argument type(s)");if(this.buffer=t,this.byteOffset=a.ToUint32(r),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=a.ToUint32(n),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(s=arguments[0],this.length=a.ToUint32(s.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)l=s[c],this._setter(c,Number(l));else{if(this.length=a.ToInt32(arguments[0]),n<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0}this.constructor=u,b(this),function(e){if(o){if(e.length>1e5)throw new RangeError("Array too large for polyfill");var t;for(t=0;t<e.length;t+=1)r(t)}function r(t){o(e,t,{get:function(){return e._getter(t)},set:function(r){e._setter(t,r)},enumerable:!0,configurable:!1})}}(this)},u.prototype=new t,u.prototype.BYTES_PER_ELEMENT=r,u.prototype._pack=n,u.prototype._unpack=i,u.BYTES_PER_ELEMENT=r,u.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return s;var t,r,n=[];for(t=0,r=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,r+=1)n.push(this.buffer._bytes[r]);return this._unpack(n)},u.prototype.get=u.prototype._getter,u.prototype._setter=function(e,t){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return s;var r,n,i=this._pack(t);for(r=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;r<this.BYTES_PER_ELEMENT;r+=1,n+=1)this.buffer._bytes[n]=i[r]},u.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var r,n,i,o,s,u,c,l,f,d;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(r=arguments[0],(i=a.ToUint32(arguments[1]))+r.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(l=this.byteOffset+i*this.BYTES_PER_ELEMENT,f=r.length*this.BYTES_PER_ELEMENT,r.buffer===this.buffer){for(d=[],s=0,u=r.byteOffset;s<f;s+=1,u+=1)d[s]=r.buffer._bytes[u];for(s=0,c=l;s<f;s+=1,c+=1)this.buffer._bytes[c]=d[s]}else for(s=0,u=r.byteOffset,c=l;s<f;s+=1,u+=1,c+=1)this.buffer._bytes[c]=r.buffer._bytes[u]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw new TypeError("Unexpected argument type(s)");if(n=arguments[0],o=a.ToUint32(n.length),(i=a.ToUint32(arguments[1]))+o>this.length)throw new RangeError("Offset plus length of array is out of range");for(s=0;s<o;s+=1)u=n[s],this._setter(i+s,Number(u))}},u.prototype.subarray=function(e,t){function r(e,t,r){return e<t?t:e>r?r:e}e=a.ToInt32(e),t=a.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=r(e,0,this.length);var n=(t=r(t,0,this.length))-e;return n<0&&(n=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,n)},u}var i=n(1,v,w),u=n(1,_,j),c=n(1,k,j),l=n(2,x,E),f=n(2,T,S),d=n(4,O,P),h=n(4,A,I),p=n(4,C,F),m=n(8,N,B);r.Int8Array=r.Int8Array||i,r.Uint8Array=r.Uint8Array||u,r.Uint8ClampedArray=r.Uint8ClampedArray||c,r.Int16Array=r.Int16Array||l,r.Uint16Array=r.Uint16Array||f,r.Int32Array=r.Int32Array||d,r.Uint32Array=r.Uint32Array||h,r.Float32Array=r.Float32Array||p,r.Float64Array=r.Float64Array||m}(),function(){function e(e,t){return a.IsCallable(e.get)?e.get(t):e[t]}var t,n=(t=new r.Uint16Array([4660]),18===e(new r.Uint8Array(t.buffer),0)),i=function(e,t,n){if(0===arguments.length)e=new r.ArrayBuffer(0);else if(!(e instanceof r.ArrayBuffer||"ArrayBuffer"===a.Class(e)))throw new TypeError("TypeError");if(this.buffer=e||new r.ArrayBuffer(0),this.byteOffset=a.ToUint32(t),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteLength=arguments.length<3?this.buffer.byteLength-this.byteOffset:a.ToUint32(n),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");b(this)};function o(t){return function(i,o){if((i=a.ToUint32(i))+t.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");i+=this.byteOffset;var s,u=new r.Uint8Array(this.buffer,i,t.BYTES_PER_ELEMENT),c=[];for(s=0;s<t.BYTES_PER_ELEMENT;s+=1)c.push(e(u,s));return Boolean(o)===Boolean(n)&&c.reverse(),e(new t(new r.Uint8Array(c).buffer),0)}}function s(t){return function(i,o,s){if((i=a.ToUint32(i))+t.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var u,c=new t([o]),l=new r.Uint8Array(c.buffer),f=[];for(u=0;u<t.BYTES_PER_ELEMENT;u+=1)f.push(e(l,u));Boolean(s)===Boolean(n)&&f.reverse(),new r.Uint8Array(this.buffer,i,t.BYTES_PER_ELEMENT).set(f)}}i.prototype.getUint8=o(r.Uint8Array),i.prototype.getInt8=o(r.Int8Array),i.prototype.getUint16=o(r.Uint16Array),i.prototype.getInt16=o(r.Int16Array),i.prototype.getUint32=o(r.Uint32Array),i.prototype.getInt32=o(r.Int32Array),i.prototype.getFloat32=o(r.Float32Array),i.prototype.getFloat64=o(r.Float64Array),i.prototype.setUint8=s(r.Uint8Array),i.prototype.setInt8=s(r.Int8Array),i.prototype.setUint16=s(r.Uint16Array),i.prototype.setInt16=s(r.Int16Array),i.prototype.setUint32=s(r.Uint32Array),i.prototype.setInt32=s(r.Int32Array),i.prototype.setFloat32=s(r.Float32Array),i.prototype.setFloat64=s(r.Float64Array),r.DataView=r.DataView||i}()}}},{package:"browserify>concat-stream>typedarray",file:"node_modules/typedarray/index.js"}],[7786,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){((e,n)=>{function i(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t}var o="user-agent",s="",a="function",u="undefined",c="object",l="string",f="browser",d="cpu",h="device",p="engine",b="os",m="result",g="name",y="type",v="vendor",w="version",_="architecture",j="major",k="model",x="console",E="mobile",T="tablet",S="smarttv",O="wearable",P="xr",A="embedded",I="inapp",M="brands",R="formFactors",B="fullVersionList",N="platform",F="platformVersion",C="bitness",L="sec-ch-ua",U=L+"-full-version-list",D=L+"-arch",z=L+"-"+C,q=L+"-form-factors",H=L+"-"+E,W=L+"-"+k,G=L+"-"+N,V=G+"-version",$=[M,B,E,k,N,F,_,R,C],Y="Amazon",K="Apple",J="ASUS",Z="BlackBerry",Q="Google",X="Huawei",ee="Microsoft",te="Motorola",re="Nvidia",ne="OnePlus",ie="OPPO",oe="Samsung",se="Sony",ae="Xiaomi",ue="Zebra",ce="Chromium",le="Chromecast",fe="Firefox",de="Opera",he="Facebook",pe="Mobile ",be=" Browser",me="Windows",ge=typeof e!==u,ye=ge&&e.navigator?e.navigator:n,ve=ye&&ye.userAgentData?ye.userAgentData:n,we=function(e,t){if(typeof e===c&&0<e.length){for(var r in e)if(xe(e[r])==xe(t))return!0;return!1}return!!je(e)&&-1!==xe(t).indexOf(xe(e))},_e=function(e,t){for(var r in e)return/^(browser|cpu|device|engine|os)$/.test(r)||!!t&&_e(e[r])},je=function(e){return typeof e===l},ke=function(e){if(!e)return n;for(var t,r=[],i=Se(/\\?\"/g,e).split(","),o=0;o<i.length;o++)-1<i[o].indexOf(";")?(t=Pe(i[o]).split(";v="),r[o]={brand:t[0],version:t[1]}):r[o]=Pe(i[o]);return r},xe=function(e){return je(e)?e.toLowerCase():e},Ee=function(e){return je(e)?Se(/[^\d\.]/g,e).split(".")[0]:n},Te=function(e){for(var t in e)typeof(t=e[t])==c&&2==t.length?this[t[0]]=t[1]:this[t]=n;return this},Se=function(e,t){return je(t)?t.replace(e,s):t},Oe=function(e){return Se(/\\?\"/g,e)},Pe=function(e,t){if(je(e))return e=Se(/^\s\s*/,e),typeof t===u?e:e.substring(0,500)},Ae=function(e,t){if(e&&t)for(var r,i,o,s,u,l=0;l<t.length&&!s;){for(var f=t[l],d=t[l+1],h=r=0;h<f.length&&!s&&f[h];)if(s=f[h++].exec(e))for(i=0;i<d.length;i++)u=s[++r],typeof(o=d[i])===c&&0<o.length?2===o.length?typeof o[1]==a?this[o[0]]=o[1].call(this,u):this[o[0]]=o[1]:3===o.length?typeof o[1]!==a||o[1].exec&&o[1].test?this[o[0]]=u?u.replace(o[1],o[2]):n:this[o[0]]=u?o[1].call(this,u,o[2]):n:4===o.length&&(this[o[0]]=u?o[3].call(this,u.replace(o[1],o[2])):n):this[o]=u||n;l+=2}},Ie=function(e,t){for(var r in t)if(typeof t[r]===c&&0<t[r].length){for(var i=0;i<t[r].length;i++)if(we(t[r][i],e))return"?"===r?n:r}else if(we(t[r],e))return"?"===r?n:r;return t.hasOwnProperty("*")?t["*"]:e},Me={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Re={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":n},Be={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[g,pe+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[g,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[g,w],[/opios[\/ ]+([\w\.]+)/i],[w,[g,de+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[w,[g,de+" GX"]],[/\bopr\/([\w\.]+)/i],[w,[g,de]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[w,[g,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[w,[g,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[g,w],[/quark(?:pc)?\/([-\w\.]+)/i],[w,[g,"Quark"]],[/\bddg\/([\w\.]+)/i],[w,[g,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[g,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[w,[g,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[g,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[g,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[g,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[w,[g,"Smart Lenovo"+be]],[/(avast|avg)\/([\w\.]+)/i],[[g,/(.+)/,"$1 Secure"+be],w],[/\bfocus\/([\w\.]+)/i],[w,[g,fe+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[g,de+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[g,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[g,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[g,de+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[g,"MIUI"+be]],[/fxios\/([\w\.-]+)/i],[w,[g,pe+fe]],[/\bqihoobrowser\/?([\w\.]*)/i],[w,[g,"360"]],[/\b(qq)\/([\w\.]+)/i],[[g,/(.+)/,"$1Browser"],w],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[g,/(.+)/,"$1"+be],w],[/samsungbrowser\/([\w\.]+)/i],[w,[g,oe+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[w,[g,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[g,"Sogou Mobile"],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[g,w],[/(lbbrowser|rekonq)/i],[g],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[w,g],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[g,he],w,[y,I]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[g,w,[y,I]],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[g,"GSA"],[y,I]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[g,"TikTok"],[y,I]],[/\[(linkedin)app\]/i],[g,[y,I]],[/(chromium)[\/ ]([-\w\.]+)/i],[g,w],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[g,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[g,"Chrome WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[g,"Android"+be]],[/chrome\/([\w\.]+) mobile/i],[w,[g,pe+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[g,w],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[w,[g,pe+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[g,pe+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[w,g],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[g,[w,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[g,w],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[g,pe+fe],w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[g,"Netscape"],w],[/(wolvic|librewolf)\/([\w\.]+)/i],[g,w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[g,fe+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[g,[w,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[g,[w,/[^\d\.]+./,s]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[_,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[_,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[_,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[_,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[_,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[_,/ower/,s,xe]],[/ sun4\w[;\)]/i],[[_,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[_,xe]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[k,[v,oe],[y,T]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[k,[v,oe],[y,E]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[k,[v,K],[y,E]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[k,[v,K],[y,T]],[/(macintosh);/i],[k,[v,K]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[k,[v,"Sharp"],[y,E]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[k,[v,"Honor"],[y,T]],[/honor([-\w ]+)[;\)]/i],[k,[v,"Honor"],[y,E]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[k,[v,X],[y,T]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[k,[v,X],[y,E]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[k,/_/g," "],[v,ae],[y,T]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[k,/_/g," "],[v,ae],[y,E]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[k,[v,ie],[y,E]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[k,[v,Ie,{OnePlus:["304","403","203"],"*":ie}],[y,T]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[k,[v,"BLU"],[y,E]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[k,[v,"Vivo"],[y,E]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[k,[v,"Realme"],[y,E]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[k,[v,te],[y,E]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[k,[v,te],[y,T]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[k,[v,"LG"],[y,T]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[k,[v,"LG"],[y,E]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[k,[v,"Lenovo"],[y,T]],[/(nokia) (t[12][01])/i],[v,k,[y,T]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[k,/_/g," "],[y,E],[v,"Nokia"]],[/(pixel (c|tablet))\b/i],[k,[v,Q],[y,T]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[k,[v,Q],[y,E]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[k,[v,se],[y,E]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[k,"Xperia Tablet"],[v,se],[y,T]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[k,[v,ne],[y,E]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[k,[v,Y],[y,T]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[k,/(.+)/g,"Fire Phone $1"],[v,Y],[y,E]],[/(playbook);[-\w\),; ]+(rim)/i],[k,v,[y,T]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[k,[v,Z],[y,E]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[k,[v,J],[y,T]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[k,[v,J],[y,E]],[/(nexus 9)/i],[k,[v,"HTC"],[y,T]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[v,[k,/_/g," "],[y,E]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[k,[v,"TCL"],[y,T]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[k,[v,"TCL"],[y,E]],[/(itel) ((\w+))/i],[[v,xe],k,[y,Ie,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[k,[v,"Acer"],[y,T]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[k,[v,"Meizu"],[y,E]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[k,[v,"Ulefone"],[y,E]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[k,[v,"Energizer"],[y,E]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[k,[v,"Cat"],[y,E]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[k,[v,"Smartfren"],[y,E]],[/droid.+; (a(?:015|06[35]|142p?))/i],[k,[v,"Nothing"],[y,E]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[k,[v,"Archos"],[y,T]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[k,[v,"Archos"],[y,E]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[v,k,[y,T]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[v,k,[y,E]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[v,k,[y,T]],[/(surface duo)/i],[k,[v,ee],[y,T]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[k,[v,"Fairphone"],[y,E]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[k,[v,re],[y,T]],[/(sprint) (\w+)/i],[v,k,[y,E]],[/(kin\.[onetw]{3})/i],[[k,/\./g," "],[v,ee],[y,E]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[k,[v,ue],[y,T]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[k,[v,ue],[y,E]],[/smart-tv.+(samsung)/i],[v,[y,S]],[/hbbtv.+maple;(\d+)/i],[[k,/^/,"SmartTV"],[v,oe],[y,S]],[/tcast.+(lg)e?. ([-\w]+)/i],[v,k,[y,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,"LG"],[y,S]],[/(apple) ?tv/i],[v,[k,K+" TV"],[y,S]],[/crkey.*devicetype\/chromecast/i],[[k,le+" Third Generation"],[v,Q],[y,S]],[/crkey.*devicetype\/([^/]*)/i],[[k,/^/,"Chromecast "],[v,Q],[y,S]],[/fuchsia.*crkey/i],[[k,le+" Nest Hub"],[v,Q],[y,S]],[/crkey/i],[[k,le],[v,Q],[y,S]],[/(portaltv)/i],[k,[v,he],[y,S]],[/droid.+aft(\w+)( bui|\))/i],[k,[v,Y],[y,S]],[/(shield \w+ tv)/i],[k,[v,re],[y,S]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[k,[v,"Sharp"],[y,S]],[/(bravia[\w ]+)( bui|\))/i],[k,[v,se],[y,S]],[/(mi(tv|box)-?\w+) bui/i],[k,[v,ae],[y,S]],[/Hbbtv.*(technisat) (.*);/i],[v,k,[y,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[v,Pe],[k,Pe],[y,S]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[k,[y,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[y,S]],[/(ouya)/i,/(nintendo) (\w+)/i],[v,k,[y,x]],[/droid.+; (shield)( bui|\))/i],[k,[v,re],[y,x]],[/(playstation \w+)/i],[k,[v,se],[y,x]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[k,[v,ee],[y,x]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[k,[v,oe],[y,O]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[v,k,[y,O]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[k,[v,ie],[y,O]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[k,[v,K],[y,O]],[/(opwwe\d{3})/i],[k,[v,ne],[y,O]],[/(moto 360)/i],[k,[v,te],[y,O]],[/(smartwatch 3)/i],[k,[v,se],[y,O]],[/(g watch r)/i],[k,[v,"LG"],[y,O]],[/droid.+; (wt63?0{2,3})\)/i],[k,[v,ue],[y,O]],[/droid.+; (glass) \d/i],[k,[v,Q],[y,P]],[/(pico) (4|neo3(?: link|pro)?)/i],[v,k,[y,P]],[/(quest( \d| pro)?s?).+vr/i],[k,[v,he],[y,P]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[y,A]],[/(aeobc)\b/i],[k,[v,Y],[y,A]],[/(homepod).+mac os/i],[k,[v,K],[y,A]],[/windows iot/i],[[y,A]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[k,[y,Ie,{mobile:"Mobile",xr:"VR","*":T}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[y,T]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[y,E]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[k,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[g,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[g,w],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[g,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[g,w],[/ladybird\//i],[[g,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,g]],os:[[/microsoft (windows) (vista|xp)/i],[g,w],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[g,[w,Ie,Me]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[w,Ie,Me],[g,me]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[g,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[g,"macOS"],[w,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[w,[g,le+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[w,[g,le+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[w,[g,le+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[w,[g,le+" Linux"]],[/crkey\/([\d\.]+)/i],[w,[g,le]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,g],[/(ubuntu) ([\w\.]+) like android/i],[[g,/(.+)/,"$1 Touch"],w],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[g,w],[/\(bb(10);/i],[w,[g,Z]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[w,[g,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[g,fe+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[g,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[g,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[g,"Chrome OS"],w],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[g,w],[/(sunos) ?([\w\.\d]*)/i],[[g,"Solaris"],w],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[g,w]]},Ne=(Te.call((de={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}}).init,[[f,[g,w,j,y]],[d,[_]],[h,[y,k,v]],[p,[g,w]],[b,[g,w]]]),Te.call(de.isIgnore,[[f,[w,j]],[p,[w]],[b,[w]]]),Te.call(de.isIgnoreRgx,[[f,/ ?browser$/i],[b,/ ?os$/i]]),Te.call(de.toString,[[f,[g,w]],[d,[_]],[h,[v,k]],[p,[g,w]],[b,[g,w]]]),de),Fe=function(e,t){var r=Ne.init[t],n=Ne.isIgnore[t]||0,i=Ne.isIgnoreRgx[t]||0,o=Ne.toString[t]||0;function a(){Te.call(this,r)}return a.prototype.getItem=function(){return e},a.prototype.withClientHints=function(){return ve?ve.getHighEntropyValues($).then(function(t){return e.setCH(new Ce(t,!1)).parseCH().get()}):e.parseCH().get()},a.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=m&&(a.prototype.is=function(e){var t,r=!1;for(t in this)if(this.hasOwnProperty(t)&&!we(n,t)&&xe(i?Se(i,this[t]):this[t])==xe(i?Se(i,e):e)){if(r=!0,e!=u)break}else if(e==u&&r){r=!r;break}return r},a.prototype.toString=function(){var e,t=s;for(e in o)typeof this[o[e]]!==u&&(t+=(t?" ":s)+this[o[e]]);return t||u}),ve||(a.prototype.then=function(e){function t(){for(var e in r)r.hasOwnProperty(e)&&(this[e]=r[e])}var r=this,n=(t.prototype={is:a.prototype.is,toString:a.prototype.toString},new t);return e(n),n}),new a};function Ce(e,t){if(e=e||{},Te.call(this,$),t)Te.call(this,[[M,ke(e[L])],[B,ke(e[U])],[E,/\?1/.test(e[H])],[k,Oe(e[W])],[N,Oe(e[G])],[F,Oe(e[V])],[_,Oe(e[D])],[R,ke(e[q])],[C,Oe(e[z])]]);else for(var r in e)this.hasOwnProperty(r)&&typeof e[r]!==u&&(this[r]=e[r])}function Le(e,t,r,i){return this.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:n:this.data},this.set=function(e,t){return this.data[e]=t,this},this.setCH=function(e){return this.uaCH=e,this},this.detectFeature=function(){if(ye&&ye.userAgent==this.ua)switch(this.itemType){case f:ye.brave&&typeof ye.brave.isBrave==a&&this.set(g,"Brave");break;case h:!this.get(y)&&ve&&ve[E]&&this.set(y,E),"Macintosh"==this.get(k)&&ye&&typeof ye.standalone!==u&&ye.maxTouchPoints&&2<ye.maxTouchPoints&&this.set(k,"iPad").set(y,T);break;case b:!this.get(g)&&ve&&ve[N]&&this.set(g,ve[N]);break;case m:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(f,t(f)).set(d,t(d)).set(h,t(h)).set(p,t(p)).set(b,t(b))}return this},this.parseUA=function(){return this.itemType!=m&&Ae.call(this.data,this.ua,this.rgxMap),this.itemType==f&&this.set(j,Ee(this.get(w))),this},this.parseCH=function(){var e,t=this.uaCH,r=this.rgxMap;switch(this.itemType){case f:case p:var i,o=t[B]||t[M];if(o)for(var s in o){var a=o[s].brand||o[s];s=o[s].version;this.itemType!=f||/not.a.brand/i.test(a)||i&&(!/chrom/i.test(i)||a==ce)||(a=Ie(a,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(g,a).set(w,s).set(j,Ee(s)),i=a),this.itemType==p&&a==ce&&this.set(w,s)}break;case d:(x=t[_])&&("64"==t[C]&&(x+="64"),Ae.call(this.data,x+";",r));break;case h:if(t[E]&&this.set(y,E),t[k]&&(this.set(k,t[k]),this.get(y)&&this.get(v)||(Ae.call(x={},"droid 9; "+t[k]+")",r),!this.get(y)&&x.type&&this.set(y,x.type),!this.get(v)&&x.vendor&&this.set(v,x.vendor))),t[R]){if("string"!=typeof t[R])for(var u=0;!e&&u<t[R].length;)e=Ie(t[R][u++],Re);else e=Ie(t[R],Re);this.set(y,e)}break;case b:var c;(x=t[N])&&(c=t[F],x==me&&(c=13<=parseInt(Ee(c),10)?"11":"10"),this.set(g,x).set(w,c)),this.get(g)==me&&"Xbox"==t[k]&&this.set(g,"Xbox").set(w,n);break;case m:var l=this.data,x=function(e){return l[e].getItem().setCH(t).parseCH().get()};this.set(f,x(f)).set(d,x(d)).set(h,x(h)).set(p,x(p)).set(b,x(b))}return this},Te.call(this,[["itemType",e],["ua",t],["uaCH",i],["rgxMap",r],["data",Fe(this,e)]]),this}function Ue(e,t,r){var i,u,g,y,v;return typeof e===c?(t=_e(e,!0)?(typeof t===c&&(r=t),e):(r=e,n),e=n):typeof e!==l||_e(t,!0)||(r=t,t=n),r&&typeof r.append===a&&(i={},r.forEach(function(e,t){i[t]=e}),r=i),this instanceof Ue?(u=typeof e===l?e:r&&r[o]?r[o]:ye&&ye.userAgent?ye.userAgent:s,g=new Ce(r,!0),y=t?((e,t)=>{var r,n={},i=t;if(!_e(t))for(var o in i={},t)for(var s in t[o])i[s]=t[o][s].concat(i[s]||[]);for(r in e)n[r]=i[r]&&i[r].length%2==0?i[r].concat(e[r]):e[r];return n})(Be,t):Be,Te.call(this,[["getBrowser",(v=function(e){return e==m?function(){return new Le(e,u,y,g).set("ua",u).set(f,this.getBrowser()).set(d,this.getCPU()).set(h,this.getDevice()).set(p,this.getEngine()).set(b,this.getOS()).get()}:function(){return new Le(e,u,y[e],g).parseUA().get()}})(f)],["getCPU",v(d)],["getDevice",v(h)],["getEngine",v(p)],["getOS",v(b)],["getResult",v(m)],["getUA",function(){return u}],["setUA",function(e){return je(e)&&(u=e.length>500?Pe(e,500):e),this}]]).setUA(u),this):new Ue(e,t,r).getResult()}Ue.VERSION="2.0.3",Ue.BROWSER=i([g,w,j,y]),Ue.CPU=i([_]),Ue.DEVICE=i([k,v,y,x,E,S,T,O,A]),Ue.ENGINE=Ue.OS=i([g,w]),typeof r!==u?(r=typeof t!==u&&t.exports?t.exports=Ue:r).UAParser=Ue:typeof define===a&&define.amd?define(function(){return Ue}):ge&&(e.UAParser=Ue);var De,ze=ge&&(e.jQuery||e.Zepto);ze&&!ze.ua&&(De=new Ue,ze.ua=De.getResult(),ze.ua.get=function(){return De.getUA()},ze.ua.set=function(e){De.setUA(e);var t,r=De.getResult();for(t in r)ze.ua[t]=r[t]})})("object"==typeof window?window:this)}}},{package:"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils>ua-parser-js",file:"node_modules/ua-parser-js/dist/ua-parser.pack.js"}],[78,{"../../../../shared/constants/metametrics":8223,"../segment/early-segment-tracking":131},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.trackCriticalErrorEvent=function(e,t,r,o){(0,i.trackEarlySegmentEvent)({state:e,event:t,category:n.MetaMetricsEventCategory.Error,properties:{error_type:r,...o}})};var n=e("../../../../shared/constants/metametrics"),i=e("../segment/early-segment-tracking")}}},{package:"$root$",file:"app/scripts/lib/critical-error/track-critical-error.ts"}],[7847,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function e(t,r){var o,s=0,a=0,u=r=r||0,c=t.length;do{if(u>=c||a>49)throw e.bytes=0,new RangeError("Could not decode varint");o=t[u++],s+=a<28?(o&i)<<a:(o&i)*Math.pow(2,a),a+=7}while(o>=n);return e.bytes=u-r,s};var n=128,i=127}}},{package:"sass-embedded>varint",file:"node_modules/varint/decode.js"}],[7848,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function e(t,r,s){if(Number.MAX_SAFE_INTEGER&&t>Number.MAX_SAFE_INTEGER)throw e.bytes=0,new RangeError("Could not encode varint");r=r||[];var a=s=s||0;for(;t>=o;)r[s++]=255&t|n,t/=128;for(;t&i;)r[s++]=255&t|n,t>>>=7;return r[s]=0|t,e.bytes=s-a+1,r};var n=128,i=-128,o=Math.pow(2,31)}}},{package:"sass-embedded>varint",file:"node_modules/varint/encode.js"}],[7849,{"./decode.js":7847,"./encode.js":7848,"./length.js":7850},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={encode:e("./encode.js"),decode:e("./decode.js"),encodingLength:e("./length.js")}}}},{package:"sass-embedded>varint",file:"node_modules/varint/index.js"}],[7850,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=Math.pow(2,7),i=Math.pow(2,14),o=Math.pow(2,21),s=Math.pow(2,28),a=Math.pow(2,35),u=Math.pow(2,42),c=Math.pow(2,49),l=Math.pow(2,56),f=Math.pow(2,63);t.exports=function(e){return e<n?1:e<i?2:e<o?3:e<s?4:e<a?5:e<u?6:e<c?7:e<l?8:e<f?9:10}}}},{package:"sass-embedded>varint",file:"node_modules/varint/length.js"}],[7856,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseAccount=function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}}}},{package:"viem",file:"node_modules/viem/_cjs/accounts/utils/parseAccount.js"}],[7857,{"../../utils/address/getAddress.js":8039,"../../utils/hash/keccak256.js":8103},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.publicKeyToAddress=function(e){const t=(0,i.keccak256)(`0x${e.substring(4)}`).substring(26);return(0,n.checksumAddress)(`0x${t}`)};const n=e("../../utils/address/getAddress.js"),i=e("../../utils/hash/keccak256.js")}}},{package:"viem",file:"node_modules/viem/_cjs/accounts/utils/publicKeyToAddress.js"}],[7858,{"../../constants/abis.js":7980,"../../utils/abi/decodeFunctionResult.js":8026,"../../utils/abi/encodeFunctionData.js":8031,"../../utils/chain/getChainContractAddress.js":8060,"../../utils/data/trim.js":8068,"../../utils/encoding/toHex.js":8073,"../../utils/ens/errors.js":8079,"../../utils/ens/localBatchGatewayRequest.js":8081,"../../utils/ens/namehash.js":8082,"../../utils/ens/packetToBytes.js":8083,"../../utils/getAction.js":8100,"../public/readContract.js":7897},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getEnsAddress=async function(e,t){const{blockNumber:r,blockTag:b,coinType:m,name:g,gatewayUrls:y,strict:v}=t,{chain:w}=e,_=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!w)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,s.getChainContractAddress)({blockNumber:r,chain:w,contract:"ensUniversalResolver"})})(),j=w?.ensTlds;if(j&&!j.some(e=>g.endsWith(e)))return null;const k=null!=m?[(0,f.namehash)(g),BigInt(m)]:[(0,f.namehash)(g)];try{const t=(0,o.encodeFunctionData)({abi:n.addressResolverAbi,functionName:"addr",args:k}),s={address:_,abi:n.universalResolverResolveAbi,functionName:"resolveWithGateways",args:[(0,u.toHex)((0,d.packetToBytes)(g)),t,y??[l.localBatchGatewayUrl]],blockNumber:r,blockTag:b},c=(0,h.getAction)(e,p.readContract,"readContract"),f=await c(s);if("0x"===f[0])return null;const m=(0,i.decodeFunctionResult)({abi:n.addressResolverAbi,args:k,functionName:"addr",data:f[0]});return"0x"===m||"0x00"===(0,a.trim)(m)?null:m}catch(e){if(v)throw e;if((0,c.isNullUniversalResolverError)(e))return null;throw e}};const n=e("../../constants/abis.js"),i=e("../../utils/abi/decodeFunctionResult.js"),o=e("../../utils/abi/encodeFunctionData.js"),s=e("../../utils/chain/getChainContractAddress.js"),a=e("../../utils/data/trim.js"),u=e("../../utils/encoding/toHex.js"),c=e("../../utils/ens/errors.js"),l=e("../../utils/ens/localBatchGatewayRequest.js"),f=e("../../utils/ens/namehash.js"),d=e("../../utils/ens/packetToBytes.js"),h=e("../../utils/getAction.js"),p=e("../public/readContract.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/ens/getEnsAddress.js"}],[7859,{"../../utils/ens/avatar/parseAvatarRecord.js":8075,"../../utils/getAction.js":8100,"./getEnsText.js":7862},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getEnsAvatar=async function(e,{blockNumber:t,blockTag:r,assetGatewayUrls:s,name:a,gatewayUrls:u,strict:c,universalResolverAddress:l}){const f=await(0,i.getAction)(e,o.getEnsText,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:a,universalResolverAddress:l,gatewayUrls:u,strict:c});if(!f)return null;try{return await(0,n.parseAvatarRecord)(e,{record:f,gatewayUrls:s})}catch{return null}};const n=e("../../utils/ens/avatar/parseAvatarRecord.js"),i=e("../../utils/getAction.js"),o=e("./getEnsText.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/ens/getEnsAvatar.js"}],[7860,{"../../constants/abis.js":7980,"../../utils/chain/getChainContractAddress.js":8060,"../../utils/ens/errors.js":8079,"../../utils/ens/localBatchGatewayRequest.js":8081,"../../utils/getAction.js":8100,"../public/readContract.js":7897},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getEnsName=async function(e,t){const{address:r,blockNumber:c,blockTag:l,coinType:f=60n,gatewayUrls:d,strict:h}=t,{chain:p}=e,b=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!p)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,i.getChainContractAddress)({blockNumber:c,chain:p,contract:"ensUniversalResolver"})})();try{const t={address:b,abi:n.universalResolverReverseAbi,args:[r,f,d??[s.localBatchGatewayUrl]],functionName:"reverseWithGateways",blockNumber:c,blockTag:l},i=(0,a.getAction)(e,u.readContract,"readContract"),[o]=await i(t);return o||null}catch(e){if(h)throw e;if((0,o.isNullUniversalResolverError)(e))return null;throw e}};const n=e("../../constants/abis.js"),i=e("../../utils/chain/getChainContractAddress.js"),o=e("../../utils/ens/errors.js"),s=e("../../utils/ens/localBatchGatewayRequest.js"),a=e("../../utils/getAction.js"),u=e("../public/readContract.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/ens/getEnsName.js"}],[7861,{"../../utils/chain/getChainContractAddress.js":8060,"../../utils/encoding/toHex.js":8073,"../../utils/ens/packetToBytes.js":8083,"../../utils/getAction.js":8100,"../public/readContract.js":7897},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getEnsResolver=async function(e,t){const{blockNumber:r,blockTag:u,name:c}=t,{chain:l}=e,f=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!l)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,n.getChainContractAddress)({blockNumber:r,chain:l,contract:"ensUniversalResolver"})})(),d=l?.ensTlds;if(d&&!d.some(e=>c.endsWith(e)))throw new Error(`${c} is not a valid ENS TLD (${d?.join(", ")}) for chain "${l.name}" (id: ${l.id}).`);const[h]=await(0,s.getAction)(e,a.readContract,"readContract")({address:f,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,i.toHex)((0,o.packetToBytes)(c))],blockNumber:r,blockTag:u});return h};const n=e("../../utils/chain/getChainContractAddress.js"),i=e("../../utils/encoding/toHex.js"),o=e("../../utils/ens/packetToBytes.js"),s=e("../../utils/getAction.js"),a=e("../public/readContract.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/ens/getEnsResolver.js"}],[7862,{"../../constants/abis.js":7980,"../../utils/abi/decodeFunctionResult.js":8026,"../../utils/abi/encodeFunctionData.js":8031,"../../utils/chain/getChainContractAddress.js":8060,"../../utils/encoding/toHex.js":8073,"../../utils/ens/errors.js":8079,"../../utils/ens/localBatchGatewayRequest.js":8081,"../../utils/ens/namehash.js":8082,"../../utils/ens/packetToBytes.js":8083,"../../utils/getAction.js":8100,"../public/readContract.js":7897},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getEnsText=async function(e,t){const{blockNumber:r,blockTag:p,key:b,name:m,gatewayUrls:g,strict:y}=t,{chain:v}=e,w=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!v)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,s.getChainContractAddress)({blockNumber:r,chain:v,contract:"ensUniversalResolver"})})(),_=v?.ensTlds;if(_&&!_.some(e=>m.endsWith(e)))return null;try{const t={address:w,abi:n.universalResolverResolveAbi,args:[(0,a.toHex)((0,f.packetToBytes)(m)),(0,o.encodeFunctionData)({abi:n.textResolverAbi,functionName:"text",args:[(0,l.namehash)(m),b]}),g??[c.localBatchGatewayUrl]],functionName:"resolveWithGateways",blockNumber:r,blockTag:p},s=(0,d.getAction)(e,h.readContract,"readContract"),u=await s(t);if("0x"===u[0])return null;const y=(0,i.decodeFunctionResult)({abi:n.textResolverAbi,functionName:"text",data:u[0]});return""===y?null:y}catch(e){if(y)throw e;if((0,u.isNullUniversalResolverError)(e))return null;throw e}};const n=e("../../constants/abis.js"),i=e("../../utils/abi/decodeFunctionResult.js"),o=e("../../utils/abi/encodeFunctionData.js"),s=e("../../utils/chain/getChainContractAddress.js"),a=e("../../utils/encoding/toHex.js"),u=e("../../utils/ens/errors.js"),c=e("../../utils/ens/localBatchGatewayRequest.js"),l=e("../../utils/ens/namehash.js"),f=e("../../utils/ens/packetToBytes.js"),d=e("../../utils/getAction.js"),h=e("../public/readContract.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/ens/getEnsText.js"}],[7863,{"../utils/getAction.js":8100,"./public/createContractEventFilter.js":7867,"./public/estimateContractGas.js":7870,"./public/getContractEvents.js":7882,"./public/readContract.js":7897,"./public/simulateContract.js":7900,"./public/watchContractEvent.js":7908,"./wallet/writeContract.js":7966},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getContract=function({abi:e,address:t,client:r}){const h=r,[p,b]=h?"public"in h&&"wallet"in h?[h.public,h.wallet]:"public"in h?[h.public,undefined]:"wallet"in h?[undefined,h.wallet]:[h,h]:[undefined,undefined],m=p!==undefined&&null!==p,g=b!==undefined&&null!==b,y={};let v=!1,w=!1,_=!1;for(const t of e)if("function"===t.type?"view"===t.stateMutability||"pure"===t.stateMutability?v=!0:w=!0:"event"===t.type&&(_=!0),v&&w&&_)break;m&&(v&&(y.read=new Proxy({},{get:(r,i)=>(...r)=>{const{args:o,options:s}=f(r);return(0,n.getAction)(p,a.readContract,"readContract")({abi:e,address:t,functionName:i,args:o,...s})}})),w&&(y.simulate=new Proxy({},{get:(r,i)=>(...r)=>{const{args:o,options:s}=f(r);return(0,n.getAction)(p,u.simulateContract,"simulateContract")({abi:e,address:t,functionName:i,args:o,...s})}})),_&&(y.createEventFilter=new Proxy({},{get:(r,o)=>(...r)=>{const s=e.find(e=>"event"===e.type&&e.name===o),{args:a,options:u}=d(r,s);return(0,n.getAction)(p,i.createContractEventFilter,"createContractEventFilter")({abi:e,address:t,eventName:o,args:a,...u})}}),y.getEvents=new Proxy({},{get:(r,i)=>(...r)=>{const o=e.find(e=>"event"===e.type&&e.name===i),{args:a,options:u}=d(r,o);return(0,n.getAction)(p,s.getContractEvents,"getContractEvents")({abi:e,address:t,eventName:i,args:a,...u})}}),y.watchEvent=new Proxy({},{get:(r,i)=>(...r)=>{const o=e.find(e=>"event"===e.type&&e.name===i),{args:s,options:a}=d(r,o);return(0,n.getAction)(p,c.watchContractEvent,"watchContractEvent")({abi:e,address:t,eventName:i,args:s,...a})}})));g&&w&&(y.write=new Proxy({},{get:(r,i)=>(...r)=>{const{args:o,options:s}=f(r);return(0,n.getAction)(b,l.writeContract,"writeContract")({abi:e,address:t,functionName:i,args:o,...s})}}));(m||g)&&w&&(y.estimateGas=new Proxy({},{get:(r,i)=>(...r)=>{const{args:s,options:a}=f(r),u=p??b;return(0,n.getAction)(u,o.estimateContractGas,"estimateContractGas")({abi:e,address:t,functionName:i,args:s,...a,account:a.account??b.account})}}));return y.address=t,y.abi=e,y},r.getFunctionParameters=f,r.getEventParameters=d;const n=e("../utils/getAction.js"),i=e("./public/createContractEventFilter.js"),o=e("./public/estimateContractGas.js"),s=e("./public/getContractEvents.js"),a=e("./public/readContract.js"),u=e("./public/simulateContract.js"),c=e("./public/watchContractEvent.js"),l=e("./wallet/writeContract.js");function f(e){const t=e.length&&Array.isArray(e[0]);return{args:t?e[0]:[],options:(t?e[1]:e[0])??{}}}function d(e,t){let r=!1;Array.isArray(e[0])?r=!0:1===e.length?r=t.inputs.some(e=>e.indexed):2===e.length&&(r=!0);return{args:r?e[0]:undefined,options:(r?e[1]:e[0])??{}}}}}},{package:"viem",file:"node_modules/viem/_cjs/actions/getContract.js"}],[7864,{"../../accounts/utils/parseAccount.js":7856,"../../constants/abis.js":7980,"../../constants/contract.js":7984,"../../constants/contracts.js":7985,"../../errors/base.js":7994,"../../errors/chain.js":7999,"../../errors/contract.js":8e3,"../../utils/abi/decodeFunctionResult.js":8026,"../../utils/abi/encodeDeployData.js":8028,"../../utils/abi/encodeFunctionData.js":8031,"../../utils/ccip.js":8056,"../../utils/chain/getChainContractAddress.js":8060,"../../utils/encoding/toHex.js":8073,"../../utils/errors/getCallError.js":8085,"../../utils/formatters/extract.js":8092,"../../utils/formatters/transactionRequest.js":8099,"../../utils/promise/createBatchScheduler.js":8122,"../../utils/stateOverride.js":8159,"../../utils/transaction/assertRequest.js":8161,abitype:5787,"ox/BlockOverrides":7112},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.call=async function(t,r){const{account:E=t.account,authorizationList:T,batch:S=Boolean(t.batch?.multicall),blockNumber:O,blockTag:P=t.experimental_blockTag??"latest",accessList:A,blobs:I,blockOverrides:M,code:R,data:B,factory:N,factoryData:F,gas:C,gasPrice:L,maxFeePerBlobGas:U,maxFeePerGas:D,maxPriorityFeePerGas:z,nonce:q,to:H,value:W,stateOverride:G,...V}=r,$=E?(0,o.parseAccount)(E):undefined;if(R&&(N||F))throw new c.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(R&&H)throw new c.BaseError("Cannot provide both `code` & `to` as parameters.");const Y=R&&B,K=N&&F&&H&&B,J=Y||K,Z=Y?k({code:R,data:B}):K?function(e){const{data:t,factory:r,factoryData:i,to:o}=e;return(0,h.encodeDeployData)({abi:(0,n.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:u.deploylessCallViaFactoryBytecode,args:[o,t,r,i]})}({data:B,factory:N,factoryData:F,to:H}):B;try{(0,j.assertRequest)(r);const e=("bigint"==typeof O?(0,m.numberToHex)(O):undefined)||P,n=M?i.toRpc(M):undefined,o=(0,_.serializeStateOverride)(G),c=t.chain?.formatters?.transactionRequest?.format,h=(c||v.formatTransactionRequest)({...(0,y.extract)(V,{format:c}),accessList:A,account:$,authorizationList:T,blobs:I,data:Z,gas:C,gasPrice:L,maxFeePerBlobGas:U,maxFeePerGas:D,maxPriorityFeePerGas:z,nonce:q,to:J?undefined:H,value:W},"call");if(S&&function({request:e}){const{data:t,to:r,...n}=e;return!!t&&(!t.startsWith(a.aggregate3Signature)&&(!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)))}({request:h})&&!o&&!n)try{return await async function(e,t){const{batchSize:r=1024,deployless:n=!1,wait:i=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:o,blockTag:a=e.experimental_blockTag??"latest",data:c,to:h}=t,g=(()=>{if(n)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return(0,b.getChainContractAddress)({blockNumber:o,chain:e.chain,contract:"multicall3"});throw new l.ClientChainNotConfiguredError})(),y="bigint"==typeof o?(0,m.numberToHex)(o):undefined,v=y||a,{schedule:_}=(0,w.createBatchScheduler)({id:`${e.uid}.${v}`,wait:i,shouldSplitBatch(e){const t=e.reduce((e,{data:t})=>e+(t.length-2),0);return t>2*r},fn:async t=>{const r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,p.encodeFunctionData)({abi:s.multicall3Abi,args:[r],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{...null===g?{data:k({code:u.multicall3Bytecode,data:n})}:{to:g,data:n}},v]});return(0,d.decodeFunctionResult)({abi:s.multicall3Abi,args:[r],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:j,success:x}]=await _({data:c,to:h});if(!x)throw new f.RawContractError({data:j});return"0x"===j?{data:undefined}:{data:j}}(t,{...h,blockNumber:O,blockTag:P})}catch(e){if(!(e instanceof l.ClientChainNotConfiguredError||e instanceof l.ChainDoesNotSupportContract))throw e}const g=(()=>{const t=[h,e];return o&&n?[...t,o,n]:o?[...t,o]:n?[...t,{},n]:t})(),x=await t.request({method:"eth_call",params:g});return"0x"===x?{data:undefined}:{data:x}}catch(n){const i=x(n),{offchainLookup:o,offchainLookupSignature:s}=await Promise.resolve().then(()=>e("../../utils/ccip.js"));if(!1!==t.ccipRead&&i?.slice(0,10)===s&&H)return{data:await o(t,{data:i,to:H})};if(J&&"0x101bb98d"===i?.slice(0,10))throw new f.CounterfactualDeploymentFailedError({factory:N});throw(0,g.getCallError)(n,{...r,account:$,chain:t.chain})}},r.getRevertErrorData=x;const n=e("abitype"),i=e("ox/BlockOverrides"),o=e("../../accounts/utils/parseAccount.js"),s=e("../../constants/abis.js"),a=e("../../constants/contract.js"),u=e("../../constants/contracts.js"),c=e("../../errors/base.js"),l=e("../../errors/chain.js"),f=e("../../errors/contract.js"),d=e("../../utils/abi/decodeFunctionResult.js"),h=e("../../utils/abi/encodeDeployData.js"),p=e("../../utils/abi/encodeFunctionData.js"),b=e("../../utils/chain/getChainContractAddress.js"),m=e("../../utils/encoding/toHex.js"),g=e("../../utils/errors/getCallError.js"),y=e("../../utils/formatters/extract.js"),v=e("../../utils/formatters/transactionRequest.js"),w=e("../../utils/promise/createBatchScheduler.js"),_=e("../../utils/stateOverride.js"),j=e("../../utils/transaction/assertRequest.js");function k(e){const{code:t,data:r}=e;return(0,h.encodeDeployData)({abi:(0,n.parseAbi)(["constructor(bytes, bytes)"]),bytecode:u.deploylessCallViaBytecodeBytecode,args:[t,r]})}function x(e){if(!(e instanceof c.BaseError))return undefined;const t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/call.js"}],[7865,{"../../accounts/utils/parseAccount.js":7856,"../../utils/encoding/toHex.js":8073,"../../utils/errors/getCallError.js":8085,"../../utils/formatters/extract.js":8092,"../../utils/formatters/transactionRequest.js":8099,"../../utils/transaction/assertRequest.js":8161},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createAccessList=async function(e,t){const{account:r=e.account,blockNumber:c,blockTag:l="latest",blobs:f,data:d,gas:h,gasPrice:p,maxFeePerBlobGas:b,maxFeePerGas:m,maxPriorityFeePerGas:g,to:y,value:v,...w}=t,_=r?(0,n.parseAccount)(r):undefined;try{(0,u.assertRequest)(t);const r=("bigint"==typeof c?(0,i.numberToHex)(c):undefined)||l,n=e.chain?.formatters?.transactionRequest?.format,o=(n||a.formatTransactionRequest)({...(0,s.extract)(w,{format:n}),account:_,blobs:f,data:d,gas:h,gasPrice:p,maxFeePerBlobGas:b,maxFeePerGas:m,maxPriorityFeePerGas:g,to:y,value:v},"createAccessList"),j=await e.request({method:"eth_createAccessList",params:[o,r]});return{accessList:j.accessList,gasUsed:BigInt(j.gasUsed)}}catch(r){throw(0,o.getCallError)(r,{...t,account:_,chain:e.chain})}};const n=e("../../accounts/utils/parseAccount.js"),i=e("../../utils/encoding/toHex.js"),o=e("../../utils/errors/getCallError.js"),s=e("../../utils/formatters/extract.js"),a=e("../../utils/formatters/transactionRequest.js"),u=e("../../utils/transaction/assertRequest.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/createAccessList.js"}],[7866,{"../../utils/filters/createFilterRequestScope.js":8090},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createBlockFilter=async function(e){const t=(0,n.createFilterRequestScope)(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}};const n=e("../../utils/filters/createFilterRequestScope.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/createBlockFilter.js"}],[7867,{"../../utils/abi/encodeEventTopics.js":8030,"../../utils/encoding/toHex.js":8073,"../../utils/filters/createFilterRequestScope.js":8090},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createContractEventFilter=async function(e,t){const{address:r,abi:s,args:a,eventName:u,fromBlock:c,strict:l,toBlock:f}=t,d=(0,o.createFilterRequestScope)(e,{method:"eth_newFilter"}),h=u?(0,n.encodeEventTopics)({abi:s,args:a,eventName:u}):undefined,p=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:"bigint"==typeof c?(0,i.numberToHex)(c):c,toBlock:"bigint"==typeof f?(0,i.numberToHex)(f):f,topics:h}]});return{abi:s,args:a,eventName:u,id:p,request:d(p),strict:Boolean(l),type:"event"}};const n=e("../../utils/abi/encodeEventTopics.js"),i=e("../../utils/encoding/toHex.js"),o=e("../../utils/filters/createFilterRequestScope.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/createContractEventFilter.js"}],[7868,{"../../utils/abi/encodeEventTopics.js":8030,"../../utils/encoding/toHex.js":8073,"../../utils/filters/createFilterRequestScope.js":8090},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createEventFilter=async function(e,{address:t,args:r,event:s,events:a,fromBlock:u,strict:c,toBlock:l}={}){const f=a??(s?[s]:undefined),d=(0,o.createFilterRequestScope)(e,{method:"eth_newFilter"});let h=[];if(f){const e=f.flatMap(e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:r}));h=[e],s&&(h=h[0])}const p=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof u?(0,i.numberToHex)(u):u,toBlock:"bigint"==typeof l?(0,i.numberToHex)(l):l,...h.length?{topics:h}:{}}]});return{abi:f,args:r,eventName:s?s.name:undefined,fromBlock:u,id:p,request:d(p),strict:Boolean(c),toBlock:l,type:"event"}};const n=e("../../utils/abi/encodeEventTopics.js"),i=e("../../utils/encoding/toHex.js"),o=e("../../utils/filters/createFilterRequestScope.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/createEventFilter.js"}],[7869,{"../../utils/filters/createFilterRequestScope.js":8090},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createPendingTransactionFilter=async function(e){const t=(0,n.createFilterRequestScope)(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}};const n=e("../../utils/filters/createFilterRequestScope.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/createPendingTransactionFilter.js"}],[7870,{"../../accounts/utils/parseAccount.js":7856,"../../utils/abi/encodeFunctionData.js":8031,"../../utils/errors/getContractError.js":8086,"../../utils/getAction.js":8100,"./estimateGas.js":7872},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.estimateContractGas=async function(e,t){const{abi:r,address:u,args:c,functionName:l,dataSuffix:f=("string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value),...d}=t,h=(0,i.encodeFunctionData)({abi:r,args:c,functionName:l});try{return await(0,s.getAction)(e,a.estimateGas,"estimateGas")({data:`${h}${f?f.replace("0x",""):""}`,to:u,...d})}catch(e){const t=d.account?(0,n.parseAccount)(d.account):undefined;throw(0,o.getContractError)(e,{abi:r,address:u,args:c,docsPath:"/docs/contract/estimateContractGas",functionName:l,sender:t?.address})}};const n=e("../../accounts/utils/parseAccount.js"),i=e("../../utils/abi/encodeFunctionData.js"),o=e("../../utils/errors/getContractError.js"),s=e("../../utils/getAction.js"),a=e("./estimateGas.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/estimateContractGas.js"}],[7871,{"../../errors/fee.js":8007,"../../utils/getAction.js":8100,"./estimateMaxPriorityFeePerGas.js":7873,"./getBlock.js":7877,"./getGasPrice.js":7888},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.estimateFeesPerGas=async function(e,t){return u(e,t)},r.internal_estimateFeesPerGas=u;const n=e("../../errors/fee.js"),i=e("../../utils/getAction.js"),o=e("./estimateMaxPriorityFeePerGas.js"),s=e("./getBlock.js"),a=e("./getGasPrice.js");async function u(e,t){const{block:r,chain:u=e.chain,request:c,type:l="eip1559"}=t||{},f=await(async()=>"function"==typeof u?.fees?.baseFeeMultiplier?u.fees.baseFeeMultiplier({block:r,client:e,request:c}):u?.fees?.baseFeeMultiplier??1.2)();if(f<1)throw new n.BaseFeeScalarError;const d=10**(f.toString().split(".")[1]?.length??0),h=e=>e*BigInt(Math.ceil(f*d))/BigInt(d),p=r||await(0,i.getAction)(e,s.getBlock,"getBlock")({});if("function"==typeof u?.fees?.estimateFeesPerGas){const t=await u.fees.estimateFeesPerGas({block:r,client:e,multiply:h,request:c,type:l});if(null!==t)return t}if("eip1559"===l){if("bigint"!=typeof p.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;const t="bigint"==typeof c?.maxPriorityFeePerGas?c.maxPriorityFeePerGas:await(0,o.internal_estimateMaxPriorityFeePerGas)(e,{block:p,chain:u,request:c}),r=h(p.baseFeePerGas);return{maxFeePerGas:c?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:c?.gasPrice??h(await(0,i.getAction)(e,a.getGasPrice,"getGasPrice")({}))}}}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/estimateFeesPerGas.js"}],[7872,{"../../accounts/utils/parseAccount.js":7856,"../../errors/base.js":7994,"../../utils/authorization/recoverAuthorizationAddress.js":8044,"../../utils/encoding/toHex.js":8073,"../../utils/errors/getEstimateGasError.js":8087,"../../utils/formatters/extract.js":8092,"../../utils/formatters/transactionRequest.js":8099,"../../utils/stateOverride.js":8159,"../../utils/transaction/assertRequest.js":8161,"../wallet/prepareTransactionRequest.js":7949},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.estimateGas=async function(e,t){const{account:r=e.account,prepare:h=!0}=t,p=r?(0,n.parseAccount)(r):undefined,b=Array.isArray(h)?h:"local"!==p?.type?["blobVersionedHashes"]:undefined;try{const r=await(async()=>t.to?t.to:t.authorizationList&&t.authorizationList.length>0?await(0,o.recoverAuthorizationAddress)({authorization:t.authorizationList[0]}).catch(()=>{throw new i.BaseError("`to` is required. Could not infer from `authorizationList`")}):undefined)(),{accessList:n,authorizationList:a,blobs:m,blobVersionedHashes:g,blockNumber:y,blockTag:v,data:w,gas:_,gasPrice:j,maxFeePerBlobGas:k,maxFeePerGas:x,maxPriorityFeePerGas:E,nonce:T,value:S,stateOverride:O,...P}=h?await(0,d.prepareTransactionRequest)(e,{...t,parameters:b,to:r}):t;if(_&&t.gas!==_)return _;const A=("bigint"==typeof y?(0,s.numberToHex)(y):undefined)||v,I=(0,l.serializeStateOverride)(O);(0,f.assertRequest)(t);const M=e.chain?.formatters?.transactionRequest?.format,R=(M||c.formatTransactionRequest)({...(0,u.extract)(P,{format:M}),account:p,accessList:n,authorizationList:a,blobs:m,blobVersionedHashes:g,data:w,gasPrice:j,maxFeePerBlobGas:k,maxFeePerGas:x,maxPriorityFeePerGas:E,nonce:T,to:r,value:S},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:I?[R,A??e.experimental_blockTag??"latest",I]:A?[R,A]:[R]}))}catch(r){throw(0,a.getEstimateGasError)(r,{...t,account:p,chain:e.chain})}};const n=e("../../accounts/utils/parseAccount.js"),i=e("../../errors/base.js"),o=e("../../utils/authorization/recoverAuthorizationAddress.js"),s=e("../../utils/encoding/toHex.js"),a=e("../../utils/errors/getEstimateGasError.js"),u=e("../../utils/formatters/extract.js"),c=e("../../utils/formatters/transactionRequest.js"),l=e("../../utils/stateOverride.js"),f=e("../../utils/transaction/assertRequest.js"),d=e("../wallet/prepareTransactionRequest.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/estimateGas.js"}],[7873,{"../../errors/fee.js":8007,"../../utils/encoding/fromHex.js":8070,"../../utils/getAction.js":8100,"./getBlock.js":7877,"./getGasPrice.js":7888},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.estimateMaxPriorityFeePerGas=async function(e,t){return u(e,t)},r.internal_estimateMaxPriorityFeePerGas=u;const n=e("../../errors/fee.js"),i=e("../../utils/encoding/fromHex.js"),o=e("../../utils/getAction.js"),s=e("./getBlock.js"),a=e("./getGasPrice.js");async function u(e,t){const{block:r,chain:u=e.chain,request:c}=t||{};try{const t=u?.fees?.maxPriorityFeePerGas??u?.fees?.defaultPriorityFee;if("function"==typeof t){const n=r||await(0,o.getAction)(e,s.getBlock,"getBlock")({}),i=await t({block:n,client:e,request:c});if(null===i)throw new Error;return i}if(void 0!==t)return t;const n=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.hexToBigInt)(n)}catch{const[t,i]=await Promise.all([r?Promise.resolve(r):(0,o.getAction)(e,s.getBlock,"getBlock")({}),(0,o.getAction)(e,a.getGasPrice,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;const u=i-t.baseFeePerGas;return u<0n?0n:u}}}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/estimateMaxPriorityFeePerGas.js"}],[7874,{"../../accounts/utils/parseAccount.js":7856,"../../errors/fee.js":8007,"../../utils/errors/getTransactionError.js":8089,"../../utils/formatters/extract.js":8092,"../../utils/formatters/transaction.js":8097,"../../utils/formatters/transactionRequest.js":8099,"../../utils/getAction.js":8100,"../../utils/transaction/assertRequest.js":8161,"./getBlock.js":7877,"./getChainId.js":7880},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.fillTransaction=async function(e,t){const{account:r=e.account,accessList:h,authorizationList:p,chain:b=e.chain,blobVersionedHashes:m,blobs:g,data:y,gas:v,gasPrice:w,maxFeePerBlobGas:_,maxFeePerGas:j,maxPriorityFeePerGas:k,nonce:x,nonceManager:E,to:T,type:S,value:O,...P}=t,A=await(async()=>{if(!r)return x;if(!E)return x;if(void 0!==x)return x;const t=(0,n.parseAccount)(r),i=b?b.id:await(0,c.getAction)(e,d.getChainId,"getChainId")({});return await E.consume({address:t.address,chainId:i,client:e})})();(0,l.assertRequest)(t);const I=b?.formatters?.transactionRequest?.format,M=(I||u.formatTransactionRequest)({...(0,s.extract)(P,{format:I}),account:r?(0,n.parseAccount)(r):undefined,accessList:h,authorizationList:p,blobs:g,blobVersionedHashes:m,data:y,gas:v,gasPrice:w,maxFeePerBlobGas:_,maxFeePerGas:j,maxPriorityFeePerGas:k,nonce:A,to:T,type:S,value:O},"fillTransaction");try{const r=await e.request({method:"eth_fillTransaction",params:[M]}),n=(b?.formatters?.transaction?.format||a.formatTransaction)(r.tx);delete n.blockHash,delete n.blockNumber,delete n.r,delete n.s,delete n.transactionIndex,delete n.v,delete n.yParity,n.data=n.input,n.gas&&(n.gas=t.gas??n.gas),n.gasPrice&&(n.gasPrice=t.gasPrice??n.gasPrice),n.maxFeePerBlobGas&&(n.maxFeePerBlobGas=t.maxFeePerBlobGas??n.maxFeePerBlobGas),n.maxFeePerGas&&(n.maxFeePerGas=t.maxFeePerGas??n.maxFeePerGas),n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=t.maxPriorityFeePerGas??n.maxPriorityFeePerGas),n.nonce&&(n.nonce=t.nonce??n.nonce);const o=await(async()=>{if("function"==typeof b?.fees?.baseFeeMultiplier){const r=await(0,c.getAction)(e,f.getBlock,"getBlock")({});return b.fees.baseFeeMultiplier({block:r,client:e,request:t})}return b?.fees?.baseFeeMultiplier??1.2})();if(o<1)throw new i.BaseFeeScalarError;const s=10**(o.toString().split(".")[1]?.length??0),u=e=>e*BigInt(Math.ceil(o*s))/BigInt(s);return n.maxFeePerGas&&!t.maxFeePerGas&&(n.maxFeePerGas=u(n.maxFeePerGas)),n.gasPrice&&!t.gasPrice&&(n.gasPrice=u(n.gasPrice)),{raw:r.raw,transaction:{from:M.from,...n}}}catch(r){throw(0,o.getTransactionError)(r,{...t,chain:e.chain})}};const n=e("../../accounts/utils/parseAccount.js"),i=e("../../errors/fee.js"),o=e("../../utils/errors/getTransactionError.js"),s=e("../../utils/formatters/extract.js"),a=e("../../utils/formatters/transaction.js"),u=e("../../utils/formatters/transactionRequest.js"),c=e("../../utils/getAction.js"),l=e("../../utils/transaction/assertRequest.js"),f=e("./getBlock.js"),d=e("./getChainId.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/fillTransaction.js"}],[7875,{"../../constants/abis.js":7980,"../../utils/abi/decodeFunctionResult.js":8026,"../../utils/abi/encodeFunctionData.js":8031,"../../utils/encoding/toHex.js":8073,"../../utils/getAction.js":8100,"./call.js":7864},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getBalance=async function(e,{address:t,blockNumber:r,blockTag:c=e.experimental_blockTag??"latest"}){if(e.batch?.multicall&&e.chain?.contracts?.multicall3){const s=e.chain.contracts.multicall3.address,l=(0,o.encodeFunctionData)({abi:n.multicall3Abi,functionName:"getEthBalance",args:[t]}),{data:f}=await(0,a.getAction)(e,u.call,"call")({to:s,data:l,blockNumber:r,blockTag:c});return(0,i.decodeFunctionResult)({abi:n.multicall3Abi,functionName:"getEthBalance",args:[t],data:f||"0x"})}const l="bigint"==typeof r?(0,s.numberToHex)(r):undefined,f=await e.request({method:"eth_getBalance",params:[t,l||c]});return BigInt(f)};const n=e("../../constants/abis.js"),i=e("../../utils/abi/decodeFunctionResult.js"),o=e("../../utils/abi/encodeFunctionData.js"),s=e("../../utils/encoding/toHex.js"),a=e("../../utils/getAction.js"),u=e("./call.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getBalance.js"}],[7876,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getBlobBaseFee=async function(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getBlobBaseFee.js"}],[7877,{"../../errors/block.js":7996,"../../utils/encoding/toHex.js":8073,"../../utils/formatters/block.js":8091},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getBlock=async function(e,{blockHash:t,blockNumber:r,blockTag:s=e.experimental_blockTag??"latest",includeTransactions:a}={}){const u=a??!1,c=r!==undefined?(0,i.numberToHex)(r):undefined;let l=null;l=t?await e.request({method:"eth_getBlockByHash",params:[t,u]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[c||s,u]},{dedupe:Boolean(c)});if(!l)throw new n.BlockNotFoundError({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||o.formatBlock)(l,"getBlock")};const n=e("../../errors/block.js"),i=e("../../utils/encoding/toHex.js"),o=e("../../utils/formatters/block.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getBlock.js"}],[7878,{"../../utils/promise/withCache.js":8123},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getBlockNumberCache=function(e){return(0,n.getCache)(i(e))},r.getBlockNumber=async function(e,{cacheTime:t=e.cacheTime}={}){const r=await(0,n.withCache)(()=>e.request({method:"eth_blockNumber"}),{cacheKey:i(e.uid),cacheTime:t});return BigInt(r)};const n=e("../../utils/promise/withCache.js"),i=e=>`blockNumber.${e}`}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getBlockNumber.js"}],[7879,{"../../utils/encoding/fromHex.js":8070,"../../utils/encoding/toHex.js":8073},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getBlockTransactionCount=async function(e,{blockHash:t,blockNumber:r,blockTag:o="latest"}={}){const s=r!==undefined?(0,i.numberToHex)(r):undefined;let a;a=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[s||o]},{dedupe:Boolean(s)});return(0,n.hexToNumber)(a)};const n=e("../../utils/encoding/fromHex.js"),i=e("../../utils/encoding/toHex.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getBlockTransactionCount.js"}],[7880,{"../../utils/encoding/fromHex.js":8070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getChainId=async function(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,n.hexToNumber)(t)};const n=e("../../utils/encoding/fromHex.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getChainId.js"}],[7881,{"../../utils/encoding/toHex.js":8073},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getCode=async function(e,{address:t,blockNumber:r,blockTag:i="latest"}){const o=r!==undefined?(0,n.numberToHex)(r):undefined,s=await e.request({method:"eth_getCode",params:[t,o||i]},{dedupe:Boolean(o)});return"0x"===s?undefined:s};const n=e("../../utils/encoding/toHex.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getCode.js"}],[7882,{"../../utils/abi/getAbiItem.js":8036,"../../utils/getAction.js":8100,"./getLogs.js":7889},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getContractEvents=async function(e,t){const{abi:r,address:s,args:a,blockHash:u,eventName:c,fromBlock:l,toBlock:f,strict:d}=t,h=c?(0,n.getAbiItem)({abi:r,name:c}):undefined,p=h?undefined:r.filter(e=>"event"===e.type);return(0,i.getAction)(e,o.getLogs,"getLogs")({address:s,args:a,blockHash:u,event:h,events:p,fromBlock:l,toBlock:f,strict:d})};const n=e("../../utils/abi/getAbiItem.js"),i=e("../../utils/getAction.js"),o=e("./getLogs.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getContractEvents.js"}],[7883,{"../../utils/address/getAddress.js":8039,"../../utils/data/size.js":8066,"../../utils/data/slice.js":8067,"./getCode.js":7881},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getDelegation=async function(e,{address:t,blockNumber:r,blockTag:a="latest"}){const u=await(0,s.getCode)(e,{address:t,...r!==undefined?{blockNumber:r}:{blockTag:a}});return u?23!==(0,i.size)(u)?undefined:u.startsWith("0xef0100")?(0,n.getAddress)((0,o.slice)(u,3,23)):undefined:undefined};const n=e("../../utils/address/getAddress.js"),i=e("../../utils/data/size.js"),o=e("../../utils/data/slice.js"),s=e("./getCode.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getDelegation.js"}],[7884,{"../../errors/eip712.js":8003,"../../utils/getAction.js":8100,"./readContract.js":7897},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getEip712Domain=async function(e,t){const{address:r,factory:a,factoryData:u}=t;try{const[t,n,c,l,f,d,h]=await(0,i.getAction)(e,o.readContract,"readContract")({abi:s,address:r,functionName:"eip712Domain",factory:a,factoryData:u});return{domain:{name:n,version:c,chainId:Number(l),verifyingContract:f,salt:d},extensions:h,fields:t}}catch(e){const t=e;if("ContractFunctionExecutionError"===t.name&&"ContractFunctionZeroDataError"===t.cause.name)throw new n.Eip712DomainNotFoundError({address:r});throw t}};const n=e("../../errors/eip712.js"),i=e("../../utils/getAction.js"),o=e("./readContract.js");const s=[{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"}]}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getEip712Domain.js"}],[7885,{"../../utils/encoding/toHex.js":8073,"../../utils/formatters/feeHistory.js":8093},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getFeeHistory=async function(e,{blockCount:t,blockNumber:r,blockTag:o="latest",rewardPercentiles:s}){const a="bigint"==typeof r?(0,n.numberToHex)(r):undefined,u=await e.request({method:"eth_feeHistory",params:[(0,n.numberToHex)(t),a||o,s]},{dedupe:Boolean(a)});return(0,i.formatFeeHistory)(u)};const n=e("../../utils/encoding/toHex.js"),i=e("../../utils/formatters/feeHistory.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getFeeHistory.js"}],[7886,{"../../utils/abi/parseEventLogs.js":8037,"../../utils/formatters/log.js":8095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getFilterChanges=async function(e,{filter:t}){const r="strict"in t&&t.strict,o=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof o[0])return o;const s=o.map(e=>(0,i.formatLog)(e));return"abi"in t&&t.abi?(0,n.parseEventLogs)({abi:t.abi,logs:s,strict:r}):s};const n=e("../../utils/abi/parseEventLogs.js"),i=e("../../utils/formatters/log.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getFilterChanges.js"}],[7887,{"../../utils/abi/parseEventLogs.js":8037,"../../utils/formatters/log.js":8095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getFilterLogs=async function(e,{filter:t}){const r=t.strict??!1,o=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,i.formatLog)(e));return t.abi?(0,n.parseEventLogs)({abi:t.abi,logs:o,strict:r}):o};const n=e("../../utils/abi/parseEventLogs.js"),i=e("../../utils/formatters/log.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getFilterLogs.js"}],[7888,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getGasPrice=async function(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getGasPrice.js"}],[7889,{"../../utils/abi/encodeEventTopics.js":8030,"../../utils/abi/parseEventLogs.js":8037,"../../utils/encoding/toHex.js":8073,"../../utils/formatters/log.js":8095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getLogs=async function(e,{address:t,blockHash:r,fromBlock:a,toBlock:u,event:c,events:l,args:f,strict:d}={}){const h=d??!1,p=l??(c?[c]:undefined);let b,m=[];if(p){const e=p.flatMap(e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:l?undefined:f}));m=[e],c&&(m=m[0])}b=r?await e.request({method:"eth_getLogs",params:[{address:t,topics:m,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:m,fromBlock:"bigint"==typeof a?(0,o.numberToHex)(a):a,toBlock:"bigint"==typeof u?(0,o.numberToHex)(u):u}]});const g=b.map(e=>(0,s.formatLog)(e));return p?(0,i.parseEventLogs)({abi:p,args:f,logs:g,strict:h}):g};const n=e("../../utils/abi/encodeEventTopics.js"),i=e("../../utils/abi/parseEventLogs.js"),o=e("../../utils/encoding/toHex.js"),s=e("../../utils/formatters/log.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getLogs.js"}],[7890,{"../../utils/encoding/toHex.js":8073,"../../utils/formatters/proof.js":8096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getProof=async function(e,{address:t,blockNumber:r,blockTag:o,storageKeys:s}){const a=o??"latest",u=r!==undefined?(0,n.numberToHex)(r):undefined,c=await e.request({method:"eth_getProof",params:[t,s,u||a]});return(0,i.formatProof)(c)};const n=e("../../utils/encoding/toHex.js"),i=e("../../utils/formatters/proof.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getProof.js"}],[7891,{"../../utils/encoding/toHex.js":8073},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getStorageAt=async function(e,{address:t,blockNumber:r,blockTag:i="latest",slot:o}){const s=r!==undefined?(0,n.numberToHex)(r):undefined;return await e.request({method:"eth_getStorageAt",params:[t,o,s||i]})};const n=e("../../utils/encoding/toHex.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getStorageAt.js"}],[7892,{"../../errors/transaction.js":8013,"../../utils/encoding/toHex.js":8073,"../../utils/formatters/transaction.js":8097},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getTransaction=async function(e,{blockHash:t,blockNumber:r,blockTag:s,hash:a,index:u,sender:c,nonce:l}){const f=s||"latest",d=r!==undefined?(0,i.numberToHex)(r):undefined;let h=null;a?h=await e.request({method:"eth_getTransactionByHash",params:[a]},{dedupe:!0}):t?h=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.numberToHex)(u)]},{dedupe:!0}):(d||f)&&"number"==typeof u?h=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[d||f,(0,i.numberToHex)(u)]},{dedupe:Boolean(d)}):c&&"number"==typeof l&&(h=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[c,(0,i.numberToHex)(l)]},{dedupe:!0}));if(!h)throw new n.TransactionNotFoundError({blockHash:t,blockNumber:r,blockTag:f,hash:a,index:u});return(e.chain?.formatters?.transaction?.format||o.formatTransaction)(h,"getTransaction")};const n=e("../../errors/transaction.js"),i=e("../../utils/encoding/toHex.js"),o=e("../../utils/formatters/transaction.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getTransaction.js"}],[7893,{"../../utils/getAction.js":8100,"./getBlockNumber.js":7878,"./getTransaction.js":7892},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getTransactionConfirmations=async function(e,{hash:t,transactionReceipt:r}){const[s,a]=await Promise.all([(0,n.getAction)(e,i.getBlockNumber,"getBlockNumber")({}),t?(0,n.getAction)(e,o.getTransaction,"getTransaction")({hash:t}):undefined]),u=r?.blockNumber||a?.blockNumber;return u?s-u+1n:0n};const n=e("../../utils/getAction.js"),i=e("./getBlockNumber.js"),o=e("./getTransaction.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getTransactionConfirmations.js"}],[7894,{"../../utils/encoding/fromHex.js":8070,"../../utils/encoding/toHex.js":8073},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getTransactionCount=async function(e,{address:t,blockTag:r="latest",blockNumber:o}){const s=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof o?(0,i.numberToHex)(o):r]},{dedupe:Boolean(o)});return(0,n.hexToNumber)(s)};const n=e("../../utils/encoding/fromHex.js"),i=e("../../utils/encoding/toHex.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getTransactionCount.js"}],[7895,{"../../errors/transaction.js":8013,"../../utils/formatters/transactionReceipt.js":8098},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getTransactionReceipt=async function(e,{hash:t}){const r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new n.TransactionReceiptNotFoundError({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||i.formatTransactionReceipt)(r,"getTransactionReceipt")};const n=e("../../errors/transaction.js"),i=e("../../utils/formatters/transactionReceipt.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/getTransactionReceipt.js"}],[7896,{"../../constants/abis.js":7980,"../../constants/contracts.js":7985,"../../errors/abi.js":7991,"../../errors/base.js":7994,"../../errors/contract.js":8e3,"../../utils/abi/decodeFunctionResult.js":8026,"../../utils/abi/encodeFunctionData.js":8031,"../../utils/chain/getChainContractAddress.js":8060,"../../utils/errors/getContractError.js":8086,"../../utils/getAction.js":8100,"./readContract.js":7897},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.multicall=async function(e,t){const{account:r,authorizationList:p,allowFailure:b=!0,blockNumber:m,blockOverrides:g,blockTag:y,stateOverride:v}=t,w=t.contracts,{batchSize:_=t.batchSize??1024,deployless:j=t.deployless??!1}="object"==typeof e.batch?.multicall?e.batch.multicall:{},k=(()=>{if(t.multicallAddress)return t.multicallAddress;if(j)return null;if(e.chain)return(0,l.getChainContractAddress)({blockNumber:m,chain:e.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),x=[[]];let E=0,T=0;for(let e=0;e<w.length;e++){const{abi:t,address:n,args:i,functionName:o}=w[e];try{const e=(0,c.encodeFunctionData)({abi:t,args:i,functionName:o});T+=(e.length-2)/2,_>0&&T>_&&x[E].length>0&&(E++,T=(e.length-2)/2,x[E]=[]),x[E]=[...x[E],{allowFailure:!0,callData:e,target:n}]}catch(e){const s=(0,f.getContractError)(e,{abi:t,address:n,args:i,docsPath:"/docs/contract/multicall",functionName:o,sender:r});if(!b)throw s;x[E]=[...x[E],{allowFailure:!0,callData:"0x",target:n}]}}const S=await Promise.allSettled(x.map(t=>(0,d.getAction)(e,h.readContract,"readContract")({...null===k?{code:i.multicall3Bytecode}:{address:k},abi:n.multicall3Abi,account:r,args:[t],authorizationList:p,blockNumber:m,blockOverrides:g,blockTag:y,functionName:"aggregate3",stateOverride:v}))),O=[];for(let e=0;e<S.length;e++){const t=S[e];if("rejected"===t.status){if(!b)throw t.reason;for(let r=0;r<x[e].length;r++)O.push({status:"failure",error:t.reason,result:undefined});continue}const r=t.value;for(let t=0;t<r.length;t++){const{returnData:n,success:i}=r[t],{callData:s}=x[e][t],{abi:c,address:l,functionName:d,args:h}=w[O.length];try{if("0x"===s)throw new o.AbiDecodingZeroDataError;if(!i)throw new a.RawContractError({data:n});const e=(0,u.decodeFunctionResult)({abi:c,args:h,data:n,functionName:d});O.push(b?{result:e,status:"success"}:e)}catch(e){const t=(0,f.getContractError)(e,{abi:c,address:l,args:h,docsPath:"/docs/contract/multicall",functionName:d});if(!b)throw t;O.push({error:t,result:undefined,status:"failure"})}}}if(O.length!==w.length)throw new s.BaseError("multicall results mismatch");return O};const n=e("../../constants/abis.js"),i=e("../../constants/contracts.js"),o=e("../../errors/abi.js"),s=e("../../errors/base.js"),a=e("../../errors/contract.js"),u=e("../../utils/abi/decodeFunctionResult.js"),c=e("../../utils/abi/encodeFunctionData.js"),l=e("../../utils/chain/getChainContractAddress.js"),f=e("../../utils/errors/getContractError.js"),d=e("../../utils/getAction.js"),h=e("./readContract.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/multicall.js"}],[7897,{"../../utils/abi/decodeFunctionResult.js":8026,"../../utils/abi/encodeFunctionData.js":8031,"../../utils/errors/getContractError.js":8086,"../../utils/getAction.js":8100,"./call.js":7864},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readContract=async function(e,t){const{abi:r,address:u,args:c,functionName:l,...f}=t,d=(0,i.encodeFunctionData)({abi:r,args:c,functionName:l});try{const{data:t}=await(0,s.getAction)(e,a.call,"call")({...f,data:d,to:u});return(0,n.decodeFunctionResult)({abi:r,args:c,functionName:l,data:t||"0x"})}catch(e){throw(0,o.getContractError)(e,{abi:r,address:u,args:c,docsPath:"/docs/contract/readContract",functionName:l})}};const n=e("../../utils/abi/decodeFunctionResult.js"),i=e("../../utils/abi/encodeFunctionData.js"),o=e("../../utils/errors/getContractError.js"),s=e("../../utils/getAction.js"),a=e("./call.js")}}},{package:"viem",file:"node_modules/viem/_cjs/actions/public/readContract.js"}]],[],{});