forked from suellenwang/Ars327_Final_Suellen-Wang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
s.js
1 lines (1 loc) · 80.5 KB
/
s.js
1
(function(a,c,b){c[a]=b()})("Fingerprint2",this,function(){if(!Array.prototype.indexOf){Array.prototype.indexOf=function(searchElement,fromIndex){var k;if(this==null){throw new TypeError("'this' is null or undefined")}var O=Object(this);var len=O.length>>>0;if(len===0){return -1}var n=+fromIndex||0;if(Math.abs(n)===Infinity){n=0}if(n>=len){return -1}k=Math.max(n>=0?n:len-Math.abs(n),0);while(k<len){if(k in O&&O[k]===searchElement){return k}k++}return -1}}var Fingerprint2=function(options){var defaultOptions={swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",extendedJsFonts:true};this.options=this.extend(options,defaultOptions);this.nativeForEach=Array.prototype.forEach;this.nativeMap=Array.prototype.map};Fingerprint2.prototype={extend:function(source,target){if(source==null){return target}for(var k in source){if(source[k]!=null&&target[k]!==source[k]){target[k]=source[k]}}return target},log:function(msg){if(window.console){}},get:function(done){var keys=[];keys=this.languageKey(keys);keys=this.screenResolutionKey(keys);keys=this.timezoneOffsetKey(keys);keys=this.sessionStorageKey(keys);keys=this.localStorageKey(keys);keys=this.indexedDbKey(keys);keys=this.openDatabaseKey(keys);keys=this.cpuClassKey(keys);keys=this.platformKey(keys);keys=this.doNotTrackKey(keys);keys=this.pluginsKey(keys);keys=this.canvasKey(keys);keys=this.webglKey(keys);keys=this.hasLiedLanguagesKey(keys);keys=this.hasLiedResolutionKey(keys);keys=this.hasLiedOsKey(keys);keys=this.hasLiedBrowserKey(keys);keys=this.touchSupportKey(keys);keys=this.fontsKey(keys);var that=this;var murmur=that.x64hash128(keys.join("~~~"),31);return done(murmur)},userAgentKey:function(keys){if(!this.options.excludeUserAgent){keys.push(this.getUserAgent())}return keys},getUserAgent:function(){return navigator.userAgent},languageKey:function(keys){if(!this.options.excludeLanguage){keys.push(navigator.language)}return keys},colorDepthKey:function(keys){if(!this.options.excludeColorDepth){keys.push(screen.colorDepth)}return keys},screenResolutionKey:function(keys){if(!this.options.excludeScreenResolution){return this.getScreenResolution(keys)}return keys},getScreenResolution:function(keys){var resolution;var available;if(this.options.detectScreenOrientation){resolution=(screen.height>screen.width)?[screen.height,screen.width]:[screen.width,screen.height]}else{resolution=[screen.width,screen.height]}if(typeof resolution!=="undefined"){keys.push(resolution)}if(screen.availWidth&&screen.availHeight){if(this.options.detectScreenOrientation){available=(screen.availHeight>screen.availWidth)?[screen.availHeight,screen.availWidth]:[screen.availWidth,screen.availHeight]}else{available=[screen.availHeight,screen.availWidth]}}if(typeof available!=="undefined"){keys.push(available)}return keys},timezoneOffsetKey:function(keys){if(!this.options.excludeTimezoneOffset){keys.push(new Date().getTimezoneOffset())}return keys},sessionStorageKey:function(keys){if(!this.options.excludeSessionStorage&&this.hasSessionStorage()){keys.push("sessionStorageKey")}return keys},localStorageKey:function(keys){if(!this.options.excludeSessionStorage&&this.hasLocalStorage()){keys.push("localStorageKey")}return keys},indexedDbKey:function(keys){if(!this.options.excludeIndexedDB&&this.hasIndexedDB()){keys.push("indexedDbKey")}return keys},openDatabaseKey:function(keys){if(!this.options.excludeOpenDatabase&&window.openDatabase){keys.push("openDatabase")}return keys},cpuClassKey:function(keys){if(!this.options.excludeCpuClass){keys.push(this.getNavigatorCpuClass())}return keys},platformKey:function(keys){if(!this.options.excludePlatform){keys.push(this.getNavigatorPlatform())}return keys},doNotTrackKey:function(keys){if(!this.options.excludeDoNotTrack){keys.push(this.getDoNotTrack())}return keys},canvasKey:function(keys){if(!this.options.excludeCanvas&&this.isCanvasSupported()){keys.push(this.getCanvasFp())}return keys},webglKey:function(keys){if(this.options.excludeWebGL){if(typeof NODEBUG==="undefined"){this.log("Skipping WebGL fingerprinting per excludeWebGL configuration option")}return keys}if(!this.isWebGlSupported()){if(typeof NODEBUG==="undefined"){this.log("Skipping WebGL fingerprinting because it is not supported in this browser")}return keys}keys.push(this.getWebglFp());return keys},hasLiedLanguagesKey:function(keys){if(!this.options.excludeHasLiedLanguages){keys.push(this.getHasLiedLanguages())}return keys},hasLiedResolutionKey:function(keys){if(!this.options.excludeHasLiedResolution){keys.push(this.getHasLiedResolution())}return keys},hasLiedOsKey:function(keys){if(!this.options.excludeHasLiedOs){keys.push(this.getHasLiedOs())}return keys},hasLiedBrowserKey:function(keys){if(!this.options.excludeHasLiedBrowser){keys.push(this.getHasLiedBrowser())}return keys},fontsKey:function(keys){if(!this.options.excludeFonts){keys.push(this.jsFontsKey())}return keys},jsFontsKey:function(){var that=this;var testString="mmmmmmmmmmlli";var baseFonts=["fantasy","cursive"];var testSize="72px";var h=document.getElementsByTagName("body")[0];var s=document.createElement("span");s.style.position="absolute";s.style.left="-9999px";s.style.fontSize=testSize;s.innerHTML=testString;var defaultWidth={};var defaultHeight={};for(var index=0,length=baseFonts.length;index<length;index++){s.style.fontFamily=baseFonts[index];if(document.body.nodeName.toUpperCase()=="FRAMESET"){document.documentElement.insertBefore(s,document.body)}else{h.appendChild(s)}defaultWidth[baseFonts[index]]=s.offsetWidth;defaultHeight[baseFonts[index]]=s.offsetHeight;if(document.body.nodeName.toUpperCase()=="FRAMESET"){document.documentElement.removeChild(s)}else{h.removeChild(s)}}var detect=function(font){var detected=false;for(var index=0,l=baseFonts.length;index<l;index++){s.style.fontFamily=font+","+baseFonts[index];if(document.body.nodeName.toUpperCase()=="FRAMESET"){document.documentElement.insertBefore(s,document.body)}else{h.appendChild(s)}var matched=(s.offsetWidth!==defaultWidth[baseFonts[index]]||s.offsetHeight!==defaultHeight[baseFonts[index]]);if(document.body.nodeName.toUpperCase()=="FRAMESET"){document.documentElement.removeChild(s)}else{h.removeChild(s)}detected=detected||matched;if(detected){break}}return detected};var fontList=["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","Garamond","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"];var extendedFontList=["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"];if(that.options.extendedJsFonts){fontList=fontList.concat(extendedFontList)}var available=[];for(var i=0,l=fontList.length;i<l;i++){if(detect(fontList[i])){available.push(fontList[i])}}return available.join(";")},pluginsKey:function(keys){if(!this.options.excludePlugins){if(this.isIE()){keys.push(this.getIEPluginsString())}else{keys.push(this.getRegularPluginsString())}}return keys},getRegularPluginsString:function(){var plugins=[];for(var i=0,l=navigator.plugins.length;i<l;i++){plugins.push(navigator.plugins[i])}plugins=plugins.sort(function(a,b){if(a.name>b.name){return 1}if(a.name<b.name){return -1}return 0});return this.map(plugins,function(p){var mimeTypes=this.map(p,function(mt){return[mt.type,mt.suffixes].join("~")}).join(",");return[p.name,p.description,mimeTypes].join("::")},this).join(";")},getIEPluginsString:function(){if(window.ActiveXObject){var names=["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"];return this.map(names,function(name){try{new ActiveXObject(name);return name}catch(e){return null}}).join(";")}else{return""}},touchSupportKey:function(keys){if(!this.options.excludeTouchSupport){keys.push(this.getTouchSupport())}return keys},hasLocalStorage:function(){try{return !!window.localStorage}catch(e){return true}},hasSessionStorage:function(){try{return !!window.sessionStorage}catch(e){return true}},hasIndexedDB:function(){return !!window.indexedDB},getNavigatorCpuClass:function(){if(navigator.cpuClass){return navigator.cpuClass}else{if(navigator.hardwareConcurrency){return navigator.hardwareConcurrency}else{return"NavigatorCpuClass: unknown"}}},getNavigatorPlatform:function(){if(navigator.platform){return navigator.platform}else{return"NavigatorPlatform: unknown"}},getDoNotTrack:function(){if(navigator.doNotTrack){return"doNotTrack: "+navigator.doNotTrack}else{return"doNotTrack: unknown"}},getTouchSupport:function(){var maxTouchPoints=0;var touchEvent=false;if(typeof navigator.maxTouchPoints!=="undefined"){maxTouchPoints=navigator.maxTouchPoints}else{if(typeof navigator.msMaxTouchPoints!=="undefined"){maxTouchPoints=navigator.msMaxTouchPoints}}try{document.createEvent("TouchEvent");touchEvent=true}catch(_){}var touchStart="ontouchstart" in window;return[maxTouchPoints,touchEvent,touchStart]},getCanvasFp:function(){var result=[];var canvas=document.createElement("canvas");canvas.width=2000;canvas.height=200;canvas.style.display="inline";var ctx=canvas.getContext("2d");ctx.rect(0,0,10,10);ctx.rect(2,2,6,6);result.push("canvas winding:"+((ctx.isPointInPath(5,5,"evenodd")===false)?"yes":"no"));ctx.textBaseline="alphabetic";ctx.fillStyle="#f60";ctx.fillRect(125,1,62,20);ctx.fillStyle="#069";if(this.options.dontUseFakeFontInCanvas){ctx.font="11pt Arial"}else{ctx.font="11pt no-real-font-123"}ctx.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03",2,15);ctx.fillStyle="rgba(102, 204, 0, 0.7)";ctx.font="18pt Arial";ctx.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03",4,45);ctx.globalCompositeOperation="multiply";ctx.fillStyle="rgb(255,0,255)";ctx.beginPath();ctx.arc(50,50,50,0,Math.PI*2,true);ctx.closePath();ctx.fill();ctx.fillStyle="rgb(0,255,255)";ctx.beginPath();ctx.arc(100,50,50,0,Math.PI*2,true);ctx.closePath();ctx.fill();ctx.fillStyle="rgb(255,255,0)";ctx.beginPath();ctx.arc(75,100,50,0,Math.PI*2,true);ctx.closePath();ctx.fill();ctx.fillStyle="rgb(255,0,255)";ctx.arc(75,75,75,0,Math.PI*2,true);ctx.arc(75,75,25,0,Math.PI*2,true);ctx.fill("evenodd");result.push("canvas fp:"+canvas.toDataURL());return result.join("~")},getWebglFp:function(){var gl;var fa2s=function(fa){gl.clearColor(0,0,0,1);gl.enable(gl.DEPTH_TEST);gl.depthFunc(gl.LEQUAL);gl.clear(gl.COLOR_BUFFER_BIT|gl.DEPTH_BUFFER_BIT);return"["+fa[0]+", "+fa[1]+"]"};var maxAnisotropy=function(gl){var anisotropy,ext=gl.getExtension("EXT_texture_filter_anisotropic")||gl.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||gl.getExtension("MOZ_EXT_texture_filter_anisotropic");return ext?(anisotropy=gl.getParameter(ext.MAX_TEXTURE_MAX_ANISOTROPY_EXT),0===anisotropy&&(anisotropy=2),anisotropy):null};gl=this.getWebglCanvas();if(!gl){return null}var result=[];var vShaderTemplate="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}";var fShaderTemplate="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}";var vertexPosBuffer=gl.createBuffer();gl.bindBuffer(gl.ARRAY_BUFFER,vertexPosBuffer);var vertices=new Float32Array([-0.2,-0.9,0,0.4,-0.26,0,0,0.732134444,0]);gl.bufferData(gl.ARRAY_BUFFER,vertices,gl.STATIC_DRAW);vertexPosBuffer.itemSize=3;vertexPosBuffer.numItems=3;var program=gl.createProgram(),vshader=gl.createShader(gl.VERTEX_SHADER);gl.shaderSource(vshader,vShaderTemplate);gl.compileShader(vshader);var fshader=gl.createShader(gl.FRAGMENT_SHADER);gl.shaderSource(fshader,fShaderTemplate);gl.compileShader(fshader);gl.attachShader(program,vshader);gl.attachShader(program,fshader);gl.linkProgram(program);gl.useProgram(program);program.vertexPosAttrib=gl.getAttribLocation(program,"attrVertex");program.offsetUniform=gl.getUniformLocation(program,"uniformOffset");gl.enableVertexAttribArray(program.vertexPosArray);gl.vertexAttribPointer(program.vertexPosAttrib,vertexPosBuffer.itemSize,gl.FLOAT,!1,0,0);gl.uniform2f(program.offsetUniform,1,1);gl.drawArrays(gl.TRIANGLE_STRIP,0,vertexPosBuffer.numItems);if(gl.canvas!=null){result.push(gl.canvas.toDataURL())}result.push("extensions:"+gl.getSupportedExtensions().join(";"));result.push("webgl aliased line width range:"+fa2s(gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE)));result.push("webgl aliased point size range:"+fa2s(gl.getParameter(gl.ALIASED_POINT_SIZE_RANGE)));result.push("webgl alpha bits:"+gl.getParameter(gl.ALPHA_BITS));result.push("webgl antialiasing:"+(gl.getContextAttributes().antialias?"yes":"no"));result.push("webgl blue bits:"+gl.getParameter(gl.BLUE_BITS));result.push("webgl depth bits:"+gl.getParameter(gl.DEPTH_BITS));result.push("webgl green bits:"+gl.getParameter(gl.GREEN_BITS));result.push("webgl max anisotropy:"+maxAnisotropy(gl));result.push("webgl max combined texture image units:"+gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS));result.push("webgl max cube map texture size:"+gl.getParameter(gl.MAX_CUBE_MAP_TEXTURE_SIZE));result.push("webgl max fragment uniform vectors:"+gl.getParameter(gl.MAX_FRAGMENT_UNIFORM_VECTORS));result.push("webgl max render buffer size:"+gl.getParameter(gl.MAX_RENDERBUFFER_SIZE));result.push("webgl max texture image units:"+gl.getParameter(gl.MAX_TEXTURE_IMAGE_UNITS));result.push("webgl max texture size:"+gl.getParameter(gl.MAX_TEXTURE_SIZE));result.push("webgl max varying vectors:"+gl.getParameter(gl.MAX_VARYING_VECTORS));result.push("webgl max vertex attribs:"+gl.getParameter(gl.MAX_VERTEX_ATTRIBS));result.push("webgl max vertex texture image units:"+gl.getParameter(gl.MAX_VERTEX_TEXTURE_IMAGE_UNITS));result.push("webgl max vertex uniform vectors:"+gl.getParameter(gl.MAX_VERTEX_UNIFORM_VECTORS));result.push("webgl max viewport dims:"+fa2s(gl.getParameter(gl.MAX_VIEWPORT_DIMS)));result.push("webgl red bits:"+gl.getParameter(gl.RED_BITS));result.push("webgl renderer:"+gl.getParameter(gl.RENDERER));result.push("webgl shading language version:"+gl.getParameter(gl.SHADING_LANGUAGE_VERSION));result.push("webgl stencil bits:"+gl.getParameter(gl.STENCIL_BITS));result.push("webgl vendor:"+gl.getParameter(gl.VENDOR));result.push("webgl version:"+gl.getParameter(gl.VERSION));if(!gl.getShaderPrecisionFormat){if(typeof NODEBUG==="undefined"){this.log("WebGL fingerprinting is incomplete, because your browser does not support getShaderPrecisionFormat")}return result.join("~")}result.push("webgl vertex shader high float precision:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.HIGH_FLOAT).precision);result.push("webgl vertex shader high float precision rangeMin:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.HIGH_FLOAT).rangeMin);result.push("webgl vertex shader high float precision rangeMax:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.HIGH_FLOAT).rangeMax);result.push("webgl vertex shader medium float precision:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.MEDIUM_FLOAT).precision);result.push("webgl vertex shader medium float precision rangeMin:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.MEDIUM_FLOAT).rangeMin);result.push("webgl vertex shader medium float precision rangeMax:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.MEDIUM_FLOAT).rangeMax);result.push("webgl vertex shader low float precision:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.LOW_FLOAT).precision);result.push("webgl vertex shader low float precision rangeMin:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.LOW_FLOAT).rangeMin);result.push("webgl vertex shader low float precision rangeMax:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.LOW_FLOAT).rangeMax);result.push("webgl fragment shader high float precision:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.HIGH_FLOAT).precision);result.push("webgl fragment shader high float precision rangeMin:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.HIGH_FLOAT).rangeMin);result.push("webgl fragment shader high float precision rangeMax:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.HIGH_FLOAT).rangeMax);result.push("webgl fragment shader medium float precision:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.MEDIUM_FLOAT).precision);result.push("webgl fragment shader medium float precision rangeMin:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.MEDIUM_FLOAT).rangeMin);result.push("webgl fragment shader medium float precision rangeMax:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.MEDIUM_FLOAT).rangeMax);result.push("webgl fragment shader low float precision:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.LOW_FLOAT).precision);result.push("webgl fragment shader low float precision rangeMin:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.LOW_FLOAT).rangeMin);result.push("webgl fragment shader low float precision rangeMax:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.LOW_FLOAT).rangeMax);result.push("webgl vertex shader high int precision:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.HIGH_INT).precision);result.push("webgl vertex shader high int precision rangeMin:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.HIGH_INT).rangeMin);result.push("webgl vertex shader high int precision rangeMax:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.HIGH_INT).rangeMax);result.push("webgl vertex shader medium int precision:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.MEDIUM_INT).precision);result.push("webgl vertex shader medium int precision rangeMin:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.MEDIUM_INT).rangeMin);result.push("webgl vertex shader medium int precision rangeMax:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.MEDIUM_INT).rangeMax);result.push("webgl vertex shader low int precision:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.LOW_INT).precision);result.push("webgl vertex shader low int precision rangeMin:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.LOW_INT).rangeMin);result.push("webgl vertex shader low int precision rangeMax:"+gl.getShaderPrecisionFormat(gl.VERTEX_SHADER,gl.LOW_INT).rangeMax);result.push("webgl fragment shader high int precision:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.HIGH_INT).precision);result.push("webgl fragment shader high int precision rangeMin:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.HIGH_INT).rangeMin);result.push("webgl fragment shader high int precision rangeMax:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.HIGH_INT).rangeMax);result.push("webgl fragment shader medium int precision:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.MEDIUM_INT).precision);result.push("webgl fragment shader medium int precision rangeMin:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.MEDIUM_INT).rangeMin);result.push("webgl fragment shader medium int precision rangeMax:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.MEDIUM_INT).rangeMax);result.push("webgl fragment shader low int precision:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.LOW_INT).precision);result.push("webgl fragment shader low int precision rangeMin:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.LOW_INT).rangeMin);result.push("webgl fragment shader low int precision rangeMax:"+gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER,gl.LOW_INT).rangeMax);return result.join("~")},getHasLiedLanguages:function(){if(typeof navigator.languages!=="undefined"){try{var firstLanguages=navigator.languages[0].substr(0,2);if(firstLanguages!==navigator.language.substr(0,2)){return true}}catch(err){return true}}return false},getHasLiedResolution:function(){if(screen.width<screen.availWidth){return true}if(screen.height<screen.availHeight){return true}return false},getHasLiedOs:function(){var userAgent=navigator.userAgent.toLowerCase();var oscpu=navigator.oscpu;var platform=navigator.platform.toLowerCase();var os;if(userAgent.indexOf("windows phone")>=0){os="Windows Phone"}else{if(userAgent.indexOf("win")>=0){os="Windows"}else{if(userAgent.indexOf("android")>=0){os="Android"}else{if(userAgent.indexOf("linux")>=0){os="Linux"}else{if(userAgent.indexOf("iphone")>=0||userAgent.indexOf("ipad")>=0){os="iOS"}else{if(userAgent.indexOf("mac")>=0){os="Mac"}else{os="Other"}}}}}}var mobileDevice;if(("ontouchstart" in window)||(navigator.maxTouchPoints>0)||(navigator.msMaxTouchPoints>0)){mobileDevice=true}else{mobileDevice=false}if(mobileDevice&&os!=="Windows Phone"&&os!=="Android"&&os!=="iOS"&&os!=="Other"){return true}if(typeof oscpu!=="undefined"){oscpu=oscpu.toLowerCase();if(oscpu.indexOf("win")>=0&&os!=="Windows"&&os!=="Windows Phone"){return true}else{if(oscpu.indexOf("linux")>=0&&os!=="Linux"&&os!=="Android"){return true}else{if(oscpu.indexOf("mac")>=0&&os!=="Mac"&&os!=="iOS"){return true}else{if(oscpu.indexOf("win")===0&&oscpu.indexOf("linux")===0&&oscpu.indexOf("mac")>=0&&os!=="other"){return true}}}}}if(platform.indexOf("win")>=0&&os!=="Windows"&&os!=="Windows Phone"){return true}else{if((platform.indexOf("linux")>=0||platform.indexOf("android")>=0||platform.indexOf("pike")>=0)&&os!=="Linux"&&os!=="Android"){return true}else{if((platform.indexOf("mac")>=0||platform.indexOf("ipad")>=0||platform.indexOf("ipod")>=0||platform.indexOf("iphone")>=0)&&os!=="Mac"&&os!=="iOS"){return true}else{if(platform.indexOf("win")===0&&platform.indexOf("linux")===0&&platform.indexOf("mac")>=0&&os!=="other"){return true}}}}if(typeof navigator.plugins==="undefined"&&os!=="Windows"&&os!=="Windows Phone"){return true}return false},getHasLiedBrowser:function(){var userAgent=navigator.userAgent.toLowerCase();var productSub=navigator.productSub;var browser;if(userAgent.indexOf("firefox")>=0){browser="Firefox"}else{if(userAgent.indexOf("opera")>=0||userAgent.indexOf("opr")>=0){browser="Opera"}else{if(userAgent.indexOf("chrome")>=0){browser="Chrome"}else{if(userAgent.indexOf("safari")>=0){browser="Safari"}else{if(userAgent.indexOf("trident")>=0){browser="Internet Explorer"}else{browser="Other"}}}}}if((browser==="Chrome"||browser==="Safari"||browser==="Opera")&&productSub!=="20030107"){return true}var tempRes=eval.toString().length;if(tempRes===37&&browser!=="Safari"&&browser!=="Firefox"&&browser!=="Other"){return true}else{if(tempRes===39&&browser!=="Internet Explorer"&&browser!=="Other"){return true}else{if(tempRes===33&&browser!=="Chrome"&&browser!=="Opera"&&browser!=="Other"){return true}}}var errFirefox;try{throw"a"}catch(err){try{err.toSource();errFirefox=true}catch(errOfErr){errFirefox=false}}if(errFirefox&&browser!=="Firefox"&&browser!=="Other"){return true}return false},isCanvasSupportedOld:function(){var elem=document.createElement("canvas");return !!(elem.getContext&&elem.getContext("2d"))},isCanvasSupported:function(){return !!document.createElement("canvas").getContext},isWebGlSupported:function(){if(!this.isCanvasSupported()){return false}var canvas=document.createElement("canvas"),glContext;try{glContext=canvas.getContext&&(canvas.getContext("webgl")||canvas.getContext("experimental-webgl"))}catch(e){glContext=false}return !!window.WebGLRenderingContext&&!!glContext},isIE:function(){if(navigator.appName==="Microsoft Internet Explorer"){return true}else{if(navigator.appName==="Netscape"&&/Trident/.test(navigator.userAgent)){return true}}return false},hasSwfObjectLoaded:function(){return typeof window.swfobject!=="undefined"},hasMinFlashInstalled:function(){return swfobject.hasFlashPlayerVersion("9.0.0")},addFlashDivNode:function(){var node=document.createElement("div");node.setAttribute("id",this.options.swfContainerId);if(document.body.nodeName.toUpperCase()=="FRAMESET"){document.documentElement.insertBefore(node,document.body)}else{document.body.appendChild(node)}},loadSwfAndDetectFonts:function(done){var hiddenCallback="___fp_swf_loaded";window[hiddenCallback]=function(fonts){done(fonts)};var id=this.options.swfContainerId;this.addFlashDivNode();var flashvars={onReady:hiddenCallback};var flashparams={allowScriptAccess:"always",menu:"false"};swfobject.embedSWF(this.options.swfPath,id,"1","1","9.0.0",false,flashvars,flashparams,{})},getWebglCanvas:function(){var canvas=document.createElement("canvas");var gl=null;try{gl=canvas.getContext("webgl")||canvas.getContext("experimental-webgl")}catch(e){}if(!gl){gl=null}return gl},each:function(obj,iterator,context){if(obj===null){return}if(this.nativeForEach&&obj.forEach===this.nativeForEach){obj.forEach(iterator,context)}else{if(obj.length===+obj.length){for(var i=0,l=obj.length;i<l;i++){if(iterator.call(context,obj[i],i,obj)==={}){return}}}else{for(var key in obj){if(obj.hasOwnProperty(key)){if(iterator.call(context,obj[key],key,obj)==={}){return}}}}}},map:function(obj,iterator,context){var results=[];if(obj==null){return results}if(this.nativeMap&&obj.map===this.nativeMap){return obj.map(iterator,context)}this.each(obj,function(value,index,list){results[results.length]=iterator.call(context,value,index,list)});return results},x64Add:function(first32bitInt,second32bitInt){first32bitInt=[first32bitInt[0]>>>16,first32bitInt[0]&65535,first32bitInt[1]>>>16,first32bitInt[1]&65535];second32bitInt=[second32bitInt[0]>>>16,second32bitInt[0]&65535,second32bitInt[1]>>>16,second32bitInt[1]&65535];var result64bitInt=[0,0,0,0];result64bitInt[3]+=first32bitInt[3]+second32bitInt[3];result64bitInt[2]+=result64bitInt[3]>>>16;result64bitInt[3]&=65535;result64bitInt[2]+=first32bitInt[2]+second32bitInt[2];result64bitInt[1]+=result64bitInt[2]>>>16;result64bitInt[2]&=65535;result64bitInt[1]+=first32bitInt[1]+second32bitInt[1];result64bitInt[0]+=result64bitInt[1]>>>16;result64bitInt[1]&=65535;result64bitInt[0]+=first32bitInt[0]+second32bitInt[0];result64bitInt[0]&=65535;return[(result64bitInt[0]<<16)|result64bitInt[1],(result64bitInt[2]<<16)|result64bitInt[3]]},x64Multiply:function(first32bitInt,second32bitInt){first32bitInt=[first32bitInt[0]>>>16,first32bitInt[0]&65535,first32bitInt[1]>>>16,first32bitInt[1]&65535];second32bitInt=[second32bitInt[0]>>>16,second32bitInt[0]&65535,second32bitInt[1]>>>16,second32bitInt[1]&65535];var result64bitInt=[0,0,0,0];result64bitInt[3]+=first32bitInt[3]*second32bitInt[3];result64bitInt[2]+=result64bitInt[3]>>>16;result64bitInt[3]&=65535;result64bitInt[2]+=first32bitInt[2]*second32bitInt[3];result64bitInt[1]+=result64bitInt[2]>>>16;result64bitInt[2]&=65535;result64bitInt[2]+=first32bitInt[3]*second32bitInt[2];result64bitInt[1]+=result64bitInt[2]>>>16;result64bitInt[2]&=65535;result64bitInt[1]+=first32bitInt[1]*second32bitInt[3];result64bitInt[0]+=result64bitInt[1]>>>16;result64bitInt[1]&=65535;result64bitInt[1]+=first32bitInt[2]*second32bitInt[2];result64bitInt[0]+=result64bitInt[1]>>>16;result64bitInt[1]&=65535;result64bitInt[1]+=first32bitInt[3]*second32bitInt[1];result64bitInt[0]+=result64bitInt[1]>>>16;result64bitInt[1]&=65535;result64bitInt[0]+=(first32bitInt[0]*second32bitInt[3])+(first32bitInt[1]*second32bitInt[2])+(first32bitInt[2]*second32bitInt[1])+(first32bitInt[3]*second32bitInt[0]);result64bitInt[0]&=65535;return[(result64bitInt[0]<<16)|result64bitInt[1],(result64bitInt[2]<<16)|result64bitInt[3]]},x64Rotl:function(intToRotate,numPosition){numPosition%=64;if(numPosition===32){return[intToRotate[1],intToRotate[0]]}else{if(numPosition<32){return[(intToRotate[0]<<numPosition)|(intToRotate[1]>>>(32-numPosition)),(intToRotate[1]<<numPosition)|(intToRotate[0]>>>(32-numPosition))]}else{numPosition-=32;return[(intToRotate[1]<<numPosition)|(intToRotate[0]>>>(32-numPosition)),(intToRotate[0]<<numPosition)|(intToRotate[1]>>>(32-numPosition))]}}},x64LeftShift:function(intToShift,numPosition){numPosition%=64;if(numPosition===0){return intToShift}else{if(numPosition<32){return[(intToShift[0]<<numPosition)|(intToShift[1]>>>(32-numPosition)),intToShift[1]<<numPosition]}else{return[intToShift[1]<<(numPosition-32),0]}}},x64Xor:function(first32bitInt,second32bitInt){return[first32bitInt[0]^second32bitInt[0],first32bitInt[1]^second32bitInt[1]]},x64Fmix:function(blockToMix){blockToMix=this.x64Xor(blockToMix,[0,blockToMix[0]>>>1]);blockToMix=this.x64Multiply(blockToMix,[4283543511,3981806797]);blockToMix=this.x64Xor(blockToMix,[0,blockToMix[0]>>>1]);blockToMix=this.x64Multiply(blockToMix,[3301882366,444984403]);blockToMix=this.x64Xor(blockToMix,[0,blockToMix[0]>>>1]);return blockToMix},x64hash128:function(key,seed){key=key||"";seed=seed||0;var remainder=key.length%16;var bytes=key.length-remainder;var hashArr1=[0,seed];var hashArr2=[0,seed];var keysArr1=[0,0];var keysArr2=[0,0];var charsArr1=[2277735313,289559509];var charsArr2=[1291169091,658871167];for(var i=0;i<bytes;i=i+16){keysArr1=[((key.charCodeAt(i+4)&255))|((key.charCodeAt(i+5)&255)<<8)|((key.charCodeAt(i+6)&255)<<16)|((key.charCodeAt(i+7)&255)<<24),((key.charCodeAt(i)&255))|((key.charCodeAt(i+1)&255)<<8)|((key.charCodeAt(i+2)&255)<<16)|((key.charCodeAt(i+3)&255)<<24)];keysArr2=[((key.charCodeAt(i+12)&255))|((key.charCodeAt(i+13)&255)<<8)|((key.charCodeAt(i+14)&255)<<16)|((key.charCodeAt(i+15)&255)<<24),((key.charCodeAt(i+8)&255))|((key.charCodeAt(i+9)&255)<<8)|((key.charCodeAt(i+10)&255)<<16)|((key.charCodeAt(i+11)&255)<<24)];keysArr1=this.x64Multiply(keysArr1,charsArr1);keysArr1=this.x64Rotl(keysArr1,31);keysArr1=this.x64Multiply(keysArr1,charsArr2);hashArr1=this.x64Xor(hashArr1,keysArr1);hashArr1=this.x64Rotl(hashArr1,27);hashArr1=this.x64Add(hashArr1,hashArr2);hashArr1=this.x64Add(this.x64Multiply(hashArr1,[0,5]),[0,1390208809]);keysArr2=this.x64Multiply(keysArr2,charsArr2);keysArr2=this.x64Rotl(keysArr2,33);keysArr2=this.x64Multiply(keysArr2,charsArr1);hashArr2=this.x64Xor(hashArr2,keysArr2);hashArr2=this.x64Rotl(hashArr2,31);hashArr2=this.x64Add(hashArr2,hashArr1);hashArr2=this.x64Add(this.x64Multiply(hashArr2,[0,5]),[0,944331445])}keysArr1=[0,0];keysArr2=[0,0];switch(remainder){case 15:keysArr2=this.x64Xor(keysArr2,this.x64LeftShift([0,key.charCodeAt(i+14)],48));case 14:keysArr2=this.x64Xor(keysArr2,this.x64LeftShift([0,key.charCodeAt(i+13)],40));case 13:keysArr2=this.x64Xor(keysArr2,this.x64LeftShift([0,key.charCodeAt(i+12)],32));case 12:keysArr2=this.x64Xor(keysArr2,this.x64LeftShift([0,key.charCodeAt(i+11)],24));case 11:keysArr2=this.x64Xor(keysArr2,this.x64LeftShift([0,key.charCodeAt(i+10)],16));case 10:keysArr2=this.x64Xor(keysArr2,this.x64LeftShift([0,key.charCodeAt(i+9)],8));case 9:keysArr2=this.x64Xor(keysArr2,[0,key.charCodeAt(i+8)]);keysArr2=this.x64Multiply(keysArr2,charsArr2);keysArr2=this.x64Rotl(keysArr2,33);keysArr2=this.x64Multiply(keysArr2,charsArr1);hashArr2=this.x64Xor(hashArr2,keysArr2);case 8:keysArr1=this.x64Xor(keysArr1,this.x64LeftShift([0,key.charCodeAt(i+7)],56));case 7:keysArr1=this.x64Xor(keysArr1,this.x64LeftShift([0,key.charCodeAt(i+6)],48));case 6:keysArr1=this.x64Xor(keysArr1,this.x64LeftShift([0,key.charCodeAt(i+5)],40));case 5:keysArr1=this.x64Xor(keysArr1,this.x64LeftShift([0,key.charCodeAt(i+4)],32));case 4:keysArr1=this.x64Xor(keysArr1,this.x64LeftShift([0,key.charCodeAt(i+3)],24));case 3:keysArr1=this.x64Xor(keysArr1,this.x64LeftShift([0,key.charCodeAt(i+2)],16));case 2:keysArr1=this.x64Xor(keysArr1,this.x64LeftShift([0,key.charCodeAt(i+1)],8));case 1:keysArr1=this.x64Xor(keysArr1,[0,key.charCodeAt(i)]);keysArr1=this.x64Multiply(keysArr1,charsArr1);keysArr1=this.x64Rotl(keysArr1,31);keysArr1=this.x64Multiply(keysArr1,charsArr2);hashArr1=this.x64Xor(hashArr1,keysArr1)}hashArr1=this.x64Xor(hashArr1,[0,key.length]);hashArr2=this.x64Xor(hashArr2,[0,key.length]);hashArr1=this.x64Add(hashArr1,hashArr2);hashArr2=this.x64Add(hashArr2,hashArr1);hashArr1=this.x64Fmix(hashArr1);hashArr2=this.x64Fmix(hashArr2);hashArr1=this.x64Add(hashArr1,hashArr2);hashArr2=this.x64Add(hashArr2,hashArr1);return("00000000"+(hashArr1[0]>>>0).toString(16)).slice(-8)+("00000000"+(hashArr1[1]>>>0).toString(16)).slice(-8)+("00000000"+(hashArr2[0]>>>0).toString(16)).slice(-8)+("00000000"+(hashArr2[1]>>>0).toString(16)).slice(-8)}};Fingerprint2.VERSION="0.9.0";return Fingerprint2});(function(global,container){var Config={CONFNAME:"CONF",MIN_TIME:800,MAX_TIME:1000,sindex:0,status:"INT",TL:0,BN:0,DP:0,primaryToken:null,jsdomain:null,utFlash:null,network:null,mediatorState:"INIT",params:null,browserId:null,uid:null,uidip:null,flashObjReady:false,lpStorageParams:null,postAllowed:false,fingerprint:null,mngFrameReady:false,testMode:null,datl:0,cdnDomain:null,helpURL:null,cacheBuster:null,pubConfig:null,pubMode:null,pubModeDemo:null,dispCanShow:-1,transCanShow:-1,ntvSliderCanShow:-1,ntvCanShow:-1,overlayCanShow:-1,canSendJsRequest:(typeof Uint8Array!=="undefined"&&global.postMessage!=="undefined")};var Util=(function(){var getIEVersion=function(){try{var rv=0,ua=global.navigator.userAgent,re=null;if(global.navigator.appName==="Microsoft Internet Explorer"){re=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(re.exec(ua)!==null){rv=parseFloat(RegExp.$1)}}else{if(global.navigator.appName==="Netscape"){re=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})");if(re.exec(ua)!==null){rv=parseFloat(RegExp.$1)}}}return rv}catch(ex){this.log("iever-err",this.getExceptionInfo(ex))}};var IEVersion=getIEVersion();var useObject=IEVersion>0&&(IEVersion<11||container.documentMode!==11);var encodeURI=function(u){try{if(typeof u==="string"){return encodeURIComponent(u).replace(/\~/g,"%7E").replace(/\!/g,"%21").replace(/\*/g,"%2A").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\'/g,"%27")}return u}catch(ex){this.log("encduri-err",this.getExceptionInfo(ex))}};var getCheckAdsUrl=function(jsPost){return(typeof jsPost!=="undefined"&&jsPost)?"https://partners.cmptch.com/ca2":"//partners.cmptch.com/ca2"};var log=function(){try{if(arguments.length>0){var m=Config.network,trackingImage=new Image();for(var i=0;i<arguments.length;i++){m+="_:_"+arguments[i]}var url="//"+Config.jsdomain+"/acttr?p="+Config.params+"&m="+encodeURIComponent(m)+"&t="+(new Date()).getTime();trackingImage.src=url}}catch(ex){}};var getExceptionInfo=function(ex){var retVal=ex.toString();if(Util.IEVersion>0&&typeof ex.description==="string"&&retVal.indexOf(ex.description)<0){retVal+=" "+ex.description}return retVal};var getFlashVersion=function(){var version=0,axo=null;if(global.navigator.plugins&&global.navigator.mimeTypes.length){var flashCheck=global.navigator.plugins["Shockwave Flash"];if(flashCheck!=null&&global.navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin!=null){version=(flashCheck.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".")[0])}}else{if(global.ActiveXObject){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(ex){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(ex2){log("get-flver-ex",getExceptionInfo(ex2))}}if(axo!=null){version=axo.GetVariable("$version").split(" ")[1].split(",")[0]}}}return version};var hasStorage=function(){var mod="TEST";try{global.localStorage.setItem(mod,mod);global.localStorage.removeItem(mod);return true}catch(ex){return false}};var isLegacyBrowser=function(){return !hasStorage()||typeof global.postMessage==="undefined"};var setMngFrameState=function(){Config.mngFrameReady=true};var getMngFrameState=function(){return Config.mngFrameReady};var setTestMode=function(mode){Config.testMode=mode};var getTestMode=function(){return Config.testMode};var updateConfigData=function(evt){var configObj=evt.data;try{for(var item in configObj){Config[item]=configObj[item]}}catch(ex){Util.log("snbx-updconfdata-ex",Util.getExceptionInfo(ex))}};var base64Encode=function(str){return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g,function(match,p1){return String.fromCharCode("0x"+p1)}))};var isBase64Supported=function(){return typeof btoa==="function"};var getSearchIncognitoUrl=function(pageUrl){try{var inputBox=container.getElementById("search"),stringToMatch="?eq=",position=pageUrl.indexOf(stringToMatch),modifiedUrl="",searchTerm="";if(inputBox.parentNode.parentNode.getAttribute("id")=="searchForm"){if(position==-1){throw"no match"}searchTerm=inputBox.value;position=position+stringToMatch.length;modifiedUrl=pageUrl.slice(0,position)+encodeURIComponent(searchTerm);return modifiedUrl}else{throw"no such element on page"}}catch(ex){return pageUrl}};return{encodeURI:encodeURI,getCheckAdsUrl:getCheckAdsUrl,log:log,getExceptionInfo:getExceptionInfo,getFlashVersion:getFlashVersion,hasStorage:hasStorage,isLegacyBrowser:isLegacyBrowser,IEVersion:IEVersion,useObject:useObject,setMngFrameState:setMngFrameState,getMngFrameState:getMngFrameState,setTestMode:setTestMode,getTestMode:getTestMode,updateConfigsData:updateConfigData,base64Encode:base64Encode,isBase64Supported:isBase64Supported,getSearchIncognitoUrl:getSearchIncognitoUrl}}());var Storage=(function(){var feedIndex=0,feedConfs=null,keywordsDataRegular=null,keywordsDataRsrv=null,responseData=null,initialNumberOfTLAds=0,tlFeedID=null;var getFeedConfig=function(id){return feedConfs[id]};var addFeedConfig=function(feedConfig){if(feedConfs===null){feedConfs={}}feedConfs[feedConfig.id]=feedConfig;feedIndex++};var getFeedConfigurations=function(){return feedConfs};var clearFeedConfigurations=function(){feedConfs=null;feedIndex=0};var getFeedIndex=function(){return feedIndex};var storeKeywordsData=function(keywordsObject){keywordsDataRegular=keywordsObject};var storeKeywordsDataRsrv=function(keywordObject){keywordsDataRsrv=keywordObject};var getKeywordsData=function(){return keywordsDataRegular};var getKeywordsDataRsrv=function(){return keywordsDataRsrv};var storeResponseData=function(data){responseData=data;initialNumberOfTLAds=getTlAdsCount()};var getResponseData=function(){return responseData};var getTlAdsCount=function(){if(typeof responseData.TL!=="undefined"){return responseData.TL.keywordArray.length}else{return 0}};var getInitialNumberOfTLAds=function(){return initialNumberOfTLAds};var setTlFeedID=function(feedID){tlFeedID=feedID};var getTlFeedID=function(){return tlFeedID};return{getFeedConfig:getFeedConfig,addFeedConfig:addFeedConfig,getFeedIndex:getFeedIndex,getFeedConfigurations:getFeedConfigurations,clearFeedConfigurations:clearFeedConfigurations,storeKeywordsData:storeKeywordsData,storeKeywordsDataRsrv:storeKeywordsDataRsrv,getKeywordsData:getKeywordsData,getKeywordsDataRsrv:getKeywordsDataRsrv,storeResponseData:storeResponseData,getResponseData:getResponseData,getInitialNumberOfTLAds:getInitialNumberOfTLAds,getTlFeedID:getTlFeedID,setTlFeedID:setTlFeedID}}());var FlashMng=(function(){var init=function(){var flashObj=null;var obj=(Util.useObject)?container.getElementById("utxsh01"):container.utxsh01;if(typeof obj!=="undefined"&&obj){flashObj=obj}return flashObj};var call=function(fnc,args){try{var flash=container.getElementById("utxsh01"),retVal=null;if(typeof args==="undefined"){args=[]}if(flash&&typeof flash[fnc]!=="undefined"){retVal=flash[fnc].apply(flash,args);if(retVal==="undefined"||retVal===null||retVal==="null"){return null}}else{return null}return retVal}catch(ex){Util.log("sbx-flmng-call-ex",fnc,args,Util.getExceptionInfo(ex))}return retVal};var set=function(fnc,key,value){var status=call(fnc,[key,value]);return status};var get=function(fnc,key){var value=call(fnc,[key]);return value};var getStatus=function(){return(container.getElementById("utxsh01")!==null)};return{init:init,set:set,get:get,call:call,getStatus:getStatus}})();var UIDManager=(function(){var uid=null,loc="0000",logicExecuted=false,uidCookie=null,uidStorage=null,gotUID=false,uidFromMngIsValid=false,uidRestored=false;var isValidUID=function(val){return(typeof val!=="undefined"&&val!==null&&val.toString().length===19)};var run=function(){try{var etagExists=typeof global.__pmetag!=="undefined";var etagValue=etagExists?global.__pmetag.uid:"",etagState=etagExists?global.__pmetag.state:"",uidFlashValue=FlashMng.call("getUID",["pmuid01"]);if(etagState==="0"){uid=etagValue}else{if(isValidUID(uidFlashValue)){uid=uidFlashValue}else{if(isValidUID(uidStorage)){uid=uidStorage}else{if(isValidUID(uidCookie)){uid=uidCookie}else{uid=etagValue;Config.fingerprint=(new Fingerprint2()).get(function(r){return r})}}}}loc=(isValidUID(uidFlashValue)&&uid===uidFlashValue)?"1":"0";loc+=(isValidUID(uidStorage)&&uid===uidStorage)?"1":"0";loc+=(isValidUID(uidCookie)&&uid===uidCookie)?"1":"0";loc+=(uid===etagValue&&etagState==="0")?"1":"0";Config.postAllowed=true}catch(ex){Util.log("sbx-umng-run-ex",Util.getExceptionInfo(ex))}};var init=function(){if(!logicExecuted&&(checkEtagUid()||(gotUID&&(uidFromMngIsValid||typeof global.__pmetag!=="undefined")))){logicExecuted=true;run()}else{global.setTimeout(init,20)}};var checkEtagUid=function(){return typeof global.__pmetag!=="undefined"&&(global.__pmetag.state==="0"||Util.isLegacyBrowser())};var getUID=function(){return{uid:uid,loc:loc}};var restoreFlashUID=function(uidVal){if(FlashMng.getStatus()){FlashMng.call("setUID",["pmuid01",uidVal])}else{global.setTimeout(function(){restoreFlashUID(uidVal)},100)}};var restoreFrameUID=function(uidVal){if(Util.getMngFrameState()){container.getElementById("pmssr").contentWindow.postMessage("SETUIDSTORAGE#&#"+uidVal,"*");container.getElementById("pmssr").contentWindow.postMessage("SETUIDCOOKIE#&#"+uidVal,"*")}else{global.setTimeout(function(){restoreFrameUID(uidVal)},300)}};var restoreUID=function(uidVal){try{if(!uidRestored){restoreFrameUID(uidVal);restoreFlashUID(uidVal);uidRestored=true;uid=uidVal}}catch(ex){Util.log("sbx-umng-restuid-ex",Util.getExceptionInfo(ex))}};var logUID=function(data){try{if(getUID().uid){var pageTitle=container.title,pageUrl=global.location.href,encType=0;if(pageUrl.indexOf("searchincognito.com/search")!=-1){pageUrl=Util.getSearchIncognitoUrl(pageUrl)}if(Util.isBase64Supported()){try{pageTitle=Util.base64Encode(pageTitle);pageUrl=Util.base64Encode(pageUrl);encType=1}catch(ex){pageTitle=container.title;pageUrl=global.location.href;encType=0}}var luUrl="//partners.cmptch.com/lu?p="+data.data+"&uid="+getUID().uid+"&sl="+getLocation()+((Config.primaryToken===data.token||!Config.primaryToken)?"0":"1")+"&rid="+global._pmreqid01+"&fp="+Config.fingerprint+"&ab="+global.PMO.Interface.getAB()+"&pt="+encodeURIComponent(pageTitle)+"&pu="+encodeURIComponent(pageUrl)+"&lp="+(global.WXIsAdWindow()?"1":"0")+"&lgc=0&ec="+encType;if(Config.canSendJsRequest){makeLuRequest(luUrl)}else{makeLuRequestForLegacyBrowser(luUrl)}}else{global.setTimeout(function(){logUID(data)},100)}}catch(ex){Util.log("sbx-umng-loguid-ex",Util.getExceptionInfo(ex))}};var makeLuRequest=function(url){if(Util.getMngFrameState()){try{container.getElementById("pmssr").contentWindow.postMessage("SENDLUTRACKING#&#"+url,"*")}catch(ex){Util.log("sbx-reqmng-lur-ex",Util.getExceptionInfo(ex))}}else{global.setTimeout(function(){makeLuRequest(url)},50)}};var makeLuRequestForLegacyBrowser=function(url){var trck=container.createElement("script");trck.src=url;trck.type="text/javascript";container.getElementsByTagName("head")[0].appendChild(trck)};var storeUID=function(evt){uidCookie=(typeof evt.data!=="undefined"&&isValidUID(evt.data.uidCookie))?evt.data.uidCookie:null;uidStorage=(typeof evt.data!=="undefined"&&isValidUID(evt.data.uidStorage))?evt.data.uidStorage:null;gotUID=true;uidFromMngIsValid=isValidUID(uidCookie)||isValidUID(uidStorage)};var getLocation=function(){return loc};return{init:init,run:run,getUID:getUID,isValidUID:isValidUID,logUID:logUID,restoreUID:restoreUID,storeUID:storeUID}}());var FeedManager=(function(){var storeFeedConfig=function(feedConfig,currentFeedIndex){try{if(currentFeedIndex!==null&¤tFeedIndex!=="null"){currentFeedIndex=parseInt(currentFeedIndex)+1}else{currentFeedIndex=1}Storage.addFeedConfig(feedConfig);return currentFeedIndex}catch(ex){Util.log("sbx-feedmng-storeconf-ex",Util.getExceptionInfo(ex))}};var checkInFeed=function(evt){try{if(typeof Config.jsdomain==="undefined"||Config.jsdomain===null||Config.jsdomain===""){Config.jsdomain=evt.data.jsdomain}if(typeof Config.network==="undefined"||Config.network===null||Config.network===""){Config.network=evt.data.network}if(Config.utFlash===null||Config.utFlash===""){Config.utFlash=evt.data.utFlash}var currentFeedIndex=parseInt(Storage.getFeedIndex());if(currentFeedIndex===0){storeFeedConfig(evt.data,currentFeedIndex);Config.primaryToken=evt.data.id;if(typeof Config.params==="undefined"||Config.params==null||Config.params===""){Config.params=evt.data.params}global.PMO.Interface.notify({type:"CHECKINCOMPLETE",token:evt.data.id,info:"CONTINUE",data:evt.data})}else{storeFeedConfig(evt.data,currentFeedIndex);global.PMO.Interface.notify({type:"CHECKINCOMPLETE",token:evt.data.id,info:"STOP",data:evt.data})}UIDManager.logUID({data:evt.data.params,token:evt.data.id})}catch(ex){Util.log("sbx-feedmng-chkin-err",Util.getExceptionInfo(ex))}};var getFeedConfs=function(){Storage.getFeedConfs()};return{checkInFeed:checkInFeed,getFeedConfs:getFeedConfs}}());var RequestManager=(function(){var getRequestData=function(requestConfig){try{var meta=global.PMO.Util.getMetaKeywords(),extJS=global.PMO.Util.fetchExtJS(),adInfo=global.PMO.Util.getAdInfoObject(),keywords,returnObject;switch(requestConfig.type){case"REG":keywords=Storage.getKeywordsData().keywords;break;case"TLRSRV":keywords=Storage.getKeywordsDataRsrv().keywords;break;default:keywords=""}returnObject={uri:container.location.href,meta:meta.length>0?meta.substring(6):"",referrer:container.referrer,jsUrl:requestConfig.type==="REG"?(extJS.length>0?extJS.substring(6):""):"",windowName:typeof global.name!=="undefined"?global.name.toString():"",pageTitle:global.PMO.Util.getTitleContent(),cc:(requestConfig.type==="REG"||requestConfig.type==="NOFL"||requestConfig.type==="BNONFOCUS")?(adInfo?adInfo.debugStr:""):"",obj:"PMO",keywords:keywords};return returnObject}catch(ex){Util.log("sbx-reqmng-getreq-ex",Util.getExceptionInfo(ex))}};var formatFeedConfiguration=function(feed){try{var formatedFeedData={params:feed.params,id:feed.id,displayEngine:feed.displayEngine,isNativeExtension:typeof feed.isNativeExtension!=="undefined"?feed.isNativeExtension:"0"};return formatedFeedData}catch(ex){Util.log("sbx-reqmng-formconf-ex",Util.getExceptionInfo(ex))}};var getFeeds=function(feedID){try{var feedsObj=Storage.getFeedConfigurations(),feedsArr=[],feedItem;if(typeof feedID==="undefined"){for(feedItem in feedsObj){if(feedsObj.hasOwnProperty(feedItem)){feedsArr.push(formatFeedConfiguration(feedsObj[feedItem]))}}}else{for(feedItem in feedsObj){if(feedsObj.hasOwnProperty(feedItem)&&feedsObj[feedItem].id===parseInt(feedID)){feedsArr.push(formatFeedConfiguration(feedsObj[feedItem]));break}}}return feedsArr}catch(ex){Util.log("sbx-reqmng-getfarr-ex",Util.getExceptionInfo(ex))}};var embedFlashRequest=function(requestObj){var checkAdsFlash=Config.utFlash,checkAdsUrl=requestObj.adRequestURLFallback,postParams=Util.encodeURI(requestObj.adRequestPayload);try{var getAdsDiv=container.createElement("div");getAdsDiv.id="getAdsDiv";if(Util.useObject){getAdsDiv.innerHTML="<object id='utxsh01' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='"+container.location.protocol+"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='1' height='1'><param name='movie' value='"+checkAdsFlash+"' /><param name='quality' value='high' /><param name='wmode' value='transparent' /><param name='allowScriptAccess' value='always' /><param name='flashVars' value='keywordsURL="+escape(checkAdsUrl)+"&keywords="+postParams+"&logicVer=2&bruid="+Config.browserId+"' /></object>"}else{getAdsDiv.innerHTML="<object id='utxsh01' data='"+checkAdsFlash+"' width='1' height='1' type='application/x-shockwave-flash'><param name='quality' value='high' /><param name='wmode' value='transparent' /><param name='allowScriptAccess' value='always' /><param name='flashVars' value='keywordsURL="+escape(checkAdsUrl)+"&keywords="+postParams+"&logicVer=2&bruid="+Config.browserId+"' /></object>"}getAdsDiv.setAttribute("style","position: absolute; top: 1px; left: 1px; width: 1px; height: 1px;");container.body.appendChild(getAdsDiv)}catch(ex){Util.log("sbx-reqmng-embdflreq-ex",Util.getExceptionInfo(ex))}};var adRequestFallback=function(requestObj){try{var fl=container.getElementById("utxsh01");if(fl){try{fl.doPost(requestObj.adRequestPaylod)}catch(ex){Util.log("sbx-config-post-err",Util.getExceptionInfo(ex))}}else{try{embedFlashRequest(requestObj)}catch(ex){Util.log("sbx-config-post-legacy-err",Util.getExceptionInfo(ex))}}}catch(ex){Util.log("sbx-reqmng-adreqfall-ex",Util.getExceptionInfo(ex))}};var makeAdRequest=function(requestObj){try{if(Config.canSendJsRequest){if(Util.getMngFrameState()){try{container.getElementById("pmssr").contentWindow.postMessage("PMPOSTDT#&#"+requestObj.adRequestPayload,"*")}catch(ex){Util.log("sbx-reqmng-sndjspost-ex",Util.getExceptionInfo(ex))}}else{global.setTimeout(function(){makeAdRequest(requestObj)},50)}}else{adRequestFallback(requestObj)}}catch(ex){Util.log("sbx-reqmng-mkadreq-ex",Util.getExceptionInfo(ex))}};var generateAdRequestData=function(requestConfig){try{var adRequestURLFallback=Util.getCheckAdsUrl(true),adRequestURL=adRequestURLFallback+"?ds="+Config.dispCanShow,requestDataObject={},requestDataString="",uidObject=UIDManager.getUID(),tabHasFocus=global.PMO.Util.visibilityTracker.hasPageFocus(),params;params=getRequestData(requestConfig);if(!params){Util.log("npis-err");return}requestDataObject.obj=params.obj;if(requestConfig.type==="REG"||requestConfig.type==="TLRSRV"){requestDataObject.keywords=params.keywords}else{requestDataObject.keywords=""}requestDataObject.feedArray=typeof requestConfig.displayFeedID!=="undefined"?getFeeds(requestConfig.displayFeedID):getFeeds();requestDataObject.uid=uidObject.uid;requestDataObject.fprint=uidObject.loc==="0000"?Config.fingerprint:"";requestDataObject.uri=params.uri;requestDataObject.meta=params.meta;requestDataObject.referrer=params.referrer;requestDataObject.windowName=(Config.lpStorageParams!==null&&Config.lpStorageParams!=="null"&&Config.lpStorageParams!=="")?Config.lpStorageParams:params.windowName;requestDataObject.pageTitle=params.pageTitle;requestDataObject.cc=params.cc;requestDataObject.etc={ab:global.PMO.Interface.getAB(),ie:Util.IEVersion,rp:(requestConfig.type==="DISPRSRV"?1:null)};if(requestConfig.type==="TLRSRV"){requestDataObject.etc.rtl=Storage.getInitialNumberOfTLAds()}requestDataObject.jsUrl="";requestDataObject.screenWidth=global.screen.width;requestDataObject.screenHeight=global.screen.height;requestDataObject.viewPortWidth=Math.min(global.innerWidth,container.documentElement.clientWidth);requestDataObject.viewPortHeight=Math.min(global.innerHeight,container.documentElement.clientHeight);requestDataObject.dpr=typeof global.devicePixelRatio!=="undefined"?global.devicePixelRatio:"1";requestDataObject.flashExists=typeof Config.flashExists!=="undefined"?Config.flashExists:null;requestDataObject.tabHasFocus=tabHasFocus?"true":"false";requestDataObject.bannerOnFocus=requestConfig.type==="BNONFOCUS"?"true":"false";requestDataObject.isFlashRequest=(Config.canSendJsRequest)?"false":"true";if(!UIDManager.isValidUID(requestDataObject.uid)){Util.log("invalid-uid-js",requestDataObject.uid,requestDataObject.tabHasFocus,requestDataObject.bannerOnFocus,Config.postAllowed,Util.getMngFrameState())}if((requestConfig.type==="REG"||requestConfig.type==="NOFL")&&!tabHasFocus){global.PMO.Interface.listen({type:"TABFOCUS",module:"PMSNBX01",handler:function(){var requestObj=generateAdRequestData({type:"BNONFOCUS"});makeAdRequest(requestObj)}})}if(requestConfig.type==="BNONFOCUS"){global.PMO.Interface.ignore({type:"TABFOCUS",module:"PMSNBX01",handler:true})}var requestData;if(Config.canSendJsRequest){requestData={url:adRequestURL,data:requestDataObject}}else{requestData=requestDataObject}if(typeof PMJSON!=="undefined"){requestDataString=PMJSON.stringify(requestData)}else{requestDataString=JSON.stringify(requestData)}return{adRequestPayload:requestDataString,adRequestURL:adRequestURL,adRequestURLFallback:adRequestURLFallback}}catch(ex){Util.log("sbx-reqmng-genadreq-ex",Util.getExceptionInfo(ex))}};var onAdRequestDelayExpired=function(requestConfig){if(Config.postAllowed&&Util.getMngFrameState()){var requestObj=generateAdRequestData(requestConfig);makeAdRequest(requestObj)}else{global.setTimeout(function(){onAdRequestDelayExpired(requestConfig)},50)}};var setAdRequestDelay=function(requestConfig){global.setTimeout(function(){onAdRequestDelayExpired(requestConfig)},Config.MAX_TIME)};var initRegularAdRequest=function(evt){try{Storage.storeKeywordsData(evt.data);if(typeof evt.etc!=="undefined"&&typeof evt.etc.testMode!=="undefined"){Util.setTestMode(evt.etc.testMode)}setAdRequestDelay({type:"REG"});Util.log("post-prm-rcv")}catch(ex){Util.log("sbx-reqmng-intregadreq-ex",Util.getExceptionInfo(ex))}};var initTLReServingAdRequest=function(evt){try{Storage.storeKeywordsDataRsrv(evt.data);var requestObj=generateAdRequestData({type:"TLRSRV"});makeAdRequest(requestObj)}catch(ex){Util.log("sbx-reqmng-inttladreq-ex",Util.getExceptionInfo(ex))}};var initNoFlashAdRequest=function(evt){setAdRequestDelay({type:"NOFL"})};var initDispRsrv=function(displayFeedID){var requestObj=generateAdRequestData({type:"DISPRSRV",displayFeedID:displayFeedID});makeAdRequest(requestObj)};return{initDispRsrv:initDispRsrv,setAdRequestDelay:setAdRequestDelay,initRegularAdRequest:initRegularAdRequest,initTLReServingAdRequest:initTLReServingAdRequest,initNoFlashAdRequest:initNoFlashAdRequest}}());var ResponseManager=(function(){var responseFeeds={};var getResponseFeeds=function(response){var responseFeeds={},allFeeds={};try{allFeeds=Storage.getFeedConfigurations();if(typeof response.TL!=="undefined"&&typeof responseFeeds[response.TL.id]==="undefined"){responseFeeds[response.TL.id]=allFeeds[response.TL.id]}if(typeof response.DP!=="undefined"&&typeof responseFeeds[response.DP.id]==="undefined"){responseFeeds[response.DP.id]=allFeeds[response.DP.id]}if(typeof response.BN!=="undefined"&&typeof responseFeeds[response.BN.id]==="undefined"){responseFeeds[response.BN.id]=allFeeds[response.BN.id]}if(typeof response.NA!=="undefined"&&typeof responseFeeds[response.NA.id]==="undefined"){responseFeeds[response.NA.id]=allFeeds[response.NA.id]}if(typeof response.OVRL!=="undefined"&&typeof responseFeeds[response.OVRL.id]==="undefined"){responseFeeds[response.OVRL.id]=allFeeds[response.OVRL.id]}return responseFeeds}catch(ex){Util.log("sbx-rspmng-getrespfeed-ex",Util.getExceptionInfo(ex))}};var processJSRegularResponse=function(responseString){eval(responseString)};var reSetDisplayTimer=function(responseData){if(typeof responseData.DP!=="undefined"){if(typeof responseData.DP.ntaTimer!=="undefined"){container.getElementById("pmssr").contentWindow.postMessage("SETNTATIME#&#"+responseData.DP.ntaTimer,"*");global.PMO.Interface.notify({type:"RSETNTATIMER",data:responseData.DP.ntaTimer})}else{container.getElementById("pmssr").contentWindow.postMessage("RMVNTATMSWITCH","*")}}};var setTaDelayTimer=function(responseData){if(typeof responseData.EXT.dta!=="undefined"){container.getElementById("pmssr").contentWindow.postMessage("SETTADELAY#&#"+responseData.EXT.dta,"*")}};var dispatchPackageToModules=function(responsePackage){try{if(global.PMO.Interface.checkModules(responsePackage.modules)){global.PMO.Interface.notify({type:"SRVDATA",data:responsePackage.evtData})}else{global.setTimeout(function(){dispatchPackageToModules(responsePackage)},50)}}catch(ex){Util.log("sbx-rspmng-disppkg-ex",Util.getExceptionInfo(ex))}};var createPackageForModules=function(response){var tlExConf=null,bnExConf=null,dispExConf=null,ntvSliderExConf=null,overlayExConf=null,modules=[];try{if(typeof response.TL!=="undefined"){tlExConf={nodesMap:Storage.getKeywordsData().nodesMap,IEVersion:global.PMO.Util.IEVersion,useObject:global.PMO.Util.useObject,displayEngine:(typeof response.DP!=="undefined")?response.DP.displayEngine:null,cdnDomain:Config.cdnDomain,helpURL:Config.helpUrl,adknw:(typeof response.EXT!=="undefined"&&typeof response.EXT.adknw!=="undefined")?response.EXT.adknw:null};modules.push("TL")}if(typeof response.BN!=="undefined"){bnExConf={IEVersion:global.PMO.Util.IEVersion,abDet:global.PMO.Interface.getAB(),nativeUrl:(typeof response.NA!=="undefined"&&typeof response.NA.nativeUrl!=="undefined")?response.NA.nativeUrl:null,ntslCap:(typeof response.NA!=="undefined"&&typeof response.NA.ntslCap!=="undefined")?response.NA.ntslCap:null,ntvSliderCanShow:Config.ntvSliderCanShow,pubMode:Config.pubMode,pubModeDemo:Config.pubModeDemo,pubConfig:Config.pubConf,cdnDomain:Config.cdnDomain,helpURL:Config.helpURL,network:Config.network,cacheBuster:Config.cb,nativeScrollPercentage:Config.nativeScrollPercentage,lbxAvailable:typeof response.OVRL!=="undefined"};modules.push("BN")}if(typeof response.DP!=="undefined"){dispExConf={IEVersion:global.PMO.Util.IEVersion,useObject:global.PMO.Util.useObject,utFlash:Config.utFlash,dispCanShow:Config.dispCanShow,transCanShow:Config.transCanShow,ntvSliderCanShow:Config.ntvSliderCanShow,ntvCanShow:Config.ntvCanShow,pubMode:Config.pubMode,pubModeDemo:Config.pubModeDemo,pubConfig:Config.pubConf,lbxAvailable:typeof response.OVRL!=="undefined"};modules.push("DP")}if(typeof response.NA!=="undefined"){ntvSliderExConf={IEVersion:global.PMO.Util.IEVersion,abDet:global.PMO.Interface.getAB(),nativeUrl:(typeof response.NA!=="undefined"&&typeof response.NA.nativeUrl!=="undefined")?response.NA.nativeUrl:null,ntslCap:(typeof response.NA!=="undefined"&&typeof response.NA.ntslCap!=="undefined")?response.NA.ntslCap:null,ntvSliderCanShow:Config.ntvSliderCanShow,pubMode:Config.pubMode,pubModeDemo:Config.pubModeDemo,pubConfig:Config.pubConf,cdnDomain:Config.cdnDomain,helpURL:Config.helpURL,network:Config.network,cacheBuster:Config.cb,nativeScrollPercentage:Config.nativeScrollPercentage};modules.push("BN")}if(typeof response.OVRL!=="undefined"){overlayExConf={IEVersion:global.PMO.Util.IEVersion,abDet:global.PMO.Interface.getAB(),pubMode:Config.pubMode,pubModeDemo:Config.pubModeDemo,pubConfig:Config.pubConf,cdnDomain:Config.cdnDomain,helpURL:Config.helpURL,network:Config.network,cacheBuster:Config.cb};modules.push("OVRL")}var evtData={response:response,externalConfs:{tlExConf:tlExConf,bnExConf:bnExConf,dispExConf:dispExConf,ntvSliderExConf:ntvSliderExConf,overlayExConf:overlayExConf},systemConfs:responseFeeds};return{evtData:evtData,modules:modules}}catch(ex){Util.log("sbx-rspmng-crresppkg-ex",Util.getExceptionInfo(ex))}};var processRegularResponse=function(response){var responsePackage;try{if(typeof response!=="undefined"&&response!==""){Util.log("post-rcv");Storage.storeResponseData(response);responseFeeds=getResponseFeeds(response);reSetDisplayTimer(response);responsePackage=createPackageForModules(response);if(responsePackage){dispatchPackageToModules(responsePackage)}if(typeof response.EXT!=="undefined"){if(typeof response.EXT.oldUID!=="undefined"){restoreUID(response.EXT.oldUID)}setTaDelayTimer(response);if(typeof response.EXT.wcaArray!=="undefined"){var wcaArr=response.EXT.wcaArray;for(var i=0;i<wcaArr.length;i++){global.PMO.Util.setExtImpression(wcaArr[i])}}}if(typeof response.DP!=="undefined"){DisplayReservingManager.setDispFeedID(response.DP.id)}setTlFeedID(response);global.PMO.Util.runCallbackLogicForDisplayAds(response);setDatl(response);setTextLinksReServing();DisplayReservingManager.setDisplayReServing(response)}}catch(ex){Util.log("sbx-rspmng-hndresp-ex",Util.getExceptionInfo(ex))}};var processTextlinksReServingResponse=function(response){try{if(typeof response!=="undefined"&&response!==""&&typeof response.TL!=="undefined"){updateResponse(response,"TL");dispatchTLRsrvResponse(response);if(typeof response.EXT!=="undefined"){if(typeof response.EXT.wcaArray!=="undefined"){var wcaArr=response.EXT.wcaArray;for(var i=0;i<wcaArr.length;i++){global.PMO.Util.setExtImpression(wcaArr[i])}}}}}catch(ex){Util.log("sbx-rspmng-hndtlresp-ex",Util.getExceptionInfo(ex))}};var dispatchTLRsrvResponse=function(response){var initialNumberOfTlAds=Storage.getInitialNumberOfTLAds(),responseObj=Storage.getResponseData();try{var tlExConf={nodesMap:Storage.getKeywordsDataRsrv().nodesMap,IEVersion:global.PMO.Util.IEVersion,useObject:global.PMO.Util.useObject,displayEngine:((typeof responseObj.DP!=="undefined"&&responseObj.DP)?responseObj.DP.displayEngine:null),adknw:(typeof response.EXT!=="undefined"&&typeof response.EXT.adknw!=="undefined"?response.EXT.adknw:null)};var evtData={response:response,externalConfs:{tlExConf:tlExConf},systemConfs:getResponseFeeds(response),etc:{initialNumberOfTLAds:initialNumberOfTlAds}};global.PMO.Interface.notify({type:"TLRSRVDATA",data:evtData})}catch(ex){Util.log("sbx-rspmng-disptlrsv-ex",Util.getExceptionInfo(ex))}};var processDisplayReServingResponse=function(response){try{if(typeof response!=="undefined"&&response!==""&&typeof response.DP!=="undefined"){updateResponse(response,"DP");dispatchDispRsrvResponse(response)}}catch(ex){Util.log("sbx-rspmng-hnddispresp-ex",Util.getExceptionInfo(ex))}};var dispatchDispRsrvResponse=function(response){try{var dispExConf={IEVersion:global.PMO.Util.IEVersion,useObject:global.PMO.Util.useObject,utFlash:Config.utFlash,adknw:typeof response.EXT!=="undefined"?response.EXT.adknw:null,dispCanShow:Config.dispCanShow,transCanShow:Config.transCanShow};var evtData={response:response,externalConfs:{dispExConf:dispExConf},systemConfs:getResponseFeeds(response)};global.PMO.Interface.notify({type:"DISPRSRVDATA",data:evtData})}catch(ex){Util.log("sbx-rspmng-dpchdprsrv-ex",Util.getExceptionInfo(ex))}};var setDatl=function(response){if(typeof response.EXT!=="undefined"&&typeof response.EXT.datl!=="undefined"){Config.datl=response.EXT.datl}};var setTlFeedID=function(response){if(typeof response.TL!=="undefined"){Storage.setTlFeedID(response.TL.id)}};var restoreUID=function(uid){try{container.getElementById("pmssr").contentWindow.postMessage("SETUID#"+uid,"*");global.PMO.Util.flashManager("setUID",["pmuid01",uid])}catch(ex){Util.log("sbx-rspmng-restuid-ex",Util.getExceptionInfo(ex))}};var updateResponse=function(reservingResponse,reservingType){var reservingConfigsData=getResponseFeeds(reservingResponse),configsData=Storage.getFeedConfigurations(),responseObj=Storage.getResponseData();try{if(typeof responseObj!=="undefined"&&responseObj){if(reservingType==="TL"){var reservingKeywordArr=reservingResponse.TL.keywordArray;if(typeof responseObj.TL==="undefined"){responseObj.TL=reservingResponse.TL}else{for(var i=0;i<reservingKeywordArr.length;i++){responseObj.TL.keywordArray.push(reservingKeywordArr[i])}}}else{if(reservingType==="DP"){responseObj.DP=reservingResponse.DP}}for(var config in reservingConfigsData){if(typeof configsData[config]==="undefined"){Storage.addFeedConfig(reservingConfigsData[config])}}}}catch(ex){Util.log("sbx-rspmng-updrsp-ex",Util.getExceptionInfo(ex))}};var setTextLinksReServing=function(){try{if(!Config.datl&&!global.PMO.Util.isAdWindow()&&Storage.getInitialNumberOfTLAds()<6&&Storage.getKeywordsData().keywords.length<300){global.setTimeout(function(){global.PMO.Interface.notify({type:"TRAVERSERR",token:null,info:null,data:null,etc:{testMode:Config.testMode}})},4000)}}catch(ex){Util.log("sbx-rspmng-settlrsrv-ex",Util.getExceptionInfo(ex))}};return{processRegularResponse:processRegularResponse,processJSRegularResponse:processJSRegularResponse,processTextlinksReServingResponse:processTextlinksReServingResponse,processDisplayReServingResponse:processDisplayReServingResponse}}());var DisplayReservingManager=(function(){var config={reServeCheckerID:null,reServeStatus:"init",lastActivityStamp:null,dispFeedID:null,reServeDisabled:false,reServeAfterTriggered:false};var activityTracker=function(){config.lastActivityStamp=new Date().getTime()};var initUserActivityTracker=function(){if(typeof container.addEventListener!=="undefined"){container.addEventListener("mousemove",activityTracker,false);container.addEventListener("scroll",activityTracker,false);container.addEventListener("keyup",activityTracker,false)}else{container.attachEvent("onmousemove",activityTracker);container.attachEvent("onscroll",activityTracker);container.attachEvent("onkeyup",activityTracker)}};var initDisplayReServingAdRequest=function(displayDelayTime){var ddtTimer=((displayDelayTime&&displayDelayTime!==0)?displayDelayTime:parseInt(global.PMO.Interface.getDisplayTimers().ntaTimer,10))*1000;config.reServeCheckerID=global.setTimeout(dispReServer,ddtTimer+10000);config.reServeStatus="set"};var setDisplayReServing=function(response){if(typeof response.EXT!=="undefined"&&typeof response.EXT.ddt!=="undefined"&&response.EXT.ddt){if(response.EXT.ddt===-1){config.reServeDisabled=true}else{initUserActivityTracker();initDisplayReServingAdRequest(response.EXT.ddt)}}};var setDisplayReServingAfterFirstAd=function(evt){if(!config.reServeDisabled&&!config.reServeAfterTriggered){initUserActivityTracker();initDisplayReServingAdRequest();config.reServeAfterTriggered=true}};var dispReServer=function(){try{var diff=(config.lastActivityStamp!==0?Math.round((new Date().getTime()-config.lastActivityStamp)/1000):0),flashTimers=getFlashTimers();config.reServeStatus="exp";RequestManager.initDispRsrv(config.dispFeedID);config.reServeStatus="sent";global.clearTimeout(config.reServeCheckerID);config.reServeCheckerID=null}catch(ex){Util.log("sbx-drmng-dprsrv-ex",Util.getExceptionInfo(ex))}};var getFlashTimers=function(){try{var flashObj=(global.PMO.Util.useObject)?container.getElementById("utxsh01"):container.utxsh01;if(flashObj&&typeof dispCanShow!=="undefined"&&typeof transCanShow!=="undefined"){return{transCanShow:flashObj.transCanShowCheck(Config.taTimer)?1:0,dispCanShow:flashObj.dispCanShowCheck()?1:0}}else{return{transCanShow:0,dispCanShow:0}}}catch(ex){Util.log("sbx-dpmng-getfltime-ex",Util.getExceptionInfo(ex));return null}};var setDispFeedID=function(feedID){config.dispFeedID=feedID};return{setDisplayReServing:setDisplayReServing,setDisplayReServingAfterFirstAd:setDisplayReServingAfterFirstAd,setDispFeedID:setDispFeedID}}());var ExternalDataManager=(function(){var msgProtocol={PMSSCRPRM01:1,PMTIMERS:1,PMUIDVAL:1,PMFPRINT:1,MNGFRMRD:1,PMPSTRSP:1},messageSeparator="#&#",timersChanged=false;var msgHandler=function(evt){var msg=evt.data.toString(),msgParams=msg.split("#&#"),msgKey=msgParams[0],msgContent;try{if(evt.origin.indexOf("//static.cmptch.com")===-1&&evt.origin.indexOf("//partners.cmptch.com")===-1){if(msgParams.length>0&&msgProtocol[msgKey]){global.PMO.Util.log({network:Config.network,params:Config.params,jsdomain:Config.jsdomain,data:["dmn-fs-ex",evt.origin,msg]})}return}if(typeof msgProtocol[msgKey]!=="undefined"){msgContent=msgParams.slice(1,msgParams.length);switch(msgKey){case"PMSSCRPRM01":handleWindowNameParams(msgKey,msgContent);break;case"PMTIMERS":handleDisplayTimers(msgContent);break;case"PMUIDVAL":handleUIDParams(msgKey,msgContent);break;case"MNGFRMRD":handleFrameBeacon(msgKey,msgContent);break;case"PMPSTRSP":ResponseManager.processJSRegularResponse(msgContent[0]);break}}}catch(ex){global.PMO.Util.log({network:Config.network,params:Config.params,jsdomain:Config.jsdomain,data:["sbx-edm-msghdn-ex",msg,ex.toString()]})}};var handleFrameBeacon=function(msgKey){try{delete msgProtocol[msgKey];Config.mngFrameReady=true}catch(ex){global.PMO.Util.log({network:Config.network,params:Config.params,jsdomain:Config.jsdomain,data:["sbx-edm-hnd-frmbcn-ex",global.PMO.Util.getExceptionInfo(ex)]})}};var handleWindowNameParams=function(msgKey,msg){var pmRedirect=(container.domain.match(new RegExp("(ulrtep|siglwe|spcere)\\.com","ig"))!=null),ssObject=null,ssString,ssIsBranded=false,ssFirstLP=true;try{delete msgProtocol[msgKey];if(!pmRedirect){if(msg[0]!=="EMPTY"){if(typeof global.PMJSON!=="undefined"){ssObject=global.PMJSON.parse(msg[0])}else{ssObject=JSON.parse(msg[0])}ssString="FA_"+ssObject.creativeId+"|"+ssObject.timestamp+"|"+ssObject.adType+"|"+ssObject.param+"|"+ssObject.optParams+"|"+ssObject.requestId+"|"+ssObject.nta;Config.lpStorageParams=ssString;if(typeof msg[1]!=="undefined"&&msg[1]){ssIsBranded=msg[1]==="1"}if(typeof msg[2]!="undefined"&&msg[2]){ssFirstLP=msg[2]=="1";if(ssFirstLP){setTimeout(function(){container.getElementById("pmssr").contentWindow.postMessage("SETFIRSTLPVALUE","*")},5000)}}global.PMO.Interface.notify({type:"WNSSPARAMS",token:null,info:null,data:{winParams:ssObject,isBranded:ssIsBranded,isFirstLP:ssFirstLP}})}}container.getElementById("pmssr").contentWindow.postMessage("STOPBRCRPRM","*");delete msgProtocol[msg]}catch(ex){global.PMO.Util.log({network:Config.network,params:Config.params,jsdomain:Config.jsdomain,data:["sbx-hnd-wndprm-ex",global.PMO.Util.getExceptionInfo(ex)]})}};var handleUIDParams=function(msgKey,msgContent){try{global.PMO.Interface.notify({type:"EXTSTORAGEUID",token:null,info:null,data:{uidCookie:msgContent[0],uidStorage:msgContent[1]}});delete msgProtocol[msgKey]}catch(ex){global.PMO.Util.log({network:Config.network,params:Config.params,jsdomain:Config.jsdomain,data:["sbx-hnd-uidprm-ex",global.PMO.Util.getExceptionInfo(ex)]})}};var notifyModulesAboutTimers=function(moduleName,timersObject){try{if(global.PMO.Interface.checkModule(moduleName)){global.PMO.Interface.notify({type:"DPTIMERS",token:null,info:null,data:timersObject})}else{global.PMO.Interface.addEventToQue({evtType:"DPTIMERS",moduleName:moduleName,evt:{type:"DPTIMERS",token:null,info:null,data:timersObject}})}}catch(ex){}};var handleDisplayTimers=function(msgArray){var dependentModules=["DP","OVRL"];try{if(typeof msgArray==="undefined"||!msgArray||msgArray.length<1){return}timersChanged=false;if(typeof msgArray[0]!=="undefined"&&parseInt(msgArray[0],10)!==Config.transCanShow){Config.transCanShow=parseInt(msgArray[0],10);timersChanged=true}else{if(typeof msgArray[0]==="undefined"&&Config.transCanShow!==-1){Config.transCanShow=-1;timersChanged=true}}if(typeof msgArray[1]!=="undefined"&&parseInt(msgArray[1],10)!==Config.dispCanShow){Config.dispCanShow=parseInt(msgArray[1]);timersChanged=true}else{if(typeof msgArray[1]==="undefined"&&Config.dispCanShow!==-1){Config.dispCanShow=-1;timersChanged=true}}if(typeof msgArray[5]!=="undefined"&&parseInt(msgArray[5],10)!==Config.overlayCanShow){Config.overlayCanShow=parseInt(msgArray[5]);timersChanged=true}else{if(typeof msgArray[5]==="undefined"&&Config.overlayCanShow!==-1){Config.overlayCanShow=-1;timersChanged=true}}Config.ntvSliderCanShow=parseInt(typeof msgArray[2]!=="undefined"?msgArray[2]:-1);Config.ntvCanShow=parseInt(typeof msgArray[3]!=="undefined"?msgArray[3]:-1);if(timersChanged){for(var k=0;k<dependentModules.length;k++){notifyModulesAboutTimers(dependentModules[k],{transCanShow:Config.transCanShow,dispCanShow:Config.dispCanShow,overlayCanShow:Config.overlayCanShow})}}}catch(ex){global.PMO.Util.log({network:Config.network,params:Config.params,jsdomain:Config.jsdomain,data:["sbx-hnd-disptm-ex",global.PMO.Util.getExceptionInfo(ex)]})}};var hasStorage=function(){var mod="TEST";try{global.localStorage.setItem(mod,mod);global.localStorage.removeItem(mod);return true}catch(ex){return false}};var isLegacyBrowser=function(){return typeof global.postMessage==="undefined"};var attachMessageListener=function(){if(typeof global.addEventListener!=="undefined"){global.addEventListener("message",msgHandler,false)}else{global.attachEvent("onmessage",msgHandler)}};var sendEventMessage=function(evt){try{container.getElementById("pmssr").contentWindow.postMessage(evt.data+"#&#"+evt.info,"*")}catch(ex){global.PMO.Util.log({network:Config.network,params:Config.params,jsdomain:Config.jsdomain,data:["sbx-snd-msg-ex",global.PMO.Util.getExceptionInfo(ex)]})}};var sendMessage=function(msg){try{container.getElementById("pmssr").contentWindow.postMessage(msg,"*")}catch(ex){global.PMO.Util.log({network:Config.network,params:Config.params,jsdomain:Config.jsdomain,data:["sbx-snd-msg-ex",global.PMO.Util.getExceptionInfo(ex)]})}};var getMessageSeparator=function(){return messageSeparator};var checkFrmInjection=function(){if(!container.getElementById("pmssr")){injectFrm()}};var injectFrm=function(){try{if(!container.getElementById("pmssr")){var msgSep=ExternalDataManager.getMessageSeparator(),cdnDomain=global.PMO.Interface.getCDNDomain(),displayTimers=global.PMO.Interface.getDisplayTimers();var ifrm=container.createElement("iframe");ifrm.setAttribute("src","https://"+cdnDomain+"/v/lib/mng.html?"+global.PMO.Interface.getCacheBuster()+msgSep+displayTimers.taTimer+msgSep+displayTimers.ntaTimer+msgSep+displayTimers.overlayTimer);ifrm.setAttribute("id","pmssr");ifrm.setAttribute("frameborder","0");ifrm.setAttribute("scrolling","no");ifrm.setAttribute("marginwidth","0");ifrm.setAttribute("marginheight","0");ifrm.setAttribute("allowtransparency","true");ifrm.width="1px";ifrm.height="1px";global.PMO.Util.appendToBody(ifrm)}}catch(ex){global.PMO.Util.log({network:Config.network,params:Config.params,jsdomain:Config.jsdomain,data:["sbx-inj-frm-ex",global.PMO.Util.getExceptionInfo(ex)]})}};var init=function(){try{if(!isLegacyBrowser()){attachMessageListener();injectFrm()}}catch(ex){global.PMO.Util.log({network:Config.network,params:Config.params,jsdomain:Config.jsdomain,data:["sbx-int-ex",global.PMO.Util.getExceptionInfo(ex)]})}};return{init:init,injectFrm:injectFrm,sendMessage:sendMessage,sendEventMessage:sendEventMessage,getMessageSeparator:getMessageSeparator}}());var register=function(){try{global.PMO.Interface.register({name:"PMSNBX01",instance:this,events:{CHECKIN:{type:"CHECKIN",handler:FeedManager.checkInFeed},EXTSTORAGEUID:{type:"EXTSTORAGEUID",handler:UIDManager.storeUID},RESTOREUID:{type:"RESTOREUID",handler:UIDManager.restoreUID},LOGNFUID:{type:"LOGNFUID",handler:UIDManager.logUID},FRMREADY:{type:"FRMREADY",handler:Util.setMngFrameState},KWD:{type:"KWD",handler:RequestManager.initRegularAdRequest},KWDRR:{type:"KWDRR",handler:RequestManager.initTLReServingAdRequest},NOFLPOST:{type:"NOFLPOST",handler:RequestManager.initNoFlashAdRequest},CONFDATA:{type:"CONFDATA",handler:Util.updateConfigsData},SETPMSSBRANDED:{type:"SETPMSSBRANDED",handler:ExternalDataManager.sendEventMessage},SETDISPTIME:{type:"SETDISPTIME",handler:ExternalDataManager.sendEventMessage},SETTRANSTIME:{type:"SETTRANSTIME",handler:ExternalDataManager.sendEventMessage},SETOVRLTIME:{type:"SETOVRLTIME",handler:ExternalDataManager.sendEventMessage},SETNTVTIME:{type:"SETNTVTIME",handler:ExternalDataManager.sendEventMessage},SETNTVSLIDERTIME:{type:"SETNTVSLIDERTIME",handler:ExternalDataManager.sendEventMessage},INITDISPRSRVAFTERFIRST:{type:"INITDISPRSRVAFTERFIRST",handler:DisplayReservingManager.setDisplayReServingAfterFirstAd}}})}catch(ex){Util.log("sbx-reg-ex",Util.getExceptionInfo(ex))}};var createPublicInterface=function(){try{global.executeJS=function(code){eval(code)};global.Mediator={};global.Mediator.dispatch=function(data){ResponseManager.processRegularResponse(data)};global.Mediator.dispatchDisp=function(data){ResponseManager.processDisplayReServingResponse(data)};global.Mediator.dispatchTl=function(data){ResponseManager.processTextlinksReServingResponse(data)};global.WXIDManager={};global.WXIDManager.restoreUID=function(uidParam){UIDManager.restoreUID(uidParam)}}catch(ex){}};var init=function(){try{if(typeof global.PMO.Interface!=="undefined"&&typeof global.PMO.Util!=="undefined"){if(typeof global.PMO.SNB==="undefined"){global.PMO.SNB="12345abcde";ExternalDataManager.init();createPublicInterface();register();UIDManager.init();global.PMO.Interface.notify({type:"SNBXLOAD",data:null})}}else{global.setInterval(init,50)}}catch(ex){Util.log("sbx-init-ex",Util.getExceptionInfo(ex))}};return{dispatch:ResponseManager.processRegularResponse,log:Util.log,init:init}}(this,document)).init();