The essential MacBook Pro Touch Bar Guide

Apple, OS X, macOS, Mac, PowerBook, MacBook Pro, Touch Bar, Human interface guidelines

Apple has confirmed all the pre-event speculation, new Apple TV software, new Macs, no desktops, and the all-new MacBook Pro Touch Bar.

What is the Touch Bar?

Touch Bar replaces the Function keys at the top of the keyboard. It’s a Multi-Touch Retina Display, just like an iPhone screen, which means it offers dynamic virtual controls that dynamically change in reaction to what you are doing and the apps you are using. Apple CDO, Jony Ive, says the Touch Bar means, “Commands, once hidden, now more accessible.” Touch Bar also integrates a TouchID sensor, so you can open your Mac with a fingerprint and purchase products online.

Apple has confirmed all the pre-event speculation, new Apple TV software, new Macs, no desktops, and the all-new MacBook Pro Touch Bar.

What is the Touch Bar?

Touch Bar replaces the Function keys at the top of the keyboard. It’s a Multi-Touch Retina Display, just like an iPhone screen, which means it offers dynamic virtual controls that dynamically change in reaction to what you are doing and the apps you are using. Apple CDO, Jony Ive, says the Touch Bar means, “Commands, once hidden, now more accessible.” Touch Bar also integrates a TouchID sensor, so you can open your Mac with a fingerprint and purchase products online.

How it works

Tapping the Touch Bar activates the available contextual control or item; touching and holding an item activates any secondary action and panning moves elements, so you can slide volume controls, images or a video time line.

The right hand side of the Touch Bar offers an expandable Control Strip for system level tasks, such as Siri. The area to the left of the Control Strip zone is for app-specific controls, and an Esc button may appear to the left of the app region. Users can configure the Touch Bar, adding and removing items from the Control Strip or hiding the App region as they choose.

How do you customize controls?

Tap View>Customize Touch Bar from the Finder menu, and you can take a look at all the available buttons you can use. Just drag them down to the Touch Bar if you want them.

What that means

Apple’s Human Interface Guidelines provide a clear account of what this means in practice: “When the user types text in a document, the Touch Bar might include controls for adjusting the font face and size. When the user views a map, the Touch Bar could give quick, one-tap access to gas stations, lodging, and restaurants near the displayed location.”

How can I use Touch Bar today?

You can take a look at the Touch Bar today at your local Apple Store, but if you aren’t near a store you could download the latest Xcode 8.1 release, which offers a Touch Bar simulator so you can get a sense of the thing. (Personally, I think Apple should create an interactive webpage to give users a sense of the thing).

Wait, what about the Esc key?

The Esc key should still be available on the Touch Bar, but if you really need one you can set your Caps Lock key to act as a physical Esc key following these instructions.

Who supports it?

Some developers have been working with Apple to bring Touch Bar support to their products. Pixelmator Labs, Serif, BlackMagic Design, Microsoft, Adobe, Algoriddim , Sketch, and (of course) Apple have all announced plans to support the feature, and the first apps that do support it should ship at around the same time as the new MacBook Pros begin to be delivered. Apple has also released Xcode 8.1, which offers the tools developers need to support Touch Bar in their apps. (When developers get hold of a Touch Bar Mac they will also benefit from Xcode shortcuts that use the bar).

