vendor: 7,945 bytes, lines 1-3
1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d07ff4c4-6597-5320-99da-1b4ec6fdff9a")}catch(e){}}(); 3var Zi="2.0.10",Gi=500,Ri="user-agent",W="",Li="?",v={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},S="browser",R="cpu",O="device",E="engine",k="os",J="result",o="name",e="type",n="vendor",r="version",y="architecture",ti="major",s="model",ci="console",u="mobile",f="tablet",m="smarttv",I="wearable",ri="xr",ei="embedded",Qi="fetcher",C="inapp",Ai="brands",D="formFactors",Ci="fullVersionList",X="platform",Pi="platformVersion",li="bitness",$="sec-ch-ua",ie=$+"-full-version-list",ee=$+"-arch",te=$+"-"+li,se=$+"-form-factors",oe=$+"-"+u,re=$+"-"+s,ji=$+"-"+X,ne=ji+"-version",Wi=[Ai,Ci,u,s,X,Pi,y,D,li],ni="Amazon",q="Apple",Ti="ASUS",Hi="BlackBerry",B="Google",fi="Huawei",bi="Lenovo",Mi="Honor",ai="LG",gi="Microsoft",vi="Motorola",$i="Nvidia",Bi="OnePlus",mi="OPPO",Z="Samsung",Ui="Sharp",Q="Sony",yi="Xiaomi",_i="Zebra",Fi="Chrome",Di="Chromium",T="Chromecast",ui="Edge",ii="Firefox",V="Opera",Si="Facebook",Ni="Sogou",z="Mobile ",U=" Browser",xi="Windows",_=typeof window!==v.UNDEFINED&&window.navigator?window.navigator:void 0,N=_&&_.userAgentData?_.userAgentData:void 0,ae=function(i,t){var a={},c=t;if(!hi(t)){c={};for(var w in t)for(var h in t[w])c[h]=t[w][h].concat(c[h]?c[h]:[])}for(var d in i)a[d]=c[d]&&c[d].length%2===0?c[d].concat(i[d]):i[d];return a},pi=function(i){for(var t={},a=0;a<i.length;a++)t[i[a].toUpperCase()]=i[a];return t},Ei=function(i,t){if(typeof i===v.OBJECT&&i.length>0){for(var a in i)if(H(t)==H(i[a]))return!0;return!1}return K(i)?H(t)==H(i):!1},hi=function(i,t){for(var a in i)return/^(browser|cpu|device|engine|os)$/.test(a)||(t?hi(i[a]):!1)},K=function(i){return typeof i===v.STRING},ki=function(i){if(i){for(var t=[],a=G(i).split(","),c=0;c<a.length;c++)if(a[c].indexOf(";")>-1){var w=oi(a[c]).split(";v=");t[c]={brand:w[0],version:w[1]}}else t[c]=oi(a[c]);return t}},H=function(i){return K(i)?i.toLowerCase():i},Ii=function(i){return K(i)?si(/[^\d\.]/g,i).split(".")[0]:void 0},G=function(i){return K(i)?oi(si(/\\?\"/g,i),Gi):void 0},P=function(i){for(var t in i)if(i.hasOwnProperty(t)){var a=i[t];typeof a==v.OBJECT&&a.length==2?this[a[0]]=a[1]:this[a]=void 0}return this},si=function(i,t){return K(t)?t.replace(i,W):t},oi=function(i,t){return i=si(/^\s\s*/,String(i)),typeof t===v.UNDEFINED?i:i.substring(0,t)},Oi=function(i,t){if(!(!i||!t))for(var a=0,c,w,h,d,p,l;a<t.length&&!p;){var b=t[a],g=t[a+1];for(c=w=0;c<b.length&&!p&&b[c];)if(p=b[c++].exec(i),p)for(h=0;h<g.length;h++)l=p[++w],d=g[h],typeof d===v.OBJECT&&d.length>0?d.length===2?typeof d[1]==v.FUNCTION?this[d[0]]=d[1].call(this,l):this[d[0]]=d[1]:d.length>=3&&(typeof d[1]===v.FUNCTION&&!(d[1].exec&&d[1].test)?d.length>3?this[d[0]]=l?d[1].apply(this,d.slice(2)):void 0:this[d[0]]=l?d[1].call(this,l,d[2]):void 0:d.length==3?this[d[0]]=l?l.replace(d[1],d[2]):void 0:d.length==4?this[d[0]]=l?d[3].call(this,l.replace(d[1],d[2])):void 0:d.length>4&&(this[d[0]]=l?d[3].apply(this,[l.replace(d[1],d[2])].concat(d.slice(4))):void 0)):this[d]=l||void 0;a+=2}},de=function(i,t){return t.test.test(i)?t.ifTrue:t.ifFalse},x=function(i,t){for(var a in t)if(typeof t[a]===v.OBJECT&&t[a].length>0){for(var c=0;c<t[a].length;c++)if(Ei(t[a][c],i))return a===Li?void 0:a}else if(Ei(t[a],i))return a===Li?void 0:a;return t.hasOwnProperty("*")?t["*"]:i},qi={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},Vi={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},ce={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},ue={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[r,[o,z+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[r,[o,ui+" WebView"],[e,C]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[r,[o,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[o,r],[/opios[\/ ]+([\w\.]+)/i],[r,[o,V+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[r,[o,V+" GX"]],[/\bopr\/([\w\.]+)/i],[r,[o,V]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[r,[o,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[r,[o,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:hi|lg |ovi|qute)browser|palemoon)\/v?([-\w\.]+)/i,/(brave)(?: chrome)?\/([\d\.]+)/i,/(aloha|heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[o,r],[/quark(?:pc)?\/([-\w\.]+)/i],[r,[o,"Quark"]],[/\bddg\/([\w\.]+)/i],[r,[o,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb| ucpc)[\/ ]?([\w\.]+)/i],[r,[o,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[r,[o,"WeChat"]],[/konqueror\/([\w\.]+)/i],[r,[o,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[r,[o,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[r,[o,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[r,[o,"Smart "+bi+U]],[/(av(?:ast|g|ira))\/([\w\.]+)/i],[[o,/(.+)/,"$1 Secure"+U],r],[/norton\/([\w\.]+)/i],[r,[o,"Norton Private"+U]],[/\bfocus\/([\w\.]+)/i],[r,[o,ii+" Focus"]],[/ mms\/([\w\.]+)$/i],[r,[o,V+" Neon"]],[/ opt\/([\w\.]+)$/i],[r,[o,V+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[r,[o,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[r,[o,"Dolphin"]],[/coast\/([\w\.]+)/i],[r,[o,V+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[r,[o,"MIUI"+U]],[/fxios\/([\w\.-]+)/i],[r,[o,z+ii]],[/\bqihoobrowser\/?([\w\.]*)/i],[r,[o,"360"]],[/\b(qq)\/([\w\.]+)/i],[[o,/(.+)/,"$1Browser"],r],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[o,/(.+)/,"$1"+U],r],[/ HBPC\/([\w\.]+)/],[r,[o,fi+U]],[/samsungbrowser\/([\w\.]+)/i],[r,[o,Z+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[r,[o,Ni+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[o,Ni+" Mobile"],r],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[o,r],[/(lbbrowser|luakit|rekonq|steam(?= (clie|tenf|gameo)))/i],[o],[/ome\/([\w\.]+).+(iron(?= saf)|360(?=[es]e$))/i],[r,o],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[o,Si],r,[e,C]],[/(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,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[o,r,[e,C]],[/\bgsa\/([\w\.]+) .*safari\//i],[r,[o,"GSA"],[e,C]],[/(?:musical_ly|trill)(?:.+app_?version\/|_)([\w\.]+)/i],[r,[o,"TikTok"],[e,C]],[/\[(linkedin)app\]/i],[o,[e,C]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[o,/(.+)/,"Zalo"],r,[e,C]],[/(chromium)[\/ ]([-\w\.]+)/i],[o,r],[/ome-(lighthouse)$/i],[o,[e,Qi]],[/headlesschrome(?:\/([\w\.]+)| )/i],[r,[o,Fi+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[r,[o,ui+" WebView2"],[e,C]],[/; wv\).+(chrome)\/([\w\.]+)/i],[[o,Fi+" WebView"],r,[e,C]],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[r,[o,"Android"+U]],[/chrome\/([\w\.]+) mobile/i],[r,[o,z+"Chrome"]],[/(chrome|omniweb|arora|[t
3izenoka]{5} ?browser)\/v?([\w\.]+)/i],[o,r],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[r,[o,z+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[o,z+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[r,o],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[o,[r,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[o,r],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[o,z+ii],r],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[o,"Netscape"],r],[/(wolvic|librewolf)\/([\w\.]+)/i],[o,r],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[r,[o,ii+" 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|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[o,[r,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[o,[r,/[^\d\.]+./,W]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[y,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[y,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[y,"arm"]],[/ sun4\w[;\)]/i],[[y,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[y,/ower/,W,H]],[/mc680.0/i],[[y,"68k"]],[/winnt.+\[axp/i],[[y,"alpha"]]],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],[s,[n,Z],[e,f]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[s,[n,Z],[e,u]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[s,[n,q],[e,u]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[s,[n,q],[e,f]],[/(macintosh);/i],[s,[n,q]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[n,Ui],[e,u]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[s,[n,Mi],[e,f]],[/honor([-\w ]+)[;\)]/i],[s,[n,Mi],[e,u]],[/\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],[s,[n,fi],[e,f]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[s,[n,fi],[e,u]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[s,/_/g," "],[n,yi],[e,f]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/; ([\w ]+) miui\/v?\d/i],[[s,/_/g," "],[n,yi],[e,u]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-l]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[n,Bi],[e,u]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[n,mi],[e,u]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[s,[n,x,{OnePlus:["203","304","403","404","413","415"],"*":mi}],[e,f]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[s,[n,"BLU"],[e,u]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[n,"Vivo"],[e,u]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[n,"Realme"],[e,u]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?: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],[s,[n,bi],[e,f]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[s,[n,bi],[e,u]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[s,[n,vi],[e,u]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[n,vi],[e,f]],[/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[n,ai],[e,f]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[n,ai],[e,u]],[/(nokia) (t[12][01])/i],[n,s,[e,f]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[s,/_/g," "],[e,u],[n,"Nokia"]],[/(pixel (c|tablet))\b/i],[s,[n,B],[e,f]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[s,[n,B],[e,u]],[/(google) (pixelbook( go)?)/i],[n,s],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[n,Q],[e,u]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[n,Q],[e,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[n,ni],[e,f]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[n,ni],[e,u]],[/(playbook);[-\w\),; ]+(rim)/i],[s,n,[e,f]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[s,[n,Hi],[e,u]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[n,Ti],[e,f]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[n,Ti],[e,u]],[/(nexus 9)/i],[s,[n,"HTC"],[e,f]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[n,[s,/_/g," "],[e,u]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w)
vendor: 4,133 bytes, line 3
3)?(\)| bui)/i],[s,[n,"TCL"],[e,f]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[s,[n,"TCL"],[e,u]],[/(itel) ((\w+))/i],[[n,H],s,[e,x,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[n,"Acer"],[e,f]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[n,"Meizu"],[e,u]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[n,"Ulefone"],[e,u]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[s,[n,"Energizer"],[e,u]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[s,[n,"Cat"],[e,u]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[s,[n,"Smartfren"],[e,u]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[s,[n,"Nothing"],[e,u]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[s,[n,"Archos"],[e,f]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[s,[n,"Archos"],[e,u]],[/blackview ([-\w ]+)( b|\))/i,/; (bv\d{4}[-\w ]*)( b|\))/i],[s,[n,"Blackview"],[e,u]],[/; (n159v)/i],[s,[n,"HMD"],[e,u]],[/((revvl[ \w\+]+|tm(?:rv|af)\w*[45]g(?:tb)?))( b|\))/i],[s,[e,de,{test:/ta?b/i,ifTrue:f,ifFalse:u}],[n,"T-Mobile"]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[n,s,[e,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|coolpad|cubot|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([-\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[n,s,[e,u]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[n,s,[e,f]],[/(surface duo)/i],[s,[n,gi],[e,f]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[n,"Fairphone"],[e,u]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[s,[n,$i],[e,f]],[/(sprint) (\w+)/i],[n,s,[e,u]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[n,gi],[e,u]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[n,_i],[e,f]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[n,_i],[e,u]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[n,[e,m]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[n,Z],[e,m]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[n,s,[e,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[n,ai],[e,m]],[/(apple) ?tv/i],[n,[s,q+" TV"],[e,m]],[/crkey.*devicetype\/chromecast/i],[[s,T+" Third Generation"],[n,B],[e,m]],[/crkey.*devicetype\/([^/]*)/i],[[s,/^/,"Chromecast "],[n,B],[e,m]],[/fuchsia.*crkey/i],[[s,T+" Nest Hub"],[n,B],[e,m]],[/crkey/i],[[s,T],[n,B],[e,m]],[/(portaltv)/i],[s,[n,Si],[e,m]],[/droid.+aft(\w+)( bui|\))/i],[s,[n,ni],[e,m]],[/(shield \w+ tv)/i],[s,[n,$i],[e,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[n,Ui],[e,m]],[/(bravia[\w ]+)( bui|\))/i],[s,[n,Q],[e,m]],[/(mi(tv|box)-?\w+) bui/i],[s,[n,yi],[e,m]],[/Hbbtv.*(technisat) (.*);/i],[n,s,[e,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[n,/.+\/(\w+)/,"$1",x,{LG:"lge"}],[s,oi],[e,m]],[/(playstation \w+)/i],[s,[n,Q],[e,ci]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[n,gi],[e,ci]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[n,x,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],s,[e,ci]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[s,[n,Z],[e,I]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[n,s,[e,I]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[s,[n,mi],[e,I]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[n,q],[e,I]],[/(opwwe\d{3})/i],[s,[n,Bi],[e,I]],[/(moto 360)/i],[s,[n,vi],[e,I]],[/(smartwatch 3)/i],[s,[n,Q],[e,I]],[/(g watch r)/i],[s,[n,ai],[e,I]],[/droid.+; (wt63?0{2,3}
vendor: 4,181 bytes, line 3
3)\)/i],[s,[n,_i],[e,I]],[/droid.+; (glass) \d/i],[s,[n,B],[e,ri]],[/(pico) ([\w ]+) os\d/i],[n,s,[e,ri]],[/(quest( \d| pro)?s?).+vr/i],[s,[n,Si],[e,ri]],[/mobile vr; rv.+firefox/i],[[e,ri]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[n,[e,ei]],[/(aeobc)\b/i],[s,[n,ni],[e,ei]],[/(homepod).+mac os/i],[s,[n,q],[e,ei]],[/windows iot/i],[[e,ei]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[s,[e,m]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[e,m]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[s,[e,x,{mobile:"Mobile",xr:"VR","*":f}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[e,f]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[e,u]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[s,[n,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[r,[o,ui+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[o,r],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[r,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[o,r],[/ladybird\//i],[[o,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[r,o]],os:[[/(windows nt) (6\.[23]); arm/i],[[o,/N/,"R"],[r,x,qi]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[o,r],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[r,/(;|\))/g,"",x,qi],[o,xi]],[/(windows ce)\/?([\d\.]*)/i],[o,r],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[r,/_/g,"."],[o,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[o,"macOS"],[r,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[r,[o,T+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[r,[o,T+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[r,[o,T+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[r,[o,T+" Linux"]],[/crkey\/([\d\.]+)/i],[r,[o,T]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[r,o],[/(ubuntu) ([\w\.]+) like android/i],[[o,/(.+)/,"$1 Touch"],r],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[o,r],[/\(bb(10);/i],[r,[o,Hi]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[r,[o,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile[;\w ]*|tablet|tv|[^\)]*(?:viera|lg(?:l25|-d300)|alcatel ?o.+|y300-f1)); rv:([\w\.]+)\).+gecko\//i],[r,[o,ii+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[r,[o,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[r,x,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[o,"webOS"]],[/watch(?: ?os[,\/ ]|\d,\d\/)([\d\.]+)/i],[r,[o,"watchOS"]],[/cros [\w]+(?:\)| ([\w\.]+)\b)/i],[r,[o,"Chrome OS"]],[/kepler ([\w\.]+); (aft|aeo)/i],[r,[o,"Vega OS"]],[/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[o,r],[/(sunos) ?([\d\.]*)/i],[[o,"Solaris"],r],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[o,r]]},di=function(){var i={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};
vendor: 4,644 bytes, line 3
3return P.call(i.init,[[S,[o,r,ti,e]],[R,[y]],[O,[e,s,n]],[E,[o,r]],[k,[o,r]]]),P.call(i.isIgnore,[[S,[r,ti]],[E,[r]],[k,[r]]]),P.call(i.isIgnoreRgx,[[S,/ ?browser$/i],[k,/ ?os$/i]]),P.call(i.toString,[[S,[o,r]],[R,[y]],[O,[n,s]],[E,[o,r]],[k,[o,r]]]),i}(),he=function(i,t){var a=di.init[t],c=di.isIgnore[t]||0,w=di.isIgnoreRgx[t]||0,h=di.toString[t]||0;function d(){P.call(this,a)}return d.prototype.getItem=function(){return i},d.prototype.withClientHints=function(){return N?N.getHighEntropyValues(Wi).then(function(p){return i.setCH(new Ji(p,!1)).parseCH().get()}):i.parseCH().get()},d.prototype.withFeatureCheck=function(){return i.detectFeature().get()},t!=J&&(d.prototype.is=function(p){var l=!1;for(var b in this)if(this.hasOwnProperty(b)&&!Ei(c,b)&&H(w?si(w,this[b]):this[b])==H(w?si(w,p):p)){if(l=!0,p!=v.UNDEFINED)break}else if(p==v.UNDEFINED&&l){l=!l;break}return l},d.prototype.toString=function(){var p=W;for(var l in h)typeof this[h[l]]!==v.UNDEFINED&&(p+=(p?" ":W)+this[h[l]]);return p||v.UNDEFINED}),d.prototype.then=function(p){var l=this,b=function(){for(var A in l)l.hasOwnProperty(A)&&(this[A]=l[A])};b.prototype={is:d.prototype.is,toString:d.prototype.toString,withClientHints:d.prototype.withClientHints,withFeatureCheck:d.prototype.withFeatureCheck};var g=new b;return p(g),g},new d};function Ji(i,t){if(i=i||{},P.call(this,Wi),t)P.call(this,[[Ai,ki(i[$])],[Ci,ki(i[ie])],[u,/\?1/.test(i[oe])],[s,G(i[re])],[X,G(i[ji])],[Pi,G(i[ne])],[y,G(i[ee])],[D,ki(i[se])],[li,G(i[te])]]);else for(var a in i)this.hasOwnProperty(a)&&typeof i[a]!==v.UNDEFINED&&(this[a]=i[a])}function M(i,t,a,c){return P.call(this,[["itemType",i],["ua",t],["uaCH",c],["rgxMap",a],["data",he(this,i)]]),this}M.prototype.get=function(i){return i?this.data.hasOwnProperty(i)?this.data[i]:void 0:this.data};M.prototype.set=function(i,t){return this.data[i]=t,this};M.prototype.setCH=function(i){return this.uaCH=i,this};M.prototype.detectFeature=function(){if(_&&_.userAgent==this.ua)switch(this.itemType){case S:_.brave&&typeof _.brave.isBrave==v.FUNCTION&&this.set(o,"Brave");break;case O:!this.get(e)&&N&&N[u]&&this.set(e,u),this.get(s)=="Macintosh"&&_&&typeof _.standalone!==v.UNDEFINED&&_.maxTouchPoints&&_.maxTouchPoints>2&&this.set(s,"iPad").set(e,f);break;case k:!this.get(o)&&N&&N[X]&&this.set(o,N[X]);break;case J:var i=this.data,t=function(a){return i[a].getItem().detectFeature().get()};this.set(S,t(S)).set(R,t(R)).set(O,t(O)).set(E,t(E)).set(k,t(k))}return this};M.prototype.parseUA=function(){switch(this.itemType!=J&&Oi.call(this.data,this.ua,this.rgxMap),this.itemType){case S:this.set(ti,Ii(this.get(r)));break;case k:if(this.get(o)=="iOS"&&this.get(r)&&/^1[89][^\d]/.exec(this.get(r))){var i=/\) Version\/((\d+)[\d\.]*)/.exec(this.ua);i&&parseInt(i[2],10)>=26&&this.set(r,i[1])}break}return this};M.prototype.parseCH=function(){var i=this.uaCH,t=this.rgxMap;switch(this.itemType){case S:case E:var a=i[Ci]||i[Ai],c;if(a)for(var w=0;w<a.length;w++){var h=a[w].brand||a[w],d=a[w].version;this.itemType==S&&!/not.a.brand/i.test(h)&&(!c||/Chrom/.test(c)&&h!=Di||c==ui&&/WebView2/.test(h))&&(h=x(h,ce),c=this.get(o),c&&!/Chrom/.test(c)&&/Chrom/.test(h)||this.set(o,h).set(r,d).set(ti,Ii(d)),c=h),this.itemType==E&&h==Di&&this.set(r,d)}break;case R:var p=i[y];p&&(p&&i[li]=="64"&&(p+="64"),Oi.call(this.data,p+";",t));break;case O:if(i[u]&&this.set(e,u),i[s]&&(this.set(s,i[s]),!this.get(e)||!this.get(n))){var l={};Oi.call(l,"droid 9; "+i[s]+")",t),!this.get(e)&&l.type&&this.set(e,l.type),!this.get(n)&&l.vendor&&this.set(n,l.vendor)}if(i[D]){var b;if(typeof i[D]!="string")for(var g=0;!b&&g<i[D].length;)b=x(i[D][g++],Vi);else b=x(i[D],Vi);this.set(e,b)}break;case k:var A=i[X];if(A){var wi=i[Pi];A==xi&&(wi=parseInt(Ii(wi),10)>=13?"11":"10"),this.set(o,A).set(r,wi)}this.get(o)==xi&&i[s]=="Xbox"&&this.set(o,"Xbox").set(r,void 0);break;case J:var Ki=this.data,Y=function(Yi){return Ki[Yi].getItem().setCH(i).parseCH().get()};this.set(S,Y(S)).set(R,Y(R)).set(O,Y(O)).set(E,Y(E)).set(k,Y(k))}return this};function L(i,t,a){if(typeof i===v.OBJECT?(hi(i,!0)?(typeof t===v.OBJECT&&(a=t),t=i):(a=i,t=void 0),i=void 0):typeof i===v.STRING&&!hi(t,!0)&&(a=t,t=void 0),a)if(typeof a.append===v.FUNCTION){var c={};a.forEach(function(g,A){c[String(A).toLowerCase()]=g}),a=c}else{var w={};for(var h in a)a.hasOwnProperty(h)&&(w[String(h).toLowerCase()]=a[h]);a=w}if(!(this instanceof L))return new L(i,t,a).getResult();var d=typeof i===v.STRING?i:a&&a[Ri]?a[Ri]:_&&_.userAgent?_.userAgent:W,p=new Ji(a,!0),l=ue,b=function(g){return g==J?function(){return new M(g,d,l,p).set("ua",d).set(S,this.getBrowser()).set(R,this.getCPU()).set(O,this.getDevice()
3).set(E,this.getEngine()).set(k,this.getOS()).get()}:function(){return new M(g,d,l[g],p).parseUA().get()}};return P.call(this,[["getBrowser",b(S)],["getCPU",b(R)],["getDevice",b(O)],["getEngine",b(E)],["getOS",b(k)],["getResult",b(J)],["getUA",function(){return d}],["setUA",function(g){return K(g)&&(d=oi(g,Gi)),this}],["useExtension",function(g){return g&&(l=ae(l,g)),this}]]).setUA(d).useExtension(t),this}L.VERSION=Zi;L.BROWSER=pi([o,r,ti,e]);L.CPU=pi([y]);L.DEVICE=pi([s,n,e,ci,u,m,f,I,ei]);L.ENGINE=L.OS=pi([o,r]);function le(i,t="desktop"){const a=i.trim();if(!a)return{$device_type:t};const c=new L(a),w=c.getBrowser(),h=c.getOS(),d=c.getDevice(),p=c.getEngine();return{$raw_user_agent:a,$browser:w.name??void 0,$browser_version:w.version??void 0,$browser_engine:p.name??void 0,$browser_engine_version:p.version??void 0,$os:h.name??void 0,$os_version:h.version??void 0,$device_type:d.type??t,$device_vendor:d.vendor??void 0,$device_model:d.model??void 0}}function Xi(i){const t={};for(const[a,c]of Object.entries(i))c===void 0||c===""||(t[a]=c);return t}function pe(){if(typeof navigator>"u")return{};const i=navigator.userAgent??"",t=typeof Intl<"u"?Intl.DateTimeFormat().resolvedOptions().timeZone:void 0;return Xi({...le(i,"desktop"),$timezone:t})}function we(){return Xi({$screen_width:typeof screen<"u"?screen.width:void 0,$screen_height:typeof screen<"u"?screen.height:void 0,$viewport_width:typeof window<"u"?window.innerWidth:void 0,$viewport_height:typeof window<"u"?window.innerHeight:void 0})}var fe="0.2.2",be="phx_replacement:",F={api_host:"",request_batching:!0,flush_at:20,flush_interval_ms:5e3,persistence:"localStorage",disable_persistence:!1,capture_pageview:!0,capture_pageview_on_navigation:!0,capture_pageleave:!1,autocapture:!1,session_idle_timeout_ms:1800*1e3,request_retries:2,retry_delay_ms:1e3},ge=class{constructor(){this.apiKey="",this.config={...F},this.userId="",this.deviceId="",this.superProps={},this.deviceContext={},this.queue=[],this.optedOut=!1,this.inited=!1,this.persistenceKey="",this.sessionId="",this.sessionLastActivityMs=0,this.spaBound=!1,this.pageleaveSent=!1,this.onPopState=()=>{this.capturePageview()},this.autocaptureHandler=i=>{this.handleAutocapture(i)},this.pageHideHandler=()=>{this.capturePageleave(),this.flush({preferBeacon:!0})},this.visibilityHandler=()=>{typeof document<"u"&&document.visibilityState==="hidden"?(this.capturePageleave(),this.flush({preferBeacon:!0})):typeof document<"u"&&document.visibilityState==="visible"&&(this.pageleaveSent=!1)}}init(i,t={},a){return this.apiKey=i,this.config={...F,...t},this.persistenceKey=`${be}${i}`,this.loadState(),this.deviceContext=pe(),this.deviceId||(this.deviceId=j()),this.sessionId||(this.sessionId=j()),this.sessionLastActivityMs||(this.sessionLastActivityMs=Date.now()),this.persistState(),this.inited=!0,this.config.capture_pageview&&typeof location<"u"&&this.capturePageview(),this.bindSpaPageviews(),this.syncAutocapture(),this.bindPageLifecycleFlush(),this.startFlushLoop(),this.config.loaded?.(this),this}capture(i,t={}){if(!this.inited||this.optedOut)return;this.touchSession();const a=this.buildEventPayload(i,t);if(this.config.request_batching){this.queue.push(a),this.queue.length>=(this.config.flush_at??F.flush_at)&&this.flush();return}this.sendCapture(a)}identify(i,t={}){if(!this.inited||this.optedOut)return;const a=this.deviceId;this.userId=i,this.touchSession(),this.persistState();const c=this.buildEventPayload("$identify",{...t,$identity_source:"client",$anon_id:a,$user_id:i});this.sendIdentify(c)}alias(i,t){if(!this.inited||this.optedOut)return;this.touchSession();const a=this.buildEventPayload("$create_alias",{alias:i,original_alias:t??(this.userId||this.deviceId)});this.sendAlias(a)}reset(i=!0){this.unbindSpaPageviews(),this.userId="",i&&(this.deviceId=j()),this.sessionId=j(),this.sessionLastActivityMs=Date.now(),this.superProps={},this.queue=[],this.pageleaveSent=!1,this.persistState(),this.syncAutocapture(),this.inited&&this.bindSpaPageviews()}set_config(i){this.config={...this.config,...i}
3,this.persistState(),this.unbindSpaPageviews(),this.bindSpaPageviews(),this.syncAutocapture(),this.startFlushLoop()}register(i){this.superProps={...this.superProps,...i},this.persistState()}unregister(i){i in this.superProps&&(delete this.superProps[i],this.persistState())}get_device_id(){return this.deviceId}get_distinct_id(){return this.userId||this.deviceId}get_session_id(){return this.sessionId}opt_in_capturing(){this.optedOut=!1,this.persistState(),this.syncAutocapture()}opt_out_capturing(){this.optedOut=!0,this.persistState(),this.syncAutocapture()}has_opted_out_capturing(){return this.optedOut}buildEventPayload(i,t){const a=ve();return{event:i,uuid:a,timestamp:new Date().toISOString(),api_key:this.apiKey,properties:{...this.deviceContext,...we(),...this.superProps,...t,$api_key:this.apiKey,$device_id:this.deviceId,$session_id:this.sessionId,$insert_id:a,...this.userId?{$user_id:this.userId}:{},$lib:"posthog-js-dropin-replacement",$lib_version:fe}}}touchSession(){const i=this.config.session_idle_timeout_ms??F.session_idle_timeout_ms,t=Date.now();this.sessionLastActivityMs>0&&t-this.sessionLastActivityMs>i&&(this.sessionId=j()),this.sessionLastActivityMs=t,this.persistState()}getPageProperties(){return typeof location>"u"?{}:{$current_url:location.href,$pathname:location.pathname,$host:location.host,$search:location.search||void 0,$referrer:typeof document<"u"&&document.referrer||void 0,$title:typeof document<"u"&&document.title||void 0}}capturePageview(){!this.inited||this.optedOut||!this.config.capture_pageview||this.capture("$pageview",this.getPageProperties())}capturePageleave(){!this.inited||this.optedOut||!this.config.capture_pageleave||this.pageleaveSent||(this.pageleaveSent=!0,this.capture("$pageleave",this.getPageProperties()))}async flush(i={}){if(!this.queue.length||this.optedOut)return;const t=this.queue.splice(0,this.queue.length);await this.sendBatch(t,i)}async sendCapture(i){await this.sendJson(`${this.getApiHost()}/capture/`,i)}async sendIdentify(i){await this.sendJson(`${this.getApiHost()}/identify/`,i)}async sendAlias(i){await this.sendJson(`${this.getApiHost()}/alias/`,i)}async sendBatch(i,t={}){await this.sendJson(`${this.getApiHost()}/batch/`,{api_key:this.apiKey,batch:i},t)}async sendJson(i,t,a={}){const c=a.skipRetry?1:(this.config.request_retries??F.request_retries)+1,w=this.config.retry_delay_ms??F.retry_delay_ms;for(let h=1;h<=c;h+=1)try{if(a.preferBeacon&&h===1&&this.canUseBeacon(i)&&this.trySendBeacon(i,t))return;await this.postJson(i,t,a.preferBeacon&&h===1);return}catch(d){const p=d instanceof Error?d:new Error(String(d));if(this.config.on_error?.(p,{url:i,attempt:h,body:t}),h>=c)return;await me(w*h)}}canUseBeacon(i){if(typeof window>"u")return!1;try{return new URL(i,window.location.href).origin===window.location.origin}catch{return!1}}trySendBeacon(i,t){const a=JSON.stringify(t),c=typeof navigator<"u"?navigator:void 0;if(!c?.sendBeacon||a.length>=6e4)return!1;const w=new Blob([a],{type:"application/json"});return c.sendBeacon(i,w)}async postJson(i,t,a=!1){const c=await fetch(i,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t),keepalive:a,credentials:"omit"});if(!c.ok)throw new Error(`Request failed with status ${c.status}`)}startFlushLoop(){this.flushTimer&&clearInterval(this.flushTimer),this.flushTimer=setInterval(()=>{this.flush()},this.config.flush_interval_ms??F.flush_interval_ms)}getApiHost(){const i=this.config.api_host?.trim();return i?i.endsWith("/")?i.slice(0,-1):i:""}shouldCaptureSpaPageviews(){return this.config.capture_pageview_on_navigation===!1?!1:this.config.capture_pageview!==!1}bindSpaPageviews(){typeof window>"u"||typeof history>"u"||this.spaBound||this.shouldCaptureSpaPageviews()&&(this.spaBound=!0,this.originalPushState=history.pushState.bind(history),this.originalReplaceState=history.replaceState.bind(history),history.pushState=(...i)=>{this.originalPushState(...i),this.capturePageview()},history.replaceState=(...i)=>{this.originalReplaceState(...i),this.capturePageview()},window.addEventListener("popstate",this.onPopState))}unbindSpaPageviews(){typeof window>"u"||typeof history>"u"||!this.spaBound||(this.originalPushState&&(history.pushState=this.originalPushState),this.originalReplaceState&&(history.replaceState=this.originalReplaceState),window.removeEventListener("popstate",this.onPopState),this.originalPushState=void 0,this.originalReplaceState=void 0,this.spaBound=!1)}loadState(){if(this.config.disable_persistence)return;const i=this.readPersistedState();i&&(this.userId=typeof i.userId=="string"?i.userId:"",this.deviceId=typeof i.deviceId=="string"?i.deviceId:"",this.sessionId=typeof i.sessionId=="string"?i.sessionId:"",this.sessionLastActivityMs=typeof i.sessionLastActivityMs=="number"?i.sessionLastActivityMs:0,this.superProps=zi(i.superProps)?i.superProps:{},this.optedOut=!!i.optedOut)}persistState(){if(this.config.disable_persistence)return;const i=JSON.stringify({userId:this.userId,deviceId:this.deviceId,sessionId:this.sessionId,sessionLastActivityMs:this.sessionLastActivityMs,superProps:this.superProps,optedOut:this.optedOut});this.writePersistedState(i)}readPersistedState(){if(this.config.persistence==="memory")return null;try{const i=localStorage.getItem(this.persistenceKey);if(!i)return null;const t=JSON.parse(i);return zi(t)?t:null}catch{return null}}writePersistedState(i){if(this.config.persistence!=="memory")try{localStorage.setItem(this.persistenceKey,i)}catch{}}syncAutocapture(){typeof document>"u"||(document.removeEventListener("click",this.autocaptureHandler,!0),document.removeEventListener("submit",this.autocaptureHandler,!0),this.config.autocapture&&!this.optedOut&&(document.addEventListener("click",this.autocaptureHandler,!0),document.addEventListener("submit",this.autocaptureHandler,!0)))}bindPageLifecycleFlush(){typeof document>"u"||typeof window>"u"||(document.removeEventListener("visibilitychange",this.visibilityHandler),window.removeEventListener("pagehide",this.pageHideHandler),document.addEventListener("visibilitychange",this.visibilityHandler),window.addEventListener("pagehide",this.pageHideHandler))}handleAutocapture(i){if(!this.config.autocapture||this.optedOut)return;const t=i.target instanceof Element?i.target:null;if(!t)return;const a=t.tagName.toLowerCase(),c=t instanceof HTMLElement?t.innerText?.trim().slice(0,120)??"":"";this.capture("$autocapture",{$event_type:i.type,$el_tag_name:a,$el_id:t.id||void 0,$el_classes:t.className||void 0,$el_text:c||void 0,...this.getPageProperties()})}};function j(){return typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`phx_${Math.random().toString(36).slice(2)}_${Date.now()}`}function ve(){return`evt_${j()}`}function zi(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function me(i){return new Promise(t=>{setTimeout(t,i)})}var ye=new ge;typeof window<"u"&&(window.posthog=ye);export{ye as default}; 4 5//# sourceMappingURL=dist.BKyg1-rC.min.js.map 6//# debugId=d07ff4c4-6597-5320-99da-1b4ec6fdff9a
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.