(function(){var g,ba=ba||{},m=this;function n(a){return void 0!==a}function q(a,b,c){a=a.split(".");c=c||m;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&n(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}}function r(a,b){for(var c=a.split("."),d=b||m,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d}function t(){}function ca(a){a.getInstance=function(){return a.U?a.U:a.U=new a}} function da(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}function ea(a){return"array"==da(a)}function fa(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function u(a){return"string"==typeof a}function ga(a){return"number"==typeof a}function ha(a){return"function"==da(a)}function ia(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ka(a){return a[ma]||(a[ma]=++na)}var ma="closure_uid_"+(1E9*Math.random()>>>0),na=0; function oa(a,b,c){return a.call.apply(a.bind,arguments)}function pa(a,b,c){if(!a)throw Error();if(2/g,ya=/"/g,za=/'/g,Aa=/\x00/g,Ba=/[\x00&<>"']/;function Ca(a){return-1!=a.indexOf("&")?"document"in m?Da(a):Ea(a):a} function Da(a){var b={"&":"&","<":"<",">":">",""":'"'},c;c=m.document.createElement("div");return a.replace(Fa,function(a,e){var f=b[a];if(f)return f;if("#"==e.charAt(0)){var h=Number("0"+e.substr(1));isNaN(h)||(f=String.fromCharCode(h))}f||(c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1));return b[a]=f})} function Ea(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return a}})}var Fa=/&([^;\s<&]+);?/g,Ga={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\"},Ha={"'":"\\'"}; function Ia(a,b){for(var c=0,d=ta(String(a)).split("."),e=ta(String(b)).split("."),f=Math.max(d.length,e.length),h=0;0==c&&hb?1:0}function Ka(a){for(var b=0,c=0;cc?Math.max(0,a.length+c):c;if(u(a))return u(b)&&1==b.length?a.indexOf(b,c):-1;for(;cb?null:u(a)?a.charAt(b):a[b]}function Ra(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f=arguments.length?y.slice.call(a,b):y.slice.call(a,b,c)}function cb(a,b,c){if(!fa(a)||!fa(b)||a.length!=b.length)return!1;var d=a.length;c=c||db;for(var e=0;eb?1:a",0);Kb("",0);function Lb(a,b){var c;c=b instanceof zb?b:Db(b);a.href=Bb(c)};function Mb(a,b,c){a&&(a.dataset?a.dataset[Nb(b)]=c:a.setAttribute("data-"+b,c))}function B(a,b){return a?a.dataset?a.dataset[Nb(b)]:a.getAttribute("data-"+b):null}var Ob={};function Nb(a){return Ob[a]||(Ob[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};function D(){this.Ja=this.Ja;this.O=this.O}D.prototype.Ja=!1;D.prototype.isDisposed=function(){return this.Ja};D.prototype.dispose=function(){this.Ja||(this.Ja=!0,this.G())};function Pb(a,b){a.Ja?b.call(void 0):(a.O||(a.O=[]),a.O.push(n(void 0)?v(b,void 0):b))}D.prototype.G=function(){if(this.O)for(;this.O.length;)this.O.shift()()};function Qb(a){a&&"function"==typeof a.dispose&&a.dispose()}function Rb(a){for(var b=0,c=arguments.length;b Download it from Adobe.';if(b)for(var c in a)b=b.replace(new RegExp("\\$"+c,"gi"),function(){return a[c]});return b}function Vb(a,b){if(1f&&(c=a.substring(f,e),c=c.replace(lc,""),c=c.replace(mc,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else nc(a,b)}function nc(a,b){var c=oc(a),d=document.getElementById(c),e=d&&B(d,"loaded"),f=d&&!e;if(e)b&&b();else{if(b){var e=I(c,b),h=""+ka(b);pc[h]=e}f||(d=qc(a,c,function(){B(d,"loaded")||(Mb(d,"loaded","true"),J(c),G(qa(jc,c),0))}))}} function qc(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 oc(a){var b=document.createElement("a");Lb(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ka(a)} var lc=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,mc=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,pc={};var rc=null;function sc(){var a=F("BG_I",null),b=F("BG_IU",null),c=F("BG_P");b?kc(b,function(){rc=new botguard.bg(c)}):a&&(eval(a),rc=new botguard.bg(c))}function tc(){return null!=rc}function uc(){return rc?rc.invoke():null};function vc(a){if(a.classList)return a.classList;a=a.className;return u(a)&&a.match(/\S+/g)||[]}function wc(a,b){return a.classList?a.classList.contains(b):Sa(vc(a),b)}function xc(a,b){a.classList?a.classList.add(b):wc(a,b)||(a.className+=0parseFloat(a))?String(b):a}(),Rc={};function Sc(a){return Rc[a]||(Rc[a]=0<=Ia(Qc,a))}var Tc=m.document,Uc=Tc&&L?Pc()||("CSS1Compat"==Tc.compatMode?parseInt(Qc,10):5):void 0;!Kc&&!L||L&&9<=Uc||Kc&&Sc("1.9.1");var Vc=L&&!Sc("9");function Wc(a){return a?new Xc(Yc(a)):sa||(sa=new Xc)}function Zc(a){return u(a)?document.getElementById(a):a}function $c(a){var b=document;return u(a)?b.getElementById(a):a}function ad(a){var b=document;return b.querySelectorAll&&b.querySelector?b.querySelectorAll("."+a):bd(a,void 0)} function bd(a,b){var c,d,e,f;c=document;c=b||c;if(c.querySelectorAll&&c.querySelector&&a)return c.querySelectorAll(""+(a?"."+a:""));if(a&&c.getElementsByClassName){var h=c.getElementsByClassName(a);return h}h=c.getElementsByTagName("*");if(a){f={};for(d=e=0;c=h[d];d++){var k=c.className;"function"==typeof k.split&&Sa(k.split(/\s+/),a)&&(f[e++]=c)}f.length=e;return f}return h} function cd(a){var b=a.f?a.f:!Lc&&dd(a)?a.documentElement:a.body||a.documentElement;a=a.parentWindow||a.defaultView;return L&&Sc("10")&&a.pageYOffset!=b.scrollTop?new Ac(b.scrollLeft,b.scrollTop):new Ac(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function dd(a){return"CSS1Compat"==a.compatMode}function ed(a){for(var b;b=a.firstChild;)a.removeChild(b)} function fd(a){if(!a)return null;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null}function gd(a){if(!a)return null;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a}function Yc(a){return 9==a.nodeType?a:a.ownerDocument||a.document} function hd(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{ed(a);var c=Yc(a);a.appendChild(c.createTextNode(String(b)))}}var id={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},jd={IMG:" ",BR:"\n"}; function kd(a){if(Vc&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];ld(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Vc||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a} function ld(a,b,c){if(!(a.nodeName in id))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in jd)b.push(jd[a.nodeName]);else for(a=a.firstChild;a;)ld(a,b,c),a=a.nextSibling}function md(a){var b=nd.fd;return b?od(a,function(a){return!b||u(a.className)&&Sa(a.className.split(/\s+/),b)},!0,void 0):null}function od(a,b,c,d){c||(a=a.parentNode);c=null==d;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return null} function Xc(a){this.f=a||m.document||document}Xc.prototype.createElement=function(a){return this.f.createElement(a)};Xc.prototype.appendChild=function(a,b){a.appendChild(b)};Xc.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var pd=Lc?"webkit":Kc?"moz":L?"ms":Ic?"o":"",qd=r("yt.dom.getNextId_");if(!qd){qd=function(){return++rd};q("yt.dom.getNextId_",qd,void 0);var rd=0}function sd(){var a=document,b;Oa(["fullscreenElement","fullScreenElement"],function(c){c in a?b=a[c]:(c=pd+c.charAt(0).toUpperCase()+c.substr(1),b=c in a?a[c]:void 0);return!!b});return b};function td(a){if(a=a||window.event){this.event=a;for(var b in a)b in ud||(this[b]=a[b]);(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName?b:null}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"== this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;"MozMousePixelScroll"==this.type?(this.wheelDeltaX=a.axis==a.HORIZONTAL_AXIS?a.detail:0,this.wheelDeltaY=a.axis==a.HORIZONTAL_AXIS?0:a.detail):window.opera?(this.wheelDeltaX=0,this.wheelDeltaY=a.detail):0==a.wheelDelta%120?"WebkitTransform"in document.documentElement.style?window.chrome&&0==navigator.platform.indexOf("Mac")?(this.wheelDeltaX=a.wheelDeltaX/-30,this.wheelDeltaY=a.wheelDeltaY/-30):(this.wheelDeltaX= a.wheelDeltaX/-1.2,this.wheelDeltaY=a.wheelDeltaY/-1.2):(this.wheelDeltaX=0,this.wheelDeltaY=a.wheelDelta/-1.6):(this.wheelDeltaX=a.wheelDeltaX/-3,this.wheelDeltaY=a.wheelDeltaY/-3)}}g=td.prototype;g.type="";g.target=null;g.relatedTarget=null;g.currentTarget=null;g.data=null;g.source=null;g.state=null;g.keyCode=0;g.charCode=0;g.altKey=!1;g.ctrlKey=!1;g.shiftKey=!1;g.clientX=0;g.clientY=0;g.wheelDeltaX=0;g.wheelDeltaY=0; g.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};var ud={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var pb=r("yt.events.listeners_")||{};q("yt.events.listeners_",pb,void 0);var vd=r("yt.events.counter_")||{count:0};q("yt.events.counter_",vd,void 0);function wd(a,b,c,d){return ob(function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})} function M(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=wd(a,b,c,d);if(e)return e;var e=++vd.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=f?function(d){d=new td(d);if(!od(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new td(b);b.currentTarget=a;return c.call(a,b)};h=Wb(h);pb[e]=[a,b,c,h,d];a.addEventListener?"mouseenter"==b&&f?a.addEventListener("mouseover", h,d):"mouseleave"==b&&f?a.addEventListener("mouseout",h,d):"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style?a.addEventListener("MozMousePixelScroll",h,d):a.addEventListener(b,h,d):a.attachEvent("on"+b,h);return e}function xd(a){a&&("string"==typeof a&&(a=[a]),z(a,function(a){if(a in pb){var c=pb[a],d=c[0],e=c[1],f=c[3],c=c[4];d.removeEventListener?d.removeEventListener(e,f,c):d.detachEvent&&d.detachEvent("on"+e,f);delete pb[a]}}))};function yd(){return parseInt(F("DCLKSTAT",0),10)};function zd(){if(null==r("_lact",window)){var a=parseInt(F("LACT"),10),a=isFinite(a)?w()-Math.max(a,0):-1;q("_lact",a,window);-1==a&&Ad();M(document,"keydown",Ad);M(document,"keyup",Ad);M(document,"mousedown",Ad);M(document,"mouseup",Ad);F("EXP_LACT_MOUSE")&&I("page-mouse",Ad);F("EXP_LACT_SCROLL")&&I("page-scroll",Ad);F("EXP_LACT_RESIZE")&&I("page-resize",Ad)}}function Ad(){null==r("_lact",window)&&(zd(),r("_lact",window));var a=w();q("_lact",a,window);J("USER_ACTIVE")} function Bd(){var a=r("_lact",window);return null==a?-1:Math.max(w()-a,0)};var Cd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function Dd(a){if(Ed){Ed=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Fd(c))&&c!=b.hostname)throw Ed=!0,Error();}}return a.match(Cd)}var Ed=Lc;function Fd(a){return(a=Dd(a)[3]||null)?decodeURI(a):a}function Gd(a,b){if(a)for(var c=a.split("&"),d=0;dc?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")}function Id(a,b,c){if(ea(b))for(var d=0;dd?"":0==d?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(w()+1E3*d)).toUTCString();a.f.cookie=b+"="+c+f+e+d+""} g.get=function(a,b){for(var c=a+"=",d=(this.f.cookie||"").split(Pd),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};g.remove=function(a,b,c){var d=n(this.get(a));Qd(this,a,"",0,b,c);return d};g.ta=function(){return Rd(this).keys};g.$=function(){return Rd(this).values};g.isEmpty=function(){return!this.f.cookie};g.Y=function(){return this.f.cookie?(this.f.cookie||"").split(Pd).length:0}; g.ob=function(a){for(var b=Rd(this).values,c=0;cd?a:a.substr(0,d))c?(c=parseInt(c,10),isFinite(c)&&0=a.length)throw be;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");} function ee(a,b,c){if(fa(a))try{z(a,b,c)}catch(d){if(d!==be)throw d;}else{a=de(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==be)throw e;}}}function fe(a){if(fa(a))return Za(a);a=de(a);var b=[];ee(a,function(a){b.push(a)});return b};function ge(a,b){this.h={};this.f=[];this.Aa=this.j=0;var c=arguments.length;if(12*this.j&&ie(this),!0):!1};function ie(a){if(a.j!=a.f.length){for(var b=0,c=0;b=d.f.length)throw be;var e=d.f[b++];return a?e:d.h[e]};return e};function je(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function le(a){return"function"==typeof a.Y?a.Y():fa(a)||u(a)?a.length:ib(a)}function me(a){if("function"==typeof a.$)return a.$();if(u(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;dc)return!1;!(b instanceof qe)&&5=this.f){var h,k,l,p;if($b)try{h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(C){h=null}else l=document.body,p=document.createElement("object"),p.setAttribute("type","application/x-shockwave-flash"),h=l.appendChild(p);if(h&&"GetVariable"in h)try{k=h.GetVariable("$version")}catch(aa){k=""}l&&p&&l.removeChild(p);(h=k||"")?(h=h.split(" ")[1].split(","),h=[parseInt(h[0],10)||0,parseInt(h[1],10)||0,parseInt(h[2], 10)||0]):h=[0,0,0];this.f=h[0];this.h=h[1];this.j=h[2]}}ca(uf);uf.prototype.getVersion=function(){return[this.f,this.h,this.j]};function vf(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.f>b[0]||a.f==b[0]&&a.h>b[1]||a.f==b[0]&&a.h==b[1]&&a.j>=b[2]}function wf(a){return-1=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; yf.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};yf.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};function zf(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}zf.prototype.clone=function(){return new zf(this.left,this.top,this.width,this.height)};zf.prototype.contains=function(a){return a instanceof zf?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height}; zf.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};zf.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 Af(a,b){var c=Yc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Bf(a,b){return Af(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]} function Cf(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}L&&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 Df(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a} function Ef(a){var b=Ff;if("none"!=Bf(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 Ff(a){var b=a.offsetWidth,c=a.offsetHeight,d=Lc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new Bc(b,c):(a=Cf(a),new Bc(a.right-a.left,a.bottom-a.top))} function Gf(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 Hf(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Gf(a,c):0}var If={thin:2,medium:4,thick:6}; function Jf(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 If?If[c]:Gf(a,c)};function Kf(a,b){(a=Zc(a))&&a.style&&(a.style.display=b?"":"none",zc(a,"hid",!b))}function Lf(a){z(arguments,function(a){Kf(a,!0)})}function Mf(a){z(arguments,function(a){Kf(a,!1)})};var Nf={};function Of(a,b){var c=F("FEEDBACK_LOCALE_LANGUAGE"),d=F("FEEDBACK_LOCALE_EXTRAS",{});a?vb(Nf,a):vb(Nf,d);try{var e,f=r("yt.player.getPlayerByElement");(e=f?f("player-api"):null)&&e.pauseVideo&&e.pauseVideo();var h=uf.getInstance();Nf.flashVersion=h.getVersion().join(".");e&&(Nf.playback_id=e.getVideoData().cpn)}catch(k){}b&&vb(Nf,{trackingParam:b});return{helpCenterPath:"/youtube",locale:c,productData:Nf}} function Pf(){var a=F("SESSION_INDEX"),b=F("FEEDBACK_BUCKET_ID"),c={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005"};a&&(c.authuser=a+"");b&&(c.bucket=b);return c}function Qf(a,b){try{var c=(a||"59")+"",d=Of(b),e=Pf();df(c,d).h(e);return!1}catch(f){return!0}}function Rf(a,b,c,d){var e;d=(d||"59")+"";c=Of(c,void 0);a={context:b,anchor:void 0,enableSendFeedback:!0,defaultHelpArticleId:a};vb(a,Pf());try{df(d,c).j(a),e=!1}catch(f){e=!0}return e};function Sf(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||sb(Tf);this.assets=a.assets||{};this.attrs=a.attrs||sb(Uf);this.params=a.params||sb(Vf);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 Tf={enablejsapi:1},Uf={},Vf={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"}; function Wf(a){a instanceof Sf||(a=new Sf(a));return a}Sf.prototype.clone=function(){var a=new Sf,b;for(b in this){var c=this[b];"object"==da(c)?a[b]=sb(c):a[b]=c}return a};function Xf(a){Xf[" "](a);return a}Xf[" "]=t;var Yf=!L||9<=Uc,Zf=L&&!Sc("9");!Lc||Sc("528");Kc&&Sc("1.9b")||L&&Sc("8")||Ic&&Sc("9.5")||Lc&&Sc("528");Kc&&!Sc("8")||L&&Sc("9");function $f(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=!1;this.Pc=!0}$f.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Pc=!1};function ag(a,b){$f.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.clientY=this.clientX=0;this.shiftKey=this.altKey=this.ctrlKey=!1;this.f=this.state=null;a&&this.init(a,b)}x(ag,$f); ag.prototype.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(Kc){var e;a:{try{Xf(d.nodeName);e=!0;break a}catch(f){}e=!1}e||(d=null)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0); this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.state=a.state;this.f=a;a.defaultPrevented&&this.preventDefault()};ag.prototype.preventDefault=function(){ag.I.preventDefault.call(this);var a=this.f;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Zf)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};ag.prototype.h=function(){return this.f};var bg="closure_listenable_"+(1E6*Math.random()|0),cg=0;function dg(a,b,c,d,e){this.listener=a;this.f=null;this.src=b;this.type=c;this.lb=!!d;this.tb=e;this.key=++cg;this.Ra=this.kb=!1}function eg(a){a.Ra=!0;a.listener=null;a.f=null;a.src=null;a.tb=null};function fg(a){this.src=a;this.f={};this.h=0}fg.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.f[f];a||(a=this.f[f]=[],this.h++);var h=gg(a,b,d,e);-1c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(h){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,k=c.length-1;0<=k;k--){d.currentTarget=c[k];var l=ug(c[k],f,!0,d),e=e&&l}for(k=0;k>>0);function ng(a){if(ha(a))return a;a[wg]||(a[wg]=function(b){return a.handleEvent(b)});return a[wg]};function xg(){var a;if(a=Sd.get("PREF",void 0)){a=unescape(a).split("&");for(var b=0;b'+Zb()+""}function Eg(a,b){return wf(b)&&a.url||(-1b)throw Error("Bad port number "+b);a.B=b}else a.B=null} function Wg(a,b,c){b instanceof Yg?(a.j=b,dh(a.j,a.A)):(c||(b=Zg(b,eh)),a.j=new Yg(b,0,a.A))}function N(a,b,c){a=a.j;fh(a);a.j=null;b=gh(a,b);hh(a,b)&&(a.h-=a.f.get(b).length);he(a.f,b,[c]);a.h++}function ih(a,b,c){ea(c)||(c=[String(c)]);jh(a.j,b,c)}function kh(a){N(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^w()).toString(36));return a}function lh(a){return a instanceof Sg?a.clone():new Sg(a,void 0)} function mh(a,b,c,d){var e=new Sg(null,void 0);a&&Tg(e,a);b&&Ug(e,b);c&&Vg(e,c);d&&(e.f=d);return e}function Xg(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function Zg(a,b,c){return u(a)?(a=encodeURI(a).replace(b,nh),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function nh(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var $g=/[#\/\?@]/g,bh=/[\#\?:]/g,ah=/[\#\?]/g,eh=/[\#\?@]/g,ch=/#/g; function Yg(a,b,c){this.h=this.f=null;this.j=a||null;this.l=!!c}function fh(a){a.f||(a.f=new ge,a.h=0,a.j&&Gd(a.j,function(b,c){a.add(ua(b),c)}))}g=Yg.prototype;g.Y=function(){fh(this);return this.h};g.add=function(a,b){fh(this);this.j=null;a=gh(this,a);var c=this.f.get(a);c||he(this.f,a,c=[]);c.push(b);this.h++;return this};g.remove=function(a){fh(this);a=gh(this,a);return je(this.f.h,a)?(this.j=null,this.h-=this.f.get(a).length,this.f.remove(a)):!1}; g.clear=function(){this.f=this.j=null;this.h=0};g.isEmpty=function(){fh(this);return 0==this.h};function hh(a,b){fh(a);b=gh(a,b);return je(a.f.h,b)}g.ob=function(a){var b=this.$();return Sa(b,a)};g.ta=function(){fh(this);for(var a=this.f.$(),b=this.f.ta(),c=[],d=0;da.duration?b:a},{duration:0});d&&0e&&(c.fpt=k);k=Kh().span;l=h.redirectEnd-h.redirectStart;0=h.navigationStart&&0 Get the latest Flash Player
Get the latest version of QuickTime'); b=this.f.messages.player_fallback||a;a=Zc("player-unavailable");if(Zc("unavailable-submessage")&&a){Zc("unavailable-submessage").innerHTML=b;var b=a||document,c=null;b.getElementsByClassName?c=b.getElementsByClassName("icon")[0]:b.querySelectorAll&&b.querySelector?c=b.querySelector(".icon"):c=bd("icon",a)[0];if(c=b=c||null)c=b?b.dataset?Nb("icon")in b.dataset:b.hasAttribute?!!b.hasAttribute("data-icon"):!!b.getAttribute("data-icon"):!1;c&&(b.src=B(b,"icon"));yc(a,"hid");xc(Zc("player"),"off-screen-trigger")}}; g.Cd=function(){return this.A||ci(this)};g.Bd=function(){return this.Kb};function ci(a){return(a=ai(a))?"div"==a.tagName.toLowerCase()?"html5":"flash":null}function di(a){Jh("dcp");a.cancel();Uh(a);a.A=null;a.f&&(a.f.loaded=!1);var b=ai(a);"html5"==ci(a)?a.Ib=b:b&&b.destroy&&b.destroy();ed(a.J);xd(a.Ka);a.Ka.length=0;a.B=null;a.K=null}g.cancel=function(){if(this.P){var a=this.P;this.f.assets.js&&a&&(a=""+ka(a),(a=pc[a])&&gc(a))}H(this.lc);this.pa=!1}; g.G=function(){di(this);this.jb=null;for(var a in this.l)m[this.l[a]]=null;this.h=null;delete this.J;delete this.o;this.f&&(this.Jb=this.f=this.f.fallback=null);Th.I.G.call(this)};var gi={},hi="player_uid_"+(1E9*Math.random()>>>0);function ii(a,b){a=u(a)?$c(a):a;b=Wf(b);var c=hi+"_"+ka(a),d=gi[c];if(d)return d.gc(b),d.h;d=new Th(a,c);gi[c]=d;J("player-added",d.h);Pb(d,qa(ji,d));G(function(){d.gc(b)},0);return d.h}function ki(){for(var a in gi){var b=gi[a];b&&b.cancel()}}function li(a){if(a=Zc(a))a=hi+"_"+ka(a),(a=gi[a])&&a.dispose()}function ji(a){gi[a.V]=null}function mi(a){a=Zc(a);if(!a)return null;var b=hi+"_"+ka(a),c=gi[b];c||(c=new Th(a,b),gi[b]=c);return c.h};var ni=r("yt.abuse.botguardInitialized")||tc;q("yt.abuse.botguardInitialized",ni,void 0);var oi=r("yt.abuse.invokeBotguard")||uc;q("yt.abuse.invokeBotguard",oi,void 0);var pi=r("yt.abuse.dclkstatus.checkDclkStatus")||yd;q("yt.abuse.dclkstatus.checkDclkStatus",pi,void 0);var qi=r("yt.player.exports.navigate")||$d;q("yt.player.exports.navigate",qi,void 0);var ri=r("yt.player.embed")||ii;q("yt.player.embed",ri,void 0);var si=r("yt.player.destroy")||li;q("yt.player.destroy",si,void 0); var ti=r("yt.player.cancelAll")||ki;q("yt.player.cancelAll",ti,void 0);var ui=r("yt.player.getPlayerByElement")||mi;q("yt.player.getPlayerByElement",ui,void 0);var vi=r("yt.player.exports.feedbackStart")||Qf;q("yt.player.exports.feedbackStart",vi,void 0);var wi=r("yt.player.exports.feedbackShowArticle")||Rf;q("yt.player.exports.feedbackShowArticle",wi,void 0);var xi=r("yt.util.activity.init")||zd;q("yt.util.activity.init",xi,void 0);var yi=r("yt.util.activity.getTimeSinceActive")||Bd; q("yt.util.activity.getTimeSinceActive",yi,void 0);var zi=r("yt.util.activity.setTimestamp")||Ad;q("yt.util.activity.setTimestamp",zi,void 0);var Ai={},Bi="ontouchstart"in document;function Ci(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return od(c,function(a){return wc(a,b)},!0,d)} function Di(a){var b="mouseover"==a.type&&"mouseenter"in Ai||"mouseout"==a.type&&"mouseleave"in Ai,c=a.type in Ai||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=Ai[b],d;for(d in c.fa){var e=Ci(b,d,a.target);e&&!od(a.relatedTarget,function(a){return a==e},!0)&&c.D(d,e,b,a)}}if(b=Ai[a.type])for(d in b.fa)(e=Ci(a.type,d,a.target))&&b.D(d,e,a.type,a)}}M(document,"blur",Di,!0);M(document,"change",Di,!0);M(document,"click",Di);M(document,"focus",Di,!0); M(document,"mouseover",Di);M(document,"mouseout",Di);M(document,"mousedown",Di);M(document,"keydown",Di);M(document,"keyup",Di);M(document,"keypress",Di);M(document,"cut",Di);M(document,"paste",Di);Bi&&(M(document,"touchstart",Di),M(document,"touchend",Di),M(document,"touchcancel",Di));function Ei(){this.h={};this.Mc=[];this.j=[]}function Fi(a,b){return"yt-uix"+(a.pb?"-"+a.pb:"")+(b?"-"+b:"")}Ei.prototype.init=t;Ei.prototype.dispose=t;function Gi(a,b,c){a.j.push(Dh(b,c,a))}function Hi(a,b,c){var d=Fi(a,void 0),e=v(c,a);b in Ai||(Ai[b]=new E);Ai[b].subscribe(d,e);a.h[c]=e}function Ii(a,b){Mb(a,"tooltip-text",b)}Ei.prototype.removeData=function(a,b){a&&(a.dataset?delete a.dataset[Nb(b)]:a.removeAttribute("data-"+b))};function Ji(){Ei.call(this)}x(Ji,Ei);ca(Ji);Ji.prototype.pb="sessionlink";Ji.prototype.register=function(){Hi(this,"mousedown",this.f);Hi(this,"click",this.f)};Ji.prototype.f=function(a){var b;if(b=B(a,"sessionlink-target")||a.href||""){var c;c=B(a,"sessionlink")||"";c=Ud(c);(a=parseInt(B(a,"sessionlink-lifetime")||"",10))?Yd(b,c,a):Yd(b,c)}};function Ki(a){O.call(this,1,arguments);this.f=a}x(Ki,O);function Li(a){O.call(this,1,arguments);this.f=a}x(Li,O);function Mi(a,b){O.call(this,1,arguments);this.f=a;this.isEnabled=b}x(Mi,O);function Ni(a,b,c,d,e){O.call(this,2,arguments);this.h=a;this.f=b;this.l=c||null;this.j=d||null;this.source=e||null}x(Ni,O);function Oi(a,b,c){O.call(this,1,arguments);this.f=a;this.subscriptionId=b}x(Oi,O); function Pi(a,b,c,d,e,f,h){O.call(this,1,arguments);this.h=a;this.subscriptionId=b;this.f=c;this.o=d||null;this.l=e||null;this.j=f||null;this.source=h||null}x(Pi,O); var Qi=new P("subscription-batch-subscribe",Ki),Ri=new P("subscription-batch-unsubscribe",Ki),Si=new P("subscription-pref-email",Mi),Ti=new P("subscription-subscribe",Ni),Ui=new P("subscription-subscribe-loading",Li),Vi=new P("subscription-subscribe-loaded",Li),Wi=new P("subscription-subscribe-success",Oi),Xi=new P("subscription-subscribe-external",Ni),Yi=new P("subscription-unsubscribe",Pi),Zi=new P("subscription-unsubscirbe-loading",Li),$i=new P("subscription-unsubscribe-loaded",Li),aj=new P("subscription-unsubscribe-success", Li),bj=new P("subscription-external-unsubscribe",Pi),cj=new P("subscription-enable-ypc",Li),dj=new P("subscription-disable-ypc",Li);function ej(a,b,c){var d=document.location.protocol+"//"+document.domain+"/post_login";b&&(d=Md(d,"mode",b));b=Md("/signin?context=popup","next",d);c&&(b=Md(b,"feature",c));if(c=window.open(b,"loginPopup","width=375,height=440,resizable=yes,scrollbars=yes",!0))b=I("LOGGED_IN",function(b){gc(F("LOGGED_IN_PUBSUB_KEY"));Ub("LOGGED_IN",!0);a(b)}),Ub("LOGGED_IN_PUBSUB_KEY",b),c.moveTo((screen.width-375)/2,(screen.height-440)/2)}q("yt.pubsub.publish",J,void 0);function fj(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function gj(a){return eval("("+a+")")}function S(a){return hj(new ij(void 0),a)}function ij(a){this.f=a} function hj(a,b){var c=[];jj(a,b,c);return c.join("")} function jj(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(ea(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;fa.status)e=tj(c,a,b.ef);if(d)a:{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||m;d?b.ea&&b.ea.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.Yb&&b.Yb.call(f,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.zb&&0w()-this.vb)){var b=parseInt(B(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),H(b));var b=v(function(){zj(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(B(a,"tooltip-show-delay"),10)||0,b=G(b,c);Mb(a,"tooltip-show-timer",b.toString());a.title&&(Ii(a,Aj(a)),a.title="");b=ka(a).toString();this.f[b]=a}}; g.xb=function(a){var b=parseInt(B(a,"tooltip-show-timer"),10);b&&(H(b),this.removeData(a,"tooltip-show-timer"));b=v(function(){if(a){var b=Zc(Bj(this,a));b&&(Cj(b),b&&b.parentNode&&b.parentNode.removeChild(b),this.removeData(a,"content-id"));(b=Zc(Bj(this,a,"arialabel")))&&b.parentNode&&b.parentNode.removeChild(b)}this.removeData(a,"tooltip-hide-timer")},this);b=G(b,50);Mb(a,"tooltip-hide-timer",b.toString());if(b=B(a,"tooltip-text"))a.title=b;b=ka(a).toString();delete this.f[b]}; g.yd=function(a){this.vb=0;this.yc(a)};g.pd=function(a){this.vb=0;this.xb(a)};g.Fe=function(){};g.Uc=function(){};function Dj(a,b){Ii(a,b);var c=B(a,"content-id");(c=Zc(c))&&hd(c,b)}function Aj(a){return B(a,"tooltip-text")||a.title} function zj(a,b){if(b){var c=Aj(b);if(c){var d=Zc(Bj(a,b));if(!d){d=document.createElement("div");d.id=Bj(a,b);d.className=Fi(a,"tip");var e=document.createElement("div");e.className=Fi(a,"tip-body");var f=document.createElement("div");f.className=Fi(a,"tip-arrow");var h=document.createElement("div");h.setAttribute("aria-hidden","true");h.className=Fi(a,"tip-content");var k=Ej(a,b),l=Bj(a,b,"content");h.id=l;Mb(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(f); var l=kd(b),p=Bj(a,b,"arialabel"),f=document.createElement("div");xc(f,Fi(a,"arialabel"));f.id=p;"rtl"==document.body.getAttribute("dir")?hd(f,c+" "+l):hd(f,l+" "+c);b.setAttribute("aria-labelledby",p);l=sd()||document.body;l.appendChild(f);l.appendChild(d);Dj(b,c);(c=parseInt(B(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",xc(h,Fi(a,"normal-wrap")));h=wc(b,Fi(a,"reverse"));Fj(a,b,d,e,k,h)||Fj(a,b,d,e,k,!h);var C=Fi(a,"tip-visible");G(function(){xc(d,C)},0)}}}} function Fj(a,b,c,d,e,f){zc(c,Fi(a,"tip-reverse"),f);var h=0;f&&(h=1);a=Ef(b);f=new Ac((a.width-10)/2,f?a.height:0);var k=Yc(b),l=new Ac(0,0),p;p=k?Yc(k):document;var C;(C=!L||9<=Uc)||(C=Wc(p),C=dd(C.f));b!=(C?p.documentElement:p.body)&&(p=Cf(b),k=Wc(k),k=cd(k.f),l.x=p.left+k.x,l.y=p.top+k.y);f=new Ac(l.x+f.x,l.y+f.y);f=f.clone();l=(h&4&&"rtl"==Bf(c,"direction")?h^2:h)&-5;h=Ef(c);k=h.clone();p=f.clone();k=k.clone();0!=l&&(l&2&&(p.x-=k.width+0),l&1&&(p.y-=k.height+0));f=new zf(0,0,0,0);f.left=p.x; f.top=p.y;f.width=k.width;f.height=k.height;k=new Ac(f.left,f.top);k instanceof Ac?(l=k.x,k=k.y):(l=k,k=void 0);c.style.left=Df(l,!1);c.style.top=Df(k,!1);k=new Bc(f.width,f.height);if(!(h==k||h&&k&&h.width==k.width&&h.height==k.height))if(h=k,f=Yc(c),f=Wc(f),l=dd(f.f),!L||Sc("10")||l&&Sc("8"))f=c.style,Kc?f.MozBoxSizing="border-box":Lc?f.WebkitBoxSizing="border-box":f.boxSizing="border-box",f.width=Math.max(h.width,0)+"px",f.height=Math.max(h.height,0)+"px";else if(f=c.style,l){L?(l=Hf(c,"paddingLeft"), k=Hf(c,"paddingRight"),p=Hf(c,"paddingTop"),C=Hf(c,"paddingBottom"),l=new yf(p,k,C,l)):(l=Af(c,"paddingLeft"),k=Af(c,"paddingRight"),p=Af(c,"paddingTop"),C=Af(c,"paddingBottom"),l=new yf(parseFloat(p),parseFloat(k),parseFloat(C),parseFloat(l)));if(!L||9<=Uc)k=Af(c,"borderLeftWidth"),p=Af(c,"borderRightWidth"),C=Af(c,"borderTopWidth"),aa=Af(c,"borderBottomWidth"),k=new yf(parseFloat(C),parseFloat(p),parseFloat(aa),parseFloat(k));else{k=Jf(c,"borderLeft");p=Jf(c,"borderRight");C=Jf(c,"borderTop");var aa= Jf(c,"borderBottom"),k=new yf(C,p,aa,k)}f.pixelWidth=h.width-k.left-l.left-l.right-k.right;f.pixelHeight=h.height-k.top-l.top-l.bottom-k.bottom}else f.pixelWidth=h.width,f.pixelHeight=h.height;h=window.document;h=dd(h)?h.documentElement:h.body;h=new Bc(h.clientWidth,h.clientHeight);1==c.nodeType?(c=Cf(c),k=new Ac(c.left,c.top)):(f=ha(c.h),l=c,c.targetTouches&&c.targetTouches.length?l=c.targetTouches[0]:f&&c.f.targetTouches&&c.f.targetTouches.length&&(l=c.f.targetTouches[0]),k=new Ac(l.clientX,l.clientY)); c=Ef(d);p=Math.floor(c.width/2);f=!!(h.height=c.length)throw be;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!u(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};g.clear=function(){this.f.clear()};g.key=function(a){return this.f.key(a)};function Rj(){var a=null;try{a=window.localStorage||null}catch(b){}this.f=a}x(Rj,Qj);function Sj(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.f=a}x(Sj,Qj);function Tj(a){this.f=a}Tj.prototype.h=function(a,b){n(b)?this.f.Dd(a,S(b)):this.f.remove(a)};Tj.prototype.get=function(a){var b;try{b=this.f.get(a)}catch(c){return}if(null!==b)try{return fj(b)}catch(d){throw"Storage: Invalid value was encountered";}};Tj.prototype.remove=function(a){this.f.remove(a)};function Uj(a){this.f=a}x(Uj,Tj);function Vj(a){this.data=a}function Wj(a){return!n(a)||a instanceof Vj?a:new Vj(a)}Uj.prototype.h=function(a,b){Uj.I.h.call(this,a,Wj(b))};Uj.prototype.j=function(a){a=Uj.I.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Uj.prototype.get=function(a){if(a=this.j(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function Xj(a){this.f=a}x(Xj,Uj);function Yj(a){var b=a.creation;a=a.expiration;return!!a&&aw()}Xj.prototype.h=function(a,b,c){if(b=Wj(b)){if(c){if(cIa(a,"10.0")&&(this.h=!1))}function Sk(a,b,c,d){var e=a.f;if(n(d)?d:a.h)e="https://"+a.j+a.port+a.f;return Nd(e+b,c||{})} function Tk(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,ea:qa(a.o,d,!0),onError:qa(a.l,e),zb:qa(a.A,e)};c&&(a.S=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return sj(b,a)}Rk.prototype.o=function(a,b,c,d){b?a(d):a({text:c.responseText})};Rk.prototype.l=function(a,b){a(Error("Request error: "+b.status))};Rk.prototype.A=function(a){a(Error("request timed out"))};function Uk(a){a&&(this.id=a.id||"",this.name=a.name||"",this.f=a.activityId||"",this.status=a.status||"UNKNOWN")}Uk.prototype.id="";Uk.prototype.name="";Uk.prototype.f="";Uk.prototype.status="UNKNOWN";function Vk(a){return{id:a.id,name:a.name,activityId:a.f,status:a.status}}Uk.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.f+",status:"+this.status+"}"};function Wk(a){a=a||[];return"["+A(a,function(a){return a?a.toString():"null"}).join(",")+"]"};function Xk(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})}function Yk(a,b){return Qa(a,function(a){return a.key==b})}function Zk(a){return A(a,function(a){return{key:a.id,name:a.name}})}function $k(a){return A(a,function(a){return Vk(a)})}function al(a){return A(a,function(a){return new Uk(a)})}function bl(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0} function cl(a,b){return Qa(a,function(a){return a.id==b})}function dl(a,b){return Qa(a,function(a){return Jk(a,b)})}function el(a,b){return Qa(a,function(a){return Ik(a,b)})};function V(){D.call(this);this.l=new E;Pb(this,qa(Qb,this.l))}x(V,D);V.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.l.subscribe(a,b,c)};V.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.l.unsubscribe(a,b,c)};V.prototype.oa=function(a){return this.isDisposed()?!1:this.l.oa(a)};V.prototype.D=function(a,b){return this.isDisposed()?!1:this.l.D.apply(this.l,arguments)};function fl(a){V.call(this);this.B=a;this.screens=[]}x(fl,V);g=fl.prototype;g.Z=function(){return this.screens};g.contains=function(a){return!!dl(this.screens,a)};g.get=function(a){return a?el(this.screens,a):null};function gl(a,b){var c=a.get(b.uuid)||a.get(b.id);if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.uuid=b.uuid||c.uuid;return c.name!=d}a.screens.push(b);return!0} function hl(a,b){var c=a.screens.length!=b.length;a.screens=Na(a.screens,function(a){return!!dl(b,a)});for(var d=0,e=b.length;d=kl.length?this.D("pairingFailed",Error("DIAL polling timed out")):(a=kl[this.j],this.h=G(v(this.Lc,this),a),this.j++):this.D("pairingFailed",Error("Server error "+a.status))};g.Ne=function(){this.f=null;this.D("pairingFailed",Error("Server not responding"))};function ll(a){a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.avatar=a.userAvatarUri||"",this.theme=a.theme||"u",this.capabilities=new qe(Na((a.capabilities||"").split(","),qa(jb,Qk))))}ll.prototype.id="";ll.prototype.name="";g=ll.prototype;g.app="";g.type="REMOTE_CONTROL";g.avatar="";g.theme="u";g.equals=function(a){return a?this.id==a.id:!1};var ml;function nl(){var a=ol(),b=pl();Sa(a,b);if(ql()){var c=a,d;d=0;for(var e=c.length,f;d>1,k;k=eb(b,c[h]);0d&&ab(c,-(d+1),0,b)}a=rl(a);if(0==a.length)try{a="remote_sid",Sd.remove(""+a,"/","youtube.com")}catch(l){}else try{Td("remote_sid",a.join(","),-1)}catch(p){}}function ol(){var a=U("yt-remote-connected-devices")||[];a.sort(eb);return a} function rl(a){if(0==a.length)return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return A(a,function(a,b){return 0==b?a:a.substring(c.length)})}function sl(a){T("yt-remote-connected-devices",a,86400)}function pl(){if(tl)return tl;var a=U("yt-remote-device-id");a||(a=Xk(),T("yt-remote-device-id",a,31536E3));for(var b=ol(),c=1,d=a;Sa(b,d);)c++,d=a+"#"+c;return tl=d}function ul(){return U("yt-remote-session-browser-channel")}function ql(){return U("yt-remote-session-screen-id")} function vl(a){5 "+b);if(this.f){var c=this.f.j;if(!a||c&&c.id!=a)lm("Unsetting old screen status: "+this.f.h.friendlyName),Qb(this.f),this.f=null}if(a&&b){if(!this.f){c=el(this.h.Z(),a);if(!c){lm("setConnectedScreenStatus: Unknown screen.");return}var d=mm(this,c);d||(lm("setConnectedScreenStatus: Connected receiver not custom..."),d=new chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=chrome.cast.ReceiverType.CUSTOM,this.j.push(d),chrome.cast.setCustomReceivers(this.j, t,v(function(a){this.M("Failed to set initial custom receivers: "+S(a))},this)));lm("setConnectedScreenStatus: new active receiver: "+d.friendlyName);nm(this,new gm(this.h,d),!0)}this.f.cc(b)}else lm("setConnectedScreenStatus: no screen.")};function mm(a,b){return b?Qa(a.j,function(a){return Ik(b,a.label)},a):null}g.Ce=function(a){this.isDisposed()?this.M("Setting connection data on disposed cast v2"):this.f?this.f.Pa(a):this.M("Setting connection data without a session")}; g.stopSession=function(){this.isDisposed()?this.M("Stopping session on disposed cast v2"):this.f?(this.f.stop(),Qb(this.f),this.f=null):lm("Stopping non-existing session")};g.requestSession=function(){chrome.cast.requestSession(v(this.Fc,this),v(this.fe,this))};g.G=function(){this.h.unsubscribe("onlineScreenChange",v(this.Yc,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.o);Dk(im);Qb(this.f);hm.I.G.call(this)};function lm(a){Ek("Controller",a)} g.M=function(a){Ek("Controller",a)};function im(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)}function km(a){return a.A||!!a.j.length||!!a.f}function nm(a,b,c){Qb(a.f);(a.f=b)?(c?a.D("yt-remote-cast2-receiver-resumed",b.h):a.D("yt-remote-cast2-receiver-selected",b.h),b.subscribe("sessionScreen",v(a.Gc,a,b)),b.j?a.D("yt-remote-cast2-session-change",b.j):c&&a.f.Pa(null)):a.D("yt-remote-cast2-session-change",null)} g.Gc=function(a,b){this.f==a&&(b||nm(this,null),this.D("yt-remote-cast2-session-change",b))}; g.be=function(a,b){if(!this.isDisposed())if(a)switch(lm("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.f)if(this.f.h.label!=a.label)lm("onReceiverAction_: Stopping active receiver: "+this.f.h.friendlyName),this.f.stop();else{lm("onReceiverAction_: Casting to active receiver.");this.f.j&&this.D("yt-remote-cast2-session-change",this.f.j);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:nm(this,new gm(this.h,a));break;case chrome.cast.ReceiverType.DIAL:nm(this, new dm(this.h,a));break;case chrome.cast.ReceiverType.CAST:nm(this,new $l(this.h,a));break;default:this.M("Unknown receiver type: "+a.receiverType);return}break;case chrome.cast.ReceiverAction.STOP:this.f&&this.f.h.label==a.label?this.f.stop():this.M("Stopping receiver w/o session: "+a.friendlyName)}else this.M("onReceiverAction_ called without receiver.")}; g.Rd=function(a){if(this.isDisposed())return Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.M("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.f?this.f.h:null;if(!c||c.label!=b.label)return this.M("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=chrome.cast.ReceiverType.DIAL){if(this.f.j)return lm("Reselecting dial screen."), this.D("yt-remote-cast2-session-change",this.f.j),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.M('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);nm(this,new dm(this.h,b))}b=this.f;b.J=a;return b.J.appState==chrome.cast.DialAppState.RUNNING?new Promise(v(b.Id,b,(b.J.extraData||{}).screenId||null)):new Promise(v(b.Wb,b))}; g.Fc=function(a){if(!this.isDisposed()){lm("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.f)if(b.receiverType==chrome.cast.ReceiverType.CAST)lm("Got resumed cast session before resumed mdx connection."),nm(this,new $l(this.h,b),!0);else{this.M("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.f.h,d=el(this.h.Z(),c.label);d&&Ik(d,b.label)&&c.receiverType!=chrome.cast.ReceiverType.CAST&&b.receiverType== chrome.cast.ReceiverType.CAST&&(lm("onSessionEstablished_: manual to cast session change "+b.friendlyName),Qb(this.f),this.f=new $l(this.h,b),this.f.subscribe("sessionScreen",v(this.Gc,this,this.f)),this.f.Pa(null));this.f.bc(a)}}};g.Re=function(){return this.f?this.f.Zc():null};g.fe=function(a){this.isDisposed()||(this.M("Failed to estabilish a session: "+S(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&nm(this,null))}; g.ce=function(a){lm("Receiver availability updated: "+a);if(!this.isDisposed()){var b=km(this);this.A=a==chrome.cast.ReceiverAvailability.AVAILABLE;km(this)!=b&&this.D("yt-remote-cast2-availability-change",km(this))}}; function jm(a){var b=a.h.Wc(),c=a.f&&a.f.h;a=A(b,function(a){c&&Ik(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,f=mm(this,a);f?(f.label=b,f.friendlyName=a.name):(f=new chrome.cast.Receiver(b,a.name),f.receiverType=chrome.cast.ReceiverType.CUSTOM);return f},a);c&&(c.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(c=new chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=chrome.cast.ReceiverType.CUSTOM),a.push(c));return a} g.Yc=function(){if(!this.isDisposed()){var a=km(this);this.j=jm(this);lm("Updating custom receivers: "+S(this.j));chrome.cast.setCustomReceivers(this.j,t,v(function(){this.M("Failed to set custom receivers.")},this));var b=km(this);b!=a&&this.D("yt-remote-cast2-availability-change",b)}};hm.prototype.setLaunchParams=hm.prototype.Ce;hm.prototype.setConnectedScreenStatus=hm.prototype.Be;hm.prototype.stopSession=hm.prototype.stopSession;hm.prototype.getCastSession=hm.prototype.Re; hm.prototype.requestSession=hm.prototype.requestSession;hm.prototype.init=hm.prototype.init;hm.prototype.dispose=hm.prototype.dispose;function om(a,b,c){pm()?rm(a)&&(sm(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?tm(b):(window.__onGCastApiAvailable=function(a,c){a?tm(b):(um("Failed to load cast API: "+c),vm(!1),sm(!1),fk("yt-remote-cast-available"),fk("yt-remote-cast-receiver"),wm(),b(!1))},c?kc("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):uk())):qm("Cannot initialize because not running Chrome")} function wm(){qm("dispose");var a=xm();a&&a.dispose();ym=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);zm(!1);gc(Am);Am.length=0}function Bm(){return!!U("yt-remote-cast-installed")}function Cm(){var a=U("yt-remote-cast-receiver");return a?Ca(a.friendlyName):null}function Dm(){qm("clearCurrentReciever");fk("yt-remote-cast-receiver")} function Em(){Bm()?xm()?Fm()?(qm("Requesting cast selector."),ym.requestSession()):(qm("Wait for cast API to be ready to request the session."),Am.push(I("yt-remote-cast2-api-ready",Em))):um("requestCastSelector: Cast is not initialized."):um("requestCastSelector: Cast API is not installed!")}function Gm(a){Fm()?xm().setLaunchParams(a):um("setLaunchParams called before ready.")}function Hm(a,b){Fm()?xm().setConnectedScreenStatus(a,b):um("setConnectedScreenStatus called before ready.")}var ym=null; function pm(){var a;a=0<=Cc.search(/\ (CrMo|Chrome|CriOS)\//);return rf||a}function Im(a){ym.init(!0,a)} function rm(a){var b=!1;if(!ym){var c=r("yt.mdx.remote.cloudview.instance_");c||(c=new hm(a),c.subscribe("yt-remote-cast2-availability-change",function(a){T("yt-remote-cast-available",a);J("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){qm("onReceiverSelected: "+a.friendlyName);T("yt-remote-cast-receiver",a);J("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){qm("onReceiverResumed: "+a.friendlyName); T("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){qm("onSessionChange: "+Ok(a));a||fk("yt-remote-cast-receiver");J("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);ym=c}qm("cloudview.createSingleton_: "+b);return b}function xm(){ym||(ym=r("yt.mdx.remote.cloudview.instance_"));return ym} function tm(a){vm(!0);sm(!1);Im(function(b){b?(zm(!0),J("yt-remote-cast2-api-ready")):(um("Failed to initialize cast API."),vm(!1),fk("yt-remote-cast-available"),fk("yt-remote-cast-receiver"),wm());a(b)})}function qm(a){Ek("cloudview",a)}function um(a){Ek("cloudview",a)}function vm(a){qm("setCastInstalled_ "+a);T("yt-remote-cast-installed",a)}function Fm(){return!!r("yt.mdx.remote.cloudview.apiReady_")}function zm(a){qm("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)} function sm(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)}var Am=[];function Jm(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Km(a){Ek("CAST",a)}function Lm(a){var b=Mm();b&&b.logMessage&&b.logMessage(a)}function Nm(a){if(a.event.source==window&&a.event.data&&"CastApi"==a.event.data.source&&"Hello"==a.event.data.event)for(;Om.length;)Om.shift()()} function Pm(){if(!r("yt.mdx.remote.castv2_")&&!Qm&&(0==Ua.length&&$a(Ua,Cl()),Jm())){var a=Mm();a?(a.removeReceiverListener("YouTube",Rm),a.addReceiverListener("YouTube",Rm),Km("API initialized in the other binary")):(a=new cast.Api,Sm(a),a.addReceiverListener("YouTube",Rm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){G(function(){window.location.reload(!0)},1E3)}),Ak(Lm),Km("API initialized"));Qm=!0}} function Tm(){var a=Mm();a&&(Km("API disposed"),Dk(Lm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(t),a.removeReceiverListener("YouTube",Rm),Sm(null));Qm=!1;Om=null;(a=wd(window,"message",Nm,!1))&&xd(a)}function Um(a){var b=Ra(Ua,function(b){return b.id==a.id});0<=b&&(Ua[b]=Vk(a))} function Rm(a){a.length&&Km("Updating receivers: "+S(a));Vm(a);J("yt-remote-cast-device-list-update");z(Wm(),function(a){Xm(a.id)});z(a,function(a){if(a.isTabProjected){var c=Ym(a.id);Km("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");G(function(){J("yt-remote-cast-device-tab-projected",c.id)},1E3)}})} function Zm(a,b){Km("Updating "+a+" activity status: "+S(b));var c=Ym(a);c?(b.activityId&&(c.f=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.f=""),Um(c),J("yt-remote-cast-device-status-update",c)):Km("Device not found")}function Wm(){Pm();return al(Ua)}function Vm(a){a=A(a,function(a){var c={id:a.id,name:Ca(a.name)};if(a=Ym(a.id))c.activityId=a.f,c.status=a.status;return c});Ta();$a(Ua,a)} function Ym(a){var b=Wm();return Qa(b,function(b){return b.id==a})||null}function Xm(a){var b=Ym(a),c=Mm();c&&b&&b.f&&c.getActivityStatus(b.f,function(b){"error"==b.status&&(b.status="stopped");Zm(a,b)})}function $m(a){Pm();var b=Ym(a),c=Mm();c&&b&&b.f?(Km("Stopping cast activity"),c.stopActivity(b.f,qa(Zm,a))):Km("Dropping cast activity stop")}function Mm(){return r("yt.mdx.remote.castapi.api_")}function Sm(a){q("yt.mdx.remote.castapi.api_",a,void 0)} var Qm=!1,Om=null,Ua=r("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",Ua,void 0);function an(a,b){this.action=a;this.params=b||null};function bn(){this.f=w()}new bn;bn.prototype.reset=function(){this.f=w()};bn.prototype.get=function(){return this.f};function cn(){D.call(this);this.xa=new fg(this);this.Ka=this;this.ha=null}x(cn,D);cn.prototype[bg]=!0;g=cn.prototype;g.addEventListener=function(a,b,c,d){mg(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){sg(this,a,b,c,d)}; function dn(a,b){var c,d=a.ha;if(d){c=[];for(var e=1;d;d=d.ha)c.push(d),++e}var d=a.Ka,e=b,f=e.type||e;if(u(e))e=new $f(e,d);else if(e instanceof $f)e.target=e.target||d;else{var h=e,e=new $f(f,d);vb(e,h)}var h=!0,k;if(c)for(var l=c.length-1;0<=l;l--)k=e.currentTarget=c[l],h=en(k,f,!0,e)&&h;k=e.currentTarget=d;h=en(k,f,!0,e)&&h;h=en(k,f,!1,e)&&h;if(c)for(l=0;lb)break a}else if(3>b||3==b&&!Ic&&!Cn(this.N))break a;this.Da||4!=b||7==c||(8==c||0>=d?this.f.la(3):this.f.la(2));Dn(this);var e=this.N.getStatus();this.$a=e;var f=Cn(this.N);(this.ma=200==e)?(4==b&&En(this),this.A?(Fn(this,b,f),Ic&&this.ma&&3==b&&(this.l.wb(this.h,"tick",this.pe),this.h.start())):Gn(this,f),this.ma&&!this.Da&&(4==b?this.f.yb(this):(this.ma=!1,An(this)))):(this.Ha= 400==e&&0b.length)return wn;var e=b.substr(d,c);a.eb=d+c;return e} function Jn(a,b){a.bb=w();An(a);var c=b?window.location.hostname:"";a.za=a.va.clone();N(a.za,"DOMAIN",c);N(a.za,"t",a.B);try{a.na=new ActiveXObject("htmlfile")}catch(d){En(a);a.Ha=7;X();Hn(a);return}var e="";if(b){for(var f="",h=0;h"==k)f=f+"\\x3e";else{if(k in Ha)k=Ha[k];else if(k in Ga)k=Ha[k]=Ga[k];else{var l=k,p=k.charCodeAt(0);if(31p)l=k;else{if(256>p){if(l="\\x",16>p||256p&&(l+="0"); l+=p.toString(16).toUpperCase()}k=Ha[k]=l}f+=k}}e+='