PageSourceSearch

https://c-tft-web.op.gg/_next/static/chunks/9341-3fab7ae0b7c683b0.js

js op.gg collected 2026-09-24 09:04:32 UTC 228,833 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9341],{15514:function(e,t,n){var i;!function(r,o){"use strict";var a="function",s="undefined",c="object",l="string",u="major",d="model",h="name",m="type",p="vendor",g="version",v="architecture",f="console",_="mobile",b="tablet",w="smarttv",y="wearable",x="embedded",k="Amazon",C="Apple",j="ASUS",N="BlackBerry",S="Browser",L="Chrome",E="Firefox",O="Google",M="Honor",T="Huawei",P="Microsoft",B="Motorola",I="Nvidia",A="OnePlus",D="Opera",R="OPPO",z="Samsung",q="Sharp",U="Sony",H="Xiaomi",F="Zebra",G="Facebook",V="Chromium OS",W="Mac OS",J=" Browser",K=function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2==0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n},X=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Y=function(e,t){return typeof e===l&&-1!==Q(t).indexOf(Q(e))},Q=function(e){return e.toLowerCase()},$=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},Z=function(e,t){for(var n,i,r,s,l,u,d=0;d<t.length&&!l;){var h=t[d],m=t[d+1];for(n=i=0;n<h.length&&!l&&h[n];)if(l=h[n++].exec(e))for(r=0;r<m.length;r++)u=l[++i],typeof(s=m[r])===c&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):void 0:this[s[0]]=u?s[1].call(this,u,s[2]):void 0:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):o):this[s]=u||o;d+=2}},ee=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(Y(t[n][i],e))return"?"===n?o:n}else if(Y(t[n],e))return"?"===n?o:n;return t.hasOwnProperty("*")?t["*"]:e},et={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},en={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,g],[/opios[\/ ]+([\w\.]+)/i],[g,[h,D+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[h,D+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[h,D]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[h,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[g,[h,"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],[h,g],[/quark(?:pc)?\/([-\w\.]+)/i],[g,[h,"Quark"]],[/\bddg\/([\w\.]+)/i],[g,[h,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[h,"
1Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[h,"Smart Lenovo "+S]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+S],g],[/\bfocus\/([\w\.]+)/i],[g,[h,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[h,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[h,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[h,"MIUI"+J]],[/fxios\/([\w\.-]+)/i],[g,[h,E]],[/\bqihoobrowser\/?([\w\.]*)/i],[g,[h,"360"]],[/\b(qq)\/([\w\.]+)/i],[[h,/(.+)/,"$1Browser"],g],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1"+J],g],[/samsungbrowser\/([\w\.]+)/i],[g,[h,z+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[g,[h,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[h,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[h,g],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[h],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[g,h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,G],g],[/(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],[h,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[h,L+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,L+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[h,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[g,ee,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],g],[/(wolvic|librewolf)\/([\w\.]+)/i],[h,g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[h,E+" 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],[h,[g,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[h,[g,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[v,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[v,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[v,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[v,/ower/,"",Q]],[/ sun4\w[;\)]/i],[[v,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[v,Q]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,z],[m,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],[d,[p,z],[m,_]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[p,C],[m,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,C],[m,b]],[/(macintosh);/i],[d,[p,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,q],[m,_]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[d,[p,M],[m,b]],[/honor([-\w ]+)[;\)]/i],[d,[p,M],[m,_]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[d,[p,T],[m,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[p,T],[m,_]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[d,/_/g," "],[p,H],[m,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],[[d,/_/g," "],[p,H],[m,_]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[p,R],[m,_]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[d,[p,ee,{OnePlus:["304","403","203"],"*":R}],[m,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[m,_]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[m,_]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[p,B],[m,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,B],[m,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,"LG"],[m,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,"LG"],[m,_]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
1(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[d,[p,"Lenovo"],[m,b]],[/(nokia) (t[12][01])/i],[p,d,[m,b]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[d,/_/g," "],[m,_],[p,"Nokia"]],[/(pixel (c|tablet))\b/i],[d,[p,O],[m,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,O],[m,_]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[p,U],[m,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,U],[m,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,A],[m,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,k],[m,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,k],[m,_]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[m,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,N],[m,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,j],[m,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,j],[m,_]],[/(nexus 9)/i],[d,[p,"HTC"],[m,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[m,_]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[p,"TCL"],[m,b]],[/(itel) ((\w+))/i],[[p,Q],d,[m,ee,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[m,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[m,_]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[p,"Ulefone"],[m,_]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[p,"Energizer"],[m,_]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[p,"Cat"],[m,_]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[p,"Smartfren"],[m,_]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[p,"Nothing"],[m,_]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[d,[p,"Archos"],[m,b]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[d,[p,"Archos"],[m,_]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[p,d,[m,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],[p,d,[m,_]],[/(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],[p,d,[m,b]],[/(surface duo)/i],[d,[p,P],[m,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[m,_]],[/(u304aa)/i],[d,[p,"AT&T"],[m,_]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[m,_]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[m,b]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[m,b]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[m,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[m,b]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[m,b]],[/\b(k88) b/i],[d,[p,"ZTE"],[m,b]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[m,_]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[m,_]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[m,b]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[m,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[m,b]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[m,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[m,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[m,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[m,_]],[/\b(ph-1) /i],[d,[p,"Essential"],[m,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[m,b]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[m,b]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[m,b]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[d,[p,I],[m,b]],[/(sprint) (\w+)/i],[p,d,[m,_]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,P],[m,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,F],[m,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,F],[m,_]],[/smart-tv.+(samsung)/i],[p,[m,w]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,z],[m,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[m,w]],[/(apple) ?tv/i],[p,[d,C+" TV"],[m,w]],[/crkey/i],[[d,L+"cast"],[p,O],[m,w]],[/droid.+aft(\w+)( bui|\))/i],[d,[p,k],[m,w]],[/(shield \w+ tv)/i],[d,[p,I],[m,w]],[/\
vendor: 5,683 bytes, line 1
1(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[p,q],[m,w]],[/(bravia[\w ]+)( bui|\))/i],[d,[p,U],[m,w]],[/(mi(tv|box)-?\w+) bui/i],[d,[p,H],[m,w]],[/Hbbtv.*(technisat) (.*);/i],[p,d,[m,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,$],[d,$],[m,w]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[d,[m,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[m,f]],[/droid.+; (shield)( bui|\))/i],[d,[p,I],[m,f]],[/(playstation \w+)/i],[d,[p,U],[m,f]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,P],[m,f]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[d,[p,z],[m,y]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[p,d,[m,y]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[d,[p,R],[m,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[p,C],[m,y]],[/(opwwe\d{3})/i],[d,[p,A],[m,y]],[/(moto 360)/i],[d,[p,B],[m,y]],[/(smartwatch 3)/i],[d,[p,U],[m,y]],[/(g watch r)/i],[d,[p,"LG"],[m,y]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,F],[m,y]],[/droid.+; (glass) \d/i],[d,[p,O],[m,y]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,d,[m,y]],[/; (quest( \d| pro)?)/i],[d,[p,G],[m,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[m,x]],[/(aeobc)\b/i],[d,[p,k],[m,x]],[/(homepod).+mac os/i],[d,[p,C],[m,x]],[/windows iot/i],[[m,x]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[m,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[m,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,_]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[h,g],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[h,"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],[h,g],[/ladybird\//i],[[h,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[h,[g,ee,et]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,ee,et],[h,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,W],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(ubuntu) ([\w\.]+) like android/i],[[h,/(.+)/,"$1 Touch"],g],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[h,g],[/\(bb(10);/i],[g,[h,N]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[g,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[h,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[h,L+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,V],g],[/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],[h,g],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,g]]},ei=function(e,t){if(typeof e===c&&(t=e,e=o),!(this instanceof ei))return new ei(e,t).getResult();var n=typeof r!==s&&r.navigator?r.navigator:o,i=e||(n&&n.userAgent?n.userAgent:""),f=n&&n.userAgentData?n.userAgentData:o,w=t?K(en,t):en,y=n&&n.userAgent==i;return this.getBrowser=function(){var e,t={};return t[h]=o,t[g]=o,Z.call(t,i,w.browser),t[u]=typeof(e=t[g])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:o,y&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[h]="Brave"),t},this.getCPU=function(){var e={};return e[v]=o,Z.call(e,i,w.cpu),e},this.getDevice=function(){var e={};return e[p]=o,e[d]=o,e[m]=o,Z.call(e,i,w.device),y&&!e[m]&&f&&f.mobile&&(e[m]=_),y&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[m]=b),e},this.getEngine=function(){var e={};return e[h]=o,e[g]=o,Z.call(e,i,w.engine),e},this.getOS=function(){var e={};return e[h]=o,e[g]=o,Z.call(e,i,w.os),y&&!e[h]&&f&&f.platform&&"Unknown"!=f.platform&&(e[h]=f.platform.replace(/chrome os/i,V).replace(/macos/i,W)),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 i},this.setUA=function(e){return i=typeof e===l&&e.length>500?$(e,500):e,this},this.setUA(i),this};ei.VERSION="1.0.41",ei.BROWSER=X([h,g,u]),ei.CPU=X([v]),ei.DEVICE=X([d,p,m,f,_,w,b,y,x]),ei.ENGINE=ei.OS=X([h,g]),typeof t!==s?(e.exp
1orts&&(t=e.exports=ei),t.UAParser=ei):n.amdO?o===(i=(function(){return ei}).call(t,n,t,e))||(e.exports=i):typeof r!==s&&(r.UAParser=ei);var er=typeof r!==s&&(r.jQuery||r.Zepto);if(er&&!er.ua){var eo=new ei;er.ua=eo.getResult(),er.ua.get=function(){return eo.getUA()},er.ua.set=function(e){eo.setUA(e);var t=eo.getResult();for(var n in t)er.ua[n]=t[n]}}}("object"==typeof window?window:this)},28347:function(e,t){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function i(e,t){var n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.areCookiesEqual=t.hasSameProperties=t.createCookie=t.isBrowser=void 0,t.isBrowser=function(){return"undefined"!=typeof window},t.createCookie=function(e,t,i){var r=i.sameSite;!0===r&&(r="strict"),(void 0===r||!1===r)&&(r="lax");var o=n(n({},i),{sameSite:r});return delete o.encode,n({name:e,value:t},o)},t.hasSameProperties=i,t.areCookiesEqual=function(e,t){var r=e.sameSite===t.sameSite;return"string"==typeof e.sameSite&&"string"==typeof t.sameSite&&(r=e.sameSite.toLowerCase()===t.sameSite.toLowerCase()),i(n(n({},e),{sameSite:void 0}),n(n({},t),{sameSite:void 0}))&&r}},39341:(e,t,n)=>{"use strict";n.d(t,{CL:()=>ic,K0:()=>e6,Kq:()=>iD,LA:()=>id,MJ:()=>iR,bJ:()=>i1,g_:()=>n9,ms:()=>e7,ps:()=>ii});var i=n(95155),r=n(2821),o=n(12115),a=n(47650),s=n(65870),c=n(15514),l=n(93940),u=n(91183),d=function(){return(d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function h(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function m(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})}function p(e,t){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){var l=[s,c];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&l[0]?i.return:l[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,l[1])).done)return r;switch(i=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,i=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(6===l[0]&&o.label<r[1]){o.label=r[1],r=l;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(l);break}r[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(e){l=[6,e],i=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function g(e,t,n){if(n||2==arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function v(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.$)(e)}"function"==typeof SuppressedError&&SuppressedError;var f,_="opgg-kit-dark",b={reset:"Button-module_reset__cfW0B",primary:"Button-module_primary__C6Yja",secondary:"Button-module_secondary__pP3kM"};function w(e){var t=e.variant,n=e.className,r=h(e,["variant","className"]);return(0,i.jsx)("button",d({className:v(n,b[void 0===t?"primary":t])},r))}function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var x,k=function(e){return o.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),f||(f=o.createElement("path",{fill:"currentColor",d:"M15 19a3 3 0 1 1-6 0zM12 2a7 7 0 0 1 7 7v5a2 2 0 0 0 2 2v2H3v-2a2 2 0 0 0 2-2V9a7 7 0 0 1 7-7"})))};function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var j,N=function(e){return o.createElement("svg",C({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20"},e),x||(x=o.createElement("path",{stroke:"currentColor",strokeLinecap:"square",strokeMiterlimit:10,strokeWidth:1.5,d:"M12.813 4.375 7.187 10l5.626 5.625"})))};function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var L,E=function(e){return o.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),j||(j=o.createElement("path",{stroke:"currentColor",strokeLinecap:"square",strokeMiterlimit:10,strokeWidth:1.5,d:"m8.625 18.75 6.75-6.75-6.75-6.75"})))};function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var M,T=function(e){return o.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),L||(L=o.createElement("path",{stroke:"currentColor",strokeLinecap:"square",strokeMiterlimit:10,strokeWidth:1.5,d:"M12.5 10.25 8 5.75l-4.5 4.5"})))};function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var B,I=function(e){return o.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),M||(M=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.308 7.385c0-1.179.173-2.37.615-3.385C5.983 5.28 4 8.282 4 11.692A8.31 8.31 0 0 0 12.308 20c3.41 0 6.412-1.984 7.692-4.923-1.015.442-2.207.615-3.385.615a8.307 8.307 0 0 1-8.307-8.307",clipRule:"evenodd"})))};function A(){return(A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var D,R=function(e){return o.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20"},e),B||(B=o.createElement("path",{fill:"#5865F2",fillRule:"evenodd",d:"M15.776 4.786a14 14 0 0 0-3.393-1.035.05.05 0 0 0-.054.025c-.147.257-.31.591-.423.854a12.9 12.9 0 0 0-3.81 0 9 9 0 0 0-.429-.854.05.05 0 0 0-.055-.025A13.9 13.9 0 0 0 4.22 4.786a.05.05 0 0 0-.022.02c-2.161 3.175-2.753 6.273-2.463 9.333q.004.024.022.039a13.9 13.9 0 0 0 4.162 2.07.06.06 0 0 0 .058-.02q.483-.645.852-1.362a.052.052 0 0 0-.03-.072 9 9 0 0 1-1.3-.61.052.052 0 0 1-.004-.087q.131-.096.258-.2a.05.05 0 0 1 .054-.006c2.727 1.225 5.68 1.225 8.376 0a.05.05 0 0 1 .054.006q.125.103.259.2a.052.052 0 0 1-.005.087q-.62.357-1.3.61a.052.052 0 0 0-.029.072q.377.716.851 1.362a.05.05 0 0 0 .059.02 13.9 13.9 0 0 0 4.168-2.07.05.05 0 0 0 .022-.038c.347-3.538-.582-6.61-2.465-9.334a.04.04 0 0 0-.021-.02m-8.54 7.49c-.821 0-1.498-.742-1.498-1.653 0-.91.664-1.653 1.498-1.653.841 0 1.511.749 1.498 1.653 0 .911-.664 1.653-1.498 1.653m5.538 0c-.821 0-1.498-.742-1.498-1.653 0-.91.664-1.653 1.498-1.653.841 0 1.511.749 1.498 1.653 0 .911-.657 1.653-1.498 1.653",clipRule:"evenodd"})))};function z(){return(z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var q,U=function(e){return o.createElement("svg",z({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),D||(D=o.createElement("g",{fill:"currentColor"},o.createElement("circle",{cx:6,cy:12,r:2}),o.createElement("circle",{cx:18,cy:12,r:2}),o.createElement("circle",{cx:12,cy:12,r:2}))))};function H(){return(H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var F,G=function(e){return o.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:17,height:17,fill:"none",viewBox:"0 0 17 17"},e),q||(q=o.createElement("path",{fill:"currentColor",d:"m4.5 6.5 4 5 4-5z"})))};function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var W,J=function(e){return o.createElement("svg",V({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),F||(F=o.createElement("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"},o.createElement("path",{d:"M13.184 4.04H2.816a.216.216 0 0 0-.216.216v6.048c0 .12.097.216.216.216h10.368c.12 0 .216-.097.216-.216V4.256a.216.216 0 0 0-.216-.216M2.816 2.96c-.716 0-1.296.58-1.296 1.296v6.048c0 .716.58 1.296 1.296 1.296h10.368c.716 0 1.296-.58 1.296-1.296V4.256c0-.716-.58-1.296-1.296-1.296zM6.02 13.04a.54.54 0 0 1 .54-.54h2.88a.54.54 0 0 1 0 1.08H6.56a.54.54 0 0 1-.54-.54"}))))};function K(){return(K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var X,Y=function(e){return o.createElement("svg",K({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),W||(W=o.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"m6 6 12 12M18 6 6 18"})))};function Q(){return(Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var $,Z,ee=function(e){return o.createElement("svg",Q({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),X||(X=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.556 12a8.445 8.445 0 1 1 16.89 0 8.445 8.445 0 0 1-16.89 0m10.961 7.126a7.6 7.6 0 0 0 2.497-1.474 8.4 8.4 0 0 0-1.182-.686q-.203.48-.44.907c-.257.465-.551.889-.875 1.253m1.627-2.996q.77.36 1.447.841.03.022.057.048a7.53 7.53 0 0 0 1.895-4.575H16.77a13.2 13.2 0 0 1-.627 3.686m-.262-3.686a12.4 12.4 0 0 1-.563 3.347 9.8 9.8 0 0 0-2.874-.56v-2.787zm.89-.889h2.77a7.53 7.53 0 0 0-1.894-4.574 1 1 0 0 1-.057.048 9.3 9.3 0 0 1-1.447.84c.36 1.102.586 2.356.627 3.687M15.318 8.21c.318.992.522 2.13.563 3.347h-3.437V8.768a9.8 9.8 0 0 0 2.874-.56m.513-1.175a8.4 8.4 
10 0 0 1.182-.686 7.6 7.6 0 0 0-2.497-1.474c.324.364.618.788.876 1.253q.236.426.44.907m-6.35-2.16a7.6 7.6 0 0 0-2.496 1.474q.556.386 1.182.686a9 9 0 0 1 .44-.907c.258-.465.551-.889.875-1.253M7.857 7.87a9.3 9.3 0 0 1-1.447-.841 1 1 0 0 1-.057-.048 7.53 7.53 0 0 0-1.895 4.575H7.23c.041-1.331.267-2.585.627-3.686m.262 3.686c.04-1.218.245-2.355.563-3.347.898.32 1.866.515 2.875.56v2.787zm-.889.888H4.457a7.53 7.53 0 0 0 1.895 4.575 1 1 0 0 1 .057-.048q.677-.481 1.447-.841a13.2 13.2 0 0 1-.627-3.686m1.452 3.347a12.4 12.4 0 0 1-.563-3.347h3.438v2.788a9.8 9.8 0 0 0-2.875.56m-.513 1.175q.203.48.44.907c.258.465.551.889.875 1.253a7.6 7.6 0 0 1-2.497-1.474q.556-.388 1.182-.686m.82-.34a9 9 0 0 1 2.568-.504v3.374c-.746-.2-1.525-.89-2.172-2.055a8 8 0 0 1-.395-.816m3.457-.504a9 9 0 0 1 2.566.503q-.183.435-.395.816c-.647 1.165-1.426 1.856-2.171 2.055zm-.89-8.244a9 9 0 0 1-2.566-.503 8 8 0 0 1 .395-.816c.647-1.165 1.426-1.856 2.172-2.055zm.89 0a9 9 0 0 0 2.566-.503 8 8 0 0 0-.395-.816c-.647-1.165-1.426-1.856-2.171-2.055z",clipRule:"evenodd"})))};function et(){return(et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var en,ei=function(e){return o.createElement("svg",et({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),$||($=o.createElement("g",{clipPath:"url(#a)"},o.createElement("path",{fill:"currentColor",d:"M20.023 12.355c-.017-2.392-1.123-4.574-2.847-6.09l.819-.8c.52.301 1.201.235 1.648-.202.53-.518.53-1.358 0-1.874a1.38 1.38 0 0 0-1.918 0 1.3 1.3 0 0 0-.207 1.61l-.862.843a8.53 8.53 0 0 0-5.182-1.726c-4.717.03-8.52 3.818-8.433 8.451.083 4.398 3.726 8.002 8.225 8.137a8.6 8.6 0 0 0 4.975-1.388.34.34 0 0 1 .326-.026c.412.185 1.145.423 2.25.472.28.012.451-.297.285-.516-.29-.383-.642-.952-.806-1.618a.32.32 0 0 1 .057-.274 8.14 8.14 0 0 0 1.67-4.997zm-13.114.467c-.701 0-1.27-.886-1.27-1.977s.569-1.978 1.27-1.978 1.27.886 1.27 1.978c0 1.091-.569 1.977-1.27 1.977m4.993 0c-.7 0-1.27-.886-1.27-1.977s.57-1.978 1.27-1.978 1.27.886 1.27 1.978c0 1.091-.569 1.977-1.27 1.977"}))),Z||(Z=o.createElement("defs",null,o.createElement("clipPath",{id:"a"},o.createElement("path",{fill:"#fff",d:"M3.04 3h17v17.708h-17z"})))))};function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eo,ea=function(e){return o.createElement("svg",er({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),en||(en=o.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"M15.619 5q.316 0 .622.039l.09-.013Q16.54 5 16.749 5c2.17 0 4 1.616 4.269 3.769l.957 7.655a3.353 3.353 0 0 1-3.327 3.769 4.3 4.3 0 0 1-4.05-2.848H9.403a4.3 4.3 0 0 1-4.05 2.848 3.353 3.353 0 0 1-3.327-3.77l.957-7.654A4.303 4.303 0 0 1 7.253 5q.26 0 .51.039A5 5 0 0 1 8.381 5zM8.202 9.273h-.95v1.899H5.353v.95l1.899-.001v1.9h.95l-.001-1.9h1.9v-.949H8.2zm7.596.475a1.9 1.9 0 1 0 0 3.798 1.9 1.9 0 0 0 0-3.798"})))};function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var ec,el=function(e){return o.createElement("svg",es({xmlns:"http://www.w3.org/2000/svg",width:20,height:21,fill:"none",viewBox:"0 0 20 21"},e),eo||(eo=o.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8.125 13.625v1.563a1.563 1.563 0 0 0 1.563 1.562h6.25a1.563 1.563 0 0 0 1.562-1.562V5.813a1.563 1.563 0 0 0-1.562-1.563H10c-.863 0-1.875.7-1.875 1.563v1.562m-2.5 6.25L2.5 10.5l3.125-3.125m7.5 3.125h-10"})))};function eu(){return(eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var ed,eh=function(e){return o.createElement("svg",eu({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),ec||(ec=o.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"M12.765 16.8V20h-1.53v-3.2zm3.17-1.947 2.263 2.263-1.082 1.082-2.263-2.263zm-7.87 0 1.082 1.082-2.263 2.263-1.082-1.082zM12 8c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4m8 3.235v1.53h-3.2v-1.53zm-12.8 0v1.53H4v-1.53zm9.916-5.433 1.082 1.082-2.263 2.263-1.082-1.082zm-10.232 0 2.263 2.263-1.082 1.082-2.263-2.263zM12.765 4v3.2h-1.53V4z"})))};function em(){return(em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var ep,eg=function(e){return o.createElement("svg",em({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),ed||(ed=o.createElement("g",{fill:"currentColor"},o.createElement("path",{fillRule:"evenodd",d:"M10.592 2.6H5.408a.216.216 0 0 0-.216.216v10.368c0 .12.097.216.216.216h5.184c.12 0 .216-.097.216-.216V2.816a.216.216 0 0 0-.216-.216M5.408 
11.52c-.716 0-1.296.58-1.296 1.296v10.368c0 .716.58 1.296 1.296 1.296h5.184c.716 0 1.296-.58 1.296-1.296V2.816c0-.716-.58-1.296-1.296-1.296z",clipRule:"evenodd"}),o.createElement("circle",{cx:8,cy:11.6,r:.72}))))};function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var ef,e_=function(e){return o.createElement("svg",ev({xmlns:"http://www.w3.org/2000/svg",width:66,height:16,fill:"none",viewBox:"0 0 66 16"},e),ep||(ep=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.025 12.203C5.7 12.203 3.808 10.318 3.808 8S5.7 3.796 8.025 3.796 12.241 5.682 12.241 8s-1.891 4.203-4.216 4.203M8.025 0C3.6 0 0 3.589 0 8s3.6 8 8.025 8 8.025-3.589 8.025-8-3.6-8-8.025-8m17.517 8.498H21.18V3.7h4.362c1.505 0 1.964 1.412 1.964 2.398 0 1.017-.46 2.399-1.964 2.399m5.754-2.399c0-3.44-2.357-6.096-5.736-6.096h-7.98v15.984h3.6v-3.792h4.38c3.258 0 5.736-2.638 5.736-6.096m10.656.938H49.1c.018.2.04.516.055.96.027.744-.013 1.2-.163 2.098-.608 3.635-3.43 5.894-7.365 5.894-4.421 0-8.018-3.585-8.018-7.992 0-4.408 3.597-7.994 8.017-7.994a8.01 8.01 0 0 1 6.135 2.85l.226.268-.292.194-2.593 1.724-.216.144-.182-.186c-.82-.835-1.912-1.224-3.078-1.224-2.375 0-4.308 1.855-4.308 4.224 0 2.367 1.933 4.294 4.309 4.294 2.008 0 3.34-1.13 3.6-2.392h-3.275zm23.986.002h-7.15v2.862h3.277c-.261 1.26-1.593 2.392-3.602 2.392-2.375 0-4.308-1.927-4.308-4.295s1.933-4.223 4.308-4.223c1.165 0 2.258.389 3.078 1.224l.182.186.217-.144 2.592-1.724.293-.194-.227-.268a8.01 8.01 0 0 0-6.135-2.85c-4.42 0-8.017 3.586-8.017 7.993 0 4.408 3.596 7.993 8.017 7.993 3.936 0 6.758-2.258 7.366-5.894.15-.898.19-1.354.163-2.098-.015-.444-.037-.76-.055-.96m-36.269 7.326a1.626 1.626 0 0 1 3.254 0 1.626 1.626 0 0 1-3.254 0",clipRule:"evenodd"})))};function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var ew,ey=function(e){return o.createElement("svg",eb({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),ef||(ef=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.742 9.477c-1.23 0-2.23-1.001-2.23-2.231s1-2.231 2.23-2.231a2.232 2.232 0 0 1 0 4.462m0-6.477A4.25 4.25 0 0 0 3.5 7.246a4.25 4.25 0 0 0 4.242 4.246 4.25 4.25 0 0 0 4.24-4.246A4.25 4.25 0 0 0 7.743 3M17 7.51h-2.306V4.964H17c.795 0 1.038.75 1.038 1.273 0 .54-.243 1.273-1.038 1.273m3.041-1.273c0-1.825-1.245-3.235-3.032-3.235h-4.218v8.483h1.903V9.473h2.315c1.722 0 3.032-1.401 3.032-3.236M7.91 16.248h3.779q.014.158.029.51c.014.394-.007.636-.087 1.113-.32 1.93-1.813 3.128-3.892 3.128A4.244 4.244 0 0 1 3.5 16.757a4.245 4.245 0 0 1 4.238-4.242c1.252 0 2.434.551 3.242 1.512l.12.143-.155.103-1.37.914-.115.077-.096-.099c-.433-.443-1.01-.65-1.626-.65-1.256 0-2.277.985-2.277 2.242a2.28 2.28 0 0 0 2.277 2.28c1.06 0 1.765-.6 1.903-1.27H7.909zm12.678.001h-3.779v1.519h1.732c-.138.67-.842 1.27-1.904 1.27a2.28 2.28 0 0 1-2.277-2.28c0-1.257 1.022-2.241 2.277-2.241.616 0 1.194.206 1.627.65l.096.098.115-.077 1.37-.914.155-.103-.12-.142a4.23 4.23 0 0 0-3.243-1.513 4.244 4.244 0 0 0-4.237 4.242c0 2.34 1.9 4.242 4.237 4.242 2.08 0 3.572-1.199 3.893-3.128.08-.477.1-.719.087-1.114q-.013-.351-.03-.509M19 10.861c0-.475.386-.861.86-.861a.861.861 0 0 1 0 1.721.86.86 0 0 1-.86-.86",clipRule:"evenodd"})))};function ex(){return(ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var ek,eC,ej=function(e){return o.createElement("svg",ex({xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 21 21"},e),ew||(ew=o.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12.375 13.625v1.563a1.563 1.563 0 0 1-1.562 1.562h-6.25A1.563 1.563 0 0 1 3 15.188V5.813A1.56 1.56 0 0 1 4.563 4.25H10.5c.863 0 1.875.7 1.875 1.563v1.562m2.5 6.25L18 10.5l-3.125-3.125m-7.5 3.125h10"})))};function eN(){return(eN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eS,eL,eE=function(e){return o.createElement("svg",eN({xmlns:"http://www.w3.org/2000/svg",width:25,height:25,fill:"none",viewBox:"0 0 25 25"},e),ek||(ek=o.createElement("path",{fill:"currentColor",d:"M12.64 2.5C7.016 2.426 2.425 7.017 2.5 12.64c.076 5.393 4.468 9.785 9.861 9.86 5.625.077 10.215-4.514 10.138-10.138-.074-5.394-4.466-9.786-9.86-9.861m6.078 15.733a.19.19 0 0 1-.232.04.2.2 0 0 1-.064-.055 6 6 0 0 0-1.555-1.422c-1.224-.786-2.775-1.219-4.366-1.219-1.592 0-3.143.433-4.367 1.219a6 6 0 0 0-1.555 1.422.192.192 0 0 1-.296.015 8.43 8.43 0 0 1-2.244-5.588C3.961 7.967 7.8 4.05 12.48 4.039c4.68
1-.011 8.483 3.79 8.483 8.462a8.43 8.43 0 0 1-2.244 5.732"})),eC||(eC=o.createElement("path",{fill:"currentColor",d:"M12.501 7.116c-.948 0-1.805.355-2.414 1.001s-.914 1.538-.845 2.497c.14 1.886 1.601 3.425 3.259 3.425s3.117-1.538 3.259-3.425c.071-.949-.23-1.834-.85-2.491-.611-.65-1.467-1.007-2.409-1.007"})))};function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eM,eT,eP,eB=function(e){return o.createElement("svg",eO({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20"},e),eS||(eS=o.createElement("g",{clipPath:"url(#a)"},o.createElement("path",{fill:"#fff",d:"m18.218 6.277-.004-.022a7 7 0 0 0-.076-.383l-.014-.053a7 7 0 0 0-.084-.33l-.022-.07a7 7 0 0 0-.092-.288q-.016-.044-.033-.085a7 7 0 0 0-.096-.252l-.043-.095a7 7 0 0 0-.1-.221q-.025-.052-.052-.103-.05-.098-.1-.192l-.064-.109q-.05-.084-.1-.166-.037-.056-.074-.11-.048-.076-.097-.145l-.084-.111q-.046-.065-.094-.125-.045-.057-.092-.11-.045-.056-.09-.108l-.101-.11L16.62 3q-.054-.055-.108-.106l-.08-.078q-.057-.053-.114-.103l-.072-.063q-.062-.052-.123-.1l-.062-.051-.129-.097-.053-.04-.135-.092-.042-.03-.14-.089-.03-.018-.146-.086-.014-.009c-.488-.274-.838-.37-.838-.37-.115.4-.345.65-.645.793-.935.444-2.539-.162-3.364-.537A9 9 0 0 1 10 1.666s-3.925 2.137-4.535 0c0 0-.16.046-.41.156l-.021.01-.106.049-.04.02-.1.05-.055.03-.097.051-.067.04-.095.055-.077.049-.093.058-.087.06q-.045.03-.09.062l-.093.069-.09.067-.098.08q-.044.034-.088.072l-.101.09q-.044.037-.087.077l-.102.1-.086.085-.102.109-.084.091q-.052.06-.102.12-.041.049-.081.099-.05.064-.1.13l-.079.107q-.048.07-.095.142-.04.055-.076.114-.047.076-.092.153l-.072.122q-.044.081-.086.165-.035.065-.067.13-.042.088-.08.178-.032.068-.063.14-.037.093-.072.19-.03.073-.057.147-.033.099-.063.201-.026.08-.05.16-.029.103-.055.21l-.044.173q-.023.11-.044.223-.019.09-.035.183-.018.113-.033.23-.015.1-.027.2c-.009.075-.013.153-.02.229q-.01.112-.019.227-.004.106-.007.213-.006.132-.008.267l.003.154q.002.422.042.883c.527 5.843 8.288 9.68 8.288 9.68s1.485-.735 3.201-2.05c2.206-1.692 4.791-4.344 5.088-7.63a9.4 9.4 0 0 0-.07-2.41zm-5.213 3.526-.88.48c-.54.293-.983.735-1.276 1.274l-.48.882a.404.404 0 0 1-.709-.004l-.489-.885a3.26 3.26 0 0 0-1.287-1.288L7 9.774a.403.403 0 0 1-.004-.71l.881-.48c.54-.293.983-.734 1.275-1.274l.48-.881c.15-.281.555-.28.71.003l.488.885c.298.543.745.99 1.287 1.288l.886.488a.403.403 0 0 1 .003.71"}))),eL||(eL=o.createElement("defs",null,o.createElement("clipPath",{id:"a"},o.createElement("path",{fill:"#fff",d:"M1.667 1.667h16.667v16.7H1.667z"})))))};function eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eA,eD,eR=function(e){return o.createElement("svg",eI({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),eM||(eM=o.createElement("path",{fill:"url(#a)",d:"M12.14 2C6.516 1.926 1.925 6.517 2 12.14c.076 5.393 4.468 9.785 9.861 9.86 5.625.077 10.215-4.514 10.138-10.138-.074-5.394-4.466-9.786-9.86-9.861m6.078 15.733a.19.19 0 0 1-.232.04.2.2 0 0 1-.064-.055 6 6 0 0 0-1.555-1.422c-1.224-.786-2.775-1.219-4.366-1.219-1.592 0-3.143.433-4.367 1.219a6 6 0 0 0-1.555 1.422.192.192 0 0 1-.296.015 8.43 8.43 0 0 1-2.244-5.588C3.461 7.467 7.3 3.55 11.98 3.539c4.68-.011 8.483 3.79 8.483 8.462a8.43 8.43 0 0 1-2.244 5.732"})),eT||(eT=o.createElement("path",{fill:"url(#b)",d:"M12 6.616c-.948 0-1.805.355-2.414 1.001s-.914 1.538-.845 2.497c.14 1.886 1.602 3.425 3.26 3.425s3.116-1.538 3.258-3.425c.071-.949-.23-1.834-.85-2.491-.611-.65-1.467-1.007-2.409-1.007"})),eP||(eP=o.createElement("defs",null,o.createElement("linearGradient",{id:"a",x1:1.994,x2:22.829,y1:2.014,y2:21.103,gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#EBEEF1"}),o.createElement("stop",{offset:.489,stopColor:"#B7D1FF"}),o.createElement("stop",{offset:1,stopColor:"#91EBFF"})),o.createElement("linearGradient",{id:"b",x1:8.73,x2:15.894,y1:6.621,y2:12.82,gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#EBEEF1"}),o.createElement("stop",{offset:.489,stopColor:"#B7D1FF"}),o.createElement("stop",{offset:1,stopColor:"#91EBFF"})))))};function ez(){return(ez=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eq,eU,eH=function(e){return o.createElement("svg",ez({xmlns:"http://www.w3.org/2000/svg",width:13,height:13,fill:"none",viewBox:"0 0 13 13"},e),eA||(eA=o.createElement("g",{clipPath:"url(#a)"},o.createElement("path",{fill:"currentColor",d:"m12.252 3.894-.003-.015a5 5 0 0 0-.054-.269l-.009-.037a5 5 0 0 0-.06-.23q-.007-.025-.015-.05a5 5 0 0 0-.064-.202l-.023-.06-.067-.175-.03-.067-.07-.154-.037-.073-.07-.134-.045-.076q-.034-.06-.07-.116-.025-.04-.051-.078-.034-.052-.068-.101l-.059-.078q-.032-.046-.066-.087-.031-.04-.064-.078l-.063-.075-.07-.076-.06-.064-.076-.074-.056-.054q-.04-.037-.08-.072l-.05-.045-.086-.07-.044-.036-.09-.067-.037-.028-.094-.065-.03-.02-.098-.063-.02-.012-.103-.061-.01-.006c-.341-.192-.587-.26-.587-.26a.83.83 0 0 1-.451.556c-.655.31-1.777-.114-2.355-.376C6.643.744 6.5.666 6.5.666s-2.748 1.496-3.175 0c0 0-.112.032-.287.11l-.015.007-.074.034-.027.013-.07.035-.04.021-.067.037-.047.027-.066.039-.055.034
1-.064.041-.061.041-.064.044-.065.048-.062.048q-.034.026-.069.055l-.062.05-.07.063-.061.055q-.036.034-.071.07l-.06.059-.072.076-.06.064-.07.084q-.03.033-.057.07-.036.044-.07.091l-.055.074q-.034.048-.067.1-.027.038-.053.08-.033.051-.064.107l-.05.085q-.032.057-.061.116l-.047.091q-.03.06-.056.124-.023.048-.044.098-.026.065-.05.133-.021.05-.04.103-.023.07-.045.14-.018.056-.035.113-.02.073-.038.147l-.03.12q-.017.077-.032.157-.013.063-.024.128-.014.08-.023.16l-.02.142-.013.16q-.008.077-.013.158-.004.074-.005.15-.005.092-.006.187l.002.107q.002.296.03.618c.368 4.09 5.8 6.776 5.8 6.776s1.04-.514 2.242-1.435c1.544-1.184 3.354-3.04 3.562-5.341a6.6 6.6 0 0 0-.05-1.687zm-3.65 2.468-.616.336a2.2 2.2 0 0 0-.892.892l-.336.617a.282.282 0 0 1-.497-.002l-.342-.62a2.3 2.3 0 0 0-.901-.901l-.62-.342a.282.282 0 0 1-.002-.497l.616-.336c.378-.205.688-.514.893-.892L6.24 4a.282.282 0 0 1 .496.002l.342.62c.209.38.522.693.901.901l.62.342c.198.108.2.39.003.497"}))),eD||(eD=o.createElement("defs",null,o.createElement("clipPath",{id:"a"},o.createElement("path",{fill:"#fff",d:"M.666.667h11.667v11.69H.666z"})))))};function eF(){return(eF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eG,eV=function(e){return o.createElement("svg",eF({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),eq||(eq=o.createElement("g",{clipPath:"url(#a)"},o.createElement("rect",{width:24,height:24,fill:"#F7F7F9",rx:12}),o.createElement("path",{fill:"#C3CBD1",d:"M11.93.035a11.93 11.93 0 1 0 .14 0zm0 6.07a5.365 5.365 0 1 1-.142 0zM4.023 20.26q1.905-2.47 4.729-2.47h6.494q2.823 0 4.73 2.47a11.576 11.576 0 0 1-15.953 0"}))),eU||(eU=o.createElement("defs",null,o.createElement("clipPath",{id:"a"},o.createElement("rect",{width:24,height:24,fill:"#fff",rx:12})))))};function eW(){return(eW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eJ,eK=function(e){return o.createElement("svg",eW({xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25"},e),eG||(eG=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.975 16.518a6.752 6.752 0 1 1 1.175-1.212l4 4-1.194 1.194zm-.644-1.687a5.063 5.063 0 1 0-7.16-7.16 5.063 5.063 0 0 0 7.16 7.16",clipRule:"evenodd"})))};function eX(){return(eX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eY,eQ,e$=function(e){return o.createElement("svg",eX({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),eJ||(eJ=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.3 4.598a1 1 0 0 0-.915-.996l-10.6-.909a1 1 0 0 0-1.085.996v.668a1 1 0 0 0 .97 1l10.6.323a1 1 0 0 0 1.03-1zm0 2.851a1 1 0 0 0-.97-1l-10.6-.323a1 1 0 0 0-1.03 1v5.185a1 1 0 0 0 1.085.996l10.6-.909a1 1 0 0 0 .915-.996zM3.936 3.95a.45.45 0 1 1-.9 0 .45.45 0 0 1 .9 0m1.241.586a.45.45 0 1 0 0-.9.45.45 0 0 0 0 .9",clipRule:"evenodd"})))};function eZ(){return(eZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var e0=function(e){return o.createElement("svg",eZ({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20"},e),eY||(eY=o.createElement("path",{fill:"#E42B28",fillRule:"evenodd",d:"M15.234 0C18.125 0 20 1.875 20 4.766v10.468C20 18.125 18.125 20 15.234 20H4.766C1.875 20 0 18.125 0 15.234V4.766C0 1.875 1.875 0 4.766 0z",clipRule:"evenodd"})),eQ||(eQ=o.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M15.26 4.907c.95.154 1.467.58 1.742 1.684.093.372.22 2.408.22 3.185v.17c0 .777-.127 2.813-.22 3.185-.275 1.105-.791 1.53-1.742 1.684-.548.081-3.177.185-5.265.185h.01c-2.087 0-4.717-.104-5.265-.185-.95-.153-1.467-.58-1.742-1.684-.092-.372-.22-2.408-.22-3.185v-.17c0-.777.128-2.813.22-3.184.275-1.106.791-1.531 1.742-1.685.548-.081 3.178-.185 5.265-.185h-.01c2.088 0 4.717.104 5.265.185m-2.923 4.882L8.5 7.779v4.118z",clipRule:"evenodd"})))};function e1(e){var t=(0,o.useId)().replace(/[^a-zA-Z0-9_-]/g,"");return(0,i.jsxs)("svg",d({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,i.jsx)("g",{clipPath:"url(#".concat(t,"-clip)"),children:(0,i.jsx)("path",{d:"M18.2178 6.27748C18.2164 6.27008 18.215 6.26269 18.2136 6.25529C18.191 6.12402 18.166 5.99598 18.1378 5.8721C18.1337 5.85407 18.1286 5.83697 18.1244 5.81894C18.0981 5.70662 18.0703 5.59615 18.0398 5.48984C18.0329 5.46534 18.0246 5.44315 18.0176 5.41911C17.9881 5.32112 17.9585 5.22405 17.9257 5.13068C17.9155 5.10156 17.9039 5.07429 17.8933 5.04563C17.8619 4.96012 17.8304 4.87507 17.7967 4.79372C17.7833 4.7609 17.768 4.73039 17.7542 4.6985C17.7218 4.62408 17.689 4.5492 17.6548 4.47801C17.6377 4.44242 17.6192 4.4096 17.6016 4.37493C17.5688 4.31022 17.536 4.24505 17.5013 4.18311C17.4805 4.14567 17.4588 4.111 17.4375 4.07448C17.4047 4.01855 17.3724 3.9617 17.3382 3.90808C17.3141 3.86972 17.2887 3.83412 17.2642 3.79715C17.2319 3.74861 17.2 3.69915 17.1667 3.65293
1C17.1394 3.61456 17.1112 3.57851 17.0835 3.54153C17.052 3.49947 17.0211 3.45694 16.9892 3.41673C16.9587 3.37836 16.9277 3.34277 16.8972 3.30626C16.8672 3.2702 16.8371 3.23322 16.8066 3.19902C16.7733 3.16112 16.7396 3.12599 16.7058 3.08993C16.6776 3.05942 16.6494 3.02799 16.6208 2.99887C16.5847 2.96189 16.5487 2.92769 16.5131 2.89256C16.4867 2.86667 16.4604 2.83986 16.4336 2.81537C16.3952 2.77931 16.3569 2.74603 16.3185 2.71229C16.2945 2.69103 16.2704 2.6693 16.2468 2.64896C16.2057 2.61383 16.165 2.58148 16.1243 2.54866C16.1035 2.53202 16.0823 2.51399 16.0615 2.49781C16.018 2.46407 15.9755 2.43264 15.933 2.40121C15.9154 2.38826 15.8974 2.3744 15.8798 2.36146C15.8345 2.32864 15.7897 2.29859 15.7453 2.26855C15.7315 2.2593 15.7171 2.24913 15.7033 2.23989C15.6552 2.20846 15.6085 2.17887 15.5623 2.15022C15.5526 2.14421 15.5429 2.13774 15.5336 2.13219C15.4832 2.10168 15.4342 2.07302 15.3866 2.04575C15.382 2.04298 15.3774 2.0402 15.3728 2.03743C14.8851 1.76333 14.5347 1.66626 14.5347 1.66626C14.4201 2.06701 14.1895 2.31708 13.8899 2.45991C12.9548 2.90411 11.3514 2.29767 10.5258 1.9228C10.205 1.7772 10.0007 1.66626 10.0007 1.66626C10.0007 1.66626 6.07637 3.80269 5.46623 1.66626C5.46623 1.66626 5.30537 1.71156 5.0553 1.82249C5.04837 1.82527 5.04144 1.82897 5.0345 1.8322C5.00076 1.84745 4.96609 1.86317 4.92911 1.88074C4.91617 1.88674 4.9023 1.89414 4.88936 1.90061C4.85654 1.91679 4.82419 1.9325 4.78952 1.95053C4.77149 1.95978 4.75254 1.97041 4.73405 1.98011C4.70216 1.99722 4.67073 2.01386 4.63745 2.03235C4.61526 2.04483 4.59261 2.05823 4.56996 2.07117C4.53853 2.0892 4.50756 2.10723 4.4752 2.12664C4.44978 2.1419 4.42343 2.159 4.39755 2.17564C4.36658 2.19505 4.33653 2.214 4.3051 2.23434C4.27644 2.25329 4.24732 2.27363 4.2182 2.29351C4.18816 2.31431 4.15811 2.33418 4.1276 2.35591C4.0971 2.3781 4.06567 2.40167 4.0347 2.42478C4.00465 2.44697 3.97507 2.46869 3.94502 2.49227C3.91267 2.51723 3.88031 2.5445 3.84749 2.57131C3.81791 2.59534 3.78879 2.61846 3.75874 2.64388C3.725 2.67254 3.69172 2.70304 3.65798 2.73309C3.62886 2.75897 3.6002 2.78393 3.57108 2.81121C3.53687 2.8431 3.50313 2.87684 3.46939 2.91059C3.44073 2.93878 3.41207 2.96605 3.38341 2.99564C3.34921 3.03077 3.31546 3.06821 3.28126 3.10472C3.25306 3.13523 3.22487 3.16481 3.19667 3.19624C3.16247 3.23461 3.12919 3.27621 3.09544 3.31642C3.06817 3.34924 3.04044 3.38067 3.01363 3.41488C2.98035 3.45694 2.94753 3.50178 2.91471 3.54569C2.88836 3.58128 2.86155 3.61503 2.83521 3.652C2.80285 3.69777 2.77142 3.7463 2.73952 3.79391C2.7141 3.83181 2.68822 3.86833 2.66372 3.90762C2.63229 3.95708 2.60224 4.00977 2.5722 4.06108C2.54816 4.10176 2.52366 4.14105 2.50009 4.18311C2.47051 4.23626 2.44231 4.29266 2.41411 4.34812C2.39146 4.39157 2.36835 4.4341 2.34663 4.47894C2.31889 4.53625 2.29301 4.59634 2.26666 4.65597C2.24586 4.70266 2.22414 4.74749 2.20426 4.79556C2.17884 4.85704 2.15573 4.92175 2.13169 4.98508C2.1132 5.03454 2.09333 5.08261 2.0753 5.13346C2.05265 5.19817 2.03231 5.26658 2.01151 5.33406C1.99487 5.38768 1.97684 5.43899 1.96113 5.494C1.94171 5.56241 1.92507 5.63405 1.90705 5.70477C1.89272 5.76209 1.87654 5.81802 1.86313 5.87672C1.84696 5.94883 1.83355 6.02464 1.81922 6.09952C1.8072 6.161 1.7938 6.22016 1.78363 6.28302C1.77115 6.35744 1.76191 6.43602 1.75127 6.51275C1.74203 6.57978 1.7314 6.64495 1.72354 6.71382C1.71522 6.78778 1.7106 6.8659 1.70413 6.9417C1.69766 7.01751 1.6898 7.091 1.68518 7.16912C1.68102 7.23846 1.68055 7.31149 1.67824 7.38221C1.67501 7.47096 1.67038 7.55832 1.66992 7.64938C1.66992 7.6993 1.67223 7.75199 1.6727 7.80284C1.67501 8.08526 1.68656 8.37786 1.71476 8.6857C2.2417 14.5288 10.0026 18.3653 10.0026 18.3653C10.0026 18.3653 11.4882 17.6308 13.204 16.3153C15.4097 14.624 17.9955 11.9722 18.2922 8.68524C18.3745 7.77233 18.3394 6.97406 18.2215 6.27563L18.2178 6.27748ZM13.0052 9.80291L12.1242 10.2827C11.5843 10.5758 11.142 11.0177 10.8494 11.5575L10.3696 12.4386C10.2189 12.7191 9.81443 12.7182 9.66005 12.4353L9.17147 11.5497C8.87333 11.007 8.42682 10.5605 7.88416 10.2624L6.99852 9.77379C6.71656 9.62033 6.71333 9.21588 6.99529 9.06427L7.8763 8.58447C8.41618 8.29142 8.85854 7.84953 9.15113 7.30964L9.63093 6.42863C9.78162 6.14805 10.1861 6.14898 10.3405 6.43186L10.829 7.3175C11.1272 7.86016 11.5737 8.30667 12.1163 8.60481L13.002 9.09339C13.2839 9.24685 13.2872 9.6513 13.0052 9.80291Z",fill:"url(#".concat(t,"-gradient)")})}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("linearGradient",{id:"".concat(t,"-gradient"),x1:"18.3422",y1:"10.
10301",x2:"1.65278",y2:"10.0301",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#4C8CFF"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#36D2F4"})]}),(0,i.jsx)("clipPath",{id:"".concat(t,"-clip"),children:(0,i.jsx)("rect",{width:"16.6667",height:"16.6999",fill:"white",transform:"translate(1.66663 1.66675)"})})]})]}))}function e2(e){var t=e.variant,n=h(e,["variant"]);switch(t){case"exit":return(0,i.jsx)(Y,d({},n));case"help":return(0,i.jsx)(ei,d({},n));case"dark":return(0,i.jsx)(I,d({},n));case"light":return(0,i.jsx)(eh,d({},n));case"language":return(0,i.jsx)(ee,d({},n));case"opgg":return(0,i.jsx)(e_,d({},n));case"web":return(0,i.jsx)(e$,d({},n));case"mobile":return(0,i.jsx)(eg,d({},n));case"desktop":return(0,i.jsx)(J,d({},n));case"down":return(0,i.jsx)(G,d({},n));case"person":return(0,i.jsx)(eE,d({},n));case"profile-default":return(0,i.jsx)(eV,d({},n));case"premium-person":return(0,i.jsx)(eR,d({},n));case"premium":return(0,i.jsx)(eH,d({},n));case"premium-badge":return(0,i.jsx)(eB,d({},n));case"premium-gradient":return(0,i.jsx)(e1,d({},n));case"discord":return(0,i.jsx)(R,d({},n));case"youtube":return(0,i.jsx)(e0,d({},n));case"chevron-left":return(0,i.jsx)(N,d({},n));case"chevron-right":return(0,i.jsx)(E,d({},n));case"chevron-up":return(0,i.jsx)(T,d({},n));case"in":return(0,i.jsx)(el,d({},n));case"out":return(0,i.jsx)(ej,d({},n));case"dots":return(0,i.jsx)(U,d({},n));case"search":return(0,i.jsx)(eK,d({},n));case"alarm":return(0,i.jsx)(k,d({},n));case"game":return(0,i.jsx)(ea,d({},n));default:return(0,i.jsx)(ey,d({},n))}}function e6(e){var t=e.variant,n=e.icon,r=e.className,o=e.children,a=h(e,["variant","icon","className","children"]);return(0,i.jsxs)(w,d({variant:"reset",className:v(r,"IconButton-module_icon-button__-5QEs")},a,{children:[n||(0,i.jsx)(e2,{variant:t}),o]}))}function e3(e){var t=e.variant,n=e.icon,r=e.className,o=e.children,a=e.color,s=h(e,["variant","icon","className","children","color"]);return(0,i.jsxs)(w,d({variant:"reset",className:v(r,"MobileIconButton-module_icon-button__C26zp")},s,{children:[n||(0,i.jsx)(e2,{style:{color:a},variant:t}),o]}))}var e4={BLOCK:"block",FLEX:"flex",INLINE:"inline",INLINE_BLOCK:"inline-block",CONTENTS:"contents"},e5=function(e){var t=e.disabled,n=e.useCapture,r=e.display,a=e.onOutsideClick,s=e.children,c=(0,o.useRef)(null),l=(0,o.useState)(null),u=l[0],d=l[1],h=(0,o.useState)(null),m=h[0],p=h[1],g=function(e){c.current&&c.current.contains(e.target)||(m&&(m(),p(null)),p(function(){return document.addEventListener("mouseup",v,{capture:null!=n&&n})}))},v=function(e){var t=c.current&&c.current.contains(e.target);m&&(m(),p(null)),t||a(e)};return(0,o.useEffect)(function(){return t||d(function(){return document.addEventListener("mousedown",g,{capture:null!=n&&n})}),function(){u&&(u(),d(null)),m&&(m(),p(null))}},[t,n]),(0,i.jsx)("div",{ref:c,style:r!==e4.BLOCK&&Object.values(e4).includes(r)?{display:r}:void 0,children:s})},e8={dropdown:"Dropdown-module_dropdown__yXPJT",menu:"Dropdown-module_menu__Ay3ET","menu-right-top":"Dropdown-module_menu-right-top__d39Ja","menu-right-bottom":"Dropdown-module_menu-right-bottom__oR-TM","menu-left-bottom":"Dropdown-module_menu-left-bottom__TG-OM","menu-left-top":"Dropdown-module_menu-left-top__wtTb-","menu-bottom-right":"Dropdown-module_menu-bottom-right__lcdBR","menu-bottom-left":"Dropdown-module_menu-bottom-left__YUG9D",hide:"Dropdown-module_hide__XF23F"};function e7(e){var t=e.initIsOpen,n=e.button,r=e.position,a=e.children,s=e.className,c=h(e,["initIsOpen","button","position","children","className"]),l=(0,o.useState)(void 0!==t&&t),u=l[0],m=l[1];return(0,i.jsx)(e5,{onOutsideClick:function(){return m(!1)},children:(0,i.jsxs)("div",d({className:v(e8.dropdown,s)},c,{children:[n({isOpen:u,onClick:function(){return m(!u)}}),(0,i.jsx)("div",{className:v(e8.menu,e8["menu-".concat(void 0===r?"bottom-right":r)],!u&&e8.hide),children:"function"==typeof a?a({isOpen:u,onClick:function(){return m(!u)}}):a})]}))})}function e9(e){var t=e.className,n=e.children,r=e.icon,o=e.variant,a=h(e,["className","children","icon","variant"]);return(0,i.jsxs)(w,d({variant:"reset",className:v(t,"DrawerButton-module_drawer
1-button__ciXxu")},a,{children:[n,(r||o)&&(0,i.jsx)("span",{children:r||o&&(0,i.jsx)(e2,{variant:o})})]}))}var te={text:"Text-module_text__qmiLT",base:"Text-module_base__iFYgy","white-title":"Text-module_white-title__-b02X"};function tt(e){var t=e.variant,n=e.className,r=h(e,["variant","className"]);return(0,i.jsx)("div",d({className:v(n,te[void 0===t?"base":t],te.text)},r))}var tn={wrapper:"Wrapper-module_wrapper__Weu-W",title:"Wrapper-module_title__dIsaP"};function ti(e){var t=e.className,n=e.title,r=e.viewType,o=e.children,a=e.titleChildren,s=h(e,["className","title","viewType","children","titleChildren"]);return(0,i.jsxs)("div",d({className:v(t,tn[void 0===r?"mobile":r],tn.wrapper)},s,{children:[a&&a,n&&(0,i.jsx)(tt,{className:v(tn.title),children:n}),(0,i.jsx)("div",{className:tn.content,children:o})]}))}function tr(e){var t=e.className,n=e.children,r=h(e,["className","children"]);return(0,i.jsx)("a",d({className:v(t,"Link-module_link__WAd0a")},r,{children:n}))}var to={tag:"Tag-module_tag__gCp-5",base:"Tag-module_base__UREjN",new:"Tag-module_new__shGGC",beta:"Tag-module_beta__8VxSI",soon:"Tag-module_soon__n3HdN",preferred:"Tag-module_preferred__6baGC"};function ta(e){var t=e.variant,n=void 0===t?"base":t,r=e.className,a=e.text,s=h(e,["variant","className","text"]),c=(0,o.useMemo)(function(){return{base:null,new:"New",beta:"Beta",soon:"Soon",preferred:"Preferred"}},[]);return(0,i.jsx)("span",d({className:v(r,to[n],to.tag)},s,{children:a||c[n]}))}var ts={drawer:"Drawer-module_drawer__9f-Pt",open:"Drawer-module_open__AvKiq",close:"Drawer-module_close__GknWS",popover:"Drawer-module_popover__gmknh",container:"Drawer-module_container__yuadf",filled:"Drawer-module_filled__WaPuI",dimmed:"Drawer-module_dimmed__312U-"};function tc(e){var t=e.variant,n=void 0===t?"base":t,r=e.children,s=e.isOpen,c=void 0!==s&&s,l=e.setIsOpen,u=e.className,m=e.overlayClassName,p=e.portalId,g=h(e,["variant","children","isOpen","setIsOpen","className","overlayClassName","portalId"]),f=(0,o.useState)(),_=f[0],b=f[1];return(0,o.useEffect)(function(){var e=document.getElementById(p||"opgg-kit-portal");e&&b(e)},[p]),_?(0,a.createPortal)((0,i.jsxs)("div",{className:v(m,ts[n],c?ts.open:ts.close,ts.drawer),children:[(0,i.jsx)("div",d({className:v(u,c?ts.open:ts.close,ts[n],ts.container)},g,{children:r})),(0,i.jsx)("section",{className:ts.dimmed,onClick:function(){return l(!1)}})]}),_):null}var tl={languageMenu:!1,navMenu:!1,serviceMenu:!1,themeMenu:!1},tu=(0,o.createContext)({drawerStates:tl,refresh:function(){},manageDrawer:function(){},registerFunction:function(){}});function td(e){var t=e.children,n=e.viewType,r=e.serviceId,a=e.catalog,s=e.campaign,c=e.homeCard,l=e.enableUser,u=e.enableDarkMode,h=e.enableLanguage,m=e.zIndex,p=e.env,g=e.isCrawler,v=e.isSupportedWebp,f=e.homeLink,_=e.refresh,b=e.registerFunction,w=(0,o.useState)(tl),y=w[0],x=w[1];return(0,o.useEffect)(function(){document.body.style.overflow=Object.values(y).some(Boolean)?"hidden":""},[y]),(0,i.jsxs)(tu.Provider,{value:{viewType:n,serviceId:r,catalog:a,campaign:s,homeC
1ard:c,enableUser:l,enableDarkMode:u,enableLanguage:h,zIndex:m,env:p,isCrawler:g,isSupportedWebp:v,homeLink:f,refresh:_,drawerStates:y,manageDrawer:function(e,t){t||e?t&&t in tl&&x(function(n){var i;return d(d({},n),((i={})[t]=e,i))}):x(tl)},registerFunction:b},children:[t,(0,i.jsx)("div",{id:"opgg-kit-portal",className:"opgg-kit-style",style:m?{position:"relative",zIndex:m+10}:void 0})]})}function th(){var e=(0,o.useContext)(tu);return{viewType:e.viewType,serviceId:e.serviceId,catalog:e.catalog,campaign:e.campaign,homeCard:e.homeCard,enableUser:e.enableUser,enableDarkMode:e.enableDarkMode,enableLanguage:e.enableLanguage,zIndex:e.zIndex,env:e.env,isCrawler:e.isCrawler,isSupportedWebp:e.isSupportedWebp,drawerStates:e.drawerStates,homeLink:e.homeLink,refresh:e.refresh,manageDrawer:e.manageDrawer,registerFunction:e.registerFunction}}var tm={my_account:"My account",connect_account:"Connect Account",get_ad_free:"Get AD Free",ad_free:"AD Free",premium:"Premium",connect_discord:"Connect Discord",verify_as_youtube_creator:"Verify as a YouTube Creator",login:"Login",logout:"Sign out",language:"Language",dark_mode:"Dark mode",theme:"Theme",theme_system:"System",theme_light:"Light",theme_dark:"Dark",back:"Back",preferred_language:"Preferred",services:"Services",service_section_official:"Official Services",service_section_new:"New Services",service_section_beta:"BETA",service_section_soon:"Coming Soon!",service_tag_new:"New",service_tag_beta:"Beta",service_tag_soon:"Soon",language_vote_ask:"Does the translation feel natural?",language_vote_thanks:"You have contributed to taking OP.GG's details to the next level. Thank you.",language_vote_btn_join_discord:"Join Discord"},tp={id:"English",code:"en_US",origin:"en-US",name:"English",codes:["en","en_US","en-US"],dictionary:{detect_locale_desc:"Please select the language corresponding to the country you are currently in to view the content.",detect_locale_continue:"Continue",service_section_official:"Official Services",service_section_new:"New Services",service_section_beta:"BETA",service_section_soon:"Coming Soon!",service_tag_new:"New",service_tag_beta:"Beta",service_tag_soon:"Soon"}},tg=tp.code,tv=function(e){return e&&tf.find(function(t){return t.codes.some(function(t){return t.toLowerCase()===e.toLowerCase()})})||tp},tf=[tp,{id:"Korean",code:"ko_KR",origin:"ko-KR",name:"한국어",codes:["ko","ko_KR","ko-KR"],dictionary:{detect_locale_desc:"현재 사용중이신 언어에 맞는 언어로 콘텐츠를 확인하려면 해당하는 언어를 선택하세요.",detect_locale_continue:"계속",service_section_official:"정식 서비스",service_section_new:"신규 서비스",service_section_beta:"BETA",service_section_soon:"곧 찾아옵니다!",service_tag_new:"신규",service_tag_beta:"베타",service_tag_soon:"예정"}},{id:"Japanese",code:"ja_JP",origin:"ja-JP",name:"日本語",codes:["ja","ja_JP","ja-JP"],dictionary:{detect_locale_desc:"現在いる国に対応する言語を選択して、コンテンツを表示してください。",detect_locale_continue:"続行",service_section_official:"正式サービス",service_section_new:"新着サービス",service_section_beta:"ベータ",service_section_soon:"近日公開!",service_tag_new:"新着",service_tag_beta:"ベータ",service_tag_soon:"近日公開"}},{id:"Polish",code:"pl_PL",origin:"pl-PL",name:"język polski",codes:["pl","pl_PL","pl-PL"],dictionary:{detect_locale_desc:"Wybierz język odpowiadający krajowi, w kt\xf3rym się znajdujesz, aby wyświetlić zawartość.",detect_locale_continue:"Kontynuuj",service_section_official:"Oficjalne usługi",service_section_new:"Nowe usługi",service_section_beta:"BETA",service_section_soon:"Już wkr\xf3tce!",service_tag_new:"Nowe",service_tag_beta:"Beta",service_tag_soon:"Wkr\xf3tce"}},{id:"French",code:"fr_FR",origin:"fr-FR",name:"fran\xe7ais",codes:["fr","fr_FR","fr-FR"],dictionary:{detect_locale_desc:"Veuillez s\xe9lectionner la langue correspondant au pays dans lequel vous vous trouvez pour visualiser le contenu.",detect_locale_continue:"Continuer",service_section_official:"Services officiels",service_section_new:"Nouveaux services",service_section_beta:"B\xcaTA",service_section_soon:"Bient\xf4t disponible !",service_tag_new:"Nouveau",service_tag_beta:"B\xeata",service_tag_soon:"Bient\xf4t"}},{id:"German",code:"de_DE",origin:"de-DE",name:"Deutsch",codes:["de","de_DE","de-DE"],dictionary:{detect_locale_desc:"Bitte w\xe4hlen Sie die Sprache entsprechend dem Land, in dem Sie sich befinden, um den Inhalt anzuzeigen.",detect_locale_continue:"Weiter",service_section_official:"Offizielle Services",service_section_new:"Neue Services",service_section_beta:"BETA",service_section_soon:"Demn\xe4chst verf\xfcgbar!",service_tag_new:"Neu",service_tag_beta:"Beta",service_tag_soon:"Demn\xe4chst"}},{id:"Spanish",code:"es_ES",origin:"es-ES",name:"espa\xf1ol",codes:["es","es_ES","es-ES","es_MX","es-MX","es_AR","es-AR","es_CO","es-CO","es_CL","es-CL","es_PE","es-PE","es_VE","es-VE","es_UY","es-UY","es_PA","es-PA","es_DO","es-DO","es_EC","es-EC","es_GT","es-GT","es_CR","es-CR","es_PR","es-PR","es_HN","es-HN","es_SV","es-SV","es_NI","es-NI","es_CU","es-CU"],dictionary:{detect_locale_desc:"Por favor, seleccione el idioma correspondiente al pa\xeds en el que se encuentra para ver el contenido.",detect_locale_continue:"Continuar",service_section_official:"Servicios oficiales",service_section_new:"Nuevos servicios",service_section_beta:"BETA",service_section_soon:"\xa1Pr\xf3ximamente!",service_tag_new:"Nuevo",service_tag_beta:"Beta",service_tag_soon:"Pr\xf3ximamente"}},{id:"Dutch",code:"nl_NL",origin:"nl-NL",name:"Nederlands",codes:["nl","nl_NL","nl-NL"],dictionary:{detect_locale_desc:"Selecteer de taal die overeenkomt met het land waarin u zich momenteel bevindt om de inhoud te bekijken.",detect_locale_continue:"Doorgaan",service_section_official:"Offici\xeble diensten",service_section_new:"Nieuwe diensten",service_section_beta:"B\xc8TA",service_section_soon:"Binnenkort beschikbaar!",service_tag_new:"Nieuw",service_tag_beta:"B\xe8ta",service_tag_soon:"Binnenkort"}},{id:"Danish",code:"da_DK",origin:"da-DK",name:"dansk",codes:["da","da_DK","da-DK"],dictionary:{detect_locale_desc:"V\xe6lg det sprog, der svarer til det land, du befinder dig i, for at se indholdet.",detect_locale_continue:"Forts\xe6t",service_section_official:"Officielle tjenester",service_section_new:"Nye tjenester",service_section_beta:"BETA",service_section_soon:"Kommer snart!",service_tag_new:"Ny",service_tag_beta:"Beta",service_tag_soon:"Snart"}},{id:"Swedish",code:"sv_SE",origin:"sv-SE",name:"Svenska",codes:["sv","sv_SE","sv-SE"],dictionary:{detect_locale_desc:"V\xe4nligen v\xe4lj det spr\xe5k som motsvarar det land du befinner dig i f\xf6r att visa inneh\xe5llet.",detect_locale_continue:"Forts\xe4tt",service_section_official:"Officiella tj\xe4nster",service_section_new:"Nya tj\xe4nster",service_section_beta:"BETA",service_section_soon:"Kommer snart!",service_tag_new:"Ny",service_tag_beta:"Beta",service_tag_soon:"Snart"}},{id:"Norwegian",code:"no_NO",origin:"no-NO",name:"Norsk",codes:["no","no_NO","no-NO"],dictionary:{detect_locale_desc:"Vennligst velg spr\xe5ket som tilsvarer landet du befinner deg i for \xe5 vise innholdet.",detect_locale_continue:"Fortsett",service_section_official:"Offisielle tjenester",service_section_new:"Nye tjenester",service_section_beta:"BETA",service_section_soon:"Kommer snart!",service_tag_new:"Ny",service_tag_beta:"Beta",service_tag_soon:"Snart"}},{id:"Russian",code:"ru_RU",origin:"ru-RU",name:"русский язык",codes:["ru","ru_RU","ru-RU"],dictionary:{detect_locale_desc:"Пожалуйста, выберите язык, соответствующий стране, в которой вы находитесь, чтобы просмотреть контент.",detect_locale_continue:"Продолжить",service_section_official:"Официальные сервисы",service_section_new:"Новые сервисы",service_section_beta:"БЕТА",service_section_soon:"Скоро!",service_tag_new:"Новое",service_tag_beta:"Бета",service_tag_soon:"Скоро"}},{id:"Hungarian",code:"hu_HU",origin:"hu-HU",name:"magyar",codes:["hu","hu_HU","hu-HU"],dictionary:{detect_locale_desc:"K\xe9rj\xfck, v\xe1lassza ki azt a nyelvet, amely az \xd6n \xe1ltal jelenleg tart\xf3zkod\xf3 orsz\xe1ghoz tartozik, a tartalom megtekint\xe9s\xe9hez.",detect_locale_continue:"Folytat\xe1s",service_section_official:"Hivatalos szolg\xe1ltat\xe1sok",service_section_new:"\xdaj szolg\xe1ltat\xe1sok",service_section_beta:"B\xc9TA",service_section_soon:"Hamarosan!",service_tag_new:"\xdaj",service_tag_beta:"B\xe9ta",service_tag_soon:"Hamarosan"}},{id:"Finnish",code:"fi_FI",origin:"fi-FI",name:"suomi",codes:["fi","fi_FI","fi-FI"],dictionary:{detect_locale_desc:"Valitse kieli, joka vastaa maata, jossa parhaillaan oleskelet, sis\xe4ll\xf6n katseluun.",detect_locale_continue:"Jatka",service_section_official:"Viralliset palvelut",service_section_new:"Uudet palvelut",service_section_beta:"BETA",service_section_soon:"Tulossa pian!",service_tag_new:"Uusi",service_tag_beta:"Beta",service_tag_soon:"Pian"}},{id:"Turkish",code:"tr_TR",origin:"tr-TR",name:"T\xfcrk\xe7e",codes:["tr","tr_TR","tr-TR"],dictionary:{detect_locale_desc:"L\xfctfen i\xe7eriği g\xf6r\xfcnt\xfclemek i\xe7in bulunduğunuz \xfclkeye karşılık gelen dili se\xe7in.",detect_locale_continue:"Devam et",service_section_official:"Resm\xee hizmetler",service_section_new:"Yeni hizmetler",service_section_beta:"BETA",service_section_soon:"\xc7ok yakında!",service_tag_new:"Yeni",service_tag_beta:"Beta",service_tag_soon:"Yakında"}},{id:"Romanian",code:"ro_RO",origin:"ro-RO",name:"limba rom\xe2nă",codes:["ro","ro_RO","ro-RO"],dictionary:{detect_locale_desc:"Vă rugăm să selectați limba corespunzătoare țării \xeen care vă aflați pentru a vizualiza conținutul.",detect_locale_continue:"Continuați",service_section_official:"Servicii oficiale",service_section_new:"Servicii noi",service_section_beta:"BETA",service_section_soon:"\xcen cur\xe2nd!",service_tag_new:"Nou",service_tag_beta:"Beta",service_tag_soon:"\xcen cur\xe2nd"}},{id:"Portuguese",code:"pt_BR",origin:"pt-BR",name:"portugu\xeas",codes:["pt","pt_BR","pt-BR","pt_PT","pt-PT"],dictionary:{detect_locale_desc:"Por favor, selecione o idioma correspondente ao pa\xeds em que voc\xea est\xe1 para visualizar o conte\xfado.",detect_locale_continue:"Continuar",service_section_official:"Servi\xe7os oficiais",service_section_new:"Novos servi\xe7os",service_section_beta:"BETA",service_section_soon:"Em breve!",service_tag_new:"Novo",service_tag_beta:"Beta",service_tag_soon:"Em breve"}},{id:"Simplified Chinese",code:"zh_CN",origin:"zh-CN",name:"简体中文",codes:["zh","zh_CN","zh-CN","c"],dictionary:{detect_locale_desc:"请选择与您所在国家相对应的语言以查看内容。",detect_locale_continue:"继续",service_section_official:"正式服务",service_section_new:"新服务",service_section_beta:"测试版",service_section_soon:"即将推出!",service_tag_new:"新",service_tag_beta:"测试版",service_tag_soon:"即将推出"}},{id:"Traditional Chinese",code:"zh_TW",origin:"zh-TW",name:"繁體中文",codes:["zh","zh_TW","zh-TW","zh_HK","zh-HK"],dictionary:{detect_locale_desc:"請選擇與您目前所在國家相對應的語言以檢視內容。",detect_locale_continue:"繼續",service_section_official:"正式服務",service_section_new:"新服務",service_section_beta:"測試版",service_section_soon:"即將推出!",service_tag_new:"新",service_tag_beta:"測試版",service_tag_soon:"即將推出"}},{id:"Serbian",code:"sr_CS",origin:"sr-CS",name:"српски језик",codes:["sr","sr_CS","sr-CS"],dictionary:{detect_locale_desc:"Molimo odaberite jezik koji odgovara zemlji u kojoj se trenutno nalazite kako biste prikazali sadržaj.",detect_locale_continue:"Nastavi",service_section_official:"Zvanične usluge",service_section_new:"Nove usluge",service_section_beta:"BETA",service_section_soon:"Uskoro!",service_tag_new:"Novo",service_tag_beta:"Beta",service_tag_soon:"Uskoro"}},{id:"Arabic",code:"ar_SA",origin:"ar-SA",name:"العربية",codes:["ar","ar_AR","ar-AR","ar_SA","ar-SA","ar_EG","ar-EG","ar_AE","ar-AE","ar_DZ","ar-DZ","ar_BH","ar-BH","ar_DJ","ar-DJ","ar_IQ","ar-IQ","ar_JO","ar-JO","ar_KW","ar-KW","ar_LB","ar-LB","ar_LY","ar-LY","ar_MA","ar-MA","ar_OM","ar-OM","ar_QA","ar-QA","ar_SO","ar-SO","ar_SD","ar-SD","ar_SY","ar-SY","ar_TN","ar-TN","ar_YE","ar-YE"],dictionary:{detect_locale_desc:"يرجى اختيار اللغة المطابقة للبلد الذي تقيم فيه لعرض المحتوى.",detect_locale_continue:"استمر",service_section_official:"الخدمات الرسمية",service_section_new:"الخدمات الجديدة",service_section_beta:"تجريبية",service_section_soon:"قريبًا!",service_tag_new:"جديد",service_tag_beta:"تجريبي",service_tag_soon:"قريبًا"}},{id:"Italian",code:"it_IT",origin:"it-IT",name:"italiano",codes:["it","
1it_IT","it-IT"],dictionary:{detect_locale_desc:"Seleziona la lingua corrispondente al paese in cui ti trovi per visualizzare i contenuti.",detect_locale_continue:"Continua",service_section_official:"Servizi ufficiali",service_section_new:"Nuovi servizi",service_section_beta:"BETA",service_section_soon:"Prossimamente!",service_tag_new:"Nuovo",service_tag_beta:"Beta",service_tag_soon:"Prossimamente"}},{id:"Thai",code:"th_TH",origin:"th-TH",name:"ไทย",codes:["th","th_TH","th-TH"],dictionary:{detect_locale_desc:"กรุณาเลือกภาษาที่ตรงกับประเทศที่คุณอยู่ในปัจจุบันเพื่อดูเนื้อหา",detect_locale_continue:"ดำเนินการต่อ",service_section_official:"บริการอย่างเป็นทางการ",service_section_new:"บริการใหม่",service_section_beta:"เบต้า",service_section_soon:"เร็ว ๆ นี้!",service_tag_new:"ใหม่",service_tag_beta:"เบต้า",service_tag_soon:"เร็ว ๆ นี้"}},{id:"Vietnamese",code:"vi_VN",origin:"vi-VN",name:"Tiếng Việt",codes:["vi","vi_VN","vi-VN"],dictionary:{detect_locale_desc:"Vui l\xf2ng chọn ng\xf4n ngữ tương ứng với quốc gia hiện tại của bạn để xem nội dung.",detect_locale_continue:"Tiếp tục",service_section_official:"Dịch vụ ch\xednh thức",service_section_new:"Dịch vụ mới",service_section_beta:"BETA",service_section_soon:"Sắp ra mắt!",service_tag_new:"Mới",service_tag_beta:"Beta",service_tag_soon:"Sắp ra mắt"}},{id:"Norsk",code:"nb_NO",origin:"nb-NO",name:"Norsk",codes:["nb","nb_NO","nb-NO"],dictionary:{detect_locale_desc:"Vennligst velg spr\xe5ket som tilsvarer landet du befinner deg i for \xe5 vise innholdet.",detect_locale_continue:"Fortsett",service_section_official:"Offisielle tjenester",service_section_new:"Nye tjenester",service_section_beta:"BETA",service_section_soon:"Kommer snart!",service_tag_new:"Ny",service_tag_beta:"Beta",service_tag_soon:"Snart"}},{id:"Lithuanian",code:"lt_LT",origin:"lt-LT",name:"Lietuvių",codes:["lt","lt_LT","lt-LT"],dictionary:{detect_locale_desc:"Prašome pasirinkti kalbą, atitinkančią šalį, kurioje šiuo metu esate, kad peržiūrėtumėte turinį.",detect_locale_continue:"Tęsti",service_section_official:"Oficialios paslaugos",service_section_new:"Naujos paslaugos",service_section_beta:"BETA",service_section_soon:"Jau greitai!",service_tag_new:"Nauja",service_tag_beta:"Beta",service_tag_soon:"Netrukus"}}],t_={};function tb(e,t){var n=navigator.languages,i=navigator.language,r=e.map(function(e){return d(d({},e),{preferred:e.codes.some(function(e){return e.toLowerCase()===i.toLowerCase().replace("-","_")||e.toLowerCase()===i.toLowerCase().slice(0,2).replace("-","_")})})}).sort(function(e,t){var i=n.findIndex(function(t){return e.codes.find(function(e){return e.toLowerCase()===t.toLowerCase()})}),r=n.findIndex(function(e){return t.codes.find(function(t){return t.toLowerCase()===e.toLowerCase()})});return -1===i&&-1===r?0:-1===i?1:-1===r?-1:i-r}),o=r.findIndex(function(e){return e.code===t.code});if(o>0){var a=r.splice(o,1)[0];r.unshift(a)}return r}tf.forEach(function(e){e.codes.forEach(function(t){t_[t.toLowerCase()]=e})});var tw="_otm",ty="_oibc",tx="_olvt",tk="_olv",tC="_opvc",tj={path:"/",domain:".op.gg"},tN=function(e){return(0,s.parseCookies)(e)[tw]},tS=function(e){return(0,s.parseCookies)(e)._ot},tL=function(e){(0,s.destroyCookie)(e,"_ot",d({},tj))},tE=function(e,t){(0,s.setCookie)(t,ty,e,d({},tj))},tO=function(){return parseInt((0,s.parseCookies)()[tk])},tM=function(e,t){(0,s.setCookie)(t,tx,e,d({maxAge:tP(90)},tj))},tT=function(){return(0,s.parseCookies)()[tx]};function tP(e){return 24*e*3600}var tB=(0,o.createContext)({defaultLanguage:tp,dictionary:tm,language:tp,languages:[],setLanguage:function(){},t:function(e){return tm[e]||e}});function tI(e){var t=e.children,n=e.langCode,r=e.langCodes,a=e.dictionary,c=e.onChangeLanguage,l=e.customChangeLanguage,u=e.debugMode,h=(0,o.useMemo)(function(){var e,t;return e=tA(r||[]),t=n||tg,[e.find(function(e){return e.codes.some(function(e){return e.toLowerCase()===t.toLowerCase()})})||tD(t),e]},[n,r]),m=h[0],p=h[1],g=(0,o.useMemo)(function(){return tv(n).dictionary},[n]),v=(0,o.useMemo)(function(){var e=d(d(d({},tm),g),a);return{dictionary:e,keyList:Object.keys(e)}},[a,g]),f=v.dictionary,_=v.keyList,b=p.find(function(e){return e.code===tg})||tp;return(0,i.jsx)(tB.Provider,{value:{dictionary:f,defaultLanguage:b,language:m,languages:p,setLanguage:function(e,t){if(l)return l(e,t);c&&c(e,t),(0,s.destroyCookie)(n,"_ol",{path:"/"}),(0,s.destroyCookie)(n,"_ol",{path:"/",domain:"op.gg"}
1),(0,s.destroyCookie)(n,"_ol",{path:"/",domain:".op.gg"}),(0,s.setCookie)(n,"_ol",e,d({maxAge:tP(365)},tj));var n,i=new URL(window.location.href);i.searchParams.has("hl")?(i.searchParams.delete("hl"),window.location.href=i.toString()):window.location.reload()},t:function(e){var t;return"translationKey"===u?"~".concat(e,"~"):(t=_.includes(e)?f[e]:e,"translation"===u?"~".concat(t,"~"):t)}},children:t})}var tA=function(e){return e.map(function(e){var t=t_[e.toLowerCase()];return t?t.code===e?t:d(d({},t),{__code__:e}):tD(e)})};function tD(e){return{id:e,name:e,origin:e,code:e,codes:[],dictionary:{}}}function tR(){var e=(0,o.useContext)(tB);return{dictionary:e.dictionary,defaultLanguage:e.defaultLanguage,language:e.language,languages:e.languages,setLanguage:e.setLanguage,t:e.t}}function tz(e){var t=e.className,n=e.isOpen,r=e.setIsOpen,a=e.setLanguage,s=e.language,c=e.languages,l=h(e,["className","isOpen","setIsOpen","setLanguage","language","languages"]),u=th().viewType,m=(0,o.useState)([]),p=m[0],g=m[1],f=tR().t;return(0,o.useEffect)(function(){g(tb(c,s))},[c]),(0,i.jsx)(tc,d({className:v(t,"LanguageMenu-module_language-menu__Cje9F"),overlayClassName:v("responsive"===u&&"LanguageMenu-module_responsive__IYx46"),isOpen:n,setIsOpen:r},l,{children:(0,i.jsxs)("div",{className:"LanguageMenu-module_inner__ld7LF",children:[(0,i.jsx)("div",{className:"LanguageMenu-module_header__ZPvx4",children:(0,i.jsx)(w,{variant:"reset",className:"LanguageMenu-module_close-btn__G7iXp",onClick:function(){return r(!1)},"aria-label":"Close",children:(0,i.jsx)(Y,{})})}),(0,i.jsx)("div",{className:"LanguageMenu-module_content__R-QyN",children:p.map(function(e,t){return(0,i.jsx)(e9,{className:v(e.id===s.id&&"LanguageMenu-module_selected__RUBxj"),disabled:e.id===s.id,onClick:function(){return a(e.code,e)},children:(0,i.jsxs)("span",{className:"LanguageMenu-module_btn-text__HKpio",children:[e.name,e.id!==s.id&&e.preferred&&(0,i.jsx)(ta,{variant:"preferred",className:"LanguageMenu-module_preferred__wSSL0",text:f("preferred_language")})]})},t)})})]})}))}function tq(){return(tq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var tU,tH,tF,tG,tV=function(e){return o.createElement("svg",tq({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20"},e),tU||(tU=o.createElement("rect",{width:20,height:20,fill:"#FF6C81",rx:6})),tH||(tH=o.createElement("path",{fill:"#1C1C1F",d:"M4.986 8.902a1.625 1.625 0 1 0 0-3.25 1.625 1.625 0 0 0 0 3.25M15.014 8.902a1.625 1.625 0 1 0 0-3.25 1.625 1.625 0 0 0 0 3.25M15.595 15.646a.6.6 0 0 1-.582-.449 5.19 5.19 0 0 0-5.014-3.862 5.19 5.19 0 0 0-5.014 3.862.602.602 0 1 1-1.165-.307A6.395 6.395 0 0 1 10 10.13a6.394 6.394 0 0 1 6.178 4.76.602.602 0 0 1-.582.756"})))};function tW(){return(tW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var tJ,tK,tX=function(e){return o.createElement("svg",tW({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20"},e),tF||(tF=o.createElement("rect",{width:20,height:20,fill:"#00D8B0",rx:6})),tG||(tG=o.createElement("path",{fill:"#1C1C1F",d:"M4.986 8.902a1.625 1.625 0 1 0 0-3.25 1.625 1.625 0 0 0 0 3.25M15.014 8.902a1.625 1.625 0 1 0 0-3.25 1.625 1.625 0 0 0 0 3.25M10 17.062a6.395 6.395 0 0 1-6.178-4.76.602.602 0 1 1 1.165-.307 5.19 5.19 0 0 0 5.014 3.863 5.19 5.19 0 0 0 5.013-3.863.602.602 0 1 1 1.165.307A6.394 6.394 0 0 1 10 17.062z"})))};function tY(){return(tY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var tQ=function(e){return o.createElement("svg",tY({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20"},e),tJ||(tJ=o.createElement("rect",{width:20,height:20,fill:"#FFD424",rx:6})),tK||(tK=o.createElement("path",{fill:"#1C1C1F",d:"M4.986 8.902a1.625 1.625 0 1 0 0-3.25 1.625 1.625 0 0 0 0 3.25M15.013 8.902a1.625 1.625 0 1 0 0-3.25 1.625 1.625 0 0 0 0 3.25M15.014 13.794H4.987a.602.602 0 1 1 0-1.205h10.027a.602.602 0 1 1 0 1.205"})))},t$={production:{config_url:"https://s-opgg-kit.op.gg/gnb/config",api_url:"https://platform-api.op.gg",internal_config_url:"http://platform-api-internal.op.gg/gnb/config",member_api_url:"https://member-api.op.gg",member_web_url:"https://member.op.gg"},development:{config_url:"https://s-opgg-kit.op.gg/gnb/config-alpha",api_url:"https://platform-api.op.gg",internal_config_url:"https://s-opgg-kit.op.gg/gnb/config-alpha",member_api_url:"https://member-api-alpha.op.gg",member_web_url:"https://member-alpha.op.gg"}},tZ="LanguageVote-module_content__sqFxq",t0="LanguageVote-module_message__NFq7h",t1="LanguageVote-module_close__y8NVK",t2="LanguageVote-module_buttons__u6JTE",t6="LanguageVote-module_vote-button__mQQQb";function t3(e){var t=this,n=e.language,r=e.languages,a=(0,o.useState)(0),c=a[0],l=a[1],u=(0,o.useState)(null),h=u[0],g=u[1],v=th(),f=tR().t;(0,o.useEffect)(function(){g(tb(r,n).find(function(e){return!0===e.preferred}))},[r]),(0,o.useEffect)(function(){var e,t;t=parseInt((0,s.parseCookies)()[tC])||0,(0,s.setCookie)(e,tC,(t+1).toString(),d({maxAge:tP(1)},tj))},[]),(0,o.useEffect)(function(){var e,t;if(h&&window.location.hostname.includes("op.gg")){if(void 0===tT()){var i={default:{default:100,en_US:3,ko_KR:10,ja_JP:50,es_ES:30,zh_CN:20},"esports.op.gg":{default:100}},r=null!=(e=i[window.location.hostname])?e:i.default;Math.floor(100*Math.random())<=(null!=(t=r[h.code])?t:r.default)?tM("true"):tM("false")}if("false"!==tT()&&!(5>parseInt((0,s.parseCookies)()[tC]))&&h.id===n.id)if(tO()){if(tO()>=1)return}else l(1)}}
1,[h]);var _=function(e){return m(t,void 0,void 0,function(){return p(this,function(t){var i;switch(t.label){case 0:l(2),(0,s.setCookie)(i,tk,"1",d({maxAge:tP(30)},tj)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,y(n.code,window.location.hostname,window.location.pathname,e)];case 2:case 3:return t.sent(),[3,4];case 4:return[2]}})})},b=function(){var e;l(0),(0,s.setCookie)(e,tk,"2",d({maxAge:tP(2)},tj))},y=function(e,n,i,r){return m(t,void 0,void 0,function(){var t;return p(this,function(o){switch(o.label){case 0:return t=t$["development"===v.env?"development":"production"].api_url,[4,fetch("".concat(t,"/language-vote/vote"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({locale:e,domain:n,path:i,vote:r})})];case 1:if(200!==o.sent().status)throw Error("Failed to vote");return[2]}})})};return(0,i.jsx)(i.Fragment,{children:c>0&&c<=2&&(0,i.jsx)("div",{className:"LanguageVote-module_language-vote__TRbHm",children:(0,i.jsxs)("div",{className:"LanguageVote-module_wrapper__20dsd",children:[(0,i.jsx)("div",{className:"LanguageVote-module_arrow__JW9Uv",children:(0,i.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M6 0L12 6L6 12L0 6L6 0Z"})})}),1===c&&(0,i.jsxs)("div",{className:tZ,children:[(0,i.jsx)("div",{className:t0,children:f("language_vote_ask")}),(0,i.jsxs)("div",{className:t2,children:[(0,i.jsx)(w,{variant:"reset",className:t6,onClick:function(){return _(1)},"aria-label":"Excellent",children:(0,i.jsx)(tX,{})}),(0,i.jsx)(w,{variant:"reset",className:t6,onClick:function(){return _(0)},"aria-label":"Okay",children:(0,i.jsx)(tQ,{})}),(0,i.jsx)(w,{variant:"reset",className:t6,onClick:function(){return _(-1)},"aria-label":"Poor",children:(0,i.jsx)(tV,{})})]}),(0,i.jsx)(w,{className:t1,variant:"reset",onClick:function(){return b()},"aria-label":"Close",children:(0,i.jsx)(Y,{})})]}),2===c&&(0,i.jsxs)("div",{className:tZ,onClick:function(){return l(c+1)},children:[(0,i.jsx)("div",{className:"LanguageVote-module_icon__t9VH1",children:"✅"}),(0,i.jsx)("div",{className:t0,children:f("language_vote_thanks")}),(0,i.jsx)("div",{className:t2,children:(0,i.jsx)(tr,{className:"LanguageVote-module_thankyou-button__VXwp1",href:"https://discord.gg/opgg",target:"_blank",children:f("language_vote_btn_join_discord")})}),(0,i.jsx)(w,{className:t1,variant:"reset",children:(0,i.jsx)(Y,{})})]})]})})})}var t4=(0,o.createContext)({login:function(){},logout:function(){},myAccount:function(){},membership:function(){}});function t5(e){var t=e.children,n=e.user,r=e.userToken,o=e.userLoading,a=e.userError,s=e.onClickMyAccount,c=e.onClickLogout,l=e.onClickLogin,u=e.customClickMyAccount,d=e.customClickLogout,h=e.customClickLogin,m=e.env;return(0,i.jsx)(t4.Provider,{value:{user:n,userToken:r,userLoading:o,userError:a,login:function(){if(h)return h();l&&l();var e=window.encodeURIComponent(window.location.href),t=t$["development"===m?"development":"production"].member_web_url;window.location.href="".concat(t,"/accounts/login?redirect_url=").concat(e)},logout:function(){if(d)return d();c&&c(),tL(),window.location.reload()},myAccount:function(e){if(u)return u();s&&s();var t=window.encodeURIComponent(window.location.href),n=t$["development"===m?"development":"production"].member_web_url,i=e?"#".concat(encodeURIComponent(e)):"";window.open("".concat(n,"/personal-info?redirect_url=").concat(t).concat(i),"_blank")},membership:function(){var e=window.encodeURIComponent(window.location.href),t=t$["development"===m?"development":"production"].member_web_url;window.open("".concat(t,"/membership?redirect_url=").concat(e),"_blank")}},children:t})}function t8(){var e=(0,o.useContext)(t4);return{user:e.user,userToken:e.userToken,userLoading:e.userLoading,userError:e.userError,logout:e.logout,myAccount:e.myAccount,membership:e.membership,login:e.login}}var t7="NavMenu-module_btn__El5ox",t9="NavMenu-module_with-icon__wToqR",ne="NavMenu-module_hr__WpSRo";function nt(e){var t,n,r,o,a=e.isOpen,s=e.setIsOpen,c=e.navChildren,l=e.className,u=h(e,["isOpen","setIsOpen","navChildren","className"]),m=th(),p=m.enableUser,g=m.viewType,f=t8(),_=f.user,b=f.logout,y=f.myAccount,x=f.membership,k=tR().t,C=k((null==(n=null==(t=null==_?void 0:_.data)?void 0:t.subscriptions)?void 0:n.some(function(e){return"membership"===e.category&&"premium"===e.type}))?"premium":"ad_free");return(0,i.jsx)(tc,d({className:v(l,"NavMenu-module_nav-menu__OxRh-"),variant:"popover",isOpen:a,setIsOpen:s,overlayClassName:v("responsive"===g&&"NavMenu-module_responsive__ihUew","NavMenu-module_desktop-nav-overlay__JC2n6")},u,{children:(0,i.jsxs)("div",{className:"NavMenu-module_inner__LpnHY",children:[(0,i.jsx)("div",{className:"NavMenu-module_header__e3bPx",children:(0,i.jsx)(w,{variant:"reset",onClick:function(){return s(!1)},"aria-label":"Close",children:(0,i.jsx)(Y,{})})}),(0,i.jsxs)("div",{className:"NavMenu-module_content__X2qcC",children:[p&&_&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"NavMenu-module_user__Q-3bT",children:[_.isPremium&&(0,i.jsxs)("span",{className:"NavMenu-module_badge__k3oUP",children:[(0,i.jsx)("span",{className:"NavMenu-module_badge-icon__4CCJw",children:(0,i.jsx)(e2,{variant:"premium-badge"})}),(0,i.jsx)("span",{className:"NavMenu-module_badge-label__4f7fK",children:C})]}),(0,i.jsxs)("span",{className:"NavMenu-module_profile-row__es9QK",children:[(null==(r=_.data)?void 0:r.profile_image_url)?(0,i.jsx)("img",{src:_.data.profile_image_url,alt:null!=(o=_.name)?o:""}):(0,i.jsx)(e2,{variant:"profile-default"}),(0,i.jsx)("span",{children:_.name})]})]}
1),(0,i.jsx)(e9,{className:v(t7,"NavMenu-module_account-button__T0u4h"),onClick:function(){return y()},children:k("my_account")}),(0,i.jsx)("hr",{className:ne}),(0,i.jsx)("div",{className:"NavMenu-module_connect-title__xY7d2",children:k("connect_account")}),!_.isPremium&&(0,i.jsx)(e9,{className:v(t7,"NavMenu-module_ad-free-button__2NajI"),onClick:function(){x(),s(!1)},children:(0,i.jsxs)("span",{className:t9,children:[(0,i.jsx)(e2,{variant:"premium-gradient"}),k("get_ad_free")]})}),(0,i.jsx)(e9,{className:t7,onClick:function(){y("socialAccounts"),s(!1)},children:(0,i.jsxs)("span",{className:t9,children:[(0,i.jsx)(e2,{variant:"discord"}),k("connect_discord")]})}),(0,i.jsx)(e9,{className:t7,onClick:function(){y("youtube-verification"),s(!1)},children:(0,i.jsxs)("span",{className:t9,children:[(0,i.jsx)(e2,{variant:"youtube"}),k("verify_as_youtube_creator")]})})]}),c,p&&_&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("hr",{className:ne}),(0,i.jsx)(e9,{className:v(t7,"NavMenu-module_logout-button__JB99r"),onClick:function(){return b()},children:k("logout")})]})]})]})}))}function nn(e){return null==e?void 0:e.reduce(function(e,t){var n;return"game_stats"===t.id?e[0]={id:t.id,title:t.title,wrapperType:"half",items:t.items||[]}:"apps"===t.id?e[2]={id:t.id,title:t.title,wrapperType:"full",items:t.items||[]}:e[1]={id:"services",title:"",wrapperType:"big",items:g(g([],(null==(n=e[1])?void 0:n.items)||[],!0),[t],!1)},e},[])}var ni=function(e){return e.is_soon?"soon":e.is_beta?"beta":e.is_new?"new":""},nr=function(e){e?t=e:"undefined"!=typeof window&&(t=null==navigator?void 0:navigator.userAgent);var t,n=!1;if(!t)return n;var i=c(t),r={"Android Browser":4.2,Baidu:7.12,Chrome:32,Edge:18,Firefox:65,Safari:14,"Mobile Safari":14,Opera:19,QQBrowser:10.4};if(!no(i)){var o=i.browser,a=o.name,s=o.version,l=i.os.version;if(a&&s){var u=s.split("."),d=Number("".concat(u[0]).concat(u[1]?".".concat(u[1]):""));if(-1!==Object.keys(r).indexOf(a)&&d>=r[a]){if("Safari"===a&&l&&11>Number(l.split(".")[0]))return n;n=!0}}}return n},no=function(e){return e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype},na=function(e,t,n,i){if(!e)return e;var r=e.split("?"),o=r[0],a=r[1],s="image=q_auto:good".concat(t?",f_webp":",f_png").concat(n?",w_".concat(2*n):"").concat(i?",h_".concat(2*i):"");return"".concat(o,"?").concat(a?"".concat(a,"&").concat(s):s)};function ns(e){var t=e.className,n=e.iconSrc,r=e.grayIconSrc,o=e.children,a=e.isActive,s=h(e,["className","iconSrc","grayIconSrc","children","isActive"]),c=th().isSupportedWebp;return(0,i.jsxs)(tr,d({className:v(t,a&&"GNBLink-module_active__eevH5","GNBLink-module_gnb-link__bkjPT")},s,{children:[n&&(0,i.jsx)("img",{className:"GNBLink-module_hover-icon__QkAg9",src:na(n,c,24,24),width:24,height:24,alt:"",loading:"eager"}),r&&(0,i.jsx)("img",{className:"GNBLink-module_icon__QH4zn",src:na(r,c,24,24),width:24,height:24,alt:"",loading:"eager"}),o]}))}function nc(e){var t=e.className,n=h(e,["className"]);return(0,i.jsx)("div",d({className:v(t,"Paper-module_paper__FfKpp")},n))}var nl={"img-icon-link":"ImgIconLink-module_img-icon-link__P-35o",text:"ImgIconLink-module_text__NFA-i","img-wrapper":"ImgIconLink-module_img-wrapper__XXtVE",updated:"ImgIconLink-module_updated__plyQy",tag:"ImgIconLink-module_tag__RQJzO",drawer:"ImgIconLink-module_drawer__a47bk",img:"ImgIconLink-module_img__WOvv8",big:"ImgIconLink-module_big__Y-zI8","drawer-lg":"ImgIconLink-module_drawer-lg__7U4qP"};function nu(e){var t=e.variant,n=void 0===t?"drawer":t,r=e.isUpdated,o=e.tag,a=e.tagText,s=e.imgSrc,c=e.className,l=e.children,u=h(e,["variant","isUpdated","tag","tagText","imgSrc","className","children"]),m=th().isSupportedWebp,p=nd[n];return(0,i.jsxs)(tr,d({className:v(nl["img-icon-link"],nl[n],c)},u,{children:[(0,i.jsxs)("span",{className:v(nl["img-wrapper"],r&&nl.updated),children:[(0,i.jsx)("img",{src:na(s,m,p,p),alt:"",width:p,height:p,className:nl.img,loading:"lazy"}),o&&(0,i.jsx)(ta,{variant:o,text:a,className:nl.tag})]}),(0,i.jsx)("span",{className:nl.text,children:l})]}))}var nd={"drawer-lg":32,big:48,dropdown:24,drawer:24};function nh(){var e,t,n="undefined"!=typeof window?(null==(e=null==window?void 0:window.navigator)?void 0:e.userAgent)||(null==(t=null==window?void 0:window.navigator)?void 0:t.vendor):"";return/iPad|iPhone|iPod/.test(n)?"ios":"android"}var nm={"menu-dropdown":"MenuDropdown-module_menu-dropdown__MHKhV","button-wrapper":"MenuDropdown-module_button-wrapper__e6Edw",updated:"MenuDropdown-module_updated__x-7v4",button:"MenuDropdown-module_button__-mdNw",chevron:"MenuDropdown-module_chevron__dZHwO","chevron-reverse":"MenuDropdown-module_chevron-reverse__PcJwt",active:"MenuDropdown-module_active__XHZcf","not-active":"MenuDropdown-module_not-active__se3pz","hover-icon":"MenuDropdown-module_hover-icon__AnsS9",icon:"MenuDropdown-module_icon__DHDRt",content:"MenuDropdown-module_content__2fkZj","half-wrapper":"MenuDropdown-module_half-wrapper__xBfm0","full-wrapper":"MenuDropdown-module_full-wrapper__JY3jL","big-wrapper":"MenuDropdown-module_big-wrapper__QTXG-","half-link":"MenuDropdown-module_half-link__UO8MM","full-link":"MenuDropdown-module_full-link__YMlbR","big-link":"MenuDropdown-module_big-link__i-tXn",title:"MenuDropdown-module_title__2RYcq",hr:"MenuDropdown-module_hr__k7r1J"};function np(e){var t=e.className,n=e.initIsOpen,r=e.catalog,a=h(e,["className","initIsOpen","catalog"]),s=nh();if(!r)return null;var c=nn(r);return(0,i.jsx)(e7,d({className:v(t,nm["menu-dropdown"]),initIsOpen:void 0!==n&&n,position:"bottom-left",button:function(e){var t=e.isOpen,n=e.onClick;return(0,i.jsx)(e6,{variant:"dots",className:v(t&&nm.active,nm.button),onClick:n,"aria-label":"View More"})}},a,{children:(0,i.jsx)(nc,{className:v(nm.content,_),children:null==c?void 0:c.map(function(e,t){var n;return"apps"===e.id?null:(0,i.jsxs)(o.Fragment,{children:[0!==t&&(0,i.jsx)("hr",{className:nm.hr}),(0,i.jsx)(ti,{className:nm.content,titleChildren:(0,i.jsx)(tt,{className:v(nm.title),children:e.title}),viewType:"desktop",children:(0,i.jsx)("div",{className:nm["".concat(e.wrapperType,"-wrapper")],children:null==(n=e.items)?void 0:n.map(function(t,n){var r=t.title,o=t.link,a=t.dark_icon_url,c=t.is_updated,l=ni(t);return(0,i.jsx)(nu,{href:(null==o?void 0:o[s])||(null==o?void 0:o.pc),className:nm["".concat(e.wrapperType,"-link")],variant:"services"===e.id?"big":"drawer-lg",imgSrc:a,target:"_blank",isUpdated:c,tag:l||void 0,children:r},n)})})})]},e.id)})})}))}var ng={badge:"PingBadge-module_badge__PU1-k",fadeIn:"PingBadge-module_fadeIn__h4W47",animated:"PingBadge-module_animated__eSdS3",ping:"PingBadge-module_ping__F3dgP",small:"PingBadge-module_small__CS1Vd",medium:"PingBadge-module_medium__8bXK-",large:"PingBadge-module_large__-sFyR","top-right":"PingBadge-module_top-right__Z0Jjt","top-left":"PingBadge-module_top-left__q6f-E","bottom-right":"PingBadge-module_bottom-right__7DIyK","bottom-left":"PingBadge-module_bottom-left__fy92-",
1withEntrance:"PingBadge-module_withEntrance__SpP9a",badgeEnter:"PingBadge-module_badgeEnter__9mXDL",sparkle:"PingBadge-module_sparkle__y5DRV",entrance:"PingBadge-module_entrance__fOrve",entranceAppear:"PingBadge-module_entranceAppear__gMcoa",entranceGlow:"PingBadge-module_entranceGlow__Qs45D",textBoing:"PingBadge-module_textBoing__Skiyz",textGlowPulse:"PingBadge-module_textGlowPulse__1lQ2J"};function nv(e){var t=e.position,n=void 0===t?"top-right":t,r=e.size,o=e.className,a=e.showEntrance,s=void 0!==a&&a,c=e.entranceText,l=void 0===c?"New game!":c;return(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsx)("span",{className:v(ng.entrance,ng[n],o),"aria-label":l,children:l}),(0,i.jsx)("span",{className:v(ng.badge,ng[n],ng[void 0===r?"small":r],ng.animated,s&&ng.withEntrance,o),"aria-label":"New notification"})]})}var nf="opgg_campaign_interaction";function n_(){try{var e=localStorage.getItem(nf);return e?JSON.parse(e):{}}catch(e){return{}}}function nb(e,t){try{var n=n_(),i=n.new_game,r="",o="",a="";if(i){var s=i.split("|");s.length>=1&&(r=s[0]),s.length>=2&&(o=s[1]),s.length>=3&&(a=s[2])}r!==e&&(o="",a=""),"first_seen"===t?o="first_seen":"seen"===t?o="seen":"dismissed"===t&&(a="dismissed"),n.new_game="".concat(e,"|").concat(o,"|").concat(a),localStorage.setItem(nf,JSON.stringify(n))}catch(e){}}function nw(e){var t=e.campaign,n=h(e,["campaign"]),r=(0,o.useState)(!1),a=r[0],s=r[1],c=(0,o.useState)(!1),l=c[0],u=c[1];return(0,o.useEffect)(function(){var e=null==t?void 0:t.new_game;if(e){var n=n_().new_game,i="",r="",o="";if(n){var a=n.split("|");a.length>=1&&(i=a[0]),a.length>=2&&(r=a[1]),a.length>=3&&(o=a[2])}(i!==e&&(r="",o=""),"dismissed"!==o)?(s(!0),u("seen"!==r),r?"first_seen"===r&&nb(e,"seen"):nb(e,"first_seen")):s(!1)}else s(!1)},[null==t?void 0:t.new_game]),a?(0,i.jsx)(nv,d({},n,{showEntrance:l,entranceText:"New game!"})):null}var ny,nx,nk,nC,nj,nN,nS,nL,nE,nO,nM,nT,nP,nB={"service-dropdown":"ServiceDropdown-module_service-dropdown__H1a5S","button-wrapper":"ServiceDropdown-module_button-wrapper__bJEuj",badge:"ServiceDropdown-module_badge__wxosd",button:"ServiceDropdown-module_button__-5SsX",chevron:"ServiceDropdown-module_chevron__WfTke","chevron-reverse":"ServiceDropdown-module_chevron-reverse__FxKVS",active:"ServiceDropdown-module_active__OLThb","not-active":"ServiceDropdown-module_not-active__lGEfP","hover-icon":"ServiceDropdown-module_hover-icon__8OmId",icon:"ServiceDropdown-module_icon__jwlXl",content:"ServiceDropdown-module_content__04cSR",sections:"ServiceDropdown-module_sections__WFkQb",section:"ServiceDropdown-module_section__w1Ddl","section-title":"ServiceDropdown-module_section-title__G7UU7",grid:"ServiceDropdown-module_grid__7yGJe",link:"ServiceDropdown-module_link__k-dBV",selected:"ServiceDropdown-module_selected__KX-wB",title:"ServiceDropdown-module_title__uYXbi",updated:"ServiceDropdown-module_updated__yrFK6",tag:"ServiceDropdown-module_tag__c-lCU","tag-new":"ServiceDropdown-module_tag-new__3V-uq","tag-beta":"ServiceDropdown-module_tag-beta__-r9DG"},nI=[{id:"official",titleKey:"service_section_official",tag:"",tagKey:null},{id:"new",titleKey:"service_section_new",tag:"new",tagKey:"service_tag_new"},{id:"beta",titleKey:"service_section_beta",tag:"beta",tagKey:"service_tag_beta"},{id:"soon",titleKey:"service_section_soon",tag:"soon",tagKey:"service_tag_soon"}];function nA(e){var t=e.className,n=e.initIsOpen,r=e.currentService,a=e.list,s=e.campaign,c=e.group,l=h(e,["className","initIsOpen","currentService","list","campaign","group"]),u=th().isSupportedWebp,m=tR().t,p=(0,o.useId)(),g=nI.map(function(e){return d(d({},e),{items:(null==a?void 0:a.filter(function(t){return ni(t)===e.tag}))||[]})});return(0,i.jsx)(e7,d({className:v(t,nB["service-dropdown"]),initIsOpen:void 0!==n&&n,position:"bottom-right",button:function(e){var t,n=e.isOpen,o=(t=e.onClick,function(){var e=null==s?void 0:s.new_game;e&&nb(e,"dismissed"),t()});return(null==r?void 0:r.light_icon_url)?(0,i.jsxs)("span",{className:nB["button-wrapper"],children:[(0,i.jsx)(nw,{campaign:s,size:"medium",className:nB.badge}),c.dark_icon_url&&(0,i.jsx)("img",{src:na(c.dark_icon_url,u,24,24),width:24,height:24,alt:"",loading:"lazy"}),c.short_title,(0,i.jsxs)(w,{variant:"reset",className:v(nB.active,nB.button),onClick:o,children:[(null==r?void 0:r.light_icon_url)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("img",{src:na(null==r?void 0:r.light_icon_url,u,24,24),width:24,height:24,alt:"",loading:"lazy"}),null==r?void 0:r.short_title]}),(0,i.jsx)(T,{className:v(nB.chevron,n&&nB["chevron-reverse"])})]}),c.is_updated&&(0,i.jsx)("i",{className:nB.updated})]}):(0,i.jsxs)("span",{className:nB["button-wrapper"],children:[(0,i.jsxs)(w,{variant:"reset",className:v(nB["not-active"],nB.button),onClick:o,children:[c.default_icon_url&&(0,i.jsx)("img",{className:nB.icon,src:na(c.default_icon_url,u),width:24,height:24,alt:"",loading:"lazy"}),c.dark_icon_url&&(0,i.jsx)("img",{className:nB["hover-icon"],src:na(c.dark_icon_url,u),width:24,height:24,alt:"",loading:"lazy"}),c.short_title,(0,i.jsx)(T,{className:v(nB.chevron,n&&nB["chevron-reverse"])})]}),c.is_updated&&(0,i.jsx)("i",{className:nB.updated})]})}},l,{children:(0,i.jsx)(nc,{className:nB.content,children:(0,i.jsx)("div",{className:nB.sections,children:g.map(function(e){if(0===e.items.length)return null;var t="".concat(p,"-").concat(e.id);return(0,i.jsxs)("section",{className:nB.section,"aria-labelledby":t,children:[(0,i.jsx)("h2",{id:t,className:nB["section-title"],children:m(e.titleKey)}),(0,i.jsx)("div",{className:nB.grid,children:e.items.map(function(t){var n=t.id,o=t.title,a=t.link,s=t.dark_icon_url,c=n===(null==r?void 0:r.id),l="fortnite"===n?24:20;
1return(0,i.jsxs)(tr,{className:v(nB.link,c&&nB.selected),href:null==a?void 0:a.pc,"aria-current":c||void 0,children:[(0,i.jsx)("img",{src:na(s,u,l,l),width:l,height:l,alt:"",loading:"lazy"}),(0,i.jsx)("span",{className:nB.title,children:o}),t.is_updated&&(0,i.jsx)("span",{className:nB.updated,"aria-hidden":"true"}),e.tagKey&&(0,i.jsx)(ta,{className:v(nB.tag,nB["tag-".concat(e.tag)]),variant:e.tag,text:m(e.tagKey)})]},n)})})]},e.id)})})})}))}function nD(){return(nD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var nR=function(e){return o.createElement("svg",nD({xmlns:"http://www.w3.org/2000/svg",width:860,height:250,fill:"none",viewBox:"0 0 860 250"},e),ny||(ny=o.createElement("desc",null,"Animated OP.GG logo with sequential flip-and-return tiles.")),nx||(nx=o.createElement("style",null,"@keyframes flipBack{0%,15%{transform:rotateY(0deg)}25%{transform:rotateY(90deg)}35%,55%{transform:rotateY(180deg)}65%{transform:rotateY(270deg)}75%,to{transform:rotateY(360deg)}}.tile{transform-box:fill-box;transform-origin:center;transform-style:preserve-3d;animation:flipBack 4s ease-in-out infinite}")),o.createElement("g",{id:"logo"},o.createElement("g",{className:"tile",style:{animationDelay:"0s"}},nk||(nk=o.createElement("rect",{width:140,height:140,x:40,y:20,fill:"#2D2D2D",stroke:"#5E5E5E",strokeWidth:4,rx:0})),nC||(nC=o.createElement("text",{x:110,y:118,fill:"#FFF",fontFamily:"Inter, Arial, Helvetica, sans-serif",fontSize:86,fontWeight:900,textAnchor:"middle"},"O"))),o.createElement("g",{className:"tile",style:{animationDelay:".18s"}},nj||(nj=o.createElement("rect",{width:140,height:140,x:194,y:20,fill:"#2D2D2D",stroke:"#5E5E5E",strokeWidth:4,rx:0})),nN||(nN=o.createElement("text",{x:264,y:118,fill:"#FFF",fontFamily:"Inter, Arial, Helvetica, sans-serif",fontSize:86,fontWeight:900,textAnchor:"middle"},"P"))),o.createElement("g",{className:"tile",style:{animationDelay:".36s"}},nS||(nS=o.createElement("rect",{width:140,height:140,x:348,y:20,fill:"#79C36A",rx:0})),nL||(nL=o.createElement("circle",{cx:418,cy:98,r:12,fill:"#FFF"}))),o.createElement("g",{className:"tile",style:{animationDelay:".54s"}},nE||(nE=o.createElement("rect",{width:140,height:140,x:502,y:20,fill:"#D7C34A",rx:0})),nO||(nO=o.createElement("text",{x:572,y:118,fill:"#FFF",fontFamily:"Inter, Arial, Helvetica, sans-serif",fontSize:86,fontWeight:900,textAnchor:"middle"},"G"))),o.createElement("g",{className:"tile",style:{animationDelay:".72s"}},nM||(nM=o.createElement("rect",{width:140,height:140,x:656,y:20,fill:"#79C36A",rx:0})),nT||(nT=o.createElement("text",{x:726,y:118,fill:"#FFF",fontFamily:"Inter, Arial, Helvetica, sans-serif",fontSize:86,fontWeight:900,textAnchor:"middle"},"G"))),nP||(nP=o.createElement("text",{x:430,y:225,fill:"#FFF",fontFamily:"Inter, Arial, Helvetica, sans-serif",fontSize:68,fontWeight:800,letterSpacing:1.5,textAnchor:"middle"},"LET'S PLAY GAME!"))))},nz={"game-stats":"ServiceMenu-module_game-stats__19onu","service-menu":"ServiceMenu-module_service-menu__cUv5k",updated:"ServiceMenu-module_updated__9eiOC",wordle:"ServiceMenu-module_wordle__scsS1",dots:"ServiceMenu-module_dots__2gQCa",show:"ServiceMenu-module_show__h93wa"};function nq(e){var t,n=e.serviceId,r=e.catalog,a=e.campaign,s=(0,o.useState)(!1),c=s[0],l=s[1],u=(0,o.useState)(!1),d=u[0],h=u[1],m=(0,o.useRef)(null);if((0,o.useEffect)(function(){var e=new Date;h(3===e.getMonth()&&1===e.getDate())},[]),(0,o.useEffect)(function(){if(r){var e=function(){m.current?l(m.current.offsetWidth<m.current.scrollWidth):setTimeout(e,100)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}},[r]),!r)return null;var p=r.reduce(function(e,t){return"game_stats"===t.id?e.gameStats=t:e.list=g(g([],e.list||[],!0),[t],!1),e},{}),f=p.gameStats,_=p.list;return(0,i.jsxs)(i.Fragment,{children:[f&&(0,i.jsx)(nA,{className:nz["game-stats"],currentService:null==(t=f.items)?void 0:t.find(function(e){return e.id===n}),list:f.items,group:f,campaign:a},f.id),(0,i.jsxs)("div",{ref:m,className:nz["service-menu"],children:[_.map(function(e){var t,r=ni(e);return(null==(t=e.link)?void 0:t.pc)&&(0,i.jsxs)(ns,{href:e.link.pc,iconSrc:e.dark_icon_url,grayIconSrc:e.default_icon_url,isActive:n===e.id,children:[(0,i.jsx)("span",{className:v(e.is_updated&&nz.updated),children:e.title}),r&&(0,i.jsx)(ta,{className:nz.tag,variant:r})]},e.id)}),d&&(0,i.jsx)("a",{href:"https://op.gg/forge/gamdle",target:"_blank",rel:"noopener noreferrer",className:nz.wordle,children:(0,i.jsx)(nR,{})})]}),(0,i.jsx)("div",{className:v(c&&nz.show,nz.dots),children:(0,i.jsx)(np,{catalog:r})})]})}var nU=["system","light","dark"],nH=(0,o.createContext)({darkMode:!1,themeMode:"system",setThemeMode:function(){}});function nF(e){var t=e.children,n=e.darkMode,r=e.enableDarkMode,a=void 0===r||r,c=e.onCh
1angeDarkMode,l=e.customChangeDarkMode,u=!l&&null!=n,h=(0,o.useState)(!!n),m=h[0],p=h[1],g=(0,o.useState)(u?n?"dark":"light":"system"),v=g[0],f=g[1],b=(0,o.useState)(!1),w=b[0],y=b[1],x=(0,o.useRef)(!1),k=(0,o.useRef)(!1);return(0,o.useEffect)(function(){if(a&&!u){var e=tN();"true"!==e&&"false"!==e||f("true"===e?"dark":"light"),x.current=!0}y(!0)},[a]),(0,o.useEffect)(function(){if(a&&l&&!x.current&&!k.current){x.current=!0;var e=tN();f("true"===e?"dark":"false"===e?"light":"system")}},[a,l]),(0,o.useEffect)(function(){null!=n&&(!a||l?p(n):f(n?"dark":"light"))},[n,a,l]),(0,o.useEffect)(function(){if(w&&a){var e="system"===v?window.matchMedia("(prefers-color-scheme: dark)"):void 0,t=function(){var t="dark"===v||!!(null==e?void 0:e.matches);l?l(t,v):(null==c||c(t,v),p(t))};return t(),null==e||e.addEventListener("change",t),function(){return null==e?void 0:e.removeEventListener("change",t)}}},[w,a,v,c,l]),(0,o.useEffect)(function(){document.documentElement.classList[m?"add":"remove"](_)},[m]),(0,i.jsx)(nH.Provider,{value:{darkMode:m,themeMode:v,setThemeMode:function(e){var t,n;k.current=!0,f(e),t="system"===e?void 0:"dark"===e?"true":"false",(0,s.destroyCookie)(n,tw,{path:"/"}),(0,s.destroyCookie)(n,tw,tj),void 0!==t&&(0,s.setCookie)(n,tw,t,d({maxAge:tP(365)},tj))}},children:t})}function nG(){return(0,o.useContext)(nH)}var nV="DesktopGNB-module_premium__feIWd",nW="DesktopGNB-module_user-btn__7gIqU";function nJ(e){var t,n,r,a=e.navChildren,s=e.subChildren,c=e.portalId,l=e.langChildren,u=e.homeLink,d=th(),h=d.serviceId,m=d.catalog,p=d.campaign,g=d.enableDarkMode,v=d.enableLanguage,f=d.drawerStates,_=d.manageDrawer,b=d.homeLink,w=nG(),y=w.darkMode,x=w.themeMode,k=w.setThemeMode,C=tR(),j=C.language,N=C.languages,S=C.setLanguage;return(0,o.useEffect)(function(){var e=function(e){"Escape"===e.key&&_(!1)};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"DesktopGNB-module_desktop-gnb__939BZ",children:[(0,i.jsx)(tr,{href:u||b||"/",className:"DesktopGNB-module_logo__Jc5jC","aria-label":"Go to Main Page",children:(0,i.jsx)(e2,{variant:"opgg"})}),(0,i.jsx)(nq,{serviceId:h,catalog:m,campaign:p}),(0,i.jsxs)("div",{className:"DesktopGNB-module_sub-content__9qe3X",children:[(0,i.jsxs)("div",{className:"DesktopGNB-module_icon-list__-ktS1",children:[s&&s,g&&(0,i.jsx)(e6,{onClick:function(){k(nU[(nU.indexOf(x)+1)%nU.length])},variant:y?"dark":"light","aria-label":"Change Theme"}),v&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e6,{className:"DesktopGNB-module_lang-btn__G8IO4",onClick:function(){return _(!0,"languageMenu")},variant:"language",children:(null==(t=null==j?void 0:j.codes)?void 0:t[0])&&(0,i.jsx)("span",{className:"DesktopGNB-module_current-lang-code__iQRDg",children:null==(r=null==(n=null==j?void 0:j.codes)?void 0:n[0])?void 0:r.toUpperCase()})}),l&&l,(0,i.jsx)(t3,{language:j,languages:N})]})]}),(0,i.jsx)(nK,{navChildren:a,portalId:c,isOpen:f.navMenu,setIsOpen:function(e){return _(e,"navMenu")}})]})]}),(0,i.jsx)(tz,{portalId:c,language:j,languages:N,setLanguage:S,isOpen:f.languageMenu,setIsOpen:function(e){return _(e,"languageMenu")}})]})}function nK(e){var t,n,r=e.navChildren,o=e.portalId,a=e.isOpen,s=e.setIsOpen,c=th().enableUser,l=t8(),u=l.user,d=l.login,h=tR().t;return c?u?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(w,{className:v(nW,u.isPremium&&nV),onClick:function(){return s(!0)},variant:"secondary",children:[(null==(t=u.data)?void 0:t.profile_image_url)?(0,i.jsx)("span",{className:v("DesktopGNB-module_profile-image-wrapper__tM6Bi",u.isPremium&&nV),children:(0,i.jsx)("img",{src:u.data.profile_image_url,alt:null!=(n=u.name)?n:"",className:"DesktopGNB-module_profile-image__cBB5-"})}):(0,i.jsx)(e2,{variant:u.isPremium?"premium-person":"person"}),(0,i.jsx)("span",{className:"DesktopGNB-module_text__VyuOk",children:u.name})]}),(0,i.jsx)(nt,{portalId:o,navChildren:r,isOpen:a,setIsOpen:function(e){return s(e)}})]}):(0,i.jsx)(w,{className:nW,variant:"secondary",onClick:function(){d()},children:h("login")}):null}function nX(e){var t=e.iconSrc,n=e.className,r=h(e,["iconSrc","className"]),o=th().isSupportedWebp;return(0,i.jsx)("div",d({className:v(n,"CurrentServiceIcon-module_current-service-icon__QOxt-")},r,{children:(0,i.jsx)("div",{className:"CurrentServiceIcon-module_inner__dNGHH",children:t?(0,i.jsx)("img",{src:na(t,o,24,24),width:24,height:24,alt:"",loading:"eager"}):(0,i.jsx)(e2,{})})}))}var nY={responsive:"MobileServiceMenu-module_responsive__-oxi-","mobile-service-menu":"MobileServiceMenu-module_mobile-service-menu__yefqS",inner:"MobileServiceMenu-module_inner__07Sud",header:"MobileServiceMenu-module_header__OaiNn","close-btn-wrapper":"MobileServiceMenu-module_close-btn-wrapper__H0PvA","close-btn":"MobileServiceMenu-module_close-btn__wIrVR",content:"MobileServiceMenu-module_content__A3Yt-","half-wrapper":"MobileServiceMenu-module_half-wrapper__8evwH","full-wrapper":"MobileServiceMenu-module_full-wrapper__anoYR","big-wrapper":"MobileServiceMenu-module_big-wrapper__gHaG-","half-link":"MobileServiceMenu-module_half-link__gNWE3","full-link":"MobileServiceMenu-module_full-link__MRaWl","big-link":"MobileServiceMenu-module_big-link__R5-uq",title:"MobileServiceMenu-module_title__yWf0D",hr:"MobileServiceMenu-module_hr__KUVlY"};function nQ(e){var t=e.catalog,n=e.isOpen,r=e.setIsOpen,a=e.className,s=h(e,["catalog","isOpen","setIsOpen","className"]),c=th().viewType,l=nh(),u=nG().darkMode,m=tR().t;if(!t)return null;var p=nn(t);return(0,i.jsx)(tc,d({variant:"filled",className:v(a,nY["mobile-service-menu"]),overlayClassName:v("responsive"===c&&nY.responsive),isOpen:n,setIsOpen:r},s,{children:(0,i.jsxs)("div",{className:nY.inner,children:[(0,i.jsxs)("div",{className:nY.header,children:[(0,i.jsx)("div",{}),(0,i.jsx)("div",{className:nY["close-btn-wrapper"],children:(0,i.jsx)(w,{className:nY["close-btn"],variant:"reset",onClick:function(){return r(!1)},"aria-label":"Close",children:(0,i.jsx)(e2,{variant:"exit"})})})]}),null==p?void 0:p.map(function(e,t){var n;return(0,i.jsxs)(o.Fragment,{children:[0!==t&&(0,i.jsx)("hr",{className:nY.hr}),(0,i.jsx)(ti,{className:nY.content,titleChildren:(0,i.jsx)(tt,{className:v(nY.title),children:"services"===e.id?m("services"):e.title}),viewType:"mobile",children:(0,i.jsx)("div",{className:nY["".concat(e.wrapperType,"-wrapper")],children:null==(n=e.items)?void 0:n.map(function(t,n){var r=t.title,o=t.link,a=t.dark_icon_url,s=t.light_icon_url,c=t.is_updated,d=ni(t);return(0,i.jsx)(nu,{href:(null==o?void 0:o[l])||(null==o?void 0:o.pc),className:nY["".concat(e.wrapperType,"-link")],variant:"services"===e.id?"big":"drawer-lg",imgSrc:u?a:s,target:"_blank",isUpdated:c,tag:d||void 0,children:r},n)})})})]},e.id)})]})}))}function n$(e){var t=e.isOpen,n=e.setIsOpen,r=e.className,a=h(e,["isOpen","setIsOpen","className"]),s=th().viewType,c=tR(),l=c.t,u=c.languages,m=c.setLanguage,p=c.language,g=(0,o.useState)([]),f=g[0],_=g[1];return(0,o.useEffect)(function(){_(tb(u,p))},[u]),(0,i.jsx)(tc,d({variant:"filled",className:v(r,"MobileLanguageMenu-module_mobile-language-menu__Yp5VT"),overlayClassName:v("responsive"===s&&"MobileLanguageMenu-module_responsive__q6QKJ"),isOpen:t,setIsOpen:n},a,{children:(0,i.jsxs)("div",{className:"MobileLanguageMenu-module_inner__MqqwQ",children:[(0,i.jsx)("div",{className:"MobileLanguageMenu-module_header__-h5-m",children:(0,i.jsx)("div",{className:"MobileLanguageMenu-module_close-btn-wrapper__oMaLt",children:(0,i.jsxs)(w,{className:"MobileLanguageMenu-module_prev-btn__bW4x-",variant:"reset",onClick:function(){return n(!1)},children:[(0,i.jsx)(N,{}),l("back")]})})}),(0,i.jsx)("div",{className:"MobileLanguageMenu-module_content__J5O-c",children:f.map(function(e,t){return(0,i.jsx)(e9,{className:v(e.id===p.id&&"MobileLanguageMenu-module_selected__E115R"),disabled:e.id===p.id,onClick:function(){return m(e.code,e)},children:(0,i.jsxs)("span",{className:"MobileLanguageMenu-module_btn-text__2qt8q",children:[e.name,e.id!==p.id&&e.preferred&&(0,i.jsx)(ta,{variant:"preferred",className:"MobileLanguageMenu-module_preferred__omfz-",text:l("preferred_language")})]})},t)})})]})}))}function nZ(e){var t=e.selectedClassName,n=e.onSelected,r=nG(),o=r.themeMode,a=r.setThemeMode,s=tR().t;return(0,i.jsx)(i.Fragment,{children:nU.map(function(e){return(0,i.jsx)(e9,{className:v(e===o&&t),disabled:e===o,onClick:function(){a(e),null==n||n()},children:s("theme_"+e)},e)})})}function n0(e){var t=e.isOpen,n=e.setIsOpen,r=e.className,o=h(e,["isOpen","setIsOpen","className"]),a=th().viewType,s=tR().t;return(0,i.jsx)(tc,d({variant:"filled",className:v(r,"MobileThemeMenu-module_mobile-theme-menu__bbiT3"),overlayClassName:v("responsive"===a&&"MobileThemeMenu-module_responsive__JD0SI"),isOpen:t,setIsOpen:n},o,{children:(0,i.jsxs)("div",{className:"MobileThemeMenu-module_inner__PMYyL",children:[(0,i.jsx)("div",{className:"MobileThemeMenu-module_header__07wog",children:(0,i.jsxs)(w,{className:"MobileThemeMenu-module_prev-btn__pS-xw",variant:"reset",onClick:function(){return n(!1)},children:[(0,i.jsx)(N,{}),s("back")]})}),(0,i.jsx)("div",{className:"MobileThemeMenu-module_content__pdrpQ",children:(0,i.jsx)(nZ,{selectedClassName:"MobileThemeMenu-module_selected__Gvfpw",onSelected:function(){return n(!1)}})})]})}))}var n1="MobileNavMenu-module_section__wMezu",n2="MobileNavMenu-module_row__T-dng",n6="MobileNavMenu-module_with-icon__37LB3",n3="MobileNavMenu-module_content__nD7F9",n4="MobileNavMenu-module_footer-btn__bfXpB",n5="MobileNavMenu-module_hr__fw7-s";function n8(e){var t,n,r=e.className,o=e.isOpen,a=e.setIsOpen,s=e.mobileNavChildren,c=e.portalId,l=e.setIsOpenLanguageMenu,u=e.isOpenLanguageMenu,m=e.isOpenThemeMenu,p=e.setIsOpenThemeMenu,g=h(e,["className","isOpen","setIsOpen","mobileNavChildren","portalId","setIsOpenLanguageMenu","isOpenLanguageMenu","isOpenThemeMenu","setIsOpenThemeMenu"]),f=th().viewType,_=tR(),b=_.t,y=_.language,x=t8(),k=x.user,C=x.login,j=x.logout,N=x.myAccount,S=x.membership,L=nG(),E=L.darkMode,O=L.setThemeMode,M=th(),T=M.enableUser,P=M.enableDarkMode,B=M.enableLanguage,I=function(){C()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tc,d({portalId:c,variant:"filled",className:v(r,"MobileNavMenu-module_mobile-nav-menu__-aSK3"),overlayClassName:v("responsive"===f&&"MobileNavMenu-module_responsive__4kJX0"),isOpen:o,setIsOpen:a},g,{children:(0,i.jsxs)("div",{className:"MobileNavMenu-module_inner__cf3U6",children:[(0,i.jsx)("div",{className:"MobileNavMenu-module_header__Icr2N",children:(0,i.jsx)(w,{className:"MobileNavMenu-module_close-btn__dwksY",variant:"reset",onClick:function(){return a(!1)},"aria-label":"Close",children:(0,i.jsx)(Y,{})})}),T&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(i.Fragment,k?{children:(0,i.jsxs)("div",{className:"MobileNavMenu-module_user-section__Hplwu",children:[(0,i.jsxs)("div",{className:"MobileNavMenu-module_user__kipmY",children:[(null==(t=k.data)?void 0:t.profile_image_url)?(0,i.jsx)("img",{src:k.data.profile_image_url,alt:null!=(n=k.name)?n:""}):(0,i.jsx)(e2,{variant:"profile-default"}),(0,i.jsx)("span",{children:k.name})]}),(0,i.jsx)(e9,{className:"MobileNavMenu-module_account-button__IedbN",onClick:function(){N()},children:b("my_account")}
1)]})}:{children:(0,i.jsx)("div",{className:n3,children:(0,i.jsxs)(w,{className:"MobileNavMenu-module_user-btn__ijzeo",variant:"reset",onClick:I,children:[(0,i.jsx)(e2,{variant:"person"}),(0,i.jsx)("span",{children:b("login")})]})})})}),s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("hr",{className:n5}),s]}),B&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("hr",{className:n5}),(0,i.jsxs)("section",{className:n1,children:[(0,i.jsx)("h2",{children:b("language")}),(0,i.jsx)(e9,{className:v(n2,"MobileNavMenu-module_language-row__lTqic"),variant:"chevron-right",onClick:function(){return l(!0)},children:(0,i.jsxs)("span",{className:n6,children:[(0,i.jsx)(ee,{}),y.name]})})]})]}),T&&k&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("hr",{className:n5}),(0,i.jsxs)("section",{className:n1,children:[(0,i.jsx)("h2",{children:b("connect_account")}),!k.isPremium&&(0,i.jsx)(e9,{className:n2,variant:"chevron-right",onClick:function(){S(),a(!1)},children:(0,i.jsxs)("span",{className:n6,children:[(0,i.jsx)(e2,{variant:"premium-gradient"}),b("get_ad_free")]})}),(0,i.jsx)(e9,{className:n2,variant:"chevron-right",onClick:function(){N("socialAccounts"),a(!1)},children:(0,i.jsxs)("span",{className:n6,children:[(0,i.jsx)(e2,{variant:"discord"}),b("connect_discord")]})}),(0,i.jsx)(e9,{className:n2,variant:"chevron-right",onClick:function(){N("youtube-verification"),a(!1)},children:(0,i.jsxs)("span",{className:n6,children:[(0,i.jsx)(e2,{variant:"youtube"}),b("verify_as_youtube_creator")]})})]})]}),P&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("hr",{className:n5}),(0,i.jsx)("section",{className:n1,children:(0,i.jsxs)("button",{type:"button",className:"MobileNavMenu-module_theme-row__MlQaz",role:"switch","aria-checked":E,onClick:function(){O(E?"light":"dark")},children:[(0,i.jsx)("span",{children:b("dark_mode")}),(0,i.jsx)("span",{className:v("MobileNavMenu-module_toggle__oOcfl",E&&"MobileNavMenu-module_active__LAidZ"),"aria-hidden":"true",children:(0,i.jsx)("span",{})})]})})]}),T&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(i.Fragment,k?{children:[(0,i.jsx)("hr",{className:n5}),(0,i.jsx)("div",{className:n3,children:(0,i.jsx)(e9,{className:n4,variant:"out",onClick:function(){j()},children:b("logout")})})]}:{children:[(0,i.jsx)("hr",{className:n5}),(0,i.jsx)("div",{className:n3,children:(0,i.jsx)(e9,{className:n4,variant:"in",onClick:I,children:b("login")})})]})})]})})),B&&(0,i.jsx)(n$,{isOpen:u,setIsOpen:l,portalId:c}),P&&(0,i.jsx)(n0,{isOpen:m,setIsOpen:p,portalId:c})]})}function n7(e){var t,n,r,a,s=e.mobileNavChildren,c=e.mobileSubChildren,l=e.mobileServiceIconKey,u=e.mobileMenuIconColor,d=e.portalId,h=e.homeLink,m=th(),p=m.serviceId,g=m.catalog,f=m.campaign,_=m.enableLanguage,b=m.enableUser,y=m.enableDarkMode,x=m.drawerStates,k=m.manageDrawer,C=m.homeLink,j=t8().user,N=b||y||_;return(0,o.useEffect)(function(){var e=function(e){"Escape"===e.key&&k(!1)};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"MobileGNB-module_mobile-gnb__eU6Cv",children:[(0,i.jsxs)("div",{className:"MobileGNB-module_logo-service__mbaZK",children:[(0,i.jsx)(tr,{href:h||C||"/",className:"MobileGNB-module_logo__xoyVX","aria-label":"Go to Main Page",children:(0,i.jsx)(e2,{style:{color:u},variant:"opgg"})}),(0,i.jsxs)("div",{className:"MobileGNB-module_service-btn-wrapper__QDHCn",children:[(0,i.jsx)(nw,{campaign:f,size:"medium",className:"MobileGNB-module_badge__wPa3G"}),(0,i.jsxs)(w,{variant:"reset",className:"MobileGNB-module_service-btn__EaV2I",onClick:(t=function(){return k(!0,"serviceMenu")},function(){var e=null==f?void 0:f.new_game;e&&nb(e,"dismissed"),t()}),"aria-label":"Show More",children:[(0,i.jsx)(nX,{iconSrc:null==(n=null==g?void 0:g.flatMap(function(e){return"game_stats"===(null==e?void 0:e.id)||"apps"===(null==e?void 0:e.id)?e.items:[e]}).find(function(e){return(null==e?void 0:e.id)===p}))?void 0:n["".concat(void 0===l?"default":l,"_icon_url")]}),(0,i.jsx)(e2,{style:{color:u},variant:"down"})]})]})]}),(0,i.jsxs)("div",{className:"MobileGNB-module_sub__cwRSw",children:[c&&c,N&&(0,i.jsx)(e3,{color:u,variant:"person",icon:(null==(r=null==j?void 0:j.data)?void 0:r.profile_image_url)?(0,i.jsx)("span",{className:v("MobileGNB-module_profile-image-wrapper__xJp5v",(null==j?void 0:j.isPremium)&&"MobileGNB-module_premium__CYeil"),children:(0,i.jsx)("img",{src:j.data.profile_image_url,alt:null!=(a=j.name)?a:"",className:"MobileGNB-module_profile-image__23H9J"})}):void 0,onClick:function(){return k(!0,"navMenu")},"aria-label":"Open Menu"})]})]}),(0,i.jsx)(nQ,{portalId:d,catalog:g,isOpen:x.serviceMenu,setIsOpen:function(e){return k(e,"serviceMenu")}}),N&&(0,i.jsx)(n8,{portalId:d,isOpen:x.navMenu,setIsOpen:function(e){return k(e,"navMenu")},mobileNavChildren:s,isOpenLanguageMenu:x.languageMenu,setIsOpenLanguageMenu:function(e){return k(e,"languageMenu")},isOpenThemeMenu:x.themeMenu,setIsOpenThemeMenu:function(e){return k(e,"themeMenu")}})]})}function n9(e){var t=e.onClickMyAccount,n=e.onClickLogout,r=e.onClickLogin,a=e.customClickMyAccount,s=e.customClickLogout,c=e.customClickLogin,l=e.onChangeLanguage,u=e.customChangeLanguage,m=e.onChangeDarkMode,p=e.customChangeDarkMode,g=h(e,["onClickMyAccount","onClickLogout","onClickLogin","customClickMyAccount","customClickLogout","customClickLogin","onChangeLanguage","customChangeLanguage","onChangeDarkMode","customChangeDarkMode"]),v=th(),f=v.viewType,_=v.zIndex,b=v.registerFunction;return(0,o.useEffect)(function(){(t||n||r||a||s||c||l||u||m||p)&&b({onClickMyAccount:t,onClickLogout:n,onClickLogin:r,customClickMyAccount:a,customClickLogout:s,customClickLogin:c,onChangeLanguage:l,customChangeLanguage:u,onChangeDarkMode:m,customChangeDarkMode:p})},[]),(0,i.jsx)("div",{id:"opgg-kit-gnb",className:"opgg-kit-style",style:_?{position:"relative",zIndex:_}
1:void 0,children:function(){switch(f){case"desktop":default:return(0,i.jsx)(nJ,d({},g));case"mobile":return(0,i.jsx)(n7,d({},g));case"responsive":return(0,i.jsxs)("div",{className:"GNB-module_responsive-gnb__G31jb",children:[(0,i.jsx)("div",{className:"GNB-module_desktop__Y0ZHE",children:(0,i.jsx)(nJ,d({},g))}),(0,i.jsx)("div",{className:"GNB-module_mobile__YAoXE",children:(0,i.jsx)(n7,d({},g))})]})}}()})}function ie(e,t){var n=tf;return e&&("string"==typeof e[0]?(n=tf.filter(function(t){return e.some(function(e){return t.codes.some(function(t){return t.toLowerCase()===e.toLowerCase()})})}),n=e.reduce(function(e,t){var n=tf.find(function(e){return e.codes.some(function(e){return e.toLowerCase()===t.toLowerCase()})});return n&&e.push(d(d({},n),{__code__:t})),e},[])):(n=tf.filter(function(t){return e.some(function(e){return t.codes.some(function(t){return t.toLowerCase()===e.code.toLowerCase()})})}),n=e.reduce(function(e,t){var n=tf.find(function(e){return e.codes.some(function(e){return e.toLowerCase()===t.code.toLowerCase()})});return n&&e.push(d(d({},n),{__code__:t.__code__})),e},[]))),function(e){var i,r,o=n.find(function(t){return t.codes.some(function(t){return t.toLowerCase()===e.toLowerCase()})});if(o)return t?o:null!=(i=o.__code__)?i:o.code;var a=e;e.includes(",")||(a=e.replace("_","-"),a="".concat(a,",").concat(null==a?void 0:a.split("-")[0]));var s=l.pick(n.map(function(e){return e.origin}),a);return s&&(o=n.find(function(e){return e.origin===s}))?t?o:null!=(r=o.__code__)?r:o.code:null}}var it={"detect-locale-popover":"DetectLocalePopover-module_detect-locale-popover__kLCs-","detect-locale-popover-inner":"DetectLocalePopover-module_detect-locale-popover-inner__zt1TH",desc:"DetectLocalePopover-module_desc__1pphy","btn-wrapper":"DetectLocalePopover-module_btn-wrapper__6p-Am",btn:"DetectLocalePopover-module_btn__-nHVR","close-btn":"DetectLocalePopover-module_close-btn__Hr96a","submit-btn":"DetectLocalePopover-module_submit-btn__KsFv0",chevron:"DetectLocalePopover-module_chevron__JD8wB"};function ii(e){var t=e.acceptLanguage,n=tR(),r=n.setLanguage,a=n.languages,c=n.defaultLanguage,l=th(),u=l.manageDrawer,d=l.zIndex,h=l.isCrawler,m=ie(tf,!0),p=ie(a,!0),g=(0,o.useState)(t?m(t):null),f=g[0],_=g[1],b=(0,o.useState)(t?p(t):null),y=b[0],x=b[1];if((0,o.useEffect)(function(){if(!(0,s.parseCookies)()._ol){var e=m(t||navigator.language),n=p(t||navigator.language);_(e||c),x(n||c)}},[]),h||!y||!f||(null==y?void 0:y.id)===c.id&&(null==f?void 0:f.id)===c.id)return null;var k=["ar","he","fa","ur","hi"].includes(y.code.split("_")[0])?"rtl":"ltr";return(0,i.jsx)("div",{lang:y.origin,dir:k,className:"opgg-kit-style",style:{position:"relative",zIndex:d?d+1:void 0},children:(0,i.jsx)("div",{className:it["detect-locale-popover"],children:(0,i.jsxs)("div",{className:it["detect-locale-popover-inner"],children:[(0,i.jsx)("div",{className:it.desc,children:f.dictionary.detect_locale_desc}),(0,i.jsxs)("div",{className:it["btn-wrapper"],children:[(0,i.jsxs)(w,{type:"button",variant:"secondary",className:v(it.btn,it["select-btn"]),onClick:function(){return u(!0,"languageMenu")},"aria-label":"Select Language",children:[y.name,(0,i.jsx)(e2,{className:v(it.chevron),variant:"chevron-up"})]}),(0,i.jsx)(w,{type:"button",variant:"primary",className:v(it.btn,it["submit-btn"]),onClick:function(){r(y.code,y),x(null)},"aria-label":"Select ".concat(y.name),children:f.dictionary.detect_locale_continue}),(0,i.jsx)(w,{type:"button",variant:"reset",className:v(it.btn,it["close-btn"]),onClick:function(){r(c.code,c),x(null)},"aria-label":"Select ".concat(y.name),children:(0,i.jsx)(e2,{className:it.chevron,variant:"exit"})})]})]})})})}function ir(e){var t=e.href,n=e.imgUrl,r=e.title,o=e.hideCloseBtn,a=e.onClickClose,s=e.className,c=e.color,l=e.backgroundColor,u=h(e,["href","imgUrl","title","hideCloseBtn","onClickClose","className","color","backgroundColor"]),m=th().isSupportedWebp;return(0,i.jsx)("div",d({className:v(s,"TopImageBanner-module_top-image-banner__z9-P3"),style:l?{backgroundColor:l}:void 0},u,{children:(0,i.jsxs)("div",{className:"TopImageBanner-module_inner__DLQGS",children:[(0,i.jsx)(tr,{href:t,className:"TopImageBanner-module_link__ieT-w",target:"_blank",children:(0,i.jsx)("img",{src:na(n,m,970,90),alt:r,width:970,height:90,loading:"eager"})}),!(void 0!==o&&o)&&(0,i.jsx)(w,{onClick:a,variant:"reset",className:"TopImageBanner-module_close-btn__eZrm4","aria-label":"Close",children:(0,i.jsx)(e2,{color:c,variant:"exit"})})]})}))}var io=(0,o.createContext)({});function ia(e){var t=e.children,n=e.imageBanner,r=e.textBanner,o=e.adsError,a=e.adsLoading,s=e.rawData;return(0,i.jsx)(io.Provider,{value:{imageBanner:n,textBanner:r,adsError:o,adsLoading:a,rawData:s},children:t})}function is(){var e=(0,o.useContext)(io);return{imageBanner:e.imageBanner,textBanner:e.textBanner,adsLoading:e.adsLoading,adsError:e.adsError,rawData:e.rawData}}function ic(e){var t=h(e,[]),n=th(),r=n.viewType,a=n.isCrawler,c=is(),l=c.imageBanner,u=c.adsLoading,m=(0,o.useState)("true"===(0,s.parseCookies)()[ty]),p=m[0],g=m[1];if(a||u||p||!l)return null;var v=l&&d({href:l.href,imgUrl:l.imgUrl,title:l.title,color:l.color,backgroundColor:l.backgroundColor,hideCloseBtn:"always"===l.closeType,onClickClose:function(){var e;"day"===(null==l?void 0:l.closeType)?(0,s.setCookie)(e,ty,"true",d({maxAge:tP(1)},tj)):(null==l||l.closeType,tE("true")),g(!0)}},t);return(null==v?void 0:v.href)&&(null==v?void 0:v.imgUrl)?"desktop"===r?(0,i.jsx)("div",{id:"opgg-kit-house-image-banner",className:"opgg-kit-style",children:(0,i.jsx)(ir,d({},v))}):"mobile"===r?null:(0,i.jsx)("div","responsive"===r?{id:"opgg-kit-house-image-banner",className:"opgg-kit-style",children:(0,i.jsx)("div",{className:"HouseImageBanner-module_responsive-house-image-banner__urbFu",children:(0,i.jsx)("div",{className:"HouseImageBanner-module_desktop__VGai-",children:(0,i.jsx)(ir,d({},v))})})}:{id:"opgg-kit-house-image-banner",className:"opgg-kit-style",children:(0,i.jsx)(ir,d({},v))}):null}var il={"marquee-inner":"SashTextBanner-module_marquee-inner__BsTEO",marquee:"SashTextBanner-module_marquee__jAIlB",container:"SashTextBanner-module_container__LneWE",
1inner:"SashTextBanner-module_inner__IPvYG",desktop:"SashTextBanner-module_desktop__Hv97H",mobile:"SashTextBanner-module_mobile__wzHy4",responsive:"SashTextBanner-module_responsive__9rPse"};function iu(e){var t=e.text,n=e.color,r=e.backgroundColor,o=e.onClick,a=e.href,s=e.className,c=e.viewType,l=h(e,["text","color","backgroundColor","onClick","href","className","viewType"]);return(0,i.jsx)("div",d({className:v(s,il[void 0===c?"responsive":c],il["marquee-inner"]),style:{backgroundColor:r,color:n}},l,{children:(0,i.jsxs)("div",o?{className:il.container,children:[(0,i.jsx)("div",{className:il.inner,children:(0,i.jsx)(w,{variant:"reset",onClick:o,children:t})}),(0,i.jsx)("div",{className:il.inner,children:(0,i.jsx)(w,{variant:"reset",onClick:o,children:t})})]}:a?{className:il.container,children:[(0,i.jsx)("div",{className:il.inner,children:(0,i.jsx)(tr,{href:a,target:"_blank",children:t})}),(0,i.jsx)("div",{className:il.inner,children:(0,i.jsx)(tr,{href:a,target:"_blank",children:t})})]}:{className:il.container,children:[(0,i.jsx)("div",{className:il.inner,children:t}),(0,i.jsx)("div",{className:il.inner,children:t})]})}))}function id(e){var t=th().isCrawler,n=is(),r=n.textBanner,o=n.adsLoading;if(t||o||!r)return null;var a=r&&d({href:r.href,text:r.text,color:r.color,backgroundColor:r.backgroundColor},e);return(null==a?void 0:a.text)?(0,i.jsx)("div",{id:"opgg-kit-sash-text-banner",className:"opgg-kit-style",children:(0,i.jsx)(iu,d({},a))}):null}var ih,im,ip=["top-left","top-right","bottom-left","bottom-right"];function ig(e){var t,n=e.message,r=e.onClose,s=e.position,c=void 0===s?"bottom-right":s,l=(0,o.useState)(),u=l[0],d=l[1],h=(0,o.useState)(),m=h[0],p=h[1],g=null==(t=n.imageUrl)?void 0:t.trim(),v=!!(g&&g!==u),f=ip.includes(c)?c:"bottom-right";return(0,o.useEffect)(function(){u&&u!==g&&d(void 0)},[u,g]),(0,o.useEffect)(function(){var e=document.getElementById("opgg-kit-portal");e&&p(e)},[]),m?(0,a.createPortal)((0,i.jsxs)("section",{className:"NotificationPopup-module_popup__5g6mm","data-has-image":v,"data-position":f,role:"status","aria-atomic":!0,"aria-live":"polite",children:[(0,i.jsxs)(tr,{className:"NotificationPopup-module_content__KwxgJ",href:n.route,children:[v&&g&&(0,i.jsx)("span",{className:"NotificationPopup-module_image-frame__rGdcU","aria-hidden":!0,children:(0,i.jsx)("img",{className:"NotificationPopup-module_image__LUOTm",src:g,alt:"",width:360,height:189,onError:function(){return d(g)}})}),(0,i.jsxs)("span",{className:"NotificationPopup-module_copy__9qjoq",children:[(0,i.jsx)("strong",{className:"NotificationPopup-module_title__L5Tuc",children:n.title}),(0,i.jsx)("span",{className:"NotificationPopup-module_body__Ipdo5",children:n.body})]})]}),(0,i.jsx)(w,{className:"NotificationPopup-module_close__NMTAe",type:"button",variant:"reset","aria-label":"Close",onClick:r,children:(0,i.jsx)(e2,{variant:"exit","aria-hidden":!0})})]}),m):null}var iv="notification",i_={cluster:"",wsHost:"opgg-ws-rvwqybshgpwjuczv.op.gg",wsPort:6001,forceTLS:!0,disableStats:!0,enabledTransports:["ws","wss"]},ib=null!=(im=null!=(ih=u.Pusher)?ih:u.default)?im:u,iw=function(e,t){return new ib(e,t)},iy=function(e,t){return window.console.error(e,t)},ix=function(e){if("object"!=typeof e||null===e||Array.isArray(e))return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t},ik=function(e,t){if(Object.prototype.hasOwnProperty.call(e,t)){var n=e[t];return"string"==typeof n&&n.trim().length>0?n:void 0}},iC=function(e){return e.replace(/_/g,"-").toLowerCase()},ij="op.gg",iN=function(e){if(e!==e.trim()||e.startsWith("//")||(t=e).includes("\\")||Array.from(t).some(function(e){var t=e.charCodeAt(0);return t<=31||127===t}))return!1;if(e.startsWith("/"))try{return(n=new URL(e,window.location.href)).origin===window.location.origin}catch(e){return!1}if(/^opgg:/i.test(e)){var t,n;if(!/^opgg:\/\//i.test(e))return!1;try{var i=new URL(e);return"opgg:"===i.protocol&&0===i.username.length&&0===i.password.length&&i.hostname.length>0&&0===i.port.length&&!i.pathname.startsWith("//")}catch(e){return!1}}if(!/^https:\/\//i.test(e))return!1;try{return"https:"===(n=new URL(e)).protocol&&0===n.username.length&&0===n.password.length&&function(e){var t=e.endsWith(".")?e.slice(0,-1):e;if(t===ij)return!0;var n=".".concat(ij);return!!t.endsWith(n)&&t.slice(0,-n.length).split(".").every(function(e){return e.length>0})}(n.hostname)}catch(e){return!1}},iS=function(e){try{return"https:"===new URL(e).protocol}catch(e){return!1}},iL=function(e,t,n){var i=function(e){if(!e)return[];var t=iC(e),n=tf.find(function(e){return e.codes.some(function(e){return iC(e)===t})}),i=n?iC(n.origin):void 0,r=t.split("-")[0],o=t.includes("-")?[t,i,r]:[i,t];return o.filter(function(e,t){return!!e&&o.indexOf(e)===t})}(t);if(0===i.length||!Object.prototype.hasOwnProperty.call(e,"localizations"))return n;var r=e.localizations;if(!ix(r))return n;for(var o=function(e){var t=Object.entries(r).filter(function(t){return iC(t[0])===e});if(0===t.length)return"continue";if(1!==t.length)return{value:n};var i=t[0][1];if(!ix(i))return{value:n};var o=ik(i,"title"),a=ik(i,"body");if(!o||!a)return{value:n};var s=n.route;if(Object.prototype.hasOwnProperty.call(i,"route")){var c=ik(i,"route");
1if(!c||!iN(c))return{value:n};s=c}var l=n.imageUrl;if(Object.prototype.hasOwnProperty.call(i,"image_url")){var u=i.image_url;if(null===u)l=void 0;else{if(!("string"==typeof u&&u.trim().length>0&&iS(u)))return{value:n};l=u}}return{value:d(d({body:a},l?{imageUrl:l}:{}),{route:s,title:o})}},a=0;a<i.length;a++){var s=o(i[a]);if("object"==typeof s)return s.value}return n},iE=function(e,t,n){try{return e.unsubscribe(t),!0}catch(e){return n("[OPGG Kit] Pusher channel cleanup failed: ".concat(t),e),!1}},iO=function(e,t,n,i){try{return e.bind(iv,n),!0}catch(e){return i("[OPGG Kit] Pusher notification binding failed: ".concat(t),e),!1}},iM=function(e,t){try{return e.channel.unbind(iv,e.notificationHandler),e.notificationHandlerBound=!1,!0}catch(n){return t("[OPGG Kit] Pusher notification cleanup failed: ".concat(e.channelName),n),!1}},iT=function(e,t,n){e.notificationHandlerBound&&iM(e,t);var i=iE(e.client,e.channelName,t);return i||!n||e.notificationHandlerBound||(e.notificationHandlerBound=iO(e.channel,e.channelName,e.notificationHandler,t)),i},iP=function(e,t){e.forEach(function(n,i){n.client===t.client&&n.channelName===t.channelName&&e.delete(i)})};function iB(e){var t=e.enableSocket,n=e.isInternalUser,r=e.langCode,a=e.notificationPosition,s=e.serviceId,c=e.onPusherReady,l=e.createClient,u=void 0===l?iw:l,h=e.reportError,m=void 0===h?iy:h,p=(0,o.useState)(),v=p[0],f=p[1],_=(0,o.useRef)(),b=(0,o.useRef)(r),w=(0,o.useRef)(),y=(0,o.useRef)(c),x=(0,o.useRef)([]),k=(0,o.useRef)(new Map),C=(0,o.useRef)([]);b.current=r,y.current=c;var j=(0,o.useCallback)(function(e){var t=function(e,t){try{var n="string"==typeof e?JSON.parse(e):e;if(!ix(n)||!Object.prototype.hasOwnProperty.call(n,"messages"))return;var i=n.messages;if(!ix(i))return;var r=ik(i,"title"),o=ik(i,"body"),a=ik(i,"route");if(!(r&&o&&a&&iN(a)))return;var s=Object.prototype.hasOwnProperty.call(i,"image_url")?i.image_url:void 0,c=void 0;if(null!=s){if("string"!=typeof s||0===s.trim().length||!iS(s))return;c=s}var l=d(d({body:o},c?{imageUrl:c}:{}),{route:a,title:r});return iL(i,t,l)}catch(e){return}}(e,b.current);t&&f(t)},[]),N=(0,o.useCallback)(function(){return f(void 0)},[]);return(0,o.useEffect)(function(){if(!0===t){if(!window.pusher){try{w.current=e=u("a7f29c4e18d0b63f95a41e72c8b30d6f",i_),window.pusher=e}catch(e){return void("construction"!==_.current&&(m("[OPGG Kit] Pusher initialization failed:",e),_.current="construction"))}_.current=void 0;var e,n=function(t){if(t.channel&&!e.channel(t.channel)){var n=k.current.get(t.channel);if(!n&&["pusher_internal:subscription_succeeded","pusher:subscription_error"].includes(t.event)&&(n=g(g([],C.current,!0),x.current,!0).reduce(function(n,i){var r;return i.client===e&&(null==(r=t.channel)?void 0:r.startsWith("".concat(i.channelName,"-")))&&(!n||i.channelName.length>n.channelName.length)?i:n},void 0))&&k.current.set(t.channel,n),n&&n.client===e){var i=e.channel(n.channelName);if(i){var r=x.current.includes(n);r&&"pusher_internal:subscription_succeeded"===t.event&&i.cancelSubscription(),i.handleEvent(d(d({},t),{channel:n.channelName})),r&&"pusher_internal:subscription_succeeded"===t.event&&(e.channel(n.channelName)&&iE(e,n.channelName,m),e.channel(n.channelName)||(x.current=x.current.filter(function(e){return e!==n}),iP(k.current,n)))}}}},i=!1;try{e.connection.bind("message",n),i=!0}catch(e){m("[OPGG Kit] Pusher channel event adapter initialization failed:",e)}return function(){if(i)try{e.connection.unbind("message",n)}catch(e){m("[OPGG Kit] Pusher channel event adapter cleanup failed:",e)}C.current.forEach(function(t){t.client===e&&iT(t,m,!1)}),C.current=C.current.filter(function(t){return t.client!==e}),x.current=x.current.filter(function(t){return t.client!==e}),k.current.forEach(function(t,n){t.client===e&&k.current.delete(n)});try{e.disconnect()}catch(e){m("[OPGG Kit] Pusher cleanup failed:",e)}finally{w.current===e&&(w.current=void 0),window.pusher===e&&delete window.pusher}}}"collision"!==_.current&&(m("[OPGG Kit] Pusher initialization skipped: window.pusher is already assigned."),_.current="collision")}else _.current=void 0},[u,t,m]),(0,o.useEffect)(function(){f(void 0)},[t,s]),(0,o.useEffect)(function(){var e=w.current;if(!0===t&&e){var i=function(e,t){if("string"!=typeof e||0===e.length)return[];var n=["opgg-".concat(e),"simple-opgg-".concat(e),"unique-opgg-".concat(e)
1];return!0===t&&n.push("opgg-".concat(e,"-INTERNAL")),n}(s,n),r=new Set(i);C.current=C.current.filter(function(t){if(t.client===e&&r.has(t.channelName))return!0;var n=t.channel.subscriptionPending,i=iT(t,m,!0);return i&&(n?x.current.push(t):iP(k.current,t)),!i});var o=i.filter(function(t){return!C.current.some(function(n){return n.client===e&&n.channelName===t})}).reduce(function(t,n){var i=x.current.find(function(t){return t.client===e&&t.channelName===n});if(i)return i.notificationHandlerBound=iO(i.channel,n,j,m),t.push(i),t;var r=function(e,t,n){try{return e.channels.add(t,e)}catch(e){return void n("[OPGG Kit] Pusher channel creation failed: ".concat(t),e)}}(e,n,m);return r&&t.push({channel:r,channelName:n,client:e,hostReadyNotified:!1,notificationHandler:j,notificationHandlerBound:iO(r,n,j,m)}),t},[]),a=o.filter(function(e){return!e.hostReadyNotified});if(a.length>0&&y.current){a.forEach(function(e){e.hostReadyNotified=!0});try{y.current(e,a.map(function(e){return e.channelName}))}catch(e){m("[OPGG Kit] Pusher ready callback failed:",e)}}o.forEach(function(t){!function(e,t,n){try{return e.subscribe(t),!0}catch(e){return n("[OPGG Kit] Pusher channel subscription failed: ".concat(t),e),!1}}(e,t.channelName,m)?t.notificationHandlerBound&&iM(t,m):(x.current=x.current.filter(function(e){return e!==t}),C.current.push(t))})}},[u,t,j,n,m,s]),v?(0,i.jsx)(ig,{message:v,onClose:N,position:a}):null}function iI(e){for(var t=e.reduce(function(e,t){return e+t.weight},0),n=Math.random()*t,i=0;i<e.length;i++){if(n<e[i].weight)return e[i];n-=e[i].weight}return e[0]}function iA(e,t,n){return e.filter(function(e){return!(!e.country.includes("GLOBAL")&&!e.country.includes(t||""))&&(!n||"notice"===e.label||"policy"===e.label)})}function iD(e){var t,n=this,r=e.children,a=e.viewType,c=e.serviceId,l=e.langCode,u=e.langCodes,h=e.darkMode,g=e.dictionary,v=e.catalog,f=e.campaign,_=e.homeCard,b=e.configError,w=e.user,y=e.userToken,x=e.userError,k=e.enableUser,C=e.enableGameProfiles,j=e.enableSocket,N=e.notificationPosition,S=e.enableDarkMode,L=e.enableLanguage,E=e.zIndex,O=e.onClickMyAccount,M=e.customClickMyAccount,T=e.onClickLogout,P=e.customClickLogout,B=e.onClickLogin,I=e.customClickLogin,A=e.onChangeLanguage,D=e.customChangeLanguage,R=e.onChangeDarkMode,z=e.customChangeDarkMode,q=e.onReady,U=e.onPusherReady,H=e.countryCode,F=e.debugMode,G=e.env,V=e.isCrawler,W=e.isSupportedWebp,J=e.homeLink,K=null==l?(0,s.parseCookies)(void 0)._ol:l,X=(0,o.useState)(0),Y=X[0],Q=X[1],$=(0,o.useState)({viewType:a||"responsive",serviceId:c,langCode:K,langCodes:u,darkMode:h,enableLanguage:L,enableDarkMode:S,enableUser:k,enableGameProfiles:C,enableSocket:j,notificationPosition:N,zIndex:E,onClickMyAccount:O,customClickMyAccount:M,onClickLogout:T,customClickLogout:P,onClickLogin:B,customClickLogin:I,onChangeLanguage:A,customChangeLanguage:D,onChangeDarkMode:R,customChangeDarkMode:z,countryCode:H,env:void 0===G?"production":G,isCrawler:V,isSupportedWebp:null!=W?W:nr(),homeLink:J}),Z=$[0],ee=$[1],et=(0,o.useState)({data:w,token:y||tS(),error:x,isLoading:!0,isReady:!1}),en=et[0],ei=et[1],er=(0,o.useState)({imageBanner:void 0,textBanner:void 0,error:void 0,isLoading:!0,isReady:!1,rawData:void 0}),eo=er[0],ea=er[1],es=(0,o.useState)({dictionary:g,catalog:v,campaign:f,homeCard:_,error:b,isLoading:!0,isReady:!1}),ec=es[0],el=es[1],eu=function(e){e?ee(function(t){return d(d({},t),{serviceId:e})}):Q(Y+1)},ed=function(e){ee(function(t){return d(d({},t),{onClickMyAccount:e.onClickMyAccount||t.onClickMyAccount,customClickMyAccount:e.customClickMyAccount||t.customClickMyAccount,onClickLogout:e.onClickLogout||t.onClickLogout,customClickLogout:e.customClickLogout||t.customClickLogout,onClickLogin:e.onClickLogin||t.onClickLogin,customClickLogin:e.customClickLogin||t.customClickLogin,onChangeLanguage:e.onChangeLanguage||t.onChangeLanguage,customChangeLanguage:e.customChangeLanguage||t.customChangeLanguage,onChangeDarkMode:e.onChangeDarkMode||t.onChangeDarkMode,customChangeDarkMode:e.customChangeDarkMode||t.customChangeDarkMode})})};return(0,o.useEffect)(function(){ee(function(e){return e.enableSocket===j&&e.langCode===K&&e.notificationPosition===N&&e.darkMode===h?e:d(d({},e),{enableSocket:j,langCode:K,notificationPosition:N,darkMode:h})})},[j,N,K,h]),(0,o.useEffect)(function(){m(n,void 0,void 0,function(){var e,t,n,i,r,o,a,s;return p(this,function(c){var l,u,h,g,v,f,_;switch(c.label){case 0:if(e=null==(a=en.data)?void 0:a.isPremium,!en.token)return[3,7];if(!Z.enableUser)return[3,6];if(en.data&&(null==(s=en.data)?void 0:s.name))return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),ei(d(d({},en),{isLoading:!0})),[4,(l=en.token,u=Z.env,m(void 0,void 0,void 0,function(){var e,t,n,i,r,o,a,s,c,d,h;return p(this,function(m){switch(m.label){case 0:return e=t$["development"===u?"development":"production"].member_api_url,o=(r=Promise).all,[4,fetch("".concat(e,"/v2/members/me"),{method:"GET",headers:{Authorization:"Bearer ".concat(l)}})];case 1:return a=[m.sent()],C?[4,fetch("".concat(e,"/v2/members/me/game-profiles"),{method:"GET",headers:{Authorization:"Bearer ".concat(l)}})]:[3,3];case 2:return s=m.sent(),[3,4];case 3:s=null,m.label=4;case 4:return[4,o.apply(r,[a.concat([s])])];case 5:n=(t=m.sent())[0],i=t[1],c=null,m.label=6;case 6:return m.trys.push([6,8,,9]),[4,n.json()];case 7:return c=m.sent(),[3,9];case 8:return m.sent(),[3,9];case 9:if(!c)return[2,null];d=null,m.label=10;case 10:return m.trys.push([10,14,,15]),C&&i?[4,i.json()]:[3,12];case 11:return h=m.sent(),[3,13];case 12:h=null,m.label=13;case 13:return d=h,[3,15];case 14:return m.sent(),[3,15];case 15:if("SUCCESS"===c.code){var p,g,v,f;return[2,(p=c.data,g=null==d?void 0:d.data,f={name:p.nick,isInternalUser:"string"==typeof(v=p.email)&&/^[^\s@]+@op\.gg$/i.test(v.trim()),isPremium:p.subscriptions.some(function(e){return e.features.includes("premium_badge")}),data:p},g&&(f.gameProfiles=g),f)]}if("OPGG_TOKEN_EXPIRED"===c.code)return null==tL||tL(),[2,null];throw{userData:c}}})}))];case 2:return t=c.sent(),ei(d(d({},en),{data:t,isLoading:!1,isReady:!0})),e=null==t?void 0:t.isPremium,[3,4];case 3:return n=c.sent(),ei(d(d({},en),{error:n,isLoading:!1,isReady:!0})),[3,4];case 4:return[3,6];case 5:ei(d(d({},en),{isLoading:!1,isReady:!0})),c.label=6;case 6:return[3,8];case 7:i=tS(),ei(d(d({},en),i?{token:i}:{isLoading:!1,isReady:!0})),c.label=8;case 8:return c.trys.push([8,10,,11]),ea(d(d({},eo),{isLoading:!0})),[4,(h=Z.langCode,g=Z.serviceId,v=Z.countryCode,f=e,_=Z.env,m(void 0,void 0,void 0,function(){var e,t,n;return p(this,function(i){switch(i.label){case 0:return e=t$["development"===_?"development":"production"].config_url,t=tv(h).origin.toLowerCase(),[4,fetch("".concat(e,"/").concat(t,"/").concat(g,".ads.json"),{method:"GET",headers:{}})];case 1:return[4,i.sent().json()];case 2:var r,o,a,s,c,l,u,m,p;return(n=i.sent())?[2,d(d({},(r=n,o=v,a=f,m=r.images,p=r.text,m&&m.length>0&&(c=(u=iI(iA(m,o,a)))?{key:u.key,color:u.text_color||"",backgroundColor:u.bg_color||"",href:u.link_utm||u.link,imgUrl:u.image_url||"",title:u.title||"",label:u.label,closeType:u.close_type}:void 0),p&&p.length>0&&(l=(s=iI(iA(p,o,a)))?{key:s.key,text:s.title,color:s.text_color||"",backgroundColor:s.bg_color||"",href:s.link_utm||s.link,label:s.label,closeType:s.close_type}:void 0),{imageBanner:c,textBanner:l})),{rawData:n})]:[2,null]}})}))];case 9:return r=c.sent(),ea(d(d({},eo),{imageBanner:null==r?void 0:r.imageBanner,textBanner:null==r?void 0:r.textBanner,rawData:null==r?void 0:r.rawData,isLoading:!1,isReady:!0})),[3,11];case 10:return o=c.sent(),ea(d(d({},eo),{error:o,isLoading:!1,isReady:!0})),[3,11];case 11:return[2]}})})},[en.token,Y]),(0,o.useEffect)(function(){m(n,void 0,void 0,function(){var e,t;return p(this,function(n){switch(n.label){case 0:if(g&&v&&f&&_)return[3,5];n.label=1;case 1:var i,r,o;return n.trys.push([1,3,,4]),el(d(d({},ec),{isLoading:!0})),[4,(i=Z.langCode,r=Z.serviceId,o=Z.env,m(void 0,void 0,void 0,function(){var e,t,n,a,s,c,l;return p(this,function(u){switch(u.label){case 0:e=t$["development"===o?"development":"production"].config_url,t$["development"===o?"development":"production"].internal_config_url,t=e,n=tv(i).origin.toLowerCase(),u.label=1;case 1:return u.trys.push([1,4,,9]),[4,fetch("".concat(t,"/").concat(n,"/").concat(r,".service.json"),{method:"GET",headers:{}})];case 2:if(!(a=u.sent()).ok)throw a;return[4,a.json()];case 3:return[2,{catalog:(l=u.sent()).service,dictionary:l.config,campaign:l.campaign,homeCard:function(e,t){var n;if(e&&t){for(var i=[],r=0;r<e.length;r++){var o=function e(t,n){var i;if(t)for(var r=0;r<t.length;r++){var o=t[r];if(o.id===n)return o;var a=e(null!=(i=o.items)?i:void 0,n);if(a)return a}}(t,e[r]);o&&o.home_card&&i.push({id:o.id,title:o.title,default_icon_url:o.default_icon_url,link:o.link,is_new:o.is_new,is_beta:o.is_beta,is_soon:o.is_soon,is_updated:o.is_updated,released_at:null!=(n=o.released_at)?n:null,background_url:o.home_card.background_url,artwork_url:o.home_card.artwork_url,artwork_hover_url:o.home_card.artwork_hover_url,logo_url:o.home_card.logo_url})}return i}}(l.home_card,l.service)}];case 4:return(s=u.sent())instanceof Response&&(404===s.status||403===s.status)?[4,fetch("".concat(e,"/").concat("en-us","/").concat("lol",".service.json"),{method:"GET",headers:{}})]:[3,7];case 5:if(!(c=u.sent()).ok)throw c;return[4,c.json()];case 6:return[2,{catalog:(l=u.sent()).service,dictionary:l.config,campaign:l.campaign}];case 7:throw s;case 8:return[3,9];case 9:return[2]}})}))];case 2:return e=n.sent(),el(d(d({},ec),{dictionary:e.dictionary,catalog:e.catalog,campaign:e.campaign,homeCard:e.homeCard,isLoading:!1,isReady:!0})),[3,4];case 3:return t=n.sent(),el(d(d({},ec),{error:t,isLoading:!1,isReady:!0})),[3,4];case 4:return[3,6];case 5:el(d(d({},ec),{isReady:!0})),n.label=6;case 6:return[2]}})})},[Y]),(0,o.useEffect)(function(){en.isReady&&eo.isReady&&ec.isReady&&q&&q(d(d({},Z),{catalog:ec.catalog,dictionary:ec.dictionary,configLoading:ec.isLoading,configError:ec.error,user:en.data,userToken:en.token,userError:en.error,textBanner:eo.textBanner,imageBanner:eo.imageBanner,adsLoading:eo.isLoading,adsError:eo.error,refresh:eu,registerFn:ed}),function(e,t,n){e&&null!=t&&e in Z&&ee(function(n){var i;return d(d({},n),((i={})[e]=t,i))})})},[en.isReady,eo.isReady,ec.isReady,Y]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(iB,{enableSocket:Z.enableSocket,isInternalUser:!0===(null==(t=en.data)?void 0:t.isInternalUser),langCode:Z.langCode,n
1otificationPosition:Z.notificationPosition,serviceId:Z.serviceId,onPusherReady:U}),(0,i.jsx)(td,{viewType:Z.viewType,serviceId:Z.serviceId,catalog:ec.catalog,campaign:ec.campaign,homeCard:ec.homeCard,enableUser:Z.enableUser,enableDarkMode:Z.enableDarkMode,enableLanguage:Z.enableLanguage,zIndex:Z.zIndex,env:Z.env,isCrawler:Z.isCrawler,isSupportedWebp:Z.isSupportedWebp,homeLink:Z.homeLink,refresh:eu,registerFunction:ed,children:(0,i.jsx)(t5,{user:en.data,userToken:en.token,userLoading:en.isLoading,userError:en.error,onClickMyAccount:Z.onClickMyAccount,onClickLogout:Z.onClickLogout,onClickLogin:Z.onClickLogin,customClickMyAccount:Z.customClickMyAccount,customClickLogout:Z.customClickLogout,customClickLogin:Z.customClickLogin,env:Z.env,children:(0,i.jsx)(tI,{langCodes:Z.langCodes,langCode:Z.langCode,dictionary:ec.dictionary,onChangeLanguage:Z.onChangeLanguage,customChangeLanguage:Z.customChangeLanguage,debugMode:F,children:(0,i.jsx)(nF,{darkMode:Z.darkMode,enableDarkMode:!!Z.enableDarkMode,onChangeDarkMode:Z.onChangeDarkMode,customChangeDarkMode:Z.customChangeDarkMode,children:(0,i.jsx)(ia,{imageBanner:eo.imageBanner,textBanner:eo.textBanner,adsError:eo.error,adsLoading:eo.isLoading,rawData:eo.rawData,children:r})})})})})]})}function iR(){var e=th(),t=t8(),n=tR(),i=nG(),r=is();return d(d(d(d(d({},e),t),n),i),r)}var iz="AnimatedVideoBanner-module_root__wnU9N",iq="AnimatedVideoBanner-module_backdrop__jkzmz",iU="AnimatedVideoBanner-module_background__mQLFx",iH="AnimatedVideoBanner-module_video__NEsl5",iF="AnimatedVideoBanner-module_overlay__MpdcH",iG="AnimatedVideoBanner-module_content__YgcJv",iV="AnimatedVideoBanner-module_left__GcxkA",iW="AnimatedVideoBanner-module_leftPadded__jqwLF",iJ="AnimatedVideoBanner-module_center__INXGt",iK="AnimatedVideoBanner-module_right__Mpwcd",iX="AnimatedVideoBanner-module_title__4aXBU",iY="AnimatedVideoBanner-module_description__lpVRH",iQ="AnimatedVideoBanner-module_cta__YAwax",i$="AnimatedVideoBanner-module_ctaButton__pUc5A",iZ="AnimatedVideoBanner-module_ctaLabel__Mloj1",i0="AnimatedVideoBanner-module_hoverable__bC5Ha";function i1(e){var t=e.href,n=e.target,r=e.rel,a=e.icon,s=e.title,c=void 0===s?"Title":s,l=e.description,u=void 0===l?"Description":l,m=e.cta,p=e.ctaClassName,g=e.ctaButtonClassName,f=e.ctaLabel,_=void 0===f?"CTA":f,b=e.ctaHref,y=e.ctaTarget,x=e.onCtaClick,k=void 0===x?function(){}:x,C=e.ctaVariant,j=e.videoSources,N=void 0===j?{mp4:"https://s-opgg-kit.op.gg/uploads/9b6e3d0d-7239-4d6a-a853-0d6d822e182f.mp4"}:j,S=e.posterSrc,L=e.disableVideo,E=e.disableHoverEffect,O=e.className,M=h(e,["href","target","rel","icon","title","description","cta","ctaClassName","ctaButtonClassName","ctaLabel","ctaHref","ctaTarget","onCtaClick","ctaVariant","videoSources","posterSrc","disableVideo","disableHoverEffect","className"]),T=(0,o.useState)(!1),P=T[0],B=T[1],I=!!t;(0,o.useEffect)(function(){if(!L&&((null==N?void 0:N.webm)||(null==N?void 0:N.mp4))){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=function(){B(!e.matches)};return t(),"function"==typeof e.addEventListener?(e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}):(e.addListener(t),function(){return e.removeListener(t)})}B(!1)},[L,null==N?void 0:N.mp4,null==N?void 0:N.webm]);var A=I?null!=m?m:(0,i.jsx)("span",{className:v(i$,g),children:(0,i.jsx)("span",{className:iZ,children:_})}):m||(b?(0,i.jsx)(tr,{href:b,className:v(i$,g),target:y,rel:"_blank"===y?"noreferrer noopener":void 0,onClick:k,children:(0,i.jsx)("span",{className:iZ,children:_})}):(0,i.jsx)(w,{type:"button",variant:void 0===C?"primary":C,className:v(i$,g),onClick:k,children:(0,i.jsx)("span",{className:iZ,children:_})})),D=null==a,R=null!=a?a:(0,i.jsxs)("span",{className:"AnimatedVideoBanner-module_defaultIconStack__Qd5xI","aria-hidden":!0,children:[(0,i.jsx)("span",{className:"AnimatedVideoBanner-module_defaultIconBack__SodQ0",children:(0,i.jsx)("span",{className:"AnimatedVideoBanner-module_defaultIconBackEntrance__wk4zh",children:(0,i.jsx)("span",{className:"AnimatedVideoBanner-module_defaultIconBackInner__zWvIJ",children:(0,i.jsx)(e2,{width:34,he
1ight:34,"aria-hidden":!0,focusable:!1})})})}),(0,i.jsx)("span",{className:"AnimatedVideoBanner-module_defaultIconFront__tFLzI",children:(0,i.jsx)("span",{className:"AnimatedVideoBanner-module_defaultIconFrontEntrance__5z2jf",children:(0,i.jsx)("span",{className:"AnimatedVideoBanner-module_defaultIconFrontInner__fMNL1",children:(0,i.jsx)(e2,{width:48,height:48,"aria-hidden":!0,focusable:!1})})})})]}),z=M["data-testid"],q="string"==typeof z?z:void 0,U={left:q?"".concat(q,"-left"):void 0,backdrop:q?"".concat(q,"-backdrop"):void 0};return(0,i.jsx)("div",{className:"opgg-kit-style",style:{display:"contents"},children:I?(0,i.jsxs)("a",d({href:t,target:n,rel:null!=r?r:"_blank"===n?"noreferrer noopener":void 0,"aria-label":"string"==typeof c?c:"Banner",className:v(iz,"AnimatedVideoBanner-module_clickable__1i6q3",!E&&i0,O)},M,{children:[(0,i.jsxs)("div",{"data-testid":U.backdrop,className:iq,children:[P&&(0,i.jsx)("div",{className:iU,children:(0,i.jsxs)("video",{className:iH,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata","aria-hidden":!0,tabIndex:-1,poster:S,children:[(null==N?void 0:N.webm)&&(0,i.jsx)("source",{src:N.webm,type:"video/webm"}),(null==N?void 0:N.mp4)&&(0,i.jsx)("source",{src:N.mp4,type:"video/mp4"})]})}),(0,i.jsx)("div",{className:iF})]}),(0,i.jsxs)("div",{className:iG,children:[(0,i.jsx)("div",{"data-testid":U.left,className:v(iV,D&&iW),children:R}),(0,i.jsxs)("div",{className:iJ,children:[(0,i.jsx)("div",{className:iX,children:c}),(0,i.jsx)("div",{className:iY,children:u})]}),(0,i.jsx)("div",{className:iK,children:(0,i.jsx)("div",{className:v(iQ,p),children:A})})]})]})):(0,i.jsxs)("div",d({className:v(iz,!E&&i0,O)},M,{children:[(0,i.jsxs)("div",{"data-testid":U.backdrop,className:iq,children:[P&&(0,i.jsx)("div",{className:iU,children:(0,i.jsxs)("video",{className:iH,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata","aria-hidden":!0,tabIndex:-1,poster:S,children:[(null==N?void 0:N.webm)&&(0,i.jsx)("source",{src:N.webm,type:"video/webm"}),(null==N?void 0:N.mp4)&&(0,i.jsx)("source",{src:N.mp4,type:"video/mp4"})]})}),(0,i.jsx)("div",{className:iF})]}),(0,i.jsxs)("div",{className:iG,children:[(0,i.jsx)("div",{"data-testid":U.left,className:v(iV,D&&iW),children:R}),(0,i.jsxs)("div",{className:iJ,children:[(0,i.jsx)("div",{className:iX,children:c}),(0,i.jsx)("div",{className:iY,children:u})]}),(0,i.jsx)("div",{className:iK,children:(0,i.jsx)("div",{className:v(iQ,p),children:A})})]})]}))})}var i2={root:"GameList-module_root__wP2qw",scrollContainer:"GameList-module_scrollContainer__xxYWY",arrowButton:"GameList-module_arrowButton__sOS0N",arrowLeft:"GameList-module_arrowLeft__1w4fT",arrowRight:"GameList-module_arrowRight__BV82Y",arrowDisabled:"GameList-module_arrowDisabled__isdKx",item:"GameList-module_item__IjbVO",itemLink:"GameList-module_itemLink__pQXwh",newBadge:"GameList-module_newBadge__7I7fB",card:"GameList-module_card__hd9li",artwork:"GameList-module_artwork__7dxA2",artworkHover:"GameList-module_artworkHover__wvWKS",logo:"GameList-module_logo__Xczi4",itemLabel:"GameList-module_itemLabel__n8Y9D",itemLabelLink:"GameList-module_itemLabelLink__vsst4",itemTitle:"GameList-module_itemTitle__g8Bsn",rootExpanded:"GameList-module_rootExpanded__7XIvI",gridContainer:"GameList-module_gridContainer__Q629w",expandButton:"GameList-module_expandButton__3-Xcf",expandIcon:"GameList-module_expandIcon__JdFsC",expandIconRotated:"GameList-module_expandIconRotated__P2kpJ"};(0,o.forwardRef)(function(e,t){var n,r,o=e.data,a=e.onClick,s=a?function(e){return a(o,e)}:void 0;return(0,i.jsxs)("div",{ref:t,className:i2.item,children:[(0,i.jsxs)("a",{href:(null==(n=o.link)?void 0:n.pc)||"#",className:v(i2.itemLink,o.is_new&&i2.itemNew),target:"_blank",rel:"noreferrer noopener",onClick:s,children:[o.is_new&&(0,i.jsx)("strong",{className:i2.newBadge,children:"NEW"}),(0,i.jsxs)("div",{className:i2.card,style:{backgroundImage:"url(".concat(o.background_url,")")},children:[(0,i.jsx)("img",{className:i2.artwork,src:o.artwork_url,alt:o.title,width:170,height:260,loading:"lazy"}),(0,i.jsx)("img",{className:i2.artworkHover,src:o.artwork_hover_url,alt:o.title,width:340,height:520,loading:"lazy"}),(0,i.jsx)("img",{className:i2.logo,src:o.logo_url,alt:o.title,width:170,height:81,loading:"lazy"})]})]}),(0,i.jsx)("span",{className:i2.itemLabel,children:(0,i.jsxs)("a",{href:(null==(r=o.link)?void 0:r.pc)||"#",target:"_blank",rel:"noreferrer noopener",className:i2.itemLabelLink,onClick:s,children:[(0,i.jsx)("img",{src:o.default_icon_url,alt:o.title,width:24,height:24,loading:"lazy"}),(0,i.jsx)("span",{className:i2.itemTitle,children:o.title})]})})]})})},65870:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};
1Object.defineProperty(t,"__esModule",{value:!0}),t.destroyCookie=t.setCookie=t.parseCookies=void 0;var r=n(99709),o=n(88181),a=n(28347);function s(e,t){var n,i;return(null==(i=null==(n=null==e?void 0:e.req)?void 0:n.headers)?void 0:i.cookie)?r.parse(e.req.headers.cookie,t):a.isBrowser()?r.parse(document.cookie,t):{}}function c(e,t,n,s){var c,l;if(void 0===s&&(s={}),(null==(c=null==e?void 0:e.res)?void 0:c.getHeader)&&e.res.setHeader){if(null==(l=null==e?void 0:e.res)?void 0:l.finished)return console.warn('Not setting "'+t+'" cookie. Response has finished.'),console.warn("You should set cookie before res.send()"),{};var u=e.res.getHeader("Set-Cookie")||[];"string"==typeof u&&(u=[u]),"number"==typeof u&&(u=[]);var d=o.parse(u,{decodeValues:!1}),h=a.createCookie(t,n,s),m=[];d.forEach(function(e){if(!a.areCookiesEqual(e,h)){var t=r.serialize(e.name,e.value,i({encode:function(e){return e}},e));m.push(t)}}),m.push(r.serialize(t,n,s)),e.res.setHeader("Set-Cookie",m)}if(a.isBrowser()){if(s&&s.httpOnly)throw Error("Can not set a httpOnly cookie in the browser.");document.cookie=r.serialize(t,n,s)}return{}}function l(e,t,n){return c(e,t,"",i(i({},n||{}),{maxAge:-1}))}t.parseCookies=s,t.setCookie=c,t.destroyCookie=l,t.default={set:c,get:s,destroy:l}},88181:e=>{"use strict";var t={decodeValues:!0,map:!1,silent:!1};function n(e){return"string"!=typeof e||e in{}}function i(){return Object.create(null)}function r(e){return"string"==typeof e&&!!e.trim()}function o(e,o){var a,s,c,l,u=e.split(";").filter(r),d=(a=u.shift(),s="",c="",(l=a.split("=")).length>1?(s=l.shift(),c=l.join("=")):c=a,{name:s,value:c}),h=d.name,m=d.value;if(o=o?Object.assign({},t,o):t,n(h))return null;try{m=o.decodeValues?decodeURIComponent(m):m}catch(e){console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",e)}var p=i();return p.name=h,p.value=m,u.forEach(function(e){var t=e.split("="),i=t.shift().trimLeft().toLowerCase();if(!n(i)){var r=t.join("=");if("expires"===i)p.expires=new Date(r);else if("max-age"===i){var o=parseInt(r,10);Number.isNaN(o)||(p.maxAge=o)}else"secure"===i?p.secure=!0:"httponly"===i?p.httpOnly=!0:"samesite"===i?p.sameSite=r:"partitioned"===i?p.partitioned=!0:i&&(p[i]=r)}}),p}function a(e,a){if(a=a?Object.assign({},t,a):t,!e)if(!a.map)return[];else return i();if(e.headers)if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var s=e.headers[Object.keys(e.headers).find(function(e){return"set-cookie"===e.toLowerCase()})];s||!e.headers.cookie||a.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=s}if(Array.isArray(e)||(e=[e]),!a.map)return e.filter(r).map(function(e){return o(e,a)}).filter(Boolean);var c=i();return e.filter(r).reduce(function(e,t){var i=o(t,a);return i&&!n(i.name)&&(e[i.name]=i),e},c)}e.exports=a,e.exports.parse=a,e.exports.parseString=o,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,n,i,r,o,a=[],s=0;function c(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,o=!1;c();)if(","===(n=e.charAt(s))){for(i=s,s+=1,c(),r=s;s<e.length&&"="!==(n=e.charAt(s))&&";"!==n&&","!==n;)s+=1;s<e.length&&"="===e.charAt(s)?(o=!0,s=r,a.push(e.substring(t,i)),t=s):s=i+1}else s+=1;(!o||s>=e.length)&&a.push(e.substring(t,e.length))}return a}},91183:e=>{self,e.exports=(()=>{var e={594(e,t){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",n=0;n<e.length-2;n+=3){var i=e[n]<<16|e[n+1]<<8|e[n+2];t+=this._encodeByte(i>>>18&63),t+=this._encodeByte(i>>>12&63),t+=this._encodeByte(i>>>6&63),t+=this._encodeByte(i>>>0&63)}var r=e.length-n;if(r>0){var i=e[n]<<16|(2===r?e[n+1]<<8:0);t+=this._encodeByte(i>>>18&63),t+=this._encodeByte(i>>>12&63),2===r?t+=this._encodeByte(i>>>6&63):t+=this._paddingCharacter||"",t+=this._paddingCharacter||""}return t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),n=e.length-t,i=new Uint8Array(this.maxDecodedLength(n)),r=0,o=0,a=0,s=0,c=0,l=0,u=0;o<n-4;o+=4)s=this._decodeChar(e.charCodeAt(o+0)),c=this._decodeChar(e.charCodeAt(o+1)),l=this._decodeChar(e.charCodeAt(o+2)),u=this._decodeChar(e.charCodeAt(o+3)),i[r++]=s<<2|c>>>4,i[r++]=c<<4|l>>>2,i[r++]=l<<6|u,a|=256&s,a|=256&c,a|=256&l,a|=256&u;if(o<n-1&&(s=this._decodeChar(e.charCodeAt(o)),c=this._decodeChar(e.charCodeAt(o+1)),i[r++]=s<<2|c>>>4,a|=256&s,a|=256&c),o<n-2&&(l=this._decodeChar(e.charCodeAt(o+2)),i[r++]=c<<4|l>>>2,a|=256&l),o<n-3&&(u=this._decodeChar(e.charCodeAt(o+3)),i[r++]=l<<6|u,a|=256&u),0!==a)throw Error("Base64Coder: incorrect characters for decoding");return i},e.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-15,String.fromCharCode(t+=62-e>>>8&3)},e.prototype._decodeChar=function(e){return 256+((42-e&e-44)>>>8&-256+e-43+62)+((46-e&e-48)>>>8&-256+e-47+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var n=e.length-1;n>=0&&e[n]===this._paddingCharacter;n--)t++;if(e.length<4||t>2)throw Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=r;var o=new r;t.encode=function(e){return o.encode(e)},t.decode=function(e){return o.decode(e)};var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-13,String.fromCharCode(t+=62-e>>>8&49)},t.prototype._decodeChar=function(e){return 256+((44-e&e-46)>>>8&-256+e-45+62)+((94-e&e-96)>>>8&-256+e-95+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},t}(r);t.URLSafeCoder=a;var s=new a;t.encodeURLSafe=function(e){return s.encode(e)},t.decodeURLSafe=function(e){return s.decode(e)},t.encodedLength=function(e){return o.encodedLength(e)},t.maxDecodedLength=function(e){return o.maxDecodedLength(e)},t.decodedLength=function(e){return o.decodedLength(e)}},978(e,t){"use strict";var n="utf8: invalid source encoding";t.D4=function(e){for(var t=[],i=0;i<e.length;i++){var r=e[i];if(128&r){var o=void 0;if(r<224){if(i>=e.length)throw Error(n);var a=e[++i];if((192&a)!=128)throw Error(n);r=(31&r)<<6|63&a,o=128}else if(r<240){if(i>=e.length-1)throw Error(n);var a=e[++i],s=e[++i];if((192&a)!=128||(192&s)!=128)throw Error(n);r=(15&r)<<12|(63&a)<<6|63&s,o=2048}else if(r<248){if(i>=e.length-2)throw Error(n);var a=e[++i],s=e[++i],c=e[++i];if((192&a)!=128||(192&s)!=128||(192&c)!=128)throw Error(n);r=(15&r)<<18|(63&a)<<12|(63&s)<<6|63&c,o=65536}else throw Error(n);if(r<o||r>=55296&&r<=57343)throw Error(n);if(r>
1=65536){if(r>1114111)throw Error(n);r-=65536,t.push(String.fromCharCode(55296|r>>10)),r=56320|1023&r}}t.push(String.fromCharCode(r))}return t.join("")}},721(e,t,n){e.exports=n(207).default},207(e,t,n){"use strict";n.d(t,{default:()=>td});class i{constructor(e,t){this.lastId=0,this.prefix=e,this.name=t}create(e){this.lastId++;var t=this.lastId,n=this.prefix+t,i=this.name+"["+t+"]",r=!1,o=function(){r||(e.apply(null,arguments),r=!0)};return this[t]=o,{number:t,id:n,name:i,callback:o}}remove(e){delete this[e.number]}}var r,o,a,s,c,l,u=new i("_pusher_script_","Pusher.ScriptReceivers");let d="8.6.0",h={endpoint:"/pusher/user-auth",transport:"ajax"},m={endpoint:"/pusher/auth",transport:"ajax"};class p{constructor(e){this.options=e,this.receivers=e.receivers||u,this.loading={}}load(e,t,n){var i=this;if(i.loading[e]&&i.loading[e].length>0)i.loading[e].push(n);else{i.loading[e]=[n];var r=e8.createScriptRequest(i.getPath(e,t)),o=i.receivers.create(function(t){if(i.receivers.remove(o),i.loading[e]){var n=i.loading[e];delete i.loading[e];for(var a=function(e){e||r.cleanup()},s=0;s<n.length;s++)n[s](t,a)}});r.send(o)}}getRoot(e){var t=e8.getDocument().location.protocol;return(e&&e.useTLS||"https:"===t?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version}getPath(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"}}var g=new i("_pusher_dependencies","Pusher.DependenciesReceivers"),v=new p({cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",version:d,suffix:"",receivers:g});let f={authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}},_=function(e){let t,n=f[e];return n&&(n.fullUrl?t=n.fullUrl:n.path&&(t="https://pusher.com"+n.path),t)?`See: ${t}`:""};(r=s||(s={})).UserAuthentication="user-authentication",r.ChannelAuthorization="channel-authorization";class b extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class y extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class k extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class C extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class j extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class N extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class S extends Error{constructor(e,t){super(t),this.status=e,Object.setPrototypeOf(this,new.target.prototype)}}let L=function(e,t,n,i,r){let o=e8.createXHR();for(var a in o.open("POST",n.endpoint,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.headers)o.setRequestHeader(a,n.headers[a]);if(null!=n.headersProvider){let e=n.headersProvider();for(var a in e)o.setRequestHeader(a,e[a])}return o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status){let e,t=!1;try{e=JSON.parse(o.responseText),t=!0}catch(e){r(new S(200,`JSON returned from ${i.toString()}
1 endpoint was invalid, yet status code was 200. Data was: ${o.responseText}`),null)}t&&r(null,e)}else{let e="";switch(i){case s.UserAuthentication:e=_("authenticationEndpoint");break;case s.ChannelAuthorization:e=`Clients must be authorized to join private or presence channels. ${_("authorizationEndpoint")}`}r(new S(o.status,`Unable to retrieve auth string from ${i.toString()} endpoint - received status: ${o.status} from ${n.endpoint}. ${e}`),null)}},o.send(t),o};for(var E=String.fromCharCode,O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M={},T=0,P=O.length;T<P;T++)M[O.charAt(T)]=T;var B=function(e){var t=e.charCodeAt(0);return t<128?e:t<2048?E(192|t>>>6)+E(128|63&t):E(224|t>>>12&15)+E(128|t>>>6&63)+E(128|63&t)},I=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[O.charAt(n>>>18),O.charAt(n>>>12&63),t>=2?"=":O.charAt(n>>>6&63),t>=1?"=":O.charAt(63&n)].join("")},A="undefined"!=typeof window&&window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,I)};class D{constructor(e,t,n,i){this.clear=t,this.timer=e(()=>{this.timer&&(this.timer=i(this.timer))},n)}isRunning(){return null!==this.timer}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}let R=D;function z(e){window.clearTimeout(e)}function q(e){window.clearInterval(e)}class U extends R{constructor(e,t){super(setTimeout,z,e,function(e){return t(),null})}}class H extends R{constructor(e,t){super(setInterval,q,e,function(e){return t(),e})}}let F={now:()=>Date.now?Date.now():new Date().valueOf(),defer:e=>new U(0,e),method(e){var t=Array.prototype.slice.call(arguments,1);return function(n){return n[e].apply(n,t.concat(arguments))}}};function G(e,...t){for(var n=0;n<t.length;n++){var i=t[n];for(var r in i)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(i[r]&&i[r].constructor&&i[r].constructor===Object?e[r]=G(e[r]||{},i[r]):e[r]=i[r])}return e}function V(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"==typeof arguments[t]?e.push(arguments[t]):e.push(ee(arguments[t]));return e.join(" : ")}function W(e,t){var n=Array.prototype.indexOf;if(null===e)return -1;if(n&&e.indexOf===n)return e.indexOf(t);for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return -1}function J(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],n,e)}function K(e){var t=[];return J(e,function(e,n){t.push(n)}),t}function X(e,t,n){for(var i=0;i<e.length;i++)t.call(n||window,e[i],i,e)}function Y(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t(e[i],i,e,n));return n}function Q(e,t){t=t||function(e){return!!e};for(var n=[],i=0;i<e.length;i++)t(e[i],i,e,n)&&n.push(e[i]);return n}function $(e,t){var n={};return J(e,function(i,r){(t&&t(i,r,e,n)||i)&&(n[r]=i)}),n}function Z(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return!0;return!1}function ee(e){try{return JSON.stringify(e)}catch(i){var t,n;return JSON.stringify((t=[],n=[],function e(i,r){var o,a,s;switch(typeof i){case"object":if(!i)return null;for(o=0;o<t.length;o+=1)if(t[o]===i)return{$ref:n[o]};if(t.push(i),n.push(r),"[object Array]"===Object.prototype.toString.apply(i))for(o=0,s=[];o<i.length;o+=1)s[o]=e(i[o],r+"["+o+"]");else for(a in s={},i)Object.prototype.hasOwnProperty.call(i,a)&&(s[a]=e(i[a],r+"["+JSON.stringify(a)+"]"));return s;case"number":case"string":case"boolean":return i}}(e,"$")))}}class et{constructor(){this.globalLog=e=>{window.console&&window.console.log&&window.console.log(e)}}debug(...e){this.log(this.globalLog,e)}warn(...e){this.log(this.globalLogWarn,e)}error(...e){this.log(this.globalLogError,e)}globalLogWarn(e){window.console&&window.console.warn?window.console.warn(e):this.globalLog(e)}globalLogError(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)}log(e){var t=V.apply(this,arguments);td.log?td.log(t):td.logToConsole&&e.bind(this)(t)}}let en=new et,ei=function(e,t,n,i,r){(void 0!==n.headers||null!=n.headersProvider)&&en.warn(`To send headers with the ${i.toString()} request, you must use AJAX, rather than JSONP.`);var o=e.nextAuthCallbackID.toString();e.nextAuthCallbackID++;var a=e.getDocument(),s=a.createElement("script");e.auth_callbacks[o]=function(e){r(null,e)},s.src=n.endpoint+"?callback="+encodeURIComponent("Pusher.auth_callbacks['"+o+"']")+"&"+t;var c=a.getElementsByTagName("head")[0]||a.documentElement;c.insertBefore(s,c.firstChild)};class er{constructor(e){this.src=e}send(e){var t=this,n="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(n)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){("loaded"===t.script.readyState||"complete"===t.script.readyState)&&e.callback(null)},void 0===t.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+n+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var i=document.getElementsByTagName("head")[0];i.insertBefore(t.script,i.firstChild),t.errorScript&&i.insertBefore(t.errorScript,t.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class eo{constructor(e,t){this.url=e,this.data=t}send(e){if(!this.request){var t,n,i,r,o=Y((t=$(this.data,function(e){return void 0!==e}),n=function(e){return null===e?"":("object"==typeof e&&(e=ee(e)),encodeURIComponent(A(e.toString().replace(/[^\x00-\x7F]/g,B))
1))},i={},J(t,function(e,t){i[t]=n(e)}),r=[],J(i,function(e,t){r.push([t,e])}),r),F.method("join","=")).join("&"),a=this.url+"/"+e.number+"?"+o;this.request=e8.createScriptRequest(a),this.request.send(e)}}cleanup(){this.request&&this.request.cleanup()}}function ea(e,t,n){return e+(t.useTLS?"s":"")+"://"+(t.useTLS?t.hostTLS:t.hostNonTLS)+n}function es(e,t){return"/app/"+e+"?protocol=7&client=js&version="+d+(t?"&"+t:"")}class ec{constructor(){this._callbacks={}}get(e){return this._callbacks["_"+e]}add(e,t,n){var i="_"+e;this._callbacks[i]=this._callbacks[i]||[],this._callbacks[i].push({fn:t,context:n})}remove(e,t,n){if(!e&&!t&&!n){this._callbacks={};return}var i=e?["_"+e]:K(this._callbacks);t||n?this.removeCallback(i,t,n):this.removeAllCallbacks(i)}removeCallback(e,t,n){X(e,function(e){this._callbacks[e]=Q(this._callbacks[e]||[],function(e){return t&&t!==e.fn||n&&n!==e.context}),0===this._callbacks[e].length&&delete this._callbacks[e]},this)}removeAllCallbacks(e){X(e,function(e){delete this._callbacks[e]},this)}}
1class el{constructor(e){this.callbacks=new ec,this.global_callbacks=[],this.failThrough=e}bind(e,t,n){return this.callbacks.add(e,t,n),this}bind_global(e){return this.global_callbacks.push(e),this}unbind(e,t,n){return this.callbacks.remove(e,t,n),this}unbind_global(e){return e?this.global_callbacks=Q(this.global_callbacks||[],t=>t!==e):this.global_callbacks=[],this}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(e,t,n){for(var i=0;i<this.global_callbacks.length;i++)this.global_callbacks[i](e,t);var r=this.callbacks.get(e),o=[];if(n?o.push(t,n):t&&o.push(t),r&&r.length>0)for(var i=0;i<r.length;i++)r[i].fn.apply(r[i].context||window,o);else this.failThrough&&this.failThrough(e,t);return this}}class eu extends el{constructor(e,t,n,i,r){super(),this.initialize=e8.transportConnectionInitializer,this.hooks=e,this.name=t,this.priority=n,this.key=i,this.options=r,this.state="new",this.timeline=r.timeline,this.activityTimeout=r.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||"initialized"!==this.state)return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(e){return F.defer(()=>{this.onError(e),this.changeState("closed")}),!1}return this.bindListeners(),en.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0}close(){return!!this.socket&&(this.socket.close(),!0)}send(e){return"open"===this.state&&(F.defer(()=>{this.socket&&this.socket.send(e)}),!0)}ping(){"open"===this.state&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))}onClose(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(e){this.emit("message",e)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=e=>{this.onError(e)},this.socket.onclose=e=>{this.onClose(e)},this.socket.onmessage=e=>{this.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)}buildTimelineMessage(e){return G({cid:this.id},e)}}class ed{constructor(e){this.hooks=e}isSupported(e){return this.hooks.isSupported(e)}createConnection(e,t,n,i){return new eu(this.hooks,e,t,n,i)}}var eh=new ed({urls:{getInitial:function(e,t){var n=(t.httpPath||"")+es(e,"flash=false");return ea("ws",t,n)}},handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!e8.getWebSocketAPI()},isSupported:function(){return!!e8.getWebSocketAPI()},getSocket:function(e){return e8.createWebSocket(e)}}),em={urls:{getInitial:function(e,t){var n=(t.httpPath||"/pusher")+es(e);return ea("http",t,n)}},handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},ep=G({getSocket:function(e){return e8.HTTPFactory.createStreamingSocket(e)}},em),eg=G({getSocket:function(e){return e8.HTTPFactory.createPollingSocket(e)}},em),ev={isSupported:function(){return e8.isXHRSupported()}};let ef={ws:eh,xhr_streaming:new ed(G({},ep,ev)),xhr_polling:new ed(G({},eg,ev))};var e_=new ed({file:"sockjs",urls:{getInitial:function(e,t){return ea("http",t,t.httpPath||"/pusher")},getPath:function(e,t){return es(e)}},handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(e,t){return new window.SockJS(e,null,{js_path:v.getPath("sockjs",{useTLS:t.useTLS}),ignore_null_origin:t.ignoreNullOrigin})},beforeOpen:function(e,t){e.send(JSON.stringify({path:t}))}}),eb={isSupported:function(e){return e8.isXDRSupported(e.useTLS)}},ew=new ed(G({},ep,eb)),ey=new ed(G({},eg,eb));ef.xdr_streaming=ew,ef.xdr_polling=ey,ef.sockjs=e_;class ex extends el{constructor(){super();var e=this;"undefined"!=typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",function(){e.emit("online")},!1),window.addEventListener("offline",function(){e.emit("offline")},!1))}isOnline(){return void 0===window.navigator.onLine||window.navigator.onLine}}var ek=new ex;class eC{constructor(e,t,n){this.manager=e,this.transport=t,this.minPingDelay=n.minPingDelay,this.maxPingDelay=n.maxPingDelay,this.pingDelay=void 0}createConnection(e,t,n,i){i=G({},i,{activityTimeout:this.pingDelay});var r=this.transport.createConnection(e,t,n,i),o=null,a=function(){r.unbind("open",a),r.bind("closed",s),o=F.now()},s=e=>{if(r.unbind("closed",s),1002===e.code||1003===e.code)this.manager.reportDeath();else if(!e.wasClean&&o){var t=F.now()-o;t<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(t/2,this.minPingDelay))}};return r.bind("open",a),r}isSupported(e){return this.manager.isAlive()&&this.transport.isSupported(e)}}let ej={decodeMessage:function(e){try{var t=JSON.parse(e.data),n=t.data;if("string"==typeof n)try{n=JSON.parse(t.data)}catch(e){}var i={event:t.event,channel:t.channel,data:n};return t.user_id&&(i.user_id=t.user_id),i}catch(t){throw{type:"MessageParseError",error:t,data:e.data}}},encodeMessage:function(e){return JSON.stringify(e)},processHandshake:function(e){var t=ej.decodeMessage(e);if("pusher:connection_established"===t.event){if(!t.data.activity_timeout)throw"No activity timeout specified in handshake";
1return{action:"connected",id:t.data.socket_id,activityTimeout:1e3*t.data.activity_timeout}}if("pusher:error"===t.event)return{action:this.getCloseAction(t.data),error:this.getCloseError(t.data)};throw"Invalid handshake"},getCloseAction:function(e){if(e.code<4e3)if(e.code>=1002&&e.code<=1004)return"backoff";else return null;return 4e3===e.code?"tls_only":e.code<4100?"refused":e.code<4200?"backoff":e.code<4300?"retry":"refused"},getCloseError:function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}};class eN extends el{constructor(e,t){super(),this.id=e,this.transport=t,this.activityTimeout=t.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(e){return this.transport.send(e)}send_event(e,t,n){var i={event:e,data:t};return n&&(i.channel=n),en.debug("Event sent",i),this.send(ej.encodeMessage(i))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var e={message:e=>{var t;try{t=ej.decodeMessage(e)}catch(t){this.emit("error",{type:"MessageParseError",error:t,data:e.data})}if(void 0!==t){switch(en.debug("Event recd",t),t.event){case"pusher:error":this.emit
vendor: 4,345 bytes, line 1
1("error",{type:"PusherError",data:t.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong")}this.emit("message",t)}},activity:()=>{this.emit("activity")},error:e=>{this.emit("error",e)},closed:e=>{t(),e&&e.code&&this.handleCloseEvent(e),this.transport=null,this.emit("closed")}},t=()=>{J(e,(e,t)=>{this.transport.unbind(t,e)})};J(e,(e,t)=>{this.transport.bind(t,e)})}handleCloseEvent(e){var t=ej.getCloseAction(e),n=ej.getCloseError(e);n&&this.emit("error",n),t&&this.emit(t,{action:t,error:n})}}class eS{constructor(e,t){this.transport=e,this.callback=t,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=e=>{var t;this.unbindListeners();try{t=ej.processHandshake(e)}catch(e){this.finish("error",{error:e}),this.transport.close();return}"connected"===t.action?this.finish("connected",{connection:new eN(t.id,this.transport),activityTimeout:t.activityTimeout}):(this.finish(t.action,{error:t.error}),this.transport.close())},this.onClosed=e=>{this.unbindListeners();var t=ej.getCloseAction(e)||"backoff",n=ej.getCloseError(e);this.finish(t,{error:n})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(e,t){this.callback(G({transport:this.transport,action:e},t))}}class eL{constructor(e,t){this.timeline=e,this.options=t||{}}send(e,t){this.timeline.isEmpty()||this.timeline.send(e8.TimelineTransport.getAgent(this,e),t)}}class eE extends el{constructor(e,t){super(function(t,n){en.debug("No callbacks on "+e+" for "+t)}),this.name=e,this.pusher=t,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(e,t){return t(null,{auth:""})}trigger(e,t){if(0!==e.indexOf("client-"))throw new b("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var n=_("triggeringClientEvents");en.warn(`Client event triggered before channel 'subscription_succeeded' event . ${n}`)}return this.pusher.send_event(e,t,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(e){var t=e.event,n=e.data;"pusher_internal:subscription_succeeded"===t?this.handleSubscriptionSucceededEvent(e):"pusher_internal:subscription_count"===t?this.handleSubscriptionCountEvent(e):0!==t.indexOf("pusher_internal:")&&this.emit(t,n,{})}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)}handleSubscriptionCountEvent(e){e.data.subscription_count&&(this.subscriptionCount=e.data.subscription_count),this.emit("pusher:subscription_count",e.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(e,t)=>{e?(this.subscriptionPending=!1,en.error(e.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof S?{status:e.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:t.auth,channel_data:t.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class eO extends eE{authorize(e,t){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},t)}}class eM{constructor(){this.reset()}get(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}each(e){J(this.members,(t,n)=>{e(this.get(n))})}setMyID(e){this.myID=e}onSubscription(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)}addMember(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}removeMember(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}class eT extends eO{constructor(e,t){super(e,t),this.members=new eM}authorize(e,t){super.authorize(e,(e,n)=>{var i,r,o,a;return i=this,r=void 0,o=void 0,a=function*(){if(!e)if(null!=n.channel_data){var i=JSON.parse(n.channel_data);
1this.members.setMyID(i.user_id)}else if(yield this.pusher.user.signinDonePromise,null!=this.pusher.user.user_data)this.members.setMyID(this.pusher.user.user_data.id);else{let e=_("authorizationEndpoint");en.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${e}, or the user should be signed in.`),t("Invalid auth response");return}t(e,n)},new(o||(o=Promise))(function(e,t){function n(e){try{c(a.next(e))}catch(e){t(e)}}function s(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var i;t.done?e(t.value):((i=t.value)instanceof o?i:new o(function(e){e(i)})).then(n,s)}c((a=a.apply(i,r||[])).next())})})}handleEvent(e){var t=e.event;if(0===t.indexOf("pusher_internal:"))this.handleInternalEvent(e);else{var n=e.data,i={};e.user_id&&(i.user_id=e.user_id),this.emit(t,n,i)}}handleInternalEvent(e){var t=e.event,n=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var i=this.members.addMember(n);this.emit("pusher:member_added",i);break;case"pusher_internal:member_removed":var r=this.members.removeMember(n);r&&this.emit("pusher:member_removed",r)}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var eP=n(978),eB=n(594);class eI extends eO{constructor(e,t,n){super(e,t),this.key=null,this.nacl=n}authorize(e,t){super.authorize(e,(e,n)=>{if(e)return void t(e,n);let i=n.shared_secret;if(!i)return void t(Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);this.key=(0,eB.decode)(i),delete n.shared_secret,t(null,n)})}trigger(e,t){throw new C("Client events are not currently supported for encrypted channels")}handleEvent(e){var t=e.event,n=e.data;if(0===t.indexOf("pusher_internal:")||0===t.indexOf("pusher:"))return void super.handleEvent(e);this.handleEncryptedEvent(t,n)}handleEncryptedEvent(e,t){if(!this.key)return void en.debug("Received encrypted event before key has been retrieved from the authEndpoint");if(!t.ciphertext||!t.nonce)return void en.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);let n=(0,eB.decode)(t.ciphertext);if(n.length<this.nacl.secretbox.overheadLength)return void en.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${n.length}`);let i=(0,eB.decode)(t.nonce);if(i.length<this.nacl.secretbox.nonceLength)return void en.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${i.length}`);let r=this.nacl.secretbox.open(n,i,this.key);if(null===r){en.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(t,o)=>t?void en.error(`Failed to make a request to the authEndpoint: ${o}. Unable to fetch new key, so dropping encrypted event`):null===(r=this.nacl.secretbox.open(n,i,this.key))?void en.error("Failed to decrypt event with new key. Dropping encrypted event"):void this.emit(e,this.getDataToEmit(r)));return}this.emit(e,this.getDataToEmit(r))}getDataToEmit(e){let t=(0,eP.D4)(e);try{return JSON.parse(t)}catch(e){return t}}}class eA extends el{constructor(e,t){super(),this.state="initialized",this.connection=null,this.key=e,this.options=t,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var n=e8.getNetwork();n.bind("online",()=>{this.timeline.info({netinfo:"online"}),("connecting"===this.state||"unavailable"===this.state)&&this.retryIn(0)}),n.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(e){this.key=e,this.updateStrategy(),this.retryIn(0)}connect(){if(!this.connection&&!this.runner){if(!this.strategy.isSupported())return void this.updateState("failed");this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(e){return!!this.connection&&this.connection.send(e)}send_event(e,t,n){return!!this.connection&&this.connection.send_event(e,t,n)}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var e=(t,n)=>{t?this.runner=this.strategy.connect(0,e):"error"===n.action?(this.emit
vendor: 4,117 bytes, line 1
1("error",{type:"HandshakeError",error:n.error}),this.timeline.error({handshakeError:n.error})):(this.abortConnecting(),this.handshakeCallbacks[n.action](n))};this.runner=this.strategy.connect(0,e)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(e){this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new U(e||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new U(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new U(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new U(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(e){return G({},e,{message:e=>{this.resetActivityCheck(),this.emit("message",e)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:e=>{this.emit("error",e)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(e){return G({},e,{connected:e=>{this.activityTimeout=Math.min(this.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(e.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let e=e=>t=>{t.error&&this.emit("error",{type:"WebSocketError",error:t.error}),e(t)};return{tls_only:e(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:e(()=>{this.disconnect()}),backoff:e(()=>{this.retryIn(1e3)}),retry:e(()=>{this.retryIn(0)})}}setConnection(e){for(var t in this.connection=e,this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()}abandonConnection(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}}updateState(e,t){var n=this.state;if(this.state=e,n!==e){var i=e;"connected"===i&&(i+=" with new socket ID "+t.socket_id),en.debug("State changed",n+" -> "+i),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:n,current:e}),this.emit(e,t)}}shouldRetry(){return"connecting"===this.state||"connected"===this.state}}class eD{constructor(){this.channels={}}add(e,t){return this.channels[e]||(this.channels[e]=function(e,t){if(0===e.indexOf("private-encrypted-")){if(t.config.nacl)return eR.createEncryptedChannel(e,t,t.config.nacl);let n=_("encryptedChannelSupport");throw new C(`Tried to subscribe to a private-encrypted- channel but no nacl implementation available. ${n}`)}if(0===e.indexOf("private-"))return eR.createPrivateChannel(e,t);if(0===e.indexOf("presence-"))return eR.createPresenceChannel(e,t);if(0!==e.indexOf("#"))return eR.createChannel(e,t);throw new w('Cannot create a channel with name "'+e+'".')}(e,t)),this.channels[e]}all(){var e,t;return e=this.channels,t=[],J(e,function(e){t.push(e)}),t}find(e){return this.channels[e]}remove(e){var t=this.channels[e];return delete this.channels[e],t}disconnect(){J(this.channels,function(e){e.disconnect()})}}let eR={createChannels:()=>new eD,createConnectionManager:(e,t)=>new eA(e,t),createChannel:(e,t)=>new eE(e,t),createPrivateChannel:(e,t)=>new eO(e,t),createPresenceChannel:(e,t)=>
1new eT(e,t),createEncryptedChannel:(e,t,n)=>new eI(e,t,n),createTimelineSender:(e,t)=>new eL(e,t),createHandshake:(e,t)=>new eS(e,t),createAssistantToTheTransportManager:(e,t,n)=>new eC(e,t,n)};class ez{constructor(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}getAssistant(e){return eR.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class eq{constructor(e,t){this.strategies=e,this.loop=!!t.loop,this.failFast=!!t.failFast,this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}isSupported(){return Z(this.strategies,F.method("isSupported"))}connect(e,t){var n=this.strategies,i=0,r=this.timeout,o=null,a=(s,c)=>{c?t(null,c):(i+=1,this.loop&&(i%=n.length),i<n.length?(r&&(r*=2,this.timeoutLimit&&(r=Math.min(r,this.timeoutLimit))),o=this.tryStrategy(n[i],e,{timeout:r,failFast:this.failFast},a)):t(!0))};return o=this.tryStrategy(n[i],e,{timeout:r,failFast:this.failFast},a),{abort:function(){o.abort()},forceMinPriority:function(t){e=t,o&&o.forceMinPriority(t)}}}tryStrategy(e,t,n,i){var r=null,o=null;return n.timeout>0&&(r=new U(n.timeout,function(){o.abort(),i(!0)})),o=e.connect(t,function(e,t){(!(e&&r&&r.isRunning())||n.failFast)&&(r&&r.ensureAborted(),i(e,t))}),{abort:function(){r&&r.ensureAborted(),o.abort()},forceMinPriority:function(e){o.forceMinPriority(e)}}}}class eU{constructor(e){this.strategies=e}isSupported(){return Z(this.strategies,F.method("isSupported"))}connect(e,t){var n,i,r,o;return n=this.strategies,i=e,r=function(e,n){return function(i,r){if(n[e].error=i,i){(function(e){for(var t,n=0;n<e.length;n++){if(t=e[n],!t.error)return!1}return!0})(n)&&t(!0);return}X(n,function(e){e.forceMinPriority(r.transport.priority)}),t(null,r)}},o=Y(n,function(e,t,n,o){return e.connect(i,r(t,o))}),{abort:function(){X(o,eH)},forceMinPriority:function(e){X(o,function(t){t.forceMinPriority(e)})}}}}function eH(e){e.error||e.aborted||(e.abort(),e.aborted=!0)}class eF{constructor(e,t,n){this.strategy=e,this.transports=t,this.ttl=n.ttl||18e5,this.usingTLS=n.useTLS,this.timeline=n.timeline}isSupported(){return this.strategy.isSupported()}connect(e,t){var n=this.usingTLS,i=function(e){var t=e8.getLocalStorage();if(t)try{var n=t[eG(e)];if(n)return JSON.parse(n)}catch(t){eV(e)}return null}(n),r=i&&i.cacheSkipCount?i.cacheSkipCount:0,o=[this.strategy];if(i&&i.timestamp+this.ttl>=F.now()){var a=this.transports[i.transport];a&&(["ws","wss"].includes(i.transport)||r>3?(this.timeline.info({cached:!0,transport:i.transport,latency:i.latency}),o.push(new eq([a],{timeout:2*i.latency+1e3,failFast:!0}))):r++)}var s=F.now(),c=o.pop().connect(e,function i(a,l){a?(eV(n),o.length>0?(s=F.now(),c=o.pop().connect(e,i)):t(a)):(function(e,t,n,i){var r=e8.getLocalStorage();if(r)try{r[eG(e)]=ee({timestamp:F.now(),transport:t,latency:n,cacheSkipCount:i})}catch(e){}}(n,l.transport.name,F.now()-s,r),t(null,l))});return{abort:function(){c.abort()},forceMinPriority:function(t){e=t,c&&c.forceMinPriority(t)}}}}function eG(e){return"pusherTransport"+(e?"TLS":"NonTLS")}function eV(e){var t=e8.getLocalStorage();if(t)try{delete t[eG(e)]}catch(e){}}class eW{constructor(e,{delay:t}){this.strategy=e,this.options={delay:t}}isSupported(){return this.strategy.isSupported()}connect(e,t){var n,i=this.strategy,r=new U(this.options.delay,function(){n=i.connect(e,t)});return{abort:function(){r.ensureAborted(),n&&n.abort()},forceMinPriority:function(t){e=t,n&&n.forceMinPriority(t)}}}}class eJ{constructor(e,t,n){this.test=e,this.trueBranch=t,this.falseBranch=n}isSupported(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()}connect(e,t){return(this.test()?this.trueBranch:this.falseBranch).connect(e,t)}}class eK{constructor(e){this.strategy=e}isSupported(){return this.strategy.isSupported()}connect(e,t){var n=this.strategy.connect(e,function(e,i){i&&n.abort(),t(e,i)});return n}}function eX(e){return function(){return e.isSupported()}}let eY={getRequest:function(e){var t=new window.XDomainRequest;return t.ontimeout=function(){e.emit("error",new y),e.close()},t.onerror=function(t){e.emit("error",t),e.close()},t.onprogress=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}};class eQ extends el{constructor(e,t,n){super(),this.hooks=e,this.method=t,this.url=n}
1start(e){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},e8.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}close(){this.unloader&&(e8.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(e,t){for(;;){var n=this.advanceBuffer(t);if(n)this.emit("chunk",{status:e,data:n});else break}this.isBufferTooLong(t)&&this.emit("buffer_too_long")}advanceBuffer(e){var t=e.slice(this.position),n=t.indexOf("\n");return -1!==n?(this.position+=n+1,t.slice(0,n)):null}isBufferTooLong(e){return this.position===e.length&&e.length>262144}}(o=c||(c={}))[o.CONNECTING=0]="CONNECTING",o[o.OPEN=1]="OPEN",o[o.CLOSED=3]="CLOSED";let e$=c;var eZ=1;class e0{constructor(e,t){this.hooks=e,this.session=e2(1e3)+"/"+function(e){for(var t=[],n=0;n<8;n++)t.push(e2(32).toString(32));return t.join("")}(8),this.location=function(e){var t=/([^\?]*)\/*(\??.*)/.exec(e);return{base:t[1],queryString:t[2]}}(t),this.readyState=e$.CONNECTING,this.openStream()}send(e){return this.sendRaw(JSON.stringify([e]))}ping(){this.hooks.sendHeartbeat(this)}close(e,t){this.onClose(e,t,!0)}sendRaw(e){if(this.readyState!==e$.OPEN)return!1;try{var t,n;return e8.createSocketRequest("POST",e1((t=this.location,n=this.session,t.base+"/"+n+"/xhr_send"))).start(e),!0}catch(e){return!1}}reconnect(){this.closeStream(),this.openStream()}onClose(e,t,n){this.closeStream(),this.readyState=e$.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:n})}onChunk(e){if(200===e.status){var t;switch(this.readyState===e$.OPEN&&this.onActivity(),e.data.slice(0,1)){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var n=0;n<t.length;n++)this.onEvent(t[n]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0)}}}onOpen(e){var t,n,i;this.readyState===e$.CONNECTING?(e&&e.hostname&&(this.location.base=(t=this.location.base,n=e.hostname,(i=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(t))[1]+n+i[3])),this.readyState=e$.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(e){this.readyState===e$.OPEN&&this.onmessage&&this.onmessage({data:e})}onActivity(){this.onactivity&&this.onactivity()}onError(e){this.onerror&&this.onerror(e)}openStream(){this.stream=e8.createSocketRequest("POST",e1(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",e=>{this.onChunk(e)}),this.stream.bind("finished",e=>{this.hooks.onFinished(this,e)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(e){F.defer(()=>{this.onError(e),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function e1(e){var t=-1===e.indexOf("?")?"?":"&";return e+t+"t="+ +new Date+"&n="+eZ++}function e2(e){return e8.randomInt(e)}let e6={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr_streaming"+e.queryString},onHeartbeat:function(e){e.sendRaw("[]")},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){e.onClose(1006,"Connection interrupted ("+t+")",!1)}},e3={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr"+e.queryString},onHeartbeat:function(){},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){200===t?e.reconnect():e.onClose(1006,"Connection interrupted ("+t+")",!1)}},e4={getRequest:function(e){var t=new(e8.getXHRAPI());return t.onreadystatechange=t.onprogress=function(){switch(t.readyState){case 3:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText);break;case 4:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText),e.emit("finished",t.status),e.close()}},t},abortRequest:function(e){e.onreadystatechange=null,e.abort()}},e5={createStreamingSocket(e){return this.createSocket(e6,e)},createPollingSocket(e){return this.createSocket(e3,e)},createSocket:(e,t)=>new e0(e,t),createXHR(e,t){return this.createRequest(e4,e,t)}
1,createRequest:(e,t,n)=>new eQ(e,t,n)};e5.createXDR=function(e,t){return this.createRequest(eY,e,t)};let e8={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:u,DependenciesReceivers:g,getDefaultStrategy:function(e,t,n){var i,r={};function o(t,i,o,a,s){var c=n(e,t,i,o,a,s);return r[t]=c,c}var a=Object.assign({},t,{hostNonTLS:e.wsHost+":"+e.wsPort,hostTLS:e.wsHost+":"+e.wssPort,httpPath:e.wsPath}),s=Object.assign({},a,{useTLS:!0}),c=Object.assign({},t,{hostNonTLS:e.httpHost+":"+e.httpPort,hostTLS:e.httpHost+":"+e.httpsPort,httpPath:e.httpPath}),l={loop:!0,timeout:15e3,timeoutLimit:6e4},u=new ez({minPingDelay:1e4,maxPingDelay:e.activityTimeout}),d=new ez({lives:2,minPingDelay:1e4,maxPingDelay:e.activityTimeout}),h=o("ws","ws",3,a,u),m=o("wss","ws",3,s,u),p=o("sockjs","sockjs",1,c),g=o("xhr_streaming","xhr_streaming",1,c,d),v=o("xdr_streaming","xdr_streaming",1,c,d),f=o("xhr_polling","xhr_polling",1,c),_=o("xdr_polling","xdr_polling",1,c),b=new eq([h],l),w=new eq([m],l),y=new eq([p],l),x=new eq([new eJ(eX(g),g,v)],l),k=new eq([new eJ(eX(f),f,_)],l),C=new eq([new eJ(eX(x),new eU([x,new eW(k,{delay:4e3})]),k)],l),j=new eJ(eX(C),C,y);return i=new eU(t.useTLS?[b,new eW(j,{delay:2e3})]:[b,new eW(w,{delay:2e3}),new eW(j,{delay:5e3})]),new eF(new eK(new eJ(eX(h),i,j)),r,{ttl:18e5,timeline:t.timeline,useTLS:t.useTLS})},Transports:ef,transportConnectionInitializer:function(){var e=this;e.timeline.info(e.buildTimelineMessage({transport:e.name+(e.options.useTLS?"s":"")})),e.hooks.isInitialized()?e.changeState("initialized"):e.hooks.file?(e.changeState("initializing"),v.load(e.hooks.file,{useTLS:e.options.useTLS},function(t,n){e.hooks.isInitialized()?(e.changeState("initialized"),n(!0)):(t&&e.onError(t),e.onClose(),n(!1))})):e.onClose()},HTTPFactory:e5,TimelineTransport:{name:"jsonp",getAgent:function(e,t){return function(n,i){var r="http"+(t?"s":"")+"://"+(e.host||e.options.host)+e.options.path,o=e8.createJSONPRequest(r,n),a=e8.ScriptReceivers.create(function(t,n){u.remove(a),o.cleanup(),n&&n.host&&(e.host=n.host),i&&i(t,n)});o.send(a)}}},getXHRAPI:()=>window.XMLHttpRequest,getWebSocketAPI:()=>window.WebSocket||window.MozWebSocket,setup(e){if("undefined"!=typeof window){window.Pusher=e;var t=()=>{this.onDocumentBody(e.ready)};window.JSON?t():v.load("json2",{},t)}},getDocument:()=>document,getProtocol(){return this.getDocument().location.protocol},getAuthorizers:()=>({ajax:L,jsonp:ei}),onDocumentBody(e){document.body?e():setTimeout(()=>{this.onDocumentBody(e)},0)},createJSONPRequest:(e,t)=>new eo(e,t),createScriptRequest:e=>new er(e),getLocalStorage(){try{return window.localStorage}catch(e){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){return new(this.getXHRAPI())},createMicrosoftXHR:()=>new ActiveXObject("Microsoft.XMLHTTP"),getNetwork:()=>ek,createWebSocket(e){return new(this.getWebSocketAPI())(e)},createSocketRequest(e,t){if(this.isXHRSupported())return this.HTTPFactory.createXHR(e,t);if(this.isXDRSupported(0===t.indexOf("https:")))return this.HTTPFactory.createXDR(e,t);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var e=this.getXHRAPI();return!!e&&void 0!==new e().withCredentials},isXDRSupported(e){var t=this.getProtocol();return!!window.XDomainRequest&&t===(e?"https:":"http:")},addUnloadListener(e){void 0!==window.addEventListener?window.addEventListener("pagehide",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e)},removeUnloadListener(e){void 0!==window.addEventListener?window.removeEventListener("pagehide",e,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",e)},randomInt(e){let t,n=window.crypto||window.msCrypto,i=Math.floor(0x100000000/e)*e;do t=n.getRandomValues(new Uint32Array(1))[0];while(t>=i);return t%e}};(a=l||(l={}))[a.ERROR=3]="ERROR",a[a.INFO=6]="INFO",a[a.DEBUG=7]="DEBUG";let e7=l;class e9{constructor(e,t,n){this.key=e,this.session=t,this.events=[],this.options=n||{},this.sent=0,this.uniqueID=0}log(e,t){e<=this.options.level&&(this.events.push(G({},t,{timestamp:F.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(e){this.log(e7.ERROR,e)}info(e){this.log(e7.INFO,e)}debug(e){this.log(e7.DEBUG,e)}isEmpty(){return 0===this.events.length}send(e,t){var n=G({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(n,(e,n)=>{!e&&this.sent++,t&&t(e,n)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class te{constructor(e,t,n,i){this.name=e,this.priority=t,this.transport=n,this.options=i||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(e,t){if(!this.isSupported())return tt(new N,t);if(this.priority<e)return tt(new x,t);var n=!1,i=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),r=null,o=function(){i.unbind("initialized",o),i.connect()}
1,a=function(){r=eR.createHandshake(i,function(e){n=!0,l(),t(null,e)})},s=function(e){l(),t(e)},c=function(){l(),t(new k(ee(i)))},l=function(){i.unbind("initialized",o),i.unbind("open",a),i.unbind("error",s),i.unbind("closed",c)};return i.bind("initialized",o),i.bind("open",a),i.bind("error",s),i.bind("closed",c),i.initialize(),{abort:()=>{n||(l(),r?r.close():i.close())},forceMinPriority:e=>{!n&&this.priority<e&&(r?r.close():i.close())}}}}function tt(e,t){return F.defer(function(){t(e)}),{abort:function(){},forceMinPriority:function(){}}}let{Transports:tn}=e8;var ti=function(e,t,n,i,r,o){var a,s=tn[n];if(!s)throw new j(n);return e.enabledTransports&&-1===W(e.enabledTransports,t)||e.disabledTransports&&-1!==W(e.disabledTransports,t)?a=tr:(r=Object.assign({ignoreNullOrigin:e.ignoreNullOrigin},r),a=new te(t,i,o?o.getAssistant(s):s,r)),a},tr={isSupported:function(){return!1},connect:function(e,t){var n=F.defer(function(){t(new N)});return{abort:function(){n.ensureAborted()},forceMinPriority:function(){}}}};function to(e,t){var n,i,r,o;let a={activityTimeout:e.activityTimeout||12e4,cluster:e.cluster,httpPath:e.httpPath||"/pusher",httpPort:e.httpPort||80,httpsPort:e.httpsPort||443,pongTimeout:e.pongTimeout||3e4,statsHost:e.statsHost||"stats.pusher.com",unavailableTimeout:e.unavailableTimeout||1e4,wsPath:e.wsPath||"",wsPort:e.wsPort||80,wssPort:e.wssPort||443,enableStats:"enableStats"in(n=e)?n.enableStats:"disableStats"in n&&!n.disableStats,httpHost:(i=e).httpHost?i.httpHost:i.cluster?`sockjs-${i.cluster}.pusher.com`:"sockjs.pusher.com",useTLS:function(e){if("https:"===e8.getProtocol());else if(!1===e.forceTLS)return!1;return!0}(e),wsHost:(r=e).wsHost?r.wsHost:(o=r.cluster,`ws-${o}.pusher.com`),userAuthenticator:function(e){let t=Object.assign(Object.assign({},h),e.userAuthentication);if(ta(t))return t.customHandler;if(void 0===e8.getAuthorizers()[t.transport])throw`'${t.transport}' is not a recognized auth transport`;return(e,n)=>{let i=((e,t)=>{var n="socket_id="+encodeURIComponent(e.socketId);for(var i in t.params)n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(t.params[i]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var i in e)n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(e[i])}return n})(e,t);e8.getAuthorizers()[t.transport](e8,i,t,s.UserAuthentication,n)}}(e),channelAuthorizer:function(e,t){let n,i=("channelAuthorization"in e?n=Object.assign(Object.assign({},m),e.channelAuthorization):(n={transport:e.authTransport||"ajax",endpoint:e.authEndpoint||"/pusher/auth"},"auth"in e&&("params"in e.auth&&(n.params=e.auth.params),"headers"in e.auth&&(n.headers=e.auth.headers)),"authorizer"in e&&(n.customHandler=((e,t,n)=>{let i={authTransport:t.transport,authEndpoint:t.endpoint,auth:{params:t.params,headers:t.headers}};return(t,r)=>{n(e.channel(t.channelName),i).authorize(t.socketId,r)}})(t,n,e.authorizer))),n);if(ta(i))return i.customHandler;if(void 0===e8.getAuthorizers()[i.transport])throw`'${i.transport}' is not a recognized auth transport`;return(e,t)=>{let n=((e,t)=>{var n="socket_id="+encodeURIComponent(e.socketId);for(var i in n+="&channel_name="+encodeURIComponent(e.channelName),t.params)n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(t.params[i]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var i in e)n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(e[i])}return n})(e,i);e8.getAuthorizers()[i.transport](e8,n,i,s.ChannelAuthorization,t)}}(e,t)};return"disabledTransports"in e&&(a.disabledTransports=e.disabledTransports),"enabledTransports"in e&&(a.enabledTransports=e.enabledTransports),"ignoreNullOrigin"in e&&(a.ignoreNullOrigin=e.ignoreNullOrigin),"timelineParams"in e&&(a.timelineParams=e.timelineParams),"nacl"in e&&(a.nacl=e.nacl),a}let ta=e=>"customHandler"in e&&null!=e.customHandler;class ts extends el{constructor(e){super(function(e,t){en.debug(`No callbacks on watchlist events for ${e}`)}),this.pusher=e,this.bindWatchlistInternalEvent()}handleEvent(e){e.data.events.forEach(e=>{this.emit(e.name,e)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",e=>{"pusher_internal:watchlist_events"===e.event&&this.handleEvent(e)})}}let tc=function(){let e,t;return{promise:new Promise((n,i)=>{e=n,t=i}),resolve:e,reject:t}};class tl extends el{constructor(e){super(function(e,t){en.debug("No callbacks on user for "+e)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(e,t)=>
1{if(e){en.warn(`Error during signin: ${e}`),this.emit("pusher:signin_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof S?{status:e.status}:{})),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:t.auth,user_data:t.user_data})},this.pusher=e,this.pusher.connection.bind("state_change",({previous:e,current:t})=>{"connected"!==e&&"connected"===t&&this._signin(),"connected"===e&&"connected"!==t&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new ts(e),this.pusher.connection.bind("message",e=>{"pusher:signin_success"===e.event&&this._onSigninSuccess(e.data),this.serverToUserChannel&&this.serverToUserChannel.name===e.channel&&this.serverToUserChannel.handleEvent(e)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),"connected"===this.pusher.connection.state&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(e){try{this.user_data=JSON.parse(e.user_data)}catch(t){en.error(`Failed parsing user data after signin: ${e.user_data}`),this._cleanup();return}if("string"!=typeof this.user_data.id||""===this.user_data.id){en.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){let e=e=>{e.subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||"connected"!==this.pusher.connection.state||e.subscribe()};this.serverToUserChannel=new eE(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((e,t)=>{0!==e.indexOf("pusher_internal:")&&0!==e.indexOf("pusher:")&&this.emit(e,t)}),e(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;let{promise:e,resolve:t,reject:n}=tc();e.done=!1;let i=()=>{e.done=!0};e.then(i).catch(i),this.signinDonePromise=e,this._signinDoneResolve=t}}class tu{static ready(){tu.isReady=!0;for(var e=0,t=tu.instances.length;e<t;e++)tu.instances[e].connect()}static getClientFeatures(){return K($({ws:e8.Transports.ws},function(e){return e.isSupported({})}))}constructor(e,t){(function(e){if(null==e)throw"You must pass your app key when you instantiate Pusher."})(e),function(e){if(null==e)throw"You must pass an options object";if(null==e.cluster)throw"Options object must provide a cluster";"disableStats"in e&&en.warn("The disableStats option is deprecated in favor of enableStats")}(t),this.key=e,this.options=t,this.config=to(this.options,this),this.channels=eR.createChannels(),this.global_emitter=new el,this.sessionID=e8.randomInt(1e9),this.timeline=new e9(this.key,this.sessionID,{cluster:this.config.cluster,features:tu.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:e7.INFO,version:d}),this.config.enableStats&&(this.timelineSender=eR.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+e8.TimelineTransport.name}));var n=e=>e8.getDefaultStrategy(this.config,e,ti);this.connection=eR.createConnectionManager(this.key,{getStrategy:n,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",e=>{var t=0===e.event.indexOf("pusher_internal:");if(e.channel){var n=this.channel(e.channel);n&&n.handleEvent(e)}t||this.global_emitter.emit(e.event,e.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",e=>{en.warn(e)}),tu.instances.push(this),this.timeline.info({instances:tu.instances.length}),this.user=new tl(this),tu.isReady&&this.connect()}switchCluster(e){let{appKey:t,cluster:n}=e;this.key=t,this.options=Object.assign(Object.assign({},this.options),{cluster:n}),this.config=to(this.options,this),this.connection.switchCluster(this.key)}channel(e){return this.channels.find(e)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new H(6e4,function(){t.send(e)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}
1bind(e,t,n){return this.global_emitter.bind(e,t,n),this}unbind(e,t,n){return this.global_emitter.unbind(e,t,n),this}bind_global(e){return this.global_emitter.bind_global(e),this}unbind_global(e){return this.global_emitter.unbind_global(e),this}unbind_all(e){return this.global_emitter.unbind_all(),this}subscribeAll(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)}subscribe(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.connection.state||t.subscribe(),t}unsubscribe(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e))&&t.subscribed&&t.unsubscribe()}send_event(e,t,n){return this.connection.send_event(e,t,n)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}tu.instances=[],tu.isReady=!1,tu.logToConsole=!1,tu.Runtime=e8,tu.ScriptReceivers=e8.ScriptReceivers,tu.DependenciesReceivers=e8.DependenciesReceivers,tu.auth_callbacks=e8.auth_callbacks;let td=tu;e8.setup(tu)}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}return n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(721)})()},93940:e=>{var t=/((([a-zA-Z]+(-[a-zA-Z0-9]+){0,2})|\*)(;q=[0-1](\.[0-9]+)?)?)*/g;function n(e){return(e||"").match(t).map(function(e){if(e){var t=e.split(";"),n=t[0].split("-"),i=3===n.length;return{code:n[0],script:i?n[1]:null,region:i?n[2]:n[1],quality:t[1]?parseFloat(t[1].split("=")[1]):1}}}).filter(function(e){return e}).sort(function(e,t){return t.quality-e.quality})}e.exports.parse=n,e.exports.pick=function(e,t,i){if(i=i||{},!e||!e.length||!t)return null;"string"==typeof t&&(t=n(t));for(var r=e.map(function(e){var t=e.split("-"),n=3===t.length;return{code:t[0],script:n?t[1]:null,region:n?t[2]:t[1]}}),o=0;o<t.length;o++)for(var a=t[o],s=a.code.toLowerCase(),c=a.region?a.region.toLowerCase():a.region,l=a.script?a.script.toLowerCase():a.script,u=0;u<r.length;u++){var d=r[u].code.toLowerCase(),h=r[u].script?r[u].script.toLowerCase():r[u].script,m=r[u].region?r[u].region.toLowerCase():r[u].region;if(s===d&&(i.loose||!l||l===h)&&(i.loose||!c||c===m))return e[u]}return null}},99709:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var i={},r=e.split(";"),o=(t||{}).decode||n,a=0;a<r.length;a++){var s=r[a],c=s.indexOf("=");if(!(c<0)){var l=s.substring(0,c).trim();if(void 0==i[l]){var u=s.substring(c+1,s.length).trim();'"'===u[0]&&(u=u.slice(1,-1)),i[l]=function(e,t){try{return t(e)}catch(t){return e}}(u,o)}}}return i},t.serialize=function(e,t,n){var o=n||{},a=o.encode||i;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!r.test(e))throw TypeError("argument name is invalid");var s=a(t);if(s&&!r.test(s))throw TypeError("argument val is invalid");var c=e+"="+s;if(null!=o.maxAge){var l=o.maxAge-0;if(isNaN(l)||!isFinite(l))throw TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(o.domain){if(!r.test(o.domain))throw TypeError("option domain is invalid");c+="; Domain="+o.domain}if(o.path){if(!r.test(o.path))throw TypeError("option path is invalid");c+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw TypeError("option expires is invali
1d");c+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(c+="; HttpOnly"),o.secure&&(c+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var n=decodeURIComponent,i=encodeURIComponent,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/}}]);

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.