1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="d7d650b9-10c0-698f-5038-940591dc325f")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,992687,644122,e=>{"use strict";var t=e.i(501053);e.s(["useWallets",()=>t.u],992687);var n=e.i(995406);e.s(["useWallets",()=>n.a],644122)},213764,e=>{"use strict";var t=e.i(735609);e.s(["usePrivy",()=>t.u])},995406,e=>{"use strict";var t=e.i(455014),n=e.i(819356),i=e.i(415727),s=e.i(578791),r=e.i(855471),a=e.i(273012),o=e.i(979889),l=e.i(481154),c=e.i(735609),u=e.i(501053),d=e.i(255436),h=e.i(987750),f=e.i(932999),p=e.i(58110),y=e.i(313035),g=e.i(397380),v=e.i(706216),b=e.i(957017),m=e.i(880953);let w=["solana:mainnet","solana:devnet","solana:testnet"];function A(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var T=0,S="__private_"+T+++"__implementation";function O(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var E=0;function C(e){return"__private_"+E+++"_"+e}var P=C("_address"),F=C("_publicKey"),_=C("_chains"),M=C("_features"),j=C("_label"),I=C("_icon");class U{get address(){return O(this,P)[P]}get publicKey(){return O(this,F)[F].slice()}get chains(){return O(this,_)[_].slice()}get features(){return O(this,M)[M].slice()}get label(){return O(this,j)[j]}get icon(){return O(this,I)[I]}constructor({address:e,publicKey:t,label:n,icon:i}){Object.defineProperty(this,P,{writable:!0,value:void 0}),Object.defineProperty(this,F,{writable:!0,value:void 0}),Object.defineProperty(this,_,{writable:!0,value:void 0}),Object.defineProperty(this,M,{writable:!0,value:void 0}),Object.defineProperty(this,j,{writable:!0,value:void 0}),Object.defineProperty(this,I,{writable:!0,value:void 0}),O(this,P)[P]=e,O(this,F)[F]=t,O(this,_)[_]=w,O(this,j)[j]=n,O(this,I)[I]=i,O(this,M)[M]=["solana:signAndSendTransaction","solana:signTransaction","solana:signMessage"],new.target===U&&Object.freeze(this)}}function W(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var D=0;function R(e){return"__private_"+D+++"_"+e}var L=R("_listeners"),N=R("_version"),k=R("_name"),B=R("_icon"),x=R("_injection"),K=R("_isPrivyWallet"),q=R("_accounts"),V=R("_on"),Q=R("_emit"),G=R("_off"),H=R("_connected"),J=R("_connect"),Y=R("_disconnect"),Z=R("_signMessage"),z=R("_signAndSendTransaction"),$=R("_signTransaction");function X(e,...t){W(this,L)[L][e]?.forEach(e=>e.apply(null,t))}function ee(e,t){W(this,L)[L][e]=W(this,L)[L][e]?.filter(e=>t!==e)}function et(){let{isHeadlessSigning:e,walletProxy:t,initializeWalletProxy:n,recoverEmbeddedWallet:i,openModal:s,privy:a,client:d}=(0,o.u)(),{user:h}=(0,c.u)(),{setModalData:f}=(0,g.u)(),{signWithUserSigner:b}=(0,y.u)();return{signMessage:({message:o,address:c,options:y})=>new Promise(async(g,m)=>{let w=(0,l.f)(h,c);if("privy"!==w?.walletClientType)return void m(new p.P("Wallet is not a Privy wallet",void 0,p.a.EMBEDDED_WALLET_NOT_FOUND));let{entropyId:A,entropyIdVerifier:T}=(0,u.g)(h,w),S=(0,l.a)(w),O=(0,v.b)(o).toString("base64");if(O.length<1)return void m(new p.P("Message must be a non-empty string",void 0,p.a.INVALID_MESSAGE));let E=async()=>{let e;if(!h)throw Error("User must be authenticated before signing with a Privy wallet");let s=await d.getAccessToken();if(!s)throw Error("User must be authenticated to use their embedded wallet.");let o=t??await n(15e3);if(!o)throw Error("Failed to initialize embedded wallet proxy.");if(!await i({address:w.address}))throw Error("Unable to connect to wallet");if(S){let t=await (0,r.rpc)(a,b,{chain_type:"solana",method:"signMessage",params:{message:O,encoding:"base64"},wallet_id:w.id});if(!t.data||!("signature"in t.data))throw Error("Failed to sign message");e=t.data.signature}else{let{response:t}=await o.rpc({accessToken:s,entropyId:A,entropyIdVerifier:T,chainType:"solana",hdWalletIndex:w.walletIndex??0,requesterAppId:y?.uiOptions?.requesterAppId,request:{method:"signMessage",params:{message:O}}});e=t.data.signature}return e};if(e({showWalletUIs:y?.uiOptions?.showWalletUIs}))try{let e=await E(),t=new Uint8Array((0,v.b)(e,"base64"));g({signature:t})}catch(e){m(e)}else f({signMessage:{method:"solana_signMessage",data:O,confirmAndSign:E,onSuccess:e=>{g({signature:new Uint8Array((0,v.b)(e,"base64"))})},onFailure:e=>{m(e)},uiOptions:y?.uiOptions??{}},connectWallet:{recoveryMethod:w.recoveryMethod,connectingWalletAddress:w.address,entropyId:A,entropyIdVerifier:T,isUnifiedWallet:S,onCompleteNavigateTo:"SignRequestScreen",onFailure:e=>{m(new p.P("Failed to connect to wallet",e,p.a.UNKNOWN_CONNECT_WALLET_ERROR))}}}),s("EmbeddedWalletConnectingScreen")})}}function en(){let{isHeadlessSigning:e,openModal:t,privy:s}=(0,o.u)(),{setModalData:a}=(0,g.u)(),{signMessage:d}=et(),{signWithUserSigner:h}=(0,y.u)(),{user:f}=(0,c.u)();return{signTransaction:async({transaction:o,options:c,chain:y="solana:mainnet",address:g})=>{let m=(0,l.f)(f,g);if("privy"!==m?.walletClientType)throw new p.P("Wallet is not a Privy wallet",void 0,p.a.EMBEDDED_WALLET_NOT_FOUND);let w=(0,l.a)(m);async function A(e){let t,a;if(w){let t=await (0,r.rpc)(s,h,{chain_type:"solana",method:"signTransaction",params:{transaction:b.encoding.base64.fromBytes(e),encoding:"base64"},wallet_id:m.id});if(t.data&&"signed_transaction"in t.data&&null!=t.data.signed_transaction)return{signedTransaction:new Uint8Array(b.encoding.base64.toBytes(t.data.signed_transaction))};throw Error("Failed to sign transaction")}let{signature:o}=await d({message:(0,v.a)(e),address:g,options:{...c,uiOptions:{...c?.uiOptions,showWalletUIs:!1}}});return{signedTransaction:(t=structuredClone((0,n.getTransactionDecoder)().decode(e)),(a=(0,i.address)(g))in t.signatures&&(t.signatures[a]=o),new Uint8Array((0,n.getTransactionEncoder)().encode(t)))}}return e({showWalletUIs:c?.uiOptions?.showWalletUIs})?A(o):new Promise(async(e,n)=>{let{entropyId:i,entropyIdVerifier:s}=(0,u.g)(f,m);function r(e){return t=>{n(t instanceof p.P?t:new p.P("Failed to connect to wallet",t,e))}}let l={account:m,transaction:o,chain:y,signOnly:!0,uiOptions:c?.uiOptions||{},onConfirm:A,onSuccess:e,onFailure:r(p.a.TRANSACTION_FAILURE)};a({connectWallet:{recoveryMethod:m.recoveryMethod,connectingWalletAddress:m.address,entropyId:i,entropyIdVerifier:s,isUnifiedWallet:w,onCompleteNavigateTo:"StandardSignAndSendTransactionScreen",onFailure:r(p.a.UNKNOWN_CONNECT_WALLET_ERROR)},standardSignAndSendTransaction:l}),t("EmbeddedWalletConnectingScreen")})}}}let ei=new class extends d.default{setImplementation(e){A(this,S)[S]=e}async signMessage(e){return A(this,S)[S].signMessage(e)}async signAndSendTransaction(e){return A(this,S)[S].signAndSendTransaction(e)}async signTransaction(e){return A(this,S)[S].signTransaction(e)}constructor(e){super(),Object.defineProperty(this,S,{writable:!0,value:void 0}),A(this,S)[S]=e}}({signTransaction:(0,o.b)("signTransaction was not injected"),signAndSendTransaction:(0,o.b)("signAndSendTransaction was not injected"),signMessage:(0,o.b)("signMessage was not injected")}),es=new class{get version(){return W(this,N)[N]}get name(){return W(this,k)[k]}get icon(){return W(this,B)[B]}get chains(){return w.slice()}get features(){return{"standard:connect":{version:"1.0.0",connect:W(this,J)[J]},"standard:disconnect":{version:"1.0.0",disconnect:W(this,Y)[Y]},"standard:events":{version:"1.0.0",on:W(this,V)[V]},"solana:signAndSendTransaction":{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:W(this,z)[z]},"solana:signTransaction":{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:W(this,$)[$]},"solana:signMessage":{version:"1.0.0",signMessage:W(this,Z)[Z]},"privy:":{privy:{signMessage:W(this,x)[x].signMessage,signTransaction:W(this,x)[x].signTransaction,signAndSendTransaction:W(this,x)[x].signAndSendTransaction}}}}get accounts(){return W(this,q)[q].slice()}get isPrivyWallet(){return W(this,K)[K]}constructor({name:e,icon:t,version:n,injection:i,wallets:s}){Object.defineProperty(this,Q,{value:X}),Object.defineProperty(this,G,{value:ee}),Object.defineProperty(this,L,{writable:!0,value:void 0}),Object.defineProperty(this,N,{writable:!0,value:void 0}),Object.defineProperty(this,k,{writable:!0,value:void 0}),Object.defineProperty(this,B,{writable:!0,value:void 0}),Object.defineProperty(this,x,{writable:!0,value:void 0}),Object.defineProperty(this,K,{writable:!0,value:void 0}),Object.defineProperty(this,q,{writable:!0,value:void 0}),Object.defineProperty(this,V,{writable:!0,value:void 0}),Object.defineProperty(this,H,{writable:!0,value:void 0}),Object.defineProperty(this,J,{writable:!0,value:void 0}),Object.defineProperty(this,Y,{writable:!0,value:void 0}),Object.defineProperty(this,Z,{writable:!0,value:void 0}),Object.defineProperty(this,z,{writable:!0,value:void 0}),Object.defineProperty(this,$,{writable:!0,value:void 0}),W(this,L)[L]={},W(this,V)[V]=(e,t)=>(W(this,L)[L][e]?.push(t)||(W(this,L)[L][e]=[t]),()=>W(this,G)[G](e,t)),W(this,H)[H]=e=>{null!=e&&(W(this,q)[q]=e.map(({address:e})=>new U({address:e,publicKey:h.base58.decode(e)}))),W(this,Q)[Q]("change",{accounts:this.accounts})},W(this,J)[J]=async()=>(W(this,Q)[Q]("change",{accounts:this.accounts}),{accounts:this.accounts}),W(this,Y)[Y]=async()=>{W(this,Q)[Q]("change",{accounts:this.accounts})},W(this,Z)[Z]=async(...e)=>{let t=[];for(let{account:n,...i}of e){let{signature:e}=await W(this,x)[x].signMessage({...i,address:n.address});t.push({signedMessage:i.message,signature:e})}return t},W(this,z)[z]=async(...e)=>{let t=[];for(let n of e){let{signature:e}=await W(this,x)[x].signAndSendTransaction({...n,transaction:n.transaction,address:n.account.address,chain:n.chain||"solana:mainnet",options:n.options});t.push({signature:e})}return t},W(this,$)[$]=async(...e)=>{let t=[];for(let{transaction:n,account:i,options:s,chain:r}of e){let{signedTransaction:e}=await W(this,x)[x].signTransaction({transaction:n,address:i.address,chain:r||"solana:mainnet",options:s});t.push({signedTransaction:e})}return t},W(this,k)[k]=e,W(this,B)[B]=t,W(this,N)[N]=n,W(this,x)[x]=i,W(this,q)[q]=[],W(this,K)[K]=!0,i.on("accountChanged",W(this,H)[H],this),W(this,H)[H](s)}}({name:"Privy",version:"1.0.0",icon:"data:image/png;base64,AAABAAEAFBQAAAAAIABlAQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAUAAAAFAgGAAAAjYkdDQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAAQVJREFUeJxiYMANZIC4E4ivAPFPIP4FxDeAuB+IlfDowwBMQFwJxF+B+D8O/AOI66Bq8QJGIF6ExyB0vAqImfEZmEeCYTDcgMswPiB+T4aB34FYApuBsWQYBsP52AycToGBK7EZuJECAw9jM3AVBQbuwWZgIwUGTsZmoDkFBnpiMxAEjpJh2FV8iVsbiD+TYBgoDVrgMgwGnID4HRGGgTKBGyHDYEAaiBdCSxh0g/5AU4Q8sYYhAzEgjoGmABBOgFo2eACowFABYn0oVgViAVINkQTiZUD8DIj/ATF6GILEXgLxCiCWIsZAb
2iAuBeKtQHwHiEHJ6C8UfwHie0C8E4jLoWpRAAAAAP//rcbhsQAAAAZJREFUAwBYFs3VKJ0cuQAAAABJRU5ErkJggg==",wallets:[],injection:ei});e.s(["a",0,function(){let{ready:e,wallets:t}=function(){let{client:e}=(0,o.u)(),{ready:t,wallet:n}=function(){let{ready:e}=(0,u.u)(),{user:t}=(0,c.u)(),{signMessage:n}=et(),{signTransaction:i}=en(),{signAndSendTransaction:a}=function(){let e=(0,f.u)(),{isHeadlessSigning:t,openModal:n,privy:i}=(0,o.u)(),{setModalData:s}=(0,g.u)(),{signTransaction:a}=en(),d=(0,v.u)(),{user:b}=(0,c.u)(),{signWithUserSigner:w}=(0,y.u)();return{signAndSendTransaction:async({transaction:o,address:c,chain:f="solana:mainnet",options:y})=>{let g=(0,l.f)(b,c);if("privy"!==g?.walletClientType)throw new p.P("Wallet is not a Privy wallet",void 0,p.a.EMBEDDED_WALLET_NOT_FOUND);let A=(0,l.a)(g);async function T(e){if(y?.sponsor)return await (async e=>{if(!A)throw new p.P("Sponsoring transactions is only supported for wallets on the TEE stack",p.a.INVALID_DATA);let t=await (0,r.rpc)(i,w,{chain_type:"solana",method:"signAndSendTransaction",sponsor:!0,params:{transaction:(0,v.b)(e).toString("base64"),encoding:"base64"},caip2:`solana:${(await d(f).rpc.getGenesisHash().send()).substring(0,32)}`,wallet_id:g.id});if(t.data&&"hash"in t.data)return{signature:h.base58.decode(t.data.hash)};throw Error("Failed to sign and send transaction")})(e);let{signedTransaction:t}=await a({transaction:e,address:c,chain:f,options:{...y,uiOptions:{...y?.uiOptions,showWalletUIs:!1}}}),{signature:n}=await d(f).sendAndConfirmTransaction(t);return{signature:n}}return t({showWalletUIs:y?.uiOptions?.showWalletUIs})?T(o):new Promise(async(t,i)=>{let r,a,{entropyId:l,entropyIdVerifier:d}=(0,u.g)(b,g);function h(e){return t=>{i(t instanceof p.P?t:new p.P("Failed to connect to wallet",t,e))}}let v={account:g,transaction:o,chain:f,signOnly:!1,uiOptions:y?.uiOptions||{},onConfirm:T,onSuccess:t,onFailure:h(p.a.TRANSACTION_FAILURE),isSponsored:!!y?.sponsor},w={recoveryMethod:g.recoveryMethod,connectingWalletAddress:g.address,entropyId:l,entropyIdVerifier:d,isUnifiedWallet:A,onCompleteNavigateTo:"StandardSignAndSendTransactionScreen",onFailure:h(p.a.UNKNOWN_CONNECT_WALLET_ERROR)};e.fundingConfig&&(r=(0,m.b)({address:c,appConfig:e,methodScreen:"FundingMethodSelectionScreen",fundWalletConfig:{...y,asset:"native-currency",chain:f},externalSolanaFundingScreen:"FundSolWalletWithExternalSolanaWallet"}),a={amount:e.fundingConfig.defaultRecommendedAmount,asset:"SOL",chain:f,destinationAddress:c,afterSuccessScreen:"StandardSignAndSendTransactionScreen",sourceWalletData:void 0}),s({connectWallet:w,standardSignAndSendTransaction:v,funding:r,solanaFundingData:a}),n("EmbeddedWalletConnectingScreen")})}}}(),d=(0,s.useMemo)(()=>{let e=[...(0,l.l)(t).sort((e,t)=>(e.walletIndex??0)-(t.walletIndex??0))],n=(0,l.e)(t);return n.length?[...e,...n]:e},[t]),b=(0,s.useMemo)(()=>({signMessage:async({message:e,address:t,options:i})=>await n({message:e,address:t,options:i}),signTransaction:async({transaction:e,address:t,chain:n,options:s})=>await i({transaction:e,address:t,chain:n,options:s}),async signAndSendTransaction({transaction:e,address:t,chain:n,options:i}){let{signature:s}=await a({transaction:e,address:t,chain:n,options:i});return{signature:s}}}),[n,i,a]);return(0,s.useEffect)(()=>{ei?.setImplementation(b)},[b]),(0,s.useEffect)(()=>{var t;!e||(t=es.accounts).length===d.length&&t.every((e,t)=>e.address===d[t]?.address)||ei?.emit("accountChanged",d)},[e,d]),{ready:e,wallet:es}}(),[i,a]=(0,s.useState)([]),[d,b]=(0,s.useState)([]);return(0,s.useEffect)(()=>{let e=[n,...i.filter(e=>"solana"===e.chainType&&!!e.wallet.features).map(e=>e.wallet)];b(e);let t=i.flatMap(t=>{let n=()=>b([...e]);return t.on("walletsUpdated",n),{connector:t,off:n}}),s=e.map(t=>t.features["standard:events"]?.on("change",()=>{b([...e])}));return()=>{s.forEach(e=>e?.()),t.forEach(({connector:e,off:t})=>e.off("walletsUpdated",t))}},[i]),(0,s.useEffect)(()=>{a(e.connectors?.walletConnectors.filter(e=>"solana"===e.chainType)??[]);let t=()=>{a(e.connectors?.walletConnectors.filter(e=>"solana"===e.chainType)??[])};return e.connectors?.on("connectorInitialized",t),()=>{e.connectors?.off("connectorInitialized",t)}},[t,e.connectors]),{ready:t,wallets:d}}();return{ready:e,wallets:(0,s.useMemo)(()=>t.flatMap(e=>e.accounts.map(t=>new a.ConnectedStandardSolanaWallet({wallet:e,account:t}))),[t])}},"g",0,function(e){return(0,t.getBase58Decoder)().decode(e)}])},460286,864216,e=>{"use strict";let t;var n=e.i(186210),i="u"<typeof window||"Deno"in globalThis;function s(e,t){return(t?.queryKeyHashFn||r)(e)}function r(e){return JSON.stringify(e,(e,t)=>u(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function a(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(n=>a(e[n],t[n]))}var o=Object.prototype.hasOwnProperty;function l(e,t,n=0){if(e===t)return e;if(n>500)return t;let i=c(e)&&c(t);if(!i&&!(u(e)&&u(t)))return t;let s=(i?e:Object.keys(e)).length,r=i?t:Object.keys(t),a=r.length,d=i?Array(a):{},h=0;for(let c=0;c<a;c++){let a=i?c:r[c],u=e[a],f=t[a];if(u===f){d[a]=u,(i?c<s:o.call(e,a))&&h++;continue}if(null===u||null===f||"object"!=typeof u||"object"!=typeof f){d[a]=f;continue}let p=l(u,f,n+1);d[a]=p,p===u&&h++}return s===a&&h===s?e:d}function c(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function u(e){if(!d(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!d(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function d(e){return"[object Object]"===Object.prototype.toString.call(e)}var h=Symbol();e.s(["addConsumeAwareSignal",0,function(e,t,n){let i,s=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),s||(s=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e},"addToEnd",0,function(e,t,n=0){let i=[...e,t];return n&&i.length>n?i.slice(1):i},"addToStart",0,function(e,t,n=0){let i=[t,...e];return n&&i.length>n?i.slice(0,-1):i},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==h?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,r,"hashQueryKeyByOptions",0,s,"isServer",0,i,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"matchMutation",0,function(e,t){let{exact:n,status:i,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(r(t.options.mutationKey)!==r(o))return!1}else if(!a(t.options.mutationKey,o))return!1}return(!i||t.state.status===i)&&(!s||!!s(t))},"matchQuery",0,function(e,t){let{type:n="all",exact:i,fetchStatus:r,predicate:o,queryKey:l,stale:c}=e;if(l){if(i){if(t.queryHash!==s(l,t.options))return!1}else if(!a(t.queryKey,l))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof c||t.isStale()===c)&&(!r||r===t.state.fetchStatus)&&(!o||!!o(t))},"noop",0,function(){},"partialMatchKey",0,a,"replaceData",0,function(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?l(e,t):t},"replaceEqualDeep",0,l,"resolveEnabled",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,h,"sleep",0,function(e){return new Promise(t=>{n.timeoutManager.setTimeout(t,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}],864216);var f=(t=()=>i,{isServer:()=>t(),setIsServer(e){t=e}});
2e.s(["environmentManager",0,f],460286)},435427,302554,e=>{"use strict";var t=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};e.s(["Subscribable",0,t],302554);var n=new class extends t{#e;#t;#n;constructor(){super(),this.#n=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,n],435427)},712548,e=>{"use strict";let t,n,i,s,r,a;var o=e.i(186210).systemSetTimeoutZero,l=(t=[],n=0,i=e=>{e()},s=e=>{e()},r=o,{batch:e=>{let a;n++;try{a=e()}finally{let e;--n||(e=t,t=[],e.length&&r(()=>{s(()=>{e.forEach(e=>{i(e)})})}))}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a=e=>{n?t.push(e):r(()=>{i(e)})},setNotifyFunction:e=>{i=e},setBatchNotifyFunction:e=>{s=e},setScheduler:e=>{r=e}});e.s(["notifyManager",0,l])},310857,e=>{"use strict";var t=e.i(864216),n=e.i(712548),i=e.i(421895),s=e.i(821828),r=class extends s.Removable{#i;#s;#r;#a;#o;#l;#c;constructor(e){super(),this.#c=!1,this.#l=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#r=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#i=l(this.options),this.state=e.state??this.#i,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#l,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=l(this.options);void 0!==e.data&&(this.setState(o(e.data,e.dataUpdatedAt)),this.#i=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#r.remove(this)}setData(e,n){let i=(0,t.replaceData)(this.state.data,e,this.options);return this.#u({data:i,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),i}setState(e,t){this.#u({type:"setState",state:e,setStateOptions:t})}cancel(e){let n=this.#o?.promise;return this.#o?.cancel(e),n?n.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#i}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.resolveStaleTime)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#c||this.#d()?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#d(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}
2async fetch(e,n){let s;if("idle"!==this.state.fetchStatus&&this.#o?.status()!=="rejected"){if(void 0!==this.state.data&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#c=!0,r.signal)})},o=()=>{let e,i=(0,t.ensureQueryFn)(this.options,n),s=(a(e={client:this.#a,queryKey:this.queryKey,meta:this.meta}),e);return(this.#c=!1,this.options.persister)?this.options.persister(i,s,this):i(s)},l=(a(s={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o}),s);this.options.behavior?.onFetch(l,this),this.#s=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#u({type:"fetch",meta:l.fetchOptions?.meta}),this.#o=(0,i.createRetryer)({initialPromise:n?.initialPromise,fn:l.fetchFn,onCancel:e=>{e instanceof i.CancelledError&&e.revert&&this.setState({...this.#s,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#u({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{let e=await this.#o.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof i.CancelledError){if(e.silent)return this.#o.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#u({type:"error",error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#u(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...a(t.data,this.options),fetchMeta:e.meta??null};case"success":let n={...t,...o(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#s=e.manual?n:void 0,n;case"error":let i=e.error;return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),n.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function a(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,i.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function o(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function l(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,i=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,r,"fetchState",0,a])},821828,e=>{"use strict";var t=e.i(186210),n=e.i(460286),i=e.i(864216),s=class{#h;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.isValidTimeout)(this.gcTime)&&(this.#h=t.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(n.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#h&&(t.timeoutManager.clearTimeout(this.#h),this.#h=void 0)}};e.s(["Removable",0,s])},421895,215253,777465,e=>{"use strict";var t=e.i(435427),n=e.i(302554),i=new class extends n.Subscribable{#f=!0;#t;#n;constructor(){super(),this.#n=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n
2)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#f!==e&&(this.#f=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#f}};e.s(["onlineManager",0,i],215253);var s=e.i(864216);function r(){let e,t,n=new Promise((n,i)=>{e=n,t=i});function i(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{i({status:"fulfilled",value:t}),e(t)},n.reject=e=>{i({status:"rejected",reason:e}),t(e)},n}e.s(["pendingThenable",0,r],777465);var a=e.i(460286);function o(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||i.isOnline()}var c=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};e.s(["CancelledError",0,c,"canFetch",0,l,"createRetryer",0,function(e){let n,u=!1,d=0,h=r(),f=()=>t.focusManager.isFocused()&&("always"===e.networkMode||i.isOnline())&&e.canRun(),p=()=>l(e.networkMode)&&e.canRun(),y=e=>{"pending"===h.status&&(n?.(),h.resolve(e))},g=e=>{"pending"===h.status&&(n?.(),h.reject(e))},v=()=>new Promise(t=>{n=e=>{("pending"!==h.status||f())&&t(e)},e.onPause?.()}).then(()=>{n=void 0,"pending"===h.status&&e.onContinue?.()}),b=()=>{let t;if("pending"!==h.status)return;let n=0===d?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(y).catch(t=>{if("pending"!==h.status)return;let n=e.retry??3*!a.environmentManager.isServer(),i=e.retryDelay??o,r="function"==typeof i?i(d,t):i,l=!0===n||"number"==typeof n&&d<n||"function"==typeof n&&n(d,t);u||!l?g(t):(d++,e.onFail?.(d,t),(0,s.sleep)(r).then(()=>f()?void 0:v()).then(()=>{u?g(t):b()}))})};return{promise:h,status:()=>h.status,cancel:t=>{if("pending"===h.status){let n=new c(t);g(n),e.onCancel?.(n)}},continue:()=>(n?.(),h),cancelRetry:()=>{u=!0},continueRetry:()=>{u=!1},canStart:p,start:()=>(p()?b():v().then(b),h)}}],421895)},186210,e=>{"use strict";var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},n=new class{#p=t;#y=!1;setTimeoutProvider(e){this.#p=e}setTimeout(e,t){return this.#p.setTimeout(e,t)}clearTimeout(e){this.#p.clearTimeout(e)}setInterval(e,t){return this.#p.setInterval(e,t)}clearInterval(e){this.#p.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,n])},698706,e=>{"use strict";var t=e.i(578791),n=e.i(190898),i=t.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:s})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,n.jsx)(i.Provider,{value:e,children:s})),"useQueryClient",0,e=>{let n=t.useContext(i);if(e)return e;if(!n)throw Error("No QueryClient set, use QueryClientProvider to set one");return n}])},735706,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i={default:function(){return v},useLinkStatus:function(){return m}};for(var s in i)Object.defineProperty(n,s,{enumerable:!0,get:i[s]});let r=e.r(475244),a=e.r(190898),o=r._(e.r(578791)),l=e.r(431330),c=e.r(665283),u=e.r(473738),d=e.r(414316),h=e.r(757371),f=e.r(841356),p=e.r(344106),y=e.r(681777),g=e.r(191788);function v(t){var n;let i,s,r,[v,m]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),w=(0,o.useRef)(null),{href:A,as:T,children:S,prefetch:O=null,passHref:E,replace:C,shallow:P,scroll:F,onClick:_,onMouseEnter:M,onTouchStart:j,legacyBehavior:I=!1,onNavigate:U,transitionTypes:W,ref:D,unstable_dynamicOnHover:R,...L}=t;i=S,I&&("string"==typeof i||"number"==typeof i)&&(i=(0,a.jsx)("a",{children:i}));let N=o.default.useContext(c.AppRouterContext),k=!1!==O,B=!1===O?"none":!0===O?"full":"auto",x="none"!==B?"auto"===B?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,K="string"==typeof(n=T||A)?n:(0,l.formatUrl)(n);if(I){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
2` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=o.default.Children.only(i)}let q=I?s&&"object"==typeof s&&s.ref:D,V,Q=o.default.useCallback(e=>(null!==N&&(w.current=(0,p.mountLinkInstance)(e,K,N,x,k,m,V)),()=>{w.current&&((0,p.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,p.unmountPrefetchableInstance)(e)}),[k,K,N,x,m,V]),G={ref:(0,u.useMergedRef)(Q,q),onClick(t){I||"function"!=typeof _||_(t),I&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!N||t.defaultPrevented||function(t,n,i,s,r,a,l,c="none"){if("u">typeof window){let u,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,y.isLocalURL)(n)){s&&(t.preventDefault(),location.replace(n));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:h}=e.r(557514);o.default.startTransition(()=>{h(n,s?"replace":"push",!1===r?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,i.current,l,c)})}}(t,K,w,C,F,U,W,B)},onMouseEnter(e){I||"function"!=typeof M||M(e),I&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),N&&k&&(0,p.onNavigationIntent)(e.currentTarget,!0===R)},onTouchStart:function(e){I||"function"!=typeof j||j(e),I&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),N&&k&&(0,p.onNavigationIntent)(e.currentTarget,!0===R)}};return(0,d.isAbsoluteUrl)(K)?G.href=K:I&&!E&&("a"!==s.type||"href"in s.props)||(G.href=(0,h.addBasePath)(K)),r=I?o.default.cloneElement(s,G):(0,a.jsx)("a",{...L,...G,children:i}),(0,a.jsx)(b.Provider,{value:v,children:r})}let b=(0,o.createContext)(p.IDLE_LINK_STATUS),m=()=>(0,o.useContext)(b);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},473738,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return s}});let i=e.r(578791);function s(e,t){let n=(0,i.useRef)(null),s=(0,i.useRef)(null);return(0,i.useCallback)(i=>{if(null===i){let e=n.current;e&&(n.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(n.current=r(e,i)),t&&(s.current=r(t,i))},[e,t])}function r(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},40875,e=>{"use strict";var t=e.i(213764),n=e.i(992687),i=e.i(644122),s=e.i(571361);function r(e,n){var i,r;let a,{user:o}=(0,t.usePrivy)();if(!o||!(i=o.linkedAccounts)||0===i.length||!i.some(e=>"wallet"===e.type))return;let l=(r=o.linkedAccounts,(a=(r??[]).filter(t=>"wallet"===t.type&&t.chainType===e)).find(e=>!(0,s.isEmbeddedWalletAccount)(e))??a[0]);if(l)return n?.find(e=>e.address===l.address)}function a(){let{wallets:e}=(0,n.useWallets)();return r("ethereum",e)}function o(){let{wallets:e}=(0,i.useWallets)();return r("solana",e)}e.s(["useConnectedEvmWallet",0,a,"useConnectedEvmWalletAddress",0,function(){let{address:e}=a()||{address:void 0};return e||void 0},"useConnectedEvmWalletWithLoading",0,function(){let{ready:e,wallets:t}=(0,n.useWallets)();return{ready:e,wallet:r("ethereum",t)}},"useConnectedSolanaWallet",0,o,"useConnectedUniversalWalletRequired",0,function(){let e=function(){let e=a(),n=o(),i=function(){let{user:e}=(0,t.usePrivy)();if(e?.linkedAccounts)return function(e){let t=e.filter(e=>"wallet"===e.type);if(0===t.length)return;if(1===t.length)return t[0];let n=t.find(e=>{let t=e.walletClientType;return t&&"privy"!==t&&"embedded"!==t&&"unknown"!==t});if(n)return n;let i=t.map(e=>({account:e,createdAt:e.createdAt,firstVerifiedAt:e.firstVerifiedAt||e.firstVerifiedAt,verifiedAt:e.firstVerifiedAt||e.verifiedAt})).filter(e=>e.firstVerifiedAt||e.verifiedAt||e.createdAt);if(i.length>0)return i.sort((e,t)=>
2new Date(e.firstVerifiedAt||e.verifiedAt||e.createdAt||0).getTime()-new Date(t.firstVerifiedAt||t.verifiedAt||t.createdAt||0).getTime()),i[0].account;let s=t.find(e=>{let t=e.connectorType;return t&&"embedded"!==t});return s||t[0]}(e.linkedAccounts)}();if(i){if("ethereum"===i.chainType&&e)return e;if("solana"===i.chainType&&n)return n}return n||e}();if(!e)throw Error("No wallet available - user must be authenticated");return e}])},571361,e=>{"use strict";let t=new Set(["privy","privy-v2"]);function n(e){return!!e&&t.has(e)}function i(e){return"embedded"===e.connectorType||n(e.walletClientType)}function s(e,t){return(e??[]).filter(e=>"wallet"===e.type&&t.includes(e.chainType))}e.s(["findExternalEthWallet",0,function(e){return s(e,["ethereum"]).find(e=>!i(e))},"isEmbeddedWalletAccount",0,i,"isEmbeddedWalletClientType",0,n,"selectSupportedWalletAccounts",0,s,"walletClientLabel",0,function(e){if(!e||n(e))return"Wallet";switch(e){case"metamask":return"MetaMask";case"coinbase_wallet":return"Coinbase Wallet";case"rainbow":return"Rainbow";case"phantom":return"Phantom";case"wallet_connect":return"WalletConnect";default:return"Connected wallet"}}])}]); 3 4//# debugId=d7d650b9-10c0-698f-5038-940591dc325f
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.