You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
34 KiB

(function(e,r,t){"use strict";if(typeof window!=="undefined"&&typeof define==="function"&&define.amd){define(t)}else if(typeof module!=="undefined"&&module.exports){module.exports=t()}else if(r.exports){r.exports=t()}else{r[e]=t()}})("Fingerprint2",this,function(){"use strict";if(typeof Array.isArray==="undefined"){Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"}}var d=function(e,r){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];r=[r[0]>>>16,r[0]&65535,r[1]>>>16,r[1]&65535];var t=[0,0,0,0];t[3]+=e[3]+r[3];t[2]+=t[3]>>>16;t[3]&=65535;t[2]+=e[2]+r[2];t[1]+=t[2]>>>16;t[2]&=65535;t[1]+=e[1]+r[1];t[0]+=t[1]>>>16;t[1]&=65535;t[0]+=e[0]+r[0];t[0]&=65535;return[t[0]<<16|t[1],t[2]<<16|t[3]]};var f=function(e,r){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];r=[r[0]>>>16,r[0]&65535,r[1]>>>16,r[1]&65535];var t=[0,0,0,0];t[3]+=e[3]*r[3];t[2]+=t[3]>>>16;t[3]&=65535;t[2]+=e[2]*r[3];t[1]+=t[2]>>>16;t[2]&=65535;t[2]+=e[3]*r[2];t[1]+=t[2]>>>16;t[2]&=65535;t[1]+=e[1]*r[3];t[0]+=t[1]>>>16;t[1]&=65535;t[1]+=e[2]*r[2];t[0]+=t[1]>>>16;t[1]&=65535;t[1]+=e[3]*r[1];t[0]+=t[1]>>>16;t[1]&=65535;t[0]+=e[0]*r[3]+e[1]*r[2]+e[2]*r[1]+e[3]*r[0];t[0]&=65535;return[t[0]<<16|t[1],t[2]<<16|t[3]]};var g=function(e,r){r%=64;if(r===32){return[e[1],e[0]]}else if(r<32){return[e[0]<<r|e[1]>>>32-r,e[1]<<r|e[0]>>>32-r]}else{r-=32;return[e[1]<<r|e[0]>>>32-r,e[0]<<r|e[1]>>>32-r]}};var v=function(e,r){r%=64;if(r===0){return e}else if(r<32){return[e[0]<<r|e[1]>>>32-r,e[1]<<r]}else{return[e[1]<<r-32,0]}};var h=function(e,r){return[e[0]^r[0],e[1]^r[1]]};var m=function(e){e=h(e,[0,e[0]>>>1]);e=f(e,[4283543511,3981806797]);e=h(e,[0,e[0]>>>1]);e=f(e,[3301882366,444984403]);e=h(e,[0,e[0]>>>1]);return e};var u=function(e,r){e=e||"";r=r||0;var t=e.length%16;var a=e.length-t;var n=[0,r];var i=[0,r];var o=[0,0];var u=[0,0];var s=[2277735313,289559509];var l=[1291169091,658871167];for(var c=0;c<a;c=c+16){o=[e.charCodeAt(c+4)&255|(e.charCodeAt(c+5)&255)<<8|(e.charCodeAt(c+6)&255)<<16|(e.charCodeAt(c+7)&255)<<24,e.charCodeAt(c)&255|(e.charCodeAt(c+1)&255)<<8|(e.charCodeAt(c+2)&255)<<16|(e.charCodeAt(c+3)&255)<<24];u=[e.charCodeAt(c+12)&255|(e.charCodeAt(c+13)&255)<<8|(e.charCodeAt(c+14)&255)<<16|(e.charCodeAt(c+15)&255)<<24,e.charCodeAt(c+8)&255|(e.charCodeAt(c+9)&255)<<8|(e.charCodeAt(c+10)&255)<<16|(e.charCodeAt(c+11)&255)<<24];o=f(o,s);o=g(o,31);o=f(o,l);n=h(n,o);n=g(n,27);n=d(n,i);n=d(f(n,[0,5]),[0,1390208809]);u=f(u,l);u=g(u,33);u=f(u,s);i=h(i,u);i=g(i,31);i=d(i,n);i=d(f(i,[0,5]),[0,944331445])}o=[0,0];u=[0,0];switch(t){case 15:u=h(u,v([0,e.charCodeAt(c+14)],48));case 14:u=h(u,v([0,e.charCodeAt(c+13)],40));case 13:u=h(u,v([0,e.charCodeAt(c+12)],32));case 12:u=h(u,v([0,e.charCodeAt(c+11)],24));case 11:u=h(u,v([0,e.charCodeAt(c+10)],16));case 10:u=h(u,v([0,e.charCodeAt(c+9)],8));case 9:u=h(u,[0,e.charCodeAt(c+8)]);u=f(u,l);u=g(u,33);u=f(u,s);i=h(i,u);case 8:o=h(o,v([0,e.charCodeAt(c+7)],56));case 7:o=h(o,v([0,e.charCodeAt(c+6)],48));case 6:o=h(o,v([0,e.charCodeAt(c+5)],40));case 5:o=h(o,v([0,e.charCodeAt(c+4)],32));case 4:o=h(o,v([0,e.charCodeAt(c+3)],24));case 3:o=h(o,v([0,e.charCodeAt(c+2)],16));case 2:o=h(o,v([0,e.charCodeAt(c+1)],8));case 1:o=h(o,[0,e.charCodeAt(c)]);o=f(o,s);o=g(o,31);o=f(o,l);n=h(n,o)}n=h(n,[0,e.length]);i=h(i,[0,e.length]);n=d(n,i);i=d(i,n);n=m(n);i=m(i);n=d(n,i);i=d(i,n);return("00000000"+(n[0]>>>0).toString(16)).slice(-8)+("00000000"+(n[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)};var e={preprocessor:null,audio:{timeout:1e3,excludeIOS11:true},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:false},screen:{detectScreenOrientation:true},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:false},extraComponents:[],excludes:{enumerateDevices:true,pixelRatio:true,doNotTrack:true,fontsFlash:true},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"};var p=function(e,r){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach){e.forEach(r)}else if(e.length===+e.length){for(var t=0,a=e.length;t<a;t++){r(e[t],t,e)}}else{for(var n in e){if(e.hasOwnProperty(n)){r(e[n],n,e)}}}};var s=function(e,a){var n=[];if(e==null){return n}if(Array.prototype.map&&e.map===Array.prototype.map){return e.map(a)}p(e,function(e,r,t){n.push(a(e,r,t))});return n};var r=function(e,r){if(r==null){return e}var t;var a;for(a in r){t=r[a];if(t!=null&&!Object.prototype.hasOwnProperty.call(e,a)){e[a]=t}}return e};var t=function(r,e){if(!a()){return r(e.NOT_AVAILABLE)}navigator.mediaDevices.enumerateDevices().then(function(e){r(e.map(function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label}))})["catch"](function(e){r(e)})};var a=function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices};var n=function(t,e){var r=e.audio;if(r.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/)){return t(e.EXCLUDED)}var a=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(a==null){return t(e.NOT_AVAILABLE)}var n=new a(1,44100,44100);var i=n.createOscillator();i.type="triangle";i.frequency.setValueAtTime(1e4,n.currentTime);var o=n.createDynamicsCompressor();p([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],function(e){if(o[e[0]]!==undefined&&typeof o[e[0]].setValueAtTime==="function"){o[e[0]].setValueAtTime(e[1],n.currentTime)}});i.connect(o);o.connect(n.destination);i.start(0);n.startRendering();var u=setTimeout(function(){console.warn('Audio fingerprint timed out. Please report bug at https://github.com/Valve/fingerprintjs2 with your user agent: "'+navigator.userAgent+'".');n.oncomplete=function(){};n=null;return t("audioTimeout")},r.timeout);n.oncomplete=function(e){var r;try{clearTimeout(u);r=e.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce(function(e,r){return e+Math.abs(r)},0).toString();i.disconnect();o.disconnect()}catch(e){t(e);return}t(r)}};var i=function(e){e(navigator.userAgent)};var o=function(e,r){e(navigator.webdriver==null?r.NOT_AVAILABLE:navigator.webdriver)};var l=function(e,r){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||r.NOT_AVAILABLE)};var c=function(e,r){e(window.screen.colorDepth||r.NOT_AVAILABLE)};var T=function(e,r){e(navigator.deviceMemory||r.NOT_AVAILABLE)};var A=function(e,r){e(window.devicePixelRatio||r.NOT_AVAILABLE)};var S=function(e,r){e(w(r))};var w=function(e){var r=[window.screen.width,window.screen.height];if(e.screen.detectScreenOrientation){r.sort().reverse()}return r};var y=function(e,r){e(C(r))};var C=function(e){if(window.screen.availWidth&&window.screen.availHeight){var r=[window.screen.availHeight,window.screen.availWidth];if(e.screen.detectScreenOrientation){r.sort().reverse()}return r}return e.NOT_AVAILABLE};var B=function(e){e((new Date).getTimezoneOffset())};var x=function(e,r){if(window.Intl&&window.Intl.DateTimeFormat){e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone);return}e(r.NOT_AVAILABLE)};var E=function(e,r){e(q(r))};var O=function(e,r){e(Y(r))};var M=function(e,r){e(Q(r))};var b=function(e){e(!!(document.body&&document.body.addBehavior))};var P=function(e){e(!!window.openDatabase)};var k=function(e,r){e(ee(r))};var L=function(e,r){e(re(r))};var I=function(e,r){e(te(r))};var R=function(e,r){if(fe()){e(ne(r));return}e(r.NOT_AVAILABLE)};var D=function(e,r){if(ge()){e(ie());return}e(r.NOT_AVAILABLE)};var N=function(e){if(ge()){e(oe());return}e()};var _=function(e){e(ue())};var F=function(e){e(se())};var G=function(e){e(le())};var U=function(e){e(ce())};var V=function(e){e(de())};var H=function(r,e){if(!he()){return r("swf object not loaded")}if(!me()){return r("flash not installed")}if(!e.fonts.swfPath){return r("missing options.fonts.swfPath")}Te(function(e){r(e)},e)};var W=function(e,r){var u=["monospace","sans-serif","serif"];var s=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];if(r.fonts.extendedJsFonts){var t=["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"];s=s.concat(t)}s=s.concat(r.fonts.userDefinedFonts);s=s.filter(function(e,r){return s.indexOf(e)===r});var a="mmmmmmmmmmlli";var n="72px";var i=document.getElementsByTagName("body")[0];var o=document.createElement("div");var l=document.createElement("div");var c={};var d={};var f=function(){var e=document.createElement("span");e.style.position="absolute";e.style.left="-9999px";e.style.fontSize=n;e.style.fontStyle="normal";e.style.fontWeight="normal";e.style.letterSpacing="normal";e.style.lineBreak="auto";e.style.lineHeight="normal";e.style.textTransform="none";e.style.textAlign="left";e.style.textDecoration="none";e.style.textShadow="none";e.style.whiteSpace="normal";e.style.wordBreak="normal";e.style.wordSpacing="normal";e.innerHTML=a;return e};var g=function(e,r){var t=f();t.style.fontFamily="'"+e+"',"+r;return t};var v=function(){var e=[];for(var r=0,t=u.length;r<t;r++){var a=f();a.style.fontFamily=u[r];o.appendChild(a);e.push(a)}return e};var h=function(){var e={};for(var r=0,t=s.length;r<t;r++){var a=[];for(var n=0,i=u.length;n<i;n++){var o=g(s[r],u[n]);l.appendChild(o);a.push(o)}e[s[r]]=a}return e};var m=function(e){var r=false;for(var t=0;t<u.length;t++){r=e[t].offsetWidth!==c[u[t]]||e[t].offsetHeight!==d[u[t]];if(r){return r}}return r};var p=v();i.appendChild(o);for(var T=0,A=u.length;T<A;T++){c[u[T]]=p[T].offsetWidth;d[u[T]]=p[T].offsetHeight}var S=h();i.appendChild(l);var w=[];for(var y=0,C=s.length;y<C;y++){if(m(S[s[y]])){w.push(s[y])}}i.removeChild(l);i.removeChild(o);e(w)};var X=function(e,r){if(ve()){if(!r.plugins.excludeIE){e(K(r))}else{e(r.EXCLUDED)}}else{e(j(r))}};var j=function(e){if(navigator.plugins==null){return e.NOT_AVAILABLE}var r=[];for(var t=0,a=navigator.plugins.length;t<a;t++){if(navigator.plugins[t]){r.push(navigator.plugins[t])}}if(z(e)){r=r.sort(function(e,r){if(e.name>r.name){return 1}if(e.name<r.name){return-1}return 0})}return s(r,function(e){var r=s(e,function(e){return[e.type,e.suffixes]});return[e.name,e.description,r]})};var K=function(r){var e=[];if(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window){var t=["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"];e=s(t,function(e){try{new window.ActiveXObject(e);return e}catch(e){return r.ERROR}})}else{e.push(r.NOT_AVAILABLE)}if(navigator.plugins){e=e.concat(j(r))}return e};var z=function(e){var r=false;for(var t=0,a=e.plugins.sortPluginsFor.length;t<a;t++){var n=e.plugins.sortPluginsFor[t];if(navigator.userAgent.match(n)){r=true;break}}return r};var Z=function(e){e(ae())};var J=function(e,r){e($(r))};var q=function(r){try{return!!window.sessionStorage}catch(e){return r.ERROR}};var Y=function(r){try{return!!window.localStorage}catch(e){return r.ERROR}};var Q=function(r){try{return!!window.indexedDB}catch(e){return r.ERROR}};var $=function(e){if(navigator.hardwareConcurrency){return navigator.hardwareConcurrency}return e.NOT_AVAILABLE};var ee=function(e){return navigator.cpuClass||e.NOT_AVAILABLE};var re=function(e){if(navigator.platform){return navigator.platform}else{return e.NOT_AVAILABLE}};var te=function(e){if(navigator.doNotTrack){return navigator.doNotTrack}else if(navigator.msDoNotTrack){return navigator.msDoNotTrack}else if(window.doNotTrack){return window.doNotTrack}else{return e.NOT_AVAILABLE}};var ae=function(){var e=0;var r;if(typeof navigator.maxTouchPoints!=="undefined"){e=navigator.maxTouchPoints}else if(typeof navigator.msMaxTouchPoints!=="undefined"){e=navigator.msMaxTouchPoints}try{document.createEvent("TouchEvent");r=true}catch(e){r=false}var t="ontouchstart"in window;return[e,r,t]};var ne=function(e){var r=[];var t=document.createElement("canvas");t.width=2e3;t.height=200;t.style.display="inline";var a=t.getContext("2d");a.rect(0,0,10,10);a.rect(2,2,6,6);r.push("canvas winding:"+(a.isPointInPath(5,5,"evenodd")===false?"yes":"no"));a.textBaseline="alphabetic";a.fillStyle="#f60";a.fillRect(125,1,62,20);a.fillStyle="#069";if(e.dontUseFakeFontInCanvas){a.font="11pt Arial"}else{a.font="11pt no-real-font-123"}a.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15);a.fillStyle="rgba(102, 204, 0, 0.2)";a.font="18pt Arial";a.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45);a.globalCompositeOperation="multiply";a.fillStyle="rgb(255,0,255)";a.beginPath();a.arc(50,50,50,0,Math.PI*2,true);a.closePath();a.fill();a.fillStyle="rgb(0,255,255)";a.beginPath();a.arc(100,50,50,0,Math.PI*2,true);a.closePath();a.fill();a.fillStyle="rgb(255,255,0)";a.beginPath();a.arc(75,100,50,0,Math.PI*2,true);a.closePath();a.fill();a.fillStyle="rgb(255,0,255)";a.arc(75,75,75,0,Math.PI*2,true);a.arc(75,75,25,0,Math.PI*2,true);a.fill("evenodd");if(t.toDataURL){r.push("canvas fp:"+t.toDataURL())}return r};var ie=function(){var o;var e=function(e){o.clearColor(0,0,0,1);o.enable(o.DEPTH_TEST);o.depthFunc(o.LEQUAL);o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT);return"["+e[0]+", "+e[1]+"]"};var r=function(e){var r=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(r){var t=e.getParameter(r.MAX_TEXTURE_MAX_ANISOTROPY_EXT);if(t===0){t=2}return t}else{return null}};o=Ae();if(!o){return null}var u=[];var t="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}";var a="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}";var n=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,n);var i=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);o.bufferData(o.ARRAY_BUFFER,i,o.STATIC_DRAW);n.itemSize=3;n.numItems=3;var s=o.createProgram();var l=o.createShader(o.VERTEX_SHADER);o.shaderSource(l,t);o.compileShader(l);var c=o.createShader(o.FRAGMENT_SHADER);o.shaderSource(c,a);o.compileShader(c);o.attachShader(s,l);o.attachShader(s,c);o.linkProgram(s);o.useProgram(s);s.vertexPosAttrib=o.getAttribLocation(s,"attrVertex");s.offsetUniform=o.getUniformLocation(s,"uniformOffset");o.enableVertexAttribArray(s.vertexPosArray);o.vertexAttribPointer(s.vertexPosAttrib,n.itemSize,o.FLOAT,!1,0,0);o.uniform2f(s.offsetUniform,1,1);o.drawArrays(o.TRIANGLE_STRIP,0,n.numItems);try{u.push(o.canvas.toDataURL())}catch(e){}u.push("extensions:"+(o.getSupportedExtensions()||[]).join(";"));u.push("webgl aliased line width range:"+e(o.getParameter(o.ALIASED_LINE_WIDTH_RANGE)));u.push("webgl aliased point size range:"+e(o.getParameter(o.ALIASED_POINT_SIZE_RANGE)));u.push("webgl alpha bits:"+o.getParameter(o.ALPHA_BITS));u.push("webgl antialiasing:"+(o.getContextAttributes().antialias?"yes":"no"));u.push("webgl blue bits:"+o.getParameter(o.BLUE_BITS));u.push("webgl depth bits:"+o.getParameter(o.DEPTH_BITS));u.push("webgl green bits:"+o.getParameter(o.GREEN_BITS));u.push("webgl max anisotropy:"+r(o));u.push("webgl max combined texture image units:"+o.getParameter(o.MAX_COMBINED_TEXTURE_IMAGE_UNITS));u.push("webgl max cube map texture size:"+o.getParameter(o.MAX_CUBE_MAP_TEXTURE_SIZE));u.push("webgl max fragment uniform vectors:"+o.getParameter(o.MAX_FRAGMENT_UNIFORM_VECTORS));u.push("webgl max render buffer size:"+o.getParameter(o.MAX_RENDERBUFFER_SIZE));u.push("webgl max texture image units:"+o.getParameter(o.MAX_TEXTURE_IMAGE_UNITS));u.push("webgl max texture size:"+o.getParameter(o.MAX_TEXTURE_SIZE));u.push("webgl max varying vectors:"+o.getParameter(o.MAX_VARYING_VECTORS));u.push("webgl max vertex attribs:"+o.getParameter(o.MAX_VERTEX_ATTRIBS));u.push("webgl max vertex texture image units:"+o.getParameter(o.MAX_VERTEX_TEXTURE_IMAGE_UNITS));u.push("webgl max vertex uniform vectors:"+o.getParameter(o.MAX_VERTEX_UNIFORM_VECTORS));u.push("webgl max viewport dims:"+e(o.getParameter(o.MAX_VIEWPORT_DIMS)));u.push("webgl red bits:"+o.getParameter(o.RED_BITS));u.push("webgl renderer:"+o.getParameter(o.RENDERER));u.push("webgl shading language version:"+o.getParameter(o.SHADING_LANGUAGE_VERSION));u.push("webgl stencil bits:"+o.getParameter(o.STENCIL_BITS));u.push("webgl vendor:"+o.getParameter(o.VENDOR));u.push("webgl version:"+o.getParameter(o.VERSION));try{var d=o.getExtension("WEBGL_debug_renderer_info");if(d){u.push("webgl unmasked vendor:"+o.getParameter(d.UNMASKED_VENDOR_WEBGL));u.push("webgl unmasked renderer:"+o.getParameter(d.UNMASKED_RENDERER_WEBGL))}}catch(e){}if(!o.getShaderPrecisionFormat){Se(o);return u}p(["FLOAT","INT"],function(i){p(["VERTEX","FRAGMENT"],function(n){p(["HIGH","MEDIUM","LOW"],function(a){p(["precision","rangeMin","rangeMax"],function(e){var r=o.getShaderPrecisionFormat(o[n+"_SHADER"],o[a+"_"+i])[e];if(e!=="precision"){e="precision "+e}var t=["webgl ",n.toLowerCase()," shader ",a.toLowerCase()," ",i.toLowerCase()," ",e,":",r].join("");u.push(t)})})})});Se(o);return u};var oe=function(){try{var e=Ae();var r=e.getExtension("WEBGL_debug_renderer_info");var t=e.getParameter(r.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(r.UNMASKED_RENDERER_WEBGL);Se(e);return t}catch(e){return null}};var ue=function(){var e=document.createElement("div");e.innerHTML="&nbsp;";e.className="adsbox";var r=false;try{document.body.appendChild(e);r=document.getElementsByClassName("adsbox")[0].offsetHeight===0;document.body.removeChild(e)}catch(e){r=false}return r};var se=function(){if(typeof navigator.languages!=="undefined"){try{var e=navigator.languages[0].substr(0,2);if(e!==navigator.language.substr(0,2)){return true}}catch(e){return true}}return false};var le=function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight};var ce=function(){var e=navigator.userAgent.toLowerCase();var r=navigator.oscpu;var t=navigator.platform.toLowerCase();var a;if(e.indexOf("windows phone")>=0){a="Windows Phone"}else if(e.indexOf("windows")>=0||e.indexOf("win16")>=0||e.indexOf("win32")>=0||e.indexOf("win64")>=0||e.indexOf("win95")>=0||e.indexOf("win98")>=0||e.indexOf("winnt")>=0||e.indexOf("wow64")>=0){a="Windows"}else if(e.indexOf("android")>=0){a="Android"}else if(e.indexOf("linux")>=0||e.indexOf("cros")>=0||e.indexOf("x11")>=0){a="Linux"}else if(e.indexOf("iphone")>=0||e.indexOf("ipad")>=0||e.indexOf("ipod")>=0||e.indexOf("crios")>=0||e.indexOf("fxios")>=0){a="iOS"}else if(e.indexOf("macintosh")>=0||e.indexOf("mac_powerpc)")>=0){a="Mac"}else{a="Other"}var n="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;if(n&&a!=="Windows"&&a!=="Windows Phone"&&a!=="Android"&&a!=="iOS"&&a!=="Other"&&e.indexOf("cros")===-1){return true}if(typeof r!=="undefined"){r=r.toLowerCase();if(r.indexOf("win")>=0&&a!=="Windows"&&a!=="Windows Phone"){return true}else if(r.indexOf("linux")>=0&&a!=="Linux"&&a!=="Android"){return true}else if(r.indexOf("mac")>=0&&a!=="Mac"&&a!=="iOS"){return true}else if((r.indexOf("win")===-1&&r.indexOf("linux")===-1&&r.indexOf("mac")===-1)!==(a==="Other")){return true}}if(t.indexOf("win")>=0&&a!=="Windows"&&a!=="Windows Phone"){return true}else if((t.indexOf("linux")>=0||t.indexOf("android")>=0||t.indexOf("pike")>=0)&&a!=="Linux"&&a!=="Android"){return true}else if((t.indexOf("mac")>=0||t.indexOf("ipad")>=0||t.indexOf("ipod")>=0||t.indexOf("iphone")>=0)&&a!=="Mac"&&a!=="iOS"){return true}else if(t.indexOf("arm")>=0&&a==="Windows Phone"){return false}else if(t.indexOf("pike")>=0&&e.indexOf("opera mini")>=0){return false}else{var i=t.indexOf("win")<0&&t.indexOf("linux")<0&&t.indexOf("mac")<0&&t.indexOf("iphone")<0&&t.indexOf("ipad")<0&&t.indexOf("ipod")<0;if(i!==(a==="Other")){return true}}return typeof navigator.plugins==="undefined"&&a!=="Windows"&&a!=="Windows Phone"};var de=function(){var e=navigator.userAgent.toLowerCase();var r=navigator.productSub;var t;if(e.indexOf("edge/")>=0||e.indexOf("iemobile/")>=0){return false}else if(e.indexOf("opera mini")>=0){return false}else if(e.indexOf("firefox/")>=0){t="Firefox"}else if(e.indexOf("opera/")>=0||e.indexOf(" opr/")>=0){t="Opera"}else if(e.indexOf("chrome/")>=0){t="Chrome"}else if(e.indexOf("safari/")>=0){if(e.indexOf("android 1.")>=0||e.indexOf("android 2.")>=0||e.indexOf("android 3.")>=0||e.indexOf("android 4.")>=0){t="AOSP"}else{t="Safari"}}else if(e.indexOf("trident/")>=0){t="Internet Explorer"}else{t="Other"}if((t==="Chrome"||t==="Safari"||t==="Opera")&&r!=="20030107"){return true}var a=eval.toString().length;if(a===37&&t!=="Safari"&&t!=="Firefox"&&t!=="Other"){return true}else if(a===39&&t!=="Internet Explorer"&&t!=="Other"){return true}else if(a===33&&t!=="Chrome"&&t!=="AOSP"&&t!=="Opera"&&t!=="Other"){return true}var n;try{throw"a"}catch(e){try{e.toSource();n=true}catch(e){n=false}}return n&&t!=="Firefox"&&t!=="Other"};var fe=function(){var e=document.createElement("canvas");return!!(e.getContext&&e.getContext("2d"))};var ge=function(){if(!fe()){return false}var e=Ae();var r=!!window.WebGLRenderingContext&&!!e;Se(e);return r};var ve=function(){if(navigator.appName==="Microsoft Internet Explorer"){return true}else if(navigator.appName==="Netscape"&&/Trident/.test(navigator.userAgent)){return true}return false};var he=function(){return typeof window.swfobject!=="undefined"};var me=function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")};var pe=function(e){var r=document.createElement("div");r.setAttribute("id",e.fonts.swfContainerId);document.body.appendChild(r)};var Te=function(r,e){var t="___fp_swf_loaded";window[t]=function(e){r(e)};var a=e.fonts.swfContainerId;pe();var n={onReady:t};var i={allowScriptAccess:"always",menu:"false"};window.swfobject.embedSWF(e.fonts.swfPath,a,"1","1","9.0.0",false,n,i,{})};var Ae=function(){var e=document.createElement("canvas");var r=null;try{r=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}if(!r){r=null}return r};var Se=function(e){var r=e.getExtension("WEBGL_lose_context");if(r!=null){r.loseContext()}};var we=[{key:"userAgent",getData:i},{key:"webdriver",getData:o},{key:"language",getData:l},{key:"colorDepth",getData:c},{key:"deviceMemory",getData:T},{key:"pixelRatio",getData:A},{key:"hardwareConcurrency",getData:J},{key:"screenResolution",getData:S},{key:"availableScreenResolution",getData:y},{key:"timezoneOffset",getData:B},{key:"timezone",getData:x},{key:"sessionStorage",getData:E},{key:"localStorage",getData:O},{key:"indexedDb",getData:M},{key:"addBehavior",getData:b},{key:"openDatabase",getData:P},{key:"cpuClass",getData:k},{key:"platform",getData:L},{key:"doNotTrack",getData:I},{key:"plugins",getData:X},{key:"canvas",getData:R},{key:"webgl",getData:D},{key:"webglVendorAndRenderer",getData:N},{key:"adBlock",getData:_},{key:"hasLiedLanguages",getData:F},{key:"hasLiedResolution",getData:G},{key:"hasLiedOs",getData:U},{key:"hasLiedBrowser",getData:V},{key:"touchSupport",getData:Z},{key:"fonts",getData:W,pauseBefore:true},{key:"fontsFlash",getData:H,pauseBefore:true},{key:"audio",getData:n},{key:"enumerateDevices",getData:t}];var ye=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")};ye.get=function(t,a){if(!a){a=t;t={}}else if(!t){t={}}r(t,e);t.components=t.extraComponents.concat(we);var n={data:[],addPreprocessedComponent:function(e,r){if(typeof t.preprocessor==="function"){r=t.preprocessor(e,r)}n.data.push({key:e,value:r})}};var i=-1;var o=function(e){i+=1;if(i>=t.components.length){a(n.data);return}var r=t.components[i];if(t.excludes[r.key]){o(false);return}if(!e&&r.pauseBefore){i-=1;setTimeout(function(){o(true)},1);return}try{r.getData(function(e){n.addPreprocessedComponent(r.key,e);o(false)},t)}catch(e){n.addPreprocessedComponent(r.key,String(e));o(false)}};o(false)};ye.getPromise=function(t){return new Promise(function(e,r){ye.get(t,e)})};ye.getV18=function(i,o){if(o==null){o=i;i={}}return ye.get(i,function(e){var r=[];for(var t=0;t<e.length;t++){var a=e[t];if(a.value===(i.NOT_AVAILABLE||"not available")){r.push({key:a.key,value:"unknown"})}else if(a.key==="plugins"){r.push({key:"plugins",value:s(a.value,function(e){var r=s(e[2],function(e){if(e.join){return e.join("~")}return e}).join(",");return[e[0],e[1],r].join("::")})})}else if(["canvas","webgl"].indexOf(a.key)!==-1&&Array.isArray(a.value)){r.push({key:a.key,value:a.value.join("~")})}else if(["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(a.key)!==-1){if(a.value){r.push({key:a.key,value:1})}else{continue}}else{if(a.value){r.push(a.value.join?{key:a.key,value:a.value.join(";")}:a)}else{r.push({key:a.key,value:a.value})}}}var n=u(s(r,function(e){return e.value}).join("~~~"),31);o(n,r)})};ye.x64hash128=u;ye.VERSION="2.1.2";return ye});(function(e,r,t){"use strict";if(typeof window!=="undefined"&&typeof define==="function"&&define.amd){define(t)}else if(typeof module!=="undefined"&&module.exports){module.exports=t()}else if(r.exports){r.exports=t()}else{r[e]=t()}})("fp",this,function(){var u=(new Date).valueOf();var i={excludes:{userAgent:true,enumerateDevices:true,pixelRatio:true,doNotTrack:true,fontsFlash:true,fonts:true,language:true,availableScreenResolution:true,timezoneOffset:true,timezone:true,plugins:true,canvas:true,webgl:true,adBlock:true,audio:true}};var n={excludes:{enumerateDevices:true,pixelRatio:true,doNotTrack:true,fontsFlash:true,fonts:true,language:true,availableScreenResolution:true,timezoneOffset:true,timezone:true,plugins:true,adBlock:true}};var e={excludes:{enumerateDevices:true,pixelRatio:true,doNotTrack:true,fontsFlash:true,fonts:true,adBlock:true}};var a=function(e){if(window.requestIdleCallback){requestIdleCallback(function(){e()})}else{setTimeout(e,500)}};var o=function(e,r,t,a,n){var i=Fingerprint2.x64hash128(JSON.stringify(t),15).substring(0,2);var o=i+r+e;console.log("\n"+" %c fp v3.0.3 %c "+o+"::"+((new Date).valueOf()-u)+"ms %c https://fp.yimian.xyz/ \n","color: #00FFFF; background: #030307; padding:5px 0;","color: #fadfa3; background: #030307; padding:5px 0;","background: #4682B4; padding:5px 0;");a(o)};var s=function(e,t,r,a){var n=Fingerprint2.x64hash128(JSON.stringify(t),15).substring(0,2);t.forEach(function(e,r){if(i.excludes.hasOwnProperty(e.key)){t.splice(r,1)}});o(e,n,t,r,a)};var l=function(t,e,r){var a=Fingerprint2.x64hash128(JSON.stringify(t),15).substring(0,2);t.forEach(function(e,r){if(n.excludes.hasOwnProperty(e.key)){t.splice(r,1)}});s(a,t,e,r)};return new Promise(function(r,t){a(function(){u=(new Date).valueOf();Fingerprint2.get(e,function(e){l(e,r,t)})})})});(function(e,r,t){"use strict";if(typeof window!=="undefined"&&typeof define==="function"&&define.amd){define(t)}else if(typeof module!=="undefined"&&module.exports){module.exports=t()}else if(r.exports){r.exports=t()}else{r[e]=t()}})("fp_details",this,function(){var t={excludes:{}};var a=function(e){if(window.requestIdleCallback){requestIdleCallback(function(){e()})}else{setTimeout(e,500)}};return new Promise(function(r,e){a(function(){Fingerprint2.get(t,function(e){r(e)})})})});
//# sourceMappingURL=dist/fp.min.js.map