(function(){var p=this;var u=function(a){u[" "](a);return a};u[" "]=function(){};var v=function(a){try{var c;if(c=!!a&&null!=a.location.href)a:{try{u(a.foo);c=!0;break a}catch(b){}c=!1}return c}catch(b){return!1}},w=function(a,c){for(var b=c||p,d=0;b&&40>d++&&(!v(b)||!a(b));)a:{try{var e=b.parent;if(e&&e!=b){b=e;break a}}catch(g){}b=null}},x=function(a,c){for(var b in a)Object.prototype.hasOwnProperty.call(a,b)&&c.call(void 0,a[b],b,a)},aa=/https?:\/\/[^\/]+/,ba=/^([0-9.]+)px$/,z=function(a){return(a=ba.exec(a))?+a[1]:null},A=function(a){try{for(var c=null;c!=a;c=a,a=a.parent)switch(a.location.protocol){case "https:":return!0;
case "http:":case "file:":return!1}}catch(b){}return!0};var B=function(a,c){var b=[];x(a,function(a,e){var g=null,f=typeof a;if(("object"==f&&null!=a||"function"==f)&&2>c)g=B(a,c+1);else if(0===a||a)g=String(a);g&&b.push(e+"="+encodeURIComponent(g))});return b.join("&")};var C=function(a,c,b){this.j=a;this.i=c;this.b=b;this.c=this.a},D=function(a,c,b){this.c=a;this.a=c||"";this.b=b||-1},ca=function(a,c){var b=E,d;try{d=a()}catch(f){var e=b.b;try{var g=F(f),e=b.c.call(b,"dcm.renderAds",g,void 0,c)}catch(l){b.a("pAR",l)}if(!e)throw f;}finally{}return d};
C.prototype.a=function(a,c,b,d,e){var g={};g.context=a;c instanceof D||(c=F(c));g.msg=c.c.substring(0,512);c.a&&(g.file=c.a);0<c.b&&(g.line=c.b.toString());a=p.document;g.url=a.URL.substring(0,512);g.ref=a.referrer.substring(0,512);if(d)try{d(g)}catch(h){}d=this.j;try{if(Math.random()<(b||d.b)){var f=d.a+(e||this.i)+("&"+B(g,1)),f=f.substring(0,2E3);p.google_image_requests||(p.google_image_requests=[]);var l=p.document.createElement("img");l.src=f;p.google_image_requests.push(l)}}catch(h){}return this.b};
var F=function(a){var c=a.toString();a.name&&-1==c.indexOf(a.name)&&(c+=": "+a.name);a.message&&-1==c.indexOf(a.message)&&(c+=": "+a.message);if(a.stack){var b=a.stack,d=c;try{-1==b.indexOf(d)&&(b=d+"\n"+b);for(var e;b!=e;)e=b,b=b.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");c=b.replace(/\n */g,"\n")}catch(g){c=d}}return new D(c,a.fileName,a.lineNumber)};var da=function(a){this.b={};this.a={};for(var c=0,b=arguments.length;c<b;++c)this.a[arguments[c]]=""},G=!1,H=function(a,c,b){""!=c&&(b?a.a.hasOwnProperty(b)&&(a.a[b]=c):a.b[c]=!0)},ea=function(a){var c=[];x(a.b,function(a,d){c.push(d)});x(a.a,function(a){""!=a&&c.push(a)});return c};var fa=function(a){this.i=a||"";this.c=";";this.b={};this.a=[]},I=function(a,c,b){a.a.push(c);a.b[c]=b},ia=function(a,c){var b=a.i+"//ad.doubleclick.net"+c,d=ga(a)-c.length-1;if(0>d)return"";a.a.sort(function(a,c){return a-c});for(var e=null,g="",f=0;f<a.a.length;f++)for(var l=a.a[f],h=a.b[l],n=0;n<h.length;n++){var m=g+ha(h[n],a.c);if(d>=m.length){d-=m.length;b+=m;g=a.c;break}null==e&&(e=l)}return b+(null!=e?g+"trn="+e:"")+"?"},ga=function(a){var c=1,b;for(b in a.b)c=b.length>c?b.length:c;return 2045-
c-a.c.length-1},ha=function(a,c){var b=[],d=c||"&",e;for(e in a)b.push(e+"="+J(a[e],",$"));return b.join(d)},J=function(a,c,b){c=c||",$";"string"==typeof c&&(c=c.split(""));b=b||0;if(!(a instanceof Array)||b>=c.length)return encodeURIComponent(""+a);for(var d=[],e=0;e<a.length;e++)d.push(J(a[e],c,b+1));return d.join(c[b])};var ja=(A(p)?"https":"http")+"://pagead2.googlesyndication.com/pagead/gen_204?id=";var K={1:{s:"40004000",m:"40004001"},2:{s:"40004002",m:"40004003"}},L={v:1,u:2},ka={1:1,2:2};var M=function(a,c,b){var d=a.dcmads&&a.dcmads.expts&&a.dcmads.expts[b];if(d){var e=K[b];a=[];var g=0,f;for(f in e)a[g++]=e[f];if((b=ka[b])?c.a.hasOwnProperty(b)&&""==c.a[b]:1){var l,h;b:{try{var n=window.top.location.hash;if(n){var m=n.match(/\bdeid=([\d,]+)/);h=m&&m[1]||"";break b}}catch(t){}h=""}if(h=(h=h.match(new RegExp("\\b("+a.join("|")+")\\b")))&&h[0]||null)l=h;else if(G)l=null;else b:{if(!(1E-4>Math.random())&&(h=Math.random(),h<d)){d=window;try{l=new Uint32Array(1),d.crypto.getRandomValues(l),
h=l[0]/65536/65536}catch(t){h=Math.random()}l=a[Math.floor(h*a.length)];break b}l=null}l&&H(c,l,b)}}},N=function(a,c){if(c&&c.split)for(var b=c.split(","),d=0;d<b.length;++d){var e=b[d].split("|");1<e.length?H(a,e[1],e[0]):H(a,e[0])}};var la=Array.prototype.map?function(a,c,b){return Array.prototype.map.call(a,c,b)}:function(a,c,b){for(var d=a.length,e=Array(d),g="string"==typeof a?a.split(""):a,f=0;f<d;f++)f in g&&(e[f]=c.call(b,g[f],f,a));return e};var ma=function(a,c){this.a=a;this.b=c},na=function(a){this.url=a;this.o=!1;this.depth=null},O=function(){var a=p,c=[],b=null,d=null;do{var e=a;v(e)?(b=e.location.href,d=e.document.referrer||null):(b=d,d=null);c.push(new na(b));try{a=e.parent}catch(g){a=null}}while(a&&e!=a);a=0;for(e=c.length-1;a<=e;++a)c[a].depth=e-a;e=p;if(e.location&&e.location.ancestorOrigins&&e.location.ancestorOrigins.length==c.length-1)for(a=1;a<c.length;++a)b=c[a],b.url||(b.url=e.location.ancestorOrigins[a-1],b.o=!0);return c};var oa=function(){var a=O(),c=a.length-1,b,a=a?a:O();b=a.length-1;for(var d=null,e=b;0<=e;--e){var g=a[e];if(g.url&&!g.o){d=g;break}}e=null;g=a.length&&a[b].url;d&&0==d.depth||!g||(e=a[b]);b=new ma(d,e);a=b.a;d=b.b;b=[];d?(a&&b.push(P(c,[d.url,2],0,[a.url,0],a.depth)),b.push(P(c,[d.url,2],0))):a&&a.url&&(b.push(P(c,void 0,void 0,[a.url,0],a.depth)),(d=(d=aa.exec(a.url))&&d[0]||"")&&b.push(P(c,[d,1],a.depth)));b.push(P(c));return b},pa=function(){var a=oa();return la(a,function(a){var b={};b.dc_rfl=
a;return b})},P=function(a,c,b,d,e){a=[a];if(void 0!==c&&void 0!==b){for(var g=0;g<b;g++)a.push("");a.push(c)}if(void 0!==d&&void 0!==e){c=e-a.length+1;for(g=0;g<c;g++)a.push("");a.push(d)}return a};var qa=/iphone|ipad|ipod/;var ra=function(){this.a=[]},sa=/N([0-9]+)\.[^\/]+\/B([0-9]+)\.([0-9]+)/,Q=function(a){this.j=a;a=sa.exec(a);this.c=(this.a=!!a)?+a[1]:0;this.b=this.a?+a[2]:0;this.i=this.a?+a[3]:0};var R=function(a,c,b,d,e){try{for(var g=[],f,l=0;(f=b(a))&&a!=c&&100>++l;){for(var h=null,n=d(f),m=0,t=0;t<n.length;++t){if(n[t]==a){h=t-m;break}e(n[t])&&++m}if(null===h)return null;g.unshift(h);a=f}return g}catch(y){return null}},ta=function(a){return R(a,a.top,function(a){try{return a.parent}catch(b){return null}},function(a){return a.frames},function(){return!1})},ua=function(a){return R(a,document.documentElement,function(a){return a.parentElement},function(a){return a.children},function(a){return 8==
a.nodeType})};var va=/^data-dcm-.+/,wa=/^data-dcm-param-.+/,xa=/^https?%3A.+/i,S=function(a,c){return"data-dcm-https-only"in c?"https:":"data-dcm-http-only"in c?"http:":"file:"==a.document.location.protocol?"http:":""},T=function(a,c,b,d){a=a[c];if(null==a)return[];c={};c[b]=null!=d?d:a;return[c]},U=function(a,c,b){a=a[c];if(!a)return[];a=String(a).toLowerCase();c={};if("1"==a||"true"==a)c[b]="1";return c[b]?[c]:[]},ya=function(a,c){var b,d=!1;w(function(a){a.mraid&&(d=!0);return a.sdkjs?(b=1,!0):a.trackImpressionHelper||
a.webviewDidAppear||a.webviewDidClose?(b=2,!0):a.iAd&&a.iAP||a.resizeTextSizes&&a.parseQS&&a.addCommas&&a.reset?(b=3,!0):a.fireGetImageCall||a["interface"]&&a["interface"].shouldOverlay?(b=4,!0):!1},a);d&&I(c,25,[{mrd:"1"}]);b&&I(c,26,[{asdk:b}])};var E,V,W=/^(?:https?:)?\/\/ad\.doubleclick\.net(?:\/ddm)?\/ad[ij]\/(N[^;]+)/,za=/(^| )dcmads( |$)/,Aa=/(%|[\\/]\.\.[\\/])/;E=new C(new function(){this.a=ja;this.b=.1},"dcmads-err",!0);
var Ba=function(a){var c=a.document;G=!1;var b=new da,d;for(d in L)b.a[L[d]]="";try{N(b,a.dcmads&&a.dcmads.eids);var e=/.*#.*eids=([0-9,|]+)/.exec(a.location.href);e&&N(b,e[1])}catch(X){}M(a,b,1);d=new ra;d.b=b;d.i=!!a.dcmads.version.experiment;d.j=a.dcmads.startTime||0;d.version="24."+(a.dcmads.version.loader||"?");V=d;if(!c.body&&(c.write('<b style="display:none;">_</b>'),!c.body))throw Error("Body element does not exist");for(var c=c.getElementsByClassName?c.getElementsByClassName("dcmads"):c.getElementsByTagName("ins"),
g,b=0;b<c.length;b++){var f=c[b],e=f;e.getAttribute("data-dcm-placement")&&za.test(e.className)&&(f.getAttribute("data-dcm-processed")||g?(e=d,f=f.getAttribute("data-dcm-placement"),f=new Q(f),f.a&&e.a.push(f)):(g=f,g.setAttribute("data-dcm-processed","y")))}if(!g)throw Error("No ad slots found");Y(a.document.getElementsByTagName("script"),d);Y(a.document.getElementsByTagName("iframe"),d);c=g.getAttribute("data-dcm-placement");if(!c)throw Error("Missing placement attribute");d.c=new Q(c);if(Aa.test(c))throw Error("Invalid placement: "+
c);b=g.style;e={};try{e=(p.getComputedStyle?p.getComputedStyle(g,null):g.currentStyle)||{}}catch(X){}if(f=z(b.width)||z(e.width))d.width=Math.round(f);if(b=z(b.height)||z(e.height))d.height=Math.round(b);b=a.navigator.userAgent.toLowerCase();if(qa.test(b)&&-1==b.indexOf("safari")&&-1==b.indexOf("/fbios")&&-1==b.indexOf("crios")&&-1==b.indexOf("fxios")||-1!=b.indexOf("android")&&-1!=b.indexOf("version/")&&-1==b.indexOf("/fb4a"))b=d.b,M(a,b,2),(b.a.hasOwnProperty(2)?b.a[2]:"")==K[2].m&&a.document.write('<script src="mraid.js">\x3c/script>');
for(var b="script"==g.getAttribute("data-dcm-rendering-mode")?"script":"iframe",f=g.attributes,e={},l=0;l<f.length;l++){var h=f[l].name.toLowerCase();if(va.test(h)){var n=f[l].value,n=null!=n?""+n:"";"data-dcm-click-tracker"==h&&(n=xa.test(n)?decodeURIComponent(n):n);e[h]=n}}f=new fa(S(a,e));l=e["data-dcm-click-tracker"];null==l?l=[]:(h=e["data-dcm-landing-page-escapes"]||"",""!=h&&"0"!=h&&"1"!=h&&"2"!=h&&(h=""),n={},n["click"+h]=l,null!=e["data-dcm-reverse-click-tracker"]&&(n.dcopt="rcl"),l=[n]);
I(f,21,l);var m;l=[];for(m in e)wa.test(m)&&l.push(m);if(0==l.length)m=[];else{h=[];l.sort();for(n=0;n<l.length;n++){if(0<h.length){m=h[0];var t={},y=void 0;for(y in m)t[y]=m[y];m=t}else m={};t=m;m=l[n];t[m.substring(15)]=e[m];h.unshift(t)}m=h}I(f,15,m);var k;a:{m=p.context;try{if(m&&"pageViewId"in m&&"canonicalUrl"in m){k=m;break a}}catch(X){}k=null}k&&I(f,27,[{amp:"1"}]);I(f,23,pa());I(f,1,d.i?[{dc_rxp:"1"}]:[]);I(f,0,[{dc_ver:d.version}]);k="";"data-dcm-http-only"in e&&(k+="h");"data-dcm-https-only"in
e&&(k+="s");""==k&&(k="n");I(f,30,[{prcl:k}]);k=ea(d.b);k.length&&I(f,2,[{dc_eid:k}]);I(f,20,[{ord:("00000"+Math.floor(Math.random()*Math.pow(36,6)).toString(36)).slice(-6)}]);if(0==d.a.length)k=null;else{k=d.c;m=[0,0,0,0];for(l=0;l<d.a.length;++l)h=d.a[l],h.a&&(h.c==k.c?h.b==k.b?h.i==k.i?++m[0]:++m[1]:++m[2]:++m[3]);k=[{plmts:m}]}k&&I(f,29,k);(k=d.j)?(k=(new Date).getTime()-k,99999<k&&(k="M"),k=[{sttr:k}]):k=[];I(f,28,k);var r,q;"data-dcm-multi-bottom-float"in e?(r="mtfBottomFloat",q=e["data-dcm-multi-bottom-float"]):
"data-dcm-multi-left-float"in e?(r="mtfLeftFloat",q=e["data-dcm-multi-left-float"]):"data-dcm-multi-right-float"in e?(r="mtfRightFloat",q=e["data-dcm-multi-right-float"]):"data-dcm-multi-top-float"in e&&(r="mtfTopFloat",q=e["data-dcm-multi-top-float"]);r&&q&&(q=q.split?q.split(","):q,k={},k[r]=q,I(f,9,[k]));ya(a,f);r=ta(a)||["?"];q=ua(g)||["?"];r=r.join(",")+":"+q.join(",");q=r.length;if(0==q)r=0;else{k=305419896;for(m=0;m<q;m++)k^=(k<<5)+(k>>2)+r.charCodeAt(m)&4294967295;r=0<k?k:4294967296+k}I(f,
19,[{dc_adk:r}]);I(f,3,d.width&&d.height?[{sz:d.width+"x"+d.height}]:[]);d=[{h:16,f:"data-dcm-anonymous-inventory",g:"dcopt",l:"anid"},{h:6,f:"data-dcm-disable-iframe-breakout",g:"mtfIFrameRequest",l:"false"},{h:5,f:"data-dcm-dart-iframe-path",g:"mtfIFPath"},{h:24,f:"data-dcm-publisher-url",g:"dc_ref"},{h:13,f:"data-dcm-external-id",g:"dc_xid"},{h:22,f:"data-dcm-in-app",g:"dcapp",l:"1"},{h:4,f:"data-dcm-interstitial",g:"dcopt",l:"1_ist"},{h:18,f:"data-dcm-impression-exchange-id",g:"pc"},{h:14,f:"data-dcm-keywords",
g:"kw"},{h:7,f:"data-dcm-left-float",g:"mtfLeft"},{h:8,f:"data-dcm-top-float",g:"mtfTop"},{h:17,f:"data-dcm-user-defined",g:"u"}];for(r=0;r<d.length;r++)q=d[r],I(f,q.h,T(e,q.f,q.g,q.l));d=S(a,e);if(""==d?A(a):"https:"==d)I(f,10,U(e,"data-dcm-child-directed","tfcd")),I(f,12,U(e,"data-dcm-limit-ad-tracking","dc_lat")),I(f,11,T(e,"data-dcm-resettable-device-id","dc_rdid"));d=ia(f,"/ddm/"+("script"==b?"adj":"adi")+"/"+c+";");if(!W.test(d))throw Error("Invalid tag URL: "+d);a=a.document;"script"==b?(1<
g.children.length||1==g.children.length&&"b"==g.children[0].tagName.toLowerCase()||(g.style.display="none"),a.write('<script src="'+d+'">\x3c/script>')):(a=a.createElement("iframe"),a.src=d,d=a.style,d.width="100%",d.height="100%",d.border="0",d.margin="0",d.padding="0",a.marginWidth="0",a.marginHeight="0",a.scrolling="no",a.frameBorder=0,g.appendChild(a));g.style.textDecoration="none"},Y=function(a,c){if(a)for(var b=0;b<a.length;++b){var d=a[b].src,e=W.exec(d);e&&d&&-1==d.indexOf("dc_ver=")&&(d=
c,e=new Q(e[1]),e.a&&d.a.push(e))}};var Z=window;Z.dcmads=Z.dcmads||{};Z.dcmads.version=Z.dcmads.version||{};(function(a){return function(){var c=arguments;return ca(function(){return Ba.apply(void 0,c)},a)}})(function(a,c){var b=Array.prototype.slice.call(arguments,1);return function(){var c=b.slice();c.push.apply(c,arguments);return a.apply(this,c)}}(function(a,c){c.ver=V.version;c.plcmt=V.c.j||""},Z))(Z);})();
