LavaPack.loadBundle([[414,{"@metamask/utils":2831,lodash:4554,loglevel:4562,uuid:5386},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=c,t.data=function(e){if(!(0,i.hasProperty)(e,"PreferencesController"))return a.default.warn("state.PreferencesController is undefined"),e;if(!(0,i.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("typeof state.PreferencesController is "+typeof e.PreferencesController)),e}if(!(0,i.hasProperty)(e,"NetworkController")||!(0,i.isObject)(e.NetworkController)){var n,o;return null===(n=global.sentry)||void 0===n||null===(o=n.captureException)||void 0===o||o.call(n,new Error("typeof state.NetworkController is "+typeof e.NetworkController)),e}if(!(0,i.hasProperty)(e.PreferencesController,"frequentRpcListDetail")||!Array.isArray(e.PreferencesController.frequentRpcListDetail)){var c,l;if(!(e.NetworkController.networkConfigurations&&e.PreferencesController.frequentRpcListDetail===undefined))null===(c=global.sentry)||void 0===c||null===(l=c.captureException)||void 0===l||l.call(c,new Error("typeof state.PreferencesController.frequentRpcListDetail is "+typeof e.PreferencesController.frequentRpcListDetail));return e}if(!e.PreferencesController.frequentRpcListDetail.every(i.isObject)){var u,d;const t=e.PreferencesController.frequentRpcListDetail.find(e=>!(0,i.isObject)(e));return null===(u=global.sentry)||void 0===u||null===(d=u.captureException)||void 0===d||d.call(u,new Error("state.PreferencesController.frequentRpcListDetail contains an element of type "+typeof t)),e}const{PreferencesController:f,NetworkController:h}=e,{frequentRpcListDetail:p}=f;if(!Array.isArray(p))return e;const m=p.reduce((e,{rpcUrl:t,chainId:r,ticker:n,nickname:o,rpcPrefs:i})=>{const a=(0,s.v4)();return{...e,[a]:{rpcUrl:t,chainId:r,ticker:n,rpcPrefs:i,nickname:o}}},{});return delete f.frequentRpcListDetail,{...e,NetworkController:{...h,networkConfigurations:m},PreferencesController:{...f}}}(t.data),t},r.version=void 0;var n,o=e("lodash"),i=e("@metamask/utils"),s=e("uuid"),a=(n=e("loglevel"))&&n.__esModule?n:{default:n};const c=r.version=82}}},{package:"$root$",file:"app/scripts/migrations/082.ts"}],[4142,{"@firebase/app":783},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("@firebase/app");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))});
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * 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.
 */
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * 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.
 */
(0,n.registerVersion)("firebase","11.2.0","app")}}},{package:"@metamask/notification-services-controller>firebase",file:"node_modules/firebase/app/dist/esm/index.esm.js"}],[4143,{"@firebase/messaging":787},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("@firebase/messaging");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))})}}},{package:"@metamask/notification-services-controller>firebase",file:"node_modules/firebase/messaging/dist/esm/index.esm.js"}],[4144,{"@firebase/messaging/sw":788},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("@firebase/messaging/sw");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))})}}},{package:"@metamask/notification-services-controller>firebase",file:"node_modules/firebase/messaging/sw/dist/esm/index.esm.js"}],[415,{"@metamask/utils":2831,lodash:4554},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=function(e){if(!(0,o.isObject)(e.NetworkController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("typeof state.NetworkController is "+typeof e.NetworkController)),e}const{NetworkController:n}=e;if(!(0,o.isObject)(n.networkConfigurations)){var i,s;return null===(i=global.sentry)||void 0===i||null===(s=i.captureException)||void 0===s||s.call(i,new Error("typeof NetworkController.networkConfigurations is "+typeof n.networkConfigurations)),e}const{networkConfigurations:a}=n,c={};for(const t of Object.keys(a)){const r=a[t];if(!(0,o.isObject)(r))return e;c[t]={...r,id:t}}return{...e,NetworkController:{...n,networkConfigurations:c}}}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/utils");const i=r.version=83}}},{package:"$root$",file:"app/scripts/migrations/083.ts"}],[416,{"@metamask/utils":2831,lodash:4554},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=function(e){if(!(0,o.hasProperty)(e,"NetworkController")||!(0,o.isObject)(e.NetworkController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("typeof state.NetworkController is "+typeof e.NetworkController)),e}if(!(0,o.hasProperty)(e.NetworkController,"network")){var n,i;if(e.NetworkController.networkId===undefined)null===(n=global.sentry)||void 0===n||null===(i=n.captureException)||void 0===i||i.call(n,new Error("typeof state.NetworkController.network is "+typeof e.NetworkController.network));return e}const s={...e.NetworkController};"loading"===s.network?(s.networkId=null,s.networkStatus="unknown"):(s.networkId=s.network,s.networkStatus="available");return delete s.network,{...e,NetworkController:s}}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/utils");const i=r.version=84}}},{package:"$root$",file:"app/scripts/migrations/084.ts"}],[417,{"@metamask/utils":2831,lodash:4554},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=function(e){if(!(0,o.isObject)(e.NetworkController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("typeof state.NetworkController is "+typeof e.NetworkController)),e}return delete e.NetworkController.previousProviderStore,e}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/utils");const i=r.version=85}}},{package:"$root$",file:"app/scripts/migrations/085.ts"}],[4174,{},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){let n;return n=(null==r?void 0:r.registry)?r.registry.endsWith("/")?r.registry:`${r.registry}/`:"https://registry.npmjs.org/",`${n}${e}/-/${function(e){if("@"!==e[0])return e;return e.split("/")[1]}(e)}-${function(e){const t=e.indexOf("+");return-1===t?e:e.substring(0,t)}(t)}.tgz`}}}},{package:"@metamask/snaps-controllers>get-npm-tarball-url",file:"node_modules/get-npm-tarball-url/lib/index.js"}],[418,{"@metamask/utils":2831,lodash:4554},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=i,t.data=function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.hasProperty)(e.NetworkController,"provider")){const t=e.NetworkController;return t.providerConfig=t.provider,delete t.provider,{...e,NetworkController:t}}var t,r;if((0,n.isObject)(e.NetworkController)){if(!(0,n.hasProperty)(e.NetworkController,"provider")){var o,i;if(e.NetworkController.providerConfig===undefined)null===(o=global.sentry)||void 0===o||null===(i=o.captureException)||void 0===i||i.call(o,new Error("typeof state.NetworkController.provider is "+typeof e.NetworkController.provider))}}else null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("typeof state.NetworkController is "+typeof e.NetworkController));return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),o=e("lodash");const i=r.version=86}}},{package:"$root$",file:"app/scripts/migrations/086.ts"}],[4187,{"../constants":4197,"./utilities":4192},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(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.removeAddressTags=r.fetchAddressTags=r.addAddressTags=void 0;var i=e("../constants"),s=e("./utilities");r.addAddressTags=function(e){return n(void 0,void 0,void 0,function(){var t;return o(this,function(r){return t=e.reduce(function(e,t){var r=Object.keys(t)[0];return e[r]=t[r],e},{}),[2,(0,s.queue)(function(e){return e.addKvRecords({records:t})})]})})};r.fetchAddressTags=function(e){var t=void 0===e?{n:i.MAX_ADDR,start:0}:e,r=t.n,a=t.start;return n(void 0,void 0,void 0,function(){var e,t,c;return o(this,function(l){switch(l.label){case 0:e=[],t=r,c=a,l.label=1;case 1:return t>0?[4,(0,s.queue)(function(r){return r.getKvRecords({start:c,n:t>i.MAX_ADDR?i.MAX_ADDR:t}).then(function(r){return n(void 0,void 0,void 0,function(){return o(this,function(n){return e.push.apply(e,r.records),c=r.fetched+c,t=r.total-c,[2]})})})})]:[3,3];case 2:return l.sent(),[3,1];case 3:return[2,e]}})})};r.removeAddressTags=function(e){return n(void 0,void 0,void 0,function(){var t;return o(this,function(r){return t=e.map(function(e){return"".concat(e.id)}),[2,(0,s.queue)(function(e){return e.removeKvRecords({ids:t})})]})})}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/api/addressTags.js"}],[4188,{"../constants":4197,"./utilities":4192},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.fetchLedgerLegacyAddresses=r.fetchLedgerLiveAddresses=r.fetchSolanaAddresses=r.fetchBtcWrappedSegwitAddresses=r.fetchBtCSegwitAddresses=r.fetchBtcLegacyAddresses=r.fetchAddresses=void 0;var s=e("../constants"),a=e("./utilities");r.fetchAddresses=function(e){return o(void 0,void 0,void 0,function(){return i(this,function(t){return[2,(0,a.queue)(function(t){return t.getAddresses(n({startPath:s.DEFAULT_ETH_DERIVATION,n:s.MAX_ADDR},e)).then(function(e){return e.map(function(e){return"".concat(e)})})})]})})};r.fetchBtcLegacyAddresses=function(e,t){return void 0===e&&(e=s.MAX_ADDR),o(void 0,void 0,void 0,function(){return i(this,function(n){return[2,(0,r.fetchAddresses)({startPath:(0,a.getStartPath)(s.BTC_LEGACY_DERIVATION,t),n:e})]})})};r.fetchBtCSegwitAddresses=function(e,t){return void 0===e&&(e=s.MAX_ADDR),o(void 0,void 0,void 0,function(){return i(this,function(n){return[2,(0,r.fetchAddresses)({startPath:(0,a.getStartPath)(s.BTC_SEGWIT_DERIVATION,t),n:e})]})})};r.fetchBtcWrappedSegwitAddresses=function(e,t){return void 0===e&&(e=s.MAX_ADDR),o(void 0,void 0,void 0,function(){return i(this,function(n){return[2,(0,r.fetchAddresses)({startPath:(0,a.getStartPath)(s.BTC_WRAPPED_SEGWIT_DERIVATION,t),n:e})]})})};r.fetchSolanaAddresses=function(e,t){return void 0===e&&(e=s.MAX_ADDR),o(void 0,void 0,void 0,function(){return i(this,function(n){return[2,(0,r.fetchAddresses)({startPath:(0,a.getStartPath)(s.SOLANA_DERIVATION,t,2),n:e})]})})};r.fetchLedgerLiveAddresses=function(e,t){return void 0===e&&(e=s.MAX_ADDR),o(void 0,void 0,void 0,function(){var r,n,o;return i(this,function(i){for(r=[],n=function(e){r.push((0,a.queue)(function(r){return r.getAddresses({startPath:(0,a.getStartPath)(s.LEDGER_LIVE_DERIVATION,t+e,2),n:1}).then(function(e){return e.map(function(e){return"".concat(e)})})}))},o=0;o<e;o++)n(o);return[2,Promise.all(r)]})})};r.fetchLedgerLegacyAddresses=function(e,t){return void 0===e&&(e=s.MAX_ADDR),o(void 0,void 0,void 0,function(){var r,n,o;return i(this,function(i){for(r=[],n=function(e){r.push((0,a.queue)(function(r){return r.getAddresses({startPath:(0,a.getStartPath)(s.LEDGER_LEGACY_DERIVATION,t+e,3),n:1}).then(function(e){return e.map(function(e){return"".concat(e)})})}))},o=0;o<e;o++)n(o);return[2,Promise.all(r)]})})}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/api/addresses.js"}],[4189,{"./addressTags":4187,"./addresses":4188,"./signing":4190,"./utilities":4192},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);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.fetchActiveWallets=r.pair=r.connect=r.setup=r.getClient=void 0;var a=e("./utilities");Object.defineProperty(r,"getClient",{enumerable:!0,get:function(){return a.getClient}}),Object.defineProperty(r,"setup",{enumerable:!0,get:function(){return a.setup}});var c=e("./utilities");r.connect=function(e){return i(void 0,void 0,void 0,function(){return s(this,function(t){return[2,(0,c.queue)(function(t){return t.connect(e)})]})})};r.pair=function(e){return i(void 0,void 0,void 0,function(){return s(this,function(t){return[2,(0,c.queue)(function(t){return t.pair(e)})]})})};r.fetchActiveWallets=function(){return i(void 0,void 0,void 0,function(){return s(this,function(e){return[2,(0,c.queue)(function(e){return e.fetchActiveWallet()})]})})},o(e("./addresses"),r),o(e("./addressTags"),r),o(e("./signing"),r)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/api/index.js"}],[419,{"@metamask/utils":2831,lodash:4554},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=i,t.data=function(e){if(!(0,n.isObject)(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("typeof state.TokensController is "+typeof e.TokensController)),e}return delete e.TokensController.suggestedAssets,e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),o=e("lodash");const i=r.version=87}}},{package:"$root$",file:"app/scripts/migrations/087.ts"}],[4190,{"..":4210,"../constants":4197,"./utilities":4192},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.signSolanaTx=r.signBtcWrappedSegwitTx=r.signBtcSegwitTx=r.signBtcLegacyTx=r.signMessage=r.sign=void 0;var s=e(".."),a=e("../constants"),c=e("./utilities");r.sign=function(e,t){return o(void 0,void 0,void 0,function(){var r;return i(this,function(o){return r=n({data:{signerPath:a.DEFAULT_ETH_DERIVATION,curveType:s.Constants.SIGNING.CURVES.SECP256K1,hashType:s.Constants.SIGNING.HASHES.KECCAK256,encodingType:s.Constants.SIGNING.ENCODINGS.EVM,payload:e}},t),[2,(0,c.queue)(function(e){return e.sign(r)})]})})};r.signMessage=function(e,t){return o(void 0,void 0,void 0,function(){var r;return i(this,function(o){return r={data:n({signerPath:a.DEFAULT_ETH_DERIVATION,curveType:s.Constants.SIGNING.CURVES.SECP256K1,hashType:s.Constants.SIGNING.HASHES.KECCAK256,protocol:"signPersonal",payload:e},t),currency:a.CURRENCIES.ETH_MSG},(0,c.isEIP712Payload)(e)&&(r.data.protocol="eip712"),[2,(0,c.queue)(function(e){return e.sign(r)})]})})};r.signBtcLegacyTx=function(e){return o(void 0,void 0,void 0,function(){var t;return i(this,function(r){return t={data:n({signerPath:a.BTC_LEGACY_DERIVATION},e),currency:"BTC"},[2,(0,c.queue)(function(e){return e.sign(t)})]})})};r.signBtcSegwitTx=function(e){return o(void 0,void 0,void 0,function(){var t;return i(this,function(r){return t={data:n({signerPath:a.BTC_SEGWIT_DERIVATION},e),currency:"BTC"},[2,(0,c.queue)(function(e){return e.sign(t)})]})})};r.signBtcWrappedSegwitTx=function(e){return o(void 0,void 0,void 0,function(){var t;return i(this,function(r){return t={data:n({signerPath:a.BTC_WRAPPED_SEGWIT_DERIVATION},e),currency:"BTC"},[2,(0,c.queue)(function(e){return e.sign(t)})]})})};r.signSolanaTx=function(e,t){return o(void 0,void 0,void 0,function(){var r;return i(this,function(o){return r={data:n({signerPath:a.SOLANA_DERIVATION,curveType:s.Constants.SIGNING.CURVES.ED25519,hashType:s.Constants.SIGNING.HASHES.NONE,encodingType:s.Constants.SIGNING.ENCODINGS.SOLANA,payload:e},t)},[2,(0,c.queue)(function(e){return e.sign(r)})]})})}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/api/signing.js"}],[4191,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.setFunctionQueue=r.getFunctionQueue=r.setLoadClient=r.loadClient=r.setSaveClient=r.saveClient=void 0;r.setSaveClient=function(e){r.saveClient=e};var n;r.setLoadClient=function(e){r.loadClient=e};r.getFunctionQueue=function(){return n};r.setFunctionQueue=function(e){n=e}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/api/state.js"}],[4192,{"..":4210,"../client":4196,"./state":4191,buffer:3792},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.isEIP712Payload=r.getStartPath=r.getClient=r.queue=r.setup=void 0;var i=e(".."),s=e("../client"),a=e("./state");r.setup=function(e){var t=e.deviceId,r=e.password,u=e.name,d=e.getStoredClient,f=e.setStoredClient;return n(void 0,void 0,void 0,function(){var e,n,h,p;return o(this,function(o){if(!d)throw new Error("Client data getter required");if((0,a.setSaveClient)(c(f)),!f)throw new Error("Client data setter required");if((0,a.setLoadClient)(l(d)),t&&r&&u)return e=i.Utils.generateAppSecret(t,r,u),[2,(n=new s.Client({deviceId:t,privKey:e,name:u})).connect(t).then(function(e){return(0,a.saveClient)(n.getStateData()),e})];if(!(h=(0,a.loadClient)()))throw new Error("Client not initialized");return p=h.getDeviceId(),!h.ephemeralPub&&p?[2,(0,i.connect)(p)]:((0,a.saveClient)(h.getStateData()),[2,Promise.resolve(!0)])})})};r.queue=function(e){var t=(0,a.loadClient)();if(!t)throw new Error("Client not initialized");return(0,a.getFunctionQueue)()||(0,a.setFunctionQueue)(Promise.resolve()),(0,a.setFunctionQueue)((0,a.getFunctionQueue)().then(function(){return e(t).catch(function(e){throw(0,a.setFunctionQueue)(Promise.resolve()),e}).then(function(e){return(0,a.saveClient)(t.getStateData()),e})})),(0,a.getFunctionQueue)()};r.getClient=function(){return a.loadClient?(0,a.loadClient)():null};var c=function(e){return function(r){if(r){var n=function(e){return t.from(e).toString("base64")}(r);e(n)}}},l=function(e){return function(){var r=e();if(!r)return undefined;var n=function(e){return t.from(e,"base64").toString()}(r);if(!n)return undefined;var o=new s.Client({stateData:n});if(!o)throw new Error("Client not initialized");return o}};r.getStartPath=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=4);var n=e;return t>0&&(n[r]=e[r]+t),n};r.isEIP712Payload=function(e){return"string"!=typeof e&&"types"in e&&"domain"in e&&"primaryType"in e&&"message"in e}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/api/utilities.js"}],[4193,{"./constants":4197,"./protocol":4211,bech32:3679,bs58check:3796,buffer:3792,"hash.js/lib/hash/ripemd":4317,"hash.js/lib/hash/sha":4318},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var o=e("bech32"),i=n(e("bs58check")),s=e("hash.js/lib/hash/ripemd"),a=e("hash.js/lib/hash/sha"),c=e("./constants"),l=e("./protocol"),u=t.from("01","hex"),d=c.BIP_CONSTANTS.PURPOSES,f=c.BIP_CONSTANTS.COINS,h=0,p=169,m=118,g=135,b=136,v=172,y=208,k=240;function w(e,r){return t.concat([e,r])}function E(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),r}function T(e){var r;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<=65535?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967295?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeUInt32LE(e>>>0,1),r.writeUInt32LE(e/4294967296|0,5)),r}function C(e,r,n){"number"==typeof e&&(e=e.toString(16));var o=t.alloc(8),i=e.length%2==0?e.toString(16):"0".concat(e.toString(16));return t.from(i,"hex").reverse().copy(o,0),o.copy(r,n),o}function P(e){var r,n;try{r=i.default.decode(e)[0],n=i.default.decode(e).slice(1)}catch(i){try{var s=o.bech32.decode(e);if("bc"===s.prefix)r=y;else{if("tb"!==s.prefix)throw new Error("Unsupported prefix: must be bc or tb.");r=k}if(0!==s.words[0])throw new Error("Unsupported segwit version: must be 0, got ".concat(s.words[0]));if(33!==s.words.length){var a=53===s.words.length;throw new Error("Unsupported address".concat(a?" (P2WSH not supported)":"",": ").concat(e))}n=t.from(o.bech32.fromWords(s.words.slice(1)))}catch(t){throw new Error("Unable to decode address: ".concat(e,": ").concat(t.message))}}return{versionByte:r,pkh:n}}function _(e){if(e.length<2)throw new Error("Path must be >1 index");var t=e[0],r=e[1];if(t===d.BTC_SEGWIT&&r===f.BTC)return y;if(t===d.BTC_SEGWIT&&r===f.BTC_TESTNET)return k;if(t===d.BTC_WRAPPED_SEGWIT&&r===f.BTC)return 5;if(t===d.BTC_WRAPPED_SEGWIT&&r===f.BTC_TESTNET)return 196;if(t===d.BTC_LEGACY&&r===f.BTC)return 0;if(t===d.BTC_LEGACY&&r===f.BTC_TESTNET)return 111;throw new Error("Invalid Bitcoin path provided. Cannot determine address format.")}function S(e){switch(e.signerPath[0]){case d.BTC_LEGACY:return 1;case d.BTC_WRAPPED_SEGWIT:return 3;case d.BTC_SEGWIT:return 4;default:throw new Error("Unsupported path purpose (".concat(e.signerPath[0],"): cannot determine BTC script type."))}}r.default={buildBitcoinTxRequest:function(e){var r=e.prevOuts,n=e.recipient,o=e.value,i=e.changePath,s=e.fee;if(!i)throw new Error("No changePath provided.");if(5!==i.length)throw new Error("Please provide a full change path.");var a=t.alloc(59+69*r.length),c=0,u=_(i);a.writeUInt8(u,0),c++,a.writeUInt32LE(i.length,c),c+=4;for(var d=0;d<i.length;d++)a.writeUInt32LE(i[d],c),c+=4;a.writeUInt32LE(s,c),c+=4;var f=P(n);a.writeUInt8(f.versionByte,c),c++,f.pkh.copy(a,c),c+=f.pkh.length,C(o,a,c),c+=8,a.writeUInt8(r.length,c),c++;var h=0;return r.forEach(function(e){if(!e.signerPath||5!==e.signerPath.length)throw new Error("Full recipient path not specified ");a.writeUInt32LE(e.signerPath.length,c),c+=4;for(var r=0;r<e.signerPath.length;r++)a.writeUInt32LE(e.signerPath[r],c),c+=4;a.writeUInt32LE(e.index,c),c+=4,C(e.value,a,c),c+=8,h+=e.value;var n=S(e);a.writeUInt8(n,c),c++,t.isBuffer(e.txHash)||(e.txHash=t.from(e.txHash,"hex")),e.txHash.copy(a,c),c+=e.txHash.length}),{payload:a,schema:l.LatticeSignSchema.bitcoin,origData:e,changeData:{value:h-(o+s)}}},serializeTx:function(e){var r=e.inputs,n=e.outputs,o=e.lockTime,i=void 0===o?0:o,c=t.alloc(4),l=0,f=function(e){var t=!1;return e.forEach(function(e){e.signerPath[0]!==d.BTC_SEGWIT&&e.signerPath[0]!==d.BTC_WRAPPED_SEGWIT||(t=!0)}),t}(r);c.writeUInt32LE(2,l),l+=4,f&&(c=w(c,t.from("00","hex")),c=w(c,t.from("01","hex")));var _=T(r.length);c=w(c,_),l+=_.length,r.forEach(function(e){c=w(c,e.hash.reverse()),l+=e.hash.length;var r=E(e.index);c=w(c,r),l+=r.length;var n=S(e);if(3===n){var o=function(e){var r=t.alloc(22),n=t.from((0,a.sha256)().update(e).digest("hex"),"hex"),o=t.from((0,s.ripemd160)().update(n).digest("hex"),"hex");return r.writeUInt8(h,0),r.writeUInt8(o.length,1),o.copy(r,2),r}(e.pubkey),i=T(o.length),d=T((f=t.concat([i,o])).length);c=w(c,d),l+=d.length,c=w(c,f),l+=f.length}else if(1===n){var f=function(e,r){var n=T((e=t.concat([e,u])).length),o=T(r.length),i=t.concat([n,e,o,r]),s=T(i.length);return t.concat([s,i])}(e.sig,e.pubkey);c=w(c,f),l+=f.length}else if(4===n){var p=t.from("00","hex");c=w(c,p),l+=1}var m=E(4294967295);c=w(c,m),l+=m.length});var A=T(n.length);if(c=w(c,A),l+=A.length,n.forEach(function(e){var r,n,o=(r=e.value,n=t.alloc(8),C(r,n,0),n);c=w(c,o),l+=o.length;var i=function(e){var r=P(e);switch(r.versionByte){case y:case k:return n=r.pkh,(o=t.alloc(2+n.length)).writeUInt8(h,0),o.writeUInt8(n.length,1),n.copy(o,2),o;case 5:case 196:return function(e){var r=t.alloc(3+e.length),n=0;return r.writeUInt8(p,n),n++,r.writeUInt8(e.length,n),n++,e.copy(r,n),n+=e.length,r.writeUInt8(g,n),n++,r}(r.pkh);case 0:case 111:return function(e){var r=t.alloc(5+e.length),n=0;return r.writeUInt8(m,n),n++,r.writeUInt8(p,n),n++,r.writeUInt8(e.length,n),n++,e.copy(r,n),n+=e.length,r.writeUInt8(b,n),n++,r.writeUInt8(v,n),n++,r}(r.pkh);default:throw new Error("Unknown version byte: ".concat(r.versionByte,". Cannot build BTC transaction."))}var n,o}(e.recipient),s=T(i.length);c=w(c,s),l+=s.length,c=w(c,i),l+=i.length}),f){for(var I=[],x=[],j=0;j<r.length;j++)I.push(r[j].sig),x.push(r[j].pubkey);var O=function(e,r){var n=t.alloc(0),o=t.alloc(1);o.writeUInt8(2,0);for(var i=0;i<e.length;i++){var s=t.concat([e[i],u]),a=T(s.length),c=r[i],l=T(c.length);n=t.concat([n,o,a,s,l,c])}return n}(I,x);c=w(c,O),l+=O.length}return t.concat([c,E(i)]).toString("hex")},getBitcoinAddress:function(e,r){var n=null,s=null;if(r===y?(n="bc",s=0):r===k&&(n="tb",s=0),null!==n&&null!==s){var a=o.bech32.toWords(e);return a.unshift(s),o.bech32.encode(n,a)}return i.default.encode(t.concat([t.from([r]),e]))},getAddressFormat:_}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/bitcoin.js"}],[4194,{"@ethersproject/abi":670,buffer:3792,"js-sha3":4383},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.replaceNestedDefs=r.getNestedCalldata=r.parseCanonicalName=r.parseSolidityJSONABI=void 0;var n=e("js-sha3"),o=e("@ethersproject/abi");r.parseSolidityJSONABI=function(e,t){e=s(e);var r=t.filter(function(e){return"function"===e.type}).find(function(t){return i(d(t).canonicalName)===e});if(r)return{def:d(r).def};throw new Error("Unable to find matching function in ABI")};r.parseCanonicalName=function(e,t){if((e=s(e))!==i(t))throw new Error("Name does not match provided sig.");var r=[],n=t.indexOf("(");if(n<0)throw new Error(y);r.push(t.slice(0,n)),t=t.slice(n+1);for(var o=[];t.length>1;){var a=c(t);o=o.concat(l(a)),t=t.slice(a.length+1)}var u=f(o);return r.concat(u)};r.getNestedCalldata=function(e,r){var n=[],i=e.slice(1),s=a(i);function c(e){return(e.length-4)%32==0}return(new o.AbiCoder).decode(s,"0x"+r.slice(4).toString("hex")).forEach(function(e,r){if(g(i[r])){var o=!0;if(v(i[r]))e.forEach(function(e){c(t.from(e.slice(2),"hex"))||(o=!1)});else if(b(i[r])){var s=t.from(e.slice(2),"hex");o=c(s)}else o=!1;n.push(o?e:null)}else n.push(null)}),n};function i(e){return"0x".concat((0,n.keccak256)(e).slice(0,8))}function s(e){if("string"!=typeof e||10!==e.length&&8!==e.length)throw new Error("`sig` must be a hex string with 4 bytes of data.");return 8===e.length&&(e="0x".concat(e)),e}function a(e){for(var t=[],r=function(r){var n=e[r],o=k[n[1]];if(n[2]&&(o="".concat(o).concat(8*n[2])),n[3].length>0&&n[3].forEach(function(e){o=0===n[3][e]?"".concat(o,"[]"):"".concat(o,"[").concat(n[3][e],"]")}),n[4]){var i=a(n[4]);o="".concat(o,"(").concat(i.join(","),")")}t.push(o)},n=0;n<e.length;n++)r(n);return t}function c(e){if(m(e))return p(e);if(e.indexOf(",")>-1)return e.slice(0,e.indexOf(","));if(e.indexOf(")")>-1)return e.slice(0,e.indexOf(")"));throw new Error(y)}function l(e){if(!m(e))return[u(e)];var t={szBytes:0,typeIdx:k.indexOf("tuple"),arraySzs:[]},r=p(e,!1),n=e.slice(r.length);t.arraySzs=h(n),r=r.slice(1);for(var o=[];r.length>0;){var i=c(r);r=r.slice(i.length+1),o=o.concat(l(i))}if(!o.length)throw new Error(y);return[t,o]}function u(e){var t={szBytes:0,typeIdx:0,arraySzs:[]},r=!1;if(k.forEach(function(n,o){if(e.indexOf(n)>-1&&!r){t.typeIdx=o,t.arraySzs=h(e);var i=t.arraySzs.length>0?e.indexOf("["):e.length,s=e.slice(n.length,i);if(parseInt(s)&&(t.szBytes=parseInt(s)/8,t.szBytes>32))throw new Error(y);r=!0}}),!r)throw new Error(y);return t}function d(e,t,r,n){if(void 0===t&&(t=""),void 0===r&&(r=[]),void 0===n&&(n=!1),!n){var o=e.name||"";r.push(o),t+=o}return e.inputs&&(t+="(",e.inputs.forEach(function(e){var n=function(e){if(!e.type)throw new Error("No type in input");var t=[e.name],r=function(e){var t,r={szBytes:0,typeIdx:0,arraySzs:[]};k.forEach(function(n,o){e.indexOf(n)>-1&&!t&&(t=n,r.typeIdx=o)}),r.arraySzs=h(e);var n=r.arraySzs.length>0?e.indexOf("["):e.length;if(["uint","int","bytes"].indexOf(t)>-1){var o=parseInt(e.slice(t.length,n))||0;if(o>256)throw new Error("Invalid param size");r.szBytes=o/8}else r.szBytes=0;return r}(e.type),n=r.typeIdx,o=r.szBytes,i=r.arraySzs;return t.push(n),t.push(o),t.push(i),t}(e);if(e.type.indexOf("tuple")>-1&&e.components){var o=d({inputs:e.components},t,[],!0);t=o.canonicalName,t+="".concat(e.type.slice(5),","),n.push(o.def)}else t+=e.type,t+=",";r.push(n)}),","===t[t.length-1]&&(t=t.slice(0,t.length-1)),t+=")"),{def:r,canonicalName:t}}function f(e,t){void 0===t&&(t="");var r=[],n=0;return e.forEach(function(e,o){Array.isArray(e)?r[r.length-1].push(f(e,"".concat(o,"-"))):r.push(["#".concat(t).concat(o+1-n),e.typeIdx,e.szBytes,e.arraySzs]),e.typeIdx===k.indexOf("tuple")&&(n+=1)}),r}function h(e){if("string"!=typeof e)throw new Error("Invalid type");for(var t=[],r=e;r.length>0;){var n=r.indexOf("[");if(n<0)return t;var o=r.slice(n),i=o.indexOf("]");if(i<0)throw new Error("Bad param type");var s=o.slice(1,i);0===s.length?t.push(0):t.push(parseInt(s)),r=o.slice(i+1)}return t}function p(e,t){void 0===t&&(t=!0);for(var r=0,n=!1,o=0;o<e.length;o++){"("===e[o]?(r+=1,n=!0):")"===e[o]&&(r-=1);var i=","===e[o+1]||")"===e[o+1]||o===e.length-1;if(t||"["!==e[o+1]||(i=!0),!r&&n&&i)return e.slice(0,o+1)}throw new Error(y)}function m(e){return"("===e[0]}function g(e){return"bytes"===k[e[1]]}function b(e){return g(e)&&0===e[3].length}function v(e){return g(e)&&1===e[3].length&&0===e[3][0]}r.replaceNestedDefs=function(e,t){for(var r=0;r<t.length;r++){var n=v(e[1+r]),o=b(e[1+r]);if(null!==t[r]&&(n||o)){e[1+r][1]=k.indexOf("nestedDef");var i=n?t[r]:[t[r]];e[1+r]=e[1+r].concat([i])}}return e};var y="Could not parse canonical function name.",k=[null,"address","bool","uint","int","bytes","string","tuple","nestedDef"]}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/calldata/evm.js"}],[4195,{"./evm":4194},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CALLDATA=void 0;var n=e("./evm");r.CALLDATA={EVM:{type:1,parsers:{parseSolidityJSONABI:n.parseSolidityJSONABI,parseCanonicalName:n.parseCanonicalName},processors:{getNestedCalldata:n.getNestedCalldata,replaceNestedDefs:n.replaceNestedDefs}}}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/calldata/index.js"}],[4196,{"./constants":4197,"./functions/index":4205,"./shared/functions":4215,"./shared/utilities":4217,"./shared/validators":4218,"./util":4219,buffer:3792},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.Client=void 0;var i=e("./constants"),s=e("./functions/index"),a=e("./shared/functions"),c=e("./shared/utilities"),l=e("./shared/validators"),u=e("./util"),d=function(){function e(e){var t=e.baseUrl,r=e.name,n=e.privKey,o=e.stateData,s=e.timeout,c=e.retryCount,l=e.skipRetryOnWrongWallet,d=e.deviceId;this.name=r||"Unknown",this.baseUrl=t||i.BASE_URL,this.deviceId=d,this.isPaired=!1,this.activeWallets=i.DEFAULT_ACTIVE_WALLETS,this.timeout=s||6e4,this.retryCount=c||3,this.skipRetryOnWrongWallet=l||!1,this.privKey=n||(0,u.randomBytes)(32),this.key=(0,u.getP256KeyPair)(this.privKey),this.retryWrapper=(0,a.buildRetryWrapper)(this,this.retryCount),o&&this.unpackAndApplyStateData(o)}return Object.defineProperty(e.prototype,"publicKey",{get:function(){return(0,c.getPubKeyBytes)(this.key)},enumerable:!1,configurable:!0}),e.prototype.getAppName=function(){return this.name},e.prototype.getDeviceId=function(){return this.deviceId},Object.defineProperty(e.prototype,"sharedSecret",{get:function(){return t.from(this.key.derive(this.ephemeralPub.getPublic()).toArray("be",32))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ephemeralPub",{get:function(){return this._ephemeralPub},set:function(e){(0,l.validateEphemeralPub)(e),this._ephemeralPub=e},enumerable:!1,configurable:!0}),e.prototype.connect=function(e){return n(this,void 0,void 0,function(){return o(this,function(t){return[2,this.retryWrapper(s.connect,{id:e})]})})},e.prototype.pair=function(e){return n(this,void 0,void 0,function(){return o(this,function(t){return[2,this.retryWrapper(s.pair,{pairingSecret:e})]})})},e.prototype.getAddresses=function(e){var t=e.startPath,r=e.n,i=void 0===r?1:r,a=e.flag,c=void 0===a?0:a;return n(this,void 0,void 0,function(){return o(this,function(e){return[2,this.retryWrapper(s.getAddresses,{startPath:t,n:i,flag:c})]})})},e.prototype.sign=function(e){var t=e.data,r=e.currency,i=e.cachedData,a=e.nextCode;return n(this,void 0,void 0,function(){return o(this,function(e){return[2,this.retryWrapper(s.sign,{data:t,currency:r,cachedData:i,nextCode:a})]})})},e.prototype.fetchActiveWallet=function(){return n(this,void 0,void 0,function(){return o(this,function(e){return[2,this.retryWrapper(s.fetchActiveWallet)]})})},e.prototype.addKvRecords=function(e){var t=e.type,r=void 0===t?0:t,i=e.records,a=e.caseSensitive,c=void 0!==a&&a;return n(this,void 0,void 0,function(){return o(this,function(e){return[2,this.retryWrapper(s.addKvRecords,{type:r,records:i,caseSensitive:c})]})})},e.prototype.getKvRecords=function(e){var t=e.type,r=void 0===t?0:t,i=e.n,a=void 0===i?1:i,c=e.start,l=void 0===c?0:c;return n(this,void 0,void 0,function(){return o(this,function(e){return[2,this.retryWrapper(s.getKvRecords,{type:r,n:a,start:l})]})})},e.prototype.removeKvRecords=function(e){var t=e.type,r=void 0===t?0:t,i=e.ids,a=void 0===i?[]:i;return n(this,void 0,void 0,function(){return o(this,function(e){return[2,this.retryWrapper(s.removeKvRecords,{type:r,ids:a})]})})},e.prototype.fetchEncryptedData=function(e){return n(this,void 0,void 0,function(){return o(this,function(t){return[2,this.retryWrapper(s.fetchEncData,e)]})})},e.prototype.getActiveWallet=function(){return this.activeWallets.external.uid&&!i.EMPTY_WALLET_UID.equals(this.activeWallets.external.uid)?this.activeWallets.external:this.activeWallets.internal.uid&&!i.EMPTY_WALLET_UID.equals(this.activeWallets.internal.uid)?this.activeWallets.internal:undefined},e.prototype.hasActiveWallet=function(){return!!this.getActiveWallet()},e.prototype.resetActiveWallets=function(){this.activeWallets=i.DEFAULT_ACTIVE_WALLETS},e.prototype.getStateData=function(){return this.packStateData()},e.prototype.getFwConstants=function(){var e;return(0,i.getFwVersionConst)(null!==(e=this.fwVersion)&&void 0!==e?e:t.alloc(0))},e.prototype.getFwVersion=function(){return this.fwVersion&&this.fwVersion.length>=3?{fix:this.fwVersion[0],minor:this.fwVersion[1],major:this.fwVersion[2]}:{fix:0,minor:0,major:0}},e.prototype.mutate=function(e){var t=e.deviceId,r=e.ephemeralPub,n=e.url,o=e.isPaired,i=e.fwVersion,s=e.activeWallets;t!==undefined&&(this.deviceId=t),r!==undefined&&(this.ephemeralPub=r),n!==undefined&&(this.url=n),o!==undefined&&(this.isPaired=o),i!==undefined&&(this.fwVersion=i),s!==undefined&&(this.activeWallets=s)},e.prototype.packStateData=function(){var e,t,r,n,o,i,s;try{var a={activeWallets:{internal:{uid:null===(e=this.activeWallets.internal.uid)||void 0===e?void 0:e.toString("hex"),name:null===(t=this.activeWallets.internal.name)||void 0===t?void 0:t.toString(),capabilities:this.activeWallets.internal.capabilities},external:{uid:null===(r=this.activeWallets.external.uid)||void 0===r?void 0:r.toString("hex"),name:null===(n=this.activeWallets.external.name)||void 0===n?void 0:n.toString(),capabilities:this.activeWallets.external.capabilities}},ephemeralPub:null===(i=null===(o=this.ephemeralPub)||void 0===o?void 0:o.getPublic())||void 0===i?void 0:i.encode("hex"),fwVersion:null===(s=this.fwVersion)||void 0===s?void 0:s.toString("hex"),deviceId:this.deviceId,name:this.name,baseUrl:this.baseUrl,privKey:this.privKey.toString("hex"),retryCount:this.retryCount,timeout:this.timeout};return JSON.stringify(a)}catch(e){return console.warn("Could not pack state data."),null}},e.prototype.unpackAndApplyStateData=function(e){try{var r=JSON.parse(e),n={uid:t.from(r.activeWallets.internal.uid,"hex"),name:r.activeWallets.internal.name?t.from(r.activeWallets.internal.name):null,capabilities:r.activeWallets.internal.capabilities,external:!1},o={uid:t.from(r.activeWallets.external.uid,"hex"),name:r.activeWallets.external.name?t.from(r.activeWallets.external.name):null,capabilities:r.activeWallets.external.capabilities,external:!0},i=t.from(r.ephemeralPub,"hex"),s=t.from(r.fwVersion,"hex"),c=t.from(r.privKey,"hex");this.activeWallets.internal=n,this.activeWallets.external=o,this.ephemeralPub=(0,u.getP256KeyPairFromPub)(i),this.fwVersion=s,this.deviceId=r.deviceId,this.name=r.name,this.baseUrl=r.baseUrl,this.url="".concat(this.baseUrl,"/").concat(this.deviceId),this.privKey=c,this.key=(0,u.getP256KeyPair)(this.privKey),this.retryCount=r.retryCount,this.timeout=r.timeout,this.retryWrapper=(0,a.buildRetryWrapper)(this,this.retryCount)}catch(e){console.warn("Could not apply state data.")}},e}();r.Client=d}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/client.js"}],[4197,{"./protocol/latticeConstants":4212,buffer:3792},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.PUBLIC=r.ETH_ABI_LATTICE_FW_TYPE_MAP=r.MAX_CHAIN_ID_BYTES=r.HANDLE_LARGER_CHAIN_ID=r.HARDENED_OFFSET=r.VERSION_BYTE=r.REQUEST_TYPE_BYTE=r.signingSchema=r.ethMsgProtocol=r.addressSizes=r.EXTERNAL_NETWORKS_BY_CHAIN_ID_URL=r.NETWORKS_BY_CHAIN_ID=r.MAX_ADDR=r.CURRENCIES=r.BASE_URL=r.BIP_CONSTANTS=r.getFwVersionConst=r.ASCII_REGEX=r.LEDGER_LEGACY_DERIVATION=r.LEDGER_LIVE_DERIVATION=r.SOLANA_DERIVATION=r.BTC_WRAPPED_SEGWIT_DERIVATION=r.BTC_SEGWIT_DERIVATION=r.BTC_LEGACY_DERIVATION=r.DEFAULT_ETH_DERIVATION=r.DEFAULT_ACTIVE_WALLETS=r.EMPTY_WALLET_UID=r.EXTERNAL=void 0;var o=e("./protocol/latticeConstants");r.EXTERNAL={GET_ADDR_FLAGS:{SECP256K1_PUB:o.LatticeGetAddressesFlag.secp256k1Pubkey,ED25519_PUB:o.LatticeGetAddressesFlag.ed25519Pubkey,BLS12_381_G1_PUB:o.LatticeGetAddressesFlag.bls12_381Pubkey},SIGNING:{HASHES:{NONE:o.LatticeSignHash.none,KECCAK256:o.LatticeSignHash.keccak256,SHA256:o.LatticeSignHash.sha256},CURVES:{SECP256K1:o.LatticeSignCurve.secp256k1,ED25519:o.LatticeSignCurve.ed25519,BLS12_381_G2:o.LatticeSignCurve.bls12_381},ENCODINGS:{NONE:o.LatticeSignEncoding.none,SOLANA:o.LatticeSignEncoding.solana,EVM:o.LatticeSignEncoding.evm,ETH_DEPOSIT:o.LatticeSignEncoding.eth_deposit},BLS_DST:{BLS_DST_NUL:o.LatticeSignBlsDst.NUL,BLS_DST_POP:o.LatticeSignBlsDst.POP}},ENC_DATA:{SCHEMAS:{BLS_KEYSTORE_EIP2335_PBKDF_V4:o.LatticeEncDataSchema.eip2335}},ETH_CONSENSUS_SPEC:{NETWORKS:{MAINNET_GENESIS:{networkName:"mainnet",forkVersion:t.alloc(4),validatorsRoot:t.alloc(32)}},DOMAINS:{DEPOSIT:t.from("03000000","hex"),VOLUNTARY_EXIT:t.from("04000000","hex")}}},r.PUBLIC=r.EXTERNAL;r.addressSizes={BTC:20,ETH:20};r.CURRENCIES={ETH:"ETH",BTC:"BTC",ETH_MSG:"ETH_MSG"};r.signingSchema={BTC_TRANSFER:0,ETH_TRANSFER:1,ERC20_TRANSFER:2,ETH_MSG:3,EXTRA_DATA:4,GENERAL_SIGNING:5};var i=2147483648;r.HARDENED_OFFSET=i;var s={PURPOSES:{ETH:2147483692,BTC_LEGACY:2147483692,BTC_WRAPPED_SEGWIT:2147483697,BTC_SEGWIT:2147483732},COINS:{ETH:2147483708,BTC:i,BTC_TESTNET:2147483649}};r.BIP_CONSTANTS=s;r.REQUEST_TYPE_BYTE=2;r.VERSION_BYTE=1;r.HANDLE_LARGER_CHAIN_ID=255;r.MAX_CHAIN_ID_BYTES=8;r.BASE_URL="https://signing.gridpl.us";var a={address:1,bool:2,uint8:3,uint16:4,uint24:5,uint32:6,uint40:7,uint48:8,uint56:9,uint64:10,uint72:11,uint80:12,uint88:13,uint96:14,uint104:15,uint112:16,uint120:17,uint128:18,uint136:19,uint144:20,uint152:21,uint160:22,uint168:23,uint176:24,uint184:25,uint192:26,uint200:27,uint208:28,uint216:29,uint224:30,uint232:31,uint240:32,uint248:33,uint256:34,int8:35,int16:36,int24:37,int32:38,int40:39,int48:40,int56:41,int64:42,int72:43,int80:44,int88:45,int96:46,int104:47,int112:48,int120:49,int128:50,int136:51,int144:52,int152:53,int160:54,int168:55,int176:56,int184:57,int192:58,int200:59,int208:60,int216:61,int224:62,int232:63,int240:64,int248:65,int256:66,uint:67,bytes1:69,bytes2:70,bytes3:71,bytes4:72,bytes5:73,bytes6:74,bytes7:75,bytes8:76,bytes9:77,bytes10:78,bytes11:79,bytes12:80,bytes13:81,bytes14:82,bytes15:83,bytes16:84,bytes17:85,bytes18:86,bytes19:87,bytes20:88,bytes21:89,bytes22:90,bytes23:91,bytes24:92,bytes25:93,bytes26:94,bytes27:95,bytes28:96,bytes29:97,bytes30:98,bytes31:99,bytes32:100,bytes:101,string:102},c=n(n({},a),{tuple1:103,tuple2:104,tuple3:105,tuple4:106,tuple5:107,tuple6:108,tuple7:109,tuple8:110,tuple9:111,tuple10:112,tuple11:113,tuple12:114,tuple13:115,tuple14:116,tuple15:117,tuple16:118,tuple17:119});r.ETH_ABI_LATTICE_FW_TYPE_MAP=c;var l={SIGN_PERSONAL:{str:"signPersonal",enumIdx:0},TYPED_DATA:{str:"typedData",enumIdx:1,rawDataMaxLen:1629,typeCodes:a}};r.ethMsgProtocol=l,r.getFwVersionConst=function(e){var t={extraDataFrameSz:0,extraDataMaxFrames:0,genericSigning:{}};function n(e,t){return e[2]>t[0]||e[2]===t[0]&&e[1]>t[1]||e[2]===t[0]&&e[1]===t[1]&&e[0]>t[2]||e[2]===t[0]&&e[1]===t[1]&&e[0]===t[2]}var o=0===e.length;return!o&&n(e,[0,10,4])||!o&&n(e,[0,10,0])?(t.reqMaxDataSz=1678,t.ethMaxGasPrice=2e13,t.addrFlagsAllowed=!0):(t.reqMaxDataSz=1152,t.ethMaxGasPrice=5e11,t.addrFlagsAllowed=!1),t.ethMaxDataSz=t.reqMaxDataSz-128,t.ethMaxMsgSz=t.ethMaxDataSz,t.eip712MaxTypeParams=18,!o&&n(e,[0,10,4])&&(t.extraDataFrameSz=1500,t.extraDataMaxFrames=1),!o&&n(e,[0,10,5])&&(t.varAddrPathSzAllowed=!0,t.eip712Supported=!0),!o&&n(e,[0,10,8])&&(t.prehashAllowed=!0),!o&&n(e,[0,10,10])&&(t.ethMsgPreHashAllowed=!0),!o&&n(e,[0,11,0])&&(t.allowedEthTxTypes=[1,2],t.ethMaxDataSz-=10,t.ethMaxMsgSz=t.ethMaxDataSz),!o&&n(e,[0,11,2])&&(t.personalSignHeaderSz=72),!o&&n(e,[0,12,0])&&(t.kvActionsAllowed=!0,t.kvKeyMaxStrSz=63,t.kvValMaxStrSz=63,t.kvActionMaxNum=10,t.kvRemoveMaxNum=100),!o&&n(e,[0,13,0])&&(t.allowBtcLegacyAndSegwitAddrs=!0,t.contractDeployKey="0x08002e0fec8e6acf00835f43c9764f7364fa3f42"),!o&&n(e,[0,14,0])&&(t.abiCategorySz=32,t.abiMaxRmv=200,t.genericSigning.baseReqSz=1552,t.genericSigning.baseDataSz=1519,t.genericSigning.hashTypes=r.EXTERNAL.SIGNING.HASHES,t.genericSigning.curveTypes=r.EXTERNAL.SIGNING.CURVES,t.genericSigning.encodingTypes={NONE:r.EXTERNAL.SIGNING.ENCODINGS.NONE,SOLANA:r.EXTERNAL.SIGNING.ENCODINGS.SOLANA},t.getAddressFlags=[r.EXTERNAL.GET_ADDR_FLAGS.ED25519_PUB,r.EXTERNAL.GET_ADDR_FLAGS.SECP256K1_PUB],t.eip712MaxTypeParams=36),!o&&n(e,[0,15,0])&&(t.genericSigning.encodingTypes.EVM=r.EXTERNAL.SIGNING.ENCODINGS.EVM,t.ethMaxDataSz=1519,t.maxDecoderBufSz=1600,t.genericSigning.calldataDecoding={reserved:2895728,maxSz:1024}),!o&&n(e,[0,17,0])&&(t.getAddressFlags.push(r.EXTERNAL.GET_ADDR_FLAGS.BLS12_381_G1_PUB),t.genericSigning.encodingTypes.ETH_DEPOSIT=r.EXTERNAL.SIGNING.ENCODINGS.ETH_DEPOSIT),t};r.ASCII_REGEX=/^[\x00-\x7F]+$/;r.EXTERNAL_NETWORKS_BY_CHAIN_ID_URL="https://gridplus.github.io/chains/chains.json";r.MAX_ADDR=10;r.NETWORKS_BY_CHAIN_ID={1:{name:"ethereum",baseUrl:"https://api.etherscan.io",apiRoute:"api?module=contract&action=getabi"},137:{name:"polygon",baseUrl:"https://api.polygonscan.com",apiRoute:"api?module=contract&action=getabi"},56:{name:"binance",baseUrl:"https://api.bscscan.com",apiRoute:"api?module=contract&action=getabi"},42220:{name:"celo",baseUrl:"https://api.celoscan.io",apiRoute:"api?module=contract&action=getabi"},43114:{name:"avalanche",baseUrl:"https://api.snowtrace.io",apiRoute:"api?module=contract&action=getabi"}},r.EMPTY_WALLET_UID=t.alloc(32),r.DEFAULT_ACTIVE_WALLETS={internal:{uid:r.EMPTY_WALLET_UID,external:!1,name:t.alloc(0),capabilities:0},external:{uid:r.EMPTY_WALLET_UID,external:!0,name:t.alloc(0),capabilities:0}},r.DEFAULT_ETH_DERIVATION=[2147483692,2147483708,i,0,0],r.BTC_LEGACY_DERIVATION=[2147483692,2147483648,i,0,0],r.BTC_SEGWIT_DERIVATION=[2147483732,i,i,0,0],r.BTC_WRAPPED_SEGWIT_DERIVATION=[2147483697,i,i,0,0],r.SOLANA_DERIVATION=[2147483692,2147484149,i],r.LEDGER_LIVE_DERIVATION=[2147483697,2147483708,i,0,0],r.LEDGER_LEGACY_DERIVATION=[2147483697,2147483708,i,0]}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/constants.js"}],[4198,{"./constants":4197,"./protocol":4211,"./util":4219,"@ethereumjs/common":4272,"@ethereumjs/tx":630,"bignumber.js":4291,borc:3738,buffer:3792,"eth-eip712-util-browser":3994,"js-sha3":4383,rlp:4292,secp256k1:5242},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var o=e("@ethereumjs/common"),i=e("@ethereumjs/tx"),s=n(e("bignumber.js")),a=n(e("borc")),c=e("eth-eip712-util-browser"),l=e("js-sha3"),u=e("rlp"),d=n(e("secp256k1")),f=e("./constants"),h=e("./protocol"),p=e("./util");function m(e){for(var t=e[0];e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e}function g(e,r,n,o){void 0===o&&(o={});try{var i=new Uint8Array(e),s=0,a=(0,p.fixLen)(r.r,32);r.r=a;var c=(0,p.fixLen)(r.s,32);r.s=c;var l=new Uint8Array(t.concat([a,c])),u=d.default.ecdsaRecover(l,s,i,!1).slice(1);if(b(u)===n.toString("hex"))return r.v=v(s,o),r;if(s=1,b(u=d.default.ecdsaRecover(l,s,i,!1).slice(1))===n.toString("hex"))return r.v=v(s,o),r;throw new Error("Invalid Ethereum signature returned.")}catch(e){throw new Error(e)}}function b(e){return(0,l.keccak256)(e).slice(-40)}function v(e,r){void 0===r&&(r={});var n=r.chainId,o=r.useEIP155,i=r.type;if(1===i||2===i)return(0,p.ensureHexBuffer)(e,!0);if(!1===o||null===n)return t.from(new s.default(e).plus(27).toString(16),"hex");var a=k(n),c=new s.default(a.toString("hex"),16);return(0,p.ensureHexBuffer)("0x".concat(c.times(2).plus(35).plus(e).toString(16)))}var y={mainnet:1,roptsten:3,rinkeby:4,kovan:42,goerli:5};function k(e){var r,n;if((r=!0===w(e)?(0,p.ensureHexBuffer)(e):(0,p.ensureHexBuffer)("0x".concat(new s.default(e).toString(16)))).length>8)throw new Error("ChainID provided is too large.");return r.length<=2||4===r.length||8===r.length?r:(3===r.length?(n=t.alloc(4)).writeUInt32BE(e):r.length<=8&&(n=t.alloc(8),r.copy(n,8-r.length)),n)}function w(e){if("string"!=typeof e)return!1;if("0x"!==e.slice(0,2))return!1;try{return!1===new s.default(e,16).isNaN()}catch(e){return!1}}function E(e,r){var n=r.fwConstants,o=n.ethMaxMsgSz,i=n.extraDataFrameSz,s=n.extraDataMaxFrames,a=o,c=i>0&&s>0,l=[];if(e.length>a){var u=a+s*i;if(!c)throw new Error("Your message is ".concat(e.length," bytes, but can only be a maximum of ").concat(a));if(c&&e.length>u)throw new Error("Your message is ".concat(e.length," bytes, but can only be a maximum of ").concat(u));(0,p.splitFrames)(e.slice(a),i).forEach(function(e){var r=t.alloc(4);r.writeUInt32LE(e.length,0),l.push(t.concat([r,e]))})}return l}function T(e,t,r,n){return void 0===n&&(n=!1),r[t].forEach(function(t){var o=t.type.indexOf("[")>-1,i=o?t.type.slice(0,t.type.indexOf("[")):t.type,s=Object.keys(r).indexOf(i)>-1;if(s&&Array.isArray(e))for(var a=0;a<e.length;a++)e[a][t.name]=T(e[a][t.name],i,r,n);else if(s)e[t.name]=T(e[t.name],i,r,n);else if(Array.isArray(e))for(a=0;a<e.length;a++)if(o)for(var c=0;c<e[a][t.name].length;c++)e[a][t.name][c]=C(e[a][t.name][c],i,n);else e[a][t.name]=C(e[a][t.name],i,n);else if(o)for(a=0;a<e[t.name].length;a++)e[t.name][a]=C(e[t.name][a],i,n);else e[t.name]=C(e[t.name],i,n)}),e}function C(e,r,n){if(void 0===n&&(n=!1),"bytes"===r)e=(0,p.ensureHexBuffer)(e),n&&(e="0x".concat(e.toString("hex")));else if("bytes"===r.slice(0,5)){var o=parseInt(r.slice(5));if((e=(0,p.ensureHexBuffer)(e)).length!==o)throw new Error("Expected ".concat(r," type, but got ").concat(e.length," bytes"));n&&(e="0x".concat(e.toString("hex")))}else if("address"===r){if(0===(e=(0,p.ensureHexBuffer)(e)).length&&(e=t.alloc(20)),20!==e.length)throw new Error("Address type must be 20 bytes, but got ".concat(e.length," bytes"));n&&(e="0x".concat(e.toString("hex")))}else if(f.ethMsgProtocol.TYPED_DATA.typeCodes[r]&&(r.indexOf("uint")>-1||r.indexOf("int")>-1)){var i=(0,p.ensureHexBuffer)(e);0===i.length&&(i=t.from("00","hex")),e=n?"0x".concat(i.toString("hex")):(new a.default.Encoder).semanticTypes[1][0](i.toString("hex"),16)}else"bool"===r&&(e=!0===e?1:0);return e}function P(e){return t.from("Ethereum Signed Message:\n".concat(e.toString()),"utf-8")}function _(e,r){return r?t.concat([t.from([r]),t.from((0,u.encode)(e))]):t.from((0,u.encode)(e))}r.default={buildEthereumMsgRequest:function(e){if(!e.payload||!e.protocol||!e.signerPath)throw new Error("You must provide `payload`, `signerPath`, and `protocol` arguments in the messsage request");if(e.signerPath.length>5||e.signerPath.length<2)throw new Error("Please provide a signer path with 2-5 indices");var r={schema:h.LatticeSignSchema.ethereumMsg,payload:null,input:e,msg:null};switch(e.protocol){case"signPersonal":return function(e,r){var n=r.fwConstants.ethMaxMsgSz,o=r.fwConstants.varAddrPathSzAllowed,i=24+n+4,s=0;e.payload=t.alloc(i),e.payload.writeUInt8(f.ethMsgProtocol.SIGN_PERSONAL,0),s+=1;var a=(0,p.buildSignerPathBuf)(r.signerPath,o);a.copy(e.payload,s),s+=a.length;var c=r.payload,u=!1;if("string"==typeof r.payload)if("0x"===r.payload.slice(0,2))c=(0,p.ensureHexBuffer)(r.payload),u=!1===f.ASCII_REGEX.test(t.from(r.payload.slice(2),"hex").toString());else{if(!1===(0,p.isAsciiStr)(r.payload))throw new Error("Currently, the Lattice can only display ASCII strings.");c=t.from(r.payload)}else if("boolean"==typeof r.displayHex)u=r.displayHex;else{if(!r.payload.toString)throw new Error("Unsupported input data type");u=!1===f.ASCII_REGEX.test(r.payload.toString())}var d=r.fwConstants,h=n+d.extraDataMaxFrames*d.extraDataFrameSz;d.personalSignHeaderSz&&(h-=d.personalSignHeaderSz);if(d.ethMsgPreHashAllowed&&c.length>h){e.payload.writeUInt8(u,s),s+=1,e.payload.writeUInt16LE(c.length,s),s+=2;var m=t.from((0,l.keccak256)(t.concat([P(c.length),c])),"hex");m.copy(e.payload,s),e.prehash=m}else{var g=E(c,r);e.extraDataPayloads=g,e.msg=c,e.payload.writeUInt8(u,s),s+=1,e.payload.writeUInt16LE(c.length,s),s+=2,c.copy(e.payload,s)}return e}(r,e);case"eip712":if(!e.fwConstants.eip712Supported)throw new Error("EIP712 is not supported by your Lattice firmware version. Please upgrade.");return function(e,r){var n=r.fwConstants,o=n.ethMaxMsgSz,i=n.varAddrPathSzAllowed,s=n.eip712MaxTypeParams,l=f.ethMsgProtocol.TYPED_DATA,u=24+o+4,d=0;e.payload=t.alloc(u),e.payload.writeUInt8(l.enumIdx,0),d+=1;var h=(0,p.buildSignerPathBuf)(r.signerPath,i);h.copy(e.payload,d),d+=h.length;var m=JSON.parse(JSON.stringify(r.payload));if(!m.primaryType||!m.types[m.primaryType])throw new Error("primaryType must be specified and the type must be included.");if(!m.message||!m.domain)throw new Error("message and domain must be specified.");if(0>Object.keys(m.types).indexOf("EIP712Domain"))throw new Error("EIP712Domain type must be defined.");r.payload.message=T(JSON.parse(JSON.stringify(m.message)),JSON.parse(JSON.stringify(m.primaryType)),JSON.parse(JSON.stringify(m.types)),!0),r.payload.domain=T(JSON.parse(JSON.stringify(m.domain)),"EIP712Domain",JSON.parse(JSON.stringify(m.types)),!0),m.domain=T(m.domain,"EIP712Domain",m.types,!1),m.message=T(m.message,m.primaryType,m.types,!1);var g=t.from(a.default.encode(m)),b=r.fwConstants,v=o+b.extraDataMaxFrames*b.extraDataFrameSz,y=g.length>v;if(Object.keys(m.types).forEach(function(e){m.types[e].length>s&&(y=!0)}),b.ethMsgPreHashAllowed&&y){e.payload.writeUInt16LE(g.length,d),d+=2;var k=c.TypedDataUtils.hash(e.input.payload);t.from(k).copy(e.payload,d),e.prehash=k}else{var w=E(g,r);e.extraDataPayloads=w,e.payload.writeUInt16LE(g.length,d),d+=2,g.copy(e.payload,d),d+=g.length,e.payload=e.payload.slice(0,d)}return e}(r,e);default:throw new Error("Unsupported protocol")}},validateEthereumMsgResponse:function(e,r){var n=e.signer,o=e.sig,i=r.input,s=r.msg,a=r.prehash,u=void 0===a?null:a;if("signPersonal"===i.protocol)return g(u||t.from((0,l.keccak256)(t.concat([P(s.length),s])),"hex"),o,n,{chainId:1,useEIP155:!1});if("eip712"===i.protocol){var d=c.TypedDataUtils.hash(r.input.payload);return g(u||d,o,n,{useEIP155:!1})}throw new Error("Unsupported protocol")},buildEthereumTxRequest:function(e){try{var r=e.chainId,n=void 0===r?1:r,o=e.signerPath,i=e.eip155,s=void 0===i?null:i,a=e.fwConstants,c=e.type,u=void 0===c?null:c,d=a.contractDeployKey,m=a.extraDataFrameSz,g=a.extraDataMaxFrames,b=a.prehashAllowed,v=m>0&&g>0,E=a.ethMaxDataSz,T=a.varAddrPathSzAllowed;if("number"!=typeof n&&!1===w(n)&&(n=y[n]),!n)throw new Error("Unsupported chain ID or name");if(!o)throw new Error("`signerPath` not provided");if(null===e.to&&!d)throw new Error("Contract deployment not supported. Please update your Lattice firmware.");var C=null===e.to&&d,P=a.allowedEthTxTypes&&a.allowedEthTxTypes.indexOf(2)>-1,S=a.allowedEthTxTypes&&a.allowedEthTxTypes.indexOf(1)>-1,A=P&&(2===u||"eip1559"===u),I=S&&(1===u||"eip2930"===u);if(null!==u&&!A&&!I)throw new Error("Unsupported Ethereum transaction type");var x=function(e){switch(e){case 3:case 4:return!1;default:return!0}}(n);null!==s&&"boolean"==typeof s?x=s:(A||I)&&(x=!1),e.value||(e.value=0);var j=[],O=(0,p.ensureHexBuffer)(n),N=(0,p.ensureHexBuffer)(e.nonce),B=void 0,R=(0,p.ensureHexBuffer)(e.gasLimit),D=void 0,L=void 0;C?(D=t.alloc(0),L=(0,p.ensureHexBuffer)(d)):(D=(0,p.ensureHexBuffer)(e.to),L=(0,p.ensureHexBuffer)(e.to));var M=(0,p.ensureHexBuffer)(e.value),U=(0,p.ensureHexBuffer)(e.data);(A||I)&&j.push(O),j.push(N);var H=void 0,G=void 0;if(A){if(!e.maxPriorityFeePerGas)throw new Error("EIP1559 transactions must include `maxPriorityFeePerGas`");H=(0,p.ensureHexBuffer)(e.maxPriorityFeePerGas),j.push(H),G=(0,p.ensureHexBuffer)(e.maxFeePerGas),j.push(G),B=G}else B=(0,p.ensureHexBuffer)(e.gasPrice),j.push(B);j.push(R),j.push(D),j.push(M),j.push(U);var F=!1;if(A||I){var $=[];Array.isArray(e.accessList)&&e.accessList.forEach(function(e){var t=[];e.storageKeys.forEach(function(e){t.push((0,p.ensureHexBuffer)(e))}),$.push([(0,p.ensureHexBuffer)(e.address),t]),F=!0}),j.push($)}else!0===x&&(j.push(O),j.push((0,p.ensureHexBuffer)(null)),j.push((0,p.ensureHexBuffer)(null)));var q=t.alloc(E+122),K=0;q.writeUInt8(Number(x),K),K++;var W=void 0,V=0;if(!0==(1!==(ne=k(n)).length||255===ne.readUInt8(0))){if((V=(W=k(n)).length)>f.MAX_CHAIN_ID_BYTES)throw new Error("ChainID provided is too large.");q.writeUInt8(f.HANDLE_LARGER_CHAIN_ID,K),K++}else{if(1!==(W=(0,p.ensureHexBuffer)(n)).length)throw new Error("Error parsing chainID");W.copy(q,K),K+=W.length}var z=(0,p.buildSignerPathBuf)(o,T);if(z.copy(q,K),K+=z.length,N.length>4)throw new Error("Nonce too large");if(N.copy(q,K+(4-N.length)),K+=4,B.length>8)throw new Error("Gas price too large");if(B.copy(q,K+(8-B.length)),K+=8,R.length>4)throw new Error("Gas limit too large");if(R.copy(q,K+(4-R.length)),K+=4,20!==L.length)throw new Error("Invalid `to` address");if(L.copy(q,K),K+=20,M.length>32)throw new Error("Value too large");M.copy(q,K+(32-M.length)),K+=32;var Y=!1;if(a.allowedEthTxTypes)if(F&&(Y=!0),q.writeUInt8(Y?1:0,K),K+=1,A){if(q.writeUInt8(2,K),K+=1,H.length>8)throw new Error("maxPriorityFeePerGasBytes too large");H.copy(q,K+(8-H.length)),K+=8}else I?(q.writeUInt8(1,K),K+=1,K+=8):K+=9;var X=[],J=null,Q=U.length||0,Z=V>0?V+1:0,ee=t.alloc(Q+Z);if(Z>0&&(ee.writeUInt8(V,0),W.copy(ee,1)),U.copy(ee,Z),Q>E){var te=Q+Z,re=E+g*m;if(b&&te>re)J=t.from((0,l.keccak256)(_(j,u)),"hex");else{if(!v||v&&te>re)throw new Error("Data field too large (got ".concat(U.length,"; must be <=").concat(re-Z," bytes)"));(0,p.splitFrames)(ee.slice(E),m).forEach(function(e){var r=t.alloc(4);r.writeUInt32LE(e.length,0),X.push(t.concat([r,e]))})}}else Y&&(J=t.from((0,l.keccak256)(_(j,u)),"hex"));return q.writeUInt16BE(U.length,K),K+=2,V>0&&(q.writeUInt8(V,K),K++,W.copy(q,K),K+=V),J?(J.copy(q,K),K+=E):(U.slice(0,E).copy(q,K),K+=E),{rawTx:j,type:u,payload:q.slice(0,K),extraDataPayloads:X,schema:h.LatticeSignSchema.ethereum,chainId:n,useEIP155:x,signerPath:o}}catch(e){return{err:e.message}}var ne},buildEthRawTx:function(e,r,n){var o=g(t.from((0,l.keccak256)(_(e.rawTx,e.type)),"hex"),r,n,e),i=e.useEIP155?e.rawTx.slice(0,-3):e.rawTx;i.push(o.v),i.push(m(o.r)),i.push(m(o.s));var s=t.from((0,u.encode)(i));return e.type&&(s=t.concat([t.from([e.type]),s])),{rawTx:s.toString("hex"),sigWithV:o}},hashTransaction:function(e){return(0,l.keccak256)(t.from(e,"hex"))},chainIds:y,ensureHexBuffer:p.ensureHexBuffer,ethConvertLegacyToGenericReq:function(e){var r;r=e.chainId&&"01"!==(0,p.ensureHexBuffer)(e.chainId).toString("hex")?o.Common.custom({chainId:Number(e.chainId)},{hardfork:o.Hardfork.London,eips:[1559,2930]}):new o.Common({chain:o.Chain.Mainnet,hardfork:o.Hardfork.London});var n=i.TransactionFactory.fromTxData(e,{common:r});return e.type?n.getMessageToSign(!1):t.from((0,u.encode)(n.getMessageToSign(!1)))}}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/ethereum.js"}],[4199,{"../protocol":4211,"../shared/validators":4218,buffer:3792},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.encodeAddKvRecordsRequest=r.validateAddKvRequest=r.addKvRecords=void 0;var i=e("../protocol"),s=e("../shared/validators");r.addKvRecords=function(e){var t=e.client,a=e.records,c=e.type,l=e.caseSensitive;return n(this,void 0,void 0,function(){var e,n,u,d,f,h,p,m,g;return o(this,function(o){switch(o.label){case 0:return e=(0,s.validateConnectedClient)(t),n=e.url,u=e.sharedSecret,d=e.ephemeralPub,f=e.fwConstants,(0,r.validateAddKvRequest)({records:a,fwConstants:f}),h=(0,r.encodeAddKvRecordsRequest)({records:a,type:c,caseSensitive:l,fwConstants:f}),[4,(0,i.encryptedSecureRequest)({data:h,requestType:i.LatticeSecureEncryptedRequestType.addKvRecords,sharedSecret:u,ephemeralPub:d,url:n})];case 1:return p=o.sent(),m=p.decryptedData,g=p.newEphemeralPub,t.mutate({ephemeralPub:g}),[2,m]}})})};r.validateAddKvRequest=function(e){var t=e.records,r=e.fwConstants;(0,s.validateKvRecords)(t,r)};r.encodeAddKvRecordsRequest=function(e){var r=e.records,n=e.type,o=e.caseSensitive,i=e.fwConstants,a=t.alloc(1+139*i.kvActionMaxNum);a.writeUInt8(Object.keys(r).length,0);var c=1;return Object.entries(r).forEach(function(e){var r=e[0],l=e[1],u=(0,s.validateKvRecord)({key:r,val:l},i),d=u.key,f=u.val;a.writeUInt32LE(0,c),c+=4,a.writeUInt32LE(n,c),c+=4,a.writeUInt8(o?1:0,c),c+=1,a.writeUInt8(String(d).length+1,c),c+=1,t.from(String(d)).copy(a,c),c+=i.kvKeyMaxStrSz+1,a.writeUInt8(String(f).length+1,c),c+=1,t.from(String(f)).copy(a,c),c+=i.kvValMaxStrSz+1}),a}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/addKvRecords.js"}],[42,{"@metamask/assets-controllers":1199},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CurrencyRateControllerInit=void 0;var n=e("@metamask/assets-controllers");r.CurrencyRateControllerInit=({controllerMessenger:e,initMessenger:t,persistedState:r})=>{const o=new n.CurrencyRateController({state:r.CurrencyController,messenger:e,includeUsdRate:!0,useExternalServices:()=>t.call("PreferencesController:getState").useExternalServices}),i=o.fetchMultiExchangeRate.bind(o);return o.fetchMultiExchangeRate=(...e)=>{const{useCurrencyRateCheck:r}=t.call("PreferencesController:getState");return r?i(...e):{conversionRate:null,usdConversionRate:null}},{memStateKey:"CurrencyController",persistedStateKey:"CurrencyController",controller:o}}}}},{package:"$root$",file:"app/scripts/controller-init/currency-rate-controller-init.ts"}],[420,{"@metamask/utils":2831,"bn.js":3731,lodash:4554,loglevel:4562},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=c,function(e){if((0,n.hasProperty)(e,"NftController")&&(0,n.isObject)(e.NftController)){const c=e.NftController;if((0,n.hasProperty)(c,"allNftContracts")&&(0,n.isObject)(c.allNftContracts)){const{allNftContracts:e}=c;Object.keys(e).every(t=>(0,n.isObject)(e[t]))&&Object.keys(e).forEach(t=>{const r=e[t];if((0,n.isObject)(r)){for(const e of Object.keys(r))"undefined"!==e&&e!==undefined&&"null"!==e||delete r[e];e[t]=(0,i.mapKeys)(r,(e,t)=>l(t))}})}else if((0,n.hasProperty)(c,"allNftContracts")){var t,r;null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("typeof state.NftController.allNftContracts is "+typeof c.allNftContracts))}else s.default.warn("typeof state.NftController.allNftContracts is "+typeof c.allNftContracts);if((0,n.hasProperty)(c,"allNfts")&&(0,n.isObject)(c.allNfts)){const{allNfts:e}=c;Object.keys(e).every(t=>(0,n.isObject)(e[t]))&&Object.keys(e).forEach(t=>{const r=e[t];if((0,n.isObject)(r)){for(const e of Object.keys(r))"undefined"!==e&&e!==undefined&&"null"!==e||delete r[e];e[t]=(0,i.mapKeys)(r,(e,t)=>l(t))}})}else if((0,n.hasProperty)(c,"allNfts")){var o,a;null===(o=global.sentry)||void 0===o||null===(a=o.captureException)||void 0===a||a.call(o,new Error("typeof state.NftController.allNfts is "+typeof c.allNfts))}else s.default.warn("typeof state.NftController.allNfts is "+typeof c.allNfts);e.NftController=c}else if((0,n.hasProperty)(e,"NftController")){var c,u;null===(c=global.sentry)||void 0===c||null===(u=c.captureException)||void 0===u||u.call(c,new Error("typeof state.NftController is "+typeof e.NftController))}else s.default.warn("typeof state.NftController is undefined");if((0,n.hasProperty)(e,"TokenListController")&&(0,n.isObject)(e.TokenListController)){const t=e.TokenListController;if((0,n.hasProperty)(t,"tokensChainsCache")&&(0,n.isObject)(t.tokensChainsCache)){for(const e of Object.keys(t.tokensChainsCache))"undefined"!==e&&e!==undefined&&"null"!==e||delete t.tokensChainsCache[e];t.tokensChainsCache=(0,i.mapKeys)(t.tokensChainsCache,(e,t)=>l(t))}else if((0,n.hasProperty)(t,"tokensChainsCache")){var d,f;null===(d=global.sentry)||void 0===d||null===(f=d.captureException)||void 0===f||f.call(d,new Error("typeof state.TokenListController.tokensChainsCache is "+typeof e.TokenListController.tokensChainsCache))}else s.default.warn("typeof state.TokenListController.tokensChainsCache is undefined")}else s.default.warn("typeof state.TokenListController is "+typeof e.TokenListController);if((0,n.hasProperty)(e,"TokensController")&&(0,n.isObject)(e.TokensController)){const t=e.TokensController;if((0,n.hasProperty)(t,"allTokens")&&(0,n.isObject)(t.allTokens)){const{allTokens:e}=t;for(const t of Object.keys(e))"undefined"!==t&&t!==undefined&&"null"!==t||delete e[t];t.allTokens=(0,i.mapKeys)(e,(e,t)=>l(t))}else if((0,n.hasProperty)(t,"allTokens")){var h,p;null===(h=global.sentry)||void 0===h||null===(p=h.captureException)||void 0===p||p.call(h,new Error("typeof state.TokensController.allTokens is "+typeof t.allTokens))}else s.default.warn("typeof state.TokensController.allTokens is "+typeof t.allTokens);if((0,n.hasProperty)(t,"allIgnoredTokens")&&(0,n.isObject)(t.allIgnoredTokens)){const{allIgnoredTokens:e}=t;for(const t of Object.keys(e))"undefined"!==t&&t!==undefined&&"null"!==t||delete e[t];t.allIgnoredTokens=(0,i.mapKeys)(e,(e,t)=>l(t))}else if((0,n.hasProperty)(t,"allIgnoredTokens")){var m,g;null===(m=global.sentry)||void 0===m||null===(g=m.captureException)||void 0===g||g.call(m,new Error("typeof state.TokensController.allIgnoredTokens is "+typeof t.allIgnoredTokens))}else s.default.warn("typeof state.TokensController.allIgnoredTokens is "+typeof t.allIgnoredTokens);if((0,n.hasProperty)(t,"allDetectedTokens")&&(0,n.isObject)(t.allDetectedTokens)){const{allDetectedTokens:e}=t;for(const t of Object.keys(e))"undefined"!==t&&t!==undefined&&"null"!==t||delete e[t];t.allDetectedTokens=(0,i.mapKeys)(e,(e,t)=>l(t))}else if((0,n.hasProperty)(t,"allDetectedTokens")){var b,v;null===(b=global.sentry)||void 0===b||null===(v=b.captureException)||void 0===v||v.call(b,new Error("typeof state.TokensController.allDetectedTokens is "+typeof t.allDetectedTokens))}else s.default.warn("typeof state.TokensController.allDetectedTokens is "+typeof t.allDetectedTokens);e.TokensController=t}else{var y,k;null===(y=global.sentry)||void 0===y||null===(k=y.captureException)||void 0===k||k.call(y,new Error("typeof state.TokensController is "+typeof e.TokensController))}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),o=a(e("bn.js")),i=e("lodash"),s=a(e("loglevel"));function a(e){return e&&e.__esModule?e:{default:e}}const c=r.version=88;function l(e){if("string"==typeof e&&(0,n.isStrictHexString)(e))return e;return`0x${o.default.isBN(e)?e.toString(16):new o.default(e.toString(10),10).toString(16)}`}}}},{package:"$root$",file:"app/scripts/migrations/088.ts"}],[4200,{"../protocol":4211,"../shared/predicates":4216,"../shared/utilities":4217,"../shared/validators":4218,"../util":4219},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(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeConnectResponse=r.validateConnectRequest=r.connect=void 0;var i=e("../protocol"),s=e("../shared/predicates"),a=e("../shared/utilities"),c=e("../shared/validators"),l=e("../util");r.connect=function(e){var t=e.client,a=e.id;return n(this,void 0,void 0,function(){var e,n,c,l,u,d,f,h,p,m,g;return o(this,function(o){switch(o.label){case 0:return e=(0,r.validateConnectRequest)({deviceId:a,key:t.key,baseUrl:t.baseUrl}),n=e.deviceId,c=e.key,l=e.baseUrl,u="".concat(l,"/").concat(n),[4,(0,i.connectSecureRequest)({url:u,pubkey:t.publicKey})];case 1:return d=o.sent(),[4,(0,r.decodeConnectResponse)(d,c)];case 2:return f=o.sent(),h=f.isPaired,p=f.fwVersion,m=f.activeWallets,g=f.ephemeralPub,t.mutate({deviceId:n,ephemeralPub:g,url:u,isPaired:h,fwVersion:p,activeWallets:m}),!h||(0,s.doesFetchWalletsOnLoad)(t.getFwVersion())?[3,4]:[4,t.fetchActiveWallet()];case 3:o.sent(),o.label=4;case 4:return[2,h]}})})};r.validateConnectRequest=function(e){var t=e.deviceId,r=e.key,n=e.baseUrl;return{deviceId:(0,c.validateDeviceId)(t),key:(0,c.validateKey)(r),baseUrl:(0,c.validateBaseUrl)(n)}};r.decodeConnectResponse=function(e,t){var r=0,n=e.readUInt8(r)===i.ProtocolConstants.pairingStatus.paired;r++;var o=e.slice(r,r+65).toString("hex");r+=65;var s=(0,l.getP256KeyPairFromPub)(o),c=e.slice(r,r+4);if(r+=4,n){var u=e.slice(r,r+160);r+=160;var d=(0,a.getSharedSecret)(t,s),f=(0,l.aes256_decrypt)(u,d);if(0!==f[f.length-2]||0!==f[f.length-1])throw new Error("Failed to connect to Lattice.");return{isPaired:n,fwVersion:c,activeWallets:(0,a.parseWallets)(f),ephemeralPub:s}}return{isPaired:n,fwVersion:c,activeWallets:undefined,ephemeralPub:s}}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/connect.js"}],[4201,{"../constants":4197,"../protocol":4211,"../shared/validators":4218,buffer:3792},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeFetchActiveWalletResponse=r.fetchActiveWallet=void 0;var i=e("../constants"),s=e("../protocol"),a=e("../shared/validators");r.fetchActiveWallet=function(e){var i=e.client;return n(this,void 0,void 0,function(){var e,n,c,l,u,d,f,h,p;return o(this,function(o){switch(o.label){case 0:return e=(0,a.validateConnectedClient)(i),n=e.url,c=e.sharedSecret,l=e.ephemeralPub,[4,(0,s.encryptedSecureRequest)({data:t.alloc(0),requestType:s.LatticeSecureEncryptedRequestType.getWallets,sharedSecret:c,ephemeralPub:l,url:n})];case 1:return u=o.sent(),d=u.decryptedData,f=u.newEphemeralPub,h=(0,r.decodeFetchActiveWalletResponse)(d),p=(0,a.validateActiveWallets)(h),i.mutate({ephemeralPub:f,activeWallets:p}),[2,p]}})})};r.decodeFetchActiveWalletResponse=function(e){var r={internal:{uid:i.EMPTY_WALLET_UID,external:!1,name:t.alloc(0),capabilities:0},external:{uid:i.EMPTY_WALLET_UID,external:!0,name:t.alloc(0),capabilities:0}},n=0;return r.internal.uid=e.slice(n,n+32),r.internal.capabilities=e.readUInt32BE(n+32),r.internal.name=e.slice(n+36,n+71),n+=71,r.external.uid=e.slice(n,n+32),r.external.capabilities=e.readUInt32BE(n+32),r.external.name=e.slice(n+36,n+71),r}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/fetchActiveWallet.js"}],[4202,{"../constants":4197,"../protocol":4211,"../shared/utilities":4217,"../shared/validators":4218,buffer:3792,uuid:4293},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeFetchEncData=r.encodeFetchEncDataRequest=r.validateFetchEncDataRequest=r.fetchEncData=void 0;var i=e("uuid"),s=e("../constants"),a=e("../protocol"),c=e("../shared/utilities"),l=e("../shared/validators"),u=s.EXTERNAL.ENC_DATA,d="Unknown encrypted data export type requested. Exiting.",f={CIPHERTEXT:32,SALT:32,CHECKSUM:32,IV:16,PUBKEY:48};r.fetchEncData=function(e){var t=e.client,i=e.schema,s=e.params;return n(this,void 0,void 0,function(){var e,n,c,u,d,f,h,p,m,g;return o(this,function(o){switch(o.label){case 0:return e=(0,l.validateConnectedClient)(t),n=e.url,c=e.sharedSecret,u=e.ephemeralPub,d=e.fwVersion,f=(0,l.validateWallet)(t.getActiveWallet()),(0,r.validateFetchEncDataRequest)({params:s}),h=(0,r.encodeFetchEncDataRequest)({schema:i,params:s,fwVersion:d,activeWallet:f}),[4,(0,a.encryptedSecureRequest)({data:h,requestType:a.LatticeSecureEncryptedRequestType.fetchEncryptedData,sharedSecret:c,ephemeralPub:u,url:n})];case 1:return p=o.sent(),m=p.decryptedData,g=p.newEphemeralPub,t.mutate({ephemeralPub:g}),[2,(0,r.decodeFetchEncData)({data:m,schema:i,params:s})]}})})};r.validateFetchEncDataRequest=function(e){var t=e.params;(0,l.validateStartPath)(t.path)};r.encodeFetchEncDataRequest=function(e){var r=e.schema,n=e.params,o=e.fwVersion,i=e.activeWallet;if(o.major<1&&o.minor<17)throw new Error("Firmware version >=v0.17.0 is required for encrypted data export.");if(r!==u.SCHEMAS.BLS_KEYSTORE_EIP2335_PBKDF_V4)throw new Error(d);n.walletUID=i.uid;var s=t.alloc(1025),a=0;if(s.writeUInt8(r,a),a+=1,r===u.SCHEMAS.BLS_KEYSTORE_EIP2335_PBKDF_V4){n.walletUID.copy(s,a),a+=n.walletUID.length,s.writeUInt8(n.path.length,a),a+=1;for(var c=0;c<5;c++)c<=n.path.length&&s.writeUInt32LE(n.path[c],a),a+=4;return n.c&&s.writeUInt32LE(n.c,a),a+=4,s}throw new Error(d)};r.decodeFetchEncData=function(e){var t=e.data,r=e.schema,n=e.params,o=0;if(r===u.SCHEMAS.BLS_KEYSTORE_EIP2335_PBKDF_V4){var i={},s=f,a=s.CIPHERTEXT,c=s.SALT,l=s.CHECKSUM,p=s.IV,m=s.PUBKEY,g=4+a+c+l+p+m,b=t.readUInt32LE(o);if(o+=4,b!==g)throw new Error("Invalid data returned from Lattice. Expected EIP2335 data.");return i.iterations=t.readUInt32LE(o),o+=4,i.cipherText=t.slice(o,o+a),o+=a,i.salt=t.slice(o,o+c),o+=c,i.checksum=t.slice(o,o+l),o+=l,i.iv=t.slice(o,o+p),o+=p,i.pubkey=t.slice(o,o+m),o+=m,h(i,n.path)}throw new Error(d)};var h=function(e,r){try{var n=e.iterations,o=e.salt,s=e.checksum,a=e.iv,l=e.cipherText,u=e.pubkey;return t.from(JSON.stringify({version:4,uuid:(0,i.v4)(),path:(0,c.getPathStr)(r),pubkey:u.toString("hex"),crypto:{kdf:{function:"pbkdf2",params:{dklen:32,c:n,prf:"hmac-sha256",salt:o.toString("hex")},message:""},checksum:{function:"sha256",params:{},message:s.toString("hex")},cipher:{function:"aes-128-ctr",params:{iv:a.toString("hex")},message:l.toString("hex")}}}))}catch(e){throw Error("Failed to format EIP2335 return data: ".concat(e.toString()))}}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/fetchEncData.js"}],[4203,{"../protocol":4211,"../shared/validators":4218,"../util":4219,bitwise:3716,buffer:3792},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeGetAddressesResponse=r.encodeGetAddressesRequest=r.validateGetAddressesRequest=r.getAddresses=void 0;var s=i(e("bitwise")),a=e("../protocol"),c=e("../shared/validators"),l=e("../util");r.getAddresses=function(e){var t=e.client,i=e.startPath,s=e.n,l=e.flag;return n(this,void 0,void 0,function(){var e,n,u,d,f,h,p,m,g,b,v,y,k,w;return o(this,function(o){switch(o.label){case 0:return e=(0,c.validateConnectedClient)(t),n=e.url,u=e.sharedSecret,d=e.ephemeralPub,f=e.fwConstants,h=(0,c.validateWallet)(t.getActiveWallet()),p=(0,r.validateGetAddressesRequest)({startPath:i,n:s,flag:l}),m=p.startPath,g=p.n,b=p.flag,v=(0,r.encodeGetAddressesRequest)({startPath:m,n:g,flag:b,fwConstants:f,wallet:h}),[4,(0,a.encryptedSecureRequest)({data:v,requestType:a.LatticeSecureEncryptedRequestType.getAddresses,sharedSecret:u,ephemeralPub:d,url:n})];case 1:return y=o.sent(),k=y.decryptedData,w=y.newEphemeralPub,t.mutate({ephemeralPub:w}),[2,(0,r.decodeGetAddressesResponse)(k,b)]}})})};r.validateGetAddressesRequest=function(e){var t=e.startPath,r=e.n,n=e.flag;return{startPath:(0,c.validateStartPath)(t),n:(0,c.validateNAddresses)(r),flag:(0,c.validateIsUInt4)(n)}};r.encodeGetAddressesRequest=function(e){var r,n=e.startPath,o=e.n,i=e.flag,c=e.fwConstants,u=e.wallet;if(!((c.getAddressFlags||[]).indexOf(i)>-1&&(i===a.LatticeGetAddressesFlag.ed25519Pubkey||i===a.LatticeGetAddressesFlag.secp256k1Pubkey||i===a.LatticeGetAddressesFlag.bls12_381Pubkey))&&!(0,l.isValidAssetPath)(n,c))throw new Error("Derivation path or flag is not supported. Try updating Lattice firmware.");var d=53;if(c.varAddrPathSzAllowed)d+=1;else if(5!==n.length)throw new Error("Your Lattice firmware only supports derivation paths with 5 indices. Please upgrade.");var f=t.alloc(d),h=0;u.uid.copy(f,h),h+=32,c.varAddrPathSzAllowed&&(f.writeUInt8(n.length,h),h+=1);for(var p=0;p<5;p++){if(p<=n.length){var m=null!==(r=n[p])&&void 0!==r?r:0;f.writeUInt32BE(m,h)}h+=4}var g,b=0;if(c.addrFlagsAllowed){b=c.getAddressFlags&&c.getAddressFlags.indexOf(i)>-1?i:0;var v=s.default.nibble.read(b),y=s.default.nibble.read(o);g=s.default.byte.write(v.concat(y))}else g=o;return f.writeUInt8(g,h),h++,f};r.decodeGetAddressesResponse=function(e,t){var r=0,n=[],o=t===a.LatticeGetAddressesFlag.secp256k1Pubkey||t===a.LatticeGetAddressesFlag.ed25519Pubkey||t===a.LatticeGetAddressesFlag.bls12_381Pubkey;o&&(r+=1);for(var i=a.ProtocolConstants.msgSizes.secure.data.response.encrypted[a.LatticeSecureEncryptedRequestType.getAddresses];r<i;)if(o){var s=e.slice(r,r+65),c=s.every(function(e){return 0===e});c||t!==a.LatticeGetAddressesFlag.ed25519Pubkey?c||t!==a.LatticeGetAddressesFlag.bls12_381Pubkey?c||n.push(s):n.push(s.slice(0,48)):n.push(s.slice(0,32)),r+=65}else{var l=e.slice(r,r+a.ProtocolConstants.addrStrLen);r+=a.ProtocolConstants.addrStrLen;var u=l.indexOf(0);u>0&&n.push(l.slice(0,u).toString())}return n}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/getAddresses.js"}],[4204,{"../protocol":4211,"../shared/validators":4218,buffer:3792},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeGetKvRecordsResponse=r.encodeGetKvRecordsRequest=r.validateGetKvRequest=r.getKvRecords=void 0;var i=e("../protocol"),s=e("../shared/validators");r.getKvRecords=function(e){var t=e.client,a=e.type,c=e.n,l=e.start;return n(this,void 0,void 0,function(){var e,n,u,d,f,h,p,m,g,b,v,y,k;return o(this,function(o){switch(o.label){case 0:return e=(0,s.validateConnectedClient)(t),n=e.url,u=e.sharedSecret,d=e.ephemeralPub,f=e.fwConstants,h=(0,r.validateGetKvRequest)({type:a,n:c,start:l,fwConstants:f}),p=h.type,m=h.n,g=h.start,b=(0,r.encodeGetKvRecordsRequest)({type:p,n:m,start:g}),[4,(0,i.encryptedSecureRequest)({data:b,requestType:i.LatticeSecureEncryptedRequestType.getKvRecords,sharedSecret:u,ephemeralPub:d,url:n})];case 1:return v=o.sent(),y=v.decryptedData,k=v.newEphemeralPub,t.mutate({ephemeralPub:k}),[2,(0,r.decodeGetKvRecordsResponse)(y,f)]}})})};r.validateGetKvRequest=function(e){var t=e.fwConstants,r=e.n,n=e.type,o=e.start;if(!t.kvActionsAllowed)throw new Error("Unsupported. Please update firmware.");if(!r||r<1)throw new Error("You must request at least one record.");if(r>t.kvActionMaxNum)throw new Error("You may only request up to ".concat(t.kvActionMaxNum," records at once."));if(0!==n&&!n)throw new Error("You must specify a type.");if(0!==o&&!o)throw new Error("You must specify a type.");return{fwConstants:t,n:r,type:n,start:o}};r.encodeGetKvRecordsRequest=function(e){var r=e.type,n=e.n,o=e.start,i=t.alloc(9);return i.writeUInt32LE(r,0),i.writeUInt8(n,4),i.writeUInt32LE(o,5),i};r.decodeGetKvRecordsResponse=function(e,t){var r=0,n=e.readUInt32BE(r);r+=4;var o=parseInt(e.slice(r,r+1).toString("hex"),16);if(r+=1,o>t.kvActionMaxNum)throw new Error("Too many records fetched. Firmware error.");for(var i=[],s=0;s<o;s++){var a={};a.id=e.readUInt32BE(r),r+=4,a.type=e.readUInt32BE(r),r+=4,a.caseSensitive=1===parseInt(e.slice(r,r+1).toString("hex"),16),r+=1;var c=parseInt(e.slice(r,r+1).toString("hex"),16);r+=1,a.key=e.slice(r,r+c-1).toString(),r+=t.kvKeyMaxStrSz+1;var l=parseInt(e.slice(r,r+1).toString("hex"),16);r+=1,a.val=e.slice(r,r+l-1).toString(),r+=t.kvValMaxStrSz+1,i.push(a)}return{records:i,total:n,fetched:o}}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/getKvRecords.js"}],[4205,{"./addKvRecords":4199,"./connect":4200,"./fetchActiveWallet":4201,"./fetchEncData":4202,"./getAddresses":4203,"./getKvRecords":4204,"./pair":4206,"./removeKvRecords":4207,"./sign":4208},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);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),o=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}),o(e("./addKvRecords"),r),o(e("./connect"),r),o(e("./fetchEncData"),r),o(e("./fetchActiveWallet"),r),o(e("./getAddresses"),r),o(e("./getKvRecords"),r),o(e("./pair"),r),o(e("./removeKvRecords"),r),o(e("./sign"),r)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/index.js"}],[4206,{"../protocol":4211,"../shared/utilities":4217,"../shared/validators":4218,"../util":4219,buffer:3792},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.encodePairRequest=r.pair=void 0;var i=e("../protocol"),s=e("../shared/utilities"),a=e("../shared/validators"),c=e("../util");r.pair=function(e){var t=e.client,s=e.pairingSecret;return n(this,void 0,void 0,function(){var e,n,c,l,u,d,f,h;return o(this,function(o){switch(o.label){case 0:return e=(0,a.validateConnectedClient)(t),n=e.url,c=e.sharedSecret,l=e.ephemeralPub,u=e.appName,d=e.key,f=(0,r.encodePairRequest)({pairingSecret:s,key:d,appName:u}),[4,(0,i.encryptedSecureRequest)({data:f,requestType:i.LatticeSecureEncryptedRequestType.finalizePairing,sharedSecret:c,ephemeralPub:l,url:n})];case 1:return h=o.sent().newEphemeralPub,t.mutate({ephemeralPub:h,isPaired:!0}),[4,t.fetchActiveWallet()];case 2:return o.sent(),[2,t.hasActiveWallet()]}})})};r.encodePairRequest=function(e){var r=e.key,n=e.pairingSecret,o=e.appName,i=(0,s.getPubKeyBytes)(r),a=t.alloc(25);n.length>0&&a.write(o);var l=(0,c.generateAppSecret)(i,a,t.from(n)),u=r.sign(l),d=(0,c.toPaddedDER)(u);return t.concat([a,d])}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/pair.js"}],[4207,{"../protocol":4211,"../shared/validators":4218,buffer:3792},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.encodeRemoveKvRecordsRequest=r.validateRemoveKvRequest=r.removeKvRecords=void 0;var i=e("../protocol"),s=e("../shared/validators");r.removeKvRecords=function(e){var t=e.client,a=e.type,c=e.ids;return n(this,void 0,void 0,function(){var e,n,l,u,d,f,h,p,m,g,b,v;return o(this,function(o){switch(o.label){case 0:return e=(0,s.validateConnectedClient)(t),n=e.url,l=e.sharedSecret,u=e.ephemeralPub,d=e.fwConstants,f=(0,r.validateRemoveKvRequest)({fwConstants:d,type:a,ids:c}),h=f.type,p=f.ids,m=(0,r.encodeRemoveKvRecordsRequest)({type:h,ids:p,fwConstants:d}),[4,(0,i.encryptedSecureRequest)({data:m,requestType:i.LatticeSecureEncryptedRequestType.removeKvRecords,sharedSecret:l,ephemeralPub:u,url:n})];case 1:return g=o.sent(),b=g.decryptedData,v=g.newEphemeralPub,t.mutate({ephemeralPub:v}),[2,b]}})})};r.validateRemoveKvRequest=function(e){var t=e.fwConstants,r=e.type,n=e.ids;if(!t.kvActionsAllowed)throw new Error("Unsupported. Please update firmware.");if(!Array.isArray(n)||n.length<1)throw new Error("You must include one or more `ids` to removed.");if(n.length>t.kvRemoveMaxNum)throw new Error("Only up to ".concat(t.kvRemoveMaxNum," records may be removed at once."));if(0!==r&&!r)throw new Error("You must specify a type.");return{type:r,ids:n}};r.encodeRemoveKvRecordsRequest=function(e){var r=e.fwConstants,n=e.type,o=e.ids,i=t.alloc(5+4*r.kvRemoveMaxNum);i.writeUInt32LE(n,0),i.writeUInt8(o.length,4);for(var s=0;s<o.length;s++){var a=parseInt(o[s]);i.writeUInt32LE(a,5+4*s)}return i}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/removeKvRecords.js"}],[4208,{"../bitcoin":4193,"../constants":4197,"../ethereum":4198,"../genericSigning":4209,"../protocol":4211,"../shared/functions":4215,"../shared/validators":4218,"../util":4219,buffer:3792,"hash.js":4314},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeSignResponse=r.encodeSignRequest=r.sign=void 0;var s=e("hash.js"),a=i(e("../bitcoin")),c=e("../constants"),l=i(e("../ethereum")),u=e("../genericSigning"),d=e("../protocol"),f=e("../shared/functions"),h=e("../shared/validators"),p=e("../util");r.sign=function(e){var t=e.client,i=e.data,s=e.currency,a=e.cachedData,c=e.nextCode;return n(this,void 0,void 0,function(){var e,n,l,u,p,m,g,b,v,y,k,w,E,T,C;return o(this,function(o){switch(o.label){case 0:return e=(0,h.validateConnectedClient)(t),n=e.url,l=e.sharedSecret,u=e.ephemeralPub,p=e.fwConstants,m=(0,h.validateWallet)(t.getActiveWallet()),g=(0,f.buildTransaction)({data:i,currency:s,fwConstants:p}),b=g.requestData,v=g.isGeneric,y=(0,r.encodeSignRequest)({fwConstants:p,wallet:m,requestData:b,cachedData:a,nextCode:c}),k=y.payload,w=y.hasExtraPayloads,[4,(0,d.encryptedSecureRequest)({data:k,requestType:d.LatticeSecureEncryptedRequestType.sign,sharedSecret:l,ephemeralPub:u,url:n})];case 1:return E=o.sent(),T=E.decryptedData,C=E.newEphemeralPub,t.mutate({ephemeralPub:C}),w?[2,t.sign({data:i,currency:s,cachedData:b,nextCode:T.slice(0,8)})]:[2,(0,r.decodeSignResponse)({data:T,request:b,isGeneric:v,currency:s})]}})})};r.encodeSignRequest=function(e){var r,n,o,i,s,a=e.fwConstants,c=e.wallet,l=e.requestData,u=e.cachedData,f=e.nextCode;u&&f?(l=u,i=t.concat([f,l.extraDataPayloads.shift()]),s=d.LatticeSignSchema.extraData):(i=l.payload,s=l.schema);var h=t.alloc(2+a.reqMaxDataSz),p=0,m=l.extraDataPayloads&&Number(l.extraDataPayloads.length>0);return h.writeUInt8(m,p),p+=1,h.writeUInt8(s,p),p+=1,null===(r=c.uid)||void 0===r||r.copy(h,p),p+=null!==(o=null===(n=c.uid)||void 0===n?void 0:n.length)&&void 0!==o?o:0,i.copy(h,p),{payload:h,hasExtraPayloads:m}};r.decodeSignResponse=function(e){var r,n=e.data,o=e.request,i=e.isGeneric,d=e.currency,f=0;if(d===c.CURRENCIES.BTC){var h=o,m=a.default.getAddressFormat(h.origData.changePath),g=n.slice(f,f+20);f+=20;for(var b=a.default.getBitcoinAddress(g,m),v=[],y=[],k=0;f<n.length&&48===n[f];){var w=f,E=f+2+n[f+1];y.push(n.slice(w,E)),f+=74;var T=33*k+740,C=33*(k+1)+740;v.push(n.slice(T,C)),k+=1}var P={inputs:[],outputs:[]};P.outputs.push({value:h.origData.value,recipient:h.origData.recipient}),(null===(r=h.changeData)||void 0===r?void 0:r.value)&&h.changeData.value>0&&P.outputs.push({value:h.changeData.value,recipient:b});for(var _=0;_<y.length;_++)P.inputs.push({hash:h.origData.prevOuts[_].txHash,index:h.origData.prevOuts[_].index,sig:y[_],pubkey:v[_],signerPath:h.origData.prevOuts[_].signerPath});var S=a.default.serializeTx(P),A=S,I=t.from((0,s.sha256)().update(t.from(A,"hex")).digest("hex"),"hex");return{tx:S,txHash:(0,s.sha256)().update(I).digest("hex"),changeRecipient:b,sigs:y}}if(d!==c.CURRENCIES.ETH||i){if(d===c.CURRENCIES.ETH_MSG){O=(0,p.parseDER)(n.slice(f,f+2+n[f+1]));f+=74;var x=n.slice(f,f+20),j=l.default.validateEthereumMsgResponse({signer:x,sig:O},o);return{sig:{v:j.v,r:j.r.toString("hex"),s:j.s.toString("hex")},signer:x}}return(0,u.parseGenericSigningResponse)(n,f,o)}var O=(0,p.parseDER)(n.slice(f,f+2+n[f+1]));f+=74;var N=n.slice(f,f+20),B=l.default.buildEthRawTx(o,O,N),R=B.rawTx,D=B.sigWithV;return{tx:"0x".concat(R),txHash:"0x".concat(l.default.hashTransaction(R)),sig:{v:D.v,r:D.r.toString("hex"),s:D.s.toString("hex")},signer:N}}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/sign.js"}],[4209,{"./constants":4197,"./index":4210,"./protocol":4211,"./util":4219,buffer:3792,"hash.js/lib/hash/sha":4318,"js-sha3":4383},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.getEncodedPayload=r.parseGenericSigningResponse=r.buildGenericSigningMsgRequest=void 0;var n=e("hash.js/lib/hash/sha"),o=e("js-sha3"),i=e("./constants"),s=e("./index"),a=e("./protocol"),c=e("./util");r.buildGenericSigningMsgRequest=function(e){var l=e.signerPath,u=e.curveType,d=e.hashType,f=e.encodingType,h=void 0===f?null:f,p=e.decoder,m=void 0===p?null:p,g=e.omitPubkey,b=void 0!==g&&g,v=e.fwConstants,y=e.blsDst,k=void 0===y?s.Constants.SIGNING.BLS_DST.BLS_DST_NUL:y,w=v.extraDataFrameSz,E=v.extraDataMaxFrames,T=v.prehashAllowed,C=v.genericSigning,P=v.varAddrPathSzAllowed,_=C.curveTypes,S=C.encodingTypes,A=C.hashTypes,I=C.baseDataSz,x=C.baseReqSz,j=C.calldataDecoding,O=(0,r.getEncodedPayload)(e.payload,h,S),N=O.encoding,B=O.payloadBuf,R=B,D=B.length,L=I+E*w;if(!D)throw new Error("Payload could not be handled.");if(!(C&&w&&E&&T))throw new Error("Unsupported. Please update your Lattice firmware.");if(!(0,c.existsIn)(u,_))throw new Error("Unsupported curve type.");if(!(0,c.existsIn)(d,A))throw new Error("Unsupported hash type.");var M=m&&j&&m.length<=j.maxSz,U=M&&B.length+m.length<=L;if(M&&U){var H=t.alloc(8+m.length);H.writeUInt32LE(j.reserved,0),H.writeUInt32LE(m.length,4),t.from(m).copy(H,8),B=t.concat([B,H])}if(u===_.ED25519){if(d!==A.NONE)throw new Error("Signing on ed25519 requires unhashed message");l.forEach(function(e){if(e<i.HARDENED_OFFSET)throw new Error("Signing on ed25519 requires all signer path indices be hardened.")})}else if(u===_.BLS12_381_G2){var G=t.alloc(4);G.writeUInt32LE(k),B=t.concat([G,B]),D+=G.length}var F=t.alloc(x),$=0;F.writeUInt32LE(N,$),$+=4,F.writeUInt8(d,$),$+=1,F.writeUInt8(u,$),$+=1;var q=(0,c.buildSignerPathBuf)(l,P);q.copy(F,$),$+=q.length,F.writeUInt8(b?1:0,$),$+=1;var K=[],W=null,V=!1;if(B.length>I)if(T&&B.length>L){F.writeUInt16LE(B.length,$),$+=2,V=!0;var z=B.slice(0,D);if(d===A.NONE)throw new Error("Message too large to send and could not be prehashed (hashType=NONE).");if(d===A.KECCAK256)W=t.from((0,o.keccak256)(z),"hex");else{if(d!==A.SHA256)throw new Error("Unsupported hash type.");W=t.from((0,n.sha256)().update(z).digest("hex"),"hex")}}else{(0,c.splitFrames)(B.slice(I),w).forEach(function(e){var r=t.alloc(4);r.writeUInt32LE(e.length,0),K.push(t.concat([r,e]))})}return V||(F.writeUInt16LE(D,$),$+=2),(W||B).copy(F,$),{payload:F,extraDataPayloads:K,schema:a.LatticeSignSchema.generic,curveType:u,encodingType:h,hashType:d,omitPubkey:b,origPayloadBuf:R}};r.parseGenericSigningResponse=function(e,r,n){var o={pubkey:null,sig:null};if(n.curveType===s.Constants.SIGNING.CURVES.SECP256K1){if(n.omitPubkey)r+=65;else{var i=e.readUInt8(r);if(r+=1,2===i||3===i)o.pubkey=t.alloc(33),o.pubkey.writeUInt8(i,0),e.slice(r,r+32).copy(o.pubkey,1);else{if(4!==i)throw new Error("Bad compression byte in signing response.");o.pubkey=t.alloc(65),o.pubkey.writeUInt8(i,0),e.slice(r).copy(o.pubkey,1)}r+=64}if(o.sig=(0,c.parseDER)(e.slice(r,r+2+e[r+1])),o.sig.r=(0,c.fixLen)(o.sig.r,32),o.sig.s=(0,c.fixLen)(o.sig.s,32),n.encodingType===s.Constants.SIGNING.ENCODINGS.EVM){var a=(0,c.getV)(n.origPayloadBuf,o);o.sig.v=a.toArrayLike(t)}}else if(n.curveType===s.Constants.SIGNING.CURVES.ED25519)n.omitPubkey||(o.pubkey=t.alloc(32),e.slice(r,r+32).copy(o.pubkey)),r+=32,o.sig={r:e.slice(r,r+32),s:e.slice(r+32,r+64)};else{if(n.curveType!==s.Constants.SIGNING.CURVES.BLS12_381_G2)throw new Error("Unsupported curve.");n.omitPubkey||(o.pubkey=t.alloc(48),e.slice(r,r+48).copy(o.pubkey)),r+=48,o.sig=t.alloc(96),e.slice(r,r+96).copy(o.sig)}return o};r.getEncodedPayload=function(e,r,n){if(r||(r=s.Constants.SIGNING.ENCODINGS.NONE),!(0,c.existsIn)(r,n))throw new Error("Encoding not supported by Lattice firmware. You may want to update.");if(!e)throw new Error("No payload included");return{payloadBuf:"string"==typeof e&&"0x"===e.slice(0,2)?t.from(e.slice(2),"hex"):t.from(e),encoding:r}}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/genericSigning.js"}],[421,{"@metamask/utils":2831,lodash:4554},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=i,t.data=function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.hasProperty)(e.NetworkController,"providerConfig")&&(0,n.isObject)(e.NetworkController.providerConfig)){const{networkConfigurations:t,providerConfig:r}=e.NetworkController;if(!(0,n.isObject)(t))return e;if(r.id)return e;let o;for(const i of Object.keys(t)){const s=t[i];if(!(0,n.isObject)(s))return e;if(s.rpcUrl===r.rpcUrl){o=s.id;break}}return o?(e.NetworkController.providerConfig={...r,id:o},{...e,NetworkController:e.NetworkController}):e}var t,r;if((0,n.isObject)(e.NetworkController)){if(!(0,n.isObject)(e.NetworkController.providerConfig)){var o,i;null===(o=global.sentry)||void 0===o||null===(i=o.captureException)||void 0===i||i.call(o,new Error("typeof state.NetworkController.providerConfig is "+typeof e.NetworkController.providerConfig))}}else null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("typeof state.NetworkController is "+typeof e.NetworkController));return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),o=e("lodash");const i=r.version=89}}},{package:"$root$",file:"app/scripts/migrations/089.ts"}],[4210,{"./api":4189,"./calldata/index":4195,"./client":4196,"./constants":4197,"./util":4219},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);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),o=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.Utils=r.Constants=r.Client=r.Calldata=void 0;var i=e("./calldata/index");Object.defineProperty(r,"Calldata",{enumerable:!0,get:function(){return i.CALLDATA}});var s=e("./client");Object.defineProperty(r,"Client",{enumerable:!0,get:function(){return s.Client}});var a=e("./constants");Object.defineProperty(r,"Constants",{enumerable:!0,get:function(){return a.EXTERNAL}});var c=e("./util");Object.defineProperty(r,"Utils",{enumerable:!0,get:function(){return c.EXTERNAL}}),o(e("./api"),r)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/index.js"}],[4211,{"./latticeConstants":4212,"./secureMessages":4213},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);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),o=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}),o(e("./latticeConstants"),r),o(e("./secureMessages"),r)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/protocol/index.js"}],[4212,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o,i,s,a;Object.defineProperty(r,"__esModule",{value:!0}),r.ProtocolConstants=r.LatticeEncDataSchema=r.LatticeSignBlsDst=r.LatticeSignEncoding=r.LatticeSignCurve=r.LatticeSignHash=r.LatticeSignSchema=r.LatticeGetAddressesFlag=r.LatticeSecureEncryptedRequestType=r.LatticeMsgType=r.LatticeProtocolVersion=r.LatticeSecureMsgType=r.LatticeResponseCode=void 0,function(e){e[e.success=0]="success",e[e.invalidMsg=128]="invalidMsg",e[e.unsupportedVersion=129]="unsupportedVersion",e[e.deviceBusy=130]="deviceBusy",e[e.userTimeout=131]="userTimeout",e[e.userDeclined=132]="userDeclined",e[e.pairFailed=133]="pairFailed",e[e.pairDisabled=134]="pairDisabled",e[e.permissionDisabled=135]="permissionDisabled",e[e.internalError=136]="internalError",e[e.gceTimeout=137]="gceTimeout",e[e.wrongWallet=138]="wrongWallet",e[e.deviceLocked=139]="deviceLocked",e[e.disabled=140]="disabled",e[e.already=141]="already",e[e.invalidEphemId=142]="invalidEphemId"}(s=r.LatticeResponseCode||(r.LatticeResponseCode={})),function(e){e[e.connect=1]="connect",e[e.encrypted=2]="encrypted"}(r.LatticeSecureMsgType||(r.LatticeSecureMsgType={})),function(e){e[e.v1=1]="v1"}(r.LatticeProtocolVersion||(r.LatticeProtocolVersion={})),function(e){e[e.response=0]="response",e[e.secure=2]="secure"}(r.LatticeMsgType||(r.LatticeMsgType={})),function(e){e[e.finalizePairing=0]="finalizePairing",e[e.getAddresses=1]="getAddresses",e[e.sign=3]="sign",e[e.getWallets=4]="getWallets",e[e.getKvRecords=7]="getKvRecords",e[e.addKvRecords=8]="addKvRecords",e[e.removeKvRecords=9]="removeKvRecords",e[e.fetchEncryptedData=12]="fetchEncryptedData",e[e.test=13]="test"}(a=r.LatticeSecureEncryptedRequestType||(r.LatticeSecureEncryptedRequestType={})),function(e){e[e.none=0]="none",e[e.secp256k1Pubkey=3]="secp256k1Pubkey",e[e.ed25519Pubkey=4]="ed25519Pubkey",e[e.bls12_381Pubkey=5]="bls12_381Pubkey"}(r.LatticeGetAddressesFlag||(r.LatticeGetAddressesFlag={})),function(e){e[e.bitcoin=0]="bitcoin",e[e.ethereum=1]="ethereum",e[e.ethereumMsg=3]="ethereumMsg",e[e.extraData=4]="extraData",e[e.generic=5]="generic"}(r.LatticeSignSchema||(r.LatticeSignSchema={})),function(e){e[e.none=0]="none",e[e.keccak256=1]="keccak256",e[e.sha256=2]="sha256"}(r.LatticeSignHash||(r.LatticeSignHash={})),function(e){e[e.secp256k1=0]="secp256k1",e[e.ed25519=1]="ed25519",e[e.bls12_381=2]="bls12_381"}(r.LatticeSignCurve||(r.LatticeSignCurve={})),function(e){e[e.none=1]="none",e[e.solana=2]="solana",e[e.evm=4]="evm",e[e.eth_deposit=5]="eth_deposit"}(r.LatticeSignEncoding||(r.LatticeSignEncoding={})),function(e){e[e.NUL=1]="NUL",e[e.POP=2]="POP"}(r.LatticeSignBlsDst||(r.LatticeSignBlsDst={})),function(e){e[e.eip2335=0]="eip2335"}(r.LatticeEncDataSchema||(r.LatticeEncDataSchema={})),r.ProtocolConstants={aesIv:[109,121,115,101,99,114,101,116,112,97,115,115,119,111,114,100],addrStrLen:129,pairingStatus:{notPaired:0,paired:1},responseMsg:(n={},n[s.success]="",n[s.invalidMsg]="Invalid Request",n[s.unsupportedVersion]="Unsupported Version",n[s.deviceBusy]="Device Busy",n[s.userTimeout]="Timeout waiting for user",n[s.userDeclined]="Request declined by user",n[s.pairFailed]="Pairing failed",n[s.pairDisabled]="Pairing is currently disabled",n[s.permissionDisabled]="Automated signing is currently disabled",n[s.internalError]="Device Error",n[s.gceTimeout]="Device Timeout",n[s.wrongWallet]="Active wallet does not match request",n[s.deviceLocked]="Device Locked",n[s.disabled]="Feature Disabled",n[s.already]="Record already exists on device",n[s.invalidEphemId]="Request failed - needs resync",n),msgSizes:{header:8,checksum:4,secure:{payload:{request:{connect:66,encrypted:1733},response:{connect:215,encrypted:3457}},data:{request:{connect:65,encrypted:(o={encryptedData:1728},o[a.finalizePairing]=99,o[a.getAddresses]=54,o[a.sign]=1680,o[a.getWallets]=0,o[a.getKvRecords]=9,o[a.addKvRecords]=1391,o[a.removeKvRecords]=405,o[a.fetchEncryptedData]=1025,o[a.test]=506,o)},response:{encrypted:(i={encryptedData:1728},i[a.finalizePairing]=0,i[a.getAddresses]=1290,i[a.sign]=1090,i[a.getWallets]=142,i[a.getKvRecords]=1395,i[a.addKvRecords]=0,i[a.removeKvRecords]=0,i[a.fetchEncryptedData]=1608,i[a.test]=1646,i)}}}}}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/protocol/latticeConstants.js"}],[4213,{"../shared/functions":4215,"../shared/validators":4218,"../util":4219,"./latticeConstants":4212,buffer:3792},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.encryptedSecureRequest=r.connectSecureRequest=void 0;var i=e("./latticeConstants"),s=e("../util"),a=e("../shared/functions"),c=e("../shared/validators"),l=i.ProtocolConstants.msgSizes,u=l.secure;function d(e,r,n){if(4!==e.length)throw new Error("msgId must be four bytes");if(r!==i.LatticeSecureMsgType.connect&&r!==i.LatticeSecureMsgType.encrypted)throw new Error("Invalid Lattice secure request type");var o,a=r===i.LatticeSecureMsgType.connect&&n.length===u.payload.request.connect-1,c=r===i.LatticeSecureMsgType.encrypted&&n.length===u.payload.request.encrypted-1,d=l.header+l.checksum,f={requestType:r,data:n};if(a)o=u.payload.request.connect;else{if(!c)throw new Error("Invalid Lattice secure request payload size");o=u.payload.request.encrypted}d+=o;var h={header:{version:i.LatticeProtocolVersion.v1,type:i.LatticeMsgType.secure,id:e,len:o},payload:f},p=t.alloc(d),m=0;if(p.writeUInt8(h.header.version,m),m+=1,p.writeUInt8(h.header.type,m),m+=1,h.header.id.copy(p,m),m+=h.header.id.length,p.writeUInt16BE(h.header.len,m),m+=2,p.writeUInt8(h.payload.requestType,m),m+=1,h.payload.data.copy(p,m),m+=h.payload.data.length,p.writeUInt32BE((0,s.checksum)(p.slice(0,m)),m),(m+=4)!==d)throw new Error("Failed to build request message");return p}function f(e){var t=e.encPayloadData,r=e.requestType,n=e.sharedSecret,o=(0,s.aes256_decrypt)(t,n),i=65+u.data.response.encrypted[r],a={ephemeralPub:o.slice(0,65),data:o.slice(65,i),checksum:o.readUInt32BE(i)},c=(0,s.checksum)(o.slice(0,i));if(a.checksum!==c)throw new Error("Checksum mismatch in decrypted Lattice data");var l=u.data.response.encrypted[r];if(a.data.length!==l)throw new Error("Incorrect response data returned from Lattice");var d=(0,s.getP256KeyPairFromPub)(a.ephemeralPub);return{decryptedData:a.data,newEphemeralPub:d}}r.connectSecureRequest=function(e){var r=e.url,c=e.pubkey;return n(this,void 0,void 0,function(){var e,n,l,f;return o(this,function(o){switch(o.label){case 0:return e=function(e){var r=t.alloc(u.data.request.connect);return e.pubkey.copy(r,0),r}({pubkey:c}),n=(0,s.randomBytes)(4),l=d(n,i.LatticeSecureMsgType.connect,e),[4,(0,a.request)({url:r,payload:l})];case 1:if((f=o.sent()).length!==u.payload.response.connect-1)throw new Error("Wrong Lattice response message size.");return[2,f]}})})},r.encryptedSecureRequest=function(e){var r=e.data,l=e.requestType,h=e.sharedSecret,p=e.ephemeralPub,m=e.url;return n(this,void 0,void 0,function(){var e,n,g,b;return o(this,function(o){switch(o.label){case 0:return e=(0,s.randomBytes)(4),n=function(e){var r=e.data,n=e.requestType,o=e.ephemeralPub,i=e.sharedSecret;if(r.length>u.data.request.encrypted.encryptedData)throw new Error("Encrypted request data too large");(0,c.validateEphemeralPub)(o);var l=u.data.request.encrypted[n];if(r.length!==l)throw new Error("Invalid request datasize (wanted ".concat(l,", got ").concat(r.length,")"));var d=t.alloc(1+l);d[0]=n,r.copy(d,1);var f=(0,s.checksum)(d),h=t.alloc(u.data.request.encrypted.encryptedData);d.copy(h,0),h.writeUInt32LE(f,d.length);var p=(0,s.aes256_encrypt)(h,i),m=(0,a.getEphemeralId)(i),g=t.alloc(u.payload.request.encrypted-1);return g.writeUInt32LE(m),p.copy(g,4),g}({data:r,requestType:l,ephemeralPub:p,sharedSecret:h}),g=d(e,i.LatticeSecureMsgType.encrypted,n),[4,(0,a.request)({url:m,payload:g})];case 1:if((b=o.sent()).length!==u.payload.response.encrypted-1)throw new Error("Wrong Lattice response message size.");return[2,f({encPayloadData:b.slice(0,u.data.response.encrypted.encryptedData),requestType:l,sharedSecret:h})]}})})}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/protocol/secureMessages.js"}],[4214,{"../protocol":4211},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=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.LatticeResponseError=void 0;var i=e("../protocol"),s=function(e){function t(t,r){var n=this,o=function(e){var t=e.responseCode,r=e.errorMessage,n=[];return t&&n.push("".concat(i.ProtocolConstants.responseMsg[t])),r&&(n.push("Error Message: "),n.push(r)),n.join("\n")}({responseCode:t,errorMessage:r});return(n=e.call(this,o)||this).responseCode=t,n.errorMessage=r,n.name="LatticeResponseError",n.responseCode=t,n.errorMessage=r,n}return o(t,e),t}(Error);r.LatticeResponseError=s}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/shared/errors.js"}],[4215,{"../bitcoin":4193,"../constants":4197,"../ethereum":4198,"../genericSigning":4209,"../util":4219,"./errors":4214,"./predicates":4216,"./validators":4218,buffer:3792,"hash.js/lib/hash/sha":4318},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.getEphemeralId=r.retryWrapper=r.buildRetryWrapper=r.request=r.buildTransaction=void 0;var a=e("hash.js/lib/hash/sha"),c=s(e("../bitcoin")),l=e("../constants"),u=s(e("../ethereum")),d=e("../genericSigning"),f=e("../util"),h=e("./errors"),p=e("./predicates"),m=e("./validators");r.buildTransaction=function(e){var t=e.data,r=e.currency,o=e.fwConstants;if("ETH"===r&&(0,p.shouldUseEVMLegacyConverter)(o)){console.log("Using the legacy ETH signing path. This will soon be deprecated. Please switch to general signing request.");var i=void 0;try{i=u.default.ethConvertLegacyToGenericReq(t)}catch(e){throw new Error("Could not convert legacy request. Please switch to a general signing request. See gridplus-sdk docs for more information.")}return t={fwConstants:o,encodingType:l.EXTERNAL.SIGNING.ENCODINGS.EVM,curveType:l.EXTERNAL.SIGNING.CURVES.SECP256K1,hashType:l.EXTERNAL.SIGNING.HASHES.KECCAK256,signerPath:t.signerPath,payload:i},{requestData:(0,d.buildGenericSigningMsgRequest)(n(n({},t),{fwConstants:o})),isGeneric:!0}}return"ETH"===r?{requestData:u.default.buildEthereumTxRequest(n(n({},t),{fwConstants:o})),isGeneric:!1}:"ETH_MSG"===r?{requestData:u.default.buildEthereumMsgRequest(n(n({},t),{fwConstants:o})),isGeneric:!1}:"BTC"===r?{requestData:c.default.buildBitcoinTxRequest(n(n({},t),{fwConstants:o})),isGeneric:!1}:{requestData:(0,d.buildGenericSigningMsgRequest)(n(n({},t),{fwConstants:o})),isGeneric:!0}};r.request=function(e){var t=e.url,r=e.payload,n=e.timeout,s=void 0===n?6e4:n;return o(void 0,void 0,void 0,function(){return i(this,function(e){return[2,(0,f.fetchWithTimeout)(t,{method:"POST",body:JSON.stringify({data:r}),headers:{"Content-Type":"application/json"},timeout:s}).catch(m.validateRequestError).then(function(e){return e.json()}).then(function(e){if(!e||!e.message)throw new Error("Invalid response");if(200!==e.status)throw new Error("Error code ".concat(e.status,": ").concat(e.message));var t=(0,f.parseLattice1Response)(e.message),r=t.data,n=t.errorMessage,o=t.responseCode;if(n||o)throw new h.LatticeResponseError(o,n);return r})]})})};r.buildRetryWrapper=function(e,t){return function(o,i){return(0,r.retryWrapper)({fn:o,params:n(n({},i),{client:e}),retries:t,client:e})}};r.retryWrapper=function(e){var t=e.fn,s=e.params,a=e.retries,c=e.client;return o(void 0,void 0,void 0,function(){return i(this,function(e){return[2,t(n({},s)).catch(function(e){return o(void 0,void 0,void 0,function(){var n,o;return i(this,function(i){switch(i.label){case 0:return n=e.errorMessage,o=e.responseCode,(n||o)&&a?(0,p.isDeviceBusy)(o)?[4,(l=3e3,new Promise(function(e){return setTimeout(e,l)}))]:[3,2]:[3,8];case 1:case 3:case 5:return i.sent(),[3,7];case 2:return!(0,p.isWrongWallet)(o)||c.skipRetryOnWrongWallet?[3,4]:[4,c.fetchActiveWallet()];case 4:return(0,p.isInvalidEphemeralId)(o)?[4,c.connect(c.deviceId)]:[3,6];case 6:case 8:throw e;case 7:return[2,(0,r.retryWrapper)({fn:t,params:s,retries:a-1,client:c})]}var l})})})]})})};r.getEphemeralId=function(e){var r=t.from((0,a.sha256)().update(e).digest("hex"),"hex");return parseInt(r.slice(0,4).toString("hex"),16)}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/shared/functions.js"}],[4216,{"../protocol":4211,"./utilities":4217},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shouldUseEVMLegacyConverter=r.doesFetchWalletsOnLoad=r.isInvalidEphemeralId=r.isWrongWallet=r.isDeviceBusy=void 0;var n=e("../protocol"),o=e("./utilities");r.isDeviceBusy=function(e){return e===n.LatticeResponseCode.deviceBusy||e===n.LatticeResponseCode.gceTimeout};r.isWrongWallet=function(e){return e===n.LatticeResponseCode.wrongWallet};r.isInvalidEphemeralId=function(e){return e===n.LatticeResponseCode.invalidEphemId};r.doesFetchWalletsOnLoad=function(e){return(0,o.isFWSupported)(e,{major:0,minor:14,fix:1})};r.shouldUseEVMLegacyConverter=function(e){return e.genericSigning&&e.genericSigning.encodingTypes&&e.genericSigning.encodingTypes.EVM}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/shared/predicates.js"}],[4217,{"../constants":4197,buffer:3792},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.getPathStr=r.isFWSupported=r.parseWallets=r.getSharedSecret=r.getPubKeyBytes=void 0;var n=e("../constants");r.getPubKeyBytes=function(e,r){void 0===r&&(r=!1);var n=e.getPublic().encode("hex"),o=t.from(n,"hex");if(!0===r){var i=o.slice(1,33).reverse(),s=o.slice(33,65).reverse();return t.concat([o[0],i,s])}return o};r.getSharedSecret=function(e,r){return t.from(e.derive(r.getPublic()).toArray("be",32))};r.parseWallets=function(e){var t=0,r={internal:{uid:undefined,capabilities:undefined,name:undefined,external:!1},external:{uid:undefined,capabilities:undefined,name:undefined,external:!0}};return r.internal.uid=e.slice(t,t+32),t+=71,r.external.uid=e.slice(t,t+32),r};r.isFWSupported=function(e,t){var r=e.major,n=e.minor,o=e.fix,i=t.major,s=t.minor,a=t.fix;return r>i||r>=i&&n>s||r>=i&&n>=s&&o>=a};r.getPathStr=function(e){var t="m";return e.forEach(function(e){e>=n.HARDENED_OFFSET?t+="/".concat(e-n.HARDENED_OFFSET,"'"):t+="/".concat(e)}),t}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/shared/utilities.js"}],[4218,{"../constants":4197,"../util":4219,"lodash/isEmpty":4540},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.isValid4ByteResponse=r.isValidBlockExplorerResponse=r.validateKvRecord=r.validateKvRecords=r.validateActiveWallets=r.validateKey=r.validateSharedSecret=r.validateEphemeralPub=r.validateConnectedClient=r.validateWallet=r.validateRequestError=r.validateFwVersion=r.validateFwConstants=r.validateBaseUrl=r.validateUrl=r.validateAppName=r.validateDeviceId=r.validateStartPath=r.validateNAddresses=r.validateIsUInt4=void 0;var o=e("../constants"),i=e("../util"),s=n(e("lodash/isEmpty"));r.validateIsUInt4=function(e){if("number"!=typeof e||!(0,i.isUInt4)(e))throw new Error("Must be an integer between 0 and 15 inclusive");return e};r.validateNAddresses=function(e){if(!e)throw new Error("The number of addresses is required.");if(e>o.MAX_ADDR)throw new Error("You may only request ".concat(o.MAX_ADDR," addresses at once."));return e};r.validateStartPath=function(e){if(!e)throw new Error("Start path is required");if(e.length<1||e.length>5)throw new Error("Path must include between 1 and 5 indices");return e};r.validateDeviceId=function(e){if(!e)throw new Error("No device ID has been stored. Please connect with your device ID first.");return e};r.validateAppName=function(e){if(!e)throw new Error("Name is required.");if(e.length<5||e.length>24)throw new Error("Invalid length for name provided. Must be 5-24 characters.");return e};r.validateUrl=function(e){if(!e)throw new Error("URL does not exist. Please reconnect.");try{new URL(e)}catch(e){throw new Error("Invalid URL provided. Please use a valid URL.")}return e};r.validateBaseUrl=function(e){if(!e)throw new Error("Base URL is required.");try{new URL(e)}catch(e){throw new Error("Invalid Base URL provided. Please use a valid URL.")}return e};r.validateFwConstants=function(e){if(!e)throw new Error("Firmware constants do not exist. Please reconnect.");return e};r.validateFwVersion=function(e){if(!e)throw new Error("Firmware version does not exist. Please reconnect.");if("number"!=typeof e.fix||"number"!=typeof e.minor||"number"!=typeof e.major)throw new Error("Firmware version improperly formatted. Please reconnect.");return e};r.validateRequestError=function(e){if("ECONNABORTED"===e.code&&"ETIME"===e.errno)throw new Error("Timeout waiting for device. Please ensure it is connected to the internet and try again in a minute.");throw new Error("Failed to make request to device:\n".concat(e.message))};r.validateWallet=function(e){if(!e||null===e)throw new Error("No active wallet.");return e};r.validateConnectedClient=function(e){return{appName:(0,r.validateAppName)(e.getAppName()),ephemeralPub:(0,r.validateEphemeralPub)(e.ephemeralPub),sharedSecret:(0,r.validateSharedSecret)(e.sharedSecret),url:(0,r.validateUrl)(e.url),fwConstants:(0,r.validateFwConstants)(e.getFwConstants()),fwVersion:(0,r.validateFwVersion)(e.getFwVersion()),key:(0,r.validateKey)(e.key)}};r.validateEphemeralPub=function(e){if(!e)throw new Error("`ephemeralPub` (ephemeral public key) is required. Please reconnect.");return e};r.validateSharedSecret=function(e){if(!e)throw new Error("Shared secret required. Please reconnect.");return e};r.validateKey=function(e){if(!e)throw new Error("Key is required. Please reconnect.");return e};r.validateActiveWallets=function(e){var t,r,n,i;if(!e||(null===(r=null===(t=null==e?void 0:e.internal)||void 0===t?void 0:t.uid)||void 0===r?void 0:r.equals(o.EMPTY_WALLET_UID))&&(null===(i=null===(n=null==e?void 0:e.external)||void 0===n?void 0:n.uid)||void 0===i?void 0:i.equals(o.EMPTY_WALLET_UID)))throw new Error("No active wallet.");return e};r.validateKvRecords=function(e,t){if(!t||!t.kvActionsAllowed)throw new Error("Unsupported. Please update firmware.");if("object"!=typeof e||Object.keys(e).length<1)throw new Error("One or more key-value mapping must be provided in `records` param.");if(Object.keys(e).length>t.kvActionMaxNum)throw new Error("Too many keys provided. Please only provide up to ".concat(t.kvActionMaxNum,"."));return e};r.validateKvRecord=function(e,t){var r=e.key,n=e.val;if("string"!=typeof r||String(r).length>t.kvKeyMaxStrSz)throw new Error("Key ".concat(r," too large. Must be <=").concat(t.kvKeyMaxStrSz," characters."));if("string"!=typeof n||String(n).length>t.kvValMaxStrSz)throw new Error("Value ".concat(n," too large. Must be <=").concat(t.kvValMaxStrSz," characters."));if(0===String(r).length||0===String(n).length)throw new Error("Keys and values must be >0 characters.");if(!o.ASCII_REGEX.test(r)||!o.ASCII_REGEX.test(n))throw new Error("Unicode characters are not supported.");return{key:r,val:n}};r.isValidBlockExplorerResponse=function(e){try{var t=JSON.parse(e.result);return!(0,s.default)(t)}catch(e){return!1}};r.isValid4ByteResponse=function(e){try{return!(0,s.default)(e.results)}catch(e){return!1}}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/shared/validators.js"}],[4219,{".":4210,"./constants":4197,"./protocol":4211,"./shared/validators":4218,"@ethereumjs/tx":630,"aes-js":3527,"bignumber.js":4291,"bn.js":3731,buffer:3792,"crc-32":3862,elliptic:3965,"hash.js/lib/hash/sha":4318,"js-sha3":4383,"lodash/inRange":4534,"lodash/isInteger":4543,rlp:4292,secp256k1:5242},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},s=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 __values?__values(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,o){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,o,(t=e[r](t)).done,t.value)})}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.EXTERNAL=r.getV=r.generateAppSecret=r.fetchCalldataDecoder=r.fetchWithTimeout=r.selectDefFrom4byteABI=r.isUInt4=r.randomBytes=r.existsIn=r.isAsciiStr=r.buildSignerPathBuf=r.getP256KeyPairFromPub=r.getP256KeyPair=r.parseDER=r.aes256_decrypt=r.aes256_encrypt=r.fixLen=r.ensureHexBuffer=r.splitFrames=r.isValidAssetPath=r.toPaddedDER=r.checksum=r.parseLattice1Response=void 0;var c,l=e("@ethereumjs/tx"),u=a(e("aes-js")),d=a(e("bignumber.js")),f=e("bn.js"),h=a(e("crc-32")),p=a(e("elliptic")),m=e("hash.js/lib/hash/sha"),g=e("js-sha3"),b=a(e("lodash/inRange")),v=a(e("lodash/isInteger")),y=e("rlp"),k=e("secp256k1"),w=e("."),E=e("./constants"),T=e("./protocol"),C=e("./shared/validators"),P=E.BIP_CONSTANTS.COINS,_=E.BIP_CONSTANTS.PURPOSES,S=p.default.ec;r.parseLattice1Response=function(e){var n={errorMessage:null,data:null},o=t.from(e,"hex"),i=0,s=o.readUInt8(i);if(i++,s!==E.VERSION_BYTE)return n.errorMessage="Incorrect protocol version. Please update your SDK",n;var a=o.readUInt8(i);if(i++,0!==a)return n.errorMessage="Incorrect response from Lattice1",n;o.readUInt32BE(i),i+=4;var c=o.readUInt16BE(i);i+=2;var l=o.slice(i,i+c);i+=c;var u=l.readUInt8(0);if(u!==T.LatticeResponseCode.success){var d=T.ProtocolConstants.responseMsg[u];return n.errorMessage="[Lattice] ".concat(d||"Unknown Error"),n.responseCode=u,n}return n.data=l.slice(1,l.length),o.readUInt32BE(i)!==(0,r.checksum)(o.slice(0,o.length-4))?(n.errorMessage="Invalid checksum from device response",n.data=null,n):n};r.checksum=function(e){return h.default.buf(e)>>>0};r.toPaddedDER=function(e){var r=t.alloc(74);return t.from(e.toDER()).copy(r),r};r.isValidAssetPath=function(e,t){var r=[_.ETH,_.BTC_LEGACY,_.BTC_WRAPPED_SEGWIT,_.BTC_SEGWIT],n=[P.ETH,P.BTC,P.BTC_TESTNET];return!((e[1]===P.BTC||e[1]===P.BTC_TESTNET)&&e[0]!==_.BTC_WRAPPED_SEGWIT&&!t.allowBtcLegacyAndSegwitAddrs)&&(r.indexOf(e[0])>=0&&(n.indexOf(e[1])>=0||[60,61,966,700,9006,9e3,1007,553,178,137,37310,108,40,889,1987,820,6060,1620,1313114,76,246529,246785,1001,227,916,464,2221,344,73799,246].indexOf(e[1]-E.HARDENED_OFFSET)>0))};r.splitFrames=function(e,t){for(var r=[],n=Math.ceil(e.length/t),o=0,i=0;i<n;i++)r.push(e.slice(o,o+t)),o+=t;return r};r.ensureHexBuffer=function(e,r){void 0===r&&(r=!0);try{if(null===e||0===e&&!0===r)return t.alloc(0);var n="number"==typeof e||function(e){var t=new d.default(e).toFixed().split(".").join(""),r=new String(e);return t.slice(0,8)===r.slice(0,8)}(e);return(e=n?"".concat(new d.default(e).toString(16)):"string"==typeof e&&"0x"===e.slice(0,2)?e.slice(2):e.toString("hex")).length%2>0&&(e="0".concat(e)),"00"!==e||n?t.from(e,"hex"):t.alloc(0)}catch(t){throw new Error("Cannot convert ".concat(e.toString()," to hex buffer (").concat(t.toString(),")"))}};r.fixLen=function(e,r){var n=t.alloc(r);return e.length<r?(e.copy(n,r-e.length),n):e.slice(-r)};r.aes256_encrypt=function(e,r){var n=t.from(T.ProtocolConstants.aesIv),o=new u.default.ModeOfOperation.cbc(r,n),i=e.length%16==0?e:u.default.padding.pkcs7.pad(e);return t.from(o.encrypt(i))};r.aes256_decrypt=function(e,r){var n=t.from(T.ProtocolConstants.aesIv),o=new u.default.ModeOfOperation.cbc(r,n);return t.from(o.decrypt(e))};r.parseDER=function(e){if(48!==e[0]||2!==e[2])throw new Error("Failed to decode DER signature");var t=3,r=e[t];t++;var n=e.slice(t,t+r);if(2!==e[t+=r])throw new Error("Failed to decode DER signature");var o=e[++t];return t++,{r:n,s:e.slice(t,t+o)}};r.getP256KeyPair=function(e){return c===undefined&&(c=new S("p256")),c.keyFromPrivate(e,"hex")};r.getP256KeyPairFromPub=function(e){return c===undefined&&(c=new S("p256")),c.keyFromPublic(e,"hex")};r.buildSignerPathBuf=function(e,r){var n=t.alloc(24),o=0;if(r&&e.length>5)throw new Error("Signer path must be <=5 indices.");if(!r&&5!==e.length)throw new Error("Your Lattice firmware only supports 5-index derivation paths. Please upgrade.");n.writeUInt32LE(e.length,o),o+=4;for(var i=0;i<5;i++)i<e.length?n.writeUInt32LE(e[i],o):n.writeUInt32LE(0,o),o+=4;return n};r.isAsciiStr=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)return!1;for(var r=t?[32,10]:[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(r.indexOf(o)<0&&(o<32||o>127))return!1}return!0};r.existsIn=function(e,t){return Object.keys(t).some(function(r){return t[r]===e})};r.randomBytes=function(e){for(var r=t.alloc(e),n=0;n<e;n++)r[n]=Math.round(255*Math.random());return r};function A(e){return o(this,void 0,void 0,function(){var t,r;return i(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,fetch(E.EXTERNAL_NETWORKS_BY_CHAIN_ID_URL).then(function(e){return e.json()})];case 1:return(t=n.sent())?[2,t[e]]:[2,undefined];case 2:return r=n.sent(),console.warn("Fetching external networks failed.\n",r),[3,3];case 3:return[2]}})})}function I(e,t){var r;if(e.length>1&&console.warn("WARNING: There are multiple results. Using the first one."),e.sort(function(e,t){return new Date(e.created_at).getTime()-new Date(t.created_at).getTime()}).find(function(e){try{return!!(r=w.Calldata.EVM.parsers.parseCanonicalName(t,e.text_signature))}catch(e){return!1}}),r)return r;throw new Error("Could not find definition for selector")}function x(e,t){return o(this,void 0,void 0,function(){var r,n,o,s,a,c,l;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,11,,12]),globalThis.caches&&globalThis.Request?[4,caches.open("gp-calldata")]:[3,9];case 1:return r=i.sent(),n=new Request(e,t),[4,r.match(n)];case 2:return(o=i.sent())?[2,o]:[3,3];case 3:return[4,fetch(n,t)];case 4:return s=i.sent(),a=s.clone(),[4,s.json()];case 5:return c=i.sent(),s.ok&&((0,C.isValidBlockExplorerResponse)(c)||(0,C.isValid4ByteResponse)(c))?[4,r.put(n,a)]:[3,7];case 6:return i.sent(),[2,r.match(n,t)];case 7:return[2,s];case 8:return[3,10];case 9:return[2,fetch(e,t)];case 10:return[3,12];case 11:throw l=i.sent(),console.error(l),l;case 12:return[2]}})})}function j(e,t){return o(this,void 0,void 0,function(){var r;return i(this,function(n){return r=function(e){var t=e.supportedChain,r=e.address,n=t.baseUrl,o=t.apiRoute;return"".concat(n,"/").concat(o,"&address=").concat(r)+""}({address:e,supportedChain:t}),[2,x(r).then(function(e){return e.json()}).then(function(e){if(e&&e.result)return JSON.parse(e.result);throw new Error("Server response was malformed")}).catch(function(){throw new Error("Fetching data from external network failed")})]})})}function O(e){return o(this,void 0,void 0,function(){var t;return i(this,function(r){switch(r.label){case 0:return t="https://www.4byte.directory/api/v1/signatures/?hex_signature=0x".concat(e),[4,fetch(t).then(function(e){return e.json()}).then(function(e){if(e&&e.results)return e.results;throw new Error("No results found")}).catch(function(e){throw new Error("Fetching data from 4byte failed: ".concat(e.message))})];case 1:return[2,r.sent()]}})})}function N(e){return t.from((0,y.encode)(e))}function B(e,r){var n,a,c,l;return o(this,void 0,void 0,function(){var o,u,d,f,h,p,m,g,b,v,y,k,E,T;return i(this,function(i){switch(i.label){case 0:return[4,R(o=w.Calldata.EVM.processors.getNestedCalldata(e,r))];case 1:u=i.sent(),i.label=2;case 2:i.trys.push([2,22,23,28]),d=s(u.entries()),i.label=3;case 3:return[4,d.next()];case 4:if((f=i.sent()).done)return[3,21];if(h=f.value[0],!Array.isArray(u[h])||"string"==typeof u[h][0])return[3,18];i.label=5;case 5:i.trys.push([5,11,12,17]),c=void 0,p=s(u[h].entries()),i.label=6;case 6:return[4,p.next()];case 7:return(m=i.sent()).done?[3,10]:(g=m.value[0],null===u[h][g]?[3,9]:(b=u[h],v=g,[4,B(u[h][g],t.from(o[h][g].slice(2),"hex"))]));case 8:b[v]=i.sent(),i.label=9;case 9:return[3,6];case 10:return[3,17];case 11:return y=i.sent(),c={error:y},[3,17];case 12:return i.trys.push([12,,15,16]),m&&!m.done&&(l=p.return)?[4,l.call(p)]:[3,14];case 13:i.sent(),i.label=14;case 14:return[3,16];case 15:if(c)throw c.error;return[7];case 16:return[7];case 17:return[3,20];case 18:return null===u[h]?[3,20]:(k=u,E=h,[4,B(u[h],t.from(o[h].slice(2),"hex"))]);case 19:k[E]=i.sent(),i.label=20;case 20:return[3,3];case 21:return[3,28];case 22:return T=i.sent(),n={error:T},[3,28];case 23:return i.trys.push([23,,26,27]),f&&!f.done&&(a=d.return)?[4,a.call(d)]:[3,25];case 24:i.sent(),i.label=25;case 25:return[3,27];case 26:if(n)throw n.error;return[7];case 27:return[7];case 28:return[2,w.Calldata.EVM.processors.replaceNestedDefs(e,u)]}})})}function R(e){var t,r,n,a,c,l;return o(this,void 0,void 0,function(){var o,u,d,f,h,p,m,g,b,v,y,k,w,E,T;return i(this,function(i){switch(i.label){case 0:o=[],i.label=1;case 1:i.trys.push([1,26,27,32]),t=s(e),i.label=2;case 2:return[4,t.next()];case 3:if((r=i.sent()).done)return[3,25];if(null===(u=r.value))return[3,23];if(!Array.isArray(u))return[3,19];d=[],f=!0,i.label=4;case 4:i.trys.push([4,12,13,18]),c=void 0,h=s(u),i.label=5;case 5:return[4,h.next()];case 6:if((p=i.sent()).done)return[3,11];m=p.value,i.label=7;case 7:return i.trys.push([7,9,,10]),[4,O(g=m.slice(2,10))];case 8:return b=i.sent(),v=I(b,g),d.push(v),[3,10];case 9:return i.sent(),f=!1,d.push(null),[3,10];case 10:return[3,5];case 11:return[3,18];case 12:return y=i.sent(),c={error:y},[3,18];case 13:return i.trys.push([13,,16,17]),p&&!p.done&&(l=h.return)?[4,l.call(h)]:[3,15];case 14:i.sent(),i.label=15;case 15:return[3,17];case 16:if(c)throw c.error;return[7];case 17:return[7];case 18:return f?o.push(d):o.push(null),[3,22];case 19:return i.trys.push([19,21,,22]),[4,O(k=u.slice(2,10))];case 20:return w=i.sent(),E=I(w,k),o.push(E),[3,22];case 21:return i.sent(),o.push(null),[3,22];case 22:return[3,24];case 23:o.push(null),i.label=24;case 24:return[3,2];case 25:return[3,32];case 26:return T=i.sent(),n={error:T},[3,32];case 27:return i.trys.push([27,,30,31]),r&&!r.done&&(a=t.return)?[4,a.call(t)]:[3,29];case 28:i.sent(),i.label=29;case 29:return[3,31];case 30:if(n)throw n.error;return[7];case 31:return[7];case 32:return[2,o]}})})}function D(e,r,n,s){return void 0===s&&(s=!0),o(this,void 0,void 0,function(){var o,a,c,l,u,d,f,h,p,m,g,b,v,y;return i(this,function(i){switch(i.label){case 0:if(i.trys.push([0,15,,16]),!e||e.length<2)throw new Error("Data is either undefined or less than two bytes");if(o="string"==typeof e&&"0x"===e.slice(0,2),(a=o?t.from(e.slice(2),"hex"):t.from(e,"hex")).length<4)throw new Error("Data must contain at least 4 bytes of data to define the selector");return c=t.from(a.slice(0,4)).toString("hex"),l=Number(n),(u=E.NETWORKS_BY_CHAIN_ID[l])?(f=u,[3,3]):[3,1];case 1:return[4,A(l)];case 2:f=i.sent(),i.label=3;case 3:d=f,i.label=4;case 4:return i.trys.push([4,10,,11]),d?[4,j(r,d)]:[3,8];case 5:return h=i.sent(),p=w.Calldata.EVM.parsers.parseSolidityJSONABI(c,h),m=p.def,s?[4,B(m,a)]:[3,7];case 6:m=i.sent(),i.label=7;case 7:return[2,{abi:h,def:N(m)}];case 8:throw new Error("Chain (id: ".concat(l,") is not supported"));case 9:return[3,11];case 10:return g=i.sent(),console.warn(g.message,"\n","Falling back to 4byte"),[3,11];case 11:return[4,O(c)];case 12:return b=i.sent(),v=I(b,c),s?[4,B(v,a)]:[3,14];case 13:v=i.sent(),i.label=14;case 14:return[2,{abi:b,def:N(v)}];case 15:return y=i.sent(),console.warn("Fetching calldata failed: ".concat(y.message)),[3,16];case 16:return[2,{def:null,abi:null}]}})})}r.isUInt4=function(e){return(0,v.default)(e)&&(0,b.default)(e,0,16)},r.selectDefFrom4byteABI=I,r.fetchWithTimeout=function(e,t){return o(this,void 0,void 0,function(){var r,o,s,a,c;return i(this,function(i){switch(i.label){case 0:return r=t.timeout,o=void 0===r?8e3:r,s=new AbortController,a=setTimeout(function(){return s.abort()},o),[4,fetch(e,n(n({},t),{signal:s.signal}))];case 1:return c=i.sent(),clearTimeout(a),[2,c]}})})},r.fetchCalldataDecoder=D;r.generateAppSecret=function(e,r,n){var o="string"==typeof e?t.from(e):e,i="string"==typeof r?t.from(r):r,s="string"==typeof n?t.from(n):n,a=t.concat([o,i,s]);return t.from((0,m.sha256)().update(a).digest("hex"),"hex")};r.getV=function(e,r){var n,o,i;if(t.isBuffer(e)){o=t.from((0,g.keccak256)(e),"hex");try{var s=(0,y.decode)(e);n=6===s.length?null:new f.BN(s[6]),i=0}catch(t){try{i=l.TransactionFactory.fromSerializedData(e)._type}catch(e){throw new Error("Could not recover V. Bad transaction data.")}}}else o=(i=e._type)?e.getMessageToSign(!0):(0,y.encode)(e.getMessageToSign(!1)),e.supports(l.Capability.EIP155ReplayProtection)&&(n=e.common.chainIdBN().toNumber());var a,c=new Uint8Array(t.concat([r.sig.r,r.sig.s])),u=new Uint8Array(r.pubkey),d=(0,k.ecdsaRecover)(c,0,o,!1),h=(0,k.ecdsaRecover)(c,1,o,!1),p=t.from(u).toString("hex"),m=t.from(d).toString("hex"),b=t.from(h).toString("hex");if(p===m)a=0;else{if(p!==b)throw new Error("Failed to recover V parameter. Bad signature or transaction data.");a=1}return i?new f.BN(a):n?n.muln(2).addn(35).addn(a):new f.BN(a).addn(27)},r.EXTERNAL={fetchCalldataDecoder:D,generateAppSecret:r.generateAppSecret,getV:r.getV}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/util.js"}],[422,{"@metamask/utils":2831,lodash:4554,loglevel:4562},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,i.hasProperty)(e,"PhishingController"))return s.default.warn("typeof state.PhishingController is undefined"),e;if(!(0,i.isObject)(e.PhishingController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("typeof state.PhishingController is "+typeof e.PhishingController)),e}if(!(0,i.hasProperty)(e.PhishingController,"listState"))return s.default.warn("typeof state.PhishingController.listState is "+typeof e.PhishingController),e;return delete e.PhishingController.listState,e}(t.data),t},r.version=void 0;var n,o=e("lodash"),i=e("@metamask/utils"),s=(n=e("loglevel"))&&n.__esModule?n:{default:n};const a=r.version=90}}},{package:"$root$",file:"app/scripts/migrations/090.ts"}],[4220,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"goerli",chainId:5,networkId:5,defaultHardfork:"merge",consensus:{type:"poa",algorithm:"clique",clique:{period:15,epoch:3e4}},comment:"Cross-client PoA test network",url:"https://github.com/goerli/testnet",genesis:{timestamp:"0x5c51a607",gasLimit:10485760,difficulty:1,nonce:"0x0000000000000000",extraData:"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"},hardforks:[{name:"chainstart",block:0,forkHash:"0xa3f5ab08"},{name:"homestead",block:0,forkHash:"0xa3f5ab08"},{name:"tangerineWhistle",block:0,forkHash:"0xa3f5ab08"},{name:"spuriousDragon",block:0,forkHash:"0xa3f5ab08"},{name:"byzantium",block:0,forkHash:"0xa3f5ab08"},{name:"constantinople",block:0,forkHash:"0xa3f5ab08"},{name:"petersburg",block:0,forkHash:"0xa3f5ab08"},{name:"istanbul",block:1561651,forkHash:"0xc25efa5c"},{name:"berlin",block:4460644,forkHash:"0x757a1c47"},{name:"london",block:5062605,forkHash:"0xb8c6299d"},{"//_comment":"The forkHash will remain same as mergeForkIdTransition is post merge, terminal block: https://goerli.etherscan.io/block/7382818",name:"merge",ttd:"10790000",block:7382819,forkHash:"0xb8c6299d"},{name:"mergeForkIdTransition",block:null,forkHash:null},{name:"shanghai",block:null,forkHash:null}],bootstrapNodes:[{ip:"51.141.78.53",port:30303,id:"011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a",location:"",comment:"Upstream bootnode 1"},{ip:"13.93.54.137",port:30303,id:"176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b",location:"",comment:"Upstream bootnode 2"},{ip:"94.237.54.114",port:30313,id:"46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291",location:"",comment:"Upstream bootnode 3"},{ip:"18.218.250.66",port:30313,id:"b5948a2d3e9d486c4d75bf32713221c2bd6cf86463302339299bd227dc2e276cd5a1c7ca4f43a0e9122fe9af884efed563bd2a1fd28661f3b5f5ad7bf1de5949",location:"",comment:"Upstream bootnode 4"},{ip:"3.11.147.67",port:30303,id:"a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91",location:"",comment:"Ethereum Foundation bootnode"},{ip:"51.15.116.226",port:30303,id:"a869b02cec167211fb4815a82941db2e7ed2936fd90e78619c53eb17753fcf0207463e3419c264e2a1dd8786de0df7e68cf99571ab8aeb7c4e51367ef186b1dd",location:"",comment:"Goerli Initiative bootnode"},{ip:"51.15.119.157",port:30303,id:"807b37ee4816ecf407e9112224494b74dd5933625f655962d892f2f0f02d7fbbb3e2a94cf87a96609526f30c998fd71e93e2f53015c558ffc8b03eceaf30ee33",location:"",comment:"Goerli Initiative bootnode"},{ip:"51.15.119.157",port:40303,id:"a59e33ccd2b3e52d578f1fbd70c6f9babda2650f0760d6ff3b37742fdcdfdb3defba5d56d315b40c46b70198c7621e63ffa3f987389c7118634b0fefbbdfa7fd",location:"",comment:"Goerli Initiative bootnode"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.goerli.ethdisco.net"]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/chains/goerli.json"}],[4221,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"mainnet",chainId:1,networkId:1,defaultHardfork:"merge",consensus:{type:"pow",algorithm:"ethash",ethash:{}},comment:"The Ethereum main chain",url:"https://ethstats.net/",genesis:{gasLimit:5e3,difficulty:17179869184,nonce:"0x0000000000000042",extraData:"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa"},hardforks:[{name:"chainstart",block:0,forkHash:"0xfc64ec04"},{name:"homestead",block:115e4,forkHash:"0x97c2c34c"},{name:"dao",block:192e4,forkHash:"0x91d1f948"},{name:"tangerineWhistle",block:2463e3,forkHash:"0x7a64da13"},{name:"spuriousDragon",block:2675e3,forkHash:"0x3edd5b10"},{name:"byzantium",block:437e4,forkHash:"0xa00bc324"},{name:"constantinople",block:728e4,forkHash:"0x668db0af"},{name:"petersburg",block:728e4,forkHash:"0x668db0af"},{name:"istanbul",block:9069e3,forkHash:"0x879d6e30"},{name:"muirGlacier",block:92e5,forkHash:"0xe029e991"},{name:"berlin",block:12244e3,forkHash:"0x0eb440f6"},{name:"london",block:12965e3,forkHash:"0xb715077d"},{name:"arrowGlacier",block:13773e3,forkHash:"0x20c327fc"},{name:"grayGlacier",block:1505e4,forkHash:"0xf0afd0e3"},{"//_comment":"The forkHash will remain same as mergeForkIdTransition is post merge, terminal block: https://etherscan.io/block/15537393",name:"merge",ttd:"58750000000000000000000",block:15537394,forkHash:"0xf0afd0e3"},{name:"mergeForkIdTransition",block:null,forkHash:null},{name:"shanghai",block:null,forkHash:null}],bootstrapNodes:[{ip:"18.138.108.67",port:30303,id:"d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666",location:"ap-southeast-1-001",comment:"bootnode-aws-ap-southeast-1-001"},{ip:"3.209.45.79",port:30303,id:"22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de",location:"us-east-1-001",comment:"bootnode-aws-us-east-1-001"},{ip:"34.255.23.113",port:30303,id:"ca6de62fce278f96aea6ec5a2daadb877e51651247cb96ee310a318def462913b653963c155a0ef6c7d50048bba6e6cea881130857413d9f50a621546b590758",location:"eu-west-1-001",comment:"bootnode-aws-eu-west-1-001"},{ip:"35.158.244.151",port:30303,id:"279944d8dcd428dffaa7436f25ca0ca43ae19e7bcf94a8fb7d1641651f92d121e972ac2e8f381414b80cc8e5555811c2ec6e1a99bb009b3f53c4c69923e11bd8",location:"eu-central-1-001",comment:"bootnode-aws-eu-central-1-001"},{ip:"52.187.207.27",port:30303,id:"8499da03c47d637b20eee24eec3c356c9a2e6148d6fe25ca195c7949ab8ec2c03e3556126b0d7ed644675e78c4318b08691b7b57de10e5f0d40d05b09238fa0a",location:"australiaeast-001",comment:"bootnode-azure-australiaeast-001"},{ip:"191.234.162.198",port:30303,id:"103858bdb88756c71f15e9b5e09b56dc1be52f0a5021d46301dbbfb7e130029cc9d0d6f73f693bc29b665770fff7da4d34f3c6379fe12721b5d7a0bcb5ca1fc1",location:"brazilsouth-001",comment:"bootnode-azure-brazilsouth-001"},{ip:"52.231.165.108",port:30303,id:"715171f50508aba88aecd1250af392a45a330af91d7b90701c436b618c86aaa1589c9184561907bebbb56439b8f8787bc01f49a7c77276c58c1b09822d75e8e8",location:"koreasouth-001",comment:"bootnode-azure-koreasouth-001"},{ip:"104.42.217.25",port:30303,id:"5d6d7cd20d6da4bb83a1d28cadb5d409b64edf314c0335df658c1a54e32c7c4a7ab7823d57c39b6a757556e68ff1df17c748b698544a55cb488b52479a92b60f",location:"westus-001",comment:"bootnode-azure-westus-001"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.mainnet.ethdisco.net"]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/chains/mainnet.json"}],[4222,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"rinkeby",chainId:4,networkId:4,defaultHardfork:"london",consensus:{type:"poa",algorithm:"clique",clique:{period:15,epoch:3e4}},comment:"PoA test network",url:"https://www.rinkeby.io",genesis:{timestamp:"0x58ee40ba",gasLimit:47e5,difficulty:1,nonce:"0x0000000000000000",extraData:"0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"},hardforks:[{name:"chainstart",block:0,forkHash:"0x3b8e0691"},{name:"homestead",block:1,forkHash:"0x60949295"},{name:"tangerineWhistle",block:2,forkHash:"0x8bde40dd"},{name:"spuriousDragon",block:3,forkHash:"0xcb3a64bb"},{name:"byzantium",block:1035301,forkHash:"0x8d748b57"},{name:"constantinople",block:3660663,forkHash:"0xe49cab14"},{name:"petersburg",block:4321234,forkHash:"0xafec6b27"},{name:"istanbul",block:5435345,forkHash:"0xcbdb8838"},{name:"berlin",block:8290928,forkHash:"0x6910c8bd"},{name:"london",block:8897988,forkHash:"0x8e29f2f3"},{name:"merge",block:null,forkHash:null},{name:"shanghai",block:null,forkHash:null}],bootstrapNodes:[{ip:"52.169.42.101",port:30303,id:"a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf",location:"",comment:"IE"},{ip:"52.3.158.184",port:30303,id:"343149e4feefa15d882d9fe4ac7d88f885bd05ebb735e547f12e12080a9fa07c8014ca6fd7f373123488102fe5e34111f8509cf0b7de3f5b44339c9f25e87cb8",location:"",comment:"INFURA"},{ip:"159.89.28.211",port:30303,id:"b6b28890b006743680c52e64e0d16db57f28124885595fa03a562be1d2bf0f3a1da297d56b13da25fb992888fd556d4c1a27b1f39d531bde7de1921c90061cc6",location:"",comment:"AKASHA"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.rinkeby.ethdisco.net"]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/chains/rinkeby.json"}],[4223,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"ropsten",chainId:3,networkId:3,defaultHardfork:"merge",consensus:{type:"pow",algorithm:"ethash",ethash:{}},comment:"PoW test network",url:"https://github.com/ethereum/ropsten",genesis:{gasLimit:16777216,difficulty:1048576,nonce:"0x0000000000000042",extraData:"0x3535353535353535353535353535353535353535353535353535353535353535"},hardforks:[{name:"chainstart",block:0,forkHash:"0x30c7ddbc"},{name:"homestead",block:0,forkHash:"0x30c7ddbc"},{name:"tangerineWhistle",block:0,forkHash:"0x30c7ddbc"},{name:"spuriousDragon",block:10,forkHash:"0x63760190"},{name:"byzantium",block:17e5,forkHash:"0x3ea159c7"},{name:"constantinople",block:423e4,forkHash:"0x97b544f3"},{name:"petersburg",block:4939394,forkHash:"0xd6e2149b"},{name:"istanbul",block:6485846,forkHash:"0x4bc66396"},{name:"muirGlacier",block:7117117,forkHash:"0x6727ef90"},{name:"berlin",block:9812189,forkHash:"0xa157d377"},{name:"london",block:10499401,forkHash:"0x7119b6b3"},{"//_comment":"The forkHash will remain same as mergeForkIdTransition is post merge",name:"merge",ttd:"50000000000000000",block:null,forkHash:"0x7119b6b3"},{name:"mergeForkIdTransition",block:null,forkHash:null},{name:"shanghai",block:null,forkHash:null}],bootstrapNodes:[{ip:"52.176.7.10",port:30303,id:"30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606",location:"",comment:"US-Azure geth"},{ip:"52.176.100.77",port:30303,id:"865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c",location:"",comment:"US-Azure parity"},{ip:"52.232.243.152",port:30303,id:"6332792c4a00e3e4ee0926ed89e0d27ef985424d97b6a45bf0f23e51f0dcb5e66b875777506458aea7af6f9e4ffb69f43f3778ee73c81ed9d34c51c4b16b0b0f",location:"",comment:"Parity"},{ip:"192.81.208.223",port:30303,id:"94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09",location:"",comment:"@gpip"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.ropsten.ethdisco.net"]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/chains/ropsten.json"}],[4224,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"sepolia",chainId:11155111,networkId:11155111,defaultHardfork:"merge",consensus:{type:"pow",algorithm:"ethash",ethash:{}},comment:"PoW test network to replace Ropsten",url:"https://github.com/ethereum/go-ethereum/pull/23730",genesis:{timestamp:"0x6159af19",gasLimit:3e7,difficulty:131072,nonce:"0x0000000000000000",extraData:"0x5365706f6c69612c20417468656e732c204174746963612c2047726565636521"},hardforks:[{name:"chainstart",block:0,forkHash:"0xfe3366e7"},{name:"homestead",block:0,forkHash:"0xfe3366e7"},{name:"tangerineWhistle",block:0,forkHash:"0xfe3366e7"},{name:"spuriousDragon",block:0,forkHash:"0xfe3366e7"},{name:"byzantium",block:0,forkHash:"0xfe3366e7"},{name:"constantinople",block:0,forkHash:"0xfe3366e7"},{name:"petersburg",block:0,forkHash:"0xfe3366e7"},{name:"istanbul",block:0,forkHash:"0xfe3366e7"},{name:"muirGlacier",block:0,forkHash:"0xfe3366e7"},{name:"berlin",block:0,forkHash:"0xfe3366e7"},{name:"london",block:0,forkHash:"0xfe3366e7"},{"//_comment":"The forkHash will remain same as mergeForkIdTransition is post merge, terminal block: https://sepolia.etherscan.io/block/1450408",name:"merge",ttd:"17000000000000000",block:1450409,forkHash:"0xfe3366e7"},{name:"mergeForkIdTransition",block:1735371,forkHash:"0xb96cbd13"},{name:"shanghai",block:null,timestamp:"1677557088",forkHash:"0xf7f9bc08"}],bootstrapNodes:[{ip:"18.168.182.86",port:30303,id:"9246d00bc8fd1742e5ad2428b80fc4dc45d786283e05ef6edbd9002cbc335d40998444732fbe921cb88e1d2c73d1b1de53bae6a2237996e9bfe14f871baf7066",location:"",comment:"geth"},{ip:"52.14.151.177",port:30303,id:"ec66ddcf1a974950bd4c782789a7e04f8aa7110a72569b6e65fcd51e937e74eed303b1ea734e4d19cfaec9fbff9b6ee65bf31dcb50ba79acce9dd63a6aca61c7",location:"",comment:"besu"},{ip:"165.22.196.173",port:30303,id:"ce970ad2e9daa9e14593de84a8b49da3d54ccfdf83cbc4fe519cb8b36b5918ed4eab087dedd4a62479b8d50756b492d5f762367c8d20329a7854ec01547568a6",location:"",comment:"EF"},{ip:"65.108.95.67",port:30303,id:"075503b13ed736244896efcde2a992ec0b451357d46cb7a8132c0384721742597fc8f0d91bbb40bb52e7d6e66728d36a1fda09176294e4a30cfac55dcce26bc6",location:"",comment:"lodestar"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.sepolia.ethdisco.net"]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/chains/sepolia.json"}],[4225,{"./chains/goerli.json":4220,"./chains/mainnet.json":4221,"./chains/rinkeby.json":4222,"./chains/ropsten.json":4223,"./chains/sepolia.json":4224,"./eips":4251,"./enums":4252,"./hardforks":4261,"./utils":4274,"@ethereumjs/util":4283,buffer:3792,"crc-32":3862,events:4092},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.Common=void 0;const n=e("@ethereumjs/util"),o=e("crc-32"),i=e("events"),s=e("./chains/goerli.json"),a=e("./chains/mainnet.json"),c=e("./chains/rinkeby.json"),l=e("./chains/ropsten.json"),u=e("./chains/sepolia.json"),d=e("./eips"),f=e("./enums"),h=e("./hardforks"),p=e("./utils");class m extends i.EventEmitter{constructor(e){super(),this._eips=[],this._customChains=e.customChains??[],this._chainParams=this.setChain(e.chain),this.DEFAULT_HARDFORK=this._chainParams.defaultHardfork??f.Hardfork.Merge,this.HARDFORK_CHANGES=this.hardforks().map(e=>[e.name,h.hardforks[e.name]]),this._hardfork=this.DEFAULT_HARDFORK,e.hardfork!==undefined&&this.setHardfork(e.hardfork),e.eips&&this.setEIPs(e.eips)}static custom(e,t={}){const r=t.baseChain??"mainnet",n={...m._getChainParams(r)};if(n.name="custom-chain","string"!=typeof e)return new m({chain:{...n,...e},...t});if(e===f.CustomChain.PolygonMainnet)return m.custom({name:f.CustomChain.PolygonMainnet,chainId:137,networkId:137},t);if(e===f.CustomChain.PolygonMumbai)return m.custom({name:f.CustomChain.PolygonMumbai,chainId:80001,networkId:80001},t);if(e===f.CustomChain.ArbitrumRinkebyTestnet)return m.custom({name:f.CustomChain.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611},t);if(e===f.CustomChain.ArbitrumOne)return m.custom({name:f.CustomChain.ArbitrumOne,chainId:42161,networkId:42161},t);if(e===f.CustomChain.xDaiChain)return m.custom({name:f.CustomChain.xDaiChain,chainId:100,networkId:100},t);if(e===f.CustomChain.OptimisticKovan)return m.custom({name:f.CustomChain.OptimisticKovan,chainId:69,networkId:69},{hardfork:f.Hardfork.Berlin,...t});if(e===f.CustomChain.OptimisticEthereum)return m.custom({name:f.CustomChain.OptimisticEthereum,chainId:10,networkId:10},{hardfork:f.Hardfork.Berlin,...t});throw new Error(`Custom chain ${e} not supported`)}static fromGethGenesis(e,{chain:t,eips:r,genesisHash:n,hardfork:o,mergeForkIdPostMerge:i}){const s=(0,p.parseGethGenesis)(e,t,i),a=new m({chain:s.name??"custom",customChains:[s],eips:r,hardfork:o??s.hardfork});return n!==undefined&&a.setForkHashes(n),a}static isSupportedChainId(e){const t=this._getInitializedChains();return Boolean(t.names[e.toString()])}static _getChainParams(e,t){const r=this._getInitializedChains(t);if("number"==typeof e||"bigint"==typeof e){if(e=e.toString(),r.names[e]){return r[r.names[e]]}throw new Error(`Chain with ID ${e} not supported`)}if(r[e]!==undefined)return r[e];throw new Error(`Chain with name ${e} not supported`)}setChain(e){if("number"==typeof e||"bigint"==typeof e||"string"==typeof e)this._chainParams=m._getChainParams(e,this._customChains);else{if("object"!=typeof e)throw new Error("Wrong input format");{if(this._customChains.length>0)throw new Error("Chain must be a string, number, or bigint when initialized with customChains passed in");const t=["networkId","genesis","hardforks","bootstrapNodes"];for(const r of t)if(!(r in e))throw new Error(`Missing required chain parameter: ${r}`);this._chainParams=e}}for(const e of this.hardforks())if(e.block===undefined)throw new Error("Hardfork cannot have undefined block number");return this._chainParams}setHardfork(e){let t=!1;for(const r of this.HARDFORK_CHANGES)r[0]===e&&(this._hardfork!==e&&(this._hardfork=e,this.emit("hardforkChanged",e)),t=!0);if(!t)throw new Error(`Hardfork with name ${e} not supported`)}getHardforkByBlockNumber(e,t,r){e=(0,n.toType)(e,n.TypeOutput.BigInt),t=(0,n.toType)(t,n.TypeOutput.BigInt),r=(0,n.toType)(r,n.TypeOutput.Number);const o=this.hardforks().filter(e=>null!==e.block||null!==e.ttd&&e.ttd!==undefined||e.timestamp!==undefined),i=o.findIndex(e=>null!==e.ttd&&e.ttd!==undefined);if(o.slice(i+1).findIndex(e=>null!==e.ttd&&e.ttd!==undefined)>=0)throw Error("More than one merge hardforks found with ttd specified");let s=o.findIndex(t=>null!==t.block&&t.block>e||r!==undefined&&Number(t.timestamp)>r);if(-1===s)s=o.length;else if(0===s)throw Error("Must have at least one hardfork at block 0");if(r===undefined){s-=o.slice(0,s).reverse().findIndex(e=>null!==e.block||e.ttd!==undefined)}if(s-=1,null===o[s].block&&o[s].timestamp===undefined)(t===undefined||null===t||BigInt(o[s].ttd)>t)&&(s-=1);else if(i>=0&&t!==undefined&&null!==t){if(s>=i&&BigInt(o[i].ttd)>t)throw Error("Maximum HF determined by total difficulty is lower than the block number HF");if(s<i&&BigInt(o[i].ttd)<=t)throw Error("HF determined by block number is lower than the minimum total difficulty HF")}const a=s;for(;s<o.length-1&&(o[s].block===o[s+1].block&&o[s].timestamp===o[s+1].timestamp);s++);if(r){if(o.slice(0,a).reduce((e,t)=>Math.max(Number(t.timestamp??"0"),e),0)>r)throw Error("Maximum HF determined by timestamp is lower than the block number/ttd HF");if(o.slice(s+1).reduce((e,t)=>Math.min(Number(t.timestamp??r),e),r)<r)throw Error("Maximum HF determined by block number/ttd is lower than timestamp HF")}return o[s].name}setHardforkByBlockNumber(e,t,r){const n=this.getHardforkByBlockNumber(e,t,r);return this.setHardfork(n),n}_getHardfork(e){const t=this.hardforks();for(const r of t)if(r.name===e)return r;return null}setEIPs(e=[]){for(const t of e){if(!(t in d.EIPs))throw new Error(`${t} not supported`);const r=this.gteHardfork(d.EIPs[t].minimumHardfork);if(!r)throw new Error(`${t} cannot be activated on hardfork ${this.hardfork()}, minimumHardfork: ${r}`);if(d.EIPs[t].requiredEIPs!==undefined)for(const r of d.EIPs[t].requiredEIPs)if(!e.includes(r)&&!this.isActivatedEIP(r))throw new Error(`${t} requires EIP ${r}, but is not included in the EIP list`)}this._eips=e}param(e,t){let r;for(const n of this._eips)if(r=this.paramByEIP(e,t,n),r!==undefined)return r;return this.paramByHardfork(e,t,this._hardfork)}paramByHardfork(e,t,r){let n=null;for(const o of this.HARDFORK_CHANGES){if("eips"in o[1]){const r=o[1].eips;for(const o of r){const r=this.paramByEIP(e,t,o);n="bigint"==typeof r?r:n}}else{if(o[1][e]===undefined)throw new Error(`Topic ${e} not defined`);o[1][e][t]!==undefined&&(n=o[1][e][t].v)}if(o[0]===r)break}return BigInt(n??0)}paramByEIP(e,t,r){if(!(r in d.EIPs))throw new Error(`${r} not supported`);const n=d.EIPs[r];if(!(e in n))throw new Error(`Topic ${e} not defined`);if(n[e][t]===undefined)return undefined;const o=n[e][t].v;return BigInt(o)}paramByBlock(e,t,r,n,o){const i=this.getHardforkByBlockNumber(r,n,o);return this.paramByHardfork(e,t,i)}isActivatedEIP(e){if(this.eips().includes(e))return!0;for(const t of this.HARDFORK_CHANGES){const r=t[1];if(this.gteHardfork(r.name)&&"eips"in r&&r.eips.includes(e))return!0}return!1}hardforkIsActiveOnBlock(e,t){t=(0,n.toType)(t,n.TypeOutput.BigInt),e=e??this._hardfork;const r=this.hardforkBlock(e);return"bigint"==typeof r&&r!==BigInt(0)&&t>=r}activeOnBlock(e){return this.hardforkIsActiveOnBlock(null,e)}hardforkGteHardfork(e,t){e=e??this._hardfork;const r=this.hardforks();let n=-1,o=-1,i=0;for(const s of r)s.name===e&&(n=i),s.name===t&&(o=i),i+=1;return n>=o&&-1!==o}gteHardfork(e){return this.hardforkGteHardfork(null,e)}hardforkBlock(e){e=e??this._hardfork;const t=this._getHardfork(e)?.block;return t===undefined||null===t?null:BigInt(t)}hardforkTimestamp(e){e=e??this._hardfork;const t=this._getHardfork(e)?.timestamp;return t===undefined||null===t?null:BigInt(t)}eipBlock(e){for(const t of this.HARDFORK_CHANGES){const r=t[1];if("eips"in r&&r.eips.includes(e))return this.hardforkBlock(t[0])}return null}hardforkTTD(e){e=e??this._hardfork;const t=this._getHardfork(e)?.ttd;return t===undefined||null===t?null:BigInt(t)}isHardforkBlock(e,t){e=(0,n.toType)(e,n.TypeOutput.BigInt),t=t??this._hardfork;const r=this.hardforkBlock(t);return"bigint"==typeof r&&r!==BigInt(0)&&r===e}nextHardforkBlockOrTimestamp(e){e=e??this._hardfork;const t=this.hardforks();let r=t.findIndex(t=>t.name===e);if(e===f.Hardfork.Merge&&(r-=1),r<0)return null;let n=t[r].timestamp??t[r].block;n=null!==n&&n!==undefined?Number(n):null;const o=t.slice(r+1).find(e=>{let t=e.timestamp??e.block;return t=null!==t&&t!==undefined?Number(t):null,e.name!==f.Hardfork.Merge&&null!==t&&t!==undefined&&t!==n});if(o===undefined)return null;const i=o.timestamp??o.block;return null===i||i===undefined?null:BigInt(i)}nextHardforkBlock(e){e=e??this._hardfork;let t=this.hardforkBlock(e);if(null===t&&e===f.Hardfork.Merge){const e=this.hardforks(),r=e.findIndex(e=>null!==e.ttd&&e.ttd!==undefined);if(r<0)throw Error("Merge hardfork should have been found");t=this.hardforkBlock(e[r-1].name)}if(null===t)return null;return this.hardforks().reduce((e,r)=>{const n=BigInt(null===r.block||r.ttd!==undefined&&null!==r.ttd?0:r.block);return n>t&&null===e?n:e},null)}isNextHardforkBlock(e,t){e=(0,n.toType)(e,n.TypeOutput.BigInt),t=t??this._hardfork;const r=this.nextHardforkBlock(t);return null!==r&&r===e}_calcForkHash(e,r){let i=t.alloc(0),s=0;for(const r of this.hardforks()){const{block:n,timestamp:o,name:a}=r;let c=o??n;if(c=null!==c?Number(c):null,"number"==typeof c&&0!==c&&c!==s&&a!==f.Hardfork.Merge){const e=t.from(c.toString(16).padStart(16,"0"),"hex");i=t.concat([i,e]),s=c}if(r.name===e)break}const a=t.concat([r,i]);return`0x${(0,n.intToBuffer)((0,o.buf)(a)>>>0).toString("hex")}`}forkHash(e,t){e=e??this._hardfork;const r=this._getHardfork(e);if(null===r||null===r?.block&&r?.timestamp===undefined&&r?.ttd===undefined){throw new Error("No fork hash calculation possible for future hardfork")}if(null!==r?.forkHash&&r?.forkHash!==undefined)return r.forkHash;if(!t)throw new Error("genesisHash required for forkHash calculation");return this._calcForkHash(e,t)}hardforkForForkHash(e){const t=this.hardforks().filter(t=>t.forkHash===e);return t.length>=1?t[t.length-1]:null}setForkHashes(e){for(const t of this.hardforks()){const r=t.timestamp??t.block;null!==t.forkHash&&t.forkHash!==undefined||(null===r||r===undefined)&&void 0===t.ttd||(t.forkHash=this.forkHash(t.name,e))}}genesis(){return this._chainParams.genesis}hardforks(){return this._chainParams.hardforks}bootstrapNodes(){return this._chainParams.bootstrapNodes}dnsNetworks(){return this._chainParams.dnsNetworks}hardfork(){return this._hardfork}chainId(){return BigInt(this._chainParams.chainId)}chainName(){return this._chainParams.name}networkId(){return BigInt(this._chainParams.networkId)}eips(){return this._eips}consensusType(){const e=this.hardfork();let t;for(const r of this.HARDFORK_CHANGES)if("consensus"in r[1]&&(t=r[1].consensus.type),r[0]===e)break;return t??this._chainParams.consensus.type}consensusAlgorithm(){const e=this.hardfork();let t;for(const r of this.HARDFORK_CHANGES)if("consensus"in r[1]&&(t=r[1].consensus.algorithm),r[0]===e)break;return t??this._chainParams.consensus.algorithm}consensusConfig(){const e=this.hardfork();let t;for(const r of this.HARDFORK_CHANGES)if("consensus"in r[1]&&(t=r[1].consensus[r[1].consensus.algorithm]),r[0]===e)break;return t??this._chainParams.consensus[this.consensusAlgorithm()]??{}}copy(){const e=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return e.removeAllListeners(),e}static _getInitializedChains(e){const t={};for(const[e,r]of Object.entries(f.Chain))t[r]=e.toLowerCase();const r={mainnet:a,ropsten:l,rinkeby:c,goerli:s,sepolia:u};if(e)for(const n of e){const{name:e}=n;t[n.chainId.toString()]=e,r[e]=n}return r.names=t,r}}r.Common=m}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/common.js"}],[4226,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-1153",number:1153,comment:"Transient Storage",url:"https://eips.ethereum.org/EIPS/eip-1153",status:"Review",minimumHardfork:"chainstart",requiredEIPs:[],gasConfig:{},gasPrices:{tstore:{v:100,d:"Base fee of the TSTORE opcode"},tload:{v:100,d:"Base fee of the TLOAD opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/1153.json"}],[4227,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-1559",number:1559,comment:"Fee market change for ETH 1.0 chain",url:"https://eips.ethereum.org/EIPS/eip-1559",status:"Final",minimumHardfork:"berlin",requiredEIPs:[2930],gasConfig:{baseFeeMaxChangeDenominator:{v:8,d:"Maximum base fee change denominator"},elasticityMultiplier:{v:2,d:"Maximum block gas target elasticity"},initialBaseFee:{v:1e9,d:"Initial base fee on first EIP1559 block"}},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/1559.json"}],[4228,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-2315",number:2315,comment:"Simple subroutines for the EVM",url:"https://eips.ethereum.org/EIPS/eip-2315",status:"Draft",minimumHardfork:"istanbul",gasConfig:{},gasPrices:{beginsub:{v:2,d:"Base fee of the BEGINSUB opcode"},returnsub:{v:5,d:"Base fee of the RETURNSUB opcode"},jumpsub:{v:10,d:"Base fee of the JUMPSUB opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/2315.json"}],[4229,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-2537",number:2537,comment:"BLS12-381 precompiles",url:"https://eips.ethereum.org/EIPS/eip-2537",status:"Draft",minimumHardfork:"chainstart",gasConfig:{},gasPrices:{Bls12381G1AddGas:{v:600,d:"Gas cost of a single BLS12-381 G1 addition precompile-call"},Bls12381G1MulGas:{v:12e3,d:"Gas cost of a single BLS12-381 G1 multiplication precompile-call"},Bls12381G2AddGas:{v:4500,d:"Gas cost of a single BLS12-381 G2 addition precompile-call"},Bls12381G2MulGas:{v:55e3,d:"Gas cost of a single BLS12-381 G2 multiplication precompile-call"},Bls12381PairingBaseGas:{v:115e3,d:"Base gas cost of BLS12-381 pairing check"},Bls12381PairingPerPairGas:{v:23e3,d:"Per-pair gas cost of BLS12-381 pairing check"},Bls12381MapG1Gas:{v:5500,d:"Gas cost of BLS12-381 map field element to G1"},Bls12381MapG2Gas:{v:11e4,d:"Gas cost of BLS12-381 map field element to G2"},Bls12381MultiExpGasDiscount:{v:[[1,1200],[2,888],[3,764],[4,641],[5,594],[6,547],[7,500],[8,453],[9,438],[10,423],[11,408],[12,394],[13,379],[14,364],[15,349],[16,334],[17,330],[18,326],[19,322],[20,318],[21,314],[22,310],[23,306],[24,302],[25,298],[26,294],[27,289],[28,285],[29,281],[30,277],[31,273],[32,269],[33,268],[34,266],[35,265],[36,263],[37,262],[38,260],[39,259],[40,257],[41,256],[42,254],[43,253],[44,251],[45,250],[46,248],[47,247],[48,245],[49,244],[50,242],[51,241],[52,239],[53,238],[54,236],[55,235],[56,233],[57,232],[58,231],[59,229],[60,228],[61,226],[62,225],[63,223],[64,222],[65,221],[66,220],[67,219],[68,219],[69,218],[70,217],[71,216],[72,216],[73,215],[74,214],[75,213],[76,213],[77,212],[78,211],[79,211],[80,210],[81,209],[82,208],[83,208],[84,207],[85,206],[86,205],[87,205],[88,204],[89,203],[90,202],[91,202],[92,201],[93,200],[94,199],[95,199],[96,198],[97,197],[98,196],[99,196],[100,195],[101,194],[102,193],[103,193],[104,192],[105,191],[106,191],[107,190],[108,189],[109,188],[110,188],[111,187],[112,186],[113,185],[114,185],[115,184],[116,183],[117,182],[118,182],[119,181],[120,180],[121,179],[122,179],[123,178],[124,177],[125,176],[126,176],[127,175],[128,174]],d:"Discount gas costs of calls to the MultiExp precompiles with `k` (point, scalar) pair"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/2537.json"}],[423,{"@metamask/utils":2831,lodash:4554},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=i,t.data=function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.hasProperty)(e.NetworkController,"networkConfigurations")&&(0,n.isObject)(e.NetworkController.networkConfigurations)){const{networkConfigurations:t}=e.NetworkController;for(const[e,r]of Object.entries(t))(0,n.isObject)(r)&&(r.chainId||delete t[e]);return e.NetworkController={...e.NetworkController,networkConfigurations:t},{...e,NetworkController:e.NetworkController}}var t,r;if((0,n.isObject)(e.NetworkController)){if(!(0,n.isObject)(e.NetworkController.networkConfigurations)){var o,i;null===(o=global.sentry)||void 0===o||null===(i=o.captureException)||void 0===i||i.call(o,new Error("typeof state.NetworkController.networkConfigurations is "+typeof e.NetworkController.networkConfigurations))}}else null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("typeof state.NetworkController is "+typeof e.NetworkController));return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),o=e("lodash");const i=r.version=91}}},{package:"$root$",file:"app/scripts/migrations/091.ts"}],[4230,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-2565",number:2565,comment:"ModExp gas cost",url:"https://eips.ethereum.org/EIPS/eip-2565",status:"Final",minimumHardfork:"byzantium",gasConfig:{},gasPrices:{modexpGquaddivisor:{v:3,d:"Gquaddivisor from modexp precompile for gas calculation"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/2565.json"}],[4231,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-2718",comment:"Typed Transaction Envelope",url:"https://eips.ethereum.org/EIPS/eip-2718",status:"Final",minimumHardfork:"chainstart",gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/2718.json"}],[4232,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-2929",comment:"Gas cost increases for state access opcodes",url:"https://eips.ethereum.org/EIPS/eip-2929",status:"Final",minimumHardfork:"chainstart",gasConfig:{},gasPrices:{coldsload:{v:2100,d:"Gas cost of the first read of storage from a given location (per transaction)"},coldaccountaccess:{v:2600,d:"Gas cost of the first read of a given address (per transaction)"},warmstorageread:{v:100,d:"Gas cost of reading storage locations which have already loaded 'cold'"},sstoreCleanGasEIP2200:{v:2900,d:"Once per SSTORE operation from clean non-zero to something else"},sstoreNoopGasEIP2200:{v:100,d:"Once per SSTORE operation if the value doesn't change"},sstoreDirtyGasEIP2200:{v:100,d:"Once per SSTORE operation if a dirty value is changed"},sstoreInitRefundEIP2200:{v:19900,d:"Once per SSTORE operation for resetting to the original zero value"},sstoreCleanRefundEIP2200:{v:4900,d:"Once per SSTORE operation for resetting to the original non-zero value"},call:{v:0,d:"Base fee of the CALL opcode"},callcode:{v:0,d:"Base fee of the CALLCODE opcode"},delegatecall:{v:0,d:"Base fee of the DELEGATECALL opcode"},staticcall:{v:0,d:"Base fee of the STATICCALL opcode"},balance:{v:0,d:"Base fee of the BALANCE opcode"},extcodesize:{v:0,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:0,d:"Base fee of the EXTCODECOPY opcode"},extcodehash:{v:0,d:"Base fee of the EXTCODEHASH opcode"},sload:{v:0,d:"Base fee of the SLOAD opcode"},sstore:{v:0,d:"Base fee of the SSTORE opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/2929.json"}],[4233,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-2930",comment:"Optional access lists",url:"https://eips.ethereum.org/EIPS/eip-2930",status:"Final",minimumHardfork:"istanbul",requiredEIPs:[2718,2929],gasConfig:{},gasPrices:{accessListStorageKeyCost:{v:1900,d:"Gas cost per storage key in an Access List transaction"},accessListAddressCost:{v:2400,d:"Gas cost per storage key in an Access List transaction"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/2930.json"}],[4234,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3074",number:3074,comment:"AUTH and AUTHCALL opcodes",url:"https://eips.ethereum.org/EIPS/eip-3074",status:"Review",minimumHardfork:"london",gasConfig:{},gasPrices:{auth:{v:3100,d:"Gas cost of the AUTH opcode"},authcall:{v:0,d:"Gas cost of the AUTHCALL opcode"},authcallValueTransfer:{v:6700,d:"Paid for CALL when the value transfer is non-zero"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3074.json"}],[4235,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3198",number:3198,comment:"BASEFEE opcode",url:"https://eips.ethereum.org/EIPS/eip-3198",status:"Final",minimumHardfork:"london",gasConfig:{},gasPrices:{basefee:{v:2,d:"Gas cost of the BASEFEE opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3198.json"}],[4236,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3529",comment:"Reduction in refunds",url:"https://eips.ethereum.org/EIPS/eip-3529",status:"Final",minimumHardfork:"berlin",requiredEIPs:[2929],gasConfig:{maxRefundQuotient:{v:5,d:"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},gasPrices:{selfdestructRefund:{v:0,d:"Refunded following a selfdestruct operation"},sstoreClearRefundEIP2200:{v:4800,d:"Once per SSTORE operation for clearing an originally existing storage slot"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3529.json"}],[4237,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3540",number:3540,comment:"EVM Object Format (EOF) v1",url:"https://eips.ethereum.org/EIPS/eip-3540",status:"Review",minimumHardfork:"london",requiredEIPs:[3541],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3540.json"}],[4238,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3541",comment:"Reject new contracts starting with the 0xEF byte",url:"https://eips.ethereum.org/EIPS/eip-3541",status:"Final",minimumHardfork:"berlin",requiredEIPs:[],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3541.json"}],[4239,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3554",comment:"Reduction in refunds",url:"Difficulty Bomb Delay to December 1st 2021",status:"Final",minimumHardfork:"muirGlacier",requiredEIPs:[],gasConfig:{},gasPrices:{},vm:{},pow:{difficultyBombDelay:{v:95e5,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3554.json"}],[424,{"@metamask/utils":2831,lodash:4554,loglevel:4562},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,i.hasProperty)(e,"TokenListController"))return s.default.warn("Skipping migration, TokenListController state is missing"),e;var t,r;if(!(0,i.isObject)(e.TokenListController))return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("typeof state.TokenListController is "+typeof e.TokenListController)),e;if(!(0,i.hasProperty)(e.TokenListController,"tokensChainsCache"))return s.default.warn("Skipping migration, TokenListController.tokensChainsCache state is missing"),e;e.TokenListController.tokensChainsCache===undefined&&delete e.TokenListController.tokensChainsCache;return e}(t.data),t},r.version=void 0;var n,o=e("lodash"),i=e("@metamask/utils"),s=(n=e("loglevel"))&&n.__esModule?n:{default:n};const a=r.version=92.1}}},{package:"$root$",file:"app/scripts/migrations/092.1.ts"}],[4240,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3607",number:3607,comment:"Reject transactions from senders with deployed code",url:"https://eips.ethereum.org/EIPS/eip-3607",status:"Final",minimumHardfork:"chainstart",requiredEIPs:[],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3607.json"}],[4241,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3651",number:3198,comment:"Warm COINBASE",url:"https://eips.ethereum.org/EIPS/eip-3651",status:"Review",minimumHardfork:"london",requiredEIPs:[2929],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3651.json"}],[4242,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3670",number:3670,comment:"EOF - Code Validation",url:"https://eips.ethereum.org/EIPS/eip-3670",status:"Review",minimumHardfork:"london",requiredEIPs:[3540],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3670.json"}],[4243,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3675",number:3675,comment:"Upgrade consensus to Proof-of-Stake",url:"https://eips.ethereum.org/EIPS/eip-3675",status:"Final",minimumHardfork:"london",requiredEIPs:[],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3675.json"}],[4244,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3855",number:3855,comment:"PUSH0 instruction",url:"https://eips.ethereum.org/EIPS/eip-3855",status:"Review",minimumHardfork:"chainstart",requiredEIPs:[],gasConfig:{},gasPrices:{push0:{v:2,d:"Base fee of the PUSH0 opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3855.json"}],[4245,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3860",number:3860,comment:"Limit and meter initcode",url:"https://eips.ethereum.org/EIPS/eip-3860",status:"Review",minimumHardfork:"spuriousDragon",requiredEIPs:[],gasConfig:{},gasPrices:{initCodeWordCost:{v:2,d:"Gas to pay for each word (32 bytes) of initcode when creating a contract"}},vm:{maxInitCodeSize:{v:49152,d:"Maximum length of initialization code when creating a contract"}},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3860.json"}],[4246,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-4345",number:4345,comment:"Difficulty Bomb Delay to June 2022",url:"https://eips.ethereum.org/EIPS/eip-4345",status:"Final",minimumHardfork:"london",gasConfig:{},gasPrices:{},vm:{},pow:{difficultyBombDelay:{v:107e5,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/4345.json"}],[4247,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-4399",number:4399,comment:"Supplant DIFFICULTY opcode with PREVRANDAO",url:"https://eips.ethereum.org/EIPS/eip-4399",status:"Review",minimumHardfork:"london",requiredEIPs:[],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/4399.json"}],[4248,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-4844",number:4844,comment:"Shard Blob Transactions",url:"https://eips.ethereum.org/EIPS/eip-4844",status:"Draft",minimumHardfork:"merge",requiredEIPs:[1559,2718,2930,4895],gasConfig:{dataGasPerBlob:{v:131072,d:"The base fee for data gas per blob"},targetDataGasPerBlock:{v:262144,d:"The target data gas consumed per block"},maxDataGasPerBlock:{v:524288,d:"The max data gas allowable per block"},dataGasPriceUpdateFraction:{v:2225652,d:"The denominator used in the exponential when calculating a data gas price"}},gasPrices:{simpleGasPerBlob:{v:12e3,d:"The basic gas fee for each blob"},minDataGasPrice:{v:1,d:"The minimum fee per data gas"},kzgPointEvaluationGasPrecompilePrice:{v:5e4,d:"The fee associated with the point evaluation precompile"},datahash:{v:3,d:"Base fee of the DATAHASH opcode"}},sharding:{blobCommitmentVersionKzg:{v:1,d:"The number indicated a versioned hash is a KZG commitment"},fieldElementsPerBlob:{v:4096,d:"The number of field elements allowed per blob"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/4844.json"}],[4249,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-4895",number:4895,comment:"Beacon chain push withdrawals as operations",url:"https://eips.ethereum.org/EIPS/eip-4895",status:"Review",minimumHardfork:"merge",requiredEIPs:[],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/4895.json"}],[425,{"../../../shared/lib/sentry":5536,"@metamask/utils":2831,lodash:4554},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,t.data=function(e){return function(e){const t=["networkId","networkStatus","providerConfig","networkDetails","networkConfigurations"];if(!(0,n.hasProperty)(e,"NetworkController")||!(0,o.isObject)(e.NetworkController))return(0,i.captureException)(`Migration ${s}: Invalid NetworkController state: ${typeof e.NetworkController}`),e;const r=e.NetworkController,a=(0,o.pick)(r,t);return{...e,NetworkController:a}}(e)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),o=e("lodash"),i=e("../../../shared/lib/sentry");const s=r.version=92.2}}},{package:"$root$",file:"app/scripts/migrations/092.2.ts"}],[4250,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-5133",number:5133,comment:"Delaying Difficulty Bomb to mid-September 2022",url:"https://eips.ethereum.org/EIPS/eip-5133",status:"Draft",minimumHardfork:"grayGlacier",gasConfig:{},gasPrices:{},vm:{},pow:{difficultyBombDelay:{v:114e5,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/5133.json"}],[4251,{"./1153.json":4226,"./1559.json":4227,"./2315.json":4228,"./2537.json":4229,"./2565.json":4230,"./2718.json":4231,"./2929.json":4232,"./2930.json":4233,"./3074.json":4234,"./3198.json":4235,"./3529.json":4236,"./3540.json":4237,"./3541.json":4238,"./3554.json":4239,"./3607.json":4240,"./3651.json":4241,"./3670.json":4242,"./3675.json":4243,"./3855.json":4244,"./3860.json":4245,"./4345.json":4246,"./4399.json":4247,"./4844.json":4248,"./4895.json":4249,"./5133.json":4250},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EIPs=void 0,r.EIPs={1153:e("./1153.json"),1559:e("./1559.json"),2315:e("./2315.json"),2537:e("./2537.json"),2565:e("./2565.json"),2718:e("./2718.json"),2929:e("./2929.json"),2930:e("./2930.json"),3074:e("./3074.json"),3198:e("./3198.json"),3529:e("./3529.json"),3540:e("./3540.json"),3541:e("./3541.json"),3554:e("./3554.json"),3607:e("./3607.json"),3651:e("./3651.json"),3670:e("./3670.json"),3675:e("./3675.json"),3855:e("./3855.json"),3860:e("./3860.json"),4345:e("./4345.json"),4399:e("./4399.json"),4844:e("./4844.json"),4895:e("./4895.json"),5133:e("./5133.json")}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/index.js"}],[4252,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CustomChain=r.ConsensusAlgorithm=r.ConsensusType=r.Hardfork=r.Chain=void 0,function(e){e[e.Mainnet=1]="Mainnet",e[e.Ropsten=3]="Ropsten",e[e.Rinkeby=4]="Rinkeby",e[e.Goerli=5]="Goerli",e[e.Sepolia=11155111]="Sepolia"}(r.Chain||(r.Chain={})),function(e){e.Chainstart="chainstart",e.Homestead="homestead",e.Dao="dao",e.TangerineWhistle="tangerineWhistle",e.SpuriousDragon="spuriousDragon",e.Byzantium="byzantium",e.Constantinople="constantinople",e.Petersburg="petersburg",e.Istanbul="istanbul",e.MuirGlacier="muirGlacier",e.Berlin="berlin",e.London="london",e.ArrowGlacier="arrowGlacier",e.GrayGlacier="grayGlacier",e.MergeForkIdTransition="mergeForkIdTransition",e.Merge="merge",e.Shanghai="shanghai",e.ShardingForkDev="shardingFork"}(r.Hardfork||(r.Hardfork={})),function(e){e.ProofOfStake="pos",e.ProofOfWork="pow",e.ProofOfAuthority="poa"}(r.ConsensusType||(r.ConsensusType={})),function(e){e.Ethash="ethash",e.Clique="clique",e.Casper="casper"}(r.ConsensusAlgorithm||(r.ConsensusAlgorithm={})),function(e){e.PolygonMainnet="polygon-mainnet",e.PolygonMumbai="polygon-mumbai",e.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",e.ArbitrumOne="arbitrum-one",e.xDaiChain="x-dai-chain",e.OptimisticKovan="optimistic-kovan",e.OptimisticEthereum="optimistic-ethereum"}(r.CustomChain||(r.CustomChain={}))}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/enums.js"}],[4253,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"arrowGlacier",comment:"HF to delay the difficulty bomb",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/arrow-glacier.md",status:"Final",eips:[4345],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/arrowGlacier.json"}],[4254,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"berlin",comment:"HF targeted for July 2020 following the Muir Glacier HF",url:"https://eips.ethereum.org/EIPS/eip-2070",status:"Final",eips:[2565,2929,2718,2930]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/berlin.json"}],[4255,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"byzantium",comment:"Hardfork with new precompiles, instructions and other protocol changes",url:"https://eips.ethereum.org/EIPS/eip-609",status:"Final",gasConfig:{},gasPrices:{modexpGquaddivisor:{v:20,d:"Gquaddivisor from modexp precompile for gas calculation"},ecAdd:{v:500,d:"Gas costs for curve addition precompile"},ecMul:{v:4e4,d:"Gas costs for curve multiplication precompile"},ecPairing:{v:1e5,d:"Base gas costs for curve pairing precompile"},ecPairingWord:{v:8e4,d:"Gas costs regarding curve pairing precompile input length"},revert:{v:0,d:"Base fee of the REVERT opcode"},staticcall:{v:700,d:"Base fee of the STATICCALL opcode"},returndatasize:{v:2,d:"Base fee of the RETURNDATASIZE opcode"},returndatacopy:{v:3,d:"Base fee of the RETURNDATACOPY opcode"}},vm:{},pow:{minerReward:{v:"3000000000000000000",d:"the amount a miner get rewarded for mining a block"},difficultyBombDelay:{v:3e6,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/byzantium.json"}],[4256,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"chainstart",comment:"Start of the Ethereum main chain",url:"",status:"",gasConfig:{minGasLimit:{v:5e3,d:"Minimum the gas limit may ever be"},gasLimitBoundDivisor:{v:1024,d:"The bound divisor of the gas limit, used in update calculations"},maxRefundQuotient:{v:2,d:"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},gasPrices:{base:{v:2,d:"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},tierStep:{v:[0,2,3,5,8,10,20],d:"Once per operation, for a selection of them"},exp:{v:10,d:"Base fee of the EXP opcode"},expByte:{v:10,d:"Times ceil(log256(exponent)) for the EXP instruction"},sha3:{v:30,d:"Base fee of the SHA3 opcode"},sha3Word:{v:6,d:"Once per word of the SHA3 operation's data"},sload:{v:50,d:"Base fee of the SLOAD opcode"},sstoreSet:{v:2e4,d:"Once per SSTORE operation if the zeroness changes from zero"},sstoreReset:{v:5e3,d:"Once per SSTORE operation if the zeroness does not change from zero"},sstoreRefund:{v:15e3,d:"Once per SSTORE operation if the zeroness changes to zero"},jumpdest:{v:1,d:"Base fee of the JUMPDEST opcode"},log:{v:375,d:"Base fee of the LOG opcode"},logData:{v:8,d:"Per byte in a LOG* operation's data"},logTopic:{v:375,d:"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},create:{v:32e3,d:"Base fee of the CREATE opcode"},call:{v:40,d:"Base fee of the CALL opcode"},callStipend:{v:2300,d:"Free gas given at beginning of call"},callValueTransfer:{v:9e3,d:"Paid for CALL when the value transfor is non-zero"},callNewAccount:{v:25e3,d:"Paid for CALL when the destination address didn't exist prior"},selfdestructRefund:{v:24e3,d:"Refunded following a selfdestruct operation"},memory:{v:3,d:"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},quadCoeffDiv:{v:512,d:"Divisor for the quadratic particle of the memory cost equation"},createData:{v:200,d:""},tx:{v:21e3,d:"Per transaction. NOTE: Not payable on data of calls between transactions"},txCreation:{v:32e3,d:"The cost of creating a contract via tx"},txDataZero:{v:4,d:"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},txDataNonZero:{v:68,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},copy:{v:3,d:"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},ecRecover:{v:3e3,d:""},sha256:{v:60,d:""},sha256Word:{v:12,d:""},ripemd160:{v:600,d:""},ripemd160Word:{v:120,d:""},identity:{v:15,d:""},identityWord:{v:3,d:""},stop:{v:0,d:"Base fee of the STOP opcode"},add:{v:3,d:"Base fee of the ADD opcode"},mul:{v:5,d:"Base fee of the MUL opcode"},sub:{v:3,d:"Base fee of the SUB opcode"},div:{v:5,d:"Base fee of the DIV opcode"},sdiv:{v:5,d:"Base fee of the SDIV opcode"},mod:{v:5,d:"Base fee of the MOD opcode"},smod:{v:5,d:"Base fee of the SMOD opcode"},addmod:{v:8,d:"Base fee of the ADDMOD opcode"},mulmod:{v:8,d:"Base fee of the MULMOD opcode"},signextend:{v:5,d:"Base fee of the SIGNEXTEND opcode"},lt:{v:3,d:"Base fee of the LT opcode"},gt:{v:3,d:"Base fee of the GT opcode"},slt:{v:3,d:"Base fee of the SLT opcode"},sgt:{v:3,d:"Base fee of the SGT opcode"},eq:{v:3,d:"Base fee of the EQ opcode"},iszero:{v:3,d:"Base fee of the ISZERO opcode"},and:{v:3,d:"Base fee of the AND opcode"},or:{v:3,d:"Base fee of the OR opcode"},xor:{v:3,d:"Base fee of the XOR opcode"},not:{v:3,d:"Base fee of the NOT opcode"},byte:{v:3,d:"Base fee of the BYTE opcode"},address:{v:2,d:"Base fee of the ADDRESS opcode"},balance:{v:20,d:"Base fee of the BALANCE opcode"},origin:{v:2,d:"Base fee of the ORIGIN opcode"},caller:{v:2,d:"Base fee of the CALLER opcode"},callvalue:{v:2,d:"Base fee of the CALLVALUE opcode"},calldataload:{v:3,d:"Base fee of the CALLDATALOAD opcode"},calldatasize:{v:2,d:"Base fee of the CALLDATASIZE opcode"},calldatacopy:{v:3,d:"Base fee of the CALLDATACOPY opcode"},codesize:{v:2,d:"Base fee of the CODESIZE opcode"},codecopy:{v:3,d:"Base fee of the CODECOPY opcode"},gasprice:{v:2,d:"Base fee of the GASPRICE opcode"},extcodesize:{v:20,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:20,d:"Base fee of the EXTCODECOPY opcode"},blockhash:{v:20,d:"Base fee of the BLOCKHASH opcode"},coinbase:{v:2,d:"Base fee of the COINBASE opcode"},timestamp:{v:2,d:"Base fee of the TIMESTAMP opcode"},number:{v:2,d:"Base fee of the NUMBER opcode"},difficulty:{v:2,d:"Base fee of the DIFFICULTY opcode"},gaslimit:{v:2,d:"Base fee of the GASLIMIT opcode"},pop:{v:2,d:"Base fee of the POP opcode"},mload:{v:3,d:"Base fee of the MLOAD opcode"},mstore:{v:3,d:"Base fee of the MSTORE opcode"},mstore8:{v:3,d:"Base fee of the MSTORE8 opcode"},sstore:{v:0,d:"Base fee of the SSTORE opcode"},jump:{v:8,d:"Base fee of the JUMP opcode"},jumpi:{v:10,d:"Base fee of the JUMPI opcode"},pc:{v:2,d:"Base fee of the PC opcode"},msize:{v:2,d:"Base fee of the MSIZE opcode"},gas:{v:2,d:"Base fee of the GAS opcode"},push:{v:3,d:"Base fee of the PUSH opcode"},dup:{v:3,d:"Base fee of the DUP opcode"},swap:{v:3,d:"Base fee of the SWAP opcode"},callcode:{v:40,d:"Base fee of the CALLCODE opcode"},return:{v:0,d:"Base fee of the RETURN opcode"},invalid:{v:0,d:"Base fee of the INVALID opcode"},selfdestruct:{v:0,d:"Base fee of the SELFDESTRUCT opcode"}},vm:{stackLimit:{v:1024,d:"Maximum size of VM stack allowed"},callCreateDepth:{v:1024,d:"Maximum depth of call/create stack"},maxExtraDataSize:{v:32,d:"Maximum size extra data may be after Genesis"}},pow:{minimumDifficulty:{v:131072,d:"The minimum that the difficulty may ever be"},difficultyBoundDivisor:{v:2048,d:"The bound divisor of the difficulty, used in the update calculations"},durationLimit:{v:13,d:"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},epochDuration:{v:3e4,d:"Duration between proof-of-work epochs"},timebombPeriod:{v:1e5,d:"Exponential difficulty timebomb period"},minerReward:{v:"5000000000000000000",d:"the amount a miner get rewarded for mining a block"},difficultyBombDelay:{v:0,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/chainstart.json"}],[4257,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"constantinople",comment:"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)",url:"https://eips.ethereum.org/EIPS/eip-1013",status:"Final",gasConfig:{},gasPrices:{netSstoreNoopGas:{v:200,d:"Once per SSTORE operation if the value doesn't change"},netSstoreInitGas:{v:2e4,d:"Once per SSTORE operation from clean zero"},netSstoreCleanGas:{v:5e3,d:"Once per SSTORE operation from clean non-zero"},netSstoreDirtyGas:{v:200,d:"Once per SSTORE operation from dirty"},netSstoreClearRefund:{v:15e3,d:"Once per SSTORE operation for clearing an originally existing storage slot"},netSstoreResetRefund:{v:4800,d:"Once per SSTORE operation for resetting to the original non-zero value"},netSstoreResetClearRefund:{v:19800,d:"Once per SSTORE operation for resetting to the original zero value"},shl:{v:3,d:"Base fee of the SHL opcode"},shr:{v:3,d:"Base fee of the SHR opcode"},sar:{v:3,d:"Base fee of the SAR opcode"},extcodehash:{v:400,d:"Base fee of the EXTCODEHASH opcode"},create2:{v:32e3,d:"Base fee of the CREATE2 opcode"}},vm:{},pow:{minerReward:{v:"2000000000000000000",d:"The amount a miner gets rewarded for mining a block"},difficultyBombDelay:{v:5e6,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/constantinople.json"}],[4258,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"dao",comment:"DAO rescue hardfork",url:"https://eips.ethereum.org/EIPS/eip-779",status:"Final",gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/dao.json"}],[4259,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"grayGlacier",comment:"Delaying the difficulty bomb to Mid September 2022",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/gray-glacier.md",status:"Draft",eips:[5133],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/grayGlacier.json"}],[426,{"@metamask/utils":2831,lodash:4554,loglevel:4562},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){!function(e){if((0,o.isNullOrUndefined)(e.PreferencesController))return void s.default.warn(`Migration #${a}: preferences controller null or undefined, skipping migration`);if((0,o.hasProperty)(e,"AppStateController")&&(0,o.isObject)(e.AppStateController)&&(0,o.hasProperty)(e,"PreferencesController")&&(0,o.isObject)(e.PreferencesController)){var t;const r=null===(t=e.PreferencesController)||void 0===t?void 0:t.advancedGasFee,n=(0,o.isObject)(r)&&c(r);e.AppStateController.hadAdvancedGasFeesSetPriorToMigration92_3=n,(null===e.PreferencesController.advancedGasFee||(0,o.isObject)(e.PreferencesController.advancedGasFee)&&c(e.PreferencesController.advancedGasFee))&&(e.PreferencesController.advancedGasFee={})}else if(!1===(0,o.isObject)(e.AppStateController)){var r,n;null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error("typeof state.AppStateController is "+typeof e.AppStateController))}else if(!1===(0,o.isObject)(e.PreferencesController)){var i,l;null===(i=global.sentry)||void 0===i||null===(l=i.captureException)||void 0===l||l.call(i,new Error("typeof state.PreferencesController is "+typeof e.PreferencesController))}}(e)}(t.data),t},r.version=void 0;var n,o=e("@metamask/utils"),i=e("lodash"),s=(n=e("loglevel"))&&n.__esModule?n:{default:n};const a=r.version=92.3;function c(e){const t=Object.keys(e);return!(!t.includes("maxBaseFee")&&!t.includes("priorityFee"))}}}},{package:"$root$",file:"app/scripts/migrations/092.3.ts"}],[4260,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"homestead",comment:"Homestead hardfork with protocol and network changes",url:"https://eips.ethereum.org/EIPS/eip-606",status:"Final",gasConfig:{},gasPrices:{delegatecall:{v:40,d:"Base fee of the DELEGATECALL opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/homestead.json"}],[4261,{"./arrowGlacier.json":4253,"./berlin.json":4254,"./byzantium.json":4255,"./chainstart.json":4256,"./constantinople.json":4257,"./dao.json":4258,"./grayGlacier.json":4259,"./homestead.json":4260,"./istanbul.json":4262,"./london.json":4263,"./merge.json":4264,"./mergeForkIdTransition.json":4265,"./muirGlacier.json":4266,"./petersburg.json":4267,"./shanghai.json":4268,"./sharding.json":4269,"./spuriousDragon.json":4270,"./tangerineWhistle.json":4271},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hardforks=void 0,r.hardforks={chainstart:e("./chainstart.json"),homestead:e("./homestead.json"),dao:e("./dao.json"),tangerineWhistle:e("./tangerineWhistle.json"),spuriousDragon:e("./spuriousDragon.json"),byzantium:e("./byzantium.json"),constantinople:e("./constantinople.json"),petersburg:e("./petersburg.json"),istanbul:e("./istanbul.json"),muirGlacier:e("./muirGlacier.json"),berlin:e("./berlin.json"),london:e("./london.json"),shanghai:e("./shanghai.json"),arrowGlacier:e("./arrowGlacier.json"),grayGlacier:e("./grayGlacier.json"),mergeForkIdTransition:e("./mergeForkIdTransition.json"),merge:e("./merge.json"),shardingFork:e("./sharding.json")}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/index.js"}],[4262,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"istanbul",comment:"HF targeted for December 2019 following the Constantinople/Petersburg HF",url:"https://eips.ethereum.org/EIPS/eip-1679",status:"Final",gasConfig:{},gasPrices:{blake2Round:{v:1,d:"Gas cost per round for the Blake2 F precompile"},ecAdd:{v:150,d:"Gas costs for curve addition precompile"},ecMul:{v:6e3,d:"Gas costs for curve multiplication precompile"},ecPairing:{v:45e3,d:"Base gas costs for curve pairing precompile"},ecPairingWord:{v:34e3,d:"Gas costs regarding curve pairing precompile input length"},txDataNonZero:{v:16,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},sstoreSentryGasEIP2200:{v:2300,d:"Minimum gas required to be present for an SSTORE call, not consumed"},sstoreNoopGasEIP2200:{v:800,d:"Once per SSTORE operation if the value doesn't change"},sstoreDirtyGasEIP2200:{v:800,d:"Once per SSTORE operation if a dirty value is changed"},sstoreInitGasEIP2200:{v:2e4,d:"Once per SSTORE operation from clean zero to non-zero"},sstoreInitRefundEIP2200:{v:19200,d:"Once per SSTORE operation for resetting to the original zero value"},sstoreCleanGasEIP2200:{v:5e3,d:"Once per SSTORE operation from clean non-zero to something else"},sstoreCleanRefundEIP2200:{v:4200,d:"Once per SSTORE operation for resetting to the original non-zero value"},sstoreClearRefundEIP2200:{v:15e3,d:"Once per SSTORE operation for clearing an originally existing storage slot"},balance:{v:700,d:"Base fee of the BALANCE opcode"},extcodehash:{v:700,d:"Base fee of the EXTCODEHASH opcode"},chainid:{v:2,d:"Base fee of the CHAINID opcode"},selfbalance:{v:5,d:"Base fee of the SELFBALANCE opcode"},sload:{v:800,d:"Base fee of the SLOAD opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/istanbul.json"}],[4263,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"london",comment:"HF targeted for July 2021 following the Berlin fork",url:"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md",status:"Final",eips:[1559,3198,3529,3541]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/london.json"}],[4264,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"merge",comment:"Hardfork to upgrade the consensus mechanism to Proof-of-Stake",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/merge.md",status:"Final",consensus:{type:"pos",algorithm:"casper",casper:{}},eips:[3675,4399]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/merge.json"}],[4265,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"mergeForkIdTransition",comment:"Pre-merge hardfork to fork off non-upgraded clients",url:"https://eips.ethereum.org/EIPS/eip-3675",status:"Draft",eips:[]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/mergeForkIdTransition.json"}],[4266,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"muirGlacier",comment:"HF to delay the difficulty bomb",url:"https://eips.ethereum.org/EIPS/eip-2384",status:"Final",gasConfig:{},gasPrices:{},vm:{},pow:{difficultyBombDelay:{v:9e6,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/muirGlacier.json"}],[4267,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"petersburg",comment:"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople",url:"https://eips.ethereum.org/EIPS/eip-1716",status:"Final",gasConfig:{},gasPrices:{netSstoreNoopGas:{v:null,d:"Removed along EIP-1283"},netSstoreInitGas:{v:null,d:"Removed along EIP-1283"},netSstoreCleanGas:{v:null,d:"Removed along EIP-1283"},netSstoreDirtyGas:{v:null,d:"Removed along EIP-1283"},netSstoreClearRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetClearRefund:{v:null,d:"Removed along EIP-1283"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/petersburg.json"}],[4268,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"shanghai",comment:"Next feature hardfork after the merge hardfork having withdrawals, warm coinbase, push0, limit/meter initcode",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/shanghai.md",status:"Final",eips:[3651,3855,3860,4895]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/shanghai.json"}],[4269,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"shardingFork",comment:"Internal hardfork to test proto-danksharding (do not use in production)",url:"https://eips.ethereum.org/EIPS/eip-4844",status:"Experimental",eips:[4844]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/sharding.json"}],[427,{"@metamask/utils":2831,lodash:4554,loglevel:4562},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,i.hasProperty)(e,"PhishingController")&&(0,i.isObject)(e.PhishingController))delete e.PhishingController.stalelistLastFetched,delete e.PhishingController.hotlistLastFetched;else if((0,i.hasProperty)(e,"PhishingController")){var t,r;null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("typeof state.PhishingController is "+typeof e.PhishingController))}else s.default.warn("typeof state.PhishingController is undefined");return e}(t.data),t},r.version=void 0;var n,o=e("lodash"),i=e("@metamask/utils"),s=(n=e("loglevel"))&&n.__esModule?n:{default:n};const a=r.version=92}}},{package:"$root$",file:"app/scripts/migrations/092.ts"}],[4270,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"spuriousDragon",comment:"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit",url:"https://eips.ethereum.org/EIPS/eip-607",status:"Final",gasConfig:{},gasPrices:{expByte:{v:50,d:"Times ceil(log256(exponent)) for the EXP instruction"}},vm:{maxCodeSize:{v:24576,d:"Maximum length of contract code"}},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/spuriousDragon.json"}],[4271,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"tangerineWhistle",comment:"Hardfork with gas cost changes for IO-heavy operations",url:"https://eips.ethereum.org/EIPS/eip-608",status:"Final",gasConfig:{},gasPrices:{sload:{v:200,d:"Once per SLOAD operation"},call:{v:700,d:"Once per CALL operation & message call transaction"},extcodesize:{v:700,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:700,d:"Base fee of the EXTCODECOPY opcode"},balance:{v:400,d:"Base fee of the BALANCE opcode"},delegatecall:{v:700,d:"Base fee of the DELEGATECALL opcode"},callcode:{v:700,d:"Base fee of the CALLCODE opcode"},selfdestruct:{v:5e3,d:"Base fee of the SELFDESTRUCT opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/tangerineWhistle.json"}],[4272,{"./common":4225,"./enums":4252,"./types":4273,"./utils":4274},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);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),o=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}),o(e("./common"),r),o(e("./enums"),r),o(e("./types"),r),o(e("./utils"),r)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/index.js"}],[4273,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/types.js"}],[4274,{"./enums":4252,"@ethereumjs/util":4283},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseGethGenesis=void 0;const n=e("@ethereumjs/util"),o=e("./enums");function i(e,t=!0){const{name:r,config:i,difficulty:s,mixHash:a,gasLimit:c,coinbase:l,baseFeePerGas:u}=e;let{extraData:d,timestamp:f,nonce:h}=e;const p=Number(f),{chainId:m}=i;if(""===d&&(d="0x"),(0,n.isHexPrefixed)(f)||(f=(0,n.intToHex)(parseInt(f))),18!==h.length&&(h=function(e){return e&&"0x0"!==e?(0,n.isHexPrefixed)(e)?"0x"+(0,n.stripHexPrefix)(e).padStart(16,"0"):"0x"+e.padStart(16,"0"):"0x0000000000000000"}(h)),i.eip155Block!==i.eip158Block)throw new Error("EIP155 block number must equal EIP 158 block number since both are part of SpuriousDragon hardfork and the client only supports activating the full hardfork");const g={name:r,chainId:m,networkId:m,genesis:{timestamp:f,gasLimit:parseInt(c),difficulty:parseInt(s),nonce:h,extraData:d,mixHash:a,coinbase:l,baseFeePerGas:u},hardfork:undefined,hardforks:[],bootstrapNodes:[],consensus:i.clique!==undefined?{type:"poa",algorithm:"clique",clique:{period:i.clique.period??i.clique.blockperiodseconds,epoch:i.clique.epoch??i.clique.epochlength}}:{type:"pow",algorithm:"ethash",ethash:{}}},b={[o.Hardfork.Homestead]:{name:"homesteadBlock"},[o.Hardfork.Dao]:{name:"daoForkBlock"},[o.Hardfork.TangerineWhistle]:{name:"eip150Block"},[o.Hardfork.SpuriousDragon]:{name:"eip155Block"},[o.Hardfork.Byzantium]:{name:"byzantiumBlock"},[o.Hardfork.Constantinople]:{name:"constantinopleBlock"},[o.Hardfork.Petersburg]:{name:"petersburgBlock"},[o.Hardfork.Istanbul]:{name:"istanbulBlock"},[o.Hardfork.MuirGlacier]:{name:"muirGlacierBlock"},[o.Hardfork.Berlin]:{name:"berlinBlock"},[o.Hardfork.London]:{name:"londonBlock"},[o.Hardfork.MergeForkIdTransition]:{name:"mergeForkBlock",postMerge:t},[o.Hardfork.Shanghai]:{name:"shanghaiTime",postMerge:!0,isTimestamp:!0},[o.Hardfork.ShardingForkDev]:{name:"shardingForkTime",postMerge:!0,isTimestamp:!0}},v=Object.keys(b).reduce((e,t)=>(e[b[t].name]=t,e),{}),y=Object.keys(i).filter(e=>v[e]!==undefined&&i[e]!==undefined&&null!==i[e]);if(g.hardforks=y.map(e=>({name:v[e],block:!0===b[v[e]].isTimestamp||"number"!=typeof i[e]?null:i[e],timestamp:!0===b[v[e]].isTimestamp&&"number"==typeof i[e]?i[e]:undefined})).filter(e=>null!==e.block||e.timestamp!==undefined),g.hardforks.sort(function(e,t){return(e.block??Infinity)-(t.block??Infinity)}),g.hardforks.sort(function(e,t){return(e.timestamp??p)-(t.timestamp??p)}),i.terminalTotalDifficulty!==undefined){const e={name:o.Hardfork.Merge,ttd:i.terminalTotalDifficulty,block:null},t=g.hardforks.findIndex(e=>!0===b[e.name]?.postMerge);-1!==t?g.hardforks.splice(t,0,e):g.hardforks.push(e)}const k=g.hardforks.length>0?g.hardforks.slice(-1)[0]:undefined;return g.hardfork=k?.name,g.hardforks.unshift({name:o.Hardfork.Chainstart,block:0}),g}r.parseGethGenesis=function(e,t,r){try{if(["config","difficulty","gasLimit","alloc"].some(t=>!(t in e)))throw new Error("Invalid format, expected geth genesis fields missing");return t!==undefined&&(e.name=t),i(e,r)}catch(e){throw new Error(`Error parsing parameters file: ${e.message}`)}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/utils.js"}],[4275,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){if(Array.isArray(e)){const t=[];let r=0;for(let o=0;o<e.length;o++){const i=n(e[o]);t.push(i),r+=i.length}return h(s(r,192),...t)}const t=b(e);return 1===t.length&&t[0]<128?t:h(s(t.length,128),t)}function o(e,t,r){if(r>e.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,r)}function i(e){if(0===e[0])throw new Error("invalid RLP: extra zeros");return d(u(e))}function s(e,t){if(e<56)return Uint8Array.from([e+t]);const r=m(e),n=m(t+55+r.length/2);return Uint8Array.from(f(n+r))}function a(e,t=!1){if(null==e||0===e.length)return Uint8Array.from([]);const r=c(b(e));if(t)return r;if(0!==r.remainder.length)throw new Error("invalid RLP: remainder must be zero");return r.data}function c(e){let t,r,n,s,a;const l=[],u=e[0];if(u<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(u<=183){if(t=u-127,n=128===u?Uint8Array.from([]):o(e,1,t),2===t&&n[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:n,remainder:e.slice(t)}}if(u<=191){if(r=u-182,e.length-1<r)throw new Error("invalid RLP: not enough bytes for string length");if(t=i(o(e,1,r)),t<=55)throw new Error("invalid RLP: expected string length to be greater than 55");return n=o(e,r,t+r),{data:n,remainder:e.slice(t+r)}}if(u<=247){for(t=u-191,s=o(e,1,t);s.length;)a=c(s),l.push(a.data),s=a.remainder;return{data:l,remainder:e.slice(t)}}{if(r=u-246,t=i(o(e,1,r)),t<56)throw new Error("invalid RLP: encoded list too short");const n=r+t;if(n>e.length)throw new Error("invalid RLP: total length is larger than the data");for(s=o(e,r,n);s.length;)a=c(s),l.push(a.data),s=a.remainder;return{data:l,remainder:e.slice(n)}}}Object.defineProperty(r,"__esModule",{value:!0}),r.RLP=r.utils=r.decode=r.encode=void 0,r.encode=n,r.decode=a;const l=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function u(e){let t="";for(let r=0;r<e.length;r++)t+=l[e[r]];return t}function d(e){const t=Number.parseInt(e,16);if(Number.isNaN(t))throw new Error("Invalid byte sequence");return t}function f(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r;t[r]=d(e.slice(n,n+2))}return t}function h(...e){if(1===e.length)return e[0];const t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const o=e[t];r.set(o,n),n+=o.length}return r}function p(e){return(new TextEncoder).encode(e)}function m(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");const t=e.toString(16);return t.length%2?`0${t}`:t}function g(e){return e.length>=2&&"0"===e[0]&&"x"===e[1]}function b(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return g(e)?f((t="string"!=typeof(r=e)?r:g(r)?r.slice(2):r).length%2?`0${t}`:t):p(e);var t,r;if("number"==typeof e||"bigint"==typeof e)return e?f(m(e)):Uint8Array.from([]);if(null===e||e===undefined)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof e)}r.utils={bytesToHex:u,concatBytes:h,hexToBytes:f,utf8ToBytes:p},r.RLP={encode:n,decode:a}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util>@ethereumjs/rlp",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/rlp/dist/index.js"}],[4276,{"./bytes":4279,"./constants":4280,"./helpers":4282,"./internal":4284,"@ethereumjs/rlp":4275,buffer:3792,"ethereum-cryptography/keccak":4019,"ethereum-cryptography/secp256k1":4040,"ethereum-cryptography/utils":4042},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.accountBodyToRLP=r.accountBodyToSlim=r.accountBodyFromSlim=r.isZeroAddress=r.zeroAddress=r.importPublic=r.privateToAddress=r.privateToPublic=r.publicToAddress=r.pubToAddress=r.isValidPublic=r.isValidPrivate=r.generateAddress2=r.generateAddress=r.isValidChecksumAddress=r.toChecksumAddress=r.isValidAddress=r.Account=void 0;const n=e("@ethereumjs/rlp"),o=e("ethereum-cryptography/keccak"),i=e("ethereum-cryptography/secp256k1"),s=e("ethereum-cryptography/utils"),a=e("./bytes"),c=e("./constants"),l=e("./helpers"),u=e("./internal"),d=BigInt(0);class f{constructor(e=d,t=d,r=c.KECCAK256_RLP,n=c.KECCAK256_NULL){this.nonce=e,this.balance=t,this.storageRoot=r,this.codeHash=n,this._validate()}static fromAccountData(e){const{nonce:t,balance:r,storageRoot:n,codeHash:o}=e;return new f(t!==undefined?(0,a.bufferToBigInt)((0,a.toBuffer)(t)):undefined,r!==undefined?(0,a.bufferToBigInt)((0,a.toBuffer)(r)):undefined,n!==undefined?(0,a.toBuffer)(n):undefined,o!==undefined?(0,a.toBuffer)(o):undefined)}static fromRlpSerializedAccount(e){const t=(0,a.arrToBufArr)(n.RLP.decode(Uint8Array.from(e)));if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)}static fromValuesArray(e){const[t,r,n,o]=e;return new f((0,a.bufferToBigInt)(t),(0,a.bufferToBigInt)(r),n,o)}_validate(){if(this.nonce<d)throw new Error("nonce must be greater than zero");if(this.balance<d)throw new Error("balance must be greater than zero");if(32!==this.storageRoot.length)throw new Error("storageRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")}raw(){return[(0,a.bigIntToUnpaddedBuffer)(this.nonce),(0,a.bigIntToUnpaddedBuffer)(this.balance),this.storageRoot,this.codeHash]}serialize(){return t.from(n.RLP.encode((0,a.bufArrToArr)(this.raw())))}isContract(){return!this.codeHash.equals(c.KECCAK256_NULL)}isEmpty(){return this.balance===d&&this.nonce===d&&this.codeHash.equals(c.KECCAK256_NULL)}}r.Account=f;r.isValidAddress=function(e){try{(0,l.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};r.toChecksumAddress=function(e,r){(0,l.assertIsHexString)(e);const n=(0,u.stripHexPrefix)(e).toLowerCase();let i="";if(r!==undefined){i=(0,a.bufferToBigInt)((0,a.toBuffer)(r)).toString()+"0x"}const c=t.from(i+n,"utf8"),d=(0,s.bytesToHex)((0,o.keccak256)(c));let f="0x";for(let e=0;e<n.length;e++)parseInt(d[e],16)>=8?f+=n[e].toUpperCase():f+=n[e];return f};r.isValidChecksumAddress=function(e,t){return(0,r.isValidAddress)(e)&&(0,r.toChecksumAddress)(e,t)===e};r.generateAddress=function(e,r){return(0,l.assertIsBuffer)(e),(0,l.assertIsBuffer)(r),(0,a.bufferToBigInt)(r)===BigInt(0)?t.from((0,o.keccak256)(n.RLP.encode((0,a.bufArrToArr)([e,null])))).slice(-20):t.from((0,o.keccak256)(n.RLP.encode((0,a.bufArrToArr)([e,r])))).slice(-20)};r.generateAddress2=function(e,r,n){if((0,l.assertIsBuffer)(e),(0,l.assertIsBuffer)(r),(0,l.assertIsBuffer)(n),20!==e.length)throw new Error("Expected from to be of length 20");if(32!==r.length)throw new Error("Expected salt to be of length 32");const i=(0,o.keccak256)(t.concat([t.from("ff","hex"),e,r,(0,o.keccak256)(n)]));return(0,a.toBuffer)(i).slice(-20)};r.isValidPrivate=function(e){return i.secp256k1.utils.isValidPrivateKey(e)};r.isValidPublic=function(e,r=!1){if((0,l.assertIsBuffer)(e),64===e.length)try{return i.secp256k1.ProjectivePoint.fromHex(t.concat([t.from([4]),e])),!0}catch(e){return!1}if(!r)return!1;try{return i.secp256k1.ProjectivePoint.fromHex(e),!0}catch(e){return!1}};r.pubToAddress=function(e,r=!1){if((0,l.assertIsBuffer)(e),r&&64!==e.length&&(e=t.from(i.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),64!==e.length)throw new Error("Expected pubKey to be of length 64");return t.from((0,o.keccak256)(e)).slice(-20)},r.publicToAddress=r.pubToAddress;r.privateToPublic=function(e){return(0,l.assertIsBuffer)(e),t.from(i.secp256k1.ProjectivePoint.fromPrivateKey(e).toRawBytes(!1).slice(1))};r.privateToAddress=function(e){return(0,r.publicToAddress)((0,r.privateToPublic)(e))};r.importPublic=function(e){return(0,l.assertIsBuffer)(e),64!==e.length&&(e=t.from(i.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),e};r.zeroAddress=function(){const e=(0,a.zeros)(20);return(0,a.bufferToHex)(e)};function h(e){const[t,r,n,o]=e;return[t,r,0===(0,a.arrToBufArr)(n).length?c.KECCAK256_RLP:n,0===(0,a.arrToBufArr)(o).length?c.KECCAK256_NULL:o]}r.isZeroAddress=function(e){try{(0,l.assertIsString)(e)}catch(e){return!1}return(0,r.zeroAddress)()===e},r.accountBodyFromSlim=h;const p=new Uint8Array(0);r.accountBodyToSlim=function(e){const[t,r,n,o]=e;return[t,r,(0,a.arrToBufArr)(n).equals(c.KECCAK256_RLP)?p:n,(0,a.arrToBufArr)(o).equals(c.KECCAK256_NULL)?p:o]},r.accountBodyToRLP=function(e,t=!0){const r=t?h(e):e;return(0,a.arrToBufArr)(n.RLP.encode(r))}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/account.js"}],[4277,{"./account":4276,"./bytes":4279,buffer:3792},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.Address=void 0;const n=e("./account"),o=e("./bytes");class i{constructor(e){if(20!==e.length)throw new Error("Invalid address length");this.buf=e}static zero(){return new i((0,o.zeros)(20))}static fromString(e){if(!(0,n.isValidAddress)(e))throw new Error("Invalid address");return new i((0,o.toBuffer)(e))}static fromPublicKey(e){if(!t.isBuffer(e))throw new Error("Public key should be Buffer");const r=(0,n.pubToAddress)(e);return new i(r)}static fromPrivateKey(e){if(!t.isBuffer(e))throw new Error("Private key should be Buffer");const r=(0,n.privateToAddress)(e);return new i(r)}static generate(e,t){if("bigint"!=typeof t)throw new Error("Expected nonce to be a bigint");return new i((0,n.generateAddress)(e.buf,(0,o.bigIntToBuffer)(t)))}static generate2(e,r,o){if(!t.isBuffer(r))throw new Error("Expected salt to be a Buffer");if(!t.isBuffer(o))throw new Error("Expected initCode to be a Buffer");return new i((0,n.generateAddress2)(e.buf,r,o))}equals(e){return this.buf.equals(e.buf)}isZero(){return this.equals(i.zero())}isPrecompileOrSystemAddress(){const e=(0,o.bufferToBigInt)(this.buf),t=BigInt(0),r=BigInt("0xffff");return e>=t&&e<=r}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return t.from(this.buf)}}r.Address=i}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/address.js"}],[4278,{events:4092},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncEventEmitter=void 0;const n=e("events");class o extends n.EventEmitter{emit(e,...t){let[r,n]=t;const o=this;let i=o._events[e]??[];return n===undefined&&"function"==typeof r&&(n=r,r=undefined),"newListener"!==e&&"removeListener"!==e||(r={event:r,fn:n},n=undefined),i=Array.isArray(i)?i:[i],async function(e,t,r){let n;for await(const o of t)try{o.length<2?o.call(e,r):await new Promise((t,n)=>{o.call(e,r,e=>{e?n(e):t()})})}catch(e){n=e}if(n)throw n}(o,i.slice(),r).then(n).catch(n),o.listenerCount(e)>0}once(e,t){const r=this;let n;if("function"!=typeof t)throw new TypeError("listener must be a function");return n=t.length>=2?function(o,i){r.removeListener(e,n),t(o,i)}:function(o){r.removeListener(e,n),t(o,n)},r.on(e,n),r}first(e,t){let r=this._events[e]??[];if("function"!=typeof t)throw new TypeError("listener must be a function");return Array.isArray(r)||(this._events[e]=r=[r]),r.unshift(t),this}before(e,t,r){return this.beforeOrAfter(e,t,r)}after(e,t,r){return this.beforeOrAfter(e,t,r,"after")}beforeOrAfter(e,t,r,n){let o,i,s=this._events[e]??[];const a="after"===n?1:0;if("function"!=typeof r)throw new TypeError("listener must be a function");if("function"!=typeof t)throw new TypeError("target must be a function");for(Array.isArray(s)||(this._events[e]=s=[s]),i=s.length,o=s.length;o--;)if(s[o]===t){i=o+a;break}return s.splice(i,0,r),this}on(e,t){return super.on(e,t)}addListener(e,t){return super.addListener(e,t)}prependListener(e,t){return super.prependListener(e,t)}prependOnceListener(e,t){return super.prependOnceListener(e,t)}removeAllListeners(e){return super.removeAllListeners(e)}removeListener(e,t){return super.removeListener(e,t)}eventNames(){return super.eventNames()}listeners(e){return super.listeners(e)}listenerCount(e){return super.listenerCount(e)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(e){return super.setMaxListeners(e)}}r.AsyncEventEmitter=o}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/asyncEventEmitter.js"}],[4279,{"./helpers":4282,"./internal":4284,buffer:3792},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.intToUnpaddedBuffer=r.bigIntToUnpaddedBuffer=r.bigIntToHex=r.bufArrToArr=r.arrToBufArr=r.validateNoLeadingZeroes=r.baToJSON=r.toUtf8=r.short=r.addHexPrefix=r.toUnsigned=r.fromSigned=r.bufferToInt=r.bigIntToBuffer=r.bufferToBigInt=r.bufferToHex=r.toBuffer=r.unpadHexString=r.unpadArray=r.unpadBuffer=r.setLengthRight=r.setLengthLeft=r.zeros=r.intToBuffer=r.intToHex=void 0;const n=e("./helpers"),o=e("./internal");r.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Received an invalid integer type: ${e}`);return`0x${e.toString(16)}`};r.intToBuffer=function(e){const n=(0,r.intToHex)(e);return t.from((0,o.padToEven)(n.slice(2)),"hex")};r.zeros=function(e){return t.allocUnsafe(e).fill(0)};const i=function(e,t,n){const o=(0,r.zeros)(t);return n?e.length<t?(e.copy(o),o):e.slice(0,t):e.length<t?(e.copy(o,t-e.length),o):e.slice(-t)};r.setLengthLeft=function(e,t){return(0,n.assertIsBuffer)(e),i(e,t,!1)};r.setLengthRight=function(e,t){return(0,n.assertIsBuffer)(e),i(e,t,!0)};const s=function(e){let t=e[0];for(;e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};r.unpadBuffer=function(e){return(0,n.assertIsBuffer)(e),s(e)};r.unpadArray=function(e){return(0,n.assertIsArray)(e),s(e)};r.unpadHexString=function(e){return(0,n.assertIsHexString)(e),e=(0,o.stripHexPrefix)(e),"0x"+s(e)};r.toBuffer=function(e){if(null===e||e===undefined)return t.allocUnsafe(0);if(t.isBuffer(e))return t.from(e);if(Array.isArray(e)||e instanceof Uint8Array)return t.from(e);if("string"==typeof e){if(!(0,o.isHexString)(e))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${e}`);return t.from((0,o.padToEven)((0,o.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,r.intToBuffer)(e);if("bigint"==typeof e){if(e<BigInt(0))throw new Error(`Cannot convert negative bigint to buffer. Given: ${e}`);let r=e.toString(16);return r.length%2&&(r="0"+r),t.from(r,"hex")}if(e.toArray)return t.from(e.toArray());if(e.toBuffer)return t.from(e.toBuffer());throw new Error("invalid type")};function a(e){const t=(0,r.bufferToHex)(e);return"0x"===t?BigInt(0):BigInt(t)}function c(e){return(0,r.toBuffer)("0x"+e.toString(16))}r.bufferToHex=function(e){return"0x"+(e=(0,r.toBuffer)(e)).toString("hex")},r.bufferToBigInt=a,r.bigIntToBuffer=c;r.bufferToInt=function(e){const t=Number(a(e));if(!Number.isSafeInteger(t))throw new Error("Number exceeds 53 bits");return t};r.fromSigned=function(e){return BigInt.asIntN(256,a(e))};r.toUnsigned=function(e){return c(BigInt.asUintN(256,e))};r.addHexPrefix=function(e){return"string"!=typeof e||(0,o.isHexPrefixed)(e)?e:"0x"+e},r.short=function(e,r=50){const n=t.isBuffer(e)?e.toString("hex"):e;return n.length<=r?n:n.slice(0,r)+"…"};r.toUtf8=function(e){if((e=(0,o.stripHexPrefix)(e)).length%2!=0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return t.from(e.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")};r.baToJSON=function(e){if(t.isBuffer(e))return`0x${e.toString("hex")}`;if(e instanceof Array){const t=[];for(let n=0;n<e.length;n++)t.push((0,r.baToJSON)(e[n]));return t}};r.validateNoLeadingZeroes=function(e){for(const[t,r]of Object.entries(e))if(r!==undefined&&r.length>0&&0===r[0])throw new Error(`${t} cannot have leading zeroes, received: ${r.toString("hex")}`)},r.arrToBufArr=function e(r){return Array.isArray(r)?r.map(t=>e(t)):t.from(r)},r.bufArrToArr=function e(t){return Array.isArray(t)?t.map(t=>e(t)):Uint8Array.from(t??[])};r.bigIntToHex=e=>"0x"+e.toString(16),r.bigIntToUnpaddedBuffer=function(e){return(0,r.unpadBuffer)(c(e))},r.intToUnpaddedBuffer=function(e){return(0,r.unpadBuffer)((0,r.intToBuffer)(e))}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/bytes.js"}],[428,{"@metamask/utils":2831,lodash:4554},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=function(e){if((0,o.hasProperty)(e,"NetworkController")&&(0,o.isObject)(e.NetworkController)&&(0,o.hasProperty)(e.NetworkController,"providerConfig")&&(0,o.isObject)(e.NetworkController.providerConfig)){const{providerConfig:t}=e.NetworkController;return t.ticker?e:(e.NetworkController.providerConfig={ticker:"ETH",...t},{...e,NetworkController:e.NetworkController})}var t,r;if((0,o.isObject)(e.NetworkController)){if((0,o.isObject)(e.NetworkController)&&!(0,o.isObject)(e.NetworkController.providerConfig)){var n,i;null===(n=global.sentry)||void 0===n||null===(i=n.captureException)||void 0===i||i.call(n,new Error("typeof state.NetworkController.providerConfig is "+typeof e.NetworkController.providerConfig))}}else null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("typeof state.NetworkController is "+typeof e.NetworkController));return e}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/utils");const i=r.version=93}}},{package:"$root$",file:"app/scripts/migrations/093.ts"}],[4280,{buffer:3792,"ethereum-cryptography/secp256k1":4040},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MAX_WITHDRAWALS_PER_PAYLOAD=r.RLP_EMPTY_STRING=r.KECCAK256_RLP=r.KECCAK256_RLP_S=r.KECCAK256_RLP_ARRAY=r.KECCAK256_RLP_ARRAY_S=r.KECCAK256_NULL=r.KECCAK256_NULL_S=r.TWO_POW256=r.SECP256K1_ORDER_DIV_2=r.SECP256K1_ORDER=r.MAX_INTEGER_BIGINT=r.MAX_INTEGER=r.MAX_UINT64=void 0;const n=e("buffer"),o=e("ethereum-cryptography/secp256k1");r.MAX_UINT64=BigInt("0xffffffffffffffff"),r.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),r.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),r.SECP256K1_ORDER=o.secp256k1.CURVE.n,r.SECP256K1_ORDER_DIV_2=o.secp256k1.CURVE.n/BigInt(2),r.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),r.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.KECCAK256_NULL=n.Buffer.from(r.KECCAK256_NULL_S,"hex"),r.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.KECCAK256_RLP_ARRAY=n.Buffer.from(r.KECCAK256_RLP_ARRAY_S,"hex"),r.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.KECCAK256_RLP=n.Buffer.from(r.KECCAK256_RLP_S,"hex"),r.RLP_EMPTY_STRING=n.Buffer.from([128]),r.MAX_WITHDRAWALS_PER_PAYLOAD=16}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/constants.js"}],[4281,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.compactBytesToNibbles=r.bytesToNibbles=r.nibblesToCompactBytes=r.nibblesToBytes=r.hasTerminator=void 0;r.hasTerminator=e=>e.length>0&&16===e[e.length-1];r.nibblesToBytes=(e,t)=>{for(let r=0,n=0;n<e.length;r+=1,n+=2)t[r]=e[n]<<4|e[n+1]};r.nibblesToCompactBytes=e=>{let t=0;(0,r.hasTerminator)(e)&&(t=1,e=e.subarray(0,e.length-1));const n=new Uint8Array(e.length/2+1);return n[0]=t<<5,1&~e.length||(n[0]|=16,n[0]|=e[0],e=e.subarray(1)),(0,r.nibblesToBytes)(e,n.subarray(1)),n};r.bytesToNibbles=e=>{const t=2*e.length+1,r=new Uint8Array(t);for(let t=0;t<e.length;t++){const n=e[t];r[2*t]=n/16,r[2*t+1]=n%16}return r[t-1]=16,r};r.compactBytesToNibbles=e=>{if(0===e.length)return e;let t=(0,r.bytesToNibbles)(e);t[0]<2&&(t=t.subarray(0,t.length-1));const n=2-(1&t[0]);return t.subarray(n)}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/encoding.js"}],[4282,{"../../../../../is-buffer/index.js":4355,"./internal":4284},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.assertIsString=r.assertIsArray=r.assertIsBuffer=r.assertIsHexString=void 0;const n=e("./internal");r.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){throw new Error(`This method only supports 0x-prefixed hex strings but input was: ${e}`)}};r.assertIsBuffer=function(e){if(!t.isBuffer(e)){throw new Error(`This method only supports Buffer but input was: ${e}`)}};r.assertIsArray=function(e){if(!Array.isArray(e)){throw new Error(`This method only supports number arrays but input was: ${e}`)}};r.assertIsString=function(e){if("string"!=typeof e){throw new Error(`This method only supports strings but input was: ${e}`)}}}).call(this)}).call(this,{isBuffer:e("../../../../../is-buffer/index.js")})}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/helpers.js"}],[4283,{"./account":4276,"./address":4277,"./asyncEventEmitter":4278,"./bytes":4279,"./constants":4280,"./encoding":4281,"./internal":4284,"./lock":4285,"./provider":4286,"./signature":4287,"./types":4288,"./units":4289,"./withdrawal":4290},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);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),o=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.toAscii=r.stripHexPrefix=r.padToEven=r.isHexString=r.isHexPrefixed=r.getKeys=r.getBinarySize=r.fromUtf8=r.fromAscii=r.arrayContainsArray=void 0,o(e("./constants"),r),o(e("./units"),r),o(e("./account"),r),o(e("./address"),r),o(e("./withdrawal"),r),o(e("./signature"),r),o(e("./bytes"),r),o(e("./types"),r),o(e("./encoding"),r),o(e("./asyncEventEmitter"),r);var i=e("./internal");Object.defineProperty(r,"arrayContainsArray",{enumerable:!0,get:function(){return i.arrayContainsArray}}),Object.defineProperty(r,"fromAscii",{enumerable:!0,get:function(){return i.fromAscii}}),Object.defineProperty(r,"fromUtf8",{enumerable:!0,get:function(){return i.fromUtf8}}),Object.defineProperty(r,"getBinarySize",{enumerable:!0,get:function(){return i.getBinarySize}}),Object.defineProperty(r,"getKeys",{enumerable:!0,get:function(){return i.getKeys}}),Object.defineProperty(r,"isHexPrefixed",{enumerable:!0,get:function(){return i.isHexPrefixed}}),Object.defineProperty(r,"isHexString",{enumerable:!0,get:function(){return i.isHexString}}),Object.defineProperty(r,"padToEven",{enumerable:!0,get:function(){return i.padToEven}}),Object.defineProperty(r,"stripHexPrefix",{enumerable:!0,get:function(){return i.stripHexPrefix}}),Object.defineProperty(r,"toAscii",{enumerable:!0,get:function(){return i.toAscii}}),o(e("./lock"),r),o(e("./provider"),r)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/index.js"}],[4284,{buffer:3792},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){function t(e){if("string"!=typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type "+typeof e);return"0"===e[0]&&"x"===e[1]}Object.defineProperty(r,"__esModule",{value:!0}),r.isHexString=r.getKeys=r.fromAscii=r.fromUtf8=r.toAscii=r.arrayContainsArray=r.getBinarySize=r.padToEven=r.stripHexPrefix=r.isHexPrefixed=void 0,r.isHexPrefixed=t;function n(e){let t=e;if("string"!=typeof t)throw new Error("[padToEven] value must be type 'string', received "+typeof t);return t.length%2&&(t=`0${t}`),t}r.stripHexPrefix=e=>{if("string"!=typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received "+typeof e);return t(e)?e.slice(2):e},r.padToEven=n,r.getBinarySize=function(t){if("string"!=typeof t)throw new Error("[getBinarySize] method requires input type 'string', received "+typeof t);return e.byteLength(t,"utf8")},r.arrayContainsArray=function(e,t,r){if(!0!==Array.isArray(e))throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof e}'`);if(!0!==Array.isArray(t))throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof t}'`);return t[!0===r?"some":"every"](t=>e.indexOf(t)>=0)},r.toAscii=function(e){let t="",r=0;const n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){const n=parseInt(e.substr(r,2),16);t+=String.fromCharCode(n)}return t},r.fromUtf8=function(t){return`0x${n(e.from(t,"utf8").toString("hex")).replace(/^0+|0+$/g,"")}`},r.fromAscii=function(e){let t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r).toString(16);t+=n.length<2?`0${n}`:n}return`0x${t}`},r.getKeys=function(e,t,r){if(!Array.isArray(e))throw new Error("[getKeys] method expects input 'params' to be an array, got "+typeof e);if("string"!=typeof t)throw new Error("[getKeys] method expects input 'key' to be type 'string', got "+typeof e);const n=[];for(let o=0;o<e.length;o++){let i=e[o][t];if(!0!==r||i){if("string"!=typeof i)throw new Error("invalid abi - expected type 'string', received "+typeof i)}else i="";n.push(i)}return n},r.isHexString=function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&!(void 0!==t&&t>0&&e.length!==2+2*t)}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/internal.js"}],[4285,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Lock=void 0;r.Lock=class{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise(e=>this.promiseResolverQueue.push(e))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(1===this.permits&&this.promiseResolverQueue.length>0){this.permits-=1;const e=this.promiseResolverQueue.shift();e&&e(!0)}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/lock.js"}],[4286,{"micro-ftch":4614},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getProvider=r.fetchFromProvider=void 0;const n=e("micro-ftch");r.fetchFromProvider=async(e,t)=>(await(0,n.default)(e,{headers:{"content-type":"application/json"},type:"json",data:{method:t.method,params:t.params,jsonrpc:"2.0",id:1}})).result;r.getProvider=e=>{if("string"==typeof e)return e;if(e?.connection?.url!==undefined)return e.connection.url;throw new Error("Must provide valid provider URL or Web3Provider")}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/provider.js"}],[4287,{"./bytes":4279,"./constants":4280,"./helpers":4282,buffer:3792,"ethereum-cryptography/keccak":4019,"ethereum-cryptography/secp256k1":4040},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.hashPersonalMessage=r.isValidSignature=r.fromRpcSig=r.toCompactSig=r.toRpcSig=r.ecrecover=r.ecsign=void 0;const n=e("ethereum-cryptography/keccak"),o=e("ethereum-cryptography/secp256k1"),i=e("./bytes"),s=e("./constants"),a=e("./helpers");function c(e,t){return e===BigInt(0)||e===BigInt(1)?e:t===undefined?e-BigInt(27):e-(t*BigInt(2)+BigInt(35))}function l(e){return e===BigInt(0)||e===BigInt(1)}r.ecsign=function(e,r,n){const i=o.secp256k1.sign(e,r),s=i.toCompactRawBytes();return{r:t.from(s.slice(0,32)),s:t.from(s.slice(32,64)),v:n===undefined?BigInt(i.recovery+27):BigInt(i.recovery+35)+BigInt(n)*BigInt(2)}};r.ecrecover=function(e,r,n,s,a){const u=t.concat([(0,i.setLengthLeft)(n,32),(0,i.setLengthLeft)(s,32)],64),d=c(r,a);if(!l(d))throw new Error("Invalid signature v value");const f=o.secp256k1.Signature.fromCompact(u).addRecoveryBit(Number(d)).recoverPublicKey(e);return t.from(f.toRawBytes(!1).slice(1))};r.toRpcSig=function(e,r,n,o){if(!l(c(e,o)))throw new Error("Invalid signature v value");return(0,i.bufferToHex)(t.concat([(0,i.setLengthLeft)(r,32),(0,i.setLengthLeft)(n,32),(0,i.toBuffer)(e)]))};r.toCompactSig=function(e,r,n,o){if(!l(c(e,o)))throw new Error("Invalid signature v value");let s=n;return(e>BigInt(28)&&e%BigInt(2)===BigInt(1)||e===BigInt(1)||e===BigInt(28))&&(s=t.from(n),s[0]|=128),(0,i.bufferToHex)(t.concat([(0,i.setLengthLeft)(r,32),(0,i.setLengthLeft)(s,32)]))};r.fromRpcSig=function(e){const t=(0,i.toBuffer)(e);let r,n,o;if(t.length>=65)r=t.slice(0,32),n=t.slice(32,64),o=(0,i.bufferToBigInt)(t.slice(64));else{if(64!==t.length)throw new Error("Invalid signature length");r=t.slice(0,32),n=t.slice(32,64),o=BigInt((0,i.bufferToInt)(t.slice(32,33))>>7),n[0]&=127}return o<27&&(o+=BigInt(27)),{v:o,r:r,s:n}};r.isValidSignature=function(e,t,r,n=!0,o){if(32!==t.length||32!==r.length)return!1;if(!l(c(e,o)))return!1;const a=(0,i.bufferToBigInt)(t),u=(0,i.bufferToBigInt)(r);return!(a===BigInt(0)||a>=s.SECP256K1_ORDER||u===BigInt(0)||u>=s.SECP256K1_ORDER)&&!(n&&u>=s.SECP256K1_ORDER_DIV_2)};r.hashPersonalMessage=function(e){(0,a.assertIsBuffer)(e);const r=t.from(`Ethereum Signed Message:\n${e.length}`,"utf-8");return t.from((0,n.keccak256)(t.concat([r,e])))}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/signature.js"}],[4288,{"./bytes":4279,"./internal":4284},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.toType=r.TypeOutput=void 0;const n=e("./bytes"),o=e("./internal");var i;!function(e){e[e.Number=0]="Number",e[e.BigInt=1]="BigInt",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(i=r.TypeOutput||(r.TypeOutput={})),r.toType=function(e,t){if(null===e)return null;if(e===undefined)return undefined;if("string"==typeof e&&!(0,o.isHexString)(e))throw new Error(`A string must be provided with a 0x-prefix, given: ${e}`);if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const r=(0,n.toBuffer)(e);switch(t){case i.Buffer:return r;case i.BigInt:return(0,n.bufferToBigInt)(r);case i.Number:{const e=(0,n.bufferToBigInt)(r);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(e)}case i.PrefixedHexString:return(0,n.bufferToHex)(r);default:throw new Error("unknown outputType")}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/types.js"}],[4289,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.GWEI_TO_WEI=void 0,r.GWEI_TO_WEI=BigInt(1e9)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/units.js"}],[429,{"@metamask/controller-utils":1343,"@metamask/network-controller":2210,"@metamask/utils":2831,lodash:4554},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=a,t.data=function(e){if((0,o.hasProperty)(e,"NetworkController")&&(0,o.isObject)(e.NetworkController)&&(0,o.hasProperty)(e.NetworkController,"providerConfig")&&(0,o.isObject)(e.NetworkController.providerConfig)&&((0,o.hasProperty)(e.NetworkController.providerConfig,"id")||(0,o.hasProperty)(e.NetworkController.providerConfig,"type")&&e.NetworkController.providerConfig.type!==s.NetworkType.rpc)){const t=e.NetworkController.providerConfig.id||e.NetworkController.providerConfig.type;if(!t||"string"!=typeof t)return e;const r={[t]:{EIPS:{},status:i.NetworkStatus.Unknown}};if((0,o.hasProperty)(e.NetworkController,"networkDetails")&&(0,o.isObject)(e.NetworkController.networkDetails)){const{networkDetails:n}=e.NetworkController;n.EIPS&&(0,o.isObject)(n.EIPS)&&(r[t].EIPS={...n.EIPS}),delete e.NetworkController.networkDetails}return(0,o.hasProperty)(e.NetworkController,"networkStatus")&&"string"==typeof e.NetworkController.networkStatus&&(r[t].status=e.NetworkController.networkStatus,delete e.NetworkController.networkStatus),{...e,NetworkController:{...e.NetworkController,networksMetadata:r,selectedNetworkClientId:t}}}var t,r;if((0,o.isObject)(e.NetworkController)){if((0,o.isObject)(e.NetworkController)&&!(0,o.isObject)(e.NetworkController.providerConfig)){var n,a;null===(n=global.sentry)||void 0===n||null===(a=n.captureException)||void 0===a||a.call(n,new Error("typeof state.NetworkController.providerConfig is "+typeof e.NetworkController.providerConfig))}else if((0,o.isObject)(e.NetworkController)&&(0,o.isObject)(e.NetworkController.providerConfig)){var c,l;null===(c=global.sentry)||void 0===c||null===(l=c.captureException)||void 0===l||l.call(c,new Error(`typeof state.NetworkController.providerConfig.id is ${typeof e.NetworkController.providerConfig.id} and state.NetworkController.providerConfig.type is ${e.NetworkController.providerConfig.type}`))}}else null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("typeof state.NetworkController is "+typeof e.NetworkController));return e}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/utils"),i=e("@metamask/network-controller"),s=e("@metamask/controller-utils");const a=r.version=94}}},{package:"$root$",file:"app/scripts/migrations/094.ts"}],[4290,{"./address":4277,"./bytes":4279,"./types":4288,buffer:3792},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.Withdrawal=void 0;const n=e("./address"),o=e("./bytes"),i=e("./types");class s{constructor(e,t,r,n){this.index=e,this.validatorIndex=t,this.address=r,this.amount=n}static fromWithdrawalData(e){const{index:t,validatorIndex:r,address:o,amount:a}=e,c=(0,i.toType)(t,i.TypeOutput.BigInt),l=(0,i.toType)(r,i.TypeOutput.BigInt),u=new n.Address((0,i.toType)(o,i.TypeOutput.Buffer)),d=(0,i.toType)(a,i.TypeOutput.BigInt);return new s(c,l,u,d)}static fromValuesArray(e){if(4!==e.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);const[t,r,n,o]=e;return s.fromWithdrawalData({index:t,validatorIndex:r,address:n,amount:o})}static toBufferArray(e){const{index:r,validatorIndex:o,address:s,amount:a}=e,c=(0,i.toType)(r,i.TypeOutput.BigInt)===BigInt(0)?t.alloc(0):(0,i.toType)(r,i.TypeOutput.Buffer),l=(0,i.toType)(o,i.TypeOutput.BigInt)===BigInt(0)?t.alloc(0):(0,i.toType)(o,i.TypeOutput.Buffer);let u;u=s instanceof n.Address?s.buf:(0,i.toType)(s,i.TypeOutput.Buffer);return[c,l,u,(0,i.toType)(a,i.TypeOutput.BigInt)===BigInt(0)?t.alloc(0):(0,i.toType)(a,i.TypeOutput.Buffer)]}raw(){return s.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,o.bigIntToHex)(this.index),validatorIndex:(0,o.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,o.bigIntToHex)(this.amount)}}}r.Withdrawal=s}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/withdrawal.js"}],[4291,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e){var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,i=Math.floor,s="[BigNumber Error] ",a=s+"Number primitive has more than 15 significant digits: ",c=1e14,l=14,u=9007199254740991,d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],f=1e7,h=1e9;function p(e){var t=0|e;return e>0||e===t?t:t-1}function m(e){for(var t,r,n=1,o=e.length,i=e[0]+"";n<o;){for(t=e[n++]+"",r=l-t.length;r--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function g(e,t){var r,n,o=e.c,i=t.c,s=e.s,a=t.s,c=e.e,l=t.e;if(!s||!a)return null;if(r=o&&!o[0],n=i&&!i[0],r||n)return r?n?0:-a:s;if(s!=a)return s;if(r=s<0,n=c==l,!o||!i)return n?0:!o^r?1:-1;if(!n)return c>l^r?1:-1;for(a=(c=o.length)<(l=i.length)?c:l,s=0;s<a;s++)if(o[s]!=i[s])return o[s]>i[s]^r?1:-1;return c==l?0:c>l^r?1:-1}function b(e,t,r,n){if(e<t||e>r||e!==i(e))throw Error(s+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return p(e.e/l)==t&&e.c[t]%2!=0}function y(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function k(e,t,r){var n,o;if(t<0){for(o=r+".";++t;o+=r);e=o+e}else if(++t>(n=e.length)){for(o=r,t-=n;--t;o+=r);e+=o}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}r=function e(t){var r,w,E,T,C,P,_,S,A,I,x=q.prototype={constructor:q,toString:null,valueOf:null},j=new q(1),O=20,N=4,B=-7,R=21,D=-1e7,L=1e7,M=!1,U=1,H=0,G={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},F="0123456789abcdefghijklmnopqrstuvwxyz",$=!0;function q(e,t){var r,o,s,c,d,f,h,p,m=this;if(!(m instanceof q))return new q(e,t);if(null==t){if(e&&!0===e._isBigNumber)return m.s=e.s,void(!e.c||e.e>L?m.c=m.e=null:e.e<D?m.c=[m.e=0]:(m.e=e.e,m.c=e.c.slice()));if((f="number"==typeof e)&&0*e==0){if(m.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,d=e;d>=10;d/=10,c++);return void(c>L?m.c=m.e=null:(m.e=c,m.c=[e]))}p=String(e)}else{if(!n.test(p=String(e)))return E(m,p,f);m.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(c=p.indexOf("."))>-1&&(p=p.replace(".","")),(d=p.search(/e/i))>0?(c<0&&(c=d),c+=+p.slice(d+1),p=p.substring(0,d)):c<0&&(c=p.length)}else{if(b(t,2,F.length,"Base"),10==t&&$)return z(m=new q(e),O+m.e+1,N);if(p=String(e),f="number"==typeof e){if(0*e!=0)return E(m,p,f,t);if(m.s=1/e<0?(p=p.slice(1),-1):1,q.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else m.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(r=F.slice(0,t),c=d=0,h=p.length;d<h;d++)if(r.indexOf(o=p.charAt(d))<0){if("."==o){if(d>c){c=h;continue}}else if(!s&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){s=!0,d=-1,c=0;continue}return E(m,String(e),f,t)}f=!1,(c=(p=w(p,t,10,m.s)).indexOf("."))>-1?p=p.replace(".",""):c=p.length}for(d=0;48===p.charCodeAt(d);d++);for(h=p.length;48===p.charCodeAt(--h););if(p=p.slice(d,++h)){if(h-=d,f&&q.DEBUG&&h>15&&(e>u||e!==i(e)))throw Error(a+m.s*e);if((c=c-d-1)>L)m.c=m.e=null;else if(c<D)m.c=[m.e=0];else{if(m.e=c,m.c=[],d=(c+1)%l,c<0&&(d+=l),d<h){for(d&&m.c.push(+p.slice(0,d)),h-=l;d<h;)m.c.push(+p.slice(d,d+=l));d=l-(p=p.slice(d)).length}else d-=h;for(;d--;p+="0");m.c.push(+p)}}else m.c=[m.e=0]}function K(e,t,r,n){var o,i,s,a,c;if(null==r?r=N:b(r,0,8),!e.c)return e.toString();if(o=e.c[0],s=e.e,null==t)c=m(e.c),c=1==n||2==n&&(s<=B||s>=R)?y(c,s):k(c,s,"0");else if(i=(e=z(new q(e),t,r)).e,a=(c=m(e.c)).length,1==n||2==n&&(t<=i||i<=B)){for(;a<t;c+="0",a++);c=y(c,i)}else if(t-=s,c=k(c,i,"0"),i+1>a){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=i-a)>0)for(i+1==a&&(c+=".");t--;c+="0");return e.s<0&&o?"-"+c:c}function W(e,t){for(var r,n,o=1,i=new q(e[0]);o<e.length;o++)(!(n=new q(e[o])).s||(r=g(i,n))===t||0===r&&i.s===t)&&(i=n);return i}function V(e,t,r){for(var n=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,n++);return(r=n+r*l-1)>L?e.c=e.e=null:r<D?e.c=[e.e=0]:(e.e=r,e.c=t),e}function z(e,t,r,n){var s,a,u,f,h,p,m,g=e.c,b=d;if(g){e:{for(s=1,f=g[0];f>=10;f/=10,s++);if((a=t-s)<0)a+=l,u=t,h=g[p=0],m=i(h/b[s-u-1]%10);else if((p=o((a+1)/l))>=g.length){if(!n)break e;for(;g.length<=p;g.push(0));h=m=0,s=1,u=(a%=l)-l+1}else{for(h=f=g[p],s=1;f>=10;f/=10,s++);m=(u=(a%=l)-l+s)<0?0:i(h/b[s-u-1]%10)}if(n=n||t<0||null!=g[p+1]||(u<0?h:h%b[s-u-1]),n=r<4?(m||n)&&(0==r||r==(e.s<0?3:2)):m>5||5==m&&(4==r||n||6==r&&(a>0?u>0?h/b[s-u]:0:g[p-1])%10&1||r==(e.s<0?8:7)),t<1||!g[0])return g.length=0,n?(t-=e.e+1,g[0]=b[(l-t%l)%l],e.e=-t||0):g[0]=e.e=0,e;if(0==a?(g.length=p,f=1,p--):(g.length=p+1,f=b[l-a],g[p]=u>0?i(h/b[s-u]%b[u])*f:0),n)for(;;){if(0==p){for(a=1,u=g[0];u>=10;u/=10,a++);for(u=g[0]+=f,f=1;u>=10;u/=10,f++);a!=f&&(e.e++,g[0]==c&&(g[0]=1));break}if(g[p]+=f,g[p]!=c)break;g[p--]=0,f=1}for(a=g.length;0===g[--a];g.pop());}e.e>L?e.c=e.e=null:e.e<D&&(e.c=[e.e=0])}return e}function Y(e){var t,r=e.e;return null===r?e.toString():(t=m(e.c),t=r<=B||r>=R?y(t,r):k(t,r,"0"),e.s<0?"-"+t:t)}return q.clone=e,q.ROUND_UP=0,q.ROUND_DOWN=1,q.ROUND_CEIL=2,q.ROUND_FLOOR=3,q.ROUND_HALF_UP=4,q.ROUND_HALF_DOWN=5,q.ROUND_HALF_EVEN=6,q.ROUND_HALF_CEIL=7,q.ROUND_HALF_FLOOR=8,q.EUCLID=9,q.config=q.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(s+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(b(r=e[t],0,h,t),O=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(b(r=e[t],0,8,t),N=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(b(r[0],-h,0,t),b(r[1],0,h,t),B=r[0],R=r[1]):(b(r,-h,h,t),B=-(R=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)b(r[0],-h,-1,t),b(r[1],1,h,t),D=r[0],L=r[1];else{if(b(r,-h,h,t),!r)throw Error(s+t+" cannot be zero: "+r);D=-(L=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(s+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw M=!r,Error(s+"crypto unavailable");M=r}else M=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(b(r=e[t],0,9,t),U=r),e.hasOwnProperty(t="POW_PRECISION")&&(b(r=e[t],0,h,t),H=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(s+t+" not an object: "+r);G=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(s+t+" invalid: "+r);$="0123456789"==r.slice(0,10),F=r}}return{DECIMAL_PLACES:O,ROUNDING_MODE:N,EXPONENTIAL_AT:[B,R],RANGE:[D,L],CRYPTO:M,MODULO_MODE:U,POW_PRECISION:H,FORMAT:G,ALPHABET:F}},q.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!q.DEBUG)return!0;var t,r,n=e.c,o=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===a||-1===a)&&o>=-h&&o<=h&&o===i(o)){if(0===n[0]){if(0===o&&1===n.length)return!0;break e}if((t=(o+1)%l)<1&&(t+=l),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=c||r!==i(r))break e;if(0!==r)return!0}}}else if(null===n&&null===o&&(null===a||1===a||-1===a))return!0;throw Error(s+"Invalid BigNumber: "+e)},q.maximum=q.max=function(){return W(arguments,-1)},q.minimum=q.min=function(){return W(arguments,1)},q.random=(T=9007199254740992,C=Math.random()*T&2097151?function(){return i(Math.random()*T)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,a,c,u=0,f=[],p=new q(j);if(null==e?e=O:b(e,0,h),a=o(e/l),M)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));u<a;)(c=131072*t[u]+(t[u+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[u]=r[0],t[u+1]=r[1]):(f.push(c%1e14),u+=2);u=a/2}else{if(!crypto.randomBytes)throw M=!1,Error(s+"crypto unavailable");for(t=crypto.randomBytes(a*=7);u<a;)(c=281474976710656*(31&t[u])+1099511627776*t[u+1]+4294967296*t[u+2]+16777216*t[u+3]+(t[u+4]<<16)+(t[u+5]<<8)+t[u+6])>=9e15?crypto.randomBytes(7).copy(t,u):(f.push(c%1e14),u+=7);u=a/7}if(!M)for(;u<a;)(c=C())<9e15&&(f[u++]=c%1e14);for(a=f[--u],e%=l,a&&e&&(c=d[l-e],f[u]=i(a/c)*c);0===f[u];f.pop(),u--);if(u<0)f=[n=0];else{for(n=-1;0===f[0];f.splice(0,1),n-=l);for(u=1,c=f[0];c>=10;c/=10,u++);u<l&&(n-=l-u)}return p.e=n,p.c=f,p}),q.sum=function(){for(var e=1,t=arguments,r=new q(t[0]);e<t.length;)r=r.plus(t[e++]);return r},w=function(){var e="0123456789";function t(e,t,r,n){for(var o,i,s=[0],a=0,c=e.length;a<c;){for(i=s.length;i--;s[i]*=t);for(s[0]+=n.indexOf(e.charAt(a++)),o=0;o<s.length;o++)s[o]>r-1&&(null==s[o+1]&&(s[o+1]=0),s[o+1]+=s[o]/r|0,s[o]%=r)}return s.reverse()}return function(n,o,i,s,a){var c,l,u,d,f,h,p,g,b=n.indexOf("."),v=O,y=N;for(b>=0&&(d=H,H=0,n=n.replace(".",""),h=(g=new q(o)).pow(n.length-b),H=d,g.c=t(k(m(h.c),h.e,"0"),10,i,e),g.e=g.c.length),u=d=(p=t(n,o,i,a?(c=F,e):(c=e,F))).length;0==p[--d];p.pop());if(!p[0])return c.charAt(0);if(b<0?--u:(h.c=p,h.e=u,h.s=s,p=(h=r(h,g,v,y,i)).c,f=h.r,u=h.e),b=p[l=u+v+1],d=i/2,f=f||l<0||null!=p[l+1],f=y<4?(null!=b||f)&&(0==y||y==(h.s<0?3:2)):b>d||b==d&&(4==y||f||6==y&&1&p[l-1]||y==(h.s<0?8:7)),l<1||!p[0])n=f?k(c.charAt(1),-v,c.charAt(0)):c.charAt(0);else{if(p.length=l,f)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(d=p.length;!p[--d];);for(b=0,n="";b<=d;n+=c.charAt(p[b++]));n=k(n,u,c.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,o,i,s,a=0,c=e.length,l=t%f,u=t/f|0;for(e=e.slice();c--;)a=((o=l*(i=e[c]%f)+(n=u*i+(s=e[c]/f|0)*l)%f*f+a)/r|0)+(n/f|0)+u*s,e[c]=o%r;return a&&(e=[a].concat(e)),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function r(e,t,r,n){for(var o=0;r--;)e[r]-=o,o=e[r]<t[r]?1:0,e[r]=o*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,o,s,a,u){var d,f,h,m,g,b,v,y,k,w,E,T,C,P,_,S,A,I=n.s==o.s?1:-1,x=n.c,j=o.c;if(!(x&&x[0]&&j&&j[0]))return new q(n.s&&o.s&&(x?!j||x[0]!=j[0]:j)?x&&0==x[0]||!j?0*I:I/0:NaN);for(k=(y=new q(I)).c=[],I=s+(f=n.e-o.e)+1,u||(u=c,f=p(n.e/l)-p(o.e/l),I=I/l|0),h=0;j[h]==(x[h]||0);h++);if(j[h]>(x[h]||0)&&f--,I<0)k.push(1),m=!0;else{for(P=x.length,S=j.length,h=0,I+=2,(g=i(u/(j[0]+1)))>1&&(j=e(j,g,u),x=e(x,g,u),S=j.length,P=x.length),C=S,E=(w=x.slice(0,S)).length;E<S;w[E++]=0);A=j.slice(),A=[0].concat(A),_=j[0],j[1]>=u/2&&_++;do{if(g=0,(d=t(j,w,S,E))<0){if(T=w[0],S!=E&&(T=T*u+(w[1]||0)),(g=i(T/_))>1)for(g>=u&&(g=u-1),v=(b=e(j,g,u)).length,E=w.length;1==t(b,w,v,E);)g--,r(b,S<v?A:j,v,u),v=b.length,d=1;else 0==g&&(d=g=1),v=(b=j.slice()).length;if(v<E&&(b=[0].concat(b)),r(w,b,E,u),E=w.length,-1==d)for(;t(j,w,S,E)<1;)g++,r(w,S<E?A:j,E,u),E=w.length}else 0===d&&(g++,w=[0]);k[h++]=g,w[0]?w[E++]=x[C]||0:(w=[x[C]],E=1)}while((C++<P||null!=w[0])&&I--);m=null!=w[0],k[0]||k.splice(0,1)}if(u==c){for(h=1,I=k[0];I>=10;I/=10,h++);z(y,s+(y.e=h+f*l-1)+1,a,m)}else y.e=f,y.r=+m;return y}}(),P=/^(-?)0([xbo])(?=\w[\w.]*$)/i,_=/^([^.]+)\.$/,S=/^\.([^.]+)$/,A=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g,E=function(e,t,r,n){var o,i=r?t:t.replace(I,"");if(A.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!r&&(i=i.replace(P,function(e,t,r){return o="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=o?e:t}),n&&(o=n,i=i.replace(_,"$1").replace(S,"0.$1")),t!=i))return new q(i,o);if(q.DEBUG)throw Error(s+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},x.absoluteValue=x.abs=function(){var e=new q(this);return e.s<0&&(e.s=1),e},x.comparedTo=function(e,t){return g(this,new q(e,t))},x.decimalPlaces=x.dp=function(e,t){var r,n,o,i=this;if(null!=e)return b(e,0,h),null==t?t=N:b(t,0,8),z(new q(i),e+i.e+1,t);if(!(r=i.c))return null;if(n=((o=r.length-1)-p(this.e/l))*l,o=r[o])for(;o%10==0;o/=10,n--);return n<0&&(n=0),n},x.dividedBy=x.div=function(e,t){return r(this,new q(e,t),O,N)},x.dividedToIntegerBy=x.idiv=function(e,t){return r(this,new q(e,t),0,1)},x.exponentiatedBy=x.pow=function(e,t){var r,n,a,c,u,d,f,h,p=this;if((e=new q(e)).c&&!e.isInteger())throw Error(s+"Exponent not an integer: "+Y(e));if(null!=t&&(t=new q(t)),u=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new q(Math.pow(+Y(p),u?e.s*(2-v(e)):+Y(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new q(NaN);(n=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||u&&p.c[1]>=24e7:p.c[0]<8e13||u&&p.c[0]<=9999975e7)))return c=p.s<0&&v(e)?-0:0,p.e>-1&&(c=1/c),new q(d?1/c:c);H&&(c=o(H/l+2))}for(u?(r=new q(.5),d&&(e.s=1),f=v(e)):f=(a=Math.abs(+Y(e)))%2,h=new q(j);;){if(f){if(!(h=h.times(p)).c)break;c?h.c.length>c&&(h.c.length=c):n&&(h=h.mod(t))}if(a){if(0===(a=i(a/2)))break;f=a%2}else if(z(e=e.times(r),e.e+1,1),e.e>14)f=v(e);else{if(0===(a=+Y(e)))break;f=a%2}p=p.times(p),c?p.c&&p.c.length>c&&(p.c.length=c):n&&(p=p.mod(t))}return n?h:(d&&(h=j.div(h)),t?h.mod(t):c?z(h,H,N,undefined):h)},x.integerValue=function(e){var t=new q(this);return null==e?e=N:b(e,0,8),z(t,t.e+1,e)},x.isEqualTo=x.eq=function(e,t){return 0===g(this,new q(e,t))},x.isFinite=function(){return!!this.c},x.isGreaterThan=x.gt=function(e,t){return g(this,new q(e,t))>0},x.isGreaterThanOrEqualTo=x.gte=function(e,t){return 1===(t=g(this,new q(e,t)))||0===t},x.isInteger=function(){return!!this.c&&p(this.e/l)>this.c.length-2},x.isLessThan=x.lt=function(e,t){return g(this,new q(e,t))<0},x.isLessThanOrEqualTo=x.lte=function(e,t){return-1===(t=g(this,new q(e,t)))||0===t},x.isNaN=function(){return!this.s},x.isNegative=function(){return this.s<0},x.isPositive=function(){return this.s>0},x.isZero=function(){return!!this.c&&0==this.c[0]},x.minus=function(e,t){var r,n,o,i,s=this,a=s.s;if(t=(e=new q(e,t)).s,!a||!t)return new q(NaN);if(a!=t)return e.s=-t,s.plus(e);var u=s.e/l,d=e.e/l,f=s.c,h=e.c;if(!u||!d){if(!f||!h)return f?(e.s=-t,e):new q(h?s:NaN);if(!f[0]||!h[0])return h[0]?(e.s=-t,e):new q(f[0]?s:3==N?-0:0)}if(u=p(u),d=p(d),f=f.slice(),a=u-d){for((i=a<0)?(a=-a,o=f):(d=u,o=h),o.reverse(),t=a;t--;o.push(0));o.reverse()}else for(n=(i=(a=f.length)<(t=h.length))?a:t,a=t=0;t<n;t++)if(f[t]!=h[t]){i=f[t]<h[t];break}if(i&&(o=f,f=h,h=o,e.s=-e.s),(t=(n=h.length)-(r=f.length))>0)for(;t--;f[r++]=0);for(t=c-1;n>a;){if(f[--n]<h[n]){for(r=n;r&&!f[--r];f[r]=t);--f[r],f[n]+=c}f[n]-=h[n]}for(;0==f[0];f.splice(0,1),--d);return f[0]?V(e,f,d):(e.s=3==N?-1:1,e.c=[e.e=0],e)},x.modulo=x.mod=function(e,t){var n,o,i=this;return e=new q(e,t),!i.c||!e.s||e.c&&!e.c[0]?new q(NaN):!e.c||i.c&&!i.c[0]?new q(i):(9==U?(o=e.s,e.s=1,n=r(i,e,0,3),e.s=o,n.s*=o):n=r(i,e,0,U),(e=i.minus(n.times(e))).c[0]||1!=U||(e.s=i.s),e)},x.multipliedBy=x.times=function(e,t){var r,n,o,i,s,a,u,d,h,m,g,b,v,y,k,w=this,E=w.c,T=(e=new q(e,t)).c;if(!(E&&T&&E[0]&&T[0]))return!w.s||!e.s||E&&!E[0]&&!T||T&&!T[0]&&!E?e.c=e.e=e.s=null:(e.s*=w.s,E&&T?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=p(w.e/l)+p(e.e/l),e.s*=w.s,(u=E.length)<(m=T.length)&&(v=E,E=T,T=v,o=u,u=m,m=o),o=u+m,v=[];o--;v.push(0));for(y=c,k=f,o=m;--o>=0;){for(r=0,g=T[o]%k,b=T[o]/k|0,i=o+(s=u);i>o;)r=((d=g*(d=E[--s]%k)+(a=b*d+(h=E[s]/k|0)*g)%k*k+v[i]+r)/y|0)+(a/k|0)+b*h,v[i--]=d%y;v[i]=r}return r?++n:v.splice(0,1),V(e,v,n)},x.negated=function(){var e=new q(this);return e.s=-e.s||null,e},x.plus=function(e,t){var r,n=this,o=n.s;if(t=(e=new q(e,t)).s,!o||!t)return new q(NaN);if(o!=t)return e.s=-t,n.minus(e);var i=n.e/l,s=e.e/l,a=n.c,u=e.c;if(!i||!s){if(!a||!u)return new q(o/0);if(!a[0]||!u[0])return u[0]?e:new q(a[0]?n:0*o)}if(i=p(i),s=p(s),a=a.slice(),o=i-s){for(o>0?(s=i,r=u):(o=-o,r=a),r.reverse();o--;r.push(0));r.reverse()}for((o=a.length)-(t=u.length)<0&&(r=u,u=a,a=r,t=o),o=0;t;)o=(a[--t]=a[t]+u[t]+o)/c|0,a[t]=c===a[t]?0:a[t]%c;return o&&(a=[o].concat(a),++s),V(e,a,s)},x.precision=x.sd=function(e,t){var r,n,o,i=this;if(null!=e&&e!==!!e)return b(e,1,h),null==t?t=N:b(t,0,8),z(new q(i),e,t);if(!(r=i.c))return null;if(n=(o=r.length-1)*l+1,o=r[o]){for(;o%10==0;o/=10,n--);for(o=r[0];o>=10;o/=10,n++);}return e&&i.e+1>n&&(n=i.e+1),n},x.shiftedBy=function(e){return b(e,-9007199254740991,u),this.times("1e"+e)},x.squareRoot=x.sqrt=function(){var e,t,n,o,i,s=this,a=s.c,c=s.s,l=s.e,u=O+4,d=new q("0.5");if(1!==c||!a||!a[0])return new q(!c||c<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(c=Math.sqrt(+Y(s)))||c==1/0?(((t=m(a)).length+l)%2==0&&(t+="0"),c=Math.sqrt(+t),l=p((l+1)/2)-(l<0||l%2),n=new q(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):n=new q(c+""),n.c[0])for((c=(l=n.e)+u)<3&&(c=0);;)if(i=n,n=d.times(i.plus(r(s,i,u,1))),m(i.c).slice(0,c)===(t=m(n.c)).slice(0,c)){if(n.e<l&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(z(n,n.e+O+2,1),e=!n.times(n).eq(s));break}if(!o&&(z(i,i.e+O+2,0),i.times(i).eq(s))){n=i;break}u+=4,c+=4,o=1}return z(n,n.e+O+1,N,e)},x.toExponential=function(e,t){return null!=e&&(b(e,0,h),e++),K(this,e,t,1)},x.toFixed=function(e,t){return null!=e&&(b(e,0,h),e=e+this.e+1),K(this,e,t)},x.toFormat=function(e,t,r){var n,o=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=G;else if("object"!=typeof r)throw Error(s+"Argument not an object: "+r);if(n=o.toFixed(e,t),o.c){var i,a=n.split("."),c=+r.groupSize,l=+r.secondaryGroupSize,u=r.groupSeparator||"",d=a[0],f=a[1],h=o.s<0,p=h?d.slice(1):d,m=p.length;if(l&&(i=c,c=l,l=i,m-=i),c>0&&m>0){for(i=m%c||c,d=p.substr(0,i);i<m;i+=c)d+=u+p.substr(i,c);l>0&&(d+=u+p.slice(i)),h&&(d="-"+d)}n=f?d+(r.decimalSeparator||"")+((l=+r.fractionGroupSize)?f.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):d}return(r.prefix||"")+n+(r.suffix||"")},x.toFraction=function(e){var t,n,o,i,a,c,u,f,h,p,g,b,v=this,y=v.c;if(null!=e&&(!(u=new q(e)).isInteger()&&(u.c||1!==u.s)||u.lt(j)))throw Error(s+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+Y(u));if(!y)return new q(v);for(t=new q(j),h=n=new q(j),o=f=new q(j),b=m(y),a=t.e=b.length-v.e-1,t.c[0]=d[(c=a%l)<0?l+c:c],e=!e||u.comparedTo(t)>0?a>0?t:h:u,c=L,L=1/0,u=new q(b),f.c[0]=0;p=r(u,t,0,1),1!=(i=n.plus(p.times(o))).comparedTo(e);)n=o,o=i,h=f.plus(p.times(i=h)),f=i,t=u.minus(p.times(i=t)),u=i;return i=r(e.minus(n),o,0,1),f=f.plus(i.times(h)),n=n.plus(i.times(o)),f.s=h.s=v.s,g=r(h,o,a*=2,N).minus(v).abs().comparedTo(r(f,n,a,N).minus(v).abs())<1?[h,o]:[f,n],L=c,g},x.toNumber=function(){return+Y(this)},x.toPrecision=function(e,t){return null!=e&&b(e,1,h),K(this,e,t,2)},x.toString=function(e){var t,r=this,n=r.s,o=r.e;return null===o?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=o<=B||o>=R?y(m(r.c),o):k(m(r.c),o,"0"):10===e&&$?t=k(m((r=z(new q(r),O+o+1,N)).c),r.e,"0"):(b(e,2,F.length,"Base"),t=w(k(m(r.c),o,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},x.valueOf=x.toJSON=function(){return Y(this)},x._isBigNumber=!0,null!=t&&q.set(t),q}(),r.default=r.BigNumber=r,"function"==typeof define&&define.amd?define(function(){return r}):void 0!==t&&t.exports?t.exports=r:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=r)}(this)}}},{package:"eth-lattice-keyring>gridplus-sdk>bignumber.js",file:"node_modules/gridplus-sdk/node_modules/bignumber.js/bignumber.js"}],[4292,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++)t.push(n(e[r]));const r=h(...t);return h(s(r.length,192),r)}const t=b(e);return 1===t.length&&t[0]<128?t:h(s(t.length,128),t)}function o(e,t,r){if(r>e.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,r)}function i(e){if(0===e[0])throw new Error("invalid RLP: extra zeros");return d(u(e))}function s(e,t){if(e<56)return Uint8Array.from([e+t]);const r=m(e),n=m(t+55+r.length/2);return Uint8Array.from(f(n+r))}function a(e,t=!1){if(!e||0===e.length)return Uint8Array.from([]);const r=c(b(e));if(t)return r;if(0!==r.remainder.length)throw new Error("invalid RLP: remainder must be zero");return r.data}function c(e){let t,r,n,s,a;const l=[],u=e[0];if(u<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(u<=183){if(t=u-127,n=128===u?Uint8Array.from([]):o(e,1,t),2===t&&n[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:n,remainder:e.slice(t)}}if(u<=191){if(r=u-182,e.length-1<r)throw new Error("invalid RLP: not enough bytes for string length");if(t=i(o(e,1,r)),t<=55)throw new Error("invalid RLP: expected string length to be greater than 55");return n=o(e,r,t+r),{data:n,remainder:e.slice(t+r)}}if(u<=247){for(t=u-191,s=o(e,1,t);s.length;)a=c(s),l.push(a.data),s=a.remainder;return{data:l,remainder:e.slice(t)}}{if(r=u-246,t=i(o(e,1,r)),t<56)throw new Error("invalid RLP: encoded list too short");const n=r+t;if(n>e.length)throw new Error("invalid RLP: total length is larger than the data");for(s=o(e,r,n);s.length;)a=c(s),l.push(a.data),s=a.remainder;return{data:l,remainder:e.slice(n)}}}Object.defineProperty(r,"__esModule",{value:!0}),r.utils=r.decode=r.encode=void 0,r.encode=n,r.decode=a;const l=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function u(e){let t="";for(let r=0;r<e.length;r++)t+=l[e[r]];return t}function d(e){const t=Number.parseInt(e,16);if(Number.isNaN(t))throw new Error("Invalid byte sequence");return t}function f(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r;t[r]=d(e.slice(n,n+2))}return t}function h(...e){if(1===e.length)return e[0];const t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const o=e[t];r.set(o,n),n+=o.length}return r}function p(e){return(new TextEncoder).encode(e)}function m(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");const t=e.toString(16);return t.length%2?`0${t}`:t}function g(e){return e.length>=2&&"0"===e[0]&&"x"===e[1]}function b(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return g(e)?f((t="string"!=typeof(r=e)?r:g(r)?r.slice(2):r).length%2?`0${t}`:t):p(e);var t,r;if("number"==typeof e||"bigint"==typeof e)return e?f(m(e)):Uint8Array.from([]);if(null===e||e===undefined)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof e)}r.utils={bytesToHex:u,concatBytes:h,hexToBytes:f,utf8ToBytes:p};const v={encode:n,decode:a};r.default=v}}},{package:"eth-lattice-keyring>gridplus-sdk>rlp",file:"node_modules/gridplus-sdk/node_modules/rlp/dist/index.js"}],[4293,{"./nil.js":4296,"./parse.js":4297,"./stringify.js":4301,"./v1.js":4302,"./v3.js":4303,"./v4.js":4305,"./v5.js":4306,"./validate.js":4307,"./version.js":4308},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,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return c.default}});var n=f(e("./v1.js")),o=f(e("./v3.js")),i=f(e("./v4.js")),s=f(e("./v5.js")),a=f(e("./nil.js")),c=f(e("./version.js")),l=f(e("./validate.js")),u=f(e("./stringify.js")),d=f(e("./parse.js"));function f(e){return e&&e.__esModule?e:{default:e}}}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/index.js"}],[4294,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return 14+(e+64>>>9<<4)+1}function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function i(e,t,r,n,i,s){return o((a=o(o(t,e),o(n,s)))<<(c=i)|a>>>32-c,r);var a,c}function s(e,t,r,n,o,s,a){return i(t&r|~t&n,e,t,o,s,a)}function a(e,t,r,n,o,s,a){return i(t&n|r&~n,e,t,o,s,a)}function c(e,t,r,n,o,s,a){return i(t^r^n,e,t,o,s,a)}function l(e,t,r,n,o,s,a){return i(r^(t|~n),e,t,o,s,a)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var u=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length,n="0123456789abcdef";for(let o=0;o<r;o+=8){const r=e[o>>5]>>>o%32&255,i=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let r=1732584193,i=-271733879,u=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const n=r,f=i,h=u,p=d;r=s(r,i,u,d,e[t],7,-680876936),d=s(d,r,i,u,e[t+1],12,-389564586),u=s(u,d,r,i,e[t+2],17,606105819),i=s(i,u,d,r,e[t+3],22,-1044525330),r=s(r,i,u,d,e[t+4],7,-176418897),d=s(d,r,i,u,e[t+5],12,1200080426),u=s(u,d,r,i,e[t+6],17,-1473231341),i=s(i,u,d,r,e[t+7],22,-45705983),r=s(r,i,u,d,e[t+8],7,1770035416),d=s(d,r,i,u,e[t+9],12,-1958414417),u=s(u,d,r,i,e[t+10],17,-42063),i=s(i,u,d,r,e[t+11],22,-1990404162),r=s(r,i,u,d,e[t+12],7,1804603682),d=s(d,r,i,u,e[t+13],12,-40341101),u=s(u,d,r,i,e[t+14],17,-1502002290),i=s(i,u,d,r,e[t+15],22,1236535329),r=a(r,i,u,d,e[t+1],5,-165796510),d=a(d,r,i,u,e[t+6],9,-1069501632),u=a(u,d,r,i,e[t+11],14,643717713),i=a(i,u,d,r,e[t],20,-373897302),r=a(r,i,u,d,e[t+5],5,-701558691),d=a(d,r,i,u,e[t+10],9,38016083),u=a(u,d,r,i,e[t+15],14,-660478335),i=a(i,u,d,r,e[t+4],20,-405537848),r=a(r,i,u,d,e[t+9],5,568446438),d=a(d,r,i,u,e[t+14],9,-1019803690),u=a(u,d,r,i,e[t+3],14,-187363961),i=a(i,u,d,r,e[t+8],20,1163531501),r=a(r,i,u,d,e[t+13],5,-1444681467),d=a(d,r,i,u,e[t+2],9,-51403784),u=a(u,d,r,i,e[t+7],14,1735328473),i=a(i,u,d,r,e[t+12],20,-1926607734),r=c(r,i,u,d,e[t+5],4,-378558),d=c(d,r,i,u,e[t+8],11,-2022574463),u=c(u,d,r,i,e[t+11],16,1839030562),i=c(i,u,d,r,e[t+14],23,-35309556),r=c(r,i,u,d,e[t+1],4,-1530992060),d=c(d,r,i,u,e[t+4],11,1272893353),u=c(u,d,r,i,e[t+7],16,-155497632),i=c(i,u,d,r,e[t+10],23,-1094730640),r=c(r,i,u,d,e[t+13],4,681279174),d=c(d,r,i,u,e[t],11,-358537222),u=c(u,d,r,i,e[t+3],16,-722521979),i=c(i,u,d,r,e[t+6],23,76029189),r=c(r,i,u,d,e[t+9],4,-640364487),d=c(d,r,i,u,e[t+12],11,-421815835),u=c(u,d,r,i,e[t+15],16,530742520),i=c(i,u,d,r,e[t+2],23,-995338651),r=l(r,i,u,d,e[t],6,-198630844),d=l(d,r,i,u,e[t+7],10,1126891415),u=l(u,d,r,i,e[t+14],15,-1416354905),i=l(i,u,d,r,e[t+5],21,-57434055),r=l(r,i,u,d,e[t+12],6,1700485571),d=l(d,r,i,u,e[t+3],10,-1894986606),u=l(u,d,r,i,e[t+10],15,-1051523),i=l(i,u,d,r,e[t+1],21,-2054922799),r=l(r,i,u,d,e[t+8],6,1873313359),d=l(d,r,i,u,e[t+15],10,-30611744),u=l(u,d,r,i,e[t+6],15,-1560198380),i=l(i,u,d,r,e[t+13],21,1309151649),r=l(r,i,u,d,e[t+4],6,-145523070),d=l(d,r,i,u,e[t+11],10,-1120210379),u=l(u,d,r,i,e[t+2],15,718787259),i=l(i,u,d,r,e[t+9],21,-343485551),r=o(r,n),i=o(i,f),u=o(u,h),d=o(d,p)}return[r,i,u,d]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))};r.default=u}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/md5-browser.js"}],[4295,{},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;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};r.default=n}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/native-browser.js"}],[4296,{},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;r.default="00000000-0000-0000-0000-000000000000"}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/nil.js"}],[4297,{"./validate.js":4307},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;var n,o=(n=e("./validate.js"))&&n.__esModule?n:{default:n};var i=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};r.default=i}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/parse.js"}],[4298,{},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;r.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/regex.js"}],[4299,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){let n;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)};const o=new Uint8Array(16)}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/rng-browser.js"}],[43,{"@metamask/assets-controllers":1199},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DeFiPositionsControllerInit=void 0;var n=e("@metamask/assets-controllers");r.DeFiPositionsControllerInit=({initMessenger:e,controllerMessenger:t,getController:r})=>({controller:new n.DeFiPositionsController({messenger:t,isEnabled:()=>{var t;const n=r("PreferencesController"),{useExternalServices:o}=n.state,i=e.call("RemoteFeatureFlagController:getState"),s=Boolean(null==i||null===(t=i.remoteFeatureFlags)||void 0===t?void 0:t.assetsDefiPositionsEnabled);return o&&s},trackEvent:e.call.bind(e,"MetaMetricsController:trackEvent")})})}}},{package:"$root$",file:"app/scripts/controller-init/defi-positions/defi-positions-controller-init.ts"}],[430,{lodash:4554},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){(function(e){var t,r;const n=(null===(t=e.IncomingTransactionsController)||void 0===t?void 0:t.incomingTransactions)||{};if(0===Object.keys(n).length)return;const o=(null===(r=e.TransactionController)||void 0===r?void 0:r.transactions)||{},i=Object.values(n).reduce((e,t)=>(e[t.id]=t,e),o);e.TransactionController={...e.TransactionController||{},transactions:i}})(e),function(e){var t;const r=(null===(t=e.IncomingTransactionsController)||void 0===t?void 0:t.incomingTransactions)||{};if(0===Object.keys(r).length)return;const n={};for(const e of Object.values(r)){if(!e.blockNumber||!e.chainId||!e.txParams.to)continue;const t=parseInt(e.blockNumber,10),r=`${e.chainId}#${e.txParams.to.toLowerCase()}`,o=n[r]||-1;n[r]=Math.max(o,t)}e.TransactionController={...e.TransactionController,lastFetchedBlockNumbers:n}}(e),function(e){delete e.IncomingTransactionsController}(e)}(t.data),t},r.version=void 0;var n=e("lodash");const o=r.version=95}}},{package:"$root$",file:"app/scripts/migrations/095.ts"}],[4300,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function o(e,t){return e<<t|e>>>32-t}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,s=Math.ceil(i/16),a=new Array(s);for(let t=0;t<s;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];a[t]=r}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<s;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=a[e][t];for(let e=16;e<80;++e)i[e]=o(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let s=r[0],c=r[1],l=r[2],u=r[3],d=r[4];for(let e=0;e<80;++e){const r=Math.floor(e/20),a=o(s,5)+n(r,c,l,u)+d+t[r]+i[e]>>>0;d=u,u=l,l=o(c,30)>>>0,c=s,s=a}r[0]=r[0]+s>>>0,r[1]=r[1]+c>>>0,r[2]=r[2]+l>>>0,r[3]=r[3]+u>>>0,r[4]=r[4]+d>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]};r.default=i}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/sha1-browser.js"}],[4301,{"./validate.js":4307},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,r.unsafeStringify=s;var n,o=(n=e("./validate.js"))&&n.__esModule?n:{default:n};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function s(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}var a=function(e,t=0){const r=s(e,t);if(!(0,o.default)(r))throw TypeError("Stringified UUID is invalid");return r};r.default=a}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/stringify.js"}],[4302,{"./rng.js":4299,"./stringify.js":4301},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;var n,o=(n=e("./rng.js"))&&n.__esModule?n:{default:n},i=e("./stringify.js");let s,a,c=0,l=0;var u=function(e,t,r){let n=t&&r||0;const u=t||new Array(16);let d=(e=e||{}).node||s,f=e.clockseq!==undefined?e.clockseq:a;if(null==d||null==f){const t=e.random||(e.rng||o.default)();null==d&&(d=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==f&&(f=a=16383&(t[6]<<8|t[7]))}let h=e.msecs!==undefined?e.msecs:Date.now(),p=e.nsecs!==undefined?e.nsecs:l+1;const m=h-c+(p-l)/1e4;if(m<0&&e.clockseq===undefined&&(f=f+1&16383),(m<0||h>c)&&e.nsecs===undefined&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=h,l=p,a=f,h+=122192928e5;const g=(1e4*(268435455&h)+p)%4294967296;u[n++]=g>>>24&255,u[n++]=g>>>16&255,u[n++]=g>>>8&255,u[n++]=255&g;const b=h/4294967296*1e4&268435455;u[n++]=b>>>8&255,u[n++]=255&b,u[n++]=b>>>24&15|16,u[n++]=b>>>16&255,u[n++]=f>>>8|128,u[n++]=255&f;for(let e=0;e<6;++e)u[n+e]=d[e];return t||(0,i.unsafeStringify)(u)};r.default=u}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/v1.js"}],[4303,{"./md5.js":4294,"./v35.js":4304},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;var n=i(e("./v35.js")),o=i(e("./md5.js"));function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("v3",48,o.default);r.default=s}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/v3.js"}],[4304,{"./parse.js":4297,"./stringify.js":4301},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.URL=r.DNS=void 0,r.default=function(e,t,r){function n(e,n,s,a){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=(0,i.default)(n)),16!==(null===(c=n)||void 0===c?void 0:c.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+e.length);if(l.set(n),l.set(e,n.length),l=r(l),l[6]=15&l[6]|t,l[8]=63&l[8]|128,s){a=a||0;for(let e=0;e<16;++e)s[a+e]=l[e];return s}return(0,o.unsafeStringify)(l)}try{n.name=e}catch(e){}return n.DNS=s,n.URL=a,n};var n,o=e("./stringify.js"),i=(n=e("./parse.js"))&&n.__esModule?n:{default:n};const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";r.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";r.URL=a}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/v35.js"}],[4305,{"./native.js":4295,"./rng.js":4299,"./stringify.js":4301},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;var n=s(e("./native.js")),o=s(e("./rng.js")),i=e("./stringify.js");function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();const s=(e=e||{}).random||(e.rng||o.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=s[e];return t}return(0,i.unsafeStringify)(s)};r.default=a}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/v4.js"}],[4306,{"./sha1.js":4300,"./v35.js":4304},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;var n=i(e("./v35.js")),o=i(e("./sha1.js"));function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("v5",80,o.default);r.default=s}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/v5.js"}],[4307,{"./regex.js":4298},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;var n,o=(n=e("./regex.js"))&&n.__esModule?n:{default:n};var i=function(e){return"string"==typeof e&&o.default.test(e)};r.default=i}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/validate.js"}],[4308,{"./validate.js":4307},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;var n,o=(n=e("./validate.js"))&&n.__esModule?n:{default:n};var i=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};r.default=i}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/version.js"}],[431,{"../../../shared/constants/network":5454,"@metamask/utils":2831,lodash:4554},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,o.hasProperty)(e,"PreferencesController")&&(0,o.isObject)(e.PreferencesController)&&(0,o.isObject)(e.NetworkController)&&(0,o.hasProperty)(e.PreferencesController,"featureFlags")&&(0,o.hasProperty)(e.NetworkController,"networkConfigurations")))return e;const{PreferencesController:t,NetworkController:r}=e,{featureFlags:s}=t,{showIncomingTransactions:a}=s,{networkConfigurations:c}=r,l=Object.values(c).map(e=>e.chainId),u=[i.CHAIN_IDS.MAINNET,i.CHAIN_IDS.LINEA_MAINNET],d=[i.CHAIN_IDS.GOERLI,i.CHAIN_IDS.SEPOLIA,i.CHAIN_IDS.LINEA_GOERLI],f=[...u,...l,...d],h=(0,n.fromPairs)((0,n.map)(f,e=>[e,a]));(null==s?void 0:s.showIncomingTransactions)!==undefined&&delete s.showIncomingTransactions;e.PreferencesController.incomingTransactionsPreferences=h}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/utils"),i=e("../../../shared/constants/network");const s=r.version=96}}},{package:"$root$",file:"app/scripts/migrations/096.ts"}],[432,{lodash:4554},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.TransactionController)||{},r=(null==t?void 0:t.transactions)||{};if((0,n.isEmpty)(r))return;const o=Object.keys(r).reduce((e,t)=>{const n=r[t];return null!=n&&n.nonceDetails&&delete n.nonceDetails,{...e,[t]:n}},{});e.TransactionController={...t,transactions:o}}(t.data),t},r.version=void 0;var n=e("lodash");const o=r.version=97}}},{package:"$root$",file:"app/scripts/migrations/097.ts"}],[433,{lodash:4554},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.TransactionController)||{},r=(null==t?void 0:t.transactions)||{};if((0,n.isEmpty)(r))return;const o=Object.keys(r).reduce((e,t)=>{const n=r[t];return n.verifiedOnBlockchain=Boolean(n.txReceipt),{...e,[t]:n}},{});e.TransactionController={...t,transactions:o}}(t.data),t},r.version=void 0;var n=e("lodash");const o=r.version=98}}},{package:"$root$",file:"app/scripts/migrations/098.ts"}],[434,{lodash:4554,uuid:5386},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.TransactionController)||{},r=(null==t?void 0:t.transactions)||{};if((0,n.isEmpty)(r))return;const i=Object.keys(r).reduce((e,t)=>{const i=(0,n.cloneDeep)(r[t]),s=(0,o.v1)();return i.id=s,{...e,[s]:i}},{});e.TransactionController={...t,transactions:i}}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("uuid");const i=r.version=99}}},{package:"$root$",file:"app/scripts/migrations/099.ts"}],[4340,{"./wrap-idb-value.cjs":4341},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("./wrap-idb-value.cjs");const o=["get","getKey","getAll","getAllKeys","count"],i=["put","add","delete","clear"],s=new Map;function a(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(s.get(t))return s.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,a=i.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!o.includes(r))return;const c=async function(e,...t){const o=this.transaction(e,a?"readwrite":"readonly");let i=o.store;return n&&(i=i.index(t.shift())),(await Promise.all([i[r](...t),a&&o.done]))[0]};return s.set(t,c),c}n.replaceTraps(e=>({...e,get:(t,r,n)=>a(t,r)||e.get(t,r,n),has:(t,r)=>!!a(t,r)||e.has(t,r)})),r.unwrap=n.unwrap,r.wrap=n.wrap,r.deleteDB=function(e,{blocked:t}={}){const r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",e=>t(e.oldVersion,e)),n.wrap(r).then(()=>undefined)},r.openDB=function(e,t,{blocked:r,upgrade:o,blocking:i,terminated:s}={}){const a=indexedDB.open(e,t),c=n.wrap(a);return o&&a.addEventListener("upgradeneeded",e=>{o(n.wrap(a.result),e.oldVersion,e.newVersion,n.wrap(a.transaction),e)}),r&&a.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),c.then(e=>{s&&e.addEventListener("close",()=>s()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),c}}}},{package:"@metamask/notification-services-controller>firebase>@firebase/app>idb",file:"node_modules/idb/build/index.cjs"}],[4341,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=(e,t)=>t.some(t=>e instanceof t);let o,i;const s=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakMap,u=new WeakMap;let d={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return a.get(e);if("objectStoreNames"===t)return e.objectStoreNames||c.get(e);if("store"===t)return r.objectStoreNames[1]?undefined:r.objectStore(r.objectStoreNames[0])}return p(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function f(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(m(this),t),p(s.get(this))}:function(...t){return p(e.apply(m(this),t))}:function(t,...r){const n=e.call(m(this),t,...r);return c.set(n,t.sort?t.sort():[t]),p(n)}}function h(e){return"function"==typeof e?f(e):(e instanceof IDBTransaction&&function(e){if(a.has(e))return;const t=new Promise((t,r)=>{const n=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),n()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)});a.set(e,t)}(e),n(e,o||(o=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,d):e)}function p(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,r)=>{const n=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(p(e.result)),n()},i=()=>{r(e.error),n()};e.addEventListener("success",o),e.addEventListener("error",i)});return t.then(t=>{t instanceof IDBCursor&&s.set(t,e)}).catch(()=>{}),u.set(t,e),t}(e);if(l.has(e))return l.get(e);const t=h(e);return t!==e&&(l.set(e,t),u.set(t,e)),t}const m=e=>u.get(e);r.instanceOfAny=n,r.replaceTraps=function(e){d=e(d)},r.reverseTransformCache=u,r.unwrap=m,r.wrap=p}}},{package:"@metamask/notification-services-controller>firebase>@firebase/app>idb",file:"node_modules/idb/build/wrap-idb-value.cjs"}],[435,{lodash:4554},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,r;const o=(null==e||null===(t=e.AddressBookController)||void 0===t?void 0:t.addressBook)??{},i=(null==e||null===(r=e.NameController)||void 0===r||null===(r=r.names)||void 0===r?void 0:r.ethereumAddress)??{};if((0,n.isEmpty)(Object.keys(o)))return;for(const e of Object.keys(o)){const t=o[e];for(const r of Object.keys(t)){var s,a;const n=t[r],o=r.toLowerCase(),c=i[o]??{};null!==(s=(c[e]??{}).name)&&void 0!==s&&s.length||null===(a=n.name)||void 0===a||!a.length||null==o||!o.length||(i[o]=c,c[e]={name:n.name,sourceId:n.isEns?"ens":null,proposedNames:{}})}}e.NameController={...e.NameController,names:{ethereumAddress:i}}}(t.data),t},r.version=void 0;var n=e("lodash");const o=r.version=100}}},{package:"$root$",file:"app/scripts/migrations/100.ts"}],[436,{"@metamask/utils":2831,lodash:4554},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=i,function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.hasProperty)(e.NetworkController,"networkId")){const t=e.NetworkController;return delete t.networkId,{...e,NetworkController:t}}var t,r;(0,n.isObject)(e.NetworkController)||null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("typeof state.NetworkController is "+typeof e.NetworkController))}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),o=e("lodash");const i=r.version=101}}},{package:"$root$",file:"app/scripts/migrations/101.ts"}],[4366,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);t.exports=e=>!n.has(e&&e.code)}}},{package:"is-retry-allowed",file:"node_modules/is-retry-allowed/index.js"}],[437,{lodash:4554},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.TransactionController)||{},r=(null==t?void 0:t.transactions)||{};if((0,n.isEmpty)(r))return;const o=Object.keys(r).reduce((e,t)=>{const o=(0,n.cloneDeep)(r[t]);return null!=o&&o.err&&(o.error=o.err,delete o.err),{...e,[t]:o}},{});e.TransactionController={...t,transactions:o}}(t.data),t},r.version=void 0;var n=e("lodash");const o=r.version=102}}},{package:"$root$",file:"app/scripts/migrations/102.ts"}],[4373,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){if("string"!=typeof e)return!1;var t=e.match(n);if(!t)return!1;var r=t[1];if(!r)return!1;if(o.test(r)||i.test(r))return!0;return!1};var n=/^(?:\w+:)?\/\/(\S+)$/,o=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,i=/^[^\s\.]+\.\S{2,}$/}}},{package:"@open-rpc/schema-utils-js>is-url",file:"node_modules/is-url/index.js"}],[4377,{"./src/relative":4378,"./src/url":4379},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{URLWithLegacySupport:n,format:o,URLSearchParams:i,defaultBase:s}=e("./src/url"),a=e("./src/relative");t.exports={URL:n,URLSearchParams:i,format:o,relative:a,defaultBase:s}}}},{package:"eth-lattice-keyring>gridplus-sdk>borc>iso-url",file:"node_modules/iso-url/index.js"}],[4378,{"./url":4379},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{URLWithLegacySupport:n,format:o}=e("./url");t.exports=(e,t={},r={},i)=>{let s,a=t.protocol?t.protocol.replace(":",""):"http";a=(r[a]||i||a)+":";try{s=new n(e)}catch(e){s={}}const c=Object.assign({},t,{protocol:a||s.protocol,host:t.host||s.host});return new n(e,o(c)).toString()}}}},{package:"eth-lattice-keyring>gridplus-sdk>borc>iso-url",file:"node_modules/iso-url/src/relative.js"}],[4379,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=self.location?self.location.protocol+"//"+self.location.host:"",o=self.URL;t.exports={URLWithLegacySupport:class{constructor(e="",t=n){this.super=new o(e,t),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}get hash(){return this.super.hash}get host(){return this.super.host}get hostname(){return this.super.hostname}get href(){return this.super.href}get origin(){return this.super.origin}get password(){return this.super.password}get pathname(){return this.super.pathname}get port(){return this.super.port}get protocol(){return this.super.protocol}get search(){return this.super.search}get searchParams(){return this.super.searchParams}get username(){return this.super.username}set hash(e){this.super.hash=e}set host(e){this.super.host=e}set hostname(e){this.super.hostname=e}set href(e){this.super.href=e}set origin(e){this.super.origin=e}set password(e){this.super.password=e}set pathname(e){this.super.pathname=e}set port(e){this.super.port=e}set protocol(e){this.super.protocol=e}set search(e){this.super.search=e}set searchParams(e){this.super.searchParams=e}set username(e){this.super.username=e}createObjectURL(e){return this.super.createObjectURL(e)}revokeObjectURL(e){this.super.revokeObjectURL(e)}toJSON(){return this.super.toJSON()}toString(){return this.super.toString()}format(){return this.toString()}},URLSearchParams:self.URLSearchParams,defaultBase:n,format:function(e){if("string"==typeof e){return new o(e).toString()}if(!(e instanceof o)){const t=e.username&&e.password?`${e.username}:${e.password}@`:"",r=e.auth?e.auth+"@":"",n=e.port?":"+e.port:"",o=e.protocol?e.protocol+"//":"",i=e.host||"",s=e.hostname||"",a=e.search||(e.query?"?"+e.query:""),c=e.hash||"",l=e.pathname||"";return`${o}${t||r}${i||s+n}${e.path||l+a}${c}`}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>borc>iso-url",file:"node_modules/iso-url/src/url-browser.js"}],[438,{"../../../shared/constants/hardware-wallets":5444,"@metamask/utils":2831,lodash:4554},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,t.data=function(e){if((0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&window.navigator.userAgent.includes("Chrome")){const t=e.PreferencesController;return t.ledgerTransportType=i.LedgerTransportTypes.webhid,{...e,PreferencesController:t}}return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),o=e("lodash"),i=e("../../../shared/constants/hardware-wallets");const s=r.version=103}}},{package:"$root$",file:"app/scripts/migrations/103.ts"}],[4380,{"whatwg-fetch":5419},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){e("whatwg-fetch"),t.exports=self.fetch.bind(self)}}},{package:"@open-rpc/test-coverage>isomorphic-fetch",file:"node_modules/isomorphic-fetch/fetch-npm-browserify.js"}],[4381,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){return t=t||"and",r=r||", ",e.length<2?e[0]||"":(t.slice(0,2)===r?2==e.length&&(t=t.slice(1)):t=" "+t,e.slice(0,-1).join(r)+t+" "+e[e.length-1])}}}},{package:"@segment/loosely-validate-event>join-component",file:"node_modules/join-component/index.js"}],[4382,{buffer:3792},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){!function(e,n){var o,i;"object"==typeof r&&void 0!==t?t.exports=n():"function"==typeof define&&define.amd?define(n):(o=e.Base64,(i=n()).noConflict=function(){return e.Base64=o,i},e.Meteor&&(Base64=i),e.Base64=i)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this,function(){var t,r="3.7.7",n=r,o="function"==typeof e,i="function"==typeof TextDecoder?new TextDecoder:undefined,s="function"==typeof TextEncoder?new TextEncoder:undefined,a=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),c=(t={},a.forEach(function(e,r){return t[e]=r}),t),l=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),d="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},f=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,function(e){return"+"==e?"-":"_"})},h=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},p=function(e){for(var t,r,n,o,i="",s=e.length%3,c=0;c<e.length;){if((r=e.charCodeAt(c++))>255||(n=e.charCodeAt(c++))>255||(o=e.charCodeAt(c++))>255)throw new TypeError("invalid character found");i+=a[(t=r<<16|n<<8|o)>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}return s?i.slice(0,s-3)+"===".substring(s):i},m="function"==typeof btoa?function(e){return btoa(e)}:o?function(t){return e.from(t,"binary").toString("base64")}:p,g=o?function(t){return e.from(t).toString("base64")}:function(e){for(var t=[],r=0,n=e.length;r<n;r+=4096)t.push(u.apply(null,e.subarray(r,r+4096)));return m(t.join(""))},b=function(e,t){return void 0===t&&(t=!1),t?f(g(e)):g(e)},v=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},y=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,k=function(e){return e.replace(y,v)},w=o?function(t){return e.from(t,"utf8").toString("base64")}:s?function(e){return g(s.encode(e))}:function(e){return m(k(e))},E=function(e,t){return void 0===t&&(t=!1),t?f(w(e)):w(e)},T=function(e){return E(e,!0)},C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,P=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u((t>>>10)+55296)+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},_=function(e){return e.replace(C,P)},S=function(e){if(e=e.replace(/\s+/g,""),!l.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,r,n,o="",i=0;i<e.length;)t=c[e.charAt(i++)]<<18|c[e.charAt(i++)]<<12|(r=c[e.charAt(i++)])<<6|(n=c[e.charAt(i++)]),o+=64===r?u(t>>16&255):64===n?u(t>>16&255,t>>8&255):u(t>>16&255,t>>8&255,255&t);return o},A="function"==typeof atob?function(e){return atob(h(e))}:o?function(t){return e.from(t,"base64").toString("binary")}:S,I=o?function(t){return d(e.from(t,"base64"))}:function(e){return d(A(e).split("").map(function(e){return e.charCodeAt(0)}))},x=function(e){return I(O(e))},j=o?function(t){return e.from(t,"base64").toString("utf8")}:i?function(e){return i.decode(I(e))}:function(e){return _(A(e))},O=function(e){return h(e.replace(/[-_]/g,function(e){return"-"==e?"+":"/"}))},N=function(e){return j(O(e))},B=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},R=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,B(t))};e("fromBase64",function(){return N(this)}),e("toBase64",function(e){return E(this,e)}),e("toBase64URI",function(){return E(this,!0)}),e("toBase64URL",function(){return E(this,!0)}),e("toUint8Array",function(){return x(this)})},D=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,B(t))};e("toBase64",function(e){return b(this,e)}),e("toBase64URI",function(){return b(this,!0)}),e("toBase64URL",function(){return b(this,!0)})},L={version:r,VERSION:n,atob:A,atobPolyfill:S,btoa:m,btoaPolyfill:p,fromBase64:N,toBase64:E,encode:E,encodeURI:T,encodeURL:T,utob:k,btou:_,decode:N,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:b,toUint8Array:x,extendString:R,extendUint8Array:D,extendBuiltins:function(){R(),D()},Base64:{}};return Object.keys(L).forEach(function(e){return L.Base64[e]=L[e]}),L})}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@ensdomains/content-hash>js-base64",file:"node_modules/js-base64/base64.js"}],[439,{lodash:4554},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.TransactionController;if(!t)return;const r=(null==t?void 0:t.transactions)||{},n=Object.values(r).sort((e,t)=>e.time>t.time?-1:1);e.TransactionController={...t,transactions:n}}(t.data),t},r.version=void 0;var n=e("lodash");const o=r.version=104}}},{package:"$root$",file:"app/scripts/migrations/104.ts"}],[44,{"../../../../shared/lib/delegation":5517,"@metamask/delegation-controller":1350,"@metamask/transaction-controller":2785},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"),o=e("@metamask/transaction-controller"),i=e("../../../../shared/lib/delegation");const s=e=>(0,i.getDeleGatorEnvironment)(Number(e));async function a(e,t,{hash:r,txMeta:n,entryToStore:i}){let{id:s}=n,a="continue";const c=({transactionMeta:n})=>{if(n.id===s)if(n.status===o.TransactionStatus.dropped&&n.replacedById)s=n.replacedById;else{switch(n.type){case o.TransactionType.contractInteraction:case o.TransactionType.retry:switch(n.status){case o.TransactionStatus.confirmed:a="delete";break;case o.TransactionStatus.dropped:case o.TransactionStatus.failed:case o.TransactionStatus.rejected:a="unsubscribe";break;default:return}break;case o.TransactionType.cancel:a="unsubscribe";break;default:return void console.warn("awaitDeleteDelegationEntry: Unexpected tx type",n.type)}"delete"===a&&(e.delete(r),i&&e.store({entry:i})),"unsubscribe"!==a&&"delete"!==a||t.unsubscribe("TransactionController:transactionStatusUpdated",c)}};t.subscribe("TransactionController:transactionStatusUpdated",c)}r.DelegationControllerInit=({controllerMessenger:e,persistedState:t,initMessenger:r})=>{const o=new n.DelegationController({messenger:e,state:t.DelegationController,hashDelegation:i.getDelegationHashOffchain,getDelegationEnvironment:s});return e.registerActionHandler("DelegationController:signDelegation",o.signDelegation.bind(o)),{controller:o,api:{signDelegation:o.signDelegation.bind(o),storeDelegationEntry:o.store.bind(o),listDelegationEntries:o.list.bind(o),getDelegationEntry:o.retrieve.bind(o),getDelegationEntryChain:o.chain.bind(o),deleteDelegationEntry:o.delete.bind(o),awaitDeleteDelegationEntry:a.bind(null,o,r)}}}}}},{package:"$root$",file:"app/scripts/controller-init/delegation/delegation-controller-init.ts"}],[440,{"../../../shared/constants/eth-methods":5441,"@metamask/keyring-api":2036,"ethereumjs-util":4050,lodash:4554,uuid:5386},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=c,function(e){(function(e){e.AccountsController={internalAccounts:{accounts:{},selectedAccount:""}}})(e),function(e){var t;const r=(null===(t=e.PreferencesController)||void 0===t?void 0:t.identities)||{};if(0===Object.keys(r).length)return;const s={};Object.values(r).forEach(e=>{const t=(0,i.v4)({random:(0,o.sha256FromString)(e.address).slice(0,16)});s[t]={address:e.address,id:t,options:{},metadata:{name:e.name,lastSelected:e.lastSelected??undefined,importTime:0,keyring:{type:"HD Key Tree"}},methods:a.ETH_EOA_METHODS,type:n.EthAccountType.Eoa}}),e.AccountsController.internalAccounts.accounts=s}(e),function(e){var t;let r=null===(t=e.PreferencesController)||void 0===t?void 0:t.selectedAddress;if("string"!=typeof r){var n,o;null===(n=global.sentry)||void 0===n||null===(o=n.captureException)||void 0===o||o.call(n,new Error(`state.PreferencesController?.selectedAddress is ${r}`)),r=function(e){var t;const[r]=Object.keys((null===(t=e.PreferencesController)||void 0===t?void 0:t.identities)||{});return r}(e)}const i=function(e,t){return Object.values(e.AccountsController.internalAccounts.accounts).find(e=>e.address.toLowerCase()===t.toLowerCase())}(e,r);i&&(e.PreferencesController.selectedAddress=i.address,e.AccountsController.internalAccounts={...e.AccountsController.internalAccounts,selectedAccount:i.id})}(e)}(t.data),t},r.version=void 0;var n=e("@metamask/keyring-api"),o=e("ethereumjs-util"),i=e("uuid"),s=e("lodash"),a=e("../../../shared/constants/eth-methods");const c=r.version=105}}},{package:"$root$",file:"app/scripts/migrations/105.ts"}],[441,{lodash:4554},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);t.meta.version=o;const r=function(e){const t=(null==e?void 0:e.PreferencesController)||{};return{...e,PreferencesController:{...t,securityAlertsEnabled:!0!==t.transactionSecurityCheckEnabled}}}(t.data);return t.data=r,t},r.version=void 0;var n=e("lodash");const o=r.version=106}}},{package:"$root$",file:"app/scripts/migrations/106.js"}],[442,{"@metamask/utils":2831,lodash:4554},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=function(e){if(!((0,o.hasProperty)(e,"CachedBalancesController")&&(0,o.isObject)(e.CachedBalancesController)&&(0,o.hasProperty)(e.CachedBalancesController,"cachedBalances")&&(0,o.isObject)(e.CachedBalancesController.cachedBalances)&&(0,o.hasProperty)(e,"AccountTracker")&&(0,o.isObject)(e.AccountTracker)))return e;e.AccountTracker.accountsByChainId||(e.AccountTracker.accountsByChainId={});const t=e.AccountTracker,r=e.CachedBalancesController.cachedBalances;return Object.keys(r).forEach(e=>{t.accountsByChainId[e]||(t.accountsByChainId[e]={}),Object.keys(r[e]).forEach(n=>{if(t.accountsByChainId[e][n]===undefined){const o=r[e][n];t.accountsByChainId[e][n]={address:n,balance:o}}})}),delete e.CachedBalancesController,e.AccountTracker=t,e}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/utils");const i=r.version=107}}},{package:"$root$",file:"app/scripts/migrations/107.ts"}],[443,{lodash:4554},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,r;const o=(null==e||null===(t=e.AddressBookController)||void 0===t?void 0:t.addressBook)??{},i=(null==e||null===(r=e.NameController)||void 0===r||null===(r=r.names)||void 0===r?void 0:r.ethereumAddress)??{};if((0,n.isEmpty)(Object.keys(o)))return;for(const e of Object.keys(o)){const t=o[e];for(const r of Object.keys(t)){var s,a;const n=t[r],o=r.toLowerCase(),c=i[o]??{};null!==(s=(c[e]??{}).name)&&void 0!==s&&s.length||null===(a=n.name)||void 0===a||!a.length||null==o||!o.length||(i[o]=c,c[e]={name:n.name,sourceId:n.isEns?"ens":null,proposedNames:{}})}}e.NameController={...e.NameController,names:{ethereumAddress:i}}}(t.data),t},r.version=void 0;var n=e("lodash");const o=r.version=108}}},{package:"$root$",file:"app/scripts/migrations/108.ts"}],[4439,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=Math.max,o=Math.min;t.exports=function(e,t,r){return e>=o(t,r)&&e<n(t,r)}}}},{package:"lodash",file:"node_modules/lodash/_baseInRange.js"}],[444,{"@metamask/name-controller":2198,lodash:4554},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,r;const i=(null==e||null===(t=e.PreferencesController)||void 0===t?void 0:t.identities)??{},s=(null==e||null===(r=e.NameController)||void 0===r||null===(r=r.names)||void 0===r?void 0:r.ethereumAddress)??{};if((0,n.isEmpty)(Object.keys(i)))return;let a=!1;for(const e of Object.keys(i)){var c,l,u;const t=i[e],r=e.toLowerCase(),n=s[r]??{};!Boolean(null===(c=n[o.FALLBACK_VARIATION])||void 0===c?void 0:c.name)&&null!==(l=t.name)&&void 0!==l&&l.length&&null!==(u=t.address)&&void 0!==u&&u.length&&null!=r&&r.length&&(s[r]=n,n[o.FALLBACK_VARIATION]={name:t.name,sourceId:null,proposedNames:{},origin:o.NameOrigin.ACCOUNT_IDENTITY},a=!0)}a&&(e.NameController={...e.NameController,names:{ethereumAddress:s}})}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/name-controller");const i=r.version=109}}},{package:"$root$",file:"app/scripts/migrations/109.ts"}],[445,{"../../../shared/constants/network":5454,"@metamask/controller-utils":1343,"@metamask/network-controller":2210,"@metamask/utils":2831,lodash:4554},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=c,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.GOERLI)return e;const c=e.NetworkController;(0,i.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,i.hasProperty)(e.NetworkController,"providerConfig")&&(0,n.isObject)(e.NetworkController.providerConfig)&&(0,i.hasProperty)(e.NetworkController.providerConfig,"chainId")&&e.NetworkController.providerConfig.chainId===a.CHAIN_IDS.GOERLI&&(c.providerConfig={type:o.NetworkType.sepolia,rpcPrefs:{},chainId:a.CHAIN_IDS.SEPOLIA,nickname:a.SEPOLIA_DISPLAY_NAME,rpcUrl:a.CHAIN_ID_TO_RPC_URL_MAP[a.CHAIN_IDS.SEPOLIA],providerType:a.NETWORK_TYPES.SEPOLIA,ticker:a.TEST_NETWORK_TICKER_MAP[a.NETWORK_TYPES.SEPOLIA],id:a.NETWORK_TYPES.SEPOLIA,removable:!1},c.selectedNetworkClientId=a.NETWORK_TYPES.SEPOLIA,c.networksMetadata={...c.networksMetadata,sepolia:{EIPS:{1559:!0},status:s.NetworkStatus.Available}})}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/controller-utils"),i=e("@metamask/utils"),s=e("@metamask/network-controller"),a=e("../../../shared/constants/network");const c=r.version=110}}},{package:"$root$",file:"app/scripts/migrations/110.ts"}],[4454,{"./_trimmedEndIndex":4529},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_trimmedEndIndex"),o=/^\s+/;t.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}}}},{package:"lodash",file:"node_modules/lodash/_baseTrim.js"}],[446,{"@metamask/utils":2831,lodash:4554},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){if(!(0,o.hasProperty)(e,"SelectedNetworkController"))return e;if((0,o.isObject)(e.SelectedNetworkController))if((0,o.hasProperty)(e.SelectedNetworkController,"domains")){if(!(0,o.isObject)(e.SelectedNetworkController.domains)){var t,r;null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("state.SelectedNetworkController.domains is type: "+typeof e.SelectedNetworkController.domains))}}else{var n,i;null===(n=global.sentry)||void 0===n||null===(i=n.captureException)||void 0===i||i.call(n,new Error("state.SelectedNetworkController.domains is missing from SelectedNetworkController state"))}else{var s,a;null===(s=global.sentry)||void 0===s||null===(a=s.captureException)||void 0===a||a.call(s,new Error("state.SelectedNetworkController is type: "+typeof e.SelectedNetworkController)),e.SelectedNetworkController={}}e.SelectedNetworkController.domains={}}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/utils");const i=r.version=111}}},{package:"$root$",file:"app/scripts/migrations/111.ts"}],[447,{"@metamask/utils":2831,lodash:4554},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){if(!(0,o.hasProperty)(e,"SelectedNetworkController"))return e;if((0,o.isObject)(e.SelectedNetworkController))if((0,o.hasProperty)(e.SelectedNetworkController,"perDomainNetwork")){if("boolean"!=typeof e.SelectedNetworkController.perDomainNetwork){var t,r;null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("state.SelectedNetworkController.perDomainNetwork is type: "+typeof e.SelectedNetworkController.perDomainNetwork))}}else{var n,i;null===(n=global.sentry)||void 0===n||null===(i=n.captureException)||void 0===i||i.call(n,new Error("state.SelectedNetworkController.perDomainNetwork is missing from SelectedNetworkController state"))}else{var s,a;null===(s=global.sentry)||void 0===s||null===(a=s.captureException)||void 0===a||a.call(s,new Error("state.SelectedNetworkController is type: "+typeof e.SelectedNetworkController)),e.SelectedNetworkController={}}delete e.SelectedNetworkController.perDomainNetwork}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/utils");const i=r.version=112}}},{package:"$root$",file:"app/scripts/migrations/112.ts"}],[448,{"../../../shared/lib/sentry":5536,"@metamask/utils":2831,lodash:4554},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){if(!(0,n.hasProperty)(e,"PreferencesController")||!(0,n.isObject)(e.PreferencesController))return(0,i.captureException)(`Migration ${s}: Invalid PreferencesController state: ${typeof e.PreferencesController}`),e;(0,n.hasProperty)(e.PreferencesController,"isLineaMainnetReleased")&&delete e.PreferencesController.isLineaMainnetReleased}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),o=e("lodash"),i=e("../../../shared/lib/sentry");const s=r.version=113}}},{package:"$root$",file:"app/scripts/migrations/113.ts"}],[449,{"@metamask/utils":2831,lodash:4554},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){if(!(0,o.hasProperty)(e,"PreferencesController"))return e;if((0,o.isObject)(e.PreferencesController))(0,o.hasProperty)(e.PreferencesController,"transactionSecurityCheckEnabled")&&(e.PreferencesController.transactionSecurityCheckEnabled&&(e.PreferencesController.securityAlertsEnabled=!0,e.PreferencesController.hasMigratedFromOpenSeaToBlockaid=!0),delete e.PreferencesController.transactionSecurityCheckEnabled);else{var t,r;null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("state.PreferencesController is type: "+typeof e.PreferencesController)),e.PreferencesController={}}}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/utils");const i=r.version=114}}},{package:"$root$",file:"app/scripts/migrations/114.ts"}],[45,{"../../../shared/lib/sentry":5536,"@metamask/error-reporting-service":1740},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"),o=e("../../../shared/lib/sentry");r.ErrorReportingServiceInit=({controllerMessenger:e})=>({persistedStateKey:null,memStateKey:null,controller:new n.ErrorReportingService({messenger:e,captureException:o.captureException})})}}},{package:"$root$",file:"app/scripts/controller-init/error-reporting-service-init.ts"}],[450,{"@metamask/utils":2831,lodash:4554},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.AppStateController)||{};(0,o.hasProperty)(e,"AppStateController")&&(0,n.isObject)(e.AppStateController)&&(0,o.hasProperty)(e.AppStateController,"showProductTour")&&e.AppStateController.showProductTour!==undefined&&delete t.showProductTour}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/utils");const i=r.version=115}}},{package:"$root$",file:"app/scripts/migrations/115.ts"}],[451,{"@metamask/transaction-controller":2785,lodash:4554},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TARGET_DATE=r.StuckTransactionError=void 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||null===(t=e.TransactionController)||void 0===t?void 0:t.transactions)??[];for(const e of r)if(e.time<s&&a.includes(e.status)){e.status=o.TransactionStatus.failed;e.error=c}}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/transaction-controller");const i=r.version=116,s=r.TARGET_DATE=new Date("2023-12-08T00:00:00Z").getTime(),a=[o.TransactionStatus.approved,o.TransactionStatus.signed],c=r.StuckTransactionError={name:"StuckTransactionDueToStatus",message:"Transaction is stuck due to status - migration 115"}}}},{package:"$root$",file:"app/scripts/migrations/116.ts"}],[452,{"@metamask/utils":2831,lodash:4554,loglevel:4562},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){const t=e.SelectedNetworkController;if(!t)return void i.default.warn("Skipping migration. SelectedNetworkController state not found.");if(!(0,s.isObject)(t)){var r,n;return void(null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error("SelectedNetworkController is not an object.")))}if(!(0,s.hasProperty)(t,"domains")){var o,a;return void(null===(o=global.sentry)||void 0===o||null===(a=o.captureException)||void 0===a||a.call(o,new Error("Domains key is missing in SelectedNetworkController state.")))}if(!(0,s.isObject)(t.domains)){var c,l;return void(null===(c=global.sentry)||void 0===c||null===(l=c.captureException)||void 0===l||l.call(c,new Error("Domains state is not an object.")))}const{domains:u}=t,d=Object.keys(u).reduce((e,t)=>(t.startsWith("npm:")||t.startsWith("local:")||(e[t]=u[t]),e),{});t.domains=d}(t.data),t},r.version=void 0;var n,o=e("lodash"),i=(n=e("loglevel"))&&n.__esModule?n:{default:n},s=e("@metamask/utils");const a=r.version=117}}},{package:"$root$",file:"app/scripts/migrations/117.ts"}],[4529,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=/\s/;t.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}}}},{package:"lodash",file:"node_modules/lodash/_trimmedEndIndex.js"}],[453,{"@metamask/utils":2831,lodash:4554},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){if(!(0,o.hasProperty)(e,"PreferencesController"))return e;if(!(0,o.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"),o=e("@metamask/utils");const i=r.version=118}}},{package:"$root$",file:"app/scripts/migrations/118.ts"}],[4534,{"./_baseInRange":4439,"./toFinite":4558,"./toNumber":4560},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_baseInRange"),o=e("./toFinite"),i=e("./toNumber");t.exports=function(e,t,r){return t=o(t),r===undefined?(r=t,t=0):r=o(r),e=i(e),n(e,t,r)}}}},{package:"lodash",file:"node_modules/lodash/inRange.js"}],[454,{"@metamask/utils":2831,lodash:4554},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.AccountsController)||{};(0,n.isObject)(e.AccountsController)&&(0,o.hasProperty)(e.AccountsController,"internalAccounts")&&(0,o.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"),o=e("@metamask/utils");const i=r.version=119}}},{package:"$root$",file:"app/scripts/migrations/119.ts"}],[4540,{"./_baseKeys":4447,"./_getTag":4483,"./_isPrototype":4497,"./isArguments":4535,"./isArray":4536,"./isArrayLike":4537,"./isBuffer":4539,"./isTypedArray":4551},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_baseKeys"),o=e("./_getTag"),i=e("./isArguments"),s=e("./isArray"),a=e("./isArrayLike"),c=e("./isBuffer"),l=e("./_isPrototype"),u=e("./isTypedArray"),d=Object.prototype.hasOwnProperty;t.exports=function(e){if(null==e)return!0;if(a(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!n(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}}}},{package:"lodash",file:"node_modules/lodash/isEmpty.js"}],[4543,{"./toInteger":4559},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./toInteger");t.exports=function(e){return"number"==typeof e&&e==n(e)}}}},{package:"lodash",file:"node_modules/lodash/isInteger.js"}],[455,{"../../../shared/lib/sentry":5536,"@metamask/utils":2831,lodash:4554},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,o.hasProperty)(e,"UserStorageController"))return e.UserStorageController={isProfileSyncingEnabled:null},e;if(!(0,n.isObject)(e.UserStorageController)||!(0,o.hasProperty)(e.UserStorageController,"isProfileSyncingEnabled"))return(0,i.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"),o=e("@metamask/utils"),i=e("../../../shared/lib/sentry");const s=r.version=120.1}}},{package:"$root$",file:"app/scripts/migrations/120.1.ts"}],[4550,{"./_baseGetTag":4438,"./isObjectLike":4547},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_baseGetTag"),o=e("./isObjectLike");t.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}}}},{package:"lodash",file:"node_modules/lodash/isSymbol.js"}],[4558,{"./toNumber":4560},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./toNumber"),o=1/0;t.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}}}},{package:"lodash",file:"node_modules/lodash/toFinite.js"}],[4559,{"./toFinite":4558},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"}],[456,{"../../../shared/lib/sentry":5536,"@metamask/utils":2831,lodash:4554,loglevel:4562},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=c,function(e){(function(e){if(!(0,i.hasProperty)(e,"SnapController"))return;var t,r;if(!(0,i.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 ${c}: Invalid SnapController state of type '${typeof e.SnapController}'`)));delete e.SnapController.snapErrors})(e),function(e){if(!(0,i.hasProperty)(e,"SelectedNetworkController"))return;(0,i.isObject)(e.SelectedNetworkController)?(0,i.hasProperty)(e.SelectedNetworkController,"perDomainNetwork")&&delete e.SelectedNetworkController:(console.error(`Migration ${c}: Invalid SelectedNetworkController state of type '${typeof e.SelectedNetworkController}'`),delete e.SelectedNetworkController)}(e),function(e){if(!(0,i.hasProperty)(e,"NetworkController"))return;var t,r;if(!(0,i.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 ${c}: Invalid NetworkController state of type '${typeof e.NetworkController}'`)));const n=e.NetworkController;if((0,i.hasProperty)(n,"providerConfig")&&n.providerConfig!==undefined){var o,a;if(!(0,i.isObject)(n.providerConfig))return void(null===(o=global.sentry)||void 0===o||null===(a=o.captureException)||void 0===a||a.call(o,new Error(`Migration ${c}: Invalid NetworkController providerConfig state of type '${typeof e.NetworkController.providerConfig}'`)));const{providerConfig:t}=n,r=[];if((0,i.hasProperty)(n,"networkConfigurations")){var l,u;if(!(0,i.isObject)(n.networkConfigurations))return void(null===(l=global.sentry)||void 0===l||null===(u=l.captureException)||void 0===u||u.call(l,new Error(`Migration ${c}: Invalid NetworkController networkConfigurations state of type '${typeof n.networkConfigurations}'`)));r.push(...Object.keys(n.networkConfigurations))}(0,i.hasProperty)(t,"id")&&("string"==typeof t.id&&r.includes(t.id)||(s.default.warn(`Migration ${c}: 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,i.hasProperty)(e,"PhishingController"))return;if(!(0,i.isObject)(e.PhishingController))return void(0,a.captureException)(new Error(`Migration ${c}: Invalid PhishingController state of type '${typeof e.PhishingController}'`));(0,i.hasProperty)(e.PhishingController,"listState")&&delete e.PhishingController.listState}(e)}(t.data),t},r.version=void 0;var n,o=e("lodash"),i=e("@metamask/utils"),s=(n=e("loglevel"))&&n.__esModule?n:{default:n},a=e("../../../shared/lib/sentry");const c=r.version=120.2}}},{package:"$root$",file:"app/scripts/migrations/120.2.ts"}],[4560,{"./_baseTrim":4454,"./isObject":4546,"./isSymbol":4550},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_baseTrim"),o=e("./isObject"),i=e("./isSymbol"),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(i(e))return s;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=c.test(e);return r||l.test(e)?u(e.slice(2),r?2:8):a.test(e)?s:+e}}}},{package:"lodash",file:"node_modules/lodash/toNumber.js"}],[457,{"@metamask/utils":2831,lodash:4554},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=i,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 ${i}: 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 ${i}: 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 ${i}: 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"),o=e("lodash");const i=r.version=120.4}}},{package:"$root$",file:"app/scripts/migrations/120.4.ts"}],[458,{"@metamask/utils":2831,lodash:4554},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=i,function(e){if(!(0,n.hasProperty)(e,"SelectedNetworkController"))return;if(!(0,n.isObject)(e.SelectedNetworkController))return console.error(`Migration ${i}: Invalid SelectedNetworkController state of type '${typeof e.SelectedNetworkController}'`),void delete e.SelectedNetworkController;if(!(0,n.hasProperty)(e.SelectedNetworkController,"domains"))return console.error(`Migration ${i}: Missing SelectedNetworkController domains state`),void delete e.SelectedNetworkController;if(!(0,n.isObject)(e.SelectedNetworkController.domains))return console.error(`Migration ${i}: 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 ${i}: 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 ${i}: 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 ${i}: Invalid networkConfigurationId found in SelectedNetworkController state: '${n}'`)),void delete e.SelectedNetworkController}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),o=e("lodash");const i=r.version=120.5;const s=["mainnet","goerli","sepolia","linea-goerli","linea-sepolia","linea-mainnet"]}}},{package:"$root$",file:"app/scripts/migrations/120.5.ts"}],[459,{"@metamask/utils":2831,lodash:4554,loglevel:4562},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){if(!(0,o.hasProperty)(e,"TransactionController"))return void s.default.warn(`Migration ${a}: Missing TransactionController state`);var t;if(!(0,o.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,o.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,i=n.filter(o.isObject);if(n.length!==i.length){var u;const e=n.find(e=>!(0,o.isObject)(e));return void(null===(u=global.sentry)||void 0===u||u.captureException(`Migration ${a}: Invalid transaction of type '${typeof e}'`))}const d=i.filter(l);if(d.length!==i.length){var f;const e=i.find(e=>!l(e));return void(null===(f=global.sentry)||void 0===f||f.captureException(`Migration ${a}: Invalid transaction history of type '${typeof(null==e?void 0:e.history)}'`))}for(const e of d)e.history&&e.history.length>c&&(e.history=e.history.slice(0,c))}(t.data),t},r.version=void 0;var n,o=e("@metamask/utils"),i=e("lodash"),s=(n=e("loglevel"))&&n.__esModule?n:{default:n};const a=r.version=120.6,c=100;function l(e){return!(0,o.hasProperty)(e,"history")||Array.isArray(e.history)}}}},{package:"$root$",file:"app/scripts/migrations/120.6.ts"}],[46,{"../../../../shared/modules/environment":5556,"@metamask/gator-permissions-controller":1967,"@metamask/snaps-utils":2708},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"),o=e("@metamask/snaps-utils"),i=e("../../../../shared/modules/environment");const s=()=>{const e="npm:@metamask/gator-permissions-snap";if(e!==undefined)try{(0,o.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,i.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"}],[460,{"@metamask/utils":2831,lodash:4554},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){(0,o.hasProperty)(e,"TokenRatesController")&&(delete e.TokenRatesController.contractExchangeRates,delete e.TokenRatesController.contractExchangeRatesByChainId)}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/utils");const i=r.version=120}}},{package:"$root$",file:"app/scripts/migrations/120.ts"}],[461,{"@metamask/utils":2831,lodash:4554,loglevel:4562},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){if(!(0,o.hasProperty)(e,"AccountsController"))return;const t=e.AccountsController;var r,n,c,l,u,d,f;if(!(0,i.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,o.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,i.isObject)(t.internalAccounts))return void(null===(c=global.sentry)||void 0===c||c.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state of type '${typeof t.internalAccounts}'`)));if(!(0,o.hasProperty)(t.internalAccounts,"selectedAccount"))return void(null===(l=global.sentry)||void 0===l||l.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state, missing selectedAccount`)));if("string"!=typeof t.internalAccounts.selectedAccount)return void(null===(u=global.sentry)||void 0===u||u.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.selectedAccount state of type '${typeof t.internalAccounts.selectedAccount}'`)));if(!(0,o.hasProperty)(t.internalAccounts,"accounts"))return void(null===(d=global.sentry)||void 0===d||d.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state, missing accounts`)));if(!(0,i.isObject)(t.internalAccounts.accounts))return void(null===(f=global.sentry)||void 0===f||f.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 h=Object.values(t.internalAccounts.accounts)[0];var p,m,g;if(!(0,i.isObject)(h))return void(null===(p=global.sentry)||void 0===p||p.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found of type '${typeof h}'`)));if(!(0,o.hasProperty)(h,"id"))return void(null===(m=global.sentry)||void 0===m||m.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found that is missing an id`)));if("string"!=typeof h.id)return void(null===(g=global.sentry)||void 0===g||g.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found with an id of type '${typeof h.id}'`)));(0,o.hasProperty)(t.internalAccounts.accounts,t.internalAccounts.selectedAccount)||(t.internalAccounts.selectedAccount=h.id)}(t.data),t},r.version=void 0;var n,o=e("@metamask/utils"),i=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"}],[462,{"../../../shared/constants/network":5454,"@metamask/utils":2831,lodash:4554},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){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===i.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===i.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"),o=e("lodash"),i=e("../../../shared/constants/network");const s=r.version=121.2}}},{package:"$root$",file:"app/scripts/migrations/121.2.ts"}],[463,{"../../../shared/constants/network":5454,"@metamask/controller-utils":1343,"@metamask/network-controller":2210,"@metamask/utils":2831,lodash:4554},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=c,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 c=e.NetworkController;(0,i.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,i.hasProperty)(e.NetworkController,"providerConfig")&&(0,n.isObject)(e.NetworkController.providerConfig)&&(0,i.hasProperty)(e.NetworkController.providerConfig,"chainId")&&e.NetworkController.providerConfig.chainId===a.CHAIN_IDS.LINEA_GOERLI&&(c.providerConfig={type:o.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},c.selectedNetworkClientId=a.NETWORK_TYPES.LINEA_SEPOLIA,c.networksMetadata={...c.networksMetadata,"linea-sepolia":{EIPS:{1559:!0},status:s.NetworkStatus.Available}})}(t.data),t},r.version=void 0;var n=e("lodash"),o=e("@metamask/controller-utils"),i=e("@metamask/utils"),s=e("@metamask/network-controller"),a=e("../../../shared/constants/network");const c=r.version=121}}},{package:"$root$",file:"app/scripts/migrations/121.ts"}],[464,{"@metamask/utils":2831,lodash:4554},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;if(!(0,o.hasProperty)(e,"PreferencesController"))return;if(!(0,o.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,o.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"),o=e("@metamask/utils");const i=r.version=122}}},{package:"$root$",file:"app/scripts/migrations/122.ts"}],[465,{lodash:4554},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.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 o=r.version=123}}},{package:"$root$",file:"app/scripts/migrations/123.ts"}],[466,{lodash:4554},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.PreferencesController,r=null==t?void 0:t.preferences;r&&(r.redesignedTransactionsEnabled=!1)}(t.data),t},r.version=void 0;var n=e("lodash");const o=r.version=124}}},{package:"$root$",file:"app/scripts/migrations/124.ts"}],[467,{"@metamask/utils":2831,lodash:4554},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=i,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"),o=e("lodash");const i=r.version=125.1}}},{package:"$root$",file:"app/scripts/migrations/125.1.ts"}],[468,{"@metamask/utils":2831,lodash:4554},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=i,function(e){(0,n.hasProperty)(e,"TxController")&&delete e.TxController}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),o=e("lodash");const i=r.version=125}}},{package:"$root$",file:"app/scripts/migrations/125.ts"}],[469,{"@metamask/utils":2831,lodash:4554},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=i,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 ${i}: 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"),o=e("lodash");const i=r.version=126.1}}},{package:"$root$",file:"app/scripts/migrations/126.1.ts"}],[4690,{"./util":4694},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,o){this.name=e,this.code=t,this.codeBuf=n(this.code),this.alphabet=o,this.codec=r(o)}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"}],[4691,{"./base.js":4690,"./rfc4648":4693,"./util":4694,"@multiformats/base-x":2844},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("@multiformats/base-x"),o=e("./base.js"),{rfc4648:i}=e("./rfc4648"),{decodeText:s,encodeText:a}=e("./util"),c=[["identity","\0",()=>({encode:s,decode:a}),""],["base2","0",i(1),"01"],["base8","7",i(3),"01234567"],["base10","9",n,"0123456789"],["base16","f",i(4),"0123456789abcdef"],["base16upper","F",i(4),"0123456789ABCDEF"],["base32hex","v",i(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",i(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",i(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",i(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",i(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",i(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",i(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",i(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",i(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",n,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",n,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",n,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",n,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",i(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",i(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",i(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",i(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],l=c.reduce((e,t)=>(e[t[0]]=new o(t[0],t[1],t[2],t[3]),e),{}),u=c.reduce((e,t)=>(e[t[1]]=l[t[0]],e),{});t.exports={names:l,codes:u}}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/constants.js"}],[4692,{"./constants":4691,"./util":4694},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./constants"),{encodeText:o,decodeText:i,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(i(t))}(r,t),s([n,t],n.length+t.length)}).encode=function(e,t){const r=a(e),n=o(r.encode(t));return s([r.codeBuf,n],r.codeBuf.length+n.length)},r.decode=function(e){e instanceof Uint8Array&&(e=i(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=i(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=i(e)),a(e[0])};const c=Object.freeze(n.names),l=Object.freeze(n.codes);r.names=c,r.codes=l}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/index.js"}],[4693,{},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],o=(1<<r)-1;let i="",s=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],s+=8;s>r;)s-=r,i+=t[o&a>>s];if(s&&(i+=t[o&a<<r-s]),n)for(;i.length*r&7;)i+="=";return i})(r,t,e),decode:r=>((e,t,r)=>{const n={};for(let e=0;e<t.length;++e)n[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;const i=new Uint8Array(o*r/8|0);let s=0,a=0,c=0;for(let t=0;t<o;++t){const o=n[e[t]];if(o===undefined)throw new SyntaxError("Invalid character "+e[t]);a=a<<r|o,s+=r,s>=8&&(s-=8,i[c++]=255&a>>s)}if(s>=r||255&a<<8-s)throw new SyntaxError("Unexpected end of data");return i})(r,t,e)})}}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/rfc4648.js"}],[4694,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=new TextDecoder,o=new TextEncoder;t.exports={decodeText:e=>n.decode(e),encodeText:e=>o.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"}],[4695,{"./util/as-uint8array.js":4699},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"}],[4696,{"./alloc.js":4695,"./util/as-uint8array.js":4699},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"),o=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 i=0;for(const t of e)r.set(t,i),i+=t.length;return o.asUint8Array(r)}}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/concat.js"}],[4697,{"./util/as-uint8array.js":4699,"./util/bases.js":4700},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"),o=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}`):o.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"}],[4698,{"./util/bases.js":4700},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"}],[4699,{},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"}],[47,{"@metamask/profile-sync-controller/auth":2336,"@metamask/profile-sync-controller/sdk":2357},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"),o=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:o.Platform.EXTENSION}})})}}},{package:"$root$",file:"app/scripts/controller-init/identity/authentication-controller-init.ts"}],[470,{"@metamask/utils":2831,lodash:4554},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=i,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"),o=e("lodash");const i=r.version=126}}},{package:"$root$",file:"app/scripts/migrations/126.ts"}],[4700,{"../alloc.js":4695,"multiformats/basics":4716},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("multiformats/basics"),o=e("../alloc.js");function i(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const s=i("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>(new TextEncoder).encode(e.substring(1))),a=i("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=o.allocUnsafe(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),c={utf8:s,"utf-8":s,hex:n.bases.base16,latin1:a,ascii:a,binary:a,...n.bases};t.exports=c}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/util/bases.js"}],[4701,{},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"}],[4702,{"./maps":4703,"./util":4704,"uint8arrays/concat":4696,varint:5408},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("varint"),{concat:o}=e("uint8arrays/concat"),i=e("./util"),{nameToVarint:s,constantToCode:a,nameToCode:c,codeToName:l}=e("./maps");function u(e){const t=n.decode(e),r=l[t];if(r===undefined)throw new Error(`Code "${t}" not found`);return r}function d(e){return l[e]}function f(e){const t=c[e];if(t===undefined)throw new Error(`Codec "${e}" not found`);return t}function h(e){return n.decode(e)}function p(e){const t=s[e];if(t===undefined)throw new Error(`Codec "${e}" not found`);return t}function m(e){return i.varintEncode(e)}t.exports={addPrefix:function(e,t){let r;if(e instanceof Uint8Array)r=i.varintUint8ArrayEncode(e);else{if(!s[e])throw new Error("multicodec not recognized");r=s[e]}return o([r,t],r.length+t.length)},rmPrefix:function(e){return n.decode(e),e.slice(n.decode.bytes)},getNameFromData:u,getNameFromCode:d,getCodeFromName:f,getCodeFromData:h,getVarintFromName:p,getVarintFromCode:m,getCodec:function(e){return u(e)},getName:function(e){return d(e)},getNumber:function(e){return f(e)},getCode:function(e){return h(e)},getCodeVarint:function(e){return p(e)},getVarint:function(e){return Array.from(m(e))},...a,nameToVarint:s,nameToCode:c,codeToName:l}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/index.js"}],[4703,{"./generated-table":4701,"./util":4704},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{baseTable:n}=e("./generated-table"),o=e("./util").varintEncode,i={},s={},a={};for(const e in n){const t=e,r=n[t];i[t]=o(r);s[t.toUpperCase().replace(/-/g,"_")]=r,a[r]||(a[r]=t)}Object.freeze(i),Object.freeze(s),Object.freeze(a);const c=Object.freeze(n);t.exports={nameToVarint:i,constantToCode:s,nameToCode:c,codeToName:a}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/maps.js"}],[4704,{"uint8arrays/from-string":4697,"uint8arrays/to-string":4698,varint:5408},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("varint"),{toString:o}=e("uint8arrays/to-string"),{fromString:i}=e("uint8arrays/from-string");function s(e){return parseInt(o(e,"base16"),16)}t.exports={numberToUint8Array:function(e){let t=e.toString(16);t.length%2==1&&(t="0"+t);return i(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"}],[4706,{"./base.js":4705},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"}],[4707,{"./base.js":4705},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 o=n.rfc4648({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),i=n.rfc4648({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});r.base16=o,r.base16upper=i}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base16.js"}],[4708,{"./base.js":4705},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"}],[4709,{"./base.js":4705},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 o=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),i=o.reduce((e,t,r)=>(e[r]=t,e),[]),s=o.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+=i[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"}],[471,{"../../../shared/constants/network":5454,"@metamask/utils":2831,lodash:4554,"uri-js":5360},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=c,function(e){var t;var r,o,a,c,l,u,d,f;if(!(0,n.hasProperty)(e,"NetworkController"))return null===(r=global.sentry)||void 0===r||null===(o=r.captureException)||void 0===o||o.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===(c=a.captureException)||void 0===c||c.call(a,new Error("typeof state.NetworkController is "+typeof e.NetworkController)),e;if(!(0,n.hasProperty)(e,"TransactionController"))return null===(l=global.sentry)||void 0===l||null===(u=l.captureException)||void 0===u||u.call(l,new Error("state.TransactionController is not defined")),e;if(!(0,n.isObject)(e.TransactionController))return null===(d=global.sentry)||void 0===d||null===(f=d.captureException)||void 0===f||f.call(d,new Error("typeof state.TransactionController is "+typeof e.TransactionController)),e;const h=e.NetworkController;let p=(0,n.isObject)(h.networkConfigurations)?Object.values(h.networkConfigurations):[];p=[{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"}},...p];const m=p.reduce((e,t)=>{var r;(0,n.isObject)(t)&&"string"==typeof t.chainId&&(e[r=t.chainId]??(e[r]=[])).push(t);return e},{}),g=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):[],b=Object.entries(m).reduce((e,[t,r])=>{var o,a,c,l;let u;u=r.find(e=>e.id===h.selectedNetworkClientId),u||g.filter(e=>e.chainId===t).some(e=>u=r.find(t=>t.id===e.networkClientId)),u||(u=r.find(e=>"infura"!==e.type));const d=r.reduce((t,r)=>{if(r.id&&r.rpcUrl&&"string"==typeof r.rpcUrl&&function(e){const t=i.parse(e);return t.error===undefined&&("http"===t.scheme||"https"===t.scheme)}(r.rpcUrl)){const o=p.some(e=>(0,n.isObject)(e)&&"string"==typeof e.rpcUrl&&"string"==typeof r.rpcUrl&&e.id!==r.id&&i.equal(e.rpcUrl,r.rpcUrl)&&e.id===h.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&&i.equal(e.url,r.rpcUrl));o||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===d.length)return e;const f=Math.max(d.findIndex(e=>{var t;return e.networkClientId===(null===(t=u)||void 0===t?void 0:t.id)}),0),m=[...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)],b=0===m.length?undefined:Math.max(m.findIndex(e=>{var t;return(0,n.isObject)(null===(t=u)||void 0===t?void 0:t.rpcPrefs)&&e===u.rpcPrefs.blockExplorerUrl}),0),v=s.NETWORK_TO_NAME_MAP[t]??(null===(o=u)||void 0===o?void 0:o.nickname)??(null===(a=r.find(e=>e.nickname))||void 0===a?void 0:a.nickname),y=s.CHAIN_ID_TO_CURRENCY_SYMBOL_MAP[t]??(null===(c=u)||void 0===c?void 0:c.ticker)??(null===(l=r.find(e=>e.ticker))||void 0===l?void 0:l.ticker);return e[t]={chainId:t,rpcEndpoints:d,defaultRpcEndpointIndex:f,blockExplorerUrls:m,...b!==undefined&&{defaultBlockExplorerUrlIndex:b},name:v,nativeCurrency:y},e},{}),v=e=>{const t=p.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 y=null===(t=Object.values(b).flatMap(e=>(0,n.isObject)(e)&&Array.isArray(e.rpcEndpoints)?e.rpcEndpoints:[]).find(e=>e.networkClientId===h.selectedNetworkClientId))||void 0===t?void 0:t.networkClientId;if(!y){const e=b[v(h.selectedNetworkClientId)??"0x1"];y=(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 o;const i=v(r);if(i){const e=b[i];(0,n.isObject)(e)&&Array.isArray(e.rpcEndpoints)&&"number"==typeof e.defaultRpcEndpointIndex&&(o=e.rpcEndpoints[e.defaultRpcEndpointIndex].networkClientId)}o?e.SelectedNetworkController.domains[t]=o:delete e.SelectedNetworkController.domains[t]}e.NetworkController={selectedNetworkClientId:y,networkConfigurationsByChainId:b,networksMetadata:h.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(b).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"),o=e("lodash"),i=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},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}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 c=r.version=127}}},{package:"$root$",file:"app/scripts/migrations/127.ts"}],[4711,{"./base.js":4705},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 o=n.baseX({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),i=n.baseX({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});r.base36=o,r.base36upper=i}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base36.js"}],[4713,{"./base.js":4705},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 o=n.rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),i=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=o,r.base64pad=i,r.base64url=s,r.base64urlpad=a}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base64.js"}],[4714,{"./base.js":4705},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"}],[4715,{"../bytes.js":4717,"./base.js":4705},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"),o=e("../bytes.js");const i=n.from({prefix:"\0",name:"identity",encode:e=>o.toString(e),decode:e=>o.fromString(e)});r.identity=i}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/identity.js"}],[4716,{"./bases/base10.js":4706,"./bases/base16.js":4707,"./bases/base2.js":4708,"./bases/base256emoji.js":4709,"./bases/base32.js":4710,"./bases/base36.js":4711,"./bases/base58.js":4712,"./bases/base64.js":4713,"./bases/base8.js":4714,"./bases/identity.js":4715,"./bytes.js":4717,"./cid.js":4718,"./codecs/json.js":4719,"./codecs/raw.js":4720,"./hashes/digest.js":4721,"./hashes/hasher.js":4722,"./hashes/identity.js":4723,"./hashes/sha2.js":4724,"./index.js":4725,"./varint.js":4726},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"),o=e("./bases/base2.js"),i=e("./bases/base8.js"),s=e("./bases/base10.js"),a=e("./bases/base16.js"),c=e("./bases/base32.js"),l=e("./bases/base36.js"),u=e("./bases/base58.js"),d=e("./bases/base64.js"),f=e("./bases/base256emoji.js"),h=e("./hashes/sha2.js"),p=e("./hashes/identity.js"),m=e("./codecs/raw.js"),g=e("./codecs/json.js");e("./index.js");var b=e("./cid.js"),v=e("./hashes/hasher.js"),y=e("./hashes/digest.js"),k=e("./varint.js"),w=e("./bytes.js");const E={...n,...o,...i,...s,...a,...c,...l,...u,...d,...f},T={...h,...p},C={raw:m,json:g};r.CID=b.CID,r.hasher=v,r.digest=y,r.varint=k,r.bytes=w,r.bases=E,r.codecs=C,r.hashes=T}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/basics.js"}],[4719,{},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,o=new TextDecoder;r.code=512,r.decode=e=>JSON.parse(o.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"}],[472,{"@metamask/utils":2831,lodash:4554},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=i,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"),o=e("lodash");const i=r.version=128}}},{package:"$root$",file:"app/scripts/migrations/128.ts"}],[4720,{"../bytes.js":4717},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"}],[4723,{"../bytes.js":4717,"./digest.js":4721},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"),o=e("./digest.js");const i=n.coerce,s={code:0,name:"identity",encode:i,digest:e=>o.create(0,i(e))};r.identity=s}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/hashes/identity.js"}],[4724,{"./hasher.js":4722},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 o=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),i=n.from({name:"sha2-256",code:18,encode:o("SHA-256")}),s=n.from({name:"sha2-512",code:19,encode:o("SHA-512")});r.sha256=i,r.sha512=s}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/hashes/sha2-browser.js"}],[4729,{},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"}],[473,{"@metamask/utils":2831,lodash:4554},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=i,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"),o=e("lodash");const i=r.version=129}}},{package:"$root$",file:"app/scripts/migrations/129.ts"}],[4730,{multibase:4692},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{encoding:n}=e("multibase"),o=new TextEncoder;t.exports=function(e,t="utf8"){return"utf8"===t||"utf-8"===t?o.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"}],[4731,{multibase:4692},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{encoding:n}=e("multibase"),o=new TextDecoder("utf8");t.exports=function(e,t="utf8"){return"utf8"===t||"utf-8"===t?o.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"}],[4732,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function e(t,r){var i,s=0,a=0,c=r=r||0,l=t.length;do{if(c>=l)throw e.bytes=0,new RangeError("Could not decode varint");i=t[c++],s+=a<28?(i&o)<<a:(i&o)*Math.pow(2,a),a+=7}while(i>=n);return e.bytes=c-r,s};var n=128,o=127}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/decode.js"}],[4733,{},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>=i;)r[s++]=255&t|n,t/=128;for(;t&o;)r[s++]=255&t|n,t>>>=7;return r[s]=0|t,e.bytes=s-a+1,r};var n=128,o=-128,i=Math.pow(2,31)}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/encode.js"}],[4734,{"./decode.js":4732,"./encode.js":4733,"./length.js":4735},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"}],[4735,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=Math.pow(2,7),o=Math.pow(2,14),i=Math.pow(2,21),s=Math.pow(2,28),a=Math.pow(2,35),c=Math.pow(2,42),l=Math.pow(2,49),u=Math.pow(2,56),d=Math.pow(2,63);t.exports=function(e){return e<n?1:e<o?2:e<i?3:e<s?4:e<a?5:e<c?6:e<l?7:e<u?8:e<d?9:10}}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/length.js"}],[4736,{},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"}],[4737,{"./constants":4736,multibase:4692,"uint8arrays/concat":4729,"uint8arrays/from-string":4730,"uint8arrays/to-string":4731,varint:4734},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("multibase"),o=e("varint"),{names:i}=e("./constants"),s=e("uint8arrays/to-string"),a=e("uint8arrays/from-string"),c=e("uint8arrays/concat"),l={};for(const e in i){const t=e;l[i[t]]=t}function u(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=o.decode(e);if(!h(t))throw new Error(`multihash unknown function code: 0x${t.toString(16)}`);e=e.slice(o.decode.bytes);const r=o.decode(e);if(r<0)throw new Error(`multihash invalid length: ${r}`);if((e=e.slice(o.decode.bytes)).length!==r)throw new Error(`multihash length inconsistent: 0x${s(e,"base16")}`);return{code:t,name:l[t],length:r,digest:e}}function d(e){let t=e;if("string"==typeof e){if(i[e]===undefined)throw new Error(`Unrecognized hash function named: ${e}`);t=i[e]}if("number"!=typeof t)throw new Error(`Hash function code should be a number. Got: ${t}`);if(l[t]===undefined&&!f(t))throw new Error(`Unrecognized function code: ${t}`);return t}function f(e){return e>0&&e<16}function h(e){return!!f(e)||!!l[e]}function p(e){u(e)}Object.freeze(l),t.exports={names:i,codes:l,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:u,encode:function(e,t,r){if(!e||t===undefined)throw new Error("multihash encode requires at least two args: digest, code");const n=d(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 i=o.encode(n),s=o.encode(r);return c([i,s,e],i.length+s.length+e.length)},coerceCode:d,isAppCode:f,validate:p,prefix:function(e){return p(e),e.subarray(0,2)},isValidCode:h}}}},{package:"@ensdomains/content-hash>cids>multihashes",file:"node_modules/multihashes/src/index.js"}],[474,{"@metamask/utils":2831,lodash:4554},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=i,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"),o=e("lodash");const i=r.version=130}}},{package:"$root$",file:"app/scripts/migrations/130.ts"}],[475,{"../../../shared/constants/network":5454,"@metamask/network-controller":2210,"@metamask/utils":2831,lodash:4554},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){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===o.RpcEndpointType.Infura||s.allowedInfuraHosts.includes(e)}catch{return!1}}))return e;const r=t[c];if((0,n.isObject)(r)){const{rpcEndpoints:o}=r;if(Array.isArray(o)){const i=o.findIndex(e=>(0,n.isObject)(e)&&"https://mainnet.base.org"===e.url);if(-1!==i)return o[i]={...o[i],url:`https://base-mainnet.infura.io/v3/${s.infuraProjectId}`},t[c]={...r,rpcEndpoints:o},{...e,NetworkController:{...e.NetworkController,networkConfigurationsByChainId:t}}}}}return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),o=e("@metamask/network-controller"),i=e("lodash"),s=e("../../../shared/constants/network");const a=r.version=131.1,c="0x2105"}}},{package:"$root$",file:"app/scripts/migrations/131.1.ts"}],[476,{"@metamask/utils":2831,lodash:4554,loglevel:4562},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){if(!(0,o.hasProperty)(e,"AccountsController"))return;const t=e.AccountsController;var r,n,c,l,u,d,f;if(!(0,i.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,o.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,i.isObject)(t.internalAccounts))return void(null===(c=global.sentry)||void 0===c||c.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state of type '${typeof t.internalAccounts}'`)));if(!(0,o.hasProperty)(t.internalAccounts,"selectedAccount"))return void(null===(l=global.sentry)||void 0===l||l.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state, missing selectedAccount`)));if("string"!=typeof t.internalAccounts.selectedAccount)return void(null===(u=global.sentry)||void 0===u||u.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.selectedAccount state of type '${typeof t.internalAccounts.selectedAccount}'`)));if(!(0,o.hasProperty)(t.internalAccounts,"accounts"))return void(null===(d=global.sentry)||void 0===d||d.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state, missing accounts`)));if(!(0,i.isObject)(t.internalAccounts.accounts))return void(null===(f=global.sentry)||void 0===f||f.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 h=Object.values(t.internalAccounts.accounts)[0];var p,m,g;if(!(0,i.isObject)(h))return void(null===(p=global.sentry)||void 0===p||p.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found of type '${typeof h}'`)));if(!(0,o.hasProperty)(h,"id"))return void(null===(m=global.sentry)||void 0===m||m.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found that is missing an id`)));if("string"!=typeof h.id)return void(null===(g=global.sentry)||void 0===g||g.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found with an id of type '${typeof h.id}'`)));(0,o.hasProperty)(t.internalAccounts.accounts,t.internalAccounts.selectedAccount)||(t.internalAccounts.selectedAccount=h.id)}(t.data),t},r.version=void 0;var n,o=e("@metamask/utils"),i=e("lodash"),s=(n=e("loglevel"))&&n.__esModule?n:{default:n};const a=r.version=131}}},{package:"$root$",file:"app/scripts/migrations/131.ts"}],[477,{"@metamask/utils":2831,lodash:4554},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=i,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"),o=e("lodash");const i=r.version=132}}},{package:"$root$",file:"app/scripts/migrations/132.ts"}]],[],{});