LavaPack.loadBundle([[7728,{"@remix-run/router":5418,react:7749},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
/**
 * React Router v6.30.4
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
!function(n,i){"object"==typeof r&&void 0!==t?i(r,e("react"),e("@remix-run/router")):"function"==typeof define&&define.amd?define(["exports","react","@remix-run/router"],i):i((n="undefined"!=typeof globalThis?globalThis:n||self).ReactRouter={},n.React,n.RemixRouter)}(this,function(e,t,r){function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var i=n(t);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(null,arguments)}const s=i.createContext(null);s.displayName="DataRouter";const a=i.createContext(null);a.displayName="DataRouterState";const u=i.createContext(null);u.displayName="Await";const l=i.createContext(null);l.displayName="Navigation";const c=i.createContext(null);c.displayName="Location";const f=i.createContext({outlet:null,matches:[],isDataRoute:!1});f.displayName="Route";const d=i.createContext(null);function h(){return null!=i.useContext(c)}function p(){return h()||r.UNSAFE_invariant(!1,"useLocation() may be used only in the context of a <Router> component."),i.useContext(c).location}d.displayName="RouteError";const m="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function b(e){i.useContext(l).static||i.useLayoutEffect(e)}function g(){let{isDataRoute:e}=i.useContext(f);return e?function(){let{router:e}=P(R.UseNavigateStable),t=L(j.UseNavigateStable),n=i.useRef(!1);return b(()=>{n.current=!0}),i.useCallback(function(i,s){void 0===s&&(s={}),r.UNSAFE_warning(n.current,m),n.current&&("number"==typeof i?e.navigate(i):e.navigate(i,o({fromRouteId:t},s)))},[e,t])}():function(){h()||r.UNSAFE_invariant(!1,"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(s),{basename:t,future:n,navigator:o}=i.useContext(l),{matches:a}=i.useContext(f),{pathname:u}=p(),c=JSON.stringify(r.UNSAFE_getResolveToMatches(a,n.v7_relativeSplatPath)),d=i.useRef(!1);return b(()=>{d.current=!0}),i.useCallback(function(n,i){if(void 0===i&&(i={}),r.UNSAFE_warning(d.current,m),!d.current)return;if("number"==typeof n)return void o.go(n);let s=r.resolveTo(n,JSON.parse(c),u,"path"===i.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:r.joinPaths([t,s.pathname])),(i.replace?o.replace:o.push)(s,i.state,i)},[t,o,c,u,e])}()}const y=i.createContext(null);function w(e){let t=i.useContext(f).outlet;return t?i.createElement(y.Provider,{value:e},t):t}function _(e,t){let{relative:n}=void 0===t?{}:t,{future:o}=i.useContext(l),{matches:s}=i.useContext(f),{pathname:a}=p(),u=JSON.stringify(r.UNSAFE_getResolveToMatches(s,o.v7_relativeSplatPath));return i.useMemo(()=>r.resolveTo(e,JSON.parse(u),a,"path"===n),[e,u,a,n])}function v(e,t){return E(e,t)}function E(e,t,n,s){h()||r.UNSAFE_invariant(!1,"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=i.useContext(l),{matches:u}=i.useContext(f),d=u[u.length-1],m=d?d.params:{},b=d?d.pathname:"/",g=d?d.pathnameBase:"/",y=d&&d.route;{let e=y&&y.path||"";D(b,!y||e.endsWith("*"),'You rendered descendant <Routes> (or called `useRoutes()`) at "'+b+'" (under <Route path="'+e+'">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won\'t match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="'+e+'"> to <Route path="'+("/"===e?"*":e+"/*")+'">.')}let w,_=p();if(t){var v;let e="string"==typeof t?r.parsePath(t):t;"/"===g||(null==(v=e.pathname)?void 0:v.startsWith(g))||r.UNSAFE_invariant(!1,'When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "'+g+'" but pathname "'+e.pathname+'" was given in the `location` prop.'),w=e}else w=_;let E=w.pathname||"/",T=E;if("/"!==g){let e=g.replace(/^\//,"").split("/");T="/"+E.replace(/^\//,"").split("/").slice(e.length).join("/")}let S=r.matchRoutes(e,{pathname:T});r.UNSAFE_warning(y||null!=S,'No routes matched location "'+w.pathname+w.search+w.hash+'" '),r.UNSAFE_warning(null==S||S[S.length-1].route.element!==undefined||S[S.length-1].route.Component!==undefined||S[S.length-1].route.lazy!==undefined,'Matched leaf route at location "'+w.pathname+w.search+w.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.');let A=x(S&&S.map(e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:r.joinPaths([g,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:r.joinPaths([g,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),u,n,s);return t&&A?i.createElement(c.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},w),navigationType:r.Action.Pop}},A):A}function T(){let e=C(),t=r.isRouteErrorResponse(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:o},a={padding:"2px 4px",backgroundColor:o},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:a},"ErrorBoundary")," or"," ",i.createElement("code",{style:a},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:s},n):null,u)}const S=i.createElement(T,null);class A extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==undefined?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==undefined?i.createElement(f.Provider,{value:this.props.routeContext},i.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function I(e){let{routeContext:t,match:r,children:n}=e,o=i.useContext(s);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(f.Provider,{value:t},n)}function x(e,t,n,o){var s;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===o&&(o=null),null==e){var a;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(a=o)&&a.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let u=e,l=null==(s=n)?void 0:s.errors;if(null!=l){let e=u.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id])!==undefined);e>=0||r.UNSAFE_invariant(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(l).join(",")),u=u.slice(0,Math.min(u.length,e+1))}let c=!1,f=-1;if(n&&o&&o.v7_partialHydration)for(let e=0;e<u.length;e++){let t=u[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(f=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&e[t.route.id]===undefined&&(!r||r[t.route.id]===undefined);if(t.route.lazy||i){c=!0,u=f>=0?u.slice(0,f+1):[u[0]];break}}}return u.reduceRight((e,r,o)=>{let s,a=!1,d=null,h=null;n&&(s=l&&r.route.id?l[r.route.id]:undefined,d=r.route.errorElement||S,c&&(f<0&&0===o?(D("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),a=!0,h=null):f===o&&(a=!0,h=r.route.hydrateFallbackElement||null)));let p=t.concat(u.slice(0,o+1)),m=()=>{let t;return t=s?d:a?h:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(I,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?i.createElement(A,{location:n.location,revalidation:n.revalidation,component:d,error:s,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var R=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(R||{}),j=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(j||{});function k(e){return e+" must be used within a data router.  See https://reactrouter.com/v6/routers/picking-a-router."}function P(e){let t=i.useContext(s);return t||r.UNSAFE_invariant(!1,k(e)),t}function O(e){let t=i.useContext(a);return t||r.UNSAFE_invariant(!1,k(e)),t}function L(e){let t=function(e){let t=i.useContext(f);return t||r.UNSAFE_invariant(!1,k(e)),t}(e),n=t.matches[t.matches.length-1];return n.route.id||r.UNSAFE_invariant(!1,e+' can only be used on routes that contain a unique "id"'),n.route.id}function C(){var e;let t=i.useContext(d),r=O(j.UseRouteError),n=L(j.UseRouteError);return t!==undefined?t:null==(e=r.errors)?void 0:e[n]}function M(){let e=i.useContext(u);return null==e?void 0:e._data}let N=0;const B={};function D(e,t,n){t||B[e]||(B[e]=!0,r.UNSAFE_warning(!1,n))}const U={};const F=(e,t,r)=>{var n;U[n="⚠️ React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+r+"."]||(U[n]=!0,console.warn(n))};function $(e,t){(null==e?void 0:e.v7_startTransition)===undefined&&F("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(null==e?void 0:e.v7_relativeSplatPath)!==undefined||t&&t.v7_relativeSplatPath!==undefined||F("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist===undefined&&F("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod===undefined&&F("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration===undefined&&F("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation===undefined&&F("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}const H=i.startTransition;function G(e){let{routes:t,future:r,state:n}=e;return E(t,undefined,n,r)}function V(e){r.UNSAFE_invariant(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function z(e){let{basename:t="/",children:n=null,location:s,navigationType:a=r.Action.Pop,navigator:u,static:f=!1,future:d}=e;h()&&r.UNSAFE_invariant(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=t.replace(/^\/*/,"/"),m=i.useMemo(()=>({basename:p,navigator:u,static:f,future:o({v7_relativeSplatPath:!1},d)}),[p,d,u,f]);"string"==typeof s&&(s=r.parsePath(s));let{pathname:b="/",search:g="",hash:y="",state:w=null,key:_="default"}=s,v=i.useMemo(()=>{let e=r.stripBasename(b,p);return null==e?null:{location:{pathname:e,search:g,hash:y,state:w,key:_},navigationType:a}},[p,b,g,y,w,_,a]);return r.UNSAFE_warning(null!=v,'<Router basename="'+p+'"> is not able to match the URL "'+b+g+y+"\" because it does not start with the basename, so the <Router> won't render anything."),null==v?null:i.createElement(l.Provider,{value:m},i.createElement(c.Provider,{children:n,value:v}))}var W=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(W||{});const q=new Promise(()=>{});class K extends i.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,o=null,s=W.pending;if(n instanceof Promise)if(this.state.error){s=W.error;let e=this.state.error;o=Promise.reject().catch(()=>{}),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_error",{get:()=>e})}else n._tracked?(o=n,s="_error"in o?W.error:"_data"in o?W.success:W.pending):(s=W.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),o=n.then(e=>Object.defineProperty(n,"_data",{get:()=>e}),e=>Object.defineProperty(n,"_error",{get:()=>e})));else s=W.success,o=Promise.resolve(),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_data",{get:()=>n});if(s===W.error&&o._error instanceof r.AbortedDeferredError)throw q;if(s===W.error&&!t)throw o._error;if(s===W.error)return i.createElement(u.Provider,{value:o,children:t});if(s===W.success)return i.createElement(u.Provider,{value:o,children:e});throw o}}function Y(e){let{children:t}=e,r=M(),n="function"==typeof t?t(r):t;return i.createElement(i.Fragment,null,n)}function X(e,t){void 0===t&&(t=[]);let n=[];return i.Children.forEach(e,(e,o)=>{if(!i.isValidElement(e))return;let s=[...t,o];if(e.type===i.Fragment)return void n.push.apply(n,X(e.props.children,s));e.type!==V&&r.UNSAFE_invariant(!1,"["+("string"==typeof e.type?e.type:e.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"),e.props.index&&e.props.children&&r.UNSAFE_invariant(!1,"An index route cannot have child routes.");let a={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=X(e.props.children,s)),n.push(a)}),n}function J(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&r.UNSAFE_warning(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:i.createElement(e.Component),Component:undefined})),e.HydrateFallback&&(e.hydrateFallbackElement&&r.UNSAFE_warning(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:i.createElement(e.HydrateFallback),HydrateFallback:undefined})),e.ErrorBoundary&&(e.errorElement&&r.UNSAFE_warning(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:undefined})),t}Object.defineProperty(e,"AbortedDeferredError",{enumerable:!0,get:function(){return r.AbortedDeferredError}}),Object.defineProperty(e,"NavigationType",{enumerable:!0,get:function(){return r.Action}}),Object.defineProperty(e,"createPath",{enumerable:!0,get:function(){return r.createPath}}),Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return r.defer}}),Object.defineProperty(e,"generatePath",{enumerable:!0,get:function(){return r.generatePath}}),Object.defineProperty(e,"isRouteErrorResponse",{enumerable:!0,get:function(){return r.isRouteErrorResponse}}),Object.defineProperty(e,"json",{enumerable:!0,get:function(){return r.json}}),Object.defineProperty(e,"matchPath",{enumerable:!0,get:function(){return r.matchPath}}),Object.defineProperty(e,"matchRoutes",{enumerable:!0,get:function(){return r.matchRoutes}}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return r.parsePath}}),Object.defineProperty(e,"redirect",{enumerable:!0,get:function(){return r.redirect}}),Object.defineProperty(e,"redirectDocument",{enumerable:!0,get:function(){return r.redirectDocument}}),Object.defineProperty(e,"replace",{enumerable:!0,get:function(){return r.replace}}),Object.defineProperty(e,"resolvePath",{enumerable:!0,get:function(){return r.resolvePath}}),e.Await=function(e){let{children:t,errorElement:r,resolve:n}=e;return i.createElement(K,{resolve:n,errorElement:r},i.createElement(Y,null,t))},e.MemoryRouter=function(e){let{basename:t,children:n,initialEntries:o,initialIndex:s,future:a}=e,u=i.useRef();null==u.current&&(u.current=r.createMemoryHistory({initialEntries:o,initialIndex:s,v5Compat:!0}));let l=u.current,[c,f]=i.useState({action:l.action,location:l.location}),{v7_startTransition:d}=a||{},h=i.useCallback(e=>{d&&H?H(()=>f(e)):f(e)},[f,d]);return i.useLayoutEffect(()=>l.listen(h),[l,h]),i.useEffect(()=>$(a),[a]),i.createElement(z,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l,future:a})},e.Navigate=function(e){let{to:t,replace:n,state:o,relative:s}=e;h()||r.UNSAFE_invariant(!1,"<Navigate> may be used only in the context of a <Router> component.");let{future:a,static:u}=i.useContext(l);r.UNSAFE_warning(!u,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=i.useContext(f),{pathname:d}=p(),m=g(),b=r.resolveTo(t,r.UNSAFE_getResolveToMatches(c,a.v7_relativeSplatPath),d,"path"===s),y=JSON.stringify(b);return i.useEffect(()=>m(JSON.parse(y),{replace:n,state:o,relative:s}),[m,y,s,n,o]),null},e.Outlet=function(e){return w(e.context)},e.Route=V,e.Router=z,e.RouterProvider=function(e){let{fallbackElement:t,router:n,future:o}=e,[u,l]=i.useState(n.state),{v7_startTransition:c}=o||{},f=i.useCallback(e=>{c&&H?H(()=>l(e)):l(e)},[l,c]);i.useLayoutEffect(()=>n.subscribe(f),[n,f]),i.useEffect(()=>{r.UNSAFE_warning(null==t||!n.future.v7_partialHydration,"`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead")},[]);let d=i.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})}),[n]),h=n.basename||"/",p=i.useMemo(()=>({router:n,navigator:d,static:!1,basename:h}),[n,d,h]);return i.useEffect(()=>$(o,n.future),[n,o]),i.createElement(i.Fragment,null,i.createElement(s.Provider,{value:p},i.createElement(a.Provider,{value:u},i.createElement(z,{basename:h,location:u.location,navigationType:u.historyAction,navigator:d,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},u.initialized||n.future.v7_partialHydration?i.createElement(G,{routes:n.routes,future:n.future,state:u}):t))),null)},e.Routes=function(e){let{children:t,location:r}=e;return v(X(t),r)},e.UNSAFE_DataRouterContext=s,e.UNSAFE_DataRouterStateContext=a,e.UNSAFE_LocationContext=c,e.UNSAFE_NavigationContext=l,e.UNSAFE_RouteContext=f,e.UNSAFE_logV6DeprecationWarnings=$,e.UNSAFE_mapRouteProperties=J,e.UNSAFE_useRouteId=function(){return L(j.UseRouteId)},e.UNSAFE_useRoutesImpl=E,e.createMemoryRouter=function(e,t){return r.createRouter({basename:null==t?void 0:t.basename,future:o({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:r.createMemoryHistory({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:J,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()},e.createRoutesFromChildren=X,e.createRoutesFromElements=X,e.renderMatches=function(e){return x(e)},e.useActionData=function(){let e=O(j.UseActionData),t=L(j.UseLoaderData);return e.actionData?e.actionData[t]:undefined},e.useAsyncError=function(){let e=i.useContext(u);return null==e?void 0:e._error},e.useAsyncValue=M,e.useBlocker=function(e){let{router:t,basename:n}=P(R.UseBlocker),s=O(j.UseBlocker),[a,u]=i.useState(""),l=i.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:i,nextLocation:s,historyAction:a}=t;return e({currentLocation:o({},i,{pathname:r.stripBasename(i.pathname,n)||i.pathname}),nextLocation:o({},s,{pathname:r.stripBasename(s.pathname,n)||s.pathname}),historyAction:a})},[n,e]);return i.useEffect(()=>{let e=String(++N);return u(e),()=>t.deleteBlocker(e)},[t]),i.useEffect(()=>{""!==a&&t.getBlocker(a,l)},[t,a,l]),a&&s.blockers.has(a)?s.blockers.get(a):r.IDLE_BLOCKER},e.useHref=function(e,t){let{relative:n}=void 0===t?{}:t;h()||r.UNSAFE_invariant(!1,"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:s}=i.useContext(l),{hash:a,pathname:u,search:c}=_(e,{relative:n}),f=u;return"/"!==o&&(f="/"===u?o:r.joinPaths([o,u])),s.createHref({pathname:f,search:c,hash:a})},e.useInRouterContext=h,e.useLoaderData=function(){let e=O(j.UseLoaderData),t=L(j.UseLoaderData);return e.errors&&null!=e.errors[t]?(console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"),undefined):e.loaderData[t]},e.useLocation=p,e.useMatch=function(e){h()||r.UNSAFE_invariant(!1,"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=p();return i.useMemo(()=>r.matchPath(e,r.UNSAFE_decodePath(t)),[t,e])},e.useMatches=function(){let{matches:e,loaderData:t}=O(j.UseMatches);return i.useMemo(()=>e.map(e=>r.UNSAFE_convertRouteMatchToUiMatch(e,t)),[e,t])},e.useNavigate=g,e.useNavigation=function(){return O(j.UseNavigation).navigation},e.useNavigationType=function(){return i.useContext(c).navigationType},e.useOutlet=w,e.useOutletContext=function(){return i.useContext(y)},e.useParams=function(){let{matches:e}=i.useContext(f),t=e[e.length-1];return t?t.params:{}},e.useResolvedPath=_,e.useRevalidator=function(){let e=P(R.UseRevalidator),t=O(j.UseRevalidator);return i.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])},e.useRouteError=C,e.useRouteLoaderData=function(e){return O(j.UseRouteLoaderData).loaderData[e]},e.useRoutes=v,Object.defineProperty(e,"__esModule",{value:!0})})}}},{package:"react-router-dom>react-router",file:"node_modules/react-router/dist/umd/react-router.development.js"}],[7729,{"@remix-run/router":5418,react:7749},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i;n=this,i=function(e,t,r){var n=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(t);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(null,arguments)}const o=n.createContext(null),s=n.createContext(null),a=n.createContext(null),u=n.createContext(null),l=n.createContext(null),c=n.createContext({outlet:null,matches:[],isDataRoute:!1}),f=n.createContext(null);function d(){return null!=n.useContext(l)}function h(){return d()||r.UNSAFE_invariant(!1),n.useContext(l).location}function p(e){n.useContext(u).static||n.useLayoutEffect(e)}function m(){let{isDataRoute:e}=n.useContext(c);return e?function(){let{router:e}=x(A.UseNavigateStable),t=j(I.UseNavigateStable),r=n.useRef(!1);p(()=>{r.current=!0});let o=n.useCallback(function(n,o){void 0===o&&(o={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,i({fromRouteId:t},o)))},[e,t]);return o}():function(){d()||r.UNSAFE_invariant(!1);let e=n.useContext(o),{basename:t,future:i,navigator:s}=n.useContext(u),{matches:a}=n.useContext(c),{pathname:l}=h(),f=JSON.stringify(r.UNSAFE_getResolveToMatches(a,i.v7_relativeSplatPath)),m=n.useRef(!1);return p(()=>{m.current=!0}),n.useCallback(function(n,i){if(void 0===i&&(i={}),!m.current)return;if("number"==typeof n)return void s.go(n);let o=r.resolveTo(n,JSON.parse(f),l,"path"===i.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:r.joinPaths([t,o.pathname])),(i.replace?s.replace:s.push)(o,i.state,i)},[t,s,f,l,e])}()}const b=n.createContext(null);function g(e){let t=n.useContext(c).outlet;return t?n.createElement(b.Provider,{value:e},t):t}function y(e,t){let{relative:i}=void 0===t?{}:t,{future:o}=n.useContext(u),{matches:s}=n.useContext(c),{pathname:a}=h(),l=JSON.stringify(r.UNSAFE_getResolveToMatches(s,o.v7_relativeSplatPath));return n.useMemo(()=>r.resolveTo(e,JSON.parse(l),a,"path"===i),[e,l,a,i])}function w(e,t){return _(e,t)}function _(e,t,o,s){d()||r.UNSAFE_invariant(!1);let{navigator:a}=n.useContext(u),{matches:f}=n.useContext(c),p=f[f.length-1],m=p?p.params:{};!p||p.pathname;let b=p?p.pathnameBase:"/";p&&p.route;let g,y=h();if(t){var w;let e="string"==typeof t?r.parsePath(t):t;"/"===b||(null==(w=e.pathname)?void 0:w.startsWith(b))||r.UNSAFE_invariant(!1),g=e}else g=y;let _=g.pathname||"/",v=_;if("/"!==b){let e=b.replace(/^\//,"").split("/");v="/"+_.replace(/^\//,"").split("/").slice(e.length).join("/")}let E=r.matchRoutes(e,{pathname:v}),T=S(E&&E.map(e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:r.joinPaths([b,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?b:r.joinPaths([b,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),f,o,s);return t&&T?n.createElement(l.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:r.Action.Pop}},T):T}const v=n.createElement(function(){let e=k(),t=r.isRouteErrorResponse(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null;return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),i?n.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},i):null,null)},null);class E extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement(c.Provider,{value:this.props.routeContext},n.createElement(f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function T(e){let{routeContext:t,match:r,children:i}=e,s=n.useContext(o);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),n.createElement(c.Provider,{value:t},i)}function S(e,t,i,o){var s;if(void 0===t&&(t=[]),void 0===i&&(i=null),void 0===o&&(o=null),null==e){var a;if(!i)return null;if(i.errors)e=i.matches;else{if(!(null!=(a=o)&&a.v7_partialHydration&&0===t.length&&!i.initialized&&i.matches.length>0))return null;e=i.matches}}let u=e,l=null==(s=i)?void 0:s.errors;if(null!=l){let e=u.findIndex(e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id]));e>=0||r.UNSAFE_invariant(!1),u=u.slice(0,Math.min(u.length,e+1))}let c=!1,f=-1;if(i&&o&&o.v7_partialHydration)for(let e=0;e<u.length;e++){let t=u[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(f=e),t.route.id){let{loaderData:e,errors:r}=i,n=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||n){c=!0,u=f>=0?u.slice(0,f+1):[u[0]];break}}}return u.reduceRight((e,r,o)=>{let s,a=!1,d=null,h=null;var p;i&&(s=l&&r.route.id?l[r.route.id]:void 0,d=r.route.errorElement||v,c&&(f<0&&0===o?(L[p="route-fallback"]||(L[p]=!0),a=!0,h=null):f===o&&(a=!0,h=r.route.hydrateFallbackElement||null)));let m=t.concat(u.slice(0,o+1)),b=()=>{let t;return t=s?d:a?h:r.route.Component?n.createElement(r.route.Component,null):r.route.element?r.route.element:e,n.createElement(T,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=i},children:t})};return i&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?n.createElement(E,{location:i.location,revalidation:i.revalidation,component:d,error:s,children:b(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):b()},null)}var A=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(A||{}),I=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(I||{});function x(e){let t=n.useContext(o);return t||r.UNSAFE_invariant(!1),t}function R(e){let t=n.useContext(s);return t||r.UNSAFE_invariant(!1),t}function j(e){let t=function(){let e=n.useContext(c);return e||r.UNSAFE_invariant(!1),e}(),i=t.matches[t.matches.length-1];return i.route.id||r.UNSAFE_invariant(!1),i.route.id}function k(){var e;let t=n.useContext(f),r=R(I.UseRouteError),i=j(I.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[i]}function P(){let e=n.useContext(a);return null==e?void 0:e._data}let O=0;const L={};function C(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}const M=n.startTransition;function N(e){let{routes:t,future:r,state:n}=e;return _(t,void 0,n,r)}function B(e){r.UNSAFE_invariant(!1)}function D(e){let{basename:t="/",children:o=null,location:s,navigationType:a=r.Action.Pop,navigator:c,static:f=!1,future:h}=e;d()&&r.UNSAFE_invariant(!1);let p=t.replace(/^\/*/,"/"),m=n.useMemo(()=>({basename:p,navigator:c,static:f,future:i({v7_relativeSplatPath:!1},h)}),[p,h,c,f]);"string"==typeof s&&(s=r.parsePath(s));let{pathname:b="/",search:g="",hash:y="",state:w=null,key:_="default"}=s,v=n.useMemo(()=>{let e=r.stripBasename(b,p);return null==e?null:{location:{pathname:e,search:g,hash:y,state:w,key:_},navigationType:a}},[p,b,g,y,w,_,a]);return null==v?null:n.createElement(u.Provider,{value:m},n.createElement(l.Provider,{children:o,value:v}))}var U=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(U||{});const F=new Promise(()=>{});class $ extends n.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:i}=this.props,o=null,s=U.pending;if(i instanceof Promise)if(this.state.error){s=U.error;let e=this.state.error;o=Promise.reject().catch(()=>{}),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_error",{get:()=>e})}else i._tracked?(o=i,s="_error"in o?U.error:"_data"in o?U.success:U.pending):(s=U.pending,Object.defineProperty(i,"_tracked",{get:()=>!0}),o=i.then(e=>Object.defineProperty(i,"_data",{get:()=>e}),e=>Object.defineProperty(i,"_error",{get:()=>e})));else s=U.success,o=Promise.resolve(),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_data",{get:()=>i});if(s===U.error&&o._error instanceof r.AbortedDeferredError)throw F;if(s===U.error&&!t)throw o._error;if(s===U.error)return n.createElement(a.Provider,{value:o,children:t});if(s===U.success)return n.createElement(a.Provider,{value:o,children:e});throw o}}function H(e){let{children:t}=e,r=P(),i="function"==typeof t?t(r):t;return n.createElement(n.Fragment,null,i)}function G(e,t){void 0===t&&(t=[]);let i=[];return n.Children.forEach(e,(e,o)=>{if(!n.isValidElement(e))return;let s=[...t,o];if(e.type===n.Fragment)return void i.push.apply(i,G(e.props.children,s));e.type!==B&&r.UNSAFE_invariant(!1),e.props.index&&e.props.children&&r.UNSAFE_invariant(!1);let a={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=G(e.props.children,s)),i.push(a)}),i}function V(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:n.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:n.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:n.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}Object.defineProperty(e,"AbortedDeferredError",{enumerable:!0,get:function(){return r.AbortedDeferredError}}),Object.defineProperty(e,"NavigationType",{enumerable:!0,get:function(){return r.Action}}),Object.defineProperty(e,"createPath",{enumerable:!0,get:function(){return r.createPath}}),Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return r.defer}}),Object.defineProperty(e,"generatePath",{enumerable:!0,get:function(){return r.generatePath}}),Object.defineProperty(e,"isRouteErrorResponse",{enumerable:!0,get:function(){return r.isRouteErrorResponse}}),Object.defineProperty(e,"json",{enumerable:!0,get:function(){return r.json}}),Object.defineProperty(e,"matchPath",{enumerable:!0,get:function(){return r.matchPath}}),Object.defineProperty(e,"matchRoutes",{enumerable:!0,get:function(){return r.matchRoutes}}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return r.parsePath}}),Object.defineProperty(e,"redirect",{enumerable:!0,get:function(){return r.redirect}}),Object.defineProperty(e,"redirectDocument",{enumerable:!0,get:function(){return r.redirectDocument}}),Object.defineProperty(e,"replace",{enumerable:!0,get:function(){return r.replace}}),Object.defineProperty(e,"resolvePath",{enumerable:!0,get:function(){return r.resolvePath}}),e.Await=function(e){let{children:t,errorElement:r,resolve:i}=e;return n.createElement($,{resolve:i,errorElement:r},n.createElement(H,null,t))},e.MemoryRouter=function(e){let{basename:t,children:i,initialEntries:o,initialIndex:s,future:a}=e,u=n.useRef();null==u.current&&(u.current=r.createMemoryHistory({initialEntries:o,initialIndex:s,v5Compat:!0}));let l=u.current,[c,f]=n.useState({action:l.action,location:l.location}),{v7_startTransition:d}=a||{},h=n.useCallback(e=>{d&&M?M(()=>f(e)):f(e)},[f,d]);return n.useLayoutEffect(()=>l.listen(h),[l,h]),n.useEffect(()=>C(a),[a]),n.createElement(D,{basename:t,children:i,location:c.location,navigationType:c.action,navigator:l,future:a})},e.Navigate=function(e){let{to:t,replace:i,state:o,relative:s}=e;d()||r.UNSAFE_invariant(!1);let{future:a,static:l}=n.useContext(u),{matches:f}=n.useContext(c),{pathname:p}=h(),b=m(),g=r.resolveTo(t,r.UNSAFE_getResolveToMatches(f,a.v7_relativeSplatPath),p,"path"===s),y=JSON.stringify(g);return n.useEffect(()=>b(JSON.parse(y),{replace:i,state:o,relative:s}),[b,y,s,i,o]),null},e.Outlet=function(e){return g(e.context)},e.Route=B,e.Router=D,e.RouterProvider=function(e){let{fallbackElement:t,router:r,future:i}=e,[a,u]=n.useState(r.state),{v7_startTransition:l}=i||{},c=n.useCallback(e=>{l&&M?M(()=>u(e)):u(e)},[u,l]);n.useLayoutEffect(()=>r.subscribe(c),[r,c]),n.useEffect(()=>{},[]);let f=n.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),d=r.basename||"/",h=n.useMemo(()=>({router:r,navigator:f,static:!1,basename:d}),[r,f,d]);return n.useEffect(()=>C(i,r.future),[r,i]),n.createElement(n.Fragment,null,n.createElement(o.Provider,{value:h},n.createElement(s.Provider,{value:a},n.createElement(D,{basename:d,location:a.location,navigationType:a.historyAction,navigator:f,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?n.createElement(N,{routes:r.routes,future:r.future,state:a}):t))),null)},e.Routes=function(e){let{children:t,location:r}=e;return w(G(t),r)},e.UNSAFE_DataRouterContext=o,e.UNSAFE_DataRouterStateContext=s,e.UNSAFE_LocationContext=l,e.UNSAFE_NavigationContext=u,e.UNSAFE_RouteContext=c,e.UNSAFE_logV6DeprecationWarnings=C,e.UNSAFE_mapRouteProperties=V,e.UNSAFE_useRouteId=function(){return j(I.UseRouteId)},e.UNSAFE_useRoutesImpl=_,e.createMemoryRouter=function(e,t){return r.createRouter({basename:null==t?void 0:t.basename,future:i({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:r.createMemoryHistory({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:V,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()},e.createRoutesFromChildren=G,e.createRoutesFromElements=G,e.renderMatches=function(e){return S(e)},e.useActionData=function(){let e=R(I.UseActionData),t=j(I.UseLoaderData);return e.actionData?e.actionData[t]:void 0},e.useAsyncError=function(){let e=n.useContext(a);return null==e?void 0:e._error},e.useAsyncValue=P,e.useBlocker=function(e){let{router:t,basename:o}=x(A.UseBlocker),s=R(I.UseBlocker),[a,u]=n.useState(""),l=n.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===o)return e(t);let{currentLocation:n,nextLocation:s,historyAction:a}=t;return e({currentLocation:i({},n,{pathname:r.stripBasename(n.pathname,o)||n.pathname}),nextLocation:i({},s,{pathname:r.stripBasename(s.pathname,o)||s.pathname}),historyAction:a})},[o,e]);return n.useEffect(()=>{let e=String(++O);return u(e),()=>t.deleteBlocker(e)},[t]),n.useEffect(()=>{""!==a&&t.getBlocker(a,l)},[t,a,l]),a&&s.blockers.has(a)?s.blockers.get(a):r.IDLE_BLOCKER},e.useHref=function(e,t){let{relative:i}=void 0===t?{}:t;d()||r.UNSAFE_invariant(!1);let{basename:o,navigator:s}=n.useContext(u),{hash:a,pathname:l,search:c}=y(e,{relative:i}),f=l;return"/"!==o&&(f="/"===l?o:r.joinPaths([o,l])),s.createHref({pathname:f,search:c,hash:a})},e.useInRouterContext=d,e.useLoaderData=function(){let e=R(I.UseLoaderData),t=j(I.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")},e.useLocation=h,e.useMatch=function(e){d()||r.UNSAFE_invariant(!1);let{pathname:t}=h();return n.useMemo(()=>r.matchPath(e,r.UNSAFE_decodePath(t)),[t,e])},e.useMatches=function(){let{matches:e,loaderData:t}=R(I.UseMatches);return n.useMemo(()=>e.map(e=>r.UNSAFE_convertRouteMatchToUiMatch(e,t)),[e,t])},e.useNavigate=m,e.useNavigation=function(){return R(I.UseNavigation).navigation},e.useNavigationType=function(){return n.useContext(l).navigationType},e.useOutlet=g,e.useOutletContext=function(){return n.useContext(b)},e.useParams=function(){let{matches:e}=n.useContext(c),t=e[e.length-1];return t?t.params:{}},e.useResolvedPath=y,e.useRevalidator=function(){let e=x(A.UseRevalidator),t=R(I.UseRevalidator);return n.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])},e.useRouteError=k,e.useRouteLoaderData=function(e){return R(I.UseRouteLoaderData).loaderData[e]},e.useRoutes=w,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof r&&void 0!==t?i(r,e("react"),e("@remix-run/router")):"function"==typeof define&&define.amd?define(["exports","react","@remix-run/router"],i):i((n="undefined"!=typeof globalThis?globalThis:n||self).ReactRouter={},n.React,n.RemixRouter)}}},{package:"react-router-dom>react-router",file:"node_modules/react-router/dist/umd/react-router.production.min.js"}],[773,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@ethereumjs/tx>@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist/cjs/types.js"}],[774,{"./enums.js":769,"@ethereumjs/util":809},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"),i=e("./enums.js");function o(e,t=!0){const{name:r,config:o,difficulty:s,mixHash:a,gasLimit:u,coinbase:l,baseFeePerGas:c,excessBlobGas:f,extraData:d,nonce:h,timestamp:p}=e,m=Number(p),{chainId:b,depositContractAddress:g}=o,y=""===d?"0x":d,w=(0,n.isHexString)(p)?p:(0,n.intToHex)(parseInt(p)),_=18!==h.length?function(e){return e&&"0x0"!==e?(0,n.isHexString)(e)?`0x${(0,n.stripHexPrefix)(e).padStart(16,"0")}`:`0x${e.padStart(16,"0")}`:"0x0000000000000000"}(h):h;if(o.eip155Block!==o.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 v={name:r,chainId:b,networkId:b,depositContractAddress:g,genesis:{timestamp:w,gasLimit:u,difficulty:s,nonce:_,extraData:y,mixHash:a,coinbase:l,baseFeePerGas:c,excessBlobGas:f},hardfork:undefined,hardforks:[],bootstrapNodes:[],consensus:o.clique!==undefined?{type:"poa",algorithm:"clique",clique:{period:o.clique.period??o.clique.blockperiodseconds,epoch:o.clique.epoch??o.clique.epochlength}}:{type:"pow",algorithm:"ethash",ethash:{}}},E={[i.Hardfork.Homestead]:{name:"homesteadBlock"},[i.Hardfork.Dao]:{name:"daoForkBlock"},[i.Hardfork.TangerineWhistle]:{name:"eip150Block"},[i.Hardfork.SpuriousDragon]:{name:"eip155Block"},[i.Hardfork.Byzantium]:{name:"byzantiumBlock"},[i.Hardfork.Constantinople]:{name:"constantinopleBlock"},[i.Hardfork.Petersburg]:{name:"petersburgBlock"},[i.Hardfork.Istanbul]:{name:"istanbulBlock"},[i.Hardfork.MuirGlacier]:{name:"muirGlacierBlock"},[i.Hardfork.Berlin]:{name:"berlinBlock"},[i.Hardfork.London]:{name:"londonBlock"},[i.Hardfork.MergeForkIdTransition]:{name:"mergeForkBlock",postMerge:t},[i.Hardfork.Shanghai]:{name:"shanghaiTime",postMerge:!0,isTimestamp:!0},[i.Hardfork.Cancun]:{name:"cancunTime",postMerge:!0,isTimestamp:!0},[i.Hardfork.Prague]:{name:"pragueTime",postMerge:!0,isTimestamp:!0},[i.Hardfork.Osaka]:{name:"osakaTime",postMerge:!0,isTimestamp:!0}},T=Object.keys(E).reduce((e,t)=>(e[E[t].name]=t,e),{}),S=Object.keys(o).filter(e=>T[e]!==undefined&&o[e]!==undefined&&null!==o[e]);v.hardforks=S.map(e=>({name:T[e],block:!0===E[T[e]].isTimestamp||"number"!=typeof o[e]?null:o[e],timestamp:!0===E[T[e]].isTimestamp&&"number"==typeof o[e]?o[e]:undefined})).filter(e=>null!==e.block||e.timestamp!==undefined),v.hardforks.sort(function(e,t){return(e.block??Infinity)-(t.block??Infinity)}),v.hardforks.sort(function(e,t){return(e.timestamp??0)-(t.timestamp??0)});for(const e of v.hardforks)e.timestamp===m&&(e.timestamp=0);if(o.terminalTotalDifficulty!==undefined){const e={name:i.Hardfork.Paris,ttd:o.terminalTotalDifficulty,block:null},t=v.hardforks.findIndex(e=>!0===E[e.name]?.postMerge);-1!==t?v.hardforks.splice(t,0,e):v.hardforks.push(e)}const A=v.hardforks.length>0?v.hardforks.slice(-1)[0]:undefined;return v.hardfork=A?.name,v.hardforks.unshift({name:i.Hardfork.Chainstart,block:0}),v}r.parseGethGenesis=function(e,t,r){try{const n=["config","difficulty","gasLimit","nonce","alloc"];if(n.some(t=>!(t in e))){const t=n.filter(t=>!(t in e));throw new Error(`Invalid format, expected geth genesis field "${t}" missing`)}const i={...e};return t!==undefined&&(i.name=t),o(i,r)}catch(e){throw new Error(`Error parsing parameters file: ${e.message}`)}}}}},{package:"@ethereumjs/tx>@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist/cjs/utils.js"}],[7747,{"object-assign":7491},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){0}}},{package:"react",file:"node_modules/react/cjs/react.development.js"}],[7748,{"object-assign":7491},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("object-assign"),i=60103,o=60106;r.Fragment=60107,r.StrictMode=60108,r.Profiler=60114;var s=60109,a=60110,u=60112;r.Suspense=60113;var l=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),r.Fragment=f("react.fragment"),r.StrictMode=f("react.strict_mode"),r.Profiler=f("react.profiler"),s=f("react.provider"),a=f("react.context"),u=f("react.forward_ref"),r.Suspense=f("react.suspense"),l=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function b(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||p}function g(){}function y(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||p}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=b.prototype;var w=y.prototype=new g;w.constructor=y,n(w,b.prototype),w.isPureReactComponent=!0;var _={current:null},v=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,r){var n,o={},s=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)v.call(t,n)&&!E.hasOwnProperty(n)&&(o[n]=t[n]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(n in u=e.defaultProps)void 0===o[n]&&(o[n]=u[n]);return{$$typeof:i,type:e,key:s,ref:a,props:o,_owner:_.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var A=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function x(e,t,r,n,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var u=!1;if(null===e)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case o:u=!0}}if(u)return s=s(u=e),e=""===n?"."+I(u,0):n,Array.isArray(s)?(r="",null!=e&&(r=e.replace(A,"$&/")+"/"),x(s,t,r,"",function(e){return e})):null!=s&&(S(s)&&(s=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,r+(!s.key||u&&u.key===s.key?"":(""+s.key).replace(A,"$&/")+"/")+e)),t.push(s)),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=n+I(a=e[l],l);u+=x(a,t,r,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),l=0;!(a=e.next()).done;)u+=x(a=a.value,t,r,c=n+I(a,l++),s);else if("object"===a)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function R(e,t,r){if(null==e)return e;var n=[],i=0;return x(e,n,"","",function(e){return t.call(r,e,i++)}),n}function j(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}if(1===e._status)return e._result;throw e._result}var k={current:null};function P(){var e=k.current;if(null===e)throw Error(h(321));return e}var O={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:n};r.Children={map:R,forEach:function(e,t,r){R(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(e,function(e){return e})||[]},only:function(e){if(!S(e))throw Error(h(143));return e}},r.Component=b,r.PureComponent=y,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,r.cloneElement=function(e,t,r){if(null==e)throw Error(h(267,e));var o=n({},e.props),s=e.key,a=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,u=_.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)v.call(t,c)&&!E.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];o.children=l}return{$$typeof:i,type:e.type,key:s,ref:a,props:o,_owner:u}},r.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},r.createElement=T,r.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:u,render:e}},r.isValidElement=S,r.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:j}},r.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},r.useCallback=function(e,t){return P().useCallback(e,t)},r.useContext=function(e,t){return P().useContext(e,t)},r.useDebugValue=function(){},r.useEffect=function(e,t){return P().useEffect(e,t)},r.useImperativeHandle=function(e,t,r){return P().useImperativeHandle(e,t,r)},r.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},r.useMemo=function(e,t){return P().useMemo(e,t)},r.useReducer=function(e,t,r){return P().useReducer(e,t,r)},r.useRef=function(e){return P().useRef(e)},r.useState=function(e){return P().useState(e)},r.version="17.0.2"}}},{package:"react",file:"node_modules/react/cjs/react.production.min.js"}],[7749,{"./cjs/react.development.js":7747,"./cjs/react.production.min.js":7748},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("./cjs/react.production.min.js")}}},{package:"react",file:"node_modules/react/index.js"}],[775,{},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 i=0;i<e.length;i++){const o=n(e[i]);t.push(o),r+=o.length}return h(s(r,192),...t)}const t=g(e);return 1===t.length&&t[0]<128?t:h(s(t.length,128),t)}function i(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 o(e){if(0===e[0])throw new Error("invalid RLP: extra zeros");return f(c(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(d(n+r))}function a(e,t=!1){if(null==e||0===e.length)return Uint8Array.from([]);const r=u(g(e));if(t)return{data:r.data,remainder:r.remainder.slice()};if(0!==r.remainder.length)throw new Error("invalid RLP: remainder must be zero");return r.data}function u(e){let t,r,n,s,a;const l=[],c=e[0];if(c<=127)return{data:e.slice(0,1),remainder:e.subarray(1)};if(c<=183){if(t=c-127,n=128===c?Uint8Array.from([]):i(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.subarray(t)}}if(c<=191){if(r=c-182,e.length-1<r)throw new Error("invalid RLP: not enough bytes for string length");if(t=o(i(e,1,r)),t<=55)throw new Error("invalid RLP: expected string length to be greater than 55");return n=i(e,r,t+r),{data:n,remainder:e.subarray(t+r)}}if(c<=247){for(t=c-191,s=i(e,1,t);s.length;)a=u(s),l.push(a.data),s=a.remainder;return{data:l,remainder:e.subarray(t)}}{if(r=c-246,t=o(i(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=i(e,r,n);s.length;)a=u(s),l.push(a.data),s=a.remainder;return{data:l,remainder:e.subarray(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 c(e){let t="";for(let r=0;r<e.length;r++)t+=l[e[r]];return t}function f(e){const t=Number.parseInt(e,16);if(Number.isNaN(t))throw new Error("Invalid byte sequence");return t}function d(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]=f(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 i=e[t];r.set(i,n),n+=i.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 b(e){return e.length>=2&&"0"===e[0]&&"x"===e[1]}function g(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return b(e)?d((t="string"!=typeof(r=e)?r:b(r)?r.slice(2):r).length%2?`0${t}`:t):p(e);var t,r;if("number"==typeof e||"bigint"==typeof e)return e?d(m(e)):Uint8Array.from([]);if(null===e||e===undefined)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof e)}r.utils={bytesToHex:c,concatBytes:h,hexToBytes:d,utf8ToBytes:p},r.RLP={encode:n,decode:a}}}},{package:"@ethereumjs/tx>@ethereumjs/rlp",file:"node_modules/@ethereumjs/rlp/dist/cjs/index.js"}],[7751,{"../../ours/errors":7770,"../../ours/primordials":7771,"../../ours/util":7772,"./end-of-stream":7757,"./utils":7766},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{SymbolDispose:n}=e("../../ours/primordials"),{AbortError:i,codes:o}=e("../../ours/errors"),{isNodeStream:s,isWebStream:a,kControllerErrorFunction:u}=e("./utils"),l=e("./end-of-stream"),{ERR_INVALID_ARG_TYPE:c}=o;let f;t.exports.addAbortSignal=function(e,r){if(((e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new c(t,"AbortSignal",e)})(e,"signal"),!s(r)&&!a(r))throw new c("stream",["ReadableStream","WritableStream","Stream"],r);return t.exports.addAbortSignalNoValidate(e,r)},t.exports.addAbortSignalNoValidate=function(t,r){if("object"!=typeof t||!("aborted"in t))return r;const o=s(r)?()=>{r.destroy(new i(undefined,{cause:t.reason}))}:()=>{r[u](new i(undefined,{cause:t.reason}))};if(t.aborted)o();else{f=f||e("../../ours/util").addAbortListener;const i=f(t,o);l(r,i[n])}return r}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"}],[7752,{"../../ours/primordials":7771,"../../ours/util":7772,buffer:6371},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:o,Uint8Array:s}=e("../../ours/primordials"),{Buffer:a}=e("buffer"),{inspect:u}=e("../../ours/util");t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,r=""+t.data;for(;null!==(t=t.next);)r+=e+t.data;return r}concat(e){if(0===this.length)return a.alloc(0);const t=a.allocUnsafe(e>>>0);let r=this.head,n=0;for(;r;)o(t,r.data,n),n+=r.data.length,r=r.next;return t}consume(e,t){const r=this.head.data;if(e<r.length){const t=r.slice(0,e);return this.head.data=r.slice(e),t}return e===r.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[i](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",r=this.head,i=0;do{const o=r.data;if(!(e>o.length)){e===o.length?(t+=o,++i,r.next?this.head=r.next:this.head=this.tail=null):(t+=n(o,0,e),this.head=r,r.data=n(o,e));break}t+=o,e-=o.length,++i}while(null!==(r=r.next));return this.length-=i,t}_getBuffer(e){const t=a.allocUnsafe(e),r=e;let n=this.head,i=0;do{const a=n.data;if(!(e>a.length)){e===a.length?(o(t,a,r-e),++i,n.next?this.head=n.next:this.head=this.tail=null):(o(t,new s(a.buffer,a.byteOffset,e),r-e),this.head=n,n.data=a.slice(e));break}o(t,a,r-e),e-=a.length,++i}while(null!==(n=n.next));return this.length-=i,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return u(this,{...t,depth:0,customInspect:!1})}}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/buffer_list.js"}],[7753,{"../../ours/errors":7770,"./destroy":7754,"./duplex":7755,"./end-of-stream":7757,"./pipeline":7762,"./utils":7766},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{pipeline:n}=e("./pipeline"),i=e("./duplex"),{destroyer:o}=e("./destroy"),{isNodeStream:s,isReadable:a,isWritable:u,isWebStream:l,isTransformStream:c,isWritableStream:f,isReadableStream:d}=e("./utils"),{AbortError:h,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:m}}=e("../../ours/errors"),b=e("./end-of-stream");t.exports=function(...e){if(0===e.length)throw new m("streams");if(1===e.length)return i.from(e[0]);const t=[...e];if("function"==typeof e[0]&&(e[0]=i.from(e[0])),"function"==typeof e[e.length-1]){const t=e.length-1;e[t]=i.from(e[t])}for(let r=0;r<e.length;++r)if(s(e[r])||l(e[r])){if(r<e.length-1&&!(a(e[r])||d(e[r])||c(e[r])))throw new p(`streams[${r}]`,t[r],"must be readable");if(r>0&&!(u(e[r])||f(e[r])||c(e[r])))throw new p(`streams[${r}]`,t[r],"must be writable")}let r,g,y,w,_;const v=e[0],E=n(e,function(e){const t=w;w=null,t?t(e):e?_.destroy(e):S||T||_.destroy()}),T=!!(u(v)||f(v)||c(v)),S=!!(a(E)||d(E)||c(E));if(_=new i({writableObjectMode:!(null===v||v===undefined||!v.writableObjectMode),readableObjectMode:!(null===E||E===undefined||!E.readableObjectMode),writable:T,readable:S}),T){if(s(v))_._write=function(e,t,n){v.write(e,t)?n():r=n},_._final=function(e){v.end(),g=e},v.on("drain",function(){if(r){const e=r;r=null,e()}});else if(l(v)){const e=(c(v)?v.writable:v).getWriter();_._write=async function(t,r,n){try{await e.ready,e.write(t).catch(()=>{}),n()}catch(e){n(e)}},_._final=async function(t){try{await e.ready,e.close().catch(()=>{}),g=t}catch(e){t(e)}}}const e=c(E)?E.readable:E;b(e,()=>{if(g){const e=g;g=null,e()}})}if(S)if(s(E))E.on("readable",function(){if(y){const e=y;y=null,e()}}),E.on("end",function(){_.push(null)}),_._read=function(){for(;;){const e=E.read();if(null===e)return void(y=_._read);if(!_.push(e))return}};else if(l(E)){const e=(c(E)?E.readable:E).getReader();_._read=async function(){for(;;)try{const{value:t,done:r}=await e.read();if(!_.push(t))return;if(r)return void _.push(null)}catch{return}}}return _._destroy=function(e,t){e||null===w||(e=new h),y=null,r=null,g=null,null===w?t(e):(w=t,s(E)&&o(E,e))},_}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/compose.js"}],[7754,{"../../ours/errors":7770,"../../ours/primordials":7771,"./utils":7766,"process/":7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("process/"),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:s}=e("../../ours/errors"),{Symbol:a}=e("../../ours/primordials"),{kIsDestroyed:u,isDestroyed:l,isFinished:c,isServerRequest:f}=e("./utils"),d=a("kDestroy"),h=a("kConstruct");function p(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function m(e,t,r){let i=!1;function o(t){if(i)return;i=!0;const o=e._readableState,s=e._writableState;p(t,s,o),s&&(s.closed=!0),o&&(o.closed=!0),"function"==typeof r&&r(t),t?n.nextTick(b,e,t):n.nextTick(g,e)}try{e._destroy(t||null,o)}catch(t){o(t)}}function b(e,t){y(e,t),g(e)}function g(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!==r&&r!==undefined&&r.emitClose||null!==t&&t!==undefined&&t.emitClose)&&e.emit("close")}function y(e,t){const r=e._readableState,n=e._writableState;null!==n&&n!==undefined&&n.errorEmitted||null!==r&&r!==undefined&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function w(e,t,r){const i=e._readableState,o=e._writableState;if(null!==o&&o!==undefined&&o.destroyed||null!==i&&i!==undefined&&i.destroyed)return this;null!==i&&i!==undefined&&i.autoDestroy||null!==o&&o!==undefined&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(y,e,t):y(e,t))}function _(e){let t=!1;function r(r){if(t)return void w(e,null!==r&&r!==undefined?r:new o);t=!0;const i=e._readableState,s=e._writableState,a=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),a.destroyed?e.emit(d,r):r?w(e,r,!0):n.nextTick(v,e)}try{e._construct(e=>{n.nextTick(r,e)})}catch(e){n.nextTick(r,e)}}function v(e){e.emit(h)}function E(e){return(null===e||e===undefined?undefined:e.setHeader)&&"function"==typeof e.abort}function T(e){e.emit("close")}function S(e,t){e.emit("error",t),n.nextTick(T,e)}t.exports={construct:function(e,t){if("function"!=typeof e._construct)return;const r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(h,t),e.listenerCount(h)>1||n.nextTick(_,e)},destroyer:function(e,t){e&&!l(e)&&(t||c(e)||(t=new s),f(e)?(e.socket=null,e.destroy(t)):E(e)?e.abort():E(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?n.nextTick(S,e,t):n.nextTick(T,e),e.destroyed||(e[u]=!0))},destroy:function(e,t){const r=this._readableState,n=this._writableState,o=n||r;return null!==n&&n!==undefined&&n.destroyed||null!==r&&r!==undefined&&r.destroyed?("function"==typeof t&&t(),this):(p(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),o.constructed?m(this,e,t):this.once(d,function(r){m(this,i(r,e),t)}),this)},undestroy:function(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:w}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/destroy.js"}],[7755,{"../../ours/primordials":7771,"./duplexify":7756,"./readable":7763,"./writable":7767},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:o,ObjectSetPrototypeOf:s}=e("../../ours/primordials");t.exports=l;const a=e("./readable"),u=e("./writable");s(l.prototype,a.prototype),s(l,a);{const e=o(u.prototype);for(let t=0;t<e.length;t++){const r=e[t];l.prototype[r]||(l.prototype[r]=u.prototype[r])}}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),u.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let c,f;function d(){return c===undefined&&(c={}),c}n(l.prototype,{writable:{__proto__:null,...i(u.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(u.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(u.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(u.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(u.prototype,"writableLength")},writableFinished:{__proto__:null,...i(u.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(u.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(u.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(u.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed&&this._writableState.destroyed)},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),l.fromWeb=function(e,t){return d().newStreamDuplexFromReadableWritablePair(e,t)},l.toWeb=function(e){return d().newReadableWritablePairFromDuplex(e)},l.from=function(t){return f||(f=e("./duplexify")),f(t,"body")}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/duplex.js"}],[7756,{"../../ours/errors":7770,"../../ours/primordials":7771,"../../ours/util":7772,"./destroy":7754,"./duplex":7755,"./end-of-stream":7757,"./from":7758,"./readable":7763,"./utils":7766,"./writable":7767,"abort-controller":6207,buffer:6371,"process/":7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("process/"),i=e("buffer"),{isReadable:o,isWritable:s,isIterable:a,isNodeStream:u,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:f,isReadableStream:d,isWritableStream:h}=e("./utils"),p=e("./end-of-stream"),{AbortError:m,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:g}}=e("../../ours/errors"),{destroyer:y}=e("./destroy"),w=e("./duplex"),_=e("./readable"),v=e("./writable"),{createDeferredPromise:E}=e("../../ours/util"),T=e("./from"),S=globalThis.Blob||i.Blob,A=void 0!==S?function(e){return e instanceof S}:function(e){return!1},I=globalThis.AbortController||e("abort-controller").AbortController,{FunctionPrototypeCall:x}=e("../../ours/primordials");class R extends w{constructor(e){super(e),!1===(null===e||e===undefined?undefined:e.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null===e||e===undefined?undefined:e.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function j(e){const t=e.readable&&"function"!=typeof e.readable.read?_.wrap(e.readable):e.readable,r=e.writable;let n,i,a,u,l,c=!!o(t),f=!!s(r);function d(e){const t=u;u=null,t?t(e):e&&l.destroy(e)}return l=new R({readableObjectMode:!(null===t||t===undefined||!t.readableObjectMode),writableObjectMode:!(null===r||r===undefined||!r.writableObjectMode),readable:c,writable:f}),f&&(p(r,e=>{f=!1,e&&y(t,e),d(e)}),l._write=function(e,t,i){r.write(e,t)?i():n=i},l._final=function(e){r.end(),i=e},r.on("drain",function(){if(n){const e=n;n=null,e()}}),r.on("finish",function(){if(i){const e=i;i=null,e()}})),c&&(p(t,e=>{c=!1,e&&y(t,e),d(e)}),t.on("readable",function(){if(a){const e=a;a=null,e()}}),t.on("end",function(){l.push(null)}),l._read=function(){for(;;){const e=t.read();if(null===e)return void(a=l._read);if(!l.push(e))return}}),l._destroy=function(e,o){e||null===u||(e=new m),a=null,n=null,i=null,null===u?o(e):(u=o,y(r,e),y(t,e))},l}t.exports=function e(t,r){if(f(t))return t;if(l(t))return j({readable:t});if(c(t))return j({writable:t});if(u(t))return j({writable:!1,readable:!1});if(d(t))return j({readable:_.fromWeb(t)});if(h(t))return j({writable:v.fromWeb(t)});if("function"==typeof t){const{value:e,write:i,final:o,destroy:s}=function(e){let{promise:t,resolve:r}=E();const i=new I,o=i.signal,s=e(async function*(){for(;;){const e=t;t=null;const{chunk:i,done:s,cb:a}=await e;if(n.nextTick(a),s)return;if(o.aborted)throw new m(undefined,{cause:o.reason});({promise:t,resolve:r}=E()),yield i}}(),{signal:o});return{value:s,write(e,t,n){const i=r;r=null,i({chunk:e,done:!1,cb:n})},final(e){const t=r;r=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}(t);if(a(e))return T(R,e,{objectMode:!0,write:i,final:o,destroy:s});const u=null===e||e===undefined?undefined:e.then;if("function"==typeof u){let t;const r=x(u,e,e=>{if(null!=e)throw new g("nully","body",e)},e=>{y(t,e)});return t=new R({objectMode:!0,readable:!1,write:i,final(e){o(async()=>{try{await r,n.nextTick(e,null)}catch(t){n.nextTick(e,t)}})},destroy:s})}throw new g("Iterable, AsyncIterable or AsyncFunction",r,e)}if(A(t))return e(t.arrayBuffer());if(a(t))return T(R,t,{objectMode:!0,writable:!1});if(d(null===t||t===undefined?undefined:t.readable)&&h(null===t||t===undefined?undefined:t.writable))return R.fromWeb(t);if("object"==typeof(null===t||t===undefined?undefined:t.writable)||"object"==typeof(null===t||t===undefined?undefined:t.readable)){return j({readable:null!==t&&t!==undefined&&t.readable?l(null===t||t===undefined?undefined:t.readable)?null===t||t===undefined?undefined:t.readable:e(t.readable):undefined,writable:null!==t&&t!==undefined&&t.writable?c(null===t||t===undefined?undefined:t.writable)?null===t||t===undefined?undefined:t.writable:e(t.writable):undefined})}const i=null===t||t===undefined?undefined:t.then;if("function"==typeof i){let e;return x(i,t,t=>{null!=t&&e.push(t),e.push(null)},t=>{y(e,t)}),e=new R({objectMode:!0,writable:!1,read(){}})}throw new b(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/duplexify.js"}],[7757,{"../../ours/errors":7770,"../../ours/primordials":7771,"../../ours/util":7772,"../validators":7768,"./utils":7766,"process/":7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("process/"),{AbortError:i,codes:o}=e("../../ours/errors"),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_PREMATURE_CLOSE:a}=o,{kEmptyObject:u,once:l}=e("../../ours/util"),{validateAbortSignal:c,validateFunction:f,validateObject:d,validateBoolean:h}=e("../validators"),{Promise:p,PromisePrototypeThen:m,SymbolDispose:b}=e("../../ours/primordials"),{isClosed:g,isReadable:y,isReadableNodeStream:w,isReadableStream:_,isReadableFinished:v,isReadableErrored:E,isWritable:T,isWritableNodeStream:S,isWritableStream:A,isWritableFinished:I,isWritableErrored:x,isNodeStream:R,willEmitClose:j,kIsClosedPromise:k}=e("./utils");let P;const O=()=>{};function L(t,r,o){var h,p;if(2===arguments.length?(o=r,r=u):null==r?r=u:d(r,"options"),f(o,"callback"),c(r.signal,"options.signal"),o=l(o),_(t)||A(t))return function(t,r,o){let s=!1,a=O;if(r.signal)if(a=()=>{s=!0,o.call(t,new i(undefined,{cause:r.signal.reason}))},r.signal.aborted)n.nextTick(a);else{P=P||e("../../ours/util").addAbortListener;const n=P(r.signal,a),i=o;o=l((...e)=>{n[b](),i.apply(t,e)})}const u=(...e)=>{s||n.nextTick(()=>o.apply(t,e))};return m(t[k].promise,u,u),O}(t,r,o);if(!R(t))throw new s("stream",["ReadableStream","WritableStream","Stream"],t);const L=null!==(h=r.readable)&&h!==undefined?h:w(t),C=null!==(p=r.writable)&&p!==undefined?p:S(t),M=t._writableState,N=t._readableState,B=()=>{t.writable||F()};let D=j(t)&&w(t)===L&&S(t)===C,U=I(t,!1);const F=()=>{U=!0,t.destroyed&&(D=!1),(!D||t.readable&&!L)&&(L&&!$||o.call(t))};let $=v(t,!1);const H=()=>{$=!0,t.destroyed&&(D=!1),(!D||t.writable&&!C)&&(C&&!U||o.call(t))},G=e=>{o.call(t,e)};let V=g(t);const z=()=>{V=!0;const e=x(t)||E(t);return e&&"boolean"!=typeof e?o.call(t,e):L&&!$&&w(t,!0)&&!v(t,!1)?o.call(t,new a):!C||U||I(t,!1)?void o.call(t):o.call(t,new a)},W=()=>{V=!0;const e=x(t)||E(t);if(e&&"boolean"!=typeof e)return o.call(t,e);o.call(t)},q=()=>{t.req.on("finish",F)};!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?C&&!M&&(t.on("end",B),t.on("close",B)):(t.on("complete",F),D||t.on("abort",z),t.req?q():t.on("request",q)),D||"boolean"!=typeof t.aborted||t.on("aborted",z),t.on("end",H),t.on("finish",F),!1!==r.error&&t.on("error",G),t.on("close",z),V?n.nextTick(z):null!==M&&M!==undefined&&M.errorEmitted||null!==N&&N!==undefined&&N.errorEmitted?D||n.nextTick(W):(L||D&&!y(t)||!U&&!1!==T(t))&&(C||D&&!T(t)||!$&&!1!==y(t))?N&&t.req&&t.aborted&&n.nextTick(W):n.nextTick(W);const K=()=>{o=O,t.removeListener("aborted",z),t.removeListener("complete",F),t.removeListener("abort",z),t.removeListener("request",q),t.req&&t.req.removeListener("finish",F),t.removeListener("end",B),t.removeListener("close",B),t.removeListener("finish",F),t.removeListener("end",H),t.removeListener("error",G),t.removeListener("close",z)};if(r.signal&&!V){const s=()=>{const e=o;K(),e.call(t,new i(undefined,{cause:r.signal.reason}))};if(r.signal.aborted)n.nextTick(s);else{P=P||e("../../ours/util").addAbortListener;const n=P(r.signal,s),i=o;o=l((...e)=>{n[b](),i.apply(t,e)})}}return K}t.exports=L,t.exports.finished=function(e,t){var r;let n=!1;return null===t&&(t=u),null!==(r=t)&&r!==undefined&&r.cleanup&&(h(t.cleanup,"cleanup"),n=t.cleanup),new p((r,i)=>{const o=L(e,t,e=>{n&&o(),e?i(e):r()})})}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/end-of-stream.js"}],[7758,{"../../ours/errors":7770,"../../ours/primordials":7771,buffer:6371,"process/":7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("process/"),{PromisePrototypeThen:i,SymbolAsyncIterator:o,SymbolIterator:s}=e("../../ours/primordials"),{Buffer:a}=e("buffer"),{ERR_INVALID_ARG_TYPE:u,ERR_STREAM_NULL_VALUES:l}=e("../../ours/errors").codes;t.exports=function(e,t,r){let c,f;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});if(t&&t[o])f=!0,c=t[o]();else{if(!t||!t[s])throw new u("iterable",["Iterable"],t);f=!1,c=t[s]()}const d=new e({objectMode:!0,highWaterMark:1,...r});let h=!1;return d._read=function(){h||(h=!0,async function(){for(;;){try{const{value:e,done:t}=f?await c.next():c.next();if(t)d.push(null);else{const t=e&&"function"==typeof e.then?await e:e;if(null===t)throw h=!1,new l;if(d.push(t))continue;h=!1}}catch(e){d.destroy(e)}break}}())},d._destroy=function(e,t){i(async function(e){const t=e!==undefined&&null!==e,r="function"==typeof c.throw;if(t&&r){const{value:t,done:r}=await c.throw(e);if(await t,r)return}if("function"==typeof c.return){const{value:e}=await c.return();await e}}(e),()=>n.nextTick(t,e),r=>n.nextTick(t,r||e))},d}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/from.js"}],[7759,{"../../ours/primordials":7771,events:6680},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{ArrayIsArray:n,ObjectSetPrototypeOf:i}=e("../../ours/primordials"),{EventEmitter:o}=e("events");function s(e){o.call(this,e)}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}i(s.prototype,o.prototype),i(s,o),s.prototype.pipe=function(e,t){const r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",u),r.on("close",l));let s=!1;function u(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){f(),0===o.listenerCount(this,"error")&&this.emit("error",e)}function f(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",u),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return a(r,"error",c),a(e,"error",c),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e},t.exports={Stream:s,prependListener:a}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/legacy.js"}],[776,{"./types.js":791,"./util.js":792,"@ethereumjs/common":771,"@ethereumjs/util":809},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BaseTransaction=void 0;const n=e("@ethereumjs/common"),i=e("@ethereumjs/util"),o=e("./types.js"),s=e("./util.js");r.BaseTransaction=class{constructor(e,t){this.cache={hash:undefined,dataFee:undefined,senderPubKey:undefined},this.activeCapabilities=[],this.DEFAULT_CHAIN=n.Chain.Mainnet;const{nonce:r,gasLimit:o,to:a,value:u,data:l,v:c,r:f,s:d,type:h}=e;this._type=Number((0,i.bytesToBigInt)((0,i.toBytes)(h))),this.txOptions=t;const p=(0,i.toBytes)(""===a?"0x":a),m=(0,i.toBytes)(c),b=(0,i.toBytes)(f),g=(0,i.toBytes)(d);this.nonce=(0,i.bytesToBigInt)((0,i.toBytes)(r)),this.gasLimit=(0,i.bytesToBigInt)((0,i.toBytes)(o)),this.to=p.length>0?new i.Address(p):undefined,this.value=(0,i.bytesToBigInt)((0,i.toBytes)(u)),this.data=(0,i.toBytes)(""===l?"0x":l),this.v=m.length>0?(0,i.bytesToBigInt)(m):undefined,this.r=b.length>0?(0,i.bytesToBigInt)(b):undefined,this.s=g.length>0?(0,i.bytesToBigInt)(g):undefined,this._validateCannotExceedMaxInteger({value:this.value,r:this.r,s:this.s}),this._validateCannotExceedMaxInteger({gasLimit:this.gasLimit},64),this._validateCannotExceedMaxInteger({nonce:this.nonce},64,!0);const y=this.to===undefined||null===this.to,w=t.allowUnlimitedInitCodeSize??!1,_=t.common??this._getCommon();y&&_.isActivatedEIP(3860)&&!1===w&&(0,s.checkMaxInitCodeSize)(_,this.data.length)}get type(){return this._type}supports(e){return this.activeCapabilities.includes(e)}getValidationErrors(){const e=[];return this.isSigned()&&!this.verifySignature()&&e.push("Invalid Signature"),this.getBaseFee()>this.gasLimit&&e.push(`gasLimit is too low. given ${this.gasLimit}, need at least ${this.getBaseFee()}`),e}isValid(){return 0===this.getValidationErrors().length}getBaseFee(){const e=this.common.param("gasPrices","tx");let t=this.getDataFee();if(e&&(t+=e),this.common.gteHardfork("homestead")&&this.toCreationAddress()){const e=this.common.param("gasPrices","txCreation");e&&(t+=e)}return t}getDataFee(){const e=this.common.param("gasPrices","txDataZero"),t=this.common.param("gasPrices","txDataNonZero");let r=i.BIGINT_0;for(let n=0;n<this.data.length;n++)0===this.data[n]?r+=e:r+=t;if((this.to===undefined||null===this.to)&&this.common.isActivatedEIP(3860)){const e=BigInt(Math.ceil(this.data.length/32));r+=this.common.param("gasPrices","initCodeWordCost")*e}return r}toCreationAddress(){return this.to===undefined||0===this.to.bytes.length}isSigned(){const{v:e,r:t,s:r}=this;return e!==undefined&&t!==undefined&&r!==undefined}verifySignature(){try{const e=this.getSenderPublicKey();return 0!==(0,i.unpadBytes)(e).length}catch(e){return!1}}getSenderAddress(){return new i.Address((0,i.publicToAddress)(this.getSenderPublicKey()))}sign(e){if(32!==e.length){const e=this._errorMsg("Private key must be 32 bytes in length.");throw new Error(e)}let t=!1;this.type===o.TransactionType.Legacy&&this.common.gteHardfork("spuriousDragon")&&!this.supports(o.Capability.EIP155ReplayProtection)&&(this.activeCapabilities.push(o.Capability.EIP155ReplayProtection),t=!0);const r=this.getHashedMessageToSign(),n=this.common.customCrypto?.ecsign??i.ecsign,{v:s,r:a,s:u}=n(r,e),l=this.addSignature(s,a,u,!0);if(t){const e=this.activeCapabilities.indexOf(o.Capability.EIP155ReplayProtection);e>-1&&this.activeCapabilities.splice(e,1)}return l}toJSON(){return{type:(0,i.bigIntToHex)(BigInt(this.type)),nonce:(0,i.bigIntToHex)(this.nonce),gasLimit:(0,i.bigIntToHex)(this.gasLimit),to:this.to!==undefined?this.to.toString():undefined,value:(0,i.bigIntToHex)(this.value),data:(0,i.bytesToHex)(this.data),v:this.v!==undefined?(0,i.bigIntToHex)(this.v):undefined,r:this.r!==undefined?(0,i.bigIntToHex)(this.r):undefined,s:this.s!==undefined?(0,i.bigIntToHex)(this.s):undefined}}_getCommon(e,t){if(t!==undefined){const r=(0,i.bytesToBigInt)((0,i.toBytes)(t));if(e){if(e.chainId()!==r){const t=this._errorMsg(`The chain ID does not match the chain ID of Common. Got: ${r}, expected: ${e.chainId()}`);throw new Error(t)}return e.copy()}return n.Common.isSupportedChainId(r)?new n.Common({chain:r}):n.Common.custom({name:"custom-chain",networkId:r,chainId:r},{baseChain:this.DEFAULT_CHAIN})}return e?.copy()??new n.Common({chain:this.DEFAULT_CHAIN})}_validateCannotExceedMaxInteger(e,t=256,r=!1){for(const[n,o]of Object.entries(e))switch(t){case 64:if(r){if(o!==undefined&&o>=i.MAX_UINT64){const e=this._errorMsg(`${n} cannot equal or exceed MAX_UINT64 (2^64-1), given ${o}`);throw new Error(e)}}else if(o!==undefined&&o>i.MAX_UINT64){const e=this._errorMsg(`${n} cannot exceed MAX_UINT64 (2^64-1), given ${o}`);throw new Error(e)}break;case 256:if(r){if(o!==undefined&&o>=i.MAX_INTEGER){const e=this._errorMsg(`${n} cannot equal or exceed MAX_INTEGER (2^256-1), given ${o}`);throw new Error(e)}}else if(o!==undefined&&o>i.MAX_INTEGER){const e=this._errorMsg(`${n} cannot exceed MAX_INTEGER (2^256-1), given ${o}`);throw new Error(e)}break;default:{const e=this._errorMsg("unimplemented bits value");throw new Error(e)}}}static _validateNotArray(e){const t=["nonce","gasPrice","gasLimit","to","value","data","v","r","s","type","baseFee","maxFeePerGas","chainId"];for(const[r,n]of Object.entries(e))if(t.includes(r)&&Array.isArray(n))throw new Error(`${r} cannot be an array`)}_getSharedErrorPostfix(){let e="";try{e=this.isSigned()?(0,i.bytesToHex)(this.hash()):"not available (unsigned)"}catch(t){e="error"}let t="";try{t=this.isSigned().toString()}catch(t){e="error"}let r="";try{r=this.common.hardfork()}catch(e){r="error"}let n=`tx type=${this.type} hash=${e} nonce=${this.nonce} value=${this.value} `;return n+=`signed=${t} hf=${r}`,n}}}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/baseTransaction.js"}],[7760,{"../../ours/errors":7770,"../../ours/primordials":7771,"../../ours/util":7772,"../validators":7768,"./add-abort-signal":7751,"./compose":7753,"./end-of-stream":7757,"./utils":7766,"abort-controller":6207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=globalThis.AbortController||e("abort-controller").AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:s,ERR_OUT_OF_RANGE:a},AbortError:u}=e("../../ours/errors"),{validateAbortSignal:l,validateInteger:c,validateObject:f}=e("../validators"),d=e("../../ours/primordials").Symbol("kWeak"),h=e("../../ours/primordials").Symbol("kResistStopPropagation"),{finished:p}=e("./end-of-stream"),m=e("./compose"),{addAbortSignalNoValidate:b}=e("./add-abort-signal"),{isWritable:g,isNodeStream:y}=e("./utils"),{deprecate:w}=e("../../ours/util"),{ArrayPrototypePush:_,Boolean:v,MathFloor:E,Number:T,NumberIsNaN:S,Promise:A,PromiseReject:I,PromiseResolve:x,PromisePrototypeThen:R,Symbol:j}=e("../../ours/primordials"),k=j("kEmpty"),P=j("kEof");function O(t,r){if("function"!=typeof t)throw new o("fn",["Function","AsyncFunction"],t);null!=r&&f(r,"options"),null!=(null===r||r===undefined?undefined:r.signal)&&l(r.signal,"options.signal");let n=1;null!=(null===r||r===undefined?undefined:r.concurrency)&&(n=E(r.concurrency));let i=n-1;return null!=(null===r||r===undefined?undefined:r.highWaterMark)&&(i=E(r.highWaterMark)),c(n,"options.concurrency",1),c(i,"options.highWaterMark",0),i+=n,async function*(){const o=e("../../ours/util").AbortSignalAny([null===r||r===undefined?undefined:r.signal].filter(v)),s=this,a=[],l={signal:o};let c,f,d=!1,h=0;function p(){d=!0,m()}function m(){h-=1,b()}function b(){f&&!d&&h<n&&a.length<i&&(f(),f=null)}!async function(){try{for await(let e of s){if(d)return;if(o.aborted)throw new u;try{if(e=t(e,l),e===k)continue;e=x(e)}catch(t){e=I(t)}h+=1,R(e,m,p),a.push(e),c&&(c(),c=null),!d&&(a.length>=i||h>=n)&&await new A(e=>{f=e})}a.push(P)}catch(e){const t=I(e);R(t,m,p),a.push(t)}finally{d=!0,c&&(c(),c=null)}}();try{for(;;){for(;a.length>0;){const e=await a[0];if(e===P)return;if(o.aborted)throw new u;e!==k&&(yield e),a.shift(),b()}await new A(e=>{c=e})}}finally{d=!0,f&&(f(),f=null)}}.call(this)}async function L(e,t=undefined){for await(const r of C.call(this,e,t))return!0;return!1}function C(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return O.call(this,async function(t,r){return await e(t,r)?t:k},t)}class M extends s{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(e){if(e=T(e),S(e))return 0;if(e<0)throw new a("number",">= 0",e);return e}t.exports.streamReturningOperators={asIndexedPairs:w(function(e=undefined){return null!=e&&f(e,"options"),null!=(null===e||e===undefined?undefined:e.signal)&&l(e.signal,"options.signal"),async function*(){let t=0;for await(const n of this){var r;if(null!==e&&e!==undefined&&null!==(r=e.signal)&&r!==undefined&&r.aborted)throw new u({cause:e.signal.reason});yield[t++,n]}}.call(this)},"readable.asIndexedPairs will be removed in a future version."),drop:function(e,t=undefined){return null!=t&&f(t,"options"),null!=(null===t||t===undefined?undefined:t.signal)&&l(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!==t&&t!==undefined&&null!==(r=t.signal)&&r!==undefined&&r.aborted)throw new u;for await(const r of this){var n;if(null!==t&&t!==undefined&&null!==(n=t.signal)&&n!==undefined&&n.aborted)throw new u;e--<=0&&(yield r)}}.call(this)},filter:C,flatMap:function(e,t){const r=O.call(this,e,t);return async function*(){for await(const e of r)yield*e}.call(this)},map:O,take:function(e,t=undefined){return null!=t&&f(t,"options"),null!=(null===t||t===undefined?undefined:t.signal)&&l(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!==t&&t!==undefined&&null!==(r=t.signal)&&r!==undefined&&r.aborted)throw new u;for await(const r of this){var n;if(null!==t&&t!==undefined&&null!==(n=t.signal)&&n!==undefined&&n.aborted)throw new u;if(e-- >0&&(yield r),e<=0)return}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null===t||t===undefined?undefined:t.signal)&&l(t.signal,"options.signal"),y(e)&&!g(e))throw new i("stream",e,"must be writable");const r=m(this,e);return null!==t&&t!==undefined&&t.signal&&b(t.signal,r),r}},t.exports.promiseReturningOperators={every:async function(e,t=undefined){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await L.call(this,async(...t)=>!await e(...t),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(const r of O.call(this,async function(t,r){return await e(t,r),k},t));},reduce:async function(e,t,r){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&f(r,"options"),null!=(null===r||r===undefined?undefined:r.signal)&&l(r.signal,"options.signal");let s=arguments.length>1;if(null!==r&&r!==undefined&&null!==(i=r.signal)&&i!==undefined&&i.aborted){const e=new u(undefined,{cause:r.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(e)),e}const a=new n,c=a.signal;if(null!==r&&r!==undefined&&r.signal){const e={once:!0,[d]:this,[h]:!0};r.signal.addEventListener("abort",()=>a.abort(),e)}let m=!1;try{for await(const n of this){var b;if(m=!0,null!==r&&r!==undefined&&null!==(b=r.signal)&&b!==undefined&&b.aborted)throw new u;s?t=await e(t,n,{signal:c}):(t=n,s=!0)}if(!m&&!s)throw new M}finally{a.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null===e||e===undefined?undefined:e.signal)&&l(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(null!==e&&e!==undefined&&null!==(r=e.signal)&&r!==undefined&&r.aborted)throw new u(undefined,{cause:e.signal.reason});_(t,n)}return t},some:L,find:async function(e,t){for await(const r of C.call(this,e,t))return r;return undefined}}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/operators.js"}],[7761,{"../../ours/primordials":7771,"./transform":7765},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{ObjectSetPrototypeOf:n}=e("../../ours/primordials");t.exports=o;const i=e("./transform");function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}n(o.prototype,i.prototype),n(o,i),o.prototype._transform=function(e,t,r){r(null,e)}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/passthrough.js"}],[7762,{"../../ours/errors":7770,"../../ours/primordials":7771,"../../ours/util":7772,"../validators":7768,"./destroy":7754,"./duplex":7755,"./end-of-stream":7757,"./passthrough":7761,"./readable":7763,"./utils":7766,"abort-controller":6207,"process/":7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("process/"),{ArrayIsArray:i,Promise:o,SymbolAsyncIterator:s,SymbolDispose:a}=e("../../ours/primordials"),u=e("./end-of-stream"),{once:l}=e("../../ours/util"),c=e("./destroy"),f=e("./duplex"),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:m,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:y}=e("../../ours/errors"),{validateFunction:w,validateAbortSignal:_}=e("../validators"),{isIterable:v,isReadable:E,isReadableNodeStream:T,isNodeStream:S,isTransformStream:A,isWebStream:I,isReadableStream:x,isReadableFinished:R}=e("./utils"),j=globalThis.AbortController||e("abort-controller").AbortController;let k,P,O;function L(e,t,r){let n=!1;e.on("close",()=>{n=!0});return{destroy:t=>{n||(n=!0,c.destroyer(e,t||new b("pipe")))},cleanup:u(e,{readable:t,writable:r},e=>{n=!e})}}function C(t){if(v(t))return t;if(T(t))return async function*(t){P||(P=e("./readable"));yield*P.prototype[s].call(t)}(t);throw new h("val",["Readable","Iterable","AsyncIterable"],t)}async function M(e,t,r,{end:n}){let i,s=null;const a=e=>{if(e&&(i=e),s){const e=s;s=null,e()}},l=()=>new o((e,t)=>{i?t(i):s=()=>{i?t(i):e()}});t.on("drain",a);const c=u(t,{readable:!1},a);try{t.writableNeedDrain&&await l();for await(const r of e)t.write(r)||await l();n&&(t.end(),await l()),r()}catch(e){r(i!==e?d(i,e):e)}finally{c(),t.off("drain",a)}}async function N(e,t,r,{end:n}){A(t)&&(t=t.writable);const i=t.getWriter();try{for await(const t of e)await i.ready,i.write(t).catch(()=>{});await i.ready,n&&await i.close(),r()}catch(e){try{await i.abort(e),r(e)}catch(e){r(e)}}}function B(t,r,o){if(1===t.length&&i(t[0])&&(t=t[0]),t.length<2)throw new m("streams");const s=new j,u=s.signal,l=null===o||o===undefined?undefined:o.signal,c=[];function d(){F(new y)}let b,g,w;_(l,"options.signal"),O=O||e("../../ours/util").addAbortListener,l&&(b=O(l,d));const R=[];let P,B=0;function U(e){F(e,0===--B)}function F(e,t){var i;if(!e||g&&"ERR_STREAM_PREMATURE_CLOSE"!==g.code||(g=e),g||t){for(;R.length;)R.shift()(g);null===(i=b)||i===undefined?undefined:i[a](),s.abort(),t&&(g||c.forEach(e=>e()),n.nextTick(r,g,w))}}for(let G=0;G<t.length;G++){const V=t[G],z=G<t.length-1,W=G>0,q=z||!1!==(null===o||o===undefined?undefined:o.end),K=G===t.length-1;if(S(V)){if(q){const{destroy:X,cleanup:J}=L(V,z,W);R.push(X),E(V)&&K&&c.push(J)}function Y(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&U(e)}V.on("error",Y),E(V)&&K&&c.push(()=>{V.removeListener("error",Y)})}if(0===G)if("function"==typeof V){if(P=V({signal:u}),!v(P))throw new p("Iterable, AsyncIterable or Stream","source",P)}else P=v(V)||T(V)||A(V)?V:f.from(V);else if("function"==typeof V){var $;if(A(P))P=C(null===($=P)||$===undefined?undefined:$.readable);else P=C(P);if(P=V(P,{signal:u}),z){if(!v(P,!0))throw new p("AsyncIterable",`transform[${G-1}]`,P)}else{var H;k||(k=e("./passthrough"));const Z=new k({objectMode:!0}),Q=null===(H=P)||H===undefined?undefined:H.then;if("function"==typeof Q)B++,Q.call(P,e=>{w=e,null!=e&&Z.write(e),q&&Z.end(),n.nextTick(U)},e=>{Z.destroy(e),n.nextTick(U,e)});else if(v(P,!0))B++,M(P,Z,U,{end:q});else{if(!x(P)&&!A(P))throw new p("AsyncIterable or Promise","destination",P);{const re=P.readable||P;B++,M(re,Z,U,{end:q})}}P=Z;const{destroy:ee,cleanup:te}=L(P,!1,!0);R.push(ee),K&&c.push(te)}}else if(S(V)){if(T(P)){B+=2;const ne=D(P,V,U,{end:q});E(V)&&K&&c.push(ne)}else if(A(P)||x(P)){const ie=P.readable||P;B++,M(ie,V,U,{end:q})}else{if(!v(P))throw new h("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);B++,M(P,V,U,{end:q})}P=V}else if(I(V)){if(T(P))B++,N(C(P),V,U,{end:q});else if(x(P)||v(P))B++,N(P,V,U,{end:q});else{if(!A(P))throw new h("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);B++,N(P.readable,V,U,{end:q})}P=V}else P=f.from(V)}return(null!==u&&u!==undefined&&u.aborted||null!==l&&l!==undefined&&l.aborted)&&n.nextTick(d),P}function D(e,t,r,{end:i}){let o=!1;if(t.on("close",()=>{o||r(new g)}),e.pipe(t,{end:!1}),i){function s(){o=!0,t.end()}R(e)?n.nextTick(s):e.once("end",s)}else r();return u(e,{readable:!0,writable:!1},t=>{const n=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?e.once("end",r).once("error",r):r(t)}),u(t,{readable:!1,writable:!0},r)}t.exports={pipelineImpl:B,pipeline:function(...e){return B(e,l(function(e){return w(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(e)))}}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/pipeline.js"}],[7763,{"../../ours/errors":7770,"../../ours/primordials":7771,"../../ours/util":7772,"../validators":7768,"./add-abort-signal":7751,"./buffer_list":7752,"./destroy":7754,"./duplex":7755,"./end-of-stream":7757,"./from":7758,"./legacy":7759,"./state":7764,buffer:6371,events:6680,"process/":7579,"string_decoder/":8157},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("process/"),{ArrayPrototypeIndexOf:i,NumberIsInteger:o,NumberIsNaN:s,NumberParseInt:a,ObjectDefineProperties:u,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:f,SafeSet:d,SymbolAsyncDispose:h,SymbolAsyncIterator:p,Symbol:m}=e("../../ours/primordials");t.exports=q,q.ReadableState=W;const{EventEmitter:b}=e("events"),{Stream:g,prependListener:y}=e("./legacy"),{Buffer:w}=e("buffer"),{addAbortSignal:_}=e("./add-abort-signal"),v=e("./end-of-stream");let E=e("../../ours/util").debuglog("stream",e=>{E=e});const T=e("./buffer_list"),S=e("./destroy"),{getHighWaterMark:A,getDefaultHighWaterMark:I}=e("./state"),{aggregateTwoErrors:x,codes:{ERR_INVALID_ARG_TYPE:R,ERR_METHOD_NOT_IMPLEMENTED:j,ERR_OUT_OF_RANGE:k,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:O},AbortError:L}=e("../../ours/errors"),{validateObject:C}=e("../validators"),M=m("kPaused"),{StringDecoder:N}=e("string_decoder/"),B=e("./from");c(q.prototype,g.prototype),c(q,g);const D=()=>{},{errorOrDestroy:U}=S,F=1,$=16,H=32,G=2048,V=4096;function z(e){return{enumerable:!1,get(){return 0!==(this.state&e)},set(t){t?this.state|=e:this.state&=~e}}}function W(t,r,n){"boolean"!=typeof n&&(n=r instanceof e("./duplex")),this.state=G|V|$|H,t&&t.objectMode&&(this.state|=F),n&&t&&t.readableObjectMode&&(this.state|=F),this.highWaterMark=t?A(this,t,"readableHighWaterMark",n):I(!1),this.buffer=new T,this.length=0,this.pipes=[],this.flowing=null,this[M]=null,t&&!1===t.emitClose&&(this.state&=~G),t&&!1===t.autoDestroy&&(this.state&=~V),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new N(t.encoding),this.encoding=t.encoding)}function q(t){if(!(this instanceof q))return new q(t);const r=this instanceof e("./duplex");this._readableState=new W(t,this,r),t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&!r&&_(t.signal,this)),g.call(this,t),S.construct(this,()=>{this._readableState.needReadable&&Q(this,this._readableState)})}function K(e,t,r,n){E("readableAddChunk",t);const i=e._readableState;let o;if(0===(i.state&F)&&("string"==typeof t?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?t=w.from(t,r).toString(i.encoding):(t=w.from(t,r),r=""))):t instanceof w?r="":g._isUint8Array(t)?(t=g._uint8ArrayToBuffer(t),r=""):null!=t&&(o=new R("chunk",["string","Buffer","Uint8Array"],t))),o)U(e,o);else if(null===t)i.state&=-9,function(e,t){if(E("onEofChunk"),t.ended)return;if(t.decoder){const e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?J(e):(t.needReadable=!1,t.emittedReadable=!0,Z(e))}(e,i);else if(0!==(i.state&F)||t&&t.length>0)if(n)if(4&i.state)U(e,new O);else{if(i.destroyed||i.errored)return!1;Y(e,i,t,!0)}else if(i.ended)U(e,new P);else{if(i.destroyed||i.errored)return!1;i.state&=-9,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||0!==t.length?Y(e,i,t,!1):Q(e,i)):Y(e,i,t,!1)}else n||(i.state&=-9,Q(e,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function Y(e,t,r,n){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?(65536&t.state?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),64&t.state&&J(e)),Q(e,t)}u(W.prototype,{objectMode:z(F),ended:z(2),endEmitted:z(4),reading:z(8),constructed:z($),sync:z(H),needReadable:z(64),emittedReadable:z(128),readableListening:z(256),resumeScheduled:z(512),errorEmitted:z(1024),emitClose:z(G),autoDestroy:z(V),destroyed:z(8192),closed:z(16384),closeEmitted:z(32768),multiAwaitDrain:z(65536),readingMore:z(1<<17),dataEmitted:z(1<<18)}),q.prototype.destroy=S.destroy,q.prototype._undestroy=S.undestroy,q.prototype._destroy=function(e,t){t(e)},q.prototype[b.captureRejectionSymbol]=function(e){this.destroy(e)},q.prototype[h]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new L,this.destroy(e)),new f((t,r)=>v(this,n=>n&&n!==e?r(n):t(null)))},q.prototype.push=function(e,t){return K(this,e,t,!1)},q.prototype.unshift=function(e,t){return K(this,e,t,!0)},q.prototype.isPaused=function(){const e=this._readableState;return!0===e[M]||!1===e.flowing},q.prototype.setEncoding=function(e){const t=new N(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const e of r)n+=t.write(e);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};function X(e,t){return e<=0||0===t.length&&t.ended?0:0!==(t.state&F)?1:s(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function J(e){const t=e._readableState;E("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(E("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(Z,e))}function Z(e){const t=e._readableState;E("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||t.errored||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ie(e)}function Q(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,n.nextTick(ee,e,t))}function ee(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const r=t.length;if(E("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function te(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[M]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function re(e){E("readable nexttick read 0"),e.read(0)}function ne(e,t){E("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ie(e),t.flowing&&!t.reading&&e.read(0)}function ie(e){const t=e._readableState;for(E("flow",t.flowing);t.flowing&&null!==e.read(););}function oe(e,t){"function"!=typeof e.read&&(e=q.wrap(e,{objectMode:!0}));const r=async function*(e,t){let r,n=D;function i(t){this===e?(n(),n=D):n=t}e.on("readable",i);const o=v(e,{writable:!1},e=>{r=e?x(r,e):null,n(),n=D});try{for(;;){const t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(r)throw r;if(null===r)return;await new f(i)}}}catch(e){throw r=x(r,e),r}finally{!r&&!1===(null===t||t===undefined?undefined:t.destroyOnReturn)||r!==undefined&&!e._readableState.autoDestroy?(e.off("readable",i),o()):S.destroyer(e,null)}}(e,t);return r.stream=e,r}function se(e,t){if(0===t.length)return null;let r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function ae(e){const t=e._readableState;E("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(ue,t,e))}function ue(e,t){if(E("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)n.nextTick(le,t);else if(e.autoDestroy){const e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function le(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}let ce;function fe(){return ce===undefined&&(ce={}),ce}q.prototype.read=function(e){E("read",e),e===undefined?e=NaN:o(e)||(e=a(e,10));const t=this._readableState,r=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new k("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.state&=-129),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return E("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?ae(this):J(this),null;if(0===(e=X(e,t))&&t.ended)return 0===t.length&&ae(this),null;let n,i=!!(64&t.state);if(E("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,E("length less than watermark",i)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)i=!1,E("reading, ended or constructing",i);else if(i){E("do read"),t.state|=8|H,0===t.length&&(t.state|=64);try{this._read(t.highWaterMark)}catch(e){U(this,e)}t.state&=~H,t.reading||(e=X(r,t))}return n=e>0?se(e,t):null,null===n?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&ae(this)),null===n||t.errorEmitted||t.closeEmitted||(t.dataEmitted=!0,this.emit("data",n)),n},q.prototype._read=function(e){throw new j("_read()")},q.prototype.pipe=function(e,t){const r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new d(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(e),E("pipe count=%d opts=%j",i.pipes.length,t);const o=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?a:b;function s(t,n){E("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){E("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),u&&e.removeListener("drain",u);e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",f),l=!0,u&&i.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&u()}())}function a(){E("onend"),e.end()}let u;i.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",s);let l=!1;function c(){l||(1===i.pipes.length&&i.pipes[0]===e?(E("false write response, pause",0),i.awaitDrainWriters=e,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(e)&&(E("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(e)),r.pause()),u||(u=function(e,t){return function(){const r=e._readableState;r.awaitDrainWriters===t?(E("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(E("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!e.listenerCount("data")||e.resume()}}(r,e),e.on("drain",u))}function f(t){E("ondata");const r=e.write(t);E("dest.write",r),!1===r&&c()}function h(t){if(E("onerror",t),b(),e.removeListener("error",h),0===e.listenerCount("error")){const r=e._writableState||e._readableState;r&&!r.errorEmitted?U(e,t):e.emit("error",t)}}function p(){e.removeListener("finish",m),b()}function m(){E("onfinish"),e.removeListener("close",p),b()}function b(){E("unpipe"),r.unpipe(e)}return r.on("data",f),y(e,"error",h),e.once("close",p),e.once("finish",m),e.emit("pipe",r),!0===e.writableNeedDrain?c():i.flowing||(E("pipe resume"),r.resume()),e},q.prototype.unpipe=function(e){const t=this._readableState;if(0===t.pipes.length)return this;if(!e){const e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}const r=i(t.pipes,e);return-1===r||(t.pipes.splice(r,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},q.prototype.on=function(e,t){const r=g.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,E("on readable",i.length,i.reading),i.length?J(this):i.reading||n.nextTick(re,this))),r},q.prototype.addListener=q.prototype.on,q.prototype.removeListener=function(e,t){const r=g.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(te,this),r},q.prototype.off=q.prototype.removeListener,q.prototype.removeAllListeners=function(e){const t=g.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&e!==undefined||n.nextTick(te,this),t},q.prototype.resume=function(){const e=this._readableState;return e.flowing||(E("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(ne,e,t))}(this,e)),e[M]=!1,this},q.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[M]=!0,this},q.prototype.wrap=function(e){let t=!1;e.on("data",r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())}),e.on("end",()=>{this.push(null)}),e.on("error",e=>{U(this,e)}),e.on("close",()=>{this.destroy()}),e.on("destroy",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};const r=l(e);for(let t=1;t<r.length;t++){const n=r[t];this[n]===undefined&&"function"==typeof e[n]&&(this[n]=e[n].bind(e))}return this},q.prototype[p]=function(){return oe(this)},q.prototype.iterator=function(e){return e!==undefined&&C(e,"options"),oe(this,e)},u(q.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!(!e||!1===e.readable||e.destroyed||e.errorEmitted||e.endEmitted)},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),u(W.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[M]},set(e){this[M]=!!e}}}),q._fromList=se,q.from=function(e,t){return B(q,e,t)},q.fromWeb=function(e,t){return fe().newStreamReadableFromReadableStream(e,t)},q.toWeb=function(e,t){return fe().newReadableStreamFromStreamReadable(e,t)},q.wrap=function(e,t){var r,n;return new q({objectMode:null===(r=null!==(n=e.readableObjectMode)&&n!==undefined?n:e.objectMode)||r===undefined||r,...t,destroy(t,r){S.destroyer(e,t),r(t)}}).wrap(e)}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/readable.js"}],[7764,{"../../ours/errors":7770,"../../ours/primordials":7771,"../validators":7768},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{MathFloor:n,NumberIsInteger:i}=e("../../ours/primordials"),{validateInteger:o}=e("../validators"),{ERR_INVALID_ARG_VALUE:s}=e("../../ours/errors").codes;let a=16384,u=16;function l(e){return e?u:a}t.exports={getHighWaterMark:function(e,t,r,o){const a=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,o,r);if(null!=a){if(!i(a)||a<0){throw new s(o?`options.${r}`:"options.highWaterMark",a)}return n(a)}return l(e.objectMode)},getDefaultHighWaterMark:l,setDefaultHighWaterMark:function(e,t){o(t,"value",0),e?u=t:a=t}}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/state.js"}],[7765,{"../../ours/errors":7770,"../../ours/primordials":7771,"./duplex":7755,"./state":7764},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{ObjectSetPrototypeOf:n,Symbol:i}=e("../../ours/primordials");t.exports=l;const{ERR_METHOD_NOT_IMPLEMENTED:o}=e("../../ours/errors").codes,s=e("./duplex"),{getHighWaterMark:a}=e("./state");n(l.prototype,s.prototype),n(l,s);const u=i("kCallback");function l(e){if(!(this instanceof l))return new l(e);const t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),s.call(this,e),this._readableState.sync=!1,this[u]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function c(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush((t,r)=>{t?e?e(t):this.destroy(t):(null!=r&&this.push(r),this.push(null),e&&e())})}function f(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(e,t,r){throw new o("_transform()")},l.prototype._write=function(e,t,r){const n=this._readableState,i=this._writableState,o=n.length;this._transform(e,t,(e,t)=>{e?r(e):(null!=t&&this.push(t),i.ended||o===n.length||n.length<n.highWaterMark?r():this[u]=r)})},l.prototype._read=function(){if(this[u]){const e=this[u];this[u]=null,e()}}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/transform.js"}],[7766,{"../../ours/primordials":7771},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:o}=e("../../ours/primordials"),s=o("nodejs.stream.destroyed"),a=o("nodejs.stream.errored"),u=o("nodejs.stream.readable"),l=o("nodejs.stream.writable"),c=o("nodejs.stream.disturbed"),f=o("nodejs.webstream.isClosedPromise"),d=o("nodejs.webstream.controllerErrorFunction");function h(e,t=!1){var r;return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||t&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(r=e._readableState)||r===undefined?undefined:r.readable)||e._writableState&&!e._readableState)}function p(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||t===undefined?undefined:t.writable))}function m(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function b(e){return!(!e||m(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function g(e){return!(!e||m(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function y(e){return!(!e||m(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function w(e){if(!m(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[s]||null!==n&&n!==undefined&&n.destroyed)}function _(e){if(!p(e))return null;if(!0===e.writableEnded)return!0;const t=e._writableState;return(null===t||t===undefined||!t.errored)&&("boolean"!=typeof(null===t||t===undefined?undefined:t.ended)?null:t.ended)}function v(e,t){if(!h(e))return null;const r=e._readableState;return(null===r||r===undefined||!r.errored)&&("boolean"!=typeof(null===r||r===undefined?undefined:r.endEmitted)?null:!!(r.endEmitted||!1===t&&!0===r.ended&&0===r.length))}function E(e){return e&&null!=e[u]?e[u]:"boolean"!=typeof(null===e||e===undefined?undefined:e.readable)?null:!w(e)&&(h(e)&&e.readable&&!v(e))}function T(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof(null===e||e===undefined?undefined:e.writable)?null:!w(e)&&(p(e)&&e.writable&&!_(e))}function S(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function A(e){return"boolean"==typeof e._sent100&&S(e)}t.exports={isDestroyed:w,kIsDestroyed:s,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[c])&&t!==undefined?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:c,isErrored:function(e){var t,r,n,i,o,s,u,l,c,f;return!(!e||!(null!==(t=null!==(r=null!==(n=null!==(i=null!==(o=null!==(s=e[a])&&s!==undefined?s:e.readableErrored)&&o!==undefined?o:e.writableErrored)&&i!==undefined?i:null===(u=e._readableState)||u===undefined?undefined:u.errorEmitted)&&n!==undefined?n:null===(l=e._writableState)||l===undefined?undefined:l.errorEmitted)&&r!==undefined?r:null===(c=e._readableState)||c===undefined?undefined:c.errored)&&t!==undefined?t:null===(f=e._writableState)||f===undefined?undefined:f.errored))},kIsErrored:a,isReadable:E,kIsReadable:u,kIsClosedPromise:f,kControllerErrorFunction:d,kIsWritable:l,isClosed:function(e){if(!m(e))return null;if("boolean"==typeof e.closed)return e.closed;const t=e._writableState,r=e._readableState;return"boolean"==typeof(null===t||t===undefined?undefined:t.closed)||"boolean"==typeof(null===r||r===undefined?undefined:r.closed)?(null===t||t===undefined?undefined:t.closed)||(null===r||r===undefined?undefined:r.closed):"boolean"==typeof e._closed&&S(e)?e._closed:null},isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return m(e)?!!w(e)||(!1===(null===t||t===undefined?undefined:t.readable)||!E(e))&&(!1===(null===t||t===undefined?undefined:t.writable)||!T(e)):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[n]:!1===t?"function"==typeof e[i]:"function"==typeof e[n]||"function"==typeof e[i])},isReadableNodeStream:h,isReadableStream:b,isReadableEnded:function(e){if(!h(e))return null;if(!0===e.readableEnded)return!0;const t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof(null===t||t===undefined?undefined:t.ended)?null:t.ended)},isReadableFinished:v,isReadableErrored:function(e){var t,r;return m(e)?e.readableErrored?e.readableErrored:null!==(t=null===(r=e._readableState)||r===undefined?undefined:r.errored)&&t!==undefined?t:null:null},isNodeStream:m,isWebStream:function(e){return b(e)||g(e)||y(e)},isWritable:T,isWritableNodeStream:p,isWritableStream:g,isWritableEnded:_,isWritableFinished:function(e,t){if(!p(e))return null;if(!0===e.writableFinished)return!0;const r=e._writableState;return(null===r||r===undefined||!r.errored)&&("boolean"!=typeof(null===r||r===undefined?undefined:r.finished)?null:!!(r.finished||!1===t&&!0===r.ended&&0===r.length))},isWritableErrored:function(e){var t,r;return m(e)?e.writableErrored?e.writableErrored:null!==(t=null===(r=e._writableState)||r===undefined?undefined:r.errored)&&t!==undefined?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&(null===(t=e.req)||t===undefined?undefined:t.upgradeOrConnect)===undefined},isServerResponse:A,willEmitClose:function(e){if(!m(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!n&&A(e)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:y}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/utils.js"}],[7767,{"../../ours/errors":7770,"../../ours/primordials":7771,"./add-abort-signal":7751,"./destroy":7754,"./duplex":7755,"./legacy":7759,"./state":7764,buffer:6371,events:6680,"process/":7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("process/"),{ArrayPrototypeSlice:i,Error:o,FunctionPrototypeSymbolHasInstance:s,ObjectDefineProperty:a,ObjectDefineProperties:u,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:f,SymbolHasInstance:d}=e("../../ours/primordials");t.exports=C,C.WritableState=O;const{EventEmitter:h}=e("events"),p=e("./legacy").Stream,{Buffer:m}=e("buffer"),b=e("./destroy"),{addAbortSignal:g}=e("./add-abort-signal"),{getHighWaterMark:y,getDefaultHighWaterMark:w}=e("./state"),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:E,ERR_STREAM_CANNOT_PIPE:T,ERR_STREAM_DESTROYED:S,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:I,ERR_STREAM_WRITE_AFTER_END:x,ERR_UNKNOWN_ENCODING:R}=e("../../ours/errors").codes,{errorOrDestroy:j}=b;function k(){}l(C.prototype,p.prototype),l(C,p);const P=f("kOnFinished");function O(t,r,n){"boolean"!=typeof n&&(n=r instanceof e("./duplex")),this.objectMode=!(!t||!t.objectMode),n&&(this.objectMode=this.objectMode||!(!t||!t.writableObjectMode)),this.highWaterMark=t?y(this,t,"writableHighWaterMark",n):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!t||!1!==t.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=D.bind(undefined,r),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,L(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||!1!==t.emitClose,this.autoDestroy=!t||!1!==t.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[P]=[]}function L(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function C(t){const r=this instanceof e("./duplex");if(!r&&!s(C,this))return new C(t);this._writableState=new O(t,this,r),t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final),"function"==typeof t.construct&&(this._construct=t.construct),t.signal&&g(t.signal,this)),p.call(this,t),b.construct(this,()=>{const e=this._writableState;e.writing||H(this,e),z(this,e)})}function M(e,t,r,i){const o=e._writableState;if("function"==typeof r)i=r,r=o.defaultEncoding;else{if(r){if("buffer"!==r&&!m.isEncoding(r))throw new R(r)}else r=o.defaultEncoding;"function"!=typeof i&&(i=k)}if(null===t)throw new I;if(!o.objectMode)if("string"==typeof t)!1!==o.decodeStrings&&(t=m.from(t,r),r="buffer");else if(t instanceof m)r="buffer";else{if(!p._isUint8Array(t))throw new _("chunk",["string","Buffer","Uint8Array"],t);t=p._uint8ArrayToBuffer(t),r="buffer"}let s;return o.ending?s=new x:o.destroyed&&(s=new S("write")),s?(n.nextTick(i,s),j(e,s,!0),s):(o.pendingcb++,function(e,t,r,n,i){const o=t.objectMode?1:r.length;t.length+=o;const s=t.length<t.highWaterMark;s||(t.needDrain=!0);t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:n,callback:i}),t.allBuffers&&"buffer"!==n&&(t.allBuffers=!1),t.allNoop&&i!==k&&(t.allNoop=!1)):(t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1);return s&&!t.errored&&!t.destroyed}(e,o,t,r,i))}function N(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new S("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function B(e,t,r,n){--t.pendingcb,n(r),$(t),j(e,r)}function D(e,t){const r=e._writableState,i=r.sync,o=r.writecb;"function"==typeof o?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||(r.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),i?n.nextTick(B,e,r,t,o):B(e,r,t,o)):(r.buffered.length>r.bufferedIndex&&H(e,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===o?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:o,stream:e,state:r},n.nextTick(U,r.afterWriteTickInfo)):F(e,r,1,o))):j(e,new E)}function U({stream:e,state:t,count:r,cb:n}){return t.afterWriteTickInfo=null,F(e,t,r,n)}function F(e,t,r,n){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));r-- >0;)t.pendingcb--,n();t.destroyed&&$(t),z(e,t)}function $(e){if(e.writing)return;for(let r=e.bufferedIndex;r<e.buffered.length;++r){var t;const{chunk:n,callback:i}=e.buffered[r],o=e.objectMode?1:n.length;e.length-=o,i(null!==(t=e.errored)&&t!==undefined?t:new S("write"))}const r=e[P].splice(0);for(let t=0;t<r.length;t++){var n;r[t](null!==(n=e.errored)&&n!==undefined?n:new S("end"))}L(e)}function H(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;const{buffered:r,bufferedIndex:n,objectMode:o}=t,s=r.length-n;if(!s)return;let a=n;if(t.bufferProcessing=!0,s>1&&e._writev){t.pendingcb-=s-1;const n=t.allNoop?k:e=>{for(let t=a;t<r.length;++t)r[t].callback(e)},o=t.allNoop&&0===a?r:i(r,a);o.allBuffers=t.allBuffers,N(e,t,!0,t.length,o,"",n),L(t)}else{do{const{chunk:n,encoding:i,callback:s}=r[a];r[a++]=null;N(e,t,!1,o?1:n.length,n,i,s)}while(a<r.length&&!t.writing);a===r.length?L(t):a>256?(r.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}function G(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function V(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let r=!1;function i(i){if(r)j(e,null!==i&&i!==undefined?i:E());else if(r=!0,t.pendingcb--,i){const r=t[P].splice(0);for(let e=0;e<r.length;e++)r[e](i);j(e,i,t.sync)}else G(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,n.nextTick(W,e,t))}t.sync=!0,t.pendingcb++;try{e._final(i)}catch(e){i(e)}t.sync=!1}(e,t)))}function z(e,t,r){G(t)&&(V(e,t),0===t.pendingcb&&(r?(t.pendingcb++,n.nextTick((e,t)=>{G(t)?W(e,t):t.pendingcb--},e,t)):G(t)&&(t.pendingcb++,W(e,t))))}function W(e,t){t.pendingcb--,t.finished=!0;const r=t[P].splice(0);for(let e=0;e<r.length;e++)r[e]();if(e.emit("finish"),t.autoDestroy){const t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}O.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(O.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(C,d,{__proto__:null,value:function(e){return!!s(this,e)||this===C&&(e&&e._writableState instanceof O)}}),C.prototype.pipe=function(){j(this,new T)},C.prototype.write=function(e,t,r){return!0===M(this,e,t,r)},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){const e=this._writableState;e.corked&&(e.corked--,e.writing||H(this,e))},C.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=c(e)),!m.isEncoding(e))throw new R(e);return this._writableState.defaultEncoding=e,this},C.prototype._write=function(e,t,r){if(!this._writev)throw new v("_write()");this._writev([{chunk:e,encoding:t}],r)},C.prototype._writev=null,C.prototype.end=function(e,t,r){const i=this._writableState;let s;if("function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&e!==undefined){const r=M(this,e,t);r instanceof o&&(s=r)}return i.corked&&(i.corked=1,this.uncork()),s||(i.errored||i.ending?i.finished?s=new A("end"):i.destroyed&&(s=new S("end")):(i.ending=!0,z(this,i,!0),i.ended=!0)),"function"==typeof r&&(s||i.finished?n.nextTick(r,s):i[P].push(r)),this},u(C.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){const e=this._writableState;return!(!e||!1===e.writable||e.destroyed||e.errored||e.ending||e.ended)},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;return!!e&&(!e.destroyed&&!e.ending&&e.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const q=b.destroy;let K;function Y(){return K===undefined&&(K={}),K}C.prototype.destroy=function(e,t){const r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[P].length)&&n.nextTick($,r),q.call(this,e,t),this},C.prototype._undestroy=b.undestroy,C.prototype._destroy=function(e,t){t(e)},C.prototype[h.captureRejectionSymbol]=function(e){this.destroy(e)},C.fromWeb=function(e,t){return Y().newStreamWritableFromWritableStream(e,t)},C.toWeb=function(e){return Y().newWritableStreamFromStreamWritable(e)}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/streams/writable.js"}],[7768,{"../ours/errors":7770,"../ours/primordials":7771,"../ours/util":7772},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:o,ArrayPrototypeMap:s,NumberIsInteger:a,NumberIsNaN:u,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:f,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:h,String:p,StringPrototypeToUpperCase:m,StringPrototypeTrim:b}=e("../ours/primordials"),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:_,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:E}}=e("../ours/errors"),{normalizeEncoding:T}=e("../ours/util"),{isAsyncFunction:S,isArrayBufferView:A}=e("../ours/util").types,I={};const x=/^[0-7]+$/;const R=g((e,t,r=c,n=l)=>{if("number"!=typeof e)throw new w(t,"number",e);if(!a(e))throw new v(t,"an integer",e);if(e<r||e>n)throw new v(t,`>= ${r} && <= ${n}`,e)}),j=g((e,t,r=-2147483648,n=2147483647)=>{if("number"!=typeof e)throw new w(t,"number",e);if(!a(e))throw new v(t,"an integer",e);if(e<r||e>n)throw new v(t,`>= ${r} && <= ${n}`,e)}),k=g((e,t,r=!1)=>{if("number"!=typeof e)throw new w(t,"number",e);if(!a(e))throw new v(t,"an integer",e);const n=r?1:0,i=4294967295;if(e<n||e>i)throw new v(t,`>= ${n} && <= ${i}`,e)});function P(e,t){if("string"!=typeof e)throw new w(t,"string",e)}const O=g((e,t,r)=>{if(!i(r,e)){const n=o(s(r,e=>"string"==typeof e?`'${e}'`:p(e)),", ");throw new _(t,e,"must be one of: "+n)}});function L(e,t){if("boolean"!=typeof e)throw new w(t,"boolean",e)}function C(e,t,r){return null!=e&&d(e,t)?e[t]:r}const M=g((e,t,r=null)=>{const i=C(r,"allowArray",!1),o=C(r,"allowFunction",!1);if(!C(r,"nullable",!1)&&null===e||!i&&n(e)||"object"!=typeof e&&(!o||"function"!=typeof e))throw new w(t,"Object",e)}),N=g((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new w(t,"a dictionary",e)}),B=g((e,t,r=0)=>{if(!n(e))throw new w(t,"Array",e);if(e.length<r){throw new _(t,e,`must be longer than ${r}`)}});const D=g((e,t="buffer")=>{if(!A(e))throw new w(t,["Buffer","TypedArray","DataView"],e)});const U=g((e,t)=>{if(e!==undefined&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new w(t,"AbortSignal",e)}),F=g((e,t)=>{if("function"!=typeof e)throw new w(t,"Function",e)}),$=g((e,t)=>{if("function"!=typeof e||S(e))throw new w(t,"Function",e)}),H=g((e,t)=>{if(e!==undefined)throw new w(t,"undefined",e)});const G=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function V(e,t){if(void 0===e||!h(G,e))throw new _(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,r){if(void 0===e&&(e=r),"string"==typeof e){if(null===h(x,e))throw new _(t,e,"must be a 32-bit unsigned integer or an octal string");e=f(e,8)}return k(e,t),e},validateArray:B,validateStringArray:function(e,t){B(e,t);for(let r=0;r<e.length;r++)P(e[r],`${t}[${r}]`)},validateBooleanArray:function(e,t){B(e,t);for(let r=0;r<e.length;r++)L(e[r],`${t}[${r}]`)},validateAbortSignalArray:function(e,t){B(e,t);for(let r=0;r<e.length;r++){const n=e[r],i=`${t}[${r}]`;if(null==n)throw new w(i,"AbortSignal",n);U(n,i)}},validateBoolean:L,validateBuffer:D,validateDictionary:N,validateEncoding:function(e,t){const r=T(t),n=e.length;if("hex"===r&&n%2!=0)throw new _("encoding",t,`is invalid for data of length ${n}`)},validateFunction:F,validateInt32:j,validateInteger:R,validateNumber:function(e,t,r=undefined,n){if("number"!=typeof e)throw new w(t,"number",e);if(null!=r&&e<r||null!=n&&e>n||(null!=r||null!=n)&&u(e))throw new v(t,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,e)},validateObject:M,validateOneOf:O,validatePlainFunction:$,validatePort:function(e,t="Port",r=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===b(e).length||+e!==+e>>>0||e>65535||0===e&&!r)throw new y(t,e,r);return 0|e},validateSignalName:function(e,t="signal"){if(P(e,t),I[e]===undefined){if(I[m(e)]!==undefined)throw new E(e+" (signals must use all capital letters)");throw new E(e)}},validateString:P,validateUint32:k,validateUndefined:H,validateUnion:function(e,t,r){if(!i(r,e))throw new w(t,`('${o(r,"|")}')`,e)},validateAbortSignal:U,validateLinkHeaderValue:function(e){if("string"==typeof e)return V(e,"hints"),e;if(n(e)){const t=e.length;let r="";if(0===t)return r;for(let n=0;n<t;n++){const i=e[n];V(i,"hints"),r+=i,n!==t-1&&(r+=", ")}return r}throw new _("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/internal/validators.js"}],[7769,{"../stream":7774,"../stream/promises":7775},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../stream"),i=e("../stream/promises"),o=n.Readable.destroy;t.exports=n.Readable,t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.destroy=o,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>i}),t.exports.Stream=n.Stream,t.exports.default=t.exports}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/ours/browser.js"}],[777,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getEffectivePriorityFee=r.getUpfrontCost=void 0,r.getUpfrontCost=function(e,t){const r=e.maxPriorityFeePerGas,n=e.maxFeePerGas-t,i=(r<n?r:n)+t;return e.gasLimit*i+e.value},r.getEffectivePriorityFee=function(e,t){if(t===undefined||t>e.maxFeePerGas)throw new Error("Tx cannot pay baseFee");const r=e.maxFeePerGas-t;return e.maxPriorityFeePerGas<r?e.maxPriorityFeePerGas:r}}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/capabilities/eip1559.js"}],[7770,{"./primordials":7771,"./util/inspect":7773},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{format:n,inspect:i}=e("./util/inspect"),{AggregateError:o}=e("./primordials"),s=globalThis.AggregateError||o,a=Symbol("kIsNodeError"),u=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c={};function f(e,t){if(!e)throw new c.ERR_INTERNAL_ASSERTION(t)}function d(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function h(e,t,r){r||(r=Error);class i extends r{constructor(...r){super(function(e,t,r){if("function"==typeof t)return f(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const i=(t.match(/%[dfijoOs]/g)||[]).length;return f(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?t:n(t,...r)}(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[a]=!0,c[e]=i}function p(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}class m extends Error{constructor(e="The operation was aborted",t=undefined){if(t!==undefined&&"object"!=typeof t)throw new c.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}h("ERR_ASSERTION","%s",Error),h("ERR_INVALID_ARG_TYPE",(e,t,r)=>{f("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";const o=[],s=[],a=[];for(const e of t)f("string"==typeof e,"All expected entries have to be of type string"),u.includes(e)?o.push(e.toLowerCase()):l.test(e)?s.push(e):(f("object"!==e,'The value "object" should be written as "Object"'),a.push(e));if(s.length>0){const e=o.indexOf("object");-1!==e&&(o.splice(o,e,1),s.push("Object"))}if(o.length>0){switch(o.length){case 1:n+=`of type ${o[0]}`;break;case 2:n+=`one of type ${o[0]} or ${o[1]}`;break;default:{const e=o.pop();n+=`one of type ${o.join(", ")}, or ${e}`}}(s.length>0||a.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const e=s.pop();n+=`an instance of ${s.join(", ")}, or ${e}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{const e=a.pop();n+=`one of ${a.join(", ")}, or ${e}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var c;if(null!==(c=r.constructor)&&c!==undefined&&c.name)n+=`. Received an instance of ${r.constructor.name}`;else{n+=`. Received ${i(r,{depth:-1})}`}}else{let e=i(r,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),n+=`. Received type ${typeof r} (${e})`}return n},TypeError),h("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=i(t);n.length>128&&(n=n.slice(0,128)+"...");return`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError),h("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var n;return`Expected ${e} to be returned from the "${t}" function but got ${null!==r&&r!==undefined&&null!==(n=r.constructor)&&n!==undefined&&n.name?`instance of ${r.constructor.name}`:"type "+typeof r}.`},TypeError),h("ERR_MISSING_ARGS",(...e)=>{let t;f(e.length>0,"At least one arg needs to be specified");const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(e=>`"${e}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}}return`${t} must be specified`},TypeError),h("ERR_OUT_OF_RANGE",(e,t,r)=>{let n;if(f(t,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>2**32)n=d(String(r));else if("bigint"==typeof r){n=String(r);const e=BigInt(2)**BigInt(32);(r>e||r<-e)&&(n=d(n)),n+="n"}else n=i(r);return`The value of "${e}" is out of range. It must be ${t}. Received ${n}`},RangeError),h("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),h("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),h("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),h("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),h("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),h("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),h("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),h("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),h("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),h("ERR_STREAM_WRITE_AFTER_END","write after end",Error),h("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:m,aggregateTwoErrors:p(function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new s([t,e],t.message);return r.code=t.code,r}return e||t}),hideStackFrames:p,codes:c}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/ours/errors.js"}],[7771,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){class n extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let r=0;r<e.length;r++)t+=`    ${e[r].stack}\n`;super(t),this.name="AggregateError",this.errors=e}}t.exports={AggregateError:n,ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,r)=>e.slice(t,r),Error:Error,FunctionPrototypeCall:(e,t,...r)=>e.call(t,...r),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number:Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,r)=>Object.defineProperty(e,t,r),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise:Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,r)=>e.then(t,r),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String:String,StringPrototypeSlice:(e,t,r)=>e.slice(t,r),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol:Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,r)=>e.set(t,r),Boolean:Boolean,Uint8Array:Uint8Array}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/ours/primordials.js"}],[7772,{"./errors":7770,"./primordials":7771,"./util/inspect":7773,"abort-controller":6207,buffer:6371,events:6680},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("buffer"),{format:i,inspect:o}=e("./util/inspect"),{codes:{ERR_INVALID_ARG_TYPE:s}}=e("./errors"),{kResistStopPropagation:a,AggregateError:u,SymbolDispose:l}=e("./primordials"),c=globalThis.AbortSignal||e("abort-controller").AbortSignal,f=globalThis.AbortController||e("abort-controller").AbortController,d=Object.getPrototypeOf(async function(){}).constructor,h=globalThis.Blob||n.Blob,p=void 0!==h?function(e){return e instanceof h}:function(e){return!1},m=(e,t)=>{if(e!==undefined&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new s(t,"AbortSignal",e)};t.exports={AggregateError:u,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}},promisify:e=>new Promise((t,r)=>{e((e,...n)=>e?r(e):t(...n))}),debuglog:()=>function(){},format:i,inspect:o,types:{isAsyncFunction:e=>e instanceof d,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:p,deprecate:(e,t)=>e,addAbortListener:e("events").addAbortListener||function(e,t){if(e===undefined)throw new s("signal","AbortSignal",e);let r;return m(e,"signal"),((e,t)=>{if("function"!=typeof e)throw new s(t,"Function",e)})(t,"listener"),e.aborted?queueMicrotask(()=>t()):(e.addEventListener("abort",t,{__proto__:null,once:!0,[a]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[l](){var e;null===(e=r)||e===undefined?undefined:e()}}},AbortSignalAny:c.any||function(e){if(1===e.length)return e[0];const t=new f,r=()=>t.abort();return e.forEach(e=>{m(e,"signals"),e.addEventListener("abort",r,{once:!0})}),t.signal.addEventListener("abort",()=>{e.forEach(e=>e.removeEventListener("abort",r))},{once:!0}),t.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/ours/util.js"}],[7773,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={format:(e,...t)=>e.replace(/%([sdifj])/g,function(...[e,r]){const n=t.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"===r&&"object"==typeof n){return`${n.constructor!==Object?n.constructor.name:""} {}`.trim()}return n.toString()}),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}}}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/ours/util/inspect.js"}],[7774,{"./internal/streams/add-abort-signal":7751,"./internal/streams/compose":7753,"./internal/streams/destroy":7754,"./internal/streams/duplex":7755,"./internal/streams/end-of-stream":7757,"./internal/streams/legacy":7759,"./internal/streams/operators":7760,"./internal/streams/passthrough":7761,"./internal/streams/pipeline":7762,"./internal/streams/readable":7763,"./internal/streams/state":7764,"./internal/streams/transform":7765,"./internal/streams/utils":7766,"./internal/streams/writable":7767,"./ours/errors":7770,"./ours/primordials":7771,"./ours/util":7772,"./stream/promises":7775,buffer:6371},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Buffer:n}=e("buffer"),{ObjectDefineProperty:i,ObjectKeys:o,ReflectApply:s}=e("./ours/primordials"),{promisify:{custom:a}}=e("./ours/util"),{streamReturningOperators:u,promiseReturningOperators:l}=e("./internal/streams/operators"),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=e("./ours/errors"),f=e("./internal/streams/compose"),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:h}=e("./internal/streams/state"),{pipeline:p}=e("./internal/streams/pipeline"),{destroyer:m}=e("./internal/streams/destroy"),b=e("./internal/streams/end-of-stream"),g=e("./stream/promises"),y=e("./internal/streams/utils"),w=t.exports=e("./internal/streams/legacy").Stream;w.isDestroyed=y.isDestroyed,w.isDisturbed=y.isDisturbed,w.isErrored=y.isErrored,w.isReadable=y.isReadable,w.isWritable=y.isWritable,w.Readable=e("./internal/streams/readable");for(const v of o(u)){const E=u[v];function T(...e){if(new.target)throw c();return w.Readable.from(s(E,this,e))}i(T,"name",{__proto__:null,value:E.name}),i(T,"length",{__proto__:null,value:E.length}),i(w.Readable.prototype,v,{__proto__:null,value:T,enumerable:!1,configurable:!0,writable:!0})}for(const S of o(l)){const A=l[S];function I(...e){if(new.target)throw c();return s(A,this,e)}i(I,"name",{__proto__:null,value:A.name}),i(I,"length",{__proto__:null,value:A.length}),i(w.Readable.prototype,S,{__proto__:null,value:I,enumerable:!1,configurable:!0,writable:!0})}w.Writable=e("./internal/streams/writable"),w.Duplex=e("./internal/streams/duplex"),w.Transform=e("./internal/streams/transform"),w.PassThrough=e("./internal/streams/passthrough"),w.pipeline=p;const{addAbortSignal:_}=e("./internal/streams/add-abort-signal");w.addAbortSignal=_,w.finished=b,w.destroy=m,w.compose=f,w.setDefaultHighWaterMark=d,w.getDefaultHighWaterMark=h,i(w,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>g}),i(p,a,{__proto__:null,enumerable:!0,get:()=>g.pipeline}),i(b,a,{__proto__:null,enumerable:!0,get:()=>g.finished}),w.Stream=w,w._isUint8Array=function(e){return e instanceof Uint8Array},w._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/stream.js"}],[7775,{"../../lib/stream.js":7774,"../internal/streams/end-of-stream":7757,"../internal/streams/pipeline":7762,"../internal/streams/utils":7766,"../ours/primordials":7771},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{ArrayPrototypePop:n,Promise:i}=e("../ours/primordials"),{isIterable:o,isNodeStream:s,isWebStream:a}=e("../internal/streams/utils"),{pipelineImpl:u}=e("../internal/streams/pipeline"),{finished:l}=e("../internal/streams/end-of-stream");e("../../lib/stream.js"),t.exports={finished:l,pipeline:function(...e){return new i((t,r)=>{let i,l;const c=e[e.length-1];if(c&&"object"==typeof c&&!s(c)&&!o(c)&&!a(c)){const t=n(e);i=t.signal,l=t.end}u(e,(e,n)=>{e?r(e):t(n)},{signal:i,end:l})})}}}}},{package:"readable-stream",file:"node_modules/readable-stream/lib/stream/promises.js"}],[778,{"../util.js":792,"./legacy.js":781,"@ethereumjs/rlp":775,"@ethereumjs/util":809,"ethereum-cryptography/keccak.js":798},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateYParity=r.serialize=r.getHashedMessageToSign=void 0;const n=e("@ethereumjs/rlp"),i=e("@ethereumjs/util"),o=e("ethereum-cryptography/keccak.js"),s=e("../util.js"),a=e("./legacy.js");r.getHashedMessageToSign=function(e){return(e.common.customCrypto.keccak256??o.keccak256)(e.getMessageToSign())},r.serialize=function(e,t){return(0,i.concatBytes)((0,s.txTypeBytes)(e.type),n.RLP.encode(t??e.raw()))},r.validateYParity=function(e){const{v:t}=e;if(t!==undefined&&t!==i.BIGINT_0&&t!==i.BIGINT_1){const t=(0,a.errorMsg)(e,"The y-parity of the transaction should either be 0 or 1");throw new Error(t)}}}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/capabilities/eip2718.js"}],[779,{"../util.js":792,"./legacy.js":781},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getDataFee=void 0;const n=e("../util.js"),i=e("./legacy.js");r.getDataFee=function(e){return i.getDataFee(e,BigInt(n.AccessLists.getDataFeeEIP2930(e.accessList,e.common)))}}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/capabilities/eip2930.js"}],[7792,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(i){return"function"==typeof i?i(r,n,e):t(i)}}}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n();i.withExtraArgument=n;var o=i;r.default=o}}},{package:"redux-thunk",file:"node_modules/redux-thunk/lib/index.js"}],[7793,{"@babel/runtime/helpers/objectSpread2":707},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("@babel/runtime/helpers/objectSpread2"));function o(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var s="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function c(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(o(0));if("function"==typeof t&&void 0===r&&(r=t,t=undefined),void 0!==r){if("function"!=typeof r)throw new Error(o(1));return r(c)(e,t)}if("function"!=typeof e)throw new Error(o(2));var i=e,a=t,f=[],d=f,h=!1;function p(){d===f&&(d=f.slice())}function m(){if(h)throw new Error(o(3));return a}function b(e){if("function"!=typeof e)throw new Error(o(4));if(h)throw new Error(o(5));var t=!0;return p(),d.push(e),function(){if(t){if(h)throw new Error(o(6));t=!1,p();var r=d.indexOf(e);d.splice(r,1),f=null}}}function g(e){if(!l(e))throw new Error(o(7));if(void 0===e.type)throw new Error(o(8));if(h)throw new Error(o(9));try{h=!0,a=i(a,e)}finally{h=!1}for(var t=f=d,r=0;r<t.length;r++){(0,t[r])()}return e}return g({type:u.INIT}),(n={dispatch:g,subscribe:b,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(o(10));i=e,g({type:u.REPLACE})}})[s]=function(){var e,t=b;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(o(11));function r(){e.next&&e.next(m())}return r(),{unsubscribe:t(r)}}})[s]=function(){return this},e},n}var f=c;function d(e,t){return function(){return t(e.apply(this,arguments))}}function h(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}r.__DO_NOT_USE__ActionTypes=u,r.applyMiddleware=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(o(15))},s={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},a=t.map(function(e){return e(s)});return n=h.apply(void 0,a)(r.dispatch),i.default(i.default({},r),{},{dispatch:n})}}},r.bindActionCreators=function(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw new Error(o(16));var r={};for(var n in e){var i=e[n];"function"==typeof i&&(r[n]=d(i,t))}return r},r.combineReducers=function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];0,"function"==typeof e[i]&&(r[i]=e[i])}var s,a=Object.keys(r);try{!function(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(undefined,{type:u.INIT}))throw new Error(o(12));if(void 0===r(undefined,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error(o(13))})}(r)}catch(e){s=e}return function(e,t){if(void 0===e&&(e={}),s)throw s;for(var n=!1,i={},u=0;u<a.length;u++){var l=a[u],c=r[l],f=e[l],d=c(f,t);if(void 0===d){t&&t.type;throw new Error(o(14))}i[l]=d,n=n||d!==f}return(n=n||a.length!==Object.keys(e).length)?i:e}},r.compose=h,r.createStore=c,r.legacy_createStore=f}}},{package:"redux",file:"node_modules/redux/lib/redux.js"}],[780,{"../util.js":792,"./legacy.js":781},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getDataFee=void 0;const n=e("../util.js"),i=e("./legacy.js");r.getDataFee=function(e){const t=BigInt(n.AccessLists.getDataFeeEIP2930(e.accessList,e.common)),r=BigInt(e.authorizationList.length*Number(e.common.param("gasPrices","perAuthBaseCost")));return i.getDataFee(e,t+r)}}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/capabilities/eip7702.js"}],[7800,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,u={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(u,{createSelector:()=>W,createSelectorCreator:()=>z,createStructuredSelector:()=>q,lruMemoize:()=>D,referenceEqualityCheck:()=>N,setGlobalDevModeChecks:()=>c,unstable_autotrackMemoize:()=>U,weakMapMemoize:()=>V}),t.exports=(n=u,((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of s(t))a.call(e,u)||u===r||i(e,u,{get:()=>t[u],enumerable:!(n=o(t,u))||n.enumerable});return e})(i({},"__esModule",{value:!0}),n));var l={inputStabilityCheck:"once",identityFunctionCheck:"once"},c=e=>{Object.assign(l,e)},f=Symbol("NOT_FOUND");function d(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var h=e=>Array.isArray(e)?e:[e];function p(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function m(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var b=0,g=null,y=class{revision=b;_value;_lastValue;_isEqual=w;constructor(e,t=w){this._value=this._lastValue=e,this._isEqual=t}get value(){return g?.add(this),this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++b)}};function w(e,t){return e===t}var _=class{_cachedValue;_cachedRevision=-1;_deps=[];hits=0;fn;constructor(e){this.fn=e}clear(){this._cachedValue=void 0,this._cachedRevision=-1,this._deps=[],this.hits=0}get value(){if(this.revision>this._cachedRevision){const{fn:e}=this,t=new Set,r=g;g=t,this._cachedValue=e(),g=r,this.hits++,this._deps=Array.from(t),this._cachedRevision=this.revision}return g?.add(this),this._cachedValue}get revision(){return Math.max(...this._deps.map(e=>e.revision),0)}};function v(e){return e instanceof y||console.warn("Not a valid cell! ",e),e.value}var E=(e,t)=>!1;function T(){return function(e,t=w){return new y(e,t)}(null,E)}function S(e,t){!function(e,t){if(!(e instanceof y))throw new TypeError("setValue must be passed a tracked store created with `createStorage`.");e.value=e._lastValue=t}(e,t)}var A=e=>{let t=e.collectionTag;null===t&&(t=e.collectionTag=T()),v(t)},I=e=>{const t=e.collectionTag;null!==t&&S(t,null)},x=(Symbol(),0),R=Object.getPrototypeOf({}),j=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy(this,k);tag=T();tags={};children={};collectionTag=null;id=x++},k={get:(e,t)=>function(){const{value:r}=e,n=Reflect.get(r,t);if("symbol"==typeof t)return n;if(t in R)return n;if("object"==typeof n&&null!==n){let r=e.children[t];return void 0===r&&(r=e.children[t]=L(n)),r.tag&&v(r.tag),r.proxy}{let r=e.tags[t];return void 0===r&&(r=e.tags[t]=T(),r.value=n),v(r),n}}(),ownKeys:e=>(A(e),Reflect.ownKeys(e.value)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e.value,t),has:(e,t)=>Reflect.has(e.value,t)},P=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy([this],O);tag=T();tags={};children={};collectionTag=null;id=x++},O={get:([e],t)=>("length"===t&&A(e),k.get(e,t)),ownKeys:([e])=>k.ownKeys(e),getOwnPropertyDescriptor:([e],t)=>k.getOwnPropertyDescriptor(e,t),has:([e],t)=>k.has(e,t)};function L(e){return Array.isArray(e)?new P(e):new j(e)}function C(e,t){const{value:r,tags:n,children:i}=e;if(e.value=t,Array.isArray(r)&&Array.isArray(t)&&r.length!==t.length)I(e);else if(r!==t){let n=0,i=0,o=!1;for(const e in r)n++;for(const e in t)if(i++,!(e in r)){o=!0;break}(o||n!==i)&&I(e)}for(const i in n){const o=r[i],s=t[i];o!==s&&(I(e),S(n[i],s)),"object"==typeof s&&null!==s&&delete n[i]}for(const e in i){const r=i[e],n=t[e];r.value!==n&&("object"==typeof n&&null!==n?C(r,n):(M(r),delete i[e]))}}function M(e){e.tag&&S(e.tag,null),I(e);for(const t in e.tags)S(e.tags[t],null);for(const t in e.children)M(e.children[t])}var N=(e,t)=>e===t;function B(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;const{length:n}=t;for(let i=0;i<n;i++)if(!e(t[i],r[i]))return!1;return!0}}function D(e,t){const r="object"==typeof t?t:{equalityCheck:t},{equalityCheck:n=N,maxSize:i=1,resultEqualityCheck:o}=r,s=B(n);let a=0;const u=i<=1?function(e){let t;return{get:r=>t&&e(t.key,r)?t.value:f,put(e,r){t={key:e,value:r}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(s):function(e,t){let r=[];function n(e){const n=r.findIndex(r=>t(e,r.key));if(n>-1){const e=r[n];return n>0&&(r.splice(n,1),r.unshift(e)),e.value}return f}return{get:n,put:function(t,i){n(t)===f&&(r.unshift({key:t,value:i}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(i,s);function l(){let t=u.get(arguments);if(t===f){if(t=e.apply(null,arguments),a++,o){const e=u.getEntries().find(e=>o(e.value,t));e&&(t=e.value,0!==a&&a--)}u.put(arguments,t)}return t}return l.clearCache=()=>{u.clear(),l.resetResultsCount()},l.resultsCount=()=>a,l.resetResultsCount=()=>{a=0},l}function U(e){const t=L([]);let r=null;const n=B(N),i=(d(o=()=>e.apply(null,t.proxy),"the first parameter to `createCache` must be a function"),new _(o));var o;function s(){return n(r,arguments)||(C(t,arguments),r=arguments),i.value}return s.clearCache=()=>i.clear(),s}var F="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},$=0,H=1;function G(){return{s:$,v:void 0,o:null,p:null}}function V(e,t={}){let r=G();const{resultEqualityCheck:n}=t;let i,o=0;function s(){let t=r;const{length:s}=arguments;for(let e=0,r=s;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const n=e.get(r);void 0===n?(t=G(),e.set(r,t)):t=n}else{let e=t.p;null===e&&(t.p=e=new Map);const n=e.get(r);void 0===n?(t=G(),e.set(r,t)):t=n}}const a=t;let u;if(t.s===H)u=t.v;else if(u=e.apply(null,arguments),o++,n){const e=i?.deref?.()??i;null!=e&&n(e,u)&&(u=e,0!==o&&o--);i="object"==typeof u&&null!==u||"function"==typeof u?new F(u):u}return a.s=H,a.v=u,u}return s.clearCache=()=>{r=G(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function z(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,i=0,o={},s=e.pop();"object"==typeof s&&(o=s,s=e.pop()),d(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const a={...r,...o},{memoize:u,memoizeOptions:l=[],argsMemoize:c=V,argsMemoizeOptions:f=[],devModeChecks:b={}}=a,g=h(l),y=h(f),w=p(e),_=u(function(){return n++,s.apply(null,arguments)},...g);const v=c(function(){i++;const e=m(w,arguments);return t=_.apply(null,e),t},...y);return Object.assign(v,{resultFunc:s,memoizedResultFunc:_,dependencies:w,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:u,argsMemoize:c})};return Object.assign(n,{withTypes:()=>n}),n}var W=z(V),q=Object.assign((e,t=W)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>q})}}},{package:"reselect",file:"node_modules/reselect/dist/cjs/reselect.cjs"}],[7801,{buffer:6371},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){function r(t){return t instanceof e?e.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(e){return(e=e||{}).circles?function(e){var t=[],n=[];return e.proto?function e(o){if("object"!=typeof o||null===o)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return i(o,e);if(o instanceof Map)return new Map(i(Array.from(o),e));if(o instanceof Set)return new Set(i(Array.from(o),e));var s={};for(var a in t.push(o),n.push(s),o){var u=o[a];if("object"!=typeof u||null===u)s[a]=u;else if(u instanceof Date)s[a]=new Date(u);else if(u instanceof Map)s[a]=new Map(i(Array.from(u),e));else if(u instanceof Set)s[a]=new Set(i(Array.from(u),e));else if(ArrayBuffer.isView(u))s[a]=r(u);else{var l=t.indexOf(u);s[a]=-1!==l?n[l]:e(u)}}return t.pop(),n.pop(),s}:function e(o){if("object"!=typeof o||null===o)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return i(o,e);if(o instanceof Map)return new Map(i(Array.from(o),e));if(o instanceof Set)return new Set(i(Array.from(o),e));var s={};for(var a in t.push(o),n.push(s),o)if(!1!==Object.hasOwnProperty.call(o,a)){var u=o[a];if("object"!=typeof u||null===u)s[a]=u;else if(u instanceof Date)s[a]=new Date(u);else if(u instanceof Map)s[a]=new Map(i(Array.from(u),e));else if(u instanceof Set)s[a]=new Set(i(Array.from(u),e));else if(ArrayBuffer.isView(u))s[a]=r(u);else{var l=t.indexOf(u);s[a]=-1!==l?n[l]:e(u)}}return t.pop(),n.pop(),s};function i(e,i){for(var o=Object.keys(e),s=new Array(o.length),a=0;a<o.length;a++){var u=o[a],l=e[u];if("object"!=typeof l||null===l)s[u]=l;else if(l instanceof Date)s[u]=new Date(l);else if(ArrayBuffer.isView(l))s[u]=r(l);else{var c=t.indexOf(l);s[u]=-1!==c?n[c]:i(l)}}return s}}(e):e.proto?function e(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return t(n,e);if(n instanceof Map)return new Map(t(Array.from(n),e));if(n instanceof Set)return new Set(t(Array.from(n),e));var i={};for(var o in n){var s=n[o];"object"!=typeof s||null===s?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),e)):s instanceof Set?i[o]=new Set(t(Array.from(s),e)):ArrayBuffer.isView(s)?i[o]=r(s):i[o]=e(s)}return i}:function e(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return t(n,e);if(n instanceof Map)return new Map(t(Array.from(n),e));if(n instanceof Set)return new Set(t(Array.from(n),e));var i={};for(var o in n)if(!1!==Object.hasOwnProperty.call(n,o)){var s=n[o];"object"!=typeof s||null===s?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),e)):s instanceof Set?i[o]=new Set(t(Array.from(s),e)):ArrayBuffer.isView(s)?i[o]=r(s):i[o]=e(s)}return i};function t(e,t){for(var n=Object.keys(e),i=new Array(n.length),o=0;o<n.length;o++){var s=n[o],a=e[s];"object"!=typeof a||null===a?i[s]=a:a instanceof Date?i[s]=new Date(a):ArrayBuffer.isView(a)?i[s]=r(a):i[s]=t(a)}return i}}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@metamask/snaps-utils>rfdc",file:"node_modules/rfdc/index.js"}],[7803,{buffer:6371,"hash-base":7804,inherits:6975},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("buffer").Buffer,i=e("inherits"),o=e("hash-base"),s=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,r,n,i,o,s,a){return p(e+(t^r^n)+o+s|0,a)+i|0}function b(e,t,r,n,i,o,s,a){return p(e+(t&r|~t&n)+o+s|0,a)+i|0}function g(e,t,r,n,i,o,s,a){return p(e+((t|~r)^n)+o+s|0,a)+i|0}function y(e,t,r,n,i,o,s,a){return p(e+(t&n|r&~n)+o+s|0,a)+i|0}function w(e,t,r,n,i,o,s,a){return p(e+(t^(r|~n))+o+s|0,a)+i|0}i(h,o),h.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,_=0|this._a,v=0|this._b,E=0|this._c,T=0|this._d,S=0|this._e,A=0;A<80;A+=1){var I,x;A<16?(I=m(r,n,i,o,h,e[a[A]],f[0],l[A]),x=w(_,v,E,T,S,e[u[A]],d[0],c[A])):A<32?(I=b(r,n,i,o,h,e[a[A]],f[1],l[A]),x=y(_,v,E,T,S,e[u[A]],d[1],c[A])):A<48?(I=g(r,n,i,o,h,e[a[A]],f[2],l[A]),x=g(_,v,E,T,S,e[u[A]],d[2],c[A])):A<64?(I=y(r,n,i,o,h,e[a[A]],f[3],l[A]),x=b(_,v,E,T,S,e[u[A]],d[3],c[A])):(I=w(r,n,i,o,h,e[a[A]],f[4],l[A]),x=m(_,v,E,T,S,e[u[A]],d[4],c[A])),r=h,h=o,o=p(i,10),i=n,n=I,_=S,S=T,T=p(E,10),E=v,v=x}var R=this._b+i+T|0;this._b=this._c+o+S|0,this._c=this._d+h+_|0,this._d=this._e+r+v|0,this._e=this._a+n+E|0,this._a=R},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=h}}},{package:"ethereumjs-util>create-hash>ripemd160",file:"node_modules/ripemd160/index.js"}],[7804,{inherits:6975,"readable-stream":7819,"safe-buffer":8044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,i=e("readable-stream").Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var s=0,a=8*e.length;a>0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==undefined&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base",file:"node_modules/ripemd160/node_modules/hash-base/index.js"}],[7805,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n={};function i(e,t,r){r||(r=Error);var i=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){var n,i,s,a;if("string"==typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(r===undefined||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(u," ").concat(n," ").concat(o(t,"type"))}return a+=". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/errors-browser.js"}],[7806,{"./_stream_readable":7808,"./_stream_writable":7810,_process:7579,inherits:6975},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=l;var i=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(l,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var u=s[a];l.prototype[u]||(l.prototype[u]=o.prototype[u])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/lib/_stream_duplex.js"}],[7807,{"./_stream_transform":7809,inherits:6975},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=i;var n=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e("inherits")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/lib/_stream_passthrough.js"}],[7808,{"../errors":7805,"./_stream_duplex":7806,"./internal/streams/async_iterator":7811,"./internal/streams/buffer_list":7812,"./internal/streams/destroy":7813,"./internal/streams/from":7815,"./internal/streams/state":7817,"./internal/streams/stream":7818,_process:7579,buffer:6371,events:6680,inherits:6975,"string_decoder/":8157,util:6323},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n;t.exports=S,S.ReadableState=T;e("events").EventEmitter;var i=function(e,t){return e.listeners(t).length},o=e("./internal/streams/stream"),s=e("buffer").Buffer,a=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,l=e("util");u=l&&l.debuglog?l.debuglog("stream"):function(){};var c,f,d,h=e("./internal/streams/buffer_list"),p=e("./internal/streams/destroy"),m=e("./internal/streams/state").getHighWaterMark,b=e("../errors").codes,g=b.ERR_INVALID_ARG_TYPE,y=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,_=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(S,o);var v=p.errorOrDestroy,E=["error","close","destroy","pause","resume"];function T(t,r,i){n=n||e("./_stream_duplex"),t=t||{},"boolean"!=typeof i&&(i=r instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(c||(c=e("string_decoder/").StringDecoder),this.decoder=new c(t.encoding),this.encoding=t.encoding)}function S(t){if(n=n||e("./_stream_duplex"),!(this instanceof S))return new S(t);var r=this instanceof n;this._readableState=new T(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function A(e,t,r,n,i){u("readableAddChunk",t);var o,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,k(e)))}(e,l);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof a||"string"==typeof t||t===undefined||e.objectMode||(r=new g("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(l,t)),o)v(e,o);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)l.endEmitted?v(e,new _):I(e,l,t,!0);else if(l.ended)v(e,new y);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!r?(t=l.decoder.write(t),l.objectMode||0!==t.length?I(e,l,t,!1):P(e,l)):I(e,l,t,!1)}else n||(l.reading=!1,P(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function I(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),P(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),A(this,e,t,!1,r)},S.prototype.unshift=function(e){return A(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){c||(c=e("string_decoder/").StringDecoder);var r=new c(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var x=1073741824;function R(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=x?e=x:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(k,e))}function k(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function P(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(O,e,t))}function O(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(u("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){u("readable nexttick read 0"),e.read(0)}function M(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function D(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}S.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):j(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&D(this),null;var n,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&u("length less than watermark",i=!0),t.ended||t.reading?u("reading or ended",i=!1):i&&(u("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=R(r,t))),null===(n=e>0?B(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&D(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){v(this,new w("_read()"))},S.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,u("pipe count=%d opts=%j",o.pipesCount,t);var s=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:b;function a(t,r){u("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,u("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",a),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",d),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function l(){u("onend"),e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",a);var c=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",c);var f=!1;function d(t){u("ondata");var r=e.write(t);u("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==F(o.pipes,e))&&!f&&(u("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function h(t){u("onerror",t),b(),e.removeListener("error",h),0===i(e,"error")&&v(e,t)}function p(){e.removeListener("finish",m),b()}function m(){u("onfinish"),e.removeListener("close",p),b()}function b(){u("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",m),e.emit("pipe",n),o.flowing||(u("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=F(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},S.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?j(this):i.reading||r.nextTick(C,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(L,this),n},S.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&e!==undefined||r.nextTick(L,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(M,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(u("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&i!==undefined)&&((r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause())))}),e)this[i]===undefined&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<E.length;o++)e.on(E[o],this.emit.bind(this,E[o]));return this._read=function(t){u("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return f===undefined&&(f=e("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=B,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,r){return d===undefined&&(d=e("./internal/streams/from")),d(S,t,r)})}).call(this)}).call(this,e("_process"))}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/lib/_stream_readable.js"}],[7809,{"../errors":7805,"./_stream_duplex":7806,inherits:6975},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=c;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=e("./_stream_duplex");function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}e("inherits")(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/lib/_stream_transform.js"}],[781,{"../baseTransaction.js":776,"../types.js":791,"@ethereumjs/util":809,"ethereum-cryptography/keccak.js":798},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getEffectivePriorityFee=r.getSenderPublicKey=r.validateHighS=r.hash=r.getDataFee=r.isSigned=r.errorMsg=void 0;const n=e("@ethereumjs/util"),i=e("ethereum-cryptography/keccak.js"),o=e("../baseTransaction.js"),s=e("../types.js");function a(e,t){return`${t} (${e.errorStr()})`}function u(e){const{s:t}=e;if(e.common.gteHardfork("homestead")&&t!==undefined&&t>n.SECP256K1_ORDER_DIV_2){const t=a(e,"Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");throw new Error(t)}}r.errorMsg=a,r.isSigned=function(e){const{v:t,r:r,s:n}=e;return t!==undefined&&r!==undefined&&n!==undefined},r.getDataFee=function(e,t){if(e.cache.dataFee&&e.cache.dataFee.hardfork===e.common.hardfork())return e.cache.dataFee.value;const r=o.BaseTransaction.prototype.getDataFee.bind(e)()+(t??0n);return Object.isFrozen(e)&&(e.cache.dataFee={value:r,hardfork:e.common.hardfork()}),r},r.hash=function(e){if(!e.isSigned()){const t=a(e,"Cannot call hash method if transaction is not signed");throw new Error(t)}const t=e.common.customCrypto.keccak256??i.keccak256;return Object.isFrozen(e)?(e.cache.hash||(e.cache.hash=t(e.serialize())),e.cache.hash):t(e.serialize())},r.validateHighS=u,r.getSenderPublicKey=function(e){if(e.cache.senderPubKey!==undefined)return e.cache.senderPubKey;const t=e.getMessageToVerifySignature(),{v:r,r:i,s:o}=e;u(e);try{const a=(e.common.customCrypto.ecrecover??n.ecrecover)(t,r,(0,n.bigIntToUnpaddedBytes)(i),(0,n.bigIntToUnpaddedBytes)(o),e.supports(s.Capability.EIP155ReplayProtection)?e.common.chainId():undefined);return Object.isFrozen(e)&&(e.cache.senderPubKey=a),a}catch(t){const r=a(e,"Invalid Signature");throw new Error(r)}},r.getEffectivePriorityFee=function(e,t){if(t!==undefined&&t>e)throw new Error("Tx cannot pay baseFee");return t===undefined?e:e-t}}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/capabilities/legacy.js"}],[7810,{"../errors":7805,"./_stream_duplex":7806,"./internal/streams/destroy":7813,"./internal/streams/state":7817,"./internal/streams/stream":7818,_process:7579,buffer:6371,inherits:6975,"util-deprecate":8225},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;t.exports=S,S.WritableState=T;var o={deprecate:e("util-deprecate")},s=e("./internal/streams/stream"),a=e("buffer").Buffer,u=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,c=e("./internal/streams/destroy"),f=e("./internal/streams/state").getHighWaterMark,d=e("../errors").codes,h=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,v=c.errorOrDestroy;function E(){}function T(t,o,s){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof s&&(s=o instanceof i),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(k,e,t),e._writableState.errorEmitted=!0,v(e,i)):(o(i),e._writableState.errorEmitted=!0,v(e,i),k(e,t))}(e,n,i,t,o);else{var s=R(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),i?r.nextTick(I,e,n,s,o):I(e,n,s,o)}}(o,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function S(t){var r=this instanceof(i=i||e("./_stream_duplex"));if(!r&&!l.call(S,this))return new S(t);this._writableState=new T(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function A(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function x(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,A(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,f=r.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final(function(r){t.pendingcb--,r&&v(e,r),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var n=R(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}e("inherits")(S,s),T.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(T.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===S&&(e&&e._writableState instanceof T)}})):l=function(e){return e instanceof this},S.prototype.pipe=function(){v(this,new b)},S.prototype.write=function(e,t,n){var i,o=this._writableState,s=!1,l=!o.objectMode&&(i=e,a.isBuffer(i)||i instanceof u);return l&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(n=t,t=null),l?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=E),o.ending?function(e,t){var n=new w;v(e,n),r.nextTick(t,n)}(this,n):(l||function(e,t,n,i){var o;return null===n?o=new y:"string"==typeof n||t.objectMode||(o=new h("chunk",["string","Buffer"],n)),!o||(v(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var u=t.objectMode?1:n.length;t.length+=u;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,u,n,i,o);return l}(this,o,l,e,t,n)),s},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||x(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&e!==undefined&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==undefined&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=c.destroy,S.prototype._undestroy=c.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"))}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/lib/_stream_writable.js"}],[7811,{"./end-of-stream":7814,_process:7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=e("./end-of-stream"),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[c]=null,e[s]=null,e[a]=null,t(h(r,!1)))}}function m(e){r.nextTick(p,e)}var b=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(h(undefined,!0));if(this[d].destroyed)return new Promise(function(t,n){r.nextTick(function(){e[u]?n(e[u]):t(h(undefined,!0))})});var n,i=this[c];if(i)n=new Promise(function(e,t){return function(r,n){e.then(function(){t[l]?r(h(undefined,!0)):t[f](r,n)},n)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[f])}return this[c]=n,n}},Symbol.asyncIterator,function(){return this}),i(n,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){e?r(e):t(h(undefined,!0))})})}),n),b);t.exports=function(e){var t,r=Object.create(g,(i(t={},d,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var n=r[d].read();n?(r[c]=null,r[s]=null,r[a]=null,e(h(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[c]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[c]=null,r[s]=null,r[a]=null,t(e)),void(r[u]=e)}var n=r[s];null!==n&&(r[c]=null,r[s]=null,r[a]=null,n(h(undefined,!0))),r[l]=!0}),e.on("readable",m.bind(null,r)),r}}).call(this)}).call(this,e("_process"))}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/lib/internal/streams/async_iterator.js"}],[7812,{buffer:6371,util:6323},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var u=e("buffer").Buffer,l=e("util").inspect,c=l&&l.custom||"inspect";function f(e,t,r){u.prototype.copy.call(e,t,r)}t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/lib/internal/streams/buffer_list.js"}],[7813,{_process:7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,o){var s=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!o&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(n,s):(s._writableState.errorEmitted=!0,e.nextTick(r,s,t)):e.nextTick(r,s,t):o?(e.nextTick(n,s),o(t)):e.nextTick(n,s)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/lib/internal/streams/destroy.js"}],[7814,{"../../../errors":7805},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||c()},l=t._writableState&&t._writableState.finished,c=function(){a=!1,l=!0,s||o.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){s=!1,f=!0,a||o.call(t)},h=function(e){o.call(t,e)},p=function(){var e;return s&&!f?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!l?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},m=function(){t.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",u),t.on("close",u)):(t.on("complete",c),t.on("abort",p),t.req?m():t.on("request",m)),t.on("end",d),t.on("finish",c),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"}],[7815,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/lib/internal/streams/from-browser.js"}],[7816,{"../../../errors":7805,"./end-of-stream":7814},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;var i=e("../../../errors").codes,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}t.exports=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var c,f=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new o("streams");var d=r.map(function(t,i){var o=i<r.length-1;return function(t,r,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;t.on("close",function(){a=!0}),n===undefined&&(n=e("./end-of-stream")),n(t,{readable:r,writable:i},function(e){if(e)return o(e);a=!0,o()});var u=!1;return function(e){if(!a&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}(t,o,i>0,function(e){c||(c=e),e&&d.forEach(u),o||(d.forEach(u),f(c))})});return r.reduce(l)}}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/lib/internal/streams/pipeline.js"}],[7817,{"../../../errors":7805},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/lib/internal/streams/state.js"}],[7818,{events:6680},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("events").EventEmitter}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/lib/internal/streams/stream-browser.js"}],[7819,{"./lib/_stream_duplex.js":7806,"./lib/_stream_passthrough.js":7807,"./lib/_stream_readable.js":7808,"./lib/_stream_transform.js":7809,"./lib/_stream_writable.js":7810,"./lib/internal/streams/end-of-stream.js":7814,"./lib/internal/streams/pipeline.js":7816},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")}}},{package:"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",file:"node_modules/ripemd160/node_modules/readable-stream/readable-browser.js"}],[782,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BYTES_PER_FIELD_ELEMENT=r.FIELD_ELEMENTS_PER_BLOB=r.MAX_TX_WRAP_KZG_COMMITMENTS=r.LIMIT_BLOBS_PER_TX=r.MAX_VERSIONED_HASHES_LIST_SIZE=r.MAX_ACCESS_LIST_SIZE=r.MAX_CALLDATA_SIZE=void 0,r.MAX_CALLDATA_SIZE=16777216,r.MAX_ACCESS_LIST_SIZE=16777216,r.MAX_VERSIONED_HASHES_LIST_SIZE=16777216,r.LIMIT_BLOBS_PER_TX=6,r.MAX_TX_WRAP_KZG_COMMITMENTS=16777216,r.FIELD_ELEMENTS_PER_BLOB=4096,r.BYTES_PER_FIELD_ELEMENT=32}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/constants.js"}],[7820,{"bn.js":6320,buffer:6371},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}),r.getLength=r.decode=r.encode=void 0;var i=n(e("bn.js"));function o(e,t){if("0"===e[0]&&"0"===e[1])throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function s(e,r){if(e<56)return t.from([e+r]);var n=l(e),i=l(r+55+n.length/2);return t.from(i+n,"hex")}function a(e){var r,n,i,s,u,l=[],c=e[0];if(c<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(c<=183){if(r=c-127,i=128===c?t.from([]):e.slice(1,r),2===r&&i[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:i,remainder:e.slice(r)}}if(c<=191){if(n=c-182,e.length-1<n)throw new Error("invalid RLP: not enough bytes for string length");if((r=o(e.slice(1,n).toString("hex"),16))<=55)throw new Error("invalid RLP: expected string length to be greater than 55");if((i=e.slice(n,r+n)).length<r)throw new Error("invalid RLP: not enough bytes for string");return{data:i,remainder:e.slice(r+n)}}if(c<=247){for(r=c-191,s=e.slice(1,r);s.length;)u=a(s),l.push(u.data),s=u.remainder;return{data:l,remainder:e.slice(r)}}var f=(n=c-246)+(r=o(e.slice(1,n).toString("hex"),16));if(f>e.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(s=e.slice(n,f)).length)throw new Error("invalid rlp, List has a invalid length");for(;s.length;)u=a(s),l.push(u.data),s=u.remainder;return{data:l,remainder:e.slice(f)}}function u(e){return"0x"===e.slice(0,2)}function l(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function c(e){if(!t.isBuffer(e)){if("string"==typeof e)return u(e)?t.from((n="string"!=typeof(o=e)?o:u(o)?o.slice(2):o).length%2?"0"+n:n,"hex"):t.from(e);if("number"==typeof e||"bigint"==typeof e)return e?(r=l(e),t.from(r,"hex")):t.from([]);if(null===e||e===undefined)return t.from([]);if(e instanceof Uint8Array)return t.from(e);if(i.default.isBN(e))return t.from(e.toArray());throw new Error("invalid type")}var r,n,o;return e}r.encode=function e(r){if(Array.isArray(r)){for(var n=[],i=0;i<r.length;i++)n.push(e(r[i]));var o=t.concat(n);return t.concat([s(o.length,192),o])}var a=c(r);return 1===a.length&&a[0]<128?a:t.concat([s(a.length,128),a])},r.decode=function(e,r){if(void 0===r&&(r=!1),!e||0===e.length)return t.from([]);var n=a(c(e));if(r)return n;if(0!==n.remainder.length)throw new Error("invalid remainder");return n.data},r.getLength=function(e){if(!e||0===e.length)return t.from([]);var r=c(e),n=r[0];if(n<=127)return r.length;if(n<=183)return n-127;if(n<=191)return n-182;if(n<=247)return n-191;var i=n-246;return i+o(r.slice(1,i).toString("hex"),16)}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"ethereumjs-util>rlp",file:"node_modules/rlp/dist.browser/index.js"}],[783,{"./baseTransaction.js":776,"./capabilities/eip1559.js":777,"./capabilities/eip2718.js":778,"./capabilities/eip2930.js":779,"./capabilities/legacy.js":781,"./types.js":791,"./util.js":792,"@ethereumjs/rlp":775,"@ethereumjs/util":809},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.FeeMarketEIP1559Transaction=void 0;const n=e("@ethereumjs/rlp"),i=e("@ethereumjs/util"),o=e("./baseTransaction.js"),s=e("./capabilities/eip1559.js"),a=e("./capabilities/eip2718.js"),u=e("./capabilities/eip2930.js"),l=e("./capabilities/legacy.js"),c=e("./types.js"),f=e("./util.js");class d extends o.BaseTransaction{constructor(e,t={}){super({...e,type:c.TransactionType.FeeMarketEIP1559},t);const{chainId:r,accessList:n,maxFeePerGas:s,maxPriorityFeePerGas:u}=e;if(this.common=this._getCommon(t.common,r),this.chainId=this.common.chainId(),!this.common.isActivatedEIP(1559))throw new Error("EIP-1559 not enabled on Common");this.activeCapabilities=this.activeCapabilities.concat([1559,2718,2930]);const d=f.AccessLists.getAccessListData(n??[]);if(this.accessList=d.accessList,this.AccessListJSON=d.AccessListJSON,f.AccessLists.verifyAccessList(this.accessList),this.maxFeePerGas=(0,i.bytesToBigInt)((0,i.toBytes)(s)),this.maxPriorityFeePerGas=(0,i.bytesToBigInt)((0,i.toBytes)(u)),this._validateCannotExceedMaxInteger({maxFeePerGas:this.maxFeePerGas,maxPriorityFeePerGas:this.maxPriorityFeePerGas}),o.BaseTransaction._validateNotArray(e),this.gasLimit*this.maxFeePerGas>i.MAX_INTEGER){const e=this._errorMsg("gasLimit * maxFeePerGas cannot exceed MAX_INTEGER (2^256-1)");throw new Error(e)}if(this.maxFeePerGas<this.maxPriorityFeePerGas){const e=this._errorMsg("maxFeePerGas cannot be less than maxPriorityFeePerGas (The total must be the larger of the two)");throw new Error(e)}a.validateYParity(this),l.validateHighS(this);(t?.freeze??!0)&&Object.freeze(this)}static fromTxData(e,t={}){return new d(e,t)}static fromSerializedTx(e,t={}){if(!1===(0,i.equalsBytes)(e.subarray(0,1),(0,f.txTypeBytes)(c.TransactionType.FeeMarketEIP1559)))throw new Error(`Invalid serialized tx input: not an EIP-1559 transaction (wrong tx type, expected: ${c.TransactionType.FeeMarketEIP1559}, received: ${(0,i.bytesToHex)(e.subarray(0,1))}`);const r=n.RLP.decode(e.subarray(1));if(!Array.isArray(r))throw new Error("Invalid serialized tx input: must be array");return d.fromValuesArray(r,t)}static fromValuesArray(e,t={}){if(9!==e.length&&12!==e.length)throw new Error("Invalid EIP-1559 transaction. Only expecting 9 values (for unsigned tx) or 12 values (for signed tx).");const[r,n,o,s,a,u,l,c,f,h,p,m]=e;return this._validateNotArray({chainId:r,v:h}),(0,i.validateNoLeadingZeroes)({nonce:n,maxPriorityFeePerGas:o,maxFeePerGas:s,gasLimit:a,value:l,v:h,r:p,s:m}),new d({chainId:(0,i.bytesToBigInt)(r),nonce:n,maxPriorityFeePerGas:o,maxFeePerGas:s,gasLimit:a,to:u,value:l,data:c,accessList:f??[],v:h!==undefined?(0,i.bytesToBigInt)(h):undefined,r:p,s:m},t)}getDataFee(){return u.getDataFee(this)}getEffectivePriorityFee(e){return s.getEffectivePriorityFee(this,e)}getUpfrontCost(e=i.BIGINT_0){return s.getUpfrontCost(this,e)}raw(){return[(0,i.bigIntToUnpaddedBytes)(this.chainId),(0,i.bigIntToUnpaddedBytes)(this.nonce),(0,i.bigIntToUnpaddedBytes)(this.maxPriorityFeePerGas),(0,i.bigIntToUnpaddedBytes)(this.maxFeePerGas),(0,i.bigIntToUnpaddedBytes)(this.gasLimit),this.to!==undefined?this.to.bytes:new Uint8Array(0),(0,i.bigIntToUnpaddedBytes)(this.value),this.data,this.accessList,this.v!==undefined?(0,i.bigIntToUnpaddedBytes)(this.v):new Uint8Array(0),this.r!==undefined?(0,i.bigIntToUnpaddedBytes)(this.r):new Uint8Array(0),this.s!==undefined?(0,i.bigIntToUnpaddedBytes)(this.s):new Uint8Array(0)]}serialize(){return a.serialize(this)}getMessageToSign(){return a.serialize(this,this.raw().slice(0,9))}getHashedMessageToSign(){return a.getHashedMessageToSign(this)}hash(){return l.hash(this)}getMessageToVerifySignature(){return this.getHashedMessageToSign()}getSenderPublicKey(){return l.getSenderPublicKey(this)}addSignature(e,t,r,n=!1){t=(0,i.toBytes)(t),r=(0,i.toBytes)(r);const o={...this.txOptions,common:this.common};return d.fromTxData({chainId:this.chainId,nonce:this.nonce,maxPriorityFeePerGas:this.maxPriorityFeePerGas,maxFeePerGas:this.maxFeePerGas,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:n?e-i.BIGINT_27:e,r:(0,i.bytesToBigInt)(t),s:(0,i.bytesToBigInt)(r)},o)}toJSON(){const e=f.AccessLists.getAccessListJSON(this.accessList);return{...super.toJSON(),chainId:(0,i.bigIntToHex)(this.chainId),maxPriorityFeePerGas:(0,i.bigIntToHex)(this.maxPriorityFeePerGas),maxFeePerGas:(0,i.bigIntToHex)(this.maxFeePerGas),accessList:e}}errorStr(){let e=this._getSharedErrorPostfix();return e+=` maxFeePerGas=${this.maxFeePerGas} maxPriorityFeePerGas=${this.maxPriorityFeePerGas}`,e}_errorMsg(e){return l.errorMsg(this,e)}}r.FeeMarketEIP1559Transaction=d}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/eip1559Transaction.js"}],[784,{"./baseTransaction.js":776,"./capabilities/eip2718.js":778,"./capabilities/eip2930.js":779,"./capabilities/legacy.js":781,"./types.js":791,"./util.js":792,"@ethereumjs/rlp":775,"@ethereumjs/util":809},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AccessListEIP2930Transaction=void 0;const n=e("@ethereumjs/rlp"),i=e("@ethereumjs/util"),o=e("./baseTransaction.js"),s=e("./capabilities/eip2718.js"),a=e("./capabilities/eip2930.js"),u=e("./capabilities/legacy.js"),l=e("./types.js"),c=e("./util.js");class f extends o.BaseTransaction{constructor(e,t={}){super({...e,type:l.TransactionType.AccessListEIP2930},t);const{chainId:r,accessList:n,gasPrice:a}=e;if(this.common=this._getCommon(t.common,r),this.chainId=this.common.chainId(),!this.common.isActivatedEIP(2930))throw new Error("EIP-2930 not enabled on Common");this.activeCapabilities=this.activeCapabilities.concat([2718,2930]);const f=c.AccessLists.getAccessListData(n??[]);if(this.accessList=f.accessList,this.AccessListJSON=f.AccessListJSON,c.AccessLists.verifyAccessList(this.accessList),this.gasPrice=(0,i.bytesToBigInt)((0,i.toBytes)(a)),this._validateCannotExceedMaxInteger({gasPrice:this.gasPrice}),o.BaseTransaction._validateNotArray(e),this.gasPrice*this.gasLimit>i.MAX_INTEGER){const e=this._errorMsg("gasLimit * gasPrice cannot exceed MAX_INTEGER");throw new Error(e)}s.validateYParity(this),u.validateHighS(this);(t?.freeze??!0)&&Object.freeze(this)}static fromTxData(e,t={}){return new f(e,t)}static fromSerializedTx(e,t={}){if(!1===(0,i.equalsBytes)(e.subarray(0,1),(0,c.txTypeBytes)(l.TransactionType.AccessListEIP2930)))throw new Error(`Invalid serialized tx input: not an EIP-2930 transaction (wrong tx type, expected: ${l.TransactionType.AccessListEIP2930}, received: ${(0,i.bytesToHex)(e.subarray(0,1))}`);const r=n.RLP.decode(Uint8Array.from(e.subarray(1)));if(!Array.isArray(r))throw new Error("Invalid serialized tx input: must be array");return f.fromValuesArray(r,t)}static fromValuesArray(e,t={}){if(8!==e.length&&11!==e.length)throw new Error("Invalid EIP-2930 transaction. Only expecting 8 values (for unsigned tx) or 11 values (for signed tx).");const[r,n,o,s,a,u,l,c,d,h,p]=e;this._validateNotArray({chainId:r,v:d}),(0,i.validateNoLeadingZeroes)({nonce:n,gasPrice:o,gasLimit:s,value:u,v:d,r:h,s:p});return new f({chainId:(0,i.bytesToBigInt)(r),nonce:n,gasPrice:o,gasLimit:s,to:a,value:u,data:l,accessList:c??[],v:d!==undefined?(0,i.bytesToBigInt)(d):undefined,r:h,s:p},t)}getEffectivePriorityFee(e){return u.getEffectivePriorityFee(this.gasPrice,e)}getDataFee(){return a.getDataFee(this)}getUpfrontCost(){return this.gasLimit*this.gasPrice+this.value}raw(){return[(0,i.bigIntToUnpaddedBytes)(this.chainId),(0,i.bigIntToUnpaddedBytes)(this.nonce),(0,i.bigIntToUnpaddedBytes)(this.gasPrice),(0,i.bigIntToUnpaddedBytes)(this.gasLimit),this.to!==undefined?this.to.bytes:new Uint8Array(0),(0,i.bigIntToUnpaddedBytes)(this.value),this.data,this.accessList,this.v!==undefined?(0,i.bigIntToUnpaddedBytes)(this.v):new Uint8Array(0),this.r!==undefined?(0,i.bigIntToUnpaddedBytes)(this.r):new Uint8Array(0),this.s!==undefined?(0,i.bigIntToUnpaddedBytes)(this.s):new Uint8Array(0)]}serialize(){return s.serialize(this)}getMessageToSign(){return s.serialize(this,this.raw().slice(0,8))}getHashedMessageToSign(){return s.getHashedMessageToSign(this)}hash(){return u.hash(this)}getMessageToVerifySignature(){return this.getHashedMessageToSign()}getSenderPublicKey(){return u.getSenderPublicKey(this)}addSignature(e,t,r,n=!1){t=(0,i.toBytes)(t),r=(0,i.toBytes)(r);const o={...this.txOptions,common:this.common};return f.fromTxData({chainId:this.chainId,nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:n?e-i.BIGINT_27:e,r:(0,i.bytesToBigInt)(t),s:(0,i.bytesToBigInt)(r)},o)}toJSON(){const e=c.AccessLists.getAccessListJSON(this.accessList);return{...super.toJSON(),chainId:(0,i.bigIntToHex)(this.chainId),gasPrice:(0,i.bigIntToHex)(this.gasPrice),accessList:e}}errorStr(){let e=this._getSharedErrorPostfix();return e+=` gasPrice=${this.gasPrice} accessListCount=${this.accessList?.length??0}`,e}_errorMsg(e){return u.errorMsg(this,e)}}r.AccessListEIP2930Transaction=f}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/eip2930Transaction.js"}],[785,{"./baseTransaction.js":776,"./capabilities/eip1559.js":777,"./capabilities/eip2718.js":778,"./capabilities/eip2930.js":779,"./capabilities/legacy.js":781,"./constants.js":782,"./types.js":791,"./util.js":792,"@ethereumjs/rlp":775,"@ethereumjs/util":809},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BlobEIP4844Transaction=void 0;const n=e("@ethereumjs/rlp"),i=e("@ethereumjs/util"),o=e("./baseTransaction.js"),s=e("./capabilities/eip1559.js"),a=e("./capabilities/eip2718.js"),u=e("./capabilities/eip2930.js"),l=e("./capabilities/legacy.js"),c=e("./constants.js"),f=e("./types.js"),d=e("./util.js");class h extends o.BaseTransaction{constructor(e,t={}){super({...e,type:f.TransactionType.BlobEIP4844},t);const{chainId:r,accessList:n,maxFeePerGas:s,maxPriorityFeePerGas:u,maxFeePerBlobGas:h}=e;if(this.common=this._getCommon(t.common,r),this.chainId=this.common.chainId(),!this.common.isActivatedEIP(1559))throw new Error("EIP-1559 not enabled on Common");if(!this.common.isActivatedEIP(4844))throw new Error("EIP-4844 not enabled on Common");this.activeCapabilities=this.activeCapabilities.concat([1559,2718,2930]);const p=d.AccessLists.getAccessListData(n??[]);if(this.accessList=p.accessList,this.AccessListJSON=p.AccessListJSON,d.AccessLists.verifyAccessList(this.accessList),this.maxFeePerGas=(0,i.bytesToBigInt)((0,i.toBytes)(s)),this.maxPriorityFeePerGas=(0,i.bytesToBigInt)((0,i.toBytes)(u)),this._validateCannotExceedMaxInteger({maxFeePerGas:this.maxFeePerGas,maxPriorityFeePerGas:this.maxPriorityFeePerGas}),o.BaseTransaction._validateNotArray(e),this.gasLimit*this.maxFeePerGas>i.MAX_INTEGER){const e=this._errorMsg("gasLimit * maxFeePerGas cannot exceed MAX_INTEGER (2^256-1)");throw new Error(e)}if(this.maxFeePerGas<this.maxPriorityFeePerGas){const e=this._errorMsg("maxFeePerGas cannot be less than maxPriorityFeePerGas (The total must be the larger of the two)");throw new Error(e)}this.maxFeePerBlobGas=(0,i.bytesToBigInt)((0,i.toBytes)(""===(h??"")?"0x":h)),this.blobVersionedHashes=(e.blobVersionedHashes??[]).map(e=>(0,i.toBytes)(e)),a.validateYParity(this),l.validateHighS(this);for(const e of this.blobVersionedHashes){if(32!==e.length){const e=this._errorMsg("versioned hash is invalid length");throw new Error(e)}if(BigInt(e[0])!==this.common.param("sharding","blobCommitmentVersionKzg")){const e=this._errorMsg("versioned hash does not start with KZG commitment version");throw new Error(e)}}if(this.blobVersionedHashes.length>c.LIMIT_BLOBS_PER_TX){const e=this._errorMsg(`tx can contain at most ${c.LIMIT_BLOBS_PER_TX} blobs`);throw new Error(e)}if(0===this.blobVersionedHashes.length){const e=this._errorMsg("tx should contain at least one blob");throw new Error(e)}if(this.to===undefined){const e=this._errorMsg('tx should have a "to" field and cannot be used to create contracts');throw new Error(e)}this.blobs=e.blobs?.map(e=>(0,i.toBytes)(e)),this.kzgCommitments=e.kzgCommitments?.map(e=>(0,i.toBytes)(e)),this.kzgProofs=e.kzgProofs?.map(e=>(0,i.toBytes)(e));(t?.freeze??!0)&&Object.freeze(this)}static fromTxData(e,t){if(t?.common?.customCrypto?.kzg===undefined)throw new Error("A common object with customCrypto.kzg initialized required to instantiate a 4844 blob tx");const r=t.common.customCrypto.kzg;if(e.blobsData!==undefined){if(e.blobs!==undefined)throw new Error("cannot have both raw blobs data and encoded blobs in constructor");if(e.kzgCommitments!==undefined)throw new Error("cannot have both raw blobs data and KZG commitments in constructor");if(e.blobVersionedHashes!==undefined)throw new Error("cannot have both raw blobs data and versioned hashes in constructor");if(e.kzgProofs!==undefined)throw new Error("cannot have both raw blobs data and KZG proofs in constructor");e.blobs=(0,i.getBlobs)(e.blobsData.reduce((e,t)=>e+t)),e.kzgCommitments=(0,i.blobsToCommitments)(r,e.blobs),e.blobVersionedHashes=(0,i.commitmentsToVersionedHashes)(e.kzgCommitments),e.kzgProofs=(0,i.blobsToProofs)(r,e.blobs,e.kzgCommitments)}return new h(e,t)}getEffectivePriorityFee(e){return s.getEffectivePriorityFee(this,e)}static minimalFromNetworkWrapper(e,t){if(t?.common?.customCrypto?.kzg===undefined)throw new Error("A common object with customCrypto.kzg initialized required to instantiate a 4844 blob tx");return h.fromTxData({...e,blobs:undefined,kzgCommitments:undefined,kzgProofs:undefined},t)}static fromSerializedTx(e,t={}){if(t.common?.customCrypto?.kzg===undefined)throw new Error("A common object with customCrypto.kzg initialized required to instantiate a 4844 blob tx");if(!1===(0,i.equalsBytes)(e.subarray(0,1),(0,d.txTypeBytes)(f.TransactionType.BlobEIP4844)))throw new Error(`Invalid serialized tx input: not an EIP-4844 transaction (wrong tx type, expected: ${f.TransactionType.BlobEIP4844}, received: ${(0,i.bytesToHex)(e.subarray(0,1))}`);const r=n.RLP.decode(e.subarray(1));if(!Array.isArray(r))throw new Error("Invalid serialized tx input: must be array");return h.fromValuesArray(r,t)}static fromValuesArray(e,t={}){if(t.common?.customCrypto?.kzg===undefined)throw new Error("A common object with customCrypto.kzg initialized required to instantiate a 4844 blob tx");if(11!==e.length&&14!==e.length)throw new Error("Invalid EIP-4844 transaction. Only expecting 11 values (for unsigned tx) or 14 values (for signed tx).");const[r,n,o,s,a,u,l,c,f,d,p,m,b,g]=e;return this._validateNotArray({chainId:r,v:m}),(0,i.validateNoLeadingZeroes)({nonce:n,maxPriorityFeePerGas:o,maxFeePerGas:s,gasLimit:a,value:l,maxFeePerBlobGas:d,v:m,r:b,s:g}),new h({chainId:(0,i.bytesToBigInt)(r),nonce:n,maxPriorityFeePerGas:o,maxFeePerGas:s,gasLimit:a,to:u,value:l,data:c,accessList:f??[],maxFeePerBlobGas:d,blobVersionedHashes:p,v:m!==undefined?(0,i.bytesToBigInt)(m):undefined,r:b,s:g},t)}static fromSerializedBlobTxNetworkWrapper(e,t){if(!t||!t.common)throw new Error("common instance required to validate versioned hashes");if(t.common?.customCrypto?.kzg===undefined)throw new Error("A common object with customCrypto.kzg initialized required to instantiate a 4844 blob tx");if(!1===(0,i.equalsBytes)(e.subarray(0,1),(0,d.txTypeBytes)(f.TransactionType.BlobEIP4844)))throw new Error(`Invalid serialized tx input: not an EIP-4844 transaction (wrong tx type, expected: ${f.TransactionType.BlobEIP4844}, received: ${(0,i.bytesToHex)(e.subarray(0,1))}`);const r=n.RLP.decode(e.subarray(1));if(4!==r.length)throw Error("Expected 4 values in the deserialized network transaction");const[o,s,a,u]=r,l=h.fromValuesArray(o,{...t,freeze:!1});if(l.to===undefined)throw Error("BlobEIP4844Transaction can not be send without a valid `to`");const c=Number(t.common.param("sharding","blobCommitmentVersionKzg"));((e,t,r,n,o,s)=>{if(e.length!==t.length||t.length!==r.length)throw new Error("Number of blobVersionedHashes, blobs, and commitments not all equal");if(0===e.length)throw new Error("Invalid transaction with empty blobs");let a;try{a=s.verifyBlobKzgProofBatch(t,r,n)}catch(e){throw new Error(`KZG verification of blobs fail with error=${e}`)}if(!a)throw new Error("KZG proof cannot be verified from blobs/commitments");for(let t=0;t<e.length;t++){const n=(0,i.computeVersionedHash)(r[t],o);if(!(0,i.equalsBytes)(n,e[t]))throw new Error(`commitment for blob at index ${t} does not match versionedHash`)}})(l.blobVersionedHashes,s,a,u,c,t.common.customCrypto.kzg),l.blobs=s,l.kzgCommitments=a,l.kzgProofs=u;return(t?.freeze??!0)&&Object.freeze(l),l}getDataFee(){return u.getDataFee(this)}getUpfrontCost(e=i.BIGINT_0){return s.getUpfrontCost(this,e)}raw(){return[(0,i.bigIntToUnpaddedBytes)(this.chainId),(0,i.bigIntToUnpaddedBytes)(this.nonce),(0,i.bigIntToUnpaddedBytes)(this.maxPriorityFeePerGas),(0,i.bigIntToUnpaddedBytes)(this.maxFeePerGas),(0,i.bigIntToUnpaddedBytes)(this.gasLimit),this.to!==undefined?this.to.bytes:new Uint8Array(0),(0,i.bigIntToUnpaddedBytes)(this.value),this.data,this.accessList,(0,i.bigIntToUnpaddedBytes)(this.maxFeePerBlobGas),this.blobVersionedHashes,this.v!==undefined?(0,i.bigIntToUnpaddedBytes)(this.v):new Uint8Array(0),this.r!==undefined?(0,i.bigIntToUnpaddedBytes)(this.r):new Uint8Array(0),this.s!==undefined?(0,i.bigIntToUnpaddedBytes)(this.s):new Uint8Array(0)]}serialize(){return a.serialize(this)}serializeNetworkWrapper(){if(this.blobs===undefined||this.kzgCommitments===undefined||this.kzgProofs===undefined)throw new Error("cannot serialize network wrapper without blobs, KZG commitments and KZG proofs provided");return a.serialize(this,[this.raw(),this.blobs,this.kzgCommitments,this.kzgProofs])}getMessageToSign(){return a.serialize(this,this.raw().slice(0,11))}getHashedMessageToSign(){return a.getHashedMessageToSign(this)}hash(){return l.hash(this)}getMessageToVerifySignature(){return this.getHashedMessageToSign()}getSenderPublicKey(){return l.getSenderPublicKey(this)}static networkWrapperToJson(e,t){const r=this.fromSerializedBlobTxNetworkWrapper(e,t),n=d.AccessLists.getAccessListJSON(r.accessList);return{...r.toJSON(),chainId:(0,i.bigIntToHex)(r.chainId),maxPriorityFeePerGas:(0,i.bigIntToHex)(r.maxPriorityFeePerGas),maxFeePerGas:(0,i.bigIntToHex)(r.maxFeePerGas),accessList:n,maxFeePerBlobGas:(0,i.bigIntToHex)(r.maxFeePerBlobGas),blobVersionedHashes:r.blobVersionedHashes.map(e=>(0,i.bytesToHex)(e)),blobs:r.blobs.map(e=>(0,i.bytesToHex)(e)),kzgCommitments:r.kzgCommitments.map(e=>(0,i.bytesToHex)(e)),kzgProofs:r.kzgProofs.map(e=>(0,i.bytesToHex)(e))}}toJSON(){const e=d.AccessLists.getAccessListJSON(this.accessList);return{...super.toJSON(),chainId:(0,i.bigIntToHex)(this.chainId),maxPriorityFeePerGas:(0,i.bigIntToHex)(this.maxPriorityFeePerGas),maxFeePerGas:(0,i.bigIntToHex)(this.maxFeePerGas),accessList:e,maxFeePerBlobGas:(0,i.bigIntToHex)(this.maxFeePerBlobGas),blobVersionedHashes:this.blobVersionedHashes.map(e=>(0,i.bytesToHex)(e))}}addSignature(e,t,r,n=!1){t=(0,i.toBytes)(t),r=(0,i.toBytes)(r);const o={...this.txOptions,common:this.common};return h.fromTxData({chainId:this.chainId,nonce:this.nonce,maxPriorityFeePerGas:this.maxPriorityFeePerGas,maxFeePerGas:this.maxFeePerGas,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:n?e-i.BIGINT_27:e,r:(0,i.bytesToBigInt)(t),s:(0,i.bytesToBigInt)(r),maxFeePerBlobGas:this.maxFeePerBlobGas,blobVersionedHashes:this.blobVersionedHashes,blobs:this.blobs,kzgCommitments:this.kzgCommitments,kzgProofs:this.kzgProofs},o)}errorStr(){let e=this._getSharedErrorPostfix();return e+=` maxFeePerGas=${this.maxFeePerGas} maxPriorityFeePerGas=${this.maxPriorityFeePerGas}`,e}_errorMsg(e){return l.errorMsg(this,e)}numBlobs(){return this.blobVersionedHashes.length}}r.BlobEIP4844Transaction=h}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/eip4844Transaction.js"}],[786,{"./baseTransaction.js":776,"./capabilities/eip1559.js":777,"./capabilities/eip2718.js":778,"./capabilities/eip7702.js":780,"./capabilities/legacy.js":781,"./types.js":791,"./util.js":792,"@ethereumjs/rlp":775,"@ethereumjs/util":809},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EOACodeEIP7702Transaction=void 0;const n=e("@ethereumjs/rlp"),i=e("@ethereumjs/util"),o=e("./baseTransaction.js"),s=e("./capabilities/eip1559.js"),a=e("./capabilities/eip2718.js"),u=e("./capabilities/eip7702.js"),l=e("./capabilities/legacy.js"),c=e("./types.js"),f=e("./util.js");class d extends o.BaseTransaction{constructor(e,t={}){super({...e,type:c.TransactionType.EOACodeEIP7702},t);const{chainId:r,accessList:n,authorizationList:s,maxFeePerGas:u,maxPriorityFeePerGas:d}=e;if(this.common=this._getCommon(t.common,r),this.chainId=this.common.chainId(),!this.common.isActivatedEIP(7702))throw new Error("EIP-7702 not enabled on Common");this.activeCapabilities=this.activeCapabilities.concat([1559,2718,2930,7702]);const h=f.AccessLists.getAccessListData(n??[]);this.accessList=h.accessList,this.AccessListJSON=h.AccessListJSON,f.AccessLists.verifyAccessList(this.accessList);const p=f.AuthorizationLists.getAuthorizationListData(s??[]);if(this.authorizationList=p.authorizationList,this.AuthorizationListJSON=p.AuthorizationListJSON,f.AuthorizationLists.verifyAuthorizationList(this.authorizationList),this.maxFeePerGas=(0,i.bytesToBigInt)((0,i.toBytes)(u)),this.maxPriorityFeePerGas=(0,i.bytesToBigInt)((0,i.toBytes)(d)),this._validateCannotExceedMaxInteger({maxFeePerGas:this.maxFeePerGas,maxPriorityFeePerGas:this.maxPriorityFeePerGas}),o.BaseTransaction._validateNotArray(e),this.gasLimit*this.maxFeePerGas>i.MAX_INTEGER){const e=this._errorMsg("gasLimit * maxFeePerGas cannot exceed MAX_INTEGER (2^256-1)");throw new Error(e)}if(this.maxFeePerGas<this.maxPriorityFeePerGas){const e=this._errorMsg("maxFeePerGas cannot be less than maxPriorityFeePerGas (The total must be the larger of the two)");throw new Error(e)}a.validateYParity(this),l.validateHighS(this);(t?.freeze??!0)&&Object.freeze(this)}static fromTxData(e,t={}){return new d(e,t)}static fromSerializedTx(e,t={}){if(!1===(0,i.equalsBytes)(e.subarray(0,1),(0,f.txTypeBytes)(c.TransactionType.EOACodeEIP7702)))throw new Error(`Invalid serialized tx input: not an EIP-7702 transaction (wrong tx type, expected: ${c.TransactionType.EOACodeEIP7702}, received: ${(0,i.bytesToHex)(e.subarray(0,1))}`);const r=n.RLP.decode(e.subarray(1));if(!Array.isArray(r))throw new Error("Invalid serialized tx input: must be array");return d.fromValuesArray(r,t)}static fromValuesArray(e,t={}){if(10!==e.length&&13!==e.length)throw new Error("Invalid EIP-7702 transaction. Only expecting 10 values (for unsigned tx) or 13 values (for signed tx).");const[r,n,o,s,a,u,l,c,f,h,p,m,b]=e;return this._validateNotArray({chainId:r,v:p}),(0,i.validateNoLeadingZeroes)({nonce:n,maxPriorityFeePerGas:o,maxFeePerGas:s,gasLimit:a,value:l,v:p,r:m,s:b}),new d({chainId:(0,i.bytesToBigInt)(r),nonce:n,maxPriorityFeePerGas:o,maxFeePerGas:s,gasLimit:a,to:u,value:l,data:c,accessList:f??[],authorizationList:h??[],v:p!==undefined?(0,i.bytesToBigInt)(p):undefined,r:m,s:b},t)}getDataFee(){return u.getDataFee(this)}getEffectivePriorityFee(e){return s.getEffectivePriorityFee(this,e)}getUpfrontCost(e=i.BIGINT_0){return s.getUpfrontCost(this,e)}raw(){return[(0,i.bigIntToUnpaddedBytes)(this.chainId),(0,i.bigIntToUnpaddedBytes)(this.nonce),(0,i.bigIntToUnpaddedBytes)(this.maxPriorityFeePerGas),(0,i.bigIntToUnpaddedBytes)(this.maxFeePerGas),(0,i.bigIntToUnpaddedBytes)(this.gasLimit),this.to!==undefined?this.to.bytes:new Uint8Array(0),(0,i.bigIntToUnpaddedBytes)(this.value),this.data,this.accessList,this.authorizationList,this.v!==undefined?(0,i.bigIntToUnpaddedBytes)(this.v):new Uint8Array(0),this.r!==undefined?(0,i.bigIntToUnpaddedBytes)(this.r):new Uint8Array(0),this.s!==undefined?(0,i.bigIntToUnpaddedBytes)(this.s):new Uint8Array(0)]}serialize(){return a.serialize(this)}getMessageToSign(){return a.serialize(this,this.raw().slice(0,10))}getHashedMessageToSign(){return a.getHashedMessageToSign(this)}hash(){return l.hash(this)}getMessageToVerifySignature(){return this.getHashedMessageToSign()}getSenderPublicKey(){return l.getSenderPublicKey(this)}addSignature(e,t,r,n=!1){t=(0,i.toBytes)(t),r=(0,i.toBytes)(r);const o={...this.txOptions,common:this.common};return d.fromTxData({chainId:this.chainId,nonce:this.nonce,maxPriorityFeePerGas:this.maxPriorityFeePerGas,maxFeePerGas:this.maxFeePerGas,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,authorizationList:this.authorizationList,v:n?e-i.BIGINT_27:e,r:(0,i.bytesToBigInt)(t),s:(0,i.bytesToBigInt)(r)},o)}toJSON(){const e=f.AccessLists.getAccessListJSON(this.accessList);return{...super.toJSON(),chainId:(0,i.bigIntToHex)(this.chainId),maxPriorityFeePerGas:(0,i.bigIntToHex)(this.maxPriorityFeePerGas),maxFeePerGas:(0,i.bigIntToHex)(this.maxFeePerGas),accessList:e,authorizationList:this.AuthorizationListJSON}}errorStr(){let e=this._getSharedErrorPostfix();return e+=` maxFeePerGas=${this.maxFeePerGas} maxPriorityFeePerGas=${this.maxPriorityFeePerGas}`,e}_errorMsg(e){return l.errorMsg(this,e)}}r.EOACodeEIP7702Transaction=d}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/eip7702Transaction.js"}],[787,{"@ethereumjs/util":809},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.normalizeTxParams=void 0;const n=e("@ethereumjs/util");r.normalizeTxParams=e=>{const t=Object.assign({},e);return t.gasLimit=(0,n.toType)(t.gasLimit??t.gas,n.TypeOutput.BigInt),t.data=t.data===undefined?t.input:t.data,t.gasPrice=t.gasPrice!==undefined?BigInt(t.gasPrice):undefined,t.value=t.value!==undefined?BigInt(t.value):undefined,t.to=null!==t.to&&t.to!==undefined?(0,n.setLengthLeft)((0,n.toBytes)(t.to),20):null,t.v="0x0"===t.v?"0x":t.v,t.r="0x0"===t.r?"0x":t.r,t.s="0x0"===t.s?"0x":t.s,"0x"===t.v&&"0x"===t.r&&"0x"===t.s||(t.v=(0,n.toType)(t.v,n.TypeOutput.BigInt)),t}}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/fromRpc.js"}],[788,{"./eip1559Transaction.js":783,"./eip2930Transaction.js":784,"./eip4844Transaction.js":785,"./eip7702Transaction.js":786,"./legacyTransaction.js":789,"./transactionFactory.js":790,"./types.js":791},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 i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.TransactionFactory=r.LegacyTransaction=r.EOACodeEIP7702Transaction=r.BlobEIP4844Transaction=r.AccessListEIP2930Transaction=r.FeeMarketEIP1559Transaction=void 0;var o=e("./eip1559Transaction.js");Object.defineProperty(r,"FeeMarketEIP1559Transaction",{enumerable:!0,get:function(){return o.FeeMarketEIP1559Transaction}});var s=e("./eip2930Transaction.js");Object.defineProperty(r,"AccessListEIP2930Transaction",{enumerable:!0,get:function(){return s.AccessListEIP2930Transaction}});var a=e("./eip4844Transaction.js");Object.defineProperty(r,"BlobEIP4844Transaction",{enumerable:!0,get:function(){return a.BlobEIP4844Transaction}});var u=e("./eip7702Transaction.js");Object.defineProperty(r,"EOACodeEIP7702Transaction",{enumerable:!0,get:function(){return u.EOACodeEIP7702Transaction}});var l=e("./legacyTransaction.js");Object.defineProperty(r,"LegacyTransaction",{enumerable:!0,get:function(){return l.LegacyTransaction}});var c=e("./transactionFactory.js");Object.defineProperty(r,"TransactionFactory",{enumerable:!0,get:function(){return c.TransactionFactory}}),i(e("./types.js"),r)}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/index.js"}],[789,{"./baseTransaction.js":776,"./capabilities/legacy.js":781,"./types.js":791,"@ethereumjs/rlp":775,"@ethereumjs/util":809,"ethereum-cryptography/keccak.js":798},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.LegacyTransaction=void 0;const n=e("@ethereumjs/rlp"),i=e("@ethereumjs/util"),o=e("ethereum-cryptography/keccak.js"),s=e("./baseTransaction.js"),a=e("./capabilities/legacy.js"),u=e("./types.js");function l(e,t){const r=Number(e),n=2*Number(t);return r===n+35||r===n+36}class c extends s.BaseTransaction{constructor(e,t={}){if(super({...e,type:u.TransactionType.Legacy},t),this.common=this._validateTxV(this.v,t.common),this.keccakFunction=this.common.customCrypto.keccak256??o.keccak256,this.gasPrice=(0,i.bytesToBigInt)((0,i.toBytes)(e.gasPrice)),this.gasPrice*this.gasLimit>i.MAX_INTEGER){const e=this._errorMsg("gas limit * gasPrice cannot exceed MAX_INTEGER (2^256-1)");throw new Error(e)}this._validateCannotExceedMaxInteger({gasPrice:this.gasPrice}),s.BaseTransaction._validateNotArray(e),this.common.gteHardfork("spuriousDragon")&&(this.isSigned()?l(this.v,this.common.chainId())&&this.activeCapabilities.push(u.Capability.EIP155ReplayProtection):this.activeCapabilities.push(u.Capability.EIP155ReplayProtection));(t?.freeze??!0)&&Object.freeze(this)}static fromTxData(e,t={}){return new c(e,t)}static fromSerializedTx(e,t={}){const r=n.RLP.decode(e);if(!Array.isArray(r))throw new Error("Invalid serialized tx input. Must be array");return this.fromValuesArray(r,t)}static fromValuesArray(e,t={}){if(6!==e.length&&9!==e.length)throw new Error("Invalid transaction. Only expecting 6 values (for unsigned tx) or 9 values (for signed tx).");const[r,n,o,s,a,u,l,f,d]=e;return(0,i.validateNoLeadingZeroes)({nonce:r,gasPrice:n,gasLimit:o,value:a,v:l,r:f,s:d}),new c({nonce:r,gasPrice:n,gasLimit:o,to:s,value:a,data:u,v:l,r:f,s:d},t)}getEffectivePriorityFee(e){return a.getEffectivePriorityFee(this.gasPrice,e)}raw(){return[(0,i.bigIntToUnpaddedBytes)(this.nonce),(0,i.bigIntToUnpaddedBytes)(this.gasPrice),(0,i.bigIntToUnpaddedBytes)(this.gasLimit),this.to!==undefined?this.to.bytes:new Uint8Array(0),(0,i.bigIntToUnpaddedBytes)(this.value),this.data,this.v!==undefined?(0,i.bigIntToUnpaddedBytes)(this.v):new Uint8Array(0),this.r!==undefined?(0,i.bigIntToUnpaddedBytes)(this.r):new Uint8Array(0),this.s!==undefined?(0,i.bigIntToUnpaddedBytes)(this.s):new Uint8Array(0)]}serialize(){return n.RLP.encode(this.raw())}getMessageToSign(){const e=[(0,i.bigIntToUnpaddedBytes)(this.nonce),(0,i.bigIntToUnpaddedBytes)(this.gasPrice),(0,i.bigIntToUnpaddedBytes)(this.gasLimit),this.to!==undefined?this.to.bytes:new Uint8Array(0),(0,i.bigIntToUnpaddedBytes)(this.value),this.data];return this.supports(u.Capability.EIP155ReplayProtection)&&(e.push((0,i.bigIntToUnpaddedBytes)(this.common.chainId())),e.push((0,i.unpadBytes)((0,i.toBytes)(0))),e.push((0,i.unpadBytes)((0,i.toBytes)(0)))),e}getHashedMessageToSign(){const e=this.getMessageToSign();return this.keccakFunction(n.RLP.encode(e))}getDataFee(){return a.getDataFee(this)}getUpfrontCost(){return this.gasLimit*this.gasPrice+this.value}hash(){return a.hash(this)}getMessageToVerifySignature(){if(!this.isSigned()){const e=this._errorMsg("This transaction is not signed");throw new Error(e)}return this.getHashedMessageToSign()}getSenderPublicKey(){return a.getSenderPublicKey(this)}addSignature(e,t,r,n=!1){t=(0,i.toBytes)(t),r=(0,i.toBytes)(r),n&&this.supports(u.Capability.EIP155ReplayProtection)&&(e+=this.common.chainId()*i.BIGINT_2+i.BIGINT_8);const o={...this.txOptions,common:this.common};return c.fromTxData({nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,v:e,r:(0,i.bytesToBigInt)(t),s:(0,i.bytesToBigInt)(r)},o)}toJSON(){return{...super.toJSON(),gasPrice:(0,i.bigIntToHex)(this.gasPrice)}}_validateTxV(e,t){let r;const n=e!==undefined?Number(e):undefined;if(n!==undefined&&n<37&&27!==n&&28!==n)throw new Error(`Legacy txs need either v = 27/28 or v >= 37 (EIP-155 replay protection), got v = ${n}`);if(n!==undefined&&0!==n&&(!t||t.gteHardfork("spuriousDragon"))&&27!==n&&28!==n)if(t){if(!l(BigInt(n),t.chainId()))throw new Error(`Incompatible EIP155-based V ${n} and chain id ${t.chainId()}. See the Common parameter of the Transaction constructor to set the chain id.`)}else{let e;e=(n-35)%2==0?35:36,r=BigInt(n-e)/i.BIGINT_2}return this._getCommon(t,r)}errorStr(){let e=this._getSharedErrorPostfix();return e+=` gasPrice=${this.gasPrice}`,e}_errorMsg(e){return a.errorMsg(this,e)}}r.LegacyTransaction=c}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/legacyTransaction.js"}],[790,{"./eip1559Transaction.js":783,"./eip2930Transaction.js":784,"./eip4844Transaction.js":785,"./eip7702Transaction.js":786,"./fromRpc.js":787,"./legacyTransaction.js":789,"./types.js":791,"@ethereumjs/util":809},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TransactionFactory=void 0;const n=e("@ethereumjs/util"),i=e("./eip1559Transaction.js"),o=e("./eip2930Transaction.js"),s=e("./eip4844Transaction.js"),a=e("./eip7702Transaction.js"),u=e("./fromRpc.js"),l=e("./legacyTransaction.js"),c=e("./types.js");class f{constructor(){}static fromTxData(e,t={}){if("type"in e&&e.type!==undefined){if((0,c.isLegacyTxData)(e))return l.LegacyTransaction.fromTxData(e,t);if((0,c.isAccessListEIP2930TxData)(e))return o.AccessListEIP2930Transaction.fromTxData(e,t);if((0,c.isFeeMarketEIP1559TxData)(e))return i.FeeMarketEIP1559Transaction.fromTxData(e,t);if((0,c.isBlobEIP4844TxData)(e))return s.BlobEIP4844Transaction.fromTxData(e,t);if((0,c.isEOACodeEIP7702TxData)(e))return a.EOACodeEIP7702Transaction.fromTxData(e,t);throw new Error(`Tx instantiation with type ${e?.type} not supported`)}return l.LegacyTransaction.fromTxData(e,t)}static fromSerializedData(e,t={}){if(!(e[0]<=127))return l.LegacyTransaction.fromSerializedTx(e,t);switch(e[0]){case c.TransactionType.AccessListEIP2930:return o.AccessListEIP2930Transaction.fromSerializedTx(e,t);case c.TransactionType.FeeMarketEIP1559:return i.FeeMarketEIP1559Transaction.fromSerializedTx(e,t);case c.TransactionType.BlobEIP4844:return s.BlobEIP4844Transaction.fromSerializedTx(e,t);case c.TransactionType.EOACodeEIP7702:return a.EOACodeEIP7702Transaction.fromSerializedTx(e,t);default:throw new Error(`TypedTransaction with ID ${e[0]} unknown`)}}static fromBlockBodyData(e,t={}){if(e instanceof Uint8Array)return this.fromSerializedData(e,t);if(Array.isArray(e))return l.LegacyTransaction.fromValuesArray(e,t);throw new Error("Cannot decode transaction: unknown type input")}static async fromJsonRpcProvider(e,t,r){const i=(0,n.getProvider)(e),o=await(0,n.fetchFromProvider)(i,{method:"eth_getTransactionByHash",params:[t]});if(null===o)throw new Error("No data returned from provider");return f.fromRPC(o,r)}static async fromRPC(e,t={}){return f.fromTxData((0,u.normalizeTxParams)(e),t)}}r.TransactionFactory=f}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/transactionFactory.js"}],[791,{"@ethereumjs/util":809},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isEOACodeEIP7702TxData=r.isBlobEIP4844TxData=r.isFeeMarketEIP1559TxData=r.isAccessListEIP2930TxData=r.isLegacyTxData=r.isEOACodeEIP7702Tx=r.isBlobEIP4844Tx=r.isFeeMarketEIP1559Tx=r.isAccessListEIP2930Tx=r.isLegacyTx=r.TransactionType=r.isAuthorizationList=r.isAuthorizationListBytes=r.isAccessList=r.isAccessListBytes=r.Capability=void 0;const n=e("@ethereumjs/util");var i;function o(e){if(0===e.length)return!0;const t=e[0];return!!Array.isArray(t)}function s(e){if(0===e.length)return!0;const t=e[0];return!!Array.isArray(t)}!function(e){e[e.EIP155ReplayProtection=155]="EIP155ReplayProtection",e[e.EIP1559FeeMarket=1559]="EIP1559FeeMarket",e[e.EIP2718TypedTransaction=2718]="EIP2718TypedTransaction",e[e.EIP2930AccessLists=2930]="EIP2930AccessLists",e[e.EIP7702EOACode=7702]="EIP7702EOACode"}(r.Capability||(r.Capability={})),r.isAccessListBytes=o,r.isAccessList=function(e){return!o(e)},r.isAuthorizationListBytes=s,r.isAuthorizationList=function(e){return!s(e)},function(e){e[e.Legacy=0]="Legacy",e[e.AccessListEIP2930=1]="AccessListEIP2930",e[e.FeeMarketEIP1559=2]="FeeMarketEIP1559",e[e.BlobEIP4844=3]="BlobEIP4844",e[e.EOACodeEIP7702=4]="EOACodeEIP7702"}(i=r.TransactionType||(r.TransactionType={})),r.isLegacyTx=function(e){return e.type===i.Legacy},r.isAccessListEIP2930Tx=function(e){return e.type===i.AccessListEIP2930},r.isFeeMarketEIP1559Tx=function(e){return e.type===i.FeeMarketEIP1559},r.isBlobEIP4844Tx=function(e){return e.type===i.BlobEIP4844},r.isEOACodeEIP7702Tx=function(e){return e.type===i.EOACodeEIP7702},r.isLegacyTxData=function(e){return Number((0,n.bytesToBigInt)((0,n.toBytes)(e.type)))===i.Legacy},r.isAccessListEIP2930TxData=function(e){return Number((0,n.bytesToBigInt)((0,n.toBytes)(e.type)))===i.AccessListEIP2930},r.isFeeMarketEIP1559TxData=function(e){return Number((0,n.bytesToBigInt)((0,n.toBytes)(e.type)))===i.FeeMarketEIP1559},r.isBlobEIP4844TxData=function(e){return Number((0,n.bytesToBigInt)((0,n.toBytes)(e.type)))===i.BlobEIP4844},r.isEOACodeEIP7702TxData=function(e){return Number((0,n.bytesToBigInt)((0,n.toBytes)(e.type)))===i.EOACodeEIP7702}}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/types.js"}],[792,{"./types.js":791,"@ethereumjs/util":809},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.txTypeBytes=r.AuthorizationLists=r.AccessLists=r.checkMaxInitCodeSize=void 0;const n=e("@ethereumjs/util"),i=e("./types.js");r.checkMaxInitCodeSize=function(e,t){const r=e.param("vm","maxInitCodeSize");if(r&&BigInt(t)>r)throw new Error(`the initcode size of this transaction is too large: it is ${t} while the max is ${e.param("vm","maxInitCodeSize")}`)};r.AccessLists=class{static getAccessListData(e){let t,r;if((0,i.isAccessList)(e)){t=e;const i=[];for(let t=0;t<e.length;t++){const r=e[t],o=(0,n.hexToBytes)(r.address),s=[];for(let e=0;e<r.storageKeys.length;e++)s.push((0,n.hexToBytes)(r.storageKeys[e]));i.push([o,s])}r=i}else{r=e??[];const i=[];for(let e=0;e<r.length;e++){const t=r[e],o=(0,n.bytesToHex)(t[0]),s=[];for(let e=0;e<t[1].length;e++)s.push((0,n.bytesToHex)(t[1][e]));const a={address:o,storageKeys:s};i.push(a)}t=i}return{AccessListJSON:t,accessList:r}}static verifyAccessList(e){for(let t=0;t<e.length;t++){const r=e[t],n=r[0],i=r[1];if(r[2]!==undefined)throw new Error("Access list item cannot have 3 elements. It can only have an address, and an array of storage slots.");if(20!==n.length)throw new Error("Invalid EIP-2930 transaction: address length should be 20 bytes");for(let e=0;e<i.length;e++)if(32!==i[e].length)throw new Error("Invalid EIP-2930 transaction: storage slot length should be 32 bytes")}}static getAccessListJSON(e){const t=[];for(let r=0;r<e.length;r++){const i=e[r],o={address:(0,n.bytesToHex)((0,n.setLengthLeft)(i[0],20)),storageKeys:[]},s=i[1];for(let e=0;e<s.length;e++){const t=s[e];o.storageKeys.push((0,n.bytesToHex)((0,n.setLengthLeft)(t,32)))}t.push(o)}return t}static getDataFeeEIP2930(e,t){const r=t.param("gasPrices","accessListStorageKeyCost"),n=t.param("gasPrices","accessListAddressCost");let i=0;for(let t=0;t<e.length;t++){i+=e[t][1].length}return e.length*Number(n)+i*Number(r)}};r.AuthorizationLists=class{static getAuthorizationListData(e){let t,r;if((0,i.isAuthorizationList)(e)){t=e;const i=[],o=["chainId","address","nonce","yParity","r","s"];for(let t=0;t<e.length;t++){const r=e[t];for(const e of o)if(r[e]===undefined)throw new Error(`EIP-7702 authorization list invalid: ${e} is not defined`);const s=(0,n.hexToBytes)(r.chainId),a=(0,n.hexToBytes)(r.address),u=(0,n.hexToBytes)(r.nonce),l=(0,n.hexToBytes)(r.yParity),c=(0,n.hexToBytes)(r.r),f=(0,n.hexToBytes)(r.s);i.push([s,a,u,l,c,f])}r=i}else{r=e??[];const i=[];for(let e=0;e<r.length;e++){const t=r[e],o={chainId:(0,n.bytesToHex)(t[0]),address:(0,n.bytesToHex)(t[1]),nonce:(0,n.bytesToHex)(t[2]),yParity:(0,n.bytesToHex)(t[3]),r:(0,n.bytesToHex)(t[4]),s:(0,n.bytesToHex)(t[5])};i.push(o)}t=i}return{AuthorizationListJSON:t,authorizationList:r}}static verifyAuthorizationList(e){for(let t=0;t<e.length;t++){const r=e[t],i=r[1],o=r[2],s=r[3],a=r[4],u=r[5];if((0,n.validateNoLeadingZeroes)({yParity:s,r:a,s:u,nonce:o}),20!==i.length)throw new Error("Invalid EIP-7702 transaction: address length should be 20 bytes")}}static getDataFeeEIP7702(e,t){const r=t.param("gasPrices","perAuthBaseCost");return e.length*Number(r)}},r.txTypeBytes=function(e){return(0,n.hexToBytes)(`0x${e.toString(16).padStart(2,"0")}`)}}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist/cjs/util.js"}],[793,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function i(e){if("boolean"!=typeof e)throw new Error(`boolean expected, not ${e}`)}function o(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function s(e,...t){if(!o(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function a(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function u(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function l(e,t){s(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(r,"__esModule",{value:!0}),r.output=r.exists=r.hash=r.bytes=r.bool=r.number=r.isBytes=void 0,r.number=n,r.bool=i,r.isBytes=o,r.bytes=s,r.hash=a,r.exists=u,r.output=l;const c={number:n,bool:i,bytes:s,hash:a,exists:u,output:l};r.default=c}}},{package:"@ethereumjs/tx>ethereum-cryptography>@noble/hashes",file:"node_modules/@ethereumjs/tx/node_modules/@noble/hashes/_assert.js"}],[794,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.add5L=r.add5H=r.add4H=r.add4L=r.add3H=r.add3L=r.add=r.rotlBL=r.rotlBH=r.rotlSL=r.rotlSH=r.rotr32L=r.rotr32H=r.rotrBL=r.rotrBH=r.rotrSL=r.rotrSH=r.shrSL=r.shrSH=r.toBig=r.split=r.fromBig=void 0;const n=BigInt(2**32-1),i=BigInt(32);function o(e,t=!1){return t?{h:Number(e&n),l:Number(e>>i&n)}:{h:0|Number(e>>i&n),l:0|Number(e&n)}}function s(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){const{h:s,l:a}=o(e[i],t);[r[i],n[i]]=[s,a]}return[r,n]}r.fromBig=o,r.split=s;const a=(e,t)=>BigInt(e>>>0)<<i|BigInt(t>>>0);r.toBig=a;const u=(e,t,r)=>e>>>r;r.shrSH=u;const l=(e,t,r)=>e<<32-r|t>>>r;r.shrSL=l;const c=(e,t,r)=>e>>>r|t<<32-r;r.rotrSH=c;const f=(e,t,r)=>e<<32-r|t>>>r;r.rotrSL=f;const d=(e,t,r)=>e<<64-r|t>>>r-32;r.rotrBH=d;const h=(e,t,r)=>e>>>r-32|t<<64-r;r.rotrBL=h;const p=(e,t)=>t;r.rotr32H=p;const m=(e,t)=>e;r.rotr32L=m;const b=(e,t,r)=>e<<r|t>>>32-r;r.rotlSH=b;const g=(e,t,r)=>t<<r|e>>>32-r;r.rotlSL=g;const y=(e,t,r)=>t<<r-32|e>>>64-r;r.rotlBH=y;const w=(e,t,r)=>e<<r-32|t>>>64-r;function _(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}r.rotlBL=w,r.add=_;const v=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);r.add3L=v;const E=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;r.add3H=E;const T=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);r.add4L=T;const S=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0;r.add4H=S;const A=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0);r.add5L=A;const I=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0;r.add5H=I;const x={fromBig:o,split:s,toBig:a,shrSH:u,shrSL:l,rotrSH:c,rotrSL:f,rotrBH:d,rotrBL:h,rotr32H:p,rotr32L:m,rotlSH:b,rotlSL:g,rotlBH:y,rotlBL:w,add:_,add3L:v,add3H:E,add4L:T,add4H:S,add5H:I,add5L:A};r.default=x}}},{package:"@ethereumjs/tx>ethereum-cryptography>@noble/hashes",file:"node_modules/@ethereumjs/tx/node_modules/@noble/hashes/_u64.js"}],[795,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.crypto=void 0,r.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:undefined}}},{package:"@ethereumjs/tx>ethereum-cryptography>@noble/hashes",file:"node_modules/@ethereumjs/tx/node_modules/@noble/hashes/crypto.js"}],[796,{"./_assert.js":793,"./_u64.js":794,"./utils.js":797},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shake256=r.shake128=r.keccak_512=r.keccak_384=r.keccak_256=r.keccak_224=r.sha3_512=r.sha3_384=r.sha3_256=r.sha3_224=r.Keccak=r.keccakP=void 0;const n=e("./_assert.js"),i=e("./_u64.js"),o=e("./utils.js"),s=[],a=[],u=[],l=BigInt(0),c=BigInt(1),f=BigInt(2),d=BigInt(7),h=BigInt(256),p=BigInt(113);for(let e=0,t=c,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],s.push(2*(5*n+r)),a.push((e+1)*(e+2)/2%64);let i=l;for(let e=0;e<7;e++)t=(t<<c^(t>>d)*p)%h,t&f&&(i^=c<<(c<<BigInt(e))-c);u.push(i)}const[m,b]=(0,i.split)(u,!0),g=(e,t,r)=>r>32?(0,i.rotlBH)(e,t,r):(0,i.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,i.rotlBL)(e,t,r):(0,i.rotlSL)(e,t,r);function w(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const n=(t+8)%10,i=(t+2)%10,o=r[i],s=r[i+1],a=g(o,s,1)^r[n],u=y(o,s,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=u}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=a[r],o=g(t,i,n),u=y(t,i,n),l=s[r];t=e[l],i=e[l+1],e[l]=o,e[l+1]=u}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=m[n],e[1]^=b[n]}r.fill(0)}r.keccakP=w;class _ extends o.Hash{constructor(e,t,r,i=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}keccak(){o.isLE||(0,o.byteSwap32)(this.state32),w(this.state32,this.rounds),o.isLE||(0,o.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);const{blockLen:t,state:r}=this,i=(e=(0,o.toBytes)(e)).length;for(let n=0;n<i;){const o=Math.min(t-this.pos,i-n);for(let t=0;t<o;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,128&t&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.exists)(this,!1),(0,n.bytes)(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new _(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}r.Keccak=_;const v=(e,t,r)=>(0,o.wrapConstructor)(()=>new _(t,e,r));r.sha3_224=v(6,144,28),r.sha3_256=v(6,136,32),r.sha3_384=v(6,104,48),r.sha3_512=v(6,72,64),r.keccak_224=v(1,144,28),r.keccak_256=v(1,136,32),r.keccak_384=v(1,104,48),r.keccak_512=v(1,72,64);const E=(e,t,r)=>(0,o.wrapXOFConstructorWithOpts)((n={})=>new _(t,e,n.dkLen===undefined?r:n.dkLen,!0));r.shake128=E(31,168,16),r.shake256=E(31,136,32)}}},{package:"@ethereumjs/tx>ethereum-cryptography>@noble/hashes",file:"node_modules/@ethereumjs/tx/node_modules/@noble/hashes/sha3.js"}],[797,{"./_assert.js":793,"@noble/hashes/crypto":795},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
Object.defineProperty(r,"__esModule",{value:!0}),r.randomBytes=r.wrapXOFConstructorWithOpts=r.wrapConstructorWithOpts=r.wrapConstructor=r.checkOpts=r.Hash=r.concatBytes=r.toBytes=r.utf8ToBytes=r.asyncLoop=r.nextTick=r.hexToBytes=r.bytesToHex=r.byteSwap32=r.byteSwapIfBE=r.byteSwap=r.isLE=r.rotl=r.rotr=r.createView=r.u32=r.u8=r.isBytes=void 0;const n=e("@noble/hashes/crypto"),i=e("./_assert.js");r.isBytes=function(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name};r.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);r.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));r.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);r.rotr=(e,t)=>e<<32-t|e>>>t;r.rotl=(e,t)=>e<<t|e>>>32-t>>>0,r.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];r.byteSwap=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255,r.byteSwapIfBE=r.isLE?e=>e:e=>(0,r.byteSwap)(e),r.byteSwap32=function(e){for(let t=0;t<e.length;t++)e[t]=(0,r.byteSwap)(e[t])};const o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));r.bytesToHex=function(e){(0,i.bytes)(e);let t="";for(let r=0;r<e.length;r++)t+=o[e[r]];return t};const s=48,a=57,u=65,l=70,c=97,f=102;function d(e){return e>=s&&e<=a?e-s:e>=u&&e<=l?e-(u-10):e>=c&&e<=f?e-(c-10):void 0}r.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){const r=d(e.charCodeAt(i)),o=d(e.charCodeAt(i+1));if(r===undefined||o===undefined){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}n[t]=16*r+o}return n};function h(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function p(e){return"string"==typeof e&&(e=h(e)),(0,i.bytes)(e),e}r.nextTick=async()=>{},r.asyncLoop=async function(e,t,n){let i=Date.now();for(let o=0;o<e;o++){n(o);const e=Date.now()-i;e>=0&&e<t||(await(0,r.nextTick)(),i+=e)}},r.utf8ToBytes=h,r.toBytes=p,r.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];(0,i.bytes)(n),t+=n.length}const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const i=e[t];r.set(i,n),n+=i.length}return r};r.Hash=class{clone(){return this._cloneInto()}};const m={}.toString;r.checkOpts=function(e,t){if(t!==undefined&&"[object Object]"!==m.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},r.wrapConstructor=function(e){const t=t=>e().update(p(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},r.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},r.wrapXOFConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},r.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}}}},{package:"@ethereumjs/tx>ethereum-cryptography>@noble/hashes",file:"node_modules/@ethereumjs/tx/node_modules/@noble/hashes/utils.js"}],[798,{"./utils.js":799,"@noble/hashes/sha3":796},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.keccak512=r.keccak384=r.keccak256=r.keccak224=void 0;const n=e("@noble/hashes/sha3"),i=e("./utils.js");r.keccak224=(0,i.wrapHash)(n.keccak_224),r.keccak256=(()=>{const e=(0,i.wrapHash)(n.keccak_256);return e.create=n.keccak_256.create,e})(),r.keccak384=(0,i.wrapHash)(n.keccak_384),r.keccak512=(0,i.wrapHash)(n.keccak_512)}}},{package:"@ethereumjs/tx>ethereum-cryptography",file:"node_modules/@ethereumjs/tx/node_modules/ethereum-cryptography/keccak.js"}],[799,{"@noble/hashes/_assert":793,"@noble/hashes/utils":797},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.crypto=r.utf8ToBytes=r.createView=r.concatBytes=r.toHex=r.bytesToHex=r.assertBytes=r.assertBool=void 0,r.bytesToUtf8=function(e){if(!(e instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof e);return(new TextDecoder).decode(e)},r.hexToBytes=function(e){const t=e.startsWith("0x")?e.substring(2):e;return(0,o.hexToBytes)(t)},r.equalsBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},r.wrapHash=function(e){return t=>(i.default.bytes(t),e(t))};const i=n(e("@noble/hashes/_assert")),o=e("@noble/hashes/utils"),s=i.default.bool;r.assertBool=s;const a=i.default.bytes;r.assertBytes=a;var u=e("@noble/hashes/utils");Object.defineProperty(r,"bytesToHex",{enumerable:!0,get:function(){return u.bytesToHex}}),Object.defineProperty(r,"toHex",{enumerable:!0,get:function(){return u.bytesToHex}}),Object.defineProperty(r,"concatBytes",{enumerable:!0,get:function(){return u.concatBytes}}),Object.defineProperty(r,"createView",{enumerable:!0,get:function(){return u.createView}}),Object.defineProperty(r,"utf8ToBytes",{enumerable:!0,get:function(){return u.utf8ToBytes}}),r.crypto=(()=>{const e="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:undefined,r=void 0!==t&&"function"==typeof t.require&&t.require.bind(t);return{node:r&&!e?r("crypto"):undefined,web:e}})()}}},{package:"@ethereumjs/tx>ethereum-cryptography",file:"node_modules/@ethereumjs/tx/node_modules/ethereum-cryptography/utils.js"}],[8,{"../../../shared/lib/object.utils":8772},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SENTRY_UI_STATE=r.SENTRY_BACKGROUND_STATE=void 0;var n=e("../../../shared/lib/object.utils");const i=r.SENTRY_BACKGROUND_STATE={AccountTreeController:{accountTree:!1},AccountsController:{internalAccounts:{accounts:!1,selectedAccount:!1}},AccountTracker:{accountsByChainId:!1},AddressBookController:{addressBook:!1},AlertController:{alertEnabledness:!0,unconnectedAccountAlertShownOrigins:!1,web3ShimUsageOrigins:!1},AnalyticsController:{analyticsId:!0,eventQueue:!1,optedIn:!0},AnnouncementController:{announcements:!1},AuthenticationController:{isSignedIn:!1,needsProfilePairing:!1,srpSessionData:!1},NetworkOrderController:{orderedNetworkList:[]},NetworkEnablementController:{enabledNetworkMap:{}},AccountOrderController:{pinnedAccountList:[],hiddenAccountList:[]},AppMetadataController:{currentAppVersion:!0,currentMigrationVersion:!0,previousAppVersion:!0,previousMigrationVersion:!0},ApprovalController:{approvalFlows:!1,pendingApprovals:!1,pendingApprovalCount:!1},AppStateController:{browserEnvironment:!0,connectedStatusPopoverHasBeenShown:!0,currentPopupId:!1,onboardingDate:!1,currentExtensionPopupId:!1,defaultHomeActiveTabName:!0,fullScreenGasPollTokens:!0,hadAdvancedGasFeesSetPriorToMigration92_3:!0,canTrackWalletFundsObtained:!0,nftsDropdownState:!0,notificationGasPollTokens:!0,outdatedBrowserWarningLastShown:!0,popupGasPollTokens:!0,activeQrCodeScanRequest:!0,recoveryPhraseReminderHasBeenShown:!0,recoveryPhraseReminderLastShown:!0,productTour:!0,sidePanelGasPollTokens:!0,snapsInstallPrivacyWarningShown:!0,termsOfUseLastAgreed:!0,throttledOrigins:!1,timeoutMinutes:!0,trezorModel:!0,pendingExtensionVersion:!0,updateModalLastDismissedAt:!0,lastUpdatedAt:!0,shieldSubscriptionError:!0,shieldEndingToastLastClickedOrClosed:!0,shieldPausedToastLastClickedOrClosed:!0,storageWriteErrorType:!0,isWalletResetInProgress:!1,pna25Acknowledged:!1},MultichainBalancesController:{balances:!1},MultichainAssetsController:{accountsAssets:!1,assetsMetadata:!1,allIgnoredAssets:!1},MultichainAssetsRatesController:{assetsRates:!1},BridgeController:{assetExchangeRates:!1,minimumBalanceForRentExemptionInLamports:!1,quoteRequest:[{walletAddress:!1,srcTokenAddress:!0,slippage:!0,srcChainId:!0,destChainId:!0,destTokenAddress:!0,srcTokenAmount:!0}],quotes:[],quotesInitialLoadTime:!0,quotesLastFetched:!0,quotesLoadingStatus:!0,quoteFetchError:!0,quotesRefreshCount:!0},BridgeStatusController:{txHistory:!1},ConnectivityController:{connectivityStatus:!0},ComplianceController:{walletComplianceStatusMap:!1,lastCheckedAt:!1},CronjobController:{events:!1},CurrencyController:{currentCurrency:!0,currencyRates:!0},DecryptMessageController:{unapprovedDecryptMsgs:!1,unapprovedDecryptMsgCount:!0},EncryptionPublicKeyController:{unapprovedEncryptionPublicKeyMsgs:!1,unapprovedEncryptionPublicKeyMsgCount:!0},EnsController:{ensResolutionsByAddress:!1,ensEntries:!1},GasFeeController:{estimatedGasFeeTimeBounds:!0,gasEstimateType:!0,gasFeeEstimates:!0,gasFeeEstimatesByChainId:!0,nonRPCGasFeeApisDisabled:!1},KeyringController:{isUnlocked:!0,keyrings:!1},LoggingController:{logs:!1},NotificationServicesController:{subscriptionAccountsSeen:!1,isMetamaskNotificationsFeatureSeen:!1,isNotificationServicesEnabled:!1,isFeatureAnnouncementsEnabled:!1,metamaskNotificationsList:!1,metamaskNotificationsReadList:!1,isCheckingAccountsPresence:!1,isFetchingMetamaskNotifications:!1,isUpdatingMetamaskNotifications:!1,isUpdatingMetamaskNotificationsAccount:!1},MetaMetricsController:{completedMetaMetricsOnboarding:!0,eventsBeforeMetricsOptIn:!1,tracesBeforeMetricsOptIn:!1,fragments:!1,traits:!1,dataCollectionForMarketing:!1,marketingCampaignCookieId:!0,latestNonAnonymousEventTimestamp:!0},MetaMetricsDataDeletionController:{metaMetricsDataDeletionId:!0,metaMetricsDataDeletionTimestamp:!0},NameController:{names:!1,nameSources:!1,useExternalNameSources:!1},NetworkController:{networkConfigurations:!1,networksMetadata:!0,selectedNetworkClientId:!1},NftController:{allNftContracts:!1,allNfts:!1,ignoredNfts:!1},OnboardingController:{completedOnboarding:!0,firstTimeFlowType:!0,onboardingTabs:!1,seedPhraseBackedUp:!0},PPOMController:{securityAlertsEnabled:!1,storageMetadata:[],versionInfo:[]},PasskeyController:{passkeyRecord:!1},PermissionController:{subjects:!1},PermissionLogController:{permissionActivityLog:!1,permissionHistory:!1},PhishingController:{},PreferencesController:{advancedGasFee:!0,currentLocale:!0,dismissSeedBackUpReminder:!0,overrideContentSecurityPolicyHeader:!0,featureFlags:!0,forgottenPassword:!0,isIpfsGatewayEnabled:!1,ipfsGateway:!1,knownMethodData:!1,ledgerTransportType:!0,openSeaEnabled:!0,preferences:{autoLockTimeLimit:!0,hideZeroBalanceTokens:!0,showExtensionInFullSizeView:!0,showFiatInTestnets:!0,showTestNetworks:!0,smartTransactionsOptInStatus:!0,tokenNetworkFilter:{},showNativeTokenAsMainBalance:!0,showConfirmationAdvancedDetails:!0,privacyMode:!1,avatarType:!0},useExternalServices:!1,snapRegistryList:!1,theme:!0,signatureSecurityAlertResponses:!1,addressSecurityAlertResponses:!1,use4ByteResolution:!0,useAddressBarEnsResolution:!0,useCurrencyRateCheck:!0,useMultiAccountBalanceChecker:!0,useNftDetection:!0,usePhishDetect:!0,useTokenDetection:!0,useTransactionSimulations:!0,enableMV3TimestampSave:!0},RemoteFeatureFlagController:{remoteFeatureFlags:!0,cacheTimestamp:!1},RewardsController:{rewardsActiveAccount:!1,rewardsAccounts:!1,rewardsSubscriptions:!1,rewardsSeasons:!1,rewardsSeasonStatuses:!1,rewardsSubscriptionTokens:!1,rewardsPointsEstimateHistory:!1,rewardsVipPerpsFees:!1},NotificationServicesPushController:{fcmToken:!1},MultichainRatesController:{fiatCurrency:!0,rates:!0,cryptocurrencies:!0},SelectedNetworkController:{domains:!1},SignatureController:{unapprovedPersonalMsgCount:!0,unapprovedPersonalMsgs:!1,unapprovedTypedMessages:!1,unapprovedTypedMessagesCount:!0},SmartTransactionsController:{smartTransactionsState:{fees:{approvalTxFees:!0,tradeTxFees:!0},liveness:!0,smartTransactions:!1,userOptIn:!0,userOptInV2:!0}},SnapController:{snaps:!1},SnapInterfaceController:{interfaces:!1},SnapInsightsController:{insights:!1},SnapRegistryController:{database:!1,lastUpdated:!1,databaseUnavailable:!1},StaticAssetsController:{},SubjectMetadataController:{subjectMetadata:!1},TokenDetectionController:{},TokenListController:{tokensChainsCache:{[n.AllProperties]:!1}},TokenBalancesController:{tokenBalances:!1},TokenRatesController:{marketData:!1},TokensController:{allDetectedTokens:{[n.AllProperties]:!1},allIgnoredTokens:{[n.AllProperties]:!1},allTokens:{[n.AllProperties]:!1}},TransactionController:{transactions:!1,lastFetchedBlockNumbers:!1,methodData:!1},TransactionPayController:{transactionData:!1},TxController:{transactions:!1},UserOperationController:{userOperations:!1},UserStorageController:{isBackupAndSyncEnabled:!0,isBackupAndSyncUpdateLoading:!1,isAccountSyncingEnabled:!0,isContactSyncingEnabled:!0}},o={};for(const e of Object.values(i))for(const[t,r]of Object.entries(e))o[t]=r;r.SENTRY_UI_STATE={gas:!0,history:!0,appState:{customNonceValue:!0,isNetworkMenuOpen:!0,nextNonce:!0,pendingTokens:!1,slides:!1,confirmationExchangeRates:!0},metamask:{...o,isInitialized:!0,useSafeChainsListValidation:!0,watchEthereumAccountEnabled:!1,addSnapAccountEnabled:!1,snapsAddSnapAccountModalDismissed:!1,newPrivacyPolicyToastClickedOrClosed:!1,newPrivacyPolicyToastShownDate:!1},unconnectedAccount:!0}}}},{package:"$root$",file:"app/scripts/constants/sentry-state.ts"}],[800,{"./bytes.js":804,"./constants.js":805,"./helpers.js":808,"./internal.js":810,"@ethereumjs/rlp":775,"ethereum-cryptography/keccak.js":836,"ethereum-cryptography/secp256k1.js":838},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){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"),i=e("ethereum-cryptography/keccak.js"),o=e("ethereum-cryptography/secp256k1.js"),s=e("./bytes.js"),a=e("./constants.js"),u=e("./helpers.js"),l=e("./internal.js");class c{constructor(e=a.BIGINT_0,t=a.BIGINT_0,r=a.KECCAK256_RLP,n=a.KECCAK256_NULL,i=null,o=0){this._nonce=null,this._balance=null,this._storageRoot=null,this._codeHash=null,this._codeSize=null,this._version=null,this._nonce=e,this._balance=t,this._storageRoot=r,this._codeHash=n,null!==i||null===n||this.isContract()||(i=0),this._codeSize=i,this._version=o,this._validate()}get version(){if(null!==this._version)return this._version;throw Error(`version=${this._version} not loaded`)}set version(e){this._version=e}get nonce(){if(null!==this._nonce)return this._nonce;throw Error(`nonce=${this._nonce} not loaded`)}set nonce(e){this._nonce=e}get balance(){if(null!==this._balance)return this._balance;throw Error(`balance=${this._balance} not loaded`)}set balance(e){this._balance=e}get storageRoot(){if(null!==this._storageRoot)return this._storageRoot;throw Error(`storageRoot=${this._storageRoot} not loaded`)}set storageRoot(e){this._storageRoot=e}get codeHash(){if(null!==this._codeHash)return this._codeHash;throw Error(`codeHash=${this._codeHash} not loaded`)}set codeHash(e){this._codeHash=e}get codeSize(){if(null!==this._codeSize)return this._codeSize;throw Error(`codeHash=${this._codeSize} not loaded`)}set codeSize(e){this._codeSize=e}static fromAccountData(e){const{nonce:t,balance:r,storageRoot:n,codeHash:i}=e;if(null===t||null===r||null===n||null===i)throw Error("Partial fields not supported in fromAccountData");return new c(t!==undefined?(0,s.bytesToBigInt)((0,s.toBytes)(t)):undefined,r!==undefined?(0,s.bytesToBigInt)((0,s.toBytes)(r)):undefined,n!==undefined?(0,s.toBytes)(n):undefined,i!==undefined?(0,s.toBytes)(i):undefined)}static fromPartialAccountData(e){const{nonce:t,balance:r,storageRoot:n,codeHash:i,codeSize:o,version:a}=e;if(null===t&&null===r&&null===n&&null===i&&null===o&&null===a)throw Error("All partial fields null");return new c(t!==undefined&&null!==t?(0,s.bytesToBigInt)((0,s.toBytes)(t)):t,r!==undefined&&null!==r?(0,s.bytesToBigInt)((0,s.toBytes)(r)):r,n!==undefined&&null!==n?(0,s.toBytes)(n):n,i!==undefined&&null!==i?(0,s.toBytes)(i):i,o!==undefined&&null!==o?(0,s.bytesToInt)((0,s.toBytes)(o)):o,a!==undefined&&null!==a?(0,s.bytesToInt)((0,s.toBytes)(a)):a)}static fromRlpSerializedAccount(e){const t=n.RLP.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)}static fromRlpSerializedPartialAccount(e){const t=n.RLP.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");let r=null;if(!Array.isArray(t[0]))throw new Error("Invalid partial nonce encoding. Must be array");{const e=(0,s.bytesToInt)(t[0][0]);if(0!==e&&1!==e)throw new Error(`Invalid isNullIndicator=${e} for nonce`);1===e&&(r=(0,s.bytesToBigInt)(t[0][1]))}let i=null;if(!Array.isArray(t[1]))throw new Error("Invalid partial balance encoding. Must be array");{const e=(0,s.bytesToInt)(t[1][0]);if(0!==e&&1!==e)throw new Error(`Invalid isNullIndicator=${e} for balance`);1===e&&(i=(0,s.bytesToBigInt)(t[1][1]))}let o=null;if(!Array.isArray(t[2]))throw new Error("Invalid partial storageRoot encoding. Must be array");{const e=(0,s.bytesToInt)(t[2][0]);if(0!==e&&1!==e)throw new Error(`Invalid isNullIndicator=${e} for storageRoot`);1===e&&(o=t[2][1])}let a=null;if(!Array.isArray(t[3]))throw new Error("Invalid partial codeHash encoding. Must be array");{const e=(0,s.bytesToInt)(t[3][0]);if(0!==e&&1!==e)throw new Error(`Invalid isNullIndicator=${e} for codeHash`);1===e&&(a=t[3][1])}let u=null;if(!Array.isArray(t[4]))throw new Error("Invalid partial codeSize encoding. Must be array");{const e=(0,s.bytesToInt)(t[4][0]);if(0!==e&&1!==e)throw new Error(`Invalid isNullIndicator=${e} for codeSize`);1===e&&(u=(0,s.bytesToInt)(t[4][1]))}let l=null;if(!Array.isArray(t[5]))throw new Error("Invalid partial version encoding. Must be array");{const e=(0,s.bytesToInt)(t[5][0]);if(0!==e&&1!==e)throw new Error(`Invalid isNullIndicator=${e} for version`);1===e&&(l=(0,s.bytesToInt)(t[5][1]))}return this.fromPartialAccountData({balance:i,nonce:r,storageRoot:o,codeHash:a,codeSize:u,version:l})}static fromValuesArray(e){const[t,r,n,i]=e;return new c((0,s.bytesToBigInt)(t),(0,s.bytesToBigInt)(r),n,i)}_validate(){if(null!==this._nonce&&this._nonce<a.BIGINT_0)throw new Error("nonce must be greater than zero");if(null!==this._balance&&this._balance<a.BIGINT_0)throw new Error("balance must be greater than zero");if(null!==this._storageRoot&&32!==this._storageRoot.length)throw new Error("storageRoot must have a length of 32");if(null!==this._codeHash&&32!==this._codeHash.length)throw new Error("codeHash must have a length of 32");if(null!==this._codeSize&&this._codeSize<a.BIGINT_0)throw new Error("codeSize must be greater than zero")}raw(){return[(0,s.bigIntToUnpaddedBytes)(this.nonce),(0,s.bigIntToUnpaddedBytes)(this.balance),this.storageRoot,this.codeHash]}serialize(){return n.RLP.encode(this.raw())}serializeWithPartialInfo(){const e=[],t=(0,s.intToUnpaddedBytes)(0),r=(0,s.intToUnpaddedBytes)(1);return null!==this._nonce?e.push([r,(0,s.bigIntToUnpaddedBytes)(this._nonce)]):e.push([t]),null!==this._balance?e.push([r,(0,s.bigIntToUnpaddedBytes)(this._balance)]):e.push([t]),null!==this._storageRoot?e.push([r,this._storageRoot]):e.push([t]),null!==this._codeHash?e.push([r,this._codeHash]):e.push([t]),null!==this._codeSize?e.push([r,(0,s.intToUnpaddedBytes)(this._codeSize)]):e.push([t]),null!==this._version?e.push([r,(0,s.intToUnpaddedBytes)(this._version)]):e.push([t]),n.RLP.encode(e)}isContract(){if(null===this._codeHash&&null===this._codeSize)throw Error("Insufficient data as codeHash=null and codeSize=null");return null!==this._codeHash&&!(0,s.equalsBytes)(this._codeHash,a.KECCAK256_NULL)||null!==this._codeSize&&0!==this._codeSize}isEmpty(){return!(null!==this._balance&&this.balance!==a.BIGINT_0||null===this._nonce&&this.nonce!==a.BIGINT_0||null!==this._codeHash&&!(0,s.equalsBytes)(this.codeHash,a.KECCAK256_NULL))&&(this.balance===a.BIGINT_0&&this.nonce===a.BIGINT_0&&(0,s.equalsBytes)(this.codeHash,a.KECCAK256_NULL))}}r.Account=c;r.isValidAddress=function(e){try{(0,u.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};r.toChecksumAddress=function(e,t){(0,u.assertIsHexString)(e);const r=(0,l.stripHexPrefix)(e).toLowerCase();let n="";if(t!==undefined){n=(0,s.bytesToBigInt)((0,s.toBytes)(t)).toString()+"0x"}const o=(0,s.utf8ToBytes)(n+r),a=(0,s.bytesToHex)((0,i.keccak256)(o)).slice(2);let c="";for(let e=0;e<r.length;e++)parseInt(a[e],16)>=8?c+=r[e].toUpperCase():c+=r[e];return`0x${c}`};r.isValidChecksumAddress=function(e,t){return(0,r.isValidAddress)(e)&&(0,r.toChecksumAddress)(e,t)===e};r.generateAddress=function(e,t){return(0,u.assertIsBytes)(e),(0,u.assertIsBytes)(t),(0,s.bytesToBigInt)(t)===a.BIGINT_0?(0,i.keccak256)(n.RLP.encode([e,Uint8Array.from([])])).subarray(-20):(0,i.keccak256)(n.RLP.encode([e,t])).subarray(-20)};r.generateAddress2=function(e,t,r){if((0,u.assertIsBytes)(e),(0,u.assertIsBytes)(t),(0,u.assertIsBytes)(r),20!==e.length)throw new Error("Expected from to be of length 20");if(32!==t.length)throw new Error("Expected salt to be of length 32");return(0,i.keccak256)((0,s.concatBytes)((0,s.hexToBytes)("0xff"),e,t,(0,i.keccak256)(r))).subarray(-20)};r.isValidPrivate=function(e){return o.secp256k1.utils.isValidPrivateKey(e)};r.isValidPublic=function(e,t=!1){if((0,u.assertIsBytes)(e),64===e.length)try{return o.secp256k1.ProjectivePoint.fromHex((0,s.concatBytes)(Uint8Array.from([4]),e)),!0}catch(e){return!1}if(!t)return!1;try{return o.secp256k1.ProjectivePoint.fromHex(e),!0}catch(e){return!1}};r.pubToAddress=function(e,t=!1){if((0,u.assertIsBytes)(e),t&&64!==e.length&&(e=o.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1)),64!==e.length)throw new Error("Expected pubKey to be of length 64");return(0,i.keccak256)(e).subarray(-20)},r.publicToAddress=r.pubToAddress;r.privateToPublic=function(e){return(0,u.assertIsBytes)(e),o.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,u.assertIsBytes)(e),64!==e.length&&(e=o.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1)),e};r.zeroAddress=function(){const e=(0,s.zeros)(20);return(0,s.bytesToHex)(e)};function f(e){const[t,r,n,i]=e;return[t,r,0===n.length?a.KECCAK256_RLP:n,0===i.length?a.KECCAK256_NULL:i]}r.isZeroAddress=function(e){try{(0,u.assertIsString)(e)}catch(e){return!1}return(0,r.zeroAddress)()===e},r.accountBodyFromSlim=f;const d=new Uint8Array(0);r.accountBodyToSlim=function(e){const[t,r,n,i]=e;return[t,r,(0,s.equalsBytes)(n,a.KECCAK256_RLP)?d:n,(0,s.equalsBytes)(i,a.KECCAK256_NULL)?d:i]},r.accountBodyToRLP=function(e,t=!0){const r=t?f(e):e;return n.RLP.encode(r)}}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/account.js"}],[801,{"./account.js":800,"./bytes.js":804,"./constants.js":805},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Address=void 0;const n=e("./account.js"),i=e("./bytes.js"),o=e("./constants.js");class s{constructor(e){if(20!==e.length)throw new Error("Invalid address length");this.bytes=e}static zero(){return new s((0,i.zeros)(20))}static fromString(e){if(!(0,n.isValidAddress)(e))throw new Error(`Invalid address input=${e}`);return new s((0,i.hexToBytes)(e))}static fromPublicKey(e){if(!(e instanceof Uint8Array))throw new Error("Public key should be Uint8Array");const t=(0,n.pubToAddress)(e);return new s(t)}static fromPrivateKey(e){if(!(e instanceof Uint8Array))throw new Error("Private key should be Uint8Array");const t=(0,n.privateToAddress)(e);return new s(t)}static generate(e,t){if("bigint"!=typeof t)throw new Error("Expected nonce to be a bigint");return new s((0,n.generateAddress)(e.bytes,(0,i.bigIntToBytes)(t)))}static generate2(e,t,r){if(!(t instanceof Uint8Array))throw new Error("Expected salt to be a Uint8Array");if(!(r instanceof Uint8Array))throw new Error("Expected initCode to be a Uint8Array");return new s((0,n.generateAddress2)(e.bytes,t,r))}equals(e){return(0,i.equalsBytes)(this.bytes,e.bytes)}isZero(){return this.equals(s.zero())}isPrecompileOrSystemAddress(){const e=(0,i.bytesToBigInt)(this.bytes),t=o.BIGINT_0,r=BigInt("0xffff");return e>=t&&e<=r}toString(){return(0,i.bytesToHex)(this.bytes)}toBytes(){return new Uint8Array(this.bytes)}}r.Address=s}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/address.js"}],[802,{events:6680},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 i extends n.EventEmitter{emit(e,...t){let[r,n]=t;const i=this;let o=i._events[e]??[];return n===undefined&&"function"==typeof r&&(n=r,r=undefined),"newListener"!==e&&"removeListener"!==e||(r={event:r,fn:n},n=undefined),o=Array.isArray(o)?o:[o],async function(e,t,r){let n;for await(const i of t)try{i.length<2?i.call(e,r):await new Promise((t,n)=>{i.call(e,r,e=>{e?n(e):t()})})}catch(e){n=e}if(n)throw n}(i,o.slice(),r).then(n).catch(n),i.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(i,o){r.removeListener(e,n),t(i,o)}:function(i){r.removeListener(e,n),t(i,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 i,o,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]),o=s.length,i=s.length;i--;)if(s[i]===t){o=i+a;break}return s.splice(o,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=i}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/asyncEventEmitter.js"}],[803,{"./bytes.js":804,"ethereum-cryptography/sha256.js":839},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.commitmentsToVersionedHashes=r.computeVersionedHash=r.blobsToProofs=r.blobsToCommitments=r.getBlobs=void 0;const n=e("ethereum-cryptography/sha256.js"),i=e("./bytes.js"),o=4096,s=131072;function a(e){const t=new Uint8Array(131072);for(let r=0;r<o;r++){const n=new Uint8Array(32);n.set(e.subarray(31*r,31*(r+1)),0),t.set(n,32*r)}return t}r.getBlobs=e=>{const t=(0,i.utf8ToBytes)(e),r=t.byteLength;if(0===r)throw Error("invalid blob data");if(r>262143)throw Error("blob data is too large");const n=Math.ceil(r/s),o=function(e,t){const r=new Uint8Array(t*s).fill(0);return r.set(e),r[e.byteLength]=128,r}(t,n),u=[];for(let e=0;e<n;e++){const t=a(o.subarray(e*s,(e+1)*s));u.push(t)}return u};r.blobsToCommitments=(e,t)=>{const r=[];for(const n of t)r.push(e.blobToKzgCommitment(n));return r};r.blobsToProofs=(e,t,r)=>t.map((t,n)=>e.computeBlobKzgProof(t,r[n]));r.computeVersionedHash=(e,t)=>{const r=new Uint8Array(32);return r.set([t],0),r.set((0,n.sha256)(e).subarray(1),1),r};r.commitmentsToVersionedHashes=e=>{const t=[];for(const n of e)t.push((0,r.computeVersionedHash)(n,1));return t}}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/blobs.js"}],[804,{"./helpers.js":808,"./internal.js":810,"ethereum-cryptography/random.js":837,"ethereum-cryptography/utils.js":840},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hexToBigInt=r.utf8ToBytes=r.equalsBytes=r.bytesToUtf8=r.bigInt64ToBytes=r.int32ToBytes=r.bytesToBigInt64=r.bytesToInt32=r.concatBytes=r.randomBytes=r.compareBytes=r.intToUnpaddedBytes=r.bigIntToAddressBytes=r.bigIntToUnpaddedBytes=r.bigIntMin=r.bigIntMax=r.bigIntToHex=r.validateNoLeadingZeroes=r.short=r.addHexPrefix=r.toUnsigned=r.fromSigned=r.toBytes=r.unpadHex=r.unpadArray=r.unpadBytes=r.setLengthRight=r.setLengthLeft=r.zeros=r.bigIntToBytes=r.intToBytes=r.intToHex=r.hexToBytes=r.bytesToInt=r.bytesToBigInt=r.bytesToHex=r.unprefixedHexToBytes=r.bytesToUnprefixedHex=void 0;const n=e("ethereum-cryptography/random.js"),i=e("ethereum-cryptography/utils.js"),o=e("./helpers.js"),s=e("./internal.js"),a=BigInt(0);r.bytesToUnprefixedHex=i.bytesToHex;const u={},l={};for(let e=0;e<16;e++){const t=e,r=16*e,n=e.toString(16).toLowerCase();l[n]=t,l[n.toUpperCase()]=t,u[n]=r,u[n.toUpperCase()]=r}function c(e){const t=e.length,r=new Uint8Array(t/2);for(let n=0;n<t;n+=2)r[n/2]=u[e[n]]+l[e[n+1]];return r}r.unprefixedHexToBytes=e=>{if("0x"===e.slice(0,2))throw new Error("hex string is prefixed with 0x, should be unprefixed");return c((0,s.padToEven)(e))};const f=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));r.bytesToHex=e=>{let t="0x";if(e===undefined||0===e.length)return t;for(const r of e)t=`${t}${f[r]}`;return t};const d=[];for(let e=0;e<=65535;e++)d[e]=BigInt(e);r.bytesToBigInt=(e,t=!1)=>{t&&e.reverse();const n=(0,r.bytesToHex)(e);return"0x"===n?a:4===n.length?d[e[0]]:6===n.length?d[256*e[0]+e[1]]:BigInt(n)};r.bytesToInt=e=>{const t=Number((0,r.bytesToBigInt)(e));if(!Number.isSafeInteger(t))throw new Error("Number exceeds 53 bits");return t};r.hexToBytes=e=>{if("string"!=typeof e)throw new Error(`hex argument type ${typeof e} must be of type string`);if(!/^0x[0-9a-fA-F]*$/.test(e))throw new Error(`Input must be a 0x-prefixed hexadecimal string, got ${e}`);const t=e.slice(2);return c(t.length%2==0?t:(0,s.padToEven)(t))};r.intToHex=e=>{if(!Number.isSafeInteger(e)||e<0)throw new Error(`Received an invalid integer type: ${e}`);return`0x${e.toString(16)}`};r.intToBytes=e=>{const t=(0,r.intToHex)(e);return(0,r.hexToBytes)(t)};r.bigIntToBytes=(e,t=!1)=>{const n=(0,r.toBytes)(`0x${(0,s.padToEven)(e.toString(16))}`);return t?n.reverse():n};r.zeros=e=>new Uint8Array(e);const h=(e,t,n)=>n?e.length<t?new Uint8Array([...e,...(0,r.zeros)(t-e.length)]):e.subarray(0,t):e.length<t?new Uint8Array([...(0,r.zeros)(t-e.length),...e]):e.subarray(-t);r.setLengthLeft=(e,t)=>((0,o.assertIsBytes)(e),h(e,t,!1));r.setLengthRight=(e,t)=>((0,o.assertIsBytes)(e),h(e,t,!0));const p=e=>{let t=e[0];for(;e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};r.unpadBytes=e=>((0,o.assertIsBytes)(e),p(e));r.unpadArray=e=>((0,o.assertIsArray)(e),p(e));r.unpadHex=e=>((0,o.assertIsHexString)(e),`0x${p((0,s.stripHexPrefix)(e))}`);r.toBytes=e=>{if(null===e||e===undefined)return new Uint8Array;if(Array.isArray(e)||e instanceof Uint8Array)return Uint8Array.from(e);if("string"==typeof e){if(!(0,s.isHexString)(e))throw new Error(`Cannot convert string to Uint8Array. toBytes only supports 0x-prefixed hex strings and this string was given: ${e}`);return(0,r.hexToBytes)(e)}if("number"==typeof e)return(0,r.intToBytes)(e);if("bigint"==typeof e){if(e<a)throw new Error(`Cannot convert negative bigint to Uint8Array. Given: ${e}`);let t=e.toString(16);return t.length%2&&(t="0"+t),(0,r.unprefixedHexToBytes)(t)}if(e.toBytes!==undefined)return e.toBytes();throw new Error("invalid type")};r.fromSigned=e=>BigInt.asIntN(256,(0,r.bytesToBigInt)(e));r.toUnsigned=e=>(0,r.bigIntToBytes)(BigInt.asUintN(256,e));r.addHexPrefix=e=>"string"!=typeof e||(0,s.isHexString)(e)?e:`0x${e}`;r.short=(e,t=50)=>{const n=e instanceof Uint8Array?(0,r.bytesToHex)(e):e,i="0x"===n.slice(0,2)?t+2:t;return n.length<=i?n:n.slice(0,i)+"…"};r.validateNoLeadingZeroes=e=>{for(const[t,n]of Object.entries(e))if(n!==undefined&&n.length>0&&0===n[0])throw new Error(`${t} cannot have leading zeroes, received: ${(0,r.bytesToHex)(n)}`)};r.bigIntToHex=e=>`0x${e.toString(16)}`;r.bigIntMax=(...e)=>e.reduce((e,t)=>t>e?t:e);r.bigIntMin=(...e)=>e.reduce((e,t)=>t<e?t:e);r.bigIntToUnpaddedBytes=e=>(0,r.unpadBytes)((0,r.bigIntToBytes)(e));r.bigIntToAddressBytes=(e,t=!0)=>{const n=(0,r.bigIntToBytes)(e);if(t&&n.length>20)throw Error(`Invalid address bytes length=${n.length} strict=${t}`);return(0,r.setLengthLeft)(n,20)};r.intToUnpaddedBytes=e=>(0,r.unpadBytes)((0,r.intToBytes)(e));r.compareBytes=(e,t)=>{const n=(0,r.bytesToBigInt)(e),i=(0,r.bytesToBigInt)(t);return n>i?1:n<i?-1:0};r.randomBytes=e=>(0,n.getRandomBytesSync)(e);r.concatBytes=(...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 i=e[t];r.set(i,n),n+=i.length}return r},r.bytesToInt32=function(e,t=!1){return e.length<4&&(e=h(e,4,t)),new DataView(e.buffer,e.byteOffset,e.byteLength).getUint32(0,t)},r.bytesToBigInt64=function(e,t=!1){return e.length<8&&(e=h(e,8,t)),new DataView(e.buffer,e.byteOffset,e.byteLength).getBigUint64(0,t)},r.int32ToBytes=function(e,t=!1){const r=new ArrayBuffer(4);return new DataView(r).setUint32(0,e,t),new Uint8Array(r)},r.bigInt64ToBytes=function(e,t=!1){const r=new ArrayBuffer(8);return new DataView(r).setBigUint64(0,e,t),new Uint8Array(r)};var m=e("ethereum-cryptography/utils.js");Object.defineProperty(r,"bytesToUtf8",{enumerable:!0,get:function(){return m.bytesToUtf8}}),Object.defineProperty(r,"equalsBytes",{enumerable:!0,get:function(){return m.equalsBytes}}),Object.defineProperty(r,"utf8ToBytes",{enumerable:!0,get:function(){return m.utf8ToBytes}}),r.hexToBigInt=function(e){return(0,r.bytesToBigInt)((0,r.hexToBytes)((0,s.isHexString)(e)?e:`0x${e}`))}}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/bytes.js"}],[8044,{buffer:6371},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return t!==undefined?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}}},{package:"mockttp>express>safe-buffer",file:"node_modules/safe-buffer/index.js"}],[8045,{"call-bound":6392,"es-errors/type":6581,"is-regex":6993},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("call-bound"),i=e("is-regex"),o=n("RegExp.prototype.exec"),s=e("es-errors/type");t.exports=function(e){if(!i(e))throw new s("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}}}},{package:"string.prototype.matchall>es-abstract>safe-regex-test",file:"node_modules/safe-regex-test/index.js"}],[8046,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{hasOwnProperty:n}=Object.prototype,i=h();i.configure=h,i.stringify=i,i.default=i,r.stringify=i,r.configure=h,t.exports=i;const o=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function s(e){return e.length<5e3&&!o.test(e)?`"${e}"`:JSON.stringify(e)}function a(e,t){if(e.length>200||t)return e.sort(t);for(let t=1;t<e.length;t++){const r=e[t];let n=t;for(;0!==n&&e[n-1]>r;)e[n]=e[n-1],n--;e[n]=r}return e}const u=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(e){return u.call(e)!==undefined&&0!==e.length}function c(e,t,r){e.length<r&&(r=e.length);const n=","===t?"":" ";let i=`"0":${n}${e[0]}`;for(let o=1;o<r;o++)i+=`${t}"${o}":${n}${e[o]}`;return i}function f(e,t){let r;if(n.call(e,t)){if(r=e[t],"number"!=typeof r)throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${t}" argument must be an integer`);if(r<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return r===undefined?Infinity:r}function d(e){return 1===e?"1 item":`${e} items`}function h(e){const t=function(e){if(n.call(e,"strict")){const t=e.strict;if("boolean"!=typeof t)throw new TypeError('The "strict" argument must be of type boolean');if(t)return e=>{let t="Object can not safely be stringified. Received type "+typeof e;throw"function"!=typeof e&&(t+=` (${e.toString()})`),new Error(t)}}}(e={...e});t&&(e.bigint===undefined&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));const r=function(e){if(n.call(e,"circularValue")){const t=e.circularValue;if("string"==typeof t)return`"${t}"`;if(null==t)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(e),i=function(e,t){let r;if(n.call(e,t)&&(r=e[t],"boolean"!=typeof r))throw new TypeError(`The "${t}" argument must be of type boolean`);return r===undefined||r}(e,"bigint"),o=function(e){let t;if(n.call(e,"deterministic")&&(t=e.deterministic,"boolean"!=typeof t&&"function"!=typeof t))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return t===undefined||t}(e),u="function"==typeof o?o:undefined,h=f(e,"maximumDepth"),p=f(e,"maximumBreadth");function m(e,n,c,f,b,g){let y=n[e];switch("object"==typeof y&&null!==y&&"function"==typeof y.toJSON&&(y=y.toJSON(e)),y=f.call(n,e,y),typeof y){case"string":return s(y);case"object":{if(null===y)return"null";if(-1!==c.indexOf(y))return r;let e="",t=",";const n=g;if(Array.isArray(y)){if(0===y.length)return"[]";if(h<c.length+1)return'"[Array]"';c.push(y),""!==b&&(e+=`\n${g+=b}`,t=`,\n${g}`);const r=Math.min(y.length,p);let i=0;for(;i<r-1;i++){const r=m(String(i),y,c,f,b,g);e+=r!==undefined?r:"null",e+=t}const o=m(String(i),y,c,f,b,g);if(e+=o!==undefined?o:"null",y.length-1>p){e+=`${t}"... ${d(y.length-p-1)} not stringified"`}return""!==b&&(e+=`\n${n}`),c.pop(),`[${e}]`}let i=Object.keys(y);const w=i.length;if(0===w)return"{}";if(h<c.length+1)return'"[Object]"';let _="",v="";""!==b&&(t=`,\n${g+=b}`,_=" ");const E=Math.min(w,p);o&&!l(y)&&(i=a(i,u)),c.push(y);for(let r=0;r<E;r++){const n=i[r],o=m(n,y,c,f,b,g);o!==undefined&&(e+=`${v}${s(n)}:${_}${o}`,v=t)}if(w>p){e+=`${v}"...":${_}"${d(w-p)} not stringified"`,v=t}return""!==b&&v.length>1&&(e=`\n${g}${e}\n${n}`),c.pop(),`{${e}}`}case"number":return isFinite(y)?String(y):t?t(y):"null";case"boolean":return!0===y?"true":"false";case"undefined":return undefined;case"bigint":if(i)return String(y);default:return t?t(y):undefined}}function b(e,n,o,a,u,l){switch("object"==typeof n&&null!==n&&"function"==typeof n.toJSON&&(n=n.toJSON(e)),typeof n){case"string":return s(n);case"object":{if(null===n)return"null";if(-1!==o.indexOf(n))return r;const e=l;let t="",i=",";if(Array.isArray(n)){if(0===n.length)return"[]";if(h<o.length+1)return'"[Array]"';o.push(n),""!==u&&(t+=`\n${l+=u}`,i=`,\n${l}`);const r=Math.min(n.length,p);let s=0;for(;s<r-1;s++){const e=b(String(s),n[s],o,a,u,l);t+=e!==undefined?e:"null",t+=i}const c=b(String(s),n[s],o,a,u,l);if(t+=c!==undefined?c:"null",n.length-1>p){t+=`${i}"... ${d(n.length-p-1)} not stringified"`}return""!==u&&(t+=`\n${e}`),o.pop(),`[${t}]`}o.push(n);let c="";""!==u&&(i=`,\n${l+=u}`,c=" ");let f="";for(const e of a){const r=b(e,n[e],o,a,u,l);r!==undefined&&(t+=`${f}${s(e)}:${c}${r}`,f=i)}return""!==u&&f.length>1&&(t=`\n${l}${t}\n${e}`),o.pop(),`{${t}}`}case"number":return isFinite(n)?String(n):t?t(n):"null";case"boolean":return!0===n?"true":"false";case"undefined":return undefined;case"bigint":if(i)return String(n);default:return t?t(n):undefined}}function g(e,n,f,m,b){switch(typeof n){case"string":return s(n);case"object":{if(null===n)return"null";if("function"==typeof n.toJSON){if("object"!=typeof(n=n.toJSON(e)))return g(e,n,f,m,b);if(null===n)return"null"}if(-1!==f.indexOf(n))return r;const t=b;if(Array.isArray(n)){if(0===n.length)return"[]";if(h<f.length+1)return'"[Array]"';f.push(n);let e=`\n${b+=m}`;const r=`,\n${b}`,i=Math.min(n.length,p);let o=0;for(;o<i-1;o++){const t=g(String(o),n[o],f,m,b);e+=t!==undefined?t:"null",e+=r}const s=g(String(o),n[o],f,m,b);if(e+=s!==undefined?s:"null",n.length-1>p){e+=`${r}"... ${d(n.length-p-1)} not stringified"`}return e+=`\n${t}`,f.pop(),`[${e}]`}let i=Object.keys(n);const y=i.length;if(0===y)return"{}";if(h<f.length+1)return'"[Object]"';const w=`,\n${b+=m}`;let _="",v="",E=Math.min(y,p);l(n)&&(_+=c(n,w,p),i=i.slice(n.length),E-=n.length,v=w),o&&(i=a(i,u)),f.push(n);for(let e=0;e<E;e++){const t=i[e],r=g(t,n[t],f,m,b);r!==undefined&&(_+=`${v}${s(t)}: ${r}`,v=w)}if(y>p){_+=`${v}"...": "${d(y-p)} not stringified"`,v=w}return""!==v&&(_=`\n${b}${_}\n${t}`),f.pop(),`{${_}}`}case"number":return isFinite(n)?String(n):t?t(n):"null";case"boolean":return!0===n?"true":"false";case"undefined":return undefined;case"bigint":if(i)return String(n);default:return t?t(n):undefined}}function y(e,n,f){switch(typeof n){case"string":return s(n);case"object":{if(null===n)return"null";if("function"==typeof n.toJSON){if("object"!=typeof(n=n.toJSON(e)))return y(e,n,f);if(null===n)return"null"}if(-1!==f.indexOf(n))return r;let t="";const i=n.length!==undefined;if(i&&Array.isArray(n)){if(0===n.length)return"[]";if(h<f.length+1)return'"[Array]"';f.push(n);const e=Math.min(n.length,p);let r=0;for(;r<e-1;r++){const e=y(String(r),n[r],f);t+=e!==undefined?e:"null",t+=","}const i=y(String(r),n[r],f);if(t+=i!==undefined?i:"null",n.length-1>p){t+=`,"... ${d(n.length-p-1)} not stringified"`}return f.pop(),`[${t}]`}let m=Object.keys(n);const b=m.length;if(0===b)return"{}";if(h<f.length+1)return'"[Object]"';let g="",w=Math.min(b,p);i&&l(n)&&(t+=c(n,",",p),m=m.slice(n.length),w-=n.length,g=","),o&&(m=a(m,u)),f.push(n);for(let e=0;e<w;e++){const r=m[e],i=y(r,n[r],f);i!==undefined&&(t+=`${g}${s(r)}:${i}`,g=",")}if(b>p){t+=`${g}"...":"${d(b-p)} not stringified"`}return f.pop(),`{${t}}`}case"number":return isFinite(n)?String(n):t?t(n):"null";case"boolean":return!0===n?"true":"false";case"undefined":return undefined;case"bigint":if(i)return String(n);default:return t?t(n):undefined}}return function(e,t,r){if(arguments.length>1){let n="";if("number"==typeof r?n=" ".repeat(Math.min(r,10)):"string"==typeof r&&(n=r.slice(0,10)),null!=t){if("function"==typeof t)return m("",{"":e},[],t,n,"");if(Array.isArray(t))return b("",e,[],function(e){const t=new Set;for(const r of e)"string"!=typeof r&&"number"!=typeof r||t.add(String(r));return t}(t),n,"")}if(0!==n.length)return g("",e,[],n,"")}return y("",e,[])}}}}},{package:"@metamask/eth-json-rpc-middleware>safe-stable-stringify",file:"node_modules/safe-stable-stringify/index.js"}],[8047,{timers:6373},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){!function(n){const i=2147483647;function o(e){const t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);let r=1779033703,n=3144134277,i=1013904242,o=2773480762,s=1359893119,a=2600822924,u=528734635,l=1541459225;const c=new Uint32Array(64);function f(e){let f=0,d=e.length;for(;d>=64;){let h,p,m,b,g,y=r,w=n,_=i,v=o,E=s,T=a,S=u,A=l;for(p=0;p<16;p++)m=f+4*p,c[p]=(255&e[m])<<24|(255&e[m+1])<<16|(255&e[m+2])<<8|255&e[m+3];for(p=16;p<64;p++)h=c[p-2],b=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,h=c[p-15],g=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3,c[p]=(b+c[p-7]|0)+(g+c[p-16]|0)|0;for(p=0;p<64;p++)b=(((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&T^~E&S)|0)+(A+(t[p]+c[p]|0)|0)|0,g=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&w^y&_^w&_)|0,A=S,S=T,T=E,E=v+b|0,v=_,_=w,w=y,y=b+g|0;r=r+y|0,n=n+w|0,i=i+_|0,o=o+v|0,s=s+E|0,a=a+T|0,u=u+S|0,l=l+A|0,f+=64,d-=64}}f(e);let d,h=e.length%64,p=e.length/536870912|0,m=e.length<<3,b=h<56?56:120,g=e.slice(e.length-h,e.length);for(g.push(128),d=h+1;d<b;d++)g.push(0);return g.push(p>>>24&255),g.push(p>>>16&255),g.push(p>>>8&255),g.push(p>>>0&255),g.push(m>>>24&255),g.push(m>>>16&255),g.push(m>>>8&255),g.push(m>>>0&255),f(g),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,l>>>24&255,l>>>16&255,l>>>8&255,l>>>0&255]}function s(e,t,r){e=e.length<=64?e:o(e);const n=64+t.length+4,i=new Array(n),s=new Array(64);let a,u=[];for(a=0;a<64;a++)i[a]=54;for(a=0;a<e.length;a++)i[a]^=e[a];for(a=0;a<t.length;a++)i[64+a]=t[a];for(a=n-4;a<n;a++)i[a]=0;for(a=0;a<64;a++)s[a]=92;for(a=0;a<e.length;a++)s[a]^=e[a];function l(){for(let e=n-1;e>=n-4;e--){if(i[e]++,i[e]<=255)return;i[e]=0}}for(;r>=32;)l(),u=u.concat(o(s.concat(o(i)))),r-=32;return r>0&&(l(),u=u.concat(o(s.concat(o(i))).slice(0,r))),u}function a(e,t,r,n,i){let o;for(f(e,16*(2*r-1),i,0,16),o=0;o<2*r;o++)c(e,16*o,i,16),l(i,n),f(i,0,e,t+16*o,16);for(o=0;o<r;o++)f(e,t+2*o*16,e,16*o,16);for(o=0;o<r;o++)f(e,t+16*(2*o+1),e,16*(o+r),16)}function u(e,t){return e<<t|e>>>32-t}function l(e,t){f(e,0,t,0,16);for(let e=8;e>0;e-=2)t[4]^=u(t[0]+t[12],7),t[8]^=u(t[4]+t[0],9),t[12]^=u(t[8]+t[4],13),t[0]^=u(t[12]+t[8],18),t[9]^=u(t[5]+t[1],7),t[13]^=u(t[9]+t[5],9),t[1]^=u(t[13]+t[9],13),t[5]^=u(t[1]+t[13],18),t[14]^=u(t[10]+t[6],7),t[2]^=u(t[14]+t[10],9),t[6]^=u(t[2]+t[14],13),t[10]^=u(t[6]+t[2],18),t[3]^=u(t[15]+t[11],7),t[7]^=u(t[3]+t[15],9),t[11]^=u(t[7]+t[3],13),t[15]^=u(t[11]+t[7],18),t[1]^=u(t[0]+t[3],7),t[2]^=u(t[1]+t[0],9),t[3]^=u(t[2]+t[1],13),t[0]^=u(t[3]+t[2],18),t[6]^=u(t[5]+t[4],7),t[7]^=u(t[6]+t[5],9),t[4]^=u(t[7]+t[6],13),t[5]^=u(t[4]+t[7],18),t[11]^=u(t[10]+t[9],7),t[8]^=u(t[11]+t[10],9),t[9]^=u(t[8]+t[11],13),t[10]^=u(t[9]+t[8],18),t[12]^=u(t[15]+t[14],7),t[13]^=u(t[12]+t[15],9),t[14]^=u(t[13]+t[12],13),t[15]^=u(t[14]+t[13],18);for(let r=0;r<16;++r)e[r]+=t[r]}function c(e,t,r,n){for(let i=0;i<n;i++)r[i]^=e[t+i]}function f(e,t,r,n,i){for(;i--;)r[n++]=e[t++]}function d(e){if(!e||"number"!=typeof e.length)return!1;for(let t=0;t<e.length;t++){const r=e[t];if("number"!=typeof r||r%1||r<0||r>=256)return!1}return!0}function h(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function p(t,r,n,o,u,l,p){if(n=h(n,"N"),o=h(o,"r"),u=h(u,"p"),l=h(l,"dkLen"),0===n||n&n-1)throw new Error("N must be power of 2");if(n>i/128/o)throw new Error("N too large");if(o>i/128/u)throw new Error("r too large");if(!d(t))throw new Error("password must be an array or buffer");if(t=Array.prototype.slice.call(t),!d(r))throw new Error("salt must be an array or buffer");r=Array.prototype.slice.call(r);let m=s(t,r,128*u*o);const b=new Uint32Array(32*u*o);for(let e=0;e<b.length;e++){const t=4*e;b[e]=(255&m[t+3])<<24|(255&m[t+2])<<16|(255&m[t+1])<<8|255&m[t+0]}const g=new Uint32Array(64*o),y=new Uint32Array(32*o*n),w=32*o,_=new Uint32Array(16),v=new Uint32Array(16),E=u*n*2;let T,S,A=0,I=null,x=!1,R=0,j=0;const k=p?parseInt(1e3/o):4294967295,P=void 0!==e?e:setTimeout,O=function(){if(x)return p(new Error("cancelled"),A/E);let e;switch(R){case 0:S=32*j*o,f(b,S,g,0,w),R=1,T=0;case 1:e=n-T,e>k&&(e=k);for(let t=0;t<e;t++)f(g,0,y,(T+t)*w,w),a(g,w,o,_,v);if(T+=e,A+=e,p){const e=parseInt(1e3*A/E);if(e!==I){if(x=p(null,A/E),x)break;I=e}}if(T<n)break;T=0,R=2;case 2:e=n-T,e>k&&(e=k);for(let t=0;t<e;t++){const e=g[16*(2*o-1)]&n-1;c(y,e*w,g,w),a(g,w,o,_,v)}if(T+=e,A+=e,p){const e=parseInt(1e3*A/E);if(e!==I){if(x=p(null,A/E),x)break;I=e}}if(T<n)break;if(f(g,0,b,S,w),j++,j<u){R=0;break}m=[];for(let e=0;e<b.length;e++)m.push(255&b[e]),m.push(b[e]>>8&255),m.push(b[e]>>16&255),m.push(b[e]>>24&255);const r=s(t,m,l);return p&&p(null,1,r),r}p&&P(O)};if(!p)for(;;){const e=O();if(e!=undefined)return e}O()}const m={scrypt:function(e,t,r,n,i,o,s){return new Promise(function(a,u){let l=0;s&&s(0),p(e,t,r,n,i,o,function(e,t,r){if(e)u(e);else if(r)s&&1!==l&&s(1),a(new Uint8Array(r));else if(s&&t!==l)return l=t,s(t)})})},syncScrypt:function(e,t,r,n,i,o){return new Uint8Array(p(e,t,r,n,i,o))}};void 0!==r?t.exports=m:"function"==typeof define&&define.amd?define(m):n&&(n.scrypt&&(n._scrypt=n.scrypt),n.scrypt=m)}(this)}).call(this)}).call(this,e("timers").setImmediate)}}},{package:"ethers>@ethersproject/json-wallets>scrypt-js",file:"node_modules/scrypt-js/scrypt.js"}],[8048,{"./lib":8050,"./lib/elliptic":8049},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("./lib")(e("./lib/elliptic"))}}},{package:"ethereumjs-util>ethereum-cryptography>secp256k1",file:"node_modules/secp256k1/elliptic.js"}],[8049,{elliptic:6559},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=new(0,e("elliptic").ec)("secp256k1"),i=n.curve,o=i.n.constructor;function s(e){const t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){let r=new o(t);if(r.cmp(i.p)>=0)return null;r=r.toRed(i.red);let s=r.redSqr().redIMul(r).redIAdd(i.b).redSqrt();3===e!==s.isOdd()&&(s=s.redNeg());const a=r.redSqr().redIMul(r);return s.redSqr().redISub(a.redIAdd(i.b)).isZero()?n.keyPair({pub:{x:r,y:s}}):null}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,r){let s=new o(t),a=new o(r);if(s.cmp(i.p)>=0||a.cmp(i.p)>=0)return null;if(s=s.toRed(i.red),a=a.toRed(i.red),(6===e||7===e)&&a.isOdd()!==(7===e))return null;const u=s.redSqr().redIMul(s);return a.redSqr().redISub(u.redIAdd(i.b)).isZero()?n.keyPair({pub:{x:s,y:a}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function a(e,t){const r=t.encode(null,33===e.length);for(let t=0;t<e.length;++t)e[t]=r[t]}t.exports={contextRandomize:()=>0,privateKeyVerify(e){const t=new o(e);return t.cmp(i.n)<0&&!t.isZero()?0:1},privateKeyNegate(e){const t=new o(e),r=i.n.sub(t).umod(i.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd(e,t){const r=new o(t);if(r.cmp(i.n)>=0)return 1;if(r.iadd(new o(e)),r.cmp(i.n)>=0&&r.isub(i.n),r.isZero())return 1;const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul(e,t){let r=new o(t);if(r.cmp(i.n)>=0||r.isZero())return 1;r.imul(new o(e)),r.cmp(i.n)>=0&&(r=r.umod(i.n));const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify:e=>null===s(e)?1:0,publicKeyCreate(e,t){const r=new o(t);if(r.cmp(i.n)>=0||r.isZero())return 1;return a(e,n.keyFromPrivate(t).getPublic()),0},publicKeyConvert(e,t){const r=s(t);if(null===r)return 1;return a(e,r.getPublic()),0},publicKeyNegate(e,t){const r=s(t);if(null===r)return 1;const n=r.getPublic();return n.y=n.y.redNeg(),a(e,n),0},publicKeyCombine(e,t){const r=new Array(t.length);for(let e=0;e<t.length;++e)if(r[e]=s(t[e]),null===r[e])return 1;let n=r[0].getPublic();for(let e=1;e<r.length;++e)n=n.add(r[e].pub);return n.isInfinity()?2:(a(e,n),0)},publicKeyTweakAdd(e,t,r){const n=s(t);if(null===n)return 1;if((r=new o(r)).cmp(i.n)>=0)return 2;const u=n.getPublic().add(i.g.mul(r));return u.isInfinity()?2:(a(e,u),0)},publicKeyTweakMul(e,t,r){const n=s(t);if(null===n)return 1;if((r=new o(r)).cmp(i.n)>=0||r.isZero())return 2;return a(e,n.getPublic().mul(r)),0},signatureNormalize(e){const t=new o(e.subarray(0,32)),r=new o(e.subarray(32,64));return t.cmp(i.n)>=0||r.cmp(i.n)>=0?1:(1===r.cmp(n.nh)&&e.set(i.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const r=t.subarray(0,32),n=t.subarray(32,64);if(new o(r).cmp(i.n)>=0)return 1;if(new o(n).cmp(i.n)>=0)return 1;const{output:s}=e;let a=s.subarray(4,37);a[0]=0,a.set(r,1);let u=33,l=0;for(;u>1&&0===a[l]&&!(128&a[l+1]);--u,++l);if(a=a.subarray(l),128&a[0])return 1;if(u>1&&0===a[0]&&!(128&a[1]))return 1;let c=s.subarray(39,72);c[0]=0,c.set(n,1);let f=33,d=0;for(;f>1&&0===c[d]&&!(128&c[d+1]);--f,++d);return c=c.subarray(d),128&c[0]||f>1&&0===c[0]&&!(128&c[1])?1:(e.outputlen=6+u+f,s[0]=48,s[1]=e.outputlen-2,s[2]=2,s[3]=a.length,s.set(a,4),s[4+u]=2,s[5+u]=c.length,s.set(c,6+u),0)},signatureImport(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;const r=t[3];if(0===r)return 1;if(5+r>=t.length)return 1;if(2!==t[4+r])return 1;const n=t[5+r];if(0===n)return 1;if(6+r+n!==t.length)return 1;if(128&t[4])return 1;if(r>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[r+6])return 1;if(n>1&&0===t[r+6]&&!(128&t[r+7]))return 1;let s=t.subarray(4,4+r);if(33===s.length&&0===s[0]&&(s=s.subarray(1)),s.length>32)return 1;let a=t.subarray(6+r);if(33===a.length&&0===a[0]&&(a=a.slice(1)),a.length>32)throw new Error("S length is too long");let u=new o(s);u.cmp(i.n)>=0&&(u=new o(0));let l=new o(t.subarray(6+r));return l.cmp(i.n)>=0&&(l=new o(0)),e.set(u.toArrayLike(Uint8Array,"be",32),0),e.set(l.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,r,s,a){if(a){const e=a;a=n=>{const i=e(t,r,null,s,n);if(!(i instanceof Uint8Array&&32===i.length))throw new Error("This is the way");return new o(i)}}const u=new o(r);if(u.cmp(i.n)>=0||u.isZero())return 1;let l;try{l=n.sign(t,r,{canonical:!0,k:a,pers:s})}catch(e){return 1}return e.signature.set(l.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(l.s.toArrayLike(Uint8Array,"be",32),32),e.recid=l.recoveryParam,0},ecdsaVerify(e,t,r){const a={r:e.subarray(0,32),s:e.subarray(32,64)},u=new o(a.r),l=new o(a.s);if(u.cmp(i.n)>=0||l.cmp(i.n)>=0)return 1;if(1===l.cmp(n.nh)||u.isZero()||l.isZero())return 3;const c=s(r);if(null===c)return 2;const f=c.getPublic();return n.verify(t,a,f)?0:3},ecdsaRecover(e,t,r,s){const u={r:t.slice(0,32),s:t.slice(32,64)},l=new o(u.r),c=new o(u.s);if(l.cmp(i.n)>=0||c.cmp(i.n)>=0)return 1;if(l.isZero()||c.isZero())return 2;let f;try{f=n.recoverPubKey(s,u,r)}catch(e){return 2}return a(e,f),0},ecdh(e,t,r,a,u,l,c){const f=s(t);if(null===f)return 1;const d=new o(r);if(d.cmp(i.n)>=0||d.isZero())return 2;const h=f.getPublic().mul(d);if(u===undefined){const t=h.encode(null,!0),r=n.hash().update(t).digest();for(let t=0;t<32;++t)e[t]=r[t]}else{l||(l=new Uint8Array(32));const t=h.getX().toArray("be",32);for(let e=0;e<32;++e)l[e]=t[e];c||(c=new Uint8Array(32));const r=h.getY().toArray("be",32);for(let e=0;e<32;++e)c[e]=r[e];const n=u(l,c,a);if(!(n instanceof Uint8Array&&n.length===e.length))return 2;e.set(n)}return 0}}}}},{package:"ethereumjs-util>ethereum-cryptography>secp256k1",file:"node_modules/secp256k1/lib/elliptic.js"}],[805,{"./bytes.js":804,"ethereum-cryptography/secp256k1.js":838},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BIGINT_2EXP256=r.BIGINT_2EXP224=r.BIGINT_2EXP160=r.BIGINT_2EXP96=r.BIGINT_224=r.BIGINT_160=r.BIGINT_100=r.BIGINT_96=r.BIGINT_256=r.BIGINT_255=r.BIGINT_128=r.BIGINT_64=r.BIGINT_32=r.BIGINT_31=r.BIGINT_28=r.BIGINT_27=r.BIGINT_8=r.BIGINT_7=r.BIGINT_3=r.BIGINT_2=r.BIGINT_1=r.BIGINT_0=r.BIGINT_NEG1=r.RIPEMD160_ADDRESS_STRING=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("ethereum-cryptography/secp256k1.js"),i=e("./bytes.js");r.MAX_UINT64=BigInt("0xffffffffffffffff"),r.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),r.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),r.SECP256K1_ORDER=n.secp256k1.CURVE.n,r.SECP256K1_ORDER_DIV_2=n.secp256k1.CURVE.n/BigInt(2),r.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),r.KECCAK256_NULL_S="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.KECCAK256_NULL=(0,i.hexToBytes)(r.KECCAK256_NULL_S),r.KECCAK256_RLP_ARRAY_S="0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.KECCAK256_RLP_ARRAY=(0,i.hexToBytes)(r.KECCAK256_RLP_ARRAY_S),r.KECCAK256_RLP_S="0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.KECCAK256_RLP=(0,i.hexToBytes)(r.KECCAK256_RLP_S),r.RLP_EMPTY_STRING=Uint8Array.from([128]),r.MAX_WITHDRAWALS_PER_PAYLOAD=16,r.RIPEMD160_ADDRESS_STRING="0000000000000000000000000000000000000003",r.BIGINT_NEG1=BigInt(-1),r.BIGINT_0=BigInt(0),r.BIGINT_1=BigInt(1),r.BIGINT_2=BigInt(2),r.BIGINT_3=BigInt(3),r.BIGINT_7=BigInt(7),r.BIGINT_8=BigInt(8),r.BIGINT_27=BigInt(27),r.BIGINT_28=BigInt(28),r.BIGINT_31=BigInt(31),r.BIGINT_32=BigInt(32),r.BIGINT_64=BigInt(64),r.BIGINT_128=BigInt(128),r.BIGINT_255=BigInt(255),r.BIGINT_256=BigInt(256),r.BIGINT_96=BigInt(96),r.BIGINT_100=BigInt(100),r.BIGINT_160=BigInt(160),r.BIGINT_224=BigInt(224),r.BIGINT_2EXP96=BigInt(7922816251426434e13),r.BIGINT_2EXP160=BigInt(1461501637330903e33),r.BIGINT_2EXP224=BigInt(2695994666715064e52),r.BIGINT_2EXP256=r.BIGINT_2**r.BIGINT_256}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/constants.js"}],[8050,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n="Impossible case. Please create issue.",i="The tweak was out of range or the resulted private key is invalid",o="The tweak was out of range or equal to zero",s="Unknow error on context randomization",a="Private Key is invalid",u="Public Key could not be parsed",l="Public Key serialization error",c="The sum of the public keys is not valid",f="Signature could not be parsed",d="The nonce generation function failed, or the private key was invalid",h="Public key could not be recover",p="Scalar was invalid (zero or overflow)";function m(e,t){if(!e)throw new Error(t)}function b(e,t,r){if(m(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),r!==undefined)if(Array.isArray(r)){const n=`Expected ${e} to be an Uint8Array with length [${r.join(", ")}]`;m(r.includes(t.length),n)}else{const n=`Expected ${e} to be an Uint8Array with length ${r}`;m(t.length===r,n)}}function g(e){m("Boolean"===w(e),"Expected compressed to be a Boolean")}function y(e=e=>new Uint8Array(e),t){return"function"==typeof e&&(e=e(t)),b("output",e,t),e}function w(e){return Object.prototype.toString.call(e).slice(8,-1)}t.exports=e=>({contextRandomize(t){if(m(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&b("seed",t,32),1===e.contextRandomize(t))throw new Error(s)},privateKeyVerify:t=>(b("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(t){switch(b("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(n)}},privateKeyTweakAdd(t,r){switch(b("private key",t,32),b("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw new Error(i)}},privateKeyTweakMul(t,r){switch(b("private key",t,32),b("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw new Error(o)}},publicKeyVerify:t=>(b("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,r=!0,n){switch(b("private key",t,32),g(r),n=y(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw new Error(a);case 2:throw new Error(l)}},publicKeyConvert(t,r=!0,n){switch(b("public key",t,[33,65]),g(r),n=y(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw new Error(u);case 2:throw new Error(l)}},publicKeyNegate(t,r=!0,i){switch(b("public key",t,[33,65]),g(r),i=y(i,r?33:65),e.publicKeyNegate(i,t)){case 0:return i;case 1:throw new Error(u);case 2:throw new Error(n);case 3:throw new Error(l)}},publicKeyCombine(t,r=!0,n){m(Array.isArray(t),"Expected public keys to be an Array"),m(t.length>0,"Expected public keys array will have more than zero items");for(const e of t)b("public key",e,[33,65]);switch(g(r),n=y(n,r?33:65),e.publicKeyCombine(n,t)){case 0:return n;case 1:throw new Error(u);case 2:throw new Error(c);case 3:throw new Error(l)}},publicKeyTweakAdd(t,r,n=!0,o){switch(b("public key",t,[33,65]),b("tweak",r,32),g(n),o=y(o,n?33:65),e.publicKeyTweakAdd(o,t,r)){case 0:return o;case 1:throw new Error(u);case 2:throw new Error(i)}},publicKeyTweakMul(t,r,n=!0,i){switch(b("public key",t,[33,65]),b("tweak",r,32),g(n),i=y(i,n?33:65),e.publicKeyTweakMul(i,t,r)){case 0:return i;case 1:throw new Error(u);case 2:throw new Error(o)}},signatureNormalize(t){switch(b("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(f)}},signatureExport(t,r){b("signature",t,64);const i={output:r=y(r,72),outputlen:72};switch(e.signatureExport(i,t)){case 0:return r.slice(0,i.outputlen);case 1:throw new Error(f);case 2:throw new Error(n)}},signatureImport(t,r){switch(b("signature",t),r=y(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw new Error(f);case 2:throw new Error(n)}},ecdsaSign(t,r,i={},o){b("message",t,32),b("private key",r,32),m("Object"===w(i),"Expected options to be an Object"),i.data!==undefined&&b("options.data",i.data),i.noncefn!==undefined&&m("Function"===w(i.noncefn),"Expected options.noncefn to be a Function");const s={signature:o=y(o,64),recid:null};switch(e.ecdsaSign(s,t,r,i.data,i.noncefn)){case 0:return s;case 1:throw new Error(d);case 2:throw new Error(n)}},ecdsaVerify(t,r,n){switch(b("signature",t,64),b("message",r,32),b("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(f);case 2:throw new Error(u)}},ecdsaRecover(t,r,i,o=!0,s){switch(b("signature",t,64),m("Number"===w(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),b("message",i,32),g(o),s=y(s,o?33:65),e.ecdsaRecover(s,t,r,i)){case 0:return s;case 1:throw new Error(f);case 2:throw new Error(h);case 3:throw new Error(n)}},ecdh(t,r,n={},i){switch(b("public key",t,[33,65]),b("private key",r,32),m("Object"===w(n),"Expected options to be an Object"),n.data!==undefined&&b("options.data",n.data),n.hashfn!==undefined?(m("Function"===w(n.hashfn),"Expected options.hashfn to be a Function"),n.xbuf!==undefined&&b("options.xbuf",n.xbuf,32),n.ybuf!==undefined&&b("options.ybuf",n.ybuf,32),b("output",i)):i=y(i,32),e.ecdh(i,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(u);case 2:throw new Error(p)}}})}}},{package:"ethereumjs-util>ethereum-cryptography>secp256k1",file:"node_modules/secp256k1/lib/index.js"}],[8051,{"../functions/cmp":8055,"../internal/debug":8080,"../internal/parse-options":8083,"../internal/re":8084,"./range":8052,"./semver":8053},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==undefined?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new f(e.value,t).test(this.value):""===e.operator?""===e.value||new f(this.value,t).test(e.semver):(!(t=o(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}t.exports=i;const o=e("../internal/parse-options"),{safeRe:s,t:a}=e("../internal/re"),u=e("../functions/cmp"),l=e("../internal/debug"),c=e("./semver"),f=e("./range")}}},{package:"semver",file:"node_modules/semver/classes/comparator.js"}],[8052,{"../internal/constants":8079,"../internal/debug":8080,"../internal/lrucache":8082,"../internal/parse-options":8083,"../internal/re":8084,"./comparator":8051,"./semver":8053},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=/\s+/g;class i{constructor(e,t){if(t=s(t),e instanceof i)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new i(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=undefined,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&b))+":"+e,r=o.get(t);if(r)return r;const n=this.options.loose,i=n?c[f.HYPHENRANGELOOSE]:c[f.HYPHENRANGE];e=e.replace(i,k(this.options.includePrerelease)),u("hyphen replace",e),e=e.replace(c[f.COMPARATORTRIM],d),u("comparator trim",e),e=e.replace(c[f.TILDETRIM],h),u("tilde trim",e),e=e.replace(c[f.CARETTRIM],p),u("caret trim",e);let s=e.split(" ").map(e=>_(e,this.options)).join(" ").split(/\s+/).map(e=>j(e,this.options));n&&(s=s.filter(e=>(u("loose invalid filter",e,this.options),!!e.match(c[f.COMPARATORLOOSE])))),u("range list",s);const l=new Map,y=s.map(e=>new a(e,this.options));for(const e of y){if(g(e))return[e];l.set(e.value,e)}l.size>1&&l.has("")&&l.delete("");const w=[...l.values()];return o.set(t,w),w}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Range is required");return this.set.some(r=>w(r,t)&&e.set.some(e=>w(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}}t.exports=i;const o=new(e("../internal/lrucache")),s=e("../internal/parse-options"),a=e("./comparator"),u=e("../internal/debug"),l=e("./semver"),{safeRe:c,t:f,comparatorTrimReplace:d,tildeTrimReplace:h,caretTrimReplace:p}=e("../internal/re"),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:b}=e("../internal/constants"),g=e=>"<0.0.0-0"===e.value,y=e=>""===e.value,w=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r},_=(e,t)=>(e=e.replace(c[f.BUILD],""),u("comp",e,t),e=S(e,t),u("caret",e),e=E(e,t),u("tildes",e),e=I(e,t),u("xrange",e),e=R(e,t),u("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(" "),T=(e,t)=>{const r=t.loose?c[f.TILDELOOSE]:c[f.TILDE];return e.replace(r,(t,r,n,i,o)=>{let s;return u("tilde",e,t,r,n,i,o),v(r)?s="":v(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:v(i)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(u("replaceTilde pr",o),s=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,u("tilde return",s),s})},S=(e,t)=>e.trim().split(/\s+/).map(e=>A(e,t)).join(" "),A=(e,t)=>{u("caret",e,t);const r=t.loose?c[f.CARETLOOSE]:c[f.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,s)=>{let a;return u("caret",e,t,r,i,o,s),v(r)?a="":v(i)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:v(o)?a="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(u("replaceCaret pr",s),a="0"===r?"0"===i?`>=${r}.${i}.${o}-${s} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${s} <${+r+1}.0.0-0`):(u("no pr"),a="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),u("caret return",a),a})},I=(e,t)=>(u("replaceXRanges",e,t),e.split(/\s+/).map(e=>x(e,t)).join(" ")),x=(e,t)=>{e=e.trim();const r=t.loose?c[f.XRANGELOOSE]:c[f.XRANGE];return e.replace(r,(r,n,i,o,s,a)=>{u("xRange",e,r,n,i,o,s,a);const l=v(i),c=l||v(o),f=c||v(s),d=f;return"="===n&&d&&(n=""),a=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(c&&(o=0),s=0,">"===n?(n=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===n&&(n="<",c?i=+i+1:o=+o+1),"<"===n&&(a="-0"),r=`${n+i}.${o}.${s}${a}`):c?r=`>=${i}.0.0${a} <${+i+1}.0.0-0`:f&&(r=`>=${i}.${o}.0${a} <${i}.${+o+1}.0-0`),u("xRange return",r),r})},R=(e,t)=>(u("replaceStars",e,t),e.trim().replace(c[f.STAR],"")),j=(e,t)=>(u("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?f.GTE0PRE:f.GTE0],"")),k=e=>(t,r,n,i,o,s,a,u,l,c,f,d)=>`${r=v(n)?"":v(i)?`>=${n}.0.0${e?"-0":""}`:v(o)?`>=${n}.${i}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`} ${u=v(l)?"":v(c)?`<${+l+1}.0.0-0`:v(f)?`<${l}.${+c+1}.0-0`:d?`<=${l}.${c}.${f}-${d}`:e?`<${l}.${c}.${+f+1}-0`:`<=${u}`}`.trim(),P=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(u(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}}}},{package:"semver",file:"node_modules/semver/classes/range.js"}],[8053,{"../internal/constants":8079,"../internal/debug":8080,"../internal/identifiers":8081,"../internal/parse-options":8083,"../internal/re":8084},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../internal/debug"),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=e("../internal/constants"),{safeRe:s,t:a}=e("../internal/re"),u=e("../internal/parse-options"),{compareIdentifiers:l}=e("../internal/identifiers");class c{constructor(e,t){if(t=u(t),e instanceof c){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof c)){if("string"==typeof e&&e===this.version)return 0;e=new c(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof c||(e=new c(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),r===undefined&&i===undefined)return 0;if(i===undefined)return 1;if(r===undefined)return-1;if(r!==i)return l(r,i)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{const r=this.build[t],i=e.build[t];if(n("build compare",t,r,i),r===undefined&&i===undefined)return 0;if(i===undefined)return 1;if(r===undefined)return-1;if(r!==i)return l(r,i)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?s[a.PRERELEASELOOSE]:s[a.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=c}}},{package:"semver",file:"node_modules/semver/classes/semver.js"}],[8054,{"./parse":8070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse");t.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}}}},{package:"semver",file:"node_modules/semver/functions/clean.js"}],[8055,{"./eq":8061,"./gt":8062,"./gte":8063,"./lt":8065,"./lte":8066,"./neq":8069},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./eq"),i=e("./neq"),o=e("./gt"),s=e("./gte"),a=e("./lt"),u=e("./lte");t.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,l);case"!=":return i(e,r,l);case">":return o(e,r,l);case">=":return s(e,r,l);case"<":return a(e,r,l);case"<=":return u(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}}}},{package:"semver",file:"node_modules/semver/functions/cmp.js"}],[8056,{"../classes/semver":8053,"../internal/re":8084,"./parse":8070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),i=e("./parse"),{safeRe:o,t:s}=e("../internal/re");t.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const n=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];let i;for(;(i=n.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&i.index+i[0].length===r.index+r[0].length||(r=i),n.lastIndex=i.index+i[1].length+i[2].length;n.lastIndex=-1}else r=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===r)return null;const a=r[2],u=r[3]||"0",l=r[4]||"0",c=t.includePrerelease&&r[5]?`-${r[5]}`:"",f=t.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${a}.${u}.${l}${c}${f}`,t)}}}},{package:"semver",file:"node_modules/semver/functions/coerce.js"}],[8057,{"../classes/semver":8053},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r)=>{const i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)}}}},{package:"semver",file:"node_modules/semver/functions/compare-build.js"}],[8058,{"./compare":8059},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t)=>n(e,t,!0)}}},{package:"semver",file:"node_modules/semver/functions/compare-loose.js"}],[8059,{"../classes/semver":8053},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))}}},{package:"semver",file:"node_modules/semver/functions/compare.js"}],[806,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueEncoding=r.KeyEncoding=void 0,function(e){e.String="string",e.Bytes="view",e.Number="number"}(r.KeyEncoding||(r.KeyEncoding={})),function(e){e.String="string",e.Bytes="view",e.JSON="json"}(r.ValueEncoding||(r.ValueEncoding={}))}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/db.js"}],[8060,{"./parse.js":8070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse.js");t.exports=(e,t)=>{const r=n(e,null,!0),i=n(t,null,!0),o=r.compare(i);if(0===o)return null;const s=o>0,a=s?r:i,u=s?i:r,l=!!a.prerelease.length;if(!!u.prerelease.length&&!l){if(!u.patch&&!u.minor)return"major";if(0===u.compareMain(a))return u.minor&&!u.patch?"minor":"patch"}const c=l?"pre":"";return r.major!==i.major?c+"major":r.minor!==i.minor?c+"minor":r.patch!==i.patch?c+"patch":"prerelease"}}}},{package:"semver",file:"node_modules/semver/functions/diff.js"}],[8061,{"./compare":8059},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>0===n(e,t,r)}}},{package:"semver",file:"node_modules/semver/functions/eq.js"}],[8062,{"./compare":8059},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)>0}}},{package:"semver",file:"node_modules/semver/functions/gt.js"}],[8063,{"./compare":8059},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)>=0}}},{package:"semver",file:"node_modules/semver/functions/gte.js"}],[8064,{"../classes/semver":8053},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=undefined);try{return new n(e instanceof n?e.version:e,r).inc(t,i,o).version}catch(e){return null}}}}},{package:"semver",file:"node_modules/semver/functions/inc.js"}],[8065,{"./compare":8059},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)<0}}},{package:"semver",file:"node_modules/semver/functions/lt.js"}],[8066,{"./compare":8059},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)<=0}}},{package:"semver",file:"node_modules/semver/functions/lte.js"}],[8067,{"../classes/semver":8053},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t)=>new n(e,t).major}}},{package:"semver",file:"node_modules/semver/functions/major.js"}],[8068,{"../classes/semver":8053},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t)=>new n(e,t).minor}}},{package:"semver",file:"node_modules/semver/functions/minor.js"}],[8069,{"./compare":8059},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>0!==n(e,t,r)}}},{package:"semver",file:"node_modules/semver/functions/neq.js"}],[807,{"./bytes.js":804,"./internal.js":810},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseGethGenesisState=void 0;const n=e("./bytes.js"),i=e("./internal.js");r.parseGethGenesisState=function(e){const t={};for(const r of Object.keys(e.alloc)){let{balance:o,code:s,storage:a,nonce:u}=e.alloc[r];const l=(0,n.addHexPrefix)(r.toLowerCase());o=(0,i.isHexString)(o)?o:(0,n.bigIntToHex)(BigInt(o)),s=s!==undefined?(0,n.addHexPrefix)(s):undefined,a=a!==undefined?Object.entries(a):undefined,u=u!==undefined?(0,n.addHexPrefix)(u):undefined,t[l]=[o,s,a,u]}return t}}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/genesis.js"}],[8070,{"../classes/semver":8053},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}}}},{package:"semver",file:"node_modules/semver/functions/parse.js"}],[8071,{"../classes/semver":8053},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t)=>new n(e,t).patch}}},{package:"semver",file:"node_modules/semver/functions/patch.js"}],[8072,{"./parse":8070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse");t.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}}}},{package:"semver",file:"node_modules/semver/functions/prerelease.js"}],[8073,{"./compare":8059},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(t,e,r)}}},{package:"semver",file:"node_modules/semver/functions/rcompare.js"}],[8074,{"./compare-build":8057},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare-build");t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))}}},{package:"semver",file:"node_modules/semver/functions/rsort.js"}],[8075,{"../classes/range":8052},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}}}},{package:"semver",file:"node_modules/semver/functions/satisfies.js"}],[8076,{"./compare-build":8057},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare-build");t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))}}},{package:"semver",file:"node_modules/semver/functions/sort.js"}],[8077,{"./parse":8070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse");t.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}}}},{package:"semver",file:"node_modules/semver/functions/valid.js"}],[8078,{"./classes/comparator":8051,"./classes/range":8052,"./classes/semver":8053,"./functions/clean":8054,"./functions/cmp":8055,"./functions/coerce":8056,"./functions/compare":8059,"./functions/compare-build":8057,"./functions/compare-loose":8058,"./functions/diff":8060,"./functions/eq":8061,"./functions/gt":8062,"./functions/gte":8063,"./functions/inc":8064,"./functions/lt":8065,"./functions/lte":8066,"./functions/major":8067,"./functions/minor":8068,"./functions/neq":8069,"./functions/parse":8070,"./functions/patch":8071,"./functions/prerelease":8072,"./functions/rcompare":8073,"./functions/rsort":8074,"./functions/satisfies":8075,"./functions/sort":8076,"./functions/valid":8077,"./internal/constants":8079,"./internal/identifiers":8081,"./internal/re":8084,"./ranges/gtr":8085,"./ranges/intersects":8086,"./ranges/ltr":8087,"./ranges/max-satisfying":8088,"./ranges/min-satisfying":8089,"./ranges/min-version":8090,"./ranges/outside":8091,"./ranges/simplify":8092,"./ranges/subset":8093,"./ranges/to-comparators":8094,"./ranges/valid":8095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./internal/re"),i=e("./internal/constants"),o=e("./classes/semver"),s=e("./internal/identifiers"),a=e("./functions/parse"),u=e("./functions/valid"),l=e("./functions/clean"),c=e("./functions/inc"),f=e("./functions/diff"),d=e("./functions/major"),h=e("./functions/minor"),p=e("./functions/patch"),m=e("./functions/prerelease"),b=e("./functions/compare"),g=e("./functions/rcompare"),y=e("./functions/compare-loose"),w=e("./functions/compare-build"),_=e("./functions/sort"),v=e("./functions/rsort"),E=e("./functions/gt"),T=e("./functions/lt"),S=e("./functions/eq"),A=e("./functions/neq"),I=e("./functions/gte"),x=e("./functions/lte"),R=e("./functions/cmp"),j=e("./functions/coerce"),k=e("./classes/comparator"),P=e("./classes/range"),O=e("./functions/satisfies"),L=e("./ranges/to-comparators"),C=e("./ranges/max-satisfying"),M=e("./ranges/min-satisfying"),N=e("./ranges/min-version"),B=e("./ranges/valid"),D=e("./ranges/outside"),U=e("./ranges/gtr"),F=e("./ranges/ltr"),$=e("./ranges/intersects"),H=e("./ranges/simplify"),G=e("./ranges/subset");t.exports={parse:a,valid:u,clean:l,inc:c,diff:f,major:d,minor:h,patch:p,prerelease:m,compare:b,rcompare:g,compareLoose:y,compareBuild:w,sort:_,rsort:v,gt:E,lt:T,eq:S,neq:A,gte:I,lte:x,cmp:R,coerce:j,Comparator:k,Range:P,satisfies:O,toComparators:L,maxSatisfying:C,minSatisfying:M,minVersion:N,validRange:B,outside:D,gtr:U,ltr:F,intersects:$,simplifyRange:H,subset:G,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}}}},{package:"semver",file:"node_modules/semver/index.js"}],[8079,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}},{package:"semver",file:"node_modules/semver/internal/constants.js"}],[808,{"./internal.js":810},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.assertIsString=r.assertIsArray=r.assertIsBytes=r.assertIsHexString=void 0;const n=e("./internal.js");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.assertIsBytes=function(e){if(!(e instanceof Uint8Array)){throw new Error(`This method only supports Uint8Array 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}`)}}}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/helpers.js"}],[8080,{_process:7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){const r=("object"==typeof e&&e.env,()=>{});t.exports=r}).call(this)}).call(this,e("_process"))}}},{package:"semver",file:"node_modules/semver/internal/debug.js"}],[8081,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=/^[0-9]+$/,i=(e,t)=>{if("number"==typeof e&&"number"==typeof t)return e===t?0:e<t?-1:1;const r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:i,rcompareIdentifiers:(e,t)=>i(t,e)}}}},{package:"semver",file:"node_modules/semver/internal/identifiers.js"}],[8082,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return t===undefined?undefined:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}}}},{package:"semver",file:"node_modules/semver/internal/lrucache.js"}],[8083,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Object.freeze({loose:!0}),i=Object.freeze({});t.exports=e=>e?"object"!=typeof e?n:e:i}}},{package:"semver",file:"node_modules/semver/internal/parse-options.js"}],[8084,{"./constants":8079,"./debug":8080},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=e("./constants"),s=e("./debug"),a=(r=t.exports={}).re=[],u=r.safeRe=[],l=r.src=[],c=r.safeSrc=[],f=r.t={};let d=0;const h="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[h,i]],m=(e,t,r)=>{const n=(e=>{for(const[t,r]of p)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),i=d++;s(e,i,t),f[e]=i,l[i]=t,c[i]=n,a[i]=new RegExp(t,r?"g":undefined),u[i]=new RegExp(n,r?"g":undefined)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),m("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${l[f.NONNUMERICIDENTIFIER]}|${l[f.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NONNUMERICIDENTIFIER]}|${l[f.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${h}+`),m("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`),m("FULL",`^${l[f.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`),m("LOOSE",`^${l[f.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?)?)?`),m("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${l[f.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",l[f.COERCEPLAIN]+`(?:${l[f.PRERELEASE]})?`+`(?:${l[f.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",l[f.COERCE],!0),m("COERCERTLFULL",l[f.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",m("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",m("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})\\s+-\\s+(${l[f.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[f.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}},{package:"semver",file:"node_modules/semver/internal/re.js"}],[8085,{"./outside":8091},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./outside");t.exports=(e,t,r)=>n(e,t,">",r)}}},{package:"semver",file:"node_modules/semver/ranges/gtr.js"}],[8086,{"../classes/range":8052},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))}}},{package:"semver",file:"node_modules/semver/ranges/intersects.js"}],[8087,{"./outside":8091},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./outside");t.exports=(e,t,r)=>n(e,t,"<",r)}}},{package:"semver",file:"node_modules/semver/ranges/ltr.js"}],[8088,{"../classes/range":8052,"../classes/semver":8053},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),i=e("../classes/range");t.exports=(e,t,r)=>{let o=null,s=null,a=null;try{a=new i(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(o&&-1!==s.compare(e)||(o=e,s=new n(o,r)))}),o}}}},{package:"semver",file:"node_modules/semver/ranges/max-satisfying.js"}],[8089,{"../classes/range":8052,"../classes/semver":8053},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),i=e("../classes/range");t.exports=(e,t,r)=>{let o=null,s=null,a=null;try{a=new i(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(o&&1!==s.compare(e)||(o=e,s=new n(o,r)))}),o}}}},{package:"semver",file:"node_modules/semver/ranges/min-satisfying.js"}],[809,{"./account.js":800,"./address.js":801,"./asyncEventEmitter.js":802,"./blobs.js":803,"./bytes.js":804,"./constants.js":805,"./db.js":806,"./genesis.js":807,"./internal.js":810,"./kzg.js":811,"./lock.js":812,"./mapDB.js":813,"./provider.js":814,"./requests.js":815,"./signature.js":816,"./types.js":817,"./units.js":818,"./verkle.js":819,"./withdrawal.js":820},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 i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.toAscii=r.stripHexPrefix=r.padToEven=r.isHexString=r.getKeys=r.getBinarySize=r.fromUtf8=r.fromAscii=r.arrayContainsArray=void 0,i(e("./constants.js"),r),i(e("./units.js"),r),i(e("./account.js"),r),i(e("./address.js"),r),i(e("./db.js"),r),i(e("./withdrawal.js"),r),i(e("./signature.js"),r),i(e("./bytes.js"),r),i(e("./types.js"),r),i(e("./asyncEventEmitter.js"),r),i(e("./blobs.js"),r),i(e("./genesis.js"),r);var o=e("./internal.js");Object.defineProperty(r,"arrayContainsArray",{enumerable:!0,get:function(){return o.arrayContainsArray}}),Object.defineProperty(r,"fromAscii",{enumerable:!0,get:function(){return o.fromAscii}}),Object.defineProperty(r,"fromUtf8",{enumerable:!0,get:function(){return o.fromUtf8}}),Object.defineProperty(r,"getBinarySize",{enumerable:!0,get:function(){return o.getBinarySize}}),Object.defineProperty(r,"getKeys",{enumerable:!0,get:function(){return o.getKeys}}),Object.defineProperty(r,"isHexString",{enumerable:!0,get:function(){return o.isHexString}}),Object.defineProperty(r,"padToEven",{enumerable:!0,get:function(){return o.padToEven}}),Object.defineProperty(r,"stripHexPrefix",{enumerable:!0,get:function(){return o.stripHexPrefix}}),Object.defineProperty(r,"toAscii",{enumerable:!0,get:function(){return o.toAscii}}),i(e("./kzg.js"),r),i(e("./lock.js"),r),i(e("./mapDB.js"),r),i(e("./provider.js"),r),i(e("./requests.js"),r),i(e("./verkle.js"),r)}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/index.js"}],[8090,{"../classes/range":8052,"../classes/semver":8053,"../functions/gt":8062},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),i=e("../classes/range"),o=e("../functions/gt");t.exports=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let s=null;i.forEach(e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!o(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),!s||r&&!o(r,s)||(r=s)}return r&&e.test(r)?r:null}}}},{package:"semver",file:"node_modules/semver/ranges/min-version.js"}],[8091,{"../classes/comparator":8051,"../classes/range":8052,"../classes/semver":8053,"../functions/gt":8062,"../functions/gte":8063,"../functions/lt":8065,"../functions/lte":8066,"../functions/satisfies":8075},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),i=e("../classes/comparator"),{ANY:o}=i,s=e("../classes/range"),a=e("../functions/satisfies"),u=e("../functions/gt"),l=e("../functions/lt"),c=e("../functions/lte"),f=e("../functions/gte");t.exports=(e,t,r,d)=>{let h,p,m,b,g;switch(e=new n(e,d),t=new s(t,d),r){case">":h=u,p=c,m=l,b=">",g=">=";break;case"<":h=l,p=f,m=u,b="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let s=null,a=null;if(n.forEach(e=>{e.semver===o&&(e=new i(">=0.0.0")),s=s||e,a=a||e,h(e.semver,s.semver,d)?s=e:m(e.semver,a.semver,d)&&(a=e)}),s.operator===b||s.operator===g)return!1;if((!a.operator||a.operator===b)&&p(e,a.semver))return!1;if(a.operator===g&&m(e,a.semver))return!1}return!0}}}},{package:"semver",file:"node_modules/semver/ranges/outside.js"}],[8092,{"../functions/compare.js":8059,"../functions/satisfies.js":8075},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../functions/satisfies.js"),i=e("../functions/compare.js");t.exports=(e,t,r)=>{const o=[];let s=null,a=null;const u=e.sort((e,t)=>i(e,t,r));for(const e of u){n(e,t,r)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null)}s&&o.push([s,null]);const l=[];for(const[e,t]of o)e===t?l.push(e):t||e!==u[0]?t?e===u[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const c=l.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return c.length<f.length?c:t}}}},{package:"semver",file:"node_modules/semver/ranges/simplify.js"}],[8093,{"../classes/comparator.js":8051,"../classes/range.js":8052,"../functions/compare.js":8059,"../functions/satisfies.js":8075},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range.js"),i=e("../classes/comparator.js"),{ANY:o}=i,s=e("../functions/satisfies.js"),a=e("../functions/compare.js"),u=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],c=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?u:l}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=l}const n=new Set;let i,c,h,p,m,b,g;for(const t of e)">"===t.operator||">="===t.operator?i=f(i,t,r):"<"===t.operator||"<="===t.operator?c=d(c,t,r):n.add(t.semver);if(n.size>1)return null;if(i&&c){if(h=a(i.semver,c.semver,r),h>0)return null;if(0===h&&(">="!==i.operator||"<="!==c.operator))return null}for(const e of n){if(i&&!s(e,String(i),r))return null;if(c&&!s(e,String(c),r))return null;for(const n of t)if(!s(e,String(n),r))return!1;return!0}let y=!(!c||r.includePrerelease||!c.semver.prerelease.length)&&c.semver,w=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;y&&1===y.prerelease.length&&"<"===c.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,b=b||"<"===e.operator||"<="===e.operator,i)if(w&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===w.major&&e.semver.minor===w.minor&&e.semver.patch===w.patch&&(w=!1),">"===e.operator||">="===e.operator){if(p=f(i,e,r),p===e&&p!==i)return!1}else if(">="===i.operator&&!s(i.semver,String(e),r))return!1;if(c)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(m=d(c,e,r),m===e&&m!==c)return!1}else if("<="===c.operator&&!s(c.semver,String(e),r))return!1;if(!e.operator&&(c||i)&&0!==h)return!1}return!(i&&b&&!c&&0!==h)&&(!(c&&g&&!i&&0!==h)&&(!w&&!y))},f=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},d=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};t.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;e:for(const n of e.set){for(const e of t.set){const t=c(n,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}}}},{package:"semver",file:"node_modules/semver/ranges/subset.js"}],[8094,{"../classes/range":8052},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))}}},{package:"semver",file:"node_modules/semver/ranges/to-comparators.js"}],[8095,{"../classes/range":8052},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}}}},{package:"semver",file:"node_modules/semver/ranges/valid.js"}],[8096,{"define-data-property":6539,"es-errors/type":6581,"get-intrinsic":6735,gopd:6749,"has-property-descriptors":6939},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("get-intrinsic"),i=e("define-data-property"),o=e("has-property-descriptors")(),s=e("gopd"),a=e("es-errors/type"),u=n("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in e&&s){var c=s(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(l=!1)}return(n||l||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}}}},{package:"string.prototype.matchall>call-bind>set-function-length",file:"node_modules/set-function-length/index.js"}],[8098,{timers:6373},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){t.exports="function"==typeof e?e:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}}).call(this)}).call(this,e("timers").setImmediate)}}},{package:"eth-method-registry>@metamask/ethjs-query>promise-to-callback>set-immediate-shim",file:"node_modules/set-immediate-shim/index.js"}],[8099,{"safe-buffer":8044,"to-buffer":8169},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,i=e("to-buffer");function o(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){e=i(e,t||"utf8");for(var r=this._block,n=this._blockSize,o=e.length,s=this._len,a=0;a<o;){for(var u=s%n,l=Math.min(o-a,n-u),c=0;c<l;c++)r[u+c]=e[a+c];a+=l,(s+=l)%n===0&&this._update(r)}return this._len+=o,this},o.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o}}},{package:"@ngraveio/bc-ur>sha.js",file:"node_modules/sha.js/hash.js"}],[810,{"./bytes.js":804},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getKeys=r.fromAscii=r.fromUtf8=r.toAscii=r.arrayContainsArray=r.getBinarySize=r.padToEven=r.stripHexPrefix=r.isHexString=void 0;const n=e("./bytes.js");function i(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&!(void 0!==t&&t>0&&e.length!==2+2*t)}r.isHexString=i;function o(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 i(e)?e.slice(2):e},r.padToEven=o,r.getBinarySize=function(e){if("string"!=typeof e)throw new Error("[getBinarySize] method requires input type 'string', received "+typeof e);return(0,n.utf8ToBytes)(e).byteLength},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(e){const t=(0,n.utf8ToBytes)(e);return`0x${o((0,n.bytesToUnprefixedHex)(t)).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 i=0;i<e.length;i++){let o=e[i][t];if(!0!==r||o){if("string"!=typeof o)throw new Error("invalid abi - expected type 'string', received "+typeof o)}else o="";n.push(o)}return n}}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/internal.js"}],[8100,{"./sha":8101,"./sha1":8102,"./sha224":8103,"./sha256":8104,"./sha384":8105,"./sha512":8106},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){var r=e.toLowerCase(),n=t.exports[r];if(!n)throw new Error(r+" is not supported (we accept pull requests)");return new n},t.exports.sha=e("./sha"),t.exports.sha1=e("./sha1"),t.exports.sha224=e("./sha224"),t.exports.sha256=e("./sha256"),t.exports.sha384=e("./sha384"),t.exports.sha512=e("./sha512")}}},{package:"@ngraveio/bc-ur>sha.js",file:"node_modules/sha.js/index.js"}],[8101,{"./hash":8099,inherits:6975,"safe-buffer":8044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function u(){this.init(),this._w=a,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=t[u-3]^t[u-8]^t[u-14]^t[u-16];for(var d=0;d<80;++d){var h=~~(d/20),p=l(r)+f(h,n,i,o)+a+t[d]+s[h]|0;a=o,o=i,i=c(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=u}}},{package:"@ngraveio/bc-ur>sha.js",file:"node_modules/sha.js/sha.js"}],[8102,{"./hash":8099,inherits:6975,"safe-buffer":8044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function u(){this.init(),this._w=a,i.call(this,64,56)}function l(e){return e<<1|e>>>31}function c(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=l(t[u-3]^t[u-8]^t[u-14]^t[u-16]);for(var h=0;h<80;++h){var p=~~(h/20),m=c(r)+d(p,n,i,o)+a+t[h]+s[p]|0;a=o,o=i,i=f(n),n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=u}}},{package:"@ngraveio/bc-ur>sha.js",file:"node_modules/sha.js/sha1.js"}],[8103,{"./hash":8099,"./sha256":8104,inherits:6975,"safe-buffer":8044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("./sha256"),o=e("./hash"),s=e("safe-buffer").Buffer,a=new Array(64);function u(){this.init(),this._w=a,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=u}}},{package:"@ngraveio/bc-ur>sha.js",file:"node_modules/sha.js/sha224.js"}],[8104,{"./hash":8099,inherits:6975,"safe-buffer":8044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function u(){this.init(),this._w=a,i.call(this,64,56)}function l(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,u=0|this._f,m=0|this._g,b=0|this._h,g=0;g<16;++g)t[g]=e.readInt32BE(4*g);for(;g<64;++g)t[g]=p(t[g-2])+t[g-7]+h(t[g-15])+t[g-16]|0;for(var y=0;y<64;++y){var w=b+d(a)+l(a,u,m)+s[y]+t[y]|0,_=f(r)+c(r,n,i)|0;b=m,m=u,u=a,a=o+w|0,o=i,i=n,n=r,r=w+_|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=u+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=u}}},{package:"@ngraveio/bc-ur>sha.js",file:"node_modules/sha.js/sha256.js"}],[8105,{"./hash":8099,"./sha512":8106,inherits:6975,"safe-buffer":8044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("./sha512"),o=e("./hash"),s=e("safe-buffer").Buffer,a=new Array(160);function u(){this.init(),this._w=a,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=u}}},{package:"@ngraveio/bc-ur>sha.js",file:"node_modules/sha.js/sha384.js"}],[8106,{"./hash":8099,inherits:6975,"safe-buffer":8044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function u(){this.init(),this._w=a,i.call(this,128,112)}function l(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,u=0|this._fh,y=0|this._gh,w=0|this._hh,_=0|this._al,v=0|this._bl,E=0|this._cl,T=0|this._dl,S=0|this._el,A=0|this._fl,I=0|this._gl,x=0|this._hl,R=0;R<32;R+=2)t[R]=e.readInt32BE(4*R),t[R+1]=e.readInt32BE(4*R+4);for(;R<160;R+=2){var j=t[R-30],k=t[R-30+1],P=h(j,k),O=p(k,j),L=m(j=t[R-4],k=t[R-4+1]),C=b(k,j),M=t[R-14],N=t[R-14+1],B=t[R-32],D=t[R-32+1],U=O+N|0,F=P+M+g(U,O)|0;F=(F=F+L+g(U=U+C|0,C)|0)+B+g(U=U+D|0,D)|0,t[R]=F,t[R+1]=U}for(var $=0;$<160;$+=2){F=t[$],U=t[$+1];var H=c(r,n,i),G=c(_,v,E),V=f(r,_),z=f(_,r),W=d(a,S),q=d(S,a),K=s[$],Y=s[$+1],X=l(a,u,y),J=l(S,A,I),Z=x+q|0,Q=w+W+g(Z,x)|0;Q=(Q=(Q=Q+X+g(Z=Z+J|0,J)|0)+K+g(Z=Z+Y|0,Y)|0)+F+g(Z=Z+U|0,U)|0;var ee=z+G|0,te=V+H+g(ee,z)|0;w=y,x=I,y=u,I=A,u=a,A=S,a=o+Q+g(S=T+Z|0,T)|0,o=i,T=E,i=n,E=v,n=r,v=_,r=Q+te+g(_=Z+ee|0,Z)|0}this._al=this._al+_|0,this._bl=this._bl+v|0,this._cl=this._cl+E|0,this._dl=this._dl+T|0,this._el=this._el+S|0,this._fl=this._fl+A|0,this._gl=this._gl+I|0,this._hl=this._hl+x|0,this._ah=this._ah+r+g(this._al,_)|0,this._bh=this._bh+n+g(this._bl,v)|0,this._ch=this._ch+i+g(this._cl,E)|0,this._dh=this._dh+o+g(this._dl,T)|0,this._eh=this._eh+a+g(this._el,S)|0,this._fh=this._fh+u+g(this._fl,A)|0,this._gh=this._gh+y+g(this._gl,I)|0,this._hh=this._hh+w+g(this._hl,x)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=u}}},{package:"@ngraveio/bc-ur>sha.js",file:"node_modules/sha.js/sha512.js"}],[8107,{"es-errors/type":6581,"object-inspect":7492},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("object-inspect"),i=e("es-errors/type"),o=function(e,t,r){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,r||(n.next=e.next,e.next=n),n};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return o(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void undefined),!!n},get:function(t){return function(e,t){if(e){var r=o(e,t);return r&&r.value}undefined}(e,t)},has:function(t){return function(e,t){return!!e&&!!o(e,t)}(e,t)},set:function(t,r){e||(e={next:void undefined}),function(e,t,r){var n=o(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t}}}},{package:"string.prototype.matchall>side-channel>side-channel-list",file:"node_modules/side-channel-list/index.js"}],[8108,{"call-bound":6392,"es-errors/type":6581,"get-intrinsic":6735,"object-inspect":7492},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("get-intrinsic"),i=e("call-bound"),o=e("object-inspect"),s=e("es-errors/type"),a=n("%Map%",!0),u=i("Map.prototype.get",!0),l=i("Map.prototype.set",!0),c=i("Map.prototype.has",!0),f=i("Map.prototype.delete",!0),d=i("Map.prototype.size",!0);t.exports=!!a&&function(){var e,t={assert:function(e){if(!t.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(t){if(e){var r=f(e,t);return 0===d(e)&&(e=void undefined),r}return!1},get:function(t){if(e)return u(e,t)},has:function(t){return!!e&&c(e,t)},set:function(t,r){e||(e=new a),l(e,t,r)}};return t}}}},{package:"string.prototype.matchall>side-channel>side-channel-map",file:"node_modules/side-channel-map/index.js"}],[8109,{"call-bound":6392,"es-errors/type":6581,"get-intrinsic":6735,"object-inspect":7492,"side-channel-map":8108},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("get-intrinsic"),i=e("call-bound"),o=e("object-inspect"),s=e("side-channel-map"),a=e("es-errors/type"),u=n("%WeakMap%",!0),l=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("WeakMap.prototype.delete",!0);t.exports=u?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(s&&t)return t.delete(r);return!1},get:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?l(e,r):t&&t.get(r)},has:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,n){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),c(e,r,n)):s&&(t||(t=s()),t.set(r,n))}};return r}:s}}},{package:"string.prototype.matchall>side-channel>side-channel-weakmap",file:"node_modules/side-channel-weakmap/index.js"}],[811,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.initKZG=void 0,r.initKZG=function(e,t){e.loadTrustedSetup()}}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/kzg.js"}],[8110,{"es-errors/type":6581,"object-inspect":7492,"side-channel-list":8107,"side-channel-map":8108,"side-channel-weakmap":8109},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("es-errors/type"),i=e("object-inspect"),o=e("side-channel-list"),s=e("side-channel-map"),a=e("side-channel-weakmap")||s||o;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=a()),e.set(t,r)}};return t}}}},{package:"string.prototype.matchall>side-channel",file:"node_modules/side-channel/index.js"}],[8111,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=[{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[{name:"user",type:"address"},{name:"token",type:"address"}],name:"tokenBalance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"users",type:"address[]"},{name:"tokens",type:"address[]"}],name:"balances",outputs:[{name:"",type:"uint256[]"}],payable:!1,stateMutability:"view",type:"function"}]}}},{package:"@metamask/assets-controllers>single-call-balance-checker-abi",file:"node_modules/single-call-balance-checker-abi/index.js"}],[8112,{"./ethersCompat":8113,"./types":8115,"./utils":8116,"@spruceid/siwe-parser":8118,"valid-url":8245},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 i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.SiweMessage=void 0;const a=e("@spruceid/siwe-parser"),u=o(e("valid-url")),l=e("./ethersCompat"),c=e("./types"),f=e("./utils");r.SiweMessage=class{constructor(e){if("string"==typeof e){const t=new a.ParsedMessage(e);this.scheme=t.scheme,this.domain=t.domain,this.address=t.address,this.statement=t.statement,this.uri=t.uri,this.version=t.version,this.nonce=t.nonce,this.issuedAt=t.issuedAt,this.expirationTime=t.expirationTime,this.notBefore=t.notBefore,this.requestId=t.requestId,this.chainId=t.chainId,this.resources=t.resources}else this.scheme=null==e?void 0:e.scheme,this.domain=e.domain,this.address=e.address,this.statement=null==e?void 0:e.statement,this.uri=e.uri,this.version=e.version,this.chainId=e.chainId,this.nonce=e.nonce,this.issuedAt=null==e?void 0:e.issuedAt,this.expirationTime=null==e?void 0:e.expirationTime,this.notBefore=null==e?void 0:e.notBefore,this.requestId=null==e?void 0:e.requestId,this.resources=null==e?void 0:e.resources,"string"==typeof this.chainId&&(this.chainId=(0,a.parseIntegerNumber)(this.chainId));this.nonce=this.nonce||(0,f.generateNonce)(),this.validateMessage()}toMessage(){this.validateMessage();const e=`${this.scheme?`${this.scheme}://${this.domain}`:this.domain} wants you to sign in with your Ethereum account:`,t=`URI: ${this.uri}`;let r=[e,this.address].join("\n");const n=`Version: ${this.version}`;this.nonce||(this.nonce=(0,f.generateNonce)());const i=[t,n,"Chain ID: "+this.chainId||"1",`Nonce: ${this.nonce}`];if(this.issuedAt=this.issuedAt||(new Date).toISOString(),i.push(`Issued At: ${this.issuedAt}`),this.expirationTime){const e=`Expiration Time: ${this.expirationTime}`;i.push(e)}this.notBefore&&i.push(`Not Before: ${this.notBefore}`),this.requestId&&i.push(`Request ID: ${this.requestId}`),this.resources&&i.push(["Resources:",...this.resources.map(e=>`- ${e}`)].join("\n"));const o=i.join("\n");return r=[r,this.statement].join("\n\n"),this.statement&&(r+="\n"),[r,o].join("\n")}prepareMessage(){let e;return this.version,e=this.toMessage(),e}validate(e,t){return s(this,void 0,void 0,function*(){return console.warn("validate() has been deprecated, please update your code to use verify(). validate() may be removed in future versions."),this.verify({signature:e},{provider:t,suppressExceptions:!1}).then(({data:e})=>e).catch(({error:e})=>{throw e})})}verify(e,t={suppressExceptions:!1}){return s(this,void 0,void 0,function*(){return new Promise((r,n)=>{var i,o,s;const a=e=>t.suppressExceptions?r(e):n(e),u=(0,f.checkInvalidKeys)(e,c.VerifyParamsKeys);u.length>0&&a({success:!1,data:this,error:new Error(`${u.join(", ")} is/are not valid key(s) for VerifyParams.`)});const d=(0,f.checkInvalidKeys)(t,c.VerifyOptsKeys);u.length>0&&a({success:!1,data:this,error:new Error(`${d.join(", ")} is/are not valid key(s) for VerifyOpts.`)});const{signature:h,scheme:p,domain:m,nonce:b,time:g}=e;p&&p!==this.scheme&&a({success:!1,data:this,error:new c.SiweError(c.SiweErrorType.SCHEME_MISMATCH,p,this.scheme)}),m&&m!==this.domain&&a({success:!1,data:this,error:new c.SiweError(c.SiweErrorType.DOMAIN_MISMATCH,m,this.domain)}),b&&b!==this.nonce&&a({success:!1,data:this,error:new c.SiweError(c.SiweErrorType.NONCE_MISMATCH,b,this.nonce)});const y=new Date(g||new Date);if(this.expirationTime){const e=new Date(this.expirationTime);y.getTime()>=e.getTime()&&a({success:!1,data:this,error:new c.SiweError(c.SiweErrorType.EXPIRED_MESSAGE,`${y.toISOString()} < ${e.toISOString()}`,`${y.toISOString()} >= ${e.toISOString()}`)})}if(this.notBefore){const e=new Date(this.notBefore);y.getTime()<e.getTime()&&a({success:!1,data:this,error:new c.SiweError(c.SiweErrorType.NOT_YET_VALID_MESSAGE,`${y.toISOString()} >= ${e.toISOString()}`,`${y.toISOString()} < ${e.toISOString()}`)})}let w,_;try{w=this.prepareMessage()}catch(e){a({success:!1,data:this,error:e})}try{_=(0,l.verifyMessage)(w,h)}catch(e){console.error(e)}if(_===this.address)return r({success:!0,data:this});{const n=(0,f.checkContractWalletSignature)(this,h,t.provider).then(e=>e?{success:!0,data:this}:{success:!1,data:this,error:new c.SiweError(c.SiweErrorType.INVALID_SIGNATURE,_,`Resolved address to be ${this.address}`)}).catch(e=>({success:!1,data:this,error:e}));Promise.all([n,null===(s=null===(o=null===(i=null==t?void 0:t.verificationFallback)||void 0===i?void 0:i.call(t,e,t,this,n))||void 0===o?void 0:o.then(e=>e))||void 0===s?void 0:s.catch(e=>e)]).then(([e,t])=>{if(t){if(t.success)return r(t);a(t)}else{if(e.success)return r(e);a(e)}})}})})}validateMessage(...e){var t;if(e.length>0)throw new c.SiweError(c.SiweErrorType.UNABLE_TO_PARSE,"Unexpected argument in the validateMessage function.");if(!this.domain||0===this.domain.length||!/[^#?]*/.test(this.domain))throw new c.SiweError(c.SiweErrorType.INVALID_DOMAIN,`${this.domain} to be a valid domain.`);if(!(0,a.isEIP55Address)(this.address))throw new c.SiweError(c.SiweErrorType.INVALID_ADDRESS,(0,l.getAddress)(this.address),this.address);if(!u.isUri(this.uri))throw new c.SiweError(c.SiweErrorType.INVALID_URI,`${this.uri} to be a valid uri.`);if("1"!==this.version)throw new c.SiweError(c.SiweErrorType.INVALID_MESSAGE_VERSION,"1",this.version);const r=null===(t=null==this?void 0:this.nonce)||void 0===t?void 0:t.match(/[a-zA-Z0-9]{8,}/);if(!r||this.nonce.length<8||r[0]!==this.nonce)throw new c.SiweError(c.SiweErrorType.INVALID_NONCE,`Length > 8 (${r.length}). Alphanumeric.`,this.nonce);if(this.issuedAt&&!(0,f.isValidISO8601Date)(this.issuedAt))throw new Error(c.SiweErrorType.INVALID_TIME_FORMAT);if(this.expirationTime&&!(0,f.isValidISO8601Date)(this.expirationTime))throw new Error(c.SiweErrorType.INVALID_TIME_FORMAT);if(this.notBefore&&!(0,f.isValidISO8601Date)(this.notBefore))throw new Error(c.SiweErrorType.INVALID_TIME_FORMAT)}}}}},{package:"@metamask/profile-sync-controller>siwe",file:"node_modules/siwe/dist/client.js"}],[8113,{ethers:6674},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getAddress=r.hashMessage=r.verifyMessage=void 0;const n=e("ethers");let i=null,o=null,s=null;try{i=n.ethers.utils.verifyMessage,o=n.ethers.utils.hashMessage,s=n.ethers.utils.getAddress}catch(e){i=n.ethers.verifyMessage,o=n.ethers.hashMessage,s=n.ethers.getAddress}r.verifyMessage=i,r.hashMessage=o,r.getAddress=s}}},{package:"@metamask/profile-sync-controller>siwe",file:"node_modules/siwe/dist/ethersCompat.js"}],[8114,{"./client":8112,"./types":8115,"./utils":8116},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 i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./client"),r),i(e("./types"),r),i(e("./utils"),r)}}},{package:"@metamask/profile-sync-controller>siwe",file:"node_modules/siwe/dist/siwe.js"}],[8115,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SiweErrorType=r.SiweError=r.VerifyOptsKeys=r.VerifyParamsKeys=void 0,r.VerifyParamsKeys=["signature","scheme","domain","nonce","time"],r.VerifyOptsKeys=["provider","suppressExceptions","verificationFallback"];r.SiweError=class{constructor(e,t,r){this.type=e,this.expected=t,this.received=r}},function(e){e.EXPIRED_MESSAGE="Expired message.",e.INVALID_DOMAIN="Invalid domain.",e.SCHEME_MISMATCH="Scheme does not match provided scheme for verification.",e.DOMAIN_MISMATCH="Domain does not match provided domain for verification.",e.NONCE_MISMATCH="Nonce does not match provided nonce for verification.",e.INVALID_ADDRESS="Invalid address.",e.INVALID_URI="URI does not conform to RFC 3986.",e.INVALID_NONCE="Nonce size smaller then 8 characters or is not alphanumeric.",e.NOT_YET_VALID_MESSAGE="Message is not valid yet.",e.INVALID_SIGNATURE="Signature does not match address of the message.",e.INVALID_TIME_FORMAT="Invalid time format.",e.INVALID_MESSAGE_VERSION="Invalid message version.",e.UNABLE_TO_PARSE="Unable to parse the message."}(r.SiweErrorType||(r.SiweErrorType={}))}}},{package:"@metamask/profile-sync-controller>siwe",file:"node_modules/siwe/dist/types.js"}],[8116,{"./ethersCompat":8113,"@stablelib/random":5509,ethers:6674},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.checkInvalidKeys=r.isValidISO8601Date=r.generateNonce=r.checkContractWalletSignature=void 0;const i=e("@stablelib/random"),o=e("ethers"),s=e("./ethersCompat"),a=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],u=/^(?<date>[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]))[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(.[0-9]+)?(([Zz])|([+|-]([01][0-9]|2[0-3]):[0-5][0-9]))$/;r.checkContractWalletSignature=(e,t,r)=>n(void 0,void 0,void 0,function*(){if(!r)return!1;const n=new o.Contract(e.address,a,r),i=(0,s.hashMessage)(e.prepareMessage());return"0x1626ba7e"===(yield n.isValidSignature(i,t))});r.generateNonce=()=>{const e=(0,i.randomStringForEntropy)(96);if(!e||e.length<8)throw new Error("Error during nonce creation.");return e};r.isValidISO8601Date=e=>{const t=u.exec(e);if(!e)return!1;const r=new Date(t.groups.date).toISOString(),n=u.exec(r);return t.groups.date===n.groups.date};r.checkInvalidKeys=(e,t)=>{const r=[];return Object.keys(e).forEach(e=>{t.includes(e)||r.push(e)}),r}}}},{package:"@metamask/profile-sync-controller>siwe",file:"node_modules/siwe/dist/utils.js"}],[8117,{"./utils":8119,"apg-js/src/apg-api/api":6253,"apg-js/src/apg-lib/node-exports":6271},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.ParsedMessage=void 0;const o=i(e("apg-js/src/apg-api/api")),s=i(e("apg-js/src/apg-lib/node-exports")),a=e("./utils");class u{static generateApi(){const e=new o.default('\nsign-in-with-ethereum =\n    [ scheme "://" ] domain %s" wants you to sign in with your Ethereum account:" LF\n    address LF\n    LF\n    [ statement LF ]\n    LF\n    %s"URI: " URI LF\n    %s"Version: " version LF\n    %s"Chain ID: " chain-id LF\n    %s"Nonce: " nonce LF\n    %s"Issued At: " issued-at\n    [ LF %s"Expiration Time: " expiration-time ]\n    [ LF %s"Not Before: " not-before ]\n    [ LF %s"Request ID: " request-id ]\n    [ LF %s"Resources:"\n    resources ]\n\ndomain = authority\n\naddress = "0x" 40*40HEXDIG\n    ; Must also conform to captilization\n    ; checksum encoding specified in EIP-55\n    ; where applicable (EOAs).\n\nstatement = 1*( reserved / unreserved / " " )\n    ; The purpose is to exclude LF (line breaks).\n\nversion = "1"\n\nnonce = 8*( ALPHA / DIGIT )\n\nissued-at = date-time\nexpiration-time = date-time\nnot-before = date-time\n\nrequest-id = *pchar\n\nchain-id = 1*DIGIT\n    ; See EIP-155 for valid CHAIN_IDs.\n\nresources = *( LF resource )\n\nresource = "- " URI\n\n; ------------------------------------------------------------------------------\n; RFC 3986\n\nURI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]\n\nhier-part     = "//" authority path-abempty\n              / path-absolute\n              / path-rootless\n              / path-empty\n\nscheme        = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )\n\nauthority     = [ userinfo "@" ] host [ ":" port ]\nuserinfo      = *( unreserved / pct-encoded / sub-delims / ":" )\nhost          = IP-literal / IPv4address / reg-name\nport          = *DIGIT\n\nIP-literal    = "[" ( IPv6address / IPvFuture  ) "]"\n\nIPvFuture     = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )\n\nIPv6address   =                            6( h16 ":" ) ls32\n              /                       "::" 5( h16 ":" ) ls32\n              / [               h16 ] "::" 4( h16 ":" ) ls32\n              / [ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32\n              / [ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32\n              / [ *3( h16 ":" ) h16 ] "::"    h16 ":"   ls32\n              / [ *4( h16 ":" ) h16 ] "::"              ls32\n              / [ *5( h16 ":" ) h16 ] "::"              h16\n              / [ *6( h16 ":" ) h16 ] "::"\n\nh16           = 1*4HEXDIG\nls32          = ( h16 ":" h16 ) / IPv4address\nIPv4address   = dec-octet "." dec-octet "." dec-octet "." dec-octet\ndec-octet     = DIGIT                 ; 0-9\n                 / %x31-39 DIGIT         ; 10-99\n                 / "1" 2DIGIT            ; 100-199\n                 / "2" %x30-34 DIGIT     ; 200-249\n                 / "25" %x30-35          ; 250-255\n\nreg-name      = *( unreserved / pct-encoded / sub-delims )\n\npath-abempty  = *( "/" segment )\npath-absolute = "/" [ segment-nz *( "/" segment ) ]\npath-rootless = segment-nz *( "/" segment )\npath-empty    = 0pchar\n\nsegment       = *pchar\nsegment-nz    = 1*pchar\n\npchar         = unreserved / pct-encoded / sub-delims / ":" / "@"\n\nquery         = *( pchar / "/" / "?" )\n\nfragment      = *( pchar / "/" / "?" )\n\npct-encoded   = "%" HEXDIG HEXDIG\n\nunreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"\nreserved      = gen-delims / sub-delims\ngen-delims    = ":" / "/" / "?" / "#" / "[" / "]" / "@"\nsub-delims    = "!" / "$" / "&" / "\'" / "(" / ")"\n              / "*" / "+" / "," / ";" / "="\n\n; ------------------------------------------------------------------------------\n; RFC 3339\n\ndate-fullyear   = 4DIGIT\ndate-month      = 2DIGIT  ; 01-12\ndate-mday       = 2DIGIT  ; 01-28, 01-29, 01-30, 01-31 based on\n                          ; month/year\ntime-hour       = 2DIGIT  ; 00-23\ntime-minute     = 2DIGIT  ; 00-59\ntime-second     = 2DIGIT  ; 00-58, 00-59, 00-60 based on leap second\n                          ; rules\ntime-secfrac    = "." 1*DIGIT\ntime-numoffset  = ("+" / "-") time-hour ":" time-minute\ntime-offset     = "Z" / time-numoffset\n\npartial-time    = time-hour ":" time-minute ":" time-second\n                  [time-secfrac]\nfull-date       = date-fullyear "-" date-month "-" date-mday\nfull-time       = partial-time time-offset\n\ndate-time       = full-date "T" full-time\n\n; ------------------------------------------------------------------------------\n; RFC 5234\n\nALPHA          =  %x41-5A / %x61-7A   ; A-Z / a-z\nLF             =  %x0A\n                  ; linefeed\nDIGIT          =  %x30-39\n                  ; 0-9\nHEXDIG         =  DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n');if(e.generate(),e.errors.length)throw console.error(e.errorsToAscii()),console.error(e.linesToAscii()),console.log(e.displayAttributeErrors()),new Error("ABNF grammar has errors");return e.toObject()}}n=u,u.grammarObj=n.generateApi();r.ParsedMessage=class{constructor(e){const t=new s.default.parser;t.ast=new s.default.ast;const r=s.default.ids;t.ast.callbacks.scheme=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&0===n&&(o.scheme=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks.domain=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.domain=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks.address=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.address=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks.statement=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.statement=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks.uri=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.uri||(o.uri=s.default.utils.charsToString(t,n,i))),a};t.ast.callbacks.version=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.version=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks["chain-id"]=function(e,t,n,i,o){const u=r.SEM_OK;return e===r.SEM_PRE&&(o.chainId=(0,a.parseIntegerNumber)(s.default.utils.charsToString(t,n,i))),u};t.ast.callbacks.nonce=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.nonce=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks["issued-at"]=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.issuedAt=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks["expiration-time"]=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.expirationTime=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks["not-before"]=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.notBefore=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks["request-id"]=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.requestId=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks.resources=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.resources=s.default.utils.charsToString(t,n,i).slice(3).split("\n- ")),a};const n=t.parse(u.grammarObj,"sign-in-with-ethereum",e);if(!n.success)throw new Error(`Invalid message: ${JSON.stringify(n)}`);const i={};t.ast.translate(i);for(const[e,t]of Object.entries(i))this[e]=t;if(0===this.domain.length)throw new Error("Domain cannot be empty.");if(!(0,a.isEIP55Address)(this.address))throw new Error("Address not conformant to EIP-55.")}}}}},{package:"@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser",file:"node_modules/siwe/node_modules/@spruceid/siwe-parser/dist/abnf.js"}],[8118,{"./abnf":8117,"./utils":8119},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 i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.ParsedMessage=void 0;const o=e("./abnf");Object.defineProperty(r,"ParsedMessage",{enumerable:!0,get:function(){return o.ParsedMessage}}),i(e("./utils"),r)}}},{package:"@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser",file:"node_modules/siwe/node_modules/@spruceid/siwe-parser/dist/parsers.js"}],[8119,{"@noble/hashes/sha3":5396,"@noble/hashes/utils":5398},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseIntegerNumber=r.isEIP55Address=void 0;const n=e("@noble/hashes/sha3"),i=e("@noble/hashes/utils");r.isEIP55Address=e=>{if(42!=e.length)return!1;const t=`${e}`.toLowerCase().replace("0x",""),r=(0,i.bytesToHex)((0,n.keccak_256)(t));let o="0x";for(let e=0;e<t.length;e++)parseInt(r[e],16)>=8?o+=t[e].toUpperCase():o+=t[e];return e===o};r.parseIntegerNumber=e=>{const t=parseInt(e);if(isNaN(t))throw new Error("Invalid number.");if(t===Infinity)throw new Error("Invalid number.");return t}}}},{package:"@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser",file:"node_modules/siwe/node_modules/@spruceid/siwe-parser/dist/utils.js"}],[812,{},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:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/lock.js"}],[8122,{events:6680,inherits:6975,"readable-stream/lib/_stream_duplex.js":8124,"readable-stream/lib/_stream_passthrough.js":8125,"readable-stream/lib/_stream_readable.js":8126,"readable-stream/lib/_stream_transform.js":8127,"readable-stream/lib/_stream_writable.js":8128,"readable-stream/lib/internal/streams/end-of-stream.js":8132,"readable-stream/lib/internal/streams/pipeline.js":8134},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=i;var n=e("events").EventEmitter;function i(){n.call(this)}e("inherits")(i,n),i.Readable=e("readable-stream/lib/_stream_readable.js"),i.Writable=e("readable-stream/lib/_stream_writable.js"),i.Duplex=e("readable-stream/lib/_stream_duplex.js"),i.Transform=e("readable-stream/lib/_stream_transform.js"),i.PassThrough=e("readable-stream/lib/_stream_passthrough.js"),i.finished=e("readable-stream/lib/internal/streams/end-of-stream.js"),i.pipeline=e("readable-stream/lib/internal/streams/pipeline.js"),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",u));var s=!1;function a(){s||(s=!0,e.end())}function u(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",u),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",l),e.on("error",l),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}}}},{package:"stream-browserify",file:"node_modules/stream-browserify/index.js"}],[8123,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n={};function i(e,t,r){r||(r=Error);var i=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){var n,i,s,a;if("string"==typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(r===undefined||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(u," ").concat(n," ").concat(o(t,"type"))}return a+=". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/errors-browser.js"}],[8124,{"./_stream_readable":8126,"./_stream_writable":8128,_process:7579,inherits:6975},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=l;var i=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(l,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var u=s[a];l.prototype[u]||(l.prototype[u]=o.prototype[u])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_duplex.js"}],[8125,{"./_stream_transform":8127,inherits:6975},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=i;var n=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e("inherits")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_passthrough.js"}],[8126,{"../errors":8123,"./_stream_duplex":8124,"./internal/streams/async_iterator":8129,"./internal/streams/buffer_list":8130,"./internal/streams/destroy":8131,"./internal/streams/from":8133,"./internal/streams/state":8135,"./internal/streams/stream":8136,_process:7579,buffer:6371,events:6680,inherits:6975,"string_decoder/":8157,util:6323},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n;t.exports=S,S.ReadableState=T;e("events").EventEmitter;var i=function(e,t){return e.listeners(t).length},o=e("./internal/streams/stream"),s=e("buffer").Buffer,a=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,l=e("util");u=l&&l.debuglog?l.debuglog("stream"):function(){};var c,f,d,h=e("./internal/streams/buffer_list"),p=e("./internal/streams/destroy"),m=e("./internal/streams/state").getHighWaterMark,b=e("../errors").codes,g=b.ERR_INVALID_ARG_TYPE,y=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,_=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(S,o);var v=p.errorOrDestroy,E=["error","close","destroy","pause","resume"];function T(t,r,i){n=n||e("./_stream_duplex"),t=t||{},"boolean"!=typeof i&&(i=r instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(c||(c=e("string_decoder/").StringDecoder),this.decoder=new c(t.encoding),this.encoding=t.encoding)}function S(t){if(n=n||e("./_stream_duplex"),!(this instanceof S))return new S(t);var r=this instanceof n;this._readableState=new T(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function A(e,t,r,n,i){u("readableAddChunk",t);var o,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,k(e)))}(e,l);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof a||"string"==typeof t||t===undefined||e.objectMode||(r=new g("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(l,t)),o)v(e,o);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)l.endEmitted?v(e,new _):I(e,l,t,!0);else if(l.ended)v(e,new y);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!r?(t=l.decoder.write(t),l.objectMode||0!==t.length?I(e,l,t,!1):P(e,l)):I(e,l,t,!1)}else n||(l.reading=!1,P(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function I(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),P(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),A(this,e,t,!1,r)},S.prototype.unshift=function(e){return A(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){c||(c=e("string_decoder/").StringDecoder);var r=new c(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var x=1073741824;function R(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=x?e=x:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(k,e))}function k(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function P(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(O,e,t))}function O(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(u("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){u("readable nexttick read 0"),e.read(0)}function M(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function D(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}S.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):j(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&D(this),null;var n,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&u("length less than watermark",i=!0),t.ended||t.reading?u("reading or ended",i=!1):i&&(u("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=R(r,t))),null===(n=e>0?B(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&D(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){v(this,new w("_read()"))},S.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,u("pipe count=%d opts=%j",o.pipesCount,t);var s=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:b;function a(t,r){u("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,u("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",a),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",d),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function l(){u("onend"),e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",a);var c=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",c);var f=!1;function d(t){u("ondata");var r=e.write(t);u("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==F(o.pipes,e))&&!f&&(u("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function h(t){u("onerror",t),b(),e.removeListener("error",h),0===i(e,"error")&&v(e,t)}function p(){e.removeListener("finish",m),b()}function m(){u("onfinish"),e.removeListener("close",p),b()}function b(){u("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",m),e.emit("pipe",n),o.flowing||(u("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=F(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},S.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?j(this):i.reading||r.nextTick(C,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(L,this),n},S.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&e!==undefined||r.nextTick(L,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(M,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(u("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&i!==undefined)&&((r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause())))}),e)this[i]===undefined&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<E.length;o++)e.on(E[o],this.emit.bind(this,E[o]));return this._read=function(t){u("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return f===undefined&&(f=e("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=B,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,r){return d===undefined&&(d=e("./internal/streams/from")),d(S,t,r)})}).call(this)}).call(this,e("_process"))}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_readable.js"}],[8127,{"../errors":8123,"./_stream_duplex":8124,inherits:6975},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=c;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=e("./_stream_duplex");function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}e("inherits")(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_transform.js"}],[8128,{"../errors":8123,"./_stream_duplex":8124,"./internal/streams/destroy":8131,"./internal/streams/state":8135,"./internal/streams/stream":8136,_process:7579,buffer:6371,inherits:6975,"util-deprecate":8225},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;t.exports=S,S.WritableState=T;var o={deprecate:e("util-deprecate")},s=e("./internal/streams/stream"),a=e("buffer").Buffer,u=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,c=e("./internal/streams/destroy"),f=e("./internal/streams/state").getHighWaterMark,d=e("../errors").codes,h=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,v=c.errorOrDestroy;function E(){}function T(t,o,s){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof s&&(s=o instanceof i),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(k,e,t),e._writableState.errorEmitted=!0,v(e,i)):(o(i),e._writableState.errorEmitted=!0,v(e,i),k(e,t))}(e,n,i,t,o);else{var s=R(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),i?r.nextTick(I,e,n,s,o):I(e,n,s,o)}}(o,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function S(t){var r=this instanceof(i=i||e("./_stream_duplex"));if(!r&&!l.call(S,this))return new S(t);this._writableState=new T(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function A(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function x(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,A(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,f=r.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final(function(r){t.pendingcb--,r&&v(e,r),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var n=R(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}e("inherits")(S,s),T.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(T.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===S&&(e&&e._writableState instanceof T)}})):l=function(e){return e instanceof this},S.prototype.pipe=function(){v(this,new b)},S.prototype.write=function(e,t,n){var i,o=this._writableState,s=!1,l=!o.objectMode&&(i=e,a.isBuffer(i)||i instanceof u);return l&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(n=t,t=null),l?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=E),o.ending?function(e,t){var n=new w;v(e,n),r.nextTick(t,n)}(this,n):(l||function(e,t,n,i){var o;return null===n?o=new y:"string"==typeof n||t.objectMode||(o=new h("chunk",["string","Buffer"],n)),!o||(v(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var u=t.objectMode?1:n.length;t.length+=u;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,u,n,i,o);return l}(this,o,l,e,t,n)),s},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||x(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&e!==undefined&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==undefined&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=c.destroy,S.prototype._undestroy=c.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"))}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_writable.js"}],[8129,{"./end-of-stream":8132,_process:7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=e("./end-of-stream"),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[c]=null,e[s]=null,e[a]=null,t(h(r,!1)))}}function m(e){r.nextTick(p,e)}var b=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(h(undefined,!0));if(this[d].destroyed)return new Promise(function(t,n){r.nextTick(function(){e[u]?n(e[u]):t(h(undefined,!0))})});var n,i=this[c];if(i)n=new Promise(function(e,t){return function(r,n){e.then(function(){t[l]?r(h(undefined,!0)):t[f](r,n)},n)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[f])}return this[c]=n,n}},Symbol.asyncIterator,function(){return this}),i(n,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){e?r(e):t(h(undefined,!0))})})}),n),b);t.exports=function(e){var t,r=Object.create(g,(i(t={},d,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var n=r[d].read();n?(r[c]=null,r[s]=null,r[a]=null,e(h(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[c]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[c]=null,r[s]=null,r[a]=null,t(e)),void(r[u]=e)}var n=r[s];null!==n&&(r[c]=null,r[s]=null,r[a]=null,n(h(undefined,!0))),r[l]=!0}),e.on("readable",m.bind(null,r)),r}}).call(this)}).call(this,e("_process"))}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/async_iterator.js"}],[813,{"./bytes.js":804},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MapDB=void 0;const n=e("./bytes.js");class i{constructor(e){this._database=e??new Map}async get(e){const t=e instanceof Uint8Array?(0,n.bytesToUnprefixedHex)(e):e.toString();return this._database.get(t)}async put(e,t){const r=e instanceof Uint8Array?(0,n.bytesToUnprefixedHex)(e):e.toString();this._database.set(r,t)}async del(e){const t=e instanceof Uint8Array?(0,n.bytesToUnprefixedHex)(e):e.toString();this._database.delete(t)}async batch(e){for(const t of e)"del"===t.type&&await this.del(t.key),"put"===t.type&&await this.put(t.key,t.value)}shallowCopy(){return new i(this._database)}open(){return Promise.resolve()}}r.MapDB=i}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/mapDB.js"}],[8130,{buffer:6371,util:6323},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var u=e("buffer").Buffer,l=e("util").inspect,c=l&&l.custom||"inspect";function f(e,t,r){u.prototype.copy.call(e,t,r)}t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/buffer_list.js"}],[8131,{_process:7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,o){var s=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!o&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(n,s):(s._writableState.errorEmitted=!0,e.nextTick(r,s,t)):e.nextTick(r,s,t):o?(e.nextTick(n,s),o(t)):e.nextTick(n,s)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/destroy.js"}],[8132,{"../../../errors":8123},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||c()},l=t._writableState&&t._writableState.finished,c=function(){a=!1,l=!0,s||o.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){s=!1,f=!0,a||o.call(t)},h=function(e){o.call(t,e)},p=function(){var e;return s&&!f?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!l?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},m=function(){t.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",u),t.on("close",u)):(t.on("complete",c),t.on("abort",p),t.req?m():t.on("request",m)),t.on("end",d),t.on("finish",c),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"}],[8133,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/from-browser.js"}],[8134,{"../../../errors":8123,"./end-of-stream":8132},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;var i=e("../../../errors").codes,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}t.exports=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var c,f=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new o("streams");var d=r.map(function(t,i){var o=i<r.length-1;return function(t,r,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;t.on("close",function(){a=!0}),n===undefined&&(n=e("./end-of-stream")),n(t,{readable:r,writable:i},function(e){if(e)return o(e);a=!0,o()});var u=!1;return function(e){if(!a&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}(t,o,i>0,function(e){c||(c=e),e&&d.forEach(u),o||(d.forEach(u),f(c))})});return r.reduce(l)}}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/pipeline.js"}],[8135,{"../../../errors":8123},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/state.js"}],[8136,{events:6680},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("events").EventEmitter}}},{package:"stream-browserify>readable-stream",file:"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/stream-browser.js"}],[8137,{"./lib/request":8139,"./lib/response":8140,"builtin-status-codes":6382,url:8202,xtend:8594},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./lib/request"),i=e("./lib/response"),o=e("xtend"),s=e("builtin-status-codes"),a=e("url"),u=r;u.request=function(e,t){e="string"==typeof e?a.parse(e):o(e);var r=-1===global.location.protocol.search(/^https?:$/)?"http:":"",i=e.protocol||r,s=e.hostname||e.host,u=e.port,l=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?i+"//"+s:"")+(u?":"+u:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var c=new n(e);return t&&c.on("response",t),c},u.get=function(e,t){var r=u.request(e,t);return r.end(),r},u.ClientRequest=n,u.IncomingMessage=i.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=s,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}}},{package:"stream-http",file:"node_modules/stream-http/index.js"}],[8138,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;function i(){if(n!==undefined)return n;if(global.XMLHttpRequest){n=new global.XMLHttpRequest;try{n.open("GET",global.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function s(e){return"function"==typeof e}r.fetch=s(global.fetch)&&s(global.ReadableStream),r.writableStream=s(global.WritableStream),r.abortController=s(global.AbortController),r.arraybuffer=r.fetch||o("arraybuffer"),r.msstream=!r.fetch&&o("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&o("moz-chunked-arraybuffer"),r.overrideMimeType=r.fetch||!!i()&&s(i().overrideMimeType),n=null}}},{package:"stream-http",file:"node_modules/stream-http/lib/capability.js"}],[8139,{"./capability":8138,"./response":8140,_process:7579,buffer:6371,inherits:6975,"readable-stream":8155},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r,n){(function(){var i=e("./capability"),o=e("inherits"),s=e("./response"),a=e("readable-stream"),u=s.IncomingMessage,l=s.readyStates;var c=t.exports=function(e){var t,r=this;a.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+n.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)o=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return i.fetch&&t?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":"text"}(t,o),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",function(){r._onFinish()})};o(c,a.Writable),c.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===f.indexOf(r)&&(this._headers[r]={name:e,value:t})},c.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},c.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},c.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var n=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var s=[];if(Object.keys(n).forEach(function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach(function(e){s.push([t,e])}):s.push([t,r])}),"fetch"===e._mode){var a=null;if(i.abortController){var u=new AbortController;a=u.signal,e._fetchAbortController=u,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=global.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}global.fetch(e._opts.url,{method:e._opts.method,headers:s,body:o||undefined,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:a}).then(function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()},function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)})}else{var c=e._xhr=new global.XMLHttpRequest;try{c.open(e._opts.method,e._opts.url,!0)}catch(t){return void r.nextTick(function(){e.emit("error",t)})}"responseType"in c&&(c.responseType=e._mode),"withCredentials"in c&&(c.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in c&&c.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(c.timeout=t.requestTimeout,c.ontimeout=function(){e.emit("requestTimeout")}),s.forEach(function(e){c.setRequestHeader(e[0],e[1])}),e._response=null,c.onreadystatechange=function(){switch(c.readyState){case l.LOADING:case l.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(c.onprogress=function(){e._onXHRProgress()}),c.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{c.send(o)}catch(t){return void r.nextTick(function(){e.emit("error",t)})}}}},c.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},c.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},c.prototype._write=function(e,t,r){this._body.push(e),r()},c.prototype._resetTimers=function(e){var t=this;global.clearTimeout(t._socketTimer),t._socketTimer=null,e?(global.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=global.setTimeout(function(){t.emit("timeout")},t._socketTimeout))},c.prototype.abort=c.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},c.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=undefined),a.Writable.prototype.end.call(this,e,t,r)},c.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},c.prototype.flushHeaders=function(){},c.prototype.setNoDelay=function(){},c.prototype.setSocketKeepAlive=function(){};var f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this)}).call(this,e("_process"),e("buffer").Buffer)}}},{package:"stream-http",file:"node_modules/stream-http/lib/request.js"}],[814,{},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;r.fetchFromProvider=async(e,t)=>{const r=JSON.stringify({method:t.method,params:t.params,jsonrpc:"2.0",id:1}),n=await fetch(e,{headers:{"content-type":"application/json"},method:"POST",body:r});if(!n.ok)throw new Error(`JSONRpcError: ${JSON.stringify({method:t.method,status:n.status,message:await n.text().catch(()=>"Could not parse error message likely because of a network error")},null,2)}`);return(await n.json()).result};r.getProvider=e=>{if("string"==typeof e)return e;if("object"==typeof e&&e._getConnection!==undefined)return e._getConnection().url;throw new Error("Must provide valid provider URL or Web3Provider")}}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/provider.js"}],[8140,{"./capability":8138,_process:7579,buffer:6371,inherits:6975,"readable-stream":8155},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t,n){(function(){var i=e("./capability"),o=e("inherits"),s=e("readable-stream"),a=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=r.IncomingMessage=function(e,r,o,a){var u=this;if(s.Readable.call(u),u._mode=o,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){t.nextTick(function(){u.emit("close")})}),"fetch"===o){if(u._fetchResponse=r,u.url=r.url,u.statusCode=r.status,u.statusMessage=r.statusText,r.headers.forEach(function(e,t){u.headers[t.toLowerCase()]=e,u.rawHeaders.push(t,e)}),i.writableStream){var l=new WritableStream({write:function(e){return a(!1),new Promise(function(t,r){u._destroyed?r():u.push(n.from(e))?t():u._resumeFetch=t})},close:function(){a(!0),u._destroyed||u.push(null)},abort:function(e){a(!0),u._destroyed||u.emit("error",e)}});try{return void r.body.pipeTo(l).catch(function(e){a(!0),u._destroyed||u.emit("error",e)})}catch(p){}}var c=r.body.getReader();function h(){c.read().then(function(e){u._destroyed||(a(e.done),e.done?u.push(null):(u.push(n.from(e.value)),h()))}).catch(function(e){a(!0),u._destroyed||u.emit("error",e)})}h()}else{if(u._xhr=e,u._pos=0,u.url=e.responseURL,u.statusCode=e.status,u.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(u.headers[r]===undefined&&(u.headers[r]=[]),u.headers[r].push(t[2])):u.headers[r]!==undefined?u.headers[r]+=", "+t[2]:u.headers[r]=t[2],u.rawHeaders.push(t[1],t[2])}}),u._charset="x-user-defined",!i.overrideMimeType){var f=u.rawHeaders["mime-type"];if(f){var d=f.match(/;\s*charset=([^;])(;|$)/);d&&(u._charset=d[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};o(u,s.Readable),u.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},u.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,i=null;switch(t._mode){case"text":if((i=r.responseText).length>t._pos){var o=i.substr(t._pos);if("x-user-defined"===t._charset){for(var s=n.alloc(o.length),u=0;u<o.length;u++)s[u]=255&o.charCodeAt(u);t.push(s)}else t.push(o,t._charset);t._pos=i.length}break;case"arraybuffer":if(r.readyState!==a.DONE||!r.response)break;i=r.response,t.push(n.from(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=r.response,r.readyState!==a.LOADING||!i)break;t.push(n.from(new Uint8Array(i)));break;case"ms-stream":if(i=r.response,r.readyState!==a.LOADING)break;var l=new global.MSStreamReader;l.onprogress=function(){l.result.byteLength>t._pos&&(t.push(n.from(new Uint8Array(l.result.slice(t._pos)))),t._pos=l.result.byteLength)},l.onload=function(){e(!0),t.push(null)},l.readAsArrayBuffer(i)}t._xhr.readyState===a.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}}).call(this)}).call(this,e("_process"),e("buffer").Buffer)}}},{package:"stream-http",file:"node_modules/stream-http/lib/response.js"}],[8141,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n={};function i(e,t,r){r||(r=Error);var i=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){var n,i,s,a;if("string"==typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(r===undefined||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(u," ").concat(n," ").concat(o(t,"type"))}return a+=". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/errors-browser.js"}],[8142,{"./_stream_readable":8144,"./_stream_writable":8146,_process:7579,inherits:6975},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=l;var i=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(l,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var u=s[a];l.prototype[u]||(l.prototype[u]=o.prototype[u])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/lib/_stream_duplex.js"}],[8143,{"./_stream_transform":8145,inherits:6975},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=i;var n=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e("inherits")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/lib/_stream_passthrough.js"}],[8144,{"../errors":8141,"./_stream_duplex":8142,"./internal/streams/async_iterator":8147,"./internal/streams/buffer_list":8148,"./internal/streams/destroy":8149,"./internal/streams/from":8151,"./internal/streams/state":8153,"./internal/streams/stream":8154,_process:7579,buffer:6371,events:6680,inherits:6975,"string_decoder/":8157,util:6323},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n;t.exports=S,S.ReadableState=T;e("events").EventEmitter;var i=function(e,t){return e.listeners(t).length},o=e("./internal/streams/stream"),s=e("buffer").Buffer,a=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,l=e("util");u=l&&l.debuglog?l.debuglog("stream"):function(){};var c,f,d,h=e("./internal/streams/buffer_list"),p=e("./internal/streams/destroy"),m=e("./internal/streams/state").getHighWaterMark,b=e("../errors").codes,g=b.ERR_INVALID_ARG_TYPE,y=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,_=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(S,o);var v=p.errorOrDestroy,E=["error","close","destroy","pause","resume"];function T(t,r,i){n=n||e("./_stream_duplex"),t=t||{},"boolean"!=typeof i&&(i=r instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(c||(c=e("string_decoder/").StringDecoder),this.decoder=new c(t.encoding),this.encoding=t.encoding)}function S(t){if(n=n||e("./_stream_duplex"),!(this instanceof S))return new S(t);var r=this instanceof n;this._readableState=new T(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function A(e,t,r,n,i){u("readableAddChunk",t);var o,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,k(e)))}(e,l);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof a||"string"==typeof t||t===undefined||e.objectMode||(r=new g("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(l,t)),o)v(e,o);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)l.endEmitted?v(e,new _):I(e,l,t,!0);else if(l.ended)v(e,new y);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!r?(t=l.decoder.write(t),l.objectMode||0!==t.length?I(e,l,t,!1):P(e,l)):I(e,l,t,!1)}else n||(l.reading=!1,P(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function I(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),P(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),A(this,e,t,!1,r)},S.prototype.unshift=function(e){return A(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){c||(c=e("string_decoder/").StringDecoder);var r=new c(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var x=1073741824;function R(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=x?e=x:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(k,e))}function k(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function P(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(O,e,t))}function O(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(u("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){u("readable nexttick read 0"),e.read(0)}function M(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function D(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}S.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):j(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&D(this),null;var n,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&u("length less than watermark",i=!0),t.ended||t.reading?u("reading or ended",i=!1):i&&(u("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=R(r,t))),null===(n=e>0?B(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&D(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){v(this,new w("_read()"))},S.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,u("pipe count=%d opts=%j",o.pipesCount,t);var s=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:b;function a(t,r){u("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,u("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",a),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",d),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function l(){u("onend"),e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",a);var c=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",c);var f=!1;function d(t){u("ondata");var r=e.write(t);u("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==F(o.pipes,e))&&!f&&(u("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function h(t){u("onerror",t),b(),e.removeListener("error",h),0===i(e,"error")&&v(e,t)}function p(){e.removeListener("finish",m),b()}function m(){u("onfinish"),e.removeListener("close",p),b()}function b(){u("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",m),e.emit("pipe",n),o.flowing||(u("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=F(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},S.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?j(this):i.reading||r.nextTick(C,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(L,this),n},S.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&e!==undefined||r.nextTick(L,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(M,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(u("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&i!==undefined)&&((r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause())))}),e)this[i]===undefined&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<E.length;o++)e.on(E[o],this.emit.bind(this,E[o]));return this._read=function(t){u("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return f===undefined&&(f=e("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=B,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,r){return d===undefined&&(d=e("./internal/streams/from")),d(S,t,r)})}).call(this)}).call(this,e("_process"))}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/lib/_stream_readable.js"}],[8145,{"../errors":8141,"./_stream_duplex":8142,inherits:6975},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=c;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=e("./_stream_duplex");function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}e("inherits")(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/lib/_stream_transform.js"}],[8146,{"../errors":8141,"./_stream_duplex":8142,"./internal/streams/destroy":8149,"./internal/streams/state":8153,"./internal/streams/stream":8154,_process:7579,buffer:6371,inherits:6975,"util-deprecate":8225},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;t.exports=S,S.WritableState=T;var o={deprecate:e("util-deprecate")},s=e("./internal/streams/stream"),a=e("buffer").Buffer,u=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,c=e("./internal/streams/destroy"),f=e("./internal/streams/state").getHighWaterMark,d=e("../errors").codes,h=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,v=c.errorOrDestroy;function E(){}function T(t,o,s){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof s&&(s=o instanceof i),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(k,e,t),e._writableState.errorEmitted=!0,v(e,i)):(o(i),e._writableState.errorEmitted=!0,v(e,i),k(e,t))}(e,n,i,t,o);else{var s=R(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),i?r.nextTick(I,e,n,s,o):I(e,n,s,o)}}(o,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function S(t){var r=this instanceof(i=i||e("./_stream_duplex"));if(!r&&!l.call(S,this))return new S(t);this._writableState=new T(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function A(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function x(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,A(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,f=r.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final(function(r){t.pendingcb--,r&&v(e,r),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var n=R(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}e("inherits")(S,s),T.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(T.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===S&&(e&&e._writableState instanceof T)}})):l=function(e){return e instanceof this},S.prototype.pipe=function(){v(this,new b)},S.prototype.write=function(e,t,n){var i,o=this._writableState,s=!1,l=!o.objectMode&&(i=e,a.isBuffer(i)||i instanceof u);return l&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(n=t,t=null),l?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=E),o.ending?function(e,t){var n=new w;v(e,n),r.nextTick(t,n)}(this,n):(l||function(e,t,n,i){var o;return null===n?o=new y:"string"==typeof n||t.objectMode||(o=new h("chunk",["string","Buffer"],n)),!o||(v(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var u=t.objectMode?1:n.length;t.length+=u;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,u,n,i,o);return l}(this,o,l,e,t,n)),s},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||x(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&e!==undefined&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==undefined&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=c.destroy,S.prototype._undestroy=c.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"))}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/lib/_stream_writable.js"}],[8147,{"./end-of-stream":8150,_process:7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=e("./end-of-stream"),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[c]=null,e[s]=null,e[a]=null,t(h(r,!1)))}}function m(e){r.nextTick(p,e)}var b=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(h(undefined,!0));if(this[d].destroyed)return new Promise(function(t,n){r.nextTick(function(){e[u]?n(e[u]):t(h(undefined,!0))})});var n,i=this[c];if(i)n=new Promise(function(e,t){return function(r,n){e.then(function(){t[l]?r(h(undefined,!0)):t[f](r,n)},n)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[f])}return this[c]=n,n}},Symbol.asyncIterator,function(){return this}),i(n,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){e?r(e):t(h(undefined,!0))})})}),n),b);t.exports=function(e){var t,r=Object.create(g,(i(t={},d,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var n=r[d].read();n?(r[c]=null,r[s]=null,r[a]=null,e(h(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[c]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[c]=null,r[s]=null,r[a]=null,t(e)),void(r[u]=e)}var n=r[s];null!==n&&(r[c]=null,r[s]=null,r[a]=null,n(h(undefined,!0))),r[l]=!0}),e.on("readable",m.bind(null,r)),r}}).call(this)}).call(this,e("_process"))}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/async_iterator.js"}],[8148,{buffer:6371,util:6323},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var u=e("buffer").Buffer,l=e("util").inspect,c=l&&l.custom||"inspect";function f(e,t,r){u.prototype.copy.call(e,t,r)}t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/buffer_list.js"}],[8149,{_process:7579},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,o){var s=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!o&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(n,s):(s._writableState.errorEmitted=!0,e.nextTick(r,s,t)):e.nextTick(r,s,t):o?(e.nextTick(n,s),o(t)):e.nextTick(n,s)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/destroy.js"}],[815,{"./bytes.js":804,"./constants.js":805,"@ethereumjs/rlp":775,"ethereum-cryptography/utils":840},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CLRequestFactory=r.ConsolidationRequest=r.WithdrawalRequest=r.DepositRequest=r.CLRequest=r.CLRequestType=void 0;const n=e("@ethereumjs/rlp"),i=e("ethereum-cryptography/utils"),o=e("./bytes.js"),s=e("./constants.js");var a;!function(e){e[e.Deposit=0]="Deposit",e[e.Withdrawal=1]="Withdrawal",e[e.Consolidation=2]="Consolidation"}(a=r.CLRequestType||(r.CLRequestType={}));class u{constructor(e){this.type=e}}r.CLRequest=u;class l extends u{constructor(e,t,r,n,i){super(a.Deposit),this.pubkey=e,this.withdrawalCredentials=t,this.amount=r,this.signature=n,this.index=i}static fromRequestData(e){const{pubkey:t,withdrawalCredentials:r,amount:n,signature:i,index:o}=e;return new l(t,r,n,i,o)}static fromJSON(e){const{pubkey:t,withdrawalCredentials:r,amount:n,signature:i,index:s}=e;return this.fromRequestData({pubkey:(0,o.hexToBytes)(t),withdrawalCredentials:(0,o.hexToBytes)(r),amount:(0,o.hexToBigInt)(n),signature:(0,o.hexToBytes)(i),index:(0,o.hexToBigInt)(s)})}serialize(){const e=this.index===s.BIGINT_0?new Uint8Array:(0,o.bigIntToBytes)(this.index),t=this.amount===s.BIGINT_0?new Uint8Array:(0,o.bigIntToBytes)(this.amount);return(0,i.concatBytes)(Uint8Array.from([this.type]),n.RLP.encode([this.pubkey,this.withdrawalCredentials,t,this.signature,e]))}toJSON(){return{pubkey:(0,o.bytesToHex)(this.pubkey),withdrawalCredentials:(0,o.bytesToHex)(this.withdrawalCredentials),amount:(0,o.bigIntToHex)(this.amount),signature:(0,o.bytesToHex)(this.signature),index:(0,o.bigIntToHex)(this.index)}}static deserialize(e){const[t,r,i,s,a]=n.RLP.decode(e.slice(1));return this.fromRequestData({pubkey:t,withdrawalCredentials:r,amount:(0,o.bytesToBigInt)(i),signature:s,index:(0,o.bytesToBigInt)(a)})}}r.DepositRequest=l;class c extends u{constructor(e,t,r){super(a.Withdrawal),this.sourceAddress=e,this.validatorPubkey=t,this.amount=r}static fromRequestData(e){const{sourceAddress:t,validatorPubkey:r,amount:n}=e;return new c(t,r,n)}static fromJSON(e){const{sourceAddress:t,validatorPubkey:r,amount:n}=e;return this.fromRequestData({sourceAddress:(0,o.hexToBytes)(t),validatorPubkey:(0,o.hexToBytes)(r),amount:(0,o.hexToBigInt)(n)})}serialize(){const e=this.amount===s.BIGINT_0?new Uint8Array:(0,o.bigIntToBytes)(this.amount);return(0,i.concatBytes)(Uint8Array.from([this.type]),n.RLP.encode([this.sourceAddress,this.validatorPubkey,e]))}toJSON(){return{sourceAddress:(0,o.bytesToHex)(this.sourceAddress),validatorPubkey:(0,o.bytesToHex)(this.validatorPubkey),amount:(0,o.bigIntToHex)(this.amount)}}static deserialize(e){const[t,r,i]=n.RLP.decode(e.slice(1));return this.fromRequestData({sourceAddress:t,validatorPubkey:r,amount:(0,o.bytesToBigInt)(i)})}}r.WithdrawalRequest=c;class f extends u{constructor(e,t,r){super(a.Consolidation),this.sourceAddress=e,this.sourcePubkey=t,this.targetPubkey=r}static fromRequestData(e){const{sourceAddress:t,sourcePubkey:r,targetPubkey:n}=e;return new f(t,r,n)}static fromJSON(e){const{sourceAddress:t,sourcePubkey:r,targetPubkey:n}=e;return this.fromRequestData({sourceAddress:(0,o.hexToBytes)(t),sourcePubkey:(0,o.hexToBytes)(r),targetPubkey:(0,o.hexToBytes)(n)})}serialize(){return(0,i.concatBytes)(Uint8Array.from([this.type]),n.RLP.encode([this.sourceAddress,this.sourcePubkey,this.targetPubkey]))}toJSON(){return{sourceAddress:(0,o.bytesToHex)(this.sourceAddress),sourcePubkey:(0,o.bytesToHex)(this.sourcePubkey),targetPubkey:(0,o.bytesToHex)(this.targetPubkey)}}static deserialize(e){const[t,r,i]=n.RLP.decode(e.slice(1));return this.fromRequestData({sourceAddress:t,sourcePubkey:r,targetPubkey:i})}}r.ConsolidationRequest=f;r.CLRequestFactory=class{static fromSerializedRequest(e){switch(e[0]){case a.Deposit:return l.deserialize(e);case a.Withdrawal:return c.deserialize(e);case a.Consolidation:return f.deserialize(e);default:throw Error(`Invalid request type=${e[0]}`)}}}}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/requests.js"}],[8150,{"../../../errors":8141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||c()},l=t._writableState&&t._writableState.finished,c=function(){a=!1,l=!0,s||o.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){s=!1,f=!0,a||o.call(t)},h=function(e){o.call(t,e)},p=function(){var e;return s&&!f?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!l?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},m=function(){t.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",u),t.on("close",u)):(t.on("complete",c),t.on("abort",p),t.req?m():t.on("request",m)),t.on("end",d),t.on("finish",c),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"}],[8151,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/from-browser.js"}],[8152,{"../../../errors":8141,"./end-of-stream":8150},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;var i=e("../../../errors").codes,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}t.exports=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var c,f=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new o("streams");var d=r.map(function(t,i){var o=i<r.length-1;return function(t,r,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;t.on("close",function(){a=!0}),n===undefined&&(n=e("./end-of-stream")),n(t,{readable:r,writable:i},function(e){if(e)return o(e);a=!0,o()});var u=!1;return function(e){if(!a&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}(t,o,i>0,function(e){c||(c=e),e&&d.forEach(u),o||(d.forEach(u),f(c))})});return r.reduce(l)}}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/pipeline.js"}],[8153,{"../../../errors":8141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/state.js"}],[8154,{events:6680},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("events").EventEmitter}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/stream-browser.js"}],[8155,{"./lib/_stream_duplex.js":8142,"./lib/_stream_passthrough.js":8143,"./lib/_stream_readable.js":8144,"./lib/_stream_transform.js":8145,"./lib/_stream_writable.js":8146,"./lib/internal/streams/end-of-stream.js":8150,"./lib/internal/streams/pipeline.js":8152},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")}}},{package:"stream-http>readable-stream",file:"node_modules/stream-http/node_modules/readable-stream/readable-browser.js"}],[8157,{"safe-buffer":8044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return r!==undefined?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}r.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if((t=this.fillLast(e))===undefined)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=s(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=s(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}}}},{package:"browserify>string_decoder",file:"node_modules/string_decoder/lib/string_decoder.js"}],[8158,{"is-hex-prefixed":6988},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("is-hex-prefixed");t.exports=function(e){return"string"!=typeof e?e:n(e)?e.slice(2):e}}}},{package:"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix",file:"node_modules/strip-hex-prefix/src/index.js"}],[816,{"./bytes.js":804,"./constants.js":805,"./helpers.js":808,"ethereum-cryptography/keccak.js":836,"ethereum-cryptography/secp256k1.js":838},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hashPersonalMessage=r.isValidSignature=r.fromRpcSig=r.toCompactSig=r.toRpcSig=r.ecrecover=r.calculateSigRecovery=r.ecsign=void 0;const n=e("ethereum-cryptography/keccak.js"),i=e("ethereum-cryptography/secp256k1.js"),o=e("./bytes.js"),s=e("./constants.js"),a=e("./helpers.js");function u(e,t){return e===s.BIGINT_0||e===s.BIGINT_1?e:t===undefined?e-s.BIGINT_27:e-(t*s.BIGINT_2+BigInt(35))}function l(e){return e===s.BIGINT_0||e===s.BIGINT_1}r.ecsign=function(e,t,r){const n=i.secp256k1.sign(e,t),o=n.toCompactRawBytes();return{r:o.slice(0,32),s:o.slice(32,64),v:r===undefined?BigInt(n.recovery+27):BigInt(n.recovery+35)+BigInt(r)*s.BIGINT_2}},r.calculateSigRecovery=u;r.ecrecover=function(e,t,r,n,s){const a=(0,o.concatBytes)((0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(n,32)),c=u(t,s);if(!l(c))throw new Error("Invalid signature v value");return i.secp256k1.Signature.fromCompact(a).addRecoveryBit(Number(c)).recoverPublicKey(e).toRawBytes(!1).slice(1)};r.toRpcSig=function(e,t,r,n){if(!l(u(e,n)))throw new Error("Invalid signature v value");return(0,o.bytesToHex)((0,o.concatBytes)((0,o.setLengthLeft)(t,32),(0,o.setLengthLeft)(r,32),(0,o.toBytes)(e)))};r.toCompactSig=function(e,t,r,n){if(!l(u(e,n)))throw new Error("Invalid signature v value");const i=Uint8Array.from([...r]);return(e>BigInt(28)&&e%s.BIGINT_2===s.BIGINT_1||e===s.BIGINT_1||e===BigInt(28))&&(i[0]|=128),(0,o.bytesToHex)((0,o.concatBytes)((0,o.setLengthLeft)(t,32),(0,o.setLengthLeft)(i,32)))};r.fromRpcSig=function(e){const t=(0,o.toBytes)(e);let r,n,i;if(t.length>=65)r=t.subarray(0,32),n=t.subarray(32,64),i=(0,o.bytesToBigInt)(t.subarray(64));else{if(64!==t.length)throw new Error("Invalid signature length");r=t.subarray(0,32),n=t.subarray(32,64),i=BigInt((0,o.bytesToInt)(t.subarray(32,33))>>7),n[0]&=127}return i<27&&(i+=s.BIGINT_27),{v:i,r:r,s:n}};r.isValidSignature=function(e,t,r,n=!0,i){if(32!==t.length||32!==r.length)return!1;if(!l(u(e,i)))return!1;const a=(0,o.bytesToBigInt)(t),c=(0,o.bytesToBigInt)(r);return!(a===s.BIGINT_0||a>=s.SECP256K1_ORDER||c===s.BIGINT_0||c>=s.SECP256K1_ORDER)&&!(n&&c>=s.SECP256K1_ORDER_DIV_2)};r.hashPersonalMessage=function(e){(0,a.assertIsBytes)(e);const t=(0,o.utf8ToBytes)(`Ethereum Signed Message:\n${e.length}`);return(0,n.keccak256)((0,o.concatBytes)(t,e))}}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/signature.js"}],[8169,{isarray:7003,"safe-buffer":8044,"typed-array-buffer":8183},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,i=e("isarray"),o=e("typed-array-buffer"),s=ArrayBuffer.isView||function(e){try{return o(e),!0}catch(e){return!1}},a="undefined"!=typeof Uint8Array,u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,l=u&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);t.exports=function(e,t){if(e instanceof n)return e;if("string"==typeof e)return n.from(e,t);if(u&&s(e)){if(0===e.byteLength)return n.alloc(0);if(l){var r=n.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}var o=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),c=n.from(o);if(c.length===e.byteLength)return c}if(a&&e instanceof Uint8Array)return n.from(e);var f=i(e);if(f)for(var d=0;d<e.length;d+=1){var h=e[d];if("number"!=typeof h||h<0||h>255||~~h!==h)throw new RangeError("Array items must be numbers in the range 0-255.")}if(f||n.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return n.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}}}},{package:"@ngraveio/bc-ur>sha.js>to-buffer",file:"node_modules/to-buffer/index.js"}],[817,{"./bytes.js":804,"./internal.js":810},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=r.isNestedUint8Array=void 0;const n=e("./bytes.js"),i=e("./internal.js");var o;r.isNestedUint8Array=function e(t){if(!Array.isArray(t))return!1;for(const r of t)if(Array.isArray(r)){if(!e(r))return!1}else if(!(r instanceof Uint8Array))return!1;return!0},function(e){e[e.Number=0]="Number",e[e.BigInt=1]="BigInt",e[e.Uint8Array=2]="Uint8Array",e[e.PrefixedHexString=3]="PrefixedHexString"}(o=r.TypeOutput||(r.TypeOutput={})),r.toType=function(e,t){if(null===e)return null;if(e===undefined)return undefined;if("string"==typeof e&&!(0,i.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.toBytes)(e);switch(t){case o.Uint8Array:return r;case o.BigInt:return(0,n.bytesToBigInt)(r);case o.Number:{const e=(0,n.bytesToBigInt)(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 o.PrefixedHexString:return(0,n.bytesToHex)(r);default:throw new Error("unknown outputType")}}}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/types.js"}],[818,{"./constants.js":805},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatBigDecimal=r.GWEI_TO_WEI=void 0;const n=e("./constants.js");r.GWEI_TO_WEI=BigInt(1e9),r.formatBigDecimal=function(e,t,r){t===n.BIGINT_0&&(t=n.BIGINT_1);const i=e/t,o=(e-i*t)*r/t,s=String(r).length-1-String(o).length;return`${i}.${"0".repeat(s)}${o}`}}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/units.js"}],[8181,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i,o,s,a,u,l,c,f,d,h,p,m,b,g,y,w,_,v,E,T,S,A,I,x,R,j,k,P,O,L;!function(e){var r="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:{};function n(e,t){return e!==r&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(r,n){return e[r]=t?t(r,n):n}}"function"==typeof define&&define.amd?define("tslib",["exports"],function(t){e(n(r,n(t)))}):"object"==typeof t&&"object"==typeof t.exports?e(n(r,n(t.exports))):e(n(r))}(function(e){var t=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=function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},s=function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},a=function(e,t){return function(r,n){t(r,n,e)}},u=function(e,t,r,n,i,o){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,u=n.kind,l="getter"===u?"get":"setter"===u?"set":"value",c=!t&&e?n.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),d=!1,h=r.length-1;h>=0;h--){var p={};for(var m in n)p[m]="access"===m?{}:n[m];for(var m in n.access)p.access[m]=n.access[m];p.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(e||null))};var b=(0,r[h])("accessor"===u?{get:f.get,set:f.set}:f[l],p);if("accessor"===u){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw new TypeError("Object expected");(a=s(b.get))&&(f.get=a),(a=s(b.set))&&(f.set=a),(a=s(b.init))&&i.unshift(a)}else(a=s(b))&&("field"===u?i.unshift(a):f[l]=a)}c&&Object.defineProperty(c,n.name,f),d=!0},l=function(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0},c=function(e){return"symbol"==typeof e?e:"".concat(e)},f=function(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})},d=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})},p=function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},m=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||P(t,e,r)},P=Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]},b=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},y=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e},w=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n},_=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},v=function(e){return this instanceof v?(this.v=e,this):new v(e)},E=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,l)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=i[e](t)).value instanceof v?Promise.resolve(r.value.v).then(u,l):c(o[0][2],r)}catch(e){c(o[0][3],e)}var r}function u(e){a("next",e)}function l(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}},T=function(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:!1}:i?i(t):t}:i}},S=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=b(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,i,(t=e[r](t)).done,t.value)})}}},A=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};var r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};I=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&P(t,e,n);return r(t,e),t},x=function(e){return e&&e.__esModule?e:{default:e}},R=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},j=function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},k=function(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)},O=function(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t};var C="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};L=function(e){function t(t){e.error=e.hasError?new C(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,function(e){return t(e),r()})}catch(e){t(e)}}if(e.hasError)throw e.error}()},e("__extends",n),e("__assign",i),e("__rest",o),e("__decorate",s),e("__param",a),e("__esDecorate",u),e("__runInitializers",l),e("__propKey",c),e("__setFunctionName",f),e("__metadata",d),e("__awaiter",h),e("__generator",p),e("__exportStar",m),e("__createBinding",P),e("__values",b),e("__read",g),e("__spread",y),e("__spreadArrays",w),e("__spreadArray",_),e("__await",v),e("__asyncGenerator",E),e("__asyncDelegator",T),e("__asyncValues",S),e("__makeTemplateObject",A),e("__importStar",I),e("__importDefault",x),e("__classPrivateFieldGet",R),e("__classPrivateFieldSet",j),e("__classPrivateFieldIn",k),e("__addDisposableResource",O),e("__disposeResources",L)})}}},{package:"tslib",file:"node_modules/tslib/tslib.js"}],[8182,{crypto:6323},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(t){var r=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;t++)r[t]=e[t];return r},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var s=r(),a=r([1]),u=r([56129,1]),l=r([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),c=r([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),f=r([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=r([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=r([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,r,n){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function m(e,t,r,n,i){var o,s=0;for(o=0;o<i;o++)s|=e[t+o]^r[n+o];return(1&s-1>>>8)-1}function b(e,t,r,n){return m(e,t,r,n,16)}function g(e,t,r,n){return m(e,t,r,n,32)}function y(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,l=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,c=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,b=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,w=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,_=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,v=o,E=s,T=a,S=u,A=l,I=c,x=f,R=d,j=h,k=p,P=m,O=b,L=g,C=y,M=w,N=_,B=0;B<20;B+=2)v^=(i=(L^=(i=(j^=(i=(A^=(i=v+L|0)<<7|i>>>25)+v|0)<<9|i>>>23)+A|0)<<13|i>>>19)+j|0)<<18|i>>>14,I^=(i=(E^=(i=(C^=(i=(k^=(i=I+E|0)<<7|i>>>25)+I|0)<<9|i>>>23)+k|0)<<13|i>>>19)+C|0)<<18|i>>>14,P^=(i=(x^=(i=(T^=(i=(M^=(i=P+x|0)<<7|i>>>25)+P|0)<<9|i>>>23)+M|0)<<13|i>>>19)+T|0)<<18|i>>>14,N^=(i=(O^=(i=(R^=(i=(S^=(i=N+O|0)<<7|i>>>25)+N|0)<<9|i>>>23)+S|0)<<13|i>>>19)+R|0)<<18|i>>>14,v^=(i=(S^=(i=(T^=(i=(E^=(i=v+S|0)<<7|i>>>25)+v|0)<<9|i>>>23)+E|0)<<13|i>>>19)+T|0)<<18|i>>>14,I^=(i=(A^=(i=(R^=(i=(x^=(i=I+A|0)<<7|i>>>25)+I|0)<<9|i>>>23)+x|0)<<13|i>>>19)+R|0)<<18|i>>>14,P^=(i=(k^=(i=(j^=(i=(O^=(i=P+k|0)<<7|i>>>25)+P|0)<<9|i>>>23)+O|0)<<13|i>>>19)+j|0)<<18|i>>>14,N^=(i=(M^=(i=(C^=(i=(L^=(i=N+M|0)<<7|i>>>25)+N|0)<<9|i>>>23)+L|0)<<13|i>>>19)+C|0)<<18|i>>>14;v=v+o|0,E=E+s|0,T=T+a|0,S=S+u|0,A=A+l|0,I=I+c|0,x=x+f|0,R=R+d|0,j=j+h|0,k=k+p|0,P=P+m|0,O=O+b|0,L=L+g|0,C=C+y|0,M=M+w|0,N=N+_|0,e[0]=v>>>0&255,e[1]=v>>>8&255,e[2]=v>>>16&255,e[3]=v>>>24&255,e[4]=E>>>0&255,e[5]=E>>>8&255,e[6]=E>>>16&255,e[7]=E>>>24&255,e[8]=T>>>0&255,e[9]=T>>>8&255,e[10]=T>>>16&255,e[11]=T>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=A>>>0&255,e[17]=A>>>8&255,e[18]=A>>>16&255,e[19]=A>>>24&255,e[20]=I>>>0&255,e[21]=I>>>8&255,e[22]=I>>>16&255,e[23]=I>>>24&255,e[24]=x>>>0&255,e[25]=x>>>8&255,e[26]=x>>>16&255,e[27]=x>>>24&255,e[28]=R>>>0&255,e[29]=R>>>8&255,e[30]=R>>>16&255,e[31]=R>>>24&255,e[32]=j>>>0&255,e[33]=j>>>8&255,e[34]=j>>>16&255,e[35]=j>>>24&255,e[36]=k>>>0&255,e[37]=k>>>8&255,e[38]=k>>>16&255,e[39]=k>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=O>>>0&255,e[45]=O>>>8&255,e[46]=O>>>16&255,e[47]=O>>>24&255,e[48]=L>>>0&255,e[49]=L>>>8&255,e[50]=L>>>16&255,e[51]=L>>>24&255,e[52]=C>>>0&255,e[53]=C>>>8&255,e[54]=C>>>16&255,e[55]=C>>>24&255,e[56]=M>>>0&255,e[57]=M>>>8&255,e[58]=M>>>16&255,e[59]=M>>>24&255,e[60]=N>>>0&255,e[61]=N>>>8&255,e[62]=N>>>16&255,e[63]=N>>>24&255}(e,t,r,n)}function w(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,l=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,c=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,b=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,w=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,_=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,v=0;v<20;v+=2)o^=(i=(g^=(i=(h^=(i=(l^=(i=o+g|0)<<7|i>>>25)+o|0)<<9|i>>>23)+l|0)<<13|i>>>19)+h|0)<<18|i>>>14,c^=(i=(s^=(i=(y^=(i=(p^=(i=c+s|0)<<7|i>>>25)+c|0)<<9|i>>>23)+p|0)<<13|i>>>19)+y|0)<<18|i>>>14,m^=(i=(f^=(i=(a^=(i=(w^=(i=m+f|0)<<7|i>>>25)+m|0)<<9|i>>>23)+w|0)<<13|i>>>19)+a|0)<<18|i>>>14,_^=(i=(b^=(i=(d^=(i=(u^=(i=_+b|0)<<7|i>>>25)+_|0)<<9|i>>>23)+u|0)<<13|i>>>19)+d|0)<<18|i>>>14,o^=(i=(u^=(i=(a^=(i=(s^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+s|0)<<13|i>>>19)+a|0)<<18|i>>>14,c^=(i=(l^=(i=(d^=(i=(f^=(i=c+l|0)<<7|i>>>25)+c|0)<<9|i>>>23)+f|0)<<13|i>>>19)+d|0)<<18|i>>>14,m^=(i=(p^=(i=(h^=(i=(b^=(i=m+p|0)<<7|i>>>25)+m|0)<<9|i>>>23)+b|0)<<13|i>>>19)+h|0)<<18|i>>>14,_^=(i=(w^=(i=(y^=(i=(g^=(i=_+w|0)<<7|i>>>25)+_|0)<<9|i>>>23)+g|0)<<13|i>>>19)+y|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=c>>>0&255,e[5]=c>>>8&255,e[6]=c>>>16&255,e[7]=c>>>24&255,e[8]=m>>>0&255,e[9]=m>>>8&255,e[10]=m>>>16&255,e[11]=m>>>24&255,e[12]=_>>>0&255,e[13]=_>>>8&255,e[14]=_>>>16&255,e[15]=_>>>24&255,e[16]=f>>>0&255,e[17]=f>>>8&255,e[18]=f>>>16&255,e[19]=f>>>24&255,e[20]=d>>>0&255,e[21]=d>>>8&255,e[22]=d>>>16&255,e[23]=d>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,r,n)}var _=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function v(e,t,r,n,i,o,s){var a,u,l=new Uint8Array(16),c=new Uint8Array(64);for(u=0;u<16;u++)l[u]=0;for(u=0;u<8;u++)l[u]=o[u];for(;i>=64;){for(y(c,l,s,_),u=0;u<64;u++)e[t+u]=r[n+u]^c[u];for(a=1,u=8;u<16;u++)a=a+(255&l[u])|0,l[u]=255&a,a>>>=8;i-=64,t+=64,n+=64}if(i>0)for(y(c,l,s,_),u=0;u<i;u++)e[t+u]=r[n+u]^c[u];return 0}function E(e,t,r,n,i){var o,s,a=new Uint8Array(16),u=new Uint8Array(64);for(s=0;s<16;s++)a[s]=0;for(s=0;s<8;s++)a[s]=n[s];for(;r>=64;){for(y(u,a,i,_),s=0;s<64;s++)e[t+s]=u[s];for(o=1,s=8;s<16;s++)o=o+(255&a[s])|0,a[s]=255&o,o>>>=8;r-=64,t+=64}if(r>0)for(y(u,a,i,_),s=0;s<r;s++)e[t+s]=u[s];return 0}function T(e,t,r,n,i){var o=new Uint8Array(32);w(o,n,i,_);for(var s=new Uint8Array(8),a=0;a<8;a++)s[a]=n[a+16];return E(e,t,r,s,o)}function S(e,t,r,n,i,o,s){var a=new Uint8Array(32);w(a,o,s,_);for(var u=new Uint8Array(8),l=0;l<8;l++)u[l]=o[l+16];return v(e,t,r,n,i,u,a)}var A=function(e){var t,r,n,i,o,s,a,u;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,r=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,s=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|s<<2),a=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(s>>>11|a<<5),u=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(a>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function I(e,t,r,n,i,o){var s=new A(o);return s.update(r,n,i),s.finish(e,t),0}function x(e,t,r,n,i,o){var s=new Uint8Array(16);return I(s,0,r,n,i,o),b(e,t,s,0)}function R(e,t,r,n,i){var o;if(r<32)return-1;for(S(e,0,t,0,r,n,i),I(e,16,e,32,r-32,e),o=0;o<16;o++)e[o]=0;return 0}function j(e,t,r,n,i){var o,s=new Uint8Array(32);if(r<32)return-1;if(T(s,0,32,n,i),0!==x(t,16,t,32,r-32,s))return-1;for(S(e,0,t,0,r,n,i),o=0;o<32;o++)e[o]=0;return 0}function k(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function P(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function O(e,t,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(e[o]^t[o]),e[o]^=n,t[o]^=n}function L(e,t){var n,i,o,s=r(),a=r();for(n=0;n<16;n++)a[n]=t[n];for(P(a),P(a),P(a),i=0;i<2;i++){for(s[0]=a[0]-65517,n=1;n<15;n++)s[n]=a[n]-65535-(s[n-1]>>16&1),s[n-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),o=s[15]>>16&1,s[14]&=65535,O(a,s,1-o)}for(n=0;n<16;n++)e[2*n]=255&a[n],e[2*n+1]=a[n]>>8}function C(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return L(r,e),L(n,t),g(r,0,n,0)}function M(e){var t=new Uint8Array(32);return L(t,e),1&t[0]}function N(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function B(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function D(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function U(e,t,r){var n,i,o=0,s=0,a=0,u=0,l=0,c=0,f=0,d=0,h=0,p=0,m=0,b=0,g=0,y=0,w=0,_=0,v=0,E=0,T=0,S=0,A=0,I=0,x=0,R=0,j=0,k=0,P=0,O=0,L=0,C=0,M=0,N=r[0],B=r[1],D=r[2],U=r[3],F=r[4],$=r[5],H=r[6],G=r[7],V=r[8],z=r[9],W=r[10],q=r[11],K=r[12],Y=r[13],X=r[14],J=r[15];o+=(n=t[0])*N,s+=n*B,a+=n*D,u+=n*U,l+=n*F,c+=n*$,f+=n*H,d+=n*G,h+=n*V,p+=n*z,m+=n*W,b+=n*q,g+=n*K,y+=n*Y,w+=n*X,_+=n*J,s+=(n=t[1])*N,a+=n*B,u+=n*D,l+=n*U,c+=n*F,f+=n*$,d+=n*H,h+=n*G,p+=n*V,m+=n*z,b+=n*W,g+=n*q,y+=n*K,w+=n*Y,_+=n*X,v+=n*J,a+=(n=t[2])*N,u+=n*B,l+=n*D,c+=n*U,f+=n*F,d+=n*$,h+=n*H,p+=n*G,m+=n*V,b+=n*z,g+=n*W,y+=n*q,w+=n*K,_+=n*Y,v+=n*X,E+=n*J,u+=(n=t[3])*N,l+=n*B,c+=n*D,f+=n*U,d+=n*F,h+=n*$,p+=n*H,m+=n*G,b+=n*V,g+=n*z,y+=n*W,w+=n*q,_+=n*K,v+=n*Y,E+=n*X,T+=n*J,l+=(n=t[4])*N,c+=n*B,f+=n*D,d+=n*U,h+=n*F,p+=n*$,m+=n*H,b+=n*G,g+=n*V,y+=n*z,w+=n*W,_+=n*q,v+=n*K,E+=n*Y,T+=n*X,S+=n*J,c+=(n=t[5])*N,f+=n*B,d+=n*D,h+=n*U,p+=n*F,m+=n*$,b+=n*H,g+=n*G,y+=n*V,w+=n*z,_+=n*W,v+=n*q,E+=n*K,T+=n*Y,S+=n*X,A+=n*J,f+=(n=t[6])*N,d+=n*B,h+=n*D,p+=n*U,m+=n*F,b+=n*$,g+=n*H,y+=n*G,w+=n*V,_+=n*z,v+=n*W,E+=n*q,T+=n*K,S+=n*Y,A+=n*X,I+=n*J,d+=(n=t[7])*N,h+=n*B,p+=n*D,m+=n*U,b+=n*F,g+=n*$,y+=n*H,w+=n*G,_+=n*V,v+=n*z,E+=n*W,T+=n*q,S+=n*K,A+=n*Y,I+=n*X,x+=n*J,h+=(n=t[8])*N,p+=n*B,m+=n*D,b+=n*U,g+=n*F,y+=n*$,w+=n*H,_+=n*G,v+=n*V,E+=n*z,T+=n*W,S+=n*q,A+=n*K,I+=n*Y,x+=n*X,R+=n*J,p+=(n=t[9])*N,m+=n*B,b+=n*D,g+=n*U,y+=n*F,w+=n*$,_+=n*H,v+=n*G,E+=n*V,T+=n*z,S+=n*W,A+=n*q,I+=n*K,x+=n*Y,R+=n*X,j+=n*J,m+=(n=t[10])*N,b+=n*B,g+=n*D,y+=n*U,w+=n*F,_+=n*$,v+=n*H,E+=n*G,T+=n*V,S+=n*z,A+=n*W,I+=n*q,x+=n*K,R+=n*Y,j+=n*X,k+=n*J,b+=(n=t[11])*N,g+=n*B,y+=n*D,w+=n*U,_+=n*F,v+=n*$,E+=n*H,T+=n*G,S+=n*V,A+=n*z,I+=n*W,x+=n*q,R+=n*K,j+=n*Y,k+=n*X,P+=n*J,g+=(n=t[12])*N,y+=n*B,w+=n*D,_+=n*U,v+=n*F,E+=n*$,T+=n*H,S+=n*G,A+=n*V,I+=n*z,x+=n*W,R+=n*q,j+=n*K,k+=n*Y,P+=n*X,O+=n*J,y+=(n=t[13])*N,w+=n*B,_+=n*D,v+=n*U,E+=n*F,T+=n*$,S+=n*H,A+=n*G,I+=n*V,x+=n*z,R+=n*W,j+=n*q,k+=n*K,P+=n*Y,O+=n*X,L+=n*J,w+=(n=t[14])*N,_+=n*B,v+=n*D,E+=n*U,T+=n*F,S+=n*$,A+=n*H,I+=n*G,x+=n*V,R+=n*z,j+=n*W,k+=n*q,P+=n*K,O+=n*Y,L+=n*X,C+=n*J,_+=(n=t[15])*N,s+=38*(E+=n*D),a+=38*(T+=n*U),u+=38*(S+=n*F),l+=38*(A+=n*$),c+=38*(I+=n*H),f+=38*(x+=n*G),d+=38*(R+=n*V),h+=38*(j+=n*z),p+=38*(k+=n*W),m+=38*(P+=n*q),b+=38*(O+=n*K),g+=38*(L+=n*Y),y+=38*(C+=n*X),w+=38*(M+=n*J),o=(n=(o+=38*(v+=n*B))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),_=(n=_+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),_=(n=_+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=c,e[6]=f,e[7]=d,e[8]=h,e[9]=p,e[10]=m,e[11]=b,e[12]=g,e[13]=y,e[14]=w,e[15]=_}function F(e,t){U(e,t,t)}function $(e,t){var n,i=r();for(n=0;n<16;n++)i[n]=t[n];for(n=253;n>=0;n--)F(i,i),2!==n&&4!==n&&U(i,i,t);for(n=0;n<16;n++)e[n]=i[n]}function H(e,t){var n,i=r();for(n=0;n<16;n++)i[n]=t[n];for(n=250;n>=0;n--)F(i,i),1!==n&&U(i,i,t);for(n=0;n<16;n++)e[n]=i[n]}function G(e,t,n){var i,o,s=new Uint8Array(32),a=new Float64Array(80),l=r(),c=r(),f=r(),d=r(),h=r(),p=r();for(o=0;o<31;o++)s[o]=t[o];for(s[31]=127&t[31]|64,s[0]&=248,N(a,n),o=0;o<16;o++)c[o]=a[o],d[o]=l[o]=f[o]=0;for(l[0]=d[0]=1,o=254;o>=0;--o)O(l,c,i=s[o>>>3]>>>(7&o)&1),O(f,d,i),B(h,l,f),D(l,l,f),B(f,c,d),D(c,c,d),F(d,h),F(p,l),U(l,f,l),U(f,c,h),B(h,l,f),D(l,l,f),F(c,l),D(f,d,p),U(l,f,u),B(l,l,d),U(f,f,l),U(l,d,p),U(d,c,a),F(c,h),O(l,c,i),O(f,d,i);for(o=0;o<16;o++)a[o+16]=l[o],a[o+32]=f[o],a[o+48]=c[o],a[o+64]=d[o];var m=a.subarray(32),b=a.subarray(16);return $(m,m),U(b,b,m),L(e,b),0}function V(e,t){return G(e,t,o)}function z(e,t){return n(t,32),V(e,t)}function W(e,t,r){var n=new Uint8Array(32);return G(n,r,t),w(e,i,n,_)}A.prototype.blocks=function(e,t,r){for(var n,i,o,s,a,u,l,c,f,d,h,p,m,b,g,y,w,_,v,E=this.fin?0:2048,T=this.h[0],S=this.h[1],A=this.h[2],I=this.h[3],x=this.h[4],R=this.h[5],j=this.h[6],k=this.h[7],P=this.h[8],O=this.h[9],L=this.r[0],C=this.r[1],M=this.r[2],N=this.r[3],B=this.r[4],D=this.r[5],U=this.r[6],F=this.r[7],$=this.r[8],H=this.r[9];r>=16;)d=f=0,d+=(T+=8191&(n=255&e[t+0]|(255&e[t+1])<<8))*L,d+=(S+=8191&(n>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*H),d+=(A+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*$),d+=(I+=8191&(o>>>7|(s=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*F),f=(d+=(x+=8191&(s>>>4|(a=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*U))>>>13,d&=8191,d+=(R+=a>>>1&8191)*(5*D),d+=(j+=8191&(a>>>14|(u=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*B),d+=(k+=8191&(u>>>11|(l=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*N),d+=(P+=8191&(l>>>8|(c=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*M),h=f+=(d+=(O+=c>>>5|E)*(5*C))>>>13,h+=T*C,h+=S*L,h+=A*(5*H),h+=I*(5*$),f=(h+=x*(5*F))>>>13,h&=8191,h+=R*(5*U),h+=j*(5*D),h+=k*(5*B),h+=P*(5*N),f+=(h+=O*(5*M))>>>13,h&=8191,p=f,p+=T*M,p+=S*C,p+=A*L,p+=I*(5*H),f=(p+=x*(5*$))>>>13,p&=8191,p+=R*(5*F),p+=j*(5*U),p+=k*(5*D),p+=P*(5*B),m=f+=(p+=O*(5*N))>>>13,m+=T*N,m+=S*M,m+=A*C,m+=I*L,f=(m+=x*(5*H))>>>13,m&=8191,m+=R*(5*$),m+=j*(5*F),m+=k*(5*U),m+=P*(5*D),b=f+=(m+=O*(5*B))>>>13,b+=T*B,b+=S*N,b+=A*M,b+=I*C,f=(b+=x*L)>>>13,b&=8191,b+=R*(5*H),b+=j*(5*$),b+=k*(5*F),b+=P*(5*U),g=f+=(b+=O*(5*D))>>>13,g+=T*D,g+=S*B,g+=A*N,g+=I*M,f=(g+=x*C)>>>13,g&=8191,g+=R*L,g+=j*(5*H),g+=k*(5*$),g+=P*(5*F),y=f+=(g+=O*(5*U))>>>13,y+=T*U,y+=S*D,y+=A*B,y+=I*N,f=(y+=x*M)>>>13,y&=8191,y+=R*C,y+=j*L,y+=k*(5*H),y+=P*(5*$),w=f+=(y+=O*(5*F))>>>13,w+=T*F,w+=S*U,w+=A*D,w+=I*B,f=(w+=x*N)>>>13,w&=8191,w+=R*M,w+=j*C,w+=k*L,w+=P*(5*H),_=f+=(w+=O*(5*$))>>>13,_+=T*$,_+=S*F,_+=A*U,_+=I*D,f=(_+=x*B)>>>13,_&=8191,_+=R*N,_+=j*M,_+=k*C,_+=P*L,v=f+=(_+=O*(5*H))>>>13,v+=T*H,v+=S*$,v+=A*F,v+=I*U,f=(v+=x*D)>>>13,v&=8191,v+=R*B,v+=j*N,v+=k*M,v+=P*C,T=d=8191&(f=(f=((f+=(v+=O*L)>>>13)<<2)+f|0)+(d&=8191)|0),S=h+=f>>>=13,A=p&=8191,I=m&=8191,x=b&=8191,R=g&=8191,j=y&=8191,k=w&=8191,P=_&=8191,O=v&=8191,t+=16,r-=16;this.h[0]=T,this.h[1]=S,this.h[2]=A,this.h[3]=I,this.h[4]=x,this.h[5]=R,this.h[6]=j,this.h[7]=k,this.h[8]=P,this.h[9]=O},A.prototype.finish=function(e,t){var r,n,i,o,s=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,s[0]=this.h[0]+5,r=s[0]>>>13,s[0]&=8191,o=1;o<10;o++)s[o]=this.h[o]+r,r=s[o]>>>13,s[o]&=8191;for(s[9]-=8192,n=(1^r)-1,o=0;o<10;o++)s[o]&=n;for(n=~n,o=0;o<10;o++)this.h[o]=this.h[o]&n|s[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},A.prototype.update=function(e,t,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=e[t+n];if(r-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(e,t,i),t+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=e[t+n];this.leftover+=r}};var q=R,K=j;var Y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function X(e,t,r,n){for(var i,o,s,a,u,l,c,f,d,h,p,m,b,g,y,w,_,v,E,T,S,A,I,x,R,j,k=new Int32Array(16),P=new Int32Array(16),O=e[0],L=e[1],C=e[2],M=e[3],N=e[4],B=e[5],D=e[6],U=e[7],F=t[0],$=t[1],H=t[2],G=t[3],V=t[4],z=t[5],W=t[6],q=t[7],K=0;n>=128;){for(E=0;E<16;E++)T=8*E+K,k[E]=r[T+0]<<24|r[T+1]<<16|r[T+2]<<8|r[T+3],P[E]=r[T+4]<<24|r[T+5]<<16|r[T+6]<<8|r[T+7];for(E=0;E<80;E++)if(i=O,o=L,s=C,a=M,u=N,l=B,c=D,U,d=F,h=$,p=H,m=G,b=V,g=z,y=W,q,I=65535&(A=q),x=A>>>16,R=65535&(S=U),j=S>>>16,I+=65535&(A=(V>>>14|N<<18)^(V>>>18|N<<14)^(N>>>9|V<<23)),x+=A>>>16,R+=65535&(S=(N>>>14|V<<18)^(N>>>18|V<<14)^(V>>>9|N<<23)),j+=S>>>16,I+=65535&(A=V&z^~V&W),x+=A>>>16,R+=65535&(S=N&B^~N&D),j+=S>>>16,I+=65535&(A=Y[2*E+1]),x+=A>>>16,R+=65535&(S=Y[2*E]),j+=S>>>16,S=k[E%16],x+=(A=P[E%16])>>>16,R+=65535&S,j+=S>>>16,R+=(x+=(I+=65535&A)>>>16)>>>16,I=65535&(A=v=65535&I|x<<16),x=A>>>16,R=65535&(S=_=65535&R|(j+=R>>>16)<<16),j=S>>>16,I+=65535&(A=(F>>>28|O<<4)^(O>>>2|F<<30)^(O>>>7|F<<25)),x+=A>>>16,R+=65535&(S=(O>>>28|F<<4)^(F>>>2|O<<30)^(F>>>7|O<<25)),j+=S>>>16,x+=(A=F&$^F&H^$&H)>>>16,R+=65535&(S=O&L^O&C^L&C),j+=S>>>16,f=65535&(R+=(x+=(I+=65535&A)>>>16)>>>16)|(j+=R>>>16)<<16,w=65535&I|x<<16,I=65535&(A=m),x=A>>>16,R=65535&(S=a),j=S>>>16,x+=(A=v)>>>16,R+=65535&(S=_),j+=S>>>16,L=i,C=o,M=s,N=a=65535&(R+=(x+=(I+=65535&A)>>>16)>>>16)|(j+=R>>>16)<<16,B=u,D=l,U=c,O=f,$=d,H=h,G=p,V=m=65535&I|x<<16,z=b,W=g,q=y,F=w,E%16==15)for(T=0;T<16;T++)S=k[T],I=65535&(A=P[T]),x=A>>>16,R=65535&S,j=S>>>16,S=k[(T+9)%16],I+=65535&(A=P[(T+9)%16]),x+=A>>>16,R+=65535&S,j+=S>>>16,_=k[(T+1)%16],I+=65535&(A=((v=P[(T+1)%16])>>>1|_<<31)^(v>>>8|_<<24)^(v>>>7|_<<25)),x+=A>>>16,R+=65535&(S=(_>>>1|v<<31)^(_>>>8|v<<24)^_>>>7),j+=S>>>16,_=k[(T+14)%16],x+=(A=((v=P[(T+14)%16])>>>19|_<<13)^(_>>>29|v<<3)^(v>>>6|_<<26))>>>16,R+=65535&(S=(_>>>19|v<<13)^(v>>>29|_<<3)^_>>>6),j+=S>>>16,j+=(R+=(x+=(I+=65535&A)>>>16)>>>16)>>>16,k[T]=65535&R|j<<16,P[T]=65535&I|x<<16;I=65535&(A=F),x=A>>>16,R=65535&(S=O),j=S>>>16,S=e[0],x+=(A=t[0])>>>16,R+=65535&S,j+=S>>>16,j+=(R+=(x+=(I+=65535&A)>>>16)>>>16)>>>16,e[0]=O=65535&R|j<<16,t[0]=F=65535&I|x<<16,I=65535&(A=$),x=A>>>16,R=65535&(S=L),j=S>>>16,S=e[1],x+=(A=t[1])>>>16,R+=65535&S,j+=S>>>16,j+=(R+=(x+=(I+=65535&A)>>>16)>>>16)>>>16,e[1]=L=65535&R|j<<16,t[1]=$=65535&I|x<<16,I=65535&(A=H),x=A>>>16,R=65535&(S=C),j=S>>>16,S=e[2],x+=(A=t[2])>>>16,R+=65535&S,j+=S>>>16,j+=(R+=(x+=(I+=65535&A)>>>16)>>>16)>>>16,e[2]=C=65535&R|j<<16,t[2]=H=65535&I|x<<16,I=65535&(A=G),x=A>>>16,R=65535&(S=M),j=S>>>16,S=e[3],x+=(A=t[3])>>>16,R+=65535&S,j+=S>>>16,j+=(R+=(x+=(I+=65535&A)>>>16)>>>16)>>>16,e[3]=M=65535&R|j<<16,t[3]=G=65535&I|x<<16,I=65535&(A=V),x=A>>>16,R=65535&(S=N),j=S>>>16,S=e[4],x+=(A=t[4])>>>16,R+=65535&S,j+=S>>>16,j+=(R+=(x+=(I+=65535&A)>>>16)>>>16)>>>16,e[4]=N=65535&R|j<<16,t[4]=V=65535&I|x<<16,I=65535&(A=z),x=A>>>16,R=65535&(S=B),j=S>>>16,S=e[5],x+=(A=t[5])>>>16,R+=65535&S,j+=S>>>16,j+=(R+=(x+=(I+=65535&A)>>>16)>>>16)>>>16,e[5]=B=65535&R|j<<16,t[5]=z=65535&I|x<<16,I=65535&(A=W),x=A>>>16,R=65535&(S=D),j=S>>>16,S=e[6],x+=(A=t[6])>>>16,R+=65535&S,j+=S>>>16,j+=(R+=(x+=(I+=65535&A)>>>16)>>>16)>>>16,e[6]=D=65535&R|j<<16,t[6]=W=65535&I|x<<16,I=65535&(A=q),x=A>>>16,R=65535&(S=U),j=S>>>16,S=e[7],x+=(A=t[7])>>>16,R+=65535&S,j+=S>>>16,j+=(R+=(x+=(I+=65535&A)>>>16)>>>16)>>>16,e[7]=U=65535&R|j<<16,t[7]=q=65535&I|x<<16,K+=128,n-=128}return n}function J(e,t,r){var n,i=new Int32Array(8),o=new Int32Array(8),s=new Uint8Array(256),a=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,X(i,o,t,r),r%=128,n=0;n<r;n++)s[n]=t[a-r+n];for(s[r]=128,s[(r=256-128*(r<112?1:0))-9]=0,p(s,r-8,a/536870912|0,a<<3),X(i,o,s,r),n=0;n<8;n++)p(e,8*n,i[n],o[n]);return 0}function Z(e,t){var n=r(),i=r(),o=r(),s=r(),a=r(),u=r(),l=r(),f=r(),d=r();D(n,e[1],e[0]),D(d,t[1],t[0]),U(n,n,d),B(i,e[0],e[1]),B(d,t[0],t[1]),U(i,i,d),U(o,e[3],t[3]),U(o,o,c),U(s,e[2],t[2]),B(s,s,s),D(a,i,n),D(u,s,o),B(l,s,o),B(f,i,n),U(e[0],a,u),U(e[1],f,l),U(e[2],l,u),U(e[3],a,f)}function Q(e,t,r){var n;for(n=0;n<4;n++)O(e[n],t[n],r)}function ee(e,t){var n=r(),i=r(),o=r();$(o,t[2]),U(n,t[0],o),U(i,t[1],o),L(e,i),e[31]^=M(n)<<7}function te(e,t,r){var n,i;for(k(e[0],s),k(e[1],a),k(e[2],a),k(e[3],s),i=255;i>=0;--i)Q(e,t,n=r[i/8|0]>>(7&i)&1),Z(t,e),Z(e,e),Q(e,t,n)}function re(e,t){var n=[r(),r(),r(),r()];k(n[0],f),k(n[1],d),k(n[2],a),U(n[3],f,d),te(e,n,t)}function ne(e,t,i){var o,s=new Uint8Array(64),a=[r(),r(),r(),r()];for(i||n(t,32),J(s,t,32),s[0]&=248,s[31]&=127,s[31]|=64,re(a,s),ee(e,a),o=0;o<32;o++)t[o+32]=e[o];return 0}var ie=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function oe(e,t){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*ie[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=256*r;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*ie[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*ie[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function se(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;oe(e,r)}function ae(e,t,n,i){var o,s,a=new Uint8Array(64),u=new Uint8Array(64),l=new Uint8Array(64),c=new Float64Array(64),f=[r(),r(),r(),r()];J(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var d=n+64;for(o=0;o<n;o++)e[64+o]=t[o];for(o=0;o<32;o++)e[32+o]=a[32+o];for(J(l,e.subarray(32),n+32),se(l),re(f,l),ee(e,f),o=32;o<64;o++)e[o]=i[o];for(J(u,e,n+64),se(u),o=0;o<64;o++)c[o]=0;for(o=0;o<32;o++)c[o]=l[o];for(o=0;o<32;o++)for(s=0;s<32;s++)c[o+s]+=u[o]*a[s];return oe(e.subarray(32),c),d}function ue(e,t,n,i){var o,u=new Uint8Array(32),c=new Uint8Array(64),f=[r(),r(),r(),r()],d=[r(),r(),r(),r()];if(n<64)return-1;if(function(e,t){var n=r(),i=r(),o=r(),u=r(),c=r(),f=r(),d=r();return k(e[2],a),N(e[1],t),F(o,e[1]),U(u,o,l),D(o,o,e[2]),B(u,e[2],u),F(c,u),F(f,c),U(d,f,c),U(n,d,o),U(n,n,u),H(n,n),U(n,n,o),U(n,n,u),U(n,n,u),U(e[0],n,u),F(i,e[0]),U(i,i,u),C(i,o)&&U(e[0],e[0],h),F(i,e[0]),U(i,i,u),C(i,o)?-1:(M(e[0])===t[31]>>7&&D(e[0],s,e[0]),U(e[3],e[0],e[1]),0)}(d,i))return-1;for(o=0;o<n;o++)e[o]=t[o];for(o=0;o<32;o++)e[o+32]=i[o];if(J(c,e,n),se(c),te(f,d,c),re(d,t.subarray(32)),Z(f,d),ee(u,f),n-=64,g(t,0,u,0)){for(o=0;o<n;o++)e[o]=0;return-1}for(o=0;o<n;o++)e[o]=t[o+64];return n}var le=16,ce=64,fe=32,de=64;function he(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function pe(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function me(e){for(var t=0;t<e.length;t++)e[t]=0}t.lowlevel={crypto_core_hsalsa20:w,crypto_stream_xor:S,crypto_stream:T,crypto_stream_salsa20_xor:v,crypto_stream_salsa20:E,crypto_onetimeauth:I,crypto_onetimeauth_verify:x,crypto_verify_16:b,crypto_verify_32:g,crypto_secretbox:R,crypto_secretbox_open:j,crypto_scalarmult:G,crypto_scalarmult_base:V,crypto_box_beforenm:W,crypto_box_afternm:q,crypto_box:function(e,t,r,n,i,o){var s=new Uint8Array(32);return W(s,i,o),q(e,t,r,n,s)},crypto_box_open:function(e,t,r,n,i,o){var s=new Uint8Array(32);return W(s,i,o),K(e,t,r,n,s)},crypto_box_keypair:z,crypto_hash:J,crypto_sign:ae,crypto_sign_keypair:ne,crypto_sign_open:ue,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:le,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ce,crypto_sign_PUBLICKEYBYTES:fe,crypto_sign_SECRETKEYBYTES:de,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:r,D:l,L:ie,pack25519:L,unpack25519:N,M:U,A:B,S:F,Z:D,pow2523:H,add:Z,set25519:k,modL:oe,scalarmult:te,scalarbase:re},t.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},t.secretbox=function(e,t,r){pe(e,t,r),he(r,t);for(var n=new Uint8Array(32+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+32]=e[o];return R(i,n,n.length,t,r),i.subarray(le)},t.secretbox.open=function(e,t,r){pe(e,t,r),he(r,t);for(var n=new Uint8Array(le+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+le]=e[o];return n.length<32||0!==j(i,n,n.length,t,r)?null:i.subarray(32)},t.secretbox.keyLength=32,t.secretbox.nonceLength=24,t.secretbox.overheadLength=le,t.scalarMult=function(e,t){if(pe(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var r=new Uint8Array(32);return G(r,e,t),r},t.scalarMult.base=function(e){if(pe(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return V(t,e),t},t.scalarMult.scalarLength=32,t.scalarMult.groupElementLength=32,t.box=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox(e,r,o)},t.box.before=function(e,t){pe(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var r=new Uint8Array(32);return W(r,e,t),r},t.box.after=t.secretbox,t.box.open=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox.open(e,r,o)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return z(e,t),{publicKey:e,secretKey:t}},t.box.keyPair.fromSecretKey=function(e){if(pe(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return V(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},t.box.publicKeyLength=32,t.box.secretKeyLength=32,t.box.sharedKeyLength=32,t.box.nonceLength=24,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(e,t){if(pe(e,t),t.length!==de)throw new Error("bad secret key size");var r=new Uint8Array(ce+e.length);return ae(r,e,e.length,t),r},t.sign.open=function(e,t){if(pe(e,t),t.length!==fe)throw new Error("bad public key size");var r=new Uint8Array(e.length),n=ue(r,e,e.length,t);if(n<0)return null;for(var i=new Uint8Array(n),o=0;o<i.length;o++)i[o]=r[o];return i},t.sign.detached=function(e,r){for(var n=t.sign(e,r),i=new Uint8Array(ce),o=0;o<i.length;o++)i[o]=n[o];return i},t.sign.detached.verify=function(e,t,r){if(pe(e,t,r),t.length!==ce)throw new Error("bad signature size");if(r.length!==fe)throw new Error("bad public key size");var n,i=new Uint8Array(ce+e.length),o=new Uint8Array(ce+e.length);for(n=0;n<ce;n++)i[n]=t[n];for(n=0;n<e.length;n++)i[n+ce]=e[n];return ue(o,i,i.length,r)>=0},t.sign.keyPair=function(){var e=new Uint8Array(fe),t=new Uint8Array(de);return ne(e,t),{publicKey:e,secretKey:t}},t.sign.keyPair.fromSecretKey=function(e){if(pe(e),e.length!==de)throw new Error("bad secret key size");for(var t=new Uint8Array(fe),r=0;r<t.length;r++)t[r]=e[32+r];return{publicKey:t,secretKey:new Uint8Array(e)}},t.sign.keyPair.fromSeed=function(e){if(pe(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(fe),r=new Uint8Array(de),n=0;n<32;n++)r[n]=e[n];return ne(t,r,!0),{publicKey:t,secretKey:r}},t.sign.publicKeyLength=fe,t.sign.secretKeyLength=de,t.sign.seedLength=32,t.sign.signatureLength=ce,t.hash=function(e){pe(e);var t=new Uint8Array(64);return J(t,e,e.length),t},t.hash.hashLength=64,t.verify=function(e,t){return pe(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===m(e,0,t,0,e.length))},t.setPRNG=function(e){n=e},function(){var r="undefined"!=typeof self?self.crypto||self.msCrypto:null;if(r&&r.getRandomValues){t.setPRNG(function(e,t){var n,i=new Uint8Array(t);for(n=0;n<t;n+=65536)r.getRandomValues(i.subarray(n,n+Math.min(t-n,65536)));for(n=0;n<t;n++)e[n]=i[n];me(i)})}else void 0!==e&&(r=e("crypto"))&&r.randomBytes&&t.setPRNG(function(e,t){var n,i=r.randomBytes(t);for(n=0;n<t;n++)e[n]=i[n];me(i)})}()}(void 0!==t&&t.exports?t.exports:self.nacl=self.nacl||{})}}},{package:"tweetnacl",file:"node_modules/tweetnacl/nacl-fast.js"}],[8183,{"call-bound":6392,"es-errors/type":6581,"is-typed-array":6999},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("es-errors/type"),i=e("call-bound")("TypedArray.prototype.buffer",!0),o=e("is-typed-array");t.exports=i||function(e){if(!o(e))throw new n("Not a Typed Array");return e.buffer}}}},{package:"string.prototype.matchall>es-abstract>typed-array-buffer",file:"node_modules/typed-array-buffer/index.js"}],[8186,{crypto:8187},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e,n){"object"==typeof r&&void 0!==t?n(r):"function"==typeof define&&define.amd?define(["exports"],n):n(e.ULID={})}(this,function(t){function r(e){var t=new Error(e);return t.source="ulid",t}var n="0123456789ABCDEFGHJKMNPQRSTVWXYZ",i=32,o=Math.pow(2,48)-1;function s(e,t,r){return t>e.length-1?e:e.substr(0,t)+r+e.substr(t+1)}function a(e){for(var t=undefined,i=e.length,o=void 0,a=void 0;!t&&i-- >=0;){if(o=e[i],-1===(a=n.indexOf(o)))throw r("incorrectly encoded string");31!==a?t=s(e,i,n[a+1]):e=s(e,i,n[0])}if("string"==typeof t)return t;throw r("cannot increment this string")}function u(e){var t=Math.floor(e()*i);return t===i&&(t=31),n.charAt(t)}function l(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>o)throw r("cannot encode time greater than "+o);if(e<0)throw r("time must be positive");if(!1===Number.isInteger(e))throw r("time must be an integer");for(var s=void 0,a="";t>0;t--)a=n.charAt(s=e%i)+a,e=(e-s)/i;return a}function c(e,t){for(var r="";e>0;e--)r=u(t)+r;return r}function f(){var t=arguments.length>0&&arguments[0]!==undefined&&arguments[0],n=arguments[1];n||(n="undefined"!=typeof window?window:null);var i=n&&(n.crypto||n.msCrypto);if(i)return function(){var e=new Uint8Array(1);return i.getRandomValues(e),e[0]/255};try{var o=e("crypto");return function(){return o.randomBytes(1).readUInt8()/255}}catch(e){}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch(e){}return function(){return Math.random()}}throw r("secure crypto unusable, insecure Math.random not allowed")}function d(e){return e||(e=f()),function(t){return isNaN(t)&&(t=Date.now()),l(t,10)+c(16,e)}}var h=d();t.replaceCharAt=s,t.incrementBase32=a,t.randomChar=u,t.encodeTime=l,t.encodeRandom=c,t.decodeTime=function(e){if(26!==e.length)throw r("malformed ulid");var t=e.substr(0,10).split("").reverse().reduce(function(e,t,o){var s=n.indexOf(t);if(-1===s)throw r("invalid character found: "+t);return e+s*Math.pow(i,o)},0);if(t>o)throw r("malformed ulid, timestamp too large");return t},t.detectPrng=f,t.factory=d,t.monotonicFactory=function(e){e||(e=f());var t=0,r=void 0;return function(n){if(isNaN(n)&&(n=Date.now()),n<=t){var i=r=a(r);return l(t,10)+i}t=n;var o=r=c(16,e);return l(n,10)+o}},t.ulid=h,Object.defineProperty(t,"__esModule",{value:!0})})}}},{package:"@metamask/keyring-controller>ulid",file:"node_modules/ulid/dist/index.umd.js"}],[8187,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){}}},{package:"@metamask/keyring-controller>ulid",file:"node_modules/ulid/stubs/crypto.js"}],[819,{"./bytes.js":804},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getVerkleTreeKeyForStorageSlot=r.chunkifyCode=r.getVerkleTreeKeyForCodeChunk=r.getVerkleTreeIndicesForCodeChunk=r.getVerkleTreeIndexesForStorageSlot=r.getVerkleKey=r.VERKLE_MAIN_STORAGE_OFFSET=r.VERKLE_NODE_WIDTH=r.VERKLE_CODE_OFFSET=r.VERKLE_HEADER_STORAGE_OFFSET=r.VERKLE_CODE_SIZE_LEAF_KEY=r.VERKLE_CODE_HASH_LEAF_KEY=r.VERKLE_NONCE_LEAF_KEY=r.VERKLE_BALANCE_LEAF_KEY=r.VERKLE_VERSION_LEAF_KEY=r.VerkleLeafType=r.verifyVerkleProof=r.getVerkleStem=void 0;const n=e("./bytes.js");function i(e,t,r=0){const i=(0,n.setLengthLeft)(t.toBytes(),32);let o;o="number"==typeof r?(0,n.setLengthRight)((0,n.int32ToBytes)(Number(r),!0),32):(0,n.setLengthRight)((0,n.bigIntToBytes)(BigInt(r),!0).slice(0,32),32);return e.getTreeKey(i,o,0).slice(0,31)}var o;r.getVerkleStem=i,r.verifyVerkleProof=function(e,t,r){return e.verifyExecutionWitnessPreState((0,n.bytesToHex)(t),JSON.stringify(r))},function(e){e[e.Version=0]="Version",e[e.Balance=1]="Balance",e[e.Nonce=2]="Nonce",e[e.CodeHash=3]="CodeHash",e[e.CodeSize=4]="CodeSize"}(o=r.VerkleLeafType||(r.VerkleLeafType={})),r.VERKLE_VERSION_LEAF_KEY=(0,n.intToBytes)(o.Version),r.VERKLE_BALANCE_LEAF_KEY=(0,n.intToBytes)(o.Balance),r.VERKLE_NONCE_LEAF_KEY=(0,n.intToBytes)(o.Nonce),r.VERKLE_CODE_HASH_LEAF_KEY=(0,n.intToBytes)(o.CodeHash),r.VERKLE_CODE_SIZE_LEAF_KEY=(0,n.intToBytes)(o.CodeSize),r.VERKLE_HEADER_STORAGE_OFFSET=64,r.VERKLE_CODE_OFFSET=128,r.VERKLE_NODE_WIDTH=256,r.VERKLE_MAIN_STORAGE_OFFSET=BigInt(256)**BigInt(31);function s(e){let t;t=e<r.VERKLE_CODE_OFFSET-r.VERKLE_HEADER_STORAGE_OFFSET?BigInt(r.VERKLE_HEADER_STORAGE_OFFSET)+e:r.VERKLE_MAIN_STORAGE_OFFSET+e;return{treeIndex:t/BigInt(r.VERKLE_NODE_WIDTH),subIndex:Number(t%BigInt(r.VERKLE_NODE_WIDTH))}}function a(e){return{treeIndex:Math.floor((r.VERKLE_CODE_OFFSET+e)/r.VERKLE_NODE_WIDTH),subIndex:(r.VERKLE_CODE_OFFSET+e)%r.VERKLE_NODE_WIDTH}}r.getVerkleKey=(e,t)=>{switch(t){case o.Version:return(0,n.concatBytes)(e,r.VERKLE_VERSION_LEAF_KEY);case o.Balance:return(0,n.concatBytes)(e,r.VERKLE_BALANCE_LEAF_KEY);case o.Nonce:return(0,n.concatBytes)(e,r.VERKLE_NONCE_LEAF_KEY);case o.CodeHash:return(0,n.concatBytes)(e,r.VERKLE_CODE_HASH_LEAF_KEY);case o.CodeSize:return(0,n.concatBytes)(e,r.VERKLE_CODE_SIZE_LEAF_KEY);default:return(0,n.concatBytes)(e,t)}},r.getVerkleTreeIndexesForStorageSlot=s,r.getVerkleTreeIndicesForCodeChunk=a;r.getVerkleTreeKeyForCodeChunk=async(e,t,r)=>{const{treeIndex:o,subIndex:s}=a(t);return(0,n.concatBytes)(i(r,e,o),(0,n.toBytes)(s))};r.chunkifyCode=e=>{if(e.length%31!=0){const t=31-e.length%31;e=(0,n.setLengthRight)(e,e.length+t)}throw new Error("Not implemented")};r.getVerkleTreeKeyForStorageSlot=async(e,t,r)=>{const{treeIndex:o,subIndex:a}=s(t);return(0,n.concatBytes)(i(r,e,o),(0,n.toBytes)(a))}}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/verkle.js"}],[820,{"./address.js":801,"./bytes.js":804,"./constants.js":805,"./types.js":817},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Withdrawal=void 0;const n=e("./address.js"),i=e("./bytes.js"),o=e("./constants.js"),s=e("./types.js");class a{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:u}=e,l=(0,s.toType)(t,s.TypeOutput.BigInt),c=(0,s.toType)(r,s.TypeOutput.BigInt),f=o instanceof n.Address?o:new n.Address((0,i.toBytes)(o)),d=(0,s.toType)(u,s.TypeOutput.BigInt);return new a(l,c,f,d)}static fromValuesArray(e){if(4!==e.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);const[t,r,n,i]=e;return a.fromWithdrawalData({index:t,validatorIndex:r,address:n,amount:i})}static toBytesArray(e){const{index:t,validatorIndex:r,address:i,amount:a}=e;return[(0,s.toType)(t,s.TypeOutput.BigInt)===o.BIGINT_0?new Uint8Array:(0,s.toType)(t,s.TypeOutput.Uint8Array),(0,s.toType)(r,s.TypeOutput.BigInt)===o.BIGINT_0?new Uint8Array:(0,s.toType)(r,s.TypeOutput.Uint8Array),i instanceof n.Address?i.bytes:(0,s.toType)(i,s.TypeOutput.Uint8Array),(0,s.toType)(a,s.TypeOutput.BigInt)===o.BIGINT_0?new Uint8Array:(0,s.toType)(a,s.TypeOutput.Uint8Array)]}raw(){return a.toBytesArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.bytes,amount:this.amount}}toJSON(){return{index:(0,i.bigIntToHex)(this.index),validatorIndex:(0,i.bigIntToHex)(this.validatorIndex),address:(0,i.bytesToHex)(this.address.bytes),amount:(0,i.bigIntToHex)(this.amount)}}}r.Withdrawal=a}}},{package:"@ethereumjs/tx>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/cjs/withdrawal.js"}],[8200,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
!function(e,n){"object"==typeof r&&void 0!==t?n(r):"function"==typeof define&&define.amd?define(["exports"],n):n(e.URI=e.URI||{})}(this,function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,i=1;i<n;++i)t[i]=t[i].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return e===undefined?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function i(e){return e.toUpperCase()}function o(e){var n="[A-Za-z]",i="[0-9]",o=t(i,"[A-Fa-f]"),s=r(r("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+r("%[89A-Fa-f]"+o+"%"+o+o)+"|"+r("%"+o+o)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",u=t("[\\:\\/\\?\\#\\[\\]\\@]",a),l=e?"[\\uE000-\\uF8FF]":"[]",c=t(n,i,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=r(n+t(n,i,"[\\+\\-\\.]")+"*"),d=r(r(s+"|"+t(c,a,"[\\:]"))+"*"),h=(r(r("25[0-5]")+"|"+r("2[0-4]"+i)+"|"+r("1"+i+i)+"|"+r("[1-9]"+i)+"|"+i),r(r("25[0-5]")+"|"+r("2[0-4]"+i)+"|"+r("1"+i+i)+"|"+r("0?[1-9]"+i)+"|0?0?"+i)),p=r(h+"\\."+h+"\\."+h+"\\."+h),m=r(o+"{1,4}"),b=r(r(m+"\\:"+m)+"|"+p),g=r(r(m+"\\:")+"{6}"+b),y=r("\\:\\:"+r(m+"\\:")+"{5}"+b),w=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+b),_=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+b),v=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+b),E=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+b),T=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+b),S=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),A=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),I=r([g,y,w,_,v,E,T,S,A].join("|")),x=r(r(c+"|"+s)+"+"),R=(r(I+"\\%25"+x),r(I+r("\\%25|\\%(?!"+o+"{2})")+x)),j=r("[vV]"+o+"+\\."+t(c,a,"[\\:]")+"+"),k=r("\\["+r(R+"|"+I+"|"+j)+"\\]"),P=r(r(s+"|"+t(c,a))+"*"),O=r(k+"|"+p+"(?!"+P+")|"+P),L=r(i+"*"),C=r(r(d+"@")+"?"+O+r("\\:"+L)+"?"),M=r(s+"|"+t(c,a,"[\\:\\@]")),N=r(M+"*"),B=r(M+"+"),D=r(r(s+"|"+t(c,a,"[\\@]"))+"+"),U=r(r("\\/"+N)+"*"),F=r("\\/"+r(B+U)+"?"),$=r(D+U),H=r(B+U),G="(?!"+M+")",V=(r(U+"|"+F+"|"+$+"|"+H+"|"+G),r(r(M+"|"+t("[\\/\\?]",l))+"*")),z=r(r(M+"|[\\/\\?]")+"*"),W=r(r("\\/\\/"+C+U)+"|"+F+"|"+H+"|"+G),q=r(f+"\\:"+W+r("\\?"+V)+"?"+r("\\#"+z)+"?"),K=r(r("\\/\\/"+C+U)+"|"+F+"|"+$+"|"+G),Y=r(K+r("\\?"+V)+"?"+r("\\#"+z)+"?");r(q+"|"+Y),r(f+"\\:"+W+r("\\?"+V)+"?"),r(r("\\/\\/("+r("("+d+")@")+"?("+O+")"+r("\\:("+L+")")+"?)")+"?("+U+"|"+F+"|"+H+"|"+G+")"),r("\\?("+V+")"),r("\\#("+z+")"),r(r("\\/\\/("+r("("+d+")@")+"?("+O+")"+r("\\:("+L+")")+"?)")+"?("+U+"|"+F+"|"+$+"|"+G+")"),r("\\?("+V+")"),r("\\#("+z+")"),r(r("\\/\\/("+r("("+d+")@")+"?("+O+")"+r("\\:("+L+")")+"?)")+"?("+U+"|"+F+"|"+H+"|"+G+")"),r("\\?("+V+")"),r("\\#("+z+")"),r("("+d+")@"),r("\\:("+L+")");return{NOT_SCHEME:new RegExp(t("[^]",n,i,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",c,a),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",c,a),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",c,a),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",c,a),"g"),NOT_QUERY:new RegExp(t("[^\\%]",c,a,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",c,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",c,a),"g"),UNRESERVED:new RegExp(c,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",c,u),"g"),PCT_ENCODED:new RegExp(s,"g"),IPV4ADDRESS:new RegExp("^("+p+")$"),IPV6ADDRESS:new RegExp("^\\[?("+I+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+x+")")+"?\\]?$")}}var s=o(!1),a=o(!0),u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=undefined;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=2147483647,c=36,f=/^xn--/,d=/[^\0-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,b=String.fromCharCode;function g(e){throw new RangeError(p[e])}function y(e,t){var r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]);var i=function(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}((e=e.replace(h,".")).split("."),t).join(".");return n+i}function w(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),r--)}else t.push(i)}return t}var _=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c},v=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},E=function(e,t,r){var n=0;for(e=r?m(e/700):e>>1,e+=m(e/t);e>455;n+=c)e=m(e/35);return m(n+36*e/(e+38))},T=function(e){var t=[],r=e.length,n=0,i=128,o=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var a=0;a<s;++a)e.charCodeAt(a)>=128&&g("not-basic"),t.push(e.charCodeAt(a));for(var u=s>0?s+1:0;u<r;){for(var f=n,d=1,h=c;;h+=c){u>=r&&g("invalid-input");var p=_(e.charCodeAt(u++));(p>=c||p>m((l-n)/d))&&g("overflow"),n+=p*d;var b=h<=o?1:h>=o+26?26:h-o;if(p<b)break;var y=c-b;d>m(l/y)&&g("overflow"),d*=y}var w=t.length+1;o=E(n-f,w,0==f),m(n/w)>l-i&&g("overflow"),i+=m(n/w),n%=w,t.splice(n++,0,i)}return String.fromCodePoint.apply(String,t)},S=function(e){var t=[],r=(e=w(e)).length,n=128,i=0,o=72,s=!0,a=!1,u=undefined;try{for(var f,d=e[Symbol.iterator]();!(s=(f=d.next()).done);s=!0){var h=f.value;h<128&&t.push(b(h))}}catch(e){a=!0,u=e}finally{try{!s&&d.return&&d.return()}finally{if(a)throw u}}var p=t.length,y=p;for(p&&t.push("-");y<r;){var _=l,T=!0,S=!1,A=undefined;try{for(var I,x=e[Symbol.iterator]();!(T=(I=x.next()).done);T=!0){var R=I.value;R>=n&&R<_&&(_=R)}}catch(e){S=!0,A=e}finally{try{!T&&x.return&&x.return()}finally{if(S)throw A}}var j=y+1;_-n>m((l-i)/j)&&g("overflow"),i+=(_-n)*j,n=_;var k=!0,P=!1,O=undefined;try{for(var L,C=e[Symbol.iterator]();!(k=(L=C.next()).done);k=!0){var M=L.value;if(M<n&&++i>l&&g("overflow"),M==n){for(var N=i,B=c;;B+=c){var D=B<=o?1:B>=o+26?26:B-o;if(N<D)break;var U=N-D,F=c-D;t.push(b(v(D+U%F,0))),N=m(U/F)}t.push(b(v(N,0))),o=E(i,j,y==p),i=0,++y}}}catch(e){P=!0,O=e}finally{try{!k&&C.return&&C.return()}finally{if(P)throw O}}++i,++n}return t.join("")},A=function(e){return y(e,function(e){return d.test(e)?"xn--"+S(e):e})},I=function(e){return y(e,function(e){return f.test(e)?T(e.slice(4).toLowerCase()):e})},x={};function R(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function j(e){for(var t="",r=0,n=e.length;r<n;){var i=parseInt(e.substr(r+1,2),16);if(i<128)t+=String.fromCharCode(i),r+=3;else if(i>=194&&i<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&i)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(i>=224){if(n-r>=9){var s=parseInt(e.substr(r+4,2),16),a=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function k(e,t){function r(e){var r=j(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),e.userinfo!==undefined&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,R).replace(t.PCT_ENCODED,i)),e.host!==undefined&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,R).replace(t.PCT_ENCODED,i)),e.path!==undefined&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,R).replace(t.PCT_ENCODED,i)),e.query!==undefined&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,R).replace(t.PCT_ENCODED,i)),e.fragment!==undefined&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,R).replace(t.PCT_ENCODED,i)),e}function P(e){return e.replace(/^0*(.*)/,"$1")||"0"}function O(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=u(r,2)[1];return n?n.split(".").map(P).join("."):e}function L(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=u(r,3),i=n[1],o=n[2];if(i){for(var s=i.toLowerCase().split("::").reverse(),a=u(s,2),l=a[0],c=a[1],f=c?c.split(":").map(P):[],d=l.split(":").map(P),h=t.IPV4ADDRESS.test(d[d.length-1]),p=h?7:8,m=d.length-p,b=Array(p),g=0;g<p;++g)b[g]=f[g]||d[m+g]||"";h&&(b[p-1]=O(b[p-1],t));var y=b.reduce(function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e},[]).sort(function(e,t){return t.length-e.length})[0],w=void 0;if(y&&y.length>1){var _=b.slice(0,y.index),v=b.slice(y.index+y.length);w=_.join(":")+"::"+v.join(":")}else w=b.join(":");return o&&(w+="%"+o),w}return e}var C=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,M="".match(/(){0}/)[1]===undefined;function N(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r={},n=!1!==t.iri?a:s;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(C);if(i){M?(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5])):(r.scheme=i[1]||undefined,r.userinfo=-1!==e.indexOf("@")?i[3]:undefined,r.host=-1!==e.indexOf("//")?i[4]:undefined,r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=-1!==e.indexOf("?")?i[7]:undefined,r.fragment=-1!==e.indexOf("#")?i[8]:undefined,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:undefined)),r.host&&(r.host=L(O(r.host,n),n)),r.scheme!==undefined||r.userinfo!==undefined||r.host!==undefined||r.port!==undefined||r.path||r.query!==undefined?r.scheme===undefined?r.reference="relative":r.fragment===undefined?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=x[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)k(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=A(r.host.replace(n.PCT_ENCODED,j).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}k(r,s)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}var B=/^\.\.?\//,D=/^\/\.(\/|$)/,U=/^\/\.\.(\/|$)/,F=/^\/?(?:.|\n)*?(?=\/|$)/;function $(e){for(var t=[];e.length;)if(e.match(B))e=e.replace(B,"");else if(e.match(D))e=e.replace(D,"/");else if(e.match(U))e=e.replace(U,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(F);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function H(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r=t.iri?a:s,n=[],i=x[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?I(e.host):A(e.host.replace(r.PCT_ENCODED,j).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}k(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=function(e,t){var r=!1!==t.iri?a:s,n=[];return e.userinfo!==undefined&&(n.push(e.userinfo),n.push("@")),e.host!==undefined&&n.push(L(O(String(e.host),r),r).replace(r.IPV6ADDRESS,function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"})),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):undefined}(e,t);if(o!==undefined&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),e.path!==undefined){var u=e.path;t.absolutePath||i&&i.absolutePath||(u=$(u)),o===undefined&&(u=u.replace(/^\/\//,"/%2F")),n.push(u)}return e.query!==undefined&&(n.push("?"),n.push(e.query)),e.fragment!==undefined&&(n.push("#"),n.push(e.fragment)),n.join("")}function G(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},n={};return arguments[3]||(e=N(H(e,r),r),t=N(H(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=$(t.path||""),n.query=t.query):(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=$(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=$(t.path):(e.userinfo===undefined&&e.host===undefined&&e.port===undefined||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=$(n.path)),n.query=t.query):(n.path=e.path,t.query!==undefined?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function V(e,t){return e&&e.toString().replace(t&&t.iri?a.PCT_ENCODED:s.PCT_ENCODED,j)}var z={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=undefined),e.path||(e.path="/"),e}},W={scheme:"https",domainHost:z.domainHost,parse:z.parse,serialize:z.serialize};function q(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var K={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=q(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=undefined,r.query=undefined,r},serialize:function(e,t){if(e.port!==(q(e)?443:80)&&""!==e.port||(e.port=undefined),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=undefined),e.resourceName){var r=e.resourceName.split("?"),n=u(r,2),i=n[0],o=n[1];e.path=i&&"/"!==i?i:undefined,e.query=o,e.resourceName=undefined}return e.fragment=undefined,e}},Y={scheme:"wss",domainHost:K.domainHost,parse:K.parse,serialize:K.serialize},X={},J="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Z="[0-9A-Fa-f]",Q=r(r("%[EFef]"+Z+"%"+Z+Z+"%"+Z+Z)+"|"+r("%[89A-Fa-f]"+Z+"%"+Z+Z)+"|"+r("%"+Z+Z)),ee=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),te=new RegExp(J,"g"),re=new RegExp(Q,"g"),ne=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',ee),"g"),ie=new RegExp(t("[^]",J,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),oe=ie;function se(e){var t=j(e);return t.match(te)?t:e}var ae={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=undefined,r.query){for(var i=!1,o={},s=r.query.split("&"),a=0,u=s.length;a<u;++a){var l=s[a].split("=");switch(l[0]){case"to":for(var c=l[1].split(","),f=0,d=c.length;f<d;++f)n.push(c[f]);break;case"subject":r.subject=V(l[1],t);break;case"body":r.body=V(l[1],t);break;default:i=!0,o[V(l[0],t)]=V(l[1],t)}}i&&(r.headers=o)}r.query=undefined;for(var h=0,p=n.length;h<p;++h){var m=n[h].split("@");if(m[0]=V(m[0]),t.unicodeSupport)m[1]=V(m[1],t).toLowerCase();else try{m[1]=A(V(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[h]=m.join("@")}return r},serialize:function(e,t){var r,n=e,o=(r=e.to)!==undefined&&null!==r?r instanceof Array?r:"number"!=typeof r.length||r.split||r.setInterval||r.call?[r]:Array.prototype.slice.call(r):[];if(o){for(var s=0,a=o.length;s<a;++s){var u=String(o[s]),l=u.lastIndexOf("@"),c=u.slice(0,l).replace(re,se).replace(re,i).replace(ne,R),f=u.slice(l+1);try{f=t.iri?I(f):A(V(f,t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}o[s]=c+"@"+f}n.path=o.join(",")}var d=e.headers=e.headers||{};e.subject&&(d.subject=e.subject),e.body&&(d.body=e.body);var h=[];for(var p in d)d[p]!==X[p]&&h.push(p.replace(re,se).replace(re,i).replace(ie,R)+"="+d[p].replace(re,se).replace(re,i).replace(oe,R));return h.length&&(n.query=h.join("&")),n}},ue=/^([^\:]+)\:(.*)/,le={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(ue),n=e;if(r){var i=t.scheme||n.scheme||"urn",o=r[1].toLowerCase(),s=r[2],a=i+":"+(t.nid||o),u=x[a];n.nid=o,n.nss=s,n.path=undefined,u&&(n=u.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,i=r+":"+(t.nid||n),o=x[i];o&&(e=o.serialize(e,t));var s=e,a=e.nss;return s.path=(n||t.nid)+":"+a,s}},ce=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,fe={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=undefined,t.tolerant||r.uuid&&r.uuid.match(ce)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};x[z.scheme]=z,x[W.scheme]=W,x[K.scheme]=K,x[Y.scheme]=Y,x[ae.scheme]=ae,x[le.scheme]=le,x[fe.scheme]=fe,e.SCHEMES=x,e.pctEncChar=R,e.pctDecChars=j,e.parse=N,e.removeDotSegments=$,e.serialize=H,e.resolveComponents=G,e.resolve=function(e,t,r){var n=function(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}({scheme:"null"},r);return H(G(N(e,n),N(t,n),n,!0),n)},e.normalize=function(e,t){return"string"==typeof e?e=H(N(e,t),t):"object"===n(e)&&(e=N(H(e,t),t)),e},e.equal=function(e,t,r){return"string"==typeof e?e=H(N(e,r),r):"object"===n(e)&&(e=H(e,r)),"string"==typeof t?t=H(N(t,r),r):"object"===n(t)&&(t=H(t,r)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?a.ESCAPE:s.ESCAPE,R)},e.unescapeComponent=V,Object.defineProperty(e,"__esModule",{value:!0})})}}},{package:"uri-js",file:"node_modules/uri-js/dist/es5/uri.all.js"}],[8201,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e){var n="object"==typeof r&&r&&!r.nodeType&&r,i="object"==typeof t&&t&&!t.nodeType&&t,o="object"==typeof global&&global;o.global!==o&&o.window!==o&&o.self!==o||(e=o);var s,a,u=2147483647,l=36,c=/^xn--/,f=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,m=String.fromCharCode;function b(e){throw new RangeError(h[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(d,".")).split("."),t).join(".")}function w(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function _(e){return g(e,function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)}).join("")}function v(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:l}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var n=0;for(e=r?p(e/700):e>>1,e+=p(e/t);e>455;n+=l)e=p(e/35);return p(n+36*e/(e+38))}function S(e){var t,r,n,i,o,s,a,c,f,d,h=[],m=e.length,g=0,y=128,w=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&b("not-basic"),h.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<m;){for(o=g,s=1,a=l;i>=m&&b("invalid-input"),((c=v(e.charCodeAt(i++)))>=l||c>p((u-g)/s))&&b("overflow"),g+=c*s,!(c<(f=a<=w?1:a>=w+26?26:a-w));a+=l)s>p(u/(d=l-f))&&b("overflow"),s*=d;w=T(g-o,t=h.length+1,0==o),p(g/t)>u-y&&b("overflow"),y+=p(g/t),g%=t,h.splice(g++,0,y)}return _(h)}function A(e){var t,r,n,i,o,s,a,c,f,d,h,g,y,_,v,S=[];for(g=(e=w(e)).length,t=128,r=0,o=72,s=0;s<g;++s)(h=e[s])<128&&S.push(m(h));for(n=i=S.length,i&&S.push("-");n<g;){for(a=u,s=0;s<g;++s)(h=e[s])>=t&&h<a&&(a=h);for(a-t>p((u-r)/(y=n+1))&&b("overflow"),r+=(a-t)*y,t=a,s=0;s<g;++s)if((h=e[s])<t&&++r>u&&b("overflow"),h==t){for(c=r,f=l;!(c<(d=f<=o?1:f>=o+26?26:f-o));f+=l)v=c-d,_=l-d,S.push(m(E(d+v%_,0))),c=p(v/_);S.push(m(E(c,0))),o=T(r,y,n==i),r=0,++n}++r,++t}return S.join("")}if(s={version:"1.4.1",ucs2:{decode:w,encode:_},decode:S,encode:A,toASCII:function(e){return y(e,function(e){return f.test(e)?"xn--"+A(e):e})},toUnicode:function(e){return y(e,function(e){return c.test(e)?S(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return s});else if(n&&i)if(t.exports==n)i.exports=s;else for(a in s)s.hasOwnProperty(a)&&(n[a]=s[a]);else e.punycode=s}(this)}}},{package:"browserify>url>punycode",file:"node_modules/url/node_modules/punycode/punycode.js"}],[8202,{"punycode/":8201,qs:7651},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("punycode/");function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),c=["%","/","?",";","#"].concat(l),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=e("qs");function y(e,t,r){if(e&&"object"==typeof e&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var y=e=u.join(s);if(y=y.trim(),!r&&1===e.split("#").length){var w=a.exec(y);if(w)return this.path=y,this.href=y,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=o.exec(y);if(_){var v=(_=_[0]).toLowerCase();this.protocol=v,y=y.substr(_.length)}if(r||_||y.match(/^\/\/[^@/]+@[^@/]+/)){var E="//"===y.substr(0,2);!E||_&&m[_]||(y=y.substr(2),this.slashes=!0)}if(!m[_]&&(E||_&&!b[_])){for(var T,S,A=-1,I=0;I<f.length;I++){-1!==(x=y.indexOf(f[I]))&&(-1===A||x<A)&&(A=x)}-1!==(S=-1===A?y.lastIndexOf("@"):y.lastIndexOf("@",A))&&(T=y.slice(0,S),y=y.slice(S+1),this.auth=decodeURIComponent(T)),A=-1;for(I=0;I<c.length;I++){var x;-1!==(x=y.indexOf(c[I]))&&(-1===A||x<A)&&(A=x)}-1===A&&(A=y.length),this.host=y.slice(0,A),y=y.slice(A),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var j=this.hostname.split(/\./),k=(I=0,j.length);I<k;I++){var P=j[I];if(P&&!P.match(d)){for(var O="",L=0,C=P.length;L<C;L++)P.charCodeAt(L)>127?O+="x":O+=P[L];if(!O.match(d)){var M=j.slice(0,I),N=j.slice(I+1),B=P.match(h);B&&(M.push(B[1]),N.unshift(B[2])),N.length&&(y="/"+N.join(".")+y),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+D,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!p[v])for(I=0,k=l.length;I<k;I++){var F=l[I];if(-1!==y.indexOf(F)){var $=encodeURIComponent(F);$===F&&($=escape(F)),y=y.split(F).join($)}}var H=y.indexOf("#");-1!==H&&(this.hash=y.substr(H),y=y.slice(0,H));var G=y.indexOf("?");if(-1!==G?(this.search=y.substr(G),this.query=y.substr(G+1),t&&(this.query=g.parse(this.query)),y=y.slice(0,G)):t&&(this.search="",this.query={}),y&&(this.pathname=y),b[v]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var V=this.search||"";this.path=D+V}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var s=n[o];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),u=0;u<a.length;u++){var l=a[u];"protocol"!==l&&(r[l]=e[l])}return b[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!b[e.protocol]){for(var c=Object.keys(e),f=0;f<c.length;f++){var d=c[f];r[d]=e[d]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||m[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var p=r.pathname||"",g=r.search||"";r.path=p+g}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=w||y||r.host&&e.pathname,v=_,E=r.pathname&&r.pathname.split("/")||[],T=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!b[r.protocol]);if(T&&(r.hostname="",r.port=null,r.host&&(""===E[0]?E[0]=r.host:E.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),_=_&&(""===h[0]||""===E[0])),w)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,E=h;else if(h.length)E||(E=[]),E.pop(),E=E.concat(h),r.search=e.search,r.query=e.query;else if(null!=e.search){if(T)r.host=E.shift(),r.hostname=r.host,(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.hostname=R.shift(),r.host=r.hostname);return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=E.slice(-1)[0],A=(r.host||e.host||E.length>1)&&("."===S||".."===S)||""===S,I=0,x=E.length;x>=0;x--)"."===(S=E[x])?E.splice(x,1):".."===S?(E.splice(x,1),I++):I&&(E.splice(x,1),I--);if(!_&&!v)for(;I--;I)E.unshift("..");!_||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),A&&"/"!==E.join("/").substr(-1)&&E.push("");var R,j=""===E[0]||E[0]&&"/"===E[0].charAt(0);T&&(r.hostname=j?"":E.length?E.shift():"",r.host=r.hostname,(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.hostname=R.shift(),r.host=r.hostname));return(_=_||r.host&&E.length)&&!j&&E.unshift(""),E.length>0?r.pathname=E.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},r.parse=y,r.resolve=function(e,t){return y(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},r.format=function(e){return"string"==typeof e&&(e=y(e)),e instanceof i?e.format():i.prototype.format.call(e)},r.Url=i}}},{package:"browserify>url",file:"node_modules/url/url.js"}],[821,{"./abstract/weierstrass.js":826,"@noble/hashes/hmac":832,"@noble/hashes/utils":835},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getHash=s,r.createCurve=function(e,t){const r=t=>(0,o.weierstrass)({...e,...s(t)});return Object.freeze({...r(t),create:r})};
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
const n=e("@noble/hashes/hmac"),i=e("@noble/hashes/utils"),o=e("./abstract/weierstrass.js");function s(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}}}},{package:"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves",file:"node_modules/@ethereumjs/util/node_modules/@noble/curves/_shortw_utils.js"}],[822,{"./modular.js":824,"./utils.js":825},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.wNAF=function(e,t){const r=(e,t)=>{const r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;for(;r>o;)r&s&&(n=n.add(i)),i=i.double(),r>>=s;return n},precomputeWindow(e,t){const{windows:r,windowSize:i}=n(t),o=[];let s=e,a=s;for(let e=0;e<r;e++){a=s,o.push(a);for(let e=1;e<i;e++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(t,i,o){const{windows:a,windowSize:u}=n(t);let l=e.ZERO,c=e.BASE;const f=BigInt(2**t-1),d=2**t,h=BigInt(t);for(let e=0;e<a;e++){const t=e*u;let n=Number(o&f);o>>=h,n>u&&(n-=d,o+=s);const a=t,p=t+Math.abs(n)-1,m=e%2!=0,b=n<0;0===n?c=c.add(r(m,i[a])):l=l.add(r(b,i[p]))}return{p:l,f:c}},wNAFCached(e,t,r,n){const i=e._WINDOW_SIZE||1;let o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,n(o))),this.wNAF(i,o,r)}}},r.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,i.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
const n=e("./modular.js"),i=e("./utils.js"),o=BigInt(0),s=BigInt(1)}}},{package:"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves",file:"node_modules/@ethereumjs/util/node_modules/@noble/curves/abstract/curve.js"}],[8224,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e){var t,r,n,i=String.fromCharCode;function o(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function s(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function a(e,t){return i(e>>t&63|128)}function u(e){if(!(4294967168&e))return i(e);var t="";return 4294965248&e?4294901760&e?4292870144&e||(t=i(e>>18&7|240),t+=a(e,12),t+=a(e,6)):(s(e),t=i(e>>12&15|224),t+=a(e,6)):t=i(e>>6&31|192),t+=i(63&e|128)}function l(){if(n>=r)throw Error("Invalid byte index");var e=255&t[n];if(n++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function c(){var e,i;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(e=255&t[n],n++,!(128&e))return e;if(192==(224&e)){if((i=(31&e)<<6|l())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&e)){if((i=(15&e)<<12|l()<<6|l())>=2048)return s(i),i;throw Error("Invalid continuation byte")}if(240==(248&e)&&(i=(7&e)<<18|l()<<12|l()<<6|l())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=o(e),r=t.length,n=-1,i="";++n<r;)i+=u(t[n]);return i},e.decode=function(e){t=o(e),r=t.length,n=0;for(var s,a=[];!1!==(s=c());)a.push(s);return function(e){for(var t,r=e.length,n=-1,o="";++n<r;)(t=e[n])>65535&&(o+=i((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=i(t);return o}(a)}}(void 0===r?this.utf8={}:r)}}},{package:"@metamask/keyring-controller>ethereumjs-wallet>utf8",file:"node_modules/utf8/utf8.js"}],[8225,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){try{if(!global.localStorage)return!1}catch(e){return!1}var t=global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}}},{package:"@storybook/react>util-deprecate",file:"node_modules/util-deprecate/browser.js"}],[8226,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}}}},{package:"browserify>util",file:"node_modules/util/support/isBufferBrowser.js"}],[8227,{"is-arguments":6979,"is-generator-function":6987,"is-typed-array":6999,"which-typed-array":8592},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("is-arguments"),i=e("is-generator-function"),o=e("which-typed-array"),s=e("is-typed-array");function a(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=a(Object.prototype.toString),f=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(u)var p=a(BigInt.prototype.valueOf);if(l)var m=a(Symbol.prototype.valueOf);function b(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===c(e)}function y(e){return"[object Set]"===c(e)}function w(e){return"[object WeakMap]"===c(e)}function _(e){return"[object WeakSet]"===c(e)}function v(e){return"[object ArrayBuffer]"===c(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(v.working?v(e):e instanceof ArrayBuffer)}function T(e){return"[object DataView]"===c(e)}function S(e){return"undefined"!=typeof DataView&&(T.working?T(e):e instanceof DataView)}r.isArgumentsObject=n,r.isGeneratorFunction=i,r.isTypedArray=s,r.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},r.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||S(e)},r.isUint8Array=function(e){return"Uint8Array"===o(e)},r.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},r.isUint16Array=function(e){return"Uint16Array"===o(e)},r.isUint32Array=function(e){return"Uint32Array"===o(e)},r.isInt8Array=function(e){return"Int8Array"===o(e)},r.isInt16Array=function(e){return"Int16Array"===o(e)},r.isInt32Array=function(e){return"Int32Array"===o(e)},r.isFloat32Array=function(e){return"Float32Array"===o(e)},r.isFloat64Array=function(e){return"Float64Array"===o(e)},r.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},r.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},g.working="undefined"!=typeof Map&&g(new Map),r.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),r.isSet=function(e){return"undefined"!=typeof Set&&(y.working?y(e):e instanceof Set)},w.working="undefined"!=typeof WeakMap&&w(new WeakMap),r.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(w.working?w(e):e instanceof WeakMap)},_.working="undefined"!=typeof WeakSet&&_(new WeakSet),r.isWeakSet=function(e){return _(e)},v.working="undefined"!=typeof ArrayBuffer&&v(new ArrayBuffer),r.isArrayBuffer=E,T.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&T(new DataView(new ArrayBuffer(1),0,1)),r.isDataView=S;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:undefined;function I(e){return"[object SharedArrayBuffer]"===c(e)}function x(e){return void 0!==A&&(void 0===I.working&&(I.working=I(new A)),I.working?I(e):e instanceof A)}function R(e){return b(e,f)}function j(e){return b(e,d)}function k(e){return b(e,h)}function P(e){return u&&b(e,p)}function O(e){return l&&b(e,m)}r.isSharedArrayBuffer=x,r.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},r.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},r.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},r.isGeneratorObject=function(e){return"[object Generator]"===c(e)},r.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},r.isNumberObject=R,r.isStringObject=j,r.isBooleanObject=k,r.isBigIntObject=P,r.isSymbolObject=O,r.isBoxedPrimitive=function(e){return R(e)||j(e)||k(e)||P(e)||O(e)},r.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||x(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(r,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})}}},{package:"browserify>util",file:"node_modules/util/support/types.js"}]],[],{});