(function(){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var h,aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},ca=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");
},da=ca(this),ea=function(a,b){if(b)a:{var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}},fa=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}},ha=function(a){if(!(a instanceof Array)){a=fa(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a},ia="function"==typeof Object.create?Object.create:
function(a){var b=function(){};b.prototype=a;return new b},ja;if("function"==typeof Object.setPrototypeOf)ja=Object.setPrototypeOf;else{var ka;a:{var la={sc:!0},ma={};try{ma.__proto__=la;ka=ma.sc;break a}catch(a){}ka=!1}ja=ka?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
var na=ja,n=function(a,b){a.prototype=ia(b.prototype);a.prototype.constructor=a;if(na)na(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.aa=b.prototype};
ea("Promise",function(a){function b(){this.a=null}function c(g){return g instanceof e?g:new e(function(k){k(g)})}if(a)return a;b.prototype.g=function(g){if(null==this.a){this.a=[];var k=this;this.j(function(){k.v()})}this.a.push(g)};var d=da.setTimeout;b.prototype.j=function(g){d(g,0)};b.prototype.v=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var k=0;k<g.length;++k){var l=g[k];g[k]=null;try{l()}catch(m){this.o(m)}}}this.a=null};b.prototype.o=function(g){this.j(function(){throw g;
})};var e=function(g){this.a=0;this.j=void 0;this.g=[];this.B=!1;var k=this.o();try{g(k.resolve,k.reject)}catch(l){k.reject(l)}};e.prototype.o=function(){function g(m){return function(u){l||(l=!0,m.call(k,u))}}var k=this,l=!1;return{resolve:g(this.I),reject:g(this.v)}};e.prototype.I=function(g){if(g===this)this.v(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof e)this.P(g);else{a:switch(typeof g){case "object":var k=null!=g;break a;case "function":k=!0;break a;default:k=!1}k?
this.H(g):this.A(g)}};e.prototype.H=function(g){var k=void 0;try{k=g.then}catch(l){this.v(l);return}"function"==typeof k?this.J(k,g):this.A(g)};e.prototype.v=function(g){this.C(2,g)};e.prototype.A=function(g){this.C(1,g)};e.prototype.C=function(g,k){if(0!=this.a)throw Error("Cannot settle("+g+", "+k+"): Promise already settled in state"+this.a);this.a=g;this.j=k;2===this.a&&this.K();this.D()};e.prototype.K=function(){var g=this;d(function(){if(g.F()){var k=da.console;"undefined"!==typeof k&&k.error(g.j)}},
1)};e.prototype.F=function(){if(this.B)return!1;var g=da.CustomEvent,k=da.Event,l=da.dispatchEvent;if("undefined"===typeof l)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof k?g=new k("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.j;return l(g)};e.prototype.D=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.g(this.g[g]);this.g=
null}};var f=new b;e.prototype.P=function(g){var k=this.o();g.fb(k.resolve,k.reject)};e.prototype.J=function(g,k){var l=this.o();try{g.call(k,l.resolve,l.reject)}catch(m){l.reject(m)}};e.prototype.then=function(g,k){function l(D,ua){return"function"==typeof D?function(oa){try{m(D(oa))}catch(bc){u(bc)}}:ua}var m,u,I=new e(function(D,ua){m=D;u=ua});this.fb(l(g,m),l(k,u));return I};e.prototype.catch=function(g){return this.then(void 0,g)};e.prototype.fb=function(g,k){function l(){switch(m.a){case 1:g(m.j);
break;case 2:k(m.j);break;default:throw Error("Unexpected state: "+m.a);}}var m=this;null==this.g?f.g(l):this.g.push(l);this.B=!0};e.resolve=c;e.reject=function(g){return new e(function(k,l){l(g)})};e.race=function(g){return new e(function(k,l){for(var m=fa(g),u=m.next();!u.done;u=m.next())c(u.value).fb(k,l)})};e.all=function(g){var k=fa(g),l=k.next();return l.done?c([]):new e(function(m,u){function I(oa){return function(bc){D[oa]=bc;ua--;0==ua&&m(D)}}var D=[],ua=0;do D.push(void 0),ua++,c(l.value).fb(I(D.length-
1),u),l=k.next();while(!l.done)})};return e});
var p=this||self,q=function(a,b,c){a=a.split(".");c=c||p;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b},pa=/^[\w+/_-]+[=]{0,2}$/,qa=null,ra=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&pa.test(a)?a:""},r=function(a,b){a=a.split(".");b=b||p;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;
return b},t=function(){},sa=function(a){a.rb=void 0;a.getInstance=function(){return a.rb?a.rb:a.rb=new a}},ta=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"},va=function(a){var b=ta(a);return"array"==b||"object"==b&&"number"==typeof a.length},wa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},za=function(a){return Object.prototype.hasOwnProperty.call(a,xa)&&a[xa]||(a[xa]=++ya)},xa="closure_uid_"+(1E9*Math.random()>>>0),ya=0,Aa=function(a,b,
c){return a.call.apply(a.bind,arguments)},Ba=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},v=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?v=Aa:v=Ba;return v.apply(null,arguments)},Ca=function(a,b){var c=Array.prototype.slice.call(arguments,
1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}},w=function(){return Date.now()},x=function(a,b){function c(){}c.prototype=b.prototype;a.aa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.ig=function(d,e,f){for(var g=Array(arguments.length-2),k=2;k<arguments.length;k++)g[k-2]=arguments[k];return b.prototype[e].apply(d,g)}},Da=function(a){return a};function Ea(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Ea);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}x(Ea,Error);Ea.prototype.name="CustomError";var Fa;var Ga=function(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");Ea.call(this,c+a[d])};x(Ga,Ea);Ga.prototype.name="AssertionError";var Ha=function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},y=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ia=function(a,b){for(var c=a.length,d=[],e=0,f="string"===typeof a?a.split(""):a,g=0;g<c;g++)if(g in f){var k=f[g];b.call(void 0,k,g,a)&&(d[e++]=k)}return d},Ja=function(a,b){for(var c=a.length,d=Array(c),e="string"===typeof a?
a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},Ka=function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1},La=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};
function Ma(a,b){a:{for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:"string"===typeof a?a.charAt(b):a[b]}function Na(a,b){b=Ha(a,b);var c;(c=0<=b)&&Array.prototype.splice.call(a,b,1);return c}function Oa(a){return Array.prototype.concat.apply([],arguments)}function Pa(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}
function Qa(a,b){var c={};y(a,function(d,e){c[b.call(void 0,d,e,a)]=d});return c};var Ra=function(){var a=escape,b=1;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}},Sa=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};var Ta=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Ua=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},Va=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0},Wa=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Xa=function(a){for(var b in a)return!1;return!0},Ya="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Za=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];
for(c in d)a[c]=d[c];for(var f=0;f<Ya.length;f++)c=Ya[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var $a={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var ab,bb=function(){if(void 0===ab){var a=null,b=p.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Da,createScript:Da,createScriptURL:Da})}catch(c){p.console&&p.console.error(c.message)}ab=a}else ab=a}return ab};var fb=function(a,b){this.a=a===cb&&b||"";this.g=db};fb.prototype.ya=!0;fb.prototype.oa=function(){return this.a};var gb=function(a){return a instanceof fb&&a.constructor===fb&&a.g===db?a.a:"type_error:Const"},db={},cb={};var ib=function(a,b){this.g=b===hb?a:""};ib.prototype.ya=!0;ib.prototype.oa=function(){return this.g.toString()};ib.prototype.qb=!0;ib.prototype.a=function(){return 1};var jb=function(a){return a instanceof ib&&a.constructor===ib?a.g:"type_error:TrustedResourceUrl"},hb={},kb=function(a){var b=bb();a=b?b.createScriptURL(a):a;return new ib(a,hb)};var z=function(a){return/^[\s\xa0]*$/.test(a)},lb=function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},tb=function(a,b){if(b)a=a.replace(mb,"&amp;").replace(nb,"&lt;").replace(ob,"&gt;").replace(pb,"&quot;").replace(qb,"&#39;").replace(rb,"&#0;");else{if(!sb.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(mb,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(nb,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(ob,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(pb,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(qb,
"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(rb,"&#0;"))}return a},mb=/&/g,nb=/</g,ob=/>/g,pb=/"/g,qb=/'/g,rb=/\x00/g,sb=/[\x00&<>"']/,vb=function(a,b){var c=0;a=lb(String(a)).split(".");b=lb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(0==f[0].length&&0==g[0].length)break;c=ub(0==f[1].length?0:parseInt(f[1],10),0==g[1].length?0:parseInt(g[1],10))||
ub(0==f[2].length,0==g[2].length)||ub(f[2],g[2]);f=f[3];g=g[3]}while(0==c)}return c},ub=function(a,b){return a<b?-1:a>b?1:0};var xb=function(a,b){this.g=b===wb?a:""};xb.prototype.ya=!0;xb.prototype.oa=function(){return this.g.toString()};xb.prototype.qb=!0;xb.prototype.a=function(){return 1};
var yb=function(a){return a instanceof xb&&a.constructor===xb?a.g:"type_error:SafeUrl"},zb=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,Ab=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Bb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Cb=function(a){if(a instanceof xb)return a;a="object"==typeof a&&a.ya?a.oa():
String(a);if(Bb.test(a))a=new xb(a,wb);else{a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(Ab);a=b&&zb.test(b[1])?new xb(a,wb):null}return a},wb={},Db=new xb("about:invalid#zClosurez",wb);var Fb=function(a,b){this.a=b===Eb?a:""};Fb.prototype.ya=!0;Fb.prototype.oa=function(){return this.a};
var Eb={},Gb=new Fb("",Eb),Nb=function(a){if(a instanceof xb)return'url("'+yb(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof fb)a=gb(a);else{a=String(a);var b=a.replace(Hb,"$1").replace(Hb,"$1").replace(Ib,"url");if(Jb.test(b)){if(b=!Kb.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&Lb(a)}a=b?Mb(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new Ga("Value does not allow [{;}], got: %s.",[a]);return a},Lb=function(a){for(var b=
!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b},Jb=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Ib=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,Hb=/\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?)\([-+*/0-9a-z.%\[\], ]+\)/g,Kb=/\/\*/,Mb=function(a){return a.replace(Ib,function(b,
c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(g,k,l){f=k;return l});b=(Cb(d)||Db).oa();return c+f+b+f+e})};var Ob;a:{var Pb=p.navigator;if(Pb){var Qb=Pb.userAgent;if(Qb){Ob=Qb;break a}}Ob=""}var A=function(a){return-1!=Ob.indexOf(a)};var Rb=function(){return A("Firefox")||A("FxiOS")},Sb=function(){return(A("Chrome")||A("CriOS"))&&!A("Edge")};var Ub=function(a,b,c){this.g=c===Tb?a:"";this.j=b};Ub.prototype.qb=!0;Ub.prototype.a=function(){return this.j};Ub.prototype.ya=!0;Ub.prototype.oa=function(){return this.g.toString()};
var Vb=function(a){return a instanceof Ub&&a.constructor===Ub?a.g:"type_error:SafeHtml"},Xb=function(a){if(a instanceof Ub)return a;var b="object"==typeof a,c=null;b&&a.qb&&(c=a.a());return Wb(tb(b&&a.ya?a.oa():String(a)),c)},Yb=/^[a-zA-Z0-9-]+$/,Zb={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},$b={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},cc=function(a){var b=Xb(ac),c=b.a(),d=[],e=function(f){Array.isArray(f)?
y(f,e):(f=Xb(f),d.push(Vb(f).toString()),f=f.a(),0==c?c=f:0!=f&&c!=f&&(c=null))};y(a,e);return Wb(d.join(Vb(b).toString()),c)},dc=function(a){return cc(Array.prototype.slice.call(arguments))},Tb={},Wb=function(a,b){var c=bb();a=c?c.createHTML(a):a;return new Ub(a,b,Tb)},ac=new Ub(p.trustedTypes&&p.trustedTypes.emptyHTML||"",0,Tb);var ec=Sa(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=Vb(ac);return!b.parentElement}),fc=function(a,b){if(ec())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=Vb(b)},gc=function(a,b){fc(a,b)},hc=function(a){var b;(b=a.ownerDocument&&a.ownerDocument.defaultView)&&b!=p?b=ra(b.document):(null===qa&&(qa=ra(p.document)),b=qa);b&&a.setAttribute("nonce",b)};var ic=function(a){return a=tb(a,void 0)},jc=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},B=function(a){return null==a?"":String(a)},kc=function(a){var b=Number(a);return 0==b&&z(a)?NaN:b},lc=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})},mc=function(a){return a.replace(/(^|[\s]+)([a-z])/g,function(b,c,d){return c+d.toUpperCase()})};var nc=function(){return A("iPhone")&&!A("iPod")&&!A("iPad")};var oc=function(a){oc[" "](a);return a};oc[" "]=t;var pc=function(a,b){try{return oc(a[b]),!0}catch(c){}return!1},rc=function(a,b){var c=qc;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var sc=A("Opera"),C=A("Trident")||A("MSIE"),tc=A("Edge"),uc=A("Gecko")&&!(-1!=Ob.toLowerCase().indexOf("webkit")&&!A("Edge"))&&!(A("Trident")||A("MSIE"))&&!A("Edge"),vc=-1!=Ob.toLowerCase().indexOf("webkit")&&!A("Edge"),wc=A("Android"),xc=nc(),yc=A("iPad"),zc=function(){var a=p.document;return a?a.documentMode:void 0},Ac;
a:{var Bc="",Cc=function(){var a=Ob;if(uc)return/rv:([^\);]+)(\)|;)/.exec(a);if(tc)return/Edge\/([\d\.]+)/.exec(a);if(C)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(vc)return/WebKit\/(\S+)/.exec(a);if(sc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Cc&&(Bc=Cc?Cc[1]:"");if(C){var Dc=zc();if(null!=Dc&&Dc>parseFloat(Bc)){Ac=String(Dc);break a}}Ac=Bc}var Ec=Ac,qc={},Fc=function(a){return rc(a,function(){return 0<=vb(Ec,a)})},Gc;
if(p.document&&C){var Hc=zc();Gc=Hc?Hc:parseInt(Ec,10)||void 0}else Gc=void 0;var Ic=Gc;var Jc=Rb(),Kc=nc()||A("iPod"),Lc=A("iPad"),Mc=A("Android")&&!(Sb()||Rb()||A("Opera")||A("Silk")),Nc=Sb(),Oc=A("Safari")&&!(Sb()||A("Coast")||A("Opera")||A("Edge")||A("Edg/")||A("OPR")||Rb()||A("Silk")||A("Android"))&&!(nc()||A("iPad")||A("iPod"));var Pc=function(){},Qc="function"==typeof Uint8Array,Rc=function(a,b){a.o=null;b||(b=[]);a.A=void 0;a.a=-1;a.ra=b;a:{if(b=a.ra.length){--b;var c=a.ra[b];if(!(null===c||"object"!=typeof c||Array.isArray(c)||Qc&&c instanceof Uint8Array)){a.g=b-a.a;a.j=c;break a}}a.g=Number.MAX_VALUE}a.v={}},Sc=function(a){var b=a.g+a.a;a.ra[b]||(a.j=a.ra[b]={})},Tc=function(a,b,c){b<a.g?a.ra[b+a.a]=c:(Sc(a),a.j[b]=c);return a},Uc=function(a,b,c,d){c!==d?Tc(a,b,c):b<a.g?a.ra[b+a.a]=null:(Sc(a),delete a.j[b]);return a};
Pc.prototype.toString=function(){return this.ra.toString()};var Vc=function(a){var b="&rmfb="+(typeof window.vv).substr(0,3);return"&adurl="==a.substring(a.length-7)?a.substring(0,a.length-7)+b+"&adurl=":a+b};var Wc=function(){if(p.interstitialAdFrame)return p.interstitialAdFrame;try{return p.parent.interstitialAdFrame}catch(a){}return null};var Xc=document,E=window;var Yc=function(a){Rc(this,a)};x(Yc,Pc);var Zc=function(a,b){this.g=(void 0===a?0:a)||0;this.a=(void 0===b?"":b)||""},$c=function(a){return!!a.g||!!a.a};Zc.prototype.toString=function(){return this.g+(this.a?"-":"")+this.a};var ad=function(){};ad.prototype.a=function(){return 0};var bd=function(){if(!E||!E.performance)throw Error();};n(bd,ad);bd.prototype.a=function(){return E&&E.performance&&E.performance.now?E.performance.now():ad.prototype.a.call(this)};var cd=function(a,b,c){a.addEventListener&&a.addEventListener(b,c,!1)};var dd=function(a){var b;a.visibilityState?b="visibilitychange":a.mozVisibilityState?b="mozvisibilitychange":a.webkitVisibilityState&&(b="webkitvisibilitychange");return b},ed=function(a,b){if(3==({visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[b.visibilityState||b.webkitVisibilityState||b.mozVisibilityState||""]||0))return!1;a();return!0},fd=function(a){var b=document;if(!ed(a,b)){var c=!1,d=dd(b),e=function(){!c&&ed(a,b)&&(c=!0,b.removeEventListener&&b.removeEventListener(d,e,!1))};d&&cd(b,
d,e)}};var gd=function(){this.a=null};gd.prototype.log=function(){};gd.prototype.info=function(){};var hd={},id=null,jd=function(a){id||(id=new gd,hd[""]=id);var b;if(!(b=hd[a])){b=new gd;var c=a.lastIndexOf("."),d=a.substr(c+1);c=jd(a.substr(0,c));c.a||(c.a={});c.a[d]=b;hd[a]=b}return b};var kd=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};var ld=!C||9<=Number(Ic),md=C||sc||vc;var F=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};F.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};F.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};F.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};var G=function(a,b){this.width=a;this.height=b},nd=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1},od=function(a){return new G(a.width,a.height)};G.prototype.aspectRatio=function(){return this.width/this.height};G.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};G.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
G.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var rd=function(a){return a?new pd(qd(a)):Fa||(Fa=new pd)},sd=function(a,b){return"string"===typeof b?a.getElementById(b):b},ud=function(a,b){Ta(b,function(c,d){c&&"object"==typeof c&&c.ya&&(c=c.oa());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:td.hasOwnProperty(d)?a.setAttribute(td[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})},td={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",
height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},vd=function(a){a=(a||window).document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new G(a.clientWidth,a.clientHeight)},wd=function(a){return a.scrollingElement?a.scrollingElement:vc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement},xd=function(a){return a.parentWindow||a.defaultView},yd=function(a,b,c){function d(k){k&&
b.appendChild("string"===typeof k?a.createTextNode(k):k)}for(var e=2;e<c.length;e++){var f=c[e];if(!va(f)||wa(f)&&0<f.nodeType)d(f);else{a:{if(f&&"number"==typeof f.length){if(wa(f)){var g="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){g="function"==typeof f.item;break a}}g=!1}y(g?Pa(f):f,d)}}},zd=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)},Ad=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},
Bd=function(a){var b;if(md&&!(C&&Fc("9")&&!Fc("10")&&p.SVGElement&&a instanceof p.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return wa(b)&&1==b.nodeType?b:null},Cd=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},qd=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},Dd=function(a){return a.contentDocument||
a.contentWindow.document},pd=function(a){this.a=a||p.document||document};pd.prototype.S=function(a){return sd(this.a,a)};
pd.prototype.g=function(a,b,c){var d=this.a,e=arguments,f=String(e[0]),g=e[1];if(!ld&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ic(g.name),'"');if(g.type){f.push(' type="',ic(g.type),'"');var k={};Za(k,g);delete k.type;g=k}f.push(">");f=f.join("")}f=zd(d,f);g&&("string"===typeof g?f.className=g:Array.isArray(g)?f.className=g.join(" "):ud(f,g));2<e.length&&yd(d,f,e);return f};var Ed=function(a,b,c,d){var e="";a&&(e+=a+":");c&&(e+="//",b&&(e+=b+"@"),e+=c,d&&(e+=":"+d));return e},Fd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Gd=function(a){a=a.match(Fd);return Ed(a[1],a[2],a[3],a[4])},Hd=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):
"")}}},Id=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Id(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+encodeURIComponent(String(b))))},Jd=function(a,b){if(b+=""){var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.substr(0,d),e,a.substr(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;b=a[0]+(a[1]?"?"+a[1]:"")+a[2]}else b=a;return b},Kd=/#|$/;var Ld=function(a){try{return!!a&&null!=a.location.href&&pc(a,"foo")}catch(b){return!1}},Md=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)},Od=function(){var a=Nd;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};var H=function(){this.V=this.V;this.P=this.P};H.prototype.V=!1;H.prototype.K=function(){return this.V};H.prototype.dispose=function(){this.V||(this.V=!0,this.G())};var Pd=function(a,b){b=Ca(J,b);a.V?b():(a.P||(a.P=[]),a.P.push(b))};H.prototype.G=function(){if(this.P)for(;this.P.length;)this.P.shift()()};var J=function(a){a&&"function"==typeof a.dispose&&a.dispose()},Qd=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];va(d)?Qd.apply(null,d):J(d)}};var Rd=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};Rd.prototype.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};Rd.prototype.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
Rd.prototype.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};var Sd=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d},Td=function(a){return new G(a.width,a.height)};Sd.prototype.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};Sd.prototype.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
Sd.prototype.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Ud=function(a,b,c){a.google_image_requests||(a.google_image_requests=[]);var d=a.document.createElement("img");c&&(d.referrerPolicy="no-referrer");d.src=b;a.google_image_requests.push(d)},Vd=Sa(function(){return"referrerPolicy"in p.document.createElement("img")});var Wd={};var Xd=function(){},Yd=function(a,b){if(b!==Wd)throw Error("Bad secret");this.a=a};n(Yd,Xd);Yd.prototype.toString=function(){return this.a};new Yd("about:blank",Wd);new Yd("about:invalid#zTSz",Wd);var $d=function(a){Zd();return Wb(a,null)},ae=function(a){Zd();return kb(a)},Zd=t;var be=function(){return vc?"Webkit":uc?"Moz":C?"ms":sc?"O":null},ce=function(){return vc?"-webkit":uc?"-moz":C?"-ms":sc?"-o":null};var de={},ee=function(a,b){var c=de[b];if(!c){var d=lc(b);c=d;void 0===a.style[d]&&(d=be()+mc(d),void 0!==a.style[d]&&(c=d));de[b]=c}return c},fe=function(a,b){var c=a.style[lc(b)];return"undefined"!==typeof c?c:a.style[ee(a,b)]||""},ge=function(a,b){var c=qd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},he=function(a,b){return ge(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},je=function(a,
b,c){if(b instanceof F){var d=b.x;b=b.y}else d=b,b=c;a.style.left=ie(d,!1);a.style.top=ie(b,!1)},ke=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}},le=function(a){var b=qd(a),c=new F(0,0);var d=b?qd(b):document;d=!C||9<=Number(Ic)||"CSS1Compat"==rd(d).a.compatMode?d.documentElement:d.body;if(a==d)return c;a=ke(a);d=rd(b).a;b=wd(d);d=xd(d);b=C&&Fc("10")&&d.pageYOffset!=b.scrollTop?new F(b.scrollLeft,b.scrollTop):new F(d.pageXOffset||b.scrollLeft,d.pageYOffset||
b.scrollTop);c.x=a.left+b.x;c.y=a.top+b.y;return c},me=function(a,b,c){if(b instanceof G)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=ie(b,!0);a.style.height=ie(c,!0)},ie=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},oe=function(a){var b=ne;if("none"!=he(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=
f;c.visibility=e;return a},ne=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=vc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=ke(a),new G(a.right-a.left,a.bottom-a.top)):new G(b,c)},pe=function(a){var b=le(a);a=oe(a);return new Sd(b.x,b.y,a.width,a.height)};var qe=!!window.google_async_iframe_id,re=qe&&window.parent||window,se=function(){if(qe&&!Ld(re)){var a="."+Xc.domain;try{for(;2<a.split(".").length&&!Ld(re);)Xc.domain=a=a.substr(a.indexOf(".")+1),re=window.parent}catch(b){}Ld(re)||(re=window)}return re};var te=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/,ue=function(a,b){this.a=a;this.g=b},ve=function(a,b,c){this.url=a;this.win=b;this.Pb=!!c;this.depth=null};var we=function(){this.j="&";this.g={};this.o=0;this.a=[]},xe=function(a,b){var c={};c[a]=b;return[c]},ze=function(a,b,c,d,e){var f=[];Md(a,function(g,k){(g=ye(g,b,c,d,e))&&f.push(k+"="+g)});return f.join(b)},ye=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],g=0;g<a.length;g++)f.push(ye(a[g],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(ze(a,
b,c,d,e+1)):"...";return encodeURIComponent(String(a))};we.prototype.ha=function(a,b,c,d){a=a+"//"+b+c;var e=Ae(this)-c.length-d.length;if(0>e)return"";this.a.sort(function(u,I){return u-I});c=null;b="";for(var f=0;f<this.a.length;f++)for(var g=this.a[f],k=this.g[g],l=0;l<k.length;l++){if(!e){c=null==c?g:c;break}var m=ze(k[l],this.j,",$");if(m){m=b+m;if(e>=m.length){e-=m.length;a+=m;b=this.j;break}c=null==c?g:c}}e="";null!=c&&(e=b+"trn="+c);return a+e+d};
var Ae=function(a){var b=1,c;for(c in a.g)b=c.length>b?c.length:b;return 3997-b-a.j.length-1};var Be=function(){this.a=E&&E.performance?new bd:new ad};Be.prototype.setInterval=function(a,b){return E.setInterval(a,b)};Be.prototype.clearInterval=function(a){E.clearInterval(a)};Be.prototype.setTimeout=function(a,b){return E.setTimeout(a,b)};Be.prototype.clearTimeout=function(a){E.clearTimeout(a)};var De=function(a){Ce();var b=se()||E;Ud(b,a,!1)};sa(Be);var Ee=function(){},Ce=function(){var a=Ee.getInstance();if(!a.a){if(!E)throw Error("Context has not been set and window is undefined.");a.a=Be.getInstance()}return a.a};sa(Ee);var K={Ve:0,mf:1},Fe={NONE:0,Af:1,sf:2};var Ge=function(){},He=function(){};n(He,Ge);var Ie=function(){};n(Ie,Ge);var Je=function(){this.a={};this.g={}};Je.prototype.reset=function(){this.a={};this.g={}};var L=function(a,b,c){a.a[b]||(a.a[b]=new He(c))};var Ke=function(a){this.j=a;this.a=-1;this.o=this.g=0},Me=function(a){var b=Le.getInstance().g.a;return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<b.a)return a.apply(null,ha(d));try{return b.a=b.j.a.a(),a.apply(null,ha(d))}finally{b.g+=b.j.a.a()-b.a,b.a=-1,b.o+=1}}};var Ne=function(){var a=Ce();this.a=new Ke(a)};var Oe={Kf:1,fg:2,If:3};kb(gb(new fb(cb,"https://pagead2.googlesyndication.com/pagead/osd.js")));var Le=function(){this.a=new Je;L(this.a,"mv",Fe);L(this.a,"omid",K);L(this.a,"epoh",K);L(this.a,"epph",K);L(this.a,"umt",K);L(this.a,"phel",K);L(this.a,"phell",K);L(this.a,"oseid",Oe);var a=this.a;a.a.sloi||(a.a.sloi=new Ie);L(this.a,"xdi",K);L(this.a,"amp",K);L(this.a,"prf",K);L(this.a,"gtx",K);L(this.a,"mvp_lv",K);L(this.a,"vcm",K);L(this.a,"dov",Fe);L(this.a,"postrxl",K);L(this.a,"mpv",K);L(this.a,"bmi",K);this.a.g.bmi=1;L(this.a,"tmout",K);this.g=new Ne};sa(Le);var Pe=function(){var a="https:";E&&E.location&&"http:"===E.location.protocol&&(a="http:");this.a=a},Qe=function(a,b,c,d){if(Math.random()<(d||.01))try{if(c instanceof we)var e=c;else e=new we,Md(c,function(g,k){var l=e,m=l.o++;g=xe(k,g);l.a.push(m);l.g[m]=g});var f=e.ha(a.a,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&","");f&&De(f)}catch(g){}};var Re=null;var Se=function(){var a=p.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):w()},Te=function(){var a=void 0===a?p:a;return(a=a.performance)&&a.now?a.now():null};var Ue=function(a,b){var c=Te()||Se();this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};var Ve=p.performance,We=!!(Ve&&Ve.mark&&Ve.measure&&Ve.clearMarks),Xe=Sa(function(){var a;if(a=We){var b;if(null===Re){Re="";try{a="";try{a=p.top.location.hash}catch(c){a=p.location.hash}a&&(Re=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=Re;a=!!b.indexOf&&0<=b.indexOf("1337")}return a}),Ye=function(){var a=se();this.g=[];this.j=a||p;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.g=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.a=Xe()||(null!=
b?b:1>Math.random())},Ze=function(a){a&&Ve&&Xe()&&(Ve.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Ve.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};Ye.prototype.start=function(a,b){if(!this.a)return null;a=new Ue(a,b);b="goog_"+a.label+"_"+a.uniqueId+"_start";Ve&&Xe()&&Ve.mark(b);return a};var df=function(){var a=bf;this.o=cf;this.g=!0;this.v=this.j;this.a=void 0===a?null:a},gf=function(a,b){return Me(function(){try{if(a.a&&a.a.a){var c=a.a.start((197).toString(),3);var d=b();var e=a.a,f=c;if(e.a&&"number"===typeof f.value){f.duration=(Te()||Se())-f.value;var g="goog_"+f.label+"_"+f.uniqueId+"_end";Ve&&Xe()&&Ve.mark(g);!e.a||2048<e.g.length||e.g.push(f)}}else d=b()}catch(l){e=a.g;try{Ze(c);var k=new ef(ff(l));e=a.v(197,k,void 0,void 0)}catch(m){a.j(217,m)}if(!e)throw l;}return d})()},
jf=function(a){var b=hf;return Me(function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];return gf(b,function(){return a.apply(void 0,d)})})};
df.prototype.j=function(a,b,c,d,e){e=e||"jserror";try{var f=new we;f.a.push(1);f.g[1]=xe("context",a);b.error&&b.meta&&b.id||(b=new ef(ff(b)));if(b.msg){var g=b.msg.substring(0,512);f.a.push(2);f.g[2]=xe("msg",g)}var k=b.meta||{};if(d)try{d(k)}catch($e){}b=[k];f.a.push(3);f.g[3]=b;d=p;b=[];g=null;do{var l=d;if(Ld(l)){var m=l.location.href;g=l.document&&l.document.referrer||null}else m=g,g=null;b.push(new ve(m||"",l));try{d=l.parent}catch($e){d=null}}while(d&&l!=d);m=0;for(var u=b.length-1;m<=u;++m)b[m].depth=
u-m;l=p;if(l.location&&l.location.ancestorOrigins&&l.location.ancestorOrigins.length==b.length-1)for(u=1;u<b.length;++u){var I=b[u];I.url||(I.url=l.location.ancestorOrigins[u-1]||"",I.Pb=!0)}var D=new ve(p.location.href,p,!1);l=null;var ua=b.length-1;for(I=ua;0<=I;--I){var oa=b[I];!l&&te.test(oa.url)&&(l=oa);if(oa.url&&!oa.Pb){D=oa;break}}oa=null;var bc=b.length&&b[ua].url;0!=D.depth&&bc&&(oa=b[ua]);var eb=new ue(D,oa);if(eb.g){var Jm=eb.g.url||"";f.a.push(4);f.g[4]=xe("top",Jm)}var Km={url:eb.a.url||
""};if(eb.a.url){var af=eb.a.url.match(Fd);var gi=Ed(af[1],null,af[3],af[4])}else gi="";D=[Km,{url:gi}];f.a.push(5);f.g[5]=D;Qe(this.o,e,f,c)}catch($e){try{Qe(this.o,e,{context:"ecmserr",rctx:a,msg:ff($e),url:eb&&eb.a.url},c)}catch(pp){}}return this.g};
var ff=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b},ef=function(a){kd.call(this,Error(a),{message:a})};n(ef,kd);var cf,hf,bf=new Ye,kf=function(){var a=se();a&&"undefined"!=typeof a.google_measure_js_timing&&!a.google_measure_js_timing&&(a=bf,a.a=!1,a.g!=a.j.google_js_reporting_queue&&(Xe()&&y(a.g,Ze),a.g.length=0))};(function(){cf=new Pe;hf=new df;var a=se();a&&a.document&&("complete"==a.document.readyState?kf():bf.a&&cd(a,"load",function(){kf()}))})();if(Xc&&Xc.URL){var lf,Nd=Xc.URL;lf=!!Nd&&0<Od().length;hf.g=!lf};var mf=0,nf=0,of=function(a){var b=[];Ta(a,function(c,d){d=encodeURIComponent(d);"string"===typeof c&&(c=encodeURIComponent(c));b.push(d+"="+c)});b.push("24="+Date.now());return b.join("\n")},pf=function(){Ce().clearInterval(nf)},qf=function(){var a=0,b=E;try{if(b&&b.Goog_AdSense_getAdAdapterInstance)return b}catch(c){}for(;b&&5>a;){try{if(b.google_osd_static_frame)return b}catch(c){}try{if(b.aswift_0&&b.aswift_0.google_osd_static_frame)return b.aswift_0}catch(c){}a++;b=b!=b.parent?b.parent:null}return null},
rf=function(a,b,c,d,e,f){c=f||t;if(10<mf)pf(),c();else if(mf+=1,E.postMessage&&$c(b)){if(c=qf()){e={};b&&(b.g&&(e[4]=b.g),b.a&&(e[12]=b.a));e[0]="goog_request_monitoring";e[6]=a;e[16]=!(void 0===d||!d);try{var g=of(e);c.postMessage(g,"*")}catch(k){}}}else pf(),c()};var sf=function(a,b){this.D=a;this.o=b;this.j={};this.A=!1},vf=function(a){a.A=!0;for(var b in a.j)a.j[b].xa&&tf(a,b),uf(a,b)},xf=function(a,b){var c=b.n;switch(b.t){case 1:b=b.d;wf(a,c).xa(b);break;case 2:wf(a,c).pb=!0,uf(a,c)}},wf=function(a,b){a.j[b]||(a.j[b]={pb:!1,kb:[],xa:null});return a.j[b]},uf=function(a,b){var c=wf(a,b);if(c.pb){for(var d=c.kb.length,e=0;e<d;e++)a.sendMessage(b,c.kb[e]);c.kb=[]}},tf=function(a,b){if(a.A){var c={t:2};c.s=a.o;c.n=b;a.v(c)}};
sf.prototype.registerApplicationHandler=function(a,b){wf(this,a).xa=b;tf(this,a)};sf.prototype.sendMessage=function(a,b){var c=wf(this,a);this.A&&c.pb?(c={t:1},c.s=this.o,c.n=a,c.d=b,this.v(c)):c.kb.push(b)};sf.prototype.isInitialized=function(){return this.A};var zf=function(a,b,c){c=void 0===c?!0:c;sf.call(this,a,b);var d=this;this.C=c&&!!window.MessageChannel;this.g=this.a=null;window.addEventListener&&(this.B=function(e){var f=e.data;f.s===d.o&&(d.C?e.source===d.D:e.source.parent===d.D)&&(0===f.t?yf(d,e)&&vf(d):(d.g=e,xf(d,f)))},window.addEventListener("message",this.B,!1),this.F=!1)};n(zf,sf);zf.prototype.v=function(a){this.C?this.a&&this.a.postMessage(a):this.g.source.parent.postMessage(a,"*")};
var yf=function(a,b){if(a.C){a.a=b.ports&&b.ports[0];if(!a.a)return!1;a.a.addEventListener("message",v(function(c){xf(this,c.data)},a),!1);a.a.start()}else a.g=b;return!0};zf.prototype.dispose=function(){window.removeEventListener("message",this.B,!1);delete this.B;delete this.a;delete this.g;this.F=!0};zf.prototype.K=function(){return this.F};var Cf=function(a,b,c,d){var e=Af;try{return new Bf(a,b,e,c,void 0===d?!0:d)}catch(f){return null}},Bf=function(a,b,c,d,e){var f=this;e=void 0===e?!0:e;try{var g=!!document.cookie}catch(k){g=!1}if(g&&(g=window.location.origin||window.location.protocol+"//"+window.location.host,!0!==window.secureChannel_allowAnyParent&&b!==g&&-1===c.indexOf(g)))throw Error();window.postMessage&&(sf.call(this,a,d),this.H=e&&!!window.MessageChannel,this.B=b,this.a=this.g=null,this.C=function(k){var l=k.data;l.s!==f.o||
k.source!==window.parent||"*"!==f.B&&k.origin!==f.B||xf(f,l)},window.addEventListener("message",this.C,!1),"complete"==p.document.readyState?this.I():window.addEventListener("load",v(this.I,this),!1),this.F=!1)};x(Bf,sf);Bf.prototype.v=function(a){this.H?this.g&&this.g.postMessage(a):this.a.contentWindow.postMessage(a,"*")};
Bf.prototype.I=function(){var a={t:0};a.s=this.o;if(this.H){var b=new MessageChannel;this.g=b.port1;this.g.onmessage=v(function(c){xf(this,c.data)},this);this.D.postMessage(a,this.B,[b.port2]);vf(this)}else this.a=zd(document,"IFRAME"),this.a.style.display="none",b='<!doctype html><html><head><script>window.addEventListener("message",function(e){e.source.parent.postMessage(e.data,'+JSON.stringify(this.B)+");},false);\x3c/script></head><body></body></html>",this.a.srcdoc=b,this.a.src="javascript:'"+
encodeURI(b)+"'",this.a.onload=v(function(){this.v(a);vf(this)},this),document.body.appendChild(this.a)};Bf.prototype.dispose=function(){window.removeEventListener("message",this.C,!1);delete this.C;delete this.g;delete this.a;this.F=!0};Bf.prototype.K=function(){return this.F};var Df=function(a){return(a=/[&\?#]exk=([^& ]+)/.exec(a))&&2==a.length?a[1]:null};var Ef=function(a,b){this.o=Math.random()<a;this.B=b;this.j=null;this.v=""};Ef.prototype.g=function(){return this.o&&null!==this.j?(this.B+"//pagead2.googlesyndication.com/pagead/gen_204/?id="+this.j+this.v).substring(0,2E3):""};var Ff=function(){},If=function(a){Gf|=a;Hf(a)},Hf=function(a){Jf(a,2,1);Jf(a,1,2);Jf(a,4,8);Jf(a,8,4);Jf(a,128,64);Jf(a,64,128);Jf(a,256,2)},Jf=function(a,b,c){(a&b)==b&&(Gf|=b,Gf&=~c)};q("studio.common.Environment",Ff,void 0);Ff.Type={LIVE:1,LOCAL:2,BROWSER:4,IN_APP:8,LAYOUTS_PREVIEW:16,CREATIVE_TOOLSET:32,RENDERING_STUDIO:64,RENDERING_TEST:128,PREVIEW:256};var Gf=6;Ff.addType=If;Ff.setType=function(a){Gf=a|6;Hf(Gf)};Ff.hasType=function(a){return(Gf&a)==a};Ff.getValue=function(){return Gf};var Kf=function(a,b){this.g={};this.a=[];this.j=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof Kf)for(c=a.va(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};Kf.prototype.ca=function(){Lf(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.g[this.a[b]]);return a};Kf.prototype.va=function(){Lf(this);return this.a.concat()};
var Lf=function(a){if(a.j!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Mf(a.g,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.j!=a.a.length){var e={};for(c=b=0;b<a.a.length;)d=a.a[b],Mf(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}};Kf.prototype.get=function(a,b){return Mf(this.g,a)?this.g[a]:b};Kf.prototype.set=function(a,b){Mf(this.g,a)||(this.j++,this.a.push(a));this.g[a]=b};Kf.prototype.forEach=function(a,b){for(var c=this.va(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
var Mf=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Nf=function(a){if(a.ca&&"function"==typeof a.ca)return a.ca();if("string"===typeof a)return a.split("");if(va(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Wa(a)},Pf=function(a){var b=Of.a,c=Of;if("function"==typeof a.every)return a.every(b,c);if(va(a)||"string"===typeof a)return La(a,b,c);if(a.va&&"function"==typeof a.va)var d=a.va();else if(a.ca&&"function"==typeof a.ca)d=void 0;else if(va(a)||"string"===typeof a){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else for(f in d=
[],e=0,a)d[e++]=f;e=Nf(a);f=e.length;for(var g=0;g<f;g++)if(!b.call(c,e[g],d&&d[g],a))return!1;return!0};var Qf=function(){this.g=new Kf},Rf=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+za(a):b.substr(0,1)+a};Qf.prototype.add=function(a){this.g.set(Rf(a),a)};var Sf=function(a){var b=Of;a=Nf(a);for(var c=a.length,d=0;d<c;d++)b.add(a[d])};Qf.prototype.a=function(a){a=Rf(a);return Mf(this.g.g,a)};Qf.prototype.ca=function(){return this.g.ca()};q("studio.common.Feature.Type",{Zf:1,SDK_EVENT_FORWARDER:2,RL_EVENT_FORWARDER:3},void 0);var Of=new Qf,Tf=function(a){return Of.a(a)};q("studio.common.Feature.hasFeature",Tf,void 0);q("studio.common.Feature.hasFeatures",function(a){return Pf(a)},void 0);var Uf=function(a,b){this.a=a;this.g=null!=b?b:0};Uf.prototype.bd=function(){return this.a};Uf.prototype.Zc=function(){return this.g};Uf.prototype.toString=function(){return this.a};q("studio.common.Orientation",Uf,void 0);Uf.prototype.getDegrees=Uf.prototype.Zc;Uf.prototype.getMode=Uf.prototype.bd;Uf.Mode={PORTRAIT:"portrait",LANDSCAPE:"landscape"};var Vf=function(a,b,c,d,e){if(!z(B(a))&&-1<a.indexOf("?")){e="number"===typeof e?e:1;for(var f=0;f<e;f++)b=encodeURIComponent(b)}c&&(a=c?a.replace("[rm_exit_id]",c):a,b=d?encodeURIComponent(d+b):b);return a+b};q("studio.common.Visibility.VISIBILITY_PARAMS_KEY","visibilityParams",void 0);q("studio.common.Visibility.VISIBILITY_FRACTION_KEY","visibilityFraction",void 0);q("studio.common.Visibility.VISIBLE_BOX_KEY","visibleBox",void 0);var Wf=function(a,b){return{visibilityFraction:a,visibleBox:b}};q("studio.common.Visibility.createVisibilityParams",Wf,void 0);q("studio.common.WhitelistedExternalObject",{CREATIVETOOLSET_CONFIG:"creativeToolsetConfig",CREATIVETOOLSET_INTERNALS:"creativeToolsetInternals",CREATIVETOOLSET_INTERNALS_GEN204:"creativeToolsetInternalsGen204",CREATIVE_REPORTER:"creativeReporter",CREATIVE_INNOVATION:"gcreativeinnovation",GOOGLE_AFMA_SUPPORT:"googleAfmaSupport"},void 0);
var Xf=function(a){try{switch(a){case "creativeToolsetConfig":return window.CreativeToolset.getInstance().getConfig();case "creativeToolsetInternals":return window.CreativeToolset.internals;case "creativeToolsetInternalsGen204":return window.CreativeToolset.internals.gen204;case "creativeReporter":return window.googlecreative.reporting.sharedReporter;case "gcreativeinnovation":return window.gcreativeinnovation;case "googleAfmaSupport":return window.google.afma.support}}catch(b){}return null};var Yf={};var Zf=!C||9<=Number(Ic),$f=C&&!Fc("9"),ag=function(){if(!p.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{p.addEventListener("test",t,b),p.removeEventListener("test",t,b)}catch(c){}return a}();var M=function(a,b){this.type=a;this.a=this.target=b;this.defaultPrevented=!1};M.prototype.o=function(){this.defaultPrevented=!0};var cg=function(a,b){M.call(this,a?a.type:"");this.relatedTarget=this.a=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.na=null;if(a){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.a=b;(b=a.relatedTarget)?uc&&(pc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:
"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=
a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:bg[a.pointerType]||"";this.state=a.state;this.na=a;a.defaultPrevented&&this.o()}};x(cg,M);var bg={2:"touch",3:"pen",4:"mouse"};cg.prototype.o=function(){cg.aa.o.call(this);var a=this.na;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,$f)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var dg="closure_listenable_"+(1E6*Math.random()|0),eg=function(a){return!(!a||!a[dg])},fg=0;var gg=function(a,b,c,d,e){this.listener=a;this.a=null;this.src=b;this.type=c;this.capture=!!d;this.xa=e;this.key=++fg;this.Ua=this.eb=!1},hg=function(a){a.Ua=!0;a.listener=null;a.a=null;a.src=null;a.xa=null};var ig=function(a){this.src=a;this.a={};this.g=0};ig.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.a[f];a||(a=this.a[f]=[],this.g++);var g=jg(a,b,d,e);-1<g?(b=a[g],c||(b.eb=!1)):(b=new gg(b,this.src,f,!!d,e),b.eb=c,a.push(b));return b};
var kg=function(a,b){var c=b.type;if(!(c in a.a))return!1;var d=Na(a.a[c],b);d&&(hg(b),0==a.a[c].length&&(delete a.a[c],a.g--));return d},lg=function(a){var b=0,c;for(c in a.a){for(var d=a.a[c],e=0;e<d.length;e++)++b,hg(d[e]);delete a.a[c];a.g--}},mg=function(a,b,c,d,e){a=a.a[b.toString()];b=-1;a&&(b=jg(a,c,d,e));return-1<b?a[b]:null},jg=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Ua&&f.listener==b&&f.capture==!!c&&f.xa==d)return e}return-1};var ng="closure_lm_"+(1E6*Math.random()|0),og={},pg=0,N=function(a,b,c,d,e){if(d&&d.once)return qg(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)N(a,b[f],c,d,e);return null}c=rg(c);return eg(a)?a.ea.add(String(b),c,!1,wa(d)?!!d.capture:!!d,e):sg(a,b,c,!1,d,e)},sg=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=wa(e)?!!e.capture:!!e,k=tg(a);k||(a[ng]=k=new ig(a));c=k.add(b,c,d,g,f);if(c.a)return c;d=ug();c.a=d;d.src=a;d.listener=c;if(a.addEventListener)ag||(e=g),void 0===
e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(vg(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");pg++;return c},ug=function(){var a=wg,b=Zf?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},qg=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)qg(a,b[f],c,d,e);return null}c=rg(c);return eg(a)?
a.ea.add(String(b),c,!0,wa(d)?!!d.capture:!!d,e):sg(a,b,c,!0,d,e)},xg=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)xg(a,b[f],c,d,e);else d=wa(d)?!!d.capture:!!d,c=rg(c),eg(a)?(a=a.ea,b=String(b).toString(),b in a.a&&(f=a.a[b],c=jg(f,c,d,e),-1<c&&(hg(f[c]),Array.prototype.splice.call(f,c,1),0==f.length&&(delete a.a[b],a.g--)))):a&&(a=tg(a))&&(c=mg(a,b,c,d,e))&&yg(c)},yg=function(a){if("number"===typeof a||!a||a.Ua)return!1;var b=a.src;if(eg(b))return kg(b.ea,a);var c=a.type,d=
a.a;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(vg(c),d):b.addListener&&b.removeListener&&b.removeListener(d);pg--;(c=tg(b))?(kg(c,a),0==c.g&&(c.src=null,b[ng]=null)):hg(a);return!0},zg=function(a,b,c,d,e){c=rg(c);d=!!d;return eg(a)?mg(a.ea,String(b),c,d,e):a?(a=tg(a))?mg(a,b,c,d,e):null:null},vg=function(a){return a in og?og[a]:og[a]="on"+a},Bg=function(a,b,c,d){var e=!0;if(a=tg(a))if(b=a.a[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&
f.capture==c&&!f.Ua&&(f=Ag(f,d),e=e&&!1!==f)}return e},Ag=function(a,b){var c=a.listener,d=a.xa||a.src;a.eb&&yg(a);return c.call(d,b)},wg=function(a,b){if(a.Ua)return!0;if(!Zf){var c=b||r("window.event");b=new cg(c,this);var d=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var e=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(g){e=!0}if(e||void 0==c.returnValue)c.returnValue=!0}c=[];for(e=b.a;e;e=e.parentNode)c.push(e);a=a.type;for(e=c.length-1;0<=e;e--){b.a=c[e];var f=Bg(c[e],a,!0,b);d=d&&f}for(e=
0;e<c.length;e++)b.a=c[e],f=Bg(c[e],a,!1,b),d=d&&f}return d}return Ag(a,new cg(b,this))},tg=function(a){a=a[ng];return a instanceof ig?a:null},Cg="__closure_events_fn_"+(1E9*Math.random()>>>0),rg=function(a){if("function"===typeof a)return a;a[Cg]||(a[Cg]=function(b){return a.handleEvent(b)});return a[Cg]};var Dg=function(a){H.call(this);this.g=a;this.a={}};x(Dg,H);
var Eg=[],O=function(a,b,c,d){Array.isArray(c)||(c&&(Eg[0]=c.toString()),c=Eg);for(var e=0;e<c.length;e++){var f=N(b,c[e],d||a.handleEvent,!1,a.g||a);if(!f)break;a.a[f.key]=f}},Fg=function(a,b,c,d,e,f){if(Array.isArray(c))for(var g=0;g<c.length;g++)Fg(a,b,c[g],d,e,f);else(b=qg(b,c,d||a.handleEvent,e,f||a.g||a))&&(a.a[b.key]=b)},Gg=function(a,b,c,d,e,f){if(Array.isArray(c))for(var g=0;g<c.length;g++)Gg(a,b,c[g],d,e,f);else if(b=zg(b,c,d||a.handleEvent,wa(e)?!!e.capture:!!e,f||a.g||a))yg(b),delete a.a[b.key]},
Hg=function(a){Ta(a.a,function(b,c){this.a.hasOwnProperty(c)&&yg(b)},a);a.a={}};Dg.prototype.G=function(){Dg.aa.G.call(this);Hg(this)};Dg.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var Ig=function(a,b){this.j=a;this.o=b;this.g=0;this.a=null};Ig.prototype.get=function(){if(0<this.g){this.g--;var a=this.a;this.a=a.next;a.next=null}else a=this.j();return a};var Jg=function(a,b){a.o(b);100>a.g&&(a.g++,b.next=a.a,a.a=b)};var Kg=function(a){p.setTimeout(function(){throw a;},0)},Ng=function(a){"function"!==typeof p.setImmediate||p.Window&&p.Window.prototype&&!A("Edge")&&p.Window.prototype.setImmediate==p.setImmediate?(Lg||(Lg=Mg()),Lg(a)):p.setImmediate(a)},Lg,Mg=function(){var a=p.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!A("Presto")&&(a=function(){var e=zd(document,"IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=
e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),k="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=v(function(l){if(("*"==k||l.origin==k)&&l.data==g)this.port1.onmessage()},this);f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,k)}}});if("undefined"!==typeof a&&!A("Trident")&&!A("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.Ab;c.Ab=null;
e()}};return function(e){d.next={Ab:e};d=d.next;b.port2.postMessage(0)}}return function(e){p.setTimeout(e,0)}};var Og=function(){this.g=this.a=null},Qg=new Ig(function(){return new Pg},function(a){a.reset()});Og.prototype.add=function(a,b){var c=Qg.get();c.set(a,b);this.g?this.g.next=c:this.a=c;this.g=c};var Sg=function(){var a=Rg,b=null;a.a&&(b=a.a,a.a=a.a.next,a.a||(a.g=null),b.next=null);return b},Pg=function(){this.next=this.g=this.a=null};Pg.prototype.set=function(a,b){this.a=a;this.g=b;this.next=null};Pg.prototype.reset=function(){this.next=this.g=this.a=null};var Wg=function(a,b){Tg||Ug();Vg||(Tg(),Vg=!0);Rg.add(a,b)},Tg,Ug=function(){if(p.Promise&&p.Promise.resolve){var a=p.Promise.resolve(void 0);Tg=function(){a.then(Xg)}}else Tg=function(){Ng(Xg)}},Vg=!1,Rg=new Og,Xg=function(){for(var a;a=Sg();){try{a.a.call(a.g)}catch(b){Kg(b)}Jg(Qg,a)}Vg=!1};var Yg=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var P=function(a,b){this.a=0;this.B=void 0;this.o=this.g=this.j=null;this.v=this.A=!1;if(a!=t)try{var c=this;a.call(b,function(d){Zg(c,2,d)},function(d){Zg(c,3,d)})}catch(d){Zg(this,3,d)}},$g=function(){this.next=this.context=this.g=this.o=this.a=null;this.j=!1};$g.prototype.reset=function(){this.context=this.g=this.o=this.a=null;this.j=!1};
var ah=new Ig(function(){return new $g},function(a){a.reset()}),bh=function(a,b,c){var d=ah.get();d.o=a;d.g=b;d.context=c;return d},ch=function(a){if(a instanceof P)return a;var b=new P(t);Zg(b,2,a);return b},dh=function(){var a=Error("Cannot go fullscreen, already in fullscreen");return new P(function(b,c){c(a)})},fh=function(a,b,c){eh(a,b,c,null)||Wg(Ca(b,a))},gh=function(a){return new P(function(b,c){var d=a.length,e=[];if(d)for(var f=function(m,u){d--;e[m]=u;0==d&&b(e)},g=function(m){c(m)},k=
0,l;k<a.length;k++)l=a[k],fh(l,Ca(f,k),g);else b(e)})},ih=function(){var a,b,c=new P(function(d,e){a=d;b=e});return new hh(c,a,b)};P.prototype.then=function(a,b,c){return jh(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};P.prototype.$goog_Thenable=!0;var lh=function(a,b,c){b=bh(b,b,c);b.j=!0;kh(a,b)},mh=function(a,b,c){return jh(a,null,b,c)};P.prototype.cancel=function(a){if(0==this.a){var b=new nh(a);Wg(function(){oh(this,b)},this)}};
var oh=function(a,b){if(0==a.a)if(a.j){var c=a.j;if(c.g){for(var d=0,e=null,f=null,g=c.g;g&&(g.j||(d++,g.a==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.a&&1==d?oh(c,b):(f?(d=f,d.next==c.o&&(c.o=d),d.next=d.next.next):ph(c),qh(c,e,3,b)))}a.j=null}else Zg(a,3,b)},kh=function(a,b){a.g||2!=a.a&&3!=a.a||rh(a);a.o?a.o.next=b:a.g=b;a.o=b},jh=function(a,b,c,d){var e=bh(null,null,null);e.a=new P(function(f,g){e.o=b?function(k){try{var l=b.call(d,k);f(l)}catch(m){g(m)}}:f;e.g=c?function(k){try{var l=c.call(d,
k);void 0===l&&k instanceof nh?g(k):f(l)}catch(m){g(m)}}:g});e.a.j=a;kh(a,e);return e.a};P.prototype.D=function(a){this.a=0;Zg(this,2,a)};P.prototype.F=function(a){this.a=0;Zg(this,3,a)};
var Zg=function(a,b,c){0==a.a&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.a=1,eh(c,a.D,a.F,a)||(a.B=c,a.a=b,a.j=null,rh(a),3!=b||c instanceof nh||sh(a,c)))},eh=function(a,b,c,d){if(a instanceof P)return kh(a,bh(b||t,c||null,d)),!0;if(Yg(a))return a.then(b,c,d),!0;if(wa(a))try{var e=a.then;if("function"===typeof e)return th(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},th=function(a,b,c,d,e){var f=!1,g=function(l){f||(f=!0,c.call(e,l))},k=function(l){f||(f=!0,d.call(e,
l))};try{b.call(a,g,k)}catch(l){k(l)}},rh=function(a){a.A||(a.A=!0,Wg(a.C,a))},ph=function(a){var b=null;a.g&&(b=a.g,a.g=b.next,b.next=null);a.g||(a.o=null);return b};P.prototype.C=function(){for(var a;a=ph(this);)qh(this,a,this.a,this.B);this.A=!1};
var qh=function(a,b,c,d){if(3==c&&b.g&&!b.j)for(;a&&a.v;a=a.j)a.v=!1;if(b.a)b.a.j=null,uh(b,c,d);else try{b.j?b.o.call(b.context):uh(b,c,d)}catch(e){vh.call(null,e)}Jg(ah,b)},uh=function(a,b,c){2==b?a.o.call(a.context,c):a.g&&a.g.call(a.context,c)},sh=function(a,b){a.v=!0;Wg(function(){a.v&&vh.call(null,b)})},vh=Kg,nh=function(a){Ea.call(this,a)};x(nh,Ea);nh.prototype.name="cancel";var hh=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
var Q=function(a,b){this.B=[];this.K=a;this.I=b||null;this.o=this.a=!1;this.j=void 0;this.F=this.P=this.D=!1;this.C=0;this.g=null;this.v=0};Q.prototype.cancel=function(a){if(this.a)this.j instanceof Q&&this.j.cancel();else{if(this.g){var b=this.g;delete this.g;a?b.cancel(a):(b.v--,0>=b.v&&b.cancel())}this.K?this.K.call(this.I,this):this.F=!0;this.a||this.A(new wh(this))}};Q.prototype.H=function(a,b){this.D=!1;xh(this,a,b)};
var xh=function(a,b,c){a.a=!0;a.j=c;a.o=!b;yh(a)},Ah=function(a){if(a.a){if(!a.F)throw new zh(a);a.F=!1}};Q.prototype.ba=function(a){Ah(this);xh(this,!0,a)};Q.prototype.A=function(a){Ah(this);xh(this,!1,a)};var Ch=function(a,b,c){Bh(a,b,null,c)},Bh=function(a,b,c,d){a.B.push([b,c,d]);a.a&&yh(a)};Q.prototype.then=function(a,b,c){var d,e,f=new P(function(g,k){d=g;e=k});Bh(this,d,function(g){g instanceof wh?f.cancel():e(g)});return f.then(a,b,c)};Q.prototype.$goog_Thenable=!0;
var Dh=function(a,b){b instanceof Q?Ch(a,v(b.J,b)):Ch(a,function(){return b})};Q.prototype.J=function(a){var b=new Q;Bh(this,b.ba,b.A,b);a&&(b.g=this,this.v++);return b};
var Eh=function(a){return Ka(a.B,function(b){return"function"===typeof b[1]})},yh=function(a){if(a.C&&a.a&&Eh(a)){var b=a.C,c=Fh[b];c&&(p.clearTimeout(c.a),delete Fh[b]);a.C=0}a.g&&(a.g.v--,delete a.g);b=a.j;for(var d=c=!1;a.B.length&&!a.D;){var e=a.B.shift(),f=e[0],g=e[1];e=e[2];if(f=a.o?g:f)try{var k=f.call(e||a.I,b);void 0!==k&&(a.o=a.o&&(k==b||k instanceof Error),a.j=b=k);if(Yg(b)||"function"===typeof p.Promise&&b instanceof p.Promise)d=!0,a.D=!0}catch(l){b=l,a.o=!0,Eh(a)||(c=!0)}}a.j=b;d&&(k=
v(a.H,a,!0),d=v(a.H,a,!1),b instanceof Q?(Bh(b,k,d),b.P=!0):b.then(k,d));c&&(b=new Gh(b),Fh[b.a]=b,a.C=b.a)},zh=function(){Ea.call(this)};x(zh,Ea);zh.prototype.message="Deferred has already fired";zh.prototype.name="AlreadyCalledError";var wh=function(){Ea.call(this)};x(wh,Ea);wh.prototype.message="Deferred was canceled";wh.prototype.name="CanceledError";var Gh=function(a){this.a=p.setTimeout(v(this.j,this),0);this.g=a};Gh.prototype.j=function(){delete Fh[this.a];throw this.g;};var Fh={};var Hh=["pu","lru","pru","lpu","ppu"],Jh=function(){for(var a=10,b=Ih,c=b.length,d="";0<a--;)d+=b.charAt(Math.floor(Math.random()*c));return d},Ih="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Kh=function(a){H.call(this);this.A=a||rd()};x(Kh,H);var R=function(){H.call(this);this.ea=new ig(this);this.xe=this;this.Ca=null};x(R,H);R.prototype[dg]=!0;R.prototype.addEventListener=function(a,b,c,d){N(this,a,b,c,d)};R.prototype.removeEventListener=function(a,b,c,d){xg(this,a,b,c,d)};
R.prototype.dispatchEvent=function(a){var b=this.Ca;if(b){var c=[];for(var d=1;b;b=b.Ca)c.push(b),++d}b=this.xe;d=a.type||a;if("string"===typeof a)a=new M(a,b);else if(a instanceof M)a.target=a.target||b;else{var e=a;a=new M(d,b);Za(a,e)}e=!0;if(c)for(var f=c.length-1;0<=f;f--){var g=a.a=c[f];e=Lh(g,d,!0,a)&&e}g=a.a=b;e=Lh(g,d,!0,a)&&e;e=Lh(g,d,!1,a)&&e;if(c)for(f=0;f<c.length;f++)g=a.a=c[f],e=Lh(g,d,!1,a)&&e;return e};R.prototype.G=function(){R.aa.G.call(this);this.ea&&lg(this.ea);this.Ca=null};
var Lh=function(a,b,c,d){b=a.ea.a[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.Ua&&g.capture==c){var k=g.listener,l=g.xa||g.src;g.eb&&kg(a.ea,g);e=!1!==k.call(l,d)&&e}}return e&&!d.defaultPrevented};var Mh=function(a,b){R.call(this);this.g=a||1;this.a=b||p;this.j=v(this.ve,this);this.o=w()};x(Mh,R);h=Mh.prototype;h.Oa=!1;h.ia=null;h.setInterval=function(a){this.g=a;this.ia&&this.Oa?(this.stop(),this.start()):this.ia&&this.stop()};h.ve=function(){if(this.Oa){var a=w()-this.o;0<a&&a<.8*this.g?this.ia=this.a.setTimeout(this.j,this.g-a):(this.ia&&(this.a.clearTimeout(this.ia),this.ia=null),this.dispatchEvent("tick"),this.Oa&&(this.stop(),this.start()))}};
h.start=function(){this.Oa=!0;this.ia||(this.ia=this.a.setTimeout(this.j,this.g),this.o=w())};h.stop=function(){this.Oa=!1;this.ia&&(this.a.clearTimeout(this.ia),this.ia=null)};h.G=function(){Mh.aa.G.call(this);this.stop();delete this.a};var Nh=function(a,b,c){if("function"===typeof a)c&&(a=v(a,c));else if(a&&"function"==typeof a.handleEvent)a=v(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:p.setTimeout(a,b||0)};var Qh=function(a,b){Kh.call(this,b);this.a=a;this.F=new Dg(this);Pd(this,this.F);this.B=new Mh(100,xd(this.A.a));Pd(this,this.B);this.o=new Q;this.v=new Q;this.g=new Q;this.D=Jh();this.C=null;this.j={};this.I=this.a.name;Oh(this.a,this.a.name+"_"+Ph(this.a));this.H=!1;Dh(this.g,this.o);Dh(this.g,this.v);Ch(this.g,this.Xd,this);this.g.ba(!0);O(this.F,this.B,"tick",this.Yb)};n(Qh,Kh);
var Th=function(a){var b=new Rh(a.channelName,a.service,a.payload);a=b.channelName;var c=b.g;b=b.a;var d=Yf[a];if(d)return d.bb(c,b),!0;d=Sh(b)[0];for(var e in Yf){var f=Yf[e];if(1==Ph(f)&&!f.isConnected()&&"tp"==c&&"SETUP"==d)return Oh(f,a),f.bb(c,b),!0}return!1};h=Qh.prototype;
h.fc=function(a){a=Sh(a);var b=a[1];switch(a[0]){case "SETUP_ACK":this.o.a||this.o.ba(!0);break;case "SETUP":this.pa("tp","SETUP_ACK"),this.v.a||this.v.ba(!0),null!=this.C&&this.C!=b&&this.pa("tp","SETUP,"+this.D),this.C=b}};h.connect=function(){var a=xd(this.A.a);if(a){var b=za(a);0==(Uh[b]||0)&&null==r("crosswindowmessaging.channel",a)&&q("crosswindowmessaging.channel",Th,a);Uh[b]++;this.H=!0;this.Yb()}};h.Yb=function(){this.a.isConnected()?this.B.stop():(this.B.start(),this.pa("tp","SETUP,"+this.D))};
h.pa=function(a,b){this.a.Z&&(a=new Rh(this.I+"_"+(0==Ph(this.a)?1:0),a,b),this.a.getConfig().directSyncMode?this.Eb(a):this.j[za(a)]=Nh(v(this.Eb,this,a),0))};h.Eb=function(a){var b=za(a);this.j[b]&&delete this.j[b];try{var c=r("crosswindowmessaging.channel",this.a.Z)}catch(d){return}if(null!==c)try{c({channelName:a.channelName,service:a.g,payload:a.a})}catch(d){}};h.Xd=function(){Vh(this.a,(this.a.getConfig(),0))};
h.G=function(){if(this.H){var a=xd(this.A.a),b=za(a);1==--Uh[b]&&q("crosswindowmessaging.channel",null,a)}this.j&&(Ta(this.j,function(c){p.clearTimeout(c)}),this.j=null);this.o&&(this.o.cancel(),delete this.o);this.v&&(this.v.cancel(),delete this.v);this.g&&(this.g.cancel(),delete this.g);Kh.prototype.G.call(this)};var Sh=function(a){a=a.split(",");a[1]=a[1]||null;return a},Uh={},Rh=function(a,b,c){this.channelName=a;this.g=b;this.a=c};var Wh=function(a,b,c,d,e){Kh.call(this,c);this.v=a;this.B=e||2;this.R=b||"*";this.I=new Dg(this);this.D=new Mh(100,xd(this.A.a));this.H=!!d;this.j=new Q;this.o=new Q;this.g=new Q;this.T=Jh();this.F=null;this.H?1==Ph(this.v)?Dh(this.g,this.j):Dh(this.g,this.o):(Dh(this.g,this.j),2==this.B&&Dh(this.g,this.o));Ch(this.g,this.U,this);this.g.ba(!0);this.O=C&&!Fc("11");O(this.I,this.D,"tick",this.N)};n(Wh,Kh);
var Zh=function(a){var b=a.na.data;if("string"!==typeof b)return!1;var c=b.indexOf("|"),d=b.indexOf(":");if(-1==c||-1==d)return!1;var e=b.substring(0,c);c=b.substring(c+1,d);b=b.substring(d+1);if(d=Yf[e])return d.bb(c,b,a.na.origin),!0;d=Xh(b)[0];for(var f in Yf){var g=Yf[f];if(1==Ph(g)&&!g.isConnected()&&"tp"==c&&("SETUP"==d||"SETUP_NTPV2"==d)&&Yh(g,a.na.origin))return Oh(g,e),g.bb(c,b),!0}return!1};
Wh.prototype.fc=function(a){var b=Xh(a);a=b[1];switch(b[0]){case "SETUP_ACK":$h(this,1);this.j.a||this.j.ba(!0);break;case "SETUP_ACK_NTPV2":2==this.B&&($h(this,2),this.j.a||this.j.ba(!0));break;case "SETUP":$h(this,1);ai(this,1);break;case "SETUP_NTPV2":2==this.B&&(b=this.a,$h(this,2),ai(this,2),1!=b&&null==this.F||this.F==a||bi(this),this.F=a)}};
var bi=function(a){2!=a.B||null!=a.a&&2!=a.a||a.pa("tp","SETUP_NTPV2,"+a.T);null!=a.a&&1!=a.a||a.pa("tp","SETUP")},ai=function(a,b){if(2!=a.B||null!=a.a&&2!=a.a||2!=b){if(null!=a.a&&1!=a.a||1!=b)return;a.pa("tp","SETUP_ACK")}else a.pa("tp","SETUP_ACK_NTPV2");a.o.a||a.o.ba(!0)},$h=function(a,b){b>a.a&&(a.a=b);1==a.a&&(a.o.a||a.H||a.o.ba(!0),a.F=null)};
Wh.prototype.connect=function(){var a=xd(this.A.a),b=za(a),c=ci[b];"number"!==typeof c&&(c=0);0==c&&N(a.postMessage?a:a.document,"message",Zh,!1,Wh);ci[b]=c+1;this.J=!0;this.N()};Wh.prototype.N=function(){var a=0==Ph(this.v);this.H&&a||this.v.isConnected()||this.K()?this.D.stop():(this.D.start(),bi(this))};var di=function(a,b,c){var d=a.v.Z,e=a.v.name;a.C=0;try{var f=d.postMessage?d:d.document;f.postMessage&&f.postMessage(e+"|"+b+":"+c,a.R)}catch(g){}};
Wh.prototype.pa=function(a,b){var c=this;this.v.Z&&(this.O?this.C=Nh(function(){return void di(c,a,b)},0):di(this,a,b))};Wh.prototype.U=function(){Vh(this.v,1==this.B||1==this.a?200:void 0)};
Wh.prototype.G=function(){if(this.J){var a=xd(this.A.a),b=za(a),c=ci[b];ci[b]=c-1;1==c&&xg(a.postMessage?a:a.document,"message",Zh,!1,Wh)}this.C&&(p.clearTimeout(this.C),this.C=0);J(this.I);delete this.I;J(this.D);delete this.D;this.j.cancel();delete this.j;this.o.cancel();delete this.o;this.g.cancel();delete this.g;delete this.pa;Kh.prototype.G.call(this)};var Xh=function(a){a=a.split(",");a[1]=a[1]||null;return a};Wh.prototype.a=null;Wh.prototype.J=!1;var ci={};Wh.prototype.C=0;var ei=function(a,b,c){H.call(this);this.a=a;this.o=b||0;this.g=c;this.j=v(this.Dc,this)};x(ei,H);h=ei.prototype;h.Pa=0;h.G=function(){ei.aa.G.call(this);this.stop();delete this.a;delete this.g};h.start=function(a){this.stop();this.Pa=Nh(this.j,void 0!==a?a:this.o)};h.stop=function(){0!=this.Pa&&p.clearTimeout(this.Pa);this.Pa=0};h.Dc=function(){this.Pa=0;this.a&&this.a.call(this.g)};var ii=function(a){var b=[];fi(new hi,a,b);return b.join("")},hi=function(){},fi=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),fi(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),ji(d,c),c.push(":"),fi(a,f,c),
e=","));c.push("}");return}}switch(typeof b){case "string":ji(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},ki={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},li=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,ji=function(a,b){b.push('"',a.replace(li,
function(c){var d=ki[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),ki[c]=d);return d}),'"')};var mi=function(){H.call(this);this.B={}};x(mi,H);mi.prototype.connect=function(a){a&&a()};mi.prototype.isConnected=function(){return!0};mi.prototype.Qa=function(a,b,c){this.B[a]={ba:b,Qb:!!c}};mi.prototype.vb=function(a){this.v=a};var ni=function(a,b){if(b&&"string"===typeof a)try{return JSON.parse(a)}catch(c){return null}else if(!b&&"string"!==typeof a)return ii(a);return a};mi.prototype.G=function(){mi.aa.G.call(this);delete this.B;delete this.v};var oi=function(a){this.a=this.B=this.j="";this.C=null;this.o=this.g="";this.v=!1;var b;a instanceof oi?(this.v=a.v,pi(this,a.j),this.B=a.B,this.a=a.a,qi(this,a.C),this.g=a.g,ri(this,si(a.A)),this.o=a.o):a&&(b=String(a).match(Fd))?(this.v=!1,pi(this,b[1]||"",!0),this.B=ti(b[2]||""),this.a=ti(b[3]||"",!0),qi(this,b[4]),this.g=ti(b[5]||"",!0),ri(this,b[6]||"",!0),this.o=ti(b[7]||"")):(this.v=!1,this.A=new ui(null,this.v))};
oi.prototype.toString=function(){var a=[],b=this.j;b&&a.push(vi(b,wi,!0),":");var c=this.a;if(c||"file"==b)a.push("//"),(b=this.B)&&a.push(vi(b,wi,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,null!=c&&a.push(":",String(c));if(c=this.g)this.a&&"/"!=c.charAt(0)&&a.push("/"),a.push(vi(c,"/"==c.charAt(0)?xi:yi,!0));(c=this.A.toString())&&a.push("?",c);(c=this.o)&&a.push("#",vi(c,zi));return a.join("")};
oi.prototype.resolve=function(a){var b=new oi(this),c=!!a.j;c?pi(b,a.j):c=!!a.B;c?b.B=a.B:c=!!a.a;c?b.a=a.a:c=null!=a.C;var d=a.g;if(c)qi(b,a.C);else if(c=!!a.g){if("/"!=d.charAt(0))if(this.a&&!this.g)d="/"+d;else{var e=b.g.lastIndexOf("/");-1!=e&&(d=b.g.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=0==e.lastIndexOf("/",0);e=e.split("/");for(var f=[],g=0;g<e.length;){var k=e[g++];"."==k?d&&g==e.length&&f.push(""):".."==k?((1<f.length||1==f.length&&
""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.g=d:c=""!==a.A.toString();c?ri(b,si(a.A)):c=!!a.o;c&&(b.o=a.o);return b};
var pi=function(a,b,c){a.j=c?ti(b,!0):b;a.j&&(a.j=a.j.replace(/:$/,""))},qi=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.C=b}else a.C=null},ri=function(a,b,c){b instanceof ui?(a.A=b,Ai(a.A,a.v)):(c||(b=vi(b,Bi)),a.A=new ui(b,a.v))},ti=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},vi=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Ci),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Ci=function(a){a=
a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},wi=/[#\/\?@]/g,yi=/[#\?:]/g,xi=/[#\?]/g,Bi=/[#\?@]/g,zi=/#/g,ui=function(a,b){this.g=this.a=null;this.j=a||null;this.o=!!b},Di=function(a){a.a||(a.a=new Kf,a.g=0,a.j&&Hd(a.j,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};ui.prototype.add=function(a,b){Di(this);this.j=null;a=Ei(this,a);var c=this.a.get(a);c||this.a.set(a,c=[]);c.push(b);this.g+=1;return this};
var Fi=function(a,b){Di(a);b=Ei(a,b);Mf(a.a.g,b)&&(a.j=null,a.g-=a.a.get(b).length,a=a.a,Mf(a.g,b)&&(delete a.g[b],a.j--,a.a.length>2*a.j&&Lf(a)))},Gi=function(a,b){Di(a);b=Ei(a,b);return Mf(a.a.g,b)};h=ui.prototype;h.forEach=function(a,b){Di(this);this.a.forEach(function(c,d){y(c,function(e){a.call(b,e,d,this)},this)},this)};h.va=function(){Di(this);for(var a=this.a.ca(),b=this.a.va(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
h.ca=function(a){Di(this);var b=[];if("string"===typeof a)Gi(this,a)&&(b=Oa(b,this.a.get(Ei(this,a))));else{a=this.a.ca();for(var c=0;c<a.length;c++)b=Oa(b,a[c])}return b};h.set=function(a,b){Di(this);this.j=null;a=Ei(this,a);Gi(this,a)&&(this.g-=this.a.get(a).length);this.a.set(a,[b]);this.g+=1;return this};h.get=function(a,b){if(!a)return b;a=this.ca(a);return 0<a.length?String(a[0]):b};
h.toString=function(){if(this.j)return this.j;if(!this.a)return"";for(var a=[],b=this.a.va(),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.ca(d);for(var f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}}return this.j=a.join("&")};
var si=function(a){var b=new ui;b.j=a.j;a.a&&(b.a=new Kf(a.a),b.g=a.g);return b},Ei=function(a,b){b=String(b);a.o&&(b=b.toLowerCase());return b},Ai=function(a,b){b&&!a.o&&(Di(a),a.j=null,a.a.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(Fi(this,d),Fi(this,e),0<c.length&&(this.j=null,this.a.set(Ei(this,e),Pa(c)),this.g+=c.length))},a));a.o=b};var Ii=function(a,b){mi.call(this);for(var c=0,d;d=Hh[c];c++)if(d in a&&!/^https?:\/\//.test(a[d]))throw Error("URI "+a[d]+" is invalid for field "+d);this.a=a;this.name=this.a.cn||Jh();this.g=b||rd();this.j=[];this.A=new Dg(this);a.lpu=a.lpu||Gd(xd(this.g.a).location.href)+"/robots.txt";a.ppu=a.ppu||Gd(a.pu||"")+"/robots.txt";Yf[this.name]=this;zg(window,"unload",Hi)||qg(window,"unload",Hi)};n(Ii,mi);h=Ii.prototype;h.isConnected=function(){return 2==this.Xa};h.getConfig=function(){return this.a};
h.connect=function(a){this.o=a||t;3==this.Xa&&(this.Xa=1);this.Ka?Ch(this.Ka,this.Bb):this.Bb()};
h.Bb=function(){this.Ka=null;this.a.ifrid&&(this.mb=this.g.S(this.a.ifrid));if(this.mb){var a=this.mb.contentWindow;a||(a=window.frames[this.a.ifrid]);this.Z=a}if(!this.Z){if(window==window.top)throw Error("CrossPageChannel: Can't connect, peer window-object not set.");this.Z=window.parent}if(!this.qa){this.a.tp||(this.a.tp="function"===typeof document.postMessage||"function"===typeof window.postMessage||C&&window.postMessage?1:0);if("function"===typeof this.a.tp)this.qa=new this.a.tp(this,this.g);
else switch(this.a.tp){case 1:this.qa=new Wh(this,this.a.ph,this.g,!!this.a.osh,this.a.nativeProtocolVersion||2);break;case 2:if(a=this.Z)try{a=window.document.domain==this.Z.document.domain}catch(b){a=!1}a&&(this.qa=new Qh(this,this.g))}if(!this.qa)throw Error("CrossPageChannel: No suitable transport found! You may try injecting a Transport constructor directly via the channel config object.");}for(this.qa.connect();0<this.j.length;)this.j.shift()()};
h.close=function(){this.Ka&&(this.Ka.cancel(),this.Ka=null);this.j.length=0;Hg(this.A);this.Xa=3;J(this.qa);this.o=this.qa=null;J(this.ua);this.ua=null};var Vh=function(a,b){a.isConnected()||a.ua&&0!=a.ua.Pa||(a.Xa=2,J(a.ua),void 0!==b?(a.ua=new ei(a.o,b),a.ua.start()):(a.ua=null,a.o()))};Ii.prototype.wa=function(a,b){if(this.isConnected()){try{var c=!!this.Z&&!this.Z.closed}catch(d){c=!1}c?(wa(b)&&(b=ii(b)),this.qa.pa(Ji(a),b)):this.close()}};
Ii.prototype.bb=function(a,b,c){this.Ka?this.j.push(v(this.bb,this,a,b,c)):Yh(this,c)&&!this.K()&&3!=this.Xa&&(a&&"tp"!=a?this.isConnected()&&(a=a.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),a=Ki.test(a)?a.substring(1):a,a=(c=this.B[a])?c:this.v?{ba:Ca(this.v,a),Qb:wa(b)}:null)&&(b=ni(b,a.Qb),null!=b&&a.ba(b)):this.qa.fc(b))};
var Ji=function(a){Li.test(a)&&(a="%"+a);return a.replace(/[%:|]/g,encodeURIComponent)},Ph=function(a){var b=a.a.role;return"number"===typeof b?b:window.parent==a.Z?1:0},Oh=function(a,b){delete Yf[a.name];a.name=b;Yf[b]=a},Yh=function(a,b){var c=a.a.ph;return z(B(b))||z(B(c))||b==a.a.ph};Ii.prototype.G=function(){this.close();this.mb=this.Z=null;delete Yf[this.name];J(this.A);delete this.A;mi.prototype.G.call(this)};var Hi=function(){for(var a in Yf)J(Yf[a])},Li=/^%*tp$/,Ki=/^%+tp$/;h=Ii.prototype;
h.ua=null;h.Ka=null;h.qa=null;h.Xa=1;h.Z=null;h.mb=null;var Mi=function(a){var b={};y(a.split("&"),function(c){c=c.split("=");b[c[0]]=c[1]});return b},Ni=function(a){var b=[];Ta(a,function(c,d){b.push(d+"="+c)});return b.join("&")};var Oi={$e:"devicemotion",af:"deviceorientation",uf:"hostpageScroll",ef:"enterViewport",hf:"exitViewport",Je:"adLocation"},Pi={},Qi;for(Qi in Oi)Pi[Oi[Qi]]=!0;var Ri=["hostpageScroll","enterViewport","exitViewport","adLocation"];q("studio.common.gdn.Environment.EngagementPhase",{INVITATION:0,ENGAGED:1,INVITATION_LARGE_CANVAS:2},void 0);var Si=function(a){this.a=a};Si.prototype.toString=function(){return(this.a&2?"b":"t")+(this.a&1?"r":"l")};q("studio.common.mde.Direction",Si,void 0);Si.Corner={bg:0,cg:1,Me:2,Ne:3};var Ti={Sf:"s",Hf:"l",We:"i",Xf:"x",Wf:"c",Gf:"r",Ff:"n",Vf:"t",Yf:"m",dg:"u"};var Ui=function(a,b,c,d,e){this.name=a;this.reportingId=b;this.type=c;this.o=d;this.v=e;this.chargeable=!1},Vi=function(a){switch(a){case "Exit":return"Exit";case "Count":return"Counter";case "Start":case "Stop":return"Timer";default:throw"Unsupported event action";}};var Wi={DISPLAY_TIMER:{id:null,type:"Timer",L:!0,M:!0},INTERACTION_TIMER:{id:null,type:"Timer",L:!0,M:!0},INTERACTIVE_IMPRESSION:{id:null,type:"Counter",L:!0,M:!1},MANUAL_CLOSE:{id:null,type:"Counter",L:!0,M:!0},EXPAND_TIMER:{id:null,type:"Timer",L:!0,M:!1},FULL_SCREEN:{id:null,type:"Counter",L:!0,M:!0},SCROLL:{id:null,type:"Counter",L:!0,M:!0},LARGE_SCROLL:{id:null,type:"Counter",L:!0,M:!0},SMALL_SCROLL:{id:null,type:"Counter",L:!0,M:!0},ENGAGEMENT:{id:null,type:"Counter",L:!0,M:!0},VIDEO_PLAY:{id:null,
type:"Counter",L:!0,M:!1},VIDEO_VIEW_TIMER:{id:null,type:"Timer",L:!0,M:!0},VIDEO_COMPLETE:{id:null,type:"Counter",L:!0,M:!1},VIDEO_INTERACTION:{id:null,type:"Counter",L:!0,M:!0},VIDEO_PAUSE:{id:null,type:"Counter",L:!0,M:!0},VIDEO_MUTE:{id:null,type:"Counter",L:!0,M:!0},VIDEO_REPLAY:{id:null,type:"Counter",L:!0,M:!0},VIDEO_FIRST_QUARTILE:{id:null,type:"Counter",L:!0,M:!0},VIDEO_MIDPOINT:{id:null,type:"Counter",L:!0,M:!0},VIDEO_THIRD_QUARTILE:{id:null,type:"Counter",L:!0,M:!0},VIDEO_STOP:{id:null,
type:"Counter",L:!0,M:!0},VIDEO_UNMUTE:{id:null,type:"Counter",L:!0,M:!0},BACKUP_IMAGE_IMPRESSION:{id:null,type:"Counter",L:!0,M:!0},HTML5_CREATIVE_IMPRESSION:{id:null,type:"Counter",L:!0,M:!0}},Xi=function(a){var b=Wi[a];return b?new Ui(a,b.id,b.type,b.L,b.M):null};var Yi={3:"INTERACTION_TIMER",EVENT_USER_INTERACTION:"INTERACTIVE_IMPRESSION",EVENT_MANUAL_CLOSE:"MANUAL_CLOSE",EVENT_VIDEO_PLAY:"VIDEO_PLAY",EVENT_VIDEO_VIEW_TIMER:"VIDEO_VIEW_TIMER",EVENT_VIDEO_COMPLETE:"VIDEO_COMPLETE",EVENT_VIDEO_INTERACTION:"VIDEO_INTERACTION",EVENT_VIDEO_PAUSE:"VIDEO_PAUSE",EVENT_VIDEO_MUTE:"VIDEO_MUTE",EVENT_VIDEO_REPLAY:"VIDEO_REPLAY",EVENT_VIDEO_FIRSTQUARTILE:"VIDEO_FIRST_QUARTILE",EVENT_VIDEO_MIDPOINT:"VIDEO_MIDPOINT",EVENT_VIDEO_THIRDQUARTILE:"VIDEO_THIRD_QUARTILE",EVENT_VIDEO_STOP:"VIDEO_STOP",
EVENT_VIDEO_UNMUTE:"VIDEO_UNMUTE",EVENT_FULLSCREEN:"FULL_SCREEN",DISPLAY_TIMER:"DISPLAY_TIMER",INTERACTION_TIMER:"INTERACTION_TIMER",INTERACTIVE_IMPRESSION:"INTERACTIVE_IMPRESSION",MANUAL_CLOSE:"MANUAL_CLOSE",EXPAND_TIMER:"EXPAND_TIMER",FULL_SCREEN:"FULL_SCREEN",SCROLL:"SCROLL",LARGE_SCROLL:"LARGE_SCROLL",SMALL_SCROLL:"SMALL_SCROLL",ENGAGEMENT:"ENGAGEMENT",VIDEO_PLAY:"VIDEO_PLAY",VIDEO_VIEW_TIMER:"VIDEO_VIEW_TIMER",VIDEO_COMPLETE:"VIDEO_COMPLETE",VIDEO_INTERACTION:"VIDEO_INTERACTION",VIDEO_PAUSE:"VIDEO_PAUSE",
VIDEO_MUTE:"VIDEO_MUTE",VIDEO_REPLAY:"VIDEO_REPLAY",VIDEO_FIRST_QUARTILE:"VIDEO_FIRST_QUARTILE",VIDEO_MIDPOINT:"VIDEO_MIDPOINT",VIDEO_THIRD_QUARTILE:"VIDEO_THIRD_QUARTILE",VIDEO_STOP:"VIDEO_STOP",VIDEO_UNMUTE:"VIDEO_UNMUTE",BACKUP_IMAGE_IMPRESSION:"BACKUP_IMAGE_IMPRESSION",HTML5_CREATIVE_IMPRESSION:"HTML5_CREATIVE_IMPRESSION"};var Zi=function(a){if(2==a&&p.googletag&&p.googletag.hostpageLibraryTokens)return p.googletag.hostpageLibraryTokens;if(0==a)return p.goog_safeframe_hlt;if(1==a)try{return p.parent.googletag.hostpageLibraryTokens}catch(b){}return{}},$i=function(){var a=Zi(0);Xa(a)&&(a=Zi(1));Xa(a)&&(a=Zi(2));return a};var Af=["http://tpc.googlesyndication.com","https://tpc.googlesyndication.com","https://secureframe.doubleclick.net"];var aj=function(){this.v=1;this.a=null;this.j="*";this.g="";this.o=!0},bj=function(a){H.call(this);this.v=p;this.j=a.a||null;this.g=a.j;this.A=a.g;this.o=ih();this.a=null};n(bj,H);bj.prototype.G=function(){this.o.promise.cancel();this.a&&yg(this.a)};var cj=function(a,b){var c="*"==a.g||a.g==b.origin;return(null==a.j||a.j==b.source)&&c},dj=function(a){return"REQ_BASE"==a||"REQ_BASE_USE_PM"==a};
bj.prototype.B=function(){var a=this,b=null,c=null;this.a=N(this.v,"message",function(d){var e=d.na;cj(a,e)&&(d=b&&(b.isInitialized()||c==e.source),dj(e.data)&&!d?(b&&(b.dispose(),b=null),d="REQ_BASE"==e.data,c=e.source,b=new zf(c,a.A,d),b.registerApplicationHandler("connection",function(f){"ACK"==f&&(a.j=e.source,yg(a.a),a.a=null,a.o.resolve(b))}),e.source.postMessage("BASE_Y",a.g),e.stopImmediatePropagation()):"REMOTE_Y"==e.data&&e.source==c&&(b.sendMessage("connection","SYN"),e.stopImmediatePropagation()))});
return this.o.promise};var ej=function(a){H.call(this);this.C=p;this.o=a.a;this.j=a.j;this.D=a.g;this.A=a.o;this.v=ih();this.a=null;this.g=new Mh(200)};n(ej,H);ej.prototype.G=function(){this.v.promise.cancel();this.g.stop();this.g.dispose()};
var fj=function(a,b){"*"!=a.j&&a.j!=b.origin||a.o!=b.source||"BASE_Y"!=b.data||(a.a&&(a.a.dispose(),a.a=null),a.a=Cf(a.o,b.origin,a.D,a.A),a.a&&(a.a.registerApplicationHandler("connection",function(c){"SYN"==c&&(a.a.sendMessage("connection","ACK"),a.v.resolve(a.a))}),a.o.postMessage("REMOTE_Y",a.j)))};
ej.prototype.B=function(){var a=this,b=N(this.C,"message",function(d){fj(a,d.na)}),c=this.A?"REQ_BASE":"REQ_BASE_USE_PM";this.o.postMessage(c,this.j);N(this.g,"tick",function(){a.o.postMessage(c,a.j)});this.v.promise.then(function(){a.g.stop();var d=a.g;if(d)if(eg(d))d.ea&&lg(d.ea);else if(d=tg(d)){var e=0,f;for(f in d.a)for(var g=d.a[f].concat(),k=0;k<g.length;++k)yg(g[k])&&++e}yg(b)});this.g.start();return this.v.promise};var gj=function(a){H.call(this);this.j=a;this.g=ih();this.a=null};n(gj,H);
h=gj.prototype;h.G=function(){this.j.dispose();this.a&&this.a.dispose&&this.a.dispose()};h.connect=function(a){var b=this;this.j.B().then(function(c){b.a=c;b.g.resolve(c);a&&a()})};h.isConnected=function(){return this.a?this.a.isInitialized():!1};h.Qa=function(a,b){this.g.promise.then(function(c){c.registerApplicationHandler(a,function(d){b("number"===typeof d?d+"":d)})})};h.vb=function(){};h.wa=function(a,b){this.a?this.a.sendMessage(a,b):this.g.promise.then(function(c){c.sendMessage(a,b)})};var hj=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};var mj=function(a){var b={},c=b.document||document,d=jb(a).toString(),e=zd(document,"SCRIPT"),f={Ub:e,ec:void 0},g=new Q(ij,f),k=null,l=null!=b.timeout?b.timeout:5E3;0<l&&(k=window.setTimeout(function(){jj(e,!0);g.A(new kj(1,"Timeout reached for loading script "+d))},l),f.ec=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(jj(e,b.jg||!1,k),g.ba(null))};e.onerror=function(){jj(e,!0,k);g.A(new kj(0,"Error while loading script "+d))};f=b.attributes||
{};Za(f,{type:"text/javascript",charset:"UTF-8"});ud(e,f);e.src=jb(a);hc(e);lj(c).appendChild(e);return g},lj=function(a){var b=(a||document).getElementsByTagName("HEAD");return b&&0!=b.length?b[0]:a.documentElement},ij=function(){if(this&&this.Ub){var a=this.Ub;a&&"SCRIPT"==a.tagName&&jj(a,!0,this.ec)}},jj=function(a,b,c){null!=c&&p.clearTimeout(c);a.onload=t;a.onerror=t;a.onreadystatechange=t;b&&window.setTimeout(function(){Ad(a)},0)},kj=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=
": "+b);Ea.call(this,c);this.code=a};x(kj,Ea);var nj=function(a,b,c,d,e){this.A=a;this.a="";b&&(this.a=/^(http[s]?:)?\/\//.test(b)?b:"//pagead2.googlesyndication.com/activeview?avi="+b);this.v=c||"";this.j=!1;this.o=d||"//www.googletagservices.com/activeview/js/current/lidar.js";this.g=e||null},oj=function(a,b){b.setAttribute("id","DfaVisibilityIdentifier_"+w());if(b.classList)b.classList.add("GoogleActiveViewClass");else{if(b.classList)var c=b.classList.contains("GoogleActiveViewClass");else c=b.classList?b.classList:hj(b).match(/\S+/g)||[],
c=0<=Ha(c,"GoogleActiveViewClass");c||(c=hj(b),c+=0<c.length?" GoogleActiveViewClass":"GoogleActiveViewClass","string"==typeof b.className?b.className=c:b.setAttribute&&b.setAttribute("class",c))}b._avicxn_=a.a;b._avm_=a.v;if(a.g){b.classList.add(a.g.active_view_class_name);for(var d in a.g)a.g.hasOwnProperty(d)&&0===d.indexOf("data-google-av")&&b.setAttribute(d,a.g[d])}a.j||(mj(ae(a.o)),a.j=!0)},qj=function(a){a.a&&pj(a.A,a.a+"&id=lidar2&r=w&rs=5r&v=0")};var rj=function(a,b,c){M.call(this,a);this.data=c};x(rj,M);var sj=function(a,b,c,d){M.call(this,a);this.g=b;this.A=c;this.F=!!d};x(sj,M);var tj=function(a,b,c,d){"Count"==b&&(d=!0);sj.call(this,a,b,!0,d);this.j=c};x(tj,sj);var uj=function(a,b,c,d){tj.call(this,a,b,c);this.videoName=d};x(uj,tj);var vj=function(a,b,c,d,e){sj.call(this,a,b,!1,e);this.v=c;this.D=d};x(vj,sj);var wj=function(a,b){M.call(this,"reportCustomVariable");this.g=a;this.j=b};x(wj,M);
var xj=function(a,b,c,d,e,f){vj.call(this,a,"Exit",b,!0);this.B="null"!=c?c:null;this.j="null"!=d?d:null;this.C=e;this.log=f};x(xj,vj);var yj=function(a){M.call(this,"invokeExternalJSFunction");this.g=a};x(yj,M);var zj=function(a,b,c){M.call(this,"setTimerAdjustment");this.v=a;this.g=b;this.j=c};x(zj,M);var Aj=function(a){M.call(this,"registerChargeableEventName");this.g=a};x(Aj,M);var Bj=function(a){M.call(this,"updateVideoProgress");this.duration=a};x(Bj,M);var Ej=function(a,b){switch(a){case "logEvent":return Cj(b);case "logVideoEvent":return new uj("logVideoEvent",b[0],Yi[b[2]],b[1]);case "updateVideoProgress":return new Bj(b[1],b[2]);case "logEventFlushCounters":return b[0]="Exit",Cj(b,!0);case "logExitFlushEventsOpenPopup":return Dj(b,!0);case "launchExit":return Dj(b,!1);case "recordTimings":return new rj("recordTimings",null,b[0]);case "reportCustomVariable":return new wj(b[0],b[1]);case "flushCounters":return new M("flushCounters");case "conduitInitialized":return new rj("conduitInitialized",
null,{features:b[1]&&Array.isArray(b[1])&&0!=b[1].length?b[1]:null});case "expandAsset":return new rj("expandAsset",null,1<b.length?b[1]:null);case "expandRequested":return new rj("expandRequested",null,1<b.length?b[1]:null);case "expandFinished":case "collapseAsset":case "collapseRequested":case "collapseFinished":case "tellAssetHide":return new rj(a);case "invokeExternalJSFunction":return new yj(b[0]);case "setTimerAdjustment":return new zj(Yi[b[0]],parseFloat(b[1]),parseFloat(b[2]));case "registerChargeableEventName":return new Aj(b[0]);
case "fullscreenExpandRequested":return new rj(a,null,b);case "setResponsiveBehavior":return new rj(a,null,{behavior:b[0],state:b[1]});case "responsiveResize":return new rj(a,null,{width:b[0],height:b[1]});case "isFullscreenSupported":case "queryFullscreenDimensions":case "fullscreenExpandFinished":case "fullscreenCollapseRequested":case "fullscreenCollapseFinished":return new rj(a);case "AD_CLICKED":return new M("AD_CLICKED");case "registerEventTypeListenerForType":return new rj(a,null,{type:b[0],
Ed:b[1]});case "getHostpageFeatures":return new rj("getHostpageFeatures",null,{type:b[0]})}return null},Cj=function(a,b){var c=a[0],d=a[1],e=Fj(a[3]);return Fj(a[4])?new vj("logEvent",c,d,e,b):new tj("logEvent",c,Yi[d],b)},Dj=function(a,b){return new xj("logExitFlushEventsOpenPopup",a[1],a[4],a[5]||null,a[6],b)},Fj=function(a){return null!=a?"true"==a.toString().toLowerCase():!1};var Gj=function(a){a=a?a.toLowerCase():"";switch(a){case "normal":return"normal";case "lightbox":return"lightbox";case "push_down":return"push_down"}return null};var Ij=function(a){this.D=a.eventReportingUrl||"";this.T=a.clickUrl||"";this.C=a.clickUrlTimesToEscape||"1";this.a=a.clickEventTagUrl||"";this.j=a.impressionUrl||"";this.I=a.geoData||"";this.N=a.siteName||"";this.V=a.siteId||"";this.v=a.adId||"";this.B=a.buyId||"";this.creativeId=a.creativeId||"";this.P=a.placementId||"";this.A=a.advertiserId||"";this.K=a.keyValueOrdinal||"";this.J=a.renderingId||"";this.randomNumber=a.randomNumber||"";this.O=a.stringReportingUrl||"";this.g=a.bookingTimeMetaData||
{};this.W=new Hj(a.tag||{});this.X=a.urlToGetKeywordsFor||"";this.F=a.exitSuffix||"";this.U=a.dynamicData||"";this.H=a.exitUrlPatternMacroValues;this.o=a.activeViewClkStr||"";this.R=a.activeViewUrlPrefix||""},Hj=function(a){this.g=a.adContainerElementId;this.a=a.runtimeMetaData||{};this.expansionMode=Gj(a.expansionMode);this.j=!!a.renderFloatInplace};var Jj=function(a,b){this.a=a;this.expansionMode=b;this.g="push_down"==b};var Kj=function(a,b,c){this.a=a;this.o=b;this.j=-1<b;this.endTime=c;this.g=-1<c};var Lj=function(a,b){this.g=a;this.a=z(B(b))?"0_0":b};var Mj=function(){};var Nj=function(){this.a=!1};var Pj=function(a,b){this.top=parseInt(a,10);this.g=Oj(a);this.left=parseInt(b,10);this.a=Oj(b)},Oj=function(a){return Ma(Qj,function(b){var c=String(b).toLowerCase();b=String(a.substr(a.length-b.length,b.length)).toLowerCase();return 0==(c<b?-1:c==b?0:1)})||"px"},Qj=["px","%","pxc"];var Sj=function(a){this.a=null;a=fa(a.renderers);for(var b=a.next();!b.done;b=a.next())switch(b=b.value,b.type){case 1:this.a=new Rj(b)}},Rj=function(a){this.iframeId=a.iframeId;this.channelName=a.channelName;this.className=a.className};var Tj={Te:"ad_container_id",tf:"hideObjects",Mf:"mtfTop",Lf:"mtfLeft",hg:"zindex",bf:"mtfDuration",gg:"wmode",Nf:"preferFlash",pf:"as_kw",qf:"as_lat",rf:"as_lng",xf:"mtfIFPath",lf:"expansionMode",Tf:"mtfRenderFloatInplace",Ze:"debugjs",Bf:"dcapp",Oe:"breakoutiframe",Cf:"inMobileAdSdk"};(function(){var a={};Ta(Tj,function(b){a[b.toLowerCase()]=b});return a})();var Uj=function(a,b,c,d,e){this.id=a;this.A=b;this.v=c;this.K="BANNER"==c||"EXPANDABLE"==c||"VPAID_LINEAR"==c||"VPAID_NON_LINEAR"==c;this.width=d.width;this.height=d.height;this.C=this.D=null;this.B=e;this.content=null;this.I=0;this.layoutsConfig=this.H=this.g=this.F=this.a=this.j=this.o=null},Vj={adContainerElementId:"ad_container_id",zIndex:"zindex",expansionMode:"expansionMode",duration:"mtfDuration",wmode:"wmode",top:"mtfTop",left:"mtfLeft",renderFloatInplace:"mtfRenderFloatInplace"},Wj=function(a){var b=
a.a&&a.a.a;if(b){var c=b.left,d=b.top;3>=Math.abs(c)&&(b.left=0);3>=Math.abs(d)&&(b.top=0);3>=Math.abs(c+b.width-a.width)&&(0==b.left?b.width=a.width:b.left=a.width-b.width);3>=Math.abs(d+b.height-a.height)&&(0==b.top?b.height=a.height:b.top=a.height-b.height)}};Uj.prototype.toString=function(){return"[PrimaryFile "+this.id+"]"};
var Xj=function(a,b){var c=b.zindex;null!=c&&(c=parseInt(c,10),isNaN(c)||(a.I=c));c=b.expansionMode;null==c||z(B(c))||null===a.a||(c=Gj(c),null!==c&&(a.a.expansionMode=c));if(null!==a.j){c=parseInt(b.mtfDuration,10);isNaN(c)||(a.j.endTime=c,a.j.g=!0);c=[];var d=b.mtfLeft;c[0]=b.mtfTop;c[1]=d;2<=c.length&&(d=parseInt(c[0],10),isNaN(d)||(a.j.a.top=d,a.j.a.g=Oj(c[0])),d=parseInt(c[1],10),isNaN(d)||(a.j.a.left=d,a.j.a.a=Oj(c[1])))}c=b.mtfRenderFloatInplace;if(a.K||"true"==c)b=b.ad_container_id,z(B(b))||
(a.C=b)},Yj=function(a){return"number"===typeof a&&!isNaN(a)};var Zj=function(a,b,c){this.a=a;this.g=b;this.Vb=!!c};Zj.prototype.ha=function(){return this.a};Zj.prototype.ping=function(){pj(this.g,this.a,this.Vb)};var ak={Re:"CLICK",zf:"IMPRESSION_JS",yf:"IMPRESSION_IMG",Ke:"ARTWORK_IMPRESSION",df:"ENGAGEMENT_IMG",kf:"EXPANSION"},bk=["IMPRESSION_IMG","ARTWORK_IMPRESSION"];q("THIRD_PARTY_TYPES_TO_PING_AT_IMPRESSION_TIME",bk,void 0);var ck=function(a){a:{for(b in ak)if(ak[b]==a){var b=!0;break a}b=!1}return b?a:null};var dk=function(a){this.a=!!a},pj=function(a,b,c){c?a.a||z(B(b))||null===b||(Vd()?Ud(window,b,!0):(a=p.document,a.body?(c=a.getElementById("goog-srcless-iframe"),c||(c=zd((new pd(a)).a,"IFRAME"),c.style.display="none",c.id="goog-srcless-iframe",a.body.appendChild(c)),a=c):a=null,a&&a.contentWindow&&Ud(a.contentWindow,b,!0))):a.a||z(B(b))||(window.studioV2_image_requests||(window.studioV2_image_requests=[]),a=zd(document,"img"),a.src=b,window.studioV2_image_requests.push(a))};var ek=function(){this.j=this.o=this.A=this.height=this.width=this.g=this.target=this.a="";this.v=[]},fk=function(a){var b=Ma(a.primaryFiles,function(f){return"BACKUP_IMAGE"==f.renderAs});if(null===b)return null;var c=new ek;c.g=b.url||c.g;c.width=b.width||c.width;c.height=b.height||c.height;c.A=a.impressionUrl;b=Ma(a.exitEvents,function(f){return!!f.backUpExit});null!==b&&(b.destinationUrl&&(c.a=a.clickUrl?Vf(a.clickUrl,b.destinationUrl,b.reportingId):b.destinationUrl),c.target=b.targetWindow||c.target);
b=Ma(a.thirdPartyUrls,function(f){return"IMPRESSION_IMG"==f.type});null!==b&&(c.j=b.url||c.j);if(null!=a.thirdPartyUrls){b=a.thirdPartyUrls;for(var d=new dk(a.previewMode||!1),e=0;e<b.length;e++)"CLICK"==ck(b[e].type)&&c.v.push(new Zj(b[e].url,d,"true"==b[e].scrub))}a=a.eventTrackingBaseUrl;null!=a&&(";"!=a.charAt(a.length-1)&&(a+=";"),c.o=a+"met=1;&timestamp="+ +new Date+";eid1=9;ecn1=1;etm1=0;");return c};var gk=function(a){this.g=a.sourceFilename;this.quality=a.quality;this.j=a.mimetype;this.a=a.isTeaser};var hk=function(a,b,c,d){this.name=a;this.url=b;null!=d&&(this.url=0!=this.url.indexOf("/")?d+"/"+this.url:d+this.url);c&&(this.url=this.url.replace(/^http:\/\//,"https://"));this.j=!1;this.a=this.g=null},jk=function(a,b){b=new hk(a.name,a.url,b);a.isVideo&&ik(b,a.streamingUrl,a.transcodeInformation);return b},ik=function(a,b,c){a.j=!0;a.g=b||null;a.a=c?new gk(c):null};var kk=function(a){this.id=a.id;this.uniqueId=a.uniqueId;this.g=new Ij(a.adServerData||{});this.o=a.isPreviewEnvironment;this.a=a.thirdPartyImpressionUrls||[];this.A=a.thirdPartyArtworkImpressionUrl;this.C=a.hasHtmlAsset;this.v=a.requiresCss3Animations;this.H=a.renderingLibrary||"";this.D=a.httpMediaServer||"";this.F=a.httpsMediaServer||"";this.j=a.html5FeatureChecks;var b;if(b=a.backupImage){a=a.backupImage;b=this.o;var c=this.g.a,d=this.g.j;if(null==a)b=null;else{var e=new ek;e.a=a.exitUrl||e.a;
e.target=a.target||e.target;e.g=a.imageUrl||e.g;e.width=a.width||e.width;e.height=a.height||e.height;e.o=a.backupDisplayActivityUrl||e.o;e.j=a.thirdPartyBackupImpressionUrl||e.j;e.A=d;z(B(c))||(e.v=[new Zj(c,new dk(b))]);b=e}}this.B=b||null};var lk=function(a,b,c){Ui.call(this,a,b,"Exit",!1,!0);this.url=c;this.j="_blank";this.g=null};x(lk,Ui);var mk=function(a,b){this.zb=a;this.cb=b},ok=function(a){var b=a.split(":");if(2==b.length&&(a=b[0],b=nk[b[1]]))return new mk(a,b)},nk={Complete:"VIDEO_COMPLETE",Interaction:"VIDEO_INTERACTION",MidPoint:"VIDEO_MIDPOINT",Mute:"VIDEO_MUTE",Pause:"VIDEO_PAUSE",Play:"VIDEO_PLAY",Replay:"VIDEO_REPLAY",Stop:"VIDEO_STOP",Unmute:"VIDEO_UNMUTE",ViewTime:"VIDEO_VIEW_TIMER"};var pk=function(a,b,c,d){this.a=d;d=!1;this.a&&this.a.cb&&(d=Xi(this.a.cb).v);Ui.call(this,a,b,c,!1,d)};x(pk,Ui);var qk=function(a){var b=a.toLowerCase();a=[];var c=0;/^https?:\/\//.test(b)?(a[0]=0,c="s"==b.charAt(4)?8:7):a[0]=-1;a[1]=c;b=[b.indexOf(":",c),b.indexOf("/",c),b.indexOf("?",c),b.indexOf("#",c)];for(c=0;c<b.length;++c)if(-1==b[c])a[c+2]=-1;else{for(var d=!0,e=c+1;e<b.length;++e)-1<b[e]&&b[c]>b[e]&&(d=!1);a[c+2]=d?b[c]:-1}this.a=a};var rk=function(a,b,c){this.B=a;this.o=b.g;this.A=b.j;this.g=b.a;this.j=c.g;this.v=c.j;this.a=c.a},tk=function(a){return new rk(a.name,new sk(a.vfp_low,a.vfp_mid,a.vfp_high),new sk(a.pfp_low,a.pfp_mid,a.pfp_high))},sk=function(a,b,c){this.g=a||null;this.j=b||null;this.a=c||null};var uk={Qf:"varName",Xe:"creativeId",Le:"assetId",Se:"click",gf:"clickN",Qe:"assets",eg:"vcData",ff:"exitEvents",ag:"thirdPartyClickRedirect",Ue:"googleDiscoveryUrl",wf:"adSiteUrl",$f:"isGCNAd",vf:"td",Pf:"assetType",Pe:"br",Jf:"os",Ie:"sn",He:"sid",ye:"adv",Ae:"buy",Fe:"pid",ze:"aid",Ce:"cid",Ge:"rid",Ee:"kid",De:"geo",Be:"randomNumber",cf:"dcData",Df:"ispushdown",jf:"expEnv",Ef:"layoutsConfig",Rf:"rv",Ye:"customMetaData",Of:"previewFrameId",nf:"experiments",Uf:"rum_config"};var vk=function(a){return(a=a.match(/([^:]+):([^:]*):([^:]*):(.+)/))&&5==a.length?{type:a[1],name:unescape(a[2]),videoName:unescape(a[3]),trigger:a[4]}:null};var wk=function(a,b){if(a.o&&a.o.a){if("latest"==a.o.a)return!0;var c=a.o.a.split("_");if(2===c.length)return a=parseInt(c[0],10),c=parseInt(c[1],10),1<a||1===a&&c>=b}return!1};var xk=function(a,b){if("boolean"===typeof a)return a;if("string"===typeof a){if("true"===a)return!0;if("false"===a)return!1}return b?b:!1};var yk=function(){this.ta=!1;this.B=this.A=this.v=this.$a="";this.g=!1;this.Ga="";this.ma=[];this.Ea=this.la=!1;this.ga="";this.X=null;this.a={};this.K="";this.da=this.Fa=this.N=!1;this.O={ib:"",jb:""};this.o={};this.D=this.fa=this.U="";this.J=1;this.W=this.V="";this.ka=null;this.j=[];this.T=[];this.Ja=[];this.Ha={};this.H={};this.Ia={};this.Ca={};this.F={};this.R=!1;var a={};this.ab=(a.Exit=this.H,a.Timer=this.Ia,a.Counter=this.Ca,a);this.C=this.P=null;this.sa=!1;this.Ta=0;this.Ba=!1;this.Ra=""},
zk=function(a){a=fa(a.j);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.C;if(c&&b.g&&(b=document.getElementById(c)))for(c=b;b=c.firstChild;)c.removeChild(b)}},Fk=function(a,b){if(!a.ta){a.ta=!0;a.$a=b.renderingLibraryData.version;var c=b.creativeParameters;a.v=c.cid||a.v;a.A=c.creative_unique_id||a.A;a.g=xk(b.previewMode,a.g);a.Ga=a.g?b.previewEventsUrl:"";Array.isArray(b.html5Features)&&(a.la=0<=Ha(b.html5Features,"Modernizr.cssanimations"),a.ma=b.html5Features);a.a=c;a.K=c.ad_container_id||
a.K;a.N=xk(c.mtfRenderFloatInplace,a.N);a.Fa=xk(c.generate_ad_slot,a.Fa);a.W=c.exit_suffix||a.W;a.da="https"==((b.renderingLibraryData.renderingLibrary||"").match(Fd)[1]||null);var d=(d=b.renderingLibraryData.renderingLibrary.match(Fd)[3]||null)?decodeURI(d):d;a.O={ib:"http://"+d,jb:"https://"+d};z(B(b.dynamicData))||(a.B=b.dynamicData.replace(/\\"/g,'"'),a.B=a.B.replace(/\\\\/g,"\\"),a.B=a.B.replace(/\\'/g,"'"),a.B=a.B.replace(/:\/\/s(0|1)\.2mdn\.net/g,"://"+d));d=new dk(a.g);if(null!=b.thirdPartyUrls)for(var e=
b.thirdPartyUrls,f=0;f<e.length;++f){var g=ck(e[f].type);null!=g&&(g in a.o||(a.o[g]=[]),a.o[g].push(new Zj(e[f].url,d,"true"==e[f].scrub)))}a.U=Ak(b.eventTrackingBaseUrl,Bk,Ck)||a.U;a.fa=Ak(b.customEventTrackingBaseUrl,Dk,Ek)||a.fa;a.D=b.clickUrl||a.D;c=parseInt(c.clickN,10);a.J=isNaN(c)?a.J:c;a.V=b.impressionUrl||a.V;a.P=fk(b)||a.P;a.C=new nj(d,b.activeViewUrlPrefix||b.clickString,b.activeViewMetadata,b.lidarScriptUrl,b.activeViewAttributes);b.reactiveAdType&&(a.Ta=b.reactiveAdType)}},Ak=function(a,
b,c){if(z(B(a)))return"";var d=new qk(a);var e=d.a[3];if(-1==e)return a;a:{for(var f=4;f<d.a.length;++f)if(-1!=d.a[f]){d=d.a[f];break a}d=-1}f=-1==d?a.substring(e):a.substring(e,d);if(-1==f.toLowerCase().indexOf(";"+b.toLowerCase()+"="))f+=(";"==f.charAt(f.length-1)?"":";")+b+"="+c+";";else{var g=f.toLowerCase().indexOf(";"+b.toLowerCase()+"="),k=f.indexOf("=",g),l=f.indexOf(";",g+1);f=f.replace(f.substring(g,k+1)+(-1==l?f.substring(k+1):f.substring(k+1,l)),";"+b+"="+c)}return a.substring(0,e)+f+
(-1==d?"":a.substring(d))};yk.prototype.toString=function(){return"Creative_"+this.A};
var Gk=function(a,b){return a.X&&void 0!==a.X[b]?a.X[b]:!1},Hk=function(a){var b={},c;for(c in a.a)c in uk||c in Tj||(b[c]=a.a[c]);return b},Ik=function(a){return a.da?a.O.jb:a.O.ib},Jk=function(a,b){if(void 0!==b)return b in a.o?Pa(a.o[b]):[];b=[];for(var c in a.o)b=Oa(b,a.o[c]);return b},Kk=function(a,b){"HTML5"==b.A&&(a.Sa=!0);a.j.push(b)},Lk=function(a){var b=[];y(a.j,function(c){"HTML5"==c.A&&b.push(c)});return b},Ok=function(a,b,c){var d=Mk(a,b);d&&(d.reportingId=c,a.Ha[b]=d,Nk(a,d))},Qk=function(a,
b){var c=a.R;Pk(a,"EXPAND_TIMER",b);a.R=c},Pk=function(a,b,c){return(b=a.F[Rk(b,"Counter")||""]||a.F[Rk(b,"Timer")||""]||Mk(a,b))?(b.chargeable=c,a.R=!0):!1},Nk=function(a,b){if(b){var c;(c=b.o?Sk(a,b.name):b.a?Tk(a,b.a.cb,b.a.zb):Rk(b.name,b.type))&&(a.F[c]=b)}},Uk=function(a,b){var c=b.url;for(f in a.ka){var d=a.ka[f],e="(%pKEY=!;|%%PATTERN:KEY%%)".replace(/KEY/g,f);c=c.replace(new RegExp(e,"g"),d)}b.url=c;if(!a.g){c=a.W;var f=B(c);if(d=!z(f)){d=b.url;a:{e=d.search(Kd);for(var g=0,k=f.length;0<=
(g=d.indexOf(f,g))&&g<e;){var l=d.charCodeAt(g-1);if(38==l||63==l)if(l=d.charCodeAt(g+k),!l||61==l||38==l||35==l){f=g;break a}g+=k+1}f=-1}d=!(0<=f)}d&&(b.url=Jd(b.url,c))}a.H[b.name]=b;Nk(a,b)},Vk=function(a,b){a.Ca[b.name]=b;Nk(a,b)},Wk=function(a,b){a.Ia[b.name]=b;Nk(a,b)},Sk=function(a,b){return(a=Mk(a,b))?[b,escape(""),escape(""),a.type].join(":"):null},Rk=function(a,b){return["CUSTOM_EVENT",escape(a),escape(""),b].join(":")},Tk=function(a,b,c){return(a=Mk(a,b))&&[b,escape(""),escape(c),a.type].join(":")},
Yk=function(a,b){if(!b)return null;if("CUSTOM_EVENT"==b.type||b.videoName){if("CUSTOM_EVENT"==b.type&&!b.videoName){var c=b.trigger;a.ab[c]?(a=a.ab[c],b=b.name,a=a[b]&&a[b].reportingId||null):a=null;return a}if("CUSTOM_EVENT"!=b.type&&b.videoName){a:switch(c=b.videoName,b=Mk(a,b.type),b.type){case "Timer":a=Xk(a.Ia,b,c);a=null!=a?a.reportingId:null;break a;case "Counter":a=Xk(a.Ca,b,c);a=null!=a?a.reportingId:null;break a;default:a=null}return a}}else return(a=Mk(a,b.type))?a.reportingId:null;return null},
Mk=function(a,b){return a.Ha[b]||(a.Ha[b]=Xi(b))},Xk=function(a,b,c){for(var d in a){var e=a[d];if(e.a&&e.a.zb==c&&e.a.cb==b.name)return e}return null},Zk=function(a,b){a.T.push(b);a.I=null},$k=function(a){if(!a.I){a.I={};for(var b=0;b<a.T.length;b++){var c=a.T[b],d=c.name.toLowerCase();if(c.a){if(!c.a.a){c=c.a;var e=c.g.toLowerCase(),f=a.I[e];f||(f={},a.I[e]=f);e=f[c.quality];e||(e={},f[c.quality]=e);e[c.j]=d}}else a.I[d]||(a.I[d]={})}}return a.I},Bk="met",Ck="1",Dk="stragg",Ek="1";
yk.prototype.Sa=!1;var al=function(){R.call(this);this.j=new Dg(this);Pd(this,this.j)};x(al,R);var bl=function(){al.call(this);this.a=window.mraid||null;this.g=!1};n(bl,al);bl.prototype.isVisible=function(){return this.a.isViewable()};bl.prototype.close=function(){return this.a.close()};var cl=function(a){return null!=a.a&&null!=a.a.AFMA_LIDAR};h=bl.prototype;
h.nb=function(){try{this.a.removeEventListener("ready",v(this.nb,this))}catch(a){this.a.removeEventListener("ready")}this.a.addEventListener("viewableChange",v(this.Ob,this));this.a.addEventListener("stateChange",v(this.pd,this));this.dispatchEvent("ready");this.a.isViewable()&&this.Ob()};h.pd=function(){this.dispatchEvent("state_change")};
h.Ob=function(){this.a.isViewable()?this.dispatchEvent("show"):this.dispatchEvent("hide");!this.g&&cl(this)&&(this.a.addEventListener(this.a.AFMA_LIDAR,v(this.qd,this)),this.g=!0)};h.qd=function(a){var b=this.a.getCurrentPosition();b=a.width*a.height/(b.width*b.height);var c=new M("viewable_change");c.visibleBox=new Rd(a.y,a.x+a.width,a.y+a.height,a.x);c.visibilityFraction=b;this.dispatchEvent(c)};h.G=function(){this.a=null;al.prototype.G.call(this)};sa(bl);var dl=/doubleclick.net\/(pf)?ad/;var el=Sa(function(){if(C)return Fc("10.0");var a=zd(document,"DIV"),b=ce(),c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Yb.test("div"))throw Error("");if("DIV"in $b)throw Error("");c=null;var d="";if(b)for(m in b)if(Object.prototype.hasOwnProperty.call(b,m)){if(!Yb.test(m))throw Error("");var e=b[m];if(null!=e){var f=m;var g=e;if(g instanceof fb)g=gb(g);else if("style"==f.toLowerCase()){e=void 0;if(!wa(g))throw Error("");if(!(g instanceof Fb)){var k=
"";for(e in g)if(Object.prototype.hasOwnProperty.call(g,e)){if(!/^[-_a-zA-Z0-9]+$/.test(e))throw Error("Name allows only [-_a-zA-Z0-9], got: "+e);var l=g[e];null!=l&&(l=Array.isArray(l)?Ja(l,Nb).join(" "):Nb(l),k+=e+":"+l+";")}g=k?new Fb(k,Eb):Gb}g=g instanceof Fb&&g.constructor===Fb?g.a:"type_error:SafeStyle"}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in Zb)if(g instanceof ib)g=jb(g).toString();else if(g instanceof xb)g=yb(g);else if("string"===typeof g)g=(Cb(g)||Db).oa();else throw Error("");
}g.ya&&(g=g.oa());f=f+'="'+tb(String(g))+'"';d+=" "+f}}var m="<div"+d;d=void 0;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===$a.div?m+=">":(c=dc(d),m+=">"+Vb(c).toString()+"</div>",c=c.a());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Wb(m,c);fc(a,b);return""!=fe(a.firstChild,"transition")});var fl=!1,gl=function(a){if(a=a.match(/[\d]+/g))a.length=3};
(function(){if(navigator.plugins&&navigator.plugins.length){var a=navigator.plugins["Shockwave Flash"];if(a&&(fl=!0,a.description)){gl(a.description);return}if(navigator.plugins["Shockwave Flash 2.0"]){fl=!0;return}}if(navigator.mimeTypes&&navigator.mimeTypes.length&&(a=navigator.mimeTypes["application/x-shockwave-flash"],fl=!(!a||!a.enabledPlugin))){gl(a.enabledPlugin.description);return}if("undefined"!=typeof ActiveXObject){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");fl=!0;gl(b.GetVariable("$version"));
return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");fl=!0;return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),fl=!0,gl(b.GetVariable("$version"))}catch(c){}}})();var hl=function(a){return(a=a.exec(Ob))?a[1]:""},il=function(){if(Jc)return hl(/Firefox\/([0-9.]+)/);if(C||tc||sc)return Ec;if(Nc)return nc()||A("iPad")||A("iPod")?hl(/CriOS\/([0-9.]+)/):hl(/Chrome\/([0-9.]+)/);if(Oc&&!(nc()||A("iPad")||A("iPod")))return hl(/Version\/([0-9.]+)/);if(Kc||Lc){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ob);if(a)return a[1]+"."+a[2]}else if(Mc)return(a=hl(/Android\s+([0-9.]+)/))?a:hl(/Version\/([0-9.]+)/);return""}();var jl=xc||yc,kl,ll=document.createElement("VIDEO");kl=ll&&ll.canPlayType&&(ll.canPlayType("video/mp4").replace(/no/,"")||wc)?!0:!1;var ml,nl=document.createElement("VIDEO");ml=nl&&nl.canPlayType&&nl.canPlayType("video/webm").replace(/no/,"")?!0:!1;
var ol=function(a,b){if(!p.postMessage)return!1;a=Array.isArray(a)?Pa(a):[];Ma(a,function(c){return"Modernizr.canvas"==c})||a.push("Modernizr.canvas");b&&!Ma(a,function(c){return"Modernizr.cssanimations"==c})&&a.push("Modernizr.cssanimations");return La(a,function(c){if("svgFilters"==c){if(!(C&&Fc("10")&&10<=Number(Ic)||Nc&&0<=vb(il,"18")||Jc&&0<=vb(il,"11")))return!1}else if("svgFeImage"==c){if(!(C&&Fc("10")&&10<=Number(Ic)||Nc&&0<=vb(il,"29")))return!1}else if(/Modernizr.canvas/.test(c)){if(!(document.createElement("canvas").getContext||
C&&0<=vb(il,"9")))return!1}else if(/Modernizr.cssanimations/.test(c)){if(c=wd(document).style,void 0===c.animationName&&void 0===c[be()+"AnimationName"])return!1}else if(/Modernizr.cssgradients/.test(c)){c="";for(var d,e=["",ce()+"-"],f=0;f<e.length;f++)d=0===f?"to ":"",c+="background-image:"+e[f]+"linear-gradient("+d+"left top, #9f9, white);";d=zd(document,"A");d.style.cssText=c+"background-image:-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));";if(!(-1<fe(d,"backgroundImage").indexOf("gradient")))return!1}else if(/Modernizr.csstransitions/.test(c)&&
!el())return!1;return!0})};var rl=function(a,b,c,d,e,f,g,k,l,m){if(b){var u=sd(document,c);gc(u,$d((z(B(b.a))?['<div style="width: ',b.width,"px; height: ",b.height,'px;"></div>']:['<a target="',b.target,'" href="',b.a,'">','<img src="',b.g,'" ','width="',b.width,'" height="',b.height,'" ','border="0"></a>']).join("")));d=new dk(d);var I=B(b.A);z(I)||pj(d,I);pj(d,b.o);pj(d,b.j);for(I=0;I<e.length;I++)pj(d,e[I]);pl(a);null!=m&&0<m.length&&ql(m,c);a=new nj(d,f,g,k,l);a.a&&(a.a?oj(a,u):a.j||qj(a));z(B(b.a))||N(u,"click",function(){for(var D=
0;D<b.v.length;D++)b.v[D].ping()})}},ql=function(a,b){var c=sd(document,b);if(null==c){var d;(b=document.getElementsByTagName("HEAD"))&&0<b.length?d=b[0]:d=document.documentElement;y(a,function(e){d.appendChild(sl(e))})}else y(a,function(e){c.parentNode.insertBefore(sl(e),c.nextSibling)})},sl=function(a){var b=zd(document,"SCRIPT");a=ae(a);b.src=jb(a);hc(b);b.type="text/javascript";b.async=!1;return b},pl=function(a){var b=window.DARTDebugEventHandler;if(b){b=new b;try{b.handleEventActivity("BACKUP_IMAGE_IMPRESSION",
"Counter",1,0,!1,a)}catch(c){}}};var tl=function(a,b){M.call(this,a);this.g=b};n(tl,M);var ul="EXPAND EXPAND_REQUEST EXPAND_FINISH COLLAPSE COLLAPSE_REQUEST COLLAPSE_FINISH EXPAND_FULL_SCREEN COLLAPSE_FULL_SCREEN SHOW HIDE".split(" ");var S=function(a,b){H.call(this);this.g=b;this.H=new Dg(this);O(this.H,this.g,ul,this.I);this.a=a;this.F=[];this.D=[];this.A=[];this.j=[];this.C=[];this.B=[];this.v=[];this.o=[]};n(S,H);S.prototype.G=function(){this.H.dispose();this.o=this.v=this.j=this.B=this.C=this.A=this.D=this.F=null;H.prototype.G.call(this)};
S.prototype.I=function(a){if(a.g==this.a){var b=null;switch(a.type){case "SHOW":b=this.F;break;case "HIDE":b=this.D;break;case "COLLAPSE_REQUEST":b=this.v;break;case "COLLAPSE_FINISH":b=this.o;break;case "COLLAPSE":b=this.j;break;case "EXPAND":b=this.A;break;case "EXPAND_REQUEST":b=this.C;break;case "EXPAND_FINISH":b=this.B}b&&vl(this,b)}};var vl=function(a,b){y(b,function(c){c(this)},a)},wl=function(a){return a.g.renderers[a.a]||null};h=S.prototype;h.de=function(){return this.a.v};h.ce=function(){return this.a.id};
h.dd=function(){var a=wl(this);return a&&(a=a.S())?(a=new F(a.offsetLeft,a.offsetTop),{x:a.x,y:a.y}):null};h.ge=function(a,b){var c=wl(this);c&&je(c.S(),a,b)};h.he=function(a){var b=wl(this);if(b)if(b=b.S(),"string"===typeof a)(a=ee(b,a))&&(b.style[a]=void 0);else for(var c in a){var d=b,e=a[c],f=ee(d,c);f&&(d.style[f]=e)}};h.cd=function(){var a=wl(this);return a&&(a=a.S())?(a=le(a),{x:a.x,y:a.y}):null};h.Fb=function(){return{width:this.a.width,height:this.a.height}};
h.Wa=function(a,b){var c=wl(this);c&&c.Wa(a,b)};h.Wc=function(){var a=this.a.a&&this.a.a.a;return a?{width:a.width,height:a.height}:this.Fb()};h.fe=function(a,b,c,d){var e=wl(this);e&&(e.S().style.clip=["rect(",a,"px ",b,"px ",c,"px ",d,"px)"].join(""),e.S().style.position="absolute")};h.Xc=function(){var a=wl(this);return a?a.S():null};h.be=function(){var a=wl(this);return a?a.g:null};h.Ac=function(a){this.F.push(a)};h.Md=function(a){Na(this.F,a)};h.zc=function(a){this.D.push(a)};
h.Ld=function(a){Na(this.D,a)};h.wc=function(a){this.A.push(a)};h.Id=function(a){Na(this.A,a)};h.yc=function(a){this.C.push(a)};h.Kd=function(a){Na(this.C,a)};h.xc=function(a){this.B.push(a)};h.Jd=function(a){Na(this.B,a)};h.tc=function(a){this.j.push(a)};h.Fd=function(a){Na(this.j,a)};h.vc=function(a){this.v.push(a)};h.Hd=function(a){Na(this.v,a)};h.uc=function(a){this.o.push(a)};h.Gd=function(a){Na(this.o,a)};h.ie=function(){xl(this.g,this.a)};h.ee=function(){this.g.I(this.a)};
h.ae=function(){yl(this.g,this.a)};h.$d=function(){zl(this.g,this.a)};S.prototype.getType=S.prototype.de;S.prototype.getId=S.prototype.ce;S.prototype.getPosition=S.prototype.dd;S.prototype.setPosition=S.prototype.ge;S.prototype.setStyle=S.prototype.he;S.prototype.getPagePosition=S.prototype.cd;S.prototype.getDimension=S.prototype.Fb;S.prototype.setDimension=S.prototype.Wa;S.prototype.getCollapsedDimension=S.prototype.Wc;S.prototype.setClip=S.prototype.fe;S.prototype.getContainerElement=S.prototype.Xc;
S.prototype.getAssetElement=S.prototype.be;S.prototype.addShowCallback=S.prototype.Ac;S.prototype.removeShowCallback=S.prototype.Md;S.prototype.addHideCallback=S.prototype.zc;S.prototype.removeHideCallback=S.prototype.Ld;S.prototype.addExpandCallback=S.prototype.wc;S.prototype.removeExpandCallback=S.prototype.Id;S.prototype.addExpandRequestCallback=S.prototype.yc;S.prototype.removeExpandRequestCallback=S.prototype.Kd;S.prototype.addExpandFinishCallback=S.prototype.xc;
S.prototype.removeExpandFinishCallback=S.prototype.Jd;S.prototype.addCollapseCallback=S.prototype.tc;S.prototype.removeCollapseCallback=S.prototype.Fd;S.prototype.addCollapseRequestCallback=S.prototype.vc;S.prototype.removeCollapseRequestCallback=S.prototype.Hd;S.prototype.addCollapseFinishCallback=S.prototype.uc;S.prototype.removeCollapseFinishCallback=S.prototype.Gd;S.prototype.show=S.prototype.ie;S.prototype.hide=S.prototype.ee;S.prototype.expand=S.prototype.ae;S.prototype.collapse=S.prototype.$d;var Al=function(a,b){H.call(this);this.a=a;this.g=b};n(Al,H);Al.prototype.o=function(){return this.a.name};Al.prototype.ha=function(){var a=this.a.url;return(/^https?/.test(a)?"":this.g)+a};Al.prototype.v=function(){return this.a.j};Al.prototype.j=function(){return this.a.g};Al.prototype.getName=Al.prototype.o;Al.prototype.getUrl=Al.prototype.ha;Al.prototype.isVideo=Al.prototype.v;Al.prototype.getStreamingUrl=Al.prototype.j;var Bl=function(a,b){this.a=a;this.j=b};Bl.prototype.o=function(){return this.a.name};Bl.prototype.getName=Bl.prototype.o;Bl.prototype.ha=function(){return this.a.url};Bl.prototype.getUrl=Bl.prototype.ha;Bl.prototype.g=function(a,b){this.j.tb(new xj("logExitFlushEventsOpenPopup",this.a.name,a||null,b||null,null,!0))};Bl.prototype.fireExit=Bl.prototype.g;var T=function(a,b){H.call(this);this.a=a;this.A=b;this.g=Cl(a.j,b);this.v=Qa(this.g,function(c){return c.a.id});this.j=Dl(a.T,Ik(a)||"");this.o=El(a.H,b);this.AssetTypes=Fl;Gl(this)};n(T,H);var Cl=function(a,b){return Ja(a,function(c){return new S(c,b)})},Dl=function(a,b){return Ja(a,function(c){return new Al(c,b)})},El=function(a,b){return Ja(Wa(a),function(c){return new Bl(c,b)})},Gl=function(a){var b=r("studioV2.api.creatives")||[];q("studioV2.api.creatives",b,void 0);b.push(a)};h=T.prototype;
h.G=function(){var a=r("studioV2.api.creatives");a&&Array.isArray(a)&&Na(a,this);Qd(this.g,this.j,this.o);H.prototype.G.call(this)};h.Qc=function(){return"1.0"};h.Yc=function(){return this.a.A};h.ne=function(){return this.a.a.sid||""};h.oe=function(){return this.a.a.sn||""};h.je=function(){return this.a.a.aid||""};h.le=function(){return this.a.a.buy||""};h.Pc=function(){return this.a.a.cid||""};h.me=function(){return this.a.a.pid||""};h.ke=function(){return this.a.a.adv||""};h.Tc=function(){return this.g};
h.Vc=function(){return this.j};h.Rc=function(a){return this.g[a]||null};h.Sc=function(a){return this.v[a]||null};h.ad=function(a){return Ma(this.g,function(b){return b.a.v==a})};h.Uc=function(a){return Ia(this.g,function(b){return b.a.v==a})};h.$c=function(){return this.o};h.we=function(){this.A.dispose()};T.prototype.getApiVersion=T.prototype.Qc;T.prototype.getCreativeId=T.prototype.Yc;T.prototype.getSiteId=T.prototype.ne;T.prototype.getSiteName=T.prototype.oe;T.prototype.getAdId=T.prototype.je;
T.prototype.getBuyId=T.prototype.le;T.prototype.getAdserverCreativeId=T.prototype.Pc;T.prototype.getPlacementId=T.prototype.me;T.prototype.getAdvertiserId=T.prototype.ke;T.prototype.getAssets=T.prototype.Tc;T.prototype.getChildAssets=T.prototype.Vc;T.prototype.getAssetAt=T.prototype.Rc;T.prototype.getAssetById=T.prototype.Sc;T.prototype.getFirstAssetByType=T.prototype.ad;T.prototype.getAssetsByType=T.prototype.Uc;T.prototype.getExits=T.prototype.$c;T.prototype.unload=T.prototype.we;
var Fl={INPAGE:"BANNER",EXPANDING:"EXPANDABLE",FLOAT:"FLOATING",OVERLAY:"OVERLAY"};var Hl="undefined_type",Il=0,Jl=null;var Kl=new G(-1,-1),Ll=new F(-1,-1);var Ml=void 0,Pl=function(){void 0===Ml&&(Ml=Ma(Nl,Ol)||"none");return Ml},Ol=function(a){switch(a){case "gdn":return!(!p.IN_ADSENSE_IFRAME||!p.CreativeToolset);case "yahoo":return window.Y&&window.Y.SandBox&&window.Y.SandBox.vendor;case "msn":a:{try{var b=window.$WLXRmAd||window.parent&&window.parent.$WLXRmAd;break a}catch(c){}b=void 0}return!!b;case "safe":return!!r("$sf.ext");case "mraid":return!!window.mraid;default:return!1}},Nl="gdn mraid safe yahoo msn none".split(" ");var Ql=function(a){M.call(this,a)};n(Ql,M);var Rl=jd("studio.sdk");q("studio.sdk.logger",Rl,void 0);var Sl=function(){};sa(Sl);Sl.prototype.a=0;var U=function(){R.call(this);this.j=null;this.o={};this.a={};this.a.companions="";this.a.desiredBitrate=256;this.a.duration=15;this.a.remainingTime=15;this.a.expanded=!1;this.a.height=0;this.a.icons="";this.a.linear=!1;this.a.skippableState=!1;this.a.viewMode="normal";this.a.width=0;this.a.volume=1;this.g=null};n(U,R);h=U.prototype;h.Bc=function(){this.a.expanded=!1};h.Kc=function(){return this.a.linear};h.Oc=function(){return this.a.width};h.Ic=function(){return this.a.height};h.Hc=function(){return this.a.expanded};
h.Mc=function(){return this.a.skippableState};h.Lc=function(){return this.a.remainingTime};h.Sd=function(a){this.a.remainingTime=a};h.Gc=function(){return this.a.duration};h.Rd=function(a){this.a.duration=a};h.Nc=function(){return this.a.volume};h.Td=function(a){this.a.volume=a;this.dispatchEvent(new Ql("ChangeVolumeVpaidAd"))};h.Fc=function(){return this.a.companions};h.Jc=function(){return this.a.icons};h.yd=function(){return"2.0"};
h.zd=function(a,b,c,d,e,f){this.a.width=a;this.a.height=b;this.a.viewMode=c;this.a.desiredBitrate=d;null!=f&&(this.j=f.slot);try{if(this.g=JSON.parse(Tl(e.AdParameters)),null!=this.g){this.g.width=a+"";this.g.slotWidth=a+"";this.g.height=b+"";this.g.slotHeight=b+"";z(B(this.j.id))&&(this.j.id="dclk_video_ad_:"+(Sl.getInstance().a++).toString(36));this.g.creativeParameters.ad_container_id=this.j.id;if(null!=this.g.primaryFiles)for(c=0;c<this.g.primaryFiles.length;c++)this.g.primaryFiles[c].height=
b+"",this.g.primaryFiles[c].width=a+"";if(null!=this.g.ad_creative_def_urls){var g=this.g.ad_creative_def_urls[this.g.creativeParameters.adId];g?(g=g.replace("http:",""),Ch(mj(ae(g)),v(this.v,this))):Ul(this)}else Ul(this)}}catch(k){}};var Tl=function(a){null!=a&&(a=a.replace(/\\'/g,"'"));return a};
U.prototype.v=function(){var a=window.creativeExitOverrides;if(null!=a&&null!=this.g.exitEvents)for(var b=0;b<this.g.exitEvents.length;b++)if(null!=a.exitEvents)for(b=0;b<a.exitEvents.length;b++)this.g.exitEvents[b].name==a.exitEvents[b].name&&(this.g.exitEvents[b].destinationUrl=a.exitEvents[b].url);Ul(this)};var Ul=function(a){a.dispatchEvent(Vl);Wl(a,"AdLoaded")};h=U.prototype;
h.Od=function(a,b,c){this.a.width=a;this.a.height=b;this.a.viewMode=c;this.dispatchEvent(new Ql("ResizeVpaidAd"));Wl(this,"AdSizeChange")};h.Vd=function(){Wl(this,"AdStarted")};h.Wd=function(){Wl(this,"AdStopped")};h.Bd=function(){this.dispatchEvent(new Ql("PauseVpaidAd"));Wl(this,"AdPaused")};h.Pd=function(){this.dispatchEvent(new Ql("ResumeVpaidAd"));Wl(this,"AdPlaying")};h.Ec=function(){this.a.expanded=!0;Wl(this,"AdExpandedChange")};h.Ud=function(){this.a.skippableState&&Wl(this,"AdSkipped")};
h.te=function(a,b,c){a=v(a,c);this.o[b]=a};h.ue=function(){};var Wl=function(a,b){if(b in a.o)a.o[b](void 0)};U.prototype.collapseAd=U.prototype.Bc;U.prototype.getAdLinear=U.prototype.Kc;U.prototype.getAdWidth=U.prototype.Oc;U.prototype.getAdHeight=U.prototype.Ic;U.prototype.getAdExpanded=U.prototype.Hc;U.prototype.getAdSkippableState=U.prototype.Mc;U.prototype.getAdRemainingTime=U.prototype.Lc;U.prototype.setAdRemainingTime=U.prototype.Sd;U.prototype.getAdDuration=U.prototype.Gc;
U.prototype.setAdDuration=U.prototype.Rd;U.prototype.getAdVolume=U.prototype.Nc;U.prototype.setAdVolume=U.prototype.Td;U.prototype.getAdCompanions=U.prototype.Fc;U.prototype.getAdIcons=U.prototype.Jc;U.prototype.handshakeVersion=U.prototype.yd;U.prototype.initAd=U.prototype.zd;U.prototype.resizeAd=U.prototype.Od;U.prototype.startAd=U.prototype.Vd;U.prototype.stopAd=U.prototype.Wd;U.prototype.pauseAd=U.prototype.Bd;U.prototype.resumeAd=U.prototype.Pd;U.prototype.expandAd=U.prototype.Ec;
U.prototype.skipAd=U.prototype.Ud;U.prototype.subscribe=U.prototype.te;U.prototype.unsubscribe=U.prototype.ue;var Vl=new M("InitVpaidAd");var Xl=function(){al.call(this);this.a=new U};n(Xl,al);sa(Xl);q("window.getVPAIDAd",function(){return Xl.getInstance().a},void 0);var Zl=function(a){H.call(this);this.g=a;this.a=Yl(this)};n(Zl,H);Zl.prototype.G=function(){yg(this.a);H.prototype.G.call(this)};var Yl=function(a){return N(p,"message",function(b){b=b.na.data;try{var c=b.indexOf("|"),d=b.indexOf(":",c),e=b.indexOf("SETUP",d);var f=-1<c&&-1<d&&-1<e}catch(g){f=!1}f&&($l(this.g,"r",w()),yg(this.a))},void 0,a)};var am=function(a,b){H.call(this);this.F=a;this.I=b;this.H=Df(a.location.href);this.C=new Zc(this.I,this.H);this.a=bl.getInstance();this.o=this.v=this.A=null;this.D=[];this.B=!1;this.g=new Mh(200);Pd(this,this.g);this.j=0};n(am,H);h=am.prototype;
h.Zd=function(a,b){if((b=b.na)&&b.data){var c=b.data;if("string"!==typeof c)var d=null;else{b={};c=c.split("\n");for(d=0;d!=c.length;++d){var e=c[d],f=e.indexOf("=");if(!(0>=f)){var g=Number(e.substr(0,f));e=e.substr(f+1);switch(g){case 36:case 8:case 11:case 16:case 5:case 18:e="true"==e;break;case 4:case 33:case 6:case 25:case 28:case 29:case 24:case 31:case 30:case 23:case 22:case 7:case 21:case 20:e=Number(e);break;case 3:if("function"===typeof decodeURIComponent)try{e=decodeURIComponent(e)}catch(k){throw Error("Error: URI malformed: "+
e);}}b[g]=e}}d=b[0]?b:null}if(d&&(this.B&&(this.B=!1,pf()),"goog_update_data"==d[0])){b=d[7];c=null;if(d=d[9])d=d.split("-"),4==d.length&&(c=new Rd(kc(d[0]),kc(d[3]),kc(d[2]),kc(d[1])));b=Wf(b,c);a(b)}}};h.jd=function(a){var b=this.a.a.getCurrentPosition();if(this.a.isVisible()){var c=1;b=new Rd(0,b.width,b.height,0)}else c=0,b=new Rd(0,0,0,0);c=Wf(c,b);a(c);this.j++;25<=this.j&&this.g.stop()};h.rd=function(a,b){b=Wf(b.visibilityFraction,b.visibleBox);a(b)};
h.Wb=function(a){this.j=0;this.g.stop();a=v(this.jd,this,a);this.g.ea.add("tick",a,!1,void 0,void 0);this.g.start()};h.G=function(){var a=this;pf();y(this.D,function(b){xg(a.F,"message",b)});this.A&&yg(this.A);this.v&&yg(this.v);this.o&&yg(this.o);H.prototype.G.call(this)};var cm=function(a,b,c,d){H.call(this);this.j=a;this.B=b;this.A=c;this.v=d;this.o=!1;this.a={};this.a.l=!1;this.a.i=!1;this.a.x=!1;this.a.c=!1;this.a.r=!1;this.a.n=!1;this.a.t=!1;this.a.m=!1;this.g=bm(this)};n(cm,H);var bm=function(a){return a.j.o&&dm(a)?qg(p,"unload",function(){$l(this,"u",w())},void 0,a):null},dm=function(a){return-1!=vb(a.v.replace("_","."),"01_226".replace("_","."))},em=function(a){pj(a.B,a.j.g());a.o=!0;a.g&&yg(a.g)};cm.prototype.G=function(){this.g&&yg(this.g)};
var fm=function(a){return dm(a)&&!a.o&&(a.a.u||Va(a.a,function(b){return b}))},gm=function(a,b){a.v=b;a.j.A=b;a.g=bm(a);fm(a)&&em(a)},$l=function(a,b,c){a.j.a[b]=c-a.A;a.a[b]=!0;fm(a)&&em(a)};var hm=function(a){if(a&&("video"===a.Type||a.DrmVideoData)){var b=a.DrmVideoData||{};b=(jl?b.hls_url:"")||(ml?b.webm_url:"")||(kl?b.mp4_url:"")||a.Progressive_Url||a.Url||"";a.Type="video";a.Url=b;a.Progressive_Url=b;delete a.DrmVideoData}else if(wa(a)&&"function"!==typeof a)for(b in a)hm(a[b])};var im=function(a){Rc(this,a)};x(im,Pc);var jm=function(){try{if(""!=p.document.referrer)return p.document.referrer;if(p.location.ancestorOrigins&&p.location.ancestorOrigins[0])return p.location.ancestorOrigins[0];if(top!=p)return p.parent.location.href}catch(a){}return p.location.href};var lm=function(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\- \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(e,f,g,k,l,m,u,I){if("%"==m)return"%";var D=c.shift();if("undefined"==typeof D)throw Error("[goog.string.format] Not enough arguments");arguments[0]=D;return km[m].apply(null,arguments)})},km={s:function(a,b,c){return isNaN(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?
a+jc(" ",Number(c)-a.length):jc(" ",Number(c)-a.length)+a},f:function(a,b,c,d,e){d=a.toString();isNaN(e)||""==e||(d=parseFloat(a).toFixed(e));var f=0>Number(a)?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=Number(a)&&(d=f+d);if(isNaN(c)||d.length>=Number(c))return d;d=isNaN(e)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(e);a=Number(c)-d.length-f.length;return d=0<=b.indexOf("-",0)?f+d+jc(" ",a):f+jc(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,f,g,k){return km.f(parseInt(a,
10),b,c,d,0,f,g,k)}};km.i=km.d;km.u=km.d;var mm=function(a){this.a=a},nm=function(a){switch(a){case "BANNER":return"Inpage";case "FLOATING":return"Floating";case "EXPANDABLE":return"Expanding";case "OVERLAY":return"Overlay";default:return""}},sm=function(a){var b=[],c=a.a.T,d=om(),e=$k(a.a);y(c,function(D){D.a&&D.a.a&&b.push(pm("VT_"+D.a.g,D.url))},a);for(var f in e){var g=qm(e,f,d)||f,k=null;y(c,function(D){D.name.toLowerCase()===g&&(k=D)},a);if(k){rm(a,b,f,k);for(var l in e[f]){var m=e[f][l],u;for(u in m){var I=m[u];e[I]||rm(a,b,I,k)}}}}return escape(b.join("&"))},
rm=function(a,b,c,d){d.j?(b.push(pm("PRO_"+c,d.url)),null!=d.g&&b.push(pm("STR_"+c,d.g))):b.push(pm(c,/^https?:/.test(d.url)?d.url:Ik(a.a)+d.url))},om=function(){var a=[];jl&&a.push("application/x-mpegurls");ml&&a.push("video/webm");kl&&a.push("video/mp4");return a},qm=function(a,b,c){if(c.length&&a[b]&&!Xa(a[b]))a:{for(var d=6;1<=d&&6>=d;){var e=a[b][d];if(e)for(var f=0;f<c.length;f++)if(e[c[f]]){a=e[c[f]];break a}d+=-1}a=null}else a=null;return a},tm=function(a){return encodeURIComponent(a).replace(/[!'()*]/g,
Ra())},vm=function(a,b){return tm(a)+"="+tm(um(b))},V=function(a,b,c){c=um(c);a[b]=c},wm=function(a,b,c){c&&!Xa(c)&&Ta(c,function(d,e){V(b,e,d)},a)},pm=function(a,b){return escape(a)+"="+escape(um(b))},um=function(a){return null==a?"":"object"==ta(a)||Array.isArray(a)?JSON.stringify(a):String(a)};var xm=function(a,b){this.j=a;this.o=b;this.g=new mm(a)},zm=function(a,b){var c=a.g,d=a.o,e={};V(e,"varName",b);V(e,"creativeId",c.a.A);V(e,"assetId",d.id);V(e,"rv","200_271");V(e,"assetType",nm(d.v));V(e,"previewFrameId",c.a.a.PREVIEW_FRAME_NAME||"layoutsPreviewFrame");V(e,"layoutsConfig",d.layoutsConfig||"");V(e,"click",c.a.D);V(e,"clickN",c.a.J);b=Jk(c.a,"CLICK");b=1==b.length?b[0].ha():"";V(e,"thirdPartyClickRedirect",b);V(e,"assets",sm(c));b=[];for(var f=c.a.Ja,g=0;g<f.length;g++){var k=f[g];
b.push(escape(lm("name:%s,vfp_low:%s,vfp_mid:%s,vfp_high:%s,pfp_low:%s,pfp_mid:%s,pfp_high:%s",escape(k.B),escape(k.o||""),escape(k.A||""),escape(k.g||""),escape(k.j||""),escape(k.v||""),escape(k.a||""))))}V(e,"vcData",b.join("{DELIM}"));b=[];f=c.a.H;for(var l in f)g=f[l],k=lm("name:%s,url:%s,target:%s,reportingId:%s",escape(g.name),escape(g.url).replace(/\+/g,"%2B"),g.g?"popup":escape(g.j),g.reportingId?g.reportingId:""),/,/.test(g.url)&&(k=escape(k)),b.push(k);V(e,"exitEvents",b.join("{DELIM}"));
V(e,"sn",c.a.a.sn||"");V(e,"sid",c.a.a.sid||"");V(e,"adv",c.a.a.adv||"");V(e,"buy",c.a.a.buy||"");V(e,"pid",c.a.a.pid||"");V(e,"aid",c.a.a.aid||"");V(e,"cid",c.a.a.cid||"");V(e,"rid",c.a.a.rid||"");l=Mi(c.a.a.geo||"");wm(c,e,l);V(e,"br",uc?"ff":Nc?"cr":Oc?"sf":C?"ie":"ot");if(l=!/^http/.test(window.location.href)){b=window.parent;f=window;try{l=b.document.domain==f.document.domain}catch(I){l=!1}}l=new oi(l?window.parent.location.href:window.location.href);V(e,"td",l.j+"://"+l.a);a:{if(c.a.g){if(!z(B(c.a.ga))&&
0!=c.a.ga.indexOf("%")){l=c.a.ga;break a}if((l=document.getElementsByTagName("base"))&&l.length&&!z(B(l[0].href))){l=l[0].href;break a}}l=jm()}V(e,"adSiteUrl",l);V(e,"googleDiscoveryUrl",c.a.g?"http://pagead2.googlesyndication.com/pagead/ads?client=dclk-3pas-query&output=xml&geo=true&adtest=on":"http://pagead2.googlesyndication.com/pagead/ads?client=dclk-3pas-query&output=xml&geo=true");a:{l=c.a.B;try{var m=JSON.parse(l)}catch(I){m=l;break a}wa(m)?(hm(m),m=ii(m)):m=l}V(e,"dcData",m);m=Hk(c.a);l=[];
for(var u in m)l.push(vm(u,m[u]));V(e,"customMetaData",l.join("&"));V(e,"ispushdown",!(!d.a||!d.a.g));V(e,"expEnv",("gdn"==Pl()?"adsense":"basic").toString());V(e,"experiments",c.a.X);u=window;u.google_rum_config&&u.google_timing_url?(m=new im,l=new Yc(u.google_rum_config),m.o||(m.o={}),b=l?l.ra:l,m.o[1]=l,m=Tc(m,1,b),m=Uc(m,2,u.google_timing_url,""),u=Uc(m,3,!!u.google_measure_js_timing,!1).ra):u=null;null!=u&&V(e,"rum_config",u);wk(d,117)&&Gk(c.a,"simplify_query_string")&&(V(e,"e",Gf),window.layoutsPreview&&
(V(e,"layoutsRuntime",window.layoutsPreview.layoutsRuntime),V(e,"fillerContext",window.layoutsPreview.fillerContext)),d.a&&(d=d.a,V(e,"leftOffset",d.a.left),V(e,"topOffset",d.a.top)));wm(c,e,Hk(c.a));return ym(a,e)},ym=function(a,b){var c={};Ta(b,function(d,e){e=tm(e);d=tm(d.toString());c[e]=d},a);return c};var Am=function(a,b){xm.call(this,a,b)};n(Am,xm);Am.prototype.a=function(a){a=zm(this,a);var b=Bm(this);a.exitEvents=b;b=Of.ca();a.features=b;return ii(a)};var Bm=function(a){var b={};Ta(a.j.H,function(c,d){var e={};e.name=c.name;e.url=c.url;e.target=c.g?"popup":c.j;e.reportingId=c.reportingId?c.reportingId:"";b[d]=e},a);return b};var Cm=function(a,b){xm.call(this,a,b)};n(Cm,xm);Cm.prototype.a=function(a){a=zm(this,a);return Ni(a)};var Dm=function(a,b){this.j=a;this.o=b?b:null;this.a={};this.g=[]},Fm=function(a,b){0<=Ha(Ri,b)&&a.o?a.o.Qa("HIFI",function(c){Em(a,c)},!0):N(window,b,a.A,!1,a)},Gm=function(a){return new P(function(b,c){this.g.push(function(d){if("adLocation"!=d.type)return!1;b(d);return!0});Fm(this,"adLocation");window.setTimeout(function(){c({})},1E4)},a)},Em=function(a,b){if("string"!==typeof b){var c=b.type;if(c){switch(c){case "hostpageScroll":case "enterViewport":case "exitViewport":case "adLocation":a.j(b)}var d=
[];a.g.forEach(function(e){e(b)||d.push(e)});a.g=d}}};Dm.prototype.A=function(a){this.a[a.type]&&50>w()-this.a[a.type]||(this.a[a.type]=w(),Ng(v(this.v,this,a)))};Dm.prototype.v=function(a){a=a.na;switch(a.type){case "devicemotion":this.j({type:a.type,acceleration:a.acceleration,accelerationIncludingGravity:a.accelerationIncludingGravity,rotationRate:a.rotationRate,interval:a.interval});break;case "deviceorientation":this.j({type:a.type,absolute:a.absolute,alpha:a.alpha,beta:a.beta,gamma:a.gamma})}};var Hm=function(){R.apply(this,arguments)};n(Hm,R);var Im=function(){Hm.call(this);this.g=this.a=null};n(Im,Hm);h=Im.prototype;h.qe=function(){this.g=this.a.responseText;this.dispatchEvent("success");Lm(this)};h.re=function(){this.dispatchEvent("timeout")};h.pe=function(){this.dispatchEvent("error")};h.Zb=function(a,b){p.XDomainRequest&&C&&!Fc(10)&&(this.a=new p.XDomainRequest,this.a.onerror=v(this.pe,this),this.a.ontimeout=v(this.re,this),this.a.onload=v(this.qe,this),this.a.timeout=6E4);this.a&&(this.a.open(b,a.toString()),this.a.send())};
h.Hb=function(){return this.g};var Lm=function(a){a.a&&(a.a.onerror=null,a.a.ontimeout=null,a.a.onload=null,a.a=null)};Im.prototype.G=function(){Lm(this);Hm.prototype.G.call(this)};var Mm=function(){};var Nm=function(){};x(Nm,Mm);var Om=function(){Hm.call(this);this.j=this.a=null;this.g=-1};n(Om,Hm);Om.prototype.o=function(){if(4==(this.a?this.a.readyState:0)){try{var a=2<(this.a?this.a.readyState:0)?this.a.status:-1}catch(c){a=-1}a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1}b||0===a?(this.j=this.a.responseText,this.dispatchEvent("success"),Pm(this)):this.dispatchEvent("error")}};Om.prototype.v=function(){Pm(this);this.dispatchEvent("timeout")};
Om.prototype.Zb=function(a,b){a:{var c=new Nm;if(!c.a&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var d=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],e=0;e<d.length;e++){var f=d[e];try{new ActiveXObject(f);var g=c.a=f;break a}catch(k){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}g=c.a}this.a=g?new ActiveXObject(g):new XMLHttpRequest,this.a.onreadystatechange=v(this.o,
this),this.g=Nh(this.v,6E4,this);this.a&&(this.a.open(b,String(a),!0),this.a.send(null))};Om.prototype.Hb=function(){return this.j};var Pm=function(a){a.g&&(p.clearTimeout(a.g),a.g=-1);a.a&&(a.a.a=null,a.a=null)};Om.prototype.G=function(){Pm(this);Hm.prototype.G.call(this)};var Qm=function(a){this.a=[];this.g=a},Sm=function(a,b,c){b=a.g.Ib(b);for(var d=0;d<b.length;d++){var e=b[d],f=e.element,g=e.La;e=e.attributes;c&&Rm(a,f,g,e);if(g){var k=void 0,l=f;for(k in g)l.style[k]=g[k]}if(e)for(g in g=void 0,e)f.setAttribute(g,e[g])}return a},Rm=function(a,b,c,d){var e={};e.element=b;c&&(e.La=Ua(c,function(f,g){return b.style[g]}));d&&(e.attributes=Ua(d,function(f,g){return b.getAttribute(g)}));a.a.push(e)},Tm=function(a){for(var b;b=a.a.pop();){var c=b.element;if(b.La)for(var d in b.La)c.style[d]=
b.La[d];if(b.attributes)for(var e in b.attributes)c.setAttribute(e,b.attributes[e])}};var Wm=function(a,b,c){R.call(this);this.D=null;this.o=!1;this.F=new Qm(a);this.N=!!c;this.v=new Dg(this);this.R=b;this.B=this.j=null;this.A=!1;this.g=this.a=null;this.H=Um();Vm(this)&&O(this.v,Vm(this),"h",v(this.dispatchEvent,this))};n(Wm,R);
var Xm=function(a,b){"gdn"==Pl()&&Vm(a).A(v(function(){this.A&&this.o&&b()},a))},Zm=function(a){return new P(function(b){var c=Vm(this);c&&!c.B()?b(!1):(c=mh(Ym(this).then(function(d){return 0<d.width&&0<d.height||nd(d,Kl)}),function(){return!1}),b(c))},a)},Ym=function(a){return new P(function(b,c){var d=Vm(this);d?b(d.a()):this.N||window==window.top?b(Um()):c("Could not get available dimensions (in sandboxed iframe)")},a)};
Wm.prototype.J=function(a){var b;if(b=a.$){b=a.$;var c=a.Aa;b=!(b.width<=c.width&&b.height<=c.height)}if(b)throw Error("Cannot establish expanded rectangle (requested size too large)");b=a.$?a.$:a.Aa;c=new F(Math.max(0,(a.Aa.width-b.width)/2),Math.max(0,(a.Aa.height-b.height)/2));if(Vm(this)){var d=Vm(this).g(a.collapsed,a.Aa);d=d==Ll||d&&Ll&&d.x==Ll.x&&d.y==Ll.y?Ll:new F(d.x-c.x,d.y-c.y)}else d=this.R,1==d.nodeType?(d=ke(d),d=new F(d.left,d.top)):(d=d.changedTouches?d.changedTouches[0]:d,d=new F(d.clientX,
d.clientY)),d=new F(d.x-c.x,d.y-c.y);b=new Sd(Vm(this)?0:c.x,Vm(this)?0:c.y,b.width,b.height);return{Aa:a.Aa,$:a.$,fixed:!!a.$,ic:d,Na:b}};var $m=function(a,b,c){return a.o?dh():Ym(a).then(function(d){return{Aa:d,$:c,collapsed:b}}).then(a.J,void 0,a).then(function(d){return Vm(this)?Vm(this).o(d.Na).then(function(e){d.Na=e;return d}):d},void 0,a)};
Wm.prototype.I=function(a){nd(Td(a.Na),Kl)||Sm(this.F,a.Na,!0);this.a=a;an(this);this.j=v(this.O,this);Lc||Kc?(this.g=new Mh(50),O(this.v,this.g,"tick",this.C),this.g.start()):O(this.v,window,["resize","orientationchange"],this.j);this.o=!0;return a};var an=function(a){a.j&&(Gg(a.v,window,["resize","orientationchange"],a.j),a.j=null);a.g&&(Gg(a.v,a.g,"tick",a.C),a.g.stop())};Wm.prototype.C=function(){var a=new G(window.innerWidth,window.innerHeight);nd(this.H,a)||this.j();this.H=a};
Wm.prototype.O=function(){this.B=Ym(this).then(function(a){a=this.a.fixed?new Sd(Math.max(0,(a.width-this.a.$.width)/2),Math.max(0,(a.height-this.a.$.height)/2),this.a.$.width,this.a.$.height):new Sd(0,0,a.width,a.height);nd(Td(a),Kl)||Sm(this.F,a,!1)},void 0,this)};var Vm=function(a){null==a.D&&(a.D=null);return a.D};Wm.prototype.G=function(){J(this.v);this.g&&(xg(this.g,"tick",this.C,!1,this),J(this.g));R.prototype.G.call(this)};
var Um=Lc||Kc?function(){return new G(window.innerWidth,window.innerHeight)}:vd;var cn=function(a,b,c,d){H.call(this);this.g=a;this.j={};this.v=[];a=oe(this.g);this.o=c||new Sd(0,0,a.width,a.height);this.A=null;this.a=b;this.B=!1;this.C=!!d;2==(this.a&2)&&(bn(this,!0,!0),this.v=[])};n(cn,H);
var en=function(a){a.A||dn(a);return a.A},dn=function(a){var b=pe(a.g);0<=a.g.offsetLeft&&(b.left+=a.o.left);0<=a.g.offsetTop&&(b.top+=a.o.top);b.width=Math.max(b.width,a.o.width);b.height=Math.max(b.height,a.o.height);a.A=b},gn=function(a,b){a.B&&b||(b&&a.C&&dn(a),1==(a.a&1)&&(fn(a,"OBJECT",b),fn(a,"embed",b)),32!=(a.a&32)&&16!=(a.a&16)&&4!=(a.a&4)&&8!=(a.a&8)||bn(a,b),a.B=b)},bn=function(a,b,c){if(b){b=qd(a.g);for(var d=Bd(a.g);d&&d!=b;d=Bd(d)){var e={};if(c)hn(a,d,e);else{if(4==(a.a&4)){var f=
a,g=e,k=he(d,"zIndex");isNaN(parseInt(k,10))||(g.zIndex=f.g.style.zIndex)}8==(a.a&8)&&hn(a,d,e);16==(a.a&16)&&(f=e,g=jn(d,"backface-visibility"),"hidden"==g.value&&(f[lc(g.xb)]="visible"));32==(a.a&32)&&(f=e,g=jn(d,"transform"),z(B(g.value))||"none"==g.value||(f[lc(g.xb)]="none"))}Xa(e)||a.v.push(Sm(new Qm(new kn([{element:d,La:e}])),null,!0))}}else for(;0<a.v.length;)Tm(a.v.pop())},hn=function(a,b,c){var d;if(d="hidden"==he(b,"overflowX")||"hidden"==he(b,"overflowY"))b=pe(b),a=en(a),d=!(a instanceof
F?a.x>=b.left&&a.x<=b.left+b.width&&a.y>=b.top&&a.y<=b.top+b.height:b.left<=a.left&&b.left+b.width>=a.left+a.width&&b.top<=a.top&&b.top+b.height>=a.top+a.height);d&&(c.overflowX="visible",c.overflowY="visible",c.overflow="visible")},jn=function(a,b){var c=ce()+"-"+b,d=ge(a,c);return null!==d?{xb:c,value:d}:{xb:b,value:ge(a,b)}},fn=function(a,b,c){if(c){a.j[b]=a.j[b]||[];c=document;var d=b&&"*"!=b?String(b).toUpperCase():"";c=c.querySelectorAll&&c.querySelector&&d?c.querySelectorAll(d+""):c.getElementsByTagName(d||
"*");for(d=0;d<c.length;d++){var e=c[d],f=en(a),g=pe(e);f.left<=g.left+g.width&&g.left<=f.left+f.width&&f.top<=g.top+g.height&&g.top<=f.top+f.height&&e!=a.g&&!Cd(a.g,e)&&(a.j[b].push({visibility:e.style.visibility,element:e}),e.style.visibility="hidden")}}else for(;a.j[b]&&0<a.j[b].length;)c=a.j[b].pop(),c.element.style.visibility=c.visibility};cn.prototype.G=function(){gn(this,!1);bn(this,!1);H.prototype.G.call(this)};var kn=function(a){this.a=a};kn.prototype.Ib=function(){return this.a};var mn=function(a){R.call(this);this.a=this.o=null;this.g=new Dg(this);this.A=!1;ln||(this.a=new Mh(100),O(this.g,this.a,"tick",this.j),this.a.start(),O(this.g,document,"DOMContentLoaded",this.j),O(this.g,document,"readystatechange",this.j),O(this.g,window,"load",this.v),this.j(),null!=a&&"number"===typeof a&&Nh(this.v,a,this))};n(mn,R);
mn.prototype.j=function(){var a;if(a=C){a=!1;try{a=null==window.frameElement}catch(c){}}if(a&&document.documentElement.doScroll)if(document.documentElement.doScroll)try{document.documentElement.doScroll("left");var b=!0}catch(c){b=!1}else b=!1;else"undefined"===document.readyState?document.getElementsByTagName?(b=document.getElementsByTagName("*"),b=0<b.length?b[b.length-1]:null,this.o&&b&&this.o==b?b=!0:(this.o=b,b=!1)):b=!1:b="complete"===document.readyState;b&&this.v()};
mn.prototype.G=function(){nn(this);R.prototype.G.call(this)};var nn=function(a){a.g.dispose();a.a&&(a.a.dispose(),a.a=null)};mn.prototype.v=function(){this.A||(ln=this.A=!0,nn(this),this.dispatchEvent(new M("ready")))};var ln=!1;var on=function(a){R.call(this);this.I=a||rd();this.T=null;this.za=!1;this.B=null;this.C=void 0;this.ka=this.ma=null;this.mc=!1};x(on,R);on.prototype.qc=Sl.getInstance();on.prototype.W=function(){return this.T||(this.T=":"+(this.qc.a++).toString(36))};on.prototype.S=function(){return this.B};var W=function(a){a.C||(a.C=new Dg(a));return a.C};on.prototype.U=function(){this.B=zd(this.I.a,"DIV")};on.prototype.Va=function(a){pn(this,a)};on.prototype.Ga=function(a){pn(this,a.parentNode,a)};
var pn=function(a,b,c){if(a.za)throw Error("Component already rendered");a.B||a.U();b?b.insertBefore(a.B,c||null):a.I.a.body.appendChild(a.B);a.ma&&!a.ma.za||a.Da()};on.prototype.Ma=function(a){this.B=a};on.prototype.Da=function(){this.za=!0;qn(this,function(a){!a.za&&a.S()&&a.Da()})};on.prototype.hb=function(){qn(this,function(a){a.za&&a.hb()});this.C&&Hg(this.C);this.za=!1};
on.prototype.G=function(){this.za&&this.hb();this.C&&(this.C.dispose(),delete this.C);qn(this,function(a){a.dispose()});!this.mc&&this.B&&Ad(this.B);this.ma=this.B=this.ka=null;on.aa.G.call(this)};var qn=function(a,b){a.ka&&y(a.ka,b,void 0)};var rn=function(a,b){on.call(this,b);this.jc=a;this.Sa=null};x(rn,on);rn.prototype.Cb=function(){};rn.prototype.Va=function(a){this.jc&&sn(this);rn.aa.Va.call(this,a)};rn.prototype.Ga=function(a){this.jc&&sn(this);rn.aa.Ga.call(this,a)};var sn=function(a){a.S()||a.U();qn(a,function(b){b.Va(a.S())})};rn.prototype.W=function(){return this.T||(this.T=(Jl||(Jl="200_271_"+Hl))+"_"+(Il++).toString(36))};rn.prototype.toString=function(){return this.W()};
var tn=function(a){qn(a,function(b){tn(b)})},un=function(a){qn(a,function(b){un(b)})},vn=function(a){qn(a,function(b){vn(b)})};rn.prototype.gb=function(){qn(this,function(a){a.gb()})};rn.prototype.Wa=function(a,b){me(this.S(),a,b);qn(this,function(c){c.Wa("100%","100%")})};var wn=function(a){if(null!==a.Sa)return a.Sa;var b=ih();fd(b.resolve);return a.Sa=b.promise};var xn=function(a,b,c){if(b instanceof G)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");b=0<parseInt(b,10)?b:"100%";c=0<parseInt(c,10)?c:"100%";me(a,b,c)};var X=function(a,b,c){rn.call(this,Gk(b,"disable_eager_child_attachment"),c);this.a=a;this.lc=b;this.Ha=a.a&&a.a.a&&Td(a.a.a)||new G(a.width,a.height);this.ta=!1;this.Fa=[];this.Rb=null};x(X,rn);h=X.prototype;h.ub=function(){for(;0<this.Fa.length;){var a=this.Fa.shift();yn(this,"setParameter",[a.name,a.value])}};h.Cd=function(){this.ta=!0;this.ub()};h.Nd=function(){this.ta=!1};
h.Ma=function(a){X.aa.Ma.call(this,a);a.style.position="relative";xn(a,this.Ha);"boxSizing"in a.style&&(a.style.boxSizing="content-box");var b=this.lc.C;(null==b?0:b.a&&1==this.lc.j.length)?oj(b,a):null!=b&&b.a&&!b.j&&qj(b)};
h.Da=function(){var a=W(this);O(a,this,"conduitInitialized",this.Cd);O(a,this,"RESET",this.Nd);X.aa.Da.call(this);var b=W(this);this.Rb=new mn(5E3);ln?this.Jb():O(b,this.Rb,"ready",this.Jb);if(b=this.S())O(a,b,"mouseover",this.od),O(a,b,"mouseout",this.Lb);O(a,this,"logEvent",this.Kb);O(a,this,"logExitFlushEventsOpenPopup",this.Kb)};h.od=function(){zn(this,"1")};h.Lb=function(){zn(this,"0")};h.Kb=function(a){"Exit"==Vi(a.g)&&this.Lb()};
var zn=function(a,b){a.ta?yn(a,"setParameter",["isMouseOver",b]):a.Fa.push({name:"isMouseOver",value:b})};X.prototype.sa=function(a,b){(a=Ej(a,b))&&this.dispatchEvent(a);return null};var An=function(a,b){for(var c=["head","body","html"],d=0;d<c.length;d++){var e=a.indexOf("<"+c[d]);if(-1<e&&(e=a.indexOf(">",e),-1<e))return c=e+1,a.substring(0,c)+b+a.substring(c)}return b+a};var Y=function(a){M.call(this,a)};n(Y,M);Y.prototype.Ya=function(a,b){this[a]=b;return this};q("studio.events.StudioEvent",Y,void 0);Y.prototype.addProperty=Y.prototype.Ya;Y.INIT="init";Y.VISIBLE="visible";Y.HIDDEN="hidden";Y.VISIBILITY_CHANGE="visibilityChange";Y.VISIBILITY_CHANGE_WITH_INFO="visibilityChangeWithInfo";Y.EXIT="exit";Y.INTERACTION="interaction";Y.PAGE_LOADED="pageLoaded";Y.ORIENTATION="orientation";Y.ABOUT_TO_EXPAND="aboutToExpand";Y.EXPAND_START="expandStart";Y.EXPAND_FAILED="expandFailed";
Y.EXPAND_FINISH="expandFinish";Y.COLLAPSE_START="collapseStart";Y.COLLAPSE_FINISH="collapseFinish";Y.COLLAPSE="collapse";Y.FULLSCREEN_SUPPORT="fullscreenSupport";Y.HOSTPAGE_FEATURES_LOADED="hostpageFeaturesLoaded";Y.FULLSCREEN_DIMENSIONS="fullscreenDimensions";Y.FULLSCREEN_EXPAND_START="fullscreenExpandStart";Y.FULLSCREEN_EXPAND_FINISH="fullscreenExpandFinish";Y.FULLSCREEN_COLLAPSE_START="fullscreenCollapseStart";Y.FULLSCREEN_COLLAPSE_FINISH="fullscreenCollapseFinish";Y.HOSTPAGE_SCROLL="hostpageScroll";
Y.OPTIONAL_HOSTPAGE_SCROLL="optHostpageScroll";Y.SCROLL_INTERACTION="scrollInteraction";Y.ENTER_VIEWPORT="enterViewport";Y.OPTIONAL_ENTER_VIEWPORT="optEnterViewport";Y.EXIT_VIEWPORT="exitViewport";Y.OPTIONAL_EXIT_VIEWPORT="optExitViewport";Y.VIDEO_START="videoStart";var Bn=C?kb(gb(new fb(cb,'javascript:""'))):kb(gb(new fb(cb,"about:blank")));C?kb(gb(new fb(cb,'javascript:""'))):kb(gb(new fb(cb,"javascript:undefined")));var Cn=function(a){H.call(this);this.g=a;this.a={};this.g.vb(v(this.j,this))};x(Cn,H);var En=function(a,b){if(-1!=b.indexOf(":"))throw Error('Virtual channel name "'+b+'" should not contain colons');if(b in a.a)throw Error('Virtual channel "'+b+'" was already created for this multichannel.');var c=new Dn(a,b);return a.a[b]=c};Cn.prototype.j=function(a,b){if(a=a.match(/^([^:]*):(.*)/)){var c=a[1];a=a[2];c in this.a&&(c=this.a[c])&&c.j&&c.j(a,b)}};
Cn.prototype.G=function(){Ta(this.a,function(a){J(a)});J(this.g);delete this.a;delete this.g};var Dn=function(a,b){H.call(this);this.a=a;this.g=b};x(Dn,H);h=Dn.prototype;h.connect=function(a){a&&a()};h.isConnected=function(){return!0};h.Qa=function(a,b,c){this.a.g.Qa(this.g+":"+a,v(this.Db,this,b),c)};h.vb=function(a){this.j=v(this.Db,this,a)};h.wa=function(a,b){if(this.K())throw Error("#send called for disposed VirtualChannel.");this.a.g.wa(this.g+":"+a,b)};
h.Db=function(a,b){this.K()||a.apply({},Array.prototype.slice.call(arguments,1))};h.G=function(){this.a=this.a.a[this.g]=null};var Fn=function(a){H.call(this);this.a=new Cn(a);this.j={};this.g=En(this.a,"private");this.o=En(this.a,"public");this.g.Qa("mics",v(this.A,this),!0)};x(Fn,H);Fn.prototype.B=0;Fn.prototype.G=function(){J(this.a);delete this.a;delete this.o;delete this.g};Fn.prototype.A=function(a){var b=a.signature;a=a.data;b in this.j&&((0,this.j[b])(a),delete this.j[b])};
Fn.prototype.v=function(a,b){a=a(b.data);var c=b.signature;ch(a).then(v(function(d){var e={};e.data=d;e.signature=c;this.g&&this.g.wa("mics",e)},this))};var Z=function(a,b,c,d,e){X.call(this,a,b,d);this.N=c;this.$a=null;c&&(this.$a=new Zl(c));this.Sb=this.a.g&&this.a.g.a?this.a.g.a.iframeId:this.W()+".if";this.g=null;this.Tb=new Cm(b,a);this.Ea=[];this.Ja=null;this.Ia=0;this.ga=this.a.g&&this.a.g.a?this.a.g.a.channelName:Jh();this.D=this.j=this.O=this.Ba=this.F=this.A=null;this.ab="";this.v=b;this.X=null;this.da="safe"==Pl()&&!wk(this.a,78);this.Ra="safe"==Pl()&&wk(this.a,78)&&!0;this.J=null;this.Ra&&(this.J=document.getElementById("goog-messaging-iframe")||
document.createElement("iframe"),null==this.J.parentNode&&(this.J.id="goog-messaging-iframe",this.J.name="goog-messaging-iframe",this.J.style.display="none",document.body.appendChild(this.J)));this.hc=this.la=!1;this.o=null;Sf([3]);this.R=e?e:null;this.kc=new Dm(v(this.H,this),this.R);this.fa=C&&!Fc("11");this.dc=[]};n(Z,X);h=Z.prototype;h.ub=function(){for(;this.Ea.length;){var a=this.Ea.shift();yn(this,a.methodName,a.args)}X.prototype.ub.call(this)};h.Jb=function(){this.H(new Y("pageLoaded"))};
h.Cb=function(a){var b=this.a.g;if(b&&b.a&&(a=a.getElementsByClassName(b.a.className)[0])){if(this.za)throw Error("Component already rendered");if(a)this.mc=!0,b=qd(a),this.I&&this.I.a==b||(this.I=rd(a)),this.Ma(a),this.Da();else throw Error("Invalid element to decorate");}};
h.Da=function(){X.prototype.Da.call(this);this.fa||this.da||this.a.g||this.Za();O(W(this),this,"conduitInitialized",this.hd);O(W(this),this,"recordTimings",this.Dd);O(W(this),window,["resize","orientationchange"],this.yb);var a=this.S();a&&(O(W(this),this,"isFullscreenSupported",this.nd),O(W(this),this,"queryFullscreenDimensions",this.ob),O(W(this),this,"fullscreenExpandRequested",this.Mb),O(W(this),this,"fullscreenExpandFinished",this.ld),O(W(this),this,"fullscreenCollapseRequested",this.vd),O(W(this),
this,"fullscreenCollapseFinished",this.kd),O(W(this),this,"setResponsiveBehavior",this.wd),O(W(this),this,"responsiveResize",this.xd),O(W(this),this,"getHostpageFeatures",this.md),this.j=new Wm(this,a,this.v.g),this.X=new cn(a,56),O(W(this),this.j,"h",v(this.dispatchEvent,this,new rj("fullscreenCollapseRequested"))),O(W(this),this,"registerEventTypeListenerForType",v(this.sd,this)));a=this.v.a.av_ad_key;isFinite(a)&&(a=String(a));a="string"===typeof a?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,
10):NaN;var b;if(b=!(!p.IN_ADSENSE_IFRAME||!p.CreativeToolset))b=$c(new Zc(a,Df(window.location.href)))||null!=bl.getInstance().a;b&&(this.Ba=new am(window,a),a=this.Ba,b=v(this.se,this),null!=a.a.a?cl(a.a)?a.A=N(a.a,"viewable_change",v(a.rd,a,b)):(a.v=N(a.a,"show",v(a.Wb,a,b)),a.o=N(a.a,"hide",v(a.Wb,a,b))):$c(a.C)&&(b=Ca(a.Zd,b),a.D.push(b),N(a.F,"message",b),b=Ca(rf,4,a.C,void 0,void 0,void 0,void 0),nf=Ce().setInterval(jf(b),500),a.B=!0));this.v.Ba?Gn(this,!1):Gn(this,!0)};
h.Ib=function(a){var b=[{element:this.S(),La:{clip:"auto",position:"fixed",left:a.left+"px",top:a.top+"px",overflow:"visible",width:a.width+"px",height:a.height+"px"}}];b.push({element:this.g,La:{position:"fixed",left:a.left+"px",top:a.top+"px",width:a.width+"px",height:a.height+"px"},attributes:{width:a.width,height:a.height}});return b};h.Cc=function(){Hn(this,"n")};
h.Za=function(){this.F&&this.F.dispose();this.A&&this.A.dispose();var a={};this.da?(a.tp=2,a.directSyncMode=!0):a.tp=1;a.ifrid=this.Sb;a.cn=this.ga;a.role=0;a.nativeProtocolVersion=2;this.A=new Ii(a,this.Ra?rd(Dd(this.J)):rd());Pd(this,this.A);if(a=this.g.contentWindow)this.A.Z=a;this.F=new Fn(this.A);Pd(this,this.F);a=this.F;var b=v(this.nc,this);a.o.Qa("general",v(a.v,a,b),!0);this.A.connect(v(this.Cc,this))};h.hb=function(){X.prototype.hb.call(this);Gn(this,!1)};
var Hn=function(a,b){a.N&&$l(a.N,b,w())};Z.prototype.U=function(){X.prototype.U.call(this);this.Ma(this.S())};
Z.prototype.Ma=function(a){X.prototype.Ma.call(this,a);if(this.da)this.O=new (p.XDomainRequest&&C&&!Fc(10)?Im:Om),In(this),a=W(this),Fg(a,this.O,"success",this.pc,!1,this),a=W(this),Fg(a,this.O,"error",this.oc,!1,this),this.O.Zb(this.a.B,"get");else if(this.a.g&&this.a.g.a){if(this.g=document.getElementById(this.a.g.a.iframeId))Jn(this),Kn(this),this.Za()}else if(this.a.content){if(this.a.content){In(this);Jn(this);this.fa&&(a=W(this),Fg(a,this.g,"load",this.Za,!1,this));Hn(this,"i");a='<script>var STUDIO_ORIGINAL_ASSET_URL = "'+
Ln(this)+'";\x3c/script>';var b=this.g;a=An(this.a.content,a);if("srcdoc"in zd(document,"IFRAME"))b.srcdoc=a;else if(b=b.contentWindow)b=b.document,b.open("text/html","replace"),b.write(a),b.close()}}else Mn(this)};
var In=function(a){var b=a.S(),c=a.I.g("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});c.src=jb(Bn).toString();b.appendChild(c);a.g=c;Kn(a)},Kn=function(a){Nn(a);var b=a.S();b.style.position="relative";b.style.margin="0px";b.style.padding="0px";b=a.g;if(null!=b){xn(b,a.a.width,a.a.height);var c={id:a.Sb,frameborder:"0",scrolling:"no"};a.a.o&&a.a.o.g&&(c.allowtransparency="true");ud(b,c);b.setAttribute("allowfullscreen","true");je(b,"0px","0px");b.style.border="0px";b.style.verticalAlign=
"bottom"}},Nn=function(a){var b=a.S();if(null!=b){var c;if(c=a.a.a)c=a.a.a.a,c=new Rd(c.top,c.left+c.width,c.top+c.height,c.left);xn(b,c?c.right-c.left:a.a.width,c?c.bottom-c.top:a.a.height);je(b,0,0);b.style.top="";b.style.bottom="";b.style.left="";b.style.right=""}},Jn=function(a){a.v.sa&&!a.v.g&&"function"===typeof window.stcc&&a.g&&window.stcc(a.g)},Mn=function(a){In(a);if(a.fa){var b=W(a);Fg(b,a.g,"load",a.Za,!1,a)}Hn(a,"i");Jn(a);a.g.src=Ln(a)};Z.prototype.oc=function(){Mn(this)};
Z.prototype.pc=function(){var a=this.O.Hb().toString();if(this.a.B){var b=this.a.B;b=b.slice(0,b.lastIndexOf("/")+1);/^\/+$/.test(b)||(b=b.replace(/\/+$/,""))}else b="";b='<base href="'+b+'/">';var c='<script>var STUDIO_ORIGINAL_ASSET_URL = "'+Ln(this)+'";\x3c/script>';this.ab=An(a,b+c);this.g&&(this.D=new Mh(50),O(W(this),this.D,"tick",this.Ta),this.D.start(),this.Ta())};
Z.prototype.Ta=function(){if(this.g.contentWindow||this.g.contentDocument){On(this);var a=W(this);Fg(a,this.g,"load",this.Za,!1,this);a=$d(this.ab);var b=Dd(this.g);b.open();b.write(Vb(a));b.close();this.O.dispose()}};Z.prototype.G=function(){On(this);J(this.X);J(this.j);J(this.Ba);J(this.$a);J(this.N);X.prototype.G.call(this)};
var On=function(a){a.D&&(a.D.stop(),Gg(W(a),a.D,"tick",a.Ta),a.D.dispose(),a.D=null)},Ln=function(a){return a.a.B+Pn(a)+Qn(a)},Pn=function(a){var b=[];wk(a.a,49)||(b.push(["liveEnvironment","true"]),window.layoutsPreview&&b.push(["layoutsPreview","true"]));b.push(["e",Gf]);a.a.content&&b.push(["ssr","true"]);var c=a.a.a,d=c?c.a.top:0;b.push(["leftOffset",c?c.a.left:0]);b.push(["topOffset",d]);a.v.g||b.push(["c",a.ga]);c=a.Ra?4:1;a.da&&(c=2);b.push(["t",c]);b.push(["renderingType","2"]);wk(a.a,117)&&
Gk(a.v,"simplify_query_string")||!window.layoutsPreview||(b.push(["layoutsRuntime",window.layoutsPreview.layoutsRuntime]),b.push(["fillerContext",window.layoutsPreview.fillerContext]));return b.length?"?"+b.map(function(e){return e.join("=")}).join("&"):""},Qn=function(a){var b=[];a.v.g&&b.push(["c",a.ga]);return b.length?"#"+b.map(function(c){return c.join("=")}).join("&"):""};Z.prototype.Wa=function(a,b){X.prototype.Wa.call(this,a,b);me(this.g,"100%","100%")};
Z.prototype.nc=function(a){return this.sa(a.methodName,a.args)};var Gn=function(a,b){wk(a.a,23)?yn(a,"setAdVisibleInternal",[b]):a.H(new Y(b?"visible":"hidden"))};Z.prototype.gb=function(){X.prototype.gb.call(this);Nn(this);wk(this.a,23)&&yn(this,"finishCollapseInternal")};Z.prototype.H=function(a){yn(this,"dispatchEvent",[a])};
var yn=function(a,b,c){c=Array.isArray(c)?c:[];b={methodName:b,args:c?c:[]};if(a.A&&a.A.isConnected()&&a.F){a=a.F;c=a.B++;a.j[c]=t;var d={};d.signature=c;d.data=b;a.o.wa("general",d)}else a.Ea.push(b)};h=Z.prototype;h.hd=function(a){Hn(this,"m");a&&a.data&&a.data.features&&Sf(a.data.features);Tf(1)&&(this.Tb=new Am(this.v,this.a));a=this.Tb.a(this.W());yn(this,"setAdParameters",[a]);this.yb()};
h.Dd=function(a){this.N&&a.data&&(a.data.version&&gm(this.N,a.data.version),Ta(Ti,function(b){b in a.data&&$l(this.N,b,a.data[b])},this))};h.wd=function(a){"setResponsiveBehavior"==a.type&&a.data&&2==a.data.state&&(this.j.A=2==a.data.behavior,Xm(this.j,v(this.ob,this,null)));this.hc=!0;Rn(this)};
h.xd=function(a){if("responsiveResize"==a.type&&a.data){var b=this.j,c=a.data.width||null,d=a.data.height||null;"gdn"==Pl()&&b.A&&b.o&&(Vm(b).v(c,d),c&&d&&b.a&&b.a.$&&(b.a.$.width=c,b.a.$.height=d));null==this.o&&(this.o=od(this.Ha));this.o.width=a.data.width||this.o.width;this.o.height=a.data.height||this.o.height;Rn(this)}};
h.md=function(a){var b=this;if("getHostpageFeatures"==a.type){a={};var c=(a.hostpageScroll=!1,a.viewportAware=!1,a.belowTheFold=!1,a);a=[];this.R&&(c.hostpageScroll=!0,c.viewportAware=!0,a.push(mh(Gm(this.kc).then(function(d){d&&d.hasOwnProperty("creativeFramePercentY")&&(c.belowTheFold=0>=Number(d.creativeFramePercentY))}),function(){})),this.R.wa("HIFI",{messageType:"registerEvent",registerEventType:"requestAdLocation"}));Promise.all(a).then(function(){var d=new Y("hostpageFeaturesLoaded");d.Ya("features",
c);b.H(d)})}};h.nd=function(){Zm(this.j).then(function(a){yn(this,"fullscreenSupportInternal",[a])},void 0,this)};h.ob=function(){Ym(this.j).then(function(a){yn(this,"fullscreenDimensionsInternal",nd(Kl,a)?[]:[a.width,a.height])},function(){yn(this,"fullscreenDimensionsInternal",[0,0])},this)};var Rn=function(a){if(a.la&&a.hc){var b=a.j.A;b&&null==a.o?b&&a.ob(null):(a.la=!1,a.Mb(new rj("fullscreenExpandRequested",null,b?[a.o.width,a.o.height]:[])))}};h=Z.prototype;
h.Mb=function(a){gn(this.X,!0);a=2==a.data.length?new G(a.data[0],a.data[1]):null;this.la=!1;null!=a&&(this.o=od(a));mh($m(this.j,od(this.Ha),a).then(this.j.I,void 0,this.j).then(function(b){this.dispatchEvent(new rj("triggerOuterFullscreenExpand",null,b));yn(this,"fullscreenExpandStartInternal",[b.Na.width,b.Na.height,b.ic.x,b.ic.y])},void 0,this),function(){yn(this,"fullscreenExpandStartInternal",[0,0,0,0])},this)};h.ld=function(){yn(this,"fullscreenExpandFinishInternal",[])};
h.vd=function(){yn(this,"fullscreenCollapseStartInternal",[])};h.kd=function(){gn(this.X,!1);var a=this.j;a.o&&(a.B&&a.B.cancel(),Vm(a)&&Vm(a).j(),Tm(a.F),an(a),a.o=!1,a.B=null);yn(this,"fullscreenCollapseFinishInternal",[]);this.yb()};h.se=function(a){var b=new Y("visibilityChangeWithInfo");b.Ya("visibilityParams",a);this.H(b)};
h.sd=function(a){if(a&&a.data.type&&(this.dc.push(a),!Gk(this.v,"use_event_sources"))){var b=a.data.type;b in Pi&&(0<=Ha(Ri,b)&&this.R&&this.R.wa("HIFI",{messageType:"registerEvent",registerEventType:b,registrationOptions:a.data.Ed||{}}),Fm(this.kc,b))}};
h.yb=function(){if(this.Ja!=Sn(this)||"onorientationchange"in window&&this.Ia!=window.orientation){this.Ja=Sn(this);"onorientationchange"in window&&(this.Ia=window.orientation);var a=new Y("orientation");a.Ya("mode",this.Ja);a.Ya("degrees",this.Ia);this.H(a)}};var Sn=function(a){a=xd(a.I.a);return a.innerWidth>a.innerHeight?"landscape":"portrait"};
Z.prototype.sa=function(a,b){switch(a){case "invokeExternalJSFunctionWithReturn":return this.rc.apply(this,b);default:return X.prototype.sa.call(this,a,b)}};Z.prototype.rc=function(a,b,c){a=Xf(a);if(!a)return null;var d=b.lastIndexOf(".");if(-1<d){var e=b.substring(0,d);b=b.substring(d+1);a=r(e,a)}b=r(b,a);return null==a&&null==b?null:"function"===typeof b?b.apply(a,c):b};var Tn=function(){this.a=[];this.g=[]};h=Tn.prototype;h.addReporter=function(a){y(this.a,function(b){b.newReporterCallback(a);a.newReporterCallback(b)});y(this.g,function(b){a.registerChargeableEventName(b)});this.a.push(a)};h.reportEvents=function(a){y(this.a,function(b){b.reportEvents(a)})};h.registerChargeableEventName=function(a){y(this.a,function(b){b.registerChargeableEventName(a)});this.g.push(a)};h.logCustomVariable=function(a,b){y(this.a,function(c){c.logCustomVariable(a,b)})};
h.getType=function(){return"UNIFIED_DISPATCHER"};h.getConfig=function(){return{reportingApiVersion:2}};h.newReporterCallback=function(){};h.supportsChargeableEvents=function(){var a=!1;y(this.a,function(b){b.supportsChargeableEvents()&&(a=!0)});return a};var Un=function(a,b){this.j=a.U;this.g=a.fa;this.a=a;this.o=b};h=Un.prototype;h.reportEvents=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=Yk(this.a,d.unifiedReportingEvent);if(e){var f=b;d=["eid",c+1,"=",e,";ecn",c+1,"=",d.count,";etm",c+1,"=",d.time,";"].join("");0==f.length&&f.push("");e=f.pop();950<e.length+d.length&&(f.push(e),e="");f.push(e+d)}}if(b.length)for(a=w(),c=0;c<b.length;c++)zd(document,"img").src=this.j+"&timestamp="+a+";"+b[c]};
h.registerChargeableEventName=function(a){var b=this.a.R;Pk(this.a,a,!0)&&!b&&Qk(this.a,!1)};h.logCustomVariable=function(a,b){this.g&&0<this.g.length&&pj(this.o,[this.g,"&timestamp=",w(),";str=",a,";strtype=",b].join(""))};h.getType=function(){return"STUDIO"};h.getConfig=function(){return{reportingApiVersion:2}};h.newReporterCallback=function(a){a.supportsChargeableEvents()&&!this.a.R&&Qk(this.a,!0)};h.supportsChargeableEvents=function(){return!1};var Vn=function(a){this.j={};this.a={};this.g={};this.C={};this.o=this.Gb(a);this.F=a;this.A={};this.B={};this.v={}};x(Vn,H);
var Xn=function(a,b,c,d){if(c||!a.C[b])a.C[b]||(a.j[b]=0,a.C[b]=!0),a.j[b]++,d&&Wn(a,d)},Wn=function(a,b){y(b,function(c){y(Jk(this.F,c),function(d){d.ping()},this)},a)},Yn=function(a,b,c,d){if(!(b in a.g)){for(var e=w(),f=a.A[b];f&&0<f.length;)e+=f.pop();a.g[b]=e;c&&(a.v[c]=a.v[c]||[],a.v[c].push(b));Xn(a,b,!1,d)}},Zn=function(a,b,c){if(b in a.g){for(var d=a.g[b],e=w(),f=a.B[b];f&&0<f.length;)e+=f.pop();d=e-d;0>d&&(d=0);a.a[b]=a.a[b]||0;a.a[b]+=d;delete a.g[b];c&&a.v[c]&&Na(a.v[c],b)}},$n=function(a){for(var b in a.g)Zn(a,
b)},ao=function(a){for(var b in a.g)Zn(a,b),Yn(a,b);var c=[];for(b in a.j){var d=0,e=a.j[b];a.a[b]&&(d=Math.floor(a.a[b]/1E3),a.a[b]-=1E3*d);a.j[b]=0;(0<e||0<d)&&c.push({unifiedReportingEvent:vk(b),count:e,time:d})}a.o.reportEvents(c)};Vn.prototype.G=function(){$n(this);Vn.aa.G.call(this)};var bo=function(a){this.j=a;this.g=!1;this.a=new Qf};h=bo.prototype;h.reportEvents=function(a){this.g||y(a,function(b){this.a.a(b.unifiedReportingEvent.name)&&(this.g=!0,y(Jk(this.j,"ENGAGEMENT_IMG"),function(c){c.ping()}))},this)};h.registerChargeableEventName=function(a){this.a.add(a)};h.logCustomVariable=function(){};h.getType=function(){return"THIRD_PARTY"};h.getConfig=function(){return{reportingApiVersion:2}};h.newReporterCallback=function(){};h.supportsChargeableEvents=function(){return!1};var co=function(a,b){this.D=b;Vn.call(this,a)};x(co,Vn);h=co.prototype;h.Gb=function(a){if("gdn"==Pl()){var b=r("googlecreative.reporting.sharedReporter");b||(b=new Tn,q("googlecreative.reporting.sharedReporter",b,void 0));b.addReporter(new Un(a,this.D));0<Jk(a,"ENGAGEMENT_IMG").length&&b.addReporter(new bo(a))}else b=new Un(a,this.D);return b};h.cc=t;h.ac=t;h.$b=function(a,b){this.o.logCustomVariable(a,b)};h.bc=function(a){this.o.registerChargeableEventName(a)};var eo=function(a){H.call(this);this.v=a;this.o=null;this.A=!1;this.j=null;this.g=[]};n(eo,H);h=eo.prototype;h.wb=function(){};h.Nb=function(){};h.ja=function(){var a;if(a=this.sb()){a:{a=this.v;for(c in a.j){var b=a.F.F[c];if(b&&b.v){var c=!0;break a}}c=!1}a=c||!this.lb()}a&&(ao(this.v),this.j=w())};h.lb=function(){return null!=this.j&&5E3>=w()-this.j};h.sb=function(){return null!=this.o&&12E5>=w()-this.o};
h.G=function(){for(this.ja();0<this.g.length;){var a=this.g.pop();"number"===typeof a?p.clearTimeout(a):a.dispose()}H.prototype.G.call(this)};var fo=function(a,b,c){eo.call(this,a);this.B=b;this.C=c;this.a=new Mh(1E3*this.B);N(this.a,"tick",v(this.ja,this))};n(fo,eo);h=fo.prototype;h.Nb=function(){this.a.Oa||this.a.start()};h.ja=function(){this.a.stop();eo.prototype.ja.call(this)};h.sb=function(){return null!=this.o&&this.C||eo.prototype.sb.call(this)};h.lb=function(){return!1};h.G=function(){this.a.stop();this.a.dispose();eo.prototype.G.call(this)};var go=function(a,b,c){eo.call(this,a);this.a=b;this.B=c&&0<this.a.length?this.a.pop():null};n(go,eo);go.prototype.wb=function(){for(var a=0;a<this.a.length;a++)this.g.push(Nh(v(this.ja,this),1E3*this.a[a]));null!=this.B&&(a=new Mh(1E3*this.B),N(a,"tick",v(this.ja,this)),a.start(),this.g.push(a))};var ho=[10,20,50,120];var io=function(a){this.a=a;this.g="undefined"!=typeof DARTDebugEventHandler&&DARTDebugEventHandler?new DARTDebugEventHandler:null;z(B(this.a.Ga))||DARTDebugEventHandler.initPreviewSession(this.a.Ga)};h=io.prototype;h.reportEvents=function(a){if(this.g)for(var b=0;b<a.length;++b){var c=a[b],d=c.unifiedReportingEvent;d=this.a.F[[d.type,escape(d.name),escape(d.videoName),d.trigger].join(":")];try{this.g.handleEventActivity(d.name,d.type,c.count,c.time,!d.o,this.a.v)}catch(e){}}};
h.registerChargeableEventName=function(){};h.logCustomVariable=function(a,b){try{this.g.handleCustomVariable(unescape(a),b,this.a.v)}catch(c){}};h.getType=function(){return"OUTPUT_CONSOLE"};h.getConfig=function(){return{reportingApiVersion:2}};h.newReporterCallback=function(){};h.supportsChargeableEvents=function(){return!1};var jo=function(a){Vn.call(this,a)};n(jo,Vn);h=jo.prototype;h.Gb=function(a){return new io(a)};h.cc=function(a,b,c){var d=this.o;a=d.a.F[a];if(d.g)try{d.g.handleEventAction(b,a.name,c,a.type,!a.o,d.a.v)}catch(e){}};h.ac=function(a){var b=this.o;try{b.g.handleCustomJSExecution(a,b.a.v)}catch(c){}};h.$b=function(a,b){this.o.logCustomVariable(a,b)};h.bc=function(){};var ko=function(a,b,c){eo.call(this,a);this.B=b;this.a=c};n(ko,eo);ko.prototype.lb=function(){return this.a&&eo.prototype.lb.call(this)};ko.prototype.wb=function(){var a=new Mh(1E3*this.B);N(a,"tick",v(this.ja,this));a.start();this.g.push(a)};var mo=function(a,b,c,d,e){R.call(this);this.a=a;this.la=b;this.ma=e;this.v=c;this.renderers={};this.B={};this.D=new Dg(this);this.J=this.N=!1;this.o=this.R=0;this.A=[];this.C={};this.T=new T(this.a,this);this.F=d;this.g=a.g?new jo(a):new co(a,this.F);this.j=lo(a,this.g);this.H={};C&&O(this.D,self,"unload",this.dispose);O(this.D,p,"pagehide",v(this.j.ja,this.j));null!=this.v.a&&(a=this.v,"loading"==a.a.getState()?a.a.addEventListener("ready",v(a.nb,a)):a.nb());If(1);If(64);window.layoutsPreview&&
If(16);"gdn"==Pl()&&If(32);this.a.g&&If(256);null!=this.v.a&&If(8)};x(mo,R);var no={},lo=function(a,b){var c=!1;y(a.j,function(d){null!=d.a&&"lightbox"==d.a.expansionMode&&(c=!0)});return a.g?new ko(b,2,!1):c?new fo(b,2,!0):new go(b,ho,!0)};mo.prototype.da=function(){this.o++;oo(this)};mo.prototype.W=function(){po(this,new tj("logEvent","Count","FULL_SCREEN"))};mo.prototype.fa=function(a){"boolean"===typeof a.A&&a.A?po(this,a):qo(this,a);a.F&&this.j.ja()};mo.prototype.U=function(){this.j.ja()};
var qo=function(a,b){var c=Vi(b.g);c=Rk(b.v,c);null!=c&&ro(a,c,b.g,b.D,b.a)},ro=function(a,b,c,d,e,f){if(null!==b)switch(a.g.cc(b,c,d),c){case "Exit":f||(f=[]),f.push("CLICK");case "Count":Xn(a.g,b,d,f);b=a.a.F[b];c=!1;b&&b.chargeable&&(b=a.j,b.A?c=!1:(ao(b.v),b.j=w(),c=b.A=!0));c||a.j.Nb();break;case "Start":Yn(a.g,b,e,f);break;case "Stop":Zn(a.g,b,e)}},po=function(a,b){if("DISPLAY_TIMER"==b.j)"Start"==b.g&&(a.N||(so(a).then(a.ka,void 0,a),a.N=!0),0==a.R++&&(b=Sk(a.a,"DISPLAY_TIMER"))&&ro(a,b,"Start",
!1),a.o--);else{var c=Sk(a.a,b.j);if(c){var d=[];("FULL_SCREEN"==b.j||"EXPAND_TIMER"==b.j&&"Start"==b.g)&&d.push("EXPANSION");ro(a,c,b.g,!1,b.a,d)}}};h=mo.prototype;h.Ad=function(a){po(this,a);var b=Tk(this.a,a.j,a.videoName);null!=b&&ro(this,b,a.g,!1,a.a)};h.Xb=function(){var a=Sk(this.a,"DISPLAY_TIMER");a&&ro(this,a,"Stop",!1)};
h.tb=function(a){var b=this.a.H[a.v]||{},c=null!=a.B?a.B:b.url;null==a.j||z(B(a.j))||(c=Jd(c,a.j));var d=this.a.J,e=Jk(this.a,"CLICK"),f=1==e.length?e[0].ha():"",g=c;e=null!=a.C?a.C:this.a.D;"market"==(c.match(Fd)[1]||null)&&wc?(c=Vf(this.a.D,"http://ad.doubleclick.net/viewad/817-grey.gif",b.reportingId||null,f,d),pj(this.F,c)):g=Vf(e,c,b.reportingId||null,f,d);c=g;d=b.j;b=null!=b.g?b.g:void 0;null!=this.v.a?(b=this.v,dl.test(c)?b.a.expand(c):b.a.open(c)):window.open(c,d||"_blank",b||"");a.log&&-1==
e.indexOf("[rm_exit_id]")&&qo(this,a);this.j.ja()};h.ud=function(a){var b=this.B[a.a];switch(a.type){case "expandAsset":yl(this,b);break;case "expandRequested":yl(this,b);break;case "expandFinished":if(a=this.renderers[b])un(a),this.dispatchEvent(new tl("EXPAND_FINISH",b));break;case "collapseAsset":zl(this,b);break;case "collapseRequested":zl(this,b);break;case "collapseFinished":if(a=this.renderers[b])a.gb(),this.dispatchEvent(new tl("COLLAPSE_FINISH",b));break;case "tellAssetHide":this.I(b)}};
h.fd=function(a){a=unescape(a.g);this.a.g&&this.g.ac(a);try{eval(a)}catch(b){}};h.ed=function(a){var b=Sk(this.a,a.v);if(b){var c=this.g,d=a.g;a=a.j;var e=c.A[b]||(c.A[b]=[]);b=c.B[b]||(c.B[b]=[]);0!=d&&e.push(d);0!=a&&b.push(a)}};h.gd=function(a){this.g.$b(a.g,a.j)};h.Yd=function(){var a=Jk(this.a,"IMPRESSION_JS");0<a.length&&(a=Ja(a,function(b){return b.ha()}),ql(a,this.a.K));to(this)};
var to=function(a){for(var b=a.a.j,c=0;c<b.length;c++){var d=b[c],e=d.j;xl(a,d,e&&!e.j?-1:1E3*(e&&e.j&&0<e.o&&e.o||0))}},xl=function(a,b,c){c?0<c&&(a.o++,a.A.push(Nh(v(a.O,a,b),c))):(a.o++,a.O(b))};
mo.prototype.O=function(a){if(!(a in this.renderers)){var b=this.la;var c=this.a,d=this.ma;b.g(a)?(b.a=uo(b),d=new Z(a,c,d,void 0,b.a),Gk(c,"use_event_sources")&&b.a&&vo(new wo(b.a),d),b=d):b=null;if(b){this.renderers[a]=b;this.B[b]=a;b=this.renderers[a];c=this.D;O(c,b,"logEvent",this.fa);O(c,b,"logVideoEvent",this.Ad);O(c,b,"logExitFlushEventsOpenPopup",this.tb);O(c,b,"launchExit",this.tb);O(c,b,"expandAsset expandRequested expandFinished collapseAsset collapseRequested collapseFinished tellAssetHide".split(" "),
this.ud);O(c,b,"invokeExternalJSFunction",this.fd);O(c,b,"reportCustomVariable",this.gd);O(c,b,"setTimerAdjustment",this.ed);O(c,b,"flushCounters",this.U);O(c,b,"RESET",this.da);O(c,b,"registerChargeableEventName",this.X);O(c,b,"fullscreenExpandFinished",this.W);if(a.K||this.a.N){if(b=a.C,c=sd(document,b)){if(d=this.a.N)d=!(!z(B(he(c,"position")))&&"static"!=he(c,"position"));d&&(c.style.position="relative");this.a.Fa&&(c.style.display="inline-block",c.style.verticalAlign="top");a.a&&a.a.g&&(this.H[b]=
c.style.height,c.style.height="auto");a.g?this.renderers[a].Cb(c):this.renderers[a].Va(c)}}else document.body&&document.body.firstChild?this.renderers[a].Ga(document.body.firstChild):document.body?this.renderers[a].Va(document.body):document.documentElement&&this.renderers[a].Va(document.documentElement);this.dispatchEvent(new tl("SHOW",a))}}a.j&&(b=a.j,b=1E3*(b&&b.g&&0<b.endTime&&b.endTime||-1),0<b&&(b=Nh(v(this.I,this,a),b),this.A.push(b),this.C[a]=b));this.J||(so(this).then(this.ga,void 0,this),
this.J=!0);this.a.Ba&&xo(this)};
var xo=function(a){var b=a.a.Ra;b?(b=p["bllsn"+b],"function"!==typeof b?setTimeout(function(){throw Error("atw: blockListenCallback is not a function");},0):b(function(c){if(c&&!c.block){c=a.a.j;for(var d=0;d<c.length;d++){var e=a.renderers[c[d]];e&&Gn(e,!0)}}})):setTimeout(function(){throw Error("atw: eeid is missing");},0)},so=function(a){var b=[];Ta(a.renderers,function(d,e){b.push(wn(this.renderers[e]))},a);if(8===a.a.Ta)if(a=Wc(),null==a)setTimeout(function(){throw Error("vignette: no interstitial API");},
0);else{var c=ih();a.addViewListener(c.resolve);b.push(c.promise)}return gh(b)};mo.prototype.I=function(a){var b=this.renderers[a];if(b){for(var c=this.g,d=c.v[b]||[];0<d.length;)Zn(c,d.pop(),b);delete this.B[b];b.dispose();delete this.renderers[a];this.C[a]&&(p.clearTimeout(this.C[a]),delete this.C[a]);this.dispatchEvent(new tl("HIDE",a));oo(this)}};
var yl=function(a,b){var c=a.renderers[b];c&&(tn(c),a.dispatchEvent(new tl("EXPAND",b)),a.dispatchEvent(new tl("EXPAND_REQUEST",b)))},zl=function(a,b){var c=a.renderers[b];c&&(vn(c),a.dispatchEvent(new tl("COLLAPSE",b)),a.dispatchEvent(new tl("COLLAPSE_REQUEST",b)))};mo.prototype.ga=function(){yo(this)};
var yo=function(a){a.j.o=w();a.a.Sa&&po(a,new tj("logEvent","Count","HTML5_CREATIVE_IMPRESSION"));a.a.Ea&&(a.a.sa&&!a.a.g?"function"===typeof window.vv?window.vv():pj(a.F,Vc(a.a.V)):pj(a.F,a.a.V));var b=[];bk.forEach(function(c){b.push.apply(b,ha(Jk(a.a,c)))});a.a.sa&&"function"===typeof window.pdib3&&!a.a.g?b.forEach(function(c){var d=c.ha();z(B(d))||(c.Vb?window.pdib3(d,!0):window.pdib3(d,!1))}):b.forEach(function(c){c.ping()})};
mo.prototype.ka=function(){this.j.wb();this.A.push(Nh(v(this.Xb,this),24E4))};var oo=function(a){0==--a.R&&(a.Xb(),$n(a.g),0==a.o&&a.dispose())};mo.prototype.X=function(a){this.g.bc(a.g)};
mo.prototype.G=function(){for(var a in this.H)sd(document,a).style.height=this.H[a];this.D.dispose();for(this.T.dispose();0<this.A.length;)p.clearTimeout(this.A.pop());a=this.a.j;for(var b=0;b<a.length;b++){var c=a[b];c in this.renderers&&(this.renderers[c].dispose(),delete this.renderers[c])}this.B=null;this.g.dispose();this.g=null;a=this.a.A;void 0!==no[a]&&delete no[a];mo.aa.G.call(this)};var zo=function(a,b,c,d){Ef.call(this,a,b);this.a={};this.C=c;this.A=d;this.j="rmad_perf"};n(zo,Ef);zo.prototype.g=function(){var a="&rl="+this.C+"&en="+this.A;if(!Xa(this.a)){var b=this.a,c=[],d;for(d in b)Id(d,b[d],c);a+="&"+c.join("&")}this.v=a;return Ef.prototype.g.call(this)};var Ao=function(a,b){Ef.call(this,a,"");this.A=b;this.j="studio-rl-error";this.a=null};n(Ao,Ef);
Ao.prototype.g=function(){if(null===this.a)return"";var a="&rl="+this.A+"&err=",b=encodeURIComponent;if("string"===typeof this.a)var c=this.a;else if(this.a instanceof Error){var d=this.a;c=d.toString();d.name&&-1==c.indexOf(d.name)&&(c+=": "+d.name);d.message&&-1==c.indexOf(d.message)&&(c+=": "+d.message);if(d.stack){d=d.stack;var e=c;try{-1==d.indexOf(e)&&(d=e+"\n"+d);for(var f;d!=f;)f=d,d=d.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");c=d.replace(/\n */g,"\n")}catch(g){c=e}}}else c=
"Failed to capture error message from: "+this.a.toString();this.v=a+b(c);return Ef.prototype.g.call(this)};var Bo=function(a){H.call(this);this.v=a+".js";this.g=new Ao(.001,a);this.a=this.j=null};n(Bo,H);Bo.prototype.o=function(a){var b;if(b=a instanceof ErrorEvent){b=a.filename;var c=this.v,d=b.length-c.length;b=0<=d&&b.indexOf(c,d)==d}b&&(this.g.a=a.error instanceof Error?a.error:a.message,a=this.g.g(),Ud(p,a,!1))};Bo.prototype.G=function(){this.a&&this.j.removeEventListener("error",this.a,!1);H.prototype.G.call(this)};var Co=function(a){this.a=a};var Do=function(){H.call(this);this.B={};this.g=this.a=null;this.j=[];this.o=!0};n(Do,H);var Eo=function(a,b,c){a.o=!1;null===a.a&&(a.a=new P("function"===typeof(p.MutationObserver||p.WebKitMutationObserver)?a.A:a.v,a));lh(a.a.then(b,t,c),function(){null!==this.g&&this.g.disconnect();this.o=!0},a)};
Do.prototype.A=function(a){Fo(this)?a():(this.g=new p.MutationObserver(v(function(b,c){var d=!1;y(b,function(e){"childList"==e.type&&0!=e.addedNodes.length&&(d=!0)});d&&Fo(this)&&(c.disconnect(),a())},this)),this.g.observe(p.document.documentElement,{childList:!0,subtree:!0}))};Do.prototype.v=function(a){var b=new mn(1500);ln?Fo(this)&&a():N(b,"ready",function(){Fo(this)?a():Nh(function(){Fo(this)&&a()},0,this)},!1,this)};
var Fo=function(a){for(var b=a.j.length-1;0<=b;--b){var c=a.j[b];if(null===sd(document,c)){b:{var d=window;try{var e=d.parent.document;break b}catch(f){}e=void 0}c=e?null!==e.getElementById(c):!1}else c=!0;if(!c)return a.j.length=b+1,!1}a.j=[];return!0};Do.prototype.G=function(){null!==this.a&&this.a.cancel();this.a=null;null!==this.g&&this.g.disconnect();this.g=null};var Go=null,Ho=null,Io=function(a,b){return Ja(Jk(a,b),function(c){return c.ha()})},Jo=function(a){var b=0<Lk(a).length,c=a.ma;a=a.la;return b&&ol(c,a)},Lo=function(a){var b="",c=r("dclkStudioV3.startTimes."+a.A),d=Lk(a);0<d.length&&(b=(b=d[0].o)&&b.a?b.a:"");d=!z(b)&&"0_0"!==b;c&&d?(a=Ko(Ho,a.g),c=new cm(new zo(4E-5,"https:","200_271",b),a,c,b)):c=null;return c},No=function(a){if(Jo(a)){var b=Lo(a);b&&$l(b,"l",w());var c=new Do;y(a.j,function(e){e=e.C;null!=e&&c.o&&(e=new Co(e),c.a=null,c.B["."]=
e,c.j.push(e.a))});a=Mo(a,b);Eo(c,a.Yd,a)}else if(a.P){zk(a);b=Io(a,"IMPRESSION_IMG");var d=Io(a,"IMPRESSION_JS");rl(a.v,a.P,a.K,a.g,b,a.C.a,a.C.v,a.C.o,a.C.g,d)}},Po=function(){Oo().then(function(a){y(a,No)})},Qo=function(a){no[a]&&no[a].dispose()};var So=function(a,b){var c=new yk,d=new kk(a.creativeDto);if(!c.ta){c.ta=!0;var e=d.g,f=e.W;c.v=d.id||c.v;c.A=d.uniqueId||c.v||c.A;c.B=e.U||c.B;c.g=d.o||c.g;c.ma=d.j||c.ma;c.la=d.v||c.la;c.ga=e.X||c.ga;for(var g in e.g)c.a[g]=e.g[g];c.a.sn=e.N;c.a.sid=e.V;c.a.aid=e.v;c.a.cid=e.creativeId;c.a.buy=e.B;c.a.pid=e.P;c.a.adv=e.A;c.a.kid=e.K;c.a.rid=e.J;c.a.geo=e.I;c.a.randomNumber=e.randomNumber;for(var k in f.a)c.a[k]=f.a[k];c.K=f.g||c.K;c.N=f.j||c.N;c.da="https"==(d.H.match(Fd)[1]||null);c.O={ib:d.D||
c.O.ib,jb:d.F||c.O.jb};f=new dk(c.g);z(B(e.a))||(c.o.CLICK=[new Zj(e.a,f)]);if(Array.isArray(d.a)&&0<d.a.length)for(c.o.IMPRESSION_IMG=[],g=0;g<d.a.length;++g)c.o.IMPRESSION_IMG.push(new Zj(d.a[g],f));z(B(d.A))||(c.o.ARTWORK_IMPRESSION=[new Zj(d.A,f)]);c.U=e.D||c.U;c.fa=e.O||c.fa;c.D=e.T||c.D;g=parseInt(e.C,10);c.J=isNaN(g)?c.J:g;c.V=e.j||c.V;c.W=e.F||c.W;c.ka=e.H||c.ka;c.P=d.B||c.P;c.C=new nj(f,e.R||e.o)}c.Ea=b.delayedImpression;e=b.standardEventIds;for(var l in e)Ok(c,l,e[l]);e=b.exitEvents;for(l=
0;l<e.length;l++)f=e[l],g=new lk(f.name,f.reportingId,f.url),g.j=f.targetWindow,g.g=f.windowProperties,Uk(c,g);f=b.timerEvents;for(l=0;l<f.length;l++)e=f[l],Wk(c,Ro(e,"Timer"));f=b.counterEvents;for(l=0;l<f.length;l++)e=f[l],Vk(c,Ro(e,"Counter"));e=c.da;f=b.childFiles;for(l=0;l<f.length;l++)Zk(c,jk(f[l],e));f=b.videoFiles;for(l=0;l<f.length;l++)Zk(c,jk(f[l],e));e=b.videoEntries;for(l=0;l<e.length;l++)f=e[l],c.Ja.push(new rk(f.reportingIdentifier,new sk(f.lowBandwidthVideo,f.mediumBandwidthVideo,f.highBandwidthVideo),
new sk(f.lowBandwidthFallbackVideo,f.mediumBandwidthFallbackVideo,f.highBandwidthFallbackVideo)));l=d.C;d=ol(d.j,d.v);d=l&&d?"HTML5":null;b=b.primaryAssets;for(l=0;l<b.length;++l){g=b[l];f=a.creativeDto.adServerData.tag;e=new Uj(g.id,g.artworkType,g.displayType,new G(parseInt(g.width,10)||0,parseInt(g.height,10)||0),(Ik(c)||"")+g.servingPath);e.I=g.zIndex;e.D=g.location||e.D;e.layoutsConfig=g.layoutsConfig;if(k=g.htmlArtworkTypeData)e.o=new Lj(k.isTransparent,k.sdkVersion);if(k=g.floatingDisplayTypeData){var m=
k.position;m=new Pj(m.top+m.topUnit,m.left+m.leftUnit);e.j=new Kj(m,k.startTime,k.endTime)}if(k=g.expandingDisplayTypeData)m=k.collapsedRect,e.a=new Jj(new Sd(m.left,m.top,m.width,m.height),k.isPushdown?"push_down":Gj(k.expansionMode)||"normal");g.imageGalleryTypeData&&(e.F=new Mj);g=g.pageSettings;k=new Nj;g&&(k.a=g.updateZIndex||!1);e.H=k;g=void 0;if(null==f)f={};else{k={};for(g in Vj)m=r(g,f),null!==m&&(k[Vj[g]]=m+"");f=k}Xj(e,f);Wj(e);e.A==d&&Kk(c,e)}return c},Ro=function(a,b){if(a.videoData){var c=
a.videoData;c=new mk(c.associatedVideoEntryReportingIdentifier,c.associatedStandardVideoEvent)}return new pk(a.name,a.reportingId,b,c)};var To=function(a,b){var c=null;"CREATIVE_PARAMETER_LAYOUT_CONFIG"in a&&(c=a.CREATIVE_PARAMETER_LAYOUT_CONFIG);for(var d=[],e=a.cid||"",f=0;f<b.length;f++){var g=b[f],k=a,l=c,m=new Uj(e+"_"+f,g.type,g.renderAs,new G(parseInt(g.width,10)||0,parseInt(g.height,10)||0),g.url);m.content=g.content;m.I=parseInt(g.zIndex,10);m.D=g.location||m.D;m.layoutsConfig=l||m.layoutsConfig;if(l=g.htmlProperties)m.o=new Lj(l.transparent,l.studioSdkVersion);if(l=g.floatingDisplayProperties){var u=new Pj(l.top,l.left);
m.j=new Kj(u,parseInt(l.startTime,10),parseInt(l.duration,10))}if(u=g.expandingDisplayProperties)l=new Sd(parseInt(u.collapsedRectLeft,10),parseInt(u.collapsedRectTop,10),parseInt(u.collapsedRectWidth,10),parseInt(u.collapsedRectHeight,10)),u=Gj(u.expansionMode)||"normal",Yj(l.left)&&Yj(l.top)&&Yj(l.width)&&Yj(l.height)&&(m.a=new Jj(l,u));g.imageGalleryProperties&&(m.F=new Mj);if(g=g.preRenderedProperties)m.g=new Sj(g);m.H=new Nj;m.H.a=!0;null!=k&&Xj(m,k);Wj(m);d.push(m)}return d},Vo=function(a){var b=
new yk;Fk(b,a);b.Ea=!z(B(a.impressionUrl));if(a.creativeParameters.CREATIVE_PARAMETER_EXPERIMENTS){var c=Uo(a.creativeParameters.CREATIVE_PARAMETER_EXPERIMENTS);b.X=c}b.sa=xk(a.creativeParameters.CREATIVE_PARAMETER_IS_B2R_ELIGIBLE);b.Ba=xk(a.creativeParameters.CREATIVE_PARAMETER_AUTO_TAG_WRAPPING_BEHAVIOR_REQUIRED);b.Ra=B(a.creativeParameters.CREATIVE_PARAMETER_EEID);for(c=0;c<a.standardEvents.length;c++){var d=a.standardEvents[c];Ok(b,d.name,d.reportingId)}for(c=0;c<a.exitEvents.length;c++)if(d=
a.exitEvents[c],!d.backUpExit){var e=new lk(d.name,d.reportingId,d.destinationUrl);e.j=d.targetWindow;e.g=d.windowProperties;Uk(b,e)}/dfa7banner/.test(a.renderingLibraryData.renderingLibrary)&&!z(a.clickUrl)&&Ta(b.H,function(k){k.url=Vf(a.clickUrl,k.url,null)});for(c=0;c<a.timerEvents.length;c++)d=a.timerEvents[c],e=ok(d.name),d=new pk(d.name,d.reportingId,"Timer",e),Wk(b,d);for(c=0;c<a.counterEvents.length;c++)d=a.counterEvents[c],e=ok(d.name),d=new pk(d.name,d.reportingId,"Counter",e),Vk(b,d);d=
a.primaryFiles;for(c=0;c<d.length;c++);e=!1;d=To(a.creativeParameters,a.primaryFiles);for(c=0;c<d.length;c++){var f=d[c];"HTML5"==f.A&&Kk(b,f);null!=f.F&&(e=!0)}d=b.da;c=e?Ik(b):null;e=(e=a.creativeParameters.CREATIVE_PARAMETER_ASSETS_DATA)?Uo(e):{};for(var g in e)Zk(b,new hk(g,e[g],d,c));g=(c=a.creativeParameters.CREATIVE_PARAMETER_VIDEO_ASSETS_DATA)?Uo(c):[];for(c=0;c<g.length;++c)e=g[c],f=new hk(e.name,e.progressiveUrl,d),ik(f,e.streamingUrl,e.transcodeInformation),Zk(b,f);g=(c=a.creativeParameters.CREATIVE_PARAMETER_VIDEO_DATA)?
Uo(c):[];for(c=0;c<g.length;++c)b.Ja.push(tk(g[c]));return b},Uo=function(a){return JSON.parse(a.replace(/\\"/g,'"'))};var Wo=function(){},Oo=function(){var a=Xo();return new P(function(b){var c=[],d=r("studioV2.creatives")||{};for(l in d){var e=d[l],f=e.creativeDefinition;if(f)for(e=e.adResponses;0<e.length;){var g=e.shift(),k=g.creativeDto;if(k.rendererName==Hl&&"200_271"==k.templateVersion)c.push(So(g,f));else{e.unshift(g);break}}}d=[];var l=r("window.dclkStudioV3.creatives")||[];for(f=l.length-1;0<=f;--f){e=l[f];e.previewMode&&(g=e,k=r("window.dclkStudioV3.creativeParametersOverrides"),g&&k&&(k.CREATIVE_PARAMETER_LAYOUT_CONFIG&&
(g.creativeParameters.CREATIVE_PARAMETER_LAYOUT_CONFIG=k.CREATIVE_PARAMETER_LAYOUT_CONFIG),k.PREVIEW_FRAME_NAME&&(g.creativeParameters.PREVIEW_FRAME_NAME=k.PREVIEW_FRAME_NAME),k.PREVIEW_FRAME_DEPTH&&(g.creativeParameters.PREVIEW_FRAME_DEPTH=k.PREVIEW_FRAME_DEPTH)));e=Vo(e);a:{g=e.j;for(k=0;k<g.length;k++){var m=g[k];if("BACKUP_IMAGE"!=m.v&&"PRE_LOADER"!=m.v&&!Go.g(m)){g=!1;break a}}g="200_271"==e.$a}g&&(Array.prototype.splice.call(l,f,1),d.push(e))}b(c.concat(d))},a)};var Yo=function(){H.call(this);this.a=null;this.j=new Dg(this)};n(Yo,H);var vo=function(a,b){a.a||a.K()||(a.a=b,Pd(b,a),O(a.j,b,"registerEventTypeListenerForType",a.g),b.dc.forEach(function(c){return a.g(c)}))};Yo.prototype.dispatchEvent=function(a){this.a&&this.a.H(a)};Yo.prototype.g=function(){};Yo.prototype.G=function(){this.j.dispose();this.a=null};var wo=function(a){Yo.call(this);var b=this;this.o=a;this.v=new Dm(function(c){return b.dispatchEvent(c)},this.o)};n(wo,Yo);wo.prototype.g=function(a){var b=a.data||{};a=b.type;if(a in Pi){b=b.registrationOptions;var c={};this.o.wa("HIFI",(c.messageType="registerEvent",c.registerEventType=a,c.registrationOptions=b||{},c));Fm(this.v,a)}};var Zo=function(){this.a=null},Ko=function(a,b){a.a||(a.a=new dk(b));return a.a};var $o=function(){this.o=new Zo;this.j=null},ap=function(a,b){return Array.isArray(a)?0<=Ha(a,b):a==b};$o.prototype.g=function(){return!1};
var Mo=function(a,b){var c=Go,d=Ko(c.o,a.g),e=a.A;no[e]||(no[e]=new mo(a,c,bl.getInstance(),d,b));return no[e]},Xo=function(){var a=Go;a.j||(a.j=new Wo);return a.j},uo=function(a){var b=$i(),c=null;Xa(b)||Ta(b,function(d){var e=new aj;e.v=2;e.a=p.parent;e.g=d;e.o=!1;if(z(B(e.g)))throw Error("Cannot build secure channel: No secure token supplied.");if(2==e.v){if(null==e.a)throw Error("Cannot build secure channel: Must supply a peer window when requesting remote channel.");d=new ej(e)}else d=new bj(e);
c=new gj(d);c.connect()},a);return c};var bp=function(){$o.call(this);this.a=null};n(bp,$o);bp.prototype.g=function(a){var b;if(b=""!=a.B)b=ap("BANNER",a.v),a=ap("HTML5",a.A),b=b&&a;return b};var cp=new bp,dp=cp.o;Go=cp;Ho=dp;for(var ep=document.getElementsByTagName("noscript"),fp=0;fp<ep.length;fp++)ep[fp].style.display="none";var gp=r("studioV2.loadedLibraries.200_271.html_inpage");
if(!gp||!gp.bootstrap){q("studioV2.loadedLibraries.200_271.html_inpage.bootstrap",Po,void 0);q("studioV2.loadedLibraries.200_271.html_inpage.unload",Qo,void 0);var hp;a:{var ip=r("dclkStudioV3.renderingLibraries");if(ip)for(var jp=0;jp<ip.length;++jp){var kp=ip[jp];if("200_271"==kp.version&&-1!=kp.url.indexOf("/html_inpage")){hp=kp;break a}}hp=null}null!==hp&&(hp.bootstrapFunction=Po,hp.unload=Qo);Hl="html_inpage";var lp="undefined_type"===Hl?null:Hl+"_rendering_lib_200_271";if(null!=lp&&!r("dclkStudioV3.rlErrorSampled")&&
!r("studioV2.rlErrorSampled")){var mp=new Bo(lp);if(mp.g.o){mp.a=v(mp.o,mp);mp.j=p;p.addEventListener("error",mp.a);var np=r("dclkStudioV3");np?np.Qd=mp:r("studioV2").Qd=mp}}var op=r("studioV2.defer");op&&"function"===typeof op?op(Po):Po()};}).call(this);