[Source:-Computerworld

// <![CDATA[
(function() {(function(){var h=this,k=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},l=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}};var m=function(a,b){for(var c in a)b.call(void 0,a[c],c,a)};var n=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 p={i:"ad_container_id",A:"hideObjects",X:"mtfTop",W:"mtfLeft",ca:"zindex",m:"mtfDuration",aa:"wmode",Z:"preferFlash",s:"as_kw",u:"as_lat",v:"as_lng",B:"mtfIFPath",o:"expansionMode",U:"top_container",T:"mtfTopFloat",S:"mtfTopDuration",V:"mtfTopWmode",P:"right_container",O:"mtfRightFloat",N:"mtfRightDuration",R:"mtfRightWmode",H:"bottom_container",G:"mtfBottomFloat",F:"mtfBottomDuration",I:"mtfBottomWmode",L:"left_container",K:"mtfLeftFloat",J:"mtfLeftDuration",M:"mtfLeftWmode",$:"mtfRenderFloatInplace",ba:"tryToWriteHtmlInline",j:"debugjs",C:"dcapp",g:"breakoutiframe",D:"inMobileAdSdk"},r=function(a){m(a,function(b,c){if(c.toLowerCase()in q){var e=q[c.toLowerCase()];c in a&&delete a[c];a[e]=b}})},q=function(){var a={};m(p,function(b){a[b.toLowerCase()]=b});return a}();var u=function(a){this.a=a;var b;a:{for(b in a.displayConfigParameters){b:if(a=t,"string"==typeof a)a="string"==typeof b&&1==b.length?a.indexOf(b,0):-1;else{for(var c=0;c<a.length;c++)if(c in a&&a[c]===b){a=c;break b}a=-1}if(!(0<=a)){b=!0;break a}}b=!1}this.f=b},t=["ad_container_id"],v=function(a){return a.f?a.a.displayConfigParameters:a.a.creativeParameters},w=function(a,b){for(var c=0;c<a.a.primaryFiles.length;++c)if(a.a.primaryFiles[c].type==b)return!0;return!1};var x={pattern:/rendering_lib_((?:[0-9_]+)|(?:latest))\.js$/,c:"rendering_lib_db_$1.js"},y={pattern:/\/[a-z_0-9]+_rendering_lib/,c:"/iframe_buster"},z={pattern:/(.*\/)(.*_)rendering_lib_((?:[0-9_]+)|(?:latest))\.js$/,c:"$1inapp_html_inpage_rendering_lib_$3.js"},A={pattern:/\/[0-9]+\/[a-z_0-9]+rendering_lib.+$/,c:"/ads/studio/cached_libs/modernizr_2.8.3_ec185bb44fe5e6bf7455d6e8ef37ed0e_no-classes.js"},E=function(a){var b=v(a),c=a.a.renderingLibraryData,e=c.renderingLibrary,d=c.version;if(d=!/express|image_gallery|dfa7banner|inapp/.test(e)&&("latest"==d||0<=B(d,"200_74"))){if(d=!w(a,"FLASH")){a:{for(d=0;d<a.a.primaryFiles.length;++d){var f=a.a.primaryFiles[d].expandingDisplayProperties;if(f&&"lightbox"==n(f.expansionMode)){d=!0;break a}}d=!1}d=!d}d=d&&null!=window.mraid}d&&(e=e.replace(z.pattern,z.c));"true"==b.debugjs&&(e=e.replace(x.pattern,x.c));(b=h.self==h.top)||(b=window.Y&&window.Y.SandBox&&window.Y.SandBox.vendor,d=window.$sf&&window.$sf.ext,f=window.$WLXRmAd,b=!!(window.IN_ADSENSE_IFRAME||b||d||f));if(!b){a:if(b=v(a).breakoutiframe)b=!!b&&"true"==b.toLowerCase();else{b=a.a.primaryFiles;for(d=0;d<b.length;d++){var f=b[d].renderAs,g=0==(parseInt(b[d].width,10)||0)&&0==(parseInt(b[d].height,10)||0);if("EXPANDABLE"==f||"FLOATING"==f&&!g){b=!0;break a}}b=!1}b=!b}if(b||a.a.previewMode){a:{a=e;b=C();for(d=0;d<b.renderingLibraries.length;d++)if(f=b.renderingLibraries[d],f.url==a&&f.bootstrapFunction){a=f;break a}a=null}a?a.bootstrapFunction():(a=C(),D(e,!1,void 0,void 0,void 0,!0),a.renderingLibraries.push({version:c.version,url:e,loading:!0,bootstrapFunction:null}))}else c=e.replace(y.pattern,y.c),D(c,!0)},B=function(a,b){a=F(a);b=F(b);for(var c=Math.min(a.length,b.length),e=0;e<c;e++)if(a[e]!=b[e])return a[e]-b[e];return a.length-b.length},F=function(a){a=a.split("_");for(var b=[],c=0;c<a.length;c++)b.push(parseInt(a[c],10));return b},D=function(a,b,c,e,d,f){var g=document.createElement("script");g.src=a;g.type=c?c:"text/javascript";g.async=!!b;f&&(g.crossOrigin="anonymous");e&&(g.onload=e);d&&(g.onerror=d);a=document.getElementsByTagName("head");(a&&0!=a.length?a[0]:document.documentElement).appendChild(g)},C=function(){return window.dclkStudioV3=window.dclkStudioV3||{creatives:[],renderingLibraries:[],creativeCount:1}},G=function(a){try{if(null!=(a["cps-top-iframe-beacon"]?a["cps-top-iframe-beacon"]:null))return!0}catch(b){}return a==a.parent?!1:G(a.parent)},H=function(a){if(null!=a){r(a.creativeParameters);if(null!=a.html5Features)for(var b=0;b<a.html5Features.length;++b)"CSS_ANIMATIONS"==a.html5Features[b]&&(a.html5Features[b]="Modernizr.cssanimations");!a.previewMode&&G(h)&&(a.previewMode=!0);a=new u(a);b=C();b.creatives.push(a.a);var c=a.a.creativeParameters;c.creative_unique_id=c.cid+"_"+b.creativeCount++;b=v(a).ad_container_id;a:if((c=v(a).mtfRenderFloatInplace)&&"true"==c.toLowerCase())c=!0;else{for(var c=a.a.primaryFiles,e=0;e<c.length;e++){var d=c[e].renderAs;if("EXPANDABLE"==d||"BANNER"==d){c=!0;break a}}c=!1}!c||b&&""!=b||(b="dclk-studio-creative_"+(new Date).getTime(),document.write(['

‘].join("")),c=a.a,c.creativeParameters.ad_container_id=b,c.creativeParameters.generate_ad_slot="true",null==c.displayConfigParameters&&(c.displayConfigParameters={}),c.displayConfigParameters.ad_container_id=b);c=a.a;b=c.renderingLibraryData;e=b.version;if(w(a,"HTML5")&&!("latest"==e||0<=B(e,"200_108"))&&(c=c.html5Features,!("Modernizr"in h)&&"array"==k(c)&&0<c.length)){e=!1;for(d=0;d// g?c=a+f+c:(g+=f.length,f=a.indexOf("&",g),c=0<=f?a.substring(0,g)+c+a.substring(f):a.substring(0,g)+c)}return 2E3<c.length?void 0!==d?da(a,b,d,void 0,e):a:c};var ea=function(){var a=/[&\?#]exk=([^& ]+)/.exec(t.location.href);return a&&2==a.length?a[1]:null};var fa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},ha=function(a,b){var c=0;a=fa(String(a)).split(".");b=fa(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=ga(0==f[1].length?0:parseInt(f[1],10),0==g[1].length?0:parseInt(g[1],10))||ga(0==f[2].length,0==g[2].length)||ga(f[2],g[2]);f=f[3];g=g[3]}while(0==c)}return c},ga=function(a,b){return ab?1:0};var ia=function(a,b,c){if("array"==ba(b))for(var d=0;d<b.length;d++)ia(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))},ja=function(a,b,c){for(c=c||0;c<b.length;c+=2)ia(b[c],b[c+1],a);return a},ka=function(a,b){var c=2==arguments.length?ja([a],arguments[1],0):ja([a],arguments,1);if(c[1]){var d=c[0],e=d.indexOf("#");0e?c[1]="?":e==d.length-1&&(c[1]=void 0)}return c.join("")};var la=function(a){la[" "](a);return a};la[" "]=aa;var na=function(a,b){var c=ma;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var oa=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)},qa=function(){var a=pa;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1e)return"";a.c.sort(function(a,b){return a-b});d=null;c="";for(var f=0;f<a.c.length;f++)for(var g=a.c[f],l=a.f[g],m=0;m=n.length){e-=n.length;b+=n;c=a.g;break}else a.l&&(c=e,n[c-1]==a.g&&–c,b+=n.substr(0,c),c=a.g,e=0);d=null==d?g:d}}f="";a.h&&null!=d&&(f=c+a.h+"="+(a.S||d));return b+f+""},za=function(a){if(!a.h)return a.o;var b=1,c;for(c in a.f)b=c.length>b?c.length:b;return a.o-a.h.length-b-a.g.length-1},Aa=function(a,b,c,d,e){var f=[];oa(a,function(a,l){(a=Ca(a,b,c,d,e))&&f.push(l+"="+a)});return f.join(b)},Ca=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;ge?encodeURIComponent(Aa(a,b,c,d,e+1)):"…";return encodeURIComponent(String(a))};var Ea=function(a,b,c,d,e){if((d?a.R:Math.random())<(e||a.J))try{var f;c instanceof xa?f=c:(f=new xa,oa(c,function(a,b){var c=f,d=c.N++;a=ya(b,a);c.c.push(d);c.f[d]=a}));var g=Ba(f,a.P,a.K,a.O+b+"&");g&&Da(h,g)}catch(l){}},Da=function(a,b,c){a.google_image_requests||(a.google_image_requests=[]);var d=a.document.createElement("img");if(c){var e=function(a){c(a);a=e;d.removeEventListener?d.removeEventListener("load",a,!1):d.detachEvent&&d.detachEvent("onload",a);a=e;d.removeEventListener?d.removeEventListener("error",a,!1):d.detachEvent&&d.detachEvent("onerror",a)};wa(d,"load",e);wa(d,"error",e)}d.src=b;a.google_image_requests.push(d)};var Fa=function(a,b,c){this.u=a;this.M=b;this.i=c;this.j=null;this.L=this.s;this.A=!1},Ga=function(a,b,c){this.message=a;this.fileName=b||"";this.lineNumber=c||-1},Ia=function(a,b,c){var d;try{d=c()}catch(g){var e=a.i;try{var f=Ha(g),e=a.L.call(a,b,f,void 0,void 0)}catch(l){a.s("pAR",l)}if(!e)throw g;}finally{}return d},v=function(a,b){var c=Ja;return function(){for(var d=[],e=0;e<arguments.length;++e)d[e]=arguments[e];return Ia(c,a,function(){return b.apply(void 0,d)})}};Fa.prototype.s=function(a,b,c,d,e){try{var f=e||this.M,g=new xa;g.l=!0;u(g,1,"context",a);b instanceof Ga||(b=Ha(b));u(g,2,"msg",b.message.substring(0,512));b.fileName&&u(g,3,"file",b.fileName);0<b.lineNumber&&u(g,4,"line",b.lineNumber.toString());b={};if(this.j)try{this.j(b)}catch(F){}if(d)try{d(b)}catch(F){}d=[b];g.c.push(5);g.f[5]=d;var l;e=h;d=[];var m,n=null;do{b=e;var r;try{var W;if(W=!!b&&null!=b.location.href)b:{try{la(b.foo);W=!0;break b}catch(F){}W=!1}r=W}catch(F){r=!1}r?(m=b.location.href,n=b.document&&b.document.referrer||null):(m=n,n=null);d.push(new va(m||""));try{e=b.parent}catch(F){e=null}}while(e&&b!=e);m=0;for(var G=d.length-1;m<=G;++m)d[m].depth=G-m;b=h;if(b.location&&b.location.ancestorOrigins&&b.location.ancestorOrigins.length==d.length-1)for(m=1;m<d.length;++m){var ra=d[m];ra.url||(ra.url=b.location.ancestorOrigins[m-1]||"",ra.m=!0)}for(var sa=new va(h.location.href,!1),ta=d.length-1,G=ta;0c?Math.max(0,a.length+c):c;if(k(a))return k(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ma=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=k(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Na=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=k(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};var Oa=function(a,b){for(var c in a)b.call(void 0,a[c],c,a)},Pa=function(a,b){return null!==a&&b in a};var x;a:{var Qa=h.navigator;if(Qa){var Ra=Qa.userAgent;if(Ra){x=Ra;break a}}x=""}var y=function(a){return-1!=x.indexOf(a)},Sa=function(a){for(var b=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,c=[],d;d=b.exec(a);)c.push([d[1],d[2],d[3]||void 0]);return c};var Ta=function(){return y("Trident")||y("MSIE")},z=function(){return(y("Chrome")||y("CriOS"))&&!y("Edge")},Va=function(){function a(a){var b;a:{b=d;for(var e=a.length,l=k(a)?a.split(""):a,m=0;mb?null:k(a)?a.charAt(b):a[b]]||""}var b=x;if(Ta())return Ua(b);var b=Sa(b),c={};Ma(b,function(a){c[a[0]]=a[1]});var d=ca(Pa,c);return y("Opera")?a(["Version","Opera"]):y("Edge")?a(["Edge"]):z()?a(["Chrome","CriOS"]):(b=b[2])&&b[1]||""},Ua=function(a){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])return b[1];var b="",c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==c[1])if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];return b};var Wa=function(){return y("iPhone")&&!y("iPod")&&!y("iPad")};var Xa=y("Opera"),A=Ta(),Ya=y("Edge"),B=y("Gecko")&&!(-1!=x.toLowerCase().indexOf("webkit")&&!y("Edge"))&&!(y("Trident")||y("MSIE"))&&!y("Edge"),Za=-1!=x.toLowerCase().indexOf("webkit")&&!y("Edge"),$a=function(){var a=h.document;return a?a.documentMode:void 0},ab;a:{var bb="",cb=function(){var a=x;if(B)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Ya)return/Edge\/([\d\.]+)/.exec(a);if(A)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Za)return/WebKit\/(\S+)/.exec(a);if(Xa)return/(?:Version)[ \/]?(\S+)/.exec(a)}();cb&&(bb=cb?cb[1]:"");if(A){var db=$a();if(null!=db&&db>parseFloat(bb)){ab=String(db);break a}}ab=bb}var eb=ab,ma={},C=function(a){return na(a,function(){return 0<=ha(eb,a)})},fb;var gb=h.document;fb=gb&&A?$a()||("CSS1Compat"==gb.compatMode?parseInt(eb,10):5):void 0;var D=function(a,b){this.width=a;this.height=b};D.prototype.clone=function(){return new D(this.width,this.height)};D.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};D.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};D.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};D.prototype.scale=function(a,b){this.width*=a;this.height*="number"==typeof b?b:a;return this};!B&&!A||A&&9<=Number(fb)||B&&C("1.9.1");A&&C("9");var E=null,I=function(a,b){Da(a,b,void 0)},hb=function(){if(!w.body)return!1;if(!E){var a=w.createElement("iframe");a.style.display="none";a.id="anonIframe";E=a;w.body.appendChild(a)}return!0};var Ja;Ja=new Fa(new function(){this.P="http:"===t.location.protocol?"http:":"https:";this.K="pagead2.googlesyndication.com";this.O="/pagead/gen_204?id=";this.J=.01;this.R=Math.random()},"jserror",!0);var J=function(a,b){return v(a,b)};A&&C("9");!Za||C("528");B&&C("1.9b")||A&&C("8")||Xa&&C("9.5")||Za&&C("528");B&&!C("8")||A&&C("9");var ib=0,K={},kb=function(a){var b=K.imageLoadingEnabled;if(null!=b)a(b);else{var c=!1;jb(function(b,e){delete K[e];c||(c=!0,null!=K.imageLoadingEnabled||(K.imageLoadingEnabled=b),a(b))})}},jb=function(a){var b=new Image,c,d=""+ib++;K[d]=b;b.onload=function(){clearTimeout(c);a(!0,d)};c=setTimeout(function(){a(!1,d)},300);b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},lb=function(a){if(a){var b=document.createElement("OBJECT");b.data=a;b.width="1";b.height="1";b.style.visibility="hidden";var c=""+ib++;K[c]=b;b.onload=b.onerror=function(){delete K[c]};document.body.appendChild(b)}},mb=function(a){if(a){var b=new Image,c=""+ib++;K[c]=b;b.onload=b.onerror=function(){delete K[c]};b.src=a}},nb=function(a){a&&kb(function(b){b?mb(a):lb(a)})};var ob={H:"ud=1",G:"ts=0",X:"sc=1",C:"gz=1",D:"op=1",Y:"efp=1",W:"rda=1",U:"dcl=1",T:"ocy=1",B:"co=1",V:"mlc=1",F:"opp=1"};if(w&&w.URL){var pa=w.URL,pb=!(pa&&0=b)){var d=0,e=function(){a();d++;dc;){try{if(d.google_osd_static_frame)return d}catch(f){}try{if(d.aswift_0&&(!a||d.aswift_0.google_osd_static_frame))return d.aswift_0}catch(f){}c++;d=b?0<d.location.ancestorOrigins.length&&d.location.origin==d.location.ancestorOrigins[0]?d.parent:null:d!=d.parent?d.parent:null}return null},wb=function(a,b,c,d,e,f,g){g=g||aa;if(10<ub)t.clearInterval(O),g();else if(++ub,t.postMessage&&(b.b||b.a)){if(f=vb(!0,f)){g={};rb(b,g);g[0]="goog_request_monitoring";g[6]=a;g[16]=c;d&&d.length&&(g[17]=d.join(","));e&&(g[19]=e);try{var l=tb(g);f.postMessage(l,"*")}catch(m){}}}else t.clearInterval(O),g()},xb=function(a){var b=vb(!1),c=!b;!b&&t&&(b=t.parent);if(b&&b.postMessage)try{b.postMessage(a,"*"),c&&t.postMessage(a,"*")}catch(d){}};var P=!1,yb=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&&(P=!0,a.description)){yb(a.description);return}if(navigator.plugins["Shockwave Flash 2.0"]){P=!0;return}}if(navigator.mimeTypes&&navigator.mimeTypes.length&&(a=navigator.mimeTypes["application/x-shockwave-flash"],P=!(!a||!a.enabledPlugin))){yb(a.enabledPlugin.description);return}try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");P=!0;yb(b.GetVariable("$version"));return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");P=!0;return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),P=!0,yb(b.GetVariable("$version"))}catch(c){}})();var zb=y("Firefox"),Ab=Wa()||y("iPod"),Bb=y("iPad"),Cb=y("Android")&&!(z()||y("Firefox")||y("Opera")||y("Silk")),Db=z(),Eb=y("Safari")&&!(z()||y("Coast")||y("Opera")||y("Edge")||y("Silk")||y("Android"))&&!(Wa()||y("iPad")||y("iPod"));var Q=function(a){return(a=a.exec(x))?a[1]:""};(function(){if(zb)return Q(/Firefox\/([0-9.]+)/);if(A||Ya||Xa)return eb;if(Db)return Q(/Chrome\/([0-9.]+)/);if(Eb&&!(Wa()||y("iPad")||y("iPod")))return Q(/Version\/([0-9.]+)/);if(Ab||Bb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(x);if(a)return a[1]+"."+a[2]}else if(Cb)return(a=Q(/Android\s+([0-9.]+)/))?a:Q(/Version\/([0-9.]+)/);return""})();var Gb=function(){var a=t.parent&&t.parent!=t,b=a&&0<="//tpc.googlesyndication.com".indexOf(t.location.host);if(a&&t.name&&0==t.name.indexOf("google_ads_iframe")||b){var c;a=t||t;try{var d;if(a.document&&!a.document.body)d=new D(-1,-1);else{var e=(a||window).document,f="CSS1Compat"==e.compatMode?e.documentElement:e.body;d=(new D(f.clientWidth,f.clientHeight)).round()}c=d}catch(g){c=new D(-12245933,-12245933)}return Fb(c)}c=(t.document||document).getElementsByTagName("SCRIPT");return 0<c.length&&(c=c[c.length-1],c.parentElement&&c.parentElement.id&&0<c.parentElement.id.indexOf("_ad_container"))?Fb(void 0,c.parentElement):null},Fb=function(a,b){var c=Hb("IMG",a,b);return c?c:(c=Hb("IFRAME",a,b))?c:(a=Hb("OBJECT",a,b))?a:null},Hb=function(a,b,c){var d=document;c=c||d;d=a&&"*"!=a?String(a).toUpperCase():"";c=c.querySelectorAll&&c.querySelector&&d?c.querySelectorAll(d+""):c.getElementsByTagName(d||"*");for(d=0;d<c.length;d++){var e=c[d];if("OBJECT"==a)a:{var f=e.getAttribute("height");if(null!=f&&0<f&&0==e.clientHeight)for(var f=e.children,g=0;g<f.length;g++){var l=f[g];if("OBJECT"==l.nodeName||"EMBED"==l.nodeName){e=l;break a}}}f=e.clientHeight;g=e.clientWidth;if(l=b)l=new D(g,f),l=Math.abs(b.width-l.width)<.1*b.width&&Math.abs(b.height-l.height)<.1*b.height;if(l||!b&&10<f&&10<g)return e}return null};var R=0,Ib="",Jb=[],S=!1,T=!1,U=!1,Kb=!0,Lb=!1,Mb=!1,Nb=!1,Ob=!1,Pb=!1,Qb=!1,Rb=0,Sb=0,V=0,Tb=[],N=null,Vb="",Wb=[],Xb=null,Yb=[],Zb=!1,$b="",ac="",bc=(new Date).getTime(),cc=!1,dc="",ec=!1,fc=["1","0","3"],X=0,Y=0,gc=0,hc="",ic=!1,jc=!1,lc=function(a,b,c){S&&(Kb||3!=(c||3)||Nb)&&kc(a,b,!0);if(U||T&&Mb)kc(a,b),T=U=!1},mc=function(){var a=Xb;return a?2!=a():!0},kc=function(a,b,c){if((b=b||Vb)&&!Zb&&(2==Y||c)&&mc()){for(var d=0;d<Jb.length;++d){var e=nc(Jb[d],b,c),f=a;Lb?nb(e):I(f,e)}Pb=!0;c?S=!1:Zb=!0}},oc=function(a,b){var c=[];a&&c.push("avi="+a);b&&c.push("cid="+b);return c.length?"//pagead2.googlesyndication.com/activeview?"+c.join("&"):"//pagead2.googlesyndication.com/activeview"},nc=function(a,b,c){c=c?"osdim":U?"osd2":"osdtos";a=[a,-1<a.indexOf("?")?"&id=":"?id=",c];"osd2"==c&&T&&Mb&&a.push("&ts=1");a.push("&ti=1");a.push("&",b);a.push("&uc="+gc);cc?a.push("&tgt="+dc):a.push("&tgt=nf");a.push("&cl="+(ec?1:0));Qb&&(a.push("&lop=1"),b=p()-Rb,a.push("&tslp="+b));b=a.join("");for(a=0;a<Wb.length;a++){try{var d=Wb[a]()}catch(e){}c="max_length";2<=d.length&&(3==d.length&&(c=d[2]),b=da(b,encodeURIComponent(d[0]),encodeURIComponent(d[1]),c))}2E3<b.length&&(b=b.substring(0,2E3));return b},Z=function(a){if($b){try{var b=da($b,"vi",a);hb()&&I(E.contentWindow,b)}catch(c){}0<=La(fc,a)&&($b="")}},pc=function(){Z("-1")},rc=function(a){if(a&&a.data&&k(a.data)){var b;var c=a.data;if(k(c)){b={};for(var c=c.split("\n"),d=0;d=e)){var f=Number(c[d].substr(0,e)),e=c[d].substr(e+1);switch(f){case 5:case 8:case 11:case 15:case 16:case 18:e="true"==e;break;case 4:case 7:case 6:case 14:case 20:case 21:case 22:case 23:case 24:case 25:e=Number(e);break;case 3:case 19:if("function"==ba(decodeURIComponent))try{e=decodeURIComponent(e)}catch(l){throw Error("Error: URI malformed: "+e);}break;case 17:e=Na(decodeURIComponent(e).split(","),Number)}b[f]=e}}b=b[0]?b:null}else b=null;if(b&&(c=new M(b[4],b[12]),N&&N.match(c))){for(c=0;c<Yb.length;c++)Yb[c](b);b&&(c=100*b[25],"number"==typeof c&&!isNaN(c)&&(window.document["4CGeArbVQ"]=c|0));void 0!=b[18]&&(Nb=b[18],Nb||2!=V||(V=3,qc()));jc&&void 0!=b[7]&&0X&&!T&&2==Y&&sc(t,"osd2","hs="+X)},uc=function(){var a={};rb(N,a);a[0]="goog_dom_content_loaded";var b=tb(a);try{qb(function(){xb(b)},10,"osd_listener::ldcl_int")}catch(c){}},vc=function(){var a={};rb(N,a);a[0]="goog_creative_loaded";var b=tb(a);qb(function(){xb(b)},10,"osd_listener::lcel_int");ec=!0},wc=function(a){if(k(a)){a=a.split("&");for(var b=a.length-1;0<=b;b–){var c=a[b],d=ob;c==d.H?(Kb=!1,a.splice(b,1)):c==d.C?(V=1,a.splice(b,1)):c==d.G?(T=!1,a.splice(b,1)):c==d.D?(Lb=!0,a.splice(b,1)):c==d.B?(ic=!0,a.splice(b,1)):c==d.F&&(jc=!0,a.splice(b,1))}hc=a.join("&")}},xc=function(){if(!cc){var a=Gb();a&&(cc=!0,dc=a.tagName,a.complete||a.naturalWidth?vc():L(a,"load",vc,"osd_listener::creative_load"))}};q("osdlfm",J("osd_listener::init",function(a,b,c,d,e,f,g,l,m,n){R=a;$b=b;ac=d;S=f;g&&wc(g);T=f;1==l?Tb.push(947190538):2==l?Tb.push(947190541):3==l&&Tb.push(947190542);N=new M(e,ea());L(t,"load",pc,"osd_listener::load");L(t,"message",rc,"osd_listener::message");Ib=c||"";Jb=[n||oc(c,m)];L(t,"unload",tc,"osd_listener::unload");var r=t.document;!r.readyState||"complete"!=r.readyState&&"loaded"!=r.readyState?!Ta()||0<=ha(Va(),11)?L(r,"DOMContentLoaded",uc,"osd_listener::dcl"):L(r,"readystatechange",function(){"complete"!=r.readyState&&"loaded"!=r.readyState||uc()},"osd_listener::rsc"):uc();-1==R?Y=f?3:1:-2==R?Y=3:0// // <![CDATA[
(function() {(function(){var h=this,k=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},l=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}};var m=function(a,b){for(var c in a)b.call(void 0,a[c],c,a)};var n=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 p={i:"ad_container_id",A:"hideObjects",X:"mtfTop",W:"mtfLeft",ca:"zindex",m:"mtfDuration",aa:"wmode",Z:"preferFlash",s:"as_kw",u:"as_lat",v:"as_lng",B:"mtfIFPath",o:"expansionMode",U:"top_container",T:"mtfTopFloat",S:"mtfTopDuration",V:"mtfTopWmode",P:"right_container",O:"mtfRightFloat",N:"mtfRightDuration",R:"mtfRightWmode",H:"bottom_container",G:"mtfBottomFloat",F:"mtfBottomDuration",I:"mtfBottomWmode",L:"left_container",K:"mtfLeftFloat",J:"mtfLeftDuration",M:"mtfLeftWmode",$:"mtfRenderFloatInplace",ba:"tryToWriteHtmlInline",j:"debugjs",C:"dcapp",g:"breakoutiframe",D:"inMobileAdSdk"},r=function(a){m(a,function(b,c){if(c.toLowerCase()in q){var e=q[c.toLowerCase()];c in a&&delete a[c];a[e]=b}})},q=function(){var a={};m(p,function(b){a[b.toLowerCase()]=b});return a}();var u=function(a){this.a=a;var b;a:{for(b in a.displayConfigParameters){b:if(a=t,"string"==typeof a)a="string"==typeof b&&1==b.length?a.indexOf(b,0):-1;else{for(var c=0;c<a.length;c++)if(c in a&&a[c]===b){a=c;break b}a=-1}if(!(0<=a)){b=!0;break a}}b=!1}this.f=b},t=["ad_container_id"],v=function(a){return a.f?a.a.displayConfigParameters:a.a.creativeParameters},w=function(a,b){for(var c=0;c<a.a.primaryFiles.length;++c)if(a.a.primaryFiles[c].type==b)return!0;return!1};var x={pattern:/rendering_lib_((?:[0-9_]+)|(?:latest))\.js$/,c:"rendering_lib_db_$1.js"},y={pattern:/\/[a-z_0-9]+_rendering_lib/,c:"/iframe_buster"},z={pattern:/(.*\/)(.*_)rendering_lib_((?:[0-9_]+)|(?:latest))\.js$/,c:"$1inapp_html_inpage_rendering_lib_$3.js"},A={pattern:/\/[0-9]+\/[a-z_0-9]+rendering_lib.+$/,c:"/ads/studio/cached_libs/modernizr_2.8.3_ec185bb44fe5e6bf7455d6e8ef37ed0e_no-classes.js"},E=function(a){var b=v(a),c=a.a.renderingLibraryData,e=c.renderingLibrary,d=c.version;if(d=!/express|image_gallery|dfa7banner|inapp/.test(e)&&("latest"==d||0<=B(d,"200_74"))){if(d=!w(a,"FLASH")){a:{for(d=0;d<a.a.primaryFiles.length;++d){var f=a.a.primaryFiles[d].expandingDisplayProperties;if(f&&"lightbox"==n(f.expansionMode)){d=!0;break a}}d=!1}d=!d}d=d&&null!=window.mraid}d&&(e=e.replace(z.pattern,z.c));"true"==b.debugjs&&(e=e.replace(x.pattern,x.c));(b=h.self==h.top)||(b=window.Y&&window.Y.SandBox&&window.Y.SandBox.vendor,d=window.$sf&&window.$sf.ext,f=window.$WLXRmAd,b=!!(window.IN_ADSENSE_IFRAME||b||d||f));if(!b){a:if(b=v(a).breakoutiframe)b=!!b&&"true"==b.toLowerCase();else{b=a.a.primaryFiles;for(d=0;d<b.length;d++){var f=b[d].renderAs,g=0==(parseInt(b[d].width,10)||0)&&0==(parseInt(b[d].height,10)||0);if("EXPANDABLE"==f||"FLOATING"==f&&!g){b=!0;break a}}b=!1}b=!b}if(b||a.a.previewMode){a:{a=e;b=C();for(d=0;d<b.renderingLibraries.length;d++)if(f=b.renderingLibraries[d],f.url==a&&f.bootstrapFunction){a=f;break a}a=null}a?a.bootstrapFunction():(a=C(),D(e,!1,void 0,void 0,void 0,!0),a.renderingLibraries.push({version:c.version,url:e,loading:!0,bootstrapFunction:null}))}else c=e.replace(y.pattern,y.c),D(c,!0)},B=function(a,b){a=F(a);b=F(b);for(var c=Math.min(a.length,b.length),e=0;e<c;e++)if(a[e]!=b[e])return a[e]-b[e];return a.length-b.length},F=function(a){a=a.split("_");for(var b=[],c=0;c<a.length;c++)b.push(parseInt(a[c],10));return b},D=function(a,b,c,e,d,f){var g=document.createElement("script");g.src=a;g.type=c?c:"text/javascript";g.async=!!b;f&&(g.crossOrigin="anonymous");e&&(g.onload=e);d&&(g.onerror=d);a=document.getElementsByTagName("head");(a&&0!=a.length?a[0]:document.documentElement).appendChild(g)},C=function(){return window.dclkStudioV3=window.dclkStudioV3||{creatives:[],renderingLibraries:[],creativeCount:1}},G=function(a){try{if(null!=(a["cps-top-iframe-beacon"]?a["cps-top-iframe-beacon"]:null))return!0}catch(b){}return a==a.parent?!1:G(a.parent)},H=function(a){if(null!=a){r(a.creativeParameters);if(null!=a.html5Features)for(var b=0;b<a.html5Features.length;++b)"CSS_ANIMATIONS"==a.html5Features[b]&&(a.html5Features[b]="Modernizr.cssanimations");!a.previewMode&&G(h)&&(a.previewMode=!0);a=new u(a);b=C();b.creatives.push(a.a);var c=a.a.creativeParameters;c.creative_unique_id=c.cid+"_"+b.creativeCount++;b=v(a).ad_container_id;a:if((c=v(a).mtfRenderFloatInplace)&&"true"==c.toLowerCase())c=!0;else{for(var c=a.a.primaryFiles,e=0;e<c.length;e++){var d=c[e].renderAs;if("EXPANDABLE"==d||"BANNER"==d){c=!0;break a}}c=!1}!c||b&&""!=b||(b="dclk-studio-creative_"+(new Date).getTime(),document.write(['

‘].join("")),c=a.a,c.creativeParameters.ad_container_id=b,c.creativeParameters.generate_ad_slot="true",null==c.displayConfigParameters&&(c.displayConfigParameters={}),c.displayConfigParameters.ad_container_id=b);c=a.a;b=c.renderingLibraryData;e=b.version;if(w(a,"HTML5")&&!("latest"==e||0<=B(e,"200_108"))&&(c=c.html5Features,!("Modernizr"in h)&&"array"==k(c)&&0<c.length)){e=!1;for(d=0;d// g?c=a+f+c:(g+=f.length,f=a.indexOf("&",g),c=0<=f?a.substring(0,g)+c+a.substring(f):a.substring(0,g)+c)}return 2E3<c.length?void 0!==d?da(a,b,d,void 0,e):a:c};var ea=function(){var a=/[&\?#]exk=([^& ]+)/.exec(t.location.href);return a&&2==a.length?a[1]:null};var fa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},ha=function(a,b){var c=0;a=fa(String(a)).split(".");b=fa(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=ga(0==f[1].length?0:parseInt(f[1],10),0==g[1].length?0:parseInt(g[1],10))||ga(0==f[2].length,0==g[2].length)||ga(f[2],g[2]);f=f[3];g=g[3]}while(0==c)}return c},ga=function(a,b){return ab?1:0};var ia=function(a,b,c){if("array"==ba(b))for(var d=0;d<b.length;d++)ia(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))},ja=function(a,b,c){for(c=c||0;c<b.length;c+=2)ia(b[c],b[c+1],a);return a},ka=function(a,b){var c=2==arguments.length?ja([a],arguments[1],0):ja([a],arguments,1);if(c[1]){var d=c[0],e=d.indexOf("#");0e?c[1]="?":e==d.length-1&&(c[1]=void 0)}return c.join("")};var la=function(a){la[" "](a);return a};la[" "]=aa;var na=function(a,b){var c=ma;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var oa=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)},qa=function(){var a=pa;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1e)return"";a.c.sort(function(a,b){return a-b});d=null;c="";for(var f=0;f<a.c.length;f++)for(var g=a.c[f],l=a.f[g],m=0;m=n.length){e-=n.length;b+=n;c=a.g;break}else a.l&&(c=e,n[c-1]==a.g&&–c,b+=n.substr(0,c),c=a.g,e=0);d=null==d?g:d}}f="";a.h&&null!=d&&(f=c+a.h+"="+(a.S||d));return b+f+""},za=function(a){if(!a.h)return a.o;var b=1,c;for(c in a.f)b=c.length>b?c.length:b;return a.o-a.h.length-b-a.g.length-1},Aa=function(a,b,c,d,e){var f=[];oa(a,function(a,l){(a=Ca(a,b,c,d,e))&&f.push(l+"="+a)});return f.join(b)},Ca=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;ge?encodeURIComponent(Aa(a,b,c,d,e+1)):"…";return encodeURIComponent(String(a))};var Ea=function(a,b,c,d,e){if((d?a.R:Math.random())<(e||a.J))try{var f;c instanceof xa?f=c:(f=new xa,oa(c,function(a,b){var c=f,d=c.N++;a=ya(b,a);c.c.push(d);c.f[d]=a}));var g=Ba(f,a.P,a.K,a.O+b+"&");g&&Da(h,g)}catch(l){}},Da=function(a,b,c){a.google_image_requests||(a.google_image_requests=[]);var d=a.document.createElement("img");if(c){var e=function(a){c(a);a=e;d.removeEventListener?d.removeEventListener("load",a,!1):d.detachEvent&&d.detachEvent("onload",a);a=e;d.removeEventListener?d.removeEventListener("error",a,!1):d.detachEvent&&d.detachEvent("onerror",a)};wa(d,"load",e);wa(d,"error",e)}d.src=b;a.google_image_requests.push(d)};var Fa=function(a,b,c){this.u=a;this.M=b;this.i=c;this.j=null;this.L=this.s;this.A=!1},Ga=function(a,b,c){this.message=a;this.fileName=b||"";this.lineNumber=c||-1},Ia=function(a,b,c){var d;try{d=c()}catch(g){var e=a.i;try{var f=Ha(g),e=a.L.call(a,b,f,void 0,void 0)}catch(l){a.s("pAR",l)}if(!e)throw g;}finally{}return d},v=function(a,b){var c=Ja;return function(){for(var d=[],e=0;e<arguments.length;++e)d[e]=arguments[e];return Ia(c,a,function(){return b.apply(void 0,d)})}};Fa.prototype.s=function(a,b,c,d,e){try{var f=e||this.M,g=new xa;g.l=!0;u(g,1,"context",a);b instanceof Ga||(b=Ha(b));u(g,2,"msg",b.message.substring(0,512));b.fileName&&u(g,3,"file",b.fileName);0<b.lineNumber&&u(g,4,"line",b.lineNumber.toString());b={};if(this.j)try{this.j(b)}catch(F){}if(d)try{d(b)}catch(F){}d=[b];g.c.push(5);g.f[5]=d;var l;e=h;d=[];var m,n=null;do{b=e;var r;try{var W;if(W=!!b&&null!=b.location.href)b:{try{la(b.foo);W=!0;break b}catch(F){}W=!1}r=W}catch(F){r=!1}r?(m=b.location.href,n=b.document&&b.document.referrer||null):(m=n,n=null);d.push(new va(m||""));try{e=b.parent}catch(F){e=null}}while(e&&b!=e);m=0;for(var G=d.length-1;m<=G;++m)d[m].depth=G-m;b=h;if(b.location&&b.location.ancestorOrigins&&b.location.ancestorOrigins.length==d.length-1)for(m=1;m<d.length;++m){var ra=d[m];ra.url||(ra.url=b.location.ancestorOrigins[m-1]||"",ra.m=!0)}for(var sa=new va(h.location.href,!1),ta=d.length-1,G=ta;0c?Math.max(0,a.length+c):c;if(k(a))return k(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ma=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=k(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Na=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=k(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};var Oa=function(a,b){for(var c in a)b.call(void 0,a[c],c,a)},Pa=function(a,b){return null!==a&&b in a};var x;a:{var Qa=h.navigator;if(Qa){var Ra=Qa.userAgent;if(Ra){x=Ra;break a}}x=""}var y=function(a){return-1!=x.indexOf(a)},Sa=function(a){for(var b=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,c=[],d;d=b.exec(a);)c.push([d[1],d[2],d[3]||void 0]);return c};var Ta=function(){return y("Trident")||y("MSIE")},z=function(){return(y("Chrome")||y("CriOS"))&&!y("Edge")},Va=function(){function a(a){var b;a:{b=d;for(var e=a.length,l=k(a)?a.split(""):a,m=0;mb?null:k(a)?a.charAt(b):a[b]]||""}var b=x;if(Ta())return Ua(b);var b=Sa(b),c={};Ma(b,function(a){c[a[0]]=a[1]});var d=ca(Pa,c);return y("Opera")?a(["Version","Opera"]):y("Edge")?a(["Edge"]):z()?a(["Chrome","CriOS"]):(b=b[2])&&b[1]||""},Ua=function(a){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])return b[1];var b="",c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==c[1])if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];return b};var Wa=function(){return y("iPhone")&&!y("iPod")&&!y("iPad")};var Xa=y("Opera"),A=Ta(),Ya=y("Edge"),B=y("Gecko")&&!(-1!=x.toLowerCase().indexOf("webkit")&&!y("Edge"))&&!(y("Trident")||y("MSIE"))&&!y("Edge"),Za=-1!=x.toLowerCase().indexOf("webkit")&&!y("Edge"),$a=function(){var a=h.document;return a?a.documentMode:void 0},ab;a:{var bb="",cb=function(){var a=x;if(B)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Ya)return/Edge\/([\d\.]+)/.exec(a);if(A)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Za)return/WebKit\/(\S+)/.exec(a);if(Xa)return/(?:Version)[ \/]?(\S+)/.exec(a)}();cb&&(bb=cb?cb[1]:"");if(A){var db=$a();if(null!=db&&db>parseFloat(bb)){ab=String(db);break a}}ab=bb}var eb=ab,ma={},C=function(a){return na(a,function(){return 0<=ha(eb,a)})},fb;var gb=h.document;fb=gb&&A?$a()||("CSS1Compat"==gb.compatMode?parseInt(eb,10):5):void 0;var D=function(a,b){this.width=a;this.height=b};D.prototype.clone=function(){return new D(this.width,this.height)};D.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};D.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};D.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};D.prototype.scale=function(a,b){this.width*=a;this.height*="number"==typeof b?b:a;return this};!B&&!A||A&&9<=Number(fb)||B&&C("1.9.1");A&&C("9");var E=null,I=function(a,b){Da(a,b,void 0)},hb=function(){if(!w.body)return!1;if(!E){var a=w.createElement("iframe");a.style.display="none";a.id="anonIframe";E=a;w.body.appendChild(a)}return!0};var Ja;Ja=new Fa(new function(){this.P="http:"===t.location.protocol?"http:":"https:";this.K="pagead2.googlesyndication.com";this.O="/pagead/gen_204?id=";this.J=.01;this.R=Math.random()},"jserror",!0);var J=function(a,b){return v(a,b)};A&&C("9");!Za||C("528");B&&C("1.9b")||A&&C("8")||Xa&&C("9.5")||Za&&C("528");B&&!C("8")||A&&C("9");var ib=0,K={},kb=function(a){var b=K.imageLoadingEnabled;if(null!=b)a(b);else{var c=!1;jb(function(b,e){delete K[e];c||(c=!0,null!=K.imageLoadingEnabled||(K.imageLoadingEnabled=b),a(b))})}},jb=function(a){var b=new Image,c,d=""+ib++;K[d]=b;b.onload=function(){clearTimeout(c);a(!0,d)};c=setTimeout(function(){a(!1,d)},300);b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},lb=function(a){if(a){var b=document.createElement("OBJECT");b.data=a;b.width="1";b.height="1";b.style.visibility="hidden";var c=""+ib++;K[c]=b;b.onload=b.onerror=function(){delete K[c]};document.body.appendChild(b)}},mb=function(a){if(a){var b=new Image,c=""+ib++;K[c]=b;b.onload=b.onerror=function(){delete K[c]};b.src=a}},nb=function(a){a&&kb(function(b){b?mb(a):lb(a)})};var ob={H:"ud=1",G:"ts=0",X:"sc=1",C:"gz=1",D:"op=1",Y:"efp=1",W:"rda=1",U:"dcl=1",T:"ocy=1",B:"co=1",V:"mlc=1",F:"opp=1"};if(w&&w.URL){var pa=w.URL,pb=!(pa&&0=b)){var d=0,e=function(){a();d++;dc;){try{if(d.google_osd_static_frame)return d}catch(f){}try{if(d.aswift_0&&(!a||d.aswift_0.google_osd_static_frame))return d.aswift_0}catch(f){}c++;d=b?0<d.location.ancestorOrigins.length&&d.location.origin==d.location.ancestorOrigins[0]?d.parent:null:d!=d.parent?d.parent:null}return null},wb=function(a,b,c,d,e,f,g){g=g||aa;if(10<ub)t.clearInterval(O),g();else if(++ub,t.postMessage&&(b.b||b.a)){if(f=vb(!0,f)){g={};rb(b,g);g[0]="goog_request_monitoring";g[6]=a;g[16]=c;d&&d.length&&(g[17]=d.join(","));e&&(g[19]=e);try{var l=tb(g);f.postMessage(l,"*")}catch(m){}}}else t.clearInterval(O),g()},xb=function(a){var b=vb(!1),c=!b;!b&&t&&(b=t.parent);if(b&&b.postMessage)try{b.postMessage(a,"*"),c&&t.postMessage(a,"*")}catch(d){}};var P=!1,yb=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&&(P=!0,a.description)){yb(a.description);return}if(navigator.plugins["Shockwave Flash 2.0"]){P=!0;return}}if(navigator.mimeTypes&&navigator.mimeTypes.length&&(a=navigator.mimeTypes["application/x-shockwave-flash"],P=!(!a||!a.enabledPlugin))){yb(a.enabledPlugin.description);return}try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");P=!0;yb(b.GetVariable("$version"));return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");P=!0;return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),P=!0,yb(b.GetVariable("$version"))}catch(c){}})();var zb=y("Firefox"),Ab=Wa()||y("iPod"),Bb=y("iPad"),Cb=y("Android")&&!(z()||y("Firefox")||y("Opera")||y("Silk")),Db=z(),Eb=y("Safari")&&!(z()||y("Coast")||y("Opera")||y("Edge")||y("Silk")||y("Android"))&&!(Wa()||y("iPad")||y("iPod"));var Q=function(a){return(a=a.exec(x))?a[1]:""};(function(){if(zb)return Q(/Firefox\/([0-9.]+)/);if(A||Ya||Xa)return eb;if(Db)return Q(/Chrome\/([0-9.]+)/);if(Eb&&!(Wa()||y("iPad")||y("iPod")))return Q(/Version\/([0-9.]+)/);if(Ab||Bb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(x);if(a)return a[1]+"."+a[2]}else if(Cb)return(a=Q(/Android\s+([0-9.]+)/))?a:Q(/Version\/([0-9.]+)/);return""})();var Gb=function(){var a=t.parent&&t.parent!=t,b=a&&0<="//tpc.googlesyndication.com".indexOf(t.location.host);if(a&&t.name&&0==t.name.indexOf("google_ads_iframe")||b){var c;a=t||t;try{var d;if(a.document&&!a.document.body)d=new D(-1,-1);else{var e=(a||window).document,f="CSS1Compat"==e.compatMode?e.documentElement:e.body;d=(new D(f.clientWidth,f.clientHeight)).round()}c=d}catch(g){c=new D(-12245933,-12245933)}return Fb(c)}c=(t.document||document).getElementsByTagName("SCRIPT");return 0<c.length&&(c=c[c.length-1],c.parentElement&&c.parentElement.id&&0<c.parentElement.id.indexOf("_ad_container"))?Fb(void 0,c.parentElement):null},Fb=function(a,b){var c=Hb("IMG",a,b);return c?c:(c=Hb("IFRAME",a,b))?c:(a=Hb("OBJECT",a,b))?a:null},Hb=function(a,b,c){var d=document;c=c||d;d=a&&"*"!=a?String(a).toUpperCase():"";c=c.querySelectorAll&&c.querySelector&&d?c.querySelectorAll(d+""):c.getElementsByTagName(d||"*");for(d=0;d<c.length;d++){var e=c[d];if("OBJECT"==a)a:{var f=e.getAttribute("height");if(null!=f&&0<f&&0==e.clientHeight)for(var f=e.children,g=0;g<f.length;g++){var l=f[g];if("OBJECT"==l.nodeName||"EMBED"==l.nodeName){e=l;break a}}}f=e.clientHeight;g=e.clientWidth;if(l=b)l=new D(g,f),l=Math.abs(b.width-l.width)<.1*b.width&&Math.abs(b.height-l.height)<.1*b.height;if(l||!b&&10<f&&10<g)return e}return null};var R=0,Ib="",Jb=[],S=!1,T=!1,U=!1,Kb=!0,Lb=!1,Mb=!1,Nb=!1,Ob=!1,Pb=!1,Qb=!1,Rb=0,Sb=0,V=0,Tb=[],N=null,Vb="",Wb=[],Xb=null,Yb=[],Zb=!1,$b="",ac="",bc=(new Date).getTime(),cc=!1,dc="",ec=!1,fc=["1","0","3"],X=0,Y=0,gc=0,hc="",ic=!1,jc=!1,lc=function(a,b,c){S&&(Kb||3!=(c||3)||Nb)&&kc(a,b,!0);if(U||T&&Mb)kc(a,b),T=U=!1},mc=function(){var a=Xb;return a?2!=a():!0},kc=function(a,b,c){if((b=b||Vb)&&!Zb&&(2==Y||c)&&mc()){for(var d=0;d<Jb.length;++d){var e=nc(Jb[d],b,c),f=a;Lb?nb(e):I(f,e)}Pb=!0;c?S=!1:Zb=!0}},oc=function(a,b){var c=[];a&&c.push("avi="+a);b&&c.push("cid="+b);return c.length?"//pagead2.googlesyndication.com/activeview?"+c.join("&"):"//pagead2.googlesyndication.com/activeview"},nc=function(a,b,c){c=c?"osdim":U?"osd2":"osdtos";a=[a,-1<a.indexOf("?")?"&id=":"?id=",c];"osd2"==c&&T&&Mb&&a.push("&ts=1");a.push("&ti=1");a.push("&",b);a.push("&uc="+gc);cc?a.push("&tgt="+dc):a.push("&tgt=nf");a.push("&cl="+(ec?1:0));Qb&&(a.push("&lop=1"),b=p()-Rb,a.push("&tslp="+b));b=a.join("");for(a=0;a<Wb.length;a++){try{var d=Wb[a]()}catch(e){}c="max_length";2<=d.length&&(3==d.length&&(c=d[2]),b=da(b,encodeURIComponent(d[0]),encodeURIComponent(d[1]),c))}2E3<b.length&&(b=b.substring(0,2E3));return b},Z=function(a){if($b){try{var b=da($b,"vi",a);hb()&&I(E.contentWindow,b)}catch(c){}0<=La(fc,a)&&($b="")}},pc=function(){Z("-1")},rc=function(a){if(a&&a.data&&k(a.data)){var b;var c=a.data;if(k(c)){b={};for(var c=c.split("\n"),d=0;d=e)){var f=Number(c[d].substr(0,e)),e=c[d].substr(e+1);switch(f){case 5:case 8:case 11:case 15:case 16:case 18:e="true"==e;break;case 4:case 7:case 6:case 14:case 20:case 21:case 22:case 23:case 24:case 25:e=Number(e);break;case 3:case 19:if("function"==ba(decodeURIComponent))try{e=decodeURIComponent(e)}catch(l){throw Error("Error: URI malformed: "+e);}break;case 17:e=Na(decodeURIComponent(e).split(","),Number)}b[f]=e}}b=b[0]?b:null}else b=null;if(b&&(c=new M(b[4],b[12]),N&&N.match(c))){for(c=0;c<Yb.length;c++)Yb[c](b);b&&(c=100*b[25],"number"==typeof c&&!isNaN(c)&&(window.document["4CGeArbVQ"]=c|0));void 0!=b[18]&&(Nb=b[18],Nb||2!=V||(V=3,qc()));jc&&void 0!=b[7]&&0X&&!T&&2==Y&&sc(t,"osd2","hs="+X)},uc=function(){var a={};rb(N,a);a[0]="goog_dom_content_loaded";var b=tb(a);try{qb(function(){xb(b)},10,"osd_listener::ldcl_int")}catch(c){}},vc=function(){var a={};rb(N,a);a[0]="goog_creative_loaded";var b=tb(a);qb(function(){xb(b)},10,"osd_listener::lcel_int");ec=!0},wc=function(a){if(k(a)){a=a.split("&");for(var b=a.length-1;0<=b;b–){var c=a[b],d=ob;c==d.H?(Kb=!1,a.splice(b,1)):c==d.C?(V=1,a.splice(b,1)):c==d.G?(T=!1,a.splice(b,1)):c==d.D?(Lb=!0,a.splice(b,1)):c==d.B?(ic=!0,a.splice(b,1)):c==d.F&&(jc=!0,a.splice(b,1))}hc=a.join("&")}},xc=function(){if(!cc){var a=Gb();a&&(cc=!0,dc=a.tagName,a.complete||a.naturalWidth?vc():L(a,"load",vc,"osd_listener::creative_load"))}};q("osdlfm",J("osd_listener::init",function(a,b,c,d,e,f,g,l,m,n){R=a;$b=b;ac=d;S=f;g&&wc(g);T=f;1==l?Tb.push(947190538):2==l?Tb.push(947190541):3==l&&Tb.push(947190542);N=new M(e,ea());L(t,"load",pc,"osd_listener::load");L(t,"message",rc,"osd_listener::message");Ib=c||"";Jb=[n||oc(c,m)];L(t,"unload",tc,"osd_listener::unload");var r=t.document;!r.readyState||"complete"!=r.readyState&&"loaded"!=r.readyState?!Ta()||0<=ha(Va(),11)?L(r,"DOMContentLoaded",uc,"osd_listener::dcl"):L(r,"readystatechange",function(){"complete"!=r.readyState&&"loaded"!=r.readyState||uc()},"osd_listener::rsc"):uc();-1==R?Y=f?3:1:-2==R?Y=3:0//