PageSourceSearch

https://bnb-xapp-oe59z.ondigitalocean.app/_next/static/chunks/21331-eac5ac56eaa47bdd.js

js bnb-xapp-oe59z.ondigitalocean.app collected 2026-10-03 14:54:34 UTC 120,941 bytes, 12 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21331],{355:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});let n={id:0xaa36a7,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{privy:{http:["https://sepolia.rpc.privy.systems"]},alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},testnet:!0}},566:(e,t,r)=>{"use strict";r.d(t,{n:()=>n});let n={id:137,name:"Polygon Mainnet",network:"polygon",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{privy:{http:["https://polygon-mainnet.rpc.privy.systems"]},alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}}}},2149:(e,t,r)=>{"use strict";r.d(t,{P:()=>a,a:()=>c,e:()=>l,p:()=>i,u:()=>s});var n=r(65967);let i={login:{onComplete:[],onError:[]},logout:{onSuccess:[]},connectWallet:{onSuccess:[],onError:[]},connectOrCreateWallet:{onSuccess:[],onError:[]},createWallet:{onSuccess:[],onError:[]},linkAccount:{onSuccess:[],onError:[]},update:{onSuccess:[],onError:[]},configureMfa:{onMfaRequired:[]},setWalletPassword:{onSuccess:[],onError:[]},setWalletRecovery:{onSuccess:[],onError:[]},signMessage:{onSuccess:[],onError:[]},signTypedData:{onSuccess:[],onError:[]},sendTransaction:{onSuccess:[],onError:[]},signTransaction:{onSuccess:[],onError:[]},accessToken:{onAccessTokenGranted:[],onAccessTokenRemoved:[]},oAuthAuthorization:{onOAuthTokenGrant:[]},fundWallet:{onUserExited:[]},fundSolanaWallet:{onUserExited:[]},customAuth:{onAuthenticated:[],onUnauthenticated:[]}},a=(0,n.createContext)(void 0),o=()=>(0,n.useContext)(a);function s(e,t){if(!t)return;let r=o().current[e];return(0,n.useEffect)(()=>{for(let[n,i]of Object.entries(t))Object.prototype.hasOwnProperty.call(r,n)||console.warn(`Invalid event type "${n}" for action "${e}"`),r[n]?.push(i);return()=>{for(let[n,i]of Object.entries(t))Object.prototype.hasOwnProperty.call(r,n)||console.warn(`Invalid event type "${n}" for action "${e}"`),r[n]=r[n]?.filter(e=>e!==i)}},[t])}function l(e,t,r,...n){for(let i of e.current[t][r])i(...n)}function c(){let e=o();return(t,r,...n)=>l(e,t,r,...n)}},5297:(e,t,r)=>{"use strict";r.d(t,{M:()=>x,P:()=>C,a:()=>S,b:()=>d,c:()=>m,d:()=>M,e:()=>p,f:()=>b,g:()=>v,h:()=>_,i:()=>l,j:()=>g,k:()=>y,l:()=>k,o:()=>f,u:()=>T});var n=r(76083),i=r(75175),a=r(65967),o=r(34517),s=r(98231);function l(e){return"string"==typeof e&&/^custom:[a-zA-Z0-9_-]+$/i.test(e)}function c(e){return e?new Date(1e3*e):null}function u(e,t){return e.slice().sort((e,t)=>(e.firstVerifiedAt?.getTime()??0)-(t.firstVerifiedAt?.getTime()??0)).find(e=>e.type===t)}let d=e=>e?p(e).find(e=>0===e.walletIndex)??null:null,p=e=>e?h(e,"ethereum"):[],h=(e,t)=>e.linkedAccounts.filter(e=>"wallet"===e.type&&"privy"===e.walletClientType&&!e.imported&&e.chainType===t),f=e=>e?h(e,"solana"):[],m=e=>e?f(e).find(e=>0===e.walletIndex)??null:null,b=e=>(e?.linkedAccounts??[]).filter(e=>"wallet"===e.type&&"privy"===e.walletClientType&&e.imported&&"ethereum"===e.chainType),g=e=>(e?.linkedAccounts??[]).filter(e=>"wallet"===e.type&&e.imported&&"privy"===e.walletClientType&&"solana"===e.chainType),w=(e,t)=>e===t||!(!e.startsWith("0x")||!t.startsWith("0x"))&&(0,n.b)(e)===(0,n.b)(t),_=(e,t)=>e?.linkedAccounts.find(e=>"wallet"===e.type&&"privy"===e.walletClientType&&w(e.address,t))||null,y=(e,t)=>e.find(e=>w(e.address,t))||null,v=e=>d(e)??m(e);function k(e){if(!e)return null;let t=function(e){let t=[];for(let r of e){let e=r.type;switch(r.type){case"wallet":let n={id:r.id,address:r.address,type:r.type,imported:r.imported,delegated:r.delegated,first
1VerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at),chainType:r.chain_type,walletClientType:r.wallet_client_type,connectorType:r.connector_type,recoveryMethod:r.recovery_method,walletIndex:r.wallet_index,publicKey:r.public_key};t.push(n);break;case"smart_wallet":let i={address:r.address,type:r.type,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at),smartWalletType:r.smart_wallet_type,smartWalletVersion:r.smart_wallet_version};t.push(i);break;case"cross_app":let a={type:r.type,subject:r.subject,embeddedWallets:r.embedded_wallets,smartWallets:r.smart_wallets,providerApp:{id:r.provider_app_id},firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(a);break;case"email":let o={address:r.address,type:r.type,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(o);break;case"phone":let s={number:r.phoneNumber,type:r.type,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(s);break;case"google_oauth":let u={subject:r.subject,email:r.email,name:r.name,type:r.type,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(u);break;case"spotify_oauth":let d={subject:r.subject,email:r.email,name:r.name,type:r.type,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(d);break;case"instagram_oauth":let p={subject:r.subject,username:r.username,type:r.type,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(p);break;case"twitter_oauth":let h={subject:r.subject,username:r.username,name:r.name,type:r.type,profilePictureUrl:r.profile_picture_url,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(h);break;case"discord_oauth":let f={subject:r.subject,username:r.username,email:r.email,type:r.type,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(f);break;case"github_oauth":let m={subject:r.subject,username:r.username,name:r.name,email:r.email,type:r.type,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(m);break;case"tiktok_oauth":let b={subject:r.subject,username:r.username,name:r.name,type:r.type,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(b);break;case"line_oauth":let g={subject:r.subject,name:r.name,email:r.email,profilePictureUrl:r.profile_picture_url,type:r.type,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(g);break;case"twitch_oauth":let w={subject:r.subject,username:r.username,type:r.type,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(w);break;case"linkedin_oauth":let _={subject:r.subject,name:r.name,email:r.email,vanityName:r.vanity_name,type:r.type,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(_);break;case"apple_oauth":let y={subject:r.subject,email:r.email,type:r.type,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(y);break;case"custom_auth":t.push({type:r.type,customUserId:r.custom_user_id,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)});break;case"farcaster":let v={type:r.type,fid:r.fid,ownerAddress:r.owner_address,displayName:r.display_name,username:r.username,bio:r.bio,pfp:r.profile_picture_url,url:r.homepage_url,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at),signerPublicKey:r.signer_public_key};t.push(v);break;case"passkey":let k={type:r.type,enrolledInMfa:r.enrolled_in_mfa,credentialId:r.credential_id,publicKey:r.public_key,authenticatorName:r.authenticator_name,createdWithDevice:r.created_with_device,createdWithOs:r.created_with_os,createdWithBrowser:r.created_with_browser,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(k);break;case"telegram":let E={type:r.type,telegramUserId:r.telegram_user_id,firstName:r.first_name,lastName:r.last_name,username:r.username,photoUrl:r.photo_url,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(E);break;default:if(l(r.type)){let e={type:r.type,subject:r.subject,name:r.name,username:r.username,email:r.email,profilePictureUrl:r.profile_picture_url,firstVerifiedAt:c(r.first_verified_at),latestVerifiedAt:c(r.latest_verified_at)};t.push(e);break}console.warn(`Unrecognized account type: ${e}. Please consider upgrading the Privy SDK.`)}}return t}(e.linked_accounts),r=u(t,"wallet"),n=u(t,"smart_wallet"),i=u(t,"email"),a=u(t,"phone"),o=u(t,"google_oauth"),s=u(t,"twitter_oauth"),d=u(t,"discord_oauth"),p=u(t,"github_oauth"),h=u(t,"spotify_oauth"),f=u(t,"instagram_oauth"),m=u(t,"tiktok_oauth"),b=u(t,"line_oauth"),g=u(t,"twitch_oauth"),w=u(t,"linkedin_oauth"),_=u(t,"apple_oauth"),y=u(t,"farcaster"),v=u(t,"telegram"),k=e.mfa_methods.map(({type:e,verified_at:t})=>({type:e,verifiedAt:c(t)}));return{id:e.id,createdAt:c(e.created_at),linkedAccounts:t,email:i&&{address:i?.address},phone:a&&{number:a?.number},wallet:r&&{id:r.id,address:r.address,chainType:r.chainType,walletClientType:r.walletClientType,connectorType:r.connectorType,recoveryMethod:r.re
1coveryMethod,imported:r.imported,delegated:r.delegated,walletIndex:r.walletIndex,publicKey:r.publicKey},smartWallet:n&&{address:n.address,smartWalletType:n.smartWalletType,smartWalletVersion:n.smartWalletVersion},google:o&&{subject:o.subject,email:o.email,name:o.name},twitter:s&&{subject:s.subject,username:s.username,name:s.name,profilePictureUrl:s.profilePictureUrl},discord:d&&{subject:d.subject,username:d.username,email:d.email},github:p&&{subject:p.subject,username:p.username,name:p.name,email:p.email},spotify:h&&{subject:h.subject,email:h.email,name:h.name},instagram:f&&{subject:f.subject,username:f.username},tiktok:m&&{subject:m.subject,username:m.username,name:m.name},line:b&&{subject:b.subject,name:b.name,email:b.email,profilePictureUrl:b.profilePictureUrl},twitch:g&&{subject:g.subject,username:g.username},linkedin:w&&{subject:w.subject,name:w.name,email:w.email,vanityName:w.vanityName},apple:_&&{subject:_.subject,email:_.email},farcaster:y&&{fid:y.fid,ownerAddress:y.ownerAddress,displayName:y.displayName,username:y.username,bio:y.bio,pfp:y.pfp,url:y.url,signerPublicKey:y.signerPublicKey},telegram:v&&{telegramUserId:v.telegramUserId,firstName:v.firstName,lastName:v.lastName,username:v.username,photoUrl:v.photoUrl},delegatedWallets:[],mfaMethods:k.map(e=>e.type),hasAcceptedTerms:e.has_accepted_terms??!1,isGuest:e.is_guest,customMetadata:e.custom_metadata}}function E({src:e,...t}){return(0,i.jsx)("img",{src:e,...t,style:{display:"none"}})}let A=(0,a.createContext)({currentScreen:null,lastScreen:null,navigate:s.n,navigateBack:s.n,resetNavigation:s.n,setModalData:s.n,onUserCloseViaDialogOrKeybindRef:void 0}),x=e=>{let t=(0,o.u)(),[r,n]=(0,a.useState)(e.initialScreen),s=(0,a.useRef)(null);(0,a.useEffect)(()=>{e.open||(s.current=null)},[e.open]),(0,a.useEffect)(()=>{s.current=null},[e.initialScreen]);let l={data:e.data,setModalData:e.setModalData,currentScreen:e.initialScreen,lastScreen:r,navigate:(t,r=!0)=>{e.setInitialScreen(t),r&&n(e.initialScreen)},navigateBack:()=>{e.setInitialScreen(r)},resetNavigation:()=>{e.setInitialScreen(null),n(null)},onUserCloseViaDialogOrKeybindRef:s};return(0,i.jsxs)(A.Provider,{value:l,children:[("string"==typeof t.appearance.logo||"img"===t.appearance.logo?.type)&&(0,i.jsx)(E,{src:"string"==typeof t.appearance.logo?t.appearance.logo:t.a
1ppearance.logo.props.src}),e.children]})},S=()=>(0,a.useContext)(A),C=(0,a.createContext)({ready:!1,authenticated:!1,user:null,walletConnectors:null,connectWallet:s.n,login:s.n,connectOrCreateWallet:s.n,linkEmail:s.n,linkPhone:s.n,linkFarcaster:s.n,linkWallet:s.n,startCrossAppAuthFlow:s.n,linkGoogle:s.n,linkTwitter:s.n,linkTwitch:s.n,linkDiscord:s.n,linkGithub:s.n,linkSpotify:s.n,linkInstagram:s.n,linkTelegram:s.n,linkTiktok:s.n,linkLine:s.n,linkLinkedIn:s.n,linkApple:s.n,linkPasskey:s.n,updateEmail:s.n,updatePhone:s.n,logout:s.n,getAccessToken:s.n,unlinkEmail:s.n,unlinkPhone:s.n,unlinkWallet:s.n,unlinkGoogle:s.n,unlinkTwitter:s.n,unlinkTwitch:s.n,unlinkDiscord:s.n,unlinkGithub:s.n,unlinkSpotify:s.n,unlinkInstagram:s.n,unlinkTiktok:s.n,unlinkLine:s.n,unlinkLinkedIn:s.n,unlinkApple:s.n,unlinkCrossAppAccount:s.n,unlinkFarcaster:s.n,unlinkTelegram:s.n,unlinkPasskey:s.n,signMessage:s.n,signTypedData:s.n,enrollInMfa:s.n,initEnrollmentWithSms:s.n,initEnrollmentWithTotp:s.n,initEnrollmentWithPasskey:s.n,promptMfa:s.n,init:s.n,submitEnrollmentWithSms:s.n,submitEnrollmentWithTotp:s.n,submitEnrollmentWithPasskey:s.n,unenroll:s.n,submit:s.n,cancel:s.n,sendTransaction:s.n,signTransaction:s.n,exportWallet:s.n,setWalletPassword:s.n,setWalletRecovery:s.n,requestFarcasterSignerFromWarpcast:s.n,getFarcasterSignerPublicKey:s.n,signFarcasterMessage:s.n,signMessageWithCrossAppWallet:s.n,signTypedDataWithCrossAppWallet:s.n,sendTransactionWithCrossAppWallet:s.n,signTransactionWithCrossAppWallet:s.n,isModalOpen:!1,mfaMethods:[]}),T=()=>(0,a.useContext)(C),M=e=>!!e.id&&"privy-v2"===e.recoveryMethod},8281:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={id:42220,name:"Celo Mainnet",network:"celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]},infura:{http:["https://celo-mainnet.infura.io/v3"]},public:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet"},etherscan:{name:"CeloScan",url:"https://celoscan.io"}},testnet:!1}},10342:(e,t,r)=>{"use strict";r.d(t,{F:()=>G,c:()=>function e(t={}){let{fetch:r=globalThis.fetch,Headers:i=globalThis.Headers,AbortController:a=globalThis.AbortController}=t;async function o(e){let t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t="number"==typeof e.options.retry?e.options.retry:+!Y(e.options.method);let r=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(r):Q.has(r))){let r="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return r>0&&await new Promise(e=>setTimeout(e,r)),s(e.request,{...e.options,retry:t-1})}}let r=function(e){let t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",i=`[${r}] ${JSON.stringify(n)}`,a=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=new G(`${i}: ${a}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(o,t,{get:()=>e[t]});for(let[t,r]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(o,t,{get:()=>e.response&&e.response[r]});return o}(e);throw Error.captureStackTrace&&Error.captureStackTrace(r,s),r}let s=async function(e,s={}){let l,c={request:e,options:function(e,t,r,n){let i,a=function(e,t,r){if(!t)return new r(e);let n=new r(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(t,i);return n}(t?.headers??e?.headers,r?.headers,n);return(r?.query||r?.params||t?.params||t?.query)&&(i={...r?.params,...r?.query,...t?.params,...t?.query}),{...r,...t,query:i,params:i,headers:a}}(e,s,t.defaults,i),response:void 0,error:void 0};if(c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&(await J(c,c.options.onRequest),c.options.headers instanceof i||(c.options.headers=new i(c.options.headers||{}))),"string"==typeof c.request&&(c.options.baseURL&&(c.request=function(e,t){var r;if(!(r=t)||"/"===r||N(e))return e;let n=function(e="",t){if(!t)return(R(e)?e.slice(0,-1):e)||"/";if(!R(e,!0))return e||"/";let r=e,n="",i=e.indexOf("#");-1!==i&&(r=e.slice(0,i),n=e.slice(i));let[a,...o]=r.split("?");return((a.endsWith("/")?a.slice(0,-1):a)||"/")+(o.length>0?`?${o.join("?")}`:"")+n}(t);return e.startsWith(n)?e:function(e,...t){let r=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(r){let t=e.replace(P,"");r=B(r)+t}else r=e;return r}(n,e)}(c.request,c.options.baseURL)),c.options.query&&(c.request=function(e,t){let r=z(e),n={...O(r.search),...t};return r.search=W(n),function(e){let t=e.pathname||"",r=e.search?(e.search.startsWith("?")?""
1:"?")+e.search:"",n=e.hash||"",i=e.auth?e.auth+"@":"",a=e.host||"";return(e.protocol||e[$]?(e.protocol||"")+"//":"")+i+a+t+r+n}(r)}(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&Y(c.options.method))if(function(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!(e.buffer||e instanceof FormData||e instanceof URLSearchParams)&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(c.options.body)){let e=c.options.headers.get("content-type");"string"!=typeof c.options.body&&(c.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(c.options.body).toString():JSON.stringify(c.options.body)),e||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")}else("pipeTo"in c.options.body&&"function"==typeof c.options.body.pipeTo||"function"==typeof c.options.body.pipe)&&!("duplex"in c.options)&&(c.options.duplex="half");if(!c.options.signal&&c.options.timeout){let e=new a;l=setTimeout(()=>{let t=Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},c.options.timeout),c.options.signal=e.signal}try{c.response=await r(c.request,c.options)}catch(e){return c.error=e,c.options.onRequestError&&await J(c,c.options.onRequestError),await o(c)}finally{l&&clearTimeout(l)}if((c.response.body||c.response._bodyInit)&&!ee.has(c.response.status)&&"HEAD"!==c.options.method){let e=(c.options.parseResponse?"json":c.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return Z.test(t)?"json":"text/event-stream"===t?"stream":X.has(t)||t.startsWith("text/")?"text":"blob"}(c.response.headers.get("content-type")||"");switch(e){case"json":{let e=await c.response.text(),t=c.options.parseResponse||n.Ay;c.response._data=t(e);break}case"stream":c.response._data=c.response.body||c.response._bodyInit;break;default:c.response._data=await c.response[e]()}}return(c.options.onResponse&&await J(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600)?(c.options.onResponseError&&await J(c,c.options.onResponseError),await o(c)):c.response},l=async function(e,t){return(await s(e,t))._data};return l.raw=s,l.native=(...e)=>r(...e),l.create=(r={},n={})=>e({...t,...n,defaults:{...t.defaults,...n.defaults,...r}}),l}});var n=r(35625);let i=/[^\0-\x7E]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,o={overflow:"Overflow Error","not-basic":"Illegal Input","invalid-input":"Invalid Input"},s=Math.floor,l=String.fromCharCode;function c(e){throw RangeError(o[e])}let u=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},d=function(e,t,r){let n=0;for(e=r?s(e/700):e>>1,e+=s(e/t);e>455;n+=36)e=s(e/35);return s(n+36*e/(e+38))},p=/#/g,h=/&/g,f=/\//g,m=/=/g,b=/\?/g,g=/\+/g,w=/%5e/gi,_=/%60/gi,y=/%7b/gi,v=/%7c/gi,k=/%7d/gi,E=/%20/gi,A=/%2f/gi,x=/%252f/gi;function S(e){return encodeURI(""+e).replace(v,"|")}function C(e){return S("string"==typeof e?e:JSON.stringify(e)).replace(g,"%2B").replace(E,"+").replace(p,"%23").replace(h,"%26").replace(_,"`").replace(w,"^").replace(f,"%2F")}function T(e){return C(e).replace(m,"%3D")}function M(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function I(e=""){var t=e;let r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+(function(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r})((t=t.replace(a,".")).split("."),function(e){return i.test(e)?"xn--"+function(e){let t=[],r=(e=function(e){let t=[],r=0,n=e.length;for(;r<n;){let i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){let n=e.charCodeAt(r++);(64512&n)==56320?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}(e)).length,n=128,i=0,a=72;for(let r of e)r<128&&t.push(l(r));let o=t.length,p=o;for(o&&t.push("-");p<r;){let r=0x7fffffff;for(let t of e)t>=n&&t<r&&(r=t);let h=p+1;for(let f of(r-n>s((0x7fffffff-i)/h)&&c("overflow"),i+=(r-n)*h,n=r,e))if(f<n&&++i>0x7fffffff&&c("overflow"),f==n){let e=i;for(let r=36;;r+=36){let n=r<=a?1:r>=a+26?26:r-a;if(e<n)break;let i=e-n,o=36-n;t.push(l(u(n+i%o,0))),e=s(i/o)}t.push(l(u(e,0))),a=d(i,h,p==o),i=0,++p}++i,++n}return t.join("")}(e):e}).join(".")}function O(e=""){let t=Object.create(null);for(let r of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=r.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let n=M(e[1].replace(g," "));if("__proto__"===n||"constructor"===n)continue;let i=M((e[2]||"").replace(g," "));void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}return t}function W(e){return Object.keys(e).filter(t=>void 0!==e[t]).map(t=>{var r;return(("number"==typeof(r=e[t])||"boolean"==typeof r)&&(r=String(r)),r)?Array.isArray(r)?r.map(e=>`${T(t)}=${C(e)}`).join("&"):`${T(t)}=${C(r)}`:T(t)}
1).filter(Boolean).join("&")}let U=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,F=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,D=/^([/\\]\s*){2,}[^/\\]/,L=/\/$|\/\?|\/#/,P=/^\.?\//;function N(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?U.test(e):F.test(e)||!!t.acceptRelative&&D.test(e)}function R(e="",t){return t?L.test(e):e.endsWith("/")}function B(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(R(e,!0))return e||"/";let r=e,n="",i=e.indexOf("#");if(-1!==i&&(r=e.slice(0,i),n=e.slice(i),!r))return n;let[a,...o]=r.split("?");return a+"/"+(o.length>0?`?${o.join("?")}`:"")+n}function j(e=""){return e.startsWith("/")}let $=Symbol.for("ufo:protocolRelative");function z(e="",t){let r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){let[,e,t=""]=r;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!N(e,{acceptRelative:!0}))return t?z(t+e):H(e);let[,n="",i,a=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o="",s=""]=a.match(/([^#/?]*)(.*)?/)||[];"file:"===n&&(s=s.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:l,search:c,hash:u}=H(s);return{protocol:n.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:o,pathname:l,search:c,hash:u,[$]:!n}}function H(e=""){let[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function q(e=""){let[t,r]=e.split(":");return{username:M(t),password:M(r)}}function V(e=""){let[t,r]=(e.match(/([^/:]*):?(\d+)?/)||[]).splice(1);return{hostname:M(t),port:r}}class G extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let K=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Y(e="GET"){return K.has(e.toUpperCase())}let X=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Z=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function J(e,t){if(t)if(Array.isArray(t))for(let r of t)await r(e);else await t(e)}let Q=new Set([408,409,425,429,500,502,503,504]),ee=new Set([101,204,205,304])},10979:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}},21331:(e,t,r)=>{"use strict";r.d(t,{P:()=>x,S:()=>C,a:()=>f,b:()=>h,c:()=>S,d:()=>b,e:()=>T,g:()=>D,k:()=>O,o:()=>k,p:()=>E,r:()=>w,s:()=>g,u:()=>N});var n=r(94018),i=r(98231),a=r(75175),o=r(65967),s=r(5297),l=r(2149),c=r(76643),u=r(59808),d=r(34517);function p(e){return{name:e.metadata?.shortName||e.name||"",universalLink:e.mobile.universal,deepLink:e.mobile.native}}function h(e,t){let r=p(t);if(n.Fr&&r.universalLink)return v(r.universalLink,e);if(r.deepLink)return y(r.deepLink,e);if(r.universalLink)return v(r.universalLink,e);throw new i.a(`Unsupported wallet ${t.id}`)}function f(e,t){let r=p(t);if(r.universalLink)return v(r.universalLink,e)}let m="WALLETCONNECT_DEEPLINK_CHOICE";function b(){try{localStorage.removeItem(m)}catch{}}function g({href:e,name:t}){try{localStorage.setItem(m,JSON.stringify({href:e,name:t}))}catch{}}function w(){try{localStorage.removeItem(m)}catch{}}function _(e){return e.startsWith("http://")||e.startsWith("https://")}function y(e,t){if(_(e))return v(e,t);let r=e;return r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),{redirect:`${r}wc?uri=${encodeURIComponent(t)}`,href:r}}function v(e,t){if(!_(e))return y(e,t);let r=e;return r.endsWith("/")||(r=`${r}/`),{redirect:`${r}wc?uri=${encodeURIComponent(t)}`,href:r}}function k(e,t){window.open(e,t,"noreferrer noopener")}let E=({address:e,nonce:t})=>`${window.location.host} wants you to sign in with your Solana account:
2${e}
3
4You are proving you own ${e}.
5
6URI: ${window.location.origin}
7Version: 1
8Chain ID: mainnet
9Nonce: ${t}
10Issued At: ${(new Date).toISOString()}
11Resources:
12- https://privy.io`,A=(0,o.createContext)({plugins:{current:{}}}),x=({children:e})=>{let t=(0,o.useRef)({});return(0,a.jsx)(A.Provider,{value:{plugins:t},children:e})},S=()=>{let{plugins:e}=(0,o.useContext)(A);return(0,o.useCallback)(t=>e.current[t],[e])},C=Symbol("solana-funding-plugin"),T=Symbol("solana-ledger-plugin"),M=(e,{chainType:t,walletIndex:r}={})=>e?.linkedAccounts.filter(e=>"wallet"===e.type&&"privy"===e.walletClientType&&(void 0===r||e.walletIndex===r)&&(void 0===t||e.chainType===t))??[],I=e=>e.reduce((e,t)=>
12!e||e.walletIndex<t.walletIndex?t:e,null),O=async({user:e,accessToken:t,proxy:r,refreshSessionAndUser:n,privy:i,appConfig:a,recoverEmbeddedWallet:o,setUser:l,walletIndex:d,chainType:p,recoveryMethod:h,recoveryPassword:f,recoveryAccessToken:m})=>{if(0===d)if("user-controlled-server-wallets-only"===a.embeddedWallets.mode)await (0,c.v)(i,{request:{chain_type:p}});else if("ethereum"===p){let n=(0,s.c)(e);n&&await o({address:n.address}),await r.create({accessToken:t,solanaAddress:n?.address,recoveryMethod:h,recoveryPassword:f,recoveryAccessToken:m})}else{if("solana"!==p)throw Error("Invalid input to create wallet");{let n=(0,s.b)(e);n&&await o({address:n.address}),await r.createSolana({accessToken:t,ethereumAddress:n?.address,recoveryMethod:h,recoveryPassword:f,recoveryAccessToken:m})}}else if("user-controlled-server-wallets-only"===a.embeddedWallets.mode)await (0,c.v)(i,{request:{chain_type:p}});else{let{entropyId:n,entropyIdVerifier:i}=(0,u.g)(e);await o(),await r.addWallet({accessToken:t,entropyId:n,entropyIdVerifier:i,chainType:p,hdWalletIndex:d})}let b=await n(),g=M(b,{chainType:p,walletIndex:d})[0];return l(b),{user:b,account:g}},W=async({accessToken:e,appConfig:t,privy:r,emitPrivyEvent:n,proxy:a,refreshSessionAndUser:o,recoverEmbeddedWallet:l,user:c,walletIndex:u,setModalData:d,openModal:p,chainType:h,setUser:f})=>{if(u<0)throw n("createWallet","onError",i.b.EMBEDDED_WALLET_CREATE_ERROR),Error(`A negative walletIndex (${u}
12) is invalid.`);let m=(0,s.g)(c);if(u>0&&!m)throw n("createWallet","onError",i.b.EMBEDDED_WALLET_NOT_FOUND),Error("Must have an existing embedded wallet to create an additional wallet.");if(t.embeddedWallets.requireUserOwnedRecoveryOnCreate&&"user-controlled-server-wallets-only"===t.embeddedWallets.mode)throw n("createWallet","onError",i.b.EMBEDDED_WALLET_CREATE_ERROR),Error("User owned recovery not yet supported for this app.");if(!m&&t.embeddedWallets.requireUserOwnedRecoveryOnCreate)return await U({emitPrivyEvent:n,setModalData:d,openModal:p,chainType:h});let b=M(c,{chainType:h,walletIndex:u})[0];if(b)return{user:c,account:b};if(0===u&&!a)return U({emitPrivyEvent:n,setModalData:d,openModal:p,chainType:h});if(!a)throw n("createWallet","onError",i.b.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to connect to wallet proxy");return O({appConfig:t,walletIndex:u,chainType:h,user:c,accessToken:e,proxy:a,refreshSessionAndUser:o,privy:r,recoverEmbeddedWallet:l,setUser:f})},U=async({emitPrivyEvent:e,setModalData:t,openModal:r,chainType:n})=>new Promise((a,o)=>{t({createWallet:{onSuccess:({user:t,account:r})=>{e("createWallet","onSuccess",{wallet:r}),a({user:t,account:r})},onFailure:t=>{e("createWallet","onError",i.b.UNKNOWN_EMBEDDED_WALLET_ERROR),o(t)},callAuthOnSuccessOnClose:!1,shouldCreateEth:"ethereum"===n,shouldCreateSol:"solana"===n}}),r("EmbeddedWalletOnAccountCreateScreen")}),F=()=>{let e=(0,d.u)(),t=(0,l.a)(),{setModalData:r}=(0,s.a)(),{initializeWalletProxy:n,recoverEmbeddedWallet:a,setUser:o,openModal:c,refreshSessionAndUser:u,privy:p,client:h}=(0,i.u)();return{create:async({chainType:s,options:l,latestUser:f})=>{let m=f;if(m||(m=await u()),!m)throw t("createWallet","onError",i.b.MUST_BE_AUTHENTICATED),Error("User must be authenticated before creating a Privy wallet");return await (async({appConfig:e,getAccessToken:t,initializeWalletProxy:r,user:n,privy:a,emitPrivyEvent:o,recoverEmbeddedWallet:s,setModalData:l,openModal:c,setUser:u,options:d,timeoutDuration:p,refreshSessionAndUser:h,chainType:f})=>{let[m,b]=await Promise.all([r(p),t()]);if(!b||!n)throw o("createWallet","onError",i.b.MUST_BE_AUTHENTICATED),Error("User must be authenticated before creating a Privy wallet");if(!m&&e.customAuth?.enabled)throw o("createWallet","onError",i.b.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to connect to wallet proxy");if(d&&"walletIndex"in d&&"number"==typeof d.walletIndex){if("user-controlled-server-wallets-only"===e.embeddedWallets.mode)throw o("createWallet","onError",i.b.INVALID_DATA),Error("Invalid input, use `createAdditional` instead of `walletIndex` to create additional wallets.");return W({accessToken:b,appConfig:e,privy:a,emitPrivyEvent:o,openModal:c,proxy:m,refreshSessionAndUser:h,recoverEmbeddedWallet:s,setModalData:l,user:n,walletIndex:d.walletIndex,chainType:f,setUser:u})}let g=d&&"createAdditional"in d&&d.createAdditional,w=M(n,{chainType:f});if(w[0]&&!g)throw o("createWallet","onError",i.b.EMBEDDED_WALLET_ALREADY_EXISTS),Error("User already has an embedded wallet.");return W({accessToken:b,appConfig:e,privy:a,emitPrivyEvent:o,openModal:c,proxy:m,recoverEmbeddedWallet:s,setModalData:l,user:n,walletIndex:(I(w)?.walletIndex??-1)+1,chainType:f,refreshSessionAndUser:h,setUser:u})})({appConfig:e,privy:p,getAccessToken:()=>h.getAccessToken(),refreshSessionAndUser:u,initializeWalletProxy:n,user:m,emitPrivyEvent:t,recoverEmbeddedWallet:a,setModalData:r,openModal:c,setUser:o,options:l,timeoutDuration:d.W,chainType:s})}}};function D(e){let{create:t}=F();return(0,l.u)("createWallet",e),{createWallet:async e=>{e&&"target"in e&&e&&(e=void 0);let{account:r}=await t({chainType:"ethereum",options:e});return r}}}let L=async({emitPrivyEvent:e,getAccessToken:t,initializeWalletProxy:r,refreshSessionAndUser:n,user:a,appConfig:o},{privateKey:l,chainType:c,additionalSigners:u})=>{if(!a)throw e("linkAccount","onError",i.b.MUST_BE_AUTHENTICATED,{linkMethod:"siwe"}),new i.a("User must be authenticated before linking an account.");let d="user-controlled-server-wallets-only"===o.embeddedWallets.mode?"tee":"on-device";if(u&&"on-device"===d)throw new i.a("Specifying additionalSigners is only supported for TEE execution and this app uses On-device execution. Learn more https://docs.privy.io/recipes/tee-wallet-migration-guide");let[p,h]=await Promise.all([t(),r(15e3)]);if(!h||!p)throw e("linkAccount","onError",i.b.MUST_BE_AUTHENTICATED,{linkMethod:"siwe"}),new i.a("User must be authenticated before linking an account.");let{address:f}=await h.importWallet({privateKey:l,accessToken:p,chainType:c,mode:d,additionalSigners:u}),m=await n(),b="solana"===c?(0,s.j)(m):(0,s.f)(m),g=b?.find(e=>e.address===f);if(!g)throw e("createWallet","onError",i.b.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to import wallet");return e("createWallet","onSuccess",{wallet:g}),g},P=()=>{let{user:e}=(0,s.u)(),{client:t,refreshSessionAndUser:r,initializeWalletProxy:n}=(0,i.u)(),a=(0,l.a)(),c=(0,d.u)();return{importWallet:(0,o.useCallback)(({privateKey:i,additionalSigners:o})=>L({getAccessToken:()=>t.getAccessToken(),user:e,initializeWalletProxy:n,refreshSessionAndUser:r,emitPrivyEvent:a,appConfig:c},{privateKey:i,chainType:"ethereum",additionalSigners:o}),[e,t,r,n,a,c])}},N=()=>{let{importWallet:e}=P(),{createWallet:t}=D();return{...(0,o.useContext)(s.P),importWallet:e,createWallet:t}}},22464:(e,t,r)=>{"use strict";function n(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}r.d(t,{q:()=>n})},24283:function(e,t,r){var n;!function(i,a){"use strict";var o="function",s="undefined",l="object",c="string",u="major",d="model",p="name",h="type",f="vendor",m="version",b="architecture",g="console",w="mobile",_="tablet",y="smarttv",v="wearable",k="embedded",E="Amazon",A="Apple",x="ASUS",S="BlackBerry",C="Browser",T="Chrome",M="Firefox",I="Google",O="Honor",W="Huawei",U="Microsoft",F="Motorola",D="Nvidia",L="OnePlus",P="Opera",N="OPPO",R="Samsung",B="Sharp",j="Sony",$="Xiaomi",z="Zebra",H="Facebook",q="Chromium OS",V="Mac OS",G=" Browser",K=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},Y=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},X=function(e,t){return typeof e===c&&-1!==Z(t).indexOf(Z(e))},Z=function(e){return e.toLowerCase()},J=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},Q=function(e,t){for(var r,n,i,s,c,u,d=0;d<t.length&&!c;){var p=t[d],h=t[d+1];for(r=n=0;r<p.length&&!c&&p[r];)if(c=p[r++].exec(e))for(i=0;i<h.length;i++)u=c[++n],typeof(s=h[i])===l&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):void 0:this[s[0]]=u?s[1].call(this,u,s[2]):void 0:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):a):this[s]=u||a;d+=2}},ee=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(X(t[r][n],e))return"?"===r?a:r}else if(X(t[r],e))return"?"===r?a:r;return t.hasOwnProperty("*")?t["*"]:e},et={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},er={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,m],[/opios[\/ ]+([\w\.]+)/i],[m,[p,P+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[p,P+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[p,P]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[p,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[p,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[p,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[p,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[p,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[p,"Smart Lenovo "+C]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+C],m],[/\bfocus\/([\w\.]+)/i],[m,[p,M+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[p,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[p,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[p,"MIUI"+G]],[/fxios\/([\w\.-]+)/i],[m,[p,M]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[p,"360"]],[/\b(qq)\/([\w\.]+)/i],[[p,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1"+G],m],[/samsungbrowser\/([\w\.]+)/i],[m,[p,R+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[p,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[p],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,H],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[p,"GSA"]],[/musical_ly(?:.
vendor: 4,239 bytes, line 12
12+app_?version\/|_)([\w\.]+)/i],[m,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[p,T+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,T+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[p,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[m,ee,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[p,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[p,M+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[p,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[p,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[b,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[b,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[b,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[b,/ower/,"",Z]],[/ sun4\w[;\)]/i],[[b,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[b,Z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[f,R],[h,_]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[f,R],[h,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[f,A],[h,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[f,A],[h,_]],[/(macintosh);/i],[d,[f,A]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[f,B],[h,w]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[d,[f,O],[h,_]],[/honor([-\w ]+)[;\)]/i],[d,[f,O],[h,w]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[d,[f,W],[h,_]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[f,W],[h,w]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[d,/_/g," "],[f,$],[h,_]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[d,/_/g," "],[f,$],[h,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[f,N],[h,w]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[d,[f,ee,{OnePlus:["304","403","203"],"*":N}],[h,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[f,"Vivo"],[h,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[f,"Realme"],[h,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[f,F],[h,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[f,F],[h,_]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[f,"LG"],[h,_]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[f,"LG"],[h,w]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
vendor: 5,513 bytes, line 12
12(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[d,[f,"Lenovo"],[h,_]],[/(nokia) (t[12][01])/i],[f,d,[h,_]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[d,/_/g," "],[h,w],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[d,[f,I],[h,_]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[f,I],[h,w]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[f,j],[h,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[f,j],[h,_]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[f,L],[h,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[f,E],[h,_]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[f,E],[h,w]],[/(playbook);[-\w\),; ]+(rim)/i],[d,f,[h,_]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[f,S],[h,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[f,x],[h,_]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[f,x],[h,w]],[/(nexus 9)/i],[d,[f,"HTC"],[h,_]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[d,/_/g," "],[h,w]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[f,"TCL"],[h,_]],[/(itel) ((\w+))/i],[[f,Z],d,[h,ee,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[f,"Acer"],[h,_]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[f,"Meizu"],[h,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[f,"Ulefone"],[h,w]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[f,"Energizer"],[h,w]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[f,"Cat"],[h,w]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[f,"Smartfren"],[h,w]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[f,"Nothing"],[h,w]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[d,[f,"Archos"],[h,_]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[d,[f,"Archos"],[h,w]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[f,d,[h,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[f,d,[h,w]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,d,[h,_]],[/(surface duo)/i],[d,[f,U],[h,_]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[f,"Fairphone"],[h,w]],[/(u304aa)/i],[d,[f,"AT&T"],[h,w]],[/\bsie-(\w*)/i],[d,[f,"Siemens"],[h,w]],[/\b(rct\w+) b/i],[d,[f,"RCA"],[h,_]],[/\b(venue[\d ]{2,7}) b/i],[d,[f,"Dell"],[h,_]],[/\b(q(?:mv|ta)\w+) b/i],[d,[f,"Verizon"],[h,_]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[f,"Barnes & Noble"],[h,_]],[/\b(tm\d{3}\w+) b/i],[d,[f,"NuVision"],[h,_]],[/\b(k88) b/i],[d,[f,"ZTE"],[h,_]],[/\b(nx\d{3}j) b/i],[d,[f,"ZTE"],[h,w]],[/\b(gen\d{3}) b.+49h/i],[d,[f,"Swiss"],[h,w]],[/\b(zur\d{3}) b/i],[d,[f,"Swiss"],[h,_]],[/\b((zeki)?tb.*\b) b/i],[d,[f,"Zeki"],[h,_]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],d,[h,_]],[/\b(ns-?\w{0,9}) b/i],[d,[f,"Insignia"],[h,_]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[f,"NextBook"],[h,_]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],d,[h,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],d,[h,w]],[/\b(ph-1) /i],[d,[f,"Essential"],[h,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[f,"Envizen"],[h,_]],[/\b(trio[-\w\. ]+) b/i],[d,[f,"MachSpeed"],[h,_]],[/\btu_(1491) b/i],[d,[f,"Rotor"],[h,_]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[d,[f,D],[h,_]],[/(sprint) (\w+)/i],[f,d,[h,w]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[f,U],[h,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[f,z],[h,_]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[f,z],[h,w]],[/smart-tv.+(samsung)/i],[f,[h,y]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[f,R],[h,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,"LG"],[h,y]],[/(apple) ?tv/i],[f,[d,A+" TV"],[h,y]],[/crkey/i],[[d,T+"cast"],[f,I],[h,y]],[/droid.+aft(\w+)( bui|\))/i],[d,[f,E],[h,y]],[/(shield \w+ tv)/i],[d,[f,D],[h,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[f,B],[h,y]],[/(bravia[\w ]+)( bui|\))/i],[d,[f,j],[h,y]],[/(mi(tv|box)-?\w+) bui/i],[d,[f,$],[h,y]],[/Hbbtv.*(technisat) (.*);/i],[f,d,[h,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,J],[d,J],[h,y]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[d,[h,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,d,[h,g]],[/droid.+; (shield)( bui|\))/i],[d,[f,D],[h,g]],[/(playstation \w+)/i],[d,[f,j],[h,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[f,U],[h,g]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[d,[f,R],[h,v]],[/((pebble))app/i,/(asu
vendor: 4,965 bytes, line 12
12s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[f,d,[h,v]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[d,[f,N],[h,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[f,A],[h,v]],[/(opwwe\d{3})/i],[d,[f,L],[h,v]],[/(moto 360)/i],[d,[f,F],[h,v]],[/(smartwatch 3)/i],[d,[f,j],[h,v]],[/(g watch r)/i],[d,[f,"LG"],[h,v]],[/droid.+; (wt63?0{2,3})\)/i],[d,[f,z],[h,v]],[/droid.+; (glass) \d/i],[d,[f,I],[h,v]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,d,[h,v]],[/; (quest( \d| pro)?)/i],[d,[f,H],[h,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[h,k]],[/(aeobc)\b/i],[d,[f,E],[h,k]],[/(homepod).+mac os/i],[d,[f,A],[h,k]],[/windows iot/i],[[h,k]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[h,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,_]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,_]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,w]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[d,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[p,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[p,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,m],[/ladybird\//i],[[p,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[p,[m,ee,et]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,ee,et],[p,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,V],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,p],[/(ubuntu) ([\w\.]+) like android/i],[[p,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[p,m],[/\(bb(10);/i],[m,[p,S]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[p,M+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[p,T+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,q],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,m],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,m]]},en=function(e,t){if(typeof e===l&&(t=e,e=a),!(this instanceof en))return new en(e,t).getResult();var r=typeof i!==s&&i.navigator?i.navigator:a,n=e||(r&&r.userAgent?r.userAgent:""),g=r&&r.userAgentData?r.userAgentData:a,y=t?K(er,t):er,v=r&&r.userAgent==n;return this.getBrowser=function(){var e,t={};return t[p]=a,t[m]=a,Q.call(t,n,y.browser),t[u]=typeof(e=t[m])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:a,v&&r&&r.brave&&typeof r.brave.isBrave==o&&(t[p]="Brave"),t},this.getCPU=function(){var e={};return e[b]=a,Q.call(e,n,y.cpu),e},this.getDevice=function(){var e={};return e[f]=a,e[d]=a,e[h]=a,Q.call(e,n,y.device),v&&!e[h]&&g&&g.mobile&&(e[h]=w),v&&"Macintosh"==e[d]&&r&&typeof r.standalone!==s&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[d]="iPad",e[h]=_),e},this.getEngine=function(){var e={};return e[p]=a,e[m]=a,Q.call(e,n,y.engine),e},this.getOS=function(){var e={};return e[p]=a,e[m]=a,Q.call(e,n,y.os),v&&!e[p]&&g&&g.platform&&"Unknown"!=g.platform&&(e[p]=g.platform.replace(/chrome os/i,q).replace(/macos/i,V)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>500?J(e,500):e,this},this.setUA(n),this};en.VERSION="1.0.41",en.BROWSER=Y([p,m,u]),en.CPU=Y([b]),en.DEVICE=Y([d,f,h,g,w,y,_,v,k]),en.ENGINE=en.OS=Y([p,m]),typeof t!==s?(e.exp
12orts&&(t=e.exports=en),t.UAParser=en):r.amdO?a===(n=(function(){return en}).call(t,r,t,e))||(e.exports=n):typeof i!==s&&(i.UAParser=en);var ei=typeof i!==s&&(i.jQuery||i.Zepto);if(ei&&!ei.ua){var ea=new en;ei.ua=ea.getResult(),ei.ua.get=function(){return ea.getUA()},ei.ua.set=function(e){ea.setUA(e);var t=ea.getResult();for(var r in t)ei.ua[r]=t[r]}}}("object"==typeof window?window:this)},28423:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});let n={id:59144,network:"linea-mainnet",name:"Linea Mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"}},testnet:!1}},32264:(e,t,r)=>{"use strict";r.d(t,{m:()=>w,o:()=>_});var n=r(61380),i=r(88629),a=r(61951),o=r(47891),s=r(88285),l=r(76422),c=r(8281),u=r(28423),d=r(76672),p=r(57884),h=r(68301),f=r(566),m=r(46972),b=r(355),g=r(86988);let w=[d.r,b.G,{id:17e3,name:"Holesky",network:"holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky.publicnode.com"]},public:{http:["https://ethereum-holesky.publicnode.com"]}},blockExplorers:{etherscan:{name:"EtherScan",url:"https://holesky.etherscan.io"},default:{name:"EtherScan",url:"https://holesky.etherscan.io"}}},n.D,i.Y,p.R,h.i,f.n,m.n,c.A,{id:44787,name:"Celo Alfajores Testnet",network:"celo-alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]},infura:{http:["https://celo-alfajores.infura.io/v3"]},public:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores"},etherscan:{name:"CeloScan",url:"https://alfajores.celoscan.io/"}},testnet:!0},{id:314,name:"Filecoin - Mainnet",network:"filecoin-mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]},public:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"},filscan:{name:"Filscan",url:"https://filscan.io"},filscout:{name:"Filscout",url:"https://filscout.io/en"},glif:{name:"Glif",url:"https://explorer.glif.io"}}},{id:314159,name:"Filecoin - Calibration testnet",network:"filecoin-calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]},public:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}},s.E,l.Z,{id:80085,network:"berachain-artio",name:"Berachain Artio",nativeCurrency:{name:"BERA",symbol:"BERA",decimals:18},rpcUrls:{default:{http:["https://berachain-artio.rpc.privy.systems"]},public:{http:["https://berachain-artio.rpc.privy.systems"]}},blockExplorers:{default:{name:"Beratrail",url:"https://artio.beratrail.io"}},testnet:!0},{id:56,network:"bsc",name:"Binance Smart Chain",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{privy:{http:["https://bsc-mainnet.rpc.privy.systems"]},default:{http:["https://56.rpc.thirdweb.com"]},public:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}}},{id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network"}}},u._,{id:59140,network:"linea-testnet",name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-goerli.infura.io/v3"],webSocket:["wss://linea-goerli.infura.io/ws/v3"]},default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]},public:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build"},etherscan:{name:"Etherscan",url:"https://goerli.lineascan.build"}},testnet:!0},a.m,o.C,g.L,{id:999,name:"Zora Goerli Testnet",network:"zora-testnet",n
12ativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]},public:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy"}},testnet:!0},{id:0x3b9ac9ff,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]},public:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/"}},testnet:!0},{id:690,name:"Redstone",network:"redstone",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.redstonechain.com"]},public:{http:["https://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz/"}}},{id:17069,name:"Garnet Holesky",network:"garnet-holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"]},public:{http:["https://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}}}],_=new Set(w.map(e=>e.id))},34517:(e,t,r)=>{"use strict";r.d(t,{C:()=>m,D:()=>c,H:()=>T,I:()=>y,M:()=>P,O:()=>M,P:()=>_,R:()=>g,S:()=>S,V:()=>f,W:()=>D,a:()=>C,b:()=>O,c:()=>ei,d:()=>E,e:()=>x,f:()=>k,g:()=>A,h:()=>B,i:()=>b,j:()=>w,k:()=>v,l:()=>u,m:()=>er,n:()=>W,o:()=>I,p:()=>F,q:()=>d,r:()=>p,s:()=>U,t:()=>h,u:()=>en,v:()=>L,w:()=>R,x:()=>N});var n=r(75175),i=r(65967),a=r(93862),o=r(32264),s=r(76672),l=r(51750);let c="https://auth.privy.io",u=2e4,d=1400,p=2500,h=4e3,f="3.10.1",m="privy:token",b="privy-token",g="privy:refresh_token",w="privy-refresh-token",_="privy:pat",y="privy:id_token",v="privy-id-token",k="privy-session",E="privy:caid",A=e=>`privy:guest:${e}`,x=e=>`privy:cross-app:${e}`,S="privy:state_code",C="privy:code_verifier",T="privy:headless_oauth",M="privy:oauth_disable_signup",I=e=>`privy:wallet:${e}`,O="privy:connections",W=12e4,U=1,F="0x1",D=3e4,L="https://api.moonpay.com/v1",P="https://api.moonpay.com/v1",N="pk_live_hirbpu0cVcLHrjktC9l7fbc9ctjv0SL",R="pk_test_fqWjXZMSFwloh7orvJsRfjiUHXJqFzI",B="deprecated",j={appearance:{landingHeader:"Log in or sign up",theme:"light",walletList:["detected_ethereum_wallets","detected_solana_wallets","metamask","coinbase_wallet","rainbow","base_account","wallet_connect","phantom"]},walletConnectCloudProjectId:"34357d3c125c2bcf2ce2bc3309d98715",_render:{standalone:!1},fundingMethodConfig:{moonpay:{useSandbox:!1}}},$=new Set(["coinbase_wallet","base_account","cryptocom","metamask","okx_wallet","phantom","rainbow","uniswap","zerion","universal_profile","bybit_wallet","ronin_wallet","haha_wallet","wallet_connect","wallet_connect_qr","wallet_connect_qr_solana","detected_solana_wallets","detected_ethereum_wallets","rabby_wallet","safe","solflare","backpack","jupiter","binance","binanceus","bitget_wallet","kraken_wallet"]),z=e=>$.has(e),H=(e,t,r)=>r.indexOf(e)===t,q=({input:e,overrides:t})=>t?t.primary.concat(t.overflow??[]).filter(z).filter(H):e?e.filter(z).filter(H):j.appearance.walletList,V=/paymaster\.biconomy\.io\/api/i,G={mode:"SPONSORED",calculateGasLimits:!0,expiryDuration:300,sponsorshipInfo:{webhookData:{},smartAccountInfo:{name:"BICONOMY",version:"2.0.0"}}},K=(e,t)=>e&&V.test(e)?G:t&&t.policy_id?{policyId:t.policy_id}:void 0;function Y(e,t){let r=Math.max(0,Math.min(1,e.toHsl().l+t));return(0,l.A)({...e.toHsl(),l:r})}function X(e,t){let r=e.getLuminance(),n=t.getLuminance();return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}let Z={background:{default:"#020713",elevated:"#1A2230","default-hover":"#101724","default-clicked":"#1A2230","default-disabled":"#020713",success:"#0E3E2D",warning:"#373827",error:"#2E0C18",interactive:"#8B86FF","error-hover":"#441821","interactive-hover":"#7B73E5","interactive-clicked":"#6560CC","interactive-disabled":"#141824",info:"#1F2937","info-hover":"#141824"},icon:{default:"#F8F8F8",muted:"#9BA2AE",subtle:"#7B8491",inverse:"#020713",success:"#88E3B5",warning:"#FDF27B",error:"#EF4444",interactive:"#88B6FF","default-hover":"#F8F8F8","muted-hover":"#AEB3BD","subtle-hover":"#8B939E","default-clicked":"#F8F8F8","muted-clicked":"#9097A5","subtle-clicked":"#78818E","default-disabled":"#404452","muted-disabled":"#404452","subtle-disabled":"#404452","error-hover":"#F05555","interactive-hover":"#7B73E5","error-clicked":"#
12EF4444","interactive-clicked":"#6560CC"},text:{default:"#F8F8F8",muted:"#9BA2AE",placeholder:"#7B8491",success:"#ACEECB",warning:"#FEF9A0",error:"#FCA5A5",interactive:"#A29EFF","default-disabled":"#404452","interactive-hover":"#8C88E5"},border:{default:"#1F2937",interactive:"#88B0FF",focused:"#F8F8FC",info:"#5B83D3",success:"#317056",warning:"#FBBF24",error:"#F87171","default-hover":"#34304A","interactive-hover":"#88B0FF"}},J={background:{default:"#FFFFFF",elevated:"#F1F2F9","default-hover":"#F8F9FC","default-clicked":"#F1F2F9","default-disabled":"#FFFFFF",success:"#DCFCE7",warning:"#FEF3C7",error:"#FEE2E2",interactive:"#5B4FFF","error-hover":"#FECACA","interactive-hover":"#4F46E5","interactive-clicked":"#4338CA","interactive-disabled":"#F1F2F9",info:"#E0E7FF","info-hover":"#EEF2FF"},icon:{default:"#110F2A",muted:"#64668B",subtle:"#9498B8",inverse:"#FFFFFF",success:"#33B287",warning:"#F59E0B",error:"#EF4444",interactive:"#564FFF","default-hover":"#1D1B35","muted-hover":"#64668B","subtle-hover":"#888AAE","default-clicked":"#060C23","muted-clicked":"#64668B","subtle-clicked":"#788804","default-disabled":"#CBCDE1","muted-disabled":"#CBCDE1","subtle-disabled":"#CBCDE1","error-hover":"#F06060","interactive-hover":"#4F46E5","error-clicked":"#DC3838","interactive-clicked":"#2BA482"},text:{default:"#040217",muted:"#64668B",placeholder:"#9498B8",success:"#135638",warning:"#906218",error:"#991B1B",interactive:"#5B4FFF","default-disabled":"#CBCDE1","interactive-hover":"#5B4FFF"},border:{default:"#E2E3F0",interactive:"#5B4FFF",focused:"#949DF9",info:"#F1F2F9",success:"#87D7B7",warning:"#FACD63",error:"#F69393","default-hover":"#E2E3F0","interactive-hover":"#5B4FFF"}};function Q(e,t,r,n,i){let c,u,d,p,h,f,m,b,g,w,_,y,v,k,E,A,x,S=r?console.warn:()=>{},C=[];if(t?.loginMethods)for(let e of(c=t.loginMethods.includes("email"),u=t.loginMethods.includes("sms"),p=t.loginMethods.includes("wallet"),h=t.loginMethods.includes("google"),f=t.loginMethods.includes("twitter"),m=t.loginMethods.includes("discord"),_=t.loginMethods.includes("spotify"),y=t.loginMethods.includes("instagram"),b=t.loginMethods.includes("tiktok"),g=t.loginMethods.includes("line"),w=t.loginMethods.includes("twitch"),k=t.loginMethods.includes("github"),v=t.loginMethods.includes("linkedin"),E=t.loginMethods.includes("apple"),A=t.loginMethods.includes("farcaster"),x=t.loginMethods.includes("telegram"),d=t.loginMethods.includes("passkey"),t.loginMethods))"string"==typeof e&&e.startsWith("privy:")&&C.push(e);else c=e.email_auth,u=e.sms_auth,p=e.wallet_auth||e.solana_wallet_auth,h=e.google_oauth,f=e.twitter_oauth,m=e.discord_oauth,k=e.github_oauth,_=e.spotify_oauth,y=e.instagram_oauth,b=e.tiktok_oauth,g=e.line_oauth,w=e.twitch_oauth,v=e.linkedin_oauth,E=e.apple_oauth,A=e.farcaster_auth,x=e.telegram_auth,d=e.passkey_auth;e.passkey_auth&&(d=!0),"undefined"!=typeof window&&"function"!=typeof window.PublicKeyCredential&&(d=!1);let T=[c,u].filter(Boolean),M=[h,f,m,k,_,y,b,g,v,E,A,x].filter(Boolean),I=[p].filter(Boolean),O=t?.loginMethods?.includes("passkey")??!1,W=e.passkeys_for_signup_enabled??!1,U=[d&&(W||O)].filter(Boolean);if(T.length+M.length+I.length+U.length+C.length===0)throw Error("You must enable at least one login method");let F=void 0!==t?.appearance?.showWalletLoginFirst?t?.appearance?.showWalletLoginFirst:e.show_wallet_login_first;F&&0===I.length?(S("You should only enable `showWalletLoginFirst` when `wallet` logins are also enabled. `showWalletLoginFirst` has been set to false"),F=!1):F||M.length+T.length!==0||(S("You should only disable `showWalletLoginFirst` when `email`, `sms`, or social logins are also enabled. `showWalletLoginFirst` has been set to true"),F=!0);let D=t?.externalWallets?.walletConnect?.enabled??!0;t?.loginMethods&&t.loginMethodsAndOrder&&S("You should only configure one of `loginMethods` or `loginMethodsAndOrder`");let L=q({input:t?.appearance?.walletList,overrides:t?.loginMethodsAndOrder});if((L.includes("wallet_connect_qr")||L.includes("wallet_connect"))&&L.includes("wallet_connect_qr_solana"))throw Error("wallet_connect_qr and wallet_connect_qr_solana cannot both be present in 
12walletList due to WalletConnect session conflicts.");let P=(({input:e})=>{if(!e||!e.primary[0])return;let t=[e.primary[0]],r=[];for(let r of(e.primary.length>4&&console.warn("You should not specify greater than 4 login methods in `loginMethodsAndOrder.primary`"),e.primary.slice(1)))t.includes(r)?console.warn(`Duplicated login method: ${r}`):t.push(r);for(let n of e.overflow??[])t.includes(n)||r.includes(n)?console.warn(`Duplicated login method: ${n}`):r.push(n);return{primary:t,overflow:r}})({input:t?.loginMethodsAndOrder}),N=t?.intl?.defaultCountry??"US",{chains:R,defaultChain:B}=function({supportedChains:e,defaultChainFromConfig:t}){let r;if(e){if(0===e.length)throw Error("`supportedChains` must contain at least one chain");r=(0,a._)(e)}else r=[...o.m];let n=e?r[0]:s.r,i=t??n;if(!r.find(e=>e.id===i.id))throw Error("`defaultChain` must be included in `supportedChains`");return{chains:r,defaultChain:i}}({supportedChains:t?.supportedChains,defaultChainFromConfig:t?.defaultChain}),$=!!t?.defaultChain,z=t?.customAuth?.getCustomAccessToken&&!1!==t?.customAuth?.enabled,H=z?"all-users":e.embedded_wallet_config.ethereum.create_on_login,V=e.embedded_wallet_config.solana.create_on_login;e.solana_wallet_auth&&!t?.externalWallets?.solana?.connectors&&console.warn("App configuration has Solana wallet login enabled, but no Solana wallet connectors have been passed to Privy. Make sure to pass Solana connectors to the `config.externalWallets.solana.connectors` field of the `PrivyProvider`");let G=e.telegram_auth_config?{botId:e.telegram_auth_config.bot_id,botName:e.telegram_auth_config.bot_name,linkEnabled:e.telegram_auth_config.link_enabled,seamlessAuthEnabled:e.telegram_auth_config.seamless_auth_enabled}:void 0,Q=e.funding_config?{methods:e.funding_config.methods,options:e.funding_config.options,defaultRecommendedAmount:e.funding_config.default_recommended_amount,defaultRecommendedCurrency:e.funding_config.default_recommended_currency,promptFundingOnWalletCreation:e.funding_config.prompt_funding_on_wallet_creation,crossChainBridgingEnabled:e.funding_config.cross_chain_bridging_enabled}:void 0,ee=e.smart_wallet_config;return{id:e.id,appClientId:i,name:e.name,allowlistConfig:{errorTitle:e.allowlist_config.error_title,errorDetail:e.allowlist_config.error_detail,errorCtaText:e.allowlist_config.cta_text,errorCtaLink:e.allowlist_config.cta_link},legacyWalletUiConfig:e.legacy_wallet_ui_config,appearance:{logo:t?.appearance?.logo??e.logo_url??void 0,landingHeader:t?.appearance?.landingHeader??j.appearance.landingHeader,loginMessage:"string"==typeof t?.appearance?.loginMessage?t?.appearance?.loginMessage.slice(0,100):t?.appearance?.loginMessage,footerLogo:t?.appearance?.footerLogo,palette:function({backgroundTheme:e,accentHex:t}){let r,n,i,a,o,s,c;"light"===e?r=!1:"dark"===e?r=!0:(r=.5>=(0,l.A)(e).getLuminance(),n=(0,l.A)(e).toHslString());let u=r?"dark":"light",d=r?Z:J,{accent:p,accentLight:h,accentHover:f,accentDark:m,accentDarkest:b}=function(e,t){if(!e){let e=t?Z:J;return{accent:(0,l.A)(e.background.interactive),accentLight:(0,l.A)(e.background.interactive),accentHover:(0,l.A)(e.background["interactive-hover"]),accentDark:(0,l.A)(e.background["interactive-clicked"]),accentDarkest:(0,l.A)(e.background["interactive-disabled"])}}let r=(0,l.A)(e);return{accent:r,accentLight:Y(r,.15),accentHover:Y(r,.3),accentDark:Y(r,-.06),accentDarkest:Y(r,-.6)}}(t,r),g=(i=(0,l.A)(J.text.default),a=(0,l.A)(Z.text.default),o=X(p,i),s=X(p,a),(c=p.toHsl()).h>=220&&c.h<=300&&s>=3?Z.text.default:o>s?J.text.default:Z.text.default),w=(0,l.A)(g),_=X(p,(0,l.A)(d.background.default))>=3;return{colorScheme:u,background:n||d.background.default,background2:d.background.elevated,background3:d.background.interactive,foreground:d.text.default,foreground2:d.text.muted,foreground3:d.text.placeholder,foreground4:d.border.default,accent:p.toHslString(),accentLight:h.toHslString(),accentHover:f.toHslString(),accentDark:m.toHslString(),accentDarkest:b.toHslString(),foregroundAccent:w.toHslString(),success:d.background.success,successDark:d.text.success,successLight:d.background.success,error:d.text.error,errorLight:d.background.error,warn:d.background.warning,warnLight:d.background.warning,warningDark:d.text.
12warning,errorDark:d.text.error,successBg:d.background.success,errorBg:d.background.error,errorBgHover:d.background["error-hover"],warnBg:d.background.warning,infoBg:d.background.info,infoBgHover:d.background["info-hover"],borderDefault:d.border.default,borderHover:d.border["default-hover"],borderFocus:d.border.focused,borderError:d.border.error,borderSuccess:d.border.success,borderWarning:d.border.warning,borderInfo:d.border.info,borderInteractive:d.border.interactive,borderInteractiveHover:d.border["interactive-hover"],backgroundHover:d.background["default-hover"],backgroundClicked:d.background["default-clicked"],backgroundDisabled:d.background["default-disabled"],backgroundInteractive:d.background.interactive,backgroundInteractiveHover:d.background["interactive-hover"],backgroundInteractiveClicked:d.background["interactive-clicked"],backgroundInteractiveDisabled:d.background["interactive-disabled"],foregroundHover:d.text.default,foregroundClicked:d.text.default,foregroundDisabled:d.text["default-disabled"],foregroundInteractive:d.text.interactive,foregroundInteractiveHover:d.text["interactive-hover"],accentHasGoodContrast:_?"1":"0",linkNavigationColor:_?p.toHslString():d.text.default,linkNavigationDecoration:_?"none":"underline",iconDefault:d.icon.default,iconMuted:d.icon.muted,iconSubtle:d.icon.subtle,iconInverse:d.icon.inverse,iconSuccess:d.icon.success,iconWarning:d.icon.warning,iconError:d.icon.error,iconInteractive:d.icon.interactive,iconDefaultHover:d.icon["default-hover"],iconMutedHover:d.icon["muted-hover"],iconSubtleHover:d.icon["subtle-hover"],iconDefaultClicked:d.icon["default-clicked"],iconMutedClicked:d.icon["muted-clicked"],iconSubtleClicked:d.icon["subtle-clicked"],iconDefaultDisabled:d.icon["default-disabled"],iconMutedDisabled:d.icon["muted-disabled"],iconSubtleDisabled:d.icon["subtle-disabled"],iconErrorHover:d.icon["error-hover"],iconInteractiveHover:d.icon["interactive-hover"],iconErrorClicked:d.icon["error-clicked"],iconInteractiveClicked:d.icon["interactive-clicked"],iconMutedDisabledAlt:d.icon["muted-disabled"],iconSubtleDisabledAlt:d.icon["subtle-disabled"]}}({backgroundTheme:t?.appearance?.theme??j.appearance.theme,accentHex:t?.appearance?.accentColor??e.accent_color}),loginGroupPriority:F?"web3-first":"web2-first",hideDirectWeb2Inputs:!!t?.appearance?.hideDirectWeb2Inputs,walletList:L,walletChainType:t?.appearance?.walletChainType??(({evmWalletAuth:e,solanaWalletAuth:t})=>e&&t?"ethereum-and-solana":e?"ethereum-only":t?"solana-only":"ethereum-only")({evmWalletAuth:e.wallet_auth??!1,solanaWalletAuth:e.solana_wallet_auth??!1})},loginMethods:{wallet:p,email:c,sms:u,passkey:d,google:h,twitter:f,discord:m,github:k,spotify:_,instagram:y,tiktok:b,line:g,twitch:w,linkedin:v,apple:E,farcaster:A,telegram:x},customOAuthProviders:(e.custom_oauth_providers??[]).filter(e=>!1!==e.enabled),crossAppProviders:C,disablePlusEmails:e.disable_plus_emails,loginMethodsAndOrder:P,legal:{termsAndConditionsUrl:t?.legal?.termsAndConditionsUrl??e.terms_and_conditions_url,privacyPolicyUrl:t?.legal?.privacyPolicyUrl??e.privacy_policy_url,requireUsersAcceptTerms:e.require_users_accept_terms??!1},walletConnectCloudProjectId:t?.walletConnectCloudProjectId??e.wallet_connect_cloud_project_id??j.walletConnectCloudProjectId,rpcConfig:{rpcUrls:{},rpcTimeouts:t?.externalWallets?.signatureRequestTimeouts??{}},chains:R,defaultChain:B,intl:{defaultCountry:N,textLocalization:t?.intl?.textLocalization},shouldEnforceDefaultChainOnConnect:$,captcha:{enabledProvider:e.enabled_captcha_provider??null,siteKey:e.captcha_site_key},externalWallets:{coinbaseWallet:{config:{appName:e.name,appLogoUrl:e.logo_url,preference:{options:"all",...t?.externalWallets?.coinbaseWallet?.config?.preference},...t?.externalWallets?.coinbaseWallet?.config}},baseAccount:{config:{appName:e.name,appLogoUrl:e.logo_url,...t?.externalWallets?.baseAccount?.config,preference:{...t?.externalWallets?.baseAccount?.config?.preference,telemetry:!1}}},walletConnect:{enabled:D},solana:{connectors:t?.externalWallets?.solana?.connectors},disableAllExternalWallets:t?.externalWallets?.disableAllExternalWallets??!1},embeddedWallets:{requireUserOwnedRecoveryOnCreate:!z&&(e.embedded_wallet_config.require_user_owned_recovery_on_create??!1),userOwnedRecoveryOptions:z?["user-passcode"]:e.embedded_wallet_config.user_owned_recovery_options,priceDisplay:t?.embeddedWallets?.priceDisplay??{primary:"fiat-currency",secondary:"native-token"},ethereum:{createOnLogin:t?.embeddedWallets?.ethereum?.createOnLogin??H},solana:{createOnLogin:t?.embeddedWallets?.solana?.createOnLogin??V},disableAutomaticMigration:t?.embeddedWallets?.disableAutomaticMigration??!1,mode:e.embedded_wallet_config.mode,showWalletUIs:t?.embeddedWallets?.showWalletUIs??e.enforce_wallet_uis??!0,extendedCalldataDecoding:t?.embeddedWallets?.extendedCalldataDecoding??!1,transactionScanning:{enabled:t?.embeddedWallets?.transactionScanning?.enabled??!1,domain:t?.embeddedWallets?.transactionScanning?.domain??n??"https://auth.privy.io"}}
12,mfa:{methods:e.mfa_methods??[],noPromptOnMfaRequired:t?.mfa?.noPromptOnMfaRequired??!1},passkeys:{shouldUnlinkOnUnenrollMfa:t?.passkeys?.shouldUnlinkOnUnenrollMfa,shouldUnenrollMfaOnUnlink:t?.passkeys?.shouldUnenrollMfaOnUnlink,registration:t?.passkeys?.registration},customAuth:z?{enabled:!0,...t.customAuth}:void 0,loginConfig:{telegramAuthConfiguration:G,passkeysForSignupEnabled:e.passkeys_for_signup_enabled},headless:!!t?.headless,render:{standalone:t?._render?.standalone??j._render.standalone},fundingConfig:Q,fundingMethodConfig:{...t?.fundingMethodConfig??j.fundingMethodConfig,moonpay:{...t?.fundingMethodConfig?.moonpay??j.fundingMethodConfig.moonpay,useSandbox:t?.fundingMethodConfig?.moonpay.useSandbox??j.fundingMethodConfig.moonpay.useSandbox}},whatsAppEnabled:!!e.whatsapp_enabled,customOAuthRedirectUrl:t?.customOAuthRedirectUrl,allowOAuthInEmbeddedBrowsers:t?.allowOAuthInEmbeddedBrowsers??!1,solanaRpcs:{"solana:mainnet":t?.solana?.rpcs?.["solana:mainnet"]??null,"solana:devnet":t?.solana?.rpcs?.["solana:devnet"]??null,"solana:testnet":t?.solana?.rpcs?.["solana:testnet"]??null},smartWallets:ee?.enabled?{enabled:ee.enabled,smartWalletVersion:ee.smart_wallet_version,smartWalletType:ee.smart_wallet_type,configuredNetworks:ee.configured_networks.map(e=>({chainId:e.chain_id,bundlerUrl:e.bundler_url,paymasterUrl:e.paymaster_url,paymasterContext:K(e.paymaster_url,e.paymaster_context)}))}:{enabled:ee?.enabled??!1}}}let ee={show_wallet_login_first:!0,allowlist_config:{error_title:null,error_detail:null,cta_text:null,cta_link:null},wallet_auth:!0,email_auth:!0,sms_auth:!1,google_oauth:!1,twitter_oauth:!1,discord_oauth:!1,github_oauth:!1,linkedin_oauth:!1,apple_oauth:!1,disable_plus_emails:!1,terms_and_conditions_url:null,privacy_policy_url:null,embedded_wallet_config:{create_on_login:"off",ethereum:{create_on_login:"off"},solana:{create_on_login:"off"},require_user_owned_recovery_on_create:!1,user_owned_recovery_options:["user-passcode"],mode:"user-controlled-server-wallets-only"},captcha_site_key:"",enforce_wallet_uis:!1,legacy_wallet_ui_config:!1,id:"",name:"",passkeys_for_signup_enabled:!1,whatsapp_enabled:!1},et=(0,i.createContext)({appConfig:Q(ee,void 0,!1),isServerConfigLoaded:!1}),er=({children:e,client:t,legacyClient:r,clientConfig:a,appClientId:o})=>{let[s,l]=(0,i.useState)(null),c=(0,i.useMemo)(()=>Q(s??ee,a,!!s,"undefined"!=typeof window?window.location.origin:void 0,o),[s,a,o]);return(0,i.useEffect)(()=>{if(!s)return;let e=function(e){if(!e)return{};let{appearance:t,supportedChains:r,defaultChain:n,externalWallets:i,...a}=e;return{...a,...r?{supportedChains:r.map(e=>e.id)}:void 0,...n?{defaultChain:n.id}:void 0,...i?{walletConnect:i.walletConnect?{enabled:i.walletConnect.enabled}
12:void 0,coinbaseWallet:i.coinbaseWallet,solana:{connectors:i.solana?.connectors?.get().map(e=>e.walletClientType)}}:void 0}}(a),t=(function(e,t=0){let r=0xdeadbeef^t,n=0x41c6ce57^t;for(let t,i=0;i<e.length;i++)r=Math.imul(r^(t=e.charCodeAt(i)),0x9e3779b1),n=Math.imul(n^t,0x5f356495);return r=Math.imul(r^r>>>16,0x85ebca6b)^Math.imul(n^n>>>13,0xc2b2ae35),0x100000000*(2097151&(n=Math.imul(n^n>>>16,0x85ebca6b)^Math.imul(r^r>>>13,0xc2b2ae35)))+(r>>>0)})(JSON.stringify(e)).toString(),n=`privy:sent:${s.id}:${t}`;localStorage.getItem(n)||(r.createAnalyticsEvent({eventName:"sdk_initialize",payload:e}),localStorage.setItem(n,"t"))},[a,s]),(0,i.useEffect)(()=>{s||(async()=>{try{await t.initialize();let e=t.app.getConfig();e.custom_api_url&&r.updateApiUrl(e.custom_api_url),l(e)}catch(e){console.warn("Error generating app config: ",e)}})()},[]),(0,n.jsx)(et.Provider,{value:{appConfig:c,isServerConfigLoaded:!!s},children:e})},en=()=>{let{appConfig:e}=(0,i.useContext)(et);return e},ei=()=>{let{isServerConfigLoaded:e}=(0,i.useContext)(et);return e}},35625:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s});let n=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,a=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function o(e,t){var r;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(r=e,console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)):t}function s(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!a.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(n.test(e)||i.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,o)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}},37413:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});var n=r(10979),i=r(76083);let a=/^0x[a-fA-F0-9]{40}$/,o=new n.A(8192);function s(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(o.has(n))return o.get(n);let s=!!a.test(e)&&(e.toLowerCase()===e||!r||(0,i.o)(e)===e);return o.set(n,s),s}},38253:(e,t,r)=>{"use strict";r.d(t,{IQ:()=>d,ME:()=>u,Nx:()=>c,Sl:()=>s,uU:()=>l});var n=r(57169),i=r(93153),a=r(46231),o=r(95540);function s(e,{size:t}){if((0,i.E)(e)>t)throw new n.u({givenSize:(0,i.E)(e),maxSize:t})}function l(e,t={}){let{signed:r}=t;t.size&&s(e,{size:t.size});let n=BigInt(e);if(!r)return n;let i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e,t={}){let r=e;if(t.size&&(s(r,{size:t.size}),r=(0,a.B)(r)),"0x00"===(0,a.B)(r))return!1;if("0x01"===(0,a.B)(r))return!0;throw new n.H2(r)}function u(e,t={}){return Number(l(e,t))}function d(e,t={}){let r=(0,o.aT)(e);return t.size&&(s(r,{size:t.size}),r=(0,a.B)(r,{dir:"right"})),new TextDecoder().decode(r)}},46231:(e,t,r)=>{"use strict";function n(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,i=0;for(let e=0;e<r.length-1;e++)if("0"===r["left"===t?e:r.length-e-1].toString())i++;else break;return(r="left"===t?r.slice(i):r.slice(0,r.length-i),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}r.d(t,{B:()=>n})},46972:(e,t,r)=>{"use strict";r.d(t,{n:()=>n});let n={id:80002,name:"Polygon Amoy",network:"polygon-amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{privy:{http:["https://polygon-amoy.rpc.privy.systems"]},infura:{http:["https://polygon-amoy.infura.io/v3"],webSocket:["wss://polygon-amoy.infura.io/ws/v3"]},default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"OK LINK",url:"https://www.oklink.com/amoy"}},testnet:!0}},47891:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});
12let n={id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},testnet:!0}},48618:(e,t,r)=>{"use strict";r.d(t,{S:()=>s});var n=r(9772),i=r(22464),a=r(95540),o=r(77342);function s(e,t){let r=(0,n.lY)((0,i.q)(e,{strict:!1})?(0,a.ZJ)(e):e);return"bytes"===(t||"hex")?r:(0,o.nj)(r)}},51750:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{A:()=>o});var i=/^\s+/,a=/\s+$/;function o(e,t){if(t=t||{},(e=e||"")instanceof o)return e;if(!(this instanceof o))return new o(e,t);var r,s,l,c,u,d,p,h,f,m,b,g,w,_,y,v,k,A,C,M,O=(s={r:0,g:0,b:0},l=1,c=null,u=null,d=null,p=!1,h=!1,"string"==typeof(r=e)&&(r=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,r=!1;if(E[e])e=E[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=W.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=W.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=W.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=W.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=W.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=W.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=W.hex8.exec(e))?{r:T(t[1]),g:T(t[2]),b:T(t[3]),a:T(t[4])/255,format:r?"name":"hex8"}:(t=W.hex6.exec(e))?{r:T(t[1]),g:T(t[2]),b:T(t[3]),format:r?"name":"hex"}:(t=W.hex4.exec(e))?{r:T(t[1]+""+t[1]),g:T(t[2]+""+t[2]),b:T(t[3]+""+t[3]),a:T(t[4]+""+t[4])/255,format:r?"name":"hex8"}:!!(t=W.hex3.exec(e))&&{r:T(t[1]+""+t[1]),g:T(t[2]+""+t[2]),b:T(t[3]+""+t[3]),format:r?"name":"hex"}}(r)),"object"==n(r)&&(U(r.r)&&U(r.g)&&U(r.b)?(f=r.r,m=r.g,b=r.b,s={r:255*S(f,255),g:255*S(m,255),b:255*S(b,255)},p=!0,h="%"===String(r.r).substr(-1)?"prgb":"rgb"):U(r.h)&&U(r.s)&&U(r.v)?(c=I(r.s),u=I(r.v),g=r.h,w=c,_=u,g=6*S(g,360),w=S(w,100),_=S(_,100),y=Math.floor(g),v=g-y,k=_*(1-w),A=_*(1-v*w),C=_*(1-(1-v)*w),s={r:255*[_,A,k,k,C,_][M=y%6],g:255*[C,_,_,A,k,k][M],b:255*[k,k,C,_,_,A][M]},p=!0,h="hsv"):U(r.h)&&U(r.s)&&U(r.l)&&(c=I(r.s),d=I(r.l),s=function(e,t,r){var n,i,a;function o(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=S(e,360),t=S(t,100),r=S(r,100),0===t)n=i=a=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return{r:255*n,g:255*i,b:255*a}}(r.h,c,d),p=!0,h="hsl"),r.hasOwnProperty("a")&&(l=r.a)),l=x(l),{ok:p,format:r.format||h,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:l});this._originalInput=e,this._r=O.r,this._g=O.g,this._b=O.b,this._a=O.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||O.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=O.ok}function s(e,t,r){e=S(e,255);var n,i,a=Math.max(e,t=S(t,255),r=S(r,255)),o=Math.min(e,t,r),s=(a+o)/2;if(a==o)n=i=0;else{var l=a-o;switch(i=s>.5?l/(2-a-o):l/(a+o),a){case e:n=(t-r)/l+6*(t<r);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:i,l:s}}function l(e,t,r){e=S(e,255);var n,i=Math.max(e,t=S(t,255),r=S(r,255)),a=Math.min(e,t,r),o=i-a;if(i==a)n=0;else{switch(i){case e:n=(t-r)/o+6*(t<r);break;case t:n=(r-e)/o+2;break;case r:n=(e-t)/o+4}n/=6}return{h:n,s:0===i?0:o/i,v:i}}function c(e,t,r,n){var i=[M(Math.round(e).toString(16)),M(Math.round(t).toString(16)),M(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function u(e,t,r,n){return[M(O(n)),M(Math.round(e).toString(16)),M(Math.round(t).toString(16)),M(Math.round(r).toString(16))].join("")}function d(e,t){t=0===t?0:t||10;var r=o(e).toHsl();return r.s-=t/100,r.s=C(r.s),o(r)}function p(e,t){t=0===t?0:t||10;var r=o(e).toHsl();return r.s+=t/100,r.s=C(r.s),o(r)}function h(e){return o(e).desaturate(100)}function f(e,t){t=0===t?0:t||10;var r=o(e).toHsl();return r.l+=t/100,r.l=C(r.l),o(r)}function m(e,t){t=0===t?0:t||10;var r=o(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(t/100*255)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(t/100*255)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(t/100*255)))),o(r)}function b(e,t){t=0===t?0:t||10;var r=o(e).toHsl();return r.l-=t/100,r.l=C(r.l),o(r)}function g(e,t){var r=o(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,o(r)}function w(e){var t=o(e).toHsl();return t.h=(t.h+180)%360,o(t)}function _(e,t){if(isNaN(t)||t<=0)throw Error("Argument to polyad must be a positive number");for(var r=o(e).toHsl(),n=[o(e)],i=360/t,a=1;a<t;a++)n.push(o({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function y(e){var t=o(e).toHsl(),r=t.h;return[o(e),o({h:(r+72)%360,s:t.s,l:t.l}
vendor: 5,488 bytes, line 12
12),o({h:(r+216)%360,s:t.s,l:t.l})]}function v(e,t,r){t=t||6,r=r||30;var n=o(e).toHsl(),i=360/r,a=[o(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(o(n));return a}function k(e,t){t=t||6;for(var r=o(e).toHsv(),n=r.h,i=r.s,a=r.v,s=[],l=1/t;t--;)s.push(o({h:n,s:i,v:a})),a=(a+l)%1;return s}o.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n,i,a,o=this.toRgb();return e=o.r/255,t=o.g/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((r=o.b/255)<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=x(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=l(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=s(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return c(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,r,n,i,a,o;return t=this._r,r=this._g,n=this._b,i=this._a,a=e,o=[M(Math.round(t).toString(16)),M(Math.round(r).toString(16)),M(Math.round(n).toString(16)),M(O(i))],a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*S(this._r,255))+"%",g:Math.round(100*S(this._g,255))+"%",b:Math.round(100*S(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*S(this._r,255))+"%, "+Math.round(100*S(this._g,255))+"%, "+Math.round(100*S(this._b,255))+"%)":"rgba("+Math.round(100*S(this._r,255))+"%, "+Math.round(100*S(this._g,255))+"%, "+Math.round(100*S(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(A[c(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+u(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=o(e);r="#"+u(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return!t&&n&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(f,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(y,arguments)},triad:function(){return this._applyCombination(_,[3])},tetrad:function(){return this._applyCombination(_,[4])}},o.fromRatio=function(e,t){if("object"==n(e)){var r={};for(var i in e)e.hasOwnProperty(i)&&("a"===i?r[i]=e[i]:r[i]=I(e[i]));e=r}return o(e,t)},o.equals=function(e,t){return!!e&&!!t&&o(e).toRgbString()==o(t).toRgbString()},o.random=function(){return o.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},o.mix=function(e,t,r){r=0===r?0:r||50;var n=o(e).toRgb(),i=o(t).toRgb(),a=r/100;return o({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)
12*a+n.a})},o.readability=function(e,t){var r=o(e),n=o(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},o.isReadable=function(e,t,r){var n,i,a,s,l,c=o.readability(e,t);switch(l=!1,(i=((n=(n=r)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),a=(n.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==a&&"large"!==a&&(a="small"),s={level:i,size:a}).level+s.size){case"AAsmall":case"AAAlarge":l=c>=4.5;break;case"AAlarge":l=c>=3;break;case"AAAsmall":l=c>=7}return l},o.mostReadable=function(e,t,r){var n,i,a,s,l=null,c=0;i=(r=r||{}).includeFallbackColors,a=r.level,s=r.size;for(var u=0;u<t.length;u++)(n=o.readability(e,t[u]))>c&&(c=n,l=o(t[u]));return o.isReadable(e,l,{level:a,size:s})||!i?l:(r.includeFallbackColors=!1,o.mostReadable(e,["#fff","#000"],r))};var E=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
120",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},A=o.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(E);function x(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function S(e,t){"string"==typeof(r=e)&&-1!=r.indexOf(".")&&1===parseFloat(r)&&(e="100%");var r,n,i="string"==typeof(n=e)&&-1!=n.indexOf("%");return(e=Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function C(e){return Math.min(1,Math.max(0,e))}function T(e){return parseInt(e,16)}function M(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function O(e){return Math.round(255*parseFloat(e)).toString(16)}var W=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",r="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:RegExp("rgb"+t),rgba:RegExp("rgba"+r),hsl:RegExp("hsl"+t),hsla:RegExp("hsla"+r),hsv:RegExp("hsv"+t),hsva:RegExp("hsva"
12+r),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function U(e){return!!W.CSS_UNIT.exec(e)}},57169:(e,t,r)=>{"use strict";r.d(t,{H2:()=>o,Ty:()=>i,u:()=>s,xO:()=>a});var n=r(64055);class i extends n.C{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class a extends n.C{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class o extends n.C{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}n.C;class s extends n.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},57884:(e,t,r)=>{"use strict";r.d(t,{R:()=>n});let n={id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://optimism-mainnet.rpc.privy.systems"]},alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}}}},59808:(e,t,r)=>{"use strict";r.d(t,{U:()=>s,g:()=>o,t:()=>a,u:()=>l});var n=r(5297),i=r(65967);let a=e=>{if("ethereum"===e.chainType)return{entropyId:e.address,entropyIdVerifier:"ethereum-address-verifier"};if("solana"===e.chainType)return{entropyId:e.address,entropyIdVerifier:"solana-address-ver
12ifier"};throw Error("Failed to get account entropy details")},o=(e,t)=>{if(t?.imported)return a(t);let r=(0,n.g)(e);if(!r)throw Error("Failed to find primary wallet");return a(r)},s=(0,i.createContext)(null);function l(){let e=(0,i.useContext)(s);return null===e?(console.warn("`useWallets` was called outside the PrivyProvider component"),{wallets:[],ready:!1}):e}},61380:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});let n={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://arbitrum-mainnet.rpc.privy.systems"]},alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}}}},61951:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});let n={id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}}}},64055:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});let n="2.43.5",i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${n}`};class a extends Error{constructor(e,t={}){let r=t.cause instanceof a?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof a&&t.cause.docsPath||t.docsPath,s=i.getDocsUrl?.({...t,docsPath:o});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...i.version?[`Version: ${i.version}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=n}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,r):r?null:t}(this,e)}}},68301:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});let n={id:0xaa37dc,name:"Optimism Sepolia",network:"optimism-sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://optimism-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia.optimism.io"]},public:{http:["https://sepolia.optimism.io"]},infura:{http:["https://optimism-sepolia.infura.io/v3"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"}},testnet:!0}},74884:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(64055);class i extends n.C{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},76083:(e,t,r)=>{"use strict";r.d(t,{b:()=>u,o:()=>c});var n=r(74884),i=r(95540),a=r(48618),o=r(10979),s=r(37413);let l=new o.A(8192);function c(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,a.S)((0,i.Af)(r),"bytes"),o=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&n[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let s=`0x${o.join("")}`;return l.set(`${e}.${t}`,s),s}function u(e,t){if(!(0,s.P)(e,{strict:!1}))throw new n.M({address:e});return c(e,t)}},76422:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n={id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol
12:"ETH",decimals:18},rpcUrls:{privy:{http:["https://base-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"}},testnet:!0}},76643:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var n=r(91804);async function i(e,{request:t}){return await e.fetchPrivyRoute(n.GK,{body:t})}},76672:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});let n={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://mainnet.rpc.privy.systems"]},alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}}}},77342:(e,t,r)=>{"use strict";r.d(t,{$P:()=>l,My:()=>c,cK:()=>u,i3:()=>p,nj:()=>s});var n=r(57169),i=r(85664),a=r(38253);let o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e,t={}){return"number"==typeof e||"bigint"==typeof e?u(e,t):"string"==typeof e?p(e,t):"boolean"==typeof e?l(e,t):c(e,t)}function l(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,a.Sl)(r,{size:t.size}),(0,i.eV)(r,{size:t.size})):r}function c(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=o[e[t]];let n=`0x${r}`;return"number"==typeof t.size?((0,a.Sl)(n,{size:t.size}),(0,i.eV)(n,{dir:"right",size:t.size})):n}function u(e,t={}){let r,{signed:a,size:o}=t,s=BigInt(e);o?r=a?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let l="bigint"==typeof r&&a?-r-1n:0;if(r&&s>r||s<l){let t="bigint"==typeof e?"n":"";throw new n.Ty({max:r?`${r}${t}`:void 0,min:`${l}${t}`,signed:a,size:o,value:`${e}${t}`})}let c=`0x${(a&&s<0?(1n<<BigInt(8*o))+BigInt(s):s).toString(16)}`;return o?(0,i.eV)(c,{size:o}):c}let d=new TextEncoder;function p(e,t={}){return c(d.encode(e),t)}},85664:(e,t,r)=>{"use strict";r.d(t,{db:()=>a,eV:()=>i});var n=r(99740);function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?a(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.Fl({size:e.length,targetSize:r,type:"bytes"});let i=new Uint8Array(r);for(let n=0;n<r;n++){let a="right"===t;i[a?n:r-n-1]=e[a?n:e.length-n-1]}return i}(e,{dir:t,size:r})}function a(e,{dir:t,size:r=32}={}){if(null===r)return e;let i=e.replace("0x","");if(i.length>2*r)throw new n.Fl({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}},86988:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});let n={id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]},public:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy"}}}},88285:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});let n={id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://base-mainnet.rpc.privy.systems"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{etherscan:{name:"Basescan",url:"https://basescan.org"},default:{name:"Basescan",url:"https://basescan.org"}}}},88629:(e,t,r)=>{"use strict";r.d(t,{Y:()=>n});let n={id:421614,name:"Arbitrum Sepolia",network:"arbitrum-sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://arbitrum-sepolia.rpc.privy.systems"]}
12,default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]},public:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-explorer.arbitrum.io"}},testnet:!0}},91804:(e,t,r)=>{"use strict";r.d(t,{GK:()=>n,H_:()=>a,xh:()=>s,yG:()=>i,zv:()=>o});let n={path:"/api/v1/wallets",method:"POST"},i={path:"/api/v1/wallets/:wallet_id",method:"GET"},a={path:"/api/v1/wallets/:wallet_id/rpc",method:"POST"},o={path:"/api/v1/wallets/:wallet_id",method:"PATCH"},s={path:"/api/v1/wallets/revoke",method:"POST"}},93153:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(22464);function i(e){return(0,n.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},93862:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(32264);let i=e=>e.map(e=>{if(e.rpcUrls.privyWalletOverride)return e;let t=n.m.find(t=>t.id===e.id),r=t?.rpcUrls.privy?.http[0];return r?function(e,t){return{...e,rpcUrls:{...e.rpcUrls,privy:{http:[t]}}}}(e,r):e})},94018:(e,t,r)=>{"use strict";var n=(function(e){e&&"object"==typeof e&&"default"in e&&e.default}(r(65967)),r(24283)),i=new n,a=i.getBrowser(),o=i.getCPU(),s=i.getDevice(),l=i.getEngine(),c=i.getOS(),u=i.getUA(),d=function(e){if(!e)return void console.error("No userAgent string was provided");var t=new n(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}},p=Object.freeze({ClientUAInstance:i,browser:a,cpu:o,device:s,engine:l,os:c,ua:u,setUa:function(e){return i.setUA(e)},parseUserAgent:d});function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var f={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},m={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},b={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},g={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return e||t},_=function(){return!!("undefined"!=typeof window&&(window.navigator||navigator))&&(window.navigator||navigator)},y=function(e){var t=_();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},v=function(e){return e.type===f.Mobile},k=function(e){return e.type===f.Tablet},E=function(e){var t=e.type;return t===f.Mobile||t===f.Tablet},A=function(e){return e.type===f.SmartTv},x=function(e){return e.type===f.Browser},S=function(e){return e.type===f.Wearable},C=function(e){return e.type===f.Console},T=function(e){return e.type===f.Embedded},M=function(e){return w(e.vendor)},I=function(e){return w(e.model)}
12,O=function(e){return w(e.type,"browser")},W=function(e){return e.name===b.Android},U=function(e){return e.name===b.Windows},F=function(e){return e.name===b.MAC_OS},D=function(e){return e.name===b.WindowsPhone},L=function(e){return e.name===b.IOS},P=function(e){return w(e.version)},N=function(e){return w(e.name)},R=function(e){return e.name===m.Chrome},B=function(e){return e.name===m.Firefox},j=function(e){return e.name===m.Chromium},$=function(e){return e.name===m.Edge},z=function(e){return e.name===m.Yandex},H=function(e){var t=e.name;return t===m.Safari||t===m.MobileSafari},q=function(e){return e.name===m.MobileSafari},V=function(e){return e.name===m.Opera},G=function(e){var t=e.name;return t===m.InternetExplorer||t===m.Ie},K=function(e){return e.name===m.MIUI},Y=function(e){return e.name===m.SamsungBrowser},X=function(e){return w(e.version)},Z=function(e){return w(e.major)},J=function(e){return w(e.name)},Q=function(e){return w(e.name)},ee=function(e){return w(e.version)},et=function(){var e=_(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},er=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},en=function(){var e=_();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},ei=function(){return y("iPad")},ea=function(){return y("iPhone")},eo=function(){return y("iPod")},es=function(e){return w(e)};A(s),C(s),S(s),T(s),q(a)||ei(),j(a);var el=E(s)||ei(),ec=(v(s),k(s)||ei(),x(s),x(s),W(c)),eu=(D(c),L(c)||ei()),ed=(R(a),B(a)),ep=H(a);V(a),G(a),P(c),N(c),X(a),Z(a),J(a),M(s),I(s),Q(l),ee(l),es(u),$(a)||er(u),z(a),O(s),en(),ei(),ea(),eo(),et(),er(u),$(a)&&er(u),U(c),F(c),K(a),Y(a);t.m0=ec,t.gm=ed,t.un=eu,t.Fr=el,t.nr=ep},95540:(e,t,r)=>{"use strict";r.d(t,{Af:()=>h,ZJ:()=>c,aT:()=>p});var n=r(64055),i=r(22464),a=r(85664),o=r(38253),s=r(77342);let l=new TextEncoder;function c(e,t={}){var r,n;return"number"==typeof e||"bigint"==typeof e?(r=e,n=t,p((0,s.cK)(r,n))):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,o.Sl)(r,{size:t.size}),(0,a.eV)(r,{size:t.size})):r}(e,t):(0,i.q)(e)?p(e,t):h(e,t)}let u={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=u.zero&&e<=u.nine?e-u.zero:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.a-10):void 0}function p(e,t={}){let r=e;t.size&&((0,o.Sl)(r,{size:t.size}),r=(0,a.eV)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);let s=i.length/2,l=new Uint8Array(s);for(let e=0,t=0;e<s;e++){let r=d(i.charCodeAt(t++)),a=d(i.charCodeAt(t++));if(void 0===r||void 0===a)throw new n.C(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);l[e]=16*r+a}return l}function h(e,t={}){let r=l.encode(e);return"number"==typeof t.size?((0,o.Sl)(r,{size:t.size}),(0,a.eV)(r,{dir:"right",size:t.size})):r}},98231:(e,t,r)=>{"use strict";r.d(t,{I:()=>k,P:()=>u,a:()=>l,b:()=>h,c:()=>o,d:()=>v,e:()=>s,f:()=>d,g:()=>f,h:()=>c,i:()=>p,j:()=>w,k:()=>g,l:()=>y,m:()=>m,n:()=>_,o:()=>b,u:()=>E});var n,i=r(10342),a=r(65967);class o extends Error{toString(){return`${this.type}${this.privyErrorCode?`-${this.privyErrorCode}`:""}: ${this.message}${this.cause?` [cause: ${this.cause}]`:""}`}constructor(e,t,r){super(e),t instanceof Error&&(this.cause=t),this.privyErrorCode=r}}class s extends o{constructor(e,t,r,n,i,a){super(r,n,i),this.type=e,this.status=t,this.data=a}}class l extends o{constructor(e,t,r){super(e,t,r),this.type="client_error"}}class c extends l{constructor(){super("Request timed out",void 0,"client_request_timeout")}}class u extends o{constructor(e,t,r){super(e,t,r),this.type="connector_error"}}let d=e=>{if(e instanceof o)return e;if(!(e instanceof i.F))return p(e);if(!e.response)return new s("api_error",null,e.message,e);let{type:t,message:r,error:n,code:a}=e.data;return new s(t||"ApiError",e.response.status,r||n,e,a,e.data)},p=e=>e instanceof o?e:e instanceof Error?new l(e.message,e):new l(`Internal error: ${e}`);var h=((n={}).OAUTH_ACCOUNT_SUSPENDED="oauth_account_suspended",n.MISSING_OR_INVALID_PRIVY_APP_ID="missing_or_invalid_privy_app_id",n.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID="missing_or_invalid_privy_account_id",n.MISSING_OR_INVALID_TOKEN="missing_or_invalid_token",n.INVALID_DATA="invalid_data",n.INVALID_CAPTCHA="invalid_captcha",n.LINKED_TO_ANOTHER_USER="linked_to_another_user",n.CANNOT_LINK_MORE_OF_TYPE="cannot_link_more_of_type",n.FAILED_TO_LINK_ACCOUNT="failed_to_link_account",n.FAILED_TO_UPDATE_ACCOUNT="failed_to_update_account",n.USER_EXITED_UPDATE_FLOW="exited_update_flow",n.ALLOWLIST_REJECTED="allowlist_rejected",n.OAUTH_USER_DENIED="oauth_user_denied",n.OAUTH_UNEXPECTED="oauth_unexpected",n.UNKNOWN_AUTH_ERROR="unknown_auth_error",n.USER_EXITED_AUTH_FLOW="exited_auth_flow",n.USER_EXITED_LINK_FLOW="exited_link_flow",n.USER_EXITED_SET_PASSWORD_FLOW="user_exited_set_password_flow",n.MUST_BE_AUTHENTICATED="must_be_authenticated",n.UNKNOWN_CONNECT_WALLET_ERROR="unknown_connect_wallet_error",n.GENER
12IC_CONNECT_WALLET_ERROR="generic_connect_wallet_error",n.CLIENT_REQUEST_TIMEOUT="client_request_timeout",n.INVALID_CREDENTIALS="invalid_credentials",n.MISSING_MFA_CREDENTIALS="missing_or_invalid_mfa",n.UNKNOWN_MFA_ERROR="unknown_mfa_error",n.EMBEDDED_WALLET_ALREADY_EXISTS="embedded_wallet_already_exists",n.EMBEDDED_WALLET_NOT_FOUND="embedded_wallet_not_found",n.EMBEDDED_WALLET_CREATE_ERROR="embedded_wallet_create_error",n.UNKNOWN_EMBEDDED_WALLET_ERROR="unknown_embedded_wallet_error",n.EMBEDDED_WALLET_PASSWORD_UNCONFIRMED="embedded_wallet_password_unconfirmed",n.EMBEDDED_WALLET_PASSWORD_ALREADY_EXISTS="embedded_wallet_password_already_exists",n.EMBEDDED_WALLET_RECOVERY_ALREADY_EXISTS="embedded_wallet_recovery_already_exists",n.TRANSACTION_FAILURE="transaction_failure",n.UNSUPPORTED_CHAIN_ID="unsupported_chain_id",n.NOT_SUPPORTED="not_supported",n.CAPTCHA_TIMEOUT="captcha_timeout",n.INVALID_MESSAGE="invalid_message",n.UNABLE_TO_SIGN="unable_to_sign",n.CAPTCHA_FAILURE="captcha_failure",n.CAPTCHA_DISABLED="captcha_disabled",n.SESSION_STORAGE_UNAVAILABLE="session_storage_unavailable",n.TOO_MANY_REQUESTS="too_many_requests",n.USER_LIMIT_REACHED="max_accounts_reached",n.DISALLOWED_LOGIN_METHOD="disallowed_login_method",n.DISALLOWED_PLUS_EMAIL="disallowed_plus_email",n.PASSKEY_NOT_ALLOWED="passkey_not_allowed",n.USER_DOES_NOT_EXIST="user_does_not_exist",n.INSUFFICIENT_BALANCE="insufficient_balance",n.ACCOUNT_TRANSFER_REQUIRED="account_transfer_required",n.BUFFER_NOT_DEFINED="buffer_not_defined",n.UNSUPPORTED_WALLET_TYPE="unsupported_wallet_type",n.NO_SOLANA_ACCOUNTS="no_solana_accounts",n.UNKNOWN_FUNDING_ERROR="unknown_funding_error",n);class f extends l{constructor(){super("Method called before `ready`. Ensure you wait until `ready` is true before calling.")}}class m extends l{constructor(e="Embedded wallet error",t){super(e,t,"unknown_embedded_wallet_error")}}class b extends l{constructor(e="User must be authenticated"){super(e,void 0,"must_be_authenticated")}}class g extends l{constructor(e){super("This application is in development mode and must be upgraded to production to log in new users.",e,"max_accounts_reached")}}class w extends u{constructor(){super("No Solana accounts found in wallet",void 0,"no_solana_accounts")}}let _=()=>{throw Error("You need to wrap your application with the <PrivyProvider> initialized with your app id.")},y=e=>()=>{throw Error(e.trim())},v=()=>{},k=(0,a.createContext)({setAuthenticated:_,setUser:_,setIsNewUser:_,isNewUserThisSession:!1,walletConnectionStatus:null,setWalletConnectionStatus:_,connectors:[],rpcConfig:{rpcUrls:{}},showFiatPrices:!0,chains:[],clientAnalyticsId:null,pendingTransaction:null,client:null,privy:null,appId:"notAdded",onCustomAuthAuthenticated:_,hideWalletUIs:{current:!1},nativeTokenSymbolForChainId:_,initializeWalletProxy:_,getAuthMeta:_,getAuthFlow:_,closePrivyModal:_,openPrivyModal:_,connectWallet:_,initLoginWithWallet:_,loginWithWallet:_,initLoginWithFarcaster:_,loginWithFarcaster:_,loginWithCode:_,initLoginWithEmail:_,initLoginWithSms:_,initUpdateEmail:_,initUpdatePhone:_,resendEmailCode:_,resendSmsCode:_,initLoginWithHeadlessOAuth:_,loginWithHeadlessOAuth:_,crossAppAuthFlow:_,initLoginWithOAuth:_,loginWithOAuth:_,passkeyAuthState:{status:"initial"},setPasskeyAuthState:_,initSignupWithPasskey:_,signupWithPasskey:_,initLoginWithPasskey:_,loginWithPasskey:_,initLinkWithPasskey:_,linkWithPasskey:_,refreshSessionAndUser:_,walletProxy:null,createAnalyticsEvent:_,acceptTerms:_,getUsdTokenPrice:_,getUsdPriceForSol:_,getSplTokenMetadata:_,recoverEmbeddedWallet:_,updateWallets:_,fundWallet:_,openModal:_,setReadyToTrue:_,requestFarcasterSignerStatus:_,initLoginWithTelegram:_,loginWithTelegram:_,generateSiweMessage:_,generateSiweMessageForSmartWallet:_,loginWithSiwe:_,linkWithSiwe:_,linkSmartWallet:_,delegateWallet:_,revokeDelegatedWallets:_,connectCoinbaseSmartWallet:_,connectBaseAccount:_,initiateAccountTransfer:_,emailOtpState:{status:"initial"},setEmailOtpState:_,smsOtpState:{status:"initial"},setSmsOtpState:_,siweState:{status:"initial"},setSiweState:_,oAuthState:{status:"initial"},setOAuthState:_,telegramAuthState:{status:"initial"},setTelegramAuthState:_,isHeadlessOAuthLoading:!1,isHeadlessSigning:_,inProgressAuthFlowRef:{current:null},inProgressLoginOrLinkMethodRef:{current:null},baseAccountSdk:void 0,setBaseAccountSdk:_}),E=()=>(0,a.useContext)(k)}
12,99740:(e,t,r)=>{"use strict";r.d(t,{Fl:()=>a,NV:()=>o,ii:()=>i});var n=r(64055);class i extends n.C{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class a extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class o extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}}}]);

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.