!function(){var a=function(a,b,c,d){"Copyright © 2013-2018 Confiant Inc. All rights reserved.";if(this.CONSTANTS={MATCHING_STYLE_1:1,MATCHING_STYLE_2:2,MATCHING_STYLE_3:3,MATCHING_STYLE_4:4},this.masterReset=!0,"rs"in a&&(this.masterReset=a.rs),this.log_sample=void 0!==a.ls&&a.ls,this.rules=a&&a.m?a.m:[],this.frames=[],this.cajsPresent=!1,this.tagSource=b||"",this.trackers=["iframe","object","a"],this.hasBeenUndone=!1,this.adserverDomain="https://protected-by.clarium.io",this.submitEndpoint="/log",this.targetId=null,this.prefixedTpid=c&&""!==c?c:null,this.submitted=!1,this.doneWithSandbox=!1,this.version=a.v?a.v:0,this.window=window,this.replaceWithHTML=null,this.isSandboxedSafeframe,this.isDfpOnPageIntegration=!1,this.isForcedSandboxing=!1,this.wrapper=d,this.blockingData=null,this.do_undo=void 0===a.du||!!a.du,this.replace=void 0!==a.re?unescape(a.re):"",this.backupFunctions={},this.targetId=function(){return d&&d.uniqueHash&&d.uniqueHash.length>0?d.uniqueHash:c}(),function(a){a.rules=a.getRules(),a.init()}(this),d)try{window[d.uniqueHash][d.tpIdentifier].sb=this.getSandboxingCode()}catch(a){d&&window[d.uniqueHash]&&window[d.uniqueHash][d.tpIdentifier]&&(window[d.uniqueHash][d.tpIdentifier].sb=-1)}};a.prototype={dom:{findings:[],parentHTML:"",walkTheDOM:function(a,b){for(b(a),a=a.firstChild;a;)this.walkTheDOM(a,b),a=a.nextSibling;return this.parentHTML},traverseAd:function(a){if(a){var b=this;return this.parentHTML=a.outerHTML,this.walkTheDOM(a,function(a){if(1==a.nodeType){if(a.contentWindow)try{var c=a.contentWindow.document.getElementsByTagName("html")[0].innerHTML;b.parentHTML=b.parentHTML.replace(a.outerHTML,"<head></head><body></body>"==c?a.outerHTML:a.outerHTML.replace("</iframe>",c+"</iframe>"))}catch(a){}}else if(3===a.nodeType){a.data.trim()}})}}},getTopFrameParent:function(){var a=function(b,c){try{for(var d=b.contentWindow.document,e=d.getElementsByTagName("iframe"),f=0;f<e.length;f++){var g=e[f];if(g==c)return!0;if(a(g,c))return!0}return!1}catch(a){return!1}};try{if(frameElement){for(var b=window.top.document,c=b.getElementsByTagName("iframe"),d=0;d<c.length;d++){if(c[d]==frameElement)return c[d];if(a(c[d],frameElement))return c[d]}return!1}return!1}catch(a){return!1}},creativeWrapper:{init:function(a){var b=window[a.wrapper.uniqueHash][a.wrapper.tpIdentifier];b.u=1*new Date,a.tagSource=b.t,b.isE&&(a.tagSource=unescape(a.tagSource),a.isDfpOnPageIntegration=!0);var c=function(){window.top.postMessage("cb"+a.wrapper.uniqueHash+btoa(JSON.stringify(Array.from(arguments))),"*")};a.cb=b.cb?b.cb:c,a.id=b.id?b.id:null,a.isSafeFrame=b.isSfrm,a.isSandboxedSafeframe=b.isSfrm&&b.isSb,a.isForcedSandboxing=b.isFSb}},init:function(){var a=this;this.creativeWrapper.init(this),this.casprize(!1);var b="<div id='"+this.targetId+"' class='ad-container-"+this.targetId+"'>"+this.tagSource+"</div>";if(this.isSafeFrame){this.createPatchFunction(this.patchArguments[0],this.patchArguments[1],this.patchArguments[2])([this.tagSource],this.isSafeFrame)}else document.write(b);this.postAPIEvent("confiantSlotRenderEnded"),window.addEventListener("load",function(b){if(a.do_undo){if(window.Caspr=void 0,d=void 0,a.hasBeenUndone)return;a.casprize(!0),a.hasBeenUndone=!0}if(!a.submitted&&a.log_sample&&Math.random()<=.005){var c=a.dom.traverseAd(document.getElementById(a.targetId));a.blockingData={html:c||null,ar:"",r:!1,oi:null,ot:null,tag:a.tagSource,v:a.version},a.submitFindings()}})},setRules:function(a){this.rules="object"==typeof a?a:[a]},getRules:function(){return this.rules},submitFindings:function(a){if("undefined"!=typeof XMLHttpRequest&&!this.submitted){this.submitted=!0;var b=new XMLHttpRequest;b.onreadystatechange=function(){this.DONE;this.readyState};var c=window.sf_||window.$sf?document.referrer:window.location.href,d={};d.u=c,this.blockingData&&(d.bd=this.blockingData),this.prefixedTpid&&(d.uh=this.prefixedTpid),d.id=this.id;var e=this.adserverDomain+this.submitEndpoint;try{var f=btoa(JSON.stringify(d));if(a){var g=btoa(JSON.stringify({sendUrl:e,payload:f,slotId:this.id,replaceWith:this.replaceWithHTML}));window.top.postMessage("comm"+this.targetId+g,"*")}else b.open("POST",e,!1),b.send(f);d.bd.ot&&this.cb&&this.cb(d.bd.ot,d.bd.oi,this.blockingData.r,this.wrapper.uniqueHash,this.wrapper.tpIdentifier,this.id)}catch(a){}}},postAPIEvent:function(a){var b=(""+(new Date).getTime()).split("").reverse().join(""),c=0,d=btoa(Math.ceil(1e4*Math.random())+"cOmM"+b),e={propertyId:this.wrapper?this.wrapper.uniqueHash:this.targetId,tagId:this.wrapper?this.wrapper.tpIdentifier:"",impressionData:this.id},f=function(a){a.data.id===d&&(c=100,window.removeEventListener("message",f))},g=function(b){c>=3||(window.top.postMessage({eventType:a,details:e,id:d},"*"),c++,b&&setTimeout(g,500))};window.addEventListener("message",f),g(this.isDfpOnPageIntegration)},casprize:function(a,b){b=b||this;var c=this;try{var d={},e=!1,f=!1,g="OX",h=/(adb.auction\()|(listenAdFromPrebid)|(listenForAdFromPrebid)|(AdGlare)|(sonobi.com)|(roimediaconsultants.com)|(adnxs\.com\/mediation)/,i=c.tagSource||"";try{d=window.top,f=-1!==i.indexOf(g),e=!!(i.match(h)||d.rubicontag||d[g]),f=f||e&&!!d[g]}catch(a){}a||b.window!==window?a&&c.unpatchNode():(e&&c.patchNodeMethod("appendChild"),f&&c.patchNodeMethod("replaceChild"));for(var j=0;j<this.rules.length;j++){var k,l;if(a?(l=this.backupFunctions,k=b.window,this.doneWithSandbox=!0):(k=this.backupFunctions,l=b.window),void 0===this.rules[j].f&&(this.rules[j].f="write"),""!=this.rules[j].f){if(void 0===this.rules[j].h)this.rules[j].h="document";else if(""==this.rules[j].h)continue;if("window"!=this.rules[j].h?(a||k[this.rules[j].h]||(k[this.rules[j].h]={}),k[this.rules[j].h][this.rules[j].f]=l[this.rules[j].h][this.rules[j].f]):(a||k[this.rules[j].h]||(k[this.rules[j].h]={}),a?k[this.rules[j].f]=l[this.rules[j].h][this.rules[j].f]:k[this.rules[j].h][this.rules[j].f]=l[this.rules[j].f]),a)this.hasBeenUndone=!0;else if(this.patch(this.rules[j],j,b),("write"==this.rules[j].f||"writeln"==this.rules[j].f)&&"document"==this.rules[j].h){var m="write"==this.rules[j].f?"writeln":"write",n={r:this.rules[j].r,h:this.rules[j].h,f:m};a||k[this.rules[j].h]||(k[this.rules[j].h]={}),k[this.rules[j].h][m]=l[this.rules[j].h][m],this.patchArguments=[n,j,b],this.patch(n,j,b)}}}}catch(b){a||this.casprize(!0)}},_complete_blocking:function(a,b,c,d,e){var f=document.getElementById(this.targetId);if(!b.r[c]||!b.r[c].l[d])return a;var g=this.dom.traverseAd(f);g=g+"\n\x3c!-- violation detected --\x3e\n"+a;var h=b.r[c].l[d],i=!1;return"rs"in h&&(i=h.rs),this.masterReset||(i=!1),this.blockingData={html:g||null,ar:window[b.h][b.f].arguments,r:i,oi:!!h.oi&&h.oi,ot:!!h.ot&&h.ot,tag:this.tagSource,v:this.version},"re"in h&&""!==h.re?this.replaceWithHTML=h.re:this.replaceWithHTML=this.replace,this.submitFindings(e),i&&(f&&f.remove(),this.casprize(!0),a=this.replaceWithHTML),{replaceWithHtml:a,shouldBlock:i}},_is_match:function(a,b,c,d){if(!b)return!1;a instanceof Array||(a=[a]);var e,f,g="",h=d?"[^a-zA-Z0-9-_]":"[^a-zA-Z0-9]",i=new RegExp(h),j=-1,k=-1,l=!1,m=function(a){var c=b.charAt(a);return""==c||i.test(c)};if(c===this.CONSTANTS.MATCHING_STYLE_4){g=a[0];return new RegExp(g).test(b)}for(var n=0;n<a.length;n++){if(g=a[n],k=b.indexOf(g,j),!(l=k>-1))return!1;if(e=k-1,f=k+g.length,c===this.CONSTANTS.MATCHING_STYLE_2?l=l&&m(e)&&m(f):c===this.CONSTANTS.MATCHING_STYLE_1&&(l=l&&m(f)),!l)return!1;j=f}return!0},patchNodeMethod:function(a){var b=this,c=Node.prototype[a];Node.prototype[a]=function(a){" [native code] ";var d=a.src||"",e=a&&"IFRAME"===a.tagName&&(d.indexOf("https://")<0&&d.indexOf("http://")<0||d.indexOf(window.location.hostname)>=0),f=window.navigator.userAgent.match(/(Trident\/7.0)|(edge|Firefox)/i);e&&!f&&(a.onload=function(c){try{a.contentWindow&&b.casprize(!1,a.contentWindow)}catch(a){}});var g=c.apply(this,arguments);return a.contentDocument&&(a.contentDocument.open=function(c){return function(d,e){var g=c.call(this,d,e);f&&(delete a.contentDocument.write,b.casprize(!1,a.contentWindow));try{var h=window.top.confiant;h&&h.services().onNestedFrameCreation&&h.services().onNestedFrameCreation(a)}catch(a){}return g}}(a.contentDocument.open)),g},Node.__cspr__=Node.__cspr__||[],Node.__cspr__.push([a,c])},unpatchNode:function(){if(Node.__cspr__){for(var a=Node.__cspr__,b=a.length,c=0;c<b;c++)Node.prototype[a[c][0]]=a[c][1];delete Node.__cspr__}},createPatchFunction:function(a,b,c){var d=this;return function(b,e){" [native code] ";try{var f=function(a){var b=a.indexOf("//"),c=a.indexOf("/",b+2),d="";return b>-1&&(c<0&&(c=a.length),b+=2,d=a.substr(b,c-b)),d},g={},h=e?b:c.window[a.h][a.f].arguments,i="setTimeout"==a.f||"setInterval"==a.f||"onload"==a.f;if(!h||0===h.length)return;if(!i){for(var j=a.r,k=window.sf_||window.$sf?f(document.referrer):window.location.hostname,l=0;l<j.length;l++){var m=d.CONSTANTS.MATCHING_STYLE_2;if(j[l].l&&j[l].l.length>0&&6===j[l].l[0].ot&&(m=d.CONSTANTS.MATCHING_STYLE_3,"r"===j[l].l[0].m&&(m=d.CONSTANTS.MATCHING_STYLE_4)),d._is_match(j[l].d,h[0],m,!0)&&!(k.indexOf(j[l].d)>=0)){for(var n=!1,o=0;o<j[l].l.length;o++){var p=j[l].l[o];if("s"in p||(p.s=[]),p.s instanceof Array&&h[0]&&"string"==typeof h[0]&&(0===p.s.length&&2!=p.ot||d._is_match(p.s,h[0],d.CONSTANTS.MATCHING_STYLE_1,!1))){g=d._complete_blocking(h[0],a,l,o,e),h[0]=g.replaceWithHtml,n=!0;break}}if(n)break}}e&&n&&g.shouldBlock?window.location.replace("about:blank"):e||d.backupFunctions[a.h][a.f].apply(this,h)}}catch(a){d.casprize(!0)}}},patch:function(a,b,c){c=c||this;var d=this;"window"==a.h&&(toPatch=c.window[a.f]),toPatch=d.createPatchFunction(a,b,c),"window"==a.h?c.window[a.f]=toPatch:c.window[a.h][a.f]=toPatch},getSandboxingCode:function(){var a=!1,b=window.sf_||window.$sf,c=-1,d=!1,e=void 0!==this.isSandboxedSafeframe;if(b&&e)a=this.isSandboxedSafeframe,d=!0;else if(b&&!e)return c;try{document.domain||null}catch(b){a=!0,d=!0}if(!a)try{if(null!=window.frameElement){var f=window.frameElement.getAttribute("sandbox");a=f&&f.length>0,d=!0}window.top.frames}catch(b){a=/(^|[\s\(\[@])sandbox(es|ed|ing|[\s\.,!\)\]@]|$)/.test(b.message.toLowerCase()),d=!0}return this.isForcedSandboxing?(c=4,d=!0):c=b?a?3:2:a?1:0,d?c:-1}};var b="",c={uniqueHash:"Zn70oS79CsQhTLgJ49Es3zygMIM",tpIdentifier:"Wm43MG9TNzlDc1FoVExnSjQ5RXMzenlnTUlNLzMwOTk0NzMzNjo1eDE="},d=new a({m:[{f:"write",h:"document",r:[]}],v:6,du:!1,ls:!0,rs:1,sb:0},b,"wt_Wm43MG9TNzlDc1FoVExnSjQ5RXMzenlnTUlNLzMwOTk0NzMzNjo1eDE=",c)}();var idp="",sb="",cb=Math.ceil(1e7*Math.random()),h="";try{idp=JSON.stringify(window["Zn70oS79CsQhTLgJ49Es3zygMIM"]["Wm43MG9TNzlDc1FoVExnSjQ5RXMzenlnTUlNLzMwOTk0NzMzNjo1eDE="].id)||"",idp&&(idp="&id="+escape(btoa(idp))),sb="&sb="+window["Zn70oS79CsQhTLgJ49Es3zygMIM"]["Wm43MG9TNzlDc1FoVExnSjQ5RXMzenlnTUlNLzMwOTk0NzMzNjo1eDE="].sb,cb="&cb="+cb;var url=window.sf_||window.$sf?document.referrer:window.location.href,start=url.indexOf("//"),end=url.indexOf("/",start+2);start>-1&&(end<0&&(end=url.length),start+=2,h=url.substr(start,end-start)),h="&h="+encodeURIComponent(h)}catch(a){}var isPixelRequired=window["Zn70oS79CsQhTLgJ49Es3zygMIM"]["Wm43MG9TNzlDc1FoVExnSjQ5RXMzenlnTUlNLzMwOTk0NzMzNjo1eDE="].isPxlReq;(isPixelRequired||void 0===isPixelRequired)&&((new Image).src="https://protected-by.clarium.io/pixel?tag=wt_Wm43MG9TNzlDc1FoVExnSjQ5RXMzenlnTUlNLzMwOTk0NzMzNjo1eDE=&v=5&s=04391788a26b6e98301f09295706994933670270"+idp+sb+cb+h);