PageSourceSearch

https://dupe.fi/_next/static/chunks/15gi2zqnriym9.js

js dupe.fi collected 2026-09-24 14:03:01 UTC 144,302 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="443bbd36-a9f1-0cca-aa35-e93ecf1f0570")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,229906,(e,t,r)=>{!function(e){"use strict";var n="function",i="undefined",a="object",o="string",s="major",l="model",c="name",d="type",u="vendor",p="version",h="architecture",m="console",f="mobile",b="tablet",g="smarttv",w="wearable",y="embedded",_="Amazon",v="Apple",E="ASUS",A="BlackBerry",C="Browser",k="Chrome",S="Firefox",x="Google",T="Honor",O="Huawei",M="Microsoft",F="Motorola",I="Nvidia",D="OnePlus",W="Opera",U="OPPO",P="Samsung",N="Sharp",R="Sony",L="Xiaomi",j="Zebra",B="Facebook",H="Chromium OS",V="Mac OS",q=" Browser",z=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},G=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},Y=function(e,t){return typeof e===o&&-1!==$(t).indexOf($(e))},$=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===o)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},X=function(e,t){for(var r,i,o,s,l,c,d=0;d<t.length&&!l;){var u=t[d],p=t[d+1];for(r=i=0;r<u.length&&!l&&u[r];)if(l=u[r++].exec(e))for(o=0;o<p.length;o++)c=l[++i],typeof(s=p[o])===a&&s.length>0?2===s.length?typeof s[1]==n?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==n||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):void 0):this[s]=c||void 0;d+=2}},J=function(e,t){for(var r in t)if(typeof t[r]===a&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(Y(t[r][n],e))return"?"===r?void 0:r}else if(Y(t[r],e))return"?"===r?void 0:r;return t.hasOwnProperty("*")?t["*"]:e},Z={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"},Q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,p],[/opios[\/ ]+([\w\.]+)/i],[p,[c,W+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[p,[c,W+" GX"]],[/\bopr\/([\w\.]+)/i],[p,[c,W]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[c,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[p,[c,"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],[c,p],[/quark(?:pc)?\/([-\w\.]+)/i],[p,[c,"Quark"]],[/\bddg\/([\w\.]+)/i],[p,[c,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[c,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[c,"Smart Lenovo "+C]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+C],p],[/\bfocus\/([\w\.]+)/i],[p,[c,S+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[c,W+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[c,W+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[c,"MIUI"+q]],[/fxios\/([\w\.-]+)/i],[p,[c,S]],[/\bqihoobrowser\/?([\w\.]*)/i],[p,[c,"360"]],[/\b(qq)\/([\w\.]+)/i],[[c,/(.+)/,"$1Browser"],p],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[c,/(.+)
vendor: 5,130 bytes, line 2
2/,"$1"+q],p],[/samsungbrowser\/([\w\.]+)/i],[p,[c,P+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[p,[c,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[c,p],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[c],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[p,c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,B],p],[/(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],[c,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[c,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,k+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[c,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[p,J,{"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],[c,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],p],[/(wolvic|librewolf)\/([\w\.]+)/i],[c,p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[c,S+" 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],[c,[p,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[c,[p,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[h,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[h,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[h,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[h,/ower/,"",$]],[/ sun4\w[;\)]/i],[[h,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[h,$]]],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],[l,[u,P],[d,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[l,[u,P],[d,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[u,v],[d,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[u,v],[d,b]],[/(macintosh);/i],[l,[u,v]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[u,N],[d,f]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[u,T],[d,b]],[/honor([-\w ]+)[;\)]/i],[l,[u,T],[d,f]],[/\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],[l,[u,O],[d,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[u,O],[d,f]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[u,L],[d,b]],[/\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],[[l,/_/g," "],[u,L],[d,f]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[u,U],[d,f]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[u,J,{OnePlus:["304","403","203"],"*":U}],[d,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[u,"Vivo"],[d,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[u,"Realme"],[d,f]],[/\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],[l,[u,F],[d,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[u,F],[d,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[u,"LG"],[d,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[u,"LG"],[d,f]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
vendor: 5,512 bytes, line 2
2(?: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],[l,[u,"Lenovo"],[d,b]],[/(nokia) (t[12][01])/i],[u,l,[d,b]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[l,/_/g," "],[d,f],[u,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[u,x],[d,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[u,x],[d,f]],[/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],[l,[u,R],[d,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[u,R],[d,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[u,D],[d,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[u,_],[d,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[u,_],[d,f]],[/(playbook);[-\w\),; ]+(rim)/i],[l,u,[d,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[u,A],[d,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[u,E],[d,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[u,E],[d,f]],[/(nexus 9)/i],[l,[u,"HTC"],[d,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[l,/_/g," "],[d,f]],[/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],[l,[u,"TCL"],[d,b]],[/(itel) ((\w+))/i],[[u,$],l,[d,J,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[u,"Acer"],[d,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[u,"Meizu"],[d,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[u,"Ulefone"],[d,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[u,"Energizer"],[d,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[u,"Cat"],[d,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[u,"Smartfren"],[d,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[u,"Nothing"],[d,f]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[u,"Archos"],[d,b]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[u,"Archos"],[d,f]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[u,l,[d,b]],[/(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],[u,l,[d,f]],[/(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],[u,l,[d,b]],[/(surface duo)/i],[l,[u,M],[d,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[u,"Fairphone"],[d,f]],[/(u304aa)/i],[l,[u,"AT&T"],[d,f]],[/\bsie-(\w*)/i],[l,[u,"Siemens"],[d,f]],[/\b(rct\w+) b/i],[l,[u,"RCA"],[d,b]],[/\b(venue[\d ]{2,7}) b/i],[l,[u,"Dell"],[d,b]],[/\b(q(?:mv|ta)\w+) b/i],[l,[u,"Verizon"],[d,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[u,"Barnes & Noble"],[d,b]],[/\b(tm\d{3}\w+) b/i],[l,[u,"NuVision"],[d,b]],[/\b(k88) b/i],[l,[u,"ZTE"],[d,b]],[/\b(nx\d{3}j) b/i],[l,[u,"ZTE"],[d,f]],[/\b(gen\d{3}) b.+49h/i],[l,[u,"Swiss"],[d,f]],[/\b(zur\d{3}) b/i],[l,[u,"Swiss"],[d,b]],[/\b((zeki)?tb.*\b) b/i],[l,[u,"Zeki"],[d,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],l,[d,b]],[/\b(ns-?\w{0,9}) b/i],[l,[u,"Insignia"],[d,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[u,"NextBook"],[d,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],l,[d,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],l,[d,f]],[/\b(ph-1) /i],[l,[u,"Essential"],[d,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[u,"Envizen"],[d,b]],[/\b(trio[-\w\. ]+) b/i],[l,[u,"MachSpeed"],[d,b]],[/\btu_(1491) b/i],[l,[u,"Rotor"],[d,b]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[u,I],[d,b]],[/(sprint) (\w+)/i],[u,l,[d,f]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[u,M],[d,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[u,j],[d,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[u,j],[d,f]],[/smart-tv.+(samsung)/i],[u,[d,g]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[u,P],[d,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,"LG"],[d,g]],[/(apple) ?tv/i],[u,[l,v+" TV"],[d,g]],[/crkey/i],[[l,k+"cast"],[u,x],[d,g]],[/droid.+aft(\w+)( bui|\))/i],[l,[u,_],[d,g]],[/(shield \w+ tv)/i],[l,[u,I],[d,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[u,N],[d,g]],[/(bravia[\w ]+)( bui|\))/i],[l,[u,R],[d,g]],[/(mi(tv|box)-?\w+) bui/i],[l,[u,L],[d,g]],[/Hbbtv.*(technisat) (.*);/i],[u,l,[d,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[u,K],[l,K],[d,g]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[l,[d,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,l,[d,m]],[/droid.+; (shield)( bui|\))/i],[l,[u,I],[d,m]],[/(playstation \w+)/i],[l,[u,R],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[u,M],[d,m]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[u,P],[d,w]],[/((pebble))app/i,/(asu
vendor: 5,336 bytes, line 2
2s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[u,l,[d,w]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[u,U],[d,w]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[u,v],[d,w]],[/(opwwe\d{3})/i],[l,[u,D],[d,w]],[/(moto 360)/i],[l,[u,F],[d,w]],[/(smartwatch 3)/i],[l,[u,R],[d,w]],[/(g watch r)/i],[l,[u,"LG"],[d,w]],[/droid.+; (wt63?0{2,3})\)/i],[l,[u,j],[d,w]],[/droid.+; (glass) \d/i],[l,[u,x],[d,w]],[/(pico) (4|neo3(?: link|pro)?)/i],[u,l,[d,w]],[/; (quest( \d| pro)?)/i],[l,[u,B],[d,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[d,y]],[/(aeobc)\b/i],[l,[u,_],[d,y]],[/(homepod).+mac os/i],[l,[u,v],[d,y]],[/windows iot/i],[[d,y]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[d,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[d,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,f]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[c,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[c,p],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[c,"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],[c,p],[/ladybird\//i],[[c,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,p],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[c,[p,J,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,J,Z],[c,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,V],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,c],[/(ubuntu) ([\w\.]+) like android/i],[[c,/(.+)/,"$1 Touch"],p],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[c,p],[/\(bb(10);/i],[p,[c,A]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[p,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[c,S+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[c,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,H],p],[/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],[c,p],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,p]]},ee=function(t,r){if(typeof t===a&&(r=t,t=void 0),!(this instanceof ee))return new ee(t,r).getResult();var m=typeof e!==i&&e.navigator?e.navigator:void 0,g=t||(m&&m.userAgent?m.userAgent:""),w=m&&m.userAgentData?m.userAgentData:void 0,y=r?z(Q,r):Q,_=m&&m.userAgent==g;return this.getBrowser=function(){var e,t={};return t[c]=void 0,t[p]=void 0,X.call(t,g,y.browser),t[s]=typeof(e=t[p])===o?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,_&&m&&m.brave&&typeof m.brave.isBrave==n&&(t[c]="Brave"),t},this.getCPU=function(){var e={};return e[h]=void 0,X.call(e,g,y.cpu),e},this.getDevice=function(){var e={};return e[u]=void 0,e[l]=void 0,e[d]=void 0,X.call(e,g,y.device),_&&!e[d]&&w&&w.mobile&&(e[d]=f),_&&"Macintosh"==e[l]&&m&&typeof m.standalone!==i&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[l]="iPad",e[d]=b),e},this.getEngine=function(){var e={};return e[c]=void 0,e[p]=void 0,X.call(e,g,y.engine),e},this.getOS=function(){var e={};return e[c]=void 0,e[p]=void 0,X.call(e,g,y.os),_&&!e[c]&&w&&w.platform&&"Unknown"!=w.platform&&(e[c]=w.platform.replace(/chrome os/i,H).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 g},this.setUA=function(e){return g=typeof e===o&&e.length>500?K(e,500):e,this},this.setUA(g),this};ee.VERSION="1.0.41",ee.BROWSER=G([c,p,s]),ee.CPU=G([h]),ee.DEVICE=G([l,u,d,m,f,g,b,w,y]),ee.ENGINE=ee.OS=G([c,p]),t.exports&&(r=t.exports=ee),r.UAParser=ee;var et=typeof e!==i&&(e.jQuery||e.Zepto);if(et&&!et.ua){var er=new ee;et.ua=er.getResult(),et.ua.get=function(){return er.getUA()},et.ua.set=function(e){er.setUA(e);var t=er.getResult();for(var r in t)et.ua[r]=t[r]}}}("object"==typeof window?window:e.e)},33750,(e,t,r)=>{"use strict";
2Object.defineProperty(r,"__esModule",{value:!0});var n=e.r(271645),i=n&&"object"==typeof n&&"default"in n?n.default:n,a=e.r(229906),o=new a,s=o.getBrowser(),l=o.getCPU(),c=o.getDevice(),d=o.getEngine(),u=o.getOS(),p=o.getUA(),h=function(e){return o.setUA(e)},m=function(e){if(!e)return void console.error("No userAgent string was provided");var t=new a(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)}}},f=Object.freeze({ClientUAInstance:o,browser:s,cpu:l,device:c,engine:d,os:u,ua:p,setUa:h,parseUserAgent:m});function b(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}function g(e){return(g="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)}function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function E(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var C="mobile",k="tablet",S="smarttv",x="console",T="wearable",O="embedded",M=void 0,F={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},I={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},D={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},W=function(e){switch(e){case C:return{isMobile:!0};case k:return{isTablet:!0};case S:return{isSmartTV:!0};case x:return{isConsole:!0};case T:return{isWearable:!0};case M:return{isBrowser:!0};case O:return{isEmbedded:!0};default:return D}},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return e||t},P=function(){return!!("u">typeof window&&(window.navigator||navigator))&&(window.navigator||navigator)},N=function(e){var t=P();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},R=function(e){return e.type===C},L=function(e){return e.type===k},j=function(e){var t=e.type;return t===C||t===k},B=function(e){return e.type===S},H=function(e){return e.type===M},V=function(e){return e.type===T},q=function(e){return e.type===x},z=function(e){return e.type===O},G=function(e){return U(e.vendor)},Y=function(e){return U(e.model)},$=function(e){return U(e.type,"browser")},K=function(e){return e.name===I.Android},X=function(e){return e.name===I.Windows},J=function(e){return e.name===I.MAC_OS},Z=function(e){return e.name===I.WindowsPhone},Q=function(e){return e.name===I.IOS},ee=function(e){return U(e.version)},et=function(e){return U(e.name)},er=function(e){return e.name===F.Chrome},en=function(e){return e.name===F.Firefox},ei=function(e){return e.name===F.Chromium},ea=function(e){return e.name===F.Edge},eo=function(e){return e.name===F.Yandex},es=function(e){var t=e.name;return t===F.Safari||t===F.MobileSafari},el=function(e){return e.name===F.MobileSafari},ec=function(e){return e.name===F.Opera},ed=function(e){var t=e.name;return t===F.InternetExplorer||t===F.Ie},eu=function(e){return e.name===F.MIUI},ep=function(e){return e.name===F.SamsungBrowser},eh=function(e){return U(e.version)},em=function(e){return U(e.major)},ef=function(e){return U(e.name)},eb=function(e){return U(e.name)},eg=function(e){return U(e.version)},ew=function(){var e=P(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},ey=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},e_=function(){var e=P();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},ev=function(){return N("iPad")},eE=function(){return N("iPhone")},eA=function(){return N("iPod")},eC=function(e){return U(e)};function ek(e){var t=e||f,r=t.device,n=t.browser,i=t.os,a=t.engine,o=t.ua;return{isSmartTV:B(r),isConsole:q(r),isWearable:V(r),isEmbedded:z(r),isMobileSafari:el(n)||ev(),isChromium:ei(n),isMobile:j(r)||ev(),isMobileOnly:R(r),isTablet:L(r)||ev(),isBrowser:H(r),isDesktop:H(r),isAndroid:K(i),isWinPhone:Z(i),isIOS:Q(i)||ev(),isChrome:er(n),isFirefox:en(n),isSafari:es(n),isOpera:ec(n),isIE:ed(n),osVersion:ee(i),osName:et(i),fullBrowserVersion:eh(n),browserVersion:em(n),browserName:ef(n),mobileVendor:G(r),mobileModel:Y(r),engineName:eb(a),engineVersion:eg(a),getUA:eC(o),isEdge:ea(n)||ey(o),isYandex:eo(n),deviceType:$(r),isIOS13:e_(),isIPad13:ev(),isIPhone13:eE(),isIPod13:eA(),isElectron:ew(),isEdgeChromium:ey(o),isLegacyEdge:ea(n)&&!ey(o),isWindows:X(i),isMacOs:J(i),isMIUI:eu(n),isSamsungBrowser:ep(n)}}
2var eS=B(c),ex=q(c),eT=V(c),eO=z(c),eM=el(s)||ev(),eF=ei(s),eI=j(c)||ev(),eD=R(c),eW=L(c)||ev(),eU=H(c),eP=H(c),eN=K(u),eR=Z(u),eL=Q(u)||ev(),ej=er(s),eB=en(s),eH=es(s),eV=ec(s),eq=ed(s),ez=ee(u),eG=et(u),eY=eh(s),e$=em(s),eK=ef(s),eX=G(c),eJ=Y(c),eZ=eb(d),eQ=eg(d),e0=eC(p),e1=ea(s)||ey(p),e2=eo(s),e3=$(c),e5=e_(),e8=ev(),e4=eE(),e6=eA(),e9=ew(),e7=ey(p),te=ea(s)&&!ey(p),tt=X(u),tr=J(u),tn=eu(s),ti=ep(s);function ta(e){return m(e||window.navigator.userAgent)}r.AndroidView=function(e){var t=e.renderWithFragment,r=e.children,a=v(e,["renderWithFragment","children"]);return eN?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.BrowserTypes=F,r.BrowserView=function(e){var t=e.renderWithFragment,r=e.children,a=v(e,["renderWithFragment","children"]);return eU?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.ConsoleView=function(e){var t=e.renderWithFragment,r=e.children,a=v(e,["renderWithFragment","children"]);return ex?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.CustomView=function(e){var t=e.renderWithFragment,r=e.children,a=(e.viewClassName,e.style,e.condition),o=v(e,["renderWithFragment","children","viewClassName","style","condition"]);return a?t?i.createElement(n.Fragment,null,r):i.createElement("div",o,r):null},r.IEView=function(e){var t=e.renderWithFragment,r=e.children,a=v(e,["renderWithFragment","children"]);return eq?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.IOSView=function(e){var t=e.renderWithFragment,r=e.children,a=v(e,["renderWithFragment","children"]);return eL?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.MobileOnlyView=function(e){var t=e.renderWithFragment,r=e.children,a=(e.viewClassName,e.style,v(e,["renderWithFragment","children","viewClassName","style"]));return eD?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.MobileView=function(e){var t=e.renderWithFragment,r=e.children,a=v(e,["renderWithFragment","children"]);return eI?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.OsTypes=I,r.SmartTVView=function(e){var t=e.renderWithFragment,r=e.children,a=v(e,["renderWithFragment","children"]);return eS?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.TabletView=function(e){var t=e.renderWithFragment,r=e.children,a=v(e,["renderWithFragment","children"]);return eW?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.WearableView=function(e){var t=e.renderWithFragment,r=e.children,a=v(e,["renderWithFragment","children"]);return eT?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.WinPhoneView=function(e){var t=e.renderWithFragment,r=e.children,a=v(e,["renderWithFragment","children"]);return eR?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.browserName=eK,r.browserVersion=e$,r.deviceDetect=function(e){var t,r,n,i,a=e?m(e):f,o=a.device,s=a.browser,l=a.engine,c=a.os,d=a.ua,u=W(o.type),p=u.isBrowser,h=u.isMobile,g=u.isTablet,w=u.isSmartTV,y=u.isConsole,_=u.isWearable,v=u.isEmbedded;if(p)return{isBrowser:p,browserMajorVersion:U(s.major),browserFullVersion:U(s.version),browserName:U(s.name),engineName:U(l.name),engineVersion:U(l.version),osName:U(c.name),osVersion:U(c.version),userAgent:U(d)};if(w)return{isSmartTV:w,engineName:U(l.name),engineVersion:U(l.version),osName:U(c.name),osVersion:U(c.version),userAgent:U(d)};if(y)return{isConsole:y,engineName:U(l.name),engineVersion:U(l.version),osName:U(c.name),osVersion:U(c.version),userAgent:U(d)};if(h||g){return t=u,r=o,n=c,i=d,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],i in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{vendor:U(r.vendor),model:U(r.model),os:U(n.name),osVersion:U(n.version),ua:U(i)})}return _?{isWearable:_,engineName:U(l.name),engineVersion:U(l.version),osName:U(c.name),osVersion:U(c.version),userAgent:U(d)}
2:v?{isEmbedded:v,vendor:U(o.vendor),model:U(o.model),engineName:U(l.name),engineVersion:U(l.version),osName:U(c.name),osVersion:U(c.version),userAgent:U(d)}:void 0},r.deviceType=e3,r.engineName=eZ,r.engineVersion=eQ,r.fullBrowserVersion=eY,r.getSelectorsByUserAgent=function(e){if(!e||"string"!=typeof e)return void console.error("No valid user agent string was provided");var t=m(e);return ek({device:t.device,browser:t.browser,os:t.os,engine:t.engine,ua:t.ua})},r.getUA=e0,r.isAndroid=eN,r.isBrowser=eU,r.isChrome=ej,r.isChromium=eF,r.isConsole=ex,r.isDesktop=eP,r.isEdge=e1,r.isEdgeChromium=e7,r.isElectron=e9,r.isEmbedded=eO,r.isFirefox=eB,r.isIE=eq,r.isIOS=eL,r.isIOS13=e5,r.isIPad13=e8,r.isIPhone13=e4,r.isIPod13=e6,r.isLegacyEdge=te,r.isMIUI=tn,r.isMacOs=tr,r.isMobile=eI,r.isMobileOnly=eD,r.isMobileSafari=eM,r.isOpera=eV,r.isSafari=eH,r.isSamsungBrowser=ti,r.isSmartTV=eS,r.isTablet=eW,r.isWearable=eT,r.isWinPhone=eR,r.isWindows=tt,r.isYandex=e2,r.mobileModel=eJ,r.mobileVendor=eX,r.osName=eG,r.osVersion=ez,r.parseUserAgent=m,r.setUserAgent=function(e){return h(e)},r.useDeviceData=ta,r.useDeviceSelectors=function(e){var t=ta(e||window.navigator.userAgent);return[ek(t),t]},r.useMobileOrientation=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=n.useState(function(){var e=90*(window.innerWidth>window.innerHeight);return{isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"}}))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(e)||function(e){if(e){if("string"==typeof e)return A(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return A(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=t[0],i=t[1],a=n.useCallback(function(){var e=90*(window.innerWidth>window.innerHeight),t={isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"};r.orientation!==t.orientation&&i(t)},[r.orientation]);return n.useEffect(function(){return("u"<typeof window?"undefined":g(window))!==void 0&&eI&&(a(),window.addEventListener("load",a,!1),window.addEventListener("resize",a,!1)),function(){window.removeEventListener("resize",a,!1),window.removeEventListener("load",a,!1)}},[a]),r},r.withOrientationChange=function(e){return function(t){var r;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function n(e){var t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return(t=function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return E(e)}(this,y(n).call(this,e))).isEventListenerAdded=!1,t.handleOrientationChange=t.handleOrientationChange.bind(E(t)),t.onOrientationChange=t.onOrientationChange.bind(E(t)),t.onPageLoad=t.onPageLoad.bind(E(t)),t.state={isLandscape:!1,isPortrait:!1},t}return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&_(n,t),r=[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var e=90*(window.innerWidth>window.innerHeight);this.setState({isPortrait:0===e,isLandscape:90===e})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){("u"<typeof window?"undefined":g(window))!==void 0&&eI&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return i.createElement(e,w({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(n.prototype,r),n}(i.Component)}},654107,150292,e=>{"use strict";var t,r=e.i(322066);let n=/#/g,i=/&/g,a=/\//g,o=/=/g,s=/\+/g,l=/%5e/gi,c=/%60/gi,d=/%7c/gi,u=/%20/gi;function p(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(d,"|").replace(s,"%2B").replace(u,"+").replace(n,"%23").replace(i,"%26").replace(c,"`").replace(l,"^").replace(a,"%2F")}function h(e){return p(e).replace(o,"%3D")}function m(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let f=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,b=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,g=/^([/\\]\s*){2,}[^/\\]/,w=/\/$|\/\?|\/#/,y=/^\.?\//;function _(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?f.test(e):b.test(e)||!!t.acceptRelative&&g.test(e)}let v=Symbol.for("ufo:protocolRelative");
2function E(e=""){let[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}class A extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let C=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function k(e="GET"){return C.has(e.toUpperCase())}let S=new Set(["image/svg","application/xml","application/xhtml","application/html"]),x=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function T(e,t){if(t)if(Array.isArray(t))for(let r of t)await r(e);else await t(e)}let O=new Set([408,409,425,429,500,502,503,504]),M=new Set([101,204,205,304]);e.s(["F",0,A,"c",0,function e(t={}){let{fetch:n=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:+!k(e.options.method);let r=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(r):O.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)),l(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 A(`${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,l),r}let l=async function(e,l={}){var c,d,u,f;let b,g,w,A={request:e,options:(c=t.defaults,w=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}(l?.headers??e?.headers,c?.headers,i),(c?.query||c?.params||l?.params||l?.query)&&(g={...c?.params,...c?.query,...l?.params,...l?.query}),{...c,...l,query:g,params:g,headers:w}),response:void 0,error:void 0};if(A.options.method&&(A.options.method=A.options.method.toUpperCase()),A.options.onRequest&&(await T(A,A.options.onRequest),A.options.headers instanceof i||(A.options.headers=new i(A.options.headers||{}))),"string"==typeof A.request){if(A.options.baseURL&&(A.request=function(e,t){var r;if(!(r=t)||"/"===r||_(e))return e;let n=function(e=""){return(!function(e=""){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);if(e.startsWith(n)){let t=e[n.length];if(!t||"/"===t||"?"===t)return e}return function(e,...t){let r=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(r){let t=e.replace(y,"");r=function(e=""){return e.endsWith("/")?e:e+"/"}(r)+t}else r=e;return r}(n,e)}(A.request,A.options.baseURL)),A.options.query){let e,t,r,n,i,a,o;d=A.request,u=A.options.query,t={...function(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(s," "));if("__proto__"===n||"constructor"===n)continue;let i=m((e[2]||"").replace(s," "));void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}return t}((e=function e(t="",r){let n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=""]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!_(t,{acceptRelative:!0}))return r?e(r+t):E(t);let[,i="",a,o=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",l=""]=o.match(/([^#/?]*)(.*)?/)||[];"file:"===i&&(l=l.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:c,search:d,hash:u}=E(l);return{protocol:i.toLowerCase(),auth:a?a.slice(0,Math.max(0,a.length-1)):"",host:s,pathname:c,search:d,hash:u,[v]:!i}}(d)).search),...u},e.search=Object.keys(t).filter(e=>void 0!==t[e]).map(e=>{var r;return(("number"==typeof(r=t[e])||"boolean"==typeof r)&&(r=String(r)),r)?Array.isArray(r)?r.map(t=>`${h(e)}=${p(t)}`).join("&"):`${h(e)}=${p(r)}`:h(e)}
2).filter(Boolean).join("&"),r=(f=e).pathname||"",n=f.search?(f.search.startsWith("?")?"":"?")+f.search:"",i=f.hash||"",a=f.auth?f.auth+"@":"",o=f.host||"",A.request=(f.protocol||f[v]?(f.protocol||"")+"//":"")+a+o+r+n+i,delete A.options.query}"query"in A.options&&delete A.options.query,"params"in A.options&&delete A.options.params}if(A.options.body&&k(A.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))}(A.options.body)){let e=A.options.headers.get("content-type");"string"!=typeof A.options.body&&(A.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(A.options.body).toString():JSON.stringify(A.options.body)),e||A.options.headers.set("content-type","application/json"),A.options.headers.has("accept")||A.options.headers.set("accept","application/json")}else("pipeTo"in A.options.body&&"function"==typeof A.options.body.pipeTo||"function"==typeof A.options.body.pipe)&&!("duplex"in A.options)&&(A.options.duplex="half");if(!A.options.signal&&A.options.timeout){let e=new a;b=setTimeout(()=>{let t=Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},A.options.timeout),A.options.signal=e.signal}try{A.response=await n(A.request,A.options)}catch(e){return A.error=e,A.options.onRequestError&&await T(A,A.options.onRequestError),await o(A)}finally{b&&clearTimeout(b)}if((A.response.body||A.response._bodyInit)&&!M.has(A.response.status)&&"HEAD"!==A.options.method){let e=(A.options.parseResponse?"json":A.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return x.test(t)?"json":"text/event-stream"===t?"stream":S.has(t)||t.startsWith("text/")?"text":"blob"}(A.response.headers.get("content-type")||"");switch(e){case"json":{let e=await A.response.text(),t=A.options.parseResponse||r.default;A.response._data=t(e);break}case"stream":A.response._data=A.response.body||A.response._bodyInit;break;default:A.response._data=await A.response[e]()}}return(A.options.onResponse&&await T(A,A.options.onResponse),!A.options.ignoreResponseError&&A.response.status>=400&&A.response.status<600)?(A.options.onResponseError&&await T(A,A.options.onResponseError),await o(A)):A.response},c=async function(e,t){return(await l(e,t))._data};return c.raw=l,c.native=(...e)=>n(...e),c.create=(r={},n={})=>e({...t,...n,defaults:{...t.defaults,...n.defaults,...r}}),c}],150292);var F=e.i(271645);class I 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 D extends I{constructor(e,t,r,n,i,a){super(r,n,i),this.type=e,this.status=t,this.data=a}}class W extends I{constructor(e,t,r){super(e,t,r),this.type="client_error"}}class U extends I{constructor(e,t,r){super(e,t,r),this.type="connector_error"}}let P=e=>e instanceof I?e:e instanceof Error?new W(e.message,e):new W(`Internal error: ${e}`);var N=((t={}).OAUTH_ACCOUNT_SUSPENDED="oauth_account_suspended",t.MISSING_OR_INVALID_PRIVY_APP_ID="missing_or_invalid_privy_app_id",t.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID="missing_or_invalid_privy_account_id",t.MISSING_OR_INVALID_TOKEN="missing_or_invalid_token",t.INVALID_DATA="invalid_data",t.INVALID_CAPTCHA="invalid_captcha",t.LINKED_TO_ANOTHER_USER="linked_to_another_user",t.CANNOT_LINK_MORE_OF_TYPE="cannot_link_more_of_type",t.FAILED_TO_LINK_ACCOUNT="failed_to_link_account",t.FAILED_TO_UPDATE_ACCOUNT="failed_to_update_account",t.USER_EXITED_UPDATE_FLOW="exited_update_flow",t.ALLOWLIST_REJECTED="allowlist_rejected",t.OAUTH_USER_DENIED="oauth_user_denied",t.OAUTH_UNEXPECTED="oauth_unexpected",t.UNKNOWN_AUTH_ERROR="unknown_auth_error",t.USER_EXITED_AUTH_FLOW="exited_auth_flow",t.USER_EXITED_LINK_FLOW="exited_link_flow",t.USER_EXITED_SET_PASSWORD_FLOW="user_exited_set_password_flow",t.MUST_BE_AUTHENTICATED="must_be_authenticated",t.UNKNOWN_CONNECT_WALLET_ERROR="unknown_connect_wallet_error",t.GENERIC_CONNECT_WALLET_ERROR="generic_connect_wallet_error",t.CLIENT_REQUEST_TIMEOUT="client_request_timeout",t.INVA
2LID_CREDENTIALS="invalid_credentials",t.MISSING_MFA_CREDENTIALS="missing_or_invalid_mfa",t.UNKNOWN_MFA_ERROR="unknown_mfa_error",t.EMBEDDED_WALLET_ALREADY_EXISTS="embedded_wallet_already_exists",t.EMBEDDED_WALLET_NOT_FOUND="embedded_wallet_not_found",t.EMBEDDED_WALLET_CREATE_ERROR="embedded_wallet_create_error",t.UNKNOWN_EMBEDDED_WALLET_ERROR="unknown_embedded_wallet_error",t.EMBEDDED_WALLET_PASSWORD_UNCONFIRMED="embedded_wallet_password_unconfirmed",t.EMBEDDED_WALLET_PASSWORD_ALREADY_EXISTS="embedded_wallet_password_already_exists",t.EMBEDDED_WALLET_RECOVERY_ALREADY_EXISTS="embedded_wallet_recovery_already_exists",t.TRANSACTION_FAILURE="transaction_failure",t.UNSUPPORTED_CHAIN_ID="unsupported_chain_id",t.NOT_SUPPORTED="not_supported",t.CAPTCHA_TIMEOUT="captcha_timeout",t.INVALID_MESSAGE="invalid_message",t.UNABLE_TO_SIGN="unable_to_sign",t.CAPTCHA_FAILURE="captcha_failure",t.CAPTCHA_DISABLED="captcha_disabled",t.SESSION_STORAGE_UNAVAILABLE="session_storage_unavailable",t.TOO_MANY_REQUESTS="too_many_requests",t.USER_LIMIT_REACHED="max_accounts_reached",t.DISALLOWED_LOGIN_METHOD="disallowed_login_method",t.DISALLOWED_PLUS_EMAIL="disallowed_plus_email",t.PASSKEY_NOT_ALLOWED="passkey_not_allowed",t.USER_DOES_NOT_EXIST="user_does_not_exist",t.INSUFFICIENT_BALANCE="insufficient_balance",t.ACCOUNT_TRANSFER_REQUIRED="account_transfer_required",t.BUFFER_NOT_DEFINED="buffer_not_defined",t.UNSUPPORTED_WALLET_TYPE="unsupported_wallet_type",t.NO_SOLANA_ACCOUNTS="no_solana_accounts",t.UNKNOWN_FUNDING_ERROR="unknown_funding_error",t);let R=()=>{throw Error("You need to wrap your application with the <PrivyProvider> initialized with your app id.")},L=(0,F.createContext)({setAuthenticated:R,setUser:R,setIsNewUser:R,isNewUserThisSession:!1,walletConnectionStatus:null,setWalletConnectionStatus:R,connectors:[],rpcConfig:{rpcUrls:{}},showFiatPrices:!0,chains:[],clientAnalyticsId:null,pendingTransaction:null,client:null,privy:null,appId:"notAdded",hideWalletUIs:{current:!1},nativeTokenSymbolForChainId:R,initializeWalletProxy:R,getAuthMeta:R,getAuthFlow:R,closePrivyModal:R,openPrivyModal:R,connectWallet:R,initLoginWithWallet:R,loginWithWallet:R,initLoginWithFarcaster:R,loginWithFarcaster:R,loginWithCode:R,initLoginWithEmail:R,initLoginWithSms:R,initUpdateEmail:R,initUpdatePhone:R,resendEmailCode:R,resendSmsCode:R,initLoginWithHeadlessOAuth:R,loginWithHeadlessOAuth:R,crossAppAuthFlow:R,initLoginWithOAuth:R,loginWithOAuth:R,passkeyAuthState:{status:"initial"},setPasskeyAuthState:R,initSignupWithPasskey:R,signupWithPasskey:R,initLoginWithPasskey:R,loginWithPasskey:R,initLinkWithPasskey:R,linkWithPasskey:R,refreshSessionAndUser:R,walletProxy:null,createAnalyticsEvent:R,acceptTerms:R,getUsdTokenPrice:R,getUsdPriceForSol:R,getSplTokenMetadata:R,recoverEmbeddedWallet:R,updateWallets:R,fundWallet:R,openModal:R,setReadyToTrue:R,requestFarcasterSignerStatus:R,initLoginWithTelegram:R,loginWithTelegram:R,generateSiweMessage:R,generateSiweMessageForSmartWallet:R,loginWithSiwe:R,linkWithSiwe:R,linkSmartWallet:R,delegateWallet:R,revokeDelegatedWallets:R,connectCoinbaseSmartWallet:R,connectBaseAccount:R,initiateAccountTransfer:R,emailOtpState:{status:"initial"},setEmailOtpState:R,smsOtpState:{status:"initial"},setSmsOtpState:R,siweState:{status:"initial"},setSiweState:R,oAuthState:{status:"initial"},setOAuthState:R,telegramAuthState:{status:"initial"},setTelegramAuthState:R,isHeadlessOAuthLoading:!1,isHeadlessSigning:R,inProgressAuthFlowRef:{current:null},inProgressLoginOrLinkMethodRef:{current:null},baseAccountSdk:void 0,setBaseAccountSdk:R});e.s(["I",0,L,"P",0,U,"a",0,class extends W{constructor(){super("Request timed out",void 0,"client_request_timeout")}},"b",0,W,"c",0,N,"d",0,P,"e",0,D,"f",0,e=>{if(e instanceof I)return e;if(!(e instanceof A))return P(e);if(!e.response)return new D("api_error",null,e.message,e);let{type:t,message:r,error:n,code:i}=e.data;return new D(t||"ApiError",e.response.status,r||n,e,i,e.data)},"g",0,I,"h",0,()=>{},"i",0,class extends W{constructor(){super("Method called before `ready`. Ensure you wait until `ready` is true before calling.")}},"j",0,class extends U{constructor(){super("No Solana accounts found in wallet",void 0,"no_solana_accounts")}},"k",0,class extends W{constructor(e){super("This application is in development mode and must be upgraded to production to log in new users.",e,"max_accounts_reached")}},"l",0,e=>()=>{throw Error(e.trim())},"m",0,class extends W{constructor(e="Embedded wallet error",t){super(e,t,"unknown_embedded_wallet_error")}},"n",0,R,"o",0,class extends W{constructor(e="User must be authenticated"){super(e,void 0,"must_be_authenticated")}},"u",0,()=>(0,F.useContext)(L)],654107)},803959,e=>{"use strict";var t=e.i(271645);let r=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,a={setState:n,getState:i,getInitialState:()=>o,subscribe:e=>(r.add(e),()=>r.delete(e))},o=t=e(n,i,a);return a},n=e=>{let n=e?r(e):r,i=e=>(function(e,r=e=>e){let n=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>r(e.getState()),[e,r]),t.default.useCallback(()=>r(e.getInitialState()),[e,r]));return t.default.useDebugValue(n),n})(n,e);return Object.assign(i,n),i};e.s(["create",0,e=>e?n(e):n],803959)},998268,e=>{"use strict";var t=e.i(823838);
2e.s(["areAddressesEqual",0,(e,r)=>e===r||!(!e.startsWith("0x")||!r.startsWith("0x"))&&42===e.length&&42===r.length&&(0,t.getAddress)(e)===(0,t.getAddress)(r)])},203988,e=>{"use strict";e.s(["addPrivyRpcToChain",0,function(e,t){return{...e,rpcUrls:{...e.rpcUrls,privy:{http:[t]}}}}])},877225,331191,435528,853317,47258,83319,975477,958747,538838,991120,707213,141628,744645,301325,554952,209150,e=>{"use strict";let t={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"}}};e.s(["arbitrum",0,t],331191);let r={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"]}
2,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};e.s(["arbitrumSepolia",0,r],435528);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"}}};e.s(["avalanche",0,n],853317);let i={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};e.s(["avalancheFuji",0,i],47258);let a={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"}}};e.s(["base",0,a],83319);let o={id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"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};e.s(["baseSepolia",0,o],975477);let s={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};e.s(["celo",0,s],958747);let l={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};e.s(["linea",0,l],538838);let c={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"}}};e.s(["mainnet",0,c],991120);let d={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"}}};e.s(["optimism",0,d],707213);let u={id:0xaa37dc,name:"Optimism Sepolia",network:"optimism-sepolia",nativeCurrency:{name:"Sepolia Ether",symbol
2:"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};e.s(["optimismSepolia",0,u],141628);let p={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"}}};e.s(["polygon",0,p],744645);let h={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};e.s(["polygonAmoy",0,h],301325);let m={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};e.s(["sepolia",0,m],554952);let f={id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{privy:{http:["https://zora-mainnet.rpc.privy.systems"]},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"}}};e.s(["zora",0,f],209150);let b=[c,m,{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"}}},t,r,d,u,p,h,s,{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"}}},a,o,{id:80085,network:"berachain-artio",name:"Berachain Artio",nativeCurrency:{name:"BERA",symbol
2:"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:43419,name:"Gunz Mainnet",network:"gunz",nativeCurrency:{name:"GUN",symbol:"GUN",decimals:18},rpcUrls:{privy:{http:["https://gunz-mainnet.rpc.privy.systems"]},default:{http:["https://rpc.gunzchain.io/ext/bc/2M47TxWHGnhNtq6pM5zPXdATBtuqubxn5EPFgFmEawCQr9WFML/rpc"]},public:{http:["https://rpc.gunzchain.io/ext/bc/2M47TxWHGnhNtq6pM5zPXdATBtuqubxn5EPFgFmEawCQr9WFML/rpc"]}},blockExplorers:{default:{name:"Gunz Explorer",url:"https://gunzscan.io"}}},{id:13371,name:"Immutable zkEVM",network:"immutable-zkevm",nativeCurrency:{name:"Immutable Coin",symbol:"IMX",decimals:18},rpcUrls:{privy:{http:["https://immutable-mainnet.rpc.privy.systems"]},default:{http:["https://rpc.immutable.com"]},public:{http:["https://rpc.immutable.com"]}},blockExplorers:{default:{name:"Immutable Explorer",url:"https://explorer.immutable.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"}}},l,{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},n,i,{id:1868,name:"Soneium Mainnet",network:"soneium",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://soneium-mainnet.rpc.privy.systems"]},default:{http:["https://rpc.soneium.org"]},public:{http:["https://rpc.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium.blockscout.com"}}},{id:130,name:"Unichain",network:"unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://unichain-mainnet.rpc.privy.systems"]},default:{http:["https://mainnet.unichain.org"]},public:{http:["https://mainnet.unichain.org"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz"}}},f,{id:999,name:"Zora Goerli Testnet",network:"zora-testnet",nativeCurrency:{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}
2,rpcUrls:{default:{http:["https://rpc.garnetchain.com"]},public:{http:["https://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}}}],g=new Set(b.map(e=>e.id));e.s(["DEFAULT_SUPPORTED_CHAINS",0,b,"DEFAULT_SUPPORTED_CHAIN_IDS",0,g],877225)},906764,e=>{"use strict";var t=e.i(203988),r=e.i(877225);e.s(["dedupeSupportedChains",0,e=>e.map(e=>{if(e.rpcUrls.privyWalletOverride)return e;let n=r.DEFAULT_SUPPORTED_CHAINS.find(t=>t.id===e.id),i=n?.rpcUrls.privy?.http[0];return i?(0,t.addPrivyRpcToChain)(e,i):e})])},188933,189934,e=>{"use strict";var t,r,n,i=e.i(843476),a=e.i(271645),o=e.i(906764),s=e.i(877225),l=e.i(991120);function c(e){return(c="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)}var d=/^\s+/,u=/\s+$/;function p(e,t){if(t=t||{},(e=e||"")instanceof p)return e;if(!(this instanceof p))return new p(e,t);var r,n,i,a,o,s,l,h,m,f,b,g,w,y,_,v,E,A,C,k,S=(n={r:0,g:0,b:0},i=1,a=null,o=null,s=null,l=!1,h=!1,"string"==typeof(r=e)&&(r=function(e){e=e.replace(d,"").replace(u,"").toLowerCase();var t,r=!1;if(O[e])e=O[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=R.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=R.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=R.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=R.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=R.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=R.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=R.hex8.exec(e))?{r:W(t[1]),g:W(t[2]),b:W(t[3]),a:W(t[4])/255,format:r?"name":"hex8"}:(t=R.hex6.exec(e))?{r:W(t[1]),g:W(t[2]),b:W(t[3]),format:r?"name":"hex"}:(t=R.hex4.exec(e))?{r:W(t[1]+""+t[1]),g:W(t[2]+""+t[2]),b:W(t[3]+""+t[3]),a:W(t[4]+""+t[4])/255,format:r?"name":"hex8"}:!!(t=R.hex3.exec(e))&&{r:W(t[1]+""+t[1]),g:W(t[2]+""+t[2]),b:W(t[3]+""+t[3]),format:r?"name":"hex"}}(r)),"object"==c(r)&&(L(r.r)&&L(r.g)&&L(r.b)?(m=r.r,f=r.g,b=r.b,n={r:255*I(m,255),g:255*I(f,255),b:255*I(b,255)},l=!0,h="%"===String(r.r).substr(-1)?"prgb":"rgb"):L(r.h)&&L(r.s)&&L(r.v)?(a=P(r.s),o=P(r.v),g=r.h,w=a,y=o,g=6*I(g,360),w=I(w,100),y=I(y,100),_=Math.floor(g),v=g-_,E=y*(1-w),A=y*(1-v*w),C=y*(1-(1-v)*w),n={r:255*[y,A,E,E,C,y][k=_%6],g:255*[C,y,y,A,E,E][k],b:255*[E,E,C,y,y,A][k]},l=!0,h="hsv"):L(r.h)&&L(r.s)&&L(r.l)&&(a=P(r.s),s=P(r.l),n=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=I(e,360),t=I(t,100),r=I(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,a,s),l=!0,h="hsl"),r.hasOwnProperty("a")&&(i=r.a)),i=F(i),{ok:l,format:r.format||h,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:i});this._originalInput=e,this._r=S.r,this._g=S.g,this._b=S.b,this._a=S.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||S.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=S.ok}function h(e,t,r){e=I(e,255);var n,i,a=Math.max(e,t=I(t,255),r=I(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 m(e,t,r){e=I(e,255);var n,i=Math.max(e,t=I(t,255),r=I(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 f(e,t,r,n){var i=[U(Math.round(e).toString(16)),U(Math.round(t).toString(16)),U(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 b(e,t,r,n){return[U(N(n)),U(Math.round(e).toString(16)),U(Math.round(t).toString(16)),U(Math.round(r).toString(16))].join("")}function g(e,t){t=0===t?0:t||10;var r=p(e).toHsl();return r.s-=t/100,r.s=D(r.s),p(r)}
vendor: 6,434 bytes, line 2
2function w(e,t){t=0===t?0:t||10;var r=p(e).toHsl();return r.s+=t/100,r.s=D(r.s),p(r)}function y(e){return p(e).desaturate(100)}function _(e,t){t=0===t?0:t||10;var r=p(e).toHsl();return r.l+=t/100,r.l=D(r.l),p(r)}function v(e,t){t=0===t?0:t||10;var r=p(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)))),p(r)}function E(e,t){t=0===t?0:t||10;var r=p(e).toHsl();return r.l-=t/100,r.l=D(r.l),p(r)}function A(e,t){var r=p(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,p(r)}function C(e){var t=p(e).toHsl();return t.h=(t.h+180)%360,p(t)}function k(e,t){if(isNaN(t)||t<=0)throw Error("Argument to polyad must be a positive number");for(var r=p(e).toHsl(),n=[p(e)],i=360/t,a=1;a<t;a++)n.push(p({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function S(e){var t=p(e).toHsl(),r=t.h;return[p(e),p({h:(r+72)%360,s:t.s,l:t.l}),p({h:(r+216)%360,s:t.s,l:t.l})]}function x(e,t,r){t=t||6,r=r||30;var n=p(e).toHsl(),i=360/r,a=[p(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(p(n));return a}function T(e,t){t=t||6;for(var r=p(e).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(p({h:n,s:i,v:a})),a=(a+s)%1;return o}p.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=this.toRgb();return e=n.r/255,t=n.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=n.b/255)<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=F(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=m(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=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(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 f(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=[U(Math.round(t).toString(16)),U(Math.round(r).toString(16)),U(Math.round(n).toString(16)),U(N(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*I(this._r,255))+"%",g:Math.round(100*I(this._g,255))+"%",b:Math.round(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*I(this._r,255))+"%, "+Math.round(100*I(this._g,255))+"%, "+Math.round(100*I(this._b,255))+"%)":"rgba("+Math.round(100*I(this._r,255))+"%, "+Math.round(100*I(this._g,255))+"%, "+Math.round(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=p(e);r="#"+b(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 p(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(_,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(x,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(k,[3])},tetrad:function(){return this._applyCombination(k,[4])}},p.fromRatio=function(e,t){if("object"==c(e)){var r={};for(var n in e)e.hasOwnProperty(n)&&("a"===n?r[n]=e[n]:r[n]=P(e[n]));e=r}return p(e,t)},p.equals=function(e,t){return!!e&&!!t&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},p.mix=function(e,t,r){r=0===r?0:r||50;var n=p(e).toRgb(),i=p(t).toRgb(),a=r/100;return p({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)
2*a+n.a})},p.readability=function(e,t){var r=p(e),n=p(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},p.isReadable=function(e,t,r){var n,i,a,o,s,l=p.readability(e,t);switch(s=!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"),o={level:i,size:a}).level+o.size){case"AAsmall":case"AAAlarge":s=l>=4.5;break;case"AAlarge":s=l>=3;break;case"AAAsmall":s=l>=7}return s},p.mostReadable=function(e,t,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var c=0;c<t.length;c++)(n=p.readability(e,t[c]))>l&&(l=n,s=p(t[c]));return p.isReadable(e,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],r))};var O=p.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
20",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"},M=p.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(O);function F(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function I(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 D(e){return Math.min(1,Math.max(0,e))}function W(e){return parseInt(e,16)}function U(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function N(e){return Math.round(255*parseFloat(e)).toString(16)}var R=(r="[\\s|\\(]+("+(t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",{CSS_UNIT:new RegExp(t),rgb:RegExp("rgb"+r),rgba:RegExp("rgba"+n),hsl:RegExp("hsl"+r),hsla:RegExp("hsla"+n),hsv:RegExp("hsv"+r),hsva:RegExp("hsva"
2+n),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 L(e){return!!R.CSS_UNIT.exec(e)}e.s(["default",0,p],189934);let j="Log in or sign up",B="light",H=["detected_ethereum_wallets","detected_solana_wallets","metamask","coinbase_wallet","rainbow","base_account","wallet_connect","phantom"],V=!1,q={moonpay:{useSandbox:!1}},z=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"]),G=e=>z.has(e),Y=(e,t,r)=>r.indexOf(e)===t,$=/paymaster\.biconomy\.io\/api/i,K={mode:"SPONSORED",calculateGasLimits:!0,expiryDuration:300,sponsorshipInfo:{webhookData:{},smartAccountInfo:{name:"BICONOMY",version:"2.0.0"}}};function X(e,t){let r=Math.max(0,Math.min(1,e.toHsl().l+t));return p({...e.toHsl(),l:r})}function J(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":"#
2EF4444","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"}},Q={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 ee(e,t,r,n,i){let a,c,d,u,h,m,f,b,g,w,y,_,v,E,A,C,k,S,x=r?console.warn:()=>{},T=[];if(t?.loginMethods)for(let e of(a=t.loginMethods.includes("email"),c=t.loginMethods.includes("sms"),u=t.loginMethods.includes("wallet"),h=t.loginMethods.includes("google"),m=t.loginMethods.includes("twitter"),f=t.loginMethods.includes("discord"),y=t.loginMethods.includes("spotify"),_=t.loginMethods.includes("instagram"),b=t.loginMethods.includes("tiktok"),g=t.loginMethods.includes("line"),w=t.loginMethods.includes("twitch"),E=t.loginMethods.includes("github"),v=t.loginMethods.includes("linkedin"),A=t.loginMethods.includes("apple"),C=t.loginMethods.includes("farcaster"),k=t.loginMethods.includes("telegram"),d=t.loginMethods.includes("passkey"),t.loginMethods))"string"==typeof e&&e.startsWith("privy:")&&T.push(e);else a=e.email_auth,c=e.sms_auth,u=e.wallet_auth||e.solana_wallet_auth,h=e.google_oauth,m=e.twitter_oauth,f=e.discord_oauth,E=e.github_oauth,y=e.spotify_oauth,_=e.instagram_oauth,b=e.tiktok_oauth,g=e.line_oauth,w=e.twitch_oauth,v=e.linkedin_oauth,A=e.apple_oauth,C=e.farcaster_auth,k=e.telegram_auth,d=e.passkey_auth,S=e.custom_jwt_auth;e.passkey_auth&&(d=!0),"u">typeof window&&"function"!=typeof window.PublicKeyCredential&&(d=!1);let O=[a,c].filter(Boolean),M=[h,m,f,E,y,_,b,g,w,v,A,C,k].filter(Boolean),F=[u].filter(Boolean),I=t?.loginMethods?.includes("passkey")??!1,D=e.passkeys_for_signup_enabled??!1,W=[d&&(D||I)].filter(Boolean),U=[S].filter(Boolean);if(O.length+M.length+F.length+W.length+U.length+T.length===0)throw Error("You must enable at least one login method");let P=void 0!==t?.appearance?.showWalletLoginFirst?t?.appearance?.showWalletLoginFirst:e.show_wallet_login_first;P&&0===F.length?(x("You should only enable `showWalletLoginFirst` when `wallet` logins are also enabled. `showWalletLoginFirst` has been set to false"),P=!1):P||M.length+O.length!==0||(x("You should only disable `showWalletLoginFirst` when `email`, `sms`, or social logins are also enabled. `showWalletLoginFirst` has been set to true"),P=!0);let N=t?.externalWallets?.walletConnect?.enabled??!0;t?.loginMethods&&t.loginMethodsAndOrder&&x("You should only configure one of `loginMethods` or `loginMethodsAndOrder`");let R=(({input:e,overrides:t})=>t?t.primary.concat(t.overflow??[]).filter(G).filter(Y):e?e.filter(G).filter(Y):H)({input:t?.appearance?.walletList,overrides:t?.loginMethodsAndOrder});if((R.includes("wallet_connect_qr")||R.includes("wallet_connect"))&&R.includes("wallet_connect_qr_solana"))throw Error("wallet_connect_qr and wallet_connect_qr_solana cannot both be present in 
2walletList due to WalletConnect session conflicts.");let L=(({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}),z=t?.intl?.defaultCountry??"US",{chains:ee,defaultChain:et}=function({supportedChains:e,defaultChainFromConfig:t}){let r;if(e){if(0===e.length)throw Error("`supportedChains` must contain at least one chain");r=(0,o.dedupeSupportedChains)(e)}else r=[...s.DEFAULT_SUPPORTED_CHAINS];let n=e?r[0]:l.mainnet,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}),er=!!t?.defaultChain,en=t?.customAuth?.getCustomAccessToken&&!1!==t?.customAuth?.enabled,ei=en?"all-users":e.embedded_wallet_config.ethereum.create_on_login,ea=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 eo=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,es=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,el=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,emailDomain:t?.appearance?.emailDomain,landingHeader:t?.appearance?.landingHeader??j,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,l;"light"===e?r=!1:"dark"===e?r=!0:(r=.5>=p(e).getLuminance(),n=p(e).toHslString());let c=r?"dark":"light",d=r?Z:Q,{accent:u,accentLight:h,accentHover:m,accentDark:f,accentDarkest:b}=function(e,t){if(!e){let e=t?Z:Q;return{accent:p(e.background.interactive),accentLight:p(e.background.interactive),accentHover:p(e.background["interactive-hover"]),accentDark:p(e.background["interactive-clicked"]),accentDarkest:p(e.background["interactive-disabled"])}}let r=p(e);return{accent:r,accentLight:X(r,.15),accentHover:X(r,.3),accentDark:X(r,-.06),accentDarkest:X(r,-.6)}}(t,r),g=(i=p(Q.text.default),a=p(Z.text.default),o=J(u,i),s=J(u,a),(l=u.toHsl()).h>=220&&l.h<=300&&s>=3?Z.text.default:o>s?Q.text.default:Z.text.default),w=p(g),y=J(u,p(d.background.default))>=3;return{colorScheme:c,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:u.toHslString(),accentLight:h.toHslString(),accentHover:m.toHslString(),accentDark:f.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.
2warning,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:y?"1":"0",linkNavigationColor:y?u.toHslString():d.text.default,linkNavigationDecoration:y?"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??B,accentHex:t?.appearance?.accentColor??e.accent_color}),loginGroupPriority:P?"web3-first":"web2-first",hideDirectWeb2Inputs:!!t?.appearance?.hideDirectWeb2Inputs,walletList:R,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:u,email:a,sms:c,passkey:d,google:h,twitter:m,discord:f,github:E,spotify:y,instagram:_,tiktok:b,line:g,twitch:w,linkedin:v,apple:A,farcaster:C,telegram:k},globalDisablePasskeys:t?.globalDisablePasskeys??!1,customOAuthProviders:(e.custom_oauth_providers??[]).filter(e=>!1!==e.enabled),crossAppProviders:T,disablePlusEmails:e.disable_plus_emails,loginMethodsAndOrder:L,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??"34357d3c125c2bcf2ce2bc3309d98715",rpcConfig:{rpcUrls:{},rpcTimeouts:t?.externalWallets?.signatureRequestTimeouts??{}},chains:ee,defaultChain:et,intl:{defaultCountry:z,textLocalization:t?.intl?.textLocalization},shouldEnforceDefaultChainOnConnect:er,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:N},solana:{connectors:t?.externalWallets?.solana?.connectors},disableAllExternalWallets:t?.externalWallets?.disableAllExternalWallets??!1},embeddedWallets:{requireUserOwnedRecoveryOnCreate:!en&&(e.embedded_wallet_config.require_user_owned_recovery_on_create??!1),userOwnedRecoveryOptions:en?["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??ei},solana:{createOnLogin:t?.embeddedWallets?.solana?.createOnLogin??ea},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"}}
2,mfa:{methods:e.mfa_methods??[],noPromptOnMfaRequired:t?.mfa?.noPromptOnMfaRequired??!1},passkeys:{shouldUnlinkOnUnenrollMfa:t?.passkeys?.shouldUnlinkOnUnenrollMfa,shouldUnenrollMfaOnUnlink:t?.passkeys?.shouldUnenrollMfaOnUnlink,registration:t?.passkeys?.registration},customAuth:en?{enabled:!0,...t.customAuth}:void 0,loginConfig:{telegramAuthConfiguration:eo,passkeysForSignupEnabled:e.passkeys_for_signup_enabled},headless:!!t?.headless,render:{standalone:t?._render?.standalone??V},fundingConfig:es,fundingMethodConfig:{...t?.fundingMethodConfig??q,moonpay:{...t?.fundingMethodConfig?.moonpay??q.moonpay,useSandbox:t?.fundingMethodConfig?.moonpay.useSandbox??q.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:el?.enabled?{enabled:el.enabled,smartWalletVersion:el.smart_wallet_version,smartWalletType:el.smart_wallet_type,configuredNetworks:el.configured_networks.map(e=>{let t,r;return{chainId:e.chain_id,bundlerUrl:e.bundler_url,paymasterUrl:e.paymaster_url,paymasterContext:(t=e.paymaster_url,r=e.paymaster_context,t&&$.test(t)?K:r&&r.policy_id?{policyId:r.policy_id}:void 0)}})}:{enabled:el?.enabled??!1},connectorsDebugLogs:t?.connectorsDebugLogs??!1}}let et={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},er=(0,a.createContext)({appConfig:ee(et,void 0,!1),isServerConfigLoaded:!1});e.s(["C",0,"privy:code_verifier","D",0,"deprecated","H",0,"privy:headless_oauth","I",0,"privy:id_token","M",0,"https://api.moonpay.com/v1","O",0,"privy:oauth_disable_signup","P",0,"privy:pat","R",0,"privy:refresh_token","S",0,"privy:state_code","V",0,"3.23.1","W",0,3e4,"a",0,"privy:token","b",0,e=>`privy:cross-app:${e}`,"c",0,"privy-session","d",0,"privy-token","e",0,"privy-refresh-token","f",0,"privy-id-token","g",0,e=>`privy:guest:${e}`,"h",0,"https://auth.privy.io","i",0,2e4,"j",0,"privy:caid","k",0,"privy:connections","l",0,()=>{let{isServerConfigLoaded:e}=(0,a.useContext)(er);return e},"m",0,({children:e,client:t,legacyClient:r,clientConfig:n,appClientId:o})=>{let[s,l]=(0,a.useState)(null),c=(0,a.useMemo)(()=>ee(s??et,n,!!s,"u">typeof window?window.location.origin:void 0,o),[s,n,o]);return(0,a.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}
2:void 0,coinbaseWallet:i.coinbaseWallet,solana:{connectors:i.solana?.connectors?.get().map(e=>e.walletClientType)}}:void 0}}(n),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(),i=`privy:sent:${s.id}:${t}`;localStorage.getItem(i)||(r.createAnalyticsEvent({eventName:"sdk_initialize",payload:e}),localStorage.setItem(i,"t"))},[n,s]),(0,a.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,i.jsx)(er.Provider,{value:{appConfig:c,isServerConfigLoaded:!!s},children:e})},"n",0,12e4,"o",0,e=>`privy:wallet:${e}`,"p",0,"0x1","q",0,1400,"r",0,2500,"s",0,1,"t",0,4e3,"u",0,()=>{let{appConfig:e}=(0,a.useContext)(er);return e},"v",0,"https://api.moonpay.com/v1","w",0,"pk_test_fqWjXZMSFwloh7orvJsRfjiUHXJqFzI","x",0,"pk_live_hirbpu0cVcLHrjktC9l7fbc9ctjv0SL"],188933)},485037,e=>{"use strict";var t=e.i(998268),r=e.i(843476),n=e.i(271645),i=e.i(188933),a=e.i(654107);function o(e){return"string"==typeof e&&/^custom:[a-zA-Z0-9_-]+$/i.test(e)}let s=e=>!!e.id&&"privy-v2"===e.recoveryMethod;function l(e){return e?new Date(1e3*e):null}function c(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?u(e).find(e=>0===e.walletIndex)??null:null,u=e=>e?p(e,"ethereum"):[],p=(e,t)=>e.linkedAccounts.filter(e=>"wallet"===e.type&&"privy"===e.walletClientType&&!e.imported&&e.chainType===t),h=e=>e?p(e,"solana"):[],m=e=>e?h(e).find(e=>0===e.walletIndex)??null:null;function f({src:e,...t}){return(0,r.jsx)("img",{src:e,...t,style:{display:"none"}})}let b=(0,n.createContext)({currentScreen:null,lastScreen:null,navigate:a.n,navigateBack:a.n,resetNavigation:a.n,setModalData:a.n,onUserCloseViaDialogOrKeybindRef:void 0}),g=(0,n.createContext)({ready:!1,authenticated:!1,user:null,walletConnectors:null,connectWallet:a.n,login:a.n,connectOrCreateWallet:a.n,linkEmail:a.n,linkPhone:a.n,linkFarcaster:a.n,linkWallet:a.n,linkGoogle:a.n,linkTwitter:a.n,linkTwitch:a.n,linkDiscord:a.n,linkGithub:a.n,linkSpotify:a.n,linkInstagram:a.n,linkTelegram:a.n,linkTiktok:a.n,linkLine:a.n,linkLinkedIn:a.n,linkApple:a.n,linkPasskey:a.n,linkOAuth:a.n,updateEmail:a.n,updatePhone:a.n,logout:a.n,getAccessToken:a.n,signMessage:a.n,signTypedData:a.n,enrollInMfa:a.n,initEnrollmentWithSms:a.n,initEnrollmentWithTotp:a.n,initEnrollmentWithPasskey:a.n,promptMfa:a.n,init:a.n,submitEnrollmentWithSms:a.n,submitEnrollmentWithTotp:a.n,submitEnrollmentWithPasskey:a.n,unenroll:a.n,submit:a.n,cancel:a.n,sendTransaction:a.n,signTransaction:a.n,setWalletPassword:a.n,setWalletRecovery:a.n,requestFarcasterSignerFromWarpcast:a.n,getFarcasterSignerPublicKey:a.n,signFarcasterMessage:a.n,isModalOpen:!1,mfaMethods:[]});e.s(["M",0,e=>{let t=(0,i.u)(),[a,o]=(0,n.useState)(e.initialScreen),s=(0,n.useRef)(null);(0,n.useEffect)(()=>{e.open||(s.current=null)},[e.open]),(0,n.useEffect)(()=>{s.current=null},[e.initialScreen]);let l={data:e.data,setModalData:e.setModalData,currentScreen:e.initialScreen,lastScreen:a,navigate:(t,r=!0)=>{e.setInitialScreen(t),r&&o(e.initialScreen)},navigateBack:()=>{e.setInitialScreen(a)},resetNavigation:()=>{e.setInitialScreen(null),o(null)},onUserCloseViaDialogOrKeybindRef:s};return(0,r.jsxs)(b.Provider,{value:l,children:[("string"==typeof t.appearance.logo||"img"===t.appearance.logo?.type)&&(0,r.jsx)(f,{src:"string"==typeof t.appearance.logo?t.appearance.logo:t.a
2ppearance.logo.props.src}),e.children]})},"P",0,g,"a",0,()=>(0,n.useContext)(b),"b",0,s,"c",0,function(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,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(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:l(r.first_verified_at),latestVerifiedAt:l(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:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(a);break;case"email":let s={address:r.address,type:r.type,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(s);break;case"phone":let c={number:r.phoneNumber,type:r.type,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(c);break;case"google_oauth":let d={subject:r.subject,email:r.email,name:r.name,type:r.type,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(d);break;case"spotify_oauth":let u={subject:r.subject,email:r.email,name:r.name,type:r.type,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(u);break;case"instagram_oauth":let p={subject:r.subject,username:r.username,type:r.type,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(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:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(h);break;case"discord_oauth":let m={subject:r.subject,username:r.username,email:r.email,type:r.type,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(m);break;case"github_oauth":let f={subject:r.subject,username:r.username,name:r.name,email:r.email,type:r.type,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(f);break;case"tiktok_oauth":let b={subject:r.subject,username:r.username,name:r.name,type:r.type,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(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:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(g);break;case"twitch_oauth":let w={subject:r.subject,username:r.username,type:r.type,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(w);break;case"linkedin_oauth":let y={subject:r.subject,name:r.name,email:r.email,vanityName:r.vanity_name,type:r.type,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(y);break;case"apple_oauth":let _={subject:r.subject,email:r.email,type:r.type,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(_);break;case"custom_auth":t.push({type:r.type,customUserId:r.custom_user_id,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(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:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at),signerPublicKey:r.signer_public_key};t.push(v);break;case"passkey":let E={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:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(E);break;case"telegram":let A={type:r.type,telegramUserId:r.telegram_user_id,firstName:r.first_name,lastName:r.last_name,username:r.username,photoUrl:r.photo_url,firstVerifiedAt:l(r.first_verified_at),latestVerifiedAt:l(r.latest_verified_at)};t.push(A);break;default:if(o(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:l(r.first_verified_at),latestVerifiedAt:l(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=c(t,"wallet"),n=c(t,"smart_wallet"),i=c(t,"email"),a=c(t,"phone"),s=c(t,"google_oauth"),d=c(t,"twitter_oauth"),u=c(t,"discord_oauth"),p=c(t,"github_oauth"),h=c(t,"spotify_oauth"),m=c(t,"instagram_oauth"),f=c(t,"tiktok_oauth"),b=c(t,"line_oauth"),g=c(t,"twitch_oauth"),w=c(t,"linkedin_oauth"),y=c(t,"apple_oauth"),_=c(t,"farcaster"),v=c(t,"telegram"),E=e.mfa_methods.map(({type:e,verified_at:t})=>({type:e,verifiedAt:l(t)}));return{id:e.id,createdAt:l(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
2coveryMethod,imported:r.imported,delegated:r.delegated,walletIndex:r.walletIndex,publicKey:r.publicKey},smartWallet:n&&{address:n.address,smartWalletType:n.smartWalletType,smartWalletVersion:n.smartWalletVersion},google:s&&{subject:s.subject,email:s.email,name:s.name},twitter:d&&{subject:d.subject,username:d.username,name:d.name,profilePictureUrl:d.profilePictureUrl},discord:u&&{subject:u.subject,username:u.username,email:u.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:m&&{subject:m.subject,username:m.username},tiktok:f&&{subject:f.subject,username:f.username,name:f.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:y&&{subject:y.subject,email:y.email},farcaster:_&&{fid:_.fid,ownerAddress:_.ownerAddress,displayName:_.displayName,username:_.username,bio:_.bio,pfp:_.pfp,url:_.url,signerPublicKey:_.signerPublicKey},telegram:v&&{telegramUserId:v.telegramUserId,firstName:v.firstName,lastName:v.lastName,username:v.username,photoUrl:v.photoUrl},delegatedWallets:[],mfaMethods:E.map(e=>e.type),hasAcceptedTerms:e.has_accepted_terms??!1,isGuest:e.is_guest,customMetadata:e.custom_metadata}},"d",0,d,"e",0,e=>(e?.linkedAccounts??[]).filter(e=>"wallet"===e.type&&"privy"===e.walletClientType&&e.imported&&"ethereum"===e.chainType),"f",0,m,"g",0,e=>{let t=d(e),r=m(e);return t&&r&&!s(r)&&s(t)?r:d(e)??m(e)},"h",0,e=>(e?.linkedAccounts??[]).filter(e=>"wallet"===e.type&&e.imported&&"privy"===e.walletClientType&&"solana"===e.chainType),"i",0,o,"j",0,(e,r)=>e?.linkedAccounts.find(e=>"wallet"===e.type&&"privy"===e.walletClientType&&(0,t.areAddressesEqual)(e.address,r))||null,"k",0,(e,r)=>e.find(e=>(0,t.areAddressesEqual)(e.address,r))||null,"m",0,h,"u",0,()=>(0,n.useContext)(g)])},980585,e=>{"use strict";var t=e.i(309682),r=e.i(110163),n=e.i(654107),i=e.i(271645),a=e.i(803959),o=e.i(485037);let s=(e,t,r)=>{let i,a=e.id,o=Number(e.id);if(e.rpcUrls.privyWalletOverride&&e.rpcUrls.privyWalletOverride.http[0])i=e.rpcUrls.privyWalletOverride.http[0];else if(t.rpcUrls&&t.rpcUrls[o])i=t.rpcUrls[o];else if(e.rpcUrls.privy?.http[0]){let t=new URL(e.rpcUrls.privy.http[0]);t.searchParams.append("privyAppId",r),i=t.toString()}else i=e.rpcUrls.public?.http[0]?e.rpcUrls.public.http[0]:e.rpcUrls.default?.http[0];if(!i)throw new n.P(`No RPC url found for ${a}`);return i},l=(0,a.create)(()=>({user:null,authenticated:!1,hasResolvedInitialUser:!1})),c=(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))??[],d=(0,a.create)(()=>({ethereumExternal:[],areExternalConnectorsReady:!1,ethereumEmbedded:[]})),u=(0,i.createContext)(!1),p=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
2ifier"};throw Error("Failed to get account entropy details")};e.s(["P",0,u,"a",0,e=>l.setState({authenticated:e}),"b",0,function(){let e=(0,i.useContext)(u),t=(0,n.u)(),r=d(e=>e.ethereumEmbedded),a=d(e=>e.ethereumExternal),o=d(e=>e.areExternalConnectorsReady),s=l(e=>e.user),p=l(e=>e.hasResolvedInitialUser),h=(0,i.useMemo)(()=>[...r,...a].sort((e,t)=>t.connectedAt-e.connectedAt),[r,a]),m=c(s,{chainType:"ethereum"}).length>0,f=r.length>0,b=!!o&&!!p&&!!t.walletProxy&&(!m||f);return e?(0,i.useMemo)(()=>({wallets:h,ready:b}),[h,b]):(console.warn("`useWallets` was called outside the PrivyProvider component"),{wallets:[],ready:!1})},"c",0,d,"d",0,(e,t)=>{if(t?.imported)return p(t);let r=(0,o.g)(e);if(!r)throw Error("Failed to find primary wallet");return p(r)},"e",0,e=>d.setState({areExternalConnectorsReady:e}),"f",0,e=>l.setState({hasResolvedInitialUser:e}),"g",0,(e,i,a,o)=>{let l=Number(e),c=i.find(e=>e.id===l);if(!c)throw new n.P(`Unsupported chainId ${e}`,4901);return(0,t.createPublicClient)({transport:(0,r.http)(s(c,a,o.appId)),chain:c})},"h",0,()=>{if((0,i.useContext)(u))throw new n.b("Multiple PrivyProvider instances found","Found multiple instances of PrivyProvider, ensure there is only one mounted in your application tree.")},"i",0,s,"j",0,c,"s",0,e=>l.setState({user:e}),"t",0,p,"u",0,l])},180635,e=>{"use strict";var t;let r=["error","invalid_request_arguments","wallet_not_on_device","invalid_recovery_pin","insufficient_funds","mfa_timeout","missing_or_invalid_mfa","mfa_verification_max_attempts_reached"];(t={}).MISSING_OR_INVALID_PRIVY_APP_ID="missing_or_invalid_privy_app_id",t.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID="missing_or_invalid_privy_account_id",t.INVALID_DATA="invalid_data",t.LINKED_TO_ANOTHER_USER="linked_to_another_user",t.ALLOWLIST_REJECTED="allowlist_rejected",t.OAUTH_USER_DENIED="oauth_user_denied",t.UNKNOWN_AUTH_ERROR="unknown_auth_error",t.USER_EXITED_AUTH_FLOW="exited_auth_flow",t.MUST_BE_AUTHENTICATED="must_be_authenticated",t.UNKNOWN_CONNECT_WALLET_ERROR="unknown_connect_wallet_error",t.GENERIC_CONNECT_WALLET_ERROR="generic_connect_wallet_error",t.CLIENT_REQUEST_TIMEOUT="client_request_timeout",t.INVALID_CREDENTIALS="invalid_credentials";class n 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}}e.s(["EmbeddedProviderError",0,class extends Error{constructor(e,t,r){super(e),this.code=t,this.data=r}},"PrivyConnectorError",0,class extends n{constructor(e,t,r){super(e,t,r),this.type="connector_error"}},"PrivyIframeError",0,class extends Error{constructor(e,t){super(t),this.type=e}},"ProviderErrors",0,{UNKNOWN_ERROR:{eipCode:0,message:"Unknown error",detail:"Unknown error",retryable:!0},E4001_DEFAULT_USER_REJECTED_REQUEST:{eipCode:4001,message:"User Rejected Request",detail:"The user rejected the request.",default:!0,retryable:!0},E4100_DEFAULT_UNAUTHORIZED:{eipCode:4100,message:"Unauthorized",detail:"The requested method and/or account has not been authorized by the user.",default:!0,retryable:!1},E4200_DEFAULT_UNSUPPORTED_METHOD:{eipCode:4200,message:"Unsupported Method",detail:"The Provider does not support the requested method.",default:!0,retryable:!1},E4900_DEFAULT_DISCONNECTED:{eipCode:4900,message:"Disconnected",detail:"The Provider is disconnected from all chains.",default:!0,retryable:!0},E4901_DEFAULT_CHAIN_DISCONNECTED:{eipCode:4901,message:"Chain Disconnected",detail:"The Provider is not connected to the requested chain.",default:!0,retryable:!0},E32700_DEFAULT_PARSE_ERROR:{eipCode:-32700,message:"Parse error",detail:"Invalid JSON",default:!0,retryable:!1},E32600_DEFAULT_INVALID_REQUEST:{eipCode:-32600,message:"Invalid request",detail:"JSON is not a valid request object",default:!0,retryable:!1},E32601_DEFAULT_METHOD_NOT_FOUND:{eipCode:-32601,message:"Method not found",detail:"Method does not exist",default:!0,retryable:!1},E32602_DEFAULT_INVALID_PARAMS:{eipCode:-32602,message:"Invalid params",detail:"Invalid method parameters",default:!0,retryable:!1},E32603_DEFAULT_INTERNAL_ERROR:{eipCode:-32603,message:"Internal error",detail:"Internal JSON-RPC error",default:!0,retryable:!0},E32000_DEFAULT_INVALID_INPUT:{eipCode:-32e3,message:"Invalid input",detail:"Missing or invalid parameters",default:!0,retryable:!1},E32001_DEFAULT_RESOURCE_NOT_FOUND:{eipCode:-32001,message:"Resource not found",detail
2:"Requested resource not found",default:!0,retryable:!1},E32002_DEFAULT_RESOURCE_UNAVAILABLE:{eipCode:-32002,message:"Resource unavailable",detail:"Requested resource not available",default:!0,retryable:!0},E32003_DEFAULT_TRANSACTION_REJECTED:{eipCode:-32003,message:"Transaction rejected",detail:"Transaction creation failed",default:!0,retryable:!0},E32004_DEFAULT_METHOD_NOT_SUPPORTED:{eipCode:-32004,message:"Method not supported",detail:"Method is not implemented",default:!0,retryable:!1},E32005_DEFAULT_LIMIT_EXCEEDED:{eipCode:-32005,message:"Limit exceeded",detail:"Request exceeds defined limit",default:!0,retryable:!1},E32006_DEFAULT_JSON_RPC_VERSION_NOT_SUPPORTED:{eipCode:-32006,message:"JSON-RPC version not supported",detail:"Version of JSON-RPC protocol is not supported",default:!0,retryable:!1},E32002_CONNECTION_ALREADY_PENDING:{eipCode:-32002,message:"Connection request already pending",detail:"Don’t see your wallet? Check your other browser windows.",retryable:!1},E32002_REQUEST_ALREADY_PENDING:{eipCode:-32002,message:"Resource request already pending",detail:"Don’t see your wallet? Check your other browser windows.",retryable:!1},E32002_WALLET_LOCKED:{eipCode:-32002,message:"Wallet might be locked",detail:"Don’t see your wallet? Check your other browser windows.",retryable:!1},E4001_USER_REJECTED_REQUEST:{eipCode:4001,message:"Signature rejected",detail:"Please try signing again.",retryable:!0}},"errorIndicatesRecoveryIsNeeded",0,function(e){let t;return"string"==typeof(t=e.type)&&r.includes(t)&&"wallet_not_on_device"===e.type}],180635)},442690,e=>{"use strict";function t(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var r=0;function n(e){return"__private_"+r+++"_"+e}var i=n("_wallet"),a=n("_account");e.s(["ConnectedStandardSolanaWallet",0,class{get standardWallet(){return t(this,i)[i]}get address(){return t(this,a)[a].address}async disconnect(){if(!t(this,i)[i].features["standard:disconnect"]?.disconnect)throw Error("Wallet does not support disconnect");await t(this,i)[i].features["standard:disconnect"].disconnect()}async signMessage(...e){if(!t(this,i)[i].features["solana:signMessage"]?.signMessage)throw Error("Wallet does not support signMessage");let r=await t(this,i)[i].features["solana:signMessage"].signMessage(...e.map(e=>({...e,account:t(this,a)[a]})));return 1===e.length?r[0]:[...r]}async signTransaction(...e){if(!t(this,i)[i].features["solana:signTransaction"]?.signTransaction)throw Error("Wallet does not support signTransaction");let r=await t(this,i)[i].features["solana:signTransaction"].signTransaction(...e.map(e=>({...e,account:t(this,a)[a]})));return 1===e.length?r[0]:[...r]}async signAndSendTransaction(...e){if(!t(this,i)[i].features["solana:signAndSendTransaction"]?.signAndSendTransaction)throw Error("Wallet does not support signAndSendTransaction");let r=await t(this,i)[i].features["solana:signAndSendTransaction"].signAndSendTransaction(...e.map(e=>({...e,account:t(this,a)[a]})));return 1===e.length?r[0]:[...r]}async signAndSendAllTransactions(e){if(!t(this,i)[i].features["solana:signAndSendTransaction"]?.signAndSendTransaction)throw Error("Wallet does not support signAndSendTransaction");return[...await t(this,i)[i].features["solana:signAndSendTransaction"].signAndSendTransaction(...e.map(e=>({...e,account:t(this,a)[a]})))]}constructor({wallet:e,account:r}){Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),t(this,i)[i]=e,t(this,a)[a]=r}}])},673049,e=>{"use strict";e.s(["monadMainnet",0,{id:143,name:"Monad",network:"monad",nativeCurrency:{name:"Monad",symbol:"MON",decimals:18},rpcUrls:{privy:{http:["https://monad-mainnet.rpc.privy.systems"]},default:{http:["https://rpc.monad.xyz"]},public:{http:["https://rpc.monad.xyz"]}},blockExplorers:{default:{name:"Monadscan",url:"https://mainnet-beta.monvision.io"}}}])},793466,e=>{"use strict";var t=e.i(654107),r=e.i(980585),n=e.i(180635),i=e.i(442690),a=e.i(673049),o=e.i(435528),s=e.i(331191),l=e.i(47258),c=e.i(853317),d=e.i(975477),u=e.i(83319),p=e.i(301325),h=e.i(744645),m=e.i(141628),f=e.i(707213),b=e.i(554952),g=e.i(991120),w=e.i(595932),y=e.i(188933),_=e.i(843476),v=e.i(271645),E=e.i(796516),A=e.i(485037);let C=e=>e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isClover?"Clover":e.isCoin98?"Coin98 Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isDesig?"Desig Wallet":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFordefi?"Fordefi":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOneKey?"OneKey Wallet":e.isOpera?"Opera":e.isPhantom||"isPhantom"in e?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isSafePal?"SafePal Wallet":e.isStatus?"Status":e.isSubWallet?"SubWallet":e.isTalisman?"Talisman":e.isTally||e.isTaho?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZeal?"Zeal":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0,k=(e,t)=>{if(!e.isMetaMask)return!1;if(e.isMetaMask&&!t)return!0;
2if(e.isBraveWallet&&!e._events&&!e._state||"MetaMask"!==C(e))return!1;if(e.providers){for(let t of e.providers)if(!k(t))return!1}return!0},S=(e,t=3,r=4,n="ethereum")=>{if(!e)return"";let i=2*("ethereum"===n);return t+r+i+3>=e.length?e:`${e.slice(0,i+t)}...${e.slice(e.length-r,e.length)}`},x=e=>new Promise(t=>setTimeout(t,e));async function T({store:e,walletList:t,externalWalletConfig:r,walletChainType:n,timeout:i=3e3}){let a=!1,o=window;return new Promise(s=>{function l(){if(a)return;a=!0,window.removeEventListener("ethereum#initialized",l);let i=e.getProviders();console.debug("Detected injected providers:",i.map(e=>e.info));let o=[];for(let e of i)t.includes("coinbase_wallet")&&"com.coinbase.wallet"===e.info.rdns||"solana-only"===n&&"app.phantom"===e.info.rdns||o.push({type:e.info.name.toLowerCase().replace(/\s/g,"_"),eip6963InjectedProvider:e});if("solana-only"!==n)for(let e of function(){let e=window,t=e.ethereum;if(!t)return[];let r=[];if(t.providers?.length)for(let e of t.providers)e&&r.push(e);return r.push(e.ethereum),r}()){let t=C(e);if(!i.some(e=>e.info.name===t)){if(k(e,!0)&&!o.find(e=>"metamask"===e.type)){o.push({type:"metamask",legacyInjectedProvider:e});continue}if("Phantom"===t&&!o.find(e=>"phantom"===e.type)){o.push({type:"phantom",legacyInjectedProvider:e});continue}if("Coinbase Wallet"===t&&!o.find(e=>"coinbase_wallet"===e.type&&"smartWalletOnly"!==r.coinbaseWallet?.config?.preference?.options)){o.push({type:"coinbase_wallet",legacyInjectedProvider:e});continue}o.find(e=>"unknown_browser_extension"===e.type)||o.push({type:"unknown_browser_extension",legacyInjectedProvider:e})}}s(o)}o.ethereum?l():(window.addEventListener("ethereum#initialized",l,{once:!0}),setTimeout(()=>{l()},i))})}let O="[Privy:Connectors]";function M(e){if(!e||0===Object.keys(e).length)return"";let t=Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${e}=${String(t)}`);return t.length>0?` (${t.join(", ")})`:""}let F=new class{setEnabled(e){this._enabled=e,e&&this.info("Debug logging enabled")}get enabled(){return this._enabled}debug(e,t){this._enabled&&console.debug(`${O} ${e}${M(t)}`)}info(e,t){this._enabled&&console.info(`${O} ${e}${M(t)}`)}warn(e,t){this._enabled&&console.warn(`${O} ${e}${M(t)}`)}error(e,t,r){if(!this._enabled)return;let n=t instanceof Error?t.message:t?String(t):void 0,i=n?{...r,error:n}:r;console.error(`${O} ${e}${M(i)}`)}connectionStart(e,t,r){this.info("Connection attempt started",{wallet:e,method:t,...r})}connectionSuccess(e,t){this.info("Connection successful",{wallet:e,...t})}connectionFailed(e,t,r){this.error("Connection failed",t,{wallet:e,...r})}connectorInit(e,t,r){this.debug("Connector initialized",{connector:e,wallet:t,...r})}connectorCreated(e,t,r){this.debug("Connector created",{connector:e,wallet:t,...r})}providerEvent(e,t,r){this.debug(`Provider event: ${e}`,{wallet:t,...r})}rpcRequest(e,t,r){this.debug(`RPC request: ${e}`,{wallet:t,...r})}rpcResponse(e,t,r){this.debug(`RPC response: ${e}`,{wallet:t,...r})}constructor(){this._enabled=!1}};class I extends t.P{constructor(){super("Wallet timeout"),this.type="wallet_error",F.warn("Wallet request timed out")}}let D=e=>{if(e instanceof t.P)return F.debug("Connector error (already formatted)",{error:e.message}),e;if(e?.code){let t=new U(e);return F.debug("Provider RPC error",{code:t.code,error:t.message}),t}let r=e instanceof Error?e.message:String(e);return F.debug("Unknown connector error",{error:r}),new t.P("Unknown connector error",e)};class W extends t.g{constructor(e,t,r){super(e),this.type="provider_error",this.code=t,this.data=r}}class U extends W{constructor(e){super(e.message,e.code,e.data);let t=Object.values(n.ProviderErrors).find(t=>t.eipCode===e.code);this.details=t||n.ProviderErrors.UNKNOWN_ERROR,-32002===e.code&&(e.message?.includes("already pending for origin")?e.message?.includes("wallet_requestPermissions")?this.details=n.ProviderErrors.E32002_CONNECTION_ALREADY_PENDING:this.details=n.ProviderErrors.E32002_REQUEST_ALREADY_PENDING:e.message?.includes("Already processing")&&e.message.includes("eth_requestAccounts")&&(this.details=n.ProviderErrors.E32002_WALLET_LOCKED))}}
2let P={ERROR_USER_EXISTS:{message:"User already exists for this address",detail:"Try another address!",retryable:!1},ERROR_TIMED_OUT:{message:"Wallet request timed out",detail:"Please try connecting again.",retryable:!0},ERROR_WALLET_CONNECTION:{message:"Could not log in with wallet",detail:"Please try connecting again.",retryable:!0},ERROR_USER_LIMIT_REACHED:{message:"Unable to link",detail:"You've reached the maximum number of linked wallets.",retryable:!1},...n.ProviderErrors};class N{get(e){let t=localStorage.getItem(e);return null===t?void 0:JSON.parse(t)}put(e,t){void 0!==t?localStorage.setItem(e,JSON.stringify(t)):this.del(e)}del(e){localStorage.removeItem(e)}getKeys(){return Object.entries(localStorage).map(([e])=>e)}}var R="u">typeof window&&window.localStorage?new N:new class{get(e){return this._cache[e]}put(e,t){void 0!==t?this._cache[e]=t:this.del(e)}del(e){delete this._cache[e]}getKeys(){return Object.keys(this._cache)}constructor(){this._cache={}}};class L extends w.default{constructor(e){super(),this.walletClientType=e,this.connected=!1,this.initialized=!1}}let j=()=>{let e=R.get(y.k);return e&&Array.isArray(e)&&e.map(e=>e&&"string"==typeof e.address&&"string"==typeof e.connectorType&&"string"==typeof e.walletClientType&&"number"==typeof e.connectedAt).every(Boolean)?e:[]},B=["phantom","metamask","glow","solflare","backpack","okx_wallet","walletconnect","mobile_wallet_adapter","jupiter"];function H(e){return e.toLowerCase().split(" ").join("_")}function V(e){return"isWalletConnectSolana"in e&&e.isWalletConnectSolana}function q(e){return["ethereum","solana"].includes(e.chainType)}function z(e){let t=e.replace("eip155:","");if(t)return parseInt(t);throw Error("Chain ID not compatible with CAIP-2 format.")}let G=e=>e.filter(e=>"wallets"===e.method||("exchange"===e.method?"coinbase"===e.provider:"card"===e.method||"payment-request"===e.method?"coinbase"===e.provider||"moonpay"===e.provider:(e.method,!1))),Y={[g.mainnet.id]:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",[b.sepolia.id]:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",[f.optimism.id]:"0x0b2c639c533813f4aa9d7837caf62653d097ff85",[m.optimismSepolia.id]:"0x5fd84259d66Cd46123540766Be93DFE6D43130D7",[h.polygon.id]:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",[p.polygonAmoy.id]:"0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582",[u.base.id]:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",[d.baseSepolia.id]:"0x036CbD53842c5426634e7929541eC2318f3dCF7e",[c.avalanche.id]:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",[l.avalancheFuji.id]:"0x5425890298aed601595a70ab815c96711a31bc65",[s.arbitrum.id]:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",[o.arbitrumSepolia.id]:"0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",999:"0xb88339CB7199b77E23DB6E890353E22632Ba630f",[a.monadMainnet.id]:"0x754704Bc059F8C67012fEd69BC8A327a5aafb603"};e.s(["A",0,(e,t)=>{let r=[],n=[];for(let[i,a]of e.entries())i<t?r.push(a):n.push(a);return[r,n]},"B",0,({style:e,...t})=>{let r=(0,y.u)();return(0,_.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:"28px",width:"28px",...e},...t,children:[(0,_.jsx)("rect",{width:"28",height:"28",rx:"3",fill:"dark"===r?.appearance.palette.colorScheme?"#3396ff":"#141414"}),(0,_.jsx)("g",{clipPath:"url(#clip0_1765_9946)",children:(0,_.jsx)("path",{d:"M8.09448 10.3941C11.3558 7.20196 16.6442 7.20196 19.9055 10.3941L20.2982 10.7782C20.3369 10.8157 20.3677 10.8606 20.3887 10.9102C20.4097 10.9599 20.4206 11.0132 20.4206 11.0671C20.4206 11.121 20.4097 11.1744 20.3887 11.224C20.3677 11.2737 20.3369 11.3186 20.2982 11.3561L18.9554 12.6702C18.9158 12.7086 18.8628 12.7301 18.8077 12.7301C18.7526 12.7301 18.6996 12.7086 18.66 12.6702L18.1198 12.1415C15.8448 9.91503 12.1557 9.91503 9.88015 12.1415L9.30167 12.7075C9.26207 12.7459 9.20909 12.7673 9.15395 12.7673C9.0988 12.7673 9.04582 12.7459 9.00622 12.7075L7.66346 11.3934C7.62475 11.3559 7.59397 11.3109 7.57295 11.2613C7.55193 11.2117 7.5411 11.1583 7.5411 11.1044C7.5411 11.0505 7.55193 10.9971 7.57295 10.9475C7.59397 10.8979 7.62475 10.8529 7.66346 10.8154L8.09448 10.3941ZM22.6829 13.1115L23.8776 14.2814C23.9163 14.319 23.9471 14.3639 23.9681 14.4135C23.9892 14.4632 24 14.5165 24 14.5704C24 14.6243 23.9892 14.6777 23.9681 14.7273C23.9471 14.777 23.9163 14.8219 23.8776 14.8594L18.4893 20.1332C18.4102 20.2101 18.3042 20.2531 18.1938 20.2531C18.0835 20.2531 17.9775 20.2101 17.8984 20.1332L14.0743 16.3901C14.0545 16.3708 14.0279 16.36 14.0003 16.36C13.9726 16.36 13.9461 16.3708 13.9263 16.3901L10.1021 20.1332C10.023 20.2101 9.91703 20.2531 9.8067 20.2531C9.69636 20.2531 9.59038 20.2101 9.51124 20.1332L4.12236 14.8594C4.08365 14.8219 4.05287 14.777 4.03185 14.7273C4.01083 14.6777 4 14.6243 4 14.5704C4 14.5165 4.01083 14.4632 4.03185 14.4135C4.05287 14.3
2639 4.08365 14.319 4.12236 14.2814L5.31767 13.1115C5.39678 13.0348 5.50265 12.9919 5.61285 12.9919C5.72305 12.9919 5.82892 13.0348 5.90803 13.1115L9.73216 16.8546C9.75194 16.874 9.7785 16.8848 9.80616 16.8848C9.83381 16.8848 9.86037 16.874 9.88015 16.8546L13.7043 13.1115C13.7834 13.0346 13.8894 12.9916 13.9997 12.9916C14.1101 12.9916 14.216 13.0346 14.2952 13.1115L18.1198 16.8546C18.1396 16.874 18.1662 16.8848 18.1938 16.8848C18.2215 16.8848 18.2481 16.874 18.2678 16.8546L22.092 13.1115C22.1711 13.0346 22.2771 12.9916 22.3874 12.9916C22.4977 12.9916 22.6037 13.0346 22.6829 13.1115Z",fill:"white"})}),(0,_.jsx)("defs",{children:(0,_.jsx)("clipPath",{id:"clip0_1765_9946",children:(0,_.jsx)("rect",{width:"20",height:"12.2531",fill:"white",transform:"translate(4 8)"})})})]})},"C",0,P,"D",0,e=>!!String(e).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),"E",0,(e,t)=>{let r=e.slice(0),n=[];for(;r.length;)n.push(r.splice(0,t));return n},"F",0,function(e,{min:t,max:r}){return Math.min(Math.max(e,t),r)},"G",0,(e,r)=>{let n=Number(e),i=r.find(e=>e.id===n);if(!i)throw new t.P(`Unsupported chainId ${e}`,4901);return i.blockExplorers?.default.url},"H",0,W,"I",0,H,"J",0,(e,t=3,r=4)=>S(e,t,r,"solana"),"P",0,U,"S",0,class extends L{get isInstalled(){return!0}get wallet(){return this._wallet}buildConnectedWallet(){return this._wallet.accounts.map(e=>({type:"solana",provider:new i.ConnectedStandardSolanaWallet({wallet:this._wallet,account:e}),address:e.address,connectedAt:Date.now(),walletClientType:this._wallet.name,connectorType:this.connectorType,imported:!1,meta:{name:this._wallet.name,id:this._wallet.name,icon:this._wallet.icon},isConnected:async()=>this._wallet.accounts.length>0,disconnect:async()=>{await this.disconnect()}}))}async syncAccounts(){this.wallets=this.buildConnectedWallet(),this.emit("walletsUpdated")}get walletBranding(){return{id:V(this.wallet)?"walletconnect_solana":this.wallet.name,name:this.wallet.name,icon:this.wallet.icon}}async initialize(){F.debug("Initializing Solana connector",{wallet:this.walletClientType}),this.subscribeListeners(),await this.syncAccounts(),this.shouldAttemptAutoConnect()&&(F.debug("Attempting Solana auto-connect",{wallet:this.walletClientType}),await this.wallet.features["standard:connect"]?.connect({silent:!0}).catch(()=>{}),await this.isConnected()&&(F.debug("Solana auto-connect successful",{wallet:this.walletClientType}),await this.syncAccounts())),this.initialized=!0,this.emit("initialized")}async connect(e){if(F.connectionStart(this.walletClientType,"solana_adapter",{showPrompt:e.showPrompt}),e.showPrompt)try{await this.promptConnection()}catch(e){if(0===this._wallet.accounts.length)throw F.warn("Solana wallet connected but has no accounts",{wallet:this.walletClientType}),new t.j;throw F.connectionFailed(this.walletClientType,e,{method:"solana_adapter"}),e}if(!await this.isConnected())throw F.warn("Solana wallet not connected after prompt",{wallet:this.walletClientType}),new t.j;await this.syncAccounts();let r=await this.getConnectedWallet();return r&&F.connectionSuccess(this.walletClientType),r}async getConnectedWallet(){return this.wallets.sort((e,t)=>t.connectedAt-e.connectedAt)[0]||null}async isConnected(){return this._wallet.accounts.length>0}subscribeListeners(){this._unsubscribeListeners=this.wallet.features["standard:events"]?.on("change",this.onChange)}unsubscribeListeners(){this._unsubscribeListeners?.()}shouldAttemptAutoConnect(){return!(!this.autoConnectEnabled||!B.includes(this.walletClientType))&&("phantom"!==this.walletClientType&&"metamask"!==this.walletClientType.toLowerCase()||j().some(({walletClientType:e})=>"phantom"===e||"metamask"===e.toLowerCase()))}constructor(e,t){super(H(V(e)?"walletconnect_solana":e.name)),this.chainType="solana",this.connectorType="solana_adapter",this.disconnect=async()=>{F.debug("Disconnecting Solana wallet",{wallet:this.walletClientType}),await this.wallet.features["standard:disconnect"]?.disconnect().catch(e=>{F.error("Error disconnecting Solana wallet",e,{wallet:this.walletClientType})}),await this.syncAccounts()},this.promptConnection=async()=>{F.debug("Prompting Solana connection",{wallet:this.walletClientType});try{await this.wallet.features["standard:connect"]?.connect()}catch(e){throw F.connectionFailed(this.walletClientType,e,{method:"solana_adapter"}),D(e)}},this.onChange=()=>{this.syncAccounts()},this._wallet=e,this.autoConnectEnabled=t,this.wallets=[]}},"W",0,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAHdElNRQfoDAIVODUC+w+GAAAGsUlEQVRYw6WXbYwWVxXHf+fOLAtCXYS2QJdIaClipGCTknXXNqBQMVHbfmhItH4Aral+IAEaG03UxJgYKQJGTUxtDWjaxDSNtcZqIGDwpRuW1oYiVqpdpZSlpC3qysu+PHPP3w/3mXnmeXZbPzjJZO7cefn/z/mfe865xlscq3dGDIguGiHLaMQVLja4s87FShcLo5jtApdddnHexUmHIy475JmdUkPRAQMu7gzT4ljnxJpdk0QPmMFkyAKN2OfOFpc2uuh1J3MZDrjAvXmVEQUuoosRxw642FcEG7IoDxiFxNiu8NYE+vcUYIFYRKKs113bXWx2Z34CoQZsVHOiCZ7mopdzdsFhv8NexEgRDHMxUSNREbh1bwNZwBsFblmfu/a4a6AEENYO5i3AOoEWeEUCF4MOOxBDMQAOk99OJALA2u80sBCwWGBZWG/yRwMaCAbBIAsQTJT3gea1OWfNeaPzvjoHEI85rA8ObtB1v7cIdJkIHgkh9AXpocy0LJjIKvB2wPpZB0v3wkrw5jdNEjeYeMhFX3BAyfn2ke9NUrgB9LrrcZcGJFCld4fWNddXbvbWfWzGR6xJFZsBGh0cBh3bBIxIEGTQ3W0h4NuDaSAzyAxCmGq11Vzf5uaa1aG8p+WFtrEYQGwvjICJkAEqvC+YNmcmMlMNvEaCdrcbyUvQAWDTjVuESHObM6cPGWHmzDwLaEtmzG9Z3qF1zUpXmuuZBb1z4bqeNC6f0WE1NtUTwHzEloiy3BvFisy0sYoLlQtT6XW15md2Qf9SY+2Ngfdca/TMSm/9ewz+/Boc/It45h/i4kSTsKw90SQJsPTvjSZbkWemDW7qTRZ0JEYJWSKxZJ7xmf6M224MzMzbX1s8F1YugjtvMg6eErt/4/z1jUrz1rXUKxnZC2zIg2mdBTK1mFUOKC1fOt/48kdz
2VixIz86Nij+eEacvpJWyZJ5xy7th8VzjjpuMJfMCW58QL73ekXPVlhsyE+vyzFiplJyauEIyrGIquruMq7qTxk+dcB495rzyTzFepCUWLIFv/kBg081Gd55WUk1IDGFTS89K++TDYxddzKnWcbluHd450xgdh7EGrOo1rr868PMTzqWJRGZ2d8oB/xpL33Xnxl2rjeNn4blXRXduzJ4B5y+28kWscAwXl+yeR654FFZPHoUb710YuPeDOUdPO48di1xptKpeEeHqOcYXNwQKGd88EDk3mqxtxPSfGRlsXRtYt8z4ytPOH/7eqpg1Aso7fYKgK4NPrMpYvsC4/poMA34yVJIQC3sCD9yecdsNyaV5yPj6ryJnR1PAvSNP4J+/1cgDfLbfePaMGGtM7Qdyl12WmKOmXgKKAp54vmBRTxfLrjE+tSYjBPjRM5FrrzIeuD2jf2lLzw8vN4JlfPVp581LsO1DgXv7jSzAiXPw/d+JiYLpjsu26Yfjf5O0rF5WoxsNT9G/bX0XKxakmPjlSee6HlizJJXSX7/oRDc+vjKR+f2wODcKd78/gR8/C9uedF44myJxmhh4OY/ipMQyqaWxmjn95TfEroMFOzbkvG+RceeqViPx1Aln1yEnOow1AnffHCpJAJ5/Vex4UvzptZRdY/O/1dJIS/NkcNmR6MTYah6qzseA4TfFtw4UvHBW1bc/O+7sPhwZHYf/jMODh5yfPudVbXj2TAJ/8XxrOZagNamj4Ei2/GNfuyRxh8t6BG2l15up+MIVODEiFr8rcPS0+O6RBF6mrrEGHHtFzOo2Lo7Dl37hvPQ6mNV6R9JYKgnYWcE37K5HlE2OT/5A0udaPUBHH+BQOMzuNsYLuDyZflTW+fTcmJFDHhJhaZqewMuewXDxcDR9IYyPN6Jj+6K4MF2vV8qBtZJScqVRNi6lpGONVJis5mpKi1WbgwsY+zIsBpcR8mzIZfuTRVZrtdu9odrptR/Xx5XONXJqBmCN0P6YMUQq9WJiwt0Je102WHdbpxSqydMObBWYdwDWLVcqcIMYe3NPjg0Ht84od0Ajju1w2XCr9e6QoqM9V23ZtnmI6cfAMMb9AY0YEHdb6oobEh4y3H3Ize6LsmGvN5IdUnhttdQ9UVrfLk/ljWEZ9wXsqAdQk1EA+O22GcgdZTke/bAs3OPY4HSdcB20HhvVtTMu0jmI8ekAhz2IICj2hKpNqI60NcuIRUHEej1quzubXa2tmZhenrfZmv3YYQ9ipDAIgvHptmblccuDjdRcmjFpWbDi/9ycZjZkRbk5jYztai/AUwiUx+qdEQB/m+25i9lxyvbcjrg45Lmd0uT/3p7/Fw6ODf+WO019AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDI0LTEyLTAyVDIxOjU2OjQ4KzAwOjAwMVpslgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyNC0xMi0wMlQyMTo1Njo0OCswMDowMEAH1CoAAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjQtMTItMDJUMjE6NTY6NTMrMDA6MDDZv6GRAAAAAElFTkSuQmCC","a",0,R,"b",0,q,"c",0,F,"d",0,T,"e",0,function(){try{let e="privy:__session_storage__test",t=new N;return t.put(e,"blobby"),t.del(e),!0}catch(e){return!1}},"f",0,D,"g",0,(e,n,i,a)=>{let o=Number(e),s=n.find(e=>e.id===o);if(!s)throw new t.P(`Unsupported chainId ${e}`,4901);return(0,r.i)(s,i,a)},"h",0,G,"i",0,(e,t={})=>{let r=t.delayMs||150,n=t.maxAttempts||270;return new Promise(async(i,a)=>{let o=!1,s=0;for(;!o&&s<n;){if(t.abortSignal?.aborted)return;e().then(e=>{o=!0,i(e)},(...e)=>{o=!0,a(...e)}),s+=1,await x(r)}o||a(Error("Exceeded max attempts before resolving function"))})},"j",0,e=>{let t={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},r=e.types.EIP712Domain??Object.entries(e.domain).map(([e,r])=>{if(null!=r&&"string"==typeof e&&e in t)return{name:e,type:t[e]}}).filter(e=>void 0!==e);return{...e,types:{...e.types,EIP712Domain:r}}},"k",0,({address:e,appConfig:r,fundWalletConfig:n,methodScreen:i,chainIdOverride:a,comingFromSendTransactionScreen:o=!1,onComplete:s,onError:l})=>{let c,d;if(!r.fundingConfig)throw Error("Wallet funding is not enabled");let u=G(r.fundingConfig.options);if(u.length<1)throw Error("Wallet funding is not enabled");c=a||(n?.chain?n.chain.id:z(r.fundingConfig.defaultRecommendedCurrency.chain));let p=r.chains.find(e=>e.id===c);if(!p)throw new t.b(`Funding chain ${c} is not in PrivyProvider chains list`);let h=n?.amount??r.fundingConfig.defaultRecommendedAmount,m=!1;function f(){if(!c)return;let e=Y[c];u.find(e=>"wallets"===e.method)&&!e&&console.warn("Attempting to fund with USDC on chain where USDC address is not known. Funding via external wallet will be disabled."),d=e,m=!0}n&&"asset"in n?"USDC"===n.asset?f():"string"!=typeof n.asset&&"erc20"in n.asset&&(m=(d=n.asset.erc20)===Y[p.id]):"USDC"===r.fundingConfig.defaultRecommendedCurrency.asset&&f();let b=n?.defaultFundingMethod;return{chainType:"ethereum",address:e,amount:h,chain:p,erc20Address:d,erc20ContractInfo:m?{symbol:"USDC",decimals:6}:void 0,isUSDC:m,methodScreen:i,supportedOptions:u,comingFromSendTransactionScreen:o,defaultFundingMethod:b,usingDefaultFundingMethod:!!b,preferredCardProvider:n?.card?.preferredProvider,crossChainBridgingEnabled:r.fundingConfig.crossChainBridgingEnabled??!1,solanaChain:"solana:mainnet",uiConfig:n&&"uiConfig"in n?n.uiConfig:void 0,externalSolanaFundingScreen:null,onComplete:s??(()=>{}),onError:l??(()=>{})}},"l",0,j,"m",0,x,"n",0,function(e){return`eip155:${String(Number(e))}`},"o",0,z,"p",0,function(e,{interval:t=100,timeout:r=5e3}={}){return new Promise((n,i)=>{let a,o=0,s=()=>{o>=r?i("Max attempts reached without result"):(a=e(),o+=t,null==a?setTimeout(s,t):n(a))};s()})},"q",0,e=>e?.map(e=>({signer_id:e.signerId,override_policy_ids:e.policyIds})),"r",0,L,"s",0,e=>e.replace(/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,""),"t",0,e=>"string"==typeof e?e:"0x"+e.toString(16),"u",0,function(){let{user:e,getAccessToken:n}
2=(0,A.u)(),{walletProxy:i,openModal:a,client:o}=(0,t.u)(),{setModalData:s}=(0,A.a)(),l=(0,y.u)();return(0,v.useMemo)(()=>({exportWallet:c=>new Promise(async(d,u)=>{if(!e)return void u(Error("User must be authenticated before exporting their Privy wallet"));c&&"target"in c&&c&&(c=void 0);let p=c?.address?(0,A.j)(e,c.address):(0,A.d)(e);if(!p)return void u(new t.b("User must have an embedded wallet."));let h=p.address,{entropyId:m,entropyIdVerifier:f}=(0,r.d)(e,p),b=(0,A.b)(p);if(!h)return void u(Error("User does not have an HD Ethereum wallet. To export an imported wallet, pass the `address` of the wallet to `exportWallet`."));if(!(0,E.isAddress)(h))return void u(Error("Must provide a valid Ethereum address."));let g={recoveryMethod:p.recoveryMethod,connectingWalletAddress:p.address,isUnifiedWallet:b,entropyId:m,entropyIdVerifier:f,onCompleteNavigateTo:"EmbeddedWalletKeyExportScreen",onFailure:u,shouldForceMFA:!0};await n()&&i?q(p)?(s({keyExport:{appId:l.id,appClientId:l.appClientId,origin:o.apiUrl,address:p.address,entropyId:m,entropyIdVerifier:f,hdWalletIndex:p.walletIndex,chainType:p.chainType,walletId:p.id,isUnifiedWallet:b,imported:p.imported,onSuccess:d,onFailure:u,showBackButton:c?.showBackButton},connectWallet:g}),a("EmbeddedWalletConnectingScreen")):u(Error(`Export is not supported for ${p.chainType} wallets`)):u(Error("Must have valid access token."))})}),[e,n,i,a,o,s,l])},"v",0,()=>{let{client:e,setUser:r}=(0,t.u)();return{unlink:(0,v.useCallback)(async({address:t})=>{let n;return r(n=t.startsWith("0x")?await e.unlinkEthereumWallet(t):await e.unlinkSolanaWallet(t)),n},[e,r])}},"w",0,S,"x",0,I,"y",0,function({address:e,fundWalletConfig:t,appConfig:r,comingFromSendTransactionScreen:n,externalSolanaFundingScreen:i,methodScreen:a}){if(!r.fundingConfig)throw Error("Wallet funding is not enabled");let o=G(r.fundingConfig.options);if(o.length<1)throw Error("Wallet funding is not enabled");if("USDC"===t?.asset&&"solana:testnet"===t?.chain)throw Error("USDC funding is not supported on the Solana testnet");let s=t?.amount??r.fundingConfig.defaultRecommendedAmount,l=t?.defaultFundingMethod;return{chainType:"solana",address:e,supportedOptions:o,amount:s,isUSDC:"USDC"===t?.asset,methodScreen:a,comingFromSendTransactionScreen:n,chain:t?.chain||"solana:mainnet",crossChainBridgingEnabled:r.fundingConfig.crossChainBridgingEnabled??!1,defaultFundingMethod:l,preferredCardProvider:t?.card?.preferredProvider,usingDefaultFundingMethod:!!l,uiConfig:t?.uiConfig,externalSolanaFundingScreen:i,onComplete:()=>{},onError:()=>{}}},"z",0,()=>{let e=window;if(!e.ethereum)return!1;if(e.ethereum.isCoinbaseWallet)return!0;if(e.ethereum.providers){for(let t of e.ethereum.providers)if(t&&t.isCoinbaseWallet)return!0}return!1}],793466)},69599,e=>{"use strict";var t=e.i(271645);let r=(0,t.createContext)(void 0),n=()=>(0,t.useContext)(r);function i(e,t,r,...n){for(let i of e.current[t][r])i(...n)}e.s(["P",0,r,"a",0,function(){let e=n();return(t,r,...n)=>i(e,t,r,...n)},"e",0,i,"p",0,{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:[]}},"u",0,function(e,r){if(!r)return;let i=n().current[e];return(0,t.useEffect)(()=>{for(let[t,n]of Object.entries(r))Object.prototype.hasOwnProperty.call(i,t)||console.warn(`Invalid event type "${t}" for action "${e}"`),i[t]?.push(n);return()=>{for(let[t,n]of Object.entries(r))Object.prototype.hasOwnProperty.call(i,t)||console.warn(`Invalid event type "${t}" for action "${e}"`),i[t]=i[t]?.filter(e=>e!==n)}},[r])}])}]);
3
4//# debugId=443bbd36-a9f1-0cca-aa35-e93ecf1f0570

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.