(function(){for(var l,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ca=["Object", "assign"],ea=0;ea>>0),sa=0;function ta(a,b,c){return a.call.apply(a.bind,arguments)} function ua(a,b,c){if(!a)throw Error();if(2c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(x()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+f}; l.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(Oa),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b}; l.remove=function(a,b,c){var d=p(this.get(a));this.set(a,"",0,b,c);return d}; l.isEmpty=function(){return!this.b.cookie}; l.ba=function(){return this.b.cookie?(this.b.cookie||"").split(Oa).length:0}; l.clear=function(){for(var a=(this.b.cookie||"").split(Oa),b=[],c=[],d,e,f=0;e=a[f];f++)d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));for(a=b.length-1;0<=a;a--)this.remove(b[a])}; var Pa=new Na("undefined"==typeof document?null:document);Pa.f=3950;function Qa(a,b){for(var c in a)b.call(void 0,a[c],c,a)} function Ra(a){var b=Sa,c;for(c in b)if(a.call(void 0,b[c],c,b))return c} function Ta(){var a=Ua,b;for(b in a)return!1;return!0} function Va(a,b){if(null!==a&&b in a)throw Error('The object already contains the key "'+b+'"');a[b]=!0} function Wa(a){var b={},c;for(c in a)b[c]=a[c];return b} var Xa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Ya(a,b){for(var c,d,e=1;eb?1:0} function eb(a){for(var b=0,c=0;c>>0;return b} ;var fb=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",fb,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var gb=window.yt&&window.yt.msgs_||r("window.ytcfg.msgs")||{};q("yt.msgs_",gb,void 0);function z(a){hb(fb,arguments)} function A(a,b){return a in fb?fb[a]:b} function B(a,b){oa(a)&&(a=ib(a));return window.setTimeout(a,b)} function jb(a){window.clearTimeout(a)} function ib(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){kb(b)}}:a} function kb(a,b){var c=r("yt.logging.errors.log");c?c(a,b,void 0,void 0,void 0):(c=A("ERRORS",[]),c.push([a,b,void 0,void 0,void 0]),z("ERRORS",c))} function hb(a,b){if(1c?Math.max(0,a.length+c):c; if(v(a))return v(b)&&1==b.length?a.indexOf(b,c):-1;for(;cc?null:v(a)?a.charAt(c):a[c]} function Eb(a,b){return 0<=zb(a,b)} function Fb(a,b){var c=zb(a,b);0<=c&&Array.prototype.splice.call(a,c,1)} function Gb(a){return Array.prototype.concat.apply(Array.prototype,arguments)} function Hb(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)} ;function Lb(){this.f=this.b=null} var Nb=new xa(function(){return new Mb},function(a){a.reset()},100); Lb.prototype.remove=function(){var a=null;this.b&&(a=this.b,this.b=this.b.next,this.b||(this.f=null),a.next=null);return a}; function Mb(){this.next=this.scope=this.b=null} Mb.prototype.set=function(a,b){this.b=a;this.scope=b;this.next=null}; Mb.prototype.reset=function(){this.next=this.scope=this.b=null};function Ob(){return F("iPhone")&&!F("iPod")&&!F("iPad")} ;var Pb=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function H(a){return a.match(Pb)} function Qb(a){return a?decodeURI(a):a} function Rb(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")} function Sb(a,b,c){if(ma(b))for(var d=0;d");lc("");lc("
");var mc="StopIteration"in n?n.StopIteration:{message:"StopIteration",stack:""};function nc(){} nc.prototype.next=function(){throw mc;}; nc.prototype.aa=function(){return this}; function oc(a){if(a instanceof nc)return a;if("function"==typeof a.aa)return a.aa(!1);if(na(a)){var b=0,c=new nc;c.next=function(){for(;;){if(b>=a.length)throw mc;if(b in a)return a[b++];b++}}; return c}throw Error("Not implemented");} function pc(a,b){if(na(a))try{G(a,b,void 0)}catch(c){if(c!==mc)throw c;}else{a=oc(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==mc)throw c;}}} function qc(a){if(na(a))return Hb(a);a=oc(a);var b=[];pc(a,function(a){b.push(a)}); return b} ;function I(a,b){this.l=p(a)?a:0;this.o=p(b)?b:0} I.prototype.equals=function(a){return a instanceof I&&(this==a?!0:this&&a?this.l==a.l&&this.o==a.o:!1)}; I.prototype.ceil=function(){this.l=Math.ceil(this.l);this.o=Math.ceil(this.o);return this}; I.prototype.floor=function(){this.l=Math.floor(this.l);this.o=Math.floor(this.o);return this}; I.prototype.round=function(){this.l=Math.round(this.l);this.o=Math.round(this.o);return this};var rc=F("Opera"),J=F("Trident")||F("MSIE"),sc=F("Edge"),tc=F("Gecko")&&!(-1!=E.toLowerCase().indexOf("webkit")&&!F("Edge"))&&!(F("Trident")||F("MSIE"))&&!F("Edge"),uc=-1!=E.toLowerCase().indexOf("webkit")&&!F("Edge"),wc=F("Macintosh"),xc=F("Windows"),yc=F("Android"),zc=Ob(),Ac=F("iPad"),Bc=F("iPod");function Cc(){var a=n.document;return a?a.documentMode:void 0} var Dc;a:{var Ec="",Fc=function(){var a=E;if(tc)return/rv\:([^\);]+)(\)|;)/.exec(a);if(sc)return/Edge\/([\d\.]+)/.exec(a);if(J)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(uc)return/WebKit\/(\S+)/.exec(a);if(rc)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); Fc&&(Ec=Fc?Fc[1]:"");if(J){var Gc=Cc();if(null!=Gc&&Gc>parseFloat(Ec)){Dc=String(Gc);break a}}Dc=Ec}var Hc=Dc,ab={}; function K(a){return $a(a,function(){for(var b=0,c=cb(String(Hc)).split("."),d=cb(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&fa.status)e= ge(c,a,b.gc);if(d)a:if(204==a.status)d=!0;else{switch(c){case "XML":d=0==parseInt(e&&e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},f=b.context||n;d?b.F&&b.F.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.wa&&b.wa.call(f,a,e)}},b.method,g,b.headers,b.responseType,b.withCredentials); b.O&&0f&&(c=a.substring(f,e),c=c.replace(le,""),c=c.replace(me,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else ne(a,b)} function ne(a,b){var c=oe(a),d=document.getElementById(c),e=d&&C(d,"loaded"),f=d&&!e;if(e)b&&b();else{if(b){var e=Vd(c,b),g=""+qa(b);pe[g]=e}f||(d=qe(a,c,function(){C(d,"loaded")||(nb(d,"loaded","true"),Yd(c),B(va($d,c),0))}))}} function qe(a,b,c){var d=document.createElement("script");d.id=b;d.onload=function(){c&&setTimeout(c,0)}; d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}}; d.src=a;a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(d,a.firstChild);return d} function re(a,b){if(a&&b){var c=""+qa(b);(c=pe[c])&&Xd(c)}} function oe(a){var b=document.createElement("a");Rc(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+eb(a)} var le=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,me=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,pe={};function se(a){if(window.spf){var b=a.match(te);spf.style.load(a,b?b[1]:"",void 0)}else ue(a)} function ue(a){var b=ve(a),c=document.getElementById(b),d=c&&C(c,"loaded");d||c&&!d||(c=we(a,b,function(){C(c,"loaded")||(nb(c,"loaded","true"),Yd(b),B(va($d,b),0))}))} function we(a,b,c){var d=document.createElement("link");d.id=b;d.onload=function(){c&&setTimeout(c,0)}; a=Tc(a);Sc(d,a);(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d} function ve(a){var b=document.createElement("a");Rc(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+eb(a)} var te=/cssbin\/(?:debug-)?([a-zA-Z0-9_-]+?)(?:-2x|-web|-rtl|-vfl|.css)/;function xe(){var a=Wa(ye);return new L(function(b,c){a.F=function(a){tb(a)?b(a):c(new ze("Request failed, status="+a.status,"net.badstatus"))}; a.onError=function(){c(new ze("Unknown request error","net.unknown"))}; a.O=function(){c(new ze("Request timed out","net.timeout"))}; ee("//googleads.g.doubleclick.net/pagead/id",a)})} function ze(a,b){za.call(this,a+", errorCode="+b);this.errorCode=b} y(ze,za);ze.prototype.name="PromiseAjaxError";var Ae=null;function Be(){var a=A("BG_I",null),b=A("BG_IU",null),c=A("BG_P",void 0);b?ke(b,function(){Ae=new botguard.bg(c)}):a&&(eval(a),Ae=new botguard.bg(c))} function Ce(){return null!=Ae} function De(){return Ae?Ae.invoke():null} ;function Ee(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"file"!==a&&"android-app"!==a)throw Error("Invalid URI scheme in origin");var c="",d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1),b=b.substring(0,d); if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c} ;function Fe(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;u=m=0} function b(a){for(var b=g,c=0;64>c;c+=4)b[c/4]=a[c]<<24|a[c+1]<<16|a[c+2]<<8|a[c+3];for(c=16;80>c;c++)a=b[c-3]^b[c-8]^b[c-14]^b[c-16],b[c]=(a<<1|a>>>31)&4294967295;a=e[0];for(var d=e[1],f=e[2],h=e[3],k=e[4],m,u,c=0;80>c;c++)40>c?20>c?(m=h^d&(f^h),u=1518500249):(m=d^f^h,u=1859775393):60>c?(m=d&f|h&(d|f),u=2400959708):(m=d^f^h,u=3395469782),m=((a<<5|a>>>27)&4294967295)+m+k+u+b[c]&4294967295,k=h,h=f,f=(d<<30|d>>>2)&4294967295,d=a,a=m;e[0]=e[0]+a&4294967295;e[1]=e[1]+d&4294967295;e[2]=e[2]+f&4294967295; e[3]=e[3]+h&4294967295;e[4]=e[4]+k&4294967295} function c(a,c){if("string"===typeof a){a=unescape(encodeURIComponent(a));for(var d=[],e=0,g=a.length;em?c(k,56-m):c(k,64-(m-56));for(var g=63;56<=g;g--)f[g]=d&255,d>>>=8;b(f);for(g=d=0;5>g;g++)for(var h=24;0<=h;h-=8)a[d++]=e[g]>>h&255;return a} for(var e=[],f=[],g=[],k=[128],h=1;64>h;++h)k[h]=0;var m,u;a();return{reset:a,update:c,digest:d,lb:function(){for(var a=d(),b="",c=0;cx()}if(d)pf.prototype.remove.call(this,a);else return c}};var qf=O(),rf=[];function sf(a){throw Error("Bad hint"+(a?": "+a:""));} rf.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?P[b]=N(P,b,[]).concat(c):N(P,b,c)}if(b=a.u)a=N(P,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]); var tf=/^(\/[a-zA-Z0-9_\-]+)+$/,uf=/^[a-zA-Z0-9\-_\.,!]+$/,vf=/^gapi\.loaded_[0-9]+$/,wf=/^[a-zA-Z0-9,._-]+$/;function xf(a,b,c,d){var e=a.split(";"),f=e.shift(),g=qf[f],k=null;g?k=g(e,b,c,d):sf("no hint processor for: "+f);k||sf("failed to generate load url");b=k;c=b.match(yf);(d=b.match(zf))&&1===d.length&&Af.test(b)&&c&&1===c.length||sf("failed sanity: "+a);return k} function Bf(a,b,c,d){function e(a){return encodeURIComponent(a).replace(/%2C/g,",")} a=Cf(a);vf.test(c)||sf("invalid_callback");b=Df(b);d=d&&d.length?Df(d):null;return[encodeURIComponent(a.Kb).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.Ea?"/am="+e(a.Ea):"",a.Ra?"/rs="+e(a.Ra):"",a.Ya?"/t="+e(a.Ya):"","/cb=",e(c)].join("")} function Cf(a){"/"!==a.charAt(0)&&sf("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))sf("empty/relative directory");else if(0Le.call(b,e)&&c.push(e)}return c} function Jf(){var a=P.nonce;if(void 0!==a)return a&&a===String(a)&&a.match(Hf)?a:P.nonce=null;var b=N(P,"us",[]);if(!b||!b.length)return P.nonce=null;for(var c=He.getElementsByTagName(Gf),d=0,e=c.length;d")}} function Lf(a){var b=He.createElement(Gf);b.setAttribute("src",a);a=Jf();null!==a&&b.setAttribute("nonce",a);b.async="true";(a=He.getElementsByTagName(Gf)[0])?a.parentNode.insertBefore(b,a):(He.head||He.body||He.documentElement).appendChild(b)} function Mf(a,b){var c=b&&b._c;if(c)for(var d=0;d=c.length)throw mc;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!v(d))throw"Storage mechanism: Invalid value was encountered";return d}; return d}; l.clear=function(){this.b.clear()}; l.key=function(a){return this.b.key(a)};function Uf(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a} y(Uf,Tf);function Vf(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a} y(Vf,Tf);var Wf=r("yt.dom.getNextId_");if(!Wf){Wf=function(){return++Xf}; q("yt.dom.getNextId_",Wf,void 0);var Xf=0}function Yf(){var a=document,b;Cb(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],function(c){b=a[c];return!!b}); return b} ;function Zf(a){this.b=a||We();$f||($f=ag(this.b))} var $f=null;function ag(a){return(new L(function(b){try{var c={gapiHintOverride:a.gapiHintOverride,_c:{jsl:{h:a.gapiHintParams}},callback:b},d=oa(c)?{callback:c}:c||{};d._c&&d._c.jsl&&d._c.jsl.h||Ya(d,{_c:{jsl:{h:A("GAPI_HINT_PARAMS",void 0)}}});if(d.gapiHintOverride||A("GAPI_HINT_OVERRIDE")){var e;var f=document.location.href;if(-1!=f.indexOf("?")){var f=(f||"").split("#")[0],g=f.split("?",2);e=fc(1=(Number(Ve("web_logging_max_batch")||0)||20)?kg():lg()} function kg(){jb(ig);if(!Ta()){for(var a in Ua){var b=gg[a];if(!b){b=hg[a];if(!b)continue;b=new b;gg[a]=b}var c=b.f();c.requestTimeMs=Math.round(lb());c[fg[a]]=Ua[a];b.g(a,c,{});delete Ua[a]}Ta()||lg()}} function lg(){jb(ig);ig=B(kg,A("LOGGING_BATCH_TIMEOUT",1E4))} ;function mg(){if(!ng&&!og||!window.JSON)return null;var a;try{a=ng.get("yt-player-two-stage-token")}catch(b){}if(!v(a))try{a=og.get("yt-player-two-stage-token")}catch(b){}if(!v(a))return null;try{a=JSON.parse(a,void 0)}catch(b){}return a} var og,pg=new Uf;og=pg.isAvailable()?new Rf(pg):null;var ng,qg=new Vf;ng=qg.isAvailable()?new Rf(qg):null;function rg(a,b,c){var d=sg,e={};e.eventTimeMs=Math.round(c||lb());e[a]=b;jg({endpoint:"log_event",Oa:e},d)} ;function sg(){this.b=We();tg||(tg=ug(this.b))} var tg=null;function ug(a){return(new L(function(b){ke(A("GAPI_LOADER_URL",void 0),function(){try{r("yt.gapi.load")("client",{gapiHintOverride:a.gapiHintOverride,_c:{jsl:{h:a.gapiHintParams}},callback:b})}catch(c){kb(c)}})})).then(function(){})} sg.prototype.i=function(){var a=r("gapi.config.update");a("googleapis.config/auth/useFirstPartyAuth",!0);var b=this.b.apiaryHost;bb(null==b?"":String(b))||a("googleapis.config/root",(-1==b.indexOf("://")?"//":"")+b);b=this.b.Fa;bb(null==b?"":String(b))||a("googleapis.config/root-1p",(-1==b.indexOf("://")?"//":"")+b);a("googleapis.config/sessionIndex",A("SESSION_INDEX"));r("gapi.client.setApiKey")(this.b.innertubeApiKey)}; sg.prototype.f=function(){return{context:Xe(this.b)}}; sg.prototype.g=function(a,b,c){var d,e=!1;0e?d:d.substr(0,e)){if(b.itct||b.ved)b.csn=b.csn||Ig();d= "ST-"+eb(d).toString(36);e=b?Vb(b):"";Pa.set(""+d,e,5,"/","youtube.com");b&&(b=b.itct||b.ved,d=r("yt.logging.screen.storeParentElement"),b&&d&&d(new Re(b)))}}}if(c)return!1;if((window.ytspf||{}).enabled)spf.navigate(a);else{var k,h;k=void 0===k?{}:k;h=void 0===h?"":h;c=window.location;a=Rb(Ub([a],k))+h;a=a instanceof Xb?a:ac(a);c.href=Zb(a)}return!0} ;function Qg(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||Wa(Rg);this.assets=a.assets||{};this.attrs=a.attrs||Wa(Sg);this.params=a.params||Wa(Tg);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}} var Rg={enablejsapi:1},Sg={},Tg={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};function Ug(a){a instanceof Qg||(a=new Qg(a));return a} function Vg(a){var b=new Qg,c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];b[c]="object"==la(d)?Wa(d):d}return b} ;function Wg(){this.g=this.f=this.b=0;this.i="";var a=r("window.navigator.plugins"),b=r("window.navigator.mimeTypes"),a=a&&a["Shockwave Flash"],b=b&&b["application/x-shockwave-flash"],b=a&&b&&b.enabledPlugin&&a.description||"";if(a=b){var c=a.indexOf("Shockwave Flash");0<=c&&(a=a.substr(c+15));for(var c=a.split(" "),d="",a="",e=0,f=c.length;e=this.b){var g,k,h,m;if(mb)try{g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(u){g=null}else h=document.body,m=document.createElement("object"),m.setAttribute("type","application/x-shockwave-flash"),g=h.appendChild(m);if(g&&"GetVariable"in g)try{k=g.GetVariable("$version")}catch(u){k=""}h&&m&&h.removeChild(m);(g=k||"")?(g=g.split(" ")[1].split(","),g=[parseInt(g[0],10)||0,parseInt(g[1],10)||0,parseInt(g[2], 10)||0]):g=[0,0,0];this.b=g[0];this.f=g[1];this.g=g[2]}} ka(Wg);function Xg(a,b,c,d){b="string"==typeof b?b.split("."):[b,c,d];b[0]=parseInt(b[0],10)||0;b[1]=parseInt(b[1],10)||0;b[2]=parseInt(b[2],10)||0;return a.b>b[0]||a.b==b[0]&&a.f>b[1]||a.b==b[0]&&a.f==b[1]&&a.g>=b[2]} ;function Yg(){D.call(this);this.b=new M;ub(this,va(vb,this.b))} y(Yg,D);Yg.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.b.subscribe(a,b,c)}; Yg.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.b.unsubscribe(a,b,c)}; Yg.prototype.R=function(a){return this.isDisposed()?!1:this.b.R(a)}; Yg.prototype.M=function(a,b){return this.isDisposed()?!1:this.b.M.apply(this.b,arguments)};function Zg(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d} l=Zg.prototype;l.getHeight=function(){return this.bottom-this.top}; l.contains=function(a){return this&&a?a instanceof Zg?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.l>=this.left&&a.l<=this.right&&a.o>=this.top&&a.o<=this.bottom:!1}; l.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}; l.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}; l.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};function $g(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d} $g.prototype.contains=function(a){return a instanceof I?a.l>=this.left&&a.l<=this.left+this.width&&a.o>=this.top&&a.o<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height}; $g.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}; $g.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}; $g.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};function ah(a,b){var c=cd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""} function bh(a,b){return ah(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]} function ch(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}J&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b} function dh(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a} function eh(a){var b=fh;if("none"!=bh(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} function fh(a){var b=a.offsetWidth,c=a.offsetHeight,d=uc&&!b&&!c;return p(b)&&!d||!a.getBoundingClientRect?new Ma(b,c):(a=ch(a),new Ma(a.right-a.left,a.bottom-a.top))} function gh(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return+e} function hh(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?gh(a,c):0} var ih={thin:2,medium:4,thick:6};function jh(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in ih?ih[c]:gh(a,c)} ;function kh(a,b,c,d){D.call(this);this.g=b||null;this.D="*";this.i=c||null;this.b=null;this.channel=d||null;this.J=!!a;this.H=w(this.N,this);window.addEventListener("message",this.H)} y(kh,D);kh.prototype.N=function(a){if(!("*"!=this.i&&a.origin!=this.i||this.g&&a.source!=this.g)&&v(a.data)){var b;try{b=Ea(a.data)}catch(c){return}if(!(null==b||this.J&&(this.b&&this.b!=b.id||this.channel&&this.channel!=b.channel))&&b)switch(b.event){case "listening":"null"!=a.origin?this.i=this.D=a.origin:kb(Error("MessageEvent origin is null"),"WARNING");this.g=a.source;this.b=b.id;this.f&&(this.f(),this.f=null);break;case "command":this.j&&(this.A&&!Eb(this.A,b.func)||this.j(b.func,b.args))}}}; kh.prototype.sendMessage=function(a,b){var c=b||this.g;if(c){this.b&&(a.id=this.b);this.channel&&(a.channel=this.channel);try{var d=Ga(a);c.postMessage(d,this.D)}catch(e){kb(e,"WARNING")}}}; kh.prototype.w=function(){window.removeEventListener("message",this.H);kh.B.w.call(this)};function lh(a,b,c){kh.call(this,a,b,c||A("POST_MESSAGE_ORIGIN",void 0)||window.document.location.protocol+"//"+window.document.location.hostname,"widget");this.A=this.f=this.j=null} y(lh,kh);function mh(){var a=Yf();return a?a:null} ;var nh;var oh=E,oh=oh.toLowerCase();if(-1!=oh.indexOf("android")){var ph=oh.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(ph)nh=Number(ph[1]);else{var qh={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},rh=[],sh=0,th;for(th in qh)rh[sh++]=th;var uh=oh.match("("+rh.join("|")+")");nh=uh?qh[uh[0]]:0}}else nh=void 0;var vh=E,wh=vh.match(/\((BB10|PlayBook|BlackBerry);/);!wh||2>wh.length||vh.match(/Version\/(\d+\.\d+)/);E.match(/Mozilla\/[\d\.]+ \(Mobile;.* rv:([\d\.]+)\) Gecko\/[\d\.]+ Firefox\/[\d\.]+/);var xh;var yh=E,zh=yh.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!zh||2>zh.length)xh=void 0;else{var Ah=yh.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);xh=Ah&&6==Ah.length?Number(Ah[5].replace("_",".")):0}0<=xh&&0<=E.search("Safari")&&E.search("Version");var Bh=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],Ch=['audio/mp4; codecs="mp4a.40.2"'];J&&K("9");!uc||K("528");tc&&K("1.9b")||J&&K("8")||rc&&K("9.5")||uc&&K("528");tc&&!K("8")||J&&K("9");function Dh(a){D.call(this);this.b=[];this.f=a||this} y(Dh,D);function Eh(a,b,c,d){d=ib(w(d,a.f));d={target:b,name:c,qa:d};b.addEventListener(c,d.qa,void 0);a.b.push(d)} function Fh(a){for(;a.b.length;){var b=a.b.pop();b.target.removeEventListener(b.name,b.qa)}} Dh.prototype.w=function(){Fh(this);Dh.B.w.call(this)};function R(a,b){this.version=a;this.args=b} function Gh(a){if(!a.Wa){var b={};a.call(b);a.Wa=b.version}return a.Wa} function Hh(a,b){function c(){a.apply(this,b.args)} if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");var d;try{d=Gh(a)}catch(e){}if(!d||b.version!=d)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");c.prototype=a.prototype;try{return new c}catch(e){throw e.message="yt.pubsub2.Data.deserialize(): "+e.message,e;}} function S(a,b){this.topic=a;this.b=b} S.prototype.toString=function(){return this.topic};var Ih=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};function Jh(a){R.call(this,1,arguments)} y(Jh,R);var Kh=new S("timing-sent",Jh);var Lh=r("yt.pubsub2.instance_")||new M;M.prototype.subscribe=M.prototype.subscribe;M.prototype.unsubscribeByKey=M.prototype.R;M.prototype.publish=M.prototype.M;M.prototype.clear=M.prototype.clear;q("yt.pubsub2.instance_",Lh,void 0);var Mh=r("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",Mh,void 0);var Nh=r("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",Nh,void 0);var Oh=r("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",Oh,void 0);q("yt.pubsub2.skipSubKey_",null,void 0); function T(a,b){var c=Ph();c&&c.publish.call(c,a.toString(),a,b)} function U(a,b,c){var d=Ph();if(!d)return 0;var e=d.subscribe(a.toString(),function(d,g){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var f=function(){if(Mh[e])try{if(g&&a instanceof S&&a!=d)try{g=Hh(a.b,g)}catch(h){throw h.message="yt.pubsub2 cross-binary conversion error for "+a.toString()+": "+h.message,h;}b.call(c||window,g)}catch(h){kb(h)}}; Oh[a.toString()]?r("yt.scheduler.instance")?Jg(f,void 0):B(f,0):f()}}); Mh[e]=!0;Nh[a.toString()]||(Nh[a.toString()]=[]);Nh[a.toString()].push(e);return e} function Qh(a){var b=Ph();b&&("number"==typeof a&&(a=[a]),G(a,function(a){b.unsubscribeByKey(a);delete Mh[a]}))} function Ph(){return r("yt.pubsub2.instance_")} ;function Rh(a,b,c){D.call(this);this.b=a;this.i=b||0;this.f=c;this.g=w(this.nb,this)} y(Rh,D);l=Rh.prototype;l.ca=0;l.w=function(){Rh.B.w.call(this);this.stop();delete this.b;delete this.f}; l.start=function(a){this.stop();var b=this.g;a=p(a)?a:this.i;if(!oa(b))if(b&&"function"==typeof b.handleEvent)b=w(b.handleEvent,b);else throw Error("Invalid listener argument");this.ca=2147483647c;c++){d=x();for(a=0;a>>0);function Ai(a,b){a=v(a)?dd(a):a;b=Ug(b);var c=zi+"_"+qa(a),d=yi[c];if(d)return d.ya(b),d.f;d=new ji(a,c);yi[c]=d;Yd("player-added",d.f);ub(d,va(Bi,d));B(function(){d.ya(b)},0); return d.f} function Bi(a){yi[a.Z]=null} function Ci(a){a=dd(a);if(!a)return null;var b=zi+"_"+qa(a),c=yi[b];c||(c=new ji(a,b),yi[b]=c);return c.f} ;var Di=r("yt.abuse.botguardInitialized")||Ce;q("yt.abuse.botguardInitialized",Di,void 0);var Ei=r("yt.abuse.invokeBotguard")||De;q("yt.abuse.invokeBotguard",Ei,void 0);var Fi=r("yt.abuse.dclkstatus.checkDclkStatus")||Ng;q("yt.abuse.dclkstatus.checkDclkStatus",Fi,void 0);var Gi=r("yt.player.exports.navigate")||Pg;q("yt.player.exports.navigate",Gi,void 0);var Hi=r("yt.player.embed")||Ai;q("yt.player.embed",Hi,void 0);var Ii=r("yt.player.getPlayerByElement")||Ci;q("yt.player.getPlayerByElement",Ii,void 0); var Ji=r("yt.util.activity.init")||xg;q("yt.util.activity.init",Ji,void 0);var Ki=r("yt.util.activity.getTimeSinceActive")||zg;q("yt.util.activity.getTimeSinceActive",Ki,void 0);var Li=r("yt.util.activity.setTimestamp")||yg;q("yt.util.activity.setTimestamp",Li,void 0);function Mi(a){R.call(this,1,arguments);this.b=a} y(Mi,R);function V(a){R.call(this,1,arguments);this.b=a} y(V,R);function Ni(a,b,c){R.call(this,3,arguments);this.g=a;this.f=b;this.b=null!=c?!!c:null} y(Ni,R);function Oi(a,b,c,d,e){R.call(this,2,arguments);this.f=a;this.b=b;this.i=c||null;this.g=d||null;this.source=e||null} y(Oi,R);function Pi(a,b,c){R.call(this,1,arguments);this.b=a;this.subscriptionId=b} y(Pi,R);function Qi(a,b,c,d,e,f,g){R.call(this,1,arguments);this.f=a;this.subscriptionId=b;this.b=c;this.j=d||null;this.i=e||null;this.g=f||null;this.source=g||null} y(Qi,R); var Ri=new S("subscription-batch-subscribe",Mi),Si=new S("subscription-batch-unsubscribe",Mi),Ti=new S("subscription-subscribe",Oi),Ui=new S("subscription-subscribe-loading",V),Vi=new S("subscription-subscribe-loaded",V),Wi=new S("subscription-subscribe-success",Pi),Xi=new S("subscription-subscribe-external",Oi),Yi=new S("subscription-unsubscribe",Qi),Zi=new S("subscription-unsubscirbe-loading",V),$i=new S("subscription-unsubscribe-loaded",V),aj=new S("subscription-unsubscribe-success",V),bj=new S("subscription-external-unsubscribe", Qi),cj=new S("subscription-enable-ypc",V),dj=new S("subscription-disable-ypc",V),ej=new S("subscription-prefs",Ni),fj=new S("subscription-prefs-success",Ni),gj=new S("subscription-prefs-failure",Ni);function hj(a,b){var c=document.location.protocol+"//"+document.domain+"/post_login";b&&(c=Wb(c,"mode",b));c=Wb("/signin?context=popup","next",c);c=Wb(c,"feature","sub_button");if(c=window.open(c,"loginPopup","width=375,height=440,resizable=yes,scrollbars=yes",!0)){var d=Vd("LOGGED_IN",function(b){Xd(A("LOGGED_IN_PUBSUB_KEY",void 0));z("LOGGED_IN",!0);a(b)}); z("LOGGED_IN_PUBSUB_KEY",d);c.moveTo((screen.width-375)/2,(screen.height-440)/2)}} q("yt.pubsub.publish",Yd,void 0);function ij(){var a=A("PLAYER_CONFIG");return a&&a.args&&void 0!==a.args.authuser?!0:!(!A("SESSION_INDEX")&&!A("LOGGED_IN"))} ;function jj(a,b){(a=dd(a))&&a.style&&(a.style.display=b?"":"none",of(a,"hid",!b))} function kj(a){G(arguments,function(a){!na(a)||a instanceof Element?jj(a,!0):G(a,function(a){kj(a)})})} function lj(a){G(arguments,function(a){!na(a)||a instanceof Element?jj(a,!1):G(a,function(a){lj(a)})})} ;var mj={},nj="ontouchstart"in document;function oj(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return td(c,function(a){return lf(a,b)},!0,d)} function W(a){var b="mouseover"==a.type&&"mouseenter"in mj||"mouseout"==a.type&&"mouseleave"in mj,c=a.type in mj||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=mj[b],d;for(d in c.G){var e=oj(b,d,a.target);e&&!td(a.relatedTarget,function(a){return a==e},!0)&&c.M(d,e,b,a)}}if(b=mj[a.type])for(d in b.G)(e=oj(a.type,d,a.target))&&b.M(d,e,a.type,a)}} Q(document,"blur",W,!0);Q(document,"change",W,!0);Q(document,"click",W);Q(document,"focus",W,!0);Q(document,"mouseover",W);Q(document,"mouseout",W);Q(document,"mousedown",W);Q(document,"keydown",W);Q(document,"keyup",W);Q(document,"keypress",W);Q(document,"cut",W);Q(document,"paste",W);nj&&(Q(document,"touchstart",W),Q(document,"touchend",W),Q(document,"touchcancel",W));function pj(a){this.j=a;this.g={};this.ka=[];this.i=[]} function X(a,b){return"yt-uix"+(a.j?"-"+a.j:"")+(b?"-"+b:"")} pj.prototype.unregister=function(){Xd(this.ka);this.ka.length=0;Qh(this.i);this.i.length=0}; pj.prototype.init=t;pj.prototype.dispose=t;function qj(a,b,c){a.i.push(U(b,c,a))} function rj(a,b,c){var d=X(a,void 0),e=w(c,a);b in mj||(mj[b]=new M);mj[b].subscribe(d,e);a.g[c]=e} function sj(a,b,c){if(b in mj){var d=mj[b];d.unsubscribe(X(a,void 0),a.g[c]);0>=d.ba()&&(d.dispose(),delete mj[b])}delete a.g[c]} function tj(a,b){nb(a,"tooltip-text",b)} ;function uj(){pj.call(this,"tooltip");this.b=0;this.f={}} y(uj,pj);ka(uj);l=uj.prototype;l.register=function(){rj(this,"mouseover",this.ja);rj(this,"mouseout",this.P);rj(this,"focus",this.Ia);rj(this,"blur",this.Ga);rj(this,"click",this.P);rj(this,"touchstart",this.Va);rj(this,"touchend",this.la);rj(this,"touchcancel",this.la)}; l.unregister=function(){sj(this,"mouseover",this.ja);sj(this,"mouseout",this.P);sj(this,"focus",this.Ia);sj(this,"blur",this.Ga);sj(this,"click",this.P);sj(this,"touchstart",this.Va);sj(this,"touchend",this.la);sj(this,"touchcancel",this.la);this.dispose();uj.B.unregister.call(this)}; l.dispose=function(){for(var a in this.f)this.P(this.f[a]);this.f={}}; l.ja=function(a){if(!(this.b&&1E3>x()-this.b)){var b=parseInt(C(a,"tooltip-hide-timer"),10);b&&(qb(a,"tooltip-hide-timer"),jb(b));var b=w(function(){vj(this,a);qb(a,"tooltip-show-timer")},this),c=parseInt(C(a,"tooltip-show-delay"),10)||0,b=B(b,c); nb(a,"tooltip-show-timer",b.toString());a.title&&(tj(a,wj(a)),a.title="");b=qa(a).toString();this.f[b]=a}}; l.P=function(a){var b=parseInt(C(a,"tooltip-show-timer"),10);b&&(jb(b),qb(a,"tooltip-show-timer"));b=w(function(){if(a){var b=dd(xj(this,a));b&&(yj(b),b&&b.parentNode&&b.parentNode.removeChild(b),qb(a,"content-id"));(b=dd(xj(this,a,"arialabel")))&&b.parentNode&&b.parentNode.removeChild(b)}qb(a,"tooltip-hide-timer")},this); b=B(b,50);nb(a,"tooltip-hide-timer",b.toString());if(b=C(a,"tooltip-text"))a.title=b;b=qa(a).toString();delete this.f[b]}; l.Ia=function(a){this.b=0;this.ja(a)}; l.Ga=function(a){this.b=0;this.P(a)}; l.Va=function(a,b,c){c.changedTouches&&(this.b=0,a=oj(b,X(this),c.changedTouches[0].target),this.ja(a))}; l.la=function(a,b,c){c.changedTouches&&(this.b=x(),a=oj(b,X(this),c.changedTouches[0].target),this.P(a))}; function zj(a,b){tj(a,b);var c=C(a,"content-id");(c=dd(c))&&md(c,b)} function wj(a){return C(a,"tooltip-text")||a.title} function vj(a,b){if(b){var c=wj(b);if(c){var d=dd(xj(a,b));if(!d){d=document.createElement("div");d.id=xj(a,b);d.className=X(a,"tip");var e=document.createElement("div");e.className=X(a,"tip-body");var f=document.createElement("div");f.className=X(a,"tip-arrow");var g=document.createElement("div");g.setAttribute("aria-hidden","true");g.className=X(a,"tip-content");var k=Aj(a,b),h=xj(a,b,"content");g.id=h;nb(b,"content-id",h);e.appendChild(g);k&&d.appendChild(k);d.appendChild(e);d.appendChild(f);var m= pd(b),h=xj(a,b,"arialabel"),f=document.createElement("div");mf(f,X(a,"arialabel"));f.id=h;m=b.hasAttribute("aria-label")?b.getAttribute("aria-label"):"rtl"==document.body.getAttribute("dir")?c+" "+m:m+" "+c;md(f,m);b.setAttribute("aria-labelledby",h);h=mh()||document.body;h.appendChild(f);h.appendChild(d);zj(b,c);(c=parseInt(C(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",mf(g,X(a,"normal-wrap")));g=lf(b,X(a,"reverse"));Bj(a,b,d,e,k,g)||Bj(a,b,d,e,k,!g);var u=X(a,"tip-visible"); B(function(){mf(d,u)},0)}}}} function Bj(a,b,c,d,e,f){var g;of(c,X(a,"tip-reverse"),f);var k=0;f&&(k=1);a=eh(b);f=new I((a.width-10)/2,f?a.height:0);var h=cd(b);g=new I(0,0);var m;m=h?cd(h):document;m=!J||9<=Number(Ic)||hd(ad(m).b)?m.documentElement:m.body;b!=m&&(m=ch(b),h=id(ad(h).b),g.l=m.left+h.l,g.o=m.top+h.o);f=new I(g.l+f.l,g.o+f.o);f=new I(f.l,f.o);g=(k&8&&"rtl"==bh(c,"direction")?k^4:k)&-9;k=eh(c);h=new Ma(k.width,k.height);f=new I(f.l,f.o);h=new Ma(h.width,h.height);0!=g&&(g&4?f.l-=h.width+0:g&2&&(f.l-=h.width/2),g& 1&&(f.o-=h.height+0));g=new $g(0,0,0,0);g.left=f.l;g.top=f.o;g.width=h.width;g.height=h.height;f=g;g=0;if(!(g&496||(g=f,h=new I(g.left,g.top),h instanceof I?(g=h.l,h=h.o):(g=h,h=void 0),c.style.left=dh(g,!1),c.style.top=dh(h,!1),h=new Ma(f.width,f.height),k==h||k&&h&&k.width==h.width&&k.height==h.height)))if(k=h,g=hd(ad(cd(c)).b),!J||K("10")||g&&K("8"))f=c.style,tc?f.MozBoxSizing="border-box":uc?f.WebkitBoxSizing="border-box":f.boxSizing="border-box",f.width=Math.max(k.width,0)+"px",f.height=Math.max(k.height, 0)+"px";else if(f=c.style,g){if(J){g=hh(c,"paddingLeft");h=hh(c,"paddingRight");m=hh(c,"paddingTop");var u=hh(c,"paddingBottom");g=new Zg(m,h,u,g)}else g=ah(c,"paddingLeft"),h=ah(c,"paddingRight"),m=ah(c,"paddingTop"),u=ah(c,"paddingBottom"),g=new Zg(parseFloat(m),parseFloat(h),parseFloat(u),parseFloat(g));if(!J||9<=Number(Ic))h=ah(c,"borderLeftWidth"),m=ah(c,"borderRightWidth"),u=ah(c,"borderTopWidth"),da=ah(c,"borderBottomWidth"),h=new Zg(parseFloat(u),parseFloat(m),parseFloat(da),parseFloat(h)); else{h=jh(c,"borderLeft");m=jh(c,"borderRight");var u=jh(c,"borderTop"),da=jh(c,"borderBottom"),h=new Zg(u,m,da,h)}f.pixelWidth=k.width-h.left-g.left-g.right-h.right;f.pixelHeight=k.height-h.top-g.top-g.bottom-h.bottom}else f.pixelWidth=k.width,f.pixelHeight=k.height;f=gd(window);1==c.nodeType?(c=ch(c),h=new I(c.left,c.top)):(c=c.changedTouches?c.changedTouches[0]:c,h=new I(c.clientX,c.clientY));c=eh(d);m=Math.floor(c.width/2);k=!!(f.height