1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6949],{1269:(e,t,r)=>{r.d(t,{A:()=>g});var n=r(12115),a=r(2821),i=r(37659),o=r(49714),l=r(62257),s=r(57179),d=r(35934),c=r(29053),u=r(72496),p=r(84532),f=r(95214),h=r(99303),m=r(95155);let v=(0,o.Ay)(c.A,{shouldForwardProp:e=>(0,d.A)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((0,l.A)(e=>{let{theme:t}=e;return{display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(h.A.selected)]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),["&.".concat(h.A.focusVisible)]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,"".concat((t.vars||t).palette.action.selectedOpacity," + ").concat((t.vars||t).palette.action.focusOpacity))}},["&.".concat(h.A.selected,":hover")]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,"".concat((t.vars||t).palette.action.selectedOpacity," + ").concat((t.vars||t).palette.action.hoverOpacity)),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity)}},["&.".concat(h.A.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(h.A.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:e=>{let{ownerState:t}=e;return t.divider},style:{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:e=>{let{ownerState:t}=e;return!t.disableGutters},style:{paddingLeft:16,paddingRight:16}},{props:e=>{let{ownerState:t}=e;return t.dense},style:{paddingTop:4,paddingBottom:4}}]}})),g=n.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:l=!1,component:d="div",children:c,dense:g=!1,disableGutters:y=!1,divider:E=!1,focusVisibleClassName:b,selected:A=!1,className:w,...C}=r,x=n.useContext(f.A),D=n.useMemo(()=>({dense:g||x.dense||!1,alignItems:o,disableGutters:y}),[o,x.dense,g,y]),S=n.useRef(null);(0,u.A)(()=>{l&&S.current&&S.current.focus()},[l]);let T={...r,alignItems:o,dense:D.dense,disableGutters:y,divider:E,selected:A},W=(e=>{let{alignItems:t,classes:r,dense:n,disabled:a,disableGutters:o,divider:l,selected:s}=e,d=(0,i.A)({root:["root",n&&"dense",!o&&"gutters",l&&"divider",a&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},h.Y,r);return{...r,...d}})(T),M=(0,p.A)(S,t);return(0,m.jsx)(f.A.Provider,{value:D,children:(0,m.jsx)(v,{ref:M,href:C.href||C.to,component:(C.href||C.to)&&"div"===d?"button":d,focusVisibleClassName:(0,a.A)(W.focusVisible,b),ownerState:T,className:(0,a.A)(W.root,w),...C,classes:W,children:c})})})},6170:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(35355),a=r(95155);let i=(0,n.A)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},24025:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(70369).Ay)()},25863:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(35355),a=r(95155);let i=(0,n.A)((0,a.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline")},30839:(e,t,r)=>{r.d(t,{A:()=>o,K:()=>i});var n=r(13053),a=r(81421);function i(e){return(0,a.Ay)("MuiDivider",e)}let o=(0,n.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},30926:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return n.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}});let n=r(41209),a=r(85153),i=r(77197)},44022:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(12115),a=r(2821),i=r(37659),o=r(95214),l=r(49714),s=r(57179),d=r(13053),c=r(81421);function u(e){return(0,c.Ay)("MuiListItemAvatar",e)}(0,d.A)("MuiListItemAvatar",["root","alignItemsFlexStart"]);var p=r(95155);let f=(0,l.Ay)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),h=n.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiListItemAvatar"}),{className:l,...d}=r,c=n.useContext(o.A),h={...r,alignItems:c.alignItems},m=(e=>{let{alignItems:t,classes:r}=e;return(0,i.A)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},u,r)})(h);return(0,p.jsx)(f,{className:(0,a.A)(m.root,l),ownerState:h,ref:t,...d})})},46174:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(6911);function a(e){let{theme:t,name:r,props:a}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.A)(t.components[r].defaultProps,a):a}},53455:(e,t,r)=>{r.d(t,{I:()=>i});var n=r(2954),a=r(56384);function i(e,t){return(0,a.t)(e,n.$,t)}},56384:(e,t,r)=>{r.d(t,{t:()=>p});var n=r(12115),a=r(74268),i=r(34049),o=r(17788),l=r(99776),s=r(47785),d=r(36687),c=r(33742),u=r(95822);function p(e,t,r){var p,f,h,m;let v=(0,c.w)(),g=(0,s.h)(),y=(0,l.jE)(r),E=y.defaultQueryOptions(e);
1null==(f=y.getDefaultOptions().queries)||null==(p=f._experimental_beforeQuery)||p.call(f,E);let b=y.getQueryCache().get(E.queryHash);E._optimisticResults=v?"isRestoring":"optimistic",(0,u.jv)(E),(0,d.LJ)(E,g,b),(0,d.wZ)(g);let A=!y.getQueryCache().get(E.queryHash),[w]=n.useState(()=>new t(y,E)),C=w.getOptimisticResult(E),x=!v&&!1!==e.subscribed;if(n.useSyncExternalStore(n.useCallback(e=>{let t=x?w.subscribe(a.jG.batchCalls(e)):i.lQ;return w.updateResult(),t},[w,x]),()=>w.getCurrentResult(),()=>w.getCurrentResult()),n.useEffect(()=>{w.setOptions(E)},[E,w]),(0,u.EU)(E,C))throw(0,u.iL)(E,w,g);if((0,d.$1)({result:C,errorResetBoundary:g,throwOnError:E.throwOnError,query:b,suspense:E.suspense}))throw C.error;if(null==(m=y.getDefaultOptions().queries)||null==(h=m._experimental_afterQuery)||h.call(m,E,C),E.experimental_prefetchInRender&&!o.H.isServer()&&(0,u.nE)(C,v)){let e=A?(0,u.iL)(E,w,g):null==b?void 0:b.promise;null==e||e.catch(i.lQ).finally(()=>{w.updateResult()})}return E.notifyOnChangeProps?C:w.trackResult(C)}},58494:(e,t,r)=>{r.d(t,{A:()=>D});var n=r(73699),a=r(12115),i=r(2821),o=r(37659),l=r(59549),s=r(10225),d=r(49714),c=r(62257),u=r(57179),p=r(13053),f=r(81421);function h(e){return(0,f.Ay)("MuiSkeleton",e)}(0,p.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var m=r(95155);function v(){let e=(0,n._)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return v=function(){return e},e}function g(){let e=(0,n._)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"]);return g=function(){return e},e}function y(){let e=(0,n._)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]);return y=function(){return e},e}function E(){let e=(0,n._)(["\n &::after {\n animation: "," 2s linear 0.5s infinite;\n }\n "]);return E=function(){return e},e}let b=(0,s.i7)(v()),A=(0,s.i7)(g()),w="string"!=typeof b?(0,s.AH)(y(),b):null,C="string"!=typeof A?(0,s.AH)(E(),A):null,x=(0,d.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((0,c.A)(e=>{let{theme:t}=e,r=(0,l.l_)(t.shape.borderRadius)||"px",n=(0,l.db)(t.shape.borderRadius);return{display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:t.alpha(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(n).concat(r,"/").concat(Math.round(n/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:e=>{let{ownerState:t}=e;return t.hasChildren},style:{"& > *":{visibility:"hidden"}}},{props:e=>{let{ownerState:t}=e;return t.hasChildren&&!t.width},style:{maxWidth:"fit-content"}},{props:e=>{let{ownerState:t}=e;return t.hasChildren&&!t.height},style:{height:"auto"}},{props:{animation:"pulse"},style:w||{animation:"".concat(b," 2s ease-in-out 0.5s infinite")}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:"linear-gradient(\n 90deg,\n transparent,\n ".concat((t.vars||t).palette.action.hover,",\n transparent\n )"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:C||{"&::after":{animation:"".concat(A," 2s linear 0.5s infinite")}}}]}})),D=a.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:a,component:l="span",height:s,style:d,variant:c="text",width:p,...f}=r,v={...r,animation:n,component:l,variant:c,hasChildren:!!f.children},g=(e=>{let{classes:t,variant:r,animation:n,hasChildren:a,width:i,height:l}=e;return(0,o.A)({root:["root",r,n,a&&"withChildren",a&&!i&&"fitContent",a&&!l&&"heightAuto"]},h,t)})(v);return(0,m.jsx)(x,{as:l,ref:t,className:(0,i.A)(g.root,a),ownerState:v,...f,style:{width:p,height:s,...d}})})},59549:(e,t,r)=>{function n(e){return String(parseFloat(e)).length===String(e).length}function a(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function i(e){return parseFloat(e)}function o(e){return(t,r)=>{let n=a(t);if(n===r)return t;let o=i(t);"px"!==n&&("em"===n?o=i(t)*i(e):"rem"===n&&(o=i(t)*i(e)));let l=o;if("px"!==r)if("em"===r)l=o/i(e);else{if("rem"!==r)return t;l=o/i(e)}return parseFloat(l.toFixed(5))+r}}function l(e){let{size:t,grid:r}=e,n=t-t%r,a=n+r;return t-n<a-t?n:a}function s(e){let{lineHeight:t,pixels:r,htmlFontSize:n}=e;return r/(t*n)}function d(e){let{cssProperty:t,min:r,max:n,unit:a="rem",breakpoints:i=[600,900,1200],transform:o=null}=e,l={[t]:"".concat(r).concat(a)},s=(n-r)/i[i.length-1];
1return i.forEach(e=>{let n=r+s*e;null!==o&&(n=o(n)),l["@media (min-width:".concat(e,"px)")]={[t]:"".concat(Math.round(1e4*n)/1e4).concat(a)}}),l}r.d(t,{I3:()=>o,VR:()=>l,a9:()=>n,db:()=>i,l_:()=>a,qW:()=>s,yL:()=>d})},65253:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(46174),a=r(57915);function i(e){let{props:t,name:r,defaultTheme:i,themeId:o}=e,l=(0,a.A)(i);return o&&(l=l[o]||l),(0,n.A)({theme:l,name:r,props:t})}},86050:(e,t,r)=>{r.d(t,{j:()=>a});var n=r(60587);function a(e){return(0,n.q)(e)&&66===e.length}},88601:(e,t,r)=>{r.d(t,{e:()=>b,f:()=>A,i:()=>E,p:()=>C,u:()=>W});var n=r(422),a=r(41154),i=r(64861),o=r(56858),l=r(71687),s=r(53928),d=r(93418),c=r(89395),u=r(80208),p=r(48645),f=r(201),h=r(99998),m=r(85275),v=r(12115),g=r(22700),y=r(21872);function E(e){return["ethereum","solana"].includes(e.chainType)}function b(e){let t=e.replace("eip155:","");if(t)return parseInt(t);throw Error("Chain ID not compatible with CAIP-2 format.")}let A=e=>e.filter(e=>"wallets"===e.method||("exchange"===e.method?"coinbase"===e.provider:"card"===e.method||"payment-request"===e.method?"coinbase"===e.provider||"moonpay"===e.provider:(e.method,!1))),w={[a.r.id]:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",[i.G.id]:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",[o.R.id]:"0x0b2c639c533813f4aa9d7837caf62653d097ff85",[l.i.id]:"0x5fd84259d66Cd46123540766Be93DFE6D43130D7",[s.n.id]:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",[d.n.id]:"0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582",[c.E.id]:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",[u.Z.id]:"0x036CbD53842c5426634e7929541eC2318f3dCF7e",[p.m.id]:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",[f.C.id]:"0x5425890298aed601595a70ab815c96711a31bc65",[h.D.id]:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",[m.Y.id]:"0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"},C=({address:e,appConfig:t,fundWalletConfig:r,methodScreen:a,chainIdOverride:i,comingFromSendTransactionScreen:o=!1})=>{let l,s;if(!t.fundingConfig)throw Error("Wallet funding is not enabled");let d=A(t.fundingConfig.options);if(d.length<1)throw Error("Wallet funding is not enabled");l=i||(r?.chain?r.chain.id:b(t.fundingConfig.defaultRecommendedCurrency.chain));let c=t.chains.find(e=>e.id===l);if(!c)throw new n.P(`Funding chain ${l} is not in PrivyProvider chains list`);let u=r?.amount??t.fundingConfig.defaultRecommendedAmount,p=!1;function f(){if(!l)return;let e=w[l];d.find(e=>"wallets"===e.method)&&!e&&console.warn("Attempting to fund with USDC on chain where USDC address is not known. Funding via external wallet will be disabled."),s=e,p=!0}r&&"asset"in r?"USDC"===r.asset?f():"string"!=typeof r.asset&&"erc20"in r.asset&&(p=(s=r.asset.erc20)===w[c.id]):"USDC"===t.fundingConfig.defaultRecommendedCurrency.asset&&f();let h=r?.defaultFundingMethod;return{chainType:"ethereum",address:e,amount:u,chain:c,erc20Address:s,erc20ContractInfo:p?{symbol:"USDC",decimals:6}:void 0,isUSDC:p,methodScreen:a,supportedOptions:d,comingFromSendTransactionScreen:o,defaultFundingMethod:h,usingDefaultFundingMethod:!!h,preferredCardProvider:r?.card?.preferredProvider,crossChainBridgingEnabled:t.fundingConfig.crossChainBridgingEnabled??!1,solanaChain:"solana:mainnet",uiConfig:r&&"uiConfig"in r?r.uiConfig:void 0,externalSolanaFundingScreen:null}},x=async({appConfig:e,getAccessToken:t,initializeWalletProxy:r,user:a,privy:i,emitPrivyEvent:o,recoverEmbeddedWallet:l,setModalData:s,openModal:d,setUser:c,options:u,timeoutDuration:p,refreshSessionAndUser:f,chainType:h})=>{let[m,v]=await Promise.all([r(p),t()]);if(!v||!a)throw o("createWallet","onError",n.h.MUST_BE_AUTHENTICATED),Error("User must be authenticated before creating a Privy wallet");if(!m&&e.customAuth?.enabled)throw o("createWallet","onError",n.h.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to connect to wallet proxy");if(u&&"walletIndex"in u&&"number"==typeof u.walletIndex){if("user-controlled-server-wallets-only"===e.embeddedWallets.mode)throw o("createWallet","onError",n.h.INVALID_DATA),Error("Invalid input, use `createAdditional` instead of `walletIndex` to create additional wallets.");return D({accessToken:v,appConfig:e,privy:i,emitPrivyEvent:o,openModal:d,proxy:m,refreshSessionAndUser:f,recoverEmbeddedWallet:l,setModalData:s,user:a,walletIndex:u.walletIndex,chainType:h,setUser:c})}let y=u&&"createAdditional"in u&&u.createAdditional,E=(0,g.cL)(a,{chainType:h});if(E[0]&&!y)throw o("createWallet","onError",n.h.EMBEDDED_WALLET_ALREADY_EXISTS),Error("User already has an embedded wallet.");return D({accessToken:v,appConfig:e,privy:i,emitPrivyEvent:o,openModal:d,proxy:m,recoverEmbeddedWallet:l,setModalData:s,user:a,walletIndex:(E.reduce((e,t)=>
1!e||e.walletIndex<t.walletIndex?t:e,null)?.walletIndex??-1)+1,chainType:h,refreshSessionAndUser:f,setUser:c})},D=async({accessToken:e,appConfig:t,privy:r,emitPrivyEvent:a,proxy:i,refreshSessionAndUser:o,recoverEmbeddedWallet:l,user:s,walletIndex:d,setModalData:c,openModal:u,chainType:p,setUser:f})=>{if(d<0)throw a("createWallet","onError",n.h.EMBEDDED_WALLET_CREATE_ERROR),Error(`A negative walletIndex (${d}) is invalid.`);let h=(0,g.ak)(s);if(d>0&&!h)throw a("createWallet","onError",n.h.EMBEDDED_WALLET_NOT_FOUND),Error("Must have an existing embedded wallet to create an additional wallet.");if(t.embeddedWallets.requireUserOwnedRecoveryOnCreate&&"user-controlled-server-wallets-only"===t.embeddedWallets.mode)throw a("createWallet","onError",n.h.EMBEDDED_WALLET_CREATE_ERROR),Error("User owned recovery not yet supported for this app.");if(!h&&t.embeddedWallets.requireUserOwnedRecoveryOnCreate)return await S({emitPrivyEvent:a,setModalData:c,openModal:u,chainType:p});let m=(0,g.cL)(s,{chainType:p,walletIndex:d})[0];if(m)return{user:s,account:m};if(0===d&&!i)return S({emitPrivyEvent:a,setModalData:c,openModal:u,chainType:p});if(!i)throw a("createWallet","onError",n.h.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to connect to wallet proxy");return(0,g.cM)({appConfig:t,walletIndex:d,chainType:p,user:s,accessToken:e,proxy:i,refreshSessionAndUser:o,privy:r,recoverEmbeddedWallet:l,setUser:f})},S=async({emitPrivyEvent:e,setModalData:t,openModal:r,chainType:a})=>new Promise((i,o)=>{t({createWallet:{onSuccess:({user:t,account:r})=>{e("createWallet","onSuccess",{wallet:r}),i({user:t,account:r})},onFailure:t=>{e("createWallet","onError",n.h.UNKNOWN_EMBEDDED_WALLET_ERROR),o(t)},callAuthOnSuccessOnClose:!1,shouldCreateEth:"ethereum"===a,shouldCreateSol:"solana"===a}}),r(g.ay)}),T=async({emitPrivyEvent:e,getAccessToken:t,initializeWalletProxy:r,refreshSessionAndUser:a,user:i,appConfig:o},{privateKey:l,chainType:s,additionalSigners:d})=>{if(!i)throw e("linkAccount","onError",n.h.MUST_BE_AUTHENTICATED,{linkMethod:"siwe"}),new n.P("User must be authenticated before linking an account.");let c="user-controlled-server-wallets-only"===o.embeddedWallets.mode?"tee":"on-device";if(d&&"on-device"===c)throw new n.P("Specifying additionalSigners is only supported for TEE execution and this app uses On-device execution. Learn more https://docs.privy.io/recipes/tee-wallet-migration-guide");let[u,p]=await Promise.all([t(),r(15e3)]);if(!p||!u)throw e("linkAccount","onError",n.h.MUST_BE_AUTHENTICATED,{linkMethod:"siwe"}),new n.P("User must be authenticated before linking an account.");let{address:f}=await p.importWallet({privateKey:l,accessToken:u,chainType:s,mode:c,additionalSigners:d}),h=await a(),m="solana"===s?(0,g.bd)(h):(0,g.b6)(h),v=m?.find(e=>e.address===f);if(!v)throw e("createWallet","onError",n.h.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to import wallet");return e("createWallet","onSuccess",{wallet:v}),v},W=()=>{let{importWallet:e}=(()=>{let{user:e}=(0,g.ab)(),{client:t,refreshSessionAndUser:r,initializeWalletProxy:a}=(0,n.aa)(),i=(0,y.n)(),o=(0,y.k)();return{importWallet:(0,v.useCallback)(({privateKey:n,additionalSigners:l})=>T({getAccessToken:()=>t.getAccessToken(),user:e,initializeWalletProxy:a,refreshSessionAndUser:r,emitPrivyEvent:i,appConfig:o},{privateKey:n,chainType:"ethereum",additionalSigners:l}),[e,t,r,a,i,o])}})(),{createWallet:t}=function(e){let{create:t}=(()=>{let e=(0,y.k)(),t=(0,y.n)(),{setModalData:r}=(0,g.ac)(),{initializeWalletProxy:a,recoverEmbeddedWallet:i,setUser:o,openModal:l,refreshSessionAndUser:s,privy:d,client:c}=(0,n.aa)();return{create:async({chainType:u,options:p,latestUser:f})=>{let h=f;if(h||(h=await s()),!h)throw t("createWallet","onError",n.h.MUST_BE_AUTHENTICATED),Error("User must be authenticated before creating a Privy wallet");return await x({appConfig:e,privy:d,getAccessToken:()=>c.getAccessToken(),refreshSessionAndUser:s,initializeWalletProxy:a,user:h,emitPrivyEvent:t,recoverEmbeddedWallet:i,setModalData:r,openModal:l,setUser:o,options:p,timeoutDuration:y.W,chainType:u})}}})();return(0,y.u)("createWallet",void 0),{createWallet:async e=>{e&&"target"in e&&e&&(e=void 0);let{account:r}=await t({chainType:"ethereum",options:e});return r}}}();return{...(0,v.useContext)(g.ad),importWallet:e,createWallet:t}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.