PageSourceSearch

https://juicebox.money/_next/static/chunks/5894-d3700452c73dd4f8.j…=01dd2d7348b4095893d28c8cb15ec6daf5bc2a35

js juicebox.money collected 2026-10-02 03:07:43 UTC 46,274 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5894],{1220:(e,t,n)=>{n.d(t,{b:()=>function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){let i,r;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)&&Array.isArray(n)){if((i=t.length)!==n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if("function"==typeof t.valueOf&&t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if("function"==typeof t.toString&&t.toString!==Object.prototype.toString)return t.toString()===n.toString();let s=Object.keys(t);if((i=s.length)!==Object.keys(n).length)return!1;for(r=i;0!=r--;)if(!Object.hasOwn(n,s[r]))return!1;for(r=i;0!=r--;){let i=s[r];if(i&&!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n}})},2572:(e,t,n)=>{n.d(t,{U:()=>i});function i(e){return e}},4154:(e,t,n)=>{n.d(t,{b:()=>i});var i=n(64411)},4693:(e,t,n)=>{n.d(t,{e:()=>u});var i=n(48934),r=n(79830);async function s(e,t){let n;if((n="function"==typeof t.connector?e._internal.connectors.setup(t.connector):t.connector).uid===e.state.current)throw new r.nM;try{e.setState(e=>({...e,status:"connecting"})),n.emitter.emit("message",{type:"connecting"});let{connector:i,...r}=t,s=await n.connect(r);return n.emitter.off("connect",e._internal.events.connect),n.emitter.on("change",e._internal.events.change),n.emitter.on("disconnect",e._internal.events.disconnect),await e.storage?.setItem("recentConnectorId",n.id),e.setState(e=>({...e,connections:new Map(e.connections).set(n.uid,{accounts:r.withCapabilities?s.accounts.map(e=>"object"==typeof e?e.address:e):s.accounts,chainId:s.chainId,connector:n}),current:n.uid,status:"connected"})),{accounts:r.withCapabilities?s.accounts.map(e=>"object"==typeof e?e:{address:e,capabilities:{}}):s.accounts,chainId:s.chainId}}catch(t){throw e.setState(e=>({...e,status:e.current?"connected":"disconnected"})),t}}var o=n(12115),a=n(42482),c=n(62451);function u(e={}){let t=(0,a.U)(e),n=function(e,t={}){return{...t.mutation,mutationFn:async t=>s(e,t),mutationKey:["connect"]}}(t,e),r=(0,i.n)(n);return(0,o.useEffect)(()=>t.subscribe(({status:e})=>e,(e,t)=>{"connected"===t&&"disconnected"===e&&r.reset()}),[t,r.reset]),{...r,connect:r.mutate,connectAsync:r.mutateAsync,connectors:(0,c.U)({config:t})}}},5788:(e,t,n)=>{n.d(t,{X:()=>i});function i(e){let t=e.state.current,n=e.state.connections.get(t),i=n?.accounts,r=i?.[0],s=e.chains.find(e=>e.id===n?.chainId),o=e.state.status;switch(o){case"connected":return{address:r,addresses:i,chain:s,chainId:n?.chainId,connector:n?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:o};case"reconnecting":return{address:r,addresses:i,chain:s,chainId:n?.chainId,connector:n?.connector,isConnected:!!r,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:o};case"connecting":return{address:r,addresses:i,chain:s,chainId:n?.chainId,connector:n?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:o};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:o}}}},6101:(e,t,n)=>{let i;n.d(t,{Z:()=>b});var r=n(74696);let s=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>s(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>s(t)(e)}}},o=e=>{let t,n=new Set,i=(e,i)=>{let r="function"==typeof e?e(t):e;if(!Object.is(r,t)){let e=t;t=(null!=i?i:"object"!=typeof r||null===r)?r:Object.assign({},t,r),n.forEach(n=>n(t,e))}},r=()=>t,s={setState:i,getState:r,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(i,r,s);return s},a=e=>e?o(e):o;var c=n(25601),u=n(4154);class l{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new u.b})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){let n=t[0];this._emitter.emit(e,{uid:this.uid,...n})}listenerCount(e){return this._emitter.listenerCount(e)}}function h(e,t){return JSON.parse(e,(e,n)=>{let i=n;return i?.__type==="bigint"&&(i=BigInt(i.value)),i?.__type==="Map"&&(i=new Map(i.value)),t?.(e,i)??i})}function d(e,t){return e.slice(0,t).join(".")||"."}function f(e,t){let{length:n}=e;for(let i=0;i<n;++i)if(e[i]===t)return i+1;return 0}function p(e,t,n,i){var r;let s,o,a,c;return JSON.stringify(e,(r=(e,n)=>{let i=n;return"bigint"==typeof i&&(i={__type:"bigint",value:n.toString()}),i instanceof Map&&(i={__type:"Map",value:Array.from(n.entries())}),t?.(e,i)??i},s=true,o="function"==typeof i,a=[],c=[],function(e,t){if("object"==typeof t)if(a.length){let n=f(a,this);
10===n?a[a.length]=this:(a.splice(n),c.splice(n)),c[c.length]=e;let r=f(a,t);if(0!==r)return o?i.call(this,e,t,d(c,r)):`[ref=${d(c,r)}]`}else a[0]=t,c[0]=e;return s?r.call(this,e,t):t}),n??void 0)}let m={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};var y=n(79830);let g=256;var v=n(96776);function b(e){let t,n,o,u,d,f,b,w,{multiInjectedProviderDiscovery:C=!0,storage:I=function(e){let{deserialize:t=h,key:n="wagmi",serialize:i=p,storage:r=m}=e;function s(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...r,key:n,async getItem(e,i){let o=r.getItem(`${n}.${e}`),a=await s(o);return a?t(a)??null:i??null},async setItem(e,t){let o=`${n}.${e}`;null===t?await s(r.removeItem(o)):await s(r.setItem(o,i(t)))},async removeItem(e){await s(r.removeItem(`${n}.${e}`))}}}({storage:(n="u">typeof window&&window.localStorage?window.localStorage:m,{getItem:e=>n.getItem(e),removeItem(e){n.removeItem(e)},setItem(e,t){try{n.setItem(e,t)}catch{}}})}),syncConnectedChain:O=!0,ssr:S=!1,...x}=e,E="u">typeof window&&C?(o=new Set,u=[],f=(d=()=>(function(e){if("u"<typeof window)return;let t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)})(e=>{u.some(({info:t})=>t.uuid===e.info.uuid)||(u=[...u,e],o.forEach(t=>t(u,{added:[e]})))}))(),{_listeners:()=>o,clear(){o.forEach(e=>e([],{removed:[...u]})),u=[]},destroy(){this.clear(),o.clear(),f?.()},findProvider:({rdns:e})=>u.find(t=>t.info.rdns===e),getProviders:()=>u,reset(){this.clear(),f?.(),f=d()},subscribe:(e,{emitImmediately:t}={})=>(o.add(e),t&&e(u,{added:u}),()=>o.delete(e))}
1):void 0,P=a(()=>x.chains),j=a(()=>{let e=[],t=new Set;for(let n of x.connectors??[]){let i=_(n);if(e.push(i),!S&&i.rdns)for(let e of"string"==typeof i.rdns?[i.rdns]:i.rdns)t.add(e)}if(!S&&E)for(let n of E.getProviders())t.has(n.info.rdns)||e.push(_(q(n)));return e});function _(e){let t,n=new l(function(e=11){if(!i||g+e>512){i="",g=0;for(let e=0;e<256;e++)i+=(256+256*Math.random()|0).toString(16).substring(1)}return i.substring(g,g+++e)}()),r={...e({emitter:n,chains:P.getState(),get providers(){if(!E||!t)return[];let e="string"==typeof t?[t]:t,n=E.getProviders();return e.flatMap(e=>n.filter(t=>t.info.rdns===e))},storage:I,transports:x.transports}),emitter:n,uid:n.uid};return t=r.rdns,n.on("connect",R),r.setup?.(),r}function q(e){let{info:t}=e,n=e.provider;return(0,c.b)({target:{...t,id:t.rdns,provider:n}})}let M=new Map;function A(){return{chainId:P.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let k="0.0.0-canary-";t=v.r.startsWith(k)?Number.parseInt(v.r.replace(k,""),10):Number.parseInt(v.r.split(".")[0]??"0",10);let N=a((w=I?(b={migrate(e,n){if(n===t)return e;let i=A(),r=Q(e,i.chainId);return{...i,chainId:r}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:n,name:i,type:r,uid:s}=t.connector;return[e,{...t,connector:{id:n,name:i,type:r,uid:s}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let n=Q(e,t.chainId);return{...t,...e,chainId:n}},skipHydration:S,storage:I,version:t},(e,t,n)=>{let i,r={storage:function(e){let t;try{t=e()}catch(e){return}return{getItem:e=>{var n;let i=e=>null===e?null:JSON.parse(e,void 0),r=null!=(n=t.getItem(e))?n:null;return r instanceof Promise?r.then(i):i(r)},setItem:(e,n)=>t.setItem(e,JSON.stringify(n,void 0)),removeItem:e=>t.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...b},o=!1,a=new Set,c=new Set,u=r.storage;if(!u)return A();let l=()=>{let e=r.partialize({...t()});return u.setItem(r.name,{state:e,version:r.version})},h=n.setState;n.setState=(e,t)=>{h(e,t),l()};let d=A();n.getInitialState=()=>d;let f=()=>{var n,h;if(!u)return;o=!1,a.forEach(e=>{var n;return e(null!=(n=t())?n:d)});let f=(null==(h=r.onRehydrateStorage)?void 0:h.call(r,null!=(n=t())?n:d))||void 0;return s(u.getItem.bind(u))(r.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===r.version)return[!1,e.state];else{if(r.migrate)return[!0,r.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(n=>{var s;let[o,a]=n;if(e(i=r.merge(a,null!=(s=t())?s:d),!0),o)return l()}).then(()=>{null==f||f(i,void 0),i=t(),o=!0,c.forEach(e=>e(i))}).catch(e=>{null==f||f(void 0,e)})};return n.persist={setOptions:e=>{r={...r,...e},e.storage&&(u=e.storage)},clearStorage:()=>{null==u||u.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>f(),hasHydrated:()=>o,onHydrate:e=>(a.add(e),()=>{a.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},r.skipHydration||f(),i||d}):A,(e,t,n)=>{let i=n.subscribe;return n.subscribe=(e,t,r)=>{let s=e;if(t){let i=(null==r?void 0:r.equalityFn)||Object.is,o=e(n.getState());s=n=>{let r=e(n);if(!i(o,r)){let e=o;t(o=r,e)}},(null==r?void 0:r.fireImmediately)&&t(o,o)}return i(s)},w(e,t,n)}));function Q(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&P.getState().some(t=>t.id===e.chainId)?e.chainId:t}function D(e){N.setState(t=>{let n=t.connections.get(e.uid);return n?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??n.accounts,chainId:e.chainId??n.chainId,connector:n.connector})}:t})}function R(e){"connecting"!==N.getState().status&&"reconnecting"!==N.getState().status&&N.setState(t=>{let n=j.getState().find(t=>t.uid===e.uid);return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",D),n.emitter.listenerCount("change")||n.emitter.on("change",D),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",$),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"}):t})}function $(e){N.setState(t=>{let n=t.connections.get(e.uid);if(n){let e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",D),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",$),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",R)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let i=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:i.connector.uid}})}return N.setState(A()),O&&N.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(P.getState().some(t=>t.id===e))return N.setState(t=>({...t,chainId:e??t.chainId}))}),E?.subscribe(e=>{let t=new Set,n=new Set;for(let e of j.getState())if(t.add(e.id),e.rdns)for(let t of"string"==typeof e.rdns?[e.rdns]:e.rdns)n.add(t);let i=[];for(let r of e){if(n.has(r.info.rdns))continue;let e=_(q(r));t.has(e.id)||i.push(e)}(!I||N.persist.hasHydrated())&&j.setState(e=>[...e,...i],!0)}),{get chains(){return P.getState()},get connectors(){return j.getState()},storage:I,getClient:function(e={}){let t,n=e.chainId??N.getState().chainId,i=P.getState().find(e=>e.id===n);if(e.chainId&&!i)throw new y.nk;{let e=M.get(N.getState().chainId);if(e&&!i)return e;if(!i)throw new y.nk}{let e=M.get(n);if(e)return e}if(x.client)t=x.client({chain:i});else{let e=i.id,n=P.getState().map(e=>e.id),s={};for(let[t,i]of Object.entries(x))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t)if("object"==typeof i)if(e in 
1i)s[t]=i[e];else{if(n.some(e=>e in i))continue;s[t]=i}else s[t]=i;t=(0,r.UU)({...s,chain:i,batch:s.batch??{multicall:!0},transport:t=>x.transports[e]({...t,connectors:j})})}return M.set(n,t),t},get state(){return N.getState()},setState(e){let t;t="function"==typeof e?e(N.getState()):e;let n=A();"object"!=typeof t&&(t=n),Object.keys(n).some(e=>!(e in t))&&(t=n),N.setState(t,!0)},subscribe:(e,t,n)=>N.subscribe(e,t,n?{...n,fireImmediately:n.emitImmediately}:void 0),_internal:{mipd:E,async revalidate(){let e=N.getState(),t=e.connections,n=e.current;for(let[,e]of t){let i=e.connector;i.isAuthorized&&await i.isAuthorized()||(t.delete(i.uid),n===i.uid&&(n=null))}N.setState(e=>({...e,connections:t,current:n}))},store:N,ssr:!!S,syncConnectedChain:O,transports:x.transports,chains:{setState(e){let t="function"==typeof e?e(P.getState()):e;if(0!==t.length)return P.setState(t,!0)},subscribe:e=>P.subscribe(e)},connectors:{providerDetailToConnector:q,setup:_,setState:e=>j.setState("function"==typeof e?e(j.getState()):e,!0),subscribe:e=>j.subscribe(e)},events:{change:D,connect:R,disconnect:$}}}}},25601:(e,t,n)=>{n.d(t,{b:()=>h});var i=n(96685),r=n(65261),s=n(70509),o=n(7528),a=n(84428),c=n(79830),u=n(87403),l=n(2572);function h(e={}){let t,n,p,m,{shimDisconnect:y=!0,unstable_shimAsyncInject:g}=e;function v(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...d[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return(0,l.U)(l=>({get icon(){return v().icon},get id(){return v().id},get name(){return v().name},type:h.type,async setup(){let n=await this.getProvider();n?.on&&e.target&&(p||(p=this.onConnect.bind(this),n.on("connect",p)),t||(t=this.onAccountsChanged.bind(this),n.on("accountsChanged",t)))},async connect({chainId:s,isReconnecting:o,withCapabilities:a}={}){let c=await this.getProvider();if(!c)throw new u.N;let h=[];if(o)h=await this.getAccounts().catch(()=>[]);else if(y)try{let e=await c.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(h=e[0]?.caveats?.[0]?.value?.map(e=>(0,i.b)(e))).length>0&&(h=await this.getAccounts())}catch(e){if(e.code===r.vx.code)throw new r.vx(e);if(e.code===r.qZ.code)throw e}try{h?.length||o||(h=(await c.request({method:"eth_requestAccounts"})).map(e=>(0,i.b)(e))),p&&(c.removeListener("connect",p),p=void 0),t||(t=this.onAccountsChanged.bind(this),c.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),c.on("chainChanged",n)),m||(m=this.onDisconnect.bind(this),c.on("disconnect",m));let u=await this.getChainId();if(s&&u!==s){let e=await this.switchChain({chainId:s}).catch(e=>{if(e.code===r.vx.code)throw e;return{id:u}});u=e?.id??u}return y&&await l.storage?.removeItem(`${this.id}.disconnected`),e.target||await l.storage?.setItem("injected.connected",!0),{accounts:a?h.map(e=>({address:e,capabilities:{}})):h,chainId:u}}catch(e){if(e.code===r.vx.code)throw new r.vx(e);if(e.code===r.qZ.code)throw new r.qZ(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new u.N;n&&(t.removeListener("chainChanged",n),n=void 0),m&&(t.removeListener("disconnect",m),m=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p));try{await (0,s.w)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}y&&await l.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await l.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new u.N;return(await e.request({method:"eth_accounts"})).map(e=>(0,i.b)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new u.N;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("u"<typeof window)return;let t=v();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?f(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e}
1,async isAuthorized(){try{if(y&&await l.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await l.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==g&&!1!==g){let e=async()=>("u">typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof g?g:1e3;if(await Promise.race([..."u">typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(n=>setTimeout(()=>n(e()),t))]))return!0}throw new u.N}return!!(await (0,o.b)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider();if(!n)throw new u.N;let i=l.chains.find(e=>e.id===t);if(!i)throw new r.ch(new c.nk);let s=new Promise(e=>{let n=i=>{"chainId"in i&&i.chainId===t&&(l.emitter.off("change",n),e())};l.emitter.on("change",n)});try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,a.cK)(t)}]}).then(async()=>{await this.getChainId()===t&&l.emitter.emit("change",{chainId:t})}),s]),i}catch(o){if(4902===o.code||o?.data?.originalError?.code===4902)try{let o,c,{default:u,...h}=i.blockExplorers??{};e?.blockExplorerUrls?o=e.blockExplorerUrls:u&&(o=[u.url,...Object.values(h).map(e=>e.url)]),c=e?.rpcUrls?.length?e.rpcUrls:[i.rpcUrls.default?.http[0]??""];let d={blockExplorerUrls:o,chainId:(0,a.cK)(t),chainName:e?.chainName??i.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??i.nativeCurrency,rpcUrls:c};return await Promise.all([n.request({method:"wallet_addEthereumChain",params:[d]}).then(async()=>{if(await this.getChainId()===t)l.emitter.emit("change",{chainId:t});else throw new r.vx(Error("User rejected switch after adding network."))}),s]),i}catch(e){throw new r.vx(e)}if(o.code===r.vx.code)throw new r.vx(o);throw new r.ch(o)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(l.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),y&&await l.storage?.removeItem(`${this.id}.disconnected`)}else l.emitter.emit("change",{accounts:e.map(e=>(0,i.b)(e))})},onChainChanged(e){let t=Number(e);l.emitter.emit("change",{chainId:t})},async onConnect(e){let i=await this.getAccounts();if(0===i.length)return;let r=Number(e.chainId);l.emitter.emit("connect",{accounts:i,chainId:r});let s=await this.getProvider();s&&(p&&(s.removeListener("connect",p),p=void 0),t||(t=this.onAccountsChanged.bind(this),s.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),s.on("chainChanged",n)),m||(m=this.onDisconnect.bind(this),s.on("disconnect",m)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(l.emitter.emit("disconnect"),t&&(n&&(t.removeListener("chainChanged",n),n=void 0),m&&(t.removeListener("disconnect",m),m=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p))))}}))}h.type="injected";let d={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:f(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>f(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:f(e,"isPhantom")}};function f(e,t){function n(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let i=e.ethereum;return i?.providers?i.providers.find(e=>n(e)):i&&n(i)?i:void 0}},26430:(e,t,n)=>{n.d(t,{E:()=>f});var i=n(5858),r=n(85086),s=n(31967),o=n(98216),a=class extends o.Q{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let s=t.queryKey,o=t.queryHash??(0,i.F$)(s,t),a=this.get(o);return a||(a=new r.X({client:e,queryKey:s,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(s)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){s.jG.batch(()=>
1{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,i.MK)(e,t)):t}notify(e){s.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){s.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){s.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},c=n(53390),u=class extends o.Q{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#n=new Map,this.#i=0}#t;#n;#i;build(e,t,n){let i=new c.s({client:e,mutationCache:this,mutationId:++this.#i,options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){this.#t.add(e);let t=l(e);if("string"==typeof t){let n=this.#n.get(t);n?n.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=l(e);if("string"==typeof t){let n=this.#n.get(t);if(n)if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=l(e);if("string"!=typeof t)return!0;{let n=this.#n.get(t),i=n?.find(e=>"pending"===e.state.status);return!i||i===e}}runNext(e){let t=l(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#n.get(t)?.find(t=>
1t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){s.jG.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#n.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,i.nJ)(e,t))}notify(e){s.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return s.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(i.lQ))))}};function l(e){return e.options.scope?.id}var h=n(20562),d=n(1681),f=class{#r;#s;#o;#a;#c;#u;#l;#h;constructor(e={}){this.#r=e.queryCache||new a,this.#s=e.mutationCache||new u,this.#o=e.defaultOptions||{},this.#a=new Map,this.#c=new Map,this.#u=0}mount(){this.#u++,1===this.#u&&(this.#l=h.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#h=d.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#u--,0===this.#u&&(this.#l?.(),this.#l=void 0,this.#h?.(),this.#h=void 0)}isFetching(e){return this.#r.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#s.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#r.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,i.d2)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#r.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),s=this.#r.get(r.queryHash),o=s?.state.data,a=(0,i.Zw)(t,o);if(void 0!==a)return this.#r.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return s.jG.batch(()=>this.#r.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state}removeQueries(e){let t=this.#r;s.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#r;return s.jG.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(s.jG.batch(()=>this.#r.findAll(e).map(e=>e.cancel(n)))).then(i.lQ).catch(i.lQ)}invalidateQueries(e,t={}){return s.jG.batch(()=>(this.#r.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(s.jG.batch(()=>this.#r.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(i.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(i.lQ)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#r.build(this,t);return n.isStaleByTime((0,i.d2)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(i.lQ).catch(i.lQ)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(i.lQ).catch(i.lQ)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return d.t.isOnline()?this.#s.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#s}getDefaultOptions(){return this.#o}setDefaultOptions(e){this.#o=e}setQueryDefaults(e,t){this.#a.set((0,i.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#a.values()],n={};return t.forEach(t=>{(0,i.Cp)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#c.set((0,i.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#c.values()],n={};return t.forEach(t=>{(0,i.Cp)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#o.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,i.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===i.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#o.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#r.clear(),this.#s.clear()}}}
1,32823:(e,t,n)=>{n.d(t,{q:()=>s});var i=n(1220),r=n(5788);function s(e,t){let{onChange:n}=t;return e.subscribe(()=>(0,r.X)(e),n,{equalityFn(e,t){let{connector:n,...r}=e,{connector:s,...o}=t;return(0,i.b)(r,o)&&n?.id===s?.id&&n?.uid===s?.uid}})}},36513:(e,t,n)=>{n.d(t,{w:()=>l});var i=n(32823),r=n(5788),s=n(42482),o=n(1220),a=n(12115),c=n(94577);let u=e=>"object"==typeof e&&!Array.isArray(e);function l(e={}){let t=(0,s.U)(e);return function(e,t,n=t,i=o.b){let r=(0,a.useRef)([]),s=(0,c.useSyncExternalStoreWithSelector)(e,t,n,e=>e,(e,t)=>{if(u(e)&&u(t)&&r.current.length){for(let n of r.current)if(!i(e[n],t[n]))return!1;return!0}return i(e,t)});return(0,a.useMemo)(()=>{if(u(s)){let e={...s},t={};for(let[n,i]of Object.entries(e))t={...t,[n]:{configurable:!1,enumerable:!0,get:()=>(r.current.includes(n)||r.current.push(n),i)}};return Object.defineProperties(e,t),e}return s},[s])}(e=>(0,i.q)(t,{onChange:e}),()=>(0,r.X)(t))}},48934:(e,t,n)=>{n.d(t,{n:()=>l});var i=n(12115),r=n(53390),s=n(31967),o=n(98216),a=n(5858),c=class extends o.Q{#d;#f=void 0;#p;#m;constructor(e,t){super(),this.#d=e,this.setOptions(t),this.bindMethods(),this.#y()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#d.defaultMutationOptions(e),(0,a.f8)(this.options,t)||this.#d.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#p,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.EN)(t.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():this.#p?.state.status==="pending"&&this.#p.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#p?.removeObserver(this)}onMutationUpdate(e){this.#y(),this.#g(e)}getCurrentResult(){return this.#f}reset(){this.#p?.removeObserver(this),this.#p=void 0,this.#y(),this.#g()}mutate(e,t){return this.#m=t,this.#p?.removeObserver(this),this.#p=this.#d.getMutationCache().build(this.#d,this.options),this.#p.addObserver(this),this.#p.execute(e)}#y(){let e=this.#p?.state??(0,r.$)();this.#f={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#g(e){s.jG.batch(()=>{if(this.#m&&this.hasListeners()){let t=this.#f.variables,n=this.#f.context,i={client:this.#d,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#m.onSuccess?.(e.data,t,n,i)}catch(e){Promise.reject(e)}try{this.#m.onSettled?.(e.data,null,t,n,i)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#m.onError?.(e.error,t,n,i)}catch(e){Promise.reject(e)}try{this.#m.onSettled?.(void 0,e.error,t,n,i)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#f)})})}},u=n(35625);function l(e,t){let n=(0,u.jE)(t),[r]=i.useState(()=>new c(n,e));i.useEffect(()=>{r.setOptions(e)},[r,e]);let o=i.useSyncExternalStore(i.useCallback(e=>r.subscribe(s.jG.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=i.useCallback((e,t)=>{r.mutate(e,t).catch(a.lQ)},[r]);if(o.error&&(0,a.GU)(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}},53390:(e,t,n)=>{n.d(t,{$:()=>a,s:()=>o});var i=n(31967),r=n(99190),s=n(9846),o=class extends r.k{#d;#v;#s;#b;constructor(e){super(),this.#d=e.client,this.mutationId=e.mutationId,this.#s=e.mutationCache,this.#v=[],this.state=e.state||a(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#v.includes(e)||(this.#v.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#v=this.#v.filter(t=>t!==e),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#v.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#b?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#w({type:"continue"})},n={client:this.#d,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#b=(0,s.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#w({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#w({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>
1this.#s.canRun(this)});let i="pending"===this.state.status,r=!this.#b.canStart();try{if(i)t();else{this.#w({type:"pending",variables:e,isPaused:r}),this.#s.config.onMutate&&await this.#s.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#w({type:"pending",context:t,variables:e,isPaused:r})}let s=await this.#b.start();return await this.#s.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#s.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#w({type:"success",data:s}),s}catch(t){try{await this.#s.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#s.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#w({type:"error",error:t}),t}finally{this.#s.runNext(this)}}#w(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),i.jG.batch(()=>{this.#v.forEach(t=>{t.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},53745:(e,t,n)=>{n.d(t,{u:()=>l});var i=n(48934);async function r(e,t={}){let n;if(t.connector)n=t.connector;else{let{connections:t,current:i}=e.state,r=t.get(i);n=r?.connector}let i=e.state.connections;n&&(await n.disconnect(),n.emitter.off("change",e._internal.events.change),n.emitter.off("disconnect",e._internal.events.disconnect),n.emitter.on("connect",e._internal.events.connect),i.delete(n.uid)),e.setState(e=>{if(0===i.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=i.values().next().value;return{...e,connections:new Map(i),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let n=e.state.connections.get(t)?.connector;if(!n)return;await e.storage?.setItem("recentConnectorId",n.id)}}var s=n(42482),o=n(1220);let a=[];function c(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,o.b)(a,t)?a:(a=t,t)}var u=n(12115);function l(e={}){let t=(0,s.U)(e),n=function(e,t={}){return{...t.mutation,mutationFn:async t=>r(e,t),mutationKey:["disconnect"]}}(t,e),a=(0,i.n)(n);return{...a,connectors:(function(e={}){let t=(0,s.U)(e);return(0,u.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>c(e),n,{equalityFn:o.b})})(t,{onChange:e}),()=>c(t),()=>c(t))})({config:t}).map(e=>e.connector),disconnect:a.mutate,disconnectAsync:a.mutateAsync}}},54417:(e,t,n)=>{n.d(t,{Ar:()=>u,Cw:()=>l,Dq:()=>v,Id:()=>p,OK:()=>m,O_:()=>o,Tn:()=>g,gF:()=>h,sQ:()=>y,vG:()=>a});var i=n(70536),r=n(4181);let s=[];class o extends Error{constructor(e="Review closed. Nothing was sent."){super(e),this.name="TransactionReviewCancelledError"}}function a(e,t){let n=(0,i.c)(t),r=new Intl.NumberFormat("en-US",{maximumSignificantDigits:3}).format(Number(n));return`${e} (${r===n?"":"~"}${r} ETH)`}let c=[];function u(e){return c.push(e),()=>{let t=c.lastIndexOf(e);t>=0&&c.splice(t,1)}}async function l(e,t){let n=e.map(e=>({...e})),i=new Set(n.map(e=>e.chainId));if(!n.length||i.size!==n.length||n.some(e=>!Number.isSafeInteger(e.chainId)||e.chainId<=0||!e.label.trim()))throw Error("No valid funding chain choices are available. Request a new quote.");let r=c[c.length-1];if(!r)throw Error("Funding chain selection is unavailable. Reload the page before continuing.");let s=void 0!==t&&i.has(t)?t:1===n.length?n[0].chainId:null,a=await r(n,s);if(null===a)throw new o("Funding chain selection cancelled. Nothing was sent.");if(!i.has(a))throw Error("The selected funding chain is not available in this quote.");return a}function h(e){return s.push(e),()=>{let t=s.lastIndexOf(e);t>=0&&s.splice(t,1)}}async function d(e){if(!e.calls.length&&!e.authorization)throw Error("There is no transaction to review.");let t=s[s.length-1];if(!t)throw Error("Transaction review is unavailable. Reload the page before continuing.");return t(e)}function f(e,t={}){let n=(0,r.p)({abi:e.abi,functionName:e.functionName,args:e.args});return{chainId:e.chainId,to:e.address,data:n,value:e.value,gas:e.gas,safeTxGas:e.safeTxGas,from:e.account,abi:e.abi,functionName:e.functionName,args:e.args,label:t.label,contractName:t.contractName}}function p(e,t={}){let{label:n,contractName:i,...r}=t,s=f(e,{label:n,contractName:i});return d({...r,calls:[s]}).then(t=>{if(!t)return!1;let r=f(e,{label:n,contractName:i});if(r.chainId!==s.chainId||r.to.toLowerCase()!==s.to.toLowerCase()||(r.value??0n)!==(s.value??0n)||r.gas!==s.gas||r.safeTxGas!==s.safeTxGas||r.data!==s.data)throw Error("Transaction data changed after review. Nothing was sent; review it again.");return!0})}async function m(e){if(!await d(e))throw new o}async function y(e,t={}){if(!await p(e,t))throw new o}function g(e){let t=e.calls.map(e=>({chainId:e.chainId,from:e.from,to:e.to,value:`0x${(e.value??0n).toString(16)}`,...void 0===e.gas?{}:{gas:`0x${e.gas.toString(16)}`},...void 0===e.safeTxGas?{}:{safeTxGas:`0x${e.safeTxGas.toString(16)}`},data:e.data})),n=1===t.length?t[0]:{transactions:t};return JSON.stringify(e.authorization?t.length>0?{authorization:e.authorization,resultingCall:n}:{authorization:e.authorization}:n,(e,t)=>"bigint"==typeof t?t.toString():t,2)}function v(e,{explorerOrigin:t}){let n=["I'm about to authorize a blockchain action in a Juicebox V6 app (the nana V6 / revnet V6 protocol release, not an older Juicebox version). Act as a careful security reviewer. Independently verify the payload against the deployed contracts and V6 source, confirm it matches my intent, and give a go/no-go. Assume the UI could be spoofed; trust the onchain call and verified V6 source over the page.","","Exact app-controlled transaction payload:","```json",g(e),"```",""];return"u">typeof window&&(n.push("Audit the app build I am using:"),n.push(`- Page: ${window.location.href}`),n.push("- Confirm this page builds exactly the destination, native value, and calldata above, with no hidden or substituted call."),n.push("")),n.push("Verify the contracts and protocol version:"),n.push("- Juicebox V6 ecosystem source: https://github.com/Bananapus/version-6"),n.push("- Use only V6 repositories (normally ending in `-v6`); same-named repositories without that suffix may be older and incompatible."),n.push("- If your agent has Etherscan's skills installed (`npx skills add etherscan/skills`), run `etherscan-contract-review` on each target address to pull its verified source, proxy roles, and privileged controls before decoding. Otherwise work from the explorer pages."),e.calls.forEac
1h((i,r)=>{let s=t(i.chainId),o=e.calls.length>1?`Transaction ${r+1}`:"Target";n.push(s?`- ${o} onchain: ${s}/address/${i.to}`:`- ${o}: chain ${i.chainId}, address ${i.to}`)}),n.push(""),n.push("Check specifically:"),n.push("1. Decode the calldata selector and every argument. Explain in plain English what state, permissions, ownership, tokens, or funds can change."),n.push("2. Verify the chain ID, `to` address, native `value`, calldata, and any `gas` or `safeTxGas` exactly. Flag any unexpected non-zero value or unknown target."),n.push("3. Identify every beneficiary, recipient, spender, operator, owner, hook, terminal, and permission-bearing address in the decoded arguments."),n.push("4. Warn about unlimited approvals, arbitrary-call capability, delegatecalls, ownership transfers, permission grants, upgradeability, or drain paths."),n.push("5. For multiple chains, confirm the intended change is consistent and that no extra chain or call was added."),n.push("6. For a Relayr or Safe authorization, separate what I sign now from the later onchain execution. A Safe `safeTxGas` of 0 makes the Safe transaction revert if the call fails; a nonzero value lets it execute and record the failure."),n.push(""),n.push("Before your verdict, quiz me with 2–4 short plain-English questions about what I expect to happen (what changes, who receives or controls what, how much value moves, and on which chain). Wait for my answers, compare them with the decoded payload, and flag every mismatch."),n.push(""),n.push("End with one verdict: SAFE TO SIGN / DO NOT SIGN / NEEDS MORE INFO, followed by the most important reasons. If the target is not a recognizable verified Juicebox V6 deployment, say so explicitly."),n.join("\n")}},62451:(e,t,n)=>{n.d(t,{U:()=>a});let i=[];function r(e){let t=e.connectors;return i.length===t.length&&i.every((e,n)=>e===t[n])?i:(i=t,t)}var s=n(12115),o=n(42482);function a(e={}){let t=(0,o.U)(e);return(0,s.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.connectors.subscribe((e,t)=>{n(Object.values(e),t)})})(t,{onChange:e}),()=>r(t),()=>r(t))}},64411:e=>{var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,i,s,o){if("function"!=typeof i)throw TypeError("The listener must be a function");var a=new r(i,s||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1)),a.prototype.eventNames=function(){var e,i,r=[];if(0===this._eventsCount)return r;for(i in e=this._events)t.call(e,i)&&r.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,s=i.length,o=Array(s);r<s;r++)o[r]=i[r].fn;return o},a.prototype.listenerCount=function(e){var t=n?n+e:e,i=this._events[t];return i?i.fn?1:i.length:0},a.prototype.emit=function(e,t,i,r,s,o){var a=n?n+e:e;if(!this._events[a])return!1;var c,u,l=this._events[a],h=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),h){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,i),!0;case 4:return l.fn.call(l.context,t,i,r),!0;case 5:return l.fn.call(l.context,t,i,r,s),!0;case 6:return l.fn.call(l.context,t,i,r,s,o),!0}for(u=1,c=Array(h-1);u<h;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),h){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,i);break;case 4:l[u].fn.call(l[u].context,t,i,r);break;default:if(!c)for(d=1,c=Array(h-1);d<h;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,i,r){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return o(this,s),this;var a=this._events[s];if(a.fn)a.fn!==t||r&&!a.once||i&&a.context!==i||o(this,s);else{for(var c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==t||r&&!a[c].once||i&&a[c].context!==i)&&u.push(a[c]);u.length?this._events[s]=1===u.length?u[0]:u:o(this,s)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a}
1,79829:(e,t,n)=>{n.d(t,{I:()=>r});var i=n(85177);function r(e,t={}){let{key:n="custom",methods:s,name:o="Custom Provider",retryDelay:a}=t;return({retryCount:r})=>(0,i.o)({key:n,methods:s,name:o,request:e.request.bind(e),retryCount:t.retryCount??r,retryDelay:a,type:"custom"})}},79830:(e,t,n)=>{n.d(t,{HF:()=>u,aj:()=>a,gC:()=>o,nM:()=>s,nk:()=>r,xU:()=>c});var i=n(4038);class r extends i.C{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class s extends i.C{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class o extends i.C{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}i.C;class a extends i.C{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class c extends i.C{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class u extends i.C{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`. All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored. This error commonly occurs for connectors that asynchronously inject after reconnection has already started."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}},87403:(e,t,n)=>{n.d(t,{N:()=>r,V:()=>s});var i=n(4038);class r extends i.C{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class s extends i.C{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.