LavaPack.loadBundle([[456,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,i.hasProperty)(e,"PreferencesController"))return e;if(!(0,i.isObject)(e.PreferencesController)){var t,r;const n=typeof e.PreferencesController;null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`state.PreferencesController is type: ${n}`)),e.PreferencesController={}}!1!==e.PreferencesController.useRequestQueue&&e.PreferencesController.useRequestQueue!==undefined||(e.PreferencesController.useRequestQueue=!0)}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=118}}},{package:"$root$",file:"app/scripts/migrations/118.ts"}],[4565,{"./toNumber":4567},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./toNumber"),i=1/0;t.exports=function(e){return e?(e=n(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}}}},{package:"lodash",file:"node_modules/lodash/toFinite.js"}],[4566,{"./toFinite":4565},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./toFinite");t.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}}}},{package:"lodash",file:"node_modules/lodash/toInteger.js"}],[4567,{"./_baseTrim":4461,"./isObject":4553,"./isSymbol":4557},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_baseTrim"),i=e("./isObject"),o=e("./isSymbol"),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(o(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):a.test(e)?s:+e}}}},{package:"lodash",file:"node_modules/lodash/toNumber.js"}],[457,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,function(e){const t=(null==e?void 0:e.AccountsController)||{};(0,n.isObject)(e.AccountsController)&&(0,i.hasProperty)(e.AccountsController,"internalAccounts")&&(0,i.hasProperty)(e.AccountsController.internalAccounts,"accounts")&&Array.isArray(Object.values(e.AccountsController.internalAccounts.accounts))&&Object.values(e.AccountsController.internalAccounts.accounts).length>0&&Object.values(t.internalAccounts.accounts).forEach(e=>{var t;null!==(t=e.metadata)&&void 0!==t&&t.importTime||(e.metadata.importTime=Date.now())})}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=119}}},{package:"$root$",file:"app/scripts/migrations/119.ts"}],[4570,{},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=u(e,0,!0),i&&(s[e]=r),r):(i=-128<=(e|=0)&&e<128)&&(n=o[e])?n:(r=u(e,e<0?-1:0,!1),i&&(o[e]=r),r)}function l(e,t){if(isNaN(e))return t?y:v;if(t){if(e<0)return y;if(e>=h)return _}else{if(e<=-b)return O;if(e+1>=b)return j}return e<0?l(-e,t).neg():u(e%p|0,e/p|0,t)}function u(e,t,n){return new r(e,t,n)}r.fromInt=a,r.fromNumber=l,r.fromBits=u;var c=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:v;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=l(c(r,8)),o=v,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+a),r);if(a<8){var d=l(c(r,a));o=o.mul(d).add(l(u))}else o=(o=o.mul(i)).add(l(u))}return o.unsigned=t,o}function d(e,t){return"number"==typeof e?l(e,t):"string"==typeof e?f(e,t):u(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}r.fromString=f,r.fromValue=d;var p=4294967296,h=p*p,b=h/2,m=a(1<<24),v=a(0);r.ZERO=v;var y=a(0,!0);r.UZERO=y;var g=a(1);r.ONE=g;var w=a(1,!0);r.UONE=w;var k=a(-1);r.NEG_ONE=k;var j=u(-1,2147483647,!1);r.MAX_VALUE=j;var _=u(-1,-1,!0);r.MAX_UNSIGNED_VALUE=_;var O=u(0,-2147483648,!1);r.MIN_VALUE=O;var T=r.prototype;T.toInt=function(){return this.unsigned?this.low>>>0:this.low},T.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},T.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(O)){var t=l(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=l(c(e,6),this.unsigned),o=this,s="";;){var a=o.div(i),u=(o.sub(a.mul(i)).toInt()>>>0).toString(e);if((o=a).isZero())return u+s;for(;u.length<6;)u="0"+u;s=""+u+s}},T.getHighBits=function(){return this.high},T.getHighBitsUnsigned=function(){return this.high>>>0},T.getLowBits=function(){return this.low},T.getLowBitsUnsigned=function(){return this.low>>>0},T.getNumBitsAbs=function(){if(this.isNegative())return this.eq(O)?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},T.isZero=function(){return 0===this.high&&0===this.low},T.eqz=T.isZero,T.isNegative=function(){return!this.unsigned&&this.high<0},T.isPositive=function(){return this.unsigned||this.high>=0},T.isOdd=function(){return!(1&~this.low)},T.isEven=function(){return!(1&this.low)},T.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)},T.eq=T.equals,T.notEquals=function(e){return!this.eq(e)},T.neq=T.notEquals,T.ne=T.notEquals,T.lessThan=function(e){return this.comp(e)<0},T.lt=T.lessThan,T.lessThanOrEqual=function(e){return this.comp(e)<=0},T.lte=T.lessThanOrEqual,T.le=T.lessThanOrEqual,T.greaterThan=function(e){return this.comp(e)>0},T.gt=T.greaterThan,T.greaterThanOrEqual=function(e){return this.comp(e)>=0},T.gte=T.greaterThanOrEqual,T.ge=T.greaterThanOrEqual,T.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},T.comp=T.compare,T.negate=function(){return!this.unsigned&&this.eq(O)?O:this.not().add(g)},T.neg=T.negate,T.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,l=e.low>>>16,c=0,f=0,p=0,h=0;return p+=(h+=o+(65535&e.low))>>>16,f+=(p+=i+l)>>>16,c+=(f+=r+a)>>>16,c+=t+s,u((p&=65535)<<16|(h&=65535),(c&=65535)<<16|(f&=65535),this.unsigned)},T.subtract=function(e){return n(e)||(e=d(e)),this.add(e.neg())},T.sub=T.subtract,T.multiply=function(e){if(this.isZero())return this;if(n(e)||(e=d(e)),t)return u(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?y:v;if(this.eq(O))return e.isOdd()?O:v;if(e.eq(O))return this.isOdd()?O:v;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 l(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,c=65535&e.high,f=e.low>>>16,p=65535&e.low,h=0,b=0,g=0,w=0;return g+=(w+=s*p)>>>16,b+=(g+=o*p)>>>16,g&=65535,b+=(g+=s*f)>>>16,h+=(b+=i*p)>>>16,b&=65535,h+=(b+=o*f)>>>16,b&=65535,h+=(b+=s*c)>>>16,h+=r*p+i*f+o*c+s*a,u((g&=65535)<<16|(w&=65535),(h&=65535)<<16|(b&=65535),this.unsigned)},T.mul=T.multiply,T.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?u((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:v;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(O))return e.eq(g)||e.eq(k)?O:e.eq(O)?g:(r=this.shr(1).div(e).shl(1)).eq(v)?e.isNegative()?g:k:(i=this.sub(e.mul(r)),o=r.add(i.div(e)));if(e.eq(O))return this.unsigned?y:v;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=v}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:c(2,s-48),f=l(r),p=f.mul(e);p.isNegative()||p.gt(i);)p=(f=l(r-=a,this.unsigned)).mul(e);f.isZero()&&(f=g),o=o.add(f),i=i.sub(p)}return o},T.div=T.divide,T.modulo=function(e){return n(e)||(e=d(e)),t?u((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))},T.mod=T.modulo,T.rem=T.modulo,T.not=function(){return u(~this.low,~this.high,this.unsigned)},T.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},T.clz=T.countLeadingZeros,T.countTrailingZeros=function(){return this.low?i(this.low):i(this.high)+32},T.ctz=T.countTrailingZeros,T.and=function(e){return n(e)||(e=d(e)),u(this.low&e.low,this.high&e.high,this.unsigned)},T.or=function(e){return n(e)||(e=d(e)),u(this.low|e.low,this.high|e.high,this.unsigned)},T.xor=function(e){return n(e)||(e=d(e)),u(this.low^e.low,this.high^e.high,this.unsigned)},T.shiftLeft=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):u(0,this.low<<e-32,this.unsigned)},T.shl=T.shiftLeft,T.shiftRight=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):u(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},T.shr=T.shiftRight,T.shiftRightUnsigned=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):u(32===e?this.high:this.high>>>e-32,0,this.unsigned)},T.shru=T.shiftRightUnsigned,T.shr_u=T.shiftRightUnsigned,T.rotateLeft=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?u(this.high,this.low,this.unsigned):e<32?(t=32-e,u(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),u(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},T.rotl=T.rotateLeft,T.rotateRight=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?u(this.high,this.low,this.unsigned):e<32?(t=32-e,u(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),u(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},T.rotr=T.rotateRight,T.toSigned=function(){return this.unsigned?u(this.low,this.high,!1):this},T.toUnsigned=function(){return this.unsigned?this:u(this.low,this.high,!0)},T.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},T.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]},T.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 x=r;return e.default=x,"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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>long",file:"node_modules/long/umd/index.js"}],[458,{"../../../shared/lib/sentry":5536,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=s,function(e){if(!(0,i.hasProperty)(e,"UserStorageController"))return e.UserStorageController={isProfileSyncingEnabled:null},e;if(!(0,n.isObject)(e.UserStorageController)||!(0,i.hasProperty)(e.UserStorageController,"isProfileSyncingEnabled"))return(0,o.captureException)(`Migration ${s}: Invalid UserStorageController state: ${typeof e.UserStorageController}`),e;e.UserStorageController.isProfileSyncingEnabled=null}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("../../../shared/lib/sentry");const s=r.version=120.1}}},{package:"$root$",file:"app/scripts/migrations/120.1.ts"}],[459,{"../../../shared/lib/sentry":5536,"@metamask/utils":2835,lodash:4561,loglevel:4569},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=l,function(e){(function(e){if(!(0,o.hasProperty)(e,"SnapController"))return;var t,r;if(!(0,o.isObject)(e.SnapController))return void(null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${l}: Invalid SnapController state of type '${typeof e.SnapController}'`)));delete e.SnapController.snapErrors})(e),function(e){if(!(0,o.hasProperty)(e,"SelectedNetworkController"))return;(0,o.isObject)(e.SelectedNetworkController)?(0,o.hasProperty)(e.SelectedNetworkController,"perDomainNetwork")&&delete e.SelectedNetworkController:(console.error(`Migration ${l}: Invalid SelectedNetworkController state of type '${typeof e.SelectedNetworkController}'`),delete e.SelectedNetworkController)}(e),function(e){if(!(0,o.hasProperty)(e,"NetworkController"))return;var t,r;if(!(0,o.isObject)(e.NetworkController))return void(null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${l}: Invalid NetworkController state of type '${typeof e.NetworkController}'`)));const n=e.NetworkController;if((0,o.hasProperty)(n,"providerConfig")&&n.providerConfig!==undefined){var i,a;if(!(0,o.isObject)(n.providerConfig))return void(null===(i=global.sentry)||void 0===i||null===(a=i.captureException)||void 0===a||a.call(i,new Error(`Migration ${l}: Invalid NetworkController providerConfig state of type '${typeof e.NetworkController.providerConfig}'`)));const{providerConfig:t}=n,r=[];if((0,o.hasProperty)(n,"networkConfigurations")){var u,c;if(!(0,o.isObject)(n.networkConfigurations))return void(null===(u=global.sentry)||void 0===u||null===(c=u.captureException)||void 0===c||c.call(u,new Error(`Migration ${l}: Invalid NetworkController networkConfigurations state of type '${typeof n.networkConfigurations}'`)));r.push(...Object.keys(n.networkConfigurations))}(0,o.hasProperty)(t,"id")&&("string"==typeof t.id&&r.includes(t.id)||(s.default.warn(`Migration ${l}: Removing invalid provider id ${t.id}`),delete t.id))}delete n.networkDetails,delete n.networkId,delete n.networkStatus,delete n.previousProviderStore,delete n.provider}(e),function(e){if(!(0,o.hasProperty)(e,"PhishingController"))return;if(!(0,o.isObject)(e.PhishingController))return void(0,a.captureException)(new Error(`Migration ${l}: Invalid PhishingController state of type '${typeof e.PhishingController}'`));(0,o.hasProperty)(e.PhishingController,"listState")&&delete e.PhishingController.listState}(e)}(t.data),t},r.version=void 0;var n,i=e("lodash"),o=e("@metamask/utils"),s=(n=e("loglevel"))&&n.__esModule?n:{default:n},a=e("../../../shared/lib/sentry");const l=r.version=120.2}}},{package:"$root$",file:"app/scripts/migrations/120.2.ts"}],[46,{"../../../../shared/lib/delegation":5519,"@metamask/delegation-controller":1358,"@metamask/transaction-controller":2789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DelegationControllerInit=void 0,r.awaitDeleteDelegationEntry=a;var n=e("@metamask/delegation-controller"),i=e("@metamask/transaction-controller"),o=e("../../../../shared/lib/delegation");const s=e=>(0,o.getDeleGatorEnvironment)(Number(e));async function a(e,t,{hash:r,txMeta:n,entryToStore:o}){let{id:s}=n,a="continue";const l=({transactionMeta:n})=>{if(n.id===s)if(n.status===i.TransactionStatus.dropped&&n.replacedById)s=n.replacedById;else{switch(n.type){case i.TransactionType.contractInteraction:case i.TransactionType.retry:switch(n.status){case i.TransactionStatus.confirmed:a="delete";break;case i.TransactionStatus.dropped:case i.TransactionStatus.failed:case i.TransactionStatus.rejected:a="unsubscribe";break;default:return}break;case i.TransactionType.cancel:a="unsubscribe";break;default:return void console.warn("awaitDeleteDelegationEntry: Unexpected tx type",n.type)}"delete"===a&&(e.delete(r),o&&e.store({entry:o})),"unsubscribe"!==a&&"delete"!==a||t.unsubscribe("TransactionController:transactionStatusUpdated",l)}};t.subscribe("TransactionController:transactionStatusUpdated",l)}r.DelegationControllerInit=({controllerMessenger:e,persistedState:t,initMessenger:r})=>{const i=new n.DelegationController({messenger:e,state:t.DelegationController,hashDelegation:o.getDelegationHashOffchain,getDelegationEnvironment:s});return e.registerActionHandler("DelegationController:signDelegation",i.signDelegation.bind(i)),{controller:i,api:{signDelegation:i.signDelegation.bind(i),storeDelegationEntry:i.store.bind(i),listDelegationEntries:i.list.bind(i),getDelegationEntry:i.retrieve.bind(i),getDelegationEntryChain:i.chain.bind(i),deleteDelegationEntry:i.delete.bind(i),awaitDeleteDelegationEntry:a.bind(null,i,r)}}}}}},{package:"$root$",file:"app/scripts/controller-init/delegation/delegation-controller-init.ts"}],[460,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(function(e){if(!(0,n.hasProperty)(e,"CurrencyController"))return;var t,r;if(!(0,n.isObject)(e.CurrencyController))return void(null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${o}: Invalid CurrencyController state of type '${typeof e.CurrencyController}'`)));delete e.CurrencyController.conversionDate,delete e.CurrencyController.conversionRate,delete e.CurrencyController.nativeCurrency,delete e.CurrencyController.pendingCurrentCurrency,delete e.CurrencyController.pendingNativeCurrency,delete e.CurrencyController.usdConversionRate})(e),function(e){if(!(0,n.hasProperty)(e,"PhishingController"))return;var t,r;if(!(0,n.isObject)(e.PhishingController))return void(null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${o}: Invalid PhishingController state of type '${typeof e.PhishingController}'`)));delete e.PhishingController.phishing,delete e.PhishingController.lastFetched}(e),function(e){if(!(0,n.hasProperty)(e,"NetworkController"))return;var t,r;if(!(0,n.isObject)(e.NetworkController))return void(null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${o}: Invalid NetworkController state of type '${typeof e.NetworkController}'`)));delete e.NetworkController.network}(e)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=120.4}}},{package:"$root$",file:"app/scripts/migrations/120.4.ts"}],[461,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"SelectedNetworkController"))return;if(!(0,n.isObject)(e.SelectedNetworkController))return console.error(`Migration ${o}: Invalid SelectedNetworkController state of type '${typeof e.SelectedNetworkController}'`),void delete e.SelectedNetworkController;if(!(0,n.hasProperty)(e.SelectedNetworkController,"domains"))return console.error(`Migration ${o}: Missing SelectedNetworkController domains state`),void delete e.SelectedNetworkController;if(!(0,n.isObject)(e.SelectedNetworkController.domains))return console.error(`Migration ${o}: Invalid SelectedNetworkController domains state of type '${typeof e.SelectedNetworkController.domains}'`),void delete e.SelectedNetworkController;if(!(0,n.hasProperty)(e,"NetworkController"))return void delete e.SelectedNetworkController;if(!(0,n.isObject)(e.NetworkController))return console.error(new Error(`Migration ${o}: Invalid NetworkController state of type '${typeof e.NetworkController}'`)),void delete e.SelectedNetworkController;if(!(0,n.hasProperty)(e.NetworkController,"networkConfigurations"))return void delete e.SelectedNetworkController;if(!(0,n.isObject)(e.NetworkController.networkConfigurations))return console.error(new Error(`Migration ${o}: Invalid NetworkController networkConfigurations state of type '${typeof e.NetworkController}'`)),void delete e.SelectedNetworkController;const t=[...s,...Object.keys(e.NetworkController.networkConfigurations)],r=Object.values(e.SelectedNetworkController.domains);for(const n of r)if("string"!=typeof n||!t.includes(n))return console.error(new Error(`Migration ${o}: Invalid networkConfigurationId found in SelectedNetworkController state: '${n}'`)),void delete e.SelectedNetworkController}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=120.5;const s=["mainnet","goerli","sepolia","linea-goerli","linea-sepolia","linea-mainnet"]}}},{package:"$root$",file:"app/scripts/migrations/120.5.ts"}],[462,{"@metamask/utils":2835,lodash:4561,loglevel:4569},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);return t.meta.version=a,function(e){if(!(0,i.hasProperty)(e,"TransactionController"))return void s.default.warn(`Migration ${a}: Missing TransactionController state`);var t;if(!(0,i.isObject)(e.TransactionController))return void(null===(t=global.sentry)||void 0===t||t.captureException(`Migration ${a}: Invalid TransactionController state of type '${typeof e.TransactionController}'`));const r=e.TransactionController;if(!(0,i.hasProperty)(r,"transactions"))return void s.default.warn(`Migration ${a}: Missing TransactionController transactions`);if(!Array.isArray(r.transactions))return s.default.error(new Error(`Migration ${a}: Invalid TransactionController transactions state of type '${typeof r.transactions}'`)),void delete r.transactions;const{transactions:n}=r,o=n.filter(i.isObject);if(n.length!==o.length){var c;const e=n.find(e=>!(0,i.isObject)(e));return void(null===(c=global.sentry)||void 0===c||c.captureException(`Migration ${a}: Invalid transaction of type '${typeof e}'`))}const f=o.filter(u);if(f.length!==o.length){var d;const e=o.find(e=>!u(e));return void(null===(d=global.sentry)||void 0===d||d.captureException(`Migration ${a}: Invalid transaction history of type '${typeof(null==e?void 0:e.history)}'`))}for(const e of f)e.history&&e.history.length>l&&(e.history=e.history.slice(0,l))}(t.data),t},r.version=void 0;var n,i=e("@metamask/utils"),o=e("lodash"),s=(n=e("loglevel"))&&n.__esModule?n:{default:n};const a=r.version=120.6,l=100;function u(e){return!(0,i.hasProperty)(e,"history")||Array.isArray(e.history)}}}},{package:"$root$",file:"app/scripts/migrations/120.6.ts"}],[463,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,function(e){(0,i.hasProperty)(e,"TokenRatesController")&&(delete e.TokenRatesController.contractExchangeRates,delete e.TokenRatesController.contractExchangeRatesByChainId)}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=120}}},{package:"$root$",file:"app/scripts/migrations/120.ts"}],[464,{"@metamask/utils":2835,lodash:4561,loglevel:4569},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);return t.meta.version=a,function(e){if(!(0,i.hasProperty)(e,"AccountsController"))return;const t=e.AccountsController;var r,n,l,u,c,f,d;if(!(0,o.isObject)(t))return void(null===(r=global.sentry)||void 0===r||r.captureException(new Error(`Migration ${a}: Invalid AccountsController state of type '${typeof t}'`)));if(!(0,i.hasProperty)(t,"internalAccounts"))return void(null===(n=global.sentry)||void 0===n||n.captureException(new Error(`Migration ${a}: Invalid AccountsController state, missing internalAccounts`)));if(!(0,o.isObject)(t.internalAccounts))return void(null===(l=global.sentry)||void 0===l||l.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state of type '${typeof t.internalAccounts}'`)));if(!(0,i.hasProperty)(t.internalAccounts,"selectedAccount"))return void(null===(u=global.sentry)||void 0===u||u.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state, missing selectedAccount`)));if("string"!=typeof t.internalAccounts.selectedAccount)return void(null===(c=global.sentry)||void 0===c||c.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.selectedAccount state of type '${typeof t.internalAccounts.selectedAccount}'`)));if(!(0,i.hasProperty)(t.internalAccounts,"accounts"))return void(null===(f=global.sentry)||void 0===f||f.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state, missing accounts`)));if(!(0,o.isObject)(t.internalAccounts.accounts))return void(null===(d=global.sentry)||void 0===d||d.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state of type '${typeof t.internalAccounts.accounts}'`)));if(0===Object.keys(t.internalAccounts.accounts).length)return void s.default.warn(`Migration ${a}: Skipping, no accounts found`);if(""===t.internalAccounts.selectedAccount)return void s.default.warn(`Migration ${a}: Skipping, no selected account set`);const p=Object.values(t.internalAccounts.accounts)[0];var h,b,m;if(!(0,o.isObject)(p))return void(null===(h=global.sentry)||void 0===h||h.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found of type '${typeof p}'`)));if(!(0,i.hasProperty)(p,"id"))return void(null===(b=global.sentry)||void 0===b||b.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found that is missing an id`)));if("string"!=typeof p.id)return void(null===(m=global.sentry)||void 0===m||m.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found with an id of type '${typeof p.id}'`)));(0,i.hasProperty)(t.internalAccounts.accounts,t.internalAccounts.selectedAccount)||(t.internalAccounts.selectedAccount=p.id)}(t.data),t},r.version=void 0;var n,i=e("@metamask/utils"),o=e("lodash"),s=(n=e("loglevel"))&&n.__esModule?n:{default:n};const a=r.version=121.1}}},{package:"$root$",file:"app/scripts/migrations/121.1.ts"}],[465,{"../../../shared/constants/network":5456,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=s,function(e){const t=e.NetworkController;if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(t)&&(0,n.hasProperty)(t,"networkConfigurations")&&(0,n.isObject)(t.networkConfigurations))for(const e of Object.values(t.networkConfigurations))(0,n.isObject)(e)&&e.chainId===o.CHAIN_IDS.POLYGON&&((0,n.hasProperty)(e,"rpcPrefs")&&(0,n.isObject)(e.rpcPrefs)&&(0,n.hasProperty)(e.rpcPrefs,"imageUrl")&&"./images/matic-token.svg"===e.rpcPrefs.imageUrl&&(e.rpcPrefs.imageUrl="./images/pol-token.svg"),(0,n.hasProperty)(e,"ticker")&&"MATIC"===e.ticker&&(e.ticker="POL"));(0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(t)&&(0,n.hasProperty)(t,"providerConfig")&&(0,n.isObject)(t.providerConfig)&&(0,n.hasProperty)(t.providerConfig,"chainId")&&t.providerConfig.chainId===o.CHAIN_IDS.POLYGON&&((0,n.hasProperty)(t.providerConfig,"rpcPrefs")&&(0,n.isObject)(t.providerConfig.rpcPrefs)&&(0,n.hasProperty)(t.providerConfig.rpcPrefs,"imageUrl")&&"./images/matic-token.svg"===t.providerConfig.rpcPrefs.imageUrl&&(t.providerConfig.rpcPrefs.imageUrl="./images/pol-token.svg"),(0,n.hasProperty)(t.providerConfig,"ticker")&&"MATIC"===t.providerConfig.ticker&&(t.providerConfig.ticker="POL"))}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=e("../../../shared/constants/network");const s=r.version=121.2}}},{package:"$root$",file:"app/scripts/migrations/121.2.ts"}],[466,{"../../../shared/constants/network":5456,"@metamask/controller-utils":1347,"@metamask/network-controller":2218,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=l,function(e){const t=(null==e?void 0:e.NetworkController)||{},r=(null==t?void 0:t.providerConfig)||{};if((null==r?void 0:r.chainId)!==a.CHAIN_IDS.LINEA_GOERLI)return e;const l=e.NetworkController;(0,o.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,o.hasProperty)(e.NetworkController,"providerConfig")&&(0,n.isObject)(e.NetworkController.providerConfig)&&(0,o.hasProperty)(e.NetworkController.providerConfig,"chainId")&&e.NetworkController.providerConfig.chainId===a.CHAIN_IDS.LINEA_GOERLI&&(l.providerConfig={type:i.NetworkType["linea-sepolia"],rpcPrefs:{},chainId:a.CHAIN_IDS.LINEA_SEPOLIA,nickname:a.LINEA_SEPOLIA_DISPLAY_NAME,rpcUrl:a.CHAIN_ID_TO_RPC_URL_MAP[a.CHAIN_IDS.LINEA_SEPOLIA],providerType:a.NETWORK_TYPES.LINEA_SEPOLIA,ticker:a.TEST_NETWORK_TICKER_MAP[a.NETWORK_TYPES.LINEA_SEPOLIA],id:a.NETWORK_TYPES.LINEA_SEPOLIA},l.selectedNetworkClientId=a.NETWORK_TYPES.LINEA_SEPOLIA,l.networksMetadata={...l.networksMetadata,"linea-sepolia":{EIPS:{1559:!0},status:s.NetworkStatus.Available}})}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/controller-utils"),o=e("@metamask/utils"),s=e("@metamask/network-controller"),a=e("../../../shared/constants/network");const l=r.version=121}}},{package:"$root$",file:"app/scripts/migrations/121.ts"}],[467,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,function(e){var t;if(!(0,i.hasProperty)(e,"PreferencesController"))return;if(!(0,i.isObject)(e.PreferencesController)){var r,n;const t=typeof e.PreferencesController;null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`state.PreferencesController is type: ${t}`))}(0,i.isObject)(null===(t=e.PreferencesController)||void 0===t?void 0:t.preferences)||(e.PreferencesController={preferences:{}});e.PreferencesController.preferences.redesignedConfirmationsEnabled=!0}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=122}}},{package:"$root$",file:"app/scripts/migrations/122.ts"}],[468,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController;if(null!=t&&t.preferences){var r;const e=null==t?void 0:t.useNonceField,n=null==t||null===(r=t.featureFlags)||void 0===r?void 0:r.sendHexData;t.preferences.showConfirmationAdvancedDetails=e||n}}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=123}}},{package:"$root$",file:"app/scripts/migrations/123.ts"}],[469,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;r&&(r.redesignedTransactionsEnabled=!1)}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=124}}},{package:"$root$",file:"app/scripts/migrations/124.ts"}],[4697,{"./util":4701},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"}],[4698,{"./base.js":4697,"./rfc4648":4700,"./util":4701,"@multiformats/base-x":2851},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"),l=[["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-_="]],u=l.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),c=l.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});t.exports={names:u,codes:c}}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/constants.js"}],[4699,{"./constants":4698,"./util":4701},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 l=Object.freeze(n.names),u=Object.freeze(n.codes);r.names=l,r.codes=u}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/index.js"}],[47,{"../../../shared/lib/sentry":5536,"@metamask/error-reporting-service":1748},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ErrorReportingServiceInit=void 0;var n=e("@metamask/error-reporting-service"),i=e("../../../shared/lib/sentry");r.ErrorReportingServiceInit=({controllerMessenger:e})=>({persistedStateKey:null,memStateKey:null,controller:new n.ErrorReportingService({messenger:e,captureException:i.captureException})})}}},{package:"$root$",file:"app/scripts/controller-init/error-reporting-service-init.ts"}],[470,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&!0===e.PreferencesController.useExternalServices&&(e.PreferencesController.useTokenDetection=!0);(0,n.hasProperty)(e,"AppMetadataController")&&(0,n.isObject)(e.AppMetadataController)&&delete e.AppMetadataController.showTokenAutodetectModalOnUpgrade}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=125.1}}},{package:"$root$",file:"app/scripts/migrations/125.1.ts"}],[4700,{},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,l=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[l++]=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"}],[4701,{},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"}],[4702,{"./util/as-uint8array.js":4706},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"}],[4703,{"./alloc.js":4702,"./util/as-uint8array.js":4706},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"}],[4704,{"./util/as-uint8array.js":4706,"./util/bases.js":4707},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"}],[4705,{"./util/bases.js":4707},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"}],[4706,{},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"}],[4707,{"../alloc.js":4702,"multiformats/basics":4723},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}),l={utf8:s,"utf-8":s,hex:n.bases.base16,latin1:a,ascii:a,binary:a,...n.bases};t.exports=l}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/util/bases.js"}],[4708,{},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"}],[4709,{"./maps":4710,"./util":4711,"uint8arrays/concat":4703,varint:5415},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:l,codeToName:u}=e("./maps");function c(e){const t=n.decode(e),r=u[t];if(r===undefined)throw new Error(`Code "${t}" not found`);return r}function f(e){return u[e]}function d(e){const t=l[e];if(t===undefined)throw new Error(`Codec "${e}" not found`);return t}function p(e){return n.decode(e)}function h(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:c,getNameFromCode:f,getCodeFromName:d,getCodeFromData:p,getVarintFromName:h,getVarintFromCode:b,getCodec:function(e){return c(e)},getName:function(e){return f(e)},getNumber:function(e){return d(e)},getCode:function(e){return p(e)},getCodeVarint:function(e){return h(e)},getVarint:function(e){return Array.from(b(e))},...a,nameToVarint:s,nameToCode:l,codeToName:u}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/index.js"}],[471,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"TxController")&&delete e.TxController}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=125}}},{package:"$root$",file:"app/scripts/migrations/125.ts"}],[4710,{"./generated-table":4708,"./util":4711},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 l=Object.freeze(n);t.exports={nameToVarint:o,constantToCode:s,nameToCode:l,codeToName:a}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/maps.js"}],[4711,{"uint8arrays/from-string":4704,"uint8arrays/to-string":4705,varint:5415},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"}],[4712,{"../../vendor/base-x.js":4734,"../bytes.js":4724},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("../../vendor/base-x.js"),i=e("../bytes.js");class o{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class s{constructor(e,t,r){if(this.name=e,this.prefix=t,t.codePointAt(0)===undefined)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return l(this,e)}}class a{constructor(e){this.decoders=e}or(e){return l(this,e)}decode(e){const t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const l=(e,t)=>new a({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class u{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new o(e,t,r),this.decoder=new s(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const c=({name:e,prefix:t,encode:r,decode:n})=>new u(e,t,r,n);r.Codec=u,r.baseX=({prefix:e,name:t,alphabet:r})=>{const{encode:o,decode:s}=n(r,t);return c({prefix:e,name:t,encode:o,decode:e=>i.coerce(s(e))})},r.from=c,r.or=l,r.rfc4648=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>c({prefix:t,name:e,encode:e=>((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})(e,n,r),decode:t=>((e,t,r,n)=>{const i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;const s=new Uint8Array(o*r/8|0);let a=0,l=0,u=0;for(let t=0;t<o;++t){const o=i[e[t]];if(o===undefined)throw new SyntaxError(`Non-${n} character`);l=l<<r|o,a+=r,a>=8&&(a-=8,s[u++]=255&l>>a)}if(a>=r||255&l<<8-a)throw new SyntaxError("Unexpected end of data");return s})(t,n,r,e)})}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base.js"}],[4713,{"./base.js":4712},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base10.js"}],[4714,{"./base.js":4712},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base16.js"}],[4715,{"./base.js":4712},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base2.js"}],[4716,{"./base.js":4712},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base256emoji.js"}],[4717,{"./base.js":4712},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:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),o=n.rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),s=n.rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),a=n.rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),l=n.rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),u=n.rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),c=n.rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),f=n.rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),d=n.rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});r.base32=i,r.base32hex=l,r.base32hexpad=c,r.base32hexpadupper=f,r.base32hexupper=u,r.base32pad=s,r.base32padupper=a,r.base32upper=o,r.base32z=d}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base32.js"}],[4718,{"./base.js":4712},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base36.js"}],[4719,{"./base.js":4712},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({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),o=n.baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});r.base58btc=i,r.base58flickr=o}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base58.js"}],[472,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if((0,n.hasProperty)(e,"PhishingController")&&(0,n.isObject)(e.PhishingController)&&(0,n.hasProperty)(e.PhishingController,"phishingLists")){const t=e.PhishingController;if(!Array.isArray(t.phishingLists))return console.error(`Migration ${o}: Invalid PhishingController.phishingLists state`),e;t.phishingLists=t.phishingLists.filter(e=>"MetaMask"===e.name),e.PhishingController=t}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=126.1}}},{package:"$root$",file:"app/scripts/migrations/126.1.ts"}],[4720,{"./base.js":4712},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base64.js"}],[4721,{"./base.js":4712},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base8.js"}],[4722,{"../bytes.js":4724,"./base.js":4712},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/identity.js"}],[4723,{"./bases/base10.js":4713,"./bases/base16.js":4714,"./bases/base2.js":4715,"./bases/base256emoji.js":4716,"./bases/base32.js":4717,"./bases/base36.js":4718,"./bases/base58.js":4719,"./bases/base64.js":4720,"./bases/base8.js":4721,"./bases/identity.js":4722,"./bytes.js":4724,"./cid.js":4725,"./codecs/json.js":4726,"./codecs/raw.js":4727,"./hashes/digest.js":4728,"./hashes/hasher.js":4729,"./hashes/identity.js":4730,"./hashes/sha2.js":4731,"./index.js":4732,"./varint.js":4733},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"),l=e("./bases/base32.js"),u=e("./bases/base36.js"),c=e("./bases/base58.js"),f=e("./bases/base64.js"),d=e("./bases/base256emoji.js"),p=e("./hashes/sha2.js"),h=e("./hashes/identity.js"),b=e("./codecs/raw.js"),m=e("./codecs/json.js");e("./index.js");var v=e("./cid.js"),y=e("./hashes/hasher.js"),g=e("./hashes/digest.js"),w=e("./varint.js"),k=e("./bytes.js");const j={...n,...i,...o,...s,...a,...l,...u,...c,...f,...d},_={...p,...h},O={raw:b,json:m};r.CID=v.CID,r.hasher=y,r.digest=g,r.varint=w,r.bytes=k,r.bases=j,r.codecs=O,r.hashes=_}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/basics.js"}],[4724,{},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 Uint8Array(0);r.coerce=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},r.empty=n,r.equals=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},r.fromHex=e=>{const t=e.match(/../g);return t?new Uint8Array(t.map(e=>parseInt(e,16))):n},r.fromString=e=>(new TextEncoder).encode(e),r.isBinary=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),r.toHex=e=>e.reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""),r.toString=e=>(new TextDecoder).decode(e)}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bytes.js"}],[4725,{"./bases/base32.js":4717,"./bases/base58.js":4719,"./bytes.js":4724,"./hashes/digest.js":4728,"./varint.js":4733},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("./varint.js"),i=e("./hashes/digest.js"),o=e("./bases/base58.js"),s=e("./bases/base32.js"),a=e("./bytes.js");class l{constructor(e,t,r,n){this.code=t,this.version=e,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:v,byteLength:v,code:m,version:m,multihash:m,bytes:m,_baseCache:v,asCID:v})}toV0(){if(0===this.version)return this;{const{code:e,multihash:t}=this;if(e!==d)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==p)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return l.createV0(t)}}toV1(){switch(this.version){case 0:{const{code:e,digest:t}=this.multihash,r=i.create(e,t);return l.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&i.equals(this.multihash,e.multihash)}toString(e){const{bytes:t,version:r,_baseCache:n}=this;return 0===r?c(t,n,e||o.base58btc.encoder):f(t,n,e||s.base32.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return y(/^0\.0/,g),!(!e||!e[b]&&e.asCID!==e)}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof l)return e;if(null!=e&&e.asCID===e){const{version:t,code:r,multihash:n,bytes:i}=e;return new l(t,r,n,i||h(t,r,n.bytes))}if(null!=e&&!0===e[b]){const{version:t,multihash:r,code:n}=e,o=i.decode(r);return l.create(t,n,o)}return null}static create(e,t,r){if("number"!=typeof t)throw new Error("String codecs are no longer supported");switch(e){case 0:if(t!==d)throw new Error(`Version 0 CID must use dag-pb (code: ${d}) block encoding`);return new l(e,t,r,r.bytes);case 1:{const n=h(e,t,r.bytes);return new l(e,t,r,n)}default:throw new Error("Invalid version")}}static createV0(e){return l.create(0,d,e)}static createV1(e,t){return l.create(1,e,t)}static decode(e){const[t,r]=l.decodeFirst(e);if(r.length)throw new Error("Incorrect length");return t}static decodeFirst(e){const t=l.inspectBytes(e),r=t.size-t.multihashSize,n=a.coerce(e.subarray(r,r+t.multihashSize));if(n.byteLength!==t.multihashSize)throw new Error("Incorrect length");const o=n.subarray(t.multihashSize-t.digestSize),s=new i.Digest(t.multihashCode,t.digestSize,o,n);return[0===t.version?l.createV0(s):l.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0;const r=()=>{const[r,i]=n.decode(e.subarray(t));return t+=i,r};let i=r(),o=d;if(18===i?(i=0,t=0):1===i&&(o=r()),0!==i&&1!==i)throw new RangeError(`Invalid CID version ${i}`);const s=t,a=r(),l=r(),u=t+l;return{version:i,codec:o,multihashCode:a,digestSize:l,multihashSize:u-s,size:u}}static parse(e,t){const[r,n]=u(e,t),i=l.decode(n);return i._baseCache.set(r,e),i}}const u=(e,t)=>{switch(e[0]){case"Q":{const r=t||o.base58btc;return[o.base58btc.prefix,r.decode(`${o.base58btc.prefix}${e}`)]}case o.base58btc.prefix:{const r=t||o.base58btc;return[o.base58btc.prefix,r.decode(e)]}case s.base32.prefix:{const r=t||s.base32;return[s.base32.prefix,r.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},c=(e,t,r)=>{const{prefix:n}=r;if(n!==o.base58btc.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);const i=t.get(n);if(null==i){const i=r.encode(e).slice(1);return t.set(n,i),i}return i},f=(e,t,r)=>{const{prefix:n}=r,i=t.get(n);if(null==i){const i=r.encode(e);return t.set(n,i),i}return i},d=112,p=18,h=(e,t,r)=>{const i=n.encodingLength(e),o=i+n.encodingLength(t),s=new Uint8Array(o+r.byteLength);return n.encodeTo(e,s,0),n.encodeTo(t,s,i),s.set(r,o),s},b=Symbol.for("@ipld/js-cid/CID"),m={writable:!1,configurable:!1,enumerable:!0},v={writable:!1,enumerable:!1,configurable:!1},y=(e,t)=>{if(!e.test("0.0.0-dev"))throw new Error(t);console.warn(t)},g="CID.isCID(v) is deprecated and will be removed in the next major release.\nFollowing code pattern:\n\nif (CID.isCID(value)) {\n  doSomethingWithCID(value)\n}\n\nIs replaced with:\n\nconst cid = CID.asCID(value)\nif (cid) {\n  // Make sure to use cid instead of value\n  doSomethingWithCID(cid)\n}\n";r.CID=l}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/cid.js"}],[4726,{},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/codecs/json.js"}],[4727,{"../bytes.js":4724},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/codecs/raw.js"}],[4728,{"../bytes.js":4724,"../varint.js":4733},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("../varint.js");class o{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}r.Digest=o,r.create=(e,t)=>{const r=t.byteLength,n=i.encodingLength(e),s=n+i.encodingLength(r),a=new Uint8Array(s+r);return i.encodeTo(e,a,0),i.encodeTo(r,a,n),a.set(t,s),new o(e,r,t,a)},r.decode=e=>{const t=n.coerce(e),[r,s]=i.decode(t),[a,l]=i.decode(t.subarray(s)),u=t.subarray(s+l);if(u.byteLength!==a)throw new Error("Incorrect length");return new o(r,a,u,t)},r.equals=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&n.equals(e.bytes,t.bytes)}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/hashes/digest.js"}],[4729,{"./digest.js":4728},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/hashes/hasher.js"}],[473,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&delete e.NetworkController.providerConfig}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=126}}},{package:"$root$",file:"app/scripts/migrations/126.ts"}],[4730,{"../bytes.js":4724,"./digest.js":4728},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/hashes/identity.js"}],[4731,{"./hasher.js":4729},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/hashes/sha2-browser.js"}],[4732,{"./bytes.js":4724,"./cid.js":4725,"./hashes/digest.js":4728,"./hashes/hasher.js":4729,"./varint.js":4733},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/index.js"}],[4733,{"../vendor/varint.js":4735},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("../vendor/varint.js");r.decode=(e,t=0)=>[n.decode(e,t),n.decode.bytes],r.encodeTo=(e,t,r=0)=>(n.encode(e,t,r),t),r.encodingLength=e=>n.encodingLength(e)}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/varint.js"}],[4734,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(255!==r[s])throw new TypeError(o+" is ambiguous");r[s]=i}var a=e.length,l=e.charAt(0),u=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function f(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[t]){for(var n=0,i=0;e[t]===l;)n++,t++;for(var o=(e.length-t)*u+1>>>0,s=new Uint8Array(o);e[t];){var c=r[e.charCodeAt(t)];if(255===c)return;for(var f=0,d=o-1;(0!==c||f<i)&&-1!==d;d--,f++)c+=a*s[d]>>>0,s[d]=c%256>>>0,c=c/256>>>0;if(0!==c)throw new Error("Non-zero carry");i=f,t++}if(" "!==e[t]){for(var p=o-i;p!==o&&0===s[p];)p++;for(var h=new Uint8Array(n+(o-p)),b=n;p!==o;)h[b++]=s[p++];return h}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var s=(o-i)*c+1>>>0,u=new Uint8Array(s);i!==o;){for(var f=t[i],d=0,p=s-1;(0!==f||d<n)&&-1!==p;p--,d++)f+=256*u[p]>>>0,u[p]=f%a>>>0,f=f/a>>>0;if(0!==f)throw new Error("Non-zero carry");n=d,i++}for(var h=s-n;h!==s&&0===u[h];)h++;for(var b=l.repeat(r);h<s;++h)b+=e.charAt(u[h]);return b},decodeUnsafe:f,decode:function(e){var r=f(e);if(r)return r;throw new Error(`Non-${t} character`)}}};t.exports=n}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/vendor/base-x.js"}],[4735,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=function e(t,r,n){r=r||[];var a=n=n||0;for(;t>=s;)r[n++]=255&t|i,t/=128;for(;t&o;)r[n++]=255&t|i,t>>>=7;return r[n]=0|t,e.bytes=n-a+1,r},i=128,o=-128,s=Math.pow(2,31);var a=function e(t,r){var n,i=0,o=0,s=r=r||0,a=t.length;do{if(s>=a)throw e.bytes=0,new RangeError("Could not decode varint");n=t[s++],i+=o<28?(n&u)<<o:(n&u)*Math.pow(2,o),o+=7}while(n>=l);return e.bytes=s-r,i},l=128,u=127;var c=Math.pow(2,7),f=Math.pow(2,14),d=Math.pow(2,21),p=Math.pow(2,28),h=Math.pow(2,35),b=Math.pow(2,42),m=Math.pow(2,49),v=Math.pow(2,56),y=Math.pow(2,63),g={encode:n,decode:a,encodingLength:function(e){return e<c?1:e<f?2:e<d?3:e<p?4:e<h?5:e<b?6:e<m?7:e<v?8:e<y?9:10}};t.exports=g}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/vendor/varint.js"}],[4736,{},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"}],[4737,{multibase:4699},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"}],[4738,{multibase:4699},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"}],[4739,{},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,l=r=r||0,u=t.length;do{if(l>=u)throw e.bytes=0,new RangeError("Could not decode varint");o=t[l++],s+=a<28?(o&i)<<a:(o&i)*Math.pow(2,a),a+=7}while(o>=n);return e.bytes=l-r,s};var n=128,i=127}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/decode.js"}],[474,{"../../../shared/constants/network":5456,"@metamask/utils":2835,lodash:4561,"uri-js":5367},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=l,function(e){var t;var r,i,a,l,u,c,f,d;if(!(0,n.hasProperty)(e,"NetworkController"))return null===(r=global.sentry)||void 0===r||null===(i=r.captureException)||void 0===i||i.call(r,new Error("state.NetworkController is not defined")),e;if(!(0,n.isObject)(e.NetworkController))return null===(a=global.sentry)||void 0===a||null===(l=a.captureException)||void 0===l||l.call(a,new Error("typeof state.NetworkController is "+typeof e.NetworkController)),e;if(!(0,n.hasProperty)(e,"TransactionController"))return null===(u=global.sentry)||void 0===u||null===(c=u.captureException)||void 0===c||c.call(u,new Error("state.TransactionController is not defined")),e;if(!(0,n.isObject)(e.TransactionController))return null===(f=global.sentry)||void 0===f||null===(d=f.captureException)||void 0===d||d.call(f,new Error("typeof state.TransactionController is "+typeof e.TransactionController)),e;const p=e.NetworkController;let h=(0,n.isObject)(p.networkConfigurations)?Object.values(p.networkConfigurations):[];h=[{type:"infura",id:"mainnet",chainId:"0x1",ticker:"ETH",nickname:s.MAINNET_DISPLAY_NAME,rpcUrl:"https://mainnet.infura.io/v3/{infuraProjectId}",rpcPrefs:{blockExplorerUrl:"https://etherscan.io"}},{type:"infura",id:"sepolia",chainId:"0xaa36a7",ticker:"SepoliaETH",nickname:s.SEPOLIA_DISPLAY_NAME,rpcUrl:"https://sepolia.infura.io/v3/{infuraProjectId}",rpcPrefs:{blockExplorerUrl:"https://sepolia.etherscan.io"}},{type:"infura",id:"linea-sepolia",chainId:"0xe705",ticker:"LineaETH",nickname:s.LINEA_SEPOLIA_DISPLAY_NAME,rpcUrl:"https://linea-sepolia.infura.io/v3/{infuraProjectId}",rpcPrefs:{blockExplorerUrl:"https://sepolia.lineascan.build"}},{type:"infura",id:"linea-mainnet",chainId:"0xe708",ticker:"ETH",nickname:s.LINEA_MAINNET_DISPLAY_NAME,rpcUrl:"https://linea-mainnet.infura.io/v3/{infuraProjectId}",rpcPrefs:{blockExplorerUrl:"https://lineascan.build"}},...h];const b=h.reduce((e,t)=>{var r;(0,n.isObject)(t)&&"string"==typeof t.chainId&&(e[r=t.chainId]??(e[r]=[])).push(t);return e},{}),m=Array.isArray(e.TransactionController.transactions)?e.TransactionController.transactions.filter(e=>(0,n.isObject)(e)&&"number"==typeof e.time&&"string"==typeof e.networkClientId).sort((e,t)=>t.time-e.time):[],v=Object.entries(b).reduce((e,[t,r])=>{var i,a,l,u;let c;c=r.find(e=>e.id===p.selectedNetworkClientId),c||m.filter(e=>e.chainId===t).some(e=>c=r.find(t=>t.id===e.networkClientId)),c||(c=r.find(e=>"infura"!==e.type));const f=r.reduce((t,r)=>{if(r.id&&r.rpcUrl&&"string"==typeof r.rpcUrl&&function(e){const t=o.parse(e);return t.error===undefined&&("http"===t.scheme||"https"===t.scheme)}(r.rpcUrl)){const i=h.some(e=>(0,n.isObject)(e)&&"string"==typeof e.rpcUrl&&"string"==typeof r.rpcUrl&&e.id!==r.id&&o.equal(e.rpcUrl,r.rpcUrl)&&e.id===p.selectedNetworkClientId),s=[...Object.values(e).flatMap(e=>(0,n.isObject)(e)?e.rpcEndpoints:[]),...t].some(e=>(0,n.isObject)(e)&&"string"==typeof e.url&&"string"==typeof r.rpcUrl&&o.equal(e.url,r.rpcUrl));i||s||t.push({networkClientId:r.id,url:r.rpcUrl,type:"infura"===r.type?"infura":"custom",..."infura"!==r.type&&"string"==typeof r.nickname&&r.nickname&&{name:r.nickname}})}return t},[]);if(0===f.length)return e;const d=Math.max(f.findIndex(e=>{var t;return e.networkClientId===(null===(t=c)||void 0===t?void 0:t.id)}),0),b=[...r.reduce((e,t)=>((0,n.isObject)(t.rpcPrefs)&&"string"==typeof t.rpcPrefs.blockExplorerUrl&&t.rpcPrefs.blockExplorerUrl&&e.add(t.rpcPrefs.blockExplorerUrl),e),new Set)],v=0===b.length?undefined:Math.max(b.findIndex(e=>{var t;return(0,n.isObject)(null===(t=c)||void 0===t?void 0:t.rpcPrefs)&&e===c.rpcPrefs.blockExplorerUrl}),0),y=s.NETWORK_TO_NAME_MAP[t]??(null===(i=c)||void 0===i?void 0:i.nickname)??(null===(a=r.find(e=>e.nickname))||void 0===a?void 0:a.nickname),g=s.CHAIN_ID_TO_CURRENCY_SYMBOL_MAP[t]??(null===(l=c)||void 0===l?void 0:l.ticker)??(null===(u=r.find(e=>e.ticker))||void 0===u?void 0:u.ticker);return e[t]={chainId:t,rpcEndpoints:f,defaultRpcEndpointIndex:d,blockExplorerUrls:b,...v!==undefined&&{defaultBlockExplorerUrlIndex:v},name:y,nativeCurrency:g},e},{}),y=e=>{const t=h.find(t=>(0,n.isObject)(t)&&t.id===e);return(0,n.isObject)(t)&&"string"==typeof(null==t?void 0:t.chainId)?null==t?void 0:t.chainId:undefined};let g=null===(t=Object.values(v).flatMap(e=>(0,n.isObject)(e)&&Array.isArray(e.rpcEndpoints)?e.rpcEndpoints:[]).find(e=>e.networkClientId===p.selectedNetworkClientId))||void 0===t?void 0:t.networkClientId;if(!g){const e=v[y(p.selectedNetworkClientId)??"0x1"];g=(0,n.isObject)(e)&&Array.isArray(e.rpcEndpoints)&&"number"==typeof e.defaultRpcEndpointIndex?e.rpcEndpoints[e.defaultRpcEndpointIndex].networkClientId:"mainnet"}if((0,n.hasProperty)(e,"SelectedNetworkController")&&(0,n.isObject)(e.SelectedNetworkController)&&(0,n.hasProperty)(e.SelectedNetworkController,"domains")&&(0,n.isObject)(e.SelectedNetworkController.domains))for(const[t,r]of Object.entries(e.SelectedNetworkController.domains)){let i;const o=y(r);if(o){const e=v[o];(0,n.isObject)(e)&&Array.isArray(e.rpcEndpoints)&&"number"==typeof e.defaultRpcEndpointIndex&&(i=e.rpcEndpoints[e.defaultRpcEndpointIndex].networkClientId)}i?e.SelectedNetworkController.domains[t]=i:delete e.SelectedNetworkController.domains[t]}e.NetworkController={selectedNetworkClientId:g,networkConfigurationsByChainId:v,networksMetadata:p.networksMetadata??{}},(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(0,n.hasProperty)(e.PreferencesController,"preferences")&&(0,n.isObject)(e.PreferencesController.preferences)&&(e.PreferencesController.preferences.showMultiRpcModal=Object.values(v).some(e=>(0,n.isObject)(e)&&Array.isArray(e.rpcEndpoints)&&e.rpcEndpoints.length>1));(0,n.hasProperty)(e,"NetworkOrderController")&&(0,n.isObject)(e.NetworkOrderController)&&Array.isArray(e.NetworkOrderController.orderedNetworkList)&&(e.NetworkOrderController.orderedNetworkList=[...new Set(e.NetworkOrderController.orderedNetworkList.map(e=>e.networkId))].map(e=>({networkId:e})))}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(e("uri-js")),s=e("../../../shared/constants/network");function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}const l=r.version=127}}},{package:"$root$",file:"app/scripts/migrations/127.ts"}],[4740,{},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"}],[4741,{"./decode.js":4739,"./encode.js":4740,"./length.js":4742},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"}],[4742,{},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),l=Math.pow(2,42),u=Math.pow(2,49),c=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<l?6:e<u?7:e<c?8:e<f?9:10}}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/length.js"}],[4743,{},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"}],[4744,{"./constants":4743,multibase:4699,"uint8arrays/concat":4736,"uint8arrays/from-string":4737,"uint8arrays/to-string":4738,varint:4741},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"),l=e("uint8arrays/concat"),u={};for(const e in o){const t=e;u[o[t]]=t}function c(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(!p(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:u[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(u[t]===undefined&&!d(t))throw new Error(`Unrecognized function code: ${t}`);return t}function d(e){return e>0&&e<16}function p(e){return!!d(e)||!!u[e]}function h(e){c(e)}Object.freeze(u),t.exports={names:o,codes:u,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:c,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 l([o,s,e],o.length+s.length+e.length)},coerceCode:f,isAppCode:d,validate:h,prefix:function(e){return h(e),e.subarray(0,2)},isValidCode:p}}}},{package:"@ensdomains/content-hash>cids>multihashes",file:"node_modules/multihashes/src/index.js"}],[475,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(0,n.isObject)(e.PreferencesController.preferences)&&delete e.PreferencesController.preferences.useNativeCurrencyAsPrimaryCurrency}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=128}}},{package:"$root$",file:"app/scripts/migrations/128.ts"}],[476,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(0,n.isObject)(e.PreferencesController.preferences)&&e.PreferencesController.preferences.shouldShowAggregatedBalancePopover===undefined&&(e.PreferencesController.preferences.shouldShowAggregatedBalancePopover=!0)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=129}}},{package:"$root$",file:"app/scripts/migrations/129.ts"}],[477,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(0,n.hasProperty)(e.PreferencesController,"preferences")&&(0,n.isObject)(e.PreferencesController.preferences)&&!e.PreferencesController.preferences.tokenSortConfig&&(e.PreferencesController.preferences.tokenSortConfig={key:"tokenFiatAmount",order:"dsc",sortCallback:"stringNumeric"})}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=130}}},{package:"$root$",file:"app/scripts/migrations/130.ts"}],[478,{"../../../shared/constants/network":5456,"@metamask/network-controller":2218,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);return t.meta.version=a,t.data=function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.hasProperty)(e.NetworkController,"networkConfigurationsByChainId")&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)){const{networkConfigurationsByChainId:t}=e.NetworkController;if(!Object.entries(t).filter(([e])=>![...s.infuraChainIdsTestNets,s.CHAIN_IDS.LINEA_MAINNET].includes(e)).some(([,e])=>{var t;if(!(0,n.isObject)(e)||!Array.isArray(e.rpcEndpoints)||"number"!=typeof e.defaultRpcEndpointIndex)return!1;const r=null==e||null===(t=e.rpcEndpoints)||void 0===t?void 0:t[null==e?void 0:e.defaultRpcEndpointIndex];if(!(0,n.isObject)(r)||"string"!=typeof r.url)return!1;try{const e=new URL(r.url).host;return r.type===i.RpcEndpointType.Infura||s.allowedInfuraHosts.includes(e)}catch{return!1}}))return e;const r=t[l];if((0,n.isObject)(r)){const{rpcEndpoints:i}=r;if(Array.isArray(i)){const o=i.findIndex(e=>(0,n.isObject)(e)&&"https://mainnet.base.org"===e.url);if(-1!==o)return i[o]={...i[o],url:`https://base-mainnet.infura.io/v3/${s.infuraProjectId}`},t[l]={...r,rpcEndpoints:i},{...e,NetworkController:{...e.NetworkController,networkConfigurationsByChainId:t}}}}}return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("@metamask/network-controller"),o=e("lodash"),s=e("../../../shared/constants/network");const a=r.version=131.1,l="0x2105"}}},{package:"$root$",file:"app/scripts/migrations/131.1.ts"}],[479,{"@metamask/utils":2835,lodash:4561,loglevel:4569},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);return t.meta.version=a,function(e){if(!(0,i.hasProperty)(e,"AccountsController"))return;const t=e.AccountsController;var r,n,l,u,c,f,d;if(!(0,o.isObject)(t))return void(null===(r=global.sentry)||void 0===r||r.captureException(new Error(`Migration ${a}: Invalid AccountsController state of type '${typeof t}'`)));if(!(0,i.hasProperty)(t,"internalAccounts"))return void(null===(n=global.sentry)||void 0===n||n.captureException(new Error(`Migration ${a}: Invalid AccountsController state, missing internalAccounts`)));if(!(0,o.isObject)(t.internalAccounts))return void(null===(l=global.sentry)||void 0===l||l.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state of type '${typeof t.internalAccounts}'`)));if(!(0,i.hasProperty)(t.internalAccounts,"selectedAccount"))return void(null===(u=global.sentry)||void 0===u||u.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state, missing selectedAccount`)));if("string"!=typeof t.internalAccounts.selectedAccount)return void(null===(c=global.sentry)||void 0===c||c.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.selectedAccount state of type '${typeof t.internalAccounts.selectedAccount}'`)));if(!(0,i.hasProperty)(t.internalAccounts,"accounts"))return void(null===(f=global.sentry)||void 0===f||f.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state, missing accounts`)));if(!(0,o.isObject)(t.internalAccounts.accounts))return void(null===(d=global.sentry)||void 0===d||d.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state of type '${typeof t.internalAccounts.accounts}'`)));if(0===Object.keys(t.internalAccounts.accounts).length)return void(t.internalAccounts.selectedAccount="");if(""===t.internalAccounts.selectedAccount)return void s.default.warn(`Migration ${a}: Skipping, no selected account set`);const p=Object.values(t.internalAccounts.accounts)[0];var h,b,m;if(!(0,o.isObject)(p))return void(null===(h=global.sentry)||void 0===h||h.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found of type '${typeof p}'`)));if(!(0,i.hasProperty)(p,"id"))return void(null===(b=global.sentry)||void 0===b||b.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found that is missing an id`)));if("string"!=typeof p.id)return void(null===(m=global.sentry)||void 0===m||m.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found with an id of type '${typeof p.id}'`)));(0,i.hasProperty)(t.internalAccounts.accounts,t.internalAccounts.selectedAccount)||(t.internalAccounts.selectedAccount=p.id)}(t.data),t},r.version=void 0;var n,i=e("@metamask/utils"),o=e("lodash"),s=(n=e("loglevel"))&&n.__esModule?n:{default:n};const a=r.version=131}}},{package:"$root$",file:"app/scripts/migrations/131.ts"}],[4792,{},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 l=t.excludeMain?e:n(e,t,s,e);return o.set(e,l),Reflect.apply(l,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,l=(t.include?t.include.some(o):!t.exclude.some(o))&&a;return n[r]=l,l})(e,r)||a===Function.prototype[r])return a;const l=o.get(a);if(l)return l;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"}],[48,{"../../../../shared/modules/environment":5556,"@metamask/gator-permissions-controller":1975,"@metamask/snaps-utils":2712},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.GatorPermissionsControllerInit=void 0;var n=e("@metamask/gator-permissions-controller"),i=e("@metamask/snaps-utils"),o=e("../../../../shared/modules/environment");const s=()=>{const e="npm:@metamask/gator-permissions-snap";if(e!==undefined)try{(0,i.assertIsValidSnapId)(e)}catch(e){throw new Error("GATOR_PERMISSIONS_PROVIDER_SNAP_ID must be set to a valid snap id",{cause:e})}const t={isGatorPermissionsEnabled:(0,o.isGatorPermissionsFeatureEnabled)()};return e&&(t.gatorPermissionsProviderSnapId=e),t};r.GatorPermissionsControllerInit=({controllerMessenger:e,persistedState:t})=>{const r=new n.GatorPermissionsController({messenger:e,state:{...s(),...t.GatorPermissionsController}});return{controller:r,api:{fetchAndUpdateGatorPermissions:r.fetchAndUpdateGatorPermissions.bind(r)}}}}}},{package:"$root$",file:"app/scripts/controller-init/gator-permissions/gator-permissions-controller-init.ts"}],[480,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){var t;if(!(0,n.isObject)(null==e?void 0:e.PreferencesController))return e;(0,n.isObject)(null===(t=e.PreferencesController)||void 0===t?void 0:t.preferences)||(e.PreferencesController={...e.PreferencesController,preferences:{}});const r=e.PreferencesController;r.preferences.redesignedTransactionsEnabled=!0}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=132}}},{package:"$root$",file:"app/scripts/migrations/132.ts"}],[481,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"TokensController"))return;const t=e.TokensController;if(!(0,n.isObject)(t)){var r;return void(null===(r=global.sentry)||void 0===r||r.captureException(new Error(`Migration ${o}: Invalid TokensController state of type '${typeof t}'`)))}if((0,n.hasProperty)(t,"allTokens")){var i;if((0,n.isObject)(t.allTokens))t.allTokens=s(t.allTokens,"allTokens");else null===(i=global.sentry)||void 0===i||i.captureException(new Error(`Migration ${o}: Invalid allTokens state of type '${typeof t.allTokens}'`))}if((0,n.hasProperty)(t,"allDetectedTokens")){var a;if((0,n.isObject)(t.allDetectedTokens))t.allDetectedTokens=s(t.allDetectedTokens,"allDetectedTokens");else null===(a=global.sentry)||void 0===a||a.captureException(new Error(`Migration ${o}: Invalid allDetectedTokens state of type '${typeof t.allDetectedTokens}'`))}if((0,n.hasProperty)(t,"tokens")&&Array.isArray(t.tokens))t.tokens=t.tokens.filter(e=>{var t;return!((0,n.isObject)(e)&&(0,n.hasProperty)(e,"decimals")&&null===e.decimals&&(0,n.hasProperty)(e,"address"))||(null===(t=global.sentry)||void 0===t||t.captureMessage(`Migration ${o}: Removed token with decimals === null in tokens. Address: ${e.address}`),!1)});else if((0,n.hasProperty)(t,"tokens")){var l;null===(l=global.sentry)||void 0===l||l.captureException(new Error(`Migration ${o}: Invalid tokens state of type '${typeof t.tokens}'`))}if((0,n.hasProperty)(t,"detectedTokens")&&Array.isArray(t.detectedTokens))t.detectedTokens=t.detectedTokens.filter(e=>{var t;return!((0,n.isObject)(e)&&(0,n.hasProperty)(e,"decimals")&&null===e.decimals&&(0,n.hasProperty)(e,"address"))||(null===(t=global.sentry)||void 0===t||t.captureMessage(`Migration ${o}: Removed token with decimals === null in detectedTokens. Address: ${e.address}`),!1)});else if((0,n.hasProperty)(t,"detectedTokens")){var u;null===(u=global.sentry)||void 0===u||u.captureException(new Error(`Migration ${o}: Invalid detectedTokens state of type '${typeof t.detectedTokens}'`))}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=133.1;function s(e,t){const r={};for(const[i,s]of Object.entries(e))if((0,n.isObject)(s)){const e={};for(const[r,i]of Object.entries(s))if(Array.isArray(i)){const s=i.filter(e=>{var r;return(0,n.isObject)(e)&&(0,n.hasProperty)(e,"decimals")&&null===e.decimals&&(0,n.hasProperty)(e,"address")?(null===(r=global.sentry)||void 0===r||r.captureMessage(`Migration ${o}: Removed token with decimals === null in ${t}. Address: ${e.address}`),!1):(0,n.isObject)(e)&&(0,n.hasProperty)(e,"decimals")&&null!==e.decimals});e[r]=s}r[i]=e}return r}}}},{package:"$root$",file:"app/scripts/migrations/133.1.ts"}],[482,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"TokensController")||!(0,n.isObject)(e.TokensController)||!(0,n.isObject)(e.TokensController.allTokens))return;const t=["0x1"];for(const r of t){const t=e.TokensController.allTokens[r];if((0,n.isObject)(t))for(const[e,r]of Object.entries(t))Array.isArray(r)&&(t[e]=r.filter(e=>"0x0000000000000000000000000000000000000000"!==(null==e?void 0:e.address)))}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=133.2}}},{package:"$root$",file:"app/scripts/migrations/133.2.ts"}],[4829,{"./src/index-light":4835},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("./src/index-light")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/light.js"}],[483,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"NotificationController")&&delete e.NotificationController}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=133}}},{package:"$root$",file:"app/scripts/migrations/133.ts"}],[4830,{"./enum":4833,"./util":4852},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),l=0;l<a.length;++l)s[a[l]]!==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[l])("case %i:",s[a[l]])("m%s=%j",n,s[a[l]])("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,r,n);else{var u=!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":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,u)('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,u?"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"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");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(),l=o.safeProp(a.name);a.map?(r("if(d%s){",l)('if(typeof d%s!=="object")',l)("throw TypeError(%j)",a.fullName+": object expected")("m%s={}",l)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",l),s(r,a,n,l+"[ks[i]]")("}")("}")):a.repeated?(r("if(d%s){",l)("if(!Array.isArray(d%s))",l)("throw TypeError(%j)",a.fullName+": array expected")("m%s=[]",l)("for(var i=0;i<d%s.length;++i){",l),s(r,a,n,l+"[i]")("}")("}")):(a.resolvedType instanceof i||r("if(d%s!=null){",l),s(r,a,n,l),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=[],l=[],u=0;u<t.length;++u)t[u].partOf||(t[u].resolve().repeated?n:t[u].map?s:l).push(t[u]);if(n.length){for(r("if(o.arrays||o.defaults){"),u=0;u<n.length;++u)r("d%s=[]",o.safeProp(n[u].name));r("}")}if(s.length){for(r("if(o.objects||o.defaults){"),u=0;u<s.length;++u)r("d%s={}",o.safeProp(s[u].name));r("}")}if(l.length){for(r("if(o.defaults){"),u=0;u<l.length;++u){var c=l[u],f=o.safeProp(c.name);if(c.resolvedType instanceof i)r("d%s=o.enums===String?%j:%j",f,c.resolvedType.valuesById[c.typeDefault],c.typeDefault);else if(c.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",c.typeDefault.low,c.typeDefault.high,c.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,c.typeDefault.toString(),c.typeDefault.toNumber());else if(c.bytes){var d="["+Array.prototype.slice.call(c.typeDefault).join(",")+"]";r("if(o.bytes===String)d%s=%j",f,String.fromCharCode.apply(String,c.typeDefault))("else{")("d%s=%s",f,d)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",f,f)("}")}else r("d%s=%j",f,c.typeDefault)}r("}")}var p=!1;for(u=0;u<t.length;++u){c=t[u];var h=e._fieldsArray.indexOf(c);f=o.safeProp(c.name);c.map?(p||(p=!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){"),a(r,c,h,f+"[ks2[j]]")("}")):c.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,c,h,f+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",f,c.name),a(r,c,h,f),c.partOf&&r("if(o.oneofs)")("d%s=%j",o.safeProp(c.partOf.name),c.name)),r("}")}return r("return d")}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/converter.js"}],[4831,{"./enum":4833,"./types":4851,"./util":4852},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){var t=o.codegen(["r","l"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("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()");e.group&&t("if((t&7)===4)")("break");t("switch(t>>>3){");for(var r=0;r<e.fieldsArray.length;++r){var a=e._fieldsArray[r].resolve(),l=a.resolvedType instanceof n?"int32":a.type,u="m"+o.safeProp(a.name);t("case %i: {",a.id),a.map?(t("if(%s===util.emptyObject)",u)("%s={}",u)("var c2 = r.uint32()+r.pos"),i.defaults[a.keyType]!==undefined?t("k=%j",i.defaults[a.keyType]):t("k=null"),i.defaults[l]!==undefined?t("value=%j",i.defaults[l]):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[l]===undefined?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",l),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),i.long[a.keyType]!==undefined?t('%s[typeof k==="object"?util.longToHash(k):k]=value',u):t("%s[k]=value",u)):a.repeated?(t("if(!(%s&&%s.length))",u,u)("%s=[]",u),i.packed[l]!==undefined&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",u,l)("}else"),i.basic[l]===undefined?t(a.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",u,r):t("%s.push(r.%s())",u,l)):i.basic[l]===undefined?t(a.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",u,r):t("%s=r.%s()",u,l),t("break")("}")}for(t("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<e._fieldsArray.length;++r){var c=e._fieldsArray[r];c.required&&t("if(!m.hasOwnProperty(%j))",c.name)("throw util.ProtocolError(%j,{instance:m})",s(c))}return t("return m")};var n=e("./enum"),i=e("./types"),o=e("./util");function s(e){return"missing required '"+e.name+"'"}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/decoder.js"}],[4832,{"./enum":4833,"./types":4851,"./util":4852},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),l=0;l<a.length;++l){var u=a[l].resolve(),c=e._fieldsArray.indexOf(u),f=u.resolvedType instanceof n?"int32":u.type,d=i.basic[f];t="m"+o.safeProp(u.name),u.map?(r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",t,u.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",t)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(u.id<<3|2)>>>0,8|i.mapKey[u.keyType],u.keyType),d===undefined?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",c,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|d,f,t),r("}")("}")):u.repeated?(r("if(%s!=null&&%s.length){",t,t),u.packed&&i.packed[f]!==undefined?r("w.uint32(%i).fork()",(u.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,u,c,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(u.id<<3|d)>>>0,f,t)),r("}")):(u.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,u.name),d===undefined?s(r,u,c,t):r("w.uint32(%i).%s(%s)",(u.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.resolvedType.group?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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/encoder.js"}],[4833,{"./namespace":4840,"./object":4841,"./util":4852},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.reserved=undefined,t)for(var a=Object.keys(t),l=0;l<a.length;++l)"number"==typeof t[a[l]]&&(this.valuesById[this.values[a[l]]=t[a[l]]]=a[l])}s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["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(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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/enum.js"}],[4834,{"./enum":4833,"./object":4841,"./types":4851,"./util":4852},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=u;var n=e("./object");((u.prototype=Object.create(n.prototype)).constructor=u).className="Field";var i,o=e("./enum"),s=e("./types"),a=e("./util"),l=/^required|optional|repeated$/;function u(e,t,r,i,o,u,c){if(a.isObject(i)?(c=o,u=i,i=o=undefined):a.isObject(o)&&(c=u,u=o,o=undefined),n.call(this,e,u),!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&&!l.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.required="required"===i,this.optional=!this.required,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._packed=null,this.comment=c}u.fromJSON=function(e,t){return new u(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)},Object.defineProperty(u.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),u.prototype.setOption=function(e,t,r){return"packed"===e&&(this._packed=null),n.prototype.setOption.call(this,e,t,r)},u.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["rule","optional"!==this.rule&&this.rule||undefined,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:undefined])},u.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&&(!0!==this.options.packed&&(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)},u.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 u(o,e,t,r,{default:n}))}},u._configure=function(e){i=e}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/field.js"}],[4835,{"./converter":4830,"./decoder":4831,"./encoder":4832,"./enum":4833,"./field":4834,"./index-minimal":4836,"./mapfield":4837,"./message":4838,"./method":4839,"./namespace":4840,"./object":4841,"./oneof":4842,"./root":4845,"./service":4849,"./type":4850,"./types":4851,"./util":4852,"./verifier":4855,"./wrappers":4856},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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/index-light.js"}],[4836,{"./reader":4843,"./reader_buffer":4844,"./roots":4846,"./rpc":4847,"./util/minimal":4854,"./writer":4857,"./writer_buffer":4858},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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/index-minimal.js"}],[4837,{"./field":4834,"./types":4851,"./util":4852},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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/mapfield.js"}],[4838,{"./util/minimal":4854},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)this[t[r]]=e[t[r]]}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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/message.js"}],[4839,{"./object":4841,"./util":4852},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,l,u,c){if(i.isObject(s)?(l=s,s=a=undefined):i.isObject(a)&&(l=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,l),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=u,this.parsedOptions=c}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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/method.js"}],[484,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if(!(0,n.hasProperty)(e,"AccountsController")){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${o}: Missing AccountsController.`)),e}const i=e.AccountsController;if(!(0,n.isObject)(i)){var s,a;return null===(s=global.sentry)||void 0===s||null===(a=s.captureException)||void 0===a||a.call(s,new Error(`Migration ${o}: AccountsController is type '${typeof i}', expected object.`)),e}if(!(0,n.hasProperty)(i,"internalAccounts")||!(0,n.isObject)(i.internalAccounts)){var l,u;return null===(l=global.sentry)||void 0===l||null===(u=l.captureException)||void 0===u||u.call(l,new Error(`Migration ${o}: Missing or invalid AccountsController.internalAccounts.`)),e}const{internalAccounts:c}=i;if(!(0,n.hasProperty)(c,"selectedAccount")||"string"!=typeof c.selectedAccount||""===c.selectedAccount){var f,d;return null===(f=global.sentry)||void 0===f||null===(d=f.captureException)||void 0===d||d.call(f,new Error(`Migration ${o}: Invalid or missing selectedAccount.`)),e}if(!(0,n.hasProperty)(c,"accounts")||!(0,n.isObject)(c.accounts)){var p,h;return null===(p=global.sentry)||void 0===p||null===(h=p.captureException)||void 0===h||h.call(p,new Error(`Migration ${o}: Missing or invalid internalAccounts.accounts.`)),e}const{accounts:b}=c,m=c.selectedAccount;if(!(0,n.hasProperty)(b,m)||!(0,n.isObject)(b[m])){var v,y;return null===(v=global.sentry)||void 0===v||null===(y=v.captureException)||void 0===y||y.call(v,new Error(`Migration ${o}: Selected account entry not found in internalAccounts.accounts.`)),e}const g=b[m];if(!(0,n.hasProperty)(g,"address")||"string"!=typeof g.address||""===g.address){var w,k;return null===(w=global.sentry)||void 0===w||null===(k=w.captureException)||void 0===k||k.call(w,new Error(`Migration ${o}: Invalid or missing address in selected account entry.`)),e}const j=g.address;if(!(0,n.hasProperty)(e,"NetworkController")){var _,O;return null===(_=global.sentry)||void 0===_||null===(O=_.captureException)||void 0===O||O.call(_,new Error(`Migration ${o}: Missing NetworkController.`)),e}const T=e.NetworkController;if(!(0,n.isObject)(T)){var x,S;return null===(x=global.sentry)||void 0===x||null===(S=x.captureException)||void 0===S||S.call(x,new Error(`Migration ${o}: NetworkController is type '${typeof T}', expected object.`)),e}if(!(0,n.hasProperty)(T,"selectedNetworkClientId")||"string"!=typeof T.selectedNetworkClientId||!T.selectedNetworkClientId){var E,C;return null===(E=global.sentry)||void 0===E||null===(C=E.captureException)||void 0===C||C.call(E,new Error(`Migration ${o}: Invalid or missing selectedNetworkClientId.`)),e}const{selectedNetworkClientId:P}=T;if(!(0,n.hasProperty)(T,"networkConfigurationsByChainId")||!(0,n.isObject)(T.networkConfigurationsByChainId)){var A,M;return null===(A=global.sentry)||void 0===A||null===(M=A.captureException)||void 0===M||M.call(A,new Error(`Migration ${o}: Missing or invalid networkConfigurationsByChainId.`)),e}const{networkConfigurationsByChainId:I}=T,N=function(e,t){var r,n;for(const[r,n]of Object.entries(e))if(Array.isArray(n.rpcEndpoints))for(const e of n.rpcEndpoints)if(e.networkClientId===t)return r;return null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`Migration ${o}: No chainId found for "${t}".`)),undefined}(I,P);if(!N){var B,$;return null===(B=global.sentry)||void 0===B||null===($=B.captureException)||void 0===$||$.call(B,new Error(`Migration ${o}: Could not find chainId for networkClientId '${P}'.`)),e}if(!(0,n.hasProperty)(e,"TokensController")){var F,R;return null===(F=global.sentry)||void 0===F||null===(R=F.captureException)||void 0===R||R.call(F,new Error(`Migration ${o}: Missing TokensController.`)),e}const U=e.TokensController;if(!(0,n.isObject)(U)){var D,L;return null===(D=global.sentry)||void 0===D||null===(L=D.captureException)||void 0===L||L.call(D,new Error(`Migration ${o}: TokensController is type '${typeof U}', expected object.`)),e}if(!(0,n.hasProperty)(U,"allTokens")||!(0,n.isObject)(U.allTokens)){var z,q;return null===(z=global.sentry)||void 0===z||null===(q=z.captureException)||void 0===q||q.call(z,new Error(`Migration ${o}: Missing or invalid TokensController.allTokens.`)),e}const{tokens:W}=U,{allTokens:H}=U,V=H[N];if(Array.isArray(W)&&W.length>0&&!(0,n.isObject)(V)){var G,K;return null===(G=global.sentry)||void 0===G||null===(K=G.captureException)||void 0===K||K.call(G,new Error(`Migration ${o}: tokens is not an empty array, but allTokensForChain is not an object.`)),e}if(!(0,n.isObject)(V))return e;const J=V[j];if(!Array.isArray(J))return e;return U.tokens=J,e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=134.1}}},{package:"$root$",file:"app/scripts/migrations/134.1.ts"}],[4840,{"./field":4834,"./object":4841,"./oneof":4842,"./util":4852},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"),l=e("./util"),u=e("./oneof");function c(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}function d(e){return e._nestedArray=null,e}f.fromJSON=function(e,t){return new f(e,t.options).addJSON(t.nested)},f.arrayToJSON=c,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=l.toArray(this.nested))}}),f.prototype.toJSON=function(e){return l.toObject(["options",this.options,"nested",c(this.nestedArray,e)])},f.prototype.addJSON=function(e){if(e)for(var t,r=Object.keys(e),n=0;n<r.length;++n)t=e[r[n]],this.add((t.fields!==undefined?i.fromJSON:t.values!==undefined?s.fromJSON:t.methods!==undefined?o.fromJSON:t.id!==undefined?a.fromJSON:f.fromJSON)(r[n],t));return this},f.prototype.get=function(e){return this.nested&&this.nested[e]||null},f.prototype.getEnum=function(e){if(this.nested&&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 u||e instanceof s||e instanceof o||e instanceof f))throw TypeError("object must be a valid nested object");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={};return this.nested[e.name]=e,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(l.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(){for(var e=this.nestedArray,t=0;t<e.length;)e[t]instanceof f?e[t++].resolveAll():e[t++].resolve();return this.resolve()},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=undefined):t&&!Array.isArray(t)&&(t=[t]),l.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;if(""===e[0])return this.root.lookup(e.slice(1),t);var n=this.get(e[0]);if(n){if(1===e.length){if(!t||t.indexOf(n.constructor)>-1)return n}else if(n instanceof f&&(n=n.lookup(e.slice(1),t,!0)))return n}else for(var i=0;i<this.nestedArray.length;++i)if(this._nestedArray[i]instanceof f&&(n=this._nestedArray[i].lookup(e,t,!0)))return n;return null===this.parent||r?null:this.parent.lookup(e,t)},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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/namespace.js"}],[4841,{"./util":4852},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=o,o.className="ReflectionObject";var n,i=e("./util");function o(e,t){if(!i.isString(e))throw TypeError("name must be a string");if(t&&!i.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(o.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(".")}}}),o.prototype.toJSON=function(){throw Error()},o.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 n&&t._handleAdd(this)},o.prototype.onRemove=function(e){var t=e.root;t instanceof n&&t._handleRemove(this),this.parent=null,this.resolved=!1},o.prototype.resolve=function(){return this.resolved||this.root instanceof n&&(this.resolved=!0),this},o.prototype.getOption=function(e){return this.options?this.options[e]:undefined},o.prototype.setOption=function(e,t,r){return r&&this.options&&this.options[e]!==undefined||((this.options||(this.options={}))[e]=t),this},o.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var n=this.parsedOptions;if(r){var o=n.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(o){var s=o[e];i.setProperty(s,r,t)}else(o={})[e]=i.setProperty({},r,t),n.push(o)}else{var a={};a[e]=t,n.push(a)}return this},o.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},o.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},o._configure=function(e){n=e}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/object.js"}],[4842,{"./field":4834,"./object":4841,"./util":4852},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)},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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/oneof.js"}],[4843,{"./util/minimal":4854},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=l;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 l(e){this.buf=e,this.pos=0,this.len=e.length}var u,c="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new l(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new l(e);throw Error("illegal buffer")},f=function(){return i.Buffer?function(e){return(l.create=function(e){return i.Buffer.isBuffer(e)?new n(e):c(e)})(e)}:c};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 p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw a(this,8);return new o(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}l.create=f(),l.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,l.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return u}),l.prototype.int32=function(){return 0|this.uint32()},l.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},l.prototype.bool=function(){return 0!==this.uint32()},l.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return p(this.buf,this.pos+=4)},l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|p(this.buf,this.pos+=4)},l.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},l.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},l.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)},l.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},l.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},l.prototype.skipType=function(e){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);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},l._configure=function(e){n=e,l.create=f(),n._configure();var t=i.Long?"toLong":"toNumber";i.merge(l.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 h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/reader.js"}],[4844,{"./reader":4843,"./util/minimal":4854},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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/reader_buffer.js"}],[4845,{"./enum":4833,"./field":4834,"./namespace":4840,"./oneof":4842,"./util":4852},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"),l=e("./enum"),u=e("./oneof"),c=e("./util");function f(e){n.call(this,"",e),this.deferred=[],this.files=[]}function d(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},f.prototype.resolvePath=c.path.resolve,f.prototype.fetch=c.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=undefined);var i=this;if(!n)return c.asPromise(e,i,t,r);var a=n===d;function l(e,t){if(n){if(a)throw e;var r=n;n=null,r(e,t)}}function u(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(c.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),c.isString(t)){o.filename=e;var n,s=o(t,i,r),f=0;if(s.imports)for(;f<s.imports.length;++f)(n=u(s.imports[f])||i.resolvePath(e,s.imports[f]))&&p(n);if(s.weakImports)for(f=0;f<s.weakImports.length;++f)(n=u(s.weakImports[f])||i.resolvePath(e,s.weakImports[f]))&&p(n,!0)}else i.setOptions(t.options).addJSON(t.nested)}catch(e){l(e)}a||h||l(null,i)}function p(e,t){if(e=u(e)||e,!(i.files.indexOf(e)>-1))if(i.files.push(e),e in s)a?f(e,s[e]):(++h,setTimeout(function(){--h,f(e,s[e])}));else if(a){var r;try{r=c.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||l(e))}f(e,r)}else++h,i.fetch(e,function(r,o){--h,n&&(r?t?h||l(null,i):l(r):f(e,o))})}var h=0;c.isString(t)&&(t=[t]);for(var b,m=0;m<t.length;++m)(b=i.resolvePath("",t[m]))&&p(b);return a?i:(h||l(null,i),undefined)},f.prototype.loadSync=function(e,t){if(!c.isNode)throw Error("not supported");return this.load(e,t,d)},f.prototype.resolveAll=function(){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 p=/^[A-Z]/;function h(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||h(0,e)||this.deferred.push(e);else if(e instanceof l)p.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof u)){if(e instanceof i)for(var t=0;t<this.deferred.length;)h(0,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);p.test(e.name)&&(e.parent[e.name]=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 l)p.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]);p.test(e.name)&&delete e.parent[e.name]}},f._configure=function(e,t,r){i=e,o=t,s=r}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/root.js"}],[4846,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/roots.js"}],[4847,{"./rpc/service":4848},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){r.Service=e("./rpc/service")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/rpc.js"}],[4848,{"../util/minimal":4854},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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/rpc/service.js"}],[4849,{"./method":4839,"./namespace":4840,"./rpc":4847,"./util":4852},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=a;var n=e("./namespace");((a.prototype=Object.create(n.prototype)).constructor=a).className="Service";var i=e("./method"),o=e("./util"),s=e("./rpc");function a(e,t){n.call(this,e,t),this.methods={},this._methodsArray=null}function l(e){return e._methodsArray=null,e}a.fromJSON=function(e,t){var r=new a(e,t.options);if(t.methods)for(var n=Object.keys(t.methods),o=0;o<n.length;++o)r.add(i.fromJSON(n[o],t.methods[n[o]]));return t.nested&&r.addJSON(t.nested),r.comment=t.comment,r},a.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=!!e&&Boolean(e.keepComments);return o.toObject(["options",t&&t.options||undefined,"methods",n.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||undefined,"comment",r?this.comment:undefined])},Object.defineProperty(a.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=o.toArray(this.methods))}}),a.prototype.get=function(e){return this.methods[e]||n.prototype.get.call(this,e)},a.prototype.resolveAll=function(){for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return n.prototype.resolve.call(this)},a.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof i?(this.methods[e.name]=e,e.parent=this,l(this)):n.prototype.add.call(this,e)},a.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,l(this)}return n.prototype.remove.call(this,e)},a.prototype.create=function(e,t,r){for(var n,i=new s.Service(e,t,r),a=0;a<this.methodsArray.length;++a){var l=o.lcFirst((n=this._methodsArray[a]).resolve().name).replace(/[^$\w_]/g,"");i[l]=o.codegen(["r","c"],o.isReserved(l)?l+"_":l)("return this.rpcCall(m,q,s,r,c)")({m:n,q:n.resolvedRequestType.ctor,s:n.resolvedResponseType.ctor})}return i}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/service.js"}],[485,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"AppStateController")&&(0,n.isObject)(e.AppStateController)&&(0,n.hasProperty)(e.AppStateController,"usedNetworks")&&(console.log("Removing usedNetworks from AppStateController"),delete e.AppStateController.usedNetworks)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=134}}},{package:"$root$",file:"app/scripts/migrations/134.ts"}],[4850,{"./converter":4830,"./decoder":4831,"./encoder":4832,"./enum":4833,"./field":4834,"./mapfield":4837,"./message":4838,"./namespace":4840,"./oneof":4842,"./reader":4843,"./service":4849,"./util":4852,"./verifier":4855,"./wrappers":4856,"./writer":4857},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"),l=e("./service"),u=e("./message"),c=e("./reader"),f=e("./writer"),d=e("./util"),p=e("./encoder"),h=e("./decoder"),b=e("./verifier"),m=e("./converter"),v=e("./wrappers");function y(e,t){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 g(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 u||((e.prototype=new u).constructor=e,d.merge(e.prototype,t)),e.$type=e.prototype.$type=this,d.merge(e,u,!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)")("this[ks[i]]=p[ks[i]]")},y.fromJSON=function(e,t){var r=new y(e,t.options);r.extensions=t.extensions,r.reserved=t.reserved;for(var u=Object.keys(t.fields),c=0;c<u.length;++c)r.add((void 0!==t.fields[u[c]].keyType?a.fromJSON:s.fromJSON)(u[c],t.fields[u[c]]));if(t.oneofs)for(u=Object.keys(t.oneofs),c=0;c<u.length;++c)r.add(o.fromJSON(u[c],t.oneofs[u[c]]));if(t.nested)for(u=Object.keys(t.nested),c=0;c<u.length;++c){var f=t.nested[u[c]];r.add((f.id!==undefined?s.fromJSON:f.fields!==undefined?y.fromJSON:f.values!==undefined?i.fromJSON:f.methods!==undefined?l.fromJSON:n.fromJSON)(u[c],f))}return t.extensions&&t.extensions.length&&(r.extensions=t.extensions),t.reserved&&t.reserved.length&&(r.reserved=t.reserved),t.group&&(r.group=!0),t.comment&&(r.comment=t.comment),r},y.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=!!e&&Boolean(e.keepComments);return d.toObject(["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(){for(var e=this.fieldsArray,t=0;t<e.length;)e[t++].resolve();var r=this.oneofsArray;for(t=0;t<r.length;)r[t++].resolve();return n.prototype.resolveAll.call(this)},y.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&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 e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this)}return e instanceof o?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(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),g(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),g(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=p(this)({Writer:f,types:t,util:d}),this.decode=h(this)({Reader:c,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=v[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){return this.setup().decode(e,t)},y.prototype.decodeDelimited=function(e){return e instanceof c||(e=c.create(e)),this.decode(e,e.uint32())},y.prototype.verify=function(e){return this.setup().verify(e)},y.prototype.fromObject=function(e){return this.setup().fromObject(e)},y.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},y.d=function(e){return function(t){d.decorateType(t,e)}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/type.js"}],[4851,{"./util":4852},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={};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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/types.js"}],[4852,{"./enum":4833,"./root":4845,"./roots":4846,"./type":4850,"./util/minimal":4854,"@protobufjs/codegen":2902,"@protobufjs/fetch":2904,"@protobufjs/path":2907},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.fs=o.inquire("fs"),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};var a=/\\/g,l=/"/g;o.isReserved=function(e){return/^(?: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)$/.test(e)},o.safeProp=function(e){return!/^[$\w_]+$/.test(e)||o.isReserved(e)?'["'+e.replace(a,"\\\\").replace(l,'\\"')+'"]':"."+e},o.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var u=/_([a-z])/g;o.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(u,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 c=0;o.decorateEnum=function(t){if(t.$type)return t.$type;i||(i=e("./enum"));var r=new i("Enum"+c++,t);return o.decorateRoot.add(r),Object.defineProperty(t,"$type",{value:r,enumerable:!1}),r},o.setProperty=function(e,t,r){if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return function e(t,r,n){var i=r.shift();if("__proto__"===i||"prototype"===i)return t;if(r.length>0)t[i]=e(t[i]||{},r,n);else{var o=t[i];o&&(n=[].concat(o).concat(n)),t[i]=n}return t}(e,t=t.split("."),r)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(e("./root")))}})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/util.js"}],[4853,{"../util/minimal":4854},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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/util/longbits.js"}],[4854,{"./longbits":4853,"@protobufjs/aspromise":2900,"@protobufjs/base64":2901,"@protobufjs/eventemitter":2903,"@protobufjs/float":2905,"@protobufjs/inquire":2906,"@protobufjs/pool":2908,"@protobufjs/utf8":2909},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||(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.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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/util/minimal.js"}],[4855,{"./enum":4833,"./util":4852},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"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),r=e.oneofsArray,n={};r.length&&t("var p={}");for(var l=0;l<e.fieldsArray.length;++l){var u=e._fieldsArray[l].resolve(),c="m"+i.safeProp(u.name);if(u.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",c,u.name),u.map)t("if(!util.isObject(%s))",c)("return%j",o(u,"object"))("var k=Object.keys(%s)",c)("for(var i=0;i<k.length;++i){"),a(t,u,"k[i]"),s(t,u,l,c+"[k[i]]")("}");else if(u.repeated)t("if(!Array.isArray(%s))",c)("return%j",o(u,"array"))("for(var i=0;i<%s.length;++i){",c),s(t,u,l,c+"[i]")("}");else{if(u.partOf){var f=i.safeProp(u.partOf.name);1===n[u.partOf.name]&&t("if(p%s===1)",f)("return%j",u.partOf.name+": multiple values"),n[u.partOf.name]=1,t("p%s=1",f)}s(t,u,l,c)}u.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);",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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/verifier.js"}],[4856,{"./message":4838},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){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),r=this.lookup(t);if(r){var n="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return-1===n.indexOf("/")&&(n="/"+n),this.create({type_url:n,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/wrappers.js"}],[4857,{"./util/minimal":4854},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 l(e,t,r){this.fn=e,this.len=t,this.next=undefined,this.val=r}function u(){}function c(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 l(u,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 p(e,t,r){t[r]=255&e}function h(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 l(e,t,r),this.len+=t,this},h.prototype=Object.create(l.prototype),h.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 h((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(p,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 v=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(p,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(v,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(p,1,0)},f.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new l(u,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 l(u,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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/writer.js"}],[4858,{"./util/minimal":4854,"./writer":4857},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:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/writer_buffer.js"}],[486,{"../../../shared/lib/manifestFlags":5526,"@metamask/transaction-controller":2789,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=a,function(e){var t,r;const i=(0,s.getManifestFlags)();if(!0===(null===(t=i.testing)||void 0===t?void 0:t.disableSmartTransactionsOverride))return e;if(!(0,n.hasProperty)(e,"PreferencesController")||!(0,n.isObject)(e.PreferencesController)){var a,l;return null===(a=global.sentry)||void 0===a||null===(l=a.captureException)||void 0===l||l.call(a,new Error("Invalid PreferencesController state: "+typeof e.PreferencesController)),e}const{PreferencesController:u}=e,c=null===(r=u.preferences)||void 0===r?void 0:r.smartTransactionsOptInStatus;c===undefined||!1===c&&!function(e){var t;const r=null==e||null===(t=e.SmartTransactionsController)||void 0===t||null===(t=t.smartTransactionsState)||void 0===t?void 0:t.smartTransactions;if(!(0,n.isObject)(r))return!1;return(r[o.CHAIN_IDS.MAINNET]||[]).length>0}(e)?e.PreferencesController.preferences={...e.PreferencesController.preferences,smartTransactionsOptInStatus:!0,smartTransactionsMigrationApplied:!0}:e.PreferencesController.preferences={...e.PreferencesController.preferences,smartTransactionsMigrationApplied:!1}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=e("@metamask/transaction-controller"),s=e("../../../shared/lib/manifestFlags");const a=r.version=135}}},{package:"$root$",file:"app/scripts/migrations/135.ts"}],[487,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(0,n.hasProperty)(e.PreferencesController,"useRequestQueue")&&delete e.PreferencesController.useRequestQueue}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=136}}},{package:"$root$",file:"app/scripts/migrations/136.ts"}],[4873,{},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"}],[488,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,t.data,t},r.version=void 0;var n=e("lodash");const i=r.version=137}}},{package:"$root$",file:"app/scripts/migrations/137.ts"}],[489,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;r&&(0,n.hasProperty)(r,"redesignedTransactionsEnabled")&&delete r.redesignedTransactionsEnabled}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=138}}},{package:"$root$",file:"app/scripts/migrations/138.ts"}],[49,{"@metamask/profile-sync-controller/auth":2344,"@metamask/profile-sync-controller/sdk":2365},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AuthenticationControllerInit=void 0;var n=e("@metamask/profile-sync-controller/auth"),i=e("@metamask/profile-sync-controller/sdk");r.AuthenticationControllerInit=({controllerMessenger:e,initMessenger:t,persistedState:r})=>({controller:new n.Controller({messenger:e,state:r.AuthenticationController,metametrics:{getMetaMetricsId:t.call.bind(t,"MetaMetricsController:getMetaMetricsId"),agent:i.Platform.EXTENSION}})})}}},{package:"$root$",file:"app/scripts/controller-init/identity/authentication-controller-init.ts"}],[490,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);t.meta.version=o;const r=function(e){const t=(0,i.cloneDeep)(e);if(!(0,n.hasProperty)(t,"PermissionController"))return e;if(!(0,n.isObject)(t.PermissionController)){var r,p;return null===(r=global.sentry)||void 0===r||null===(p=r.captureException)||void 0===p||p.call(r,new Error(`Migration ${o}: typeof state.PermissionController is ${typeof t.PermissionController}`)),e}if(!(0,n.hasProperty)(t,"NetworkController")||!(0,n.isObject)(t.NetworkController)){var h,b;return null===(h=global.sentry)||void 0===h||null===(b=h.captureException)||void 0===b||b.call(h,new Error(`Migration ${o}: typeof state.NetworkController is ${typeof t.NetworkController}`)),e}(0,n.hasProperty)(t,"SelectedNetworkController")||(console.warn(`Migration ${o}: typeof state.SelectedNetworkController is ${typeof t.SelectedNetworkController}`),t.SelectedNetworkController={domains:{}});if(!(0,n.isObject)(t.SelectedNetworkController)){var m,v;return null===(m=global.sentry)||void 0===m||null===(v=m.captureException)||void 0===v||v.call(m,new Error(`Migration ${o}: typeof state.SelectedNetworkController is ${typeof t.SelectedNetworkController}`)),e}const{NetworkController:{selectedNetworkClientId:y,networkConfigurationsByChainId:g},PermissionController:{subjects:w}}=t;if(!(0,n.isObject)(w)){var k,j;return null===(k=global.sentry)||void 0===k||null===(j=k.captureException)||void 0===j||j.call(k,new Error(`Migration ${o}: typeof state.PermissionController.subjects is ${typeof w}`)),e}if(!y||"string"!=typeof y){var _,O;return null===(_=global.sentry)||void 0===_||null===(O=_.captureException)||void 0===O||O.call(_,new Error(`Migration ${o}: typeof state.NetworkController.selectedNetworkClientId is ${typeof y}`)),e}if(!(0,n.isObject)(g)){var T,x;return null===(T=global.sentry)||void 0===T||null===(x=T.captureException)||void 0===x||x.call(T,new Error(`Migration ${o}: typeof state.NetworkController.networkConfigurationsByChainId is ${typeof t.NetworkController.networkConfigurationsByChainId}`)),e}if(!(0,n.hasProperty)(t.SelectedNetworkController,"domains")||!(0,n.isObject)(t.SelectedNetworkController.domains)){var S,E;const{domains:r}=t.SelectedNetworkController;return null===(S=global.sentry)||void 0===S||null===(E=S.captureException)||void 0===E||E.call(S,new Error(`Migration ${o}: typeof state.SelectedNetworkController.domains is ${typeof r}`)),e}const{domains:C}=t.SelectedNetworkController,P=(e,t)=>{let r,i=!1;for(const[t,u]of Object.entries(g)){var s,a;if((0,n.isObject)(u))if(Array.isArray(u.rpcEndpoints))for(const s of u.rpcEndpoints){var l;if((0,n.isObject)(s))s.networkClientId===e&&(r=t);else null===(l=global.sentry)||void 0===l||l.captureException(new Error(`Migration ${o}: typeof state.NetworkController.networkConfigurationsByChainId["${t}"].rpcEndpoints[] is ${typeof s}`)),i=!0}else null===(s=global.sentry)||void 0===s||s.captureException(new Error(`Migration ${o}: typeof state.NetworkController.networkConfigurationsByChainId["${t}"].rpcEndpoints is ${typeof u.rpcEndpoints}`)),i=!0;else null===(a=global.sentry)||void 0===a||a.captureException(new Error(`Migration ${o}: typeof state.NetworkController.networkConfigurationsByChainId["${t}"] is ${typeof u}`)),i=!0}if(i)return undefined;if(r)return r;const c=u.get(e);var f;c||(null===(f=global.sentry)||void 0===f||f.captureException(new Error(`Migration ${o}: No chainId found for ${t} "${e}"`)));return c},A=P(y,"selectedNetworkClientId");if(!A)return e;for(const[t,r]of Object.entries(w)){var M,I,N,B,$;if(!(0,n.isObject)(r))return null===(I=global.sentry)||void 0===I||null===(N=I.captureException)||void 0===N||N.call(I,new Error(`Migration ${o}: Invalid subject for origin "${t}" of type ${typeof r}`)),e;if(!(0,n.hasProperty)(r,"permissions")||!(0,n.isObject)(r.permissions))return null===(B=global.sentry)||void 0===B||null===($=B.captureException)||void 0===$||$.call(B,new Error(`Migration ${o}: Invalid permissions for origin "${t}" of type ${typeof r.permissions}`)),e;const{permissions:i}=r;let u,p=[];const h=i[l.eth_accounts],b=i[l.permittedChains];if(!h){delete i[l.permittedChains];continue}var F,R;if(!f(h))return null===(F=global.sentry)||void 0===F||null===(R=F.captureException)||void 0===R||R.call(F,new Error(`Migration ${o}: Invalid state.PermissionController.subjects[${t}].permissions[${l.eth_accounts}]: ${JSON.stringify(h)}`)),e;const m=null===(M=h.caveats)||void 0===M||null===(M=M[0])||void 0===M?void 0:M.value;var U,D,L;if(!d(m))return null===(U=global.sentry)||void 0===U||null===(D=U.captureException)||void 0===D||D.call(U,new Error(`Migration ${o}: Invalid state.PermissionController.subjects[${t}].permissions[${l.eth_accounts}].caveats[0].value of type ${typeof(null===(L=h.caveats)||void 0===L||null===(L=L[0])||void 0===L?void 0:L.value)}`)),e;p=m,u=h,delete i[l.eth_accounts];let v=[];if(b){var z,q,W;if(!f(b))return null===(q=global.sentry)||void 0===q||null===(W=q.captureException)||void 0===W||W.call(q,new Error(`Migration ${o}: Invalid state.PermissionController.subjects[${t}].permissions[${l.permittedChains}]: ${JSON.stringify(b)}`)),e;const r=null===(z=b.caveats)||void 0===z||null===(z=z[0])||void 0===z?void 0:z.value;var H,V,G;if(!d(r))return null===(H=global.sentry)||void 0===H||null===(V=H.captureException)||void 0===V||V.call(H,new Error(`Migration ${o}: Invalid state.PermissionController.subjects[${t}].permissions[${l.permittedChains}].caveats[0].value of type ${typeof(null===(G=b.caveats)||void 0===G||null===(G=G[0])||void 0===G?void 0:G.value)}`)),e;v=r,u??(u=b),delete i[l.permittedChains]}if(0===v.length){v=[A];const e=C[t];if(e&&"string"==typeof e){const t=P(e,"networkClientIdForOrigin");t&&(v=[t])}}const y=c.some(e=>t.startsWith(e)),g={},w=y?[]:v.map(e=>`eip155:${(0,n.hexToBigInt)(e).toString(10)}`);w.push("wallet:eip155"),w.forEach(e=>{const t=p.map(t=>`${e}:${t}`);g[e]={accounts:t}});const k={...u,parentCapability:a,caveats:[{type:s,value:{requiredScopes:{},optionalScopes:g,isMultichainOrigin:!1}}]};i[a]=k}return t}(t.data);return t.data=r,t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=139,s="authorizedScopes",a="endowment:caip25",l={eth_accounts:"eth_accounts",permittedChains:"endowment:permitted-chains"},u=new Map([["sepolia","0xaa36a7"],["mainnet","0x1"],["linea-sepolia","0xe705"],["linea-mainnet","0xe708"]]),c=["npm:","local:"];function f(e){return(0,n.isObject)(e)&&null!==e&&(0,n.hasProperty)(e,"caveats")&&Array.isArray(e.caveats)&&e.caveats.length>0&&(0,n.hasProperty)(e,"date")&&"number"==typeof e.date&&(0,n.hasProperty)(e,"id")&&"string"==typeof e.id&&(0,n.hasProperty)(e,"invoker")&&"string"==typeof e.invoker&&(0,n.hasProperty)(e,"parentCapability")&&"string"==typeof e.parentCapability}function d(e){return Array.isArray(e)&&e.length>0&&e.every(e=>"string"==typeof e)}}}},{package:"$root$",file:"app/scripts/migrations/139.ts"}],[491,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"AppStateController")&&(0,n.isObject)(e.AppStateController)&&(delete e.AppStateController.collectiblesDropdownState,delete e.AppStateController.serviceWorkerLastActiveTime,delete e.AppStateController.showPortfolioTooltip);(0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(delete e.NetworkController.networkConfigurations,delete e.NetworkController.providerConfig);(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(delete e.PreferencesController.customNetworkListEnabled,delete e.PreferencesController.disabledRpcMethodPreferences,delete e.PreferencesController.eip1559V2Enabled,delete e.PreferencesController.hasDismissedOpenSeaToBlockaidBanner,delete e.PreferencesController.hasMigratedFromOpenSeaToBlockaid,delete e.PreferencesController.improvedTokenAllowanceEnabled,delete e.PreferencesController.infuraBlocked,delete e.PreferencesController.useCollectibleDetection,delete e.PreferencesController.useStaticTokenList)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=140}}},{package:"$root$",file:"app/scripts/migrations/140.ts"}],[492,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;r&&(0,n.hasProperty)(r,"redesignedConfirmationsEnabled")&&delete r.redesignedConfirmationsEnabled}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=141}}},{package:"$root$",file:"app/scripts/migrations/141.ts"}],[493,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;null==r||delete r.isRedesignedConfirmationsDeveloperEnabled}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=142}}},{package:"$root$",file:"app/scripts/migrations/142.ts"}],[494,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.MetaMetricsController;null==t||delete t.previousUserTraits}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=143.1}}},{package:"$root$",file:"app/scripts/migrations/143.1.ts"}],[495,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController;null==t||delete t.useNonceField}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=143}}},{package:"$root$",file:"app/scripts/migrations/143.ts"}],[496,{"../../../shared/constants/price-api-currencies":5462,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=s,function(e){if(!(0,n.hasProperty)(e,"CurrencyController")){var t,r;return void(null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${s}: Missing CurrencyController in state`)))}const l=e.CurrencyController;if(!(0,i.isObject)(l)){var u,c;return void(null===(u=global.sentry)||void 0===u||null===(c=u.captureException)||void 0===c||c.call(u,new Error(`Migration ${s}: Invalid CurrencyController state type '${typeof l}'`)))}const{currentCurrency:f}=l;if(!f){var d,p;return null===(d=global.sentry)||void 0===d||null===(p=d.captureException)||void 0===p||p.call(d,new Error(`Migration ${s}: Missing currentCurrency in CurrencyController, defaulting to ${a}`)),void(l.currentCurrency=a)}o.PRICE_API_CURRENCIES.some(e=>e===f)||(l.currentCurrency=a)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=e("../../../shared/constants/price-api-currencies");const s=r.version=144,a="usd"}}},{package:"$root$",file:"app/scripts/migrations/144.ts"}],[497,{"@metamask/multichain-network-controller":2145,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);return t.meta.version=s,function(e){(0,i.hasProperty)(e,"NetworkOrderController")&&(0,i.isObject)(e.NetworkOrderController)&&Array.isArray(e.NetworkOrderController.orderedNetworkList)&&(e.NetworkOrderController.orderedNetworkList=e.NetworkOrderController.orderedNetworkList.map(({networkId:e})=>({networkId:(0,n.toEvmCaipChainId)(e)})))}(t.data),t},r.version=void 0;var n=e("@metamask/multichain-network-controller"),i=e("@metamask/utils"),o=e("lodash");const s=r.version=145}}},{package:"$root$",file:"app/scripts/migrations/145.ts"}],[498,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)&&(0,n.hasProperty)(e.NetworkController,"selectedNetworkClientId")){const t=e.NetworkController;Object.values(e.NetworkController.networkConfigurationsByChainId).flatMap(e=>(0,n.isObject)(e)&&Array.isArray(e.rpcEndpoints)?e.rpcEndpoints:[]).map(e=>e.networkClientId).includes(t.selectedNetworkClientId)||(e.NetworkController.selectedNetworkClientId="mainnet")}return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=146.1}}},{package:"$root$",file:"app/scripts/migrations/146.1.ts"}],[499,{"@metamask/controller-utils":1347,"@metamask/network-controller":2218,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,s.cloneDeep)(e);return t.meta.version=a,t.data=function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)){const t="megaeth-testnet",r=o.ChainId[t],n={chainId:r,name:o.NetworkNickname[t],nativeCurrency:o.NetworksTicker[t],blockExplorerUrls:[o.BlockExplorerUrl[t]],defaultRpcEndpointIndex:0,defaultBlockExplorerUrlIndex:0,rpcEndpoints:[{networkClientId:t,type:i.RpcEndpointType.Custom,url:o.BUILT_IN_CUSTOM_NETWORKS_RPC.MEGAETH_TESTNET}]};e.NetworkController.networkConfigurationsByChainId[r]=n}return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("@metamask/network-controller"),o=e("@metamask/controller-utils"),s=e("lodash");const a=r.version=146}}},{package:"$root$",file:"app/scripts/migrations/146.ts"}],[50,{"../../../../shared/constants/metametrics":5452,"../../../../shared/lib/sentry":5536,"../../../../shared/lib/trace":5543,"@metamask/profile-sync-controller/user-storage":2354},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UserStorageControllerInit=void 0;var n=e("@metamask/profile-sync-controller/user-storage"),i=e("../../../../shared/constants/metametrics"),o=e("../../../../shared/lib/trace"),s=e("../../../../shared/lib/sentry");r.UserStorageControllerInit=e=>{const{controllerMessenger:t,initMessenger:r,persistedState:a}=e;return{controller:new n.Controller({messenger:t,state:a.UserStorageController,trace:o.trace,config:{contactSyncing:{onContactUpdated:e=>{r.call("MetaMetricsController:trackEvent",{category:i.MetaMetricsEventCategory.BackupAndSync,event:i.MetaMetricsEventName.ProfileActivityUpdated,properties:{profile_id:e,feature_name:"Backup And Sync",action:"Contacts Sync Contact Updated"}})},onContactDeleted:e=>{r.call("MetaMetricsController:trackEvent",{category:i.MetaMetricsEventCategory.BackupAndSync,event:i.MetaMetricsEventName.ProfileActivityUpdated,properties:{profile_id:e,feature_name:"Backup And Sync",action:"Contacts Sync Contact Deleted"}})},onContactSyncErroneousSituation:(e,t,n)=>{(0,s.captureException)(new Error(`Contact sync - ${t}`),n),r.call("MetaMetricsController:trackEvent",{category:i.MetaMetricsEventCategory.BackupAndSync,event:i.MetaMetricsEventName.ProfileActivityUpdated,properties:{profile_id:e,feature_name:"Backup And Sync",action:"Contacts Sync Erroneous Situation",additional_description:t}})}}}})}}}}},{package:"$root$",file:"app/scripts/controller-init/identity/user-storage-controller-init.ts"}],[500,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"AuthenticationController")||!(0,n.isObject)(e.AuthenticationController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("Invalid AuthenticationController state: "+typeof e.AuthenticationController)),e}(0,n.hasProperty)(e.AuthenticationController,"sessionData")&&(0,n.isObject)(e.AuthenticationController.sessionData)&&(0,n.hasProperty)(e.AuthenticationController.sessionData,"accessToken")&&(e.AuthenticationController.sessionData=undefined,e.AuthenticationController.isSignedIn=!1)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=147}}},{package:"$root$",file:"app/scripts/migrations/147.ts"}],[5005,{"readable-stream":5004},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"}],[501,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"AppStateController")&&(0,n.isObject)(e.AppStateController)&&delete e.AppStateController.enableEIP1559V2NoticeDismissed;(0,n.hasProperty)(e,"NftController")&&(0,n.isObject)(e.NftController)&&(delete e.NftController.collectibles,delete e.NftController.collectibleContracts);(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(0,n.hasProperty)(e.PreferencesController,"preferences")&&(0,n.isObject)(e.PreferencesController.preferences)&&(delete e.PreferencesController.preferences.transactionSecurityCheckEnabled,delete e.PreferencesController.preferences.useRequestQueue)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=148}}},{package:"$root$",file:"app/scripts/migrations/148.ts"}],[5014,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(r=t.exports=function(e){return String(e).replace(r.expr,"")}).expr=/\/+$/}}},{package:"remove-trailing-slash",file:"node_modules/remove-trailing-slash/index.js"}],[502,{"@metamask/controller-utils":1347,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);t.meta.version=s;try{t.data=function(e){const t=(0,o.cloneDeep)(e);if(!(0,i.hasProperty)(t,"NetworkController"))throw new Error("newState.NetworkController must be present");if(!(0,i.isObject)(t.NetworkController))throw new Error("state.NetworkController must be an object, but is: "+typeof t.NetworkController);if(!(0,i.hasProperty)(t.NetworkController,"networkConfigurationsByChainId"))throw new Error("state.NetworkController.networkConfigurationsByChainId must be present");if(!(0,i.isObject)(t.NetworkController.networkConfigurationsByChainId))throw new Error("state.NetworkController.networkConfigurationsByChainId must be an object, but is: "+typeof t.NetworkController.networkConfigurationsByChainId);const{networkConfigurationsByChainId:r}=t.NetworkController;for(const[e,t]of Object.entries(r)){const o=(0,n.toHex)(e);if(!(0,i.isObject)(t))throw new Error(`state.NetworkController.networkConfigurationsByChainId has a network configuration under '${e}' that must be an object but is: ${typeof t}`);if("string"!=typeof t.chainId)throw new Error(`state.NetworkController.networkConfigurationsByChainId has a network configuration under '${e}' with a chainId that must be a string but is: ${typeof t.chainId}`);t.chainId=o,o!==e&&(delete r[e],r[o]=t)}return t}(t.data)}catch(e){var r,a;null===(r=global.sentry)||void 0===r||null===(a=r.captureException)||void 0===a||a.call(r,new Error(`Migration #${s}: ${(0,i.getErrorMessage)(e)}`))}return t},r.version=void 0;var n=e("@metamask/controller-utils"),i=e("@metamask/utils"),o=e("lodash");const s=r.version=149}}},{package:"$root$",file:"app/scripts/migrations/149.ts"}],[5023,{"./internal/AsyncSubject":5024,"./internal/BehaviorSubject":5025,"./internal/Notification":5026,"./internal/Observable":5028,"./internal/ReplaySubject":5029,"./internal/Scheduler":5030,"./internal/Subject":5031,"./internal/Subscriber":5032,"./internal/Subscription":5033,"./internal/config":5034,"./internal/firstValueFrom":5035,"./internal/lastValueFrom":5036,"./internal/observable/ConnectableObservable":5037,"./internal/observable/bindCallback":5038,"./internal/observable/bindNodeCallback":5040,"./internal/observable/combineLatest":5041,"./internal/observable/concat":5042,"./internal/observable/connectable":5043,"./internal/observable/defer":5044,"./internal/observable/dom/animationFrames":5045,"./internal/observable/empty":5046,"./internal/observable/forkJoin":5047,"./internal/observable/from":5048,"./internal/observable/fromEvent":5049,"./internal/observable/fromEventPattern":5050,"./internal/observable/generate":5052,"./internal/observable/iif":5053,"./internal/observable/interval":5055,"./internal/observable/merge":5056,"./internal/observable/never":5057,"./internal/observable/of":5058,"./internal/observable/onErrorResumeNext":5059,"./internal/observable/pairs":5060,"./internal/observable/partition":5061,"./internal/observable/race":5062,"./internal/observable/range":5063,"./internal/observable/throwError":5064,"./internal/observable/timer":5065,"./internal/observable/using":5066,"./internal/observable/zip":5067,"./internal/operators/audit":5069,"./internal/operators/auditTime":5070,"./internal/operators/buffer":5071,"./internal/operators/bufferCount":5072,"./internal/operators/bufferTime":5073,"./internal/operators/bufferToggle":5074,"./internal/operators/bufferWhen":5075,"./internal/operators/catchError":5076,"./internal/operators/combineAll":5077,"./internal/operators/combineLatestAll":5079,"./internal/operators/combineLatestWith":5080,"./internal/operators/concatAll":5082,"./internal/operators/concatMap":5083,"./internal/operators/concatMapTo":5084,"./internal/operators/concatWith":5085,"./internal/operators/connect":5086,"./internal/operators/count":5087,"./internal/operators/debounce":5088,"./internal/operators/debounceTime":5089,"./internal/operators/defaultIfEmpty":5090,"./internal/operators/delay":5091,"./internal/operators/delayWhen":5092,"./internal/operators/dematerialize":5093,"./internal/operators/distinct":5094,"./internal/operators/distinctUntilChanged":5095,"./internal/operators/distinctUntilKeyChanged":5096,"./internal/operators/elementAt":5097,"./internal/operators/endWith":5098,"./internal/operators/every":5099,"./internal/operators/exhaust":5100,"./internal/operators/exhaustAll":5101,"./internal/operators/exhaustMap":5102,"./internal/operators/expand":5103,"./internal/operators/filter":5104,"./internal/operators/finalize":5105,"./internal/operators/find":5106,"./internal/operators/findIndex":5107,"./internal/operators/first":5108,"./internal/operators/flatMap":5109,"./internal/operators/groupBy":5110,"./internal/operators/ignoreElements":5111,"./internal/operators/isEmpty":5112,"./internal/operators/last":5114,"./internal/operators/map":5115,"./internal/operators/mapTo":5116,"./internal/operators/materialize":5117,"./internal/operators/max":5118,"./internal/operators/mergeAll":5120,"./internal/operators/mergeMap":5122,"./internal/operators/mergeMapTo":5123,"./internal/operators/mergeScan":5124,"./internal/operators/mergeWith":5125,"./internal/operators/min":5126,"./internal/operators/multicast":5127,"./internal/operators/observeOn":5128,"./internal/operators/onErrorResumeNextWith":5129,"./internal/operators/pairwise":5130,"./internal/operators/pluck":5131,"./internal/operators/publish":5132,"./internal/operators/publishBehavior":5133,"./internal/operators/publishLast":5134,"./internal/operators/publishReplay":5135,"./internal/operators/raceWith":5136,"./internal/operators/reduce":5137,"./internal/operators/refCount":5138,"./internal/operators/repeat":5139,"./internal/operators/repeatWhen":5140,"./internal/operators/retry":5141,"./internal/operators/retryWhen":5142,"./internal/operators/sample":5143,"./internal/operators/sampleTime":5144,"./internal/operators/scan":5145,"./internal/operators/sequenceEqual":5147,"./internal/operators/share":5148,"./internal/operators/shareReplay":5149,"./internal/operators/single":5150,"./internal/operators/skip":5151,"./internal/operators/skipLast":5152,"./internal/operators/skipUntil":5153,"./internal/operators/skipWhile":5154,"./internal/operators/startWith":5155,"./internal/operators/subscribeOn":5156,"./internal/operators/switchAll":5157,"./internal/operators/switchMap":5158,"./internal/operators/switchMapTo":5159,"./internal/operators/switchScan":5160,"./internal/operators/take":5161,"./internal/operators/takeLast":5162,"./internal/operators/takeUntil":5163,"./internal/operators/takeWhile":5164,"./internal/operators/tap":5165,"./internal/operators/throttle":5166,"./internal/operators/throttleTime":5167,"./internal/operators/throwIfEmpty":5168,"./internal/operators/timeInterval":5169,"./internal/operators/timeout":5170,"./internal/operators/timeoutWith":5171,"./internal/operators/timestamp":5172,"./internal/operators/toArray":5173,"./internal/operators/window":5174,"./internal/operators/windowCount":5175,"./internal/operators/windowTime":5176,"./internal/operators/windowToggle":5177,"./internal/operators/windowWhen":5178,"./internal/operators/withLatestFrom":5179,"./internal/operators/zipAll":5181,"./internal/operators/zipWith":5182,"./internal/scheduled/scheduled":5189,"./internal/scheduler/VirtualTimeScheduler":5199,"./internal/scheduler/animationFrame":5200,"./internal/scheduler/asap":5202,"./internal/scheduler/async":5203,"./internal/scheduler/queue":5208,"./internal/symbol/observable":5211,"./internal/types":5212,"./internal/util/ArgumentOutOfRangeError":5213,"./internal/util/EmptyError":5214,"./internal/util/NotFoundError":5216,"./internal/util/ObjectUnsubscribedError":5217,"./internal/util/SequenceError":5218,"./internal/util/UnsubscriptionError":5219,"./internal/util/identity":5228,"./internal/util/isObservable":5235,"./internal/util/noop":5241,"./internal/util/pipe":5243},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 l=e("./internal/observable/dom/animationFrames");Object.defineProperty(r,"animationFrames",{enumerable:!0,get:function(){return l.animationFrames}});var u=e("./internal/Subject");Object.defineProperty(r,"Subject",{enumerable:!0,get:function(){return u.Subject}});var c=e("./internal/BehaviorSubject");Object.defineProperty(r,"BehaviorSubject",{enumerable:!0,get:function(){return c.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 p=e("./internal/scheduler/asap");Object.defineProperty(r,"asap",{enumerable:!0,get:function(){return p.asap}}),Object.defineProperty(r,"asapScheduler",{enumerable:!0,get:function(){return p.asapScheduler}});var h=e("./internal/scheduler/async");Object.defineProperty(r,"async",{enumerable:!0,get:function(){return h.async}}),Object.defineProperty(r,"asyncScheduler",{enumerable:!0,get:function(){return h.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 v=e("./internal/scheduler/VirtualTimeScheduler");Object.defineProperty(r,"VirtualTimeScheduler",{enumerable:!0,get:function(){return v.VirtualTimeScheduler}}),Object.defineProperty(r,"VirtualAction",{enumerable:!0,get:function(){return v.VirtualAction}});var y=e("./internal/Scheduler");Object.defineProperty(r,"Scheduler",{enumerable:!0,get:function(){return y.Scheduler}});var g=e("./internal/Subscription");Object.defineProperty(r,"Subscription",{enumerable:!0,get:function(){return g.Subscription}});var w=e("./internal/Subscriber");Object.defineProperty(r,"Subscriber",{enumerable:!0,get:function(){return w.Subscriber}});var k=e("./internal/Notification");Object.defineProperty(r,"Notification",{enumerable:!0,get:function(){return k.Notification}}),Object.defineProperty(r,"NotificationKind",{enumerable:!0,get:function(){return k.NotificationKind}});var j=e("./internal/util/pipe");Object.defineProperty(r,"pipe",{enumerable:!0,get:function(){return j.pipe}});var _=e("./internal/util/noop");Object.defineProperty(r,"noop",{enumerable:!0,get:function(){return _.noop}});var O=e("./internal/util/identity");Object.defineProperty(r,"identity",{enumerable:!0,get:function(){return O.identity}});var T=e("./internal/util/isObservable");Object.defineProperty(r,"isObservable",{enumerable:!0,get:function(){return T.isObservable}});var x=e("./internal/lastValueFrom");Object.defineProperty(r,"lastValueFrom",{enumerable:!0,get:function(){return x.lastValueFrom}});var S=e("./internal/firstValueFrom");Object.defineProperty(r,"firstValueFrom",{enumerable:!0,get:function(){return S.firstValueFrom}});var E=e("./internal/util/ArgumentOutOfRangeError");Object.defineProperty(r,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return E.ArgumentOutOfRangeError}});var C=e("./internal/util/EmptyError");Object.defineProperty(r,"EmptyError",{enumerable:!0,get:function(){return C.EmptyError}});var P=e("./internal/util/NotFoundError");Object.defineProperty(r,"NotFoundError",{enumerable:!0,get:function(){return P.NotFoundError}});var A=e("./internal/util/ObjectUnsubscribedError");Object.defineProperty(r,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return A.ObjectUnsubscribedError}});var M=e("./internal/util/SequenceError");Object.defineProperty(r,"SequenceError",{enumerable:!0,get:function(){return M.SequenceError}});var I=e("./internal/operators/timeout");Object.defineProperty(r,"TimeoutError",{enumerable:!0,get:function(){return I.TimeoutError}});var N=e("./internal/util/UnsubscriptionError");Object.defineProperty(r,"UnsubscriptionError",{enumerable:!0,get:function(){return N.UnsubscriptionError}});var B=e("./internal/observable/bindCallback");Object.defineProperty(r,"bindCallback",{enumerable:!0,get:function(){return B.bindCallback}});var $=e("./internal/observable/bindNodeCallback");Object.defineProperty(r,"bindNodeCallback",{enumerable:!0,get:function(){return $.bindNodeCallback}});var F=e("./internal/observable/combineLatest");Object.defineProperty(r,"combineLatest",{enumerable:!0,get:function(){return F.combineLatest}});var R=e("./internal/observable/concat");Object.defineProperty(r,"concat",{enumerable:!0,get:function(){return R.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 L=e("./internal/observable/empty");Object.defineProperty(r,"empty",{enumerable:!0,get:function(){return L.empty}});var z=e("./internal/observable/forkJoin");Object.defineProperty(r,"forkJoin",{enumerable:!0,get:function(){return z.forkJoin}});var q=e("./internal/observable/from");Object.defineProperty(r,"from",{enumerable:!0,get:function(){return q.from}});var W=e("./internal/observable/fromEvent");Object.defineProperty(r,"fromEvent",{enumerable:!0,get:function(){return W.fromEvent}});var H=e("./internal/observable/fromEventPattern");Object.defineProperty(r,"fromEventPattern",{enumerable:!0,get:function(){return H.fromEventPattern}});var V=e("./internal/observable/generate");Object.defineProperty(r,"generate",{enumerable:!0,get:function(){return V.generate}});var G=e("./internal/observable/iif");Object.defineProperty(r,"iif",{enumerable:!0,get:function(){return G.iif}});var K=e("./internal/observable/interval");Object.defineProperty(r,"interval",{enumerable:!0,get:function(){return K.interval}});var J=e("./internal/observable/merge");Object.defineProperty(r,"merge",{enumerable:!0,get:function(){return J.merge}});var Y=e("./internal/observable/never");Object.defineProperty(r,"never",{enumerable:!0,get:function(){return Y.never}});var Q=e("./internal/observable/of");Object.defineProperty(r,"of",{enumerable:!0,get:function(){return Q.of}});var X=e("./internal/observable/onErrorResumeNext");Object.defineProperty(r,"onErrorResumeNext",{enumerable:!0,get:function(){return X.onErrorResumeNext}});var Z=e("./internal/observable/pairs");Object.defineProperty(r,"pairs",{enumerable:!0,get:function(){return Z.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 le=e("./internal/observable/empty");Object.defineProperty(r,"EMPTY",{enumerable:!0,get:function(){return le.EMPTY}});var ue=e("./internal/observable/never");Object.defineProperty(r,"NEVER",{enumerable:!0,get:function(){return ue.NEVER}}),i(e("./internal/types"),r);var ce=e("./internal/config");Object.defineProperty(r,"config",{enumerable:!0,get:function(){return ce.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 pe=e("./internal/operators/buffer");Object.defineProperty(r,"buffer",{enumerable:!0,get:function(){return pe.buffer}});var he=e("./internal/operators/bufferCount");Object.defineProperty(r,"bufferCount",{enumerable:!0,get:function(){return he.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 ve=e("./internal/operators/bufferWhen");Object.defineProperty(r,"bufferWhen",{enumerable:!0,get:function(){return ve.bufferWhen}});var ye=e("./internal/operators/catchError");Object.defineProperty(r,"catchError",{enumerable:!0,get:function(){return ye.catchError}});var ge=e("./internal/operators/combineAll");Object.defineProperty(r,"combineAll",{enumerable:!0,get:function(){return ge.combineAll}});var we=e("./internal/operators/combineLatestAll");Object.defineProperty(r,"combineLatestAll",{enumerable:!0,get:function(){return we.combineLatestAll}});var ke=e("./internal/operators/combineLatestWith");Object.defineProperty(r,"combineLatestWith",{enumerable:!0,get:function(){return ke.combineLatestWith}});var je=e("./internal/operators/concatAll");Object.defineProperty(r,"concatAll",{enumerable:!0,get:function(){return je.concatAll}});var _e=e("./internal/operators/concatMap");Object.defineProperty(r,"concatMap",{enumerable:!0,get:function(){return _e.concatMap}});var Oe=e("./internal/operators/concatMapTo");Object.defineProperty(r,"concatMapTo",{enumerable:!0,get:function(){return Oe.concatMapTo}});var Te=e("./internal/operators/concatWith");Object.defineProperty(r,"concatWith",{enumerable:!0,get:function(){return Te.concatWith}});var xe=e("./internal/operators/connect");Object.defineProperty(r,"connect",{enumerable:!0,get:function(){return xe.connect}});var Se=e("./internal/operators/count");Object.defineProperty(r,"count",{enumerable:!0,get:function(){return Se.count}});var Ee=e("./internal/operators/debounce");Object.defineProperty(r,"debounce",{enumerable:!0,get:function(){return Ee.debounce}});var Ce=e("./internal/operators/debounceTime");Object.defineProperty(r,"debounceTime",{enumerable:!0,get:function(){return Ce.debounceTime}});var Pe=e("./internal/operators/defaultIfEmpty");Object.defineProperty(r,"defaultIfEmpty",{enumerable:!0,get:function(){return Pe.defaultIfEmpty}});var Ae=e("./internal/operators/delay");Object.defineProperty(r,"delay",{enumerable:!0,get:function(){return Ae.delay}});var Me=e("./internal/operators/delayWhen");Object.defineProperty(r,"delayWhen",{enumerable:!0,get:function(){return Me.delayWhen}});var Ie=e("./internal/operators/dematerialize");Object.defineProperty(r,"dematerialize",{enumerable:!0,get:function(){return Ie.dematerialize}});var Ne=e("./internal/operators/distinct");Object.defineProperty(r,"distinct",{enumerable:!0,get:function(){return Ne.distinct}});var Be=e("./internal/operators/distinctUntilChanged");Object.defineProperty(r,"distinctUntilChanged",{enumerable:!0,get:function(){return Be.distinctUntilChanged}});var $e=e("./internal/operators/distinctUntilKeyChanged");Object.defineProperty(r,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return $e.distinctUntilKeyChanged}});var Fe=e("./internal/operators/elementAt");Object.defineProperty(r,"elementAt",{enumerable:!0,get:function(){return Fe.elementAt}});var Re=e("./internal/operators/endWith");Object.defineProperty(r,"endWith",{enumerable:!0,get:function(){return Re.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 Le=e("./internal/operators/exhaustAll");Object.defineProperty(r,"exhaustAll",{enumerable:!0,get:function(){return Le.exhaustAll}});var ze=e("./internal/operators/exhaustMap");Object.defineProperty(r,"exhaustMap",{enumerable:!0,get:function(){return ze.exhaustMap}});var qe=e("./internal/operators/expand");Object.defineProperty(r,"expand",{enumerable:!0,get:function(){return qe.expand}});var We=e("./internal/operators/filter");Object.defineProperty(r,"filter",{enumerable:!0,get:function(){return We.filter}});var He=e("./internal/operators/finalize");Object.defineProperty(r,"finalize",{enumerable:!0,get:function(){return He.finalize}});var Ve=e("./internal/operators/find");Object.defineProperty(r,"find",{enumerable:!0,get:function(){return Ve.find}});var Ge=e("./internal/operators/findIndex");Object.defineProperty(r,"findIndex",{enumerable:!0,get:function(){return Ge.findIndex}});var Ke=e("./internal/operators/first");Object.defineProperty(r,"first",{enumerable:!0,get:function(){return Ke.first}});var Je=e("./internal/operators/groupBy");Object.defineProperty(r,"groupBy",{enumerable:!0,get:function(){return Je.groupBy}});var Ye=e("./internal/operators/ignoreElements");Object.defineProperty(r,"ignoreElements",{enumerable:!0,get:function(){return Ye.ignoreElements}});var Qe=e("./internal/operators/isEmpty");Object.defineProperty(r,"isEmpty",{enumerable:!0,get:function(){return Qe.isEmpty}});var Xe=e("./internal/operators/last");Object.defineProperty(r,"last",{enumerable:!0,get:function(){return Xe.last}});var Ze=e("./internal/operators/map");Object.defineProperty(r,"map",{enumerable:!0,get:function(){return Ze.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 lt=e("./internal/operators/mergeWith");Object.defineProperty(r,"mergeWith",{enumerable:!0,get:function(){return lt.mergeWith}});var ut=e("./internal/operators/min");Object.defineProperty(r,"min",{enumerable:!0,get:function(){return ut.min}});var ct=e("./internal/operators/multicast");Object.defineProperty(r,"multicast",{enumerable:!0,get:function(){return ct.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 pt=e("./internal/operators/pairwise");Object.defineProperty(r,"pairwise",{enumerable:!0,get:function(){return pt.pairwise}});var ht=e("./internal/operators/pluck");Object.defineProperty(r,"pluck",{enumerable:!0,get:function(){return ht.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 vt=e("./internal/operators/publishLast");Object.defineProperty(r,"publishLast",{enumerable:!0,get:function(){return vt.publishLast}});var yt=e("./internal/operators/publishReplay");Object.defineProperty(r,"publishReplay",{enumerable:!0,get:function(){return yt.publishReplay}});var gt=e("./internal/operators/raceWith");Object.defineProperty(r,"raceWith",{enumerable:!0,get:function(){return gt.raceWith}});var wt=e("./internal/operators/reduce");Object.defineProperty(r,"reduce",{enumerable:!0,get:function(){return wt.reduce}});var kt=e("./internal/operators/repeat");Object.defineProperty(r,"repeat",{enumerable:!0,get:function(){return kt.repeat}});var jt=e("./internal/operators/repeatWhen");Object.defineProperty(r,"repeatWhen",{enumerable:!0,get:function(){return jt.repeatWhen}});var _t=e("./internal/operators/retry");Object.defineProperty(r,"retry",{enumerable:!0,get:function(){return _t.retry}});var Ot=e("./internal/operators/retryWhen");Object.defineProperty(r,"retryWhen",{enumerable:!0,get:function(){return Ot.retryWhen}});var Tt=e("./internal/operators/refCount");Object.defineProperty(r,"refCount",{enumerable:!0,get:function(){return Tt.refCount}});var xt=e("./internal/operators/sample");Object.defineProperty(r,"sample",{enumerable:!0,get:function(){return xt.sample}});var St=e("./internal/operators/sampleTime");Object.defineProperty(r,"sampleTime",{enumerable:!0,get:function(){return St.sampleTime}});var Et=e("./internal/operators/scan");Object.defineProperty(r,"scan",{enumerable:!0,get:function(){return Et.scan}});var Ct=e("./internal/operators/sequenceEqual");Object.defineProperty(r,"sequenceEqual",{enumerable:!0,get:function(){return Ct.sequenceEqual}});var Pt=e("./internal/operators/share");Object.defineProperty(r,"share",{enumerable:!0,get:function(){return Pt.share}});var At=e("./internal/operators/shareReplay");Object.defineProperty(r,"shareReplay",{enumerable:!0,get:function(){return At.shareReplay}});var Mt=e("./internal/operators/single");Object.defineProperty(r,"single",{enumerable:!0,get:function(){return Mt.single}});var It=e("./internal/operators/skip");Object.defineProperty(r,"skip",{enumerable:!0,get:function(){return It.skip}});var Nt=e("./internal/operators/skipLast");Object.defineProperty(r,"skipLast",{enumerable:!0,get:function(){return Nt.skipLast}});var Bt=e("./internal/operators/skipUntil");Object.defineProperty(r,"skipUntil",{enumerable:!0,get:function(){return Bt.skipUntil}});var $t=e("./internal/operators/skipWhile");Object.defineProperty(r,"skipWhile",{enumerable:!0,get:function(){return $t.skipWhile}});var Ft=e("./internal/operators/startWith");Object.defineProperty(r,"startWith",{enumerable:!0,get:function(){return Ft.startWith}});var Rt=e("./internal/operators/subscribeOn");Object.defineProperty(r,"subscribeOn",{enumerable:!0,get:function(){return Rt.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 Lt=e("./internal/operators/switchMapTo");Object.defineProperty(r,"switchMapTo",{enumerable:!0,get:function(){return Lt.switchMapTo}});var zt=e("./internal/operators/switchScan");Object.defineProperty(r,"switchScan",{enumerable:!0,get:function(){return zt.switchScan}});var qt=e("./internal/operators/take");Object.defineProperty(r,"take",{enumerable:!0,get:function(){return qt.take}});var Wt=e("./internal/operators/takeLast");Object.defineProperty(r,"takeLast",{enumerable:!0,get:function(){return Wt.takeLast}});var Ht=e("./internal/operators/takeUntil");Object.defineProperty(r,"takeUntil",{enumerable:!0,get:function(){return Ht.takeUntil}});var Vt=e("./internal/operators/takeWhile");Object.defineProperty(r,"takeWhile",{enumerable:!0,get:function(){return Vt.takeWhile}});var Gt=e("./internal/operators/tap");Object.defineProperty(r,"tap",{enumerable:!0,get:function(){return Gt.tap}});var Kt=e("./internal/operators/throttle");Object.defineProperty(r,"throttle",{enumerable:!0,get:function(){return Kt.throttle}});var Jt=e("./internal/operators/throttleTime");Object.defineProperty(r,"throttleTime",{enumerable:!0,get:function(){return Jt.throttleTime}});var Yt=e("./internal/operators/throwIfEmpty");Object.defineProperty(r,"throwIfEmpty",{enumerable:!0,get:function(){return Yt.throwIfEmpty}});var Qt=e("./internal/operators/timeInterval");Object.defineProperty(r,"timeInterval",{enumerable:!0,get:function(){return Qt.timeInterval}});var Xt=e("./internal/operators/timeout");Object.defineProperty(r,"timeout",{enumerable:!0,get:function(){return Xt.timeout}});var Zt=e("./internal/operators/timeoutWith");Object.defineProperty(r,"timeoutWith",{enumerable:!0,get:function(){return Zt.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 lr=e("./internal/operators/zipAll");Object.defineProperty(r,"zipAll",{enumerable:!0,get:function(){return lr.zipAll}});var ur=e("./internal/operators/zipWith");Object.defineProperty(r,"zipWith",{enumerable:!0,get:function(){return ur.zipWith}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/index.js"}],[5024,{"./Subject":5031},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"}],[5025,{"./Subject":5031},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"}],[5026,{"./observable/empty":5046,"./observable/of":5058,"./observable/throwError":5064,"./util/isFunction":5232},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 l(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 l(e,t){var r,n,i,o=e,s=o.kind,a=o.value,l=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,l):null===(i=t.complete)||void 0===i||i.call(t)}r.Notification=a,r.observeNotification=l}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Notification.js"}],[5027,{},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"}],[5028,{"./Subscriber":5032,"./Subscription":5033,"./config":5034,"./symbol/observable":5211,"./util/errorContext":5226,"./util/isFunction":5232,"./util/pipe":5243},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"),l=e("./util/isFunction"),u=e("./util/errorContext"),c=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&&l.isFunction(e.next)&&l.isFunction(e.error)&&l.isFunction(e.complete)}(o)&&i.isSubscription(o)?e:new n.SafeSubscriber(e,t,r);return u.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=c}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Observable.js"}],[5029,{"./Subject":5031,"./scheduler/dateTimestampProvider":5204},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,l=1;l<n.length&&n[l]<=s;l+=2)a=l;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"}],[503,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;null==r||delete r.petnamesEnabled}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=150}}},{package:"$root$",file:"app/scripts/migrations/150.ts"}],[5030,{"./scheduler/dateTimestampProvider":5204},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"}],[5031,{"./Observable":5028,"./Subscription":5033,"./util/ObjectUnsubscribedError":5217,"./util/arrRemove":5223,"./util/errorContext":5226},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"),l=e("./util/ObjectUnsubscribedError"),u=e("./util/arrRemove"),c=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 l.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;c.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;c.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;c.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,u.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"}],[5032,{"./NotificationFactories":5027,"./Subscription":5033,"./config":5034,"./scheduler/timeoutProvider":5209,"./util/errorContext":5226,"./util/isFunction":5232,"./util/noop":5241,"./util/reportUnhandledError":5244},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"),l=e("./util/reportUnhandledError"),u=e("./util/noop"),c=e("./NotificationFactories"),f=e("./scheduler/timeoutProvider"),d=e("./util/errorContext"),p=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 v(e,t,r)},t.prototype.next=function(e){this.isStopped?g(c.nextNotification(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?g(c.errorNotification(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?g(c.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=p;var h=Function.prototype.bind;function b(e,t){return h.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}(),v=function(e){function t(t,r,n){var i,s,l=e.call(this)||this;o.isFunction(t)||!t?i={next:null!=t?t:undefined,error:null!=r?r:undefined,complete:null!=n?n:undefined}:l&&a.config.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return l.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 l.destination=new m(i),l}return i(t,e),t}(p);function y(e){a.config.useDeprecatedSynchronousErrorHandling?d.captureError(e):l.reportUnhandledError(e)}function g(e,t){var r=a.config.onStoppedNotification;r&&f.timeoutProvider.setTimeout(function(){return r(e,t)})}r.SafeSubscriber=v,r.EMPTY_OBSERVER={closed:!0,next:u.noop,error:function(e){throw e},complete:u.noop}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Subscriber.js"}],[5033,{"./util/UnsubscriptionError":5219,"./util/arrRemove":5223,"./util/isFunction":5232},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"),l=e("./util/arrRemove"),u=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,l,u;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),p=d.next();!p.done;p=d.next()){p.value.remove(this)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}else f.remove(this);var h=this.initialTeardown;if(s.isFunction(h))try{h()}catch(e){u=e instanceof a.UnsubscriptionError?e.errors:[e]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var m=n(b),v=m.next();!v.done;v=m.next()){var y=v.value;try{c(y)}catch(e){u=null!=u?u:[],e instanceof a.UnsubscriptionError?u=o(o([],i(u)),i(e.errors)):u.push(e)}}}catch(e){r={error:e}}finally{try{v&&!v.done&&(l=m.return)&&l.call(m)}finally{if(r)throw r.error}}}if(u)throw new a.UnsubscriptionError(u)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)c(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)&&l.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&l.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function c(e){s.isFunction(e)?e():e.unsubscribe()}r.Subscription=u,r.EMPTY_SUBSCRIPTION=u.EMPTY,r.isSubscription=function(e){return e instanceof u||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"}],[5034,{},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"}],[5035,{"./Subscriber":5032,"./util/EmptyError":5214},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"}],[5036,{"./util/EmptyError":5214},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"}],[5037,{"../Observable":5028,"../Subscription":5033,"../operators/OperatorSubscriber":5068,"../operators/refCount":5138,"../util/lift":5239},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"),l=e("../operators/OperatorSubscriber"),u=e("../util/lift"),c=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,u.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(l.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=c}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js"}],[5038,{"./bindCallbackInternals":5039},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"}],[5039,{"../AsyncSubject":5024,"../Observable":5028,"../operators/observeOn":5128,"../operators/subscribeOn":5156,"../util/isScheduler":5238,"../util/mapOneOrManyArgs":5240},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"),l=e("../util/mapOneOrManyArgs"),u=e("../operators/observeOn"),c=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(l.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),u.observeOn(d))}:function(){for(var e=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var l=new c.AsyncSubject,u=!0;return new s.Observable(function(s){var a=l.subscribe(s);if(u){u=!1;var c=!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 l.error(n)}l.next(1<e.length?e:e[0]),f=!0,c&&l.complete()}])),f&&l.complete(),c=!0}return a})}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js"}],[504,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController;null==t||delete t.incomingTransactionsPreferences}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=151}}},{package:"$root$",file:"app/scripts/migrations/151.ts"}],[5040,{"./bindCallbackInternals":5039},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"}],[5041,{"../Observable":5028,"../operators/OperatorSubscriber":5068,"../util/args":5220,"../util/argsArgArrayOrObject":5221,"../util/createObject":5225,"../util/executeSchedule":5227,"../util/identity":5228,"../util/mapOneOrManyArgs":5240,"./from":5048},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"),l=e("../util/args"),u=e("../util/createObject"),c=e("../operators/OperatorSubscriber"),f=e("../util/executeSchedule");function d(e,t,r){return void 0===r&&(r=s.identity),function(n){p(t,function(){for(var i=e.length,s=new Array(i),a=i,l=i,u=function(i){p(t,function(){var u=o.from(e[i],t),f=!1;u.subscribe(c.createOperatorSubscriber(n,function(e){s[i]=e,f||(f=!0,l--),l||n.next(r(s.slice()))},function(){--a||n.complete()}))},n)},f=0;f<i;f++)u(f)},n)}}function p(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=l.popScheduler(e),c=l.popResultSelector(e),f=i.argsArgArrayOrObject(e),p=f.args,h=f.keys;if(0===p.length)return o.from([],r);var b=new n.Observable(d(p,r,h?function(e){return u.createObject(h,e)}:s.identity));return c?b.pipe(a.mapOneOrManyArgs(c)):b},r.combineLatestInit=d}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js"}],[5042,{"../operators/concatAll":5082,"../util/args":5220,"./from":5048},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"}],[5043,{"../Observable":5028,"../Subject":5031,"./defer":5044},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,l=void 0===a||a,u=n(),c=new i.Observable(function(e){return u.subscribe(e)});return c.connect=function(){return r&&!r.closed||(r=o.defer(function(){return e}).subscribe(u),l&&r.add(function(){return u=n()})),r},c}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/connectable.js"}],[5044,{"../Observable":5028,"./innerFrom":5054},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"}],[5045,{"../../Observable":5028,"../../scheduler/animationFrameProvider":5201,"../../scheduler/performanceTimestampProvider":5207},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"}],[5046,{"../Observable":5028},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"}],[5047,{"../Observable":5028,"../operators/OperatorSubscriber":5068,"../util/args":5220,"../util/argsArgArrayOrObject":5221,"../util/createObject":5225,"../util/mapOneOrManyArgs":5240,"./innerFrom":5054},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"),l=e("../util/mapOneOrManyArgs"),u=e("../util/createObject");r.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.popResultSelector(e),c=i.argsArgArrayOrObject(e),f=c.args,d=c.keys,p=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?u.createObject(d,r):r),e.complete())}))},l=0;l<t;l++)s(l);else e.complete()});return r?p.pipe(l.mapOneOrManyArgs(r)):p}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js"}],[5048,{"../scheduled/scheduled":5189,"./innerFrom":5054},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"}],[5049,{"../Observable":5028,"../observable/innerFrom":5054,"../operators/mergeMap":5122,"../util/isArrayLike":5229,"../util/isFunction":5232,"../util/mapOneOrManyArgs":5240},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"),l=e("../util/isFunction"),u=e("../util/mapOneOrManyArgs"),c=["addListener","removeListener"],f=["addEventListener","removeEventListener"],d=["on","off"];function p(e,t){return function(r){return function(n){return e[r](t,n)}}}r.fromEvent=function e(t,r,h,b){if(l.isFunction(h)&&(b=h,h=undefined),b)return e(t,r,h).pipe(u.mapOneOrManyArgs(b));var m=n(function(e){return l.isFunction(e.addEventListener)&&l.isFunction(e.removeEventListener)}(t)?f.map(function(e){return function(n){return t[e](r,n,h)}}):function(e){return l.isFunction(e.addListener)&&l.isFunction(e.removeListener)}(t)?c.map(p(t,r)):function(e){return l.isFunction(e.on)&&l.isFunction(e.off)}(t)?d.map(p(t,r)):[],2),v=m[0],y=m[1];if(!v&&a.isArrayLike(t))return s.mergeMap(function(t){return e(t,r,h)})(i.innerFrom(t));if(!v)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 v(t),function(){return y(t)}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js"}],[505,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TESTNETS=void 0,r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"MultichainNetworkController")&&(0,n.isObject)(e.MultichainNetworkController)&&(0,n.isObject)(e.MultichainNetworkController.multichainNetworkConfigurationsByChainId)&&(e.MultichainNetworkController.multichainNetworkConfigurationsByChainId={...e.MultichainNetworkController.multichainNetworkConfigurationsByChainId,...s})}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=152.1,s=r.TESTNETS={"bip122:000000000933ea01ad0ee984209779ba":{chainId:"bip122:000000000933ea01ad0ee984209779ba",name:"Bitcoin Testnet",nativeCurrency:"bip122:000000000933ea01ad0ee984209779ba/slip44:0",isEvm:!1},"bip122:00000008819873e925422c1ff0f99f7c":{chainId:"bip122:00000008819873e925422c1ff0f99f7c",name:"Bitcoin Mutinynet",nativeCurrency:"bip122:00000008819873e925422c1ff0f99f7c/slip44:0",isEvm:!1},"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z":{chainId:"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",name:"Solana Testnet",nativeCurrency:"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z/slip44:501",isEvm:!1},"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1":{chainId:"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",name:"Solana Devnet",nativeCurrency:"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1/slip44:501",isEvm:!1}}}}},{package:"$root$",file:"app/scripts/migrations/152.1.ts"}],[5050,{"../Observable":5028,"../util/isFunction":5232,"../util/mapOneOrManyArgs":5240},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"}],[5051,{"../Observable":5028},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"}],[5052,{"../scheduled/scheduleIterable":5185,"../util/identity":5228,"../util/isScheduler":5238,"./defer":5044},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,l,u){var c,f,d,p;function h(){var e;return n(this,function(n){switch(n.label){case 0:e=p,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?(p=(c=e).initialState,t=c.condition,r=c.iterate,f=c.resultSelector,d=void 0===f?i.identity:f,u=c.scheduler):(p=e,!l||o.isScheduler(l)?(d=i.identity,u=l):d=l),s.defer(u?function(){return a.scheduleIterable(h(),u)}:h)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/generate.js"}],[5053,{"./defer":5044},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"}],[5054,{"../Observable":5028,"../symbol/observable":5211,"../util/isArrayLike":5229,"../util/isAsyncIterable":5230,"../util/isFunction":5232,"../util/isInteropObservable":5233,"../util/isIterable":5234,"../util/isPromise":5236,"../util/isReadableStreamLike":5237,"../util/reportUnhandledError":5244,"../util/throwUnobservableError":5245},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{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((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"),l=e("../util/isPromise"),u=e("../Observable"),c=e("../util/isInteropObservable"),f=e("../util/isAsyncIterable"),d=e("../util/throwUnobservableError"),p=e("../util/isIterable"),h=e("../util/isReadableStreamLike"),b=e("../util/isFunction"),m=e("../util/reportUnhandledError"),v=e("../symbol/observable");function y(e){return new u.Observable(function(t){var r=e[v.observable]();if(b.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function g(e){return new u.Observable(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function w(e){return new u.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 k(e){return new u.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 u.Observable(function(t){(function(e,t){var r,s,a,l;return n(this,void 0,void 0,function(){var n,u;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 u=i.sent(),a={error:u},[3,11];case 6:return i.trys.push([6,,9,10]),s&&!s.done&&(l=r.return)?[4,l.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 _(e){return j(h.readableStreamLikeToAsyncGenerator(e))}r.innerFrom=function(e){if(e instanceof u.Observable)return e;if(null!=e){if(c.isInteropObservable(e))return y(e);if(a.isArrayLike(e))return g(e);if(l.isPromise(e))return w(e);if(f.isAsyncIterable(e))return j(e);if(p.isIterable(e))return k(e);if(h.isReadableStreamLike(e))return _(e)}throw d.createInvalidObservableTypeError(e)},r.fromInteropObservable=y,r.fromArrayLike=g,r.fromPromise=w,r.fromIterable=k,r.fromAsyncIterable=j,r.fromReadableStreamLike=_}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js"}],[5055,{"../scheduler/async":5203,"./timer":5065},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"}],[5056,{"../operators/mergeAll":5120,"../util/args":5220,"./empty":5046,"./from":5048,"./innerFrom":5054},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),l=s.popNumber(e,Infinity),u=e;return u.length?1===u.length?i.innerFrom(u[0]):n.mergeAll(l)(a.from(u,r)):o.EMPTY}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/merge.js"}],[5057,{"../Observable":5028,"../util/noop":5241},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"}],[5058,{"../util/args":5220,"./from":5048},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"}],[5059,{"../Observable":5028,"../operators/OperatorSubscriber":5068,"../util/argsOrArgArray":5222,"../util/noop":5241,"./innerFrom":5054},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 l=new o.OperatorSubscriber(e,undefined,s.noop,s.noop);i.subscribe(l),l.add(n)}else e.complete()};n()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js"}],[506,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;null==r||delete r.disabledUpgradeAccountsByChain,null==r||delete r.accountUpgradeDisabledChains}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=152.2}}},{package:"$root$",file:"app/scripts/migrations/152.2.ts"}],[5060,{"./from":5048},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"}],[5061,{"../operators/filter":5104,"../util/not":5242,"./innerFrom":5054},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"}],[5062,{"../Observable":5028,"../operators/OperatorSubscriber":5068,"../util/argsOrArgArray":5222,"./innerFrom":5054},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"}],[5063,{"../Observable":5028,"./empty":5046},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"}],[5064,{"../Observable":5028,"../util/isFunction":5232},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"}],[5065,{"../Observable":5028,"../scheduler/async":5203,"../util/isDate":5231,"../util/isScheduler":5238},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"}],[5066,{"../Observable":5028,"./empty":5046,"./innerFrom":5054},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"}],[5067,{"../Observable":5028,"../operators/OperatorSubscriber":5068,"../util/args":5220,"../util/argsOrArgArray":5222,"./empty":5046,"./innerFrom":5054},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"),l=e("./empty"),u=e("../operators/OperatorSubscriber"),c=e("../util/args");r.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c.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(u.createOperatorSubscriber(e,function(s){if(t[a].push(s),t.every(function(e){return e.length})){var l=t.map(function(e){return e.shift()});e.next(r?r.apply(void 0,i([],n(l))):l),t.some(function(e,t){return!e.length&&o[t]})&&e.complete()}},function(){o[a]=!0,!t[a].length&&e.complete()}))},l=0;!e.closed&&l<f.length;l++)a(l);return function(){t=o=null}}):l.EMPTY}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/zip.js"}],[5068,{"../Subscriber":5032},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"}],[5069,{"../observable/innerFrom":5054,"../util/lift":5239,"./OperatorSubscriber":5068},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,l=!1,u=function(){if(null==a||a.unsubscribe(),a=null,n){n=!1;var e=s;s=null,r.next(e)}l&&r.complete()},c=function(){a=null,l&&r.complete()};t.subscribe(o.createOperatorSubscriber(r,function(t){n=!0,s=t,a||i.innerFrom(e(t)).subscribe(a=o.createOperatorSubscriber(r,u,c))},function(){l=!0,(!n||!a||a.closed)&&r.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/audit.js"}],[507,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,i.hasProperty)(e,"PermissionController"))return e;if(!(0,i.isObject)(e.PermissionController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${o}: typeof state.PermissionController is ${typeof e.PermissionController}`)),e}const{subjects:n}=e.PermissionController;if(!(0,i.isObject)(n)){var l,u;return null===(l=global.sentry)||void 0===l||null===(u=l.captureException)||void 0===u||u.call(l,new Error(`Migration ${o}: typeof state.PermissionController.subjects is ${typeof n}`)),e}for(const e of Object.values(n)){if(!(0,i.isObject)(e)||!(0,i.hasProperty)(e,"permissions")||!(0,i.isObject)(e.permissions))continue;const{permissions:t}=e,r=t[a];if(!(0,i.isObject)(r)||!Array.isArray(r.caveats))continue;const n=r.caveats.find(e=>e.type===s);n&&(0,i.isObject)(n.value)&&!(0,i.hasProperty)(n.value,"sessionProperties")&&(n.value.sessionProperties={})}}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=152,s="authorizedScopes",a="endowment:caip25"}}},{package:"$root$",file:"app/scripts/migrations/152.ts"}],[5070,{"../observable/timer":5065,"../scheduler/async":5203,"./audit":5069},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"}],[5071,{"../observable/innerFrom":5054,"../util/lift":5239,"../util/noop":5241,"./OperatorSubscriber":5068},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"}],[5072,{"../util/arrRemove":5223,"../util/lift":5239,"./OperatorSubscriber":5068},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=[],l=0;r.subscribe(o.createOperatorSubscriber(i,function(r){var o,u,c,f,d=null;l++%t===0&&a.push([]);try{for(var p=n(a),h=p.next();!h.done;h=p.next()){(v=h.value).push(r),e<=v.length&&(d=null!=d?d:[]).push(v)}}catch(e){o={error:e}}finally{try{h&&!h.done&&(u=p.return)&&u.call(p)}finally{if(o)throw o.error}}if(d)try{for(var b=n(d),m=b.next();!m.done;m=b.next()){var v=m.value;s.arrRemove(a,v),i.next(v)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(f=b.return)&&f.call(b)}finally{if(c)throw c.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"}],[5073,{"../Subscription":5033,"../scheduler/async":5203,"../util/args":5220,"../util/arrRemove":5223,"../util/executeSchedule":5227,"../util/lift":5239,"./OperatorSubscriber":5068},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"),l=e("../scheduler/async"),u=e("../util/args"),c=e("../util/executeSchedule");r.bufferTime=function(e){for(var t,r,f=[],d=1;d<arguments.length;d++)f[d-1]=arguments[d];var p=null!==(t=u.popScheduler(f))&&void 0!==t?t:l.asyncScheduler,h=null!==(r=f[0])&&void 0!==r?r:null,b=f[1]||Infinity;return o.operate(function(t,r){var o=[],l=!1,u=function(e){var t=e.buffer;e.subs.unsubscribe(),a.arrRemove(o,e),r.next(t),l&&f()},f=function(){if(o){var t=new i.Subscription;r.add(t);var n={buffer:[],subs:t};o.push(n),c.executeSchedule(t,p,function(){return u(n)},e)}};null!==h&&h>=0?c.executeSchedule(r,p,f,h,!0):l=!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 l=a.value,c=l.buffer;c.push(e),b<=c.length&&u(l)}}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"}],[5074,{"../Subscription":5033,"../observable/innerFrom":5054,"../util/arrRemove":5223,"../util/lift":5239,"../util/noop":5241,"./OperatorSubscriber":5068},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"),l=e("../util/noop"),u=e("../util/arrRemove");r.bufferToggle=function(e,t){return o.operate(function(r,o){var c=[];s.innerFrom(e).subscribe(a.createOperatorSubscriber(o,function(e){var r=[];c.push(r);var n=new i.Subscription;n.add(s.innerFrom(t(e)).subscribe(a.createOperatorSubscriber(o,function(){u.arrRemove(c,r),o.next(r),n.unsubscribe()},l.noop)))},l.noop)),r.subscribe(a.createOperatorSubscriber(o,function(e){var t,r;try{for(var i=n(c),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(;c.length>0;)o.next(c.shift());o.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js"}],[5075,{"../observable/innerFrom":5054,"../util/lift":5239,"../util/noop":5241,"./OperatorSubscriber":5068},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,l=function(){null==a||a.unsubscribe();var t=n;n=[],t&&r.next(t),s.innerFrom(e()).subscribe(a=o.createOperatorSubscriber(r,l,i.noop))};l(),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"}],[5076,{"../observable/innerFrom":5054,"../util/lift":5239,"./OperatorSubscriber":5068},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,l=!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)):l=!0})),l&&(a.unsubscribe(),a=null,s.subscribe(o))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/catchError.js"}],[5077,{"./combineLatestAll":5079},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"}],[5078,{"../observable/combineLatest":5041,"../util/args":5220,"../util/argsOrArgArray":5222,"../util/lift":5239,"../util/mapOneOrManyArgs":5240,"../util/pipe":5243},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"),l=e("../util/mapOneOrManyArgs"),u=e("../util/pipe"),c=e("../util/args");r.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var f=c.popResultSelector(t);return f?u.pipe(e.apply(void 0,i([],n(t))),l.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"}],[5079,{"../observable/combineLatest":5041,"./joinAllInternals":5113},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"}],[508,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if(!(0,i.hasProperty)(e,"TokensController"))return console.warn("newState.TokensController is not present"),e;const t=e.TokensController;if(!(0,i.isObject)(t)){var r,n;return null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`Migration ${o}: TokensController is type '${typeof t}', expected object.`)),e}if(!(0,i.hasProperty)(e,"TokenListController"))return console.warn("newState.TokenListController is not present"),e;const s=e.TokenListController;if(!(0,i.isObject)(s)){var a,l;return null===(a=global.sentry)||void 0===a||null===(l=a.captureException)||void 0===l||l.call(a,new Error(`Migration ${o}: TokenListController is type '${typeof s}', expected object.`)),e}(0,i.hasProperty)(t,"tokens")&&delete t.tokens;(0,i.hasProperty)(t,"detectedTokens")&&delete t.detectedTokens;(0,i.hasProperty)(t,"ignoredTokens")&&delete t.ignoredTokens;(0,i.hasProperty)(s,"tokenList")&&delete s.tokenList;return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=153}}},{package:"$root$",file:"app/scripts/migrations/153.ts"}],[5080,{"./combineLatest":5078},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"}],[5081,{"../observable/from":5048,"../util/args":5220,"../util/lift":5239,"./concatAll":5082},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"),l=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()(l.from(i([t],n(e)),r)).subscribe(o)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/concat.js"}],[5082,{"./mergeAll":5120},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"}],[5083,{"../util/isFunction":5232,"./mergeMap":5122},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"}],[5084,{"../util/isFunction":5232,"./concatMap":5083},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"}],[5085,{"./concat":5081},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"}],[5086,{"../Subject":5031,"../observable/fromSubscribable":5051,"../observable/innerFrom":5054,"../util/lift":5239},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"}],[5087,{"./reduce":5137},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"}],[5088,{"../observable/innerFrom":5054,"../util/lift":5239,"../util/noop":5241,"./OperatorSubscriber":5068},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,l=null,u=function(){if(null==l||l.unsubscribe(),l=null,n){n=!1;var e=a;a=null,r.next(e)}};t.subscribe(o.createOperatorSubscriber(r,function(t){null==l||l.unsubscribe(),n=!0,a=t,l=o.createOperatorSubscriber(r,u,i.noop),s.innerFrom(e(t)).subscribe(l)},function(){u(),r.complete()},undefined,function(){a=l=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/debounce.js"}],[5089,{"../scheduler/async":5203,"../util/lift":5239,"./OperatorSubscriber":5068},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,l=function(){if(i){i.unsubscribe(),i=null;var e=s;s=null,n.next(e)}};function u(){var r=a+e,o=t.now();if(o<r)return i=this.schedule(undefined,r-o),void n.add(i);l()}r.subscribe(o.createOperatorSubscriber(n,function(r){s=r,a=t.now(),i||(i=t.schedule(u,e),n.add(i))},function(){l(),n.complete()},undefined,function(){s=i=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js"}],[509,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){null==e||delete e.QueuedRequestController}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=154}}},{package:"$root$",file:"app/scripts/migrations/154.ts"}],[5090,{"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5091,{"../observable/timer":5065,"../scheduler/async":5203,"./delayWhen":5092},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"}],[5092,{"../observable/concat":5042,"../observable/innerFrom":5054,"./ignoreElements":5111,"./mapTo":5116,"./mergeMap":5122,"./take":5161},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"),l=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 l.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"}],[5093,{"../Notification":5026,"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5094,{"../observable/innerFrom":5054,"../util/lift":5239,"../util/noop":5241,"./OperatorSubscriber":5068},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"}],[5095,{"../util/identity":5228,"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5096,{"./distinctUntilChanged":5095},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"}],[5097,{"../util/ArgumentOutOfRangeError":5213,"./defaultIfEmpty":5090,"./filter":5104,"./take":5161,"./throwIfEmpty":5168},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(l){return l.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"}],[5098,{"../observable/concat":5042,"../observable/of":5058},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"}],[5099,{"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[51,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getGlobalChainId=function(e){const t=e.call("NetworkController:getState").selectedNetworkClientId,{chainId:r}=e.call("NetworkController:getNetworkClientById",t).configuration;return r}}}},{package:"$root$",file:"app/scripts/controller-init/init-utils.ts"}],[510,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if(!(0,i.hasProperty)(e,"BridgeStatusController"))return e;const t=e.BridgeStatusController;if(!(0,i.isObject)(t)){var r,n;return null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`Migration ${o}: BridgeStatusController is type '${typeof t}', expected object.`)),e}(0,i.hasProperty)(t,"bridgeStatusState")&&(0,i.isObject)(t.bridgeStatusState)&&(e.BridgeStatusController={...t.bridgeStatusState},delete t.bridgeStatusState);return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=155}}},{package:"$root$",file:"app/scripts/migrations/155.ts"}],[5100,{"./exhaustAll":5101},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"}],[5101,{"../util/identity":5228,"./exhaustMap":5102},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"}],[5102,{"../observable/innerFrom":5054,"../util/lift":5239,"./OperatorSubscriber":5068,"./map":5115},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"}],[5103,{"../util/lift":5239,"./mergeInternals":5121},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"}],[5104,{"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5105,{"../util/lift":5239},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"}],[5106,{"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5107,{"../util/lift":5239,"./find":5106},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"}],[5108,{"../util/EmptyError":5214,"../util/identity":5228,"./defaultIfEmpty":5090,"./filter":5104,"./take":5161,"./throwIfEmpty":5168},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"),l=e("../util/identity");r.first=function(e,t){var r=arguments.length>=2;return function(u){return u.pipe(e?i.filter(function(t,r){return e(t,r,u)}):l.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"}],[5109,{"./mergeMap":5122},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"}],[511,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,t.data=function(e){const t=e;(0,n.hasProperty)(t,"KeyringController")&&(0,i.isObject)(t.KeyringController)&&(0,n.hasProperty)(t.KeyringController,"keyringsMetadata")&&delete t.KeyringController.keyringsMetadata;return t}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=156.1}}},{package:"$root$",file:"app/scripts/migrations/156.1.ts"}],[5110,{"../Observable":5028,"../Subject":5031,"../observable/innerFrom":5054,"../util/lift":5239,"./OperatorSubscriber":5068},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,l){return s.operate(function(s,u){var c;t&&"function"!=typeof t?(r=t.duration,c=t.element,l=t.connector):c=t;var f=new Map,d=function(e){f.forEach(e),e(u)},p=function(e){return d(function(t){return t.error(e)})},h=0,b=!1,m=new a.OperatorSubscriber(u,function(t){try{var s=e(t),d=f.get(s);if(!d){f.set(s,d=l?l():new o.Subject);var v=(g=s,w=d,(k=new n.Observable(function(e){h++;var t=w.subscribe(e);return function(){t.unsubscribe(),0===--h&&b&&m.unsubscribe()}})).key=g,k);if(u.next(v),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(v)).subscribe(y))}}d.next(c?c(t):t)}catch(e){p(e)}var g,w,k},function(){return d(function(e){return e.complete()})},p,function(){return f.clear()},function(){return b=!0,0===h});s.subscribe(m)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/groupBy.js"}],[5111,{"../util/lift":5239,"../util/noop":5241,"./OperatorSubscriber":5068},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"}],[5112,{"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5113,{"../util/identity":5228,"../util/mapOneOrManyArgs":5240,"../util/pipe":5243,"./mergeMap":5122,"./toArray":5173},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"}],[5114,{"../util/EmptyError":5214,"../util/identity":5228,"./defaultIfEmpty":5090,"./filter":5104,"./takeLast":5162,"./throwIfEmpty":5168},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"),l=e("../util/identity");r.last=function(e,t){var r=arguments.length>=2;return function(u){return u.pipe(e?i.filter(function(t,r){return e(t,r,u)}):l.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"}],[5115,{"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5116,{"./map":5115},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"}],[5117,{"../Notification":5026,"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5118,{"../util/isFunction":5232,"./reduce":5137},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"}],[5119,{"../observable/from":5048,"../util/args":5220,"../util/argsOrArgArray":5222,"../util/lift":5239,"./mergeAll":5120},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("../util/argsOrArgArray"),a=e("./mergeAll"),l=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=l.popScheduler(e),c=l.popNumber(e,Infinity);return e=s.argsOrArgArray(e),o.operate(function(t,o){a.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"}],[512,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);t.meta.version=o;try{t.data=function(e){const t=(0,i.cloneDeep)(e);if(!(0,n.hasProperty)(t,"NftController"))return console.warn("newState.NftController must be present"),e;if(!(0,n.isObject)(t.NftController))throw new Error("state.NftController must be an object, but is: "+typeof t.NftController);if(!(0,n.hasProperty)(t.NftController,"allNfts"))throw new Error("state.NftController.allNfts must be present");if(!(0,n.isObject)(t.NftController.allNfts))throw new Error("state.NftController.allNfts must be an object, but is: "+typeof t.NftController.allNfts);const{allNfts:r}=t.NftController;for(const e of Object.values(r))for(const[t,r]of Object.entries(e))r.forEach(e=>{null!=e&&e.chainId||(e.chainId=Number(t))});return t}(t.data)}catch(e){var r,s;null===(r=global.sentry)||void 0===r||null===(s=r.captureException)||void 0===s||s.call(r,new Error(`Migration #${o}: ${(0,n.getErrorMessage)(e)}`))}return t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=156}}},{package:"$root$",file:"app/scripts/migrations/156.ts"}],[5120,{"../util/identity":5228,"./mergeMap":5122},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"}],[5121,{"../observable/innerFrom":5054,"../util/executeSchedule":5227,"./OperatorSubscriber":5068},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,l,u,c){var f=[],d=0,p=0,h=!1,b=function(){!h||f.length||d||t.complete()},m=function(e){return d<s?v(e):f.push(e)},v=function(e){l&&t.next(e),d++;var c=!1;n.innerFrom(r(e,p++)).subscribe(o.createOperatorSubscriber(t,function(e){null==a||a(e),l?m(e):t.next(e)},function(){c=!0},undefined,function(){if(c)try{d--;for(var e=function(){var e=f.shift();u?i.executeSchedule(t,u,function(){return v(e)}):v(e)};f.length&&d<s;)e();b()}catch(e){t.error(e)}}))};return e.subscribe(o.createOperatorSubscriber(t,m,function(){h=!0,b()})),function(){null==c||c()}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js"}],[5122,{"../observable/innerFrom":5054,"../util/isFunction":5232,"../util/lift":5239,"./map":5115,"./mergeInternals":5121},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,l){return void 0===l&&(l=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)))},l):("number"==typeof r&&(l=r),o.operate(function(e,r){return s.mergeInternals(e,r,t,l)}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"}],[5123,{"../util/isFunction":5232,"./mergeMap":5122},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"}],[5124,{"../util/lift":5239,"./mergeInternals":5121},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"}],[5125,{"./merge":5119},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"}],[5126,{"../util/isFunction":5232,"./reduce":5137},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"}],[5127,{"../observable/ConnectableObservable":5037,"../util/isFunction":5232,"./connect":5086},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"}],[5128,{"../util/executeSchedule":5227,"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5129,{"../observable/onErrorResumeNext":5059,"../util/argsOrArgArray":5222},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"}],[513,{"../../../shared/lib/sentry":5536,"@metamask/network-controller":2218,"@metamask/utils":2835,_process:4799,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.INFURA_CHAINS_WITH_FAILOVERS=void 0,r.migrate=async function(e){const r=(0,o.cloneDeep)(e);r.meta.version=a;try{!function(e){0;if(!(0,i.hasProperty)(e,"NetworkController"))throw new Error("Missing NetworkController state");if(!(0,i.isObject)(e.NetworkController))throw new Error("Expected state.NetworkController to be an object, but is "+typeof e.NetworkController);if(!(0,i.hasProperty)(e.NetworkController,"networkConfigurationsByChainId"))throw new Error("Missing state.NetworkController.networkConfigurationsByChainId");if(!(0,i.isObject)(e.NetworkController.networkConfigurationsByChainId))throw new Error("Expected state.NetworkController.networkConfigurationsByChainId to be an object, but is "+typeof e.NetworkController.networkConfigurationsByChainId);const{networkConfigurationsByChainId:r}=e.NetworkController;for(const[e,s]of Object.entries(r)){const r=l.get(e);(0,i.isObject)(s)&&(0,i.hasProperty)(s,"rpcEndpoints")&&Array.isArray(s.rpcEndpoints)&&(s.rpcEndpoints=s.rpcEndpoints.map(e=>{if(!(0,i.isObject)(e)||!(0,i.hasProperty)(e,"url")||"string"!=typeof e.url||(0,i.hasProperty)(e,"failoverUrls")&&Array.isArray(e.failoverUrls)&&e.failoverUrls.length>0)return e;const s=e.url.match(new RegExp(`https://(.+?)\\.infura\\.io/v3/${(0,o.escapeRegExp)(t.env.INFURA_PROJECT_ID)}`,"u")),a=s&&r&&s[1]===r.subdomain,l=null==r?void 0:r.getFailoverUrl();return l&&(e.type===n.RpcEndpointType.Infura||a)?{...e,failoverUrls:[l]}:e}))}}(r.data)}catch(t){console.error(t);const n=new Error(`Migration #${a}: ${(0,i.getErrorMessage)(t)}`);(0,s.captureException)(n),r.data=e.data}return r},r.version=void 0;var n=e("@metamask/network-controller"),i=e("@metamask/utils"),o=e("lodash"),s=e("../../../shared/lib/sentry");const a=r.version=157,l=r.INFURA_CHAINS_WITH_FAILOVERS=new Map([["0x1",{subdomain:"mainnet",getFailoverUrl:()=>"https://dimensional-special-breeze.quiknode.pro/d5e2d185c1561ef5ecb9aadf1ae7cc58863f4fa4/"}],["0xe708",{subdomain:"linea-mainnet",getFailoverUrl:()=>"https://patient-sleek-daylight.linea-mainnet.quiknode.pro/d0e608bf5f231ef9ae6756de4d7876cb0f5ece55/"}],["0xa4b1",{subdomain:"arbitrum",getFailoverUrl:()=>"https://purple-young-mansion.arbitrum-mainnet.quiknode.pro/f48c5cbfd1f5b39f0e5542d3b23c181b4085a2b5/"}],["0xa86a",{subdomain:"avalanche",getFailoverUrl:()=>"https://young-snowy-voice.avalanche-mainnet.quiknode.pro/41435f949d251a93110c8a44223028b9ecdae0b6/ext/bc/C/rpc/"}],["0xa",{subdomain:"optimism",getFailoverUrl:()=>"https://holy-convincing-diagram.optimism.quiknode.pro/4804f72f80b7566982ad24a7a1d8e1ae48bca208/"}],["0x89",{subdomain:"polygon",getFailoverUrl:()=>"https://powerful-radial-aura.matic.quiknode.pro/edaa1cc73ef2a19230e2e715e766b6783ad8126a/"}],["0x2105",{subdomain:"base",getFailoverUrl:()=>"https://ancient-quaint-water.base-mainnet.quiknode.pro/a2cb04635063b578dba24f656fe376a55e8d9939/"}]])}).call(this)}).call(this,e("_process"))}}},{package:"$root$",file:"app/scripts/migrations/157.ts"}],[5130,{"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5131,{"./map":5115},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"}],[5132,{"../Subject":5031,"./connect":5086,"./multicast":5127},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"}],[5133,{"../BehaviorSubject":5025,"../observable/ConnectableObservable":5037},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"}],[5134,{"../AsyncSubject":5024,"../observable/ConnectableObservable":5037},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"}],[5135,{"../ReplaySubject":5029,"../util/isFunction":5232,"./multicast":5127},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"}],[5136,{"../observable/race":5062,"../util/identity":5228,"../util/lift":5239},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"}],[5137,{"../util/lift":5239,"./scanInternals":5146},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"}],[5138,{"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5139,{"../observable/empty":5046,"../observable/innerFrom":5054,"../observable/timer":5065,"../util/lift":5239,"./OperatorSubscriber":5068},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,l=Infinity;return null!=e&&("object"==typeof e?(t=e.count,l=void 0===t?Infinity:t,r=e.delay):l=e),l<=0?function(){return n.EMPTY}:i.operate(function(e,t){var n,i=0,u=function(){if(null==n||n.unsubscribe(),n=null,null!=r){var e="number"==typeof r?a.timer(r):s.innerFrom(r(i)),l=o.createOperatorSubscriber(t,function(){l.unsubscribe(),c()});e.subscribe(l)}else c()},c=function(){var r=!1;n=e.subscribe(o.createOperatorSubscriber(t,undefined,function(){++i<l?n?u():r=!0:t.complete()})),r&&u()};c()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/repeat.js"}],[514,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"UserStorageController")||!(0,n.isObject)(e.UserStorageController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("Invalid UserStorageController state: "+typeof e.UserStorageController)),e}(0,n.hasProperty)(e.UserStorageController,"isProfileSyncingEnabled")&&(e.UserStorageController.isBackupAndSyncEnabled=Boolean(e.UserStorageController.isProfileSyncingEnabled),delete e.UserStorageController.isProfileSyncingEnabled);(0,n.hasProperty)(e.UserStorageController,"isProfileSyncingUpdateLoading")&&(e.UserStorageController.isBackupAndSyncUpdateLoading=Boolean(e.UserStorageController.isProfileSyncingUpdateLoading),delete e.UserStorageController.isProfileSyncingUpdateLoading)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=158}}},{package:"$root$",file:"app/scripts/migrations/158.ts"}],[5140,{"../Subject":5031,"../observable/innerFrom":5054,"../util/lift":5239,"./OperatorSubscriber":5068},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,l=!1,u=!1,c=!1,f=function(){return c&&u&&(r.complete(),!0)},d=function(){c=!1,o=t.subscribe(s.createOperatorSubscriber(r,undefined,function(){c=!0,!f()&&(a||(a=new i.Subject,n.innerFrom(e(a)).subscribe(s.createOperatorSubscriber(r,function(){o?d():l=!0},function(){u=!0,f()}))),a).next()})),l&&(o.unsubscribe(),o=null,l=!1,d())};d()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js"}],[5141,{"../observable/innerFrom":5054,"../observable/timer":5065,"../util/identity":5228,"../util/lift":5239,"./OperatorSubscriber":5068},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,l=void 0===r?Infinity:r,u=t.delay,c=t.resetOnSuccess,f=void 0!==c&&c;return l<=0?o.identity:n.operate(function(e,t){var r,n=0,o=function(){var c=!1;r=e.subscribe(i.createOperatorSubscriber(t,function(e){f&&(n=0),t.next(e)},undefined,function(e){if(n++<l){var f=function(){r?(r.unsubscribe(),r=null,o()):c=!0};if(null!=u){var d="number"==typeof u?s.timer(u):a.innerFrom(u(e,n)),p=i.createOperatorSubscriber(t,function(){p.unsubscribe(),f()},function(){t.complete()});d.subscribe(p)}else f()}else t.error(e)})),c&&(r.unsubscribe(),r=null,o())};o()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/retry.js"}],[5142,{"../Subject":5031,"../observable/innerFrom":5054,"../util/lift":5239,"./OperatorSubscriber":5068},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,l=!1,u=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?u():l=!0}))),a&&a.next(t)})),l&&(o.unsubscribe(),o=null,l=!1,u())};u()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js"}],[5143,{"../observable/innerFrom":5054,"../util/lift":5239,"../util/noop":5241,"./OperatorSubscriber":5068},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"}],[5144,{"../observable/interval":5055,"../scheduler/async":5203,"./sample":5143},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"}],[5145,{"../util/lift":5239,"./scanInternals":5146},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"}],[5146,{"./OperatorSubscriber":5068},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 l=r,u=t,c=0;s.subscribe(n.createOperatorSubscriber(a,function(t){var r=c++;u=l?e(u,t,r):(l=!0,t),i&&a.next(u)},o&&function(){l&&a.next(u),a.complete()}))}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js"}],[5147,{"../observable/innerFrom":5054,"../util/lift":5239,"./OperatorSubscriber":5068},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},l=function(e){n.next(e),n.complete()},u=function(e,r){var o=i.createOperatorSubscriber(n,function(n){var i=r.buffer,o=r.complete;0===i.length?o?l(!1):e.buffer.push(n):!t(n,i.shift())&&l(!1)},function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&l(0===n.length),null==o||o.unsubscribe()});return o};r.subscribe(u(s,a)),o.innerFrom(e).subscribe(u(a,s))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js"}],[5148,{"../Subject":5031,"../Subscriber":5032,"../observable/innerFrom":5054,"../util/lift":5239},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"),l=e("../util/lift");function u(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];if(!0!==t){if(!1!==t){var l=new a.SafeSubscriber({next:function(){l.unsubscribe(),e()}});return o.innerFrom(t.apply(void 0,i([],n(r)))).subscribe(l)}}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,c=e.resetOnComplete,f=void 0===c||c,d=e.resetOnRefCountZero,p=void 0===d||d;return function(e){var t,n,s,c=0,d=!1,h=!1,b=function(){null==n||n.unsubscribe(),n=undefined},m=function(){b(),t=s=undefined,d=h=!1},v=function(){var e=t;m(),null==e||e.unsubscribe()};return l.operate(function(e,l){c++,h||d||b();var y=s=null!=s?s:r();l.add(function(){0!==--c||h||d||(n=u(v,p))}),y.subscribe(l),!t&&c>0&&(t=new a.SafeSubscriber({next:function(e){return y.next(e)},error:function(e){h=!0,b(),n=u(m,i,e),y.error(e)},complete:function(){d=!0,b(),n=u(m,f),y.complete()}}),o.innerFrom(e).subscribe(t))})(e)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/share.js"}],[5149,{"../ReplaySubject":5029,"./share":5148},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,l,u=!1;return e&&"object"==typeof e?(o=e.bufferSize,l=void 0===o?Infinity:o,s=e.windowTime,t=void 0===s?Infinity:s,u=void 0!==(a=e.refCount)&&a,r=e.scheduler):l=null!=e?e:Infinity,i.share({connector:function(){return new n.ReplaySubject(l,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js"}],[515,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if(!(0,i.hasProperty)(e,"PreferencesController")){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${o}: PreferencesController not found.`)),e}const n=e.PreferencesController;if(!(0,i.isObject)(n)){var s,a;return null===(s=global.sentry)||void 0===s||null===(a=s.captureException)||void 0===a||a.call(s,new Error(`Migration ${o}: PreferencesController is type '${typeof n}', expected object.`)),e}(0,i.hasProperty)(n,"shouldShowAggregatedBalancePopover")&&delete n.shouldShowAggregatedBalancePopover;return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=159}}},{package:"$root$",file:"app/scripts/migrations/159.ts"}],[5150,{"../util/EmptyError":5214,"../util/NotFoundError":5216,"../util/SequenceError":5218,"../util/lift":5239,"./OperatorSubscriber":5068},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,l=!1,u=!1,c=0;t.subscribe(a.createOperatorSubscriber(r,function(n){u=!0,e&&!e(n,c++,t)||(l&&r.error(new i.SequenceError("Too many matching values")),l=!0,s=n)},function(){l?(r.next(s),r.complete()):r.error(u?new o.NotFoundError("No matching values"):new n.EmptyError)}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/single.js"}],[5151,{"./filter":5104},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"}],[5152,{"../util/identity":5228,"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5153,{"../observable/innerFrom":5054,"../util/lift":5239,"../util/noop":5241,"./OperatorSubscriber":5068},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"}],[5154,{"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5155,{"../observable/concat":5042,"../util/args":5220,"../util/lift":5239},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"}],[5156,{"../util/lift":5239},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"}],[5157,{"../util/identity":5228,"./switchMap":5158},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"}],[5158,{"../observable/innerFrom":5054,"../util/lift":5239,"./OperatorSubscriber":5068},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,l=!1,u=function(){return l&&!s&&i.complete()};r.subscribe(o.createOperatorSubscriber(i,function(r){null==s||s.unsubscribe();var l=0,c=a++;n.innerFrom(e(r,c)).subscribe(s=o.createOperatorSubscriber(i,function(e){return i.next(t?t(r,e,c,l++):e)},function(){s=null,u()}))},function(){l=!0,u()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/switchMap.js"}],[5159,{"../util/isFunction":5232,"./switchMap":5158},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"}],[516,{"@metamask/chain-agnostic-permission":1327,"@metamask/snaps-rpc-methods":2542,"@metamask/utils":2835,lodash:4561,nanoid:4745},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=l,t.data=function(e){const{NetworkController:t,PermissionController:r,SelectedNetworkController:n}=e;if(!t||!(0,i.isObject)(t)){var l,c;return null===(l=global.sentry)||void 0===l||null===(c=l.captureException)||void 0===c||c.call(l,new Error("Skipping migration: `NetworkController` state not found or is not an object.")),e}if(!(0,i.hasProperty)(t,"selectedNetworkClientId")||"string"!=typeof t.selectedNetworkClientId){var f,d;return null===(f=global.sentry)||void 0===f||null===(d=f.captureException)||void 0===d||d.call(f,new Error("Skipping migration: `NetworkController.selectedNetworkClientId` is not a string.")),e}if(!(0,i.hasProperty)(t,"networkConfigurationsByChainId")||!(0,i.isObject)(t.networkConfigurationsByChainId)){var p,h;return null===(p=global.sentry)||void 0===p||null===(h=p.captureException)||void 0===h||h.call(p,new Error("Skipping migration: `NetworkController.networkConfigurationsByChainId` is not an object.")),e}if(!r||!(0,i.isObject)(r)){var b,m;return null===(b=global.sentry)||void 0===b||null===(m=b.captureException)||void 0===m||m.call(b,new Error("Skipping migration: `PermissionController` state not found or is not an object.")),e}if(!(0,i.isObject)(r.subjects)){var v,y;return null===(v=global.sentry)||void 0===v||null===(y=v.captureException)||void 0===y||y.call(v,new Error("Skipping migration: `PermissionController.subjects` state is not an object.")),e}if(!n||!(0,i.isObject)(n)){var g,w;return null===(g=global.sentry)||void 0===g||null===(w=g.captureException)||void 0===w||w.call(g,new Error("Skipping migration: `SelectedNetworkController` state not found or is not an object.")),e}if(!(0,i.isObject)(n.domains)){var k,j;return null===(k=global.sentry)||void 0===k||null===(j=k.captureException)||void 0===j||j.call(k,new Error("Skipping migration: `SelectedNetworkController.domains` state is not an object.")),e}const _=function(e,t){const r=Object.entries(t).find(([,t])=>!!((0,i.isObject)(t)&&(0,i.hasProperty)(t,"rpcEndpoints")&&Array.isArray(t.rpcEndpoints))&&t.rpcEndpoints.some(t=>(0,i.isObject)(t)&&t.networkClientId===e));if(r)return r[0];return u.get(e)}(t.selectedNetworkClientId,t.networkConfigurationsByChainId);if("string"!=typeof _){var O,T;return null===(O=global.sentry)||void 0===O||null===(T=O.captureException)||void 0===T||T.call(O,new Error("Skipping migration: No currently selected chainId was found, or the chainId resolved from the `NetworkController.selectedNetworkClientId` value is not a string.")),e}const x=[],S=Object.entries(r.subjects);r.subjects=S.reduce((e,[t,r])=>{if(!Object.keys(r.permissions).includes(s.SnapEndowments.EthereumProvider))return{...e,[t]:r};x.push(t);const n=(0,a.addPermittedEthChainId)(function(e){var t;const r=null===(t=e.permissions[a.Caip25EndowmentPermissionName])||void 0===t||null===(t=t.caveats)||void 0===t?void 0:t.find(e=>e.type===a.Caip25CaveatType);if(!r)return{isMultichainOrigin:!1,optionalScopes:{},requiredScopes:{},sessionProperties:{}};return r.value}(r),_),{date:i=Date.now(),id:l=(0,o.nanoid)(),invoker:u=t,parentCapability:c=a.Caip25EndowmentPermissionName}=r.permissions[a.Caip25EndowmentPermissionName]??{},f={...r,permissions:{...r.permissions,[a.Caip25EndowmentPermissionName]:{caveats:[{type:a.Caip25CaveatType,value:n}],date:i,id:l,invoker:u,parentCapability:c}}};return{...e,[t]:f}},{});const E=n.domains,C=Object.fromEntries(x.map(e=>[e,t.selectedNetworkClientId]));return n.domains={...E,...C},e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("nanoid"),s=e("@metamask/snaps-rpc-methods"),a=e("@metamask/chain-agnostic-permission");const l=r.version=160,u=new Map([["sepolia","0xaa36a7"],["mainnet","0x1"],["linea-sepolia","0xe705"],["linea-mainnet","0xe708"]])}}},{package:"$root$",file:"app/scripts/migrations/160.ts"}],[5160,{"../util/lift":5239,"./switchMap":5158},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"}],[5161,{"../observable/empty":5046,"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5162,{"../observable/empty":5046,"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5163,{"../observable/innerFrom":5054,"../util/lift":5239,"../util/noop":5241,"./OperatorSubscriber":5068},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"}],[5164,{"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5165,{"../util/identity":5228,"../util/isFunction":5232,"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5166,{"../observable/innerFrom":5054,"../util/lift":5239,"./OperatorSubscriber":5068},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,l=void 0===a||a,u=s.trailing,c=void 0!==u&&u,f=!1,d=null,p=null,h=!1,b=function(){null==p||p.unsubscribe(),p=null,c&&(y(),h&&n.complete())},m=function(){p=null,h&&n.complete()},v=function(t){return p=o.innerFrom(e(t)).subscribe(i.createOperatorSubscriber(n,b,m))},y=function(){if(f){f=!1;var e=d;d=null,n.next(e),!h&&v(e)}};r.subscribe(i.createOperatorSubscriber(n,function(e){f=!0,d=e,(!p||p.closed)&&(l?y():v(e))},function(){h=!0,(!(c&&f&&p)||p.closed)&&n.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/throttle.js"}],[5167,{"../observable/timer":5065,"../scheduler/async":5203,"./throttle":5166},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"}],[5168,{"../util/EmptyError":5214,"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[5169,{"../scheduler/async":5203,"../util/lift":5239,"./OperatorSubscriber":5068},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"}],[517,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"PreferencesController")||!(0,n.isObject)(e.PreferencesController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("Invalid PreferencesController state: "+typeof e.PreferencesController)),e}(0,n.hasProperty)(e.PreferencesController,"bitcoinSupportEnabled")&&delete e.PreferencesController.bitcoinSupportEnabled;(0,n.hasProperty)(e.PreferencesController,"bitcoinTestnetSupportEnabled")&&delete e.PreferencesController.bitcoinTestnetSupportEnabled}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=161.1}}},{package:"$root$",file:"app/scripts/migrations/161.1.ts"}],[5170,{"../observable/innerFrom":5054,"../scheduler/async":5203,"../util/createErrorClass":5224,"../util/executeSchedule":5227,"../util/isDate":5231,"../util/lift":5239,"./OperatorSubscriber":5068},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"),l=e("./OperatorSubscriber"),u=e("../util/executeSchedule");function c(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,p=void 0===d?c:d,h=r.scheduler,b=void 0===h?null!=t?t:n.asyncScheduler:h,m=r.meta,v=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,c=function(e){n=u.executeSchedule(t,b,function(){try{r.unsubscribe(),s.innerFrom(p({meta:v,lastValue:i,seen:o})).subscribe(t)}catch(e){t.error(e)}},e)};r=e.subscribe(l.createOperatorSubscriber(t,function(e){null==n||n.unsubscribe(),o++,t.next(i=e),f>0&&c(f)},undefined,undefined,function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),i=null})),!o&&c(null!=a?"number"==typeof a?a:+a-b.now():f)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/timeout.js"}],[5171,{"../scheduler/async":5203,"../util/isDate":5231,"./timeout":5170},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,l;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(l=function(){return t},null==s&&null==a)throw new TypeError("No timeout provided.");return o.timeout({first:s,each:a,scheduler:r,with:l})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js"}],[5172,{"../scheduler/dateTimestampProvider":5204,"./map":5115},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"}],[5173,{"../util/lift":5239,"./reduce":5137},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"}],[5174,{"../Subject":5031,"../observable/innerFrom":5054,"../util/lift":5239,"../util/noop":5241,"./OperatorSubscriber":5068},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 l=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()},l)),a.innerFrom(e).subscribe(o.createOperatorSubscriber(r,function(){i.complete(),r.next(i=new n.Subject)},s.noop,l)),function(){null==i||i.unsubscribe(),i=null}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/window.js"}],[5175,{"../Subject":5031,"../util/lift":5239,"./OperatorSubscriber":5068},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],l=0;o.next(a[0].asObservable()),t.subscribe(s.createOperatorSubscriber(o,function(t){var s,u;try{for(var c=n(a),f=c.next();!f.done;f=c.next()){f.value.next(t)}}catch(e){s={error:e}}finally{try{f&&!f.done&&(u=c.return)&&u.call(c)}finally{if(s)throw s.error}}var d=l-e+1;if(d>=0&&d%r===0&&a.shift().complete(),++l%r===0){var p=new i.Subject;a.push(p),o.next(p.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"}],[5176,{"../Subject":5031,"../Subscription":5033,"../scheduler/async":5203,"../util/args":5220,"../util/arrRemove":5223,"../util/executeSchedule":5227,"../util/lift":5239,"./OperatorSubscriber":5068},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"),l=e("../util/arrRemove"),u=e("../util/args"),c=e("../util/executeSchedule");r.windowTime=function(e){for(var t,r,f=[],d=1;d<arguments.length;d++)f[d-1]=arguments[d];var p=null!==(t=u.popScheduler(f))&&void 0!==t?t:i.asyncScheduler,h=null!==(r=f[0])&&void 0!==r?r:null,b=f[1]||Infinity;return s.operate(function(t,r){var i=[],s=!1,u=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),l.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()),c.executeSchedule(t,p,function(){return u(a)},e)}};null!==h&&h>=0?c.executeSchedule(r,p,f,h,!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&&u(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"}],[5177,{"../Subject":5031,"../Subscription":5033,"../observable/innerFrom":5054,"../util/arrRemove":5223,"../util/lift":5239,"../util/noop":5241,"./OperatorSubscriber":5068},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"),l=e("./OperatorSubscriber"),u=e("../util/noop"),c=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(l.createOperatorSubscriber(s,function(e){var r=new i.Subject;f.push(r);var n,p=new o.Subscription;try{n=a.innerFrom(t(e))}catch(e){return void d(e)}s.next(r.asObservable()),p.add(n.subscribe(l.createOperatorSubscriber(s,function(){c.arrRemove(f,r),r.complete(),p.unsubscribe()},u.noop,d)))},u.noop)),r.subscribe(l.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"}],[5178,{"../Subject":5031,"../observable/innerFrom":5054,"../util/lift":5239,"./OperatorSubscriber":5068},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,l=function(e){i.error(e),r.error(e)},u=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 l(e)}t.subscribe(a=o.createOperatorSubscriber(r,u,u,l))};u(),t.subscribe(o.createOperatorSubscriber(r,function(e){return i.next(e)},function(){i.complete(),r.complete()},l,function(){null==a||a.unsubscribe(),i=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js"}],[5179,{"../observable/innerFrom":5054,"../util/args":5220,"../util/identity":5228,"../util/lift":5239,"../util/noop":5241,"./OperatorSubscriber":5068},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"),l=e("../util/identity"),u=e("../util/noop"),c=e("../util/args");r.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c.popResultSelector(e);return o.operate(function(t,o){for(var c=e.length,f=new Array(c),d=e.map(function(){return!1}),p=!1,h=function(t){a.innerFrom(e[t]).subscribe(s.createOperatorSubscriber(o,function(e){f[t]=e,p||d[t]||(d[t]=!0,(p=d.every(l.identity))&&(d=null))},u.noop))},b=0;b<c;b++)h(b);t.subscribe(s.createOperatorSubscriber(o,function(e){if(p){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"}],[518,{"@metamask/controller-utils":1347,"@metamask/network-controller":2218,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,s.cloneDeep)(e);return t.meta.version=a,t.data=function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)){const t="monad-testnet",r=o.ChainId[t],n={chainId:r,name:o.NetworkNickname[t],nativeCurrency:o.NetworksTicker[t],blockExplorerUrls:[o.BlockExplorerUrl[t]],defaultRpcEndpointIndex:0,defaultBlockExplorerUrlIndex:0,rpcEndpoints:[{networkClientId:t,type:i.RpcEndpointType.Custom,url:o.BUILT_IN_CUSTOM_NETWORKS_RPC[t]}]};e.NetworkController.networkConfigurationsByChainId[r]=n}return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("@metamask/network-controller"),o=e("@metamask/controller-utils"),s=e("lodash");const a=r.version=161}}},{package:"$root$",file:"app/scripts/migrations/161.ts"}],[5180,{"../observable/zip":5067,"../util/lift":5239},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"}],[5181,{"../observable/zip":5067,"./joinAllInternals":5113},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"}],[5182,{"./zip":5180},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"}],[5183,{"../Observable":5028},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"}],[5184,{"../Observable":5028,"../util/executeSchedule":5227},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"}],[5185,{"../Observable":5028,"../symbol/iterator":5210,"../util/executeSchedule":5227,"../util/isFunction":5232},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"}],[5186,{"../observable/innerFrom":5054,"../operators/observeOn":5128,"../operators/subscribeOn":5156},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"}],[5187,{"../observable/innerFrom":5054,"../operators/observeOn":5128,"../operators/subscribeOn":5156},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"}],[5188,{"../util/isReadableStreamLike":5237,"./scheduleAsyncIterable":5184},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"}],[5189,{"../util/isArrayLike":5229,"../util/isAsyncIterable":5230,"../util/isInteropObservable":5233,"../util/isIterable":5234,"../util/isPromise":5236,"../util/isReadableStreamLike":5237,"../util/throwUnobservableError":5245,"./scheduleArray":5183,"./scheduleAsyncIterable":5184,"./scheduleIterable":5185,"./scheduleObservable":5186,"./schedulePromise":5187,"./scheduleReadableStreamLike":5188},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"),l=e("../util/isInteropObservable"),u=e("../util/isPromise"),c=e("../util/isArrayLike"),f=e("../util/isIterable"),d=e("../util/isAsyncIterable"),p=e("../util/throwUnobservableError"),h=e("../util/isReadableStreamLike"),b=e("./scheduleReadableStreamLike");r.scheduled=function(e,t){if(null!=e){if(l.isInteropObservable(e))return n.scheduleObservable(e,t);if(c.isArrayLike(e))return o.scheduleArray(e,t);if(u.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(h.isReadableStreamLike(e))return b.scheduleReadableStreamLike(e,t)}throw p.createInvalidObservableTypeError(e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js"}],[519,{"@metamask/keyring-api":2044,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=s,t.data=function(e){if(!(0,i.hasProperty)(e,"TokensController")){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${s}: TokensController not found.`)),e}if(!(0,i.hasProperty)(e,"AccountsController")){var n,a;return null===(n=global.sentry)||void 0===n||null===(a=n.captureException)||void 0===a||a.call(n,new Error(`Migration ${s}: AccountsController not found.`)),e}if(!(0,i.hasProperty)(e,"TokenBalancesController")){var l,u;return null===(l=global.sentry)||void 0===l||null===(u=l.captureException)||void 0===u||u.call(l,new Error(`Migration ${s}: TokenBalancesController not found.`)),e}const c=e.TokensController,f=e.TokenBalancesController,d=e.AccountsController;if(!(0,i.isObject)(c)){var p,h;return null===(p=global.sentry)||void 0===p||null===(h=p.captureException)||void 0===h||h.call(p,new Error(`Migration ${s}: TokensController is type '${typeof c}', expected object.`)),e}if(!(0,i.isObject)(f)){var b,m;return null===(b=global.sentry)||void 0===b||null===(m=b.captureException)||void 0===m||m.call(b,new Error(`Migration ${s}: TokenBalancesController is type '${typeof f}', expected object.`)),e}if(!(0,i.isObject)(d)){var v,y;return null===(v=global.sentry)||void 0===v||null===(y=v.captureException)||void 0===y||y.call(v,new Error(`Migration ${s}: AccountsController is type '${typeof d}', expected object.`)),e}const{internalAccounts:g}=d,w=Object.values(g.accounts),k=w.filter(e=>(0,o.isEvmAccountType)(e.type)).map(e=>e.address);if((0,i.hasProperty)(c,"allTokens"))for(const e of Object.keys(c.allTokens)){const t=c.allTokens[e];for(const r of Object.keys(t))k.includes(r)||delete c.allTokens[e][r]}if((0,i.hasProperty)(c,"allDetectedTokens"))for(const e of Object.keys(c.allDetectedTokens)){const t=c.allDetectedTokens[e];for(const r of Object.keys(t))k.includes(r)||delete c.allDetectedTokens[e][r]}if((0,i.hasProperty)(c,"allIgnoredTokens"))for(const e of Object.keys(c.allIgnoredTokens)){const t=c.allIgnoredTokens[e];for(const r of Object.keys(t))k.includes(r)||delete c.allIgnoredTokens[e][r]}if((0,i.hasProperty)(f,"tokenBalances"))for(const e of Object.keys(f.tokenBalances))k.includes(e)||delete f.tokenBalances[e];return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("@metamask/keyring-api");const s=r.version=162}}},{package:"$root$",file:"app/scripts/migrations/162.ts"}],[5190,{"../Subscription":5033},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"}],[5191,{"./AsyncAction":5195,"./animationFrameProvider":5201},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&&(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"}],[5192,{"./AsyncScheduler":5196},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){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.AnimationFrameScheduler=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js"}],[5193,{"./AsyncAction":5195,"./immediateProvider":5205},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"}],[5194,{"./AsyncScheduler":5196},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"}],[5195,{"../util/arrRemove":5223,"./Action":5190,"./intervalProvider":5206},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"),l=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=l}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"}],[5196,{"../Scheduler":5030},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"}],[5197,{"./AsyncAction":5195},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"}],[5198,{"./AsyncScheduler":5196},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"}],[5199,{"../Subscription":5033,"./AsyncAction":5195,"./AsyncScheduler":5196},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=l),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 l=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=l}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js"}],[52,{"../../controllers/institutional-snap/InstitutionalSnapController":203},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InstitutionalSnapControllerInit=void 0;var n=e("../../controllers/institutional-snap/InstitutionalSnapController");r.InstitutionalSnapControllerInit=e=>({controller:new n.InstitutionalSnapController({messenger:e.controllerMessenger})})}}},{package:"$root$",file:"app/scripts/controller-init/institutional-snap/institutional-snap-controller-init.ts"}],[520,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if(!(0,i.hasProperty)(e,"TokensController"))return console.warn("newState.TokensController is not present"),e;const t=e.TokensController;if(!(0,i.isObject)(t)){var r,n;return null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`Migration ${o}: TokensController is type '${typeof t}', expected object.`)),e}(0,i.hasProperty)(t,"tokens")&&delete t.tokens;(0,i.hasProperty)(t,"detectedTokens")&&delete t.detectedTokens;(0,i.hasProperty)(t,"ignoredTokens")&&delete t.ignoredTokens;return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=163}}},{package:"$root$",file:"app/scripts/migrations/163.ts"}],[5200,{"./AnimationFrameAction":5191,"./AnimationFrameScheduler":5192},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"}],[5201,{"../Subscription":5033},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"}],[5202,{"./AsapAction":5193,"./AsapScheduler":5194},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"}],[5203,{"./AsyncAction":5195,"./AsyncScheduler":5196},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"}],[5204,{},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"}],[5205,{"../util/Immediate":5215},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"}],[5206,{},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"}],[5207,{},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"}],[5208,{"./QueueAction":5197,"./QueueScheduler":5198},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"}],[5209,{},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"}],[521,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if(!(0,i.hasProperty)(e,"PermissionController")){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${o}: PermissionController not found.`)),e}if(!(0,i.hasProperty)(e,"NetworkController")){var n,l;return null===(n=global.sentry)||void 0===n||null===(l=n.captureException)||void 0===l||l.call(n,new Error(`Migration ${o}: NetworkController not found.`)),e}const u=e.PermissionController,c=e.NetworkController;if(!(0,i.isObject)(u)){var f,d;return null===(f=global.sentry)||void 0===f||null===(d=f.captureException)||void 0===d||d.call(f,new Error(`Migration ${o}: PermissionController is type '${typeof u}', expected object.`)),e}if(!(0,i.isObject)(c)){var p,h;return null===(p=global.sentry)||void 0===p||null===(h=p.captureException)||void 0===h||h.call(p,new Error(`Migration ${o}: NetworkController is type '${typeof c}', expected object.`)),e}if(!(0,i.hasProperty)(c,"networkConfigurationsByChainId")){var b,m;return null===(b=global.sentry)||void 0===b||null===(m=b.captureException)||void 0===m||m.call(b,new Error(`Migration ${o}: NetworkController.networkConfigurationsByChainId not found.`)),e}const{networkConfigurationsByChainId:v}=c;if(!(0,i.isObject)(v)){var y,g;return null===(y=global.sentry)||void 0===y||null===(g=y.captureException)||void 0===g||g.call(y,new Error(`Migration ${o}: NetworkController.networkConfigurationsByChainId is type '${typeof v}', expected object.`)),e}const w=Object.keys(v).map(e=>`eip155:${parseInt(e,16)}`);if(!(0,i.hasProperty)(u,"subjects"))return e;const{subjects:k}=u;if(!(0,i.isObject)(k)){var j,_;return null===(j=global.sentry)||void 0===j||null===(_=j.captureException)||void 0===_||_.call(j,new Error(`Migration ${o}: PermissionController.subjects is type '${typeof k}', expected object.`)),e}for(const e of Object.keys(k)){const t=k[e];if(!(0,i.isObject)(t))continue;if(!(0,i.hasProperty)(t,"permissions")||!(0,i.isObject)(t.permissions))continue;const{permissions:r}=t;if(!(0,i.hasProperty)(r,a))continue;const n=r[a];if((0,i.isObject)(n)&&((0,i.hasProperty)(n,"caveats")&&Array.isArray(n.caveats)))for(const e of n.caveats){if(!(0,i.isObject)(e)||e.type!==s)continue;if(!(0,i.hasProperty)(e,"value")||!(0,i.isObject)(e.value))continue;const t=e.value;if((0,i.isObject)(t.requiredScopes))for(const e of Object.keys(t.requiredScopes))!e.startsWith("wallet:")&&e.startsWith("eip155:")&&(w.includes(e)||delete t.requiredScopes[e]);if((0,i.isObject)(t.optionalScopes))for(const e of Object.keys(t.optionalScopes))!e.startsWith("wallet:")&&e.startsWith("eip155:")&&(w.includes(e)||delete t.optionalScopes[e])}}return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=164,s="authorizedScopes",a="endowment:caip25"}}},{package:"$root$",file:"app/scripts/migrations/164.ts"}],[5210,{},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"}],[5211,{},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"}],[5212,{},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"}],[5213,{"./createErrorClass":5224},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"}],[5214,{"./createErrorClass":5224},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"}],[5215,{},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"}],[5216,{"./createErrorClass":5224},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"}],[5217,{"./createErrorClass":5224},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"}],[5218,{"./createErrorClass":5224},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"}],[5219,{"./createErrorClass":5224},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"}],[522,{"@metamask/snaps-rpc-methods":2542,"@metamask/snaps-utils":2712,"@metamask/utils":2835,"cron-parser":3904,lodash:4561,luxon:4572},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getExecutionDate=c,r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=u,t.data=function(e){if(!(0,i.hasProperty)(e,"CronjobController")||!(0,i.isObject)(e.CronjobController))return console.warn(`Skipping migration ${u}: \`CronjobController\` state not found or is not an object.`),e;if(!(0,i.hasProperty)(e,"PermissionController")||!(0,i.isObject)(e.PermissionController))return console.warn(new Error(`Skipping migration ${u}: \`PermissionController\` state not found or is not an object.`)),e;const t=e.CronjobController,r=e.PermissionController,n=Object.fromEntries(Object.values(r.subjects).filter(e=>(0,a.isSnapId)(e.origin)&&e.permissions[l.SnapEndowments.Cronjob]).flatMap(e=>{const{caveats:r}=e.permissions[l.SnapEndowments.Cronjob];if(!Array.isArray(r))return[];const n=r.find(e=>e.type===a.SnapCaveatType.SnapCronjob);if(!(null!=n&&n.value&&(0,i.isPlainObject)(n.value)&&(0,i.hasProperty)(n.value,"jobs")&&Array.isArray(n.value.jobs)))return[];return n.value.jobs.map(({expression:r,request:n},i)=>{var o;const a=`${e.origin}-${i}`,{lastRun:l}=(null===(o=t.jobs)||void 0===o?void 0:o[a])??{lastRun:0},u=(0,s.parseExpression)(r),f=u.hasPrev()&&u.prev().getTime()>l?u.prev().toISOString():c(r);return{id:`cronjob-${e.origin}-${i}`,recurring:!0,schedule:r,scheduledAt:(new Date).toISOString(),snapId:e.origin,date:f,request:n}})}).map(e=>[e.id,e])),o=Object.fromEntries(Object.entries(t.events??{}).map(([e,t])=>[e,{...t,recurring:!1,schedule:t.date}]));return t.events={...o,...n},delete t.jobs,e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("luxon"),s=e("cron-parser"),a=e("@metamask/snaps-utils"),l=e("@metamask/snaps-rpc-methods");const u=r.version=165;function c(e){const t=o.DateTime.fromISO(e,{setZone:!0});if(t.isValid){const e=Date.now(),r=t.toUTC().startOf("second");if(r.toMillis()<e)throw new Error("Cannot schedule an event in the past.");return r.toISO({suppressMilliseconds:!0})}try{const t=(0,s.parseExpression)(e,{utc:!0}).next(),r=o.DateTime.fromJSDate(t.toDate());return(0,i.assert)(r.isValid),r.toUTC().toISO()}catch{throw new Error(`Unable to parse "${e}" as ISO 8601 date, ISO 8601 duration, or cron expression.`)}}}}},{package:"$root$",file:"app/scripts/migrations/165.ts"}],[5220,{"./isFunction":5232,"./isScheduler":5238},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"}],[5221,{},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"}],[5222,{},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"}],[5223,{},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"}],[5224,{},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"}],[5225,{},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"}],[5226,{"../config":5034},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"}],[5227,{},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"}],[5228,{},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"}],[5229,{},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"}],[523,{"../../../shared/constants/network":5456,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getBaseNetworkConfiguration=a,r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=s,t.data=function(e){if(!(0,i.hasProperty)(e,"NetworkController"))return console.warn(`Migration ${s}: NetworkController not found.`),e;const t=e.NetworkController;if(!(0,i.isObject)(t)){var r,n;return null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`Migration ${s}: NetworkController is not an object: ${typeof t}`)),e}if(!(0,i.hasProperty)(t,"networkConfigurationsByChainId")){var l,u;return null===(l=global.sentry)||void 0===l||null===(u=l.captureException)||void 0===u||u.call(l,new Error(`Migration ${s}: NetworkController missing property networkConfigurationsByChainId.`)),e}if(!(0,i.isObject)(t.networkConfigurationsByChainId)){var c,f;return null===(c=global.sentry)||void 0===c||null===(f=c.captureException)||void 0===f||f.call(c,new Error(`Migration ${s}: NetworkController.networkConfigurationsByChainId is not an object: ${typeof t.networkConfigurationsByChainId}.`)),e}if(t.networkConfigurationsByChainId[o.CHAIN_IDS.BASE])return e;return t.networkConfigurationsByChainId[o.CHAIN_IDS.BASE]=a(),e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("../../../shared/constants/network");const s=r.version=166;function a(){return{blockExplorerUrls:[],chainId:"0x2105",defaultRpcEndpointIndex:0,name:"Base Mainnet",nativeCurrency:"ETH",rpcEndpoints:[{failoverUrls:(0,o.getFailoverUrlsForInfuraNetwork)("base-mainnet"),networkClientId:"base-mainnet",type:"infura",url:"https://base-mainnet.infura.io/v3/{infuraProjectId}"}]}}}}},{package:"$root$",file:"app/scripts/migrations/166.ts"}],[5230,{"./isFunction":5232},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"}],[5231,{},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"}],[5232,{},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"}],[5233,{"../symbol/observable":5211,"./isFunction":5232},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"}],[5234,{"../symbol/iterator":5210,"./isFunction":5232},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"}],[5235,{"../Observable":5028,"./isFunction":5232},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"}],[5236,{"./isFunction":5232},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"}],[5237,{"./isFunction":5232},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||l(e,t)})})}function l(e,t){try{(r=o[e](t)).value instanceof i?Promise.resolve(r.value.v).then(u,c):f(s[0][2],r)}catch(e){f(s[0][3],e)}var r}function u(e){l("next",e)}function c(e){l("throw",e)}function f(e,t){e(t),s.shift(),s.length&&l(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"}],[5238,{"./isFunction":5232},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"}],[5239,{"./isFunction":5232},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"}],[524,{"../../../shared/lib/manifestFlags":5526,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=s,t.data=function(e){var t;if(!(0,i.hasProperty)(e,"UserStorageController"))return console.warn("newState.UserStorageController is not present"),e;const r=e.UserStorageController;if(!(0,i.isObject)(r)){var n,a;return null===(n=global.sentry)||void 0===n||null===(a=n.captureException)||void 0===a||a.call(n,new Error(`Migration ${s}: UserStorageController is type '${typeof r}', expected object.`)),e}(0,i.hasProperty)(r,"isBackupAndSyncEnabled")&&(r.isBackupAndSyncEnabled=!0);(0,i.hasProperty)(r,"isAccountSyncingEnabled")&&(r.isAccountSyncingEnabled=!0);null!==(t=(0,o.getManifestFlags)().testing)&&void 0!==t&&t.disableSync&&(r.isBackupAndSyncEnabled=!1,r.isAccountSyncingEnabled=!1,r.isProfileSyncingEnabled=!1,r.isContactSyncingEnabled=!1);return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("../../../shared/lib/manifestFlags");const s=r.version=167}}},{package:"$root$",file:"app/scripts/migrations/167.ts"}],[5240,{"../operators/map":5115},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"}],[5241,{},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"}],[5242,{},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"}],[5243,{"./identity":5228},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"}],[5244,{"../config":5034,"../scheduler/timeoutProvider":5209},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"}],[5245,{},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"}],[525,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"PermissionLogController")&&(0,n.isObject)(e.PermissionLogController)&&(0,n.hasProperty)(e.PermissionLogController,"permissionActivityLog")?delete e.PermissionLogController.permissionActivityLog:console.warn(`Migration ${o}: 'PermissionLogController.permissionActivityLog' state not found, skipping migration.`)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=168.1}}},{package:"$root$",file:"app/scripts/migrations/168.1.ts"}],[526,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;r&&(r.smartAccountOptIn=!1)}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=168}}},{package:"$root$",file:"app/scripts/migrations/168.ts"}],[527,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController,r=null==e?void 0:e.AppStateController;null!=t&&t.preferences&&null!=r&&r.upgradeSplashPageAcknowledgedForAccounts&&(t.preferences.smartAccountOptInForAccounts=null==r?void 0:r.upgradeSplashPageAcknowledgedForAccounts);null!=r&&r.upgradeSplashPageAcknowledgedForAccounts&&(null==r||delete r.upgradeSplashPageAcknowledgedForAccounts)}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=169}}},{package:"$root$",file:"app/scripts/migrations/169.ts"}],[528,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){var t;const r=null==e?void 0:e.PreferencesController;null!=r&&null!==(t=r.preferences)&&void 0!==t&&t.smartAccountOptInForAccounts&&delete r.preferences.smartAccountOptInForAccounts}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=170.1}}},{package:"$root$",file:"app/scripts/migrations/170.1.ts"}],[529,{"../../../shared/constants/network":5456,"@metamask/network-controller":2218,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);return t.meta.version=a,t.data=function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.hasProperty)(e.NetworkController,"networkConfigurationsByChainId")&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)){const{networkConfigurationsByChainId:t}=e.NetworkController;if(!Object.entries(t).filter(([e])=>![...s.infuraChainIdsTestNets,s.CHAIN_IDS.LINEA_MAINNET].includes(e)).some(([,e])=>{var t;if(!(0,n.isObject)(e)||!Array.isArray(e.rpcEndpoints)||"number"!=typeof e.defaultRpcEndpointIndex)return!1;const r=null==e||null===(t=e.rpcEndpoints)||void 0===t?void 0:t[null==e?void 0:e.defaultRpcEndpointIndex];if(!(0,n.isObject)(r)||"string"!=typeof r.url)return!1;try{const e=new URL(r.url).host;return r.type===i.RpcEndpointType.Infura||s.allowedInfuraHosts.includes(e)}catch{return!1}}))return e;const r=t[l];if((0,n.isObject)(r)){const{rpcEndpoints:i}=r;if(Array.isArray(i)){const o=i.findIndex(e=>(0,n.isObject)(e)&&"https://bsc-dataseed.binance.org/"===e.url);if(-1!==o)return i[o]={...i[o],url:`https://bsc-mainnet.infura.io/v3/${s.infuraProjectId}`},t[l]={...r,rpcEndpoints:i},{...e,NetworkController:{...e.NetworkController,networkConfigurationsByChainId:t}}}}}return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("@metamask/network-controller"),o=e("lodash"),s=e("../../../shared/constants/network");const a=r.version=170.2,l="0x38"}}},{package:"$root$",file:"app/scripts/migrations/170.2.ts"}],[53,{"../../../shared/modules/mv3.utils":5564,"../lib/encryptor-factory":249,"../lib/hardware-keyring-builder-factory":256,"../lib/offscreen-bridge/lattice-offscreen-keyring":264,"../lib/offscreen-bridge/ledger-offscreen-bridge":265,"../lib/offscreen-bridge/trezor-offscreen-bridge":266,"../lib/qr-keyring-builder-factory":274,"@metamask/eth-ledger-bridge-keyring":1792,"@metamask/eth-qr-keyring":1801,"@metamask/eth-trezor-keyring":1946,"@metamask/keyring-controller":2054,"eth-lattice-keyring":4004},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.KeyringControllerInit=void 0;var n,i=e("@metamask/keyring-controller"),o=e("@metamask/eth-qr-keyring"),s=(n=e("eth-lattice-keyring"))&&n.__esModule?n:{default:n},a=e("@metamask/eth-trezor-keyring"),l=e("@metamask/eth-ledger-bridge-keyring"),u=e("../lib/hardware-keyring-builder-factory"),c=e("../../../shared/modules/mv3.utils"),f=e("../lib/qr-keyring-builder-factory"),d=e("../lib/encryptor-factory"),p=e("../lib/offscreen-bridge/trezor-offscreen-bridge"),h=e("../lib/offscreen-bridge/ledger-offscreen-bridge"),b=e("../lib/offscreen-bridge/lattice-offscreen-keyring");r.KeyringControllerInit=({controllerMessenger:e,persistedState:t,initMessenger:r,keyringOverrides:n,encryptor:m,getController:v})=>{const y=[(0,f.qrKeyringBuilderFactory)((null==n?void 0:n.qr)||o.QrKeyring,(null==n?void 0:n.qrBridge)||o.QrKeyringScannerBridge,{requestScan:async e=>r.call("AppStateController:requestQrCodeScan",e)})];!1===c.isManifestV3?y.push((0,i.keyringBuilderFactory)((null==n?void 0:n.lattice)||s.default),(0,u.hardwareKeyringBuilderFactory)(a.TrezorKeyring,(null==n?void 0:n.trezorBridge)||a.TrezorConnectBridge),(0,u.hardwareKeyringBuilderFactory)(a.OneKeyKeyring,(null==n?void 0:n.oneKey)||a.TrezorConnectBridge),(0,u.hardwareKeyringBuilderFactory)(l.LedgerKeyring,(null==n?void 0:n.ledgerBridge)||l.LedgerIframeBridge)):y.push((0,u.hardwareKeyringBuilderFactory)(a.TrezorKeyring,(null==n?void 0:n.trezorBridge)||p.TrezorOffscreenBridge),(0,u.hardwareKeyringBuilderFactory)(a.OneKeyKeyring,(null==n?void 0:n.oneKey)||p.TrezorOffscreenBridge),(0,u.hardwareKeyringBuilderFactory)(l.LedgerKeyring,(null==n?void 0:n.ledgerBridge)||h.LedgerOffscreenBridge),(0,i.keyringBuilderFactory)(b.LatticeKeyringOffscreen));const g=v("SnapKeyringBuilder");y.push(g);return{controller:new i.KeyringController({state:t.KeyringController,messenger:e,cacheEncryptionKey:!0,keyringBuilders:y,encryptor:m||(0,d.encryptorFactory)(6e5)})}}}}},{package:"$root$",file:"app/scripts/controller-init/keyring-controller-init.ts"}],[530,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController;null==t||delete t.disabledUpgradeAccountsByChain,null==t||delete t.accountUpgradeDisabledChains}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=170}}},{package:"$root$",file:"app/scripts/migrations/170.ts"}],[531,{"@metamask/bridge-controller":1274,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=s,t.data=function(e){if(!a(e,"NetworkOrderController","state"))return e;const t=e.NetworkOrderController;if(!a(e,"PreferencesController","state"))return e;const r=e.PreferencesController;if(!a(r,"preferences","PreferencesController"))return e;const{preferences:n}=r;if(!(0,i.hasProperty)(n,"tokenNetworkFilter"))return e;const{tokenNetworkFilter:l}=n;if(!(0,i.isObject)(l)){var u,c;return null===(u=global.sentry)||void 0===u||null===(c=u.captureException)||void 0===c||c.call(u,new Error(`Migration ${s}: tokenNetworkFilter is type '${typeof l}', expected object.`)),e}if(0===Object.keys(l).length){var f,d;return null===(f=global.sentry)||void 0===f||null===(d=f.captureException)||void 0===d||d.call(f,new Error(`Migration ${s}: tokenNetworkFilter is empty, expected at least one network configuration.`)),e}const{MultichainNetworkController:p}=e;if(!(0,i.isObject)(p)){var h,b;return null===(h=global.sentry)||void 0===h||null===(b=h.captureException)||void 0===b||b.call(h,new Error),e}const{selectedMultichainNetworkChainId:m}=p;if(!m||"string"!=typeof m){var v,y;return null===(v=global.sentry)||void 0===v||null===(y=v.captureException)||void 0===y||y.call(v,new Error(`Migration ${s}: selectedMultichainNetworkChainId is type '${typeof m}', expected string.`)),e}const g=function(e){const t=(0,o.formatChainIdToCaip)(Object.keys(e)[0]),{namespace:r}=(0,i.parseCaipChainId)(t),n={[r]:{...e}};return n}(l),w=function(e){const t=(0,o.formatChainIdToCaip)(e),{namespace:r}=(0,i.parseCaipChainId)(t),n={[r]:{[e]:!0}};return n}(m);return t.enabledNetworkMap={...g,...w},e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("@metamask/bridge-controller");const s=r.version=171;function a(e,t,r){return!!(0,i.hasProperty)(e,t)&&(!!(0,i.isObject)(e[t])||(null===(n=global.sentry)||void 0===n||null===(o=n.captureException)||void 0===o||o.call(n,new Error(`Migration ${s}: ${t} is type '${typeof e[t]}', expected object in ${r}.`)),!1));var n,o}}}},{package:"$root$",file:"app/scripts/migrations/171.ts"}],[532,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.MetaMetricsController;t&&!t.tracesBeforeMetricsOptIn&&(t.tracesBeforeMetricsOptIn=[])}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=172}}},{package:"$root$",file:"app/scripts/migrations/172.ts"}],[5328,{events:4099,"fast-fifo":4130,"queue-tick":4873},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"),l=134217727,u=1^l,c=2^l,f=64,d=128,p=256,h=1024,b=2048,m=4096,v=8192,y=16384,g=32768,w=16^l,k=768^l,j=134184959,_=32^l,O=2<<17,T=4<<17,x=8<<17,S=16<<17,E=32<<17,C=64<<17,P=128<<17,A=256<<17,M=512<<17,I=100532223,N=133693439,B=117440511,$=131088,F=134086639,R=4210688,U=14,D=15,L=4210702,z=16809984,q=16809999,W=1179648,H=1179663,V=Symbol.asyncIterator||Symbol("asyncIterator");class G{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||he,this.map=n||r,this.afterWrite=ee.bind(this),this.afterUpdateNextTick=ne.bind(this)}get ended(){return 0!==(this.stream._duplexState&E)}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|=x,!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)&N}autoBatch(e,t){const r=[],n=this.stream;for(r.push(e);(n._duplexState&H)===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|=O;do{for(;(e._duplexState&H)===x;){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(X.bind(this));4!==(e._duplexState&U)?1===(e._duplexState&q)&&(e._duplexState=(e._duplexState|$)&u,e._open(ie.bind(this))):0===(e._duplexState&z)&&(e._duplexState|=$,e._destroy(Z.bind(this)))}continueUpdate(){return 0!==(this.stream._duplexState&P)&&(this.stream._duplexState&=B,!0)}updateCallback(){(17563663&this.stream._duplexState)===T?this.update():this.updateNextTick()}updateNextTick(){0===(this.stream._duplexState&P)&&(this.stream._duplexState|=P,0===(this.stream._duplexState&O)&&s(this.afterUpdateNextTick))}}class K{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||he,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 Y(this.stream,e,t),t&&this.stream.on("error",be),pe(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",Q.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&=k),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&=k),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|=v,e.emit("readable")),80&e._duplexState||this.updateNonPrimary()}while(!0===this.continueUpdate());e._duplexState&=_}updateNonPrimary(){const e=this.stream;(1167&e._duplexState)===h&&(e._duplexState=134216703&e._duplexState|16384,e.emit("end"),(e._duplexState&L)===R&&(e._duplexState|=4),null!==this.pipeTo&&this.pipeTo.end()),4!==(e._duplexState&U)?1===(e._duplexState&q)&&(e._duplexState=(e._duplexState|$)&u,e._open(ie.bind(this))):0===(e._duplexState&z)&&(e._duplexState|=$,e._destroy(Z.bind(this)))}continueUpdate(){return 0!==(this.stream._duplexState&g)&&(this.stream._duplexState&=j,!0)}updateCallback(){(32879&this.stream._duplexState)===f?this.update():this.updateNextTick()}updateNextTick(){0===(this.stream._duplexState&g)&&(this.stream._duplexState|=g,32&this.stream._duplexState||s(this.afterUpdateNextTick))}}class J{constructor(e){this.data=null,this.afterTransform=oe.bind(e),this.afterFinal=null}}class Y{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 Q(){this.stream._duplexState|=512,this.updateCallback()}function X(e){const t=this.stream;e&&t.destroy(e),0===(t._duplexState&U)&&(t._duplexState|=E,t.emit("finish")),(t._duplexState&L)===R&&(t._duplexState|=4),t._duplexState&=I,0===(t._duplexState&O)?this.update():this.updateNextTick()}function Z(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&=I,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&C)===C&&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&O)&&(this.stream._duplexState&=B,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|=T),t.emit("open")),t._duplexState&=F,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&=c,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|=C,this._writableState.updateNextTick()),super.on(e,t)}}class ae extends se{constructor(e){super(e),this._duplexState|=4194305,this._readableState=new K(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|=p,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(pe(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&p)}[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 le extends ae{constructor(e){super(e),this._duplexState=1,this._writableState=new G(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 ue extends le{constructor(e){super(e),this._transformState=new J(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(ce.bind(this))}}function ce(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],pe(i)?i.pipe(s,u):(l(i,!0,e>1,u),i.pipe(s)),i=s;if(n){let e=!1;const t=pe(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 l(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 u(e){if(e&&!a){a=e;for(const t of r)t.destroy(e)}}}function de(e){return!!e._readableState||!!e._writableState}function pe(e){return"number"==typeof e._duplexState&&de(e)}function he(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:pe,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 G(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&A?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:le,Transform:ue,PassThrough:class extends ue{}}}}},{package:"@metamask/snaps-controllers>tar-stream>streamx",file:"node_modules/streamx/index.js"}],[533,{"../../../shared/constants/network":5456,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=s,function(e){const t=o.CHAIN_IDS.SEI;(0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)&&(0,n.hasProperty)(e.NetworkController.networkConfigurationsByChainId,t)&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId[t])&&(0,n.hasProperty)(e.NetworkController.networkConfigurationsByChainId[t],"name")&&"Sei Network"===e.NetworkController.networkConfigurationsByChainId[t].name&&(e.NetworkController.networkConfigurationsByChainId[t].name="Sei Mainnet")}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=e("../../../shared/constants/network");const s=r.version=173}}},{package:"$root$",file:"app/scripts/migrations/173.ts"}],[5337,{},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"}],[534,{"../../../shared/lib/sentry":5536,"@metamask/bridge-controller":1274,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);return t.meta.version=a,t.data=function(e){const t=null==e?void 0:e.BridgeStatusController;if(!(0,i.isObject)(t))return e;const{txHistory:r}=t;if(!(0,i.isObject)(r))return e;try{return Object.entries(r).forEach(([e,t])=>{var i,o;const s=(0,n.isSolanaChainId)(null===(i=t.status)||void 0===i||null===(i=i.srcChain)||void 0===i?void 0:i.chainId),a=null===(o=t.status)||void 0===o||null===(o=o.srcChain)||void 0===o?void 0:o.txHash;s&&a&&a!==e&&(r[a]={...t,txMetaId:a},delete r[e])}),e}catch(t){return(0,s.captureException)(new Error(`Migration ${a}: Failed to update bridge txHistory for solana to use txHash as key and txMetaId. Error: ${t.message}`)),e}}(t.data),t},r.version=void 0;var n=e("@metamask/bridge-controller"),i=e("@metamask/utils"),o=e("lodash"),s=e("../../../shared/lib/sentry");const a=r.version=174}}},{package:"$root$",file:"app/scripts/migrations/174.ts"}],[5341,{"./mixin-tracking":5343,"./util":5347},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,l,u;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!==(l=null==e?void 0:e.instance)&&void 0!==l?l:{},null!==(u=null==t?void 0:t.instance)&&void 0!==u?u:{})}},l=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=>l.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=l.get(e);return t||(t={},l.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 l="function"==typeof t?"static":"instance",u="function"==typeof t[n]?"method":"property",c="static"===l?t:t.constructor,f=(0,r.getDecoratorsForClass)(c),d=null!==(o=null==f?void 0:f[l])&&void 0!==o?o:{};f[l]=d;let p=null!==(s=null==d?void 0:d[u])&&void 0!==s?s:{};d[u]=p;let h=null!==(a=null==p?void 0:p[n])&&void 0!==a?a:[];return p[n]=h,h.push(e),e(t,n,...i)})(e)(...t)}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/decorator.js"}],[5342,{"./decorator":5341,"./mixin-tracking":5343,"./mixins":5344,"./settings":5346},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"}],[5343,{"./util":5347},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"}],[5344,{"./decorator":5341,"./mixin-tracking":5343,"./proxy":5345,"./settings":5346,"./util":5347},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 l(...e){var t,r,l;const c=e.map(e=>e.prototype),f=i.settings.initFunction;if(null!==f){const e=c.map(e=>e[f]).filter(e=>"function"==typeof e),t=function(...t){for(let r of e)r.apply(this,t)},r={[f]:t};c.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)(c,d):(0,n.softMixProtos)(c,d),Object.setPrototypeOf(d,"copy"===i.settings.staticsStrategy?(0,o.hardMixProtos)(e,null,["prototype"]):(0,n.proxyMix)(e,Function.prototype));let p=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(p);t&&(p=t)}u(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},p),u(null!==(l=null==n?void 0:n.instance)&&void 0!==l?l:{},p.prototype)}return(0,a.registerMixins)(p,e),p}r.Mixin=l;const u=(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=l(...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"}],[5345,{"./util":5347},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"}],[5346,{},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"}],[5347,{},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"}],[535,{"../../../shared/constants/network":5456,"../../../shared/lib/sentry":5536,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=a,t.data=function(e){try{const t="0x9da",r=e.NetworkController;if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(r)&&(0,n.hasProperty)(r,"networkConfigurationsByChainId")&&(0,n.isObject)(r.networkConfigurationsByChainId))for(const e of Object.values(r.networkConfigurationsByChainId))!(0,n.isObject)(e)||e.chainId!==o.CHAIN_IDS.FRAX&&e.chainId!==t||(0,n.hasProperty)(e,"nativeCurrency")&&(e.nativeCurrency="FRAX");return e}catch(t){return(0,s.captureException)(new Error(`Migration ${a}: Failed to update native currency for FRAX network configuration. Error: ${t.message}`)),e}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=e("../../../shared/constants/network"),s=e("../../../shared/lib/sentry");const a=r.version=175}}},{package:"$root$",file:"app/scripts/migrations/175.ts"}],[5351,{},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}}),l=Math.LN2,u=Math.abs,c=Math.floor,f=Math.log,d=Math.min,p=Math.pow,h=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 v(e,t){var r=32-t;return e<<r>>r}function y(e,t){var r=32-t;return e<<r>>>r}function g(e){return[255&e]}function w(e){return v(e[0],8)}function k(e){return[255&e]}function j(e){return y(e[0],8)}function _(e){return[(e=h(Number(e)))<0?0:e>255?255:255&e]}function O(e){return[e>>8&255,255&e]}function T(e){return v(e[0]<<8|e[1],16)}function x(e){return[e>>8&255,255&e]}function S(e){return y(e[0]<<8|e[1],16)}function E(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function C(e){return v(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function P(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function A(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,h,b,m=(1<<t-1)-1;function v(e){var t=c(e),r=e-t;return r<.5?t:r>.5||t%2?t+1:t}for(e!=e?(i=(1<<t)-1,o=p(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=u(e))>=p(2,1-m)?(i=d(c(f(e)/l),1023),(o=v(e/p(2,i)*p(2,r)))/p(2,r)>=2&&(i+=1,o=1),i>m?(i=(1<<t)-1,o=0):(i+=m,o-=p(2,r))):(i=0,o=v(e/p(2,1-m-r)))),a=[],s=r;s;s-=1)a.push(o%2?1:0),o=c(o/2);for(s=t;s;s-=1)a.push(i%2?1:0),i=c(i/2);for(a.push(n?1:0),a.reverse(),h=a.join(""),b=[];h.length;)b.push(parseInt(h.substring(0,8),2)),h=h.substring(8);return b}function I(e,t,r){var n,i,o,s,a,l,u,c,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,l=parseInt(s.substring(0,1),2)?-1:1,u=parseInt(s.substring(1,1+t),2),c=parseInt(s.substring(1+t),2),u===(1<<t)-1?0!==c?NaN:l*Infinity:u>0?l*p(2,u-a)*(1+c/p(2,r)):0!==c?l*p(2,-(a-1))*(c/p(2,r)):l<0?-0:0}function N(e){return I(e,11,52)}function B(e){return M(e,11,52)}function $(e){return I(e,8,23)}function F(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 l;return l=function(t,r,n){var i,s,u,c;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===l)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,u=0;u<this.length;u+=1)this._setter(u,i._getter(u));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,u=0;u<this.length;u+=1)c=s[u],this._setter(u,Number(c));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=l,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)},l.prototype=new t,l.prototype.BYTES_PER_ELEMENT=r,l.prototype._pack=n,l.prototype._unpack=i,l.BYTES_PER_ELEMENT=r,l.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)},l.prototype.get=l.prototype._getter,l.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]},l.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var r,n,i,o,s,l,u,c,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(c=this.byteOffset+i*this.BYTES_PER_ELEMENT,f=r.length*this.BYTES_PER_ELEMENT,r.buffer===this.buffer){for(d=[],s=0,l=r.byteOffset;s<f;s+=1,l+=1)d[s]=r.buffer._bytes[l];for(s=0,u=c;s<f;s+=1,u+=1)this.buffer._bytes[u]=d[s]}else for(s=0,l=r.byteOffset,u=c;s<f;s+=1,l+=1,u+=1)this.buffer._bytes[u]=r.buffer._bytes[l]}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)l=n[s],this._setter(i+s,Number(l))}},l.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)},l}var i=n(1,g,w),l=n(1,k,j),u=n(1,_,j),c=n(2,O,T),f=n(2,x,S),d=n(4,E,C),p=n(4,P,A),h=n(4,F,$),m=n(8,B,N);r.Int8Array=r.Int8Array||i,r.Uint8Array=r.Uint8Array||l,r.Uint8ClampedArray=r.Uint8ClampedArray||u,r.Int16Array=r.Int16Array||c,r.Uint16Array=r.Uint16Array||f,r.Int32Array=r.Int32Array||d,r.Uint32Array=r.Uint32Array||p,r.Float32Array=r.Float32Array||h,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,l=new r.Uint8Array(this.buffer,i,t.BYTES_PER_ELEMENT),u=[];for(s=0;s<t.BYTES_PER_ELEMENT;s+=1)u.push(e(l,s));return Boolean(o)===Boolean(n)&&u.reverse(),e(new t(new r.Uint8Array(u).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 l,u=new t([o]),c=new r.Uint8Array(u.buffer),f=[];for(l=0;l<t.BYTES_PER_ELEMENT;l+=1)f.push(e(c,l));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"}],[5352,{},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",l="undefined",u="object",c="string",f="browser",d="cpu",p="device",h="engine",b="os",m="result",v="name",y="type",g="vendor",w="version",k="architecture",j="major",_="model",O="console",T="mobile",x="tablet",S="smarttv",E="wearable",C="xr",P="embedded",A="inapp",M="brands",I="formFactors",N="fullVersionList",B="platform",$="platformVersion",F="bitness",R="sec-ch-ua",U=R+"-full-version-list",D=R+"-arch",L=R+"-"+F,z=R+"-form-factors",q=R+"-"+T,W=R+"-"+_,H=R+"-"+B,V=H+"-version",G=[M,N,T,_,B,$,k,I,F],K="Amazon",J="Apple",Y="ASUS",Q="BlackBerry",X="Google",Z="Huawei",ee="Microsoft",te="Motorola",re="Nvidia",ne="OnePlus",ie="OPPO",oe="Samsung",se="Sony",ae="Xiaomi",le="Zebra",ue="Chromium",ce="Chromecast",fe="Firefox",de="Opera",pe="Facebook",he="Mobile ",be=" Browser",me="Windows",ve=typeof e!==l,ye=ve&&e.navigator?e.navigator:n,ge=ye&&ye.userAgentData?ye.userAgentData:n,we=function(e,t){if(typeof e===u&&0<e.length){for(var r in e)if(Oe(e[r])==Oe(t))return!0;return!1}return!!je(e)&&-1!==Oe(t).indexOf(Oe(e))},ke=function(e,t){for(var r in e)return/^(browser|cpu|device|engine|os)$/.test(r)||!!t&&ke(e[r])},je=function(e){return typeof e===c},_e=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=Ce(i[o]).split(";v="),r[o]={brand:t[0],version:t[1]}):r[o]=Ce(i[o]);return r},Oe=function(e){return je(e)?e.toLowerCase():e},Te=function(e){return je(e)?Se(/[^\d\.]/g,e).split(".")[0]:n},xe=function(e){for(var t in e)typeof(t=e[t])==u&&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},Ee=function(e){return Se(/\\?\"/g,e)},Ce=function(e,t){if(je(e))return e=Se(/^\s\s*/,e),typeof t===l?e:e.substring(0,500)},Pe=function(e,t){if(e&&t)for(var r,i,o,s,l,c=0;c<t.length&&!s;){for(var f=t[c],d=t[c+1],p=r=0;p<f.length&&!s&&f[p];)if(s=f[p++].exec(e))for(i=0;i<d.length;i++)l=s[++r],typeof(o=d[i])===u&&0<o.length?2===o.length?typeof o[1]==a?this[o[0]]=o[1].call(this,l):this[o[0]]=o[1]:3===o.length?typeof o[1]!==a||o[1].exec&&o[1].test?this[o[0]]=l?l.replace(o[1],o[2]):n:this[o[0]]=l?o[1].call(this,l,o[2]):n:4===o.length&&(this[o[0]]=l?o[3].call(this,l.replace(o[1],o[2])):n):this[o]=l||n;c+=2}},Ae=function(e,t){for(var r in t)if(typeof t[r]===u&&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"},Ie={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":n},Ne={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[v,he+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,w],[/opios[\/ ]+([\w\.]+)/i],[w,[v,de+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[w,[v,de+" GX"]],[/\bopr\/([\w\.]+)/i],[w,[v,de]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[w,[v,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[w,[v,"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],[v,w],[/quark(?:pc)?\/([-\w\.]+)/i],[w,[v,"Quark"]],[/\bddg\/([\w\.]+)/i],[w,[v,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[v,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[w,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[v,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[v,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[w,[v,"Smart Lenovo"+be]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure"+be],w],[/\bfocus\/([\w\.]+)/i],[w,[v,fe+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[v,de+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[v,de+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[v,"MIUI"+be]],[/fxios\/([\w\.-]+)/i],[w,[v,he+fe]],[/\bqihoobrowser\/?([\w\.]*)/i],[w,[v,"360"]],[/\b(qq)\/([\w\.]+)/i],[[v,/(.+)/,"$1Browser"],w],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1"+be],w],[/samsungbrowser\/([\w\.]+)/i],[w,[v,oe+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[w,[v,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[v,"Sogou Mobile"],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[v,w],[/(lbbrowser|rekonq)/i],[v],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[w,v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,pe],w,[y,A]],[/(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],[v,w,[y,A]],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[v,"GSA"],[y,A]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[v,"TikTok"],[y,A]],[/\[(linkedin)app\]/i],[v,[y,A]],[/(chromium)[\/ ]([-\w\.]+)/i],[v,w],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[v,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,"Chrome WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[v,"Android"+be]],[/chrome\/([\w\.]+) mobile/i],[w,[v,he+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,w],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[w,[v,he+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[v,he+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[w,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[w,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[v,w],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[v,he+fe],w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],w],[/(wolvic|librewolf)\/([\w\.]+)/i],[v,w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[v,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],[v,[w,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[v,[w,/[^\d\.]+./,s]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[k,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[k,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[k,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[k,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[k,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[k,/ower/,s,Oe]],[/ sun4\w[;\)]/i],[[k,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[k,Oe]]],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],[_,[g,oe],[y,x]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[_,[g,oe],[y,T]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[_,[g,J],[y,T]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[_,[g,J],[y,x]],[/(macintosh);/i],[_,[g,J]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[_,[g,"Sharp"],[y,T]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[_,[g,"Honor"],[y,x]],[/honor([-\w ]+)[;\)]/i],[_,[g,"Honor"],[y,T]],[/\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],[_,[g,Z],[y,x]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[_,[g,Z],[y,T]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[_,/_/g," "],[g,ae],[y,x]],[/\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],[[_,/_/g," "],[g,ae],[y,T]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[_,[g,ie],[y,T]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[_,[g,Ae,{OnePlus:["304","403","203"],"*":ie}],[y,x]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[_,[g,"BLU"],[y,T]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[_,[g,"Vivo"],[y,T]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[_,[g,"Realme"],[y,T]],[/\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],[_,[g,te],[y,T]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[_,[g,te],[y,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[_,[g,"LG"],[y,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[_,[g,"LG"],[y,T]],[/(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],[_,[g,"Lenovo"],[y,x]],[/(nokia) (t[12][01])/i],[g,_,[y,x]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[_,/_/g," "],[y,T],[g,"Nokia"]],[/(pixel (c|tablet))\b/i],[_,[g,X],[y,x]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[_,[g,X],[y,T]],[/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],[_,[g,se],[y,T]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[_,"Xperia Tablet"],[g,se],[y,x]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[_,[g,ne],[y,T]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[_,[g,K],[y,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[_,/(.+)/g,"Fire Phone $1"],[g,K],[y,T]],[/(playbook);[-\w\),; ]+(rim)/i],[_,g,[y,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[_,[g,Q],[y,T]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[_,[g,Y],[y,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[_,[g,Y],[y,T]],[/(nexus 9)/i],[_,[g,"HTC"],[y,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[_,/_/g," "],[y,T]],[/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],[_,[g,"TCL"],[y,x]],[/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],[_,[g,"TCL"],[y,T]],[/(itel) ((\w+))/i],[[g,Oe],_,[y,Ae,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[_,[g,"Acer"],[y,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[_,[g,"Meizu"],[y,T]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[_,[g,"Ulefone"],[y,T]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[_,[g,"Energizer"],[y,T]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[_,[g,"Cat"],[y,T]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[_,[g,"Smartfren"],[y,T]],[/droid.+; (a(?:015|06[35]|142p?))/i],[_,[g,"Nothing"],[y,T]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[_,[g,"Archos"],[y,x]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[_,[g,"Archos"],[y,T]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[g,_,[y,x]],[/(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],[g,_,[y,T]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[g,_,[y,x]],[/(surface duo)/i],[_,[g,ee],[y,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[_,[g,"Fairphone"],[y,T]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[_,[g,re],[y,x]],[/(sprint) (\w+)/i],[g,_,[y,T]],[/(kin\.[onetw]{3})/i],[[_,/\./g," "],[g,ee],[y,T]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[_,[g,le],[y,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[_,[g,le],[y,T]],[/smart-tv.+(samsung)/i],[g,[y,S]],[/hbbtv.+maple;(\d+)/i],[[_,/^/,"SmartTV"],[g,oe],[y,S]],[/tcast.+(lg)e?. ([-\w]+)/i],[g,_,[y,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,"LG"],[y,S]],[/(apple) ?tv/i],[g,[_,J+" TV"],[y,S]],[/crkey.*devicetype\/chromecast/i],[[_,ce+" Third Generation"],[g,X],[y,S]],[/crkey.*devicetype\/([^/]*)/i],[[_,/^/,"Chromecast "],[g,X],[y,S]],[/fuchsia.*crkey/i],[[_,ce+" Nest Hub"],[g,X],[y,S]],[/crkey/i],[[_,ce],[g,X],[y,S]],[/(portaltv)/i],[_,[g,pe],[y,S]],[/droid.+aft(\w+)( bui|\))/i],[_,[g,K],[y,S]],[/(shield \w+ tv)/i],[_,[g,re],[y,S]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[_,[g,"Sharp"],[y,S]],[/(bravia[\w ]+)( bui|\))/i],[_,[g,se],[y,S]],[/(mi(tv|box)-?\w+) bui/i],[_,[g,ae],[y,S]],[/Hbbtv.*(technisat) (.*);/i],[g,_,[y,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,Ce],[_,Ce],[y,S]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[_,[y,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[y,S]],[/(ouya)/i,/(nintendo) (\w+)/i],[g,_,[y,O]],[/droid.+; (shield)( bui|\))/i],[_,[g,re],[y,O]],[/(playstation \w+)/i],[_,[g,se],[y,O]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[_,[g,ee],[y,O]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[_,[g,oe],[y,E]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[g,_,[y,E]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[_,[g,ie],[y,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[_,[g,J],[y,E]],[/(opwwe\d{3})/i],[_,[g,ne],[y,E]],[/(moto 360)/i],[_,[g,te],[y,E]],[/(smartwatch 3)/i],[_,[g,se],[y,E]],[/(g watch r)/i],[_,[g,"LG"],[y,E]],[/droid.+; (wt63?0{2,3})\)/i],[_,[g,le],[y,E]],[/droid.+; (glass) \d/i],[_,[g,X],[y,C]],[/(pico) (4|neo3(?: link|pro)?)/i],[g,_,[y,C]],[/(quest( \d| pro)?s?).+vr/i],[_,[g,pe],[y,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[y,P]],[/(aeobc)\b/i],[_,[g,K],[y,P]],[/(homepod).+mac os/i],[_,[g,J],[y,P]],[/windows iot/i],[[y,P]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[_,[y,Ae,{mobile:"Mobile",xr:"VR","*":x}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[y,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[y,T]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[_,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[v,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[v,w],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[v,"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],[v,w],[/ladybird\//i],[[v,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,w],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[v,[w,Ae,Me]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[w,Ae,Me],[v,me]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,"macOS"],[w,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[w,[v,ce+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[w,[v,ce+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[w,[v,ce+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[w,[v,ce+" Linux"]],[/crkey\/([\d\.]+)/i],[w,[v,ce]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,v],[/(ubuntu) ([\w\.]+) like android/i],[[v,/(.+)/,"$1 Touch"],w],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[v,w],[/\(bb(10);/i],[w,[v,Q]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[w,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[v,fe+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[v,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[v,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[v,"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],[v,w],[/(sunos) ?([\w\.\d]*)/i],[[v,"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],[v,w]]},Be=(xe.call((de={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}}).init,[[f,[v,w,j,y]],[d,[k]],[p,[y,_,g]],[h,[v,w]],[b,[v,w]]]),xe.call(de.isIgnore,[[f,[w,j]],[h,[w]],[b,[w]]]),xe.call(de.isIgnoreRgx,[[f,/ ?browser$/i],[b,/ ?os$/i]]),xe.call(de.toString,[[f,[v,w]],[d,[k]],[p,[g,_]],[h,[v,w]],[b,[v,w]]]),de),$e=function(e,t){var r=Be.init[t],n=Be.isIgnore[t]||0,i=Be.isIgnoreRgx[t]||0,o=Be.toString[t]||0;function a(){xe.call(this,r)}return a.prototype.getItem=function(){return e},a.prototype.withClientHints=function(){return ge?ge.getHighEntropyValues(G).then(function(t){return e.setCH(new Fe(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)&&Oe(i?Se(i,this[t]):this[t])==Oe(i?Se(i,e):e)){if(r=!0,e!=l)break}else if(e==l&&r){r=!r;break}return r},a.prototype.toString=function(){var e,t=s;for(e in o)typeof this[o[e]]!==l&&(t+=(t?" ":s)+this[o[e]]);return t||l}),ge||(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 Fe(e,t){if(e=e||{},xe.call(this,G),t)xe.call(this,[[M,_e(e[R])],[N,_e(e[U])],[T,/\?1/.test(e[q])],[_,Ee(e[W])],[B,Ee(e[H])],[$,Ee(e[V])],[k,Ee(e[D])],[I,_e(e[z])],[F,Ee(e[L])]]);else for(var r in e)this.hasOwnProperty(r)&&typeof e[r]!==l&&(this[r]=e[r])}function Re(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(v,"Brave");break;case p:!this.get(y)&&ge&&ge[T]&&this.set(y,T),"Macintosh"==this.get(_)&&ye&&typeof ye.standalone!==l&&ye.maxTouchPoints&&2<ye.maxTouchPoints&&this.set(_,"iPad").set(y,x);break;case b:!this.get(v)&&ge&&ge[B]&&this.set(v,ge[B]);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(p,t(p)).set(h,t(h)).set(b,t(b))}return this},this.parseUA=function(){return this.itemType!=m&&Pe.call(this.data,this.ua,this.rgxMap),this.itemType==f&&this.set(j,Te(this.get(w))),this},this.parseCH=function(){var e,t=this.uaCH,r=this.rgxMap;switch(this.itemType){case f:case h:var i,o=t[N]||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==ue)||(a=Ae(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(v,a).set(w,s).set(j,Te(s)),i=a),this.itemType==h&&a==ue&&this.set(w,s)}break;case d:(O=t[k])&&("64"==t[F]&&(O+="64"),Pe.call(this.data,O+";",r));break;case p:if(t[T]&&this.set(y,T),t[_]&&(this.set(_,t[_]),this.get(y)&&this.get(g)||(Pe.call(O={},"droid 9; "+t[_]+")",r),!this.get(y)&&O.type&&this.set(y,O.type),!this.get(g)&&O.vendor&&this.set(g,O.vendor))),t[I]){if("string"!=typeof t[I])for(var l=0;!e&&l<t[I].length;)e=Ae(t[I][l++],Ie);else e=Ae(t[I],Ie);this.set(y,e)}break;case b:var u;(O=t[B])&&(u=t[$],O==me&&(u=13<=parseInt(Te(u),10)?"11":"10"),this.set(v,O).set(w,u)),this.get(v)==me&&"Xbox"==t[_]&&this.set(v,"Xbox").set(w,n);break;case m:var c=this.data,O=function(e){return c[e].getItem().setCH(t).parseCH().get()};this.set(f,O(f)).set(d,O(d)).set(p,O(p)).set(h,O(h)).set(b,O(b))}return this},xe.call(this,[["itemType",e],["ua",t],["uaCH",i],["rgxMap",r],["data",$e(this,e)]]),this}function Ue(e,t,r){var i,l,v,y,g;return typeof e===u?(t=ke(e,!0)?(typeof t===u&&(r=t),e):(r=e,n),e=n):typeof e!==c||ke(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?(l=typeof e===c?e:r&&r[o]?r[o]:ye&&ye.userAgent?ye.userAgent:s,v=new Fe(r,!0),y=t?((e,t)=>{var r,n={},i=t;if(!ke(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})(Ne,t):Ne,xe.call(this,[["getBrowser",(g=function(e){return e==m?function(){return new Re(e,l,y,v).set("ua",l).set(f,this.getBrowser()).set(d,this.getCPU()).set(p,this.getDevice()).set(h,this.getEngine()).set(b,this.getOS()).get()}:function(){return new Re(e,l,y[e],v).parseUA().get()}})(f)],["getCPU",g(d)],["getDevice",g(p)],["getEngine",g(h)],["getOS",g(b)],["getResult",g(m)],["getUA",function(){return l}],["setUA",function(e){return je(e)&&(l=e.length>500?Ce(e,500):e),this}]]).setUA(l),this):new Ue(e,t,r).getResult()}Ue.VERSION="2.0.3",Ue.BROWSER=i([v,w,j,y]),Ue.CPU=i([k]),Ue.DEVICE=i([_,g,y,O,T,S,x,E,P]),Ue.ENGINE=Ue.OS=i([v,w]),typeof r!==l?(r=typeof t!==l&&t.exports?t.exports=Ue:r).UAParser=Ue:typeof define===a&&define.amd?define(function(){return Ue}):ve&&(e.UAParser=Ue);var De,Le=ve&&(e.jQuery||e.Zepto);Le&&!Le.ua&&(De=new Ue,Le.ua=De.getResult(),Le.ua.get=function(){return De.getUA()},Le.ua.set=function(e){De.setUA(e);var t,r=De.getResult();for(t in r)Le.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"}],[536,{"../../../shared/lib/sentry":5536,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=s,t.data=function(e){try{const t=e.AppStateController;return(0,n.hasProperty)(e,"AppStateController")&&(0,n.isObject)(t)&&(0,n.hasProperty)(t,"addressSecurityAlertResponses")&&(0,n.isObject)(t.addressSecurityAlertResponses)&&(t.addressSecurityAlertResponses={}),e}catch(t){return(0,o.captureException)(new Error(`Migration ${s}: Failed to clear addressSecurityAlertResponses cache. Error: ${t.message}`)),e}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=e("../../../shared/lib/sentry");const s=r.version=176.1}}},{package:"$root$",file:"app/scripts/migrations/176.1.ts"}],[537,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"MultichainTransactionsController")||!(0,n.isObject)(e.MultichainTransactionsController))return console.warn("Skipping migration. MultichainTransactionsController state not found."),e;const t=e.MultichainTransactionsController;if(!(0,n.hasProperty)(t,"nonEvmTransactions")||!(0,n.isObject)(t.nonEvmTransactions)){var r,i;return null===(r=global.sentry)||void 0===r||null===(i=r.captureException)||void 0===i||i.call(r,new Error("Invalid nonEvmTransactions state: "+typeof t.nonEvmTransactions)),e}const{nonEvmTransactions:o}=t,l={};for(const[e,t]of Object.entries(o)){if(!a(t))throw new Error(`Invalid transaction state entry for account ${e}: expected TransactionStateEntry, got ${typeof t}`);l[e]={[s]:{transactions:t.transactions,next:t.next,lastUpdated:t.lastUpdated}}}t.nonEvmTransactions=l}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=176,s="solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";function a(e){return"object"==typeof e&&null!==e&&(0,n.hasProperty)(e,"transactions")&&(0,n.hasProperty)(e,"next")&&(0,n.hasProperty)(e,"lastUpdated")&&Array.isArray(e.transactions)&&("string"==typeof e.next||null===e.next)&&"number"==typeof e.lastUpdated}}}},{package:"$root$",file:"app/scripts/migrations/176.ts"}],[538,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"UserStorageController")||!(0,n.isObject)(e.UserStorageController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("Invalid UserStorageController state: "+typeof e.UserStorageController)),e}(0,n.hasProperty)(e.UserStorageController,"hasAccountSyncingSyncedAtLeastOnce")&&delete e.UserStorageController.hasAccountSyncingSyncedAtLeastOnce;(0,n.hasProperty)(e.UserStorageController,"isAccountSyncingReadyToBeDispatched")&&delete e.UserStorageController.isAccountSyncingReadyToBeDispatched;(0,n.hasProperty)(e.UserStorageController,"isAccountSyncingInProgress")&&delete e.UserStorageController.isAccountSyncingInProgress}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=177}}},{package:"$root$",file:"app/scripts/migrations/177.ts"}],[539,{"../../../shared/constants/network":5456,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CHAINS_TO_RENAME=void 0,r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=s,function(e){if(!((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.hasProperty)(e.NetworkController,"networkConfigurationsByChainId")&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)))return;for(const t of a){const r=e.NetworkController.networkConfigurationsByChainId;if(!(0,n.hasProperty)(r,t.id))continue;const i=r[t.id];(0,n.isObject)(i)&&(0,n.hasProperty)(i,"name")&&i.name===t.fromName&&(i.name=t.toName)}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=e("../../../shared/constants/network");const s=r.version=178,a=r.CHAINS_TO_RENAME=[{id:o.CHAIN_IDS.MAINNET,fromName:"Ethereum Mainnet",toName:"Ethereum"},{id:o.CHAIN_IDS.LINEA_MAINNET,fromName:"Linea Mainnet",toName:"Linea"},{id:o.CHAIN_IDS.BASE,fromName:"Base Mainnet",toName:"Base"},{id:o.CHAIN_IDS.ARBITRUM,fromName:"Arbitrum One",toName:"Arbitrum"},{id:o.CHAIN_IDS.AVALANCHE,fromName:"Avalanche Network C-Chain",toName:"Avalanche"},{id:o.CHAIN_IDS.BSC,fromName:"Binance Smart Chain",toName:"BNB Chain"},{id:o.CHAIN_IDS.OPTIMISM,fromName:"OP Mainnet",toName:"OP"},{id:o.CHAIN_IDS.POLYGON,fromName:"Polygon Mainnet",toName:"Polygon"},{id:o.CHAIN_IDS.SEI,fromName:"Sei Mainnet",toName:"Sei"},{id:o.CHAIN_IDS.ZKSYNC_ERA,fromName:"zkSync Era Mainnet",toName:"zkSync Era"}]}}},{package:"$root$",file:"app/scripts/migrations/178.ts"}],[54,{"../../../shared/constants/logs":5450,"@metamask/logging-controller":2096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.LoggingControllerInit=void 0;var n=e("@metamask/logging-controller"),i=e("../../../shared/constants/logs");r.LoggingControllerInit=({controllerMessenger:e,persistedState:t,extension:r})=>{const o=new n.LoggingController({messenger:e,state:t.LoggingController});return r.runtime.onInstalled.addListener(e=>{"update"===e.reason&&o.add({type:n.LogType.GenericLog,data:{event:i.LOG_EVENT.VERSION_UPDATE,previousVersion:e.previousVersion,version:"13.7.0-flask.0"}})}),{controller:o}}}}},{package:"$root$",file:"app/scripts/controller-init/logging-controller-init.ts"}],[540,{"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if((0,n.hasProperty)(e,"PhishingController")&&(0,n.isObject)(e.PhishingController)){const t=e.PhishingController;(0,n.hasProperty)(t,"urlScanCache")&&(t.urlScanCache={})}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=179}}},{package:"$root$",file:"app/scripts/migrations/179.ts"}],[541,{"../../../shared/constants/network":5456,"@metamask/utils":2835,lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getBaseNetworkConfiguration=a,r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=s,t.data=function(e){if(!(0,i.hasProperty)(e,"NetworkController"))return console.warn(`Migration ${s}: NetworkController not found.`),e;const t=e.NetworkController;if(!(0,i.isObject)(t)){var r,n;return null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`Migration ${s}: NetworkController is not an object: ${typeof t}`)),e}if(!(0,i.hasProperty)(t,"networkConfigurationsByChainId")){var l,u;return null===(l=global.sentry)||void 0===l||null===(u=l.captureException)||void 0===u||u.call(l,new Error(`Migration ${s}: NetworkController missing property networkConfigurationsByChainId.`)),e}if(!(0,i.isObject)(t.networkConfigurationsByChainId)){var c,f;return null===(c=global.sentry)||void 0===c||null===(f=c.captureException)||void 0===f||f.call(c,new Error(`Migration ${s}: NetworkController.networkConfigurationsByChainId is not an object: ${typeof t.networkConfigurationsByChainId}.`)),e}const d=t.networkConfigurationsByChainId[o.CHAIN_IDS.BASE];if(d&&(0,i.isObject)(d)){if((0,i.hasProperty)(d,"rpcEndpoints")&&Array.isArray(d.rpcEndpoints)&&d.rpcEndpoints.some(e=>(0,i.isObject)(e)&&(0,i.hasProperty)(e,"networkClientId")&&(0,i.hasProperty)(e,"type")&&"base-mainnet"===e.networkClientId&&"infura"===e.type))return e;const r=a(),n={...d,rpcEndpoints:[...Array.isArray(d.rpcEndpoints)?d.rpcEndpoints:[],...r.rpcEndpoints]};t.networkConfigurationsByChainId[o.CHAIN_IDS.BASE]=n}else t.networkConfigurationsByChainId[o.CHAIN_IDS.BASE]=a();return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("../../../shared/constants/network");const s=r.version=180;function a(){return{blockExplorerUrls:[],chainId:"0x2105",defaultRpcEndpointIndex:0,name:"Base",nativeCurrency:"ETH",rpcEndpoints:[{failoverUrls:(0,o.getFailoverUrlsForInfuraNetwork)("base-mainnet"),networkClientId:"base-mainnet",type:"infura",url:"https://base-mainnet.infura.io/v3/{infuraProjectId}"}]}}}}},{package:"$root$",file:"app/scripts/migrations/180.ts"}],[5413,{},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,l=r=r||0,u=t.length;do{if(l>=u||a>49)throw e.bytes=0,new RangeError("Could not decode varint");o=t[l++],s+=a<28?(o&i)<<a:(o&i)*Math.pow(2,a),a+=7}while(o>=n);return e.bytes=l-r,s};var n=128,i=127}}},{package:"sass-embedded>varint",file:"node_modules/varint/decode.js"}],[5414,{},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"}],[5415,{"./decode.js":5413,"./encode.js":5414,"./length.js":5416},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"}],[5416,{},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),l=Math.pow(2,42),u=Math.pow(2,49),c=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<l?6:e<u?7:e<c?8:e<f?9:10}}}},{package:"sass-embedded>varint",file:"node_modules/varint/length.js"}],[542,{lodash:4561},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController;t&&delete t.showIncomingTransactions}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=181}}},{package:"$root$",file:"app/scripts/migrations/181.ts"}],[5424,{util:5392},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){r.TextEncoder="undefined"!=typeof TextEncoder?TextEncoder:e("util").TextEncoder,r.TextDecoder="undefined"!=typeof TextDecoder?TextDecoder:e("util").TextDecoder}}},{package:"@ensdomains/content-hash>multihashes>web-encoding",file:"node_modules/web-encoding/src/lib.js"}],[5426,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e,n){"object"==typeof r&&void 0!==t?n(r):"function"==typeof define&&define.amd?define(["exports"],n):n(e.WHATWGFetch={})}(this,function(e){var t="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:t===undefined,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function p(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function b(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=p(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,i,o=p(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=h(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=n?n[1]:"utf-8",t.readAsText(e,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=u(e),t=c(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},d.prototype.delete=function(e){delete this.map[u(e)]},d.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},d.prototype.set=function(e,t){this.map[u(e)]=c(t)},d.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},d.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),f(e)},d.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),f(e)},d.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),f(e)},n&&(d.prototype[Symbol.iterator]=d.prototype.entries);var y=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function g(e,r){if(!(this instanceof g))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i,o=(r=r||{}).body;if(e instanceof g){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,r.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=r.credentials||this.credentials||"same-origin",!r.headers&&this.headers||(this.headers=new d(r.headers)),this.method=(n=r.method||this.method||"GET",i=n.toUpperCase(),y.indexOf(i)>-1?i:n),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==r.cache&&"no-cache"!==r.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===undefined?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===undefined?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},v.call(g.prototype),v.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var j=[301,302,303,307,308];k.redirect=function(e,t){if(-1===j.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function _(r,n){return new Promise(function(o,a){var l=new g(r,n);if(l.signal&&l.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var f=new XMLHttpRequest;function p(){f.abort()}if(f.onload=function(){var e,t,r={statusText:f.statusText,headers:(e=f.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{t.append(n,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===l.url.indexOf("file://")&&(f.status<200||f.status>599)?r.status=200:r.status=f.status,r.url="responseURL"in f?f.responseURL:r.headers.get("X-Request-URL");var n="response"in f?f.response:f.responseText;setTimeout(function(){o(new k(n,r))},0)},f.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},f.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},f.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},f.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?f.withCredentials=!0:"omit"===l.credentials&&(f.withCredentials=!1),"responseType"in f&&(i?f.responseType="blob":s&&(f.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof d||t.Headers&&n.headers instanceof t.Headers)){var h=[];Object.getOwnPropertyNames(n.headers).forEach(function(e){h.push(u(e)),f.setRequestHeader(e,c(n.headers[e]))}),l.headers.forEach(function(e,t){-1===h.indexOf(t)&&f.setRequestHeader(t,e)})}else l.headers.forEach(function(e,t){f.setRequestHeader(t,e)});l.signal&&(l.signal.addEventListener("abort",p),f.onreadystatechange=function(){4===f.readyState&&l.signal.removeEventListener("abort",p)}),f.send(void 0===l._bodyInit?null:l._bodyInit)})}_.polyfill=!0,t.fetch||(t.fetch=_,t.Headers=d,t.Request=g,t.Response=k),e.Headers=d,e.Request=g,e.Response=k,e.fetch=_,Object.defineProperty(e,"__esModule",{value:!0})})}}},{package:"@open-rpc/test-coverage>isomorphic-fetch>whatwg-fetch",file:"node_modules/whatwg-fetch/dist/fetch.umd.js"}],[543,{"@metamask/transaction-controller":2789,lodash:4561},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,t,r){return function(o){const s=(0,n.cloneDeep)(o);s.meta.version=e;try{const e=function(e,t,r){const n=e,{TransactionController:o}=n;if(o&&o.transactions){const{transactions:e}=o;n.TransactionController.transactions=e.map(e=>t(e)?(e.status=i.TransactionStatus.failed,e.err={message:r,note:`Tx automatically failed by migration because ${r}`},e):e)}return n}(s.data,r,t);s.data=e}catch(t){console.warn(`MetaMask Migration #${e}${t.stack}`)}return Promise.resolve(s)}};var n=e("lodash"),i=e("@metamask/transaction-controller")}}},{package:"$root$",file:"app/scripts/migrations/fail-tx.js"}],[5434,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.METAMETRICS_FINALIZE_EVENT_FRAGMENT_ALARM=r.AUTO_LOCK_TIMEOUT_ALARM=void 0;r.AUTO_LOCK_TIMEOUT_ALARM="AUTO_LOCK_TIMEOUT_ALARM",r.METAMETRICS_FINALIZE_EVENT_FRAGMENT_ALARM="METAMETRICS_FINALIZE_EVENT_FRAGMENT_ALARM"}}},{package:"$root$",file:"shared/constants/alarms.js"}],[544,{"./002":333,"./003":334,"./004":335,"./005":336,"./006":337,"./007":338,"./008":339,"./009":340,"./010":341,"./011":342,"./012":343,"./013":344,"./014":345,"./015":346,"./016":347,"./017":348,"./018":349,"./019":350,"./020":351,"./021":352,"./022":353,"./023":354,"./024":355,"./025":356,"./026":357,"./027":358,"./028":359,"./029":360,"./030":361,"./031":362,"./032":363,"./033":364,"./034":365,"./035":366,"./036":367,"./037":368,"./038":369,"./039":370,"./040":371,"./041":372,"./042":373,"./043":374,"./044":375,"./045":376,"./046":377,"./047":378,"./048":379,"./049":380,"./050":381,"./051":382,"./052":383,"./053":384,"./054":385,"./055":386,"./056":387,"./057":388,"./058":389,"./059":390,"./060":391,"./061":392,"./062":393,"./063":394,"./064":395,"./065":396,"./066":397,"./067":398,"./068":399,"./069":400,"./070":401,"./071":402,"./072":403,"./073":404,"./074":405,"./075":406,"./076":407,"./077":412,"./078":413,"./079":414,"./080":415,"./081":416,"./082":417,"./083":418,"./084":419,"./085":420,"./086":421,"./087":422,"./088":423,"./089":424,"./090":425,"./091":426,"./092":430,"./092.1":427,"./092.2":428,"./092.3":429,"./093":431,"./094":432,"./095":433,"./096":434,"./097":435,"./098":436,"./099":437,"./100":438,"./101":439,"./102":440,"./103":441,"./104":442,"./105":443,"./106":444,"./107":445,"./108":446,"./109":447,"./110":448,"./111":449,"./112":450,"./113":451,"./114":452,"./115":453,"./116":454,"./117":455,"./118":456,"./119":457,"./120":463,"./120.1":458,"./120.2":459,"./120.4":460,"./120.5":461,"./120.6":462,"./121":466,"./121.1":464,"./121.2":465,"./122":467,"./123":468,"./124":469,"./125":471,"./125.1":470,"./126":473,"./126.1":472,"./127":474,"./128":475,"./129":476,"./130":477,"./131":479,"./131.1":478,"./132":480,"./133":483,"./133.1":481,"./133.2":482,"./134":485,"./134.1":484,"./135":486,"./136":487,"./137":488,"./138":489,"./139":490,"./140":491,"./141":492,"./142":493,"./143":495,"./143.1":494,"./144":496,"./145":497,"./146":499,"./146.1":498,"./147":500,"./148":501,"./149":502,"./150":503,"./151":504,"./152":507,"./152.1":505,"./152.2":506,"./153":508,"./154":509,"./155":510,"./156":512,"./156.1":511,"./157":513,"./158":514,"./159":515,"./160":516,"./161":518,"./161.1":517,"./162":519,"./163":520,"./164":521,"./165":522,"./166":523,"./167":524,"./168":526,"./168.1":525,"./169":527,"./170":530,"./170.1":528,"./170.2":529,"./171":531,"./172":532,"./173":533,"./174":534,"./175":535,"./176":537,"./176.1":536,"./177":538,"./178":539,"./179":540,"./180":541,"./181":542},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;const n=[e("./002").default,e("./003").default,e("./004").default,e("./005").default,e("./006").default,e("./007").default,e("./008").default,e("./009").default,e("./010").default,e("./011").default,e("./012").default,e("./013").default,e("./014").default,e("./015").default,e("./016").default,e("./017").default,e("./018").default,e("./019").default,e("./020").default,e("./021").default,e("./022").default,e("./023").default,e("./024").default,e("./025").default,e("./026").default,e("./027").default,e("./028").default,e("./029").default,e("./030").default,e("./031").default,e("./032").default,e("./033").default,e("./034").default,e("./035").default,e("./036").default,e("./037").default,e("./038").default,e("./039").default,e("./040").default,e("./041").default,e("./042").default,e("./043").default,e("./044").default,e("./045").default,e("./046").default,e("./047").default,e("./048").default,e("./049").default,e("./050").default,e("./051").default,e("./052").default,e("./053").default,e("./054").default,e("./055").default,e("./056").default,e("./057").default,e("./058").default,e("./059").default,e("./060").default,e("./061").default,e("./062").default,e("./063").default,e("./064").default,e("./065").default,e("./066").default,e("./067").default,e("./068").default,e("./069").default,e("./070").default,e("./071").default,e("./072").default,e("./073").default,e("./074").default,e("./075").default,e("./076").default,e("./077").default,e("./078"),e("./079").default,e("./080").default,e("./081"),e("./082"),e("./083"),e("./084"),e("./085"),e("./086"),e("./087"),e("./088"),e("./089"),e("./090"),e("./091"),e("./092"),e("./092.1"),e("./092.2"),e("./092.3"),e("./093"),e("./094"),e("./095"),e("./096"),e("./097"),e("./098"),e("./099"),e("./100"),e("./101"),e("./102"),e("./103"),e("./104"),e("./105"),e("./106"),e("./107"),e("./108"),e("./109"),e("./110"),e("./111"),e("./112"),e("./113"),e("./114"),e("./115"),e("./116"),e("./117"),e("./118"),e("./119"),e("./120"),e("./120.1"),e("./120.2"),e("./120.4"),e("./120.5"),e("./120.6"),e("./121"),e("./121.1"),e("./121.2"),e("./122"),e("./123"),e("./124"),e("./125"),e("./125.1"),e("./126"),e("./126.1"),e("./127"),e("./128"),e("./129"),e("./130"),e("./131"),e("./131.1"),e("./132"),e("./133"),e("./133.1"),e("./133.2"),e("./134"),e("./134.1"),e("./135"),e("./136"),e("./137"),e("./138"),e("./139"),e("./140"),e("./141"),e("./142"),e("./143"),e("./143.1"),e("./144"),e("./145"),e("./146"),e("./146.1"),e("./147"),e("./148"),e("./149"),e("./150"),e("./151"),e("./152"),e("./152.1"),e("./152.2"),e("./153"),e("./154"),e("./155"),e("./156"),e("./156.1"),e("./157"),e("./158"),e("./159"),e("./160"),e("./161"),e("./161.1"),e("./162"),e("./163"),e("./164"),e("./165"),e("./166"),e("./167"),e("./168"),e("./168.1"),e("./169"),e("./170"),e("./170.1"),e("./170.2"),e("./171"),e("./172"),e("./173"),e("./174"),e("./175"),e("./176"),e("./176.1"),e("./177"),e("./178"),e("./179"),e("./180"),e("./181")];r.default=n}}},{package:"$root$",file:"app/scripts/migrations/index.js"}],[5443,{"@metamask/keyring-api":2044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ETH_EOA_METHODS=r.ETH_4337_METHODS=void 0;var n=e("@metamask/keyring-api");r.ETH_EOA_METHODS=[n.EthMethod.PersonalSign,n.EthMethod.SignTransaction,n.EthMethod.SignTypedDataV1,n.EthMethod.SignTypedDataV3,n.EthMethod.SignTypedDataV4],r.ETH_4337_METHODS=[n.EthMethod.PrepareUserOperation,n.EthMethod.PatchUserOperation,n.EthMethod.SignUserOperation]}}},{package:"$root$",file:"shared/constants/eth-methods.ts"}],[545,{"../../shared/constants/offscreen-communication":5458,"../../shared/lib/sentry":5536},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createOffscreen=async function(){const{chrome:e}=globalThis;if(!e.offscreen)return;let t;const r=new Promise(r=>{t=n=>{n.target===i.OffscreenCommunicationTarget.extensionMain&&n.isBooted&&(e.runtime.onMessage.removeListener(t),r())},e.runtime.onMessage.addListener(t)});try{const t=await async function(){const{chrome:e,clients:t}=globalThis;if("getContexts"in e.runtime){return(await e.runtime.getContexts({contextTypes:["OFFSCREEN_DOCUMENT"]})).length>0}const r=await t.matchAll(),n=e.runtime.getURL("offscreen.html");return r.some(e=>e.url===n)}();t&&(console.debug("Found existing offscreen document, closing."),await e.offscreen.closeDocument()),await e.offscreen.createDocument({url:"./offscreen.html",reasons:["IFRAME_SCRIPTING"],justification:"Used for Hardware Wallet and Snaps scripts to communicate with the extension."})}catch(r){return t&&e.runtime.onMessage.removeListener(t),void(0,n.captureException)(r)}const o=new Promise(e=>{setTimeout(e,i.OFFSCREEN_LOAD_TIMEOUT)});await Promise.race([r,o]),console.debug("Offscreen iframe loaded")};var n=e("../../shared/lib/sentry"),i=e("../../shared/constants/offscreen-communication")}}},{package:"$root$",file:"app/scripts/offscreen.js"}],[5450,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.LOG_EVENT=void 0;r.LOG_EVENT={VERSION_UPDATE:"Extension version update"}}}},{package:"$root$",file:"shared/constants/logs.ts"}],[5451,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EXTENSION_MESSAGES=void 0;r.EXTENSION_MESSAGES={READY:"METAMASK_EXTENSION_READY"}}}},{package:"$root$",file:"shared/constants/messages.ts"}],[5458,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TrezorAction=r.OffscreenCommunicationTarget=r.OffscreenCommunicationEvents=r.OFFSCREEN_LOAD_TIMEOUT=r.OFFSCREEN_LEDGER_INIT_TIMEOUT=r.LedgerAction=r.KnownOrigins=void 0;const n=r.OFFSCREEN_LEDGER_INIT_TIMEOUT=4e3;r.OFFSCREEN_LOAD_TIMEOUT=n+1e3;r.OffscreenCommunicationTarget=function(e){return e.trezorOffscreen="trezor-offscreen",e.ledgerOffscreen="ledger-offscreen",e.latticeOffscreen="lattice-offscreen",e.extension="extension-offscreen",e.extensionMain="extension",e}({}),r.OffscreenCommunicationEvents=function(e){return e.trezorDeviceConnect="trezor-device-connect",e.ledgerDeviceConnect="ledger-device-connect",e.metamaskBackgroundReady="metamask-background-ready",e}({}),r.TrezorAction=function(e){return e.init="trezor-init",e.dispose="trezor-dispose",e.getPublicKey="trezor-get-public-key",e.signTransaction="trezor-sign-transaction",e.signMessage="trezor-sign-message",e.signTypedData="trezor-sign-typed-data",e}({}),r.LedgerAction=function(e){return e.makeApp="ledger-make-app",e.updateTransport="ledger-update-transport",e.unlock="ledger-unlock",e.getPublicKey="ledger-unlock",e.signTransaction="ledger-sign-transaction",e.signPersonalMessage="ledger-sign-personal-message",e.signTypedData="ledger-sign-typed-data",e}({}),r.KnownOrigins=function(e){return e.lattice="https://lattice.gridplus.io",e.ledger="https://metamask.github.io",e}({})}}},{package:"$root$",file:"shared/constants/offscreen-communication.ts"}],[5462,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PRICE_API_CURRENCIES=void 0;r.PRICE_API_CURRENCIES=["aud","hkd","sgd","idr","inr","nzd","php","btc","cad","eur","gbp","jpy","ltc","rub","uah","usd","xlm","xrp","sek","aed","ars","bch","bnb","brl","clp","cny","czk","dkk","chf","dot","eos","eth","gel","huf","ils","krw","mxn","myr","ngn","nok","pln","thb","try","zar"]}}},{package:"$root$",file:"shared/constants/price-api-currencies.ts"}],[5463,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.METAMASK_REFERRAL_CODE=r.HYPERLIQUID_ORIGIN=void 0;r.HYPERLIQUID_ORIGIN="https://app.hyperliquid.xyz",r.METAMASK_REFERRAL_CODE="MMREFCSI"}}},{package:"$root$",file:"shared/constants/referrals.ts"}],[547,{"../../../shared/modules/fetch-with-timeout":5559,"@metamask/utils":2835,cockatiel:3859},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RETRIES=r.MAX_CONSECUTIVE_FAILURES=r.DataDeletionService=void 0;var n,i=e("@metamask/utils"),o=e("cockatiel"),s=(n=e("../../../shared/modules/fetch-with-timeout"))&&n.__esModule?n:{default:n};function a(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function l(e,t){return e.get(c(e,t))}function u(e,t,r){return e.set(c(e,t),r),r}function c(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")}const f=r.RETRIES=3,d=r.MAX_CONSECUTIVE_FAILURES=3*(1+f);function p(e){return function(e){return(0,i.isObject)(e)&&(0,i.hasProperty)(e,"statusCode")&&"number"==typeof e.statusCode}(e)&&e.statusCode>=500}function h({circuitBreakDuration:e,degradedThreshold:t,maximumConsecutiveFailures:r,onBreak:n,onDegraded:i,retries:s}){const a=(0,o.retry)(o.handleAll.orWhenResult(p),{maxAttempts:s,backoff:new o.ExponentialBackoff}),l=(0,o.circuitBreaker)(o.handleAll,{halfOpenAfter:e,breaker:new o.ConsecutiveBreaker(r)});return n&&l.onBreak(n),i&&(a.onGiveUp(()=>{l.state===o.CircuitState.Closed&&i()}),a.onSuccess(({duration:e})=>{l.state===o.CircuitState.Closed&&e>t&&i()})),(0,o.wrap)(a,l)}var b=new WeakMap,m=new WeakMap,v=new WeakMap,y=new WeakMap,g=new WeakMap;r.DataDeletionService=class{constructor({analyticsDataDeletionEndpoint:e="https://proxy.api.cx.metamask.io/segment/v1",analyticsDataDeletionSourceId:t="mytXhbDHVobxqatxZKaZQX",circuitBreakDuration:r=18e5,degradedThreshold:n=5e3,onBreak:i,onDegraded:o,timeout:l}={}){if(a(this,b,void 0),a(this,m,void 0),a(this,v,void 0),a(this,y,void 0),a(this,g,void 0),!e)throw new Error("Missing ANALYTICS_DATA_DELETION_ENDPOINT");if(!t)throw new Error("Missing ANALYTICS_DATA_DELETION_SOURCE_ID");u(g,this,(0,s.default)(l)),u(b,this,e),u(m,this,t),u(y,this,h({circuitBreakDuration:r,degradedThreshold:n,maximumConsecutiveFailures:d,onBreak:i,onDegraded:o,retries:f})),u(v,this,h({circuitBreakDuration:r,degradedThreshold:n,maximumConsecutiveFailures:d,onBreak:i,onDegraded:o,retries:f}))}async createDataDeletionRegulationTask(e){const t=await l(y,this).execute(()=>l(g,this).call(this,`${l(b,this)}/regulations/sources/${l(m,this)}`,{method:"POST",headers:{"Content-Type":"application/vnd.segment.v1+json"},body:JSON.stringify({regulationType:"DELETE_ONLY",subjectType:"USER_ID",subjectIds:[e]})}));if(!t.ok)throw new Error(`Fetch failed with status '${t.status}' for request`);return(await t.json()).data.regulateId}async fetchDeletionRegulationStatus(e){const t=await l(v,this).execute(()=>l(g,this).call(this,`${l(b,this)}/regulations/${e}`,{method:"GET",headers:{"Content-Type":"application/vnd.segment.v1+json"}}));if(!t.ok)throw new Error(`Fetch failed with status '${t.status}' for request`);return(await t.json()).data.regulation.overallStatus}}}}},{package:"$root$",file:"app/scripts/services/data-deletion-service.ts"}],[548,{"./base-login-handler":549,"./utils":555,"@metamask/seedless-onboarding-controller":2451},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AppleLoginHandler=void 0;var n=e("@metamask/seedless-onboarding-controller"),i=e("./base-login-handler"),o=e("./utils");function s(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function a(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 l(e,t){return e.get(function(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")}(e,t))}var u=new WeakMap;class c extends i.BaseLoginHandler{constructor(e){super(e),a(this,"OAUTH_SERVER_URL",void 0),s(this,u,["name","email"]),a(this,"serverRedirectUri",void 0),this.serverRedirectUri=`${e.authServerUrl}/api/v1/oauth/callback`,this.OAUTH_SERVER_URL=`${e.authServerUrl}/api/v1/oauth/initiate`}get authConnection(){return n.AuthConnection.Apple}get scope(){return l(u,this)}async getAuthUrl(){const e=new URL(this.OAUTH_SERVER_URL),t=this.options.webAuthenticator.getRedirectURL(),r=this.generateNonce(),{challenge:n}=await this.generateCodeVerifierChallenge();return e.searchParams.set("client_id",this.options.oAuthClientId),e.searchParams.set("response_type","code"),e.searchParams.set("redirect_uri",t),e.searchParams.set("response_mode","form_post"),e.searchParams.set("prompt",this.prompt),e.searchParams.set("state",JSON.stringify({client_redirect_back_uri:this.options.webAuthenticator.getRedirectURL(),nonce:r,code_challenge:n})),e.searchParams.set("scope",l(u,this).join(" ")),Promise.resolve(e.toString())}async getAuthIdToken(){const e=this.generateAuthTokenRequestData();return await this.requestVerifyAuthToken(e)}generateAuthTokenRequestData(){const{web3AuthNetwork:e}=this.options,t={code_verifier:this.codeVerifier,client_id:this.options.oAuthClientId,redirect_uri:this.serverRedirectUri,login_provider:this.authConnection,network:e,access_type:"offline"};return JSON.stringify(t)}async requestVerifyAuthToken(e){const t=await fetch(`${this.options.authServerUrl}/api/v1/oauth/callback/verify`,{method:"POST",headers:{"Content-Type":"application/json"},body:e});return await t.json()}async getUserInfo(e){const t=(0,o.decodeIdToken)(e),r=JSON.parse(t);return{email:r.email,sub:r.sub}}}r.AppleLoginHandler=c}}},{package:"$root$",file:"app/scripts/services/oauth/apple-login-handler.ts"}],[549,{"../../../../shared/modules/error":5557},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BaseLoginHandler=void 0;var n=e("../../../../shared/modules/error");function i(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}r.BaseLoginHandler=class{constructor(e){i(this,"options",void 0),i(this,"codeVerifier",void 0),i(this,"nonce",void 0),i(this,"prompt","select_account"),i(this,"CODE_CHALLENGE_METHOD","S256"),i(this,"AUTH_SERVER_TOKEN_PATH","/api/v1/oauth/token"),i(this,"AUTH_SERVER_REVOKE_PATH","/api/v2/oauth/revoke"),i(this,"AUTH_SERVER_RENEW_REFRESH_PATH","/api/v2/oauth/renew_refresh_token"),this.options=e}validateState(e){const t=new URL(e).searchParams.get("state");if("string"!=typeof t)throw new Error(n.OAuthErrorMessages.INVALID_OAUTH_STATE_ERROR);if(JSON.parse(t).nonce!==this.nonce)throw new Error(n.OAuthErrorMessages.INVALID_OAUTH_STATE_ERROR)}async refreshAuthToken(e){const{web3AuthNetwork:t}=this.options,r={client_id:this.options.oAuthClientId,login_provider:this.authConnection,network:t,refresh_token:e,grant_type:"refresh_token"};return await this.requestAuthToken(JSON.stringify(r))}async revokeRefreshToken(e){const t={revoke_token:e};if(!(await fetch(`${this.options.authServerUrl}${this.AUTH_SERVER_REVOKE_PATH}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok)throw new Error("Failed to revoke refresh token")}async renewRefreshToken(e){const t={revoke_token:e},r=await fetch(`${this.options.authServerUrl}${this.AUTH_SERVER_RENEW_REFRESH_PATH}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok)throw new Error("Failed to renew refresh token");const n=await r.json();return{refresh_token:n.refresh_token,revoke_token:n.revoke_token}}async requestAuthToken(e){const t=await fetch(`${this.options.authServerUrl}${this.AUTH_SERVER_TOKEN_PATH}`,{method:"POST",headers:{"Content-Type":"application/json"},body:e});if(!t.ok)throw new Error("Failed to get auth token");return await t.json()}generateNonce(){return this.nonce=this.options.webAuthenticator.generateNonce(),this.nonce}async generateCodeVerifierChallenge(){const{codeVerifier:e,challenge:t}=await this.options.webAuthenticator.generateCodeVerifierAndChallenge();return this.codeVerifier=e,{codeVerifier:e,challenge:t}}}}}},{package:"$root$",file:"app/scripts/services/oauth/base-login-handler.ts"}],[55,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getAccountOrderControllerMessenger=function(e){return e.getRestricted({name:"AccountOrderController",allowedActions:[],allowedEvents:[]})}}}},{package:"$root$",file:"app/scripts/controller-init/messengers/account-order-controller-messenger.ts"}],[550,{"../../../../development/build/constants":561,"@metamask/seedless-onboarding-controller":2451},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.OauthConfigMap=r.BuildTypeEnv=void 0,r.isDevOrTestBuild=a,r.loadOAuthConfig=function(){let e=o.DevMain;e=a()?o.DevFlask:l()||u()?o.ProdFlask:o.UatFlask;return s[e]};var n=e("@metamask/seedless-onboarding-controller"),i=e("../../../../development/build/constants");let o=r.BuildTypeEnv=function(e){return e.DevMain="DevMain",e.DevFlask="DevFlask",e.UatMain="UatMain",e.UatFlask="UatFlask",e.ProdMain="ProdMain",e.ProdFlask="ProdFlask",e.Beta="Beta",e}({});const s=r.OauthConfigMap={[o.DevMain]:{googleAuthConnectionId:"mm-google-dev-extension",appleAuthConnectionId:"mm-apple-dev-common",googleGroupedAuthConnectionId:"mm-google-dev",appleGroupedAuthConnectionId:"mm-apple-dev",authServerUrl:"https://auth-service.dev-api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Devnet},[o.DevFlask]:{googleAuthConnectionId:"mm-google-flask-dev-extension",appleAuthConnectionId:"mm-apple-flask-dev-common",googleGroupedAuthConnectionId:"mm-google-flask-dev",appleGroupedAuthConnectionId:"mm-apple-flask-dev",authServerUrl:"https://auth-service.dev-api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Devnet},[o.UatMain]:{googleAuthConnectionId:"mm-google-uat-extension",appleAuthConnectionId:"mm-apple-uat-common",googleGroupedAuthConnectionId:"mm-google-uat",appleGroupedAuthConnectionId:"mm-apple-uat",authServerUrl:"https://auth-service.uat-api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Mainnet},[o.UatFlask]:{googleAuthConnectionId:"mm-google-flask-uat-extension",appleAuthConnectionId:"mm-apple-flask-uat-common",googleGroupedAuthConnectionId:"mm-google-flask-uat",appleGroupedAuthConnectionId:"mm-apple-flask-uat",authServerUrl:"https://auth-service.uat-api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Mainnet},[o.ProdMain]:{googleAuthConnectionId:"mm-google-main-extension",appleAuthConnectionId:"mm-apple-main-common",googleGroupedAuthConnectionId:"mm-google-main",appleGroupedAuthConnectionId:"mm-apple-main",authServerUrl:"https://auth-service.api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Mainnet},[o.ProdFlask]:{googleAuthConnectionId:"mm-google-flask-main-extension",appleAuthConnectionId:"mm-apple-flask-main-common",googleGroupedAuthConnectionId:"mm-google-flask-main",appleGroupedAuthConnectionId:"mm-apple-flask-main",authServerUrl:"https://auth-service.api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Mainnet},[o.Beta]:{googleAuthConnectionId:"mm-google-main-extension",appleAuthConnectionId:"mm-apple-main-common",googleGroupedAuthConnectionId:"mm-google-main",appleGroupedAuthConnectionId:"mm-apple-main",authServerUrl:"https://auth-service.api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Mainnet}};function a(){return"pull-request"===i.ENVIRONMENT.DEVELOPMENT||"pull-request"===i.ENVIRONMENT.TESTING}function l(){return"pull-request"===i.ENVIRONMENT.PRODUCTION}function u(){return"pull-request"===i.ENVIRONMENT.RELEASE_CANDIDATE}}}},{package:"$root$",file:"app/scripts/services/oauth/config.ts"}],[5502,{"@metamask/abi-utils":1100,buffer:3799,"ethereumjs-util":4057},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.getCaveatArrayPacketHash=r.createCaveat=void 0;var n=e("@metamask/abi-utils"),i=e("ethereumjs-util");const o=e=>{const r=(0,n.encode)(["bytes32","address","bytes32"],["0x80ad7e1b04ee6d994a125f4714ca0720908bd80ed16063ec8aee4b88e9253e2d",e.enforcer,(0,i.keccak)((0,i.toBuffer)(e.terms))]);return(0,i.keccak)(t.from(r))};r.getCaveatArrayPacketHash=e=>{let r=t.from([]);for(const i of e){const e=o(i);r=t.from((0,n.encode)(["bytes","bytes32"],[r,e],!0))}return(0,i.keccak)(r)};r.createCaveat=(e,t,r="0x")=>({enforcer:e,terms:t,args:r})}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"$root$",file:"shared/lib/delegation/caveat.ts"}],[5503,{"../utils":5520},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.allowedCalldataBuilder=r.allowedCalldata=void 0;var n=e("../utils");r.allowedCalldata="allowedCalldata";r.allowedCalldataBuilder=(e,t,r)=>{if(!(0,n.isHex)(r))throw new Error("Invalid value: must be a valid hex string");if(t<0)throw new Error("Invalid startIndex: must be zero or positive");if(!Number.isInteger(t))throw new Error("Invalid startIndex: must be a whole number");const i=(0,n.toHex)(t,{size:32}),o=(0,n.concat)([i,r]),{caveatEnforcers:{AllowedCalldataEnforcer:s}}=e;return{enforcer:s,terms:o,args:"0x"}}}}},{package:"$root$",file:"shared/lib/delegation/caveatBuilder/allowedCalldataBuilder.ts"}],[5504,{"../utils":5520},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.allowedMethodsBuilder=r.allowedMethods=void 0;var n=e("../utils");r.allowedMethods="allowedMethods";function i(e){if((0,n.isHex)(e)){if(10===e.length)return e;throw new Error("Invalid selector: must be a 4 byte hex string or abi function signature")}try{return(0,n.toFunctionSelector)(e)}catch(e){throw new Error("Invalid selector: must be a 4 byte hex string or abi function signature",{cause:e})}}r.allowedMethodsBuilder=(e,t)=>{if(0===t.length)throw new Error("Invalid selectors: must provide at least one selector");const r=t.map(i),o=(0,n.concat)(r),{caveatEnforcers:{AllowedMethodsEnforcer:s}}=e;return{enforcer:s,terms:o,args:"0x"}}}}},{package:"$root$",file:"shared/lib/delegation/caveatBuilder/allowedMethodsBuilder.ts"}],[5505,{"../utils":5520},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.allowedTargetsBuilder=r.allowedTargets=void 0;var n=e("../utils");r.allowedTargets="allowedTargets";r.allowedTargetsBuilder=(e,t)=>{if(0===t.length)throw new Error("Invalid targets: must provide at least one target address");if(t.filter(e=>!(0,n.isAddress)(e,{strict:!1})).length>0)throw new Error("Invalid targets: must be valid addresses");const r=(0,n.concat)(t),{caveatEnforcers:{AllowedTargetsEnforcer:i}}=e;return{enforcer:i,terms:r,args:"0x"}}}}},{package:"$root$",file:"shared/lib/delegation/caveatBuilder/allowedTargetsBuilder.ts"}],[5506,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(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}Object.defineProperty(r,"__esModule",{value:!0}),r.resolveCaveats=r.CaveatBuilder=void 0;r.resolveCaveats=e=>Array.isArray(e)?e:e.build();class i{constructor(e,t={},r={},i=[]){n(this,"results",[]),n(this,"hasBeenBuilt",!1),n(this,"environment",void 0),n(this,"config",{}),n(this,"enforcerBuilders",{}),this.environment=e,this.config=t,this.enforcerBuilders=r,this.results=i}extend(e,t){return new i(this.environment,this.config,{...this.enforcerBuilders,[e]:t},this.results)}addCaveat(e,...t){if("object"==typeof e){const t={args:"0x",...e};return this.results.push(t),this}const r=e,n=this.enforcerBuilders[r];if("function"==typeof n){const e=n(this.environment,...t);return this.results.push(e),this}throw new Error(`Function "${String(r)}" does not exist.`)}build(){if(this.hasBeenBuilt)throw new Error("This CaveatBuilder has already been built.");if(0===this.results.length&&!this.config.allowEmptyCaveats)throw new Error("No caveats found. If you definitely want to create an empty caveat collection, set `allowEmptyCaveats`.");return this.hasBeenBuilt=!0,this.results}}r.CaveatBuilder=i}}},{package:"$root$",file:"shared/lib/delegation/caveatBuilder/caveatBuilder.ts"}],[5507,{"../utils":5520,"@metamask/abi-utils":1100,"@metamask/utils":2835},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.erc1155BalanceChange=void 0,r.erc1155BalanceChangeBuilder=function(e,t,r,s,a,l){if("boolean"!=typeof t)throw new Error("Invalid enforceDecrease: must be a boolean");if(!(0,o.isAddress)(r,{strict:!1}))throw new Error("Invalid token: must be a valid address");if(!(0,o.isAddress)(s,{strict:!1}))throw new Error("Invalid recipient: must be a valid address");if("bigint"!=typeof a||a<0)throw new Error("Invalid tokenId: must be a non-negative number");if("bigint"!=typeof l||l<0)throw new Error("Invalid amount: must be a non-negative number");const u=(0,n.bytesToHex)((0,i.encodePacked)(["bool","address","address","uint256","uint256"],[t,r,s,a,l])),{caveatEnforcers:{ERC1155BalanceChangeEnforcer:c}}=e;return{enforcer:c,terms:u,args:"0x"}};var n=e("@metamask/utils"),i=e("@metamask/abi-utils"),o=e("../utils");r.erc1155BalanceChange="erc1155BalanceChange"}}},{package:"$root$",file:"shared/lib/delegation/caveatBuilder/erc1155BalanceChangeBuilder.ts"}],[5508,{"../utils":5520,"@metamask/abi-utils":1100,"@metamask/utils":2835},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.erc20BalanceChange=void 0,r.erc20BalanceChangeBuilder=function(e,t,r,s,a){if("boolean"!=typeof t)throw new Error("Invalid enforceDecrease: must be a boolean");if(!(0,o.isAddress)(r,{strict:!1}))throw new Error("Invalid token: must be a valid address");if(!(0,o.isAddress)(s,{strict:!1}))throw new Error("Invalid recipient: must be a valid address");if("bigint"!=typeof a||a<0)throw new Error("Invalid amount: must be a non-negative number");const l=(0,n.bytesToHex)((0,i.encodePacked)(["bool","address","address","uint256"],[t,r,s,a])),{caveatEnforcers:{ERC20BalanceChangeEnforcer:u}}=e;return{enforcer:u,terms:l,args:"0x"}};var n=e("@metamask/utils"),i=e("@metamask/abi-utils"),o=e("../utils");r.erc20BalanceChange="erc20BalanceChange"}}},{package:"$root$",file:"shared/lib/delegation/caveatBuilder/erc20BalanceChangeBuilder.ts"}],[5509,{"../utils":5520,"@metamask/abi-utils":1100,"@metamask/utils":2835},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.erc721BalanceChange=void 0,r.erc721BalanceChangeBuilder=function(e,t,r,s,a){if("boolean"!=typeof t)throw new Error("Invalid enforceDecrease: must be a boolean");if(!(0,o.isAddress)(r,{strict:!1}))throw new Error("Invalid token: must be a valid address");if(!(0,o.isAddress)(s,{strict:!1}))throw new Error("Invalid recipient: must be a valid address");if("bigint"!=typeof a||a<0)throw new Error("Invalid amount: must be a non-negative number");const l=(0,n.bytesToHex)((0,i.encodePacked)(["bool","address","address","uint256"],[t,r,s,a])),{caveatEnforcers:{ERC721BalanceChangeEnforcer:u}}=e;return{enforcer:u,terms:l,args:"0x"}};var n=e("@metamask/utils"),i=e("@metamask/abi-utils"),o=e("../utils");r.erc721BalanceChange="erc721BalanceChange"}}},{package:"$root$",file:"shared/lib/delegation/caveatBuilder/erc721BalanceChangeBuilder.ts"}],[551,{"./apple-login-handler":548,"./google-login-handler":552,"@metamask/seedless-onboarding-controller":2451},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createLoginHandler=function(e,t,r){const s={web3AuthNetwork:t.web3AuthNetwork,authServerUrl:t.authServerUrl,webAuthenticator:r};switch(e){case n.AuthConnection.Google:return new o.GoogleLoginHandler({...s,oAuthClientId:t.googleClientId});case n.AuthConnection.Apple:return new i.AppleLoginHandler({...s,oAuthClientId:t.appleClientId});default:throw new Error(`Invalid social login provider: ${e}`)}};var n=e("@metamask/seedless-onboarding-controller"),i=e("./apple-login-handler"),o=e("./google-login-handler")}}},{package:"$root$",file:"app/scripts/services/oauth/create-login-handler.ts"}],[5510,{"../../../modules/conversion.utils":5555,"../execution":5518,"../utils":5520},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.exactExecution=void 0,r.exactExecutionBuilder=function(e,t,r,s){if(!(0,o.isAddress)(t,{strict:!1}))throw new Error("Invalid to: must be a valid address");const a=Number((0,n.hexToDecimal)(r));if(!Number.isInteger(a))throw new Error("Invalid value: must be an integer");if(a<0)throw new Error("Invalid value: must be a positive integer or zero");const l=s!==undefined&&"0x"!==s?s:"0x";if("0x"!==l&&!(0,o.isHex)(l,{strict:!0}))throw new Error("Invalid data: must be a valid hex string");const u=BigInt(r),c=(0,i.encodeSingleExecution)({target:t,value:u,callData:l}),{caveatEnforcers:{ExactExecutionEnforcer:f}}=e;return{enforcer:f,terms:c,args:"0x"}};var n=e("../../../modules/conversion.utils"),i=e("../execution"),o=e("../utils");r.exactExecution="exactExecution"}}},{package:"$root$",file:"shared/lib/delegation/caveatBuilder/exactExecutionBuilder.ts"}],[5511,{"./allowedCalldataBuilder":5503,"./allowedMethodsBuilder":5504,"./allowedTargetsBuilder":5505,"./caveatBuilder":5506,"./erc1155BalanceChangeBuilder":5507,"./erc20BalanceChangeBuilder":5508,"./erc721BalanceChangeBuilder":5509,"./exactExecutionBuilder":5510,"./limitedCallsBuilder":5512,"./nativeBalanceChangeBuilder":5513,"./redeemerBuilder":5514,"./specificActionERC20TransferBatchBuilder":5515},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"CaveatBuilder",{enumerable:!0,get:function(){return s.CaveatBuilder}}),r.createCaveatBuilder=void 0,Object.defineProperty(r,"resolveCaveats",{enumerable:!0,get:function(){return s.resolveCaveats}});var n=e("./allowedCalldataBuilder"),i=e("./allowedMethodsBuilder"),o=e("./allowedTargetsBuilder"),s=e("./caveatBuilder"),a=e("./erc1155BalanceChangeBuilder"),l=e("./erc20BalanceChangeBuilder"),u=e("./erc721BalanceChangeBuilder"),c=e("./exactExecutionBuilder"),f=e("./limitedCallsBuilder"),d=e("./nativeBalanceChangeBuilder"),p=e("./redeemerBuilder"),h=e("./specificActionERC20TransferBatchBuilder");r.createCaveatBuilder=(e,t)=>new s.CaveatBuilder(e,t).extend(i.allowedMethods,i.allowedMethodsBuilder).extend(o.allowedTargets,o.allowedTargetsBuilder).extend(n.allowedCalldata,n.allowedCalldataBuilder).extend(a.erc1155BalanceChange,a.erc1155BalanceChangeBuilder).extend(l.erc20BalanceChange,l.erc20BalanceChangeBuilder).extend(u.erc721BalanceChange,u.erc721BalanceChangeBuilder).extend(c.exactExecution,c.exactExecutionBuilder).extend(f.limitedCalls,f.limitedCallsBuilder).extend(d.nativeBalanceChange,d.nativeBalanceChangeBuilder).extend(h.specificActionERC20TransferBatch,h.specificActionERC20TransferBatchBuilder).extend(p.redeemer,p.redeemerBuilder)}}},{package:"$root$",file:"shared/lib/delegation/caveatBuilder/index.ts"}],[5512,{"../utils":5520},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.limitedCallsBuilder=r.limitedCalls=void 0;var n=e("../utils");r.limitedCalls="limitedCalls";r.limitedCallsBuilder=(e,t)=>{if(!Number.isInteger(t))throw new Error("Invalid limit: must be an integer");if(t<=0)throw new Error("Invalid limit: must be a positive integer");const r=(0,n.pad)((0,n.toHex)(t),{size:32}),{caveatEnforcers:{LimitedCallsEnforcer:i}}=e;return{enforcer:i,terms:r,args:"0x"}}}}},{package:"$root$",file:"shared/lib/delegation/caveatBuilder/limitedCallsBuilder.ts"}],[5513,{"../utils":5520,"@metamask/abi-utils":1100,"@metamask/utils":2835},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.nativeBalanceChange=void 0,r.nativeBalanceChangeBuilder=function(e,t,r,s){if("boolean"!=typeof t)throw new Error("Invalid enforceDecrease: must be a boolean");if(!(0,o.isAddress)(r,{strict:!1}))throw new Error("Invalid recipient: must be a valid address");if("bigint"!=typeof s||s<0)throw new Error("Invalid amount: must be a non-negative number");const a=(0,n.bytesToHex)((0,i.encodePacked)(["bool","address","uint256"],[t,r,s])),{caveatEnforcers:{NativeBalanceChangeEnforcer:l}}=e;return{enforcer:l,terms:a,args:"0x"}};var n=e("@metamask/utils"),i=e("@metamask/abi-utils"),o=e("../utils");r.nativeBalanceChange="nativeBalanceChange"}}},{package:"$root$",file:"shared/lib/delegation/caveatBuilder/nativeBalanceChangeBuilder.ts"}],[5514,{"../utils":5520},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.redeemerBuilder=r.redeemer=void 0;var n=e("../utils");r.redeemer="redeemer";r.redeemerBuilder=(e,t)=>{if(0===t.length)throw new Error("Invalid redeemers: must specify at least one redeemer address");for(const e of t)if(!(0,n.isAddress)(e))throw new Error("Invalid redeemers: must be a valid address");const r=(0,n.concat)(t.map(e=>e.toLowerCase())),{caveatEnforcers:{RedeemerEnforcer:i}}=e;return{enforcer:i,terms:r,args:"0x"}}}}},{package:"$root$",file:"shared/lib/delegation/caveatBuilder/redeemerBuilder.ts"}],[5515,{"../../../modules/conversion.utils":5555,"../utils":5520,"@metamask/abi-utils":1100,"@metamask/utils":2835},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.specificActionERC20TransferBatch=void 0,r.specificActionERC20TransferBatchBuilder=function(e,t,r,a,l,u,c){if(!(0,s.isAddress)(t,{strict:!1}))throw new Error("Invalid tokenAddress: must be a valid address");if(!(0,s.isAddress)(r,{strict:!1}))throw new Error("Invalid recipient: must be a valid address");const f=Number((0,o.hexToDecimal)(a));if(!Number.isInteger(f))throw new Error("Invalid amount: must be an integer");if(f<0)throw new Error("Invalid amount: must be a positive integer or zero");if(!(0,s.isAddress)(l,{strict:!1}))throw new Error("Invalid firstTarget: must be a valid address");const d=Number((0,o.hexToDecimal)(u));if(!Number.isInteger(d))throw new Error("Invalid firstValue: must be an integer");if(d<0)throw new Error("Invalid firstValue: must be a positive integer or zero");const p=c!==undefined&&"0x"!==c?c:"0x";if("0x"!==p&&!(0,s.isHex)(p,{strict:!0}))throw new Error("Invalid firstCalldata: must be an hexadecimal string");const h=BigInt(a),b=BigInt(u),m=(0,i.bytesToHex)((0,n.encodePacked)(["address","address","uint256","address","uint256","bytes"],[t,r,h,l,b,p])),{caveatEnforcers:{SpecificActionERC20TransferBatchEnforcer:v}}=e;return{enforcer:v,terms:m,args:"0x"}};var n=e("@metamask/abi-utils"),i=e("@metamask/utils"),o=e("../../../modules/conversion.utils"),s=e("../utils");r.specificActionERC20TransferBatch="specificActionERC20TransferBatch"}}},{package:"$root$",file:"shared/lib/delegation/caveatBuilder/specificActionERC20TransferBatchBuilder.ts"}]],[],{});