@spicenet-io/spiceflow-ui 4.24.0 → 4.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  (function(){if(typeof document==="undefined"||document.getElementById("spiceflow-styles"))return;var s=document.createElement("style");s.id="spiceflow-styles";s.textContent="@keyframes spiceflow-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}.spiceflow-focus-ring:focus-visible,[data-spiceflow-focus]:focus-visible{border-radius:4px;outline:2px solid currentColor;outline-offset:2px}@media (forced-colors:active){.spiceflow-focus-ring:focus-visible,[data-spiceflow-focus]:focus-visible{outline:2px solid Highlight}}.ibm-plex-mono-thin{font-weight:100}.ibm-plex-mono-extralight,.ibm-plex-mono-thin{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-extralight{font-weight:200}.ibm-plex-mono-light{font-weight:300}.ibm-plex-mono-light,.ibm-plex-mono-regular{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-regular{font-weight:400}.ibm-plex-mono-medium{font-weight:500}.ibm-plex-mono-medium,.ibm-plex-mono-semibold{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-semibold{font-weight:600}.ibm-plex-mono-bold{font-family:IBM Plex Mono,monospace!important;font-style:normal;font-weight:700}#privy-modal-content button{border-radius:6px;font-family:IBM Plex Mono,monospace!important;font-size:small;letter-spacing:-.5px;text-transform:uppercase}#privy-modal-content input{background:#fff;border-radius:6px;padding-top:5px!important}#privy-dialog-title{display:none!important;font-size:18px;padding-bottom:10px;padding-top:10px}.AppLogoContainer-sc-a206bd44-0{display:none}#privy-modal-content{background:var(--Neutral-0,#fafafa);border:6px solid var(--Neutral-1,#e9e9e9);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15),0 330px 92px transparent,0 211px 84px rgba(0,0,0,.01),0 119px 71px rgba(0,0,0,.05),0 53px 53px rgba(0,0,0,.09),0 13px 29px rgba(0,0,0,.1);height:auto!important;padding-bottom:10px}.Subtitle-sc-ddbf22b4-4{font-size:12px;margin-top:-14px;opacity:.5}.StyledLink-sc-1c6127e5-0{background:none!important}.StyledLink-sc-c8577138-0,.login-method-button{font-family:IBM Plex Mono,monospace!important}.StyledLink-sc-c8577138-0{font-style:uppercase}#protected-by-privy{color:#000!important}";document.head.appendChild(s)})();
3
- import{jsx as m,jsxs as R,Fragment as vn}from"react/jsx-runtime";import{a as G,S as we,g as kt,b as Rt,c as _a,i as es,d as ts,e as cn,f as Pp,E as Up,C as ns,r as Wp,R as Lp,s as Wn,h as qp,j as qe,k as Cr,l as zp,m as os,u as Mo,n as rs,o as io,p as dn,P as Hp,q as as,B as Yt,t as nt,v as ho,w as Ko,x as _s,y as qr,z as Ar,A as Yo,D as $c,F as go,G as Vp,H as fa,I as ma,J as ss,K as ei,L as Qp,M as _c,N as ha,O as zr,Q as jp,T as Hr,U as ti,V as ni,W as No,X as is,Y as Sr,Z as Gp,_ as cs,$ as Kp,a0 as oi,a1 as Yp,a2 as Zp,a3 as ri,a4 as Xp,a5 as el,a6 as Jp,a7 as $p,a8 as _p}from"./privy-BaBNtCrc.js";import{a9 as Z0,ab as X0,ac as J0,ae as $0,ad as _0,aa as e1}from"./privy-BaBNtCrc.js";import Eo,{useContext as fn,useState as H,useMemo as Ae,useEffect as he,useCallback as ae,useRef as J,useId as tl,useLayoutEffect as Po,memo as wo}from"react";import{applySlippage as ai,isNativeToken as Te,uniV3QuoterV2Abi as ef,uniV3SwapRouterAbi as nl,NATIVE_TOKEN_ADDRESS as ol,getTokenByAddress as Xt,areEquivalent as tf,getTokensForChain as cr,getEscrowContractAddress as Uo,getEscrowContract as Vr,ZERO_ADDRESS as Zt,normalizeNativeTokenAddress as ft,getChainMeta as ls,getMainnetChains as nf,getTestnetChains as of,TOKENS as rl,convertAmountBetweenDecimals as yo,hashChainBatches as Fo,isSpicenetChainId as Wo,getAccountNonce as rf,SPICE_COMBINED_FEE_RECIPIENT as af,SPICE_GAS_FEE_RECIPIENT as gn,SPICE_PLATFORM_FEE_RECIPIENT as zn,hashConditionalExecutionPlan as al,SPICENET_NATIVE_CHAIN_ID as sl,spicenetAbi as ds,getEquivalenceGroup as il,getEquivalentAddresses as sf,getChainIdsByNetwork as us,getTokenBySymbol as cl,CONDITIONAL_INTENT_UNTIL_CANCELLED as ll,hashConditionalIntentAuthorization as cf,getConditionalIntentId as lf,hashConditionalReadAuthorization as df,hashConditionalCancellation as uf}from"@spicenet-io/spiceflow-core";import{CONDITIONAL_INTENT_UNTIL_CANCELLED as n1,ZERO_ADDRESS as o1,SPICENET_NATIVE_CHAIN_ID as r1,SPICE_COMBINED_FEE_RECIPIENT as a1,SPICE_GAS_FEE_RECIPIENT as s1,SPICE_PLATFORM_FEE_RECIPIENT as i1,SPICE_SOLVER_ADDRESS as c1,applySlippage as l1,buildUniV3SwapCalls as d1,getChainIdsByNetwork as u1,getEscrowContractAddress as p1,isNativeToken as f1,isSpicenetChainId as m1,normalizeNativeTokenAddress as h1,spicenetAbi as g1,spicenetAbi as w1}from"@spicenet-io/spiceflow-core";import{useAccount as si,useDisconnect as ii,useConnect as pf,useWalletClient as ff,useSwitchChain as mf}from"wagmi";import{encodeFunctionData as Bt,erc20Abi as ut,parseAbi as co,concatHex as dl,encodePacked as ci,decodeFunctionData as Zn,encodeAbiParameters as Zo,formatUnits as Me,isAddress as Hn,getAddress as wn,zeroAddress as ul,keccak256 as lr,recoverAddress as hf,toRlp as gf,toHex as ps,parseUnits as Xn,decodeEventLog as wf,createWalletClient as li,custom as di,stringToHex as yf,bytesToHex as pl}from"viem";import{readContract as dr,getBalance as ui}from"viem/actions";import{useConnectWallet as fl,usePrivy as ml,useActiveWallet as bf}from"@privy-io/react-auth";import hl,{createPortal as pi}from"react-dom";import"@tanstack/react-query";const xf="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@100;200;300;400;500;600;700&display=swap",vf="spiceflow-ibm-plex-mono",If="spiceflow-preconnect-googleapis",kf="spiceflow-preconnect-gstatic";function fi(e,t){if(document.getElementById(e))return;const n=t();n.id=e,document.head.appendChild(n)}function Cf(){typeof document>"u"||(fi(If,()=>{const e=document.createElement("link");return e.rel="preconnect",e.href="https://fonts.googleapis.com",e}),fi(kf,()=>{const e=document.createElement("link");return e.rel="preconnect",e.href="https://fonts.gstatic.com",e.crossOrigin="",e}),fi(vf,()=>{const e=document.createElement("link");return e.rel="stylesheet",e.href=xf,e}))}const gl=co(["function exactInput((address[] tokens,address[] pools,bytes[] extensionDatas,uint256 zeroForOneBitMap,uint128 amountIn,uint128 amountOutMinimum,address recipient,uint256 deadline) params) payable returns (uint256 amountOut)","function exactOutput((address[] tokens,address[] pools,bytes[] extensionDatas,uint256 zeroForOneBitMap,uint128 amountOut,uint128 amountInMaximum,address recipient,uint256 deadline) params) payable returns (uint256 amountIn)"]),bo={name:"Metric",chainIds:[1,56,4663],apiUrl:"https://api.metric.xyz",swapRouter:"0x02201E6f13c41506c7Bb635d7543F98826229aB7"},Af=[1,56,137,143,999,4326,4663,8453,42161,43114];async function wl(e,t,n,o,r,a){if(Te(n)||Te(o)||G(n,o)||!(e.chainIds??bo.chainIds).includes(t))return null;const i=(e.apiUrl??bo.apiUrl).replace(/\/$/,""),s=AbortSignal.timeout(6e3),c=await fetch(`${i}/public/v1/evm/${t}/route`,{method:"POST",headers:{"Content-Type":"application/json"},signal:s,body:JSON.stringify({tokenIn:n,tokenOut:o,tradeType:a,[a==="exact_in"?"amountIn":"amountOut"]:r.toString(),maxRoutes:1})});if(c.status===422)return null;if(!c.ok)throw new we("VENUE_API_ERROR",`Metric route HTTP ${c.status}`,{chainId:t});const l=await c.json(),u=l.routes[0],d=BigInt(l.amountIn),p=BigInt(l.amountOut);if(l.routes.length!==1||!u||!u.legs.length||u.legs.length>2||l.tradeType!==a||!G(l.tokenIn,n)||!G(l.tokenOut,o)||d<=0n||p<=0n||(a==="exact_in"?d:p)!==r||BigInt(u.amountIn)!==d||BigInt(u.amountOut)!==p)throw new we("VENUE_API_ERROR","Invalid Metric route",{chainId:t});const w=u.legs.map(C=>C.poolAddress),f=new URL(`${i}/public/v1/evm/${t}/metadata`);f.searchParams.set("addresses",w.join(","));const g=await fetch(f,{signal:s});if(!g.ok)throw new we("VENUE_API_ERROR",`Metric metadata HTTP ${g.status}`,{chainId:t});const h=await g.json(),b=[n];let x=0n;for(const[C,v]of u.legs.entries()){const A=h.data.find(T=>G(T.poolAddress,v.poolAddress));if(!A||A.priceProviderStatus!=="healthy"||A.pauseLevel!==0)return null;if(typeof v.zeroForOne!="boolean"||!G(b[C],v.tokenIn)||!G(v.tokenIn,v.zeroForOne?A.token0:A.token1)||!G(v.tokenOut,v.zeroForOne?A.token1:A.token0))throw new we("VENUE_API_ERROR","Invalid Metric pool path",{chainId:t});b.push(v.tokenOut),v.zeroForOne&&(x|=1n<<BigInt(C))}if(!G(b[b.length-1],o))throw new we("VENUE_API_ERROR","Invalid Metric output token",{chainId:t});return{amountIn:d,amountOut:p,path:{tokens:b,pools:w,extensionDatas:w.map(()=>"0x"),zeroForOneBitMap:x}}}function yl(e={}){const t=e.swapRouter??bo.swapRouter;return{name:e.name??bo.name,chainIds:e.chainIds??bo.chainIds,resolve:async(n,o,r)=>{const a=await wl(e,o,n.tokenIn,n.tokenOut,n.amountIn,"exact_in");if(!a)return null;const i=ai(a.amountOut,n.maxSlippage??.02);return{venue:e.name??bo.name,amountOut:a.amountOut,amountOutMinimum:i,calls:[{to:n.tokenIn,value:0n,data:Bt({abi:ut,functionName:"approve",args:[t,n.amountIn]})},{to:t,value:0n,data:Bt({abi:gl,functionName:"exactInput",args:[{...a.path,amountIn:n.amountIn,amountOutMinimum:i,recipient:r,deadline:BigInt(Math.floor(Date.now()/1e3)+1200)}]})}]}}}}function bl(e={}){return{name:e.name??bo.name,chainIds:e.chainIds??bo.chainIds,resolve:async(t,n,o)=>{const r=await wl(e,n,t.tokenIn,t.tokenOut,t.amountOut,"exact_out");if(!r)return null;const a=BigInt(Math.round((t.maxSlippage??.02)*1e4)),i=r.amountIn+(r.amountIn*a+9999n)/10000n;return{venue:e.name??bo.name,amountIn:r.amountIn,amountInMax:i,amountOut:t.amountOut,calls:[{to:e.swapRouter??bo.swapRouter,value:0n,data:Bt({abi:gl,functionName:"exactOutput",args:[{...r.path,amountOut:t.amountOut,amountInMaximum:i,recipient:o,deadline:BigInt(Math.floor(Date.now()/1e3)+1200)}]})}]}}}}const Sf={1:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",8453:"0x4200000000000000000000000000000000000006",42161:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",84532:"0x4200000000000000000000000000000000000006"},xl=co(["function deposit() payable","function withdraw(uint256 wad)"]);function mi(e){return kt(e)?.wrappedNativeTokenAddress??Sf[e]}const hi=(e,t)=>({to:e,value:t,data:Bt({abi:xl,functionName:"deposit"})}),gi=(e,t)=>({to:e,value:0n,data:Bt({abi:xl,functionName:"withdraw",args:[t]})});function wi(e,t,n){const o=Te(t),r=Te(n);if(!o&&!r)return null;const a=mi(e);return a?{weth:a,wrapIn:o,unwrapOut:r}:null}function vl(e,t,n,o){const r=wi(e,t,n);return!r||o<=0n?null:r.wrapIn&&!r.unwrapOut&&n.toLowerCase()===r.weth.toLowerCase()?[hi(r.weth,o)]:r.unwrapOut&&!r.wrapIn&&t.toLowerCase()===r.weth.toLowerCase()?[gi(r.weth,o)]:null}function Ef(e){return{...e,resolve:async(t,n,o,r)=>{const a=vl(n,t.tokenIn,t.tokenOut,t.amountIn);if(a)return{venue:"native-wrap",amountOut:t.amountIn,amountOutMinimum:t.amountIn,calls:a};const i=await e.resolve(t,n,o,r);if(i)return i;const s=wi(n,t.tokenIn,t.tokenOut);if(!s)return null;const c=await e.resolve({...t,tokenIn:s.wrapIn?s.weth:t.tokenIn,tokenOut:s.unwrapOut?s.weth:t.tokenOut},n,o,r);return c?{...c,calls:[...s.wrapIn?[hi(s.weth,t.amountIn)]:[],...c.calls,...s.unwrapOut?[gi(s.weth,c.amountOutMinimum)]:[]]}:null}}}function Ff(e){return{...e,resolve:async(t,n,o)=>{const r=vl(n,t.tokenIn,t.tokenOut,t.amountOut);if(r)return{venue:"native-wrap",amountIn:t.amountOut,amountInMax:t.amountOut,amountOut:t.amountOut,calls:r};const a=await e.resolve(t,n,o);if(a)return a;const i=wi(n,t.tokenIn,t.tokenOut);if(!i)return null;const s=await e.resolve({...t,tokenIn:i.wrapIn?i.weth:t.tokenIn,tokenOut:i.unwrapOut?i.weth:t.tokenOut},n,o);return s?{...s,calls:[...i.wrapIn?[hi(i.weth,s.amountInMax)]:[],...s.calls,...i.unwrapOut?[gi(i.weth,s.amountOut)]:[]]}:null}}}const Il=[100,500,3e3,1e4];function fs(e,t,n,o,r){const a=[];for(const i of n){const s=typeof i=="object"&&!Array.isArray(i)?i:void 0,c=s?s.tokens:Array.isArray(i)?i:[i];if(!c.length||c.length>2)throw new Error("A v3 route must have one or two intermediate tokens");const l=[e,...c,t];if(s&&(s.feeTiers.length!==l.length-1||s.feeTiers.some(d=>!d.length)))throw new Error("A v3 route needs fee tiers for every pool");if(new Set(l.map(d=>d.toLowerCase())).size!==l.length)continue;const u=(d,p)=>{if(d===l.length){a.push(r==="in"?p:kl(p));return}for(const w of s?.feeTiers[d-1]??o)u(d+1,dl([p,ci(["uint24","address"],[w,l[d]])]))};u(1,l[0])}return[...new Set(a)]}function kl(e){const t=e.slice(2),n=[];for(let o=0;o<t.length;){const r=n.length%2===0?40:6;n.push(t.slice(o,o+r)),o+=r}return`0x${n.reverse().join("")}`}const Tf=co(["function exactOutputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 amountOut, uint256 amountInMaximum, uint160 sqrtPriceLimitX96) params) payable returns (uint256 amountIn)","function exactOutput((bytes path, address recipient, uint256 amountOut, uint256 amountInMaximum) params) payable returns (uint256 amountIn)"]),Of=co(["function exactOutputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 deadline, uint256 amountOut, uint256 amountInMaximum, uint160 sqrtPriceLimitX96) params) payable returns (uint256 amountIn)","function exactOutput((bytes path, address recipient, uint256 deadline, uint256 amountOut, uint256 amountInMaximum) params) payable returns (uint256 amountIn)"]),Bf=1800;function Cl(e){const{config:t,route:n,tokenIn:o,tokenOut:r,recipient:a,amountOut:i}=e,s=e.amountInMaximum,c=e.routerHasDeadline?Of:Tf,l=e.routerHasDeadline?{deadline:BigInt(Math.floor(Date.now()/1e3)+Bf)}:{},u=n.path?Bt({abi:c,functionName:"exactOutput",args:[{path:n.path,recipient:a,...l,amountOut:i,amountInMaximum:s}]}):Bt({abi:c,functionName:"exactOutputSingle",args:[{tokenIn:o,tokenOut:r,fee:n.fee,recipient:a,...l,amountOut:i,amountInMaximum:s,sqrtPriceLimitX96:0n}]});return{to:t.swapRouter,value:0n,data:u}}const Rf=co(["function quoteExactInput(bytes path, uint256 amountIn) returns (uint256 amountOut, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)","function quoteExactOutput(bytes path, uint256 amountOut) returns (uint256 amountIn, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)"]);async function ga(e,t,n,o,r){const a=Rt(e),{result:i}=await a.simulateContract({address:t.quoterV2,abi:Rf,functionName:r==="in"?"quoteExactInput":"quoteExactOutput",args:[n,o]}),[s,,,c]=i;if(s<=0n)throw new Error("No liquidity along this path.");return{amount:s,gasEstimate:c}}async function Df(e){const{tokenIn:t,tokenOut:n,amountIn:o,fee:r,chainId:a,config:i}=e;if(o<=0n)throw new Error("amountIn must be greater than 0");const s=(await Rt(a).simulateContract({address:i.quoterV2,abi:ef,functionName:"quoteExactInputSingle",args:[{tokenIn:t,tokenOut:n,amountIn:o,fee:r,sqrtPriceLimitX96:0n}]})).result;if(s[0]<=0n)throw new Error("No liquidity found for this pair. The pool returned 0 output.");return{amountOut:s[0],sqrtPriceX96After:s[1],gasEstimate:s[3]}}async function Al(e){const t=e.feeTiers??Il,n=fs(e.tokenIn,e.tokenOut,e.hubs??[],t,"in"),o=await Promise.allSettled([...t.map(async a=>({...await Df({...e,fee:a}),fee:a})),...n.map(async a=>{const i=await ga(e.chainId,e.config,a,e.amountIn,"in");return{amountOut:i.amount,sqrtPriceX96After:0n,gasEstimate:i.gasEstimate,fee:0,path:a}})]);let r=null;for(const a of o)a.status==="fulfilled"&&(!r||a.value.amountOut>r.amountOut)&&(r=a.value);if(!r)throw new Error("No liquidity found for this pair on any fee tier.");return r}const Mf=[{inputs:[{components:[{name:"tokenIn",type:"address"},{name:"tokenOut",type:"address"},{name:"amount",type:"uint256"},{name:"fee",type:"uint24"},{name:"sqrtPriceLimitX96",type:"uint160"}],name:"params",type:"tuple"}],name:"quoteExactOutputSingle",outputs:[{name:"amountIn",type:"uint256"},{name:"sqrtPriceX96After",type:"uint160"},{name:"initializedTicksCrossed",type:"uint32"},{name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"}];async function Nf(e){const{tokenIn:t,tokenOut:n,amountOut:o,fee:r,chainId:a,config:i}=e;if(o<=0n)throw new Error("amountOut must be greater than 0");const s=(await Rt(a).simulateContract({address:i.quoterV2,abi:Mf,functionName:"quoteExactOutputSingle",args:[{tokenIn:t,tokenOut:n,amount:o,fee:r,sqrtPriceLimitX96:0n}]})).result;if(s[0]<=0n)throw new Error("No liquidity found for this pair. The pool returned 0 input.");return{amountIn:s[0],sqrtPriceX96After:s[1],gasEstimate:s[3]}}async function Sl(e){const t=e.feeTiers??Il,n=fs(e.tokenIn,e.tokenOut,e.hubs??[],t,"out"),o=await Promise.allSettled([...t.map(async a=>({...await Nf({...e,fee:a}),fee:a})),...n.map(async a=>{const i=await ga(e.chainId,e.config,a,e.amountOut,"out");return{amountIn:i.amount,sqrtPriceX96After:0n,gasEstimate:i.gasEstimate,fee:0,path:a}})]);let r=null;for(const a of o)a.status==="fulfilled"&&(!r||a.value.amountIn<r.amountIn)&&(r=a.value);if(!r)throw new Error("No liquidity found for this pair on any fee tier.");return r}function Pf(e){return e.type==="swap"}const wa=.02,Uf=[1,8453,42161,10,137,43114,56],Wf="https://api.1inch.dev/swap/v6.0";function yi(e,t){return ai(e,t)}function Lf(e){const t=e?.baseUrl??Wf;return{name:"1inch",chainIds:e?.chainIds??Uf,resolve:async(n,o,r)=>{const a=n.maxSlippage??wa,i=a*100,s=Te(n.tokenIn)?ol:n.tokenIn,c=Te(n.tokenOut)?ol:n.tokenOut,l=Te(n.tokenIn);try{const u=new URL(`${t}/${o}/swap`);u.searchParams.set("src",s),u.searchParams.set("dst",c),u.searchParams.set("amount",n.amountIn.toString()),u.searchParams.set("from",r),u.searchParams.set("slippage",i.toString()),u.searchParams.set("disableEstimate","true"),u.searchParams.set("allowPartialFill","false");const d={Accept:"application/json"};e?.apiKey&&(d.Authorization=`Bearer ${e.apiKey}`);const p=await fetch(u.toString(),{headers:d});if(!p.ok)throw new we("VENUE_API_ERROR",`[1inchVenue] API returned ${p.status} for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}`,{venue:"1inch",chainId:o,tokenIn:n.tokenIn,tokenOut:n.tokenOut,amountIn:n.amountIn.toString(),cause:`HTTP ${p.status}`});const w=await p.json();if(!w.dstAmount||!w.tx)return console.warn(`[1inchVenue] No route data for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}`),null;const f=BigInt(w.dstAmount);if(f<=0n)return console.warn(`[1inchVenue] Zero output for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}`),null;const g=yi(f,a),h=[];return w.tx.to&&!l&&h.push({to:n.tokenIn,value:0n,data:Bt({abi:ut,functionName:"approve",args:[w.tx.to,n.amountIn]})}),h.push({to:w.tx.to,value:BigInt(w.tx.value||"0"),data:w.tx.data}),{venue:"1inch",amountOut:f,amountOutMinimum:g,calls:h}}catch(u){if(u instanceof we)throw u;const d=u instanceof Error?u.message:String(u);throw new we("VENUE_API_ERROR",`[1inchVenue] Exception for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}: ${d}`,{venue:"1inch",chainId:o,tokenIn:n.tokenIn,tokenOut:n.tokenOut,amountIn:n.amountIn.toString(),cause:d})}}}}const El=[4114,5115],bi={name:"Satsuma",swapRouter:"0x565eD3D57fe40f78A46f348C220121AE093c3cF8",quoterV2:"0x428f20dd8926Eabe19653815Ed0BE7D6c36f8425",feeTiers:[3e3]},Fl={name:"Uniswap v3",swapRouter:"0x2626664c2603336E57B271c5C0b26F421741e481",quoterV2:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",chainIds:[8453],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x4200000000000000000000000000000000000006","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]},Tl={name:"Uniswap v3",swapRouter:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",quoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",chainIds:[1],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]},Ol={name:"Uniswap v3",swapRouter:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",quoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",chainIds:[42161],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x82aF49447D8a07e3bd95BD0d56f35241523fBab1","0xaf88d065e77c8cC2239327C5EDb3A432268e5831"]},qf={name:"Uniswap v3",swapRouter:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",quoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",chainIds:[137],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270","0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"]},zf={name:"Uniswap v3",swapRouter:"0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2",quoterV2:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",chainIds:[56],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c","0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"]},Hf={name:"Uniswap v3",swapRouter:"0xfe31f71c1b106eac32f1a19239c9a9a72ddfb900",quoterV2:"0x661e93cca42afacb172121ef892830ca3b70f08d",chainIds:[143],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A","0x754704Bc059F8C67012fEd69BC8A327a5aafb603"]},Bl={name:"Uniswap v3",swapRouter:"0xcaf681a66d020601342297493863e78c959e5cb2",quoterV2:"0x33e885ed0ec9bf04ecfb19341582aadcb4c8a9e7",chainIds:[4663],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x0bd7d308f8e1639fab988df18a8011f41eacad73","0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"]},Rl={name:"SushiSwap",swapRouter:"0x1e406484F1F204b23cE84B9901C0171a738fd406",quoterV2:"0x3E290e5E01818002A0b672148BdC7514D861C7B3",chainIds:[4663],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x0bd7d308f8e1639fab988df18a8011f41eacad73","0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"],routerHasDeadline:!0},Dl=co(["function exactInput((bytes path, address recipient, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]),Ml=co(["function exactInputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum, uint160 sqrtPriceLimitX96) params) payable returns (uint256 amountOut)","function exactInput((bytes path, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]),Vf=co(["function exactInput((bytes path, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]),Qf=co(["function exactOutput((bytes path, address recipient, uint256 deadline, uint256 amountOut, uint256 amountInMaximum) params) payable returns (uint256 amountIn)"]),xi=1800,Nl=[1,50,100,200,2e3],ya={name:"Aerodrome",swapRouter:"0xcbBb8035cAc7D4B3Ca7aBb74cF7BdF900215Ce0D",quoterV2:"0x3d4C22254F86f64B7eC90ab8F7aeC1FBFD271c6C",chainIds:[8453],hubCurrencies:["0x4200000000000000000000000000000000000006","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]};function ba(e){const t=e.name??"Aerodrome",n=e.chainIds??[8453],o=e.tickSpacings??Nl;return{name:t,chainIds:n,resolve:async(r,a,i)=>{if(Te(r.tokenIn)||Te(r.tokenOut))return null;const s=r.maxSlippage??wa,c=[...o.map(h=>ci(["address","uint24","address"],[r.tokenIn,h,r.tokenOut])),...fs(r.tokenIn,r.tokenOut,e.hubCurrencies??[],o,"in")],l={quoterV2:e.quoterV2},u=await Promise.allSettled(c.map(async h=>({path:h,amountOut:(await ga(a,l,h,r.amountIn,"in")).amount})));let d=null;for(const h of u)h.status==="fulfilled"&&(!d||h.value.amountOut>d.amountOut)&&(d=h.value);if(!d)return console.warn(`[AerodromeVenue] No viable route for ${r.tokenIn} \u2192 ${r.tokenOut} on chain ${a}.`),null;const p=yi(d.amountOut,s),w=e.deadline??BigInt(Math.floor(Date.now()/1e3)+xi),f=Bt({abi:Vf,functionName:"exactInput",args:[{path:d.path,recipient:i,deadline:w,amountIn:r.amountIn,amountOutMinimum:p}]}),g=[{to:r.tokenIn,value:0n,data:Bt({abi:ut,functionName:"approve",args:[e.swapRouter,r.amountIn]})},{to:e.swapRouter,value:0n,data:f}];return{venue:t,amountOut:d.amountOut,amountOutMinimum:p,calls:g}}}}function Pl(e){const t=e.name??"Aerodrome",n=e.chainIds??[8453],o=e.tickSpacings??Nl;return{name:t,chainIds:n,resolve:async(r,a,i)=>{if(Te(r.tokenIn)||Te(r.tokenOut))return null;const s=r.maxSlippage??wa,c=[...o.map(g=>ci(["address","uint24","address"],[r.tokenOut,g,r.tokenIn])),...fs(r.tokenIn,r.tokenOut,e.hubCurrencies??[],o,"out")],l={quoterV2:e.quoterV2},u=await Promise.allSettled(c.map(async g=>({path:g,amountIn:(await ga(a,l,g,r.amountOut,"out")).amount})));let d=null;for(const g of u)g.status==="fulfilled"&&(!d||g.value.amountIn<d.amountIn)&&(d=g.value);if(!d)return console.warn(`[AerodromeExactOutputVenue] No viable route for ${r.tokenIn} \u2192 ${r.tokenOut} on chain ${a}.`),null;const p=BigInt(Math.round(s*1e4)),w=d.amountIn+d.amountIn*p/10000n,f=e.deadline??BigInt(Math.floor(Date.now()/1e3)+xi);return{venue:t,amountIn:d.amountIn,amountInMax:w,amountOut:r.amountOut,calls:[{to:e.swapRouter,value:0n,data:Bt({abi:Qf,functionName:"exactOutput",args:[{path:d.path,recipient:i,deadline:f,amountOut:r.amountOut,amountInMaximum:w}]})}]}}}}function xa(e){const t=e.name??"Uniswap v3",n=e.chainIds??El;return{name:t,chainIds:n,resolve:async(o,r,a,i)=>{if(Te(o.tokenIn)||Te(o.tokenOut))return null;const s=o.maxSlippage??wa;let c;try{let f;if(i){if(i.venue!==t)return null;const g=i.calls.find(b=>b.to.toLowerCase()===e.swapRouter.toLowerCase());if(!g)return null;const h=Zn({abi:e.routerHasDeadline?Ml:[...Dl,...nl],data:g.data});if(h.functionName==="exactInput"){const{path:b}=h.args[0];if(b.slice(0,42).toLowerCase()!==o.tokenIn.toLowerCase()||`0x${b.slice(-40)}`.toLowerCase()!==o.tokenOut.toLowerCase())return null;f={path:b,fee:0}}else if(h.functionName==="exactInputSingle"){const{tokenIn:b,tokenOut:x,fee:C}=h.args[0];if(b.toLowerCase()!==o.tokenIn.toLowerCase()||x.toLowerCase()!==o.tokenOut.toLowerCase())return null;f={fee:C}}else return null}c=f?.path?{...f,amountOut:(await ga(r,e,f.path,o.amountIn,"in")).amount}:await Al({tokenIn:o.tokenIn,tokenOut:o.tokenOut,amountIn:o.amountIn,chainId:r,config:{swapRouter:e.swapRouter,quoterV2:e.quoterV2},feeTiers:f?[f.fee]:e.feeTiers,hubs:f?[]:[...e.hubCurrencies??[],...e.hubPaths??[]]})}catch{return console.warn(`[UniV3Venue] No viable route for ${o.tokenIn} \u2192 ${o.tokenOut} on chain ${r}.`),null}const l=yi(c.amountOut,s),u=e.routerHasDeadline?{deadline:BigInt(Math.floor(Date.now()/1e3)+xi)}:{},d=e.routerHasDeadline?Ml:c.path?Dl:nl,p=c.path?Bt({abi:d,functionName:"exactInput",args:[{path:c.path,recipient:a,...u,amountIn:o.amountIn,amountOutMinimum:l}]}):Bt({abi:d,functionName:"exactInputSingle",args:[{tokenIn:o.tokenIn,tokenOut:o.tokenOut,fee:c.fee,recipient:a,...u,amountIn:o.amountIn,amountOutMinimum:l,sqrtPriceLimitX96:0n}]}),w=[{to:o.tokenIn,value:0n,data:Bt({abi:ut,functionName:"approve",args:[e.swapRouter,o.amountIn]})},{to:e.swapRouter,value:0n,data:p}];return{venue:t,amountOut:c.amountOut,amountOutMinimum:l,calls:w}}}}function vi(e){const t=e.name??"Uniswap v3",n=e.chainIds??El;return{name:t,chainIds:n,resolve:async(o,r,a)=>{if(Te(o.tokenIn)||Te(o.tokenOut))return null;const i=o.maxSlippage??wa;let s;try{s=await Sl({tokenIn:o.tokenIn,tokenOut:o.tokenOut,amountOut:o.amountOut,chainId:r,config:{swapRouter:e.swapRouter,quoterV2:e.quoterV2},feeTiers:e.feeTiers,hubs:[...e.hubCurrencies??[],...e.hubPaths??[]]})}catch{return null}const c=BigInt(Math.round(i*1e4)),l=s.amountIn+s.amountIn*c/10000n;return{venue:t,amountIn:s.amountIn,amountInMax:l,amountOut:o.amountOut,calls:[Cl({config:{swapRouter:e.swapRouter,quoterV2:e.quoterV2},routerHasDeadline:e.routerHasDeadline,route:s,tokenIn:o.tokenIn,tokenOut:o.tokenOut,recipient:a,amountOut:o.amountOut,amountInMaximum:l})]}}}}function Ul(e){const t=[];e?.customVenues&&t.push(...e.customVenues),e?.satsuma&&t.push(xa(e.satsuma)),e?.aerodrome!==!1&&t.push(ba(e?.aerodrome??ya)),t.push(Lf(e?.oneInch));const n=t.map(Ef);function o(i){return n.find(s=>s.chainIds.includes(i))}async function r(i,s,c,l){const u=n.filter(f=>f.chainIds.includes(s));if(u.length===0)throw new we("NO_VENUE_FOR_CHAIN",`No liquidity venue configured for chain ${s}. Cannot resolve swap ${i.tokenIn} \u2192 ${i.tokenOut}.`,{chainId:s,tokenIn:i.tokenIn,tokenOut:i.tokenOut,amountIn:i.amountIn.toString()});const d=await Promise.allSettled(u.map(f=>f.resolve(i,s,c,l)));let p=null;for(const f of d)l&&f.status==="fulfilled"&&f.value&&(f.value.venue!==l.venue||f.value.calls.length!==l.calls.length||f.value.calls.some((g,h)=>g.to.toLowerCase()!==l.calls[h].to.toLowerCase()||g.data.slice(0,10)!==l.calls[h].data.slice(0,10)))||f.status==="fulfilled"&&f.value&&(!p||f.value.amountOut>p.amountOut)&&(p=f.value);if(p)return p;const w=d.find(f=>f.status==="rejected");if(w)throw w.reason;return null}async function a(i,s,c){const l=[],u=[];for(const d of i){if(!Pf(d)){l.push(d);continue}const p=await r(d,s,c);if(!p)throw new we("NO_LIQUIDITY",`No venue returned a quote for ${d.tokenIn} \u2192 ${d.tokenOut} on chain ${s}.`,{chainId:s,tokenIn:d.tokenIn,tokenOut:d.tokenOut,amountIn:d.amountIn.toString()});l.push(...p.calls),u.push(p)}return{calls:l,resolvedSwaps:u}}return{resolveSwapIntents:a,resolveSwap:r,getVenueForChain:o,venues:t}}const Lo="0x0000000000000000000000000000000000000000",Ii=[{fee:100,tickSpacing:1},{fee:500,tickSpacing:10},{fee:3e3,tickSpacing:60},{fee:1e4,tickSpacing:200}],Wl=Lo,Ll=.02,jf=1800,ql={name:"Uniswap v4",quoter:"0x0d5e0f971ed27fbff6c2837bf31316121532048d",universalRouter:"0x6ff5693b99212da76ad316178a184ab56d299b43",permit2:"0x000000000022d473030f116ddee9f6b43ac78ba3",chainIds:[8453],hubCurrencies:["0x4200000000000000000000000000000000000006",Lo,"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]},zl={name:"Uniswap v4",quoter:"0x8dc178efb8111bb0973dd9d722ebeff267c98f94",universalRouter:"0x8876789976decbfcbbbe364623c63652db8c0904",permit2:"0x000000000022d473030f116ddee9f6b43ac78ba3",routerHasHopPrice:!0,chainIds:[4663],hubCurrencies:["0x0bd7d308f8e1639fab988df18a8011f41eacad73",Lo,"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"]},Hl=co(["struct PoolKey { address currency0; address currency1; uint24 fee; int24 tickSpacing; address hooks; }","struct PathKey { address intermediateCurrency; uint24 fee; int24 tickSpacing; address hooks; bytes hookData; }","struct QuoteExactSingleParams { PoolKey poolKey; bool zeroForOne; uint128 exactAmount; bytes hookData; }","struct QuoteExactParams { address exactCurrency; PathKey[] path; uint128 exactAmount; }","function quoteExactInputSingle(QuoteExactSingleParams params) returns (uint256 amountOut, uint256 gasEstimate)","function quoteExactInput(QuoteExactParams params) returns (uint256 amountOut, uint256 gasEstimate)","function quoteExactOutputSingle(QuoteExactSingleParams params) returns (uint256 amountIn, uint256 gasEstimate)","function quoteExactOutput(QuoteExactParams params) returns (uint256 amountIn, uint256 gasEstimate)"]),Gf=co(["function approve(address token, address spender, uint160 amount, uint48 expiration)"]),Kf=co(["function execute(bytes commands, bytes[] inputs, uint256 deadline) payable"]),Vl="0x10",Yf="04",Zf="06",Xf="07",Jf="08",$f="09",ms="0c",hs="0e",_f=[{name:"currency0",type:"address"},{name:"currency1",type:"address"},{name:"fee",type:"uint24"},{name:"tickSpacing",type:"int24"},{name:"hooks",type:"address"}],em=[{name:"intermediateCurrency",type:"address"},{name:"fee",type:"uint24"},{name:"tickSpacing",type:"int24"},{name:"hooks",type:"address"},{name:"hookData",type:"bytes"}],Xo=(e,t)=>e.toLowerCase()===t.toLowerCase();function gs(e){return Te(e)?Lo:e}function tm(e,t){return e.toLowerCase()<t.toLowerCase()?[e,t]:[t,e]}function Ql(e,t,n,o,r){const a=[],[i,s]=tm(e,t);for(const{fee:l,tickSpacing:u}of Ii)a.push({kind:"single",poolKey:{currency0:i,currency1:s,fee:l,tickSpacing:u,hooks:Wl},zeroForOne:Xo(e,i)});const c=(l,u)=>!!r&&(Xo(l,Lo)&&Xo(u,r)||Xo(l,r)&&Xo(u,Lo));for(const l of n)if(!(Xo(l,e)||Xo(l,t))&&!(c(l,e)||c(l,t)))for(const u of Ii)for(const d of Ii){const p=(w,f)=>({intermediateCurrency:w,fee:f.fee,tickSpacing:f.tickSpacing,hooks:Wl,hookData:"0x"});a.push({kind:"multi",path:o==="in"?[p(l,u),p(t,d)]:[p(e,u),p(l,d)]})}return a}async function jl(e,t,n,o,r,a){const i=Rt(e),s=(await Promise.allSettled(n.map(async c=>{const{result:l}=c.kind==="single"?await i.simulateContract({address:t.quoter,abi:Hl,functionName:a==="in"?"quoteExactInputSingle":"quoteExactOutputSingle",args:[{poolKey:c.poolKey,zeroForOne:c.zeroForOne,exactAmount:r,hookData:"0x"}]}):await i.simulateContract({address:t.quoter,abi:Hl,functionName:a==="in"?"quoteExactInput":"quoteExactOutput",args:[{exactCurrency:o,path:c.path,exactAmount:r}]}),u=l[0];if(u<=0n)throw new Error("zero quote");return{candidate:c,amount:u}}))).filter(c=>c.status==="fulfilled").map(c=>c.value);return s.length===0?null:(s.sort((c,l)=>c.amount<l.amount?-1:c.amount>l.amount?1:0),a==="in"?s[s.length-1]:s[0])}function Gl(e){const{candidate:t,direction:n,currencyIn:o,currencyOut:r,recipient:a,exactAmount:i,limitAmount:s,deadline:c,routerHasHopPrice:l,sweepNativeTo:u}=e;let d,p;t.kind==="single"?(d=n==="in"?`0x${Zf}${ms}${hs}`:`0x${Jf}${ms}${hs}`,p=Zo([{type:"tuple",components:[{name:"poolKey",type:"tuple",components:_f},{name:"zeroForOne",type:"bool"},{name:n==="in"?"amountIn":"amountOut",type:"uint128"},{name:n==="in"?"amountOutMinimum":"amountInMaximum",type:"uint128"},...l?[{name:"minHopPriceX36",type:"uint256"}]:[],{name:"hookData",type:"bytes"}]}],[{poolKey:t.poolKey,zeroForOne:t.zeroForOne,[n==="in"?"amountIn":"amountOut"]:i,[n==="in"?"amountOutMinimum":"amountInMaximum"]:s,...l?{minHopPriceX36:0n}:{},hookData:"0x"}])):(d=n==="in"?`0x${Xf}${ms}${hs}`:`0x${$f}${ms}${hs}`,p=Zo([{type:"tuple",components:[{name:n==="in"?"currencyIn":"currencyOut",type:"address"},{name:"path",type:"tuple[]",components:em},...l?[{name:"minHopPriceX36",type:"uint256[]"}]:[],{name:n==="in"?"amountIn":"amountOut",type:"uint128"},{name:n==="in"?"amountOutMinimum":"amountInMaximum",type:"uint128"}]}],[{[n==="in"?"currencyIn":"currencyOut"]:n==="in"?o:r,path:t.path,...l?{minHopPriceX36:[]}:{},[n==="in"?"amountIn":"amountOut"]:i,[n==="in"?"amountOutMinimum":"amountInMaximum"]:s}]));const w=Zo([{type:"address"},{type:"uint256"}],[o,n==="in"?i:s]),f=Zo([{type:"address"},{type:"address"},{type:"uint256"}],[r,a,0n]),g=Zo([{type:"bytes"},{type:"bytes[]"}],[d,[p,w,f]]),h=u?`${Vl}${Yf}`:Vl,b=u?[g,Zo([{type:"address"},{type:"address"},{type:"uint256"}],[Lo,u,0n])]:[g];return Bt({abi:Kf,functionName:"execute",args:[h,b,c]})}function Kl(){return BigInt(Math.floor(Date.now()/1e3)+jf)}function Yl(e,t,n,o){return{to:e.permit2,value:0n,data:Bt({abi:Gf,functionName:"approve",args:[t,e.universalRouter,n,Number(o)]})}}function Zl(e){const t=e.name??"Uniswap v4",n=e.v3?xa({...e.v3,chainIds:e.chainIds}):null;return{name:t,chainIds:e.chainIds,resolve:async(o,r,a)=>{const i=o.maxSlippage??Ll,s=gs(o.tokenIn),c=gs(o.tokenOut),l=Te(o.tokenIn),u=e.hubCurrencies??[Lo];let d=null;if(!Xo(s,c)&&o.amountIn>0n){const p=await jl(r,e,Ql(s,c,u,"in",mi(r)),s,o.amountIn,"in").catch(()=>null);if(p){const w=ai(p.amount,i),f=Kl(),g=[];l||(g.push({to:o.tokenIn,value:0n,data:Bt({abi:ut,functionName:"approve",args:[e.permit2,o.amountIn]})}),g.push(Yl(e,o.tokenIn,o.amountIn,f))),g.push({to:e.universalRouter,value:l?o.amountIn:0n,data:Gl({candidate:p.candidate,direction:"in",currencyIn:s,currencyOut:c,recipient:a,exactAmount:o.amountIn,limitAmount:w,deadline:f,routerHasHopPrice:e.routerHasHopPrice})}),d={venue:t,amountOut:p.amount,amountOutMinimum:w,calls:g}}}return!d&&n?n.resolve(o,r,a):d}}}function Xl(e){const t=e.name??"Uniswap v4";return{name:t,chainIds:e.chainIds,resolve:async(n,o,r)=>{const a=Te(n.tokenIn),i=gs(n.tokenIn),s=gs(n.tokenOut);if(Xo(i,s)||n.amountOut<=0n)return null;const c=n.maxSlippage??Ll,l=e.hubCurrencies??[Lo],u=await jl(o,e,Ql(i,s,l,"out",mi(o)),s,n.amountOut,"out").catch(()=>null);if(!u)return null;const d=BigInt(Math.round(c*1e4)),p=u.amount+u.amount*d/10000n,w=Kl();return{venue:t,amountIn:u.amount,amountInMax:p,amountOut:n.amountOut,calls:[...a?[]:[Yl(e,n.tokenIn,p,w)],{to:e.universalRouter,value:a?p:0n,data:Gl({candidate:u.candidate,direction:"out",currencyIn:i,currencyOut:s,recipient:r,exactAmount:n.amountOut,limitAmount:p,deadline:w,routerHasHopPrice:e.routerHasHopPrice,sweepNativeTo:a?r:void 0})}]}}}}const ws=[{...bi,protocol:"uniswap-v3",chainId:4114},{...bi,protocol:"uniswap-v3",chainId:5115},{...Fl,protocol:"uniswap-v3",chainId:8453},{...Tl,protocol:"uniswap-v3",chainId:1},{...Ol,protocol:"uniswap-v3",chainId:42161},{...qf,protocol:"uniswap-v3",chainId:137},{...zf,protocol:"uniswap-v3",chainId:56},{...Hf,protocol:"uniswap-v3",chainId:143},{...Bl,protocol:"uniswap-v3",chainId:4663},{...Rl,protocol:"uniswap-v3",chainId:4663},{...ql,protocol:"uniswap-v4",chainId:8453},{...zl,protocol:"uniswap-v4",chainId:4663},{...ya,protocol:"aerodrome-slipstream",chainId:8453},...bo.chainIds.map(e=>({protocol:"metric",chainId:e}))];function Er(e){const t=e?.metricApiUrl?[...ws.filter(a=>a.protocol!=="metric"),...Af.map(a=>({protocol:"metric",chainId:a}))]:ws,n=e?.includeDefaults===!1?e.venues??[]:[...t,...e?.venues??[]],o=[],r=[];for(const a of n){const i=[a.chainId];switch(a.protocol){case"metric":{const s={...a,apiUrl:a.apiUrl??e?.metricApiUrl,chainIds:i};o.push(yl(s)),r.push(bl(s));break}case"uniswap-v3":{const s={...a,chainIds:i};o.push(xa(s)),r.push(vi(s));break}case"uniswap-v4":{const s={...a,chainIds:i};o.push(Zl(s)),r.push(Xl(s));break}case"aerodrome-slipstream":{const s={...a,chainIds:i};o.push(ba(s)),r.push(Pl(s));break}default:{const s=a;throw new we("INVALID_PARAMS",`Unsupported liquidity venue protocol: ${s.protocol}`,{protocol:s.protocol})}}}return{input:o,output:r}}const ki=new Set(["WBTC","CBTC"]),Jl=new Set(["btc","wbtc","wcbtc","cbtc"]);function $l(e,t){return!e||!t?!1:e===t?!0:ki.has(e)&&ki.has(t)}function Jn(e){const[t,n,o]=e.split(":");if(t!=="evm"||!n||!o)return null;const r=Number(n);if(!Number.isFinite(r))return null;const a=o.startsWith("0x")?o.toLowerCase():`0x${o.toLowerCase()}`;return{chainId:r,address:a}}function ys(e){return(e??"").trim().replace(/^test\s+/i,"").replace(/^spice/i,"").toLowerCase().replace(/[^a-z0-9]/g,"")}function nm(e){return new Set([e.receiptTokenName,e.displaySymbol,e.symbol,e.displayName,e.name].map(ys).filter(Boolean))}function om(e,t){const n=nm(e),o=[t.symbol,t.name,t.equivalenceGroup].map(ys);if(o.some(i=>i&&n.has(i)))return!0;const r=[...n].some(i=>Jl.has(i)),a=o.some(i=>Jl.has(i))||ki.has(t.equivalenceGroup??"");return r&&a}function _l(e,t,n){const o=new Set(t.map(ys).filter(Boolean)),r=a=>{if(n&&G(a.address,n))return 0;const i=[a.symbol,a.name,a.equivalenceGroup].map(ys).findIndex(s=>s&&o.has(s));return i===-1?4:i+1};return[...e].sort((a,i)=>{const s=r(a)-r(i);return s!==0?s:a.address.toLowerCase().localeCompare(i.address.toLowerCase())})}function Qr(e,t){const n=e.chainTokens?Object.keys(e.chainTokens):[],o=[];for(const r of n){const a=Jn(r);if(!a||a.chainId!==t)continue;const i=a.address,s=Te(i)?kt(t)?.nativeCurrency:void 0,c=Xt(i,t)??(s?{...s}:void 0);c&&(!Ci(e,i,t)&&!(e.isUniversal&&om(e,c))||o.some(l=>G(l,i))||o.push(i))}return _l(o.map(r=>{const a=Xt(r,t);return{address:r,symbol:a?.symbol,name:a?.name,equivalenceGroup:a?.equivalenceGroup}}),[e.receiptTokenName,e.displaySymbol,e.symbol,e.displayName,e.name],e.chainId===t&&!e.isUniversal?e.address:void 0).map(r=>r.address)}function Ci(e,t,n){return e.chainId===n&&G(e.address,t)?!0:Ia(e.address,e.chainId,t,n)}async function ed(e,t){const n=Rt(e),o=Uo(e);return Te(t)?n.getBalance({address:o}):await n.readContract({address:t,abi:ut,functionName:"balanceOf",args:[o]})}function Ai(e,t,n){const o=cr(n),r=o.find(i=>G(i.address,e));if(r&&(t===n||!Te(e)))return r;const a=Xt(e,t);if(a)return _l(o.filter(i=>$l(i.equivalenceGroup,a.equivalenceGroup)),[a.symbol,a.name,a.equivalenceGroup])[0]}function va(e){return e.equivalenceGroup==="USDC"&&e.symbol.toUpperCase()!=="USDT"}function Fr(e){const t=Vr(e);if(!t||t===Zt)return;const n=cr(e).filter(va);return n.find(o=>o.symbol.toUpperCase()==="USDC")??n[0]}function Si(e,t){if(e.chainId===t)return null;const n=Vr(e.chainId),o=Vr(t);if(!n||n===Zt||!o||o===Zt)return null;const r=!e.isNative&&!Te(e.address)?Xt(e.address,e.chainId):void 0,a=r&&va(r)?Ai(e.address,e.chainId,t):void 0,i=a?r:Fr(e.chainId),s=a??Fr(t);if(!i||!s)return null;const c=l=>({address:l.address,symbol:l.symbol,decimals:l.decimals,chainId:l.chainId});return{source:c(i),destination:c(s)}}async function td(e,t,n){const o=cr(e.chainId).filter(va),r=[o.find(s=>G(s.address,t.address)),e,...o].filter((s,c,l)=>!!s&&l.findIndex(u=>u&&G(u.address,s.address))===c);let a;for(const s of r){let c;try{c=await ed(e.chainId,s.address)}catch{continue}if(c<=0n)continue;const l={...s,address:s.address};let u;try{u=await n(l)}catch{u=null}if(G(l.address,e.address)&&(a=u),u&&u.amount<=c)return{token:l,...u}}const i=a===void 0?await n(e):a;return i?{token:e,...i}:null}function rm(e,t){return!!Si(e,t)}function lo(e,t){if(e.chainId===t)return e.address;const n=Ai(e.address,e.chainId,t);return n?n.address:null}async function qo(e,t,n,o){const r=Xt(t,n);return r?r.decimals:e?.chainId===n&&G(e.address,t)&&!e.isUniversal?e.decimals:o?.chainId===n&&G(o.address,t)?o.decimals:_a(n,t)}async function nd(e,t,n={}){const o=lo(e,t),r=Qr(e,t);if(r.length===0)return o;if(r.length===1)return r[0];const a=n.requiredAmount??0n,i=s=>{const c=r.map(l=>({candidate:l,balance:s.get(Te(l)?"native":l.toLowerCase())??0n})).filter(l=>l.balance>0n).sort((l,u)=>l.balance===u.balance?0:l.balance>u.balance?-1:1);return c.length===0?null:((a>0n?c.find(l=>l.balance>=a):c[0])??c[0]).candidate};try{const s=await Promise.all(r.map(async u=>({key:Te(u)?"native":u.toLowerCase(),value:await ed(t,u)}))),c=new Map(s.map(({key:u,value:d})=>[u,d])),l=i(c);if(l)return l}catch{}return o}function Ia(e,t,n,o){const r=Xt(e,t),a=Xt(n,o);return r&&a?$l(r.equivalenceGroup,a.equivalenceGroup):tf(e,n)}function bs(e,t){return Ia(e.address,e.chainId,t.address,t.chainId)}const od=.01;function rd(e,t=!1){const n=Number.isFinite(e.balanceUsd)&&e.balanceUsd>0;return e.isDiscovered?n&&e.balanceUsd>=od:!t||!n||e.balanceUsd>=od}function jr(e,t=!1){return!!e&&e._source==="wallet"&&(e.location==="external"||e._fundingWallet==="external"||!e.location&&!e._fundingWallet&&t)}function Ie(e){return e.positionId??`${e.owner?.toLowerCase()??""}:${e.location??e._source??""}:${e.chainId}:${e.receiptTokenId??ft(e.address).toLowerCase()}`}function ad(e,t){if(!t?.length||e.symbol!==void 0&&es({...e,symbol:e.symbol},t))return!0;const n=o=>t.some(r=>G(ft(r),ft(o)));return n(e.address)||Object.keys(e.chainTokens??{}).some(o=>{const r=Jn(o);return r?n(r.address):!1})}function To(e,t,n,o,r,a){const i=(g,h=!1)=>({eligible:!1,reason:g,policyExcluded:h}),s=e._source==="wallet"||e.location==="external"||e.location==="embedded",c=t==="spend-source"&&s&&!!o&&e.chainId===o.chainId&&G(ft(e.address),ft(o.address));if(n.isWhitelistGateActive||!c&&!es(e,n.allowedTokens))return i("Asset excluded by client policy",!0);if(t!=="withdraw-destination"&&!c&&!rd(e))return i("Asset is unpriced or below the minimum value",!0);if(t==="holding")return{eligible:!0,reason:null};if(e.balanceError)return i(e.balanceError);if(!c&&!ad(e,r))return i("Asset excluded by action policy",!0);const l=new Set(o?[o.chainId]:[]);e._source!=="spice"&&e.location!=="rollup"&&l.add(e.chainId);for(const g of l)if(!ts(g,n.rpcOverrides)?.trim())return i(`Configure SpiceFlowProvider rpcOverrides[${g}] before using this asset.`);if(a?.requiresEscrow){const g=Xt(e.address,e.chainId);if(!g||!va(g))return i("This asset has no supported escrow mapping")}if(!o)return{eligible:!0,reason:null};const u=n.liquidityVenues?.includeDefaults===!1?n.liquidityVenues.venues??[]:[...ws,...n.liquidityVenues?.venues??[]],d=g=>u.some(h=>h.chainId===g),p=s&&e.chainId!==o.chainId,w=p?Si(e,o.chainId):null;if(p&&!w)return i("No supported source route");if(w&&!G(ft(e.address),ft(w.source.address))&&!d(e.chainId))return i("No conversion venue configured on the source chain");const f=w?.destination.address??lo(e,o.chainId);return t==="withdraw-destination"?(e.chainTokens||e.receiptTokenId?Qr(e,o.chainId):f?[f]:[]).some(g=>G(ft(g),ft(o.address)))?{eligible:!0,reason:null}:i("No supported withdrawal mapping"):f&&G(ft(f),ft(o.address))?{eligible:!0,reason:null}:!f&&!rm(e,o.chainId)?i("No supported destination route"):d(o.chainId)?{eligible:!0,reason:null}:i("No conversion venue configured on the destination chain")}function xs(){const e=fn(cn),[t]=H(Pp);return e?.inventory??t}function Ei(e,t,n,o,r){const a=xs(),i=r??a,s=Ae(()=>i.entry(e),[i,e]),[,c]=H(0);he(()=>{if(n)return s.subscribe(()=>c(u=>u+1),t,o)},[s,n,t,o]);const l=ae(()=>s.refresh(),[s]);return{...n?s.snapshot():Up,refresh:l}}var sd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA6lBMVEXc3NzX/v/1hRvZ2dnd3dzb29va7fpMaXHa1tPc3N35/v/c3Nzc3NzCrp/c3Nza2tp1PRbLsJzlr33uhSj0kTHcnWnUva7jdhuNX0B6Qhrsk0LOxMCFVDJ+RyGhfGTkeiGYVSHjdx3lij7khDPEsaPfoW/jgjLQuKXmgzB2PRb2hRvldhvjdRv4hhvpeRtwORb/ihryghvabhnsehrUaRjLXxXtfRt7PxXwexricRbRYhURFBeSTBe0XBrEZxmDRxiiVRrlgCbfzMAvLCmrWBgbMEh9UjBbOBe2pJi9byekk4nkgDHkgDJLNB7jlKArAAAAKXRSTlMzJv0TNSYsADUxKBwK/QUZ/URTx650/vqJ5YpMosxj3ezwkqa6/q3KrihQ98kAAAAJcEhZcwAACxMAAAsTAQCanBgAAATxSURBVHjapVeJcuI4EJXBdiRuw4JzDAFyzeIT22BsNgTIJNnM7Pz/90xLsmV5ChJm6SqqZOR+7teXWujsgLSqdU0jBCFCNK1ebR16D+39t1HXiKqqGDHBsCRavXEsQKutIV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eisD4f4lHhiAXmH9FvzYV3AchOw6At9gFKW4KANDbsttGoSyCKd1Ab4uxkzezhBQaRfQygHB3oj2FhjwT9QgifErM6jiOrQgAXe2UmcuiIKSuHG+mki2XCH0kYqzgF1vETyYszLFaxLBMNdsgDGNFAazRoUcwrDMlDYz28RS0newGcCRlDa8TK4YgxuORGj9x8NYVEsxjKQSp/pNAw5YRcJI/JP5nYeqxjAxeIfCeRQQDyWOos/y5xR2V4NIgYhRJVkjgpralBPcvQH4PsBxIX0DjJqKRdgYLtsYPUyqh60CsACXEQew7ECvAICZp7DqwQEIQXaR+CkzaoeKr3FewQdqg4mIy36VgLyZWz4G96N5vs8sKj0UPSlJGy4fAbWX88SgGQYgJVjDXi7JaaxYo9Oj4UQ0lrHCGdN25ceiEfNoZSfIomjhcKN26DarT0q4gaiyfe2C9u9hWNUBvRghbG+yd1AZNFFrjmu+ucXMF2j60OObE7f0m+mrv/5qQkimpO+IU8fKXQ9bDMe/5oPl81P3BsP183EeGu3GoLBw/WHnuLF20sXQ9X/ueL57PV99w+Z7P5Vvj8j3fXr7j9X/f/5Vsrv9/K3NM7mGXOq0AAAAASUVORK5CYII=",ka="data:image/svg+xml,%3csvg width='8' height='11' viewBox='57 6 8 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M62.7081 13.27C62.742 13.27 62.7642 13.3057 62.7491 13.3362V13.336L61.1229 16.6083C61.0892 16.6761 60.9926 16.6759 60.959 16.6083L59.3382 13.336C59.3232 13.3057 59.3453 13.27 59.3792 13.27H62.7081Z' fill='%23EA4B4B'/%3e %3cpath d='M61.0026 9.71913C61.0194 9.68524 61.0678 9.68524 61.0845 9.71913L62.747 13.0897C62.762 13.12 62.7399 13.1557 62.706 13.1557H59.3763C59.3424 13.1557 59.3203 13.12 59.3353 13.0897L61.0026 9.71913Z' fill='%23EA4B4B'/%3e %3cpath d='M60.8426 9.63827C60.8766 9.63827 60.8987 9.6741 60.8835 9.70444L59.2164 13.0594C59.1995 13.0932 59.1513 13.0932 59.1345 13.0594L57.5001 9.77047C57.47 9.70962 57.5142 9.63827 57.5821 9.63827H60.8426Z' fill='%23EA4B4B'/%3e %3cpath d='M64.5036 9.63617C64.5715 9.63618 64.6157 9.70753 64.5855 9.76838H64.5854L62.9512 13.0573C62.9344 13.0911 62.8862 13.0912 62.8692 13.0573L61.2021 9.70235C61.187 9.672 61.2091 9.63617 61.2431 9.63617H64.5036Z' fill='%23EA4B4B'/%3e %3cpath d='M62.8284 6.18281C62.862 6.11518 62.9586 6.11518 62.9922 6.18281L64.5855 9.38969C64.6157 9.45054 64.5715 9.52189 64.5036 9.52189H61.2431C61.2091 9.52189 61.187 9.48605 61.2021 9.45571L62.8283 6.18265L62.8284 6.18281Z' fill='%23EA4B4B'/%3e %3cpath d='M62.3131 6.13196C62.381 6.13196 62.4252 6.20331 62.3951 6.26416C62.154 6.74935 61.9128 7.23455 61.6718 7.71975H61.6716C61.4225 8.22125 61.1733 8.72259 60.9242 9.22409C60.9074 9.25799 60.859 9.25799 60.8422 9.22409L60.6305 8.79587C60.6275 8.78957 60.6259 8.78263 60.6259 8.77553V6.22349C60.6259 6.17297 60.6668 6.13196 60.7173 6.13196H62.3131Z' fill='%23EA4B4B'/%3e%3c/svg%3e";const Ca=ls(1)?.logo??"",im=rl.find(e=>e.symbol==="USDC")?.logo??"",ur=Object.fromEntries([...nf(),...of()].map(e=>[e.id,e.logo])),Aa={metamask:sd,metaMask:sd,rabby:am,phantom:sm},Fi=Object.fromEntries(rl.map(e=>[e.symbol.toUpperCase(),e.logo])),cm={usdc:[8453,1,42161,5115,4114],usdt:[1],btc:[4114,42161,1,5115],wbtc:[1],weth:[8453,1],eth:[8453,1,42161,4663,84532,46630],ctusd:[5115,4114],wcbtc:[5115,4114]},lm={btc:["wcbtc","cbtc","wbtc"]};function vs(e){return e.replace(/^test\s*/i,"").replace(/^spice/i,"").trim()}function Jo(e){return vs(e).toLowerCase()}function id(e){return Jo(e??"").replace(/[^a-z0-9]/g,"")}function Ti(e){const t=Jo(e);return[t,...lm[t]??[]].filter(Boolean)}function dm(e){try{return BigInt(e.balanceAvailable||"0")}catch{return 0n}}function cd(e){return Array.isArray(e.chainTokens)?e.chainTokens:Object.keys(e.chainTokens??{})}function ld(e,t){const n=kt(e),o=t.toLowerCase();return o===Zt.toLowerCase()?n?.nativeCurrency.decimals??18:n?.supportedTokens?.find(r=>r.address.toLowerCase()===o)?.decimals??18}function um(e,t,n,o=[]){const r=ld(t,n),a=e.filter(s=>dd(s,t,n,o));if(a.length===0)return null;const i=a.reduce((s,c)=>Math.min(s,c.decimals??r),r);return{chainDecimals:r,receiptDecimals:i}}function dd(e,t,n,o){if(cd(e).some(a=>{const i=Jn(a);return i&&Ia(i.address,i.chainId,n,t)}))return!0;const r=new Set(o.map(id).filter(Boolean));return r.size===0?!1:r.has(id(e.tokenName||e.receiptToken))}function ud(e,t,n,o=[]){const r=ld(t,n);return e.reduce((a,i)=>dd(i,t,n,o)?a+yo(dm(i),i.decimals??r,r):a,0n)}function pd(e,t){const n=new Set([...Ti(t),...Ti(vs(t))]);return[...e].sort((o,r)=>{const a=Jo(o.symbol),i=Jo(r.symbol),s=Jo(o.name),c=Jo(r.name),l=n.has(a)?0:n.has(s)?1:2,u=n.has(i)?0:n.has(c)?1:2;return l!==u?l-u:o.address.toLowerCase().localeCompare(r.address.toLowerCase())})[0]}function pm(e){const t=e&&e.length>0?e:Object.keys(ns).map(Number).filter(Number.isFinite),n=new Map;for(const o of t){const r=kt(o);if(!r)continue;const a=`${o}:${Zt.toLowerCase()}`;n.has(a)||n.set(a,{address:Zt,chainId:o,symbol:r.nativeCurrency.symbol,name:r.nativeCurrency.name,decimals:r.nativeCurrency.decimals,isNative:!0,logoURI:Fi[r.nativeCurrency.symbol.toUpperCase()]??r.logo});for(const i of r.supportedTokens??[]){const s=i.address.toLowerCase(),c=`${o}:${s}`;n.has(c)||n.set(c,{address:s,chainId:o,symbol:i.symbol,name:i.name,decimals:i.decimals,isNative:Te(s),logoURI:i.logo})}}return n}function fm(e,t){const n=pm(t),o=vs(e.tokenName),r=Jo(e.tokenName),a=Ti(e.tokenName),i=Array.isArray(e.chainTokens)?e.chainTokens.map(f=>[f,void 0]):Object.entries(e.chainTokens??{}),s=i.map(([f])=>Jn(f)).filter(f=>f!==null),c=new Map;for(const[f,g]of i){const h=Jn(f);if(!h||!Number.isSafeInteger(h.chainId)||h.chainId<0||!/^evm:[0-9]+:(?:0x)?[0-9a-fA-F]{40}$/.test(f)){if(!Array.isArray(e.chainTokens))throw new Error("Invalid chain token metadata identity");continue}if(g!==void 0&&(!g||typeof g!="object"||Array.isArray(g)||g.name!==void 0&&typeof g.name!="string"||g.decimals!==void 0&&(!Number.isInteger(g.decimals)||g.decimals<0||g.decimals>255)))throw new Error("Invalid chain token metadata");const b=`${h.chainId}:${h.address.toLowerCase()}`;if(c.has(b)){const x=c.get(b);if(x?.name!==g?.name||x?.decimals!==g?.decimals)throw new Error("Conflicting chain token metadata")}c.set(b,g)}const l=(f,g)=>{const h=c.get(`${g.chainId}:${g.address.toLowerCase()}`);return{...f,name:typeof h?.name=="string"&&h.name.length>0?h.name:f.name,decimals:typeof h?.decimals=="number"?h.decimals:f.decimals}},u=s.map(f=>{const g=n.get(`${f.chainId}:${f.address.toLowerCase()}`);return g?l(g,f):void 0}).filter(f=>f!==void 0),d=cm[r]??[];if(d.length>0)for(const f of d){const g=u.filter(h=>h.chainId===f);if(g.length>0)return pd(g,e.tokenName)}if(u.length>0)return pd(u,e.tokenName);const p=Array.from(n.values()).filter(f=>a.includes(Jo(f.symbol))||a.includes(Jo(f.name)));if(d.length>0)for(const f of d){const g=p.find(h=>h.chainId===f);if(g)return g}if(p.length>0)return p[0];const w=s[0];if(w){const f=c.get(`${w.chainId}:${w.address.toLowerCase()}`);return{address:w.address,chainId:w.chainId,symbol:o||e.tokenName,name:typeof f?.name=="string"&&f.name.length>0?f.name:o||e.tokenName,decimals:typeof f?.decimals=="number"?f.decimals:e.decimals??18,isNative:Te(w.address),logoURI:void 0}}}function mm(e,t){let n;try{n=BigInt(e.balanceAvailable||"0")}catch{return null}if(n<=0n)return null;if(t?.length){const f=cd(e).map(Jn).filter(g=>g!==null);if(f.length>0&&!f.some(g=>t.includes(g.chainId)))return null}let o;try{o=fm(e,t)}catch{return null}const r=o?.decimals??e.decimals??18,a=e.decimals??r,i=yo(n,a,r),s=o?.address??Zt,c=o?.chainId??0,l=vs(e.tokenName),u=o?.symbol??l,d=o?.name??l,p=parseFloat(Me(i,r)),w=e.tokenName==="spiceUSDC"?p:typeof e.balanceUsd=="number"?e.balanceUsd:typeof e.balanceUsd=="string"&&Number(e.balanceUsd)||0;return{address:s,symbol:u,name:d,decimals:r,chainId:c,balance:i,balanceFormatted:p,balanceUsd:w,isNative:o?.isNative??Te(s),logoURI:o?.logoURI,displaySymbol:l||u,displayName:l||d,displayChainName:"Spicenet",receiptTokenId:e.receiptToken,receiptTokenName:e.tokenName||d,receiptTokenDecimals:a,chainTokens:e.chainTokens&&!Array.isArray(e.chainTokens)?e.chainTokens:void 0,isUniversal:!0}}const Oi=6e4,hm=3e5,fd="https://api.g.alchemy.com/prices/v1",Gr=new Map;function Is(e,t){try{const n=t??ts(e);if(typeof n!="string")return null;const{hostname:o,pathname:r}=new URL(n);if(!o.endsWith(".g.alchemy.com"))return null;const a=r.split("/").filter(Boolean).pop();return a?{network:o.slice(0,-14),key:a}:null}catch{return null}}const Sa=(e,t)=>`${e.network}:${e.key}:${t.toLowerCase()}`;function Tr(e,t){const n=Gr.get(Sa(e,t));if(!n?.price||n.updatedAt===void 0)return;const o=Date.now()-n.updatedAt;if(!(o>=hm))return{price:n.price,stale:o>=Oi}}function md(e){const t=Number(e.prices?.find(n=>n.currency==="usd")?.value);return Number.isFinite(t)&&t>0?t:0}async function hd(e,t,n){const o=[],r=new Set,a=Date.now();for(const i of new Set(t.map(s=>s.toLowerCase()))){const s=Gr.get(Sa(e,i));s?.pending?r.add(s.pending):(!s||a-s.attemptedAt>=Oi&&(s.updatedAt===void 0||a-s.updatedAt>=Oi))&&o.push(i)}for(let i=0;i<o.length;i+=25){const s=o.slice(i,i+25),c=Promise.resolve().then(async()=>{try{const l=await n(s);for(const u of s){const d=l.get(u);if(!d)continue;const p=Gr.get(Sa(e,u));p.price=d,p.updatedAt=Date.now()}}catch{}finally{for(const l of s)Gr.get(Sa(e,l)).pending=void 0}});for(const l of s){const u=Sa(e,l);Gr.set(u,{...Gr.get(u),attemptedAt:a,pending:c})}r.add(c)}await Promise.all(r)}async function Bi(e,t){return await hd(e,t,async n=>{const o=await fetch(`${fd}/${e.key}/tokens/by-address`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({addresses:n.map(i=>({network:e.network,address:i}))}),signal:AbortSignal.timeout(1e4)});if(!o.ok)throw new Error("Provider price request failed");const r=await o.json(),a=new Map;for(const i of r?.data??[]){if(i.network&&i.network!==e.network)continue;const s=String(i.address).toLowerCase();n.includes(s)&&a.set(s,md(i))}return a}),new Map(t.map(n=>[n.toLowerCase(),Tr(e,n)?.price??0]))}async function Ri(e,t){const n=`native:${t}`;return await hd(e,[n],async()=>{const o=await fetch(`${fd}/${e.key}/tokens/by-symbol?symbols=${encodeURIComponent(t)}`,{signal:AbortSignal.timeout(1e4)});if(!o.ok)throw new Error("Provider native price request failed");const r=(await o.json())?.data?.find(a=>a.symbol?.toUpperCase()===t.toUpperCase());return new Map([[n.toLowerCase(),r?md(r):0]])}),Tr(e,n)?.price??0}async function gm(e,t){const n=t.supportedChains,o=e.map(r=>{if(r.receiptTokenName==="spiceUSDC")return[];const a=Object.keys(r.chainTokens??{}).map(Jn).filter(i=>!!i&&Hn(i.address)&&!!n?.includes(i.chainId));return a.sort((i,s)=>{const c=l=>l===t.nativeChainId?-1:n.indexOf(l);return c(i.chainId)-c(s.chainId)||+!G(i.address,r.address)-+!G(s.address,r.address)}),a.flatMap(i=>{const s=t.rpcOverrides?.[i.chainId];if(!s)return[];const c=Is(i.chainId,s);if(!c)return[];const l=Te(i.address)?kt(i.chainId)?.nativeCurrency.symbol:void 0,u=l?`native:${l}`:i.address;return[{rpc:c,token:u,address:i.address,nativeSymbol:l}]})});return(typeof document>"u"||!document.hidden)&&await Promise.all(o.map(async r=>{for(const a of r)if(a.nativeSymbol?await Ri(a.rpc,a.nativeSymbol).catch(()=>0):await Bi(a.rpc,[a.address]).catch(()=>new Map),Tr(a.rpc,a.token)?.stale===!1)break})),e.map((r,a)=>{if(r.receiptTokenName==="spiceUSDC")return{...r,balanceUsd:r.balanceFormatted,priceStatus:"fresh"};const i=o[a].map(c=>Tr(c.rpc,c.token)),s=i.find(c=>c&&!c.stale)??i.find(Boolean);return{...r,balanceUsd:s?r.balanceFormatted*s.price:Number.isFinite(r.balanceUsd)&&r.balanceUsd>0?r.balanceUsd:0,priceStatus:s?s.stale?"stale":"fresh":"unavailable"}})}function wm(e,t,n){const o=fn(cn),[r,a]=H(()=>typeof document>"u"||!document.hidden);he(()=>{const u=()=>a(!document.hidden);return document.addEventListener("visibilitychange",u),()=>document.removeEventListener("visibilitychange",u)},[]);const i={supportedChains:n??o?.supportedChainIds,nativeChainId:o?.nativeChainId,rpcOverrides:o?.rpcOverrides},s=JSON.stringify([e,i],(u,d)=>typeof d=="bigint"?d.toString():d),c=ae(()=>gm(e,i),[s]),l=Ei(`prices:${s}`,c,t&&r&&e.length>0,6e4);return l.updatedAt?l.assets:e}function ym(e){const t=e.chainTokens??e.chainTokenConfig;if(Array.isArray(t))return t.filter(n=>typeof n=="string");if(t&&typeof t=="object")return t}const gd=({address:e,supportedChains:t,enabled:n=!0,refetchInterval:o,priceEnabled:r=!1})=>{const a=fn(cn),i=a?.apiUrl||Lp,s=xs(),c=a?.supportedChainIds??t,l=JSON.stringify([...c??[]].sort((T,I)=>T-I)),u=e?.toLowerCase(),d=ae(async()=>{const T=`${i}/wallets/${u}/balance`;let I,y;try{const k=await Wp(T,{cache:"no-store"});if(I=k.status,y=k.requestId,!k.ok)throw new Error(`Failed to fetch balance: ${k.status}`);const E=await k.json();if(!Array.isArray(E.balances))throw new Error("Invalid balance response");return E.balances.map(F=>{const U=mm({receiptToken:typeof F.receiptToken=="string"?F.receiptToken:void 0,tokenName:String(F.tokenName??""),balanceAvailable:String(F.balanceAvailable??"0"),chainTokens:ym(F),decimals:typeof F.decimals=="number"?F.decimals:void 0,balanceUsd:typeof F.balanceUsd=="number"||typeof F.balanceUsd=="string"?F.balanceUsd:null},c);return U?{...U,owner:u,location:"rollup",_source:"spice",positionId:`${u}:rollup:${U.receiptTokenId??U.address}`}:null}).filter(F=>F!==null)}catch(k){const E=k instanceof Error?k.name:void 0,F=I===429?"Balance refresh is temporarily busy. Wait a moment and try again.":I===408||I===504||E==="TimeoutError"?"Balance refresh timed out. Try again.":E==="AbortError"?"Balance refresh was interrupted. Try again.":"Balances are unavailable. Check your connection and try again.",U=new we("RELAYER_STATUS_ERROR",F,{endpoint:T,httpStatus:I,requestId:y,cause:k});throw Wn(U),U}},[u,i,l,a?.nativeChainId,a?.rpcOverrides]),{assets:p,loading:w,refreshing:f,error:g,updatedAt:h}=Ei(`rollup:${u}:${i}:${l}`,d,n&&!!u,o??0,s),b=JSON.stringify(t??[]),x=Ae(()=>g?p.map(T=>({...T,balanceError:g,balanceStatus:"stale"})):p,[p,g]),C=wm(x,n&&r,c),v=Ae(()=>C.filter(T=>!t?.length||t.includes(T.chainId)||Object.keys(T.chainTokens??{}).some(I=>t.some(y=>I.startsWith(`evm:${y}:`)))),[C,b]),A=ae(T=>v.filter(I=>I.chainId===T),[v]);return{assets:v,loading:w,error:g,hasBalance:v.some(T=>T.balance>0n),refreshing:f,updatedAt:h,refetch:s.invalidate,getAssetsByChain:A}};async function bm(e,t,n){if(n)return{decimals:n.decimals,symbol:n.symbol,name:n.name,logoURI:n.logo};const[o,r,a]=await Promise.all([dr(e,{address:t,abi:ut,functionName:"decimals"}),dr(e,{address:t,abi:ut,functionName:"symbol"}).catch(()=>"TOKEN"),dr(e,{address:t,abi:ut,functionName:"name"}).catch(()=>"TOKEN")]);if(!Number.isInteger(Number(o))||Number(o)<0||Number(o)>255)throw new Error("Invalid token decimals");return{decimals:Number(o),symbol:r,name:a,logoURI:void 0}}const wd=async(e,t,n)=>{const o=Rt(t,n),r=kt(t),a=await ui(o,{address:e}),i=r.nativeCurrency,s=r.supportedTokens?.find(c=>Te(c.address));return{address:Zt,name:i.name,symbol:i.symbol,decimals:i.decimals,balance:a,balanceFormatted:Number(Me(a,i.decimals)),balanceUsd:0,priceStatus:"unavailable",logoURI:s?.logo||r.logo,isNative:!0,chainId:t}},xm=async(e,t,n,o,r,a,i)=>{try{if(!Hn(n))return null;const s=wn(n),c=Hn(e)?wn(e):e,l=Rt(t,i),u=await dr(l,{address:s,abi:ut,functionName:"balanceOf",args:[c]}),d=Number(Me(u,a));return u>0n?{address:s,name:o,symbol:r,decimals:a,balance:u,balanceFormatted:d,balanceUsd:0,priceStatus:"unavailable",logoURI:void 0,isNative:!1,chainId:t}:null}catch(s){throw s}},yd=(e,t)=>{const n=kt(t);if(!n)return e;const o=new Set(e.map(a=>a.address.toLowerCase())),r=e.some(a=>a.isNative);for(const a of n.supportedTokens||[])Te(a.address)&&r||o.has(a.address.toLowerCase())||e.push({address:a.address,name:a.name,symbol:a.symbol,decimals:a.decimals,balance:BigInt(0),balanceFormatted:0,balanceUsd:0,priceStatus:"unavailable",logoURI:a.logo,isNative:Te(a.address),chainId:t});if(!e.find(a=>a.isNative)){const a=n.supportedTokens?.find(i=>Te(i.address));e.push({address:Zt,name:n.nativeCurrency.name,symbol:n.nativeCurrency.symbol,decimals:n.nativeCurrency.decimals,balance:BigInt(0),balanceFormatted:0,balanceUsd:0,priceStatus:"unavailable",logoURI:a?.logo||n.logo,isNative:!0,chainId:t})}return e},vm=async(e,t,n)=>{const o=[],r=async s=>{for(const c of s){const l=await xm(e,t,c.address,c.name,c.symbol,c.decimals,n);l&&(l.logoURI=c.logo,o.push(l))}},a=await wd(e,t,n);a.balance>0n&&o.push(a);const i=(kt(t)?.supportedTokens||[]).filter(s=>!Te(s.address));if(i.length>0)try{const s=Rt(t,n),c=wn(e),l=i.filter(w=>Hn(w.address)).map(w=>({address:wn(w.address),abi:ut,functionName:"balanceOf",args:[c]})),u=await s.multicall({contracts:l}),d=i.filter(w=>Hn(w.address)),p=[];u.forEach((w,f)=>{if(w.status==="success"){const g=w.result;if(g&&g>0n){const h=d[f],b=Number(Me(g,h.decimals));g>0n&&o.push({address:wn(h.address),name:h.name,symbol:h.symbol,decimals:h.decimals,balance:g,balanceFormatted:b,balanceUsd:0,priceStatus:"unavailable",logoURI:h.logo,isNative:!1,chainId:t})}}else p.push(d[f])}),await r(p)}catch{await r(i)}return{tokens:yd(o,t),chainId:t}},Im=async(e,t,n)=>{const o=new Map,r=Is(e,n?n[e]??"":void 0);if(!r)return o;const a=t.filter(l=>Te(l)),i=t.filter(l=>!Te(l)),[s,c]=await Promise.all([i.length?Bi(r,i).catch(()=>new Map):new Map,a.length?Ri(r,kt(e)?.nativeCurrency?.symbol??"ETH").catch(()=>0):0]);for(const[l,u]of s)u>0&&o.set(l,u);if(c>0)for(const l of a)o.set(l.toLowerCase(),c);return o},km=async(e,t,n,o=!0,r)=>{const a=Rt(t,r),i=wn(e),s=[];let c;do{const g=await a.request({method:"alchemy_getTokenBalances",params:[i,"erc20",c?{pageKey:c}:{}]});s.push(...g.tokenBalances),c=g.pageKey||void 0}while(c);const l=s.filter(g=>Hn(g.contractAddress)&&!!g.tokenBalance&&BigInt(g.tokenBalance)>0n),u=kt(t)?.supportedTokens||[],d=g=>u.find(h=>h.address.toLowerCase()===g.toLowerCase()),p=[],w=await wd(e,t,r),[f]=await Promise.all([Promise.all(l.map(async g=>{const h=d(g.contractAddress);return h?{name:h.name,symbol:h.symbol,decimals:h.decimals,logo:h.logo??null}:await a.request({method:"alchemy_getTokenMetadata",params:[g.contractAddress]})})),o?Bi(n,l.map(g=>g.contractAddress)):void 0,o&&w.balanceFormatted>0?Ri(n,w.symbol):void 0]);if(w.balance>0n){const g=Tr(n,`native:${w.symbol}`);p.push({...w,balanceUsd:(g?.price??0)*w.balanceFormatted,priceStatus:g?g.stale?"stale":"fresh":"unavailable"})}return l.forEach((g,h)=>{const b=f[h];if(!Number.isInteger(b.decimals)||b.decimals===null||b.decimals<0||b.decimals>255)throw new Error(`Invalid token metadata on chain ${t}`);const x=BigInt(g.tokenBalance),C=Number(Me(x,b.decimals));if(x<=0n)return;const v=Tr(n,g.contractAddress),A=(v?.price??0)*C;p.push({address:wn(g.contractAddress),name:b.name||"Unknown",symbol:b.symbol||"UNKNOWN",decimals:b.decimals,balance:x,balanceFormatted:C,balanceUsd:A,priceStatus:v?v.stale?"stale":"fresh":"unavailable",isDiscovered:!d(g.contractAddress),logoURI:b.logo||void 0,isNative:!1,chainId:t})}),{tokens:yd(p,t),chainId:t}},bd=new Set,Cm=async(e,t,n=!0,o)=>{try{const r=Is(t,o?o[t]??"":void 0);if(r)try{return await km(e,t,r,n&&(typeof document>"u"||!document.hidden),o)}catch(a){bd.has(t)||(bd.add(t),console.warn(`Token discovery unavailable on chain ${t}; listing configured tokens only.`,a))}return await vm(e,t,o)}catch(r){throw r}},Kr=async(e,t,n=[],o)=>{if(!e)throw new Error("Wallet address is required");const r=qp(o),a=t?.length?[...new Set(t)]:Object.keys(r).map(Number),i=await Promise.allSettled(a.map(c=>Cm(e,c,!0,o))),s={};return i.forEach((c,l)=>{const u=a[l];s[u]=c.status==="fulfilled"?c.value:{chainId:u,tokens:[],error:`Unable to refresh balances on chain ${u}`}}),(await Promise.allSettled(n.map(async c=>{const l=s[c.chainId];if(!l||l.error||l.tokens.some(h=>ft(h.address).toLowerCase()===ft(c.address).toLowerCase()))return;const u=Rt(c.chainId,o),d=await bm(u,c.address,c.decimals!==void 0&&c.symbol?{decimals:c.decimals,symbol:c.symbol,name:c.name||c.symbol,logo:c.logoURI}:void 0),p=await dr(u,{address:c.address,abi:ut,functionName:"balanceOf",args:[e]});await Im(c.chainId,[c.address],o);const w=Number(Me(p,d.decimals)),f=Is(c.chainId,o?o[c.chainId]??"":void 0),g=f?Tr(f,c.address):void 0;l.tokens.push({...d,...c,name:d.name,symbol:d.symbol,decimals:d.decimals,balance:p,balanceFormatted:w,balanceUsd:(g?.price??0)*w,priceStatus:g?g.stale?"stale":"fresh":"unavailable",isNative:!1})}))).forEach((c,l)=>{if(c.status==="rejected"){const u=s[n[l].chainId];u&&(u.error=`Unable to refresh token balances on chain ${u.chainId}`)}}),s},Ea=({address:e,supportedChains:t,fetchBalances:n=Kr,additionalTokens:o=[],enabled:r=!0,refreshInterval:a=0,priceEnabled:i=!0})=>{const s=fn(cn),c=xs(),l=e?.toLowerCase(),u=JSON.stringify([...s?.supportedChainIds??t??[]].sort((x,C)=>x-C)),d=JSON.stringify(o);he(()=>c.registerTokens(o),[c,d]);const p=l&&l===s?.embeddedWalletAddress?.toLowerCase()?"embedded":"external",w=`wallet:${JSON.stringify([s?.network,s?.apiUrl,s?.rpcOverrides])}:${l}:${p}:${u}:${c.fetcherId(n)}`,f=ae(async()=>{let x;try{x=await n(l,JSON.parse(u),c.tokens(),s?.rpcOverrides)}catch(T){const I=T instanceof Error?T.message:"Unable to refresh balances";x=Object.fromEntries(JSON.parse(u).map(y=>[y,{chainId:y,tokens:[],error:I}]))}const C=c.entry(w).snapshot().assets,v=JSON.parse(u).map(T=>x[T]??{chainId:T,tokens:[],error:`Unable to refresh balances on chain ${T}`}),A=v.flatMap(T=>T.error?[T.error]:[]);return{assets:v.flatMap(T=>T.error?C.filter(I=>I.chainId===T.chainId).map(I=>({...I,balanceError:T.error,balanceStatus:"stale"})):T.tokens.map(I=>({...I,owner:l,location:p,_fundingWallet:p,_source:"wallet",positionId:`${l}:${p}:${T.chainId}:${ft(I.address).toLowerCase()}`}))),error:A.length?A.join("; "):null}},[c,l,u,n,p,w]),g=Ei(w,f,r&&!!l,a,c),h=JSON.stringify(t&&[...t].sort((x,C)=>x-C)),b=Ae(()=>t?g.assets.filter(x=>t.includes(x.chainId)):g.assets,[g.assets,h]);return he(()=>{i&&r&&l&&g.refresh()},[i]),{...g,assets:b,refreshAssets:c.invalidate,getAssetsByChain:ae(x=>b.filter(C=>C.chainId===x),[b]),getNativeAssets:ae(()=>b.filter(x=>x.isNative),[b])}};function Or(e){const t=fn(cn),n=xs(),o=e.owner??((t?.mode||"7702")!=="7702"?t?.externalWalletAddress:t?.embeddedWalletAddress),r=o?.toLowerCase()!==t?.embeddedWalletAddress?.toLowerCase(),a=e.sourceChains??t?.supportedChainIds??[],i=(e.enabled??!0)&&!t?.isWhitelistGateActive,s=Ae(()=>{const p=[...t?.additionalSourceTokens??[],...e.additionalSourceTokens??[],...e.destination?[e.destination]:[]];for(const w of e.supportedSourceAssets??[])for(const f of a){const g=kt(f)?.supportedTokens?.find(h=>es(h,[w]));g&&p.push({...g,address:g.address,chainId:f,logoURI:g.logo})}return p},[e.destination,JSON.stringify(t?.additionalSourceTokens),JSON.stringify(e.additionalSourceTokens),JSON.stringify(e.supportedSourceAssets),JSON.stringify(a)]),c=Ea({address:o,supportedChains:a,fetchBalances:Kr,additionalTokens:s,enabled:i&&e.includeWalletAssets!==!1,refreshInterval:3e4}),l=gd({address:o,supportedChains:a,enabled:i&&e.includeRollupAssets!==!1&&!!o&&o.toLowerCase()===t?.embeddedWalletAddress?.toLowerCase(),priceEnabled:i,refetchInterval:3e4}),u=Ae(()=>i?[...(e.includeWalletAssets===!1?[]:c.assets).map(p=>({...p,owner:p.owner??o,location:p.location??(r?"external":"embedded"),_source:"wallet"})),...(e.includeRollupAssets===!1||o?.toLowerCase()!==t?.embeddedWalletAddress?.toLowerCase()?[]:l.assets).map(p=>({...p,owner:p.owner??o,location:"rollup",_source:"spice"}))]:[],[i,c.assets,l.assets,e.includeWalletAssets,e.includeRollupAssets,o,r,t?.embeddedWalletAddress]),d=Ae(()=>u.map(p=>({asset:p,...To(p,e.role??"holding",{allowedTokens:t?.allowedTokens,rpcOverrides:t?.rpcOverrides,liquidityVenues:t?.liquidityVenues,isWhitelistGateActive:!!t?.isWhitelistGateActive},e.destination,e.supportedSourceAssets,{requiresEscrow:e.requiresEscrow})})),[u,t?.allowedTokens,t?.rpcOverrides,t?.liquidityVenues,t?.isWhitelistGateActive,e.role,e.destination,e.supportedSourceAssets,e.requiresEscrow]);return{positions:d,assets:Ae(()=>d.filter(p=>p.eligible&&p.asset.balance>0n).map(p=>p.asset),[d]),walletAssets:Ae(()=>u.filter(p=>p._source==="wallet"),[u]),rollupAssets:Ae(()=>u.filter(p=>p._source==="spice"),[u]),loading:c.loading||l.loading,refreshing:c.refreshing||l.refreshing,error:c.error||l.error,refresh:n.invalidate}}function ks(e,t=!0,n){const o=n?.pendingOnly===!0,r=qe.getBaseUrl(),a=`${r}:${e?.toLowerCase()??""}:${o}`,[i,s]=H({scope:a,actions:[],error:null,loading:t&&!!e,updatedAt:null,revision:0}),[c,l]=H(0),u=ae(()=>l(p=>p+1),[]);he(()=>{if(!t||!e){s(h=>h.scope===a&&h.actions.length===0&&!h.error&&!h.loading&&!h.updatedAt&&h.revision===0?h:{scope:a,actions:[],error:null,loading:!1,updatedAt:null,revision:0});return}const p=new AbortController,w=new Cr;w.setBaseUrl(r);let f;s(h=>({scope:a,actions:h.scope===a?h.actions:[],error:h.scope===a?h.error:null,loading:!0,updatedAt:h.scope===a?h.updatedAt:null,revision:h.scope===a?h.revision:0}));const g=async()=>{try{const h=await w.getWalletActions(e,{pendingOnly:o,signal:p.signal});p.signal.aborted||s(b=>({scope:a,actions:h,error:null,loading:!1,updatedAt:new Date().toISOString(),revision:b.scope===a?b.revision+1:1}))}catch(h){if(p.signal.aborted)return;const b=h instanceof we&&h.context.httpStatus===404;s(b&&!o?x=>({scope:a,actions:[],error:null,loading:!1,updatedAt:new Date().toISOString(),revision:x.scope===a?x.revision+1:1}):x=>({scope:a,actions:x.scope===a?x.actions:[],error:"Activity is temporarily unavailable. Refresh to check again.",loading:!1,updatedAt:x.scope===a?x.updatedAt:null,revision:x.scope===a?x.revision:0}))}p.signal.aborted||(f=setTimeout(g,5e3))};return g(),window.addEventListener("online",u),()=>{p.abort(),f&&clearTimeout(f),window.removeEventListener("online",u)}},[r,e,t,a,o,c,u]);const d=i.scope===a;return{actions:t&&e&&d?i.actions:[],error:d?i.error:null,loading:t&&!!e&&(!d||i.loading),updatedAt:d?i.updatedAt:null,revision:d?i.revision:0,refresh:u}}function Di(e){const t=J(0),n=J(null),o=J(e.run);o.current=e.run;const r=J(e.onSkip);r.current=e.onSkip;const a=J(e.onCleanup);a.current=e.onCleanup,he(()=>{if(!e.shouldRun){t.current+=1,n.current?.abort(),r.current?.();return}let i=!1,s=!1;const c=async p=>{if(p&&s)return;n.current?.abort();const w=new AbortController;n.current=w;const f=++t.current;s=!0;try{await o.current({isBackground:p,isCurrent:()=>!i&&t.current===f,signal:w.signal})}finally{s=!1}},l=window.setTimeout(()=>void c(!1),e.delayMs??250),u=()=>{document.hidden||c(!0)},d=e.backgroundIntervalMs?window.setInterval(u,e.backgroundIntervalMs):void 0;return d!==void 0&&document.addEventListener("visibilitychange",u),()=>{i=!0,n.current?.abort(),clearTimeout(l),d!==void 0&&(window.clearInterval(d),document.removeEventListener("visibilitychange",u)),a.current?.()}},[e.shouldRun,e.delayMs,e.backgroundIntervalMs,...e.deps])}function xd(e,t){if(e.length!==t.length)return!1;const n=Fo(e),o=Fo(t);return n.every((r,a)=>r.hash===o[a]?.hash)}const xo=e=>new Promise(t=>setTimeout(t,e)),Am="0xa9059cbb";function vd(e){const t=e.findIndex(r=>Wo(r.chainId));if(t<=0)return[];const n=new Map,o=(r,a,i)=>{if(i<=0n)return;const s=`${r}:${a.toLowerCase()}`,c=n.get(s);c?c.amount+=i:n.set(s,{chainId:r,token:a,amount:i})};for(const r of e.slice(0,t)){const a=Vr(r.chainId);if(!(!a||a===Zt)){for(const i of r.calls)if(i.value&&i.value>0n&&G(i.to,a)&&o(r.chainId,Zt,i.value),!!i.data?.startsWith(Am))try{const s=Zn({abi:ut,data:i.data});if(s.functionName!=="transfer")continue;const[c,l]=s.args;G(c,a)&&o(r.chainId,i.to,l)}catch{}}}return[...n.values()]}function Id(e){const t=Xt(e.token,e.chainId);return[t?.equivalenceGroup,t?.symbol,t?.name]}function kd(e,t){return ud(e,t.chainId,t.token,Id(t))}function Sm(e,t){const n=um(e,t.chainId,t.token,Id(t));return!n||n.receiptDecimals>=n.chainDecimals?t.amount:yo(yo(t.amount,n.chainDecimals,n.receiptDecimals),n.receiptDecimals,n.chainDecimals)}async function Cd(e){const{deposits:t,baseline:n,fetchEntries:o,timeoutMs:r=12e4,intervalMs:a,signal:i,wait:s=xo}=e;if(t.length===0)return!0;const c=new Map(t.map(d=>[d,kd(n,d)])),l=Date.now(),u=l+r;for(;!i?.aborted;){try{const f=await o();if(t.every(g=>kd(f,g)-c.get(g)>=Sm(f,g)))return!0}catch{}const d=Date.now();if(d>=u)return!1;const p=d-l,w=a??(p<5e3?250:p<15e3?1e3:3e3);await s(Math.min(w,u-d))}return!1}function Mi(e,t){const n=Fo(e).map(o=>o.hash);return lr(Zo([{type:"string"},{type:"uint256"},{type:"uint256"},{type:"bytes32[]"}],["ecdsa",0n,t,n]))}async function Ni(e,t,n,o,r){if(o?.aborted)throw new we("ABORT","Execution transaction aborted");const a={raw:Mi(t,n)},i=r?await e.signMessage(a,r):await e.signMessage(a);console.debug("[SpiceFlow:execution]",{phase:"signature-returned",at:Date.now()});const s=typeof i=="string"?i:i.signature;if(!s)throw new we("SIGNATURE_FAILED","Failed to sign intent authorization. The wallet returned an empty signature.");return s}function Em(e){return e.domain==="spicenet"||Wo(e.chainId)}const Ad=0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141n;async function Fm(e,t,n){const o=(u,d)=>new we("SIGNATURE_FAILED","The wallet returned an invalid authorization. Review the action and try again.",{chainId:t.chainId,reason:u,...d?{cause:d}:{}});if(!e||typeof e!="object")throw o("missing-authorization");const r=e;for(const u of["address","contractAddress"])if(r[u]!==void 0&&(typeof r[u]!="string"||r[u].toLowerCase()!==t.address.toLowerCase()))throw o("authorization-target-mismatch");for(const u of["chainId","nonce"]){const d=r[u];if(d!==void 0&&(typeof d=="bigint"?d!==BigInt(t[u]):typeof d!="number"||!Number.isSafeInteger(d)||d!==t[u]))throw o(`authorization-${u}-mismatch`)}const{r:a,s:i,yParity:s}=r;if(typeof a!="string"||typeof i!="string"||!/^0x[0-9a-fA-F]{64}$/.test(a)||!/^0x[0-9a-fA-F]{64}$/.test(i)||s!==0&&s!==1||BigInt(a)===0n||BigInt(a)>=Ad||BigInt(i)===0n||BigInt(i)>Ad/2n)throw o("invalid-signature");const c={...t,r:a,s:i,yParity:s};let l;try{l=await hf({hash:lr(dl(["0x05",gf([ps(t.chainId),t.address,t.nonce===0?"0x":ps(t.nonce)])])),signature:c})}catch(u){throw o("invalid-signature",u)}if(l.toLowerCase()!==n.toLowerCase())throw o("authorization-signer-mismatch");return c}async function Pi(e){const{chainBatches:t,signingAddress:n,actions:o,cache:r,signal:a,onSignatureRequested:i,beforeSign:s}=e;if(a?.aborted)throw new we("ABORT","Execution transaction aborted");if(typeof n!="string"||!Hn(n,{strict:!1})||n.toLowerCase()===ul)throw new we("INVALID_PARAMS","A valid signing address is required.");for(const p of t)if(!Number.isSafeInteger(p.chainId)||p.chainId<=0)throw new we("INVALID_PARAMS","A valid authorization chain is required.");const c=[...new Set(t.filter(p=>!Em(p)).map(p=>p.chainId))].map(p=>{const w=zp(p);if(!Hn(w,{strict:!1})||w.toLowerCase()===ul)throw new we("INVALID_PARAMS","A valid delegation target is required.");return{chainId:p,client:Rt(p),delegateContract:w}}),[l]=await Promise.all([Promise.all(c.map(async({chainId:p,client:w,delegateContract:f})=>{const g=Number(await rf(n,w));if(!Number.isSafeInteger(g)||g<0)throw new we("INVALID_PARAMS","The authorization nonce is invalid.");const h=[n.toLowerCase(),p,f.toLowerCase(),g].join(":");return{chainId:p,delegateContract:f,nonce:g,cacheKey:h,cached:r?.get(h)}})),c.length?o.prepareSigning?.():void 0]);if(await s?.(),a?.aborted)throw new we("ABORT","Execution transaction aborted");const u=[];let d=!1;for(const{chainId:p,delegateContract:w,nonce:f,cacheKey:g,cached:h}of l){if(h===void 0&&d&&await s?.(),a?.aborted)throw new we("ABORT","Execution transaction aborted");const b=h===void 0?await o.signAuthorization({contractAddress:w,chainId:p,nonce:f},i):h;let x;try{x=await Fm(b,{address:w,chainId:p,nonce:f},n)}catch(C){throw r?.delete(g),C}if(a?.aborted)throw new we("ABORT","Execution transaction aborted");d=!0,r?.set(g,x),u.push(x)}return u}const Sd=15;function Tm(e){return e.now-e.lastProgressAt>=e.pollTimeoutMs}function Ed(e,t){return{intentId:e,steps:t.map(n=>({...n,status:"pending"})),overallStatus:"processing"}}function Cs(e,t,n){const o=e.steps.map(s=>({...s})),r=o[t];if(!r)return e;n.status==="success"||n.status==="completed"?(o[t]={...r,status:"success",transactionHash:n.transactionHash},t+1<o.length&&o[t+1].status==="pending"&&(o[t+1]={...o[t+1],status:"processing"})):n.status==="reverted"||n.status==="error"?o[t]={...r,status:"failed",transactionHash:n.transactionHash,error:n.error}:o[t]={...r,status:"processing"};const a=o.some(s=>s.status==="failed"),i=o.every(s=>s.status==="success");return{...e,steps:o,overallStatus:a?"failed":i?"success":"processing"}}function Om({checkStepStatus:e,retryStep:t,maxRetries:n=3,pollingInterval:o=2500,pollTimeoutMs:r=3e5}){const[a,i]=H(null),s=J(null),c=J(null),l=J(!1),u=J(!1),d=J(0),p=J({}),w=J(0),f=ae(v=>{s.current=v,i(v)},[]),g=ae(()=>{c.current&&(clearInterval(c.current),c.current=null)},[]),h=ae(()=>{d.current=0,p.current={},w.current=0,l.current=!0,g(),f(null)},[g,f]),b=ae((v,A)=>{g(),l.current=!1,f(Ed(v,A))},[g,f]),x=ae((v,A)=>{const T=s.current;T&&f(Cs(T,v,A))},[f]),C=ae((v,A)=>{g(),l.current=!1,u.current=!1,d.current=0,p.current={},w.current=Date.now(),f(Ed(v,A));const T=async()=>{if(!(l.current||u.current||!e)){u.current=!0;try{if(Tm({now:Date.now(),lastProgressAt:w.current,pollTimeoutMs:r})){const k=s.current;k&&f({...k,steps:k.steps.map(E=>E.status==="success"?E:{...E,status:"failed",error:"Taking longer than expected. It may still complete - check the explorer, then refresh."}),overallStatus:"failed"}),l.current=!0,g();return}const I=s.current;if(!I)return;const y=I.steps.findIndex(k=>k.status!=="success");if(y===-1){l.current=!0,g();return}if(!(y===0||I.steps[y-1].status==="success"))return;try{const k=I.steps[y].stepId,{data:E}=await e(v,k);if(d.current=0,E.status==="success"&&(w.current=Date.now()),E.status==="reverted"){const U=p.current[k]||0;if(t&&U<n){p.current[k]=U+1;try{await t(v,k)}catch(O){console.error(`[intentStatus] retry failed for step ${k}:`,O)}f(Cs(s.current,y,{status:"executing"}));return}}const F=Cs(s.current,y,E);f(F),F.overallStatus!=="processing"&&(l.current=!0,g())}catch(k){d.current+=1,console.error(`[intentStatus] poll error (${d.current}/${Sd}):`,k),d.current>=Sd&&(f(Cs(s.current,y,{status:"error"})),l.current=!0,g())}}finally{u.current=!1}}};T(),c.current=setInterval(T,o)},[e,t,n,o,r,g,f]);return he(()=>()=>g(),[g]),{intentStatus:a,startStatusPolling:C,beginStatusTracking:b,applyStepUpdate:x,stopStatusPolling:g,clearStatus:h}}function Bm(e,t){return(t||"").trim()||`Transaction ${e}. The transaction was rejected on-chain. This may be due to insufficient balance, price changes, or health factor constraints. Please verify your positions and try again.`}const Rm=350,Dm=2500;async function Fd(e){const{actionId:t,intentIndex:n,intentId:o,stepIndex:r,maxPolls:a=48,maxExecuteAttempts:i=3,pollsBeforeRetry:s=5,maxConsecutiveStatusErrors:c=15,onStatusMessage:l,onStepUpdate:u,signal:d,chainId:p,startWithExecute:w=!0,observeOnly:f=!1,relayer:g=qe,completeOnExecution:h=!1}=e;if(d?.aborted)throw new we("ABORT","Execution transaction aborted");let b="pending",x,C,v=e.initialExecuteAttempts??0,A=0,T,I;const y=new Promise((E,F)=>{T=E,I=()=>F(new we("ABORT","Execution transaction aborted"))}),k=()=>{v++,e.onExecuteAttempt?.(v),g.executeStep(t,n,r,{action:"execute"}).then(E=>{E.transactionHash&&(x=E.transactionHash),E.status==="success"&&T({status:E.status,transactionHash:E.transactionHash})}).catch(E=>{const F=E instanceof Error?E.message:String(E);console.warn(`[execution] executeStep ${r} attempt ${v} error (will poll):`,F)})};d?.addEventListener("abort",I,{once:!0});try{w&&!f&&v<i&&k();for(let E=0;E<a;E++){const F=E===0?Rm:Dm;try{const O=await Promise.race([xo(F).then(()=>{}),y]);if(d?.aborted)throw new we("ABORT","Execution transaction aborted");const M=O??await Promise.race([g.checkStepStatus(o,r,h).then(D=>D.data),y]);if(d?.aborted)throw new we("ABORT","Execution transaction aborted");A=0,b=M.status,C=M.error;const B=M.transactionHash;B&&(x=B),h&&/^0x[0-9a-f]{64}$/i.test(B??"")&&(M.executionStatus==="success"||M.executionStatus==="reverted")&&(b=M.executionStatus,C=void 0),u?.({status:b,transactionHash:x,error:C})}catch(O){if(O instanceof Error&&(O.name==="AbortError"||O instanceof we&&O.code==="ABORT"))throw O;if(A++,A>=c){if(!f)throw O;l?.("Status is temporarily unavailable. The backend continues this action.",x)}continue}if(!f&&b==="created"&&E>=v*s&&v<i&&k(),b==="reverted"||b==="error")throw new we("ON_CHAIN_REVERT",Bm(b,C),{status:b,txHash:x,actionId:t,intentId:o,stepId:r,chainId:p});if(b==="success"||b==="completed")return x;let U="Waiting for solver...";b==="executing"?U="Transaction executing...":b==="submitted"?U="Transaction submitted...":b==="created"&&(U="Waiting for relayer..."),l?.(U,x)}throw new we("POLLING_EXHAUSTED",`Transaction is still processing (status: ${b}). This doesn't mean it failed \u2014 the solver may still complete it. Check your positions in a few minutes, or try refreshing the page.`,{actionId:t,intentId:o,stepId:r,lastStatus:b,pollAttempts:a,maxPolls:a,txHash:x})}finally{d?.removeEventListener("abort",I)}}async function Mm(e){const{actionId:t,intentIndex:n,intentId:o,totalSteps:r,observeOnly:a,delayBeforeSpicenetStepMs:i=5e3,isSpicenetStep:s,beforeStep:c,maxExecuteAttemptsForStep:l,maxPolls:u=48,onStatusMessage:d,onStepUpdate:p,signal:w}=e;let f;for(let g=e.startStep??0;g<r;g++){if(!a&&g>0&&s?.(g)&&i>0&&await xo(i),a||await c?.(g),w?.aborted)throw new we("ABORT","Execution transaction aborted");const h=l?.(g)??3,b=await Fd({actionId:t,intentIndex:n,intentId:o,stepIndex:g,observeOnly:a,startWithExecute:e.startWithExecute,relayer:e.relayer,maxPolls:u,maxExecuteAttempts:h,initialExecuteAttempts:e.executeAttempts?.get(g),onExecuteAttempt:x=>e.executeAttempts?.set(g,x),maxConsecutiveStatusErrors:h===6?5:15,onStatusMessage:d,onStepUpdate:p?x=>p(g,x):void 0,signal:w,completeOnExecution:g===r-1&&s?.(g)===!1});b&&(f=b)}return f}const Nm="0xa9059cbb",Pm=[af,gn,zn];function Td(e){return Pm.some(t=>G(e,t))}function As(e,t){return e.map(n=>{if(n.domain==="spicenet"||Wo(n.chainId)||n.calls.length===0)return n;const o=new Set((n.tokenTransfers??[]).filter(i=>(i.from==="escrow"||i.from==="solver")&&G(i.to,t)).map(i=>i.token.toLowerCase()));if(o.size===0)return n;const r=[...o].some(Te);let a=0;for(const i of n.calls){if(r&&i.value>0n&&i.data==="0x"&&Td(i.to)){a+=1;continue}if(!i.data?.startsWith(Nm))break;try{const s=Zn({abi:ut,data:i.data});if(s.functionName!=="transfer")break;const[c]=s.args;if(!Td(c)||!o.has(i.to.toLowerCase()))break;a+=1}catch{break}}return a===0?n:{...n,calls:n.calls.slice(a)}})}async function Ui(e,t,n){if(!t||!/^0x[0-9a-f]{64}$/i.test(t))throw new Error("The destination receipt is not available yet; reconcile the existing action before retrying.");const o=()=>new we("ABORT","Execution observation retired");if(n?.aborted)throw o();const r=await new Promise((a,i)=>{const s=()=>i(o());n?.addEventListener("abort",s,{once:!0}),Promise.resolve().then(()=>e.waitForTransactionReceipt({hash:t,timeout:12e4,pollingInterval:2e3,confirmations:1})).then(a,i).finally(()=>n?.removeEventListener("abort",s))});if(n?.aborted)throw o();if(r.transactionHash?.toLowerCase()===t.toLowerCase()&&r.status==="reverted")throw new we("ON_CHAIN_REVERT","The destination transaction reverted.",{status:"reverted",txHash:t});if(r.transactionHash?.toLowerCase()!==t.toLowerCase()||r.status!=="success")throw new Error("The destination transaction has not been confirmed successfully. Reconcile the existing action before retrying.");return t}async function Ss(e){let t=e.hash,n=!1;const o=Date.now()+12e4,r=i=>i.transactionHash&&i.transactionHash.toLowerCase()!==t.toLowerCase();let a=await e.client.waitForTransactionReceipt({hash:t,timeout:12e4,pollingInterval:2e3,confirmations:1,onReplaced:i=>{const s=i.transaction,c=i.replacedTransaction;if(!(i.reason==="repriced"&&c?.hash?.toLowerCase()===t.toLowerCase()&&c?.to?.toLowerCase()===e.call.to.toLowerCase()&&(c.input??"0x").toLowerCase()===e.call.data.toLowerCase()&&BigInt(c.value??0)===e.call.value&&c?.from&&c.nonce!==void 0&&/^0x[0-9a-f]{64}$/i.test(s?.hash??"")&&s?.to?.toLowerCase()===e.call.to.toLowerCase()&&(s.input??"0x").toLowerCase()===e.call.data.toLowerCase()&&BigInt(s.value??0)===e.call.value&&s.from?.toLowerCase()===c?.from?.toLowerCase()&&s.nonce===c?.nonce)){n=!0,e.onCancelled?.();return}t=s.hash,e.onRepriced?.(t)}});if(n)throw new Error("Transaction was cancelled or replaced with a different action; retry the unfinished action");if((e.confirmations??1)>1&&!r(a)&&a.status==="success"&&(a=await e.client.waitForTransactionReceipt({hash:t,timeout:Math.max(o-Date.now(),1),pollingInterval:2e3,confirmations:e.confirmations})),r(a))throw new Error("Unexpected transaction receipt; recover the submitted transaction before retrying");return{receipt:a,hash:t}}const Wi=10n,Od=["0x718dE8f0A0DC14D5BC6c560C192F02AE6Af036c7","0x737680c45F88A8b1b389e354dde11419f89BAdd6"],Um=5;function Es(e,t,n){return n?.calls.length&&n.amountOutMinimum>0n?[{chainId:e,token:t,amount:n.amountOutMinimum}]:[]}function Li(e){return e.map(t=>({...t,calls:[...t.calls],tokenTransfers:t.tokenTransfers?[...t.tokenTransfers]:void 0}))}function Fs({token:e,recipient:t,amount:n}){return{to:e,value:0n,data:Bt({abi:ut,functionName:"transfer",args:[t,n]})}}function Wm({chainBatches:e,token:t,amount:n}){const o=Li(e),r=o[o.length-1];if(!r)return o;const a=Uo(r.chainId);return r.calls=[...r.calls,Fs({token:t,recipient:a,amount:n})],o}function Bd({chainBatches:e,user:t,token:n,grossAmount:o,gasFee:r,policy:a}){const i=Li(e),s=i[i.length-1];if(!s)throw new we("INVALID_PARAMS","Action-output escrow funding requires at least one chain batch.");const c=os(o,BigInt(a?.platformBps??Wi)),l=r+c;if(l>=o)throw new we("INVALID_PARAMS","Borrow amount is too small after gas and Spicenet fees.",{grossAmount:o.toString(),gasFee:r.toString(),spicenetFee:c.toString()});const u=o-l,d=Uo(s.chainId),p=[];return r>0n&&p.push(Fs({token:n,recipient:a?.gasRecipient??gn,amount:r})),c>0n&&p.push(Fs({token:n,recipient:a?.platformRecipient??zn,amount:c})),s.calls=[...s.calls,...p,Fs({token:n,recipient:d,amount:u})],s.tokenTransfers=[...s.tokenTransfers??[],...r>0n?[{from:t,to:gn,token:n,amount:r}]:[],...c>0n?[{from:t,to:zn,token:n,amount:c}]:[],{from:t,to:d,token:n,amount:u}],{chainBatches:i,gasFee:r,spicenetFee:c,netEscrowAmount:u,outputCredit:{chainId:s.chainId,token:n,amount:o}}}async function Rd({chainBatches:e,user:t,token:n,grossAmount:o,chainAuthorizations:r}){let a=0n,i,s=Bd({chainBatches:e,user:t,token:n,grossAmount:o,gasFee:a});for(let c=0;c<Um;c+=1){const l=Fo(s.chainBatches),u=await qe.estimateBatchGas({user:t,outputToken:n,chainBatches:s.chainBatches.map((p,w)=>({...p,hash:l[w].hash})),chainAuthorizations:r}),d=u.gasFee;if(d===a&&JSON.stringify(u.policy)===JSON.stringify(i))return s;i=u.policy,a=d,s=Bd({chainBatches:e,user:t,token:n,grossAmount:o,gasFee:a,policy:i})}throw new we("INVALID_PARAMS","Action-output fee estimate did not converge. Please retry.")}function zo(e){return Wo(e.chainId)}const Lm="0xa9059cbb";function Fa(e,t){return`${e}:${ft(t).toLowerCase()}`}function Dd(e,t){if(t===Zt.toLowerCase()){const n=ls(e)?.nativeCurrency;return{symbol:n?.symbol??io(e),decimals:n?.decimals??18}}return Xt(t,e)??{symbol:"tokens",decimals:18}}function qm(e,t){const n=Xt(t,e);return[n?.equivalenceGroup,n?.symbol,n?.name]}async function qi(e){return rs(e)}async function zi(e,t,n){const o=new Map,r=new Map,a=[...n?.walletFundingRequirement?[n.walletFundingRequirement]:[],...n?.walletFundingRequirements??[]];for(const d of a){if(d.amount<0n)throw new Error("Accepted wallet funding must not be negative");const p=Fa(d.chainId,d.token);r.set(p,(r.get(p)??0n)+d.amount),o.set(p,0n)}const i=new Map,s=new Map,c=new Map,l=new Map;for(const d of n?.actionOutputCredits??[]){const p=Fa(d.chainId,d.token);l.set(p,(l.get(p)??0n)+d.amount)}for(const d of e){if(zo(d))continue;for(const f of d.tokenTransfers??[]){if(f.from!=="escrow"&&f.from!=="solver"||!G(f.to,t))continue;const g=BigInt(f.amount??0);if(g<=0n)continue;const h=Fa(d.chainId,f.token);i.set(h,(i.get(h)??0n)+g),f.from==="escrow"&&s.set(h,(s.get(h)??0n)+g)}const p=Vr(d.chainId),w=f=>!!p&&p!==Zt&&G(f,p);for(const f of d.calls){if(f.value&&f.value>0n){const g=Fa(d.chainId,Zt);o.set(g,(o.get(g)??0n)+f.value),w(f.to)&&c.set(g,(c.get(g)??0n)+f.value)}if(f.data?.startsWith(Lm))try{const g=Zn({abi:ut,data:f.data});if(g.functionName!=="transfer")continue;const[h,b]=g.args,x=f.to.toLowerCase(),C=Fa(d.chainId,x);o.set(C,(o.get(C)??0n)+b),w(h)&&c.set(C,(c.get(C)??0n)+b)}catch{}}}let u=null;for(const[d,p]of s){const w=p-(c.get(d)??0n);if(w<=0n)continue;const[f,g]=d.split(":"),h=Number(f),b=Dd(h,g);u??(u=await qi(t));const x=ud(u,h,g,qm(h,g));if(!(x>=w))throw new we("INVALID_PARAMS",`Insufficient Spice ${b.symbol}: needs ${Me(w,b.decimals)}, has ${Me(x,b.decimals)}.`,{chainId:h,token:g,userAddress:t,requiredAmount:w.toString(),balance:x.toString(),balanceSource:"spice"})}for(const[d,p]of o){const[w,f]=d.split(":"),g=Number(w);let h=p-(i.get(d)??0n)-(l.get(d)??0n);const b=r.get(d)??0n;if(b>h&&(h=b),h<=0n)continue;const x=Rt(g),C=f===Zt.toLowerCase()?await x.getBalance({address:t}):await x.readContract({address:f,abi:ut,functionName:"balanceOf",args:[t]});if(C>=h)continue;const v=Dd(g,f);throw new we("INVALID_PARAMS",`Insufficient ${v.symbol} on ${io(g)}: needs ${Me(h,v.decimals)}, has ${Me(C,v.decimals)}.`,{chainId:g,token:f,userAddress:t,requiredAmount:h.toString(),balance:C.toString(),balanceSource:"wallet"})}}function zm({chainBatches:e,tokenAddress:t,tokenTransferAmount:n,useCustomTransfers:o}){if(!(e.some(zo)||!(o?e.some(r=>zo(r)?!1:(r.tokenTransfers??[]).some(a=>a.from==="escrow"&&BigInt(a.amount??0)>0n)):n>0n)))throw new we("INVALID_PARAMS","Payouts funded from Spice balance require a Spicenet funding batch before the destination chain batch. Deposits into Spice balance and gas-only actions do not need one.",{tokenAddress:t,tokenTransferAmount:n.toString(),useCustomTransfers:!!o})}function Hm(e,t,n,o){t.forEach((r,a)=>{if(!r.to||!r.from||!r.token||r.amount===void 0)throw new we("INVALID_TOKEN_TRANSFER",`tokenTransfers[${a}] on chain ${e} is missing required fields (to/from/token/amount). This usually means the embedded wallet wasn't ready when the intent was built \u2014 please retry.`,{chainId:e,transferIndex:a,transfer:{from:r.from,to:r.to,token:r.token,amount:r.amount?.toString()},signingAddress:n,useCustomTransfers:o})})}function Ts({user:e,chainBatches:t,tokenAddress:n,tokenTransferAmount:o,exp:r,signature:a,chainAuthorizations:i,useCustomTransfers:s}){const c=t,l=Fo(c),u=c.filter(d=>!zo(d)).length;if(zm({chainBatches:c,tokenAddress:n,tokenTransferAmount:o,useCustomTransfers:s}),!s&&o>0n&&u>1)throw new we("INVALID_PARAMS","Multiple non-Spicenet batches require explicit tokenTransfers. Pass useCustomTransfers with per-batch transfers instead of relying on the default escrow payout injection.",{nonSpicenetBatchCount:u,tokenAddress:n,tokenTransferAmount:o.toString()});return{user:e,...i?{chainAuthorizations:i}:{},intents:[{mode:"7702",signatureType:"ecdsa",signature:a,nbf:0,exp:r,chainBatches:l.map((d,p)=>{const w=c[p],f=zo(w)?[]:s?w.tokenTransfers??[]:o>0n?[{from:"escrow",to:e,token:n,amount:o}]:[];return Hm(Number(d.chainId),f,e,s),{hash:d.hash,chainId:Number(d.chainId),tokenTransfers:f,calls:d.calls}})}]}}function Md(e,t){const n=t?.depositToEscrow?.gasFundingSource==="action-output"?t.depositToEscrow:null,o=t?.depositToEscrow&&!n?Wm({chainBatches:e,token:t.depositToEscrow.token,amount:t.depositToEscrow.amount}):Li(e);return{actionOutputDeposit:n,batches:o}}let Hi=!1;function Yr(){const{address:e,isConnected:t,isAuthenticated:n,actions:o}=Mo(),r=J(null),a=J(0),i=J(null),{intentStatus:s,startStatusPolling:c,beginStatusTracking:l,applyStepUpdate:u,clearStatus:d}=Om({checkStepStatus:(C,v)=>qe.checkStepStatus(C,v),retryStep:async(C,v)=>{const[A,T]=C.split("/"),I=parseInt(T||"0",10);await qe.executeStep(A,I,v,{action:"execute"})}}),p=ae(()=>{a.current++,i.current=null,d()},[d]),w=J(o),f=J(new Map);w.current=o;const g=ae((C,v,A,T,I)=>Pi({chainBatches:C,signingAddress:v,actions:w.current,cache:f.current,signal:A,onSignatureRequested:T,beforeSign:I}),[]),h=ae((C,v,A,T)=>Ni(w.current,C,v,A,T),[]),b=ae(async(C,v,A,T,I,y)=>{let k={},E={};const F=(O,M,B)=>{B?.actionId&&(k={actionId:B.actionId,intentId:B.intentId,intentIndex:B.intentIndex,totalSteps:B.totalSteps,autoContinue:B.autoContinue,user:y?.userOverride||e}),T?.({step:O,message:M,...E,...k,...B})};if(Hi)throw new we("CONCURRENT_EXECUTION","A execution transaction is already in progress. Please wait.");Hi=!0;const U=a.current;try{if(!e)throw new we("WALLET_DISCONNECTED","No wallet connected. Please log in first.");const O=y?.userOverride||e,M=qe.getBaseUrl(),B=i.current;if(B&&G(B.user,O)&&B.apiUrl===M){if(B.resume)return await B.resume(C,v,A,I,T,y);throw B.error}i.current=null;const D=Ce=>al(Ce.map(Ge=>({...Ge,tokenTransfers:Ge.tokenTransfers??[]})),[]),W=D(C),S=Ce=>new Map(Object.entries(Ce??{}).filter(([Ge,ke])=>Ge!=="signal"&&(typeof ke!="function"||["prepareForSigning","adjustBatchesForEstimate","resolveActionOutputCredits"].includes(Ge))).map(([Ge,ke])=>[Ge,typeof ke=="function"?ke:JSON.stringify(ke,(Qe,pe)=>typeof pe=="bigint"?pe.toString():pe)])),q=S(y),z=await qe.supportsAutomaticContinuation({signal:I}),{actionOutputDeposit:te,batches:Y}=Md(C,y);let j=Y,K=[],X=y?.useCustomTransfers,xe=vd(j),ge=null;const ve=async()=>{(y?.walletFundingRequirement||y?.walletFundingRequirements?.length)&&await zi([],O,{walletFundingRequirement:y?.walletFundingRequirement,walletFundingRequirements:y?.walletFundingRequirements});for(let Ce=0;xe.length>0&&Ce<3;Ce++)try{ge=await qi(O);break}catch(Ge){if(I?.aborted)throw new we("ABORT","Execution transaction aborted");if(Ce===2)throw new we("RELAYER_ERROR","Unable to read your Spice balance. Please try again before submitting the transaction.",{cause:Ge});await xo(1e3)}await y?.validateBeforeSubmit?.(j)};F("building","Preparing your wallet and transaction...");const Se=await g(j,O,I,()=>F("signing-delegation","Confirm the authorization in your wallet..."),ve);if(F("building","Checking transaction fees and balances..."),I?.aborted)throw new we("ABORT","Execution transaction aborted");const ne=BigInt(Math.floor(Date.now()/1e3)+3600);if(te){const Ce=await Rd({chainBatches:C,user:O,token:te.token,grossAmount:te.amount,chainAuthorizations:Se});j=Ce.chainBatches,K=[Ce.outputCredit],X=!0}if(!y?.skipPreSubmitFeeEstimate){let Ce=!1;if(y?.feeExecutionMode==="user-transfer"&&y.adjustBatchesForEstimate&&qe.canValidateActionFees()){const Ge=await qe.validateActionFees(Ts({user:O,chainBatches:j,tokenAddress:v,tokenTransferAmount:A,exp:Number(ne),signature:"0x00",chainAuthorizations:Se,useCustomTransfers:X}),{signal:I});r.current=Ge;const ke=await y.adjustBatchesForEstimate({feeEstimate:Ge,chainBatches:j});Ce=!ke||xd(j,ke),ke&&(j=ke)}for(let Ge=0;!Ce&&Ge<10;Ge++){const ke=y?.feeExecutionMode==="user-transfer"?As(j,O):j,Qe=Ts({user:O,chainBatches:ke,tokenAddress:v,tokenTransferAmount:A,exp:Number(ne),signature:"0x00",chainAuthorizations:Se,useCustomTransfers:X}),pe=await qe.estimateActionFees(Qe,{signal:I});r.current=pe;const et=await y?.adjustBatchesForEstimate?.({feeEstimate:pe,chainBatches:j}),Ct=!!et&&xd(j,et);if(!et||Ct){Ce=!0;break}j=et}if(!Ce)throw new we("INVALID_PARAMS","Fee estimate did not converge. Please retry.")}if(y?.prepareForSigning){const Ce=await y.prepareForSigning(j);if(Ce.length!==j.length||Ce.some((Ge,ke)=>Ge.chainId!==j[ke].chainId||Ge.domain!==j[ke].domain))throw new Error("The funded route changed before signing");j=Ce}y?.resolveActionOutputCredits&&(K=await y.resolveActionOutputCredits()),(!y?.skipUserFundingPreflight||y.walletFundingRequirement||y.walletFundingRequirements?.length)&&await zi(y?.skipUserFundingPreflight?[]:j,O,{actionOutputCredits:K,walletFundingRequirement:y?.walletFundingRequirement,walletFundingRequirements:y?.walletFundingRequirements}),xe=vd(j),xe.length&&!ge&&(ge=await rs(O)),await y?.validateBeforeSubmit?.(j),F("building","Preparing the signing request...");const _=await h(j,ne,I,()=>F("signing-intent","Confirm the transaction in your wallet..."));if(I?.aborted)throw new we("ABORT","Execution transaction aborted");if(M!==qe.getBaseUrl())throw new we("RELAYER_ERROR","The network changed before submission. Review your balances before trying again.");const ue=Ts({user:O,chainBatches:j,tokenAddress:v,tokenTransferAmount:A,exp:Number(ne),signature:_,chainAuthorizations:Se,useCustomTransfers:X});let P=j.length-1;for(;P>=0&&zo(j[P]);)P--;E={totalSteps:j.length},P>=0&&(E={...E,destinationChainId:Number(j[P].chainId),destinationStepIndex:P});const Le=Date.now();if(F("submitting","Submitting to relayer..."),await y?.validateBeforeSubmit?.(j),I?.aborted)throw new we("ABORT","Execution transaction aborted");if(M!==qe.getBaseUrl())throw new we("RELAYER_ERROR","The network changed before submission. Review your balances before trying again.");console.debug("[SpiceFlow:execution]",{phase:"submit-check-complete",at:Date.now(),durationMs:Date.now()-Le});const Be=j.length;let L;try{L=await qe.createAction({...ue,...y?.externalExecution?{externalExecution:y.externalExecution}:{}},{autoContinue:z,idempotencyKey:y?.idempotencyKey,signal:I,onAccepted:Ce=>{const[Ge,ke="0"]=Ce.intentIds[0].split("/"),Qe=parseInt(ke,10);F("executing","Executing on chain...",{actionId:Ge,intentId:`${Ge}/${Qe}`,intentIndex:Qe,totalSteps:Be,autoContinue:Ce.autoContinue===!0})}})}catch(Ce){throw U===a.current&&Ce instanceof we&&Ce.context.submissionStatus==="unknown"&&(i.current={user:O,apiUrl:M,error:Ce}),Ce}const[V,oe]=L.intentIds[0].split("/"),le=parseInt(oe||"0",10),Z=`${V}/${le}`;F("executing","Executing on chain..."),F("executing","Executing on chain...",{actionId:V,intentId:Z,intentIndex:le,totalSteps:j.length,autoContinue:L.autoContinue===!0});const se=new Cr;se.setBaseUrl(M);let We,He=0;const ye=new Map,Oe=async(Ce,Ge=T,ke=!1)=>{const Qe=(pe,et,Ct)=>Ge?.({step:pe,message:et,...Ct});try{if((!ke||!We)&&(We=await Mm({actionId:V,intentIndex:le,intentId:Z,totalSteps:Be,signal:Ce,observeOnly:L.autoContinue===!0,startWithExecute:!ke,startStep:ke?He:0,executeAttempts:ye,onStepUpdate:(pe,et)=>{(et.status==="success"||et.status==="completed")&&(He=Math.max(He,pe+1))},relayer:L.autoContinue||ke?se:qe,...ge?{delayBeforeSpicenetStepMs:0}:{},isSpicenetStep:pe=>zo(j[pe]),beforeStep:async pe=>{if(L.autoContinue===!0||!ge||!zo(j[pe]))return;const et=await Cd({deposits:xe,baseline:ge,fetchEntries:()=>qi(O),signal:Ce});if(Ce?.aborted)throw new we("ABORT","Execution transaction aborted");if(!et)throw new we("POLLING_EXHAUSTED","Your deposit is still waiting for Spice credit. Check this transaction's status before trying again.",{actionId:V,intentId:Z,stepId:pe})},maxExecuteAttemptsForStep:pe=>zo(j[pe])?6:3,maxPolls:L.autoContinue?Number.POSITIVE_INFINITY:180,onStatusMessage:(pe,et)=>{Qe("executing",pe,{txHash:et,actionId:V,intentId:Z,intentIndex:le,totalSteps:Be,autoContinue:L.autoContinue===!0})}})),y?.requireDestinationReceipt){const pe=[...j].reverse().find(et=>!zo(et));if(!pe)throw new Error("The action has no destination transaction to verify.");await Ui(Rt(pe.chainId),We,Ce)}return Qe("success","Transaction successful!",{txHash:We,actionId:V,intentId:Z,intentIndex:le,totalSteps:Be,autoContinue:L.autoContinue===!0}),i.current?.resume===Ne&&(i.current=null),We||V}catch(pe){if(pe instanceof we&&pe.code==="ON_CHAIN_REVERT"&&pe.context.status==="reverted"&&(pe.context.stepId===0||Be===1))throw i.current?.resume===Ne&&(i.current=null),pe;const et=new we(pe instanceof we?pe.code:"RELAYER_STATUS_ERROR",pe instanceof we&&pe.code==="ON_CHAIN_REVERT"?pe.message:`Your action was accepted, but its completion could not be confirmed. Check the original action before trying again. ${pe instanceof Error?pe.message:""}`.trim(),{...pe instanceof we?pe.context:{},submissionStatus:"accepted",actionId:V,intentId:Z,txHash:We,cause:pe});throw U===a.current&&(i.current={user:O,apiUrl:M,error:et,resume:Ne}),et}},Ne=async(Ce,Ge,ke,Qe,pe,et)=>{const Ct=S(et);if(W!==D(Ce)||q.size!==Ct.size||[...q].some(([lt,st])=>Ct.get(lt)!==st)||!G(v,Ge)||A!==ke)throw i.current.error;return Oe(Qe,pe,!0)};return await Oe(I,T)}catch(O){throw console.error("[Execution] Error:",O),F("error",O.message||"Transaction failed",{error:O.message,...O?.context?.submissionStatus==="unknown"?{submissionStatus:"unknown",...typeof O.context.idempotencyKey=="string"&&/^0x[0-9a-f]{64}$/i.test(O.context.idempotencyKey)?{idempotencyKey:O.context.idempotencyKey}:{},...typeof O.context.user=="string"&&/^0x[0-9a-f]{40}$/i.test(O.context.user)?{user:O.context.user}:{}}:{}}),O}finally{Hi=!1}},[e,n,g,h]),x=ae(async(C,v,A,T)=>{if(!e&&(!T?.userOverride||T.signAuthorizationsForEstimate))throw new we("WALLET_DISCONNECTED","No wallet connected. Please log in first.");const I=T?.userOverride||e,y=T?.validateFeeCalls===!0&&T.feeExecutionMode==="user-transfer"&&qe.canValidateActionFees(),{actionOutputDeposit:k,batches:E}=Md(C,T);let F=E;const U=T?.feeExecutionMode==="user-transfer"&&!y?As(F,I):F,O=T?.signAuthorizationsForEstimate?await g(U,I):void 0;let M=T?.useCustomTransfers;k&&(F=(await Rd({chainBatches:C,user:I,token:k.token,grossAmount:k.amount,chainAuthorizations:O})).chainBatches,M=!0);const B=T?.feeExecutionMode==="user-transfer"&&!y?As(F,I):F,D=Ts({user:I,chainBatches:B,tokenAddress:v,tokenTransferAmount:A,exp:Math.floor(Date.now()/1e3)+3600,signature:"0x00",chainAuthorizations:O,useCustomTransfers:M}),W=await(y?qe.validateActionFees(D,{signal:T?.signal}):qe.estimateActionFees(D,{signal:T?.signal,withdrawalSourceBudget:T?.withdrawalSourceBudget}));return r.current=W,W},[e,g]);return{execute:b,estimate:x,lastFeeEstimate:r.current,hasEmbeddedWallet:t&&n,intentStatus:s,startStatusPolling:c,beginStatusTracking:l,applyStepUpdate:u,clearStatus:p}}function on(e,t,n,o){if(t===n)return e;if(t<n)return e*10n**BigInt(n-t);const r=10n**BigInt(t-n);return o==="ceil"?(e+r-1n)/r:e/r}function Rn(e,t){if(!Number.isInteger(t)||t<0||t>255)throw new Error("Invalid token decimals");if(!/^\d+(?:\.\d*)?$/.test(e))throw new Error("Enter a valid amount.");if((e.split(".")[1]?.replace(/0+$/,"")??"").length>t)throw new Error(`Use at most ${t} decimal places for this source.`);return Xn(e,t)}function An(e,t,n){const o=on(e,t,n,"floor");if(on(o,n,t,"floor")!==e)throw new Error(`Use at most ${n} decimal places for this delivered token.`);return o}function Vm(e){return`0x77${e.slice(4)}`}function Zr({userAddress:e,destinationChainId:t,deliveryToken:n,deliveryAmount:o,withdrawalAmount:r,deliveryRecipient:a,deliveryTransfers:i,requestTimestampMs:s,expiresAt:c,metadata:l,requestNonce:u}){if(c!==void 0&&(!Number.isSafeInteger(c)||c<=0))throw new Error("Withdrawal expiry must be a positive Unix timestamp in seconds");const d=i?.length?i:[{token:n,recipient:a,amount:r??o}],p=d.reduce((b,x)=>b+x.amount,0n);if(p<=0n)return null;const w=s??Date.now(),f=BigInt(Math.floor(w/1e3)),g=e??a,h=Vm(lr(Zo([{type:"address"},{type:"address"},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},...u?[{type:"bytes32"}]:[]],[g,n,a,p,BigInt(t),BigInt(w),...u?[u]:[]])));return{chainId:sl,domain:"spicenet",tokenTransfers:[],calls:[{to:Zt,value:0n,data:Bt({abi:ds,functionName:"createWithdrawalRequest",args:[{chainId:`evm:${t}`,idempotenceKey:h,nbf:0n,exp:c===void 0?f+3600n:BigInt(c),metadata:l??"{}",transfers:d.map(b=>({token:wn(b.token).toLowerCase(),to:wn(b.recipient).toLowerCase(),amount:b.amount}))}]})}]}}const Vi=e=>{const[t,n]=H(!1),o=fn(cn),{dark:r,dk:a}=dn();if(he(()=>{n(!0)},[]),!t)return m("div",{className:e.className,children:m("button",{disabled:!0,style:{padding:"12px 24px",fontSize:"16px",backgroundColor:r?a.hoverBg:"#ccc",color:r?a.textSecondary:"white",border:r?`1px solid ${a.buttonBorder}`:"none",borderRadius:"4px",cursor:"not-allowed"},children:"Loading..."})});if(!o){const i='ProviderLogin must be used within SpiceFlowProvider. Please wrap your app with <SpiceFlowProvider provider="privy">.';return m("div",{className:e.className,children:m("button",{onClick:()=>{e.onAuthError&&e.onAuthError(i)},style:{padding:"12px 24px",fontSize:"16px",backgroundColor:r?a.errorBg:"#dc2626",color:r?a.errorText:"white",border:r?`1px solid ${a.errorBorder}`:"none",borderRadius:"4px",cursor:"pointer"},children:"Provider Not Found"})})}return m(Hp,{...e})},Ta=({size:e=20,strokeWidth:t=2,color:n="currentColor",style:o})=>R("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:o,children:[m("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),m("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Oa=(e,t,n,o)=>({width:e,height:e,fill:"none",className:t,"aria-hidden":n??!0,style:o}),Xr=({size:e=16,color:t="currentColor",strokeWidth:n=2,direction:o="down",className:r,style:a,"aria-hidden":i})=>m("svg",{...Oa(e,r,i,{transform:o==="up"?"rotate(180deg)":void 0,transition:"transform 0.3s ease",...a}),viewBox:"0 0 16 16",children:m("path",{d:"M4 6L8 10L12 6",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),Qm=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":a})=>R("svg",{...Oa(e,o,a,r),viewBox:"0 0 24 24",children:[m("circle",{cx:"11",cy:"11",r:"8",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),m("path",{d:"m21 21-4.3-4.3",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})]}),jm=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":a})=>m("svg",{...Oa(e,o,a,r),viewBox:"0 0 24 24",children:m("path",{d:"m6 9 6 6 6-6",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),Gm=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":a})=>m("svg",{...Oa(e,o,a,r),viewBox:"0 0 24 24",children:m("path",{d:"m9 18 6-6-6-6",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),Nd=({size:e=14,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":a})=>m("svg",{...Oa(e,o,a,r),viewBox:"0 0 16 16",children:m("path",{d:"M3 8L6.5 11.5L13 5",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),Pd=({isSuccess:e,type:t,chainName:n,explorerUrl:o,txHash:r,dark:a=!1,successBg:i="#d1fae5",successBorder:s="#6ee7b7",successText:c="#065f46",errorBg:l="#fee2e2",errorBorder:u="#fca5a5",errorText:d="#dc2626",textSecondary:p="#6b7280"})=>R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",borderRadius:"8px",backgroundColor:e?i:l,border:e?`1px solid ${s}`:`1px solid ${u}`},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[m("div",{style:{width:"28px",height:"28px",borderRadius:"50%",backgroundColor:e?"#10b981":"#ef4444",display:"flex",alignItems:"center",justifyContent:"center"},children:e?m("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:m("path",{d:"M11.6667 3.5L5.25 9.91667L2.33333 7",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):m("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:m("path",{d:"M10.5 3.5L3.5 10.5M3.5 3.5L10.5 10.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),R("div",{children:[m("p",{style:{margin:0,fontSize:"14px",fontWeight:600,fontFamily:nt.mono,letterSpacing:"0.5px",color:e?c:d},children:e?`${t.toUpperCase()} CONFIRMED`:`${t.toUpperCase()} FAILED`}),R("p",{style:{margin:"2px 0 0 0",fontSize:"12px",color:p},children:["on ",n]})]})]}),o&&r&&R("a",{href:`${o}/tx/${r}`,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"13px",color:p,textDecoration:"none",whiteSpace:"nowrap"},children:["View on explorer",R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[m("path",{d:"M9 6.5V9.5C9 9.76522 8.89464 10.0196 8.70711 10.2071C8.51957 10.3946 8.26522 10.5 8 10.5H2.5C2.23478 10.5 1.98043 10.3946 1.79289 10.2071C1.60536 10.0196 1.5 9.76522 1.5 9.5V4C1.5 3.73478 1.60536 3.48043 1.79289 3.29289C1.98043 3.10536 2.23478 3 2.5 3H5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m("path",{d:"M7.5 1.5H10.5V4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m("path",{d:"M5 7L10.5 1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})]})]}),Ud=`
3
+ import{jsx as m,jsxs as B,Fragment as Sn}from"react/jsx-runtime";import{a as G,S as xe,g as Ct,b as Rt,c as es,i as ts,d as ns,e as sn,f as zp,E as Hp,C as os,r as nl,R as Vp,s as Ln,h as Qp,j as ze,k as kr,l as jp,m as rs,u as Po,n as as,o as uo,p as dn,P as Gp,q as ss,B as Kt,t as tt,v as wo,w as Ko,x as oi,y as qr,z as Cr,A as Yo,D as ol,F as yo,G as Kp,H as ma,I as ha,J as is,K as ri,L as Yp,M as rl,N as ga,O as zr,Q as Zp,T as Hr,U as ai,V as si,W as Uo,X as cs,Y as Ar,Z as Xp,_ as ls,$ as Jp,a0 as ii,a1 as $p,a2 as _p,a3 as ci,a4 as ef,a5 as al,a6 as tf,a7 as nf,a8 as of}from"./privy-BEsz9CrB.js";import{a9 as e1,ab as t1,ac as n1,ae as o1,ad as r1,aa as a1}from"./privy-BEsz9CrB.js";import Fo,{useContext as gn,useState as H,useMemo as Ee,useEffect as we,useCallback as re,useRef as Z,useId as sl,useLayoutEffect as Wo,memo as bo}from"react";import{applySlippage as li,isNativeToken as Ae,uniV3QuoterV2Abi as rf,uniV3SwapRouterAbi as il,NATIVE_TOKEN_ADDRESS as cl,getTokenByAddress as Yt,areEquivalent as af,getTokensForChain as ir,getEscrowContractAddress as To,getEscrowContract as Vr,ZERO_ADDRESS as zt,normalizeNativeTokenAddress as dt,getChainMeta as ds,getMainnetChains as sf,getTestnetChains as cf,TOKENS as ll,convertAmountBetweenDecimals as xo,hashChainBatches as Oo,isSpicenetChainId as Lo,getAccountNonce as lf,SPICE_COMBINED_FEE_RECIPIENT as df,SPICE_GAS_FEE_RECIPIENT as bn,SPICE_PLATFORM_FEE_RECIPIENT as Qn,hashConditionalExecutionPlan as dl,SPICENET_NATIVE_CHAIN_ID as ul,spicenetAbi as us,getEquivalenceGroup as pl,getEquivalentAddresses as uf,getChainIdsByNetwork as ps,getTokenBySymbol as di,CONDITIONAL_INTENT_UNTIL_CANCELLED as fl,hashConditionalIntentAuthorization as pf,getConditionalIntentId as ff,hashConditionalReadAuthorization as mf,hashConditionalCancellation as hf}from"@spicenet-io/spiceflow-core";import{CONDITIONAL_INTENT_UNTIL_CANCELLED as i1,ZERO_ADDRESS as c1,SPICENET_NATIVE_CHAIN_ID as l1,SPICE_COMBINED_FEE_RECIPIENT as d1,SPICE_GAS_FEE_RECIPIENT as u1,SPICE_PLATFORM_FEE_RECIPIENT as p1,SPICE_SOLVER_ADDRESS as f1,applySlippage as m1,buildUniV3SwapCalls as h1,getChainIdsByNetwork as g1,getEscrowContractAddress as w1,isNativeToken as y1,isSpicenetChainId as b1,normalizeNativeTokenAddress as x1,spicenetAbi as v1,spicenetAbi as I1}from"@spicenet-io/spiceflow-core";import{useAccount as ui,useDisconnect as pi,useConnect as gf,useWalletClient as wf,useSwitchChain as yf}from"wagmi";import{encodeFunctionData as Ot,erc20Abi as pt,parseAbi as po,concatHex as ml,encodePacked as fi,decodeFunctionData as Jn,encodeAbiParameters as Zo,formatUnits as Le,isAddress as Mn,getAddress as xn,zeroAddress as hl,keccak256 as cr,recoverAddress as bf,toRlp as xf,toHex as fs,parseUnits as $n,decodeEventLog as vf,createWalletClient as mi,custom as hi,stringToHex as If,bytesToHex as gl}from"viem";import{readContract as lr,getBalance as ms}from"viem/actions";import{useConnectWallet as wl,usePrivy as yl,useActiveWallet as kf}from"@privy-io/react-auth";import bl,{createPortal as gi}from"react-dom";import"@tanstack/react-query";const Cf="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@100;200;300;400;500;600;700&display=swap",Af="spiceflow-ibm-plex-mono",Sf="spiceflow-preconnect-googleapis",Ef="spiceflow-preconnect-gstatic";function wi(e,t){if(document.getElementById(e))return;const n=t();n.id=e,document.head.appendChild(n)}function Ff(){typeof document>"u"||(wi(Sf,()=>{const e=document.createElement("link");return e.rel="preconnect",e.href="https://fonts.googleapis.com",e}),wi(Ef,()=>{const e=document.createElement("link");return e.rel="preconnect",e.href="https://fonts.gstatic.com",e.crossOrigin="",e}),wi(Af,()=>{const e=document.createElement("link");return e.rel="stylesheet",e.href=Cf,e}))}const xl=po(["function exactInput((address[] tokens,address[] pools,bytes[] extensionDatas,uint256 zeroForOneBitMap,uint128 amountIn,uint128 amountOutMinimum,address recipient,uint256 deadline) params) payable returns (uint256 amountOut)","function exactOutput((address[] tokens,address[] pools,bytes[] extensionDatas,uint256 zeroForOneBitMap,uint128 amountOut,uint128 amountInMaximum,address recipient,uint256 deadline) params) payable returns (uint256 amountIn)"]),vo={name:"Metric",chainIds:[1,56,4663],apiUrl:"https://api.metric.xyz",swapRouter:"0x02201E6f13c41506c7Bb635d7543F98826229aB7"},Tf=[1,56,137,143,999,4326,4663,8453,42161,43114];async function vl(e,t,n,o,r,a){if(Ae(n)||Ae(o)||G(n,o)||!(e.chainIds??vo.chainIds).includes(t))return null;const i=(e.apiUrl??vo.apiUrl).replace(/\/$/,""),s=AbortSignal.timeout(6e3),c=await fetch(`${i}/public/v1/evm/${t}/route`,{method:"POST",headers:{"Content-Type":"application/json"},signal:s,body:JSON.stringify({tokenIn:n,tokenOut:o,tradeType:a,[a==="exact_in"?"amountIn":"amountOut"]:r.toString(),maxRoutes:1})});if(c.status===422)return null;if(!c.ok)throw new xe("VENUE_API_ERROR",`Metric route HTTP ${c.status}`,{chainId:t});const l=await c.json(),d=l.routes[0],u=BigInt(l.amountIn),p=BigInt(l.amountOut);if(l.routes.length!==1||!d||!d.legs.length||d.legs.length>2||l.tradeType!==a||!G(l.tokenIn,n)||!G(l.tokenOut,o)||u<=0n||p<=0n||(a==="exact_in"?u:p)!==r||BigInt(d.amountIn)!==u||BigInt(d.amountOut)!==p)throw new xe("VENUE_API_ERROR","Invalid Metric route",{chainId:t});const w=d.legs.map(C=>C.poolAddress),f=new URL(`${i}/public/v1/evm/${t}/metadata`);f.searchParams.set("addresses",w.join(","));const g=await fetch(f,{signal:s});if(!g.ok)throw new xe("VENUE_API_ERROR",`Metric metadata HTTP ${g.status}`,{chainId:t});const h=await g.json(),b=[n];let v=0n;for(const[C,x]of d.legs.entries()){const k=h.data.find(E=>G(E.poolAddress,x.poolAddress));if(!k||k.priceProviderStatus!=="healthy"||k.pauseLevel!==0)return null;if(typeof x.zeroForOne!="boolean"||!G(b[C],x.tokenIn)||!G(x.tokenIn,x.zeroForOne?k.token0:k.token1)||!G(x.tokenOut,x.zeroForOne?k.token1:k.token0))throw new xe("VENUE_API_ERROR","Invalid Metric pool path",{chainId:t});b.push(x.tokenOut),x.zeroForOne&&(v|=1n<<BigInt(C))}if(!G(b[b.length-1],o))throw new xe("VENUE_API_ERROR","Invalid Metric output token",{chainId:t});return{amountIn:u,amountOut:p,path:{tokens:b,pools:w,extensionDatas:w.map(()=>"0x"),zeroForOneBitMap:v}}}function Il(e={}){const t=e.swapRouter??vo.swapRouter;return{name:e.name??vo.name,chainIds:e.chainIds??vo.chainIds,resolve:async(n,o,r)=>{const a=await vl(e,o,n.tokenIn,n.tokenOut,n.amountIn,"exact_in");if(!a)return null;const i=li(a.amountOut,n.maxSlippage??.02);return{venue:e.name??vo.name,amountOut:a.amountOut,amountOutMinimum:i,calls:[{to:n.tokenIn,value:0n,data:Ot({abi:pt,functionName:"approve",args:[t,n.amountIn]})},{to:t,value:0n,data:Ot({abi:xl,functionName:"exactInput",args:[{...a.path,amountIn:n.amountIn,amountOutMinimum:i,recipient:r,deadline:BigInt(Math.floor(Date.now()/1e3)+1200)}]})}]}}}}function kl(e={}){return{name:e.name??vo.name,chainIds:e.chainIds??vo.chainIds,resolve:async(t,n,o)=>{const r=await vl(e,n,t.tokenIn,t.tokenOut,t.amountOut,"exact_out");if(!r)return null;const a=BigInt(Math.round((t.maxSlippage??.02)*1e4)),i=r.amountIn+(r.amountIn*a+9999n)/10000n;return{venue:e.name??vo.name,amountIn:r.amountIn,amountInMax:i,amountOut:t.amountOut,calls:[{to:e.swapRouter??vo.swapRouter,value:0n,data:Ot({abi:xl,functionName:"exactOutput",args:[{...r.path,amountOut:t.amountOut,amountInMaximum:i,recipient:o,deadline:BigInt(Math.floor(Date.now()/1e3)+1200)}]})}]}}}}const Of={1:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",8453:"0x4200000000000000000000000000000000000006",42161:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",84532:"0x4200000000000000000000000000000000000006"},Cl=po(["function deposit() payable","function withdraw(uint256 wad)"]);function yi(e){return Ct(e)?.wrappedNativeTokenAddress??Of[e]}const bi=(e,t)=>({to:e,value:t,data:Ot({abi:Cl,functionName:"deposit"})}),xi=(e,t)=>({to:e,value:0n,data:Ot({abi:Cl,functionName:"withdraw",args:[t]})});function vi(e,t,n){const o=Ae(t),r=Ae(n);if(!o&&!r)return null;const a=yi(e);return a?{weth:a,wrapIn:o,unwrapOut:r}:null}function Al(e,t,n,o){const r=vi(e,t,n);return!r||o<=0n?null:r.wrapIn&&!r.unwrapOut&&n.toLowerCase()===r.weth.toLowerCase()?[bi(r.weth,o)]:r.unwrapOut&&!r.wrapIn&&t.toLowerCase()===r.weth.toLowerCase()?[xi(r.weth,o)]:null}function Bf(e){return{...e,resolve:async(t,n,o,r)=>{const a=Al(n,t.tokenIn,t.tokenOut,t.amountIn);if(a)return{venue:"native-wrap",amountOut:t.amountIn,amountOutMinimum:t.amountIn,calls:a};const i=await e.resolve(t,n,o,r);if(i)return i;const s=vi(n,t.tokenIn,t.tokenOut);if(!s)return null;const c=await e.resolve({...t,tokenIn:s.wrapIn?s.weth:t.tokenIn,tokenOut:s.unwrapOut?s.weth:t.tokenOut},n,o,r);return c?{...c,calls:[...s.wrapIn?[bi(s.weth,t.amountIn)]:[],...c.calls,...s.unwrapOut?[xi(s.weth,c.amountOutMinimum)]:[]]}:null}}}function Rf(e){return{...e,resolve:async(t,n,o)=>{const r=Al(n,t.tokenIn,t.tokenOut,t.amountOut);if(r)return{venue:"native-wrap",amountIn:t.amountOut,amountInMax:t.amountOut,amountOut:t.amountOut,calls:r};const a=await e.resolve(t,n,o);if(a)return a;const i=vi(n,t.tokenIn,t.tokenOut);if(!i)return null;const s=await e.resolve({...t,tokenIn:i.wrapIn?i.weth:t.tokenIn,tokenOut:i.unwrapOut?i.weth:t.tokenOut},n,o);return s?{...s,calls:[...i.wrapIn?[bi(i.weth,s.amountInMax)]:[],...s.calls,...i.unwrapOut?[xi(i.weth,s.amountOut)]:[]]}:null}}}const Sl=[100,500,3e3,1e4];function hs(e,t,n,o,r){const a=[];for(const i of n){const s=typeof i=="object"&&!Array.isArray(i)?i:void 0,c=s?s.tokens:Array.isArray(i)?i:[i];if(!c.length||c.length>2)throw new Error("A v3 route must have one or two intermediate tokens");const l=[e,...c,t];if(s&&(s.feeTiers.length!==l.length-1||s.feeTiers.some(u=>!u.length)))throw new Error("A v3 route needs fee tiers for every pool");if(new Set(l.map(u=>u.toLowerCase())).size!==l.length)continue;const d=(u,p)=>{if(u===l.length){a.push(r==="in"?p:El(p));return}for(const w of s?.feeTiers[u-1]??o)d(u+1,ml([p,fi(["uint24","address"],[w,l[u]])]))};d(1,l[0])}return[...new Set(a)]}function El(e){const t=e.slice(2),n=[];for(let o=0;o<t.length;){const r=n.length%2===0?40:6;n.push(t.slice(o,o+r)),o+=r}return`0x${n.reverse().join("")}`}const Df=po(["function exactOutputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 amountOut, uint256 amountInMaximum, uint160 sqrtPriceLimitX96) params) payable returns (uint256 amountIn)","function exactOutput((bytes path, address recipient, uint256 amountOut, uint256 amountInMaximum) params) payable returns (uint256 amountIn)"]),Mf=po(["function exactOutputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 deadline, uint256 amountOut, uint256 amountInMaximum, uint160 sqrtPriceLimitX96) params) payable returns (uint256 amountIn)","function exactOutput((bytes path, address recipient, uint256 deadline, uint256 amountOut, uint256 amountInMaximum) params) payable returns (uint256 amountIn)"]),Nf=1800;function Fl(e){const{config:t,route:n,tokenIn:o,tokenOut:r,recipient:a,amountOut:i}=e,s=e.amountInMaximum,c=e.routerHasDeadline?Mf:Df,l=e.routerHasDeadline?{deadline:BigInt(Math.floor(Date.now()/1e3)+Nf)}:{},d=n.path?Ot({abi:c,functionName:"exactOutput",args:[{path:n.path,recipient:a,...l,amountOut:i,amountInMaximum:s}]}):Ot({abi:c,functionName:"exactOutputSingle",args:[{tokenIn:o,tokenOut:r,fee:n.fee,recipient:a,...l,amountOut:i,amountInMaximum:s,sqrtPriceLimitX96:0n}]});return{to:t.swapRouter,value:0n,data:d}}const Pf=po(["function quoteExactInput(bytes path, uint256 amountIn) returns (uint256 amountOut, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)","function quoteExactOutput(bytes path, uint256 amountOut) returns (uint256 amountIn, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)"]);async function wa(e,t,n,o,r){const a=Rt(e),{result:i}=await a.simulateContract({address:t.quoterV2,abi:Pf,functionName:r==="in"?"quoteExactInput":"quoteExactOutput",args:[n,o]}),[s,,,c]=i;if(s<=0n)throw new Error("No liquidity along this path.");return{amount:s,gasEstimate:c}}async function Uf(e){const{tokenIn:t,tokenOut:n,amountIn:o,fee:r,chainId:a,config:i}=e;if(o<=0n)throw new Error("amountIn must be greater than 0");const s=(await Rt(a).simulateContract({address:i.quoterV2,abi:rf,functionName:"quoteExactInputSingle",args:[{tokenIn:t,tokenOut:n,amountIn:o,fee:r,sqrtPriceLimitX96:0n}]})).result;if(s[0]<=0n)throw new Error("No liquidity found for this pair. The pool returned 0 output.");return{amountOut:s[0],sqrtPriceX96After:s[1],gasEstimate:s[3]}}async function Tl(e){const t=e.feeTiers??Sl,n=hs(e.tokenIn,e.tokenOut,e.hubs??[],t,"in"),o=await Promise.allSettled([...t.map(async a=>({...await Uf({...e,fee:a}),fee:a})),...n.map(async a=>{const i=await wa(e.chainId,e.config,a,e.amountIn,"in");return{amountOut:i.amount,sqrtPriceX96After:0n,gasEstimate:i.gasEstimate,fee:0,path:a}})]);let r=null;for(const a of o)a.status==="fulfilled"&&(!r||a.value.amountOut>r.amountOut)&&(r=a.value);if(!r)throw new Error("No liquidity found for this pair on any fee tier.");return r}const Wf=[{inputs:[{components:[{name:"tokenIn",type:"address"},{name:"tokenOut",type:"address"},{name:"amount",type:"uint256"},{name:"fee",type:"uint24"},{name:"sqrtPriceLimitX96",type:"uint160"}],name:"params",type:"tuple"}],name:"quoteExactOutputSingle",outputs:[{name:"amountIn",type:"uint256"},{name:"sqrtPriceX96After",type:"uint160"},{name:"initializedTicksCrossed",type:"uint32"},{name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"}];async function Lf(e){const{tokenIn:t,tokenOut:n,amountOut:o,fee:r,chainId:a,config:i}=e;if(o<=0n)throw new Error("amountOut must be greater than 0");const s=(await Rt(a).simulateContract({address:i.quoterV2,abi:Wf,functionName:"quoteExactOutputSingle",args:[{tokenIn:t,tokenOut:n,amount:o,fee:r,sqrtPriceLimitX96:0n}]})).result;if(s[0]<=0n)throw new Error("No liquidity found for this pair. The pool returned 0 input.");return{amountIn:s[0],sqrtPriceX96After:s[1],gasEstimate:s[3]}}async function Ol(e){const t=e.feeTiers??Sl,n=hs(e.tokenIn,e.tokenOut,e.hubs??[],t,"out"),o=await Promise.allSettled([...t.map(async a=>({...await Lf({...e,fee:a}),fee:a})),...n.map(async a=>{const i=await wa(e.chainId,e.config,a,e.amountOut,"out");return{amountIn:i.amount,sqrtPriceX96After:0n,gasEstimate:i.gasEstimate,fee:0,path:a}})]);let r=null;for(const a of o)a.status==="fulfilled"&&(!r||a.value.amountIn<r.amountIn)&&(r=a.value);if(!r)throw new Error("No liquidity found for this pair on any fee tier.");return r}function qf(e){return e.type==="swap"}const ya=.02,zf=[1,8453,42161,10,137,43114,56],Hf="https://api.1inch.dev/swap/v6.0";function Ii(e,t){return li(e,t)}function Vf(e){const t=e?.baseUrl??Hf;return{name:"1inch",chainIds:e?.chainIds??zf,resolve:async(n,o,r)=>{const a=n.maxSlippage??ya,i=a*100,s=Ae(n.tokenIn)?cl:n.tokenIn,c=Ae(n.tokenOut)?cl:n.tokenOut,l=Ae(n.tokenIn);try{const d=new URL(`${t}/${o}/swap`);d.searchParams.set("src",s),d.searchParams.set("dst",c),d.searchParams.set("amount",n.amountIn.toString()),d.searchParams.set("from",r),d.searchParams.set("slippage",i.toString()),d.searchParams.set("disableEstimate","true"),d.searchParams.set("allowPartialFill","false");const u={Accept:"application/json"};e?.apiKey&&(u.Authorization=`Bearer ${e.apiKey}`);const p=await fetch(d.toString(),{headers:u});if(!p.ok)throw new xe("VENUE_API_ERROR",`[1inchVenue] API returned ${p.status} for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}`,{venue:"1inch",chainId:o,tokenIn:n.tokenIn,tokenOut:n.tokenOut,amountIn:n.amountIn.toString(),cause:`HTTP ${p.status}`});const w=await p.json();if(!w.dstAmount||!w.tx)return console.warn(`[1inchVenue] No route data for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}`),null;const f=BigInt(w.dstAmount);if(f<=0n)return console.warn(`[1inchVenue] Zero output for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}`),null;const g=Ii(f,a),h=[];return w.tx.to&&!l&&h.push({to:n.tokenIn,value:0n,data:Ot({abi:pt,functionName:"approve",args:[w.tx.to,n.amountIn]})}),h.push({to:w.tx.to,value:BigInt(w.tx.value||"0"),data:w.tx.data}),{venue:"1inch",amountOut:f,amountOutMinimum:g,calls:h}}catch(d){if(d instanceof xe)throw d;const u=d instanceof Error?d.message:String(d);throw new xe("VENUE_API_ERROR",`[1inchVenue] Exception for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}: ${u}`,{venue:"1inch",chainId:o,tokenIn:n.tokenIn,tokenOut:n.tokenOut,amountIn:n.amountIn.toString(),cause:u})}}}}const Bl=[4114,5115],ki={name:"Satsuma",swapRouter:"0x565eD3D57fe40f78A46f348C220121AE093c3cF8",quoterV2:"0x428f20dd8926Eabe19653815Ed0BE7D6c36f8425",feeTiers:[3e3]},Rl={name:"Uniswap v3",swapRouter:"0x2626664c2603336E57B271c5C0b26F421741e481",quoterV2:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",chainIds:[8453],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x4200000000000000000000000000000000000006","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]},Dl={name:"Uniswap v3",swapRouter:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",quoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",chainIds:[1],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]},Ml={name:"Uniswap v3",swapRouter:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",quoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",chainIds:[42161],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x82aF49447D8a07e3bd95BD0d56f35241523fBab1","0xaf88d065e77c8cC2239327C5EDb3A432268e5831"]},Qf={name:"Uniswap v3",swapRouter:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",quoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",chainIds:[137],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270","0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"]},jf={name:"Uniswap v3",swapRouter:"0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2",quoterV2:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",chainIds:[56],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c","0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"]},Gf={name:"Uniswap v3",swapRouter:"0xfe31f71c1b106eac32f1a19239c9a9a72ddfb900",quoterV2:"0x661e93cca42afacb172121ef892830ca3b70f08d",chainIds:[143],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A","0x754704Bc059F8C67012fEd69BC8A327a5aafb603"]},Nl={name:"Uniswap v3",swapRouter:"0xcaf681a66d020601342297493863e78c959e5cb2",quoterV2:"0x33e885ed0ec9bf04ecfb19341582aadcb4c8a9e7",chainIds:[4663],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x0bd7d308f8e1639fab988df18a8011f41eacad73","0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"]},Pl={name:"SushiSwap",swapRouter:"0x1e406484F1F204b23cE84B9901C0171a738fd406",quoterV2:"0x3E290e5E01818002A0b672148BdC7514D861C7B3",chainIds:[4663],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x0bd7d308f8e1639fab988df18a8011f41eacad73","0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"],routerHasDeadline:!0},Ul=po(["function exactInput((bytes path, address recipient, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]),Wl=po(["function exactInputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum, uint160 sqrtPriceLimitX96) params) payable returns (uint256 amountOut)","function exactInput((bytes path, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]),Kf=po(["function exactInput((bytes path, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]),Yf=po(["function exactOutput((bytes path, address recipient, uint256 deadline, uint256 amountOut, uint256 amountInMaximum) params) payable returns (uint256 amountIn)"]),Ci=1800,Ll=[1,50,100,200,2e3],ba={name:"Aerodrome",swapRouter:"0xcbBb8035cAc7D4B3Ca7aBb74cF7BdF900215Ce0D",quoterV2:"0x3d4C22254F86f64B7eC90ab8F7aeC1FBFD271c6C",chainIds:[8453],hubCurrencies:["0x4200000000000000000000000000000000000006","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]};function xa(e){const t=e.name??"Aerodrome",n=e.chainIds??[8453],o=e.tickSpacings??Ll;return{name:t,chainIds:n,resolve:async(r,a,i)=>{if(Ae(r.tokenIn)||Ae(r.tokenOut))return null;const s=r.maxSlippage??ya,c=[...o.map(h=>fi(["address","uint24","address"],[r.tokenIn,h,r.tokenOut])),...hs(r.tokenIn,r.tokenOut,e.hubCurrencies??[],o,"in")],l={quoterV2:e.quoterV2},d=await Promise.allSettled(c.map(async h=>({path:h,amountOut:(await wa(a,l,h,r.amountIn,"in")).amount})));let u=null;for(const h of d)h.status==="fulfilled"&&(!u||h.value.amountOut>u.amountOut)&&(u=h.value);if(!u)return console.warn(`[AerodromeVenue] No viable route for ${r.tokenIn} \u2192 ${r.tokenOut} on chain ${a}.`),null;const p=Ii(u.amountOut,s),w=e.deadline??BigInt(Math.floor(Date.now()/1e3)+Ci),f=Ot({abi:Kf,functionName:"exactInput",args:[{path:u.path,recipient:i,deadline:w,amountIn:r.amountIn,amountOutMinimum:p}]}),g=[{to:r.tokenIn,value:0n,data:Ot({abi:pt,functionName:"approve",args:[e.swapRouter,r.amountIn]})},{to:e.swapRouter,value:0n,data:f}];return{venue:t,amountOut:u.amountOut,amountOutMinimum:p,calls:g}}}}function ql(e){const t=e.name??"Aerodrome",n=e.chainIds??[8453],o=e.tickSpacings??Ll;return{name:t,chainIds:n,resolve:async(r,a,i)=>{if(Ae(r.tokenIn)||Ae(r.tokenOut))return null;const s=r.maxSlippage??ya,c=[...o.map(g=>fi(["address","uint24","address"],[r.tokenOut,g,r.tokenIn])),...hs(r.tokenIn,r.tokenOut,e.hubCurrencies??[],o,"out")],l={quoterV2:e.quoterV2},d=await Promise.allSettled(c.map(async g=>({path:g,amountIn:(await wa(a,l,g,r.amountOut,"out")).amount})));let u=null;for(const g of d)g.status==="fulfilled"&&(!u||g.value.amountIn<u.amountIn)&&(u=g.value);if(!u)return console.warn(`[AerodromeExactOutputVenue] No viable route for ${r.tokenIn} \u2192 ${r.tokenOut} on chain ${a}.`),null;const p=BigInt(Math.round(s*1e4)),w=u.amountIn+u.amountIn*p/10000n,f=e.deadline??BigInt(Math.floor(Date.now()/1e3)+Ci);return{venue:t,amountIn:u.amountIn,amountInMax:w,amountOut:r.amountOut,calls:[{to:e.swapRouter,value:0n,data:Ot({abi:Yf,functionName:"exactOutput",args:[{path:u.path,recipient:i,deadline:f,amountOut:r.amountOut,amountInMaximum:w}]})}]}}}}function va(e){const t=e.name??"Uniswap v3",n=e.chainIds??Bl;return{name:t,chainIds:n,resolve:async(o,r,a,i)=>{if(Ae(o.tokenIn)||Ae(o.tokenOut))return null;const s=o.maxSlippage??ya;let c;try{let f;if(i){if(i.venue!==t)return null;const g=i.calls.find(b=>b.to.toLowerCase()===e.swapRouter.toLowerCase());if(!g)return null;const h=Jn({abi:e.routerHasDeadline?Wl:[...Ul,...il],data:g.data});if(h.functionName==="exactInput"){const{path:b}=h.args[0];if(b.slice(0,42).toLowerCase()!==o.tokenIn.toLowerCase()||`0x${b.slice(-40)}`.toLowerCase()!==o.tokenOut.toLowerCase())return null;f={path:b,fee:0}}else if(h.functionName==="exactInputSingle"){const{tokenIn:b,tokenOut:v,fee:C}=h.args[0];if(b.toLowerCase()!==o.tokenIn.toLowerCase()||v.toLowerCase()!==o.tokenOut.toLowerCase())return null;f={fee:C}}else return null}c=f?.path?{...f,amountOut:(await wa(r,e,f.path,o.amountIn,"in")).amount}:await Tl({tokenIn:o.tokenIn,tokenOut:o.tokenOut,amountIn:o.amountIn,chainId:r,config:{swapRouter:e.swapRouter,quoterV2:e.quoterV2},feeTiers:f?[f.fee]:e.feeTiers,hubs:f?[]:[...e.hubCurrencies??[],...e.hubPaths??[]]})}catch{return console.warn(`[UniV3Venue] No viable route for ${o.tokenIn} \u2192 ${o.tokenOut} on chain ${r}.`),null}const l=Ii(c.amountOut,s),d=e.routerHasDeadline?{deadline:BigInt(Math.floor(Date.now()/1e3)+Ci)}:{},u=e.routerHasDeadline?Wl:c.path?Ul:il,p=c.path?Ot({abi:u,functionName:"exactInput",args:[{path:c.path,recipient:a,...d,amountIn:o.amountIn,amountOutMinimum:l}]}):Ot({abi:u,functionName:"exactInputSingle",args:[{tokenIn:o.tokenIn,tokenOut:o.tokenOut,fee:c.fee,recipient:a,...d,amountIn:o.amountIn,amountOutMinimum:l,sqrtPriceLimitX96:0n}]}),w=[{to:o.tokenIn,value:0n,data:Ot({abi:pt,functionName:"approve",args:[e.swapRouter,o.amountIn]})},{to:e.swapRouter,value:0n,data:p}];return{venue:t,amountOut:c.amountOut,amountOutMinimum:l,calls:w}}}}function Ai(e){const t=e.name??"Uniswap v3",n=e.chainIds??Bl;return{name:t,chainIds:n,resolve:async(o,r,a)=>{if(Ae(o.tokenIn)||Ae(o.tokenOut))return null;const i=o.maxSlippage??ya;let s;try{s=await Ol({tokenIn:o.tokenIn,tokenOut:o.tokenOut,amountOut:o.amountOut,chainId:r,config:{swapRouter:e.swapRouter,quoterV2:e.quoterV2},feeTiers:e.feeTiers,hubs:[...e.hubCurrencies??[],...e.hubPaths??[]]})}catch{return null}const c=BigInt(Math.round(i*1e4)),l=s.amountIn+s.amountIn*c/10000n;return{venue:t,amountIn:s.amountIn,amountInMax:l,amountOut:o.amountOut,calls:[Fl({config:{swapRouter:e.swapRouter,quoterV2:e.quoterV2},routerHasDeadline:e.routerHasDeadline,route:s,tokenIn:o.tokenIn,tokenOut:o.tokenOut,recipient:a,amountOut:o.amountOut,amountInMaximum:l})]}}}}function zl(e){const t=[];e?.customVenues&&t.push(...e.customVenues),e?.satsuma&&t.push(va(e.satsuma)),e?.aerodrome!==!1&&t.push(xa(e?.aerodrome??ba)),t.push(Vf(e?.oneInch));const n=t.map(Bf);function o(i){return n.find(s=>s.chainIds.includes(i))}async function r(i,s,c,l){const d=n.filter(f=>f.chainIds.includes(s));if(d.length===0)throw new xe("NO_VENUE_FOR_CHAIN",`No liquidity venue configured for chain ${s}. Cannot resolve swap ${i.tokenIn} \u2192 ${i.tokenOut}.`,{chainId:s,tokenIn:i.tokenIn,tokenOut:i.tokenOut,amountIn:i.amountIn.toString()});const u=await Promise.allSettled(d.map(f=>f.resolve(i,s,c,l)));let p=null;for(const f of u)l&&f.status==="fulfilled"&&f.value&&(f.value.venue!==l.venue||f.value.calls.length!==l.calls.length||f.value.calls.some((g,h)=>g.to.toLowerCase()!==l.calls[h].to.toLowerCase()||g.data.slice(0,10)!==l.calls[h].data.slice(0,10)))||f.status==="fulfilled"&&f.value&&(!p||f.value.amountOut>p.amountOut)&&(p=f.value);if(p)return p;const w=u.find(f=>f.status==="rejected");if(w)throw w.reason;return null}async function a(i,s,c){const l=[],d=[];for(const u of i){if(!qf(u)){l.push(u);continue}const p=await r(u,s,c);if(!p)throw new xe("NO_LIQUIDITY",`No venue returned a quote for ${u.tokenIn} \u2192 ${u.tokenOut} on chain ${s}.`,{chainId:s,tokenIn:u.tokenIn,tokenOut:u.tokenOut,amountIn:u.amountIn.toString()});l.push(...p.calls),d.push(p)}return{calls:l,resolvedSwaps:d}}return{resolveSwapIntents:a,resolveSwap:r,getVenueForChain:o,venues:t}}const qo="0x0000000000000000000000000000000000000000",Si=[{fee:100,tickSpacing:1},{fee:500,tickSpacing:10},{fee:3e3,tickSpacing:60},{fee:1e4,tickSpacing:200}],Hl=qo,Vl=.02,Zf=1800,Ql={name:"Uniswap v4",quoter:"0x0d5e0f971ed27fbff6c2837bf31316121532048d",universalRouter:"0x6ff5693b99212da76ad316178a184ab56d299b43",permit2:"0x000000000022d473030f116ddee9f6b43ac78ba3",chainIds:[8453],hubCurrencies:["0x4200000000000000000000000000000000000006",qo,"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]},jl={name:"Uniswap v4",quoter:"0x8dc178efb8111bb0973dd9d722ebeff267c98f94",universalRouter:"0x8876789976decbfcbbbe364623c63652db8c0904",permit2:"0x000000000022d473030f116ddee9f6b43ac78ba3",routerHasHopPrice:!0,chainIds:[4663],hubCurrencies:["0x0bd7d308f8e1639fab988df18a8011f41eacad73",qo,"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"]},Gl=po(["struct PoolKey { address currency0; address currency1; uint24 fee; int24 tickSpacing; address hooks; }","struct PathKey { address intermediateCurrency; uint24 fee; int24 tickSpacing; address hooks; bytes hookData; }","struct QuoteExactSingleParams { PoolKey poolKey; bool zeroForOne; uint128 exactAmount; bytes hookData; }","struct QuoteExactParams { address exactCurrency; PathKey[] path; uint128 exactAmount; }","function quoteExactInputSingle(QuoteExactSingleParams params) returns (uint256 amountOut, uint256 gasEstimate)","function quoteExactInput(QuoteExactParams params) returns (uint256 amountOut, uint256 gasEstimate)","function quoteExactOutputSingle(QuoteExactSingleParams params) returns (uint256 amountIn, uint256 gasEstimate)","function quoteExactOutput(QuoteExactParams params) returns (uint256 amountIn, uint256 gasEstimate)"]),Xf=po(["function approve(address token, address spender, uint160 amount, uint48 expiration)"]),Jf=po(["function execute(bytes commands, bytes[] inputs, uint256 deadline) payable"]),Kl="0x10",$f="04",_f="06",em="07",tm="08",nm="09",gs="0c",ws="0e",om=[{name:"currency0",type:"address"},{name:"currency1",type:"address"},{name:"fee",type:"uint24"},{name:"tickSpacing",type:"int24"},{name:"hooks",type:"address"}],rm=[{name:"intermediateCurrency",type:"address"},{name:"fee",type:"uint24"},{name:"tickSpacing",type:"int24"},{name:"hooks",type:"address"},{name:"hookData",type:"bytes"}],Xo=(e,t)=>e.toLowerCase()===t.toLowerCase();function ys(e){return Ae(e)?qo:e}function am(e,t){return e.toLowerCase()<t.toLowerCase()?[e,t]:[t,e]}function Yl(e,t,n,o,r){const a=[],[i,s]=am(e,t);for(const{fee:l,tickSpacing:d}of Si)a.push({kind:"single",poolKey:{currency0:i,currency1:s,fee:l,tickSpacing:d,hooks:Hl},zeroForOne:Xo(e,i)});const c=(l,d)=>!!r&&(Xo(l,qo)&&Xo(d,r)||Xo(l,r)&&Xo(d,qo));for(const l of n)if(!(Xo(l,e)||Xo(l,t))&&!(c(l,e)||c(l,t)))for(const d of Si)for(const u of Si){const p=(w,f)=>({intermediateCurrency:w,fee:f.fee,tickSpacing:f.tickSpacing,hooks:Hl,hookData:"0x"});a.push({kind:"multi",path:o==="in"?[p(l,d),p(t,u)]:[p(e,d),p(l,u)]})}return a}async function Zl(e,t,n,o,r,a){const i=Rt(e),s=(await Promise.allSettled(n.map(async c=>{const{result:l}=c.kind==="single"?await i.simulateContract({address:t.quoter,abi:Gl,functionName:a==="in"?"quoteExactInputSingle":"quoteExactOutputSingle",args:[{poolKey:c.poolKey,zeroForOne:c.zeroForOne,exactAmount:r,hookData:"0x"}]}):await i.simulateContract({address:t.quoter,abi:Gl,functionName:a==="in"?"quoteExactInput":"quoteExactOutput",args:[{exactCurrency:o,path:c.path,exactAmount:r}]}),d=l[0];if(d<=0n)throw new Error("zero quote");return{candidate:c,amount:d}}))).filter(c=>c.status==="fulfilled").map(c=>c.value);return s.length===0?null:(s.sort((c,l)=>c.amount<l.amount?-1:c.amount>l.amount?1:0),a==="in"?s[s.length-1]:s[0])}function Xl(e){const{candidate:t,direction:n,currencyIn:o,currencyOut:r,recipient:a,exactAmount:i,limitAmount:s,deadline:c,routerHasHopPrice:l,sweepNativeTo:d}=e;let u,p;t.kind==="single"?(u=n==="in"?`0x${_f}${gs}${ws}`:`0x${tm}${gs}${ws}`,p=Zo([{type:"tuple",components:[{name:"poolKey",type:"tuple",components:om},{name:"zeroForOne",type:"bool"},{name:n==="in"?"amountIn":"amountOut",type:"uint128"},{name:n==="in"?"amountOutMinimum":"amountInMaximum",type:"uint128"},...l?[{name:"minHopPriceX36",type:"uint256"}]:[],{name:"hookData",type:"bytes"}]}],[{poolKey:t.poolKey,zeroForOne:t.zeroForOne,[n==="in"?"amountIn":"amountOut"]:i,[n==="in"?"amountOutMinimum":"amountInMaximum"]:s,...l?{minHopPriceX36:0n}:{},hookData:"0x"}])):(u=n==="in"?`0x${em}${gs}${ws}`:`0x${nm}${gs}${ws}`,p=Zo([{type:"tuple",components:[{name:n==="in"?"currencyIn":"currencyOut",type:"address"},{name:"path",type:"tuple[]",components:rm},...l?[{name:"minHopPriceX36",type:"uint256[]"}]:[],{name:n==="in"?"amountIn":"amountOut",type:"uint128"},{name:n==="in"?"amountOutMinimum":"amountInMaximum",type:"uint128"}]}],[{[n==="in"?"currencyIn":"currencyOut"]:n==="in"?o:r,path:t.path,...l?{minHopPriceX36:[]}:{},[n==="in"?"amountIn":"amountOut"]:i,[n==="in"?"amountOutMinimum":"amountInMaximum"]:s}]));const w=Zo([{type:"address"},{type:"uint256"}],[o,n==="in"?i:s]),f=Zo([{type:"address"},{type:"address"},{type:"uint256"}],[r,a,0n]),g=Zo([{type:"bytes"},{type:"bytes[]"}],[u,[p,w,f]]),h=d?`${Kl}${$f}`:Kl,b=d?[g,Zo([{type:"address"},{type:"address"},{type:"uint256"}],[qo,d,0n])]:[g];return Ot({abi:Jf,functionName:"execute",args:[h,b,c]})}function Jl(){return BigInt(Math.floor(Date.now()/1e3)+Zf)}function $l(e,t,n,o){return{to:e.permit2,value:0n,data:Ot({abi:Xf,functionName:"approve",args:[t,e.universalRouter,n,Number(o)]})}}function _l(e){const t=e.name??"Uniswap v4",n=e.v3?va({...e.v3,chainIds:e.chainIds}):null;return{name:t,chainIds:e.chainIds,resolve:async(o,r,a)=>{const i=o.maxSlippage??Vl,s=ys(o.tokenIn),c=ys(o.tokenOut),l=Ae(o.tokenIn),d=e.hubCurrencies??[qo];let u=null;if(!Xo(s,c)&&o.amountIn>0n){const p=await Zl(r,e,Yl(s,c,d,"in",yi(r)),s,o.amountIn,"in").catch(()=>null);if(p){const w=li(p.amount,i),f=Jl(),g=[];l||(g.push({to:o.tokenIn,value:0n,data:Ot({abi:pt,functionName:"approve",args:[e.permit2,o.amountIn]})}),g.push($l(e,o.tokenIn,o.amountIn,f))),g.push({to:e.universalRouter,value:l?o.amountIn:0n,data:Xl({candidate:p.candidate,direction:"in",currencyIn:s,currencyOut:c,recipient:a,exactAmount:o.amountIn,limitAmount:w,deadline:f,routerHasHopPrice:e.routerHasHopPrice})}),u={venue:t,amountOut:p.amount,amountOutMinimum:w,calls:g}}}return!u&&n?n.resolve(o,r,a):u}}}function ed(e){const t=e.name??"Uniswap v4";return{name:t,chainIds:e.chainIds,resolve:async(n,o,r)=>{const a=Ae(n.tokenIn),i=ys(n.tokenIn),s=ys(n.tokenOut);if(Xo(i,s)||n.amountOut<=0n)return null;const c=n.maxSlippage??Vl,l=e.hubCurrencies??[qo],d=await Zl(o,e,Yl(i,s,l,"out",yi(o)),s,n.amountOut,"out").catch(()=>null);if(!d)return null;const u=BigInt(Math.round(c*1e4)),p=d.amount+d.amount*u/10000n,w=Jl();return{venue:t,amountIn:d.amount,amountInMax:p,amountOut:n.amountOut,calls:[...a?[]:[$l(e,n.tokenIn,p,w)],{to:e.universalRouter,value:a?p:0n,data:Xl({candidate:d.candidate,direction:"out",currencyIn:i,currencyOut:s,recipient:r,exactAmount:n.amountOut,limitAmount:p,deadline:w,routerHasHopPrice:e.routerHasHopPrice,sweepNativeTo:a?r:void 0})}]}}}}const bs=[{...ki,protocol:"uniswap-v3",chainId:4114},{...ki,protocol:"uniswap-v3",chainId:5115},{...Rl,protocol:"uniswap-v3",chainId:8453},{...Dl,protocol:"uniswap-v3",chainId:1},{...Ml,protocol:"uniswap-v3",chainId:42161},{...Qf,protocol:"uniswap-v3",chainId:137},{...jf,protocol:"uniswap-v3",chainId:56},{...Gf,protocol:"uniswap-v3",chainId:143},{...Nl,protocol:"uniswap-v3",chainId:4663},{...Pl,protocol:"uniswap-v3",chainId:4663},{...Ql,protocol:"uniswap-v4",chainId:8453},{...jl,protocol:"uniswap-v4",chainId:4663},{...ba,protocol:"aerodrome-slipstream",chainId:8453},...vo.chainIds.map(e=>({protocol:"metric",chainId:e}))];function Sr(e){const t=e?.metricApiUrl?[...bs.filter(a=>a.protocol!=="metric"),...Tf.map(a=>({protocol:"metric",chainId:a}))]:bs,n=e?.includeDefaults===!1?e.venues??[]:[...t,...e?.venues??[]],o=[],r=[];for(const a of n){const i=[a.chainId];switch(a.protocol){case"metric":{const s={...a,apiUrl:a.apiUrl??e?.metricApiUrl,chainIds:i};o.push(Il(s)),r.push(kl(s));break}case"uniswap-v3":{const s={...a,chainIds:i};o.push(va(s)),r.push(Ai(s));break}case"uniswap-v4":{const s={...a,chainIds:i};o.push(_l(s)),r.push(ed(s));break}case"aerodrome-slipstream":{const s={...a,chainIds:i};o.push(xa(s)),r.push(ql(s));break}default:{const s=a;throw new xe("INVALID_PARAMS",`Unsupported liquidity venue protocol: ${s.protocol}`,{protocol:s.protocol})}}}return{input:o,output:r}}const Ei=new Set(["WBTC","CBTC"]),td=new Set(["btc","wbtc","wcbtc","cbtc"]);function nd(e,t){return!e||!t?!1:e===t?!0:Ei.has(e)&&Ei.has(t)}function _n(e){const[t,n,o]=e.split(":");if(t!=="evm"||!n||!o)return null;const r=Number(n);if(!Number.isFinite(r))return null;const a=o.startsWith("0x")?o.toLowerCase():`0x${o.toLowerCase()}`;return{chainId:r,address:a}}function xs(e){return(e??"").trim().replace(/^test\s+/i,"").replace(/^spice/i,"").toLowerCase().replace(/[^a-z0-9]/g,"")}function sm(e){return new Set([e.receiptTokenName,e.displaySymbol,e.symbol,e.displayName,e.name].map(xs).filter(Boolean))}function im(e,t){const n=sm(e),o=[t.symbol,t.name,t.equivalenceGroup].map(xs);if(o.some(i=>i&&n.has(i)))return!0;const r=[...n].some(i=>td.has(i)),a=o.some(i=>td.has(i))||Ei.has(t.equivalenceGroup??"");return r&&a}function od(e,t,n){const o=new Set(t.map(xs).filter(Boolean)),r=a=>{if(n&&G(a.address,n))return 0;const i=[a.symbol,a.name,a.equivalenceGroup].map(xs).findIndex(s=>s&&o.has(s));return i===-1?4:i+1};return[...e].sort((a,i)=>{const s=r(a)-r(i);return s!==0?s:a.address.toLowerCase().localeCompare(i.address.toLowerCase())})}function Qr(e,t){const n=e.chainTokens?Object.keys(e.chainTokens):[],o=[];for(const r of n){const a=_n(r);if(!a||a.chainId!==t)continue;const i=a.address,s=Ae(i)?Ct(t)?.nativeCurrency:void 0,c=Yt(i,t)??(s?{...s}:void 0);c&&(!Fi(e,i,t)&&!(e.isUniversal&&im(e,c))||o.some(l=>G(l,i))||o.push(i))}return od(o.map(r=>{const a=Yt(r,t);return{address:r,symbol:a?.symbol,name:a?.name,equivalenceGroup:a?.equivalenceGroup}}),[e.receiptTokenName,e.displaySymbol,e.symbol,e.displayName,e.name],e.chainId===t&&!e.isUniversal?e.address:void 0).map(r=>r.address)}function Fi(e,t,n){return e.chainId===n&&G(e.address,t)?!0:ka(e.address,e.chainId,t,n)}async function rd(e,t){const n=Rt(e),o=To(e);return Ae(t)?n.getBalance({address:o}):await n.readContract({address:t,abi:pt,functionName:"balanceOf",args:[o]})}function Ti(e,t,n){const o=ir(n),r=o.find(i=>G(i.address,e));if(r&&(t===n||!Ae(e)))return r;const a=Yt(e,t);if(a)return od(o.filter(i=>nd(i.equivalenceGroup,a.equivalenceGroup)),[a.symbol,a.name,a.equivalenceGroup])[0]}function Ia(e){return e.equivalenceGroup==="USDC"&&e.symbol.toUpperCase()!=="USDT"}function Er(e){const t=Vr(e);if(!t||t===zt)return;const n=ir(e).filter(Ia);return n.find(o=>o.symbol.toUpperCase()==="USDC")??n[0]}function Oi(e,t){if(e.chainId===t)return null;const n=Vr(e.chainId),o=Vr(t);if(!n||n===zt||!o||o===zt)return null;const r=!e.isNative&&!Ae(e.address)?Yt(e.address,e.chainId):void 0,a=r&&Ia(r)?Ti(e.address,e.chainId,t):void 0,i=a?r:Er(e.chainId),s=a??Er(t);if(!i||!s)return null;const c=l=>({address:l.address,symbol:l.symbol,decimals:l.decimals,chainId:l.chainId});return{source:c(i),destination:c(s)}}async function ad(e,t,n){const o=ir(e.chainId).filter(Ia),r=[o.find(s=>G(s.address,t.address)),e,...o].filter((s,c,l)=>!!s&&l.findIndex(d=>d&&G(d.address,s.address))===c);let a;for(const s of r){let c;try{c=await rd(e.chainId,s.address)}catch{continue}if(c<=0n)continue;const l={...s,address:s.address};let d;try{d=await n(l)}catch{d=null}if(G(l.address,e.address)&&(a=d),d&&d.amount<=c)return{token:l,...d}}const i=a===void 0?await n(e):a;return i?{token:e,...i}:null}function cm(e,t){return!!Oi(e,t)}function fo(e,t){if(e.chainId===t)return e.address;const n=Ti(e.address,e.chainId,t);return n?n.address:null}async function zo(e,t,n,o){const r=Yt(t,n);return r?r.decimals:e?.chainId===n&&G(e.address,t)&&!e.isUniversal?e.decimals:o?.chainId===n&&G(o.address,t)?o.decimals:es(n,t)}async function sd(e,t,n={}){const o=fo(e,t),r=Qr(e,t);if(r.length===0)return o;if(r.length===1)return r[0];const a=n.requiredAmount??0n,i=s=>{const c=r.map(l=>({candidate:l,balance:s.get(Ae(l)?"native":l.toLowerCase())??0n})).filter(l=>l.balance>0n).sort((l,d)=>l.balance===d.balance?0:l.balance>d.balance?-1:1);return c.length===0?null:((a>0n?c.find(l=>l.balance>=a):c[0])??c[0]).candidate};try{const s=await Promise.all(r.map(async d=>({key:Ae(d)?"native":d.toLowerCase(),value:await rd(t,d)}))),c=new Map(s.map(({key:d,value:u})=>[d,u])),l=i(c);if(l)return l}catch{}return o}function ka(e,t,n,o){const r=Yt(e,t),a=Yt(n,o);return r&&a?nd(r.equivalenceGroup,a.equivalenceGroup):af(e,n)}function vs(e,t){return ka(e.address,e.chainId,t.address,t.chainId)}const id=.01;function cd(e,t=!1){const n=Number.isFinite(e.balanceUsd)&&e.balanceUsd>0;return e.isDiscovered?n&&e.balanceUsd>=id:!t||!n||e.balanceUsd>=id}function jr(e,t=!1){return!!e&&e._source==="wallet"&&(e.location==="external"||e._fundingWallet==="external"||!e.location&&!e._fundingWallet&&t)}function ke(e){return e.positionId??`${e.owner?.toLowerCase()??""}:${e.location??e._source??""}:${e.chainId}:${e.receiptTokenId??dt(e.address).toLowerCase()}`}function ld(e,t){if(!t?.length||e.symbol!==void 0&&ts({...e,symbol:e.symbol},t))return!0;const n=o=>t.some(r=>G(dt(r),dt(o)));return n(e.address)||Object.keys(e.chainTokens??{}).some(o=>{const r=_n(o);return r?n(r.address):!1})}function Bo(e,t,n,o,r,a){const i=(g,h=!1)=>({eligible:!1,reason:g,policyExcluded:h}),s=e._source==="wallet"||e.location==="external"||e.location==="embedded",c=t==="spend-source"&&s&&!!o&&e.chainId===o.chainId&&G(dt(e.address),dt(o.address));if(n.isWhitelistGateActive||!c&&!ts(e,n.allowedTokens))return i("Asset excluded by client policy",!0);if(t!=="withdraw-destination"&&!c&&!cd(e))return i("Asset is unpriced or below the minimum value",!0);if(t==="holding")return{eligible:!0,reason:null};if(e.balanceError)return i(e.balanceError);if(!c&&!ld(e,r))return i("Asset excluded by action policy",!0);const l=new Set(o?[o.chainId]:[]);e._source!=="spice"&&e.location!=="rollup"&&l.add(e.chainId);for(const g of l)if(!ns(g,n.rpcOverrides)?.trim())return i(`Configure SpiceFlowProvider rpcOverrides[${g}] before using this asset.`);if(a?.requiresEscrow){const g=Yt(e.address,e.chainId);if(!g||!Ia(g))return i("This asset has no supported escrow mapping")}if(!o)return{eligible:!0,reason:null};const d=n.liquidityVenues?.includeDefaults===!1?n.liquidityVenues.venues??[]:[...bs,...n.liquidityVenues?.venues??[]],u=g=>d.some(h=>h.chainId===g),p=s&&e.chainId!==o.chainId,w=p?Oi(e,o.chainId):null;if(p&&!w)return i("No supported source route");if(w&&!G(dt(e.address),dt(w.source.address))&&!u(e.chainId))return i("No conversion venue configured on the source chain");const f=w?.destination.address??fo(e,o.chainId);return t==="withdraw-destination"?(e.chainTokens||e.receiptTokenId?Qr(e,o.chainId):f?[f]:[]).some(g=>G(dt(g),dt(o.address)))?{eligible:!0,reason:null}:i("No supported withdrawal mapping"):f&&G(dt(f),dt(o.address))?{eligible:!0,reason:null}:!f&&!cm(e,o.chainId)?i("No supported destination route"):u(o.chainId)?{eligible:!0,reason:null}:i("No conversion venue configured on the destination chain")}function Is(){const e=gn(sn),[t]=H(zp);return e?.inventory??t}function Bi(e,t,n,o,r){const a=Is(),i=r??a,s=Ee(()=>i.entry(e),[i,e]),[,c]=H(0);we(()=>{if(n)return s.subscribe(()=>c(d=>d+1),t,o)},[s,n,t,o]);const l=re(()=>s.refresh(),[s]);return{...n?s.snapshot():Hp,refresh:l}}var dd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA6lBMVEXc3NzX/v/1hRvZ2dnd3dzb29va7fpMaXHa1tPc3N35/v/c3Nzc3NzCrp/c3Nza2tp1PRbLsJzlr33uhSj0kTHcnWnUva7jdhuNX0B6Qhrsk0LOxMCFVDJ+RyGhfGTkeiGYVSHjdx3lij7khDPEsaPfoW/jgjLQuKXmgzB2PRb2hRvldhvjdRv4hhvpeRtwORb/ihryghvabhnsehrUaRjLXxXtfRt7PxXwexricRbRYhURFBeSTBe0XBrEZxmDRxiiVRrlgCbfzMAvLCmrWBgbMEh9UjBbOBe2pJi9byekk4nkgDHkgDJLNB7jlKArAAAAKXRSTlMzJv0TNSYsADUxKBwK/QUZ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V4uSgyAMRIECGhTk///1otTKG3s2Mzdz03aXbEJIQkhuYv9jIx+komhKDnxk4v1F1wT+SoxcUj3PWu8Ex39U8lH4bzt4QthL6tlDA8OP5Iv1vMADGFc5+uRQnDWdEES81EwbNquXqDuBx8va6ZcXktUYBOkc/3GixsBvwA8neFGGGO7hdyeGAsMXeM/wBJ8ziLv6LwYeisD4f4lHhiAXmH9FvzYV3AchOw6At9gFKW4KANDbsttGoSyCKd1Ab4uxkzezhBQaRfQygHB3oj2FhjwT9QgifErM6jiOrQgAXe2UmcuiIKSuHG+mki2XCH0kYqzgF1vETyYszLFaxLBMNdsgDGNFAazRoUcwrDMlDYz28RS0newGcCRlDa8TK4YgxuORGj9x8NYVEsxjKQSp/pNAw5YRcJI/JP5nYeqxjAxeIfCeRQQDyWOos/y5xR2V4NIgYhRJVkjgpralBPcvQH4PsBxIX0DjJqKRdgYLtsYPUyqh60CsACXEQew7ECvAICZp7DqwQEIQXaR+CkzaoeKr3FewQdqg4mIy36VgLyZWz4G96N5vs8sKj0UPSlJGy4fAbWX88SgGQYgJVjDXi7JaaxYo9Oj4UQ0lrHCGdN25ceiEfNoZSfIomjhcKN26DarT0q4gaiyfe2C9u9hWNUBvRghbG+yd1AZNFFrjmu+ucXMF2j60OObE7f0m+mrv/5qQkimpO+IU8fKXQ9bDMe/5oPl81P3BsP183EeGu3GoLBw/WHnuLF20sXQ9X/ueL57PV99w+Z7P5Vvj8j3fXr7j9X/f/5Vsrv9/K3NM7mGXOq0AAAAASUVORK5CYII=",Ca="data:image/svg+xml,%3csvg width='8' height='11' viewBox='57 6 8 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M62.7081 13.27C62.742 13.27 62.7642 13.3057 62.7491 13.3362V13.336L61.1229 16.6083C61.0892 16.6761 60.9926 16.6759 60.959 16.6083L59.3382 13.336C59.3232 13.3057 59.3453 13.27 59.3792 13.27H62.7081Z' fill='%23EA4B4B'/%3e %3cpath d='M61.0026 9.71913C61.0194 9.68524 61.0678 9.68524 61.0845 9.71913L62.747 13.0897C62.762 13.12 62.7399 13.1557 62.706 13.1557H59.3763C59.3424 13.1557 59.3203 13.12 59.3353 13.0897L61.0026 9.71913Z' fill='%23EA4B4B'/%3e %3cpath d='M60.8426 9.63827C60.8766 9.63827 60.8987 9.6741 60.8835 9.70444L59.2164 13.0594C59.1995 13.0932 59.1513 13.0932 59.1345 13.0594L57.5001 9.77047C57.47 9.70962 57.5142 9.63827 57.5821 9.63827H60.8426Z' fill='%23EA4B4B'/%3e %3cpath d='M64.5036 9.63617C64.5715 9.63618 64.6157 9.70753 64.5855 9.76838H64.5854L62.9512 13.0573C62.9344 13.0911 62.8862 13.0912 62.8692 13.0573L61.2021 9.70235C61.187 9.672 61.2091 9.63617 61.2431 9.63617H64.5036Z' fill='%23EA4B4B'/%3e %3cpath d='M62.8284 6.18281C62.862 6.11518 62.9586 6.11518 62.9922 6.18281L64.5855 9.38969C64.6157 9.45054 64.5715 9.52189 64.5036 9.52189H61.2431C61.2091 9.52189 61.187 9.48605 61.2021 9.45571L62.8283 6.18265L62.8284 6.18281Z' fill='%23EA4B4B'/%3e %3cpath d='M62.3131 6.13196C62.381 6.13196 62.4252 6.20331 62.3951 6.26416C62.154 6.74935 61.9128 7.23455 61.6718 7.71975H61.6716C61.4225 8.22125 61.1733 8.72259 60.9242 9.22409C60.9074 9.25799 60.859 9.25799 60.8422 9.22409L60.6305 8.79587C60.6275 8.78957 60.6259 8.78263 60.6259 8.77553V6.22349C60.6259 6.17297 60.6668 6.13196 60.7173 6.13196H62.3131Z' fill='%23EA4B4B'/%3e%3c/svg%3e";const Aa=ds(1)?.logo??"",um=ll.find(e=>e.symbol==="USDC")?.logo??"",dr=Object.fromEntries([...sf(),...cf()].map(e=>[e.id,e.logo])),Sa={metamask:dd,metaMask:dd,rabby:lm,phantom:dm},Ri=Object.fromEntries(ll.map(e=>[e.symbol.toUpperCase(),e.logo])),pm={usdc:[8453,1,42161,5115,4114],usdt:[1],btc:[4114,42161,1,5115],wbtc:[1],weth:[8453,1],eth:[8453,1,42161,4663,84532,46630],ctusd:[5115,4114],wcbtc:[5115,4114]},fm={btc:["wcbtc","cbtc","wbtc"]};function ks(e){return e.replace(/^test\s*/i,"").replace(/^spice/i,"").trim()}function Jo(e){return ks(e).toLowerCase()}function ud(e){return Jo(e??"").replace(/[^a-z0-9]/g,"")}function Di(e){const t=Jo(e);return[t,...fm[t]??[]].filter(Boolean)}function mm(e){try{return BigInt(e.balanceAvailable||"0")}catch{return 0n}}function pd(e){return Array.isArray(e.chainTokens)?e.chainTokens:Object.keys(e.chainTokens??{})}function fd(e,t){const n=Ct(e),o=t.toLowerCase();return o===zt.toLowerCase()?n?.nativeCurrency.decimals??18:n?.supportedTokens?.find(r=>r.address.toLowerCase()===o)?.decimals??18}function hm(e,t,n,o=[]){const r=fd(t,n),a=e.filter(s=>md(s,t,n,o));if(a.length===0)return null;const i=a.reduce((s,c)=>Math.min(s,c.decimals??r),r);return{chainDecimals:r,receiptDecimals:i}}function md(e,t,n,o){if(pd(e).some(a=>{const i=_n(a);return i&&ka(i.address,i.chainId,n,t)}))return!0;const r=new Set(o.map(ud).filter(Boolean));return r.size===0?!1:r.has(ud(e.tokenName||e.receiptToken))}function hd(e,t,n,o=[]){const r=fd(t,n);return e.reduce((a,i)=>md(i,t,n,o)?a+xo(mm(i),i.decimals??r,r):a,0n)}function gd(e,t){const n=new Set([...Di(t),...Di(ks(t))]);return[...e].sort((o,r)=>{const a=Jo(o.symbol),i=Jo(r.symbol),s=Jo(o.name),c=Jo(r.name),l=n.has(a)?0:n.has(s)?1:2,d=n.has(i)?0:n.has(c)?1:2;return l!==d?l-d:o.address.toLowerCase().localeCompare(r.address.toLowerCase())})[0]}function gm(e){const t=e&&e.length>0?e:Object.keys(os).map(Number).filter(Number.isFinite),n=new Map;for(const o of t){const r=Ct(o);if(!r)continue;const a=`${o}:${zt.toLowerCase()}`;n.has(a)||n.set(a,{address:zt,chainId:o,symbol:r.nativeCurrency.symbol,name:r.nativeCurrency.name,decimals:r.nativeCurrency.decimals,isNative:!0,logoURI:Ri[r.nativeCurrency.symbol.toUpperCase()]??r.logo});for(const i of r.supportedTokens??[]){const s=i.address.toLowerCase(),c=`${o}:${s}`;n.has(c)||n.set(c,{address:s,chainId:o,symbol:i.symbol,name:i.name,decimals:i.decimals,isNative:Ae(s),logoURI:i.logo})}}return n}function wm(e,t){const n=gm(t),o=ks(e.tokenName),r=Jo(e.tokenName),a=Di(e.tokenName),i=Array.isArray(e.chainTokens)?e.chainTokens.map(f=>[f,void 0]):Object.entries(e.chainTokens??{}),s=i.map(([f])=>_n(f)).filter(f=>f!==null),c=new Map;for(const[f,g]of i){const h=_n(f);if(!h||!Number.isSafeInteger(h.chainId)||h.chainId<0||!/^evm:[0-9]+:(?:0x)?[0-9a-fA-F]{40}$/.test(f)){if(!Array.isArray(e.chainTokens))throw new Error("Invalid chain token metadata identity");continue}if(g!==void 0&&(!g||typeof g!="object"||Array.isArray(g)||g.name!==void 0&&typeof g.name!="string"||g.decimals!==void 0&&(!Number.isInteger(g.decimals)||g.decimals<0||g.decimals>255)))throw new Error("Invalid chain token metadata");const b=`${h.chainId}:${h.address.toLowerCase()}`;if(c.has(b)){const v=c.get(b);if(v?.name!==g?.name||v?.decimals!==g?.decimals)throw new Error("Conflicting chain token metadata")}c.set(b,g)}const l=(f,g)=>{const h=c.get(`${g.chainId}:${g.address.toLowerCase()}`);return{...f,name:typeof h?.name=="string"&&h.name.length>0?h.name:f.name,decimals:typeof h?.decimals=="number"?h.decimals:f.decimals}},d=s.map(f=>{const g=n.get(`${f.chainId}:${f.address.toLowerCase()}`);return g?l(g,f):void 0}).filter(f=>f!==void 0),u=pm[r]??[];if(u.length>0)for(const f of u){const g=d.filter(h=>h.chainId===f);if(g.length>0)return gd(g,e.tokenName)}if(d.length>0)return gd(d,e.tokenName);const p=Array.from(n.values()).filter(f=>a.includes(Jo(f.symbol))||a.includes(Jo(f.name)));if(u.length>0)for(const f of u){const g=p.find(h=>h.chainId===f);if(g)return g}if(p.length>0)return p[0];const w=s[0];if(w){const f=c.get(`${w.chainId}:${w.address.toLowerCase()}`);return{address:w.address,chainId:w.chainId,symbol:o||e.tokenName,name:typeof f?.name=="string"&&f.name.length>0?f.name:o||e.tokenName,decimals:typeof f?.decimals=="number"?f.decimals:e.decimals??18,isNative:Ae(w.address),logoURI:void 0}}}function ym(e,t){let n;try{n=BigInt(e.balanceAvailable||"0")}catch{return null}if(n<=0n)return null;if(t?.length){const f=pd(e).map(_n).filter(g=>g!==null);if(f.length>0&&!f.some(g=>t.includes(g.chainId)))return null}let o;try{o=wm(e,t)}catch{return null}const r=o?.decimals??e.decimals??18,a=e.decimals??r,i=xo(n,a,r),s=o?.address??zt,c=o?.chainId??0,l=ks(e.tokenName),d=o?.symbol??l,u=o?.name??l,p=parseFloat(Le(i,r)),w=e.tokenName==="spiceUSDC"?p:typeof e.balanceUsd=="number"?e.balanceUsd:typeof e.balanceUsd=="string"&&Number(e.balanceUsd)||0;return{address:s,symbol:d,name:u,decimals:r,chainId:c,balance:i,balanceFormatted:p,balanceUsd:w,isNative:o?.isNative??Ae(s),logoURI:o?.logoURI,displaySymbol:l||d,displayName:l||u,displayChainName:"Spicenet",receiptTokenId:e.receiptToken,receiptTokenName:e.tokenName||u,receiptTokenDecimals:a,chainTokens:e.chainTokens&&!Array.isArray(e.chainTokens)?e.chainTokens:void 0,isUniversal:!0}}const Mi=6e4,bm=3e5,wd="https://api.g.alchemy.com/prices/v1",Gr=new Map;function Cs(e,t){try{const n=t??ns(e);if(typeof n!="string")return null;const{hostname:o,pathname:r}=new URL(n);if(!o.endsWith(".g.alchemy.com"))return null;const a=r.split("/").filter(Boolean).pop();return a?{network:o.slice(0,-14),key:a}:null}catch{return null}}const Ea=(e,t)=>`${e.network}:${e.key}:${t.toLowerCase()}`;function Fr(e,t){const n=Gr.get(Ea(e,t));if(!n?.price||n.updatedAt===void 0)return;const o=Date.now()-n.updatedAt;if(!(o>=bm))return{price:n.price,stale:o>=Mi}}function yd(e){const t=Number(e.prices?.find(n=>n.currency==="usd")?.value);return Number.isFinite(t)&&t>0?t:0}async function bd(e,t,n){const o=[],r=new Set,a=Date.now();for(const i of new Set(t.map(s=>s.toLowerCase()))){const s=Gr.get(Ea(e,i));s?.pending?r.add(s.pending):(!s||a-s.attemptedAt>=Mi&&(s.updatedAt===void 0||a-s.updatedAt>=Mi))&&o.push(i)}for(let i=0;i<o.length;i+=25){const s=o.slice(i,i+25),c=Promise.resolve().then(async()=>{try{const l=await n(s);for(const d of s){const u=l.get(d);if(!u)continue;const p=Gr.get(Ea(e,d));p.price=u,p.updatedAt=Date.now()}}catch{}finally{for(const l of s)Gr.get(Ea(e,l)).pending=void 0}});for(const l of s){const d=Ea(e,l);Gr.set(d,{...Gr.get(d),attemptedAt:a,pending:c})}r.add(c)}await Promise.all(r)}async function Ni(e,t){return await bd(e,t,async n=>{const o=await fetch(`${wd}/${e.key}/tokens/by-address`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({addresses:n.map(i=>({network:e.network,address:i}))}),signal:AbortSignal.timeout(1e4)});if(!o.ok)throw new Error("Provider price request failed");const r=await o.json(),a=new Map;for(const i of r?.data??[]){if(i.network&&i.network!==e.network)continue;const s=String(i.address).toLowerCase();n.includes(s)&&a.set(s,yd(i))}return a}),new Map(t.map(n=>[n.toLowerCase(),Fr(e,n)?.price??0]))}async function Pi(e,t){const n=`native:${t}`;return await bd(e,[n],async()=>{const o=await fetch(`${wd}/${e.key}/tokens/by-symbol?symbols=${encodeURIComponent(t)}`,{signal:AbortSignal.timeout(1e4)});if(!o.ok)throw new Error("Provider native price request failed");const r=(await o.json())?.data?.find(a=>a.symbol?.toUpperCase()===t.toUpperCase());return new Map([[n.toLowerCase(),r?yd(r):0]])}),Fr(e,n)?.price??0}async function xm(e,t){const n=t.supportedChains,o=e.map(r=>{if(r.receiptTokenName==="spiceUSDC")return[];const a=Object.keys(r.chainTokens??{}).map(_n).filter(i=>!!i&&Mn(i.address)&&!!n?.includes(i.chainId));return a.sort((i,s)=>{const c=l=>l===t.nativeChainId?-1:n.indexOf(l);return c(i.chainId)-c(s.chainId)||+!G(i.address,r.address)-+!G(s.address,r.address)}),a.flatMap(i=>{const s=t.rpcOverrides?.[i.chainId];if(!s)return[];const c=Cs(i.chainId,s);if(!c)return[];const l=Ae(i.address)?Ct(i.chainId)?.nativeCurrency.symbol:void 0,d=l?`native:${l}`:i.address;return[{rpc:c,token:d,address:i.address,nativeSymbol:l}]})});return(typeof document>"u"||!document.hidden)&&await Promise.all(o.map(async r=>{for(const a of r)if(a.nativeSymbol?await Pi(a.rpc,a.nativeSymbol).catch(()=>0):await Ni(a.rpc,[a.address]).catch(()=>new Map),Fr(a.rpc,a.token)?.stale===!1)break})),e.map((r,a)=>{if(r.receiptTokenName==="spiceUSDC")return{...r,balanceUsd:r.balanceFormatted,priceStatus:"fresh"};const i=o[a].map(c=>Fr(c.rpc,c.token)),s=i.find(c=>c&&!c.stale)??i.find(Boolean);return{...r,balanceUsd:s?r.balanceFormatted*s.price:Number.isFinite(r.balanceUsd)&&r.balanceUsd>0?r.balanceUsd:0,priceStatus:s?s.stale?"stale":"fresh":"unavailable"}})}function vm(e,t,n){const o=gn(sn),[r,a]=H(()=>typeof document>"u"||!document.hidden);we(()=>{const d=()=>a(!document.hidden);return document.addEventListener("visibilitychange",d),()=>document.removeEventListener("visibilitychange",d)},[]);const i={supportedChains:n??o?.supportedChainIds,nativeChainId:o?.nativeChainId,rpcOverrides:o?.rpcOverrides},s=JSON.stringify([e,i],(d,u)=>typeof u=="bigint"?u.toString():u),c=re(()=>xm(e,i),[s]),l=Bi(`prices:${s}`,c,t&&r&&e.length>0,6e4);return l.updatedAt?l.assets:e}function Im(e){const t=e.chainTokens??e.chainTokenConfig;if(Array.isArray(t))return t.filter(n=>typeof n=="string");if(t&&typeof t=="object")return t}const xd=({address:e,supportedChains:t,enabled:n=!0,refetchInterval:o,priceEnabled:r=!1})=>{const a=gn(sn),i=a?.apiUrl||Vp,s=Is(),c=a?.supportedChainIds??t,l=JSON.stringify([...c??[]].sort((E,I)=>E-I)),d=e?.toLowerCase(),u=re(async()=>{const E=`${i}/wallets/${d}/balance`;let I,y;try{const A=await nl(E,{cache:"no-store"});if(I=A.status,y=A.requestId,!A.ok)throw new Error(`Failed to fetch balance: ${A.status}`);const T=await A.json();if(!Array.isArray(T.balances))throw new Error("Invalid balance response");return T.balances.map(F=>{const L=ym({receiptToken:typeof F.receiptToken=="string"?F.receiptToken:void 0,tokenName:String(F.tokenName??""),balanceAvailable:String(F.balanceAvailable??"0"),chainTokens:Im(F),decimals:typeof F.decimals=="number"?F.decimals:void 0,balanceUsd:typeof F.balanceUsd=="number"||typeof F.balanceUsd=="string"?F.balanceUsd:null},c);return L?{...L,owner:d,location:"rollup",_source:"spice",positionId:`${d}:rollup:${L.receiptTokenId??L.address}`}:null}).filter(F=>F!==null)}catch(A){const T=A instanceof Error?A.name:void 0,F=I===429?"Balance refresh is temporarily busy. Wait a moment and try again.":I===408||I===504||T==="TimeoutError"?"Balance refresh timed out. Try again.":T==="AbortError"?"Balance refresh was interrupted. Try again.":"Balances are unavailable. Check your connection and try again.",L=new xe("RELAYER_STATUS_ERROR",F,{endpoint:E,httpStatus:I,requestId:y,cause:A});throw Ln(L),L}},[d,i,l,a?.nativeChainId,a?.rpcOverrides]),{assets:p,loading:w,refreshing:f,error:g,updatedAt:h}=Bi(`rollup:${d}:${i}:${l}`,u,n&&!!d,o??0,s),b=JSON.stringify(t??[]),v=Ee(()=>g?p.map(E=>({...E,balanceError:g,balanceStatus:"stale"})):p,[p,g]),C=vm(v,n&&r,c),x=Ee(()=>C.filter(E=>!t?.length||t.includes(E.chainId)||Object.keys(E.chainTokens??{}).some(I=>t.some(y=>I.startsWith(`evm:${y}:`)))),[C,b]),k=re(E=>x.filter(I=>I.chainId===E),[x]);return{assets:x,loading:w,error:g,hasBalance:x.some(E=>E.balance>0n),refreshing:f,updatedAt:h,refetch:s.invalidate,getAssetsByChain:k}};async function km(e,t,n){if(n)return{decimals:n.decimals,symbol:n.symbol,name:n.name,logoURI:n.logo};const[o,r,a]=await Promise.all([lr(e,{address:t,abi:pt,functionName:"decimals"}),lr(e,{address:t,abi:pt,functionName:"symbol"}).catch(()=>"TOKEN"),lr(e,{address:t,abi:pt,functionName:"name"}).catch(()=>"TOKEN")]);if(!Number.isInteger(Number(o))||Number(o)<0||Number(o)>255)throw new Error("Invalid token decimals");return{decimals:Number(o),symbol:r,name:a,logoURI:void 0}}const vd=async(e,t,n)=>{const o=Rt(t,n),r=Ct(t),a=await ms(o,{address:e}),i=r.nativeCurrency,s=r.supportedTokens?.find(c=>Ae(c.address));return{address:zt,name:i.name,symbol:i.symbol,decimals:i.decimals,balance:a,balanceFormatted:Number(Le(a,i.decimals)),balanceUsd:0,priceStatus:"unavailable",logoURI:s?.logo||r.logo,isNative:!0,chainId:t}},Cm=async(e,t,n,o,r,a,i)=>{try{if(!Mn(n))return null;const s=xn(n),c=Mn(e)?xn(e):e,l=Rt(t,i),d=await lr(l,{address:s,abi:pt,functionName:"balanceOf",args:[c]}),u=Number(Le(d,a));return d>0n?{address:s,name:o,symbol:r,decimals:a,balance:d,balanceFormatted:u,balanceUsd:0,priceStatus:"unavailable",logoURI:void 0,isNative:!1,chainId:t}:null}catch(s){throw s}},Id=(e,t)=>{const n=Ct(t);if(!n)return e;const o=new Set(e.map(a=>a.address.toLowerCase())),r=e.some(a=>a.isNative);for(const a of n.supportedTokens||[])Ae(a.address)&&r||o.has(a.address.toLowerCase())||e.push({address:a.address,name:a.name,symbol:a.symbol,decimals:a.decimals,balance:BigInt(0),balanceFormatted:0,balanceUsd:0,priceStatus:"unavailable",logoURI:a.logo,isNative:Ae(a.address),chainId:t});if(!e.find(a=>a.isNative)){const a=n.supportedTokens?.find(i=>Ae(i.address));e.push({address:zt,name:n.nativeCurrency.name,symbol:n.nativeCurrency.symbol,decimals:n.nativeCurrency.decimals,balance:BigInt(0),balanceFormatted:0,balanceUsd:0,priceStatus:"unavailable",logoURI:a?.logo||n.logo,isNative:!0,chainId:t})}return e},Am=async(e,t,n)=>{const o=[],r=async s=>{for(const c of s){const l=await Cm(e,t,c.address,c.name,c.symbol,c.decimals,n);l&&(l.logoURI=c.logo,o.push(l))}},a=await vd(e,t,n);a.balance>0n&&o.push(a);const i=(Ct(t)?.supportedTokens||[]).filter(s=>!Ae(s.address));if(i.length>0)try{const s=Rt(t,n),c=xn(e),l=i.filter(w=>Mn(w.address)).map(w=>({address:xn(w.address),abi:pt,functionName:"balanceOf",args:[c]})),d=await s.multicall({contracts:l}),u=i.filter(w=>Mn(w.address)),p=[];d.forEach((w,f)=>{if(w.status==="success"){const g=w.result;if(g&&g>0n){const h=u[f],b=Number(Le(g,h.decimals));g>0n&&o.push({address:xn(h.address),name:h.name,symbol:h.symbol,decimals:h.decimals,balance:g,balanceFormatted:b,balanceUsd:0,priceStatus:"unavailable",logoURI:h.logo,isNative:!1,chainId:t})}}else p.push(u[f])}),await r(p)}catch{await r(i)}return{tokens:Id(o,t),chainId:t}},Sm=async(e,t,n)=>{const o=new Map,r=Cs(e,n?n[e]??"":void 0);if(!r)return o;const a=t.filter(l=>Ae(l)),i=t.filter(l=>!Ae(l)),[s,c]=await Promise.all([i.length?Ni(r,i).catch(()=>new Map):new Map,a.length?Pi(r,Ct(e)?.nativeCurrency?.symbol??"ETH").catch(()=>0):0]);for(const[l,d]of s)d>0&&o.set(l,d);if(c>0)for(const l of a)o.set(l.toLowerCase(),c);return o},Em=async(e,t,n,o=!0,r)=>{const a=Rt(t,r),i=xn(e),s=[];let c;do{const g=await a.request({method:"alchemy_getTokenBalances",params:[i,"erc20",c?{pageKey:c}:{}]});s.push(...g.tokenBalances),c=g.pageKey||void 0}while(c);const l=s.filter(g=>Mn(g.contractAddress)&&!!g.tokenBalance&&BigInt(g.tokenBalance)>0n),d=Ct(t)?.supportedTokens||[],u=g=>d.find(h=>h.address.toLowerCase()===g.toLowerCase()),p=[],w=await vd(e,t,r),[f]=await Promise.all([Promise.all(l.map(async g=>{const h=u(g.contractAddress);return h?{name:h.name,symbol:h.symbol,decimals:h.decimals,logo:h.logo??null}:await a.request({method:"alchemy_getTokenMetadata",params:[g.contractAddress]})})),o?Ni(n,l.map(g=>g.contractAddress)):void 0,o&&w.balanceFormatted>0?Pi(n,w.symbol):void 0]);if(w.balance>0n){const g=Fr(n,`native:${w.symbol}`);p.push({...w,balanceUsd:(g?.price??0)*w.balanceFormatted,priceStatus:g?g.stale?"stale":"fresh":"unavailable"})}return l.forEach((g,h)=>{const b=f[h];if(!Number.isInteger(b.decimals)||b.decimals===null||b.decimals<0||b.decimals>255)throw new Error(`Invalid token metadata on chain ${t}`);const v=BigInt(g.tokenBalance),C=Number(Le(v,b.decimals));if(v<=0n)return;const x=Fr(n,g.contractAddress),k=(x?.price??0)*C;p.push({address:xn(g.contractAddress),name:b.name||"Unknown",symbol:b.symbol||"UNKNOWN",decimals:b.decimals,balance:v,balanceFormatted:C,balanceUsd:k,priceStatus:x?x.stale?"stale":"fresh":"unavailable",isDiscovered:!u(g.contractAddress),logoURI:b.logo||void 0,isNative:!1,chainId:t})}),{tokens:Id(p,t),chainId:t}},kd=new Set,Fm=async(e,t,n=!0,o)=>{try{const r=Cs(t,o?o[t]??"":void 0);if(r)try{return await Em(e,t,r,n&&(typeof document>"u"||!document.hidden),o)}catch(a){kd.has(t)||(kd.add(t),console.warn(`Token discovery unavailable on chain ${t}; listing configured tokens only.`,a))}return await Am(e,t,o)}catch(r){throw r}},Kr=async(e,t,n=[],o)=>{if(!e)throw new Error("Wallet address is required");const r=Qp(o),a=t?.length?[...new Set(t)]:Object.keys(r).map(Number),i=await Promise.allSettled(a.map(c=>Fm(e,c,!0,o))),s={};return i.forEach((c,l)=>{const d=a[l];s[d]=c.status==="fulfilled"?c.value:{chainId:d,tokens:[],error:`Unable to refresh balances on chain ${d}`}}),(await Promise.allSettled(n.map(async c=>{const l=s[c.chainId];if(!l||l.error||l.tokens.some(h=>dt(h.address).toLowerCase()===dt(c.address).toLowerCase()))return;const d=Rt(c.chainId,o),u=await km(d,c.address,c.decimals!==void 0&&c.symbol?{decimals:c.decimals,symbol:c.symbol,name:c.name||c.symbol,logo:c.logoURI}:void 0),p=await lr(d,{address:c.address,abi:pt,functionName:"balanceOf",args:[e]});await Sm(c.chainId,[c.address],o);const w=Number(Le(p,u.decimals)),f=Cs(c.chainId,o?o[c.chainId]??"":void 0),g=f?Fr(f,c.address):void 0;l.tokens.push({...u,...c,name:u.name,symbol:u.symbol,decimals:u.decimals,balance:p,balanceFormatted:w,balanceUsd:(g?.price??0)*w,priceStatus:g?g.stale?"stale":"fresh":"unavailable",isNative:!1})}))).forEach((c,l)=>{if(c.status==="rejected"){const d=s[n[l].chainId];d&&(d.error=`Unable to refresh token balances on chain ${d.chainId}`)}}),s},Fa=({address:e,supportedChains:t,fetchBalances:n=Kr,additionalTokens:o=[],enabled:r=!0,refreshInterval:a=0,priceEnabled:i=!0})=>{const s=gn(sn),c=Is(),l=e?.toLowerCase(),d=JSON.stringify([...s?.supportedChainIds??t??[]].sort((v,C)=>v-C)),u=JSON.stringify(o);we(()=>c.registerTokens(o),[c,u]);const p=l&&l===s?.embeddedWalletAddress?.toLowerCase()?"embedded":"external",w=`wallet:${JSON.stringify([s?.network,s?.apiUrl,s?.rpcOverrides])}:${l}:${p}:${d}:${c.fetcherId(n)}`,f=re(async()=>{let v;try{v=await n(l,JSON.parse(d),c.tokens(),s?.rpcOverrides)}catch(E){const I=E instanceof Error?E.message:"Unable to refresh balances";v=Object.fromEntries(JSON.parse(d).map(y=>[y,{chainId:y,tokens:[],error:I}]))}const C=c.entry(w).snapshot().assets,x=JSON.parse(d).map(E=>v[E]??{chainId:E,tokens:[],error:`Unable to refresh balances on chain ${E}`}),k=x.flatMap(E=>E.error?[E.error]:[]);return{assets:x.flatMap(E=>E.error?C.filter(I=>I.chainId===E.chainId).map(I=>({...I,balanceError:E.error,balanceStatus:"stale"})):E.tokens.map(I=>({...I,owner:l,location:p,_fundingWallet:p,_source:"wallet",positionId:`${l}:${p}:${E.chainId}:${dt(I.address).toLowerCase()}`}))),error:k.length?k.join("; "):null}},[c,l,d,n,p,w]),g=Bi(w,f,r&&!!l,a,c),h=JSON.stringify(t&&[...t].sort((v,C)=>v-C)),b=Ee(()=>t?g.assets.filter(v=>t.includes(v.chainId)):g.assets,[g.assets,h]);return we(()=>{i&&r&&l&&g.refresh()},[i]),{...g,assets:b,refreshAssets:c.invalidate,getAssetsByChain:re(v=>b.filter(C=>C.chainId===v),[b]),getNativeAssets:re(()=>b.filter(v=>v.isNative),[b])}};function Tr(e){const t=gn(sn),n=Is(),o=e.owner??((t?.mode||"7702")!=="7702"?t?.externalWalletAddress:t?.embeddedWalletAddress),r=o?.toLowerCase()!==t?.embeddedWalletAddress?.toLowerCase(),a=e.sourceChains??t?.supportedChainIds??[],i=(e.enabled??!0)&&!t?.isWhitelistGateActive,s=Ee(()=>{const p=[...t?.additionalSourceTokens??[],...e.additionalSourceTokens??[],...e.destination?[e.destination]:[]];for(const w of e.supportedSourceAssets??[])for(const f of a){const g=Ct(f)?.supportedTokens?.find(h=>ts(h,[w]));g&&p.push({...g,address:g.address,chainId:f,logoURI:g.logo})}return p},[e.destination,JSON.stringify(t?.additionalSourceTokens),JSON.stringify(e.additionalSourceTokens),JSON.stringify(e.supportedSourceAssets),JSON.stringify(a)]),c=Fa({address:o,supportedChains:a,fetchBalances:Kr,additionalTokens:s,enabled:i&&e.includeWalletAssets!==!1,refreshInterval:3e4}),l=xd({address:o,supportedChains:a,enabled:i&&e.includeRollupAssets!==!1&&!!o&&o.toLowerCase()===t?.embeddedWalletAddress?.toLowerCase(),priceEnabled:i,refetchInterval:3e4}),d=Ee(()=>i?[...(e.includeWalletAssets===!1?[]:c.assets).map(p=>({...p,owner:p.owner??o,location:p.location??(r?"external":"embedded"),_source:"wallet"})),...(e.includeRollupAssets===!1||o?.toLowerCase()!==t?.embeddedWalletAddress?.toLowerCase()?[]:l.assets).map(p=>({...p,owner:p.owner??o,location:"rollup",_source:"spice"}))]:[],[i,c.assets,l.assets,e.includeWalletAssets,e.includeRollupAssets,o,r,t?.embeddedWalletAddress]),u=Ee(()=>d.map(p=>({asset:p,...Bo(p,e.role??"holding",{allowedTokens:t?.allowedTokens,rpcOverrides:t?.rpcOverrides,liquidityVenues:t?.liquidityVenues,isWhitelistGateActive:!!t?.isWhitelistGateActive},e.destination,e.supportedSourceAssets,{requiresEscrow:e.requiresEscrow})})),[d,t?.allowedTokens,t?.rpcOverrides,t?.liquidityVenues,t?.isWhitelistGateActive,e.role,e.destination,e.supportedSourceAssets,e.requiresEscrow]);return{positions:u,assets:Ee(()=>u.filter(p=>p.eligible&&p.asset.balance>0n).map(p=>p.asset),[u]),walletAssets:Ee(()=>d.filter(p=>p._source==="wallet"),[d]),rollupAssets:Ee(()=>d.filter(p=>p._source==="spice"),[d]),loading:c.loading||l.loading,refreshing:c.refreshing||l.refreshing,error:c.error||l.error,refresh:n.invalidate}}function As(e,t=!0,n){const o=n?.pendingOnly===!0,r=ze.getBaseUrl(),a=`${r}:${e?.toLowerCase()??""}:${o}`,[i,s]=H({scope:a,actions:[],error:null,loading:t&&!!e,updatedAt:null,revision:0}),[c,l]=H(0),d=re(()=>l(p=>p+1),[]);we(()=>{if(!t||!e){s(h=>h.scope===a&&h.actions.length===0&&!h.error&&!h.loading&&!h.updatedAt&&h.revision===0?h:{scope:a,actions:[],error:null,loading:!1,updatedAt:null,revision:0});return}const p=new AbortController,w=new kr;w.setBaseUrl(r);let f;s(h=>({scope:a,actions:h.scope===a?h.actions:[],error:h.scope===a?h.error:null,loading:!0,updatedAt:h.scope===a?h.updatedAt:null,revision:h.scope===a?h.revision:0}));const g=async()=>{try{const h=await w.getWalletActions(e,{pendingOnly:o,signal:p.signal});p.signal.aborted||s(b=>({scope:a,actions:h,error:null,loading:!1,updatedAt:new Date().toISOString(),revision:b.scope===a?b.revision+1:1}))}catch(h){if(p.signal.aborted)return;const b=h instanceof xe&&h.context.httpStatus===404;s(b&&!o?v=>({scope:a,actions:[],error:null,loading:!1,updatedAt:new Date().toISOString(),revision:v.scope===a?v.revision+1:1}):v=>({scope:a,actions:v.scope===a?v.actions:[],error:"Activity is temporarily unavailable. Refresh to check again.",loading:!1,updatedAt:v.scope===a?v.updatedAt:null,revision:v.scope===a?v.revision:0}))}p.signal.aborted||(f=setTimeout(g,5e3))};return g(),window.addEventListener("online",d),()=>{p.abort(),f&&clearTimeout(f),window.removeEventListener("online",d)}},[r,e,t,a,o,c,d]);const u=i.scope===a;return{actions:t&&e&&u?i.actions:[],error:u?i.error:null,loading:t&&!!e&&(!u||i.loading),updatedAt:u?i.updatedAt:null,revision:u?i.revision:0,refresh:d}}function Ui(e){const t=Z(0),n=Z(null),o=Z(e.run);o.current=e.run;const r=Z(e.onSkip);r.current=e.onSkip;const a=Z(e.onCleanup);a.current=e.onCleanup,we(()=>{if(!e.shouldRun){t.current+=1,n.current?.abort(),r.current?.();return}let i=!1,s=!1;const c=async p=>{if(p&&s)return;n.current?.abort();const w=new AbortController;n.current=w;const f=++t.current;s=!0;try{await o.current({isBackground:p,isCurrent:()=>!i&&t.current===f,signal:w.signal})}finally{s=!1}},l=window.setTimeout(()=>void c(!1),e.delayMs??250),d=()=>{document.hidden||c(!0)},u=e.backgroundIntervalMs?window.setInterval(d,e.backgroundIntervalMs):void 0;return u!==void 0&&document.addEventListener("visibilitychange",d),()=>{i=!0,n.current?.abort(),clearTimeout(l),u!==void 0&&(window.clearInterval(u),document.removeEventListener("visibilitychange",d)),a.current?.()}},[e.shouldRun,e.delayMs,e.backgroundIntervalMs,...e.deps])}function Cd(e,t){if(e.length!==t.length)return!1;const n=Oo(e),o=Oo(t);return n.every((r,a)=>r.hash===o[a]?.hash)}const Io=e=>new Promise(t=>setTimeout(t,e)),Tm="0xa9059cbb";function Ad(e){const t=e.findIndex(r=>Lo(r.chainId));if(t<=0)return[];const n=new Map,o=(r,a,i)=>{if(i<=0n)return;const s=`${r}:${a.toLowerCase()}`,c=n.get(s);c?c.amount+=i:n.set(s,{chainId:r,token:a,amount:i})};for(const r of e.slice(0,t)){const a=Vr(r.chainId);if(!(!a||a===zt)){for(const i of r.calls)if(i.value&&i.value>0n&&G(i.to,a)&&o(r.chainId,zt,i.value),!!i.data?.startsWith(Tm))try{const s=Jn({abi:pt,data:i.data});if(s.functionName!=="transfer")continue;const[c,l]=s.args;G(c,a)&&o(r.chainId,i.to,l)}catch{}}}return[...n.values()]}function Sd(e){const t=Yt(e.token,e.chainId);return[t?.equivalenceGroup,t?.symbol,t?.name]}function Ed(e,t){return hd(e,t.chainId,t.token,Sd(t))}function Om(e,t){const n=hm(e,t.chainId,t.token,Sd(t));return!n||n.receiptDecimals>=n.chainDecimals?t.amount:xo(xo(t.amount,n.chainDecimals,n.receiptDecimals),n.receiptDecimals,n.chainDecimals)}async function Fd(e){const{deposits:t,baseline:n,fetchEntries:o,timeoutMs:r=12e4,intervalMs:a,signal:i,wait:s=Io}=e;if(t.length===0)return!0;const c=new Map(t.map(u=>[u,Ed(n,u)])),l=Date.now(),d=l+r;for(;!i?.aborted;){try{const f=await o();if(t.every(g=>Ed(f,g)-c.get(g)>=Om(f,g)))return!0}catch{}const u=Date.now();if(u>=d)return!1;const p=u-l,w=a??(p<5e3?250:p<15e3?1e3:3e3);await s(Math.min(w,d-u))}return!1}function Wi(e,t){const n=Oo(e).map(o=>o.hash);return cr(Zo([{type:"string"},{type:"uint256"},{type:"uint256"},{type:"bytes32[]"}],["ecdsa",0n,t,n]))}async function Li(e,t,n,o,r){if(o?.aborted)throw new xe("ABORT","Execution transaction aborted");const a={raw:Wi(t,n)},i=r?await e.signMessage(a,r):await e.signMessage(a);console.debug("[SpiceFlow:execution]",{phase:"signature-returned",at:Date.now()});const s=typeof i=="string"?i:i.signature;if(!s)throw new xe("SIGNATURE_FAILED","Failed to sign intent authorization. The wallet returned an empty signature.");return s}function Bm(e){return e.domain==="spicenet"||Lo(e.chainId)}const Td=0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141n;async function Rm(e,t,n){const o=(d,u)=>new xe("SIGNATURE_FAILED","The wallet returned an invalid authorization. Review the action and try again.",{chainId:t.chainId,reason:d,...u?{cause:u}:{}});if(!e||typeof e!="object")throw o("missing-authorization");const r=e;for(const d of["address","contractAddress"])if(r[d]!==void 0&&(typeof r[d]!="string"||r[d].toLowerCase()!==t.address.toLowerCase()))throw o("authorization-target-mismatch");for(const d of["chainId","nonce"]){const u=r[d];if(u!==void 0&&(typeof u=="bigint"?u!==BigInt(t[d]):typeof u!="number"||!Number.isSafeInteger(u)||u!==t[d]))throw o(`authorization-${d}-mismatch`)}const{r:a,s:i,yParity:s}=r;if(typeof a!="string"||typeof i!="string"||!/^0x[0-9a-fA-F]{64}$/.test(a)||!/^0x[0-9a-fA-F]{64}$/.test(i)||s!==0&&s!==1||BigInt(a)===0n||BigInt(a)>=Td||BigInt(i)===0n||BigInt(i)>Td/2n)throw o("invalid-signature");const c={...t,r:a,s:i,yParity:s};let l;try{l=await bf({hash:cr(ml(["0x05",xf([fs(t.chainId),t.address,t.nonce===0?"0x":fs(t.nonce)])])),signature:c})}catch(d){throw o("invalid-signature",d)}if(l.toLowerCase()!==n.toLowerCase())throw o("authorization-signer-mismatch");return c}async function qi(e){const{chainBatches:t,signingAddress:n,actions:o,cache:r,signal:a,onSignatureRequested:i,beforeSign:s}=e;if(a?.aborted)throw new xe("ABORT","Execution transaction aborted");if(typeof n!="string"||!Mn(n,{strict:!1})||n.toLowerCase()===hl)throw new xe("INVALID_PARAMS","A valid signing address is required.");for(const p of t)if(!Number.isSafeInteger(p.chainId)||p.chainId<=0)throw new xe("INVALID_PARAMS","A valid authorization chain is required.");const c=[...new Set(t.filter(p=>!Bm(p)).map(p=>p.chainId))].map(p=>{const w=jp(p);if(!Mn(w,{strict:!1})||w.toLowerCase()===hl)throw new xe("INVALID_PARAMS","A valid delegation target is required.");return{chainId:p,client:Rt(p),delegateContract:w}}),[l]=await Promise.all([Promise.all(c.map(async({chainId:p,client:w,delegateContract:f})=>{const g=Number(await lf(n,w));if(!Number.isSafeInteger(g)||g<0)throw new xe("INVALID_PARAMS","The authorization nonce is invalid.");const h=[n.toLowerCase(),p,f.toLowerCase(),g].join(":");return{chainId:p,delegateContract:f,nonce:g,cacheKey:h,cached:r?.get(h)}})),c.length?o.prepareSigning?.():void 0]);if(await s?.(),a?.aborted)throw new xe("ABORT","Execution transaction aborted");const d=[];let u=!1;for(const{chainId:p,delegateContract:w,nonce:f,cacheKey:g,cached:h}of l){if(h===void 0&&u&&await s?.(),a?.aborted)throw new xe("ABORT","Execution transaction aborted");const b=h===void 0?await o.signAuthorization({contractAddress:w,chainId:p,nonce:f},i):h;let v;try{v=await Rm(b,{address:w,chainId:p,nonce:f},n)}catch(C){throw r?.delete(g),C}if(a?.aborted)throw new xe("ABORT","Execution transaction aborted");u=!0,r?.set(g,v),d.push(v)}return d}const Od=15;function Dm(e){return e.now-e.lastProgressAt>=e.pollTimeoutMs}function Bd(e,t){return{intentId:e,steps:t.map(n=>({...n,status:"pending"})),overallStatus:"processing"}}function Ss(e,t,n){const o=e.steps.map(s=>({...s})),r=o[t];if(!r)return e;n.status==="success"||n.status==="completed"?(o[t]={...r,status:"success",transactionHash:n.transactionHash},t+1<o.length&&o[t+1].status==="pending"&&(o[t+1]={...o[t+1],status:"processing"})):n.status==="reverted"||n.status==="error"?o[t]={...r,status:"failed",transactionHash:n.transactionHash,error:n.error}:o[t]={...r,status:"processing"};const a=o.some(s=>s.status==="failed"),i=o.every(s=>s.status==="success");return{...e,steps:o,overallStatus:a?"failed":i?"success":"processing"}}function Mm({checkStepStatus:e,retryStep:t,maxRetries:n=3,pollingInterval:o=2500,pollTimeoutMs:r=3e5}){const[a,i]=H(null),s=Z(null),c=Z(null),l=Z(!1),d=Z(!1),u=Z(0),p=Z({}),w=Z(0),f=re(x=>{s.current=x,i(x)},[]),g=re(()=>{c.current&&(clearInterval(c.current),c.current=null)},[]),h=re(()=>{u.current=0,p.current={},w.current=0,l.current=!0,g(),f(null)},[g,f]),b=re((x,k)=>{g(),l.current=!1,f(Bd(x,k))},[g,f]),v=re((x,k)=>{const E=s.current;E&&f(Ss(E,x,k))},[f]),C=re((x,k)=>{g(),l.current=!1,d.current=!1,u.current=0,p.current={},w.current=Date.now(),f(Bd(x,k));const E=async()=>{if(!(l.current||d.current||!e)){d.current=!0;try{if(Dm({now:Date.now(),lastProgressAt:w.current,pollTimeoutMs:r})){const A=s.current;A&&f({...A,steps:A.steps.map(T=>T.status==="success"?T:{...T,status:"failed",error:"Taking longer than expected. It may still complete - check the explorer, then refresh."}),overallStatus:"failed"}),l.current=!0,g();return}const I=s.current;if(!I)return;const y=I.steps.findIndex(A=>A.status!=="success");if(y===-1){l.current=!0,g();return}if(!(y===0||I.steps[y-1].status==="success"))return;try{const A=I.steps[y].stepId,{data:T}=await e(x,A);if(u.current=0,T.status==="success"&&(w.current=Date.now()),T.status==="reverted"){const L=p.current[A]||0;if(t&&L<n){p.current[A]=L+1;try{await t(x,A)}catch(R){console.error(`[intentStatus] retry failed for step ${A}:`,R)}f(Ss(s.current,y,{status:"executing"}));return}}const F=Ss(s.current,y,T);f(F),F.overallStatus!=="processing"&&(l.current=!0,g())}catch(A){u.current+=1,console.error(`[intentStatus] poll error (${u.current}/${Od}):`,A),u.current>=Od&&(f(Ss(s.current,y,{status:"error"})),l.current=!0,g())}}finally{d.current=!1}}};E(),c.current=setInterval(E,o)},[e,t,n,o,r,g,f]);return we(()=>()=>g(),[g]),{intentStatus:a,startStatusPolling:C,beginStatusTracking:b,applyStepUpdate:v,stopStatusPolling:g,clearStatus:h}}function Nm(e,t){return(t||"").trim()||`Transaction ${e}. The transaction was rejected on-chain. This may be due to insufficient balance, price changes, or health factor constraints. Please verify your positions and try again.`}const Pm=350,Um=2500;async function Rd(e){const{actionId:t,intentIndex:n,intentId:o,stepIndex:r,maxPolls:a=48,maxExecuteAttempts:i=3,pollsBeforeRetry:s=5,maxConsecutiveStatusErrors:c=15,onStatusMessage:l,onStepUpdate:d,signal:u,chainId:p,startWithExecute:w=!0,observeOnly:f=!1,relayer:g=ze,completeOnExecution:h=!1}=e;if(u?.aborted)throw new xe("ABORT","Execution transaction aborted");let b="pending",v,C,x=e.initialExecuteAttempts??0,k=0,E,I;const y=new Promise((T,F)=>{E=T,I=()=>F(new xe("ABORT","Execution transaction aborted"))}),A=()=>{x++,e.onExecuteAttempt?.(x),g.executeStep(t,n,r,{action:"execute"}).then(T=>{T.transactionHash&&(v=T.transactionHash),T.status==="success"&&E({status:T.status,transactionHash:T.transactionHash})}).catch(T=>{const F=T instanceof Error?T.message:String(T);console.warn(`[execution] executeStep ${r} attempt ${x} error (will poll):`,F)})};u?.addEventListener("abort",I,{once:!0});try{w&&!f&&x<i&&A();for(let T=0;T<a;T++){const F=T===0?Pm:Um;try{const R=await Promise.race([Io(F).then(()=>{}),y]);if(u?.aborted)throw new xe("ABORT","Execution transaction aborted");const N=R??await Promise.race([g.checkStepStatus(o,r,h).then(D=>D.data),y]);if(u?.aborted)throw new xe("ABORT","Execution transaction aborted");k=0,b=N.status,C=N.error;const O=N.transactionHash;O&&(v=O),h&&/^0x[0-9a-f]{64}$/i.test(O??"")&&(N.executionStatus==="success"||N.executionStatus==="reverted")&&(b=N.executionStatus,C=void 0),d?.({status:b,transactionHash:v,error:C})}catch(R){if(R instanceof Error&&(R.name==="AbortError"||R instanceof xe&&R.code==="ABORT"))throw R;if(k++,k>=c){if(!f)throw R;l?.("Status is temporarily unavailable. The backend continues this action.",v)}continue}if(!f&&b==="created"&&T>=x*s&&x<i&&A(),b==="reverted"||b==="error")throw new xe("ON_CHAIN_REVERT",Nm(b,C),{status:b,txHash:v,actionId:t,intentId:o,stepId:r,chainId:p});if(b==="success"||b==="completed")return v;let L="Waiting for solver...";b==="executing"?L="Transaction executing...":b==="submitted"?L="Transaction submitted...":b==="created"&&(L="Waiting for relayer..."),l?.(L,v)}throw new xe("POLLING_EXHAUSTED",`Transaction is still processing (status: ${b}). This doesn't mean it failed \u2014 the solver may still complete it. Check your positions in a few minutes, or try refreshing the page.`,{actionId:t,intentId:o,stepId:r,lastStatus:b,pollAttempts:a,maxPolls:a,txHash:v})}finally{u?.removeEventListener("abort",I)}}async function Wm(e){const{actionId:t,intentIndex:n,intentId:o,totalSteps:r,observeOnly:a,delayBeforeSpicenetStepMs:i=5e3,isSpicenetStep:s,beforeStep:c,maxExecuteAttemptsForStep:l,maxPolls:d=48,onStatusMessage:u,onStepUpdate:p,signal:w}=e;let f;for(let g=e.startStep??0;g<r;g++){if(!a&&g>0&&s?.(g)&&i>0&&await Io(i),a||await c?.(g),w?.aborted)throw new xe("ABORT","Execution transaction aborted");const h=l?.(g)??3,b=await Rd({actionId:t,intentIndex:n,intentId:o,stepIndex:g,observeOnly:a,startWithExecute:e.startWithExecute,relayer:e.relayer,maxPolls:d,maxExecuteAttempts:h,initialExecuteAttempts:e.executeAttempts?.get(g),onExecuteAttempt:v=>e.executeAttempts?.set(g,v),maxConsecutiveStatusErrors:h===6?5:15,onStatusMessage:u,onStepUpdate:p?v=>p(g,v):void 0,signal:w,completeOnExecution:g===r-1&&s?.(g)===!1});b&&(f=b)}return f}const Lm="0xa9059cbb",qm=[df,bn,Qn];function Dd(e){return qm.some(t=>G(e,t))}function Es(e,t){return e.map(n=>{if(n.domain==="spicenet"||Lo(n.chainId)||n.calls.length===0)return n;const o=new Set((n.tokenTransfers??[]).filter(i=>(i.from==="escrow"||i.from==="solver")&&G(i.to,t)).map(i=>i.token.toLowerCase()));if(o.size===0)return n;const r=[...o].some(Ae);let a=0;for(const i of n.calls){if(r&&i.value>0n&&i.data==="0x"&&Dd(i.to)){a+=1;continue}if(!i.data?.startsWith(Lm))break;try{const s=Jn({abi:pt,data:i.data});if(s.functionName!=="transfer")break;const[c]=s.args;if(!Dd(c)||!o.has(i.to.toLowerCase()))break;a+=1}catch{break}}return a===0?n:{...n,calls:n.calls.slice(a)}})}async function zi(e,t,n){if(!t||!/^0x[0-9a-f]{64}$/i.test(t))throw new Error("The destination receipt is not available yet; reconcile the existing action before retrying.");const o=()=>new xe("ABORT","Execution observation retired");if(n?.aborted)throw o();const r=await new Promise((a,i)=>{const s=()=>i(o());n?.addEventListener("abort",s,{once:!0}),Promise.resolve().then(()=>e.waitForTransactionReceipt({hash:t,timeout:12e4,pollingInterval:2e3,confirmations:1})).then(a,i).finally(()=>n?.removeEventListener("abort",s))});if(n?.aborted)throw o();if(r.transactionHash?.toLowerCase()===t.toLowerCase()&&r.status==="reverted")throw new xe("ON_CHAIN_REVERT","The destination transaction reverted.",{status:"reverted",txHash:t});if(r.transactionHash?.toLowerCase()!==t.toLowerCase()||r.status!=="success")throw new Error("The destination transaction has not been confirmed successfully. Reconcile the existing action before retrying.");return t}async function Fs(e){let t=e.hash,n=!1;const o=Date.now()+12e4,r=i=>i.transactionHash&&i.transactionHash.toLowerCase()!==t.toLowerCase();let a=await e.client.waitForTransactionReceipt({hash:t,timeout:12e4,pollingInterval:2e3,confirmations:1,onReplaced:i=>{const s=i.transaction,c=i.replacedTransaction;if(!(i.reason==="repriced"&&c?.hash?.toLowerCase()===t.toLowerCase()&&c?.to?.toLowerCase()===e.call.to.toLowerCase()&&(c.input??"0x").toLowerCase()===e.call.data.toLowerCase()&&BigInt(c.value??0)===e.call.value&&c?.from&&c.nonce!==void 0&&/^0x[0-9a-f]{64}$/i.test(s?.hash??"")&&s?.to?.toLowerCase()===e.call.to.toLowerCase()&&(s.input??"0x").toLowerCase()===e.call.data.toLowerCase()&&BigInt(s.value??0)===e.call.value&&s.from?.toLowerCase()===c?.from?.toLowerCase()&&s.nonce===c?.nonce)){n=!0,e.onCancelled?.();return}t=s.hash,e.onRepriced?.(t)}});if(n)throw new Error("Transaction was cancelled or replaced with a different action; retry the unfinished action");if((e.confirmations??1)>1&&!r(a)&&a.status==="success"&&(a=await e.client.waitForTransactionReceipt({hash:t,timeout:Math.max(o-Date.now(),1),pollingInterval:2e3,confirmations:e.confirmations})),r(a))throw new Error("Unexpected transaction receipt; recover the submitted transaction before retrying");return{receipt:a,hash:t}}const Hi=10n,Md=["0x718dE8f0A0DC14D5BC6c560C192F02AE6Af036c7","0x737680c45F88A8b1b389e354dde11419f89BAdd6"],zm=5;function Ts(e,t,n){return n?.calls.length&&n.amountOutMinimum>0n?[{chainId:e,token:t,amount:n.amountOutMinimum}]:[]}function Vi(e){return e.map(t=>({...t,calls:[...t.calls],tokenTransfers:t.tokenTransfers?[...t.tokenTransfers]:void 0}))}function Os({token:e,recipient:t,amount:n}){return{to:e,value:0n,data:Ot({abi:pt,functionName:"transfer",args:[t,n]})}}function Hm({chainBatches:e,token:t,amount:n}){const o=Vi(e),r=o[o.length-1];if(!r)return o;const a=To(r.chainId);return r.calls=[...r.calls,Os({token:t,recipient:a,amount:n})],o}function Nd({chainBatches:e,user:t,token:n,grossAmount:o,gasFee:r,policy:a}){const i=Vi(e),s=i[i.length-1];if(!s)throw new xe("INVALID_PARAMS","Action-output escrow funding requires at least one chain batch.");const c=rs(o,BigInt(a?.platformBps??Hi)),l=r+c;if(l>=o)throw new xe("INVALID_PARAMS","Borrow amount is too small after gas and Spicenet fees.",{grossAmount:o.toString(),gasFee:r.toString(),spicenetFee:c.toString()});const d=o-l,u=To(s.chainId),p=[];return r>0n&&p.push(Os({token:n,recipient:a?.gasRecipient??bn,amount:r})),c>0n&&p.push(Os({token:n,recipient:a?.platformRecipient??Qn,amount:c})),s.calls=[...s.calls,...p,Os({token:n,recipient:u,amount:d})],s.tokenTransfers=[...s.tokenTransfers??[],...r>0n?[{from:t,to:bn,token:n,amount:r}]:[],...c>0n?[{from:t,to:Qn,token:n,amount:c}]:[],{from:t,to:u,token:n,amount:d}],{chainBatches:i,gasFee:r,spicenetFee:c,netEscrowAmount:d,outputCredit:{chainId:s.chainId,token:n,amount:o}}}async function Pd({chainBatches:e,user:t,token:n,grossAmount:o,chainAuthorizations:r}){let a=0n,i,s=Nd({chainBatches:e,user:t,token:n,grossAmount:o,gasFee:a});for(let c=0;c<zm;c+=1){const l=Oo(s.chainBatches),d=await ze.estimateBatchGas({user:t,outputToken:n,chainBatches:s.chainBatches.map((p,w)=>({...p,hash:l[w].hash})),chainAuthorizations:r}),u=d.gasFee;if(u===a&&JSON.stringify(d.policy)===JSON.stringify(i))return s;i=d.policy,a=u,s=Nd({chainBatches:e,user:t,token:n,grossAmount:o,gasFee:a,policy:i})}throw new xe("INVALID_PARAMS","Action-output fee estimate did not converge. Please retry.")}function Ho(e){return Lo(e.chainId)}const Vm="0xa9059cbb";function Ta(e,t){return`${e}:${dt(t).toLowerCase()}`}function Ud(e,t){if(t===zt.toLowerCase()){const n=ds(e)?.nativeCurrency;return{symbol:n?.symbol??uo(e),decimals:n?.decimals??18}}return Yt(t,e)??{symbol:"tokens",decimals:18}}function Qm(e,t){const n=Yt(t,e);return[n?.equivalenceGroup,n?.symbol,n?.name]}async function Qi(e){return as(e)}async function ji(e,t,n){const o=new Map,r=new Map,a=[...n?.walletFundingRequirement?[n.walletFundingRequirement]:[],...n?.walletFundingRequirements??[]];for(const u of a){if(u.amount<0n)throw new Error("Accepted wallet funding must not be negative");const p=Ta(u.chainId,u.token);r.set(p,(r.get(p)??0n)+u.amount),o.set(p,0n)}const i=new Map,s=new Map,c=new Map,l=new Map;for(const u of n?.actionOutputCredits??[]){const p=Ta(u.chainId,u.token);l.set(p,(l.get(p)??0n)+u.amount)}for(const u of e){if(Ho(u))continue;for(const f of u.tokenTransfers??[]){if(f.from!=="escrow"&&f.from!=="solver"||!G(f.to,t))continue;const g=BigInt(f.amount??0);if(g<=0n)continue;const h=Ta(u.chainId,f.token);i.set(h,(i.get(h)??0n)+g),f.from==="escrow"&&s.set(h,(s.get(h)??0n)+g)}const p=Vr(u.chainId),w=f=>!!p&&p!==zt&&G(f,p);for(const f of u.calls){if(f.value&&f.value>0n){const g=Ta(u.chainId,zt);o.set(g,(o.get(g)??0n)+f.value),w(f.to)&&c.set(g,(c.get(g)??0n)+f.value)}if(f.data?.startsWith(Vm))try{const g=Jn({abi:pt,data:f.data});if(g.functionName!=="transfer")continue;const[h,b]=g.args,v=f.to.toLowerCase(),C=Ta(u.chainId,v);o.set(C,(o.get(C)??0n)+b),w(h)&&c.set(C,(c.get(C)??0n)+b)}catch{}}}let d=null;for(const[u,p]of s){const w=p-(c.get(u)??0n);if(w<=0n)continue;const[f,g]=u.split(":"),h=Number(f),b=Ud(h,g);d??(d=await Qi(t));const v=hd(d,h,g,Qm(h,g));if(!(v>=w))throw new xe("INVALID_PARAMS",`Insufficient Spice ${b.symbol}: needs ${Le(w,b.decimals)}, has ${Le(v,b.decimals)}.`,{chainId:h,token:g,userAddress:t,requiredAmount:w.toString(),balance:v.toString(),balanceSource:"spice"})}for(const[u,p]of o){const[w,f]=u.split(":"),g=Number(w);let h=p-(i.get(u)??0n)-(l.get(u)??0n);const b=r.get(u)??0n;if(b>h&&(h=b),h<=0n)continue;const v=Rt(g),C=f===zt.toLowerCase()?await v.getBalance({address:t}):await v.readContract({address:f,abi:pt,functionName:"balanceOf",args:[t]});if(C>=h)continue;const x=Ud(g,f);throw new xe("INVALID_PARAMS",`Insufficient ${x.symbol} on ${uo(g)}: needs ${Le(h,x.decimals)}, has ${Le(C,x.decimals)}.`,{chainId:g,token:f,userAddress:t,requiredAmount:h.toString(),balance:C.toString(),balanceSource:"wallet"})}}function jm({chainBatches:e,tokenAddress:t,tokenTransferAmount:n,useCustomTransfers:o}){if(!(e.some(Ho)||!(o?e.some(r=>Ho(r)?!1:(r.tokenTransfers??[]).some(a=>a.from==="escrow"&&BigInt(a.amount??0)>0n)):n>0n)))throw new xe("INVALID_PARAMS","Payouts funded from Spice balance require a Spicenet funding batch before the destination chain batch. Deposits into Spice balance and gas-only actions do not need one.",{tokenAddress:t,tokenTransferAmount:n.toString(),useCustomTransfers:!!o})}function Gm(e,t,n,o){t.forEach((r,a)=>{if(!r.to||!r.from||!r.token||r.amount===void 0)throw new xe("INVALID_TOKEN_TRANSFER",`tokenTransfers[${a}] on chain ${e} is missing required fields (to/from/token/amount). This usually means the embedded wallet wasn't ready when the intent was built \u2014 please retry.`,{chainId:e,transferIndex:a,transfer:{from:r.from,to:r.to,token:r.token,amount:r.amount?.toString()},signingAddress:n,useCustomTransfers:o})})}function Bs({user:e,chainBatches:t,tokenAddress:n,tokenTransferAmount:o,exp:r,signature:a,chainAuthorizations:i,useCustomTransfers:s}){const c=t,l=Oo(c),d=c.filter(u=>!Ho(u)).length;if(jm({chainBatches:c,tokenAddress:n,tokenTransferAmount:o,useCustomTransfers:s}),!s&&o>0n&&d>1)throw new xe("INVALID_PARAMS","Multiple non-Spicenet batches require explicit tokenTransfers. Pass useCustomTransfers with per-batch transfers instead of relying on the default escrow payout injection.",{nonSpicenetBatchCount:d,tokenAddress:n,tokenTransferAmount:o.toString()});return{user:e,...i?{chainAuthorizations:i}:{},intents:[{mode:"7702",signatureType:"ecdsa",signature:a,nbf:0,exp:r,chainBatches:l.map((u,p)=>{const w=c[p],f=Ho(w)?[]:s?w.tokenTransfers??[]:o>0n?[{from:"escrow",to:e,token:n,amount:o}]:[];return Gm(Number(u.chainId),f,e,s),{hash:u.hash,chainId:Number(u.chainId),tokenTransfers:f,calls:u.calls}})}]}}function Wd(e,t){const n=t?.depositToEscrow?.gasFundingSource==="action-output"?t.depositToEscrow:null,o=t?.depositToEscrow&&!n?Hm({chainBatches:e,token:t.depositToEscrow.token,amount:t.depositToEscrow.amount}):Vi(e);return{actionOutputDeposit:n,batches:o}}let Gi=!1;function Yr(){const{address:e,isConnected:t,isAuthenticated:n,actions:o}=Po(),r=Z(null),a=Z(0),i=Z(null),{intentStatus:s,startStatusPolling:c,beginStatusTracking:l,applyStepUpdate:d,clearStatus:u}=Mm({checkStepStatus:(C,x)=>ze.checkStepStatus(C,x),retryStep:async(C,x)=>{const[k,E]=C.split("/"),I=parseInt(E||"0",10);await ze.executeStep(k,I,x,{action:"execute"})}}),p=re(()=>{a.current++,i.current=null,u()},[u]),w=Z(o),f=Z(new Map);w.current=o;const g=re((C,x,k,E,I)=>qi({chainBatches:C,signingAddress:x,actions:w.current,cache:f.current,signal:k,onSignatureRequested:E,beforeSign:I}),[]),h=re((C,x,k,E)=>Li(w.current,C,x,k,E),[]),b=re(async(C,x,k,E,I,y)=>{let A={},T={};const F=(R,N,O)=>{O?.actionId&&(A={actionId:O.actionId,intentId:O.intentId,intentIndex:O.intentIndex,totalSteps:O.totalSteps,autoContinue:O.autoContinue,user:y?.userOverride||e}),E?.({step:R,message:N,...T,...A,...O})};if(Gi)throw new xe("CONCURRENT_EXECUTION","A execution transaction is already in progress. Please wait.");Gi=!0;const L=a.current;try{if(!e)throw new xe("WALLET_DISCONNECTED","No wallet connected. Please log in first.");const R=y?.userOverride||e,N=ze.getBaseUrl(),O=i.current;if(O&&G(O.user,R)&&O.apiUrl===N){if(O.resume)return await O.resume(C,x,k,I,E,y);throw O.error}i.current=null;const D=be=>dl(be.map(Ye=>({...Ye,tokenTransfers:Ye.tokenTransfers??[]})),[]),M=D(C),S=be=>new Map(Object.entries(be??{}).filter(([Ye,Be])=>Ye!=="signal"&&(typeof Be!="function"||["prepareForSigning","adjustBatchesForEstimate","resolveActionOutputCredits"].includes(Ye))).map(([Ye,Be])=>[Ye,typeof Be=="function"?Be:JSON.stringify(Be,(Pe,Fe)=>typeof Fe=="bigint"?Fe.toString():Fe)])),U=S(y),q=await ze.supportsAutomaticContinuation({signal:I}),{actionOutputDeposit:X,batches:K}=Wd(C,y);let Q=K,Y=[],oe=y?.useCustomTransfers,he=Ad(Q),ve=null;const ae=async()=>{(y?.walletFundingRequirement||y?.walletFundingRequirements?.length)&&await ji([],R,{walletFundingRequirement:y?.walletFundingRequirement,walletFundingRequirements:y?.walletFundingRequirements});for(let be=0;he.length>0&&be<3;be++)try{ve=await Qi(R);break}catch(Ye){if(I?.aborted)throw new xe("ABORT","Execution transaction aborted");if(be===2)throw new xe("RELAYER_ERROR","Unable to read your Spice balance. Please try again before submitting the transaction.",{cause:Ye});await Io(1e3)}await y?.validateBeforeSubmit?.(Q)};F("building","Preparing your wallet and transaction...");const ie=await g(Q,R,I,()=>F("signing-delegation","Confirm the authorization in your wallet..."),ae);if(F("building","Checking transaction fees and balances..."),I?.aborted)throw new xe("ABORT","Execution transaction aborted");const ne=BigInt(Math.floor(Date.now()/1e3)+3600);if(X){const be=await Pd({chainBatches:C,user:R,token:X.token,grossAmount:X.amount,chainAuthorizations:ie});Q=be.chainBatches,Y=[be.outputCredit],oe=!0}if(!y?.skipPreSubmitFeeEstimate){let be=!1;if(y?.feeExecutionMode==="user-transfer"&&y.adjustBatchesForEstimate&&ze.canValidateActionFees()){const Ye=await ze.validateActionFees(Bs({user:R,chainBatches:Q,tokenAddress:x,tokenTransferAmount:k,exp:Number(ne),signature:"0x00",chainAuthorizations:ie,useCustomTransfers:oe}),{signal:I});r.current=Ye;const Be=await y.adjustBatchesForEstimate({feeEstimate:Ye,chainBatches:Q});be=!Be||Cd(Q,Be),Be&&(Q=Be)}for(let Ye=0;!be&&Ye<10;Ye++){const Be=y?.feeExecutionMode==="user-transfer"?Es(Q,R):Q,Pe=Bs({user:R,chainBatches:Be,tokenAddress:x,tokenTransferAmount:k,exp:Number(ne),signature:"0x00",chainAuthorizations:ie,useCustomTransfers:oe}),Fe=await ze.estimateActionFees(Pe,{signal:I});r.current=Fe;const je=await y?.adjustBatchesForEstimate?.({feeEstimate:Fe,chainBatches:Q}),St=!!je&&Cd(Q,je);if(!je||St){be=!0;break}Q=je}if(!be)throw new xe("INVALID_PARAMS","Fee estimate did not converge. Please retry.")}if(y?.prepareForSigning){const be=await y.prepareForSigning(Q);if(be.length!==Q.length||be.some((Ye,Be)=>Ye.chainId!==Q[Be].chainId||Ye.domain!==Q[Be].domain))throw new Error("The funded route changed before signing");Q=be}y?.resolveActionOutputCredits&&(Y=await y.resolveActionOutputCredits()),(!y?.skipUserFundingPreflight||y.walletFundingRequirement||y.walletFundingRequirements?.length)&&await ji(y?.skipUserFundingPreflight?[]:Q,R,{actionOutputCredits:Y,walletFundingRequirement:y?.walletFundingRequirement,walletFundingRequirements:y?.walletFundingRequirements}),he=Ad(Q),he.length&&!ve&&(ve=await as(R)),await y?.validateBeforeSubmit?.(Q),F("building","Preparing the signing request...");const _=await h(Q,ne,I,()=>F("signing-intent","Confirm the transaction in your wallet..."));if(I?.aborted)throw new xe("ABORT","Execution transaction aborted");if(N!==ze.getBaseUrl())throw new xe("RELAYER_ERROR","The network changed before submission. Review your balances before trying again.");const de=Bs({user:R,chainBatches:Q,tokenAddress:x,tokenTransferAmount:k,exp:Number(ne),signature:_,chainAuthorizations:ie,useCustomTransfers:oe});let W=Q.length-1;for(;W>=0&&Ho(Q[W]);)W--;T={totalSteps:Q.length},W>=0&&(T={...T,destinationChainId:Number(Q[W].chainId),destinationStepIndex:W});const Me=Date.now();if(F("submitting","Submitting to relayer..."),await y?.validateBeforeSubmit?.(Q),I?.aborted)throw new xe("ABORT","Execution transaction aborted");if(N!==ze.getBaseUrl())throw new xe("RELAYER_ERROR","The network changed before submission. Review your balances before trying again.");console.debug("[SpiceFlow:execution]",{phase:"submit-check-complete",at:Date.now(),durationMs:Date.now()-Me});const Oe=Q.length;let z;try{z=await ze.createAction({...de,...y?.externalExecution?{externalExecution:y.externalExecution}:{}},{autoContinue:q,idempotencyKey:y?.idempotencyKey,signal:I,onAccepted:be=>{const[Ye,Be="0"]=be.intentIds[0].split("/"),Pe=parseInt(Be,10);F("executing","Executing on chain...",{actionId:Ye,intentId:`${Ye}/${Pe}`,intentIndex:Pe,totalSteps:Oe,autoContinue:be.autoContinue===!0})}})}catch(be){throw L===a.current&&be instanceof xe&&be.context.submissionStatus==="unknown"&&(i.current={user:R,apiUrl:N,error:be}),be}const[V,te]=z.intentIds[0].split("/"),ue=parseInt(te||"0",10),J=`${V}/${ue}`;F("executing","Executing on chain..."),F("executing","Executing on chain...",{actionId:V,intentId:J,intentIndex:ue,totalSteps:Q.length,autoContinue:z.autoContinue===!0});const ce=new kr;ce.setBaseUrl(N);let He,Xe=0;const Ve=new Map,se=async(be,Ye=E,Be=!1)=>{const Pe=(Fe,je,St)=>Ye?.({step:Fe,message:je,...St});try{if((!Be||!He)&&(He=await Wm({actionId:V,intentIndex:ue,intentId:J,totalSteps:Oe,signal:be,observeOnly:z.autoContinue===!0,startWithExecute:!Be,startStep:Be?Xe:0,executeAttempts:Ve,onStepUpdate:(Fe,je)=>{(je.status==="success"||je.status==="completed")&&(Xe=Math.max(Xe,Fe+1))},relayer:z.autoContinue||Be?ce:ze,...ve?{delayBeforeSpicenetStepMs:0}:{},isSpicenetStep:Fe=>Ho(Q[Fe]),beforeStep:async Fe=>{if(z.autoContinue===!0||!ve||!Ho(Q[Fe]))return;const je=await Fd({deposits:he,baseline:ve,fetchEntries:()=>Qi(R),signal:be});if(be?.aborted)throw new xe("ABORT","Execution transaction aborted");if(!je)throw new xe("POLLING_EXHAUSTED","Your deposit is still waiting for Spice credit. Check this transaction's status before trying again.",{actionId:V,intentId:J,stepId:Fe})},maxExecuteAttemptsForStep:Fe=>Ho(Q[Fe])?6:3,maxPolls:z.autoContinue?Number.POSITIVE_INFINITY:180,onStatusMessage:(Fe,je)=>{Pe("executing",Fe,{txHash:je,actionId:V,intentId:J,intentIndex:ue,totalSteps:Oe,autoContinue:z.autoContinue===!0})}})),y?.requireDestinationReceipt){const Fe=[...Q].reverse().find(je=>!Ho(je));if(!Fe)throw new Error("The action has no destination transaction to verify.");await zi(Rt(Fe.chainId),He,be)}return Pe("success","Transaction successful!",{txHash:He,actionId:V,intentId:J,intentIndex:ue,totalSteps:Oe,autoContinue:z.autoContinue===!0}),i.current?.resume===Ue&&(i.current=null),He||V}catch(Fe){if(Fe instanceof xe&&Fe.code==="ON_CHAIN_REVERT"&&Fe.context.status==="reverted"&&(Fe.context.stepId===0||Oe===1))throw i.current?.resume===Ue&&(i.current=null),Fe;const je=new xe(Fe instanceof xe?Fe.code:"RELAYER_STATUS_ERROR",Fe instanceof xe&&Fe.code==="ON_CHAIN_REVERT"?Fe.message:`Your action was accepted, but its completion could not be confirmed. Check the original action before trying again. ${Fe instanceof Error?Fe.message:""}`.trim(),{...Fe instanceof xe?Fe.context:{},submissionStatus:"accepted",actionId:V,intentId:J,txHash:He,cause:Fe});throw L===a.current&&(i.current={user:R,apiUrl:N,error:je,resume:Ue}),je}},Ue=async(be,Ye,Be,Pe,Fe,je)=>{const St=S(je);if(M!==D(be)||U.size!==St.size||[...U].some(([gt,ft])=>St.get(gt)!==ft)||!G(x,Ye)||k!==Be)throw i.current.error;return se(Pe,Fe,!0)};return await se(I,E)}catch(R){throw console.error("[Execution] Error:",R),F("error",R.message||"Transaction failed",{error:R.message,...R?.context?.submissionStatus==="unknown"?{submissionStatus:"unknown",...typeof R.context.idempotencyKey=="string"&&/^0x[0-9a-f]{64}$/i.test(R.context.idempotencyKey)?{idempotencyKey:R.context.idempotencyKey}:{},...typeof R.context.user=="string"&&/^0x[0-9a-f]{40}$/i.test(R.context.user)?{user:R.context.user}:{}}:{}}),R}finally{Gi=!1}},[e,n,g,h]),v=re(async(C,x,k,E)=>{if(!e&&(!E?.userOverride||E.signAuthorizationsForEstimate))throw new xe("WALLET_DISCONNECTED","No wallet connected. Please log in first.");const I=E?.userOverride||e,y=E?.validateFeeCalls===!0&&E.feeExecutionMode==="user-transfer"&&ze.canValidateActionFees(),{actionOutputDeposit:A,batches:T}=Wd(C,E);let F=T;const L=E?.feeExecutionMode==="user-transfer"&&!y?Es(F,I):F,R=E?.signAuthorizationsForEstimate?await g(L,I):void 0;let N=E?.useCustomTransfers;A&&(F=(await Pd({chainBatches:C,user:I,token:A.token,grossAmount:A.amount,chainAuthorizations:R})).chainBatches,N=!0);const O=E?.feeExecutionMode==="user-transfer"&&!y?Es(F,I):F,D=Bs({user:I,chainBatches:O,tokenAddress:x,tokenTransferAmount:k,exp:Math.floor(Date.now()/1e3)+3600,signature:"0x00",chainAuthorizations:R,useCustomTransfers:N}),M=await(y?ze.validateActionFees(D,{signal:E?.signal}):ze.estimateActionFees(D,{signal:E?.signal,withdrawalSourceBudget:E?.withdrawalSourceBudget}));return r.current=M,M},[e,g]);return{execute:b,estimate:v,lastFeeEstimate:r.current,hasEmbeddedWallet:t&&n,intentStatus:s,startStatusPolling:c,beginStatusTracking:l,applyStepUpdate:d,clearStatus:p}}function tn(e,t,n,o){if(t===n)return e;if(t<n)return e*10n**BigInt(n-t);const r=10n**BigInt(t-n);return o==="ceil"?(e+r-1n)/r:e/r}function Nn(e,t){if(!Number.isInteger(t)||t<0||t>255)throw new Error("Invalid token decimals");if(!/^\d+(?:\.\d*)?$/.test(e))throw new Error("Enter a valid amount.");if((e.split(".")[1]?.replace(/0+$/,"")??"").length>t)throw new Error(`Use at most ${t} decimal places for this source.`);return $n(e,t)}function Bn(e,t,n){const o=tn(e,t,n,"floor");if(tn(o,n,t,"floor")!==e)throw new Error(`Use at most ${n} decimal places for this delivered token.`);return o}function Km(e){return`0x77${e.slice(4)}`}function Zr({userAddress:e,destinationChainId:t,deliveryToken:n,deliveryAmount:o,withdrawalAmount:r,deliveryRecipient:a,deliveryTransfers:i,requestTimestampMs:s,expiresAt:c,metadata:l,requestNonce:d}){if(c!==void 0&&(!Number.isSafeInteger(c)||c<=0))throw new Error("Withdrawal expiry must be a positive Unix timestamp in seconds");const u=i?.length?i:[{token:n,recipient:a,amount:r??o}],p=u.reduce((b,v)=>b+v.amount,0n);if(p<=0n)return null;const w=s??Date.now(),f=BigInt(Math.floor(w/1e3)),g=e??a,h=Km(cr(Zo([{type:"address"},{type:"address"},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},...d?[{type:"bytes32"}]:[]],[g,n,a,p,BigInt(t),BigInt(w),...d?[d]:[]])));return{chainId:ul,domain:"spicenet",tokenTransfers:[],calls:[{to:zt,value:0n,data:Ot({abi:us,functionName:"createWithdrawalRequest",args:[{chainId:`evm:${t}`,idempotenceKey:h,nbf:0n,exp:c===void 0?f+3600n:BigInt(c),metadata:l??"{}",transfers:u.map(b=>({token:xn(b.token).toLowerCase(),to:xn(b.recipient).toLowerCase(),amount:b.amount}))}]})}]}}const Ki=e=>{const[t,n]=H(!1),o=gn(sn),{dark:r,dk:a}=dn();if(we(()=>{n(!0)},[]),!t)return m("div",{className:e.className,children:m("button",{disabled:!0,style:{padding:"12px 24px",fontSize:"16px",backgroundColor:r?a.hoverBg:"#ccc",color:r?a.textSecondary:"white",border:r?`1px solid ${a.buttonBorder}`:"none",borderRadius:"4px",cursor:"not-allowed"},children:"Loading..."})});if(!o){const i='ProviderLogin must be used within SpiceFlowProvider. Please wrap your app with <SpiceFlowProvider provider="privy">.';return m("div",{className:e.className,children:m("button",{onClick:()=>{e.onAuthError&&e.onAuthError(i)},style:{padding:"12px 24px",fontSize:"16px",backgroundColor:r?a.errorBg:"#dc2626",color:r?a.errorText:"white",border:r?`1px solid ${a.errorBorder}`:"none",borderRadius:"4px",cursor:"pointer"},children:"Provider Not Found"})})}return m(Gp,{...e})},Oa=({size:e=20,strokeWidth:t=2,color:n="currentColor",style:o})=>B("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:o,children:[m("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),m("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Ba=(e,t,n,o)=>({width:e,height:e,fill:"none",className:t,"aria-hidden":n??!0,style:o}),Xr=({size:e=16,color:t="currentColor",strokeWidth:n=2,direction:o="down",className:r,style:a,"aria-hidden":i})=>m("svg",{...Ba(e,r,i,{transform:o==="up"?"rotate(180deg)":void 0,transition:"transform 0.3s ease",...a}),viewBox:"0 0 16 16",children:m("path",{d:"M4 6L8 10L12 6",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),Ym=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":a})=>B("svg",{...Ba(e,o,a,r),viewBox:"0 0 24 24",children:[m("circle",{cx:"11",cy:"11",r:"8",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),m("path",{d:"m21 21-4.3-4.3",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})]}),Zm=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":a})=>m("svg",{...Ba(e,o,a,r),viewBox:"0 0 24 24",children:m("path",{d:"m6 9 6 6 6-6",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),Xm=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":a})=>m("svg",{...Ba(e,o,a,r),viewBox:"0 0 24 24",children:m("path",{d:"m9 18 6-6-6-6",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),Ld=({size:e=14,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":a})=>m("svg",{...Ba(e,o,a,r),viewBox:"0 0 16 16",children:m("path",{d:"M3 8L6.5 11.5L13 5",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),qd=({isSuccess:e,type:t,chainName:n,explorerUrl:o,txHash:r,dark:a=!1,successBg:i="#d1fae5",successBorder:s="#6ee7b7",successText:c="#065f46",errorBg:l="#fee2e2",errorBorder:d="#fca5a5",errorText:u="#dc2626",textSecondary:p="#6b7280"})=>B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",borderRadius:"8px",backgroundColor:e?i:l,border:e?`1px solid ${s}`:`1px solid ${d}`},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[m("div",{style:{width:"28px",height:"28px",borderRadius:"50%",backgroundColor:e?"#10b981":"#ef4444",display:"flex",alignItems:"center",justifyContent:"center"},children:e?m("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:m("path",{d:"M11.6667 3.5L5.25 9.91667L2.33333 7",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):m("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:m("path",{d:"M10.5 3.5L3.5 10.5M3.5 3.5L10.5 10.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),B("div",{children:[m("p",{style:{margin:0,fontSize:"14px",fontWeight:600,fontFamily:tt.mono,letterSpacing:"0.5px",color:e?c:u},children:e?`${t.toUpperCase()} CONFIRMED`:`${t.toUpperCase()} FAILED`}),B("p",{style:{margin:"2px 0 0 0",fontSize:"12px",color:p},children:["on ",n]})]})]}),o&&r&&B("a",{href:`${o}/tx/${r}`,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"13px",color:p,textDecoration:"none",whiteSpace:"nowrap"},children:["View on explorer",B("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[m("path",{d:"M9 6.5V9.5C9 9.76522 8.89464 10.0196 8.70711 10.2071C8.51957 10.3946 8.26522 10.5 8 10.5H2.5C2.23478 10.5 1.98043 10.3946 1.79289 10.2071C1.60536 10.0196 1.5 9.76522 1.5 9.5V4C1.5 3.73478 1.60536 3.48043 1.79289 3.29289C1.98043 3.10536 2.23478 3 2.5 3H5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m("path",{d:"M7.5 1.5H10.5V4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m("path",{d:"M5 7L10.5 1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})]})]}),zd=`
4
4
  @keyframes slideUp {
5
5
  from { transform: translateY(100%); }
6
6
  to { transform: translateY(0); }
@@ -13,13 +13,13 @@ import{jsx as m,jsxs as R,Fragment as vn}from"react/jsx-runtime";import{a as G,S
13
13
  from { opacity: 0; transform: translateY(4px); }
14
14
  to { opacity: 1; transform: translateY(0); }
15
15
  }
16
- `,Wd=({title:e,showChevron:t,expanded:n,onToggleDetails:o,showClose:r,onClose:a,fontFamily:i,labelColor:s,textPrimary:c,closeHoverBg:l,closePressedBg:u})=>{const[d,p]=H(!1),[w,f]=H(!1);return R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:o?"pointer":"default"},onClick:o,children:[R("span",{style:{fontSize:"13px",fontWeight:500,color:s,fontFamily:i},children:[e," "]}),t&&m(Xr,{color:s,direction:n?"up":"down"})]}),r&&m("button",{onClick:a,onMouseEnter:()=>p(!0),onMouseLeave:()=>{p(!1),f(!1)},onMouseDown:()=>f(!0),onMouseUp:()=>f(!1),style:{background:w?u:d?l:"none",border:"none",borderRadius:"4px",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:d||w?c:s,transform:w?"scale(0.9)":d?"scale(1.1)":"scale(1)",transition:ho.interactive},children:m(Ta,{size:16})})]})},Ld=({chainName:e,bg:t,border:n,textPrimary:o,labelColor:r,primaryColor:a})=>R("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"20px 16px",borderRadius:"8px",backgroundColor:t,border:`1px solid ${n}`,gap:"12px"},children:[m(Ko,{size:24,borderWidth:3,color:a}),R("div",{children:[m("p",{style:{margin:0,fontSize:"14px",fontWeight:600,fontFamily:nt.mono,letterSpacing:"0.5px",color:o},children:"PROCESSING TRANSACTION"}),R("p",{style:{margin:"2px 0 0 0",fontSize:"12px",color:r},children:["on ",e]})]})]}),qd=({bg:e,border:t,left:n,right:o})=>R("div",{style:{padding:"10px 12px",borderRadius:"6px",backgroundColor:e,border:`1px solid ${t}`,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n,o]}),Qi=({isOpen:e,onClose:t,onComplete:n,closeOnComplete:o=!1,type:r,results:a,chainId:i,chainName:s,explorerUrl:c,theme:l,styles:u,dark:d,intentStatus:p,onRetry:w,onNewTx:f,onRetryTx:g,asOverlay:h=!0,isProcessing:b=!1,showStepBreakdown:x=!0})=>{const{theme:C,primaryColor:v,dark:A,dk:T}=dn(u,d),I=l||C,[y,k]=H(!1),E=s??(i?io(i):"Network"),F=c??(i&&as(i,"").replace(/\/tx\/.*$/,"")||void 0),U=A?T.cardBg:"#ffffff",O=A?"0 4px 20px rgba(0, 0, 0, 0.4)":"0 4px 20px rgba(0, 0, 0, 0.1)",M=A?"0 -4px 8px -2px rgba(0, 0, 0, 0.4)":"0 -4px 8px -2px rgba(0, 0, 0, 0.15)",B=T.textSecondary,D=A?T.textPrimary:"#374151",W=A?T.inputBg:"#f9fafb",S=A?T.inputBorder:"#e5e7eb",q=A?T.inputBg:"#f3f4f6",z=A?T.inputBorder:"#e5e7eb",[te,Y]=H(!0),j=A?T.inputBg:"#f9fafb",K=A?T.hoverBg:"#f3f4f6",X=A?{successBg:T.successBg,successBorder:T.successBorder,successText:T.successText,errorBg:T.errorBg,errorBorder:T.errorBorder,errorText:T.errorText}:{},xe=p?.steps.find(ue=>ue.status==="failed")?.error;he(()=>{!e&&!p&&k(!1)},[e,p]);const ge=()=>{k(!0),setTimeout(()=>{window.dispatchEvent(new CustomEvent("tx-complete",{detail:{type:r,results:a}})),window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:{type:r,status:"success",results:a}})),n?.(),o&&t()},300)},ve=()=>{Y(!te)};if(p){const{steps:ue,overallStatus:P}=p,Le=P==="processing",Be=P==="success",L=P==="failed",V=ue.filter(se=>se.transactionHash)[0],oe=ue.length>1?ue.map(se=>se.chainName).filter(Boolean).join(" and "):E!=="Network"?E:ue[0]?.chainName||E,le=F||(V?as(V.chainId,V.transactionHash||"").replace(/\/tx\/.*$/,""):void 0),Z=R(vn,{children:[m(Wd,{title:Le?`Processing ${r.charAt(0).toUpperCase()+r.slice(1)}`:`${r.charAt(0).toUpperCase()+r.slice(1)} results`,showChevron:x,expanded:te,onToggleDetails:ve,showClose:!Le,onClose:t,fontFamily:u?.fontFamily||I.typography.fontFamily,labelColor:B,textPrimary:D,closeHoverBg:j,closePressedBg:K}),m("div",{style:{marginBottom:"16px"},children:Le?m(Ld,{chainName:oe,bg:q,border:z,textPrimary:D,labelColor:B,primaryColor:v}):m(Pd,{isSuccess:Be,type:r,chainName:oe,explorerUrl:le,txHash:V?.transactionHash,dark:A,...X,textSecondary:B})}),x&&m("div",{style:{overflow:"hidden",maxHeight:te?"300px":"0px",opacity:te?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease",marginBottom:te?"16px":"0"},children:m("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:ue.map((se,We)=>{const He=se.transactionHash?as(se.chainId,se.transactionHash):null;return m(qd,{bg:W,border:S,left:m("span",{style:{fontSize:"13px",color:D},children:se.chainName?`On ${se.chainName}`:se.description||`Step ${We+1}`}),right:R("span",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"12px",color:se.status==="success"?"#10b981":se.status==="failed"?"#ef4444":B,fontWeight:500},children:[He&&m("a",{href:He,target:"_blank",rel:"noopener noreferrer",style:{color:A?T.infoText:"#2563eb",textDecoration:"none"},onClick:ye=>ye.stopPropagation(),children:"View"}),se.status==="success"?"\u2713":se.status==="failed"?"\u2717":"\u25CB"]})},We)})})}),!Le&&R("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[L&&w&&m(Yt,{variant:"outline",fullWidth:!0,onClick:w,theme:I,styles:u,dark:A,children:"TRY AGAIN"}),f&&R(Yt,{variant:"outline",fullWidth:!0,onClick:f,theme:I,styles:u,dark:A,children:["NEW ",r.toUpperCase()," \u2192"]})]})]});return h?R("div",{style:{position:"absolute",bottom:0,left:0,right:0,zIndex:10,animation:y?"slideDown 0.3s ease-in forwards":"slideUp 0.3s ease-out forwards",pointerEvents:"auto"},children:[m("div",{style:{backgroundColor:U,borderRadius:"12px 12px 0 0",width:"100%",padding:"18px 24px 24px",boxShadow:M},children:Z}),m("style",{children:Ud})]}):m("div",{style:{backgroundColor:U,borderRadius:"12px",padding:"24px",width:"100%",boxShadow:O},children:Z})}if(!e&&!b||!b&&(!a||a.length===0))return null;const Se=a?a.every(ue=>ue.success):!1,ne=a?.[0],_=[...a??[]].reverse().find(ue=>ue.txHash)?.txHash||ne?.txHash;return R("div",{style:{position:h?"absolute":"relative",bottom:h?0:void 0,left:h?0:void 0,right:h?0:void 0,zIndex:h?10:void 0,animation:h?y?"slideDown 0.3s ease-in forwards":"slideUp 0.3s ease-out forwards":void 0,pointerEvents:"auto",width:"100%"},children:[m("div",{style:{backgroundColor:U,borderRadius:h?"12px 12px 0 0":"12px",width:"100%",padding:"18px 0 24px",boxShadow:h?M:O},children:R("div",{style:{width:"100%",boxSizing:"border-box",padding:"0 24px"},children:[m(Wd,{title:b?`Processing ${r.charAt(0).toUpperCase()+r.slice(1)}`:`${r.charAt(0).toUpperCase()+r.slice(1)} results`,showChevron:!b&&x,expanded:te,onToggleDetails:b?void 0:ve,showClose:!b,onClose:t,fontFamily:u?.fontFamily||I.typography.fontFamily,labelColor:B,textPrimary:D,closeHoverBg:j,closePressedBg:K}),m("div",{style:{marginBottom:"16px",animation:"statusFadeIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both"},children:b?m(Ld,{chainName:E,bg:q,border:z,textPrimary:D,labelColor:B,primaryColor:v}):m(Pd,{isSuccess:Se,type:r,chainName:E,explorerUrl:F,txHash:_,dark:A,...X,textSecondary:B})},b?"processing":Se?"success":"error"),!b&&x&&a&&a.length>1&&m("div",{style:{overflow:"hidden",maxHeight:te?"200px":"0px",opacity:te?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease",marginBottom:te?"16px":"0"},children:m("div",{style:{maxHeight:"180px",overflowY:"auto",display:"flex",flexDirection:"column",gap:"8px"},children:a.map((ue,P)=>m(qd,{bg:W,border:S,left:R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[m("span",{style:{fontWeight:600,fontSize:"13px",color:T.textPrimary,fontFamily:nt.mono},children:ue.asset.symbol}),ue.amount&&m("span",{style:{fontSize:"12px",color:B},children:ue.amount})]}),right:m("span",{style:{fontSize:"12px",color:ue.success?"#10b981":"#ef4444",fontWeight:500},children:ue.success?"\u2713":"\u2717"})},P))})}),!b&&!Se&&a&&m("div",{style:{padding:"12px",backgroundColor:T.errorBg,border:`1px solid ${T.errorBorder}`,borderRadius:"8px",marginBottom:"16px"},children:m("p",{style:{fontSize:"13px",color:T.errorText,margin:0,lineHeight:1.5},children:xe||a.find(ue=>!ue.success)?.error||`${r.charAt(0).toUpperCase()+r.slice(1)} failed. Please try again.`})}),!b&&R("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[!Se&&g&&R(Yt,{variant:"outline",fullWidth:!0,onClick:g,theme:I,styles:u,dark:A,children:["TRY AGAIN ",r.toUpperCase()]}),Se&&m(Yt,{variant:"outline",fullWidth:!0,onClick:ge,theme:I,styles:u,dark:A,children:"DONE"})]})]})}),m("style",{children:Ud})]})};function Km(e,t){switch(e){case"success":return{bg:t.successBg,border:t.successBorder,text:t.successText};case"warning":return{bg:t.warningBg,border:t.warningBorder,text:t.warningText};case"error":return{bg:t.errorBg,border:t.errorBorder,text:t.errorText};case"info":return{bg:t.infoBg,border:t.infoBorder,text:t.infoText}}}const Gn=({variant:e,palette:t,children:n,icon:o,style:r,fontFamily:a,size:i="default"})=>{const s=Km(e,t),c=i==="compact";return R("div",{role:e==="error"?"alert":"status",style:{backgroundColor:s.bg,border:`1px solid ${s.border}`,borderRadius:c?"7px":"8px",padding:c?"8px 10px":"12px 16px",color:s.text,fontSize:c?"12px":"13px",lineHeight:c?1.4:1.5,display:"flex",alignItems:"flex-start",gap:c?"6px":"8px",fontFamily:a,...r},children:[o&&m("span",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:o}),m("span",{style:{minWidth:0,overflowWrap:"anywhere"},children:n})]})};function Os({activity:e,palette:t,onRefresh:n}){return R(vn,{children:[e.actions.length>0&&m(Gn,{variant:"info",palette:t,style:{marginTop:12,marginBottom:12},children:R("details",{children:[m("summary",{children:"Recent wallet activity"}),e.actions.map(o=>{const r=o.intents.flatMap(s=>s.steps),a=r.filter(s=>["success","completed"].includes(s.status)).length,i=r.some(s=>["error","reverted"].includes(s.status));return R("p",{children:[o.actionId,": ",a,"/",r.length," steps completed.",i?" Remaining work stopped; completed transfers are retained.":a<r.length?" Awaiting backend confirmation.":" Completed."]},o.actionId)}),m("button",{type:"button",onClick:()=>{e.refresh(),n?.()},children:n?"Refresh activity and balances":"Refresh activity"})]})}),e.error&&m(Gn,{variant:"warning",palette:t,children:e.error})]})}const zd=nt.mono,vo=({label:e,value:t,palette:n,valueColor:o,labelColor:r,style:a})=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",...a},children:[m("span",{style:{fontSize:"12px",color:r??n.textSecondary,fontFamily:zd,fontWeight:500,letterSpacing:"0.03em",flexShrink:0,whiteSpace:"nowrap"},children:e}),m("span",{style:{fontSize:"13px",color:o??n.textPrimary,fontWeight:500,fontFamily:zd,minWidth:0,textAlign:"right",overflowWrap:"anywhere"},children:t})]});var Hd="data:image/svg+xml,%3csvg width='108' height='22' viewBox='0 0 108 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1.9916 11.9854V11.2041H3.98379C4.48835 11.2041 4.87897 11.0739 5.15566 10.8135C5.43236 10.5498 5.5707 10.1868 5.5707 9.72461V9.71484C5.5707 9.24935 5.43236 8.88639 5.15566 8.62598C4.87897 8.36556 4.48835 8.23535 3.98379 8.23535H1.9916V7.4541H4.2084C4.65111 7.4541 5.04173 7.5485 5.38027 7.7373C5.71882 7.92611 5.98411 8.18978 6.17617 8.52832C6.37148 8.86686 6.46914 9.25911 6.46914 9.70508V9.71484C6.46914 10.1608 6.37148 10.5547 6.17617 10.8965C5.98411 11.2383 5.71882 11.5052 5.38027 11.6973C5.04173 11.8893 4.65111 11.9854 4.2084 11.9854H1.9916ZM1.55215 14.5V7.4541H2.43106V14.5H1.55215ZM9.51875 14.5928C9.0207 14.5928 8.58939 14.4837 8.2248 14.2656C7.86348 14.0443 7.58353 13.7301 7.38496 13.3232C7.18965 12.9163 7.09199 12.4329 7.09199 11.873V11.8633C7.09199 11.3001 7.18965 10.8151 7.38496 10.4082C7.58353 10.0013 7.86348 9.6888 8.2248 9.4707C8.58939 9.2526 9.0207 9.14355 9.51875 9.14355C10.0201 9.14355 10.4514 9.2526 10.8127 9.4707C11.174 9.6888 11.4523 10.0013 11.6477 10.4082C11.8462 10.8151 11.9455 11.3001 11.9455 11.8633V11.873C11.9455 12.4329 11.8462 12.9163 11.6477 13.3232C11.4523 13.7301 11.174 14.0443 10.8127 14.2656C10.4514 14.4837 10.0201 14.5928 9.51875 14.5928ZM9.51875 13.8408C9.85078 13.8408 10.1324 13.7627 10.3635 13.6064C10.5946 13.4502 10.7704 13.2256 10.8908 12.9326C11.0145 12.6396 11.0764 12.2865 11.0764 11.873V11.8633C11.0764 11.4466 11.0145 11.0918 10.8908 10.7988C10.7704 10.5059 10.5946 10.2829 10.3635 10.1299C10.1324 9.97363 9.85078 9.89551 9.51875 9.89551C9.18672 9.89551 8.90514 9.97363 8.67402 10.1299C8.4429 10.2829 8.26549 10.5059 8.1418 10.7988C8.02135 11.0918 7.96113 11.4466 7.96113 11.8633V11.873C7.96113 12.2865 8.02135 12.6396 8.1418 12.9326C8.26549 13.2256 8.4429 13.4502 8.67402 13.6064C8.90514 13.7627 9.18672 13.8408 9.51875 13.8408ZM13.7842 14.5L12.3096 9.23633H13.1592L14.1943 13.4453H14.2725L15.4492 9.23633H16.2549L17.4316 13.4453H17.5098L18.5449 9.23633H19.3896L17.915 14.5H17.0605L15.8838 10.4277H15.8057L14.6338 14.5H13.7842ZM22.1658 14.5928C21.6645 14.5928 21.2332 14.4821 20.8719 14.2607C20.5138 14.0394 20.2371 13.7269 20.0418 13.3232C19.8497 12.9163 19.7537 12.4378 19.7537 11.8877V11.8828C19.7537 11.3392 19.8497 10.8623 20.0418 10.4521C20.2371 10.042 20.5122 9.72135 20.867 9.49023C21.2218 9.25911 21.6368 9.14355 22.1121 9.14355C22.5906 9.14355 23.0008 9.25423 23.3426 9.47559C23.6876 9.69694 23.9513 10.0062 24.1336 10.4033C24.3191 10.7972 24.4119 11.2562 24.4119 11.7803V12.1123H20.1932V11.4336H23.9773L23.5574 12.0537V11.7168C23.5574 11.3034 23.4956 10.9632 23.3719 10.6963C23.2482 10.4294 23.0773 10.2308 22.8592 10.1006C22.6411 9.96712 22.3904 9.90039 22.1072 9.90039C21.824 9.90039 21.5701 9.97038 21.3455 10.1104C21.1242 10.2471 20.9484 10.4505 20.8182 10.7207C20.688 10.9909 20.6229 11.3229 20.6229 11.7168V12.0537C20.6229 12.4281 20.6863 12.7487 20.8133 13.0156C20.9402 13.2793 21.1209 13.4827 21.3553 13.626C21.5896 13.766 21.8663 13.8359 22.1854 13.8359C22.423 13.8359 22.6297 13.8034 22.8055 13.7383C22.9813 13.6732 23.1261 13.5902 23.24 13.4893C23.354 13.3883 23.4337 13.2858 23.4793 13.1816L23.4988 13.1377H24.3484L24.3387 13.1768C24.2931 13.3558 24.2117 13.5299 24.0945 13.6992C23.9806 13.8652 23.8325 14.0166 23.6502 14.1533C23.4679 14.2868 23.2514 14.3942 23.0008 14.4756C22.7534 14.5537 22.4751 14.5928 22.1658 14.5928ZM25.4303 14.5V9.23633H26.2799V10.0176H26.358C26.4589 9.74089 26.6298 9.52604 26.8707 9.37305C27.1116 9.22005 27.4094 9.14355 27.7643 9.14355C27.8456 9.14355 27.9254 9.14844 28.0035 9.1582C28.0849 9.16471 28.1467 9.17122 28.1891 9.17773V10.0029C28.1012 9.98665 28.0149 9.97526 27.9303 9.96875C27.8489 9.95898 27.761 9.9541 27.6666 9.9541C27.3964 9.9541 27.1572 10.0078 26.9488 10.1152C26.7405 10.2227 26.5761 10.3724 26.4557 10.5645C26.3385 10.7565 26.2799 10.9811 26.2799 11.2383V14.5H25.4303ZM30.9408 14.5928C30.4395 14.5928 30.0082 14.4821 29.6469 14.2607C29.2888 14.0394 29.0121 13.7269 28.8168 13.3232C28.6247 12.9163 28.5287 12.4378 28.5287 11.8877V11.8828C28.5287 11.3392 28.6247 10.8623 28.8168 10.4521C29.0121 10.042 29.2872 9.72135 29.642 9.49023C29.9968 9.25911 30.4118 9.14355 30.8871 9.14355C31.3656 9.14355 31.7758 9.25423 32.1176 9.47559C32.4626 9.69694 32.7263 10.0062 32.9086 10.4033C33.0941 10.7972 33.1869 11.2562 33.1869 11.7803V12.1123H28.9682V11.4336H32.7523L32.3324 12.0537V11.7168C32.3324 11.3034 32.2706 10.9632 32.1469 10.6963C32.0232 10.4294 31.8523 10.2308 31.6342 10.1006C31.4161 9.96712 31.1654 9.90039 30.8822 9.90039C30.599 9.90039 30.3451 9.97038 30.1205 10.1104C29.8992 10.2471 29.7234 10.4505 29.5932 10.7207C29.463 10.9909 29.3979 11.3229 29.3979 11.7168V12.0537C29.3979 12.4281 29.4613 12.7487 29.5883 13.0156C29.7152 13.2793 29.8959 13.4827 30.1303 13.626C30.3646 13.766 30.6413 13.8359 30.9604 13.8359C31.198 13.8359 31.4047 13.8034 31.5805 13.7383C31.7563 13.6732 31.9011 13.5902 32.015 13.4893C32.129 13.3883 32.2087 13.2858 32.2543 13.1816L32.2738 13.1377H33.1234L33.1137 13.1768C33.0681 13.3558 32.9867 13.5299 32.8695 13.6992C32.7556 13.8652 32.6075 14.0166 32.4252 14.1533C32.2429 14.2868 32.0264 14.3942 31.7758 14.4756C31.5284 14.5537 31.2501 14.5928 30.9408 14.5928ZM36.1486 14.5928C35.7059 14.5928 35.3186 14.4805 34.9865 14.2559C34.6545 14.0312 34.3973 13.7155 34.215 13.3086C34.0328 12.8984 33.9416 12.4199 33.9416 11.873V11.8633C33.9416 11.3132 34.0328 10.8346 34.215 10.4277C34.3973 10.0208 34.6529 9.70508 34.9816 9.48047C35.3137 9.25586 35.7027 9.14355 36.1486 9.14355C36.3895 9.14355 36.6158 9.18262 36.8273 9.26074C37.0422 9.33561 37.2326 9.44141 37.3986 9.57812C37.5647 9.71484 37.6949 9.8776 37.7893 10.0664H37.8674V7.14648H38.717V14.5H37.8674V13.6602H37.7893C37.6818 13.8555 37.5467 14.0231 37.384 14.1631C37.2212 14.2998 37.0357 14.4056 36.8273 14.4805C36.619 14.5553 36.3928 14.5928 36.1486 14.5928ZM36.3439 13.8408C36.663 13.8408 36.938 13.7611 37.1691 13.6016C37.4003 13.4421 37.5777 13.2158 37.7014 12.9229C37.8251 12.6266 37.8869 12.2767 37.8869 11.873V11.8633C37.8869 11.4564 37.8251 11.1064 37.7014 10.8135C37.5777 10.5205 37.4003 10.2943 37.1691 10.1348C36.938 9.97526 36.663 9.89551 36.3439 9.89551C36.0249 9.89551 35.7499 9.97526 35.5188 10.1348C35.2909 10.291 35.1151 10.5156 34.9914 10.8086C34.871 11.1016 34.8107 11.4531 34.8107 11.8633V11.873C34.8107 12.2799 34.871 12.6315 34.9914 12.9277C35.1151 13.2207 35.2909 13.4469 35.5188 13.6064C35.7499 13.7627 36.0249 13.8408 36.3439 13.8408ZM45.1775 14.5928C44.9334 14.5928 44.7072 14.5553 44.4988 14.4805C44.2905 14.4056 44.1049 14.2998 43.9422 14.1631C43.7794 14.0231 43.6443 13.8555 43.5369 13.6602H43.4588V14.5H42.6092V7.14648H43.4588V10.0664H43.5369C43.6346 9.8776 43.7648 9.71484 43.9275 9.57812C44.0936 9.44141 44.2824 9.33561 44.4939 9.26074C44.7088 9.18262 44.9367 9.14355 45.1775 9.14355C45.6235 9.14355 46.0109 9.25586 46.3396 9.48047C46.6717 9.70508 46.9288 10.0208 47.1111 10.4277C47.2934 10.8346 47.3846 11.3132 47.3846 11.8633V11.873C47.3846 12.4199 47.2934 12.8984 47.1111 13.3086C46.9288 13.7155 46.6717 14.0312 46.3396 14.2559C46.0109 14.4805 45.6235 14.5928 45.1775 14.5928ZM44.9822 13.8408C45.3045 13.8408 45.5796 13.7627 45.8074 13.6064C46.0353 13.4469 46.2094 13.2207 46.3299 12.9277C46.4536 12.6315 46.5154 12.2799 46.5154 11.873V11.8633C46.5154 11.4531 46.4536 11.1016 46.3299 10.8086C46.2094 10.5156 46.0353 10.291 45.8074 10.1348C45.5796 9.97526 45.3045 9.89551 44.9822 9.89551C44.6632 9.89551 44.3881 9.97526 44.157 10.1348C43.9259 10.2943 43.7485 10.5205 43.6248 10.8135C43.5011 11.1064 43.4393 11.4564 43.4393 11.8633V11.873C43.4393 12.2767 43.5011 12.6266 43.6248 12.9229C43.7485 13.2158 43.9259 13.4421 44.157 13.6016C44.3881 13.7611 44.6632 13.8408 44.9822 13.8408ZM48.6568 16.3457C48.6015 16.3457 48.5396 16.3424 48.4713 16.3359C48.4029 16.3327 48.3395 16.3262 48.2809 16.3164V15.6182C48.3329 15.6279 48.3899 15.6344 48.4518 15.6377C48.5136 15.641 48.5738 15.6426 48.6324 15.6426C48.8733 15.6426 49.0702 15.5807 49.2232 15.457C49.3795 15.3333 49.5048 15.1201 49.5992 14.8174L49.6969 14.5049L47.7486 9.23633H48.6568L50.2779 14.0996L49.941 13.5674H50.3414L50.0045 14.0996L51.6207 9.23633H52.5143L50.4586 14.8223C50.3154 15.2161 50.164 15.5238 50.0045 15.7451C49.845 15.9665 49.6578 16.1211 49.443 16.209C49.2314 16.3001 48.9693 16.3457 48.6568 16.3457Z' fill='%230E0D0B'/%3e%3cpath d='M62.7081 13.27C62.742 13.27 62.7642 13.3057 62.7491 13.3362V13.336L61.1229 16.6083C61.0892 16.6761 60.9926 16.6759 60.959 16.6083L59.3382 13.336C59.3232 13.3057 59.3453 13.27 59.3792 13.27H62.7081Z' fill='%23EA4B4B'/%3e%3cpath d='M61.0026 9.71913C61.0194 9.68524 61.0678 9.68524 61.0845 9.71913L62.747 13.0897C62.762 13.12 62.7399 13.1557 62.706 13.1557H59.3763C59.3424 13.1557 59.3203 13.12 59.3353 13.0897L61.0026 9.71913Z' fill='%23EA4B4B'/%3e%3cpath d='M60.8426 9.63827C60.8766 9.63827 60.8987 9.6741 60.8835 9.70444L59.2164 13.0594C59.1995 13.0932 59.1513 13.0932 59.1345 13.0594L57.5001 9.77047C57.47 9.70962 57.5142 9.63827 57.5821 9.63827H60.8426Z' fill='%23EA4B4B'/%3e%3cpath d='M64.5036 9.63617C64.5715 9.63618 64.6157 9.70753 64.5855 9.76838H64.5854L62.9512 13.0573C62.9344 13.0911 62.8862 13.0912 62.8692 13.0573L61.2021 9.70235C61.187 9.672 61.2091 9.63617 61.2431 9.63617H64.5036Z' fill='%23EA4B4B'/%3e%3cpath d='M62.8284 6.18281C62.862 6.11518 62.9586 6.11518 62.9922 6.18281L64.5855 9.38969C64.6157 9.45054 64.5715 9.52189 64.5036 9.52189H61.2431C61.2091 9.52189 61.187 9.48605 61.2021 9.45571L62.8283 6.18265L62.8284 6.18281Z' fill='%23EA4B4B'/%3e%3cpath d='M62.3131 6.13196C62.381 6.13196 62.4252 6.20331 62.3951 6.26416C62.154 6.74935 61.9128 7.23455 61.6718 7.71975H61.6716C61.4225 8.22125 61.1733 8.72259 60.9242 9.22409C60.9074 9.25799 60.859 9.25799 60.8422 9.22409L60.6305 8.79587C60.6275 8.78957 60.6259 8.78263 60.6259 8.77553V6.22349C60.6259 6.17297 60.6668 6.13196 60.7173 6.13196H62.3131Z' fill='%23EA4B4B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M74.8537 10.0096C75.2721 10.0096 75.654 10.1125 75.9993 10.3184C76.3513 10.5177 76.6303 10.8032 76.8361 11.1751C77.0487 11.547 77.1549 11.9953 77.1549 12.52V12.6495C77.1549 13.1675 77.052 13.6158 76.8461 13.9943C76.6402 14.3729 76.3613 14.6618 76.0093 14.861C75.664 15.0603 75.2788 15.1599 74.8537 15.1599C74.515 15.1599 74.2261 15.1134 73.9871 15.0204C73.7546 14.9341 73.5653 14.8212 73.4192 14.6817C73.2731 14.5423 73.1602 14.3995 73.0805 14.2534H72.941V16.9659L72.1541 16.0013V10.1491H72.9211V10.956H73.0352C73.2729 10.6733 73.3893 10.4911 73.6683 10.2985C73.9538 10.1059 74.349 10.0096 74.8537 10.0096ZM74.6445 10.7069C74.1464 10.7069 73.7347 10.8696 73.4092 11.195C73.0905 11.5138 72.9311 11.9621 72.9311 12.5399V12.6296C72.9311 13.2074 73.0905 13.659 73.4092 13.9844C73.7347 14.3032 74.1464 14.4626 74.6445 14.4626C75.1492 14.4626 75.5577 14.3032 75.8698 13.9844C76.1886 13.659 76.348 13.2074 76.348 12.6296V12.5399C76.348 11.9621 76.1886 11.5138 75.8698 11.195C75.5577 10.8696 75.1492 10.7069 74.6445 10.7069Z' fill='%230E0D0B'/%3e%3cpath d='M78.5848 11.9583L78.5555 15.4596L77.7681 14.4846V10.9583L78.5848 11.9583Z' fill='%230E0D0B'/%3e%3cpath d='M101.588 10.2986H102.444L103 10.986H101.588V10.9867H100.802L101.588 11.9623V14.1937C101.588 14.3929 101.685 14.4926 101.877 14.4926H102.379L102.928 15.17H101.668C101.389 15.17 101.173 15.0936 101.021 14.9409C100.874 14.7881 100.801 14.5789 100.801 14.3133V10.986H99.8799L99.3217 10.2986H100.801V9.13501H101.588V10.2986Z' fill='%230E0D0B'/%3e%3cpath d='M69.0133 7.90764C69.4848 7.90764 69.9065 7.99068 70.2784 8.15671C70.6569 8.3161 70.9525 8.55517 71.165 8.87395C71.3842 9.18609 71.4938 9.58126 71.4938 10.0594V10.4778H70.667V10.0594C70.667 9.72072 70.5939 9.44842 70.4477 9.24254C70.3083 9.03666 70.1124 8.88392 69.86 8.7843C69.6143 8.68469 69.332 8.63487 69.0133 8.63487C68.555 8.63487 68.1864 8.7378 67.9075 8.94367C67.6286 9.14291 67.4891 9.4285 67.4891 9.80041C67.4891 10.0461 67.5488 10.2453 67.6684 10.3981C67.7879 10.5508 67.9573 10.677 68.1764 10.7767C68.3956 10.8696 68.658 10.9527 68.9635 11.0257L69.4815 11.1552C69.8866 11.2416 70.2485 11.3611 70.5673 11.5138C70.8927 11.6599 71.1517 11.8625 71.3443 12.1215C71.5369 12.3739 71.6332 12.706 71.6332 13.1177C71.6332 13.5295 71.5303 13.8881 71.3244 14.1936C71.1185 14.4991 70.8263 14.7382 70.4477 14.9109C70.0758 15.0769 69.6375 15.1599 69.1328 15.1599C68.6281 15.1599 68.1765 15.0702 67.778 14.8909C67.3795 14.7116 67.0641 14.4426 66.8316 14.084C66.6058 13.7187 66.4929 13.2638 66.4929 12.7192V12.51H67.3197V12.7192C67.3197 13.297 67.4891 13.7287 67.8278 14.0143C68.1665 14.2932 68.6015 14.4327 69.1328 14.4327C69.6774 14.4327 70.0924 14.3098 70.378 14.0641C70.6636 13.8183 70.8064 13.5095 70.8064 13.1376C70.8064 12.8786 70.74 12.6727 70.6072 12.52C70.481 12.3673 70.3017 12.2444 70.0692 12.1514C69.8368 12.0518 69.5645 11.9655 69.2523 11.8924L68.7343 11.7629C68.3292 11.6566 67.9706 11.5271 67.6584 11.3744C67.3463 11.2216 67.1006 11.0224 66.9213 10.7767C66.7486 10.5243 66.6623 10.2022 66.6623 9.81035C66.6623 9.41852 66.7585 9.07981 66.9511 8.79424C67.1504 8.50866 67.426 8.28953 67.778 8.13678C68.1366 7.98404 68.5484 7.90764 69.0133 7.90764Z' fill='%230E0D0B'/%3e%3cpath d='M81.6544 10.0096C82.1193 10.0096 82.5145 10.0959 82.8399 10.2686C83.1719 10.4412 83.431 10.6704 83.6169 10.956C83.8095 11.2415 83.9324 11.5471 83.9855 11.8725L83.2185 12.0318C83.1853 11.7928 83.1056 11.5736 82.9794 11.3744C82.8598 11.1752 82.6905 11.0158 82.4713 10.8962C82.2521 10.7767 81.9832 10.7169 81.6644 10.7169C81.339 10.7169 81.0468 10.7899 80.7877 10.936C80.5354 11.0821 80.3328 11.2914 80.1801 11.5637C80.034 11.836 79.9609 12.1614 79.9609 12.5399V12.6296C79.9609 13.0081 80.034 13.3335 80.1801 13.6058C80.3328 13.8781 80.5354 14.0873 80.7877 14.2334C81.0468 14.3795 81.339 14.4526 81.6644 14.4526C82.1492 14.4526 82.5178 14.3264 82.7702 14.0741C83.0292 13.8217 83.1886 13.5095 83.2483 13.1376L84.0254 13.307C83.9523 13.6257 83.8195 13.9279 83.6269 14.2135C83.4343 14.4991 83.172 14.7282 82.8399 14.9009C82.5145 15.0735 82.1193 15.1599 81.6544 15.1599C81.1829 15.1599 80.7579 15.0603 80.3793 14.861C80.0074 14.6551 79.7119 14.363 79.4927 13.9844C79.2802 13.6059 79.1739 13.1575 79.1739 12.6395V12.5299C79.1739 12.0053 79.2802 11.557 79.4927 11.1851C79.7119 10.8066 80.0074 10.5177 80.3793 10.3184C80.7579 10.1126 81.1829 10.0096 81.6544 10.0096Z' fill='%230E0D0B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M86.7515 10.0096C87.2097 10.0096 87.6149 10.1092 87.9668 10.3084C88.3188 10.501 88.5944 10.78 88.7937 11.1452C88.9929 11.5105 89.0925 11.9389 89.0925 12.4304V12.7889H85.1177C85.1377 13.3136 85.3071 13.7254 85.6258 14.0243C85.9446 14.3165 86.3431 14.4626 86.8212 14.4626C87.2396 14.4626 87.5617 14.3663 87.7875 14.1737C88.0133 13.9811 88.186 13.752 88.3056 13.4863L88.983 13.815C88.8833 14.0209 88.7439 14.2268 88.5646 14.4327C88.3919 14.6386 88.1628 14.8113 87.8772 14.9507C87.5983 15.0902 87.2396 15.1599 86.8013 15.1599C86.3099 15.1599 85.8782 15.057 85.5063 14.8511C85.1344 14.6386 84.8455 14.343 84.6396 13.9645C84.4337 13.5859 84.3307 13.1476 84.3307 12.6495V12.5299C84.3307 12.0252 84.4337 11.5836 84.6396 11.205C84.8455 10.8265 85.1311 10.5342 85.4963 10.3284C85.8616 10.1159 86.28 10.0096 86.7515 10.0096ZM86.7515 10.7069C86.3066 10.7069 85.9413 10.8331 85.6557 11.0855C85.3701 11.3378 85.1941 11.6898 85.1277 12.1414H88.2956C88.269 11.6898 88.113 11.3378 87.8274 11.0855C87.5485 10.8331 87.1898 10.7069 86.7515 10.7069Z' fill='%230E0D0B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M97.1624 10.0096C97.6207 10.0096 98.0258 10.1092 98.3778 10.3084C98.7298 10.501 99.0054 10.78 99.2046 11.1452C99.4039 11.5105 99.5035 11.9389 99.5035 12.4304V12.7889H95.5287C95.5487 13.3136 95.718 13.7254 96.0368 14.0243C96.3555 14.3165 96.754 14.4626 97.2322 14.4626C97.6505 14.4626 97.9727 14.3663 98.1985 14.1737C98.4243 13.9811 98.5969 13.752 98.7165 13.4863L99.3939 13.815C99.2943 14.0209 99.1548 14.2268 98.9755 14.4327C98.8028 14.6386 98.5737 14.8113 98.2881 14.9507C98.0092 15.0902 97.6506 15.1599 97.2123 15.1599C96.7208 15.1599 96.2892 15.057 95.9172 14.8511C95.5453 14.6386 95.2564 14.343 95.0505 13.9645C94.8446 13.5859 94.7417 13.1476 94.7417 12.6495V12.5299C94.7417 12.0252 94.8446 11.5836 95.0505 11.205C95.2564 10.8265 95.542 10.5342 95.9073 10.3284C96.2725 10.1158 96.6909 10.0096 97.1624 10.0096ZM97.1624 10.7069C96.7175 10.7069 96.3522 10.8331 96.0666 11.0855C95.7811 11.3378 95.6051 11.6898 95.5387 12.1414H98.7066C98.68 11.6898 98.5239 11.3378 98.2383 11.0855C97.9594 10.8331 97.6008 10.7069 97.1624 10.7069Z' fill='%230E0D0B'/%3e%3cpath d='M92.2484 10.0594C92.6137 10.0594 92.9391 10.1358 93.2247 10.2885C93.5169 10.4413 93.7494 10.6671 93.9221 10.966C94.0947 11.2648 94.1811 11.6334 94.1811 12.0717V15.1458H93.394V12.1315C93.394 11.6467 93.2712 11.2947 93.0255 11.0755C92.7864 10.8564 92.461 10.7468 92.0492 10.7468C91.5777 10.7468 91.1925 10.8995 90.8936 11.205C90.6014 11.5105 90.4553 11.9655 90.4553 12.5698V15.1458H89.6683V10.1491H90.4354V10.9582H90.5361C90.7355 10.7018 90.8604 10.5342 91.1128 10.3483C91.3718 10.1557 91.7503 10.0594 92.2484 10.0594Z' fill='%230E0D0B'/%3e%3cpath d='M78.5932 10.9581H77.7681V10.1514H78.6L78.5932 10.9581Z' fill='%230E0D0B'/%3e%3c/svg%3e";const Vd=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),Io=({isOpen:e,onClose:t,title:n,subtitle:o,children:r,overlayContent:a,overlayDimmed:i=!0,styles:s,theme:c,maxWidth:l="522px",dark:u,footerLinkText:d,bannerSrc:p,bannerAlt:w,closeOnBackdropClick:f=!1})=>{const{theme:g,dark:h,dk:b,palette:x}=dn(s,u),C=u??h,v=c||g,A=s?.fontFamily||v.typography.fontFamily||nt.ui,T=s?.primaryColor||v.colors.primary,I=J(null),y=J(null),k=J(null),E=tl(),[F,U]=H(!1),[O,M]=H(!1),B=J(t);if(he(()=>{B.current=t},[t]),he(()=>{if(!e){M(!1);return}y.current=document.activeElement;const S=document.body.style.overflow;document.body.style.overflow="hidden";const q=requestAnimationFrame(()=>{const j=requestAnimationFrame(()=>M(!0));k.current=j}),z=()=>{const j=I.current;j&&(j.querySelectorAll(Vd)[0]??j).focus({preventScroll:!0})},te=j=>{if(j.key==="Escape"){j.stopPropagation(),B.current();return}if(j.key!=="Tab")return;const K=I.current;if(!K)return;const X=Array.from(K.querySelectorAll(Vd)).filter(Se=>!Se.hasAttribute("aria-hidden"));if(X.length===0){j.preventDefault(),K.focus();return}const xe=X[0],ge=X[X.length-1],ve=document.activeElement;j.shiftKey&&ve===xe?(j.preventDefault(),ge.focus()):!j.shiftKey&&ve===ge&&(j.preventDefault(),xe.focus())},Y=requestAnimationFrame(z);return document.addEventListener("keydown",te),()=>{cancelAnimationFrame(Y),cancelAnimationFrame(q),k.current&&cancelAnimationFrame(k.current),document.removeEventListener("keydown",te),document.body.style.overflow=S;const j=y.current;j&&typeof j.focus=="function"&&j.focus({preventScroll:!0})}},[e]),!e)return null;const D=!!p&&!F,W=w??"";return m("div",{onMouseDown:S=>{f&&S.target===S.currentTarget&&B.current()},style:{position:"fixed",inset:0,backgroundColor:C?"rgba(0,0,0,0.72)":"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"clamp(16px, 4vw, 48px)",zIndex:Ar.modal,opacity:O?1:0,transition:`opacity ${_s.normal} ${qr.out}`},children:m("div",{ref:I,role:"dialog","aria-modal":"true","aria-labelledby":E,tabIndex:-1,style:{backgroundColor:x.shellBorder,borderRadius:"12px",padding:"5px",width:"100%",maxWidth:l,boxSizing:"border-box",boxShadow:"0 16px 48px rgba(0, 0, 0, 0.4)",outline:"none",transform:O?"scale(1)":"scale(0.96)",transition:`transform ${_s.slow} ${qr.out}`,display:"flex",flexDirection:"column",maxHeight:"100%"},children:R("div",{style:{backgroundColor:x.shell,border:`1px solid ${x.shellInnerBorder}`,borderRadius:"9px",width:"100%",padding:"0",display:"flex",flexDirection:"column",position:"relative",flex:"0 1 auto",minHeight:0,overflowY:"auto",overflowX:"hidden"},children:[a&&i&&m("div",{style:{position:"absolute",inset:0,backgroundColor:"rgba(0, 0, 0, 0.4)",zIndex:5,pointerEvents:"none",borderRadius:"12px"},"aria-hidden":"true"}),D&&R("div",{style:{position:"relative",width:"100%"},children:[m("img",{src:p,style:{width:"100%",height:"auto",display:"block",borderRadius:"6px 6px 0 0"},alt:W,"aria-hidden":W===""?"true":void 0,onError:()=>U(!0)}),m("button",{type:"button",onClick:t,"aria-label":"Close dialog",style:{position:"absolute",top:"8px",right:"8px",minWidth:"44px",minHeight:"44px",color:x.textPrimary,padding:"8px",backgroundColor:"transparent",borderRadius:"9999px",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1},children:m(Ta,{size:28,strokeWidth:2.5})})]}),R("div",{style:{padding:"28px 28px 0 28px",position:"relative"},children:[!D&&m("button",{type:"button",onClick:t,"aria-label":"Close dialog",style:{position:"absolute",top:"10px",right:"10px",minWidth:"44px",minHeight:"44px",color:x.textSecondary,padding:"10px",backgroundColor:"transparent",borderRadius:"50%",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s",fontSize:"18px",fontWeight:"600"},onMouseEnter:S=>{S.currentTarget.style.backgroundColor=C?`${T}1a`:"#f3f4f6"},onMouseLeave:S=>{S.currentTarget.style.backgroundColor="transparent"},children:m(Ta,{size:24,strokeWidth:2.4})}),m("h2",{id:E,style:{fontSize:"22px",fontWeight:"700",color:x.textPrimary,margin:"0",fontFamily:A,lineHeight:"1.12"},children:n})]}),o&&m("div",{style:{padding:"11px 28px 13px 28px",fontSize:"12px",color:x.textSecondary,margin:"0",lineHeight:"1.35",fontFamily:A,borderBottom:C?`1px solid ${b.cardBorder}`:"1px solid #cdcfd1"},children:o}),r,R("div",{style:{padding:"12px 28px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("img",{src:Hd,alt:"","aria-hidden":"true",width:108,height:22,decoding:"async",style:{width:"108px",height:"22px",opacity:C?.85:1,filter:C?"brightness(0) invert(1)":"none",margin:0,display:"block"}}),m("a",{href:"https://spiceflow-docs.spicenet.io",target:"_blank",rel:"noopener noreferrer",style:{fontSize:"10px",color:x.textSecondary,textDecoration:"none",display:"flex",alignItems:"center",gap:"4px",fontFamily:A,lineHeight:"1"},children:m("span",{style:{color:T,textDecoration:"underline",fontWeight:"500"},children:d??"Learn more \u2192"})})]}),a]})})})};function Ym(e){const t=new Set(sf(e).map(n=>n.toLowerCase()));return t.add(e.toLowerCase()),t}const Zm=["USDC","USDT","WETH","WBTC"];function Qd(e,t){const n=kt(t);if(!n)return;if(n.nativeCurrency.symbol.toUpperCase()===e.toUpperCase())return{address:Zt,symbol:n.nativeCurrency.symbol,decimals:n.nativeCurrency.decimals,chainId:t};const o=n.supportedTokens?.find(r=>r.symbol.toUpperCase()===e.toUpperCase());if(o)return{address:o.address.toLowerCase(),symbol:o.symbol,decimals:o.decimals,chainId:t}}function $o(e,t,n){const o=kt(t);if(!o)return;if(n!==void 0){if(Te(e)&&!Xt(e,n))return;const s=Ai(e,n,t);return s?{address:s.address.toLowerCase(),symbol:s.symbol,decimals:s.decimals,chainId:t}:void 0}if(Te(e))return;const r=il(e);if(!r)return;const a=Ym(e),i=o.supportedTokens?.find(s=>s.equivalenceGroup===r&&a.has(s.address.toLowerCase()));if(i)return{address:i.address.toLowerCase(),symbol:i.symbol,decimals:i.decimals,chainId:t}}function Xm(e){const{sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,intermediaryCandidates:a=Zm}=e;if(bs(t,n))return{strategy:"direct",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} fronted directly`};if(o===r&&(Te(t.address)||!Xt(t.address,o)))return{strategy:"direct-swap",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} \u2192 ${n.symbol} on chain ${o}, no escrow`};if($o(t.address,r,o))return{strategy:"direct",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} fronted on destination, swapped to ${n.symbol}`};if($o(n.address,o,r))return{strategy:"source-swap",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} \u2192 ${n.symbol} on source chain, then fronted`};for(const i of a){const s=Qd(i,o);if(!s||bs(t,s)||bs(n,s))continue;const c=Qd(i,r);if(c&&bs(s,c))return{strategy:"intermediary",sourceAsset:t,outputAsset:n,intermediaryAsset:c,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} \u2192 ${i} on source, fronted, then ${i} \u2192 ${n.symbol} on destination`}}throw new we("ROUTE_STRATEGY_ERROR",`No viable cross-chain route found from ${t.symbol} (chain ${o}) to ${n.symbol} (chain ${r}). No intermediary asset is available on both chains.`,{sourceAsset:t.symbol,outputAsset:n.symbol,sourceChainId:o,destinationChainId:r,candidatesChecked:a})}async function Jm(e){const{route:t,sourceAmount:n,userAddress:o,registry:r,actionCalls:a,slippage:i}=e;async function s(c,l,u,d){const p=await r.resolveSwap({type:"swap",tokenIn:l,tokenOut:u,amountIn:d,maxSlippage:i},c,o);if(!p)throw new we("NO_LIQUIDITY",`No venue returned a quote for ${l} \u2192 ${u} on chain ${c}. No liquidity available for this pair.`,{chainId:c,tokenIn:l,tokenOut:u,amountIn:d.toString()});return p}switch(t.strategy){case"direct-swap":{const c=await s(t.destinationChainId,t.sourceAsset.address,t.outputAsset.address,n);return{chainBatches:[{chainId:t.destinationChainId,calls:[...c.calls,...a]}],solverFrontToken:t.outputAsset,solverFrontAmount:0n,resolvedSwaps:{sourceSwap:c}}}case"direct":{const c=$o(t.sourceAsset.address,t.destinationChainId,t.sourceChainId)||t.sourceAsset,l=on(n,t.sourceAsset.decimals,c.decimals,"floor");if(G(c.address,t.outputAsset.address))return{chainBatches:[{chainId:t.destinationChainId,calls:a}],solverFrontToken:c,solverFrontAmount:l,resolvedSwaps:{}};const u=await s(t.destinationChainId,c.address,t.outputAsset.address,l);return{chainBatches:[{chainId:t.destinationChainId,calls:[...u.calls,...a]}],solverFrontToken:c,solverFrontAmount:l,resolvedSwaps:{destinationSwap:u}}}case"source-swap":{const c=$o(t.outputAsset.address,t.sourceChainId,t.destinationChainId);if(!c)throw new we("ROUTE_TOKEN_NOT_FOUND",`Output asset ${t.outputAsset.symbol} (${t.outputAsset.address}) not found on source chain ${t.sourceChainId}`,{token:t.outputAsset.symbol,address:t.outputAsset.address,chainId:t.sourceChainId,side:"source"});const l=$o(t.outputAsset.address,t.destinationChainId,t.destinationChainId);if(!l)throw new we("ROUTE_TOKEN_NOT_FOUND",`Output asset ${t.outputAsset.symbol} (${t.outputAsset.address}) not found on destination chain ${t.destinationChainId}`,{token:t.outputAsset.symbol,address:t.outputAsset.address,chainId:t.destinationChainId,side:"destination"});const u=await s(t.sourceChainId,t.sourceAsset.address,c.address,n);return{chainBatches:[{chainId:t.sourceChainId,calls:u.calls},{chainId:t.destinationChainId,calls:a}],solverFrontToken:l,solverFrontAmount:on(u.amountOutMinimum,c.decimals,l.decimals,"floor"),resolvedSwaps:{sourceSwap:u}}}case"intermediary":{if(!t.intermediaryAsset)throw new we("ROUTE_STRATEGY_ERROR","Intermediary strategy requires an intermediary asset but none was provided in the route plan.",{strategy:t.strategy});const c=$o(t.intermediaryAsset.address,t.sourceChainId,t.destinationChainId);if(!c)throw new we("ROUTE_TOKEN_NOT_FOUND",`Intermediary ${t.intermediaryAsset.symbol} (${t.intermediaryAsset.address}) not found on source chain ${t.sourceChainId}`,{token:t.intermediaryAsset.symbol,address:t.intermediaryAsset.address,chainId:t.sourceChainId,side:"source"});const l=await s(t.sourceChainId,t.sourceAsset.address,c.address,n),u=on(l.amountOutMinimum,c.decimals,t.intermediaryAsset.decimals,"floor"),d=await s(t.destinationChainId,t.intermediaryAsset.address,t.outputAsset.address,u);return{chainBatches:[{chainId:t.sourceChainId,calls:l.calls},{chainId:t.destinationChainId,calls:[...d.calls,...a]}],solverFrontToken:t.intermediaryAsset,solverFrontAmount:u,resolvedSwaps:{sourceSwap:l,destinationSwap:d}}}default:throw new we("ROUTE_STRATEGY_ERROR",`Unknown route strategy: ${t.strategy}`,{strategy:t.strategy})}}function $m(e,t,n){if(!e||!t)return null;if(e._source==="wallet"){if(t===e.chainId)return{address:e.address,symbol:e.symbol,name:e.name||e.symbol,decimals:e.decimals,logoURI:e.logoURI};const d=cr(t).find(p=>p.equivalenceGroup==="USDC"&&p.symbol.toUpperCase()==="USDC");return!d||n.length>0&&!n.some(p=>G(p.address,d.address))?null:{address:d.address,symbol:"USDC",name:d.name||"USD Coin",decimals:d.decimals,logoURI:d.logo}}const o=Qr(e,t),r=Object.entries(e.chainTokens??{}).flatMap(([d,p])=>{const w=Jn(d);return w?.chainId===t?[{parsed:w,detail:p}]:[]}),a=d=>n.find(p=>G(p.address,d))??null,i=d=>{const p=r.find(({parsed:g})=>G(g.address,d));if(!p)return null;const w=kt(t);if(Te(d))return w?{address:Zt,symbol:w.nativeCurrency.symbol,name:w.nativeCurrency.name,decimals:w.nativeCurrency.decimals,logoURI:e.logoURI}:null;const f=w?.supportedTokens?.find(g=>G(g.address,d));return!f||!Ci(e,d,t)?null:{address:p.parsed.address,symbol:f.symbol,name:f.name||p.detail?.name||e.displayName||e.name||e.symbol,decimals:f.decimals,logoURI:f.logo||e.logoURI}},s=r.map(({parsed:d})=>d.address).filter(Te);for(const d of[...o,...s]){if(Te(d)){const f=i(d);if(f)return f}const p=a(d);if(p)return p;const w=i(d);if(w)return w}if(e.chainTokens||e.receiptTokenId)return null;const c=lo(e,t);if(c){const d=a(c);if(d)return d}const l=$o(e.address,t,e.chainId);return l?a(l.address)||(n.length>0?null:{address:l.address,symbol:l.symbol||e.symbol,name:e.displayName||e.name||e.symbol,decimals:l.decimals??e.decimals,logoURI:e.logoURI}):null}function _m(e){const t=e.find(n=>Wo(n.chainId))?.calls?.[0]?.data;if(!t)return null;try{const n=Zn({abi:ds,data:t});return n.functionName!=="createWithdrawalRequest"?null:n.args[0].transfers.map(o=>({token:o.token,recipient:o.to,amount:o.amount}))}catch{return null}}function eh(e,t){if(!e||e.length!==t.length)return!1;const n=o=>o.reduce((r,a)=>r+a.amount,0n);return n(e)!==n(t)?!1:e.every((o,r)=>{const a=t[r];return o.token.toLowerCase()!==a.token.toLowerCase()||o.recipient.toLowerCase()!==a.recipient.toLowerCase()?!1:o.recipient.toLowerCase()===gn.toLowerCase()?$c(o.amount,a.amount,100n):o.recipient.toLowerCase()!==zn.toLowerCase()||o.amount===a.amount})}function th(e,t){const n=e.intents.flatMap(a=>a.batches).filter(a=>{const i=Yo(a);return BigInt(a.quotedAmount)>0n||BigInt(a.totalDebit)>0n||i.totalFee>0n}),o=n.filter(a=>a.chainId===t),r=o.length>0?o:n;return r.length===1?r[0]:null}function nh(e){const t=new Map;for(const n of e){if(n.amount<=0n)continue;const o=n.token.toLowerCase(),r=n.recipient.toLowerCase(),a=`${o}:${r}`,i=t.get(a);i?i.amount+=n.amount:t.set(a,{...n})}return[...t.values()]}function jd(e,t){if(!e.token||!e.recipient||e.chainId===null)return null;const n=th(t,e.chainId);if(!n)return null;const{gasFee:o,bridgeFee:r,spicenetFee:a}=Yo(n),i=o+r,s=e.grossAmountRaw-i-a;if(s<=0n)throw new Error("Withdrawal amount does not cover the network fee.");const c=[{token:e.token.address,recipient:e.recipient,amount:s}];return i>0n&&c.push({token:e.token.address,recipient:gn,amount:i}),a>0n&&c.push({token:e.token.address,recipient:zn,amount:a}),nh(c)}function oh(e,t,n){const o=jd(e,t);return!o||eh(_m(n),o)?null:e.buildWithdrawBatches(o)}async function Gd(e){if(e.executionContextRef.current){await Kd(e);return}if(!e.batches.length||!e.walletAddress||!e.recipient)return;const t=qe.getBaseUrl();e.ui.setIsExecuting(!0),e.ui.setExecutionError(null),e.ui.setExecutionProgress(null),e.executionContextRef.current=null,e.ui.setLockedGasFee(e.gasFee);try{let n=e.batches;if(e.isNon7702&&e.onWithdrawExecute)await e.onWithdrawExecute(e.amount);else{if(!e.isNon7702&&!n.some(a=>Wo(a.chainId)))throw new Error("Spice withdrawals must include a Spicenet funding batch before the destination chain batch.");const o=e.token?.address||"",r={useCustomTransfers:!0};if(e.buildSpicenetBatch){const a=e.feeEstimate??await e.execution.estimate(n,o,0n,e.withdrawalSourceBudget?{...r,withdrawalSourceBudget:!0}:r),i=jd(e,a);i&&(n=e.buildWithdrawBatches(i));const s=a.intents[0]?.batches.find(c=>c.chainId===e.chainId)??a.intents[0]?.batches[0]??null;s&&e.ui.setLockedGasFee(Yo(s).totalFee)}else{const a=(e.feeEstimate??await e.execution.estimate(n,o,0n,r)).intents[0]?.batches[0]??null;a&&e.ui.setLockedGasFee(Yo(a).totalFee)}await e.execution.execute(n,o,0n,a=>{a.actionId&&a.intentId&&typeof a.intentIndex=="number"&&typeof a.totalSteps=="number"&&(e.executionContextRef.current={actionId:a.actionId,intentId:a.intentId,intentIndex:a.intentIndex,totalSteps:a.totalSteps,autoContinue:a.autoContinue,apiUrl:t,finish:()=>ji(e)}),e.ui.setExecutionProgress(a)},void 0,e.buildSpicenetBatch?{...r,adjustBatchesForEstimate:({feeEstimate:a,chainBatches:i})=>oh(e,a,i)}:{...r,skipPreSubmitFeeEstimate:!0})}await ji(e)}catch(n){const o=n instanceof Error?n.message:"Withdraw failed";e.ui.setExecutionError(o)}finally{e.ui.setIsExecuting(!1)}}async function ji(e){window.dispatchEvent(new CustomEvent("withdraw-completed")),await e.onWithdrawSuccess?.({token:e.token?.symbol||"",amount:e.amount,chainId:e.chainId})}async function Kd(e){const t=e.executionContextRef.current;if(!t){if(e.isNon7702&&e.onWithdrawExecute){await Gd(e);return}e.ui.setExecutionError("The previous withdrawal action is unavailable. Reconcile it before starting another.");return}const n=t.apiUrl?new Cr:qe;t.apiUrl&&n.setBaseUrl(t.apiUrl),e.ui.setIsExecuting(!0),e.ui.setExecutionError(null),e.ui.setExecutionProgress({step:"executing",message:"Resuming existing action...",actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps});try{let o=t.totalSteps;for(let r=0;r<t.totalSteps;r++)if((await n.checkStepStatus(t.intentId,r)).data.status!=="success"){o=r;break}if(o>=t.totalSteps)e.ui.setExecutionProgress(r=>({...r||{step:"success",message:"Transaction successful!",actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps},step:"success",message:"Transaction successful!"}));else for(let r=o;r<t.totalSteps;r++){const a=await Fd({actionId:t.actionId,intentIndex:t.intentIndex,intentId:t.intentId,stepIndex:r,chainId:e.chainId??void 0,observeOnly:t.autoContinue,maxPolls:t.autoContinue?Number.POSITIVE_INFINITY:void 0,relayer:n,completeOnExecution:!e.isNon7702&&r===t.totalSteps-1,onStatusMessage:(i,s)=>{e.isMountedRef.current&&e.ui.setExecutionProgress({step:"executing",message:i,txHash:s,actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps})}});if(!e.isMountedRef.current)return;e.ui.setExecutionProgress({step:r===t.totalSteps-1?"success":"executing",message:r===t.totalSteps-1?"Transaction successful!":"Executing remaining steps...",txHash:a,actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps})}await(t.finish?.()??ji(e))}catch(o){const r=o instanceof Error?o.message:"Withdraw failed";e.ui.setExecutionError(r)}finally{e.ui.setIsExecuting(!1)}}async function rh(e){const t=await e.estimate(e.batches,e.tokenAddress,0n,{useCustomTransfers:!0,...e.withdrawalSourceBudget?{withdrawalSourceBudget:!0}:{},signal:e.signal}),n=t.intents.flatMap(r=>r.batches).filter(r=>Yo(r).totalFee>0n),o=n.filter(r=>r.chainId===e.chainId)[0]??n[0]??t.intents[0]?.batches[0];if(!o)throw new Error("No gas fee estimate was returned for this withdraw.");return{gasFee:Yo(o).totalFee,feeEstimate:t}}function Gi(e,t){return Me(e,t).replace(/(\.\d*?[1-9])0+$|\.0+$/,"$1")}function ah(e,t,n){return on(e,t,n,"floor")}function Yd(e,t,n=!1){if(e<=0)return"$0";if(!t||!Number.isFinite(t)||t<=0)return"\u2014";const o=e*t;return`$${o>=1?o.toFixed(3).replace(/0+$/,"").replace(/\.$/,""):o.toFixed(4).replace(/0+$/,"").replace(/\.$/,"")}${n?" (stale)":""}`}function sh(e,t,n=!1){return t?JSON.stringify({tokenAddress:t.toLowerCase(),withdrawalSourceBudget:n,batches:e.map(o=>({chainId:o.chainId,calls:o.calls.map(r=>({to:r.to.toLowerCase(),value:r.value.toString(),data:r.data})),tokenTransfers:(o.tokenTransfers??[]).map(r=>({from:r.from,to:r.to.toLowerCase(),token:r.token.toLowerCase(),amount:r.amount.toString()}))}))}):null}function ih(e){const t=new Map;for(const n of e){if(n.amount<=0n)continue;const o=wn(n.token),r=wn(n.to),a=`${o.toLowerCase()}:${r.toLowerCase()}`,i=t.get(a);i?i.amount+=n.amount:t.set(a,{token:o,to:r,amount:n.amount})}return[...t.values()]}function ch(e,t){return`0x${t}${e.slice(4)}`}function Zd(e,t,n,o){if(e.some(d=>d.domain==="spicenet"))return e;const r=n?.intents.flatMap(d=>d.batches),a=d=>d.from==="escrow",i=e.map(d=>{const p=r?.find(y=>y.chainId===d.chainId);if(!p)return d;const w=Yo(p),f=w.totalFee;if(f<=0n)return d;const g=(d.tokenTransfers??[]).filter(y=>a(y)&&wn(y.to).toLowerCase()===t.toLowerCase()),h=g.find(y=>!Te(wn(y.token)))??g[0];if(!h)return d;const b=wn(h.token),x=Te(b);let C=!1;const v=(d.tokenTransfers??[]).map(y=>C||!a(y)||wn(y.to).toLowerCase()!==t.toLowerCase()||wn(y.token).toLowerCase()!==b.toLowerCase()?y:(C=!0,{...y,amount:o?.payoutAlreadyGross?BigInt(y.amount):BigInt(y.amount)+f}));if(!C)return d;const A=(y,k)=>x?{to:y,value:k,data:"0x"}:{to:b,value:0n,data:Bt({abi:ut,functionName:"transfer",args:[y,k]})},T=[];w.spicenetFee>0n&&T.push(A(zn,w.spicenetFee));const I=w.gasFee+w.bridgeFee;return I>0n&&T.push(A(gn,I)),{...d,tokenTransfers:v,calls:[...T,...d.calls]}}),s=i.flatMap(d=>(d.tokenTransfers??[]).filter(a).map(p=>{const w=wn(p.token),f=wn(p.to),g=[{token:w,to:f,amount:BigInt(p.amount)}];return{chainId:d.chainId,transfers:ih(g)}}));if(s.length===0)return e;const c=o?.requestTimestampMs??Date.now(),l=BigInt(Math.floor(c/1e3));if(o?.expiresAt!==void 0&&(!Number.isSafeInteger(o.expiresAt)||o.expiresAt<=Number(l)))throw new Error("Funding expiry must be a future Unix timestamp");const u=o?.expiresAt===void 0?l+3600n:BigInt(o.expiresAt);return[{chainId:sl,domain:"spicenet",tokenTransfers:[],calls:s.map((d,p)=>{const w=lr(Zo([{type:"address"},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"}],[t,d.transfers[0].token,d.transfers.reduce((g,h)=>g+h.amount,0n),BigInt(d.chainId),BigInt(c+p)])),f=ch(w,"77");return{to:"0x0000000000000000000000000000000000000000",value:0n,data:Bt({abi:ds,functionName:"createWithdrawalRequest",args:[{chainId:`evm:${d.chainId}`,idempotenceKey:f,nbf:0n,exp:u,metadata:"{}",transfers:d.transfers.map(g=>({token:g.token.toLowerCase(),to:g.to,amount:g.amount}))}]})}})},...i]}function _o(e,t,n,o){const r=e.filter(i=>i.domain!=="spicenet"),a=i=>(i.tokenTransfers??[]).some(s=>s.from==="escrow");return[...r.filter(i=>!a(i)),...Zd(r.filter(a),t,n,o)]}class pr extends Error{constructor(t,n){super("The selected balance cannot cover the fee funding amount"),this.requiredAmount=t,this.balance=n,this.name="InsufficientFeeFundingBalanceError"}}function Ki(e,t,n,o,r){const a=e[e.length-1];if(!a?.calls.length||a.domain==="spicenet")throw new Error("Proceeds fees require a final destination action");const i=[{to:zn,amount:r},{to:gn,amount:o}].filter(s=>s.amount>0n);return e.map(s=>s===a?{...s,calls:[...s.calls,...i.map(c=>({to:n,value:0n,data:Bt({abi:ut,functionName:"transfer",args:[c.to,c.amount]})}))],tokenTransfers:[...s.tokenTransfers??[],...i.map(c=>({from:t,to:c.to,token:n,amount:c.amount}))]}:s)}async function Yi(e,t,n,o,r){const a=Fo(e),i=await qe.estimateBatchGas({user:t,outputToken:n,signal:o,requireSimulation:!0,includePlatformFee:r!==void 0,chainBatches:e.map((s,c)=>({...s,hash:a[c].hash}))});if(i.gasQuoteSource!=="estimated"||!i.simulationVerified)throw new Error("Action proceeds require a successful live batch simulation; fallback gas pricing is not sufficient");if(r!==void 0&&(i.platformFee===void 0||i.platformFee>r))throw new Error("Fee conversion platform price changed; refresh before retrying");return i.gasFee}async function Xd(e){if(e.proceeds.token.toLowerCase()!==e.token.toLowerCase())throw new Error("Action proceeds must use the destination fee token");const t=await e.proceeds.resolve(e.signal);if(e.signal?.aborted)throw new Error("Action proceeds quote was cancelled");if(t<0n)throw new Error("Action proceeds cannot be negative");const n=await e.baseline();if(!n?.preview)throw new Error("Action fee quote is unavailable");let o=n.preview.gasFee;const r=n.preview.spicenetFee,a=n.preview.bridgeFee??0n;for(let i=0;i<5;i++){const s=o+r+a,c=t<s?t:s,l=s-c;if(l>0n&&e.fundShortfall===!1)throw new pr(s,t);const u=l>0n?(l*110n+99n)/100n+2n:0n;let d=u,p;const w=_o(await e.buildBatches(u,{actionAmountOverride:e.actionAmountFor?.(s),actionOutputFee:c,onSourceSpend:h=>{d=h},onActionCalls:h=>{p=h}}),e.owner,void 0,{expiresAt:e.expiresAt}),f=Ki(w,e.owner,e.token,o+a,r),g=await Yi(f,e.owner,e.token,e.signal);if(g<=o&&(o-g)*100n<=g*15n)return{preview:{...n.preview,grossAmount:u,netAmount:0n,gasFee:o,totalFee:s,gasQuoteSource:"estimated"},feeEstimate:n.feeEstimate,grossFundingAmount:u,proceedsAvailable:t,proceedsUsed:c,fundingBatches:f,sourceSpendCap:d,destinationAmount:0n,actionDefinition:p};o=g}throw new Error("Action proceeds fee estimate did not converge")}function Jd(e,t){if(!(!e||e==="output")){if("token"in e)return e;if(t)return{token:t,resolve:async n=>{const o=await e.resolve(n);if(n?.aborted)throw new Error("Action proceeds quote was cancelled");if(o.some(r=>r.amount<0n))throw new Error("Action proceeds cannot be negative");return o.filter(r=>r.token.toLowerCase()===t.toLowerCase()).reduce((r,a)=>r+a.amount,0n)}}}}function Bs(e,t,n){const o=n.filter(r=>r.amount>0n);return{chainId:e,domain:"evm",tokenTransfers:[],calls:Te(t)?o.map(r=>({to:r.recipient,value:r.amount,data:"0x"})):o.map(r=>({to:t,value:0n,data:Bt({abi:ut,functionName:"transfer",args:[r.recipient,r.amount]})}))}}new Set([gn,zn].map(e=>e.toLowerCase()));async function er(e,t,n){const o=await rs(e),r=Xt(n,t)?.decimals,a=o.filter(u=>!Array.isArray(u.chainTokens)&&Object.keys(u.chainTokens??{}).some(d=>d.toLowerCase()===`evm:${t}:${n.toLowerCase()}`));if(a.length>1)throw new Error("Order cash receipt identity is ambiguous");const i=new Map;for(const u of a){const d=Object.entries(u.chainTokens??{}).find(([p])=>p.toLowerCase()===`evm:${t}:${n.toLowerCase()}`)?.[1];if(!u.receiptToken||i.has(u.receiptToken)||!/^\d{1,78}$/.test(u.balanceAvailable)||!Number.isInteger(u.decimals)||u.decimals<0||u.decimals>36||typeof d!="object"||r===void 0||d.decimals!==r)throw new Error("Order cash metadata could not be verified");i.set(u.receiptToken,{amount:BigInt(u.balanceAvailable),decimals:u.decimals})}const s=new Set,c=new Set;let l;for(let u=0;u<20;u++){const d=await qe.listLimitOrders(e,l);if(!Array.isArray(d.orders)||d.orders.length>100)throw new Error("Order reservations could not be verified");for(const p of d.orders){if(!/^ord_[0-9a-f]{64}$/.test(p.id)||s.has(p.id)||!G(p.user,e)||!/^\d{1,78}$/.test(p.reservedAmount)||!["open","executing","needs_attention","filled","cancelled","expired","failed"].includes(p.status))throw new Error("Order reservations could not be verified");if(s.add(p.id),!["open","executing","needs_attention"].includes(p.status))continue;const w=i.get(p.receiptToken);if(!w&&p.chainId===t&&G(p.tokenIn,n))throw new Error("Active order cash could not be verified");w&&(w.amount-=BigInt(p.reservedAmount))}if(d.nextCursor===null){let p=0n;for(const w of i.values()){if(w.amount<0n)throw new Error("Order reservations exceed the current cash balance");p+=yo(w.amount,w.decimals,r)}return{available:p,entries:o}}if(typeof d.nextCursor!="string"||!/^ord_[0-9a-f]{64}$/.test(d.nextCursor)||c.has(d.nextCursor))throw new Error("Order history is incomplete");l=d.nextCursor,c.add(l)}throw new Error("Order history is incomplete")}const $d="spiceflow-limit-order:v1",Br=co(["function exactInput((bytes path, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]);function lh(e){if(!/^ord_[0-9a-f]{64}$/.test(e))throw new Error("Invalid limit order ID");return`Spice Flow limit order cancellation v1
17
- Order: ${e}`}function Zi(e){const t=e.intents[0];if(e.intents.length!==1||t.mode!=="7702")throw new Error("Invalid order intent");return`ord_${Mi(t.chainBatches,BigInt(t.exp)).slice(2)}`}function dh(e){if(!Number.isSafeInteger(e.expiresAt)||e.minimumOutput<=0n||e.amountIn<=0n||e.platformFee<0n||e.gasBridgeFee<0n||e.amountIn+e.platformFee+e.gasBridgeFee!==e.grossAmount)throw new Error("Invalid limit order amounts or expiry");const t=Zr({userAddress:e.user,destinationChainId:e.chainId,deliveryToken:e.tokenIn,deliveryAmount:e.grossAmount,deliveryRecipient:e.user,requestTimestampMs:e.requestTimestampMs,expiresAt:e.expiresAt,metadata:e.conditional?"":e.replacesOrderId?`${$d}:amend:${e.replacesOrderId}`:$d,requestNonce:e.requestNonce});if(!t)throw new Error("Order requires a positive cash balance");const n=[...Bs(e.chainId,e.tokenIn,[{recipient:zn,amount:e.platformFee},{recipient:gn,amount:e.gasBridgeFee}]).calls,{to:e.tokenIn,value:0n,data:Bt({abi:ut,functionName:"approve",args:[e.router,e.amountIn]})},{to:e.router,value:0n,data:Bt({abi:Br,functionName:"exactInput",args:[{path:e.path,recipient:e.user,deadline:BigInt(e.expiresAt),amountIn:e.amountIn,amountOutMinimum:e.minimumOutput}]})}],o=Fo([t,{chainId:e.chainId,calls:n}]);return{user:e.user,amountMode:"gross_input",intents:[{mode:"7702",signatureType:"ecdsa",signature:"0x00",nbf:0,exp:e.expiresAt,chainBatches:o.map((r,a)=>({...r,chainId:Number(r.chainId),tokenTransfers:a===0?[]:[{from:"escrow",to:e.user,token:e.tokenIn,amount:e.grossAmount}]}))}]}}const uh=36;function Jr(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=uh}function Ba(e){return!e.balanceError&&e.balanceStatus!=="stale"&&e.balance>=0n&&Jr(e.decimals)&&!e.isNative&&!Te(e.address)}function Xi(e,t){if(!e.chainTokens||Array.isArray(e.chainTokens))return null;let n;for(const[o,r]of Object.entries(e.chainTokens)){const a=Jn(o);if(!(!a||a.chainId!==t)){if(n)return null;n={address:a.address,decimals:r?.decimals}}}return n??null}function Ji(e,t,n){if(e<0n)return null;const o=yo(e,t,n);return yo(o,n,t)===e?o:null}function fr(e,t){return Jr(e.receiptTokenDecimals)&&Ji(t,e.decimals,e.receiptTokenDecimals)!==null}function ph(e,t){if(!Jr(e.receiptTokenDecimals))return-1n;const n=yo(t,e.decimals,e.receiptTokenDecimals),o=yo(n,e.receiptTokenDecimals,e.decimals);return o<=t?o:-1n}function Rs(e,t){return e.owner?.toLowerCase()===t.toLowerCase()}function fh(e,t,n,o,r){if(!e)return[];const a=[];for(const i of Array.isArray(e)?e:[e]){if(i.amount<0n||!Rs(i.asset,o)||i.asset.chainId!==r)return null;const s=Ie(i.asset);if(s!==Ie(t)&&s!==Ie(n))return null;const c=a.find(l=>l.positionId===s);c?c.amount+=i.amount:a.push({positionId:s,amount:i.amount})}return a}function Ra(e,t,n,o,r,a){if(!n||!/^0x[0-9a-f]{40}$/i.test(n)||!Rs(e,n)||e.chainId!==o||!Ba(e))return;let i,s,c;if(e.location==="embedded"&&e._source!=="spice"){i=e,c=e.address;const C=t.filter(v=>{const A=Xi(v,o);return v.location==="rollup"&&v._source!=="wallet"&&Rs(v,n)&&v.chainId===o&&Ba(v)&&!!v.receiptTokenId&&!!A&&G(A.address,c)});if(C.length!==1)return;[s]=C}else if(e.location==="rollup"&&e._source!=="wallet"&&e.receiptTokenId){s=e;const C=Xi(e,o);if(!C)return;c=C.address;const v=t.filter(A=>A.location==="embedded"&&A._source!=="spice"&&Rs(A,n)&&A.chainId===o&&Ba(A)&&G(A.address,c));if(v.length!==1)return;[i]=v}else return;if(!i||!s||!c||!Ba(i)||!Ba(s)||i.location!=="embedded"||s.location!=="rollup"||!s.receiptTokenId||!Jr(i.decimals)||i.decimals!==s.decimals||!Jr(s.receiptTokenDecimals))return;const l=Xi(s,o);if(!l||!G(l.address,c)||l.decimals!==void 0&&l.decimals!==i.decimals)return;const u=Ie(i),d=Ie(s);if(u===d||t.filter(C=>Ie(C)===u).length!==1||t.filter(C=>Ie(C)===d).length!==1)return;let p=i.balance,w=r??s.balance;if(w<0n||w>s.balance)return;const f=fh(a,i,s,n,o);if(f===null)return;for(const C of f)if(C.positionId===u){if(C.amount>p)return;p-=C.amount}else{if(C.amount>w||!fr(s,C.amount))return;w-=C.amount}const g=Ie(e),h=e.decimals;if(!Jr(h))return;const b=Ji(p,i.decimals,h),x=Ji(w,s.decimals,h);if(!(b===null||x===null))return{wallet:i,escrow:s,owner:n,chainId:o,token:c,decimals:i.decimals,representativePositionId:g,representativeDecimals:h,walletAvailable:p,escrowAvailable:w,availableBalance:b+x,...f.length===1?{reserve:f[0]}:{},reserves:f}}function _d(e,t,n,o){const r=Ie(e);return{positionId:r,asset:e,amount:t,reservedAmount:n.find(a=>a.positionId===r)?.amount??0n,availableAmount:o}}function $i(e,t,n,o){if(t<=0n)throw new RangeError("Enter an amount within the available balance.");const r=o?.quoteOnly===!0;if(!r&&t>e.availableBalance)throw new RangeError("Enter an amount within the available balance.");let a,i,s=0n,c=0n,l=0n;if(n==="escrow"){const u=t<e.escrowAvailable?t:e.escrowAvailable;if(i=ph(e.escrow,u),i<0n)throw new RangeError("Enter an amount within the available balance.");if(s=t-i,a=s,c=t,!r&&s>e.walletAvailable||!fr(e.escrow,s)||!fr(e.escrow,c))throw new RangeError("Enter an amount within the available balance.")}else if(a=t<e.walletAvailable?t:e.walletAvailable,l=a,c=t-a,i=c,!r&&c>e.escrowAvailable||!fr(e.escrow,c))throw new RangeError("Enter an amount within the available balance.");return{owner:e.owner,chainId:e.chainId,token:e.token,decimals:e.decimals,representativePositionId:e.representativePositionId,representativeDecimals:e.representativeDecimals,route:n,grossAmount:t,insufficient:a>e.walletAvailable||i>e.escrowAvailable,positions:[_d(e.wallet,a,e.reserves,e.walletAvailable),_d(e.escrow,i,e.reserves,e.escrowAvailable)],walletDeposit:s,escrowWithdrawal:c,walletInPlace:l}}function Ds(e,t,n,o,r){if(!e.positions.find(u=>u.positionId===e.representativePositionId))throw new Error("The source balance changed. Review the available amount before continuing.");const a=t.filter(u=>Ie(u)===e.representativePositionId);if(a.length!==1)throw new Error("The source balance changed. Review the available amount before continuing.");if(e.insufficient)throw new Error("The source balance changed. Review the available amount before continuing.");const i=e.positions.filter(u=>u.reservedAmount>0n).map(u=>({asset:u.asset,amount:u.reservedAmount})),s=Ra(a[0],t,n,o,r,i);if(!s||s.representativePositionId!==e.representativePositionId||s.representativeDecimals!==e.representativeDecimals||s.owner.toLowerCase()!==e.owner.toLowerCase()||s.chainId!==e.chainId||!G(s.token,e.token)||s.decimals!==e.decimals)throw new Error("The source balance changed. Review the available amount before continuing.");if(e.grossAmount<=0n||e.positions.length!==2)throw new Error("The source balance changed. Review the available amount before continuing.");const c=e.positions.find(u=>u.positionId===Ie(s.wallet)),l=e.positions.find(u=>u.positionId===Ie(s.escrow));if(!c||!l||c.positionId===l.positionId||c.amount<0n||l.amount<0n||c.reservedAmount<0n||l.reservedAmount<0n)throw new Error("The source balance changed. Review the available amount before continuing.");if(e.route==="escrow"){if(e.walletDeposit!==c.amount||e.walletInPlace!==0n||e.escrowWithdrawal!==e.grossAmount||c.amount+l.amount!==e.grossAmount||!fr(s.escrow,l.amount)||!fr(s.escrow,c.amount)||!fr(s.escrow,e.escrowWithdrawal))throw new Error("The source balance changed. Review the available amount before continuing.")}else if(e.walletDeposit!==0n||e.walletInPlace!==c.amount||e.escrowWithdrawal!==l.amount||c.amount+l.amount!==e.grossAmount||!fr(s.escrow,l.amount))throw new Error("The source balance changed. Review the available amount before continuing.");if(c.amount>s.walletAvailable||l.amount>s.escrowAvailable)throw new Error("The source balance changed. Review the available amount before continuing.");for(const u of e.positions){const d=t.find(p=>Ie(p)===u.positionId);if(!d||d.decimals!==u.asset.decimals||d.receiptTokenDecimals!==u.asset.receiptTokenDecimals||d.receiptTokenId!==u.asset.receiptTokenId)throw new Error("The source balance changed. Review the available amount before continuing.")}}function mh(e,t){const n=t.feePolicy;if(!n||t.feeExecutionMode!=="user-transfer"||!t.feeBreakdown)return e;const o=t.feeToken??t.destinationToken,r=[{recipient:n.platformRecipient,amount:t.feeBreakdown.spicenetFee},{recipient:n.gasRecipient,amount:t.feeBreakdown.gasFee+t.feeBreakdown.bridgeFee}],a=[];for(const{recipient:i,amount:s}of r){const c=G(i,n.gasRecipient)?[i,gn,...Od]:[i],l=f=>c.some(g=>G(f,g));let u;const d=(f,g)=>{if(u&&!G(u,f))throw new Error("Action fee calls use mixed gas fee recipients");u=f,p=!0,w+=g};let p=!1,w=0n;for(const f of e)if(Te(o))l(f.to)&&f.data==="0x"&&d(f.to,f.value);else if(G(f.to,o)&&f.value===0n){let g;try{g=Zn({abi:ut,data:f.data})}catch{continue}if(g.functionName==="transfer"&&l(g.args[0])){if(Bt({abi:ut,functionName:"transfer",args:g.args}).toLowerCase()!==f.data.toLowerCase())throw new Error("Action fee transfer is not canonical");d(g.args[0],g.args[1])}}if(p){if(w!==s)throw new Error("Action fee calls differ from the accepted fee plan")}else s>0n&&a.push(Te(o)?{to:i,value:s,data:"0x"}:{to:o,value:0n,data:Bt({abi:ut,functionName:"transfer",args:[i,s]})})}return[...a,...e]}function eu(e,t){let n,o;if(Te(t)){if(e.data!=="0x")return null;n=e.to,o=e.value}else{if(!G(e.to,t))return null;try{const r=Zn({abi:ut,data:e.data});if(r.functionName!=="transfer")return null;[n,o]=r.args}catch{return null}}return G(n,gn)?{gas:o,platform:0n}:G(n,zn)?{gas:0n,platform:o}:null}async function hh(e,t,n){const o=Rt(e);return Te(n)?o.getBalance({address:t}):o.readContract({address:n,abi:ut,functionName:"balanceOf",args:[t]})}function $r(e,t,n){return e.map(o=>o.chainId===t?{...o,calls:o.calls.filter(r=>!eu(r,n))}:o)}function tu(e,t,n){if(!e.feeOnlyAction)return{};const o=e.embeddedWalletAddress??e.providerEmbeddedAddress;if(e.feeQuote?.preview.feePayer==="relayer"){const u=async d=>{e.validateFeeQuote?.(),await Yi(d,o,t,e.signal),e.validateFeeQuote?.()};return{prepareForSigning:async d=>(await u(d),d),validateBeforeSubmit:u}}const r=e.feeQuote?.fundingSource,a=r&&r.kind!=="proceeds"?void 0:e.actionProceeds,i=r&&(r.kind==="input"||r.kind==="balance"&&r.asset?._source==="wallet")?r:void 0;if(a||e.feeQuote?.fundingConversion||i){const u=e.feeQuote?.fundingConversion,d=a??{token:t,resolve:async()=>0n},p=e.feeQuote?.preview,w=e.feeQuote?.proceedsUsed,f=u?.fromProceeds?u.tokenIn:t;if(!p||w===void 0||!i&&d.token.toLowerCase()!==f.toLowerCase())throw new Error("Refresh the action proceeds quote");const g=p.gasFee+(p.bridgeFee??0n),h=p.spicenetFee,b=i?async()=>{e.validateFeeQuote?.();const C=await hh(e.resolvedChainId,o,i.token);e.validateFeeQuote?.();const v=i.kind==="input"?i.amount:(u?.amountInMax??w)+(i.reservedAmount??0n);if(e.signal?.aborted||C<v||u&&u.amountOut<g+h)throw new Error("The fee funding balance changed; refresh before retrying");return u?[{chainId:e.resolvedChainId,token:t,amount:u.amountOut}]:[]}:async()=>{e.validateFeeQuote?.();const C=await d.resolve(e.signal);if(e.validateFeeQuote?.(),e.signal?.aborted||(u?.fromProceeds?C<u.amountInMax||u.amountOut<g+h:C<w||C+(u?.amountOut??n)<g+h))throw new Error("Action proceeds changed; refresh before retrying");return u?.fromProceeds?[{chainId:e.resolvedChainId,token:u.tokenIn,amount:u.amountInMax},{chainId:e.resolvedChainId,token:t,amount:u.amountOut}]:[{chainId:e.resolvedChainId,token:t,amount:w+(u?.amountOut??0n)}]},x=async C=>{await b();const v=await Yi(C,o,t,e.signal,u?h:void 0);if(await b(),(v>p.gasFee?v-p.gasFee:p.gasFee-v)*100n>v*15n)throw new Error("Action gas quote changed; refresh before retrying")};return{resolveActionOutputCredits:b,prepareForSigning:async C=>{if(e.feeQuote?.sourceAllocation||e.feeQuote?.feeSourceAllocation)return await x(C),C;const v=$r(C,e.resolvedChainId,t).map(T=>({...T,tokenTransfers:T.tokenTransfers?.filter(I=>!(typeof I.from=="string"&&G(I.from,o)&&(G(I.to,gn)||G(I.to,zn))))})),A=Ki(v,o,t,g,h);return await x(A),A},validateBeforeSubmit:x}}const s=Xt(t,e.resolvedChainId),c={chainId:e.resolvedChainId,tokenAddress:t,symbol:s?.symbol??e.destinationToken.symbol,decimals:e.executionTokenDecimals??s?.decimals??e.destinationToken.decimals},l=async u=>{e.validateFeeQuote?.();const d=$r(u,e.resolvedChainId,t),p=await e.execution.estimate(d,t,n,{userOverride:o,useCustomTransfers:!0,feeExecutionMode:"backend-transfer"});e.validateFeeQuote?.();const w=go(p,c);if(!w||w.chainId!==e.resolvedChainId)throw new Error("The fee service did not return the destination action's fee quote");if(w.gasFee+w.spicenetFee+(w.bridgeFee??0n)+2n>n)throw new Error("Fees exceed the displayed maximum funding; refresh the quote before retrying");return{raw:d,feeEstimate:p,fees:w}};return{prepareForSigning:async u=>{const{raw:d,feeEstimate:p}=await l(u);return e.feeQuote?.sourceAllocation||e.feeQuote?.feeSourceAllocation?u:_o(d,o,p,{payoutAlreadyGross:!0})},validateBeforeSubmit:async u=>{const{fees:d}=await l(u);let p=0n,w=0n;for(const g of u)if(g.chainId===e.resolvedChainId)for(const h of g.calls){const b=eu(h,t);b&&(p+=b.gas,w+=b.platform)}if(p+w+2n>n)throw new Error("Signed fees exceed the displayed maximum funding");const f=d.gasFee+(d.bridgeFee??0n);if((p>f?p-f:f-p)*100n>f*15n||w!==d.spicenetFee)throw new Error("The signed gas quote changed materially; refresh before retrying")}}}const gh="0xa9059cbb";function Rr(e,t,n){return Te(e)?{to:n,value:t,data:"0x"}:{to:e,value:0n,data:Bt({abi:ut,functionName:"transfer",args:[n,t]})}}function _i(e,t,n){return{chainId:n,calls:[Rr(e,t,Uo(n))]}}function wh(e,t,n,o){const r=t.source.chainId;return{chainId:r,calls:[...e.calls,Rr(t.source.address,n,Uo(r)),...o>0n?[Rr(t.source.address,o,gn)]:[]]}}function nu(e,t){const n=e.amountOutMinimum-t;if(n<=0n)throw new Error("Amount is too small to cover fees. Increase the amount and retry.");return n}function ou(e,t,n){return e?.asset?._source==="wallet"&&e?.asset.chainId===n}function ru(e){return e.isNative||Te(e.address)?!0:!Xt(e.address,e.chainId)}function au(e,t,n,o){return t!=="user-transfer"||!n||e.length===0||e[0]?.to.toLowerCase()!==o.toLowerCase()||!e[0]?.data.startsWith(gh)?{feeCall:null,remainingCalls:e}:{feeCall:e[0],remainingCalls:e.slice(1)}}async function _r(e,t,n,o){const r=await(t??Zr)({...n,requestTimestampMs:o});return r?[r,e]:[e]}function ea(e,t){const n=(e.tokenTransfers??[]).filter(o=>o.from==="escrow").map(o=>({token:ft(o.token),recipient:o.to,amount:BigInt(o.amount)})).filter(o=>o.amount>0n);return t!==void 0&&n.length===1&&(n[0]={...n[0],amount:t}),n.length>0?n:void 0}function ta(e,t,n){return on(e,t,n,"ceil")}function su(e){const t=e.selectedAsset?.asset;return e.isPayMode&&!!t&&t._source==="wallet"&&t.chainId!==e.resolvedChainId&&!!e.pivot}function ec(e){const t=e.selectedAsset?.asset;return!e.isPayMode&&!!t&&t._source==="wallet"&&t.chainId!==e.resolvedChainId&&!!e.sourceSwap&&!!e.pivot}function Da(e,t){if(t?.sourceSpendCap!==void 0&&e>t.sourceSpendCap)throw new Error("The source amount increased. Review the updated quote before submitting.");t?.onSourceSpend?.(e)}async function iu(e,t,n){let o;const r=await e({...t,buildActionCalls:async(a,i)=>{o=a;const s=mh(await t.buildActionCalls(a,i),i);return n?.onActionCalls?.({amount:a,context:i,calls:s}),s}},n);if(o!==void 0){if(n?.minimumDestinationAmount!==void 0&&o<n.minimumDestinationAmount)throw new Error("The destination amount decreased. Review the refreshed quote before submitting.");n?.onDestinationAmount?.(o)}return r}const na=(e,t)=>iu(yh,e,t),Ms=async(e,t)=>{const n=await iu(bh,e,t),o=t?.actionContextOverride?.feeBreakdown,r=n[n.length-1];if(t?.actionContextOverride?.feePolicy||e.feeExecutionMode!=="user-transfer"||!o||!r)return n;const a=e.needsSwap&&e.resolvedTokenIn?e.resolvedTokenIn:e.destinationToken.address,[i]=$r([r],e.resolvedChainId,a),s=Bs(e.resolvedChainId,a,[{recipient:zn,amount:o.spicenetFee},{recipient:gn,amount:o.gasFee+(o.bridgeFee??0n)}]).calls,c=r.calls.filter(l=>!i.calls.includes(l));return c.length===s.length&&s.every(l=>c.some(u=>u.to.toLowerCase()===l.to.toLowerCase()&&u.value===l.value&&u.data===l.data))?n:[...n.slice(0,-1),{...i,calls:[...s,...i.calls]}]};async function yh(e,t){const{currentPaymentAmount:n,destinationToken:o,embeddedWalletAddress:r,providerEmbeddedAddress:a,address:i,isNon7702:s,resolvedChainId:c,buildActionCalls:l,feeExecutionMode:u,buildSpicenetBatch:d,needsSwap:p,exactOutputSwap:w,resolvedTokenIn:f,requestTimestampMs:g}=e,h=t?.sourceAssetOverride?{asset:t.sourceAssetOverride}:e.selectedAsset,b=t?.fundingTokenOverride??f,x=Rn(n,o.decimals),C=t?.actionAmountOverride??(e.feeOnlyAction?0n:x),v=!!e.feeOnlyAction&&(t?.fundingAmountOverride??0n)>0n,A=r||a||i;if(!A)throw new Error("Embedded wallet address is not available. Please sign in and try again.");const T={userAddress:e.recipient??A,executorAddress:A,beneficiary:e.recipient??A,outputRecipient:p?A:void 0,chainId:c,destinationToken:o.address,grossAmount:t?.fundingAmountOverride??x,netAmount:C,combinedFeeAmount:t?.actionContextOverride?.combinedFeeAmount,feeExecutionMode:u,feeBreakdown:t?.actionContextOverride?.feeBreakdown,...t?.actionContextOverride},I=()=>{p&&w&&t?.onSwap?.({...w,amountOutMinimum:w.amountOut},w.amountInMax)},y=await l(C,T),k={chainId:c,calls:y},E=!!h&&h.asset._source!=="wallet",F=ou(h??null,s,c),U=E||F&&!!h&&!ru(h.asset),O=(D,W)=>({token:ft(D),from:"escrow",to:A,amount:W}),M=(D,W,S)=>F?[_i(D,W,c),...S]:S;if(x===0n&&!v)return[k];const B=t?.combinedSourceGroupOverride===null?void 0:t?.combinedSourceGroupOverride??e.combinedSourceGroup;if(B&&(!p||b?.toLowerCase()===B.token.toLowerCase())){if(p&&!w)throw new Error("The action quote is unavailable.");I();const D=p?{...k,calls:[...w.calls,...y]}:k,W=t?.fundingAmountOverride??(p?w?.amountInMax??0n:x),S=$i(B,W,"in-place",{quoteOnly:!0});if(t?.onSourceAllocation?.(S),Da(An(W,B.decimals,B.representativeDecimals),t),S.escrowWithdrawal===0n)return[D];const q={...D,tokenTransfers:[O(B.token,S.escrowWithdrawal)]};return _r(q,d,{userAddress:A,destinationChainId:c,deliveryToken:B.token,deliveryAmount:S.escrowWithdrawal,deliveryRecipient:A,deliveryTransfers:ea(q),sourceAsset:B.escrow},g)}if(h?.asset._source==="wallet"&&h.asset.chainId!==c&&!e.pivot)throw new Error("A current source-to-destination funding route is required");if(e.feeOnlyAction&&t?.fundingTokenOverride&&F)return Da(t.fundingAmountOverride??0n,t),[k];if(su(e)){if(p&&!w)throw new Error("Swap quote not available yet");const D=t?.fundingAmountOverride??(w?w.amountInMax:x),W=t?.sourceGasSkimOverride??0n,S=on(D,e.pivot.destination.decimals,e.pivot.source.decimals,"ceil"),q=S+W,z=e.sourceExactOutputSwap,te=z&&(t?.reuseQuotedSourceSwap||z.amountOut>=q)?z:e.resolveSourceExactOutputSwap?await e.resolveSourceExactOutputSwap(q):null;if(!te)throw new Error("Swap quote not available yet");Da(te.amountInMax,t);const Y=h.asset;if(te.amountInMax>Y.balance)throw new Error(`Insufficient ${Y.symbol} for this payment. Required ${Me(te.amountInMax,Y.decimals)} ${Y.symbol}; available ${Me(Y.balance,Y.decimals)} ${Y.symbol}.`);const j=te.amountOut>=q?S:te.amountOut-W;if(j<=0n)throw new Error("Amount is too small to cover fees. Increase the amount and retry.");const K={chainId:e.pivot.source.chainId,calls:[...te.calls,Rr(e.pivot.source.address,j,Uo(e.pivot.source.chainId)),...W>0n?[Rr(e.pivot.source.address,W,gn)]:[]]};I();const X={chainId:c,calls:[...w?.calls??[],...y],tokenTransfers:[O(e.pivot.destination.address,D),...k.tokenTransfers??[]]},xe=await _r(X,d,{userAddress:A,destinationChainId:c,deliveryToken:e.pivot.destination.address,deliveryAmount:D,deliveryRecipient:A,deliveryTransfers:ea(X),sourceAsset:h.asset},g);return[K,...xe]}if(h){const D=t?.fundingAmountOverride??w?.amountInMax??x;Da(ta(D,await qo(h.asset,b??h.asset.address,c,o),h.asset.decimals),t)}if(p&&w){const D=b??lo(h.asset,c)??h.asset.address,W=t?.fundingAmountOverride??w.amountInMax,S=U?[O(D,W)]:[];I();const q={chainId:c,calls:[...w.calls,...y],tokenTransfers:[...S,...k.tokenTransfers??[]]};if(!U)return[q];const z=await _r(q,d,{userAddress:A,destinationChainId:c,deliveryToken:D,deliveryAmount:W,deliveryRecipient:A,deliveryTransfers:ea(q),sourceAsset:h.asset},g);return M(D,W,z)}if(U){const D=b??lo(h.asset,c)??o.address;if(F&&!e.feeOnlyAction&&D.toLowerCase()===o.address.toLowerCase())return[k];const W=t?.fundingAmountOverride??x,S={...k,tokenTransfers:[O(D,W),...k.tokenTransfers??[]]},q=await _r(S,d,{userAddress:A,destinationChainId:c,deliveryToken:D,deliveryAmount:W,deliveryRecipient:A,deliveryTransfers:ea(S),sourceAsset:h.asset},g);return M(D,W,q)}return[k]}async function bh(e,t){const{selectedAsset:n,embeddedWalletAddress:o,recipient:r,resolvedChainId:a,destinationToken:i,buildActionCalls:s,feeExecutionMode:c,buildSpicenetBatch:l,isPayMode:u,isNon7702:d,needsSwap:p,resolvedSwap:w,quoteAmountOut:f,resolvedTokenIn:g,requestTimestampMs:h}=e;if(!n?.asset||!o)return[];const b=r??o;if(!b)return[];const x=ec(e);let C=e.sourceSwap,v=Rn(n.amount,n.asset.decimals),A=x?e.sourceSwap.amountOutMinimum:null;if(x&&e.isFeeInclusiveInput&&(A=nu(e.sourceSwap,t?.sourceGasSkimOverride??0n)),x&&!e.isFeeInclusiveInput&&(t?.fundingAmountOverride!==void 0||(t?.sourceGasSkimOverride??0n)>0n)){A=t?.fundingAmountOverride!==void 0?ta(t.fundingAmountOverride,e.pivot.destination.decimals,e.pivot.source.decimals):e.sourceSwap.amountOutMinimum;const ve=A+(t?.sourceGasSkimOverride??0n);if(!e.resolveSourceExactOutputSwap)throw new Error("The source quote cannot include fees yet.");const Se=await e.resolveSourceExactOutputSwap(ve);if(Se.amountOut<ve)throw new Error("The source quote does not cover the accepted funding amount.");v=Se.amountInMax,C={...Se,amountOutMinimum:Se.amountOut}}const T=x?e.pivot.destination.address:g??lo(n.asset,a)??i.address,I=x?e.pivot.destination.decimals:await qo(n.asset,T,a,i),y=t?.fundingAmountOverride??t?.actionAmountOverride??(x?on(A,e.pivot.source.decimals,I,"floor"):An(Rn(n.amount,n.asset.decimals),n.asset.decimals,I)),k=t?.fundingAmountOverride??y,E=t?.combinedSourceGroupOverride===null?void 0:t?.combinedSourceGroupOverride??e.combinedSourceGroup,F=E&&!x?$i(E,k,"escrow",{quoteOnly:!0}):void 0;F&&t?.onSourceAllocation?.(F);const U=F?.walletDeposit??t?.sourceFundingAmountOverride??ta(y,I,n.asset.decimals);Da(F&&E?An(k,E.decimals,E.representativeDecimals):x?v:U,t);const O=t?.deliveryAmountOverride??(c==="user-transfer"?k:t?.actionContextOverride?.netAmount??k),M=t?.withdrawalAmountOverride??O,B=t?.actionAmountOverride??t?.actionContextOverride?.netAmount??y;let D=w;if(p&&!u&&(t?.actionContextOverride?.netAmount!==void 0||x&&(t?.sourceGasSkimOverride??0n)>0n&&!t?.reuseQuotedSourceSwap)){if(!e.resolveInputSwap)throw new Error("Swap quote cannot be refreshed for the amount after fees.");const ve=t?.actionContextOverride?.netAmount??B;(!D||e.swapInputAmount!==ve)&&(D=await e.resolveInputSwap(ve,w??void 0))}const W=D?.amountOutMinimum??f,S={userAddress:b,executorAddress:o,beneficiary:b,outputRecipient:p?o:void 0,chainId:a,destinationToken:i.address,feeToken:c==="user-transfer"&&p&&g?g:i.address,grossAmount:k,netAmount:B,combinedFeeAmount:t?.actionContextOverride?.combinedFeeAmount,feeExecutionMode:c,feeBreakdown:t?.actionContextOverride?.feeBreakdown,...t?.actionContextOverride},q=()=>s(B,S),z=n.asset?._source==="wallet";if(!u&&z&&n.asset.chainId===a&&ru(n.asset)){if(p){if(!g)throw new Error("Swap input token could not be resolved");if(!D||W===null)throw new Error("Swap quote not available yet")}if(p&&D&&W){t?.onSwap?.(D,t?.actionContextOverride?.netAmount??e.swapInputAmount??B);const ve=await s(t?.actionAmountOverride??W,{...S,netAmount:t?.actionAmountOverride??W}),{feeCall:Se,remainingCalls:ne}=au(ve,c,p,S.feeToken);return[{chainId:a,calls:[...Se?[Se]:[],...D.calls,...ne]}]}return[{chainId:a,calls:await q()}]}if(!u&&z&&n.asset.chainId!==a&&!x)throw new Error("A current source-to-destination funding route is required");const te=n.asset._source!=="wallet",Y=ou(n,d,a);if(!(te||Y||x))return[{chainId:a,calls:await q()}];const j=x?wh(C,e.pivot,A,t?.sourceGasSkimOverride??0n):F&&E?F.walletDeposit>0n?_i(E.token,F.walletDeposit,a):null:Y?_i(g??ft(n.asset.address),U,a):null,K=(ve,Se)=>({token:ft(ve),from:"escrow",to:o,amount:Se});if(p){if(!g)throw new Error("Swap input token could not be resolved");if(!D||W===null)throw new Error("Swap quote not available yet")}if(p&&D&&W&&g){t?.onSwap?.(D,t?.actionContextOverride?.netAmount??e.swapInputAmount??B);const ve=await s(t?.actionAmountOverride??W,{...S,netAmount:t?.actionAmountOverride??W}),{feeCall:Se,remainingCalls:ne}=au(ve,c,p,S.feeToken),_={chainId:a,calls:[...Se?[Se]:[],...D.calls,...ne],tokenTransfers:[K(g,O)]},ue=await _r(_,l,{userAddress:o,destinationChainId:a,deliveryToken:g,deliveryAmount:O,withdrawalAmount:M,deliveryRecipient:o,deliveryTransfers:ea(_,M),sourceAsset:n.asset},h);return j?[j,...ue]:ue}const X=g??lo(n.asset,a)??i.address,xe={chainId:a,calls:await q(),tokenTransfers:[K(X,O)]},ge=await _r(xe,l,{userAddress:o,destinationChainId:a,deliveryToken:X,deliveryAmount:O,withdrawalAmount:M,deliveryRecipient:o,deliveryTransfers:ea(xe,M),sourceAsset:n.asset},h);return j?[j,...ge]:ge}async function xh(e,t,n,o,r){let a=e;for(let i=0;i<4;i++){const s=await t(a),c=await o(s,n,a,r),l=Vp(c);if(l===null||l>=e)return a;const u=a-l,d=e+u;if(d<=a)return a;a=d}return a}function vh(e){return{...e,resolve:async(t,n,o)=>{const r=await e.resolve(t,n,o),a=r?.calls[0]?.to;return!r||!a||Te(t.tokenIn)?r:{...r,calls:[{to:t.tokenIn,value:0n,data:Bt({abi:ut,functionName:"approve",args:[a,r.amountInMax]})},...r.calls]}}}}function Ma(e){const t=(e?.customVenues??[]).map(o=>Ff(vh(o)));async function n(o,r,a){const i=t.filter(l=>l.chainIds.includes(r));if(i.length===0)throw new we("NO_SWAP_ROUTE",`No exact-output venue supports chain ${r}`,{chainId:r,tokenIn:o.tokenIn,tokenOut:o.tokenOut});const s=(await Promise.allSettled(i.map(async l=>({venue:l,quote:await l.resolve(o,r,a)})))).filter(l=>l.status==="fulfilled").map(l=>l.value).filter(l=>l.quote!==null);if(s.length===0)throw new we("NO_SWAP_ROUTE",`All aggregators failed for ${o.tokenIn} \u2192 ${o.tokenOut} on chain ${r}`,{chainId:r,tokenIn:o.tokenIn,tokenOut:o.tokenOut,amountOut:o.amountOut.toString()});const c=s.find(l=>l.venue.preferred);return c?c.quote:(s.sort((l,u)=>l.quote.amountIn<u.quote.amountIn?-1:l.quote.amountIn>u.quote.amountIn?1:0),s[0].quote)}return{getQuote:n,venues:t}}function cu(e,t,n){if(e._source==="wallet")return e.chainId===t?e.address:null;const o=Qr(e,t);return o.find(r=>r.toLowerCase()===n.toLowerCase())??o[0]??null}async function tc(e,t,n,o){const r=Fo(o),a=await qe.estimateBatchGas({user:t,outputToken:n,requireSimulation:!0,includePlatformFee:!0,signal:e.signal,chainBatches:o.map((i,s)=>({...i,hash:r[s].hash}))});if(!a.simulationVerified||a.gasQuoteSource!=="estimated"||a.platformFee===void 0||a.gasFee<=0n)throw new Error("Fee funding requires verified gas and platform pricing");return a}async function Na(e,t){const n=e.selectedAsset?.asset,o=!t&&!!e.actionProceeds&&e.actionProceeds.token.toLowerCase()!==e.destinationToken.address.toLowerCase(),r=!!t||o,a=e.embeddedWalletAddress||e.providerEmbeddedAddress;if(!a||!r&&(!n||n._source!=="spice"&&!(n._source==="wallet"&&n.chainId===e.resolvedChainId)))throw new Error("A local embedded or Spice balance is required for fee conversion");const i=t?t.token:o?e.actionProceeds.token:cu(n,e.resolvedChainId,e.destinationToken.address);if(!i)throw new Error("This receipt has no registered destination withdrawal token");const s=Xt(i,e.resolvedChainId)?.decimals??(Te(i)?18:r?await Rt(e.resolvedChainId).readContract({address:i,abi:ut,functionName:"decimals"}):n?._source==="wallet"?n.decimals:void 0);if(s===void 0)throw new Error("Fee funding token metadata is unavailable");const c=e.destinationToken.address;if(e.actionProceeds&&!o&&e.actionProceeds.token.toLowerCase()!==c.toLowerCase())throw new Error("Action proceeds must use the destination fee token");const l=t?t.amount:e.actionProceeds?await e.actionProceeds.resolve(e.signal):0n;if(l<0n||e.signal?.aborted)throw new Error("Action proceeds quote was cancelled or invalid");const u=Ma({customVenues:[...e.resolveExactOutputSwap?[{name:"consumer-exact-output",chainIds:[e.resolvedChainId],preferred:!0,resolve:e.resolveExactOutputSwap}]:[],...Er(e.liquidityVenues).output]}),d=w=>tc(e,a,c,w);let p=await d(await e.buildPayChainBatches({fundingAmountOverride:0n}));for(let w=0;w<8;w++){const f=p.gasFee+p.platformFee,g=r?0n:l<f?l:f,h=f-g,b=h>0n?(h*110n+99n)/100n+2n:0n,x=b>0n?await u.getQuote({tokenIn:i,tokenOut:c,amountOut:b,maxSlippage:e.maxSlippage},e.resolvedChainId,a):null;if(e.signal?.aborted)throw new Error("Fee conversion quote was cancelled");if(x&&(x.amountOut!==b||x.amountInMax<=0n||x.amountInMax<x.amountIn||!x.calls.length))throw new Error("Invalid exact-output fee conversion quote");const C=x?.amountInMax??0n,v=r?0n:ta(C,s,n.decimals);if(r&&C>l)throw new pr(C,l);if(!r&&v>n.balance)throw new pr(v,n.balance);let A,T=_o(await e.buildPayChainBatches({fundingAmountOverride:r?0n:C,...r?{}:{fundingTokenOverride:i},...t?{actionAmountOverride:t.amount-C}:{},...o?{actionOutputFee:C}:{},onActionCalls:y=>{A=y}}),a,void 0,{expiresAt:e.expiresAt});if(x){const y=T.length-1;T=T.map((k,E)=>E===y?{...k,calls:[...k.calls,...x.calls]}:k)}T=Ki(T,a,c,p.gasFee,p.platformFee);const I=await d(T).catch(y=>{throw x&&y instanceof we&&y.code==="RELAYER_ERROR"&&y.context.endpoint==="/actions/gas/estimate"&&y.context.httpStatus===400&&/^Execution reverted\b/i.test(y.message)?new we("NO_SWAP_ROUTE",y.message,y.context):y});if(I.gasFee<=p.gasFee&&(p.gasFee-I.gasFee)*100n<=I.gasFee*15n&&I.platformFee===p.platformFee){const y={tokenIn:i,tokenOut:c,amountInMax:C,amountOut:b,sourceAmountMax:v,...o?{fromProceeds:!0}:{},...t?{fromInput:!0}:{}};return{feeEstimate:null,preview:{symbol:e.destinationToken.symbol,decimals:e.destinationToken.decimals,grossAmount:r?0n:b,netAmount:0n,gasFee:p.gasFee,spicenetFee:p.platformFee,totalFee:f,gasQuoteSource:"estimated"},grossFundingAmount:r?0n:C,proceedsAvailable:l,proceedsUsed:r?f:g,fundingConversion:y,fundingBatches:T,sourceSpendCap:v,destinationAmount:0n,actionDefinition:A}}p=I}throw new Error("Fee conversion pricing did not converge")}const Ns=["input","proceeds","balance"];function lu(e){if(e.reserve&&e.reserve.amount<0n)throw new Error("Fee funding reserve cannot be negative");if(e.reserves?.some(s=>s.amount<0n))throw new Error("Fee funding reserve cannot be negative");const t=s=>G(s,e.feeToken),n=(s,c)=>Number(s.swap)-Number(c.swap),o={input:[],proceeds:[],balance:[]};for(const s of e.inputs??[])s.amount>0n&&o.input.push({kind:"input",...s,swap:!t(s.token)});o.input.sort(n);for(const s of Array.isArray(e.proceeds)?e.proceeds:e.proceeds?[e.proceeds]:[])s.amount>0n&&o.proceeds.push({kind:"proceeds",...s,swap:!t(s.token)});o.proceeds.sort(n);const r=e.balances.filter(s=>s._source==="wallet"&&s.chainId===e.chainId&&s.location!=="external"),a=e.balances.filter(s=>s._source==="spice"),i=s=>{const c=[];for(const l of s){const u=[...e.reserves??[],...e.reserve?[e.reserve]:[]].filter(f=>Ie(l)===Ie(f.asset)).reduce((f,g)=>g.amount>f?g.amount:f,0n),d=l.balance-u;if(d<=0n)continue;const p=u>0n?{...l,balance:d,balanceFormatted:Number(Me(d,l.decimals)),balanceUsd:l.balanceUsd*Number(d)/Number(l.balance)}:l,w=cu(p,e.chainId,e.feeToken);w&&(e.inputs?.some(f=>G(f.token,w)&&![...e.reserves??[],...e.reserve?[e.reserve]:[]].some(g=>G(g.asset.address,f.token)))||c.push({kind:"balance",token:w,amount:p.balance,asset:p,...u>0n?{reservedAmount:u}:{},swap:!t(w)}))}return c.sort((l,u)=>n(l,u)||u.asset.balanceUsd-l.asset.balanceUsd)};return o.balance=[...i(r),...i(a)],(e.order??Ns).flatMap(s=>o[s])}function Ih(e){return e instanceof pr||e instanceof we&&e.code==="NO_SWAP_ROUTE"}async function nc(e,t){const n=e.embeddedWalletAddress||e.providerEmbeddedAddress;if(!n||!e.ready||!e.authenticated)return null;const o=e.destinationToken.address;let r;const a=()=>r??(r=(async()=>{const l=await tc(e,n,o,await e.buildPayChainBatches({fundingAmountOverride:0n}));return{feeEstimate:null,preview:{symbol:e.destinationToken.symbol,decimals:e.destinationToken.decimals,gasFee:l.gasFee,spicenetFee:l.platformFee,bridgeFee:0n,totalFee:l.gasFee+l.platformFee,grossAmount:0n,netAmount:0n,gasQuoteSource:"estimated"}}})()),i=(l,u)=>e.buildPayChainBatches({...u,fundingAmountOverride:l}),s=(l,u,d=!1)=>Xd({proceeds:{token:o,resolve:async()=>l},owner:n,token:o,signal:e.signal,baseline:a,buildBatches:(p,w)=>i(p,{...w,actionOutputFee:d?w?.actionOutputFee:void 0}),fundShortfall:!1,expiresAt:e.expiresAt,actionAmountFor:u}),c=async l=>{if(l.kind==="input")return l.swap?Na({...e,actionProceeds:void 0},l):s(l.amount,f=>l.amount-f);if(l.kind==="proceeds"){const f={token:l.token,resolve:async()=>l.amount};return l.swap?Na({...e,actionProceeds:f}):s(l.amount,void 0,!0)}const u=l.asset;if(u._source==="wallet"&&!l.swap)return s(u.balance);let d=!l.swap&&u._source==="spice"?e.getCombinedSourceGroup?.(u):void 0;if(d){const f=[Ie(d.wallet),Ie(d.escrow)],g=[...e.feeFundingReserves??[],...e.feeFundingReserve?[e.feeFundingReserve]:[]].filter(h=>f.includes(Ie(h.asset)));g.length&&(d=e.getCombinedSourceGroup?.(u,g))}const p={...e,selectedAsset:{asset:u,amount:"0"},combinedSourceGroup:d,resolvedTokenIn:l.token,actionInput:void 0,actionProceeds:void 0,buildPayChainBatches:f=>e.buildPayChainBatches({...f,sourceAssetOverride:u,combinedSourceGroupOverride:d??null,fundingTokenOverride:f?.fundingTokenOverride??l.token})};if(l.swap)return Na(p);const w=await t(p);if(w&&(w.sourceSpendCap??0n)>(d?.availableBalance??u.balance))throw new pr(w.sourceSpendCap,d?.availableBalance??u.balance);return w};for(const l of e.feeFunding??Ns){const u=l!=="proceeds"?[]:e.actionProceedsCandidates?await e.actionProceedsCandidates(e.signal):e.actionProceeds?[{token:e.actionProceeds.token,amount:await e.actionProceeds.resolve(e.signal)}]:[];if(e.signal?.aborted)throw new Error("Fee funding quote was cancelled");if(u.some(p=>p.amount<0n))throw new Error("Action proceeds cannot be negative");const d=lu({feeToken:o,chainId:e.resolvedChainId,inputs:e.actionInput,proceeds:[...u.reduce((p,w)=>{const f=w.token.toLowerCase(),g=p.get(f);return p.set(f,{token:w.token,amount:(g?.amount??0n)+w.amount}),p},new Map).values()],balances:e.feeFundingBalances??[],order:[l],reserve:e.feeFundingReserve,reserves:e.feeFundingReserves});for(const p of d)try{const w=await c(p);if(!w)continue;const{swap:f,...g}=p;return{...w,fundingSource:g}}catch(w){if(e.signal?.aborted||!Ih(w))throw w}}if(!e.isNon7702&&e.allowRelayerFeeFallback!==!1){if(e.feeFundingError)throw new Error(e.feeFundingError);let l;const u=await e.buildPayChainBatches({fundingAmountOverride:0n,onActionCalls:d=>{l=d}});if(u.every(d=>d.domain!=="spicenet"&&!d.tokenTransfers?.length)){const d=await tc(e,n,o,u);if(e.signal?.aborted)throw new Error("Fee funding quote was cancelled");return{feeEstimate:null,actionDefinition:l,batches:u,sourceSpendCap:0n,grossFundingAmount:0n,preview:{feePayer:"relayer",symbol:e.destinationToken.symbol,decimals:e.destinationToken.decimals,gasFee:d.gasFee,spicenetFee:d.platformFee,bridgeFee:0n,totalFee:d.gasFee+d.platformFee,grossAmount:0n,netAmount:0n,gasQuoteSource:"estimated"}}}}throw new Error(`No available balance can cover this action's ${e.destinationToken.symbol} execution cost`)}async function du(e,t,n,o=!1){const r=e.selectedAsset,a=e.embeddedWalletAddress||e.providerEmbeddedAddress;if(!r||!a||!e.ready||!e.authenticated||e.isQuoting)return null;if(!e.combinedSourceGroup&&r.asset._source!=="wallet"||r.asset.chainId!==e.resolvedChainId||!jr(r.asset)&&r.asset.owner&&!G(r.asset.owner,a))throw new Error("Funded fee hierarchy requires principal on the action chain in the executing wallet.");if(o&&(e.isPayMode||!e.isFeeInclusiveInput||t.recipient&&!G(t.recipient,a)))throw new Error("Output-funded actions require an input-inclusive amount left in the executing wallet.");if(e.isPayMode&&e.needsSwap&&!e.exactOutputSwap)return null;const i=e.isPayMode?Rn(e.currentPaymentAmount,e.destinationToken.decimals):void 0;if(e.isPayMode&&e.needsSwap&&e.exactOutputSwap.amountOut!==i)throw new Error("Wait for the payment quote for the current amount.");const s=cr(e.resolvedChainId).find(A=>A.equivalenceGroup==="USDC");if(!s)throw new Error("Configure the execution fee token for this chain.");const c={...s,address:s.address,chainId:e.resolvedChainId},l=i!==void 0?e.needsSwap?e.exactOutputSwap.amountInMax:i:Rn(r.amount,r.asset.decimals);if(l<=0n||l>(e.combinedSourceGroup?.availableBalance??r.asset.balance))throw new Error("Enter an amount within the available balance.");if(!e.isPayMode&&e.needsSwap&&t.swapInputAmount!=null&&t.swapInputAmount!==l)throw new Error("Wait for the action quote for the current amount.");const u=i??(e.needsSwap?t.resolvedSwap?.amountOutMinimum??0n:l);let d=t.resolvedSwap??void 0,p=l,w=u;const f=e.combinedSourceGroup?$i(e.combinedSourceGroup,l,"in-place"):void 0,g={...e,feeOnlyAction:!0,selectedAsset:null,isPayMode:!0,isFeeInclusiveInput:!1,parsedAmount:0,currentPaymentAmount:"0",destinationToken:c,resolvedTokenIn:c.address,executionTokenAddress:c.address,needsSwap:!1,resolvedSwap:null,isDirect:!0,actionInput:!e.isPayMode&&e.isFeeInclusiveInput?[{token:r.asset.address,amount:l}]:void 0,actionProceeds:o?{token:e.destinationToken.address,resolve:async()=>u>0n?u-1n:0n}:e.actionProceeds,feeFundingBalances:e.feeFundingBalances?.filter(A=>!A.balanceError&&!(e.feeFundingReserve&&Ie(e.feeFundingReserve.asset)!==Ie(r.asset)&&Ie(A)===Ie(e.feeFundingReserve.asset))&&!jr(A)&&(!A.owner||G(A.owner,a))),feeFundingReserves:f?.positions.map(A=>({asset:A.asset,amount:A.amount})),feeFundingReserve:f?void 0:{asset:r.asset,amount:e.feeFundingReserve&&Ie(e.feeFundingReserve.asset)===Ie(r.asset)&&e.feeFundingReserve.amount>l?e.feeFundingReserve.amount:l},buildPayChainBatches:async A=>{const T=A?.actionAmountOverride??l;if(T<=0n)throw new pr(l+1n,l);const I=!e.isPayMode&&e.needsSwap?T===l?t.resolvedSwap:await t.resolveInputSwap?.(T,t.resolvedSwap??void 0):null,y=e.needsSwap?e.isPayMode?e.exactOutputSwap:I:null;if(e.needsSwap&&!y)throw new Error("The action quote is unavailable.");d=I??(e.isPayMode&&y?{...y,amountOutMinimum:y.amountOut}:void 0),p=T;const k=i??d?.amountOutMinimum??T,E=o?A?.actionOutputFee??0n:0n;if(E<0n)throw new Error("Output fee cannot be negative");if(E>=k)throw new pr(E+1n,k);w=k-E;const F={userAddress:t.recipient??a,executorAddress:a,beneficiary:t.recipient??a,outputRecipient:a,chainId:e.resolvedChainId,destinationToken:e.destinationToken.address,grossAmount:u,netAmount:w,feeToken:c.address,feeExecutionMode:"backend-transfer"},U=await t.buildActionCalls(w,F),O={amount:w,context:F,calls:U},M=[...y?.calls??[],...U];let B=await na({...t,selectedAsset:null,combinedSourceGroup:void 0,feeOnlyAction:!0,isPayMode:!0,isFeeInclusiveInput:!1,currentPaymentAmount:"0",destinationToken:c,resolvedTokenIn:c.address,needsSwap:!1,resolvedSwap:null,exactOutputSwap:null,quoteAmountOut:null,feeExecutionMode:"backend-transfer",buildActionCalls:()=>M},{...A,onActionCalls:()=>A?.onActionCalls?.(O)});if(f?.escrowWithdrawal){const D=[...B].reverse().findIndex(S=>S.domain!=="spicenet"&&S.chainId===e.resolvedChainId),W=D<0?-1:B.length-D-1;if(W<0)throw new Error("The action quote is unavailable.");B[W]={...B[W],tokenTransfers:[...B[W].tokenTransfers??[],{token:f.token,from:"escrow",to:a,amount:f.escrowWithdrawal}]},B=_o(B,a,void 0,{payoutAlreadyGross:!0,requestTimestampMs:t.requestTimestampMs,expiresAt:e.expiresAt})}return B}},h=await nc(g,n);if(!h)return null;const b=o&&h.fundingSource?.kind==="proceeds"?h.fundingConversion?.amountInMax??h.proceedsUsed??0n:0n;if(w<=0n)throw new Error("Not enough action output remains after execution costs.");let x=f;const C=x&&h.sourceAllocation&&x.positions.every(A=>h.sourceAllocation.positions.some(T=>T.positionId===A.positionId)),v=h.sourceAllocation&&!C?h.sourceAllocation:void 0;if(x){const A=h.sourceAllocation?.positions??[],T=h.fundingSource?.kind==="balance"&&h.fundingSource.asset&&Ie(h.fundingSource.asset)===Ie(e.combinedSourceGroup.wallet)?h.fundingConversion?.amountInMax??h.proceedsUsed??0n:0n,I=A.find(k=>k.positionId===Ie(e.combinedSourceGroup.wallet))?.amount??T,y=A.find(k=>k.positionId===Ie(e.combinedSourceGroup.escrow))?.amount??(h.fundingSource?.kind==="balance"&&h.fundingSource.asset&&Ie(h.fundingSource.asset)===Ie(e.combinedSourceGroup.escrow)?h.sourceSpendCap??0n:0n);x={...x,grossAmount:l+I+y,walletInPlace:x.walletInPlace+I,escrowWithdrawal:x.escrowWithdrawal+y,positions:x.positions.map(k=>({...k,amount:k.amount+(k.asset.location==="embedded"?I:y),reservedAmount:0n}))}}return{...h,preview:G(e.destinationToken.address,c.address)?{...h.preview,netAmount:w,grossAmount:w+(h.preview.feePayer==="relayer"?0n:h.preview.gasFee+h.preview.spicenetFee+(h.preview.bridgeFee??0n))}:h.preview,fundedFeeToken:c,batches:h.fundingBatches??h.batches,destinationSwap:d,swapInputAmount:p,destinationAmount:w,actionOutputCredits:Es(e.resolvedChainId,e.destinationToken.address,d&&{...d,amountOutMinimum:d.amountOutMinimum-b}),sourceAllocation:x,feeSourceAllocation:v,sourceSpendCap:x?.grossAmount??l+(h.fundingSource?.kind==="balance"&&h.fundingSource.asset&&Ie(h.fundingSource.asset)===Ie(r.asset)?h.fundingConversion?.amountInMax??h.proceedsUsed??0n:0n)}}function oc(e,t){const n=new Map,o=(i,s,c)=>{if(c<0n)throw new Error("Accepted wallet funding must not be negative");if(!c)return;if(!Number.isInteger(i)||i<=0)throw new Error("Accepted wallet funding chain is unavailable");s=ft(s);const l=`${i}:${s.toLowerCase()}`,u=n.get(l);n.set(l,{chainId:i,token:s,amount:(u?.amount??0n)+c})},r=[e.sourceAllocation,e.feeSourceAllocation];if(e.fundingPlan)for(const i of e.fundingPlan.sources)i.asset.location==="embedded"&&o(i.chainId,i.token,i.sourceSpendCap);else{if(e.sourceAllocation)for(const s of e.sourceAllocation.positions)s.asset.location==="embedded"&&o(e.sourceAllocation.chainId,e.sourceAllocation.token,s.amount);else t?.asset._source==="wallet"&&e.sourceSpendCap!==void 0&&o(t.asset.chainId,t.asset.address,e.sourceSpendCap);if(e.feeSourceAllocation)for(const s of e.feeSourceAllocation.positions)s.asset.location==="embedded"&&o(e.feeSourceAllocation.chainId,e.feeSourceAllocation.token,s.amount);const i=e.fundingSource;if(i?.kind==="balance"&&i.asset?._source==="wallet"){const s=Ie(i.asset),c=r.some(u=>u?.positions.some(d=>d.positionId===s)),l=!!e.fundedFeeToken&&!!t&&s===Ie(t.asset);!c&&!l&&o(i.asset.chainId,i.token,e.fundingConversion?.amountInMax??e.proceedsUsed??0n)}if(i?.kind==="input"&&!e.fundedFeeToken){const s=e.batches??e.fundingBatches??[],c=e.actionDefinition?.context.chainId??[...s].reverse().find(l=>l.domain!=="spicenet")?.chainId;o(c??0,i.token,i.amount)}}const a=e.externalGasReserve?.fundingSource;return a&&o(a.asset.chainId,a.token,a.amount),[...n.values()]}async function kh(e,t){const n=e.externalGasRecipient,o=e.embeddedWalletAddress||e.providerEmbeddedAddress,r=e.resolvedChainId,a=t.batches,i=a.map(b=>b.chainId).lastIndexOf(r);if(i<0)throw new Error("Destination gas quote is unavailable.");const[s,c]=await Promise.all([qe.estimateBatchGas({user:o,outputToken:Zt,chainBatches:a,stepIndex:i,signal:e.signal}),Rt(r).getBalance({address:n})]);if(e.signal?.aborted)throw new Error("Fee estimation cancelled");if(s.gasQuoteSource!=="estimated"||s.gasFee<=0n)throw new Error("A native gas quote is required for the external wallet.");const l=a[i].calls.reduce((b,x)=>G(x.to,n)&&x.data==="0x"?b+x.value:b,0n),u=3n*s.gasFee,d=await e.externalGasCalls?.(t)??[],p=d.reduce((b,x)=>b+x.value,0n),w=(3n+BigInt(d.length))*u+p,f=c+l<w?w-c-l:0n,g={chainId:r,recipient:n,balance:c,incoming:l,transactionGas:u,nativeAmount:f,currentTransactions:d.length,currentValue:p,feeAmount:0n,calls:[]};if(f===0n)return g;const h=e.executionTokenAddress;if(Te(h))g.feeAmount=f;else{const b=Ma({customVenues:[...e.resolveExactOutputSwap?[{name:"consumer-exact-output",chainIds:[r],preferred:!0,resolve:e.resolveExactOutputSwap}]:[],...Er(e.liquidityVenues).output]}),x=v=>b.getQuote({tokenIn:v,tokenOut:Zt,amountOut:f,maxSlippage:e.maxSlippage},r,o),C=v=>{if(v.amountOut!==f||v.amountInMax<=0n||!v.calls.length)throw new Error("The external gas purchase could not be quoted.");if(e.signal?.aborted)throw new Error("Fee estimation cancelled");return v};try{const v=C(await x(h));g.feeAmount=v.amountInMax,g.calls=v.calls}catch(v){if(e.signal?.aborted||!(v instanceof we)||v.code!=="NO_SWAP_ROUTE")throw v;const A=oc(t,e.selectedAsset),T=(e.feeFundingBalances??[]).filter(y=>y._source==="wallet"&&y.chainId===r&&!jr(y)&&y.location!=="rollup"&&!y.balanceError&&!y.balanceStatus&&(!y.owner||G(y.owner,o))&&!G(y.address,h)),I=lu({feeToken:Zt,chainId:r,balances:T,order:["balance"],reserves:[...e.feeFundingReserves??[],...e.feeFundingReserve?[e.feeFundingReserve]:[],...T.flatMap(y=>A.filter(k=>k.chainId===r&&G(k.token,ft(y.address))).map(k=>({asset:y,amount:k.amount})))]});for(const y of I){if(e.signal?.aborted)throw new Error("Fee estimation cancelled");try{const k=Te(y.token)?void 0:C(await x(y.token)),E=k?.amountInMax??f;if(E>y.amount)continue;const F=T.find(U=>Ie(U)===Ie(y.asset));g.fundingSource={asset:F,token:y.token,amount:E},g.calls=k?.calls??[];break}catch(k){if(e.signal?.aborted||!(k instanceof we)||k.code!=="NO_SWAP_ROUTE")throw k}}if(!g.fundingSource)throw v}}return g.calls=[...g.calls,{to:n,value:f,data:"0x"}],g}function Ps(e,t){if(!t?.nativeAmount)return e;const n=e.map(o=>o.chainId).lastIndexOf(t.chainId);if(n<0)throw new Error("The gas reserve destination changed.");return e.map((o,r)=>r===n?{...o,calls:[...o.calls,...t.calls]}:o)}function uu(e,t){if(e&&e.nativeAmount>0n){const n=t.filter(r=>r.chainId===e.chainId).slice(-1)[0],o=n?.calls.slice(-e.calls.length);if(!o||o.length!==e.calls.length||o.some((r,a)=>{const i=e.calls[a];return!G(r.to,i.to)||r.value!==i.value||r.data!==i.data}))throw new Error("The external gas purchase changed. Refresh the quote before submitting.");if(n.calls.slice(0,-e.calls.length).reduce((r,a)=>G(a.to,e.recipient)&&a.data==="0x"?r+a.value:r,0n)<e.incoming)throw new Error("The native result changed. Refresh the gas reserve quote before submitting.")}}async function pu(e,t){if(!e)return;t&&uu(e,t);const n=await Rt(e.chainId).getBalance({address:e.recipient});if(e.nativeAmount>0n?n!==e.balance:n+e.incoming<(3n+BigInt(e.currentTransactions))*e.transactionGas+e.currentValue)throw new Error("The external wallet gas balance changed. Refresh the quote before submitting.")}async function Ch(e){const t=e.selectedAsset.asset;if(t.chainId!==e.destinationToken.chainId||!G(ft(t.address),ft(e.destinationToken.address)))throw new Error("Direct execution requires the destination token on its own chain.");if(t.decimals!==e.destinationToken.decimals)throw new Error("Source and destination token decimals do not match.");const n=Rn(e.paymentAmount??e.selectedAsset.amount,t.decimals);if(n<=0n)throw new Error("Enter a positive action amount.");const o={userAddress:e.beneficiary??e.account,executorAddress:e.account,beneficiary:e.beneficiary??e.account,chainId:e.destinationToken.chainId,destinationToken:e.destinationToken.address,feeToken:t.address,grossAmount:n,netAmount:n,combinedFeeAmount:0n,feeExecutionMode:e.feeExecutionMode,feeBreakdown:{spicenetFee:0n,gasFee:0n,bridgeFee:0n}},r=await e.buildActionCalls(n,o);if(!r.length)throw new Error("No action calls configured.");if(Te(t.address)&&r.reduce((a,i)=>a+i.value,0n)>n)throw new Error("The native action exceeds the accepted source amount.");return{actionDefinition:{amount:n,context:o,calls:r},actionContext:o,batches:[{chainId:o.chainId,calls:r}],fundingAmount:n,sourceSpendCap:n,destinationAmount:n,feeEstimate:null,preview:{symbol:t.symbol,decimals:t.decimals,grossAmount:n,netAmount:n,totalFee:0n,gasFee:0n,spicenetFee:0n,bridgeFee:0n,gasQuoteSource:"static_zero"}}}async function fu(e){const[t]=await e.buildSupplyChainBatches({sourceGasSkimOverride:1n,reuseQuotedSourceSwap:!0});if(!t)throw new Error("Swap quote not available yet");const{gasFee:n}=await qe.estimateBatchGas({user:e.user,outputToken:e.pivot.source.address,stepIndex:0,chainBatches:[t],signal:e.signal});return n}const rc=(e,t)=>(e+t-1n)/t;function Us(e,t,n=0n){return e.intents.length===0?t:{...e,intents:e.intents.map(o=>({...o,batches:o.batches.map(r=>{const a=t.intents.find(c=>c.intentIndex===o.intentIndex)?.batches.find(c=>c.chainId===r.chainId);if(!a&&n===0n)return r;const i={...r.feeBreakdown};let s=0n;for(const c of["gasFee","bridgeFee"]){const l=BigInt(i[c]??"0"),u=BigInt(a?.feeBreakdown[c]??"0"),d=l>u?l+rc(l*n,10000n):u;d>l&&(i[c]=d.toString(),s+=d-l)}return{...r,feeBreakdown:i,totalDebit:(BigInt(r.totalDebit)+s).toString()}})}))}}async function mu(e){if(e.options.signal?.aborted)throw new Error("Fee estimation cancelled");if(!qe.canValidateActionFees())throw new Error("This withdrawal requires signed fee validation. Refresh the quote before submitting.");const[t,n]=await Promise.all([e.signedEstimate??e.estimate(e.batches,e.tokenAddress,e.fundingAmount,{...e.options,feeExecutionMode:"user-transfer",validateFeeCalls:!0}),e.estimate(e.pricingBatches,e.tokenAddress,e.fundingAmount,{...e.options,feeExecutionMode:"backend-transfer",validateFeeCalls:!1})]);if(e.options.signal?.aborted)throw new Error("Fee estimation cancelled");const o=r=>r.intents.flatMap(a=>a.batches.map(i=>`${a.intentIndex}:${i.chainId}`)).sort().join(",");if(!o(n)||o(n)!==o(t))throw new Error("Unable to validate the signed withdrawal fees.");return{intents:n.intents.map(r=>({...r,batches:r.batches.map(a=>{const i=t.intents.find(l=>l.intentIndex===r.intentIndex)?.batches.find(l=>l.chainId===a.chainId);if(!i)throw new Error("Unable to validate the signed withdrawal fees.");const s={...a.feeBreakdown};let c=0n;for(const l of["gasFee","bridgeFee"]){const u=BigInt(s[l]??"0"),d=BigInt(i.feeBreakdown[l]??"0");d>u&&(s[l]=d.toString(),c+=d-u)}return{...a,feeBreakdown:s,totalDebit:(BigInt(a.totalDebit)+c).toString()}})}))}}function Ah(e,t){const n=e.spicenetFee+(e.bridgeFee??0n);return e.grossAmount<=n?t+e.gasFee+n:rc((t+e.gasFee)*e.grossAmount,e.grossAmount-n)+2n}async function hu(e){const{requiredNetFunding:t}=e;if(e.feeOnlyAction){const l=e.executionOptions?.userOverride;if(!l||t!==0n)throw new Error("Fee-only estimates require a zero action amount and its embedded executor");let u=1n,d;for(let p=0;p<8;p++){const w=_o(await e.buildBatches(u),l,d,{payoutAlreadyGross:!0,expiresAt:e.expiresAt}),f=await e.estimate($r(w,e.tokenDescriptor.chainId,e.fundingToken),e.fundingToken,u,{...e.executionOptions,feeExecutionMode:"backend-transfer"}),g=go(f,e.tokenDescriptor);if(!g)throw new Error("The fee service did not return a fee quote for this action");const h=g.gasFee+g.spicenetFee+(g.bridgeFee??0n);if(d&&h+2n<=u)return{preview:{...g,grossAmount:u,netAmount:0n},feeEstimate:f,grossFundingAmount:u};u=(h*110n+99n)/100n+2n,d=f}throw new Error("Fee-only funding did not converge; refresh the fee quote before retrying")}const n=await e.buildBatches(t),o=await e.estimate(n,e.fundingToken,t,e.executionOptions),r=go(o,e.tokenDescriptor);if(!r)return{preview:fa(n,e.tokenDescriptor,t),feeEstimate:o,grossFundingAmount:t};const a=Ah(r,t),i=l=>r.grossAmount>0n?rc(l*a,r.grossAmount):l,s=i(r.spicenetFee),c=i(r.bridgeFee??0n);return{preview:{...r,grossAmount:a,netAmount:t,spicenetFee:s,bridgeFee:c,totalFee:r.gasFee+s+c},feeEstimate:o,grossFundingAmount:a}}async function gu(e){if(e.balance<=0n)throw new Error("No spendable balance remains after source gas.");let t=e.balance;for(let n=0;n<8;n++){const o=await e.planForAmount(t);if(!o||o.sourceSpendCap===void 0||o.sourceSpendCap<=0n)throw new Error("Max requires a current route and fee estimate.");if(o.sourceSpendCap<=e.balance)return ei(t,e.decimals);const r=t*e.balance/o.sourceSpendCap;if(r<=0n||r>=t)throw new Error("The balance cannot cover this action and its fees.");t=r}throw new Error("Max fees did not converge. Refresh the quote before retrying.")}async function Sh(e){if(e.isPayMode||e.needsSwap||e.isQuoting||e.pivot||!e.embeddedWalletAddress)return null;const t=e.asset,n=Xt(e.executionTokenAddress,t.chainId);return!n||t.balance<=0n?null:gu({balance:t.balance,decimals:t.decimals,planForAmount:o=>Ho({selectedAsset:{asset:t,amount:ei(o,t.decimals)},isPayMode:!1,isNon7702:!1,isFeeInclusiveInput:!1,parsedAmount:Number(ei(o,t.decimals)),currentPaymentAmount:"0",destinationToken:{...n,address:e.executionTokenAddress,chainId:t.chainId},resolvedChainId:t.chainId,resolvedTokenIn:e.executionTokenAddress,executionTokenAddress:e.executionTokenAddress,embeddedWalletAddress:e.embeddedWalletAddress,providerEmbeddedAddress:e.embeddedWalletAddress,address:e.embeddedWalletAddress,isConnected:!0,ready:!0,authenticated:!0,isDirect:!0,isSourceDestToken:!0,needsSwap:!1,isQuoting:!1,resolvedSwap:null,exactOutputSwap:null,buildPayChainBatches:async()=>[],buildSupplyChainBatches:r=>e.buildSupplyChainBatches({...r,actionAmountOverride:o}),estimate:e.estimate,feeExecutionMode:e.feeExecutionMode})})}async function Ho(e){const t=await wu(e);if(!e.externalGasRecipient||!t?.batches?.length)return t;const n=await kh(e,t);if(!n.nativeAmount)return{...t,externalGasReserve:n};const o=await wu({...e,externalGasReserve:n,initialFeeEstimate:void 0,buildPayChainBatches:async r=>Ps(await e.buildPayChainBatches(r),n),buildSupplyChainBatches:async r=>Ps(await e.buildSupplyChainBatches({...r,...e.feeExecutionMode!=="user-transfer"&&r?.actionContextOverride?.netAmount!==void 0?{deliveryAmountOverride:r.actionContextOverride.netAmount+n.feeAmount}:{}}),n)});if(!o)return null;if(uu(n,o.batches??[]),n.fundingSource){const r=n.fundingSource,a=oc({...o,externalGasReserve:n},e.selectedAsset).find(i=>i.chainId===r.asset.chainId&&G(i.token,r.token));if(!a||a.amount>r.asset.balance)throw new Error("The gas reserve source cannot cover the action and fees. Refresh the quote.")}return{...o,externalGasReserve:n,preview:{...o.preview,gasFee:o.preview.gasFee+n.feeAmount,totalFee:(o.preview.totalFee??0n)+(e.isPayMode?n.feeAmount:0n),...e.isPayMode?{netAmount:o.preview.netAmount-n.feeAmount}:{}}}}async function wu(e){const{signal:t,selectedAsset:n,isPayMode:o,isFeeInclusiveInput:r=!1,parsedAmount:a,needsSwap:i,exactOutputSwap:s,isNon7702:c,currentPaymentAmount:l,destinationToken:u,feeExecutionMode:d,resolvedTokenIn:p,embeddedWalletAddress:w,providerEmbeddedAddress:f,resolvedChainId:g,isConnected:h,address:b,ready:x,authenticated:C,isDirect:v,resolvedSwap:A,sourceSwap:T,pivot:I,isQuoting:y,executionTokenAddress:k,buildPayChainBatches:E,buildSupplyChainBatches:F,estimate:U}=e;if(e.feeOnlyAction&&!n&&e.feeFunding?.length!==0)return nc(e,Ho);if(e.feeOnlyAction&&e.actionProceeds&&e.actionProceeds.token.toLowerCase()!==u.address.toLowerCase()||e.feeOnlyAction&&n&&(n.asset._source==="spice"||n.asset._source==="wallet"&&n.asset.chainId===g)&&(p?p.toLowerCase()!==u.address.toLowerCase():n.asset.receiptTokenId||n.asset.chainTokens))return Na(e);if(e.actionProceeds&&e.feeOnlyAction){const K=w||f;if(!K||!x||!C)return null;if(p&&p.toLowerCase()!==u.address.toLowerCase())throw new Error("Action proceeds require a matching fee-token source");return Xd({proceeds:e.actionProceeds,owner:K,token:u.address,signal:t,buildBatches:(X,xe)=>E({...xe,fundingAmountOverride:X}),baseline:()=>Ho({...e,actionProceeds:void 0,selectedAsset:n??{amount:"0",asset:{...u,name:u.symbol,balance:0n,balanceFormatted:0,balanceUsd:0,isNative:!1,_source:"spice"}}})})}if(!n?.asset)return null;if(o){if(!w&&!f||a<=0&&!e.feeOnlyAction||i&&!s&&!e.feeOnlyAction)return null;const K=Rn(l,u.decimals),X=p||lo(n.asset,g)||n.asset.address||u.address,xe={chainId:g,tokenAddress:X,symbol:Xt(X,g)?.symbol??n.asset.symbol,decimals:await qo(n.asset,X,g,u)};if(!e.quoteOnly&&(!h||!b||!x||!C))return null;const ge=w||f||b,ve=(i?s?.amountInMax??0n:K)+(e.externalGasReserve?.feeAmount??0n);if(ve===0n&&!e.feeOnlyAction)return null;const Se=I?await fu({user:ge,pivot:I,buildSupplyChainBatches:le=>E({...le,sourceGasSkimOverride:1n}),signal:t}):0n,ne=Date.now();let _=await hu({requiredNetFunding:ve,expiresAt:e.expiresAt,feeOnlyAction:e.feeOnlyAction,buildBatches:le=>E({fundingAmountOverride:le,sourceGasSkimOverride:Se}).then(Z=>_o(Z,ge,void 0,{requestTimestampMs:ne,expiresAt:e.expiresAt})),fundingToken:X,estimate:U,executionOptions:{userOverride:ge,useCustomTransfers:!0,feeExecutionMode:d,signal:t},tokenDescriptor:xe});if(!_.preview)return null;let ue=0n,P,Le,Be,L=[],V=!1;for(let le=0;le<8;le++){if(t?.aborted)throw new Error("Fee estimation cancelled");if(Be=void 0,L=_o(await E({fundingAmountOverride:_.grossFundingAmount,sourceGasSkimOverride:Se,onSourceSpend:Ce=>{ue=Ce},onSwap:Ce=>{Be=Ce},onSourceAllocation:Ce=>{P=Ce},onActionCalls:Ce=>{Le=Ce}}),ge,_.feeEstimate,{payoutAlreadyGross:!0,requestTimestampMs:ne,expiresAt:e.expiresAt}),P){const Ce=go(_.feeEstimate,xe);if(!Ce)throw new Error("The action quote is unavailable.");const Ge=Bs(g,X,[{recipient:gn,amount:Ce.gasFee+(Ce.bridgeFee??0n)},{recipient:zn,amount:Ce.spicenetFee}]).calls;L=$r(L,g,X);const ke=[...L].reverse().findIndex(pe=>pe.domain!=="spicenet"&&pe.chainId===g),Qe=ke<0?-1:L.length-ke-1;if(Qe<0)throw new Error("The action quote is unavailable.");L[Qe]={...L[Qe],calls:[...Ge,...L[Qe].calls]}}if(e.feeOnlyAction){V=!0;break}const Z=await U(L,X,_.grossFundingAmount,{userOverride:ge,useCustomTransfers:!0,feeExecutionMode:d,signal:t}),se=d==="user-transfer"?Us(Z,_.feeEstimate):Z,We=go(se,xe)??fa(L,xe,ve);if(!We)return null;const He=ve+We.gasFee+We.spicenetFee+(We.bridgeFee??0n),ye=go(_.feeEstimate,xe),Oe=(ye?.gasFee??0n)===We.gasFee&&(ye?.spicenetFee??0n)===We.spicenetFee&&(ye?.bridgeFee??0n)===(We.bridgeFee??0n),Ne=_.grossFundingAmount===He&&Oe;if(_={feeEstimate:se,grossFundingAmount:He,preview:{...We,grossAmount:He,netAmount:ve}},Ne){V=!0;break}}if(!V)throw new Error("Payment fees did not converge. Refresh the quote before submitting.");if(!_.preview)return null;const oe=I?on(Se,I.source.decimals,I.destination.decimals,"ceil"):0n;return{..._,batches:L,sourceSpendCap:ue,sourceAllocation:P,actionDefinition:Le,destinationAmount:K,actionOutputCredits:Es(g,u.address,Be),preview:{..._.preview,grossAmount:_.preview.grossAmount+oe,gasFee:_.preview.gasFee+oe,totalFee:(_.preview.totalFee??0n)+oe},...I?{sourceGasSkim:Se}:{}}}if(a<=0||!w)return null;const O=w||f;if(I&&!T)return null;const M=ec({isPayMode:o,selectedAsset:n,resolvedChainId:g,sourceSwap:T,pivot:I});if(!(!o&&!c&&n.asset?._source==="wallet"&&n.asset.chainId!==g)&&!v&&!A&&!y||y)return null;let B=await F();if(B.length===0)return null;const D={chainId:g,tokenAddress:k,symbol:Xt(k,g)?.symbol??(n.asset.chainId===g&&G(n.asset.address,k)?n.asset.symbol:u.symbol),decimals:await qo(n.asset,k,g,u)},W=M&&e.initialFeeEstimate!==void 0&&e.initialSourceGasSkim!==void 0,S=M?W?e.initialSourceGasSkim:await fu({user:O,pivot:I,buildSupplyChainBatches:F,signal:t}):0n;M&&S>0n&&(B=await F({sourceGasSkimOverride:S}));const q=M?on(r?nu(T,S):T.amountOutMinimum,I.source.decimals,I.destination.decimals,"floor"):on(Rn(n.amount,n.asset.decimals),n.asset.decimals,D.decimals,"floor"),z=e.quotedInclusivePlatformFee&&d==="user-transfer",te={userOverride:O,useCustomTransfers:!0,feeExecutionMode:d,signal:t,...M?{skipUserFundingPreflight:!0}:{}};let Y=q,j=e.initialFeeEstimate??await U(B,k,Y,z?{...te,feeExecutionMode:"backend-transfer"}:te);z&&!e.initialFeeEstimate&&(j=Us(j,{intents:[]},100n));for(let K=0;K<8;K++){if(t?.aborted)throw new Error("Fee estimation cancelled");const X=go(j,D)??fa(B,D,Y);if(!X)return null;const xe=ac(X,q,r,d,e.externalGasReserve?.feeAmount,e.quotedInclusivePlatformFee);Y=xe.grossAmount;let ge,ve,Se,ne,_,ue;const P=await F({fundingAmountOverride:Y,sourceGasSkimOverride:S,actionContextOverride:xe,onDestinationAmount:Z=>{ge=Z},onSourceSpend:Z=>{ve=Z},onSourceAllocation:Z=>{Se=Z},onSwap:(Z,se)=>{ne=Z,_=se},onActionCalls:Z=>{ue=Z}}),Le=z?$r(await F({fundingAmountOverride:Y,sourceGasSkimOverride:S,actionContextOverride:xe,deliveryAmountOverride:xe.netAmount,withdrawalAmountOverride:xe.netAmount}).then(Z=>{if(Z.length!==P.length)throw new Error("The withdrawal fee route changed. Refresh the quote before submitting.");return Z.map((se,We)=>{const He=P[We];if(!He||He.chainId!==se.chainId||He.domain!==se.domain)throw new Error("The withdrawal fee route changed. Refresh the quote before submitting.");return se.domain==="spicenet"?se:{...se,calls:He.calls}})}),g,k):void 0,[Be,L]=await Promise.all([Le?mu({estimate:U,batches:P,pricingBatches:Le,tokenAddress:k,fundingAmount:Y,options:te}):U(P,k,Y,{...te,validateFeeCalls:e.initialFeeEstimate!==void 0}),W?qe.estimateBatchGas({user:O,outputToken:I.source.address,stepIndex:0,chainBatches:[P[0]],signal:t}):void 0]);if(L&&!(d==="user-transfer"?ma(S,L.gasFee,e.feeToleranceBps):L.gasFee===S))throw new Error("Source gas changed. Prepare a fresh fee quote.");const V=d==="user-transfer"?Us(Be,j,z?100n:0n):Be,oe=go(V,D)??fa(P,D,Y);if(!oe)return null;const le=ac(oe,q,r,d,e.externalGasReserve?.feeAmount,e.quotedInclusivePlatformFee);if(JSON.stringify(xe,(Z,se)=>typeof se=="bigint"?se.toString():se)===JSON.stringify(le,(Z,se)=>typeof se=="bigint"?se.toString():se)||d==="user-transfer"&&(!z||xe.feeBreakdown.spicenetFee===le.feeBreakdown.spicenetFee)&&ss(xe.feeBreakdown,le.feeBreakdown,e.feeToleranceBps)){const Z=d==="user-transfer"?X:oe,se=M?on(S,I.source.decimals,I.destination.decimals,"ceil"):0n;return{batches:P,feePricingBatches:Le,fundingAmount:Y,actionContext:xe,sourceSpendCap:ve,sourceAllocation:Se,destinationAmount:ge,destinationSwap:ne,swapInputAmount:_,actionDefinition:ue,actionOutputCredits:Es(g,u.address,ne),feeEstimate:d==="user-transfer"?j:V,sourceGasSkim:S,preview:{...Z,grossAmount:Y+se,netAmount:xe.netAmount,gasFee:Z.gasFee+se,spicenetFee:xe.feeBreakdown.spicenetFee,totalFee:xe.combinedFeeAmount+se}}}j=V,B=P}throw new Error("Fees did not converge. Refresh the quote before submitting.")}class Ws extends Error{constructor(t){super("Amount is too small to cover fees. Increase the amount and retry."),this.preview=t,this.name="FeeShortfallError"}}function ac(e,t,n,o,r=0n,a=!1){const i=BigInt(e.feePolicy?.platformBps??Wi),s=e.feePolicy?{feePolicy:e.feePolicy}:{},c=e.gasFee+(e.bridgeFee??0n)+r;if(e.gasQuoteSource==="static_zero"&&r===0n)return{...s,grossAmount:t,netAmount:t,combinedFeeAmount:0n,feeExecutionMode:o??"backend-transfer",feeBreakdown:{gasFee:0n,bridgeFee:0n,spicenetFee:0n}};if(n&&a){const d=c+e.spicenetFee;if(t<=d)throw new Ws({...e,grossAmount:t,netAmount:0n,totalFee:d});return{...s,grossAmount:t,netAmount:t-d,combinedFeeAmount:d,feeExecutionMode:o??"backend-transfer",feeBreakdown:{gasFee:e.gasFee,bridgeFee:e.bridgeFee??0n,spicenetFee:e.spicenetFee}}}const l=n?Qp(t,c,i):null;if(l&&!l.coversFees)throw new Ws({...e,grossAmount:t,netAmount:0n,spicenetFee:0n,totalFee:c});const u=l?.spicenetFee??(o==="user-transfer"?os(t,i):e.spicenetFee);return{...s,grossAmount:l?.grossAmount??t+u+c,netAmount:l?.netAmount??t,combinedFeeAmount:u+c,feeExecutionMode:o??"backend-transfer",feeBreakdown:{gasFee:e.gasFee,bridgeFee:e.bridgeFee??0n,spicenetFee:u}}}async function Eh(e,t){if(e.feeQuote?.sourceAllocation){e.validateFeeQuote?.();const c=e.feeQuote.sourceAllocation;Ds(c,c.positions.map(l=>l.asset),e.embeddedWalletAddress??e.providerEmbeddedAddress??void 0,e.resolvedChainId);return}const n=e.selectedAsset?.asset;if(!n||n?._source!=="wallet")return;const o=lo(n,e.resolvedChainId);if(!o||!G(o,e.executionTokenAddress))return;const r=await qo(n,e.executionTokenAddress,e.resolvedChainId,e.destinationToken),a=ta(t,r,n.decimals);if(a<=n.balance)return;const i=Me(a,n.decimals),s=Me(n.balance,n.decimals);throw new Error(`Insufficient ${n.symbol} for this total amount. Required ${i} ${n.symbol}; available ${s} ${n.symbol}.`)}function Fh(e){const t=Xt(e.executionTokenAddress,e.resolvedChainId);return{chainId:e.resolvedChainId,tokenAddress:e.executionTokenAddress,symbol:t?.symbol??e.destinationToken.symbol,decimals:t?.decimals??e.destinationToken.decimals}}function Th(e){const t=e.selectedAsset.asset,n=Rn(e.selectedAsset.amount,t.decimals);if(n<=t.balance)return n;throw new Error(`Insufficient ${t.symbol} for this total amount. Required ${Me(n,t.decimals)} ${t.symbol}; available ${Me(t.balance,t.decimals)} ${t.symbol}.`)}function yu(e,t,n,o){const r=Fh(t),a=go(e,r)??fa(o,r,n);if(a)return ac(a,n,!!t.isFeeInclusiveInput,t.feeExecutionMode,0n,t.quotedInclusivePlatformFee)}function bu(e,t,n){let o=0n,r=0n;const a=n.toLowerCase();for(const i of e)if(i.chainId===t){for(const s of i.calls??[])if(s.to.toLowerCase()===a)try{const c=Zn({abi:ut,data:s.data});if(c.functionName!=="transfer")continue;const l=c.args[0].toLowerCase(),u=c.args[1];l===zn.toLowerCase()?o+=u:l===gn.toLowerCase()&&(r+=u)}catch{continue}}return{spicenetFee:o,gasFee:r}}function Oh(e,t,n,o){const r=t.feeExecutionMode==="user-transfer"&&t.needsSwap&&t.resolvedTokenIn?t.resolvedTokenIn:t.executionTokenAddress,a=bu(e,t.resolvedChainId,r);return a.spicenetFee===0n&&n.feeBreakdown.spicenetFee>0n||a.gasFee===0n&&n.feeBreakdown.gasFee>0n?!1:ma(a.spicenetFee,n.feeBreakdown.spicenetFee,t.feeToleranceBps)&&ma(a.gasFee,n.feeBreakdown.gasFee,t.feeToleranceBps)&&ma(o.feeBreakdown.bridgeFee,n.feeBreakdown.bridgeFee,t.feeToleranceBps)}function Bh(e,t,n){return e?$c(e.grossAmount,t.grossAmount,100n)&&ss(e.feeBreakdown,t.feeBreakdown,n):!1}function Rh(e,t){const n=Xt(t,e.resolvedChainId);return{chainId:e.resolvedChainId,tokenAddress:t,symbol:n?.symbol??e.selectedAsset?.asset.symbol??"",decimals:n?.decimals??e.selectedAsset?.asset.decimals??e.destinationToken.decimals}}async function Dh(e,t){const n=e.feeQuote;return n?.feeEstimate&&n.grossFundingAmount!==void 0?{grossFundingAmount:n.grossFundingAmount,feeEstimate:n.feeEstimate}:hu({...t,feeOnlyAction:e.feeOnlyAction,estimate:e.execution.estimate,tokenDescriptor:Rh(e,t.fundingToken)})}function xu(e,t){const n=t instanceof Error?t:new Error(String(t));if(n.name==="AbortError"||n instanceof we&&n.code==="ABORT"){e.ui.setStep("idle");return}const o=n.message||"Transaction failed";e.ui.setStep("error"),e.ui.setStatusMsg(o),e.ui.setError(o)}function vu(e,t){const n=Wn(t,"Payment failed. Please try again.");e.ui.setError(n),e.ui.setPaymentResult({status:"failed",error:n})}async function Iu(e){e.ui.setIsExecuting(!0),e.ui.setError(null),e.ui.setStep("executing"),e.ui.setStatusMsg("Confirm the transaction in your external wallet..."),e.ui.setTxHash(null),e.isPayMode&&(e.ui.setShowStatusPanel(!0),e.ui.setPaymentResult({status:"processing"}));try{if(e.validateFeeQuote?.(),!e.feeQuote?.batches||!e.feeQuote.actionDefinition)throw new Error("Review the direct action plan before submitting.");const t=await e.execution.execute(e.feeQuote.batches,e.destinationToken.address,0n,e.execution.onProgress);e.ui.setTxHash(t),e.ui.setStep("success"),e.ui.setStatusMsg("Transaction confirmed"),e.isPayMode&&e.ui.setPaymentResult({status:"success",txHash:t})}catch(t){e.isPayMode?vu(e,t):xu(e,t)}finally{e.ui.setIsExecuting(!1)}}async function ku(e,t,n){e.validateFeeQuote?.();const o=e.feeQuote;if(!o.batches||o.sourceSpendCap===void 0||!o.fundingSource&&o.preview.feePayer!=="relayer")throw new Error("Refresh the action before submitting.");const r=o.fundedFeeToken,a=o.grossFundingAmount??0n,i=tu({...e,signal:n,feeOnlyAction:!0,destinationToken:r,actionProceeds:e.actionProceeds??{token:o.fundingSource?.token??r.address,resolve:async()=>o.proceedsAvailable??0n}},r.address,a);return e.execution.execute(o.batches,o.fundingConversion?.tokenIn??o.fundingSource?.token??r.address,a,t,n,{...i,userOverride:e.embeddedWalletAddress||e.providerEmbeddedAddress,useCustomTransfers:!0,feeExecutionMode:"backend-transfer",skipPreSubmitFeeEstimate:!0})}async function Cu(e){if(!e.selectedAsset?.asset&&!e.feeQuote?.fundingPlan||e.parsedAmount<=0){e.ui.setError("Select an asset and enter an amount");return}if(e.isInsufficientBalance){e.ui.setError("Insufficient balance");return}if(e.directExternalAction)return Iu(e);if(!e.embeddedWalletAddress){e.ui.setError("Wallet not ready");return}e.ui.setIsExecuting(!0),e.ui.setError(null),e.ui.setStep("signing-delegation"),e.ui.setStatusMsg("Building transaction..."),e.ui.setTxHash(null),e.refs.spiceDepositSubmittedRef.current=!1;const t=new AbortController;e.refs.abortControllerRef.current=t;try{const n=e.embeddedWalletAddress||e.providerEmbeddedAddress,o=e.feeQuote;if(o?.fundingPlan){e.validateFeeQuote?.();const f=o.fundingPlan;if(!o.batches?.length||!o.feeEstimate||o.fundingAmount===void 0)throw new Error("Review the combined funding plan before submitting.");const g=[...new Set(f.sources.filter(C=>C.asset.location==="embedded").map(C=>C.chainId))];for(const[C,v]of g.entries()){const A=f.sources.filter(k=>k.asset.location==="embedded"&&k.chainId===v),T=o.batches[C];if(!T||T.chainId!==v)throw new Error("The accepted source funding vector changed.");const I=await qe.estimateBatchGas({user:f.owner,outputToken:A[0].pivotToken.address,stepIndex:0,chainBatches:[T]});e.validateFeeQuote?.();const y=A.reduce((k,E)=>k+E.gasFeeAmount,0n);if(I.gasFee<0n||!ma(y,I.gasFee,e.feeToleranceBps))throw new Error("Source funding fees changed. Refresh before submitting this purchase.")}const h={chainId:f.token.chainId,tokenAddress:f.token.address,symbol:f.token.symbol,decimals:f.token.decimals},b=go(o.feeEstimate,h);if(!b)throw new Error("The accepted purchase fees are unavailable.");const x=await e.execution.execute(o.batches,f.token.address,o.fundingAmount,e.execution.onProgress,t.signal,{userOverride:f.owner,useCustomTransfers:!0,skipUserFundingPreflight:!0,feeExecutionMode:"user-transfer",adjustBatchesForEstimate:({feeEstimate:C})=>{const v=go(C,h);if(!v||!ss(b,v,e.feeToleranceBps))throw new Error("Transaction fees changed. Refresh the quote before submitting.");return null}});e.ui.setTxHash(x),e.ui.setStep("success"),e.ui.setStatusMsg("Transaction confirmed");return}if(o?.fundedFeeToken){const f=await ku(e,e.execution.onProgress,t.signal);e.ui.setTxHash(f),e.ui.setStep("success"),e.ui.setStatusMsg("Transaction confirmed");return}const r=ec(e);r&&Th(e);const a=e.feeQuote?.batches?e.feeQuote:await Ho({...e,feeExecutionMode:e.feeExecutionMode,isDirect:!e.needsSwap,isQuoting:!1,resolvedSwap:null,buildPayChainBatches:e.execution.buildPayChainBatches,buildSupplyChainBatches:e.execution.buildSupplyChainBatches,estimate:e.execution.estimate});if(!a?.batches||a.fundingAmount===void 0||!a.actionContext)throw new Error("A current action plan is required. Refresh the quote before submitting.");const i=e.isFeeInclusiveInput?a.actionContext.grossAmount:a.actionContext.netAmount;let s=a.batches;const c=s.some(f=>f.tokenTransfers?.length),l={userOverride:n,useCustomTransfers:c,feeExecutionMode:e.feeExecutionMode,...r?{skipUserFundingPreflight:!0}:{}},u=a.fundingAmount,d=a.actionContext;await Eh(e,u);const p=d,w=await e.execution.execute(s,e.executionTokenAddress,c?u:0n,e.execution.onProgress,t.signal,e.feeExecutionMode==="user-transfer"?{...l,skipUserFundingPreflight:!0,adjustBatchesForEstimate:async({feeEstimate:f,chainBatches:g})=>{if(a.feePricingBatches){e.validateFeeQuote?.();const C=await mu({estimate:e.execution.estimate,batches:g,pricingBatches:a.feePricingBatches,tokenAddress:e.executionTokenAddress,fundingAmount:u,options:{...l,signal:t.signal},signedEstimate:f});e.validateFeeQuote?.();const v=yu(C,e,i,g),A=p.feeBreakdown,T=bu(g,e.resolvedChainId,e.executionTokenAddress);if(!v||!ss(A,v.feeBreakdown,e.feeToleranceBps)||T.spicenetFee!==A.spicenetFee||T.gasFee!==A.gasFee+A.bridgeFee)throw new Error("Transaction fees changed. Refresh the quote before submitting.");return null}const h=yu(a.feeEstimate?Us(f,a.feeEstimate):f,e,i,g);if(!h)throw new Error("Unable to validate the accepted fees. Refresh the quote before submitting.");const b=Bh(p,h,e.feeToleranceBps),x=Oh(g,e,h,p);if(b||x)return null;throw new Error("Transaction fees changed. Refresh the quote before submitting.")}}:{...l,skipPreSubmitFeeEstimate:!0});e.ui.setTxHash(w),e.ui.setStep("success"),e.ui.setStatusMsg("Deposit confirmed")}catch(n){xu(e,n)}finally{e.ui.setIsExecuting(!1)}}async function Au(e){if(e.parsedAmount<0){e.ui.setError("Enter a valid payment amount");return}const t=e.parsedAmount===0;if(!e.selectedAsset?.asset&&!t){e.ui.setError("Select a payment source");return}if(e.isInsufficientBalance){e.ui.setError("Insufficient balance");return}if(e.parsedAmount>0&&e.needsSwap&&!e.exactOutputSwap){e.ui.setError("Swap quote not available. Try a different asset.");return}if(e.directExternalAction)return Iu(e);const n=su(e)&&!t,o=n?e.feeQuote?.sourceGasSkim??0n:0n,r=i=>e.execution.buildPayChainBatches(n?{...i,sourceGasSkimOverride:o}:i);if(!e.isConnected||!e.address){e.ui.setError("Please connect your wallet to continue");return}if(!e.ready||!e.authenticated){e.ui.setError(`Please authenticate with ${e.provider||"wallet provider"} to continue`);return}e.ui.setIsExecuting(!0),e.ui.setError(null),e.ui.setShowStatusPanel(!0),e.ui.setPaymentResult({status:"processing"});const a=new AbortController;e.refs.abortControllerRef.current=a;try{if(e.feeQuote?.fundedFeeToken){const A=await ku(e,T=>{e.execution.onProgress(T),T.txHash&&(e.ui.setTxHash(T.txHash),e.ui.setPaymentResult({status:"processing",txHash:T.txHash}))},a.signal);e.ui.setPaymentResult(T=>({status:"success",txHash:T?.txHash||A}));return}const i=Rn(e.currentPaymentAmount,e.destinationToken.decimals),s={useCustomTransfers:!0,feeExecutionMode:e.feeExecutionMode,...n?{skipUserFundingPreflight:!0}:{}};if(t&&!e.feeOnlyAction){const A=await r(),T=await e.execution.execute(A,e.executionTokenAddress,0n,I=>{e.execution.onProgress(I),I.txHash&&(e.ui.setPaymentResult(y=>({...y??{status:"processing"},txHash:I.txHash})),e.ui.setTxHash(I.txHash))},a.signal,s);e.ui.setPaymentResult(I=>({status:"success",txHash:I?.txHash||T}));return}const c=e.selectedAsset?.asset,l=e.feeQuote?.fundingSource,u=e.feeQuote?.preview.feePayer==="relayer";if(!c&&!e.actionProceeds&&!l&&!u)throw new Error("Select a payment source");const d=e.feeQuote?.fundingConversion?.tokenIn||l?.token||e.resolvedTokenIn||c?.address||e.destinationToken.address,p=e.needsSwap?e.exactOutputSwap?.amountInMax??0n:i,w=e.embeddedWalletAddress||e.providerEmbeddedAddress||e.address,f=u||!!e.feeQuote?.fundingConversion||!!l&&(l.kind!=="balance"||l.asset?._source==="wallet"),{grossFundingAmount:g,feeEstimate:h}=f?{grossFundingAmount:e.feeQuote.grossFundingAmount??0n,feeEstimate:void 0}:await Dh(e,{requiredNetFunding:p,buildBatches:A=>e.execution.buildPayChainBatches({fundingAmountOverride:A}).then(T=>_o(T,w)),fundingToken:d,executionOptions:s});let b=e.feeQuote?.fundingBatches??e.feeQuote?.batches??_o(await r({fundingAmountOverride:g}),w,e.actionProceeds?void 0:h,{payoutAlreadyGross:!0});const x=tu(e,e.feeQuote?.fundingConversion?.tokenOut??d,g);x.prepareForSigning&&(b=await x.prepareForSigning(b));const C=b.some(A=>A.tokenTransfers?.length),v=await e.execution.execute(b,d,C?g:0n,A=>{e.execution.onProgress(A),A.txHash&&(e.ui.setPaymentResult(T=>({...T,txHash:A.txHash})),e.ui.setTxHash(A.txHash))},a.signal,{...s,...x,skipPreSubmitFeeEstimate:!0});e.ui.setPaymentResult(A=>({status:"success",txHash:A?.txHash||v}))}catch(i){vu(e,i)}finally{e.ui.setIsExecuting(!1)}}async function Su(e){const{quote:t,recipient:n,chainId:o,token:r}=e,a=t.batches?Eu(t.batches,r,o,n):0n;if(a<=0n)throw new Error("The route does not deliver the action amount to the external wallet.");const i={userAddress:n,executorAddress:n,beneficiary:e.beneficiary??n,chainId:o,destinationToken:r,feeToken:r,grossAmount:a,netAmount:a,combinedFeeAmount:0n,feeExecutionMode:e.feeExecutionMode,feeBreakdown:{spicenetFee:0n,gasFee:0n,bridgeFee:0n}},s=await e.buildCalls(a,i);if(!s.length)throw new Error("No action calls configured.");return{amount:a,context:i,calls:s.map(c=>({...c}))}}function Mh(e,t,n){const o=[],r=(a,i,s)=>{s>0n&&o.push(Te(a)?{to:i,value:s,data:"0x"}:{to:a,value:0n,data:Bt({abi:ut,functionName:"transfer",args:[i,s]})})};return t.feeExecutionMode==="user-transfer"&&t.feeBreakdown&&(r(t.feeToken??t.destinationToken,zn,t.feeBreakdown.spicenetFee),r(t.feeToken??t.destinationToken,gn,t.feeBreakdown.gasFee+t.feeBreakdown.bridgeFee)),r(t.destinationToken,n,e),o}function Eu(e,t,n,o){let r=0n;for(const a of e)if(a.chainId===n){for(const i of a.calls)if(G(i.to,t))try{const s=Zn({abi:ut,data:i.data});s.functionName==="transfer"&&G(s.args[0],o)&&(r+=s.args[1])}catch{}}return r}async function Nh(e){if(!/^0x[0-9a-f]{64}$/i.test(e.hash))throw new Error("The external delivery receipt is unavailable.");const t=Rt(e.chainId),n=await t.getTransactionReceipt({hash:e.hash});if(n.status!=="success"||!G(n.transactionHash,e.hash))throw new Error("The external delivery receipt was not successful.");let o=0n;for(const r of n.logs)if(G(r.address,e.token))try{const a=wf({abi:ut,eventName:"Transfer",data:r.data,topics:r.topics});G(a.args.to,e.recipient)&&G(a.args.from,e.sender)&&(o+=a.args.value)}catch{}if(o!==e.amount)throw new Error("The received external amount does not match the accepted action.");if(await t.readContract({address:e.token,abi:ut,functionName:"balanceOf",args:[e.recipient]})<e.amount)throw new Error("The external wallet no longer holds the delivered action amount.")}async function Fu(e,t,n){let o=null;try{const r=await e.request({method:"eth_chainId"});o=parseInt(r,16)}catch{o=null}o!==t&&(n?.(),await _c(e,t))}function sc(e){let t=e;const n=new Set;for(;t&&typeof t=="object"&&!n.has(t);){if(n.add(t),t.code===4001)return!0;t=t.cause}return!1}async function ic(e){const t=e.provider??await e.wallet?.getEthereumProvider();if(!t)throw new Error("External wallet provider not available");await Fu(t,e.chainId,e.onSwitch);const n=await t.request({method:"eth_accounts"});if(!Array.isArray(n)||!n.some(r=>typeof r=="string"&&r.toLowerCase()===e.account.toLowerCase()))throw new Error("The connected source wallet changed. Reconnect the selected account before funding.");const o=kt(e.chainId)?.viemChain;return{extWc:li({account:e.account,chain:o,transport:di(t)}),viemChain:o}}async function Tu(e,t,n){const o=Date.now()+1e4;for(;Date.now()<o;){let r,a;try{r=await Promise.race([Promise.all([t.getBlockNumber({cacheTime:0}),e.request({method:"eth_blockNumber"}).then(BigInt)]),new Promise(i=>{a=setTimeout(()=>i(null),Math.max(0,o-Date.now()))})])}catch{return}finally{clearTimeout(a)}if(!r||Date.now()>=o||r.every(i=>i>=n))return;await new Promise(i=>setTimeout(i,Math.min(250,o-Date.now())))}}async function Ph(e){let t;for(const[n,o]of e.calls.entries()){await e.observer?.onSending?.(n);let r;try{r=await e.extWc.sendTransaction({to:o.to,data:o.data,value:o.value,chain:e.viemChain,...e.nonce!==void 0?{nonce:e.nonce}:{}})}catch(s){throw sc(s)&&e.observer?.onRejected?.(n),s}await e.observer?.onSubmitted?.(n,r);const a=await Ss({client:e.client,hash:r,call:o,onRepriced:()=>{},onCancelled:()=>e.observer?.onReverted?.(n,r)});a.hash!==r&&await e.observer?.onSubmitted?.(n,a.hash),r=a.hash;const i=a.receipt;if(i.status!=="success")throw e.observer?.onReverted?.(n,r),new Error(e.errorMessage);await Tu(e.extWc,e.client,i.blockNumber),e.observer?.onConfirmed?.(n,r),t=r}return t}async function Ou(e){const t=await e.client.estimateFeesPerGas(),n=t.maxFeePerGas??t.gasPrice;if(typeof n!="bigint"||n<=0n)throw new Error("Network gas could not be priced.");let o=0n;for(const r of e.calls){const a=await e.client.estimateGas({account:e.account,...r});o+=(a*n*120n+99n)/100n}return o}async function cc(e){const{definition:t,account:n,chainId:o}=e,{calls:r}=t;if(!G(t.context.executorAddress,n)||t.context.chainId!==o||!r.length)throw new Error("The direct action no longer matches its wallet or chain.");const a=Rt(o);let i;const s=e.originalAction,c=d=>{if(d.chainId!==o||!G(d.executor,n)||d.calls.length!==r.length||d.calls.some((p,w)=>!G(p.to,r[w].to)||p.data.toLowerCase()!==r[w].data.toLowerCase()||BigInt(p.value)!==r[w].value))throw Error("The original external action no longer matches its accepted calls.");return d};let l=s?c(await s.service.getExternalExecution(s.actionId)):void 0,u=l?.executionMode==="wallet-envelope";if(s?.resume&&u)throw Error("Wallet-envelope recovery is unavailable. Check wallet activity; this original action will not be resent.");for(const[d,p]of r.entries()){if(await e.assertCurrent(),l&&!u){const x=l.calls[d];if(x.status==="confirmed"&&x.transactionHash){i=x.transactionHash;continue}if(x.status!=="unsubmitted"&&!(s?.resume&&["prepared","submitted","reverted"].includes(x.status)))throw Error(x.status==="reverted"||x.status==="conflict"?"The original wallet action failed or its nonce was used by another transaction.":"The original wallet transaction is being reconciled. Check its status before continuing.")}let w;if(s&&!u){if(l=c(await s.service.prepareExternalExecutionCall(s.actionId,d,s.resume&&l?.calls[d]?.status==="reverted"?l.calls[d].transactionHash??void 0:void 0)),u=l.executionMode==="wallet-envelope",s.resume&&u)throw Error("Wallet-envelope recovery is unavailable. Check wallet activity; this original action will not be resent.");s.resume&&l.calls[d]?.status==="reverted"&&l.calls[d]?.transactionHash&&(l=c(await s.service.prepareExternalExecutionCall(s.actionId,d,l.calls[d].transactionHash)));const x=l.calls[d];if(!u&&x.status==="confirmed"&&x.transactionHash){i=x.transactionHash;continue}if(!u&&x.status!=="prepared")throw Error("The original wallet call could not be prepared.");if(l.executionMode!=="wallet-envelope"){if(x.nonce===null)throw Error("The original wallet nonce is unavailable.");w=x.nonce;const[C,v]=await Promise.all([a.getTransactionCount({address:n,blockTag:"latest"}),a.getTransactionCount({address:n,blockTag:"pending"})]);if(C!==w||v!==w)throw Error("The original wallet nonce is pending or changed. Check its status before continuing.")}await e.assertCurrent()}const[f,g]=await Promise.all([Ou({client:a,account:n,calls:[p]}),a.getBalance({address:n})]);if(g<p.value+f)throw new Error("The external wallet has insufficient native balance for this transaction and network gas.");await e.assertCurrent();const{extWc:h,viemChain:b}=await ic({wallet:e.wallet,account:n,chainId:o});if(await e.assertCurrent(),i=await Ph({extWc:h,viemChain:b,client:a,calls:[p],errorMessage:"The external transaction reverted. Retry the unfinished action when ready.",...w!==void 0?{nonce:w}:{},...s?{observer:{onSubmitted:async(x,C)=>{try{l=c(await s.service.recordExternalExecutionHash(s.actionId,d,C))}catch(v){if(l?.executionMode!=="wallet-envelope")throw v}}}}:{}}),s&&i){try{l=c(await s.service.recordExternalExecutionHash(s.actionId,d,i))}catch(x){if(l?.executionMode!=="wallet-envelope")throw x}if(l?.executionMode!=="wallet-envelope"&&l?.calls[d]?.status!=="confirmed")throw Error("The original wallet transaction is confirmed on chain and awaiting backend reconciliation.")}}if(!i)throw new Error("The direct action has no confirmed receipt.");return i}function Pa(e,t,n){if(!G(e.owner,t)||e.balanceError||e.balanceStatus==="stale"||e._wrapFromNative||!Number.isInteger(e.decimals)||e.decimals<0||e.decimals>36)return!1;if(e.location==="embedded"&&e._source==="wallet"){const r=Fr(e.chainId);return!!r&&(!G(e.address,r.address)||e.decimals===r.decimals)}if(e.location!=="rollup"||e._source!=="spice"||!e.receiptTokenId||!e.chainTokens||Array.isArray(e.chainTokens))return!1;const o=Object.entries(e.chainTokens).filter(([r])=>Jn(r)?.chainId===n.chainId);return o.length===1&&G(Jn(o[0][0])?.address,n.address)&&(o[0][1].decimals===void 0||o[0][1].decimals===n.decimals)}async function Bu(e){const{owner:t,token:n}=e,o=Fr(n.chainId);if(!o||!G(o.address,n.address)||o.decimals!==n.decimals||e.destinationToken.chainId!==n.chainId)throw new Error("Combined funding requires the destination chain's supported USDC token.");if(e.budget!=="max"&&e.budget<=0n)throw new Error("Enter a positive purchase budget.");const r=()=>{if(e.signal?.aborted)throw new Error("Fee estimation cancelled")},a=(I,y=0n,k=0n,E=0n)=>new Ws({symbol:n.symbol,decimals:n.decimals,grossAmount:I,netAmount:0n,gasFee:y,spicenetFee:k,bridgeFee:E,totalFee:y+k+E,gasQuoteSource:"estimated"}),i=new Set,s=new Set,c=[],l=I=>I.location==="rollup"?0:G(I.address,Fr(I.chainId)?.address)?I.chainId===n.chainId?1:3:I.chainId===n.chainId?2:4,u=[...e.sources].sort((I,y)=>l(I.asset)-l(y.asset));let d=0n;for(const I of u){r();const{asset:y,availableAmount:k,reservedAmount:E}=I,F=Ie(y),U=y.location==="rollup"?`${t.toLowerCase()}:rollup:${y.receiptTokenId}`:`${t.toLowerCase()}:${y.location}:${y.chainId}:${ft(y.address).toLowerCase()}`;if(i.has(F)||s.has(U))throw new Error("A funding position was included more than once.");if(i.add(F),s.add(U),!Pa(y,t,n)||typeof k!="bigint"||typeof E!="bigint"||k<0n||E<0n||k+E>y.balance)throw new Error("A funding position or its available balance cannot be verified.");if(k===0n||e.budget!=="max"&&d>=e.budget)continue;const O=y.location==="rollup"?n:{...Fr(y.chainId),chainId:y.chainId},M=y.location==="rollup"||G(y.address,O.address)?void 0:await e.resolveSourceInput(y,O,k);if(r(),M&&(M.amountOutMinimum<=0n||M.amountOutMinimum>M.amountOut||!M.calls.length))throw new Error("A funding conversion has no guaranteed output.");y.location==="rollup"&&y.receiptTokenDecimals!==void 0&&An(k,y.decimals,y.receiptTokenDecimals);const B=M?.amountOutMinimum??An(k,y.decimals,O.decimals),D=An(on(B,O.decimals,n.decimals,"floor"),n.decimals,O.decimals);D!==0n&&(d+=An(D,O.decimals,n.decimals),c.push({positionId:F,asset:y,owner:t,chainId:y.chainId,token:y.address,decimals:y.decimals,sourceSpendCap:k,quotedAvailable:k,reservedAmount:E,pivotToken:O,amountOutMinimum:D,gasFeeAmount:0n,...M?{swap:M}:{}}))}const p=c.reduce((I,y)=>I+An(y.amountOutMinimum,y.pivotToken.decimals,n.decimals),0n);let w=e.budget==="max"?p:e.budget;if(e.budget==="max"&&w===0n)throw a(0n);if(w<=0n||w>p)throw new Error("The available funding positions cannot cover this purchase budget.");const f=[];let g=w;for(const I of c){if(g===0n)break;const y=An(I.amountOutMinimum,I.pivotToken.decimals,n.decimals),k=y<g?y:g,E=An(k,n.decimals,I.pivotToken.decimals);if(k===y)f.push(I);else if(I.swap){const F=await e.resolveSourceOutput(I.asset,I.pivotToken,E);if(r(),!F||F.amountInMax<=0n||F.amountIn<0n||F.amountIn>F.amountInMax||F.amountInMax>I.quotedAvailable||F.amountOut<E||!F.calls.length)throw new Error("The funding conversion cannot fit its accepted source balance.");f.push({...I,sourceSpendCap:F.amountInMax,amountOutMinimum:E,swap:{venue:F.venue,calls:F.calls,amountOut:F.amountOut,amountOutMinimum:E}})}else{const F=An(E,I.pivotToken.decimals,I.decimals);I.asset.location==="rollup"&&I.asset.receiptTokenDecimals!==void 0&&An(F,I.decimals,I.asset.receiptTokenDecimals),f.push({...I,sourceSpendCap:F,amountOutMinimum:E})}g-=k}const h=new Map;for(const I of f){if(I.asset.location==="rollup")continue;const y=h.get(I.chainId)??[];y.push(I),h.set(I.chainId,y)}const b=new Map,x=(I=!1)=>[...h].map(([y,k])=>{const E=k[0].pivotToken,F=k.reduce((O,M)=>O+M.amountOutMinimum,0n),U=b.get(y)??(I?1n:0n);if(F<=U&&!I)throw a(w,on(U,E.decimals,n.decimals,"ceil"));return{chainId:y,calls:[...k.flatMap(O=>O.swap?.calls??[]),Rr(E.address,F>U?F-U:0n,Uo(y)),...U>0n?[Rr(E.address,U,gn)]:[]]}});for(let I=0;I<8&&h.size>0;I++){const y=x(!0);let k=!1;for(const[E,[F,U]]of[...h].entries()){r();const O=await qe.estimateBatchGas({user:t,outputToken:U[0].pivotToken.address,stepIndex:0,chainBatches:[y[E]],signal:e.signal});if(O.gasFee<0n)throw new Error("The source gas quote is invalid.");const M=U[0].pivotToken,B=An(on(O.gasFee,M.decimals,n.decimals,"ceil"),n.decimals,M.decimals),D=b.get(F),W=D!==void 0&&D>B?D:B,S=U.reduce((q,z)=>q+z.amountOutMinimum,0n);if(W>=S){if(e.budget!=="max")return Bu({...e,sources:e.sources.filter(q=>q.asset.location==="rollup"||q.asset.chainId!==F)});w-=An(S,M.decimals,n.decimals),h.delete(F);for(const q of U)f.splice(f.indexOf(q),1);k=!0;continue}(D===void 0||W!==D)&&(k=!0),b.set(F,W)}if(!k)break;if(I===7)throw new Error("Source fees did not converge. Refresh the quote before submitting.")}let C=0n;for(const[I,y]of h){const k=b.get(I);y[0].gasFeeAmount=k,C+=An(k,y[0].pivotToken.decimals,n.decimals)}const v=w-C;if(v<=0n)throw a(w,C);let A={gasFee:0n,spicenetFee:0n,bridgeFee:0n},T="estimated";for(let I=0;I<8;I++){r();const y=A.gasFee+A.spicenetFee+A.bridgeFee,k={grossAmount:v,netAmount:v-y,combinedFeeAmount:y,feeExecutionMode:"user-transfer",feeBreakdown:A},E=k.netAmount;if(E<=0n)throw a(w,C+A.gasFee,A.spicenetFee,A.bridgeFee);const F=G(n.address,e.destinationToken.address)?void 0:await e.resolveDestinationInput(E);if(r(),F&&(F.amountOutMinimum<=0n||F.amountOutMinimum>F.amountOut||!F.calls.length))throw new Error("The purchase conversion has no guaranteed output.");const U=F?.amountOutMinimum??An(E,n.decimals,e.destinationToken.decimals),O={...k,userAddress:e.beneficiary??t,executorAddress:t,beneficiary:e.beneficiary??t,chainId:n.chainId,destinationToken:e.destinationToken.address,feeToken:n.address,grossAmount:w,netAmount:U,combinedFeeAmount:k.combinedFeeAmount+C},M=await e.buildActionCalls(U,O);if(!M.length&&!F?.calls.length)throw new Error("No action calls configured.");const B={intents:[{intentIndex:0,batches:[{chainId:n.chainId,quotedAmount:E.toString(),totalDebit:v.toString(),gasQuoteSource:T,feeBreakdown:{gasFee:A.gasFee.toString(),spicenetFee:A.spicenetFee.toString(),bridgeFee:A.bridgeFee.toString()}}]}]},D={chainId:n.chainId,calls:[...F?.calls??[],...M],tokenTransfers:[{from:"escrow",to:t,token:n.address,amount:v}]},W=[...x(),...Zd([D],t,B,{payoutAlreadyGross:!0,requestTimestampMs:e.requestTimestampMs})],S=await e.estimate(W,n.address,v,{userOverride:t,useCustomTransfers:!0,feeExecutionMode:"user-transfer",signal:e.signal,skipUserFundingPreflight:!0}),q=S.intents.flatMap(j=>j.batches);if(S.intents.length!==1||S.intents[0].intentIndex!==0||q.length!==1||q[0].chainId!==n.chainId)throw new Error("The destination fee quote is missing or ambiguous.");const z=go(S,{...n,tokenAddress:n.address});if(!z)throw new Error("The destination fee quote cannot be verified.");const te=Yo(q[0]);if(te.gasFee<0n||te.spicenetFee<0n||te.bridgeFee<0n)throw new Error("The destination fee quote is invalid.");if(te.spicenetFee>os(v,10n))throw new Error("The destination platform fee exceeds the supported purchase fee.");const Y={gasFee:te.gasFee>A.gasFee?te.gasFee:A.gasFee,bridgeFee:te.bridgeFee>A.bridgeFee?te.bridgeFee:A.bridgeFee,spicenetFee:te.spicenetFee>A.spicenetFee?te.spicenetFee:A.spicenetFee};if(I>0&&Y.gasFee===A.gasFee&&Y.bridgeFee===A.bridgeFee&&Y.spicenetFee===A.spicenetFee)return{fundingPlan:{owner:t,token:n,totalBudget:w,sources:f},batches:W,feeEstimate:B,actionDefinition:{amount:U,context:O,calls:M},actionContext:O,fundingAmount:v,destinationAmount:U,destinationSwap:F,swapInputAmount:E,actionOutputCredits:Es(n.chainId,e.destinationToken.address,F),preview:{symbol:n.symbol,decimals:n.decimals,grossAmount:w,netAmount:E,totalFee:k.combinedFeeAmount+C,gasFee:A.gasFee+C,spicenetFee:k.feeBreakdown.spicenetFee,bridgeFee:A.bridgeFee,gasQuoteSource:T}};A=Y,T=z.gasQuoteSource}throw new Error("Fees did not converge. Refresh the quote before submitting.")}function Ls(e,t,n,o){return n?{to:e,value:o,data:"0x"}:{to:t,value:0n,data:Bt({abi:ut,functionName:"transfer",args:[e,o]})}}async function Ru(e){const t=Ls(e.recipient,e.token,e.isNative,e.amount),[n,o]=await Promise.all([e.client.estimateGas({account:e.account,...t}),e.client.estimateFeesPerGas()]),r=o.maxFeePerGas??o.gasPrice;if(typeof r!="bigint"||r<=0n)throw new Error("Source transaction gas could not be priced.");return(n*r*120n+99n)/100n}function lc(e,t){return t.isNative?e.sendTransaction({to:t.recipient,value:t.amount,chain:t.viemChain}):e.sendTransaction({to:t.tokenAddr,data:Bt({abi:ut,functionName:"transfer",args:[t.recipient,t.amount]}),chain:t.viemChain})}async function Uh(e){const{extWc:t,sourceClient:n,recipient:o,tokenAddr:r,isNative:a,amount:i}=e;if(i<=0n)return;await e.observer?.onSending?.(0);let s;try{s=await lc(t,{recipient:o,tokenAddr:r,isNative:a,amount:i,viemChain:e.viemChain})}catch(u){throw sc(u)&&e.observer?.onRejected?.(0),u}e.observer?.onSubmitted?.(0,s);const c=await Ss({client:n,hash:s,call:Ls(o,r,a,i),onRepriced:u=>e.observer?.onSubmitted?.(0,u),onCancelled:()=>e.observer?.onReverted?.(0,s)});s=c.hash;const l=c.receipt;if(l.status!=="success")throw e.observer?.onReverted?.(0,s),new Error("Embedded wallet funding failed");await Tu(t,n,l.blockNumber),e.observer?.onConfirmed?.(0,s)}async function Du(e){const{asset:t,embedded:n,external:o,amount:r}=e;if(!o||!e.externalWallet)throw new Error("Connect the source wallet before funding.");if(r<=0n)return;const a=Rt(t.chainId),i=t.isNative||Te(t.address),[s,c]=await Promise.all([Ru({client:a,account:o,recipient:n,token:t.address,isNative:i,amount:r}),a.getBalance({address:o})]);if(c<s+(i?r:0n))throw new Error("The source wallet has insufficient native balance for funding and gas.");const{extWc:l,viemChain:u}=await ic({wallet:e.externalWallet,account:o,chainId:t.chainId});await Uh({extWc:l,sourceClient:a,recipient:n,tokenAddr:t.address,isNative:i,amount:r,viemChain:u,observer:{...e.observer,onSending:async d=>{await e.assertCurrent(),await e.observer?.onSending?.(d)}}})}function Mu(e){const t=fn(cn),n=kt(e.chainId),o=e.address??n?.supportedTokens?.find(f=>f.symbol.toLowerCase()===e.symbol?.toLowerCase())?.address,r=e.symbol??(o&&Te(o)?n?.nativeCurrency?.symbol:n?.supportedTokens?.find(f=>!!o&&G(f.address,o))?.symbol),a=ts(e.chainId,t?.rpcOverrides),[i,s]=H(0),c=`${e.chainId}:${o?.toLowerCase()}:${a}:${e.decimals??""}:${r??""}:${i}`,[l,u]=H(null);he(()=>{let f=!1;if(!(!e.enabled||!o||!a?.trim()))return Promise.all([e.decimals??_a(e.chainId,o,t?.rpcOverrides),r??dr(Rt(e.chainId,t?.rpcOverrides),{address:o,abi:ut,functionName:"symbol"}).catch(()=>{})]).then(([g,h])=>{if(!Number.isInteger(g)||g<0||g>255)throw new Error("Invalid destination token decimals");f||u({key:c,decimals:g,symbol:h})}).catch(g=>{f||u({key:c,error:g.message})}),()=>{f=!0}},[e.enabled,c]);const d=l?.key===c?l:null,p=Ae(()=>({address:o??Zt,chainId:e.chainId,decimals:d?.decimals??0,symbol:r??d?.symbol??(o?ha(o):""),logoURI:e.logoURI}),[o,e.chainId,d?.decimals,d?.symbol,r,e.logoURI]),w=e.enabled?o?a?.trim()?d?.error??null:`Configure SpiceFlowProvider rpcOverrides[${e.chainId}] before continuing.`:"Configure the destination token address before continuing.":null;return{token:p,error:w,ready:e.enabled&&!!o&&!!a?.trim()&&d?.decimals!==void 0,refresh:ae(()=>s(f=>f+1),[])}}function qs(e,t){const n=!!e&&e.symbol!==void 0&&e.decimals!==void 0,o=Mu({enabled:t&&!!e&&!n,chainId:e?.chainId??0,address:e?.address,decimals:e?.decimals,symbol:e?.symbol,logoURI:e?.logoURI});return{token:e?n?e:o.ready?o.token:void 0:void 0,error:o.error}}const zs={address:Zt,symbol:"",decimals:18,chainId:0};function Nu(e,t,n){return G(e.address,t)&&e.chainId===n?e._source==="wallet"?0:1:2}function Wh(e,t,n,o){const r=Nu(e,n,o)-Nu(t,n,o);return r!==0?r:(t.balanceUsd||0)-(e.balanceUsd||0)}const Lh=ad;function Pu(e){const t=fn(cn),n=zr(),o=t?.embeddedWalletAddress||n.embeddedAddress,r=t?.externalWalletAddress||n.externalAddress,a=(t?.mode||"7702")!=="7702",i=e.destinationToken??zs,s=e.enabled&&!!e.destinationToken,c=Or({...e,owner:o,enabled:s&&!!o&&(!a||e.includeCrossChainEmbeddedAssets!==!1),role:"spend-source",destination:e.destinationToken}),l=Or({...e,owner:r,enabled:s&&!!r&&(a||e.includeExternalWalletAssets!==!1),role:"spend-source",destination:e.destinationToken});return{displayAssets:Ae(()=>[...c.assets,...l.assets].sort((u,d)=>Wh(u,d,i.address,i.chainId)),[c.assets,l.assets,i.address,i.chainId]),filteredSpiceAssets:c.rollupAssets,walletAssets:[...c.walletAssets,...l.walletAssets],embeddedWalletAddress:o,externalAddress:r,isNon7702:a,refreshSpiceAssets:c.refresh,refreshWalletAssets:c.refresh,loading:c.loading||l.loading,refreshing:c.refreshing||l.refreshing,error:c.error||l.error}}function qh(e,t){return!e||e._source!=="wallet"?null:Si(e,t)}function dc(e){return Ul({aerodrome:!1,oneInch:{chainIds:[]},customVenues:e})}const uc=Er(),zh=dc(uc.input);function Uu(e){return{venue:"mapped-transfer",amountOut:e,amountOutMinimum:e,calls:[]}}function Wu(e){return{venue:"mapped-transfer",amountIn:e,amountInMax:e,amountOut:e,calls:[]}}async function Ua(e){if(G(e.tokenIn,e.tokenOut))return Uu(e.amountIn);if(e.resolveInputSwap){const n=await e.resolveInputSwap({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:e.amountIn,maxSlippage:e.maxSlippage},e.chainId,e.recipient);if(n)return n}const t=await(e.liquidityVenues?dc(Er(e.liquidityVenues).input):zh).resolveSwap({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:e.amountIn,maxSlippage:e.maxSlippage},e.chainId,e.recipient,e.selectedSwap);if(!t)throw new Error("No liquidity for this pair.");return t}async function Lu(e){return G(e.tokenIn,e.tokenOut)?Wu(e.amountOut):Ma({customVenues:e.liquidityVenues?Er(e.liquidityVenues).output:uc.output}).getQuote({tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountOut:e.amountOut,maxSlippage:e.maxSlippage},e.chainId,e.recipient)}function qu(e){const{enabled:t=!0,direction:n,selectedAsset:o,destinationToken:r,chainId:a=r.chainId,recipient:i,paymentAmount:s,maxSlippage:c,refreshIntervalMs:l,resolveInputSwap:u,resolveExactOutputSwap:d}=e,p=fn(cn),w=p?.liquidityVenues,f=JSON.stringify([p?.network,p?.apiUrl,p?.rpcOverrides]),[g,h]=H(!1),[b,x]=H(null),[C,v]=H(null),[A,T]=H(null),[I,y]=H(null),[k,E]=H(null),[F,U]=H(null),[O,M]=H(null),[B,D]=H(null),[W,S]=H(null),[q,z]=H(null),[te,Y]=H(null),[j,K]=H(null),[X,xe]=H(null),[ge,ve]=H(null),[Se,ne]=H(0),[_,ue]=H(null),[P,Le]=H(null),Be=J(null),L=J(null),V=J(0),oe=J(new Map),le=ae(()=>{V.current++,oe.current.clear(),Le(null),ne(ie=>ie+1)},[]),Z=l&&l>0?l:null,se=w?JSON.stringify(w):"",We=Ae(()=>w?Er(w):uc,[se]),He=Ae(()=>dc(We.input),[We]),ye=Ae(()=>Ma({customVenues:[...d?[{name:"consumer-exact-output",chainIds:[a],preferred:!0,resolve:d}]:[],...We.output]}),[d,a,We]);he(()=>{oe.current.clear()},[ye]);const Oe=Ae(()=>t?qh(o?.asset,a):null,[t,o?.asset,a]),Ne=Ae(()=>{if(!t||!o?.asset)return null;if(Oe)return Oe.destination.address;const ie=lo(o.asset,a);if(ie)return ie;const xt=$o(o.asset.address,a,o.asset.chainId);return xt?xt.address:null},[t,o?.asset,a,Oe]),Ce=Ae(()=>t&&o?.asset?Qr(o.asset,a):[],[t,o?.asset,a]),Ge=Ae(()=>Ce.map(ie=>ie.toLowerCase()).join(","),[Ce]),ke=JSON.stringify([t,f,o?.asset.owner,o?.asset.location,o?.asset.receiptTokenId,o?.asset.address,o?.asset.chainId,o?.asset.decimals,o?.amount,a,Ge,n,s]);he(()=>{let ie=!1;if(L.current&&(clearTimeout(L.current),L.current=null),!t||!o?.asset||Oe||Ce.length<=1){xe(null),ve(null);return}return L.current=setTimeout(async()=>{const xt=n==="input"?o.amount:s||"0";let vt=0n;try{vt=n==="input"?Rn(xt,o.asset.decimals):0n}catch{vt=0n}try{const Ve=await nd(o.asset,a,{requiredAmount:vt});ie||(xe(Ve),ve(ke))}catch{ie||xe(null)}},400),()=>{ie=!0,L.current&&(clearTimeout(L.current),L.current=null)}},[ke]);const Qe=Ae(()=>(ge===ke?X:null)??Ne,[X,ge,ke,Ne]),pe=Ae(()=>!o?.asset||!Qe?[]:[Qe,...Ce.filter(ie=>ie.toLowerCase()!==Qe.toLowerCase())],[o?.asset,Qe,Ce]),et=Ae(()=>!o?.asset||!Ia(o.asset.address,o.asset.chainId,r.address,r.chainId)||!Qe?!1:G(Qe,r.address),[o,r.address,r.chainId,Qe]),Ct=Qe?G(Qe,r.address):!1,lt=n==="output"&&parseFloat(s||"0")===0,st=t&&!!o?.asset&&!et&&!Ct&&!lt,$e=JSON.stringify([t,se,n,st,f,o?.asset.owner,o?.asset.location,o?.asset.receiptTokenId,o?.asset.address,o?.asset.chainId,o?.asset.decimals,n==="input"?o?.amount:s,pe.map(ie=>ie.toLowerCase()),a,r.address.toLowerCase(),r.chainId,r.decimals,i?.toLowerCase(),c,Z,Oe?.source.address.toLowerCase()??""]),Re=Ae(()=>({}),[$e,He,ye,u,Se]),Fe=P?.request===Re&&(!Z||P.expiresAt>Date.now());he(()=>{if(!Z||P?.request!==Re)return;const ie=setTimeout(le,Math.max(0,P.expiresAt-Date.now()));return()=>clearTimeout(ie)},[Z,P,Re,le]),he(()=>{Be.current&&clearTimeout(Be.current),ue(Re),Le(null),x(null);const ie=n==="input"?o?.amount:s,xt=parseFloat(ie||"0");if(!t||!Number.isFinite(xt)||xt<=0||!o?.asset||!i||pe.length===0){V.current++,v(null),T(null),y(null),E(null),U(null),M(null),D(null),K(null),x(null),h(!1);return}const vt=o.asset.decimals;let Ve;try{Ve=n==="input"?Rn(o.amount,vt):Rn(s||"0",r.decimals)}catch(ht){V.current++,x(ht instanceof Error?ht.message:"Invalid amount or token precision"),h(!1);return}const Dt=++V.current,Vt=()=>Dt!==V.current;h(!0);const yn=n==="output"?150:100,Wt=async(ht,Ye,gt,mt={chainId:a,tokenOut:r.address,amountIn:Ve},Ft=pe)=>{for(const ee of Ft){const At=`${f}:${se}:${n}:${mt.chainId}:${ee.toLowerCase()}:${mt.tokenOut.toLowerCase()}:${mt.amountIn.toString()}:${i.toLowerCase()}:${c??"default"}:${Z??"default"}`,Pe=oe.current.get(At),Ze=Pe&&Pe.expiresAt>Date.now()?ht(Pe):void 0;if(Ze)return{quote:Ze,tokenIn:ee,expiresAt:Pe.expiresAt};const ct=await gt(ee);if(Vt())return"stale";if(!ct)continue;const wt=Date.now()+Math.min(Z??3e4,3e4);return oe.current.set(At,{expiresAt:wt,direction:n,...Ye(ct)}),{quote:ct,tokenIn:ee,expiresAt:wt}}return null},Dn=ht=>Wt(Ye=>Ye.resolvedSwap,Ye=>({resolvedSwap:Ye}),async Ye=>{const gt=!Oe&&ht.chainId===a&&o.asset._source!=="wallet",mt=gt?await qo(o.asset,Ye,ht.chainId,r):vt;if(Vt())return null;const Ft=gt?An(ht.amountIn,vt,mt):ht.amountIn;if(G(Ye,ht.tokenOut))return Uu(Ft);const ee={type:"swap",tokenIn:Ye,tokenOut:ht.tokenOut,amountIn:Ft,maxSlippage:c};if(u){const At=await u(ee,ht.chainId,i);if(At)return At}return He.resolveSwap(ee,ht.chainId,i)},ht,ht.candidates);return Be.current=setTimeout(async()=>{try{if(n==="input"){let ht=null,Ye=Ve;if(Oe){if(ht=await Dn({chainId:Oe.source.chainId,tokenOut:Oe.source.address,amountIn:Ve,candidates:[o.asset.address]}),ht==="stale"||Vt())return;if(!ht)throw new Error("No liquidity for this pair");Ye=on(ht.quote.amountOutMinimum,Oe.source.decimals,Oe.destination.decimals,"floor")}let gt=Oe,mt=null;if(Oe){const wt=await td(Oe.destination,r,async Je=>{const Lt=on(Ye,Oe.destination.decimals,Je.decimals,"floor"),St=await Dn({chainId:a,tokenOut:r.address,amountIn:Lt,candidates:[Je.address]});return St&&St!=="stale"?{amount:Lt,value:St}:null});if(Vt())return;if(!wt)throw new Error("No liquidity for this pair");gt={...Oe,destination:wt.token},Ye=wt.amount,mt=wt.value}else mt=await Dn({chainId:a,tokenOut:r.address,amountIn:Ye,candidates:pe});const Ft=gt?!G(gt.destination.address,r.address):st;if(mt==="stale"||Vt())return;if(!mt)throw new Error("No liquidity for this pair");const ee=mt?mt.quote.amountOut:Ye,At=Math.min(mt?.expiresAt??1/0,ht?.expiresAt??1/0),Pe=gt?.destination.decimals??await qo(o.asset,mt.tokenIn,a,r),Ze=!Oe&&o.asset._source!=="wallet"?An(Ye,vt,Pe):Ye;if(Vt())return;K(mt?.tokenIn??gt?.destination.address??null),Y(gt),Le({request:Re,key:`${lr(ps($e))}:${Dt}`,expiresAt:At}),D(ee),S(Ze),z(Pe),y(Ft?mt?.quote??null:null),E(ht?.quote??null),U(null),M(null);const ct=parseFloat(Me(ee,r.decimals));v(ct<.01?ct.toPrecision(4):ct.toLocaleString(void 0,{maximumFractionDigits:6})),T(null),x(null)}else{const ht=Pe=>Wt(Ze=>Ze.exactOutputSwap,Ze=>({exactOutputSwap:Ze}),async Ze=>{try{return G(Ze,Pe.tokenOut)?Wu(Pe.amountOut):await ye.getQuote({tokenIn:Ze,tokenOut:Pe.tokenOut,amountOut:Pe.amountOut,maxSlippage:c},Pe.chainId,i)}catch{return null}},{chainId:Pe.chainId,tokenOut:Pe.tokenOut,amountIn:Pe.amountOut},Pe.candidates);let Ye=Oe,gt=null;if(Oe){const Pe=await td(Oe.destination,r,async Ze=>{const ct=await ht({chainId:a,tokenOut:r.address,amountOut:Ve,candidates:[Ze.address]});return ct&&ct!=="stale"?{amount:ct.quote.amountInMax,value:ct}:null});if(Vt())return;if(!Pe)throw new Error("No liquidity for this pair");Ye={...Oe,destination:Pe.token},gt=Pe.value}else gt=await ht({chainId:a,tokenOut:r.address,amountOut:Ve,candidates:pe});if(gt==="stale"||Vt())return;if(!gt)throw new Error("No liquidity for this pair");const mt=!Ye||!G(Ye.destination.address,r.address);let Ft=null;if(Oe){const Pe=gt?gt.quote.amountInMax:Ve;if(Ft=await ht({chainId:Oe.source.chainId,tokenOut:Oe.source.address,amountOut:on(Pe,Ye.destination.decimals,Oe.source.decimals,"ceil"),candidates:[o.asset.address]}),Ft==="stale"||Vt())return;if(!Ft)throw new Error("No liquidity for this pair")}const ee=Ft?vt:await qo(o.asset,gt.tokenIn,a,r);if(Vt())return;K(gt?.tokenIn??Ye?.destination.address??null),Y(Ye),Le({request:Re,key:`${lr(ps($e))}:${Dt}`,expiresAt:Math.min(gt?.expiresAt??1/0,Ft?.expiresAt??1/0)}),M(mt?gt?.quote??null:null),U(Ft?.quote??null),y(null),E(null),D(null);const At=Ft?.quote.amountIn??gt.quote.amountIn;T(Me(At,ee)),v(null),x(null)}}catch(ht){if(Vt())return;const Ye=ht instanceof Error?ht.message:"Failed to get quote";x(Ye),v(null),T(null),y(null),E(null),U(null),M(null),D(null),K(null)}finally{Vt()||h(!1)}},st||Oe?yn:0),()=>{V.current++,Be.current&&clearTimeout(Be.current)}},[Re]);const bt=Fe?j??Qe:Qe,it=bt?G(bt,r.address):Ct;return{inputAmount:Fe&&n==="input"?W:null,inputDecimals:Fe&&n==="input"?q:null,quoteKey:Fe?P.key:null,quoteExpiresAt:Fe?P.expiresAt:null,refreshQuote:le,isQuoting:_===Re?g:st||!!Oe,quoteError:_===Re?b:null,estimatedOutput:Fe?C:null,estimatedInput:Fe?A:null,resolvedSwap:Fe?I:null,exactOutputSwap:Fe?O:null,quoteAmountOut:Fe?B:null,resolvedTokenIn:bt,isDirect:it,needsSwap:Fe?!it:st,selectedIsEquivalent:et,sourceSwap:Fe?k:null,sourceExactOutputSwap:Fe?F:null,pivot:Fe?te:Oe}}function Wa(e){const{enabled:t=!0,destinationToken:n,selectedAsset:o,paymentAmount:r="0",sourceChains:a,supportedSourceAssets:i,buildActionCalls:s,feeExecutionMode:c="user-transfer",buildSpicenetBatch:l,onPayExecute:u,resolveExactOutputSwap:d,amountDirection:p=e.feeOnlyAction?"output":e.fundingSources?"input-inclusive":"input",onSuccess:w,onError:f}=e,g=qs(n,t),h=g.token??zs,b=!!e.fundingSources,x=!!e.combineSourceBalances||b,C=qs(e.fundingSources?.token,t&&b),v=C.token??zs,A=t&&!!g.token,T=p==="output",I=p==="input-inclusive",y=e.feeFunding?.length!==0&&(e.actionProceeds==="output"||!!e.feeFunding?.length),k=T?"output":"input",E=h.chainId,F=fn(cn),U=jp(F?.feeToleranceBps),O=F?.mode||"7702",M=!1,B=!!F?.isWhitelistGateActive,D=!!F?.isWhitelistConfigured&&F?.isUserWhitelisted!==!0,W=Ae(()=>a??F?.supportedChainIds??[],[a,F?.supportedChainIds]),S=i,{address:q,isConnected:z,isReady:te,isAuthenticated:Y,provider:j}=Mo(),{execute:K,estimate:X,clearStatus:xe}=Yr(),{externalWallet:ge,embeddedAddress:ve,activeWallet:Se,activeAddress:ne}=zr(),_=F?.externalWalletAddress,ue=F?.embeddedWalletAddress||ve,P=o,Le=jr(P?.asset,O!=="7702"),Be=!!P&&P.asset.chainId===h.chainId&&G(ft(P.asset.address),ft(h.address)),L=!e.quoteOnlyAccount&&(O!=="7702"||e.actionExecution?.wallet==="external")&&Le&&Be&&(!T||Number(r)>0)&&!e.feeOnlyAction&&!e.actionProceeds,V=Le&&!L,oe=e.actionExecution?.wallet==="external"&&!L,le=oe?[h.chainId,...P?.asset._source==="wallet"?[P.asset.chainId]:[]].find(N=>!F?.rpcOverrides?.[N]):void 0,Z=b&&(p!=="input-inclusive"||P||e.feeOnlyAction||e.actionInput||e.actionProceeds||e.actionExecution||O!=="7702")?"Combined funding supports an input-inclusive account purchase without a selected token.":b&&C.error?C.error:g.error?g.error:u?"Move onPayExecute protocol calls to buildActionCalls and application updates to onSuccess before continuing.":oe&&(T&&!(Number(r)>0)||e.feeOnlyAction||e.actionProceeds||e.prependSourceEscrow||Te(h.address))?"External wallet execution requires a positive ERC20 supply or payment with SDK-managed funding.":le!==void 0?`Configure rpcOverrides for chain ${le} before routing to the external caller.`:null,se=Ae(()=>oe&&_?(N,Q)=>Mh(N,Q,_):s,[oe,_,s]),{displayAssets:We,filteredSpiceAssets:He,walletAssets:ye,embeddedWalletAddress:Oe,refreshSpiceAssets:Ne,refreshWalletAssets:Ce,loading:Ge,refreshing:ke,error:Qe}=Pu({address:q,destinationToken:h,supportedSourceAssets:S,sourceChains:W,additionalSourceTokens:[...e.additionalSourceTokens??[],...P?.asset._source==="wallet"?[{address:P.asset.address,chainId:P.asset.chainId,decimals:P.asset.decimals,symbol:P.asset.symbol,name:P.asset.name,logoURI:P.asset.logoURI}]:[]],includeExternalWalletAssets:e.includeExternalWalletAssets,includeCrossChainEmbeddedAssets:e.includeCrossChainEmbeddedAssets,enabled:A&&(!!e.quoteOnlyAccount||(O!=="7702"?!!_:!!ue))}),pe=e.quoteOnlyAccount??Oe,et=[...ye,...He].filter(N=>!b||N.location!=="external"&&G(N.owner,ue)),Ct=JSON.stringify(et,(N,Q)=>typeof Q=="bigint"?Q.toString():Q),lt=Ae(()=>et,[Ct]),st=JSON.stringify([x,ue,E,lt.map(N=>[Ie(N),N.balance.toString(),N.decimals,N.receiptTokenDecimals,N.balanceStatus,N.balanceError,N.chainTokens])]),[$e,Re]=H(null),Fe=ae(N=>x?Ra(N,lt,ue??void 0,E):void 0,[x,lt,ue,E]);he(()=>{if(!x||!A||!ue)return;let N=!1;Re(null);const Q=new Map;for(const $ of lt){const be=Fe($);if(be)Q.set(Ie(be.escrow),be);else if($.location==="rollup"&&$.owner?.toLowerCase()===ue.toLowerCase()&&$.chainId===E&&!$.balanceError&&$.balanceStatus!=="stale"){const fe=Object.entries($.chainTokens??{}).filter(([Ee])=>Ee.toLowerCase().startsWith(`evm:${E}:`));fe.length===1&&fe[0][1].decimals!==void 0&&Q.set(Ie($),{owner:$.owner,chainId:E,token:fe[0][0].split(":")[2],decimals:fe[0][1].decimals,escrow:$})}}return Promise.allSettled([...Q].map(async([$,be])=>{const fe=await er(be.owner,be.chainId,be.token);if(!fe.entries.some(Ee=>Ee.receiptToken===be.escrow.receiptTokenId&&Ee.decimals===be.escrow.receiptTokenDecimals))throw new Error("The cash receipt mapping changed. Refresh before submitting.");return[$,on(fe.available,be.decimals,be.escrow.decimals,"floor")]})).then($=>{const be=$.flatMap(fe=>fe.status==="fulfilled"?[fe.value]:[]);N||Re({scope:st,balances:Object.fromEntries(be)})}),()=>{N=!0}},[x,A,ue,st,Fe]);const bt=ae(N=>!x||N.owner?.toLowerCase()!==ue?.toLowerCase()||N.chainId!==E?!1:lt.some(Q=>Q.owner?.toLowerCase()===N.owner?.toLowerCase()&&Q.chainId===E&&(N.location==="embedded"&&Q.location==="rollup"&&Object.keys(Q.chainTokens??{}).some($=>$.toLowerCase()===`evm:${E}:${N.address.toLowerCase()}`)||N.location==="rollup"&&Q.location==="embedded"&&Object.keys(N.chainTokens??{}).some($=>$.toLowerCase()===`evm:${E}:${Q.address.toLowerCase()}`))),[x,ue,E,lt]),it=ae((N,Q)=>{const $=lt.find(Ee=>Ie(Ee)===Ie(N));if(!$)return;const be=Fe($);if(!be||$e?.scope!==st)return;const fe=$e.balances[Ie(be.escrow)];if(fe!==void 0)return Ra($,lt,ue??void 0,E,fe,Q)},[Fe,$e,st,lt,ue,E]),ie=ae(N=>{if(!x)return N.balance;const Q=lt.find($=>Ie($)===Ie(N));if(!(!Q||Q.balanceError||Q.balanceStatus==="stale")&&!(x&&Q.location!=="external"&&Q.owner?.toLowerCase()!==ue?.toLowerCase()))return bt(Q)?it(Q)?.availableBalance:x&&Q.location==="rollup"?$e?.scope===st?$e.balances[Ie(Q)]:void 0:Q.balance},[lt,bt,it,x,$e,st,ue]),xt=Ae(()=>{if(!x)return We;const N=new Set;return We.filter(Q=>{const $=Fe(Q);if(!$)return!0;const be=Ie($.escrow);return N.has(be)?!1:(N.add(be),!0)})},[We,x,Fe]),vt=JSON.stringify(e.fundingSources?.positionIds??[]),Ve=Ae(()=>{if(!b||!C.token||!ue)return[];const N=new Set(JSON.parse(vt));return lt.filter(Q=>N.has(Ie(Q))&&Pa(Q,ue,v)&&(Q.location==="rollup"||W.includes(Q.chainId))&&To(Q,"spend-source",{...F,isWhitelistGateActive:B},v,S).eligible)},[b,C.token,ue,vt,lt,v,W,F,S]),Dt=Ae(()=>Ve.flatMap(N=>{const Q=N.location==="rollup"?$e?.scope===st?$e.balances[Ie(N)]:void 0:N.balance;return Q===void 0||Q<=0n||Q>N.balance?[]:[{asset:N,availableAmount:Q,reservedAmount:N.balance-Q}]}),[Ve,$e,st]),Vt=JSON.stringify(Dt,(N,Q)=>typeof Q=="bigint"?Q.toString():Q),yn=e.feeFunding===void 0&&O==="7702"&&!L&&!oe&&P?.asset._source==="wallet"&&P.asset.chainId===E&&!it(P.asset),Wt=y||yn||e.feeFunding?.length!==0&&T&&!!P&&!!it(P.asset),Dn=Ae(()=>e.feeOnlyAction||Wt||oe?We.filter(N=>N.balance>0n&&N.location!=="external"&&(N._source==="spice"||N._source==="wallet"&&N.chainId===E)).flatMap(N=>{if(!x||N.location!=="rollup")return[N];const Q=$e?.scope===st?$e.balances[Ie(N)]:void 0;return Q===void 0?[]:[{...N,balance:Q}]}):[],[We,e.feeOnlyAction,Wt,oe,E,x,$e,st]),ht=!!e.feeOnlyAction||Wt||oe,Ye=ht&&Ge,gt=ht?Dn.map(N=>`${Ie(N)}:${N.balance}:${N.balanceError??""}:${N.balanceStatus??""}`).sort().join(",")+`:${Qe??""}`:"",mt=P?[...ye,...He].find(N=>Ie(N)===Ie(P.asset)):void 0,Ft=Ae(()=>P&&mt?{...P,asset:mt}:P,[P,mt]),ee=P?To(mt??P.asset,"spend-source",{allowedTokens:F?.allowedTokens,rpcOverrides:F?.rpcOverrides,liquidityVenues:F?.liquidityVenues,isWhitelistGateActive:B},h,S):null,At=P&&mt?it(mt):void 0,Pe=x?P&&mt?ie(mt):void 0:P?.asset.balance,Ze=x&&P&&(bt(P.asset)||P.asset.location==="rollup")?Pe??0n:mt?mt.balance<(P?.asset.balance??0n)?mt.balance:P.asset.balance:0n,[ct,wt]=H(!1),[Je,Lt]=H(!1),St=J(!1),_t=J(!1),It=J(!0);Po(()=>(It.current=!0,()=>{It.current=!1,qn.current.accepted&&me.current?.abort()}),[]);const[$n,Mn]=H(null),[Kn,Oo]=H(null),Ln=J(0),qn=J({accepted:!1}),bn=J(f);bn.current=f;const zt=ae(N=>{Mn(N),typeof N=="string"&&N&&bn.current?.(new Error(N),Hr(N))},[]),[en,tn]=H("idle"),[ln,Qt]=H(""),[tt,Ut]=H(null),[_n,In]=H(!1),[Sn,En]=H(null),[Vn,mn]=H(null),[eo,_e]=H(!1),[Nn,kn]=H(!1),Bo=J(null),[uo,Qn]=H(null),Ro=J(P),ko=J(!1),me=J(null),ce=J(null),ot=pe||ve||q,Et=qe.getBaseUrl(),De=`${Et}:${ot?.toLowerCase()??""}`,Jt=J(De);Jt.current=De;const[Mt,un]=H({scope:De,checking:!1,supported:null,pending:!1,error:null}),xn=J(0),rn=J(null),nn=J(0),Ht=J({scope:De,supported:null,terminal:new Map}),Pn=J(null),$t=J(null),to=J(null),Fn=J(null),dt=J(null),pn=J(w),tr=J(null),gr=J(!1),[aa,Vo]=H(null),[Co,Nr]=H(null),[re,Ue]=H(!1),[Nt,Xe]=H(0),je=Sn?.status==="success"?Sn.txHash:en==="success"?tt:null,pt=!!je&&aa!==je,jn=J(pt);jn.current=pt;const po=ae(async(N,Q=!1)=>{if(rn.current?.scope===De&&rn.current.version===nn.current&&!Q)return!1;const $=ce.current?.scope===De?ce.current.progress:void 0;if(L&&!$?.actionId&&$?.submissionStatus!=="unknown"||!ot)return!0;const be=++xn.current,fe=()=>It.current&&Jt.current===De&&xn.current===be,Ee=new Cr;Ee.setBaseUrl(Et),un(de=>({...de.scope===De?de:{supported:null,pending:!1},scope:De,checking:!0,error:null}));try{Ht.current.scope!==De&&(Ht.current={scope:De,supported:null,terminal:new Map});const de=Ht.current,ze=N&&de.supported!==null?de.supported:await Ee.supportsAutomaticContinuation();if(!fe())return!1;de.supported=ze;const Tt=ce.current?.scope===De?ce.current:null;let yt=Tt?.progress;if(yt?.submissionStatus==="unknown"&&!yt.actionId){const Kt=yt.idempotencyKey;if(!Kt)throw new Error("The original submission identity is unavailable.");const Ot=await Ee.getActionBySubmission(ot,Kt);if(!fe())return!1;if(!Ot)return un({scope:De,supported:ze,checking:!1,pending:!0,error:null}),!1;const[sn,Pt="0"]=Ot.intentIds[0].split("/");yt={...yt,actionId:sn,intentId:Ot.intentIds[0],intentIndex:Number(Pt),autoContinue:Ot.autoContinue===!0,submissionStatus:void 0},Tt&&(Tt.progress=yt)}const Go=ze?N??await Ee.getWalletActions(ot,{pendingOnly:!0}):[];if(!fe())return!1;let Yn=!1,Bn,Do,sr=0;const ir=new Set([...yt?.actionId?[yt.actionId]:[],...Go.map(Kt=>Kt.actionId)]);for(const Kt of de.terminal.keys())ir.has(Kt)||de.terminal.delete(Kt);for(const Kt of ir){const Ot=Go.find(at=>at.actionId===Kt);if(Ot&&Ot.intents.length!==1){Yn=!0,Bn??(Bn=Ot);break}const sn=yt?.actionId===Kt,Pt=sn&&Tt?.routedExternal||!!Ot?.externalExecution&&Ot.externalExecution.recoveryKey===e.actionExecution?.recoveryKey&&!!_&&G(Ot.externalExecution.executor,_);let hn;if(Pt){if(hn=await Ee.getExternalExecution(Kt),!fe())return!1;if(hn.recoveryKey!==e.actionExecution?.recoveryKey||!_||!G(hn.executor,_))throw Error("The original external action belongs to another wallet or application action.");if(hn.executionMode==="wallet-envelope"){if(sn&&yt?.step!=="success"){Yn=!0,Bn??(Bn=Ot),Do={actionId:Kt,state:hn};break}continue}if(hn.status!=="complete"){if(hn.calls.some(at=>at.status==="conflict"))throw Error("The original external wallet action failed. Check wallet activity before starting another action.");Yn=!0,Bn??(Bn=Ot),Do={actionId:Kt,state:hn};break}}const mo=sn?yt.intentIndex??0:0,kr=`${Kt}/${mo}`;let Cn=de.terminal.get(Kt)??"unresolved";if(ze&&Cn==="unresolved"){if(sr===4){Yn=!0,Bn??(Bn=Ot);break}sr++,Cn=await Ee.getIntentRecoveryStatus(Kt,mo)}else!ze&&sn&&yt?.totalSteps&&(await Promise.all(Array.from({length:yt.totalSteps},(at,ao)=>Ee.checkStepStatus(kr,ao,!0)))).every(at=>at.data.status==="success")&&(Cn="completed");if(!fe())return!1;if(Cn==="unresolved"){Yn=!0,Bn??(Bn=Ot);break}if(de.terminal.set(Kt,Cn),de.terminal.size>100&&de.terminal.delete(de.terminal.keys().next().value),!(!sn||!Tt)){if(Cn==="completed"&&yt?.step!=="success"&&St.current){Yn=!0;break}if(Cn==="completed"&&yt?.step!=="success"&&!St.current){let at;if(Tt.routedExternal){const ao=hn??await Ee.getExternalExecution(Kt),so=ao.calls[ao.calls.length-1];if(ao.status!=="complete"||!so?.transactionHash)throw Error("The original external wallet action is not confirmed yet.");at=await Ui(Rt(ao.chainId),so.transactionHash)}else{const ao=Tt.batches;let so=yt?.destinationStepIndex,Lr=yt?.destinationChainId;if(so===void 0||Lr===void 0){if(yt?.totalSteps!==ao?.length)throw new Error("The original destination is unavailable. Check this action's status before continuing.");for(so=(ao?.length??0)-1;so>=0&&Wo(ao[so].chainId);)so--;Lr=ao?.[so]?.chainId}if(!Number.isSafeInteger(so)||so<0||so>=(yt?.totalSteps??0)||!Number.isSafeInteger(Lr)||!Lr||Wo(Lr))throw new Error("The original destination is unavailable. Check this action's status before continuing.");const Np=await Ee.checkStepStatus(kr,so,!0);if(!fe())return!1;at=await Ui(Rt(Lr),Np.data.transactionHash)}if(!fe())return!1;yt={...yt,step:"success",message:"Transaction confirmed",txHash:at,submissionStatus:void 0},Tt.progress=yt,Ut(at),tn("success"),Mn(null),Qt("Transaction confirmed"),En(ao=>ao&&{status:"success",txHash:at})}else Cn==="cancelled"&&(Tt.progress=void 0)}}return un({scope:De,supported:ze,checking:!1,pending:Yn,error:null,action:Bn,...Do?{externalExecution:Do.state,externalActionId:Do.actionId}:{}}),!Yn}catch(de){return fe()&&un(ze=>({...ze,scope:De,supported:Ht.current.scope===De?Ht.current.supported:null,checking:!1,pending:!0,error:Wn(de,"The original action status is unavailable. Check again before submitting.")})),!1}},[L,ot,De,Et,_,e.actionExecution?.recoveryKey]),Tn=ce.current?.scope===De?ce.current.progress:void 0,wr=!!ot&&(!L||Tn?.submissionStatus==="unknown"||!!Tn?.actionId&&Tn.step!=="success"),fo=Mt.scope===De,Ao=wr&&fo&&Mt.pending,On=ks(ot,wr&&fo&&Mt.supported===!0&&(A||Ao),{pendingOnly:!0}),za=J({scope:De,...On});za.current={scope:De,...On};const Ha=J(null),Qo=ae(async()=>{await po(),On.error&&On.refresh()},[po,On.refresh,On.error]),nr=wr&&(fo?Mt.checking||Mt.supported===null&&!Mt.error||On.loading:!0),yr=wr&&fo?Mt.error??On.error:null,yp=!wr||fo&&!nr&&!Ao&&!yr;he(()=>{if(!(!A&&!Tn?.actionId&&Tn?.submissionStatus!=="unknown"))return po(),()=>{xn.current++,rn.current?.scope===De&&(rn.current=null)}},[De,A,po]),he(()=>{if(!On.updatedAt||On.loading||On.error||rn.current?.scope===De&&rn.current.version===nn.current)return;const N=Ha.current;N?.scope===De&&N.revision===On.revision||(Ha.current={scope:De,revision:On.revision},po(On.actions))},[On.revision,On.loading,On.error,Je,De,po]),he(()=>{Ro.current=P},[P]);const jt=L?_:pe||ve||q,no=A&&!ct&&en==="idle"&&!Z&&!D&&!!jt&&!L&&!T&&I&&c==="user-transfer"&&!e.feeOnlyAction&&!e.actionInput&&!e.actionProceeds&&!!P&&Number(P.amount||"0")===0&&!!ee?.eligible&&Ze>0n,sa=Ae(()=>{if(!no||!P)return P;const N=10n**BigInt(P.asset.decimals);return{...P,amount:Me(Ze<N?Ze:N,P.asset.decimals)}},[no,P,Ze]),Va=qu({enabled:A&&!D&&!L&&!b,direction:k,selectedAsset:sa,destinationToken:h,chainId:E,recipient:jt,paymentAmount:r,resolveExactOutputSwap:d,resolveInputSwap:e.resolveInputSwap,maxSlippage:e.maxSlippage}),Pr=L?{...Va,quoteKey:"direct-external",quoteExpiresAt:null,quoteAmountOut:null,inputAmount:null,inputDecimals:P?.asset.decimals??null,isQuoting:!1,quoteError:null,isDirect:!0,needsSwap:!1,selectedIsEquivalent:!0,resolvedTokenIn:h.address,resolvedSwap:null,exactOutputSwap:null,sourceSwap:null,sourceExactOutputSwap:null,pivot:null,estimatedInput:T?r:P?.amount??null,estimatedOutput:T?r:P?.amount??null}:Va,qt=Pr,{isQuoting:Oc,resolvedSwap:Qa,exactOutputSwap:ja,quoteAmountOut:Bc,resolvedTokenIn:oo,isDirect:Rc,needsSwap:jo,selectedIsEquivalent:bp,sourceSwap:Ga,sourceExactOutputSwap:Ka,pivot:Gt}=Pr,So=T||b?parseFloat(r||"0"):parseFloat(P?.amount||"")||0,xp=P?.asset?._source==="wallet",vp=!!P?.asset&&xp&&P.asset.chainId!==E,Ip=P?Number(Me(Ze,P.asset.decimals)):0,kp=Ae(()=>{if(!P||T)return!1;try{return Rn(P.amount||"0",P.asset.decimals)>Ze}catch{return!0}},[P,T,Ze]);he(()=>{if(!A){Ln.current++,Oo(null),xe?.(),zt(null),wt(!1);const N=Tn?.submissionStatus==="unknown"||!!Tn?.actionId&&Tn.step!=="success";!pt&&!Ao&&!N&&(tn("idle"),Qt(""),Ut(null),In(!1),En(null),ce.current?.scope===De&&(ce.current.progress=void 0)),mn(null),_e(!1),kn(!1),Qn(null),ko.current=!1,me.current&&!Ao&&!N&&(me.current.abort(),me.current=null)}},[A,pt,Ao,De]);const Dc=ae(N=>{if(!It.current||Jt.current!==De||N.user&&!G(N.user,ot))return;const Q=ce.current;Q?.scope===De&&(N.actionId||N.submissionStatus==="unknown")&&((!Q.progress?.actionId&&N.actionId||!Q.progress?.submissionStatus&&N.submissionStatus==="unknown")&&xn.current++,Q.progress={...Q.progress,...N},un($=>({...$,scope:De,checking:!1,pending:N.step!=="success",error:null}))),tn({building:"building","signing-delegation":"signing-delegation","signing-intent":"signing-intent",submitting:"submitting",executing:"executing",success:"success",error:"error"}[N.step]||"executing"),Qt(N.message),N.txHash&&Ut(N.txHash)},[De,ot]),br=Ae(()=>({currentPaymentAmount:r,isFeeInclusiveInput:I,feeOnlyAction:e.feeOnlyAction,swapInputAmount:Pr.inputAmount,destinationToken:h,embeddedWalletAddress:pe,providerEmbeddedAddress:ve,externalWalletAddress:_,address:q,recipient:e.recipient??(O!=="7702"?_:void 0),isNon7702:M,isPayMode:T,resolvedChainId:E,buildActionCalls:se,feeExecutionMode:c,buildSpicenetBatch:l,selectedAsset:P,combinedSourceGroup:At,needsSwap:jo,resolvedSwap:Qa,exactOutputSwap:ja,quoteAmountOut:Bc,resolvedTokenIn:oo,sourceSwap:Ga,sourceExactOutputSwap:Ka,pivot:Gt,resolveSourceExactOutputSwap:async N=>{if(!Gt||!jt)throw new Error("Swap route is not ready.");const Q=await Lu({chainId:Gt.source.chainId,recipient:jt,tokenIn:P.asset.address,tokenOut:Gt.source.address,amountOut:N,liquidityVenues:F?.liquidityVenues,maxSlippage:e.maxSlippage}).catch(()=>null);if(!Q)throw new Error("No liquidity for this pair.");return Q},resolveInputSwap:async(N,Q)=>{if(!oo||!jt)throw new Error("Swap route is not ready.");return Ua({chainId:E,recipient:jt,tokenIn:oo,tokenOut:h.address,amountIn:N,selectedSwap:Q,liquidityVenues:F?.liquidityVenues,maxSlippage:e.maxSlippage,resolveInputSwap:e.resolveInputSwap})}}),[r,At,h,pe,ve,_,q,e.recipient,e.feeOnlyAction,e.maxSlippage,e.resolveInputSwap,Pr.inputAmount,I,O,M,T,E,se,c,l,P,At,jo,Qa,ja,Bc,oo,Ga,Ka,Gt,jt,F?.liquidityVenues]),ia=Ae(()=>b?v.address:P?.asset?Gt?Gt.destination.address:jo&&oo?oo:P.asset.chainId===E?P.asset.address:oo??lo(P.asset,E)??h.address:h.address,[b,v,P,h.address,jo,E,oo,Gt]),ro=JSON.stringify([b&&[v,vt],P&&Ie(P.asset),p,e.quoteOnlyAccount,e.actionExecution?.wallet,h.address,h.chainId,h.decimals,e.recipient,O,b?void 0:_,L?_:pe,F?.apiUrl,F?.rpcOverrides,e.maxSlippage,c,U,e.feeOnlyAction,e.quotedInclusivePlatformFee,x,e.actionProceeds==="output"?"output":e.actionProceeds&&"token"in e.actionProceeds?e.actionProceeds.token:e.actionProceeds?"multiple":void 0,e.feeFunding,e.actionInput?.map(N=>[N.token,N.amount.toString()]),e.feeFundingReserve&&Ie(e.feeFundingReserve.asset),e.feeFundingReserve?.amount.toString(),F?.liquidityVenues,F?.allowedTokens,B,S,W,e.actionInput,e.actionProceeds,e.feeFunding,E,ia,qt.pivot?.source.address,qt.pivot?.destination.address],(N,Q)=>typeof Q=="bigint"?Q.toString():Q),Mc=J(null);Mc.current=A&&!ct&&!Z&&!D?ro:null,he(()=>()=>{Fn.current?.controller.abort(),Fn.current=null},[ro,A,ct,Z,D]);const Un=lr(yf(JSON.stringify([ro,P?.amount,r]))),or=JSON.stringify([q,ue,ve,b?void 0:_,b?ue:ne,te,Y,z,j]),Xs=JSON.stringify([or,F?.apiUrl,F?.network]),Ya=Kn===Xs;he(()=>()=>{Ln.current++,qn.current.accepted&&(me.current?.abort(),St.current=!1,It.current&&(Lt(!1),wt(!1),tn("idle"),Qt(""),Ut(null),Mn(null),In(!1),En(null))),xe?.()},[Xs]);const rt=J({key:Un,enabled:A,quoteOnly:!!e.quoteOnlyAccount,sourceBalance:Ze,physicalAssets:lt,combinedCash:$e,combinationScope:st,sourceEligible:ee?.eligible,externalSignerReady:!!ge&&!!_,owner:jt,walletScope:or,policyAvailable:!Z&&!D});(rt.current.key!==Un||rt.current.enabled!==A||rt.current.quoteOnly!==!!e.quoteOnlyAccount||rt.current.owner!==jt||rt.current.walletScope!==or||rt.current.policyAvailable!==(!Z&&!D))&&nn.current++,rt.current={key:Un,enabled:A,quoteOnly:!!e.quoteOnlyAccount,sourceBalance:Ze,physicalAssets:lt,combinedCash:$e,combinationScope:st,sourceEligible:ee?.eligible,externalSignerReady:!!ge&&!!_,owner:jt,walletScope:or,policyAvailable:!Z&&!D};const xr=J(!1),Nc=J(e.onSubmit);Nc.current=e.onSubmit;const Pc=J(e.beforeSubmit);Pc.current=e.beforeSubmit;const Za=ae(async N=>{if(!xr.current||St.current)return;St.current=!0,xr.current=!1;const Q=dt.current,$=rt.current,be=nn.current,fe=Ln.current,Ee={accepted:!1};qn.current=Ee;const de=()=>!Ee.accepted||It.current&&fe===Ln.current&&rt.current.enabled&&rt.current.walletScope===$.walletScope,ze=sn=>(...Pt)=>{de()&&sn(...Pt)},Tt={...Q,execution:{...Q.execution,onProgress:ze(Q.execution.onProgress)},ui:{setError:ze(Q.ui.setError),setStep:ze(Q.ui.setStep),setStatusMsg:ze(Q.ui.setStatusMsg),setTxHash:ze(Q.ui.setTxHash),setIsExecuting:ze(Q.ui.setIsExecuting),setShowStatusPanel:ze(Q.ui.setShowStatusPanel),setPaymentResult:ze(Q.ui.setPaymentResult)}},yt=Tt.feeQuote,Go=yt?.fundingSource,Yn=JSON.stringify(Go,(sn,Pt)=>typeof Pt=="bigint"?Pt.toString():Pt),Bn=JSON.stringify([yt?.sourceAllocation,yt?.feeSourceAllocation,yt?.fundingPlan,yt?.externalGasReserve],(sn,Pt)=>typeof Pt=="bigint"?Pt.toString():Pt),Do=Nc.current,sr=bn.current,ir={operationKey:$.key,feeQuote:yt,selectedAsset:Tt.selectedAsset};Lt(!0),Mn(null);const Kt=za.current.revision;Ha.current={scope:De,revision:Kt};const Ot={scope:De,version:be};rn.current=Ot;try{try{const sn="The original action status is pending or unavailable. Check its status before submitting.";if(!await po(void 0,!0))throw new Error(sn);await Pc.current?.(ir);const Pt=za.current;if(Pt.scope!==De||Pt.loading||Pt.error)throw new Error(Pt.error??sn);if(Pt.revision!==Kt&&Pt.updatedAt&&(Ha.current={scope:De,revision:Pt.revision},!await po(Pt.actions,!0)))throw new Error(sn);const hn=za.current;if(hn.scope!==De||hn.loading||hn.error||hn.revision!==Kt&&hn.actions.some(Cn=>Cn.intents.length!==1||Ht.current.scope!==De||!Ht.current.terminal.has(Cn.actionId)))throw new Error(hn.error??sn);const mo=rt.current,kr=dt.current;if(!It.current||be!==nn.current||!mo.enabled||mo.key!==$.key||mo.owner!==$.owner||!_t.current||kr?.feeQuote!==yt||yt?.fundingSource!==Go||JSON.stringify(yt?.fundingSource,(Cn,at)=>typeof at=="bigint"?at.toString():at)!==Yn||JSON.stringify([yt?.sourceAllocation,yt?.feeSourceAllocation,yt?.fundingPlan,yt?.externalGasReserve],(Cn,at)=>typeof at=="bigint"?at.toString():at)!==Bn)throw new Error("The wallet, policy or accepted action quote changed. Review again before submitting.");Tt.validateFeeQuote?.(),Do?.(),pn.current=Tt.onSuccess,ce.current={key:$.key,quote:yt,scope:De,routedExternal:oe}}catch(sn){const Pt=Wn(sn,"Unable to prepare this action");It.current&&(Mn(Pt),tn("idle")),sr?.(new Error(Pt),Hr(Pt));return}finally{rn.current===Ot&&(rn.current=null)}await(N?Au(Tt):Cu(Tt))}finally{qn.current===Ee&&(St.current=!1,It.current&&Lt(!1))}},[po,De,oe]),Uc=ae(()=>Za(!1),[Za]),Xa=L,Js=D,Wc=!$t.current?.quote.fundedFeeToken&&(I||!!Gt)&&!!Vn&&Vn.netAmount===0n,ca=Ae(()=>!!e.feeOnlyAction||b&&So>0||(!!P?.asset||!!e.actionProceeds)&&So>0,[P,So,e.actionProceeds,e.feeOnlyAction,b]),rr=Ae(()=>!A||!ca||!P?.asset&&!e.actionProceeds&&!e.feeOnlyAction&&!b?null:[Un,gt,b?Vt:"",x?`${st}:${$e?.scope===st?JSON.stringify($e.balances,(N,Q)=>typeof Q=="bigint"?Q.toString():Q):"pending"}`:"",T?"pay":"supply",p,P?Ie(P.asset):"sdk-funded",e.actionInput?.map(N=>`${N.token.toLowerCase()}:${N.amount}`).join(",")??"",e.feeFunding?.join(",")??"",e.quoteOnlyAccount??"executable",e.quotedInclusivePlatformFee?"quoted-inclusive-fee":"split-inclusive-fee",JSON.stringify(F?.rpcOverrides),F?.apiUrl,e.recipient,P?.asset.address.toLowerCase(),P?.asset.chainId,P?.amount,r,h.address.toLowerCase(),h.chainId,E,qt.resolvedTokenIn?.toLowerCase()??"",qt.quoteKey,qt.needsSwap?"swap":"direct",qt.isDirect?"direct-token":"routed-token","7702",Be?"source-dest":"cross-chain",qt.isQuoting?"quoting":"quoted",qt.exactOutputSwap?.amountIn?.toString()??"",qt.exactOutputSwap?.amountInMax?.toString()??"",qt.exactOutputSwap?.venue??"",qt.resolvedSwap?.amountOut?.toString()??"",qt.quoteAmountOut?.toString()??"",qt.sourceSwap?.amountOutMinimum?.toString()??"",qt.sourceExactOutputSwap?.amountInMax?.toString()??"",qt.pivot?.source.address.toLowerCase()??"",pe??"",ve??"",q??""].join("|"),[A,x,st,$e,Un,b,Vt,gt,e.actionProceeds,e.feeOnlyAction,e.actionInput,e.feeFunding,e.quotedInclusivePlatformFee,e.quoteOnlyAccount,ct,en,ca,Xa,P,T,p,r,h,E,qt,M,Be,pe,ve,q]),Lc=(N,Q)=>{const $=Q.filter(be=>be.location==="rollup"&&Pa(be,jt,v));for(const be of N){if(be.location!=="embedded")continue;const fe=Fr(be.chainId);for(const Ee of $){const de=Object.entries(Ee.chainTokens??{}).filter(([ze])=>Jn(ze)?.chainId===be.chainId);if(de.length&&(de.length!==1||!G(Jn(de[0][0])?.address,fe?.address)||de[0][1].decimals!==void 0&&de[0][1].decimals!==fe?.decimals))throw new Error("The source funding receipt mapping changed. Refresh before submitting.")}}},Ja=ae(async(N,Q)=>{if(!b||!C.token||!jt||Z)throw new Error(Z??"The account funding route is not ready.");if(Ve.some($=>$.location==="rollup"&&($e?.scope!==st||$e.balances[Ie($)]===void 0)))throw new Error("The cash reservations are unavailable. Refresh before submitting.");return Lc(Dt.map($=>$.asset),lt),Bu({owner:jt,token:v,budget:N,sources:Dt,destinationToken:h,beneficiary:e.recipient,buildActionCalls:se,requestTimestampMs:Date.now(),signal:Q,resolveSourceInput:($,be,fe)=>Ua({chainId:$.chainId,recipient:jt,tokenIn:ft($.address),tokenOut:be.address,amountIn:fe,liquidityVenues:F?.liquidityVenues,maxSlippage:e.maxSlippage}),resolveSourceOutput:($,be,fe)=>Lu({chainId:$.chainId,recipient:jt,tokenIn:ft($.address),tokenOut:be.address,amountOut:fe,liquidityVenues:F?.liquidityVenues,maxSlippage:e.maxSlippage}),resolveDestinationInput:$=>Ua({chainId:v.chainId,recipient:jt,tokenIn:v.address,tokenOut:h.address,amountIn:$,liquidityVenues:F?.liquidityVenues,maxSlippage:e.maxSlippage,resolveInputSwap:e.resolveInputSwap}),estimate:X})},[b,C.token,jt,Z,v,Dt,Ve,lt,$e,st,h,e.recipient,se,F?.liquidityVenues,e.maxSlippage,e.resolveInputSwap,X]),Cp=Ae(()=>{if(!b||!C.token||Ge||Qe)return;const N=new Set(JSON.parse(vt));if(lt.some($=>N.has(Ie($))&&($.balanceStatus==="stale"||!!$.balanceError)))return;let Q=0;for(const $ of Ve){const be=$.location==="rollup"?$e?.scope===st?$e.balances[Ie($)]:void 0:$.balance;if(be===void 0)return;if(be===0n)continue;const fe=Number(Me($.balance,$.decimals)),Ee=Number(Me(be,$.decimals));if($.priceStatus!=="fresh"||!Number.isFinite($.balanceUsd)||$.balanceUsd<=0||!Number.isFinite(fe)||fe<=0)return;Q+=$.balanceUsd*Ee/fe}if(!(!Number.isFinite(Q)||Q<0||Q>=1e15))return Rn(Q.toFixed(v.decimals),v.decimals)},[b,C.token,Ge,Qe,vt,lt,Ve,$e,st,v.decimals]),Ap=ae(async()=>{if(!b||!A||D||Z)return null;const N=rt.current;try{const Q=await Ja("max");return!It.current||!rt.current.enabled||rt.current.key!==N.key||rt.current.owner!==N.owner?null:Q.fundingPlan?Me(Q.fundingPlan.totalBudget,v.decimals):null}catch{return null}},[b,A,D,Z,Ja,v.decimals]),la=ae(async(N,Q,$)=>{if(b)return Ja(Rn(r,v.decimals),N);if(L){if(!_||!P)throw new Error("Connect the external wallet before continuing.");return Ch({selectedAsset:Q?.selectedAsset??P,destinationToken:h,paymentAmount:T?r:void 0,account:_,beneficiary:e.recipient,buildActionCalls:se,feeExecutionMode:c})}const be={...$??{...br,selectedAsset:sa},requestTimestampMs:Date.now()};if(x&&P&&bt(P.asset)&&!At)throw new Error("The combined source balance and reservations are unavailable. Refresh before submitting.");const fe={combineSourceBalances:x,combinedSourceGroup:At,getCombinedSourceGroup:it,signal:N,feeToleranceBps:U,externalGasRecipient:oe?_:void 0,externalGasCalls:oe?async de=>(await Su({quote:de,recipient:_,beneficiary:e.recipient,chainId:h.chainId,token:h.address,feeExecutionMode:c,buildCalls:s})).calls:void 0,feeOnlyAction:e.feeOnlyAction,actionInput:e.actionInput,actionProceeds:Jd(e.actionProceeds),actionProceedsCandidates:e.actionProceeds&&e.actionProceeds!=="output"&&!("token"in e.actionProceeds)?e.actionProceeds.resolve:void 0,feeFunding:e.feeFunding,feeFundingBalances:Dn,feeFundingError:Qe,feeFundingReserve:e.feeFundingReserve,liquidityVenues:F?.liquidityVenues,maxSlippage:e.maxSlippage,resolveExactOutputSwap:d,selectedAsset:sa,isPayMode:T,isFeeInclusiveInput:I,quotedInclusivePlatformFee:e.quotedInclusivePlatformFee,parsedAmount:no?Number(sa.amount):So,needsSwap:qt.needsSwap,exactOutputSwap:qt.exactOutputSwap,isNon7702:M,isSourceDestToken:Be,currentPaymentAmount:r,destinationToken:h,feeExecutionMode:c,resolvedTokenIn:qt.resolvedTokenIn,embeddedWalletAddress:pe,providerEmbeddedAddress:ve,resolvedChainId:E,isConnected:z,address:q,ready:te,authenticated:Y,quoteOnly:!!e.quoteOnlyAccount,isDirect:qt.isDirect,resolvedSwap:qt.resolvedSwap,sourceSwap:qt.sourceSwap,sourceExactOutputSwap:qt.sourceExactOutputSwap,pivot:qt.pivot,isQuoting:qt.isQuoting,executionTokenAddress:ia,buildPayChainBatches:de=>na(be,de),buildSupplyChainBatches:de=>Ms(be,de),estimate:X,...Q},Ee=!fe.feeOnlyAction&&fe.selectedAsset&&Wt&&(fe.selectedAsset.asset._source==="wallet"||!!fe.combinedSourceGroup)&&fe.selectedAsset.asset.chainId===E;if(Wt&&!fe.feeOnlyAction&&fe.selectedAsset&&!Ee&&e.feeFunding&&e.feeFunding.join(",")!==Ns.join(","))throw new Error("Fee-source overrides require a wallet source on the action chain.");if(Ee&&yn&&!y){const de=await Ho(fe);if(de&&de.preview.gasFee+de.preview.spicenetFee+(de.preview.bridgeFee??0n)>0n)return de}return Ee||Wt&&e.actionProceeds==="output"?du(fe,be,Ho,e.actionProceeds==="output"):Ho(fe)},[b,Ja,v.decimals,P,e.quoteOnlyAccount,Wt,yn,y,x,At,it,bt,sa,no,L,oe,s,_,e.recipient,se,e.feeOnlyAction,e.actionInput,e.actionProceeds,e.feeFunding,e.quotedInclusivePlatformFee,Dn,Qe,e.feeFundingReserve,e.maxSlippage,d,U,F?.liquidityVenues,T,I,So,qt,M,Be,r,h,c,pe,ve,br,X,E,z,q,te,Y,ia]);he(()=>{Pn.current=la},[la]);const $s=ae(async N=>{if(T)return null;if(!P||Ie(N)!==Ie(P.asset)||!jt||!oo)throw new Error("Select a source before calculating Max.");let Q=ie(N);if(Q===void 0)throw new Error("This source is unavailable.");if(L){if(!N.isNative&&!Te(N.address))return Me(Q,N.decimals);const $=Rt(N.chainId),be=_;let fe=Q;for(let Ee=0;Ee<8;Ee++){const de=await la(void 0,{selectedAsset:{asset:N,amount:Me(Ee===0?1n:fe,N.decimals)}});if(!de?.actionDefinition)throw new Error("The direct action could not be sized.");const ze=await Ou({client:$,account:be,calls:de.actionDefinition.calls}),Tt=Q>ze?Q-ze:0n;if(Tt===0n)return"0";if(Ee>0&&fe<=Tt)return Me(fe,N.decimals);fe=Tt}throw new Error("Network gas could not be reserved for Max. Enter a smaller amount.")}if(V&&(N.isNative||Te(N.address))){if(!_)throw new Error("Connect the source wallet before calculating Max.");const $=await Ru({client:Rt(N.chainId),account:_,recipient:jt,token:N.address,isNative:!0,amount:1n});Q-=$}return y&&I&&N._source==="wallet"&&N.chainId===E?Me(Q>0n?Q:0n,N.decimals):gu({balance:Q,decimals:N.decimals,planForAmount:async $=>{const be={...br,requestTimestampMs:Date.now(),selectedAsset:{asset:N,amount:Me($,N.decimals)}};let fe=$;Gt?(be.sourceSwap=await Ua({chainId:N.chainId,recipient:jt,tokenIn:N.address,tokenOut:Gt.source.address,amountIn:$,maxSlippage:e.maxSlippage,liquidityVenues:F?.liquidityVenues,resolveInputSwap:e.resolveInputSwap}),fe=on(be.sourceSwap.amountOutMinimum,Gt.source.decimals,Gt.destination.decimals,"floor")):fe=An($,N.decimals,await qo(N,oo,E,h)),be.resolvedSwap=jo?await be.resolveInputSwap(fe):null,be.swapInputAmount=fe,be.quoteAmountOut=be.resolvedSwap?.amountOut??fe;const Ee=Wt&&N._source==="wallet"&&N.chainId===E,de=await la(void 0,{selectedAsset:be.selectedAsset,...Ee?{isFeeInclusiveInput:!0}:{},parsedAmount:Number(be.selectedAsset.amount),sourceSwap:be.sourceSwap,resolvedSwap:be.resolvedSwap,isQuoting:!1,buildSupplyChainBatches:ze=>Ms(be,ze)},be);return Ee&&de?.fundingSource?.kind==="input"&&!I?{...de,sourceSpendCap:$+($-de.swapInputAmount)}:de}})},[P,Wt,y,br,T,L,jt,oo,E,h,V,_,Gt,jo,la,ie,e.maxSlippage,e.resolveInputSwap,e.actionProceeds,e.feeFunding,e.quotedInclusivePlatformFee,I,F?.liquidityVenues]),Sp=JSON.stringify([ro,or,Ct,P?.asset,e.feeFundingReserve,e.actionExecution?.recoveryKey,jo,oo,Gt,A,Z,D],(N,Q)=>typeof Q=="bigint"?Q.toString():Q),qc=J($s);Po(()=>{qc.current=$s},[$s]);const zc=ae(N=>qc.current(N),[Sp,se,l,d,e.resolveInputSwap,typeof e.actionProceeds=="object"?e.actionProceeds.resolve:void 0,X]);Di({shouldRun:A&&!ct&&en==="idle"&&(ca||no)&&!qt.isQuoting&&!Ye&&(!!rr||no),deps:[A,ct,en,ca,Xa,qt.isQuoting,rr,Ye,no,ro],onSkip:()=>{if(!A){to.current=null,_e(!1),kn(!1),Qn(null),mn(null);return}if(ct||en!=="idle"){_e(!1);return}if(!ca){mn(null),_e(!1),kn(!1),Qn(null);return}qt.isQuoting&&(_e(!1),kn(!1))},onCleanup:()=>_e(!1),delayMs:qt.needsSwap||qt.pivot?0:100,backgroundIntervalMs:3e4,run:async({isBackground:N,isCurrent:Q,signal:$})=>{if(no){const fe=to.current;if(fe?.scope===ro&&Date.now()-fe.at<3e4||Fn.current?.scope===ro&&Date.now()-Fn.current.at<3e4)return;Fn.current?.controller.abort();const Ee=new AbortController,de=Pn.current?.(Ee.signal).then(ze=>{Ee.signal.aborted||Mc.current!==ro||!ze?.feeEstimate||(to.current={scope:ro,at:Date.now(),feeEstimate:ze.feeEstimate,sourceGasSkim:ze.sourceGasSkim})}).catch(ze=>{Ee.signal.aborted||console.debug("[SpiceSupply] fee prewarm unavailable:",ze)})??Promise.resolve();Fn.current={scope:ro,at:Date.now(),controller:Ee,promise:de},await de;return}const be=rr;N||(Qn(null),_e(!0));try{if(Fn.current?.scope===ro&&await Fn.current.promise,$.aborted||!Q())return;const fe=to.current,Ee=!T&&fe?.scope===ro&&Date.now()-fe.at<3e4?fe:void 0;let de;try{de=await Pn.current?.($,Ee?{initialFeeEstimate:Ee.feeEstimate,initialSourceGasSkim:Ee.sourceGasSkim}:void 0)}catch(ze){if(!Ee||$.aborted||!Q())throw ze;de=await Pn.current?.($)}if(!Q())return;if(de&&be){const ze=oe?await Su({quote:de,recipient:_,beneficiary:e.recipient,chainId:h.chainId,token:h.address,feeExecutionMode:c,buildCalls:s}):void 0;if(ze&&de.externalGasReserve?.nativeAmount&&(ze.calls.length>de.externalGasReserve.currentTransactions||ze.calls.reduce((Tt,yt)=>Tt+yt.value,0n)>de.externalGasReserve.currentValue))throw new Error("The external action gas requirement changed. Refresh the quote.");if($.aborted||!Q())return;$t.current={key:be,quote:de,externalAction:ze},de.feeEstimate&&(to.current={scope:ro,at:Date.now(),feeEstimate:de.feeEstimate,sourceGasSkim:de.sourceGasSkim}),mn(de.preview),kn(!0)}else $t.current=null,mn(null),kn(!1);Qn(null)}catch(fe){if(!Q())return;if(N&&$t.current?.key===be){console.warn("[SpiceSupply] fee refresh failed:",fe);return}const Ee=Wn(fe,"Unable to calculate fees for this action.");$t.current=null,mn(fe instanceof Ws?fe.preview:null),kn(!1),Bo.current=be,Qn(Ee)}finally{Q()&&_e(!1)}}});const Hc=ae(()=>Za(!0),[Za]);he(()=>{if(!je||tr.current===je)return;tr.current=je;const N=pn.current;gr.current=!0,Ue(!0),Nr(null),Promise.resolve().then(()=>N?.(je)).then(()=>{Vo(je),Ne(),Ce()}).catch(Q=>{Nr(`Transaction confirmed; application update needs retry: ${Wn(Q,"Unable to finalize the action")}`)}).finally(()=>{gr.current=!1,Ue(!1)})},[je,Nt]);const Vc=pt&&!Co,Ep=ae(()=>{!jn.current||gr.current||(tr.current=null,Xe(N=>N+1))},[]),Fp=ae(()=>{if(jn.current)return;const N=ce.current?.progress;N?.submissionStatus==="unknown"||N?.actionId&&N.step!=="success"||(In(!1),En(null),ko.current=!1,Ne(),Ce())},[Ne,Ce]),Ke=rr&&$t.current?.key===rr?$t.current.quote:null,vr=Ke?$t.current?.externalAction:void 0,Tp=nn.current,Ir=(N=!0)=>{if(Z)throw new Error(Z);if(!It.current||!rt.current.enabled||rt.current.key!==Un||nn.current!==Tp||rt.current.walletScope!==or||!rt.current.policyAvailable)throw new Error("The source, amount, beneficiary or configuration changed. Review the form before continuing.");if(oe&&!rt.current.externalSignerReady)throw new Error("Connect the external wallet before funding.");const Q=Ke?.externalGasReserve?.fundingSource;if(N&&Q){const $=rt.current.physicalAssets.find(be=>Ie(be)===Ie(Q.asset));if(!$||$.balanceError||$.balanceStatus||$.balance<Q.amount||$._source!=="wallet"||jr($)||$.owner&&!G($.owner,rt.current.owner))throw new Error("The gas reserve source balance changed. Refresh the quote before submitting.")}if((P||e.feeOnlyAction||b)&&!Ke)throw new Error("A current action plan is required. Refresh the quote before submitting.");if(N&&Ke?.fundingPlan){const $=Ke.fundingPlan;if(Lc($.sources.map(Ee=>Ee.asset),rt.current.physicalAssets),!G($.owner,rt.current.owner)||!G($.token.address,v.address)||$.token.chainId!==v.chainId||$.token.decimals!==v.decimals||$.totalBudget!==Rn(r,v.decimals))throw new Error("The accepted account funding plan changed. Review again.");for(const Ee of Ke.batches??[])if(!(Ee.domain!=="spicenet"&&!Wo(Ee.chainId)))for(const de of Ee.calls){const ze=Zn({abi:ds,data:de.data});if(ze.functionName!=="createWithdrawalRequest"||ze.args[0].exp<=BigInt(Math.floor(Date.now()/1e3)))throw new Error("The accepted withdrawal expired. Refresh before funding this purchase.")}const be=new Set(JSON.parse(vt)),fe=new Set;for(const Ee of $.sources){const de=rt.current.physicalAssets.find(Tt=>Ie(Tt)===Ee.positionId),ze=de?.location==="rollup"?rt.current.combinedCash?.scope===rt.current.combinationScope?rt.current.combinedCash.balances[Ee.positionId]:void 0:de?.balance;if(!de||fe.has(Ee.positionId)||!be.has(Ee.positionId)||!Pa(de,$.owner,$.token)||!To(de,"spend-source",{...F,isWhitelistGateActive:B},v,S).eligible||de.chainId!==Ee.chainId||de.decimals!==Ee.decimals||!G(de.address,Ee.token)||!G(Ee.owner,$.owner)||Ee.sourceSpendCap<=0n||ze===void 0||Ee.sourceSpendCap>ze)throw new Error("A funding source balance, owner or policy changed. Review again.");fe.add(Ee.positionId)}if(!fe.size)throw new Error("The accepted funding sources are unavailable.")}if(N)for(const $ of[Ke?.sourceAllocation,Ke?.feeSourceAllocation]){if(!$)continue;const be=$.positions.find(Ee=>Ee.asset.location==="rollup"),fe=rt.current.combinedCash?.balances[be.positionId];if(fe===void 0||rt.current.combinedCash?.scope!==rt.current.combinationScope)throw new Error("The combined source reservations are unavailable. Refresh before submitting.");Ds($,rt.current.physicalAssets,rt.current.owner??void 0,E,fe)}if(L&&P?.asset.owner&&!G(P.asset.owner,_))throw new Error("Reconnect the external wallet that owns the selected asset.");if(N&&P&&(Ke?.sourceSpendCap??0n)>rt.current.sourceBalance)throw new Error("The source balance changed. Review the available amount before continuing.");if(N&&P&&!rt.current.sourceEligible)throw new Error(ee?.reason??"This source is unavailable.");if(N)for(const $ of[Ke?.sourceAllocation,Ke?.feeSourceAllocation])$&&Ds($,rt.current.physicalAssets,rt.current.owner??void 0,E)},Qc=async()=>{if(Ir(),Ke?.fundingPlan){const Q=Ke.fundingPlan;for(const $ of Q.sources){if($.asset.location!=="rollup")continue;const be=await er(Q.owner,Q.token.chainId,Q.token.address);if(Ir(),!be.entries.some(fe=>fe.receiptToken===$.asset.receiptTokenId&&fe.decimals===$.asset.receiptTokenDecimals)||on(be.available,Q.token.decimals,$.decimals,"floor")<$.sourceSpendCap)throw new Error("The cash receipt balance or reservations changed. Review again.")}return}const N=Ke?.sourceAllocation;for(const Q of[N,Ke?.feeSourceAllocation]){if(!Q)continue;const $=await er(Q.owner,Q.chainId,Q.token);Ir();const be=await Rt(Q.chainId).readContract({address:Q.token,abi:ut,functionName:"balanceOf",args:[Q.owner]});Ir();const fe=rt.current.physicalAssets.map(de=>de.location==="embedded"&&Ie(de)===Q.positions.find(ze=>ze.asset.location==="embedded")?.positionId?{...de,balance:be}:de),Ee=Q.positions.find(de=>de.asset.location==="rollup");if(!$.entries.some(de=>de.receiptToken===Ee.asset.receiptTokenId&&de.decimals===Ee.asset.receiptTokenDecimals))throw new Error("The cash receipt mapping changed. Refresh before submitting.");Ds(Q,fe,Q.owner,Q.chainId,on($.available,Q.decimals,Ee.asset.decimals,"floor"))}if(!N){const Q=P?.asset.location==="rollup"?P.asset:Ke?.fundingSource?.asset?.location==="rollup"?Ke.fundingSource.asset:void 0;if(!x||!Q)return;const $=lo(Q,E);if(!$)throw new Error("The cash receipt mapping is unavailable. Refresh before submitting.");const be=await er(jt,E,$),fe=await qo(Q,$,E,h);Ir();const Ee=Ke?.fundedFeeToken&&Ke.fundingSource?.asset?.location==="rollup"?on(Ke.grossFundingAmount??0n,Ke.fundedFeeToken.decimals,Q.decimals,"ceil"):Ke?.sourceSpendCap??0n;if(!be.entries.some(de=>de.receiptToken===Q.receiptTokenId&&de.decimals===Q.receiptTokenDecimals)||on(be.available,fe,Q.decimals,"floor")<Ee)throw new Error("The cash balance or reservations changed. Refresh before submitting.");return}},da=async()=>Qc(),jc=N=>({...N,sourceSpendCap:Ke?.sourceSpendCap,minimumDestinationAmount:Ke?.destinationAmount}),$a=Ke?.sourceAllocation?.insufficient||Ke?.feeSourceAllocation?.insufficient?!0:P&&Ke?.sourceSpendCap!==void 0?Ke.sourceSpendCap>Ze:kp,Gc={...br,resolvedSwap:Ke?.destinationSwap??br.resolvedSwap,swapInputAmount:Ke?.swapInputAmount??br.swapInputAmount};let Ur=!1;dt.current={selectedAsset:P,parsedAmount:So,currentPaymentAmount:r,isInsufficientBalance:$a,isPayMode:T,isFeeInclusiveInput:I,quotedInclusivePlatformFee:e.quotedInclusivePlatformFee,feeOnlyAction:e.feeOnlyAction,actionProceeds:Jd(e.actionProceeds,Ke?.fundingSource?.kind==="proceeds"?Ke.fundingSource.token:void 0),validateFeeQuote:()=>Ir(!Ur),isNon7702:M,directExternalAction:L,isSourceDestToken:Be,needsSwap:jo,exactOutputSwap:ja,selectedIsEquivalent:bp,resolvedTokenIn:oo,sourceSwap:Ga,sourceExactOutputSwap:Ka,pivot:Gt,embeddedWalletAddress:pe,providerEmbeddedAddress:ve,externalWallet:ge,externalWalletAddress:_,activeSignerWallet:Se,activeSignerAddress:ne,address:q,isConnected:z,ready:te,authenticated:Y,provider:j,resolvedChainId:E,executionTokenAddress:ia,destinationToken:h,buildActionCalls:se,feeExecutionMode:c,feeToleranceBps:U,buildSpicenetBatch:l,onPayExecute:u,onSuccess:w,feeQuote:Ke,execution:{estimate:(N,Q,$,be)=>X(N,Q,$,{...be,userOverride:jt}),execute:async(N,Q,$,be,fe,Ee)=>{const de=Ln.current,ze=qn.current;let Tt;const yt=be;if(be=Ot=>{Ot.actionId&&(ze.accepted=!0,Tt=Ot.actionId),yt?.(Ot)},!fe){const Ot=new AbortController;me.current=Ot,fe=Ot.signal}const Go=fe,Yn=()=>It.current&&rt.current.enabled&&rt.current.walletScope===or&&Ln.current===de&&!Go.aborted,Bn=()=>new we("ABORT","Execution observation retired"),Do=async Ot=>{if(ze.accepted&&!Yn())throw Bn();return new Promise((sn,Pt)=>{const hn=()=>{ze.accepted&&Pt(Bn())};Go.addEventListener("abort",hn,{once:!0}),Ot().then(mo=>{!ze.accepted||Yn()?sn(mo):Pt(Bn())},Pt).finally(()=>Go.removeEventListener("abort",hn))})},sr=async()=>Ur?Ir(!1):Qc();if(await da(),await pu(Ke?.externalGasReserve),oe&&!vr)throw new Error("The external action plan is unavailable.");if(L){if(!Ke?.actionDefinition)throw new Error("The direct action plan is unavailable.");return cc({definition:Ke.actionDefinition,account:_,chainId:h.chainId,wallet:ge,assertCurrent:da})}const ir=new Cr;if(ir.setBaseUrl(Et),oe&&!await ir.supportsExternalExecution())throw Error("This API cannot yet record the external wallet action. No source funds were sent.");let Kt=!1;try{V&&P&&(Qt("Transfer the selected source to your embedded wallet"),await Du({asset:P.asset,embedded:jt,external:_,externalWallet:ge,amount:Ke?.sourceSpendCap??0n,assertCurrent:da,observer:{onSending:()=>{Kt=!0},onRejected:()=>{Kt=!1},onReverted:()=>{Kt=!1}}}),Ur=!0,await sr()),ce.current?.scope===De&&(ce.current.batches=N.map(at=>({...at})));const Ot=[N,Q,$,oe?at=>be?.(at.step==="success"?{...at,step:"executing",message:"Funds delivered. Confirm the action in your external wallet.",txHash:void 0}:{...at,txHash:void 0}):be,fe,{...Ee,userOverride:jt,requireDestinationReceipt:!0,...oe?{externalExecution:{chainId:h.chainId,executor:_,inputToken:h.address,inputAmount:vr.amount.toString(),recoveryKey:e.actionExecution.recoveryKey,calls:vr.calls.map(at=>({to:at.to,data:at.data,value:at.value.toString()}))}}:{},resolveActionOutputCredits:async()=>[...await Ee?.resolveActionOutputCredits?.()??[],...Ke?.actionOutputCredits??[],...Ke?.fundingPlan?.sources.flatMap(at=>at.asset.location==="embedded"&&at.swap?[{chainId:at.chainId,token:at.pivotToken.address,amount:at.amountOutMinimum}]:[])??[],...Ke?.externalGasReserve?.nativeAmount&&!Te(Ke.externalGasReserve.fundingSource?.token??ia)?[{chainId:E,token:Zt,amount:Ke.externalGasReserve.nativeAmount}]:[]],walletFundingRequirements:Ke?oc(Ke,P):void 0,validateBeforeSubmit:async at=>{if(await sr(),await pu(Ke?.externalGasReserve,at),await Ee?.validateBeforeSubmit?.(at),oe&&Eu(at,h.address,h.chainId,_)!==vr.amount)throw new Error("The external delivery changed. Review the quote before continuing.")}}],sn=()=>K(...Ot);let Pt,hn=0;for(;;)try{Pt=await Do(sn);break}catch(at){if(ze.accepted&&!Yn())throw Bn();if(!(at instanceof we)||at.context.submissionStatus!=="accepted"||at.code==="ON_CHAIN_REVERT"||at.code==="ABORT")throw at;ze.accepted=!0,be?.({step:"executing",message:"Your action was accepted. Confirming the original transaction...",actionId:at.context.actionId,intentId:at.context.intentId}),await Do(()=>xo(Math.min(1e3*2**Math.min(hn++,5),3e4)))}if(!oe)return Pt;Ur=!0;const mo=async()=>{if(fe?.aborted)throw new Error("Execution transaction aborted");await sr()};if(await mo(),await Nh({hash:Pt,token:h.address,chainId:h.chainId,recipient:_,sender:jt,amount:vr.amount}),await mo(),!Tt)throw Error("The original external action identity is unavailable. Check its status before continuing.");const kr=await cc({definition:vr,account:_,chainId:h.chainId,wallet:ge,assertCurrent:mo,originalAction:{actionId:Tt,service:ir}}),Cn=ce.current;return Cn?.scope===De&&Cn.progress&&(Cn.progress={...Cn.progress,step:"success",txHash:kr,message:"Transaction confirmed"},Dc(Cn.progress)),kr}catch(Ot){const sn=Ot instanceof we&&(Ot.context.submissionStatus==="unknown"||Ot.context.submissionStatus==="accepted");throw It.current&&rt.current.enabled&&Ln.current===de&&rt.current.walletScope===or&&(sn||Ur||Kt)&&Oo(Xs),Kt&&!Ur?new we("SUBMISSION_UNKNOWN","The wallet transfer outcome is unknown. Close this action and check your activity and balances before continuing.",{submissionStatus:"unknown",cause:Ot}):(Wn(Ot),Ot)}},buildPayChainBatches:async N=>Ps(await na(Gc,jc(N)),Ke?.externalGasReserve),buildSupplyChainBatches:async N=>Ps(await Ms(Gc,jc(N)),Ke?.externalGasReserve),onProgress:Dc},ui:{setError:zt,setStep:tn,setStatusMsg:Qt,setTxHash:Ut,setIsExecuting:wt,setShowStatusPanel:In,setPaymentResult:En},refs:{spiceDepositSubmittedRef:ko,abortControllerRef:me}};const Wr=!!e.isZeroAmountPay&&!e.feeOnlyAction&&T&&So===0,Op=b?So>0&&!!Ke?.fundingPlan&&!!Ke.batches?.length&&!ct&&Nn&&!uo&&!Js:T?(Wr||!!P?.asset||!!e.actionProceeds||!!e.feeOnlyAction)&&So>=0&&!$a&&!ct&&(Wr||Xa||Nn)&&!uo&&(Wr||e.feeOnlyAction||!jo||!!ja)&&(Wr||e.feeOnlyAction||!Gt||!!Ka)&&!Js:!!P?.asset&&So>0&&!$a&&!ct&&(L||Nn)&&!uo&&!Wc&&(Gt?!!Ga&&!Oc&&(Rc||!!Qa):vp||Rc||!!Qa&&!Oc)&&!Js,Kc=!e.quoteOnlyAccount&&(L||te&&Y&&z&&!!q)&&!Z&&!Ya&&!!jt&&(!oe||!!vr&&!!ge&&!!_)&&(!L||!!ge&&(!P?.asset.owner||G(P.asset.owner,_)))&&(O==="7702"||!!_)&&!pt&&!re&&!Co&&A&&Op&&(Wr||b&&!!Ke?.fundingPlan||!P&&(!!e.actionProceeds||!!e.feeOnlyAction)||!!ee?.eligible)&&!(je&&ce.current?.key===Un)&&!Pr.quoteError&&(Wr||!!rr&&$t.current?.key===rr);_t.current=Kc;const Bp=Kc&&yp&&!e.submitDisabled&&!Je&&!St.current,ua=ae(async()=>{if(rt.current.quoteOnly||St.current||jn.current)return;const N=ce.current?.scope===De?ce.current:void 0,Q=Mt.scope===De?Mt.externalActionId??(N?.routedExternal?N.progress?.actionId:void 0):void 0;if(!Q||!ge||!_||!e.actionExecution)return;const $=Ln.current,be=rt.current.walletScope,fe=()=>{if(!It.current||!rt.current.enabled||rt.current.quoteOnly||rt.current.walletScope!==be||Ln.current!==$||Jt.current!==De||!rt.current.policyAvailable)throw Error("The original action wallet or application scope changed. Check status before continuing.")};St.current=!0,xr.current=!1,wt(!0),In(!0),Mn(null),Qt("Checking your transaction and wallet balances...");const Ee=new Cr;Ee.setBaseUrl(Et);try{fe(),await Ce(),fe();const de=await Ee.getExternalExecution(Q);if(fe(),de.recoveryKey!==e.actionExecution.recoveryKey||de.chainId!==E||!G(de.executor,_))throw Error("The original external action belongs to another wallet, chain or application action.");const ze=await cc({definition:{amount:BigInt(de.inputAmount),context:{userAddress:_,executorAddress:_,chainId:de.chainId,destinationToken:de.inputToken},calls:de.calls.map(Tt=>({to:Tt.to,data:Tt.data,value:BigInt(Tt.value)}))},account:_,chainId:de.chainId,wallet:ge,assertCurrent:fe,originalAction:{actionId:Q,service:Ee,resume:!0}});fe(),pn.current=w,Ut(ze),tn("success"),Qt("Transaction confirmed"),En(Tt=>Tt&&{status:"success",txHash:ze}),N?.progress&&(N.progress={...N.progress,step:"success",txHash:ze,submissionStatus:void 0}),un(Tt=>({...Tt,scope:De,pending:!1,error:null,externalExecution:void 0,externalActionId:void 0}))}catch(de){if(It.current&&Jt.current===De){const ze=Wn(de,"Unable to continue the original wallet action");Mn(ze),tn("error"),bn.current?.(new Error(ze),Hr(ze))}}finally{St.current=!1,It.current&&Jt.current===De&&(wt(!1),await Qo())}},[Mt.scope,Mt.externalActionId,De,Et,ge,_,e.actionExecution?.recoveryKey,E,w,Qo,Ce]),ar=e.enabled!==!1&&!e.quoteOnlyAccount&&A&&!Z&&!pt&&!re&&!Co&&fo&&!!Mt.externalActionId&&!nr&&!ct&&!Je&&!!ge&&!!_&&!!e.actionExecution&&!!Mt.externalExecution&&Mt.externalExecution.executionMode!=="wallet-envelope"&&["unsubmitted","prepared","submitted","reverted"].includes(Mt.externalExecution.calls.find(N=>N.status!=="confirmed")?.status??""),Yc=(Bp||ar)&&!e.submitDisabled&&!St.current&&!jn.current;xr.current=Yc;const Zc=ae(async()=>{if(ar){xr.current&&await ua();return}await Uc(),ce.current?.routedExternal&&await Qo()},[ar,ua,Uc,Qo]),Xc=ae(async()=>{if(ar){xr.current&&await ua();return}await Hc(),ce.current?.routedExternal&&await Qo()},[ar,ua,Hc,Qo]),pa=ae(()=>{if(jn.current||Ya)return;const N=ce.current?.scope===De?ce.current.progress:void 0;if(Ao||nr||yr||N?.submissionStatus==="unknown"||N?.actionId&&N.step!=="success"){Qo();return}xr.current=!1,$t.current=null,kn(!1),Va.refreshQuote(),tn("idle"),zt(null),Qt(""),En(null),In(!1)},[Va.refreshQuote,zt,Ao,nr,yr,De,Qo,Ya]);he(()=>{je&&!pt&&!re&&!ct&&ce.current&&ce.current.key!==Un&&!Ao&&!nr&&!yr&&(pa(),Ut(null))},[je,pt,re,ct,Un,Ao,nr,yr,pa]);const Jc=J(Un);he(()=>{const N=Jc.current!==Un;Jc.current=Un,(N||ti($n))&&en==="error"&&!ct&&ce.current&&ce.current.key!==Un&&pa()},[Un,en,ct,$n,pa]);const Rp=ae(()=>{In(!1)},[]),Dp=ae(()=>{if(jn.current)return;const N=ce.current?.progress;N?.submissionStatus==="unknown"||N?.actionId&&N.step!=="success"||(tn("idle"),Ut(null),Ne())},[Ne]),an=Ke??($t.current?.key.startsWith(`${Un}|`)?$t.current.quote:null)??(ce.current?.key===Un?ce.current.quote:null),Mp=async N=>{if(e.quoteOnlyAccount)throw new Error("A preview cannot fund an action.");if(Ya)throw new Error("Check your activity and balances before funding another action.");if(L)throw new Error("This source executes directly from the external wallet; submit the action without embedded funding.");if(!(!V||!P)){if(!Ke||N!==Ke.sourceSpendCap)throw new Error("Use the displayed source funding maximum before preparing this action.");await da(),await Du({asset:P.asset,embedded:jt,external:_,externalWallet:ge,amount:N,assertCurrent:da})}};return{operationKey:Un,feeQuote:an,selectedAsset:Ft,capability:ee,assets:{getAvailableBalance:ie,fundingSources:Ve,selectable:xt,displayAssets:xt,filteredSpiceAssets:He,embeddedWalletAddress:pe,externalAddress:_,isNon7702:O!=="7702",refreshSpiceAssets:Ne,refreshWalletAssets:Ce,loading:Ge,refreshing:ke,error:Qe},quote:{...Pr,...no?{quoteKey:null,quoteExpiresAt:null,quoteError:null,isQuoting:!1,estimatedInput:null,estimatedOutput:null,quoteAmountOut:null,inputAmount:null,resolvedSwap:null,sourceSwap:null,exactOutputSwap:null,sourceExactOutputSwap:null}:{},hasSourceConversion:!!Gt,executionInput:Gt&&an?{address:Gt.destination.address,chainId:Gt.destination.chainId,decimals:Gt.destination.decimals,amount:an.preview.netAmount}:null,...an?.destinationSwap?{resolvedSwap:an.destinationSwap,inputAmount:an.swapInputAmount,estimatedOutput:Me(an.destinationSwap.amountOut,h.decimals)}:{},...an?.fundedFeeToken&&an.destinationAmount!==void 0?{estimatedOutput:Me(an.destinationAmount+(an.destinationSwap?an.destinationSwap.amountOut-an.destinationSwap.amountOutMinimum:0n),h.decimals)}:{}},fees:{externalGasReserve:an?.externalGasReserve,fundingConversion:an?.fundingConversion,fundingSource:an?.fundingSource,proceedsUsed:an?.proceedsUsed,fundingShortfall:an?.grossFundingAmount,source:Gt&&an?{address:Gt.source.address,chainId:Gt.source.chainId,symbol:Gt.source.symbol,decimals:Gt.source.decimals,gasFee:an.sourceGasSkim??0n,spicenetFee:0n}:null,destinationAmount:an?.destinationAmount,sourceSpendCap:an?.sourceSpendCap,preview:no?null:an?.preview??Vn,isLoading:!no&&(eo||Ye),ready:!no&&!!Ke,error:no||Ye||ht&&Bo.current!==rr?null:uo},amount:{availableBalance:b?Cp:Pe,sourceRequiredAmount:an?.sourceSpendCap??null,parsed:So,isInsufficientBalance:$a,sourceBalance:Ip,feesExceedAmount:Wc},status:{activity:On,pending:Ao,recoveryChecking:nr,recoveryError:yr,canResumeExternalAction:ar,canRetry:ar,actionId:Tn?.actionId??(fo?Mt.action?.actionId:void 0),intentId:Tn?.intentId??(fo?Mt.action?.intents[0]?.intentId:void 0),autoContinue:Tn?.autoContinue??(fo?Mt.action?.autoContinue:void 0),submissionStatus:Tn?.submissionStatus,idempotencyKey:Tn?.submissionStatus==="unknown"?Tn.idempotencyKey:void 0,user:Tn?.user??(fo?Mt.action?.user:void 0),finalizing:re||Vc,finalizationError:Co,step:pt&&en==="success"?"executing":en,statusMsg:ar?"Try again to finish with the funds already in your wallet.":nr?"Checking previous action status...":Ao?yr??"A previous transaction is still pending. Check its status before submitting again.":pt?Co??"Transaction confirmed. Updating application...":ln,txHash:tt,isExecuting:ct||Je||Vc,error:Z||Co||$n||ee?.reason||null,showStatusPanel:_n,paymentResult:pt&&Sn?.status==="success"?{...Sn,status:"processing"}:Sn},flags:{directExecutionFeeNote:Xa},retryFinalization:Ep,refreshStatus:Qo,resumeExternalAction:ua,fundEmbeddedSource:Mp,canExecute:Yc,submit:T?Xc:Zc,submitSupply:Zc,submitPay:Xc,retrySupply:pa,dismissPaymentStatus:Rp,resolveMaxAmount:zc,max:()=>b?Ap():P?zc(P.asset):Promise.resolve(null),resetAfterSuccess:Dp,resetPaymentState:Fp}}function Hh(e){const{asset:t,amount:n,recipient:o,owner:r,onSuccess:a}=e,i=!!t&&!!e.destination&&e.destination.chainId!==t.chainId,s=e.destination?.chainId??t?.chainId??e.sourceChains?.[0]??0,c=Ae(()=>cr(s).find(x=>x.equivalenceGroup==="USDC"),[s]),l=ae((x,C)=>{const v=!i&&x===0n?n:x;if(!t||n<=0n||n>t.balance||!i&&v>n||!o||!r||G(r,o))throw new Error("Enter a valid withdrawal amount and recipient.");if(C.chainId!==s||!G(C.executorAddress??C.userAddress,r))throw new Error("The withdrawal wallet or network changed. Review the withdrawal again.");if(i&&(!e.destination||e.destination.symbol!=="USDC"||x<=0n))throw new Error("A USDC withdrawal quote is required for this network.");return Bs(s,i?e.destination.address:t.address,[{recipient:o,amount:v}]).calls},[t?.address,t?.chainId,t?.balance,n,o,r,s,i,e.destination?.address,e.destination?.symbol]),u=Ae(()=>t?[{address:t.address,chainId:t.chainId,symbol:t.symbol,decimals:t.decimals,logoURI:t.logoURI}]:void 0,[t?.address,t?.chainId,t?.symbol,t?.decimals,t?.logoURI]),d=Wa({enabled:e.enabled&&!!c&&!!t&&n>0n&&!!o&&!!r&&!G(r,o),amountDirection:"input-inclusive",quotedInclusivePlatformFee:!0,feeFunding:Ns,destinationToken:e.destination??{address:t?.address??Zt,symbol:t?.symbol??"",decimals:t?.decimals??6,chainId:s},recipient:o,selectedAsset:t?{asset:t,amount:Me(n,t.decimals)}:null,additionalSourceTokens:u,sourceChains:e.sourceChains,includeCrossChainEmbeddedAssets:!0,includeExternalWalletAssets:!1,feeExecutionMode:i?"user-transfer":"backend-transfer",buildActionCalls:l,buildSpicenetBatch:Zr,onError:(x,C)=>e.onError?.(x.message,C),onSuccess:async()=>{if(!t)return;const x=d.fees.destinationAmount;if(i&&(x==null||x<=0n))throw new Error("The confirmed withdrawal amount is unavailable.");window.dispatchEvent(new CustomEvent("withdraw-completed")),await a?.({token:i?"USDC":t.symbol,amount:Me(i?x:n,i?e.destination.decimals:t.decimals),chainId:s})}}),p=`${e.enabled}:${t?.chainId}:${t?.address}:${n}:${o}:${r}:${s}:${e.destination?.address}`,w=J(p);he(()=>{w.current===p||d.status.isExecuting||(w.current=p,(d.status.step==="success"||d.status.paymentResult?.status==="success")&&d.resetAfterSuccess())},[p,d.status.isExecuting,d.status.step,d.status.paymentResult?.status,d.resetAfterSuccess]);const f=d.fees.fundingSource,g=f?.kind==="input"?d.fees.fundingConversion?.amountInMax??d.fees.proceedsUsed??0n:0n,h=f?.kind==="input"?t:f?.asset,b=h?h._source==="wallet"?d.fees.fundingConversion?.amountInMax??d.fees.proceedsUsed:d.amount.sourceRequiredAmount:null;return{supply:d,source:h,maximumFeeFunding:b,feeFromAmount:g}}const zu=nt.ui,Vh=({label:e,loading:t,balance:n,dark:o,dk:r})=>{const a=o?r.textSecondary:"#7D7C7B",i=o?r.textSecondary:"#71757A";return R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:{fontFamily:zu,fontSize:"17px",fontWeight:500,color:a,lineHeight:"24px"},children:e}),R("div",{style:{display:"flex",alignItems:"center",gap:"6px",fontFamily:zu,fontSize:"13px",fontWeight:500,color:i,lineHeight:"16px"},children:["Balance:"," ",t?"...":n===null?"\u2014":ni(n)]})]})};function Qh(e,t=40,n=18){const o=e.length,r=[{maxLength:7,shrink:0},{maxLength:10,shrink:6},{maxLength:13,shrink:12},{maxLength:16,shrink:16},{maxLength:20,shrink:19}].find(a=>o<=a.maxLength);return Math.max(n,t-(r?.shrink??22))}const Dr=({value:e,element:t="span",placeholder:n,ariaLabel:o,ariaInvalid:r,disabled:a,onChange:i,inputMode:s="decimal",autoComplete:c="off",dataSpiceflowFocus:l,fontFamily:u,fontWeight:d=700,color:p,textAlign:w,lineHeight:f=1,maxFontSize:g=40,minFontSize:h=18,overflow:b="ellipsis",title:x,style:C})=>{const v=J(null),[A,T]=H(),I=Qh(e||n||"",g,h),y=e||n||"";he(()=>{const F=v.current;if(!F||b!=="ellipsis"){T(void 0);return}let U=!0,O=null;const M=()=>{if(!U)return;const D=getComputedStyle(F),W=F.clientWidth-parseFloat(D.paddingLeft||"0")-parseFloat(D.paddingRight||"0");if(!(W>0))return;if(!O){try{O=document.createElement("canvas").getContext("2d")}catch{return}if(!O)return}O.font=`${D.fontStyle} ${D.fontWeight} ${I}px ${D.fontFamily}`;const S=O.measureText(y),q=Math.max(S.width,(S.actualBoundingBoxLeft||0)+(S.actualBoundingBoxRight||0))+(parseFloat(D.letterSpacing)||0)*Math.max(0,y.length-1),z=q>W?I*Math.max(0,W-1)/q:void 0;T(te=>te===z?te:z)};M();const B=typeof ResizeObserver>"u"?void 0:new ResizeObserver(M);return B?.observe(F),B||window.addEventListener("resize",M),document.fonts?.addEventListener("loadingdone",M),()=>{U=!1,B?.disconnect(),B||window.removeEventListener("resize",M),document.fonts?.removeEventListener("loadingdone",M)}},[y,I,u,d,b,t,C?.fontFamily,C?.fontStyle,C?.fontWeight,C?.letterSpacing,C?.paddingLeft,C?.paddingRight]);const k=b==="wrap"?{overflowWrap:"anywhere",wordBreak:"break-word",whiteSpace:"normal"}:b==="ellipsis"?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{},E={fontFamily:u,fontSize:`${Math.min(I,A??I)}px`,fontWeight:d,color:p,lineHeight:f,letterSpacing:0,textAlign:w,minWidth:0,maxWidth:"100%",...k,...C};return t==="input"?m("input",{ref:v,type:"text",inputMode:s,autoComplete:c,"aria-label":o,"aria-invalid":r||void 0,"data-spiceflow-focus":l||void 0,value:e,onChange:i,placeholder:n,disabled:a,title:x,style:{backgroundColor:"transparent",border:"none",outline:"none",padding:0,width:"100%",...E}}):m(t,{ref:v,title:x,style:E,children:e})},Hu=({isOpen:e,position:t,title:n,items:o,selectedId:r,onSelect:a,portalAttribute:i})=>{const{dark:s,dk:c,primaryColor:l}=dn(),[u,d]=H(null),[p,w]=H(!1);return he(()=>{if(!e){w(!1);return}const f=requestAnimationFrame(()=>{requestAnimationFrame(()=>w(!0))});return()=>cancelAnimationFrame(f)},[e]),!e||!t||o.length===0?null:pi(R("div",{[`data-${i}-popover`]:"true",style:{position:"fixed",top:`${t.top}px`,left:`${t.left}px`,opacity:p?1:0,transform:p?"scale(1) translateY(0)":"scale(0.96) translateY(-6px)",transition:`opacity 200ms ${qr.out}, transform 200ms ${qr.out}`,backgroundColor:s?c.shell:"#ffffff",borderRadius:"10px",padding:"10px 12px",boxShadow:s?"0 16px 48px rgba(0,0,0,0.45)":"0 12px 32px rgba(0,0,0,0.12)",border:`1px solid ${c.cardBorder}`,minWidth:"220px",zIndex:Ar.dropdown,fontFamily:nt.mono},children:[m("div",{style:{marginBottom:"6px"},children:m("span",{style:{fontSize:"11px",fontWeight:500,color:s?c.textPrimary:"#0e0d0b",textTransform:"uppercase",letterSpacing:"1px"},children:n})}),m("div",{style:{borderBottom:`1px solid ${c.cardBorder}`,marginBottom:"6px"}}),m("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:o.map(f=>{const g=r===f.id,h=u===f.id;return R("button",{onClick:b=>{b.stopPropagation(),a(f.id)},onMouseEnter:()=>d(f.id),onMouseLeave:()=>d(null),style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 4px",borderRadius:"8px",border:"none",cursor:"pointer",backgroundColor:g?s?c.hoverBg:"#f3f4f6":h?s?c.cardBg:"#f9fafb":"transparent",transition:"background-color 0.15s",width:"100%",fontFamily:nt.mono},children:[f.icon&&m("img",{src:f.icon,alt:f.label,style:{width:"22px",height:"22px",borderRadius:"50%"}}),m("span",{style:{fontSize:"13px",fontWeight:g?700:500,textTransform:"uppercase",color:s?c.textPrimary:"#0e0d0b",letterSpacing:"0.5px",flex:1,textAlign:"left"},children:f.label}),f.detail&&m("span",{style:{fontSize:"11px",fontWeight:500,color:c.textSecondary},children:f.detail}),g&&m(Nd,{color:l,style:{flexShrink:0}})]},f.id)})})]}),document.body)},Hs=nt.ui,jh=nt.mono,Gh=170,Kh=({header:e,amount:t,receiveAmountDisplay:n,receiveUsdEstimate:o,selectedDestToken:r,destTokenSymbol:a,destChainName:i,destChainLogo:s,compatibleDestinationChains:c,networkSwitchRef:l,onOpenNetworkPopover:u,showNetworkPopover:d,setShowNetworkPopover:p,networkPopoverPos:w,selectedChainId:f,setSelectedChainId:g,dark:h,dk:b})=>{const x=h?b.cardBg:"#E9E9E9",C=h?b.cardBorder:"#C6C6C6",v=h?b.textSecondary:"#71757A",A=h?b.textPrimary:"#0E0D0B",T=h?b.cardBorder:"#C5C5C4",I=h?"rgba(255,255,255,0.08)":"#D4D3D3",y=a.length>8?"14px":a.length>6?"16px":"18px";return R("div",{style:{backgroundColor:x,border:`1px solid ${C}`,borderRadius:"7px",padding:"14px 16px 12px 16px",minHeight:"138px",display:"flex",flexDirection:"column",gap:"6px"},children:[e,R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",flex:1},children:[R("div",{style:{flex:1,minWidth:0,alignSelf:"flex-start",paddingTop:"4px"},children:[m(Dr,{element:"div",value:n,title:n,fontFamily:Hs,color:t?A:"#A8A8A7",lineHeight:"0.95",maxFontSize:54,minFontSize:32,overflow:"wrap"}),m("div",{style:{fontSize:"12px",fontWeight:500,color:v,fontFamily:Hs,marginTop:"10px"},children:o})]}),R("div",{style:{width:`${Gh}px`,flexShrink:0,display:"flex",flexDirection:"column",alignItems:"stretch",gap:"8px"},children:[R("div",{style:{backgroundColor:"transparent",border:`1px solid ${T}`,borderRadius:"8px",overflow:"hidden",width:"100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"6px",padding:"9px 10px 8px 10px"},children:[m("img",{src:r?.logoURI||im,alt:a,style:{width:"24px",height:"24px",borderRadius:"50%"}}),m("span",{style:{fontSize:y,fontWeight:500,color:A,lineHeight:"1.3",fontFamily:Hs,flex:1,minWidth:0,letterSpacing:0},children:a})]}),R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"5px 10px",backgroundColor:I,borderTop:`1px solid ${T}`},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[s&&m("img",{src:s,alt:i,style:{width:"13px",height:"13px",borderRadius:"50%",flexShrink:0}}),m("span",{style:{fontSize:"11px",fontWeight:400,color:A,fontFamily:Hs,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textTransform:"uppercase"},children:i})]}),m("button",{ref:l,onClick:k=>{k.stopPropagation(),u(l.current)},style:{background:"none",border:"none",cursor:c.length>1?"pointer":"not-allowed",padding:"0 0 0 8px",fontSize:"9.5px",fontFamily:jh,color:v,textDecoration:"underline",fontWeight:600,opacity:c.length>1?1:.45},children:"Switch"}),m(Hu,{isOpen:d,position:w,title:"SELECT NETWORK",portalAttribute:"network",items:c.map(k=>{const E=kt(k);return{id:String(k),label:E?.displayName||String(k),icon:ur[k]||Ca}}),selectedId:f!==null?String(f):null,onSelect:k=>{g(Number(k)),p(!1)}})]})]}),m("div",{style:{minHeight:"14px"}})]})]})]})},Yh=nt.ui,mr=nt.mono,Zh=({show:e,onToggle:t,showCustomAddress:n,setShowCustomAddress:o,customRecipient:r,setCustomRecipient:a,externalAddress:i,recipientAddress:s,destChainName:c,destChainLogo:l,compatibleDestinationChains:u,txDetailsChainSwitchRef:d,onOpenNetworkPopover:p,sourceChainLabel:w,sourceDetailsLogo:f,sourceTokenLabel:g,amount:h,totalSourceDebitDisplay:b,receiveAmountDisplay:x,destTokenSymbol:C,shouldQuoteWithdrawGas:v,estimatingFee:A,feeError:T,displayedGasFee:I,selectedDestToken:y,theme:k,styles:E,dark:F,dk:U})=>{const O=F?U.textSecondary:"#71757A",M=F?U.textPrimary:"#0E0D0B",B=u.length>1,D=n&&r?Hn(r)?ha(r):r:s?ha(s):"\u2014";return R(vn,{children:[R("div",{onClick:t,style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:e?"10px":"0",cursor:"pointer",userSelect:"none"},children:[m("span",{style:{fontSize:"13px",color:O,fontFamily:Yh,fontWeight:600},children:"Transaction Details"}),m(jm,{size:12,color:O,style:{transform:e?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"}})]}),e&&R("div",{style:{display:"flex",flexDirection:"column",gap:"7px"},children:[R("div",{children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:{fontSize:"12px",color:O,fontFamily:mr,fontWeight:500,letterSpacing:"0.03em"},children:"TO"}),R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[m("span",{style:{fontSize:"13px",color:M,fontFamily:mr,fontWeight:500},children:D}),m("button",{onClick:()=>{o(W=>!W),!n&&i&&a(i)},style:{background:"none",border:"none",cursor:"pointer",padding:"0",fontSize:"9.5px",fontFamily:mr,color:O,textDecoration:"underline",fontWeight:600},children:n?"Reset":"Switch"})]})]}),n&&R("div",{style:{marginTop:"6px"},children:[m("div",{style:{marginBottom:"6px",padding:"7px 9px",borderRadius:"6px",border:"1px solid rgba(239, 68, 68, 0.55)",backgroundColor:"rgba(239, 68, 68, 0.12)",color:"#ef4444",fontSize:"10px",lineHeight:1.35,fontFamily:mr,fontWeight:700,letterSpacing:0,textTransform:"uppercase"},children:"CAUTION: ENTERING AN INCORRECT ADDRESS WILL RESULT IN LOSS OF FUNDS"}),m("input",{type:"text",autoComplete:"off",spellCheck:!1,"aria-label":"Recipient address","aria-invalid":r&&!Hn(r)?!0:void 0,"data-spiceflow-focus":!0,value:r,onChange:W=>a(W.target.value),placeholder:"0x...",style:{width:"100%",padding:"8px 10px",borderRadius:"6px",border:`1px solid ${r&&!Hn(r)?F?U.errorBorder:"#fca5a5":F?U.inputBorder:"#d1d5db"}`,backgroundColor:F?U.inputBg:"#f9fafb",color:F?U.inputText:"#111827",fontSize:"12px",fontFamily:mr,outline:"none",boxSizing:"border-box"}}),r&&!Hn(r)&&m("span",{style:{fontSize:"11px",color:U.errorText,marginTop:"3px",display:"block"},children:"Invalid address"})]})]}),m(vo,{palette:U,labelColor:O,valueColor:M,label:"RECEIVING CHAIN",value:R("div",{style:{display:"flex",alignItems:"center",gap:"7px"},children:[l&&m("img",{src:l,alt:c,style:{width:"14px",height:"14px",borderRadius:"50%"}}),m("span",{style:{fontSize:"13px",color:M,fontWeight:500,fontFamily:mr,textTransform:"uppercase"},children:c}),m("button",{ref:d,onClick:W=>{W.stopPropagation(),p(d.current)},style:{background:"none",border:"none",cursor:B?"pointer":"not-allowed",padding:"0",fontSize:"9.5px",fontFamily:mr,color:O,textDecoration:"underline",fontWeight:600,opacity:B?1:.45},children:"Switch"})]})}),m(vo,{palette:U,labelColor:O,valueColor:M,label:"REQUESTED WITHDRAWAL",value:R(pc,{logo:f||null,alt:w,primaryText:M,children:[h||"0"," ",g]})}),v&&m(vo,{palette:U,labelColor:O,valueColor:M,label:"TOTAL SOURCE DEBIT",value:R(pc,{logo:f||null,alt:w,primaryText:M,children:[b," ",g]})}),m(vo,{palette:U,labelColor:O,valueColor:M,label:"YOU RECEIVE",value:R(pc,{logo:l,alt:c,primaryText:M,gap:"4px",children:[x," ",C]})}),v&&R(vn,{children:[m(vo,{palette:U,labelColor:O,label:"EST. NETWORK FEE",valueColor:T?"#f87171":M,value:A?"Estimating...":T?"Unavailable":I!==null&&y?`${Gi(I,y.decimals)} ${y.symbol}`:"Estimating..."}),T&&m(Gn,{variant:"error",size:"compact",palette:U,fontFamily:E?.fontFamily||k.typography.fontFamily,children:T})]})]})]})},Xh=wo(Zh),pc=({logo:e,alt:t,primaryText:n,gap:o="6px",children:r})=>R("div",{style:{display:"flex",alignItems:"center",gap:o},children:[e&&m("img",{src:e,alt:t,style:{width:"13px",height:"13px",borderRadius:"50%"}}),m("span",{style:{fontSize:"13px",color:n,fontWeight:500,fontFamily:mr},children:r})]}),fc=({pct:e,isMax:t,primaryColor:n,dark:o,fillColor:r})=>{const a=e/100;return R("svg",{width:"14",height:"14",viewBox:"0 0 14 14",children:[m("circle",{cx:"7",cy:"7",r:"6.84375",fill:t?n:"none",stroke:t?n:o?"#4a5568":"#3C3E42",strokeWidth:"0.3125"}),!t&&a>0&&m("path",{d:`M 7 7 L 7 0.15625 A 6.84375 6.84375 0 ${a>.5?1:0} 1 ${7+6.84375*Math.sin(a*2*Math.PI)} ${7-6.84375*Math.cos(a*2*Math.PI)} Z`,fill:r})]})},La=nt.ui,Jh=170,$h=({header:e,amount:t,setAmount:n,isInsufficient:o,sourceAmountDecimals:r,selectedSourceAsset:a,resolvedSelectedSourceAsset:i,spiceAssets:s,setSelectedSourceAsset:c,sourceUsdEstimate:l,sourceTokenLabel:u,sourceChainLabel:d,totalSelectedBalance:p,showSourceTokenPopover:w,setShowSourceTokenPopover:f,tokenPopoverPos:g,setTokenPopoverPos:h,tokenTriggerRef:b,primaryColor:x,dark:C,dk:v})=>{const A=No(),T=i?A({...i,logoURI:i._source==="wallet"?i.logoURI:ka}).logoURI:ka,I=C?v.cardBg:"#E9E9E9",y=C?v.cardBorder:"#C6C6C6",k=C?v.textSecondary:"#71757A",E=C?v.textPrimary:"#0E0D0B",F=C?v.cardBorder:"#C5C5C4",U=C?"rgba(255,255,255,0.08)":"#D4D3D3",O=u.length>8?"14px":u.length>6?"16px":"18px";return R("div",{style:{backgroundColor:I,border:`1px solid ${y}`,borderRadius:"7px",padding:"14px 16px 12px 16px",minHeight:"138px",display:"flex",flexDirection:"column",gap:"6px",position:"relative"},children:[e,R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",flex:1},children:[R("div",{style:{flex:1,minWidth:0,alignSelf:"flex-start",paddingTop:"4px"},children:[m(Dr,{element:"input",ariaLabel:"Withdraw amount",ariaInvalid:o,dataSpiceflowFocus:!0,value:t,onChange:M=>{const B=M.target.value;if(B===""){n("");return}/^\d*\.?\d*$/.test(B)&&n(is(B.startsWith(".")?`0${B}`:B,r??a?.decimals))},placeholder:"0.0",fontFamily:La,color:o?"#ef4444":t?E:"#A8A8A7",lineHeight:"0.95",maxFontSize:54,minFontSize:32,style:{width:"100%"}}),m("div",{style:{fontSize:"12px",fontWeight:500,color:k,fontFamily:La,marginTop:"10px"},children:l})]}),m("div",{style:{width:`${Jh}px`,flexShrink:0},children:R("div",{style:{backgroundColor:"transparent",border:`1px solid ${F}`,borderRadius:"8px",overflow:"hidden",width:"100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[R("div",{ref:b,onClick:M=>{if(M.stopPropagation(),!w&&b.current){const B=b.current.getBoundingClientRect(),D=220,W=16;h({top:B.bottom+8,left:Math.min(Math.max(W,B.right-D),window.innerWidth-D-W)})}f(B=>!B)},style:{display:"flex",alignItems:"center",gap:"6px",padding:"9px 10px 8px 10px",cursor:"pointer"},children:[T&&m("img",{src:T,alt:u,style:{width:"24px",height:"24px",borderRadius:"50%"}}),m("span",{style:{fontSize:O,fontWeight:500,color:E,lineHeight:"1.3",fontFamily:La,flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",letterSpacing:0},children:u}),m(Xr,{size:15,color:E,strokeWidth:2.25})]}),m(Hu,{isOpen:w,position:g,title:"SELECT TOKEN",portalAttribute:"token",items:(s||[]).map(M=>({id:Ie(M),label:A({...M,displaySymbol:M.displaySymbol||(M._source==="wallet"?M.symbol:M.receiptTokenName)}).symbol,icon:A({...M,logoURI:M._source==="wallet"?M.logoURI:ka}).logoURI||void 0,detail:`${ni(M.balanceFormatted)} \xB7 ${M._source==="wallet"?kt(M.chainId)?.displayName||M.chainId:"Spicenet"}`})),selectedId:i?Ie(i):null,onSelect:M=>{const B=(s||[]).find(D=>Ie(D)===M);B&&(c(B),n("")),f(!1)}}),m("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"5px 10px",backgroundColor:U,borderTop:`1px solid ${F}`},children:m("span",{style:{fontSize:"11px",fontWeight:400,color:E,fontFamily:La,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textTransform:"uppercase"},children:d})})]})})]}),R("div",{style:{minHeight:"18px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[o?m("span",{style:{fontSize:"12px",color:v.errorText,fontFamily:La,fontWeight:500},children:"Insufficient Balance"}):m("span",{}),m("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0px",minHeight:"32px",marginRight:"-9px"},children:[0,25,50,75,100].map((M,B)=>{const D=B===4,W=parseFloat(t)||0,S=p>0&&Math.abs(W/p*100-M)<1;return m("button",{type:"button","aria-label":`Set amount to ${M}%`,"aria-pressed":S,onClick:()=>{const q=i?.balance??0n;n(M===0?"":Me(q*BigInt(M)/100n,r??a?.decimals??6))},title:`${M}%`,disabled:p===0,"data-spiceflow-focus":!0,style:{width:"32px",height:"32px",padding:"9px",border:"none",backgroundColor:"transparent",cursor:p===0?"not-allowed":"pointer",opacity:S?1:.5,transition:"opacity 0.15s ease",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:m(fc,{pct:M,isMax:D,primaryColor:x,dark:C,fillColor:C?v.textSecondary:"#3C3E42"})},M)})})]})]})};var mc="data:image/svg+xml,%3csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 4.99995V6.99995M5 3.31245V3.31189M9.5 5C9.5 7.48528 7.48528 9.5 5 9.5C2.51472 9.5 0.5 7.48528 0.5 5C0.5 2.51472 2.51472 0.5 5 0.5C7.48528 0.5 9.5 2.51472 9.5 5Z' stroke='black' stroke-opacity='0.4' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const _h=({dark:e,dk:t})=>R("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[m("img",{src:mc,alt:"","aria-hidden":"true",style:{width:"13px",height:"13px",flexShrink:0,...e?{filter:"invert(0.6)"}:{}}}),m("p",{style:{fontSize:"13px",color:e?t.textSecondary:"#979AA0",margin:"0",lineHeight:"1.4",fontFamily:nt.ui},children:"Withdraw collateral from your account to 10+ EVM blockchains."})]}),eg=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,styles:o,onWithdrawExecute:r,onWithdrawSuccess:a,onWithdrawError:i,availableTokens:s,initialSourceAssetId:c,walletAssets:l,buildSpicenetBatch:u=Zr})=>{const d=fn(cn);if(!d)return m("div",{children:"Error: SpiceWithdraw must be used within SpiceFlowProvider"});const p=d.mode||"7702",w=p==="presign"||p==="ondemand",f=d.supportedChainIds,g=d.allowedTokens,h=l?.initialAsset,b=Ae(()=>[...l?.extraAssets??[],...h?[h]:[]].map(me=>({address:me.address,chainId:me.chainId,symbol:me.symbol,decimals:me.decimals})),[l?.extraAssets,h]),x=d.isWhitelistGateActive,{theme:C,dark:v,dk:A}=dn(o),T=No(),I=d.network,y=()=>w?"select":"provider-login",[k,E]=H(y()),[F,U]=H(!1),[O,M]=H(null),[B,D]=H(null),[W,S]=H(""),[q,z]=H(!1),[te,Y]=H(!1),[j,K]=H(!1),[X,xe]=H(""),[ge,ve]=H(!0),Se=J(null),ne=J(null),_=J(null),[ue,P]=H(null),[Le,Be]=H(null),L=Mo(),{isReady:V,isAuthenticated:oe,address:le}=L,Z=d?.embeddedWalletAddress,{address:se,chainId:We}=si(),He=[d.externalWalletAddress,se].find(me=>me&&!G(me,Z));he(()=>{e&&!He&&K(!0)},[e,He]);const[ye,Oe]=H(!1),[Ne,Ce]=H(null),Ge=J(i);Ge.current=i;const ke=ae(me=>{Ce(me),typeof me=="string"&&me&&Ge.current?.(me,Hr(me))},[]),[Qe,pe]=H(null),et=J(null),Ct=J(!0),lt=J(null);he(()=>(Ct.current=!0,()=>{Ct.current=!1}),[]);const{execute:st,estimate:$e,clearStatus:Re}=Yr(),Fe=ks(le,e),[bt,it]=H(null),[ie,xt]=H(null),[vt,Ve]=H(!1),[Dt,Vt]=H(null),{assets:yn,loading:Wt,error:Dn,refresh:ht}=Or({owner:Z,role:"holding",includeWalletAssets:!0,additionalSourceTokens:b,enabled:e&&!!Z}),Ye=Ae(()=>{if(x)return[];const me=(ce,ot)=>(ot.balanceUsd||0)-(ce.balanceUsd||0);return(yn??[]).filter(ce=>ce.balance>0n&&To(ce,"holding",{allowedTokens:g,isWhitelistGateActive:x}).eligible).sort(me)},[yn,g,x]),gt=Ae(()=>[...new Set([...f??[],...Object.keys(s??{}).map(Number),...(Ye||[]).map(me=>me.chainId),...(Ye||[]).flatMap(me=>Object.keys(me.chainTokens??{}).map(ce=>{const[,ot]=ce.split(":"),Et=Number(ot);return Number.isFinite(Et)?Et:null}).filter(ce=>ce!==null))])].filter(me=>kt(me)?.network===I),[f,s,Ye,I]),mt=Ae(()=>{if(s)return s;const me={};for(const ce of Ye||[]){const ot=Object.entries(ce.chainTokens??{});if(ot.length>0){for(const[Et,De]of ot){const[Jt,Mt,un]=Et.split(":");if(Jt!=="evm"||!Mt||!un)continue;const xn=Number(Mt);if(!Number.isFinite(xn))continue;const rn=un.startsWith("0x")?un.toLowerCase():`0x${un.toLowerCase()}`,nn=kt(xn)?.supportedTokens?.find(Ht=>G(Ht.address,rn));nn&&Ci(ce,rn,xn)&&(me[xn]||(me[xn]=[]),me[xn].find(Ht=>G(Ht.address,rn))||me[xn].push({address:rn,symbol:nn?.symbol||De?.name||ce.symbol,name:nn?.name||De?.name||ce.displayName||ce.name||ce.symbol,decimals:nn?.decimals??De?.decimals??ce.decimals,logoURI:nn?.logo||ce.logoURI}))}continue}me[ce.chainId]||(me[ce.chainId]=[]),me[ce.chainId].find(Et=>G(Et.address,ce.address))||me[ce.chainId].push({address:ce.address,symbol:ce.symbol,name:ce.displayName||ce.name||ce.symbol,decimals:ce.decimals,logoURI:ce.logoURI})}return me},[s,Ye]),Ft=ae((me,ce)=>{const ot=$m(me,ce,ce?me?._source==="wallet"?s?.[ce]??[]:mt[ce]??[]:[]);return!me||!ot||!ce?null:me._source==="wallet"||To(me,"withdraw-destination",d,{...ot,chainId:ce}).eligible?ot:null},[mt,s,d.allowedTokens,d.rpcOverrides,d.isWhitelistGateActive]),ee=Ae(()=>O?Ye.find(me=>Ie(me)===Ie(O))??null:null,[O,Ye]),At=ee?ee.balanceError:Dn,Pe=ee?._source==="wallet",Ze=Ae(()=>{if(!ee)return[];const me=Object.keys(ee.chainTokens??{}).map(ce=>Jn(ce)?.chainId??null).filter(ce=>ce!==null);return Array.from(new Set([...me,ee.chainId,...gt].filter(Number.isFinite))).filter(ce=>kt(ce)?.network===I&&(ee._source==="wallet"||Ft(ee,ce)!==null))},[ee,gt,Ft,I]),ct=Ae(()=>{if(!ee||typeof window>"u")return null;const me=`spiceflow:withdraw-chain:${ee.receiptTokenId||ee.address.toLowerCase()}`,ce=window.localStorage.getItem(me),ot=ce?Number(ce):null;return ot!==null&&Number.isFinite(ot)&&Ze.includes(ot)?ot:null},[ee,Ze]),wt=Ae(()=>ee?ee._source==="wallet"?ee.chainId:ct!==null?ct:We&&Ze.includes(We)?We:ee.chainId&&Ze.includes(ee.chainId)?ee.chainId:Ze[0]??null:gt[0]??null,[ee,ct,We,Ze,gt]),Je=Ae(()=>Ft(ee,B),[Ft,ee,B]);he(()=>{e&&(M(null),S(""))},[e,c,h?.address,h?.chainId]),he(()=>{if(!e||!Ye.length||O)return;const me=h?Ye.find(ce=>ce.chainId===h.chainId&&G(ce.address,h.address)&&ce._source==="wallet"):c?Ye.find(ce=>ce.receiptTokenId===c):Ye[0];M(me??null),S("")},[e,Ye,O,c,h]);const Lt=J(null);he(()=>{if(!ee){Lt.current=null;return}const me=Ie(ee),ce=Lt.current!==me;Lt.current=me,(ce&&ee._source==="wallet"||B===null||!Ze.includes(B))&&D(wt)},[ee,B,wt,Ze]),he(()=>{if(!q&&!te)return;const me=ce=>{const ot=ce.target;q&&!Se.current?.contains(ot)&&!ne.current?.contains(ot)&&!ot?.closest?.("[data-network-popover]")&&z(!1),te&&!_.current?.contains(ot)&&!ot?.closest?.("[data-token-popover]")&&Y(!1)};return document.addEventListener("mousedown",me),()=>document.removeEventListener("mousedown",me)},[q,te]);const St=ae(me=>{if(!me||Ze.length<=1)return;const ce=me.getBoundingClientRect(),ot=220,Et=16;P({top:ce.bottom+8,left:Math.min(Math.max(Et,ce.right-ot),window.innerWidth-ot-Et)}),z(De=>!De)},[Ze.length]),_t=ae(()=>ve(me=>!me),[]);he(()=>{if(!ee||B===null||typeof window>"u")return;const me=`spiceflow:withdraw-chain:${ee.receiptTokenId||ee.address.toLowerCase()}`;window.localStorage.setItem(me,String(B))},[ee,B]);const It=j?Hn(X)?X:void 0:He,$n=Or({owner:It,role:"holding",includeRollupAssets:!1,sourceChains:B?[B]:[],additionalSourceTokens:Je&&B?[{...Je,chainId:B}]:[],enabled:e&&!!It&&!!Je&&!!B}),Mn=$n.walletAssets.find(me=>G(me.owner,It)&&me.chainId===B&&G(me.address,Je?.address)),Kn=ee?.balanceFormatted??0,Oo=ee?T(Pe?ee:{...ee,displaySymbol:ee.displaySymbol||ee.receiptTokenName,logoURI:ka}):void 0,Ln=Oo?.symbol||"Select token",qn=ee?.displayChainName||(Pe?kt(ee.chainId)?.displayName:"Spicenet")||"Network",bn=ee?.receiptTokenDecimals??ee?.decimals,zt=Ae(()=>{if(!Je||bn===void 0)return 0n;try{return Rn(W||"0",bn)}catch{return 0n}},[W,Je,bn]),en=Ae(()=>!Je||bn===void 0?0n:ah(zt,bn,Je.decimals),[Je,bn,zt]),tn=ie??bt,ln=zt,Qt=Hh({enabled:e&&Pe&&!!Je,destination:Je&&B?{...Je,chainId:B}:null,asset:Pe?ee:null,amount:zt,recipient:It,owner:Z,sourceChains:f,onSuccess:a,onError:i}),tt=Qt.supply,Ut=Pe&&B!==ee?.chainId,_n=Pe?tt.fees.ready?tt.fees.destinationAmount??0n:0n:en>(tn??0n)?en-(tn??0n):0n,In=Pe&&B?Je?To(ee,"spend-source",d,{...Je,chainId:B}).reason:"USDC withdrawal is unavailable on this network. Choose another network.":null,Sn=ye||Pe&&(tt.status.isExecuting||tt.status.finalizing),En=tt.status.step==="success"||tt.status.paymentResult?.status==="success",Vn=ae(me=>{if(Pe||!B||!Je)return[];if(zt===0n||en===0n||!It)return[];const ce=Array.isArray(me)?me.filter(Jt=>Jt.amount>0n):[{token:Je.address,recipient:It,amount:me??en}],ot=ce.reduce((Jt,Mt)=>Jt+Mt.amount,0n);if(ot<=0n)return[];const Et={chainId:B,calls:[],tokenTransfers:ce.map(Jt=>({from:"escrow",to:Jt.recipient,token:Jt.token,amount:Jt.amount}))},De=u({destinationChainId:B,deliveryToken:Je.address,deliveryAmount:ot,deliveryRecipient:It,deliveryTransfers:ce,requestTimestampMs:lt.current??Date.now()});return De?[De,Et]:[Et]},[Pe,B,Je,zt,en,It,u]),mn=Ae(()=>Vn(),[Vn]),eo=u===Zr&&!!B&&![Vr(B),zn,gn,...Od].some(me=>G(It,me)),_e=Ae(()=>sh(mn,Je?.address,eo),[mn,Je?.address,eo]),Nn=J(null),kn=!Pe&&e&&!w&&!ye&&!!Je&&!!B&&zt!==0n;Di({shouldRun:kn&&mn.length>0&&!!_e,deps:[kn,mn.length>0,_e,eo],delayMs:500,onSkip:()=>{Nn.current=null,it(null),Vt(null),Ve(kn&&mn.length===0)},onCleanup:()=>Ve(!1),run:async({isCurrent:me,signal:ce})=>{const ot=_e;Ve(!0),Vt(null);try{const Et=await rh({batches:mn,tokenAddress:Je.address,chainId:B,estimate:$e,withdrawalSourceBudget:eo,signal:ce});if(!me())return;Nn.current={key:ot,quote:Et},it(Et.gasFee)}catch(Et){if(!me())return;Nn.current=null,it(null),Vt(Et instanceof Error?Et.message:"Failed to estimate gas fee")}finally{me()&&Ve(!1)}}}),he(()=>{ye||xt(null)},[ye,W,B,Je?.address]);const Bo=ae(()=>{U(!0),E("select")},[]),uo=ae(()=>{Sn||t()},[t,Sn]),Qn=J(null);Qn.current={batches:mn,walletAddress:le,recipient:It,token:Je,chainId:B,amount:W,grossAmountRaw:en,gasFee:bt,feeEstimate:_e&&Nn.current?.key===_e?Nn.current.quote.feeEstimate:null,withdrawalSourceBudget:!w&&eo,isNon7702:w,buildWithdrawBatches:Vn,execution:{estimate:$e,execute:st},ui:{setIsExecuting:Oe,setExecutionError:ke,setExecutionProgress:pe,setLockedGasFee:xt},executionContextRef:et,isMountedRef:Ct,onWithdrawExecute:r,onWithdrawSuccess:a,buildSpicenetBatch:u};const Ro=ae(()=>(lt.current=Date.now(),Gd(Qn.current)),[]),ko=ae(()=>Kd(Qn.current),[]);if(he(()=>{if(!e){Re?.();const me=setTimeout(()=>{E(y()),U(!1),M(null),D(null),S(""),z(!1),Y(!1),K(!1),xe(""),Oe(!1),ke(null),pe(null),et.current=null},300);return()=>clearTimeout(me)}},[e,w]),he(()=>{if(!w&&e&&k==="provider-login"&&V&&oe&&Z&&!F){const me=setTimeout(()=>{U(!0),E("select")},100);return()=>clearTimeout(me)}},[w,e,k,V,oe,Z,F]),!e)return null;if(k==="provider-login"&&!w)return m(Vi,{onAuthSuccess:Bo,autoTrigger:!0});if(k==="select"){const me=parseFloat(W)||0,ce=bn?Gi(ln,bn):W||"0",ot=!!ee&&ln>ee.balance,Et=(B?kt(B):null)?.displayName||"Network",De=B?ur[B]||Ca:null,Jt=Je?.symbol||"\u2014",Mt=Ln,un=Je?Gi(_n,Je.decimals):"0",xn=ee&&ee.balanceFormatted>0?ee.balanceUsd/ee.balanceFormatted:void 0,rn=ee?.priceStatus==="stale",nn=Yd(me,xn,rn),Ht=Yd(parseFloat(un)||0,Ut?void 0:xn,rn),Pn=(!j||Hn(X))&&(!Pe||!G(It,Z)),$t=!w&&!Pe&&me>0&&Je!==null,to=!$t||bt!==null&&!vt&&!Dt,Fn=me>0&&!ot&&!Wt&&!At&&ee!==null&&B!==null&&Je!==null&&!In&&It&&Pn&&to&&_n>0n&&(!Pe||tt.canExecute&&!En),dt=!Fn,pn=Wt?"LOADING BALANCES":At?"BALANCES UNAVAILABLE":ee===null?"NO BALANCE":me===0?"ENTER AMOUNT":ot?"INSUFFICIENT BALANCE":$t&&!to?Dt?"GAS UNAVAILABLE":"ESTIMATING GAS":$t&&_n===0n?"AMOUNT TOO SMALL":Pe&&!tt.canExecute?"REVIEW FEES":"WITHDRAW",tr=!!Qe&&(Qe.step==="success"||Qe.step==="error"),gr=o?.primaryColor||C.colors.primary,aa=402,Vo=(Co,Nr,re)=>m(Vh,{label:Co,loading:re,balance:Nr,dark:v,dk:A});return m(Io,{isOpen:!0,onClose:uo,title:"Withdraw",subtitle:m(_h,{dark:v,dk:A}),styles:o,theme:C,dark:v,maxWidth:"486px",footerLinkText:"Spicenet accounts \u2192",overlayDimmed:!1,closeOnBackdropClick:n,overlayContent:tr?m("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",justifyContent:"flex-end",pointerEvents:"none",zIndex:20},children:m("div",{style:{pointerEvents:"auto"},children:m(Qi,{type:"withdraw",isOpen:!0,isProcessing:Sn,onRetryTx:()=>{ko()},onNewTx:()=>{pe(null),S(""),ke(null),et.current=null},onClose:()=>{pe(null),ke(null),Oe(!1),et.current=null},onComplete:()=>{pe(null),ke(null),Oe(!1),et.current=null},results:[{asset:{symbol:Je?.symbol||"Token",address:Je?.address||""},txHash:Qe?.txHash||"",success:Qe?.step==="success",error:Qe?.error,amount:W}],chainId:B??void 0,theme:C})})}):null,children:R("fieldset",{disabled:Sn,style:{border:0,minWidth:0,width:"calc(100% - 32px)",maxWidth:`${aa}px`,margin:"0 auto",padding:"0 0 4px 0",position:"relative"},children:[m(Os,{activity:Fe,palette:A,onRefresh:()=>{ht()}}),R("div",{style:{marginTop:"16px",marginBottom:"16px",display:"flex",flexDirection:"column",gap:"16px"},children:[m($h,{header:Vo("Source",Kn,Wt),amount:W,setAmount:S,isInsufficient:ot,sourceAmountDecimals:bn,selectedSourceAsset:ee,resolvedSelectedSourceAsset:ee,spiceAssets:Ye,setSelectedSourceAsset:M,sourceUsdEstimate:nn,sourceTokenLabel:Mt,sourceChainLabel:qn,totalSelectedBalance:Kn,showSourceTokenPopover:te,setShowSourceTokenPopover:Y,tokenPopoverPos:Le,setTokenPopoverPos:Be,tokenTriggerRef:_,primaryColor:gr,dark:v,dk:A}),m(Kh,{header:Vo("Destination",Mn?.balanceFormatted??null,$n.loading),amount:W,receiveAmountDisplay:un,receiveUsdEstimate:Ht,selectedDestToken:Je,destTokenSymbol:Jt,destChainName:Et,destChainLogo:De,compatibleDestinationChains:Ze,networkSwitchRef:Se,onOpenNetworkPopover:St,showNetworkPopover:q,setShowNetworkPopover:z,networkPopoverPos:ue,selectedChainId:B,setSelectedChainId:D,dark:v,dk:A})]}),R("div",{style:{marginBottom:C.spacing.sm},children:[m(Xh,{show:ge,onToggle:_t,showCustomAddress:j,setShowCustomAddress:K,customRecipient:X,setCustomRecipient:xe,externalAddress:He,recipientAddress:It,destChainName:Et,destChainLogo:De,compatibleDestinationChains:Ze,txDetailsChainSwitchRef:ne,onOpenNetworkPopover:St,sourceChainLabel:qn,sourceDetailsLogo:ee?Oo?.logoURI:ka,sourceTokenLabel:Mt,amount:W,totalSourceDebitDisplay:ce,receiveAmountDisplay:un,destTokenSymbol:Jt,shouldQuoteWithdrawGas:$t,estimatingFee:vt,feeError:Dt,displayedGasFee:tn,selectedDestToken:Je,theme:C,styles:o,dark:v,dk:A}),Ut&&m(Gn,{variant:"info",size:"compact",palette:A,children:tt.fees.ready?`You receive ${un} USDC on ${Et}`:`USDC on ${Et} \u2014 ${In||tt.fees.error||tt.quote.quoteError||"waiting for quote"}`}),Pe&&tt.fees.ready&&R(vn,{children:[m(vo,{palette:A,label:"TOTAL SOURCE DEBIT",value:`${ce} ${Mt}`}),m(vo,{palette:A,label:"MINIMUM RECEIVED",value:`${un} ${Jt}`}),m(vo,{palette:A,label:Ut?"DESTINATION FEES":"EST. FEE",value:tt.fees.preview?.totalFee!==void 0?`${Me(tt.fees.preview.totalFee,tt.fees.preview.decimals)} ${tt.fees.preview.symbol}`:"Unavailable"})]}),Ut&&tt.fees.ready&&tt.fees.source&&m(vo,{palette:A,label:"SOURCE NETWORK FEE",value:`${Me(tt.fees.source.gasFee,tt.fees.source.decimals)} ${tt.fees.source.symbol}`}),In&&m(Gn,{variant:"warning",size:"compact",palette:A,children:In}),Pe&&R("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[!Ut&&m(vo,{palette:A,label:"FEE ASSET",value:tt.fees.isLoading?"Estimating...":Qt.source?`${T(Qt.source).symbol} \xB7 ${Qt.source._source==="spice"?"Spicenet":kt(Qt.source.chainId)?.displayName}`:"Unavailable"}),!Ut&&m(vo,{palette:A,label:"MAXIMUM FEE FUNDING",value:tt.fees.isLoading?"Estimating...":tt.fees.ready&&Qt.source&&Qt.maximumFeeFunding!=null?`${Me(Qt.maximumFeeFunding,Qt.source.decimals)} ${T(Qt.source).symbol}`:"Unavailable"}),!En&&(tt.status.error||tt.fees.error||tt.quote?.quoteError)&&m(Gn,{variant:"error",size:"compact",palette:A,children:tt.status.error||tt.fees.error||tt.quote?.quoteError}),!En&&tt.status.finalizationError&&m(Yt,{variant:"outline",dark:v,disabled:tt.status.finalizing,onClick:()=>void tt.retryFinalization(),children:"Retry application update"}),!En&&tt.status.step==="error"&&tt.status.error==="Transaction fees changed. Refresh the quote before submitting."&&m(Yt,{variant:"outline",dark:v,disabled:tt.status.isExecuting,onClick:tt.retrySupply,children:"Refresh quote"}),tt.status.statusMsg&&m("span",{role:"status",children:tt.status.statusMsg})]}),ee&&!Wt&&Ze.length===0&&m(Gn,{variant:"warning",size:"compact",palette:A,children:"No withdrawal networks are available for this asset."}),Ne&&m(Gn,{variant:"error",size:"compact",palette:A,fontFamily:o?.fontFamily||C.typography.fontFamily,style:{marginBottom:"12px"},children:Ne}),At&&R(Gn,{variant:"error",size:"compact",palette:A,children:["Unable to load this balance. Please try again."," ",m("button",{type:"button",onClick:()=>void ht(),children:"Retry"})]}),m(Yt,{variant:"outline",fullWidth:!0,onClick:()=>{if(Fn)if(Pe){if(Ut&&_n<=0n)return;tt.submitSupply()}else Ro()},disabled:dt||Sn,theme:C,dark:v,styles:o,style:{marginTop:"8px"},children:Sn?"EXECUTING...":Pe&&En?"WITHDRAWN":pn})]})]})})}return null},hc=eg,tg=({onDepositClick:e,onWithdrawClick:t,depositDisabled:n=!1,withdrawDisabled:o=!1,primaryColor:r="#EA4B4B",buttonStyles:a,dark:i=!1})=>{if(!e&&!t)return null;const s={button:{backgroundColor:r,...a}};return R("div",{style:{display:"flex",gap:"8px"},children:[e&&m(Yt,{variant:"outline",onClick:e,disabled:n,dark:i,styles:s,style:{flex:1,height:"44px",fontSize:"12px"},children:"Deposit"}),t&&m(Yt,{variant:"outline",onClick:()=>t(),disabled:o,dark:i,styles:s,style:{flex:1,height:"44px",fontSize:"12px"},children:"Withdraw"})]})},ng=wo(tg),og=({section:e,dk:t,dark:n=!1})=>{const o=r=>{switch(r){case"green":return"#10b981";case"red":return"#ef4444";default:return t.textPrimary}};return R("div",{children:[m("div",{style:{fontSize:"11px",fontWeight:600,letterSpacing:"1px",color:t.textSecondary,marginBottom:"8px",textTransform:"uppercase"},children:e.title}),m("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:e.items.map((r,a)=>R("div",{role:r.onClick?"button":void 0,tabIndex:r.onClick?0:void 0,onClick:r.onClick,onKeyDown:r.onClick?i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),r.onClick?.())}:void 0,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px",backgroundColor:t.cardBg,border:n?`1px solid ${t.cardBorder}`:"1px solid #e5e7eb",borderRadius:"8px"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[r.tokenLogoURI?m("img",{src:r.tokenLogoURI,alt:r.tokenSymbol,style:{width:"20px",height:"20px",borderRadius:"50%"}}):m("div",{style:{width:"20px",height:"20px",borderRadius:"50%",backgroundColor:n?t.hoverBg:"#e5e7eb",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"10px",fontWeight:600,color:t.textSecondary},children:r.tokenSymbol.charAt(0)}),R("div",{children:[m("div",{style:{fontSize:"13px",fontWeight:500,color:t.textPrimary},children:r.tokenSymbol}),m("div",{style:{fontSize:"11px",color:t.textSecondary},children:r.label})]})]}),m("div",{style:{fontSize:"13px",fontWeight:600,color:o(r.valueColor)},children:r.displayValue})]},a))})]})},rg=wo(og);var ag="data:image/svg+xml,%3csvg width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='black' stroke-opacity='0.5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpolyline points='17 1 21 5 17 9' /%3e%3cpath d='M3 11V9a4 4 0 0 1 4-4h14' /%3e%3cpolyline points='7 23 3 19 7 15' /%3e%3cpath d='M21 13v2a4 4 0 0 1-4 4H3' /%3e%3c/svg%3e";const gc=({color:e})=>R("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[m("circle",{cx:"7",cy:"7",r:"6.5",stroke:e,strokeWidth:"1.2"}),m("path",{d:"M7 6v4",stroke:e,strokeWidth:"1.2",strokeLinecap:"round"}),m("circle",{cx:"7",cy:"4.5",r:"0.7",fill:e})]}),Vu=({content:e,label:t="More info",textColor:n="#f9fafb",backgroundColor:o="#111827",borderColor:r="rgba(255,255,255,0.08)",accentColor:a="#9ca3af",children:i})=>{const s=tl(),[c,l]=H(!1),u=J(null),[d,p]=H(!1),[w,f]=H(null);he(()=>{p(!0)},[]),Po(()=>{if(!c||!u.current)return;const h=()=>{if(!u.current)return;const b=u.current.getBoundingClientRect(),x=Math.min(220,window.innerWidth-48),C=Math.min(Math.max(b.left+b.width/2,24+x/2),window.innerWidth-24-x/2),v=b.top>84;f({top:v?b.top-10:b.bottom+10,left:C,placement:v?"top":"bottom"})};return h(),window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),()=>{window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}},[c]);const g=c&&d&&w?pi(R("span",{id:s,role:"tooltip",style:{position:"fixed",left:w.left,top:w.top,transform:w.placement==="top"?"translate(-50%, -100%)":"translate(-50%, 0)",width:"220px",maxWidth:"min(220px, calc(100vw - 48px))",padding:"10px 12px",borderRadius:"10px",backgroundColor:o,color:n,border:`1px solid ${r}`,boxShadow:"0 18px 45px rgba(0,0,0,0.28)",fontSize:"11px",lineHeight:"1.45",fontWeight:500,textAlign:"left",zIndex:Ar.tooltip,pointerEvents:"none"},children:[e,m("span",{"aria-hidden":"true",style:{position:"absolute",left:"50%",width:"10px",height:"10px",transform:"translateX(-50%) rotate(45deg)",backgroundColor:o,...w.placement==="top"?{bottom:"-6px",borderRight:`1px solid ${r}`,borderBottom:`1px solid ${r}`}:{top:"-6px",borderTop:`1px solid ${r}`,borderLeft:`1px solid ${r}`}}})]}),document.body):null;return R(vn,{children:[m("span",{ref:u,style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:m("button",{type:"button","aria-label":t,"aria-describedby":c?s:void 0,onFocus:()=>l(!0),onBlur:()=>l(!1),style:{width:"18px",height:"18px",borderRadius:"999px",display:"inline-flex",alignItems:"center",justifyContent:"center",border:`1px solid ${r}`,backgroundColor:"transparent",color:a,cursor:"help",padding:0,outline:"none",boxShadow:c?`0 0 0 2px ${a}26`:"none",transition:"border-color 120ms ease, box-shadow 120ms ease, color 120ms ease"},children:i||m(gc,{color:a})})}),g]})},sg=({appName:e,status:t,statusLabel:n,totalUsdValue:o,breakdownSubtitle:r,showUsdSummary:a=!0,address:i,dk:s,dark:c=!1,showModeToggle:l,isEmbeddedMode:u=!0,onModeToggle:d})=>{const[p,w]=H(!1),f=async()=>{i&&await Gp(i)&&(w(!0),setTimeout(()=>w(!1),2e3))},g=t==="active",h=n||(g?"Active":"Inactive"),b=g?"#10b981":"#9ca3af",x=R("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[R("div",{children:[m("strong",{children:"Embedded:"})," Deposit assets into ",e," account and use them here."]}),R("div",{children:[m("strong",{children:"External:"})," Use assets from your connected wallet here."]})]});return R("div",{children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"4px"},children:[R("div",{style:{fontSize:"13px",fontWeight:600,color:s.textPrimary},children:[e," Account"]}),l?R("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[R("button",{onClick:d,style:{display:"flex",alignItems:"center",gap:"4px",padding:"2px 8px",borderRadius:"9999px",backgroundColor:c?s.hoverBg:"#f3f4f6",border:c?`1px solid ${s.cardBorder}`:"1px solid #e5e7eb",cursor:"pointer",fontSize:"11px",fontWeight:600,fontFamily:nt.mono,color:s.textSecondary,transition:"background-color 150ms ease, border-color 150ms ease, color 150ms ease",letterSpacing:"0.02em"},children:[m("span",{children:u?"Embedded":"External"}),m("img",{src:ag,alt:"","aria-hidden":"true",style:{width:"11px",height:"11px",display:"block",...c?{filter:"invert(0.65)"}:{}}})]}),m(Vu,{content:x,label:"Account mode info",textColor:c?s.textPrimary:"#f9fafb",backgroundColor:c?s.cardBg:"#111827",borderColor:c?s.cardBorder:"rgba(255,255,255,0.08)",accentColor:c?s.textSecondary:"#6b7280",children:m("img",{src:mc,alt:"","aria-hidden":"true",style:{width:"12px",height:"12px",display:"block",...c?{filter:"invert(0.65)"}:{}}})})]}):R("div",{style:{display:"flex",alignItems:"center",gap:"4px",padding:"2px 8px",borderRadius:"9999px",backgroundColor:c?s.hoverBg:g?"#ecfdf5":"#f3f4f6",border:c?`1px solid ${s.cardBorder}`:g?"1px solid #a7f3d0":"1px solid #e5e7eb"},children:[m("div",{style:{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:b}}),m("span",{style:{fontSize:"11px",fontWeight:500,color:c?s.textSecondary:g?"#065f46":"#6b7280"},children:h})]})]}),a&&m("div",{style:{fontSize:"28px",fontWeight:700,color:s.textPrimary,lineHeight:1.2,marginBottom:"2px"},children:Sr(o)}),a&&r&&m("div",{style:{fontSize:"12px",color:s.textSecondary,marginBottom:"8px"},children:r}),i&&R("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[m("span",{style:{fontSize:"12px",fontFamily:nt.mono,color:c?s.textSecondary:"#9ca3af"},children:ha(i)}),m("button",{onClick:f,style:{padding:"2px 6px",fontSize:"10px",fontWeight:500,backgroundColor:"transparent",color:c?s.textSecondary:"#9ca3af",border:"none",cursor:"pointer",borderRadius:"4px",transition:"background-color 150ms ease, color 150ms ease"},title:"Copy address",children:p?"Copied":"Copy"})]})]})},ig=wo(sg),cg={1:"ethereum",56:"binance-smart-chain",137:"polygon-pos",143:"monad",4114:"citrea",4663:"robinhood",8453:"base",42161:"arbitrum-one"},lg=6e4,qa=new Map;function Qu(e,t){return qa.get(e)?.logos?.get(t.toLowerCase())}function dg(e,t){const n=cg[e];if(!n||Te(t))return;const o=qa.get(e);if(o?.logos||o?.pending)return o.pending;if(o?.failedAt!==void 0&&Date.now()-o.failedAt<lg)return;const r=Promise.resolve().then(async()=>{try{const a=await fetch(`https://tokens.coingecko.com/${n}/all.json`,{signal:AbortSignal.timeout(1e4)});if(!a.ok)throw new Error("Token list request failed");const i=await a.json(),s=new Map;for(const c of i?.tokens??[])c?.address&&c?.logoURI&&s.set(String(c.address).toLowerCase(),c.logoURI);qa.set(e,{logos:s})}catch(a){console.warn(`[tokenLogos] Token list unavailable for chain ${e}`,a),qa.set(e,{failedAt:Date.now()})}});return qa.set(e,{...o,pending:r}),r}function wc(e,t,n){const[o,r]=H(),a=e||e===null||t===void 0||!n?void 0:`${t}:${n.toLowerCase()}`,i=a?Qu(t,n):void 0;return he(()=>{if(!a||i||t===void 0||!n)return;let s=!0;const c=()=>{const u=Qu(t,n);s&&u&&r({token:a,logo:u})},l=dg(t,n);return l?l.then(c):c(),()=>{s=!1}},[a,i,t,n]),e||i||(o&&o.token===a?o.logo:void 0)}const ug=({asset:e,label:t,logo:n,dk:o,dark:r})=>{const a=wc(n,e.chainId,e.tokenAddress),[i,s]=Eo.useState();return n===null?null:a&&a!==i?m("img",{src:a,alt:t,onError:()=>s(a),style:{width:"24px",height:"24px",borderRadius:"50%"}}):m("div",{style:{width:"24px",height:"24px",borderRadius:"50%",backgroundColor:r?o.hoverBg:"#e5e7eb",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"11px",fontWeight:600,color:o.textSecondary},children:t.charAt(0)})},pg=e=>`${e.tokenAddress}-${e.chainId}`,fg=({spiceAssets:e,loading:t,dk:n,dark:o=!1,canDirectWithdraw:r=!1,onDirectWithdraw:a,directWithdrawState:i,onWithdrawClick:s,limit:c})=>{const l=No(),[u,d]=H(!1),p=c!==void 0&&!u?Math.max(e.length-c,0):0,w=p>0?e.slice(0,c):e,f={fontSize:"11px",fontWeight:600,letterSpacing:"1px",color:n.textSecondary,marginBottom:"8px",textTransform:"uppercase"},g={backgroundColor:n.cardBg,border:o?`1px solid ${n.cardBorder}`:"1px solid #e5e7eb",borderRadius:"8px"};return t?R("div",{children:[m("div",{style:f,children:"Idle Balances"}),[1,2].map(h=>m("div",{style:{...g,padding:"12px",marginBottom:"6px",height:"48px",animation:"pulse 1.5s ease-in-out infinite",opacity:.5}},h))]}):e.length===0?R("div",{children:[m("div",{style:f,children:"Idle Balances"}),m("div",{style:{...g,padding:"16px",textAlign:"center",fontSize:"13px",color:o?n.textSecondary:"#9ca3af"},children:"No assets yet. Deposit to get started."})]}):R("div",{children:[m("div",{style:f,children:"Idle Balances"}),R("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[w.map(h=>{const b=kt(h.chainId),x=h.chainDisplayName||b?.displayName||`Chain ${h.chainId}`,C=l({symbol:h.tokenSymbol,displaySymbol:h.tokenDisplaySymbol||h.tokenDisplayName,displayName:h.tokenDisplayName,receiptTokenId:h.receiptTokenId,receiptTokenName:h.receiptTokenName,location:h.location,logoURI:h.logoURI}),v=C.symbol,A=pg(h),T=h.receiptTokenId&&s,I=T||r&&h.directWithdraw&&!!a,y=!T&&i?.key===A?i:null,k=y?.step==="pending";return R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px",...g},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[m(ug,{asset:h,label:v,logo:C.logoURI,dk:n,dark:o}),R("div",{children:[m("div",{style:{fontSize:"13px",fontWeight:500,color:n.textPrimary},children:v}),m("div",{style:{fontSize:"11px",color:o?n.textSecondary:"#9ca3af"},children:x})]})]}),R("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[R("div",{style:{textAlign:"right"},children:[m("div",{style:{fontSize:"13px",fontWeight:500,color:n.textPrimary},children:cs({balance:BigInt(h.balance),decimals:h.tokenDecimals})}),m("div",{style:{fontSize:"11px",color:y?.step==="error"?n.errorText:o?n.textSecondary:"#9ca3af"},children:y?.step==="error"?y.message||"Withdraw failed":!Number.isFinite(h.usdValue)||h.usdValue<=0?"\u2014":`${Sr(h.usdValue)}${h.priceStatus==="stale"?" (stale)":""}`})]}),I&&m("button",{onClick:()=>{k||(T?T(h.receiptTokenId):a(h))},disabled:k,title:T?"Choose withdrawal network":"Withdraw to external wallet",style:{padding:"6px 10px",borderRadius:"6px",border:o?`1px solid ${n.cardBorder}`:"1px solid #e5e7eb",backgroundColor:o?n.hoverBg:"#ffffff",color:n.textPrimary,fontSize:"11px",fontWeight:600,cursor:k?"default":"pointer",opacity:k?.6:1,whiteSpace:"nowrap"},children:k?"Withdrawing\u2026":"Withdraw"})]})]},h.positionId??`${h.owner??""}:${h.location??""}:${h.receiptTokenId??`${h.tokenAddress}-${h.chainId}`}`)}),c!==void 0&&e.length>c&&R("button",{onClick:()=>d(!u),style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",width:"100%",padding:"8px 12px",...g,cursor:"pointer",color:n.textSecondary,fontSize:"12px",fontWeight:500},children:[m("span",{children:u?"Show less":`Show ${p} more`}),m("span",{style:{transform:u?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease",fontSize:"10px"},children:"\u25BE"})]})]})]})},mg=wo(fg),hg=({appName:e,status:t,statusLabel:n,totalUsdValue:o,breakdownSubtitle:r,showUsdSummary:a,address:i,spiceAssets:s,spiceAssetsLoading:c,customSections:l,notice:u,onDepositClick:d,onWithdrawClick:p,depositDisabled:w,primaryColor:f,buttonStyles:g,dk:h,dark:b=!1,showModeToggle:x,isEmbeddedMode:C,onModeToggle:v,showConnectExternalCta:A,onConnectExternalWallet:T,connectExternalError:I,showHowItWorks:y=!0,canDirectWithdraw:k,onDirectWithdraw:E,directWithdrawState:F,idleBalancesLimit:U})=>{const[O,M]=H(!1);return R("div",{style:{display:"flex",flexDirection:"column",gap:"16px",padding:"16px",maxHeight:"calc(80vh - 32px)",overflowY:"auto"},children:[m(ig,{appName:e,status:t,statusLabel:n,totalUsdValue:o,breakdownSubtitle:r,showUsdSummary:a,address:i,dk:h,dark:b,showModeToggle:x,isEmbeddedMode:C,onModeToggle:v}),u&&m("div",{style:{padding:"10px 12px",borderRadius:"8px",backgroundColor:u.tone==="warning"?b?"rgba(245, 158, 11, 0.12)":"#fffbeb":u.tone==="success"?b?"rgba(16, 185, 129, 0.12)":"#ecfdf5":h.cardBg,border:u.tone==="warning"?b?"1px solid rgba(245, 158, 11, 0.35)":"1px solid #fde68a":u.tone==="success"?b?"1px solid rgba(16, 185, 129, 0.35)":"1px solid #a7f3d0":b?`1px solid ${h.cardBorder}`:"1px solid #e5e7eb",color:u.tone==="warning"?b?"#fbbf24":"#92400e":u.tone==="success"?b?"#34d399":"#047857":h.textSecondary,fontSize:"12px",lineHeight:1.45,fontWeight:500},children:u.message}),A&&R("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[m("button",{onClick:T,style:{width:"100%",padding:"10px 14px",borderRadius:"8px",backgroundColor:f||"#EA4B4B",color:"#ffffff",border:"none",cursor:"pointer",fontSize:"13px",fontWeight:600,fontFamily:nt.ui,transition:"opacity 150ms ease"},children:"Connect External Wallet"}),I&&m("span",{style:{fontSize:"11px",color:b?h.errorText:"#b91c1c",lineHeight:1.4},children:I})]}),m("div",{style:{height:"1px",backgroundColor:b?"#2d2d2d":"#e5e7eb"}}),m(ng,{onDepositClick:d,onWithdrawClick:p,depositDisabled:w,primaryColor:f,buttonStyles:g,dark:b}),y&&R("div",{children:[R("button",{onClick:()=>M(!O),style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"8px 12px",backgroundColor:h.cardBg,border:b?`1px solid ${h.cardBorder}`:"1px solid #e5e7eb",borderRadius:"8px",cursor:"pointer",color:h.textSecondary,fontSize:"12px",fontWeight:500},children:[m("span",{children:"How It Works"}),m("span",{style:{transform:O?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease",fontSize:"10px"},children:"\u25BE"})]}),O&&R("div",{style:{marginTop:"6px",padding:"10px 12px",backgroundColor:b?h.cardBg:"#f0fdf4",border:b?`1px solid ${h.cardBorder}`:"1px solid #bbf7d0",borderRadius:"8px",fontSize:"12px",lineHeight:1.5,color:b?h.textSecondary:"#374151"},children:["Fund your ",e," Account from any supported chain. Once funded, transact gas-free and asset-abstracted on ",e,"."]})]}),m(mg,{spiceAssets:s,loading:c,dk:h,dark:b,canDirectWithdraw:k,onDirectWithdraw:E,directWithdrawState:F,onWithdrawClick:p,limit:U}),l.map((B,D)=>m(rg,{section:B,dk:h,dark:b},D))]})},gg=wo(hg);function wg({dark:e,onSuccess:t,onError:n}){const{disconnect:o}=ii(),{logout:r}=ml(),[a,i]=H(!1);return m(Yt,{variant:"ghost",fullWidth:!0,dark:e,loading:a,onClick:async()=>{i(!0);try{o(),await r(),t()}catch(s){n(Wn(s,"Unable to disconnect. Please try again."))}finally{i(!1)}},children:"Disconnect"})}const yc=380,Mr=8,yg=[],bg={};function ju(e){return e?.trim().replace(/^spice/i,"").replace(/[^a-z0-9]/gi,"").toUpperCase()||void 0}function xg(e,t){const n=new Map;Object.entries(t).forEach(([r,a])=>{if(!Number.isFinite(a)||a<=0)return;n.set(r,a),n.set(r.toUpperCase(),a);const i=ju(r);i&&n.set(i,a)});const o=[e.symbol,e.displaySymbol,e.receiptTokenName,e.name,e.displayName];for(const r of o){if(!r)continue;const a=n.get(r)??n.get(r.toUpperCase());if(a!==void 0)return a;const i=ju(r);if(!i)continue;const s=n.get(i);if(s!==void 0)return s}return 0}const Gu=({appName:e,status:t="active",statusLabel:n,customSections:o=yg,extraAssets:r=[],tokenPrices:a={},tokenLogos:i=bg,breakdownLabels:s=[],notice:c,styles:l,dark:u,onDepositClick:d,onWithdrawClick:p,showModeToggle:w=!1,defaultMode:f,showUsdSummary:g=!0,alwaysShowEmbeddedIdle:h=!1,idleBalancesLimit:b,showDisconnect:x=!1})=>{const C=fn(cn),v=C?.mode!=="7702",A=!!C?.isWhitelistGateActive,T=!!C?.isWhitelistConfigured&&C?.isUserWhitelisted!==!0,I=J(!1);he(()=>{if(!I.current){if(Kp()){I.current=!0;return}f&&C?.setMode&&(C.setMode(f==="non7702"?"ondemand":"7702"),I.current=!0)}},[C,f]);const[y,k]=H(!1),[E,F]=H({top:0,bottom:0,left:0,placement:"below"}),U=J(null),O=J(null),{address:M,isConnected:B}=Mo(),D=C?.embeddedWalletAddress,W=C?.externalWalletAddress,{embeddedAddress:S}=zr(),{brand:q,dark:z,primaryColor:te,dk:Y}=dn(l,u),j=e??q?.appName??"Spice",K=v&&!W,X=!v||h,xe=X?D||S:M,ge=Ae(()=>C?.supportedChainIds??us("mainnet"),[C?.supportedChainIds]),ve=Or({owner:X?xe:W,role:"holding",sourceChains:ge,additionalSourceTokens:r.filter(Re=>!Re.receiptTokenId&&(!Re.owner||G(Re.owner,X?xe:W))).map(Re=>({address:Re.tokenAddress,chainId:Re.chainId,decimals:Re.tokenDecimals,symbol:Re.tokenSymbol,logoURI:Re.logoURI})),includeRollupAssets:X,enabled:X?!!xe:!!W}),Se=ve.assets.filter(Re=>Re._source==="spice"),ne=ve.walletAssets,_=ve.loading,ue=ve.refresh,P=X?xe:W,Le=Ae(()=>r.filter(Re=>!Re.owner||Re.owner.toLowerCase()===P?.toLowerCase()).map(Re=>({...Re,owner:Re.owner??P,location:Re.location??(Re.receiptTokenId?"rollup":X?"embedded":"external")})),[r,P,X]),Be=Ae(()=>{const Re=new Map(Object.entries(a).filter(([,Fe])=>Number.isFinite(Fe)&&Fe>0).map(([Fe,bt])=>[Fe.toLowerCase(),bt]));return ne.map(Fe=>({owner:Fe.owner,location:Fe.location,positionId:Ie(Fe),tokenAddress:Fe.address,tokenSymbol:Fe.symbol,tokenDecimals:Fe.decimals,chainId:Fe.chainId,chainDisplayName:io(Fe.chainId),balance:Fe.balance.toString(),balanceFormatted:Fe.balanceFormatted,usdValue:Fe.balanceUsd||(Re.get(`${Fe.chainId}:${Fe.address.toLowerCase()}`)??0)*Fe.balanceFormatted,logoURI:Fe.logoURI||i[Fe.symbol],directWithdraw:X}))},[ne,Le,i,a,X]),L=Ae(()=>{const Re=X?Se.map(ie=>{const xt=ie.balanceUsd||0,vt=Number.isFinite(ie.balanceFormatted)?ie.balanceFormatted:0,Ve=xg(ie,a),Dt=ie.priceStatus&&Ve>0?Ve*vt:xt>0?xt:Ve*vt;return{owner:ie.owner,location:ie.location,positionId:Ie(ie),tokenAddress:ie.address,tokenSymbol:ie.symbol,tokenDisplaySymbol:Zp(ie),tokenDisplayName:Yp(ie),tokenDecimals:ie.decimals,chainId:ie.chainId,chainDisplayName:oi(ie),balance:ie.balance.toString(),balanceFormatted:ie.balanceFormatted,usdValue:Dt,priceStatus:Ve>0?void 0:ie.priceStatus,logoURI:ie.logoURI,receiptTokenId:ie.receiptTokenId,receiptTokenName:ie.receiptTokenName}}):[],Fe=ie=>`${ie.owner?.toLowerCase()}:${ie.location}:${ie.chainId}:${ie.receiptTokenId??ft(ie.tokenAddress).toLowerCase()}`,bt=new Map([...ve.rollupAssets,...ne].map(ie=>[Fe({...ie,tokenAddress:ie.address}),ie])),it=new Map([...Re,...Be].map(ie=>[Fe(ie),ie]));for(const ie of K?[]:Le){const xt=Fe(ie),vt=it.get(xt);it.set(xt,vt?{...ie,...vt,logoURI:ie.logoURI??vt.logoURI,tokenDisplayName:ie.tokenDisplayName??vt.tokenDisplayName,tokenDisplaySymbol:ie.tokenDisplaySymbol??vt.tokenDisplaySymbol}:ie)}return[...it.values()].filter(ie=>BigInt(ie.balance)>0n&&rd({isDiscovered:bt.get(Fe(ie))?.isDiscovered,balanceUsd:ie.usdValue},!0)&&es(bt.get(Fe(ie))??{address:ie.tokenAddress,symbol:ie.tokenSymbol,displaySymbol:ie.tokenDisplaySymbol},C?.allowedTokens)).sort((ie,xt)=>xt.usdValue-ie.usdValue)},[X,K,Se,ve.rollupAssets,a,Be,Le,C?.allowedTokens]),V=Ae(()=>L.reduce((Re,Fe)=>Re+Fe.usdValue,0),[L]),oe=Ae(()=>o.reduce((Re,Fe)=>Re+(Fe.totalValue??0),0),[o]),le=V+oe,Z=Ae(()=>{const Re=[];V>0&&Re.push(`${Sr(V)} idle`);for(const Fe of o){const bt=s.find(it=>it.sectionTitle===Fe.title)?.label||Fe.title.toLowerCase();Re.push(`${Sr(Fe.totalValue??0)} ${bt}`)}return Re.join(" \xB7 ")},[V,o,s]),se=ae(()=>{if(!U.current)return;const Re=U.current.getBoundingClientRect(),Fe=window.innerHeight-Re.bottom-Mr,bt=Re.top-Mr,it=Fe>=400||Fe>=bt?"below":"above",ie=Math.max(Mr,Math.min(Re.right-yc,window.innerWidth-yc-Mr)),xt=it==="below"?Re.bottom+Mr:Re.top-Mr,vt=it==="above"?window.innerHeight-xt:0;F({top:xt,bottom:vt,left:ie,placement:it})},[]);Po(()=>{y&&se()},[y,se]),he(()=>{if(!y)return;const Re=it=>{U.current&&!U.current.contains(it.target)&&O.current&&!O.current.contains(it.target)&&k(!1)},Fe=it=>{it.key==="Escape"&&k(!1)},bt=()=>se();return document.addEventListener("mousedown",Re),document.addEventListener("keydown",Fe),window.addEventListener("scroll",bt,{passive:!0}),window.addEventListener("resize",se),()=>{document.removeEventListener("mousedown",Re),document.removeEventListener("keydown",Fe),window.removeEventListener("scroll",bt),window.removeEventListener("resize",se)}},[y,se]);const We=X?D||S||M:W||M,He=ae(()=>{C?.setMode&&C.setMode(v?"7702":"ondemand")},[C,v]),[ye,Oe]=H(null);let Ne=null;try{Ne=fl({onSuccess:()=>Oe(null),onError:Re=>Oe(Wn(Re,"Failed to connect wallet."))}).connectWallet}catch{Ne=null}const Ce=ae(()=>{Ne&&(k(!1),Oe(null),Ne({walletChainType:"ethereum-only"}))},[Ne]),Ge=!W&&!!Ne,ke=ae(()=>{k(!1),d?.()},[d]),Qe=ae(Re=>{k(!1),p?.(Re)},[p]),[pe,et]=H(null),Ct=X&&!!W&&!G(P,W),lt=ae(Re=>{const Fe=ne.find(bt=>bt.chainId===Re.chainId&&G(bt.address,Re.tokenAddress));Fe&&(k(!1),et(Fe))},[ne]);if(typeof window>"u")return null;const st=R("button",{ref:U,onClick:()=>k(!y),style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"8px 14px",borderRadius:"9999px",backgroundColor:z?Y.hoverBg:"#ffffff",border:z?`1px solid ${Y.cardBorder}`:"1px solid #e5e7eb",cursor:"pointer",fontSize:"13px",fontWeight:500,fontFamily:nt.ui,color:z?Y.textPrimary:"#111827",transition:"background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease",boxShadow:z?"none":"0 1px 2px rgba(0,0,0,0.05)"},children:[R("span",{children:[j," Account"]}),B&&g&&R("span",{style:{color:z?Y.textSecondary:"#6b7280"},children:["\xB7 ",Sr(le)]}),m("span",{style:{fontSize:"10px",color:z?Y.textSecondary:"#9ca3af",transform:y?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease"},children:"\u25BE"})]}),$e=y?hl.createPortal(R(vn,{children:[m("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.08)",zIndex:Ar.popover},onClick:()=>k(!1)}),R("div",{ref:O,style:{position:"fixed",top:E.placement==="below"?`${E.top}px`:"auto",bottom:E.placement==="above"?`${E.bottom}px`:"auto",left:`${E.left}px`,width:`${yc}px`,maxWidth:`calc(100vw - ${Mr*2}px)`,maxHeight:"80vh",backgroundColor:z?Y.shell:"#ffffff",border:z?`1px solid ${Y.cardBorder}`:"1px solid #e5e7eb",borderRadius:"12px",boxShadow:z?"0 10px 40px rgba(0, 0, 0, 0.5)":"0 10px 40px rgba(0, 0, 0, 0.12)",zIndex:Ar.popover+1,overflow:"hidden",animation:`accountDisplayFadeIn 200ms ${qr.out}`},children:[m(gg,{appName:j,status:t,statusLabel:n,totalUsdValue:le,breakdownSubtitle:Z,showUsdSummary:g,address:X?We:M,spiceAssets:L,spiceAssetsLoading:_,customSections:o,notice:c,onDepositClick:d?ke:void 0,onWithdrawClick:p?Qe:void 0,depositDisabled:T,primaryColor:te,buttonStyles:l?.button,dk:Y,dark:z,showModeToggle:w,isEmbeddedMode:!v,onModeToggle:He,showConnectExternalCta:Ge,onConnectExternalWallet:Ce,connectExternalError:ye,showHowItWorks:!A,canDirectWithdraw:Ct,onDirectWithdraw:lt,idleBalancesLimit:b}),x&&B&&m("div",{style:{padding:"0 16px 16px"},children:m(wg,{dark:z,onSuccess:()=>k(!1),onError:Oe})})]}),m("style",{children:`
16
+ `,Hd=({title:e,showChevron:t,expanded:n,onToggleDetails:o,showClose:r,onClose:a,fontFamily:i,labelColor:s,textPrimary:c,closeHoverBg:l,closePressedBg:d})=>{const[u,p]=H(!1),[w,f]=H(!1);return B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px"},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:o?"pointer":"default"},onClick:o,children:[B("span",{style:{fontSize:"13px",fontWeight:500,color:s,fontFamily:i},children:[e," "]}),t&&m(Xr,{color:s,direction:n?"up":"down"})]}),r&&m("button",{onClick:a,onMouseEnter:()=>p(!0),onMouseLeave:()=>{p(!1),f(!1)},onMouseDown:()=>f(!0),onMouseUp:()=>f(!1),style:{background:w?d:u?l:"none",border:"none",borderRadius:"4px",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:u||w?c:s,transform:w?"scale(0.9)":u?"scale(1.1)":"scale(1)",transition:wo.interactive},children:m(Oa,{size:16})})]})},Vd=({chainName:e,bg:t,border:n,textPrimary:o,labelColor:r,primaryColor:a})=>B("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"20px 16px",borderRadius:"8px",backgroundColor:t,border:`1px solid ${n}`,gap:"12px"},children:[m(Ko,{size:24,borderWidth:3,color:a}),B("div",{children:[m("p",{style:{margin:0,fontSize:"14px",fontWeight:600,fontFamily:tt.mono,letterSpacing:"0.5px",color:o},children:"PROCESSING TRANSACTION"}),B("p",{style:{margin:"2px 0 0 0",fontSize:"12px",color:r},children:["on ",e]})]})]}),Qd=({bg:e,border:t,left:n,right:o})=>B("div",{style:{padding:"10px 12px",borderRadius:"6px",backgroundColor:e,border:`1px solid ${t}`,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n,o]}),Yi=({isOpen:e,onClose:t,onComplete:n,closeOnComplete:o=!1,type:r,results:a,chainId:i,chainName:s,explorerUrl:c,theme:l,styles:d,dark:u,intentStatus:p,onRetry:w,onNewTx:f,onRetryTx:g,asOverlay:h=!0,isProcessing:b=!1,showStepBreakdown:v=!0})=>{const{theme:C,primaryColor:x,dark:k,dk:E}=dn(d,u),I=l||C,[y,A]=H(!1),T=s??(i?uo(i):"Network"),F=c??(i&&ss(i,"").replace(/\/tx\/.*$/,"")||void 0),L=k?E.cardBg:"#ffffff",R=k?"0 4px 20px rgba(0, 0, 0, 0.4)":"0 4px 20px rgba(0, 0, 0, 0.1)",N=k?"0 -4px 8px -2px rgba(0, 0, 0, 0.4)":"0 -4px 8px -2px rgba(0, 0, 0, 0.15)",O=E.textSecondary,D=k?E.textPrimary:"#374151",M=k?E.inputBg:"#f9fafb",S=k?E.inputBorder:"#e5e7eb",U=k?E.inputBg:"#f3f4f6",q=k?E.inputBorder:"#e5e7eb",[X,K]=H(!0),Q=k?E.inputBg:"#f9fafb",Y=k?E.hoverBg:"#f3f4f6",oe=k?{successBg:E.successBg,successBorder:E.successBorder,successText:E.successText,errorBg:E.errorBg,errorBorder:E.errorBorder,errorText:E.errorText}:{},he=p?.steps.find(de=>de.status==="failed")?.error;we(()=>{!e&&!p&&A(!1)},[e,p]);const ve=()=>{A(!0),setTimeout(()=>{window.dispatchEvent(new CustomEvent("tx-complete",{detail:{type:r,results:a}})),window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:{type:r,status:"success",results:a}})),n?.(),o&&t()},300)},ae=()=>{K(!X)};if(p){const{steps:de,overallStatus:W}=p,Me=W==="processing",Oe=W==="success",z=W==="failed",V=de.filter(ce=>ce.transactionHash)[0],te=de.length>1?de.map(ce=>ce.chainName).filter(Boolean).join(" and "):T!=="Network"?T:de[0]?.chainName||T,ue=F||(V?ss(V.chainId,V.transactionHash||"").replace(/\/tx\/.*$/,""):void 0),J=B(Sn,{children:[m(Hd,{title:Me?`Processing ${r.charAt(0).toUpperCase()+r.slice(1)}`:`${r.charAt(0).toUpperCase()+r.slice(1)} results`,showChevron:v,expanded:X,onToggleDetails:ae,showClose:!Me,onClose:t,fontFamily:d?.fontFamily||I.typography.fontFamily,labelColor:O,textPrimary:D,closeHoverBg:Q,closePressedBg:Y}),m("div",{style:{marginBottom:"16px"},children:Me?m(Vd,{chainName:te,bg:U,border:q,textPrimary:D,labelColor:O,primaryColor:x}):m(qd,{isSuccess:Oe,type:r,chainName:te,explorerUrl:ue,txHash:V?.transactionHash,dark:k,...oe,textSecondary:O})}),v&&m("div",{style:{overflow:"hidden",maxHeight:X?"300px":"0px",opacity:X?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease",marginBottom:X?"16px":"0"},children:m("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:de.map((ce,He)=>{const Xe=ce.transactionHash?ss(ce.chainId,ce.transactionHash):null;return m(Qd,{bg:M,border:S,left:m("span",{style:{fontSize:"13px",color:D},children:ce.chainName?`On ${ce.chainName}`:ce.description||`Step ${He+1}`}),right:B("span",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"12px",color:ce.status==="success"?"#10b981":ce.status==="failed"?"#ef4444":O,fontWeight:500},children:[Xe&&m("a",{href:Xe,target:"_blank",rel:"noopener noreferrer",style:{color:k?E.infoText:"#2563eb",textDecoration:"none"},onClick:Ve=>Ve.stopPropagation(),children:"View"}),ce.status==="success"?"\u2713":ce.status==="failed"?"\u2717":"\u25CB"]})},He)})})}),!Me&&B("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[z&&w&&m(Kt,{variant:"outline",fullWidth:!0,onClick:w,theme:I,styles:d,dark:k,children:"TRY AGAIN"}),f&&B(Kt,{variant:"outline",fullWidth:!0,onClick:f,theme:I,styles:d,dark:k,children:["NEW ",r.toUpperCase()," \u2192"]})]})]});return h?B("div",{style:{position:"absolute",bottom:0,left:0,right:0,zIndex:10,animation:y?"slideDown 0.3s ease-in forwards":"slideUp 0.3s ease-out forwards",pointerEvents:"auto"},children:[m("div",{style:{backgroundColor:L,borderRadius:"12px 12px 0 0",width:"100%",padding:"18px 24px 24px",boxShadow:N},children:J}),m("style",{children:zd})]}):m("div",{style:{backgroundColor:L,borderRadius:"12px",padding:"24px",width:"100%",boxShadow:R},children:J})}if(!e&&!b||!b&&(!a||a.length===0))return null;const ie=a?a.every(de=>de.success):!1,ne=a?.[0],_=[...a??[]].reverse().find(de=>de.txHash)?.txHash||ne?.txHash;return B("div",{style:{position:h?"absolute":"relative",bottom:h?0:void 0,left:h?0:void 0,right:h?0:void 0,zIndex:h?10:void 0,animation:h?y?"slideDown 0.3s ease-in forwards":"slideUp 0.3s ease-out forwards":void 0,pointerEvents:"auto",width:"100%"},children:[m("div",{style:{backgroundColor:L,borderRadius:h?"12px 12px 0 0":"12px",width:"100%",padding:"18px 0 24px",boxShadow:h?N:R},children:B("div",{style:{width:"100%",boxSizing:"border-box",padding:"0 24px"},children:[m(Hd,{title:b?`Processing ${r.charAt(0).toUpperCase()+r.slice(1)}`:`${r.charAt(0).toUpperCase()+r.slice(1)} results`,showChevron:!b&&v,expanded:X,onToggleDetails:b?void 0:ae,showClose:!b,onClose:t,fontFamily:d?.fontFamily||I.typography.fontFamily,labelColor:O,textPrimary:D,closeHoverBg:Q,closePressedBg:Y}),m("div",{style:{marginBottom:"16px",animation:"statusFadeIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both"},children:b?m(Vd,{chainName:T,bg:U,border:q,textPrimary:D,labelColor:O,primaryColor:x}):m(qd,{isSuccess:ie,type:r,chainName:T,explorerUrl:F,txHash:_,dark:k,...oe,textSecondary:O})},b?"processing":ie?"success":"error"),!b&&v&&a&&a.length>1&&m("div",{style:{overflow:"hidden",maxHeight:X?"200px":"0px",opacity:X?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease",marginBottom:X?"16px":"0"},children:m("div",{style:{maxHeight:"180px",overflowY:"auto",display:"flex",flexDirection:"column",gap:"8px"},children:a.map((de,W)=>m(Qd,{bg:M,border:S,left:B("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[m("span",{style:{fontWeight:600,fontSize:"13px",color:E.textPrimary,fontFamily:tt.mono},children:de.asset.symbol}),de.amount&&m("span",{style:{fontSize:"12px",color:O},children:de.amount})]}),right:m("span",{style:{fontSize:"12px",color:de.success?"#10b981":"#ef4444",fontWeight:500},children:de.success?"\u2713":"\u2717"})},W))})}),!b&&!ie&&a&&m("div",{style:{padding:"12px",backgroundColor:E.errorBg,border:`1px solid ${E.errorBorder}`,borderRadius:"8px",marginBottom:"16px"},children:m("p",{style:{fontSize:"13px",color:E.errorText,margin:0,lineHeight:1.5},children:he||a.find(de=>!de.success)?.error||`${r.charAt(0).toUpperCase()+r.slice(1)} failed. Please try again.`})}),!b&&B("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[!ie&&g&&B(Kt,{variant:"outline",fullWidth:!0,onClick:g,theme:I,styles:d,dark:k,children:["TRY AGAIN ",r.toUpperCase()]}),ie&&m(Kt,{variant:"outline",fullWidth:!0,onClick:ve,theme:I,styles:d,dark:k,children:"DONE"})]})]})}),m("style",{children:zd})]})};function Jm(e,t){switch(e){case"success":return{bg:t.successBg,border:t.successBorder,text:t.successText};case"warning":return{bg:t.warningBg,border:t.warningBorder,text:t.warningText};case"error":return{bg:t.errorBg,border:t.errorBorder,text:t.errorText};case"info":return{bg:t.infoBg,border:t.infoBorder,text:t.infoText}}}const jn=({variant:e,palette:t,children:n,icon:o,style:r,fontFamily:a,size:i="default"})=>{const s=Jm(e,t),c=i==="compact";return B("div",{role:e==="error"?"alert":"status",style:{backgroundColor:s.bg,border:`1px solid ${s.border}`,borderRadius:c?"7px":"8px",padding:c?"8px 10px":"12px 16px",color:s.text,fontSize:c?"12px":"13px",lineHeight:c?1.4:1.5,display:"flex",alignItems:"flex-start",gap:c?"6px":"8px",fontFamily:a,...r},children:[o&&m("span",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:o}),m("span",{style:{minWidth:0,overflowWrap:"anywhere"},children:n})]})};function Rs({activity:e,palette:t,onRefresh:n}){return B(Sn,{children:[e.actions.length>0&&m(jn,{variant:"info",palette:t,style:{marginTop:12,marginBottom:12},children:B("details",{children:[m("summary",{children:"Recent wallet activity"}),e.actions.map(o=>{const r=o.intents.flatMap(s=>s.steps),a=r.filter(s=>["success","completed"].includes(s.status)).length,i=r.some(s=>["error","reverted"].includes(s.status));return B("p",{children:[o.actionId,": ",a,"/",r.length," steps completed.",i?" Remaining work stopped; completed transfers are retained.":a<r.length?" Awaiting backend confirmation.":" Completed."]},o.actionId)}),m("button",{type:"button",onClick:()=>{e.refresh(),n?.()},children:n?"Refresh activity and balances":"Refresh activity"})]})}),e.error&&m(jn,{variant:"warning",palette:t,children:e.error})]})}const jd=tt.mono,ko=({label:e,value:t,palette:n,valueColor:o,labelColor:r,style:a})=>B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",...a},children:[m("span",{style:{fontSize:"12px",color:r??n.textSecondary,fontFamily:jd,fontWeight:500,letterSpacing:"0.03em",flexShrink:0,whiteSpace:"nowrap"},children:e}),m("span",{style:{fontSize:"13px",color:o??n.textPrimary,fontWeight:500,fontFamily:jd,minWidth:0,textAlign:"right",overflowWrap:"anywhere"},children:t})]});var Gd="data:image/svg+xml,%3csvg width='108' height='22' viewBox='0 0 108 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1.9916 11.9854V11.2041H3.98379C4.48835 11.2041 4.87897 11.0739 5.15566 10.8135C5.43236 10.5498 5.5707 10.1868 5.5707 9.72461V9.71484C5.5707 9.24935 5.43236 8.88639 5.15566 8.62598C4.87897 8.36556 4.48835 8.23535 3.98379 8.23535H1.9916V7.4541H4.2084C4.65111 7.4541 5.04173 7.5485 5.38027 7.7373C5.71882 7.92611 5.98411 8.18978 6.17617 8.52832C6.37148 8.86686 6.46914 9.25911 6.46914 9.70508V9.71484C6.46914 10.1608 6.37148 10.5547 6.17617 10.8965C5.98411 11.2383 5.71882 11.5052 5.38027 11.6973C5.04173 11.8893 4.65111 11.9854 4.2084 11.9854H1.9916ZM1.55215 14.5V7.4541H2.43106V14.5H1.55215ZM9.51875 14.5928C9.0207 14.5928 8.58939 14.4837 8.2248 14.2656C7.86348 14.0443 7.58353 13.7301 7.38496 13.3232C7.18965 12.9163 7.09199 12.4329 7.09199 11.873V11.8633C7.09199 11.3001 7.18965 10.8151 7.38496 10.4082C7.58353 10.0013 7.86348 9.6888 8.2248 9.4707C8.58939 9.2526 9.0207 9.14355 9.51875 9.14355C10.0201 9.14355 10.4514 9.2526 10.8127 9.4707C11.174 9.6888 11.4523 10.0013 11.6477 10.4082C11.8462 10.8151 11.9455 11.3001 11.9455 11.8633V11.873C11.9455 12.4329 11.8462 12.9163 11.6477 13.3232C11.4523 13.7301 11.174 14.0443 10.8127 14.2656C10.4514 14.4837 10.0201 14.5928 9.51875 14.5928ZM9.51875 13.8408C9.85078 13.8408 10.1324 13.7627 10.3635 13.6064C10.5946 13.4502 10.7704 13.2256 10.8908 12.9326C11.0145 12.6396 11.0764 12.2865 11.0764 11.873V11.8633C11.0764 11.4466 11.0145 11.0918 10.8908 10.7988C10.7704 10.5059 10.5946 10.2829 10.3635 10.1299C10.1324 9.97363 9.85078 9.89551 9.51875 9.89551C9.18672 9.89551 8.90514 9.97363 8.67402 10.1299C8.4429 10.2829 8.26549 10.5059 8.1418 10.7988C8.02135 11.0918 7.96113 11.4466 7.96113 11.8633V11.873C7.96113 12.2865 8.02135 12.6396 8.1418 12.9326C8.26549 13.2256 8.4429 13.4502 8.67402 13.6064C8.90514 13.7627 9.18672 13.8408 9.51875 13.8408ZM13.7842 14.5L12.3096 9.23633H13.1592L14.1943 13.4453H14.2725L15.4492 9.23633H16.2549L17.4316 13.4453H17.5098L18.5449 9.23633H19.3896L17.915 14.5H17.0605L15.8838 10.4277H15.8057L14.6338 14.5H13.7842ZM22.1658 14.5928C21.6645 14.5928 21.2332 14.4821 20.8719 14.2607C20.5138 14.0394 20.2371 13.7269 20.0418 13.3232C19.8497 12.9163 19.7537 12.4378 19.7537 11.8877V11.8828C19.7537 11.3392 19.8497 10.8623 20.0418 10.4521C20.2371 10.042 20.5122 9.72135 20.867 9.49023C21.2218 9.25911 21.6368 9.14355 22.1121 9.14355C22.5906 9.14355 23.0008 9.25423 23.3426 9.47559C23.6876 9.69694 23.9513 10.0062 24.1336 10.4033C24.3191 10.7972 24.4119 11.2562 24.4119 11.7803V12.1123H20.1932V11.4336H23.9773L23.5574 12.0537V11.7168C23.5574 11.3034 23.4956 10.9632 23.3719 10.6963C23.2482 10.4294 23.0773 10.2308 22.8592 10.1006C22.6411 9.96712 22.3904 9.90039 22.1072 9.90039C21.824 9.90039 21.5701 9.97038 21.3455 10.1104C21.1242 10.2471 20.9484 10.4505 20.8182 10.7207C20.688 10.9909 20.6229 11.3229 20.6229 11.7168V12.0537C20.6229 12.4281 20.6863 12.7487 20.8133 13.0156C20.9402 13.2793 21.1209 13.4827 21.3553 13.626C21.5896 13.766 21.8663 13.8359 22.1854 13.8359C22.423 13.8359 22.6297 13.8034 22.8055 13.7383C22.9813 13.6732 23.1261 13.5902 23.24 13.4893C23.354 13.3883 23.4337 13.2858 23.4793 13.1816L23.4988 13.1377H24.3484L24.3387 13.1768C24.2931 13.3558 24.2117 13.5299 24.0945 13.6992C23.9806 13.8652 23.8325 14.0166 23.6502 14.1533C23.4679 14.2868 23.2514 14.3942 23.0008 14.4756C22.7534 14.5537 22.4751 14.5928 22.1658 14.5928ZM25.4303 14.5V9.23633H26.2799V10.0176H26.358C26.4589 9.74089 26.6298 9.52604 26.8707 9.37305C27.1116 9.22005 27.4094 9.14355 27.7643 9.14355C27.8456 9.14355 27.9254 9.14844 28.0035 9.1582C28.0849 9.16471 28.1467 9.17122 28.1891 9.17773V10.0029C28.1012 9.98665 28.0149 9.97526 27.9303 9.96875C27.8489 9.95898 27.761 9.9541 27.6666 9.9541C27.3964 9.9541 27.1572 10.0078 26.9488 10.1152C26.7405 10.2227 26.5761 10.3724 26.4557 10.5645C26.3385 10.7565 26.2799 10.9811 26.2799 11.2383V14.5H25.4303ZM30.9408 14.5928C30.4395 14.5928 30.0082 14.4821 29.6469 14.2607C29.2888 14.0394 29.0121 13.7269 28.8168 13.3232C28.6247 12.9163 28.5287 12.4378 28.5287 11.8877V11.8828C28.5287 11.3392 28.6247 10.8623 28.8168 10.4521C29.0121 10.042 29.2872 9.72135 29.642 9.49023C29.9968 9.25911 30.4118 9.14355 30.8871 9.14355C31.3656 9.14355 31.7758 9.25423 32.1176 9.47559C32.4626 9.69694 32.7263 10.0062 32.9086 10.4033C33.0941 10.7972 33.1869 11.2562 33.1869 11.7803V12.1123H28.9682V11.4336H32.7523L32.3324 12.0537V11.7168C32.3324 11.3034 32.2706 10.9632 32.1469 10.6963C32.0232 10.4294 31.8523 10.2308 31.6342 10.1006C31.4161 9.96712 31.1654 9.90039 30.8822 9.90039C30.599 9.90039 30.3451 9.97038 30.1205 10.1104C29.8992 10.2471 29.7234 10.4505 29.5932 10.7207C29.463 10.9909 29.3979 11.3229 29.3979 11.7168V12.0537C29.3979 12.4281 29.4613 12.7487 29.5883 13.0156C29.7152 13.2793 29.8959 13.4827 30.1303 13.626C30.3646 13.766 30.6413 13.8359 30.9604 13.8359C31.198 13.8359 31.4047 13.8034 31.5805 13.7383C31.7563 13.6732 31.9011 13.5902 32.015 13.4893C32.129 13.3883 32.2087 13.2858 32.2543 13.1816L32.2738 13.1377H33.1234L33.1137 13.1768C33.0681 13.3558 32.9867 13.5299 32.8695 13.6992C32.7556 13.8652 32.6075 14.0166 32.4252 14.1533C32.2429 14.2868 32.0264 14.3942 31.7758 14.4756C31.5284 14.5537 31.2501 14.5928 30.9408 14.5928ZM36.1486 14.5928C35.7059 14.5928 35.3186 14.4805 34.9865 14.2559C34.6545 14.0312 34.3973 13.7155 34.215 13.3086C34.0328 12.8984 33.9416 12.4199 33.9416 11.873V11.8633C33.9416 11.3132 34.0328 10.8346 34.215 10.4277C34.3973 10.0208 34.6529 9.70508 34.9816 9.48047C35.3137 9.25586 35.7027 9.14355 36.1486 9.14355C36.3895 9.14355 36.6158 9.18262 36.8273 9.26074C37.0422 9.33561 37.2326 9.44141 37.3986 9.57812C37.5647 9.71484 37.6949 9.8776 37.7893 10.0664H37.8674V7.14648H38.717V14.5H37.8674V13.6602H37.7893C37.6818 13.8555 37.5467 14.0231 37.384 14.1631C37.2212 14.2998 37.0357 14.4056 36.8273 14.4805C36.619 14.5553 36.3928 14.5928 36.1486 14.5928ZM36.3439 13.8408C36.663 13.8408 36.938 13.7611 37.1691 13.6016C37.4003 13.4421 37.5777 13.2158 37.7014 12.9229C37.8251 12.6266 37.8869 12.2767 37.8869 11.873V11.8633C37.8869 11.4564 37.8251 11.1064 37.7014 10.8135C37.5777 10.5205 37.4003 10.2943 37.1691 10.1348C36.938 9.97526 36.663 9.89551 36.3439 9.89551C36.0249 9.89551 35.7499 9.97526 35.5188 10.1348C35.2909 10.291 35.1151 10.5156 34.9914 10.8086C34.871 11.1016 34.8107 11.4531 34.8107 11.8633V11.873C34.8107 12.2799 34.871 12.6315 34.9914 12.9277C35.1151 13.2207 35.2909 13.4469 35.5188 13.6064C35.7499 13.7627 36.0249 13.8408 36.3439 13.8408ZM45.1775 14.5928C44.9334 14.5928 44.7072 14.5553 44.4988 14.4805C44.2905 14.4056 44.1049 14.2998 43.9422 14.1631C43.7794 14.0231 43.6443 13.8555 43.5369 13.6602H43.4588V14.5H42.6092V7.14648H43.4588V10.0664H43.5369C43.6346 9.8776 43.7648 9.71484 43.9275 9.57812C44.0936 9.44141 44.2824 9.33561 44.4939 9.26074C44.7088 9.18262 44.9367 9.14355 45.1775 9.14355C45.6235 9.14355 46.0109 9.25586 46.3396 9.48047C46.6717 9.70508 46.9288 10.0208 47.1111 10.4277C47.2934 10.8346 47.3846 11.3132 47.3846 11.8633V11.873C47.3846 12.4199 47.2934 12.8984 47.1111 13.3086C46.9288 13.7155 46.6717 14.0312 46.3396 14.2559C46.0109 14.4805 45.6235 14.5928 45.1775 14.5928ZM44.9822 13.8408C45.3045 13.8408 45.5796 13.7627 45.8074 13.6064C46.0353 13.4469 46.2094 13.2207 46.3299 12.9277C46.4536 12.6315 46.5154 12.2799 46.5154 11.873V11.8633C46.5154 11.4531 46.4536 11.1016 46.3299 10.8086C46.2094 10.5156 46.0353 10.291 45.8074 10.1348C45.5796 9.97526 45.3045 9.89551 44.9822 9.89551C44.6632 9.89551 44.3881 9.97526 44.157 10.1348C43.9259 10.2943 43.7485 10.5205 43.6248 10.8135C43.5011 11.1064 43.4393 11.4564 43.4393 11.8633V11.873C43.4393 12.2767 43.5011 12.6266 43.6248 12.9229C43.7485 13.2158 43.9259 13.4421 44.157 13.6016C44.3881 13.7611 44.6632 13.8408 44.9822 13.8408ZM48.6568 16.3457C48.6015 16.3457 48.5396 16.3424 48.4713 16.3359C48.4029 16.3327 48.3395 16.3262 48.2809 16.3164V15.6182C48.3329 15.6279 48.3899 15.6344 48.4518 15.6377C48.5136 15.641 48.5738 15.6426 48.6324 15.6426C48.8733 15.6426 49.0702 15.5807 49.2232 15.457C49.3795 15.3333 49.5048 15.1201 49.5992 14.8174L49.6969 14.5049L47.7486 9.23633H48.6568L50.2779 14.0996L49.941 13.5674H50.3414L50.0045 14.0996L51.6207 9.23633H52.5143L50.4586 14.8223C50.3154 15.2161 50.164 15.5238 50.0045 15.7451C49.845 15.9665 49.6578 16.1211 49.443 16.209C49.2314 16.3001 48.9693 16.3457 48.6568 16.3457Z' fill='%230E0D0B'/%3e%3cpath d='M62.7081 13.27C62.742 13.27 62.7642 13.3057 62.7491 13.3362V13.336L61.1229 16.6083C61.0892 16.6761 60.9926 16.6759 60.959 16.6083L59.3382 13.336C59.3232 13.3057 59.3453 13.27 59.3792 13.27H62.7081Z' fill='%23EA4B4B'/%3e%3cpath d='M61.0026 9.71913C61.0194 9.68524 61.0678 9.68524 61.0845 9.71913L62.747 13.0897C62.762 13.12 62.7399 13.1557 62.706 13.1557H59.3763C59.3424 13.1557 59.3203 13.12 59.3353 13.0897L61.0026 9.71913Z' fill='%23EA4B4B'/%3e%3cpath d='M60.8426 9.63827C60.8766 9.63827 60.8987 9.6741 60.8835 9.70444L59.2164 13.0594C59.1995 13.0932 59.1513 13.0932 59.1345 13.0594L57.5001 9.77047C57.47 9.70962 57.5142 9.63827 57.5821 9.63827H60.8426Z' fill='%23EA4B4B'/%3e%3cpath d='M64.5036 9.63617C64.5715 9.63618 64.6157 9.70753 64.5855 9.76838H64.5854L62.9512 13.0573C62.9344 13.0911 62.8862 13.0912 62.8692 13.0573L61.2021 9.70235C61.187 9.672 61.2091 9.63617 61.2431 9.63617H64.5036Z' fill='%23EA4B4B'/%3e%3cpath d='M62.8284 6.18281C62.862 6.11518 62.9586 6.11518 62.9922 6.18281L64.5855 9.38969C64.6157 9.45054 64.5715 9.52189 64.5036 9.52189H61.2431C61.2091 9.52189 61.187 9.48605 61.2021 9.45571L62.8283 6.18265L62.8284 6.18281Z' fill='%23EA4B4B'/%3e%3cpath d='M62.3131 6.13196C62.381 6.13196 62.4252 6.20331 62.3951 6.26416C62.154 6.74935 61.9128 7.23455 61.6718 7.71975H61.6716C61.4225 8.22125 61.1733 8.72259 60.9242 9.22409C60.9074 9.25799 60.859 9.25799 60.8422 9.22409L60.6305 8.79587C60.6275 8.78957 60.6259 8.78263 60.6259 8.77553V6.22349C60.6259 6.17297 60.6668 6.13196 60.7173 6.13196H62.3131Z' fill='%23EA4B4B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M74.8537 10.0096C75.2721 10.0096 75.654 10.1125 75.9993 10.3184C76.3513 10.5177 76.6303 10.8032 76.8361 11.1751C77.0487 11.547 77.1549 11.9953 77.1549 12.52V12.6495C77.1549 13.1675 77.052 13.6158 76.8461 13.9943C76.6402 14.3729 76.3613 14.6618 76.0093 14.861C75.664 15.0603 75.2788 15.1599 74.8537 15.1599C74.515 15.1599 74.2261 15.1134 73.9871 15.0204C73.7546 14.9341 73.5653 14.8212 73.4192 14.6817C73.2731 14.5423 73.1602 14.3995 73.0805 14.2534H72.941V16.9659L72.1541 16.0013V10.1491H72.9211V10.956H73.0352C73.2729 10.6733 73.3893 10.4911 73.6683 10.2985C73.9538 10.1059 74.349 10.0096 74.8537 10.0096ZM74.6445 10.7069C74.1464 10.7069 73.7347 10.8696 73.4092 11.195C73.0905 11.5138 72.9311 11.9621 72.9311 12.5399V12.6296C72.9311 13.2074 73.0905 13.659 73.4092 13.9844C73.7347 14.3032 74.1464 14.4626 74.6445 14.4626C75.1492 14.4626 75.5577 14.3032 75.8698 13.9844C76.1886 13.659 76.348 13.2074 76.348 12.6296V12.5399C76.348 11.9621 76.1886 11.5138 75.8698 11.195C75.5577 10.8696 75.1492 10.7069 74.6445 10.7069Z' fill='%230E0D0B'/%3e%3cpath d='M78.5848 11.9583L78.5555 15.4596L77.7681 14.4846V10.9583L78.5848 11.9583Z' fill='%230E0D0B'/%3e%3cpath d='M101.588 10.2986H102.444L103 10.986H101.588V10.9867H100.802L101.588 11.9623V14.1937C101.588 14.3929 101.685 14.4926 101.877 14.4926H102.379L102.928 15.17H101.668C101.389 15.17 101.173 15.0936 101.021 14.9409C100.874 14.7881 100.801 14.5789 100.801 14.3133V10.986H99.8799L99.3217 10.2986H100.801V9.13501H101.588V10.2986Z' fill='%230E0D0B'/%3e%3cpath d='M69.0133 7.90764C69.4848 7.90764 69.9065 7.99068 70.2784 8.15671C70.6569 8.3161 70.9525 8.55517 71.165 8.87395C71.3842 9.18609 71.4938 9.58126 71.4938 10.0594V10.4778H70.667V10.0594C70.667 9.72072 70.5939 9.44842 70.4477 9.24254C70.3083 9.03666 70.1124 8.88392 69.86 8.7843C69.6143 8.68469 69.332 8.63487 69.0133 8.63487C68.555 8.63487 68.1864 8.7378 67.9075 8.94367C67.6286 9.14291 67.4891 9.4285 67.4891 9.80041C67.4891 10.0461 67.5488 10.2453 67.6684 10.3981C67.7879 10.5508 67.9573 10.677 68.1764 10.7767C68.3956 10.8696 68.658 10.9527 68.9635 11.0257L69.4815 11.1552C69.8866 11.2416 70.2485 11.3611 70.5673 11.5138C70.8927 11.6599 71.1517 11.8625 71.3443 12.1215C71.5369 12.3739 71.6332 12.706 71.6332 13.1177C71.6332 13.5295 71.5303 13.8881 71.3244 14.1936C71.1185 14.4991 70.8263 14.7382 70.4477 14.9109C70.0758 15.0769 69.6375 15.1599 69.1328 15.1599C68.6281 15.1599 68.1765 15.0702 67.778 14.8909C67.3795 14.7116 67.0641 14.4426 66.8316 14.084C66.6058 13.7187 66.4929 13.2638 66.4929 12.7192V12.51H67.3197V12.7192C67.3197 13.297 67.4891 13.7287 67.8278 14.0143C68.1665 14.2932 68.6015 14.4327 69.1328 14.4327C69.6774 14.4327 70.0924 14.3098 70.378 14.0641C70.6636 13.8183 70.8064 13.5095 70.8064 13.1376C70.8064 12.8786 70.74 12.6727 70.6072 12.52C70.481 12.3673 70.3017 12.2444 70.0692 12.1514C69.8368 12.0518 69.5645 11.9655 69.2523 11.8924L68.7343 11.7629C68.3292 11.6566 67.9706 11.5271 67.6584 11.3744C67.3463 11.2216 67.1006 11.0224 66.9213 10.7767C66.7486 10.5243 66.6623 10.2022 66.6623 9.81035C66.6623 9.41852 66.7585 9.07981 66.9511 8.79424C67.1504 8.50866 67.426 8.28953 67.778 8.13678C68.1366 7.98404 68.5484 7.90764 69.0133 7.90764Z' fill='%230E0D0B'/%3e%3cpath d='M81.6544 10.0096C82.1193 10.0096 82.5145 10.0959 82.8399 10.2686C83.1719 10.4412 83.431 10.6704 83.6169 10.956C83.8095 11.2415 83.9324 11.5471 83.9855 11.8725L83.2185 12.0318C83.1853 11.7928 83.1056 11.5736 82.9794 11.3744C82.8598 11.1752 82.6905 11.0158 82.4713 10.8962C82.2521 10.7767 81.9832 10.7169 81.6644 10.7169C81.339 10.7169 81.0468 10.7899 80.7877 10.936C80.5354 11.0821 80.3328 11.2914 80.1801 11.5637C80.034 11.836 79.9609 12.1614 79.9609 12.5399V12.6296C79.9609 13.0081 80.034 13.3335 80.1801 13.6058C80.3328 13.8781 80.5354 14.0873 80.7877 14.2334C81.0468 14.3795 81.339 14.4526 81.6644 14.4526C82.1492 14.4526 82.5178 14.3264 82.7702 14.0741C83.0292 13.8217 83.1886 13.5095 83.2483 13.1376L84.0254 13.307C83.9523 13.6257 83.8195 13.9279 83.6269 14.2135C83.4343 14.4991 83.172 14.7282 82.8399 14.9009C82.5145 15.0735 82.1193 15.1599 81.6544 15.1599C81.1829 15.1599 80.7579 15.0603 80.3793 14.861C80.0074 14.6551 79.7119 14.363 79.4927 13.9844C79.2802 13.6059 79.1739 13.1575 79.1739 12.6395V12.5299C79.1739 12.0053 79.2802 11.557 79.4927 11.1851C79.7119 10.8066 80.0074 10.5177 80.3793 10.3184C80.7579 10.1126 81.1829 10.0096 81.6544 10.0096Z' fill='%230E0D0B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M86.7515 10.0096C87.2097 10.0096 87.6149 10.1092 87.9668 10.3084C88.3188 10.501 88.5944 10.78 88.7937 11.1452C88.9929 11.5105 89.0925 11.9389 89.0925 12.4304V12.7889H85.1177C85.1377 13.3136 85.3071 13.7254 85.6258 14.0243C85.9446 14.3165 86.3431 14.4626 86.8212 14.4626C87.2396 14.4626 87.5617 14.3663 87.7875 14.1737C88.0133 13.9811 88.186 13.752 88.3056 13.4863L88.983 13.815C88.8833 14.0209 88.7439 14.2268 88.5646 14.4327C88.3919 14.6386 88.1628 14.8113 87.8772 14.9507C87.5983 15.0902 87.2396 15.1599 86.8013 15.1599C86.3099 15.1599 85.8782 15.057 85.5063 14.8511C85.1344 14.6386 84.8455 14.343 84.6396 13.9645C84.4337 13.5859 84.3307 13.1476 84.3307 12.6495V12.5299C84.3307 12.0252 84.4337 11.5836 84.6396 11.205C84.8455 10.8265 85.1311 10.5342 85.4963 10.3284C85.8616 10.1159 86.28 10.0096 86.7515 10.0096ZM86.7515 10.7069C86.3066 10.7069 85.9413 10.8331 85.6557 11.0855C85.3701 11.3378 85.1941 11.6898 85.1277 12.1414H88.2956C88.269 11.6898 88.113 11.3378 87.8274 11.0855C87.5485 10.8331 87.1898 10.7069 86.7515 10.7069Z' fill='%230E0D0B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M97.1624 10.0096C97.6207 10.0096 98.0258 10.1092 98.3778 10.3084C98.7298 10.501 99.0054 10.78 99.2046 11.1452C99.4039 11.5105 99.5035 11.9389 99.5035 12.4304V12.7889H95.5287C95.5487 13.3136 95.718 13.7254 96.0368 14.0243C96.3555 14.3165 96.754 14.4626 97.2322 14.4626C97.6505 14.4626 97.9727 14.3663 98.1985 14.1737C98.4243 13.9811 98.5969 13.752 98.7165 13.4863L99.3939 13.815C99.2943 14.0209 99.1548 14.2268 98.9755 14.4327C98.8028 14.6386 98.5737 14.8113 98.2881 14.9507C98.0092 15.0902 97.6506 15.1599 97.2123 15.1599C96.7208 15.1599 96.2892 15.057 95.9172 14.8511C95.5453 14.6386 95.2564 14.343 95.0505 13.9645C94.8446 13.5859 94.7417 13.1476 94.7417 12.6495V12.5299C94.7417 12.0252 94.8446 11.5836 95.0505 11.205C95.2564 10.8265 95.542 10.5342 95.9073 10.3284C96.2725 10.1158 96.6909 10.0096 97.1624 10.0096ZM97.1624 10.7069C96.7175 10.7069 96.3522 10.8331 96.0666 11.0855C95.7811 11.3378 95.6051 11.6898 95.5387 12.1414H98.7066C98.68 11.6898 98.5239 11.3378 98.2383 11.0855C97.9594 10.8331 97.6008 10.7069 97.1624 10.7069Z' fill='%230E0D0B'/%3e%3cpath d='M92.2484 10.0594C92.6137 10.0594 92.9391 10.1358 93.2247 10.2885C93.5169 10.4413 93.7494 10.6671 93.9221 10.966C94.0947 11.2648 94.1811 11.6334 94.1811 12.0717V15.1458H93.394V12.1315C93.394 11.6467 93.2712 11.2947 93.0255 11.0755C92.7864 10.8564 92.461 10.7468 92.0492 10.7468C91.5777 10.7468 91.1925 10.8995 90.8936 11.205C90.6014 11.5105 90.4553 11.9655 90.4553 12.5698V15.1458H89.6683V10.1491H90.4354V10.9582H90.5361C90.7355 10.7018 90.8604 10.5342 91.1128 10.3483C91.3718 10.1557 91.7503 10.0594 92.2484 10.0594Z' fill='%230E0D0B'/%3e%3cpath d='M78.5932 10.9581H77.7681V10.1514H78.6L78.5932 10.9581Z' fill='%230E0D0B'/%3e%3c/svg%3e";const Kd=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),Co=({isOpen:e,onClose:t,title:n,subtitle:o,children:r,overlayContent:a,overlayDimmed:i=!0,styles:s,theme:c,maxWidth:l="522px",dark:d,footerLinkText:u,bannerSrc:p,bannerAlt:w,closeOnBackdropClick:f=!1})=>{const{theme:g,dark:h,dk:b,palette:v}=dn(s,d),C=d??h,x=c||g,k=s?.fontFamily||x.typography.fontFamily||tt.ui,E=s?.primaryColor||x.colors.primary,I=Z(null),y=Z(null),A=Z(null),T=sl(),[F,L]=H(!1),[R,N]=H(!1),O=Z(t);if(we(()=>{O.current=t},[t]),we(()=>{if(!e){N(!1);return}y.current=document.activeElement;const S=document.body.style.overflow;document.body.style.overflow="hidden";const U=requestAnimationFrame(()=>{const Q=requestAnimationFrame(()=>N(!0));A.current=Q}),q=()=>{const Q=I.current;Q&&(Q.querySelectorAll(Kd)[0]??Q).focus({preventScroll:!0})},X=Q=>{if(Q.key==="Escape"){Q.stopPropagation(),O.current();return}if(Q.key!=="Tab")return;const Y=I.current;if(!Y)return;const oe=Array.from(Y.querySelectorAll(Kd)).filter(ie=>!ie.hasAttribute("aria-hidden"));if(oe.length===0){Q.preventDefault(),Y.focus();return}const he=oe[0],ve=oe[oe.length-1],ae=document.activeElement;Q.shiftKey&&ae===he?(Q.preventDefault(),ve.focus()):!Q.shiftKey&&ae===ve&&(Q.preventDefault(),he.focus())},K=requestAnimationFrame(q);return document.addEventListener("keydown",X),()=>{cancelAnimationFrame(K),cancelAnimationFrame(U),A.current&&cancelAnimationFrame(A.current),document.removeEventListener("keydown",X),document.body.style.overflow=S;const Q=y.current;Q&&typeof Q.focus=="function"&&Q.focus({preventScroll:!0})}},[e]),!e)return null;const D=!!p&&!F,M=w??"";return m("div",{onMouseDown:S=>{f&&S.target===S.currentTarget&&O.current()},style:{position:"fixed",inset:0,backgroundColor:C?"rgba(0,0,0,0.72)":"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"clamp(16px, 4vw, 48px)",zIndex:Cr.modal,opacity:R?1:0,transition:`opacity ${oi.normal} ${qr.out}`},children:m("div",{ref:I,role:"dialog","aria-modal":"true","aria-labelledby":T,tabIndex:-1,style:{backgroundColor:v.shellBorder,borderRadius:"12px",padding:"5px",width:"100%",maxWidth:l,boxSizing:"border-box",boxShadow:"0 16px 48px rgba(0, 0, 0, 0.4)",outline:"none",transform:R?"scale(1)":"scale(0.96)",transition:`transform ${oi.slow} ${qr.out}`,display:"flex",flexDirection:"column",maxHeight:"100%"},children:B("div",{style:{backgroundColor:v.shell,border:`1px solid ${v.shellInnerBorder}`,borderRadius:"9px",width:"100%",padding:"0",display:"flex",flexDirection:"column",position:"relative",flex:"0 1 auto",minHeight:0,overflowY:"auto",overflowX:"hidden"},children:[a&&i&&m("div",{style:{position:"absolute",inset:0,backgroundColor:"rgba(0, 0, 0, 0.4)",zIndex:5,pointerEvents:"none",borderRadius:"12px"},"aria-hidden":"true"}),D&&B("div",{style:{position:"relative",width:"100%"},children:[m("img",{src:p,style:{width:"100%",height:"auto",display:"block",borderRadius:"6px 6px 0 0"},alt:M,"aria-hidden":M===""?"true":void 0,onError:()=>L(!0)}),m("button",{type:"button",onClick:t,"aria-label":"Close dialog",style:{position:"absolute",top:"8px",right:"8px",minWidth:"44px",minHeight:"44px",color:v.textPrimary,padding:"8px",backgroundColor:"transparent",borderRadius:"9999px",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1},children:m(Oa,{size:28,strokeWidth:2.5})})]}),B("div",{style:{padding:"28px 28px 0 28px",position:"relative"},children:[!D&&m("button",{type:"button",onClick:t,"aria-label":"Close dialog",style:{position:"absolute",top:"10px",right:"10px",minWidth:"44px",minHeight:"44px",color:v.textSecondary,padding:"10px",backgroundColor:"transparent",borderRadius:"50%",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s",fontSize:"18px",fontWeight:"600"},onMouseEnter:S=>{S.currentTarget.style.backgroundColor=C?`${E}1a`:"#f3f4f6"},onMouseLeave:S=>{S.currentTarget.style.backgroundColor="transparent"},children:m(Oa,{size:24,strokeWidth:2.4})}),m("h2",{id:T,style:{fontSize:"22px",fontWeight:"700",color:v.textPrimary,margin:"0",fontFamily:k,lineHeight:"1.12"},children:n})]}),o&&m("div",{style:{padding:"11px 28px 13px 28px",fontSize:"12px",color:v.textSecondary,margin:"0",lineHeight:"1.35",fontFamily:k,borderBottom:C?`1px solid ${b.cardBorder}`:"1px solid #cdcfd1"},children:o}),r,B("div",{style:{padding:"12px 28px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("img",{src:Gd,alt:"","aria-hidden":"true",width:108,height:22,decoding:"async",style:{width:"108px",height:"22px",opacity:C?.85:1,filter:C?"brightness(0) invert(1)":"none",margin:0,display:"block"}}),m("a",{href:"https://spiceflow-docs.spicenet.io",target:"_blank",rel:"noopener noreferrer",style:{fontSize:"10px",color:v.textSecondary,textDecoration:"none",display:"flex",alignItems:"center",gap:"4px",fontFamily:k,lineHeight:"1"},children:m("span",{style:{color:E,textDecoration:"underline",fontWeight:"500"},children:u??"Learn more \u2192"})})]}),a]})})})};function $m(e){const t=new Set(uf(e).map(n=>n.toLowerCase()));return t.add(e.toLowerCase()),t}const _m=["USDC","USDT","WETH","WBTC"];function Yd(e,t){const n=Ct(t);if(!n)return;if(n.nativeCurrency.symbol.toUpperCase()===e.toUpperCase())return{address:zt,symbol:n.nativeCurrency.symbol,decimals:n.nativeCurrency.decimals,chainId:t};const o=n.supportedTokens?.find(r=>r.symbol.toUpperCase()===e.toUpperCase());if(o)return{address:o.address.toLowerCase(),symbol:o.symbol,decimals:o.decimals,chainId:t}}function $o(e,t,n){const o=Ct(t);if(!o)return;if(n!==void 0){if(Ae(e)&&!Yt(e,n))return;const s=Ti(e,n,t);return s?{address:s.address.toLowerCase(),symbol:s.symbol,decimals:s.decimals,chainId:t}:void 0}if(Ae(e))return;const r=pl(e);if(!r)return;const a=$m(e),i=o.supportedTokens?.find(s=>s.equivalenceGroup===r&&a.has(s.address.toLowerCase()));if(i)return{address:i.address.toLowerCase(),symbol:i.symbol,decimals:i.decimals,chainId:t}}function eh(e){const{sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,intermediaryCandidates:a=_m}=e;if(vs(t,n))return{strategy:"direct",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} fronted directly`};if(o===r&&(Ae(t.address)||!Yt(t.address,o)))return{strategy:"direct-swap",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} \u2192 ${n.symbol} on chain ${o}, no escrow`};if($o(t.address,r,o))return{strategy:"direct",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} fronted on destination, swapped to ${n.symbol}`};if($o(n.address,o,r))return{strategy:"source-swap",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} \u2192 ${n.symbol} on source chain, then fronted`};for(const i of a){const s=Yd(i,o);if(!s||vs(t,s)||vs(n,s))continue;const c=Yd(i,r);if(c&&vs(s,c))return{strategy:"intermediary",sourceAsset:t,outputAsset:n,intermediaryAsset:c,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} \u2192 ${i} on source, fronted, then ${i} \u2192 ${n.symbol} on destination`}}throw new xe("ROUTE_STRATEGY_ERROR",`No viable cross-chain route found from ${t.symbol} (chain ${o}) to ${n.symbol} (chain ${r}). No intermediary asset is available on both chains.`,{sourceAsset:t.symbol,outputAsset:n.symbol,sourceChainId:o,destinationChainId:r,candidatesChecked:a})}async function th(e){const{route:t,sourceAmount:n,userAddress:o,registry:r,actionCalls:a,slippage:i}=e;async function s(c,l,d,u){const p=await r.resolveSwap({type:"swap",tokenIn:l,tokenOut:d,amountIn:u,maxSlippage:i},c,o);if(!p)throw new xe("NO_LIQUIDITY",`No venue returned a quote for ${l} \u2192 ${d} on chain ${c}. No liquidity available for this pair.`,{chainId:c,tokenIn:l,tokenOut:d,amountIn:u.toString()});return p}switch(t.strategy){case"direct-swap":{const c=await s(t.destinationChainId,t.sourceAsset.address,t.outputAsset.address,n);return{chainBatches:[{chainId:t.destinationChainId,calls:[...c.calls,...a]}],solverFrontToken:t.outputAsset,solverFrontAmount:0n,resolvedSwaps:{sourceSwap:c}}}case"direct":{const c=$o(t.sourceAsset.address,t.destinationChainId,t.sourceChainId)||t.sourceAsset,l=tn(n,t.sourceAsset.decimals,c.decimals,"floor");if(G(c.address,t.outputAsset.address))return{chainBatches:[{chainId:t.destinationChainId,calls:a}],solverFrontToken:c,solverFrontAmount:l,resolvedSwaps:{}};const d=await s(t.destinationChainId,c.address,t.outputAsset.address,l);return{chainBatches:[{chainId:t.destinationChainId,calls:[...d.calls,...a]}],solverFrontToken:c,solverFrontAmount:l,resolvedSwaps:{destinationSwap:d}}}case"source-swap":{const c=$o(t.outputAsset.address,t.sourceChainId,t.destinationChainId);if(!c)throw new xe("ROUTE_TOKEN_NOT_FOUND",`Output asset ${t.outputAsset.symbol} (${t.outputAsset.address}) not found on source chain ${t.sourceChainId}`,{token:t.outputAsset.symbol,address:t.outputAsset.address,chainId:t.sourceChainId,side:"source"});const l=$o(t.outputAsset.address,t.destinationChainId,t.destinationChainId);if(!l)throw new xe("ROUTE_TOKEN_NOT_FOUND",`Output asset ${t.outputAsset.symbol} (${t.outputAsset.address}) not found on destination chain ${t.destinationChainId}`,{token:t.outputAsset.symbol,address:t.outputAsset.address,chainId:t.destinationChainId,side:"destination"});const d=await s(t.sourceChainId,t.sourceAsset.address,c.address,n);return{chainBatches:[{chainId:t.sourceChainId,calls:d.calls},{chainId:t.destinationChainId,calls:a}],solverFrontToken:l,solverFrontAmount:tn(d.amountOutMinimum,c.decimals,l.decimals,"floor"),resolvedSwaps:{sourceSwap:d}}}case"intermediary":{if(!t.intermediaryAsset)throw new xe("ROUTE_STRATEGY_ERROR","Intermediary strategy requires an intermediary asset but none was provided in the route plan.",{strategy:t.strategy});const c=$o(t.intermediaryAsset.address,t.sourceChainId,t.destinationChainId);if(!c)throw new xe("ROUTE_TOKEN_NOT_FOUND",`Intermediary ${t.intermediaryAsset.symbol} (${t.intermediaryAsset.address}) not found on source chain ${t.sourceChainId}`,{token:t.intermediaryAsset.symbol,address:t.intermediaryAsset.address,chainId:t.sourceChainId,side:"source"});const l=await s(t.sourceChainId,t.sourceAsset.address,c.address,n),d=tn(l.amountOutMinimum,c.decimals,t.intermediaryAsset.decimals,"floor"),u=await s(t.destinationChainId,t.intermediaryAsset.address,t.outputAsset.address,d);return{chainBatches:[{chainId:t.sourceChainId,calls:l.calls},{chainId:t.destinationChainId,calls:[...u.calls,...a]}],solverFrontToken:t.intermediaryAsset,solverFrontAmount:d,resolvedSwaps:{sourceSwap:l,destinationSwap:u}}}default:throw new xe("ROUTE_STRATEGY_ERROR",`Unknown route strategy: ${t.strategy}`,{strategy:t.strategy})}}function nh(e,t,n){if(!e||!t)return null;if(e._source==="wallet"){if(t===e.chainId)return{address:e.address,symbol:e.symbol,name:e.name||e.symbol,decimals:e.decimals,logoURI:e.logoURI};const u=ir(t).find(p=>p.equivalenceGroup==="USDC"&&p.symbol.toUpperCase()==="USDC");return!u||n.length>0&&!n.some(p=>G(p.address,u.address))?null:{address:u.address,symbol:"USDC",name:u.name||"USD Coin",decimals:u.decimals,logoURI:u.logo}}const o=Qr(e,t),r=Object.entries(e.chainTokens??{}).flatMap(([u,p])=>{const w=_n(u);return w?.chainId===t?[{parsed:w,detail:p}]:[]}),a=u=>n.find(p=>G(p.address,u))??null,i=u=>{const p=r.find(({parsed:g})=>G(g.address,u));if(!p)return null;const w=Ct(t);if(Ae(u))return w?{address:zt,symbol:w.nativeCurrency.symbol,name:w.nativeCurrency.name,decimals:w.nativeCurrency.decimals,logoURI:e.logoURI}:null;const f=w?.supportedTokens?.find(g=>G(g.address,u));return!f||!Fi(e,u,t)?null:{address:p.parsed.address,symbol:f.symbol,name:f.name||p.detail?.name||e.displayName||e.name||e.symbol,decimals:f.decimals,logoURI:f.logo||e.logoURI}},s=r.map(({parsed:u})=>u.address).filter(Ae);for(const u of[...o,...s]){if(Ae(u)){const f=i(u);if(f)return f}const p=a(u);if(p)return p;const w=i(u);if(w)return w}if(e.chainTokens||e.receiptTokenId)return null;const c=fo(e,t);if(c){const u=a(c);if(u)return u}const l=$o(e.address,t,e.chainId);return l?a(l.address)||(n.length>0?null:{address:l.address,symbol:l.symbol||e.symbol,name:e.displayName||e.name||e.symbol,decimals:l.decimals??e.decimals,logoURI:e.logoURI}):null}function oh(e){const t=e.find(n=>Lo(n.chainId))?.calls?.[0]?.data;if(!t)return null;try{const n=Jn({abi:us,data:t});return n.functionName!=="createWithdrawalRequest"?null:n.args[0].transfers.map(o=>({token:o.token,recipient:o.to,amount:o.amount}))}catch{return null}}function rh(e,t){if(!e||e.length!==t.length)return!1;const n=o=>o.reduce((r,a)=>r+a.amount,0n);return n(e)!==n(t)?!1:e.every((o,r)=>{const a=t[r];return o.token.toLowerCase()!==a.token.toLowerCase()||o.recipient.toLowerCase()!==a.recipient.toLowerCase()?!1:o.recipient.toLowerCase()===bn.toLowerCase()?ol(o.amount,a.amount,100n):o.recipient.toLowerCase()!==Qn.toLowerCase()||o.amount===a.amount})}function ah(e,t){const n=e.intents.flatMap(a=>a.batches).filter(a=>{const i=Yo(a);return BigInt(a.quotedAmount)>0n||BigInt(a.totalDebit)>0n||i.totalFee>0n}),o=n.filter(a=>a.chainId===t),r=o.length>0?o:n;return r.length===1?r[0]:null}function sh(e){const t=new Map;for(const n of e){if(n.amount<=0n)continue;const o=n.token.toLowerCase(),r=n.recipient.toLowerCase(),a=`${o}:${r}`,i=t.get(a);i?i.amount+=n.amount:t.set(a,{...n})}return[...t.values()]}function Zd(e,t){if(!e.token||!e.recipient||e.chainId===null)return null;const n=ah(t,e.chainId);if(!n)return null;const{gasFee:o,bridgeFee:r,spicenetFee:a}=Yo(n),i=o+r,s=e.grossAmountRaw-i-a;if(s<=0n)throw new Error("Withdrawal amount does not cover the network fee.");const c=[{token:e.token.address,recipient:e.recipient,amount:s}];return i>0n&&c.push({token:e.token.address,recipient:bn,amount:i}),a>0n&&c.push({token:e.token.address,recipient:Qn,amount:a}),sh(c)}function ih(e,t,n){const o=Zd(e,t);return!o||rh(oh(n),o)?null:e.buildWithdrawBatches(o)}async function Xd(e){if(e.executionContextRef.current){await Jd(e);return}if(!e.batches.length||!e.walletAddress||!e.recipient)return;const t=ze.getBaseUrl();e.ui.setIsExecuting(!0),e.ui.setExecutionError(null),e.ui.setExecutionProgress(null),e.executionContextRef.current=null,e.ui.setLockedGasFee(e.gasFee);try{let n=e.batches;if(e.isNon7702&&e.onWithdrawExecute)await e.onWithdrawExecute(e.amount);else{if(!e.isNon7702&&!n.some(a=>Lo(a.chainId)))throw new Error("Spice withdrawals must include a Spicenet funding batch before the destination chain batch.");const o=e.token?.address||"",r={useCustomTransfers:!0};if(e.buildSpicenetBatch){const a=e.feeEstimate??await e.execution.estimate(n,o,0n,e.withdrawalSourceBudget?{...r,withdrawalSourceBudget:!0}:r),i=Zd(e,a);i&&(n=e.buildWithdrawBatches(i));const s=a.intents[0]?.batches.find(c=>c.chainId===e.chainId)??a.intents[0]?.batches[0]??null;s&&e.ui.setLockedGasFee(Yo(s).totalFee)}else{const a=(e.feeEstimate??await e.execution.estimate(n,o,0n,r)).intents[0]?.batches[0]??null;a&&e.ui.setLockedGasFee(Yo(a).totalFee)}await e.execution.execute(n,o,0n,a=>{a.actionId&&a.intentId&&typeof a.intentIndex=="number"&&typeof a.totalSteps=="number"&&(e.executionContextRef.current={actionId:a.actionId,intentId:a.intentId,intentIndex:a.intentIndex,totalSteps:a.totalSteps,autoContinue:a.autoContinue,apiUrl:t,finish:()=>Zi(e)}),e.ui.setExecutionProgress(a)},void 0,e.buildSpicenetBatch?{...r,adjustBatchesForEstimate:({feeEstimate:a,chainBatches:i})=>ih(e,a,i)}:{...r,skipPreSubmitFeeEstimate:!0})}await Zi(e)}catch(n){const o=n instanceof Error?n.message:"Withdraw failed";e.ui.setExecutionError(o)}finally{e.ui.setIsExecuting(!1)}}async function Zi(e){window.dispatchEvent(new CustomEvent("withdraw-completed")),await e.onWithdrawSuccess?.({token:e.token?.symbol||"",amount:e.amount,chainId:e.chainId})}async function Jd(e){const t=e.executionContextRef.current;if(!t){if(e.isNon7702&&e.onWithdrawExecute){await Xd(e);return}e.ui.setExecutionError("The previous withdrawal action is unavailable. Reconcile it before starting another.");return}const n=t.apiUrl?new kr:ze;t.apiUrl&&n.setBaseUrl(t.apiUrl),e.ui.setIsExecuting(!0),e.ui.setExecutionError(null),e.ui.setExecutionProgress({step:"executing",message:"Resuming existing action...",actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps});try{let o=t.totalSteps;for(let r=0;r<t.totalSteps;r++)if((await n.checkStepStatus(t.intentId,r)).data.status!=="success"){o=r;break}if(o>=t.totalSteps)e.ui.setExecutionProgress(r=>({...r||{step:"success",message:"Transaction successful!",actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps},step:"success",message:"Transaction successful!"}));else for(let r=o;r<t.totalSteps;r++){const a=await Rd({actionId:t.actionId,intentIndex:t.intentIndex,intentId:t.intentId,stepIndex:r,chainId:e.chainId??void 0,observeOnly:t.autoContinue,maxPolls:t.autoContinue?Number.POSITIVE_INFINITY:void 0,relayer:n,completeOnExecution:!e.isNon7702&&r===t.totalSteps-1,onStatusMessage:(i,s)=>{e.isMountedRef.current&&e.ui.setExecutionProgress({step:"executing",message:i,txHash:s,actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps})}});if(!e.isMountedRef.current)return;e.ui.setExecutionProgress({step:r===t.totalSteps-1?"success":"executing",message:r===t.totalSteps-1?"Transaction successful!":"Executing remaining steps...",txHash:a,actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps})}await(t.finish?.()??Zi(e))}catch(o){const r=o instanceof Error?o.message:"Withdraw failed";e.ui.setExecutionError(r)}finally{e.ui.setIsExecuting(!1)}}async function ch(e){const t=await e.estimate(e.batches,e.tokenAddress,0n,{useCustomTransfers:!0,...e.withdrawalSourceBudget?{withdrawalSourceBudget:!0}:{},signal:e.signal}),n=t.intents.flatMap(r=>r.batches).filter(r=>Yo(r).totalFee>0n),o=n.filter(r=>r.chainId===e.chainId)[0]??n[0]??t.intents[0]?.batches[0];if(!o)throw new Error("No gas fee estimate was returned for this withdraw.");return{gasFee:Yo(o).totalFee,feeEstimate:t}}function Xi(e,t){return Le(e,t).replace(/(\.\d*?[1-9])0+$|\.0+$/,"$1")}function lh(e,t,n){return tn(e,t,n,"floor")}function $d(e,t,n=!1){if(e<=0)return"$0";if(!t||!Number.isFinite(t)||t<=0)return"\u2014";const o=e*t;return`$${o>=1?o.toFixed(3).replace(/0+$/,"").replace(/\.$/,""):o.toFixed(4).replace(/0+$/,"").replace(/\.$/,"")}${n?" (stale)":""}`}function dh(e,t,n=!1){return t?JSON.stringify({tokenAddress:t.toLowerCase(),withdrawalSourceBudget:n,batches:e.map(o=>({chainId:o.chainId,calls:o.calls.map(r=>({to:r.to.toLowerCase(),value:r.value.toString(),data:r.data})),tokenTransfers:(o.tokenTransfers??[]).map(r=>({from:r.from,to:r.to.toLowerCase(),token:r.token.toLowerCase(),amount:r.amount.toString()}))}))}):null}function uh(e){const t=new Map;for(const n of e){if(n.amount<=0n)continue;const o=xn(n.token),r=xn(n.to),a=`${o.toLowerCase()}:${r.toLowerCase()}`,i=t.get(a);i?i.amount+=n.amount:t.set(a,{token:o,to:r,amount:n.amount})}return[...t.values()]}function ph(e,t){return`0x${t}${e.slice(4)}`}function _d(e,t,n,o){if(e.some(u=>u.domain==="spicenet"))return e;const r=n?.intents.flatMap(u=>u.batches),a=u=>u.from==="escrow",i=e.map(u=>{const p=r?.find(y=>y.chainId===u.chainId);if(!p)return u;const w=Yo(p),f=w.totalFee;if(f<=0n)return u;const g=(u.tokenTransfers??[]).filter(y=>a(y)&&xn(y.to).toLowerCase()===t.toLowerCase()),h=g.find(y=>!Ae(xn(y.token)))??g[0];if(!h)return u;const b=xn(h.token),v=Ae(b);let C=!1;const x=(u.tokenTransfers??[]).map(y=>C||!a(y)||xn(y.to).toLowerCase()!==t.toLowerCase()||xn(y.token).toLowerCase()!==b.toLowerCase()?y:(C=!0,{...y,amount:o?.payoutAlreadyGross?BigInt(y.amount):BigInt(y.amount)+f}));if(!C)return u;const k=(y,A)=>v?{to:y,value:A,data:"0x"}:{to:b,value:0n,data:Ot({abi:pt,functionName:"transfer",args:[y,A]})},E=[];w.spicenetFee>0n&&E.push(k(Qn,w.spicenetFee));const I=w.gasFee+w.bridgeFee;return I>0n&&E.push(k(bn,I)),{...u,tokenTransfers:x,calls:[...E,...u.calls]}}),s=i.flatMap(u=>(u.tokenTransfers??[]).filter(a).map(p=>{const w=xn(p.token),f=xn(p.to),g=[{token:w,to:f,amount:BigInt(p.amount)}];return{chainId:u.chainId,transfers:uh(g)}}));if(s.length===0)return e;const c=o?.requestTimestampMs??Date.now(),l=BigInt(Math.floor(c/1e3));if(o?.expiresAt!==void 0&&(!Number.isSafeInteger(o.expiresAt)||o.expiresAt<=Number(l)))throw new Error("Funding expiry must be a future Unix timestamp");const d=o?.expiresAt===void 0?l+3600n:BigInt(o.expiresAt);return[{chainId:ul,domain:"spicenet",tokenTransfers:[],calls:s.map((u,p)=>{const w=cr(Zo([{type:"address"},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"}],[t,u.transfers[0].token,u.transfers.reduce((g,h)=>g+h.amount,0n),BigInt(u.chainId),BigInt(c+p)])),f=ph(w,"77");return{to:"0x0000000000000000000000000000000000000000",value:0n,data:Ot({abi:us,functionName:"createWithdrawalRequest",args:[{chainId:`evm:${u.chainId}`,idempotenceKey:f,nbf:0n,exp:d,metadata:"{}",transfers:u.transfers.map(g=>({token:g.token.toLowerCase(),to:g.to,amount:g.amount}))}]})}})},...i]}function _o(e,t,n,o){const r=e.filter(i=>i.domain!=="spicenet"),a=i=>(i.tokenTransfers??[]).some(s=>s.from==="escrow");return[...r.filter(i=>!a(i)),..._d(r.filter(a),t,n,o)]}class ur extends Error{constructor(t,n){super("The selected balance cannot cover the fee funding amount"),this.requiredAmount=t,this.balance=n,this.name="InsufficientFeeFundingBalanceError"}}function Ji(e,t,n,o,r){const a=e[e.length-1];if(!a?.calls.length||a.domain==="spicenet")throw new Error("Proceeds fees require a final destination action");const i=[{to:Qn,amount:r},{to:bn,amount:o}].filter(s=>s.amount>0n);return e.map(s=>s===a?{...s,calls:[...s.calls,...i.map(c=>({to:n,value:0n,data:Ot({abi:pt,functionName:"transfer",args:[c.to,c.amount]})}))],tokenTransfers:[...s.tokenTransfers??[],...i.map(c=>({from:t,to:c.to,token:n,amount:c.amount}))]}:s)}async function $i(e,t,n,o,r){const a=Oo(e),i=await ze.estimateBatchGas({user:t,outputToken:n,signal:o,requireSimulation:!0,includePlatformFee:r!==void 0,chainBatches:e.map((s,c)=>({...s,hash:a[c].hash}))});if(i.gasQuoteSource!=="estimated"||!i.simulationVerified)throw new Error("Action proceeds require a successful live batch simulation; fallback gas pricing is not sufficient");if(r!==void 0&&(i.platformFee===void 0||i.platformFee>r))throw new Error("Fee conversion platform price changed; refresh before retrying");return i.gasFee}async function eu(e){if(e.proceeds.token.toLowerCase()!==e.token.toLowerCase())throw new Error("Action proceeds must use the destination fee token");const t=await e.proceeds.resolve(e.signal);if(e.signal?.aborted)throw new Error("Action proceeds quote was cancelled");if(t<0n)throw new Error("Action proceeds cannot be negative");const n=await e.baseline();if(!n?.preview)throw new Error("Action fee quote is unavailable");let o=n.preview.gasFee;const r=n.preview.spicenetFee,a=n.preview.bridgeFee??0n;for(let i=0;i<5;i++){const s=o+r+a,c=t<s?t:s,l=s-c;if(l>0n&&e.fundShortfall===!1)throw new ur(s,t);const d=l>0n?(l*110n+99n)/100n+2n:0n;let u=d,p;const w=_o(await e.buildBatches(d,{actionAmountOverride:e.actionAmountFor?.(s),actionOutputFee:c,onSourceSpend:h=>{u=h},onActionCalls:h=>{p=h}}),e.owner,void 0,{expiresAt:e.expiresAt}),f=Ji(w,e.owner,e.token,o+a,r),g=await $i(f,e.owner,e.token,e.signal);if(g<=o&&(o-g)*100n<=g*15n)return{preview:{...n.preview,grossAmount:d,netAmount:0n,gasFee:o,totalFee:s,gasQuoteSource:"estimated"},feeEstimate:n.feeEstimate,grossFundingAmount:d,proceedsAvailable:t,proceedsUsed:c,fundingBatches:f,sourceSpendCap:u,destinationAmount:0n,actionDefinition:p};o=g}throw new Error("Action proceeds fee estimate did not converge")}function tu(e,t){if(!(!e||e==="output")){if("token"in e)return e;if(t)return{token:t,resolve:async n=>{const o=await e.resolve(n);if(n?.aborted)throw new Error("Action proceeds quote was cancelled");if(o.some(r=>r.amount<0n))throw new Error("Action proceeds cannot be negative");return o.filter(r=>r.token.toLowerCase()===t.toLowerCase()).reduce((r,a)=>r+a.amount,0n)}}}}function Ds(e,t,n){const o=n.filter(r=>r.amount>0n);return{chainId:e,domain:"evm",tokenTransfers:[],calls:Ae(t)?o.map(r=>({to:r.recipient,value:r.amount,data:"0x"})):o.map(r=>({to:t,value:0n,data:Ot({abi:pt,functionName:"transfer",args:[r.recipient,r.amount]})}))}}new Set([bn,Qn].map(e=>e.toLowerCase()));async function er(e,t,n){const o=await as(e),r=Yt(n,t)?.decimals,a=o.filter(d=>!Array.isArray(d.chainTokens)&&Object.keys(d.chainTokens??{}).some(u=>u.toLowerCase()===`evm:${t}:${n.toLowerCase()}`));if(a.length>1)throw new Error("Order cash receipt identity is ambiguous");const i=new Map;for(const d of a){const u=Object.entries(d.chainTokens??{}).find(([p])=>p.toLowerCase()===`evm:${t}:${n.toLowerCase()}`)?.[1];if(!d.receiptToken||i.has(d.receiptToken)||!/^\d{1,78}$/.test(d.balanceAvailable)||!Number.isInteger(d.decimals)||d.decimals<0||d.decimals>36||typeof u!="object"||r===void 0||u.decimals!==r)throw new Error("Order cash metadata could not be verified");i.set(d.receiptToken,{amount:BigInt(d.balanceAvailable),decimals:d.decimals})}const s=new Set,c=new Set;let l;for(let d=0;d<20;d++){const u=await ze.listLimitOrders(e,l);if(!Array.isArray(u.orders)||u.orders.length>100)throw new Error("Order reservations could not be verified");for(const p of u.orders){if(!/^ord_[0-9a-f]{64}$/.test(p.id)||s.has(p.id)||!G(p.user,e)||!/^\d{1,78}$/.test(p.reservedAmount)||!["open","executing","needs_attention","filled","cancelled","expired","failed"].includes(p.status))throw new Error("Order reservations could not be verified");if(s.add(p.id),!["open","executing","needs_attention"].includes(p.status))continue;const w=i.get(p.receiptToken);if(!w&&p.chainId===t&&G(p.tokenIn,n))throw new Error("Active order cash could not be verified");w&&(w.amount-=BigInt(p.reservedAmount))}if(u.nextCursor===null){let p=0n;for(const w of i.values()){if(w.amount<0n)throw new Error("Order reservations exceed the current cash balance");p+=xo(w.amount,w.decimals,r)}return{available:p,entries:o}}if(typeof u.nextCursor!="string"||!/^ord_[0-9a-f]{64}$/.test(u.nextCursor)||c.has(u.nextCursor))throw new Error("Order history is incomplete");l=u.nextCursor,c.add(l)}throw new Error("Order history is incomplete")}const nu="spiceflow-limit-order:v1",Or=po(["function exactInput((bytes path, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]);function fh(e){if(!/^ord_[0-9a-f]{64}$/.test(e))throw new Error("Invalid limit order ID");return`Spice Flow limit order cancellation v1
17
+ Order: ${e}`}function _i(e){const t=e.intents[0];if(e.intents.length!==1||t.mode!=="7702")throw new Error("Invalid order intent");return`ord_${Wi(t.chainBatches,BigInt(t.exp)).slice(2)}`}function mh(e){if(!Number.isSafeInteger(e.expiresAt)||e.minimumOutput<=0n||e.amountIn<=0n||e.platformFee<0n||e.gasBridgeFee<0n||e.amountIn+e.platformFee+e.gasBridgeFee!==e.grossAmount)throw new Error("Invalid limit order amounts or expiry");const t=Zr({userAddress:e.user,destinationChainId:e.chainId,deliveryToken:e.tokenIn,deliveryAmount:e.grossAmount,deliveryRecipient:e.user,requestTimestampMs:e.requestTimestampMs,expiresAt:e.expiresAt,metadata:e.conditional?"":e.replacesOrderId?`${nu}:amend:${e.replacesOrderId}`:nu,requestNonce:e.requestNonce});if(!t)throw new Error("Order requires a positive cash balance");const n=[...Ds(e.chainId,e.tokenIn,[{recipient:Qn,amount:e.platformFee},{recipient:bn,amount:e.gasBridgeFee}]).calls,{to:e.tokenIn,value:0n,data:Ot({abi:pt,functionName:"approve",args:[e.router,e.amountIn]})},{to:e.router,value:0n,data:Ot({abi:Or,functionName:"exactInput",args:[{path:e.path,recipient:e.user,deadline:BigInt(e.expiresAt),amountIn:e.amountIn,amountOutMinimum:e.minimumOutput}]})}],o=Oo([t,{chainId:e.chainId,calls:n}]);return{user:e.user,amountMode:"gross_input",intents:[{mode:"7702",signatureType:"ecdsa",signature:"0x00",nbf:0,exp:e.expiresAt,chainBatches:o.map((r,a)=>({...r,chainId:Number(r.chainId),tokenTransfers:a===0?[]:[{from:"escrow",to:e.user,token:e.tokenIn,amount:e.grossAmount}]}))}]}}const hh=36;function Jr(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=hh}function Ra(e){return!e.balanceError&&e.balanceStatus!=="stale"&&e.balance>=0n&&Jr(e.decimals)&&!e.isNative&&!Ae(e.address)}function ec(e,t){if(!e.chainTokens||Array.isArray(e.chainTokens))return null;let n;for(const[o,r]of Object.entries(e.chainTokens)){const a=_n(o);if(!(!a||a.chainId!==t)){if(n)return null;n={address:a.address,decimals:r?.decimals}}}return n??null}function tc(e,t,n){if(e<0n)return null;const o=xo(e,t,n);return xo(o,n,t)===e?o:null}function pr(e,t){return Jr(e.receiptTokenDecimals)&&tc(t,e.decimals,e.receiptTokenDecimals)!==null}function gh(e,t){if(!Jr(e.receiptTokenDecimals))return-1n;const n=xo(t,e.decimals,e.receiptTokenDecimals),o=xo(n,e.receiptTokenDecimals,e.decimals);return o<=t?o:-1n}function Ms(e,t){return e.owner?.toLowerCase()===t.toLowerCase()}function wh(e,t,n,o,r){if(!e)return[];const a=[];for(const i of Array.isArray(e)?e:[e]){if(i.amount<0n||!Ms(i.asset,o)||i.asset.chainId!==r)return null;const s=ke(i.asset);if(s!==ke(t)&&s!==ke(n))return null;const c=a.find(l=>l.positionId===s);c?c.amount+=i.amount:a.push({positionId:s,amount:i.amount})}return a}function Da(e,t,n,o,r,a){if(!n||!/^0x[0-9a-f]{40}$/i.test(n)||!Ms(e,n)||e.chainId!==o||!Ra(e))return;let i,s,c;if(e.location==="embedded"&&e._source!=="spice"){i=e,c=e.address;const C=t.filter(x=>{const k=ec(x,o);return x.location==="rollup"&&x._source!=="wallet"&&Ms(x,n)&&x.chainId===o&&Ra(x)&&!!x.receiptTokenId&&!!k&&G(k.address,c)});if(C.length!==1)return;[s]=C}else if(e.location==="rollup"&&e._source!=="wallet"&&e.receiptTokenId){s=e;const C=ec(e,o);if(!C)return;c=C.address;const x=t.filter(k=>k.location==="embedded"&&k._source!=="spice"&&Ms(k,n)&&k.chainId===o&&Ra(k)&&G(k.address,c));if(x.length!==1)return;[i]=x}else return;if(!i||!s||!c||!Ra(i)||!Ra(s)||i.location!=="embedded"||s.location!=="rollup"||!s.receiptTokenId||!Jr(i.decimals)||i.decimals!==s.decimals||!Jr(s.receiptTokenDecimals))return;const l=ec(s,o);if(!l||!G(l.address,c)||l.decimals!==void 0&&l.decimals!==i.decimals)return;const d=ke(i),u=ke(s);if(d===u||t.filter(C=>ke(C)===d).length!==1||t.filter(C=>ke(C)===u).length!==1)return;let p=i.balance,w=r??s.balance;if(w<0n||w>s.balance)return;const f=wh(a,i,s,n,o);if(f===null)return;for(const C of f)if(C.positionId===d){if(C.amount>p)return;p-=C.amount}else{if(C.amount>w||!pr(s,C.amount))return;w-=C.amount}const g=ke(e),h=e.decimals;if(!Jr(h))return;const b=tc(p,i.decimals,h),v=tc(w,s.decimals,h);if(!(b===null||v===null))return{wallet:i,escrow:s,owner:n,chainId:o,token:c,decimals:i.decimals,representativePositionId:g,representativeDecimals:h,walletAvailable:p,escrowAvailable:w,availableBalance:b+v,...f.length===1?{reserve:f[0]}:{},reserves:f}}function ou(e,t,n,o){const r=ke(e);return{positionId:r,asset:e,amount:t,reservedAmount:n.find(a=>a.positionId===r)?.amount??0n,availableAmount:o}}function nc(e,t,n,o){if(t<=0n)throw new RangeError("Enter an amount within the available balance.");const r=o?.quoteOnly===!0;if(!r&&t>e.availableBalance)throw new RangeError("Enter an amount within the available balance.");let a,i,s=0n,c=0n,l=0n;if(n==="escrow"){const d=t<e.escrowAvailable?t:e.escrowAvailable;if(i=gh(e.escrow,d),i<0n)throw new RangeError("Enter an amount within the available balance.");if(s=t-i,a=s,c=t,!r&&s>e.walletAvailable||!pr(e.escrow,s)||!pr(e.escrow,c))throw new RangeError("Enter an amount within the available balance.")}else if(a=t<e.walletAvailable?t:e.walletAvailable,l=a,c=t-a,i=c,!r&&c>e.escrowAvailable||!pr(e.escrow,c))throw new RangeError("Enter an amount within the available balance.");return{owner:e.owner,chainId:e.chainId,token:e.token,decimals:e.decimals,representativePositionId:e.representativePositionId,representativeDecimals:e.representativeDecimals,route:n,grossAmount:t,insufficient:a>e.walletAvailable||i>e.escrowAvailable,positions:[ou(e.wallet,a,e.reserves,e.walletAvailable),ou(e.escrow,i,e.reserves,e.escrowAvailable)],walletDeposit:s,escrowWithdrawal:c,walletInPlace:l}}function Ns(e,t,n,o,r){if(!e.positions.find(d=>d.positionId===e.representativePositionId))throw new Error("The source balance changed. Review the available amount before continuing.");const a=t.filter(d=>ke(d)===e.representativePositionId);if(a.length!==1)throw new Error("The source balance changed. Review the available amount before continuing.");if(e.insufficient)throw new Error("The source balance changed. Review the available amount before continuing.");const i=e.positions.filter(d=>d.reservedAmount>0n).map(d=>({asset:d.asset,amount:d.reservedAmount})),s=Da(a[0],t,n,o,r,i);if(!s||s.representativePositionId!==e.representativePositionId||s.representativeDecimals!==e.representativeDecimals||s.owner.toLowerCase()!==e.owner.toLowerCase()||s.chainId!==e.chainId||!G(s.token,e.token)||s.decimals!==e.decimals)throw new Error("The source balance changed. Review the available amount before continuing.");if(e.grossAmount<=0n||e.positions.length!==2)throw new Error("The source balance changed. Review the available amount before continuing.");const c=e.positions.find(d=>d.positionId===ke(s.wallet)),l=e.positions.find(d=>d.positionId===ke(s.escrow));if(!c||!l||c.positionId===l.positionId||c.amount<0n||l.amount<0n||c.reservedAmount<0n||l.reservedAmount<0n)throw new Error("The source balance changed. Review the available amount before continuing.");if(e.route==="escrow"){if(e.walletDeposit!==c.amount||e.walletInPlace!==0n||e.escrowWithdrawal!==e.grossAmount||c.amount+l.amount!==e.grossAmount||!pr(s.escrow,l.amount)||!pr(s.escrow,c.amount)||!pr(s.escrow,e.escrowWithdrawal))throw new Error("The source balance changed. Review the available amount before continuing.")}else if(e.walletDeposit!==0n||e.walletInPlace!==c.amount||e.escrowWithdrawal!==l.amount||c.amount+l.amount!==e.grossAmount||!pr(s.escrow,l.amount))throw new Error("The source balance changed. Review the available amount before continuing.");if(c.amount>s.walletAvailable||l.amount>s.escrowAvailable)throw new Error("The source balance changed. Review the available amount before continuing.");for(const d of e.positions){const u=t.find(p=>ke(p)===d.positionId);if(!u||u.decimals!==d.asset.decimals||u.receiptTokenDecimals!==d.asset.receiptTokenDecimals||u.receiptTokenId!==d.asset.receiptTokenId)throw new Error("The source balance changed. Review the available amount before continuing.")}}function yh(e,t){const n=t.feePolicy;if(!n||t.feeExecutionMode!=="user-transfer"||!t.feeBreakdown)return e;const o=t.feeToken??t.destinationToken,r=[{recipient:n.platformRecipient,amount:t.feeBreakdown.spicenetFee},{recipient:n.gasRecipient,amount:t.feeBreakdown.gasFee+t.feeBreakdown.bridgeFee}],a=[];for(const{recipient:i,amount:s}of r){const c=G(i,n.gasRecipient)?[i,bn,...Md]:[i],l=f=>c.some(g=>G(f,g));let d;const u=(f,g)=>{if(d&&!G(d,f))throw new Error("Action fee calls use mixed gas fee recipients");d=f,p=!0,w+=g};let p=!1,w=0n;for(const f of e)if(Ae(o))l(f.to)&&f.data==="0x"&&u(f.to,f.value);else if(G(f.to,o)&&f.value===0n){let g;try{g=Jn({abi:pt,data:f.data})}catch{continue}if(g.functionName==="transfer"&&l(g.args[0])){if(Ot({abi:pt,functionName:"transfer",args:g.args}).toLowerCase()!==f.data.toLowerCase())throw new Error("Action fee transfer is not canonical");u(g.args[0],g.args[1])}}if(p){if(w!==s)throw new Error("Action fee calls differ from the accepted fee plan")}else s>0n&&a.push(Ae(o)?{to:i,value:s,data:"0x"}:{to:o,value:0n,data:Ot({abi:pt,functionName:"transfer",args:[i,s]})})}return[...a,...e]}function ru(e,t){let n,o;if(Ae(t)){if(e.data!=="0x")return null;n=e.to,o=e.value}else{if(!G(e.to,t))return null;try{const r=Jn({abi:pt,data:e.data});if(r.functionName!=="transfer")return null;[n,o]=r.args}catch{return null}}return G(n,bn)?{gas:o,platform:0n}:G(n,Qn)?{gas:0n,platform:o}:null}async function bh(e,t,n){const o=Rt(e);return Ae(n)?o.getBalance({address:t}):o.readContract({address:n,abi:pt,functionName:"balanceOf",args:[t]})}function $r(e,t,n){return e.map(o=>o.chainId===t?{...o,calls:o.calls.filter(r=>!ru(r,n))}:o)}function au(e,t,n){if(!e.feeOnlyAction)return{};const o=e.embeddedWalletAddress??e.providerEmbeddedAddress;if(e.feeQuote?.preview.feePayer==="relayer"){const d=async u=>{e.validateFeeQuote?.(),await $i(u,o,t,e.signal),e.validateFeeQuote?.()};return{prepareForSigning:async u=>(await d(u),u),validateBeforeSubmit:d}}const r=e.feeQuote?.fundingSource,a=r&&r.kind!=="proceeds"?void 0:e.actionProceeds,i=r&&(r.kind==="input"||r.kind==="balance"&&r.asset?._source==="wallet")?r:void 0;if(a||e.feeQuote?.fundingConversion||i){const d=e.feeQuote?.fundingConversion,u=a??{token:t,resolve:async()=>0n},p=e.feeQuote?.preview,w=e.feeQuote?.proceedsUsed,f=d?.fromProceeds?d.tokenIn:t;if(!p||w===void 0||!i&&u.token.toLowerCase()!==f.toLowerCase())throw new Error("Refresh the action proceeds quote");const g=p.gasFee+(p.bridgeFee??0n),h=p.spicenetFee,b=i?async()=>{e.validateFeeQuote?.();const C=await bh(e.resolvedChainId,o,i.token);e.validateFeeQuote?.();const x=i.kind==="input"?i.amount:(d?.amountInMax??w)+(i.reservedAmount??0n);if(e.signal?.aborted||C<x||d&&d.amountOut<g+h)throw new Error("The fee funding balance changed; refresh before retrying");return d?[{chainId:e.resolvedChainId,token:t,amount:d.amountOut}]:[]}:async()=>{e.validateFeeQuote?.();const C=await u.resolve(e.signal);if(e.validateFeeQuote?.(),e.signal?.aborted||(d?.fromProceeds?C<d.amountInMax||d.amountOut<g+h:C<w||C+(d?.amountOut??n)<g+h))throw new Error("Action proceeds changed; refresh before retrying");return d?.fromProceeds?[{chainId:e.resolvedChainId,token:d.tokenIn,amount:d.amountInMax},{chainId:e.resolvedChainId,token:t,amount:d.amountOut}]:[{chainId:e.resolvedChainId,token:t,amount:w+(d?.amountOut??0n)}]},v=async C=>{await b();const x=await $i(C,o,t,e.signal,d?h:void 0);if(await b(),(x>p.gasFee?x-p.gasFee:p.gasFee-x)*100n>x*15n)throw new Error("Action gas quote changed; refresh before retrying")};return{resolveActionOutputCredits:b,prepareForSigning:async C=>{if(e.feeQuote?.sourceAllocation||e.feeQuote?.feeSourceAllocation)return await v(C),C;const x=$r(C,e.resolvedChainId,t).map(E=>({...E,tokenTransfers:E.tokenTransfers?.filter(I=>!(typeof I.from=="string"&&G(I.from,o)&&(G(I.to,bn)||G(I.to,Qn))))})),k=Ji(x,o,t,g,h);return await v(k),k},validateBeforeSubmit:v}}const s=Yt(t,e.resolvedChainId),c={chainId:e.resolvedChainId,tokenAddress:t,symbol:s?.symbol??e.destinationToken.symbol,decimals:e.executionTokenDecimals??s?.decimals??e.destinationToken.decimals},l=async d=>{e.validateFeeQuote?.();const u=$r(d,e.resolvedChainId,t),p=await e.execution.estimate(u,t,n,{userOverride:o,useCustomTransfers:!0,feeExecutionMode:"backend-transfer"});e.validateFeeQuote?.();const w=yo(p,c);if(!w||w.chainId!==e.resolvedChainId)throw new Error("The fee service did not return the destination action's fee quote");if(w.gasFee+w.spicenetFee+(w.bridgeFee??0n)+2n>n)throw new Error("Fees exceed the displayed maximum funding; refresh the quote before retrying");return{raw:u,feeEstimate:p,fees:w}};return{prepareForSigning:async d=>{const{raw:u,feeEstimate:p}=await l(d);return e.feeQuote?.sourceAllocation||e.feeQuote?.feeSourceAllocation?d:_o(u,o,p,{payoutAlreadyGross:!0})},validateBeforeSubmit:async d=>{const{fees:u}=await l(d);let p=0n,w=0n;for(const g of d)if(g.chainId===e.resolvedChainId)for(const h of g.calls){const b=ru(h,t);b&&(p+=b.gas,w+=b.platform)}if(p+w+2n>n)throw new Error("Signed fees exceed the displayed maximum funding");const f=u.gasFee+(u.bridgeFee??0n);if((p>f?p-f:f-p)*100n>f*15n||w!==u.spicenetFee)throw new Error("The signed gas quote changed materially; refresh before retrying")}}}const xh="0xa9059cbb";function Br(e,t,n){return Ae(e)?{to:n,value:t,data:"0x"}:{to:e,value:0n,data:Ot({abi:pt,functionName:"transfer",args:[n,t]})}}function oc(e,t,n){return{chainId:n,calls:[Br(e,t,To(n))]}}function vh(e,t,n,o){const r=t.source.chainId;return{chainId:r,calls:[...e.calls,Br(t.source.address,n,To(r)),...o>0n?[Br(t.source.address,o,bn)]:[]]}}function su(e,t){const n=e.amountOutMinimum-t;if(n<=0n)throw new Error("Amount is too small to cover fees. Increase the amount and retry.");return n}function iu(e,t,n){return e?.asset?._source==="wallet"&&e?.asset.chainId===n}function cu(e){return e.isNative||Ae(e.address)?!0:!Yt(e.address,e.chainId)}function lu(e,t,n,o){return t!=="user-transfer"||!n||e.length===0||e[0]?.to.toLowerCase()!==o.toLowerCase()||!e[0]?.data.startsWith(xh)?{feeCall:null,remainingCalls:e}:{feeCall:e[0],remainingCalls:e.slice(1)}}async function _r(e,t,n,o){const r=await(t??Zr)({...n,requestTimestampMs:o});return r?[r,e]:[e]}function ea(e,t){const n=(e.tokenTransfers??[]).filter(o=>o.from==="escrow").map(o=>({token:dt(o.token),recipient:o.to,amount:BigInt(o.amount)})).filter(o=>o.amount>0n);return t!==void 0&&n.length===1&&(n[0]={...n[0],amount:t}),n.length>0?n:void 0}function ta(e,t,n){return tn(e,t,n,"ceil")}function du(e){const t=e.selectedAsset?.asset;return e.isPayMode&&!!t&&t._source==="wallet"&&t.chainId!==e.resolvedChainId&&!!e.pivot}function rc(e){const t=e.selectedAsset?.asset;return!e.isPayMode&&!!t&&t._source==="wallet"&&t.chainId!==e.resolvedChainId&&!!e.sourceSwap&&!!e.pivot}function Ma(e,t){if(t?.sourceSpendCap!==void 0&&e>t.sourceSpendCap)throw new Error("The source amount increased. Review the updated quote before submitting.");t?.onSourceSpend?.(e)}async function uu(e,t,n){let o;const r=await e({...t,buildActionCalls:async(a,i)=>{o=a;const s=yh(await t.buildActionCalls(a,i),i);return n?.onActionCalls?.({amount:a,context:i,calls:s}),s}},n);if(o!==void 0){if(n?.minimumDestinationAmount!==void 0&&o<n.minimumDestinationAmount)throw new Error("The destination amount decreased. Review the refreshed quote before submitting.");n?.onDestinationAmount?.(o)}return r}const na=(e,t)=>uu(Ih,e,t),Ps=async(e,t)=>{const n=await uu(kh,e,t),o=t?.actionContextOverride?.feeBreakdown,r=n[n.length-1];if(t?.actionContextOverride?.feePolicy||e.feeExecutionMode!=="user-transfer"||!o||!r)return n;const a=e.needsSwap&&e.resolvedTokenIn?e.resolvedTokenIn:e.destinationToken.address,[i]=$r([r],e.resolvedChainId,a),s=Ds(e.resolvedChainId,a,[{recipient:Qn,amount:o.spicenetFee},{recipient:bn,amount:o.gasFee+(o.bridgeFee??0n)}]).calls,c=r.calls.filter(l=>!i.calls.includes(l));return c.length===s.length&&s.every(l=>c.some(d=>d.to.toLowerCase()===l.to.toLowerCase()&&d.value===l.value&&d.data===l.data))?n:[...n.slice(0,-1),{...i,calls:[...s,...i.calls]}]};async function Ih(e,t){const{currentPaymentAmount:n,destinationToken:o,embeddedWalletAddress:r,providerEmbeddedAddress:a,address:i,isNon7702:s,resolvedChainId:c,buildActionCalls:l,feeExecutionMode:d,buildSpicenetBatch:u,needsSwap:p,exactOutputSwap:w,resolvedTokenIn:f,requestTimestampMs:g}=e,h=t?.sourceAssetOverride?{asset:t.sourceAssetOverride}:e.selectedAsset,b=t?.fundingTokenOverride??f,v=Nn(n,o.decimals),C=t?.actionAmountOverride??(e.feeOnlyAction?0n:v),x=!!e.feeOnlyAction&&(t?.fundingAmountOverride??0n)>0n,k=r||a||i;if(!k)throw new Error("Embedded wallet address is not available. Please sign in and try again.");const E={userAddress:e.recipient??k,executorAddress:k,beneficiary:e.recipient??k,outputRecipient:p?k:void 0,chainId:c,destinationToken:o.address,grossAmount:t?.fundingAmountOverride??v,netAmount:C,combinedFeeAmount:t?.actionContextOverride?.combinedFeeAmount,feeExecutionMode:d,feeBreakdown:t?.actionContextOverride?.feeBreakdown,...t?.actionContextOverride},I=()=>{p&&w&&t?.onSwap?.({...w,amountOutMinimum:w.amountOut},w.amountInMax)},y=await l(C,E),A={chainId:c,calls:y},T=!!h&&h.asset._source!=="wallet",F=iu(h??null,s,c),L=T||F&&!!h&&!cu(h.asset),R=(D,M)=>({token:dt(D),from:"escrow",to:k,amount:M}),N=(D,M,S)=>F?[oc(D,M,c),...S]:S;if(v===0n&&!x)return[A];const O=t?.combinedSourceGroupOverride===null?void 0:t?.combinedSourceGroupOverride??e.combinedSourceGroup;if(O&&(!p||b?.toLowerCase()===O.token.toLowerCase())){if(p&&!w)throw new Error("The action quote is unavailable.");I();const D=p?{...A,calls:[...w.calls,...y]}:A,M=t?.fundingAmountOverride??(p?w?.amountInMax??0n:v),S=nc(O,M,"in-place",{quoteOnly:!0});if(t?.onSourceAllocation?.(S),Ma(Bn(M,O.decimals,O.representativeDecimals),t),S.escrowWithdrawal===0n)return[D];const U={...D,tokenTransfers:[R(O.token,S.escrowWithdrawal)]};return _r(U,u,{userAddress:k,destinationChainId:c,deliveryToken:O.token,deliveryAmount:S.escrowWithdrawal,deliveryRecipient:k,deliveryTransfers:ea(U),sourceAsset:O.escrow},g)}if(h?.asset._source==="wallet"&&h.asset.chainId!==c&&!e.pivot)throw new Error("A current source-to-destination funding route is required");if(e.feeOnlyAction&&t?.fundingTokenOverride&&F)return Ma(t.fundingAmountOverride??0n,t),[A];if(du(e)){if(p&&!w)throw new Error("Swap quote not available yet");const D=t?.fundingAmountOverride??(w?w.amountInMax:v),M=t?.sourceGasSkimOverride??0n,S=tn(D,e.pivot.destination.decimals,e.pivot.source.decimals,"ceil"),U=S+M,q=e.sourceExactOutputSwap,X=q&&(t?.reuseQuotedSourceSwap||q.amountOut>=U)?q:e.resolveSourceExactOutputSwap?await e.resolveSourceExactOutputSwap(U):null;if(!X)throw new Error("Swap quote not available yet");Ma(X.amountInMax,t);const K=h.asset;if(X.amountInMax>K.balance)throw new Error(`Insufficient ${K.symbol} for this payment. Required ${Le(X.amountInMax,K.decimals)} ${K.symbol}; available ${Le(K.balance,K.decimals)} ${K.symbol}.`);const Q=X.amountOut>=U?S:X.amountOut-M;if(Q<=0n)throw new Error("Amount is too small to cover fees. Increase the amount and retry.");const Y={chainId:e.pivot.source.chainId,calls:[...X.calls,Br(e.pivot.source.address,Q,To(e.pivot.source.chainId)),...M>0n?[Br(e.pivot.source.address,M,bn)]:[]]};I();const oe={chainId:c,calls:[...w?.calls??[],...y],tokenTransfers:[R(e.pivot.destination.address,D),...A.tokenTransfers??[]]},he=await _r(oe,u,{userAddress:k,destinationChainId:c,deliveryToken:e.pivot.destination.address,deliveryAmount:D,deliveryRecipient:k,deliveryTransfers:ea(oe),sourceAsset:h.asset},g);return[Y,...he]}if(h){const D=t?.fundingAmountOverride??w?.amountInMax??v;Ma(ta(D,await zo(h.asset,b??h.asset.address,c,o),h.asset.decimals),t)}if(p&&w){const D=b??fo(h.asset,c)??h.asset.address,M=t?.fundingAmountOverride??w.amountInMax,S=L?[R(D,M)]:[];I();const U={chainId:c,calls:[...w.calls,...y],tokenTransfers:[...S,...A.tokenTransfers??[]]};if(!L)return[U];const q=await _r(U,u,{userAddress:k,destinationChainId:c,deliveryToken:D,deliveryAmount:M,deliveryRecipient:k,deliveryTransfers:ea(U),sourceAsset:h.asset},g);return N(D,M,q)}if(L){const D=b??fo(h.asset,c)??o.address;if(F&&!e.feeOnlyAction&&D.toLowerCase()===o.address.toLowerCase())return[A];const M=t?.fundingAmountOverride??v,S={...A,tokenTransfers:[R(D,M),...A.tokenTransfers??[]]},U=await _r(S,u,{userAddress:k,destinationChainId:c,deliveryToken:D,deliveryAmount:M,deliveryRecipient:k,deliveryTransfers:ea(S),sourceAsset:h.asset},g);return N(D,M,U)}return[A]}async function kh(e,t){const{selectedAsset:n,embeddedWalletAddress:o,recipient:r,resolvedChainId:a,destinationToken:i,buildActionCalls:s,feeExecutionMode:c,buildSpicenetBatch:l,isPayMode:d,isNon7702:u,needsSwap:p,resolvedSwap:w,quoteAmountOut:f,resolvedTokenIn:g,requestTimestampMs:h}=e;if(!n?.asset||!o)return[];const b=r??o;if(!b)return[];const v=rc(e);let C=e.sourceSwap,x=Nn(n.amount,n.asset.decimals),k=v?e.sourceSwap.amountOutMinimum:null;if(v&&e.isFeeInclusiveInput&&(k=su(e.sourceSwap,t?.sourceGasSkimOverride??0n)),v&&!e.isFeeInclusiveInput&&(t?.fundingAmountOverride!==void 0||(t?.sourceGasSkimOverride??0n)>0n)){k=t?.fundingAmountOverride!==void 0?ta(t.fundingAmountOverride,e.pivot.destination.decimals,e.pivot.source.decimals):e.sourceSwap.amountOutMinimum;const ae=k+(t?.sourceGasSkimOverride??0n);if(!e.resolveSourceExactOutputSwap)throw new Error("The source quote cannot include fees yet.");const ie=await e.resolveSourceExactOutputSwap(ae);if(ie.amountOut<ae)throw new Error("The source quote does not cover the accepted funding amount.");x=ie.amountInMax,C={...ie,amountOutMinimum:ie.amountOut}}const E=v?e.pivot.destination.address:g??fo(n.asset,a)??i.address,I=v?e.pivot.destination.decimals:await zo(n.asset,E,a,i),y=t?.fundingAmountOverride??t?.actionAmountOverride??(v?tn(k,e.pivot.source.decimals,I,"floor"):Bn(Nn(n.amount,n.asset.decimals),n.asset.decimals,I)),A=t?.fundingAmountOverride??y,T=t?.combinedSourceGroupOverride===null?void 0:t?.combinedSourceGroupOverride??e.combinedSourceGroup,F=T&&!v?nc(T,A,"escrow",{quoteOnly:!0}):void 0;F&&t?.onSourceAllocation?.(F);const L=F?.walletDeposit??t?.sourceFundingAmountOverride??ta(y,I,n.asset.decimals);Ma(F&&T?Bn(A,T.decimals,T.representativeDecimals):v?x:L,t);const R=t?.deliveryAmountOverride??(c==="user-transfer"?A:t?.actionContextOverride?.netAmount??A),N=t?.withdrawalAmountOverride??R,O=t?.actionAmountOverride??t?.actionContextOverride?.netAmount??y;let D=w;if(p&&!d&&(t?.actionContextOverride?.netAmount!==void 0||v&&(t?.sourceGasSkimOverride??0n)>0n&&!t?.reuseQuotedSourceSwap)){if(!e.resolveInputSwap)throw new Error("Swap quote cannot be refreshed for the amount after fees.");const ae=t?.actionContextOverride?.netAmount??O;(!D||e.swapInputAmount!==ae)&&(D=await e.resolveInputSwap(ae,w??void 0))}const M=D?.amountOutMinimum??f,S={userAddress:b,executorAddress:o,beneficiary:b,outputRecipient:p?o:void 0,chainId:a,destinationToken:i.address,feeToken:c==="user-transfer"&&p&&g?g:i.address,grossAmount:A,netAmount:O,combinedFeeAmount:t?.actionContextOverride?.combinedFeeAmount,feeExecutionMode:c,feeBreakdown:t?.actionContextOverride?.feeBreakdown,...t?.actionContextOverride},U=()=>s(O,S),q=n.asset?._source==="wallet";if(!d&&q&&n.asset.chainId===a&&cu(n.asset)){if(p){if(!g)throw new Error("Swap input token could not be resolved");if(!D||M===null)throw new Error("Swap quote not available yet")}if(p&&D&&M){t?.onSwap?.(D,t?.actionContextOverride?.netAmount??e.swapInputAmount??O);const ae=await s(t?.actionAmountOverride??M,{...S,netAmount:t?.actionAmountOverride??M}),{feeCall:ie,remainingCalls:ne}=lu(ae,c,p,S.feeToken);return[{chainId:a,calls:[...ie?[ie]:[],...D.calls,...ne]}]}return[{chainId:a,calls:await U()}]}if(!d&&q&&n.asset.chainId!==a&&!v)throw new Error("A current source-to-destination funding route is required");const X=n.asset._source!=="wallet",K=iu(n,u,a);if(!(X||K||v))return[{chainId:a,calls:await U()}];const Q=v?vh(C,e.pivot,k,t?.sourceGasSkimOverride??0n):F&&T?F.walletDeposit>0n?oc(T.token,F.walletDeposit,a):null:K?oc(g??dt(n.asset.address),L,a):null,Y=(ae,ie)=>({token:dt(ae),from:"escrow",to:o,amount:ie});if(p){if(!g)throw new Error("Swap input token could not be resolved");if(!D||M===null)throw new Error("Swap quote not available yet")}if(p&&D&&M&&g){t?.onSwap?.(D,t?.actionContextOverride?.netAmount??e.swapInputAmount??O);const ae=await s(t?.actionAmountOverride??M,{...S,netAmount:t?.actionAmountOverride??M}),{feeCall:ie,remainingCalls:ne}=lu(ae,c,p,S.feeToken),_={chainId:a,calls:[...ie?[ie]:[],...D.calls,...ne],tokenTransfers:[Y(g,R)]},de=await _r(_,l,{userAddress:o,destinationChainId:a,deliveryToken:g,deliveryAmount:R,withdrawalAmount:N,deliveryRecipient:o,deliveryTransfers:ea(_,N),sourceAsset:n.asset},h);return Q?[Q,...de]:de}const oe=g??fo(n.asset,a)??i.address,he={chainId:a,calls:await U(),tokenTransfers:[Y(oe,R)]},ve=await _r(he,l,{userAddress:o,destinationChainId:a,deliveryToken:oe,deliveryAmount:R,withdrawalAmount:N,deliveryRecipient:o,deliveryTransfers:ea(he,N),sourceAsset:n.asset},h);return Q?[Q,...ve]:ve}async function Ch(e,t,n,o,r){let a=e;for(let i=0;i<4;i++){const s=await t(a),c=await o(s,n,a,r),l=Kp(c);if(l===null||l>=e)return a;const d=a-l,u=e+d;if(u<=a)return a;a=u}return a}function Ah(e){return{...e,resolve:async(t,n,o)=>{const r=await e.resolve(t,n,o),a=r?.calls[0]?.to;return!r||!a||Ae(t.tokenIn)?r:{...r,calls:[{to:t.tokenIn,value:0n,data:Ot({abi:pt,functionName:"approve",args:[a,r.amountInMax]})},...r.calls]}}}}function Na(e){const t=(e?.customVenues??[]).map(o=>Rf(Ah(o)));async function n(o,r,a){const i=t.filter(l=>l.chainIds.includes(r));if(i.length===0)throw new xe("NO_SWAP_ROUTE",`No exact-output venue supports chain ${r}`,{chainId:r,tokenIn:o.tokenIn,tokenOut:o.tokenOut});const s=(await Promise.allSettled(i.map(async l=>({venue:l,quote:await l.resolve(o,r,a)})))).filter(l=>l.status==="fulfilled").map(l=>l.value).filter(l=>l.quote!==null);if(s.length===0)throw new xe("NO_SWAP_ROUTE",`All aggregators failed for ${o.tokenIn} \u2192 ${o.tokenOut} on chain ${r}`,{chainId:r,tokenIn:o.tokenIn,tokenOut:o.tokenOut,amountOut:o.amountOut.toString()});const c=s.find(l=>l.venue.preferred);return c?c.quote:(s.sort((l,d)=>l.quote.amountIn<d.quote.amountIn?-1:l.quote.amountIn>d.quote.amountIn?1:0),s[0].quote)}return{getQuote:n,venues:t}}function pu(e,t,n){if(e._source==="wallet")return e.chainId===t?e.address:null;const o=Qr(e,t);return o.find(r=>r.toLowerCase()===n.toLowerCase())??o[0]??null}async function ac(e,t,n,o){const r=Oo(o),a=await ze.estimateBatchGas({user:t,outputToken:n,requireSimulation:!0,includePlatformFee:!0,signal:e.signal,chainBatches:o.map((i,s)=>({...i,hash:r[s].hash}))});if(!a.simulationVerified||a.gasQuoteSource!=="estimated"||a.platformFee===void 0||a.gasFee<=0n)throw new Error("Fee funding requires verified gas and platform pricing");return a}async function Pa(e,t){const n=e.selectedAsset?.asset,o=!t&&!!e.actionProceeds&&e.actionProceeds.token.toLowerCase()!==e.destinationToken.address.toLowerCase(),r=!!t||o,a=e.embeddedWalletAddress||e.providerEmbeddedAddress;if(!a||!r&&(!n||n._source!=="spice"&&!(n._source==="wallet"&&n.chainId===e.resolvedChainId)))throw new Error("A local embedded or Spice balance is required for fee conversion");const i=t?t.token:o?e.actionProceeds.token:pu(n,e.resolvedChainId,e.destinationToken.address);if(!i)throw new Error("This receipt has no registered destination withdrawal token");const s=Yt(i,e.resolvedChainId)?.decimals??(Ae(i)?18:r?await Rt(e.resolvedChainId).readContract({address:i,abi:pt,functionName:"decimals"}):n?._source==="wallet"?n.decimals:void 0);if(s===void 0)throw new Error("Fee funding token metadata is unavailable");const c=e.destinationToken.address;if(e.actionProceeds&&!o&&e.actionProceeds.token.toLowerCase()!==c.toLowerCase())throw new Error("Action proceeds must use the destination fee token");const l=t?t.amount:e.actionProceeds?await e.actionProceeds.resolve(e.signal):0n;if(l<0n||e.signal?.aborted)throw new Error("Action proceeds quote was cancelled or invalid");const d=Na({customVenues:[...e.resolveExactOutputSwap?[{name:"consumer-exact-output",chainIds:[e.resolvedChainId],preferred:!0,resolve:e.resolveExactOutputSwap}]:[],...Sr(e.liquidityVenues).output]}),u=w=>ac(e,a,c,w);let p=await u(await e.buildPayChainBatches({fundingAmountOverride:0n}));for(let w=0;w<8;w++){const f=p.gasFee+p.platformFee,g=r?0n:l<f?l:f,h=f-g,b=h>0n?(h*110n+99n)/100n+2n:0n,v=b>0n?await d.getQuote({tokenIn:i,tokenOut:c,amountOut:b,maxSlippage:e.maxSlippage},e.resolvedChainId,a):null;if(e.signal?.aborted)throw new Error("Fee conversion quote was cancelled");if(v&&(v.amountOut!==b||v.amountInMax<=0n||v.amountInMax<v.amountIn||!v.calls.length))throw new Error("Invalid exact-output fee conversion quote");const C=v?.amountInMax??0n,x=r?0n:ta(C,s,n.decimals);if(r&&C>l)throw new ur(C,l);if(!r&&x>n.balance)throw new ur(x,n.balance);let k,E=_o(await e.buildPayChainBatches({fundingAmountOverride:r?0n:C,...r?{}:{fundingTokenOverride:i},...t?{actionAmountOverride:t.amount-C}:{},...o?{actionOutputFee:C}:{},onActionCalls:y=>{k=y}}),a,void 0,{expiresAt:e.expiresAt});if(v){const y=E.length-1;E=E.map((A,T)=>T===y?{...A,calls:[...A.calls,...v.calls]}:A)}E=Ji(E,a,c,p.gasFee,p.platformFee);const I=await u(E).catch(y=>{throw v&&y instanceof xe&&y.code==="RELAYER_ERROR"&&y.context.endpoint==="/actions/gas/estimate"&&y.context.httpStatus===400&&/^Execution reverted\b/i.test(y.message)?new xe("NO_SWAP_ROUTE",y.message,y.context):y});if(I.gasFee<=p.gasFee&&(p.gasFee-I.gasFee)*100n<=I.gasFee*15n&&I.platformFee===p.platformFee){const y={tokenIn:i,tokenOut:c,amountInMax:C,amountOut:b,sourceAmountMax:x,...o?{fromProceeds:!0}:{},...t?{fromInput:!0}:{}};return{feeEstimate:null,preview:{symbol:e.destinationToken.symbol,decimals:e.destinationToken.decimals,grossAmount:r?0n:b,netAmount:0n,gasFee:p.gasFee,spicenetFee:p.platformFee,totalFee:f,gasQuoteSource:"estimated"},grossFundingAmount:r?0n:C,proceedsAvailable:l,proceedsUsed:r?f:g,fundingConversion:y,fundingBatches:E,sourceSpendCap:x,destinationAmount:0n,actionDefinition:k}}p=I}throw new Error("Fee conversion pricing did not converge")}const Us=["input","proceeds","balance"];function fu(e){if(e.reserve&&e.reserve.amount<0n)throw new Error("Fee funding reserve cannot be negative");if(e.reserves?.some(s=>s.amount<0n))throw new Error("Fee funding reserve cannot be negative");const t=s=>G(s,e.feeToken),n=(s,c)=>Number(s.swap)-Number(c.swap),o={input:[],proceeds:[],balance:[]};for(const s of e.inputs??[])s.amount>0n&&o.input.push({kind:"input",...s,swap:!t(s.token)});o.input.sort(n);for(const s of Array.isArray(e.proceeds)?e.proceeds:e.proceeds?[e.proceeds]:[])s.amount>0n&&o.proceeds.push({kind:"proceeds",...s,swap:!t(s.token)});o.proceeds.sort(n);const r=e.balances.filter(s=>s._source==="wallet"&&s.chainId===e.chainId&&s.location!=="external"),a=e.balances.filter(s=>s._source==="spice"),i=s=>{const c=[];for(const l of s){const d=[...e.reserves??[],...e.reserve?[e.reserve]:[]].filter(f=>ke(l)===ke(f.asset)).reduce((f,g)=>g.amount>f?g.amount:f,0n),u=l.balance-d;if(u<=0n)continue;const p=d>0n?{...l,balance:u,balanceFormatted:Number(Le(u,l.decimals)),balanceUsd:l.balanceUsd*Number(u)/Number(l.balance)}:l,w=pu(p,e.chainId,e.feeToken);w&&(e.inputs?.some(f=>G(f.token,w)&&![...e.reserves??[],...e.reserve?[e.reserve]:[]].some(g=>G(g.asset.address,f.token)))||c.push({kind:"balance",token:w,amount:p.balance,asset:p,...d>0n?{reservedAmount:d}:{},swap:!t(w)}))}return c.sort((l,d)=>n(l,d)||d.asset.balanceUsd-l.asset.balanceUsd)};return o.balance=[...i(r),...i(a)],(e.order??Us).flatMap(s=>o[s])}function Sh(e){return e instanceof ur||e instanceof xe&&e.code==="NO_SWAP_ROUTE"}async function sc(e,t){const n=e.embeddedWalletAddress||e.providerEmbeddedAddress;if(!n||!e.ready||!e.authenticated)return null;const o=e.destinationToken.address;let r;const a=()=>r??(r=(async()=>{const l=await ac(e,n,o,await e.buildPayChainBatches({fundingAmountOverride:0n}));return{feeEstimate:null,preview:{symbol:e.destinationToken.symbol,decimals:e.destinationToken.decimals,gasFee:l.gasFee,spicenetFee:l.platformFee,bridgeFee:0n,totalFee:l.gasFee+l.platformFee,grossAmount:0n,netAmount:0n,gasQuoteSource:"estimated"}}})()),i=(l,d)=>e.buildPayChainBatches({...d,fundingAmountOverride:l}),s=(l,d,u=!1)=>eu({proceeds:{token:o,resolve:async()=>l},owner:n,token:o,signal:e.signal,baseline:a,buildBatches:(p,w)=>i(p,{...w,actionOutputFee:u?w?.actionOutputFee:void 0}),fundShortfall:!1,expiresAt:e.expiresAt,actionAmountFor:d}),c=async l=>{if(l.kind==="input")return l.swap?Pa({...e,actionProceeds:void 0},l):s(l.amount,f=>l.amount-f);if(l.kind==="proceeds"){const f={token:l.token,resolve:async()=>l.amount};return l.swap?Pa({...e,actionProceeds:f}):s(l.amount,void 0,!0)}const d=l.asset;if(d._source==="wallet"&&!l.swap)return s(d.balance);let u=!l.swap&&d._source==="spice"?e.getCombinedSourceGroup?.(d):void 0;if(u){const f=[ke(u.wallet),ke(u.escrow)],g=[...e.feeFundingReserves??[],...e.feeFundingReserve?[e.feeFundingReserve]:[]].filter(h=>f.includes(ke(h.asset)));g.length&&(u=e.getCombinedSourceGroup?.(d,g))}const p={...e,selectedAsset:{asset:d,amount:"0"},combinedSourceGroup:u,resolvedTokenIn:l.token,actionInput:void 0,actionProceeds:void 0,buildPayChainBatches:f=>e.buildPayChainBatches({...f,sourceAssetOverride:d,combinedSourceGroupOverride:u??null,fundingTokenOverride:f?.fundingTokenOverride??l.token})};if(l.swap)return Pa(p);const w=await t(p);if(w&&(w.sourceSpendCap??0n)>(u?.availableBalance??d.balance))throw new ur(w.sourceSpendCap,u?.availableBalance??d.balance);return w};for(const l of e.feeFunding??Us){const d=l!=="proceeds"?[]:e.actionProceedsCandidates?await e.actionProceedsCandidates(e.signal):e.actionProceeds?[{token:e.actionProceeds.token,amount:await e.actionProceeds.resolve(e.signal)}]:[];if(e.signal?.aborted)throw new Error("Fee funding quote was cancelled");if(d.some(p=>p.amount<0n))throw new Error("Action proceeds cannot be negative");const u=fu({feeToken:o,chainId:e.resolvedChainId,inputs:e.actionInput,proceeds:[...d.reduce((p,w)=>{const f=w.token.toLowerCase(),g=p.get(f);return p.set(f,{token:w.token,amount:(g?.amount??0n)+w.amount}),p},new Map).values()],balances:e.feeFundingBalances??[],order:[l],reserve:e.feeFundingReserve,reserves:e.feeFundingReserves});for(const p of u)try{const w=await c(p);if(!w)continue;const{swap:f,...g}=p;return{...w,fundingSource:g}}catch(w){if(e.signal?.aborted||!Sh(w))throw w}}if(!e.isNon7702&&e.allowRelayerFeeFallback!==!1){if(e.feeFundingError)throw new Error(e.feeFundingError);let l;const d=await e.buildPayChainBatches({fundingAmountOverride:0n,onActionCalls:u=>{l=u}});if(d.every(u=>u.domain!=="spicenet"&&!u.tokenTransfers?.length)){const u=await ac(e,n,o,d);if(e.signal?.aborted)throw new Error("Fee funding quote was cancelled");return{feeEstimate:null,actionDefinition:l,batches:d,sourceSpendCap:0n,grossFundingAmount:0n,preview:{feePayer:"relayer",symbol:e.destinationToken.symbol,decimals:e.destinationToken.decimals,gasFee:u.gasFee,spicenetFee:u.platformFee,bridgeFee:0n,totalFee:u.gasFee+u.platformFee,grossAmount:0n,netAmount:0n,gasQuoteSource:"estimated"}}}}throw new Error(`No available balance can cover this action's ${e.destinationToken.symbol} execution cost`)}async function mu(e,t,n,o=!1){const r=e.selectedAsset,a=e.embeddedWalletAddress||e.providerEmbeddedAddress;if(!r||!a||!e.ready||!e.authenticated||e.isQuoting)return null;if(!e.combinedSourceGroup&&r.asset._source!=="wallet"||r.asset.chainId!==e.resolvedChainId||!jr(r.asset)&&r.asset.owner&&!G(r.asset.owner,a))throw new Error("Funded fee hierarchy requires principal on the action chain in the executing wallet.");if(o&&(e.isPayMode||!e.isFeeInclusiveInput||t.recipient&&!G(t.recipient,a)))throw new Error("Output-funded actions require an input-inclusive amount left in the executing wallet.");if(e.isPayMode&&e.needsSwap&&!e.exactOutputSwap)return null;const i=e.isPayMode?Nn(e.currentPaymentAmount,e.destinationToken.decimals):void 0;if(e.isPayMode&&e.needsSwap&&e.exactOutputSwap.amountOut!==i)throw new Error("Wait for the payment quote for the current amount.");const s=ir(e.resolvedChainId).find(k=>k.equivalenceGroup==="USDC");if(!s)throw new Error("Configure the execution fee token for this chain.");const c={...s,address:s.address,chainId:e.resolvedChainId},l=i!==void 0?e.needsSwap?e.exactOutputSwap.amountInMax:i:Nn(r.amount,r.asset.decimals);if(l<=0n||l>(e.combinedSourceGroup?.availableBalance??r.asset.balance))throw new Error("Enter an amount within the available balance.");if(!e.isPayMode&&e.needsSwap&&t.swapInputAmount!=null&&t.swapInputAmount!==l)throw new Error("Wait for the action quote for the current amount.");const d=i??(e.needsSwap?t.resolvedSwap?.amountOutMinimum??0n:l);let u=t.resolvedSwap??void 0,p=l,w=d;const f=e.combinedSourceGroup?nc(e.combinedSourceGroup,l,"in-place"):void 0,g={...e,feeOnlyAction:!0,selectedAsset:null,isPayMode:!0,isFeeInclusiveInput:!1,parsedAmount:0,currentPaymentAmount:"0",destinationToken:c,resolvedTokenIn:c.address,executionTokenAddress:c.address,needsSwap:!1,resolvedSwap:null,isDirect:!0,actionInput:!e.isPayMode&&e.isFeeInclusiveInput?[{token:r.asset.address,amount:l}]:void 0,actionProceeds:o?{token:e.destinationToken.address,resolve:async()=>d>0n?d-1n:0n}:e.actionProceeds,feeFundingBalances:e.feeFundingBalances?.filter(k=>!k.balanceError&&!(e.feeFundingReserve&&ke(e.feeFundingReserve.asset)!==ke(r.asset)&&ke(k)===ke(e.feeFundingReserve.asset))&&!jr(k)&&(!k.owner||G(k.owner,a))),feeFundingReserves:f?.positions.map(k=>({asset:k.asset,amount:k.amount})),feeFundingReserve:f?void 0:{asset:r.asset,amount:e.feeFundingReserve&&ke(e.feeFundingReserve.asset)===ke(r.asset)&&e.feeFundingReserve.amount>l?e.feeFundingReserve.amount:l},buildPayChainBatches:async k=>{const E=k?.actionAmountOverride??l;if(E<=0n)throw new ur(l+1n,l);const I=!e.isPayMode&&e.needsSwap?E===l?t.resolvedSwap:await t.resolveInputSwap?.(E,t.resolvedSwap??void 0):null,y=e.needsSwap?e.isPayMode?e.exactOutputSwap:I:null;if(e.needsSwap&&!y)throw new Error("The action quote is unavailable.");u=I??(e.isPayMode&&y?{...y,amountOutMinimum:y.amountOut}:void 0),p=E;const A=i??u?.amountOutMinimum??E,T=o?k?.actionOutputFee??0n:0n;if(T<0n)throw new Error("Output fee cannot be negative");if(T>=A)throw new ur(T+1n,A);w=A-T;const F={userAddress:t.recipient??a,executorAddress:a,beneficiary:t.recipient??a,outputRecipient:a,chainId:e.resolvedChainId,destinationToken:e.destinationToken.address,grossAmount:d,netAmount:w,feeToken:c.address,feeExecutionMode:"backend-transfer"},L=await t.buildActionCalls(w,F),R={amount:w,context:F,calls:L},N=[...y?.calls??[],...L];let O=await na({...t,selectedAsset:null,combinedSourceGroup:void 0,feeOnlyAction:!0,isPayMode:!0,isFeeInclusiveInput:!1,currentPaymentAmount:"0",destinationToken:c,resolvedTokenIn:c.address,needsSwap:!1,resolvedSwap:null,exactOutputSwap:null,quoteAmountOut:null,feeExecutionMode:"backend-transfer",buildActionCalls:()=>N},{...k,onActionCalls:()=>k?.onActionCalls?.(R)});if(f?.escrowWithdrawal){const D=[...O].reverse().findIndex(S=>S.domain!=="spicenet"&&S.chainId===e.resolvedChainId),M=D<0?-1:O.length-D-1;if(M<0)throw new Error("The action quote is unavailable.");O[M]={...O[M],tokenTransfers:[...O[M].tokenTransfers??[],{token:f.token,from:"escrow",to:a,amount:f.escrowWithdrawal}]},O=_o(O,a,void 0,{payoutAlreadyGross:!0,requestTimestampMs:t.requestTimestampMs,expiresAt:e.expiresAt})}return O}},h=await sc(g,n);if(!h)return null;const b=o&&h.fundingSource?.kind==="proceeds"?h.fundingConversion?.amountInMax??h.proceedsUsed??0n:0n;if(w<=0n)throw new Error("Not enough action output remains after execution costs.");let v=f;const C=v&&h.sourceAllocation&&v.positions.every(k=>h.sourceAllocation.positions.some(E=>E.positionId===k.positionId)),x=h.sourceAllocation&&!C?h.sourceAllocation:void 0;if(v){const k=h.sourceAllocation?.positions??[],E=h.fundingSource?.kind==="balance"&&h.fundingSource.asset&&ke(h.fundingSource.asset)===ke(e.combinedSourceGroup.wallet)?h.fundingConversion?.amountInMax??h.proceedsUsed??0n:0n,I=k.find(A=>A.positionId===ke(e.combinedSourceGroup.wallet))?.amount??E,y=k.find(A=>A.positionId===ke(e.combinedSourceGroup.escrow))?.amount??(h.fundingSource?.kind==="balance"&&h.fundingSource.asset&&ke(h.fundingSource.asset)===ke(e.combinedSourceGroup.escrow)?h.sourceSpendCap??0n:0n);v={...v,grossAmount:l+I+y,walletInPlace:v.walletInPlace+I,escrowWithdrawal:v.escrowWithdrawal+y,positions:v.positions.map(A=>({...A,amount:A.amount+(A.asset.location==="embedded"?I:y),reservedAmount:0n}))}}return{...h,preview:G(e.destinationToken.address,c.address)?{...h.preview,netAmount:w,grossAmount:w+(h.preview.feePayer==="relayer"?0n:h.preview.gasFee+h.preview.spicenetFee+(h.preview.bridgeFee??0n))}:h.preview,fundedFeeToken:c,batches:h.fundingBatches??h.batches,destinationSwap:u,swapInputAmount:p,destinationAmount:w,actionOutputCredits:Ts(e.resolvedChainId,e.destinationToken.address,u&&{...u,amountOutMinimum:u.amountOutMinimum-b}),sourceAllocation:v,feeSourceAllocation:x,sourceSpendCap:v?.grossAmount??l+(h.fundingSource?.kind==="balance"&&h.fundingSource.asset&&ke(h.fundingSource.asset)===ke(r.asset)?h.fundingConversion?.amountInMax??h.proceedsUsed??0n:0n)}}function ic(e,t){const n=new Map,o=(i,s,c)=>{if(c<0n)throw new Error("Accepted wallet funding must not be negative");if(!c)return;if(!Number.isInteger(i)||i<=0)throw new Error("Accepted wallet funding chain is unavailable");s=dt(s);const l=`${i}:${s.toLowerCase()}`,d=n.get(l);n.set(l,{chainId:i,token:s,amount:(d?.amount??0n)+c})},r=[e.sourceAllocation,e.feeSourceAllocation];if(e.fundingPlan)for(const i of e.fundingPlan.sources)i.asset.location==="embedded"&&o(i.chainId,i.token,i.sourceSpendCap);else{if(e.sourceAllocation)for(const s of e.sourceAllocation.positions)s.asset.location==="embedded"&&o(e.sourceAllocation.chainId,e.sourceAllocation.token,s.amount);else t?.asset._source==="wallet"&&e.sourceSpendCap!==void 0&&o(t.asset.chainId,t.asset.address,e.sourceSpendCap);if(e.feeSourceAllocation)for(const s of e.feeSourceAllocation.positions)s.asset.location==="embedded"&&o(e.feeSourceAllocation.chainId,e.feeSourceAllocation.token,s.amount);const i=e.fundingSource;if(i?.kind==="balance"&&i.asset?._source==="wallet"){const s=ke(i.asset),c=r.some(d=>d?.positions.some(u=>u.positionId===s)),l=!!e.fundedFeeToken&&!!t&&s===ke(t.asset);!c&&!l&&o(i.asset.chainId,i.token,e.fundingConversion?.amountInMax??e.proceedsUsed??0n)}if(i?.kind==="input"&&!e.fundedFeeToken){const s=e.batches??e.fundingBatches??[],c=e.actionDefinition?.context.chainId??[...s].reverse().find(l=>l.domain!=="spicenet")?.chainId;o(c??0,i.token,i.amount)}}const a=e.externalGasReserve?.fundingSource;return a&&o(a.asset.chainId,a.token,a.amount),[...n.values()]}async function Eh(e,t){const n=e.externalGasRecipient,o=e.embeddedWalletAddress||e.providerEmbeddedAddress,r=e.resolvedChainId,a=t.batches,i=a.map(b=>b.chainId).lastIndexOf(r);if(i<0)throw new Error("Destination gas quote is unavailable.");const[s,c]=await Promise.all([ze.estimateBatchGas({user:o,outputToken:zt,chainBatches:a,stepIndex:i,signal:e.signal}),Rt(r).getBalance({address:n})]);if(e.signal?.aborted)throw new Error("Fee estimation cancelled");if(s.gasQuoteSource!=="estimated"||s.gasFee<=0n)throw new Error("A native gas quote is required for the external wallet.");const l=a[i].calls.reduce((b,v)=>G(v.to,n)&&v.data==="0x"?b+v.value:b,0n),d=3n*s.gasFee,u=await e.externalGasCalls?.(t)??[],p=u.reduce((b,v)=>b+v.value,0n),w=(3n+BigInt(u.length))*d+p,f=c+l<w?w-c-l:0n,g={chainId:r,recipient:n,balance:c,incoming:l,transactionGas:d,nativeAmount:f,currentTransactions:u.length,currentValue:p,feeAmount:0n,calls:[]};if(f===0n)return g;const h=e.executionTokenAddress;if(Ae(h))g.feeAmount=f;else{const b=Na({customVenues:[...e.resolveExactOutputSwap?[{name:"consumer-exact-output",chainIds:[r],preferred:!0,resolve:e.resolveExactOutputSwap}]:[],...Sr(e.liquidityVenues).output]}),v=x=>b.getQuote({tokenIn:x,tokenOut:zt,amountOut:f,maxSlippage:e.maxSlippage},r,o),C=x=>{if(x.amountOut!==f||x.amountInMax<=0n||!x.calls.length)throw new Error("The external gas purchase could not be quoted.");if(e.signal?.aborted)throw new Error("Fee estimation cancelled");return x};try{const x=C(await v(h));g.feeAmount=x.amountInMax,g.calls=x.calls}catch(x){if(e.signal?.aborted||!(x instanceof xe)||x.code!=="NO_SWAP_ROUTE")throw x;const k=ic(t,e.selectedAsset),E=(e.feeFundingBalances??[]).filter(y=>y._source==="wallet"&&y.chainId===r&&!jr(y)&&y.location!=="rollup"&&!y.balanceError&&!y.balanceStatus&&(!y.owner||G(y.owner,o))&&!G(y.address,h)),I=fu({feeToken:zt,chainId:r,balances:E,order:["balance"],reserves:[...e.feeFundingReserves??[],...e.feeFundingReserve?[e.feeFundingReserve]:[],...E.flatMap(y=>k.filter(A=>A.chainId===r&&G(A.token,dt(y.address))).map(A=>({asset:y,amount:A.amount})))]});for(const y of I){if(e.signal?.aborted)throw new Error("Fee estimation cancelled");try{const A=Ae(y.token)?void 0:C(await v(y.token)),T=A?.amountInMax??f;if(T>y.amount)continue;const F=E.find(L=>ke(L)===ke(y.asset));g.fundingSource={asset:F,token:y.token,amount:T},g.calls=A?.calls??[];break}catch(A){if(e.signal?.aborted||!(A instanceof xe)||A.code!=="NO_SWAP_ROUTE")throw A}}if(!g.fundingSource)throw x}}return g.calls=[...g.calls,{to:n,value:f,data:"0x"}],g}function Ws(e,t){if(!t?.nativeAmount)return e;const n=e.map(o=>o.chainId).lastIndexOf(t.chainId);if(n<0)throw new Error("The gas reserve destination changed.");return e.map((o,r)=>r===n?{...o,calls:[...o.calls,...t.calls]}:o)}function hu(e,t){if(e&&e.nativeAmount>0n){const n=t.filter(r=>r.chainId===e.chainId).slice(-1)[0],o=n?.calls.slice(-e.calls.length);if(!o||o.length!==e.calls.length||o.some((r,a)=>{const i=e.calls[a];return!G(r.to,i.to)||r.value!==i.value||r.data!==i.data}))throw new Error("The external gas purchase changed. Refresh the quote before submitting.");if(n.calls.slice(0,-e.calls.length).reduce((r,a)=>G(a.to,e.recipient)&&a.data==="0x"?r+a.value:r,0n)<e.incoming)throw new Error("The native result changed. Refresh the gas reserve quote before submitting.")}}async function gu(e,t){if(!e)return;t&&hu(e,t);const n=await Rt(e.chainId).getBalance({address:e.recipient});if(e.nativeAmount>0n?n!==e.balance:n+e.incoming<(3n+BigInt(e.currentTransactions))*e.transactionGas+e.currentValue)throw new Error("The external wallet gas balance changed. Refresh the quote before submitting.")}async function Fh(e){const t=e.selectedAsset.asset;if(t.chainId!==e.destinationToken.chainId||!G(dt(t.address),dt(e.destinationToken.address)))throw new Error("Direct execution requires the destination token on its own chain.");if(t.decimals!==e.destinationToken.decimals)throw new Error("Source and destination token decimals do not match.");const n=Nn(e.paymentAmount??e.selectedAsset.amount,t.decimals);if(n<=0n)throw new Error("Enter a positive action amount.");const o={userAddress:e.beneficiary??e.account,executorAddress:e.account,beneficiary:e.beneficiary??e.account,chainId:e.destinationToken.chainId,destinationToken:e.destinationToken.address,feeToken:t.address,grossAmount:n,netAmount:n,combinedFeeAmount:0n,feeExecutionMode:e.feeExecutionMode,feeBreakdown:{spicenetFee:0n,gasFee:0n,bridgeFee:0n}},r=await e.buildActionCalls(n,o);if(!r.length)throw new Error("No action calls configured.");if(Ae(t.address)&&r.reduce((a,i)=>a+i.value,0n)>n)throw new Error("The native action exceeds the accepted source amount.");return{actionDefinition:{amount:n,context:o,calls:r},actionContext:o,batches:[{chainId:o.chainId,calls:r}],fundingAmount:n,sourceSpendCap:n,destinationAmount:n,feeEstimate:null,preview:{symbol:t.symbol,decimals:t.decimals,grossAmount:n,netAmount:n,totalFee:0n,gasFee:0n,spicenetFee:0n,bridgeFee:0n,gasQuoteSource:"static_zero"}}}async function wu(e){const[t]=await e.buildSupplyChainBatches({sourceGasSkimOverride:1n,reuseQuotedSourceSwap:!0});if(!t)throw new Error("Swap quote not available yet");const{gasFee:n}=await ze.estimateBatchGas({user:e.user,outputToken:e.pivot.source.address,stepIndex:0,chainBatches:[t],signal:e.signal});return n}const cc=(e,t)=>(e+t-1n)/t;function Ls(e,t,n=0n){return e.intents.length===0?t:{...e,intents:e.intents.map(o=>({...o,batches:o.batches.map(r=>{const a=t.intents.find(c=>c.intentIndex===o.intentIndex)?.batches.find(c=>c.chainId===r.chainId);if(!a&&n===0n)return r;const i={...r.feeBreakdown};let s=0n;for(const c of["gasFee","bridgeFee"]){const l=BigInt(i[c]??"0"),d=BigInt(a?.feeBreakdown[c]??"0"),u=l>d?l+cc(l*n,10000n):d;u>l&&(i[c]=u.toString(),s+=u-l)}return{...r,feeBreakdown:i,totalDebit:(BigInt(r.totalDebit)+s).toString()}})}))}}async function yu(e){if(e.options.signal?.aborted)throw new Error("Fee estimation cancelled");if(!ze.canValidateActionFees())throw new Error("This withdrawal requires signed fee validation. Refresh the quote before submitting.");const[t,n]=await Promise.all([e.signedEstimate??e.estimate(e.batches,e.tokenAddress,e.fundingAmount,{...e.options,feeExecutionMode:"user-transfer",validateFeeCalls:!0}),e.estimate(e.pricingBatches,e.tokenAddress,e.fundingAmount,{...e.options,feeExecutionMode:"backend-transfer",validateFeeCalls:!1})]);if(e.options.signal?.aborted)throw new Error("Fee estimation cancelled");const o=r=>r.intents.flatMap(a=>a.batches.map(i=>`${a.intentIndex}:${i.chainId}`)).sort().join(",");if(!o(n)||o(n)!==o(t))throw new Error("Unable to validate the signed withdrawal fees.");return{intents:n.intents.map(r=>({...r,batches:r.batches.map(a=>{const i=t.intents.find(l=>l.intentIndex===r.intentIndex)?.batches.find(l=>l.chainId===a.chainId);if(!i)throw new Error("Unable to validate the signed withdrawal fees.");const s={...a.feeBreakdown};let c=0n;for(const l of["gasFee","bridgeFee"]){const d=BigInt(s[l]??"0"),u=BigInt(i.feeBreakdown[l]??"0");u>d&&(s[l]=u.toString(),c+=u-d)}return{...a,feeBreakdown:s,totalDebit:(BigInt(a.totalDebit)+c).toString()}})}))}}function Th(e,t){const n=e.spicenetFee+(e.bridgeFee??0n);return e.grossAmount<=n?t+e.gasFee+n:cc((t+e.gasFee)*e.grossAmount,e.grossAmount-n)+2n}async function bu(e){const{requiredNetFunding:t}=e;if(e.feeOnlyAction){const l=e.executionOptions?.userOverride;if(!l||t!==0n)throw new Error("Fee-only estimates require a zero action amount and its embedded executor");let d=1n,u;for(let p=0;p<8;p++){const w=_o(await e.buildBatches(d),l,u,{payoutAlreadyGross:!0,expiresAt:e.expiresAt}),f=await e.estimate($r(w,e.tokenDescriptor.chainId,e.fundingToken),e.fundingToken,d,{...e.executionOptions,feeExecutionMode:"backend-transfer"}),g=yo(f,e.tokenDescriptor);if(!g)throw new Error("The fee service did not return a fee quote for this action");const h=g.gasFee+g.spicenetFee+(g.bridgeFee??0n);if(u&&h+2n<=d)return{preview:{...g,grossAmount:d,netAmount:0n},feeEstimate:f,grossFundingAmount:d};d=(h*110n+99n)/100n+2n,u=f}throw new Error("Fee-only funding did not converge; refresh the fee quote before retrying")}const n=await e.buildBatches(t),o=await e.estimate(n,e.fundingToken,t,e.executionOptions),r=yo(o,e.tokenDescriptor);if(!r)return{preview:ma(n,e.tokenDescriptor,t),feeEstimate:o,grossFundingAmount:t};const a=Th(r,t),i=l=>r.grossAmount>0n?cc(l*a,r.grossAmount):l,s=i(r.spicenetFee),c=i(r.bridgeFee??0n);return{preview:{...r,grossAmount:a,netAmount:t,spicenetFee:s,bridgeFee:c,totalFee:r.gasFee+s+c},feeEstimate:o,grossFundingAmount:a}}async function xu(e){if(e.balance<=0n)throw new Error("No spendable balance remains after source gas.");let t=e.balance;for(let n=0;n<8;n++){const o=await e.planForAmount(t);if(!o||o.sourceSpendCap===void 0||o.sourceSpendCap<=0n)throw new Error("Max requires a current route and fee estimate.");if(o.sourceSpendCap<=e.balance)return ri(t,e.decimals);const r=t*e.balance/o.sourceSpendCap;if(r<=0n||r>=t)throw new Error("The balance cannot cover this action and its fees.");t=r}throw new Error("Max fees did not converge. Refresh the quote before retrying.")}async function Oh(e){if(e.isPayMode||e.needsSwap||e.isQuoting||e.pivot||!e.embeddedWalletAddress)return null;const t=e.asset,n=Yt(e.executionTokenAddress,t.chainId);return!n||t.balance<=0n?null:xu({balance:t.balance,decimals:t.decimals,planForAmount:o=>Vo({selectedAsset:{asset:t,amount:ri(o,t.decimals)},isPayMode:!1,isNon7702:!1,isFeeInclusiveInput:!1,parsedAmount:Number(ri(o,t.decimals)),currentPaymentAmount:"0",destinationToken:{...n,address:e.executionTokenAddress,chainId:t.chainId},resolvedChainId:t.chainId,resolvedTokenIn:e.executionTokenAddress,executionTokenAddress:e.executionTokenAddress,embeddedWalletAddress:e.embeddedWalletAddress,providerEmbeddedAddress:e.embeddedWalletAddress,address:e.embeddedWalletAddress,isConnected:!0,ready:!0,authenticated:!0,isDirect:!0,isSourceDestToken:!0,needsSwap:!1,isQuoting:!1,resolvedSwap:null,exactOutputSwap:null,buildPayChainBatches:async()=>[],buildSupplyChainBatches:r=>e.buildSupplyChainBatches({...r,actionAmountOverride:o}),estimate:e.estimate,feeExecutionMode:e.feeExecutionMode})})}async function Vo(e){const t=await vu(e);if(!e.externalGasRecipient||!t?.batches?.length)return t;const n=await Eh(e,t);if(!n.nativeAmount)return{...t,externalGasReserve:n};const o=await vu({...e,externalGasReserve:n,initialFeeEstimate:void 0,buildPayChainBatches:async r=>Ws(await e.buildPayChainBatches(r),n),buildSupplyChainBatches:async r=>Ws(await e.buildSupplyChainBatches({...r,...e.feeExecutionMode!=="user-transfer"&&r?.actionContextOverride?.netAmount!==void 0?{deliveryAmountOverride:r.actionContextOverride.netAmount+n.feeAmount}:{}}),n)});if(!o)return null;if(hu(n,o.batches??[]),n.fundingSource){const r=n.fundingSource,a=ic({...o,externalGasReserve:n},e.selectedAsset).find(i=>i.chainId===r.asset.chainId&&G(i.token,r.token));if(!a||a.amount>r.asset.balance)throw new Error("The gas reserve source cannot cover the action and fees. Refresh the quote.")}return{...o,externalGasReserve:n,preview:{...o.preview,gasFee:o.preview.gasFee+n.feeAmount,totalFee:(o.preview.totalFee??0n)+(e.isPayMode?n.feeAmount:0n),...e.isPayMode?{netAmount:o.preview.netAmount-n.feeAmount}:{}}}}async function vu(e){const{signal:t,selectedAsset:n,isPayMode:o,isFeeInclusiveInput:r=!1,parsedAmount:a,needsSwap:i,exactOutputSwap:s,isNon7702:c,currentPaymentAmount:l,destinationToken:d,feeExecutionMode:u,resolvedTokenIn:p,embeddedWalletAddress:w,providerEmbeddedAddress:f,resolvedChainId:g,isConnected:h,address:b,ready:v,authenticated:C,isDirect:x,resolvedSwap:k,sourceSwap:E,pivot:I,isQuoting:y,executionTokenAddress:A,buildPayChainBatches:T,buildSupplyChainBatches:F,estimate:L}=e;if(e.feeOnlyAction&&!n&&e.feeFunding?.length!==0)return sc(e,Vo);if(e.feeOnlyAction&&e.actionProceeds&&e.actionProceeds.token.toLowerCase()!==d.address.toLowerCase()||e.feeOnlyAction&&n&&(n.asset._source==="spice"||n.asset._source==="wallet"&&n.asset.chainId===g)&&(p?p.toLowerCase()!==d.address.toLowerCase():n.asset.receiptTokenId||n.asset.chainTokens))return Pa(e);if(e.actionProceeds&&e.feeOnlyAction){const Y=w||f;if(!Y||!v||!C)return null;if(p&&p.toLowerCase()!==d.address.toLowerCase())throw new Error("Action proceeds require a matching fee-token source");return eu({proceeds:e.actionProceeds,owner:Y,token:d.address,signal:t,buildBatches:(oe,he)=>T({...he,fundingAmountOverride:oe}),baseline:()=>Vo({...e,actionProceeds:void 0,selectedAsset:n??{amount:"0",asset:{...d,name:d.symbol,balance:0n,balanceFormatted:0,balanceUsd:0,isNative:!1,_source:"spice"}}})})}if(!n?.asset)return null;if(o){if(!w&&!f||a<=0&&!e.feeOnlyAction||i&&!s&&!e.feeOnlyAction)return null;const Y=Nn(l,d.decimals),oe=p||fo(n.asset,g)||n.asset.address||d.address,he={chainId:g,tokenAddress:oe,symbol:Yt(oe,g)?.symbol??n.asset.symbol,decimals:await zo(n.asset,oe,g,d)};if(!e.quoteOnly&&(!h||!b||!v||!C))return null;const ve=w||f||b,ae=(i?s?.amountInMax??0n:Y)+(e.externalGasReserve?.feeAmount??0n);if(ae===0n&&!e.feeOnlyAction)return null;const ie=I?await wu({user:ve,pivot:I,buildSupplyChainBatches:ue=>T({...ue,sourceGasSkimOverride:1n}),signal:t}):0n,ne=Date.now();let _=await bu({requiredNetFunding:ae,expiresAt:e.expiresAt,feeOnlyAction:e.feeOnlyAction,buildBatches:ue=>T({fundingAmountOverride:ue,sourceGasSkimOverride:ie}).then(J=>_o(J,ve,void 0,{requestTimestampMs:ne,expiresAt:e.expiresAt})),fundingToken:oe,estimate:L,executionOptions:{userOverride:ve,useCustomTransfers:!0,feeExecutionMode:u,signal:t},tokenDescriptor:he});if(!_.preview)return null;let de=0n,W,Me,Oe,z=[],V=!1;for(let ue=0;ue<8;ue++){if(t?.aborted)throw new Error("Fee estimation cancelled");if(Oe=void 0,z=_o(await T({fundingAmountOverride:_.grossFundingAmount,sourceGasSkimOverride:ie,onSourceSpend:be=>{de=be},onSwap:be=>{Oe=be},onSourceAllocation:be=>{W=be},onActionCalls:be=>{Me=be}}),ve,_.feeEstimate,{payoutAlreadyGross:!0,requestTimestampMs:ne,expiresAt:e.expiresAt}),W){const be=yo(_.feeEstimate,he);if(!be)throw new Error("The action quote is unavailable.");const Ye=Ds(g,oe,[{recipient:bn,amount:be.gasFee+(be.bridgeFee??0n)},{recipient:Qn,amount:be.spicenetFee}]).calls;z=$r(z,g,oe);const Be=[...z].reverse().findIndex(Fe=>Fe.domain!=="spicenet"&&Fe.chainId===g),Pe=Be<0?-1:z.length-Be-1;if(Pe<0)throw new Error("The action quote is unavailable.");z[Pe]={...z[Pe],calls:[...Ye,...z[Pe].calls]}}if(e.feeOnlyAction){V=!0;break}const J=await L(z,oe,_.grossFundingAmount,{userOverride:ve,useCustomTransfers:!0,feeExecutionMode:u,signal:t}),ce=u==="user-transfer"?Ls(J,_.feeEstimate):J,He=yo(ce,he)??ma(z,he,ae);if(!He)return null;const Xe=ae+He.gasFee+He.spicenetFee+(He.bridgeFee??0n),Ve=yo(_.feeEstimate,he),se=(Ve?.gasFee??0n)===He.gasFee&&(Ve?.spicenetFee??0n)===He.spicenetFee&&(Ve?.bridgeFee??0n)===(He.bridgeFee??0n),Ue=_.grossFundingAmount===Xe&&se;if(_={feeEstimate:ce,grossFundingAmount:Xe,preview:{...He,grossAmount:Xe,netAmount:ae}},Ue){V=!0;break}}if(!V)throw new Error("Payment fees did not converge. Refresh the quote before submitting.");if(!_.preview)return null;const te=I?tn(ie,I.source.decimals,I.destination.decimals,"ceil"):0n;return{..._,batches:z,sourceSpendCap:de,sourceAllocation:W,actionDefinition:Me,destinationAmount:Y,actionOutputCredits:Ts(g,d.address,Oe),preview:{..._.preview,grossAmount:_.preview.grossAmount+te,gasFee:_.preview.gasFee+te,totalFee:(_.preview.totalFee??0n)+te},...I?{sourceGasSkim:ie}:{}}}if(a<=0||!w)return null;const R=w||f;if(I&&!E)return null;const N=rc({isPayMode:o,selectedAsset:n,resolvedChainId:g,sourceSwap:E,pivot:I});if(!(!o&&!c&&n.asset?._source==="wallet"&&n.asset.chainId!==g)&&!x&&!k&&!y||y)return null;let O=await F();if(O.length===0)return null;const D={chainId:g,tokenAddress:A,symbol:Yt(A,g)?.symbol??(n.asset.chainId===g&&G(n.asset.address,A)?n.asset.symbol:d.symbol),decimals:await zo(n.asset,A,g,d)},M=N&&e.initialFeeEstimate!==void 0&&e.initialSourceGasSkim!==void 0,S=N?M?e.initialSourceGasSkim:await wu({user:R,pivot:I,buildSupplyChainBatches:F,signal:t}):0n;N&&S>0n&&(O=await F({sourceGasSkimOverride:S}));const U=N?tn(r?su(E,S):E.amountOutMinimum,I.source.decimals,I.destination.decimals,"floor"):tn(Nn(n.amount,n.asset.decimals),n.asset.decimals,D.decimals,"floor"),q=e.quotedInclusivePlatformFee&&u==="user-transfer",X={userOverride:R,useCustomTransfers:!0,feeExecutionMode:u,signal:t,...N?{skipUserFundingPreflight:!0}:{}};let K=U,Q=e.initialFeeEstimate??await L(O,A,K,q?{...X,feeExecutionMode:"backend-transfer"}:X);q&&!e.initialFeeEstimate&&(Q=Ls(Q,{intents:[]},100n));for(let Y=0;Y<8;Y++){if(t?.aborted)throw new Error("Fee estimation cancelled");const oe=yo(Q,D)??ma(O,D,K);if(!oe)return null;const he=lc(oe,U,r,u,e.externalGasReserve?.feeAmount,e.quotedInclusivePlatformFee);K=he.grossAmount;let ve,ae,ie,ne,_,de;const W=await F({fundingAmountOverride:K,sourceGasSkimOverride:S,actionContextOverride:he,onDestinationAmount:J=>{ve=J},onSourceSpend:J=>{ae=J},onSourceAllocation:J=>{ie=J},onSwap:(J,ce)=>{ne=J,_=ce},onActionCalls:J=>{de=J}}),Me=q?$r(await F({fundingAmountOverride:K,sourceGasSkimOverride:S,actionContextOverride:he,deliveryAmountOverride:he.netAmount,withdrawalAmountOverride:he.netAmount}).then(J=>{if(J.length!==W.length)throw new Error("The withdrawal fee route changed. Refresh the quote before submitting.");return J.map((ce,He)=>{const Xe=W[He];if(!Xe||Xe.chainId!==ce.chainId||Xe.domain!==ce.domain)throw new Error("The withdrawal fee route changed. Refresh the quote before submitting.");return ce.domain==="spicenet"?ce:{...ce,calls:Xe.calls}})}),g,A):void 0,[Oe,z]=await Promise.all([Me?yu({estimate:L,batches:W,pricingBatches:Me,tokenAddress:A,fundingAmount:K,options:X}):L(W,A,K,{...X,validateFeeCalls:e.initialFeeEstimate!==void 0}),M?ze.estimateBatchGas({user:R,outputToken:I.source.address,stepIndex:0,chainBatches:[W[0]],signal:t}):void 0]);if(z&&!(u==="user-transfer"?ha(S,z.gasFee,e.feeToleranceBps):z.gasFee===S))throw new Error("Source gas changed. Prepare a fresh fee quote.");const V=u==="user-transfer"?Ls(Oe,Q,q?100n:0n):Oe,te=yo(V,D)??ma(W,D,K);if(!te)return null;const ue=lc(te,U,r,u,e.externalGasReserve?.feeAmount,e.quotedInclusivePlatformFee);if(JSON.stringify(he,(J,ce)=>typeof ce=="bigint"?ce.toString():ce)===JSON.stringify(ue,(J,ce)=>typeof ce=="bigint"?ce.toString():ce)||u==="user-transfer"&&(!q||he.feeBreakdown.spicenetFee===ue.feeBreakdown.spicenetFee)&&is(he.feeBreakdown,ue.feeBreakdown,e.feeToleranceBps)){const J=u==="user-transfer"?oe:te,ce=N?tn(S,I.source.decimals,I.destination.decimals,"ceil"):0n;return{batches:W,feePricingBatches:Me,fundingAmount:K,actionContext:he,sourceSpendCap:ae,sourceAllocation:ie,destinationAmount:ve,destinationSwap:ne,swapInputAmount:_,actionDefinition:de,actionOutputCredits:Ts(g,d.address,ne),feeEstimate:u==="user-transfer"?Q:V,sourceGasSkim:S,preview:{...J,grossAmount:K+ce,netAmount:he.netAmount,gasFee:J.gasFee+ce,spicenetFee:he.feeBreakdown.spicenetFee,totalFee:he.combinedFeeAmount+ce}}}Q=V,O=W}throw new Error("Fees did not converge. Refresh the quote before submitting.")}class qs extends Error{constructor(t){super("Amount is too small to cover fees. Increase the amount and retry."),this.preview=t,this.name="FeeShortfallError"}}function lc(e,t,n,o,r=0n,a=!1){const i=BigInt(e.feePolicy?.platformBps??Hi),s=e.feePolicy?{feePolicy:e.feePolicy}:{},c=e.gasFee+(e.bridgeFee??0n)+r;if(e.gasQuoteSource==="static_zero"&&r===0n)return{...s,grossAmount:t,netAmount:t,combinedFeeAmount:0n,feeExecutionMode:o??"backend-transfer",feeBreakdown:{gasFee:0n,bridgeFee:0n,spicenetFee:0n}};if(n&&a){const u=c+e.spicenetFee;if(t<=u)throw new qs({...e,grossAmount:t,netAmount:0n,totalFee:u});return{...s,grossAmount:t,netAmount:t-u,combinedFeeAmount:u,feeExecutionMode:o??"backend-transfer",feeBreakdown:{gasFee:e.gasFee,bridgeFee:e.bridgeFee??0n,spicenetFee:e.spicenetFee}}}const l=n?Yp(t,c,i):null;if(l&&!l.coversFees)throw new qs({...e,grossAmount:t,netAmount:0n,spicenetFee:0n,totalFee:c});const d=l?.spicenetFee??(o==="user-transfer"?rs(t,i):e.spicenetFee);return{...s,grossAmount:l?.grossAmount??t+d+c,netAmount:l?.netAmount??t,combinedFeeAmount:d+c,feeExecutionMode:o??"backend-transfer",feeBreakdown:{gasFee:e.gasFee,bridgeFee:e.bridgeFee??0n,spicenetFee:d}}}async function Bh(e,t){if(e.feeQuote?.sourceAllocation){e.validateFeeQuote?.();const c=e.feeQuote.sourceAllocation;Ns(c,c.positions.map(l=>l.asset),e.embeddedWalletAddress??e.providerEmbeddedAddress??void 0,e.resolvedChainId);return}const n=e.selectedAsset?.asset;if(!n||n?._source!=="wallet")return;const o=fo(n,e.resolvedChainId);if(!o||!G(o,e.executionTokenAddress))return;const r=await zo(n,e.executionTokenAddress,e.resolvedChainId,e.destinationToken),a=ta(t,r,n.decimals);if(a<=n.balance)return;const i=Le(a,n.decimals),s=Le(n.balance,n.decimals);throw new Error(`Insufficient ${n.symbol} for this total amount. Required ${i} ${n.symbol}; available ${s} ${n.symbol}.`)}function Rh(e){const t=Yt(e.executionTokenAddress,e.resolvedChainId);return{chainId:e.resolvedChainId,tokenAddress:e.executionTokenAddress,symbol:t?.symbol??e.destinationToken.symbol,decimals:t?.decimals??e.destinationToken.decimals}}function Dh(e){const t=e.selectedAsset.asset,n=Nn(e.selectedAsset.amount,t.decimals);if(n<=t.balance)return n;throw new Error(`Insufficient ${t.symbol} for this total amount. Required ${Le(n,t.decimals)} ${t.symbol}; available ${Le(t.balance,t.decimals)} ${t.symbol}.`)}function Iu(e,t,n,o){const r=Rh(t),a=yo(e,r)??ma(o,r,n);if(a)return lc(a,n,!!t.isFeeInclusiveInput,t.feeExecutionMode,0n,t.quotedInclusivePlatformFee)}function ku(e,t,n){let o=0n,r=0n;const a=n.toLowerCase();for(const i of e)if(i.chainId===t){for(const s of i.calls??[])if(s.to.toLowerCase()===a)try{const c=Jn({abi:pt,data:s.data});if(c.functionName!=="transfer")continue;const l=c.args[0].toLowerCase(),d=c.args[1];l===Qn.toLowerCase()?o+=d:l===bn.toLowerCase()&&(r+=d)}catch{continue}}return{spicenetFee:o,gasFee:r}}function Mh(e,t,n,o){const r=t.feeExecutionMode==="user-transfer"&&t.needsSwap&&t.resolvedTokenIn?t.resolvedTokenIn:t.executionTokenAddress,a=ku(e,t.resolvedChainId,r);return a.spicenetFee===0n&&n.feeBreakdown.spicenetFee>0n||a.gasFee===0n&&n.feeBreakdown.gasFee>0n?!1:ha(a.spicenetFee,n.feeBreakdown.spicenetFee,t.feeToleranceBps)&&ha(a.gasFee,n.feeBreakdown.gasFee,t.feeToleranceBps)&&ha(o.feeBreakdown.bridgeFee,n.feeBreakdown.bridgeFee,t.feeToleranceBps)}function Nh(e,t,n){return e?ol(e.grossAmount,t.grossAmount,100n)&&is(e.feeBreakdown,t.feeBreakdown,n):!1}function Ph(e,t){const n=Yt(t,e.resolvedChainId);return{chainId:e.resolvedChainId,tokenAddress:t,symbol:n?.symbol??e.selectedAsset?.asset.symbol??"",decimals:n?.decimals??e.selectedAsset?.asset.decimals??e.destinationToken.decimals}}async function Uh(e,t){const n=e.feeQuote;return n?.feeEstimate&&n.grossFundingAmount!==void 0?{grossFundingAmount:n.grossFundingAmount,feeEstimate:n.feeEstimate}:bu({...t,feeOnlyAction:e.feeOnlyAction,estimate:e.execution.estimate,tokenDescriptor:Ph(e,t.fundingToken)})}function Cu(e,t){const n=t instanceof Error?t:new Error(String(t));if(n.name==="AbortError"||n instanceof xe&&n.code==="ABORT"){e.ui.setStep("idle");return}const o=n.message||"Transaction failed";e.ui.setStep("error"),e.ui.setStatusMsg(o),e.ui.setError(o)}function Au(e,t){const n=Ln(t,"Payment failed. Please try again.");e.ui.setError(n),e.ui.setPaymentResult({status:"failed",error:n})}async function Su(e){e.ui.setIsExecuting(!0),e.ui.setError(null),e.ui.setStep("executing"),e.ui.setStatusMsg("Confirm the transaction in your external wallet..."),e.ui.setTxHash(null),e.isPayMode&&(e.ui.setShowStatusPanel(!0),e.ui.setPaymentResult({status:"processing"}));try{if(e.validateFeeQuote?.(),!e.feeQuote?.batches||!e.feeQuote.actionDefinition)throw new Error("Review the direct action plan before submitting.");const t=await e.execution.execute(e.feeQuote.batches,e.destinationToken.address,0n,e.execution.onProgress);e.ui.setTxHash(t),e.ui.setStep("success"),e.ui.setStatusMsg("Transaction confirmed"),e.isPayMode&&e.ui.setPaymentResult({status:"success",txHash:t})}catch(t){e.isPayMode?Au(e,t):Cu(e,t)}finally{e.ui.setIsExecuting(!1)}}async function Eu(e,t,n){e.validateFeeQuote?.();const o=e.feeQuote;if(!o.batches||o.sourceSpendCap===void 0||!o.fundingSource&&o.preview.feePayer!=="relayer")throw new Error("Refresh the action before submitting.");const r=o.fundedFeeToken,a=o.grossFundingAmount??0n,i=au({...e,signal:n,feeOnlyAction:!0,destinationToken:r,actionProceeds:e.actionProceeds??{token:o.fundingSource?.token??r.address,resolve:async()=>o.proceedsAvailable??0n}},r.address,a);return e.execution.execute(o.batches,o.fundingConversion?.tokenIn??o.fundingSource?.token??r.address,a,t,n,{...i,userOverride:e.embeddedWalletAddress||e.providerEmbeddedAddress,useCustomTransfers:!0,feeExecutionMode:"backend-transfer",skipPreSubmitFeeEstimate:!0})}async function Fu(e){if(!e.selectedAsset?.asset&&!e.feeQuote?.fundingPlan||e.parsedAmount<=0){e.ui.setError("Select an asset and enter an amount");return}if(e.isInsufficientBalance){e.ui.setError("Insufficient balance");return}if(e.directExternalAction)return Su(e);if(!e.embeddedWalletAddress){e.ui.setError("Wallet not ready");return}e.ui.setIsExecuting(!0),e.ui.setError(null),e.ui.setStep("signing-delegation"),e.ui.setStatusMsg("Building transaction..."),e.ui.setTxHash(null),e.refs.spiceDepositSubmittedRef.current=!1;const t=new AbortController;e.refs.abortControllerRef.current=t;try{const n=e.embeddedWalletAddress||e.providerEmbeddedAddress,o=e.feeQuote;if(o?.fundingPlan){e.validateFeeQuote?.();const f=o.fundingPlan;if(!o.batches?.length||!o.feeEstimate||o.fundingAmount===void 0)throw new Error("Review the combined funding plan before submitting.");const g=[...new Set(f.sources.filter(C=>C.asset.location==="embedded").map(C=>C.chainId))];for(const[C,x]of g.entries()){const k=f.sources.filter(A=>A.asset.location==="embedded"&&A.chainId===x),E=o.batches[C];if(!E||E.chainId!==x)throw new Error("The accepted source funding vector changed.");const I=await ze.estimateBatchGas({user:f.owner,outputToken:k[0].pivotToken.address,stepIndex:0,chainBatches:[E]});e.validateFeeQuote?.();const y=k.reduce((A,T)=>A+T.gasFeeAmount,0n);if(I.gasFee<0n||!ha(y,I.gasFee,e.feeToleranceBps))throw new Error("Source funding fees changed. Refresh before submitting this purchase.")}const h={chainId:f.token.chainId,tokenAddress:f.token.address,symbol:f.token.symbol,decimals:f.token.decimals},b=yo(o.feeEstimate,h);if(!b)throw new Error("The accepted purchase fees are unavailable.");const v=await e.execution.execute(o.batches,f.token.address,o.fundingAmount,e.execution.onProgress,t.signal,{userOverride:f.owner,useCustomTransfers:!0,skipUserFundingPreflight:!0,feeExecutionMode:"user-transfer",adjustBatchesForEstimate:({feeEstimate:C})=>{const x=yo(C,h);if(!x||!is(b,x,e.feeToleranceBps))throw new Error("Transaction fees changed. Refresh the quote before submitting.");return null}});e.ui.setTxHash(v),e.ui.setStep("success"),e.ui.setStatusMsg("Transaction confirmed");return}if(o?.fundedFeeToken){const f=await Eu(e,e.execution.onProgress,t.signal);e.ui.setTxHash(f),e.ui.setStep("success"),e.ui.setStatusMsg("Transaction confirmed");return}const r=rc(e);r&&Dh(e);const a=e.feeQuote?.batches?e.feeQuote:await Vo({...e,feeExecutionMode:e.feeExecutionMode,isDirect:!e.needsSwap,isQuoting:!1,resolvedSwap:null,buildPayChainBatches:e.execution.buildPayChainBatches,buildSupplyChainBatches:e.execution.buildSupplyChainBatches,estimate:e.execution.estimate});if(!a?.batches||a.fundingAmount===void 0||!a.actionContext)throw new Error("A current action plan is required. Refresh the quote before submitting.");const i=e.isFeeInclusiveInput?a.actionContext.grossAmount:a.actionContext.netAmount;let s=a.batches;const c=s.some(f=>f.tokenTransfers?.length),l={userOverride:n,useCustomTransfers:c,feeExecutionMode:e.feeExecutionMode,...r?{skipUserFundingPreflight:!0}:{}},d=a.fundingAmount,u=a.actionContext;await Bh(e,d);const p=u,w=await e.execution.execute(s,e.executionTokenAddress,c?d:0n,e.execution.onProgress,t.signal,e.feeExecutionMode==="user-transfer"?{...l,skipUserFundingPreflight:!0,adjustBatchesForEstimate:async({feeEstimate:f,chainBatches:g})=>{if(a.feePricingBatches){e.validateFeeQuote?.();const C=await yu({estimate:e.execution.estimate,batches:g,pricingBatches:a.feePricingBatches,tokenAddress:e.executionTokenAddress,fundingAmount:d,options:{...l,signal:t.signal},signedEstimate:f});e.validateFeeQuote?.();const x=Iu(C,e,i,g),k=p.feeBreakdown,E=ku(g,e.resolvedChainId,e.executionTokenAddress);if(!x||!is(k,x.feeBreakdown,e.feeToleranceBps)||E.spicenetFee!==k.spicenetFee||E.gasFee!==k.gasFee+k.bridgeFee)throw new Error("Transaction fees changed. Refresh the quote before submitting.");return null}const h=Iu(a.feeEstimate?Ls(f,a.feeEstimate):f,e,i,g);if(!h)throw new Error("Unable to validate the accepted fees. Refresh the quote before submitting.");const b=Nh(p,h,e.feeToleranceBps),v=Mh(g,e,h,p);if(b||v)return null;throw new Error("Transaction fees changed. Refresh the quote before submitting.")}}:{...l,skipPreSubmitFeeEstimate:!0});e.ui.setTxHash(w),e.ui.setStep("success"),e.ui.setStatusMsg("Deposit confirmed")}catch(n){Cu(e,n)}finally{e.ui.setIsExecuting(!1)}}async function Tu(e){if(e.parsedAmount<0){e.ui.setError("Enter a valid payment amount");return}const t=e.parsedAmount===0;if(!e.selectedAsset?.asset&&!t){e.ui.setError("Select a payment source");return}if(e.isInsufficientBalance){e.ui.setError("Insufficient balance");return}if(e.parsedAmount>0&&e.needsSwap&&!e.exactOutputSwap){e.ui.setError("Swap quote not available. Try a different asset.");return}if(e.directExternalAction)return Su(e);const n=du(e)&&!t,o=n?e.feeQuote?.sourceGasSkim??0n:0n,r=i=>e.execution.buildPayChainBatches(n?{...i,sourceGasSkimOverride:o}:i);if(!e.isConnected||!e.address){e.ui.setError("Please connect your wallet to continue");return}if(!e.ready||!e.authenticated){e.ui.setError(`Please authenticate with ${e.provider||"wallet provider"} to continue`);return}e.ui.setIsExecuting(!0),e.ui.setError(null),e.ui.setShowStatusPanel(!0),e.ui.setPaymentResult({status:"processing"});const a=new AbortController;e.refs.abortControllerRef.current=a;try{if(e.feeQuote?.fundedFeeToken){const k=await Eu(e,E=>{e.execution.onProgress(E),E.txHash&&(e.ui.setTxHash(E.txHash),e.ui.setPaymentResult({status:"processing",txHash:E.txHash}))},a.signal);e.ui.setPaymentResult(E=>({status:"success",txHash:E?.txHash||k}));return}const i=Nn(e.currentPaymentAmount,e.destinationToken.decimals),s={useCustomTransfers:!0,feeExecutionMode:e.feeExecutionMode,...n?{skipUserFundingPreflight:!0}:{}};if(t&&!e.feeOnlyAction){const k=await r(),E=await e.execution.execute(k,e.executionTokenAddress,0n,I=>{e.execution.onProgress(I),I.txHash&&(e.ui.setPaymentResult(y=>({...y??{status:"processing"},txHash:I.txHash})),e.ui.setTxHash(I.txHash))},a.signal,s);e.ui.setPaymentResult(I=>({status:"success",txHash:I?.txHash||E}));return}const c=e.selectedAsset?.asset,l=e.feeQuote?.fundingSource,d=e.feeQuote?.preview.feePayer==="relayer";if(!c&&!e.actionProceeds&&!l&&!d)throw new Error("Select a payment source");const u=e.feeQuote?.fundingConversion?.tokenIn||l?.token||e.resolvedTokenIn||c?.address||e.destinationToken.address,p=e.needsSwap?e.exactOutputSwap?.amountInMax??0n:i,w=e.embeddedWalletAddress||e.providerEmbeddedAddress||e.address,f=d||!!e.feeQuote?.fundingConversion||!!l&&(l.kind!=="balance"||l.asset?._source==="wallet"),{grossFundingAmount:g,feeEstimate:h}=f?{grossFundingAmount:e.feeQuote.grossFundingAmount??0n,feeEstimate:void 0}:await Uh(e,{requiredNetFunding:p,buildBatches:k=>e.execution.buildPayChainBatches({fundingAmountOverride:k}).then(E=>_o(E,w)),fundingToken:u,executionOptions:s});let b=e.feeQuote?.fundingBatches??e.feeQuote?.batches??_o(await r({fundingAmountOverride:g}),w,e.actionProceeds?void 0:h,{payoutAlreadyGross:!0});const v=au(e,e.feeQuote?.fundingConversion?.tokenOut??u,g);v.prepareForSigning&&(b=await v.prepareForSigning(b));const C=b.some(k=>k.tokenTransfers?.length),x=await e.execution.execute(b,u,C?g:0n,k=>{e.execution.onProgress(k),k.txHash&&(e.ui.setPaymentResult(E=>({...E,txHash:k.txHash})),e.ui.setTxHash(k.txHash))},a.signal,{...s,...v,skipPreSubmitFeeEstimate:!0});e.ui.setPaymentResult(k=>({status:"success",txHash:k?.txHash||x}))}catch(i){Au(e,i)}finally{e.ui.setIsExecuting(!1)}}async function Ou(e){const{quote:t,recipient:n,chainId:o,token:r}=e,a=t.batches?Bu(t.batches,r,o,n):0n;if(a<=0n)throw new Error("The route does not deliver the action amount to the external wallet.");const i={userAddress:n,executorAddress:n,beneficiary:e.beneficiary??n,chainId:o,destinationToken:r,feeToken:r,grossAmount:a,netAmount:a,combinedFeeAmount:0n,feeExecutionMode:e.feeExecutionMode,feeBreakdown:{spicenetFee:0n,gasFee:0n,bridgeFee:0n}},s=await e.buildCalls(a,i);if(!s.length)throw new Error("No action calls configured.");return{amount:a,context:i,calls:s.map(c=>({...c}))}}function Wh(e,t,n){const o=[],r=(a,i,s)=>{s>0n&&o.push(Ae(a)?{to:i,value:s,data:"0x"}:{to:a,value:0n,data:Ot({abi:pt,functionName:"transfer",args:[i,s]})})};return t.feeExecutionMode==="user-transfer"&&t.feeBreakdown&&(r(t.feeToken??t.destinationToken,Qn,t.feeBreakdown.spicenetFee),r(t.feeToken??t.destinationToken,bn,t.feeBreakdown.gasFee+t.feeBreakdown.bridgeFee)),r(t.destinationToken,n,e),o}function Bu(e,t,n,o){let r=0n;for(const a of e)if(a.chainId===n){for(const i of a.calls)if(G(i.to,t))try{const s=Jn({abi:pt,data:i.data});s.functionName==="transfer"&&G(s.args[0],o)&&(r+=s.args[1])}catch{}}return r}async function Lh(e){if(!/^0x[0-9a-f]{64}$/i.test(e.hash))throw new Error("The external delivery receipt is unavailable.");const t=Rt(e.chainId),n=await t.getTransactionReceipt({hash:e.hash});if(n.status!=="success"||!G(n.transactionHash,e.hash))throw new Error("The external delivery receipt was not successful.");let o=0n;for(const r of n.logs)if(G(r.address,e.token))try{const a=vf({abi:pt,eventName:"Transfer",data:r.data,topics:r.topics});G(a.args.to,e.recipient)&&G(a.args.from,e.sender)&&(o+=a.args.value)}catch{}if(o!==e.amount)throw new Error("The received external amount does not match the accepted action.");if(await t.readContract({address:e.token,abi:pt,functionName:"balanceOf",args:[e.recipient]})<e.amount)throw new Error("The external wallet no longer holds the delivered action amount.")}async function Ru(e,t,n){let o=null;try{const r=await e.request({method:"eth_chainId"});o=parseInt(r,16)}catch{o=null}o!==t&&(n?.(),await rl(e,t))}function dc(e){let t=e;const n=new Set;for(;t&&typeof t=="object"&&!n.has(t);){if(n.add(t),t.code===4001)return!0;t=t.cause}return!1}async function uc(e){const t=e.provider??await e.wallet?.getEthereumProvider();if(!t)throw new Error("External wallet provider not available");await Ru(t,e.chainId,e.onSwitch);const n=await t.request({method:"eth_accounts"});if(!Array.isArray(n)||!n.some(r=>typeof r=="string"&&r.toLowerCase()===e.account.toLowerCase()))throw new Error("The connected source wallet changed. Reconnect the selected account before funding.");const o=Ct(e.chainId)?.viemChain;return{extWc:mi({account:e.account,chain:o,transport:hi(t)}),viemChain:o}}async function Du(e,t,n){const o=Date.now()+1e4;for(;Date.now()<o;){let r,a;try{r=await Promise.race([Promise.all([t.getBlockNumber({cacheTime:0}),e.request({method:"eth_blockNumber"}).then(BigInt)]),new Promise(i=>{a=setTimeout(()=>i(null),Math.max(0,o-Date.now()))})])}catch{return}finally{clearTimeout(a)}if(!r||Date.now()>=o||r.every(i=>i>=n))return;await new Promise(i=>setTimeout(i,Math.min(250,o-Date.now())))}}async function qh(e){let t;for(const[n,o]of e.calls.entries()){await e.observer?.onSending?.(n);let r;try{r=await e.extWc.sendTransaction({to:o.to,data:o.data,value:o.value,chain:e.viemChain,...e.nonce!==void 0?{nonce:e.nonce}:{}})}catch(s){throw dc(s)&&e.observer?.onRejected?.(n),s}await e.observer?.onSubmitted?.(n,r);const a=await Fs({client:e.client,hash:r,call:o,onRepriced:()=>{},onCancelled:()=>e.observer?.onReverted?.(n,r)});a.hash!==r&&await e.observer?.onSubmitted?.(n,a.hash),r=a.hash;const i=a.receipt;if(i.status!=="success")throw e.observer?.onReverted?.(n,r),new Error(e.errorMessage);await Du(e.extWc,e.client,i.blockNumber),e.observer?.onConfirmed?.(n,r),t=r}return t}async function Mu(e){const t=await e.client.estimateFeesPerGas(),n=t.maxFeePerGas??t.gasPrice;if(typeof n!="bigint"||n<=0n)throw new Error("Network gas could not be priced.");let o=0n;for(const r of e.calls){const a=await e.client.estimateGas({account:e.account,...r});o+=(a*n*120n+99n)/100n}return o}async function pc(e){const{definition:t,account:n,chainId:o}=e,{calls:r}=t;if(!G(t.context.executorAddress,n)||t.context.chainId!==o||!r.length)throw new Error("The direct action no longer matches its wallet or chain.");const a=Rt(o);let i;const s=e.originalAction,c=u=>{if(u.chainId!==o||!G(u.executor,n)||u.calls.length!==r.length||u.calls.some((p,w)=>!G(p.to,r[w].to)||p.data.toLowerCase()!==r[w].data.toLowerCase()||BigInt(p.value)!==r[w].value))throw Error("The original external action no longer matches its accepted calls.");return u};let l=s?c(await s.service.getExternalExecution(s.actionId)):void 0,d=l?.executionMode==="wallet-envelope";if(s?.resume&&d)throw Error("Wallet-envelope recovery is unavailable. Check wallet activity; this original action will not be resent.");for(const[u,p]of r.entries()){if(await e.assertCurrent(),l&&!d){const v=l.calls[u];if(v.status==="confirmed"&&v.transactionHash){i=v.transactionHash;continue}if(v.status!=="unsubmitted"&&!(s?.resume&&["prepared","submitted","reverted"].includes(v.status)))throw Error(v.status==="reverted"||v.status==="conflict"?"The original wallet action failed or its nonce was used by another transaction.":"The original wallet transaction is being reconciled. Check its status before continuing.")}let w;if(s&&!d){if(l=c(await s.service.prepareExternalExecutionCall(s.actionId,u,s.resume&&l?.calls[u]?.status==="reverted"?l.calls[u].transactionHash??void 0:void 0)),d=l.executionMode==="wallet-envelope",s.resume&&d)throw Error("Wallet-envelope recovery is unavailable. Check wallet activity; this original action will not be resent.");s.resume&&l.calls[u]?.status==="reverted"&&l.calls[u]?.transactionHash&&(l=c(await s.service.prepareExternalExecutionCall(s.actionId,u,l.calls[u].transactionHash)));const v=l.calls[u];if(!d&&v.status==="confirmed"&&v.transactionHash){i=v.transactionHash;continue}if(!d&&v.status!=="prepared")throw Error("The original wallet call could not be prepared.");if(l.executionMode!=="wallet-envelope"){if(v.nonce===null)throw Error("The original wallet nonce is unavailable.");w=v.nonce;const[C,x]=await Promise.all([a.getTransactionCount({address:n,blockTag:"latest"}),a.getTransactionCount({address:n,blockTag:"pending"})]);if(C!==w||x!==w)throw Error("The original wallet nonce is pending or changed. Check its status before continuing.")}await e.assertCurrent()}const[f,g]=await Promise.all([Mu({client:a,account:n,calls:[p]}),a.getBalance({address:n})]);if(g<p.value+f)throw new Error("The external wallet has insufficient native balance for this transaction and network gas.");await e.assertCurrent();const{extWc:h,viemChain:b}=await uc({wallet:e.wallet,account:n,chainId:o});if(await e.assertCurrent(),i=await qh({extWc:h,viemChain:b,client:a,calls:[p],errorMessage:"The external transaction reverted. Retry the unfinished action when ready.",...w!==void 0?{nonce:w}:{},...s?{observer:{onSubmitted:async(v,C)=>{try{l=c(await s.service.recordExternalExecutionHash(s.actionId,u,C))}catch(x){if(l?.executionMode!=="wallet-envelope")throw x}}}}:{}}),s&&i){try{l=c(await s.service.recordExternalExecutionHash(s.actionId,u,i))}catch(v){if(l?.executionMode!=="wallet-envelope")throw v}if(l?.executionMode!=="wallet-envelope"&&l?.calls[u]?.status!=="confirmed")throw Error("The original wallet transaction is confirmed on chain and awaiting backend reconciliation.")}}if(!i)throw new Error("The direct action has no confirmed receipt.");return i}function Ua(e,t,n){if(!G(e.owner,t)||e.balanceError||e.balanceStatus==="stale"||e._wrapFromNative||!Number.isInteger(e.decimals)||e.decimals<0||e.decimals>36)return!1;if(e.location==="embedded"&&e._source==="wallet"){const r=Er(e.chainId);return!!r&&(!G(e.address,r.address)||e.decimals===r.decimals)}if(e.location!=="rollup"||e._source!=="spice"||!e.receiptTokenId||!e.chainTokens||Array.isArray(e.chainTokens))return!1;const o=Object.entries(e.chainTokens).filter(([r])=>_n(r)?.chainId===n.chainId);return o.length===1&&G(_n(o[0][0])?.address,n.address)&&(o[0][1].decimals===void 0||o[0][1].decimals===n.decimals)}async function Nu(e){const{owner:t,token:n}=e,o=Er(n.chainId);if(!o||!G(o.address,n.address)||o.decimals!==n.decimals||e.destinationToken.chainId!==n.chainId)throw new Error("Combined funding requires the destination chain's supported USDC token.");if(e.budget!=="max"&&e.budget<=0n)throw new Error("Enter a positive purchase budget.");const r=()=>{if(e.signal?.aborted)throw new Error("Fee estimation cancelled")},a=(I,y=0n,A=0n,T=0n)=>new qs({symbol:n.symbol,decimals:n.decimals,grossAmount:I,netAmount:0n,gasFee:y,spicenetFee:A,bridgeFee:T,totalFee:y+A+T,gasQuoteSource:"estimated"}),i=new Set,s=new Set,c=[],l=I=>I.location==="rollup"?0:G(I.address,Er(I.chainId)?.address)?I.chainId===n.chainId?1:3:I.chainId===n.chainId?2:4,d=[...e.sources].sort((I,y)=>l(I.asset)-l(y.asset));let u=0n;for(const I of d){r();const{asset:y,availableAmount:A,reservedAmount:T}=I,F=ke(y),L=y.location==="rollup"?`${t.toLowerCase()}:rollup:${y.receiptTokenId}`:`${t.toLowerCase()}:${y.location}:${y.chainId}:${dt(y.address).toLowerCase()}`;if(i.has(F)||s.has(L))throw new Error("A funding position was included more than once.");if(i.add(F),s.add(L),!Ua(y,t,n)||typeof A!="bigint"||typeof T!="bigint"||A<0n||T<0n||A+T>y.balance)throw new Error("A funding position or its available balance cannot be verified.");if(A===0n||e.budget!=="max"&&u>=e.budget)continue;const R=y.location==="rollup"?n:{...Er(y.chainId),chainId:y.chainId},N=y.location==="rollup"||G(y.address,R.address)?void 0:await e.resolveSourceInput(y,R,A);if(r(),N&&(N.amountOutMinimum<=0n||N.amountOutMinimum>N.amountOut||!N.calls.length))throw new Error("A funding conversion has no guaranteed output.");y.location==="rollup"&&y.receiptTokenDecimals!==void 0&&Bn(A,y.decimals,y.receiptTokenDecimals);const O=N?.amountOutMinimum??Bn(A,y.decimals,R.decimals),D=Bn(tn(O,R.decimals,n.decimals,"floor"),n.decimals,R.decimals);D!==0n&&(u+=Bn(D,R.decimals,n.decimals),c.push({positionId:F,asset:y,owner:t,chainId:y.chainId,token:y.address,decimals:y.decimals,sourceSpendCap:A,quotedAvailable:A,reservedAmount:T,pivotToken:R,amountOutMinimum:D,gasFeeAmount:0n,...N?{swap:N}:{}}))}const p=c.reduce((I,y)=>I+Bn(y.amountOutMinimum,y.pivotToken.decimals,n.decimals),0n);let w=e.budget==="max"?p:e.budget;if(e.budget==="max"&&w===0n)throw a(0n);if(w<=0n||w>p)throw new Error("The available funding positions cannot cover this purchase budget.");const f=[];let g=w;for(const I of c){if(g===0n)break;const y=Bn(I.amountOutMinimum,I.pivotToken.decimals,n.decimals),A=y<g?y:g,T=Bn(A,n.decimals,I.pivotToken.decimals);if(A===y)f.push(I);else if(I.swap){const F=await e.resolveSourceOutput(I.asset,I.pivotToken,T);if(r(),!F||F.amountInMax<=0n||F.amountIn<0n||F.amountIn>F.amountInMax||F.amountInMax>I.quotedAvailable||F.amountOut<T||!F.calls.length)throw new Error("The funding conversion cannot fit its accepted source balance.");f.push({...I,sourceSpendCap:F.amountInMax,amountOutMinimum:T,swap:{venue:F.venue,calls:F.calls,amountOut:F.amountOut,amountOutMinimum:T}})}else{const F=Bn(T,I.pivotToken.decimals,I.decimals);I.asset.location==="rollup"&&I.asset.receiptTokenDecimals!==void 0&&Bn(F,I.decimals,I.asset.receiptTokenDecimals),f.push({...I,sourceSpendCap:F,amountOutMinimum:T})}g-=A}const h=new Map;for(const I of f){if(I.asset.location==="rollup")continue;const y=h.get(I.chainId)??[];y.push(I),h.set(I.chainId,y)}const b=new Map,v=(I=!1)=>[...h].map(([y,A])=>{const T=A[0].pivotToken,F=A.reduce((R,N)=>R+N.amountOutMinimum,0n),L=b.get(y)??(I?1n:0n);if(F<=L&&!I)throw a(w,tn(L,T.decimals,n.decimals,"ceil"));return{chainId:y,calls:[...A.flatMap(R=>R.swap?.calls??[]),Br(T.address,F>L?F-L:0n,To(y)),...L>0n?[Br(T.address,L,bn)]:[]]}});for(let I=0;I<8&&h.size>0;I++){const y=v(!0);let A=!1;for(const[T,[F,L]]of[...h].entries()){r();const R=await ze.estimateBatchGas({user:t,outputToken:L[0].pivotToken.address,stepIndex:0,chainBatches:[y[T]],signal:e.signal});if(R.gasFee<0n)throw new Error("The source gas quote is invalid.");const N=L[0].pivotToken,O=Bn(tn(R.gasFee,N.decimals,n.decimals,"ceil"),n.decimals,N.decimals),D=b.get(F),M=D!==void 0&&D>O?D:O,S=L.reduce((U,q)=>U+q.amountOutMinimum,0n);if(M>=S){if(e.budget!=="max")return Nu({...e,sources:e.sources.filter(U=>U.asset.location==="rollup"||U.asset.chainId!==F)});w-=Bn(S,N.decimals,n.decimals),h.delete(F);for(const U of L)f.splice(f.indexOf(U),1);A=!0;continue}(D===void 0||M!==D)&&(A=!0),b.set(F,M)}if(!A)break;if(I===7)throw new Error("Source fees did not converge. Refresh the quote before submitting.")}let C=0n;for(const[I,y]of h){const A=b.get(I);y[0].gasFeeAmount=A,C+=Bn(A,y[0].pivotToken.decimals,n.decimals)}const x=w-C;if(x<=0n)throw a(w,C);let k={gasFee:0n,spicenetFee:0n,bridgeFee:0n},E="estimated";for(let I=0;I<8;I++){r();const y=k.gasFee+k.spicenetFee+k.bridgeFee,A={grossAmount:x,netAmount:x-y,combinedFeeAmount:y,feeExecutionMode:"user-transfer",feeBreakdown:k},T=A.netAmount;if(T<=0n)throw a(w,C+k.gasFee,k.spicenetFee,k.bridgeFee);const F=G(n.address,e.destinationToken.address)?void 0:await e.resolveDestinationInput(T);if(r(),F&&(F.amountOutMinimum<=0n||F.amountOutMinimum>F.amountOut||!F.calls.length))throw new Error("The purchase conversion has no guaranteed output.");const L=F?.amountOutMinimum??Bn(T,n.decimals,e.destinationToken.decimals),R={...A,userAddress:e.beneficiary??t,executorAddress:t,beneficiary:e.beneficiary??t,chainId:n.chainId,destinationToken:e.destinationToken.address,feeToken:n.address,grossAmount:w,netAmount:L,combinedFeeAmount:A.combinedFeeAmount+C},N=await e.buildActionCalls(L,R);if(!N.length&&!F?.calls.length)throw new Error("No action calls configured.");const O={intents:[{intentIndex:0,batches:[{chainId:n.chainId,quotedAmount:T.toString(),totalDebit:x.toString(),gasQuoteSource:E,feeBreakdown:{gasFee:k.gasFee.toString(),spicenetFee:k.spicenetFee.toString(),bridgeFee:k.bridgeFee.toString()}}]}]},D={chainId:n.chainId,calls:[...F?.calls??[],...N],tokenTransfers:[{from:"escrow",to:t,token:n.address,amount:x}]},M=[...v(),..._d([D],t,O,{payoutAlreadyGross:!0,requestTimestampMs:e.requestTimestampMs})],S=await e.estimate(M,n.address,x,{userOverride:t,useCustomTransfers:!0,feeExecutionMode:"user-transfer",signal:e.signal,skipUserFundingPreflight:!0}),U=S.intents.flatMap(Q=>Q.batches);if(S.intents.length!==1||S.intents[0].intentIndex!==0||U.length!==1||U[0].chainId!==n.chainId)throw new Error("The destination fee quote is missing or ambiguous.");const q=yo(S,{...n,tokenAddress:n.address});if(!q)throw new Error("The destination fee quote cannot be verified.");const X=Yo(U[0]);if(X.gasFee<0n||X.spicenetFee<0n||X.bridgeFee<0n)throw new Error("The destination fee quote is invalid.");if(X.spicenetFee>rs(x,10n))throw new Error("The destination platform fee exceeds the supported purchase fee.");const K={gasFee:X.gasFee>k.gasFee?X.gasFee:k.gasFee,bridgeFee:X.bridgeFee>k.bridgeFee?X.bridgeFee:k.bridgeFee,spicenetFee:X.spicenetFee>k.spicenetFee?X.spicenetFee:k.spicenetFee};if(I>0&&K.gasFee===k.gasFee&&K.bridgeFee===k.bridgeFee&&K.spicenetFee===k.spicenetFee)return{fundingPlan:{owner:t,token:n,totalBudget:w,sources:f},batches:M,feeEstimate:O,actionDefinition:{amount:L,context:R,calls:N},actionContext:R,fundingAmount:x,destinationAmount:L,destinationSwap:F,swapInputAmount:T,actionOutputCredits:Ts(n.chainId,e.destinationToken.address,F),preview:{symbol:n.symbol,decimals:n.decimals,grossAmount:w,netAmount:T,totalFee:A.combinedFeeAmount+C,gasFee:k.gasFee+C,spicenetFee:A.feeBreakdown.spicenetFee,bridgeFee:k.bridgeFee,gasQuoteSource:E}};k=K,E=q.gasQuoteSource}throw new Error("Fees did not converge. Refresh the quote before submitting.")}function zs(e,t,n,o){return n?{to:e,value:o,data:"0x"}:{to:t,value:0n,data:Ot({abi:pt,functionName:"transfer",args:[e,o]})}}async function Pu(e){const t=zs(e.recipient,e.token,e.isNative,e.amount),[n,o]=await Promise.all([e.client.estimateGas({account:e.account,...t}),e.client.estimateFeesPerGas()]),r=o.maxFeePerGas??o.gasPrice;if(typeof r!="bigint"||r<=0n)throw new Error("Source transaction gas could not be priced.");return(n*r*120n+99n)/100n}function fc(e,t){return t.isNative?e.sendTransaction({to:t.recipient,value:t.amount,chain:t.viemChain}):e.sendTransaction({to:t.tokenAddr,data:Ot({abi:pt,functionName:"transfer",args:[t.recipient,t.amount]}),chain:t.viemChain})}async function zh(e){const{extWc:t,sourceClient:n,recipient:o,tokenAddr:r,isNative:a,amount:i}=e;if(i<=0n)return;await e.observer?.onSending?.(0);let s;try{s=await fc(t,{recipient:o,tokenAddr:r,isNative:a,amount:i,viemChain:e.viemChain})}catch(d){throw dc(d)&&e.observer?.onRejected?.(0),d}e.observer?.onSubmitted?.(0,s);const c=await Fs({client:n,hash:s,call:zs(o,r,a,i),onRepriced:d=>e.observer?.onSubmitted?.(0,d),onCancelled:()=>e.observer?.onReverted?.(0,s)});s=c.hash;const l=c.receipt;if(l.status!=="success")throw e.observer?.onReverted?.(0,s),new Error("Embedded wallet funding failed");await Du(t,n,l.blockNumber),e.observer?.onConfirmed?.(0,s)}async function Uu(e){const{asset:t,embedded:n,external:o,amount:r}=e;if(!o||!e.externalWallet)throw new Error("Connect the source wallet before funding.");if(r<=0n)return;const a=Rt(t.chainId),i=t.isNative||Ae(t.address),[s,c]=await Promise.all([Pu({client:a,account:o,recipient:n,token:t.address,isNative:i,amount:r}),a.getBalance({address:o})]);if(c<s+(i?r:0n))throw new Error("The source wallet has insufficient native balance for funding and gas.");const{extWc:l,viemChain:d}=await uc({wallet:e.externalWallet,account:o,chainId:t.chainId});await zh({extWc:l,sourceClient:a,recipient:n,tokenAddr:t.address,isNative:i,amount:r,viemChain:d,observer:{...e.observer,onSending:async u=>{await e.assertCurrent(),await e.observer?.onSending?.(u)}}})}function Wu(e){const t=gn(sn),n=Ct(e.chainId),o=e.address??n?.supportedTokens?.find(f=>f.symbol.toLowerCase()===e.symbol?.toLowerCase())?.address,r=e.symbol??(o&&Ae(o)?n?.nativeCurrency?.symbol:n?.supportedTokens?.find(f=>!!o&&G(f.address,o))?.symbol),a=ns(e.chainId,t?.rpcOverrides),[i,s]=H(0),c=`${e.chainId}:${o?.toLowerCase()}:${a}:${e.decimals??""}:${r??""}:${i}`,[l,d]=H(null);we(()=>{let f=!1;if(!(!e.enabled||!o||!a?.trim()))return Promise.all([e.decimals??es(e.chainId,o,t?.rpcOverrides),r??lr(Rt(e.chainId,t?.rpcOverrides),{address:o,abi:pt,functionName:"symbol"}).catch(()=>{})]).then(([g,h])=>{if(!Number.isInteger(g)||g<0||g>255)throw new Error("Invalid destination token decimals");f||d({key:c,decimals:g,symbol:h})}).catch(g=>{f||d({key:c,error:g.message})}),()=>{f=!0}},[e.enabled,c]);const u=l?.key===c?l:null,p=Ee(()=>({address:o??zt,chainId:e.chainId,decimals:u?.decimals??0,symbol:r??u?.symbol??(o?ga(o):""),logoURI:e.logoURI}),[o,e.chainId,u?.decimals,u?.symbol,r,e.logoURI]),w=e.enabled?o?a?.trim()?u?.error??null:`Configure SpiceFlowProvider rpcOverrides[${e.chainId}] before continuing.`:"Configure the destination token address before continuing.":null;return{token:p,error:w,ready:e.enabled&&!!o&&!!a?.trim()&&u?.decimals!==void 0,refresh:re(()=>s(f=>f+1),[])}}function Hs(e,t){const n=!!e&&e.symbol!==void 0&&e.decimals!==void 0,o=Wu({enabled:t&&!!e&&!n,chainId:e?.chainId??0,address:e?.address,decimals:e?.decimals,symbol:e?.symbol,logoURI:e?.logoURI});return{token:e?n?e:o.ready?o.token:void 0:void 0,error:o.error}}const Vs={address:zt,symbol:"",decimals:18,chainId:0};function Lu(e,t,n){return G(e.address,t)&&e.chainId===n?e._source==="wallet"?0:1:2}function Hh(e,t,n,o){const r=Lu(e,n,o)-Lu(t,n,o);return r!==0?r:(t.balanceUsd||0)-(e.balanceUsd||0)}const Vh=ld;function qu(e){const t=gn(sn),n=zr(),o=t?.embeddedWalletAddress||n.embeddedAddress,r=t?.externalWalletAddress||n.externalAddress,a=(t?.mode||"7702")!=="7702",i=e.destinationToken??Vs,s=e.enabled&&!!e.destinationToken,c=Tr({...e,owner:o,enabled:s&&!!o&&(!a||e.includeCrossChainEmbeddedAssets!==!1),role:"spend-source",destination:e.destinationToken}),l=Tr({...e,owner:r,enabled:s&&!!r&&(a||e.includeExternalWalletAssets!==!1),role:"spend-source",destination:e.destinationToken});return{displayAssets:Ee(()=>[...c.assets,...l.assets].sort((d,u)=>Hh(d,u,i.address,i.chainId)),[c.assets,l.assets,i.address,i.chainId]),filteredSpiceAssets:c.rollupAssets,walletAssets:[...c.walletAssets,...l.walletAssets],embeddedWalletAddress:o,externalAddress:r,isNon7702:a,refreshSpiceAssets:c.refresh,refreshWalletAssets:c.refresh,loading:c.loading||l.loading,refreshing:c.refreshing||l.refreshing,error:c.error||l.error}}function Qh(e,t){return!e||e._source!=="wallet"?null:Oi(e,t)}function mc(e){return zl({aerodrome:!1,oneInch:{chainIds:[]},customVenues:e})}const hc=Sr(),jh=mc(hc.input);function zu(e){return{venue:"mapped-transfer",amountOut:e,amountOutMinimum:e,calls:[]}}function Hu(e){return{venue:"mapped-transfer",amountIn:e,amountInMax:e,amountOut:e,calls:[]}}async function Wa(e){if(G(e.tokenIn,e.tokenOut))return zu(e.amountIn);if(e.resolveInputSwap){const n=await e.resolveInputSwap({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:e.amountIn,maxSlippage:e.maxSlippage},e.chainId,e.recipient);if(n)return n}const t=await(e.liquidityVenues?mc(Sr(e.liquidityVenues).input):jh).resolveSwap({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:e.amountIn,maxSlippage:e.maxSlippage},e.chainId,e.recipient,e.selectedSwap);if(!t)throw new Error("No liquidity for this pair.");return t}async function Vu(e){return G(e.tokenIn,e.tokenOut)?Hu(e.amountOut):Na({customVenues:e.liquidityVenues?Sr(e.liquidityVenues).output:hc.output}).getQuote({tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountOut:e.amountOut,maxSlippage:e.maxSlippage},e.chainId,e.recipient)}function Qu(e){const{enabled:t=!0,direction:n,selectedAsset:o,destinationToken:r,chainId:a=r.chainId,recipient:i,paymentAmount:s,maxSlippage:c,refreshIntervalMs:l,resolveInputSwap:d,resolveExactOutputSwap:u}=e,p=gn(sn),w=p?.liquidityVenues,f=JSON.stringify([p?.network,p?.apiUrl,p?.rpcOverrides]),[g,h]=H(!1),[b,v]=H(null),[C,x]=H(null),[k,E]=H(null),[I,y]=H(null),[A,T]=H(null),[F,L]=H(null),[R,N]=H(null),[O,D]=H(null),[M,S]=H(null),[U,q]=H(null),[X,K]=H(null),[Q,Y]=H(null),[oe,he]=H(null),[ve,ae]=H(null),[ie,ne]=H(0),[_,de]=H(null),[W,Me]=H(null),Oe=Z(null),z=Z(null),V=Z(0),te=Z(new Map),ue=re(()=>{V.current++,te.current.clear(),Me(null),ne(ye=>ye+1)},[]),J=l&&l>0?l:null,ce=w?JSON.stringify(w):"",He=Ee(()=>w?Sr(w):hc,[ce]),Xe=Ee(()=>mc(He.input),[He]),Ve=Ee(()=>Na({customVenues:[...u?[{name:"consumer-exact-output",chainIds:[a],preferred:!0,resolve:u}]:[],...He.output]}),[u,a,He]);we(()=>{te.current.clear()},[Ve]);const se=Ee(()=>t?Qh(o?.asset,a):null,[t,o?.asset,a]),Ue=Ee(()=>{if(!t||!o?.asset)return null;if(se)return se.destination.address;const ye=fo(o.asset,a);if(ye)return ye;const nt=$o(o.asset.address,a,o.asset.chainId);return nt?nt.address:null},[t,o?.asset,a,se]),be=Ee(()=>t&&o?.asset?Qr(o.asset,a):[],[t,o?.asset,a]),Ye=Ee(()=>be.map(ye=>ye.toLowerCase()).join(","),[be]),Be=JSON.stringify([t,f,o?.asset.owner,o?.asset.location,o?.asset.receiptTokenId,o?.asset.address,o?.asset.chainId,o?.asset.decimals,o?.amount,a,Ye,n,s]);we(()=>{let ye=!1;if(z.current&&(clearTimeout(z.current),z.current=null),!t||!o?.asset||se||be.length<=1){he(null),ae(null);return}return z.current=setTimeout(async()=>{const nt=n==="input"?o.amount:s||"0";let mt=0n;try{mt=n==="input"?Nn(nt,o.asset.decimals):0n}catch{mt=0n}try{const qe=await sd(o.asset,a,{requiredAmount:mt});ye||(he(qe),ae(Be))}catch{ye||he(null)}},400),()=>{ye=!0,z.current&&(clearTimeout(z.current),z.current=null)}},[Be]);const Pe=Ee(()=>(ve===Be?oe:null)??Ue,[oe,ve,Be,Ue]),Fe=Ee(()=>!o?.asset||!Pe?[]:[Pe,...be.filter(ye=>ye.toLowerCase()!==Pe.toLowerCase())],[o?.asset,Pe,be]),je=Ee(()=>!o?.asset||!ka(o.asset.address,o.asset.chainId,r.address,r.chainId)||!Pe?!1:G(Pe,r.address),[o,r.address,r.chainId,Pe]),St=Pe?G(Pe,r.address):!1,gt=n==="output"&&parseFloat(s||"0")===0,ft=t&&!!o?.asset&&!je&&!St&&!gt,ct=JSON.stringify([t,ce,n,ft,f,o?.asset.owner,o?.asset.location,o?.asset.receiptTokenId,o?.asset.address,o?.asset.chainId,o?.asset.decimals,n==="input"?o?.amount:s,Fe.map(ye=>ye.toLowerCase()),a,r.address.toLowerCase(),r.chainId,r.decimals,i?.toLowerCase(),c,J,se?.source.address.toLowerCase()??""]),Re=Ee(()=>({}),[ct,Xe,Ve,d,ie]),Se=W?.request===Re&&(!J||W.expiresAt>Date.now());we(()=>{if(!J||W?.request!==Re)return;const ye=setTimeout(ue,Math.max(0,W.expiresAt-Date.now()));return()=>clearTimeout(ye)},[J,W,Re,ue]),we(()=>{Oe.current&&clearTimeout(Oe.current),de(Re),Me(null),v(null);const ye=n==="input"?o?.amount:s,nt=parseFloat(ye||"0");if(!t||!Number.isFinite(nt)||nt<=0||!o?.asset||!i||Fe.length===0){V.current++,x(null),E(null),y(null),T(null),L(null),N(null),D(null),Y(null),v(null),h(!1);return}const mt=o.asset.decimals;let qe;try{qe=n==="input"?Nn(o.amount,mt):Nn(s||"0",r.decimals)}catch(wt){V.current++,v(wt instanceof Error?wt.message:"Invalid amount or token precision"),h(!1);return}const Nt=++V.current,Wt=()=>Nt!==V.current;h(!0);const Rn=n==="output"?150:100,Ht=async(wt,_e,bt,xt={chainId:a,tokenOut:r.address,amountIn:qe},qt=Fe)=>{for(const Ce of qt){const Zt=`${f}:${ce}:${n}:${xt.chainId}:${Ce.toLowerCase()}:${xt.tokenOut.toLowerCase()}:${xt.amountIn.toString()}:${i.toLowerCase()}:${c??"default"}:${J??"default"}`,Je=te.current.get(Zt),$e=Je&&Je.expiresAt>Date.now()?wt(Je):void 0;if($e)return{quote:$e,tokenIn:Ce,expiresAt:Je.expiresAt};const ge=await bt(Ce);if(Wt())return"stale";if(!ge)continue;const yt=Date.now()+Math.min(J??3e4,3e4);return te.current.set(Zt,{expiresAt:yt,direction:n,..._e(ge)}),{quote:ge,tokenIn:Ce,expiresAt:yt}}return null},vn=wt=>Ht(_e=>_e.resolvedSwap,_e=>({resolvedSwap:_e}),async _e=>{const bt=!se&&wt.chainId===a&&o.asset._source!=="wallet",xt=bt?await zo(o.asset,_e,wt.chainId,r):mt;if(Wt())return null;const qt=bt?Bn(wt.amountIn,mt,xt):wt.amountIn;if(G(_e,wt.tokenOut))return zu(qt);const Ce={type:"swap",tokenIn:_e,tokenOut:wt.tokenOut,amountIn:qt,maxSlippage:c};if(d){const Zt=await d(Ce,wt.chainId,i);if(Zt)return Zt}return Xe.resolveSwap(Ce,wt.chainId,i)},wt,wt.candidates);return Oe.current=setTimeout(async()=>{try{if(n==="input"){let wt=null,_e=qe;if(se){if(wt=await vn({chainId:se.source.chainId,tokenOut:se.source.address,amountIn:qe,candidates:[o.asset.address]}),wt==="stale"||Wt())return;if(!wt)throw new Error("No liquidity for this pair");_e=tn(wt.quote.amountOutMinimum,se.source.decimals,se.destination.decimals,"floor")}let bt=se,xt=null;if(se){const yt=await ad(se.destination,r,async De=>{const Xt=tn(_e,se.destination.decimals,De.decimals,"floor"),Et=await vn({chainId:a,tokenOut:r.address,amountIn:Xt,candidates:[De.address]});return Et&&Et!=="stale"?{amount:Xt,value:Et}:null});if(Wt())return;if(!yt)throw new Error("No liquidity for this pair");bt={...se,destination:yt.token},_e=yt.amount,xt=yt.value}else xt=await vn({chainId:a,tokenOut:r.address,amountIn:_e,candidates:Fe});const qt=bt?!G(bt.destination.address,r.address):ft;if(xt==="stale"||Wt())return;if(!xt)throw new Error("No liquidity for this pair");const Ce=xt?xt.quote.amountOut:_e,Zt=Math.min(xt?.expiresAt??1/0,wt?.expiresAt??1/0),Je=bt?.destination.decimals??await zo(o.asset,xt.tokenIn,a,r),$e=!se&&o.asset._source!=="wallet"?Bn(_e,mt,Je):_e;if(Wt())return;Y(xt?.tokenIn??bt?.destination.address??null),K(bt),Me({request:Re,key:`${cr(fs(ct))}:${Nt}`,expiresAt:Zt}),D(Ce),S($e),q(Je),y(qt?xt?.quote??null:null),T(wt?.quote??null),L(null),N(null);const ge=parseFloat(Le(Ce,r.decimals));x(ge<.01?ge.toPrecision(4):ge.toLocaleString(void 0,{maximumFractionDigits:6})),E(null),v(null)}else{const wt=Je=>Ht($e=>$e.exactOutputSwap,$e=>({exactOutputSwap:$e}),async $e=>{try{return G($e,Je.tokenOut)?Hu(Je.amountOut):await Ve.getQuote({tokenIn:$e,tokenOut:Je.tokenOut,amountOut:Je.amountOut,maxSlippage:c},Je.chainId,i)}catch{return null}},{chainId:Je.chainId,tokenOut:Je.tokenOut,amountIn:Je.amountOut},Je.candidates);let _e=se,bt=null;if(se){const Je=await ad(se.destination,r,async $e=>{const ge=await wt({chainId:a,tokenOut:r.address,amountOut:qe,candidates:[$e.address]});return ge&&ge!=="stale"?{amount:ge.quote.amountInMax,value:ge}:null});if(Wt())return;if(!Je)throw new Error("No liquidity for this pair");_e={...se,destination:Je.token},bt=Je.value}else bt=await wt({chainId:a,tokenOut:r.address,amountOut:qe,candidates:Fe});if(bt==="stale"||Wt())return;if(!bt)throw new Error("No liquidity for this pair");const xt=!_e||!G(_e.destination.address,r.address);let qt=null;if(se){const Je=bt?bt.quote.amountInMax:qe;if(qt=await wt({chainId:se.source.chainId,tokenOut:se.source.address,amountOut:tn(Je,_e.destination.decimals,se.source.decimals,"ceil"),candidates:[o.asset.address]}),qt==="stale"||Wt())return;if(!qt)throw new Error("No liquidity for this pair")}const Ce=qt?mt:await zo(o.asset,bt.tokenIn,a,r);if(Wt())return;Y(bt?.tokenIn??_e?.destination.address??null),K(_e),Me({request:Re,key:`${cr(fs(ct))}:${Nt}`,expiresAt:Math.min(bt?.expiresAt??1/0,qt?.expiresAt??1/0)}),N(xt?bt?.quote??null:null),L(qt?.quote??null),y(null),T(null),D(null);const Zt=qt?.quote.amountIn??bt.quote.amountIn;E(Le(Zt,Ce)),x(null),v(null)}}catch(wt){if(Wt())return;const _e=wt instanceof Error?wt.message:"Failed to get quote";v(_e),x(null),E(null),y(null),T(null),L(null),N(null),D(null),Y(null)}finally{Wt()||h(!1)}},ft||se?Rn:0),()=>{V.current++,Oe.current&&clearTimeout(Oe.current)}},[Re]);const kt=Se?Q??Pe:Pe,vt=kt?G(kt,r.address):St;return{inputAmount:Se&&n==="input"?M:null,inputDecimals:Se&&n==="input"?U:null,quoteKey:Se?W.key:null,quoteExpiresAt:Se?W.expiresAt:null,refreshQuote:ue,isQuoting:_===Re?g:ft||!!se,quoteError:_===Re?b:null,estimatedOutput:Se?C:null,estimatedInput:Se?k:null,resolvedSwap:Se?I:null,exactOutputSwap:Se?R:null,quoteAmountOut:Se?O:null,resolvedTokenIn:kt,isDirect:vt,needsSwap:Se?!vt:ft,selectedIsEquivalent:je,sourceSwap:Se?A:null,sourceExactOutputSwap:Se?F:null,pivot:Se?X:se}}function La(e){const{enabled:t=!0,destinationToken:n,selectedAsset:o,paymentAmount:r="0",sourceChains:a,supportedSourceAssets:i,buildActionCalls:s,feeExecutionMode:c="user-transfer",buildSpicenetBatch:l,onPayExecute:d,resolveExactOutputSwap:u,amountDirection:p=e.feeOnlyAction?"output":e.fundingSources?"input-inclusive":"input",onSuccess:w,onError:f}=e,g=Hs(n,t),h=g.token??Vs,b=!!e.fundingSources,v=!!e.combineSourceBalances||b,C=Hs(e.fundingSources?.token,t&&b),x=C.token??Vs,k=t&&!!g.token,E=p==="output",I=p==="input-inclusive",y=e.feeFunding?.length!==0&&(e.actionProceeds==="output"||!!e.feeFunding?.length),A=E?"output":"input",T=h.chainId,F=gn(sn),L=Zp(F?.feeToleranceBps),R=F?.mode||"7702",N=!1,O=!!F?.isWhitelistGateActive,D=!!F?.isWhitelistConfigured&&F?.isUserWhitelisted!==!0,M=Ee(()=>a??F?.supportedChainIds??[],[a,F?.supportedChainIds]),S=i,{address:U,isConnected:q,isReady:X,isAuthenticated:K,provider:Q}=Po(),{execute:Y,estimate:oe,clearStatus:he}=Yr(),{externalWallet:ve,embeddedAddress:ae,activeWallet:ie,activeAddress:ne}=zr(),_=F?.externalWalletAddress,de=F?.embeddedWalletAddress||ae,W=o,Me=jr(W?.asset,R!=="7702"),Oe=!!W&&W.asset.chainId===h.chainId&&G(dt(W.asset.address),dt(h.address)),z=!e.quoteOnlyAccount&&(R!=="7702"||e.actionExecution?.wallet==="external")&&Me&&Oe&&(!E||Number(r)>0)&&!e.feeOnlyAction&&!e.actionProceeds,V=Me&&!z,te=e.actionExecution?.wallet==="external"&&!z,ue=te?[h.chainId,...W?.asset._source==="wallet"?[W.asset.chainId]:[]].find(P=>!F?.rpcOverrides?.[P]):void 0,J=b&&(p!=="input-inclusive"||W||e.feeOnlyAction||e.actionInput||e.actionProceeds||e.actionExecution||R!=="7702")?"Combined funding supports an input-inclusive account purchase without a selected token.":b&&C.error?C.error:g.error?g.error:d?"Move onPayExecute protocol calls to buildActionCalls and application updates to onSuccess before continuing.":te&&(E&&!(Number(r)>0)||e.feeOnlyAction||e.actionProceeds||e.prependSourceEscrow||Ae(h.address))?"External wallet execution requires a positive ERC20 supply or payment with SDK-managed funding.":ue!==void 0?`Configure rpcOverrides for chain ${ue} before routing to the external caller.`:null,ce=Ee(()=>te&&_?(P,j)=>Wh(P,j,_):s,[te,_,s]),{displayAssets:He,filteredSpiceAssets:Xe,walletAssets:Ve,embeddedWalletAddress:se,refreshSpiceAssets:Ue,refreshWalletAssets:be,loading:Ye,refreshing:Be,error:Pe}=qu({address:U,destinationToken:h,supportedSourceAssets:S,sourceChains:M,additionalSourceTokens:[...e.additionalSourceTokens??[],...W?.asset._source==="wallet"?[{address:W.asset.address,chainId:W.asset.chainId,decimals:W.asset.decimals,symbol:W.asset.symbol,name:W.asset.name,logoURI:W.asset.logoURI}]:[]],includeExternalWalletAssets:e.includeExternalWalletAssets,includeCrossChainEmbeddedAssets:e.includeCrossChainEmbeddedAssets,enabled:k&&(!!e.quoteOnlyAccount||(R!=="7702"?!!_:!!de))}),Fe=e.quoteOnlyAccount??se,je=[...Ve,...Xe].filter(P=>!b||P.location!=="external"&&G(P.owner,de)),St=JSON.stringify(je,(P,j)=>typeof j=="bigint"?j.toString():j),gt=Ee(()=>je,[St]),ft=JSON.stringify([v,de,T,gt.map(P=>[ke(P),P.balance.toString(),P.decimals,P.receiptTokenDecimals,P.balanceStatus,P.balanceError,P.chainTokens])]),[ct,Re]=H(null),Se=re(P=>v?Da(P,gt,de??void 0,T):void 0,[v,gt,de,T]);we(()=>{if(!v||!k||!de)return;let P=!1;Re(null);const j=new Map;for(const $ of gt){const Ie=Se($);if(Ie)j.set(ke(Ie.escrow),Ie);else if($.location==="rollup"&&$.owner?.toLowerCase()===de.toLowerCase()&&$.chainId===T&&!$.balanceError&&$.balanceStatus!=="stale"){const me=Object.entries($.chainTokens??{}).filter(([Te])=>Te.toLowerCase().startsWith(`evm:${T}:`));me.length===1&&me[0][1].decimals!==void 0&&j.set(ke($),{owner:$.owner,chainId:T,token:me[0][0].split(":")[2],decimals:me[0][1].decimals,escrow:$})}}return Promise.allSettled([...j].map(async([$,Ie])=>{const me=await er(Ie.owner,Ie.chainId,Ie.token);if(!me.entries.some(Te=>Te.receiptToken===Ie.escrow.receiptTokenId&&Te.decimals===Ie.escrow.receiptTokenDecimals))throw new Error("The cash receipt mapping changed. Refresh before submitting.");return[$,tn(me.available,Ie.decimals,Ie.escrow.decimals,"floor")]})).then($=>{const Ie=$.flatMap(me=>me.status==="fulfilled"?[me.value]:[]);P||Re({scope:ft,balances:Object.fromEntries(Ie)})}),()=>{P=!0}},[v,k,de,ft,Se]);const kt=re(P=>!v||P.owner?.toLowerCase()!==de?.toLowerCase()||P.chainId!==T?!1:gt.some(j=>j.owner?.toLowerCase()===P.owner?.toLowerCase()&&j.chainId===T&&(P.location==="embedded"&&j.location==="rollup"&&Object.keys(j.chainTokens??{}).some($=>$.toLowerCase()===`evm:${T}:${P.address.toLowerCase()}`)||P.location==="rollup"&&j.location==="embedded"&&Object.keys(P.chainTokens??{}).some($=>$.toLowerCase()===`evm:${T}:${j.address.toLowerCase()}`))),[v,de,T,gt]),vt=re((P,j)=>{const $=gt.find(Te=>ke(Te)===ke(P));if(!$)return;const Ie=Se($);if(!Ie||ct?.scope!==ft)return;const me=ct.balances[ke(Ie.escrow)];if(me!==void 0)return Da($,gt,de??void 0,T,me,j)},[Se,ct,ft,gt,de,T]),ye=re(P=>{if(!v)return P.balance;const j=gt.find($=>ke($)===ke(P));if(!(!j||j.balanceError||j.balanceStatus==="stale")&&!(v&&j.location!=="external"&&j.owner?.toLowerCase()!==de?.toLowerCase()))return kt(j)?vt(j)?.availableBalance:v&&j.location==="rollup"?ct?.scope===ft?ct.balances[ke(j)]:void 0:j.balance},[gt,kt,vt,v,ct,ft,de]),nt=Ee(()=>{if(!v)return He;const P=new Set;return He.filter(j=>{const $=Se(j);if(!$)return!0;const Ie=ke($.escrow);return P.has(Ie)?!1:(P.add(Ie),!0)})},[He,v,Se]),mt=JSON.stringify(e.fundingSources?.positionIds??[]),qe=Ee(()=>{if(!b||!C.token||!de)return[];const P=new Set(JSON.parse(mt));return gt.filter(j=>P.has(ke(j))&&Ua(j,de,x)&&(j.location==="rollup"||M.includes(j.chainId))&&Bo(j,"spend-source",{...F,isWhitelistGateActive:O},x,S).eligible)},[b,C.token,de,mt,gt,x,M,F,S]),Nt=Ee(()=>qe.flatMap(P=>{const j=P.location==="rollup"?ct?.scope===ft?ct.balances[ke(P)]:void 0:P.balance;return j===void 0||j<=0n||j>P.balance?[]:[{asset:P,availableAmount:j,reservedAmount:P.balance-j}]}),[qe,ct,ft]),Wt=JSON.stringify(Nt,(P,j)=>typeof j=="bigint"?j.toString():j),Rn=e.feeFunding===void 0&&R==="7702"&&!z&&!te&&W?.asset._source==="wallet"&&W.asset.chainId===T&&!vt(W.asset),Ht=y||Rn||e.feeFunding?.length!==0&&E&&!!W&&!!vt(W.asset),vn=Ee(()=>e.feeOnlyAction||Ht||te?He.filter(P=>P.balance>0n&&P.location!=="external"&&(P._source==="spice"||P._source==="wallet"&&P.chainId===T)).flatMap(P=>{if(!v||P.location!=="rollup")return[P];const j=ct?.scope===ft?ct.balances[ke(P)]:void 0;return j===void 0?[]:[{...P,balance:j}]}):[],[He,e.feeOnlyAction,Ht,te,T,v,ct,ft]),wt=!!e.feeOnlyAction||Ht||te,_e=wt&&Ye,bt=wt?vn.map(P=>`${ke(P)}:${P.balance}:${P.balanceError??""}:${P.balanceStatus??""}`).sort().join(",")+`:${Pe??""}`:"",xt=W?[...Ve,...Xe].find(P=>ke(P)===ke(W.asset)):void 0,qt=Ee(()=>W&&xt?{...W,asset:xt}:W,[W,xt]),Ce=W?Bo(xt??W.asset,"spend-source",{allowedTokens:F?.allowedTokens,rpcOverrides:F?.rpcOverrides,liquidityVenues:F?.liquidityVenues,isWhitelistGateActive:O},h,S):null,Zt=W&&xt?vt(xt):void 0,Je=v?W&&xt?ye(xt):void 0:W?.asset.balance,$e=v&&W&&(kt(W.asset)||W.asset.location==="rollup")?Je??0n:xt?xt.balance<(W?.asset.balance??0n)?xt.balance:W.asset.balance:0n,[ge,yt]=H(!1),[De,Xt]=H(!1),Et=Z(!1),qn=Z(!1),et=Z(!0);Wo(()=>(et.current=!0,()=>{et.current=!1,Hn.current.accepted&&fe.current?.abort()}),[]);const[nn,Jt]=H(null),[Pn,Un]=H(null),zn=Z(0),Hn=Z({accepted:!1}),In=Z(f);In.current=f;const Vt=re(P=>{Jt(P),typeof P=="string"&&P&&In.current?.(new Error(P),Hr(P))},[]),[_t,un]=H("idle"),[en,Ut]=H(""),[lt,Bt]=H(null),[Ro,pn]=H(!1),[Vn,kn]=H(null),[eo,fn]=H(null),[to,Cn]=H(!1),[ut,wn]=H(!1),Gn=Z(null),[mo,En]=H(null),Qo=Z(W),ho=Z(!1),fe=Z(null),le=Z(null),ot=Fe||ae||U,At=ze.getBaseUrl(),We=`${At}:${ot?.toLowerCase()??""}`,on=Z(We);on.current=We;const[Pt,mn]=H({scope:We,checking:!1,supported:null,pending:!1,error:null}),An=Z(0),cn=Z(null),hn=Z(0),Fn=Z({scope:We,supported:null,terminal:new Map}),no=Z(null),ln=Z(null),Kn=Z(null),Tn=Z(null),rt=Z(null),Dt=Z(w),oo=Z(null),Ao=Z(!1),[sa,tr]=H(null),[ro,mr]=H(null),[Do,Va]=H(!1),[_s,Nr]=H(0),Yn=Vn?.status==="success"?Vn.txHash:_t==="success"?lt:null,Zn=!!Yn&&sa!==Yn,ee=Z(Zn);ee.current=Zn;const Ne=re(async(P,j=!1)=>{if(cn.current?.scope===We&&cn.current.version===hn.current&&!j)return!1;const $=le.current?.scope===We?le.current.progress:void 0;if(z&&!$?.actionId&&$?.submissionStatus!=="unknown"||!ot)return!0;const Ie=++An.current,me=()=>et.current&&on.current===We&&An.current===Ie,Te=new kr;Te.setBaseUrl(At),mn(pe=>({...pe.scope===We?pe:{supported:null,pending:!1},scope:We,checking:!0,error:null}));try{Fn.current.scope!==We&&(Fn.current={scope:We,supported:null,terminal:new Map});const pe=Fn.current,Qe=P&&pe.supported!==null?pe.supported:await Te.supportsAutomaticContinuation();if(!me())return!1;pe.supported=Qe;const Ft=le.current?.scope===We?le.current:null;let It=Ft?.progress;if(It?.submissionStatus==="unknown"&&!It.actionId){const Gt=It.idempotencyKey;if(!Gt)throw new Error("The original submission identity is unavailable.");const Tt=await Te.getActionBySubmission(ot,Gt);if(!me())return!1;if(!Tt)return mn({scope:We,supported:Qe,checking:!1,pending:!0,error:null}),!1;const[an,Mt="0"]=Tt.intentIds[0].split("/");It={...It,actionId:an,intentId:Tt.intentIds[0],intentIndex:Number(Mt),autoContinue:Tt.autoContinue===!0,submissionStatus:void 0},Ft&&(Ft.progress=It)}const Go=Qe?P??await Te.getWalletActions(ot,{pendingOnly:!0}):[];if(!me())return!1;let Xn=!1,Dn,No,ar=0;const sr=new Set([...It?.actionId?[It.actionId]:[],...Go.map(Gt=>Gt.actionId)]);for(const Gt of pe.terminal.keys())sr.has(Gt)||pe.terminal.delete(Gt);for(const Gt of sr){const Tt=Go.find(it=>it.actionId===Gt);if(Tt&&Tt.intents.length!==1){Xn=!0,Dn??(Dn=Tt);break}const an=It?.actionId===Gt,Mt=an&&Ft?.routedExternal||!!Tt?.externalExecution&&Tt.externalExecution.recoveryKey===e.actionExecution?.recoveryKey&&!!_&&G(Tt.externalExecution.executor,_);let yn;if(Mt){if(yn=await Te.getExternalExecution(Gt),!me())return!1;if(yn.recoveryKey!==e.actionExecution?.recoveryKey||!_||!G(yn.executor,_))throw Error("The original external action belongs to another wallet or application action.");if(yn.executionMode==="wallet-envelope"){if(an&&It?.step!=="success"){Xn=!0,Dn??(Dn=Tt),No={actionId:Gt,state:yn};break}continue}if(yn.status!=="complete"){if(yn.calls.some(it=>it.status==="conflict"))throw Error("The original external wallet action failed. Check wallet activity before starting another action.");Xn=!0,Dn??(Dn=Tt),No={actionId:Gt,state:yn};break}}const go=an?It.intentIndex??0:0,Ir=`${Gt}/${go}`;let On=pe.terminal.get(Gt)??"unresolved";if(Qe&&On==="unresolved"){if(ar===4){Xn=!0,Dn??(Dn=Tt);break}ar++,On=await Te.getIntentRecoveryStatus(Gt,go)}else!Qe&&an&&It?.totalSteps&&(await Promise.all(Array.from({length:It.totalSteps},(it,co)=>Te.checkStepStatus(Ir,co,!0)))).every(it=>it.data.status==="success")&&(On="completed");if(!me())return!1;if(On==="unresolved"){Xn=!0,Dn??(Dn=Tt);break}if(pe.terminal.set(Gt,On),pe.terminal.size>100&&pe.terminal.delete(pe.terminal.keys().next().value),!(!an||!Ft)){if(On==="completed"&&It?.step!=="success"&&Et.current){Xn=!0;break}if(On==="completed"&&It?.step!=="success"&&!Et.current){let it;if(Ft.routedExternal){const co=yn??await Te.getExternalExecution(Gt),lo=co.calls[co.calls.length-1];if(co.status!=="complete"||!lo?.transactionHash)throw Error("The original external wallet action is not confirmed yet.");it=await zi(Rt(co.chainId),lo.transactionHash)}else{const co=Ft.batches;let lo=It?.destinationStepIndex,Lr=It?.destinationChainId;if(lo===void 0||Lr===void 0){if(It?.totalSteps!==co?.length)throw new Error("The original destination is unavailable. Check this action's status before continuing.");for(lo=(co?.length??0)-1;lo>=0&&Lo(co[lo].chainId);)lo--;Lr=co?.[lo]?.chainId}if(!Number.isSafeInteger(lo)||lo<0||lo>=(It?.totalSteps??0)||!Number.isSafeInteger(Lr)||!Lr||Lo(Lr))throw new Error("The original destination is unavailable. Check this action's status before continuing.");const qp=await Te.checkStepStatus(Ir,lo,!0);if(!me())return!1;it=await zi(Rt(Lr),qp.data.transactionHash)}if(!me())return!1;It={...It,step:"success",message:"Transaction confirmed",txHash:it,submissionStatus:void 0},Ft.progress=It,Bt(it),un("success"),Jt(null),Ut("Transaction confirmed"),kn(co=>co&&{status:"success",txHash:it})}else On==="cancelled"&&(Ft.progress=void 0)}}return mn({scope:We,supported:Qe,checking:!1,pending:Xn,error:null,action:Dn,...No?{externalExecution:No.state,externalActionId:No.actionId}:{}}),!Xn}catch(pe){return me()&&mn(Qe=>({...Qe,scope:We,supported:Fn.current.scope===We?Fn.current.supported:null,checking:!1,pending:!0,error:Ln(pe,"The original action status is unavailable. Check again before submitting.")})),!1}},[z,ot,We,At,_,e.actionExecution?.recoveryKey]),at=le.current?.scope===We?le.current.progress:void 0,Ge=!!ot&&(!z||at?.submissionStatus==="unknown"||!!at?.actionId&&at.step!=="success"),Ke=Pt.scope===We,ht=Ge&&Ke&&Pt.pending,$t=As(ot,Ge&&Ke&&Pt.supported===!0&&(k||ht),{pendingOnly:!0}),hr=Z({scope:We,...$t});hr.current={scope:We,...$t};const gr=Z(null),So=re(async()=>{await Ne(),$t.error&&$t.refresh()},[Ne,$t.refresh,$t.error]),Mo=Ge&&(Ke?Pt.checking||Pt.supported===null&&!Pt.error||$t.loading:!0),wr=Ge&&Ke?Pt.error??$t.error:null,kp=!Ge||Ke&&!Mo&&!ht&&!wr;we(()=>{if(!(!k&&!at?.actionId&&at?.submissionStatus!=="unknown"))return Ne(),()=>{An.current++,cn.current?.scope===We&&(cn.current=null)}},[We,k,Ne]),we(()=>{if(!$t.updatedAt||$t.loading||$t.error||cn.current?.scope===We&&cn.current.version===hn.current)return;const P=gr.current;P?.scope===We&&P.revision===$t.revision||(gr.current={scope:We,revision:$t.revision},Ne($t.actions))},[$t.revision,$t.loading,$t.error,De,We,Ne]),we(()=>{Qo.current=W},[W]);const Qt=z?_:Fe||ae||U,ao=k&&!ge&&_t==="idle"&&!J&&!D&&!!Qt&&!z&&!E&&I&&c==="user-transfer"&&!e.feeOnlyAction&&!e.actionInput&&!e.actionProceeds&&!!W&&Number(W.amount||"0")===0&&!!Ce?.eligible&&$e>0n,ia=Ee(()=>{if(!ao||!W)return W;const P=10n**BigInt(W.asset.decimals);return{...W,amount:Le($e<P?$e:P,W.asset.decimals)}},[ao,W,$e]),Qa=Qu({enabled:k&&!D&&!z&&!b,direction:A,selectedAsset:ia,destinationToken:h,chainId:T,recipient:Qt,paymentAmount:r,resolveExactOutputSwap:u,resolveInputSwap:e.resolveInputSwap,maxSlippage:e.maxSlippage}),Pr=z?{...Qa,quoteKey:"direct-external",quoteExpiresAt:null,quoteAmountOut:null,inputAmount:null,inputDecimals:W?.asset.decimals??null,isQuoting:!1,quoteError:null,isDirect:!0,needsSwap:!1,selectedIsEquivalent:!0,resolvedTokenIn:h.address,resolvedSwap:null,exactOutputSwap:null,sourceSwap:null,sourceExactOutputSwap:null,pivot:null,estimatedInput:E?r:W?.amount??null,estimatedOutput:E?r:W?.amount??null}:Qa,Lt=Pr,{isQuoting:Mc,resolvedSwap:ja,exactOutputSwap:Ga,quoteAmountOut:Nc,resolvedTokenIn:so,isDirect:Pc,needsSwap:jo,selectedIsEquivalent:Cp,sourceSwap:Ka,sourceExactOutputSwap:Ya,pivot:jt}=Pr,Eo=E||b?parseFloat(r||"0"):parseFloat(W?.amount||"")||0,Ap=W?.asset?._source==="wallet",Sp=!!W?.asset&&Ap&&W.asset.chainId!==T,Ep=W?Number(Le($e,W.asset.decimals)):0,Fp=Ee(()=>{if(!W||E)return!1;try{return Nn(W.amount||"0",W.asset.decimals)>$e}catch{return!0}},[W,E,$e]);we(()=>{if(!k){zn.current++,Un(null),he?.(),Vt(null),yt(!1);const P=at?.submissionStatus==="unknown"||!!at?.actionId&&at.step!=="success";!Zn&&!ht&&!P&&(un("idle"),Ut(""),Bt(null),pn(!1),kn(null),le.current?.scope===We&&(le.current.progress=void 0)),fn(null),Cn(!1),wn(!1),En(null),ho.current=!1,fe.current&&!ht&&!P&&(fe.current.abort(),fe.current=null)}},[k,Zn,ht,We]);const Uc=re(P=>{if(!et.current||on.current!==We||P.user&&!G(P.user,ot))return;const j=le.current;j?.scope===We&&(P.actionId||P.submissionStatus==="unknown")&&((!j.progress?.actionId&&P.actionId||!j.progress?.submissionStatus&&P.submissionStatus==="unknown")&&An.current++,j.progress={...j.progress,...P},mn($=>({...$,scope:We,checking:!1,pending:P.step!=="success",error:null}))),un({building:"building","signing-delegation":"signing-delegation","signing-intent":"signing-intent",submitting:"submitting",executing:"executing",success:"success",error:"error"}[P.step]||"executing"),Ut(P.message),P.txHash&&Bt(P.txHash)},[We,ot]),yr=Ee(()=>({currentPaymentAmount:r,isFeeInclusiveInput:I,feeOnlyAction:e.feeOnlyAction,swapInputAmount:Pr.inputAmount,destinationToken:h,embeddedWalletAddress:Fe,providerEmbeddedAddress:ae,externalWalletAddress:_,address:U,recipient:e.recipient??(R!=="7702"?_:void 0),isNon7702:N,isPayMode:E,resolvedChainId:T,buildActionCalls:ce,feeExecutionMode:c,buildSpicenetBatch:l,selectedAsset:W,combinedSourceGroup:Zt,needsSwap:jo,resolvedSwap:ja,exactOutputSwap:Ga,quoteAmountOut:Nc,resolvedTokenIn:so,sourceSwap:Ka,sourceExactOutputSwap:Ya,pivot:jt,resolveSourceExactOutputSwap:async P=>{if(!jt||!Qt)throw new Error("Swap route is not ready.");const j=await Vu({chainId:jt.source.chainId,recipient:Qt,tokenIn:W.asset.address,tokenOut:jt.source.address,amountOut:P,liquidityVenues:F?.liquidityVenues,maxSlippage:e.maxSlippage}).catch(()=>null);if(!j)throw new Error("No liquidity for this pair.");return j},resolveInputSwap:async(P,j)=>{if(!so||!Qt)throw new Error("Swap route is not ready.");return Wa({chainId:T,recipient:Qt,tokenIn:so,tokenOut:h.address,amountIn:P,selectedSwap:j,liquidityVenues:F?.liquidityVenues,maxSlippage:e.maxSlippage,resolveInputSwap:e.resolveInputSwap})}}),[r,Zt,h,Fe,ae,_,U,e.recipient,e.feeOnlyAction,e.maxSlippage,e.resolveInputSwap,Pr.inputAmount,I,R,N,E,T,ce,c,l,W,Zt,jo,ja,Ga,Nc,so,Ka,Ya,jt,Qt,F?.liquidityVenues]),ca=Ee(()=>b?x.address:W?.asset?jt?jt.destination.address:jo&&so?so:W.asset.chainId===T?W.asset.address:so??fo(W.asset,T)??h.address:h.address,[b,x,W,h.address,jo,T,so,jt]),io=JSON.stringify([b&&[x,mt],W&&ke(W.asset),p,e.quoteOnlyAccount,e.actionExecution?.wallet,h.address,h.chainId,h.decimals,e.recipient,R,b?void 0:_,z?_:Fe,F?.apiUrl,F?.rpcOverrides,e.maxSlippage,c,L,e.feeOnlyAction,e.quotedInclusivePlatformFee,v,e.actionProceeds==="output"?"output":e.actionProceeds&&"token"in e.actionProceeds?e.actionProceeds.token:e.actionProceeds?"multiple":void 0,e.feeFunding,e.actionInput?.map(P=>[P.token,P.amount.toString()]),e.feeFundingReserve&&ke(e.feeFundingReserve.asset),e.feeFundingReserve?.amount.toString(),F?.liquidityVenues,F?.allowedTokens,O,S,M,e.actionInput,e.actionProceeds,e.feeFunding,T,ca,Lt.pivot?.source.address,Lt.pivot?.destination.address],(P,j)=>typeof j=="bigint"?j.toString():j),Wc=Z(null);Wc.current=k&&!ge&&!J&&!D?io:null,we(()=>()=>{Tn.current?.controller.abort(),Tn.current=null},[io,k,ge,J,D]);const Wn=cr(If(JSON.stringify([io,W?.amount,r]))),nr=JSON.stringify([U,de,ae,b?void 0:_,b?de:ne,X,K,q,Q]),ei=JSON.stringify([nr,F?.apiUrl,F?.network]),Za=Pn===ei;we(()=>()=>{zn.current++,Hn.current.accepted&&(fe.current?.abort(),Et.current=!1,et.current&&(Xt(!1),yt(!1),un("idle"),Ut(""),Bt(null),Jt(null),pn(!1),kn(null))),he?.()},[ei]);const st=Z({key:Wn,enabled:k,quoteOnly:!!e.quoteOnlyAccount,sourceBalance:$e,physicalAssets:gt,combinedCash:ct,combinationScope:ft,sourceEligible:Ce?.eligible,externalSignerReady:!!ve&&!!_,owner:Qt,walletScope:nr,policyAvailable:!J&&!D});(st.current.key!==Wn||st.current.enabled!==k||st.current.quoteOnly!==!!e.quoteOnlyAccount||st.current.owner!==Qt||st.current.walletScope!==nr||st.current.policyAvailable!==(!J&&!D))&&hn.current++,st.current={key:Wn,enabled:k,quoteOnly:!!e.quoteOnlyAccount,sourceBalance:$e,physicalAssets:gt,combinedCash:ct,combinationScope:ft,sourceEligible:Ce?.eligible,externalSignerReady:!!ve&&!!_,owner:Qt,walletScope:nr,policyAvailable:!J&&!D};const br=Z(!1),Lc=Z(e.onSubmit);Lc.current=e.onSubmit;const qc=Z(e.beforeSubmit);qc.current=e.beforeSubmit;const Xa=re(async P=>{if(!br.current||Et.current)return;Et.current=!0,br.current=!1;const j=rt.current,$=st.current,Ie=hn.current,me=zn.current,Te={accepted:!1};Hn.current=Te;const pe=()=>!Te.accepted||et.current&&me===zn.current&&st.current.enabled&&st.current.walletScope===$.walletScope,Qe=an=>(...Mt)=>{pe()&&an(...Mt)},Ft={...j,execution:{...j.execution,onProgress:Qe(j.execution.onProgress)},ui:{setError:Qe(j.ui.setError),setStep:Qe(j.ui.setStep),setStatusMsg:Qe(j.ui.setStatusMsg),setTxHash:Qe(j.ui.setTxHash),setIsExecuting:Qe(j.ui.setIsExecuting),setShowStatusPanel:Qe(j.ui.setShowStatusPanel),setPaymentResult:Qe(j.ui.setPaymentResult)}},It=Ft.feeQuote,Go=It?.fundingSource,Xn=JSON.stringify(Go,(an,Mt)=>typeof Mt=="bigint"?Mt.toString():Mt),Dn=JSON.stringify([It?.sourceAllocation,It?.feeSourceAllocation,It?.fundingPlan,It?.externalGasReserve],(an,Mt)=>typeof Mt=="bigint"?Mt.toString():Mt),No=Lc.current,ar=In.current,sr={operationKey:$.key,feeQuote:It,selectedAsset:Ft.selectedAsset};Xt(!0),Jt(null);const Gt=hr.current.revision;gr.current={scope:We,revision:Gt};const Tt={scope:We,version:Ie};cn.current=Tt;try{try{const an="The original action status is pending or unavailable. Check its status before submitting.";if(!await Ne(void 0,!0))throw new Error(an);await qc.current?.(sr);const Mt=hr.current;if(Mt.scope!==We||Mt.loading||Mt.error)throw new Error(Mt.error??an);if(Mt.revision!==Gt&&Mt.updatedAt&&(gr.current={scope:We,revision:Mt.revision},!await Ne(Mt.actions,!0)))throw new Error(an);const yn=hr.current;if(yn.scope!==We||yn.loading||yn.error||yn.revision!==Gt&&yn.actions.some(On=>On.intents.length!==1||Fn.current.scope!==We||!Fn.current.terminal.has(On.actionId)))throw new Error(yn.error??an);const go=st.current,Ir=rt.current;if(!et.current||Ie!==hn.current||!go.enabled||go.key!==$.key||go.owner!==$.owner||!qn.current||Ir?.feeQuote!==It||It?.fundingSource!==Go||JSON.stringify(It?.fundingSource,(On,it)=>typeof it=="bigint"?it.toString():it)!==Xn||JSON.stringify([It?.sourceAllocation,It?.feeSourceAllocation,It?.fundingPlan,It?.externalGasReserve],(On,it)=>typeof it=="bigint"?it.toString():it)!==Dn)throw new Error("The wallet, policy or accepted action quote changed. Review again before submitting.");Ft.validateFeeQuote?.(),No?.(),Dt.current=Ft.onSuccess,le.current={key:$.key,quote:It,scope:We,routedExternal:te}}catch(an){const Mt=Ln(an,"Unable to prepare this action");et.current&&(Jt(Mt),un("idle")),ar?.(new Error(Mt),Hr(Mt));return}finally{cn.current===Tt&&(cn.current=null)}await(P?Tu(Ft):Fu(Ft))}finally{Hn.current===Te&&(Et.current=!1,et.current&&Xt(!1))}},[Ne,We,te]),zc=re(()=>Xa(!1),[Xa]),Ja=z,ti=D,Hc=!ln.current?.quote.fundedFeeToken&&(I||!!jt)&&!!eo&&eo.netAmount===0n,la=Ee(()=>!!e.feeOnlyAction||b&&Eo>0||(!!W?.asset||!!e.actionProceeds)&&Eo>0,[W,Eo,e.actionProceeds,e.feeOnlyAction,b]),or=Ee(()=>!k||!la||!W?.asset&&!e.actionProceeds&&!e.feeOnlyAction&&!b?null:[Wn,bt,b?Wt:"",v?`${ft}:${ct?.scope===ft?JSON.stringify(ct.balances,(P,j)=>typeof j=="bigint"?j.toString():j):"pending"}`:"",E?"pay":"supply",p,W?ke(W.asset):"sdk-funded",e.actionInput?.map(P=>`${P.token.toLowerCase()}:${P.amount}`).join(",")??"",e.feeFunding?.join(",")??"",e.quoteOnlyAccount??"executable",e.quotedInclusivePlatformFee?"quoted-inclusive-fee":"split-inclusive-fee",JSON.stringify(F?.rpcOverrides),F?.apiUrl,e.recipient,W?.asset.address.toLowerCase(),W?.asset.chainId,W?.amount,r,h.address.toLowerCase(),h.chainId,T,Lt.resolvedTokenIn?.toLowerCase()??"",Lt.quoteKey,Lt.needsSwap?"swap":"direct",Lt.isDirect?"direct-token":"routed-token","7702",Oe?"source-dest":"cross-chain",Lt.isQuoting?"quoting":"quoted",Lt.exactOutputSwap?.amountIn?.toString()??"",Lt.exactOutputSwap?.amountInMax?.toString()??"",Lt.exactOutputSwap?.venue??"",Lt.resolvedSwap?.amountOut?.toString()??"",Lt.quoteAmountOut?.toString()??"",Lt.sourceSwap?.amountOutMinimum?.toString()??"",Lt.sourceExactOutputSwap?.amountInMax?.toString()??"",Lt.pivot?.source.address.toLowerCase()??"",Fe??"",ae??"",U??""].join("|"),[k,v,ft,ct,Wn,b,Wt,bt,e.actionProceeds,e.feeOnlyAction,e.actionInput,e.feeFunding,e.quotedInclusivePlatformFee,e.quoteOnlyAccount,ge,_t,la,Ja,W,E,p,r,h,T,Lt,N,Oe,Fe,ae,U]),Vc=(P,j)=>{const $=j.filter(Ie=>Ie.location==="rollup"&&Ua(Ie,Qt,x));for(const Ie of P){if(Ie.location!=="embedded")continue;const me=Er(Ie.chainId);for(const Te of $){const pe=Object.entries(Te.chainTokens??{}).filter(([Qe])=>_n(Qe)?.chainId===Ie.chainId);if(pe.length&&(pe.length!==1||!G(_n(pe[0][0])?.address,me?.address)||pe[0][1].decimals!==void 0&&pe[0][1].decimals!==me?.decimals))throw new Error("The source funding receipt mapping changed. Refresh before submitting.")}}},$a=re(async(P,j)=>{if(!b||!C.token||!Qt||J)throw new Error(J??"The account funding route is not ready.");if(qe.some($=>$.location==="rollup"&&(ct?.scope!==ft||ct.balances[ke($)]===void 0)))throw new Error("The cash reservations are unavailable. Refresh before submitting.");return Vc(Nt.map($=>$.asset),gt),Nu({owner:Qt,token:x,budget:P,sources:Nt,destinationToken:h,beneficiary:e.recipient,buildActionCalls:ce,requestTimestampMs:Date.now(),signal:j,resolveSourceInput:($,Ie,me)=>Wa({chainId:$.chainId,recipient:Qt,tokenIn:dt($.address),tokenOut:Ie.address,amountIn:me,liquidityVenues:F?.liquidityVenues,maxSlippage:e.maxSlippage}),resolveSourceOutput:($,Ie,me)=>Vu({chainId:$.chainId,recipient:Qt,tokenIn:dt($.address),tokenOut:Ie.address,amountOut:me,liquidityVenues:F?.liquidityVenues,maxSlippage:e.maxSlippage}),resolveDestinationInput:$=>Wa({chainId:x.chainId,recipient:Qt,tokenIn:x.address,tokenOut:h.address,amountIn:$,liquidityVenues:F?.liquidityVenues,maxSlippage:e.maxSlippage,resolveInputSwap:e.resolveInputSwap}),estimate:oe})},[b,C.token,Qt,J,x,Nt,qe,gt,ct,ft,h,e.recipient,ce,F?.liquidityVenues,e.maxSlippage,e.resolveInputSwap,oe]),Tp=Ee(()=>{if(!b||!C.token||Ye||Pe)return;const P=new Set(JSON.parse(mt));if(gt.some($=>P.has(ke($))&&($.balanceStatus==="stale"||!!$.balanceError)))return;let j=0;for(const $ of qe){const Ie=$.location==="rollup"?ct?.scope===ft?ct.balances[ke($)]:void 0:$.balance;if(Ie===void 0)return;if(Ie===0n)continue;const me=Number(Le($.balance,$.decimals)),Te=Number(Le(Ie,$.decimals));if($.priceStatus!=="fresh"||!Number.isFinite($.balanceUsd)||$.balanceUsd<=0||!Number.isFinite(me)||me<=0)return;j+=$.balanceUsd*Te/me}if(!(!Number.isFinite(j)||j<0||j>=1e15))return Nn(j.toFixed(x.decimals),x.decimals)},[b,C.token,Ye,Pe,mt,gt,qe,ct,ft,x.decimals]),Op=re(async()=>{if(!b||!k||D||J)return null;const P=st.current;try{const j=await $a("max");return!et.current||!st.current.enabled||st.current.key!==P.key||st.current.owner!==P.owner?null:j.fundingPlan?Le(j.fundingPlan.totalBudget,x.decimals):null}catch{return null}},[b,k,D,J,$a,x.decimals]),da=re(async(P,j,$)=>{if(b)return $a(Nn(r,x.decimals),P);if(z){if(!_||!W)throw new Error("Connect the external wallet before continuing.");return Fh({selectedAsset:j?.selectedAsset??W,destinationToken:h,paymentAmount:E?r:void 0,account:_,beneficiary:e.recipient,buildActionCalls:ce,feeExecutionMode:c})}const Ie={...$??{...yr,selectedAsset:ia},requestTimestampMs:Date.now()};if(v&&W&&kt(W.asset)&&!Zt)throw new Error("The combined source balance and reservations are unavailable. Refresh before submitting.");const me={combineSourceBalances:v,combinedSourceGroup:Zt,getCombinedSourceGroup:vt,signal:P,feeToleranceBps:L,externalGasRecipient:te?_:void 0,externalGasCalls:te?async pe=>(await Ou({quote:pe,recipient:_,beneficiary:e.recipient,chainId:h.chainId,token:h.address,feeExecutionMode:c,buildCalls:s})).calls:void 0,feeOnlyAction:e.feeOnlyAction,actionInput:e.actionInput,actionProceeds:tu(e.actionProceeds),actionProceedsCandidates:e.actionProceeds&&e.actionProceeds!=="output"&&!("token"in e.actionProceeds)?e.actionProceeds.resolve:void 0,feeFunding:e.feeFunding,feeFundingBalances:vn,feeFundingError:Pe,feeFundingReserve:e.feeFundingReserve,liquidityVenues:F?.liquidityVenues,maxSlippage:e.maxSlippage,resolveExactOutputSwap:u,selectedAsset:ia,isPayMode:E,isFeeInclusiveInput:I,quotedInclusivePlatformFee:e.quotedInclusivePlatformFee,parsedAmount:ao?Number(ia.amount):Eo,needsSwap:Lt.needsSwap,exactOutputSwap:Lt.exactOutputSwap,isNon7702:N,isSourceDestToken:Oe,currentPaymentAmount:r,destinationToken:h,feeExecutionMode:c,resolvedTokenIn:Lt.resolvedTokenIn,embeddedWalletAddress:Fe,providerEmbeddedAddress:ae,resolvedChainId:T,isConnected:q,address:U,ready:X,authenticated:K,quoteOnly:!!e.quoteOnlyAccount,isDirect:Lt.isDirect,resolvedSwap:Lt.resolvedSwap,sourceSwap:Lt.sourceSwap,sourceExactOutputSwap:Lt.sourceExactOutputSwap,pivot:Lt.pivot,isQuoting:Lt.isQuoting,executionTokenAddress:ca,buildPayChainBatches:pe=>na(Ie,pe),buildSupplyChainBatches:pe=>Ps(Ie,pe),estimate:oe,...j},Te=!me.feeOnlyAction&&me.selectedAsset&&Ht&&(me.selectedAsset.asset._source==="wallet"||!!me.combinedSourceGroup)&&me.selectedAsset.asset.chainId===T;if(Ht&&!me.feeOnlyAction&&me.selectedAsset&&!Te&&e.feeFunding&&e.feeFunding.join(",")!==Us.join(","))throw new Error("Fee-source overrides require a wallet source on the action chain.");if(Te&&Rn&&!y){const pe=await Vo(me);if(pe&&pe.preview.gasFee+pe.preview.spicenetFee+(pe.preview.bridgeFee??0n)>0n)return pe}return Te||Ht&&e.actionProceeds==="output"?mu(me,Ie,Vo,e.actionProceeds==="output"):Vo(me)},[b,$a,x.decimals,W,e.quoteOnlyAccount,Ht,Rn,y,v,Zt,vt,kt,ia,ao,z,te,s,_,e.recipient,ce,e.feeOnlyAction,e.actionInput,e.actionProceeds,e.feeFunding,e.quotedInclusivePlatformFee,vn,Pe,e.feeFundingReserve,e.maxSlippage,u,L,F?.liquidityVenues,E,I,Eo,Lt,N,Oe,r,h,c,Fe,ae,yr,oe,T,q,U,X,K,ca]);we(()=>{no.current=da},[da]);const ni=re(async P=>{if(E)return null;if(!W||ke(P)!==ke(W.asset)||!Qt||!so)throw new Error("Select a source before calculating Max.");let j=ye(P);if(j===void 0)throw new Error("This source is unavailable.");if(z){if(!P.isNative&&!Ae(P.address))return Le(j,P.decimals);const $=Rt(P.chainId),Ie=_;let me=j;for(let Te=0;Te<8;Te++){const pe=await da(void 0,{selectedAsset:{asset:P,amount:Le(Te===0?1n:me,P.decimals)}});if(!pe?.actionDefinition)throw new Error("The direct action could not be sized.");const Qe=await Mu({client:$,account:Ie,calls:pe.actionDefinition.calls}),Ft=j>Qe?j-Qe:0n;if(Ft===0n)return"0";if(Te>0&&me<=Ft)return Le(me,P.decimals);me=Ft}throw new Error("Network gas could not be reserved for Max. Enter a smaller amount.")}if(V&&(P.isNative||Ae(P.address))){if(!_)throw new Error("Connect the source wallet before calculating Max.");const $=await Pu({client:Rt(P.chainId),account:_,recipient:Qt,token:P.address,isNative:!0,amount:1n});j-=$}return y&&I&&P._source==="wallet"&&P.chainId===T?Le(j>0n?j:0n,P.decimals):xu({balance:j,decimals:P.decimals,planForAmount:async $=>{const Ie={...yr,requestTimestampMs:Date.now(),selectedAsset:{asset:P,amount:Le($,P.decimals)}};let me=$;jt?(Ie.sourceSwap=await Wa({chainId:P.chainId,recipient:Qt,tokenIn:P.address,tokenOut:jt.source.address,amountIn:$,maxSlippage:e.maxSlippage,liquidityVenues:F?.liquidityVenues,resolveInputSwap:e.resolveInputSwap}),me=tn(Ie.sourceSwap.amountOutMinimum,jt.source.decimals,jt.destination.decimals,"floor")):me=Bn($,P.decimals,await zo(P,so,T,h)),Ie.resolvedSwap=jo?await Ie.resolveInputSwap(me):null,Ie.swapInputAmount=me,Ie.quoteAmountOut=Ie.resolvedSwap?.amountOut??me;const Te=Ht&&P._source==="wallet"&&P.chainId===T,pe=await da(void 0,{selectedAsset:Ie.selectedAsset,...Te?{isFeeInclusiveInput:!0}:{},parsedAmount:Number(Ie.selectedAsset.amount),sourceSwap:Ie.sourceSwap,resolvedSwap:Ie.resolvedSwap,isQuoting:!1,buildSupplyChainBatches:Qe=>Ps(Ie,Qe)},Ie);return Te&&pe?.fundingSource?.kind==="input"&&!I?{...pe,sourceSpendCap:$+($-pe.swapInputAmount)}:pe}})},[W,Ht,y,yr,E,z,Qt,so,T,h,V,_,jt,jo,da,ye,e.maxSlippage,e.resolveInputSwap,e.actionProceeds,e.feeFunding,e.quotedInclusivePlatformFee,I,F?.liquidityVenues]),Bp=JSON.stringify([io,nr,St,W?.asset,e.feeFundingReserve,e.actionExecution?.recoveryKey,jo,so,jt,k,J,D],(P,j)=>typeof j=="bigint"?j.toString():j),Qc=Z(ni);Wo(()=>{Qc.current=ni},[ni]);const jc=re(P=>Qc.current(P),[Bp,ce,l,u,e.resolveInputSwap,typeof e.actionProceeds=="object"?e.actionProceeds.resolve:void 0,oe]);Ui({shouldRun:k&&!ge&&_t==="idle"&&(la||ao)&&!Lt.isQuoting&&!_e&&(!!or||ao),deps:[k,ge,_t,la,Ja,Lt.isQuoting,or,_e,ao,io],onSkip:()=>{if(!k){Kn.current=null,Cn(!1),wn(!1),En(null),fn(null);return}if(ge||_t!=="idle"){Cn(!1);return}if(!la){fn(null),Cn(!1),wn(!1),En(null);return}Lt.isQuoting&&(Cn(!1),wn(!1))},onCleanup:()=>Cn(!1),delayMs:Lt.needsSwap||Lt.pivot?0:100,backgroundIntervalMs:3e4,run:async({isBackground:P,isCurrent:j,signal:$})=>{if(ao){const me=Kn.current;if(me?.scope===io&&Date.now()-me.at<3e4||Tn.current?.scope===io&&Date.now()-Tn.current.at<3e4)return;Tn.current?.controller.abort();const Te=new AbortController,pe=no.current?.(Te.signal).then(Qe=>{Te.signal.aborted||Wc.current!==io||!Qe?.feeEstimate||(Kn.current={scope:io,at:Date.now(),feeEstimate:Qe.feeEstimate,sourceGasSkim:Qe.sourceGasSkim})}).catch(Qe=>{Te.signal.aborted||console.debug("[SpiceSupply] fee prewarm unavailable:",Qe)})??Promise.resolve();Tn.current={scope:io,at:Date.now(),controller:Te,promise:pe},await pe;return}const Ie=or;P||(En(null),Cn(!0));try{if(Tn.current?.scope===io&&await Tn.current.promise,$.aborted||!j())return;const me=Kn.current,Te=!E&&me?.scope===io&&Date.now()-me.at<3e4?me:void 0;let pe;try{pe=await no.current?.($,Te?{initialFeeEstimate:Te.feeEstimate,initialSourceGasSkim:Te.sourceGasSkim}:void 0)}catch(Qe){if(!Te||$.aborted||!j())throw Qe;pe=await no.current?.($)}if(!j())return;if(pe&&Ie){const Qe=te?await Ou({quote:pe,recipient:_,beneficiary:e.recipient,chainId:h.chainId,token:h.address,feeExecutionMode:c,buildCalls:s}):void 0;if(Qe&&pe.externalGasReserve?.nativeAmount&&(Qe.calls.length>pe.externalGasReserve.currentTransactions||Qe.calls.reduce((Ft,It)=>Ft+It.value,0n)>pe.externalGasReserve.currentValue))throw new Error("The external action gas requirement changed. Refresh the quote.");if($.aborted||!j())return;ln.current={key:Ie,quote:pe,externalAction:Qe},pe.feeEstimate&&(Kn.current={scope:io,at:Date.now(),feeEstimate:pe.feeEstimate,sourceGasSkim:pe.sourceGasSkim}),fn(pe.preview),wn(!0)}else ln.current=null,fn(null),wn(!1);En(null)}catch(me){if(!j())return;if(P&&ln.current?.key===Ie){console.warn("[SpiceSupply] fee refresh failed:",me);return}const Te=Ln(me,"Unable to calculate fees for this action.");ln.current=null,fn(me instanceof qs?me.preview:null),wn(!1),Gn.current=Ie,En(Te)}finally{j()&&Cn(!1)}}});const Gc=re(()=>Xa(!0),[Xa]);we(()=>{if(!Yn||oo.current===Yn)return;oo.current=Yn;const P=Dt.current;Ao.current=!0,Va(!0),mr(null),Promise.resolve().then(()=>P?.(Yn)).then(()=>{tr(Yn),Ue(),be()}).catch(j=>{mr(`Transaction confirmed; application update needs retry: ${Ln(j,"Unable to finalize the action")}`)}).finally(()=>{Ao.current=!1,Va(!1)})},[Yn,_s]);const Kc=Zn&&!ro,Rp=re(()=>{!ee.current||Ao.current||(oo.current=null,Nr(P=>P+1))},[]),Dp=re(()=>{if(ee.current)return;const P=le.current?.progress;P?.submissionStatus==="unknown"||P?.actionId&&P.step!=="success"||(pn(!1),kn(null),ho.current=!1,Ue(),be())},[Ue,be]),Ze=or&&ln.current?.key===or?ln.current.quote:null,xr=Ze?ln.current?.externalAction:void 0,Mp=hn.current,vr=(P=!0)=>{if(J)throw new Error(J);if(!et.current||!st.current.enabled||st.current.key!==Wn||hn.current!==Mp||st.current.walletScope!==nr||!st.current.policyAvailable)throw new Error("The source, amount, beneficiary or configuration changed. Review the form before continuing.");if(te&&!st.current.externalSignerReady)throw new Error("Connect the external wallet before funding.");const j=Ze?.externalGasReserve?.fundingSource;if(P&&j){const $=st.current.physicalAssets.find(Ie=>ke(Ie)===ke(j.asset));if(!$||$.balanceError||$.balanceStatus||$.balance<j.amount||$._source!=="wallet"||jr($)||$.owner&&!G($.owner,st.current.owner))throw new Error("The gas reserve source balance changed. Refresh the quote before submitting.")}if((W||e.feeOnlyAction||b)&&!Ze)throw new Error("A current action plan is required. Refresh the quote before submitting.");if(P&&Ze?.fundingPlan){const $=Ze.fundingPlan;if(Vc($.sources.map(Te=>Te.asset),st.current.physicalAssets),!G($.owner,st.current.owner)||!G($.token.address,x.address)||$.token.chainId!==x.chainId||$.token.decimals!==x.decimals||$.totalBudget!==Nn(r,x.decimals))throw new Error("The accepted account funding plan changed. Review again.");for(const Te of Ze.batches??[])if(!(Te.domain!=="spicenet"&&!Lo(Te.chainId)))for(const pe of Te.calls){const Qe=Jn({abi:us,data:pe.data});if(Qe.functionName!=="createWithdrawalRequest"||Qe.args[0].exp<=BigInt(Math.floor(Date.now()/1e3)))throw new Error("The accepted withdrawal expired. Refresh before funding this purchase.")}const Ie=new Set(JSON.parse(mt)),me=new Set;for(const Te of $.sources){const pe=st.current.physicalAssets.find(Ft=>ke(Ft)===Te.positionId),Qe=pe?.location==="rollup"?st.current.combinedCash?.scope===st.current.combinationScope?st.current.combinedCash.balances[Te.positionId]:void 0:pe?.balance;if(!pe||me.has(Te.positionId)||!Ie.has(Te.positionId)||!Ua(pe,$.owner,$.token)||!Bo(pe,"spend-source",{...F,isWhitelistGateActive:O},x,S).eligible||pe.chainId!==Te.chainId||pe.decimals!==Te.decimals||!G(pe.address,Te.token)||!G(Te.owner,$.owner)||Te.sourceSpendCap<=0n||Qe===void 0||Te.sourceSpendCap>Qe)throw new Error("A funding source balance, owner or policy changed. Review again.");me.add(Te.positionId)}if(!me.size)throw new Error("The accepted funding sources are unavailable.")}if(P)for(const $ of[Ze?.sourceAllocation,Ze?.feeSourceAllocation]){if(!$)continue;const Ie=$.positions.find(Te=>Te.asset.location==="rollup"),me=st.current.combinedCash?.balances[Ie.positionId];if(me===void 0||st.current.combinedCash?.scope!==st.current.combinationScope)throw new Error("The combined source reservations are unavailable. Refresh before submitting.");Ns($,st.current.physicalAssets,st.current.owner??void 0,T,me)}if(z&&W?.asset.owner&&!G(W.asset.owner,_))throw new Error("Reconnect the external wallet that owns the selected asset.");if(P&&W&&(Ze?.sourceSpendCap??0n)>st.current.sourceBalance)throw new Error("The source balance changed. Review the available amount before continuing.");if(P&&W&&!st.current.sourceEligible)throw new Error(Ce?.reason??"This source is unavailable.");if(P)for(const $ of[Ze?.sourceAllocation,Ze?.feeSourceAllocation])$&&Ns($,st.current.physicalAssets,st.current.owner??void 0,T)},Yc=async()=>{if(vr(),Ze?.fundingPlan){const j=Ze.fundingPlan;for(const $ of j.sources){if($.asset.location!=="rollup")continue;const Ie=await er(j.owner,j.token.chainId,j.token.address);if(vr(),!Ie.entries.some(me=>me.receiptToken===$.asset.receiptTokenId&&me.decimals===$.asset.receiptTokenDecimals)||tn(Ie.available,j.token.decimals,$.decimals,"floor")<$.sourceSpendCap)throw new Error("The cash receipt balance or reservations changed. Review again.")}return}const P=Ze?.sourceAllocation;for(const j of[P,Ze?.feeSourceAllocation]){if(!j)continue;const $=await er(j.owner,j.chainId,j.token);vr();const Ie=await Rt(j.chainId).readContract({address:j.token,abi:pt,functionName:"balanceOf",args:[j.owner]});vr();const me=st.current.physicalAssets.map(pe=>pe.location==="embedded"&&ke(pe)===j.positions.find(Qe=>Qe.asset.location==="embedded")?.positionId?{...pe,balance:Ie}:pe),Te=j.positions.find(pe=>pe.asset.location==="rollup");if(!$.entries.some(pe=>pe.receiptToken===Te.asset.receiptTokenId&&pe.decimals===Te.asset.receiptTokenDecimals))throw new Error("The cash receipt mapping changed. Refresh before submitting.");Ns(j,me,j.owner,j.chainId,tn($.available,j.decimals,Te.asset.decimals,"floor"))}if(!P){const j=W?.asset.location==="rollup"?W.asset:Ze?.fundingSource?.asset?.location==="rollup"?Ze.fundingSource.asset:void 0;if(!v||!j)return;const $=fo(j,T);if(!$)throw new Error("The cash receipt mapping is unavailable. Refresh before submitting.");const Ie=await er(Qt,T,$),me=await zo(j,$,T,h);vr();const Te=Ze?.fundedFeeToken&&Ze.fundingSource?.asset?.location==="rollup"?tn(Ze.grossFundingAmount??0n,Ze.fundedFeeToken.decimals,j.decimals,"ceil"):Ze?.sourceSpendCap??0n;if(!Ie.entries.some(pe=>pe.receiptToken===j.receiptTokenId&&pe.decimals===j.receiptTokenDecimals)||tn(Ie.available,me,j.decimals,"floor")<Te)throw new Error("The cash balance or reservations changed. Refresh before submitting.");return}},ua=async()=>Yc(),Zc=P=>({...P,sourceSpendCap:Ze?.sourceSpendCap,minimumDestinationAmount:Ze?.destinationAmount}),_a=Ze?.sourceAllocation?.insufficient||Ze?.feeSourceAllocation?.insufficient?!0:W&&Ze?.sourceSpendCap!==void 0?Ze.sourceSpendCap>$e:Fp,Xc={...yr,resolvedSwap:Ze?.destinationSwap??yr.resolvedSwap,swapInputAmount:Ze?.swapInputAmount??yr.swapInputAmount};let Ur=!1;rt.current={selectedAsset:W,parsedAmount:Eo,currentPaymentAmount:r,isInsufficientBalance:_a,isPayMode:E,isFeeInclusiveInput:I,quotedInclusivePlatformFee:e.quotedInclusivePlatformFee,feeOnlyAction:e.feeOnlyAction,actionProceeds:tu(e.actionProceeds,Ze?.fundingSource?.kind==="proceeds"?Ze.fundingSource.token:void 0),validateFeeQuote:()=>vr(!Ur),isNon7702:N,directExternalAction:z,isSourceDestToken:Oe,needsSwap:jo,exactOutputSwap:Ga,selectedIsEquivalent:Cp,resolvedTokenIn:so,sourceSwap:Ka,sourceExactOutputSwap:Ya,pivot:jt,embeddedWalletAddress:Fe,providerEmbeddedAddress:ae,externalWallet:ve,externalWalletAddress:_,activeSignerWallet:ie,activeSignerAddress:ne,address:U,isConnected:q,ready:X,authenticated:K,provider:Q,resolvedChainId:T,executionTokenAddress:ca,destinationToken:h,buildActionCalls:ce,feeExecutionMode:c,feeToleranceBps:L,buildSpicenetBatch:l,onPayExecute:d,onSuccess:w,feeQuote:Ze,execution:{estimate:(P,j,$,Ie)=>oe(P,j,$,{...Ie,userOverride:Qt}),execute:async(P,j,$,Ie,me,Te)=>{const pe=zn.current,Qe=Hn.current;let Ft;const It=Ie;if(Ie=Tt=>{Tt.actionId&&(Qe.accepted=!0,Ft=Tt.actionId),It?.(Tt)},!me){const Tt=new AbortController;fe.current=Tt,me=Tt.signal}const Go=me,Xn=()=>et.current&&st.current.enabled&&st.current.walletScope===nr&&zn.current===pe&&!Go.aborted,Dn=()=>new xe("ABORT","Execution observation retired"),No=async Tt=>{if(Qe.accepted&&!Xn())throw Dn();return new Promise((an,Mt)=>{const yn=()=>{Qe.accepted&&Mt(Dn())};Go.addEventListener("abort",yn,{once:!0}),Tt().then(go=>{!Qe.accepted||Xn()?an(go):Mt(Dn())},Mt).finally(()=>Go.removeEventListener("abort",yn))})},ar=async()=>Ur?vr(!1):Yc();if(await ua(),await gu(Ze?.externalGasReserve),te&&!xr)throw new Error("The external action plan is unavailable.");if(z){if(!Ze?.actionDefinition)throw new Error("The direct action plan is unavailable.");return pc({definition:Ze.actionDefinition,account:_,chainId:h.chainId,wallet:ve,assertCurrent:ua})}const sr=new kr;if(sr.setBaseUrl(At),te&&!await sr.supportsExternalExecution())throw Error("This API cannot yet record the external wallet action. No source funds were sent.");let Gt=!1;try{V&&W&&(Ut("Transfer the selected source to your embedded wallet"),await Uu({asset:W.asset,embedded:Qt,external:_,externalWallet:ve,amount:Ze?.sourceSpendCap??0n,assertCurrent:ua,observer:{onSending:()=>{Gt=!0},onRejected:()=>{Gt=!1},onReverted:()=>{Gt=!1}}}),Ur=!0,await ar()),le.current?.scope===We&&(le.current.batches=P.map(it=>({...it})));const Tt=[P,j,$,te?it=>Ie?.(it.step==="success"?{...it,step:"executing",message:"Funds delivered. Confirm the action in your external wallet.",txHash:void 0}:{...it,txHash:void 0}):Ie,me,{...Te,userOverride:Qt,requireDestinationReceipt:!0,...te?{externalExecution:{chainId:h.chainId,executor:_,inputToken:h.address,inputAmount:xr.amount.toString(),recoveryKey:e.actionExecution.recoveryKey,calls:xr.calls.map(it=>({to:it.to,data:it.data,value:it.value.toString()}))}}:{},resolveActionOutputCredits:async()=>[...await Te?.resolveActionOutputCredits?.()??[],...Ze?.actionOutputCredits??[],...Ze?.fundingPlan?.sources.flatMap(it=>it.asset.location==="embedded"&&it.swap?[{chainId:it.chainId,token:it.pivotToken.address,amount:it.amountOutMinimum}]:[])??[],...Ze?.externalGasReserve?.nativeAmount&&!Ae(Ze.externalGasReserve.fundingSource?.token??ca)?[{chainId:T,token:zt,amount:Ze.externalGasReserve.nativeAmount}]:[]],walletFundingRequirements:Ze?ic(Ze,W):void 0,validateBeforeSubmit:async it=>{if(await ar(),await gu(Ze?.externalGasReserve,it),await Te?.validateBeforeSubmit?.(it),te&&Bu(it,h.address,h.chainId,_)!==xr.amount)throw new Error("The external delivery changed. Review the quote before continuing.")}}],an=()=>Y(...Tt);let Mt,yn=0;for(;;)try{Mt=await No(an);break}catch(it){if(Qe.accepted&&!Xn())throw Dn();if(!(it instanceof xe)||it.context.submissionStatus!=="accepted"||it.code==="ON_CHAIN_REVERT"||it.code==="ABORT")throw it;Qe.accepted=!0,Ie?.({step:"executing",message:"Your action was accepted. Confirming the original transaction...",actionId:it.context.actionId,intentId:it.context.intentId}),await No(()=>Io(Math.min(1e3*2**Math.min(yn++,5),3e4)))}if(!te)return Mt;Ur=!0;const go=async()=>{if(me?.aborted)throw new Error("Execution transaction aborted");await ar()};if(await go(),await Lh({hash:Mt,token:h.address,chainId:h.chainId,recipient:_,sender:Qt,amount:xr.amount}),await go(),!Ft)throw Error("The original external action identity is unavailable. Check its status before continuing.");const Ir=await pc({definition:xr,account:_,chainId:h.chainId,wallet:ve,assertCurrent:go,originalAction:{actionId:Ft,service:sr}}),On=le.current;return On?.scope===We&&On.progress&&(On.progress={...On.progress,step:"success",txHash:Ir,message:"Transaction confirmed"},Uc(On.progress)),Ir}catch(Tt){const an=Tt instanceof xe&&(Tt.context.submissionStatus==="unknown"||Tt.context.submissionStatus==="accepted");throw et.current&&st.current.enabled&&zn.current===pe&&st.current.walletScope===nr&&(an||Ur||Gt)&&Un(ei),Gt&&!Ur?new xe("SUBMISSION_UNKNOWN","The wallet transfer outcome is unknown. Close this action and check your activity and balances before continuing.",{submissionStatus:"unknown",cause:Tt}):(Ln(Tt),Tt)}},buildPayChainBatches:async P=>Ws(await na(Xc,Zc(P)),Ze?.externalGasReserve),buildSupplyChainBatches:async P=>Ws(await Ps(Xc,Zc(P)),Ze?.externalGasReserve),onProgress:Uc},ui:{setError:Vt,setStep:un,setStatusMsg:Ut,setTxHash:Bt,setIsExecuting:yt,setShowStatusPanel:pn,setPaymentResult:kn},refs:{spiceDepositSubmittedRef:ho,abortControllerRef:fe}};const Wr=!!e.isZeroAmountPay&&!e.feeOnlyAction&&E&&Eo===0,Np=b?Eo>0&&!!Ze?.fundingPlan&&!!Ze.batches?.length&&!ge&&ut&&!mo&&!ti:E?(Wr||!!W?.asset||!!e.actionProceeds||!!e.feeOnlyAction)&&Eo>=0&&!_a&&!ge&&(Wr||Ja||ut)&&!mo&&(Wr||e.feeOnlyAction||!jo||!!Ga)&&(Wr||e.feeOnlyAction||!jt||!!Ya)&&!ti:!!W?.asset&&Eo>0&&!_a&&!ge&&(z||ut)&&!mo&&!Hc&&(jt?!!Ka&&!Mc&&(Pc||!!ja):Sp||Pc||!!ja&&!Mc)&&!ti,Jc=!e.quoteOnlyAccount&&(z||X&&K&&q&&!!U)&&!J&&!Za&&!!Qt&&(!te||!!xr&&!!ve&&!!_)&&(!z||!!ve&&(!W?.asset.owner||G(W.asset.owner,_)))&&(R==="7702"||!!_)&&!Zn&&!Do&&!ro&&k&&Np&&(Wr||b&&!!Ze?.fundingPlan||!W&&(!!e.actionProceeds||!!e.feeOnlyAction)||!!Ce?.eligible)&&!(Yn&&le.current?.key===Wn)&&!Pr.quoteError&&(Wr||!!or&&ln.current?.key===or);qn.current=Jc;const Pp=Jc&&kp&&!e.submitDisabled&&!De&&!Et.current,pa=re(async()=>{if(st.current.quoteOnly||Et.current||ee.current)return;const P=le.current?.scope===We?le.current:void 0,j=Pt.scope===We?Pt.externalActionId??(P?.routedExternal?P.progress?.actionId:void 0):void 0;if(!j||!ve||!_||!e.actionExecution)return;const $=zn.current,Ie=st.current.walletScope,me=()=>{if(!et.current||!st.current.enabled||st.current.quoteOnly||st.current.walletScope!==Ie||zn.current!==$||on.current!==We||!st.current.policyAvailable)throw Error("The original action wallet or application scope changed. Check status before continuing.")};Et.current=!0,br.current=!1,yt(!0),pn(!0),Jt(null),Ut("Checking your transaction and wallet balances...");const Te=new kr;Te.setBaseUrl(At);try{me(),await be(),me();const pe=await Te.getExternalExecution(j);if(me(),pe.recoveryKey!==e.actionExecution.recoveryKey||pe.chainId!==T||!G(pe.executor,_))throw Error("The original external action belongs to another wallet, chain or application action.");const Qe=await pc({definition:{amount:BigInt(pe.inputAmount),context:{userAddress:_,executorAddress:_,chainId:pe.chainId,destinationToken:pe.inputToken},calls:pe.calls.map(Ft=>({to:Ft.to,data:Ft.data,value:BigInt(Ft.value)}))},account:_,chainId:pe.chainId,wallet:ve,assertCurrent:me,originalAction:{actionId:j,service:Te,resume:!0}});me(),Dt.current=w,Bt(Qe),un("success"),Ut("Transaction confirmed"),kn(Ft=>Ft&&{status:"success",txHash:Qe}),P?.progress&&(P.progress={...P.progress,step:"success",txHash:Qe,submissionStatus:void 0}),mn(Ft=>({...Ft,scope:We,pending:!1,error:null,externalExecution:void 0,externalActionId:void 0}))}catch(pe){if(et.current&&on.current===We){const Qe=Ln(pe,"Unable to continue the original wallet action");Jt(Qe),un("error"),In.current?.(new Error(Qe),Hr(Qe))}}finally{Et.current=!1,et.current&&on.current===We&&(yt(!1),await So())}},[Pt.scope,Pt.externalActionId,We,At,ve,_,e.actionExecution?.recoveryKey,T,w,So,be]),rr=e.enabled!==!1&&!e.quoteOnlyAccount&&k&&!J&&!Zn&&!Do&&!ro&&Ke&&!!Pt.externalActionId&&!Mo&&!ge&&!De&&!!ve&&!!_&&!!e.actionExecution&&!!Pt.externalExecution&&Pt.externalExecution.executionMode!=="wallet-envelope"&&["unsubmitted","prepared","submitted","reverted"].includes(Pt.externalExecution.calls.find(P=>P.status!=="confirmed")?.status??""),$c=(Pp||rr)&&!e.submitDisabled&&!Et.current&&!ee.current;br.current=$c;const _c=re(async()=>{if(rr){br.current&&await pa();return}await zc(),le.current?.routedExternal&&await So()},[rr,pa,zc,So]),el=re(async()=>{if(rr){br.current&&await pa();return}await Gc(),le.current?.routedExternal&&await So()},[rr,pa,Gc,So]),fa=re(()=>{if(ee.current||Za)return;const P=le.current?.scope===We?le.current.progress:void 0;if(ht||Mo||wr||P?.submissionStatus==="unknown"||P?.actionId&&P.step!=="success"){So();return}br.current=!1,ln.current=null,wn(!1),Qa.refreshQuote(),un("idle"),Vt(null),Ut(""),kn(null),pn(!1)},[Qa.refreshQuote,Vt,ht,Mo,wr,We,So,Za]);we(()=>{Yn&&!Zn&&!Do&&!ge&&le.current&&le.current.key!==Wn&&!ht&&!Mo&&!wr&&(fa(),Bt(null))},[Yn,Zn,Do,ge,Wn,ht,Mo,wr,fa]);const tl=Z(Wn);we(()=>{const P=tl.current!==Wn;tl.current=Wn,(P||ai(nn))&&_t==="error"&&!ge&&le.current&&le.current.key!==Wn&&fa()},[Wn,_t,ge,nn,fa]);const Up=re(()=>{pn(!1)},[]),Wp=re(()=>{if(ee.current)return;const P=le.current?.progress;P?.submissionStatus==="unknown"||P?.actionId&&P.step!=="success"||(un("idle"),Bt(null),Ue())},[Ue]),rn=Ze??(ln.current?.key.startsWith(`${Wn}|`)?ln.current.quote:null)??(le.current?.key===Wn?le.current.quote:null),Lp=async P=>{if(e.quoteOnlyAccount)throw new Error("A preview cannot fund an action.");if(Za)throw new Error("Check your activity and balances before funding another action.");if(z)throw new Error("This source executes directly from the external wallet; submit the action without embedded funding.");if(!(!V||!W)){if(!Ze||P!==Ze.sourceSpendCap)throw new Error("Use the displayed source funding maximum before preparing this action.");await ua(),await Uu({asset:W.asset,embedded:Qt,external:_,externalWallet:ve,amount:P,assertCurrent:ua})}};return{operationKey:Wn,feeQuote:rn,selectedAsset:qt,capability:Ce,assets:{getAvailableBalance:ye,fundingSources:qe,selectable:nt,displayAssets:nt,filteredSpiceAssets:Xe,embeddedWalletAddress:Fe,externalAddress:_,isNon7702:R!=="7702",refreshSpiceAssets:Ue,refreshWalletAssets:be,loading:Ye,refreshing:Be,error:Pe},quote:{...Pr,...ao?{quoteKey:null,quoteExpiresAt:null,quoteError:null,isQuoting:!1,estimatedInput:null,estimatedOutput:null,quoteAmountOut:null,inputAmount:null,resolvedSwap:null,sourceSwap:null,exactOutputSwap:null,sourceExactOutputSwap:null}:{},hasSourceConversion:!!jt,executionInput:jt&&rn?{address:jt.destination.address,chainId:jt.destination.chainId,decimals:jt.destination.decimals,amount:rn.preview.netAmount}:null,...rn?.destinationSwap?{resolvedSwap:rn.destinationSwap,inputAmount:rn.swapInputAmount,estimatedOutput:Le(rn.destinationSwap.amountOut,h.decimals)}:{},...rn?.fundedFeeToken&&rn.destinationAmount!==void 0?{estimatedOutput:Le(rn.destinationAmount+(rn.destinationSwap?rn.destinationSwap.amountOut-rn.destinationSwap.amountOutMinimum:0n),h.decimals)}:{}},fees:{externalGasReserve:rn?.externalGasReserve,fundingConversion:rn?.fundingConversion,fundingSource:rn?.fundingSource,proceedsUsed:rn?.proceedsUsed,fundingShortfall:rn?.grossFundingAmount,source:jt&&rn?{address:jt.source.address,chainId:jt.source.chainId,symbol:jt.source.symbol,decimals:jt.source.decimals,gasFee:rn.sourceGasSkim??0n,spicenetFee:0n}:null,destinationAmount:rn?.destinationAmount,sourceSpendCap:rn?.sourceSpendCap,preview:ao?null:rn?.preview??eo,isLoading:!ao&&(to||_e),ready:!ao&&!!Ze,error:ao||_e||wt&&Gn.current!==or?null:mo},amount:{availableBalance:b?Tp:Je,sourceRequiredAmount:rn?.sourceSpendCap??null,parsed:Eo,isInsufficientBalance:_a,sourceBalance:Ep,feesExceedAmount:Hc},status:{activity:$t,pending:ht,recoveryChecking:Mo,recoveryError:wr,canResumeExternalAction:rr,canRetry:rr,actionId:at?.actionId??(Ke?Pt.action?.actionId:void 0),intentId:at?.intentId??(Ke?Pt.action?.intents[0]?.intentId:void 0),autoContinue:at?.autoContinue??(Ke?Pt.action?.autoContinue:void 0),submissionStatus:at?.submissionStatus,idempotencyKey:at?.submissionStatus==="unknown"?at.idempotencyKey:void 0,user:at?.user??(Ke?Pt.action?.user:void 0),finalizing:Do||Kc,finalizationError:ro,step:Zn&&_t==="success"?"executing":_t,statusMsg:rr?"Try again to finish with the funds already in your wallet.":Mo?"Checking previous action status...":ht?wr??"A previous transaction is still pending. Check its status before submitting again.":Zn?ro??"Transaction confirmed. Updating application...":en,txHash:lt,isExecuting:ge||De||Kc,error:J||ro||nn||Ce?.reason||null,showStatusPanel:Ro,paymentResult:Zn&&Vn?.status==="success"?{...Vn,status:"processing"}:Vn},flags:{directExecutionFeeNote:Ja},retryFinalization:Rp,refreshStatus:So,resumeExternalAction:pa,fundEmbeddedSource:Lp,canExecute:$c,submit:E?el:_c,submitSupply:_c,submitPay:el,retrySupply:fa,dismissPaymentStatus:Up,resolveMaxAmount:jc,max:()=>b?Op():W?jc(W.asset):Promise.resolve(null),resetAfterSuccess:Wp,resetPaymentState:Dp}}function Gh(e){const{asset:t,amount:n,recipient:o,owner:r,onSuccess:a}=e,i=!!t&&!!e.destination&&e.destination.chainId!==t.chainId,s=e.destination?.chainId??t?.chainId??e.sourceChains?.[0]??0,c=Ee(()=>ir(s).find(v=>v.equivalenceGroup==="USDC"),[s]),l=re((v,C)=>{const x=!i&&v===0n?n:v;if(!t||n<=0n||n>t.balance||!i&&x>n||!o||!r||G(r,o))throw new Error("Enter a valid withdrawal amount and recipient.");if(C.chainId!==s||!G(C.executorAddress??C.userAddress,r))throw new Error("The withdrawal wallet or network changed. Review the withdrawal again.");if(i&&(!e.destination||e.destination.symbol!=="USDC"||v<=0n))throw new Error("A USDC withdrawal quote is required for this network.");return Ds(s,i?e.destination.address:t.address,[{recipient:o,amount:x}]).calls},[t?.address,t?.chainId,t?.balance,n,o,r,s,i,e.destination?.address,e.destination?.symbol]),d=Ee(()=>t?[{address:t.address,chainId:t.chainId,symbol:t.symbol,decimals:t.decimals,logoURI:t.logoURI}]:void 0,[t?.address,t?.chainId,t?.symbol,t?.decimals,t?.logoURI]),u=La({enabled:e.enabled&&!!c&&!!t&&n>0n&&!!o&&!!r&&!G(r,o),amountDirection:"input-inclusive",quotedInclusivePlatformFee:!0,feeFunding:Us,destinationToken:e.destination??{address:t?.address??zt,symbol:t?.symbol??"",decimals:t?.decimals??6,chainId:s},recipient:o,selectedAsset:t?{asset:t,amount:Le(n,t.decimals)}:null,additionalSourceTokens:d,sourceChains:e.sourceChains,includeCrossChainEmbeddedAssets:!0,includeExternalWalletAssets:!1,feeExecutionMode:i?"user-transfer":"backend-transfer",buildActionCalls:l,buildSpicenetBatch:Zr,onError:(v,C)=>e.onError?.(v.message,C),onSuccess:async()=>{if(!t)return;const v=u.fees.destinationAmount;if(i&&(v==null||v<=0n))throw new Error("The confirmed withdrawal amount is unavailable.");window.dispatchEvent(new CustomEvent("withdraw-completed")),await a?.({token:i?"USDC":t.symbol,amount:Le(i?v:n,i?e.destination.decimals:t.decimals),chainId:s})}}),p=`${e.enabled}:${t?.chainId}:${t?.address}:${n}:${o}:${r}:${s}:${e.destination?.address}`,w=Z(p);we(()=>{w.current===p||u.status.isExecuting||(w.current=p,(u.status.step==="success"||u.status.paymentResult?.status==="success")&&u.resetAfterSuccess())},[p,u.status.isExecuting,u.status.step,u.status.paymentResult?.status,u.resetAfterSuccess]);const f=u.fees.fundingSource,g=f?.kind==="input"?u.fees.fundingConversion?.amountInMax??u.fees.proceedsUsed??0n:0n,h=f?.kind==="input"?t:f?.asset,b=h?h._source==="wallet"?u.fees.fundingConversion?.amountInMax??u.fees.proceedsUsed:u.amount.sourceRequiredAmount:null;return{supply:u,source:h,maximumFeeFunding:b,feeFromAmount:g}}const ju=tt.ui,Kh=({label:e,loading:t,balance:n,dark:o,dk:r})=>{const a=o?r.textSecondary:"#7D7C7B",i=o?r.textSecondary:"#71757A";return B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:{fontFamily:ju,fontSize:"17px",fontWeight:500,color:a,lineHeight:"24px"},children:e}),B("div",{style:{display:"flex",alignItems:"center",gap:"6px",fontFamily:ju,fontSize:"13px",fontWeight:500,color:i,lineHeight:"16px"},children:["Balance:"," ",t?"...":n===null?"\u2014":si(n)]})]})};function Yh(e,t=40,n=18){const o=e.length,r=[{maxLength:7,shrink:0},{maxLength:10,shrink:6},{maxLength:13,shrink:12},{maxLength:16,shrink:16},{maxLength:20,shrink:19}].find(a=>o<=a.maxLength);return Math.max(n,t-(r?.shrink??22))}const Rr=({value:e,element:t="span",placeholder:n,ariaLabel:o,ariaInvalid:r,disabled:a,onChange:i,inputMode:s="decimal",autoComplete:c="off",dataSpiceflowFocus:l,fontFamily:d,fontWeight:u=700,color:p,textAlign:w,lineHeight:f=1,maxFontSize:g=40,minFontSize:h=18,overflow:b="ellipsis",title:v,style:C})=>{const x=Z(null),[k,E]=H(),I=Yh(e||n||"",g,h),y=e||n||"";we(()=>{const F=x.current;if(!F||b!=="ellipsis"){E(void 0);return}let L=!0,R=null;const N=()=>{if(!L)return;const D=getComputedStyle(F),M=F.clientWidth-parseFloat(D.paddingLeft||"0")-parseFloat(D.paddingRight||"0");if(!(M>0))return;if(!R){try{R=document.createElement("canvas").getContext("2d")}catch{return}if(!R)return}R.font=`${D.fontStyle} ${D.fontWeight} ${I}px ${D.fontFamily}`;const S=R.measureText(y),U=Math.max(S.width,(S.actualBoundingBoxLeft||0)+(S.actualBoundingBoxRight||0))+(parseFloat(D.letterSpacing)||0)*Math.max(0,y.length-1),q=U>M?I*Math.max(0,M-1)/U:void 0;E(X=>X===q?X:q)};N();const O=typeof ResizeObserver>"u"?void 0:new ResizeObserver(N);return O?.observe(F),O||window.addEventListener("resize",N),document.fonts?.addEventListener("loadingdone",N),()=>{L=!1,O?.disconnect(),O||window.removeEventListener("resize",N),document.fonts?.removeEventListener("loadingdone",N)}},[y,I,d,u,b,t,C?.fontFamily,C?.fontStyle,C?.fontWeight,C?.letterSpacing,C?.paddingLeft,C?.paddingRight]);const A=b==="wrap"?{overflowWrap:"anywhere",wordBreak:"break-word",whiteSpace:"normal"}:b==="ellipsis"?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{},T={fontFamily:d,fontSize:`${Math.min(I,k??I)}px`,fontWeight:u,color:p,lineHeight:f,letterSpacing:0,textAlign:w,minWidth:0,maxWidth:"100%",...A,...C};return t==="input"?m("input",{ref:x,type:"text",inputMode:s,autoComplete:c,"aria-label":o,"aria-invalid":r||void 0,"data-spiceflow-focus":l||void 0,value:e,onChange:i,placeholder:n,disabled:a,title:v,style:{backgroundColor:"transparent",border:"none",outline:"none",padding:0,width:"100%",...T}}):m(t,{ref:x,title:v,style:T,children:e})},Gu=({isOpen:e,position:t,title:n,items:o,selectedId:r,onSelect:a,portalAttribute:i})=>{const{dark:s,dk:c,primaryColor:l}=dn(),[d,u]=H(null),[p,w]=H(!1);return we(()=>{if(!e){w(!1);return}const f=requestAnimationFrame(()=>{requestAnimationFrame(()=>w(!0))});return()=>cancelAnimationFrame(f)},[e]),!e||!t||o.length===0?null:gi(B("div",{[`data-${i}-popover`]:"true",style:{position:"fixed",top:`${t.top}px`,left:`${t.left}px`,opacity:p?1:0,transform:p?"scale(1) translateY(0)":"scale(0.96) translateY(-6px)",transition:`opacity 200ms ${qr.out}, transform 200ms ${qr.out}`,backgroundColor:s?c.shell:"#ffffff",borderRadius:"10px",padding:"10px 12px",boxShadow:s?"0 16px 48px rgba(0,0,0,0.45)":"0 12px 32px rgba(0,0,0,0.12)",border:`1px solid ${c.cardBorder}`,minWidth:"220px",zIndex:Cr.dropdown,fontFamily:tt.mono},children:[m("div",{style:{marginBottom:"6px"},children:m("span",{style:{fontSize:"11px",fontWeight:500,color:s?c.textPrimary:"#0e0d0b",textTransform:"uppercase",letterSpacing:"1px"},children:n})}),m("div",{style:{borderBottom:`1px solid ${c.cardBorder}`,marginBottom:"6px"}}),m("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:o.map(f=>{const g=r===f.id,h=d===f.id;return B("button",{onClick:b=>{b.stopPropagation(),a(f.id)},onMouseEnter:()=>u(f.id),onMouseLeave:()=>u(null),style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 4px",borderRadius:"8px",border:"none",cursor:"pointer",backgroundColor:g?s?c.hoverBg:"#f3f4f6":h?s?c.cardBg:"#f9fafb":"transparent",transition:"background-color 0.15s",width:"100%",fontFamily:tt.mono},children:[f.icon&&m("img",{src:f.icon,alt:f.label,style:{width:"22px",height:"22px",borderRadius:"50%"}}),m("span",{style:{fontSize:"13px",fontWeight:g?700:500,textTransform:"uppercase",color:s?c.textPrimary:"#0e0d0b",letterSpacing:"0.5px",flex:1,textAlign:"left"},children:f.label}),f.detail&&m("span",{style:{fontSize:"11px",fontWeight:500,color:c.textSecondary},children:f.detail}),g&&m(Ld,{color:l,style:{flexShrink:0}})]},f.id)})})]}),document.body)},Qs=tt.ui,Zh=tt.mono,Xh=170,Jh=({header:e,amount:t,receiveAmountDisplay:n,receiveUsdEstimate:o,selectedDestToken:r,destTokenSymbol:a,destChainName:i,destChainLogo:s,compatibleDestinationChains:c,networkSwitchRef:l,onOpenNetworkPopover:d,showNetworkPopover:u,setShowNetworkPopover:p,networkPopoverPos:w,selectedChainId:f,setSelectedChainId:g,dark:h,dk:b})=>{const v=h?b.cardBg:"#E9E9E9",C=h?b.cardBorder:"#C6C6C6",x=h?b.textSecondary:"#71757A",k=h?b.textPrimary:"#0E0D0B",E=h?b.cardBorder:"#C5C5C4",I=h?"rgba(255,255,255,0.08)":"#D4D3D3",y=a.length>8?"14px":a.length>6?"16px":"18px";return B("div",{style:{backgroundColor:v,border:`1px solid ${C}`,borderRadius:"7px",padding:"14px 16px 12px 16px",minHeight:"138px",display:"flex",flexDirection:"column",gap:"6px"},children:[e,B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",flex:1},children:[B("div",{style:{flex:1,minWidth:0,alignSelf:"flex-start",paddingTop:"4px"},children:[m(Rr,{element:"div",value:n,title:n,fontFamily:Qs,color:t?k:"#A8A8A7",lineHeight:"0.95",maxFontSize:54,minFontSize:32,overflow:"wrap"}),m("div",{style:{fontSize:"12px",fontWeight:500,color:x,fontFamily:Qs,marginTop:"10px"},children:o})]}),B("div",{style:{width:`${Xh}px`,flexShrink:0,display:"flex",flexDirection:"column",alignItems:"stretch",gap:"8px"},children:[B("div",{style:{backgroundColor:"transparent",border:`1px solid ${E}`,borderRadius:"8px",overflow:"hidden",width:"100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"6px",padding:"9px 10px 8px 10px"},children:[m("img",{src:r?.logoURI||um,alt:a,style:{width:"24px",height:"24px",borderRadius:"50%"}}),m("span",{style:{fontSize:y,fontWeight:500,color:k,lineHeight:"1.3",fontFamily:Qs,flex:1,minWidth:0,letterSpacing:0},children:a})]}),B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"5px 10px",backgroundColor:I,borderTop:`1px solid ${E}`},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[s&&m("img",{src:s,alt:i,style:{width:"13px",height:"13px",borderRadius:"50%",flexShrink:0}}),m("span",{style:{fontSize:"11px",fontWeight:400,color:k,fontFamily:Qs,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textTransform:"uppercase"},children:i})]}),m("button",{ref:l,onClick:A=>{A.stopPropagation(),d(l.current)},style:{background:"none",border:"none",cursor:c.length>1?"pointer":"not-allowed",padding:"0 0 0 8px",fontSize:"9.5px",fontFamily:Zh,color:x,textDecoration:"underline",fontWeight:600,opacity:c.length>1?1:.45},children:"Switch"}),m(Gu,{isOpen:u,position:w,title:"SELECT NETWORK",portalAttribute:"network",items:c.map(A=>{const T=Ct(A);return{id:String(A),label:T?.displayName||String(A),icon:dr[A]||Aa}}),selectedId:f!==null?String(f):null,onSelect:A=>{g(Number(A)),p(!1)}})]})]}),m("div",{style:{minHeight:"14px"}})]})]})]})},$h=tt.ui,fr=tt.mono,_h=({show:e,onToggle:t,showCustomAddress:n,setShowCustomAddress:o,customRecipient:r,setCustomRecipient:a,externalAddress:i,recipientAddress:s,destChainName:c,destChainLogo:l,compatibleDestinationChains:d,txDetailsChainSwitchRef:u,onOpenNetworkPopover:p,sourceChainLabel:w,sourceDetailsLogo:f,sourceTokenLabel:g,amount:h,totalSourceDebitDisplay:b,receiveAmountDisplay:v,destTokenSymbol:C,shouldQuoteWithdrawGas:x,estimatingFee:k,feeError:E,displayedGasFee:I,selectedDestToken:y,theme:A,styles:T,dark:F,dk:L})=>{const R=F?L.textSecondary:"#71757A",N=F?L.textPrimary:"#0E0D0B",O=d.length>1,D=n&&r?Mn(r)?ga(r):r:s?ga(s):"\u2014";return B(Sn,{children:[B("div",{onClick:t,style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:e?"10px":"0",cursor:"pointer",userSelect:"none"},children:[m("span",{style:{fontSize:"13px",color:R,fontFamily:$h,fontWeight:600},children:"Transaction Details"}),m(Zm,{size:12,color:R,style:{transform:e?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"}})]}),e&&B("div",{style:{display:"flex",flexDirection:"column",gap:"7px"},children:[B("div",{children:[B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:{fontSize:"12px",color:R,fontFamily:fr,fontWeight:500,letterSpacing:"0.03em"},children:"TO"}),B("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[m("span",{style:{fontSize:"13px",color:N,fontFamily:fr,fontWeight:500},children:D}),m("button",{onClick:()=>{o(M=>!M),!n&&i&&a(i)},style:{background:"none",border:"none",cursor:"pointer",padding:"0",fontSize:"9.5px",fontFamily:fr,color:R,textDecoration:"underline",fontWeight:600},children:n?"Reset":"Switch"})]})]}),n&&B("div",{style:{marginTop:"6px"},children:[m("div",{style:{marginBottom:"6px",padding:"7px 9px",borderRadius:"6px",border:"1px solid rgba(239, 68, 68, 0.55)",backgroundColor:"rgba(239, 68, 68, 0.12)",color:"#ef4444",fontSize:"10px",lineHeight:1.35,fontFamily:fr,fontWeight:700,letterSpacing:0,textTransform:"uppercase"},children:"CAUTION: ENTERING AN INCORRECT ADDRESS WILL RESULT IN LOSS OF FUNDS"}),m("input",{type:"text",autoComplete:"off",spellCheck:!1,"aria-label":"Recipient address","aria-invalid":r&&!Mn(r)?!0:void 0,"data-spiceflow-focus":!0,value:r,onChange:M=>a(M.target.value),placeholder:"0x...",style:{width:"100%",padding:"8px 10px",borderRadius:"6px",border:`1px solid ${r&&!Mn(r)?F?L.errorBorder:"#fca5a5":F?L.inputBorder:"#d1d5db"}`,backgroundColor:F?L.inputBg:"#f9fafb",color:F?L.inputText:"#111827",fontSize:"12px",fontFamily:fr,outline:"none",boxSizing:"border-box"}}),r&&!Mn(r)&&m("span",{style:{fontSize:"11px",color:L.errorText,marginTop:"3px",display:"block"},children:"Invalid address"})]})]}),m(ko,{palette:L,labelColor:R,valueColor:N,label:"RECEIVING CHAIN",value:B("div",{style:{display:"flex",alignItems:"center",gap:"7px"},children:[l&&m("img",{src:l,alt:c,style:{width:"14px",height:"14px",borderRadius:"50%"}}),m("span",{style:{fontSize:"13px",color:N,fontWeight:500,fontFamily:fr,textTransform:"uppercase"},children:c}),m("button",{ref:u,onClick:M=>{M.stopPropagation(),p(u.current)},style:{background:"none",border:"none",cursor:O?"pointer":"not-allowed",padding:"0",fontSize:"9.5px",fontFamily:fr,color:R,textDecoration:"underline",fontWeight:600,opacity:O?1:.45},children:"Switch"})]})}),m(ko,{palette:L,labelColor:R,valueColor:N,label:"REQUESTED WITHDRAWAL",value:B(gc,{logo:f||null,alt:w,primaryText:N,children:[h||"0"," ",g]})}),x&&m(ko,{palette:L,labelColor:R,valueColor:N,label:"TOTAL SOURCE DEBIT",value:B(gc,{logo:f||null,alt:w,primaryText:N,children:[b," ",g]})}),m(ko,{palette:L,labelColor:R,valueColor:N,label:"YOU RECEIVE",value:B(gc,{logo:l,alt:c,primaryText:N,gap:"4px",children:[v," ",C]})}),x&&B(Sn,{children:[m(ko,{palette:L,labelColor:R,label:"EST. NETWORK FEE",valueColor:E?"#f87171":N,value:k?"Estimating...":E?"Unavailable":I!==null&&y?`${Xi(I,y.decimals)} ${y.symbol}`:"Estimating..."}),E&&m(jn,{variant:"error",size:"compact",palette:L,fontFamily:T?.fontFamily||A.typography.fontFamily,children:E})]})]})]})},eg=bo(_h),gc=({logo:e,alt:t,primaryText:n,gap:o="6px",children:r})=>B("div",{style:{display:"flex",alignItems:"center",gap:o},children:[e&&m("img",{src:e,alt:t,style:{width:"13px",height:"13px",borderRadius:"50%"}}),m("span",{style:{fontSize:"13px",color:n,fontWeight:500,fontFamily:fr},children:r})]}),wc=({pct:e,isMax:t,primaryColor:n,dark:o,fillColor:r})=>{const a=e/100;return B("svg",{width:"14",height:"14",viewBox:"0 0 14 14",children:[m("circle",{cx:"7",cy:"7",r:"6.84375",fill:t?n:"none",stroke:t?n:o?"#4a5568":"#3C3E42",strokeWidth:"0.3125"}),!t&&a>0&&m("path",{d:`M 7 7 L 7 0.15625 A 6.84375 6.84375 0 ${a>.5?1:0} 1 ${7+6.84375*Math.sin(a*2*Math.PI)} ${7-6.84375*Math.cos(a*2*Math.PI)} Z`,fill:r})]})},qa=tt.ui,tg=170,ng=({header:e,amount:t,setAmount:n,isInsufficient:o,sourceAmountDecimals:r,selectedSourceAsset:a,resolvedSelectedSourceAsset:i,spiceAssets:s,setSelectedSourceAsset:c,sourceUsdEstimate:l,sourceTokenLabel:d,sourceChainLabel:u,totalSelectedBalance:p,showSourceTokenPopover:w,setShowSourceTokenPopover:f,tokenPopoverPos:g,setTokenPopoverPos:h,tokenTriggerRef:b,primaryColor:v,dark:C,dk:x})=>{const k=Uo(),E=i?k({...i,logoURI:i._source==="wallet"?i.logoURI:Ca}).logoURI:Ca,I=C?x.cardBg:"#E9E9E9",y=C?x.cardBorder:"#C6C6C6",A=C?x.textSecondary:"#71757A",T=C?x.textPrimary:"#0E0D0B",F=C?x.cardBorder:"#C5C5C4",L=C?"rgba(255,255,255,0.08)":"#D4D3D3",R=d.length>8?"14px":d.length>6?"16px":"18px";return B("div",{style:{backgroundColor:I,border:`1px solid ${y}`,borderRadius:"7px",padding:"14px 16px 12px 16px",minHeight:"138px",display:"flex",flexDirection:"column",gap:"6px",position:"relative"},children:[e,B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",flex:1},children:[B("div",{style:{flex:1,minWidth:0,alignSelf:"flex-start",paddingTop:"4px"},children:[m(Rr,{element:"input",ariaLabel:"Withdraw amount",ariaInvalid:o,dataSpiceflowFocus:!0,value:t,onChange:N=>{const O=N.target.value;if(O===""){n("");return}/^\d*\.?\d*$/.test(O)&&n(cs(O.startsWith(".")?`0${O}`:O,r??a?.decimals))},placeholder:"0.0",fontFamily:qa,color:o?"#ef4444":t?T:"#A8A8A7",lineHeight:"0.95",maxFontSize:54,minFontSize:32,style:{width:"100%"}}),m("div",{style:{fontSize:"12px",fontWeight:500,color:A,fontFamily:qa,marginTop:"10px"},children:l})]}),m("div",{style:{width:`${tg}px`,flexShrink:0},children:B("div",{style:{backgroundColor:"transparent",border:`1px solid ${F}`,borderRadius:"8px",overflow:"hidden",width:"100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[B("div",{ref:b,onClick:N=>{if(N.stopPropagation(),!w&&b.current){const O=b.current.getBoundingClientRect(),D=220,M=16;h({top:O.bottom+8,left:Math.min(Math.max(M,O.right-D),window.innerWidth-D-M)})}f(O=>!O)},style:{display:"flex",alignItems:"center",gap:"6px",padding:"9px 10px 8px 10px",cursor:"pointer"},children:[E&&m("img",{src:E,alt:d,style:{width:"24px",height:"24px",borderRadius:"50%"}}),m("span",{style:{fontSize:R,fontWeight:500,color:T,lineHeight:"1.3",fontFamily:qa,flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",letterSpacing:0},children:d}),m(Xr,{size:15,color:T,strokeWidth:2.25})]}),m(Gu,{isOpen:w,position:g,title:"SELECT TOKEN",portalAttribute:"token",items:(s||[]).map(N=>({id:ke(N),label:k({...N,displaySymbol:N.displaySymbol||(N._source==="wallet"?N.symbol:N.receiptTokenName)}).symbol,icon:k({...N,logoURI:N._source==="wallet"?N.logoURI:Ca}).logoURI||void 0,detail:`${si(N.balanceFormatted)} \xB7 ${N._source==="wallet"?Ct(N.chainId)?.displayName||N.chainId:"Spicenet"}`})),selectedId:i?ke(i):null,onSelect:N=>{const O=(s||[]).find(D=>ke(D)===N);O&&(c(O),n("")),f(!1)}}),m("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"5px 10px",backgroundColor:L,borderTop:`1px solid ${F}`},children:m("span",{style:{fontSize:"11px",fontWeight:400,color:T,fontFamily:qa,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textTransform:"uppercase"},children:u})})]})})]}),B("div",{style:{minHeight:"18px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[o?m("span",{style:{fontSize:"12px",color:x.errorText,fontFamily:qa,fontWeight:500},children:"Insufficient Balance"}):m("span",{}),m("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0px",minHeight:"32px",marginRight:"-9px"},children:[0,25,50,75,100].map((N,O)=>{const D=O===4,M=parseFloat(t)||0,S=p>0&&Math.abs(M/p*100-N)<1;return m("button",{type:"button","aria-label":`Set amount to ${N}%`,"aria-pressed":S,onClick:()=>{const U=i?.balance??0n;n(N===0?"":Le(U*BigInt(N)/100n,r??a?.decimals??6))},title:`${N}%`,disabled:p===0,"data-spiceflow-focus":!0,style:{width:"32px",height:"32px",padding:"9px",border:"none",backgroundColor:"transparent",cursor:p===0?"not-allowed":"pointer",opacity:S?1:.5,transition:"opacity 0.15s ease",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:m(wc,{pct:N,isMax:D,primaryColor:v,dark:C,fillColor:C?x.textSecondary:"#3C3E42"})},N)})})]})]})};var yc="data:image/svg+xml,%3csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 4.99995V6.99995M5 3.31245V3.31189M9.5 5C9.5 7.48528 7.48528 9.5 5 9.5C2.51472 9.5 0.5 7.48528 0.5 5C0.5 2.51472 2.51472 0.5 5 0.5C7.48528 0.5 9.5 2.51472 9.5 5Z' stroke='black' stroke-opacity='0.4' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const og=({dark:e,dk:t})=>B("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[m("img",{src:yc,alt:"","aria-hidden":"true",style:{width:"13px",height:"13px",flexShrink:0,...e?{filter:"invert(0.6)"}:{}}}),m("p",{style:{fontSize:"13px",color:e?t.textSecondary:"#979AA0",margin:"0",lineHeight:"1.4",fontFamily:tt.ui},children:"Withdraw collateral from your account to 10+ EVM blockchains."})]}),rg=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,styles:o,onWithdrawExecute:r,onWithdrawSuccess:a,onWithdrawError:i,availableTokens:s,initialSourceAssetId:c,walletAssets:l,buildSpicenetBatch:d=Zr})=>{const u=gn(sn);if(!u)return m("div",{children:"Error: SpiceWithdraw must be used within SpiceFlowProvider"});const p=u.mode||"7702",w=p==="presign"||p==="ondemand",f=u.supportedChainIds,g=u.allowedTokens,h=l?.initialAsset,b=Ee(()=>[...l?.extraAssets??[],...h?[h]:[]].map(fe=>({address:fe.address,chainId:fe.chainId,symbol:fe.symbol,decimals:fe.decimals})),[l?.extraAssets,h]),v=u.isWhitelistGateActive,{theme:C,dark:x,dk:k}=dn(o),E=Uo(),I=u.network,y=()=>w?"select":"provider-login",[A,T]=H(y()),[F,L]=H(!1),[R,N]=H(null),[O,D]=H(null),[M,S]=H(""),[U,q]=H(!1),[X,K]=H(!1),[Q,Y]=H(!1),[oe,he]=H(""),[ve,ae]=H(!0),ie=Z(null),ne=Z(null),_=Z(null),[de,W]=H(null),[Me,Oe]=H(null),z=Po(),{isReady:V,isAuthenticated:te,address:ue}=z,J=u?.embeddedWalletAddress,{address:ce,chainId:He}=ui(),Xe=[u.externalWalletAddress,ce].find(fe=>fe&&!G(fe,J));we(()=>{e&&!Xe&&Y(!0)},[e,Xe]);const[Ve,se]=H(!1),[Ue,be]=H(null),Ye=Z(i);Ye.current=i;const Be=re(fe=>{be(fe),typeof fe=="string"&&fe&&Ye.current?.(fe,Hr(fe))},[]),[Pe,Fe]=H(null),je=Z(null),St=Z(!0),gt=Z(null);we(()=>(St.current=!0,()=>{St.current=!1}),[]);const{execute:ft,estimate:ct,clearStatus:Re}=Yr(),Se=As(ue,e),[kt,vt]=H(null),[ye,nt]=H(null),[mt,qe]=H(!1),[Nt,Wt]=H(null),{assets:Rn,loading:Ht,error:vn,refresh:wt}=Tr({owner:J,role:"holding",includeWalletAssets:!0,additionalSourceTokens:b,enabled:e&&!!J}),_e=Ee(()=>{if(v)return[];const fe=(le,ot)=>(ot.balanceUsd||0)-(le.balanceUsd||0);return(Rn??[]).filter(le=>le.balance>0n&&Bo(le,"holding",{allowedTokens:g,isWhitelistGateActive:v}).eligible).sort(fe)},[Rn,g,v]),bt=Ee(()=>[...new Set([...f??[],...Object.keys(s??{}).map(Number),...(_e||[]).map(fe=>fe.chainId),...(_e||[]).flatMap(fe=>Object.keys(fe.chainTokens??{}).map(le=>{const[,ot]=le.split(":"),At=Number(ot);return Number.isFinite(At)?At:null}).filter(le=>le!==null))])].filter(fe=>Ct(fe)?.network===I),[f,s,_e,I]),xt=Ee(()=>{if(s)return s;const fe={};for(const le of _e||[]){const ot=Object.entries(le.chainTokens??{});if(ot.length>0){for(const[At,We]of ot){const[on,Pt,mn]=At.split(":");if(on!=="evm"||!Pt||!mn)continue;const An=Number(Pt);if(!Number.isFinite(An))continue;const cn=mn.startsWith("0x")?mn.toLowerCase():`0x${mn.toLowerCase()}`,hn=Ct(An)?.supportedTokens?.find(Fn=>G(Fn.address,cn));hn&&Fi(le,cn,An)&&(fe[An]||(fe[An]=[]),fe[An].find(Fn=>G(Fn.address,cn))||fe[An].push({address:cn,symbol:hn?.symbol||We?.name||le.symbol,name:hn?.name||We?.name||le.displayName||le.name||le.symbol,decimals:hn?.decimals??We?.decimals??le.decimals,logoURI:hn?.logo||le.logoURI}))}continue}fe[le.chainId]||(fe[le.chainId]=[]),fe[le.chainId].find(At=>G(At.address,le.address))||fe[le.chainId].push({address:le.address,symbol:le.symbol,name:le.displayName||le.name||le.symbol,decimals:le.decimals,logoURI:le.logoURI})}return fe},[s,_e]),qt=re((fe,le)=>{const ot=nh(fe,le,le?fe?._source==="wallet"?s?.[le]??[]:xt[le]??[]:[]);return!fe||!ot||!le?null:fe._source==="wallet"||Bo(fe,"withdraw-destination",u,{...ot,chainId:le}).eligible?ot:null},[xt,s,u.allowedTokens,u.rpcOverrides,u.isWhitelistGateActive]),Ce=Ee(()=>R?_e.find(fe=>ke(fe)===ke(R))??null:null,[R,_e]),Zt=Ce?Ce.balanceError:vn,Je=Ce?._source==="wallet",$e=Ee(()=>{if(!Ce)return[];const fe=Object.keys(Ce.chainTokens??{}).map(le=>_n(le)?.chainId??null).filter(le=>le!==null);return Array.from(new Set([...fe,Ce.chainId,...bt].filter(Number.isFinite))).filter(le=>Ct(le)?.network===I&&(Ce._source==="wallet"||qt(Ce,le)!==null))},[Ce,bt,qt,I]),ge=Ee(()=>{if(!Ce||typeof window>"u")return null;const fe=`spiceflow:withdraw-chain:${Ce.receiptTokenId||Ce.address.toLowerCase()}`,le=window.localStorage.getItem(fe),ot=le?Number(le):null;return ot!==null&&Number.isFinite(ot)&&$e.includes(ot)?ot:null},[Ce,$e]),yt=Ee(()=>Ce?Ce._source==="wallet"?Ce.chainId:ge!==null?ge:He&&$e.includes(He)?He:Ce.chainId&&$e.includes(Ce.chainId)?Ce.chainId:$e[0]??null:bt[0]??null,[Ce,ge,He,$e,bt]),De=Ee(()=>qt(Ce,O),[qt,Ce,O]);we(()=>{e&&(N(null),S(""))},[e,c,h?.address,h?.chainId]),we(()=>{if(!e||!_e.length||R)return;const fe=h?_e.find(le=>le.chainId===h.chainId&&G(le.address,h.address)&&le._source==="wallet"):c?_e.find(le=>le.receiptTokenId===c):_e[0];N(fe??null),S("")},[e,_e,R,c,h]);const Xt=Z(null);we(()=>{if(!Ce){Xt.current=null;return}const fe=ke(Ce),le=Xt.current!==fe;Xt.current=fe,(le&&Ce._source==="wallet"||O===null||!$e.includes(O))&&D(yt)},[Ce,O,yt,$e]),we(()=>{if(!U&&!X)return;const fe=le=>{const ot=le.target;U&&!ie.current?.contains(ot)&&!ne.current?.contains(ot)&&!ot?.closest?.("[data-network-popover]")&&q(!1),X&&!_.current?.contains(ot)&&!ot?.closest?.("[data-token-popover]")&&K(!1)};return document.addEventListener("mousedown",fe),()=>document.removeEventListener("mousedown",fe)},[U,X]);const Et=re(fe=>{if(!fe||$e.length<=1)return;const le=fe.getBoundingClientRect(),ot=220,At=16;W({top:le.bottom+8,left:Math.min(Math.max(At,le.right-ot),window.innerWidth-ot-At)}),q(We=>!We)},[$e.length]),qn=re(()=>ae(fe=>!fe),[]);we(()=>{if(!Ce||O===null||typeof window>"u")return;const fe=`spiceflow:withdraw-chain:${Ce.receiptTokenId||Ce.address.toLowerCase()}`;window.localStorage.setItem(fe,String(O))},[Ce,O]);const et=Q?Mn(oe)?oe:void 0:Xe,nn=Tr({owner:et,role:"holding",includeRollupAssets:!1,sourceChains:O?[O]:[],additionalSourceTokens:De&&O?[{...De,chainId:O}]:[],enabled:e&&!!et&&!!De&&!!O}),Jt=nn.walletAssets.find(fe=>G(fe.owner,et)&&fe.chainId===O&&G(fe.address,De?.address)),Pn=Ce?.balanceFormatted??0,Un=Ce?E(Je?Ce:{...Ce,displaySymbol:Ce.displaySymbol||Ce.receiptTokenName,logoURI:Ca}):void 0,zn=Un?.symbol||"Select token",Hn=Ce?.displayChainName||(Je?Ct(Ce.chainId)?.displayName:"Spicenet")||"Network",In=Ce?.receiptTokenDecimals??Ce?.decimals,Vt=Ee(()=>{if(!De||In===void 0)return 0n;try{return Nn(M||"0",In)}catch{return 0n}},[M,De,In]),_t=Ee(()=>!De||In===void 0?0n:lh(Vt,In,De.decimals),[De,In,Vt]),un=ye??kt,en=Vt,Ut=Gh({enabled:e&&Je&&!!De,destination:De&&O?{...De,chainId:O}:null,asset:Je?Ce:null,amount:Vt,recipient:et,owner:J,sourceChains:f,onSuccess:a,onError:i}),lt=Ut.supply,Bt=Je&&O!==Ce?.chainId,Ro=Je?lt.fees.ready?lt.fees.destinationAmount??0n:0n:_t>(un??0n)?_t-(un??0n):0n,pn=Je&&O?De?Bo(Ce,"spend-source",u,{...De,chainId:O}).reason:"USDC withdrawal is unavailable on this network. Choose another network.":null,Vn=Ve||Je&&(lt.status.isExecuting||lt.status.finalizing),kn=lt.status.step==="success"||lt.status.paymentResult?.status==="success",eo=re(fe=>{if(Je||!O||!De)return[];if(Vt===0n||_t===0n||!et)return[];const le=Array.isArray(fe)?fe.filter(on=>on.amount>0n):[{token:De.address,recipient:et,amount:fe??_t}],ot=le.reduce((on,Pt)=>on+Pt.amount,0n);if(ot<=0n)return[];const At={chainId:O,calls:[],tokenTransfers:le.map(on=>({from:"escrow",to:on.recipient,token:on.token,amount:on.amount}))},We=d({destinationChainId:O,deliveryToken:De.address,deliveryAmount:ot,deliveryRecipient:et,deliveryTransfers:le,requestTimestampMs:gt.current??Date.now()});return We?[We,At]:[At]},[Je,O,De,Vt,_t,et,d]),fn=Ee(()=>eo(),[eo]),to=d===Zr&&!!O&&![Vr(O),Qn,bn,...Md].some(fe=>G(et,fe)),Cn=Ee(()=>dh(fn,De?.address,to),[fn,De?.address,to]),ut=Z(null),wn=!Je&&e&&!w&&!Ve&&!!De&&!!O&&Vt!==0n;Ui({shouldRun:wn&&fn.length>0&&!!Cn,deps:[wn,fn.length>0,Cn,to],delayMs:500,onSkip:()=>{ut.current=null,vt(null),Wt(null),qe(wn&&fn.length===0)},onCleanup:()=>qe(!1),run:async({isCurrent:fe,signal:le})=>{const ot=Cn;qe(!0),Wt(null);try{const At=await ch({batches:fn,tokenAddress:De.address,chainId:O,estimate:ct,withdrawalSourceBudget:to,signal:le});if(!fe())return;ut.current={key:ot,quote:At},vt(At.gasFee)}catch(At){if(!fe())return;ut.current=null,vt(null),Wt(At instanceof Error?At.message:"Failed to estimate gas fee")}finally{fe()&&qe(!1)}}}),we(()=>{Ve||nt(null)},[Ve,M,O,De?.address]);const Gn=re(()=>{L(!0),T("select")},[]),mo=re(()=>{Vn||t()},[t,Vn]),En=Z(null);En.current={batches:fn,walletAddress:ue,recipient:et,token:De,chainId:O,amount:M,grossAmountRaw:_t,gasFee:kt,feeEstimate:Cn&&ut.current?.key===Cn?ut.current.quote.feeEstimate:null,withdrawalSourceBudget:!w&&to,isNon7702:w,buildWithdrawBatches:eo,execution:{estimate:ct,execute:ft},ui:{setIsExecuting:se,setExecutionError:Be,setExecutionProgress:Fe,setLockedGasFee:nt},executionContextRef:je,isMountedRef:St,onWithdrawExecute:r,onWithdrawSuccess:a,buildSpicenetBatch:d};const Qo=re(()=>(gt.current=Date.now(),Xd(En.current)),[]),ho=re(()=>Jd(En.current),[]);if(we(()=>{if(!e){Re?.();const fe=setTimeout(()=>{T(y()),L(!1),N(null),D(null),S(""),q(!1),K(!1),Y(!1),he(""),se(!1),Be(null),Fe(null),je.current=null},300);return()=>clearTimeout(fe)}},[e,w]),we(()=>{if(!w&&e&&A==="provider-login"&&V&&te&&J&&!F){const fe=setTimeout(()=>{L(!0),T("select")},100);return()=>clearTimeout(fe)}},[w,e,A,V,te,J,F]),!e)return null;if(A==="provider-login"&&!w)return m(Ki,{onAuthSuccess:Gn,autoTrigger:!0});if(A==="select"){const fe=parseFloat(M)||0,le=In?Xi(en,In):M||"0",ot=!!Ce&&en>Ce.balance,At=(O?Ct(O):null)?.displayName||"Network",We=O?dr[O]||Aa:null,on=De?.symbol||"\u2014",Pt=zn,mn=De?Xi(Ro,De.decimals):"0",An=Ce&&Ce.balanceFormatted>0?Ce.balanceUsd/Ce.balanceFormatted:void 0,cn=Ce?.priceStatus==="stale",hn=$d(fe,An,cn),Fn=$d(parseFloat(mn)||0,Bt?void 0:An,cn),no=(!Q||Mn(oe))&&(!Je||!G(et,J)),ln=!w&&!Je&&fe>0&&De!==null,Kn=!ln||kt!==null&&!mt&&!Nt,Tn=fe>0&&!ot&&!Ht&&!Zt&&Ce!==null&&O!==null&&De!==null&&!pn&&et&&no&&Kn&&Ro>0n&&(!Je||lt.canExecute&&!kn),rt=!Tn,Dt=Ht?"LOADING BALANCES":Zt?"BALANCES UNAVAILABLE":Ce===null?"NO BALANCE":fe===0?"ENTER AMOUNT":ot?"INSUFFICIENT BALANCE":ln&&!Kn?Nt?"GAS UNAVAILABLE":"ESTIMATING GAS":ln&&Ro===0n?"AMOUNT TOO SMALL":Je&&!lt.canExecute?"REVIEW FEES":"WITHDRAW",oo=!!Pe&&(Pe.step==="success"||Pe.step==="error"),Ao=o?.primaryColor||C.colors.primary,sa=402,tr=(ro,mr,Do)=>m(Kh,{label:ro,loading:Do,balance:mr,dark:x,dk:k});return m(Co,{isOpen:!0,onClose:mo,title:"Withdraw",subtitle:m(og,{dark:x,dk:k}),styles:o,theme:C,dark:x,maxWidth:"486px",footerLinkText:"Spicenet accounts \u2192",overlayDimmed:!1,closeOnBackdropClick:n,overlayContent:oo?m("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",justifyContent:"flex-end",pointerEvents:"none",zIndex:20},children:m("div",{style:{pointerEvents:"auto"},children:m(Yi,{type:"withdraw",isOpen:!0,isProcessing:Vn,onRetryTx:()=>{ho()},onNewTx:()=>{Fe(null),S(""),Be(null),je.current=null},onClose:()=>{Fe(null),Be(null),se(!1),je.current=null},onComplete:()=>{Fe(null),Be(null),se(!1),je.current=null},results:[{asset:{symbol:De?.symbol||"Token",address:De?.address||""},txHash:Pe?.txHash||"",success:Pe?.step==="success",error:Pe?.error,amount:M}],chainId:O??void 0,theme:C})})}):null,children:B("fieldset",{disabled:Vn,style:{border:0,minWidth:0,width:"calc(100% - 32px)",maxWidth:`${sa}px`,margin:"0 auto",padding:"0 0 4px 0",position:"relative"},children:[m(Rs,{activity:Se,palette:k,onRefresh:()=>{wt()}}),B("div",{style:{marginTop:"16px",marginBottom:"16px",display:"flex",flexDirection:"column",gap:"16px"},children:[m(ng,{header:tr("Source",Pn,Ht),amount:M,setAmount:S,isInsufficient:ot,sourceAmountDecimals:In,selectedSourceAsset:Ce,resolvedSelectedSourceAsset:Ce,spiceAssets:_e,setSelectedSourceAsset:N,sourceUsdEstimate:hn,sourceTokenLabel:Pt,sourceChainLabel:Hn,totalSelectedBalance:Pn,showSourceTokenPopover:X,setShowSourceTokenPopover:K,tokenPopoverPos:Me,setTokenPopoverPos:Oe,tokenTriggerRef:_,primaryColor:Ao,dark:x,dk:k}),m(Jh,{header:tr("Destination",Jt?.balanceFormatted??null,nn.loading),amount:M,receiveAmountDisplay:mn,receiveUsdEstimate:Fn,selectedDestToken:De,destTokenSymbol:on,destChainName:At,destChainLogo:We,compatibleDestinationChains:$e,networkSwitchRef:ie,onOpenNetworkPopover:Et,showNetworkPopover:U,setShowNetworkPopover:q,networkPopoverPos:de,selectedChainId:O,setSelectedChainId:D,dark:x,dk:k})]}),B("div",{style:{marginBottom:C.spacing.sm},children:[m(eg,{show:ve,onToggle:qn,showCustomAddress:Q,setShowCustomAddress:Y,customRecipient:oe,setCustomRecipient:he,externalAddress:Xe,recipientAddress:et,destChainName:At,destChainLogo:We,compatibleDestinationChains:$e,txDetailsChainSwitchRef:ne,onOpenNetworkPopover:Et,sourceChainLabel:Hn,sourceDetailsLogo:Ce?Un?.logoURI:Ca,sourceTokenLabel:Pt,amount:M,totalSourceDebitDisplay:le,receiveAmountDisplay:mn,destTokenSymbol:on,shouldQuoteWithdrawGas:ln,estimatingFee:mt,feeError:Nt,displayedGasFee:un,selectedDestToken:De,theme:C,styles:o,dark:x,dk:k}),Bt&&m(jn,{variant:"info",size:"compact",palette:k,children:lt.fees.ready?`You receive ${mn} USDC on ${At}`:`USDC on ${At} \u2014 ${pn||lt.fees.error||lt.quote.quoteError||"waiting for quote"}`}),Je&&lt.fees.ready&&B(Sn,{children:[m(ko,{palette:k,label:"TOTAL SOURCE DEBIT",value:`${le} ${Pt}`}),m(ko,{palette:k,label:"MINIMUM RECEIVED",value:`${mn} ${on}`}),m(ko,{palette:k,label:Bt?"DESTINATION FEES":"EST. FEE",value:lt.fees.preview?.totalFee!==void 0?`${Le(lt.fees.preview.totalFee,lt.fees.preview.decimals)} ${lt.fees.preview.symbol}`:"Unavailable"})]}),Bt&&lt.fees.ready&&lt.fees.source&&m(ko,{palette:k,label:"SOURCE NETWORK FEE",value:`${Le(lt.fees.source.gasFee,lt.fees.source.decimals)} ${lt.fees.source.symbol}`}),pn&&m(jn,{variant:"warning",size:"compact",palette:k,children:pn}),Je&&B("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[!Bt&&m(ko,{palette:k,label:"FEE ASSET",value:lt.fees.isLoading?"Estimating...":Ut.source?`${E(Ut.source).symbol} \xB7 ${Ut.source._source==="spice"?"Spicenet":Ct(Ut.source.chainId)?.displayName}`:"Unavailable"}),!Bt&&m(ko,{palette:k,label:"MAXIMUM FEE FUNDING",value:lt.fees.isLoading?"Estimating...":lt.fees.ready&&Ut.source&&Ut.maximumFeeFunding!=null?`${Le(Ut.maximumFeeFunding,Ut.source.decimals)} ${E(Ut.source).symbol}`:"Unavailable"}),!kn&&(lt.status.error||lt.fees.error||lt.quote?.quoteError)&&m(jn,{variant:"error",size:"compact",palette:k,children:lt.status.error||lt.fees.error||lt.quote?.quoteError}),!kn&&lt.status.finalizationError&&m(Kt,{variant:"outline",dark:x,disabled:lt.status.finalizing,onClick:()=>void lt.retryFinalization(),children:"Retry application update"}),!kn&&lt.status.step==="error"&&lt.status.error==="Transaction fees changed. Refresh the quote before submitting."&&m(Kt,{variant:"outline",dark:x,disabled:lt.status.isExecuting,onClick:lt.retrySupply,children:"Refresh quote"}),lt.status.statusMsg&&m("span",{role:"status",children:lt.status.statusMsg})]}),Ce&&!Ht&&$e.length===0&&m(jn,{variant:"warning",size:"compact",palette:k,children:"No withdrawal networks are available for this asset."}),Ue&&m(jn,{variant:"error",size:"compact",palette:k,fontFamily:o?.fontFamily||C.typography.fontFamily,style:{marginBottom:"12px"},children:Ue}),Zt&&B(jn,{variant:"error",size:"compact",palette:k,children:["Unable to load this balance. Please try again."," ",m("button",{type:"button",onClick:()=>void wt(),children:"Retry"})]}),m(Kt,{variant:"outline",fullWidth:!0,onClick:()=>{if(Tn)if(Je){if(Bt&&Ro<=0n)return;lt.submitSupply()}else Qo()},disabled:rt||Vn,theme:C,dark:x,styles:o,style:{marginTop:"8px"},children:Vn?"EXECUTING...":Je&&kn?"WITHDRAWN":Dt})]})]})})}return null},bc=rg,ag=({onDepositClick:e,onWithdrawClick:t,depositDisabled:n=!1,withdrawDisabled:o=!1,primaryColor:r="#EA4B4B",buttonStyles:a,dark:i=!1})=>{if(!e&&!t)return null;const s={button:{backgroundColor:r,...a}};return B("div",{style:{display:"flex",gap:"8px"},children:[e&&m(Kt,{variant:"outline",onClick:e,disabled:n,dark:i,styles:s,style:{flex:1,height:"44px",fontSize:"12px"},children:"Deposit"}),t&&m(Kt,{variant:"outline",onClick:()=>t(),disabled:o,dark:i,styles:s,style:{flex:1,height:"44px",fontSize:"12px"},children:"Withdraw"})]})},sg=bo(ag),ig=({section:e,dk:t,dark:n=!1})=>{const o=r=>{switch(r){case"green":return"#10b981";case"red":return"#ef4444";default:return t.textPrimary}};return B("div",{children:[m("div",{style:{fontSize:"11px",fontWeight:600,letterSpacing:"1px",color:t.textSecondary,marginBottom:"8px",textTransform:"uppercase"},children:e.title}),m("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:e.items.map((r,a)=>B("div",{role:r.onClick?"button":void 0,tabIndex:r.onClick?0:void 0,onClick:r.onClick,onKeyDown:r.onClick?i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),r.onClick?.())}:void 0,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px",backgroundColor:t.cardBg,border:n?`1px solid ${t.cardBorder}`:"1px solid #e5e7eb",borderRadius:"8px"},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[r.tokenLogoURI?m("img",{src:r.tokenLogoURI,alt:r.tokenSymbol,style:{width:"20px",height:"20px",borderRadius:"50%"}}):m("div",{style:{width:"20px",height:"20px",borderRadius:"50%",backgroundColor:n?t.hoverBg:"#e5e7eb",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"10px",fontWeight:600,color:t.textSecondary},children:r.tokenSymbol.charAt(0)}),B("div",{children:[m("div",{style:{fontSize:"13px",fontWeight:500,color:t.textPrimary},children:r.tokenSymbol}),m("div",{style:{fontSize:"11px",color:t.textSecondary},children:r.label})]})]}),m("div",{style:{fontSize:"13px",fontWeight:600,color:o(r.valueColor)},children:r.displayValue})]},a))})]})},cg=bo(ig);var lg="data:image/svg+xml,%3csvg width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='black' stroke-opacity='0.5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpolyline points='17 1 21 5 17 9' /%3e%3cpath d='M3 11V9a4 4 0 0 1 4-4h14' /%3e%3cpolyline points='7 23 3 19 7 15' /%3e%3cpath d='M21 13v2a4 4 0 0 1-4 4H3' /%3e%3c/svg%3e";const xc=({color:e})=>B("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[m("circle",{cx:"7",cy:"7",r:"6.5",stroke:e,strokeWidth:"1.2"}),m("path",{d:"M7 6v4",stroke:e,strokeWidth:"1.2",strokeLinecap:"round"}),m("circle",{cx:"7",cy:"4.5",r:"0.7",fill:e})]}),Ku=({content:e,label:t="More info",textColor:n="#f9fafb",backgroundColor:o="#111827",borderColor:r="rgba(255,255,255,0.08)",accentColor:a="#9ca3af",children:i})=>{const s=sl(),[c,l]=H(!1),d=Z(null),[u,p]=H(!1),[w,f]=H(null);we(()=>{p(!0)},[]),Wo(()=>{if(!c||!d.current)return;const h=()=>{if(!d.current)return;const b=d.current.getBoundingClientRect(),v=Math.min(220,window.innerWidth-48),C=Math.min(Math.max(b.left+b.width/2,24+v/2),window.innerWidth-24-v/2),x=b.top>84;f({top:x?b.top-10:b.bottom+10,left:C,placement:x?"top":"bottom"})};return h(),window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),()=>{window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}},[c]);const g=c&&u&&w?gi(B("span",{id:s,role:"tooltip",style:{position:"fixed",left:w.left,top:w.top,transform:w.placement==="top"?"translate(-50%, -100%)":"translate(-50%, 0)",width:"220px",maxWidth:"min(220px, calc(100vw - 48px))",padding:"10px 12px",borderRadius:"10px",backgroundColor:o,color:n,border:`1px solid ${r}`,boxShadow:"0 18px 45px rgba(0,0,0,0.28)",fontSize:"11px",lineHeight:"1.45",fontWeight:500,textAlign:"left",zIndex:Cr.tooltip,pointerEvents:"none"},children:[e,m("span",{"aria-hidden":"true",style:{position:"absolute",left:"50%",width:"10px",height:"10px",transform:"translateX(-50%) rotate(45deg)",backgroundColor:o,...w.placement==="top"?{bottom:"-6px",borderRight:`1px solid ${r}`,borderBottom:`1px solid ${r}`}:{top:"-6px",borderTop:`1px solid ${r}`,borderLeft:`1px solid ${r}`}}})]}),document.body):null;return B(Sn,{children:[m("span",{ref:d,style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:m("button",{type:"button","aria-label":t,"aria-describedby":c?s:void 0,onFocus:()=>l(!0),onBlur:()=>l(!1),style:{width:"18px",height:"18px",borderRadius:"999px",display:"inline-flex",alignItems:"center",justifyContent:"center",border:`1px solid ${r}`,backgroundColor:"transparent",color:a,cursor:"help",padding:0,outline:"none",boxShadow:c?`0 0 0 2px ${a}26`:"none",transition:"border-color 120ms ease, box-shadow 120ms ease, color 120ms ease"},children:i||m(xc,{color:a})})}),g]})},dg=({appName:e,status:t,statusLabel:n,totalUsdValue:o,breakdownSubtitle:r,showUsdSummary:a=!0,address:i,dk:s,dark:c=!1,showModeToggle:l,isEmbeddedMode:d=!0,onModeToggle:u})=>{const[p,w]=H(!1),f=async()=>{i&&await Xp(i)&&(w(!0),setTimeout(()=>w(!1),2e3))},g=t==="active",h=n||(g?"Active":"Inactive"),b=g?"#10b981":"#9ca3af",v=B("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[B("div",{children:[m("strong",{children:"Embedded:"})," Deposit assets into ",e," account and use them here."]}),B("div",{children:[m("strong",{children:"External:"})," Use assets from your connected wallet here."]})]});return B("div",{children:[B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"4px"},children:[B("div",{style:{fontSize:"13px",fontWeight:600,color:s.textPrimary},children:[e," Account"]}),l?B("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[B("button",{onClick:u,style:{display:"flex",alignItems:"center",gap:"4px",padding:"2px 8px",borderRadius:"9999px",backgroundColor:c?s.hoverBg:"#f3f4f6",border:c?`1px solid ${s.cardBorder}`:"1px solid #e5e7eb",cursor:"pointer",fontSize:"11px",fontWeight:600,fontFamily:tt.mono,color:s.textSecondary,transition:"background-color 150ms ease, border-color 150ms ease, color 150ms ease",letterSpacing:"0.02em"},children:[m("span",{children:d?"Embedded":"External"}),m("img",{src:lg,alt:"","aria-hidden":"true",style:{width:"11px",height:"11px",display:"block",...c?{filter:"invert(0.65)"}:{}}})]}),m(Ku,{content:v,label:"Account mode info",textColor:c?s.textPrimary:"#f9fafb",backgroundColor:c?s.cardBg:"#111827",borderColor:c?s.cardBorder:"rgba(255,255,255,0.08)",accentColor:c?s.textSecondary:"#6b7280",children:m("img",{src:yc,alt:"","aria-hidden":"true",style:{width:"12px",height:"12px",display:"block",...c?{filter:"invert(0.65)"}:{}}})})]}):B("div",{style:{display:"flex",alignItems:"center",gap:"4px",padding:"2px 8px",borderRadius:"9999px",backgroundColor:c?s.hoverBg:g?"#ecfdf5":"#f3f4f6",border:c?`1px solid ${s.cardBorder}`:g?"1px solid #a7f3d0":"1px solid #e5e7eb"},children:[m("div",{style:{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:b}}),m("span",{style:{fontSize:"11px",fontWeight:500,color:c?s.textSecondary:g?"#065f46":"#6b7280"},children:h})]})]}),a&&m("div",{style:{fontSize:"28px",fontWeight:700,color:s.textPrimary,lineHeight:1.2,marginBottom:"2px"},children:Ar(o)}),a&&r&&m("div",{style:{fontSize:"12px",color:s.textSecondary,marginBottom:"8px"},children:r}),i&&B("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[m("span",{style:{fontSize:"12px",fontFamily:tt.mono,color:c?s.textSecondary:"#9ca3af"},children:ga(i)}),m("button",{onClick:f,style:{padding:"2px 6px",fontSize:"10px",fontWeight:500,backgroundColor:"transparent",color:c?s.textSecondary:"#9ca3af",border:"none",cursor:"pointer",borderRadius:"4px",transition:"background-color 150ms ease, color 150ms ease"},title:"Copy address",children:p?"Copied":"Copy"})]})]})},ug=bo(dg),pg={1:"ethereum",56:"binance-smart-chain",137:"polygon-pos",143:"monad",4114:"citrea",4663:"robinhood",8453:"base",42161:"arbitrum-one"},fg=6e4,za=new Map;function Yu(e,t){return za.get(e)?.logos?.get(t.toLowerCase())}function mg(e,t){const n=pg[e];if(!n||Ae(t))return;const o=za.get(e);if(o?.logos||o?.pending)return o.pending;if(o?.failedAt!==void 0&&Date.now()-o.failedAt<fg)return;const r=Promise.resolve().then(async()=>{try{const a=await fetch(`https://tokens.coingecko.com/${n}/all.json`,{signal:AbortSignal.timeout(1e4)});if(!a.ok)throw new Error("Token list request failed");const i=await a.json(),s=new Map;for(const c of i?.tokens??[])c?.address&&c?.logoURI&&s.set(String(c.address).toLowerCase(),c.logoURI);za.set(e,{logos:s})}catch(a){console.warn(`[tokenLogos] Token list unavailable for chain ${e}`,a),za.set(e,{failedAt:Date.now()})}});return za.set(e,{...o,pending:r}),r}function vc(e,t,n){const[o,r]=H(),a=e||e===null||t===void 0||!n?void 0:`${t}:${n.toLowerCase()}`,i=a?Yu(t,n):void 0;return we(()=>{if(!a||i||t===void 0||!n)return;let s=!0;const c=()=>{const d=Yu(t,n);s&&d&&r({token:a,logo:d})},l=mg(t,n);return l?l.then(c):c(),()=>{s=!1}},[a,i,t,n]),e||i||(o&&o.token===a?o.logo:void 0)}const hg=({asset:e,label:t,logo:n,dk:o,dark:r})=>{const a=vc(n,e.chainId,e.tokenAddress),[i,s]=Fo.useState();return n===null?null:a&&a!==i?m("img",{src:a,alt:t,onError:()=>s(a),style:{width:"24px",height:"24px",borderRadius:"50%"}}):m("div",{style:{width:"24px",height:"24px",borderRadius:"50%",backgroundColor:r?o.hoverBg:"#e5e7eb",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"11px",fontWeight:600,color:o.textSecondary},children:t.charAt(0)})},gg=e=>`${e.tokenAddress}-${e.chainId}`,wg=({spiceAssets:e,loading:t,dk:n,dark:o=!1,canDirectWithdraw:r=!1,onDirectWithdraw:a,directWithdrawState:i,onWithdrawClick:s,limit:c})=>{const l=Uo(),[d,u]=H(!1),p=c!==void 0&&!d?Math.max(e.length-c,0):0,w=p>0?e.slice(0,c):e,f={fontSize:"11px",fontWeight:600,letterSpacing:"1px",color:n.textSecondary,marginBottom:"8px",textTransform:"uppercase"},g={backgroundColor:n.cardBg,border:o?`1px solid ${n.cardBorder}`:"1px solid #e5e7eb",borderRadius:"8px"};return t?B("div",{children:[m("div",{style:f,children:"Idle Balances"}),[1,2].map(h=>m("div",{style:{...g,padding:"12px",marginBottom:"6px",height:"48px",animation:"pulse 1.5s ease-in-out infinite",opacity:.5}},h))]}):e.length===0?B("div",{children:[m("div",{style:f,children:"Idle Balances"}),m("div",{style:{...g,padding:"16px",textAlign:"center",fontSize:"13px",color:o?n.textSecondary:"#9ca3af"},children:"No assets yet. Deposit to get started."})]}):B("div",{children:[m("div",{style:f,children:"Idle Balances"}),B("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[w.map(h=>{const b=Ct(h.chainId),v=h.chainDisplayName||b?.displayName||`Chain ${h.chainId}`,C=l({symbol:h.tokenSymbol,displaySymbol:h.tokenDisplaySymbol||h.tokenDisplayName,displayName:h.tokenDisplayName,receiptTokenId:h.receiptTokenId,receiptTokenName:h.receiptTokenName,location:h.location,logoURI:h.logoURI}),x=C.symbol,k=gg(h),E=h.receiptTokenId&&s,I=E||r&&h.directWithdraw&&!!a,y=!E&&i?.key===k?i:null,A=y?.step==="pending";return B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px",...g},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[m(hg,{asset:h,label:x,logo:C.logoURI,dk:n,dark:o}),B("div",{children:[m("div",{style:{fontSize:"13px",fontWeight:500,color:n.textPrimary},children:x}),m("div",{style:{fontSize:"11px",color:o?n.textSecondary:"#9ca3af"},children:v})]})]}),B("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[B("div",{style:{textAlign:"right"},children:[m("div",{style:{fontSize:"13px",fontWeight:500,color:n.textPrimary},children:ls({balance:BigInt(h.balance),decimals:h.tokenDecimals})}),m("div",{style:{fontSize:"11px",color:y?.step==="error"?n.errorText:o?n.textSecondary:"#9ca3af"},children:y?.step==="error"?y.message||"Withdraw failed":!Number.isFinite(h.usdValue)||h.usdValue<=0?"\u2014":`${Ar(h.usdValue)}${h.priceStatus==="stale"?" (stale)":""}`})]}),I&&m("button",{onClick:()=>{A||(E?E(h.receiptTokenId):a(h))},disabled:A,title:E?"Choose withdrawal network":"Withdraw to external wallet",style:{padding:"6px 10px",borderRadius:"6px",border:o?`1px solid ${n.cardBorder}`:"1px solid #e5e7eb",backgroundColor:o?n.hoverBg:"#ffffff",color:n.textPrimary,fontSize:"11px",fontWeight:600,cursor:A?"default":"pointer",opacity:A?.6:1,whiteSpace:"nowrap"},children:A?"Withdrawing\u2026":"Withdraw"})]})]},h.positionId??`${h.owner??""}:${h.location??""}:${h.receiptTokenId??`${h.tokenAddress}-${h.chainId}`}`)}),c!==void 0&&e.length>c&&B("button",{onClick:()=>u(!d),style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",width:"100%",padding:"8px 12px",...g,cursor:"pointer",color:n.textSecondary,fontSize:"12px",fontWeight:500},children:[m("span",{children:d?"Show less":`Show ${p} more`}),m("span",{style:{transform:d?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease",fontSize:"10px"},children:"\u25BE"})]})]})]})},yg=bo(wg),bg=({appName:e,status:t,statusLabel:n,totalUsdValue:o,breakdownSubtitle:r,showUsdSummary:a,address:i,spiceAssets:s,spiceAssetsLoading:c,customSections:l,notice:d,onDepositClick:u,onWithdrawClick:p,depositDisabled:w,primaryColor:f,buttonStyles:g,dk:h,dark:b=!1,showModeToggle:v,isEmbeddedMode:C,onModeToggle:x,showConnectExternalCta:k,onConnectExternalWallet:E,connectExternalError:I,showHowItWorks:y=!0,canDirectWithdraw:A,onDirectWithdraw:T,directWithdrawState:F,idleBalancesLimit:L})=>{const[R,N]=H(!1);return B("div",{style:{display:"flex",flexDirection:"column",gap:"16px",padding:"16px",maxHeight:"calc(80vh - 32px)",overflowY:"auto"},children:[m(ug,{appName:e,status:t,statusLabel:n,totalUsdValue:o,breakdownSubtitle:r,showUsdSummary:a,address:i,dk:h,dark:b,showModeToggle:v,isEmbeddedMode:C,onModeToggle:x}),d&&m("div",{style:{padding:"10px 12px",borderRadius:"8px",backgroundColor:d.tone==="warning"?b?"rgba(245, 158, 11, 0.12)":"#fffbeb":d.tone==="success"?b?"rgba(16, 185, 129, 0.12)":"#ecfdf5":h.cardBg,border:d.tone==="warning"?b?"1px solid rgba(245, 158, 11, 0.35)":"1px solid #fde68a":d.tone==="success"?b?"1px solid rgba(16, 185, 129, 0.35)":"1px solid #a7f3d0":b?`1px solid ${h.cardBorder}`:"1px solid #e5e7eb",color:d.tone==="warning"?b?"#fbbf24":"#92400e":d.tone==="success"?b?"#34d399":"#047857":h.textSecondary,fontSize:"12px",lineHeight:1.45,fontWeight:500},children:d.message}),k&&B("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[m("button",{onClick:E,style:{width:"100%",padding:"10px 14px",borderRadius:"8px",backgroundColor:f||"#EA4B4B",color:"#ffffff",border:"none",cursor:"pointer",fontSize:"13px",fontWeight:600,fontFamily:tt.ui,transition:"opacity 150ms ease"},children:"Connect External Wallet"}),I&&m("span",{style:{fontSize:"11px",color:b?h.errorText:"#b91c1c",lineHeight:1.4},children:I})]}),m("div",{style:{height:"1px",backgroundColor:b?"#2d2d2d":"#e5e7eb"}}),m(sg,{onDepositClick:u,onWithdrawClick:p,depositDisabled:w,primaryColor:f,buttonStyles:g,dark:b}),y&&B("div",{children:[B("button",{onClick:()=>N(!R),style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"8px 12px",backgroundColor:h.cardBg,border:b?`1px solid ${h.cardBorder}`:"1px solid #e5e7eb",borderRadius:"8px",cursor:"pointer",color:h.textSecondary,fontSize:"12px",fontWeight:500},children:[m("span",{children:"How It Works"}),m("span",{style:{transform:R?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease",fontSize:"10px"},children:"\u25BE"})]}),R&&B("div",{style:{marginTop:"6px",padding:"10px 12px",backgroundColor:b?h.cardBg:"#f0fdf4",border:b?`1px solid ${h.cardBorder}`:"1px solid #bbf7d0",borderRadius:"8px",fontSize:"12px",lineHeight:1.5,color:b?h.textSecondary:"#374151"},children:["Fund your ",e," Account from any supported chain. Once funded, transact gas-free and asset-abstracted on ",e,"."]})]}),m(yg,{spiceAssets:s,loading:c,dk:h,dark:b,canDirectWithdraw:A,onDirectWithdraw:T,directWithdrawState:F,onWithdrawClick:p,limit:L}),l.map((O,D)=>m(cg,{section:O,dk:h,dark:b},D))]})},xg=bo(bg);function vg({dark:e,onSuccess:t,onError:n}){const{disconnect:o}=pi(),{logout:r}=yl(),[a,i]=H(!1);return m(Kt,{variant:"ghost",fullWidth:!0,dark:e,loading:a,onClick:async()=>{i(!0);try{o(),await r(),t()}catch(s){n(Ln(s,"Unable to disconnect. Please try again."))}finally{i(!1)}},children:"Disconnect"})}const Ic=380,Dr=8,Ig=[],kg={};function Zu(e){return e?.trim().replace(/^spice/i,"").replace(/[^a-z0-9]/gi,"").toUpperCase()||void 0}function Cg(e,t){const n=new Map;Object.entries(t).forEach(([r,a])=>{if(!Number.isFinite(a)||a<=0)return;n.set(r,a),n.set(r.toUpperCase(),a);const i=Zu(r);i&&n.set(i,a)});const o=[e.symbol,e.displaySymbol,e.receiptTokenName,e.name,e.displayName];for(const r of o){if(!r)continue;const a=n.get(r)??n.get(r.toUpperCase());if(a!==void 0)return a;const i=Zu(r);if(!i)continue;const s=n.get(i);if(s!==void 0)return s}return 0}const Xu=({appName:e,status:t="active",statusLabel:n,customSections:o=Ig,extraAssets:r=[],tokenPrices:a={},tokenLogos:i=kg,breakdownLabels:s=[],notice:c,styles:l,dark:d,onDepositClick:u,onWithdrawClick:p,showModeToggle:w=!1,defaultMode:f,showUsdSummary:g=!0,alwaysShowEmbeddedIdle:h=!1,idleBalancesLimit:b,showDisconnect:v=!1})=>{const C=gn(sn),x=C?.mode!=="7702",k=!!C?.isWhitelistGateActive,E=!!C?.isWhitelistConfigured&&C?.isUserWhitelisted!==!0,I=Z(!1);we(()=>{if(!I.current){if(Jp()){I.current=!0;return}f&&C?.setMode&&(C.setMode(f==="non7702"?"ondemand":"7702"),I.current=!0)}},[C,f]);const[y,A]=H(!1),[T,F]=H({top:0,bottom:0,left:0,placement:"below"}),L=Z(null),R=Z(null),{address:N,isConnected:O}=Po(),D=C?.embeddedWalletAddress,M=C?.externalWalletAddress,{embeddedAddress:S}=zr(),{brand:U,dark:q,primaryColor:X,dk:K}=dn(l,d),Q=e??U?.appName??"Spice",Y=x&&!M,oe=!x||h,he=oe?D||S:N,ve=Ee(()=>C?.supportedChainIds??ps("mainnet"),[C?.supportedChainIds]),ae=Tr({owner:oe?he:M,role:"holding",sourceChains:ve,additionalSourceTokens:r.filter(Re=>!Re.receiptTokenId&&(!Re.owner||G(Re.owner,oe?he:M))).map(Re=>({address:Re.tokenAddress,chainId:Re.chainId,decimals:Re.tokenDecimals,symbol:Re.tokenSymbol,logoURI:Re.logoURI})),includeRollupAssets:oe,enabled:oe?!!he:!!M}),ie=ae.assets.filter(Re=>Re._source==="spice"),ne=ae.walletAssets,_=ae.loading,de=ae.refresh,W=oe?he:M,Me=Ee(()=>r.filter(Re=>!Re.owner||Re.owner.toLowerCase()===W?.toLowerCase()).map(Re=>({...Re,owner:Re.owner??W,location:Re.location??(Re.receiptTokenId?"rollup":oe?"embedded":"external")})),[r,W,oe]),Oe=Ee(()=>{const Re=new Map(Object.entries(a).filter(([,Se])=>Number.isFinite(Se)&&Se>0).map(([Se,kt])=>[Se.toLowerCase(),kt]));return ne.map(Se=>({owner:Se.owner,location:Se.location,positionId:ke(Se),tokenAddress:Se.address,tokenSymbol:Se.symbol,tokenDecimals:Se.decimals,chainId:Se.chainId,chainDisplayName:uo(Se.chainId),balance:Se.balance.toString(),balanceFormatted:Se.balanceFormatted,usdValue:Se.balanceUsd||(Re.get(`${Se.chainId}:${Se.address.toLowerCase()}`)??0)*Se.balanceFormatted,logoURI:Se.logoURI||i[Se.symbol],directWithdraw:oe}))},[ne,Me,i,a,oe]),z=Ee(()=>{const Re=oe?ie.map(ye=>{const nt=ye.balanceUsd||0,mt=Number.isFinite(ye.balanceFormatted)?ye.balanceFormatted:0,qe=Cg(ye,a),Nt=ye.priceStatus&&qe>0?qe*mt:nt>0?nt:qe*mt;return{owner:ye.owner,location:ye.location,positionId:ke(ye),tokenAddress:ye.address,tokenSymbol:ye.symbol,tokenDisplaySymbol:_p(ye),tokenDisplayName:$p(ye),tokenDecimals:ye.decimals,chainId:ye.chainId,chainDisplayName:ii(ye),balance:ye.balance.toString(),balanceFormatted:ye.balanceFormatted,usdValue:Nt,priceStatus:qe>0?void 0:ye.priceStatus,logoURI:ye.logoURI,receiptTokenId:ye.receiptTokenId,receiptTokenName:ye.receiptTokenName}}):[],Se=ye=>`${ye.owner?.toLowerCase()}:${ye.location}:${ye.chainId}:${ye.receiptTokenId??dt(ye.tokenAddress).toLowerCase()}`,kt=new Map([...ae.rollupAssets,...ne].map(ye=>[Se({...ye,tokenAddress:ye.address}),ye])),vt=new Map([...Re,...Oe].map(ye=>[Se(ye),ye]));for(const ye of Y?[]:Me){const nt=Se(ye),mt=vt.get(nt);vt.set(nt,mt?{...ye,...mt,logoURI:ye.logoURI??mt.logoURI,tokenDisplayName:ye.tokenDisplayName??mt.tokenDisplayName,tokenDisplaySymbol:ye.tokenDisplaySymbol??mt.tokenDisplaySymbol}:ye)}return[...vt.values()].filter(ye=>BigInt(ye.balance)>0n&&cd({isDiscovered:kt.get(Se(ye))?.isDiscovered,balanceUsd:ye.usdValue},!0)&&ts(kt.get(Se(ye))??{address:ye.tokenAddress,symbol:ye.tokenSymbol,displaySymbol:ye.tokenDisplaySymbol},C?.allowedTokens)).sort((ye,nt)=>nt.usdValue-ye.usdValue)},[oe,Y,ie,ae.rollupAssets,a,Oe,Me,C?.allowedTokens]),V=Ee(()=>z.reduce((Re,Se)=>Re+Se.usdValue,0),[z]),te=Ee(()=>o.reduce((Re,Se)=>Re+(Se.totalValue??0),0),[o]),ue=V+te,J=Ee(()=>{const Re=[];V>0&&Re.push(`${Ar(V)} idle`);for(const Se of o){const kt=s.find(vt=>vt.sectionTitle===Se.title)?.label||Se.title.toLowerCase();Re.push(`${Ar(Se.totalValue??0)} ${kt}`)}return Re.join(" \xB7 ")},[V,o,s]),ce=re(()=>{if(!L.current)return;const Re=L.current.getBoundingClientRect(),Se=window.innerHeight-Re.bottom-Dr,kt=Re.top-Dr,vt=Se>=400||Se>=kt?"below":"above",ye=Math.max(Dr,Math.min(Re.right-Ic,window.innerWidth-Ic-Dr)),nt=vt==="below"?Re.bottom+Dr:Re.top-Dr,mt=vt==="above"?window.innerHeight-nt:0;F({top:nt,bottom:mt,left:ye,placement:vt})},[]);Wo(()=>{y&&ce()},[y,ce]),we(()=>{if(!y)return;const Re=vt=>{L.current&&!L.current.contains(vt.target)&&R.current&&!R.current.contains(vt.target)&&A(!1)},Se=vt=>{vt.key==="Escape"&&A(!1)},kt=()=>ce();return document.addEventListener("mousedown",Re),document.addEventListener("keydown",Se),window.addEventListener("scroll",kt,{passive:!0}),window.addEventListener("resize",ce),()=>{document.removeEventListener("mousedown",Re),document.removeEventListener("keydown",Se),window.removeEventListener("scroll",kt),window.removeEventListener("resize",ce)}},[y,ce]);const He=oe?D||S||N:M||N,Xe=re(()=>{C?.setMode&&C.setMode(x?"7702":"ondemand")},[C,x]),[Ve,se]=H(null);let Ue=null;try{Ue=wl({onSuccess:()=>se(null),onError:Re=>se(Ln(Re,"Failed to connect wallet."))}).connectWallet}catch{Ue=null}const be=re(()=>{Ue&&(A(!1),se(null),Ue({walletChainType:"ethereum-only"}))},[Ue]),Ye=!M&&!!Ue,Be=re(()=>{A(!1),u?.()},[u]),Pe=re(Re=>{A(!1),p?.(Re)},[p]),[Fe,je]=H(null),St=oe&&!!M&&!G(W,M),gt=re(Re=>{const Se=ne.find(kt=>kt.chainId===Re.chainId&&G(kt.address,Re.tokenAddress));Se&&(A(!1),je(Se))},[ne]);if(typeof window>"u")return null;const ft=B("button",{ref:L,onClick:()=>A(!y),style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"8px 14px",borderRadius:"9999px",backgroundColor:q?K.hoverBg:"#ffffff",border:q?`1px solid ${K.cardBorder}`:"1px solid #e5e7eb",cursor:"pointer",fontSize:"13px",fontWeight:500,fontFamily:tt.ui,color:q?K.textPrimary:"#111827",transition:"background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease",boxShadow:q?"none":"0 1px 2px rgba(0,0,0,0.05)"},children:[B("span",{children:[Q," Account"]}),O&&g&&B("span",{style:{color:q?K.textSecondary:"#6b7280"},children:["\xB7 ",Ar(ue)]}),m("span",{style:{fontSize:"10px",color:q?K.textSecondary:"#9ca3af",transform:y?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease"},children:"\u25BE"})]}),ct=y?bl.createPortal(B(Sn,{children:[m("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.08)",zIndex:Cr.popover},onClick:()=>A(!1)}),B("div",{ref:R,style:{position:"fixed",top:T.placement==="below"?`${T.top}px`:"auto",bottom:T.placement==="above"?`${T.bottom}px`:"auto",left:`${T.left}px`,width:`${Ic}px`,maxWidth:`calc(100vw - ${Dr*2}px)`,maxHeight:"80vh",backgroundColor:q?K.shell:"#ffffff",border:q?`1px solid ${K.cardBorder}`:"1px solid #e5e7eb",borderRadius:"12px",boxShadow:q?"0 10px 40px rgba(0, 0, 0, 0.5)":"0 10px 40px rgba(0, 0, 0, 0.12)",zIndex:Cr.popover+1,overflow:"hidden",animation:`accountDisplayFadeIn 200ms ${qr.out}`},children:[m(xg,{appName:Q,status:t,statusLabel:n,totalUsdValue:ue,breakdownSubtitle:J,showUsdSummary:g,address:oe?He:N,spiceAssets:z,spiceAssetsLoading:_,customSections:o,notice:c,onDepositClick:u?Be:void 0,onWithdrawClick:p?Pe:void 0,depositDisabled:E,primaryColor:X,buttonStyles:l?.button,dk:K,dark:q,showModeToggle:w,isEmbeddedMode:!x,onModeToggle:Xe,showConnectExternalCta:Ye,onConnectExternalWallet:be,connectExternalError:Ve,showHowItWorks:!k,canDirectWithdraw:St,onDirectWithdraw:gt,idleBalancesLimit:b}),v&&O&&m("div",{style:{padding:"0 16px 16px"},children:m(vg,{dark:q,onSuccess:()=>A(!1),onError:se})})]}),m("style",{children:`
18
18
  @keyframes accountDisplayFadeIn {
19
19
  from { opacity: 0; transform: translateY(-4px); }
20
20
  to { opacity: 1; transform: translateY(0); }
21
21
  }
22
- `})]}),document.body):null;return R(vn,{children:[st,$e,pe&&hl.createPortal(m(hc,{isOpen:!0,onClose:()=>et(null),styles:l,walletAssets:{initialAsset:pe},onWithdrawSuccess:()=>{ue(),et(null)}}),document.body)]})},Ku=({chainId:e,name:t,size:n=16})=>{const o=e&&(ur[e]||ls(e)?.logo)||"";return o?m("img",{src:o,alt:t||`Chain ${e}`,loading:"lazy",decoding:"async",width:n,height:n,style:{width:`${n}px`,height:`${n}px`,borderRadius:"50%",objectFit:"cover",flexShrink:0}}):null},Vs=({symbol:e,label:t,logoURI:n,chainId:o,address:r,size:a=20,theme:i})=>{const{theme:s}=dn(),c=i||s,[l,u]=H(),d={width:`${a}px`,height:`${a}px`,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:`${a*.4}px`,fontWeight:c.typography.fontWeight.bold,flexShrink:0,overflow:"hidden",backgroundColor:"#ffffff"},p=wc(n===null?null:n||Fi[e.toUpperCase()],o,r);if(n===null)return null;if(p&&p!==l)return m("img",{src:p,alt:t??e,loading:"lazy",decoding:"async",style:{...d,objectFit:"cover"},onError:()=>u(p)});const w=vg(e);return m("div",{style:{...d,...w.style},children:w.icon})},vg=e=>{const t=e.toUpperCase(),n={ETH:{bg:"#627EEA",text:"#FFFFFF",icon:"\u039E"},BTC:{bg:"#F7931A",text:"#FFFFFF",icon:"\u20BF"},USDC:{bg:"#2775CA",text:"#FFFFFF"},USDT:{bg:"#26A17B",text:"#FFFFFF"},DAI:{bg:"#F5AC37",text:"#FFFFFF"},WETH:{bg:"#627EEA",text:"#FFFFFF",icon:"\u039E"},WBTC:{bg:"#F09242",text:"#FFFFFF",icon:"\u20BF"},CBTC:{bg:"#F7931A",text:"#FFFFFF",icon:"\u20BF"},USD:{bg:"#26A17B",text:"#FFFFFF",icon:"$"},MATIC:{bg:"#8247E5",text:"#FFFFFF"},AVAX:{bg:"#E84142",text:"#FFFFFF"},SOL:{bg:"#9945FF",text:"#FFFFFF"},DOT:{bg:"#E6007A",text:"#FFFFFF"},ADA:{bg:"#0033AD",text:"#FFFFFF"},LINK:{bg:"#375BD2",text:"#FFFFFF"},UNI:{bg:"#FF007A",text:"#FFFFFF"},AAVE:{bg:"#B6509E",text:"#FFFFFF"},CRV:{bg:"#40E0D0",text:"#000000"}}[t];if(n)return{style:{backgroundColor:n.bg,color:n.text},icon:n.icon||t.charAt(0)};const o=t.split("").reduce((s,c)=>c.charCodeAt(0)+((s<<5)-s),0),r=Math.abs(o)%360,a=`hsl(${r}, 60%, 50%)`,i=r>180?"#FFFFFF":"#000000";return{style:{backgroundColor:a,color:i},icon:t.charAt(0)}},Ig=({selectedAsset:e,assets:t,onAssetSelect:n,showDropdown:o,onToggleDropdown:r,disabled:a=!1,theme:i,onViewAllAssets:s,getAvailableBalance:c})=>{const l=No(),u=B=>{const D=c?c(B):B.balance;return D===void 0?"...":cs({balance:D,decimals:B.decimals})},{theme:d}=dn(),p=i||d,w=J(null),f=J(null),g=J(null),[h,b]=H(null);he(()=>{if(o&&f.current){const B=()=>{if(f.current){const D=f.current.getBoundingClientRect();b({top:D.bottom+6,right:window.innerWidth-D.right})}};return B(),window.addEventListener("scroll",B,!0),window.addEventListener("resize",B),()=>{window.removeEventListener("scroll",B,!0),window.removeEventListener("resize",B)}}else b(null)},[o]),he(()=>{const B=D=>{w.current&&!w.current.contains(D.target)&&g.current&&!g.current.contains(D.target)&&o&&r()};return o&&document.addEventListener("mousedown",B),()=>{document.removeEventListener("mousedown",B)}},[o,r]);const[x,C]=H(!1),v=p.mode==="light",A={backgroundColor:"transparent",border:`1px solid ${v?"#aaaaaa":p.colors.border}`,borderRadius:"6px",color:p.colors.text,cursor:a?"not-allowed":"pointer",padding:"8px 14px 8px 10px",width:"100%",display:"flex",flexDirection:"column",gap:"4px",opacity:a?.6:1,transition:ho.interactive,transform:x?"scale(0.98)":"scale(1)"},T={display:"flex",justifyContent:"space-between",alignItems:"center",gap:"10px",minWidth:0},I={display:"flex",alignItems:"center",gap:"4px",paddingTop:"4px",borderTop:`1px solid ${p.colors.border}`},y=()=>h?{position:"fixed",top:`${h.top}px`,right:`${h.right}px`,backgroundColor:p.colors.secondary,border:`1px solid ${p.colors.border}`,borderRadius:p.borderRadius.md,boxShadow:p.shadows.lg,zIndex:Ar.dropdown,width:"200px",maxHeight:"300px",overflow:"auto"}:{},k={backgroundColor:"transparent",border:"none",color:p.colors.text,cursor:"pointer",padding:p.spacing.sm,width:"100%",display:"flex",alignItems:"center",gap:p.spacing.sm,transition:`background-color ${p.animation.normal}`,":hover":{backgroundColor:p.colors.surfaceHover}},E={display:"flex",flexDirection:"column",alignItems:"flex-start",flex:1},F={fontSize:p.typography.fontSize.sm,fontWeight:p.typography.fontWeight.medium},U={fontSize:p.typography.fontSize.xs,color:p.colors.textMuted},O={backgroundColor:"transparent",border:"none",borderTop:`1px solid ${p.colors.border}`,color:p.colors.primary,cursor:"pointer",padding:"10px 12px",width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",fontFamily:p.typography.fontFamily,fontSize:p.typography.fontSize.xs,fontWeight:p.typography.fontWeight.medium,textDecoration:"underline",textUnderlineOffset:"2px"},M={transition:`transform ${p.animation.normal}`,transform:o?"rotate(180deg)":"rotate(0deg)",flexShrink:0};return R(vn,{children:[m("div",{style:{position:"relative"},ref:w,children:R("div",{ref:f,style:A,onClick:a?void 0:r,onMouseLeave:()=>{C(!1)},onMouseDown:()=>C(!0),onMouseUp:()=>C(!1),children:[R("div",{style:T,children:[m("div",{style:{display:"flex",alignItems:"center",gap:"8px",flex:1,minWidth:0},children:e?.asset?R(vn,{children:[m(Vs,{symbol:e.asset.symbol,label:l(e.asset).symbol,logoURI:l(e.asset).logoURI,chainId:e.asset.chainId,address:e.asset.address,theme:p,size:24}),m("span",{style:{fontSize:"15px",fontWeight:500,color:p.colors.text,lineHeight:"1.5",flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l(e.asset).symbol})]}):m("span",{style:{fontSize:"14px",color:p.colors.textMuted},children:"Select"})}),m("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:v?p.colors.textMuted:"#c7ccd4",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:M,children:m("path",{d:"M6 9l6 6 6-6"})})]}),e?.asset&&R("div",{style:I,children:[!e.asset.displayChainName&&m(Ku,{chainId:e.asset.chainId,theme:p}),m("span",{style:{fontSize:"11px",color:p.colors.textMuted},children:oi(e.asset)})]})]})}),o&&h&&pi(R("div",{ref:g,style:y(),children:[t.length===0&&m("div",{style:{padding:"10px 12px",color:p.colors.textMuted,fontSize:p.typography.fontSize.xs},children:"No assets available"}),t.map(B=>R("button",{style:k,onClick:()=>{n(B),r()},children:[m(Vs,{symbol:B.symbol,label:l(B).symbol,logoURI:l(B).logoURI,chainId:B.chainId,address:B.address,theme:p},Ie(B)),R("div",{style:E,children:[R("div",{style:{display:"flex",alignItems:"center",gap:p.spacing.xs},children:[m("span",{style:F,children:l(B).symbol}),!B.displayChainName&&m(Ku,{chainId:B.chainId,theme:p})]}),R("span",{style:U,children:[u(B)," \u2022 ",oi(B)]})]})]},Ie(B))),s&&R("button",{type:"button",style:O,onClick:()=>{r(),s()},children:[m("span",{children:"View all assets"}),R("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m("path",{d:"M5 12h14"}),m("path",{d:"M13 5l7 7-7 7"})]})]})]}),document.body)]})},kg=({assets:e,selectedAsset:t,onAssetSelect:n,onAmountChange:o,disabled:r=!1,loading:a=!1,label:i="Select Asset",showBalance:s=!0,showMaxButton:c=!0,placeholder:l="0.0",theme:u,styles:d,maxAmount:p,resolveMaxAmount:w,getAvailableBalance:f,hideAmountInput:g=!1,displayAmount:h,dark:b,onViewAllAssets:x})=>{const C=No(),{theme:v,primaryColor:A,dark:T,dk:I}=dn(d,b),y=u||v,k=b??T,[E,F]=H(!1),[U,O]=H(null),[M,B]=H(null),[D,W]=H(!1),[S,q]=H(null),[z,te]=H(t?.amount||""),Y=J(0),j=t?.asset?Ie(t.asset):"",K=t?.asset?f?f(t.asset):t.asset.balance:void 0,X=S??p;Po(()=>()=>{Y.current++},[]),Po(()=>{Y.current++,te(t?.amount||""),W(!1)},[j,t?.amount]),Po(()=>{Y.current++,q(null),W(!1)},[j,t?.asset.owner,t?.asset.decimals,t?.asset.balance,K,p,w,r,a]);const xe=()=>{Y.current++,W(!1)},ge=()=>{const L=t?.asset;if(!L||K===void 0)return;if(!X)return K;const V=Xn(X,L.decimals);return V<K?V:K},ve=L=>{te(L),o?.(L)},Se=L=>{xe();const V=t?.asset,oe=is(L.startsWith(".")?`0${L}`:L,V?.decimals);if(!V||!oe)return ve(oe);const le=Xn(oe,V.decimals),Z=ge();ve(Z!==void 0&&le>Z?Me(Z,V.decimals):oe)},ne=async()=>{const L=t?.asset;if(!L||r||a||K===void 0)return;const V=++Y.current,oe=()=>Y.current===V,le=w;if(S!==null){const se=ge();se!==void 0&&ve(Me(se,L.decimals));return}if(le){W(!0);try{const se=await le(L);if(!oe())return;if(se!==null){const We=is(se,L.decimals),He=ge();if(!We||He===void 0)return;const ye=Xn(We,L.decimals)>He?Me(He,L.decimals):We;q(ye),ve(ye);return}return}catch(se){oe()&&console.warn("[AssetSelector] Failed to resolve max amount:",se);return}finally{oe()&&W(!1)}}const Z=ge();oe()&&Z!==void 0&&ve(Me(Z,L.decimals))},_=async L=>{if(!t||r||K===void 0)return;if(L===100)return ne();xe();const V=ge();V!==void 0&&ve(Me(V*BigInt(L)/100n,t.asset.decimals))},ue=t&&K!==void 0?Number(Me(K,t.asset.decimals)):0,P=parseFloat(z)||0,Le=ue>0?P/ue*100:0,Be={backgroundColor:d?.assetSelector?.backgroundColor||d?.secondaryBackground||(k?I.cardBg:"#e9e9e9"),border:k?`0.5px solid ${I.cardBorder}`:"0.5px solid #A8A8A7",borderRadius:d?.assetSelector?.borderRadius||"6px",padding:d?.assetSelector?.padding||"16px",height:"auto",minHeight:g?void 0:"144px",display:"flex",flexDirection:"column",gap:"8px",position:"relative",opacity:r?.6:1};return a?m("div",{style:Be,children:R("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[m("div",{style:{backgroundColor:k?I.hoverBg:"#d1d5db",borderRadius:"4px",height:"16px",width:"60px"}}),m("div",{style:{backgroundColor:k?I.hoverBg:"#d1d5db",borderRadius:"4px",height:"40px",width:"150px"}})]}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"8px"},children:[m("div",{style:{backgroundColor:k?I.hoverBg:"#d1d5db",borderRadius:"4px",height:"12px",width:"80px"}}),m("div",{style:{backgroundColor:k?I.hoverBg:"#d1d5db",borderRadius:"6px",height:"46px",width:"128px"}})]})]})}):R("div",{style:Be,children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:{fontFamily:d?.fontFamily||y.typography.fontFamily,fontSize:"16px",fontWeight:500,color:k?I.textSecondary:"#7d7c7b",lineHeight:"24px"},children:i}),s&&t?.asset&&R("span",{style:{fontFamily:d?.fontFamily||y.typography.fontFamily,fontSize:"12px",fontWeight:500,color:k?I.textSecondary:"#71757a",lineHeight:"16px"},children:["Balance:"," ",K===void 0?"...":cs({balance:K,decimals:t.asset.decimals})]})]}),R("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px 12px",justifyContent:g&&!h?"flex-start":"space-between",alignItems:"center",flex:1},children:[!g&&m(Dr,{element:"input",ariaLabel:t?.asset?`${C(t.asset).symbol} amount`:"Amount",dataSpiceflowFocus:!0,value:z,onChange:L=>Se(L.target.value),placeholder:l,disabled:r||!t?.asset,fontFamily:d?.fontFamily||y.typography.fontFamily,color:r?k?"rgba(255, 255, 255, 0.16)":"rgba(14, 13, 11, 0.16)":z?k?"#ffffff":"#0e0d0b":k?"#4a5568":"#d1d5db",lineHeight:"1.08",maxFontSize:40,minFontSize:22,style:{width:"100%",maxWidth:"200px",flex:"1 1 200px",minWidth:"min(200px, 100%)"}}),m("div",{style:{width:"176px",maxWidth:"100%",position:"relative",flexShrink:0,marginLeft:g&&!h?void 0:"auto"},children:m(Ig,{selectedAsset:t,assets:e,onAssetSelect:L=>{xe(),q(null),n(L)},showDropdown:E,onToggleDropdown:()=>F(!E),disabled:r,theme:y,onViewAllAssets:x,getAvailableBalance:f})}),g&&h&&m(Dr,{element:"span",value:h,title:h,fontFamily:d?.fontFamily||y.typography.fontFamily,color:k?"#ffffff":"#0e0d0b",lineHeight:"1.08",textAlign:"right",maxFontSize:40,minFontSize:22,style:{flex:"1 1 200px",minWidth:"min(200px, 100%)"}})]}),!g&&m("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"10px",height:"14px"},children:[0,25,50,75,100].filter(L=>c||L!==100).map((L,V)=>{const oe=Math.abs(Le-L)<1,le=V===4,Z=U===L,se=M===L;return m("button",{onClick:()=>_(L),onMouseEnter:()=>O(L),onMouseLeave:()=>{O(null),B(null)},onMouseDown:()=>B(L),onMouseUp:()=>B(null),disabled:r||!t?.asset||K===void 0||L===100&&D,title:`${L}%`,style:{width:"14px",height:"14px",padding:0,border:"none",backgroundColor:"transparent",cursor:r||!t?.asset||K===void 0||L===100&&D?"not-allowed":"pointer",opacity:oe?1:Z?.8:.5,transform:se?"scale(0.85)":Z?"scale(1.15)":"scale(1)",transition:ho.interactive},children:m(fc,{pct:L,isMax:le,primaryColor:A,dark:k,fillColor:k?I.textSecondary:"#3C3E42"})},L)})})]})},oa=wo(kg);function Cg({asset:e,showLogo:t=!0,showLabel:n=!0,denomination:o="token",className:r,style:a}){const i=No()(e),s=o==="token"?cs(e):Number.isFinite(e.balanceUsd)&&(e.balanceUsd>0||e.balance===0n)?Sr(e.balanceUsd):"\u2014";return R("span",{className:r,style:{display:"inline-flex",alignItems:"center",gap:6,...a},children:[t&&m(Vs,{symbol:e.symbol,label:i.symbol,logoURI:i.logoURI,chainId:e.chainId,address:e.address}),n&&m("span",{children:i.symbol}),m("span",{children:s})]})}var Ag="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAASrdJREFUeAHtfQeYHMd15quemc0LLhjBiAEDCAYQiUkgRQDMBNNClBlkSwdYsqQ7fz7Jd2f7fLYOgD/rbMmyLZ19n0VZMmDLFCWaFMAcRBILRjAgMElgxIAUAZAEiMXmndB19arqVVXPzkzPzM7ODqj+ycX09FSnqvfqxXoNECFChAgRIkSIECFChAgRIkRoCDCYACxe3N01mGhL5gDmQg6mi4skxZW6GGNdnPMkNxdnXQC8a8xNMQaiXdHz0+9uu2L7EO65ws4tWvRy4L30zQOekucAlhKH4fZOz/dTHdCyradnbS8cBOhew7sSTYNJ8Py5HGLTRRckuY/jwbvEGCQlFWCXeNCF+6FCYDdTl9I2cyirUHe7x4SgVzQ1/cyZGA95HEsxD1Ken9uJ2yMjHdvWr2A1H4+aMQgyxUC84+uC+BaJx1gMNQYRP6EQoee3Gc+16BohLXs8L7Y+Fsvevemhn6aggYBM0dQy9HXRI2Y88omSHq9MQg2gEIEXYpRibSs5b/kQ4xHz1o/m2N3rb2lNQQ0wbmqau/jmZCzmrRREtTyfoHI5XzysDznfVw8t/sFtAhJiYHYHNZG528y0hbLvljntzfEFrgFOG/d35nnmXJ7ejnlMbsdiMdXOkU56e20i4a+ebEa5+fZhIbn9lWJzeal2PvY92H6Sw+J2utshhVCoQ/OP158liT5/gPLPKeCx4Dk9uS+EGBiszXBv9XgZpWoGmSskRjze9nXf5ytpNse/TCYL6UxGM0fVU0FDA59XTArQlEhAPBE3g6X6wV+95fGfroI6w0oMWOn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o8qZQBPCjVrAxnuCFxv/pvKKMgUyByORE0JF/mSWqpVpfCrm2clm2JNGwRpJRXxcxwQxQOukcwt0bmGLA+Qsoam4ADhAzNMxWlpHwu2p22XIbizDDDQHgI2uIXmHHBS5fOy1gGMq8hkHRupxrwYk4NimMVLpTOjS0776fYUVIhxKUlCmqxE16WbhMe5Yhb6/kmEGxty1UzcFpPEKiFVvwfAJqQyTCns+J0zV/q+twoCTh1BnpJZJENYl5R18HArUhy65HZGt1Scr1S7+9Roa16w7fKJnTvHsjzi5matx9jrMee+8xnT06olDgj+kf2hzr6qb6jve/PWp6oaj3ExiL7DpLBHVoqN5QV/5cFPkjKNnCWcT/SO/3DM7w7WChf46npJjWJAaZKA2EqhWizH75xohYifXLE5XxO/3M8CdK63yd1q1TOX0JVqZAQD6UqcB1yu+ec1mcaGABgZMzbj2PktQKFGRGgWZgCWo5iWVPo4T4yHn1ldjdRwUQMGIUhGuV5soI2y2FyA5QvD4PyW32aiUWgedBmgwvvoEe17JktilIJUu7ym6wXBdYsZdbFJ82YMiMrdyTzf1gA3aoH/46zseWr1Hf1u7A0tAMi8UZaB1s5UQqBhOqOikelgmNFe2zAH08LLN+3ACDx3oAy/9YhfevpGBqqWGPmoIYO44F3CkzNH3HQS7RT8FDuT+sekaaUM/a5iZ5koxinEJM5vvUJK91I7rpbGyn1YiQS/i+2X1IKnxmKKYtjanezqSnTOycVZkuX8pKDSpNg9XUbiGZthTF3wu8R2V57WZNUavR2wBwrNero92SH0u5ELuB7cHdjAOcBRpeQ5e8Xmfm68WTwlfusVJ+gV7ogUi8VTsWz2pd7MUKpWTBEhQoQIESJEiBAhQoQIESJEaED8f8CLHLNBkXU/AAAAAElFTkSuQmCC",Yu="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.51484 1.22476C5.04689 0.494255 5.87167 0 6.83333 0C7.79352 0 8.62302 0.493038 9.15721 1.22447C10.0512 1.08473 10.9879 1.32154 11.6665 2.00014C12.3456 2.67921 12.5823 3.61677 12.4419 4.51135C13.1714 5.04616 13.6667 5.87042 13.6667 6.83333C13.6667 7.79624 13.1714 8.62051 12.4419 9.15532C12.5823 10.0499 12.3456 10.9875 11.6665 11.6665C10.986 12.3471 10.049 12.5769 9.15858 12.4403C8.62445 13.1728 7.79434 13.6667 6.83333 13.6667C5.86959 13.6667 5.04474 13.1705 4.50996 12.44C3.619 12.5772 2.68116 12.3475 2.00014 11.6665C1.31939 10.9858 1.08903 10.0476 1.23037 9.15532C0.501138 8.62162 0 7.79824 0 6.83333C0 5.86843 0.501137 5.04504 1.23037 4.51135C1.08903 3.61904 1.31939 2.68089 2.00014 2.00014C2.67986 1.32042 3.61766 1.08457 4.51484 1.22476ZM9.20928 5.95387C9.51334 5.74624 9.59152 5.33144 9.38389 5.02737C9.17626 4.72331 8.76145 4.64514 8.45739 4.85277L8.3995 4.89229C7.48372 5.51764 6.69012 6.30153 6.05487 7.20477L5.30449 6.45518C5.044 6.19497 4.62189 6.1952 4.36168 6.45569C4.10147 6.71618 4.10169 7.13829 4.36218 7.3985L5.7 8.73489C5.84693 8.88167 6.05387 8.95158 6.25971 8.924C6.46555 8.89641 6.64677 8.77448 6.74987 8.5942C7.34322 7.55668 8.16436 6.6674 9.1514 5.9934L9.20928 5.95387Z' fill='%23EA4B4B'/%3e%3c/svg%3e",Sg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAaYAAACLCAYAAAAqND1fAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwABSQ1JREFUeAFsvQm8LelZ1vtV1Rr23uecHtLpdJLuzAlJkClABCWMXrwCgSQkKiJ6ZcgACApcryIXyFUGFRARE0jCKDIE0Bs1SJwgAbwKBBAJZJ473enu9HzOHtZQdet56/l/9e4Nq3+n995rrar6xnd43ud9v+Zf/aufGna7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f5Azf69aIcP4eV5+dOj9fCHdKcjNdft49sEpvoP+9edVXUB1FkmLoD2/JrDseU60n1Yg0ZFHoxHi2ZywrixOSMdVCRuvrssArOhQREMJNB73auUbW6yH6MEoEQlMjfyMKi4deW5ZDmNa959aLOjGonpYynLgrKechQ60uGj/9Vh6kfpi5Cx6ohvNow145S51SzroQDC5qpqZ3yzDWJoK7/KEPTOR3NupEjVZYko1JTRuvjyLnW6b7ugxx8RKzf5l7IaNXHk2GrmYFygPWXYE3VgvT8anhK90DPTcere7L0NzlhnZ/+Xkf6+tJz0b2on2t9jfU163f1/ajXTw091r9TlqrPPbqGpE2ie6Jj1kGLPvvodavASe+ro+Pauelc9JlaG/U9qe9F/XtF1Vpn+nt9bfV16dzqAFHnWL9Orzn687RG6+tWMDOo4JU6+FLkrHP5/3uuR68bnUO9J+o6rdaJrkFfdc0vCuAJASsY1XF1PGWUuj7ttaP7C+tzP/p+10GTnIj+Vl9vvXbq56m1VCvQ6DoUqCo4k62o13n9PLTOhEzV61n7hq/6+nQMQdVHr4HaVtb2ow6M6ntb7+G6Tq+1ouurUZp6Pehz9Nr6NbJtPWzfLPv46nPQseq6fo1u/X+gRuOHSwDbkgAAAABJRU5ErkJggg==";const bc=({value:e,onChange:t,ariaLabel:n,placeholder:o,endAdornment:r,size:a="lg",dark:i,styles:s,inputRef:c,autoFocus:l})=>{const{dark:u,dk:d}=dn(s,i),p=i??u,w=a==="lg",f=w?"15px":"14px",g=w?"7px":"10px",h=w?ri.input:ri.sm,b=s?.fontFamily||nt.ui,x=p?d.inputBg:"#FAFAFA",C=p?d.inputBorder:"#e5e7eb",v=p?d.textPrimary:"#374151",A=p?d.textSecondary:"#9ca3af";return R("div",{style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:x,borderRadius:h,boxShadow:p?"0 2px 4px rgba(0, 0, 0, 0.3)":"0 2px 4px rgba(0, 0, 0, 0.1)",padding:`${g} 5px`,border:`1px solid ${C}`},children:[m(Qm,{style:{color:A},size:24}),m("input",{ref:c,type:"text",role:"searchbox","aria-label":n,autoComplete:"off",spellCheck:!1,autoFocus:l,"data-spiceflow-focus":!0,placeholder:o,value:e,onChange:T=>t(T.target.value),style:{flex:1,backgroundColor:x,outline:"none",border:"none",color:v,fontSize:f,fontWeight:400,fontFamily:b}}),r]})},Eg=({size:e=20,active:t=!1,dark:n=!1})=>R("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m("rect",{x:"2",y:"4",width:"16",height:"2",rx:"1",fill:t?n?"#e5e7eb":"#111827":n?"#9ca3af":"#374151"}),m("rect",{x:"4",y:"9",width:"12",height:"2",rx:"1",fill:t?n?"#e5e7eb":"#111827":"#9ca3af"}),m("rect",{x:"6",y:"14",width:"8",height:"2",rx:"1",fill:t?n?"#e5e7eb":"#111827":"#9ca3af"})]}),Zu=({checked:e,primaryColor:t="#ef4444",dark:n=!1})=>m("div",{style:{width:"18px",height:"18px",borderRadius:"4px",border:e?"none":`2px solid ${n?"#4b5563":"#d1d5db"}`,backgroundColor:e?t:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transition:ho.interactive},children:e&&m("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),Fg=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,onTokenSelect:o,walletAddress:r,supportedChainIds:a,network:i,prefetchedAssets:s,styles:c,dark:l})=>{const[u,d]=H(""),[p,w]=H(null),[f,g]=H(null),[h,b]=H(!1),[x,C]=H(new Set),v=fn(cn),A=i||v?.network||"testnet",T=v?.allowedTokens,I=(v?.mode||"7702")!=="7702",y=!!v?.isWhitelistGateActive,{dark:k,primaryColor:E,dk:F}=dn(c,l),U=k?F.cardBg:"white",O=k?`${E}55`:"#F4A5A5",M=k?"0 4px 12px rgba(0, 0, 0, 0.4)":"0 4px 12px rgba(0, 0, 0, 0.15)",B=k?F.hoverBg:"#E9E9E9",D=k?F.hoverBg:"#f9fafb",W=k?F.textPrimary:"#374151",S=k?F.textPrimary:"#111827",q=k?F.textSecondary:"#9ca3af",z=k?`${E}22`:"#FBDBDB",te=k?`${E}55`:"#F4A5A5",Y=Ae(()=>a||v?.supportedChainIds||us(A),[a,v?.supportedChainIds,A]),j=Ae(()=>Y.map(L=>{const V=kt(L);return V?{id:L,name:V.displayName,icon:ur[L]||Ca}:null}).filter(Boolean),[Y]),K=s===void 0,{assets:X,loading:xe}=Ea({address:K?r:void 0,supportedChains:Y,fetchBalances:Kr,enabled:e&&K&&!!r,refreshInterval:e?5e3:0}),ge=s??(K?X:[]),ve=s===null||K&&xe,Se=Ae(()=>(ge??[]).filter(L=>To(L,"deposit-source",{allowedTokens:T,rpcOverrides:v?.rpcOverrides,liquidityVenues:v?.liquidityVenues,isWhitelistGateActive:y},void 0,void 0,{requiresEscrow:I}).eligible),[ge,T,v?.rpcOverrides,y,I]),ne=Ae(()=>{let L=Se.filter(V=>V.balance>0n);if(x.size>0&&(L=L.filter(V=>x.has(V.chainId))),u.trim()){const V=u.toLowerCase();L=L.filter(oe=>oe.name.toLowerCase().includes(V)||oe.symbol.toLowerCase().includes(V)||oe.address.toLowerCase().includes(V))}return L=[...new Map(L.map(V=>[Ie(V),V])).values()],L.sort((V,oe)=>{const le=V.balanceFormatted>0?1:0,Z=oe.balanceFormatted>0?1:0;return Z!==le?Z-le:oe.balanceUsd!==V.balanceUsd?oe.balanceUsd-V.balanceUsd:oe.balanceFormatted-V.balanceFormatted}),L},[Se,u,x]),_=Ie;he(()=>{const L=document.createElement("link");return L.href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@100;200;300;400;500;600;700&display=swap",L.rel="stylesheet",document.head.appendChild(L),()=>{document.head.removeChild(L)}},[]),he(()=>{e||(d(""),w(null),b(!1),C(new Set))},[e]);const ue=L=>{o(L)},P=L=>{C(V=>{const oe=new Set(V);return oe.has(L)?oe.delete(L):oe.add(L),oe})},Le=()=>{C(new Set)},Be=x.size===0;return R(Io,{isOpen:e,onClose:t,title:"Select a Token",bannerSrc:Sg,bannerAlt:"Select token banner",styles:c,dark:k,closeOnBackdropClick:n,children:[m("div",{style:{padding:"20px 20px"},children:m(bc,{value:u,onChange:d,ariaLabel:"Search tokens",placeholder:"Search token name, symbol or address",dark:k,styles:c,endAdornment:R("div",{style:{position:"relative",flexShrink:0},children:[m("button",{onClick:()=>b(L=>!L),style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"5px",borderRadius:"3px",backgroundColor:h||!Be?B:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.15s"},children:m(Eg,{size:20,active:!Be,dark:k})}),h&&R("div",{style:{position:"absolute",top:"calc(100% + 8px)",right:0,backgroundColor:U,borderRadius:"8px",border:`1px solid ${O}`,boxShadow:M,padding:"8px",minWidth:"220px",zIndex:100},children:[R("button",{onClick:Le,style:{width:"100%",display:"flex",alignItems:"center",gap:"10px",padding:"8px",borderRadius:"6px",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.15s"},onMouseEnter:L=>L.currentTarget.style.backgroundColor=D,onMouseLeave:L=>L.currentTarget.style.backgroundColor="transparent",children:[m(Zu,{checked:Be,primaryColor:E,dark:k}),m("img",{src:Ag,alt:"All Networks",loading:"lazy",decoding:"async",width:20,height:20,style:{width:"20px",height:"20px",borderRadius:"4px",objectFit:"cover"}}),m("span",{style:{fontFamily:nt.mono,fontSize:"12px",fontWeight:600,letterSpacing:"0.5px",color:W},children:"ALL NETWORKS"})]}),j.map(L=>R("button",{onClick:()=>P(L.id),style:{width:"100%",display:"flex",alignItems:"center",gap:"10px",padding:"8px",borderRadius:"6px",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.15s"},onMouseEnter:V=>V.currentTarget.style.backgroundColor=D,onMouseLeave:V=>V.currentTarget.style.backgroundColor="transparent",children:[m(Zu,{checked:x.has(L.id),primaryColor:E,dark:k}),m("img",{src:L.icon,alt:L.name,loading:"lazy",decoding:"async",width:20,height:20,style:{width:"20px",height:"20px",borderRadius:"50%"}}),m("span",{style:{fontFamily:nt.mono,fontSize:"12px",fontWeight:600,letterSpacing:"0.5px",color:W},children:L.name.toUpperCase()})]},L.id))]})]})})}),R("div",{style:{padding:"0 32px 20px",display:"flex",flexDirection:"column",gap:"8px",maxHeight:"400px",overflowY:"auto"},children:[ve&&m("div",{style:{padding:"24px 8px",textAlign:"center",fontFamily:nt.mono,fontSize:"13px",color:q},children:"Loading balances..."}),!ve&&ne.length===0&&m("div",{style:{padding:"24px 8px",textAlign:"center",fontFamily:nt.mono,fontSize:"13px",color:q},children:"No tokens found"}),ne.map(L=>{const V=_(L),oe=p===V,le=f===V,Z=kt(L.chainId)?.displayName||`Chain ${L.chainId}`;return R("button",{onClick:()=>ue(L),onMouseEnter:()=>g(V),onMouseLeave:()=>g(null),style:{width:"100%",display:"flex",alignItems:"center",gap:"16px",padding:"8px",borderRadius:"8px",backgroundColor:oe?z:"transparent",border:oe||le?`1px solid ${te}`:"1px solid transparent",cursor:"pointer",transition:ho.interactive},children:[m("div",{style:{flexShrink:0},children:m(Vs,{symbol:L.symbol,logoURI:L.logoURI,chainId:L.chainId,address:L.address,size:40})}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"2px",flex:1,minWidth:0},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[m("span",{style:{fontFamily:nt.mono,fontSize:"15px",fontWeight:500,letterSpacing:"0.4px",color:S,textAlign:"left"},children:L.name}),m("img",{src:Yu,alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",width:14,height:14,style:{width:"14px",height:"14px"}})]}),R("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[ur[L.chainId]&&m("img",{src:ur[L.chainId],alt:"",loading:"lazy",decoding:"async",width:14,height:14,style:{width:"14px",height:"14px",borderRadius:"50%"}}),R("span",{style:{fontFamily:nt.mono,fontSize:"12px",fontWeight:400,color:q,textAlign:"left"},children:[L.symbol," \xB7 ",Z]})]})]}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"2px",flexShrink:0},children:[L.balanceUsd>0&&m("span",{style:{fontFamily:nt.mono,fontSize:"16px",fontWeight:600,color:S},children:Sr(L.balanceUsd)}),R("span",{style:{fontFamily:nt.mono,fontSize:"12px",fontWeight:400,color:q},children:[ni(L.balanceFormatted)," ",L.symbol]})]})]},V)})]})]})},Xu=({dk:e,dark:t,message:n,buttonLabel:o,onAction:r,disabled:a=!1})=>R("div",{style:{padding:"12px",backgroundColor:e.warningBg,borderRadius:"8px",border:`1px solid ${e.warningBorder}`},children:[m("p",{style:{margin:"0 0 10px 0",color:e.warningText,fontSize:"14px"},children:n}),m("button",{onClick:r,disabled:a,style:{width:"100%",padding:"8px 12px",borderRadius:"6px",border:`1px solid ${t?e.warningBorder:"#fbbf24"}`,backgroundColor:t?e.cardBg:"white",cursor:a?"not-allowed":"pointer",fontWeight:600,fontSize:"13px",color:e.warningText,opacity:a?.6:1},children:o})]}),Ju=({dk:e,dark:t,borderRadius:n,children:o})=>m("div",{style:{padding:"8px 12px",marginBottom:"8px",backgroundColor:t?e.warningBg:"#fffbeb",border:`1px solid ${e.warningBorder}`,borderRadius:n,fontSize:"12px",color:e.warningText,lineHeight:"1.4"},children:o});var Tg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAEICAMAAACQzmAoAAAAzFBMVEWgoJ/d1tbcxsbcycndzc3a2trd0NDe3t7c29vc3Nzd09Pcw8Pd2dncv7/bubnctLTg4ODbr6+BkfGSgdnm5ubcvLzr6+vy8fDcqanZ1tbbpKTf3NtILRbZzc3bnZ3UxsbT09PRvb0FUfLPzs7TtLQKCQcHUu8YFxXQqanJs7PIxsbTlpbAvb28rK2qqKjGnp5zPxrogB83NTTXch/EjYxUU1GRj46Sn+ujmNaBfnwWXPDM0O6xtuRramhb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2R9gfj4veEAAAAASUVORK5CYII=";const xc=e=>{const t=(e.id||"").toLowerCase(),n=(e.name||"").toLowerCase();return t.startsWith("io.privy.wallet")||n.includes("privy wallet")};async function vc(e,t){let n;try{return await Promise.race([e,new Promise((o,r)=>{n=setTimeout(()=>{const a=new Error("Wallet network read timed out. Please try again.");a.name="WalletReadTimeout",r(a)},Math.max(0,t-Date.now()))})])}finally{n!==void 0&&clearTimeout(n)}}const Og=({dark:e,dk:t,primaryColor:n,disabled:o,hidden:r,onConnecting:a,onError:i})=>{const[s,c]=H(!1),l=si(),{embeddedAddress:u}=zr(),d=J({account:l,embeddedAddress:u});d.current={account:l,embeddedAddress:u};const{ready:p,authenticated:w,user:f}=ml(),g={ready:p,authenticated:w,userId:f?.id},h=J(g);h.current=g;const b=J(0),x=()=>{const T=h.current;return T.ready===g.ready&&T.authenticated===g.authenticated&&T.userId===g.userId};Eo.useLayoutEffect(()=>(b.current++,c(!1),a(!1),()=>{b.current++}),[p,w,f?.id,a]);const{disconnectAsync:C}=ii(),{setActiveWallet:v}=bf(),{connectWallet:A}=fl({onSuccess:async({wallet:T})=>{if(!p||!x())return;const I=++b.current,y=()=>I===b.current&&x();c(!0),a(!0);try{if(T.type!=="ethereum"||T.connectorType==="embedded")throw new Error("Choose an external Ethereum wallet.");v(T);const k=d.current.account;k.address&&k.connector&&!xc(k.connector)&&!G(k.address,d.current.embeddedAddress)&&!G(k.address,T.address)&&await C({connector:k.connector})}catch(k){y()&&i(Wn(k,"Failed to connect wallet."))}finally{y()&&(c(!1),a(!1))}},onError:T=>{x()&&(b.current++,c(!1),a(!1),i(Wn(T,"Failed to connect wallet.")))}});return r?null:R("button",{onClick:()=>{o||s||(b.current++,c(!0),a(!0),A({walletChainType:"ethereum-only"}))},disabled:o||s,style:{width:"100%",display:"flex",alignItems:"center",gap:"14px",padding:"10px",borderRadius:"8px",backgroundColor:s?e?t.hoverBg:"#f3f4f6":"transparent",border:`2px solid ${e?`${n}33`:`${n}55`}`,cursor:o||s?"not-allowed":"pointer",opacity:o?.6:1,transition:ho.interactive},children:[m("div",{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e?t.cardBg:"#f3f4f6"},children:m("img",{src:Aa.metamask,alt:"Browser wallet",style:{width:"26px",height:"26px",objectFit:"contain"}})}),m("span",{className:"ibm-plex-mono",style:{fontSize:"17px",fontWeight:500,letterSpacing:"0.4px",color:t.textPrimary,flex:1,textAlign:"left",fontFamily:nt.mono},children:s?"Opening wallet picker...":"MetaMask / Browser Wallet"})]})},Bg=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,onWalletSelect:o,onContinue:r,requiredChainId:a,styles:i})=>{const{dark:s,primaryColor:c,dk:l,theme:u}=dn(i),d=Eo.useContext(cn),[p,w]=H(null),[f,g]=H(!1),[h,b]=H(null),[x,C]=H(!1),[v,A]=H(null),[T,I]=H(!1);he(()=>{e||(b(null),C(!1),g(!1),A(null))},[e]);const{address:y,chain:k,connector:E,isConnected:F}=si(),{externalWallet:U,externalAddress:O}=zr(),M=!!U&&!!O,B=U?.wallet.connector||U?.wallet.meta,D=Number(String(U?.wallet.chainId??"").replace(/^eip155:/,"")),W=U?.wallet.connector===E&&F&&G(O,y)?k:kt(D)?.viemChain,{connectors:S,connectAsync:q}=pf(),{disconnectAsync:z}=ii(),te=us(d?.network||"testnet"),Y=J(U);Y.current=U;const j=J(0),K=U?.wallet.connector||U?.wallet;he(()=>(j.current++,g(!1),b(null),()=>{j.current++}),[O,K,e]);const X=(a?kt(a):null)?.displayName||W?.name||`Chain ${W?.id||a}`,xe=V=>V.type==="announced"||typeof V.ready=="boolean"&&V.ready?!0:V.type==="injected"?typeof window<"u"&&!!window.ethereum:!0,ge=S.filter(V=>{const oe=V.name.toLowerCase(),le=(V.id||"").toLowerCase();return d?.provider==="privy"&&xc(V)||["safe"].includes(V.type)?!1:V.type==="walletConnect"?!!V?.options?.projectId:V.type==="announced"?!0:V.type==="injected"||["metamask","rabby","phantom","coinbase","trust","rainbow"].some(Z=>oe.includes(Z)||le.includes(Z))?xe(V):!1}),ve=async V=>{if(!(x||f))try{if(C(!0),A(V.uid),b(null),await q({connector:V}),await xo(500),Y.current?.wallet.connector!==V)throw new Error("Wallet changed. Please try again.");o&&o(V.id),a&&await _(a),await xo(800)}catch(oe){console.error("Connection error:",oe),ti(oe)?b("Connection rejected. Please try again."):b(Wn(oe,"Failed to connect wallet."))}finally{C(!1),A(null)}},Se=V=>{if(V.icon)return V.icon;const oe=(V.name||"").toLowerCase();for(const[le,Z]of Object.entries(Aa))if(oe.includes(le.toLowerCase()))return Z;if(!xc(V)&&(V.type==="injected"||V.type==="announced")&&typeof window<"u"&&window.ethereum){const le=window.ethereum;if(le.isMetaMask)return Aa.metamask;if(le.isRabby)return Aa.rabby;if(le.isPhantom)return Aa.phantom}return null},ne=async(V,oe,le)=>{const Z=oe.wallet.connector||oe.wallet,se=Date.now()+2e3;for(;Date.now()<se;){if(await xo(Math.min(100,se-Date.now())),le!==j.current||!G(Y.current?.address,oe.address)||(Y.current?.wallet.connector||Y.current?.wallet)!==Z)return!1;try{const We=await vc((async()=>{const He=await oe.getEthereumProvider();return parseInt(await He.request({method:"eth_chainId"}),16)})(),se);if(le!==j.current||!G(Y.current?.address,oe.address)||(Y.current?.wallet.connector||Y.current?.wallet)!==Z)return!1;if(We===V)return!0}catch{}}return!1},_=async V=>{const oe=++j.current,le=Y.current,Z=le?.wallet.connector||le?.wallet,se=()=>oe===j.current&&G(Y.current?.address,le?.address)&&(Y.current?.wallet.connector||Y.current?.wallet)===Z;g(!0),b(null);try{if(!le)throw new Error("Wallet not available");const We=Date.now()+2e3,He=await vc(le.getEthereumProvider(),We);let ye;const Oe=()=>{if(!se())throw new Error("Wallet changed. Please try again.");if(ye)throw ye};Oe(),await Fu({request:async Ne=>{if(Ne.method!=="eth_chainId")return He.request(Ne);try{return await vc(He.request(Ne),We)}catch(Ce){throw Ce instanceof Error&&Ce.name==="WalletReadTimeout"&&(ye=Ce),Ce}}},V,Oe),!await ne(V,le,oe)&&se()&&b("Unable to switch to the correct network. Please switch manually in your wallet to continue.")}catch(We){se()&&(console.error("Manual chain switch error:",We),b(Xp(We)))}finally{se()&&g(!1)}},ue=async V=>{f||(I(!1),await _(V))},P=async()=>{if(!f){if(!a){I(V=>!V);return}await _(a)}},Le=async()=>{try{const V=U?.wallet;V&&typeof V.disconnect=="function"&&V.disconnect(),E&&G(O,y)&&await z({connector:E})}finally{b(null),C(!1),g(!1),A(null),I(!1)}},Be=M&&!f&&!x&&(!a||W?.id===a),L=M&&!f&&!x&&a&&W?.id!==a;return R(Io,{isOpen:e,onClose:t,title:"Connect Wallet",styles:i,dark:s,bannerSrc:Tg,bannerAlt:"Connect wallet banner",closeOnBackdropClick:n,children:[R("div",{style:{padding:"0 24px 20px",display:"flex",flexDirection:"column",gap:"12px",marginTop:"20px"},children:[h&&m(Xu,{dk:l,dark:s,message:h,buttonLabel:f?"Switching...":"Try Switch Again",onAction:P,disabled:f}),f&&R("div",{style:{padding:"12px",backgroundColor:s?l.infoBg:"#dbeafe",borderRadius:"8px",display:"flex",alignItems:"center",gap:"10px",marginTop:"20px"},children:[m(Ko,{size:20,color:s?l.infoText:"#3b82f6"}),m("p",{style:{margin:0,color:s?l.infoText:"#1e40af",fontSize:"14px"},children:"Switching network..."})]}),d?.provider==="privy"&&m(Og,{dark:s,dk:l,primaryColor:c,disabled:x||f,hidden:M,onConnecting:C,onError:b}),M&&O?R("div",{style:{border:`1px solid ${s?l.successBorder:"#02974F"}`,borderRadius:"8px",overflow:"hidden",marginTop:"20px"},children:[R("div",{style:{backgroundColor:s?l.successBg:"#00FFA81C",padding:"14px 18px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[m("div",{style:{width:"22px",height:"22px",borderRadius:"50%",backgroundColor:"#02974F",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:"14px",fontWeight:"bold"},children:"\u2713"}),m("span",{className:"ibm-plex-mono",style:{color:s?l.successText:"#02974F",fontWeight:600,fontSize:"14px",letterSpacing:"0.5px"},children:"WALLET CONNECTED"})]}),m("div",{style:{width:"38px",height:"38px",borderRadius:"50%",backgroundColor:s?l.cardBg:"#f3f4f6",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:B&&Se(B)?m("img",{src:Se(B),alt:B.name,style:{width:"24px",height:"24px",objectFit:"contain"}}):m("span",{style:{fontSize:"16px",fontWeight:"bold",color:s?l.textPrimary:"inherit"},children:B?.name?.charAt(0)||"W"})})]}),R("div",{style:{padding:"18px",backgroundColor:s?l.cardBg:"white"},children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"14px"},children:[m("span",{className:"ibm-plex-mono",style:{color:s?l.textSecondary:"#939291",fontSize:"13px",fontWeight:500,letterSpacing:"0.3px"},children:"ADDRESS:"}),m("span",{className:"ibm-plex-mono",style:{color:s?l.textPrimary:"black",fontSize:"14px",fontWeight:600,fontFamily:nt.mono,letterSpacing:"0.3px"},children:ha(O)})]}),T&&m("div",{style:{marginBottom:"12px",border:`1px solid ${s?l.inputBorder:"#E5E7EB"}`,borderRadius:"8px",overflow:"hidden",backgroundColor:l.cardBg},children:te.map(V=>{const oe=kt(V);if(!oe)return null;const le=W?.id===V;return R("button",{onClick:()=>{le?I(!1):ue(V)},style:{width:"100%",display:"flex",alignItems:"center",gap:"8px",padding:"10px 12px",backgroundColor:le?s?`${c}15`:`${c}10`:"transparent",border:"none",borderBottom:`1px solid ${s?l.inputBorder:"#E5E7EB"}`,cursor:le?"default":"pointer",transition:"background-color 0.15s"},onMouseEnter:Z=>{le||(Z.currentTarget.style.backgroundColor=s?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.03)")},onMouseLeave:Z=>{Z.currentTarget.style.backgroundColor=le?s?`${c}15`:`${c}10`:"transparent"},children:[m("img",{src:ur[V]||Ca,alt:oe.displayName,style:{width:"20px",height:"20px",borderRadius:"50%",objectFit:"contain"}}),m("span",{style:{fontSize:"13px",fontWeight:le?600:400,color:s?l.textPrimary:"#1f2937",fontFamily:nt.mono},children:oe.displayName}),le&&m("span",{style:{marginLeft:"auto",fontSize:"11px",color:c,fontWeight:500},children:"Connected"})]},V)})}),R("button",{className:"ibm-plex-mono",onClick:Le,style:{width:"100%",padding:"10px",backgroundColor:"transparent",border:`1px solid ${s?l.inputBorder:"#E5E7EB"}`,borderRadius:"6px",cursor:"pointer",fontSize:"13px",fontWeight:500,color:s?l.textSecondary:"#9CA3AF",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[m("span",{style:{fontSize:"16px"},children:"\u27F2"}),"DISCONNECT"]})]})]}):m(vn,{children:ge.map(V=>{const oe=xe(V),le=v===V.uid,Z=!oe||x||le;return R("button",{onClick:()=>{Z||ve(V)},onMouseEnter:()=>!Z&&w(V.uid),onMouseLeave:()=>w(null),disabled:Z,style:{width:"100%",display:"flex",alignItems:"center",gap:"14px",padding:"10px",borderRadius:"8px",backgroundColor:le?s?l.hoverBg:"#f3f4f6":"transparent",border:p===V.uid&&!Z?`2px solid ${s?`${c}44`:`${c}66`}`:"2px solid transparent",cursor:Z?"not-allowed":"pointer",opacity:Z?.6:1,transition:ho.interactive},children:[m("div",{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:s?l.cardBg:"#f3f4f6"},children:Se(V)?m("img",{src:Se(V),alt:V.name,style:{width:"26px",height:"26px",objectFit:"contain"}}):m("span",{style:{fontSize:"16px",fontWeight:"bold",color:s?l.textPrimary:"inherit"},children:V.name.charAt(0)})}),R("span",{className:"ibm-plex-mono",style:{fontSize:"17px",fontWeight:500,letterSpacing:"0.4px",color:Z?s?l.inputPlaceholder:"#9ca3af":s?l.textPrimary:"#111827",flex:1,textAlign:"left",fontFamily:nt.mono},children:[le?"Connecting...":V.name,!oe&&!le&&m("span",{style:{fontSize:"12px",marginLeft:"8px"},children:"(Not detected)"})]})]},V.uid)})})]}),L&&!h&&m("div",{style:{padding:"0 24px 20px"},children:m(Xu,{dk:l,dark:s,message:`Please switch to ${X} to continue.`,buttonLabel:f?"Switching...":"Switch Network",onAction:P,disabled:f})}),m("div",{style:{padding:"0 24px 25px"},children:m(Yt,{variant:"outline",fullWidth:!0,onClick:async()=>{Be&&(await xo(300),r?await r():t())},disabled:!Be,theme:u,dark:s,styles:i,children:x?"CONNECTING...":f?"SWITCHING NETWORK...":"CONTINUE"})})]})},Rg=new Set(["USDC","SUSD","USD","NUSD","USDT","DAI","ENUSD","USDG"]),$u={ETH:"ethereum",WETH:"ethereum",BTC:"bitcoin",WBTC:"bitcoin",WCBTC:"bitcoin",CBTC:"bitcoin",ECBTC:"bitcoin",ARB:"arbitrum",HYPE:"hyperliquid",WHYPE:"hyperliquid",MATIC:"matic-network",POL:"matic-network"};let _u=null;const Ic=6e4;async function ep(e){const t={},n=new Set,o={};for(const i of e){const s=i.toUpperCase();if(Rg.has(s))t[s]=1;else if($u[s]){const c=$u[s];n.add(c),o[s]=c}else t[s]=0}if(n.size===0)return t;const r=Date.now(),a=_u;if(a&&r-a.timestamp<Ic){for(const[i,s]of Object.entries(o))s in a.prices&&(t[i]=a.prices[s]);if([...n].every(i=>i in a.prices))return t;for(const i of Object.keys(a.prices))n.add(i)}try{const i=Array.from(n).join(","),s=await fetch(`https://api.coingecko.com/api/v3/simple/price?ids=${i}&vs_currencies=usd`);if(!s.ok)throw new Error(`CoinGecko ${s.status}`);const c=await s.json(),l=a&&Date.now()-a.timestamp<Ic?a:null,u={};let d=r;for(const p of n){const w=c[p]?.usd;w==null&&l&&p in l.prices?(u[p]=l.prices[p],d=l.timestamp):u[p]=w??0}_u={prices:u,timestamp:d};for(const[p,w]of Object.entries(o))t[p]=u[w]??0}catch(i){console.warn("[fetchTokenPrices] CoinGecko fetch failed:",i);const s=a&&Date.now()-a.timestamp<Ic?a:null;for(const[c,l]of Object.entries(o))t[c]=s?.prices[l]??0}return t}const Dg=new Set(["cbtc","btc","wbtc","wcbtc","tbtc"]),Mg=new Set(["usdc","usdt","dai","usdc.e","usdbc","usdg"]);async function Ng(){const e=(await ep(["BTC"])).BTC;if(!e||e<=0)throw new Error("Failed to fetch BTC/USD price");return e}function Pg(e){return Dg.has(e.toLowerCase())}function Ug(e){return Mg.has(e.toLowerCase())}function Wg(e,t,n,o){const r=10n**12n,a=BigInt(Math.round(o*Number(r))),i=t-n,s=10n**BigInt(Math.abs(i));let c=e*a/r;return i>0?c=c/s:i<0&&(c=c*s),c}function Qs(e,t){if(e===0n)return"0";const n=10n**BigInt(t),o=e/n,r=(e%n).toString().padStart(t,"0").replace(/0+$/,"");return r?`${o.toString()}.${r}`:o.toString()}function kc(e,t,n){const o=`${Qs(e,t)} ${n}`;return e===0n?o:`-${o}`}const Lg=({fontFamily:e,textPrimary:t,textSecondary:n,cardBg:o,cardBorder:r,resolvedDark:a,darkCardBorder:i,primaryColor:s,feePreview:c,feeOnlyAction:l=!1,asset:u,isLoading:d,errorText:p,directExecutionFeeNote:w=!1})=>{const f=No(),g=u&&c&&[u.symbol,u.displaySymbol,u.receiptTokenName].includes(c.symbol)?f(u).symbol:c?.symbol,h=a?i??r:"#e5e7eb",b=a?"#111214":"#111827",x=a?"rgba(255,255,255,0.08)":"rgba(17,24,39,0.12)",C="#f87171",v=a?"#d1d5db":"#4b5563",A=a?"#f3f4f6":t,[T,I]=H(!1),y=!!p,k=y?null:c,E=k?.feePayer==="relayer",F=k?[...l?[]:[{label:"Total Required",help:"Total amount required to fund this action.",value:`${Qs(k.grossAmount,k.decimals)} ${g}`,tone:"default"}],{label:"Spicenet Fee",help:"Fees paid to Spicenet for intent processing and execution.",value:E?"Covered":kc(k.spicenetFee,k.decimals,g),tone:"fee"},{label:"Network Fee",help:"Network fee shown in the same token you are using for this action.",value:E?"Covered":kc(k.gasFee,k.decimals,g),tone:"fee"},...k.bridgeFee&&k.bridgeFee>0n?[{label:"Bridge Fee",help:"Estimated cost to rebalance liquidity for this action.",value:kc(k.bridgeFee,k.decimals,g),tone:"fee"}]:[],...l?[]:[{label:"Used in TX",help:"Resulting amount of funds used in the transaction.",value:`${Qs(k.netAmount,k.decimals)} ${g}`,tone:"default"}]]:[],U=k?`${Qs(l?E?0n:k.totalFee??k.gasFee+k.spicenetFee+(k.bridgeFee??0n):k.grossAmount,k.decimals)} ${g}`:null;return y?m("div",{style:{backgroundColor:o,border:`1px solid ${r}`,borderRadius:a?"8px":"7px",padding:"14px 16px 12px 16px",marginBottom:"16px",boxShadow:a?"inset 0 1px 0 rgba(255,255,255,0.03)":"none"},children:R("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[m("span",{style:{fontSize:"17px",fontWeight:500,color:v,fontFamily:e,lineHeight:"24px"},children:"Fee"}),m("div",{style:{color:C,fontSize:"12px",lineHeight:"1.55",fontFamily:e},children:p})]})}):R("div",{style:{backgroundColor:o,border:`1px solid ${r}`,borderRadius:a?"8px":"7px",padding:"14px 16px 12px 16px",marginBottom:"16px",boxShadow:a?"inset 0 1px 0 rgba(255,255,255,0.03)":"none"},children:[R("button",{type:"button",onClick:()=>I(O=>!O),style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"12px",marginBottom:T?"14px":0,background:"none",border:"none",padding:0,cursor:"pointer",textAlign:"left"},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[m("span",{style:{fontSize:"17px",fontWeight:500,color:v,fontFamily:e,lineHeight:"24px"},children:"Fee"}),T&&m("span",{style:{fontSize:"12px",color:n,fontFamily:e,lineHeight:"1.45"},children:"What is funded, spent, and taken as fees"})]}),R("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:[U&&R("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"2px",minWidth:0},children:[m("span",{style:{fontSize:"10px",fontWeight:700,color:n,fontFamily:e,letterSpacing:"0.08em",textTransform:"uppercase"},children:l?"Total fees":"Total required"}),m("span",{style:{fontSize:"14px",fontWeight:700,color:A,fontFamily:e,whiteSpace:"nowrap"},children:U})]}),d&&!w&&m("span",{style:{fontSize:"11px",fontWeight:600,color:s,fontFamily:e,padding:"6px 9px",borderRadius:"999px",backgroundColor:a?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.035)",border:`1px solid ${a?h:"rgba(0,0,0,0.06)"}`,whiteSpace:"nowrap"},children:"Recalculating"}),m(Xr,{color:n,direction:T?"up":"down",style:{flexShrink:0}})]})]}),m("div",{style:{overflow:"hidden",maxHeight:T?"480px":"0px",opacity:T?1:0,transition:"max-height 0.24s ease, opacity 0.18s ease"},children:w?m("p",{style:{margin:0,color:n,fontSize:"12px",lineHeight:"1.55",fontFamily:e},children:"This path executes directly from the external wallet. Network gas is shown and paid in your wallet. No Spicenet fee is charged."}):F.length>0?R(vn,{children:[m("div",{style:{display:"grid",gap:"10px"},children:F.map((O,M)=>R("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) auto",alignItems:"center",gap:"12px",paddingTop:M===0?0:"10px",borderTop:M===0?"none":`1px solid ${h}`,opacity:d?.74:1,transition:"opacity 120ms ease"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px",minWidth:0},children:[m("span",{style:{fontSize:"12px",color:n,fontFamily:e,fontWeight:500},children:O.label}),m(Vu,{content:O.help,label:`${O.label} info`,textColor:"#f9fafb",backgroundColor:b,borderColor:x,accentColor:a?"#8f96a3":"#6b7280"})]}),m("span",{style:{fontSize:"12px",color:O.tone==="fee"?C:A,fontFamily:nt.mono,textAlign:"right",fontWeight:O.label==="Used in TX"?600:500,letterSpacing:"-0.01em"},children:O.value})]},O.label))}),m("div",{style:{marginTop:"12px",paddingTop:"12px",borderTop:`1px solid ${h}`,fontSize:"11px",color:n,fontFamily:e,lineHeight:"1.45"},children:k?.gasQuoteSource==="estimated"?"Gas quote uses a live estimate.":k?.gasQuoteSource==="configured_fallback"?"Gas quote uses a configured fallback.":"Gas quote is currently zero."})]}):m("div",{style:{fontSize:"12px",color:p?C:n,fontFamily:e,opacity:p?1:.8,lineHeight:"1.5"},children:p||"Waiting for fee estimate..."})})]})},Cc=wo(Lg);function hr(e){const t=ft(e.address);if(e.isNative||Te(t))return!1;const n=kt(e.chainId)?.supportedTokens?.some(r=>G(r.address,t)),o=Xt(t,e.chainId);return!!n&&!!o&&va(o)}const tp="spiceflow:pendingDeposit",js="spiceflow:pendingDepositChanged";function np(e,t,n){return`${tp}:${e.toLowerCase()}:${t}:${n.toLowerCase()}`}function Ac(){try{const e="__spiceflow_storage_test__";return localStorage.setItem(e,"1"),localStorage.removeItem(e),!0}catch{return!1}}function qg(e){if(!Ac())return;const t=np(e.embeddedWalletAddress,e.chainId,e.tokenAddress);try{localStorage.setItem(t,JSON.stringify(e)),window.dispatchEvent(new Event(js))}catch(n){console.error("[pendingDeposit] Failed to save:",n)}}function op(e){if(!Ac())return[];const t=`${tp}:${e.toLowerCase()}:`,n=[],o=Date.now();for(let r=0;r<localStorage.length;r++){const a=localStorage.key(r);if(!(!a||!a.startsWith(t)))try{const i=localStorage.getItem(a);if(!i)continue;const s=JSON.parse(i);if(o-s.timestamp>6048e5){localStorage.removeItem(a);continue}n.push(s)}catch{localStorage.removeItem(a)}}return n}function Gs(e,t,n){if(!Ac())return;const o=np(e,t,n);localStorage.removeItem(o),window.dispatchEvent(new Event(js))}function Sc({escrowAddress:e,tokenAddress:t,isNative:n,amount:o,gasFeeAmount:r}){const a=(i,s)=>n?{to:i,value:s,data:"0x"}:{to:t,value:0n,data:Bt({abi:ut,functionName:"transfer",args:[i,s]})};return[a(e,o),...r>0n?[a(gn,r)]:[]]}function zg({sourceChainId:e,selectedAsset:t,destinationChainId:n,destinationTokenAddress:o,isCrossDenomination:r,convertedUsdAmount:a}){const i=ft(t.asset.address),s=o;let c,l;if(s&&n)if(c=ns[n]?.supportedTokens?.find(u=>G(u.address,s))?.decimals??t.asset.decimals,r){if(!a)throw new Error("Destination amount is still being calculated. Please retry in a moment.");l=a}else{const u=Xn(t.amount,t.asset.decimals);l=yo(u,t.asset.decimals,c)}return{sourceChainId:e,depositTokenAddress:i,depositAmount:t.amount,depositTokenDecimals:t.asset.decimals,destinationChainId:n,destinationTokenAddress:s,destinationAmount:l,destinationTokenDecimals:c}}async function Hg(e,t){if(!e)return[];if(Array.isArray(e))return e;const n=e;return e.length>=2?n(t.depositAmount,t.depositTokenAddress):n(t)}function rp(e,t){return!!e&&e.quotedAmount===t.amount&&e.chainId===t.chainId&&G(e.token,t.token)}async function Ks(e,t){let n;try{n=await lc(e,{recipient:t.recipient,tokenAddr:t.tokenAddr,isNative:t.isNative,amount:t.amount})}catch(i){throw sc(i)||ti(i)?i:new we("SUBMISSION_UNKNOWN","The wallet transfer outcome is unknown. Close this deposit and check your activity and balances before continuing.",{submissionStatus:"unknown",cause:i})}t.afterSend?.(n);const o=Rt(t.chainId),{receipt:r,hash:a}=await Ss({client:o,hash:n,call:Ls(t.recipient,t.tokenAddr,t.isNative,t.amount),confirmations:2});if(r.status!=="success")throw r.status==="reverted"&&r.transactionHash?.toLowerCase()===a.toLowerCase()&&t.afterRevert?.(),new Error(t.failureMessage);return t.settle&&await o.getBlockNumber()-r.blockNumber<2n&&await xo(3e3),a}async function Vg(e){const t=e.selectedDepositAssets.filter(a=>a.asset&&a.amount&&parseFloat(a.amount)>0);if(t.length===0){console.error("[DepositModal] No valid assets for deposit"),e.setError("Please select an asset and enter an amount");return}const n=t[0];if(!e.escrowOnly&&!e.sourceAddress){e.setError("External wallet not connected. Please connect your wallet in the previous step.");return}if(!e.isNon7702){if(!e.address||!e.embeddedWalletAddress){e.setError("Couldn't find your account wallet. Try reconnecting.");return}if(!e.isReady||!e.isAuthenticated){e.setError("Sign in to continue.");return}}if(e.zeroCreditError){e.setError(e.zeroCreditError);return}if(e.depositBalanceError){e.setError(e.depositBalanceError);return}if(e.isNon7702&&e.sponsorGas&&e.nativeChainId&&n.asset.chainId!==e.nativeChainId&&e.destinationTokenAddress){e.setError("Gas sponsorship is not supported for this deposit route. Disable sponsorGas to continue.");return}e.setIsExecuting(!0),e.setError(null);let o=!1,r=!1;try{const a=e.escrowOnly||t.some(({asset:p})=>hr(p));if(!e.isNon7702&&e.mode==="7702"&&a){const p=qe.getBaseUrl(),w=new Cr;w.setBaseUrl(p);const f=AbortSignal.timeout(1e4),g=()=>{if(e.validateCurrentSession?.(),qe.getBaseUrl()!==p)throw new Error("The service changed. Review the deposit again.")};g();const h=async x=>{try{return await x}catch(C){throw g(),new we("RELAYER_STATUS_ERROR","Deposit status is unavailable. Try again before adding cash.",{...C instanceof we?C.context:{},cause:C})}},b=await h(w.supportsAutomaticContinuation({signal:f}));if(g(),b){const x=await h(w.getWalletActions(e.address,{pendingOnly:!0,signal:f}));g();let C=0;for(const v of x)for(const[A]of v.intents.entries()){if(C++>=4)throw new Error("A previous transaction still needs verification. Check your activity before adding cash.");const T=await h(w.getIntentRecoveryStatus(v.actionId,A,{signal:f}));if(g(),T==="unresolved")throw new Error("A previous transaction is still pending. Check your activity before adding cash.")}}}e.validateCurrentSession?.();const i=n.asset.chainId,s=Uo(i),c=Xn(n.amount,n.asset.decimals),l=t.length===1&&rp(e.effectiveDepositFee,{amount:c,token:ft(n.asset.address),chainId:i}),u=!e.isNon7702&&!e.escrowOnly&&!hr(n.asset);if(!e.isNon7702&&t.length===1&&!u&&!l)throw new Error("Fee quote is out of date. Please wait for it to refresh.");if(l&&!e.isNon7702&&!u){const{fee:p,net:w}=e.effectiveDepositFee;if(p>=c||w<=0n)throw new Error("This deposit amount is too small to cover the network fee. Your funds remain in your wallet.");if(w+p!==c)throw new Error("Fee quote is out of date. Please wait for it to refresh.")}let d=e.externalWalletClient;if(!e.escrowOnly){if(e.validateCurrentSession?.(),!d)throw new Error("External wallet not connected");if(e.externalProvider){const p=await ic({provider:e.externalProvider,account:e.sourceAddress,chainId:i});p.viemChain&&(d=p.extWc),e.validateCurrentSession?.()}}if(e.isNon7702){if(!d)throw new Error("External wallet not connected");if(!e.sourceAddress)throw new Error("External wallet address not available");if(e.nativeChainId&&i===e.nativeChainId){const p=kt(i),w=t.map(g=>`${g.amount} ${g.asset.symbol}`).join(", ");e.setConfirmationData({network:p?.displayName||`Chain ${i}`,amount:w,symbol:"",chainId:i}),e.setShowConfirmation(!0);let f=null;e.setDirectDepositStatus("processing"),e.setDirectDepositChainId(i);for(const g of t){const h=Xn(g.amount,g.asset.decimals),b=ft(g.asset.address),x=g.asset.isNative||Te(b),C=await Ks(d,{chainId:i,recipient:s,tokenAddr:b,isNative:x,amount:h,failureMessage:`Escrow deposit failed for ${g.asset.symbol}`,afterSend:()=>{r=!0}});f=C,e.setDirectDepositTxHash(C)}if(t[0]?.amount){const g=t[0].amount;if(e.onDepositExecute){e.setPostDepositStatus("executing");try{await e.onDepositExecute(g),e.setPostDepositStatus("success")}catch(b){console.error("ctx.onDepositExecute failed:",b),e.setPostDepositStatus("error"),e.setPostDepositError(b?.message||"Post-deposit instruction failed")}}else e.setPostDepositStatus("success");e.setDirectDepositStatus("success"),e.setPostDepositAmount(g),e.setPostDepositSuccess(!0);const h={type:"deposit",status:"success",amount:g,asset:t[0].asset.symbol,sourceChain:p?.displayName||`Chain ${i}`,txHash:f??void 0};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:h})),e.onDepositSuccess?.(h)}e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(t[0].asset)}else{const p=e.destinationChainId||e.nativeChainId;if(!p)throw new Error("Destination chain ID is required for non-7702 mode. Either pass ctx.destinationChainId to <SpiceDeposit> or set ctx.nativeChainId on <SpiceFlowProvider>.");const w=s,f=[];let g=null;for(const h of t){const b=Xn(h.amount,h.asset.decimals),x=ft(h.asset.address),C=h.asset.isNative||Te(x),v=await Ks(d,{chainId:i,recipient:w,tokenAddr:x,isNative:C,amount:b,failureMessage:`Transfer failed for ${h.asset.symbol}`,afterSend:()=>{r=!0},settle:!0});g||(g=v),e.depositDataRef.current||(e.depositDataRef.current=[]),e.depositDataRef.current.push({txHash:v,sender:e.sourceAddress,tokenAddress:x,chainId:i,amount:b.toString(),user:e.spiceBalanceUser}),f.push({tokenAddress:x,tokenAmount:b.toString(),sender:e.sourceAddress,receiver:w})}if(!g)throw new Error("No transaction hash generated");if(!e.destinationTokenAddress){const h={type:"deposit",status:"success",amount:t[0]?.amount,asset:t[0]?.asset?.symbol,sourceChain:io(i),txHash:g};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:h})),e.onDepositSuccess?.(h),e.depositDataRef.current=null,e.bridgedAmountRef.current=t[0]?.amount||null,e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(t[0].asset),e.setShowConfirmation(!1);return}if(e.mode==="ondemand"){const h=ls(i)?.delegateContract;if(!h)throw new Error(`Unsupported chain ID: ${i}`);const b={to:h,value:BigInt(0),data:"0x"},x=await _a(p,e.destinationTokenAddress);let C=BigInt(0);for(const U of f){const O=BigInt(U.tokenAmount),M=ft(U.tokenAddress),B=t.find(W=>{const S=ft(W.asset.address);return G(S,M)}),D=B?B.asset.decimals:await _a(i,Zt);C+=yo(O,D,x)}e.isCrossDenomination&&e.convertedUsdAmount&&(C=e.convertedUsdAmount);const v={chainId:i,tokenTransfers:f.map(U=>({from:U.sender,to:U.receiver,token:U.tokenAddress,amount:BigInt(U.tokenAmount)})),call:b},A=e.isCrossDenomination&&e.convertedUsdAmount?[{from:e.sourceAddress,to:s,token:ft(t[0].asset.address),amount:Xn(t[0].amount,t[0].asset.decimals)}]:[],T={chainId:p,tokenTransfers:[...A,{from:"escrow",to:e.sourceAddress,token:e.destinationTokenAddress,amount:C}],call:{to:e.destinationTokenAddress,value:BigInt(0),data:"0x"}},I={mode:"non-7702:on-demand",chainBatches:[v,T]},y={user:e.sourceAddress,intents:[I]},k=await qe.createAction(y),E=k.actionId,F=k.intentIds[0];if(!g)throw new Error("No transaction hash available");e.startStatusPolling(F,el([{chainId:i,calls:[b]},{chainId:p,calls:[T.call]}],U=>io(U))),await qe.executeStep(E,0,0,{action:"execute",hash:g}),t[0]?.amount&&(e.bridgedAmountRef.current=t[0].amount),e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(t[0].asset),e.setShowConfirmation(!1)}else throw new Error("Presign mode not yet fully supported for cross-chain deposits")}}else{const p=[],w=[];let f=0,g;const h=l&&e.effectiveDepositFee?Me(e.effectiveDepositFee.net,n.asset.decimals):n?.amount;for(const O of t){const M=Xn(O.amount,O.asset.decimals),B=l&&O===n,D=B?e.effectiveDepositFee.fee:0n,W=B?e.effectiveDepositFee.net:M,S=ft(O.asset.address),q=O.asset.isNative||Te(S);if(e.escrowOnly&&w.push({chainId:i,token:S,amount:W+D}),!e.escrowOnly&&!hr(O.asset)){e.validateCurrentSession?.(),e.setDirectDepositStatus("processing"),e.setDirectDepositChainId(i);const z=await Ks(d,{chainId:i,recipient:e.address,tokenAddr:S,isNative:q,amount:M,failureMessage:`Transfer to embedded wallet failed for ${O.asset.symbol}`,afterSend:()=>{r=!0}});f+=1,O===n&&(g=z);continue}if(!e.escrowOnly){e.validateCurrentSession?.();let z;await Ks(d,{chainId:i,recipient:e.address,tokenAddr:S,isNative:q,amount:M,failureMessage:`Transfer to embedded wallet failed for ${O.asset.symbol}`,afterSend:()=>{r=!0,z={chainId:i,tokenAddress:ft(O.asset.address),tokenSymbol:O.asset.symbol,tokenDecimals:O.asset.decimals,amount:O.amount,rawAmount:M.toString(),embeddedWalletAddress:e.address,externalWalletAddress:e.sourceAddress,timestamp:Date.now(),isNative:q},qg(z)},afterRevert:()=>{const te=z;te&&op(e.address).some(Y=>Object.entries(te).every(([j,K])=>Y[j]===K))&&Gs(e.address,i,S)},settle:!0})}p.push(...Sc({escrowAddress:s,tokenAddress:S,isNative:q,amount:W,gasFeeAmount:D}))}if(p.length===0){e.setDirectDepositTxHash(g??null),e.setDirectDepositStatus("success");const O={type:"deposit",status:"success",amount:n.amount,asset:n.asset.symbol,sourceChain:io(i),txHash:g};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:O})),e.onDepositSuccess?.(O),e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(n.asset);return}f>0&&e.setDirectDepositStatus("idle");const b=t.find(O=>e.escrowOnly||hr(O.asset))??n,x=await Rt(i).getBlockNumber(),C=p.map(O=>({...O,to:wn(O.to)})),v={chainId:i,recentBlock:x,calls:C,tokenTransfers:[]},A=zg({sourceChainId:i,selectedAsset:b===n&&h?{...n,amount:h}:b,destinationChainId:e.destinationChainId,destinationTokenAddress:e.destinationTokenAddress,isCrossDenomination:e.isCrossDenomination,convertedUsdAmount:e.convertedUsdAmount}),T=await Hg(e.depositBatches,A),I=[v,...T];if(!e.address)throw new Error("Address not available");const y=[];if(e.isCrossDenomination&&e.convertedUsdAmount&&e.destinationTokenAddress){const O=e.selectedDepositAssets[0]?.asset;if(O){const M=Xn(e.selectedDepositAssets[0].amount,O.decimals);y.push({from:e.address,to:s,token:ft(O.address),amount:M}),y.push({from:"escrow",to:e.address,token:e.destinationTokenAddress,amount:e.convertedUsdAmount})}}y.length>0&&I[1]&&(I[1].tokenTransfers=y);const k=el(I,O=>io(O));let E=!1;e.validateCurrentSession?.();const F=await e.execution.execute(I,Zt,0n,O=>{if(O.intentId&&!E){E=!0;for(const M of t)Gs(e.address,i,ft(M.asset.address));e.startStatusPolling(O.intentId,k)}},void 0,{userOverride:e.address,useCustomTransfers:!0,skipPreSubmitFeeEstimate:!0,skipUserFundingPreflight:!0,...e.escrowOnly?{walletFundingRequirements:w}:{},...e.validateCurrentSession?{validateBeforeSubmit:e.validateCurrentSession}:{}});if(e.refreshAssets(),e.onDepositExecute&&b.amount)try{e.setPostDepositStatus("executing"),await e.onDepositExecute(h||b.amount),e.setPostDepositStatus("success"),e.setPostDepositAmount(h||b.amount),e.setPostDepositSuccess(!0)}catch(O){console.error("ctx.onDepositExecute failed (7702):",O),e.setPostDepositStatus("error"),e.setPostDepositError(O?.message||"Post-deposit instruction failed");return}const U={type:"deposit",status:"success",amount:b===n&&h||b.amount,asset:b.asset.symbol,sourceChain:io(i),txHash:/^0x[0-9a-f]{64}$/i.test(F??"")?F:void 0};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:U})),e.onDepositSuccess?.(U),e.onDepositSelect&&e.onDepositSelect(b.asset)}}catch(a){if(e.isCurrent&&!e.isCurrent())return;o=!0,console.error("[DepositModal] executeDeposit CAUGHT ERROR:",a),console.error("[DepositModal] Error details:",{message:a?.message,code:a?.code,name:a?.name,stack:a?.stack?.slice(0,500)});const i=a instanceof we&&a.context.submissionStatus==="unknown";(r||i)&&(e.setRetryBlocked?.(!0),e.refreshAssets());let s=a instanceof we&&a.context.submissionStatus==="rejected"&&(a.context.httpStatus===401||a.context.httpStatus===403)?"This app's deposit configuration was rejected. Contact the app's support team.":Wn(a,"Deposit failed");r&&(s+=" A wallet transfer was already submitted. Close this deposit and check your activity and balances before continuing."),e.setError(Wn(a instanceof we?new we(a.code,s,a.context):new Error(s),"Deposit failed")),i||e.clearStatus()}finally{if(e.isCurrent&&!e.isCurrent())return;e.setIsExecuting(!1),o&&e.setDirectDepositStatus("idle"),o||!e.getCurrentIntentStatus()&&e.getCurrentPostDepositStatus()!=="idle"||e.setShowConfirmation(!1)}}async function Ec(e){const{address:t,depositQuote:n}=e,{asset:o,amount:r,token:a,chainId:i}=n;let s=r>1n?1n:0n;const c=e.requireSimulation;for(let l=0;l<5;l++){if(c&&s>=r)throw new Error("Cash amount does not cover the order funding fee");const u=Sc({escrowAddress:Uo(i),tokenAddress:ft(a),amount:r-s,gasFeeAmount:s,isNative:o.isNative===!0}),d={chainId:i,tokenTransfers:[],calls:u},p=await qe.estimateBatchGas({user:t,outputToken:a,chainBatches:[{...d,hash:Fo([d])[0].hash}],signal:e.signal,requireSimulation:e.requireSimulation});if(e.requireSimulation&&(p.gasQuoteSource!=="estimated"||p.simulationVerified!==!0||p.gasFee<0n))throw new Error("A verified deposit fee quote is unavailable");if(c&&p.gasFee>s){s=p.gasFee;continue}const w=c?s:p.gasFee;if(w>=r)throw new Error("This deposit amount is too small to cover the network fee. Your funds remain in your wallet.");const f=r-w;return{fee:w,net:f,quotedAmount:r,token:a,chainId:i}}throw new Error("Order funding fees did not converge. Prepare the order again")}const Qg=({selectedDepositAssets:e,depositAssets:t,secondAssetOptions:n,loadingAssets:o,allowSecondAsset:r,theme:a,styles:i,dark:s,dk:c,onSelect:l,onAmountChange:u,onAdd:d,onRemove:p,onViewAllAssets:w})=>R(vn,{children:[e.map((f,g)=>{const h=e.length===1?"Deposit":`Asset ${g+1}`;return R("div",{style:{marginBottom:a.spacing.md,position:"relative"},children:[m(oa,{assets:g===0?t:n,selectedAsset:f||void 0,onAssetSelect:b=>l(b,g),onAmountChange:b=>u(b,g),loading:o,label:h,showBalance:!0,theme:a,styles:i,allowSecondAsset:r&&g===0,onAddAsset:d,canAddAsset:e.length===1&&!!e[0]?.asset,onViewAllAssets:g===0?w:void 0}),g===1&&m("button",{onClick:()=>p(g),style:{position:"absolute",top:"-2px",right:"-2px",background:s?`${c.cardBg}ee`:"rgba(255, 255, 255, 0.9)",border:`1px solid ${c.cardBorder}`,borderRadius:"50%",cursor:"pointer",color:a.colors.textMuted,fontSize:"16px",padding:"2px",width:"22px",height:"22px",display:"flex",alignItems:"center",justifyContent:"center",transition:ho.interactive,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},onMouseEnter:b=>{b.currentTarget.style.color=s?c.errorText:"#ef4444",b.currentTarget.style.background=s?c.cardBg:"#fff",b.currentTarget.style.borderColor=s?c.errorBorder:"#fecaca"},onMouseLeave:b=>{b.currentTarget.style.color=a.colors.textMuted,b.currentTarget.style.background=s?`${c.cardBg}ee`:"rgba(255, 255, 255, 0.9)",b.currentTarget.style.borderColor=s?c.cardBorder:"#e5e7eb"},title:"Remove asset",children:"\xD7"})]},`asset-${g}`)}),e.length===0&&m("div",{style:{marginBottom:a.spacing.md},children:m(oa,{assets:t,selectedAsset:void 0,onAssetSelect:f=>l(f,0),onAmountChange:f=>u(f,0),loading:o,label:"Deposit",showBalance:!0,theme:a,styles:i,allowSecondAsset:r,onAddAsset:d,canAddAsset:!1},"initial-selector")})]}),jg=wo(Qg),Fc=({onClick:e,label:t="Add Funds",color:n,fontFamily:o,style:r})=>{const[a,i]=H(!1);return R("button",{type:"button",onClick:e,"data-spiceflow-focus":!0,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),style:{background:"none",border:"none",cursor:"pointer",padding:0,display:"inline-flex",alignItems:"center",gap:"4px",color:n,fontSize:"12px",fontWeight:500,fontFamily:o,textDecoration:"underline",textUnderlineOffset:"2px",whiteSpace:"nowrap",opacity:a?.75:1,transition:"opacity 150ms ease",...r},children:[t,R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:[m("circle",{cx:"6",cy:"6",r:"5"}),m("path",{d:"M6 4v4M4 6h4",strokeLinecap:"round"})]})]})},Gg="This deposit didn't confirm in time. It may still have gone through, so check the explorer and refresh your balance before retrying.";function Kg(e){return e?.overallStatus!=="failed"?{isFailed:!1,failureMessage:null}:{isFailed:!0,failureMessage:e.steps?.find(t=>t.status==="failed"&&!!t.error)?.error||Gg}}const Ys=R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{flexShrink:0},children:[m("circle",{cx:"10",cy:"10",r:"10",fill:"#10b981"}),m("path",{d:"M6 10l3 3 5-6",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Yg=({isOpen:e,onClose:t,onConfirm:n,data:o,isExecuting:r=!1,retryBlocked:a=!1,directDepositStatus:i="idle",error:s=null,theme:c,styles:l,intentStatus:u,postDepositStatus:d="idle",hasPostDepositInstruction:p=!1})=>{const{dark:w,dk:f,theme:g}=dn(l),[h,b]=H(!1),[x,C]=H(!0);he(()=>{e||b(!1)},[e]);const v=()=>{b(!0),setTimeout(()=>{t()},300)},A=()=>{C(!x)};if(!e||!o)return null;const T=u?.overallStatus==="processing",I=u?.overallStatus==="success"||i==="success",y=!!u,{isFailed:k,failureMessage:E}=Kg(u),F=!y&&p,U=F&&d==="executing",O=F&&d==="success",M=I&&p&&(d==="idle"||d==="executing")||U,B=I&&(!p||d==="success"||d==="error")||O||F&&d==="error",D=w?f.cardBg:"#ffffff",W=w?"0 -4px 20px rgba(0, 0, 0, 0.4)":"0 -4px 20px rgba(0, 0, 0, 0.15)",S=f.textSecondary,q=w?f.textPrimary:"#1f2937",z=w?f.textPrimary:"#1f2937",te=K=>m("div",{style:{marginBottom:c.spacing.md,padding:c.spacing.md,backgroundColor:l?.errorMessage?.backgroundColor||(c.mode==="light"?"#fef2f2":`${c.colors.error}20`),border:`1px solid ${l?.errorMessage?.borderColor||(c.mode==="light"?"#fecaca":c.colors.error)}`,borderRadius:l?.errorMessage?.borderRadius||c.borderRadius.md},children:m("p",{style:{color:l?.errorMessage?.color||c.colors.error,fontSize:l?.errorMessage?.fontSize||c.typography.fontSize.sm,margin:0,fontFamily:l?.errorMessage?.fontFamily||l?.fontFamily||c.typography.fontFamily},children:K})}),Y={fontSize:c.typography.fontSize.sm,fontWeight:500,color:S,fontFamily:nt.mono,letterSpacing:"0.5px"},j=(K,X,xe=q)=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:Y,children:K}),m("span",{style:{fontSize:c.typography.fontSize.sm,fontWeight:500,color:xe,fontFamily:nt.mono},children:X})]});return R("div",{style:{position:I||O?"relative":"absolute",bottom:0,left:0,right:0,zIndex:10,animation:h?"slideDown 0.3s ease-in":"slideUp 0.3s ease-out",pointerEvents:"auto"},children:[R("div",{style:{backgroundColor:D,borderRadius:"0",width:"100%",maxWidth:"522px",margin:"0 auto",padding:"18px 24px",boxShadow:W},children:[R(vn,{children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:c.spacing.md},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"},onClick:A,children:[m("span",{style:{fontSize:"13px",fontWeight:c.typography.fontWeight.medium,color:S,fontFamily:l?.fontFamily||c.typography.fontFamily},children:"Transaction Details"}),m(Xr,{color:S,direction:x?"up":"down"})]}),!I&&!O&&m("button",{onClick:K=>{K.stopPropagation(),t()},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:S,transition:"color 0.2s ease"},onMouseEnter:K=>{K.currentTarget.style.color=z},onMouseLeave:K=>{K.currentTarget.style.color=S},children:m(Ta,{size:16})})]}),R("div",{style:{marginBottom:c.spacing.lg,display:"flex",flexDirection:"column",gap:c.spacing.md,overflow:"hidden",maxHeight:x?"200px":"0px",opacity:x?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease"},children:[j("NETWORK",o.network),j("DEPOSITED AMOUNT",o.amount,c.colors.success),o.creditedAmount&&j("CREDITED AMOUNT",o.creditedAmount),o.spicenetFee&&j("SPICENET FEE",o.spicenetFee),o.networkFee&&j("EST. NETWORK FEE",o.networkFee)]})]}),s&&!y&&te(s),k&&E&&te(E),m(Yt,{onClick:B||k||a?v:n,variant:"outline",fullWidth:!0,disabled:r||T||M||U,styles:l,theme:g,children:r||T||U||M?"PROCESSING...":B?"CONTINUE \u2192":k||a?"CLOSE":"CONFIRM DEPOSIT"}),B&&d!=="error"&&m("p",{style:{marginTop:c.spacing.md,marginBottom:0,fontSize:"14px",color:S,textAlign:"center",fontFamily:l?.fontFamily||c.typography.fontFamily},children:"Your funds are now available in your Account"}),m("div",{style:{marginTop:c.spacing.md,display:"flex",justifyContent:"center",alignItems:"center"},children:m("img",{src:Hd,alt:"Powered by SpiceNet",style:{height:"auto",width:"130px",opacity:1,filter:w?"brightness(0) invert(1) opacity(0.7)":"none"}})})]}),m("style",{children:`
22
+ `})]}),document.body):null;return B(Sn,{children:[ft,ct,Fe&&bl.createPortal(m(bc,{isOpen:!0,onClose:()=>je(null),styles:l,walletAssets:{initialAsset:Fe},onWithdrawSuccess:()=>{de(),je(null)}}),document.body)]})},Ju=({chainId:e,name:t,size:n=16})=>{const o=e&&(dr[e]||ds(e)?.logo)||"";return o?m("img",{src:o,alt:t||`Chain ${e}`,loading:"lazy",decoding:"async",width:n,height:n,style:{width:`${n}px`,height:`${n}px`,borderRadius:"50%",objectFit:"cover",flexShrink:0}}):null},js=({symbol:e,label:t,logoURI:n,chainId:o,address:r,size:a=20,theme:i})=>{const{theme:s}=dn(),c=i||s,[l,d]=H(),u={width:`${a}px`,height:`${a}px`,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:`${a*.4}px`,fontWeight:c.typography.fontWeight.bold,flexShrink:0,overflow:"hidden",backgroundColor:"#ffffff"},p=vc(n===null?null:n||Ri[e.toUpperCase()],o,r);if(n===null)return null;if(p&&p!==l)return m("img",{src:p,alt:t??e,loading:"lazy",decoding:"async",style:{...u,objectFit:"cover"},onError:()=>d(p)});const w=Ag(e);return m("div",{style:{...u,...w.style},children:w.icon})},Ag=e=>{const t=e.toUpperCase(),n={ETH:{bg:"#627EEA",text:"#FFFFFF",icon:"\u039E"},BTC:{bg:"#F7931A",text:"#FFFFFF",icon:"\u20BF"},USDC:{bg:"#2775CA",text:"#FFFFFF"},USDT:{bg:"#26A17B",text:"#FFFFFF"},DAI:{bg:"#F5AC37",text:"#FFFFFF"},WETH:{bg:"#627EEA",text:"#FFFFFF",icon:"\u039E"},WBTC:{bg:"#F09242",text:"#FFFFFF",icon:"\u20BF"},CBTC:{bg:"#F7931A",text:"#FFFFFF",icon:"\u20BF"},USD:{bg:"#26A17B",text:"#FFFFFF",icon:"$"},MATIC:{bg:"#8247E5",text:"#FFFFFF"},AVAX:{bg:"#E84142",text:"#FFFFFF"},SOL:{bg:"#9945FF",text:"#FFFFFF"},DOT:{bg:"#E6007A",text:"#FFFFFF"},ADA:{bg:"#0033AD",text:"#FFFFFF"},LINK:{bg:"#375BD2",text:"#FFFFFF"},UNI:{bg:"#FF007A",text:"#FFFFFF"},AAVE:{bg:"#B6509E",text:"#FFFFFF"},CRV:{bg:"#40E0D0",text:"#000000"}}[t];if(n)return{style:{backgroundColor:n.bg,color:n.text},icon:n.icon||t.charAt(0)};const o=t.split("").reduce((s,c)=>c.charCodeAt(0)+((s<<5)-s),0),r=Math.abs(o)%360,a=`hsl(${r}, 60%, 50%)`,i=r>180?"#FFFFFF":"#000000";return{style:{backgroundColor:a,color:i},icon:t.charAt(0)}},Sg=({selectedAsset:e,assets:t,onAssetSelect:n,showDropdown:o,onToggleDropdown:r,disabled:a=!1,theme:i,onViewAllAssets:s,getAvailableBalance:c})=>{const l=Uo(),d=O=>{const D=c?c(O):O.balance;return D===void 0?"...":ls({balance:D,decimals:O.decimals})},{theme:u}=dn(),p=i||u,w=Z(null),f=Z(null),g=Z(null),[h,b]=H(null);we(()=>{if(o&&f.current){const O=()=>{if(f.current){const D=f.current.getBoundingClientRect();b({top:D.bottom+6,right:window.innerWidth-D.right})}};return O(),window.addEventListener("scroll",O,!0),window.addEventListener("resize",O),()=>{window.removeEventListener("scroll",O,!0),window.removeEventListener("resize",O)}}else b(null)},[o]),we(()=>{const O=D=>{w.current&&!w.current.contains(D.target)&&g.current&&!g.current.contains(D.target)&&o&&r()};return o&&document.addEventListener("mousedown",O),()=>{document.removeEventListener("mousedown",O)}},[o,r]);const[v,C]=H(!1),x=p.mode==="light",k={backgroundColor:"transparent",border:`1px solid ${x?"#aaaaaa":p.colors.border}`,borderRadius:"6px",color:p.colors.text,cursor:a?"not-allowed":"pointer",padding:"8px 14px 8px 10px",width:"100%",display:"flex",flexDirection:"column",gap:"4px",opacity:a?.6:1,transition:wo.interactive,transform:v?"scale(0.98)":"scale(1)"},E={display:"flex",justifyContent:"space-between",alignItems:"center",gap:"10px",minWidth:0},I={display:"flex",alignItems:"center",gap:"4px",paddingTop:"4px",borderTop:`1px solid ${p.colors.border}`},y=()=>h?{position:"fixed",top:`${h.top}px`,right:`${h.right}px`,backgroundColor:p.colors.secondary,border:`1px solid ${p.colors.border}`,borderRadius:p.borderRadius.md,boxShadow:p.shadows.lg,zIndex:Cr.dropdown,width:"200px",maxHeight:"300px",overflow:"auto"}:{},A={backgroundColor:"transparent",border:"none",color:p.colors.text,cursor:"pointer",padding:p.spacing.sm,width:"100%",display:"flex",alignItems:"center",gap:p.spacing.sm,transition:`background-color ${p.animation.normal}`,":hover":{backgroundColor:p.colors.surfaceHover}},T={display:"flex",flexDirection:"column",alignItems:"flex-start",flex:1},F={fontSize:p.typography.fontSize.sm,fontWeight:p.typography.fontWeight.medium},L={fontSize:p.typography.fontSize.xs,color:p.colors.textMuted},R={backgroundColor:"transparent",border:"none",borderTop:`1px solid ${p.colors.border}`,color:p.colors.primary,cursor:"pointer",padding:"10px 12px",width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",fontFamily:p.typography.fontFamily,fontSize:p.typography.fontSize.xs,fontWeight:p.typography.fontWeight.medium,textDecoration:"underline",textUnderlineOffset:"2px"},N={transition:`transform ${p.animation.normal}`,transform:o?"rotate(180deg)":"rotate(0deg)",flexShrink:0};return B(Sn,{children:[m("div",{style:{position:"relative"},ref:w,children:B("div",{ref:f,style:k,onClick:a?void 0:r,onMouseLeave:()=>{C(!1)},onMouseDown:()=>C(!0),onMouseUp:()=>C(!1),children:[B("div",{style:E,children:[m("div",{style:{display:"flex",alignItems:"center",gap:"8px",flex:1,minWidth:0},children:e?.asset?B(Sn,{children:[m(js,{symbol:e.asset.symbol,label:l(e.asset).symbol,logoURI:l(e.asset).logoURI,chainId:e.asset.chainId,address:e.asset.address,theme:p,size:24}),m("span",{style:{fontSize:"15px",fontWeight:500,color:p.colors.text,lineHeight:"1.5",flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l(e.asset).symbol})]}):m("span",{style:{fontSize:"14px",color:p.colors.textMuted},children:"Select"})}),m("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:x?p.colors.textMuted:"#c7ccd4",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:N,children:m("path",{d:"M6 9l6 6 6-6"})})]}),e?.asset&&B("div",{style:I,children:[!e.asset.displayChainName&&m(Ju,{chainId:e.asset.chainId,theme:p}),m("span",{style:{fontSize:"11px",color:p.colors.textMuted},children:ii(e.asset)})]})]})}),o&&h&&gi(B("div",{ref:g,style:y(),children:[t.length===0&&m("div",{style:{padding:"10px 12px",color:p.colors.textMuted,fontSize:p.typography.fontSize.xs},children:"No assets available"}),t.map(O=>B("button",{style:A,onClick:()=>{n(O),r()},children:[m(js,{symbol:O.symbol,label:l(O).symbol,logoURI:l(O).logoURI,chainId:O.chainId,address:O.address,theme:p},ke(O)),B("div",{style:T,children:[B("div",{style:{display:"flex",alignItems:"center",gap:p.spacing.xs},children:[m("span",{style:F,children:l(O).symbol}),!O.displayChainName&&m(Ju,{chainId:O.chainId,theme:p})]}),B("span",{style:L,children:[d(O)," \u2022 ",ii(O)]})]})]},ke(O))),s&&B("button",{type:"button",style:R,onClick:()=>{r(),s()},children:[m("span",{children:"View all assets"}),B("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m("path",{d:"M5 12h14"}),m("path",{d:"M13 5l7 7-7 7"})]})]})]}),document.body)]})},Eg=({assets:e,selectedAsset:t,onAssetSelect:n,onAmountChange:o,disabled:r=!1,loading:a=!1,label:i="Select Asset",showBalance:s=!0,showMaxButton:c=!0,placeholder:l="0.0",theme:d,styles:u,maxAmount:p,resolveMaxAmount:w,getAvailableBalance:f,hideAmountInput:g=!1,displayAmount:h,dark:b,onViewAllAssets:v})=>{const C=Uo(),{theme:x,primaryColor:k,dark:E,dk:I}=dn(u,b),y=d||x,A=b??E,[T,F]=H(!1),[L,R]=H(null),[N,O]=H(null),[D,M]=H(!1),[S,U]=H(null),[q,X]=H(t?.amount||""),K=Z(0),Q=t?.asset?ke(t.asset):"",Y=t?.asset?f?f(t.asset):t.asset.balance:void 0,oe=S??p;Wo(()=>()=>{K.current++},[]),Wo(()=>{K.current++,X(t?.amount||""),M(!1)},[Q,t?.amount]),Wo(()=>{K.current++,U(null),M(!1)},[Q,t?.asset.owner,t?.asset.decimals,t?.asset.balance,Y,p,w,r,a]);const he=()=>{K.current++,M(!1)},ve=()=>{const z=t?.asset;if(!z||Y===void 0)return;if(!oe)return Y;const V=$n(oe,z.decimals);return V<Y?V:Y},ae=z=>{X(z),o?.(z)},ie=z=>{he();const V=t?.asset,te=cs(z.startsWith(".")?`0${z}`:z,V?.decimals);if(!V||!te)return ae(te);const ue=$n(te,V.decimals),J=ve();ae(J!==void 0&&ue>J?Le(J,V.decimals):te)},ne=async()=>{const z=t?.asset;if(!z||r||a||Y===void 0)return;const V=++K.current,te=()=>K.current===V,ue=w;if(S!==null){const ce=ve();ce!==void 0&&ae(Le(ce,z.decimals));return}if(ue){M(!0);try{const ce=await ue(z);if(!te())return;if(ce!==null){const He=cs(ce,z.decimals),Xe=ve();if(!He||Xe===void 0)return;const Ve=$n(He,z.decimals)>Xe?Le(Xe,z.decimals):He;U(Ve),ae(Ve);return}return}catch(ce){te()&&console.warn("[AssetSelector] Failed to resolve max amount:",ce);return}finally{te()&&M(!1)}}const J=ve();te()&&J!==void 0&&ae(Le(J,z.decimals))},_=async z=>{if(!t||r||Y===void 0)return;if(z===100)return ne();he();const V=ve();V!==void 0&&ae(Le(V*BigInt(z)/100n,t.asset.decimals))},de=t&&Y!==void 0?Number(Le(Y,t.asset.decimals)):0,W=parseFloat(q)||0,Me=de>0?W/de*100:0,Oe={backgroundColor:u?.assetSelector?.backgroundColor||u?.secondaryBackground||(A?I.cardBg:"#e9e9e9"),border:A?`0.5px solid ${I.cardBorder}`:"0.5px solid #A8A8A7",borderRadius:u?.assetSelector?.borderRadius||"6px",padding:u?.assetSelector?.padding||"16px",height:"auto",minHeight:g?void 0:"144px",display:"flex",flexDirection:"column",gap:"8px",position:"relative",opacity:r?.6:1};return a?m("div",{style:Oe,children:B("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[B("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[m("div",{style:{backgroundColor:A?I.hoverBg:"#d1d5db",borderRadius:"4px",height:"16px",width:"60px"}}),m("div",{style:{backgroundColor:A?I.hoverBg:"#d1d5db",borderRadius:"4px",height:"40px",width:"150px"}})]}),B("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"8px"},children:[m("div",{style:{backgroundColor:A?I.hoverBg:"#d1d5db",borderRadius:"4px",height:"12px",width:"80px"}}),m("div",{style:{backgroundColor:A?I.hoverBg:"#d1d5db",borderRadius:"6px",height:"46px",width:"128px"}})]})]})}):B("div",{style:Oe,children:[B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:{fontFamily:u?.fontFamily||y.typography.fontFamily,fontSize:"16px",fontWeight:500,color:A?I.textSecondary:"#7d7c7b",lineHeight:"24px"},children:i}),s&&t?.asset&&B("span",{style:{fontFamily:u?.fontFamily||y.typography.fontFamily,fontSize:"12px",fontWeight:500,color:A?I.textSecondary:"#71757a",lineHeight:"16px"},children:["Balance:"," ",Y===void 0?"...":ls({balance:Y,decimals:t.asset.decimals})]})]}),B("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px 12px",justifyContent:g&&!h?"flex-start":"space-between",alignItems:"center",flex:1},children:[!g&&m(Rr,{element:"input",ariaLabel:t?.asset?`${C(t.asset).symbol} amount`:"Amount",dataSpiceflowFocus:!0,value:q,onChange:z=>ie(z.target.value),placeholder:l,disabled:r||!t?.asset,fontFamily:u?.fontFamily||y.typography.fontFamily,color:r?A?"rgba(255, 255, 255, 0.16)":"rgba(14, 13, 11, 0.16)":q?A?"#ffffff":"#0e0d0b":A?"#4a5568":"#d1d5db",lineHeight:"1.08",maxFontSize:40,minFontSize:22,style:{width:"100%",maxWidth:"200px",flex:"1 1 200px",minWidth:"min(200px, 100%)"}}),m("div",{style:{width:"176px",maxWidth:"100%",position:"relative",flexShrink:0,marginLeft:g&&!h?void 0:"auto"},children:m(Sg,{selectedAsset:t,assets:e,onAssetSelect:z=>{he(),U(null),n(z)},showDropdown:T,onToggleDropdown:()=>F(!T),disabled:r,theme:y,onViewAllAssets:v,getAvailableBalance:f})}),g&&h&&m(Rr,{element:"span",value:h,title:h,fontFamily:u?.fontFamily||y.typography.fontFamily,color:A?"#ffffff":"#0e0d0b",lineHeight:"1.08",textAlign:"right",maxFontSize:40,minFontSize:22,style:{flex:"1 1 200px",minWidth:"min(200px, 100%)"}})]}),!g&&m("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"10px",height:"14px"},children:[0,25,50,75,100].filter(z=>c||z!==100).map((z,V)=>{const te=Math.abs(Me-z)<1,ue=V===4,J=L===z,ce=N===z;return m("button",{onClick:()=>_(z),onMouseEnter:()=>R(z),onMouseLeave:()=>{R(null),O(null)},onMouseDown:()=>O(z),onMouseUp:()=>O(null),disabled:r||!t?.asset||Y===void 0||z===100&&D,title:`${z}%`,style:{width:"14px",height:"14px",padding:0,border:"none",backgroundColor:"transparent",cursor:r||!t?.asset||Y===void 0||z===100&&D?"not-allowed":"pointer",opacity:te?1:J?.8:.5,transform:ce?"scale(0.85)":J?"scale(1.15)":"scale(1)",transition:wo.interactive},children:m(wc,{pct:z,isMax:ue,primaryColor:k,dark:A,fillColor:A?I.textSecondary:"#3C3E42"})},z)})})]})},oa=bo(Eg);function Fg({asset:e,showLogo:t=!0,showLabel:n=!0,denomination:o="token",className:r,style:a}){const i=Uo()(e),s=o==="token"?ls(e):Number.isFinite(e.balanceUsd)&&(e.balanceUsd>0||e.balance===0n)?Ar(e.balanceUsd):"\u2014";return B("span",{className:r,style:{display:"inline-flex",alignItems:"center",gap:6,...a},children:[t&&m(js,{symbol:e.symbol,label:i.symbol,logoURI:i.logoURI,chainId:e.chainId,address:e.address}),n&&m("span",{children:i.symbol}),m("span",{children:s})]})}var Tg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNS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fAJqQyTCns+J0zV/q+twoCTh1BnpJZJENYl5R18HArUhy65HZGt1Scr1S7+9Roa16w7fKJnTvHsjzi5matx9jrMee+8xnT06olDgj+kf2hzr6qb6jve/PWp6oaj3ExiL7DpLBHVoqN5QV/5cFPkjKNnCWcT/SO/3DM7w7WChf46npJjWJAaZKA2EqhWizH75xohYifXLE5XxO/3M8CdK63yd1q1TOX0JVqZAQD6UqcB1yu+ec1mcaGABgZMzbj2PktQKFGRGgWZgCWo5iWVPo4T4yHn1ldjdRwUQMGIUhGuV5soI2y2FyA5QvD4PyW32aiUWgedBmgwvvoEe17JktilIJUu7ym6wXBdYsZdbFJ82YMiMrdyTzf1gA3aoH/46zseWr1Hf1u7A0tAMi8UZaB1s5UQqBhOqOikelgmNFe2zAH08LLN+3ACDx3oAy/9YhfevpGBqqWGPmoIYO44F3CkzNH3HQS7RT8FDuT+sekaaUM/a5iZ5koxinEJM5vvUJK91I7rpbGyn1YiQS/i+2X1IKnxmKKYtjanezqSnTOycVZkuX8pKDSpNg9XUbiGZthTF3wu8R2V57WZNUavR2wBwrNero92SH0u5ELuB7cHdjAOcBRpeQ5e8Xmfm68WTwlfusVJ+gV7ogUi8VTsWz2pd7MUKpWTBEhQoQIESJEiBAhQoQIESJEaED8f8CLHLNBkXU/AAAAAElFTkSuQmCC",$u="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.51484 1.22476C5.04689 0.494255 5.87167 0 6.83333 0C7.79352 0 8.62302 0.493038 9.15721 1.22447C10.0512 1.08473 10.9879 1.32154 11.6665 2.00014C12.3456 2.67921 12.5823 3.61677 12.4419 4.51135C13.1714 5.04616 13.6667 5.87042 13.6667 6.83333C13.6667 7.79624 13.1714 8.62051 12.4419 9.15532C12.5823 10.0499 12.3456 10.9875 11.6665 11.6665C10.986 12.3471 10.049 12.5769 9.15858 12.4403C8.62445 13.1728 7.79434 13.6667 6.83333 13.6667C5.86959 13.6667 5.04474 13.1705 4.50996 12.44C3.619 12.5772 2.68116 12.3475 2.00014 11.6665C1.31939 10.9858 1.08903 10.0476 1.23037 9.15532C0.501138 8.62162 0 7.79824 0 6.83333C0 5.86843 0.501137 5.04504 1.23037 4.51135C1.08903 3.61904 1.31939 2.68089 2.00014 2.00014C2.67986 1.32042 3.61766 1.08457 4.51484 1.22476ZM9.20928 5.95387C9.51334 5.74624 9.59152 5.33144 9.38389 5.02737C9.17626 4.72331 8.76145 4.64514 8.45739 4.85277L8.3995 4.89229C7.48372 5.51764 6.69012 6.30153 6.05487 7.20477L5.30449 6.45518C5.044 6.19497 4.62189 6.1952 4.36168 6.45569C4.10147 6.71618 4.10169 7.13829 4.36218 7.3985L5.7 8.73489C5.84693 8.88167 6.05387 8.95158 6.25971 8.924C6.46555 8.89641 6.64677 8.77448 6.74987 8.5942C7.34322 7.55668 8.16436 6.6674 9.1514 5.9934L9.20928 5.95387Z' fill='%23EA4B4B'/%3e%3c/svg%3e",Og="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAaYAAACLCAYAAAAqND1fAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwABSQ1JREFUeAFsvQm8LelZ1vtV1Rr23uecHtLpdJLuzAlJkClABCWMXrwCgSQkKiJ6ZcgACApcryIXyFUGFRARE0jCKDIE0Bs1SJwgAbwKBBAJZJ473enu9HzOHtZQdet56/l/9e4Nq3+n995rrar6xnd43ud9v+Zf/aufGna7Xdnv96Vt27JYLMowDPFPL37qpc/13a7r6vt935flcnnu+/qe7qdX0zT1Pf2u9/VT9zg7O4trdQ89d7PZxPd4fm4L99d1ugf3VHv0Pd1D7+lz/dP7ek+/5xfXqA36fbvd1u/QPr1Pe7kvbeZa2qPv5/6vVqvaL92be9Au/a5/tEMvtZ925DbwXL6fX3lcGff8LOZJ92UseQ7zxrVco+fqO7qP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upEjVZYko1JTRuvjyLnW6b7ugxx8RKzf5l7IaNXHk2GrmYFygPWXYE3VgvT8anhK90DPTcere7L0NzlhnZ/+Xkf6+tJz0b2on2t9jfU163f1/ajXTw091r9TlqrPPbqGpE2ie6Jj1kGLPvvodavASe+ro+Pauelc9JlaG/U9qe9F/XtF1Vpn+nt9bfV16dzqAFHnWL9Orzn687RG6+tWMDOo4JU6+FLkrHP5/3uuR68bnUO9J+o6rdaJrkFfdc0vCuAJASsY1XF1PGWUuj7ttaP7C+tzP/p+10GTnIj+Vl9vvXbq56m1VCvQ6DoUqCo4k62o13n9PLTOhEzV61n7hq/6+nQMQdVHr4HaVtb2ow6M6ntb7+G6Tq+1ouurUZp6Pehz9Nr6NbJtPWzfLPv46nPQseq6fo1u/X+gRuOHSwDbkgAAAABJRU5ErkJggg==";const kc=({value:e,onChange:t,ariaLabel:n,placeholder:o,endAdornment:r,size:a="lg",dark:i,styles:s,inputRef:c,autoFocus:l})=>{const{dark:d,dk:u}=dn(s,i),p=i??d,w=a==="lg",f=w?"15px":"14px",g=w?"7px":"10px",h=w?ci.input:ci.sm,b=s?.fontFamily||tt.ui,v=p?u.inputBg:"#FAFAFA",C=p?u.inputBorder:"#e5e7eb",x=p?u.textPrimary:"#374151",k=p?u.textSecondary:"#9ca3af";return B("div",{style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:v,borderRadius:h,boxShadow:p?"0 2px 4px rgba(0, 0, 0, 0.3)":"0 2px 4px rgba(0, 0, 0, 0.1)",padding:`${g} 5px`,border:`1px solid ${C}`},children:[m(Ym,{style:{color:k},size:24}),m("input",{ref:c,type:"text",role:"searchbox","aria-label":n,autoComplete:"off",spellCheck:!1,autoFocus:l,"data-spiceflow-focus":!0,placeholder:o,value:e,onChange:E=>t(E.target.value),style:{flex:1,backgroundColor:v,outline:"none",border:"none",color:x,fontSize:f,fontWeight:400,fontFamily:b}}),r]})},Bg=({size:e=20,active:t=!1,dark:n=!1})=>B("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m("rect",{x:"2",y:"4",width:"16",height:"2",rx:"1",fill:t?n?"#e5e7eb":"#111827":n?"#9ca3af":"#374151"}),m("rect",{x:"4",y:"9",width:"12",height:"2",rx:"1",fill:t?n?"#e5e7eb":"#111827":"#9ca3af"}),m("rect",{x:"6",y:"14",width:"8",height:"2",rx:"1",fill:t?n?"#e5e7eb":"#111827":"#9ca3af"})]}),_u=({checked:e,primaryColor:t="#ef4444",dark:n=!1})=>m("div",{style:{width:"18px",height:"18px",borderRadius:"4px",border:e?"none":`2px solid ${n?"#4b5563":"#d1d5db"}`,backgroundColor:e?t:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transition:wo.interactive},children:e&&m("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),Rg=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,onTokenSelect:o,walletAddress:r,supportedChainIds:a,network:i,prefetchedAssets:s,styles:c,dark:l})=>{const[d,u]=H(""),[p,w]=H(null),[f,g]=H(null),[h,b]=H(!1),[v,C]=H(new Set),x=gn(sn),k=i||x?.network||"testnet",E=x?.allowedTokens,I=(x?.mode||"7702")!=="7702",y=!!x?.isWhitelistGateActive,{dark:A,primaryColor:T,dk:F}=dn(c,l),L=A?F.cardBg:"white",R=A?`${T}55`:"#F4A5A5",N=A?"0 4px 12px rgba(0, 0, 0, 0.4)":"0 4px 12px rgba(0, 0, 0, 0.15)",O=A?F.hoverBg:"#E9E9E9",D=A?F.hoverBg:"#f9fafb",M=A?F.textPrimary:"#374151",S=A?F.textPrimary:"#111827",U=A?F.textSecondary:"#9ca3af",q=A?`${T}22`:"#FBDBDB",X=A?`${T}55`:"#F4A5A5",K=Ee(()=>a||x?.supportedChainIds||ps(k),[a,x?.supportedChainIds,k]),Q=Ee(()=>K.map(z=>{const V=Ct(z);return V?{id:z,name:V.displayName,icon:dr[z]||Aa}:null}).filter(Boolean),[K]),Y=s===void 0,{assets:oe,loading:he}=Fa({address:Y?r:void 0,supportedChains:K,fetchBalances:Kr,enabled:e&&Y&&!!r,refreshInterval:e?5e3:0}),ve=s??(Y?oe:[]),ae=s===null||Y&&he,ie=Ee(()=>(ve??[]).filter(z=>Bo(z,"deposit-source",{allowedTokens:E,rpcOverrides:x?.rpcOverrides,liquidityVenues:x?.liquidityVenues,isWhitelistGateActive:y},void 0,void 0,{requiresEscrow:I}).eligible),[ve,E,x?.rpcOverrides,y,I]),ne=Ee(()=>{let z=ie.filter(V=>V.balance>0n);if(v.size>0&&(z=z.filter(V=>v.has(V.chainId))),d.trim()){const V=d.toLowerCase();z=z.filter(te=>te.name.toLowerCase().includes(V)||te.symbol.toLowerCase().includes(V)||te.address.toLowerCase().includes(V))}return z=[...new Map(z.map(V=>[ke(V),V])).values()],z.sort((V,te)=>{const ue=V.balanceFormatted>0?1:0,J=te.balanceFormatted>0?1:0;return J!==ue?J-ue:te.balanceUsd!==V.balanceUsd?te.balanceUsd-V.balanceUsd:te.balanceFormatted-V.balanceFormatted}),z},[ie,d,v]),_=ke;we(()=>{const z=document.createElement("link");return z.href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@100;200;300;400;500;600;700&display=swap",z.rel="stylesheet",document.head.appendChild(z),()=>{document.head.removeChild(z)}},[]),we(()=>{e||(u(""),w(null),b(!1),C(new Set))},[e]);const de=z=>{o(z)},W=z=>{C(V=>{const te=new Set(V);return te.has(z)?te.delete(z):te.add(z),te})},Me=()=>{C(new Set)},Oe=v.size===0;return B(Co,{isOpen:e,onClose:t,title:"Select a Token",bannerSrc:Og,bannerAlt:"Select token banner",styles:c,dark:A,closeOnBackdropClick:n,children:[m("div",{style:{padding:"20px 20px"},children:m(kc,{value:d,onChange:u,ariaLabel:"Search tokens",placeholder:"Search token name, symbol or address",dark:A,styles:c,endAdornment:B("div",{style:{position:"relative",flexShrink:0},children:[m("button",{onClick:()=>b(z=>!z),style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"5px",borderRadius:"3px",backgroundColor:h||!Oe?O:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.15s"},children:m(Bg,{size:20,active:!Oe,dark:A})}),h&&B("div",{style:{position:"absolute",top:"calc(100% + 8px)",right:0,backgroundColor:L,borderRadius:"8px",border:`1px solid ${R}`,boxShadow:N,padding:"8px",minWidth:"220px",zIndex:100},children:[B("button",{onClick:Me,style:{width:"100%",display:"flex",alignItems:"center",gap:"10px",padding:"8px",borderRadius:"6px",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.15s"},onMouseEnter:z=>z.currentTarget.style.backgroundColor=D,onMouseLeave:z=>z.currentTarget.style.backgroundColor="transparent",children:[m(_u,{checked:Oe,primaryColor:T,dark:A}),m("img",{src:Tg,alt:"All Networks",loading:"lazy",decoding:"async",width:20,height:20,style:{width:"20px",height:"20px",borderRadius:"4px",objectFit:"cover"}}),m("span",{style:{fontFamily:tt.mono,fontSize:"12px",fontWeight:600,letterSpacing:"0.5px",color:M},children:"ALL NETWORKS"})]}),Q.map(z=>B("button",{onClick:()=>W(z.id),style:{width:"100%",display:"flex",alignItems:"center",gap:"10px",padding:"8px",borderRadius:"6px",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.15s"},onMouseEnter:V=>V.currentTarget.style.backgroundColor=D,onMouseLeave:V=>V.currentTarget.style.backgroundColor="transparent",children:[m(_u,{checked:v.has(z.id),primaryColor:T,dark:A}),m("img",{src:z.icon,alt:z.name,loading:"lazy",decoding:"async",width:20,height:20,style:{width:"20px",height:"20px",borderRadius:"50%"}}),m("span",{style:{fontFamily:tt.mono,fontSize:"12px",fontWeight:600,letterSpacing:"0.5px",color:M},children:z.name.toUpperCase()})]},z.id))]})]})})}),B("div",{style:{padding:"0 32px 20px",display:"flex",flexDirection:"column",gap:"8px",maxHeight:"400px",overflowY:"auto"},children:[ae&&m("div",{style:{padding:"24px 8px",textAlign:"center",fontFamily:tt.mono,fontSize:"13px",color:U},children:"Loading balances..."}),!ae&&ne.length===0&&m("div",{style:{padding:"24px 8px",textAlign:"center",fontFamily:tt.mono,fontSize:"13px",color:U},children:"No tokens found"}),ne.map(z=>{const V=_(z),te=p===V,ue=f===V,J=Ct(z.chainId)?.displayName||`Chain ${z.chainId}`;return B("button",{onClick:()=>de(z),onMouseEnter:()=>g(V),onMouseLeave:()=>g(null),style:{width:"100%",display:"flex",alignItems:"center",gap:"16px",padding:"8px",borderRadius:"8px",backgroundColor:te?q:"transparent",border:te||ue?`1px solid ${X}`:"1px solid transparent",cursor:"pointer",transition:wo.interactive},children:[m("div",{style:{flexShrink:0},children:m(js,{symbol:z.symbol,logoURI:z.logoURI,chainId:z.chainId,address:z.address,size:40})}),B("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"2px",flex:1,minWidth:0},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[m("span",{style:{fontFamily:tt.mono,fontSize:"15px",fontWeight:500,letterSpacing:"0.4px",color:S,textAlign:"left"},children:z.name}),m("img",{src:$u,alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",width:14,height:14,style:{width:"14px",height:"14px"}})]}),B("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[dr[z.chainId]&&m("img",{src:dr[z.chainId],alt:"",loading:"lazy",decoding:"async",width:14,height:14,style:{width:"14px",height:"14px",borderRadius:"50%"}}),B("span",{style:{fontFamily:tt.mono,fontSize:"12px",fontWeight:400,color:U,textAlign:"left"},children:[z.symbol," \xB7 ",J]})]})]}),B("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"2px",flexShrink:0},children:[z.balanceUsd>0&&m("span",{style:{fontFamily:tt.mono,fontSize:"16px",fontWeight:600,color:S},children:Ar(z.balanceUsd)}),B("span",{style:{fontFamily:tt.mono,fontSize:"12px",fontWeight:400,color:U},children:[si(z.balanceFormatted)," ",z.symbol]})]})]},V)})]})]})},ep=({dk:e,dark:t,message:n,buttonLabel:o,onAction:r,disabled:a=!1})=>B("div",{style:{padding:"12px",backgroundColor:e.warningBg,borderRadius:"8px",border:`1px solid ${e.warningBorder}`},children:[m("p",{style:{margin:"0 0 10px 0",color:e.warningText,fontSize:"14px"},children:n}),m("button",{onClick:r,disabled:a,style:{width:"100%",padding:"8px 12px",borderRadius:"6px",border:`1px solid ${t?e.warningBorder:"#fbbf24"}`,backgroundColor:t?e.cardBg:"white",cursor:a?"not-allowed":"pointer",fontWeight:600,fontSize:"13px",color:e.warningText,opacity:a?.6:1},children:o})]}),tp=({dk:e,dark:t,borderRadius:n,children:o})=>m("div",{style:{padding:"8px 12px",marginBottom:"8px",backgroundColor:t?e.warningBg:"#fffbeb",border:`1px solid ${e.warningBorder}`,borderRadius:n,fontSize:"12px",color:e.warningText,lineHeight:"1.4"},children:o});var Dg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAEICAMAAACQzmAoAAAAzFBMVEWgoJ/d1tbcxsbcycndzc3a2trd0NDe3t7c29vc3Nzd09Pcw8Pd2dncv7/bubnctLTg4ODbr6+BkfGSgdnm5ubcvLzr6+vy8fDcqanZ1tbbpKTf3NtILRbZzc3bnZ3UxsbT09PRvb0FUfLPzs7TtLQKCQcHUu8YFxXQqanJs7PIxsbTlpbAvb28rK2qqKjGnp5zPxrogB83NTTXch/EjYxUU1GRj46Sn+ujmNaBfnwWXPDM0O6xtuRramhbQi23XxzdUlJ6XExXhOY2buq+my/AAAAAAXRSTlP9g+pWxwAAAAlwSFlzAAALEwAACxMBAJqcGAAAIABJREFUeNrsvWtz20iyLWo+ilXgS9AMqRaEgFtj2W1vH9s7whH2HPeMv3T///90q3KtzMoCKbfnnBs34kZsWiJBEHzJtZCvlStfvPify/9c/ufyP5frl0929X/43P+5/P/ub/OffrZPjz95eeJvvgzl96nu/k8uT8/escvw7HOG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OTYyDopUUbMb9XTFSLFuirr1/K7a6v1lzsUHkbe04WG9f7y81t9LzVtp1UFaWUfAza32lPy7E3NM3K+M78GN03XFhulLfQf+O+Hpbq4h/Uumfz++1WtERuixX5Qpv1OCa1OhlqZu10kzdH/dqclaHhL7J2Tw99c4ns7EH3bGvTI1zh8LwljrbB/EpyEjW534kqCjfin4v6Ri4eqoNXaKwXg4p9C2ErkAMP1glrgSs4KlSX9cUYfhLUfcq4Q6Xu7pNIlmBlLgcIV3iCY9WeoT3sfK4QcdXlbttUHE6suSqOj+dHSzpv9+YtIkhRpJZRkfhfgg++ZqpFxTkliRkKSPT9FArU83E2llXysDgFFKXo6sh/qMj1ulT1ulQIoWKN0Yin0LTuh+MfIOTnTeuDBsafuxt+LH9nevnKadS7YG4YefJ4oOfR3xG584hSuIDofIkctFklttdBJVCkWQmqSc3vRj3hwEkH93G7azPib3z2L+ZPmW3O/uC/luctSrT157dKc8/x9/om5y7+PRdeudukyYEu0TI2GW/9r90wJ+oWyefu58eSQjmp+qtFHCdGQKsYaF43Kom98ZVa/8bzD5QeBysZbWLV1r+2O+yOfo3w5BdRjnR993sEU/X0G7giiFGD9gIL7YdaShwhy54AltrSg8RqItvth3shLfriqK+G7Id1wUfMhCDOl+U3W0HSUu9g9JCZdHdkla1vu1oi3O7K3lGutdub/kv4DywtdWPjc47nBUq+O99JBB4lpHnlpc96wk/Wy2eCvO993hjGqJJIcYhft4f9GWHFFtgUbi/xZmN3wcjZ/Xnj7frv3h0f/HzTFSOAPn3+Pf49/j3+Pf49/hfjv8Po2R9gfj4veEAAAAASUVORK5CYII=";const Cc=e=>{const t=(e.id||"").toLowerCase(),n=(e.name||"").toLowerCase();return t.startsWith("io.privy.wallet")||n.includes("privy wallet")};async function Ac(e,t){let n;try{return await Promise.race([e,new Promise((o,r)=>{n=setTimeout(()=>{const a=new Error("Wallet network read timed out. Please try again.");a.name="WalletReadTimeout",r(a)},Math.max(0,t-Date.now()))})])}finally{n!==void 0&&clearTimeout(n)}}const Mg=({dark:e,dk:t,primaryColor:n,disabled:o,hidden:r,onConnecting:a,onError:i})=>{const[s,c]=H(!1),l=ui(),{embeddedAddress:d}=zr(),u=Z({account:l,embeddedAddress:d});u.current={account:l,embeddedAddress:d};const{ready:p,authenticated:w,user:f}=yl(),g={ready:p,authenticated:w,userId:f?.id},h=Z(g);h.current=g;const b=Z(0),v=()=>{const E=h.current;return E.ready===g.ready&&E.authenticated===g.authenticated&&E.userId===g.userId};Fo.useLayoutEffect(()=>(b.current++,c(!1),a(!1),()=>{b.current++}),[p,w,f?.id,a]);const{disconnectAsync:C}=pi(),{setActiveWallet:x}=kf(),{connectWallet:k}=wl({onSuccess:async({wallet:E})=>{if(!p||!v())return;const I=++b.current,y=()=>I===b.current&&v();c(!0),a(!0);try{if(E.type!=="ethereum"||E.connectorType==="embedded")throw new Error("Choose an external Ethereum wallet.");x(E);const A=u.current.account;A.address&&A.connector&&!Cc(A.connector)&&!G(A.address,u.current.embeddedAddress)&&!G(A.address,E.address)&&await C({connector:A.connector})}catch(A){y()&&i(Ln(A,"Failed to connect wallet."))}finally{y()&&(c(!1),a(!1))}},onError:E=>{v()&&(b.current++,c(!1),a(!1),i(Ln(E,"Failed to connect wallet.")))}});return r?null:B("button",{onClick:()=>{o||s||(b.current++,c(!0),a(!0),k({walletChainType:"ethereum-only"}))},disabled:o||s,style:{width:"100%",display:"flex",alignItems:"center",gap:"14px",padding:"10px",borderRadius:"8px",backgroundColor:s?e?t.hoverBg:"#f3f4f6":"transparent",border:`2px solid ${e?`${n}33`:`${n}55`}`,cursor:o||s?"not-allowed":"pointer",opacity:o?.6:1,transition:wo.interactive},children:[m("div",{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e?t.cardBg:"#f3f4f6"},children:m("img",{src:Sa.metamask,alt:"Browser wallet",style:{width:"26px",height:"26px",objectFit:"contain"}})}),m("span",{className:"ibm-plex-mono",style:{fontSize:"17px",fontWeight:500,letterSpacing:"0.4px",color:t.textPrimary,flex:1,textAlign:"left",fontFamily:tt.mono},children:s?"Opening wallet picker...":"MetaMask / Browser Wallet"})]})},Ng=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,onWalletSelect:o,onContinue:r,requiredChainId:a,styles:i})=>{const{dark:s,primaryColor:c,dk:l,theme:d}=dn(i),u=Fo.useContext(sn),[p,w]=H(null),[f,g]=H(!1),[h,b]=H(null),[v,C]=H(!1),[x,k]=H(null),[E,I]=H(!1);we(()=>{e||(b(null),C(!1),g(!1),k(null))},[e]);const{address:y,chain:A,connector:T,isConnected:F}=ui(),{externalWallet:L,externalAddress:R}=zr(),N=!!L&&!!R,O=L?.wallet.connector||L?.wallet.meta,D=Number(String(L?.wallet.chainId??"").replace(/^eip155:/,"")),M=L?.wallet.connector===T&&F&&G(R,y)?A:Ct(D)?.viemChain,{connectors:S,connectAsync:U}=gf(),{disconnectAsync:q}=pi(),X=ps(u?.network||"testnet"),K=Z(L);K.current=L;const Q=Z(0),Y=L?.wallet.connector||L?.wallet;we(()=>(Q.current++,g(!1),b(null),()=>{Q.current++}),[R,Y,e]);const oe=(a?Ct(a):null)?.displayName||M?.name||`Chain ${M?.id||a}`,he=V=>V.type==="announced"||typeof V.ready=="boolean"&&V.ready?!0:V.type==="injected"?typeof window<"u"&&!!window.ethereum:!0,ve=S.filter(V=>{const te=V.name.toLowerCase(),ue=(V.id||"").toLowerCase();return u?.provider==="privy"&&Cc(V)||["safe"].includes(V.type)?!1:V.type==="walletConnect"?!!V?.options?.projectId:V.type==="announced"?!0:V.type==="injected"||["metamask","rabby","phantom","coinbase","trust","rainbow"].some(J=>te.includes(J)||ue.includes(J))?he(V):!1}),ae=async V=>{if(!(v||f))try{if(C(!0),k(V.uid),b(null),await U({connector:V}),await Io(500),K.current?.wallet.connector!==V)throw new Error("Wallet changed. Please try again.");o&&o(V.id),a&&await _(a),await Io(800)}catch(te){console.error("Connection error:",te),ai(te)?b("Connection rejected. Please try again."):b(Ln(te,"Failed to connect wallet."))}finally{C(!1),k(null)}},ie=V=>{if(V.icon)return V.icon;const te=(V.name||"").toLowerCase();for(const[ue,J]of Object.entries(Sa))if(te.includes(ue.toLowerCase()))return J;if(!Cc(V)&&(V.type==="injected"||V.type==="announced")&&typeof window<"u"&&window.ethereum){const ue=window.ethereum;if(ue.isMetaMask)return Sa.metamask;if(ue.isRabby)return Sa.rabby;if(ue.isPhantom)return Sa.phantom}return null},ne=async(V,te,ue)=>{const J=te.wallet.connector||te.wallet,ce=Date.now()+2e3;for(;Date.now()<ce;){if(await Io(Math.min(100,ce-Date.now())),ue!==Q.current||!G(K.current?.address,te.address)||(K.current?.wallet.connector||K.current?.wallet)!==J)return!1;try{const He=await Ac((async()=>{const Xe=await te.getEthereumProvider();return parseInt(await Xe.request({method:"eth_chainId"}),16)})(),ce);if(ue!==Q.current||!G(K.current?.address,te.address)||(K.current?.wallet.connector||K.current?.wallet)!==J)return!1;if(He===V)return!0}catch{}}return!1},_=async V=>{const te=++Q.current,ue=K.current,J=ue?.wallet.connector||ue?.wallet,ce=()=>te===Q.current&&G(K.current?.address,ue?.address)&&(K.current?.wallet.connector||K.current?.wallet)===J;g(!0),b(null);try{if(!ue)throw new Error("Wallet not available");const He=Date.now()+2e3,Xe=await Ac(ue.getEthereumProvider(),He);let Ve;const se=()=>{if(!ce())throw new Error("Wallet changed. Please try again.");if(Ve)throw Ve};se(),await Ru({request:async Ue=>{if(Ue.method!=="eth_chainId")return Xe.request(Ue);try{return await Ac(Xe.request(Ue),He)}catch(be){throw be instanceof Error&&be.name==="WalletReadTimeout"&&(Ve=be),be}}},V,se),!await ne(V,ue,te)&&ce()&&b("Unable to switch to the correct network. Please switch manually in your wallet to continue.")}catch(He){ce()&&(console.error("Manual chain switch error:",He),b(ef(He)))}finally{ce()&&g(!1)}},de=async V=>{f||(I(!1),await _(V))},W=async()=>{if(!f){if(!a){I(V=>!V);return}await _(a)}},Me=async()=>{try{const V=L?.wallet;V&&typeof V.disconnect=="function"&&V.disconnect(),T&&G(R,y)&&await q({connector:T})}finally{b(null),C(!1),g(!1),k(null),I(!1)}},Oe=N&&!f&&!v&&(!a||M?.id===a),z=N&&!f&&!v&&a&&M?.id!==a;return B(Co,{isOpen:e,onClose:t,title:"Connect Wallet",styles:i,dark:s,bannerSrc:Dg,bannerAlt:"Connect wallet banner",closeOnBackdropClick:n,children:[B("div",{style:{padding:"0 24px 20px",display:"flex",flexDirection:"column",gap:"12px",marginTop:"20px"},children:[h&&m(ep,{dk:l,dark:s,message:h,buttonLabel:f?"Switching...":"Try Switch Again",onAction:W,disabled:f}),f&&B("div",{style:{padding:"12px",backgroundColor:s?l.infoBg:"#dbeafe",borderRadius:"8px",display:"flex",alignItems:"center",gap:"10px",marginTop:"20px"},children:[m(Ko,{size:20,color:s?l.infoText:"#3b82f6"}),m("p",{style:{margin:0,color:s?l.infoText:"#1e40af",fontSize:"14px"},children:"Switching network..."})]}),u?.provider==="privy"&&m(Mg,{dark:s,dk:l,primaryColor:c,disabled:v||f,hidden:N,onConnecting:C,onError:b}),N&&R?B("div",{style:{border:`1px solid ${s?l.successBorder:"#02974F"}`,borderRadius:"8px",overflow:"hidden",marginTop:"20px"},children:[B("div",{style:{backgroundColor:s?l.successBg:"#00FFA81C",padding:"14px 18px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[m("div",{style:{width:"22px",height:"22px",borderRadius:"50%",backgroundColor:"#02974F",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:"14px",fontWeight:"bold"},children:"\u2713"}),m("span",{className:"ibm-plex-mono",style:{color:s?l.successText:"#02974F",fontWeight:600,fontSize:"14px",letterSpacing:"0.5px"},children:"WALLET CONNECTED"})]}),m("div",{style:{width:"38px",height:"38px",borderRadius:"50%",backgroundColor:s?l.cardBg:"#f3f4f6",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:O&&ie(O)?m("img",{src:ie(O),alt:O.name,style:{width:"24px",height:"24px",objectFit:"contain"}}):m("span",{style:{fontSize:"16px",fontWeight:"bold",color:s?l.textPrimary:"inherit"},children:O?.name?.charAt(0)||"W"})})]}),B("div",{style:{padding:"18px",backgroundColor:s?l.cardBg:"white"},children:[B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"14px"},children:[m("span",{className:"ibm-plex-mono",style:{color:s?l.textSecondary:"#939291",fontSize:"13px",fontWeight:500,letterSpacing:"0.3px"},children:"ADDRESS:"}),m("span",{className:"ibm-plex-mono",style:{color:s?l.textPrimary:"black",fontSize:"14px",fontWeight:600,fontFamily:tt.mono,letterSpacing:"0.3px"},children:ga(R)})]}),E&&m("div",{style:{marginBottom:"12px",border:`1px solid ${s?l.inputBorder:"#E5E7EB"}`,borderRadius:"8px",overflow:"hidden",backgroundColor:l.cardBg},children:X.map(V=>{const te=Ct(V);if(!te)return null;const ue=M?.id===V;return B("button",{onClick:()=>{ue?I(!1):de(V)},style:{width:"100%",display:"flex",alignItems:"center",gap:"8px",padding:"10px 12px",backgroundColor:ue?s?`${c}15`:`${c}10`:"transparent",border:"none",borderBottom:`1px solid ${s?l.inputBorder:"#E5E7EB"}`,cursor:ue?"default":"pointer",transition:"background-color 0.15s"},onMouseEnter:J=>{ue||(J.currentTarget.style.backgroundColor=s?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.03)")},onMouseLeave:J=>{J.currentTarget.style.backgroundColor=ue?s?`${c}15`:`${c}10`:"transparent"},children:[m("img",{src:dr[V]||Aa,alt:te.displayName,style:{width:"20px",height:"20px",borderRadius:"50%",objectFit:"contain"}}),m("span",{style:{fontSize:"13px",fontWeight:ue?600:400,color:s?l.textPrimary:"#1f2937",fontFamily:tt.mono},children:te.displayName}),ue&&m("span",{style:{marginLeft:"auto",fontSize:"11px",color:c,fontWeight:500},children:"Connected"})]},V)})}),B("button",{className:"ibm-plex-mono",onClick:Me,style:{width:"100%",padding:"10px",backgroundColor:"transparent",border:`1px solid ${s?l.inputBorder:"#E5E7EB"}`,borderRadius:"6px",cursor:"pointer",fontSize:"13px",fontWeight:500,color:s?l.textSecondary:"#9CA3AF",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[m("span",{style:{fontSize:"16px"},children:"\u27F2"}),"DISCONNECT"]})]})]}):m(Sn,{children:ve.map(V=>{const te=he(V),ue=x===V.uid,J=!te||v||ue;return B("button",{onClick:()=>{J||ae(V)},onMouseEnter:()=>!J&&w(V.uid),onMouseLeave:()=>w(null),disabled:J,style:{width:"100%",display:"flex",alignItems:"center",gap:"14px",padding:"10px",borderRadius:"8px",backgroundColor:ue?s?l.hoverBg:"#f3f4f6":"transparent",border:p===V.uid&&!J?`2px solid ${s?`${c}44`:`${c}66`}`:"2px solid transparent",cursor:J?"not-allowed":"pointer",opacity:J?.6:1,transition:wo.interactive},children:[m("div",{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:s?l.cardBg:"#f3f4f6"},children:ie(V)?m("img",{src:ie(V),alt:V.name,style:{width:"26px",height:"26px",objectFit:"contain"}}):m("span",{style:{fontSize:"16px",fontWeight:"bold",color:s?l.textPrimary:"inherit"},children:V.name.charAt(0)})}),B("span",{className:"ibm-plex-mono",style:{fontSize:"17px",fontWeight:500,letterSpacing:"0.4px",color:J?s?l.inputPlaceholder:"#9ca3af":s?l.textPrimary:"#111827",flex:1,textAlign:"left",fontFamily:tt.mono},children:[ue?"Connecting...":V.name,!te&&!ue&&m("span",{style:{fontSize:"12px",marginLeft:"8px"},children:"(Not detected)"})]})]},V.uid)})})]}),z&&!h&&m("div",{style:{padding:"0 24px 20px"},children:m(ep,{dk:l,dark:s,message:`Please switch to ${oe} to continue.`,buttonLabel:f?"Switching...":"Switch Network",onAction:W,disabled:f})}),m("div",{style:{padding:"0 24px 25px"},children:m(Kt,{variant:"outline",fullWidth:!0,onClick:async()=>{Oe&&(await Io(300),r?await r():t())},disabled:!Oe,theme:d,dark:s,styles:i,children:v?"CONNECTING...":f?"SWITCHING NETWORK...":"CONTINUE"})})]})},Pg=new Set(["USDC","SUSD","USD","NUSD","USDT","DAI","ENUSD","USDG"]),np={ETH:"ethereum",WETH:"ethereum",BTC:"bitcoin",WBTC:"bitcoin",WCBTC:"bitcoin",CBTC:"bitcoin",ECBTC:"bitcoin",ARB:"arbitrum",HYPE:"hyperliquid",WHYPE:"hyperliquid",MATIC:"matic-network",POL:"matic-network"};let op=null;const Sc=6e4;async function rp(e){const t={},n=new Set,o={};for(const i of e){const s=i.toUpperCase();if(Pg.has(s))t[s]=1;else if(np[s]){const c=np[s];n.add(c),o[s]=c}else t[s]=0}if(n.size===0)return t;const r=Date.now(),a=op;if(a&&r-a.timestamp<Sc){for(const[i,s]of Object.entries(o))s in a.prices&&(t[i]=a.prices[s]);if([...n].every(i=>i in a.prices))return t;for(const i of Object.keys(a.prices))n.add(i)}try{const i=Array.from(n).join(","),s=await fetch(`https://api.coingecko.com/api/v3/simple/price?ids=${i}&vs_currencies=usd`);if(!s.ok)throw new Error(`CoinGecko ${s.status}`);const c=await s.json(),l=a&&Date.now()-a.timestamp<Sc?a:null,d={};let u=r;for(const p of n){const w=c[p]?.usd;w==null&&l&&p in l.prices?(d[p]=l.prices[p],u=l.timestamp):d[p]=w??0}op={prices:d,timestamp:u};for(const[p,w]of Object.entries(o))t[p]=d[w]??0}catch(i){console.warn("[fetchTokenPrices] CoinGecko fetch failed:",i);const s=a&&Date.now()-a.timestamp<Sc?a:null;for(const[c,l]of Object.entries(o))t[c]=s?.prices[l]??0}return t}const Ug=new Set(["cbtc","btc","wbtc","wcbtc","tbtc"]),Wg=new Set(["usdc","usdt","dai","usdc.e","usdbc","usdg"]);async function Lg(){const e=(await rp(["BTC"])).BTC;if(!e||e<=0)throw new Error("Failed to fetch BTC/USD price");return e}function qg(e){return Ug.has(e.toLowerCase())}function zg(e){return Wg.has(e.toLowerCase())}function Hg(e,t,n,o){const r=10n**12n,a=BigInt(Math.round(o*Number(r))),i=t-n,s=10n**BigInt(Math.abs(i));let c=e*a/r;return i>0?c=c/s:i<0&&(c=c*s),c}function Gs(e,t){if(e===0n)return"0";const n=10n**BigInt(t),o=e/n,r=(e%n).toString().padStart(t,"0").replace(/0+$/,"");return r?`${o.toString()}.${r}`:o.toString()}function Ec(e,t,n){const o=`${Gs(e,t)} ${n}`;return e===0n?o:`-${o}`}const Vg=({fontFamily:e,textPrimary:t,textSecondary:n,cardBg:o,cardBorder:r,resolvedDark:a,darkCardBorder:i,primaryColor:s,feePreview:c,feeOnlyAction:l=!1,asset:d,isLoading:u,errorText:p,directExecutionFeeNote:w=!1})=>{const f=Uo(),g=d&&c&&[d.symbol,d.displaySymbol,d.receiptTokenName].includes(c.symbol)?f(d).symbol:c?.symbol,h=a?i??r:"#e5e7eb",b=a?"#111214":"#111827",v=a?"rgba(255,255,255,0.08)":"rgba(17,24,39,0.12)",C="#f87171",x=a?"#d1d5db":"#4b5563",k=a?"#f3f4f6":t,[E,I]=H(!1),y=!!p,A=y?null:c,T=A?.feePayer==="relayer",F=A?[...l?[]:[{label:"Total Required",help:"Total amount required to fund this action.",value:`${Gs(A.grossAmount,A.decimals)} ${g}`,tone:"default"}],{label:"Spicenet Fee",help:"Fees paid to Spicenet for intent processing and execution.",value:T?"Covered":Ec(A.spicenetFee,A.decimals,g),tone:"fee"},{label:"Network Fee",help:"Network fee shown in the same token you are using for this action.",value:T?"Covered":Ec(A.gasFee,A.decimals,g),tone:"fee"},...A.bridgeFee&&A.bridgeFee>0n?[{label:"Bridge Fee",help:"Estimated cost to rebalance liquidity for this action.",value:Ec(A.bridgeFee,A.decimals,g),tone:"fee"}]:[],...l?[]:[{label:"Used in TX",help:"Resulting amount of funds used in the transaction.",value:`${Gs(A.netAmount,A.decimals)} ${g}`,tone:"default"}]]:[],L=A?`${Gs(l?T?0n:A.totalFee??A.gasFee+A.spicenetFee+(A.bridgeFee??0n):A.grossAmount,A.decimals)} ${g}`:null;return y?m("div",{style:{backgroundColor:o,border:`1px solid ${r}`,borderRadius:a?"8px":"7px",padding:"14px 16px 12px 16px",marginBottom:"16px",boxShadow:a?"inset 0 1px 0 rgba(255,255,255,0.03)":"none"},children:B("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[m("span",{style:{fontSize:"17px",fontWeight:500,color:x,fontFamily:e,lineHeight:"24px"},children:"Fee"}),m("div",{style:{color:C,fontSize:"12px",lineHeight:"1.55",fontFamily:e},children:p})]})}):B("div",{style:{backgroundColor:o,border:`1px solid ${r}`,borderRadius:a?"8px":"7px",padding:"14px 16px 12px 16px",marginBottom:"16px",boxShadow:a?"inset 0 1px 0 rgba(255,255,255,0.03)":"none"},children:[B("button",{type:"button",onClick:()=>I(R=>!R),style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"12px",marginBottom:E?"14px":0,background:"none",border:"none",padding:0,cursor:"pointer",textAlign:"left"},children:[B("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[m("span",{style:{fontSize:"17px",fontWeight:500,color:x,fontFamily:e,lineHeight:"24px"},children:"Fee"}),E&&m("span",{style:{fontSize:"12px",color:n,fontFamily:e,lineHeight:"1.45"},children:"What is funded, spent, and taken as fees"})]}),B("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:[L&&B("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"2px",minWidth:0},children:[m("span",{style:{fontSize:"10px",fontWeight:700,color:n,fontFamily:e,letterSpacing:"0.08em",textTransform:"uppercase"},children:l?"Total fees":"Total required"}),m("span",{style:{fontSize:"14px",fontWeight:700,color:k,fontFamily:e,whiteSpace:"nowrap"},children:L})]}),u&&!w&&m("span",{style:{fontSize:"11px",fontWeight:600,color:s,fontFamily:e,padding:"6px 9px",borderRadius:"999px",backgroundColor:a?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.035)",border:`1px solid ${a?h:"rgba(0,0,0,0.06)"}`,whiteSpace:"nowrap"},children:"Recalculating"}),m(Xr,{color:n,direction:E?"up":"down",style:{flexShrink:0}})]})]}),m("div",{style:{overflow:"hidden",maxHeight:E?"480px":"0px",opacity:E?1:0,transition:"max-height 0.24s ease, opacity 0.18s ease"},children:w?m("p",{style:{margin:0,color:n,fontSize:"12px",lineHeight:"1.55",fontFamily:e},children:"This path executes directly from the external wallet. Network gas is shown and paid in your wallet. No Spicenet fee is charged."}):F.length>0?B(Sn,{children:[m("div",{style:{display:"grid",gap:"10px"},children:F.map((R,N)=>B("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) auto",alignItems:"center",gap:"12px",paddingTop:N===0?0:"10px",borderTop:N===0?"none":`1px solid ${h}`,opacity:u?.74:1,transition:"opacity 120ms ease"},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"8px",minWidth:0},children:[m("span",{style:{fontSize:"12px",color:n,fontFamily:e,fontWeight:500},children:R.label}),m(Ku,{content:R.help,label:`${R.label} info`,textColor:"#f9fafb",backgroundColor:b,borderColor:v,accentColor:a?"#8f96a3":"#6b7280"})]}),m("span",{style:{fontSize:"12px",color:R.tone==="fee"?C:k,fontFamily:tt.mono,textAlign:"right",fontWeight:R.label==="Used in TX"?600:500,letterSpacing:"-0.01em"},children:R.value})]},R.label))}),m("div",{style:{marginTop:"12px",paddingTop:"12px",borderTop:`1px solid ${h}`,fontSize:"11px",color:n,fontFamily:e,lineHeight:"1.45"},children:A?.gasQuoteSource==="estimated"?"Gas quote uses a live estimate.":A?.gasQuoteSource==="configured_fallback"?"Gas quote uses a configured fallback.":"Gas quote is currently zero."})]}):m("div",{style:{fontSize:"12px",color:p?C:n,fontFamily:e,opacity:p?1:.8,lineHeight:"1.5"},children:p||"Waiting for fee estimate..."})})]})},Fc=bo(Vg),ra=99901;function Ks(e){return e.chainId===ra&&(Ae(e.address)||G(e.address,di("KNTQ",e.chainId)?.address))}function Mr(e,t){if(!(e.isNative&&!Ae(e.address)))return t?.find(({chainId:n,token:o,decimals:r})=>e.chainId===n&&(e.decimals===void 0||e.decimals===r)&&G(o,dt(e.address)))}async function ap(e,t){try{const n=await nl(`${e.replace(/\/$/,"")}/actions/capabilities?escrowDepositChainId=${ra}`,{cache:"no-store",signal:t});if(!n.ok)return[];const o=(await n.json()).escrowDepositAssets;if(!Array.isArray(o)||o.length>2)return[];const r=To(ra);if(G(r,zt))return[];const a=[];for(const i of o){if(!i||i.chainId!==ra||typeof i.token!="string"||!Mn(i.token)||!Ks({chainId:i.chainId,address:i.token,isNative:Ae(i.token)})||Ae(i.token)&&i.token!==zt||typeof i.escrow!="string"||!Mn(i.escrow)||!G(i.escrow,r)||typeof i.receiptToken!="string"||!i.receiptToken.trim()||i.receiptToken!==i.receiptToken.trim()||typeof i.receiptTokenName!="string"||!i.receiptTokenName.trim()||i.receiptTokenName!==i.receiptTokenName.trim()||i.decimals!==18||a.some(s=>G(i.token,s.token)||i.receiptToken===s.receiptToken))return[];a.push({chainId:i.chainId,token:i.token.toLowerCase(),escrow:r,receiptToken:i.receiptToken,receiptTokenName:i.receiptTokenName,decimals:i.decimals})}return a}catch{return[]}}function Ha(e,t){if(Mr(e,t))return!0;const n=dt(e.address);if(e.isNative||Ae(n))return!1;const o=Ct(e.chainId)?.supportedTokens?.some(a=>G(a.address,n)),r=Yt(n,e.chainId);return!!o&&!!r&&Ia(r)}const sp="spiceflow:pendingDeposit",Ys="spiceflow:pendingDepositChanged";function ip(e,t,n){return`${sp}:${e.toLowerCase()}:${t}:${n.toLowerCase()}`}function Tc(){try{const e="__spiceflow_storage_test__";return localStorage.setItem(e,"1"),localStorage.removeItem(e),!0}catch{return!1}}function Qg(e){if(!Tc())return;const t=ip(e.embeddedWalletAddress,e.chainId,e.tokenAddress);try{localStorage.setItem(t,JSON.stringify(e)),window.dispatchEvent(new Event(Ys))}catch(n){console.error("[pendingDeposit] Failed to save:",n)}}function cp(e){if(!Tc())return[];const t=`${sp}:${e.toLowerCase()}:`,n=[],o=Date.now();for(let r=0;r<localStorage.length;r++){const a=localStorage.key(r);if(!(!a||!a.startsWith(t)))try{const i=localStorage.getItem(a);if(!i)continue;const s=JSON.parse(i);if(o-s.timestamp>6048e5){localStorage.removeItem(a);continue}n.push(s)}catch{localStorage.removeItem(a)}}return n}function Zs(e,t,n){if(!Tc())return;const o=ip(e,t,n);localStorage.removeItem(o),window.dispatchEvent(new Event(Ys))}function Oc({escrowAddress:e,tokenAddress:t,isNative:n,amount:o,gasFeeAmount:r}){const a=(i,s)=>n?{to:i,value:s,data:"0x"}:{to:t,value:0n,data:Ot({abi:pt,functionName:"transfer",args:[i,s]})};return[a(e,o),...r>0n?[a(bn,r)]:[]]}function jg({sourceChainId:e,selectedAsset:t,destinationChainId:n,destinationTokenAddress:o,isCrossDenomination:r,convertedUsdAmount:a}){const i=dt(t.asset.address),s=o;let c,l;if(s&&n)if(c=os[n]?.supportedTokens?.find(d=>G(d.address,s))?.decimals??t.asset.decimals,r){if(!a)throw new Error("Destination amount is still being calculated. Please retry in a moment.");l=a}else{const d=$n(t.amount,t.asset.decimals);l=xo(d,t.asset.decimals,c)}return{sourceChainId:e,depositTokenAddress:i,depositAmount:t.amount,depositTokenDecimals:t.asset.decimals,destinationChainId:n,destinationTokenAddress:s,destinationAmount:l,destinationTokenDecimals:c}}async function Gg(e,t){if(!e)return[];if(Array.isArray(e))return e;const n=e;return e.length>=2?n(t.depositAmount,t.depositTokenAddress):n(t)}function lp(e,t){return!!e&&e.quotedAmount===t.amount&&e.chainId===t.chainId&&G(e.token,t.token)}async function Xs(e,t){let n;try{n=await fc(e,{recipient:t.recipient,tokenAddr:t.tokenAddr,isNative:t.isNative,amount:t.amount})}catch(i){throw dc(i)||ai(i)?i:new xe("SUBMISSION_UNKNOWN","The wallet transfer outcome is unknown. Close this deposit and check your activity and balances before continuing.",{submissionStatus:"unknown",cause:i})}t.afterSend?.(n);const o=Rt(t.chainId),{receipt:r,hash:a}=await Fs({client:o,hash:n,call:zs(t.recipient,t.tokenAddr,t.isNative,t.amount),confirmations:2});if(r.status!=="success")throw r.status==="reverted"&&r.transactionHash?.toLowerCase()===a.toLowerCase()&&t.afterRevert?.(),new Error(t.failureMessage);return t.settle&&await o.getBlockNumber()-r.blockNumber<2n&&await Io(3e3),a}async function Kg(e){const t=e.selectedDepositAssets.filter(a=>a.asset&&a.amount&&parseFloat(a.amount)>0);if(t.length===0){console.error("[DepositModal] No valid assets for deposit"),e.setError("Please select an asset and enter an amount");return}const n=t[0];if(!e.escrowOnly&&!e.sourceAddress){e.setError("External wallet not connected. Please connect your wallet in the previous step.");return}if(!e.isNon7702){if(!e.address||!e.embeddedWalletAddress){e.setError("Couldn't find your account wallet. Try reconnecting.");return}if(!e.isReady||!e.isAuthenticated){e.setError("Sign in to continue.");return}}if(e.zeroCreditError){e.setError(e.zeroCreditError);return}if(e.depositBalanceError){e.setError(e.depositBalanceError);return}if(e.isNon7702&&e.sponsorGas&&e.nativeChainId&&n.asset.chainId!==e.nativeChainId&&e.destinationTokenAddress){e.setError("Gas sponsorship is not supported for this deposit route. Disable sponsorGas to continue.");return}e.setIsExecuting(!0),e.setError(null);let o=!1,r=!1;try{const a=h=>Ha(h,e.escrowDepositAssets),i=t.flatMap(({asset:h})=>{const b=Mr(h,e.escrowDepositAssets);return b?[b]:[]});if(e.escrowOnly&&t.some(({asset:h})=>Ks(h)&&!Mr(h,e.escrowDepositAssets)))throw new Error("This asset is not currently available for an escrow deposit.");const s=e.escrowCapabilityApi,c=async()=>{if(e.validateCurrentSession?.(),!s||ze.getBaseUrl()!==s)throw new Error("The service changed. Review the deposit again.");const h=await ap(s,AbortSignal.timeout(8e3));if(e.validateCurrentSession?.(),ze.getBaseUrl()!==s||!i.every(b=>h.some(v=>v.chainId===b.chainId&&G(v.token,b.token)&&G(v.escrow,b.escrow)&&v.receiptToken===b.receiptToken&&v.receiptTokenName===b.receiptTokenName&&v.decimals===b.decimals)))throw new Error("The escrow deposit route changed. Review the current deposit before funding.")},l=e.escrowOnly||t.some(({asset:h})=>a(h));if(!e.isNon7702&&e.mode==="7702"&&l){const h=ze.getBaseUrl(),b=new kr;b.setBaseUrl(h);const v=AbortSignal.timeout(1e4),C=()=>{if(e.validateCurrentSession?.(),ze.getBaseUrl()!==h)throw new Error("The service changed. Review the deposit again.")};C();const x=async E=>{try{return await E}catch(I){throw C(),new xe("RELAYER_STATUS_ERROR","Deposit status is unavailable. Try again before adding cash.",{...I instanceof xe?I.context:{},cause:I})}},k=await x(b.supportsAutomaticContinuation({signal:v}));if(C(),k){const E=await x(b.getWalletActions(e.address,{pendingOnly:!0,signal:v}));C();let I=0;for(const y of E)for(const[A]of y.intents.entries()){if(I++>=4)throw new Error("A previous transaction still needs verification. Check your activity before adding cash.");const T=await x(b.getIntentRecoveryStatus(y.actionId,A,{signal:v}));if(C(),T==="unresolved")throw new Error("A previous transaction is still pending. Check your activity before adding cash.")}}}e.validateCurrentSession?.();const d=n.asset.chainId,u=To(d),p=$n(n.amount,n.asset.decimals),w=t.length===1&&lp(e.effectiveDepositFee,{amount:p,token:dt(n.asset.address),chainId:d}),f=!e.isNon7702&&!e.escrowOnly&&!a(n.asset);if(!e.isNon7702&&t.length===1&&!f&&!w)throw new Error("Fee quote is out of date. Please wait for it to refresh.");if(w&&!e.isNon7702&&!f){const{fee:h,net:b}=e.effectiveDepositFee;if(h>=p||b<=0n)throw new Error("This deposit amount is too small to cover the network fee. Your funds remain in your wallet.");if(h<0n||b+h!==p)throw new Error("Fee quote is out of date. Please wait for it to refresh.")}let g=e.externalWalletClient;if(!e.escrowOnly){if(e.validateCurrentSession?.(),!g)throw new Error("External wallet not connected");if(e.externalProvider){const h=await uc({provider:e.externalProvider,account:e.sourceAddress,chainId:d});h.viemChain&&(g=h.extWc),e.validateCurrentSession?.()}}if(e.isNon7702){if(!g)throw new Error("External wallet not connected");if(!e.sourceAddress)throw new Error("External wallet address not available");if(e.nativeChainId&&d===e.nativeChainId){const h=Ct(d),b=t.map(C=>`${C.amount} ${C.asset.symbol}`).join(", ");e.setConfirmationData({network:h?.displayName||`Chain ${d}`,amount:b,symbol:"",chainId:d}),e.setShowConfirmation(!0);let v=null;e.setDirectDepositStatus("processing"),e.setDirectDepositChainId(d);for(const C of t){const x=$n(C.amount,C.asset.decimals),k=dt(C.asset.address),E=C.asset.isNative||Ae(k),I=await Xs(g,{chainId:d,recipient:u,tokenAddr:k,isNative:E,amount:x,failureMessage:`Escrow deposit failed for ${C.asset.symbol}`,afterSend:()=>{r=!0}});v=I,e.setDirectDepositTxHash(I)}if(t[0]?.amount){const C=t[0].amount;if(e.onDepositExecute){e.setPostDepositStatus("executing");try{await e.onDepositExecute(C),e.setPostDepositStatus("success")}catch(k){console.error("ctx.onDepositExecute failed:",k),e.setPostDepositStatus("error"),e.setPostDepositError(k?.message||"Post-deposit instruction failed")}}else e.setPostDepositStatus("success");e.setDirectDepositStatus("success"),e.setPostDepositAmount(C),e.setPostDepositSuccess(!0);const x={type:"deposit",status:"success",amount:C,asset:t[0].asset.symbol,sourceChain:h?.displayName||`Chain ${d}`,txHash:v??void 0};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:x})),e.onDepositSuccess?.(x)}e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(t[0].asset)}else{const h=e.destinationChainId||e.nativeChainId;if(!h)throw new Error("Destination chain ID is required for non-7702 mode. Either pass ctx.destinationChainId to <SpiceDeposit> or set ctx.nativeChainId on <SpiceFlowProvider>.");const b=u,v=[];let C=null;for(const x of t){const k=$n(x.amount,x.asset.decimals),E=dt(x.asset.address),I=x.asset.isNative||Ae(E),y=await Xs(g,{chainId:d,recipient:b,tokenAddr:E,isNative:I,amount:k,failureMessage:`Transfer failed for ${x.asset.symbol}`,afterSend:()=>{r=!0},settle:!0});C||(C=y),e.depositDataRef.current||(e.depositDataRef.current=[]),e.depositDataRef.current.push({txHash:y,sender:e.sourceAddress,tokenAddress:E,chainId:d,amount:k.toString(),user:e.spiceBalanceUser}),v.push({tokenAddress:E,tokenAmount:k.toString(),sender:e.sourceAddress,receiver:b})}if(!C)throw new Error("No transaction hash generated");if(!e.destinationTokenAddress){const x={type:"deposit",status:"success",amount:t[0]?.amount,asset:t[0]?.asset?.symbol,sourceChain:uo(d),txHash:C};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:x})),e.onDepositSuccess?.(x),e.depositDataRef.current=null,e.bridgedAmountRef.current=t[0]?.amount||null,e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(t[0].asset),e.setShowConfirmation(!1);return}if(e.mode==="ondemand"){const x=ds(d)?.delegateContract;if(!x)throw new Error(`Unsupported chain ID: ${d}`);const k={to:x,value:BigInt(0),data:"0x"},E=await es(h,e.destinationTokenAddress);let I=BigInt(0);for(const D of v){const M=BigInt(D.tokenAmount),S=dt(D.tokenAddress),U=t.find(X=>{const K=dt(X.asset.address);return G(K,S)}),q=U?U.asset.decimals:await es(d,zt);I+=xo(M,q,E)}e.isCrossDenomination&&e.convertedUsdAmount&&(I=e.convertedUsdAmount);const y={chainId:d,tokenTransfers:v.map(D=>({from:D.sender,to:D.receiver,token:D.tokenAddress,amount:BigInt(D.tokenAmount)})),call:k},A=e.isCrossDenomination&&e.convertedUsdAmount?[{from:e.sourceAddress,to:u,token:dt(t[0].asset.address),amount:$n(t[0].amount,t[0].asset.decimals)}]:[],T={chainId:h,tokenTransfers:[...A,{from:"escrow",to:e.sourceAddress,token:e.destinationTokenAddress,amount:I}],call:{to:e.destinationTokenAddress,value:BigInt(0),data:"0x"}},F={mode:"non-7702:on-demand",chainBatches:[y,T]},L={user:e.sourceAddress,intents:[F]},R=await ze.createAction(L),N=R.actionId,O=R.intentIds[0];if(!C)throw new Error("No transaction hash available");e.startStatusPolling(O,al([{chainId:d,calls:[k]},{chainId:h,calls:[T.call]}],D=>uo(D))),await ze.executeStep(N,0,0,{action:"execute",hash:C}),t[0]?.amount&&(e.bridgedAmountRef.current=t[0].amount),e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(t[0].asset),e.setShowConfirmation(!1)}else throw new Error("Presign mode not yet fully supported for cross-chain deposits")}}else{!e.escrowOnly&&i.length&&await c();const h=[],b=[];let v=0,C;const x=w&&e.effectiveDepositFee?Le(e.effectiveDepositFee.net,n.asset.decimals):n?.amount;for(const M of t){const S=$n(M.amount,M.asset.decimals),U=w&&M===n,q=U?e.effectiveDepositFee.fee:0n,X=U?e.effectiveDepositFee.net:S,K=dt(M.asset.address),Q=M.asset.isNative||Ae(K);if(e.escrowOnly&&b.push({chainId:d,token:K,amount:X+q}),!e.escrowOnly&&!a(M.asset)){e.validateCurrentSession?.(),e.setDirectDepositStatus("processing"),e.setDirectDepositChainId(d);const Y=await Xs(g,{chainId:d,recipient:e.address,tokenAddr:K,isNative:Q,amount:S,failureMessage:`Transfer to embedded wallet failed for ${M.asset.symbol}`,afterSend:()=>{r=!0}});v+=1,M===n&&(C=Y);continue}if(!e.escrowOnly){e.validateCurrentSession?.();let Y;await Xs(g,{chainId:d,recipient:e.address,tokenAddr:K,isNative:Q,amount:S,failureMessage:`Transfer to embedded wallet failed for ${M.asset.symbol}`,afterSend:()=>{r=!0,Y={chainId:d,tokenAddress:dt(M.asset.address),tokenSymbol:M.asset.symbol,tokenDecimals:M.asset.decimals,amount:M.amount,rawAmount:S.toString(),embeddedWalletAddress:e.address,externalWalletAddress:e.sourceAddress,timestamp:Date.now(),isNative:Q},Qg(Y)},afterRevert:()=>{const oe=Y;oe&&cp(e.address).some(he=>Object.entries(oe).every(([ve,ae])=>he[ve]===ae))&&Zs(e.address,d,K)},settle:!0})}h.push(...Oc({escrowAddress:u,tokenAddress:K,isNative:Q,amount:X,gasFeeAmount:q}))}if(h.length===0){e.setDirectDepositTxHash(C??null),e.setDirectDepositStatus("success");const M={type:"deposit",status:"success",amount:n.amount,asset:n.asset.symbol,sourceChain:uo(d),txHash:C};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:M})),e.onDepositSuccess?.(M),e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(n.asset);return}v>0&&e.setDirectDepositStatus("idle");const k=t.find(M=>e.escrowOnly||a(M.asset))??n,E=await Rt(d).getBlockNumber(),I=h.map(M=>({...M,to:xn(M.to)})),y={chainId:d,recentBlock:E,calls:I,tokenTransfers:[]},A=jg({sourceChainId:d,selectedAsset:k===n&&x?{...n,amount:x}:k,destinationChainId:e.destinationChainId,destinationTokenAddress:e.destinationTokenAddress,isCrossDenomination:e.isCrossDenomination,convertedUsdAmount:e.convertedUsdAmount}),T=await Gg(e.depositBatches,A),F=[y,...T];if(!e.address)throw new Error("Address not available");const L=[];if(e.isCrossDenomination&&e.convertedUsdAmount&&e.destinationTokenAddress){const M=e.selectedDepositAssets[0]?.asset;if(M){const S=$n(e.selectedDepositAssets[0].amount,M.decimals);L.push({from:e.address,to:u,token:dt(M.address),amount:S}),L.push({from:"escrow",to:e.address,token:e.destinationTokenAddress,amount:e.convertedUsdAmount})}}L.length>0&&F[1]&&(F[1].tokenTransfers=L);const R=al(F,M=>uo(M));let N=!1;i.length&&await c(),e.validateCurrentSession?.();const O=await e.execution.execute(F,zt,0n,M=>{if(M.intentId&&!N){N=!0;for(const S of t)Zs(e.address,d,dt(S.asset.address));e.startStatusPolling(M.intentId,R)}},void 0,{userOverride:e.address,useCustomTransfers:!0,skipPreSubmitFeeEstimate:!0,skipUserFundingPreflight:!0,...e.escrowOnly?{walletFundingRequirements:b}:{},...e.validateCurrentSession?{validateBeforeSubmit:e.validateCurrentSession}:{}});if(e.refreshAssets(),e.onDepositExecute&&k.amount)try{e.setPostDepositStatus("executing"),await e.onDepositExecute(x||k.amount),e.setPostDepositStatus("success"),e.setPostDepositAmount(x||k.amount),e.setPostDepositSuccess(!0)}catch(M){console.error("ctx.onDepositExecute failed (7702):",M),e.setPostDepositStatus("error"),e.setPostDepositError(M?.message||"Post-deposit instruction failed");return}const D={type:"deposit",status:"success",amount:k===n&&x||k.amount,asset:k.asset.symbol,sourceChain:uo(d),txHash:/^0x[0-9a-f]{64}$/i.test(O??"")?O:void 0};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:D})),e.onDepositSuccess?.(D),e.onDepositSelect&&e.onDepositSelect(k.asset)}}catch(a){if(e.isCurrent&&!e.isCurrent())return;o=!0,console.error("[DepositModal] executeDeposit CAUGHT ERROR:",a),console.error("[DepositModal] Error details:",{message:a?.message,code:a?.code,name:a?.name,stack:a?.stack?.slice(0,500)});const i=a instanceof xe&&a.context.submissionStatus==="unknown";(r||i)&&(e.setRetryBlocked?.(!0),e.refreshAssets());let s=a instanceof xe&&a.context.submissionStatus==="rejected"&&(a.context.httpStatus===401||a.context.httpStatus===403)?"This app's deposit configuration was rejected. Contact the app's support team.":Ln(a,"Deposit failed");r&&(s+=" A wallet transfer was already submitted. Close this deposit and check your activity and balances before continuing."),e.setError(Ln(a instanceof xe?new xe(a.code,s,a.context):new Error(s),"Deposit failed")),i||e.clearStatus()}finally{if(e.isCurrent&&!e.isCurrent())return;e.setIsExecuting(!1),o&&e.setDirectDepositStatus("idle"),o||!e.getCurrentIntentStatus()&&e.getCurrentPostDepositStatus()!=="idle"||e.setShowConfirmation(!1)}}async function Bc(e){const{address:t,depositQuote:n}=e,{asset:o,amount:r,token:a,chainId:i}=n;let s=r>1n?1n:0n;const c=e.requireSimulation;for(let l=0;l<5;l++){if(c&&s>=r)throw new Error("Cash amount does not cover the order funding fee");const d=Oc({escrowAddress:To(i),tokenAddress:dt(a),amount:r-s,gasFeeAmount:s,isNative:o.isNative===!0||Ae(a)}),u={chainId:i,tokenTransfers:[],calls:d},p=await ze.estimateBatchGas({user:t,outputToken:a,chainBatches:[{...u,hash:Oo([u])[0].hash}],signal:e.signal,requireSimulation:e.requireSimulation});if(e.requireSimulation&&(p.gasQuoteSource!=="estimated"||p.simulationVerified!==!0||p.gasFee<0n))throw new Error("A verified deposit fee quote is unavailable");if(c&&p.gasFee>s){s=p.gasFee;continue}const w=c?s:p.gasFee;if(w>=r)throw new Error("This deposit amount is too small to cover the network fee. Your funds remain in your wallet.");const f=r-w;return{fee:w,net:f,quotedAmount:r,token:a,chainId:i}}throw new Error("Order funding fees did not converge. Prepare the order again")}const Yg=({selectedDepositAssets:e,depositAssets:t,secondAssetOptions:n,loadingAssets:o,allowSecondAsset:r,theme:a,styles:i,dark:s,dk:c,onSelect:l,onAmountChange:d,onAdd:u,onRemove:p,onViewAllAssets:w})=>B(Sn,{children:[e.map((f,g)=>{const h=e.length===1?"Deposit":`Asset ${g+1}`;return B("div",{style:{marginBottom:a.spacing.md,position:"relative"},children:[m(oa,{assets:g===0?t:n,selectedAsset:f||void 0,onAssetSelect:b=>l(b,g),onAmountChange:b=>d(b,g),loading:o,label:h,showBalance:!0,theme:a,styles:i,allowSecondAsset:r&&g===0,onAddAsset:u,canAddAsset:e.length===1&&!!e[0]?.asset,onViewAllAssets:g===0?w:void 0}),g===1&&m("button",{onClick:()=>p(g),style:{position:"absolute",top:"-2px",right:"-2px",background:s?`${c.cardBg}ee`:"rgba(255, 255, 255, 0.9)",border:`1px solid ${c.cardBorder}`,borderRadius:"50%",cursor:"pointer",color:a.colors.textMuted,fontSize:"16px",padding:"2px",width:"22px",height:"22px",display:"flex",alignItems:"center",justifyContent:"center",transition:wo.interactive,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},onMouseEnter:b=>{b.currentTarget.style.color=s?c.errorText:"#ef4444",b.currentTarget.style.background=s?c.cardBg:"#fff",b.currentTarget.style.borderColor=s?c.errorBorder:"#fecaca"},onMouseLeave:b=>{b.currentTarget.style.color=a.colors.textMuted,b.currentTarget.style.background=s?`${c.cardBg}ee`:"rgba(255, 255, 255, 0.9)",b.currentTarget.style.borderColor=s?c.cardBorder:"#e5e7eb"},title:"Remove asset",children:"\xD7"})]},`asset-${g}`)}),e.length===0&&m("div",{style:{marginBottom:a.spacing.md},children:m(oa,{assets:t,selectedAsset:void 0,onAssetSelect:f=>l(f,0),onAmountChange:f=>d(f,0),loading:o,label:"Deposit",showBalance:!0,theme:a,styles:i,allowSecondAsset:r,onAddAsset:u,canAddAsset:!1},"initial-selector")})]}),Zg=bo(Yg),Rc=({onClick:e,label:t="Add Funds",color:n,fontFamily:o,style:r})=>{const[a,i]=H(!1);return B("button",{type:"button",onClick:e,"data-spiceflow-focus":!0,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),style:{background:"none",border:"none",cursor:"pointer",padding:0,display:"inline-flex",alignItems:"center",gap:"4px",color:n,fontSize:"12px",fontWeight:500,fontFamily:o,textDecoration:"underline",textUnderlineOffset:"2px",whiteSpace:"nowrap",opacity:a?.75:1,transition:"opacity 150ms ease",...r},children:[t,B("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:[m("circle",{cx:"6",cy:"6",r:"5"}),m("path",{d:"M6 4v4M4 6h4",strokeLinecap:"round"})]})]})},Xg="This deposit didn't confirm in time. It may still have gone through, so check the explorer and refresh your balance before retrying.";function Jg(e){return e?.overallStatus!=="failed"?{isFailed:!1,failureMessage:null}:{isFailed:!0,failureMessage:e.steps?.find(t=>t.status==="failed"&&!!t.error)?.error||Xg}}const Js=B("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{flexShrink:0},children:[m("circle",{cx:"10",cy:"10",r:"10",fill:"#10b981"}),m("path",{d:"M6 10l3 3 5-6",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),$g=({isOpen:e,onClose:t,onConfirm:n,data:o,isExecuting:r=!1,retryBlocked:a=!1,directDepositStatus:i="idle",error:s=null,theme:c,styles:l,intentStatus:d,postDepositStatus:u="idle",hasPostDepositInstruction:p=!1})=>{const{dark:w,dk:f,theme:g}=dn(l),[h,b]=H(!1),[v,C]=H(!0);we(()=>{e||b(!1)},[e]);const x=()=>{b(!0),setTimeout(()=>{t()},300)},k=()=>{C(!v)};if(!e||!o)return null;const E=d?.overallStatus==="processing",I=d?.overallStatus==="success"||i==="success",y=!!d,{isFailed:A,failureMessage:T}=Jg(d),F=!y&&p,L=F&&u==="executing",R=F&&u==="success",N=I&&p&&(u==="idle"||u==="executing")||L,O=I&&(!p||u==="success"||u==="error")||R||F&&u==="error",D=w?f.cardBg:"#ffffff",M=w?"0 -4px 20px rgba(0, 0, 0, 0.4)":"0 -4px 20px rgba(0, 0, 0, 0.15)",S=f.textSecondary,U=w?f.textPrimary:"#1f2937",q=w?f.textPrimary:"#1f2937",X=Y=>m("div",{style:{marginBottom:c.spacing.md,padding:c.spacing.md,backgroundColor:l?.errorMessage?.backgroundColor||(c.mode==="light"?"#fef2f2":`${c.colors.error}20`),border:`1px solid ${l?.errorMessage?.borderColor||(c.mode==="light"?"#fecaca":c.colors.error)}`,borderRadius:l?.errorMessage?.borderRadius||c.borderRadius.md},children:m("p",{style:{color:l?.errorMessage?.color||c.colors.error,fontSize:l?.errorMessage?.fontSize||c.typography.fontSize.sm,margin:0,fontFamily:l?.errorMessage?.fontFamily||l?.fontFamily||c.typography.fontFamily},children:Y})}),K={fontSize:c.typography.fontSize.sm,fontWeight:500,color:S,fontFamily:tt.mono,letterSpacing:"0.5px"},Q=(Y,oe,he=U)=>B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:K,children:Y}),m("span",{style:{fontSize:c.typography.fontSize.sm,fontWeight:500,color:he,fontFamily:tt.mono},children:oe})]});return B("div",{style:{position:I||R?"relative":"absolute",bottom:0,left:0,right:0,zIndex:10,animation:h?"slideDown 0.3s ease-in":"slideUp 0.3s ease-out",pointerEvents:"auto"},children:[B("div",{style:{backgroundColor:D,borderRadius:"0",width:"100%",maxWidth:"522px",margin:"0 auto",padding:"18px 24px",boxShadow:M},children:[B(Sn,{children:[B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:c.spacing.md},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"},onClick:k,children:[m("span",{style:{fontSize:"13px",fontWeight:c.typography.fontWeight.medium,color:S,fontFamily:l?.fontFamily||c.typography.fontFamily},children:"Transaction Details"}),m(Xr,{color:S,direction:v?"up":"down"})]}),!I&&!R&&m("button",{onClick:Y=>{Y.stopPropagation(),t()},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:S,transition:"color 0.2s ease"},onMouseEnter:Y=>{Y.currentTarget.style.color=q},onMouseLeave:Y=>{Y.currentTarget.style.color=S},children:m(Oa,{size:16})})]}),B("div",{style:{marginBottom:c.spacing.lg,display:"flex",flexDirection:"column",gap:c.spacing.md,overflow:"hidden",maxHeight:v?"200px":"0px",opacity:v?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease"},children:[Q("NETWORK",o.network),Q("DEPOSITED AMOUNT",o.amount,c.colors.success),o.creditedAmount&&Q("CREDITED AMOUNT",o.creditedAmount),o.spicenetFee&&Q("SPICENET FEE",o.spicenetFee),o.networkFee&&Q("EST. NETWORK FEE",o.networkFee)]})]}),s&&!y&&X(s),A&&T&&X(T),m(Kt,{onClick:O||A||a?x:n,variant:"outline",fullWidth:!0,disabled:r||E||N||L,styles:l,theme:g,children:r||E||L||N?"PROCESSING...":O?"CONTINUE \u2192":A||a?"CLOSE":"CONFIRM DEPOSIT"}),O&&u!=="error"&&m("p",{style:{marginTop:c.spacing.md,marginBottom:0,fontSize:"14px",color:S,textAlign:"center",fontFamily:l?.fontFamily||c.typography.fontFamily},children:"Your funds are now available in your Account"}),m("div",{style:{marginTop:c.spacing.md,display:"flex",justifyContent:"center",alignItems:"center"},children:m("img",{src:Gd,alt:"Powered by SpiceNet",style:{height:"auto",width:"130px",opacity:1,filter:w?"brightness(0) invert(1) opacity(0.7)":"none"}})})]}),m("style",{children:`
23
23
  @keyframes slideUp {
24
24
  from {
25
25
  transform: translateY(100%);
@@ -36,7 +36,7 @@ Order: ${e}`}function Zi(e){const t=e.intents[0];if(e.intents.length!==1||t.mode
36
36
  transform: translateY(100%);
37
37
  }
38
38
  }
39
- `})]})},Zg=({intentStatus:e,postDepositSuccess:t=!1,postDepositAmount:n=null,postDepositStatus:o="idle",depositActionLabel:r="Post-Deposit Instruction",sourceChainName:a="Source Chain",directDepositStatus:i="idle",directDepositTxHash:s=null,directDepositChainId:c=null,styles:l})=>{const{dark:u,dk:d}=dn(l),[p,w]=H([]),f=J(null),g=u?d.cardBg:"#ffffff",h=u?d.textPrimary:"#374151",b=u?`${d.cardBorder}`:"rgba(255, 255, 255, 0.2)",x=d.textSecondary,C=u?d.successBg||"#064e3b":"#d1fae5",v=u?d.successText||"#6ee7b7":"#065f46",A=u?d.successBorder||"#065f4633":"#75FFD036",T=u?d.errorBg||"#7f1d1d":"#fecaca",I=u?d.errorText||"#fca5a5":"#991b1b",y=u?d.errorBorder||"#991b1b33":"#FCA5A536",k=e?.overallStatus==="processing",E=e?.overallStatus==="success",F=(E||i!=="idle")&&o!=="idle",U=r;return he(()=>(o!=="error"&&(i==="success"&&!k&&!E||t&&!k)&&(f.current=setTimeout(()=>{w([])},6e3)),()=>{f.current&&clearTimeout(f.current)}),[i,t,o,k,E]),he(()=>{const O=[];if(i==="processing"&&O.push({id:"direct-processing",type:"direct-processing",content:"PROCESSING DEPOSIT...",borderColor:b,backgroundColor:g,textColor:h,icon:m(Ko,{size:20,borderWidth:3,color:x})}),i==="success"){const M=s&&c?as(c,s):void 0;O.push({id:"direct-success",type:"direct-success",content:"DEPOSIT CONFIRMED",borderColor:A,backgroundColor:C,textColor:v,explorerUrl:M!=="#"?M:void 0,icon:Ys})}if(k&&O.push({id:"processing",type:"processing",content:"VERIFYING TRANSACTION SIGNATURE",borderColor:b,backgroundColor:g,textColor:h,icon:m(Ko,{size:20,borderWidth:3,color:x})}),E&&(O.push({id:"submitted",type:"submitted",content:"SUBMITTED TRANSACTION TO BLOCKCHAIN",borderColor:A,backgroundColor:C,textColor:v,icon:Ys}),O.push({id:"deposit-success",type:"deposit-success",content:`DEPOSIT TO ${a.toUpperCase()} SUCCESSFUL`,borderColor:A,backgroundColor:C,textColor:v,icon:Ys})),F){const M=o==="success"?A:o==="error"?y:b,B=o==="success"?C:o==="error"?T:g,D=o==="success"?v:o==="error"?I:h;let W="";o==="executing"?W=`EXECUTING ${U.toUpperCase()}...`:o==="success"?W=`${U.toUpperCase()} CONFIRMED`:o==="error"&&(W=`${U.toUpperCase()} FAILED`);let S;o==="executing"?S=m(Ko,{size:20,borderWidth:3,color:x}):o==="success"?S=R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{flexShrink:0},children:[m("circle",{cx:"10",cy:"10",r:"10",fill:"#10b981"}),m("path",{d:"M6 10l3 3 5-6",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):o==="error"&&(S=R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{flexShrink:0},children:[m("circle",{cx:"10",cy:"10",r:"10",fill:"#ef4444"}),m("path",{d:"M6 6l8 8M14 6l-8 8",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round"})]})),O.push({id:"post-deposit",type:"post-deposit",content:W,status:o,borderColor:M,backgroundColor:B,textColor:D,icon:S})}t&&n&&o!=="error"&&O.push({id:"post-deposit-success",type:"post-deposit-success",content:`SUCCESSFULLY DEPOSITED ${n}`,borderColor:A,backgroundColor:C,textColor:v,icon:Ys}),w(M=>{const B=new Set(O.map(S=>S.id)),D=[],W=new Set;for(const S of M)if(B.has(S.id)){const q=O.find(z=>z.id===S.id);D.push(q),W.add(S.id)}for(const S of O)W.has(S.id)||D.push(S);if(D.length>3){const S=[],q=[];for(const Y of D)Y.type==="processing"||Y.type==="post-deposit"&&Y.status==="executing"?S.push(Y):q.push(Y);const z=[...S],te=3-z.length;return te>0&&q.length>0&&z.push(...q.slice(-te)),z}return D})},[k,E,F,o,t,n,U,a,i,s,c,u]),p.length===0?null:R("div",{style:{position:E||i==="success"?"relative":"absolute",top:E||i==="success"?0:"56px",left:E||i==="success"?0:"24px",right:E||i==="success"?0:"24px",zIndex:100,display:"flex",flexDirection:"column",gap:"8px",pointerEvents:"none"},children:[p.map(O=>m("div",{style:{borderRadius:"12px",border:`4px solid ${O.borderColor}`,background:"transparent",animation:"fadeInSlide 0.4s ease-out"},children:R("div",{style:{backgroundColor:O.backgroundColor,borderRadius:"8px",padding:"14px 16px",display:"flex",alignItems:"center",gap:"12px"},children:[O.icon,m("span",{style:{fontSize:"13px",fontWeight:"600",color:O.textColor,letterSpacing:"0.3px",fontFamily:nt.ui,flex:1},children:O.content}),O.explorerUrl&&m("a",{href:O.explorerUrl,target:"_blank",rel:"noopener noreferrer",style:{fontSize:"12px",fontWeight:"600",color:O.textColor,textDecoration:"underline",whiteSpace:"nowrap",pointerEvents:"auto",opacity:.8},children:"View tx"})]})},O.id)),m("style",{children:`
39
+ `})]})},_g=({intentStatus:e,postDepositSuccess:t=!1,postDepositAmount:n=null,postDepositStatus:o="idle",depositActionLabel:r="Post-Deposit Instruction",sourceChainName:a="Source Chain",directDepositStatus:i="idle",directDepositTxHash:s=null,directDepositChainId:c=null,styles:l})=>{const{dark:d,dk:u}=dn(l),[p,w]=H([]),f=Z(null),g=d?u.cardBg:"#ffffff",h=d?u.textPrimary:"#374151",b=d?`${u.cardBorder}`:"rgba(255, 255, 255, 0.2)",v=u.textSecondary,C=d?u.successBg||"#064e3b":"#d1fae5",x=d?u.successText||"#6ee7b7":"#065f46",k=d?u.successBorder||"#065f4633":"#75FFD036",E=d?u.errorBg||"#7f1d1d":"#fecaca",I=d?u.errorText||"#fca5a5":"#991b1b",y=d?u.errorBorder||"#991b1b33":"#FCA5A536",A=e?.overallStatus==="processing",T=e?.overallStatus==="success",F=(T||i!=="idle")&&o!=="idle",L=r;return we(()=>(o!=="error"&&(i==="success"&&!A&&!T||t&&!A)&&(f.current=setTimeout(()=>{w([])},6e3)),()=>{f.current&&clearTimeout(f.current)}),[i,t,o,A,T]),we(()=>{const R=[];if(i==="processing"&&R.push({id:"direct-processing",type:"direct-processing",content:"PROCESSING DEPOSIT...",borderColor:b,backgroundColor:g,textColor:h,icon:m(Ko,{size:20,borderWidth:3,color:v})}),i==="success"){const N=s&&c?ss(c,s):void 0;R.push({id:"direct-success",type:"direct-success",content:"DEPOSIT CONFIRMED",borderColor:k,backgroundColor:C,textColor:x,explorerUrl:N!=="#"?N:void 0,icon:Js})}if(A&&R.push({id:"processing",type:"processing",content:"VERIFYING TRANSACTION SIGNATURE",borderColor:b,backgroundColor:g,textColor:h,icon:m(Ko,{size:20,borderWidth:3,color:v})}),T&&(R.push({id:"submitted",type:"submitted",content:"SUBMITTED TRANSACTION TO BLOCKCHAIN",borderColor:k,backgroundColor:C,textColor:x,icon:Js}),R.push({id:"deposit-success",type:"deposit-success",content:`DEPOSIT TO ${a.toUpperCase()} SUCCESSFUL`,borderColor:k,backgroundColor:C,textColor:x,icon:Js})),F){const N=o==="success"?k:o==="error"?y:b,O=o==="success"?C:o==="error"?E:g,D=o==="success"?x:o==="error"?I:h;let M="";o==="executing"?M=`EXECUTING ${L.toUpperCase()}...`:o==="success"?M=`${L.toUpperCase()} CONFIRMED`:o==="error"&&(M=`${L.toUpperCase()} FAILED`);let S;o==="executing"?S=m(Ko,{size:20,borderWidth:3,color:v}):o==="success"?S=B("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{flexShrink:0},children:[m("circle",{cx:"10",cy:"10",r:"10",fill:"#10b981"}),m("path",{d:"M6 10l3 3 5-6",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):o==="error"&&(S=B("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{flexShrink:0},children:[m("circle",{cx:"10",cy:"10",r:"10",fill:"#ef4444"}),m("path",{d:"M6 6l8 8M14 6l-8 8",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round"})]})),R.push({id:"post-deposit",type:"post-deposit",content:M,status:o,borderColor:N,backgroundColor:O,textColor:D,icon:S})}t&&n&&o!=="error"&&R.push({id:"post-deposit-success",type:"post-deposit-success",content:`SUCCESSFULLY DEPOSITED ${n}`,borderColor:k,backgroundColor:C,textColor:x,icon:Js}),w(N=>{const O=new Set(R.map(S=>S.id)),D=[],M=new Set;for(const S of N)if(O.has(S.id)){const U=R.find(q=>q.id===S.id);D.push(U),M.add(S.id)}for(const S of R)M.has(S.id)||D.push(S);if(D.length>3){const S=[],U=[];for(const K of D)K.type==="processing"||K.type==="post-deposit"&&K.status==="executing"?S.push(K):U.push(K);const q=[...S],X=3-q.length;return X>0&&U.length>0&&q.push(...U.slice(-X)),q}return D})},[A,T,F,o,t,n,L,a,i,s,c,d]),p.length===0?null:B("div",{style:{position:T||i==="success"?"relative":"absolute",top:T||i==="success"?0:"56px",left:T||i==="success"?0:"24px",right:T||i==="success"?0:"24px",zIndex:100,display:"flex",flexDirection:"column",gap:"8px",pointerEvents:"none"},children:[p.map(R=>m("div",{style:{borderRadius:"12px",border:`4px solid ${R.borderColor}`,background:"transparent",animation:"fadeInSlide 0.4s ease-out"},children:B("div",{style:{backgroundColor:R.backgroundColor,borderRadius:"8px",padding:"14px 16px",display:"flex",alignItems:"center",gap:"12px"},children:[R.icon,m("span",{style:{fontSize:"13px",fontWeight:"600",color:R.textColor,letterSpacing:"0.3px",fontFamily:tt.ui,flex:1},children:R.content}),R.explorerUrl&&m("a",{href:R.explorerUrl,target:"_blank",rel:"noopener noreferrer",style:{fontSize:"12px",fontWeight:"600",color:R.textColor,textDecoration:"underline",whiteSpace:"nowrap",pointerEvents:"auto",opacity:.8},children:"View tx"})]})},R.id)),m("style",{children:`
40
40
  @keyframes fadeInSlide {
41
41
  from {
42
42
  opacity: 0;
@@ -47,14 +47,14 @@ Order: ${e}`}function Zi(e){const t=e.intents[0];if(e.intents.length!==1||t.mode
47
47
  transform: translateY(0);
48
48
  }
49
49
  }
50
- `})]})},Xg=Eo.memo(({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,onDepositSelect:o,depositBatches:r,supportedChains:a,title:i,styles:s,onDepositAssetChange:c,assetInputHook:l,externalWalletAddress:u,onDepositAmountChange:d,allowSecondAsset:p=!1,destinationChainId:w,destinationTokenAddress:f,onDepositExecute:g,depositActionLabel:h,nativeChainId:b,sponsorGas:x=!1,preSelectedAsset:C,escrowOnly:v=!1,escrowTokenAddress:A,escrowAmount:T,escrowTokenDecimals:I,escrowTokenSymbol:y,onSubmit:k,directSubmit:E=!1,onDepositSuccess:F,onDepositError:U,embeddedWalletAddress:O,onViewAllAssets:M})=>{const B=fn(cn),D=B?.mode||"7702",W=B?.allowedTokens,S=!!B?.isWhitelistGateActive,q=!v&&!!B?.isWhitelistConfigured&&B?.isUserWhitelisted!==!0,z=l?.assetAmount||"",{theme:te,dark:Y,appName:j,primaryColor:K,dk:X}=dn(s),xe=Mo(),{isReady:ge,isAuthenticated:ve}=xe,{externalWallet:Se}=zr(),ne=B?.embeddedWalletAddress||O,_=D!="7702",ue=_?!!u:ge&&ve&&!!ne,P=ne,Le=u,Be=P??Le,L=No(),{data:V}=ff(),[oe,le]=Eo.useState(V),Z=Eo.useRef(null),se=Eo.useRef(Se);se.current=Se;const We=Se?.address;Eo.useEffect(()=>{const re=se.current;if(!re||!Le){Z.current=null,le(V);return}if(re.address?.toLowerCase()!==Le?.toLowerCase()){Z.current=null,le(V);return}re.getEthereumProvider().then(async Ue=>{Z.current=Ue;const Nt=await Ue.request({method:"eth_chainId"}),Xe=parseInt(Nt,16),je=kt(Xe),pt=await re.getWalletClient(Xe);le(je?li({account:Le,chain:je.viemChain,transport:di(Ue)}):pt)}).catch(()=>{Z.current=null,le(V)})},[We,Le,V]);const He=Eo.useRef(null),[ye,Oe]=H([]),{assets:Ne,loading:Ce,refreshAssets:Ge}=Ea({address:v?P:Le||P,supportedChains:a,fetchBalances:Kr,enabled:e,refreshInterval:e?5e3:0}),ke=Ae(()=>Ne.filter(re=>re.balance>0n&&To(re,"deposit-source",{allowedTokens:W,rpcOverrides:B?.rpcOverrides,liquidityVenues:B?.liquidityVenues,isWhitelistGateActive:S},void 0,void 0,{requiresEscrow:_||v}).eligible).sort((re,Ue)=>Ue.balanceUsd-re.balanceUsd),[Ne,W,B?.rpcOverrides,S,_,v]),Qe=Ae(()=>{if(!ye[0]?.asset)return[];const re=ye[0].asset.chainId;return ke.filter(Ue=>Ue.chainId===re)},[ke,ye]),[pe,et]=H(!1),[Ct,lt]=H(!1),st=JSON.stringify([e,P,Le,B?.apiUrl,B?.network]),$e=J({key:st,version:0});$e.current.key!==st&&($e.current={key:st,version:$e.current.version+1}),he(()=>{lt(!1),et(!1)},[st]);const[Re,Fe]=H(null),bt=J(U);bt.current=U;const it=ae(re=>{Fe(re),typeof re=="string"&&re&&bt.current?.(re,Hr(re))},[]),[ie,xt]=H("idle"),vt=ae(re=>{typeof re=="string"&&re&&bt.current?.(re,Hr(re))},[]),[Ve,Dt]=H(!1),[Vt,yn]=H(null),[Wt,Dn]=H("idle"),[ht,Ye]=H(null),[gt,mt]=H(null),[Ft,ee]=H(null),[At,Pe]=H(null),[Ze,ct]=H(null),{intentStatus:wt,startStatusPolling:Je,clearStatus:Lt,execute:St}=Yr(),_t=wt?.overallStatus==="success"||Wt==="success",It=ae((re,Ue)=>{const Nt=ns[Ue];return Nt?Nt.supportedTokens?.find(Xe=>G(Xe.address,re))?.symbol??null:null},[]),$n=Ae(()=>{const re=ye[0]?.asset;if(!re||!f||!w)return!1;const Ue=It(f,w);return Pg(re.symbol)&&!!Ue&&Ug(Ue)},[ye,f,w,It]);he(()=>{ye.length>0&&z!==ye[0]?.amount&&Oe(re=>{if(re.length===0)return re;const Ue=[...re];return Ue[0]={...Ue[0],amount:z||""},Ue})},[z]),he(()=>{ye.length!==0&&Oe(re=>{let Ue=!1;const Nt=re.map(Xe=>{if(!Xe.asset)return Xe;const je=ke.find(pt=>pt.chainId===Xe.asset.chainId&&G(pt.address,Xe.asset.address));return je?je===Xe.asset||je.balance===Xe.asset.balance?Xe:(Ue=!0,{...Xe,asset:je,amount:Xe.amount}):Xe});return Ue?Nt:re})},[ke,ye.length]),he(()=>{if(!C||ye.length>0||ke.length===0)return;const re=ke.find(Ue=>Ue.chainId===C.chainId&&G(Ue.address,C.address));re&&(Oe([{asset:re,amount:""}]),c?.(re))},[C,ke,ye.length]);const Mn=Eo.useRef(null);he(()=>{if(_&&wt?.overallStatus==="success"&&g&&ie==="idle"){const re=Mn.current,Ue=He.current;if(re){const Nt=$e.current.version,Xe=()=>$e.current.version===Nt;(async()=>{try{xt("executing"),await g(re),Xe()&&(xt("success"),yn(re),Dt(!0));const je=Array.isArray(Ue)?Ue[0]:void 0,pt={type:"deposit",status:"success",amount:re,asset:je?.tokenAddress,sourceChain:je?String(je.chainId):void 0,txHash:je?.txHash};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:pt})),F?.(pt)}catch(je){console.error("onDepositExecute failed:",je),Xe()&&(xt("error"),vt(Wn(je,"Post-deposit instruction failed")))}finally{Mn.current===re&&He.current===Ue&&(Mn.current=null,He.current=null)}})()}}},[wt?.overallStatus,_,ie]);const Kn=ae(()=>{Ct||it(null)},[Ct]);he(()=>{Lt(),ln(!1),tt(null),xt("idle"),Dt(!1),yn(null),Dn("idle"),Ye(null),mt(null)},[st]);const Oo=ae((re,Ue)=>{Oe(Nt=>{const Xe=[...Nt];return Xe[Ue]={asset:re,amount:Xe[Ue]?.amount||""},Xe}),Ue===0&&c?.(re),Kn()},[c,Kn]),Ln=ae(async(re,Ue)=>{if(Oe(Nt=>{const Xe=[...Nt];return Xe[Ue]&&(Xe[Ue]={...Xe[Ue],amount:re}),Xe}),Kn(),Ue===0)if(l?.setAssetAmount(re),$n&&re&&parseFloat(re)>0)try{const Nt=Ft??await Ng();Ft||ee(Nt);const Xe=ye[0]?.asset;if(!Xe)return;const je=Xn(re,Xe.decimals),pt=f?It(f,w):null,jn=ns[w]?.supportedTokens?.find(fo=>G(fo.address,f))?.decimals??6,po=Wg(je,Xe.decimals,jn,Nt);Pe(po);const Tn=Me(po,jn),wr=Nt.toLocaleString("en-US",{maximumFractionDigits:0});ct(`${re} ${Xe.symbol} \u2248 $${parseFloat(Tn).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})} ${pt??"USD"} (rate: $${wr}/BTC)`),d?.(Tn)}catch(Nt){console.error("Failed to fetch BTC/USD price:",Nt),ct(null),Pe(null),d?.(re)}else ct(null),Pe(null),d?.(re)},[Kn,l,d,$n,Ft,ye,f,w,It]),qn=ae(()=>{ye.length<2&&Oe(re=>[...re,{asset:null,amount:""}])},[ye.length]),bn=ae(re=>{Oe(Ue=>Ue.filter((Nt,Xe)=>Xe!==re)),Kn()},[Kn]),zt=J(!1),en=J(!1);he(()=>{e||(zt.current=!1,en.current=!1,_n(null),Sn(null))},[e]);const[tn,ln]=H(!1),[Qt,tt]=H(null),[Ut,_n]=H(null),[In,Sn]=H(null),[En,Vn]=H(!1),[mn,eo]=H(null),_e=Ae(()=>{const re=ye[0];if(ye.length!==1||!re?.asset||!re.amount||parseFloat(re.amount)<=0)return null;try{return{asset:re.asset,amount:Xn(re.amount,re.asset.decimals),token:ft(re.asset.address),chainId:re.asset.chainId}}catch{return null}},[ye]),Nn=!_&&!v&&!!_e&&!hr(_e.asset),kn=Ae(()=>_e?[_e.chainId,_e.token.toLowerCase(),_e.amount.toString(),v?"escrow":"normal"].join("|"):null,[_e,v]),Bo=ae(async(re,Ue)=>P?Ec({address:P,depositQuote:re,signal:Ue}):null,[P]),uo=ae(async re=>_e?Bo(_e,re):null,[_e,Bo]),Qn=J(uo);Qn.current=uo,Di({shouldRun:e&&!_&&!Nn&&!!kn&&!tn&&!pe&&!wt&&!_t,deps:[e,_,Nn,kn,tn,pe,wt,_t],delayMs:500,backgroundIntervalMs:3e4,onSkip:()=>{_n(null),eo(null),Vn(!1)},onCleanup:()=>Vn(!1),run:async({isBackground:re,isCurrent:Ue,signal:Nt})=>{re||(eo(null),Vn(!0));try{const Xe=await Qn.current(Nt);Ue()&&_n(Xe)}catch(Xe){if(!Ue())return;_n(null),eo(Xe instanceof Error?Xe.message:"Failed to estimate gas fee")}finally{Ue()&&Vn(!1)}}}),he(()=>{tn||pe||Sn(null)},[tn,pe,kn]);const Ro=J(!1),ko=()=>{if(ye.length===0||!ye[0]?.asset)return;const re=ye.filter(pt=>pt.asset&&pt.amount&&parseFloat(pt.amount)>0);if(re.length===0)return;const Ue=re[0],Nt=kt(Ue.asset.chainId),Xe=re.map(pt=>{const jn=parseFloat(pt.amount);return`${isNaN(jn)?pt.amount:jn.toPrecision(6).replace(/\.?0+$/,"")} ${pt.asset.symbol}`}).join(", "),je={network:Nt?.displayName||`Chain ${Ue.asset.chainId}`,amount:Xe,symbol:"",chainId:Ue.asset.chainId};if(nn&&Ht&&Pn){Sn(Ht);const pt=re[0];je.creditedAmount=`${Me(Ht.net,pt.asset.decimals)} ${hr(pt.asset)?L({...pt.asset,location:"rollup",_source:"spice",receiptTokenName:"spiceUSDC"}).symbol:pt.asset.symbol}`,je.networkFee=`${Me(Ht.fee,pt.asset.decimals)} ${pt.asset.symbol}`}return tt(je),je},me=async()=>{!Vo||!ko()||(E?await xn():ln(!0))},ce=J(wt);ce.current=wt;const ot=J(ie);ot.current=ie;const Et=JSON.stringify([e,P,ne,Le,ge,ve,D,qe.getBaseUrl(),S,v,w,f,q,ye.map(({asset:re,amount:Ue})=>[re.chainId,re.address,Ue])]),De=J({key:Et});De.current.key!==Et&&(De.current={key:Et});const Jt=J(!0),Mt=J(!1);Po(()=>(Jt.current=!0,()=>{Jt.current=!1}),[]);const un=async()=>{if(Mt.current)return;Mt.current=!0;const re=De.current,Ue=qe.getBaseUrl();try{ko();const Nt=$e.current.version,Xe=()=>$e.current.version===Nt,je=pt=>(...jn)=>{Xe()&&pt(...jn)};await Vg({isCurrent:Xe,validateCurrentSession:()=>{if(!e||!Jt.current||De.current!==re||qe.getBaseUrl()!==Ue)throw new Error("The wallet or deposit changed. Review it again before funding.")},selectedDepositAssets:ye,escrowOnly:v,sourceAddress:Le,isNon7702:_,address:P,embeddedWalletAddress:ne,isReady:ge,isAuthenticated:ve,zeroCreditError:rn,depositBalanceError:$t,externalWalletClient:oe,externalProvider:Z.current,effectiveDepositFee:Ht,depositBatches:r,destinationChainId:w,destinationTokenAddress:f,isCrossDenomination:$n,convertedUsdAmount:At,mode:D,sponsorGas:x,nativeChainId:b,spiceBalanceUser:Be,depositDataRef:He,bridgedAmountRef:Mn,setIsExecuting:je(et),setError:je(it),setRetryBlocked:je(lt),setConfirmationData:je(tt),setShowConfirmation:je(ln),setDirectDepositStatus:je(Dn),setDirectDepositChainId:je(mt),setDirectDepositTxHash:je(Ye),setPostDepositStatus:je(xt),setPostDepositError:je(vt),setPostDepositAmount:je(yn),setPostDepositSuccess:je(Dt),startStatusPolling:je(Je),clearStatus:je(Lt),refreshAssets:Ge,onDepositExecute:g,onDepositSelect:o,onDepositSuccess:F,execution:{execute:St},getCurrentIntentStatus:()=>ce.current,getCurrentPostDepositStatus:()=>ot.current})}finally{Mt.current=!1}},xn=async()=>{if(!(Ro.current||pe||Ct||_t)){Ro.current=!0;try{k?.(),await un()}finally{Ro.current=!1}}},rn=Ae(()=>{for(const re of ye)if(!(!re?.asset||!re.amount||parseFloat(re.amount)<=0))try{const Ue=re.asset.decimals,Nt=Xn(re.amount,Ue);if(Nt<=0n)continue;const Xe=ft(re.asset.address),je=Te(Xe)?Xt(Xe,re.asset.chainId)?.equivalenceGroup:il(Xe),pt=re.asset.receiptTokenDecimals??(je==="ETH"||je==="ARB"?18:je==="USDC"||je==="SUSD"||je==="WBTC"||je==="CBTC"?6:void 0);if(pt===void 0||Ue<=pt||yo(Nt,Ue,pt)>0n)continue;return`Amount too small. Minimum deposit for this asset is ${Me(10n**BigInt(Ue-pt),Ue)} ${re.asset.symbol}.`}catch{continue}return null},[ye]),nn=!_&&!!_e&&!Nn,Ht=In??Ut,Pn=!!_e&&rp(Ht,_e),$t=Ae(()=>{if(!_e)return null;if(Nn)return _e.asset.balance>=_e.amount?null:`Insufficient ${_e.asset.symbol}. Need ${Me(_e.amount,_e.asset.decimals)} ${_e.asset.symbol}.`;if(!nn||!Pn)return null;if(Ht.fee>=_e.amount||Ht.net<=0n)return"This deposit amount is too small to cover the network fee. Your funds remain in your wallet.";const re=_e.amount;return _e.asset.balance>=re?null:`Insufficient ${_e.asset.symbol}. Need ${Me(re,_e.asset.decimals)} ${_e.asset.symbol} including gas.`},[nn,Nn,_e,Pn,Ht]),[to,Fn]=H(!1),dt=ye[0]?.asset?.chainId,pn=Ne.find(re=>re.isNative&&re.chainId===dt)?.balance??0n;he(()=>{if(!e||!dt||v){Fn(!1);return}let re=!1;return(async()=>{try{const Ue=await Rt(dt).getGasPrice()*150000n;re||Fn(pn<Ue)}catch{re||Fn(!1)}})(),()=>{re=!0}},[e,dt,pn,v]);const tr=!nn||Pn&&!En&&!mn&&!$t,gr=Ae(()=>{if(!_e||!Ht||!Pn)return null;const re=_e.amount;return{symbol:_e.asset.symbol,decimals:_e.asset.decimals,grossAmount:re,netAmount:Ht.net,totalFee:Ht.fee,gasFee:Ht.fee,spicenetFee:0n,bridgeFee:0n,gasQuoteSource:"estimated"}},[_e,Ht,Pn]),aa=parseFloat(ye[0]?.amount||"")||0,Vo=ye.length>0&&ye[0]?.asset&&ye[0]?.amount&&aa>0&&ue&&!pe&&!_t&&!Ct&&!rn&&!$t&&tr&&!q;he(()=>{if(!v||!A||!T||zt.current||!ue)return;const re=a[0];if(!re)return;const Ue=Jp(re,[]).find(Xe=>G(Xe.address,A));let Nt;if(Ue)Nt=Ue;else if(I!==void 0&&y)Nt={address:A,symbol:y,name:y,decimals:I,chainId:re,balance:BigInt(0),balanceFormatted:0,balanceUsd:0,isNative:Te(A)};else{console.warn("[DepositModal] escrowOnly: no matching asset and missing escrowTokenDecimals/escrowTokenSymbol for",A);return}zt.current=!0,Oe([{asset:Nt,amount:T}])},[v,A,T,I,y,ue,a]),he(()=>{!v||!Vo||en.current||pe||(en.current=!0,un())},[v,Vo,pe]);const Co=Re||rn||$t,Nr=()=>{if(pe)return"Executing Deposit...";if(!ue)return"Wallet Not Connected";if(D==="7702"){if(!ge)return"Loading...";if(!ve)return"Authentication Required"}return ye[0]?.asset?ye[0]?.amount?rn?"AMOUNT TOO SMALL":$t?"INSUFFICIENT BALANCE":nn&&!tr?mn?"GAS UNAVAILABLE":"ESTIMATING GAS":"DEPOSIT":"ENTER AMOUNT":"SELECT TOKEN"};return e?m(Io,{isOpen:e,onClose:t,closeOnBackdropClick:n,title:i||`Deposit to your ${j} account`,subtitle:R("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[m("img",{src:mc,alt:"","aria-hidden":"true",style:{width:"13px",height:"13px",flexShrink:0,...Y?{filter:"invert(0.6)"}:{}}}),m("p",{style:{fontSize:"12px",color:X.textSecondary,margin:"0",lineHeight:"1.4",fontFamily:nt.ui},children:`Deposit collateral to your ${j} Account from any supported network.`})]}),dark:Y,overlayContent:!_t&&(tn||wt||ie!=="idle"&&g)?m("div",{}):void 0,styles:s,theme:te,children:R("div",{style:{padding:"24px 24px 5px 24px"},children:[!_t&&m(jg,{selectedDepositAssets:ye,depositAssets:ke,secondAssetOptions:Qe,loadingAssets:Ce,allowSecondAsset:p,theme:te,styles:s,dark:Y,dk:X,onSelect:Oo,onAmountChange:Ln,onAdd:qn,onRemove:bn,onViewAllAssets:M}),!_t&&nn&&_e&&m(Cc,{fontFamily:s?.fontFamily||te.typography.fontFamily,textPrimary:X.textPrimary,textSecondary:X.textSecondary,cardBg:Y?X.inputBg:"#ffffff",cardBorder:X.cardBorder,resolvedDark:Y,darkCardBorder:X.cardBorder,primaryColor:K,feePreview:gr,isLoading:En||nn&&!Pn,errorText:mn}),m(Zg,{intentStatus:wt,postDepositSuccess:Ve,postDepositAmount:Vt,postDepositStatus:ie,depositActionLabel:h,sourceChainName:ye[0]?.asset?.chainId?io(ye[0].asset.chainId):"Destination Chain",directDepositStatus:Wt,directDepositTxHash:ht,directDepositChainId:gt,styles:s}),m(Yg,{isOpen:tn||!!wt||Wt==="success"||ie!=="idle"&&!!g,onClose:()=>{ln(!1),wt&&Lt();const re=ie==="success"&&!wt,Ue=wt?.overallStatus==="success"&&(g?ie==="success"||ie==="error":!0);(re||Ue||Wt==="success"&&(!g||ie==="success"||ie==="error")||Ct)&&t()},onConfirm:xn,data:Qt,isExecuting:pe,retryBlocked:Ct,error:Re,theme:te,styles:s,intentStatus:wt,directDepositStatus:Wt,postDepositStatus:ie,hasPostDepositInstruction:!!g}),!_t&&Ze&&R(Ju,{dk:X,dark:Y,borderRadius:te.borderRadius.md,children:["\u26A1 ",Ze]}),!_t&&to&&m(Ju,{dk:X,dark:Y,borderRadius:te.borderRadius.md,children:"Low native balance in the external wallet. The deposit to spicenet account might fail."}),!_t&&R("div",{style:{display:"flex",flexDirection:"column",gap:0,marginBottom:0,margin:0,padding:0},children:[Co?m("div",{style:{marginBottom:"10px",fontSize:"12px",lineHeight:"1.45",color:X.errorText,fontFamily:s?.fontFamily||te.typography.fontFamily},children:Co}):null,m(Yt,{variant:"outline",fullWidth:!0,onClick:me,disabled:!Vo||!ue||pe,theme:te,dark:Y,styles:s,children:Nr()})]})]})}):null}),Jg=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,deposits:o,onComplete:r,onCancel:a,onSkip:i,onChangeWallet:s,isProcessing:c,isVerifying:l=!1,onRefresh:u,error:d,styles:p})=>{const{dark:w,dk:f,theme:g}=dn(p);if(!e)return null;if(o.length===0)return m(Io,{isOpen:e,onClose:t,title:"Your wallet",styles:p,closeOnBackdropClick:n,children:m("p",{role:"status",style:{padding:"18px 24px",color:f.textSecondary},children:c?"Returning funds\u2026":"Checking your wallet\u2026"})});const h=o[0],b=h.timestamp===0,x=h.verifiedBalance<=0n,C=c||l||x,v=p?.fontFamily||nt.ui,A=nt.mono,T=io(h.chainId),I=parseFloat(h.amount).toPrecision(6).replace(/\.?0+$/,""),y=Me(h.verifiedBalance,h.tokenDecimals);return m(Io,{isOpen:e,onClose:t,title:b?"Funds in your wallet":"Incomplete Deposit",styles:p,closeOnBackdropClick:n,children:R("div",{style:{padding:"18px 24px 24px",fontFamily:v},children:[m("p",{style:{fontSize:"14px",color:f.textSecondary,lineHeight:"1.6",margin:"0 0 18px 0"},children:b?"These funds remain in your wallet. Network fees apply when depositing.":"Your funds reached your wallet, but the deposit didn't finish."}),R("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) auto",gap:"14px 18px",marginBottom:"24px",padding:"16px 18px",backgroundColor:w?f.cardBg:"#f8fafc",border:`1px solid ${f.cardBorder}`,borderRadius:w?"14px":"10px",boxShadow:w?"inset 0 1px 0 rgba(255,255,255,0.03)":"0 1px 2px rgba(16,24,40,0.04)"},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[m("span",{style:{fontSize:"12px",fontWeight:600,color:f.textSecondary,fontFamily:A,letterSpacing:"0.8px"},children:"NETWORK"}),m("span",{style:{fontSize:"18px",fontWeight:600,color:f.textPrimary,fontFamily:v,lineHeight:1.2},children:T})]}),R("div",{style:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-end",textAlign:"right"},children:[m("span",{style:{fontSize:"12px",fontWeight:600,color:f.textSecondary,fontFamily:A,letterSpacing:"0.8px"},children:b?"AVAILABLE BALANCE":"DEPOSITED AMOUNT"}),R("span",{style:{fontSize:"24px",fontWeight:700,color:f.successText,fontFamily:A,lineHeight:1.1},children:[I," ",h.tokenSymbol]}),m("span",{style:{fontSize:"12px",color:f.textSecondary,fontWeight:500,fontFamily:v},children:b?"In your wallet":"Sent to embedded wallet"})]})]}),!h.hasFullBalance&&h.verifiedBalance>0n&&R("div",{style:{marginBottom:"16px",padding:"8px 12px",backgroundColor:f.warningBg,border:`1px solid ${w?f.warningBorder:"#fcd34d"}`,borderRadius:"8px",fontSize:"13px",color:f.warningText,lineHeight:"1.4"},children:["Partial balance \u2014 only ",parseFloat(y).toFixed(4)," ",h.tokenSymbol," available."]}),(l||x)&&R("div",{style:{marginBottom:"16px",color:f.textSecondary},children:[m("p",{role:"status",children:l?"Checking your wallet\u2026":"Balance unavailable. Try again."}),x&&u&&m(Yt,{variant:"ghost",fullWidth:!0,disabled:c||l,onClick:u,theme:g,dark:w,children:"TRY AGAIN"})]}),d&&m("div",{style:{marginBottom:"16px",padding:"10px 12px",backgroundColor:f.errorBg,border:`1px solid ${w?f.errorBorder:"#fca5a5"}`,borderRadius:"8px",fontSize:"13px",color:w?f.errorText:"#991b1b",lineHeight:"1.4"},children:d}),R("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[m(Yt,{variant:"outline",fullWidth:!0,disabled:C,onClick:()=>r(h),theme:g,dark:w,styles:p,children:"CONFIRM DEPOSIT"}),R("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[m(Yt,{variant:"ghost",fullWidth:!0,disabled:C,onClick:()=>a(h),theme:g,dark:w,style:{height:"48px",fontSize:"13px",letterSpacing:"0.4px",color:w?f.textPrimary:"#374151",border:`1px solid ${w?f.cardBorder:"#d1d5db"}`,borderRadius:"12px",backgroundColor:w?"rgba(255,255,255,0.02)":"#ffffff"},children:c?"RETURNING...":"RETURN FUNDS"}),R("div",{style:{display:"grid",gridTemplateColumns:s?"1fr 1fr":"1fr",gap:"10px"},children:[m(Yt,{variant:"ghost",fullWidth:!0,disabled:c,onClick:i,theme:g,dark:w,style:{height:"44px",fontSize:"12px",letterSpacing:"0.4px",color:f.textSecondary,border:`1px solid ${w?f.cardBorder:"#d1d5db"}`,borderRadius:"12px",backgroundColor:"transparent"},children:"START OVER"}),s&&m(Yt,{variant:"ghost",fullWidth:!0,disabled:c,onClick:s,theme:g,dark:w,style:{height:"44px",fontSize:"12px",letterSpacing:"0.4px",color:f.textSecondary,border:`1px solid ${w?f.cardBorder:"#d1d5db"}`,borderRadius:"12px",backgroundColor:"transparent"},children:"CHANGE WALLET"})]})]})]}),o.length>1&&m("p",{style:{fontSize:"12px",color:f.textSecondary,textAlign:"center",marginTop:"14px",marginBottom:0,lineHeight:"1.5"},children:o.some(k=>k.timestamp===0)?`${o.length} balances available. Review one at a time.`:`${o.length} incomplete deposits found. Review one at a time.`})]})})},$g=[{source:"wallet",title:"From Wallet",description:"Deposit crypto you already hold in a connected wallet"},{source:"card",title:"With Card",description:"Buy and deposit using a debit or credit card"},{source:"exchange",title:"From Exchange",description:"Transfer from Coinbase, Binance, or any exchange"}],_g=({isOpen:e,onClose:t,closeOnBackdropClick:n,onSelect:o,styles:r})=>{const{dark:a,dk:i}=dn(r),[s,c]=H(null);return m(Io,{isOpen:e,onClose:t,title:"Deposit",subtitle:"Choose how you want to add funds",styles:r,dark:a,closeOnBackdropClick:n,children:m("div",{style:{padding:"0 24px 25px",display:"flex",flexDirection:"column",gap:"12px",marginTop:"20px"},children:$g.map(({source:l,title:u,description:d})=>R("button",{onClick:()=>o(l),onMouseEnter:()=>c(l),onMouseLeave:()=>c(null),style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"4px",padding:"14px 16px",borderRadius:"8px",border:`1px solid ${a?i.cardBorder:"#e5e7eb"}`,backgroundColor:s===l?a?i.hoverBg:"#f9fafb":a?i.cardBg:"white",cursor:"pointer",textAlign:"left",transition:ho.color},children:[m("span",{style:{fontSize:"15px",fontWeight:600,fontFamily:nt.ui,color:a?i.textPrimary:"#111827"},children:u}),m("span",{style:{fontSize:"13px",fontFamily:nt.ui,color:a?i.textSecondary:"#6b7280"},children:d})]},l))})})},e0=({isOpen:e,onClose:t,onBack:n,closeOnBackdropClick:o,source:r,destinationChainId:a,onShowWidget:i,onHideWidget:s,verifying:c,verifyError:l,onRetryVerify:u,funded:d,styles:p})=>{const{dark:w,dk:f,primaryColor:g,theme:h}=dn(p),b=io(a),x=J(null),C=J(i);C.current=i;const v=J(s);v.current=s;const A=c||!!l||!!d;return he(()=>{if(!e)return;const T=x.current;if(T){if(A){v.current();return}return C.current(T,r),()=>v.current()}},[e,r,A]),m(Io,{isOpen:e,onClose:t,title:r==="card"?"Deposit with Card":"Deposit from Exchange",styles:p,dark:w,closeOnBackdropClick:o,children:R("div",{style:{padding:"0 24px 25px",display:"flex",flexDirection:"column",gap:"12px",marginTop:"12px"},children:[m("button",{onClick:n,disabled:c,style:{alignSelf:"flex-start",padding:0,border:"none",background:"none",fontSize:"13px",fontFamily:nt.ui,color:w?f.textSecondary:"#6b7280",cursor:c?"default":"pointer",opacity:c?.5:1},children:"\u2190 Back"}),R("div",{style:{position:"relative",width:"100%"},children:[m("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:m(Ko,{size:28,color:g})}),m("div",{ref:x,style:{position:"relative",width:"100%",height:"560px"}}),A&&m("div",{style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"16px",padding:"24px",borderRadius:"9px",backgroundColor:w?"rgba(0, 0, 0, 0.82)":"rgba(255, 255, 255, 0.94)"},children:c?R(vn,{children:[m(Ko,{size:28,color:g}),R("p",{style:{margin:0,fontSize:"14px",fontFamily:nt.ui,color:w?f.textPrimary:"#111827",textAlign:"center"},children:["Confirming your deposit arrived on ",b,"\u2026"]})]}):d?R(vn,{children:[R("p",{style:{margin:0,fontSize:"14px",fontFamily:nt.ui,color:w?f.textPrimary:"#111827",textAlign:"center"},children:[d.amount," ",d.symbol," is in your wallet on"," ",b,"."]}),m(Yt,{variant:"outline",onClick:t,theme:h,dark:w,styles:p,children:"DONE"})]}):R(vn,{children:[m("p",{style:{margin:0,fontSize:"14px",fontFamily:nt.ui,color:w?f.textPrimary:"#111827",textAlign:"center"},children:l}),m(Yt,{variant:"outline",onClick:u,theme:h,dark:w,styles:p,children:"RETRY"}),m("button",{onClick:t,style:{padding:0,border:"none",background:"none",fontSize:"13px",fontFamily:nt.ui,color:w?f.textSecondary:"#6b7280",cursor:"pointer",textDecoration:"underline"},children:"Close \u2014 we'll detect your funds later"})]})})]})]})})},t0="692fb8af264069ca12a9",ra=42161,n0=[8453,ra];function o0(e){const{targetKind:t,appChainId:n}=e;return t!=="external"||n===void 0||!n0.includes(n)?ra:cl("USDC",n)?n:ra}function Zs(e=ra){return cl("USDC",e)}function r0(e){const t=e?.integratorId??t0;return{integratorId:t,enabled:e?.enabled===!0&&t!=="",embedFactory:e?.embedFactory}}const a0=e=>import("@swapper-finance/deposit-sdk").then(t=>new t.SwapperEmbed(e));function s0(e,t,n){return{themeMode:t?"dark":"light",componentStyles:{width:"100%",primaryColor:n,accentColor:n,borderRadius:"9px",...t?{backgroundColor:e.shell,surfaceColor:e.cardBg,surfaceAltColor:e.inputBg,textColor:e.textPrimary,border:`1px solid ${e.cardBorder}`}:{}}}}function ap(e){return e==="card"?["depositWithCash"]:e==="exchange"?["transferCrypto"]:["depositWithCash","transferCrypto"]}function i0(e){const t=e.destinationChainId??ra,n=Zs(t);if(!n)throw new Error("USDC is not configured for the Swapper destination chain");return{iframeUrl:"https://swapper-deposit-sdk.web.app/",integratorId:e.integratorId,dstChainId:String(t),dstTokenAddr:n.address,depositWalletAddress:e.depositWalletAddress,supportedDepositOptions:ap(e.source),styles:e.styles,actionLabel:"deposit",flexibleHeight:!0,iframeAttributes:{borderRadius:"9px"}}}async function sp(e,t=ra){const n=Zs(t);if(!n)throw new Error("USDC is not configured for the Swapper destination chain");return Rt(t).readContract({address:n.address,abi:ut,functionName:"balanceOf",args:[e]})}async function c0(e,t,n){const o=n?.timeoutMs??12e4,r=n?.intervalMs??3e3,a=Date.now()+o;for(;Date.now()<a;){if(n?.signal?.aborted)return null;try{const i=await sp(e,n?.chainId);if(i>t)return i}catch{}await new Promise(i=>setTimeout(i,r))}return null}const l0=.01,d0=5*60*1e3;function u0(e){const t=Number(Me(e.verifiedBalance,e.tokenDecimals));return Number.isFinite(t)?t:0}async function p0(e){const t=ip(e);let n;try{n=await ep(t.map(o=>o.tokenSymbol))}catch{return t}return t.filter(o=>{const r=u0(o);if(r<=0)return!0;const a=n[o.tokenSymbol.toUpperCase()]??0;return!Number.isFinite(a)||a<=0?!0:r*a>=l0})}function ip(e){const t=new Map;for(const n of e){const o=`${n.chainId}:${n.tokenAddress.toLowerCase()}`;if(!t.get(o)){const r=n.timestamp===0&&n.verifiedBalance>0n;t.set(o,{...n,amount:r?Me(n.verifiedBalance,n.tokenDecimals):n.amount,rawAmount:r?n.verifiedBalance.toString():n.rawAmount,hasFullBalance:r?!0:n.hasFullBalance})}}return Array.from(t.values())}function cp(e,t){const[n,o]=H([]),[r,a]=H(!1),i=J(t);i.current=t;const s=!!t?.enabled,c=J(0),l=J([]),u=t?.chainIds?.join(","),d=t?.discoverWalletBalances??!0,p=J(0),w=ae(async({forceDiscovery:f=!1}={})=>{if(!e||i.current?.enabled===!1){o([]),a(!1);return}const g=++p.current,h=()=>g!==p.current;a(!0);try{const b=[],x=op(e),C=new Set(x.map(y=>`${y.chainId}:${y.tokenAddress.toLowerCase()}`)),v=[...x,...l.current.filter(y=>y.timestamp===0&&!C.has(`${y.chainId}:${y.tokenAddress.toLowerCase()}`))];for(const y of v){if(h())return;if(hr({address:y.tokenAddress,chainId:y.chainId,isNative:y.isNative}))try{const k=Rt(y.chainId);let E;if(y.isNative||Te(y.tokenAddress)?E=await ui(k,{address:e}):E=await dr(k,{address:wn(y.tokenAddress),abi:ut,functionName:"balanceOf",args:[e]}),h())return;if(E>0n)b.push({...y,verifiedBalance:E,hasFullBalance:E>=BigInt(y.rawAmount)});else{const F=Date.now()-y.timestamp;y.timestamp!==0&&F>15*60*1e3&&Gs(e,y.chainId,y.tokenAddress)}}catch(k){if(h())return;console.warn(`[usePendingDeposit] Failed to verify balance for ${y.tokenSymbol} on chain ${y.chainId}:`,k),b.push({...y,verifiedBalance:0n,hasFullBalance:!1})}}if(h())return;const A=i.current,T=Date.now(),I=(A?.discoverWalletBalances??!0)&&(f||T-c.current>=d0);if(A?.network&&I){c.current=T;const y=A.chainIds??us(A.network),k=new Set(b.map(F=>`${F.chainId}:${F.tokenAddress.toLowerCase()}`)),E=[];for(const F of y){const U=kt(F);if(U?.supportedTokens)for(const O of U.supportedTokens){if(!hr({address:O.address,chainId:F,isNative:!1}))continue;const M=`${F}:${O.address.toLowerCase()}`;k.has(M)||E.push((async()=>{try{const B=Rt(F),D=await dr(B,{address:wn(O.address),abi:ut,functionName:"balanceOf",args:[e]});return D>0n?{chainId:F,tokenAddress:O.address,tokenSymbol:O.symbol,tokenDecimals:O.decimals,amount:Me(D,O.decimals),rawAmount:D.toString(),embeddedWalletAddress:e,externalWalletAddress:"",timestamp:0,isNative:!1,verifiedBalance:D,hasFullBalance:!0}:null}catch{return null}})())}}if(E.length>0){const F=await Promise.allSettled(E);if(h())return;for(const U of F)U.status==="fulfilled"&&U.value&&b.push(U.value)}}if(!h()){const y=await p0(b);if(h())return;l.current=ip(b),o(y)}}catch(b){if(console.error("[usePendingDeposit] Verification error:",b),!h()){const x=l.current.map(C=>({...C,verifiedBalance:0n,hasFullBalance:!1}));l.current=x,o(x)}}finally{h()||a(!1)}},[e]);return he(()=>{if(l.current=[],c.current=0,o([]),!s){p.current++,a(!1);return}w({forceDiscovery:!0});const f=i.current?.pollIntervalMs??3e4;if(f<=0||!e)return()=>{p.current++};const g=setInterval(()=>{w({forceDiscovery:!1})},f),h=()=>w({forceDiscovery:!0});return window.addEventListener(js,h),()=>{p.current++,window.removeEventListener(js,h),clearInterval(g)}},[w,e,s,t?.network,u,d]),{pendingDeposits:n,loading:r,refresh:()=>w({forceDiscovery:!0})}}function f0({enabled:e,integratorId:t,depositWalletAddress:n,destinationChainId:o,brand:r,embedFactory:a,onTransactionSuccess:i,onCloseRequest:s}){const c=J(null),l=J(null),u=J(i);u.current=i;const d=J(s);d.current=s;const p=J(r);p.current=r;const w=J(a);w.current=a;const f=ae((b,x,C)=>{if(!x.isConnected)return;const v=b.getIframe();v.updateConfig({supportedDepositOptions:ap(C)}),v.sendConfig(),b.showIn(x)},[]);he(()=>{if(!e||!n)return;let b=!1;return Promise.resolve().then(()=>{const{dk:x,dark:C,primaryColor:v}=p.current;return(w.current??a0)(i0({integratorId:t,depositWalletAddress:n,destinationChainId:o,source:null,styles:s0(x,C,v)}))}).then(x=>{if(b){x.destroy();return}const C=x.getIframe();C.on("transaction_success",A=>u.current(A)),C.on("close_request",()=>d.current()),c.current=x;const v=l.current;v&&f(x,v.placeholder,v.source)}).catch(x=>{console.error("[useSwapperEmbed] Failed to preload Swapper widget:",x)}),()=>{b=!0,l.current=null,c.current?.destroy(),c.current=null}},[e,t,n,o,f]);const g=ae((b,x)=>{l.current={placeholder:b,source:x};const C=c.current;C&&f(C,b,x)},[f]),h=ae(()=>{l.current=null,c.current?.hide()},[]);return{showWidget:g,hideWidget:h}}function m0(e,t,n,o,r){return{address:t,symbol:n||"UNKNOWN",name:n||"Unknown Token",decimals:o||18,chainId:e,balance:0n,balanceFormatted:r?parseFloat(r):0,balanceUsd:0,isNative:Te(t)}}const h0=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,styles:o,depositBatches:r,onDepositAmountChange:a,destinationChainId:i,destinationTokenAddress:s,onDepositExecute:c,depositActionLabel:l,sponsorGas:u=!1,escrowRecovery:d,skipTokenSelection:p=!1,directSubmit:w=!1,onSubmit:f,onDepositSuccess:g,onDepositError:h,skipRecovery:b=!0})=>{const x=fn(cn);if(!x)return m("div",{children:"Error: SpiceDeposit must be used within SpiceFlowProvider"});const C=(x.mode||"7702")!="7702",v=C,A=x.nativeChainId,T=x.network||"testnet",{dark:I,dk:y,primaryColor:k}=dn(o),E=!!d,F=Mo(),{isReady:U,isAuthenticated:O,actions:M}=F,B=x?.embeddedWalletAddress,D=x.externalWalletAddress,W=!!D,S=r0(x.swapper),q=v?{address:D,kind:"external"}:{address:B,kind:"embedded"},z=o0({targetKind:q.kind,appChainId:i||A}),te=S.enabled&&!E&&T==="mainnet"&&!!Zs(z),Y=()=>p?"deposit":"select-token",j=()=>te?"select-source":v?W?Y():"connect-wallet":"provider-login",[K,X]=H(j()),[xe,ge]=H(null),[ve,Se]=H(!1),[ne,_]=H(null),[ue,P]=H(!1),[Le,Be]=H(null),[L,V]=H(null),[oe,le]=H(null),Z=J(null),se=J(null),{pendingDeposits:We,loading:He,refresh:ye}=cp(B,{enabled:e&&!b,network:T,chainIds:x.supportedChainIds}),Oe=Ae(()=>We.filter(ee=>ee.embeddedWalletAddress.toLowerCase()===B?.toLowerCase()),[We,B]),[Ne,Ce]=H(null),[Ge,ke]=H(!1),[Qe,pe]=H(null),[et,Ct]=H(!1),[lt,st]=H("idle");he(()=>{if(e&&K==="recovery"&&!Ge&&!He&&Oe.length===0){X(j());return}e&&!b&&!E&&!Ne&&!et&&lt==="idle"&&O&&B&&W&&D&&!He&&Oe.length>0&&K!=="recovery"&&K!=="deposit"&&K!=="swapper"&&X("recovery")},[e,b,E,O,B,W,D,He,Oe,K,Ne,et,lt,Ge,te,v,p]);const $e=ae(ee=>{const At={address:ee.tokenAddress,symbol:ee.tokenSymbol,name:ee.tokenSymbol,decimals:ee.tokenDecimals,chainId:ee.chainId,balance:ee.verifiedBalance,balanceFormatted:parseFloat(ee.amount),balanceUsd:0,isNative:ee.isNative};ge(At),Ce(ee),X("deposit")},[]),Re=ae(ee=>{if(_(ee),v){X(W?ee==="wallet"?Y():"swapper":"connect-wallet");return}const At=O&&!!B;X(ee==="wallet"?At?W?Y():"connect-wallet":"provider-login":At?"swapper":"provider-login")},[v,O,B,W,p]),Fe=ae(()=>{se.current?.abort(),P(!1),Be(null),V(null),_(null),Z.current=null,le(null),X("select-source")},[]);he(()=>{K==="swapper"&&(oe||!q.address||le({address:q.address,kind:q.kind}))},[K,oe,q.address,q.kind]);const bt=oe??q,it=bt.address,ie=bt.kind,xt=ae(async ee=>{if(!e||K!=="swapper"||!it)return;se.current?.abort();const At=new AbortController;se.current=At,Be(null),P(!0);const Pe=Zs(z);if(!Pe){P(!1);return}const Ze=Lt=>{P(!1);const St=Me(Lt,Pe.decimals);if(ie==="external"){V({amount:St,symbol:Pe.symbol});const _t={type:"wallet-funding",status:"success",amount:St,asset:Pe.address,sourceChain:String(z)};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:_t})),g?.(_t);return}$e({chainId:z,tokenAddress:Pe.address,tokenSymbol:Pe.symbol,tokenDecimals:Pe.decimals,amount:St,rawAmount:Lt.toString(),embeddedWalletAddress:it,externalWalletAddress:"",timestamp:0,isNative:!1,verifiedBalance:Lt,hasFullBalance:!0})},ct=Z.current,wt=await ct;if(At.signal.aborted||Z.current!==ct)return;if(wt===null){P(!1),Be("Unable to confirm your starting balance. Go back and reopen the deposit to try again.");return}const Je=await c0(it,wt,{signal:At.signal,chainId:z});if(!At.signal.aborted){if(Je===null){P(!1);const Lt=kt(z)?.viemChain?.name??`chain ${z}`;Be(`We haven't seen your funds arrive on ${Lt} yet \u2014 they may still be in transit.`);return}Ze(Je)}},[e,K,it,ie,z,$e,g]);he(()=>{if(!e||K!=="swapper"||!it)return;const ee=sp(it,z).catch(()=>null);return Z.current=ee,()=>{Z.current===ee&&(Z.current=null),se.current?.abort()}},[e,K,it,z]);const{showWidget:vt,hideWidget:Ve}=f0({enabled:e&&te,integratorId:S.integratorId,depositWalletAddress:it,destinationChainId:z,brand:{dk:y,dark:I,primaryColor:k},embedFactory:S.embedFactory,onTransactionSuccess:xt,onCloseRequest:()=>{ue||Fe()}}),Dt=ae(()=>{Ct(!0),X(O&&B&&W&&D?p?"deposit":"select-token":O&&B?"connect-wallet":"provider-login")},[O,B,W,D,p]),Vt=ae(()=>{pe(null),st("awaiting-disconnect"),X("connect-wallet")},[]),yn=ae(async ee=>{ke(!0),pe(null);try{if(!B)throw new Error("Embedded wallet not available");const At=await M.getEthereumProvider(),Pe=kt(ee.chainId);await _c(At,ee.chainId);const Ze=Rt(ee.chainId),ct=await ui(Ze,{address:B}),wt=Pe?.viemChain?.name||`chain ${ee.chainId}`;if(ct===0n)throw new Error(`Your embedded wallet has no ETH on ${wt} to pay for gas. We recommend completing the deposit instead \u2014 it doesn't require gas.`);const Je=li({account:B,transport:di(At),chain:Pe?.viemChain}),Lt=ee.externalWalletAddress&&Hn(ee.externalWalletAddress)?ee.externalWalletAddress:D;if(!Lt||!Hn(Lt))throw new Error("Connect the external wallet that should receive these funds, then try again.");const St={recipient:Lt,tokenAddr:ee.tokenAddress,isNative:ee.isNative||Te(ee.tokenAddress),amount:ee.verifiedBalance,viemChain:Pe?.viemChain},_t=await lc(Je,St),{receipt:It}=await Ss({client:Ze,hash:_t,call:Ls(St.recipient,St.tokenAddr,St.isNative,St.amount),confirmations:1});if(It.status!=="success")throw new Error("The return transaction failed. Please try again.");Gs(ee.embeddedWalletAddress,ee.chainId,ee.tokenAddress),ye(),We.length<=1&&X(j())}catch(At){const Pe=At?.message||"Couldn't return your funds. Please try again.",Ze=/insufficient funds for gas/i.test(Pe);pe(Ze?"Not enough ETH in your embedded wallet to cover gas fees. Complete the deposit instead \u2014 it doesn't require gas.":Pe)}finally{ke(!1)}},[M,B,D,We,ye]);he(()=>{e||(Ce(null),pe(null),ke(!1),Ct(!1),st("idle"),se.current?.abort(),_(null),P(!1),Be(null),V(null),Z.current=null,le(null))},[e]),he(()=>{if(!(b||lt==="idle")){if(lt==="awaiting-disconnect"){(!W||!D)&&st("awaiting-reconnect");return}e&&!He&&We.length>0&&O&&B&&(st("idle"),X("recovery"))}},[b,lt,W,D,e,He,We,O,B]),he(()=>{!E||!e||(O&&B?(Se(!0),!xe&&d?.chainId&&d?.tokenAddress&&ge(m0(d.chainId,d.tokenAddress,d.tokenSymbol,d.tokenDecimals,d.amount)),X("deposit")):X("provider-login"))},[E,e,K,O,B]);const{assets:Wt,loading:Dn}=Ea({address:D,supportedChains:x.supportedChainIds,fetchBalances:Kr,enabled:e&&!!D,refreshInterval:e?5e3:0}),ht=ae(()=>{Se(!0),X(E?"deposit":ne==="card"||ne==="exchange"?"swapper":W?p?"deposit":"select-token":"connect-wallet")},[E,ne,W,p]),Ye=ae(async()=>{if((!W||!D)&&(await xo(500),!W||!D)){alert("Please connect your wallet first");return}X(p?"deposit":"select-token")},[W,D,p]),gt=ae(ee=>{ge(ee),X("deposit")},[]),mt=ae(()=>{if(ge(null),a?.(""),!D){X("connect-wallet");return}X("select-token")},[D,a]),Ft=ae(()=>{t()},[t]);if(he(()=>{if(!e){const ee=setTimeout(()=>{E||(X(j()),ge(null)),Se(!1)},300);return()=>clearTimeout(ee)}},[e,E,d?.chainId]),he(()=>{e&&K==="deposit"&&!xe&&!E&&!Ne&&!p&&X("select-token")},[e,K,xe,E,Ne,p]),he(()=>{if(e&&K==="connect-wallet"&&W&&D&&lt==="idle"){if(te&&!ne){X("select-source");return}if(te&&ne&&ne!=="wallet"){X("swapper");return}X(p?"deposit":"select-token")}},[e,K,W,D,lt,p,te,ne]),he(()=>{if(!v&&e&&K==="provider-login"&&U&&O&&B&&!ve){const ee=setTimeout(()=>{Se(!0),X(ne==="card"||ne==="exchange"?"swapper":W?p?"deposit":"select-token":"connect-wallet")},100);return()=>clearTimeout(ee)}},[v,e,K,U,O,B,ne,W,p,ve]),!e)return null;if(K==="recovery")return m(Jg,{isOpen:e,onClose:Ft,closeOnBackdropClick:n,deposits:Oe,onComplete:$e,onCancel:yn,onSkip:Dt,onChangeWallet:Vt,isProcessing:Ge,isVerifying:He,onRefresh:ye,error:Qe,styles:o});if(K==="select-source")return te?m(_g,{isOpen:e,onClose:Ft,closeOnBackdropClick:n,onSelect:Re,styles:o}):(X("provider-login"),null);if(K==="swapper")return ne!=="card"&&ne!=="exchange"?(X(j()),null):it?m(e0,{isOpen:e,onClose:Ft,onBack:Fe,closeOnBackdropClick:n,source:ne,destinationChainId:z,onShowWidget:vt,onHideWidget:Ve,verifying:ue,verifyError:Le,onRetryVerify:xt,funded:L,styles:o}):m("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",zIndex:50},children:m("div",{style:{backgroundColor:I?y.cardBg:"white",borderRadius:"9px",padding:"32px 24px",maxWidth:"400px",width:"100%",textAlign:"center",fontFamily:'"Helvetica Neue", sans-serif',fontSize:"14px",color:I?y.textPrimary:"#111827"},children:"Preparing your account..."})});if(K==="provider-login"&&!v)return m("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",zIndex:50},children:m("div",{style:{backgroundColor:I?y.cardBg:"white",borderRadius:"9px",padding:"32px 24px",maxWidth:"400px",width:"100%"},children:m(Vi,{onAuthSuccess:ht,autoTrigger:!0})})});if(K==="connect-wallet")return m(Bg,{isOpen:e,onClose:Ft,closeOnBackdropClick:n,onContinue:Ye,requiredChainId:C?A:void 0,styles:o});if(K==="select-token")return D?m(Fg,{isOpen:e,onClose:Ft,closeOnBackdropClick:n,onTokenSelect:gt,walletAddress:D,supportedChainIds:x.supportedChainIds,network:T,prefetchedAssets:Dn?null:Wt??null,styles:o,dark:I}):(X("connect-wallet"),null);if(K==="deposit"){if(!xe&&!p)return null;const ee=!!Ne;return m(Xg,{isOpen:e,onClose:Ft,closeOnBackdropClick:n,supportedChains:xe?[xe.chainId]:x.supportedChainIds??[],styles:o,externalWalletAddress:D,depositBatches:ee?void 0:r,onDepositAmountChange:a,destinationChainId:i,destinationTokenAddress:s,onDepositExecute:c,depositActionLabel:l,nativeChainId:A,sponsorGas:u,preSelectedAsset:xe??void 0,escrowOnly:E||ee,escrowTokenAddress:ee?Ne.tokenAddress:d?.tokenAddress,escrowAmount:ee?Ne.amount:d?.amount,escrowTokenDecimals:ee?Ne.tokenDecimals:d?.tokenDecimals,escrowTokenSymbol:ee?Ne.tokenSymbol:d?.tokenSymbol,onSubmit:f,directSubmit:w,onDepositSuccess:g,onDepositError:h,embeddedWalletAddress:B,onViewAllAssets:p?void 0:mt})}return null},lp=e=>fn(cn)?m(h0,{...e}):m("div",{children:"Error: SpiceDeposit must be used within SpiceFlowProvider"}),g0=({depositProps:e,withdrawProps:t,...n})=>{const[o,r]=H(!1),[a,i]=H(null);return R(vn,{children:[m(Gu,{...n,onDepositClick:()=>r(!0),onWithdrawClick:s=>i({assetId:s})}),m(lp,{styles:n.styles,onDepositSuccess:n.onDepositSuccess,...e,isOpen:o,onClose:()=>r(!1)}),m(hc,{styles:n.styles,...t,isOpen:!!a,onClose:()=>i(null),initialSourceAssetId:a?.assetId})]})},w0=({isOpen:e,onClose:t,onChainSelect:n,supportedChains:o,closeOnSelect:r=!0,styles:a})=>{const{theme:i,dark:s,primaryColor:c,dk:l}=dn(a),[u,d]=H(""),[p,w]=H(null),[f,g]=H(null),[h,b]=H(!1),[x,C]=H(null),{switchChainAsync:v}=mf(),A=Ae(()=>new Set(o||[]),[o]),T=Ae(()=>{if(!o||o.length===0)return[];const E=[];return o.forEach((F,U)=>{if(typeof F!="number")return;const O=kt(F);O&&E.push({id:F.toString(),name:O.displayName,icon:ur[F]||Ca,chainId:F,verified:!0,order:U})}),E},[o]);he(()=>{p&&!A.has(parseInt(p,10))&&w(null)},[p,A]);const I=Ae(()=>T.filter(E=>E.name.toLowerCase().includes(u.toLowerCase())).sort((E,F)=>E.order-F.order),[T,u]),y=async()=>{if(!p)return;const E=parseInt(p,10);b(!0),C(null);try{await v({chainId:E}),n&&n(p),r&&t()}catch(F){console.error("Failed to switch chain:",F),C(Wn(F,"Failed to switch chain."))}finally{b(!1)}},k=!p||h;return R(Io,{isOpen:e,onClose:t,title:"Select Chain",styles:a,theme:i,dark:s,children:[m("div",{style:{padding:"24px 20px"},children:m(bc,{value:u,onChange:d,ariaLabel:"Search chains",placeholder:"Search chain name, symbol or address",size:"md",dark:s,styles:a,endAdornment:m("div",{style:{padding:"5px 5px",borderRadius:"3px",fontSize:"13px",backgroundColor:s?l.cardBg:"#E9E9E9",color:s?l.textSecondary:"#485066",fontWeight:500,flexShrink:0},"aria-hidden":"true",children:"\u2318F"})})}),m("div",{style:{padding:"0 32px 20px",display:"flex",flexDirection:"column",gap:"12px"},children:I.map(E=>{const F=p===E.id,U=f===E.id;return R("button",{onClick:()=>w(E.id),onMouseEnter:()=>g(E.id),onMouseLeave:()=>g(null),style:{width:"100%",display:"flex",alignItems:"center",gap:"16px",padding:"8px",borderRadius:"8px",backgroundColor:F?s?`${c}15`:`${c}12`:"transparent",border:F?s?`1px solid ${c}66`:`1px solid ${c}88`:U?s?`1px solid ${c}44`:`1px solid ${c}66`:"1px solid transparent",cursor:"pointer",transition:ho.interactive},children:[m("div",{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"30px"},children:m("img",{src:E.icon,alt:E.name,loading:"lazy",decoding:"async",style:{width:"100%",height:"100%",borderRadius:"50%"}})}),R("div",{style:{display:"flex",alignItems:"center",gap:"6px",flex:1},children:[m("span",{style:{fontFamily:nt.mono,fontSize:"17px",fontWeight:500,letterSpacing:"0.4px",color:l.textPrimary,textAlign:"left"},children:E.name}),E.verified&&m("img",{src:Yu,alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",width:16,height:16,style:{width:"16px",height:"16px",filter:s?"brightness(0) invert(1)":"none"}})]})]},E.id)})}),x&&m("div",{style:{padding:"0 25px 12px"},children:m(Gn,{variant:"error",size:"compact",palette:l,children:x})}),m("div",{style:{padding:"0 25px 25px"},children:R(Yt,{variant:"outline",onClick:y,disabled:k,fullWidth:!0,theme:i,styles:a,dark:s,children:["SELECT",m(Gm,{size:20})]})})]})};function dp(e){const t=Mu({enabled:e.enabled,chainId:e.lockChainId,address:e.destinationTokenAddress,decimals:e.destinationTokenDecimals,symbol:e.lockTokenSymbol,logoURI:e.lockTokenLogoURI}),n=t.token,o=ae((i,s)=>{if(!t.ready)throw new Error("Lock token metadata is unavailable.");const c={...n,name:n.symbol,isNative:Te(n.address),balance:0n,balanceFormatted:0,balanceUsd:0},l=typeof e.lockBatches=="function"?e.lockBatches({asset:c,amount:Me(i,c.decimals),amountWei:i,feeAdjusted:!0,beneficiary:s.beneficiary??s.userAddress,executorAddress:s.executorAddress}):e.lockBatches;if(l.some(u=>u.chainId!==e.lockChainId||u.domain==="spicenet"||u.tokenTransfers?.some(d=>d.from!=="escrow"||!G(d.token,n.address))))throw new Error("Lock action definitions must contain destination contract calls; the SDK supplies conversion and delivery.");return l.flatMap(u=>u.calls)},[t.ready,n,e.lockBatches,e.lockChainId]),r=Wa({enabled:t.ready,destinationToken:t.ready?n:void 0,selectedAsset:e.selectedAsset,amountDirection:"input-inclusive",feeFunding:e.feeFunding,combineSourceBalances:e.combineSourceBalances,recipient:e.beneficiary,buildActionCalls:o,buildSpicenetBatch:e.buildSpicenetBatch,onSubmit:e.onSubmit,onSuccess:e.onLockSuccess,onError:(i,s)=>e.onLockError?.(i.message,s)}),a=ae(()=>{t.refresh(),r.quote.refreshQuote()},[t.refresh,r.quote.refreshQuote]);return{...r,quote:{...r.quote,refreshQuote:a},destination:n,metadataError:t.error,canExecute:t.ready&&r.canExecute}}function y0(e){const t=new Date;t.setDate(t.getDate()+Math.floor(e*30));const n=["January","February","March","April","May","June","July","August","September","October","November","December"],o=t.getDate(),r=o===1||o===21||o===31?"st":o===2||o===22?"nd":o===3||o===23?"rd":"th";return`${n[t.getMonth()]} ${o}${r} ${t.getFullYear()}`}const b0=({label:e,value:t,fontFamily:n,dark:o=!1,textPrimary:r="#111827",textSecondary:a="#6b7280"})=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[R("svg",{width:"13",height:"13",viewBox:"0 0 14 14",fill:"none",style:{flexShrink:0},children:[m("circle",{cx:"7",cy:"7",r:"6.5",stroke:a,strokeWidth:"1.2"}),m("path",{d:"M7 6v4",stroke:a,strokeWidth:"1.2",strokeLinecap:"round"}),m("circle",{cx:"7",cy:"4.5",r:"0.7",fill:a})]}),m("span",{style:{fontSize:"13px",color:a,fontFamily:n},children:e})]}),m("span",{style:{fontSize:o?"17px":"13px",fontWeight:700,color:r,fontFamily:nt.mono,letterSpacing:"0.3px"},children:t})]}),up=wo(b0),x0=({options:e,selectedIndex:t,onSelect:n,primaryColor:o,dark:r=!1,textPrimary:a="#111827",textSecondary:i="#6b7280",trackColor:s})=>{const c=e.length-1,l=s||(r?"#3a3a3a":"#d1d5db"),u=r?"4px":"50%",d=r?"none":"2px solid white",p=r?"none":`0 0 0 1px ${o}`;return R("div",{style:{width:"100%",userSelect:"none"},children:[R("div",{style:{position:"relative",paddingBottom:"4px"},children:[m("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:"4px",background:l,borderRadius:"2px",transform:"translateY(-50%)",pointerEvents:"none"}}),m("div",{style:{position:"absolute",top:"50%",left:0,width:`${t/c*100}%`,height:"4px",background:o,borderRadius:"2px",transform:"translateY(-50%)",pointerEvents:"none",transition:"width 0.15s ease"}}),m("input",{type:"range","aria-label":"Lock duration","aria-valuetext":e[t]?.label,"data-spiceflow-focus":!0,min:0,max:c,step:1,value:t,onChange:w=>n(Number(w.target.value)),style:{WebkitAppearance:"none",appearance:"none",width:"100%",height:"20px",background:"transparent",cursor:"pointer",outline:"none",border:"none",position:"relative",zIndex:1,margin:0,padding:0}})]}),m("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"6px"},children:e.map((w,f)=>R("div",{onClick:()=>n(f),style:{display:"flex",flexDirection:"column",alignItems:f===0?"flex-start":f===c?"flex-end":"center",cursor:"pointer",flex:1},children:[m("span",{style:{fontSize:"12px",fontWeight:f===t?700:400,color:f===t?a:i,whiteSpace:"nowrap",transition:"color 0.15s, font-weight 0.15s"},children:w.label}),w.highlight&&m("span",{style:{fontSize:"10px",color:i,whiteSpace:"nowrap"},children:"(most common)"})]},f))}),m("style",{children:`
50
+ `})]})},e0=Fo.memo(({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,onDepositSelect:o,depositBatches:r,supportedChains:a,title:i,styles:s,onDepositAssetChange:c,assetInputHook:l,externalWalletAddress:d,onDepositAmountChange:u,allowSecondAsset:p=!1,destinationChainId:w,destinationTokenAddress:f,onDepositExecute:g,depositActionLabel:h,nativeChainId:b,sponsorGas:v=!1,preSelectedAsset:C,escrowOnly:x=!1,escrowDepositAssets:k,escrowTokenAddress:E,escrowAmount:I,escrowTokenDecimals:y,escrowTokenSymbol:A,onSubmit:T,directSubmit:F=!1,onDepositSuccess:L,onDepositError:R,embeddedWalletAddress:N,onViewAllAssets:O})=>{const D=gn(sn),M=D?.mode||"7702",S=D?.allowedTokens,U=!!D?.isWhitelistGateActive,q=!x&&!!D?.isWhitelistConfigured&&D?.isUserWhitelisted!==!0,X=l?.assetAmount||"",{theme:K,dark:Q,appName:Y,primaryColor:oe,dk:he}=dn(s),ve=Po(),{isReady:ae,isAuthenticated:ie}=ve,{externalWallet:ne}=zr(),_=D?.embeddedWalletAddress||N,de=M!="7702",W=de?!!d:ae&&ie&&!!_,Me=_,Oe=d,z=Me??Oe,V=Uo(),{data:te}=wf(),[ue,J]=Fo.useState(te),ce=Fo.useRef(null),He=Fo.useRef(ne);He.current=ne;const Xe=ne?.address;Fo.useEffect(()=>{const ee=He.current;if(!ee||!Oe){ce.current=null,J(te);return}if(ee.address?.toLowerCase()!==Oe?.toLowerCase()){ce.current=null,J(te);return}ee.getEthereumProvider().then(async Ne=>{ce.current=Ne;const at=await Ne.request({method:"eth_chainId"}),Ge=parseInt(at,16),Ke=Ct(Ge),ht=await ee.getWalletClient(Ge);J(Ke?mi({account:Oe,chain:Ke.viemChain,transport:hi(Ne)}):ht)}).catch(()=>{ce.current=null,J(te)})},[Xe,Oe,te]);const Ve=Fo.useRef(null),[se,Ue]=H([]),{assets:be,loading:Ye,refreshAssets:Be}=Fa({address:x?Me:Oe||Me,supportedChains:a,fetchBalances:Kr,enabled:e,refreshInterval:e?5e3:0}),Pe=Ee(()=>be.filter(ee=>ee.balance>0n&&Bo(ee,"deposit-source",{allowedTokens:S,rpcOverrides:D?.rpcOverrides,liquidityVenues:D?.liquidityVenues,isWhitelistGateActive:U},void 0,void 0,{requiresEscrow:de||x&&!Mr(ee,k)}).eligible).sort((ee,Ne)=>Ne.balanceUsd-ee.balanceUsd),[be,S,D?.rpcOverrides,U,de,x,k]),Fe=Ee(()=>{if(!se[0]?.asset)return[];const ee=se[0].asset.chainId;return Pe.filter(Ne=>Ne.chainId===ee)},[Pe,se]),[je,St]=H(!1),[gt,ft]=H(!1),ct=JSON.stringify([e,Me,Oe,D?.apiUrl,D?.network]),Re=Z({key:ct,version:0});Re.current.key!==ct&&(Re.current={key:ct,version:Re.current.version+1}),we(()=>{ft(!1),St(!1)},[ct]);const[Se,kt]=H(null),vt=Z(R);vt.current=R;const ye=re(ee=>{kt(ee),typeof ee=="string"&&ee&&vt.current?.(ee,Hr(ee))},[]),[nt,mt]=H("idle"),qe=re(ee=>{typeof ee=="string"&&ee&&vt.current?.(ee,Hr(ee))},[]),[Nt,Wt]=H(!1),[Rn,Ht]=H(null),[vn,wt]=H("idle"),[_e,bt]=H(null),[xt,qt]=H(null),[Ce,Zt]=H(null),[Je,$e]=H(null),[ge,yt]=H(null),{intentStatus:De,startStatusPolling:Xt,clearStatus:Et,execute:qn}=Yr(),et=De?.overallStatus==="success"||vn==="success",nn=re((ee,Ne)=>{const at=os[Ne];return at?at.supportedTokens?.find(Ge=>G(Ge.address,ee))?.symbol??null:null},[]),Jt=Ee(()=>{const ee=se[0]?.asset;if(!ee||!f||!w)return!1;const Ne=nn(f,w);return qg(ee.symbol)&&!!Ne&&zg(Ne)},[se,f,w,nn]);we(()=>{se.length>0&&X!==se[0]?.amount&&Ue(ee=>{if(ee.length===0)return ee;const Ne=[...ee];return Ne[0]={...Ne[0],amount:X||""},Ne})},[X]),we(()=>{se.length!==0&&Ue(ee=>{let Ne=!1;const at=ee.map(Ge=>{if(!Ge.asset)return Ge;const Ke=Pe.find(ht=>ht.chainId===Ge.asset.chainId&&G(ht.address,Ge.asset.address));return Ke?Ke===Ge.asset||Ke.balance===Ge.asset.balance?Ge:(Ne=!0,{...Ge,asset:Ke,amount:Ge.amount}):Ge});return Ne?at:ee})},[Pe,se.length]),we(()=>{if(!C||se.length>0||Pe.length===0)return;const ee=Pe.find(Ne=>Ne.chainId===C.chainId&&G(Ne.address,C.address));ee&&(Ue([{asset:ee,amount:""}]),c?.(ee))},[C,Pe,se.length]);const Pn=Fo.useRef(null);we(()=>{if(de&&De?.overallStatus==="success"&&g&&nt==="idle"){const ee=Pn.current,Ne=Ve.current;if(ee){const at=Re.current.version,Ge=()=>Re.current.version===at;(async()=>{try{mt("executing"),await g(ee),Ge()&&(mt("success"),Ht(ee),Wt(!0));const Ke=Array.isArray(Ne)?Ne[0]:void 0,ht={type:"deposit",status:"success",amount:ee,asset:Ke?.tokenAddress,sourceChain:Ke?String(Ke.chainId):void 0,txHash:Ke?.txHash};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:ht})),L?.(ht)}catch(Ke){console.error("onDepositExecute failed:",Ke),Ge()&&(mt("error"),qe(Ln(Ke,"Post-deposit instruction failed")))}finally{Pn.current===ee&&Ve.current===Ne&&(Pn.current=null,Ve.current=null)}})()}}},[De?.overallStatus,de,nt]);const Un=re(()=>{gt||ye(null)},[gt]);we(()=>{Et(),Ut(!1),Bt(null),mt("idle"),Wt(!1),Ht(null),wt("idle"),bt(null),qt(null)},[ct]);const zn=re((ee,Ne)=>{Ue(at=>{const Ge=[...at];return Ge[Ne]={asset:ee,amount:Ge[Ne]?.amount||""},Ge}),Ne===0&&c?.(ee),Un()},[c,Un]),Hn=re(async(ee,Ne)=>{if(Ue(at=>{const Ge=[...at];return Ge[Ne]&&(Ge[Ne]={...Ge[Ne],amount:ee}),Ge}),Un(),Ne===0)if(l?.setAssetAmount(ee),Jt&&ee&&parseFloat(ee)>0)try{const at=Ce??await Lg();Ce||Zt(at);const Ge=se[0]?.asset;if(!Ge)return;const Ke=$n(ee,Ge.decimals),ht=f?nn(f,w):null,$t=os[w]?.supportedTokens?.find(Mo=>G(Mo.address,f))?.decimals??6,hr=Hg(Ke,Ge.decimals,$t,at);$e(hr);const gr=Le(hr,$t),So=at.toLocaleString("en-US",{maximumFractionDigits:0});yt(`${ee} ${Ge.symbol} \u2248 $${parseFloat(gr).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})} ${ht??"USD"} (rate: $${So}/BTC)`),u?.(gr)}catch(at){console.error("Failed to fetch BTC/USD price:",at),yt(null),$e(null),u?.(ee)}else yt(null),$e(null),u?.(ee)},[Un,l,u,Jt,Ce,se,f,w,nn]),In=re(()=>{se.length<2&&Ue(ee=>[...ee,{asset:null,amount:""}])},[se.length]),Vt=re(ee=>{Ue(Ne=>Ne.filter((at,Ge)=>Ge!==ee)),Un()},[Un]),_t=Z(!1),un=Z(!1);we(()=>{e||(_t.current=!1,un.current=!1,pn(null),kn(null))},[e]);const[en,Ut]=H(!1),[lt,Bt]=H(null),[Ro,pn]=H(null),[Vn,kn]=H(null),[eo,fn]=H(!1),[to,Cn]=H(null),ut=Ee(()=>{const ee=se[0];if(se.length!==1||!ee?.asset||!ee.amount||parseFloat(ee.amount)<=0)return null;try{return{asset:ee.asset,amount:$n(ee.amount,ee.asset.decimals),token:dt(ee.asset.address),chainId:ee.asset.chainId}}catch{return null}},[se]),wn=!de&&!x&&!!ut&&!Ha(ut.asset,k),Gn=JSON.stringify(se.map(({asset:ee})=>Mr(ee,k))),mo=x&&!!E&&Ks({address:E,chainId:a[0],isNative:Ae(E)}),En=x&&se.some(({asset:ee})=>Ks(ee)&&!Mr(ee,k)),Qo=Z(Gn),ho=Ee(()=>ut?[ut.chainId,ut.token.toLowerCase(),ut.amount.toString(),x?"escrow":"normal",Gn].join("|"):null,[ut,x,Gn]),fe=re(async(ee,Ne)=>Me?Bc({address:Me,depositQuote:ee,signal:Ne}):null,[Me]),le=re(async ee=>ut?fe(ut,ee):null,[ut,fe]),ot=Z(le);ot.current=le,Ui({shouldRun:e&&!de&&!wn&&!En&&!!ho&&!en&&!je&&!De&&!et,deps:[e,de,wn,En,ho,en,je,De,et],delayMs:500,backgroundIntervalMs:3e4,onSkip:()=>{pn(null),Cn(null),fn(!1)},onCleanup:()=>fn(!1),run:async({isBackground:ee,isCurrent:Ne,signal:at})=>{ee||(Cn(null),fn(!0));try{const Ge=await ot.current(at);Ne()&&pn(Ge)}catch(Ge){if(!Ne())return;pn(null),Cn(Ge instanceof Error?Ge.message:"Failed to estimate gas fee")}finally{Ne()&&fn(!1)}}}),we(()=>{en||je||kn(null)},[en,je,ho]);const At=Z(!1),We=()=>{if(se.length===0||!se[0]?.asset)return;const ee=se.filter(ht=>ht.asset&&ht.amount&&parseFloat(ht.amount)>0);if(ee.length===0)return;const Ne=ee[0],at=Ct(Ne.asset.chainId),Ge=ee.map(ht=>{const $t=parseFloat(ht.amount);return`${isNaN($t)?ht.amount:$t.toPrecision(6).replace(/\.?0+$/,"")} ${ht.asset.symbol}`}).join(", "),Ke={network:at?.displayName||`Chain ${Ne.asset.chainId}`,amount:Ge,symbol:"",chainId:Ne.asset.chainId};if(rt&&Dt&&oo){kn(Dt);const ht=ee[0];Ke.creditedAmount=`${Le(Dt.net,ht.asset.decimals)} ${Ha(ht.asset,k)?V({...ht.asset,location:"rollup",_source:"spice",receiptTokenName:Mr(ht.asset,k)?.receiptTokenName??"spiceUSDC"}).symbol:ht.asset.symbol}`,Ke.networkFee=`${Le(Dt.fee,ht.asset.decimals)} ${ht.asset.symbol}`}return Bt(Ke),Ke},on=async()=>{!Nr||!We()||(Qo.current=Gn,F?await Kn():Ut(!0))},Pt=Z(De);Pt.current=De;const mn=Z(nt);mn.current=nt;const An=D?.apiUrl||ze.getBaseUrl(),cn=JSON.stringify([e,Me,_,Oe,ae,ie,M,ze.getBaseUrl(),U,x,w,f,q,Gn,An,se.map(({asset:ee,amount:Ne})=>[ee.chainId,ee.address,Ne])]),hn=Z({key:cn});hn.current.key!==cn&&(hn.current={key:cn});const Fn=Z(!0),no=Z(!1);Wo(()=>(Fn.current=!0,()=>{Fn.current=!1}),[]);const ln=async()=>{if(no.current)return;no.current=!0;const ee=hn.current,Ne=ze.getBaseUrl();try{We();const at=Re.current.version,Ge=()=>Re.current.version===at,Ke=ht=>(...$t)=>{Ge()&&ht(...$t)};await Kg({isCurrent:Ge,validateCurrentSession:()=>{if(!e||!Fn.current||hn.current!==ee||ze.getBaseUrl()!==Ne)throw new Error("The wallet or deposit changed. Review it again before funding.")},selectedDepositAssets:se,escrowOnly:x,escrowDepositAssets:k,escrowCapabilityApi:An,sourceAddress:Oe,isNon7702:de,address:Me,embeddedWalletAddress:_,isReady:ae,isAuthenticated:ie,zeroCreditError:Tn,depositBalanceError:Ao,externalWalletClient:ue,externalProvider:ce.current,effectiveDepositFee:Dt,depositBatches:r,destinationChainId:w,destinationTokenAddress:f,isCrossDenomination:Jt,convertedUsdAmount:Je,mode:M,sponsorGas:v,nativeChainId:b,spiceBalanceUser:z,depositDataRef:Ve,bridgedAmountRef:Pn,setIsExecuting:Ke(St),setError:Ke(ye),setRetryBlocked:Ke(ft),setConfirmationData:Ke(Bt),setShowConfirmation:Ke(Ut),setDirectDepositStatus:Ke(wt),setDirectDepositChainId:Ke(qt),setDirectDepositTxHash:Ke(bt),setPostDepositStatus:Ke(mt),setPostDepositError:Ke(qe),setPostDepositAmount:Ke(Ht),setPostDepositSuccess:Ke(Wt),startStatusPolling:Ke(Xt),clearStatus:Ke(Et),refreshAssets:Be,onDepositExecute:g,onDepositSelect:o,onDepositSuccess:L,execution:{execute:qn},getCurrentIntentStatus:()=>Pt.current,getCurrentPostDepositStatus:()=>mn.current})}finally{no.current=!1}},Kn=async()=>{if(!(At.current||je||gt||et)){if(Qo.current!==Gn){Ut(!1),kn(null),ye("The deposit route changed. Review the current deposit before funding.");return}At.current=!0;try{T?.(),await ln()}finally{At.current=!1}}},Tn=Ee(()=>{for(const ee of se)if(!(!ee?.asset||!ee.amount||parseFloat(ee.amount)<=0))try{const Ne=ee.asset.decimals,at=$n(ee.amount,Ne);if(at<=0n)continue;const Ge=dt(ee.asset.address),Ke=Ae(Ge)?Yt(Ge,ee.asset.chainId)?.equivalenceGroup:pl(Ge),ht=ee.asset.receiptTokenDecimals??(Ke==="ETH"||Ke==="ARB"?18:Ke==="USDC"||Ke==="SUSD"||Ke==="WBTC"||Ke==="CBTC"?6:void 0);if(ht===void 0||Ne<=ht||xo(at,Ne,ht)>0n)continue;return`Amount too small. Minimum deposit for this asset is ${Le(10n**BigInt(Ne-ht),Ne)} ${ee.asset.symbol}.`}catch{continue}return null},[se]),rt=!de&&!!ut&&!wn&&!En,Dt=Vn??Ro,oo=!!ut&&lp(Dt,ut),Ao=Ee(()=>{if(!ut)return null;if(wn)return ut.asset.balance>=ut.amount?null:`Insufficient ${ut.asset.symbol}. Need ${Le(ut.amount,ut.asset.decimals)} ${ut.asset.symbol}.`;if(!rt||!oo)return null;if(Dt.fee>=ut.amount||Dt.net<=0n)return"This deposit amount is too small to cover the network fee. Your funds remain in your wallet.";const ee=ut.amount;return ut.asset.balance>=ee?null:`Insufficient ${ut.asset.symbol}. Need ${Le(ee,ut.asset.decimals)} ${ut.asset.symbol} including gas.`},[rt,wn,ut,oo,Dt]),[sa,tr]=H(!1),ro=se[0]?.asset?.chainId,mr=be.find(ee=>ee.isNative&&ee.chainId===ro)?.balance??0n;we(()=>{if(!e||!ro||x){tr(!1);return}let ee=!1;return(async()=>{try{const Ne=await Rt(ro).getGasPrice()*150000n;ee||tr(mr<Ne)}catch{ee||tr(!1)}})(),()=>{ee=!0}},[e,ro,mr,x]);const Do=!rt||oo&&!eo&&!to&&!Ao,Va=Ee(()=>{if(!ut||!Dt||!oo)return null;const ee=ut.amount;return{symbol:ut.asset.symbol,decimals:ut.asset.decimals,grossAmount:ee,netAmount:Dt.net,totalFee:Dt.fee,gasFee:Dt.fee,spicenetFee:0n,bridgeFee:0n,gasQuoteSource:"estimated"}},[ut,Dt,oo]),_s=parseFloat(se[0]?.amount||"")||0,Nr=se.length>0&&se[0]?.asset&&se[0]?.amount&&_s>0&&W&&!je&&!et&&!gt&&!Tn&&!Ao&&Do&&!q&&!En;we(()=>{if(!x||!E||!I||_t.current||!W)return;const ee=a[0];if(!ee)return;const Ne=tf(ee,[]).find(Ge=>G(Ge.address,E));let at;if(Ne)at=Ne;else if(y!==void 0&&A)at={address:E,symbol:A,name:A,decimals:y,chainId:ee,balance:BigInt(0),balanceFormatted:0,balanceUsd:0,isNative:Ae(E)};else{console.warn("[DepositModal] escrowOnly: no matching asset and missing escrowTokenDecimals/escrowTokenSymbol for",E);return}_t.current=!0,Ue([{asset:at,amount:I}])},[x,E,I,y,A,W,a]),we(()=>{!x||mo||!Nr||un.current||je||(un.current=!0,ln())},[x,mo,Nr,je]);const Yn=Se||Tn||Ao||(En?"This asset is not currently available for an escrow deposit.":null),Zn=()=>{if(je)return"Executing Deposit...";if(!W)return"Wallet Not Connected";if(M==="7702"){if(!ae)return"Loading...";if(!ie)return"Authentication Required"}return se[0]?.asset?se[0]?.amount?En?"DEPOSIT UNAVAILABLE":Tn?"AMOUNT TOO SMALL":Ao?"INSUFFICIENT BALANCE":rt&&!Do?to?"GAS UNAVAILABLE":"ESTIMATING GAS":"DEPOSIT":"ENTER AMOUNT":"SELECT TOKEN"};return e?m(Co,{isOpen:e,onClose:t,closeOnBackdropClick:n,title:i||`Deposit to your ${Y} account`,subtitle:B("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[m("img",{src:yc,alt:"","aria-hidden":"true",style:{width:"13px",height:"13px",flexShrink:0,...Q?{filter:"invert(0.6)"}:{}}}),m("p",{style:{fontSize:"12px",color:he.textSecondary,margin:"0",lineHeight:"1.4",fontFamily:tt.ui},children:`Deposit collateral to your ${Y} Account from any supported network.`})]}),dark:Q,overlayContent:!et&&(en||De||nt!=="idle"&&g)?m("div",{}):void 0,styles:s,theme:K,children:B("div",{style:{padding:"24px 24px 5px 24px"},children:[!et&&m(Zg,{selectedDepositAssets:se,depositAssets:Pe,secondAssetOptions:Fe,loadingAssets:Ye,allowSecondAsset:p,theme:K,styles:s,dark:Q,dk:he,onSelect:zn,onAmountChange:Hn,onAdd:In,onRemove:Vt,onViewAllAssets:O}),!et&&rt&&ut&&m(Fc,{fontFamily:s?.fontFamily||K.typography.fontFamily,textPrimary:he.textPrimary,textSecondary:he.textSecondary,cardBg:Q?he.inputBg:"#ffffff",cardBorder:he.cardBorder,resolvedDark:Q,darkCardBorder:he.cardBorder,primaryColor:oe,feePreview:Va,isLoading:eo||rt&&!oo,errorText:to}),m(_g,{intentStatus:De,postDepositSuccess:Nt,postDepositAmount:Rn,postDepositStatus:nt,depositActionLabel:h,sourceChainName:se[0]?.asset?.chainId?uo(se[0].asset.chainId):"Destination Chain",directDepositStatus:vn,directDepositTxHash:_e,directDepositChainId:xt,styles:s}),m($g,{isOpen:en||!!De||vn==="success"||nt!=="idle"&&!!g,onClose:()=>{Ut(!1),De&&Et();const ee=nt==="success"&&!De,Ne=De?.overallStatus==="success"&&(g?nt==="success"||nt==="error":!0);(ee||Ne||vn==="success"&&(!g||nt==="success"||nt==="error")||gt)&&t()},onConfirm:Kn,data:lt,isExecuting:je,retryBlocked:gt,error:Se,theme:K,styles:s,intentStatus:De,directDepositStatus:vn,postDepositStatus:nt,hasPostDepositInstruction:!!g}),!et&&ge&&B(tp,{dk:he,dark:Q,borderRadius:K.borderRadius.md,children:["\u26A1 ",ge]}),!et&&sa&&m(tp,{dk:he,dark:Q,borderRadius:K.borderRadius.md,children:"Low native balance in the external wallet. The deposit to spicenet account might fail."}),!et&&B("div",{style:{display:"flex",flexDirection:"column",gap:0,marginBottom:0,margin:0,padding:0},children:[Yn?m("div",{style:{marginBottom:"10px",fontSize:"12px",lineHeight:"1.45",color:he.errorText,fontFamily:s?.fontFamily||K.typography.fontFamily},children:Yn}):null,m(Kt,{variant:"outline",fullWidth:!0,onClick:on,disabled:!Nr||!W||je,theme:K,dark:Q,styles:s,children:Zn()})]})]})}):null}),t0=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,deposits:o,onComplete:r,onCancel:a,onSkip:i,onChangeWallet:s,isProcessing:c,isVerifying:l=!1,onRefresh:d,error:u,styles:p})=>{const{dark:w,dk:f,theme:g}=dn(p);if(!e)return null;if(o.length===0)return m(Co,{isOpen:e,onClose:t,title:"Your wallet",styles:p,closeOnBackdropClick:n,children:m("p",{role:"status",style:{padding:"18px 24px",color:f.textSecondary},children:c?"Returning funds\u2026":"Checking your wallet\u2026"})});const h=o[0],b=h.timestamp===0,v=h.verifiedBalance<=0n,C=c||l||v,x=p?.fontFamily||tt.ui,k=tt.mono,E=uo(h.chainId),I=parseFloat(h.amount).toPrecision(6).replace(/\.?0+$/,""),y=Le(h.verifiedBalance,h.tokenDecimals);return m(Co,{isOpen:e,onClose:t,title:b?"Funds in your wallet":"Incomplete Deposit",styles:p,closeOnBackdropClick:n,children:B("div",{style:{padding:"18px 24px 24px",fontFamily:x},children:[m("p",{style:{fontSize:"14px",color:f.textSecondary,lineHeight:"1.6",margin:"0 0 18px 0"},children:b?"These funds remain in your wallet. Network fees apply when depositing.":"Your funds reached your wallet, but the deposit didn't finish."}),B("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) auto",gap:"14px 18px",marginBottom:"24px",padding:"16px 18px",backgroundColor:w?f.cardBg:"#f8fafc",border:`1px solid ${f.cardBorder}`,borderRadius:w?"14px":"10px",boxShadow:w?"inset 0 1px 0 rgba(255,255,255,0.03)":"0 1px 2px rgba(16,24,40,0.04)"},children:[B("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[m("span",{style:{fontSize:"12px",fontWeight:600,color:f.textSecondary,fontFamily:k,letterSpacing:"0.8px"},children:"NETWORK"}),m("span",{style:{fontSize:"18px",fontWeight:600,color:f.textPrimary,fontFamily:x,lineHeight:1.2},children:E})]}),B("div",{style:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-end",textAlign:"right"},children:[m("span",{style:{fontSize:"12px",fontWeight:600,color:f.textSecondary,fontFamily:k,letterSpacing:"0.8px"},children:b?"AVAILABLE BALANCE":"DEPOSITED AMOUNT"}),B("span",{style:{fontSize:"24px",fontWeight:700,color:f.successText,fontFamily:k,lineHeight:1.1},children:[I," ",h.tokenSymbol]}),m("span",{style:{fontSize:"12px",color:f.textSecondary,fontWeight:500,fontFamily:x},children:b?"In your wallet":"Sent to embedded wallet"})]})]}),!h.hasFullBalance&&h.verifiedBalance>0n&&B("div",{style:{marginBottom:"16px",padding:"8px 12px",backgroundColor:f.warningBg,border:`1px solid ${w?f.warningBorder:"#fcd34d"}`,borderRadius:"8px",fontSize:"13px",color:f.warningText,lineHeight:"1.4"},children:["Partial balance \u2014 only ",parseFloat(y).toFixed(4)," ",h.tokenSymbol," available."]}),(l||v)&&B("div",{style:{marginBottom:"16px",color:f.textSecondary},children:[m("p",{role:"status",children:l?"Checking your wallet\u2026":"Balance unavailable. Try again."}),v&&d&&m(Kt,{variant:"ghost",fullWidth:!0,disabled:c||l,onClick:d,theme:g,dark:w,children:"TRY AGAIN"})]}),u&&m("div",{style:{marginBottom:"16px",padding:"10px 12px",backgroundColor:f.errorBg,border:`1px solid ${w?f.errorBorder:"#fca5a5"}`,borderRadius:"8px",fontSize:"13px",color:w?f.errorText:"#991b1b",lineHeight:"1.4"},children:u}),B("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[m(Kt,{variant:"outline",fullWidth:!0,disabled:C,onClick:()=>r(h),theme:g,dark:w,styles:p,children:"CONFIRM DEPOSIT"}),B("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[m(Kt,{variant:"ghost",fullWidth:!0,disabled:C,onClick:()=>a(h),theme:g,dark:w,style:{height:"48px",fontSize:"13px",letterSpacing:"0.4px",color:w?f.textPrimary:"#374151",border:`1px solid ${w?f.cardBorder:"#d1d5db"}`,borderRadius:"12px",backgroundColor:w?"rgba(255,255,255,0.02)":"#ffffff"},children:c?"RETURNING...":"RETURN FUNDS"}),B("div",{style:{display:"grid",gridTemplateColumns:s?"1fr 1fr":"1fr",gap:"10px"},children:[m(Kt,{variant:"ghost",fullWidth:!0,disabled:c,onClick:i,theme:g,dark:w,style:{height:"44px",fontSize:"12px",letterSpacing:"0.4px",color:f.textSecondary,border:`1px solid ${w?f.cardBorder:"#d1d5db"}`,borderRadius:"12px",backgroundColor:"transparent"},children:"START OVER"}),s&&m(Kt,{variant:"ghost",fullWidth:!0,disabled:c,onClick:s,theme:g,dark:w,style:{height:"44px",fontSize:"12px",letterSpacing:"0.4px",color:f.textSecondary,border:`1px solid ${w?f.cardBorder:"#d1d5db"}`,borderRadius:"12px",backgroundColor:"transparent"},children:"CHANGE WALLET"})]})]})]}),o.length>1&&m("p",{style:{fontSize:"12px",color:f.textSecondary,textAlign:"center",marginTop:"14px",marginBottom:0,lineHeight:"1.5"},children:o.some(A=>A.timestamp===0)?`${o.length} balances available. Review one at a time.`:`${o.length} incomplete deposits found. Review one at a time.`})]})})},n0=[{source:"wallet",title:"From Wallet",description:"Deposit crypto you already hold in a connected wallet"},{source:"card",title:"With Card",description:"Buy and deposit using a debit or credit card"},{source:"exchange",title:"From Exchange",description:"Transfer from Coinbase, Binance, or any exchange"}],o0=({isOpen:e,onClose:t,closeOnBackdropClick:n,onSelect:o,styles:r})=>{const{dark:a,dk:i}=dn(r),[s,c]=H(null);return m(Co,{isOpen:e,onClose:t,title:"Deposit",subtitle:"Choose how you want to add funds",styles:r,dark:a,closeOnBackdropClick:n,children:m("div",{style:{padding:"0 24px 25px",display:"flex",flexDirection:"column",gap:"12px",marginTop:"20px"},children:n0.map(({source:l,title:d,description:u})=>B("button",{onClick:()=>o(l),onMouseEnter:()=>c(l),onMouseLeave:()=>c(null),style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"4px",padding:"14px 16px",borderRadius:"8px",border:`1px solid ${a?i.cardBorder:"#e5e7eb"}`,backgroundColor:s===l?a?i.hoverBg:"#f9fafb":a?i.cardBg:"white",cursor:"pointer",textAlign:"left",transition:wo.color},children:[m("span",{style:{fontSize:"15px",fontWeight:600,fontFamily:tt.ui,color:a?i.textPrimary:"#111827"},children:d}),m("span",{style:{fontSize:"13px",fontFamily:tt.ui,color:a?i.textSecondary:"#6b7280"},children:u})]},l))})})},r0=({isOpen:e,onClose:t,onBack:n,closeOnBackdropClick:o,source:r,destinationChainId:a,onShowWidget:i,onHideWidget:s,verifying:c,verifyError:l,onRetryVerify:d,funded:u,styles:p})=>{const{dark:w,dk:f,primaryColor:g,theme:h}=dn(p),b=uo(a),v=Z(null),C=Z(i);C.current=i;const x=Z(s);x.current=s;const k=c||!!l||!!u;return we(()=>{if(!e)return;const E=v.current;if(E){if(k){x.current();return}return C.current(E,r),()=>x.current()}},[e,r,k]),m(Co,{isOpen:e,onClose:t,title:r==="card"?"Deposit with Card":"Deposit from Exchange",styles:p,dark:w,closeOnBackdropClick:o,children:B("div",{style:{padding:"0 24px 25px",display:"flex",flexDirection:"column",gap:"12px",marginTop:"12px"},children:[m("button",{onClick:n,disabled:c,style:{alignSelf:"flex-start",padding:0,border:"none",background:"none",fontSize:"13px",fontFamily:tt.ui,color:w?f.textSecondary:"#6b7280",cursor:c?"default":"pointer",opacity:c?.5:1},children:"\u2190 Back"}),B("div",{style:{position:"relative",width:"100%"},children:[m("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:m(Ko,{size:28,color:g})}),m("div",{ref:v,style:{position:"relative",width:"100%",height:"560px"}}),k&&m("div",{style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"16px",padding:"24px",borderRadius:"9px",backgroundColor:w?"rgba(0, 0, 0, 0.82)":"rgba(255, 255, 255, 0.94)"},children:c?B(Sn,{children:[m(Ko,{size:28,color:g}),B("p",{style:{margin:0,fontSize:"14px",fontFamily:tt.ui,color:w?f.textPrimary:"#111827",textAlign:"center"},children:["Confirming your deposit arrived on ",b,"\u2026"]})]}):u?B(Sn,{children:[B("p",{style:{margin:0,fontSize:"14px",fontFamily:tt.ui,color:w?f.textPrimary:"#111827",textAlign:"center"},children:[u.amount," ",u.symbol," is in your wallet on"," ",b,"."]}),m(Kt,{variant:"outline",onClick:t,theme:h,dark:w,styles:p,children:"DONE"})]}):B(Sn,{children:[m("p",{style:{margin:0,fontSize:"14px",fontFamily:tt.ui,color:w?f.textPrimary:"#111827",textAlign:"center"},children:l}),m(Kt,{variant:"outline",onClick:d,theme:h,dark:w,styles:p,children:"RETRY"}),m("button",{onClick:t,style:{padding:0,border:"none",background:"none",fontSize:"13px",fontFamily:tt.ui,color:w?f.textSecondary:"#6b7280",cursor:"pointer",textDecoration:"underline"},children:"Close \u2014 we'll detect your funds later"})]})})]})]})})},a0="692fb8af264069ca12a9",aa=42161,s0=[8453,aa];function i0(e){const{targetKind:t,appChainId:n}=e;return t!=="external"||n===void 0||!s0.includes(n)?aa:di("USDC",n)?n:aa}function $s(e=aa){return di("USDC",e)}function c0(e){const t=e?.integratorId??a0;return{integratorId:t,enabled:e?.enabled===!0&&t!=="",embedFactory:e?.embedFactory}}const l0=e=>import("@swapper-finance/deposit-sdk").then(t=>new t.SwapperEmbed(e));function d0(e,t,n){return{themeMode:t?"dark":"light",componentStyles:{width:"100%",primaryColor:n,accentColor:n,borderRadius:"9px",...t?{backgroundColor:e.shell,surfaceColor:e.cardBg,surfaceAltColor:e.inputBg,textColor:e.textPrimary,border:`1px solid ${e.cardBorder}`}:{}}}}function dp(e){return e==="card"?["depositWithCash"]:e==="exchange"?["transferCrypto"]:["depositWithCash","transferCrypto"]}function u0(e){const t=e.destinationChainId??aa,n=$s(t);if(!n)throw new Error("USDC is not configured for the Swapper destination chain");return{iframeUrl:"https://swapper-deposit-sdk.web.app/",integratorId:e.integratorId,dstChainId:String(t),dstTokenAddr:n.address,depositWalletAddress:e.depositWalletAddress,supportedDepositOptions:dp(e.source),styles:e.styles,actionLabel:"deposit",flexibleHeight:!0,iframeAttributes:{borderRadius:"9px"}}}async function up(e,t=aa){const n=$s(t);if(!n)throw new Error("USDC is not configured for the Swapper destination chain");return Rt(t).readContract({address:n.address,abi:pt,functionName:"balanceOf",args:[e]})}async function p0(e,t,n){const o=n?.timeoutMs??12e4,r=n?.intervalMs??3e3,a=Date.now()+o;for(;Date.now()<a;){if(n?.signal?.aborted)return null;try{const i=await up(e,n?.chainId);if(i>t)return i}catch{}await new Promise(i=>setTimeout(i,r))}return null}const f0=.01,m0=5*60*1e3;function h0(e){const t=Number(Le(e.verifiedBalance,e.tokenDecimals));return Number.isFinite(t)?t:0}async function g0(e){const t=pp(e);let n;try{n=await rp(t.map(o=>o.tokenSymbol))}catch{return t}return t.filter(o=>{const r=h0(o);if(r<=0)return!0;const a=n[o.tokenSymbol.toUpperCase()]??0;return!Number.isFinite(a)||a<=0?!0:r*a>=f0})}function pp(e){const t=new Map;for(const n of e){const o=`${n.chainId}:${n.tokenAddress.toLowerCase()}`;if(!t.get(o)){const r=n.timestamp===0&&n.verifiedBalance>0n;t.set(o,{...n,amount:r?Le(n.verifiedBalance,n.tokenDecimals):n.amount,rawAmount:r?n.verifiedBalance.toString():n.rawAmount,hasFullBalance:r?!0:n.hasFullBalance})}}return Array.from(t.values())}function fp(e,t){const[n,o]=H([]),[r,a]=H(!1),i=Z(t);i.current=t;const s=!!t?.enabled,c=Z(0),l=Z([]),d=t?.chainIds?.join(","),u=t?.discoverWalletBalances??!0,p=Z(0),w=re(async({forceDiscovery:f=!1}={})=>{if(!e||i.current?.enabled===!1){o([]),a(!1);return}const g=++p.current,h=()=>g!==p.current;a(!0);try{const b=[],v=cp(e),C=new Set(v.map(y=>`${y.chainId}:${y.tokenAddress.toLowerCase()}`)),x=[...v,...l.current.filter(y=>y.timestamp===0&&!C.has(`${y.chainId}:${y.tokenAddress.toLowerCase()}`))];for(const y of x){if(h())return;if(Ha({address:y.tokenAddress,chainId:y.chainId,isNative:y.isNative,decimals:y.tokenDecimals},i.current?.escrowDepositAssets))try{const A=Rt(y.chainId);let T;if(y.isNative||Ae(y.tokenAddress)?T=await ms(A,{address:e}):T=await lr(A,{address:xn(y.tokenAddress),abi:pt,functionName:"balanceOf",args:[e]}),h())return;if(T>0n)b.push({...y,verifiedBalance:T,hasFullBalance:T>=BigInt(y.rawAmount)});else{const F=Date.now()-y.timestamp;y.timestamp!==0&&F>15*60*1e3&&Zs(e,y.chainId,y.tokenAddress)}}catch(A){if(h())return;console.warn(`[usePendingDeposit] Failed to verify balance for ${y.tokenSymbol} on chain ${y.chainId}:`,A),b.push({...y,verifiedBalance:0n,hasFullBalance:!1})}}if(h())return;const k=i.current,E=Date.now(),I=(k?.discoverWalletBalances??!0)&&(f||E-c.current>=m0);if(k?.network&&I){c.current=E;const y=k.chainIds??ps(k.network),A=new Set(b.map(F=>`${F.chainId}:${F.tokenAddress.toLowerCase()}`)),T=[];for(const F of y){const L=Ct(F);if(!L?.supportedTokens)continue;const R=k.escrowDepositAssets?.flatMap(N=>{if(N.chainId!==F)return[];const O=Yt(N.token,F);return O?[O]:[]})??[];for(const N of[...L.supportedTokens,...R]){const O=dt(N.address),D=Ae(O);if(!Ha({address:O,chainId:F,isNative:D,decimals:N.decimals},k.escrowDepositAssets))continue;const M=`${F}:${O.toLowerCase()}`;A.has(M)||(A.add(M),T.push((async()=>{try{const S=Rt(F),U=D?await ms(S,{address:e}):await lr(S,{address:xn(O),abi:pt,functionName:"balanceOf",args:[e]});return U>0n?{chainId:F,tokenAddress:O,tokenSymbol:N.symbol,tokenDecimals:N.decimals,amount:Le(U,N.decimals),rawAmount:U.toString(),embeddedWalletAddress:e,externalWalletAddress:"",timestamp:0,isNative:D,verifiedBalance:U,hasFullBalance:!0}:null}catch{return null}})()))}}if(T.length>0){const F=await Promise.allSettled(T);if(h())return;for(const L of F)L.status==="fulfilled"&&L.value&&b.push(L.value)}}if(!h()){const y=await g0(b);if(h())return;l.current=pp(b),o(y)}}catch(b){if(console.error("[usePendingDeposit] Verification error:",b),!h()){const v=l.current.map(C=>({...C,verifiedBalance:0n,hasFullBalance:!1}));l.current=v,o(v)}}finally{h()||a(!1)}},[e]);return we(()=>{if(l.current=[],c.current=0,o([]),!s){p.current++,a(!1);return}w({forceDiscovery:!0});const f=i.current?.pollIntervalMs??3e4;if(f<=0||!e)return()=>{p.current++};const g=setInterval(()=>{w({forceDiscovery:!1})},f),h=()=>w({forceDiscovery:!0});return window.addEventListener(Ys,h),()=>{p.current++,window.removeEventListener(Ys,h),clearInterval(g)}},[w,e,s,t?.network,d,u,t?.escrowDepositAssets]),{pendingDeposits:n,loading:r,refresh:()=>w({forceDiscovery:!0})}}function w0({enabled:e,integratorId:t,depositWalletAddress:n,destinationChainId:o,brand:r,embedFactory:a,onTransactionSuccess:i,onCloseRequest:s}){const c=Z(null),l=Z(null),d=Z(i);d.current=i;const u=Z(s);u.current=s;const p=Z(r);p.current=r;const w=Z(a);w.current=a;const f=re((b,v,C)=>{if(!v.isConnected)return;const x=b.getIframe();x.updateConfig({supportedDepositOptions:dp(C)}),x.sendConfig(),b.showIn(v)},[]);we(()=>{if(!e||!n)return;let b=!1;return Promise.resolve().then(()=>{const{dk:v,dark:C,primaryColor:x}=p.current;return(w.current??l0)(u0({integratorId:t,depositWalletAddress:n,destinationChainId:o,source:null,styles:d0(v,C,x)}))}).then(v=>{if(b){v.destroy();return}const C=v.getIframe();C.on("transaction_success",k=>d.current(k)),C.on("close_request",()=>u.current()),c.current=v;const x=l.current;x&&f(v,x.placeholder,x.source)}).catch(v=>{console.error("[useSwapperEmbed] Failed to preload Swapper widget:",v)}),()=>{b=!0,l.current=null,c.current?.destroy(),c.current=null}},[e,t,n,o,f]);const g=re((b,v)=>{l.current={placeholder:b,source:v};const C=c.current;C&&f(C,b,v)},[f]),h=re(()=>{l.current=null,c.current?.hide()},[]);return{showWidget:g,hideWidget:h}}const y0=[];function b0(e,t,n,o,r){return{address:t,symbol:n||"UNKNOWN",name:n||"Unknown Token",decimals:o||18,chainId:e,balance:0n,balanceFormatted:r?parseFloat(r):0,balanceUsd:0,isNative:Ae(t)}}const x0=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,styles:o,depositBatches:r,onDepositAmountChange:a,destinationChainId:i,destinationTokenAddress:s,onDepositExecute:c,depositActionLabel:l,sponsorGas:d=!1,escrowRecovery:u,skipTokenSelection:p=!1,directSubmit:w=!1,onSubmit:f,onDepositSuccess:g,onDepositError:h,skipRecovery:b=!0})=>{const v=gn(sn);if(!v)return m("div",{children:"Error: SpiceDeposit must be used within SpiceFlowProvider"});const C=(v.mode||"7702")!="7702",x=C,k=v.nativeChainId,E=v.network||"testnet",{dark:I,dk:y,primaryColor:A}=dn(o),T=!!u,F=e&&!C&&E==="mainnet"&&(v.supportedChainIds?.includes(ra)||u?.chainId===ra)?v.apiUrl||ze.getBaseUrl():void 0,[L,R]=H();we(()=>{if(R(void 0),!F)return;const ge=new AbortController,yt=setTimeout(()=>ge.abort(),8e3);return ap(F,ge.signal).then(De=>{ge.signal.aborted||R({url:F,assets:De})}).finally(()=>clearTimeout(yt)),()=>{ge.abort(),clearTimeout(yt)}},[F]);const N=L?.url===F&&L?L.assets:y0,O=Po(),{isReady:D,isAuthenticated:M,actions:S}=O,U=v?.embeddedWalletAddress,q=v.externalWalletAddress,X=!!q,K=c0(v.swapper),Q=x?{address:q,kind:"external"}:{address:U,kind:"embedded"},Y=i0({targetKind:Q.kind,appChainId:i||k}),oe=K.enabled&&!T&&E==="mainnet"&&!!$s(Y),he=()=>p?"deposit":"select-token",ve=()=>oe?"select-source":x?X?he():"connect-wallet":"provider-login",[ae,ie]=H(ve()),[ne,_]=H(null),[de,W]=H(!1),[Me,Oe]=H(null),[z,V]=H(!1),[te,ue]=H(null),[J,ce]=H(null),[He,Xe]=H(null),Ve=Z(null),se=Z(null),{pendingDeposits:Ue,loading:be,refresh:Ye}=fp(U,{enabled:e&&!b,network:E,chainIds:v.supportedChainIds,escrowDepositAssets:N}),Be=Ee(()=>Ue.filter(ge=>ge.embeddedWalletAddress.toLowerCase()===U?.toLowerCase()),[Ue,U]),[Pe,Fe]=H(null),[je,St]=H(!1),[gt,ft]=H(null),[ct,Re]=H(!1),[Se,kt]=H("idle");we(()=>{if(e&&ae==="recovery"&&!je&&!be&&Be.length===0){ie(ve());return}e&&!b&&!T&&!Pe&&!ct&&Se==="idle"&&M&&U&&X&&q&&!be&&Be.length>0&&ae!=="recovery"&&ae!=="deposit"&&ae!=="swapper"&&ie("recovery")},[e,b,T,M,U,X,q,be,Be,ae,Pe,ct,Se,je,oe,x,p]);const vt=re(ge=>{const yt={address:ge.tokenAddress,symbol:ge.tokenSymbol,name:ge.tokenSymbol,decimals:ge.tokenDecimals,chainId:ge.chainId,balance:ge.verifiedBalance,balanceFormatted:parseFloat(ge.amount),balanceUsd:0,isNative:ge.isNative};_(yt),Fe(ge),ie("deposit")},[]),ye=re(ge=>{if(Oe(ge),x){ie(X?ge==="wallet"?he():"swapper":"connect-wallet");return}const yt=M&&!!U;ie(ge==="wallet"?yt?X?he():"connect-wallet":"provider-login":yt?"swapper":"provider-login")},[x,M,U,X,p]),nt=re(()=>{se.current?.abort(),V(!1),ue(null),ce(null),Oe(null),Ve.current=null,Xe(null),ie("select-source")},[]);we(()=>{ae==="swapper"&&(He||!Q.address||Xe({address:Q.address,kind:Q.kind}))},[ae,He,Q.address,Q.kind]);const mt=He??Q,qe=mt.address,Nt=mt.kind,Wt=re(async ge=>{if(!e||ae!=="swapper"||!qe)return;se.current?.abort();const yt=new AbortController;se.current=yt,ue(null),V(!0);const De=$s(Y);if(!De){V(!1);return}const Xt=nn=>{V(!1);const Jt=Le(nn,De.decimals);if(Nt==="external"){ce({amount:Jt,symbol:De.symbol});const Pn={type:"wallet-funding",status:"success",amount:Jt,asset:De.address,sourceChain:String(Y)};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:Pn})),g?.(Pn);return}vt({chainId:Y,tokenAddress:De.address,tokenSymbol:De.symbol,tokenDecimals:De.decimals,amount:Jt,rawAmount:nn.toString(),embeddedWalletAddress:qe,externalWalletAddress:"",timestamp:0,isNative:!1,verifiedBalance:nn,hasFullBalance:!0})},Et=Ve.current,qn=await Et;if(yt.signal.aborted||Ve.current!==Et)return;if(qn===null){V(!1),ue("Unable to confirm your starting balance. Go back and reopen the deposit to try again.");return}const et=await p0(qe,qn,{signal:yt.signal,chainId:Y});if(!yt.signal.aborted){if(et===null){V(!1);const nn=Ct(Y)?.viemChain?.name??`chain ${Y}`;ue(`We haven't seen your funds arrive on ${nn} yet \u2014 they may still be in transit.`);return}Xt(et)}},[e,ae,qe,Nt,Y,vt,g]);we(()=>{if(!e||ae!=="swapper"||!qe)return;const ge=up(qe,Y).catch(()=>null);return Ve.current=ge,()=>{Ve.current===ge&&(Ve.current=null),se.current?.abort()}},[e,ae,qe,Y]);const{showWidget:Rn,hideWidget:Ht}=w0({enabled:e&&oe,integratorId:K.integratorId,depositWalletAddress:qe,destinationChainId:Y,brand:{dk:y,dark:I,primaryColor:A},embedFactory:K.embedFactory,onTransactionSuccess:Wt,onCloseRequest:()=>{z||nt()}}),vn=re(()=>{Re(!0),ie(M&&U&&X&&q?p?"deposit":"select-token":M&&U?"connect-wallet":"provider-login")},[M,U,X,q,p]),wt=re(()=>{ft(null),kt("awaiting-disconnect"),ie("connect-wallet")},[]),_e=re(async ge=>{St(!0),ft(null);try{if(!U)throw new Error("Embedded wallet not available");const yt=await S.getEthereumProvider(),De=Ct(ge.chainId);await rl(yt,ge.chainId);const Xt=Rt(ge.chainId),Et=await ms(Xt,{address:U}),qn=De?.viemChain?.name||`chain ${ge.chainId}`;if(Et===0n)throw new Error(`Your embedded wallet has no ETH on ${qn} to pay for gas. We recommend completing the deposit instead \u2014 it doesn't require gas.`);const et=mi({account:U,transport:hi(yt),chain:De?.viemChain}),nn=ge.externalWalletAddress&&Mn(ge.externalWalletAddress)?ge.externalWalletAddress:q;if(!nn||!Mn(nn))throw new Error("Connect the external wallet that should receive these funds, then try again.");const Jt={recipient:nn,tokenAddr:ge.tokenAddress,isNative:ge.isNative||Ae(ge.tokenAddress),amount:ge.verifiedBalance,viemChain:De?.viemChain},Pn=await fc(et,Jt),{receipt:Un}=await Fs({client:Xt,hash:Pn,call:zs(Jt.recipient,Jt.tokenAddr,Jt.isNative,Jt.amount),confirmations:1});if(Un.status!=="success")throw new Error("The return transaction failed. Please try again.");Zs(ge.embeddedWalletAddress,ge.chainId,ge.tokenAddress),Ye(),Ue.length<=1&&ie(ve())}catch(yt){const De=yt?.message||"Couldn't return your funds. Please try again.",Xt=/insufficient funds for gas/i.test(De);ft(Xt?"Not enough ETH in your embedded wallet to cover gas fees. Complete the deposit instead \u2014 it doesn't require gas.":De)}finally{St(!1)}},[S,U,q,Ue,Ye]);we(()=>{e||(Fe(null),ft(null),St(!1),Re(!1),kt("idle"),se.current?.abort(),Oe(null),V(!1),ue(null),ce(null),Ve.current=null,Xe(null))},[e]),we(()=>{if(!(b||Se==="idle")){if(Se==="awaiting-disconnect"){(!X||!q)&&kt("awaiting-reconnect");return}e&&!be&&Ue.length>0&&M&&U&&(kt("idle"),ie("recovery"))}},[b,Se,X,q,e,be,Ue,M,U]),we(()=>{!T||!e||(M&&U?(W(!0),!ne&&u?.chainId&&u?.tokenAddress&&_(b0(u.chainId,u.tokenAddress,u.tokenSymbol,u.tokenDecimals,u.amount)),ie("deposit")):ie("provider-login"))},[T,e,ae,M,U]);const{assets:bt,loading:xt}=Fa({address:q,supportedChains:v.supportedChainIds,fetchBalances:Kr,enabled:e&&!!q,refreshInterval:e?5e3:0}),qt=re(()=>{W(!0),ie(T?"deposit":Me==="card"||Me==="exchange"?"swapper":X?p?"deposit":"select-token":"connect-wallet")},[T,Me,X,p]),Ce=re(async()=>{if((!X||!q)&&(await Io(500),!X||!q)){alert("Please connect your wallet first");return}ie(p?"deposit":"select-token")},[X,q,p]),Zt=re(ge=>{_(ge),ie("deposit")},[]),Je=re(()=>{if(_(null),a?.(""),!q){ie("connect-wallet");return}ie("select-token")},[q,a]),$e=re(()=>{t()},[t]);if(we(()=>{if(!e){const ge=setTimeout(()=>{T||(ie(ve()),_(null)),W(!1)},300);return()=>clearTimeout(ge)}},[e,T,u?.chainId]),we(()=>{e&&ae==="deposit"&&!ne&&!T&&!Pe&&!p&&ie("select-token")},[e,ae,ne,T,Pe,p]),we(()=>{if(e&&ae==="connect-wallet"&&X&&q&&Se==="idle"){if(oe&&!Me){ie("select-source");return}if(oe&&Me&&Me!=="wallet"){ie("swapper");return}ie(p?"deposit":"select-token")}},[e,ae,X,q,Se,p,oe,Me]),we(()=>{if(!x&&e&&ae==="provider-login"&&D&&M&&U&&!de){const ge=setTimeout(()=>{W(!0),ie(Me==="card"||Me==="exchange"?"swapper":X?p?"deposit":"select-token":"connect-wallet")},100);return()=>clearTimeout(ge)}},[x,e,ae,D,M,U,Me,X,p,de]),!e)return null;if(ae==="recovery")return m(t0,{isOpen:e,onClose:$e,closeOnBackdropClick:n,deposits:Be,onComplete:vt,onCancel:_e,onSkip:vn,onChangeWallet:wt,isProcessing:je,isVerifying:be,onRefresh:Ye,error:gt,styles:o});if(ae==="select-source")return oe?m(o0,{isOpen:e,onClose:$e,closeOnBackdropClick:n,onSelect:ye,styles:o}):(ie("provider-login"),null);if(ae==="swapper")return Me!=="card"&&Me!=="exchange"?(ie(ve()),null):qe?m(r0,{isOpen:e,onClose:$e,onBack:nt,closeOnBackdropClick:n,source:Me,destinationChainId:Y,onShowWidget:Rn,onHideWidget:Ht,verifying:z,verifyError:te,onRetryVerify:Wt,funded:J,styles:o}):m("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",zIndex:50},children:m("div",{style:{backgroundColor:I?y.cardBg:"white",borderRadius:"9px",padding:"32px 24px",maxWidth:"400px",width:"100%",textAlign:"center",fontFamily:'"Helvetica Neue", sans-serif',fontSize:"14px",color:I?y.textPrimary:"#111827"},children:"Preparing your account..."})});if(ae==="provider-login"&&!x)return m("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",zIndex:50},children:m("div",{style:{backgroundColor:I?y.cardBg:"white",borderRadius:"9px",padding:"32px 24px",maxWidth:"400px",width:"100%"},children:m(Ki,{onAuthSuccess:qt,autoTrigger:!0})})});if(ae==="connect-wallet")return m(Ng,{isOpen:e,onClose:$e,closeOnBackdropClick:n,onContinue:Ce,requiredChainId:C?k:void 0,styles:o});if(ae==="select-token")return q?m(Rg,{isOpen:e,onClose:$e,closeOnBackdropClick:n,onTokenSelect:Zt,walletAddress:q,supportedChainIds:v.supportedChainIds,network:E,prefetchedAssets:xt?null:bt??null,styles:o,dark:I}):(ie("connect-wallet"),null);if(ae==="deposit"){if(!ne&&!p)return null;const ge=!!Pe;return m(e0,{isOpen:e,onClose:$e,closeOnBackdropClick:n,supportedChains:ne?[ne.chainId]:v.supportedChainIds??[],styles:o,externalWalletAddress:q,depositBatches:ge?void 0:r,onDepositAmountChange:a,destinationChainId:i,destinationTokenAddress:s,onDepositExecute:c,depositActionLabel:l,nativeChainId:k,sponsorGas:d,preSelectedAsset:ne??void 0,escrowOnly:T||ge,escrowDepositAssets:N,escrowTokenAddress:ge?Pe.tokenAddress:u?.tokenAddress,escrowAmount:ge?Pe.amount:u?.amount,escrowTokenDecimals:ge?Pe.tokenDecimals:u?.tokenDecimals,escrowTokenSymbol:ge?Pe.tokenSymbol:u?.tokenSymbol,onSubmit:f,directSubmit:w,onDepositSuccess:g,onDepositError:h,embeddedWalletAddress:U,onViewAllAssets:p?void 0:Je})}return null},mp=e=>gn(sn)?m(x0,{...e}):m("div",{children:"Error: SpiceDeposit must be used within SpiceFlowProvider"}),v0=({depositProps:e,withdrawProps:t,...n})=>{const[o,r]=H(!1),[a,i]=H(null);return B(Sn,{children:[m(Xu,{...n,onDepositClick:()=>r(!0),onWithdrawClick:s=>i({assetId:s})}),m(mp,{styles:n.styles,onDepositSuccess:n.onDepositSuccess,...e,isOpen:o,onClose:()=>r(!1)}),m(bc,{styles:n.styles,...t,isOpen:!!a,onClose:()=>i(null),initialSourceAssetId:a?.assetId})]})},I0=({isOpen:e,onClose:t,onChainSelect:n,supportedChains:o,closeOnSelect:r=!0,styles:a})=>{const{theme:i,dark:s,primaryColor:c,dk:l}=dn(a),[d,u]=H(""),[p,w]=H(null),[f,g]=H(null),[h,b]=H(!1),[v,C]=H(null),{switchChainAsync:x}=yf(),k=Ee(()=>new Set(o||[]),[o]),E=Ee(()=>{if(!o||o.length===0)return[];const T=[];return o.forEach((F,L)=>{if(typeof F!="number")return;const R=Ct(F);R&&T.push({id:F.toString(),name:R.displayName,icon:dr[F]||Aa,chainId:F,verified:!0,order:L})}),T},[o]);we(()=>{p&&!k.has(parseInt(p,10))&&w(null)},[p,k]);const I=Ee(()=>E.filter(T=>T.name.toLowerCase().includes(d.toLowerCase())).sort((T,F)=>T.order-F.order),[E,d]),y=async()=>{if(!p)return;const T=parseInt(p,10);b(!0),C(null);try{await x({chainId:T}),n&&n(p),r&&t()}catch(F){console.error("Failed to switch chain:",F),C(Ln(F,"Failed to switch chain."))}finally{b(!1)}},A=!p||h;return B(Co,{isOpen:e,onClose:t,title:"Select Chain",styles:a,theme:i,dark:s,children:[m("div",{style:{padding:"24px 20px"},children:m(kc,{value:d,onChange:u,ariaLabel:"Search chains",placeholder:"Search chain name, symbol or address",size:"md",dark:s,styles:a,endAdornment:m("div",{style:{padding:"5px 5px",borderRadius:"3px",fontSize:"13px",backgroundColor:s?l.cardBg:"#E9E9E9",color:s?l.textSecondary:"#485066",fontWeight:500,flexShrink:0},"aria-hidden":"true",children:"\u2318F"})})}),m("div",{style:{padding:"0 32px 20px",display:"flex",flexDirection:"column",gap:"12px"},children:I.map(T=>{const F=p===T.id,L=f===T.id;return B("button",{onClick:()=>w(T.id),onMouseEnter:()=>g(T.id),onMouseLeave:()=>g(null),style:{width:"100%",display:"flex",alignItems:"center",gap:"16px",padding:"8px",borderRadius:"8px",backgroundColor:F?s?`${c}15`:`${c}12`:"transparent",border:F?s?`1px solid ${c}66`:`1px solid ${c}88`:L?s?`1px solid ${c}44`:`1px solid ${c}66`:"1px solid transparent",cursor:"pointer",transition:wo.interactive},children:[m("div",{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"30px"},children:m("img",{src:T.icon,alt:T.name,loading:"lazy",decoding:"async",style:{width:"100%",height:"100%",borderRadius:"50%"}})}),B("div",{style:{display:"flex",alignItems:"center",gap:"6px",flex:1},children:[m("span",{style:{fontFamily:tt.mono,fontSize:"17px",fontWeight:500,letterSpacing:"0.4px",color:l.textPrimary,textAlign:"left"},children:T.name}),T.verified&&m("img",{src:$u,alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",width:16,height:16,style:{width:"16px",height:"16px",filter:s?"brightness(0) invert(1)":"none"}})]})]},T.id)})}),v&&m("div",{style:{padding:"0 25px 12px"},children:m(jn,{variant:"error",size:"compact",palette:l,children:v})}),m("div",{style:{padding:"0 25px 25px"},children:B(Kt,{variant:"outline",onClick:y,disabled:A,fullWidth:!0,theme:i,styles:a,dark:s,children:["SELECT",m(Xm,{size:20})]})})]})};function hp(e){const t=Wu({enabled:e.enabled,chainId:e.lockChainId,address:e.destinationTokenAddress,decimals:e.destinationTokenDecimals,symbol:e.lockTokenSymbol,logoURI:e.lockTokenLogoURI}),n=t.token,o=re((i,s)=>{if(!t.ready)throw new Error("Lock token metadata is unavailable.");const c={...n,name:n.symbol,isNative:Ae(n.address),balance:0n,balanceFormatted:0,balanceUsd:0},l=typeof e.lockBatches=="function"?e.lockBatches({asset:c,amount:Le(i,c.decimals),amountWei:i,feeAdjusted:!0,beneficiary:s.beneficiary??s.userAddress,executorAddress:s.executorAddress}):e.lockBatches;if(l.some(d=>d.chainId!==e.lockChainId||d.domain==="spicenet"||d.tokenTransfers?.some(u=>u.from!=="escrow"||!G(u.token,n.address))))throw new Error("Lock action definitions must contain destination contract calls; the SDK supplies conversion and delivery.");return l.flatMap(d=>d.calls)},[t.ready,n,e.lockBatches,e.lockChainId]),r=La({enabled:t.ready,destinationToken:t.ready?n:void 0,selectedAsset:e.selectedAsset,amountDirection:"input-inclusive",feeFunding:e.feeFunding,combineSourceBalances:e.combineSourceBalances,recipient:e.beneficiary,buildActionCalls:o,buildSpicenetBatch:e.buildSpicenetBatch,onSubmit:e.onSubmit,onSuccess:e.onLockSuccess,onError:(i,s)=>e.onLockError?.(i.message,s)}),a=re(()=>{t.refresh(),r.quote.refreshQuote()},[t.refresh,r.quote.refreshQuote]);return{...r,quote:{...r.quote,refreshQuote:a},destination:n,metadataError:t.error,canExecute:t.ready&&r.canExecute}}function k0(e){const t=new Date;t.setDate(t.getDate()+Math.floor(e*30));const n=["January","February","March","April","May","June","July","August","September","October","November","December"],o=t.getDate(),r=o===1||o===21||o===31?"st":o===2||o===22?"nd":o===3||o===23?"rd":"th";return`${n[t.getMonth()]} ${o}${r} ${t.getFullYear()}`}const C0=({label:e,value:t,fontFamily:n,dark:o=!1,textPrimary:r="#111827",textSecondary:a="#6b7280"})=>B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[B("svg",{width:"13",height:"13",viewBox:"0 0 14 14",fill:"none",style:{flexShrink:0},children:[m("circle",{cx:"7",cy:"7",r:"6.5",stroke:a,strokeWidth:"1.2"}),m("path",{d:"M7 6v4",stroke:a,strokeWidth:"1.2",strokeLinecap:"round"}),m("circle",{cx:"7",cy:"4.5",r:"0.7",fill:a})]}),m("span",{style:{fontSize:"13px",color:a,fontFamily:n},children:e})]}),m("span",{style:{fontSize:o?"17px":"13px",fontWeight:700,color:r,fontFamily:tt.mono,letterSpacing:"0.3px"},children:t})]}),gp=bo(C0),A0=({options:e,selectedIndex:t,onSelect:n,primaryColor:o,dark:r=!1,textPrimary:a="#111827",textSecondary:i="#6b7280",trackColor:s})=>{const c=e.length-1,l=s||(r?"#3a3a3a":"#d1d5db"),d=r?"4px":"50%",u=r?"none":"2px solid white",p=r?"none":`0 0 0 1px ${o}`;return B("div",{style:{width:"100%",userSelect:"none"},children:[B("div",{style:{position:"relative",paddingBottom:"4px"},children:[m("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:"4px",background:l,borderRadius:"2px",transform:"translateY(-50%)",pointerEvents:"none"}}),m("div",{style:{position:"absolute",top:"50%",left:0,width:`${t/c*100}%`,height:"4px",background:o,borderRadius:"2px",transform:"translateY(-50%)",pointerEvents:"none",transition:"width 0.15s ease"}}),m("input",{type:"range","aria-label":"Lock duration","aria-valuetext":e[t]?.label,"data-spiceflow-focus":!0,min:0,max:c,step:1,value:t,onChange:w=>n(Number(w.target.value)),style:{WebkitAppearance:"none",appearance:"none",width:"100%",height:"20px",background:"transparent",cursor:"pointer",outline:"none",border:"none",position:"relative",zIndex:1,margin:0,padding:0}})]}),m("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"6px"},children:e.map((w,f)=>B("div",{onClick:()=>n(f),style:{display:"flex",flexDirection:"column",alignItems:f===0?"flex-start":f===c?"flex-end":"center",cursor:"pointer",flex:1},children:[m("span",{style:{fontSize:"12px",fontWeight:f===t?700:400,color:f===t?a:i,whiteSpace:"nowrap",transition:"color 0.15s, font-weight 0.15s"},children:w.label}),w.highlight&&m("span",{style:{fontSize:"10px",color:i,whiteSpace:"nowrap"},children:"(most common)"})]},f))}),m("style",{children:`
51
51
  input[type='range']::-webkit-slider-thumb {
52
52
  -webkit-appearance: none;
53
53
  width: 20px;
54
54
  height: 20px;
55
- border-radius: ${u};
55
+ border-radius: ${d};
56
56
  background: ${o};
57
- border: ${d};
57
+ border: ${u};
58
58
  box-shadow: ${p};
59
59
  cursor: pointer;
60
60
  transition: transform 0.15s ease;
@@ -62,13 +62,13 @@ Order: ${e}`}function Zi(e){const t=e.intents[0];if(e.intents.length!==1||t.mode
62
62
  input[type='range']::-moz-range-thumb {
63
63
  width: 20px;
64
64
  height: 20px;
65
- border-radius: ${u};
65
+ border-radius: ${d};
66
66
  background: ${o};
67
- border: ${d};
67
+ border: ${u};
68
68
  box-shadow: ${p};
69
69
  cursor: pointer;
70
70
  }
71
71
  input[type='range']::-webkit-slider-thumb:hover {
72
72
  transform: scale(1.12);
73
73
  }
74
- `})]})},v0=wo(x0),I0=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,lockBatches:o,lockTokenSymbol:r,lockTokenLogoURI:a,destinationInputHook:i,sourceAssetInputHook:s,lockDurationHook:c,lockChainId:l,durationOptions:u,votingPowerEstimate:d,destinationTokenAddress:p,destinationTokenDecimals:w,beneficiary:f,onSubmit:g,onLockSuccess:h,onLockError:b,onLockExecute:x,sourceToDestinationConversionRate:C,onAddFunds:v,buildSpicenetBatch:A,feeFunding:T,combineSourceBalances:I,styles:y,dark:k})=>{const{theme:E,dark:F,primaryColor:U,dk:O}=dn(y,k),M=E.typography.fontFamily,B=F?O.cardBg:y?.assetSelector?.backgroundColor||y?.secondaryBackground||"#e9e9e9",D=F?`1px solid ${O.cardBorder}`:"0.5px solid #A8A8A7",W=F?"12px":"6px",S=F?O.textPrimary:"#111827",q=F?O.textSecondary:"#6b7280",z=Ae(()=>({...y,assetSelector:{...y?.assetSelector,backgroundColor:F?O.cardBg:y?.assetSelector?.backgroundColor,borderRadius:F?"12px":y?.assetSelector?.borderRadius},secondaryBackground:F?O.cardBg:y?.secondaryBackground}),[y,F]),te=Ae(()=>F?{...E,colors:{...E.colors,secondary:O.cardBg,surfaceHover:O.hoverBg,border:O.cardBorder,borderHover:O.inputBorder}}:E,[F,E]),[Y,j]=H(null),K=J(!1);he(()=>{e||(K.current=!1)},[e]);const[X,xe]=H(0),ge=c?.selectedDurationIdx??X,ve=c?.setSelectedDurationIdx??xe,Se=c?.selectedDuration??u[ge]??u[0],ne=dp({enabled:e&&!x,selectedAsset:Y,lockBatches:o,lockChainId:l,lockTokenSymbol:r,lockTokenLogoURI:a,destinationTokenAddress:p,destinationTokenDecimals:w,beneficiary:f,onSubmit:g,onLockSuccess:h,onLockError:b,buildSpicenetBatch:A,feeFunding:T,combineSourceBalances:I}),_=ne.assets.selectable,{isExecuting:ue,step:P,txHash:Le}=ne.status,[Be,L]=H(!1),V=Number(Y?.amount||"0"),oe=ne.quote.isDirect,le=!oe,Z=ne.fees.error,se=ne.fees.isLoading,We=ne.fees.preview,He=V>0,ye={error:ne.quote.quoteError,isQuoting:ne.quote.isQuoting},Oe=x?"Move onLockExecute protocol calls to lockBatches and application updates to onLockSuccess before continuing.":ne.metadataError||ne.status.error||Z||ye.error,Ne=ne.canExecute,Ce=ne.fees.destinationAmount,Ge=Ce===void 0?"0":Me(Ce,ne.destination.decimals),ke=Number(Ge),Qe=ke>0?ke.toLocaleString(void 0,{maximumSignificantDigits:6}):null,pe=_.find(Ve=>Ve.chainId===l&&Ve.address.toLowerCase()===ne.destination.address.toLowerCase()),et=pe&&pe.balanceFormatted>0&&pe.balanceUsd>0?pe.balanceUsd/pe.balanceFormatted:C&&C>0?C:null,Ct=et===null?null:(ke*et).toFixed(2),lt=Y&&Y.asset.balanceFormatted>0&&Y.asset.balanceUsd>0?Y.asset.balanceUsd/Y.asset.balanceFormatted:oe?et:null,st=lt===null?void 0:`$${(V*lt).toFixed(2)}`,$e=d&&ke>0&&Se?d(ke,Se.months):void 0,Re=ae(Ve=>{j(Dt=>({asset:Ve,amount:Dt&&Ie(Dt.asset)===Ie(Ve)?Dt.amount:""})),ne.retrySupply(),s?.setSelectedAsset({address:Ve.address,symbol:Ve.symbol,decimals:Ve.decimals,chainId:Ve.chainId})},[s?.setSelectedAsset,ne.retrySupply]),Fe=ae(Ve=>{j(Dt=>Dt&&{...Dt,amount:Ve}),s?.setAssetAmount(Ve),ne.retrySupply()},[s?.setAssetAmount,ne.retrySupply]);he(()=>{if(ne.capability?.policyExcluded){j(null);return}ue||ne.assets.loading||ne.assets.refreshing||ne.assets.error||j(Ve=>{if(!Ve)return K.current||!_[0]?null:(K.current=!0,{asset:_[0],amount:s?.assetAmount??""});const Dt=_.find(Vt=>Ie(Vt)===Ie(Ve.asset));return Dt?Dt===Ve.asset?Ve:{...Ve,asset:Dt}:Ve.asset.balance===0n?Ve:{...Ve,asset:{...Ve.asset,balance:0n,balanceFormatted:0,balanceUsd:0}}})},[_,ue,ne.assets.loading,ne.assets.refreshing,ne.assets.error,ne.capability?.policyExcluded]),he(()=>{i&&(i.setSelectedAsset(ne.destination),i.setAssetAmount(Ge))},[ne.destination,Ge,i?.setSelectedAsset,i?.setAssetAmount]);const bt=async()=>{L(!0),await ne.submitSupply()},it=()=>{L(!1),ne.retrySupply()},ie=()=>{L(!1),j(null),ne.resetAfterSuccess()},xt=R("div",{style:{display:"flex",alignItems:"flex-start",gap:"6px"},children:[m(gc,{color:q}),R("p",{style:{fontSize:"13px",color:q,margin:0,lineHeight:"1.5"},children:["Add ",r," by converting assets from your account"]})]});if(!e)return null;const vt={backgroundColor:B,border:D,borderRadius:W,padding:"16px",marginBottom:"16px"};return m(Io,{isOpen:e,onClose:t,title:`Add ${r} to your account`,subtitle:xt,styles:y,dark:F,footerLinkText:"Spicenet accounts \u2192",closeOnBackdropClick:n,children:R("div",{style:{padding:"0 24px 8px 24px",position:"relative"},children:[m(Os,{activity:ne.status.activity,palette:O,onRefresh:()=>{ne.assets.refreshSpiceAssets(),ne.assets.refreshWalletAssets()}}),R("div",{style:{marginBottom:"12px"},children:[v&&m("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"6px"},children:m(Fc,{onClick:v,color:U,fontFamily:M})}),m("div",{style:{marginTop:"10px",fontSize:"13px",color:q,fontFamily:M},children:m(oa,{assets:_,selectedAsset:Y??void 0,onAssetSelect:Re,onAmountChange:Fe,label:"Amount",showBalance:!0,getAvailableBalance:ne.assets.getAvailableBalance,showMaxButton:!0,disabled:ue||ne.status.finalizing,maxAmount:Y&&ne.amount.availableBalance!==void 0?Me(ne.amount.availableBalance,Y.asset.decimals):void 0,resolveMaxAmount:ne.resolveMaxAmount,theme:te,styles:z})}),m("div",{style:{marginTop:"6px",paddingLeft:"4px",fontSize:"13px",color:q,fontFamily:M},children:st})]}),R("div",{style:vt,children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:"16px",borderBottom:F?`1px solid ${O.cardBorder}`:"1px solid #e5e7eb"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[a?m("img",{src:a,alt:r,style:{width:"32px",height:"32px",borderRadius:"50%",objectFit:"cover"}}):m("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:F?O.inputBg:"#d1d5db",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",fontWeight:700,color:S},children:r.slice(0,2)}),m("span",{style:{fontSize:"16px",fontWeight:600,color:S,fontFamily:M},children:r})]}),R("div",{style:{textAlign:"right"},children:[m("div",{style:{fontSize:"22px",fontWeight:700,color:S,fontFamily:M,lineHeight:1.1},children:Qe??"0.00"}),(!le||Ct!==null)&&R("div",{style:{fontSize:"12px",color:q,fontFamily:M,marginTop:"2px"},children:["~$",Ct??"0.00"]})]})]}),R("div",{style:{paddingTop:"16px",paddingBottom:"16px",borderBottom:F?`1px solid ${O.cardBorder}`:"1px solid #e5e7eb"},children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px"},children:[m("span",{style:{fontSize:"15px",fontWeight:500,color:q,fontFamily:M},children:"Lock Duration"}),m(Xr,{color:q})]}),m(v0,{options:u,selectedIndex:ge,onSelect:Ve=>{!ue&&!ne.status.finalizing&&ve(Ve)},primaryColor:U,dark:F,textPrimary:S,textSecondary:q})]}),R("div",{style:{paddingTop:"12px",display:"flex",flexDirection:"column",gap:"8px"},children:[m(up,{label:"Estimated Lock Expiry",value:Se?.months!==void 0?y0(Se.months):"\u2014",fontFamily:M,dark:F,textPrimary:S,textSecondary:q}),d&&m(up,{label:"Estimated voting power",value:$e!==void 0?`${$e} votes/epoch`:"\u2014",fontFamily:M,dark:F,textPrimary:S,textSecondary:q})]})]}),He&&m(Cc,{fontFamily:M,textPrimary:S,textSecondary:q,cardBg:B,cardBorder:D,resolvedDark:F,darkCardBorder:O.cardBorder,primaryColor:U,feePreview:We,asset:Y?.asset,directExecutionFeeNote:ne.flags.directExecutionFeeNote,isLoading:se||ye.isQuoting,errorText:Z}),ne.status.finalizationError&&m(Yt,{onClick:ne.retryFinalization,disabled:ne.status.finalizing,children:"Retry application update"}),Oe&&m(Gn,{variant:"error",palette:O,fontFamily:M,style:{marginBottom:"12px"},children:Oe}),m(Yt,{variant:"outline",fullWidth:!0,onClick:()=>{ye.error?ne.retrySupply():bt()},disabled:ue||!Ne&&!ye.error,loading:ue,dark:F,styles:{...y,button:{...y?.button,backgroundColor:U}},children:ue?oe?"LOCKING...":"CONVERTING...":ye.error?"RETRY QUOTE":ye.isQuoting?"GETTING SWAP QUOTE...":se&&He?"CALCULATING FEES...":oe?`LOCK ${r}`:`CONVERT TO ${r}`}),Be&&!ne.status.finalizationError&&(P==="success"||P==="error"||ue)&&m(Qi,{type:"lock",isOpen:!ue,isProcessing:ue,closeOnComplete:!1,chainId:l,showStepBreakdown:!1,onRetryTx:it,onNewTx:ie,onClose:()=>L(!1),onComplete:ie,results:P==="success"||P==="error"?[{asset:{symbol:r,address:ne.destination.address},txHash:Le??"",success:P==="success",error:Oe??void 0,amount:Y?.amount}]:void 0,theme:E,styles:y,dark:F})]})})},k0=({variant:e,destinationSymbol:t,destinationLogoURI:n,destinationDecimals:o,primaryColor:r,fontFamily:a,textPrimary:i,textSecondary:s,cardBg:c,cardBorder:l,dk:u,dark:d,isQuoting:p,quoteError:w,estimatedOutput:f,paymentAmount:g,needsSwap:h,exactOutputSwap:b,adjustable:x=!1,maxAmount:C,onAmountChange:v})=>e==="supply"?R("div",{style:{backgroundColor:c,border:`1px solid ${l}`,borderRadius:d?"8px":"7px",padding:"14px 16px 12px 16px",marginBottom:"16px",minHeight:"112px",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[R("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"12px"},children:[R("div",{style:{minWidth:0},children:[m("span",{style:{fontFamily:a,fontSize:"17px",fontWeight:500,color:d?"#a7abb2":"#7D7C7B",lineHeight:"24px"},children:"Used in TX"}),m("div",{style:{fontSize:"12px",fontWeight:500,color:s,fontFamily:a,marginTop:"10px"},children:"Net amount after swap and fees"})]}),R("div",{style:{textAlign:"right",minWidth:0,display:"inline-flex",alignItems:"center",gap:"8px",border:`1px solid ${l}`,borderRadius:"8px",padding:"8px 10px",minHeight:"42px"},children:[m(fp,{symbol:t,logoURI:n,primaryColor:r,size:24}),m("span",{style:{fontSize:"16px",fontWeight:500,color:d?"#f3f4f6":"#3C3E42",lineHeight:"1.3",fontFamily:a,letterSpacing:0},children:t})]})]}),m("div",{style:{textAlign:"right",minWidth:0},children:p?m("span",{style:{fontSize:"18px",color:s,fontFamily:a},children:"Quoting..."}):w?m("span",{style:{fontSize:"13px",color:d?"#f87171":"#dc2626",fontFamily:a},children:"Quote failed"}):f?m(Dr,{value:f,title:f,fontFamily:a,color:i,lineHeight:"0.95",textAlign:"right",maxFontSize:32,minFontSize:18}):m("span",{style:{fontSize:"20px",color:s,fontFamily:a},children:"\u2014"})})]}):m(C0,{destinationSymbol:t,destinationLogoURI:n,destinationDecimals:o,primaryColor:r,fontFamily:a,textPrimary:i,textSecondary:s,cardBg:c,cardBorder:l,dk:u,dark:d,paymentAmount:g||"0",needsSwap:h,exactOutputSwap:b,isQuoting:p,adjustable:x,maxAmount:C,onAmountChange:v}),pp=wo(k0),fp=({symbol:e,logoURI:t,primaryColor:n,size:o})=>t?m("img",{src:t,alt:e,style:{width:o,height:o,borderRadius:"50%",objectFit:"cover"}}):m("div",{style:{width:o,height:o,borderRadius:"50%",backgroundColor:`${n}22`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:o<30?"11px":"12px",fontWeight:700,color:n},children:e.slice(0,2)}),C0=({destinationSymbol:e,destinationLogoURI:t,destinationDecimals:n,primaryColor:o,fontFamily:r,textPrimary:a,textSecondary:i,cardBg:s,cardBorder:c,dk:l,dark:u,paymentAmount:d,needsSwap:p,exactOutputSwap:w,isQuoting:f,adjustable:g,maxAmount:h,onAmountChange:b})=>{const x=nt.mono,C=parseFloat(d||"0"),v=h?parseFloat(h):0,[A,T]=H(d||""),I=J(null),[y,k]=H(null),[E,F]=H(null);he(()=>{g||T(d||"")},[d,g]);const U=B=>{let D=B;D.startsWith(".")&&(D="0"+D);const W=is(D);let S=W;h&&parseFloat(W)>parseFloat(h)&&(S=h),T(S),I.current&&clearTimeout(I.current),I.current=setTimeout(()=>b?.(S),300)},O=B=>{if(!v)return;if(B===100){T(h||v.toString()),I.current&&clearTimeout(I.current),b?.(h||v.toString());return}const D=10**n,W=Math.floor(v*B/100*D)/D,S=$p(W,n);T(S),I.current&&clearTimeout(I.current),b?.(S)},M=v>0?parseFloat(A||"0")/v*100:0;return he(()=>()=>{I.current&&clearTimeout(I.current)},[]),R("div",{style:{backgroundColor:s,border:`1px solid ${c}`,borderRadius:u?"12px":"6px",padding:"16px",marginBottom:"16px"},children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[m(fp,{symbol:e,logoURI:t,primaryColor:o,size:32}),R("div",{children:[m("span",{style:{fontSize:"14px",fontWeight:600,color:a,fontFamily:r},children:"Payment"}),m("div",{style:{fontSize:"12px",color:i,fontFamily:r,marginTop:"2px"},children:e})]})]}),R("div",{style:{textAlign:"right"},children:[g?m(Dr,{element:"input",ariaLabel:`${e} amount`,dataSpiceflowFocus:!0,value:A,onChange:B=>U(B.target.value),placeholder:"0.0",fontFamily:x,color:a,lineHeight:1.1,textAlign:"right",maxFontSize:20,minFontSize:12,style:{width:"120px"}}):m(Dr,{element:"div",value:C>0?d:"0.00",title:C>0?d:"0.00",fontFamily:x,color:a,lineHeight:1.1,textAlign:"right",maxFontSize:20,minFontSize:12}),m("div",{style:{fontSize:"12px",color:i,fontFamily:x,marginTop:"2px"},children:e}),g&&v>0&&m("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"10px",marginTop:"6px"},children:[0,25,50,75,100].map((B,D)=>{const W=Math.abs(M-B)<1,S=D===4,q=y===B,z=E===B;return m("button",{onClick:()=>O(B),onMouseEnter:()=>k(B),onMouseLeave:()=>{k(null),F(null)},onMouseDown:()=>F(B),onMouseUp:()=>F(null),title:`${B}%`,style:{width:"14px",height:"14px",padding:0,border:"none",backgroundColor:"transparent",cursor:"pointer",opacity:W?1:q?.8:.5,transform:z?"scale(0.85)":q?"scale(1.15)":"scale(1)",transition:ho.interactive},children:m(fc,{pct:B,isMax:S,primaryColor:o,dark:u,fillColor:u?l?.textSecondary||"#9ca3af":"#3C3E42"})},B)})})]})]}),p&&w&&!f&&m("div",{style:{marginTop:"12px",paddingTop:"12px",borderTop:u?`1px solid ${l?.cardBorder||c}`:"1px solid #e5e7eb",display:"flex",justifyContent:"flex-end"},children:R("span",{style:{fontSize:"11px",color:i,fontFamily:r,opacity:.7},children:["via ",w.venue]})})]})},mp={idle:"",building:"Preparing transaction...","signing-delegation":"Signing delegation...","signing-intent":"Signing intent...",submitting:"Submitting transaction...",executing:"Executing on-chain...",success:"Deposit confirmed",error:"Transaction failed"},hp=["building","signing-delegation","signing-intent","submitting","executing"],A0=({step:e,statusMsg:t,txHash:n,explorerUrl:o,currentStepIdx:r,palette:a,cardBg:i,cardBorder:s,textPrimary:c,textSecondary:l,fontFamily:u,primaryColor:d,onRetry:p})=>R("div",{style:{padding:"10px 14px",borderRadius:"7px",marginBottom:"16px",backgroundColor:e==="success"?i:e==="error"?a.errorBg:i,border:`1px solid ${e==="success"?s:e==="error"?a.errorBorder:s}`},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[e==="success"?m("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",style:{flexShrink:0},children:m("path",{d:"M5 13l4 4L19 7",stroke:a.successText,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})}):e==="error"?m("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",style:{flexShrink:0},children:m("path",{d:"M18 6L6 18M6 6l12 12",stroke:a.errorText,strokeWidth:"2.5",strokeLinecap:"round"})}):m(Ko,{size:14,color:d}),m("span",{style:{fontSize:"13px",fontWeight:500,color:e==="success"?c:e==="error"?a.errorText:c,fontFamily:u,flex:1},children:e==="success"?"Deposit confirmed":e==="error"?t||"Transaction failed":t||mp[e]}),e==="success"&&n&&m("a",{href:`${o}/tx/${n}`,target:"_blank",rel:"noopener noreferrer",style:{fontSize:"12px",color:d,fontFamily:u,textDecoration:"none",whiteSpace:"nowrap",flexShrink:0},children:"View tx \u2192"}),e==="error"&&m("button",{onClick:p,style:{background:"none",border:"none",fontSize:"12px",color:d,fontFamily:u,cursor:"pointer",padding:0,whiteSpace:"nowrap",flexShrink:0},children:"Retry \u2192"})]}),r>=0&&e!=="success"&&e!=="error"&&m("div",{style:{marginTop:"8px",height:"3px",borderRadius:"2px",backgroundColor:`${l}22`,overflow:"hidden"},children:m("div",{style:{height:"100%",width:"100%",borderRadius:"2px",backgroundColor:d,transformOrigin:"left center",transform:`scaleX(${(r+1)/hp.length})`,transition:"transform 400ms ease"}})})]}),S0=()=>{},E0=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,destinationToken:o,sourceChains:r,supportedSourceAssets:a,additionalSourceTokens:i,includeExternalWalletAssets:s,includeCrossChainEmbeddedAssets:c,combineSourceBalances:l,fundingSources:u,recipient:d,feeOnlyAction:p,actionInput:w,actionProceeds:f,feeFunding:g,feeFundingReserve:h,maxSlippage:b,resolveInputSwap:x,buildActionCalls:C,feeExecutionMode:v="user-transfer",buildSpicenetBatch:A,onPayExecute:T,resolveExactOutputSwap:I,actionLabel:y,amountDirection:k=p?"output":u?"input-inclusive":"input",swapDescription:E,directDescription:F,paymentAmount:U,amountInputMode:O="fixed",maxPaymentAmount:M,onAmountChange:B,styles:D,dark:W,title:S,subtitle:q,onAddFunds:z,onSubmit:te,beforeSubmit:Y,submitDisabled:j,onStateChange:K,onSuccess:X,onError:xe})=>{const ge=k==="output",ve=No(),Se=k==="input-inclusive",{theme:ne,dark:_,primaryColor:ue,dk:P,palette:Le,fontFamily:Be,monoFont:L,inputDark:V,cardBg:oe,cardBorder:le,textPrimary:Z,textSecondary:se,subtitleText:We}=dn(D,W),He=Ae(()=>V?{...ne,colors:{...ne.colors,secondary:P.cardBg,surfaceHover:P.hoverBg,border:"#2d2d2d",borderHover:"#3a3a3a"}}:ne,[V,ne,P.cardBg,P.hoverBg]),ye=qs(o,e),Oe=ye.token??zs,Ne=Ae(()=>Oe.logoURI?Oe:{...Oe,logoURI:Fi[Oe.symbol.toUpperCase()]},[Oe]),Ce=Ne.chainId,Ge=qs(u?.token,e&&!!u).token,[ke,Qe]=H(null),[pe,et]=H(U||""),Ct=O==="adjustable"?pe:U||"0",lt=U?.trim(),st=ge&&O==="fixed"&&lt!==void 0&&lt!==""&&parseFloat(Ct||"0")===0,{operationKey:$e,feeQuote:Re,selectedAsset:Fe,capability:bt,retryFinalization:it,refreshStatus:ie,assets:{selectable:xt,loading:vt,refreshing:Ve,error:Dt,getAvailableBalance:Vt},quote:{isQuoting:yn,quoteError:Wt,estimatedOutput:Dn,exactOutputSwap:ht,isDirect:Ye,needsSwap:gt,pivot:mt},fees:{preview:Ft,isLoading:ee,error:At},amount:{sourceRequiredAmount:Pe,parsed:Ze,isInsufficientBalance:ct,availableBalance:wt},status:{activity:Je,pending:Lt,recoveryChecking:St,recoveryError:_t,actionId:It,intentId:$n,autoContinue:Mn,submissionStatus:Kn,idempotencyKey:Oo,user:Ln,finalizationError:qn,finalizing:bn,step:zt,statusMsg:en,txHash:tn,isExecuting:ln,error:Qt,showStatusPanel:tt,paymentResult:Ut},flags:{directExecutionFeeNote:_n},canExecute:In,submitSupply:Sn,retrySupply:En,dismissPaymentStatus:Vn,submitPay:mn,resolveMaxAmount:eo,max:_e,resetAfterSuccess:Nn,resetPaymentState:kn}=Wa({enabled:e,destinationToken:ye.token&&Ne,selectedAsset:u?null:ke,paymentAmount:Ct,amountDirection:k,sourceChains:r,supportedSourceAssets:a,additionalSourceTokens:i,includeExternalWalletAssets:s,includeCrossChainEmbeddedAssets:c,combineSourceBalances:l,fundingSources:u,recipient:d,feeOnlyAction:p,actionInput:w,actionProceeds:f,feeFunding:g,feeFundingReserve:h,maxSlippage:b,resolveInputSwap:x,buildActionCalls:C,feeExecutionMode:v,buildSpicenetBatch:A,onPayExecute:T,resolveExactOutputSwap:I,isZeroAmountPay:st,onSubmit:te,beforeSubmit:Y,submitDisabled:j,onSuccess:X,onError:xe}),Bo=Ae(()=>({operationKey:$e,feeQuote:Re,selectedAsset:Fe,canExecute:In&&!j,isExecuting:ln,finalizing:bn,finalizationError:qn,feePreview:Ft,txHash:tn,error:Qt,statusStep:zt,statusMsg:en,pending:Lt,recoveryChecking:St,recoveryError:_t,actionId:It,intentId:$n,autoContinue:Mn,submissionStatus:Kn,idempotencyKey:Oo,user:Ln,refreshStatus:ie}),[$e,Re,Fe,In,j,ln,bn,qn,Ft,tn,Qt,zt,en,Lt,St,_t,It,$n,Mn,Kn,Oo,Ln,ie]),uo=Eo.useRef(K);uo.current=K,he(()=>{uo.current?.(Bo)},[Bo]);const Qn=!!p||(!!u||!!ke?.asset)&&Ze>0,Ro=ye.error||Qt,ko=qn?m(Yt,{onClick:it,disabled:bn,children:"Retry application update"}):null,me=Lt||St||_t?R(Gn,{variant:"info",palette:Le,fontFamily:Be,children:[St?"Checking transaction status...":_t?"Transaction status is unavailable.":"Your transaction is pending.",m(Yt,{onClick:()=>{ie()},disabled:St,children:"Check status"})]}):null;he(()=>{e||(Qe(null),O==="adjustable"&&et(U||""))},[e]),he(()=>{if(bt?.policyExcluded){Qe(null);return}if(ln||vt||Ve||Dt||!ke)return;const dt=xt.find(pn=>Ie(pn)===Ie(ke.asset));dt&&dt!==ke.asset?Qe({...ke,asset:dt}):!dt&&ke.asset.balance>0n&&Qe({...ke,asset:{...ke.asset,balance:0n,balanceFormatted:0,balanceUsd:0}})},[xt,vt,Ve,Dt,ln,bt?.policyExcluded]);const ce=ae(dt=>{Qe(pn=>({asset:dt,amount:pn?.asset&&Ie(pn.asset)===Ie(dt)&&pn.amount||""}))},[]),ot=ae(dt=>{Qe(pn=>pn&&{...pn,amount:dt})},[]),Et=ae(dt=>{let pn=dt;M&&parseFloat(pn)>parseFloat(M)&&(pn=M),et(pn),B?.(pn)},[M,B]),De=ae(()=>{kn(),Qe(null)},[kn]),Jt=Ye?F||`Your ${Ne.symbol} will be used directly.`:E||"Your assets will be swapped and used in a single atomic transaction.",Mt=(Ce?kt(Ce):void 0)?.viemChain?.blockExplorers?.default?.url??"",un=hp.indexOf(zt),xn=St?"CHECKING STATUS...":Lt?"TRANSACTION PENDING":ln?(mp[zt]||"EXECUTING...").toUpperCase():zt==="success"?"DONE":ct?"INSUFFICIENT BALANCE":(gt||mt)&&Wt&&!yn?"QUOTE ERROR":y.toUpperCase(),rn=Ae(()=>{if(St)return"CHECKING STATUS...";if(Lt)return"TRANSACTION PENDING";if(Ut?.status==="success")return"DONE";if(ln)return"PAYING...";if(ct&&ke?.asset)return`INSUFFICIENT ${ve(ke.asset).symbol}`;if((gt||mt)&&Wt&&!yn)return"QUOTE ERROR";if(y)return y.toUpperCase();const dt=Ze>0?` ${Ct} ${Ne.symbol}`:"";return gt?`SWAP & PAY${dt}`:`PAY${dt}`},[ln,ct,ke,y,ve,Ze,Ct,Ne.symbol,gt,Wt,yn,Ut?.status,Lt,St]),nn=zt==="success"?()=>{Nn(),Qe(null)}:Sn,Ht=zt==="success"?!1:!!j||!In;if(!e)return null;const Pn=ge?S||`Pay ${Ne.symbol}`:y,$t=ge?q:R("div",{style:{display:"flex",alignItems:"flex-start",gap:"3px"},children:[m("span",{style:{marginTop:"3px",flexShrink:0},children:m(gc,{color:We})}),m("p",{style:{fontSize:"12px",color:We,margin:0,lineHeight:"1.4",fontFamily:Be},children:Jt})]}),to={...D,button:{...D?.button,backgroundColor:ue}},Fn=Qn&&m(Cc,{fontFamily:Be,textPrimary:Z,textSecondary:se,cardBg:oe,cardBorder:le,resolvedDark:_,darkCardBorder:P.cardBorder,primaryColor:ue,feePreview:Ft,feeOnlyAction:p,asset:ke?.asset,isLoading:ee,errorText:At,directExecutionFeeNote:_n});if(ge){const dt=Ut&&(Ut.status==="success"||Ut.status==="failed")?[{asset:{symbol:ke?.asset?ve(ke.asset).symbol:Ne.symbol,address:ke?.asset?.address||""},amount:Ct,txHash:Ut.txHash||"",success:Ut.status==="success",error:Ut.status==="failed"?Ut.error:void 0}]:void 0;return m(Io,{isOpen:e,onClose:t,title:Pn,subtitle:$t,styles:D,dark:_,footerLinkText:"Spicenet accounts \u2192",closeOnBackdropClick:n,children:R("div",{style:{padding:"16px 24px 8px 24px",position:"relative"},children:[m(Os,{activity:Je,palette:P}),z&&m("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"6px"},children:m(Fc,{onClick:z,color:ue,fontFamily:Be})}),!st&&m("div",{style:{marginBottom:"12px"},children:m(oa,{assets:xt,selectedAsset:ke??void 0,disabled:ln,onAssetSelect:ce,onAmountChange:S0,label:"Pay with",showBalance:!0,getAvailableBalance:Vt,showMaxButton:!1,hideAmountInput:!0,displayAmount:ke&&Pe!==null?Me(Pe,ke.asset.decimals):ke?"...":void 0,dark:_,theme:He,styles:D})}),!p&&m(pp,{variant:"pay",destinationSymbol:Ne.symbol,destinationLogoURI:Ne.logoURI,destinationDecimals:Ne.decimals,primaryColor:ue,fontFamily:Be,textPrimary:Z,textSecondary:se,cardBg:oe,cardBorder:le,dk:P,dark:_,isQuoting:yn,quoteError:Wt,estimatedOutput:Dn,paymentAmount:Ct,needsSwap:gt,exactOutputSwap:ht,adjustable:O==="adjustable",maxAmount:M,onAmountChange:Et}),Fn,ko,me,Ro&&m(Gn,{variant:"error",palette:Le,fontFamily:Be,style:{marginBottom:"12px"},children:Ro}),m(Yt,{variant:"outline",fullWidth:!0,onClick:Ut?.status==="success"?t:mn,disabled:Ut?.status==="success"?!1:!!j||!In,loading:ln,dark:_,styles:to,children:rn}),Ut&&tt&&!qn&&m("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:10,backgroundColor:_?P.shell:"white",borderRadius:_?"12px":"6px",padding:"16px 0"},children:m(Qi,{type:"payment",isOpen:Ut.status!=="processing",isProcessing:ln||Ut.status==="processing",closeOnComplete:!1,chainId:Ce,onRetryTx:()=>{Vn(),mn()},onNewTx:De,onClose:()=>{Vn()},onComplete:De,results:dt,styles:D,dark:_})})]})})}return m(Io,{isOpen:e,onClose:t,title:Pn,subtitle:$t,dark:_,styles:D,theme:ne,closeOnBackdropClick:n,children:R("div",{style:{padding:"24px 24px 5px 24px",position:"relative"},children:[m(Os,{activity:Je,palette:P}),u?R("div",{style:{marginBottom:"16px",padding:"16px",backgroundColor:oe,border:`1px solid ${le}`,borderRadius:"8px",color:Z,fontFamily:Be},children:[R("label",{style:{display:"block",marginBottom:"8px"},children:["Purchase amount (",Ge?.symbol??"...",")",m("input",{"aria-label":"Purchase amount",inputMode:"decimal",value:Ct,disabled:ln||O!=="adjustable"||zt==="success",onChange:dt=>Et(dt.target.value),style:{display:"block",width:"100%",boxSizing:"border-box",padding:"10px",marginTop:"8px",fontSize:"24px",color:Z,background:"transparent",border:`1px solid ${le}`,borderRadius:"6px"}})]}),Ge&&wt!==void 0&&R("div",{style:{fontSize:"12px",color:se},children:["Estimated available:"," ",Me(wt,Ge.decimals)," ",Ge.symbol]}),O==="adjustable"&&m(Yt,{disabled:ln||zt==="success",onClick:()=>{_e().then(dt=>{dt!==null&&Et(dt)})},children:"Max"}),Re?.fundingPlan?.sources.map(dt=>R("div",{style:{marginTop:"10px",fontSize:"12px",color:se},children:["Up to ",Me(dt.sourceSpendCap,dt.decimals)," ",dt.asset.symbol,dt.swap&&R(vn,{children:[" ","\u2192 at least"," ",Me(dt.amountOutMinimum,dt.pivotToken.decimals)," ",dt.pivotToken.symbol]}),dt.gasFeeAmount>0n&&R(vn,{children:[" ","(funding fee"," ",Me(dt.gasFeeAmount,dt.pivotToken.decimals)," ",dt.pivotToken.symbol,")"]})]},dt.positionId))]}):m("div",{style:{marginBottom:"16px"},children:m(oa,{assets:xt,selectedAsset:ke||void 0,onAssetSelect:ce,onAmountChange:ot,disabled:ln||zt==="success",showBalance:!0,getAvailableBalance:Vt,showMaxButton:!0,label:l?"From":"From Wallet",placeholder:"0.00",theme:He,styles:D,dark:V,resolveMaxAmount:Se?void 0:eo,maxAmount:ke?.asset&&wt!==void 0?Me(wt,ke.asset.decimals):void 0})}),(u||ke?.asset)&&(u||!Ye||!!mt)&&!(Se&&mt)&&m(pp,{variant:"supply",destinationSymbol:Ne.symbol,destinationLogoURI:Ne.logoURI,destinationDecimals:Ne.decimals,primaryColor:ue,fontFamily:Be,textPrimary:Z,textSecondary:se,cardBg:oe,cardBorder:le,dark:_,isQuoting:yn,quoteError:Wt,estimatedOutput:Dn}),Fn,zt!=="idle"&&m(A0,{step:zt,statusMsg:en,txHash:tn,explorerUrl:Mt,currentStepIdx:un,palette:Le,cardBg:oe,cardBorder:le,textPrimary:Z,textSecondary:se,fontFamily:Be,primaryColor:ue,onRetry:()=>{En()}}),ko,me,Qt&&(zt==="idle"||!!qn)&&m(Gn,{variant:"error",palette:Le,fontFamily:Be,style:{marginBottom:"16px"},children:Qt}),m(Yt,{variant:"outline",fullWidth:!0,disabled:Ht,onClick:nn,theme:ne,dark:_,styles:to,style:{fontSize:"20px",fontWeight:600,letterSpacing:"1.5px",fontFamily:L},children:xn})]})})},F0=()=>{const[e,t]=H("0"),[n,o]=H(null);return{assetAmount:e,setAssetAmount:t,selectedAsset:n,setSelectedAsset:o}};async function T0(e,t,n,o){if(e.amountIn<=0n||e.minimumOutput<0n||!(e.venue.chainIds??[8453]).includes(e.chainId))throw new Error("Choose a positive fixed input, nonnegative minimum output and supported venue chain");const r=cr(e.chainId).find(v=>v.equivalenceGroup==="USDC");if(!r)throw new Error("Configure the execution fee token for this chain");const a={...r,address:r.address,chainId:e.chainId},i=ba({...e.venue,deadline:e.expiresAt}),s=await i.resolve({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:e.amountIn},e.chainId,t);if(!s)throw new Error("No supported fixed route for this conditional swap");let c=e.amountIn,l="";const u=async v=>{if(v<=0n)throw new pr(e.amountIn+1n,e.amountIn);const A=(v===e.amountIn?s:await i.resolve({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:v},e.chainId,t))?.calls.find(y=>y.to.toLowerCase()===e.venue.swapRouter.toLowerCase());if(!A)throw new Error("No supported fixed route for this conditional swap");const{path:T}=Zn({abi:Br,data:A.data}).args[0];if(T.slice(0,42).toLowerCase()!==e.tokenIn.toLowerCase()||`0x${T.slice(-40)}`.toLowerCase()!==e.tokenOut.toLowerCase())throw new Error("The quoted route does not match the requested tokens");c=v;const I=[{to:e.tokenIn,value:0n,data:Bt({abi:ut,functionName:"approve",args:[e.venue.swapRouter,v]})},{to:e.venue.swapRouter,value:0n,data:Bt({abi:Br,functionName:"exactInput",args:[{path:T,recipient:t,deadline:e.expiresAt,amountIn:v,amountOutMinimum:0n}]})}];return l=I[1].data,I},d=n.filter(v=>!v.balanceError&&v.balanceStatus!=="stale"&&v.owner?.toLowerCase()===t.toLowerCase()&&v.location!=="external"),p=d.find(v=>v._source==="wallet"&&v.chainId===e.chainId&&v.address.toLowerCase()===e.tokenIn.toLowerCase()),w=p&&Ra(p,d,t,e.chainId),f={requestTimestampMs:Date.now(),currentPaymentAmount:"0",feeOnlyAction:!0,isPayMode:!0,destinationToken:a,embeddedWalletAddress:t,providerEmbeddedAddress:t,externalWalletAddress:void 0,address:t,isNon7702:!1,resolvedChainId:e.chainId,feeExecutionMode:"backend-transfer",buildSpicenetBatch:void 0,selectedAsset:null,needsSwap:!1,resolvedSwap:null,exactOutputSwap:null,quoteAmountOut:null,resolvedTokenIn:a.address,buildActionCalls:v=>u(v)},g={allowRelayerFeeFallback:!1,...f,expiresAt:Number(e.expiresAt),parsedAmount:0,isSourceDestToken:!0,isConnected:!0,ready:!0,authenticated:!0,isDirect:!0,isQuoting:!1,executionTokenAddress:a.address,actionInput:e.amountMode==="input-inclusive"?[{token:e.tokenIn,amount:e.amountIn}]:void 0,actionProceeds:{token:e.tokenOut,resolve:async()=>s.amountOut},feeFundingBalances:d,feeFundingReserve:p?{asset:p,amount:e.amountIn}:void 0,liquidityVenues:{includeDefaults:!1,venues:[{...e.venue,deadline:e.expiresAt,protocol:"aerodrome-slipstream",chainId:e.chainId}]},buildPayChainBatches:v=>na(f,{...v,actionAmountOverride:v?.actionAmountOverride??e.amountIn}),buildSupplyChainBatches:v=>na(f,{...v,actionAmountOverride:v?.actionAmountOverride??e.amountIn}),estimate:o},h=w?await du({...g,feeOnlyAction:!1,isPayMode:!1,isFeeInclusiveInput:e.amountMode==="input-inclusive",selectedAsset:{asset:p,amount:Me(e.amountIn,p.decimals)},combinedSourceGroup:w},f,Ho):await nc(g,Ho),b=h?.fundingBatches??h?.batches;if(!h||!b?.length||h.preview.totalFee===void 0)throw new Error("Conditional swap fee plan is unavailable");const x=b.flatMap(v=>v.calls).find(v=>v.to.toLowerCase()===e.venue.swapRouter.toLowerCase()&&v.data===l);if(!x)throw new Error("The conditional swap is missing from its fee plan");const C=Zn({abi:Br,data:x.data}).args[0];return x.data=Bt({abi:Br,functionName:"exactInput",args:[{...C,amountOutMinimum:e.minimumOutput}]}),{batches:b,sourceAllocation:h.sourceAllocation,swapAmountIn:c,feeFundingSource:h.fundingSource,feeSourceAmount:h.fundingConversion?.amountInMax??h.proceedsUsed??h.sourceSpendCap,fees:{token:a.address,symbol:a.symbol,decimals:a.decimals,amount:h.preview.totalFee}}}const gp=`0x${"00".repeat(32)}`;function Tc(){return BigInt(`0x${Array.from(crypto.getRandomValues(new Uint8Array(32)),e=>e.toString(16).padStart(2,"0")).join("")}`)}function O0(e,t){const n={chainId:e,to:t.to,value:t.value,selector:t.data.length>=10?t.data.slice(0,10):"0x"};try{const o=Zn({abi:Br,data:t.data});if(o.functionName==="exactInput"){const r=o.args[0];n.fixedInput=r.amountIn,n.minimumOutput=r.amountOutMinimum,r.amountOutMinimum===0n&&(n.disclosure="This fixed-input swap has zero minimum output. The router can execute it for any output amount, including a very poor fill.")}}catch{}return n}function wp(){const e=Mo(),t=fn(cn),n=Or({owner:e.address,role:"spend-source",enabled:e.isReady}),o=Yr(),r=J({wallet:e,provider:t,inventory:n,execution:o});r.current={wallet:e,provider:t,inventory:n,execution:o};const a=J(!0),i=J(0),s=JSON.stringify([e.address,qe.getBaseUrl(),t?.rpcOverrides,t?.provider,t?.network,t?.mode]),c=J(s);c.current!==s&&(c.current=s,i.current++);const l=J(!1),u=J(new WeakMap),d=J(new WeakMap),p=J();he(()=>(a.current=!0,()=>{a.current=!1,i.current++}),[]);const w=ae(()=>JSON.stringify([i.current,r.current.wallet.address,qe.getBaseUrl(),r.current.provider?.rpcOverrides,r.current.provider?.provider,r.current.provider?.network,r.current.provider?.mode]),[]),f=I=>{if(!a.current||w()!==I)throw new Error("Wallet, provider or relayer changed during conditional intent processing")},g=ae(async I=>{const y=r.current.wallet.address;if(!y||!r.current.wallet.isReady)throw new Error("Connect a ready wallet before preparing a conditional intent");if(r.current.provider?.mode!=="7702")throw new Error("Conditional intents require a fully pre-signed 7702 action");if(!I.clientId||!I.serviceId||!I.triggerSpecification||!I.chainBatches.length)throw new Error("Conditional intent requires a client, service, exact trigger bytes and fixed action batches");if(I.semantics!=="state"&&I.semantics!=="event")throw new Error("Choose state or event trigger semantics");const k=BigInt(Math.floor(Date.now()/1e3));if(I.maxSignalAgeSeconds<1n||I.maxSignalAgeSeconds>86400n||I.validAfter>I.expiresAt||I.expiresAt<=k||I.expiresAt!==ll&&I.expiresAt-k>30n*86400n)throw new Error("Conditional intent validity or signal freshness is outside the supported window");const E=w(),F=structuredClone(I.chainBatches).map(D=>({...D,tokenTransfers:D.tokenTransfers??[]}));if(F.some(D=>!Number.isSafeInteger(D.chainId)||D.chainId<=0||!D.calls.length))throw new Error("Every action batch needs a supported chain and at least one fixed call");const U={...I.replacesIntentId?{replacesIntentId:I.replacesIntentId}:{},owner:y,clientId:I.clientId,serviceId:I.serviceId,authorizationNonce:Tc(),executionDigest:Mi(F,I.expiresAt),executionPlanHash:gp,triggerSpecificationHash:lr(I.triggerSpecification),evaluator:I.evaluator,semantics:I.semantics,maxSignalAgeSeconds:I.maxSignalAgeSeconds,validAfter:I.validAfter,expiresAt:I.expiresAt,maxExecutions:1},O=F.flatMap(D=>D.calls.map(W=>O0(D.chainId,W)));f(E);const M={triggerSpecification:I.triggerSpecification,chainBatches:structuredClone(F),actionSummary:O,additionalSignatureCount:2,delegationAuthorizationCount:new Set(F.filter(D=>!Wo(D.chainId)).map(D=>D.chainId)).size,triggerEnforcedBy:"SpiceFlow conditional-intent service"},B={scope:E,input:{...structuredClone(I),chainBatches:F},prepared:M,baseAuthorization:U};return u.current.set(M,B),M},[w]),h=ae(async I=>{I=structuredClone(I);const y=w(),k=r.current.wallet.address;if(!k||!r.current.wallet.isReady||r.current.provider?.mode!=="7702")throw new Error("Connect a ready 7702 wallet before preparing a conditional swap");const E=await Rt(I.chainId,r.current.provider?.rpcOverrides).readContract({address:I.tokenIn,abi:ut,functionName:"balanceOf",args:[k]});f(y);const F=r.current.inventory.assets,U=F.find(W=>W._source==="wallet"&&W.location==="embedded"&&W.chainId===I.chainId&&G(W.address,I.tokenIn)&&G(W.owner,k))??cr(I.chainId).find(W=>G(W.address,I.tokenIn)),O=U?{...U,address:I.tokenIn,chainId:I.chainId,owner:k,location:"embedded",_source:"wallet",balance:E,balanceFormatted:Number(Me(E,U.decimals)),balanceUsd:0,isNative:!1,balanceError:void 0,balanceStatus:void 0}:void 0,M=O?[...F.filter(W=>!(W._source==="wallet"&&W.location==="embedded"&&W.chainId===I.chainId&&G(W.address,I.tokenIn)&&G(W.owner,k))),O]:F;if(((O&&Ra(O,M,k,I.chainId))?.availableBalance??E)<I.amountIn)throw new Error("The available wallet and escrow balance does not cover the order input");const B=await T0(I,k,M,r.current.execution.estimate);f(y);const D=await g({...I,chainBatches:B.batches});if(B.sourceAllocation){const W=B.sourceAllocation;u.current.get(D).validateFunding=()=>zi(B.batches,k,{walletFundingRequirement:{chainId:W.chainId,token:W.token,amount:W.walletInPlace}})}return D.fees=B.fees,D.feeFundingSource=B.feeFundingSource,D.feeSourceAmount=B.feeSourceAmount,D.swapAmountIn=B.swapAmountIn,D},[g,w]),b=ae(async I=>{const y=u.current.get(I);if(!y)throw new Error("Prepare this conditional intent in the current hook before signing");f(y.scope);const k=r.current.wallet.address;if(!k||!r.current.wallet.actions.signMessage)throw new Error("Wallet is not ready to sign this conditional intent");if(y.request)return y.prepared;if(l.current)throw new Error("A conditional authorization is already being signed");l.current=!0;try{await y.validateFunding?.(),f(y.scope);const E=await Pi({chainBatches:y.input.chainBatches,signingAddress:k,actions:r.current.wallet.actions});f(y.scope),await y.validateFunding?.(),f(y.scope);const F=await Ni(r.current.wallet.actions,y.input.chainBatches,y.input.expiresAt);f(y.scope);const U=E.map(({yParity:z,...te})=>({...te,...z===void 0?{}:{yParity:z}})),O=al(y.input.chainBatches.map(z=>({...z,tokenTransfers:z.tokenTransfers??[]})),U),M={...y.baseAuthorization,executionPlanHash:O},B=cf(M),D=await r.current.wallet.actions.signMessage({raw:B});f(y.scope);const W=typeof D=="string"?D:D.signature,S=Fo(y.input.chainBatches),q={authorization:M,authorizationSignature:W,triggerSpecification:y.input.triggerSpecification,action:{user:k,...y.input.executionAmountMode?{amountMode:y.input.executionAmountMode}:{},chainAuthorizations:U,intents:[{mode:"7702",signatureType:"ecdsa",signature:F,nbf:0,exp:Number(y.input.expiresAt),chainBatches:y.input.chainBatches.map((z,te)=>({hash:S[te].hash,chainId:z.chainId,tokenTransfers:z.tokenTransfers??[],calls:z.calls}))}]}};return y.request=structuredClone(q),y.authorizationSignature=W,y.chainAuthorizations=E,y.prepared={...structuredClone(y.prepared),authorization:structuredClone(M),id:lf(B)},u.current.set(y.prepared,y),d.current.set(y.prepared,y),y.prepared}finally{l.current=!1}},[]),x=ae(async I=>{const y=d.current.get(I);if(!y?.request)throw new Error("Sign the prepared conditional intent before registration");f(y.scope);const k=await qe.registerConditionalIntent(y.request);return f(y.scope),k},[]),C=ae(async I=>{const y=w(),k=p.current;if(k&&k.scope===y&&k.serviceId===I&&k.expiresAt>Date.now()/1e3+30)return k.token;const E=r.current.wallet.address;if(!E||!r.current.wallet.isReady)throw new Error("Connect a wallet before reading conditional intent status");const F={owner:E,reader:E,serviceId:I,intentId:gp,expiresAt:BigInt(Math.floor(Date.now()/1e3)+3600),nonce:Tc()},U=df(F),O=await r.current.wallet.actions.signMessage({raw:U});f(y);const M=typeof O=="string"?O:O.signature,B=await qe.createConditionalReadToken({...F,signature:M});return f(y),p.current={scope:y,serviceId:I,token:B.readToken,expiresAt:B.expiresAt},B.readToken},[w]),v=ae(async(I,y)=>{const k=w(),E=await C(y);f(k);const F=await qe.getConditionalIntent(I,E);return f(k),F},[C,w]),A=ae(async(I,y)=>{const k=w(),E=await C(I);f(k);const F=await qe.listConditionalIntents(E,y);return f(k),F},[C,w]),T=ae(async(I,y)=>{const k=w(),E=r.current.wallet.address;if(!E)throw new Error("Connect a wallet before cancelling a conditional intent");const F={owner:E,serviceId:y,intentId:I,cancellationNonce:Tc(),expiresAt:BigInt(Math.floor(Date.now()/1e3)+300)},U=uf(F),O=await r.current.wallet.actions.signMessage({raw:U});f(k);const M=typeof O=="string"?O:O.signature,B={...F,signature:M},D=await qe.cancelConditionalIntent(I,B);return f(k),D},[w]);return{prepare:g,prepareSwap:h,sign:b,register:x,authorizeRead:C,get:v,list:A,cancel:T}}function B0(e,t=0){const[n,o]=H(t),r=e[n]??e[0],a=Ae(()=>r?BigInt(Math.round(r.months*30*24*3600)):0n,[r?.months]);return{selectedDurationIdx:n,setSelectedDurationIdx:o,selectedDuration:r,durationSeconds:a}}function R0(e){const t=fn(cn),n=t?.embeddedWalletAddress,o=e?.enabled===!1?void 0:n,r=t?.network?{network:t.network,pollIntervalMs:e?.pollIntervalMs,chainIds:e?.chainIds??t.supportedChainIds,discoverWalletBalances:e?.discoverWalletBalances}:void 0;return{...cp(o,r),embeddedWalletAddress:n}}function D0(){const{actions:e,isReady:t,isAuthenticated:n}=Mo(),o=fn(cn)?.embeddedWalletAddress,r=J(!1),a=J(0),i=J(null),s=J(e),[c,l]=H(0);s.current=e,he(()=>{r.current=!1,a.current=0,i.current&&(clearTimeout(i.current),i.current=null)},[o]),he(()=>{if(!o||!t||!n||r.current)return;r.current=!0;let u=!1;return(async()=>{await xo(2e3);try{await _p(o,s.current.signMessage),a.current=0}catch(d){console.warn("[SmartWallet] Registration failed:",d),r.current=!1,!u&&a.current<3&&(a.current+=1,i.current=setTimeout(()=>{l(p=>p+1)},5e3))}})(),()=>{u=!0,i.current&&(clearTimeout(i.current),i.current=null)}},[o,t,n,c])}function M0(){const e=fn(cn),t=(e?.mode??"7702")==="7702"?"embedded":"external",n=e?.setMode,o=ae(r=>n?.(r==="embedded"?"7702":"ondemand"),[n]);return{mode:t,setMode:o,ownerAddress:t==="embedded"?e?.embeddedWalletAddress:e?.externalWalletAddress,embeddedAddress:e?.embeddedWalletAddress,externalAddress:e?.externalWalletAddress,isUserWhitelisted:e?.isUserWhitelisted??null,isWhitelistChecking:e?.isWhitelistChecking??!1,isWhitelistGateActive:e?.isWhitelistGateActive??!1,whitelistCheck:e?.whitelistCheck}}function N0({amount:e,enabled:t=!0,...n}){const o=fn(cn),[r,a]=H(null);he(()=>{a(l=>l&&l.amount!==e?{...l,amount:e}:l)},[e]);const i=Ae(()=>{if(!r)return null;const l=r.asset,u=l.location??(l._source==="spice"?"rollup":l._fundingWallet??((o?.mode??"7702")==="7702"?"embedded":"external"));return{...r,asset:{...l,location:u,owner:l.owner??(u==="external"?o?.externalWalletAddress:o?.embeddedWalletAddress),...l._wrapFromNative?{address:Zt,isNative:!0,positionId:void 0}:{}}}},[r,o?.mode,o?.embeddedWalletAddress,o?.externalWalletAddress]),s=Wa({...n,enabled:t,selectedAsset:i,paymentAmount:n.amountDirection==="output"?e:void 0}),c=ae(l=>a({asset:l,amount:e}),[e]);return{sources:s.assets.selectable,getAvailableBalance:s.assets.getAvailableBalance,availableBalance:s.amount.availableBalance,selectedAsset:s.selectedAsset,setSelectedAsset:a,selectAsset:c,quote:{isQuoting:s.quote.isQuoting,error:s.quote.quoteError,estimatedInput:s.quote.estimatedInput,estimatedOutput:s.quote.estimatedOutput,estimatedMinOutput:s.fees.destinationAmount===void 0||!n.destinationToken?null:Me(s.fees.destinationAmount,n.destinationToken.decimals),isDirect:s.quote.isDirect,needsSwap:s.quote.needsSwap},feePreview:s.fees.preview,isFeePreviewLoading:s.fees.isLoading,feePreviewError:s.fees.error||s.status.error,canSubmit:s.canExecute,execute:s.submit,isExecuting:s.status.isExecuting,step:s.status.step,statusMsg:s.status.statusMsg,status:s.status,txHash:s.status.txHash,refreshAssets:s.assets.refreshSpiceAssets,resolveMaxAmount:s.resolveMaxAmount,retryFinalization:s.retryFinalization,refreshStatus:s.refreshStatus}}function P0(e){const t=Mo(),n=wp(),o=J(new WeakMap),r=J(new WeakMap),a=fn(cn),i=Yr(),s=J(i);s.current=i;const[c,l]=H({step:"idle",isExecuting:!1,message:"",error:null,pending:!1}),[u,d]=H(!1),p=J(void 0),w=J(e?.combineSourceBalances);w.current=e?.combineSourceBalances;const f=J({wallet:t,provider:a});f.current={wallet:t,provider:a};const g=J(!1),h=J(!1),b=J(null),x=J(!0),C=J(0),v=JSON.stringify([t.address,t.isReady,t.isAuthenticated,t.isConnected,qe.getBaseUrl(),a?.rpcOverrides,a?.provider,a?.network,a?.mode,a?.allowedTokens,a?.isWhitelistGateActive]),A=J(v);A.current!==v&&(A.current=v,C.current++),Po(()=>(x.current=!0,()=>{x.current=!1,C.current++,b.current?.abort()}),[]),Po(()=>(d(!1),p.current=void 0,l({step:"idle",isExecuting:!1,message:"",error:null,pending:!1}),()=>{b.current?.abort()}),[v]);const T=J(new WeakMap),I=J(new WeakMap),y=()=>{if(!x.current)throw new Error("Order hook is no longer mounted");if(!f.current.wallet.isReady||!f.current.wallet.isAuthenticated||!f.current.wallet.isConnected||f.current.provider?.isWhitelistGateActive)throw new Error("Connect the current wallet before continuing the order");return JSON.stringify([C.current,f.current.wallet.address,f.current.wallet.isReady,f.current.wallet.isAuthenticated,f.current.wallet.isConnected,qe.getBaseUrl(),f.current.provider?.rpcOverrides,f.current.provider?.provider,f.current.provider?.network,f.current.provider?.mode,f.current.provider?.allowedTokens,f.current.provider?.isWhitelistGateActive])},k=ae(async S=>{const q=y(),z=p.current;d(!1);const te=await qe.supportsAutomaticContinuation();if(y()!==q||p.current!==z||h.current)return!1;if(z?.outcomePending==="registration"){const K=z.conditional?await z.conditional.get():await qe.getLimitOrder(Zi(z.request));if(y()!==q)return!1;if(z.conditional?!("conditionalIntentId"in K)||K.conditionalIntentId!==z.conditional.id:!("id"in K)||K.id!==Zi(z.request)||!G(K.user,z.request.user)||K.chainId!==z.input.chainId||!G(K.tokenIn,z.input.tokenIn)||!G(K.tokenOut,z.input.tokenOut)||K.minimumOutput!==z.input.minimumOutput.toString())throw new Error("The original order registration could not be verified");return z.resolvedOrder=K,z.placement=void 0,z.outcomePending=void 0,l({step:"success",isExecuting:!1,message:"Limit order placed",error:null,pending:!1}),d(!0),!0}if(z?.outcomePending==="funding"){if(!z.fundingActionId&&z.fundingSubmissionKey){const X=await qe.getActionBySubmission(z.request.user,z.fundingSubmissionKey);if(y()!==q)return!1;z.fundingActionId=X?.actionId}if(!z.fundingActionId)return l(X=>({...X,pending:!0})),!1;const K=await qe.getIntentRecoveryStatus(z.fundingActionId,0);if(y()!==q)return!1;if(K==="unresolved")return l(X=>({...X,pending:!0})),!1;if(K==="completed"){z.fundingCompleted=!0;const X=await er(z.request.user,z.input.chainId,z.input.tokenIn);if(y()!==q)return!1;if(X.available<z.input.grossAmount)return l(xe=>({...xe,pending:!0})),!1;z.placement=void 0}z.outcomePending=void 0}const Y=te?S??await qe.getWalletActions(f.current.wallet.address,{pendingOnly:!0}):[];if(y()!==q||h.current||p.current!==z)return!1;let j=!1;for(const K of Y){if(K.intents.length!==1){j=!0;break}const X=await qe.getIntentRecoveryStatus(K.actionId,0);if(y()!==q)return!1;if(X==="unresolved"){j=!0;break}}return l(K=>({...K,pending:j,message:j?"A previous transaction is still pending":K.message})),d(!j),!j},[]),E=ae(()=>k(),[k]),F=ks(t.address,c.pending&&t.isReady&&t.isAuthenticated&&t.isConnected,{pendingOnly:!0});he(()=>{if(!c.pending||F.loading||F.error||!F.updatedAt)return;const S=C.current;k(F.actions).catch(()=>{x.current&&C.current===S&&d(!1)})},[F.revision,F.loading,F.error,c.pending,k]),he(()=>{if(!t.address||!t.isReady||!t.isAuthenticated||!t.isConnected||a?.isWhitelistGateActive)return;const S=C.current;E().catch(()=>{x.current&&C.current===S&&(d(!1),l(q=>({...q,pending:!0,message:"Previous transaction status is unavailable"})))})},[v,E]);const U=ae(async(S,q,z)=>{if(h.current||p.current?.outcomePending)throw new Error("Resolve the previous order before preparing another");const te=y(),Y=w.current===!0&&!q&&!z?.skipFunding;if(S=structuredClone(S),!await E())throw new Error("Resolve the previous transaction before preparing another order");if(y()!==te)throw new Error("Wallet or provider changed while preparing the order");const j=pl(crypto.getRandomValues(new Uint8Array(32))),K=f.current.wallet.address;if(!K)throw new Error("Connect a wallet before preparing an order");if(f.current.provider?.mode!=="7702")throw new Error("Limit orders require the 7702 wallet mode");if(!ts(S.chainId,f.current.provider?.rpcOverrides))throw new Error(`No RPC is available for order chain ${S.chainId}`);const X=Date.now();if(!Number.isSafeInteger(S.expiresAt)||S.expiresAt<=Math.floor(X/1e3)||S.expiresAt>Math.floor(X/1e3)+30*86400&&!(z&&BigInt(S.expiresAt)===ll)||S.grossAmount<=0n||S.minimumOutput<=0n)throw new Error("Enter a positive amount, minimum output and expiry within 30 days");const xe=await er(K,S.chainId,S.tokenIn);if(y()!==te)throw new Error("Wallet or provider changed while preparing the order");let ge;const ve=S.grossAmount;if(Y&&xe.available<ve){if(!await qe.supportsAutomaticContinuation())throw new Error("Automatic order funding requires backend recovery support");const Le=Xt(S.tokenIn,S.chainId);if(!Le)throw new Error("Automatic order funding requires a supported escrow token");const Be=Rt(S.chainId,f.current.provider?.rpcOverrides),L=Te(S.tokenIn)?await Be.getBalance({address:K}):await Be.readContract({address:S.tokenIn,abi:ut,functionName:"balanceOf",args:[K]}),V={address:S.tokenIn,chainId:S.chainId,owner:K,location:"embedded",_source:"wallet",_fundingWallet:"embedded",decimals:Le.decimals,symbol:Le.symbol,name:Le.name,balance:L,balanceFormatted:Number(Me(L,Le.decimals)),balanceUsd:0,isNative:Te(S.tokenIn)},oe=To(V,"spend-source",f.current.provider??{},{address:S.tokenIn,chainId:S.chainId},void 0,{requiresEscrow:!0});if(!oe.eligible)throw new Error(oe.reason??"Order funding is unavailable");const le=ve-xe.available;if(L<le)throw new Error("Cash does not cover the limit order budget");const Z=await Ec({address:K,requireSimulation:!0,depositQuote:{asset:V,amount:le,token:S.tokenIn,chainId:S.chainId}});if(y()!==te)throw new Error("Wallet or provider changed while preparing the order");if(Z.fee<0n||Z.fee>=le||Z.net!==le-Z.fee)throw new Error("Cash amount does not cover the order funding fee");ge={source:V,sourceSpendCap:le,depositAmount:Z.net,feeAmount:Z.fee},S.grossAmount=ve-Z.fee}const Se=S.venue??ya;if(!(Se.chainIds??[8453]).includes(S.chainId))throw new Error("Venue does not support the destination chain");const ne=ba(Se);let _=S.grossAmount,ue=0n,P=0n;for(let Le=0;Le<5;Le++){const Be=await ne.resolve({type:"swap",tokenIn:S.tokenIn,tokenOut:S.tokenOut,amountIn:_},S.chainId,K);if(!Be)throw new Error("No supported route for this order");const L=Be.calls.find(Ne=>G(Ne.to,Se.swapRouter));if(!L)throw new Error("Order route is missing its swap");const{path:V}=Zn({abi:Br,data:L.data}).args[0],oe=dh({replacesOrderId:q,conditional:!!z,user:K,chainId:S.chainId,tokenIn:S.tokenIn,router:Se.swapRouter,path:V,grossAmount:S.grossAmount,amountIn:_,minimumOutput:S.minimumOutput,expiresAt:S.expiresAt,platformFee:ue,gasBridgeFee:P,requestTimestampMs:X,requestNonce:j});if(oe.intents[0].mode!=="7702")throw new Error("Unsupported order mode");const le=structuredClone(oe),Z=le.intents[0];if(Z.mode!=="7702")throw new Error("Unsupported order mode");const se=As(Z.chainBatches,K);se[1].calls=Be.calls;const We=Fo(se);Z.chainBatches=se.map((Ne,Ce)=>({...Z.chainBatches[Ce],calls:Ne.calls,hash:We[Ce].hash}));const He=(await qe.estimateActionFees(le)).intents[0]?.batches.find(Ne=>Ne.chainId===S.chainId);if(!He)throw new Error("Order fee quote is unavailable");const ye=Yo(He),Oe=S.grossAmount-ye.totalFee;if(Oe<=0n)throw new Error("Cash amount does not cover order fees");if(y()!==te)throw new Error("Wallet or provider changed while preparing the order");if(Oe===_&&ue===ye.spicenetFee&&P===ye.gasFee+ye.bridgeFee){const Ne={user:K,request:oe,amountIn:_,minimumOutput:S.minimumOutput,feeAmount:ye.totalFee,grossAmount:S.grossAmount,funding:ge,path:V};return T.current.set(Ne,{scope:te,amendment:q?{id:q}:void 0,request:structuredClone(oe),input:structuredClone(S),cashAmount:xe.available,combineSourceBalances:Y,funding:ge&&structuredClone(ge)}),Ne}_=Oe,ue=ye.spicenetFee,P=ye.gasFee+ye.bridgeFee}throw new Error("Order fees did not converge; prepare the order again")},[]),O=ae(async S=>{if(g.current)throw new Error("An order signature is already in progress");const q=T.current.get(S),z=q?.scope,te=()=>{if(!z||y()!==z||!G(f.current.wallet.address,q?.request.user))throw new Error("Prepare the order again for the current wallet and provider")};te();const Y=structuredClone(q.request),j=Y.intents[0];if(j.mode!=="7702"||j.exp<=Date.now()/1e3)throw new Error("Order expired before signing");g.current=!0;try{const K=f.current.wallet.actions;if(Y.chainAuthorizations=await Pi({chainBatches:j.chainBatches,signingAddress:Y.user,actions:K,beforeSign:async()=>te()}),te(),j.signature=await Ni(K,j.chainBatches,BigInt(j.exp)),te(),j.exp<=Date.now()/1e3)throw new Error("Order expired during signing");return I.current.set(Y,{scope:z,amendment:q.amendment,request:structuredClone(Y),input:q.input,cashAmount:q.cashAmount,combineSourceBalances:q.combineSourceBalances,funding:q.funding}),Y}finally{g.current=!1}},[]),M=ae(async S=>{const q=y(),{signature:z}=await f.current.wallet.actions.signMessage(lh(S));if(y()!==q)throw new Error("Wallet or provider changed during cancellation");return qe.cancelLimitOrder(S,z)},[]),B=ae(S=>{if(!S||y()!==S.scope)throw new Error("Sign the order for the current wallet and provider before placing it");if(S.placement)return S.placement;if(S.resolvedOrder)return Promise.resolve(S.resolvedOrder);if(S.outcomePending)throw new Error("The original order outcome is still pending");if(h.current)throw new Error("An order placement is already in progress");const q=S.request.intents[0],z=()=>{if(y()!==S.scope)throw new Error("Wallet or provider changed during order placement");if(q.mode!=="7702"||q.exp<=Date.now()/1e3)throw new Error("Order expired before placement")};z(),h.current=!0,p.current=S;const te=new AbortController;b.current=te;let Y=!1;S.placement=(async()=>{l({step:"placing",isExecuting:!0,message:"Preparing the limit order\u2026",error:null,pending:!1});let K=!1,X=S.fundingCompleted===!0,xe=!1;try{const ge=await er(S.request.user,S.input.chainId,S.input.tokenIn);if(z(),S.funding&&!X){const ne=S.funding;if(ge.available!==S.cashAmount)throw new Error("Order cash or reservations changed. Review the full order again");const _=async()=>{z();const Be=await er(S.request.user,S.input.chainId,S.input.tokenIn);if(z(),Be.available!==S.cashAmount)throw new Error("Order cash or reservations changed. Review again")},ue=await Ec({address:S.request.user,requireSimulation:!0,depositQuote:{asset:ne.source,amount:ne.sourceSpendCap,token:S.input.tokenIn,chainId:S.input.chainId}});if(z(),ue.fee>ne.feeAmount)throw new Error("Order funding fees changed. Review again");const P=[{chainId:S.input.chainId,tokenTransfers:[],calls:Sc({escrowAddress:Uo(S.input.chainId),tokenAddress:S.input.tokenIn,isNative:Te(S.input.tokenIn),amount:ne.depositAmount,gasFeeAmount:ne.feeAmount})}];l({step:"funding",isExecuting:!0,message:"Funding the limit order\u2026",error:null,pending:!1}),S.fundingSubmissionKey??(S.fundingSubmissionKey=pl(crypto.getRandomValues(new Uint8Array(32)))),await s.current.execute(P,S.input.tokenIn,0n,Be=>{Be.actionId&&(K=!0,S.fundingActionId=Be.actionId)},te.signal,{userOverride:S.request.user,idempotencyKey:S.fundingSubmissionKey,useCustomTransfers:!0,skipPreSubmitFeeEstimate:!0,requireDestinationReceipt:!0,walletFundingRequirement:{chainId:S.input.chainId,token:S.input.tokenIn,amount:ne.sourceSpendCap},validateBeforeSubmit:_}),X=!0,S.fundingCompleted=!0,z(),l({step:"waiting-credit",isExecuting:!0,message:"Waiting for cash credit\u2026",error:null,pending:!1});const Le=await Cd({deposits:[{chainId:S.input.chainId,token:S.input.tokenIn,amount:ne.depositAmount}],baseline:ge.entries,fetchEntries:async()=>(z(),rs(S.request.user)),signal:te.signal});if(z(),!Le)throw new Error("Funding was submitted; the order is not placed while cash credit is pending. Check wallet activity before trying again")}const ve=await er(S.request.user,S.input.chainId,S.input.tokenIn);if(z(),S.combineSourceBalances&&ve.available<S.input.grossAmount)throw new Error("Cash is not available for this order. No order was placed");l({step:"placing",isExecuting:!0,message:"Placing the limit order\u2026",error:null,pending:!1}),xe=!0;const Se=S.conditional?await S.conditional.register():S.amendment?await qe.amendLimitOrder(S.amendment.id,structuredClone(S.request)):await qe.createLimitOrder(structuredClone(S.request));return z(),S.resolvedOrder=Se,l({step:"success",isExecuting:!1,message:"Limit order placed",error:null,pending:!1}),Se}catch(ge){const ve=xe&&ge instanceof we&&ge.context.httpStatus===400&&ge.context.submissionStatus==="rejected";K||(K=ge?.context?.submissionStatus==="unknown");const Se=ge instanceof Error?ge:new Error("The order outcome could not be verified"),ne=xe&&!ve?"Order placement could not be verified. Check the order list before placing another order.":K?X?"Cash funding completed, but the order is not placed. Check available cash and wallet activity before trying again.":"Cash funding could not be verified and no order was placed. Check wallet activity before trying again.":Se.message;S.outcomePending=xe&&!ve?"registration":K||X?"funding":void 0,Y=!xe&&!K&&!X;try{x.current&&y()===S.scope&&l({step:"error",isExecuting:!1,message:ne,error:Se,pending:!!S.outcomePending})}catch{}throw Se}finally{h.current=!1,b.current===te&&(b.current=null)}})();const j=S.placement;return j.catch(()=>{Y&&S.placement===j&&(S.placement=void 0)}),j},[]),D=ae(S=>B(I.current.get(S)),[B]),W=ae(async(S,q,z)=>{const te=y(),Y=await qe.getLimitOrder(S);if(y()!==te||!G(Y.user,f.current.wallet.address))throw new Error("Order does not belong to the current wallet");if(Y.status!=="open"||Date.parse(Y.expiresAt)<=Date.now())throw new Error("This order is no longer amendable");return U({chainId:Y.chainId,tokenIn:Y.tokenIn,tokenOut:Y.tokenOut,grossAmount:BigInt(Y.reservedAmount),minimumOutput:q,expiresAt:Math.floor(Date.parse(Y.expiresAt)/1e3),venue:z},S)},[U]);return{conditional:{...n,async prepareOrder(S,q,z,te){if(S=structuredClone(S),q=structuredClone(q),S.expiresAt!==Number(q.expiresAt))throw new Error("Order and condition expiry must match");if(z!=="cash-first"&&z!=="execution-balances")throw new Error("Choose an order funding policy");if(z==="execution-balances")return n.prepareSwap({...q,chainId:S.chainId,tokenIn:S.tokenIn,tokenOut:S.tokenOut,amountIn:S.grossAmount,minimumOutput:S.minimumOutput,amountMode:"fixed-input",venue:S.venue??ya});const Y=y(),j=await U(S,void 0,{skipFunding:!!q.replacesIntentId});if(y()!==Y)throw new Error("Wallet or provider changed while preparing the order");const K=j.request.intents[0];if(K.mode!=="7702")throw new Error("Unsupported order mode");const X=await n.prepare({...q,executionAmountMode:"gross_input",triggerSpecification:te?.(j.grossAmount)??q.triggerSpecification,chainBatches:K.chainBatches});if(y()!==Y)throw new Error("Wallet or provider changed while preparing the order");return X.fees={token:S.tokenIn,symbol:Xt(S.tokenIn,S.chainId)?.symbol??"",decimals:Xt(S.tokenIn,S.chainId)?.decimals??18,amount:j.feeAmount+(j.funding?.feeAmount??0n)},X.swapAmountIn=j.amountIn,X.fundingFeeAmount=j.funding?.feeAmount??0n,o.current.set(X,T.current.get(j)),X},async sign(S){const q=o.current.get(S);if(q&&y()!==q.scope)throw new Error("Order wallet or provider changed");const z=await n.sign(S);if(q){if(y()!==q.scope)throw new Error("Order wallet or provider changed during signing");const te=z.id,Y=z.authorization.serviceId;q.conditional={id:te,register:()=>n.register(z),get:()=>n.get(te,Y)},o.current.set(z,q),r.current.set(z,q)}return z},register(S){const q=o.current.get(S);if(!q)return n.register(S);if(r.current.get(S)!==q)throw new Error("Sign the current order before registration");return B(q)}},status:c,canPrepare:u&&!c.pending&&!c.isExecuting&&t.isReady&&t.isAuthenticated&&t.isConnected&&!a?.isWhitelistGateActive,canPlace:S=>{const q=I.current.get(S);try{return!!q&&u&&!c.pending&&y()===q.scope&&q.request.intents[0].mode==="7702"&&q.request.intents[0].exp>Date.now()/1e3&&!q.outcomePending&&!h.current}catch{return!1}},refreshStatus:E,prepareOrder:S=>U(S),prepareAmendment:W,signOrder:O,placeOrder:D,getOrder:S=>qe.getLimitOrder(S),listOrders:S=>{if(!t.address)throw new Error("Connect a wallet to list orders");return qe.listLimitOrders(t.address,S)},cancelOrder:M}}Cf();export{ya as AERODROME_BASE_CONFIG,Gu as AccountDisplay,Fc as AddFundsLink,Cg as AssetBalance,oa as AssetSelector,n1 as CONDITIONAL_INTENT_UNTIL_CANCELLED,Nd as CheckIcon,Xr as ChevronIcon,Ta as CloseIcon,ws as DEFAULT_LIQUIDITY_VENUES,vo as DetailRow,bo as METRIC_CONFIG,o1 as NATIVE_TOKEN_ADDRESS,Vi as ProviderLogin,bi as SATSUMA_CITREA_CONFIG,r1 as SPICENET_NATIVE_CHAIN_ID,a1 as SPICE_COMBINED_FEE_RECIPIENT,s1 as SPICE_GAS_FEE_RECIPIENT,Wi as SPICE_PLATFORM_FEE_BPS,i1 as SPICE_PLATFORM_FEE_RECIPIENT,c1 as SPICE_SOLVER_ADDRESS,bc as SearchInput,w0 as SelectChainModal,g0 as SpiceAccount,lp as SpiceDeposit,Z0 as SpiceFlowProvider,cn as SpiceFlowProviderContext,I0 as SpiceLock,E0 as SpiceSupply,hc as SpiceWithdraw,we as SpiceflowError,Ko as Spinner,Gn as StatusBanner,Ol as UNIV3_ARBITRUM_CONFIG,Fl as UNIV3_BASE_CONFIG,Tl as UNIV3_ETHEREUM_CONFIG,Bl as UNIV3_ROBINHOOD_CONFIG,Rl as UNIV3_ROBINHOOD_SUSHI_CONFIG,ql as UNIV4_BASE_CONFIG,zl as UNIV4_ROBINHOOD_CONFIG,Lo as V4_NATIVE_CURRENCY,l1 as applySlippage,Ia as areEquivalentOnChains,To as assetCapability,Ie as assetPositionId,X0 as buildDarkPalette,J0 as buildLightPalette,Er as buildLiquidityVenues,na as buildPayChainBatches,Jm as buildRoutedBatches,Zr as buildSpicenetWithdrawalBatch,Ms as buildSupplyChainBatches,d1 as buildUniV3SwapCalls,os as calculateBpsFee,Pl as createAerodromeExactOutputVenue,ba as createAerodromeVenue,Ma as createExactOutputRegistry,Ul as createLiquidityRegistry,bl as createMetricExactOutputVenue,yl as createMetricVenue,vi as createSatsumaExactOutputVenue,xa as createSatsumaVenue,vi as createUniV3ExactOutputVenue,xa as createUniV3Venue,Xl as createUniV4ExactOutputVenue,Zl as createUniV4Venue,_s as duration,qr as easing,Cl as encodeUniV3ExactOutputCall,Ho as estimateFeePreview,xh as estimateRequiredGrossFunding,Sh as estimateSupplyMaxAmount,Au as executePay,Cu as executeSupply,Kr as fetchBalances,$o as findEquivalentOnChain,nt as font,Qr as getAssetChainTokenCandidates,Sl as getBestUniV3ExactOutputQuote,Al as getBestUniV3Quote,kt as getChainConfig,u1 as getChainIdsByNetwork,io as getChainName,p1 as getEscrowContractAddress,jr as isExternalSource,Pa as isMultiSourceFundingAsset,f1 as isNativeToken,$0 as isSpiceflowError,m1 as isSpicenetChainId,Lh as isSupportedSupplyAsset,Zi as limitOrderId,h1 as normalizeNativeTokenAddress,ri as radius,qe as relayerService,lo as resolveAssetTokenAddressOnChain,nd as resolveFundedToken,Ua as resolveInputSupplySwapQuote,Xm as resolveRoute,_0 as resolveTheme,kl as reverseUniV3Path,ta as scaleTokenAmount,g1 as spicenetAbi,w1 as spicenetWithdrawalAbi,ho as transition,No as useAssetDisplay,F0 as useAssetInput,e1 as useIsUserWhitelisted,B0 as useLockDuration,D0 as useSmartWallet,M0 as useSpiceAccount,N0 as useSpiceAction,ks as useSpiceActionActivity,gd as useSpiceAssets,dn as useSpiceBrand,wp as useSpiceConditionalIntents,Yr as useSpiceExecution,Or as useSpiceInventory,P0 as useSpiceLimitOrders,dp as useSpiceLock,R0 as useSpicePendingDeposits,Wa as useSpiceSupply,Pu as useSupplyAssets,qu as useSupplyQuote,wc as useTokenLogo,Mo as useWallet,Ea as useWalletBalances,Ar as z};
74
+ `})]})},S0=bo(A0),E0=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,lockBatches:o,lockTokenSymbol:r,lockTokenLogoURI:a,destinationInputHook:i,sourceAssetInputHook:s,lockDurationHook:c,lockChainId:l,durationOptions:d,votingPowerEstimate:u,destinationTokenAddress:p,destinationTokenDecimals:w,beneficiary:f,onSubmit:g,onLockSuccess:h,onLockError:b,onLockExecute:v,sourceToDestinationConversionRate:C,onAddFunds:x,buildSpicenetBatch:k,feeFunding:E,combineSourceBalances:I,styles:y,dark:A})=>{const{theme:T,dark:F,primaryColor:L,dk:R}=dn(y,A),N=T.typography.fontFamily,O=F?R.cardBg:y?.assetSelector?.backgroundColor||y?.secondaryBackground||"#e9e9e9",D=F?`1px solid ${R.cardBorder}`:"0.5px solid #A8A8A7",M=F?"12px":"6px",S=F?R.textPrimary:"#111827",U=F?R.textSecondary:"#6b7280",q=Ee(()=>({...y,assetSelector:{...y?.assetSelector,backgroundColor:F?R.cardBg:y?.assetSelector?.backgroundColor,borderRadius:F?"12px":y?.assetSelector?.borderRadius},secondaryBackground:F?R.cardBg:y?.secondaryBackground}),[y,F]),X=Ee(()=>F?{...T,colors:{...T.colors,secondary:R.cardBg,surfaceHover:R.hoverBg,border:R.cardBorder,borderHover:R.inputBorder}}:T,[F,T]),[K,Q]=H(null),Y=Z(!1);we(()=>{e||(Y.current=!1)},[e]);const[oe,he]=H(0),ve=c?.selectedDurationIdx??oe,ae=c?.setSelectedDurationIdx??he,ie=c?.selectedDuration??d[ve]??d[0],ne=hp({enabled:e&&!v,selectedAsset:K,lockBatches:o,lockChainId:l,lockTokenSymbol:r,lockTokenLogoURI:a,destinationTokenAddress:p,destinationTokenDecimals:w,beneficiary:f,onSubmit:g,onLockSuccess:h,onLockError:b,buildSpicenetBatch:k,feeFunding:E,combineSourceBalances:I}),_=ne.assets.selectable,{isExecuting:de,step:W,txHash:Me}=ne.status,[Oe,z]=H(!1),V=Number(K?.amount||"0"),te=ne.quote.isDirect,ue=!te,J=ne.fees.error,ce=ne.fees.isLoading,He=ne.fees.preview,Xe=V>0,Ve={error:ne.quote.quoteError,isQuoting:ne.quote.isQuoting},se=v?"Move onLockExecute protocol calls to lockBatches and application updates to onLockSuccess before continuing.":ne.metadataError||ne.status.error||J||Ve.error,Ue=ne.canExecute,be=ne.fees.destinationAmount,Ye=be===void 0?"0":Le(be,ne.destination.decimals),Be=Number(Ye),Pe=Be>0?Be.toLocaleString(void 0,{maximumSignificantDigits:6}):null,Fe=_.find(qe=>qe.chainId===l&&qe.address.toLowerCase()===ne.destination.address.toLowerCase()),je=Fe&&Fe.balanceFormatted>0&&Fe.balanceUsd>0?Fe.balanceUsd/Fe.balanceFormatted:C&&C>0?C:null,St=je===null?null:(Be*je).toFixed(2),gt=K&&K.asset.balanceFormatted>0&&K.asset.balanceUsd>0?K.asset.balanceUsd/K.asset.balanceFormatted:te?je:null,ft=gt===null?void 0:`$${(V*gt).toFixed(2)}`,ct=u&&Be>0&&ie?u(Be,ie.months):void 0,Re=re(qe=>{Q(Nt=>({asset:qe,amount:Nt&&ke(Nt.asset)===ke(qe)?Nt.amount:""})),ne.retrySupply(),s?.setSelectedAsset({address:qe.address,symbol:qe.symbol,decimals:qe.decimals,chainId:qe.chainId})},[s?.setSelectedAsset,ne.retrySupply]),Se=re(qe=>{Q(Nt=>Nt&&{...Nt,amount:qe}),s?.setAssetAmount(qe),ne.retrySupply()},[s?.setAssetAmount,ne.retrySupply]);we(()=>{if(ne.capability?.policyExcluded){Q(null);return}de||ne.assets.loading||ne.assets.refreshing||ne.assets.error||Q(qe=>{if(!qe)return Y.current||!_[0]?null:(Y.current=!0,{asset:_[0],amount:s?.assetAmount??""});const Nt=_.find(Wt=>ke(Wt)===ke(qe.asset));return Nt?Nt===qe.asset?qe:{...qe,asset:Nt}:qe.asset.balance===0n?qe:{...qe,asset:{...qe.asset,balance:0n,balanceFormatted:0,balanceUsd:0}}})},[_,de,ne.assets.loading,ne.assets.refreshing,ne.assets.error,ne.capability?.policyExcluded]),we(()=>{i&&(i.setSelectedAsset(ne.destination),i.setAssetAmount(Ye))},[ne.destination,Ye,i?.setSelectedAsset,i?.setAssetAmount]);const kt=async()=>{z(!0),await ne.submitSupply()},vt=()=>{z(!1),ne.retrySupply()},ye=()=>{z(!1),Q(null),ne.resetAfterSuccess()},nt=B("div",{style:{display:"flex",alignItems:"flex-start",gap:"6px"},children:[m(xc,{color:U}),B("p",{style:{fontSize:"13px",color:U,margin:0,lineHeight:"1.5"},children:["Add ",r," by converting assets from your account"]})]});if(!e)return null;const mt={backgroundColor:O,border:D,borderRadius:M,padding:"16px",marginBottom:"16px"};return m(Co,{isOpen:e,onClose:t,title:`Add ${r} to your account`,subtitle:nt,styles:y,dark:F,footerLinkText:"Spicenet accounts \u2192",closeOnBackdropClick:n,children:B("div",{style:{padding:"0 24px 8px 24px",position:"relative"},children:[m(Rs,{activity:ne.status.activity,palette:R,onRefresh:()=>{ne.assets.refreshSpiceAssets(),ne.assets.refreshWalletAssets()}}),B("div",{style:{marginBottom:"12px"},children:[x&&m("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"6px"},children:m(Rc,{onClick:x,color:L,fontFamily:N})}),m("div",{style:{marginTop:"10px",fontSize:"13px",color:U,fontFamily:N},children:m(oa,{assets:_,selectedAsset:K??void 0,onAssetSelect:Re,onAmountChange:Se,label:"Amount",showBalance:!0,getAvailableBalance:ne.assets.getAvailableBalance,showMaxButton:!0,disabled:de||ne.status.finalizing,maxAmount:K&&ne.amount.availableBalance!==void 0?Le(ne.amount.availableBalance,K.asset.decimals):void 0,resolveMaxAmount:ne.resolveMaxAmount,theme:X,styles:q})}),m("div",{style:{marginTop:"6px",paddingLeft:"4px",fontSize:"13px",color:U,fontFamily:N},children:ft})]}),B("div",{style:mt,children:[B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:"16px",borderBottom:F?`1px solid ${R.cardBorder}`:"1px solid #e5e7eb"},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[a?m("img",{src:a,alt:r,style:{width:"32px",height:"32px",borderRadius:"50%",objectFit:"cover"}}):m("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:F?R.inputBg:"#d1d5db",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",fontWeight:700,color:S},children:r.slice(0,2)}),m("span",{style:{fontSize:"16px",fontWeight:600,color:S,fontFamily:N},children:r})]}),B("div",{style:{textAlign:"right"},children:[m("div",{style:{fontSize:"22px",fontWeight:700,color:S,fontFamily:N,lineHeight:1.1},children:Pe??"0.00"}),(!ue||St!==null)&&B("div",{style:{fontSize:"12px",color:U,fontFamily:N,marginTop:"2px"},children:["~$",St??"0.00"]})]})]}),B("div",{style:{paddingTop:"16px",paddingBottom:"16px",borderBottom:F?`1px solid ${R.cardBorder}`:"1px solid #e5e7eb"},children:[B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px"},children:[m("span",{style:{fontSize:"15px",fontWeight:500,color:U,fontFamily:N},children:"Lock Duration"}),m(Xr,{color:U})]}),m(S0,{options:d,selectedIndex:ve,onSelect:qe=>{!de&&!ne.status.finalizing&&ae(qe)},primaryColor:L,dark:F,textPrimary:S,textSecondary:U})]}),B("div",{style:{paddingTop:"12px",display:"flex",flexDirection:"column",gap:"8px"},children:[m(gp,{label:"Estimated Lock Expiry",value:ie?.months!==void 0?k0(ie.months):"\u2014",fontFamily:N,dark:F,textPrimary:S,textSecondary:U}),u&&m(gp,{label:"Estimated voting power",value:ct!==void 0?`${ct} votes/epoch`:"\u2014",fontFamily:N,dark:F,textPrimary:S,textSecondary:U})]})]}),Xe&&m(Fc,{fontFamily:N,textPrimary:S,textSecondary:U,cardBg:O,cardBorder:D,resolvedDark:F,darkCardBorder:R.cardBorder,primaryColor:L,feePreview:He,asset:K?.asset,directExecutionFeeNote:ne.flags.directExecutionFeeNote,isLoading:ce||Ve.isQuoting,errorText:J}),ne.status.finalizationError&&m(Kt,{onClick:ne.retryFinalization,disabled:ne.status.finalizing,children:"Retry application update"}),se&&m(jn,{variant:"error",palette:R,fontFamily:N,style:{marginBottom:"12px"},children:se}),m(Kt,{variant:"outline",fullWidth:!0,onClick:()=>{Ve.error?ne.retrySupply():kt()},disabled:de||!Ue&&!Ve.error,loading:de,dark:F,styles:{...y,button:{...y?.button,backgroundColor:L}},children:de?te?"LOCKING...":"CONVERTING...":Ve.error?"RETRY QUOTE":Ve.isQuoting?"GETTING SWAP QUOTE...":ce&&Xe?"CALCULATING FEES...":te?`LOCK ${r}`:`CONVERT TO ${r}`}),Oe&&!ne.status.finalizationError&&(W==="success"||W==="error"||de)&&m(Yi,{type:"lock",isOpen:!de,isProcessing:de,closeOnComplete:!1,chainId:l,showStepBreakdown:!1,onRetryTx:vt,onNewTx:ye,onClose:()=>z(!1),onComplete:ye,results:W==="success"||W==="error"?[{asset:{symbol:r,address:ne.destination.address},txHash:Me??"",success:W==="success",error:se??void 0,amount:K?.amount}]:void 0,theme:T,styles:y,dark:F})]})})},F0=({variant:e,destinationSymbol:t,destinationLogoURI:n,destinationDecimals:o,primaryColor:r,fontFamily:a,textPrimary:i,textSecondary:s,cardBg:c,cardBorder:l,dk:d,dark:u,isQuoting:p,quoteError:w,estimatedOutput:f,paymentAmount:g,needsSwap:h,exactOutputSwap:b,adjustable:v=!1,maxAmount:C,onAmountChange:x})=>e==="supply"?B("div",{style:{backgroundColor:c,border:`1px solid ${l}`,borderRadius:u?"8px":"7px",padding:"14px 16px 12px 16px",marginBottom:"16px",minHeight:"112px",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[B("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"12px"},children:[B("div",{style:{minWidth:0},children:[m("span",{style:{fontFamily:a,fontSize:"17px",fontWeight:500,color:u?"#a7abb2":"#7D7C7B",lineHeight:"24px"},children:"Used in TX"}),m("div",{style:{fontSize:"12px",fontWeight:500,color:s,fontFamily:a,marginTop:"10px"},children:"Net amount after swap and fees"})]}),B("div",{style:{textAlign:"right",minWidth:0,display:"inline-flex",alignItems:"center",gap:"8px",border:`1px solid ${l}`,borderRadius:"8px",padding:"8px 10px",minHeight:"42px"},children:[m(yp,{symbol:t,logoURI:n,primaryColor:r,size:24}),m("span",{style:{fontSize:"16px",fontWeight:500,color:u?"#f3f4f6":"#3C3E42",lineHeight:"1.3",fontFamily:a,letterSpacing:0},children:t})]})]}),m("div",{style:{textAlign:"right",minWidth:0},children:p?m("span",{style:{fontSize:"18px",color:s,fontFamily:a},children:"Quoting..."}):w?m("span",{style:{fontSize:"13px",color:u?"#f87171":"#dc2626",fontFamily:a},children:"Quote failed"}):f?m(Rr,{value:f,title:f,fontFamily:a,color:i,lineHeight:"0.95",textAlign:"right",maxFontSize:32,minFontSize:18}):m("span",{style:{fontSize:"20px",color:s,fontFamily:a},children:"\u2014"})})]}):m(T0,{destinationSymbol:t,destinationLogoURI:n,destinationDecimals:o,primaryColor:r,fontFamily:a,textPrimary:i,textSecondary:s,cardBg:c,cardBorder:l,dk:d,dark:u,paymentAmount:g||"0",needsSwap:h,exactOutputSwap:b,isQuoting:p,adjustable:v,maxAmount:C,onAmountChange:x}),wp=bo(F0),yp=({symbol:e,logoURI:t,primaryColor:n,size:o})=>t?m("img",{src:t,alt:e,style:{width:o,height:o,borderRadius:"50%",objectFit:"cover"}}):m("div",{style:{width:o,height:o,borderRadius:"50%",backgroundColor:`${n}22`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:o<30?"11px":"12px",fontWeight:700,color:n},children:e.slice(0,2)}),T0=({destinationSymbol:e,destinationLogoURI:t,destinationDecimals:n,primaryColor:o,fontFamily:r,textPrimary:a,textSecondary:i,cardBg:s,cardBorder:c,dk:l,dark:d,paymentAmount:u,needsSwap:p,exactOutputSwap:w,isQuoting:f,adjustable:g,maxAmount:h,onAmountChange:b})=>{const v=tt.mono,C=parseFloat(u||"0"),x=h?parseFloat(h):0,[k,E]=H(u||""),I=Z(null),[y,A]=H(null),[T,F]=H(null);we(()=>{g||E(u||"")},[u,g]);const L=O=>{let D=O;D.startsWith(".")&&(D="0"+D);const M=cs(D);let S=M;h&&parseFloat(M)>parseFloat(h)&&(S=h),E(S),I.current&&clearTimeout(I.current),I.current=setTimeout(()=>b?.(S),300)},R=O=>{if(!x)return;if(O===100){E(h||x.toString()),I.current&&clearTimeout(I.current),b?.(h||x.toString());return}const D=10**n,M=Math.floor(x*O/100*D)/D,S=nf(M,n);E(S),I.current&&clearTimeout(I.current),b?.(S)},N=x>0?parseFloat(k||"0")/x*100:0;return we(()=>()=>{I.current&&clearTimeout(I.current)},[]),B("div",{style:{backgroundColor:s,border:`1px solid ${c}`,borderRadius:d?"12px":"6px",padding:"16px",marginBottom:"16px"},children:[B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[m(yp,{symbol:e,logoURI:t,primaryColor:o,size:32}),B("div",{children:[m("span",{style:{fontSize:"14px",fontWeight:600,color:a,fontFamily:r},children:"Payment"}),m("div",{style:{fontSize:"12px",color:i,fontFamily:r,marginTop:"2px"},children:e})]})]}),B("div",{style:{textAlign:"right"},children:[g?m(Rr,{element:"input",ariaLabel:`${e} amount`,dataSpiceflowFocus:!0,value:k,onChange:O=>L(O.target.value),placeholder:"0.0",fontFamily:v,color:a,lineHeight:1.1,textAlign:"right",maxFontSize:20,minFontSize:12,style:{width:"120px"}}):m(Rr,{element:"div",value:C>0?u:"0.00",title:C>0?u:"0.00",fontFamily:v,color:a,lineHeight:1.1,textAlign:"right",maxFontSize:20,minFontSize:12}),m("div",{style:{fontSize:"12px",color:i,fontFamily:v,marginTop:"2px"},children:e}),g&&x>0&&m("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"10px",marginTop:"6px"},children:[0,25,50,75,100].map((O,D)=>{const M=Math.abs(N-O)<1,S=D===4,U=y===O,q=T===O;return m("button",{onClick:()=>R(O),onMouseEnter:()=>A(O),onMouseLeave:()=>{A(null),F(null)},onMouseDown:()=>F(O),onMouseUp:()=>F(null),title:`${O}%`,style:{width:"14px",height:"14px",padding:0,border:"none",backgroundColor:"transparent",cursor:"pointer",opacity:M?1:U?.8:.5,transform:q?"scale(0.85)":U?"scale(1.15)":"scale(1)",transition:wo.interactive},children:m(wc,{pct:O,isMax:S,primaryColor:o,dark:d,fillColor:d?l?.textSecondary||"#9ca3af":"#3C3E42"})},O)})})]})]}),p&&w&&!f&&m("div",{style:{marginTop:"12px",paddingTop:"12px",borderTop:d?`1px solid ${l?.cardBorder||c}`:"1px solid #e5e7eb",display:"flex",justifyContent:"flex-end"},children:B("span",{style:{fontSize:"11px",color:i,fontFamily:r,opacity:.7},children:["via ",w.venue]})})]})},bp={idle:"",building:"Preparing transaction...","signing-delegation":"Signing delegation...","signing-intent":"Signing intent...",submitting:"Submitting transaction...",executing:"Executing on-chain...",success:"Deposit confirmed",error:"Transaction failed"},xp=["building","signing-delegation","signing-intent","submitting","executing"],O0=({step:e,statusMsg:t,txHash:n,explorerUrl:o,currentStepIdx:r,palette:a,cardBg:i,cardBorder:s,textPrimary:c,textSecondary:l,fontFamily:d,primaryColor:u,onRetry:p})=>B("div",{style:{padding:"10px 14px",borderRadius:"7px",marginBottom:"16px",backgroundColor:e==="success"?i:e==="error"?a.errorBg:i,border:`1px solid ${e==="success"?s:e==="error"?a.errorBorder:s}`},children:[B("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[e==="success"?m("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",style:{flexShrink:0},children:m("path",{d:"M5 13l4 4L19 7",stroke:a.successText,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})}):e==="error"?m("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",style:{flexShrink:0},children:m("path",{d:"M18 6L6 18M6 6l12 12",stroke:a.errorText,strokeWidth:"2.5",strokeLinecap:"round"})}):m(Ko,{size:14,color:u}),m("span",{style:{fontSize:"13px",fontWeight:500,color:e==="success"?c:e==="error"?a.errorText:c,fontFamily:d,flex:1},children:e==="success"?"Deposit confirmed":e==="error"?t||"Transaction failed":t||bp[e]}),e==="success"&&n&&m("a",{href:`${o}/tx/${n}`,target:"_blank",rel:"noopener noreferrer",style:{fontSize:"12px",color:u,fontFamily:d,textDecoration:"none",whiteSpace:"nowrap",flexShrink:0},children:"View tx \u2192"}),e==="error"&&m("button",{onClick:p,style:{background:"none",border:"none",fontSize:"12px",color:u,fontFamily:d,cursor:"pointer",padding:0,whiteSpace:"nowrap",flexShrink:0},children:"Retry \u2192"})]}),r>=0&&e!=="success"&&e!=="error"&&m("div",{style:{marginTop:"8px",height:"3px",borderRadius:"2px",backgroundColor:`${l}22`,overflow:"hidden"},children:m("div",{style:{height:"100%",width:"100%",borderRadius:"2px",backgroundColor:u,transformOrigin:"left center",transform:`scaleX(${(r+1)/xp.length})`,transition:"transform 400ms ease"}})})]}),B0=()=>{},R0=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,destinationToken:o,sourceChains:r,supportedSourceAssets:a,additionalSourceTokens:i,includeExternalWalletAssets:s,includeCrossChainEmbeddedAssets:c,combineSourceBalances:l,fundingSources:d,recipient:u,feeOnlyAction:p,actionInput:w,actionProceeds:f,feeFunding:g,feeFundingReserve:h,maxSlippage:b,resolveInputSwap:v,buildActionCalls:C,feeExecutionMode:x="user-transfer",buildSpicenetBatch:k,onPayExecute:E,resolveExactOutputSwap:I,actionLabel:y,amountDirection:A=p?"output":d?"input-inclusive":"input",swapDescription:T,directDescription:F,paymentAmount:L,amountInputMode:R="fixed",maxPaymentAmount:N,onAmountChange:O,styles:D,dark:M,title:S,subtitle:U,onAddFunds:q,onSubmit:X,beforeSubmit:K,submitDisabled:Q,onStateChange:Y,onSuccess:oe,onError:he})=>{const ve=A==="output",ae=Uo(),ie=A==="input-inclusive",{theme:ne,dark:_,primaryColor:de,dk:W,palette:Me,fontFamily:Oe,monoFont:z,inputDark:V,cardBg:te,cardBorder:ue,textPrimary:J,textSecondary:ce,subtitleText:He}=dn(D,M),Xe=Ee(()=>V?{...ne,colors:{...ne.colors,secondary:W.cardBg,surfaceHover:W.hoverBg,border:"#2d2d2d",borderHover:"#3a3a3a"}}:ne,[V,ne,W.cardBg,W.hoverBg]),Ve=Hs(o,e),se=Ve.token??Vs,Ue=Ee(()=>se.logoURI?se:{...se,logoURI:Ri[se.symbol.toUpperCase()]},[se]),be=Ue.chainId,Ye=Hs(d?.token,e&&!!d).token,[Be,Pe]=H(null),[Fe,je]=H(L||""),St=R==="adjustable"?Fe:L||"0",gt=L?.trim(),ft=ve&&R==="fixed"&&gt!==void 0&&gt!==""&&parseFloat(St||"0")===0,{operationKey:ct,feeQuote:Re,selectedAsset:Se,capability:kt,retryFinalization:vt,refreshStatus:ye,assets:{selectable:nt,loading:mt,refreshing:qe,error:Nt,getAvailableBalance:Wt},quote:{isQuoting:Rn,quoteError:Ht,estimatedOutput:vn,exactOutputSwap:wt,isDirect:_e,needsSwap:bt,pivot:xt},fees:{preview:qt,isLoading:Ce,error:Zt},amount:{sourceRequiredAmount:Je,parsed:$e,isInsufficientBalance:ge,availableBalance:yt},status:{activity:De,pending:Xt,recoveryChecking:Et,recoveryError:qn,actionId:et,intentId:nn,autoContinue:Jt,submissionStatus:Pn,idempotencyKey:Un,user:zn,finalizationError:Hn,finalizing:In,step:Vt,statusMsg:_t,txHash:un,isExecuting:en,error:Ut,showStatusPanel:lt,paymentResult:Bt},flags:{directExecutionFeeNote:Ro},canExecute:pn,submitSupply:Vn,retrySupply:kn,dismissPaymentStatus:eo,submitPay:fn,resolveMaxAmount:to,max:Cn,resetAfterSuccess:ut,resetPaymentState:wn}=La({enabled:e,destinationToken:Ve.token&&Ue,selectedAsset:d?null:Be,paymentAmount:St,amountDirection:A,sourceChains:r,supportedSourceAssets:a,additionalSourceTokens:i,includeExternalWalletAssets:s,includeCrossChainEmbeddedAssets:c,combineSourceBalances:l,fundingSources:d,recipient:u,feeOnlyAction:p,actionInput:w,actionProceeds:f,feeFunding:g,feeFundingReserve:h,maxSlippage:b,resolveInputSwap:v,buildActionCalls:C,feeExecutionMode:x,buildSpicenetBatch:k,onPayExecute:E,resolveExactOutputSwap:I,isZeroAmountPay:ft,onSubmit:X,beforeSubmit:K,submitDisabled:Q,onSuccess:oe,onError:he}),Gn=Ee(()=>({operationKey:ct,feeQuote:Re,selectedAsset:Se,canExecute:pn&&!Q,isExecuting:en,finalizing:In,finalizationError:Hn,feePreview:qt,txHash:un,error:Ut,statusStep:Vt,statusMsg:_t,pending:Xt,recoveryChecking:Et,recoveryError:qn,actionId:et,intentId:nn,autoContinue:Jt,submissionStatus:Pn,idempotencyKey:Un,user:zn,refreshStatus:ye}),[ct,Re,Se,pn,Q,en,In,Hn,qt,un,Ut,Vt,_t,Xt,Et,qn,et,nn,Jt,Pn,Un,zn,ye]),mo=Fo.useRef(Y);mo.current=Y,we(()=>{mo.current?.(Gn)},[Gn]);const En=!!p||(!!d||!!Be?.asset)&&$e>0,Qo=Ve.error||Ut,ho=Hn?m(Kt,{onClick:vt,disabled:In,children:"Retry application update"}):null,fe=Xt||Et||qn?B(jn,{variant:"info",palette:Me,fontFamily:Oe,children:[Et?"Checking transaction status...":qn?"Transaction status is unavailable.":"Your transaction is pending.",m(Kt,{onClick:()=>{ye()},disabled:Et,children:"Check status"})]}):null;we(()=>{e||(Pe(null),R==="adjustable"&&je(L||""))},[e]),we(()=>{if(kt?.policyExcluded){Pe(null);return}if(en||mt||qe||Nt||!Be)return;const rt=nt.find(Dt=>ke(Dt)===ke(Be.asset));rt&&rt!==Be.asset?Pe({...Be,asset:rt}):!rt&&Be.asset.balance>0n&&Pe({...Be,asset:{...Be.asset,balance:0n,balanceFormatted:0,balanceUsd:0}})},[nt,mt,qe,Nt,en,kt?.policyExcluded]);const le=re(rt=>{Pe(Dt=>({asset:rt,amount:Dt?.asset&&ke(Dt.asset)===ke(rt)&&Dt.amount||""}))},[]),ot=re(rt=>{Pe(Dt=>Dt&&{...Dt,amount:rt})},[]),At=re(rt=>{let Dt=rt;N&&parseFloat(Dt)>parseFloat(N)&&(Dt=N),je(Dt),O?.(Dt)},[N,O]),We=re(()=>{wn(),Pe(null)},[wn]),on=_e?F||`Your ${Ue.symbol} will be used directly.`:T||"Your assets will be swapped and used in a single atomic transaction.",Pt=(be?Ct(be):void 0)?.viemChain?.blockExplorers?.default?.url??"",mn=xp.indexOf(Vt),An=Et?"CHECKING STATUS...":Xt?"TRANSACTION PENDING":en?(bp[Vt]||"EXECUTING...").toUpperCase():Vt==="success"?"DONE":ge?"INSUFFICIENT BALANCE":(bt||xt)&&Ht&&!Rn?"QUOTE ERROR":y.toUpperCase(),cn=Ee(()=>{if(Et)return"CHECKING STATUS...";if(Xt)return"TRANSACTION PENDING";if(Bt?.status==="success")return"DONE";if(en)return"PAYING...";if(ge&&Be?.asset)return`INSUFFICIENT ${ae(Be.asset).symbol}`;if((bt||xt)&&Ht&&!Rn)return"QUOTE ERROR";if(y)return y.toUpperCase();const rt=$e>0?` ${St} ${Ue.symbol}`:"";return bt?`SWAP & PAY${rt}`:`PAY${rt}`},[en,ge,Be,y,ae,$e,St,Ue.symbol,bt,Ht,Rn,Bt?.status,Xt,Et]),hn=Vt==="success"?()=>{ut(),Pe(null)}:Vn,Fn=Vt==="success"?!1:!!Q||!pn;if(!e)return null;const no=ve?S||`Pay ${Ue.symbol}`:y,ln=ve?U:B("div",{style:{display:"flex",alignItems:"flex-start",gap:"3px"},children:[m("span",{style:{marginTop:"3px",flexShrink:0},children:m(xc,{color:He})}),m("p",{style:{fontSize:"12px",color:He,margin:0,lineHeight:"1.4",fontFamily:Oe},children:on})]}),Kn={...D,button:{...D?.button,backgroundColor:de}},Tn=En&&m(Fc,{fontFamily:Oe,textPrimary:J,textSecondary:ce,cardBg:te,cardBorder:ue,resolvedDark:_,darkCardBorder:W.cardBorder,primaryColor:de,feePreview:qt,feeOnlyAction:p,asset:Be?.asset,isLoading:Ce,errorText:Zt,directExecutionFeeNote:Ro});if(ve){const rt=Bt&&(Bt.status==="success"||Bt.status==="failed")?[{asset:{symbol:Be?.asset?ae(Be.asset).symbol:Ue.symbol,address:Be?.asset?.address||""},amount:St,txHash:Bt.txHash||"",success:Bt.status==="success",error:Bt.status==="failed"?Bt.error:void 0}]:void 0;return m(Co,{isOpen:e,onClose:t,title:no,subtitle:ln,styles:D,dark:_,footerLinkText:"Spicenet accounts \u2192",closeOnBackdropClick:n,children:B("div",{style:{padding:"16px 24px 8px 24px",position:"relative"},children:[m(Rs,{activity:De,palette:W}),q&&m("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"6px"},children:m(Rc,{onClick:q,color:de,fontFamily:Oe})}),!ft&&m("div",{style:{marginBottom:"12px"},children:m(oa,{assets:nt,selectedAsset:Be??void 0,disabled:en,onAssetSelect:le,onAmountChange:B0,label:"Pay with",showBalance:!0,getAvailableBalance:Wt,showMaxButton:!1,hideAmountInput:!0,displayAmount:Be&&Je!==null?Le(Je,Be.asset.decimals):Be?"...":void 0,dark:_,theme:Xe,styles:D})}),!p&&m(wp,{variant:"pay",destinationSymbol:Ue.symbol,destinationLogoURI:Ue.logoURI,destinationDecimals:Ue.decimals,primaryColor:de,fontFamily:Oe,textPrimary:J,textSecondary:ce,cardBg:te,cardBorder:ue,dk:W,dark:_,isQuoting:Rn,quoteError:Ht,estimatedOutput:vn,paymentAmount:St,needsSwap:bt,exactOutputSwap:wt,adjustable:R==="adjustable",maxAmount:N,onAmountChange:At}),Tn,ho,fe,Qo&&m(jn,{variant:"error",palette:Me,fontFamily:Oe,style:{marginBottom:"12px"},children:Qo}),m(Kt,{variant:"outline",fullWidth:!0,onClick:Bt?.status==="success"?t:fn,disabled:Bt?.status==="success"?!1:!!Q||!pn,loading:en,dark:_,styles:Kn,children:cn}),Bt&&lt&&!Hn&&m("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:10,backgroundColor:_?W.shell:"white",borderRadius:_?"12px":"6px",padding:"16px 0"},children:m(Yi,{type:"payment",isOpen:Bt.status!=="processing",isProcessing:en||Bt.status==="processing",closeOnComplete:!1,chainId:be,onRetryTx:()=>{eo(),fn()},onNewTx:We,onClose:()=>{eo()},onComplete:We,results:rt,styles:D,dark:_})})]})})}return m(Co,{isOpen:e,onClose:t,title:no,subtitle:ln,dark:_,styles:D,theme:ne,closeOnBackdropClick:n,children:B("div",{style:{padding:"24px 24px 5px 24px",position:"relative"},children:[m(Rs,{activity:De,palette:W}),d?B("div",{style:{marginBottom:"16px",padding:"16px",backgroundColor:te,border:`1px solid ${ue}`,borderRadius:"8px",color:J,fontFamily:Oe},children:[B("label",{style:{display:"block",marginBottom:"8px"},children:["Purchase amount (",Ye?.symbol??"...",")",m("input",{"aria-label":"Purchase amount",inputMode:"decimal",value:St,disabled:en||R!=="adjustable"||Vt==="success",onChange:rt=>At(rt.target.value),style:{display:"block",width:"100%",boxSizing:"border-box",padding:"10px",marginTop:"8px",fontSize:"24px",color:J,background:"transparent",border:`1px solid ${ue}`,borderRadius:"6px"}})]}),Ye&&yt!==void 0&&B("div",{style:{fontSize:"12px",color:ce},children:["Estimated available:"," ",Le(yt,Ye.decimals)," ",Ye.symbol]}),R==="adjustable"&&m(Kt,{disabled:en||Vt==="success",onClick:()=>{Cn().then(rt=>{rt!==null&&At(rt)})},children:"Max"}),Re?.fundingPlan?.sources.map(rt=>B("div",{style:{marginTop:"10px",fontSize:"12px",color:ce},children:["Up to ",Le(rt.sourceSpendCap,rt.decimals)," ",rt.asset.symbol,rt.swap&&B(Sn,{children:[" ","\u2192 at least"," ",Le(rt.amountOutMinimum,rt.pivotToken.decimals)," ",rt.pivotToken.symbol]}),rt.gasFeeAmount>0n&&B(Sn,{children:[" ","(funding fee"," ",Le(rt.gasFeeAmount,rt.pivotToken.decimals)," ",rt.pivotToken.symbol,")"]})]},rt.positionId))]}):m("div",{style:{marginBottom:"16px"},children:m(oa,{assets:nt,selectedAsset:Be||void 0,onAssetSelect:le,onAmountChange:ot,disabled:en||Vt==="success",showBalance:!0,getAvailableBalance:Wt,showMaxButton:!0,label:l?"From":"From Wallet",placeholder:"0.00",theme:Xe,styles:D,dark:V,resolveMaxAmount:ie?void 0:to,maxAmount:Be?.asset&&yt!==void 0?Le(yt,Be.asset.decimals):void 0})}),(d||Be?.asset)&&(d||!_e||!!xt)&&!(ie&&xt)&&m(wp,{variant:"supply",destinationSymbol:Ue.symbol,destinationLogoURI:Ue.logoURI,destinationDecimals:Ue.decimals,primaryColor:de,fontFamily:Oe,textPrimary:J,textSecondary:ce,cardBg:te,cardBorder:ue,dark:_,isQuoting:Rn,quoteError:Ht,estimatedOutput:vn}),Tn,Vt!=="idle"&&m(O0,{step:Vt,statusMsg:_t,txHash:un,explorerUrl:Pt,currentStepIdx:mn,palette:Me,cardBg:te,cardBorder:ue,textPrimary:J,textSecondary:ce,fontFamily:Oe,primaryColor:de,onRetry:()=>{kn()}}),ho,fe,Ut&&(Vt==="idle"||!!Hn)&&m(jn,{variant:"error",palette:Me,fontFamily:Oe,style:{marginBottom:"16px"},children:Ut}),m(Kt,{variant:"outline",fullWidth:!0,disabled:Fn,onClick:hn,theme:ne,dark:_,styles:Kn,style:{fontSize:"20px",fontWeight:600,letterSpacing:"1.5px",fontFamily:z},children:An})]})})},D0=()=>{const[e,t]=H("0"),[n,o]=H(null);return{assetAmount:e,setAssetAmount:t,selectedAsset:n,setSelectedAsset:o}};async function M0(e,t,n,o){if(e.amountIn<=0n||e.minimumOutput<0n||!(e.venue.chainIds??[8453]).includes(e.chainId))throw new Error("Choose a positive fixed input, nonnegative minimum output and supported venue chain");const r=ir(e.chainId).find(x=>x.equivalenceGroup==="USDC");if(!r)throw new Error("Configure the execution fee token for this chain");const a={...r,address:r.address,chainId:e.chainId},i=xa({...e.venue,deadline:e.expiresAt}),s=await i.resolve({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:e.amountIn},e.chainId,t);if(!s)throw new Error("No supported fixed route for this conditional swap");let c=e.amountIn,l="";const d=async x=>{if(x<=0n)throw new ur(e.amountIn+1n,e.amountIn);const k=(x===e.amountIn?s:await i.resolve({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:x},e.chainId,t))?.calls.find(y=>y.to.toLowerCase()===e.venue.swapRouter.toLowerCase());if(!k)throw new Error("No supported fixed route for this conditional swap");const{path:E}=Jn({abi:Or,data:k.data}).args[0];if(E.slice(0,42).toLowerCase()!==e.tokenIn.toLowerCase()||`0x${E.slice(-40)}`.toLowerCase()!==e.tokenOut.toLowerCase())throw new Error("The quoted route does not match the requested tokens");c=x;const I=[{to:e.tokenIn,value:0n,data:Ot({abi:pt,functionName:"approve",args:[e.venue.swapRouter,x]})},{to:e.venue.swapRouter,value:0n,data:Ot({abi:Or,functionName:"exactInput",args:[{path:E,recipient:t,deadline:e.expiresAt,amountIn:x,amountOutMinimum:0n}]})}];return l=I[1].data,I},u=n.filter(x=>!x.balanceError&&x.balanceStatus!=="stale"&&x.owner?.toLowerCase()===t.toLowerCase()&&x.location!=="external"),p=u.find(x=>x._source==="wallet"&&x.chainId===e.chainId&&x.address.toLowerCase()===e.tokenIn.toLowerCase()),w=p&&Da(p,u,t,e.chainId),f={requestTimestampMs:Date.now(),currentPaymentAmount:"0",feeOnlyAction:!0,isPayMode:!0,destinationToken:a,embeddedWalletAddress:t,providerEmbeddedAddress:t,externalWalletAddress:void 0,address:t,isNon7702:!1,resolvedChainId:e.chainId,feeExecutionMode:"backend-transfer",buildSpicenetBatch:void 0,selectedAsset:null,needsSwap:!1,resolvedSwap:null,exactOutputSwap:null,quoteAmountOut:null,resolvedTokenIn:a.address,buildActionCalls:x=>d(x)},g={allowRelayerFeeFallback:!1,...f,expiresAt:Number(e.expiresAt),parsedAmount:0,isSourceDestToken:!0,isConnected:!0,ready:!0,authenticated:!0,isDirect:!0,isQuoting:!1,executionTokenAddress:a.address,actionInput:e.amountMode==="input-inclusive"?[{token:e.tokenIn,amount:e.amountIn}]:void 0,actionProceeds:{token:e.tokenOut,resolve:async()=>s.amountOut},feeFundingBalances:u,feeFundingReserve:p?{asset:p,amount:e.amountIn}:void 0,liquidityVenues:{includeDefaults:!1,venues:[{...e.venue,deadline:e.expiresAt,protocol:"aerodrome-slipstream",chainId:e.chainId}]},buildPayChainBatches:x=>na(f,{...x,actionAmountOverride:x?.actionAmountOverride??e.amountIn}),buildSupplyChainBatches:x=>na(f,{...x,actionAmountOverride:x?.actionAmountOverride??e.amountIn}),estimate:o},h=w?await mu({...g,feeOnlyAction:!1,isPayMode:!1,isFeeInclusiveInput:e.amountMode==="input-inclusive",selectedAsset:{asset:p,amount:Le(e.amountIn,p.decimals)},combinedSourceGroup:w},f,Vo):await sc(g,Vo),b=h?.fundingBatches??h?.batches;if(!h||!b?.length||h.preview.totalFee===void 0)throw new Error("Conditional swap fee plan is unavailable");const v=b.flatMap(x=>x.calls).find(x=>x.to.toLowerCase()===e.venue.swapRouter.toLowerCase()&&x.data===l);if(!v)throw new Error("The conditional swap is missing from its fee plan");const C=Jn({abi:Or,data:v.data}).args[0];return v.data=Ot({abi:Or,functionName:"exactInput",args:[{...C,amountOutMinimum:e.minimumOutput}]}),{batches:b,sourceAllocation:h.sourceAllocation,swapAmountIn:c,feeFundingSource:h.fundingSource,feeSourceAmount:h.fundingConversion?.amountInMax??h.proceedsUsed??h.sourceSpendCap,fees:{token:a.address,symbol:a.symbol,decimals:a.decimals,amount:h.preview.totalFee}}}const vp=`0x${"00".repeat(32)}`;function Dc(){return BigInt(`0x${Array.from(crypto.getRandomValues(new Uint8Array(32)),e=>e.toString(16).padStart(2,"0")).join("")}`)}function N0(e,t){const n={chainId:e,to:t.to,value:t.value,selector:t.data.length>=10?t.data.slice(0,10):"0x"};try{const o=Jn({abi:Or,data:t.data});if(o.functionName==="exactInput"){const r=o.args[0];n.fixedInput=r.amountIn,n.minimumOutput=r.amountOutMinimum,r.amountOutMinimum===0n&&(n.disclosure="This fixed-input swap has zero minimum output. The router can execute it for any output amount, including a very poor fill.")}}catch{}return n}function Ip(){const e=Po(),t=gn(sn),n=Tr({owner:e.address,role:"spend-source",enabled:e.isReady}),o=Yr(),r=Z({wallet:e,provider:t,inventory:n,execution:o});r.current={wallet:e,provider:t,inventory:n,execution:o};const a=Z(!0),i=Z(0),s=JSON.stringify([e.address,ze.getBaseUrl(),t?.rpcOverrides,t?.provider,t?.network,t?.mode]),c=Z(s);c.current!==s&&(c.current=s,i.current++);const l=Z(!1),d=Z(new WeakMap),u=Z(new WeakMap),p=Z();we(()=>(a.current=!0,()=>{a.current=!1,i.current++}),[]);const w=re(()=>JSON.stringify([i.current,r.current.wallet.address,ze.getBaseUrl(),r.current.provider?.rpcOverrides,r.current.provider?.provider,r.current.provider?.network,r.current.provider?.mode]),[]),f=I=>{if(!a.current||w()!==I)throw new Error("Wallet, provider or relayer changed during conditional intent processing")},g=re(async I=>{const y=r.current.wallet.address;if(!y||!r.current.wallet.isReady)throw new Error("Connect a ready wallet before preparing a conditional intent");if(r.current.provider?.mode!=="7702")throw new Error("Conditional intents require a fully pre-signed 7702 action");if(!I.clientId||!I.serviceId||!I.triggerSpecification||!I.chainBatches.length)throw new Error("Conditional intent requires a client, service, exact trigger bytes and fixed action batches");if(I.semantics!=="state"&&I.semantics!=="event")throw new Error("Choose state or event trigger semantics");const A=BigInt(Math.floor(Date.now()/1e3));if(I.maxSignalAgeSeconds<1n||I.maxSignalAgeSeconds>86400n||I.validAfter>I.expiresAt||I.expiresAt<=A||I.expiresAt!==fl&&I.expiresAt-A>30n*86400n)throw new Error("Conditional intent validity or signal freshness is outside the supported window");const T=w(),F=structuredClone(I.chainBatches).map(D=>({...D,tokenTransfers:D.tokenTransfers??[]}));if(F.some(D=>!Number.isSafeInteger(D.chainId)||D.chainId<=0||!D.calls.length))throw new Error("Every action batch needs a supported chain and at least one fixed call");const L={...I.replacesIntentId?{replacesIntentId:I.replacesIntentId}:{},owner:y,clientId:I.clientId,serviceId:I.serviceId,authorizationNonce:Dc(),executionDigest:Wi(F,I.expiresAt),executionPlanHash:vp,triggerSpecificationHash:cr(I.triggerSpecification),evaluator:I.evaluator,semantics:I.semantics,maxSignalAgeSeconds:I.maxSignalAgeSeconds,validAfter:I.validAfter,expiresAt:I.expiresAt,maxExecutions:1},R=F.flatMap(D=>D.calls.map(M=>N0(D.chainId,M)));f(T);const N={triggerSpecification:I.triggerSpecification,chainBatches:structuredClone(F),actionSummary:R,additionalSignatureCount:2,delegationAuthorizationCount:new Set(F.filter(D=>!Lo(D.chainId)).map(D=>D.chainId)).size,triggerEnforcedBy:"SpiceFlow conditional-intent service"},O={scope:T,input:{...structuredClone(I),chainBatches:F},prepared:N,baseAuthorization:L};return d.current.set(N,O),N},[w]),h=re(async I=>{I=structuredClone(I);const y=w(),A=r.current.wallet.address;if(!A||!r.current.wallet.isReady||r.current.provider?.mode!=="7702")throw new Error("Connect a ready 7702 wallet before preparing a conditional swap");const T=await Rt(I.chainId,r.current.provider?.rpcOverrides).readContract({address:I.tokenIn,abi:pt,functionName:"balanceOf",args:[A]});f(y);const F=r.current.inventory.assets,L=F.find(M=>M._source==="wallet"&&M.location==="embedded"&&M.chainId===I.chainId&&G(M.address,I.tokenIn)&&G(M.owner,A))??ir(I.chainId).find(M=>G(M.address,I.tokenIn)),R=L?{...L,address:I.tokenIn,chainId:I.chainId,owner:A,location:"embedded",_source:"wallet",balance:T,balanceFormatted:Number(Le(T,L.decimals)),balanceUsd:0,isNative:!1,balanceError:void 0,balanceStatus:void 0}:void 0,N=R?[...F.filter(M=>!(M._source==="wallet"&&M.location==="embedded"&&M.chainId===I.chainId&&G(M.address,I.tokenIn)&&G(M.owner,A))),R]:F;if(((R&&Da(R,N,A,I.chainId))?.availableBalance??T)<I.amountIn)throw new Error("The available wallet and escrow balance does not cover the order input");const O=await M0(I,A,N,r.current.execution.estimate);f(y);const D=await g({...I,chainBatches:O.batches});if(O.sourceAllocation){const M=O.sourceAllocation;d.current.get(D).validateFunding=()=>ji(O.batches,A,{walletFundingRequirement:{chainId:M.chainId,token:M.token,amount:M.walletInPlace}})}return D.fees=O.fees,D.feeFundingSource=O.feeFundingSource,D.feeSourceAmount=O.feeSourceAmount,D.swapAmountIn=O.swapAmountIn,D},[g,w]),b=re(async I=>{const y=d.current.get(I);if(!y)throw new Error("Prepare this conditional intent in the current hook before signing");f(y.scope);const A=r.current.wallet.address;if(!A||!r.current.wallet.actions.signMessage)throw new Error("Wallet is not ready to sign this conditional intent");if(y.request)return y.prepared;if(l.current)throw new Error("A conditional authorization is already being signed");l.current=!0;try{await y.validateFunding?.(),f(y.scope);const T=await qi({chainBatches:y.input.chainBatches,signingAddress:A,actions:r.current.wallet.actions});f(y.scope),await y.validateFunding?.(),f(y.scope);const F=await Li(r.current.wallet.actions,y.input.chainBatches,y.input.expiresAt);f(y.scope);const L=T.map(({yParity:q,...X})=>({...X,...q===void 0?{}:{yParity:q}})),R=dl(y.input.chainBatches.map(q=>({...q,tokenTransfers:q.tokenTransfers??[]})),L),N={...y.baseAuthorization,executionPlanHash:R},O=pf(N),D=await r.current.wallet.actions.signMessage({raw:O});f(y.scope);const M=typeof D=="string"?D:D.signature,S=Oo(y.input.chainBatches),U={authorization:N,authorizationSignature:M,triggerSpecification:y.input.triggerSpecification,action:{user:A,...y.input.executionAmountMode?{amountMode:y.input.executionAmountMode}:{},chainAuthorizations:L,intents:[{mode:"7702",signatureType:"ecdsa",signature:F,nbf:0,exp:Number(y.input.expiresAt),chainBatches:y.input.chainBatches.map((q,X)=>({hash:S[X].hash,chainId:q.chainId,tokenTransfers:q.tokenTransfers??[],calls:q.calls}))}]}};return y.request=structuredClone(U),y.authorizationSignature=M,y.chainAuthorizations=T,y.prepared={...structuredClone(y.prepared),authorization:structuredClone(N),id:ff(O)},d.current.set(y.prepared,y),u.current.set(y.prepared,y),y.prepared}finally{l.current=!1}},[]),v=re(async I=>{const y=u.current.get(I);if(!y?.request)throw new Error("Sign the prepared conditional intent before registration");f(y.scope);const A=await ze.registerConditionalIntent(y.request);return f(y.scope),A},[]),C=re(async I=>{const y=w(),A=p.current;if(A&&A.scope===y&&A.serviceId===I&&A.expiresAt>Date.now()/1e3+30)return A.token;const T=r.current.wallet.address;if(!T||!r.current.wallet.isReady)throw new Error("Connect a wallet before reading conditional intent status");const F={owner:T,reader:T,serviceId:I,intentId:vp,expiresAt:BigInt(Math.floor(Date.now()/1e3)+3600),nonce:Dc()},L=mf(F),R=await r.current.wallet.actions.signMessage({raw:L});f(y);const N=typeof R=="string"?R:R.signature,O=await ze.createConditionalReadToken({...F,signature:N});return f(y),p.current={scope:y,serviceId:I,token:O.readToken,expiresAt:O.expiresAt},O.readToken},[w]),x=re(async(I,y)=>{const A=w(),T=await C(y);f(A);const F=await ze.getConditionalIntent(I,T);return f(A),F},[C,w]),k=re(async(I,y)=>{const A=w(),T=await C(I);f(A);const F=await ze.listConditionalIntents(T,y);return f(A),F},[C,w]),E=re(async(I,y)=>{const A=w(),T=r.current.wallet.address;if(!T)throw new Error("Connect a wallet before cancelling a conditional intent");const F={owner:T,serviceId:y,intentId:I,cancellationNonce:Dc(),expiresAt:BigInt(Math.floor(Date.now()/1e3)+300)},L=hf(F),R=await r.current.wallet.actions.signMessage({raw:L});f(A);const N=typeof R=="string"?R:R.signature,O={...F,signature:N},D=await ze.cancelConditionalIntent(I,O);return f(A),D},[w]);return{prepare:g,prepareSwap:h,sign:b,register:v,authorizeRead:C,get:x,list:k,cancel:E}}function P0(e,t=0){const[n,o]=H(t),r=e[n]??e[0],a=Ee(()=>r?BigInt(Math.round(r.months*30*24*3600)):0n,[r?.months]);return{selectedDurationIdx:n,setSelectedDurationIdx:o,selectedDuration:r,durationSeconds:a}}function U0(e){const t=gn(sn),n=t?.embeddedWalletAddress,o=e?.enabled===!1?void 0:n,r=t?.network?{network:t.network,pollIntervalMs:e?.pollIntervalMs,chainIds:e?.chainIds??t.supportedChainIds,discoverWalletBalances:e?.discoverWalletBalances}:void 0;return{...fp(o,r),embeddedWalletAddress:n}}function W0(){const{actions:e,isReady:t,isAuthenticated:n}=Po(),o=gn(sn)?.embeddedWalletAddress,r=Z(!1),a=Z(0),i=Z(null),s=Z(e),[c,l]=H(0);s.current=e,we(()=>{r.current=!1,a.current=0,i.current&&(clearTimeout(i.current),i.current=null)},[o]),we(()=>{if(!o||!t||!n||r.current)return;r.current=!0;let d=!1;return(async()=>{await Io(2e3);try{await of(o,s.current.signMessage),a.current=0}catch(u){console.warn("[SmartWallet] Registration failed:",u),r.current=!1,!d&&a.current<3&&(a.current+=1,i.current=setTimeout(()=>{l(p=>p+1)},5e3))}})(),()=>{d=!0,i.current&&(clearTimeout(i.current),i.current=null)}},[o,t,n,c])}function L0(){const e=gn(sn),t=(e?.mode??"7702")==="7702"?"embedded":"external",n=e?.setMode,o=re(r=>n?.(r==="embedded"?"7702":"ondemand"),[n]);return{mode:t,setMode:o,ownerAddress:t==="embedded"?e?.embeddedWalletAddress:e?.externalWalletAddress,embeddedAddress:e?.embeddedWalletAddress,externalAddress:e?.externalWalletAddress,isUserWhitelisted:e?.isUserWhitelisted??null,isWhitelistChecking:e?.isWhitelistChecking??!1,isWhitelistGateActive:e?.isWhitelistGateActive??!1,whitelistCheck:e?.whitelistCheck}}function q0({amount:e,enabled:t=!0,...n}){const o=gn(sn),[r,a]=H(null);we(()=>{a(l=>l&&l.amount!==e?{...l,amount:e}:l)},[e]);const i=Ee(()=>{if(!r)return null;const l=r.asset,d=l.location??(l._source==="spice"?"rollup":l._fundingWallet??((o?.mode??"7702")==="7702"?"embedded":"external"));return{...r,asset:{...l,location:d,owner:l.owner??(d==="external"?o?.externalWalletAddress:o?.embeddedWalletAddress),...l._wrapFromNative?{address:zt,isNative:!0,positionId:void 0}:{}}}},[r,o?.mode,o?.embeddedWalletAddress,o?.externalWalletAddress]),s=La({...n,enabled:t,selectedAsset:i,paymentAmount:n.amountDirection==="output"?e:void 0}),c=re(l=>a({asset:l,amount:e}),[e]);return{sources:s.assets.selectable,getAvailableBalance:s.assets.getAvailableBalance,availableBalance:s.amount.availableBalance,selectedAsset:s.selectedAsset,setSelectedAsset:a,selectAsset:c,quote:{isQuoting:s.quote.isQuoting,error:s.quote.quoteError,estimatedInput:s.quote.estimatedInput,estimatedOutput:s.quote.estimatedOutput,estimatedMinOutput:s.fees.destinationAmount===void 0||!n.destinationToken?null:Le(s.fees.destinationAmount,n.destinationToken.decimals),isDirect:s.quote.isDirect,needsSwap:s.quote.needsSwap},feePreview:s.fees.preview,isFeePreviewLoading:s.fees.isLoading,feePreviewError:s.fees.error||s.status.error,canSubmit:s.canExecute,execute:s.submit,isExecuting:s.status.isExecuting,step:s.status.step,statusMsg:s.status.statusMsg,status:s.status,txHash:s.status.txHash,refreshAssets:s.assets.refreshSpiceAssets,resolveMaxAmount:s.resolveMaxAmount,retryFinalization:s.retryFinalization,refreshStatus:s.refreshStatus}}function z0(e){const t=Po(),n=Ip(),o=Z(new WeakMap),r=Z(new WeakMap),a=gn(sn),i=Yr(),s=Z(i);s.current=i;const[c,l]=H({step:"idle",isExecuting:!1,message:"",error:null,pending:!1}),[d,u]=H(!1),p=Z(void 0),w=Z(e?.combineSourceBalances);w.current=e?.combineSourceBalances;const f=Z({wallet:t,provider:a});f.current={wallet:t,provider:a};const g=Z(!1),h=Z(!1),b=Z(null),v=Z(!0),C=Z(0),x=JSON.stringify([t.address,t.isReady,t.isAuthenticated,t.isConnected,ze.getBaseUrl(),a?.rpcOverrides,a?.provider,a?.network,a?.mode,a?.allowedTokens,a?.isWhitelistGateActive]),k=Z(x);k.current!==x&&(k.current=x,C.current++),Wo(()=>(v.current=!0,()=>{v.current=!1,C.current++,b.current?.abort()}),[]),Wo(()=>(u(!1),p.current=void 0,l({step:"idle",isExecuting:!1,message:"",error:null,pending:!1}),()=>{b.current?.abort()}),[x]);const E=Z(new WeakMap),I=Z(new WeakMap),y=()=>{if(!v.current)throw new Error("Order hook is no longer mounted");if(!f.current.wallet.isReady||!f.current.wallet.isAuthenticated||!f.current.wallet.isConnected||f.current.provider?.isWhitelistGateActive)throw new Error("Connect the current wallet before continuing the order");return JSON.stringify([C.current,f.current.wallet.address,f.current.wallet.isReady,f.current.wallet.isAuthenticated,f.current.wallet.isConnected,ze.getBaseUrl(),f.current.provider?.rpcOverrides,f.current.provider?.provider,f.current.provider?.network,f.current.provider?.mode,f.current.provider?.allowedTokens,f.current.provider?.isWhitelistGateActive])},A=re(async S=>{const U=y(),q=p.current;u(!1);const X=await ze.supportsAutomaticContinuation();if(y()!==U||p.current!==q||h.current)return!1;if(q?.outcomePending==="registration"){const Y=q.conditional?await q.conditional.get():await ze.getLimitOrder(_i(q.request));if(y()!==U)return!1;if(q.conditional?!("conditionalIntentId"in Y)||Y.conditionalIntentId!==q.conditional.id:!("id"in Y)||Y.id!==_i(q.request)||!G(Y.user,q.request.user)||Y.chainId!==q.input.chainId||!G(Y.tokenIn,q.input.tokenIn)||!G(Y.tokenOut,q.input.tokenOut)||Y.minimumOutput!==q.input.minimumOutput.toString())throw new Error("The original order registration could not be verified");return q.resolvedOrder=Y,q.placement=void 0,q.outcomePending=void 0,l({step:"success",isExecuting:!1,message:"Limit order placed",error:null,pending:!1}),u(!0),!0}if(q?.outcomePending==="funding"){if(!q.fundingActionId&&q.fundingSubmissionKey){const oe=await ze.getActionBySubmission(q.request.user,q.fundingSubmissionKey);if(y()!==U)return!1;q.fundingActionId=oe?.actionId}if(!q.fundingActionId)return l(oe=>({...oe,pending:!0})),!1;const Y=await ze.getIntentRecoveryStatus(q.fundingActionId,0);if(y()!==U)return!1;if(Y==="unresolved")return l(oe=>({...oe,pending:!0})),!1;if(Y==="completed"){q.fundingCompleted=!0;const oe=await er(q.request.user,q.input.chainId,q.input.tokenIn);if(y()!==U)return!1;if(oe.available<q.input.grossAmount)return l(he=>({...he,pending:!0})),!1;q.placement=void 0}q.outcomePending=void 0}const K=X?S??await ze.getWalletActions(f.current.wallet.address,{pendingOnly:!0}):[];if(y()!==U||h.current||p.current!==q)return!1;let Q=!1;for(const Y of K){if(Y.intents.length!==1){Q=!0;break}const oe=await ze.getIntentRecoveryStatus(Y.actionId,0);if(y()!==U)return!1;if(oe==="unresolved"){Q=!0;break}}return l(Y=>({...Y,pending:Q,message:Q?"A previous transaction is still pending":Y.message})),u(!Q),!Q},[]),T=re(()=>A(),[A]),F=As(t.address,c.pending&&t.isReady&&t.isAuthenticated&&t.isConnected,{pendingOnly:!0});we(()=>{if(!c.pending||F.loading||F.error||!F.updatedAt)return;const S=C.current;A(F.actions).catch(()=>{v.current&&C.current===S&&u(!1)})},[F.revision,F.loading,F.error,c.pending,A]),we(()=>{if(!t.address||!t.isReady||!t.isAuthenticated||!t.isConnected||a?.isWhitelistGateActive)return;const S=C.current;T().catch(()=>{v.current&&C.current===S&&(u(!1),l(U=>({...U,pending:!0,message:"Previous transaction status is unavailable"})))})},[x,T]);const L=re(async(S,U,q)=>{if(h.current||p.current?.outcomePending)throw new Error("Resolve the previous order before preparing another");const X=y(),K=w.current===!0&&!U&&!q?.skipFunding;if(S=structuredClone(S),!await T())throw new Error("Resolve the previous transaction before preparing another order");if(y()!==X)throw new Error("Wallet or provider changed while preparing the order");const Q=gl(crypto.getRandomValues(new Uint8Array(32))),Y=f.current.wallet.address;if(!Y)throw new Error("Connect a wallet before preparing an order");if(f.current.provider?.mode!=="7702")throw new Error("Limit orders require the 7702 wallet mode");if(!ns(S.chainId,f.current.provider?.rpcOverrides))throw new Error(`No RPC is available for order chain ${S.chainId}`);const oe=Date.now();if(!Number.isSafeInteger(S.expiresAt)||S.expiresAt<=Math.floor(oe/1e3)||S.expiresAt>Math.floor(oe/1e3)+30*86400&&!(q&&BigInt(S.expiresAt)===fl)||S.grossAmount<=0n||S.minimumOutput<=0n)throw new Error("Enter a positive amount, minimum output and expiry within 30 days");const he=await er(Y,S.chainId,S.tokenIn);if(y()!==X)throw new Error("Wallet or provider changed while preparing the order");let ve;const ae=S.grossAmount;if(K&&he.available<ae){if(!await ze.supportsAutomaticContinuation())throw new Error("Automatic order funding requires backend recovery support");const Me=Yt(S.tokenIn,S.chainId);if(!Me)throw new Error("Automatic order funding requires a supported escrow token");const Oe=Rt(S.chainId,f.current.provider?.rpcOverrides),z=Ae(S.tokenIn)?await Oe.getBalance({address:Y}):await Oe.readContract({address:S.tokenIn,abi:pt,functionName:"balanceOf",args:[Y]}),V={address:S.tokenIn,chainId:S.chainId,owner:Y,location:"embedded",_source:"wallet",_fundingWallet:"embedded",decimals:Me.decimals,symbol:Me.symbol,name:Me.name,balance:z,balanceFormatted:Number(Le(z,Me.decimals)),balanceUsd:0,isNative:Ae(S.tokenIn)},te=Bo(V,"spend-source",f.current.provider??{},{address:S.tokenIn,chainId:S.chainId},void 0,{requiresEscrow:!0});if(!te.eligible)throw new Error(te.reason??"Order funding is unavailable");const ue=ae-he.available;if(z<ue)throw new Error("Cash does not cover the limit order budget");const J=await Bc({address:Y,requireSimulation:!0,depositQuote:{asset:V,amount:ue,token:S.tokenIn,chainId:S.chainId}});if(y()!==X)throw new Error("Wallet or provider changed while preparing the order");if(J.fee<0n||J.fee>=ue||J.net!==ue-J.fee)throw new Error("Cash amount does not cover the order funding fee");ve={source:V,sourceSpendCap:ue,depositAmount:J.net,feeAmount:J.fee},S.grossAmount=ae-J.fee}const ie=S.venue??ba;if(!(ie.chainIds??[8453]).includes(S.chainId))throw new Error("Venue does not support the destination chain");const ne=xa(ie);let _=S.grossAmount,de=0n,W=0n;for(let Me=0;Me<5;Me++){const Oe=await ne.resolve({type:"swap",tokenIn:S.tokenIn,tokenOut:S.tokenOut,amountIn:_},S.chainId,Y);if(!Oe)throw new Error("No supported route for this order");const z=Oe.calls.find(Ue=>G(Ue.to,ie.swapRouter));if(!z)throw new Error("Order route is missing its swap");const{path:V}=Jn({abi:Or,data:z.data}).args[0],te=mh({replacesOrderId:U,conditional:!!q,user:Y,chainId:S.chainId,tokenIn:S.tokenIn,router:ie.swapRouter,path:V,grossAmount:S.grossAmount,amountIn:_,minimumOutput:S.minimumOutput,expiresAt:S.expiresAt,platformFee:de,gasBridgeFee:W,requestTimestampMs:oe,requestNonce:Q});if(te.intents[0].mode!=="7702")throw new Error("Unsupported order mode");const ue=structuredClone(te),J=ue.intents[0];if(J.mode!=="7702")throw new Error("Unsupported order mode");const ce=Es(J.chainBatches,Y);ce[1].calls=Oe.calls;const He=Oo(ce);J.chainBatches=ce.map((Ue,be)=>({...J.chainBatches[be],calls:Ue.calls,hash:He[be].hash}));const Xe=(await ze.estimateActionFees(ue)).intents[0]?.batches.find(Ue=>Ue.chainId===S.chainId);if(!Xe)throw new Error("Order fee quote is unavailable");const Ve=Yo(Xe),se=S.grossAmount-Ve.totalFee;if(se<=0n)throw new Error("Cash amount does not cover order fees");if(y()!==X)throw new Error("Wallet or provider changed while preparing the order");if(se===_&&de===Ve.spicenetFee&&W===Ve.gasFee+Ve.bridgeFee){const Ue={user:Y,request:te,amountIn:_,minimumOutput:S.minimumOutput,feeAmount:Ve.totalFee,grossAmount:S.grossAmount,funding:ve,path:V};return E.current.set(Ue,{scope:X,amendment:U?{id:U}:void 0,request:structuredClone(te),input:structuredClone(S),cashAmount:he.available,combineSourceBalances:K,funding:ve&&structuredClone(ve)}),Ue}_=se,de=Ve.spicenetFee,W=Ve.gasFee+Ve.bridgeFee}throw new Error("Order fees did not converge; prepare the order again")},[]),R=re(async S=>{if(g.current)throw new Error("An order signature is already in progress");const U=E.current.get(S),q=U?.scope,X=()=>{if(!q||y()!==q||!G(f.current.wallet.address,U?.request.user))throw new Error("Prepare the order again for the current wallet and provider")};X();const K=structuredClone(U.request),Q=K.intents[0];if(Q.mode!=="7702"||Q.exp<=Date.now()/1e3)throw new Error("Order expired before signing");g.current=!0;try{const Y=f.current.wallet.actions;if(K.chainAuthorizations=await qi({chainBatches:Q.chainBatches,signingAddress:K.user,actions:Y,beforeSign:async()=>X()}),X(),Q.signature=await Li(Y,Q.chainBatches,BigInt(Q.exp)),X(),Q.exp<=Date.now()/1e3)throw new Error("Order expired during signing");return I.current.set(K,{scope:q,amendment:U.amendment,request:structuredClone(K),input:U.input,cashAmount:U.cashAmount,combineSourceBalances:U.combineSourceBalances,funding:U.funding}),K}finally{g.current=!1}},[]),N=re(async S=>{const U=y(),{signature:q}=await f.current.wallet.actions.signMessage(fh(S));if(y()!==U)throw new Error("Wallet or provider changed during cancellation");return ze.cancelLimitOrder(S,q)},[]),O=re(S=>{if(!S||y()!==S.scope)throw new Error("Sign the order for the current wallet and provider before placing it");if(S.placement)return S.placement;if(S.resolvedOrder)return Promise.resolve(S.resolvedOrder);if(S.outcomePending)throw new Error("The original order outcome is still pending");if(h.current)throw new Error("An order placement is already in progress");const U=S.request.intents[0],q=()=>{if(y()!==S.scope)throw new Error("Wallet or provider changed during order placement");if(U.mode!=="7702"||U.exp<=Date.now()/1e3)throw new Error("Order expired before placement")};q(),h.current=!0,p.current=S;const X=new AbortController;b.current=X;let K=!1;S.placement=(async()=>{l({step:"placing",isExecuting:!0,message:"Preparing the limit order\u2026",error:null,pending:!1});let Y=!1,oe=S.fundingCompleted===!0,he=!1;try{const ve=await er(S.request.user,S.input.chainId,S.input.tokenIn);if(q(),S.funding&&!oe){const ne=S.funding;if(ve.available!==S.cashAmount)throw new Error("Order cash or reservations changed. Review the full order again");const _=async()=>{q();const Oe=await er(S.request.user,S.input.chainId,S.input.tokenIn);if(q(),Oe.available!==S.cashAmount)throw new Error("Order cash or reservations changed. Review again")},de=await Bc({address:S.request.user,requireSimulation:!0,depositQuote:{asset:ne.source,amount:ne.sourceSpendCap,token:S.input.tokenIn,chainId:S.input.chainId}});if(q(),de.fee>ne.feeAmount)throw new Error("Order funding fees changed. Review again");const W=[{chainId:S.input.chainId,tokenTransfers:[],calls:Oc({escrowAddress:To(S.input.chainId),tokenAddress:S.input.tokenIn,isNative:Ae(S.input.tokenIn),amount:ne.depositAmount,gasFeeAmount:ne.feeAmount})}];l({step:"funding",isExecuting:!0,message:"Funding the limit order\u2026",error:null,pending:!1}),S.fundingSubmissionKey??(S.fundingSubmissionKey=gl(crypto.getRandomValues(new Uint8Array(32)))),await s.current.execute(W,S.input.tokenIn,0n,Oe=>{Oe.actionId&&(Y=!0,S.fundingActionId=Oe.actionId)},X.signal,{userOverride:S.request.user,idempotencyKey:S.fundingSubmissionKey,useCustomTransfers:!0,skipPreSubmitFeeEstimate:!0,requireDestinationReceipt:!0,walletFundingRequirement:{chainId:S.input.chainId,token:S.input.tokenIn,amount:ne.sourceSpendCap},validateBeforeSubmit:_}),oe=!0,S.fundingCompleted=!0,q(),l({step:"waiting-credit",isExecuting:!0,message:"Waiting for cash credit\u2026",error:null,pending:!1});const Me=await Fd({deposits:[{chainId:S.input.chainId,token:S.input.tokenIn,amount:ne.depositAmount}],baseline:ve.entries,fetchEntries:async()=>(q(),as(S.request.user)),signal:X.signal});if(q(),!Me)throw new Error("Funding was submitted; the order is not placed while cash credit is pending. Check wallet activity before trying again")}const ae=await er(S.request.user,S.input.chainId,S.input.tokenIn);if(q(),S.combineSourceBalances&&ae.available<S.input.grossAmount)throw new Error("Cash is not available for this order. No order was placed");l({step:"placing",isExecuting:!0,message:"Placing the limit order\u2026",error:null,pending:!1}),he=!0;const ie=S.conditional?await S.conditional.register():S.amendment?await ze.amendLimitOrder(S.amendment.id,structuredClone(S.request)):await ze.createLimitOrder(structuredClone(S.request));return q(),S.resolvedOrder=ie,l({step:"success",isExecuting:!1,message:"Limit order placed",error:null,pending:!1}),ie}catch(ve){const ae=he&&ve instanceof xe&&ve.context.httpStatus===400&&ve.context.submissionStatus==="rejected";Y||(Y=ve?.context?.submissionStatus==="unknown");const ie=ve instanceof Error?ve:new Error("The order outcome could not be verified"),ne=he&&!ae?"Order placement could not be verified. Check the order list before placing another order.":Y?oe?"Cash funding completed, but the order is not placed. Check available cash and wallet activity before trying again.":"Cash funding could not be verified and no order was placed. Check wallet activity before trying again.":ie.message;S.outcomePending=he&&!ae?"registration":Y||oe?"funding":void 0,K=!he&&!Y&&!oe;try{v.current&&y()===S.scope&&l({step:"error",isExecuting:!1,message:ne,error:ie,pending:!!S.outcomePending})}catch{}throw ie}finally{h.current=!1,b.current===X&&(b.current=null)}})();const Q=S.placement;return Q.catch(()=>{K&&S.placement===Q&&(S.placement=void 0)}),Q},[]),D=re(S=>O(I.current.get(S)),[O]),M=re(async(S,U,q)=>{const X=y(),K=await ze.getLimitOrder(S);if(y()!==X||!G(K.user,f.current.wallet.address))throw new Error("Order does not belong to the current wallet");if(K.status!=="open"||Date.parse(K.expiresAt)<=Date.now())throw new Error("This order is no longer amendable");return L({chainId:K.chainId,tokenIn:K.tokenIn,tokenOut:K.tokenOut,grossAmount:BigInt(K.reservedAmount),minimumOutput:U,expiresAt:Math.floor(Date.parse(K.expiresAt)/1e3),venue:q},S)},[L]);return{conditional:{...n,async prepareOrder(S,U,q,X){if(S=structuredClone(S),U=structuredClone(U),S.expiresAt!==Number(U.expiresAt))throw new Error("Order and condition expiry must match");if(q!=="cash-first"&&q!=="execution-balances")throw new Error("Choose an order funding policy");if(q==="execution-balances")return n.prepareSwap({...U,chainId:S.chainId,tokenIn:S.tokenIn,tokenOut:S.tokenOut,amountIn:S.grossAmount,minimumOutput:S.minimumOutput,amountMode:"fixed-input",venue:S.venue??ba});const K=y(),Q=await L(S,void 0,{skipFunding:!!U.replacesIntentId});if(y()!==K)throw new Error("Wallet or provider changed while preparing the order");const Y=Q.request.intents[0];if(Y.mode!=="7702")throw new Error("Unsupported order mode");const oe=await n.prepare({...U,executionAmountMode:"gross_input",triggerSpecification:X?.(Q.grossAmount)??U.triggerSpecification,chainBatches:Y.chainBatches});if(y()!==K)throw new Error("Wallet or provider changed while preparing the order");return oe.fees={token:S.tokenIn,symbol:Yt(S.tokenIn,S.chainId)?.symbol??"",decimals:Yt(S.tokenIn,S.chainId)?.decimals??18,amount:Q.feeAmount+(Q.funding?.feeAmount??0n)},oe.swapAmountIn=Q.amountIn,oe.fundingFeeAmount=Q.funding?.feeAmount??0n,o.current.set(oe,E.current.get(Q)),oe},async sign(S){const U=o.current.get(S);if(U&&y()!==U.scope)throw new Error("Order wallet or provider changed");const q=await n.sign(S);if(U){if(y()!==U.scope)throw new Error("Order wallet or provider changed during signing");const X=q.id,K=q.authorization.serviceId;U.conditional={id:X,register:()=>n.register(q),get:()=>n.get(X,K)},o.current.set(q,U),r.current.set(q,U)}return q},register(S){const U=o.current.get(S);if(!U)return n.register(S);if(r.current.get(S)!==U)throw new Error("Sign the current order before registration");return O(U)}},status:c,canPrepare:d&&!c.pending&&!c.isExecuting&&t.isReady&&t.isAuthenticated&&t.isConnected&&!a?.isWhitelistGateActive,canPlace:S=>{const U=I.current.get(S);try{return!!U&&d&&!c.pending&&y()===U.scope&&U.request.intents[0].mode==="7702"&&U.request.intents[0].exp>Date.now()/1e3&&!U.outcomePending&&!h.current}catch{return!1}},refreshStatus:T,prepareOrder:S=>L(S),prepareAmendment:M,signOrder:R,placeOrder:D,getOrder:S=>ze.getLimitOrder(S),listOrders:S=>{if(!t.address)throw new Error("Connect a wallet to list orders");return ze.listLimitOrders(t.address,S)},cancelOrder:N}}Ff();export{ba as AERODROME_BASE_CONFIG,Xu as AccountDisplay,Rc as AddFundsLink,Fg as AssetBalance,oa as AssetSelector,i1 as CONDITIONAL_INTENT_UNTIL_CANCELLED,Ld as CheckIcon,Xr as ChevronIcon,Oa as CloseIcon,bs as DEFAULT_LIQUIDITY_VENUES,ko as DetailRow,vo as METRIC_CONFIG,c1 as NATIVE_TOKEN_ADDRESS,Ki as ProviderLogin,ki as SATSUMA_CITREA_CONFIG,l1 as SPICENET_NATIVE_CHAIN_ID,d1 as SPICE_COMBINED_FEE_RECIPIENT,u1 as SPICE_GAS_FEE_RECIPIENT,Hi as SPICE_PLATFORM_FEE_BPS,p1 as SPICE_PLATFORM_FEE_RECIPIENT,f1 as SPICE_SOLVER_ADDRESS,kc as SearchInput,I0 as SelectChainModal,v0 as SpiceAccount,mp as SpiceDeposit,e1 as SpiceFlowProvider,sn as SpiceFlowProviderContext,E0 as SpiceLock,R0 as SpiceSupply,bc as SpiceWithdraw,xe as SpiceflowError,Ko as Spinner,jn as StatusBanner,Ml as UNIV3_ARBITRUM_CONFIG,Rl as UNIV3_BASE_CONFIG,Dl as UNIV3_ETHEREUM_CONFIG,Nl as UNIV3_ROBINHOOD_CONFIG,Pl as UNIV3_ROBINHOOD_SUSHI_CONFIG,Ql as UNIV4_BASE_CONFIG,jl as UNIV4_ROBINHOOD_CONFIG,qo as V4_NATIVE_CURRENCY,m1 as applySlippage,ka as areEquivalentOnChains,Bo as assetCapability,ke as assetPositionId,t1 as buildDarkPalette,n1 as buildLightPalette,Sr as buildLiquidityVenues,na as buildPayChainBatches,th as buildRoutedBatches,Zr as buildSpicenetWithdrawalBatch,Ps as buildSupplyChainBatches,h1 as buildUniV3SwapCalls,rs as calculateBpsFee,ql as createAerodromeExactOutputVenue,xa as createAerodromeVenue,Na as createExactOutputRegistry,zl as createLiquidityRegistry,kl as createMetricExactOutputVenue,Il as createMetricVenue,Ai as createSatsumaExactOutputVenue,va as createSatsumaVenue,Ai as createUniV3ExactOutputVenue,va as createUniV3Venue,ed as createUniV4ExactOutputVenue,_l as createUniV4Venue,oi as duration,qr as easing,Fl as encodeUniV3ExactOutputCall,Vo as estimateFeePreview,Ch as estimateRequiredGrossFunding,Oh as estimateSupplyMaxAmount,Tu as executePay,Fu as executeSupply,Kr as fetchBalances,$o as findEquivalentOnChain,tt as font,Qr as getAssetChainTokenCandidates,Ol as getBestUniV3ExactOutputQuote,Tl as getBestUniV3Quote,Ct as getChainConfig,g1 as getChainIdsByNetwork,uo as getChainName,w1 as getEscrowContractAddress,jr as isExternalSource,Ua as isMultiSourceFundingAsset,y1 as isNativeToken,o1 as isSpiceflowError,b1 as isSpicenetChainId,Vh as isSupportedSupplyAsset,_i as limitOrderId,x1 as normalizeNativeTokenAddress,ci as radius,ze as relayerService,fo as resolveAssetTokenAddressOnChain,sd as resolveFundedToken,Wa as resolveInputSupplySwapQuote,eh as resolveRoute,r1 as resolveTheme,El as reverseUniV3Path,ta as scaleTokenAmount,v1 as spicenetAbi,I1 as spicenetWithdrawalAbi,wo as transition,Uo as useAssetDisplay,D0 as useAssetInput,a1 as useIsUserWhitelisted,P0 as useLockDuration,W0 as useSmartWallet,L0 as useSpiceAccount,q0 as useSpiceAction,As as useSpiceActionActivity,xd as useSpiceAssets,dn as useSpiceBrand,Ip as useSpiceConditionalIntents,Yr as useSpiceExecution,Tr as useSpiceInventory,z0 as useSpiceLimitOrders,hp as useSpiceLock,U0 as useSpicePendingDeposits,La as useSpiceSupply,qu as useSupplyAssets,Qu as useSupplyQuote,vc as useTokenLogo,Po as useWallet,Fa as useWalletBalances,Cr as z};