function EMBa(a){throw a;}
var EMBb=void 0,EMBc=!0,EMBd=null,EMBe=!1,EMB,EMBf=this,EMBg=function(a){for(var a=a.split("."),b=EMBf,c;c=a.shift();)if(b[c]!=EMBd)b=b[c];else return EMBd;return b},EMBaa=function(a){a.getInstance=function(){return a.Rw||(a.Rw=new a)}},EMBba=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},EMBca=function(a){return a!==EMBb},EMBh=function(a){return a===EMBd},EMBi=function(a){return"array"==EMBba(a)},EMBda=function(a){var b=EMBba(a);return"array"==
b||"object"==b&&"number"==typeof a.length},EMBj=function(a){return"string"==typeof a},EMBea=function(a){return"function"==EMBba(a)},EMBfa=function(a){a=EMBba(a);return"object"==a||"array"==a||"function"==a},EMBia=function(a){return a[EMBga]||(a[EMBga]=++EMBha)},EMBga="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),EMBha=0,EMBja=function(a,b,c){return a.call.apply(a.bind,arguments)},EMBka=function(a,b,c){a||EMBa(Error());if(2<arguments.length){var d=Array.prototype.slice.call(arguments,
2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},EMBk=function(a,b,c){EMBk=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?EMBja:EMBka;return EMBk.apply(EMBd,arguments)},EMBla=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}},
EMBl=function(a,b){for(var c in b)a[c]=b[c]},EMBm=Date.now||function(){return+new Date},EMBn=function(a,b){var c=a.split("."),d=EMBf;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&EMBca(b)?d[e]=b:d=d[e]?d[e]:d[e]={}},EMBo=function(a,b){function c(){}c.prototype=b.prototype;a.k=b.prototype;a.prototype=new c;a.prototype.constructor=a};
Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return EMBk.apply(EMBd,c)}return EMBk(this,a)};var EMBma=function(a){this.stack=Error().stack||"";if(a)this.message=""+a};EMBo(EMBma,Error);EMBma.prototype.name="CustomError";var EMBna=function(a,b){for(var c=1;c<arguments.length;c++)var d=(""+arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a},EMBoa=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},EMBpa=/^[a-zA-Z0-9\-_.!~*'()]*$/,EMBqa=function(a){a=""+a;return!EMBpa.test(a)?encodeURIComponent(a):a},EMBwa=function(a){if(!EMBra.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(EMBsa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(EMBta,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(EMBua,"&gt;"));-1!=a.indexOf('"')&&
(a=a.replace(EMBva,"&quot;"));return a},EMBsa=/&/g,EMBta=/</g,EMBua=/>/g,EMBva=/\"/g,EMBra=/[&<>\"]/,EMBxa=function(a){50<a.length&&(a=a.substring(0,47)+"...");return a},EMBya=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b},EMBza=function(a){var b=Number(a);return 0==b&&/^[\s\xa0]*$/.test(a)?NaN:b},EMBAa={},EMBBa=function(a){return EMBAa[a]||(EMBAa[a]=(""+a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var EMBCa=function(a,b){b.unshift(a);EMBma.call(this,EMBna.apply(EMBd,b));b.shift();this.Fy=a};EMBo(EMBCa,EMBma);EMBCa.prototype.name="AssertionError";
var EMBDa=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);EMBa(new EMBCa(""+e,f||[]))},EMBEa=function(a,b,c){!a&&EMBDa("",EMBd,b,Array.prototype.slice.call(arguments,2))},EMBFa=function(a,b){EMBa(new EMBCa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))},EMBGa=function(a,b,c){!EMBj(a)&&EMBDa("Expected string but got %s: %s.",[EMBba(a),a],b,Array.prototype.slice.call(arguments,2));return a};var EMBp=Array.prototype,EMBHa=EMBp.indexOf?function(a,b,c){EMBEa(a.length!=EMBd);return EMBp.indexOf.call(a,b,c)}:function(a,b,c){c=c==EMBd?0:0>c?Math.max(0,a.length+c):c;if(EMBj(a))return!EMBj(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},EMBq=EMBp.forEach?function(a,b,c){EMBEa(a.length!=EMBd);EMBp.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=EMBj(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},EMBIa=EMBp.filter?function(a,b,c){EMBEa(a.length!=
EMBd);return EMBp.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=EMBj(a)?a.split(""):a,h=0;h<d;h++)if(h in g){var i=g[h];b.call(c,i,h,a)&&(e[f++]=i)}return e},EMBJa=EMBp.map?function(a,b,c){EMBEa(a.length!=EMBd);return EMBp.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=EMBj(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},EMBKa=EMBp.some?function(a,b,c){EMBEa(a.length!=EMBd);return EMBp.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,
e=EMBj(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return EMBc;return EMBe},EMBLa=function(a,b){var c;a:{c=a.length;for(var d=EMBj(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(EMBb,d[e],e,a)){c=e;break a}c=-1}return 0>c?EMBd:EMBj(a)?a.charAt(c):a[c]},EMBMa=function(a,b){var c=EMBHa(a,b);0<=c&&(EMBEa(a.length!=EMBd),EMBp.splice.call(a,c,1))},EMBNa=function(a){return EMBp.concat.apply(EMBp,arguments)},EMBOa=function(a){if(EMBi(a))return EMBNa(a);for(var b=[],c=0,d=a.length;c<d;c++)b[c]=
a[c];return b},EMBPa=function(a){return EMBi(a)?EMBNa(a):EMBOa(a)},EMBQa=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(EMBi(d)||(e=EMBda(d))&&d.hasOwnProperty("callee"))a.push.apply(a,d);else if(e)for(var f=a.length,g=d.length,h=0;h<g;h++)a[f+h]=d[h];else a.push(d)}},EMBSa=function(a,b,c,d){EMBEa(a.length!=EMBd);EMBp.splice.apply(a,EMBRa(arguments,1))},EMBRa=function(a,b,c){EMBEa(a.length!=EMBd);return 2>=arguments.length?EMBp.slice.call(a,b):EMBp.slice.call(a,b,c)},EMBUa=
function(a,b){EMBEa(a.length!=EMBd);EMBp.sort.call(a,b||EMBTa)},EMBTa=function(a,b){return a>b?1:a<b?-1:0};var EMBr=function(a,b){this.x=EMBca(a)?a:0;this.y=EMBca(b)?b:0};EMBr.prototype.da=function(){return new EMBr(this.x,this.y)};EMBr.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var EMBVa=function(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)},EMBWa=function(a,b){return new EMBr(a.x-b.x,a.y-b.y)};var EMBs=function(a,b){this.width=a;this.height=b},EMBXa=function(a,b){return a==b?EMBc:!a||!b?EMBe:a.width==b.width&&a.height==b.height};EMB=EMBs.prototype;EMB.da=function(){return new EMBs(this.width,this.height)};EMB.toString=function(){return"("+this.width+" x "+this.height+")"};EMB.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};EMB.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
EMB.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};EMB.scale=function(a){this.width*=a;this.height*=a;return this};var EMBYa=function(a,b){for(var c in a)b.call(EMBb,a[c],c,a)},EMBZa=function(a){for(var b in a)return a[b]},EMB_a=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},EMB0a=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},EMB1a=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d},EMB2a=function(a,b){var c=EMB1a(a,b,EMBb);return c&&a[c]},EMB3a=function(a){var b={},c;for(c in a)b[c]=a[c];return b},EMB4a="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),
EMB5a=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<EMB4a.length;f++)c=EMB4a[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var EMB6a,EMB7a,EMB8a,EMB9a,EMB$a,EMBab,EMBbb,EMBcb=function(){return EMBf.navigator?EMBf.navigator.userAgent:EMBd},EMBdb=function(){return EMBf.navigator};EMB$a=EMB9a=EMB8a=EMB7a=EMB6a=EMBe;var EMBeb;if(EMBeb=EMBcb()){var EMBfb=EMBdb();EMB6a=0==EMBeb.indexOf("Opera");EMB7a=!EMB6a&&-1!=EMBeb.indexOf("MSIE");EMB9a=(EMB8a=!EMB6a&&-1!=EMBeb.indexOf("WebKit"))&&-1!=EMBeb.indexOf("Mobile");EMB$a=!EMB6a&&!EMB8a&&"Gecko"==EMBfb.product}
var EMBgb=EMB6a,EMBt=EMB7a,EMBu=EMB$a,EMBv=EMB8a,EMBhb=EMB9a,EMBib=EMBdb(),EMBjb=EMBib&&EMBib.platform||"";EMBab=-1!=EMBjb.indexOf("Mac");EMBbb=-1!=EMBjb.indexOf("Win");var EMBkb=!!EMBdb()&&-1!=(EMBdb().appVersion||"").indexOf("X11"),EMBlb;
a:{var EMBmb="",EMBnb;if(EMBgb&&EMBf.opera)var EMBob=EMBf.opera.version,EMBmb="function"==typeof EMBob?EMBob():EMBob;else if(EMBu?EMBnb=/rv\:([^\);]+)(\)|;)/:EMBt?EMBnb=/MSIE\s+([^\);]+)(\)|;)/:EMBv&&(EMBnb=/WebKit\/(\S+)/),EMBnb)var EMBpb=EMBnb.exec(EMBcb()),EMBmb=EMBpb?EMBpb[1]:"";if(EMBt){var EMBqb,EMBrb=EMBf.document;EMBqb=EMBrb?EMBrb.documentMode:EMBb;if(EMBqb>parseFloat(EMBmb)){EMBlb=""+EMBqb;break a}}EMBlb=EMBmb}
var EMBsb=EMBlb,EMBtb={},EMBw=function(a){var b;if(!(b=EMBtb[a])){b=0;for(var c=EMBoa(""+EMBsb).split("."),d=EMBoa(""+a).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",h=d[f]||"",i=RegExp("(\\d*)(\\D*)","g"),j=RegExp("(\\d*)(\\D*)","g");do{var k=i.exec(g)||["","",""],l=j.exec(h)||["","",""];if(0==k[0].length&&0==l[0].length)break;b=((0==k[1].length?0:parseInt(k[1],10))<(0==l[1].length?0:parseInt(l[1],10))?-1:(0==k[1].length?0:parseInt(k[1],10))>(0==l[1].length?0:parseInt(l[1],
10))?1:0)||((0==k[2].length)<(0==l[2].length)?-1:(0==k[2].length)>(0==l[2].length)?1:0)||(k[2]<l[2]?-1:k[2]>l[2]?1:0)}while(0==b)}b=EMBtb[a]=0<=b}return b},EMBub={},EMBvb=function(a){return EMBub[a]||(EMBub[a]=EMBt&&document.documentMode&&document.documentMode>=a)};var EMBwb,EMBxb=!EMBt||EMBvb(9);!EMBu&&!EMBt||EMBt&&EMBvb(9)||EMBu&&EMBw("1.9.1");var EMByb=EMBt&&!EMBw("9");var EMBzb=function(a){return(a=a.className)&&"function"==typeof a.split?a.split(/\s+/):[]},EMBx=function(a,b){var c=EMBzb(a),d=EMBRa(arguments,1),d=EMBAb(c,d);a.className=c.join(" ");return d},EMBy=function(a,b){var c=EMBzb(a),d=EMBRa(arguments,1);EMBBb(c,d);a.className=c.join(" ")},EMBAb=function(a,b){for(var c=0,d=0;d<b.length;d++)0<=EMBHa(a,b[d])||(a.push(b[d]),c++);return c==b.length},EMBBb=function(a,b){for(var c=0,d=0;d<a.length;d++)0<=EMBHa(b,a[d])&&(EMBSa(a,d--,1),c++)},EMBCb=function(a,b,
c){var d=EMBzb(a);EMBj(b)?EMBMa(d,b):EMBi(b)&&EMBBb(d,b);EMBj(c)&&!(0<=EMBHa(d,c))?d.push(c):EMBi(c)&&EMBAb(d,c);a.className=d.join(" ")},EMBz=function(a,b){return 0<=EMBHa(EMBzb(a),b)},EMBA=function(a,b,c){c?EMBx(a,b):EMBy(a,b)},EMBDb=function(a,b){var c=!EMBz(a,b);EMBA(a,b,c)};var EMBFb=function(a){return a?new EMBEb(EMBB(a)):EMBwb||(EMBwb=new EMBEb)},EMBC=function(a){return EMBj(a)?document.getElementById(a):a},EMBIb=function(a,b){var c=b||document;return EMBGb(c)?c.querySelectorAll("."+a):c.getElementsByClassName?c.getElementsByClassName(a):EMBHb("*",a,b)},EMBD=function(a,b){var c=b||document,d=EMBd;return(d=EMBGb(c)?c.querySelector("."+a):EMBIb(a,b)[0])||EMBd},EMBGb=function(a){return a.querySelectorAll&&a.querySelector&&(!EMBv||EMBJb(document)||EMBw("528"))},EMBHb=
function(a,b,c){c=c||document;a=a&&"*"!=a?a.toUpperCase():"";if(EMBGb(c)&&(a||b))return c.querySelectorAll(a+(b?"."+b:""));if(b&&c.getElementsByClassName){c=c.getElementsByClassName(b);if(a){for(var d={},e=0,f=0,g;g=c[f];f++)a==g.nodeName&&(d[e++]=g);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(f=e=0;g=c[f];f++)a=g.className,"function"==typeof a.split&&0<=EMBHa(a.split(/\s+/),b)&&(d[e++]=g);d.length=e;return d}return c},EMBLb=function(a,b){EMBYa(b,function(b,d){"style"==
d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in EMBKb?a.setAttribute(EMBKb[d],b):0==d.lastIndexOf("aria-",0)?a.setAttribute(d,b):a[d]=b})},EMBKb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"},EMBE=function(a,b,c){return EMBMb(document,arguments)},EMBMb=function(a,b){var c=b[0],d=b[1];if(!EMBxb&&d&&(d.name||d.type)){c=
["<",c];d.name&&c.push(' name="',EMBwa(d.name),'"');if(d.type){c.push(' type="',EMBwa(d.type),'"');var e={};EMB5a(e,d);d=e;delete d.type}c.push(">");c=c.join("")}c=a.createElement(c);if(d)EMBj(d)?c.className=d:EMBi(d)?EMBx.apply(EMBd,[c].concat(d)):EMBLb(c,d);2<b.length&&EMBNb(a,c,b,2);return c},EMBNb=function(a,b,c,d){function e(c){c&&b.appendChild(EMBj(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];EMBda(f)&&!(EMBfa(f)&&0<f.nodeType)?EMBq(EMBOb(f)?EMBOa(f):f,e):e(f)}},EMBJb=function(a){return"CSS1Compat"==
a.compatMode},EMBPb=function(a,b){EMBNb(EMBB(a),a,arguments,1)},EMBQb=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},EMBF=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},EMBRb=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a},EMBB=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},EMBSb=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=
b}else EMBQb(a),a.appendChild(EMBB(a).createTextNode(b))},EMBUb=function(a,b){var c=[];return EMBTb(a,b,c,EMBc)?c[0]:EMBb},EMBTb=function(a,b,c,d){if(a!=EMBd)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d))return EMBc;if(EMBTb(a,b,c,d))return EMBc;a=a.nextSibling}return EMBe},EMBVb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},EMBWb={IMG:" ",BR:"\n"},EMBXb=function(a,b,c){if(!(a.nodeName in EMBVb))if(3==a.nodeType)c?b.push((""+a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in
EMBWb)b.push(EMBWb[a.nodeName]);else for(a=a.firstChild;a;)EMBXb(a,b,c),a=a.nextSibling},EMBOb=function(a){if(a&&"number"==typeof a.length){if(EMBfa(a))return"function"==typeof a.item||"string"==typeof a.item;if(EMBea(a))return"function"==typeof a.item}return EMBe},EMBZb=function(a,b,c){var d=b?b.toUpperCase():EMBd;return EMBYb(a,function(a){return(!d||a.nodeName==d)&&(!c||EMBz(a,c))},EMBc)},EMBYb=function(a,b,c,d){if(!c)a=a.parentNode;for(var c=d==EMBd,e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;
e++}return EMBd},EMBEb=function(a){this.N=a||EMBf.document||document};EMBEb.prototype.B=function(a){return EMBj(a)?this.N.getElementById(a):a};EMBEb.prototype.he=function(a,b,c){return EMBMb(this.N,arguments)};EMBEb.prototype.createElement=function(a){return this.N.createElement(a)};EMBEb.prototype.createTextNode=function(a){return this.N.createTextNode(a)};
var EMB_b=function(a){return EMBJb(a.N)},EMB0b=function(a){var b=a.N,a=!EMBv&&EMBJb(b)?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new EMBr(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)};EMBEb.prototype.appendChild=function(a,b){a.appendChild(b)};EMBEb.prototype.append=EMBPb;
EMBEb.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 EMB1b=function(a){if(a=a||EMBg("window.event")){this.type=a.type;var b=a.target||a.srcElement;if(b&&3==b.nodeType)b=b.parentNode;this.target=b;if(b=a.relatedTarget)try{b=b.nodeName&&b}catch(c){b=EMBd}else if("mouseover"==this.type)b=a.fromElement;else if("mouseout"==this.type)b=a.toElement;this.relatedTarget=b;this.data=a.data;this.source=a.source;this.origin=a.origin;this.state=a.state;this.clientX=a.clientX!==EMBb?a.clientX:a.pageX;this.clientY=a.clientY!==EMBb?a.clientY:a.pageY;if(a.pageX||
a.pageY)this.pageX=a.pageX,this.pageY=a.pageY;else if((a.clientX||a.clientY)&&document.body&&document.documentElement)this.pageX=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.pageY=a.clientY+document.body.scrollTop+document.documentElement.scrollTop;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);if(0==this.type.indexOf("touch"))this.touches=a.touches,this.changedTouches=a.changedTouches;if(0==this.type.indexOf("gesture"))this.scale=
a.scale,this.rotation=a.rotation;this.pa=a}};EMB=EMB1b.prototype;EMB.type="";EMB.target=EMBd;EMB.relatedTarget=EMBd;EMB.currentTarget=EMBd;EMB.data=EMBd;EMB.source=EMBd;EMB.origin=EMBd;EMB.state=EMBd;EMB.keyCode=0;EMB.charCode=0;EMB.pa=EMBd;EMB.clientX=0;EMB.clientY=0;EMB.pageX=0;EMB.pageY=0;EMB.touches=EMBd;EMB.changedTouches=EMBd;EMB.preventDefault=function(){this.pa.returnValue=EMBe;this.pa.preventDefault&&this.pa.preventDefault()};
EMB.stopPropagation=function(){this.pa.cancelBubble=EMBc;this.pa.stopPropagation&&this.pa.stopPropagation()};var EMB2b=EMBg("yt.events.listeners_")||{};EMBn("yt.events.listeners_",EMB2b);var EMB3b=EMBg("yt.events.counter_")||{count:0};EMBn("yt.events.counter_",EMB3b);
var EMB4b=function(a,b,c){return EMB1a(EMB2b,function(d){return d[0]==a&&d[1]==b&&d[2]==c&&d[4]==EMBe})},EMBG=function(a,b,c){if(!a||!a.addEventListener&&!a.attachEvent)return"";var d=EMB4b(a,b,c);if(d)return d;var d=++EMB3b.count+"",e=function(b){b=new EMB1b(b);b.currentTarget=a;return c.call(a,b)};EMB2b[d]=[a,b,c,e,EMBe];a.addEventListener?a.addEventListener(b,e,EMBe):a.attachEvent("on"+b,e);return d},EMB6b=function(a,b,c){EMB5b(a,b,function(a){return EMBz(a,c)})},EMB5b=function(a,b,c){var d=a||
document;EMBG(d,"click",function(a){var f=EMBYb(a.target,function(a){return a===d||c(a)},EMBc);if(f&&f!==d)a.currentTarget=f,b.call(f,a)})},EMB8b=function(a){(a=EMB4b(document,a,EMBH))&&EMB7b(a)},EMB7b=function(a){if(a in EMB2b){var b=EMB2b[a],c=b[0],d=b[1],e=b[3],b=b[4];c.removeEventListener?c.removeEventListener(d,e,b):c.detachEvent("on"+d,e);delete EMB2b[a]}},EMB9b=function(a,b){if(document.createEvent){var c=document.createEvent("HTMLEvents");c.initEvent(b,EMBc,EMBc);a.dispatchEvent(c)}else c=
document.createEventObject(),a.fireEvent("on"+b,c)};var EMB$b=function(){this.zp=EMBm()},EMBac=new EMB$b;EMB$b.prototype.set=function(a){this.zp=a};EMB$b.prototype.reset=function(){this.set(EMBm())};EMB$b.prototype.get=function(){return this.zp};var EMBbc=function(a){this.gc=a||"";this.Ut=EMBac};EMB=EMBbc.prototype;EMB.Bo=EMBc;EMB.Wt=EMBc;EMB.Vt=EMBc;EMB.dl=EMBe;EMB.Xt=EMBe;var EMBcc=function(a){return 10>a?"0"+a:""+a},EMBdc=function(a,b){var c=(a.so-b)/1E3,d=c.toFixed(3),e=0;if(1>c)e=2;else for(;100>c;)e++,c*=10;for(;0<e--;)d=" "+d;return d},EMBec=function(a){EMBbc.call(this,a)};EMBo(EMBec,EMBbc);var EMBfc="StopIteration"in EMBf?EMBf.StopIteration:Error("StopIteration"),EMBgc=function(){};EMBgc.prototype.next=function(){EMBa(EMBfc)};EMBgc.prototype.Fd=function(){return this};
var EMBhc=function(a){if(a instanceof EMBgc)return a;if("function"==typeof a.Fd)return a.Fd(EMBe);if(EMBda(a)){var b=0,c=new EMBgc;c.next=function(){for(;;){b>=a.length&&EMBa(EMBfc);if(b in a)return a[b++];b++}};return c}EMBa(Error("Not implemented"))},EMBic=function(a,b){if(EMBda(a))try{EMBq(a,b,EMBb)}catch(c){c!==EMBfc&&EMBa(c)}else{a=EMBhc(a);try{for(;;)b.call(EMBb,a.next(),EMBb,a)}catch(d){d!==EMBfc&&EMBa(d)}}},EMBjc=function(a){if(EMBda(a))return EMBPa(a);var a=EMBhc(a),b=[];EMBic(a,function(a){b.push(a)});
return b};var EMBkc=function(a){if("function"==typeof a.Lc)return a.Lc();if(EMBj(a))return a.split("");if(EMBda(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return EMB_a(a)},EMBlc=function(a){if("function"==typeof a.Ed)return a.Ed();if("function"!=typeof a.Lc){if(EMBda(a)||EMBj(a)){for(var b=[],a=a.length,c=0;c<a;c++)b.push(c);return b}return EMB0a(a)}},EMBmc=function(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(EMBda(a)||EMBj(a))EMBq(a,b,c);else for(var d=EMBlc(a),e=EMBkc(a),
f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)};var EMBnc=function(a,b){this.ob={};this.U=[];var c=arguments.length;if(1<c){c%2&&EMBa(Error("Uneven number of arguments"));for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof EMBnc?(c=a.Ed(),d=a.Lc()):(c=EMB0a(a),d=EMB_a(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};EMB=EMBnc.prototype;EMB.o=0;EMB.dg=0;EMB.Lc=function(){EMBoc(this);for(var a=[],b=0;b<this.U.length;b++)a.push(this.ob[this.U[b]]);return a};EMB.Ed=function(){EMBoc(this);return this.U.concat()};
EMB.fc=function(a){return EMBpc(this.ob,a)};EMB.clear=function(){this.ob={};this.dg=this.o=this.U.length=0};EMB.remove=function(a){return EMBpc(this.ob,a)?(delete this.ob[a],this.o--,this.dg++,this.U.length>2*this.o&&EMBoc(this),EMBc):EMBe};var EMBoc=function(a){if(a.o!=a.U.length){for(var b=0,c=0;b<a.U.length;){var d=a.U[b];EMBpc(a.ob,d)&&(a.U[c++]=d);b++}a.U.length=c}if(a.o!=a.U.length){for(var e={},c=b=0;b<a.U.length;)d=a.U[b],EMBpc(e,d)||(a.U[c++]=d,e[d]=1),b++;a.U.length=c}};
EMBnc.prototype.get=function(a,b){return EMBpc(this.ob,a)?this.ob[a]:b};EMBnc.prototype.set=function(a,b){EMBpc(this.ob,a)||(this.o++,this.U.push(a),this.dg++);this.ob[a]=b};EMBnc.prototype.da=function(){return new EMBnc(this)};EMBnc.prototype.Fd=function(a){EMBoc(this);var b=0,c=this.U,d=this.ob,e=this.dg,f=this,g=new EMBgc;g.next=function(){for(;;){e!=f.dg&&EMBa(Error("The map has changed since the iterator was created"));b>=c.length&&EMBa(EMBfc);var g=c[b++];return a?g:d[g]}};return g};
var EMBpc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var EMBrc=function(a){return EMBqc(a||arguments.callee.caller,[])},EMBqc=function(a,b){var c=[];if(0<=EMBHa(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(EMBsc(a)+"(");for(var d=a.arguments,e=0;e<d.length;e++){0<e&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=""+f;break;case "boolean":f=f?"true":"false";break;case "function":f=(f=EMBsc(f))?f:"[fn]";break;default:f=typeof f}40<f.length&&(f=f.substr(0,
40)+"...");c.push(f)}b.push(a);c.push(")\n");try{c.push(EMBqc(a.caller,b))}catch(g){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")},EMBsc=function(a){if(EMBtc[a])return EMBtc[a];a=""+a;if(!EMBtc[a]){var b=/function ([^\(]+)/.exec(a);EMBtc[a]=b?b[1]:"[Anonymous]"}return EMBtc[a]},EMBtc={};var EMBuc=function(a,b,c,d,e){this.reset(a,b,c,d,e)};EMBuc.prototype.fu=0;EMBuc.prototype.Vk=EMBd;EMBuc.prototype.Uk=EMBd;var EMBvc=0;EMBuc.prototype.reset=function(a,b,c,d,e){this.fu="number"==typeof e?e:EMBvc++;this.so=d||EMBm();this.ka=a;this.eu=b;this.ro=c;delete this.Vk;delete this.Uk};EMBuc.prototype.getLevel=function(){return this.ka};EMBuc.prototype.Ki=function(a){this.ka=a};EMBuc.prototype.getMessage=function(){return this.eu};var EMBI=function(a){this.Fb=a};EMBI.prototype.Wa=EMBd;EMBI.prototype.ka=EMBd;EMBI.prototype.Fc=EMBd;EMBI.prototype.tg=EMBd;var EMBwc=function(a,b){this.name=a;this.value=b};EMBwc.prototype.toString=function(){return this.name};var EMBxc=new EMBwc("SHOUT",1200),EMByc=new EMBwc("SEVERE",1E3),EMBzc=new EMBwc("WARNING",900),EMBAc=new EMBwc("INFO",800),EMBBc=new EMBwc("CONFIG",700);EMBI.prototype.getName=function(){return this.Fb};EMBI.prototype.getParent=function(){return this.Wa};
EMBI.prototype.Ki=function(a){this.ka=a};EMBI.prototype.getLevel=function(){return this.ka};var EMBCc=function(a){if(a.ka)return a.ka;if(a.Wa)return EMBCc(a.Wa);EMBFa("Root logger has no level set.");return EMBd};
EMBI.prototype.log=function(a,b,c){if(a.value>=EMBCc(this).value){a=this.Mu(a,b,c);b="log:"+a.getMessage();EMBf.console&&(EMBf.console.timeStamp?EMBf.console.timeStamp(b):EMBf.console.markTimeline&&EMBf.console.markTimeline(b));EMBf.msWriteProfilerMark&&EMBf.msWriteProfilerMark(b);for(b=this;b;){var c=b,d=a;if(c.tg)for(var e=0,f=EMBb;f=c.tg[e];e++)f(d);b=b.getParent()}}};
EMBI.prototype.Mu=function(a,b,c){var d=new EMBuc(a,""+b,this.Fb);if(c){d.Vk=c;var e;var f=arguments.callee.caller;try{var g;var h=EMBg("window.location.href");if(EMBj(c))g={message:c,name:"Unknown error",lineNumber:"Not available",fileName:h,stack:"Not available"};else{var i,j,k=EMBe;try{i=c.lineNumber||c.gx||"Not available"}catch(l){i="Not available",k=EMBc}try{j=c.fileName||c.filename||c.sourceURL||h}catch(n){j="Not available",k=EMBc}g=k||!c.lineNumber||!c.fileName||!c.stack?{message:c.message,
name:c.name,lineNumber:i,fileName:j,stack:c.stack||"Not available"}:c}e="Message: "+EMBwa(g.message)+'\nUrl: <a href="view-source:'+g.fileName+'" target="_new">'+g.fileName+"</a>\nLine: "+g.lineNumber+"\n\nBrowser stack:\n"+EMBwa(g.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+EMBwa(EMBrc(f)+"-> ")}catch(m){e="Exception trying to expose exception! You win, we lose. "+m}d.Uk=e}return d};EMBI.prototype.info=function(a,b){this.log(EMBAc,a,b)};
var EMBDc={},EMBEc=EMBd,EMBFc=function(){EMBEc||(EMBEc=new EMBI(""),EMBDc[""]=EMBEc,EMBEc.Ki(EMBBc))},EMBGc=function(a){EMBFc();var b;if(!(b=EMBDc[a])){b=new EMBI(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=EMBGc(a.substr(0,c));if(!c.Fc)c.Fc={};c.Fc[d]=b;b.Wa=c;EMBDc[a]=b}return b};var EMBHc=function(){this.hu=EMBk(this.pu,this);this.oi=new EMBec;this.oi.Bo=EMBe;this.So=this.oi.dl=EMBe;this.zo="";this.Lt={}},EMBJc=function(){var a=EMBIc;if(EMBc!=a.So){EMBFc();var b=EMBEc,c=a.hu;if(!b.tg)b.tg=[];b.tg.push(c);a.So=EMBc}};
EMBHc.prototype.pu=function(a){if(!this.Lt[a.ro]){var b;b=this.oi;var c=[];c.push(b.gc," ");if(b.Bo){var d=new Date(a.so);c.push("[",EMBcc(d.getFullYear()-2E3)+EMBcc(d.getMonth()+1)+EMBcc(d.getDate())+" "+EMBcc(d.getHours())+":"+EMBcc(d.getMinutes())+":"+EMBcc(d.getSeconds())+"."+EMBcc(Math.floor(d.getMilliseconds()/10)),"] ")}b.Wt&&c.push("[",EMBdc(a,b.Ut.get()),"s] ");b.Vt&&c.push("[",a.ro,"] ");b.Xt&&c.push("[",a.getLevel().name,"] ");c.push(a.getMessage(),"\n");b.dl&&a.Vk&&c.push(a.Uk,"\n");b=
c.join("");if(EMBKc&&EMBKc.firebug)switch(a.getLevel()){case EMBxc:EMBKc.info(b);break;case EMByc:EMBKc.error(b);break;case EMBzc:EMBKc.warn(b);break;default:EMBKc.debug(b)}else EMBKc?EMBKc.log(b):window.opera?window.opera.postError(b):this.zo+=b}};var EMBIc=EMBd,EMBKc=window.console,EMBLc=function(){EMBIc||(EMBIc=new EMBHc);-1!=window.location.href.indexOf("Debug=true")&&EMBJc()};var EMBMc=EMBd,EMBNc=function(){if(!EMBMc)EMBLc(),EMBJc(),EMBIc.oi.dl=EMBc,EMBMc=EMBGc("yt.debug"),EMBMc.Ki(EMBAc)},EMBJ=function(a,b,c){EMBNc();EMBMc.log(EMByc,a+": "+b,c)},EMBOc=function(a,b){EMBNc();EMBMc.log(EMBzc,a+": "+b,EMBb)},EMBPc=function(a,b){EMBNc();EMBMc.log(EMBAc,a+": "+b,EMBb)};var EMBQc=function(a){this.N=a},EMBRc=/\s*;\s*/;EMB=EMBQc.prototype;EMB.set=function(a,b,c,d,e,f){/[;=\s]/.test(a)&&EMBa(Error('Invalid cookie name "'+a+'"'));/[;\r\n]/.test(b)&&EMBa(Error('Invalid cookie value "'+b+'"'));EMBca(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(EMBm()+1E3*c)).toUTCString();this.N.cookie=a+"="+b+e+d+c+f};
EMB.get=function(a,b){for(var c=a+"=",d=(this.N.cookie||"").split(EMBRc),e=0,f;f=d[e];e++)if(0==f.indexOf(c))return f.substr(c.length);return b};EMB.remove=function(a,b,c){var d=this.fc(a);this.set(a,"",0,b,c);return d};EMB.Ed=function(){return EMBSc(this).keys};EMB.Lc=function(){return EMBSc(this).qu};EMB.fc=function(a){return EMBca(this.get(a))};EMB.clear=function(){for(var a=EMBSc(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var EMBSc=function(a){for(var a=(a.N.cookie||"").split(EMBRc),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)));return{keys:b,qu:c}},EMBTc=new EMBQc(document);EMBTc.Sx=3950;var EMBUc=function(){var a;a=this.wp;if(a=EMBTc.get(""+a,EMBb)){a=unescape(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(EMBK[d]=c.toString())}}};EMBaa(EMBUc);var EMBK=EMBg("yt.prefs.UserPrefs.prefs_")||{};EMBn("yt.prefs.UserPrefs.prefs_",EMBK);EMBUc.prototype.wp="PREF";
var EMBVc=function(a){/^f([1-9][0-9]*)$/.test(a)&&EMBa("ExpectedRegexMatch: "+a)},EMBWc=function(a){/^\w+$/.test(a)||EMBa("ExpectedRegexMismatch: "+a)},EMBXc=function(a){a=EMBK[a]!==EMBb?EMBK[a].toString():EMBd;return a!=EMBd&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):EMBd},EMBYc=function(a,b,c){var d=EMBXc(a),d=d!=EMBd?d:0,b=c?d|b:d&~b;0==b?delete EMBK[a]:(b=b.toString(16),EMBK[a]=b.toString())},EMBZc=function(a,b){var c=EMBXc(a);return 0<((c!=EMBd?c:0)&b)};EMB=EMBUc.prototype;
EMB.get=function(a,b){EMBWc(a);EMBVc(a);var c=EMBK[a]!==EMBb?EMBK[a].toString():EMBd;return c!=EMBd?c:b?b:""};EMB.set=function(a,b){EMBWc(a);EMBVc(a);b==EMBd&&EMBa("ExpectedNotNull");EMBK[a]=b.toString()};EMB.remove=function(a){EMBWc(a);EMBVc(a);delete EMBK[a]};EMB.save=function(a){var a=86400*(a||7),b=this.wp,c,d=[];for(c in EMBK)d.push(c+"="+escape(EMBK[c]));c=d.join("&");EMBTc.set(""+b,c,a,"/","youtube.com")};EMB.clear=function(){EMBK={}};var EMB_c=function(a,b,c,d,e,f,g){var h=[];a&&h.push(a,":");c&&(h.push("//"),b&&h.push(b,"@"),h.push(c),d&&h.push(":",d));e&&h.push(e);f&&h.push("?",f);g&&h.push("#",g);return h.join("")},EMB0c=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),EMB1c=function(a){return(a=a.match(EMB0c)[3]||EMBd)&&decodeURIComponent(a)},EMB2c=function(){var a=document.location.href.match(EMB0c);return EMB_c(a[1],a[2],a[3],a[4])},EMB3c=
function(a){a=a.match(EMB0c);return EMB_c(EMBd,EMBd,EMBd,EMBd,a[5],a[6],a[7])},EMB4c=function(a,b){for(var c in b){var d=c,e=b[c],f=a;if(EMBi(e))for(var g=0;g<e.length;g++)f.push("&",d),""!==e[g]&&f.push("=",EMBqa(e[g]));else e!=EMBd&&(f.push("&",d),""!==e&&f.push("=",EMBqa(e)))}return a};var EMB5c=function(a,b){for(var c=a.split(b),d={},e=0,f=c.length;e<f;e++){var g=c[e].split("=");if(1==g.length&&g[0]||2==g.length){var h=g[0],g=decodeURIComponent((g[1]||"").replace(/\+/g," "));h in d?EMBi(d[h])?EMBQa(d[h],g):d[h]=[d[h],g]:d[h]=g}}return d},EMB6c=function(a){var b=[];EMBYa(a,function(a,d){var e=EMBqa(d),f;f=EMBi(a)?a:[a];EMBq(f,function(a){""==a?b.push(e):b.push(e+"="+EMBqa(a))})});return b.join(";")},EMB7c=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return EMB5c(a,"&")},EMB8c=
function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),EMB7c(1<a.length?a[1]:a[0])):{}},EMB9c=function(a){a=EMB4c([],a);a[0]="";return a.join("")},EMBL=function(a,b){var c=EMB4c([a],b);if(c[1]){var d=c[0],e=d.indexOf("#");0<=e&&(c.push(d.substr(e)),c[0]=d=d.substr(0,e));e=d.indexOf("?");0>e?c[1]="?":e==d.length-1&&(c[1]=EMBb)}return c.join("")},EMB$c=function(a,b){var c=a.split("?",2),a=c[0],c=EMB7c(c[1]||""),d;for(d in b)c[d]=b[d];return EMBL(a,c)};var EMBad=window.yt&&window.yt.config_||{};EMBn("yt.config_",EMBad);EMBn("yt.globals_",window.yt&&window.yt.globals_||{});var EMBbd=window.yt&&window.yt.msgs_||{};EMBn("yt.msgs_",EMBbd);var EMBcd=window.yt&&window.yt.timeouts_||[];EMBn("yt.timeouts_",EMBcd);var EMBdd=window.yt&&window.yt.intervals_||[];EMBn("yt.intervals_",EMBdd);
var EMBed=function(a){return a in EMBad?EMBad[a]:EMBb},EMBM=function(a,b){var c=window.setTimeout(a,b);EMBcd.push(c);return c},EMBfd=function(a,b){var c=window.setInterval(a,b);EMBdd.push(c);return c},EMBN=function(a){window.clearInterval(a)},EMBgd=function(a,b,c){var d=b||{};if(a=a in EMBbd?EMBbd[a]:c)for(var e in d)a=a.replace(RegExp("\\$"+e,"gi"),function(){return d[e]});return a},EMBhd=function(a,b){if(1<b.length){var c=b[0];a[c]=b[1]}else{var d=b[0];for(c in d)a[c]=d[c]}},EMBid=!!eval("/*@cc_on!@*/false");var EMBO=function(a){a=a||{};this.url=a.url||this.url;this.Nk=a.url_v8||this.Nk;this.Ok=a.url_v9as2||this.Ok;this.Mk=a.min_version||this.Mk;this.O=a.args||EMB3a(EMBjd);this.ek=a.assets||{};this.Bc=a.attrs||EMB3a(EMBkd);this.T=a.params||EMB3a(EMBld);this.$c=a.fallback||this.$c;this.yk=a.html5||this.yk;this.disable=a.disable||{}},EMBjd={enablejsapi:1},EMBkd={width:"640",height:"385"},EMBld={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};EMB=EMBO.prototype;EMB.url="";EMB.Nk="";
EMB.Ok="";EMB.Mk="8.0.0";EMB.yk=EMBe;var EMBnd=function(){this.Gi=[];EMBmd(this)};EMBaa(EMBnd);EMB=EMBnd.prototype;EMB.Za=0;EMB.Be=0;EMB.rev=0;EMB.Wk="";EMB.ju="";EMB.$=0;EMB.load=function(a){3<=this.$?a(this):this.Gi.push(a)};EMB.setVersion=function(a){this.Za=a[0];this.Be=a[1];this.rev=a[2]};EMB.isSupported=function(a,b,c){a="string"==typeof a?a.split("."):[a,b,c];a[0]=parseInt(a[0],10)||0;a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return this.Za>a[0]||this.Za==a[0]&&this.Be>a[1]||this.Za==a[0]&&this.Be==a[1]&&this.rev>=a[2]};
var EMBmd=function(a){if(3>a.$)if(1>a.$){var b=EMBg("window.navigator.plugins"),c=EMBg("window.navigator.mimeTypes"),b=b&&b["Shockwave Flash"],c=c&&c["application/x-shockwave-flash"],c=b&&c&&c.enabledPlugin&&b.description||"";if(b=c){var d=b.indexOf("Shockwave Flash");0<=d&&(b=b.substr(d+15));for(var d=b.split(" "),e="",b="",f=0,g=d.length;f<g;f++)if(e)if(b)break;else b=d[f];else e=d[f];e=e.split(".");d=parseInt(e[0],10)||0;e=parseInt(e[1],10)||0;f=0;if("r"==b.charAt(0)||"d"==b.charAt(0))f=parseInt(b.substr(1),
10)||0;b=[d,e,f]}else b=[0,0,0];a.Wk=c;a.setVersion(b);a.$=1;0<a.Za?EMBod(a):EMBmd(a)}else 2>a.$?EMBpd(a):EMBod(a)};EMBnd.prototype.yp=function(a){var b;a?(b=a.split(" ")[1].split(","),b=[parseInt(b[0],10)||0,parseInt(b[1],10)||0,parseInt(b[2],10)||0]):b=[0,0,0];this.ju=a;this.setVersion(b);this.$=2;0<this.Za?EMBod(this):EMBmd(this)};
var EMBod=function(a){if(3>a.$){a.$=3;for(var b=0,c=a.Gi.length;b<c;b++)a.Gi[b](a);a.Gi=[]}},EMBpd=function(a){var b,c,d,e;if(EMBid){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(f){b=EMBd}b||a.yp("")}else d=document.getElementsByTagName("body")[0],e=document.createElement("object"),e.setAttribute("type","application/x-shockwave-flash"),b=d.appendChild(e);var g=EMBk(a.yp,a),h=0,i=function(){if(b&&"GetVariable"in b)try{c=b.GetVariable("$version")}catch(a){c=""}c||10<=h?(d&&e&&d.removeChild(e),
g(c||"")):(h++,EMBM(i,10))};EMBM(i,0)};var EMBqd=function(a,b,c){if((a=EMBC(a))&&b&&c){c instanceof EMBO||(c=new EMBO(c));var d=EMB3a(c.Bc),e=EMB3a(c.T);e.flashvars=EMB9c(c.O);c=[];if(EMBid){d.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";e.movie=b;c.push("<object ");for(var f in d)c.push(f,'="',d[f],'"');c.push(">");for(f in e)c.push('<param name="',f,'" value="',e[f],'">');c.push("</object>")}else{d.type="application/x-shockwave-flash";d.src=b;c.push("<embed ");for(f in d)c.push(f,'="',d[f],'"');for(f in e)c.push(f,'="',e[f],
'"');c.push(" />")}a.innerHTML=c.join("")}},EMBsd=function(a,b){a=EMBC(a);b instanceof EMBO||(b=new EMBO(b));if(window!=window.top){var c=EMBd;document.referrer&&(c=document.referrer.substring(0,128));b.O.framer=c}EMBrd(function(c){c.isSupported(b.Mk)||EMBed("IS_OPERA_MINI")?(c=(-1<c.Wk.indexOf("Gnash")&&-1==c.Wk.indexOf("AVM2")?EMBe:9==c.Za&&1==c.Be?EMBe:9==c.Za&&0==c.Be&&1==c.rev?EMBe:9<=c.Za)&&b.url||(-1<navigator.userAgent.indexOf("Sony/COM2")&&!c.isSupported(9,1,58)?EMBe:EMBc)&&b.Ok||b.Nk||b.url,
EMBqd(a,c,b)):EMBid&&c.isSupported(6,0,65)?(c=new EMBO({url:"//s.ytimg.com/yt/swf/expressInstall-vflIE9HEf.swf",args:{MMredirectURL:window.location,MMplayerType:"ActiveX",MMdoctitle:document.title}}),EMBqd(a,c.url,c)):0==c.Za&&b.$c?b.$c():0==c.Za&&b.cf?b.cf():a.innerHTML='<div id="flash-upgrade">'+EMBgd("FLASH_UPGRADE")+"</div>"})},EMBrd=function(a){EMBnd.getInstance().load(function(b){var c=EMBUc.getInstance();c.set("fv",[b.Za,b.Be,b.rev].join("."));c.save();a(b)})};var EMBtd=function(){};EMBtd.prototype.od=EMBe;EMBtd.prototype.Vc=function(){if(!this.od)this.od=EMBc,this.u()};EMBtd.prototype.u=function(){this.Nw&&EMBud.apply(EMBd,this.Nw)};var EMBvd=function(a){a&&"function"==typeof a.Vc&&a.Vc()},EMBud=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];EMBda(d)?EMBud.apply(EMBd,d):EMBvd(d)}};var EMBP=function(){this.Xa=[];this.Db={}};EMBo(EMBP,EMBtd);EMB=EMBP.prototype;EMB.dp=1;EMB.yi=0;EMB.e=function(a,b,c){var d=this.Db[a];d||(d=this.Db[a]=[]);var e=this.dp;this.Xa[e]=a;this.Xa[e+1]=b;this.Xa[e+2]=c;this.dp=e+3;d.push(e);return e};EMB.L=function(a,b,c){if(a=this.Db[a]){var d=this.Xa;if(a=EMBLa(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.xi(a)}return EMBe};
EMB.xi=function(a){if(0!=this.yi){if(!this.Xf)this.Xf=[];this.Xf.push(a);return EMBe}var b=this.Xa[a];if(b){var c=this.Db[b];c&&EMBMa(c,a);delete this.Xa[a];delete this.Xa[a+1];delete this.Xa[a+2]}return!!b};EMB.c=function(a,b){var c=this.Db[a];if(c){this.yi++;for(var d=EMBRa(arguments,1),e=0,f=c.length;e<f;e++){var g=c[e];this.Xa[g+1].apply(this.Xa[g+2],d)}this.yi--;if(this.Xf&&0==this.yi)for(;c=this.Xf.pop();)this.xi(c);return 0!=e}return EMBe};
EMB.clear=function(a){if(a){var b=this.Db[a];b&&(EMBq(b,this.xi,this),delete this.Db[a])}else this.Xa.length=0,this.Db={}};EMB.u=function(){EMBP.k.u.call(this);delete this.Xa;delete this.Db;delete this.Xf};var EMBwd=function(a,b){this.state=a;this.Ym=b},EMBxd=function(){};EMBxd.prototype.Sj=EMBe;EMBxd.prototype.Hi=EMBe;EMBxd.prototype.zf=EMBe;EMBxd.prototype.Zj=EMBe;var EMByd=new EMBxd;EMByd.Sj=EMBc;EMByd.zf=EMBc;EMByd.Hi=EMBc;var EMBzd=new EMBxd;EMBzd.Hi=EMBc;var EMBAd=new EMBxd;EMBAd.zf=EMBc;var EMBBd=new EMBxd,EMBCd=new EMBxd;EMBCd.Zj=EMBc;var EMBDd={qx:"audio",$x:"play_pause",jy:"seek"};var EMBQ=function(a,b,c){return Math.min(Math.max(a,b),c)};var EMBEd=function(){};var EMBFd=function(){};EMBo(EMBFd,EMBEd);EMBFd.prototype.clear=function(){var a=EMBjc(this.Fd(EMBc)),b=this;EMBq(a,function(a){b.remove(a)})};var EMBGd=function(){};EMBo(EMBGd,EMBFd);var EMBHd=function(){try{return!!window.localStorage.getItem}catch(a){}return EMBe};EMB=EMBGd.prototype;EMB.set=function(a,b){try{window.localStorage.setItem(a,b)}catch(c){EMBa("Storage mechanism: Quota exceeded")}};EMB.get=function(a){a=window.localStorage.getItem(a);if(EMBj(a)||EMBh(a))return a;EMBa("Storage mechanism: Invalid value was encountered")};EMB.remove=function(a){window.localStorage.removeItem(a)};
EMB.Fd=function(a){var b=0,c=new EMBgc;c.next=function(){b>=window.localStorage.length&&EMBa(EMBfc);var c=EMBGa(window.localStorage.key(b++));if(a)return c;c=window.localStorage.getItem(c);if(EMBj(c))return c;EMBa("Storage mechanism: Invalid value was encountered")};return c};EMB.clear=function(){window.localStorage.clear()};var EMBId=function(a){a=""+a;if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}EMBa(Error("Invalid JSON string: "+a))},EMBJd=function(a){return eval("("+a+")")},EMBKd=function(){this.Li=EMBb},EMBMd=function(a,b){var c=[];EMBLd(a,b,c);return c.join("")},EMBLd=
function(a,b,c){switch(typeof b){case "string":EMBNd(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==EMBd){c.push("null");break}if(EMBi(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],EMBLd(a,a.Li?a.Li.call(b,""+f,e):e,c),e=",";c.push("]");break}c.push("{");d="";for(f in b)Object.prototype.hasOwnProperty.call(b,f)&&(e=b[f],"function"!=typeof e&&(c.push(d),EMBNd(f,
c),c.push(":"),EMBLd(a,a.Li?a.Li.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:EMBa(Error("Unknown type: "+typeof b))}},EMBOd={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},EMBPd=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,EMBNd=function(a,b){b.push('"',a.replace(EMBPd,function(a){if(a in EMBOd)return EMBOd[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":
4096>b&&(e+="0");return EMBOd[a]=e+b.toString(16)}),'"')};var EMBQd=function(a){this.ug=a;this.qp=new EMBKd};EMB=EMBQd.prototype;EMB.ug=EMBd;EMB.qp=EMBd;EMB.set=function(a,b){EMBca(b)?this.ug.set(a,EMBMd(this.qp,b)):this.ug.remove(a)};EMB.get=function(a){a=this.ug.get(a);if(!EMBh(a))try{return EMBId(a)}catch(b){EMBa("Storage: Invalid value was encountered")}};EMB.remove=function(a){this.ug.remove(a)};var EMBRd={ny:"html5-stop-propagation",rx:"html5-autohide",Gx:"hide-controls",Tx:"modest-branding",Ux:"html5-native-controls",ky:"html5-seeking",py:"html5-tablet",oy:"html5-tablet-body",uy:"video-container",vy:"video-content",wy:"video-controls",xy:"video-fallback",yy:"video-fallback-content",zy:"html5-video-loader",By:"html5-watermark",wx:"html5-branded-watermark",yx:"html5-context-menu",$s:"html5-context-menu-copy-video-url",dt:"html5-context-menu-pop-out",ct:"html5-context-menu-copy-video-url-at-current-time",
Zs:"html5-context-menu-copy-embed-html",ht:"html5-context-menu-stop-download",ft:"html5-context-menu-report-playback-issue",Ys:"html5-context-menu-copy-debug-info",gt:"html5-context-menu-show-video-info",zx:"html5-show-video-info-template",Lx:"html5-info-bar",Mx:"html5-author",Nx:"html5-title",Bx:"disabled-control-",Hx:"html5-hide-volume",dy:"redirected-control-",Ay:"video-thumbnail",sx:"html5-bezel",vx:"html5-bezel-play",ux:"html5-bezel-pause",tx:"html5-bezel-fade",by:"html5-popup-dialog",ox:"html5-async-progress",
px:"html5-async-success",nx:"html5-async-error",hy:"html5-scalable-icon",Yx:"player-root",Xx:"player-container",kx:"player-actions-container",ix:"player-actions-close",jx:"player-actions-close-button",lx:"player-actions-share",mx:"small-view"},EMBSd={"-1":"","0":"ended-mode",1:"playing-mode",2:"paused-mode",3:"buffering-mode",5:"cued-mode"};var EMBTd=function(){var a=new EMBGd;if(a&&EMBHd())this.Nd=new EMBQd(a),this.Ie=new EMBQd(a)};EMBTd.prototype.Ie=EMBd;EMBTd.prototype.Nd=EMBd;var EMBUd=function(a,b){if(a.Ie){var c={};c.volume=isNaN(b.volume)?a.getVolume().volume:EMBQ(b.volume,0,100);c.muted=b.muted==EMBb?a.getVolume().muted:b.muted;try{a.Ie.set("yt-player-volume",c)}catch(d){}}};
EMBTd.prototype.getVolume=function(){var a={volume:100,muted:EMBe};if(this.Ie){var b={};try{b=this.Ie.get("yt-player-volume")||{}}catch(c){this.Ie.remove("yt-player-volume")}a.volume=isNaN(b.volume)?100:EMBQ(b.volume,0,100);a.muted=b.muted==EMBb?EMBe:b.muted}return a};var EMBVd=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};EMBVd.prototype.da=function(){return new EMBVd(this.top,this.right,this.bottom,this.left)};EMBVd.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};EMBVd.prototype.contains=function(a){return!this||!a?EMBe:a instanceof EMBVd?a.left>=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};var EMBR=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};EMBR.prototype.da=function(){return new EMBR(this.left,this.top,this.width,this.height)};EMBR.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
EMBR.prototype.contains=function(a){return a instanceof EMBR?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};var EMBXd=function(a,b,c){EMBj(b)?EMBWd(a,c,b):EMBYa(b,EMBla(EMBWd,a))},EMBWd=function(a,b,c){a.style[EMBBa(c)]=b},EMBS=function(a,b){var c=EMBB(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,EMBd))?c[b]||c.getPropertyValue(b):""},EMBYd=function(a,b){return EMBS(a,b)||(a.currentStyle?a.currentStyle[b]:EMBd)||a.style&&a.style[b]},EMB_d=function(a,b,c){var d,e=EMBu&&(EMBab||EMBkb)&&EMBw("1.9");b instanceof EMBr?(d=b.x,b=b.y):(d=b,b=c);a.style.left=EMBZd(d,
e);a.style.top=EMBZd(b,e)},EMB0d=function(a){var b=a.getBoundingClientRect();if(EMBt)a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop;return b},EMB1d=function(a){if(EMBt&&!EMBvb(8))return a.offsetParent;for(var b=EMBB(a),c=EMBYd(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=EMBYd(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>
a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return EMBd},EMB4d=function(a){for(var b=new EMBVd(0,Infinity,Infinity,0),c=EMBFb(a),d=c.N.body,e=c.N.documentElement,f=!EMBv&&EMBJb(c.N)?c.N.documentElement:c.N.body;a=EMB1d(a);)if((!EMBt||0!=a.clientWidth)&&(!EMBv||0!=a.clientHeight||a!=d)&&a!=d&&a!=e&&"visible"!=EMBYd(a,"overflow")){var g=EMB2d(a),h;h=a;if(EMBu&&!EMBw("1.9")){var i=parseFloat(EMBS(h,"borderLeftWidth"));if(EMB3d(h))var j=h.offsetWidth-h.clientWidth-i-parseFloat(EMBS(h,
"borderRightWidth")),i=i+j;h=new EMBr(i,parseFloat(EMBS(h,"borderTopWidth")))}else h=new EMBr(h.clientLeft,h.clientTop);g.x+=h.x;g.y+=h.y;b.top=Math.max(b.top,g.y);b.right=Math.min(b.right,g.x+a.clientWidth);b.bottom=Math.min(b.bottom,g.y+a.clientHeight);b.left=Math.max(b.left,g.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=c.N.parentWindow||c.N.defaultView||window;e=c.document;EMBv&&!EMBw("500")&&!EMBhb?("undefined"==typeof c.innerHeight&&(c=window),e=c.innerHeight,
a=c.document.documentElement.scrollHeight,c==c.top&&a<e&&(e-=15),c=new EMBs(c.innerWidth,e)):(c=EMBJb(e)?e.documentElement:e.body,c=new EMBs(c.clientWidth,c.clientHeight));b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:EMBd},EMB2d=function(a){var b,c=EMBB(a),d=EMBYd(a,"position"),e=EMBu&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new EMBr(0,
0),g;b=c?9==c.nodeType?c:EMBB(c):document;g=EMBt&&!EMBvb(9)&&!EMB_b(EMBFb(b))?b.body:b.documentElement;if(a==g)return f;if(a.getBoundingClientRect)b=EMB0d(a),a=EMB0b(EMBFb(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(EMBv&&"fixed"==EMBYd(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;
break}b=b.offsetParent}while(b&&b!=a);if(EMBgb||EMBv&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=EMB1d(b))&&b!=c.body&&b!=g;)if(f.x-=b.scrollLeft,!EMBgb||"TR"!=b.tagName)f.y-=b.scrollTop}return f},EMB6d=function(a,b){var c=EMB5d(a),d=EMB5d(b);return new EMBr(c.x-d.x,c.y-d.y)},EMB5d=function(a){var b=new EMBr;if(1==a.nodeType)if(a.getBoundingClientRect)a=EMB0d(a),b.x=a.left,b.y=a.top;else{var c=EMB0b(EMBFb(a)),a=EMB2d(a);b.x=a.x-c.x;b.y=a.y-c.y}else{var c=EMBea(a.Ml),d=a;a.targetTouches?d=a.targetTouches[0]:
c&&a.Ml().targetTouches&&(d=a.Ml().targetTouches[0]);b.x=d.clientX;b.y=d.clientY}return b},EMB7d=function(a,b,c){b instanceof EMBs?(c=b.height,b=b.width):c==EMBb&&EMBa(Error("missing height argument"));a.style.width=EMBZd(b,EMBc);a.style.height=EMBZd(c,EMBc)},EMBZd=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},EMBT=function(a){if("none"!=EMBYd(a,"display"))return EMB8d(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display=
"inline";a=EMB8d(a);b.display=c;b.position=e;b.visibility=d;return a},EMB8d=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=EMBv&&!b&&!c;return(!EMBca(b)||d)&&a.getBoundingClientRect?(a=EMB0d(a),new EMBs(a.right-a.left,a.bottom-a.top)):new EMBs(b,c)},EMB9d=function(a){var b=EMB2d(a),a=EMBT(a);return new EMBR(b.x,b.y,a.width,a.height)},EMB$d=function(a,b){var c=a.style;if("opacity"in c)c.opacity=b;else if("MozOpacity"in c)c.MozOpacity=b;else if("filter"in c)c.filter=""===b?"":"alpha(opacity="+100*
b+")"},EMBae=function(a,b){a.style.display=b?"":"none"},EMB3d=function(a){return"rtl"==EMBYd(a,"direction")},EMBbe=function(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b},EMBce=function(a,b){return EMBbe(a,a.currentStyle?a.currentStyle[b]:EMBd,"left","pixelLeft")},EMBde=function(a){if(EMBt){var b=EMBce(a,"paddingLeft"),c=EMBce(a,"paddingRight"),d=EMBce(a,
"paddingTop"),a=EMBce(a,"paddingBottom");return new EMBVd(d,c,a,b)}b=EMBS(a,"paddingLeft");c=EMBS(a,"paddingRight");d=EMBS(a,"paddingTop");a=EMBS(a,"paddingBottom");return new EMBVd(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))},EMBee={thin:2,medium:4,thick:6},EMBfe=function(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:EMBd))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:EMBd;return c in EMBee?EMBee[c]:EMBbe(a,c,"left","pixelLeft")},EMBge=function(a){if(EMBt){var b=
EMBfe(a,"borderLeft"),c=EMBfe(a,"borderRight"),d=EMBfe(a,"borderTop"),a=EMBfe(a,"borderBottom");return new EMBVd(d,c,a,b)}b=EMBS(a,"borderLeftWidth");c=EMBS(a,"borderRightWidth");d=EMBS(a,"borderTopWidth");a=EMBS(a,"borderBottomWidth");return new EMBVd(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))},EMBhe=/[^\d]+$/,EMBie={cm:1,"in":1,mm:1,pc:1,pt:1},EMBje={em:1,ex:1},EMBke=function(a){var b=EMBYd(a,"fontSize"),c;c=(c=b.match(EMBhe))&&c[0]||EMBd;if(b&&"px"==c)return parseInt(b,10);if(EMBt){if(c in
EMBie)return EMBbe(a,b,"left","pixelLeft");if(a.parentNode&&1==a.parentNode.nodeType&&c in EMBje)return a=a.parentNode,c=EMBYd(a,"fontSize"),EMBbe(a,b==c?"1em":b,"left","pixelLeft")}c=EMBE("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;EMBF(c);return b};var EMBle=function(a,b){if((a=EMBC(a))&&a.style)EMBae(a,b),EMBA(a,"hid",!b)},EMBme=function(a){a=EMBC(a);return!a?EMBe:!("none"==a.style.display||EMBz(a,"hid"))},EMBne=function(a){if(a=EMBC(a))EMBme(a)?(EMBae(a,EMBe),EMBx(a,"hid")):(EMBae(a,EMBc),EMBy(a,"hid"))},EMBU=function(a){EMBq(arguments,function(a){EMBle(a,EMBc)})},EMBV=function(a){EMBq(arguments,function(a){EMBle(a,EMBe)})};var EMBoe={},EMBpe=0,EMBW=function(a){var b=new Image,c=""+EMBpe++;EMBoe[c]=b;b.onload=b.onerror=function(){delete EMBoe[c]};b.src=a;b=eval("null")};var EMBX=EMBg("yt.timing")||{};EMBn("yt.timing",EMBX);EMBX.Gu=0;EMBX.np=0;EMBX.sb=function(a,b){var c=EMBX.timer||{};c[a]=b?b:EMBm();EMBX.timer=c};EMBX.info=function(a,b){var c=EMBX.info_args||{};c[a]=b;EMBX.info_args=c};
EMBX.Mg=function(){var a=EMBed("TIMING_ACTION"),b=EMBX.timer||{},c=EMBX.info_args||{},d=b.start,e="",f=[],g=[];delete b.start;EMBX.srt&&(e="&srt="+EMBX.srt);b.aft&&b.plev&&(b.aft=Math.min(b.aft,b.plev));for(var h in b)f.push(h+"."+Math.round(b[h]-d));for(h in c)g.push(h+"="+c[h]);b.vr&&b.gv&&f.push("vl."+Math.round(b.vr-b.gv));!b.aft&&b.vr&&b.cl?b.cl>b.vr?f.push("aft."+Math.round(b.cl-d)):f.push("aft."+Math.round(b.vr-d)):!b.aft&&b.vr?f.push("aft."+Math.round(b.vr-d)):b.aft||f.push("aft."+Math.round(b.ol-
d));EMBW(["https:"==window.location.protocol?"https://gg.google.com/csi":"http://csi.gstatic.com/csi","?v=2&s=youtube&action=",a,e,"&",g.join("&"),"&rt=",f.join(",")].join(""))};EMBX.Iu=function(){var a=EMBed("TIMING_ACTION"),b=EMBX.timer||{};a&&b.start&&(EMBX.wff&&-1!=a.indexOf("ajax")&&b.vr&&b.cl?EMBX.Mg():EMBX.wff&&-1==a.indexOf("ajax")&&b.vr?EMBX.Mg():!EMBX.wff&&(b.ol||b.aft)&&EMBX.Mg())};EMBX.Pw=function(){EMBX.sb("ol");EMBX.Iu()};
EMBX.Ey=function(a){var b=++EMBX.Gu;"undefined"!=typeof a&&4>a&&EMBX.np++;4==EMBX.np&&EMBX.sb("tn_c4");1!=b&&5!=b&&10!=b&&20!=b&&30!=b||EMBX.sb("tn"+b)};var EMBqe=function(a,b,c,d){a=EMBL("/sharing_services",{name:a,v:b,locale:c,feature:d});EMBW(a)};var EMBre=function(a,b){b||(b={});var c=window,d="undefined"!=typeof a.href?a.href:""+a,e=b.target||a.target,f=[],g;for(g in b)switch(g){case "width":case "height":case "top":case "left":f.push(g+"="+b[g]);break;case "target":case "noreferrer":break;default:f.push(g+"="+(b[g]?1:0))}f=f.join(",");if(b.noreferrer){if(c=c.open("",e,f))EMBt&&-1!=d.indexOf(";")&&(d="'"+d.replace(/'/g,"%27")+"'"),c.opener=EMBd,EMBv?c.location.href=d:(d=EMBwa(d),c.document.write('<META HTTP-EQUIV="refresh" content="0; url='+
d+'">'),c.document.close())}else c=c.open(d,e,f);return c};var EMBse=function(a,b){var c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;c=EMBre(a,c);if(!c)return EMBc;if(!c.opener)c.opener=window;c.focus();return EMBe};var EMBue=function(a,b,c){a.dataset?a.dataset[EMBte(b)]=c:a.setAttribute("data-"+b,c)},EMBY=function(a,b){return a.dataset?a.dataset[EMBte(b)]:a.getAttribute("data-"+b)},EMBve=function(a,b){a.dataset?delete a.dataset[EMBte(b)]:a.removeAttribute("data-"+b)},EMBwe={},EMBte=function(a){return EMBwe[a]||(EMBwe[a]=(""+a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var EMBZ={ww:1};EMBZ.FLAG_SAFE_SEARCH=EMBZ.ww;EMBZ.gw=2;EMBZ.FLAG_GRID_VIEW_SEARCH_RESULTS=EMBZ.gw;EMBZ.xk=4;EMBZ.FLAG_EMBED_NO_RELATED_VIDEOS=EMBZ.xk;EMBZ.ow=8;EMBZ.FLAG_HTML5_THREED=EMBZ.ow;EMBZ.hw=16;EMBZ.FLAG_GRID_VIEW_VIDEOS_AND_CHANNELS=EMBZ.hw;EMBZ.Iw=32;EMBZ.FLAG_WATCH_EXPAND_ABOUT_PANEL=EMBZ.Iw;EMBZ.Kw=64;EMBZ.FLAG_WATCH_EXPAND_MOREFROM_PANEL=EMBZ.Kw;EMBZ.Hw=128;EMBZ.FLAG_WATCH_COLLAPSE_RELATED_PANEL=EMBZ.Hw;EMBZ.Fw=256;EMBZ.FLAG_WATCH_COLLAPSE_PLAYLIST_PANEL=EMBZ.Fw;EMBZ.Gw=512;
EMBZ.FLAG_WATCH_COLLAPSE_QUICKLIST_PANEL=EMBZ.Gw;EMBZ.Jw=1024;EMBZ.FLAG_WATCH_EXPAND_ALSOWATCHING_PANEL=EMBZ.Jw;EMBZ.Ew=2048;EMBZ.FLAG_WATCH_COLLAPSE_COMMENTS_PANEL=EMBZ.Ew;EMBZ.Bw=4096;EMBZ.FLAG_STATMODULES_INBOX_COLLAPSED=EMBZ.Bw;EMBZ.Aw=8192;EMBZ.FLAG_STATMODULES_ABOUTYOU_COLLAPSED=EMBZ.Aw;EMBZ.zw=16384;EMBZ.FLAG_STATMODULES_ABOUTVIDEOS_COLLAPSED=EMBZ.zw;EMBZ.nw=32768;EMBZ.FLAG_HIDE_WATCH_AUTOSHARE_PROMOTION=EMBZ.nw;EMBZ.pw=65536;EMBZ.FLAG_PERSONALIZED_HOMEPAGE_FEED_FEATURED_COLLAPSED=EMBZ.pw;
EMBZ.tw=131072;EMBZ.FLAG_PERSONALIZED_HOMEPAGE_FEED_RECOMMENDED_COLLAPSED=EMBZ.tw;EMBZ.uw=262144;EMBZ.FLAG_PERSONALIZED_HOMEPAGE_FEED_SUBSCRIPTIONS_COLLAPSED=EMBZ.uw;EMBZ.rw=524288;EMBZ.FLAG_PERSONALIZED_HOMEPAGE_FEED_POPULAR_COLLAPSED=EMBZ.rw;EMBZ.qw=1048576;EMBZ.FLAG_PERSONALIZED_HOMEPAGE_FEED_FRIENDTIVITY_COLLAPSED=EMBZ.qw;EMBZ.Cw=2097152;EMBZ.FLAG_SUGGEST_ENABLED=EMBZ.Cw;EMBZ.kw=4194304;EMBZ.FLAG_HAS_SUGGEST_ENABLED=EMBZ.kw;EMBZ.Dw=8388608;EMBZ.FLAG_WATCH_BETA_PLAYER=EMBZ.Dw;EMBZ.jw=16777216;
EMBZ.FLAG_HAS_REDIRECTED_TO_LOCAL_SITE=EMBZ.jw;EMBZ.fw=33554432;EMBZ.FLAG_ACCOUNT_SHOW_PLAYLIST_INFO=EMBZ.fw;EMBZ.lw=67108864;EMBZ.FLAG_HAS_TAKEN_CHANNEL_SURVEY=EMBZ.lw;EMBZ.mw=134217728;EMBZ.FLAG_HIDE_TOOLBAR=EMBZ.mw;EMBZ.yw=268435456;EMBZ.FLAG_SHOWN_LANG_OPT_OUT=EMBZ.yw;EMBZ.iw=536870912;EMBZ.FLAG_HAS_REDIRECTED_TO_LOCAL_LANG=EMBZ.iw;EMBZ.xw=1073741824;EMBZ.FLAG_SHOWN_COUNTRY_OPT_OUT=EMBZ.xw;EMBZ.rv=1;EMBZ.FLAG2_UPLOAD_BETA_OPTSET=EMBZ.rv;EMBZ.qv=2;EMBZ.FLAG2_UPLOAD_BETA_OPTIN=EMBZ.qv;EMBZ.Yu=4;
EMBZ.FLAG2_HIDE_MASTHEAD=EMBZ.Yu;EMBZ.ov=8;EMBZ.FLAG2_TV_PARITY=EMBZ.ov;EMBZ.lv=16;EMBZ.FLAG2_TV_AUTO_FULLSCREEN_OFF=EMBZ.lv;EMBZ.mv=32;EMBZ.FLAG2_TV_AUTO_PLAY_NEXT_OFF=EMBZ.mv;EMBZ.nv=64;EMBZ.FLAG2_TV_ENABLE_MULTIPLE_CONTROLLERS=EMBZ.nv;EMBZ.pv=128;EMBZ.FLAG2_TV_RESERVED=EMBZ.pv;EMBZ.bv=256;EMBZ.FLAG2_LIGHT_HOMEPAGE=EMBZ.bv;EMBZ.hv=512;EMBZ.FLAG2_REDLINE_HIDE_TOAST=EMBZ.hv;EMBZ.Tu=1024;EMBZ.FLAG2_ANNOTATIONS_EDITOR_WATCH_PAGE_DEFAULT_OFF=EMBZ.Tu;EMBZ.fv=2048;
EMBZ.FLAG2_REDLINE_HIDE_START_MESSAGE=EMBZ.fv;EMBZ.Uu=4096;EMBZ.FLAG2_ANNOTATIONS_LOAD_POLICY_BY_DEMAND=EMBZ.Uu;EMBZ.vk=8192;EMBZ.FLAG2_EMBED_DELAYED_COOKIES=EMBZ.vk;EMBZ.Xu=16384;EMBZ.FLAG2_HD_TIP_DEMOTE=EMBZ.Xu;EMBZ.dv=32768;EMBZ.FLAG2_NEWS_TIP_DEMOTE=EMBZ.dv;EMBZ.sv=65536;EMBZ.FLAG2_UPLOAD_RESTRICT_TIP_DEMOTE=EMBZ.sv;EMBZ.tv=131072;EMBZ.FLAG2_YPP_HIDE_INVITE_SPAM_BOX=EMBZ.tv;EMBZ.uv=262144;EMBZ.FLAG2_YPP_HIDE_NEEDS_ADSENSE_BOX=EMBZ.uv;EMBZ.vv=524288;EMBZ.FLAG2_YPP_HIDE_NEEDS_TRAINING_BOX=EMBZ.vv;
EMBZ.kv=1048576;EMBZ.FLAG2_SKIP_CONTRINTER=EMBZ.kv;EMBZ.rk=2097152;EMBZ.FLAG2_EMBED_DEFAULT_HD=EMBZ.rk;EMBZ.Vu=4194304;EMBZ.FLAG2_ENABLE_FILTER_WORDS=EMBZ.Vu;EMBZ.ev=8388608;EMBZ.FLAG2_OPTED_IN_FOR_COMMENTS=EMBZ.ev;EMBZ.$u=16777216;EMBZ.FLAG2_HQ_SETTING_SAVED=EMBZ.$u;EMBZ.Wu=33554432;EMBZ.FLAG2_HAS_TAKEN_WATCH_PAGE_SURVEY=EMBZ.Wu;EMBZ.jv=67108864;EMBZ.FLAG2_SERVE_MOBILE_HQ_VIDEO=EMBZ.jv;EMBZ.iv=134217728;EMBZ.FLAG2_SAFETY_CONTENT_MODE=EMBZ.iv;EMBZ.Zu=268435456;
EMBZ.FLAG2_HIDE_PROMO_ACTIVITY_SUBSCRIPTIONS=EMBZ.Zu;EMBZ.cv=536870912;EMBZ.FLAG2_MOBILE_APP_OPTOUT=EMBZ.cv;EMBZ.av=1073741824;EMBZ.FLAG2_HTML5_BETA=EMBZ.av;EMBZ.Pv=1;EMBZ.FLAG3_LITE_WATCH=EMBZ.Pv;EMBZ.xv=2;EMBZ.FLAG3_ANNOTATIONS_EDITOR_WATCH_PAGE_DEFAULT_ON=EMBZ.xv;EMBZ.Zv=4;EMBZ.FLAG3_WATCH5_OPTIN=EMBZ.Zv;EMBZ.Av=8;EMBZ.FLAG3_CAPTIONS_DEFAULT_OFF=EMBZ.Av;EMBZ.zv=16;EMBZ.FLAG3_AUTO_CAPTIONS_DEFAULT_ON=EMBZ.zv;EMBZ.Qv=32;EMBZ.FLAG3_LITE_WATCH_OPT_OUT=EMBZ.Qv;EMBZ.Ev=64;
EMBZ.FLAG3_FBPROMO_OPT_OUT=EMBZ.Ev;EMBZ.Fv=128;EMBZ.FLAG3_HIDE_CHROME_PROMOS=EMBZ.Fv;EMBZ.Iv=256;EMBZ.FLAG3_HOMEPAGE_ALL_VS_SUB_VIEW=EMBZ.Iv;EMBZ.Tv=512;EMBZ.FLAG3_MYVIDEOSMANAGER_BETA_OPTOUT=EMBZ.Tv;EMBZ.Hv=1024;EMBZ.FLAG3_HIDE_VIDEO_EDITOR_GUIDED_HELP=EMBZ.Hv;EMBZ.Xv=2048;EMBZ.FLAG3_SAFETY_MODE_CHANGED_MANUALLY=EMBZ.Xv;EMBZ.Rv=4096;EMBZ.FLAG3_LIVE_COMMENTS_SCROLL=EMBZ.Rv;EMBZ.wk=8192;EMBZ.FLAG3_USE_FLASH_EMBED_CODE=EMBZ.wk;EMBZ.yv=16384;EMBZ.FLAG3_AUTOPLAY_PLAYLISTS_OFF=EMBZ.yv;EMBZ.Wv=32768;
EMBZ.FLAG3_QUICKLIST_COLLAPSED=EMBZ.Wv;EMBZ.Gv=65536;EMBZ.FLAG3_HIDE_CMS_DETAIL_GUIDED_HELP=EMBZ.Gv;EMBZ.Yv=131072;EMBZ.FLAG3_USE_IFRAME_EMBED_CODE=EMBZ.Yv;EMBZ.Ov=262144;EMBZ.FLAG3_HTML5_OPT_OUT=EMBZ.Ov;EMBZ.Dv=524288;EMBZ.FLAG3_EMERALD_SEA_YT_OPT_OUT=EMBZ.Dv;EMBZ.Sv=1048576;EMBZ.FLAG3_MINIMIZE_SIGNUP_PROMO=EMBZ.Sv;EMBZ.Jv=2097152;EMBZ.FLAG3_HOMEPAGE_FEED_OPT_IN=EMBZ.Jv;EMBZ.Lv=4194304;EMBZ.FLAG3_HOMEPAGE_FEED_OPT_OUT=EMBZ.Lv;EMBZ.Kv=8388608;EMBZ.FLAG3_HOMEPAGE_FEED_OPT_IN_PROMO_DISMISSED=EMBZ.Kv;
EMBZ.Mv=16777216;EMBZ.FLAG3_HOMEPAGE_FEED_VIEW1=EMBZ.Mv;EMBZ.Nv=33554432;EMBZ.FLAG3_HOMEPAGE_FEED_VIEW2=EMBZ.Nv;EMBZ.Bv=67108864;EMBZ.FLAG3_CREATE_PROMO_OPT_OUT=EMBZ.Bv;EMBZ.wv=134217728;EMBZ.FLAG3_240P_LIGHT_OPT_IN=EMBZ.wv;EMBZ.Cv=268435456;EMBZ.FLAG3_CREATIVE_COMMONS_PROMO_OPT_OUT=EMBZ.Cv;EMBZ.Vv=536870912;EMBZ.FLAG3_PARTNER_EMAIL_UPDATES_PROMO_OPT_OUT=EMBZ.Vv;EMBZ.Uv=1073741824;EMBZ.FLAG3_MY_REV_SHARE_MOVE_NOTIFICATION=EMBZ.Uv;EMBZ.$v=1;EMBZ.FLAG4_ENHANCE_PROMO_OPT_OUT=EMBZ.$v;EMBZ.ew=2;
EMBZ.FLAG4_YPP_HIDE_NEEDS_SIGNED_CONTRACT_BOX=EMBZ.ew;EMBZ.bw=4;EMBZ.FLAG4_HIDE_IVPE_PROMO_BOX=EMBZ.bw;EMBZ.aw=8;EMBZ.FLAG4_HIDE_HOMEPAGE_GUIDED_HELP=EMBZ.aw;EMBZ.cw=16;EMBZ.FLAG4_HIDE_MONETIZATION_CONGRATULATIONS=EMBZ.cw;EMBZ.dw=32;EMBZ.FLAG4_HTML5_PREFERRED=EMBZ.dw;var EMBze=function(a){for(var b=[],c=EMBxe,d=a.elements,e,f=0;e=d[f];f++)if(!(e.disabled||"fieldset"==e.tagName.toLowerCase())){var g=e.name;switch(e.type.toLowerCase()){case "file":case "submit":case "reset":case "button":break;case "select-multiple":e=EMBye(e);if(e!=EMBd)for(var h,i=0;h=e[i];i++)c(b,g,h);break;default:h=EMBye(e),h!=EMBd&&c(b,g,h)}}d=a.getElementsByTagName("input");for(f=0;e=d[f];f++)if(e.form==a&&"image"==e.type.toLowerCase())g=e.name,c(b,g,e.value),c(b,g+".x","0"),c(b,g+".y","0");
return b.join("&")},EMBxe=function(a,b,c){a.push(encodeURIComponent(b)+"="+encodeURIComponent(c))},EMBye=function(a){var b=a.type;if(!EMBca(b))return EMBd;switch(b.toLowerCase()){case "checkbox":case "radio":return a.checked?a.value:EMBd;case "select-one":return b=a.selectedIndex,0<=b?a.options[b].value:EMBd;case "select-multiple":for(var b=[],c,d=0;c=a.options[d];d++)c.selected&&b.push(c.value);return b.length?b:EMBd;default:return EMBca(a.value)?a.value:EMBd}};var EMBAe=EMBd;"undefined"!=typeof XMLHttpRequest?EMBAe=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(EMBAe=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var EMBBe=function(a){switch(a&&"status"in a?a.status:-1){case 0:case 200:case 204:case 304:return EMBc;default:return EMBe}};var EMBCe=function(a,b,c,d,e){var f=EMBAe&&EMBAe();if("open"in f){f.onreadystatechange=function(){4==(f&&"readyState"in f?f.readyState:0)&&b&&b(f)};c=(c||"GET").toUpperCase();d=d||"";f.open(c,a,EMBc);a="POST"==c;if(e)for(var g in e)f.setRequestHeader(g,e[g]),"content-type"==g.toLowerCase()&&(a=EMBe);a&&f.setRequestHeader("Content-Type","application/x-www-form-urlencoded");f.send(d)}},EMBEe=function(a,b){var c=b.format||"JSON";b.Cm&&(a=EMB2c()+a);var d=b.Xc;d&&(a=EMB$c(a,d));var d=b.Gs||"",e=b.Fj;
d&&e&&EMBa(Error());e&&(d=EMB9c(e));EMBCe(a,function(a){var d=EMBBe(a),e=EMBd;if(d||400<=a.status&&500>a.status)e=EMBDe(c,a);if(d)a:{switch(c){case "XML":d=0==parseInt(e&&e.return_code,10);break a;case "RAW":d=EMBc;break a}d=!!e}var e=e||{},i=b.Rb||EMBf;d?b.za&&b.za.call(i,a,e):b.Yd&&b.Yd.call(i,a,e);b.qj&&b.qj.call(i,a,e)},b.method,d,b.headers)},EMBDe=function(a,b){var c=EMBd;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=EMBJd(d));
break;case "XML":if(d=(d=b.responseXML)?EMBFe(d):EMBd)c={},EMBq(d.getElementsByTagName("*"),function(a){c[a.tagName]=EMBGe(a)})}return c},EMBFe=function(a){return!a?EMBd:(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:EMBd},EMBGe=function(a){var b="";EMBq(a.childNodes,function(a){b+=a.nodeValue});return b},EMBHe=EMBg("yt.net.ajax.tokenMap_")||{};EMBn("yt.net.ajax.tokenMap_",EMBHe);var EMBIe=EMBg("yt.dom.getNextId_");if(!EMBIe){EMBIe=function(){return++EMBJe};EMBn("yt.dom.getNextId_",EMBIe);var EMBJe=0}
var EMBKe=function(a){var b=a.cloneNode(EMBe);"TR"==b.tagName||"SELECT"==b.tagName?EMBq(a.childNodes,function(a){b.appendChild(EMBKe(a))}):b.innerHTML=a.innerHTML;return b},EMBLe=function(a,b){a=EMBC(a);b=EMBC(b);return!!EMBYb(a,function(a){return a===b},EMBc,EMBb)},EMBMe=function(a,b){return EMBZb(a,EMBd,b)},EMBNe=function(a,b){var c=EMBHb(a,EMBd,b);return c.length?c[0]:EMBd},EMBOe=function(a,b){return EMBD(a,b)},EMBPe=function(a,b){if(a in b)return b[a];var c=a.charAt(0).toUpperCase()+a.substr(1);
if("webkit"+c in b)return b["webkit"+c];if("moz"+c in b)return b["moz"+c];if("o"+c in b)return b["o"+c];if("ms"+c in b)return b["ms"+c]};var EMBQe=EMBg("yt.pubsub.instance_")||new EMBP;EMBP.prototype.subscribe=EMBP.prototype.e;EMBP.prototype.unsubscribeByKey=EMBP.prototype.xi;EMBP.prototype.publish=EMBP.prototype.c;EMBP.prototype.clear=EMBP.prototype.clear;EMBn("yt.pubsub.instance_",EMBQe);var EMBRe=function(a,b){var c=EMBg("yt.pubsub.instance_");c&&c.subscribe(a,function(){var a=arguments;EMBM(function(){b.apply(EMBf,a)},0)},EMBb)},EMBSe=function(a,b){var c=EMBg("yt.pubsub.instance_");c&&c.publish.apply(c,arguments)};var EMBUe=function(a,b){var c="scriptload-"+EMBya(a),d=document.getElementById(c),e=d&&EMBY(d,"loaded"),f=d&&!e;if(e)b&&b();else if(f)b&&EMBRe(c,b);else{d&&(c="scriptload-"+(Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^EMBm()).toString(36)));b&&EMBRe(c,b);var g=EMBTe(a,c,function(){if(!EMBY(g,"loaded")){EMBue(g,"loaded","true");EMBSe(c);var a=c,b=EMBg("yt.pubsub.instance_");b&&b.clear(a)}})}},EMBTe=function(a,b,c){var d=document.createElement("script");
d.id=b;d.onload=c;d.onreadystatechange=function(){if("loaded"==d.readyState||"complete"==d.readyState)d.onload()};d.src=a;a=document.getElementsByTagName("head")[0];a.insertBefore(d,a.firstChild);return d};var EMBWe=function(a,b,c,d,e,f,g,h){var i,j=c.offsetParent;if(j){var k="HTML"==j.tagName||"BODY"==j.tagName;if(!k||"static"!=EMBYd(j,"position"))i=EMB2d(j),k||(i=EMBWa(i,new EMBr(j.scrollLeft,j.scrollTop)))}j=EMB9d(a);if(k=EMB4d(a)){var l=new EMBR(k.left,k.top,k.right-k.left,k.bottom-k.top),k=Math.max(j.left,l.left),n=Math.min(j.left+j.width,l.left+l.width);if(k<=n){var m=Math.max(j.top,l.top),l=Math.min(j.top+j.height,l.top+l.height);if(m<=l)j.left=k,j.top=m,j.width=n-k,j.height=l-m}}k=EMBFb(a);
m=EMBFb(c);if(k.N!=m.N){var n=k.N.body,m=m.N.parentWindow||m.N.defaultView,l=new EMBr(0,0),p=EMBB(n)?EMBB(n).parentWindow||EMBB(n).defaultView:window,q=n;do{var r=p==m?EMB2d(q):EMB5d(q);l.x+=r.x;l.y+=r.y}while(p&&p!=m&&(q=p.frameElement)&&(p=p.parent));n=EMBWa(l,EMB2d(n));EMBt&&!EMB_b(k)&&(n=EMBWa(n,EMB0b(k)));j.left+=n.x;j.top+=n.y}a=(b&4&&EMB3d(a)?b^2:b)&-5;b=new EMBr(a&2?j.left+j.width:j.left,a&1?j.top+j.height:j.top);i&&(b=EMBWa(b,i));e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var o;if(g&&(o=
EMB4d(c))&&i)o.top-=i.y,o.right-=i.x,o.bottom-=i.y,o.left-=i.x;return EMBVe(b,c,d,f,o,g,h)},EMBVe=function(a,b,c,d,e,f,g){var a=a.da(),h=0,i=(c&4&&EMB3d(b)?c^2:c)&-5,c=EMBT(b),g=g?g.da():c.da();if(d||0!=i)i&2?a.x-=g.width+(d?d.right:0):d&&(a.x+=d.left),i&1?a.y-=g.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){h=a;d=0;if(65==(f&65)&&(h.x<e.left||h.x>=e.right))f&=-2;if(132==(f&132)&&(h.y<e.top||h.y>=e.bottom))f&=-5;if(h.x<e.left&&f&1)h.x=e.left,d|=1;if(h.x<e.left&&h.x+g.width>e.right&&f&16)g.width=
Math.max(g.width-(h.x+g.width-e.right),0),d|=4;if(h.x+g.width>e.right&&f&1)h.x=Math.max(e.right-g.width,e.left),d|=1;f&2&&(d|=(h.x<e.left?16:0)|(h.x+g.width>e.right?32:0));if(h.y<e.top&&f&4)h.y=e.top,d|=2;if(h.y>=e.top&&h.y+g.height>e.bottom&&f&32)g.height=Math.max(g.height-(h.y+g.height-e.bottom),0),d|=8;if(h.y+g.height>e.bottom&&f&4)h.y=Math.max(e.bottom-g.height,e.top),d|=2;f&8&&(d|=(h.y<e.top?64:0)|(h.y+g.height>e.bottom?128:0));h=d}else h=256;if(h&496)return h}EMB_d(b,a);if(!EMBXa(c,g))e=EMB_b(EMBFb(EMBB(b))),
EMBt&&(!e||!EMBw("8"))?(a=b.style,e?(e=EMBde(b),b=EMBge(b),a.pixelWidth=g.width-b.left-e.left-e.right-b.right,a.pixelHeight=g.height-b.top-e.top-e.bottom-b.bottom):(a.pixelWidth=g.width,a.pixelHeight=g.height)):(b=b.style,EMBu?b.MozBoxSizing="border-box":EMBv?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(g.width,0)+"px",b.height=Math.max(g.height,0)+"px");return h};var EMBXe={},EMBYe="ontouchstart"in document,EMBZe=function(a,b){var c=EMBXe[a].maxNumParents[b],d;0<c?d=c:-1!=a.indexOf("mouse")&&(d=2);return d},EMB_e=function(a,b,c){return EMBYb(b,function(b){return EMBz(b,a)},EMBc,c)||EMBd},EMBH=function(a){if("HTML"!=a.target.tagName&&a.type in EMBXe){var b=EMBXe[a.type],c;for(c in b.Db){var d=EMBZe(a.type,c),e=EMB_e(c,a.target,d);if(e){var f=EMBc;b.checkRelatedTarget[c]&&a.relatedTarget&&EMBYb(a.relatedTarget,function(a){return a==e},EMBc,d)&&(f=EMBe);f&&b.c(c,
e,a.type,a)}}}};EMBG(document,"click",EMBH);EMBG(document,"mouseover",EMBH);EMBG(document,"mouseout",EMBH);EMBG(document,"keydown",EMBH);EMBG(document,"keyup",EMBH);EMBG(document,"keypress",EMBH);EMBG(document,"cut",EMBH);EMBG(document,"paste",EMBH);EMBYe&&(EMBG(document,"touchstart",EMBH),EMBG(document,"touchend",EMBH),EMBG(document,"touchcancel",EMBH));var EMB0e=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};EMBn("yt.uix.widgets_",EMB0e);var EMB1e=function(a){var a=a.getInstance(),b=EMB_(a);!(b in EMB0e)&&a.rp()&&(a.sg(),EMB0e[b]=a)};var EMB2e=function(){this.eg={}};EMB=EMB2e.prototype;EMB.Sw=!!eval("/*@cc_on!@*/false");EMB.rp=function(){return EMBc};EMB.addBehavior=function(a,b,c,d,e){var c=EMB_(this,c),f=EMBk(b,this);if(!(a in EMBXe))EMBXe[a]=new EMBP,EMBXe[a].maxNumParents={},EMBXe[a].checkRelatedTarget={};a=EMBXe[a];a.e(c,f);a.maxNumParents[c]=d;a.checkRelatedTarget[c]=e;this.eg[b]=f};EMB.pg=function(a,b,c){var d=this.getData(a,b);if(d&&(d=EMBg(d))){var e=EMBRa(arguments,2);EMBSa(e,0,0,a);d.apply(EMBd,e)}};
EMB.getData=function(a,b){return EMBY(a,b)};EMB.setData=function(a,b,c){EMBue(a,b,c)};var EMB_=function(a,b){return"yt-uix"+(a.He?"-"+a.He:"")+(b?"-"+b:"")};var EMB0=function(){this.eg={}};EMBo(EMB0,EMB2e);EMBaa(EMB0);EMB=EMB0.prototype;EMB.He="tooltip";EMB.Ii=0;EMB.sg=function(){this.addBehavior("mouseover",this.Di);this.addBehavior("mouseout",this.og);this.addBehavior("click",this.og);this.addBehavior("touchstart",this.Al);this.addBehavior("touchend",this.Ei);this.addBehavior("touchcancel",this.Ei)};EMB.rp=function(){return!(this.Sw&&0==EMBsb.indexOf("6"))};
EMB.Di=function(a){if(!(this.Ii&&1E3>EMBm()-this.Ii)){var b=parseInt(this.getData(a,"tooltip-hide-timer"),10);b&&(EMBve(a,"tooltip-hide-timer"),window.clearTimeout(b));var b=EMBk(function(){EMB3e(this,a);EMBve(a,"tooltip-show-timer")},this),c=parseInt(this.getData(a,"tooltip-show-delay"),10)||0,b=EMBM(b,c);this.setData(a,"tooltip-show-timer",b.toString());if(a.title)this.setData(a,"tooltip-text",a.title),a.title=""}};
EMB.og=function(a){var b=parseInt(this.getData(a,"tooltip-show-timer"),10);window.clearTimeout(b);EMBve(a,"tooltip-show-timer");b=EMBk(function(){EMB4e(this,a);EMBve(a,"tooltip-hide-timer")},this);b=EMBM(b,50);this.setData(a,"tooltip-hide-timer",b.toString());if(b=this.getData(a,"tooltip-text"))a.title=b};EMB.Al=function(a,b,c){this.Ii=0;this.Di(EMB_e(EMB_(this),c.changedTouches[0].target,EMBZe(b,EMB_(this))),b)};
EMB.Ei=function(a,b,c){this.Ii=EMBm();this.og(EMB_e(EMB_(this),c.changedTouches[0].target,EMBZe(b,EMB_(this))),b)};var EMB5e=function(a,b,c){a.setData(b,"tooltip-text",c);a=a.getData(b,"content-id");if(a=EMBC(a))a.innerHTML=c};EMB0.prototype.Wb=function(a){return this.getData(a,"tooltip-text")||a.title};
var EMB3e=function(a,b){if(b){var c=a.Wb(b);if(c){var d=EMBC(EMB6e(a,b));if(!d){d=document.createElement("div");d.id=EMB6e(a,b);d.className=EMB_(a,"tip");var e=document.createElement("div");e.className=EMB_(a,"tip-body");var f=document.createElement("div");f.className=EMB_(a,"tip-arrow");var g=document.createElement("div");g.className=EMB_(a,"tip-content");var h=a.mg(b),i=EMB6e(a,b,"content");g.id=i;a.setData(b,"content-id",i);e.appendChild(g);h&&d.appendChild(h);d.appendChild(e);d.appendChild(f);
document.body.appendChild(d);EMB5e(a,b,c);c=EMBz(b,EMB_(a,"reverse"));a.Gl(b,d,e,h,f,5,c)&2&&a.Gl(b,d,e,h,f,1,!c);var j=EMB_(a,"tip-visible");EMBM(function(){EMBx(d,j)},0)}}}};
EMB0.prototype.Gl=function(a,b,c,d,e,f,g){EMBA(b,EMB_(this,"tip-reverse"),g);var h=0,i=1;g&&(h=1,i=0);g=EMBT(c);c.style.left="3px";if(d)d.style.left="3px",d.style.height=g.height+"px",d.style.width=g.width+"px";g.width+=6;c=a.offsetWidth/2;f=EMBWe(a,h,b,i,new EMBr(c-g.width/2,0),EMBd,f,g);d=EMB9d(b);h=EMB9d(a);i=h.left-d.left+c-5;g=g.width-10-6;a=this.getData(a,"force-tooltip-direction");i="left"==a?g:"right"==a?6:Math.max(Math.min(i,g),6);e.style.left=i+"px";e=d.left+i+5;a=h.left;g=h.left+h.width;
if(e>g)b.style.left=g-i+"px";else if(e<a)b.style.left=a-i+"px";return f};var EMB4e=function(a,b){if(b){var c=EMBC(EMB6e(a,b));c&&(EMB7e(c),document.body.removeChild(c),EMBve(b,"content-id"))}},EMB6e=function(a,b,c){var a=EMB_(a),d=b.__yt_uid_key;if(!d)d=EMBIe(),b.__yt_uid_key=d;b=a+d;c&&(b+="-"+c);return b};
EMB0.prototype.mg=function(a){var b=EMBd;if(EMBbb&&EMBz(a,EMB_(this,"masked")))(b=EMBC("yt-uix-tooltip-shared-mask"))?(b.parentNode.removeChild(b),EMBU(b)):(b=document.createElement("iframe"),b.src='javascript:""',b.id="yt-uix-tooltip-shared-mask",b.className=EMB_(this,"tip-mask"));return b};var EMB7e=function(a){var b=EMBC("yt-uix-tooltip-shared-mask"),c=b&&EMBYb(b,function(b){return b==a},EMBe,2);b&&c&&(b.parentNode.removeChild(b),EMBV(b),document.body.appendChild(b))};var EMB8e=function(a){EMB8e[" "](a);return a};EMB8e[" "]=function(){};!EMBt||EMBvb(9);var EMB9e=!EMBt||EMBvb(9),EMB$e=EMBt&&!EMBw("8");!EMBv||EMBw("528");EMBu&&EMBw("1.9b")||EMBt&&EMBw("8")||EMBgb&&EMBw("9.5")||EMBv&&EMBw("528");!EMBu||EMBw("8");var EMBaf=function(a,b){this.type=a;this.currentTarget=this.target=b};EMBo(EMBaf,EMBtd);EMB=EMBaf.prototype;EMB.u=function(){delete this.type;delete this.target;delete this.currentTarget};EMB.Cd=EMBe;EMB.cg=EMBc;EMB.stopPropagation=function(){this.Cd=EMBc};EMB.preventDefault=function(){this.cg=EMBe};var EMBbf=function(a,b){a&&this.se(a,b)};EMBo(EMBbf,EMBaf);EMB=EMBbf.prototype;EMB.target=EMBd;EMB.relatedTarget=EMBd;EMB.offsetX=0;EMB.offsetY=0;EMB.clientX=0;EMB.clientY=0;EMB.screenX=0;EMB.screenY=0;EMB.button=0;EMB.keyCode=0;EMB.charCode=0;EMB.ctrlKey=EMBe;EMB.altKey=EMBe;EMB.shiftKey=EMBe;EMB.metaKey=EMBe;EMB.lu=EMBe;EMB.pa=EMBd;
EMB.se=function(a,b){var c=this.type=a.type;EMBaf.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(EMBu){var e;a:{try{EMB8e(d.nodeName);e=EMBc;break a}catch(f){}e=EMBe}e||(d=EMBd)}}else if("mouseover"==c)d=a.fromElement;else if("mouseout"==c)d=a.toElement;this.relatedTarget=d;this.offsetX=EMBv||a.offsetX!==EMBb?a.offsetX:a.layerX;this.offsetY=EMBv||a.offsetY!==EMBb?a.offsetY:a.layerY;this.clientX=a.clientX!==EMBb?a.clientX:a.pageX;this.clientY=a.clientY!==
EMBb?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;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.metaKey=a.metaKey;this.lu=EMBab?a.metaKey:a.ctrlKey;this.state=a.state;this.pa=a;delete this.cg;delete this.Cd};EMB.stopPropagation=function(){EMBbf.k.stopPropagation.call(this);this.pa.stopPropagation?this.pa.stopPropagation():this.pa.cancelBubble=EMBc};
EMB.preventDefault=function(){EMBbf.k.preventDefault.call(this);var a=this.pa;if(a.preventDefault)a.preventDefault();else if(a.returnValue=EMBe,EMB$e)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};EMB.Ml=function(){return this.pa};EMB.u=function(){EMBbf.k.u.call(this);this.relatedTarget=this.currentTarget=this.target=this.pa=EMBd};var EMBcf=function(){},EMBdf=0;EMB=EMBcf.prototype;EMB.key=0;EMB.xd=EMBe;EMB.Vo=EMBe;EMB.se=function(a,b,c,d,e,f){EMBea(a)?this.Uo=EMBc:a&&a.handleEvent&&EMBea(a.handleEvent)?this.Uo=EMBe:EMBa(Error("Invalid listener argument"));this.ue=a;this.mo=b;this.src=c;this.type=d;this.capture=!!e;this.bi=f;this.Vo=EMBe;this.key=++EMBdf;this.xd=EMBe};EMB.handleEvent=function(a){return this.Uo?this.ue.call(this.bi||this.src,a):this.ue.handleEvent.call(this.ue,a)};var EMBef={},EMBff={},EMBgf={},EMBhf={},EMBif=function(a,b,c,d,e){if(b){if(EMBi(b)){for(var f=0;f<b.length;f++)EMBif(a,b[f],c,d,e);return EMBd}var d=!!d,g=EMBff;b in g||(g[b]={o:0,Ya:0});g=g[b];d in g||(g[d]={o:0,Ya:0},g.o++);var g=g[d],h=EMBia(a),i;g.Ya++;if(g[h]){i=g[h];for(f=0;f<i.length;f++)if(g=i[f],g.ue==c&&g.bi==e){if(g.xd)break;return i[f].key}}else i=g[h]=[],g.o++;f=EMBjf();f.src=a;g=new EMBcf;g.se(c,f,a,b,d,e);c=g.key;f.key=c;i.push(g);EMBef[c]=g;EMBgf[h]||(EMBgf[h]=[]);EMBgf[h].push(g);
a.addEventListener?(a==EMBf||!a.Ek)&&a.addEventListener(b,f,d):a.attachEvent(b in EMBhf?EMBhf[b]:EMBhf[b]="on"+b,f);return c}EMBa(Error("Invalid event type"))},EMBjf=function(){var a=EMBkf,b=EMB9e?function(c){return a.call(b.src,b.key,c)}:function(c){c=a.call(b.src,b.key,c);if(!c)return c};return b},EMBlf=function(a,b,c,d,e){if(EMBi(b))for(var f=0;f<b.length;f++)EMBlf(a,b[f],c,d,e);else if(d=!!d,a=EMBmf(a,b,d))for(f=0;f<a.length;f++)if(a[f].ue==c&&a[f].capture==d&&a[f].bi==e){EMBnf(a[f].key);break}},
EMBnf=function(a){if(!EMBef[a])return EMBe;var b=EMBef[a];if(b.xd)return EMBe;var c=b.src,d=b.type,e=b.mo,f=b.capture;c.removeEventListener?(c==EMBf||!c.Ek)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in EMBhf?EMBhf[d]:EMBhf[d]="on"+d,e);c=EMBia(c);e=EMBff[d][f][c];if(EMBgf[c]){var g=EMBgf[c];EMBMa(g,b);0==g.length&&delete EMBgf[c]}b.xd=EMBc;e.xo=EMBc;EMBof(d,f,c,e);delete EMBef[a];return EMBc},EMBof=function(a,b,c,d){if(!d.zb&&d.xo){for(var e=0,f=0;e<d.length;e++)d[e].xd?d[e].mo.src=
EMBd:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.xo=EMBe;0==f&&(delete EMBff[a][b][c],EMBff[a][b].o--,0==EMBff[a][b].o&&(delete EMBff[a][b],EMBff[a].o--),0==EMBff[a].o&&delete EMBff[a])}},EMBpf=function(a){var b,c=0,d=b==EMBd;b=!!b;if(a==EMBd)EMBYa(EMBgf,function(a){for(var e=a.length-1;0<=e;e--){var f=a[e];if(d||b==f.capture)EMBnf(f.key),c++}});else if(a=EMBia(a),EMBgf[a])for(var a=EMBgf[a],e=a.length-1;0<=e;e--){var f=a[e];if(d||b==f.capture)EMBnf(f.key),c++}},EMBmf=function(a,b,c){var d=EMBff;return b in
d&&(d=d[b],c in d&&(d=d[c],a=EMBia(a),d[a]))?d[a]:EMBd},EMBrf=function(a,b,c,d,e){var f=1,b=EMBia(b);if(a[b]){a.Ya--;a=a[b];a.zb?a.zb++:a.zb=1;try{for(var g=a.length,h=0;h<g;h++){var i=a[h];i&&!i.xd&&(f&=EMBqf(i,e)!==EMBe)}}finally{a.zb--,EMBof(c,d,b,a)}}return Boolean(f)},EMBqf=function(a,b){var c=a.handleEvent(b);a.Vo&&EMBnf(a.key);return c},EMBkf=function(a,b){if(!EMBef[a])return EMBc;var c=EMBef[a],d=c.type,e=EMBff;if(!(d in e))return EMBc;var e=e[d],f,g;if(!EMB9e){f=b||EMBg("window.event");var h=
EMBc in e,i=EMBe in e;if(h){if(0>f.keyCode||f.returnValue!=EMBb)return EMBc;a:{var j=EMBe;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(k){j=EMBc}if(j||f.returnValue==EMBb)f.returnValue=EMBc}}j=new EMBbf;j.se(f,this);f=EMBc;try{if(h){for(var l=[],n=j.currentTarget;n;n=n.parentNode)l.push(n);g=e[EMBc];g.Ya=g.o;for(var m=l.length-1;!j.Cd&&0<=m&&g.Ya;m--)j.currentTarget=l[m],f&=EMBrf(g,l[m],d,EMBc,j);if(i){g=e[EMBe];g.Ya=g.o;for(m=0;!j.Cd&&m<l.length&&g.Ya;m++)j.currentTarget=l[m],f&=EMBrf(g,l[m],d,
EMBe,j)}}else f=EMBqf(c,j)}finally{if(l)l.length=0;j.Vc()}return f}d=new EMBbf(b,this);try{f=EMBqf(c,d)}finally{d.Vc()}return f};var EMBsf=function(){};EMBo(EMBsf,EMBtd);EMB=EMBsf.prototype;EMB.Ek=EMBc;EMB.Xh=EMBd;EMB.Sk=function(a){this.Xh=a};EMB.addEventListener=function(a,b,c,d){EMBif(this,a,b,c,d)};EMB.removeEventListener=function(a,b,c,d){EMBlf(this,a,b,c,d)};
EMB.dispatchEvent=function(a){var b=a.type||a,c=EMBff;if(b in c){if(EMBj(a))a=new EMBaf(a,this);else if(a instanceof EMBaf)a.target=a.target||this;else{var d=a,a=new EMBaf(b,this);EMB5a(a,d)}var d=1,e,c=c[b],b=EMBc in c,f;if(b){e=[];for(f=this;f;f=f.Xh)e.push(f);f=c[EMBc];f.Ya=f.o;for(var g=e.length-1;!a.Cd&&0<=g&&f.Ya;g--)a.currentTarget=e[g],d&=EMBrf(f,e[g],a.type,EMBc,a)&&a.cg!=EMBe}if(EMBe in c)if(f=c[EMBe],f.Ya=f.o,b)for(g=0;!a.Cd&&g<e.length&&f.Ya;g++)a.currentTarget=e[g],d&=EMBrf(f,e[g],a.type,
EMBe,a)&&a.cg!=EMBe;else for(e=this;!a.Cd&&e&&f.Ya;e=e.Xh)a.currentTarget=e,d&=EMBrf(f,e,a.type,EMBe,a)&&a.cg!=EMBe;a=Boolean(d)}else a=EMBc;return a};EMB.u=function(){EMBsf.k.u.call(this);EMBpf(this);this.Xh=EMBd};var EMBtf=function(a){this.Qf=a;this.U=[]};EMBo(EMBtf,EMBtd);var EMBuf=[];EMB=EMBtf.prototype;EMB.H=function(a,b,c,d,e){EMBi(b)||(EMBuf[0]=b,b=EMBuf);for(var f=0;f<b.length;f++)this.U.push(EMBif(a,b[f],c||this,d||EMBe,e||this.Qf||this));return this};
EMB.Rk=function(a,b,c,d,e){if(EMBi(b))for(var f=0;f<b.length;f++)this.Rk(a,b[f],c,d,e);else{a:{c=c||this;e=e||this.Qf||this;d=!!d;if(a=EMBmf(a,b,d))for(b=0;b<a.length;b++)if(!a[b].xd&&a[b].ue==c&&a[b].capture==d&&a[b].bi==e){a=a[b];break a}a=EMBd}if(a)a=a.key,EMBnf(a),EMBMa(this.U,a)}return this};EMB.Pb=function(){EMBq(this.U,EMBnf);this.U.length=0};EMB.u=function(){EMBtf.k.u.call(this);this.Pb()};EMB.handleEvent=function(){EMBa(Error("EventHandler.handleEvent not implemented"))};EMBt||EMBu&&EMBw("1.9.3");var EMBwf=function(a,b){this.lg=a||1;this.Yf=b||EMBvf;this.tl=EMBk(this.wu,this);this.ul=EMBm()};EMBo(EMBwf,EMBsf);EMBwf.prototype.enabled=EMBe;var EMBvf=EMBf.window;EMB=EMBwf.prototype;EMB.hc=EMBd;EMB.setInterval=function(a){this.lg=a;this.hc&&this.enabled?(this.stop(),this.start()):this.hc&&this.stop()};
EMB.wu=function(){if(this.enabled){var a=EMBm()-this.ul;if(0<a&&a<0.8*this.lg)this.hc=this.Yf.setTimeout(this.tl,this.lg-a);else if(this.dispatchEvent("tick"),this.enabled)this.hc=this.Yf.setTimeout(this.tl,this.lg),this.ul=EMBm()}};EMB.start=function(){this.enabled=EMBc;if(!this.hc)this.hc=this.Yf.setTimeout(this.tl,this.lg),this.ul=EMBm()};EMB.stop=function(){this.enabled=EMBe;if(this.hc)this.Yf.clearTimeout(this.hc),this.hc=EMBd};EMB.u=function(){EMBwf.k.u.call(this);this.stop();delete this.Yf};
var EMBxf=function(a,b,c){EMBea(a)?c&&(a=EMBk(a,c)):a&&"function"==typeof a.handleEvent?a=EMBk(a.handleEvent,a):EMBa(Error("Invalid listener argument"));return 2147483647<b?-1:EMBvf.setTimeout(a,b||0)};new EMBP;var EMBzf=function(a,b){this.up=a;var c=b||EMBd;c||(c=EMByf(this.up));c=EMBna("__%s__","("+c.join("|")+")");this.Nu=RegExp(c,"g")},EMBAf=/__([a-z]+(?:_[a-z]+)*)__/g,EMBBf=function(a,b){var c=EMBC(a).innerHTML,c=c.replace(/^\s*(<\!--\s*)?/,""),c=c.replace(/(\s*--\>)?\s*$/,"");return new EMBzf(c,b)},EMByf=function(a){var b=[],c={};a.replace(EMBAf,function(a,e){e in c||(c[e]=EMBc,b.push(e))});return b};
EMBzf.prototype.Ud=function(a,b,c){return this.up.replace(this.Nu,EMBk(function(d,e){b&&(e=b(e));return c?a[e]||"":EMBwa(a[e]||"")},this))};if(!document.getElementById&&document.all)document.getElementById=function(a){return document.all[a]};var EMBCf=function(a){var b=EMBed("CONVERSION_URLS_DICT");b&&a in b&&EMBW(b[a])};var EMBDf=function(a,b,c,d,e,f,g){this.r=a;this.Jt=b;this.Zh=c;this.Yh=d;this.wo=!isNaN(parseInt(e,10));this.me=EMBd;if(this.wo)this.me=e;this.Dt=f||{};this.vo=!!g;window.__GOOGLEAPIS=window.__GOOGLEAPIS||{};window.__GOOGLEAPIS.gwidget=window.__GOOGLEAPIS.gwidget||{};window.__GOOGLEAPIS.gwidget.lang=this.Yh;if(this.wo)window.__GOOGLEAPIS["googleapis.config"]=window.__GOOGLEAPIS["googleapis.config"]||{},window.__GOOGLEAPIS["googleapis.config"].sessionIndex=this.me;this.Tk()};
EMBDf.prototype.Tk=function(){EMBUe("https://apis.google.com/js/plusone.js",EMBk(this.Vw,this))};EMBDf.prototype.Vw=function(){var a=EMBg("gapi.plusone.render");if(a){var b=Math.floor(1E4*Math.random()),c="__PLUS_ONE_CALLBACK_"+b,b="plusone-button-"+b;window[c]=EMBk(this.Yt,this);var d=document.createElement("div");d.id=b;c={callbackName:c,count:"false",href:this.Zh,size:"medium",source:"google:youtube"};this.vo&&(c.db=1);EMB5a(c,this.Dt);this.r.appendChild(d);EMBU(this.r);a(b,c)}};
EMBDf.prototype.Yt=function(a){"off"!=a.state&&(EMBqe("PLUS_ONE",this.Jt+""),this.vo&&EMBse(EMBL("https://plusone.google.com/_/+1/confirm",{url:a.url,source:"google:youtube"}),{width:480,height:550}))};var EMBEf=function(){this.eg={}};EMBo(EMBEf,EMB2e);EMBaa(EMBEf);EMBEf.prototype.He="expander";EMBEf.prototype.sg=function(){this.addBehavior("click",this.Il,"head");this.addBehavior("keypress",this.Jl,"head")};EMBEf.prototype.Il=function(a){EMBFf(this,a)};EMBEf.prototype.Jl=function(a,b,c){c&&13==c.keyCode&&EMBFf(this,a)};var EMBFf=function(a,b){var c=EMBMe(b,EMB_(a));c&&(EMBDb(c,EMB_(a,"collapsed")),a.pg(c,"expander-action"))};
EMBEf.prototype.collapse=function(a){if(a=EMBMe(a,EMB_(this)))EMBx(a,EMB_(this,"collapsed")),this.pg(a,"expander-action")};var EMBHf=function(a,b,c,d){this.r=a;this.Hk=EMBe;a=EMB2c()+"/share_ajax";EMBEe(a,{format:"JSON",Xc:{action_get_email:1,video_id:c,list:d},za:function(a,c){this.r.innerHTML=c.email_html;this.Mf();this.focus();var d=c.sharing_binary_url;d&&EMBGf(this,d,c.contacts,b)},Rb:this})};
EMBHf.prototype.Mf=function(){this.Hc=this.r.getElementsByTagName("form")[0];EMBG(this.Hc,"submit",EMBk(this.Ht,this));this.dx=EMBD("share-email-send",this.Hc);this.Kk=EMBD("share-email-success",this.r);this.It=EMBD("share-email-remail",this.Kk);EMBG(this.It,"click",EMBk(function(){EMBIf(this);this.focus()},this));this.al=EMBD("share-email-recipients",this.r);this.Zk=EMBD("share-email-note",this.r);this.qo=EMBD("share-email-preview-note",this.r);EMBG(this.Zk,"keyup",EMBk(this.Gt,this))};
var EMBGf=function(a,b,c,d){EMBUe(b,EMBk(function(){var a=EMBg("yt.sharing.ContactTools");a&&a.createContactTools(this.al,EMBd,c,d)},a))};EMBHf.prototype.nd=function(){this.Hc&&(this.Hk&&EMBIf(this),this.focus())};EMBHf.prototype.focus=function(){this.al.focus()};var EMBIf=function(a){a.Hk=EMBe;a.al.value="";a.Zk.value="";a.qo.innerHTML="";EMBV(a.Kk);EMBU(a.Hc)};EMBHf.prototype.Gt=function(){var a=this.Zk.value,a=a.substring(0,300),a=EMBwa(a),a=a.replace(/\n/g,"<br>");this.qo.innerHTML=a};
EMBHf.prototype.Ht=function(a){a.preventDefault();var b=EMBHb("button",EMBd,this.Hc)[0];b.disabled=EMBc;var c=EMBD("share-email-captcha",this.r),d=EMBD("share-email-error",this.r),e=EMBD("yt-alert-content",d),a=EMB2c()+EMB3c(this.Hc.action);EMBEe(a,{format:"JSON",method:"POST",Gs:EMBze(this.Hc),za:function(){this.Hk=EMBc;EMBU(this.Kk);EMBV(this.Hc);EMBV(d);EMBV(c)},Yd:function(a,b){if(b.captcha_html)c.innerHTML=b.captcha_html,EMBU(c);if(b.errors)e.innerHTML=b.errors.join("<br>"),EMBU(d)},qj:function(){b.disabled=
EMBe},Rb:this})};var EMBKf=function(a,b,c){this.r=a;a=EMB2c()+"/share_ajax";EMBEe(a,{format:"JSON",Xc:{action_get_embed:1,video_id:b,list:c},za:function(a,b){this.r.innerHTML=b.embed_html;this.Dr=b.legacy_url;this.Cr=b.legacy_code;this.Br=b.iframe_url;this.Ar=b.iframe_code;this.Mf();var c=EMBUc.getInstance();if(this.ud)this.ud.checked=!EMBZc("f1",EMBZ.xk);this.Sh.checked=EMBZc("f2",EMBZ.vk);if(this.Bb)this.Bb.checked=EMBZc("f2",EMBZ.rk);if(this.td)this.td.checked=EMBZc("f3",EMBZ.wk);c=c.get("ems");(c in this.Ea?this.Ea[c]:
EMBZa(this.Ea)).select();EMBJf(this);this.nd()},Rb:this})};EMBKf.prototype.Mf=function(){this.we=EMBD("share-embed-code",this.r);EMBG(this.we,"click",EMBk(this.Zt,this));EMBLf(this);EMBMf(this)};
var EMBLf=function(a){var b=EMBD("share-embed-size-list",a.r),c=EMBIb("share-embed-size-radio",b);a.Ea={};EMBq(c,function(a){EMBz(a,"share-embed-size-radio-custom")||(a=new EMBNf(a),this.Ea[a.name]=a)},a);var c=EMBZa(a.Ea).width/(EMBZa(a.Ea).height-30),d=EMBD("share-embed-size-radio-custom",b),c=new EMBOf(d,c);a.Ea[c.name]=c;a.Rt=c;EMB6b(b,EMBk(a.St,a),"share-embed-size");b=EMBD("share-embed-customize",b);EMBG(b,"keyup",EMBk(a.Tt,a))},EMBMf=function(a){var b={},c=EMBIb("share-embed-option",a.r);EMBq(c,
function(a){b[a.name]=a});a.ud=b["show-related"];a.ud&&EMBG(a.ud,"click",EMBk(a.Ns,a));a.Sh=b["delayed-cookies"];EMBG(a.Sh,"click",EMBk(a.Ms,a));a.Tn=b["use-https"];EMBG(a.Tn,"click",EMBk(a.Qs,a));a.Bb=b["use-hd"]||EMBd;a.Bb&&EMBG(a.Bb,"click",EMBk(a.Ps,a));a.td=b["use-flash-code"]||EMBd;a.td&&EMBG(a.td,"click",EMBk(a.Os,a))};EMBKf.prototype.nd=function(){this.focus()};EMBKf.prototype.focus=function(){this.we&&(this.we.focus(),this.we.select())};
var EMBJf=function(a){var b=a.Ar,c=a.Br;if(a.td&&a.td.checked)b=a.Cr,c=a.Dr;a.Sh.checked&&(c=c.replace("youtube.com","youtube-nocookie.com"));a.Tn.checked&&(c=c.split("//"),c[0]="https:",c=c.join("//"));var d={};a.ud&&!a.ud.checked&&(d.rel=0);a.Bb&&a.Bb.checked&&(d.hd=1);c=EMB$c(c,d);d=EMBPf(a);if(!d.width||200>d.width)d=EMBZa(a.Ea);b=b.replace(/__url__/g,EMBwa(c));b=b.replace(/__width__/g,d.width+"");b=b.replace(/__height__/g,d.height+"");b=EMBwa(b);if(b!=a.we.innerHTML)a.we.innerHTML=b},EMBPf=function(a){return EMB2a(a.Ea,
function(a){return a.qg.checked})||EMBd};EMB=EMBKf.prototype;EMB.Ns=function(){var a=this.ud.checked,b=EMBUc.getInstance();EMBYc("f1",EMBZ.xk,!a);b.save();EMBJf(this)};EMB.Ms=function(){var a=this.Sh.checked,b=EMBUc.getInstance();EMBYc("f2",EMBZ.vk,a);b.save();EMBJf(this)};EMB.Qs=function(){EMBJf(this)};EMB.Ps=function(){var a=this.Bb.checked,b=EMBUc.getInstance();EMBYc("f2",EMBZ.rk,a);b.save();if(a)for(var c in this.Ea)if(this.Ea[c].du){this.Ea[c].select();break}EMBJf(this)};
EMB.Os=function(){var a=this.td.checked,b=EMBUc.getInstance();EMBYc("f3",EMBZ.wk,a);b.save();EMBJf(this)};EMB.Zt=function(){this.focus()};EMB.St=function(a){a=this.Ea[EMBD("share-embed-size-radio",a.currentTarget).value];a.select();var b=EMBUc.getInstance();b.set("ems",a.name);b.save();EMBJf(this);a!=this.Rt&&this.focus()};EMB.Tt=function(){EMBJf(this)};
var EMBNf=function(a){this.name=a.value;this.qg=a;this.du=-1<this.name.indexOf("hd");this.width=parseInt(EMBY(this.qg,"width"),10);this.height=parseInt(EMBY(this.qg,"height"),10)};EMBNf.prototype.select=function(){this.qg.checked=EMBc;var a=EMBZb(this.qg,"li"),b=EMBZb(a,"ul"),b=EMBHb("li","selected",b);EMBq(b,function(a){EMBy(a,"selected")});EMBx(a,"selected")};
var EMBOf=function(a,b){EMBNf.call(this,a);this.lp=b;var c=EMBZb(a,"li");this.Fl=EMBD("share-embed-size-custom-width",c);this.El=EMBD("share-embed-size-custom-height",c);EMBG(this.Fl,"keyup",EMBk(this.Fu,this));EMBG(this.El,"keyup",EMBk(this.Eu,this))};EMBo(EMBOf,EMBNf);EMBOf.prototype.Fu=function(){this.width=parseInt(this.Fl.value,10);this.height=(Math.floor(this.width/this.lp)||0)+30;this.El.value=this.height+""};
EMBOf.prototype.Eu=function(){this.height=parseInt(this.El.value,10)-30;this.width=Math.ceil(this.height*this.lp)||0;this.Fl.value=this.width+""};var EMBQf=function(a,b,c,d,e,f){this.r=a;this.Cb=b||EMBd;this.Hf=c||EMBd;this.Ft=EMBe;this.is=e||EMBd;this.js=f||EMBe;this.Tk(d)},EMBRf=function(a){var b=["h","m","s"],c=EMBOa(b);c.reverse();var d={},a=a.toLowerCase().match(/\d+\s*[hms]?/g)||[],a=EMBIa(a,function(a){var b=(a.match(/[hms]/)||[""])[0];return b?(d[b]=parseInt(a.match(/\d+/)[0],10),EMBe):EMBc});for(a.reverse();a.length&&c.length;){var e=c.shift();e in d||(d[e]=parseInt(a.shift(),10))}if(a.length||59<d.s||59<d.m||9<d.h)return EMBd;var f=
"";EMBq(b,function(a){d[a]&&(f+=d[a]+a)});return f||EMBd};EMB=EMBQf.prototype;
EMB.Tk=function(a){var b=EMB2c()+"/share_ajax";EMBEe(b,{format:"JSON",Xc:{action_get_share_box:1,video_id:this.Cb,list:this.Hf,new_share_layout:EMBc},za:function(b,d){this.r.innerHTML=d.share_html;this.Er=d.url_short;this.Gn=d.url_long;this.Yh=d.lang;this.me=EMBd;if("session_index"in d)this.me=d.session_index;this.Mf();var e=EMBD("share-panel-services-dynamic",this.r);e&&new EMBDf(e,(this.Cb||this.Hf)+"",this.Gn,this.Yh,this.me,this.is,this.js);a&&a();this.nd()},Rb:this})};
EMB.Mf=function(){var a=EMBD("share-panel-show-url-options");EMBG(a,"click",EMBk(this.ws,this));a=EMBD("share-panel-show-more");EMBG(a,"click",EMBk(this.ts,this));a=EMBD("share-panel-embed",this.r);EMBG(a,"click",EMBk(this.qs,this));a=EMBD("share-panel-email",this.r);EMBG(a,"click",EMBk(this.os,this));(a=EMBD("share-panel-hangout",this.r))&&EMBG(a,"click",EMBk(this.rs,this));this.Fa=EMBD("share-panel-url",this.r);EMBG(this.Fa,"click",EMBk(this.xs,this));EMBG(this.Fa,"focus",EMBk(function(){EMBx(this.Fa,
"focused")},this));EMBG(this.Fa,"blur",EMBk(function(){EMBy(this.Fa,"focused")},this));this.gs=EMBD("share-panel-long-url",this.r);this.Ck=EMBD("share-panel-start-at",this.r);this.Zb=EMBD("share-panel-start-at-time",this.r);EMBG(this.Zb,"keyup",EMBk(this.ys,this));EMBG(this.Zb,"click",EMBk(this.vs,this));EMBG(this.Zb,"focus",EMBk(function(){EMBx(this.Zb,"focused")},this));EMBG(this.Zb,"blur",EMBk(function(){EMBy(this.Zb,"focused")},this));this.Bb=EMBD("share-panel-hd",this.r);this.Kn=EMBD("share-panel-include-list",
this.r);this.Qh=EMBD("share-panel-url-options",this.r);EMBG(this.Qh,"click",EMBk(this.Qn,this));this.ik=EMBD("share-panel-services",this.r);this.Bn=EMBD("share-panel-buttons",this.r);a=EMBD("share-panel-show-more",this.r);EMBG(a,"click",EMBk(this.us,this))};EMB.nd=function(){this.Fa&&!EMBz(this.Fa,"focused")&&(this.Fa.focus(),this.Fa.select())};
EMB.Qn=function(){if(!EMBz(this.Fa,"focused")){var a=this.Er;if(this.gs.checked)a=this.Gn;var b={};this.Bb&&this.Bb.checked&&(b.hd=1);if(this.Kn&&this.Kn.checked)b.list=this.Hf;var c=this.Ck.checked&&EMBRf(this.Zb.value);c&&(b.t=c);a=EMBL(a,b);if(this.Fa.value!=a)this.Fa.value=a}};EMB.ys=function(){this.Ft=EMBc;this.Ck.checked=EMBc;this.Qn()};EMB.vs=function(){this.Ck.checked=EMBc;if(!this.Zb.value.match(/[1-9]/))this.Zb.value=""};EMB.xs=function(){this.Fa.select()};
EMB.os=function(){var a=EMBEf.getInstance();a.collapse(this.Bn);a.collapse(this.Qh);a.collapse(this.ik);this.Ha&&EMBV(this.Ha);if(!this.Ga)this.Ga=EMBD("share-panel-email-container",this.r);EMBne(this.Ga);if(!EMBY(this.Ga,"disabled")&&EMBme(this.Ga))this.bo?this.bo.nd():this.bo=new EMBHf(this.Ga,this.me,this.Cb,this.Hf)};
EMB.rs=function(){var a=EMBed("PLAYER_REFERENCE")||EMBC("movie_player")||EMBC("video-player");a&&a.pauseVideo&&a.pauseVideo();var a=EMBL("https://talkgadget.google.com/hangouts",{hl:this.Yh,gid:"youtube",gd:this.Cb}),b=window.screen.height,c=Math.min(0.9*window.screen.width,1E3),b=Math.min(0.9*b,800);EMBqe("HANGOUT",this.Cb+"");EMBse(a,{width:c,height:b})};
EMB.qs=function(){var a=EMBEf.getInstance();a.collapse(this.Bn);a.collapse(this.Qh);a.collapse(this.ik);this.Ga&&EMBV(this.Ga);if(!this.Ha)this.Ha=EMBD("share-panel-embed-container",this.r);EMBne(this.Ha);if(!EMBY(this.Ha,"disabled")&&EMBme(this.Ha))this.io?this.io.nd():this.io=new EMBKf(this.Ha,this.Cb,this.Hf)};EMB.ws=function(){EMBEf.getInstance().collapse(this.ik);this.Ga&&EMBV(this.Ga);this.Ha&&EMBV(this.Ha)};
EMB.ts=function(){EMBEf.getInstance().collapse(this.Qh);this.Ga&&EMBV(this.Ga);this.Ha&&EMBV(this.Ha)};EMB.us=function(){this.Ga&&EMBV(this.Ga);this.Ha&&EMBV(this.Ha)};var EMBSf=["left","right","center"],EMBTf={id:0,Uf:0,Kh:7,Lh:50,Ww:80,Mh:95,Tb:15,uk:100,isVisible:EMBc,textAlign:EMBSf[2],ld:0,backgroundColor:"#080808",Fh:"#FFF",opacity:0.8},EMBUf={id:99,Uf:1,Kh:0,Lh:5,Mh:7,Tb:2,uk:32,textAlign:EMBSf[0]};var EMBVf=function(a){a=a||EMBTf;EMBl(this,a)};EMB=EMBVf.prototype;EMB.Kh=7;EMB.Lh=50;EMB.Mh=95;EMB.Ww=80;EMB.ld=0;EMB.textAlign="center";EMB.backgroundColor="#080808";EMB.Fh="#FFF";EMB.opacity=0.8;EMB.Tb=15;EMB.uk=32;EMB.isVisible=EMBc;EMB.fontFamily='"Arial Unicode Ms", Arial';EMB.fontSize=16;var EMBWf=function(a){this.zi=a.lk;this.jg=a.Uf;this.lb=a.lb||this.lb};EMB=EMBWf.prototype;EMB.zi=0;EMB.jg=0;EMB.lb=0;EMB.Pa=function(){return this.zi};EMB.yd=function(){return this.jg};EMB.toString=function(){return this.zi+", "+this.lb};var EMBXf=function(a){EMBWf.call(this,a);this.qi=a.text||this.qi;this.rh=a.jk||this.rh;this.oe=a.T.append||this.oe;this.Fo=a.T.row||this.Fo;this.Do=a.T.At||this.Do};EMBo(EMBXf,EMBWf);EMB=EMBXf.prototype;EMB.qi="";EMB.oe=EMBe;EMB.Fo=0;EMB.Do=0;EMB.rh=0;EMB.Wb=function(){return this.qi};
EMB.toString=function(){return this.zi+", "+this.lb+": "+this.qi};
var EMBYf=function(a){var b=a.firstChild&&a.firstChild.nodeValue||"",c=1E3*parseFloat(a.getAttribute("start")||0);a.getAttribute("t")&&(c=parseInt(a.getAttribute("t"),10));var d=1E3*parseFloat(a.getAttribute("dur")||0);a.getAttribute("d")&&(d=parseFloat(a.getAttribute("d")));var e=parseInt(a.getAttribute("w"),10)||0,b={lk:c,lb:d,text:b,jk:e,Uf:5,T:{}};if(a.getAttribute("r"))b.T.row=parseInt(a.getAttribute("r"),10);if(a.getAttribute("c"))b.T.At=parseInt(a.getAttribute("c"),10);if(a.getAttribute("append"))b.Uf=
6,b.T.append=EMBc;return new EMBXf(b)},EMBZf=function(a){EMBWf.call(this,a);this.id=a.jk||this.id;this.T=a.T};EMBo(EMBZf,EMBWf);EMBZf.prototype.id=0;EMBZf.prototype.T=EMBd;EMBZf.prototype.md="";EMBZf.prototype.th=EMBe;var EMB_f=function(){return new EMBZf({lk:-2147483648,lb:4294967295,T:EMBTf})};var EMB0f=function(a){this.Ch=[];this.Dh=[];this.Rf={};if(a&&a&&a.firstChild)switch(this.wd=a,this.wd.firstChild.tagName){case "timedtext":for(var a=this.wd.firstChild.childNodes,b=0,c=a.length;b<c;b++)switch(a[b].tagName){case "window":var d=a[b],e=parseInt(d.getAttribute("id"),10),f=EMBb;a:{var g=this.Rf[e];if(!d.getAttribute("t")&&!d.getAttribute("start"))f=EMBd;else{f=parseInt(d.getAttribute("t"),10);d.getAttribute("start")&&(f=1E3*parseFloat(d.getAttribute("start")));if(g)g.Pa()+g.lb>=f?g.lb=
f:g=EMBd;switch(d.getAttribute("op")){case "kill":f=EMBd;break a;case "define":g=EMBd}g?g.$w=EMBc:g=EMB_f();var h={};EMBl(h,g?g.T:EMBTf);if(d.getAttribute("id"))h.id=d.getAttribute("id");if(d.getAttribute("op"))h.ax=d.getAttribute("op");if(d.getAttribute("rc"))h.Tb=parseInt(d.getAttribute("rc"),10);if(d.getAttribute("cc"))h.uk=parseInt(d.getAttribute("cc"),10);if(d.getAttribute("ap"))g=parseInt(d.getAttribute("ap"),10),h.Kh=0>g||8<g?7:g;if(d.getAttribute("ah"))h.Lh=parseInt(d.getAttribute("ah"),10);
if(d.getAttribute("av"))h.Mh=parseInt(d.getAttribute("av"),10);if(d.getAttribute("id"))h.id=parseInt(d.getAttribute("id"),10)||0;if(d.getAttribute("vs"))h.isVisible=Boolean(d.getAttribute("vs"));if(d.getAttribute("ju"))h.textAlign=EMBSf[parseInt(d.getAttribute("ju"),10)];if(d.getAttribute("pd")&&(h.ld=1,0==parseInt(d.getAttribute("pd"),10)))h.ld=0;if(d.getAttribute("bc"))h.backgroundColor=parseInt(d.getAttribute("bc"),16);if(d.getAttribute("bo"))h.opacity=parseInt(d.getAttribute("bo"),10)/100;if(d.getAttribute("fc"))h.Fh=
parseInt(d.getAttribute("fc"),16);if(d.getAttribute("sd"))h.Mj=parseInt(d.getAttribute("sd"),10);g=parseInt(d.getAttribute("d"),10)||1E3*parseFloat(d.getAttribute("dur"))||2147483647;d={lk:f,lb:g,T:h,jk:parseInt(d.getAttribute("id"),10)};f=new EMBZf(d)}}this.Rf[e]=f;this.Dh.push(f);break;case "text":if(e=EMBYf(a[b]),this.Ch.push(e),d=e.rh,this.Rf[d]){d=this.Rf[d];e=e.Wb();if(""!=d.md)d.th=EMBc;d.md+=e}}break;default:this.Dh.push(EMB_f());a=this.wd.firstChild.childNodes;b=0;for(c=a.length;b<c;b++)this.Ch.push(EMBYf(a[b]))}};
EMB0f.prototype.Ch=EMBd;EMB0f.prototype.Dh=EMBd;EMB0f.prototype.Rf=EMBd;var EMB1f=function(a){this.pp=a||window;this.Ke=[]};EMB=EMB1f.prototype;EMB.pp=EMBd;EMB.Ke=EMBd;EMB.H=function(a,b,c,d){c=EMBk(c,d||this.pp);a=EMBG(a,b,c);this.Ke.push(a);return a};EMB.Rk=function(a){EMB7b(a);EMBMa(this.Ke,a)};EMB.Pb=function(){for(var a=0;a<this.Ke.length;a++)EMB7b(this.Ke[a]);this.Ke=[]};var EMB2f=function(a){this.iu=a;this.ka=0;this.Kc=this.wl(EMBd)};EMB2f.prototype.find=function(a,b){for(var c=this.Kc,d=this.ka;0<=d;d--){for(;c.links[d]&&c.links[d].value<a;)c=c.links[d];b&&(b[d]=c)}return(c=c.Vb())&&c.value==a?c:EMBd};var EMB3f=function(a,b){var c=[],d=a.find(b,c);return d?d.Vb():c[0].Vb()},EMB4f=function(a,b){var c=[],d=a.find(b,c);return d?d:a.ml(b,c)};EMB=EMB2f.prototype;
EMB.ml=function(a,b){var c;for(c=0;0.25>this.iu()&&c<=this.ka&&15>c;)c++;for(;this.ka<c;)b[++this.ka]=this.Kc;for(var d=this.wl(a),e=0;e<=c;e++)d.links[e]=b[e].links[e],b[e].links[e]=d;return d};EMB.remove=function(a){var b=[];return(a=this.find(a,b))?this.hg(a,b):a};EMB.hg=function(a,b){for(var c=0;c<=a.getLevel();c++)b[c].links[c]=a.links[c];for(;!this.Kc.links[this.ka]&&0<this.ka;)this.ka--;return a};EMB.wl=function(a){return new EMB5f(a)};
EMB.getLength=function(){for(var a=0,b=this.Kc.Vb()||EMBd;b!=EMBd;b=b.Vb())a++;return a};EMB.toString=function(a){for(var a=a||0,b="",c=this.Kc;c.links[a];)c=c.links[a],b=b.concat(b.length?",":"",c.toString());return"["+b+"]"};var EMB5f=function(a){this.value=a;this.links=[]};EMB5f.prototype.getLevel=function(){return this.links.length-1};EMB5f.prototype.Vb=function(){return this.links[0]||EMBd};EMB5f.prototype.toString=function(){return""+this.value};var EMB7f=function(a,b){this.start=a;this.end=b;this.Ce=EMB6f++},EMB6f=0;EMB7f.prototype.contains=function(a,b){return a>=this.start&&a<this.end&&(b==EMBd||a<b&&b<=this.end)};var EMB8f=function(a){EMB2f.call(this,a)};EMB8f.prototype=new EMB2f(Math.random);EMB8f.prototype.constructor=EMB8f;
var EMB9f=function(a,b){for(var c=[],d=a.Kc,e=a.ka;0<=e;e--){for(;d.links[e]&&d.links[e].value<=b;)d=d.links[e];var f=c,g=d.Y[e],h=EMBb;for(h in g)f.push(g[1*h])}if(d.value==b)for(var i in d.bg)e=d.bg[i],e.start==e.end&&c.push(e);return c},EMB$f=function(a,b,c){for(var d=[],b=EMB3f(a,b),a=c==EMBd?EMBd:EMB3f(a,c);b&&b!=a;){var c=d,e=b.bg,f=EMBb;for(f in e)c.push(e[1*f]);b=b.Vb()}return d},EMBbg=function(a,b){var c=EMB4f(a,b.start),d=EMB4f(a,b.end);c.bg[b.Ce]=b;c.ri++;d.ri++;EMBag(b,c,d,function(a,
c){a.Y[c]&&a.Y[c][b.Ce]==b&&EMBa(Error("Interval already exists: "+b));a.Sa(c,b)})};
EMB8f.prototype.ml=function(a,b){var c=EMB2f.prototype.ml.call(this,a,b),d,e,f,g={};for(d=0;d<c.getLevel()&&c.links[d+1];d++){for(e in g)f=g[e],f.contains(c.value,c.links[d+1].value)?EMBcg(f,c.links[d],c.links[d+1],d):(c.Sa(d,f),delete g[e]);for(e in b[d].Y[d])f=b[d].Y[d][1*e],f.contains(c.value,c.links[d+1].value)?(EMBcg(f,c.links[d],c.links[d+1],d),g[e]=f):c.Sa(d,f)}for(e in g)c.Sa(d,g[e]);for(e in b[d].Y[d])c.Sa(d,b[d].Y[d][1*e]);g={};for(d=0;d<c.getLevel()&&b[d+1]!=this.Kc;d++){for(e in g)f=g[e],
f.contains(b[d].value,c.value)&&!f.contains(b[d+1].value,c.value)?(b[d].Sa(d,f),delete g[e]):EMBcg(f,b[d+1],c,d);for(e in b[d].Y[d])f=b[d].Y[d][1*e],f.contains(b[d+1].value,c.value)&&(EMBcg(f,b[d+1],c,d),g[e]=f)}for(e in g)b[d].Sa(d,g[e]);return c};
var EMBdg=function(a,b){var c=[],d=a.find(b.start,c),e=a.find(b.end);(!d||!e)&&EMBa(Error("Interval not found: "+b));EMBag(b,d,e,function(a,c){a.Y[c]&&a.Y[c][b.Ce]==b||EMBa(Error("Interval not found: "+b));a.yf(c,b)});delete d.bg[b.Ce];0==--d.ri&&a.hg(d,c);e=a.find(b.end,c);0==--e.ri&&a.hg(e,c)};
EMB8f.prototype.hg=function(a,b){var c,d,e,f={};for(c=a.getLevel();0<=c;c--){for(d in f){for(var g=e=f[d],h=b[c+1],i=b[c],j=c;h&&h!=i;)h.Sa(j,g),h=h.links[j];a.links[c]&&e.contains(b[c].value,a.links[c].value)&&(b[c].Sa(c,e),delete f[d])}for(d in b[c].Y[c])if(e=b[c].Y[c][1*d],!a.links[c]||!e.contains(b[c].value,a.links[c].value))b[c].yf(c,e),f[d]=e}f={};for(c=a.getLevel();0<=c;c--){for(d in f){g=e=f[d];h=a.links[c];i=a.links[c+1];for(j=c;h&&h!=i;)h.Sa(j,g),h=h.links[j];a.links[c]&&e.contains(b[c].value,
a.links[c].value)&&delete f[d]}for(d in a.Y[c])if(e=a.Y[c][1*d],a.links[c]&&(b[c]==this.Kc||!e.contains(b[c].value,a.links[c].value)))f[d]=e}return EMB2f.prototype.hg.call(this,a,b)};EMB8f.prototype.wl=function(a){return new EMBeg(a)};
var EMBag=function(a,b,c,d){for(var e=0;b.links[e]&&a.contains(b.value,b.links[e].value);){for(;e<b.getLevel()&&b.links[e+1]&&a.contains(b.value,b.links[e+1].value);)e++;b.links[e]&&(d(b,e),b=b.links[e])}for(;b!=c;){for(;0<e&&(!b.links[e]||!a.contains(b.value,b.links[e].value));)e--;d(b,e);b=b.links[e]}},EMBcg=function(a,b,c,d){for(;b&&b!=c;)b.yf(d,a),b=b.links[d]},EMBeg=function(a){EMB5f.call(this,a);this.bg={};this.Y=[];this.ri=0};EMBeg.prototype=new EMB5f(Math.random);
EMBeg.prototype.constructor=EMBeg;EMBeg.prototype.Sa=function(a,b){this.Y[a]||(this.Y[a]={});this.Y[a][b.Ce]=b};EMBeg.prototype.yf=function(a,b){this.Y[a]&&delete this.Y[a][b.Ce]};var EMBfg=function(a,b,c){EMB7f.call(this,a,b);a=c||{};this.Ca=a.id;if(a.priority!=EMBb)this.jg=a.priority;this.Tj=a.namespace||"";this.visible=a.visible||EMBe;this.pubsub=new EMBP};EMBfg.prototype=new EMB7f(0,0);EMB=EMBfg.prototype;EMB.constructor=EMBfg;EMB.Ca="";EMB.jg=10;EMB.Po=EMBe;EMB.ah=EMBc;EMB.visible=EMBe;EMB.pubsub=EMBd;EMB.Tj="";EMB.getId=function(){return this.Ca};EMB.yd=function(){return this.jg};
var EMBgg=function(a,b){return a.start==b.start?a.yd()==b.yd()?0:a.yd()<b.yd()?-1:1:a.start<b.start?-1:1};EMBLc();var EMB1=EMBGc("yt.player.logger");EMB1.Ki(EMBAc);var EMBhg=function(a){this.Vf=a.languageCode;this.pi=a.languageName;this.$o=a.languageOriginal;this.id=a.id;this.Sf=a.is_default};EMB=EMBhg.prototype;EMB.Vf=EMBd;EMB.pi=EMBd;EMB.$o=EMBd;EMB.id=EMBd;EMB.Sf=EMBe;var EMBig=function(a){a=a||{};this.Co=a.format;this.pd=a.languageCode||"";this.$h=a.languageName;this.ib=a.kind;this.Fb=a.name;this.Ca=a.id;this.Fn=a.is_servable;this.Sf=a.is_default;this.Fk=a.is_translateable};EMB=EMBig.prototype;EMB.$h=EMBd;EMB.ib=EMBd;EMB.Fb=EMBd;EMB.Ca=EMBd;EMB.Fn=EMBe;EMB.Sf=EMBe;EMB.Fk=EMBe;EMB.Co=1;EMB.getName=function(){return this.Fb};EMB.getFormat=function(){return this.Co};
var EMBjg=function(a){var b=[a.$h];if(a.ib){var c="asr"==a.ib?EMBgd("HTML5_SUBS_TRANSCRIBED"):a.ib;b.push(" (",c,")")}a.Fb&&b.push(" - ",a.Fb);a.Gc&&b.push(" >> ",a.Gc.pi);return b.join("")};EMBig.prototype.toString=function(){var a=[this.pd,": ",this.Fb," (",this.ib,")"];this.Gc&&a.push(" >> ",this.Gc.pi);return a.join("")};var EMBkg=function(a){this.jl=[];this.Bl=[];this.ui=[];if(a&&a.firstChild){this.wd=a;for(var a=this.wd.getElementsByTagName("track"),b=a.length,c=0;c<b;c++){var d=parseInt(a[c].getAttribute("formats"),10)||1,e=a[c].getAttribute("lang_code"),f=a[c].getAttribute("lang_translated"),g=a[c].getAttribute("name"),h=a[c].getAttribute("kind")||"",i=a[c].getAttribute("id"),j="true"==a[c].getAttribute("lang_default"),k="true"==a[c].getAttribute("cantran");this.Tf(new EMBig({format:d,languageCode:e,languageName:f,
name:g,kind:h,id:i,is_servable:EMBc,is_default:j,is_translateable:k}))}a=this.wd.getElementsByTagName("target");b=a.length;for(c=0;c<b;c++)d=a[c].getAttribute("lang_code"),e=a[c].getAttribute("lang_translated"),f=a[c].getAttribute("lang_original"),g=a[c].getAttribute("id"),h="true"==a[c].getAttribute("lang_default"),this.Bl.push(new EMBhg({languageCode:d,languageName:e,languageOriginal:f,id:g,is_default:h}))}};EMB=EMBkg.prototype;EMB.wd=EMBd;EMB.jl=EMBd;EMB.Bl=EMBd;EMB.ui=EMBd;EMB.yl=-1;EMB.Wf=function(){return this.ui};
EMB.di=function(){return this.jl};EMB.gi=function(){return this.yl};EMB.Ph=function(){return this.Bl};EMB.Tf=function(a){switch(a.ib){case "asr":this.jl.push(a);break;default:if(a.Sf)this.yl=this.ui.length;this.ui.push(a)}};var EMBlg=function(a,b,c){this.il=a;this.Cb=b;this.Yo=!!c};EMB=EMBlg.prototype;EMB.il="";EMB.Cb=EMBd;EMB.Yo=EMBe;EMB.yl=0;EMB.Mc=EMBd;EMB.Wf=function(){return this.Mc.Wf()};EMB.di=function(){return this.Mc.di()};EMB.Ph=function(){return this.Mc.Ph()};EMB.gi=function(){return this.Mc.gi()};EMB.Tf=function(a){this.Mc.Tf(a)};
var EMBng=function(a,b){var c=a.Mc.gi();0>c||EMBmg(a,a.Mc.Wf()[c],b)},EMBmg=function(a,b,c){var d=a.il,e={v:a.Cb,type:"track",lang:b.pd,name:b.getName(),kind:b.ib,fmt:b.getFormat()};if(b.Gc)e.tlang=b.Gc.Vf;d=EMB$c(d,e);EMB1.info("Loading caption track from: "+d);a=EMBk(function(a){a=new EMB0f(a.responseXML);c(a,b)},a);EMBCe(d,a)},EMBog=function(a,b){var c=a.il,d={type:"list",tlangs:1,v:a.Cb,fmts:Number(EMBc)};a.Yo&&(d.asrs=1);c=EMB$c(c,d);EMB1.info("Getting track list from: "+c);d=EMBk(function(a){this.Mc=
new EMBkg(a.responseXML);b()},a);EMBCe(c,d)};var EMB2=function(){this.eg={}};EMBo(EMB2,EMB2e);EMBaa(EMB2);EMB=EMB2.prototype;EMB.He="button";EMB.Wd=EMBd;EMB.sg=function(){this.addBehavior("click",this.Il);this.addBehavior("keydown",this.Ku);this.addBehavior("keypress",this.Jl)};
EMB.Il=function(a){if(a&&!a.disabled){if(EMBz(a,EMB_(this,"toggle"))){var b=EMBMe(a,EMB_(this,"group"));if(b&&this.getData(b,"button-toggle-group")){var b=EMBIb(EMB_(this),b),c=EMB_(this,"toggled");EMBq(b,function(b){b!=a?EMBy(b,c):EMBx(a,c)})}else EMBDb(a,EMB_(this,"toggled"))}EMBpg(this,a)&&(EMBqg(this,a),a.focus());this.pg(a,"button-action")}};
EMB.Ku=function(a,b,c){if(b=EMBpg(this,a)){var d=function(a){var b="";a.tagName&&(b=a.tagName.toLowerCase());return"ul"==b||"table"==b};if(d=d(b)?b:EMBUb(b,d)){var d=d.tagName.toLowerCase(),e;if("ul"==d)e=this.Ru;else if("table"==d)e=this.Qu;e&&EMBrg(this,a,b,c,EMBk(e,this))}}};
var EMBrg=function(a,b,c,d,e){var f=EMBme(c),g=9==d.keyCode;g||32==d.keyCode||13==d.keyCode?(d=EMBsg(a,c))?(b=d.firstElementChild!=EMBb?d.firstElementChild:EMBRb(d.firstChild),"a"==b.tagName.toLowerCase()?window.location=b.href:EMB9b(b,"click")):g&&EMBtg(a,b):f?27==d.keyCode?(EMBsg(a,c),EMBtg(a,b)):e(b,c,d):(a=EMBz(b,EMB_(a,"reverse"))?38:40,d.keyCode==a&&(EMB9b(b,"click"),d.preventDefault()))};EMB2.prototype.Jl=function(a,b,c){a=EMBpg(this,a);EMBme(a)&&c.preventDefault()};
var EMBsg=function(a,b){var c=EMB_(a,"menu-item-highlight"),d=EMBD(c,b);d&&EMBy(d,c);return d},EMBug=function(a,b,c){EMBx(c,EMB_(a,"menu-item-highlight"));b.setAttribute("aria-activedescendant",c.getAttribute("id"))};EMB2.prototype.Qu=function(a,b,c){var d=EMBsg(this,b),b=EMBNe("table",b),e=EMBNe("tr",b),e=EMBHb("td",EMBd,e).length,b=EMBHb("td",EMBd,b),d=EMBvg(d,b,e,c);-1!=d&&(EMBug(this,a,b[d]),c.preventDefault())};
EMB2.prototype.Ru=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=EMBsg(this,b),b=EMBHb("li",EMBd,b),d=EMBvg(d,b,1,c);EMBug(this,a,b[d]);c.preventDefault()}};
var EMBvg=function(a,b,c,d){var e=b.length,a=EMBHa(b,a);if(-1==a)if(38==d.keyCode)a=e-c;else{if(37==d.keyCode||38==d.keyCode||40==d.keyCode)a=0}else 39==d.keyCode?(a%c==c-1&&(a-=c),a+=1):37==d.keyCode?(0==a%c&&(a+=c),a-=1):38==d.keyCode?(a<c&&(a+=e),a-=c):40==d.keyCode&&(a>=e-c&&(a-=e),a+=c);return a},EMBqg=function(a,b){var c=EMBpg(a,b),d=EMBMe(c.activeButtonNode||c.parentNode,EMB_(a));d&&d!=b?(EMBtg(a,d),EMBM(EMBk(a.Ap,a,b),1)):EMBme(c)?EMBtg(a,b):a.Ap(b)};
EMB2.prototype.mg=function(a){if(!EMBbb||!EMBz(a,EMB_(this,"masked")))return EMBd;var b=a.iframeMask;if(!b)b=document.createElement("iframe"),b.src='javascript:""',b.className=EMB_(this,"menu-mask"),a.iframeMask=b;return b};
EMB2.prototype.Ap=function(a){if(a){var b=EMBpg(this,a);if(b){a.setAttribute("aria-pressed","true");a.setAttribute("aria-expanded","true");b.originalParentNode=b.parentNode;b.activeButtonNode=a;b.parentNode.removeChild(b);this.getData(a,"button-has-sibling-menu")?a.parentNode.appendChild(b):document.body.appendChild(b);var c=EMBMe(a,EMB_(this,"group")),d=!!this.getData(a,"button-menu-ignore-group");b.style.minWidth=(c&&!d?c.offsetWidth-2:a.offsetWidth-2)+"px";(d=this.mg(a))&&document.body.appendChild(d);
var d=EMBMe(a,EMB_(this,"group")),e=!!this.getData(a,"button-menu-ignore-group"),d=d&&!e?d:a,e=5,f=4;EMBz(a,EMB_(this,"reverse"))&&(e=4,f=5);EMBz(a,"flip")&&(EMBz(a,EMB_(this,"reverse"))?(e=6,f=7):(e=7,f=6));var g;if(this.getData(a,"button-has-sibling-menu")){var h=EMB1d(d);EMBt&&!EMBw("8")&&(h=EMBd);h&&(g=EMB9d(h),g=new EMBVd(-g.top,g.left,g.top,-g.left))}var h=new EMBr(0,1),i=this.mg(a);if(i){var j=EMBT(b);i.style.width=j.width+"px";i.style.height=j.height+"px";EMBWe(d,e,i,f,h,g)}EMBWe(d,e,b,f,
h,g);EMBU(b);this.pg(a,"button-menu-action",EMBc);EMBx(a,EMB_(this,"active"));c&&EMBx(c,EMB_(this,"group-active"));c=EMBk(this.yu,this,a);b=EMBG(document,"click",c);c=EMBG(document,"contextmenu",c);this.setData(a,"button-listener",b);this.setData(a,"button-context-menu-listener",c);this.Wd=a}}};
var EMBtg=function(a,b){if(b){var c=EMBpg(a,b);if(c){a.Wd=EMBd;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");EMBV(c);a.pg(b,"button-menu-action",EMBe);var d=a.mg(b);EMBM(function(){d&&d.parentNode&&d.parentNode.removeChild(d);if(c.originalParentNode)c.parentNode.removeChild(c),c.originalParentNode.appendChild(c),c.originalParentNode=EMBd,c.activeButtonNode=EMBd},1)}var e=EMBMe(b,EMB_(a,"group"));EMBy(b,EMB_(a,"active"));e&&EMBy(e,EMB_(a,"group-active"));if(e=a.getData(b,
"button-listener"))EMB7b(e),EMBve(b,"button-listener");if(e=a.getData(b,"button-context-menu-listener"))EMB7b(e),EMBve(b,"button-context-menu-listener")}};EMB2.prototype.getContent=function(a){return EMBD(EMB_(this,"content"),a)};
EMB2.prototype.yu=function(a,b){var c;c=b||window.event;c=c.target||c.srcElement;if(3==c.nodeType)c=c.parentNode;var d=EMBMe(c,EMB_(this));if(d){var d=EMBpg(this,d),e=EMBpg(this,a);if(d==e)return}if(!EMBMe(c,EMB_(this,"menu"))||EMBz(c,EMB_(this,"menu-item"))||EMBz(c,EMB_(this,"menu-close")))if(EMBtg(this,a),(d=EMBMe(c,EMB_(this,"menu")))&&this.getData(a,"button-menu-indicate-selected")){var e=EMBD(EMB_(this,"content"),a),f;EMByb&&"innerText"in c?f=c.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(f=[],EMBXb(c,
f,EMBc),f=f.join(""));f=f.replace(/ \xAD /g," ").replace(/\xAD/g,"");f=f.replace(/\u200B/g,"");EMByb||(f=f.replace(/ +/g," "));" "!=f&&(f=f.replace(/^\s*/,""));EMBSb(e,f);e=EMB_(this,"menu-item-selected");(d=EMBD(e,d))&&EMBy(d,e);EMBx(c.parentNode,e)}};var EMBpg=function(a,b){if(!b.widgetMenu){var c=a.getData(b,"button-menu-id"),c=c&&EMBC(c),d=EMB_(a,"menu");c?EMBx(c,d):c=EMBD(d,b);b.widgetMenu=c}return b.widgetMenu};new EMBP;var EMBwg=function(a){var b=0;-1!=a.indexOf("h")&&(a=a.split("h"),b=3600*a[0],a=a[1]);-1!=a.indexOf("m")&&(a=a.split("m"),b=60*a[0]+b,a=a[1]);-1!=a.indexOf("s")?(a=a.split("s"),b=1*a[0]+b):b=1*a+b;return b};var EMBxg=["corp.google.com","youtube.com"],EMByg="www.google.com/aclk,www.google.com/pagead/conversion,googleadservices.com/aclk,googleadservices.com/pagead/conversion,googleads.g.doubleclick.net/aclk,googleads.g.doubleclick.net/pagead/conversion".split(","),EMBzg=function(a,b){return RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i").test(a)};var EMB3=function(){this.ta=new EMBP};EMBo(EMB3,EMBtd);EMB3.prototype.e=function(a,b,c){this.od?EMBJ("ObjectMixin","Subscribing to "+a+" on a disposed object."):this.ta.e(a,b,c)};EMB3.prototype.L=function(a,b,c){this.od?EMBJ("ObjectMixin","Unsubscribing to "+a+" on a disposed object."):this.ta.L(a,b,c)};EMB3.prototype.c=function(a,b){this.od?EMBJ("ObjectMixin","Publishing "+a+" on a disposed object."):this.ta.c.apply(this.ta,arguments)};EMB3.prototype.u=function(){EMB3.k.u.call(this);EMBvd(this.ta)};var EMBCg=function(a,b,c,d,e){this.fk=a;b=b.replace(/&quot;/g,'"');this.Bi=unescape(b);a=EMBAg[c].split("x");this.size=new EMBs(parseInt(a[0],10),parseInt(a[1],10));this.yc=EMBBg[c];this.Qd=c;this.Qc=d;this.gu=!!e};EMB=EMBCg.prototype;EMB.fk="";EMB.Bi="";EMB.yc="";EMB.Qd="";EMB.size=EMBd;EMB.toString=function(){return this.yc+": "+this.Bi};
var EMBDg=function(){return navigator&&navigator.userAgent&&/android 2\.2/.test(navigator.userAgent.toLowerCase())},EMBEg={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':EMBc},EMBFg=function(){if(EMBDg())return EMBc;var a=document.createElement("video");return a&&a.canPlayType&&(a.canPlayType('video/mp4; codecs="avc1.42001E, mp4a.40.2"')||a.canPlayType('video/webm; codecs="vp8.0, vorbis"'))},EMBAg={light:"320x240",small:"320x240",medium:"640x360",large:"854x480",hd720:"1280x720",hd1080:"1920x1080",
highres:"2048x1536"},EMBBg={medium:"360p",large:"480p",hd720:"720p",hd1080:"1080p",highres:"Original"},EMBGg=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e.gu==b&&c.push(e)}return c},EMBHg=function(a,b){for(var c=!!b,d=[],e=0,f=a.length;e<f;++e){var g=a[e];d.push(new EMBCg(g.url,g.type,g.quality,g.itag,g.stereo3d))}if(EMBDg()){c=[];e=0;for(f=d.length;e<f;e++)EMBEg[d[e].Bi]&&c.push(d[e]);d=c}else if(e=EMBGg(d,c),d=!e.length&&c?EMBGg(d,EMBe):e,EMBFg()){c=[];e=[];f=document.createElement("video");
for(g=0;g<d.length;g++){var h=f.canPlayType(d[g].Bi);EMB1.info("Entry in format map: "+d[g].toString()+" | CanPlay: "+h);h&&"no"!=h&&-1==e.indexOf(d[g].yc)&&(e.push(d[g].yc),c.push(d[g]),EMB1.info("Adding "+d[g].toString()+" to supported formats."))}d=c}else d=[];return d},EMBIg=function(a,b){var c=0,d=0;EMBh(a)?EMB1.info("The video container size was null"):(c=a.width,d=a.height);var e=16/9;c>Math.round(e*d)&&(c=Math.round(e*d));for(var c=c*d,f=EMBd,d=0,e=b.length;d<e&&!(f=b[d],f.size.width*f.size.height*
("medium"==f.Qd?0.26:0.85)<c);d++);return f};var EMBJg=function(){var a;if(a=EMBFg()){a:{if(navigator.plugins&&0<navigator.plugins.length)for(a=0;a<navigator.plugins.length;a++)if(0<=navigator.plugins[a].name.indexOf("NVIDIA 3D Vision")){a=EMBc;break a}a=EMBe}if(a)a:{var b=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);if(b&&1<b.length&&4<=b[1]){b=document.createElement("embed");b.setAttribute("id","NvImageDetectionFFID");b.setAttribute("style","visibility: hidden");b.setAttribute("width",25);b.setAttribute("height",25);b.setAttribute("type",
"image/jps");EMBPb(document.documentElement,b);b=EMBC("NvImageDetectionFFID");try{if(b!=EMBd){a=27527<=b.NvGetDriverVersion();break a}}catch(c){}}a=EMBe}}return a};var EMBKg={"0":"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};var EMBMg=function(a){this.ta=new EMBP;this.Me=[];this.Yl=[];this.hj={};this.Jj={};EMBLg(this,a)};EMBo(EMBMg,EMB3);var EMBNg={Px:1,Qx:2,Rx:3},EMBOg=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;EMB=EMBMg.prototype;EMB.ca=EMBe;EMB.Tl=EMBc;EMB.Vl=EMBe;EMB.Wl=EMBc;EMB.jm=1;EMB.Ri=EMBe;EMB.bm=EMBe;EMB.im=EMBe;EMB.fm=3;EMB.lj="";EMB.$l=EMBe;EMB.Tc=0;EMB.tb=EMBe;EMB.Pl=EMBc;EMB.Ql=EMBe;EMB.xa=0;EMB.Kd=0;EMB.Rl=EMBe;EMB.Pd=EMBe;EMB.wg=EMBe;EMB.Z=0;EMB.Tg=EMBe;EMB.dd=EMBe;EMB.bj=1;
var EMBLg=function(a,b){var c=b||{};a.Vl="1"==c.iv_allow_external_links;a.Wl="0"!=c.iv_new_window;a.Ri="1"==c.infringe||"1"==c.muted;a.author=c.author;a.im="1"==c.cc_asr;a.lj=c.ttsurl;a.Dp=c.csi_page_type;a.Wg=c.sw;a.Nl=c.t;a.Pl="1"!=c.no_get_video_log;a.Ql="1"==c.tmi;a.Mm=c.iurlmaxres;a.zg=c.ptchn;a.Ag=c.oid;a.Rc=c.ptk;a.ra=c.plid;a.Le=c.hbid;a.rb=c.list;a.km=c.pyv_beacon_url;a.Ep=c.sdetail;a.Fp=c.sourceid;a.Nm=c.iurlsd;a.am=c.vq;a.Ip=c.approx_threed_layout||0;a.Tg="1"==c.threed_converted;a.Om=c.iurl;
a.Pd="1"==c.sendtmp;a.wg=!!a.Wg||a.Pd;a.Z=Number(c.start)||0;a.Lb=c.subscribed;a.title=c.title;a.n=c.video_id;a.yg=c.vcb;var d=c.watermark;if(d&&(d=d.split(","),2<=d.length))a.ij=d[1],a.rm=d[0];if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.ca=EMBc,a.Yl.push("ad")):a.$l=EMBc;if(c.allow_embed)a.Tl="1"==c.allow_embed;if(c.cc_load_policy)a.fm=EMBPg(c.cc_load_policy,2);if(c.idpj)a.Tc=EMBza(c.idpj);if(c.iv_load_policy)a.jm=EMBPg(c.iv_load_policy,1);if(c.url_encoded_fmt_stream_map)a.Me=EMBQg(c.url_encoded_fmt_stream_map);
if(c.keywords){var d=EMB5c(c.keywords,","),e={},f;for(f in d)e[f]=d[f]?d[f]:EMBc;a.Jj=e}if(c.length_seconds)a.xa=EMBza(c.length_seconds);if(c.ldpj)a.Kd=EMBza(c.ldpj);if(c.pyv_billable_url&&EMBzg(c.pyv_billable_url,EMByg))a.Qi=c.pyv_billable_url;if(c.pyv_conv_url&&EMBzg(c.pyv_conv_url,EMByg))a.lm=c.pyv_conv_url;if(c.rvs)a.qq=EMBQg(c.rvs);if(c.threed_module&&!c.threed_converted)a.$e=c.threed_module,a.Vg=6;if("1"==c.track_embed||c.tk)a.Rl=EMBc;c.watch_ajax_token&&(EMBHe.watch_actions_ajax=c.watch_ajax_token);
a.gh={};"convViewUrl"in c?(a.gh[1]=c.convViewUrl,a.xj=EMBc):a.xj=EMBe;"convLikeUrl"in c&&(a.gh[2]=c.convLikeUrl);"convDislikeUrl"in c&&(a.gh[3]=c.convDislikeUrl);a.hj=c},EMBRg=function(a){var b="",c={};if(a.format){b=a.format.fk;if(a.Rc&&a.zg&&a.Ag)c.ptk=a.Rc,c.oid=a.Ag,c.ptchn=a.zg;a.yg&&(c.vcb=EMBm())}return EMBL(b,c)};
EMBMg.prototype.Qg=function(){var a={};this.format&&(a.fmt=this.format.Qc);if(this.$e)a.threed=this.Vg;a.plid=this.ra;a.list=this.rb;if(this.n)a.videoId=this.n;this.Ri&&(a.infringe=1);this.tb&&(a.splay=1);this.yg&&(a.vcb=1);return a};var EMBSg=function(a){return!EMBj(a.Jj["yt:cc"])?EMBd:a.Jj["yt:cc"]},EMBTg=function(a,b){EMBEe(b,{format:"RAW",method:"GET",Rb:a,za:a.ru})};
EMBMg.prototype.ru=function(a){a=EMB7c(a.responseText);"fail"==a.status?this.c("onStatusFail",a):(EMBLg(this,a),this.c("videoinfo",a))};var EMBPg=function(a,b){var c=parseInt(a,10),d;a:{for(d in EMBNg)if(EMBNg[d]==c){d=EMBc;break a}d=EMBe}return d?c:b},EMBQg=function(a){a=a.split(",");return a=a.map(function(a){return EMB7c(a)})};var EMBUg={};EMBUg.embedded={Pg:EMBPe("fullScreenEnabled",document),Ye:EMBe,Lj:EMBc,Hh:EMBc};EMBUg.leanback={Ye:EMBe,Hh:EMBc};
var EMBWg=function(a){this.Nb=[];this.F=a.el||"detailpage";var b=EMBUg[this.F];b&&EMBl(this,b);this.Og="0"!=a.add_player_event_listeners;this.Pg=EMB4(this.Pg,a.fs);this.Zi=EMB4(this.Zi,"3"==a.autohide);this.autoplay=EMB4(this.autoplay,a.autoplay);this.Ja=EMB5(this.Ja,a.eurl);this.Oc=EMB5(this.Oc,a.framer);this.Wi=EMB4(this.Wi,a.fshd);this.jc=EMB5(this.jc,a.hl);this.Te=EMB4(this.Te,a.is_html5_mobile_device);this.Od=EMB4(this.Od,a.player_wide);this.loop=EMB4(this.loop,a.loop);this.Dg=EMB4(this.Dg,a.modestbranding);
this.Rg=EMB5(this.Rg,a.vq);this.mh=EMB5(this.mh,a.playerapiid);this.qb=EMB5(this.qb,a.ps);this.gj=EMB4(this.gj,a.playsinline);this.referrer=EMB5(this.referrer,a.referrer);this.ic=EMB5(this.ic,a.feature);this.region=EMB5(this.region,a.cr);this.eh=EMB5(this.eh,a.q);this.Si=EMB4(this.Si,a.logwatch);this.$a=EMB4(this.$a,a.controls);this.Hg=EMB4(this.Hg,a.showinfo);this.Uj=EMB4(this.Uj,a.rel);this.Ye=EMB4(this.Ye,a.enablesizebutton);this.Hh=EMB4(this.Hh,a.ss);this.Ig=EMB5(this.Ig,a.theme);this.Pc=EMB4(this.Pc,
a.use_native_controls);this.bk=EMB4(this.bk,a.ssl);this.pb=EMB4(this.pb,a.use_tablet_controls);this.hf=a.user_age==EMBb?this.hf:a.user_age;this.jf=EMB5(this.jf,a.user_gender);this.Id=EMB5(this.Id,a.sk);this.protocol=this.bk?"https":"http";if(b=a.BASE_YT_URL)EMBzg(b,EMBxg)?this.Kb=b:EMBOc("yt.player.EnvironmentData","BASE_YT_URL untrusted: "+b);EMBVg(this,a.fexp);this.Jp=a};EMB=EMBWg.prototype;EMB.Og=EMBc;EMB.Pg=EMBc;EMB.Zi=EMBe;EMB.autoplay=EMBe;EMB.Kb="/";EMB.Wi=EMBe;EMB.Te=EMBe;EMB.Od=EMBe;
EMB.loop=EMBe;EMB.Dg=EMBe;EMB.mh="";EMB.gj=EMBe;EMB.Si=EMBe;EMB.$a=EMBc;EMB.Hg=EMBc;EMB.Uj=EMBc;EMB.Ye=EMBc;EMB.Lj=EMBe;EMB.Hh=EMBe;EMB.bk=EMBe;EMB.Pc=EMBe;EMB.pb=EMBe;EMB.Ob=EMBd;EMB.Wc=EMBd;
var EMB4=function(a,b){return b==EMBb?a:"1"==b?EMBc:EMBe},EMB5=function(a,b){return b==EMBb?a:b},EMBVg=function(a,b){if(b)a.Nb=b.split(","),a.Nb.forEach(function(){})},EMBXg=function(a){return!(!a.p||!(a.p.loop||a.p.ha+1<a.p.na.length))},EMBYg=function(a,b){return EMBL(a.Kb+"get_video_info",{html5:"1",video_id:b.n,eurl:a.Ja,ps:a.qb,el:a.F,hl:a.jc,list:b.rb})},EMBZg=function(a){var b={contact_type:"playbackissue",html5:1,plid:a.ra,v:a.n};a.format&&(b.fmt=a.format.Qc);return EMBL("//www.google.com/support/youtube/bin/request.py",
b)};EMBWg.prototype.Pe=function(){var a=this.A;return!a?(EMBOc("yt.player.EnvironmentData","getPlayerSize called before videoPlayerElement_ was set."),new EMBs(Number.NaN,Number.NaN)):new EMBs(a.clientWidth,a.clientHeight)};var EMB_g=function(a){return!a.f?(EMBOc("yt.player.EnvironmentData","getVideoElementSize called before videoElement_ was set."),new EMBs(Number.NaN,Number.NaN)):new EMBs(a.f.clientWidth,a.f.clientHeight)};var EMB0g=function(a){var b=parseInt(a,10),a=parseInt(b/3600,10),c=parseInt(b%3600/60,10),b=parseInt(b%60,10),d="";0<a&&(d+=a.toString()+":");10>c&&(d+="0");d+=c.toString()+":";10>b&&(d+="0");return d+=b.toString()},EMB1g=function(a){return Math.round(1E3*a)/10};var EMB2g=function(a,b){var c,d;d||(d=0);c||(c=EMB4d(document.body));EMBVe(new EMBr(b.pageX,b.pageY),a,d,EMBd,c,5)};var EMB3g=function(){this.eg={}};EMBo(EMB3g,EMB0);EMBaa(EMB3g);EMB=EMB3g.prototype;EMB.He="range-tooltip";EMB.ng=EMBd;EMB.format=EMBd;EMB.max=0;EMB.kp=0;EMB.jp=0;EMB.Ci=EMBd;EMB.Wb=function(){return" "};EMB.Gl=function(a,b){this.ng=b;var c=this.getData(a,this.He+"-format");if(c)this.format=EMBg(c);this.max=parseInt(this.getData(a,"range-max"),10);this.kp=EMB2d(a).x;this.jp=EMBT(a).width};
EMB.sg=function(){EMB0.prototype.sg.call(this);this.addBehavior("mousemove",this.fp);this.addBehavior("touchmove",this.ip)};EMB.Di=function(a,b){this.mp||(EMB0.prototype.Di.call(this,a,b),EMBG(document,"mousemove",EMBH))};EMB.og=function(a,b){EMB0.prototype.og.call(this,a,b);EMB8b("mousemove")};EMB.Al=function(a,b,c){if(!this.Ci)this.Ci=c.changedTouches[0].identifier,EMB0.prototype.Al.call(this,a,b,c),EMBG(document,"touchmove",EMBH),this.ip(0,b,c)};
EMB.Ei=function(a,b,c){EMB0.prototype.Ei.call(this,a,b,c);EMB8b("touchmove");this.mp=EMBc;EMBxf(function(){this.mp=EMBe},200,this);this.Ci=EMBd};EMB.fp=function(a,b,c){if(this.ng){b=(c.pageX-this.kp)/this.jp;b=EMBQ(b,0,1);b*=this.max;this.format&&(b=this.format(b));EMB5e(this,a,b);var b=EMBD(EMB_(this,"tip-body"),this.ng),d=this.ng,e=new EMBr(-5,0),a=EMB2d(a);EMBVe(new EMBr(c.pageX+e.x,a.y+e.y),d,0);c=(EMBT(b).width+3)/-2- -5;b.style.left=c+"px"}};
EMB.ip=function(a,b,c){if(this.ng)for(a=0;a<c.changedTouches.length;a++){var d=c.changedTouches[a];if(d.identifier==this.Ci){c.pageX=d.pageX;c.pageY=d.pageY;this.fp(EMB_e(EMB_(this),d.target,EMBZe(b,EMB_(this))),0,c);break}}};var EMB4g=function(){};EMB=EMB4g.prototype;EMB.Xo=EMBe;EMB.ig=EMBd;EMB.Da=EMBd;EMB.se=function(){if(!this.Xo){this.Xo=EMBc;this.ig=EMBD("player-root",EMBb);this.Da=EMBD("player-actions-container",this.ig);var a=EMBD("player-actions-close",this.Da);EMBG(a,"click",EMBk(this.Ee,this))}};EMB.Ee=function(){EMBA(this.ig,"actions-mode",EMBe)};EMB.au=function(){600>this.ig.clientWidth&&EMBx(this.Da,"small-view")};EMB.rl=EMBd;
EMB.share=function(a,b){this.se();EMBA(this.ig,"actions-mode",EMBc);if(this.rl)this.rl.nd();else{var c=EMBD("player-actions-share",this.Da);this.rl=new EMBQf(c,a,b,EMBk(this.au,this),{db:1})}};var EMB5g=function(a,b){EMBy(a,"html5-async-progress","html5-async-success","html5-async-error");b&&EMBx(a,b);EMB4e(EMB0.getInstance(),a)},EMB6g=function(a,b){EMB5g(a,"html5-async-error");if(b){var c=EMB0.getInstance(),d=c.Wb(a);EMB5e(c,a,b);EMB3e(c,a);c.setData(a,"tooltip-text",d)}};var EMB8g=function(a,b,c,d){if(this.nl=!!c)this.zl=Math.max(800,this.zl);this.element=a;this.onclick=b;this.Ko=d;EMB7g?a.ontouchstart=EMBk(this.Au,this):a.onmousedown=EMBk(this.zu,this);a.onclick=EMBk(this.Lo,this)},EMB7g="ontouchstart"in document,EMB9g=[],EMB$g=EMBe,EMBah=function(){EMB7g&&!EMB$g&&(EMB$g=EMBc,document.addEventListener("click",function(a){for(var b=new EMBr(a.clientX,a.clientY),c=0,d;d=EMB9g[c];c++)if(25>EMBVa(d,b)){a.stopPropagation();a.preventDefault();EMB9g.splice(c,1);break}},
EMBc))},EMBbh=function(a){EMB9g.push(a);window.setTimeout(function(){var b=EMB9g.indexOf(a);-1!=b&&EMB9g.splice(b,1)},2500)};EMB=EMB8g.prototype;EMB.Ju=12;EMB.To=100;EMB.zl=500;
EMB.Au=function(a){if(!(1<a.touches.length)&&!a._stop){this.ti=a._stop=EMBc;if(!this.nl)this.element.ontouchend=EMBk(this.Lo,this),document.body.addEventListener("touchend",EMBch(this),EMBe);document.body.addEventListener("touchmove",EMBdh(this),EMBe);document.body.addEventListener("touchcancel",EMBch(this),EMBe);EMBeh(this);this.To?this.cu=window.setTimeout(EMBk(this.kg,this,EMBc),this.To):this.kg(EMBc);var b=a.touches[0];this.sl=new EMBr(b.clientX,b.clientY);!this.nl&&(!this.Ko||this.Ko(a))&&EMBbh(this.sl)}};
EMB.zu=function(a){a.stopPropagation();this.ti=EMBc;EMBeh(this);this.kg(EMBc)};EMB.Lo=function(a){if(("touchend"!=a.type||this.ti)&&!a._stop)a._stop=EMBc,this.kg(EMBc),window.setTimeout(EMBk(function(){this.Fi();this.onclick(a)},this),0)};EMB.Pu=function(a){1<a.touches.length?this.Fi():(a=a.touches[0],a=new EMBr(a.clientX,a.clientY),this.sl&&EMBVa(this.sl,a)>this.Ju&&this.Fi())};var EMBdh=function(a){if(!a.vp)a.vp=EMBk(a.Pu,a);return a.vp};
EMB8g.prototype.Fi=function(){window.clearTimeout(this.cu);window.clearTimeout(this.tu);this.kg(EMBe);this.ti=EMBe;document.body.removeEventListener("touchmove",EMBdh(this),EMBe);document.body.removeEventListener("touchend",EMBch(this),EMBe);document.body.removeEventListener("touchcancel",EMBch(this),EMBe)};var EMBch=function(a){if(!a.sp)a.sp=EMBk(a.Fi,a);return a.sp};EMB8g.prototype.kg=function(a){this.rn&&EMBA(this.element,this.rn,a)};
var EMBeh=function(a){if(a.Hu)a.tu=window.setTimeout(EMBk(function(){this.ti=EMBe;this.Hu()},a),a.zl)};var EMBfh=function(){this.rg={};this.If=new EMB1f(this);this.Jh=new EMB1f(this)};EMB=EMBfh.prototype;EMB.V=EMBd;EMB.Lf=EMBd;EMB.Mi=EMBd;EMB.$m=EMBd;EMB.fe=EMBd;EMB.uf=EMBd;EMB.nn=EMBd;EMB.cd=EMBd;EMB.ln=EMBd;EMB.Vi=0;EMB.Re=0;EMB.dm=EMBd;EMB.tf=EMBd;EMB.If=EMBd;EMB.je=EMBd;EMB.xc=EMBd;EMB.Vj=EMBd;EMB.xb=EMBd;EMB.Wj=EMBd;EMB.Jh=EMBd;EMB.Ld=EMBd;EMB.wf=EMBd;EMB.vg=EMBd;EMB.Gg=EMBd;EMB.Xi=EMBd;EMB.gk=EMBd;EMB.kc=EMBd;EMB.an=EMBd;EMB.tn=EMBd;EMB.Uc=EMBd;EMB.pubsub=EMBd;EMB.Ac=EMBe;
EMB.Bg=function(a){this.V=a;this.pubsub=new EMBP;this.Lf=EMBD("html5-play-button",a);(new EMB8g(this.Lf,EMBk(this.jr,this))).rn="html5-active";this.Mi=EMBD("html5-current-time",a);this.$m=EMBD("html5-duration-time",a);this.fe=EMBD("html5-progress-bar",a);this.uf=EMBD("html5-progress-list",this.fe);EMBG(this.fe,"click",EMBk(this.Dj,this));this.cd=EMBD("html5-play-progress",this.uf);this.ln=EMBD("html5-load-progress",this.uf);this.nn=EMBD("html5-ad-progress-list",this.fe);this.tf=EMBD("html5-scrubber-button",
a);EMBG(this.tf,"mousedown",EMBk(this.br,this));EMBG(this.tf,"touchstart",EMBk(this.dr,this));EMBG(window,"touchend",EMBk(this.pn,this));EMBG(window,"touchcancel",EMBk(this.pn,this));this.dm=EMBD("html5-progress-screenreader",a);this.je=EMBD("html5-volume-control",a);EMBG(this.je,"keydown",EMBk(this.kr,this));this.xc=EMBD("html5-volume-button",this.je);EMBG(this.xc,"click",EMBk(this.sn,this));this.Vj=EMBD("html5-volume-panel",this.je);this.xb=EMBD("html5-volume-slider",this.je);EMBG(this.xb,"mousedown",
EMBk(this.gr,this));this.Wj=EMBD("html5-volume-slider-foreground",this.je);this.Ld=EMBD("html5-speed-button",a);this.wf=EMBD("yt-uix-button-content",this.Ld);var b=EMBD("html5-popup-menu",this.Ld);EMB6b(b,EMBk(this.er,this),"yt-uix-button-menu-item");this.gk=EMBD("html5-threed-popup-menu",a);this.Xi=EMBD("html5-small-player-button",a);EMBG(this.Xi,"click",EMBk(this.qn,this));this.Gg=EMBD("html5-large-player-button",a);EMBG(this.Gg,"click",EMBk(this.qn,this));this.vg=EMBD("html5-fullscreen-button",
a);EMBG(this.vg,"click",EMBk(this.fr,this));this.kc=EMBD("html5-quality-button",a);this.an=EMBD("yt-uix-button-content",this.kc);b=EMBD("html5-popup-menu",this.kc);EMB6b(b,EMBk(this.ar,this),"yt-uix-button-menu-item");this.Uc=EMBD("html5-watch-later-button",a);EMBG(this.Uc,"click",EMBk(this.hr,this));this.tn=EMBD("html5-watch-on-youtube-button",a);EMBG(this.tn,"click",EMBk(this.ir,this))};
var EMBgh=function(a,b){var c=EMBD("html5-popup-menu",a.kc),c=EMBIb("yt-uix-button-menu-item",c);EMBq(c,function(a){a.style.display="none";for(var c=0,f=b.length;c<f;c++)if(EMBY(a,"value")==b[c].yc)a.style.display="block"},a)};EMBfh.prototype.j=function(a){EMB1.info(a)};EMBfh.prototype.kr=function(a){var b=a.keyCode;if(32==b||13==b)this.sn(),a.preventDefault()};
EMBfh.prototype.setVolume=function(a,b){this.j("Setting volume to: "+a+(b?" (muted)":""));EMBue(this.xc,"value",b||0==a?"off":20>a?"min":40>a?"quiet":60>a?"normal":80>a?"loud":"max");EMBue(this.xc,"volume",a);var c=this.xb.clientWidth-6,d=this.xb.style.backgroundPosition.split(" "),d=1<d.length?d[1]:"0px";if(b)this.xb.style.backgroundPosition="-"+c+"px "+d,this.Wj.style.left="0px";else{var e;0>=a?e=0:100<=a?e=c:(e=(c-0)*a/100,e=0>=e?0:e>=c?c:0+Math.round(e));this.Wj.style.left=e+"px";this.xb.style.backgroundPosition=
"-"+(c-e)+"px "+d}c=Math.round(a);d=c+"% "+EMBgd("HTML5_VOLUME_SETTING")+(b?" "+EMBgd("HTML5_VOLUME_MUTED"):"");this.Vj.setAttribute("aria-valuenow",c);this.Vj.setAttribute("aria-valuetext",d);EMBhh(this.xc,b);this.xc.setAttribute("aria-label",(b?EMBgd("HTML5_VOLUME_UNMUTE"):EMBgd("HTML5_VOLUME_MUTE"))+" "+EMBgd("HTML5_CONTROL_TOGGLE"))};
var EMBih=function(a,b){a.j("Setting duration to: "+b.toString());a.$m.innerHTML=EMB0g(b);var c=EMBD("yt-uix-range-tooltip",a.fe);if(!c)c=a.fe;EMBue(c,"range-max",b)},EMBjh=function(a,b){a.j("setting quality to: "+b);EMBue(a.kc,"value",b);a.an.innerHTML=b;a.kc.setAttribute("aria-label",b+" "+EMBgd("HTML5_QUALITY_SETTING"))};EMBfh.prototype.sn=function(){this.pubsub.c("mutetoggled")};
var EMBkh=function(a){var b=EMB1g(a.Re),c=EMB1g(a.Vi);b>c&&(c=b);a.cd.style.width=b+"%";a.ln.style.width=c+"%";a.tf.style.left=b+"%"};EMB=EMBfh.prototype;EMB.Xe=function(a){a?EMBCb(this.Lf,"html5-play-button","html5-pause-button"):EMBCb(this.Lf,"html5-pause-button","html5-play-button");EMBhh(this.Lf,a)};EMB.jr=function(){this.pubsub.c("playpausetoggled")};
EMB.br=function(){this.j("Scrubber mousedown");this.Ac=EMBc;this.pubsub.c("beginseeking");this.If.H(window,"mousemove",this.Dj);this.If.H(window,"mouseup",this.An)};EMB.dr=function(a){if(!this.Ac)this.Ac=a.changedTouches[0].identifier,this.pubsub.c("beginseeking"),this.If.H(window,"touchmove",this.es)};EMB.es=function(a){if(this.Ac){for(var b,c=0;c<a.changedTouches.length;c++)if(a.changedTouches[c].identifier==this.Ac){b=a.changedTouches[c];break}b&&this.Dj(b);a.preventDefault()}};
EMB.pn=function(a){if(this.Ac)for(var b=0;b<a.changedTouches.length;b++)if(this.Ac==a.changedTouches[b].identifier){this.An();break}};EMB.An=function(){this.j("Scrubber release");this.Ac=EMBe;this.If.Pb();this.pubsub.c("endseeking")};EMB.Dj=function(a){this.j("Seek or Scrubber click/move:"+a.target.className);var b=EMB2d(this.uf),a=EMBQ((a.clientX-b.x)/(this.uf.clientWidth-1-this.tf.clientWidth/2),0,1);this.j("seekTo "+a);this.pubsub.c("seekto",a)};
EMB.gr=function(a){this.j("volume mousedown");this.pubsub.c("beginvolume");EMBx(this.xc,"changing");var b=this.xb.clientWidth,a=EMB6d(a,this.xb);this.j("relative pos: x: "+a.x+" and y: "+a.y);EMBlh(this,100*(a.x/b));this.Jh.H(window,"mousemove",this.mr);this.Jh.H(window,"mouseup",this.nr)};EMB.mr=function(a){this.j("volume mouseover");var b=this.xb.clientWidth,a=EMB6d(a,this.xb);this.j("relative pos: x: "+a.x+" and y: "+a.y);EMBlh(this,100*(a.x/b))};
var EMBlh=function(a,b){a.pubsub.c("volumechanged",{volume:EMBQ(b,0,100),muted:EMBe})};EMB=EMBfh.prototype;EMB.nr=function(){this.j("volume mouseup");EMBy(this.xc,"changing");this.Jh.Pb();this.pubsub.c("endvolume")};EMB.qn=function(a){this.pubsub.c("sizechangerequested",a.currentTarget==this.Gg)};EMB.ar=function(a){this.pubsub.c("qualitychanged",EMBY(a.currentTarget,"value"))};EMB.fr=function(){this.pubsub.c("fullscreentoggled")};
EMB.er=function(a){this.pubsub.c("speedchanged",EMBY(a.currentTarget,"value"));-1!=a.target.innerHTML.indexOf("Normal")?(this.wf.innerHTML=EMBgd("HTML5_SPEED_NORMAL"),this.Ld.setAttribute("aria-label",this.wf.innerHTML+" "+EMBgd("HTML5_SPEED_SETTING"))):(this.wf.innerHTML=a.target.innerHTML,this.Ld.setAttribute("aria-label",this.wf.innerHTML))};var EMBmh=function(a,b){var c=EMBD("html5-threed-conversion-on",a.gk),d=EMBD("html5-threed-conversion-off",a.gk);EMBle(c,!b);EMBle(d,b)};
EMBfh.prototype.hr=function(){EMBz(this.Uc,"html5-async-progress")||(EMB5g(this.Uc,"html5-async-progress"),this.pubsub.c("watchlater"))};EMBfh.prototype.ir=function(){this.pubsub.c("watchonyoutube")};var EMBhh=function(a,b){var c=EMBY(a,"default-title"),d=EMBY(a,"alt-title"),e=EMBY(a,"tooltip-title");c||(c=e,EMBue(a,"default-title",c));c=b?d:c;a.setAttribute("title",c);a.setAttribute("aria-label",c);EMBue(a,"tooltip-title",c);EMBue(a,"tooltip-text",c)};
EMBfh.prototype.Sa=function(a){a=EMBQ(Math.round(100*a),0,100);if(!this.rg[a]){var b=document.createElement("div");b.style.left=a+"%";EMBx(b,"html5-ad-progress","html5-progress-section");this.nn.appendChild(b);this.rg[a]=b}};EMBfh.prototype.yf=function(a){a=EMBQ(Math.round(100*a),0,100);this.rg[a]&&(EMBF(this.rg[a]),delete this.rg[a])};var EMBnh=function(a,b){var c;a instanceof EMBnh?(this.xe(b==EMBd?a.Gb:b),EMBoh(this,a.Jc),EMBph(this,a.$f),EMBqh(this,a.Bd),EMBrh(this,a.ve),this.setPath(a.getPath()),EMBsh(this,a.ac.da()),EMBth(this,a.Zf)):a&&(c=(""+a).match(EMB0c))?(this.xe(!!b),EMBoh(this,c[1]||"",EMBc),EMBph(this,c[2]||"",EMBc),EMBqh(this,c[3]||"",EMBc),EMBrh(this,c[4]),this.setPath(c[5]||"",EMBc),EMBsh(this,c[6]||"",EMBc),EMBth(this,c[7]||"",EMBc)):(this.xe(!!b),this.ac=new EMBuh(EMBd,this,this.Gb))};EMB=EMBnh.prototype;
EMB.Jc="";EMB.$f="";EMB.Bd="";EMB.ve=EMBd;EMB.Dd="";EMB.Zf="";EMB.Tw=EMBe;EMB.Gb=EMBe;
EMB.toString=function(){if(this.Ib)return this.Ib;var a=[];this.Jc&&a.push(EMBvh(this.Jc,EMBwh),":");this.Bd&&(a.push("//"),this.$f&&a.push(EMBvh(this.$f,EMBwh),"@"),a.push(EMBj(this.Bd)?encodeURIComponent(this.Bd):EMBd),this.ve!=EMBd&&a.push(":",""+this.ve));this.Dd&&(this.Bd&&"/"!=this.Dd.charAt(0)&&a.push("/"),a.push(EMBvh(this.Dd,"/"==this.Dd.charAt(0)?EMBxh:EMByh)));var b=""+this.ac;b&&a.push("?",b);this.Zf&&a.push("#",EMBvh(this.Zf,EMBzh));return this.Ib=a.join("")};
EMB.da=function(){var a=this.Jc,b=this.$f,c=this.Bd,d=this.ve,e=this.Dd,f=this.ac.da(),g=this.Zf,h=new EMBnh(EMBd,this.Gb);a&&EMBoh(h,a);b&&EMBph(h,b);c&&EMBqh(h,c);d&&EMBrh(h,d);e&&h.setPath(e);f&&EMBsh(h,f);g&&EMBth(h,g);return h};
var EMBoh=function(a,b,c){EMBAh(a);delete a.Ib;a.Jc=c?b?decodeURIComponent(b):"":b;if(a.Jc)a.Jc=a.Jc.replace(/:$/,"")},EMBph=function(a,b,c){EMBAh(a);delete a.Ib;a.$f=c?b?decodeURIComponent(b):"":b},EMBqh=function(a,b,c){EMBAh(a);delete a.Ib;a.Bd=c?b?decodeURIComponent(b):"":b},EMBrh=function(a,b){EMBAh(a);delete a.Ib;b?(b=Number(b),(isNaN(b)||0>b)&&EMBa(Error("Bad port number "+b)),a.ve=b):a.ve=EMBd};EMBnh.prototype.getPath=function(){return this.Dd};
EMBnh.prototype.setPath=function(a,b){EMBAh(this);delete this.Ib;this.Dd=b?a?decodeURIComponent(a):"":a;return this};var EMBsh=function(a,b,c){EMBAh(a);delete a.Ib;b instanceof EMBuh?(a.ac=b,a.ac.qf=a,a.ac.xe(a.Gb)):(c||(b=EMBvh(b,EMBBh)),a.ac=new EMBuh(b,a,a.Gb));return a},EMBth=function(a,b,c){EMBAh(a);delete a.Ib;a.Zf=c?b?decodeURIComponent(b):"":b},EMBAh=function(a){a.Tw&&EMBa(Error("Tried to modify a read-only Uri"))};EMBnh.prototype.xe=function(a){this.Gb=a;this.ac&&this.ac.xe(a);return this};
var EMBCh=function(a){return a instanceof EMBnh?a.da():new EMBnh(a,EMBb)},EMBDh=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,EMBvh=function(a,b){var c=EMBd;EMBj(a)&&(c=a,EMBDh.test(c)||(c=encodeURI(a)),0<=c.search(b)&&(c=c.replace(b,EMBEh)));return c},EMBEh=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},EMBwh=/[#\/\?@]/g,EMByh=/[\#\?:]/g,EMBxh=/[\#\?]/g,EMBBh=/[\#\?@]/g,EMBzh=/#/g,EMBuh=function(a,b,c){this.$b=a||EMBd;this.qf=b||EMBd;this.Gb=!!c},EMBGh=function(a){if(!a.M&&
(a.M=new EMBnc,a.o=0,a.$b))for(var b=a.$b.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=EMBd,f=EMBd;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=EMBFh(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}},EMBHh=function(a){var b=EMBlc(a);"undefined"==typeof b&&EMBa(Error("Keys are undefined"));a=EMBkc(a);b.length!=a.length&&EMBa(Error("Mismatched lengths for keys/values"));for(var c=new EMBuh(EMBd,EMBb,EMBb),d=0;d<b.length;d++)c.add(b[d],
a[d]);return c};EMB=EMBuh.prototype;EMB.M=EMBd;EMB.o=EMBd;EMB.add=function(a,b){EMBGh(this);EMBIh(this);a=EMBFh(this,a);if(this.fc(a)){var c=this.M.get(a);EMBi(c)?c.push(b):this.M.set(a,[c,b])}else this.M.set(a,b);this.o++;return this};EMB.remove=function(a){EMBGh(this);a=EMBFh(this,a);if(this.M.fc(a)){EMBIh(this);var b=this.M.get(a);EMBi(b)?this.o-=b.length:this.o--;return this.M.remove(a)}return EMBe};EMB.clear=function(){EMBIh(this);this.M&&this.M.clear();this.o=0};
EMB.fc=function(a){EMBGh(this);a=EMBFh(this,a);return this.M.fc(a)};EMB.Ed=function(){EMBGh(this);for(var a=this.M.Lc(),b=this.M.Ed(),c=[],d=0;d<b.length;d++){var e=a[d];if(EMBi(e))for(var f=0;f<e.length;f++)c.push(b[d]);else c.push(b[d])}return c};EMB.Lc=function(a){EMBGh(this);if(a)if(a=EMBFh(this,a),this.fc(a)){var b=this.M.get(a);if(EMBi(b))return b;a=[];a.push(b)}else a=[];else for(var b=this.M.Lc(),a=[],c=0;c<b.length;c++){var d=b[c];EMBi(d)?EMBQa(a,d):a.push(d)}return a};
EMB.set=function(a,b){EMBGh(this);EMBIh(this);a=EMBFh(this,a);if(this.fc(a)){var c=this.M.get(a);EMBi(c)?this.o-=c.length:this.o--}this.M.set(a,b);this.o++;return this};EMB.get=function(a,b){EMBGh(this);a=EMBFh(this,a);if(this.fc(a)){var c=this.M.get(a);return EMBi(c)?c[0]:c}return b};
EMB.toString=function(){if(this.$b)return this.$b;if(!this.M)return"";for(var a=[],b=0,c=this.M.Ed(),d=0;d<c.length;d++){var e=c[d],f=EMBqa(e),e=this.M.get(e);if(EMBi(e))for(var g=0;g<e.length;g++)0<b&&a.push("&"),a.push(f),""!==e[g]&&a.push("=",EMBqa(e[g])),b++;else 0<b&&a.push("&"),a.push(f),""!==e&&a.push("=",EMBqa(e)),b++}return this.$b=a.join("")};var EMBIh=function(a){delete a.fl;delete a.$b;a.qf&&delete a.qf.Ib};
EMBuh.prototype.da=function(){var a=new EMBuh;if(this.fl)a.fl=this.fl;if(this.$b)a.$b=this.$b;if(this.M)a.M=this.M.da();return a};var EMBFh=function(a,b){var c=""+b;a.Gb&&(c=c.toLowerCase());return c};EMBuh.prototype.xe=function(a){a&&!this.Gb&&(EMBGh(this),EMBIh(this),EMBmc(this.M,function(a,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.add(d,a))},this));this.Gb=a};var EMBJh=function(a){var b=document,c="onfullscreenchange"in b?"fullscreenchange":"onwebkitfullscreenchange"in b?"webkitfullscreenchange":"onmozfullscreenchange"in b?"mozfullscreenchange":EMBd;c&&EMBG(b,c,a)};var EMBLh=function(a,b,c){var c=c||{},d=c.Af;d||(d=document.createElement("style"),document.getElementsByTagName("head")[0].appendChild(d),d=d.sheet||d.styleSheet);c.reset&&EMBKh(d);b=b instanceof Array?b.join(";"):b;d.insertRule?d.insertRule(a+"{"+b+"}",d.cssRules.length):d.addRule(a,b,-1);return d},EMBKh=function(a){for(var b=(a.cssRules||a.rules).length;0<b;b--){var c=a;c.deleteRule?c.deleteRule(0):c.removeRule(0)}};var EMBMh=function(a,b,c){this.Mb=a;this.cn=b;this.Wm=c;this.pubsub=new EMBP;this.Bh=new EMBwf(250);this.Bh.addEventListener("tick",EMBk(this.kb,this));this.mb=[];this.Ab=[];this.Ub=new EMB8f(Math.random)};EMB=EMBMh.prototype;EMB.ak=EMBe;EMB.zb=EMBe;EMB.zh=EMBe;EMB.bu=EMBe;EMB.dk=EMBe;EMB.ck=EMBe;EMB.Bf=EMBd;EMB.pubsub=EMBd;EMB.addCueRange=function(a){var b=EMBPa(arguments);this.kb();b.forEach(function(a){this.mb.push(a);EMBbg(this.Ub,a);this.pubsub.c("onAdd",a)},this);this.ak=EMBc;this.kb()};
EMB.removeCueRange=function(a){EMBPa(arguments).forEach(function(a){a=this.mb.indexOf(a);0<=a&&EMBNh(this,a)},this);this.kb()};var EMBNh=function(a,b){var c=a.mb.splice(b,1)[0];EMBdg(a.Ub,c);b=a.Ab.indexOf(c);0<=b&&a.Ab.splice(b,1);a.pubsub.c("onRemove",c)};EMBMh.prototype.fh=function(){this.ba=1E3*this.Mb();this.zh=EMBc;this.kb()};EMBMh.prototype.reset=function(){this.zh=this.zb=EMBe;EMBOh(this);this.xf();this.be=EMBd};
EMBMh.prototype.xf=function(){for(var a=this.mb.length-1;0<=a;a--)EMBNh(this,a);this.kb()};var EMBPh=function(a,b){var c=[];if(!b.length)return c;b.sort(EMBgg);for(var d=0;d<b.length;d++){var e=b[d];if(e.ah&&-1==a.Ab.indexOf(e)&&(!e.Po||a.bu))if(a.Ab.push(e),e.Po){a.zb=EMBc;a.be||c.push(["onLockBlockEnter",e]);c.push(["onEnter",e]);a.be=e;break}else c.push(["onEnter",e])}return c};
EMBMh.prototype.kb=function(){this.ck=EMBc;if(!this.dk)for(var a=3;this.ck&&a;){this.ck=EMBe;this.dk=EMBc;if(this.zh&&!this.zb){EMBOh(this);for(var b=1E3*this.Mb(),c=[],d=0;d<this.Ab.length;d++){var e=this.Ab[d];e.ah&&!e.contains(b)&&(c.push(["onExit",e]),this.Ab.splice(d--,1))}d=EMBb;this.ba<b?(d=EMB$f(this.Ub,this.ba,b),this.ak&&(d=d.concat(EMB9f(this.Ub,b)))):d=EMB9f(this.Ub,b);c=c.concat(EMBPh(this,d));this.ba=b;this.ak=EMBe;if(!this.zb&&this.be&&(c.unshift(["onLockBlockExit",this.be]),this.be=
EMBd,this.cn().Sj))this.ba=2147483647;if(this.cn().zf&&!this.Wm()&&(b=EMB3f(this.Ub,this.ba)))this.Bf=EMBxf(EMBk(this.kb,this),b.value-this.ba);for(d=0;d<c.length;d++)b=c[d],e=b[1],"onLockBlockExit"==b[0]||"onLockBlockEnter"==b[0]?this.pubsub.c.apply(this.pubsub,b):e.pubsub.c.apply(e.pubsub,b)}this.dk=EMBe;a--}};var EMBOh=function(a){if(a.Bf!=EMBd)EMBvf.clearTimeout(a.Bf),a.Bf=EMBd};var EMBQh=function(a,b){this.type=a||"";this.id=b||""};EMBQh.prototype.toString=function(){return this.type+this.id};var EMBVh=function(a){this.na=[];this.dc=[];this.ha=Math.max(0,a.index||0);this.loop=!!a.loop;this.Z=a.startSeconds||0;this.lo="1"==a.mob;a.video_id&&(this.na[this.ha]=new EMBMg(a));a.api&&("string"==typeof a.api&&16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);if(a.list)switch(a.listType){case "user_uploads":EMBRh(this,a.list);break;case "user_favorites":EMBSh(this,a.list);break;case "search":EMBTh(this,a.list);break;default:this.ce=new EMBQh(a.list.substr(0,2),a.list.substr(2)),this.vb||EMBUh(this,
"/list_ajax?style=json&action_get_list=1",{list:this.ce})}else if(a.playlist){var b=a.playlist.toString().split(",");if(0<this.ha)this.na=[];EMBq(b,function(a){a&&this.na.push(new EMBMg({video_id:a}))},this);this.Gk=this.na.length;this.Xd=EMBc}this.setShuffle(!!a.shuffle);if(a.suggestedQuality)this.Pm=a.suggestedQuality};EMB=EMBVh.prototype;EMB.loop=EMBe;EMB.Z=0;EMB.Zo=EMBe;EMB.ha=0;EMB.Gk=0;EMB.lo=EMBe;EMB.Xd=EMBe;EMB.vb=EMBe;
EMB.Vb=function(){if(++this.ha>=this.na.length)if(this.loop)this.ha=0;else return EMBd;EMBWh(this,this.ha);return EMBXh(this,this.ha)};var EMBYh=function(a){if(0>--a.ha)if(a.loop)a.ha=a.na.length-1;else return EMBd;EMBWh(a,a.ha);return EMBXh(a,a.ha)},EMBXh=function(a,b){var c=b!=EMBb?b:a.ha;return c in a.na?a.na[a.dc[c]]:EMBd};
EMBVh.prototype.setShuffle=function(a){this.Zo=a;this.dc=[];for(a=0;a<this.na.length;a++)this.dc.push(a);if(this.Zo)for(a=1;a<this.dc.length;a++){var b=Math.round(Math.random()*(this.dc.length-1));if(0!=b&&b!=a){var c=this.dc[a];this.dc[a]=this.dc[b];this.dc[b]=c}}};var EMBWh=function(a,b){a.ha=EMBQ(b,0,a.na.length-1);a.Z=0};EMBVh.prototype.getLength=function(){return this.Gk};
var EMBRh=function(a,b){if(!a.vb)a.ce=new EMBQh("UU","PLAYER_"+b),EMBUh(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b})},EMBSh=function(a,b){if(!a.vb)a.ce=new EMBQh("FL","PLAYER_"+b),EMBUh(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b})},EMBTh=function(a,b){if(!a.vb){a.ce=new EMBQh("SR",b);var c={search_query:b};a.lo&&(c.mob="1");EMBUh(a,"/search_ajax?style=json&embeddable=1",c)}},EMBUh=function(a,b,c){EMBEe(EMBL(b,c),{format:"JSON",za:function(a,b){if(b.video&&
b.video.length)this.na=[],EMBq(b.video,function(a){if(a)a.video_id=a.encrypted_id,this.na.push(new EMBMg(a))},this),this.Gk=this.na.length,this.setShuffle(EMBe),this.vb=EMBe,this.Xd=EMBc,this.$j&&this.$j()},Rb:a})};var EMBZh=function(a,b){this.Ge=a;this.gc=b+"::"};EMBo(EMBZh,EMBFd);EMB=EMBZh.prototype;EMB.Ge=EMBd;EMB.gc="";EMB.set=function(a,b){this.Ge.set(this.gc+a,b)};EMB.get=function(a){return this.Ge.get(this.gc+a)};EMB.remove=function(a){this.Ge.remove(this.gc+a)};EMB.Fd=function(a){var b=this.Ge.Fd(EMBc),c=new EMBgc,d=this;c.next=function(){for(var c=b.next();c.substr(0,d.gc.length)!=d.gc;)c=b.next();return a?c.substr(d.gc.length):d.Ge.get(c)};return c};var EMB6=function(a){this.pubsub=new EMBP;this.D=a;if(this.Ro){var a="yt-html5-player-modules::"+this.Ro,b=new EMBGd;if(a=EMBHd()?a?new EMBZh(b,a):b:EMBd)this.Fe=new EMBQd(a)}};EMB=EMB6.prototype;EMB.pubsub=EMBd;EMB.aa="";EMB.ag="";EMB.loaded=EMBe;EMB.addCueRange=function(a){var b=EMBPa(arguments),c=EMBk(this.tc,this),d=EMBk(this.de,this);b.forEach(function(a){a.Tj=this.aa;a.pubsub.e("onEnter",c);a.pubsub.e("onExit",d)},this);this.pubsub.c("command_add_cuerange",b)};
EMB.removeCueRange=function(a){this.pubsub.c("command_remove_cuerange",EMBPa(arguments))};EMB.xf=function(){this.pubsub.c("command_remove_cuerange_all",this.aa)};var EMB_h=function(a){a.pubsub.c("command_preroll_ready",a.aa)};EMB6.prototype.appendToVideoContent=function(a){EMBx(a,this.aa);this.D.appendToVideoContent(a)};EMB6.prototype.appendAboveVideoControls=function(a){EMBx(a,this.aa);this.D.appendAboveVideoControls(a)};var EMB0h=function(a){a.pubsub.c("command_show_dialog_area")},EMB1h=function(a){a.pubsub.c("command_hide_all_dialogs")};
EMB=EMB6.prototype;EMB.create=function(){EMBx(this.D.getRootNode(),this.aa+"-created")};EMB.oa=function(){EMBy(this.D.getRootNode(),this.aa+"-created")};EMB.load=function(){EMBx(this.D.getRootNode(),this.aa+"-loaded")};EMB.unload=function(){EMBy(this.D.getRootNode(),this.aa+"-loaded")};EMB.tc=function(){};EMB.de=function(){};EMB.Uh=function(){};EMB.log=function(a){this.pubsub.c("command_log",this.ag,a)};
var EMB2h=function(a,b,c){var d={},e;for(e in b)d[a.aa+"_"+e]=b[e];var b={},f;for(f in c)b[a.aa+"_"+f]=c[f];a.pubsub.c("command_log_timing",d,b)},EMB3h=function(a,b){if(!a.Fe)return EMBd;var c;try{c=a.Fe.get(b)}catch(d){a.Fe&&a.Fe.remove(b)}return c},EMB4h=function(a,b,c){a.Fe&&a.Fe.set(b,c)},EMB5h=function(a){a.pubsub.c("command_enable_controls")},EMB6h=function(a){a.pubsub.c("command_stop_redirect_controls")};EMB6.prototype.playVideo=function(){this.pubsub.c("command_play")};
EMB6.prototype.pauseVideo=function(){this.pubsub.c("command_pause")};var EMB7h=function(a,b){a.pubsub.c("command_redirected_show_is_playing",b)};EMB6.prototype.Yb=function(){return EMBe};var EMB8h=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):EMBe};var EMB9h=function(a){this.apply(a)};
EMB9h.prototype.apply=function(a){this.Km=a.ad_slots;this.Lm=a.ad_breaks;this.or=a.ad_flags||0;this.Jr=a.cafe_experiment_id;this.jo=a.ad_tag;this.age=parseInt(a.cust_age,10);this.contentId=(a.wl_cid?"":"yt_")+a.video_id;this.pr=a.cid;this.descriptionUrl=a.ad_eurl;this.tr=a.excluded_ads;var b=parseInt(a.cust_gender,10);if(!isNaN(b))this.gender=b;this.host=a.ad_host;this.hostTierId=parseInt(a.ad_host_tier,10);this.qr=1==a.ad_logging_flag;this.hi=EMB8h(a.aftv);this.ii=EMB8h(a.afv);this.Qk=EMB8h(a.dclk);
this.rr=!!a.fqsf;this.ji=EMB8h(a.instream);this.ao=EMB8h(a.mpu);this.ho=EMB8h(a.sffb);this.Ir=a.wl_cid&&a.wl_ad_slots;this.Lr="1"==a.as_launched_in_country;b=a.ad_channel_code_instream;this.Kr=EMBj(b)?b.split(","):[];this.En=a.sf30;b=parseInt(a.afv_instream_max,10);this.En?b=3E4:isNaN(b)&&(b=15E3);this.Mr=b;b=a.ad_channel_code_overlay;this.Nr=EMBj(b)?b.split(","):[];this.publisherId=a.ad_video_pub_id;this.cx=a.p_s;this.previousWatchVideoId=a.p_w;this.Xm=this.hi&&this.ho&&!this.ii;this.Is=this.ii||
this.Xm};var EMBai=function(a,b){this.g=a;this.Qa=b;this.hs=EMBm();this.Q=a.Q;this.te={};this.Rn=0;this.te.allowed=EMB$h(this);var c=this.Q.tr;c&&(this.te.ex_ads=c);(c=this.Q.En)&&(this.te.sf30=c)};EMBai.prototype.Ho=EMBd;
EMBai.prototype.vc=function(a,b){var c=b||{},d=(EMBm()-this.hs)/1E3;c.art=d;d=this.g.getEnvironmentData();c.feature=d.ic;c.ad_flags=this.Q.or;(d=this.Q.pr)&&(c.cid=d);c.mt=this.Qa.getCurrentTime();(d=this.Qa.getDuration())&&(c.len=d);this.Q.rr&&(c.fqsf=1);c.ad_event=a;if(this.Q.qr){var e;a:{var d=this.te,f=EMB3a(c);for(e in d){if(e in f){e=EMBd;break a}f[e]=d[e]}e=f}EMBh(e)?this.g.log(this.te):c=e;this.g.log(c);this.te={}}};
var EMB$h=function(a){if(a.Ho)return a.Ho;var b=[];a.Q.Qk&&(a.Q.ji&&b.push("1_2"),a.Q.ao&&b.push("1_3"));a.Q.ii&&b.push("2_1");a.Q.hi&&a.Q.ji&&b.push("2_2");a.Q.Is&&b.push("2_3");return b.join(",")};var EMBbi=function(a){this.Zh=a};EMBbi.prototype.getUrl=function(){return this.Zh};var EMBci=function(){},EMBdi=new EMBci,EMBei=function(){var a=document.createElement("video");EMBl(a,EMBdi);EMBG(a,"loadeddata",EMBk(a.Mw,a));return a};EMB=EMBci.prototype;EMB.hasSrc=function(){return!!this.getSrc()};EMB.getSrc=function(){return this.currentSrc};EMB.activate=function(a){a=a||"";if(!(this.src&&""==a)){if(a)this.src=a;this.load()}};EMB.seekTo=function(a){if(0!=this.readyState)this.currentTime=a};EMB.getType=function(){return this.type};
EMB.getDuration=function(){return this.duration||0};EMB.getCurrentTime=function(){return this.currentTime};EMB.isPaused=function(){return this.paused||this.ended};EMB.togglePlayPause=function(){this.isPaused()?this.playVideo():this.pauseVideo()};EMB.playVideo=function(){if(this.ended)this.currentTime=0;if(!this.currentSrc)this.setAttribute("src",this.Bp||""),this.Bp=EMBd,this.load();this.play()};EMB.pauseVideo=function(){this.pause()};
EMB.stopVideo=function(){if(this.hasAttribute("src"))this.Bp=this.src,this.removeAttribute("src"),this.load()};EMB.setVolume=function(a,b){this.volume=a/100;this.muted=b};EMB.getVolume=function(){return 100*this.volume};EMB.isMuted=function(){return this.muted};EMB.mute=function(){this.muted=EMBc};EMB.unMute=function(){this.muted=EMBe};EMB.setPlaybackRate=function(a){this.playbackRate=this.defaultPlaybackRate=a};
EMB.getBufferedTimeRangeIndex=function(){for(var a=this.buffered,b=this.getCurrentTime(),c=0;c<a.length;c++)if(a.start(c)<=b&&b<=a.end(c))return c;return 0};EMB.inUnbufferedArea=function(){var a=this.buffered;if(!a||!a.length)return EMBc;var b=this.getBufferedTimeRangeIndex();if(0<b)return EMBe;var c=this.getCurrentTime();return a.start(b)>c||a.end(b)<c};EMB.Mw=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};var EMBfi=function(){this.$g=new EMB1f(this);this.De=[];this.vi=[]};EMBaa(EMBfi);var EMBgi=EMBg("yt.player.util.VideoTagPool.instance_")||EMBfi.getInstance();EMBn("yt.player.util.VideoTagPool.instance_",EMBgi);EMBfi.prototype.j=function(a,b){b||(b=EMBzc);EMB1.log(b,a)};EMBfi.prototype.Ow=function(a){if(!(this.De.length>=a))for(var a=a-this.De.length,b=0;b<a;b++)this.De.push(EMBhi(this))};
var EMBhi=function(a){var b=EMBei();b.activate();if(a.vi.length){var c=a.vi[0];b.setVolume(c.getVolume(),c.isMuted())}a.vi.push(b);a.$g.H(b,"volumechange",a.Qe);return b};EMBfi.prototype.Qe=function(a){var a=a.target,b=a.volume,c=a.muted;this.vi.forEach(function(a){a.volume=b;a.muted=c},this)};EMBfi.prototype.getTag=function(){if(this.De.length)return this.De.pop();this.j("Ran out of video tags!");return EMBhi(this)};EMBfi.prototype.Qw=function(a){return this.De.length>=(a||1)};
EMBfi.prototype.fillPool=EMBfi.prototype.Ow;EMBfi.prototype.getTag=EMBfi.prototype.getTag;EMBfi.prototype.hasTags=EMBfi.prototype.Qw;var EMBii=[4,2],EMBji=function(a){var b=EMBg("yt.www.watch.ads.handleMoveGutCompanion");b&&b(1==a?EMBc:EMBe)},EMBki=function(a){var b=EMBg("showAfvCompanionAdDiv");b&&b(1==a)};var EMBli=function(a){this.X=a};EMB=EMBli.prototype;EMB.Kj=NaN;EMB.wc=function(a,b){this.X.c("AD_LOGGING_EVENT",a,b)};EMB.wb=function(a,b){var c=b||{};c.ad_error=a;this.wc(7,c)};EMB.kk=function(a){var b=this.bb(),c=EMB2d(a.target);b.ck_xy=a.pageX-c.x+"x"+(a.pageY-c.y);a=EMBT(a.target);b.ck_wh=a.width+"x"+a.height;this.wc(15,b)};
EMB.bb=function(){var a={},b=this.X.ua,c=this.X.Ra;b&&0<b.getDuration()&&(a.ad_len=b.getDuration());if(c&&c.n)a.ad_v=c.n;else if(b.hasSrc())b=EMB1c(b.getSrc()),a.ad_dom=b;a.at=this.X.getType();return a};var EMBmi=function(a,b){this.ta=new EMBP;this.g=a;this.W=b;this.g.e("control_toggle_play_pause",this.Xg,this);this.P=new EMBli(this)};EMBo(EMBmi,EMB3);
EMBmi.prototype.show=function(){this.P.Kj=EMBm();var a=EMBd,b="";try{a=this.W.getSelectedCreative(),b=a.getMediaUrl("video/x-flv")}catch(c){this.qc(c);return}a=b;if(!(b=EMBh(a)))b=EMB1c(a),b=EMBh(b)?EMBd:b.split(".").reverse(),b=!(EMBh(b)?0:"com"==b[0]&&b[1].match(/^youtube(?:-nocookie)?$/));b?a=EMBd:(a=EMB8c(a),a=a.v||a.video_id,a=EMBh(a)?EMBd:new EMBMg({video_id:a}));(this.Ra=a)?(this.Ra.e("onStatusFail",this.qc,this),this.Ra.e("videoinfo",this.kn,this),EMBTg(this.Ra,EMBYg(this.g.getEnvironmentData(),
this.Ra))):EMBni(this)};var EMBoi=function(a){a.Ra&&(a.Ra.L("onStatusFail",a.qc,a),a.Ra.L("videoinfo",a.kn,a))};EMBmi.prototype.kn=function(){EMBoi(this);var a=EMBd;this.Ra.Me&&(a=EMBHg(this.Ra.Me),a=EMBIg(this.g.getEnvironmentData().Ob,a));a?(this.W.getSelectedCreative().setMediaUrl(a.fk),EMBni(this)):this.qc(Error(this.Ra.n+" does not have any supported video formats for this browser"))};
var EMBni=function(a){EMBji(1);EMBki(1);var b=a.g.getRootNode(),c=EMBD("video-ads",b);a.yh=b;a.hb=new EMB1f(a);a.ua=EMBgi.getTag();b=a.ua;a.hb.H(b,"play",a.xr);a.hb.H(b,"pause",a.wr);a.hb.H(b,"ended",a.ur);a.hb.H(b,"error",a.qc);a.hb.H(b,"timeupdate",a.yr);a.ae=document.createElement("div");a.hb.H(a.ae,"click",a.Rj);a.xh=EMBD("video-ad-time-left",c);var b=EMBD("html5-ad-progress-list",c),d=document.createElement("div");EMBx(d,"html5-ad-progress","html5-progress-section");b.appendChild(d);a.cd=d;EMBx(a.ae,
"video-click-tracking","ad-video");EMBx(a.ua,"video-stream","ad-video");c.appendChild(a.ae);c.appendChild(a.ua);EMBx(a.yh,"ad-showing","ad-interrupting");try{a.W.setClickTrackingElement(a.ae),a.W.play(a.ua)}catch(e){a.qc(e)}};EMB=EMBmi.prototype;EMB.xr=function(){if(!this.lr){this.lr=EMBc;var a=this.P,b=a.bb();if(isNaN(a.Kj))EMBJ("InstreamAdDisplayStateLogger","The video player start time was not set.");else{var c=EMBm()-a.Kj;b.ad_stl=c}a.wc(4,b)}EMB7h(this.g,EMBc);this.c("adPlay",this)};
EMB.wr=function(){EMB7h(this.g,EMBe)};EMB.ur=function(){var a=this.P,b=a.bb();EMBh(a.X.ua)?EMBJ("InstreamAdDisplayStateLogger","The video element was not set."):b.ad_fmt=a.X.ua.getType();a.wc(5,b);this.c("adEnd",this)};EMB.qc=function(a){EMBoi(this);this.c("adError",a)};EMB.Rj=function(a){this.P.kk(a);this.c("select")};EMB.yr=function(){var a=this.ua.getCurrentTime();this.xh.innerHTML=EMB0g(this.ua.duration-a);this.cd.style.width=EMB1g(this.ua.getPlayProgressFraction())+"%"};
EMB.u=function(){this.g.L("control_toggle_play_pause",this.Xg,this);if(this.W)this.W.unload(),this.W=EMBd;EMBF(this.ua);this.ua=EMBd;EMBF(this.ae);this.ae=EMBd;this.hb&&this.hb.Pb();EMBoi(this);if(this.xh)this.xh.innerHTML="",this.xh=EMBd;if(this.cd)EMBF(this.cd),this.cd=EMBd;if(this.yh)EMBy(this.yh,"ad-showing","ad-interrupting"),this.yh=EMBd;EMBmi.k.u.call(this)};EMB.getType=function(){return"1_2"};EMB.Xg=function(){this.ua&&this.ua.togglePlayPause()};var EMBpi=function(a,b){EMBmi.call(this,a,b)};EMBo(EMBpi,EMBmi);EMBpi.prototype.getType=function(){return"2_2"};var EMBqi=function(a,b){this.X=a;this.g=b;this.ad="InvideoAdDisplay ("+this.X.getType()+")"};EMBqi.prototype.wc=function(a,b){this.X.c("AD_LOGGING_EVENT",a,b)};EMBqi.prototype.kk=function(){this.Qb("Overlay ad clicked.");this.Ak=EMBm();var a=this.bb();if(this.Lk){var b=EMB9d(this.g.getRootNode()),c=this.Lk.y-b.top,c=Math.round(this.Lk.x-b.left)+"x"+Math.round(c);a.ck_xy=c;a.ck_wh=b.width+"x"+b.height}this.wc(100,a)};
EMBqi.prototype.bb=function(){var a={};this.xm&&this.Ak&&(a.ot=this.Ak-this.xm);var b;b=this.g.isFullscreen()?2:this.g.getEnvironmentData().Od?1:0;a.ad_ps=b;a.at=this.X.getType();return a};EMBqi.prototype.Qb=function(a){EMBPc(this.ad,a)};var EMBri=function(a,b){this.ta=new EMBP;this.g=a;this.W=b;this.P=new EMBqi(this,a);this.$g=new EMB1f(this)};EMBo(EMBri,EMB3);EMB=EMBri.prototype;
EMB.show=function(){this.g.e("onResize",this.sj,this);var a=this.g.getRootNode();EMBx(a,"ad-showing");a=EMBD("video-ads",a);this.ed=document.createElement("div");EMBx(this.ed,"ad-overlay");a.appendChild(this.ed);this.$g.H(this.ed,"mouseup",this.Bq);try{this.W.addEventListener(google.ima.AdEvent.Type.USER_CLOSE,this.om,EMBe,this);this.W.addEventListener(google.ima.AdEvent.Type.CLICK,this.Zg,EMBe,this);this.sj();this.W.setHorizontalAlignment(google.ima.AdSlotAlignment.HorizontalAlignment.CENTER);this.W.setVerticalAlignment(google.ima.AdSlotAlignment.VerticalAlignment.BOTTOM);
this.W.play(this.ed);var b=this.P;b.Qb("Overlay ad shown.");b.xm=EMBm();b.wc(3,b.bb());this.c("adEnd",this)}catch(c){this.qc(c)}};EMB.getType=function(){return"2_1"};EMB.u=function(){this.g.L("onResize",this.sj,this);var a=this.g.getRootNode();EMBy(a,"ad-showing");if(this.W)this.W.removeEventListener(google.ima.AdEvent.Type.USER_CLOSE,this.om,EMBe,this),this.W.removeEventListener(google.ima.AdEvent.Type.CLICK,this.Zg,EMBe,this),this.W.unload(),this.W=EMBd;this.$g.Pb();EMBF(this.ed);this.ed=EMBd;EMBri.k.u.call(this)};
EMB.om=function(){var a=this.P;a.Qb("Overlay ad hidden.");a.Ak=EMBm();a.wc(6,a.bb())};EMB.Zg=function(){this.g.pauseVideo();this.P.kk()};EMB.Bq=function(a){this.P.Lk=a.target==a.currentTarget?EMBd:new EMBr(a.pageX,a.pageY)};EMB.qc=function(a){this.c("adError",a)};
EMB.sj=function(){var a;a=this.ed;var b=EMBB(a),c=EMBt&&a.currentStyle;c&&EMB_b(EMBFb(b))&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing?(b=EMBbe(a,c.width,"width","pixelWidth"),a=EMBbe(a,c.height,"height","pixelHeight"),a=new EMBs(b,a)):(c=new EMBs(a.offsetWidth,a.offsetHeight),b=EMBde(a),a=EMBge(a),a=new EMBs(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom));this.W.setAdSlotWidth(a.width);this.W.setAdSlotHeight(a.height)};var EMBsi=function(a,b){this.ta=new EMBP;this.ca=a;this.yb=b};EMBo(EMBsi,EMB3);EMBsi.prototype.show=function(){this.Wn();var a={};a.ad_id=this.yb;a.at=this.getType();this.c("AD_LOGGING_EVENT",3,a);this.c("adEnd",this)};var EMBti=function(a){EMBsi.call(this,a,NaN)};EMBo(EMBti,EMBsi);EMBti.prototype.Wn=function(){var a=EMBg("afcAdCall");a&&a()};EMBti.prototype.getType=function(){return"2_3"};var EMBui=function(a,b){this.S=a;this.g=b;this.ad="AdLoader ("+this.S.Dk()+")"},EMBvi=function(a,b){a.S.c("AD_TRACKING_EVENT",new EMBbi(b))};EMBui.prototype.Ka=function(){var a={};a.l_ns=this.S.Dk();a.l_state=this.S.cb;a.sst=this.S.gb;a.sidx=this.S.pk;var b=this.S.Sb();b&&(a.at=b.getType());b=this.S.yb;isNaN(b)||(a.ad_id=b);return a};EMBui.prototype.Qb=function(a){EMBPc(this.ad,a)};var EMBwi=function(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=EMBe;b.validateOnParse=EMBe;try{b.setProperty("ProhibitDTD",EMBc),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}EMBa(Error("Your browser does not support loading xml documents"))},EMBxi=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=
EMBB(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(document.implementation.hasFeature("XPath","3.0")){var c=EMBB(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,XPathResult.FIRST_ORDERED_NODE_TYPE,EMBd).singleNodeValue}return EMBd},EMByi=function(a){if("undefined"!=typeof a.selectNodes){var b=EMBB(a);"undefined"!=typeof b.setProperty&&b.setProperty("SelectionLanguage","XPath");return a.selectNodes("//AdBreak")}if(document.implementation.hasFeature("XPath",
"3.0")){for(var b=EMBB(a),c=b.createNSResolver(b.documentElement),a=b.evaluate("//AdBreak",a,c,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,EMBd),b=[],c=a.snapshotLength,d=0;d<c;d++)b.push(a.snapshotItem(d));return b}return[]};var EMBzi=function(a,b,c){this.yb=a;this.Zq=b;this.$q=c};var EMBAi={GOOGLE_IMA:"//www.google.com/jsapi",GOOGLE_MAPS_API:"//maps.google.com/maps/api/js?sensor=false",GOOGLE_LANGUAGE_API_VIRTUAL_KEYBOARD:"//www.google.com/jsapi?key=youtube-internal-vk",GOOGLE_LANGUAGE_API_INPUT_TOOLS:"//www.google.com/jsapi?key=youtube-internal-it"},EMBBi={},EMBCi={},EMBDi={},EMBFi=function(){EMBn("yt.net.apiloader.onApiLoaded_GOOGLE_IMA",function(){EMBEi()})},EMBEi=function(){EMBCi.GOOGLE_IMA=EMBc;EMBq(EMBDi.GOOGLE_IMA,function(a){a.call()});delete EMBDi.GOOGLE_IMA};var EMBGi=function(){this.ta=new EMBP;this.qe="unloaded"};EMBo(EMBGi,EMB3);EMBaa(EMBGi);EMB=EMBGi.prototype;EMB.load=function(){"unloaded"==this.qe?(this.qe="loading",this.Pn()):"loaded"==this.qe?this.c("googleAdSdkLoaded",this):"error"==this.qe&&this.rf()};
EMB.Pn=function(){if(EMBg("google.load"))google.load("ima","1",{callback:EMBk(this.Ah,this)});else{var a=EMBk(this.Pn,this),b=EMBAi.GOOGLE_IMA;if(b)if(EMBCi.GOOGLE_IMA)a.call();else if(EMBDi.GOOGLE_IMA||(EMBDi.GOOGLE_IMA=[]),EMBDi.GOOGLE_IMA.push(a),!EMBBi.GOOGLE_IMA)EMBFi(),b=EMBL(b,{callback:"yt.net.apiloader.onApiLoaded_GOOGLE_IMA"}),a=document.createElement("script"),a.src=b,document.body.appendChild(a),EMBBi.GOOGLE_IMA=EMBc}};
EMB.Ah=function(){try{this.ci=new google.ima.AdsLoader,this.ci.addEventListener(google.ima.AdsLoadedEvent.Type.ADS_LOADED,this.ms,EMBe,this),this.ci.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.ls,EMBe,this),this.qe="loaded"}catch(a){this.ks=a;this.rf();return}this.c("googleAdSdkLoaded",this)};EMB.rf=function(){EMBJ("GoogleAdsSdk","SDK load failure");this.qe="error";this.c("googleAdSdkError",this.ks)};
EMB.ms=function(a){var b=a.getAdsManager(),a=a.getUserRequestContext();this.c("adLoaded",b,a)};EMB.ls=function(a){var b=a.getError();b.getType()==google.ima.AdError.Type.AD_LOAD&&(a=a.getUserRequestContext(),this.c("adError",b,a))};EMB.requestAds=function(a,b){this.ci?this.ci.requestAds(a,b):EMBJ("GoogleAdsSdk","You cannot call requestAds() without an IMA AdsLoader!")};var EMBHi=function(a,b,c,d,e){this.ta=new EMBP;this.gb=a;this.Xs=b;this.pk=c;this.ca=d;this.cb=e;this.P=new EMBui(this,d)};EMBo(EMBHi,EMB3);EMB=EMBHi.prototype;EMB.Vd=EMBd;EMB.yb=NaN;
EMB.load=function(){var a=this.ca.Pe();if(200>a.width||200>a.height){var b=this.P;EMBJ(b.ad,"The player size is too small to show an ad.");var c=b.Ka();c.ck_wh=a.width+"x"+a.height;b.g.wb(14,c);this.nf()}else this.jb=EMBGi.getInstance(),this.jb.e("googleAdSdkLoaded",this.Ah,this),this.jb.e("googleAdSdkError",this.rf,this),this.jb.load()};EMB.getSlotId=function(){return this.Xs};
EMB.Ah=function(){EMBIi(this);EMBJi(this.ca,"sdk");var a=this.P;a.Qb("Making an ad request.");a.g.vc(9,a.Ka());a=this.hn();switch(this.cb){case 1:a.adType=google.ima.SimpleAdsRequest.AdType.VIDEO;break;case 2:case 4:a.adType=google.ima.SimpleAdsRequest.AdType.OVERLAY}var b=this.cb,c=EMBg("yt.www.watch.ads.setGutSlotSizes");if(c){var d=1==b,b=0<=EMBHa(EMBii,b);c(d,b)}this.jb.e("adLoaded",this.vf,this);this.jb.e("adError",this.uc,this);try{this.jb.requestAds(a,this)}catch(e){this.uc(e,this)}};
EMB.rf=function(a){EMBIi(this);this.uc(a,this)};var EMBIi=function(a){a.jb&&(a.jb.L("googleAdSdkLoaded",a.Ah,a),a.jb.L("googleAdSdkError",a.rf,a),a.jb.L("adLoaded",a.vf,a),a.jb.L("adError",a.uc,a))};EMB=EMBHi.prototype;
EMB.vf=function(a,b){if(b===this){var c=a.getType(),d=this.P;d.Qb("Ad request with a type of "+c+" loaded.");var e=d.Ka();e.ad_man=c;d.g.vc(12,e);d=EMBe;switch(c){case google.ima.AdsManager.AdsManagerType.VIDEO:d=this.fn(a);break;case google.ima.AdsManager.AdsManagerType.OVERLAY:d=this.gn(a);break;case google.ima.AdsManager.AdsManagerType.CUSTOM_CONTENT:d=this.en(a);break;default:c=this.P,EMBJ(c.ad,"The type of ad from the SDK is not supported"),c.g.wb(33)}d?this.c("adLoaded",this):this.nf()}};
EMB.uc=function(a,b){if(b===this){var c=this.P;EMBJ(c.ad,"Problem loading ad from SDK.");var d=c.Ka();if(a){var e="getErrorCode"in a?a.getErrorCode():EMBd;e?d.error_code=e:d.error_message=EMBxa(a.message)}c.g.wb(32,d);this.nf()}};EMB.nf=function(){this.c("adError",this)};EMB.u=function(){EMBIi(this);EMBHi.k.u.call(this)};EMB.Sb=function(){return this.Vd};var EMBKi=function(a,b,c,d,e){EMBHi.call(this,a,b,c,d,e);(a=EMBg("setAfvCompanionVars"))&&a(1==e)};EMBo(EMBKi,EMBHi);EMB=EMBKi.prototype;EMB.Dk=function(){return 2};
EMB.hn=function(){var a=new google.ima.AdSenseAdsRequest,b=this.ca.Q,c=EMBOe("video-container",this.ca.getRootNode()),c=EMBT(c);a.adSlotHeight=c.height;a.adSlotWidth=c.width;a.adTimePosition=0==this.gb||-1==this.gb?this.gb:1E3*this.gb;if(!isNaN(b.age))a.age=b.age;switch(this.cb){case 1:a.channels=b.Kr;break;case 2:a.channels=b.Nr}a.contentId=b.contentId;a.descriptionUrl=b.descriptionUrl;a.gender=b.gender;a.host=b.host;if(!isNaN(b.hostTierId))a.hostTierId=b.hostTierId;a.language=this.ca.getEnvironmentData().jc;
a.maxTotalAdDuration=b.Mr;a.publisherId=b.publisherId;a.allowCompanionBeforeMaster=0==this.getSlotId();a.allowUnrelatedCompanion=EMBc;a.allowSuperCampaigns=b.Lr;a.experimentId=b.Jr;a.previousSearchQuery=b.previousSearchQuery;a.previousWatchVideoId=b.previousWatchVideoId;return a};EMB.fn=function(a){this.Vd=new EMBpi(this.ca,a);return EMBc};EMB.gn=function(a){if(!this.ca.Q.Ir)this.gb=10,this.ca.vc(1);EMBki(this.cb);this.Vd=new EMBri(this.ca,a);return EMBc};EMB.en=function(){return EMBe};
EMB.nf=function(){this.ca.Q.Xm||2==this.cb?(this.Vd=new EMBti(this.ca),this.c("adLoaded",this)):EMBKi.k.nf.call(this)};var EMBLi=function(a){if(a.jo){var b=this.ep=a.jo,c=b.indexOf(";sz="),a=EMB5c(b.substring(c),";"),b=b.substring(0,c).split("pfadx");if(a=2!=b.length?EMBd:{su:b[0],uu:b[1],vu:a})this.yo=a.su,this.Ao=a.uu,this.Mt=a.vu}};EMBLi.prototype.ep="";EMBLi.prototype.yo="";EMBLi.prototype.kl="";EMBLi.prototype.Ao="";
var EMBMi=function(a,b){var c=EMB3a(a.Mt);b.rd&&b.rd.length&&(c.sz=b.rd.join(","));if(b.Yj)c.pos=b.Yj;if(b.Gh)c.dc_seed=b.Gh;b.ge&&(c.tile=b.ge.toString());if(b.Xk)c.kmyd=b.Xk;var d;if(!(d=b.fx)){if(!a.kl)a.kl=Math.floor(999999999*Math.random()).toString();d=a.kl}c.ord=d;c=EMB6c(c);return[a.yo,b.Ff,a.Ao,";",c,"?"].join("")};var EMBNi=function(a,b,c){EMBsi.call(this,a,b);this.Uw=c};EMBo(EMBNi,EMBsi);EMBNi.prototype.Wn=function(){var a=this.Uw,b=EMBg("setCompanion");b&&b(a)};EMBNi.prototype.getType=function(){return"1_3"};var EMBOi=function(a,b,c,d,e){EMBHi.call(this,a,b,c,d,e);this.Xj=new EMBLi(this.ca.Q)};EMBo(EMBOi,EMBHi);EMB=EMBOi.prototype;EMB.Dk=function(){return 1};EMB.hn=function(){var a=new google.ima.SimpleAdsRequest,b;a:switch(b=this.Xj,this.cb){case 1:b=EMBMi(b,{Ff:"pfadx",rd:["480x360"],Yj:0==this.gb?"pre":-1==this.gb?"post":"mid;pos="+this.pk,ge:this.pk+1,Xk:"watch-longform-ad"});break a;case 4:b=EMBMi(b,{Ff:"pfadx",Xk:"watch-longform-ad",rd:["480x70"],ge:"1"});break a;default:b=""}a.adTagUrl=b;return a};
EMB.fn=function(a){this.Vd=new EMBmi(this.ca,a);return EMBc};EMB.gn=function(){return EMBe};
EMB.en=function(a){a=a.getAds()[0];try{var b,c=a.getContent(),d=EMBwi(c),e=EMBxi(d,"//adId/text()"),f=parseInt(EMBoa(e.nodeValue),10),g=EMBxi(d,"//trackImp/text()"),h=EMBoa(g.nodeValue),i=EMBxi(d,"//rm/text()"),j="true"==EMBoa(i.nodeValue);b=new EMBzi(f,h,j)}catch(k){return b=this.P,b.Qb("Problem parsing custom content XML."),b.g.wb(20),EMBe}if(isNaN(b.yb))c=this.P,EMBJ(c.ad,"ID missing from ad"),c.g.wb(41,c.Ka());this.yb=b.yb;a:switch(c=this.Xj,d=this.yb,this.cb){case 1:c=EMBMi(c,{Yj:0==this.gb?
"pre":-1==this.gb?"post":"mid;pos="+d,Ff:"adi",Gh:d,rd:["300x60"],ge:"1"});break a;case 4:c=EMBMi(c,{Ff:"adi",Gh:d,rd:["300x250"],ge:"1"});break a;default:c=EMBd}d=this.P;e=b.Zq;EMBh(e)||!e.length?d.g.wb(40,d.Ka()):(EMBvi(d,e),EMBvi(d,d.Ka()));4==this.cb&&EMBvi(this.P,EMBMi(this.Xj,{Ff:"adx",Gh:this.yb,rd:["450x60"],ge:"1"}));if(b.$q)return 1!=this.cb&&(b=EMBg("closeInPageAdIFrame"))&&b(),EMBh(c)||EMBvi(this.P,c),b=this.P,b.Qb("Showing remnant."),b.g.wb(21,b.Ka()),EMBe;c&&4==this.cb?this.Vd=new EMBNi(this.ca,
b.yb,c):c&&EMBvi(this.P,c);b=this.P;b.Qb("Not showing remnant.");b.g.wb(24,b.Ka());return EMBc};var EMBPi=function(a,b,c){this.ta=new EMBP;this.id=a;this.index=b||0;this.qk=!!c;this.Cf=[]};EMBo(EMBPi,EMB3);EMB=EMBPi.prototype;EMB.qk=EMBe;EMB.Nn=EMBe;EMB.S=EMBd;EMB.X=EMBd;EMB.load=function(){this.S?(this.S.e("adLoaded",this.vf,this),this.S.e("adError",this.uc,this),this.S.e("AD_TRACKING_EVENT",this.Gf,this),this.S.load()):EMBJ("AdSlot","No Ad Loader")};EMB.vf=function(){EMBQi(this);this.S.Sb()?(this.X=this.S.Sb(),this.c("adLoaded",this,this.S.gb)):this.uc()};
EMB.uc=function(){EMBQi(this);this.c("adError",this)};EMB.Gf=function(a){this.c("AD_TRACKING_EVENT",a)};var EMBQi=function(a){a.S.L("adLoaded",a.vf,a);a.S.L("adError",a.uc,a);a.S.L("AD_TRACKING_EVENT",a.Gf,a)};EMB=EMBPi.prototype;EMB.Sb=function(){return this.X};EMB.show=function(){this.X.e("adPlay",this.Bs,this);this.X.e("adEnd",this.zs,this);this.X.e("adError",this.As,this);this.X.e("AD_LOGGING_EVENT",this.Cs,this);this.X.e("select",this.Rj,this);this.X.show()};
EMB.Bs=function(){this.c("adPlay",this)};EMB.zs=function(){this.c("adEnd",this)};EMB.Rj=function(){this.Nn=EMBc};EMB.Cs=function(a,b){this.c("AD_LOGGING_EVENT",a,b)};EMB.As=function(a){this.c("adError",this,a)};EMB.u=function(){EMBPi.k.u.call(this);EMBvd(this.S);EMBvd(this.X)};var EMBRi=function(a,b){this.ta=new EMBP;this.Ca=b;this.g=a;this.ke="unloaded";this.va=[];this.Eh=[];this.Cf=[];this.mn={};this.fd=[]};EMBo(EMBRi,EMB3);EMB=EMBRi.prototype;EMB.start=NaN;EMB.zk=EMBc;EMB.mf=EMBe;EMB.isVisible=EMBc;EMB.ee=NaN;EMB.Jn=EMBe;EMB.si=NaN;EMB.Pa=function(){return!isNaN(this.start)?0==this.start?-2147483648:-1==this.start||-2==this.start?2147483647:1E3*this.start:EMBd};var EMBSi=function(a,b){a.va.push(b)};EMBRi.prototype.Jk=function(){return"loaded"==this.ke||"error"==this.ke};
var EMBTi=function(a){a.Jk||EMBa(Error("Preroll status is undefined before ad load."));return 0==a.start&&a.mf};
EMBRi.prototype.Th=function(){this.ke="loading";var a=this.va.length,b=this.Cf.shift();!b||0==a?(this.ke="error",EMBq(this.va,EMBvd),this.va=[],EMBUi(this)):(this.Eh=[],EMBq(this.va,function(a){if(!this.mn[a.id]){if(!a.qk)this.Jn=EMBc;var d;a:{d=this.start;var e=a.id,f=a.index,g=this.g;switch(b){case 1:d=new EMBKi(d,e,f,g,1);break a;case 2:d=new EMBKi(d,e,f,g,2);break a;case 3:d=new EMBOi(d,e,f,g,1);break a;case 4:d=new EMBOi(d,e,f,g,4);break a;default:d=EMBd}}a.S=d;this.Eh.push(a)}},this),0==this.start&&
EMBJi(this.g,"nl"),EMBVi(this))};EMBRi.prototype.getId=function(){return this.Ca};var EMBVi=function(a){if(a.Eh.length){var b=a.Eh.shift();b.e("adLoaded",a.vn,a);b.e("adError",a.wn,a);b.e("AD_TRACKING_EVENT",a.Gf,a);b.load()}else EMBWi(a)},EMBXi=function(a,b){b.L("adEnd",a.yn,a);b.L("adError",a.zn,a);b.L("AD_LOGGING_EVENT",a.xn,a)};EMBRi.prototype.wn=function(a){this.si=!this.si?a.id:Math.min(this.si,a.id);EMBMa(this.va,a);EMBvd(a);EMBVi(this)};EMBRi.prototype.Gf=function(a){this.fd.push(a)};
EMBRi.prototype.vn=function(a,b){this.start=b;a.L("adLoaded",this.vn,this);a.L("adError",this.wn,this);a.L("AD_TRACKING_EVENT",this.Gf,this);this.mn[a.id]=EMBc;0==this.id&&(this.g.On.at=a.Sb().getType());if(a.Sb()instanceof EMBmi)this.mf=EMBc;else if(a.Sb()instanceof EMBsi)this.isVisible=EMBe;EMBVi(this)};var EMBWi=function(a){a.Jn&&!EMBKa(a.va,function(a){return a.Sb()&&!a.qk})&&a.Cf.length?(EMBSi(a,new EMBPi(a.si)),a.Th()):(a.ke="loaded",EMBUi(a))},EMBUi=function(a){a.c("adBreakComplete",a)};
EMB=EMBRi.prototype;EMB.u=function(){EMBRi.k.u.call(this);EMBq(this.va,EMBvd);this.va=[];this.Cf=this.va=EMBd};EMB.show=function(){if(isNaN(this.ee)&&0!=this.va.length){this.ee=0;var a=this.va[this.ee];a.Sb()instanceof EMBmi&&EMBJi(this.g,"bs");a.e("adEnd",this.yn,this);a.e("adError",this.zn,this);a.e("AD_LOGGING_EVENT",this.xn,this);a.show()}};
EMB.yn=function(a){if(this.mf){EMBXi(this,a);a=this.g;if((a.D.getVideoData().hj||{}).shortform&&!a.Mn)EMBW(a.getEnvironmentData().Kb+"mac_204?action_fcts=1"),a.Mn=EMBc;if(this.va[this.ee].Nn)this.zk=EMBe}EMBUi(this)};EMB.zn=function(a,b){if(b){var c={},d="getErrorCode"in b?b.getErrorCode():EMBd;EMBh(d)?c.error_message=EMBxa(b.message):c.error_code=d;c.sst=this.start;c.sidx=this.ee;this.g.wb(32,c)}EMBXi(this,a);EMBUi(this)};EMB.xn=function(a,b){b.sst=this.start;b.sidx=this.ee;this.g.vc(a,b)};var EMBYi=function(a){this.Wq=a},EMBZi=function(a){try{var b=EMBwi(a),c=EMByi(b),d=EMBJa(c,function(a){return EMBza(a.attributes.getNamedItem("time").nodeValue)});return new EMBYi(d)}catch(e){return new EMBYi([0])}};var EMB_i=function(a){return 0<=EMBHa(a.Nb,"908301")};var EMB0i=function(a){if(a.Q.ho){var b=[],c=a.Q;c.Qk&&(c.ji?b.push(3):c.ao&&b.push(4));c.hi&&EMB_i(a.getEnvironmentData())&&b.push(1);c.ii&&b.push(2)}else{var b=[],c=a.Q,d=c.ji;c.Qk&&d&&b.push(3);c.hi&&EMB_i(a.getEnvironmentData())&&b.push(1)}return a=b};var EMB1i=function(a){this.ta=new EMBP;this.g=a;this.Oa=[]};EMBo(EMB1i,EMB3);EMB1i.prototype.Nt=0;EMB1i.prototype.Ot=0;var EMB2i=function(a,b,c){var d=new EMBRi(a.g,a.Nt++);d.start=b;for(b=0;1>b;b++){var e=d,f=new EMBPi(a.Ot++,0,EMBe);EMBSi(e,f)}d.Cf=c;return d};EMB1i.prototype.complete=function(){this.c("adBreaksComplete",this.Oa)};var EMB3i=function(a,b){this.Oa=b;this.ne=[];this.Bj={};this.mb={};this.g=a};EMBo(EMB3i,EMBtd);EMB3i.prototype.kd=EMBd;EMB3i.prototype.Th=function(){if(!this.ne.length)if(EMBUa(this.Oa,function(a,c){return a.getId()-c.getId()}),this.ne=EMBIa(this.Oa,function(a){return"unloaded"==a.ke}),0==this.ne.length)EMBJ("AdPlaylist","Could not find any ad breaks to load"),EMB_h(this.g);else{var a=EMBLa(this.ne,function(a){return 0==a.start});EMBh(a)&&EMB_h(this.g);EMB4i(this)}};
var EMB4i=function(a){if(a.ne.length){var b=a.ne.shift();b.e("adBreakComplete",a.Bk,a);b.Th()}};EMB3i.prototype.Bk=function(a){a.L("adBreakComplete",this.Bk,this);EMBM(EMBk(this.mu,this,a),0)};
EMB3i.prototype.mu=function(a){var b=EMBHa(this.Oa,a),c=this.Oa[b+1],b=this.Oa[b-1],d=2147483646;-2==a.start||-1==a.start?d=-2147483648:c&&2147483647!=c.start&&(d=c.Pa()-1);0==a.id&&(EMBJi(this.g,"bl"),EMBTi(a)||EMBJi(this.g,"fb"));if(c=!(a.Jk()&&0<a.va.length)){if(b&&b.Jk()){var e=b.Pa();e>d&&(d=e);EMB5i(this,b);this.ai(b,d)}}else this.Bj[a.getId()]=a,this.ai(a,d);EMB_h(this.g);c&&this.pf(a);EMB4i(this)};
EMB3i.prototype.ai=function(a,b){var c=a.Pa();if(c){var d={};d.priority=-2!=a.start?1:2;d.id=a.getId();d.visible=a.isVisible;c=new EMBfg(c,b,d);this.mb[a.getId()]=c;this.g.addCueRange(c)}};var EMB5i=function(a,b){a.mb[b.getId()]&&(a.g.removeCueRange(a.mb[b.getId()]),delete a.mb[b.getId()])};EMB3i.prototype.pf=function(a){a.L("adBreakComplete",this.Bk,this);if(this.kd&&a==this.kd)this.kd=EMBd;EMB5i(this,a);EMBMa(this.Oa,a);delete this.Bj[a.getId()];EMBvd(a)};
EMB3i.prototype.Fq=function(a){this.kd=EMBd;if(a.mf){if(-1!=a.start&&a.zk){var b=this.g;EMB6h(b);EMB5h(b);b.playVideo()}else EMBTi(a)&&!a.zk?(b=this.g,EMB6h(b),EMB5h(b),b.playVideo()):(EMB6h(this.g),EMB5h(this.g),EMB7h(this.g,EMBe));this.pf(a)}else a.isVisible?EMB5i(this,a):this.pf(a)};EMB3i.prototype.u=function(){EMBq(this.Oa,this.pf,this);EMB3i.k.u.call(this)};var EMB6i=function(a,b){this.Oa=b;this.g=a;EMBq(b,function(a){a.e("adBreakComplete",this.Dn,this)},this);this.fd={}};EMBo(EMB6i,EMBtd);EMB=EMB6i.prototype;EMB.Dn=function(a){a.od||(this.Vn(a),0==a.start?EMBq(a.fd,this.Bm,this):this.ai(a))};EMB.ai=function(a){var b=a.Pa();if(b){var c="ADT_"+a.getId(),b=new EMBfg(b,2147483647,{id:c,priority:0});this.fd[c]=a.fd;this.g.addCueRange(b)}};EMB.Vn=function(a){a.od||a.L("adBreakComplete",this.Dn,this)};
EMB.Bm=function(a){EMBj(a.Zh)?(a=a.getUrl(),EMBPc("AdTrackingPlaylist","Ping sent to "+a+"."),EMBW(a)):(a=a.getUrl(),EMBPc("AdTrackingPlaylist","Sending 204 impression."),this.g.vc(13,a))};EMB.u=function(){EMB6i.k.u.call(this);EMBq(this.Oa,this.Vn,this)};var EMB7i=function(a){EMB6.call(this,a);this.op={};this.On={at:0}};EMBo(EMB7i,EMB6);EMB=EMB7i.prototype;EMB.aa="ad";EMB.ag="ad";EMB.Zd=EMBd;EMB.Mn=EMBe;EMB.Yb=function(a){return a.getVideoData().ca};
EMB.create=function(){EMB7i.k.create.call(this);this.loaded=EMBc;EMBJi(this,"i");this.Q=new EMB9h(this.D.getVideoData().hj||{});this.Pj=new EMBai(this,this.D);EMBji();this.Zd=new EMB1i(this);this.Zd.e("adBreaksComplete",this.Tm,this);var a=this.Zd;try{var b=a.g.Q,c;if(b.Lm)c=EMBZi(b.Lm);else{var d;if(b.Km){var e=EMBJa(b.Km.split(","),EMBza);d=new EMBYi(e)}else d=new EMBYi([0]);c=d}for(var f=c.Wq,b=0;b<f.length;b++)a.Oa.push(EMB2i(a,f[b],EMB0i(a.g)));a.complete()}catch(g){EMBJ("BaseAdBreakDefiner",
"Break Definer Error",g),a.complete()}a={};a.allowed=EMB$h(this.Pj);EMB2h(this,{},a)};EMB.oa=function(){this.loaded=EMBe;EMBvd(this.Zd);this.Zd=EMBd;EMBvd(this.sf);this.sf=EMBd;EMBvd(this.nh);this.nh=EMBd;EMB7i.k.oa.call(this)};EMB.getVideoData=function(){return this.D.getVideoData()};EMB.getEnvironmentData=function(){return this.D.getEnvironmentData()};EMB.isFullscreen=function(){var a="leanback"==this.getEnvironmentData().qb;return this.D.isFullscreen()||a};
EMB.e=function(a,b,c){this.pubsub.e(a,b,c)};EMB.L=function(a,b,c){this.pubsub.L(a,b,c)};EMB.c=function(a,b){this.pubsub.c.apply(this.pubsub,arguments)};EMB.vc=function(a,b){this.Pj.vc(a,b)};EMB.wb=function(a,b){var c=b||{};c.ad_error=a;this.vc(7,c)};EMB.getRootNode=function(){return this.D.getRootNode()};EMB.Pe=function(){return EMBT(this.getRootNode())};EMB.Tm=function(a){this.Zd.L("adBreaksComplete",this.Tm,this);EMBJi(this,"bd");this.nh=new EMB6i(this,a);this.sf=new EMB3i(this,a);this.sf.Th()};
EMB.tc=function(a){EMB7i.k.tc.call(this,a);var b=a.getId(),c;if(c=this.nh)c=a.getId(),c=EMBj(c)&&0==c.lastIndexOf("ADT_",0)?EMBc:EMBe;if(c){a.ah=EMBe;c=this.nh;var d=c.fd[b];d&&(delete c.fd[b],EMBq(d,c.Bm,c));this.removeCueRange(a)}else if(this.sf&&!isNaN(b)&&(c=this.sf,EMBca(b)))if(a=c.Bj[b]){c.kd&&c.pf(c.kd);c.kd=a;a.e("adBreakComplete",c.Fq,c);if(a.mf)b=c.g,b.pubsub.c("command_redirect_controls",b,["play_pause"]),b.pubsub.c("command_disable_controls",["seek"]),b.pauseVideo();a.show()}else EMBJ("AdPlaylist",
"Could not find loaded ad break with an ID of "+b)};var EMBJi=function(a,b){var c=b;if("nl"==b)c=a.Pj,c.Rn++,c=c.Rn.toString();a.op[c]=EMBm();("bs"==c||"fb"==c)&&EMB2h(a,a.op,a.On)};EMB7i.prototype.Uh=function(a){this.pubsub.c(a)};var EMB8i=function(a,b){this.Na=b;this.Qa=a;var c=a.getRootNode();this.r=EMBD("html5-endscreen-actionbar",c);this.Vs=EMBD("html5-replay-button",this.r);EMBG(this.Vs,"click",EMBk(this.Ts,this));this.oo=EMBD("html5-like-button",this.r);EMBG(this.oo,"click",EMBk(this.Ss,this));this.no=EMBD("html5-dislike-button",this.r);EMBG(this.no,"click",EMBk(this.Rs,this));this.Ws=EMBD("html5-share-button",this.r);EMBG(this.Ws,"click",EMBk(this.Us,this))};EMB8i.prototype.Na=EMBd;
EMB8i.prototype.reset=function(){EMB5g(this.no);EMB5g(this.oo)};
var EMB9i=function(a,b,c){if(!EMBz(c,"html5-async-progress")){var d=a.Qa.getVideoData();EMB5g(c,"html5-async-progress");var e=d.n,a={ra:d.ra,za:EMBk(a.Fs,a,c),Yd:EMBk(a.Es,a,c)},c={};b?c.action_like_video=1:c.action_dislike_video=1;a=a||{};c.video_id=e;c.plid=a.ra;e={screen:EMB9c({h:screen.height,w:screen.width,d:screen.colorDepth}),session_token:EMBHe.watch_actions_ajax};if(a.Hs)e.station_id=a.Hs;EMBEe("/watch_actions_ajax",{format:"XML",method:"POST",Xc:c,Fj:e,za:a.za,Yd:a.Yd});b?EMBCf("convLikeUrl"):
EMBCf("convDislikeUrl")}};EMB=EMB8i.prototype;EMB.Ts=function(){this.Na.c("command_play")};EMB.Ss=function(a){EMB9i(this,EMBc,a.currentTarget)};EMB.Rs=function(a){EMB9i(this,EMBe,a.currentTarget)};EMB.Us=function(){this.Na.c("command_share")};EMB.Fs=function(a){EMB5g(a,"html5-async-success")};EMB.Es=function(a,b,c){EMB6g(a,c&&c.error_message)};var EMB$i=function(a,b){this.Qa=a;this.Na=b;this.Da=EMBOe("html5-endscreen",this.Qa.getRootNode());EMBx(this.Da,this.Io);this.Cc=EMBOe("html5-endscreen-content",this.Qa.getRootNode())};EMB=EMB$i.prototype;EMB.Io="base-endscreen";EMB.Da=EMBd;EMB.Cc=EMBd;EMB.Na=EMBd;EMB.Qa=EMBd;EMB.xp=EMBe;EMB.create=function(){this.xp=EMBc};EMB.oa=function(){this.xp=EMBe};var EMBaj=window.location.protocol+"//i.ytimg.com/",EMBbj=4/3,EMBdj=function(a,b,c){if(!c){c=a.clientHeight;a=a.clientWidth;if((900<a||600<c)&&b.Mm)return b.Mm;if((430<a||320<c)&&b.Nm)return b.Nm}return b.Om?b.Om:b.n?EMBcj(b.n):""},EMBcj=function(a,b){return(EMBaj+"vi/"+escape(a)+"/"+escape(b||"hqdefault.jpg")).replace("i.","i"+(a.charCodeAt(0)%4+1)+".")};var EMBej=function(){this.Yk=this.ll()};EMBej.prototype.Ud=function(a){var b=EMB3a(a);b.duration=EMB0g(a.length_seconds);return this.Yk.Ud(b)};EMBej.prototype.ll=function(){var a=EMBD("videowall-info-template");return EMBBf(a,["title","author","duration","view_count"])};var EMBfj=function(a,b){this.Qa=a;this.xt=b?"hqdefault.jpg":"default.jpg";this.wt=new EMBej;this.Yk=this.ll();var c=EMBE("a",{tabindex:"0"});EMBx(c,"videowall-still");EMBG(c,"click",EMBk(this.Zg,this));EMBG(c,"keypress",EMBk(this.Ij,this));this.Da=c};EMB=EMBfj.prototype;EMB.update=function(a){if(this.Ca!=a.id)this.Xb=a,this.Ca=a.id,this.Da.innerHTML=this.Yk.Ud({title:a.title,info:this.wt.Ud(a),thumbnail_url:EMBcj(this.Ca,this.xt)},EMBb,EMBc),EMBA(this.Da,"videowall-still-featured",a.featured)};
EMB.B=function(){return this.Da};EMB.ll=function(){var a=EMBD("videowall-still-content-template");return EMBBf(a,["title","info","thumbnail_url"])};EMB.select=function(){var a="endscreen";this.Xb.featured?a="fvwp":this.Xb.pinned&&(a="pinned");this.Qa.watchVideoById(this.Ca,a)};EMB.Zg=function(){this.select()};EMB.Ij=function(a){switch(a.keyCode){case 13:case 32:this.select(),a.preventDefault()}};var EMBgj=function(a,b){EMB$i.call(this,a,b);this.Sn=[];this.Na.e("onResize",EMBk(this.Ej,this))};EMBo(EMBgj,EMB$i);EMBgj.prototype.Io="videowall-endscreen";EMBgj.prototype.create=function(){this.Xb=this.Qa.getVideoData().qq;this.le();EMBgj.k.create.call(this)};EMBgj.prototype.oa=function(){this.Cc.innerHTML="";delete this.Xb;EMBgj.k.oa.call(this)};
EMBgj.prototype.le=function(){if(this.Xb&&this.Xb.length){EMBA(this.Da,"endscreen-enable-layout",EMBc);this.Cc.innerHTML="";EMB7d(this.Cc,"","");var a=EMBT(this.Cc);a.height-=30;var b=Math.floor(a.width/120),c=Math.floor(a.height/(120/1.45));if(1>c||1>b)this.li=0;else{var d=this.Xb.length,e=EMBe;this.Xb[0].featured&&2<c&&2<b&&(e=EMBc,d+=3);EMBA(this.Cc,"feature-video",e);for(var f=0,g=0,h=a.width/a.height,i=EMBc;0<=d&&(f<b||g<c);){var j=d>=g,k=d>=f;if(i&&k||!j&&k)d-=f,g++;else if(j)d-=g,f++;else break;
i=1.45*(f/g)>h}this.Ls=i;b=new EMBs(f,g);this.Ls?(c=1/b.width,a=a.width*c,c=a/1.45):(c=1/b.height,c*=a.height,a=1.45*c);a=new EMBs(Math.floor(a),Math.floor(c));this.li=b.width*b.height;e&&(this.li-=3);this.ki&&EMBKh(this.ki);var e=EMBhj(a),c={Af:this.ki},l;this.ki=EMBLh(".videowall-still",e,c);e=EMBhj(a.da().scale(2));c.Af=this.ki;l=".feature-video .videowall-still:first-child";EMBLh(l,e,c);EMB7d(this.Cc,a.width*b.width,a.height*b.height)}l=0;for(e=this.li;l<e;l++)this.Cc.appendChild(EMBij(this,l).B());
EMBA(this.Da,"endscreen-enable-layout",EMBe)}};var EMBij=function(a,b){var c=a.Sn[b];c||(c=new EMBfj(a.Qa,3>b),a.Sn[b]=c);c.update(a.Xb[b]);return c},EMBhj=function(a){return["width:"+a.width+"px","height:"+a.height+"px"]};EMBgj.prototype.Ej=function(){this.le()};var EMBjj=function(a){EMB6.call(this,a);this.co=a.getEnvironmentData().Uj?new EMBgj(this.D,this.pubsub):new EMB$i(this.D,this.pubsub);this.Ks=new EMB8i(this.D,this.pubsub)};EMBo(EMBjj,EMB6);EMB=EMBjj.prototype;EMB.aa="endscreen";EMB.ag="end";EMB.create=function(){EMBjj.k.create.call(this);var a=Math.max(1E3*(this.D.getVideoData().xa-10),0),a=new EMBfg(a,2147483646,{id:"preload"}),b=new EMBfg(2147483646,2147483647,{id:"load",Uf:9});this.addCueRange(a,b)};
EMB.oa=function(){this.xf();this.Ks.reset();EMBjj.k.oa.call(this)};EMB.load=function(){EMBjj.k.load.call(this);this.loaded=EMBc};EMB.unload=function(){this.co.oa();EMBjj.k.unload.call(this);this.loaded=EMBe};EMB.tc=function(a){EMBjj.k.tc.call(this,a);"load"==a.getId()?EMBXg(this.D.getEnvironmentData())||this.load():this.co.create()};EMB.de=function(a){"load"==a.getId()&&this.unload();EMBjj.k.de.call(this,a)};EMB.Yb=function(){return EMBc};var EMBkj=function(a,b){return b!=EMBd&&!!b.match(a)},EMBlj=function(a,b){for(var c in a)if(a[c]==b)return EMBc;return EMBe},EMBoj=function(a,b,c,d){var e=new EMBmj;e.type=d;e.defaultValue=EMBb;e.Gd=EMBla(EMBkj,c);return EMBnj(a[b],e)},EMBpj=function(a,b,c){var d=new EMBmj;d.type="OPTIONAL";d.Nc=function(a){a=parseInt(a,0).toString(16);return"#"+"000000".substring(0,6-a.length)+a};d.Gd=function(a){return!!a};d.defaultValue=c;return EMBnj(a[b],d)},EMBqj=function(a,b,c){var d=new EMBmj;d.type="OPTIONAL";
d.defaultValue=c;return EMBnj(a[b],d)},EMBrj=function(a,b,c,d,e){var f=new EMBmj;f.type=d;f.defaultValue=e;f.Gd=EMBla(EMBlj,c);return EMBnj(a[b],f)},EMBsj=function(a,b){var c=new EMBmj;c.type="OPTIONAL";c.defaultValue=EMBb;c.Nc=function(a){return parseFloat(a)};return EMBnj(a[b],c)},EMBtj=function(a){var b=new EMBmj;b.type="OPTIONAL";b.defaultValue=EMBb;b.Nc=function(a){return parseInt(a,10)};return EMBnj(a.d,b)},EMBuj=function(a,b,c,d,e,f,g){var h=new EMBmj;h.type="OPTIONAL";h.Nc=function(a){a=10==
c?parseFloat(a):parseInt(a,c);return f?EMBQ(a,d,e):a};h.defaultValue=g;h.Gd=function(a){return a>=d&&a<=e};return EMBnj(a[b],h)},EMBvj=function(a,b){var c=new EMBmj;c.type="OPTIONAL";c.defaultValue=EMBb;c.Nc=function(a){a=a.match(/([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})(\.[0-9])/);return!a?-1:3600*parseFloat(a[1])+60*parseFloat(a[2])+parseFloat(a[3])+parseFloat(a[4])};return EMBnj(a[b],c)},EMBwj=function(a,b){if(b==EMBd)return EMBd;var c=new a;c.Va(b);return c},EMBxj=function(a,b,c,d){if(a==EMBd||
a[b]==EMBd)return EMBd;var e=new EMBmj;e.type=d;e.defaultValue=EMBb;e.Gd=function(a){return!!a};e.Nc=EMBla(EMBwj,c);return EMBnj(a[b],e)},EMBnj=function(a,b){var c;if("OPTIONAL"==b.type||"REQUIRED"==b.type)c=a==EMBd?EMBd:b.Nc(EMBi(a)&&a.length?a[0]:a),b.Gd(c)||("REQUIRED"==b.type&&EMBa("Required field missing."),c=b.defaultValue==EMBd?EMBd:b.defaultValue);else if("REPEATED"==b.type){c=[];for(var d=EMBi(a)?a:[a],e=0;e<d.length;++e){var f=b.Nc(d[e]);b.Gd(f)?c.push(f):b.defaultValue!=EMBd&&c.push(b.defaultValue)}c=
c.length?c:EMBd}else c=EMBd;return c},EMBmj=function(){};EMBmj.prototype.type="OPTIONAL";EMBmj.prototype.Nc=function(a){return a==EMBd?EMBd:a.toString()};EMBmj.prototype.Gd=function(){return EMBc};EMBmj.prototype.defaultValue=EMBd;var EMByj=function(){},EMBzj={CLICK:"click",Fx:"hidden",fy:"rollOut",gy:"rollOver",ly:"shown"};EMByj.prototype.Va=function(a){this.Gy=EMBoj(a,"ref",/.+/,"OPTIONAL");this.state=EMBrj(a,"state",EMBzj,"OPTIONAL")};var EMBAj=function(){};EMBAj.prototype.Va=function(a){this.Cy=EMBxj(a,"condition",EMByj,"REPEATED")};var EMBBj=function(){},EMBCj={xx:"compose",Ex:"group",Kx:"hyperlink",Zx:"playlist",ey:"respUpload",iy:"search",ty:"userChannel",VIDEO:"video"},EMBDj={Ax:"current",Vx:"new"};
EMBBj.prototype.Va=function(a){this.type=EMBrj(a,"type",EMBCj,"OPTIONAL","hyperlink");this.value=EMBqj(a,"value");this.target=EMBrj(a,"target",EMBDj,"OPTIONAL","current")};
var EMBEj=function(a){if(!a.type||!a.value)return EMBd;switch(a.type){case "video":return"http://www.youtube.com/watch?v="+a.value;case "userChannel":return"http://www.youtube.com/user/"+a.value;case "subscribe":return"http://www.youtube.com/subscription_center?add_user="+a.value;case "group":return"http://www.youtube.com/group/"+a.value;case "search":return"http://www.youtube.com/results?search_query="+a.value;case "playlist":return"http://www.youtube.com/view_play_list?p="+a.value;case "compose":return"http://www.youtube.com/inbox?action_compose=1&to_users="+
a.value;case "friendInvite":return"http://www.youtube.com/peeps?action_invite&username="+a.value;case "responseUpload":return"http://www.youtube.com/video_response_upload?v="+a.value;case "externalExempted":case "internalExempted":case "hyperlink":return a.value}return EMBd},EMBFj=function(){};EMBFj.prototype.value=0;EMBFj.prototype.Va=function(a){this.value=EMBvj(a,"value")};var EMBGj=function(){},EMBHj={Wx:"openUrl",Lw:"pause"};
EMBGj.prototype.Va=function(a){this.type=EMBrj(a,"type",EMBHj,"OPTIONAL");this.trigger=EMBrj(a,"trigger",EMBzj,"OPTIONAL");this.url=EMBxj(a,"url",EMBBj,"OPTIONAL");this.duration=EMBxj(a,"duration",EMBFj,"OPTIONAL")};var EMBIj=function(){};EMB=EMBIj.prototype;EMB.fgColor="#1A1A1A";EMB.bgColor="#FFF";EMB.borderColor="#000";EMB.borderWidth=0;EMB.kf=0.8;EMB.bp=0.2;EMB.cp=0;EMB.Nj="#F2F2F2";EMB.Pk=3;EMB.Oj=3.6107;EMB.fontWeight="";
EMB.Va=function(a){this.fgColor=EMBpj(a,"fgColor",this.fgColor);this.bgColor=EMBpj(a,"bgColor",this.bgColor);this.borderColor=EMBpj(a,"borderColor",this.borderColor);this.borderWidth=EMBuj(a,"borderWidth",16,1,5,EMBe,this.borderWidth);this.kf=EMBuj(a,"bgAlpha",10,0,1,EMBe,this.kf);this.bp=EMBuj(a,"borderAlpha",10,0,1,EMBe,this.bp);this.cp=EMBuj(a,"gloss",16,0,255,EMBe,this.cp);this.Nj=EMBpj(a,"highlightFontColor",this.Nj);this.Pk=EMBuj(a,"highlightWidth",16,1,5,EMBe,this.Pk);this.Oj=EMBuj(a,"textSize",
10,3.3,30.1,EMBc,this.Oj);this.fontWeight=EMBqj(a,"fontWeight",this.fontWeight)};var EMBJj=function(){};EMBJj.prototype.Va=function(a){this.x=EMBsj(a,"x");this.y=EMBsj(a,"y");this.Go=EMBsj(a,"w");this.Eo=EMBsj(a,"h");this.Ai=EMBvj(a,"t");this.xu=EMBtj(a)};var EMBKj=function(){};EMBKj.prototype.Va=function(a){this.x=EMBsj(a,"x");this.y=EMBsj(a,"y");this.Fr=EMBsj(a,"sx");this.Gr=EMBsj(a,"sy");this.Go=EMBsj(a,"w");this.Eo=EMBsj(a,"h");this.Ai=EMBvj(a,"t");this.xu=EMBtj(a)};var EMBLj=function(){},EMBMj={Su:"anchored",cy:"rect"};
EMBLj.prototype.Va=function(a){this.type=EMBrj(a,"type",EMBMj,"OPTIONAL");this.Mo=EMBxj(a,"rectRegion",EMBJj,"REPEATED");this.ok=EMBxj(a,"anchoredRegion",EMBKj,"REPEATED")};var EMBNj=function(){};EMBNj.prototype.Va=function(a){this.hx=EMBoj(a,"timeRelative",/.+/,"OPTIONAL");this.jd=EMBoj(a,"spaceRelative",/.+/,"OPTIONAL");this.vd=EMBxj(a,"movingRegion",EMBLj,"REPEATED")};
var EMBOj=function(a){if(!a.vd)return EMBd;a=a.vd[0].Mo||a.vd[0].ok;if(!a||2>a.length)return EMBd;var b=a.length-1;return 0==a[0].Ai&&0==a[b]?EMBd:{start:a[0].Ai,end:a[b].Ai}};var EMBPj=function(){},EMBQj={Su:"anchored",Cx:"donation",Jx:"highlightText",Ox:"label",ay:"popup",my:"speech",ry:"title"},EMBRj={Ix:"highlight",Lw:"pause",qh:"text",qy:"thumbnail"};
EMBPj.prototype.Va=function(a){this.id=EMBoj(a,"id",/^a.*_.*$/,"REQUIRED");this.author=EMBoj(a,"author",/.+/,"OPTIONAL");this.type=EMBrj(a,"type",EMBRj,"REQUIRED");this.style=EMBrj(a,"style",EMBQj,"OPTIONAL");this.qh=EMBqj(a,"TEXT");this.Ba=EMBxj(a,"segment",EMBNj,"REQUIRED");this.action=EMBxj(a,"action",EMBGj,"REPEATED");this.trigger=EMBxj(a,"trigger",EMBAj,"REPEATED");this.rc=EMBxj(a,"appearance",EMBIj,"OPTIONAL");if(!this.rc)this.rc=new EMBIj};
EMBPj.prototype.getUrl=function(){if(!this.action)return EMBd;for(var a in this.action)if(this.action[a].url)return this.action[a].url;return EMBd};
var EMBSj=function(a){return!a.action?EMBe:a.action.some(function(a){return a.trigger&&"click"==a.trigger})},EMBTj=function(a){return"highlight"==a.type||"label"==a.style?EMBc:!a.action?EMBe:a.action.some(function(a){return a.trigger&&("rollOut"==a.trigger||"rollOver"==a.trigger)})},EMBUj=function(a){if(!a.Ba||!a.Ba.vd)return EMBd;a=a.Ba.vd[0];a=a.Mo||a.ok;return!a?EMBd:new EMBR(a[0].x,a[0].y,a[0].Go,a[0].Eo)},EMBVj=function(a){return!a.action?EMBd:(a=a.action.filter(function(a){return"pause"==a.type}))?
a[0]:EMBd};var EMBWj=function(){this.qa=[];this.o=[];this.cc=[]};EMBWj.prototype.ze=EMBd;EMBWj.prototype.Jb=EMBd;EMBWj.prototype.mi=EMBc;var EMBXj=[2,2,6,6,0];EMB=EMBWj.prototype;EMB.clear=function(){this.qa.length=0;this.o.length=0;this.cc.length=0;delete this.ze;delete this.Jb;delete this.mi;return this};EMB.moveTo=function(a,b){0==this.qa[this.qa.length-1]?this.cc.length-=2:(this.qa.push(0),this.o.push(1));this.cc.push(a,b);this.Jb=this.ze=[a,b];return this};
EMB.lineTo=function(a){var b=this.qa[this.qa.length-1];b==EMBd&&EMBa(Error("Path cannot start with lineTo"));1!=b&&(this.qa.push(1),this.o.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.cc.push(c,d)}this.o[this.o.length-1]+=b/2;this.Jb=[c,d];return this};EMB.close=function(){var a=this.qa[this.qa.length-1];a==EMBd&&EMBa(Error("Path cannot start with close"));if(4!=a)this.qa.push(4),this.o.push(1),this.Jb=this.ze;return this};
EMB.arcTo=function(a,b,c,d){var e=this.Jb[0]-a*Math.cos(c*Math.PI/180)+a*Math.cos((c+d)*Math.PI/180),f=this.Jb[1]-b*Math.sin(c*Math.PI/180)+b*Math.sin((c+d)*Math.PI/180);this.qa.push(3);this.o.push(1);this.cc.push(a,b,c,d,e,f);this.mi=EMBe;this.Jb=[e,f];return this};var EMBYj=function(a,b){for(var c=a.cc,d=0,e=0,f=a.qa.length;e<f;e++){var g=a.qa[e],h=EMBXj[g]*a.o[e];b(g,c.slice(d,d+h));d+=h}};
EMBWj.prototype.da=function(){var a=new this.constructor;a.qa=this.qa.concat();a.o=this.o.concat();a.cc=this.cc.concat();a.ze=this.ze&&this.ze.concat();a.Jb=this.Jb&&this.Jb.concat();a.mi=this.mi;return a};var EMBZj=function(){};EMBaa(EMBZj);EMBZj.prototype.Du=0;EMBZj.getInstance();var EMB0j=function(a){this.ye=a||EMBFb();this.Lu=EMB_j};EMBo(EMB0j,EMBsf);EMB0j.prototype.Cu=EMBZj.getInstance();var EMB_j=EMBd;EMB=EMB0j.prototype;EMB.Ca=EMBd;EMB.Ta=EMBe;EMB.V=EMBd;EMB.Lu=EMBd;EMB.Hr=EMBd;EMB.Wa=EMBd;EMB.Fc=EMBd;EMB.Pf=EMBd;EMB.un=EMBe;EMB.getId=function(){return this.Ca||(this.Ca=":"+(this.Cu.Du++).toString(36))};EMB.B=function(){return this.V};EMB.getParent=function(){return this.Wa};
EMB.Sk=function(a){this.Wa&&this.Wa!=a&&EMBa(Error("Method not supported"));EMB0j.k.Sk.call(this,a)};EMB.he=function(){this.V=this.ye.createElement("div")};EMB.Ud=function(a){this.xl(a)};EMB.xl=function(a,b){this.Ta&&EMBa(Error("Component already rendered"));this.V||this.he();a?a.insertBefore(this.V,b||EMBd):this.ye.N.body.appendChild(this.V);(!this.Wa||this.Wa.Ta)&&this.Jf()};
EMB.Bg=function(a){this.Ta&&EMBa(Error("Component already rendered"));if(a){this.un=EMBc;if(!this.ye||this.ye.N!=EMBB(a))this.ye=EMBFb(a);this.V=a;this.Jf()}else EMBa(Error("Invalid element to decorate"))};EMB.Jf=function(){this.Ta=EMBc;EMB1j(this,function(a){!a.Ta&&a.B()&&a.Jf()})};EMB.Nf=function(){EMB1j(this,function(a){a.Ta&&a.Nf()});this.Wh&&this.Wh.Pb();this.Ta=EMBe};
EMB.u=function(){EMB0j.k.u.call(this);this.Ta&&this.Nf();this.Wh&&(this.Wh.Vc(),delete this.Wh);EMB1j(this,function(a){a.Vc()});!this.un&&this.V&&EMBF(this.V);this.Wa=this.Hr=this.V=this.Pf=this.Fc=EMBd};var EMB1j=function(a,b){a.Fc&&EMBq(a.Fc,b,EMBb)};
EMB0j.prototype.removeChild=function(a,b){if(a){var c=EMBj(a)?a:a.getId(),a=this.Pf&&c?(c in this.Pf?this.Pf[c]:EMBb)||EMBd:EMBd;if(c&&a){var d=this.Pf;c in d&&delete d[c];EMBMa(this.Fc,a);b&&(a.Nf(),a.V&&EMBF(a.V));c=a;c==EMBd&&EMBa(Error("Unable to set parent component"));c.Wa=EMBd;EMB0j.k.Sk.call(c,EMBd)}}a||EMBa(Error("Child is not in parent component"));return a};var EMB2j=function(a,b,c,d,e){EMB0j.call(this,e);this.width=a;this.height=b;this.zd=c||EMBd;this.Ik=d||EMBd};EMBo(EMB2j,EMB0j);EMB2j.prototype.Of=EMBd;EMB2j.prototype.ei=0;EMB2j.prototype.fi=0;EMB2j.prototype.pe=function(){return this.Ta?EMBT(this.B()):"number"==typeof this.width&&"number"==typeof this.height?new EMBs(this.width,this.height):EMBd};var EMB3j=function(a){var b=a.pe();return b?b.width/(a.zd?new EMBs(a.zd,a.Ik):a.pe()).width:0};var EMB4j=function(){};var EMB5j=function(a,b){this.Kl=a;this.Kt=b||1};EMBo(EMB5j,EMB4j);EMB5j.prototype.gl=function(){return this.Kl};var EMB6j=function(a,b){this.Ou=a;this.Kl=b};EMB6j.prototype.getWidth=function(){return this.Ou};EMB6j.prototype.gl=function(){return this.Kl};var EMB7j=function(a,b){this.V=a;this.K=b;this.Ek=EMBe};EMBo(EMB7j,EMBsf);EMB=EMB7j.prototype;EMB.K=EMBd;EMB.V=EMBd;EMB.B=function(){return this.V};EMB.addEventListener=function(a,b,c,d){EMBif(this.V,a,b,c,d)};EMB.removeEventListener=function(a,b,c,d){EMBlf(this.V,a,b,c,d)};EMB.u=function(){EMB7j.k.u.call(this);EMBpf(this.V)};var EMB8j=function(a,b,c,d){EMB7j.call(this,a,b);this.Pt=c;a=this.K;b=this.B();c?(b.setAttribute("stroke",c.gl()),c=c.getWidth(),EMBj(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/EMB3j(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.B();d instanceof EMB5j?(c.setAttribute("fill",d.gl()),c.setAttribute("fill-opacity",d.Kt)):c.setAttribute("fill","none")};EMBo(EMB8j,EMB7j);EMB8j.prototype.fill=EMBd;EMB8j.prototype.Pt=EMBd;var EMB9j=function(a,b){EMB7j.call(this,a,b)};EMBo(EMB9j,EMB7j);var EMB$j=function(a,b,c,d){EMB8j.call(this,a,b,c,d)};EMBo(EMB$j,EMB8j);var EMBak=function(a,b){EMB7j.call(this,a,b)};EMBo(EMBak,EMB9j);EMBak.prototype.clear=function(){EMBQb(this.B())};EMBak.prototype.setSize=function(a,b){EMBbk(this.B(),{width:a,height:b})};var EMBck=function(a,b,c,d){EMB8j.call(this,a,b,c,d)};EMBo(EMBck,EMB$j);EMBck.prototype.setPath=function(a){EMBbk(this.B(),{d:EMBdk(a)})};var EMBek=function(a,b,c,d,e){EMB2j.call(this,a,b,c,d,e);this.fo={};this.hk=EMBv&&!EMBw(526);this.Qf=new EMBtf(this)},EMBfk;EMBo(EMBek,EMB2j);var EMBgk=function(a,b,c){a=a.ye.N.createElementNS("http://www.w3.org/2000/svg",b);c&&EMBbk(a,c);return a},EMBbk=function(a,b){for(var c in b)a.setAttribute(c,b[c])};EMB=EMBek.prototype;EMB.oe=function(a,b){(b||this.Of).B().appendChild(a.B())};
EMB.he=function(){var a=EMBgk(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=EMBgk(this,"g");this.mk=EMBgk(this,"defs");this.Of=new EMBak(b,this);a.appendChild(this.mk);a.appendChild(b);this.V=a;if(this.zd||this.ei||this.fi)this.B().setAttribute("preserveAspectRatio","none"),this.hk?this.Rh():this.B().setAttribute("viewBox",this.ei+" "+this.fi+" "+(this.zd?this.zd+" "+this.Ik:""))};
EMB.Rh=function(){if(this.Ta&&(this.zd||this.ei||!this.fi)){var a=this.pe();0==a.width?this.B().style.visibility="hidden":(this.B().style.visibility="",this.Of.B().setAttribute("transform","scale("+a.width/this.zd+" "+a.height/this.Ik+") translate("+-this.ei+" "+-this.fi+")"))}};EMB.setSize=function(a,b){EMB7d(this.B(),a,b)};
EMB.pe=function(){if(!EMBu)return this.Ta?EMBT(this.B()):EMBek.k.pe.call(this);var a=this.width,b=this.height,c=EMBj(a)&&-1!=a.indexOf("%"),d=EMBj(b)&&-1!=b.indexOf("%");if(!this.Ta&&(c||d))return EMBd;var e,f;if(c)e=this.B().parentNode,f=EMBT(e),a=parseFloat(a)*f.width/100;d&&(e=e||this.B().parentNode,f=f||EMBT(e),b=parseFloat(b)*f.height/100);return new EMBs(a,b)};EMB.clear=function(){this.Of.clear();EMBQb(this.mk);this.fo={}};
var EMBhk=function(a,b,c,d){b=EMBgk(a,"path",{d:EMBdk(b)});c=new EMBck(b,a,c,d);a.oe(c,EMBb)},EMBdk=function(a){var b=[];EMBYj(a,function(a,d){switch(a){case 0:b.push("M");Array.prototype.push.apply(b,d);break;case 1:b.push("L");Array.prototype.push.apply(b,d);break;case 2:b.push("C");Array.prototype.push.apply(b,d);break;case 3:var e=d[3];b.push("A",d[0],d[1],0,180<Math.abs(e)?1:0,0<e?1:0,d[4],d[5]);break;case 4:b.push("Z")}});return b.join(" ")};
EMBek.prototype.Jf=function(){var a=this.pe();EMBek.k.Jf.call(this);a||this.dispatchEvent("resize");if(this.hk){var a=this.width,b=this.height;"string"==typeof a&&-1!=a.indexOf("%")&&"string"==typeof b&&-1!=b.indexOf("%")&&this.Qf.H(EMBik(),"tick",this.Rh);this.Rh()}};EMBek.prototype.Nf=function(){EMBek.k.Nf.call(this);this.hk&&this.Qf.Rk(EMBik(),"tick",this.Rh)};EMBek.prototype.u=function(){delete this.fo;delete this.mk;delete this.Of;EMBek.k.u.call(this)};
var EMBik=function(){EMBfk||(EMBfk=new EMBwf(400),EMBfk.start());return EMBfk};var EMBjk=function(a,b,c,d){this.gp=a;this.hp=b;this.Cl=c;this.Dl=d};EMBjk.prototype.da=function(){return new EMBjk(this.gp,this.hp,this.Cl,this.Dl)};var EMBkk=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};EMBkk.prototype.da=function(){return new EMBkk(this.start,this.end)};EMBkk.prototype.toString=function(){return"["+this.start+", "+this.end+"]"};var EMBlk={jh:function(a,b){return new EMBR(a.width*b.left/100+a.left,a.height*b.top/100+a.top,a.width*b.width/100,a.height*b.height/100)},Or:function(a,b){return new EMBr(a.width*b.x/100+a.left,a.height*b.y/100+a.top)}};var EMBmk=function(){};EMBmk.prototype.hasFocus=EMBe;EMBmk.prototype.K=EMBd;EMBmk.prototype.B=function(){return this.K?this.K.B():EMBd};EMBmk.prototype.refresh=function(){};var EMBnk=function(a){this.Eb=a};EMBo(EMBnk,EMBmk);
EMBnk.prototype.refresh=function(a){a=EMBlk.jh(a,EMBUj(this.Eb));this.K?(this.K.setSize(a.width,a.height),this.K.clear()):(this.K=new EMBek(a.width,a.height),this.K.he());var b=this.Eb.rc||new EMBIj,c=b.borderWidth,c=c+(this.hasFocus?1:0);EMBok(this.K,new EMBR(0,0,a.width,a.height),c?new EMB6j(c,this.hasFocus?"#FFF":b.borderColor):EMBd,new EMB5j(b.bgColor,b.kf));b=this.K.B();EMBpk(b,"annotation-shape");EMBpk(b,"annotation-popup-shape");EMB_d(b,a.left,a.top);EMB7d(b,a.width,a.height)};
var EMBqk=function(a){this.Eb=a};EMBo(EMBqk,EMBmk);EMBqk.prototype.refresh=function(a){a=EMBlk.jh(a,EMBUj(this.Eb));this.K?(this.K.setSize(a.width,a.height),this.K.clear()):(this.K=new EMBek(a.width,a.height),this.K.he());var b=this.Eb.rc||new EMBIj;EMBok(this.K,new EMBR(0,0,a.width,a.height),new EMB6j(b.Pk,b.bgColor),EMBd);b=this.K.B();EMBpk(b,"annotation-shape");EMBpk(b,"annotation-highlight-shape");this.hasFocus?EMBpk(b,"focus"):EMBrk(b,"focus");EMB_d(b,a.left,a.top);EMB7d(b,a.width,a.height)};
var EMBsk=function(a){this.Eb=a};EMBo(EMBsk,EMBmk);var EMB7={TOP:"t",LEFT:"l",BOTTOM:"b",RIGHT:"r",Bu:"i",sy:""};
EMBsk.prototype.refresh=function(a){var o;var b=this.Eb.rc||new EMBIj,c=b.borderWidth,c=(c+=this.hasFocus?1:0)?new EMB6j(c,b.borderColor):EMBd,b=new EMB5j(b.bgColor,b.kf),d=EMBlk.jh(a,EMBUj(this.Eb)),e;e=this.Eb;o=!e.Ba||!e.Ba.vd?EMBd:(e=e.Ba.vd[0].ok)?new EMBr(e[0].Fr,e[0].Gr):EMBd,e=o;var f=EMBlk.Or(a,e);e=d.da();var g=new EMBR(f.x,f.y,1,1),h=Math.max(e.left+e.width,g.left+g.width),i=Math.max(e.top+e.height,g.top+g.height);e.left=Math.min(e.left,g.left);e.top=Math.min(e.top,g.top);e.width=h-e.left;
e.height=i-e.top;this.K?(this.K.setSize(e.width,e.height),this.K.clear()):(this.K=new EMBek(e.width,e.height),this.K.he());var d=new EMBR(d.left<f.x?0:d.left-f.x,d.top<f.y?0:d.top-f.y,d.width,d.height),j=new EMBr(f.x-e.left,f.y-e.top);this.Hn=6*a.height/100;var a=this.K,f=c?c.getWidth()/2:0,g=EMBtk(d,j),h=this.In(d,j,g),i=j.x,j=j.y,k=d.width,l=d.height,n=d.left,d=d.top,m=new EMBWj;m.moveTo(n+5+f,d+f);g==EMB7.TOP&&(m.lineTo(h.start,d+f),m.lineTo(i,j),m.lineTo(h.end,d+f));m.lineTo(n+k-5-f,d+f);m.arcTo(5,
5,-90,90);g==EMB7.LEFT&&(m.lineTo(n+k-f,h.start),m.lineTo(i,j),m.lineTo(n+k-f,h.end));m.lineTo(n+k-f,d+l-5-f);m.arcTo(5,5,0,90);g==EMB7.BOTTOM&&(m.lineTo(h.end,d+l-f),m.lineTo(i,j),m.lineTo(h.start,d+l-f));m.lineTo(n+5+f,d+l-f);m.arcTo(5,5,90,90);g==EMB7.RIGHT&&(m.lineTo(n+f,h.end),m.lineTo(i,j),m.lineTo(n+f,h.start));m.lineTo(n+f,d+5+f);m.arcTo(5,5,180,90);m.close();EMBhk(a,m,c,b);c=this.K.B();EMBpk(c,"annotation-shape");EMBpk(c,"annotation-speech-shape");EMB_d(c,e.left,e.top);EMB7d(c,e.width,e.height)};
var EMBtk=function(a,b){var c=function(a,b){var c=(a.Dl-a.hp)/(a.Cl-a.gp+1.0E-5);return c*b.x+(a.Dl-c*a.Cl)>=b.y?EMBe:EMBc},d=b.x,e=b.y,f=a.width,g=a.height,h=a.left,i=a.top,j=new EMBjk(h,i,h+f,i+g),k=new EMBjk(h,i+g,h+f,i);return d>=h&&d<=h+f&&e>=i&&e<=i+g?EMB7.Bu:c(j,b)&&!c(k,b)?EMB7.RIGHT:!c(j,b)&&!c(k,b)?EMB7.TOP:c(k,b)&&!c(j,b)?EMB7.LEFT:EMB7.BOTTOM};
EMBsk.prototype.In=function(a,b,c){var d=this.Hn,e=0,f=0;if(c==EMB7.TOP||c==EMB7.BOTTOM){if(a.width<d)return new EMBkk(0,a.width);e=d;f=EMBQ(b.x-e/2,0,a.top+a.width-e)}else if(c==EMB7.LEFT||c==EMB7.RIGHT){if(a.height<d)return new EMBkk(0,a.height);e=d;f=EMBQ(b.y-e/2,0,a.left+a.height-e)}return new EMBkk(f,f+e)};var EMBuk=function(a){this.Eb=a};EMBo(EMBuk,EMBsk);
EMBuk.prototype.In=function(a,b,c){var d=this.Hn,e=0,f=0;if(c==EMB7.TOP||c==EMB7.BOTTOM){if(a.width<d)return new EMBkk(0,a.width);e=d;f=b.x<=a.top+a.width/2?Math.max(a.top+a.width/4-e/2,0):Math.min(a.top+3*a.width/4-e/2,a.top+a.width-e)}else if(c==EMB7.LEFT||c==EMB7.RIGHT){if(a.height<d)return new EMBkk(0,a.height);e=d;f=b.y<=a.left+a.height/2?Math.max(a.left+a.height/4-e/2,0):Math.min(a.left+3*a.height/4-e/2,a.left+a.height-e)}return new EMBkk(f,f+e)};
var EMBok=function(a,b,c,d){var e=new EMBWj,f=c?c.getWidth()/2+1:0;e.moveTo(b.left+4+f,b.top+f);e.lineTo(b.left+b.width-4-f,b.top+f);e.arcTo(4,4,-90,90);e.lineTo(b.left+b.width-f,b.top+b.height-4-f);e.arcTo(4,4,0,90);e.lineTo(b.left+4+f,b.top+b.height-f);e.arcTo(4,4,90,90);e.lineTo(b.left+f,b.top+4+f);e.arcTo(4,4,180,90);e.close();EMBhk(a,e,c,d)},EMBpk=function(a,b){var c=a.getAttribute("class"),c=c?c.split(/\s+/):[];-1==c.indexOf(b)&&(c.push(b),a.setAttribute("class",c.join(" ")))},EMBrk=function(a,
b){var c=a.getAttribute("class"),c=c?c.split(/\s+/):[],d=c.indexOf(b);-1!=d&&(c.splice(d,1),a.setAttribute("class",c.join(" ")))};var EMBvk=function(a,b,c){this.wi=a;this.pl=0;this.Wo=b;if(c)this.Qo=c};EMB=EMBvk.prototype;EMB.Qo=70;EMB.ql=EMBe;EMB.start=function(a){this.Oo=EMBm();this.pl=a;this.No=this.Oo+this.pl;this.ql=EMBc;EMBrk(this.wi,"hid");EMBN(this.vl);this.vl=EMBfd(EMBk(this.xl,this),this.Qo)};EMB.stop=function(){this.ql=EMBe;EMBpk(this.wi,"hid");this.vl&&EMBN(this.vl)};
EMB.xl=function(){if(this.ql){var a=EMBm(),b;b=a>=this.No?0:1-(a-this.Oo)/this.pl;var c=EMBD("countdowntimer-diminishing-pieslice",this.wi),d=parseInt(this.wi.getAttribute("width"),10),e=new EMBWj,f=d/2-5;e.moveTo(d/2,d/2);e.lineTo(d/2,5);e.arcTo(f,f,-90,360*-b);e.lineTo(d/2,d/2);e.close();c.setAttribute("d",EMBdk(e));a>=this.No&&(this.stop(),this.Wo&&this.Wo())}};var EMBwk=function(a){if(!a)return EMBe;a=a.replace(/https?:\/\//g,"");a=a.split("/",1);if(!a||1>a.length||!a[0])return EMBe;a=a[0].toLowerCase().split(".").reverse();return 2>a.length?EMBe:"com"==a[0]&&"youtube"==a[1]||"be"==a[0]&&"youtu"==a[1]},EMBxk=function(a,b){if("new"==a.target)return-1;var c=EMBEj(a);if(!c)return-1;c=c.replace(/https?:\/\//g,"");if(!EMBwk(c))return-1;var d=c.match(EMB0c)[5]||EMBd,d=(d&&decodeURIComponent(d)||"").split("/"),d="/"+(1<d.length?d[1]:"");if("/watch"!=d)return-1;
d=EMB8c(c);if(!d||d.v!=b.n)return-1;c=c.split("#",2);return!c||2>c.length?-1:(c=EMB7c(c[1]))&&c.t?EMBwg(c.t):-1};var EMByk=function(a){this.Na=a;this.dn={}},EMBAk=function(a,b){var c={};c["iv-event"]=b;c["a-id"]=a.id;c["a-type"]=EMBzk(a);var d=a.getUrl();if(d)c["l-type"]=d.type,c.link=escape(EMBEj(d));return c},EMBzk=function(a){switch(a.type){case "text":switch(a.style){case "popup":case "donation":return 1;case "speech":return 2;case "title":return 4;default:return 0}case "highlight":return 3;case "thumbnail":return 5;default:return 0}};EMByk.prototype.j=function(a){this.Na.c("command_log","iv",a)};var EMBBk=function(a,b,c,d){this.z=a;this.Gj=b;this.b=c;this.Na=d;this.gf=EMBd;this.mj=new EMB1f;this.jd=this.R=this.C=EMBd};EMB=EMBBk.prototype;EMB.z=EMBd;EMB.C=EMBd;EMB.fb=EMBd;EMB.eb=EMBd;EMB.Gj=EMBd;EMB.b=EMBd;EMB.Na=EMBd;EMB.R=EMBd;EMB.jd=EMBd;EMB.tj=EMBe;EMB.pj=function(){this.eb&&EMBU(this.eb);this.fb&&EMB$d(this.fb,1);if(this.R&&this.tj)this.R.hasFocus=EMBc,EMB$d(this.C,EMBCk(this)?1:0),this.R.refresh(this.b.Wc);this.Na.c("mouseover",this.z)};
EMB.oj=function(){this.eb&&EMBV(this.eb);if(this.fb)this.fb.style.opacity=0.6;if(this.R&&this.tj)this.R.hasFocus=EMBe,EMB$d(this.C,EMBCk(this)?1:0),this.R.refresh(this.b.Wc);this.Na.c("mouseout",this.z)};
var EMBDk=function(a){if(a.C||a.R){var b;if(a.jd){b=EMBUj(a.jd);var c=EMBUj(a.z);!b||!c?b=EMBd:(c.top+=b.top,c.left+=b.left,b=c)}else b=EMBUj(a.z);if(c=b){b=a.b.Wc;var d=EMB_g(a.b);if(a.C){c=EMBlk.jh(b,c);EMB7d(a.C,c.width,c.height);EMB_d(a.C,c.left,c.top);var e="speech"==a.z.style?1.6:0.8,f=e*d.height/100;a.C.style.padding=f+"px "+e*d.width/100+"px";if(a.fb)d=1.5*b.height/100,a.C.style.paddingRight=f+EMBT(a.fb).width+d+"px";if("label"==a.z.style)a.ph.style.padding=a.C.style.padding;a.fb&&(d=4.2*
b.height/100,d=new EMBs(d,d),EMB7d(a.fb,d),"highlight"==a.z.type?(f=1.5*b.height/100,d=new EMBr(c.width-d.width-f,c.height-d.height-f)):d=new EMBr(c.width-d.width-3*b.height/100,(c.height-d.height)/2),EMB_d(a.fb,d));if(a.eb){e=6*b.height/100;EMB7d(a.eb,new EMBs(e,e));var d=a.eb,f=EMBT(a.eb),e=e/2,g=b.left+b.width-(c.left+c.width)>=e,h=c.top-b.top>=e;EMB_d(d,g&&h?new EMBr(c.width-e,-e):g?new EMBr(c.width-e,c.height>3*e+f.height?e:c.height-e):h?new EMBr(c.width>3*e+f.width?c.width-e-f.width:-e,-e):
c.width/b.width>c.height/b.height?new EMBr(c.width>3*e+f.width?c.width-e-f.width:-e,c.height-e):new EMBr(-e,c.height>3*e+f.height?e:c.height-e))}}a.R&&a.R.refresh(b);b=a.C;c=a.z.rc||new EMBIj;d=a.b.Wc;b.style.color="highlightText"==a.z.style?c.Nj:c.fgColor;b.style.fontSize=d.height*c.Oj/100+"px";if("title"==a.z.style||"highlightText"==a.z.style)b.style.textAlign="center";if(c.fontWeight)b.style.fontWeight=c.fontWeight;if(a.C)for(b=10;a.C.scrollHeight>a.C.offsetHeight&&b;){c=EMBke(a.C);if(5>c)break;
c--;a.C.style.fontSize=c+"px";b--}}}};
EMBBk.prototype.show=function(){if(this.b.Wc){var a=this.z.rc;if((a&&0==a.kf?0:!("title"==this.z.style||"highlightText"==this.z.style||"pause"==this.z.type))&&!this.R)if(a=this.b.Wc){var b=EMBd;if("popup"==this.z.style)b=new EMBnk(this.z);else if("anchored"==this.z.style)b=new EMBsk(this.z);else if("speech"==this.z.style)b=new EMBuk(this.z);else if("label"==this.z.style||"highlight"==this.z.type)b=new EMBqk(this.z);if(b)b.refresh(a),this.R=b,EMBV(this.R.B()),this.Gj.appendChild(this.R.B())}if(!this.C){this.C=
EMBE("div",["annotation","hid"]);if(this.z.qh)"label"==this.z.style?(a=this.z.rc||new EMBIj,this.ph=EMBE("div",["label-text"]),this.ph.style.backgroundColor=a.bgColor,EMBSb(this.ph,this.z.qh),this.C.appendChild(this.ph)):EMBSb(this.C,this.z.qh);EMBue(this.C,"annotation_id",this.z.id);this.Gj.appendChild(this.C);this.tj=EMBSj(this.z)||EMBTj(this.z);this.mj.H(this.C,"mouseover",EMBk(this.pj,this));this.mj.H(this.C,"mouseout",EMBk(this.oj,this));if(EMBSj(this.z)){if(a=this.z.getUrl())this.C.title=EMBEj(a);
this.fb=EMBE("span","annotation-link-icon");this.C.appendChild(this.fb)}a=EMBD("annotation-close-button-container",EMBb);a=EMBKe(EMBC(a));a.removeAttribute("id");this.eb=a;EMBue(this.eb,"annotation_id",this.z.id);this.C.appendChild(this.eb)}EMBU(this.C);EMB$d(this.C,EMBCk(this)?1:0);EMBDk(this);this.R&&EMBU(this.R.B())}};EMBBk.prototype.Ee=function(){EMBV(this.C);this.R&&EMBV(this.R.B())};var EMBCk=function(a){return"label"!=a.z.style||a.R.hasFocus};var EMBFk=function(a){EMB6.call(this,a);this.b=a.getEnvironmentData();this.ya={};this.Zc={};this.wh={};this.jj={};this.af={};this.Jg=new EMByk(this.pubsub);var a=a.getRootNode(),b=EMBEk;this.gf=EMBD(b.Iq,a);var c=EMBD(b.Jq,this.gf);this.Kq=EMBD(b.Hq,a);EMBG(this.Kq,"click",EMBk(this.Nq,this));this.pubsub.e("onResize",EMBk(this.wj,this));this.pubsub.e("onStateChange",EMBk(this.Oq,this));this.pubsub.e("mouseover",EMBk(this.pj,this));this.pubsub.e("mouseout",EMBk(this.oj,this));EMB6b(this.gf,EMBk(this.Mq,
this),"annotation-close-button-container");EMB6b(this.gf,EMBk(this.Lq,this),"annotation");this.nj=new EMBvk(c,EMBk(this.gm,this))};EMBo(EMBFk,EMB6);var EMBEk={Hq:"html5-annotations-button",Iq:"video-annotations",Jq:"countdowntimer"};EMB=EMBFk.prototype;EMB.aa="iv";EMB.bn=EMBc;EMB.loaded=EMBe;EMB.vb=EMBe;EMB.Yb=function(){return!!EMBOe("video-annotations",this.D.getRootNode())};EMB.create=function(){EMBFk.k.create.call(this);this.a=this.D.getVideoData();1==this.a.jm&&this.load()};
EMB.oa=function(){this.unload();EMBFk.k.oa.call(this)};EMB.Nq=function(){this.loaded?this.unload():this.load()};EMB.wj=function(){for(var a in this.wh)EMBDk(this.wh[a])};EMB.Oq=function(a){this.bn=a.state.zf?EMBc:EMBe;a.Ym.Hi&&!a.state.Hi&&this.nj.stop()};EMB.load=function(){EMBFk.k.load.call(this);var a={format:"XML",method:"GET",Xc:{video_id:this.a.n},qj:EMBk(this.pq,this)};this.vb=EMBc;EMBEe(this.b.Kb+"annotations/read2",a)};
EMB.unload=function(){this.Jg.j({"iv-event":1});this.xf();for(var a in this.ya)delete this.ya[a];for(a in this.Zc){var b=this.Zc[a];b.mj.Pb();b.C&&EMBF(b.C);b.R&&b.R.B()&&EMBF(b.R.B());delete this.Zc[a]}this.loaded=this.vb=EMBe;this.jj={};this.Zw={};this.af={};this.Zc={};this.ya={};EMBFk.k.unload.call(this)};
var EMBGk=function(a,b){for(var c={},d=0;d<b.attributes.length;d++){var e=b.attributes[d];c[e.name]=e.nodeValue}for(d=0;d<b.childNodes.length;d++)if(e=b.childNodes[d],e.tagName){var f;c[e.tagName]?f=c[e.tagName]:(f=[],c[e.tagName]=f);e.childNodes&&1==e.childNodes.length&&3==e.childNodes[0].nodeType?f.push(e.childNodes[0].nodeValue):f.push(EMBGk(a,e))}return c};
EMBFk.prototype.pq=function(a){if(this.vb&&!this.loaded){this.vb=EMBe;var b=a.responseXML?a.responseXML.getElementsByTagName("annotations"):EMBd;if(!EMBBe(a)||!b)EMB1.log(EMByc,"Could not obtain annotation JSON from server.");else{a=b[0].getElementsByTagName("annotation");for(b=0;b<a.length;b++){var c=EMBGk(this,a[b]),d=new EMBPj;try{d.Va(c)}catch(e){EMB1.log(EMByc,"Could not parse object from server.");continue}this.ya[d.id]=d}for(var f in this.ya){a=this.ya[f];b=EMBb;b:if("highlight"==a.type)b=
EMBc;else{if("text"==a.type)for(b in b=EMBb,EMBQj)if(a.style==EMBQj[b]){b=EMBc;break b}b=EMBe}b?(b=new EMBBk(a,this.gf,this.b,this.pubsub),this.Zc[a.id]=b):b=EMBd;if(b&&a.Ba&&a.Ba.jd){c=a.Ba.jd;if(d=this.ya[c])b.jd=d;this.af[c]=a.id}}EMBx(this.D.getRootNode(),this.aa+"-loaded");this.loaded=EMBc;f=[];for(var g in this.ya)a=this.ya[g],a.Ba&&a.Ba&&EMBOj(a.Ba)&&(b=EMBOj(a.Ba),a=1E3*b.start,b=1E3*b.end,0==a&&(a++,b++),a==b&&b++,a=new EMBfg(a,b,{id:g}),f.push(a));this.addCueRange.apply(this,f)}}};
EMBFk.prototype.tc=function(a){EMBFk.k.tc.call(this,a);a=a.getId();if(!this.jj[a]){var b=this.ya[a];if("pause"==b.type){if(this.bn&&(a=EMBVj(b))&&a.duration&&a.duration.value)this.pubsub.c("command_pause"),this.nj.start(1E3*a.duration.value)}else EMBHk(this,a),b=this.Jg,a=this.ya[a],!b.dn[a.id]&&a.getUrl()&&(b.dn[a.id]=EMBc,b.j(EMBAk(a,2)))}};EMBFk.prototype.de=function(a){EMBFk.k.de.call(this,a);EMBIk(this,a.getId())};
var EMBIk=function(a,b){var c=a.Zc[b];if(c){var d=a.af[b];d&&EMBIk(a,d);c.Ee();delete a.wh[b]}},EMBHk=function(a,b){var c=a.Zc[b];c&&(c.show(),a.wh[b]=c)};EMB=EMBFk.prototype;
EMB.Lq=function(a){var e;if(EMBz(a.target,"annotation")&&(a.stopPropagation(),a=EMBY(a.currentTarget,"annotation_id"))){var a=this.ya[a],b=this.Jg;a.getUrl()&&b.j(EMBAk(a,3));if(b=a.getUrl()){var c=EMBxk(b,this.a);if(-1!=c)this.pubsub.c("command_seek",c),this.gm();else{var c=this.a,d=EMBEj(b);e=d?EMBwk(d)?d=EMB$c(d,{feature:"iv",annotation_id:a.id}):c.Vl?d:EMBd:EMBd,a=e;a&&window.open(a,!this.a.Wl?"_top":"embedded"==this.b.F?"_blank":b.target?"new"==b.target?"_blank":"_top":EMBwk(EMBEj(b))?"_top":
"_blank")}}else EMB1.log(EMByc,"Clicked on an annotation without a url.")}};EMB.pj=function(a){(a=this.af[a.id])&&EMBHk(this,a)};EMB.oj=function(a){(a=this.af[a.id])&&EMBIk(this,a)};EMB.Mq=function(a){a.stopPropagation();if(a=EMBY(a.currentTarget,"annotation_id"))this.jj[a]=EMBc,EMBIk(this,a),(a=this.ya[a])&&this.Jg.j(EMBAk(a,4))};EMB.gm=function(){this.nj.stop();this.pubsub.c("command_play")};var EMBJk=RegExp("^(ar|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)");var EMBKk=function(a,b){this.id=a;this.I=new EMBVf(b);var c="caption-window";0==this.id&&(c="standard-caption-window");this.G=EMBE("div",{id:"caption-window-"+this.id,"class":c});this.Ae=EMBE("span",{"class":"captions-text",style:"visibility: hidden"});this.Ae.innerHTML="C";this.J=EMBE("span",{"class":"captions-text",tabindex:"4","aria-live":"assertive"});c=EMBE("div",{"class":"caption-window-transform"});c.appendChild(this.J);this.G.appendChild(c)};EMB=EMBKk.prototype;EMB.id=0;EMB.I=EMBd;
EMB.Ef="";EMB.nb=EMBd;EMB.G=EMBd;EMB.J=EMBd;EMB.Ae=EMBd;EMB.type=1;EMB.getType=function(){return this.type};EMB.Vh=function(){var a;this.Ae.style.fontFamily=this.J.style.fontFamily;this.G.appendChild(this.Ae);a=this.Ae.offsetHeight;this.G.removeChild(this.Ae);return a};EMB.Ih=function(){if(this.J){if(0!=this.id)this.G.style.width=EMBZd(this.J.offsetWidth,EMBc);var a=Math.round(this.I.Tb*this.Vh());EMBXd(this.G,"max-height",a+"px");EMBLk(this);EMBle(this.G,this.I.isVisible)}};
var EMBLk=function(a){EMB_d(a.G,a.I.Lh+"%",a.I.Mh+"%");for(var b=0;8>=b;b++)EMBy(a.G,"anchor-point-"+b);EMBx(a.G,"anchor-point-"+a.I.Kh)};EMBKk.prototype.Ln=function(a){var b=[];a.forEach(function(a){a.oe?b[b.length-1]+=a.Wb():b.push(a.Wb())},this);this.qd(b.join("\n"));this.nb=a};EMBKk.prototype.qd=function(a){this.Ef=a=EMBMk(a);this.J.innerHTML=this.Ef;this.$k();this.Ih()};var EMBNk=function(a,b){if(b){var c=document.createElement("div");c.innerHTML=b;b=c.firstChild?c.firstChild.nodeValue:"";a.qd(b)}};
EMBKk.prototype.$k=function(){this.G.style.textAlign=this.I.textAlign;this.J.style.backgroundColor=this.I.backgroundColor;this.J.style.color=this.I.Fh;this.J.style.opacity=this.I.opacity;this.J.style.fontFamily=this.I.fontFamily;this.J.style.fontSize=this.I.fontSize+"px";1==this.I.ld?this.J.setAttribute("dir","rtl"):this.J.removeAttribute("dir")};EMBKk.prototype.toString=function(){var a="Caption window ("+this.id+"): "+this.Ef,b;for(b in this.I)a+=b+" "+this.I[b]+" | ";return a};
var EMBMk=function(a){for(var a=a.split("\n"),b=0,c=a.length;b<c;b++)a[b]=a[b]?"&nbsp;"+a[b]+"&nbsp;":"";return a.join("<br>")};EMBKk.prototype.ni=function(){this.nb=[];this.qd("")};var EMBOk=function(a,b){EMBKk.call(this,a,b);this.J.style.display="block";this.J.style.padding="0";this.Ua=[]};EMBo(EMBOk,EMBKk);EMB=EMBOk.prototype;EMB.type=0;EMB.md="";EMB.Df=EMBe;EMB.zc=EMBd;EMB.Ua=EMBd;EMB.Vh=function(){return this.Ua[0]?this.Ua[0].offsetHeight:0};var EMBPk=function(a){return a.Ua.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)};
EMBOk.prototype.Ih=function(){if(0!=this.id){var a=this.Df?EMBPk(this):this.zc.width;this.G.style.width=EMBZd(a,EMBc)}a=Math.round(this.I.Tb*this.Vh());EMBXd(this.G,"max-height",a+"px");EMBLk(this);EMBle(this.G,this.I.isVisible)};
EMBOk.prototype.qd=function(a){this.ni();a=EMBMk(a);if(!this.Df)this.Ef=a;for(var a=a.split("<br>"),b=0,c=a.length;b<c;b++)if(a[b]){var d=EMBE("div",{"class":"caption-row-holder"}),e=EMBE("span",{"class":"caption-row"});d.appendChild(e);e.innerHTML=a[b];if(!this.Df)e.style.left=this.zc.Zm[b];this.J.appendChild(d);this.Ua.push(e)}this.$k();this.Ih()};EMBOk.prototype.ni=function(){for(var a=0,b=this.Ua.length;a<b;a++){var c=EMBZb(this.Ua[a],EMBd,"caption-row-holder");EMBF(c)}this.Ua=[]};
EMBOk.prototype.$k=function(){this.G.style.textAlign=this.I.textAlign;for(var a=0,b=this.Ua.length;a<b;a++)this.Ua[a].style.backgroundColor=this.I.backgroundColor;this.J.style.color=this.I.Fh;this.J.style.opacity=this.I.opacity;this.J.style.fontFamily=this.I.fontFamily;1==this.I.ld?this.J.setAttribute("dir","rtl"):this.J.removeAttribute("dir")};var EMBQk=function(a,b){EMBKk.call(this,a,b);this.nb=[];this.Dc=[];this.wa=[];this.re=new EMBwf(433);this.re.stop();EMBG(this.re,"tick",EMBk(this.$t,this))};EMBo(EMBQk,EMBKk);EMB=EMBQk.prototype;EMB.type=2;EMB.wa=EMBd;EMB.Ec=0;EMB.Dc=EMBd;EMB.re=EMBd;EMB.Ln=function(a){var b=a.length;if(0>=b)this.ni();else{for(var c=0;c<b&&0<=this.nb.indexOf(a[c]);)c++;this.nb=this.nb.concat(a.slice(c));EMBRk(this)}};EMB.ni=function(){this.nb=[];this.wa=[];this.Ec=0;this.wa=[];this.Dc=[];this.le()};
var EMBRk=function(a){if(!EMBSk(a))if(a.Ec>=a.nb.length)a.le();else{var b=a.wa.length-1;if(0>b)a.Dc.push(0),a.Ec=0,a.wa.push(""),b=0;for(var c=a.nb.length,d=a.Ec;d<c;d++){var e=a.nb[d];if("\n"==e.Wb()){a.Ec++;a.Dc[b]++;break}if(e.oe||0==a.wa[b].length)a.wa[b]+=e.Wb(),a.Ec++,a.Dc[b]++;else break}a.le();if(d<c&&!EMBSk(a))b=a.Vh(),EMBx(a.J,"caption-rollup"),a.G.style.overflow="hidden",a.J.style.top=-b+"px",a.re.start()}},EMBSk=function(a){return a.re.enabled||EMBz(a.J,"caption-rollup")};
EMBQk.prototype.$t=function(){this.G.style.overflow="visible";this.J.style.top=0;this.re.stop();EMBy(this.J,"caption-rollup");this.wa.push("");this.Dc.push(0);EMBRk(this)};EMBQk.prototype.le=function(){if(!EMBSk(this)){for(;this.wa.length<this.I.Tb;)this.wa.unshift(""),this.Dc.unshift(0);for(;this.wa.length>this.I.Tb;){this.wa.shift();var a=this.Dc.shift();0<a&&(this.Ec-=a,this.nb.splice(0,a))}this.qd(this.wa.join("\n"))}};var EMB8=function(a){EMB6.call(this,a);var b=a.getRootNode();this.b=a.getEnvironmentData();this.sc=[];this.fa={};this.nc={};this.ef=[];this.rj=EMBC("captions-translation-select");this.Aj=EMBD("captions-translation-dialog",b);this.zj=EMBD("captions-transcribe-dialog",b);this.Rd=EMBD("captions-transcribe-menu-item",b);this.yj=EMBD("captions-settings-dialog",b);this.oh=EMBD("html5-captions-button",b);EMBG(this.oh,"click",EMBk(this.sq,this));EMBG(EMBD("captions-translation-confirm",b),"click",EMBk(this.yq,
this));EMBG(EMBD("captions-translation-cancel",b),"click",EMBk(this.pm,this));EMBG(EMBD("captions-transcribe-confirm",b),"click",EMBk(this.xq,this));EMBG(EMBD("captions-transcribe-cancel",b),"click",EMBk(this.vm,this));EMBG(EMBD("captions-settings-bg",b),"click",EMBk(this.Am,this));EMBG(EMBD("captions-settings-font-inc",b),"click",EMBk(this.zm,this));EMBG(EMBD("captions-settings-font-dec",b),"click",EMBk(this.ym,this));EMBG(EMBD("captions-settings-confirm",b),"click",EMBk(this.wm,this));EMBG(EMBD("captions-settings-cancel",
b),"click",EMBk(this.wq,this));this.uj=EMBD("html5-captions-tracks",this.oh);this.fj=EMBD("html5-popup-menu",this.oh);EMB6b(this.fj,EMBk(this.rq,this),"yt-uix-button-menu-item");this.Sd=new EMBwf;this.Sd.stop();EMBG(this.Sd,"tick",EMBk(this.Cj,this));this.pubsub.e("onResize",EMBk(this.wj,this));this.pubsub.e("onToggleBackground",EMBk(this.Am,this));this.pubsub.e("onFontSizeIncrease",EMBk(this.zm,this));this.pubsub.e("onFontSizeDecrease",EMBk(this.ym,this));this.pubsub.e("showcontrols",EMBk(this.uq,
this));this.pubsub.e("hidecontrols",EMBk(this.tq,this));"detailpage"==this.b.F&&(a=EMBD("captions-account-settings-link",b))&&EMBU(a);this.bh=new EMBKk(99,EMBUf);this.ff=new EMBwf(2E3);this.ff.stop();EMBG(this.ff,"tick",EMBk(this.zq,this))};EMBo(EMB8,EMB6);EMB=EMB8.prototype;EMB.aa="cc";EMB.ag="cc";EMB.Ro="subtitlesModuleData";EMB.a=EMBd;EMB.b=EMBd;EMB.oh=EMBd;EMB.fj=EMBd;EMB.Aj=EMBd;EMB.zj=EMBd;EMB.Rd=EMBd;EMB.yj=EMBd;EMB.uj=EMBd;EMB.ef=EMBd;EMB.sc=EMBd;EMB.fa=EMBd;EMB.nc=EMBd;EMB.Sd=EMBd;
EMB.Jo=EMBe;EMB.bh=EMBd;EMB.ff=EMBd;EMB.Aa=EMBd;EMB.Td=EMBe;EMB.Cn=1;EMB.ga={fontFamily:'"Arial Unicode Ms", Arial',fontSizeIncrement:0,backgroundEnabled:EMBc};EMB.lh=EMBd;EMB.Qm=EMBe;EMB.create=function(){EMB8.k.create.call(this);this.a=this.D.getVideoData();var a;1==this.b.Jp.cc_load_policy||1==this.a.fm||"alwayson"==EMBSg(this.a)?a=EMBc:(a=EMB3h(this,"module-enabled"),a=a!=EMBd?!!a:"on"==EMBSg(this.a));a&&this.load()};EMB.oa=function(){this.unload();EMB8.k.oa.call(this)};
EMB.load=function(){EMB8.k.load.call(this);this.Td="alwayson"==EMBSg(this.a);EMBA(this.fj,"captions-always-on",this.Td);this.Aa=new EMBlg(this.a.lj,this.a.n,this.a.im);EMBog(this.Aa,EMBk(this.Vq,this));EMB4h(this,"module-enabled",EMBc);this.ga=EMB3h(this,"display-settings")||EMB3a(this.ga);this.loaded=EMBc};EMB.unload=function(){EMBTk(this);EMB1h(this);EMB4h(this,"module-enabled",EMBe);this.loaded=EMBe;EMB8.k.unload.call(this)};EMB.j=function(a){EMB1.info(a)};
var EMBUk=function(a,b){EMBQb(a.rj);b.forEach(function(a){var b=document.createElement("option");b.setAttribute("value",a.Vf);b.appendChild(document.createTextNode(a.pi+" -- "+a.$o));this.rj.appendChild(b)},a)};
EMB8.prototype.Vq=function(){EMBng(this.Aa,EMBk(this.eo,this));EMBQb(this.uj.children[0]);EMBUk(this,this.Aa.Ph());var a=this.Aa.di();a.length?this.Td||(EMBy(this.Rd,"disabled"),EMBU(this.Rd)):EMBV(this.Rd);var b=this.Aa.Wf();if(0<b.length){this.j("Caption track list loaded, found "+b.length+" tracks.");var c=this.Aa.gi();b.forEach(function(a,b){if(a.Fn){var f=a.toString(),g=EMBjg(a),h=EMBe;b==c&&(h=EMBc);EMBVk(this,f,g,h)}},this)}else a.length||(this.j("No captions found."),this.unload())};
EMB8.prototype.eo=function(a,b){var c=a.Dh.concat(a.Ch);this.j("Caption track loaded with "+c.length+" events.");EMBTk(this);this.ef=EMBOa(c);this.lh=b;this.Qm=EMBJk.test(b.pd);var d=[];c.forEach(function(a,b){var c=new EMBfg(a.Pa(),a.Pa()+a.lb,{id:b});d.push(c)},this);this.addCueRange.apply(this,d);EMBWk(this,b);EMBNk(this.bh,EMBjg(b));this.appendToVideoContent(this.bh.G);this.ff.start()};
var EMBWk=function(a,b){var c={trackName:b.getName(),trackKind:b.ib};b.Gc?(c.trackLangCode=b.Gc.Vf,c.fromLangCode=b.pd):c.trackLangCode=b.pd;a.log(c)};EMB8.prototype.tc=function(a){this.sc.push(this.ef[a.getId()]);this.Sd.start()};EMB8.prototype.de=function(a){a=this.sc.indexOf(this.ef[a.getId()]);0<=a&&this.sc.splice(a,1);this.Sd.start()};
var EMBXk=function(a,b){if(b instanceof EMBZf){var c=a.fa[b.id];EMBl(b.T,a.ga);if(c&&c.getType()!=(b.T.Mj?2:b.th?0:1))EMBF(c.G),delete a.fa[b.id];if(!a.fa[b.id]){var c=a.fa,d=b.id,e;a:{e=b.id;var f=b.T;switch(b.T.Mj?2:b.th?0:1){case 0:e=new EMBOk(e,f);break a;case 2:e=new EMBQk(e,f);break a;default:e=new EMBKk(e,f)}}c[d]=e;c=a.fa[b.id].G;EMBA(c,"captions-asr","asr"==a.lh.ib);if(b.T.ld!=EMBd)b.T.ld=a.Qm?1:0;0==a.fa[b.id].id?a.appendAboveVideoControls(c):a.appendToVideoContent(c)}EMBl(a.fa[b.id].I,
b.T);if(0==(b.T.Mj?2:b.th?0:1)){c=a.fa[b.id];c.md=b.md;c.zc={};c.Df=EMBc;c.qd(c.md);c.zc.Tb=c.Ua.length;c.zc.width=c.G.offsetWidth;c.zc.Zm=[];for(d=0;d<c.zc.Tb;d++)c.zc.Zm.push(c.Ua[d].offsetLeft);c.Df=EMBe;c.qd(c.Ef)}}else c=b.rh,a.nc[c]||(a.nc[c]=[]),a.nc[c].push(b)};EMB=EMB8.prototype;EMB.wj=function(){this.Cn=EMB_g(this.b).height/360;EMBYk(this);for(var a in this.fa)this.fa[a].Ih()};EMB.zq=function(){this.ff.stop();EMBF(this.bh.G)};
EMB.Cj=function(){this.Sd.stop();EMBYk(this);var a=this.sc.length,b;for(b in this.nc)delete this.nc[b];this.sc.sort(function(a,b){return a.Pa()==b.Pa()?a.yd()-b.yd():a.Pa()-b.Pa()});for(var c=0;c<a;c++)EMBXk(this,this.sc[c]);for(b in this.fa)this.nc[b]?this.fa[b].Ln(this.nc[b]):(EMBF(this.fa[b].G),delete this.fa[b]);this.j("Refreshing caption display...")};
EMB.Am=function(){this.ga.backgroundEnabled=!this.ga.backgroundEnabled;EMB4h(this,"display-settings",this.ga);this.ga.backgroundEnabled?EMBKh(this.ap):this.ap=EMBLh(".captions-text, .caption-row","background-color: transparent !important;",{Af:this.ap,reset:EMBc})};EMB.uq=function(){var a=this.fa[0];a&&a.G&&EMBCb(a.G,"controls-hidden","controls-visible");this.Jo=EMBc};
EMB.tq=function(){var a=this.fa[0];if(a&&a.G){for(var a=a.G,b=EMBzb(a),c=EMBe,d=0;d<b.length;d++)"controls-visible"==b[d]&&(EMBSa(b,d--,1),c=EMBc);if(c)b.push("controls-hidden"),a.className=b.join(" ")}this.Jo=EMBe};EMB.ym=function(){this.ga.fontSizeIncrement-=1;EMBYk(this)};EMB.zm=function(){this.ga.fontSizeIncrement+=1;EMBYk(this)};
var EMBYk=function(a){EMB4h(a,"display-settings",a.ga);var b=0.05*(a.ga.fontSizeIncrement||0)+a.Cn;a.ou=EMBLh(".caption-window-transform",["-moz-transform: scale("+b+");","-ms-transform: scale("+b+");","-o-transform: scale("+b+");","-webkit-transform: scale("+b+");","transform: scale("+b+");"],{Af:a.ou,reset:EMBc})},EMBTk=function(a){a.xf();a.sc=[];a.ef=[];a.lh=EMBd;a.Cj()},EMBZk=function(a,b){EMBmg(a.Aa,b,EMBk(a.eo,a))};EMB=EMB8.prototype;EMB.sq=function(){this.loaded||this.load()};
EMB.rq=function(a){var a=EMBZb(a.target,EMBd,"yt-uix-button-menu-item"),b=EMBY(a,"action");if(b)switch(b){case "translate":this.Td||(EMB1h(this),EMB0h(this),EMBU(this.Aj));break;case "transcribe":EMBz(this.Rd,"disabled")||(EMB1h(this),EMB0h(this),EMBU(this.zj));break;case "settings":EMB1h(this);EMB0h(this);EMBU(this.yj);break;case "captions-off":this.unload()}else if(a=EMBY(a,"trackid"))if(b=this.Aa.Wf(),0<b.length){this.j("Caption track changed to "+a+".");for(var c=0;c<b.length;c++){var d=b[c];
d.toString()==a&&EMBZk(this,d)}}else this.j("Caption change failed for "+a);else this.j("onCaptionTrackClicked_ empty, ignoring")};EMB.pm=function(){EMBV(this.Aj)};EMB.yq=function(){if(!this.Td){this.pm();var a;a:{a=this.Aa.Ph();for(var b=0;b<a.length;b++){var c=a[b];if(c.Vf==this.rj.value){a=c;break a}}a=EMBd}if(a)b=this.lh,c=new EMBig,c.pd=b.pd,c.$h=b.$h,c.Fb=b.Fb,c.ib=b.ib,c.Sf=EMBe,c.Fk=b.Fk,c.Gc=a,this.Aa.Tf(c),EMBVk(this,c.toString(),EMBjg(c),EMBc),EMBZk(this,c)}};EMB.vm=function(){EMBV(this.zj)};
EMB.xq=function(){if(!this.Td){this.vm();EMBx(this.Rd,"disabled");var a=this.Aa.di();a.length&&(a=a[0],this.Aa.Tf(a),EMBVk(this,a.toString(),EMBjg(a),EMBc),EMBZk(this,a))}};EMB.wm=function(){EMBV(this.yj)};EMB.wq=function(){delete this.ga;this.ga=EMB3a(this.ga);EMB4h(this,"display-settings",this.ga);this.Cj();this.wm()};
var EMBVk=function(a,b,c,d){var a=a.uj.children[0],e=document.createElement("li");e.setAttribute("class","yt-uix-button-menu-item");e.setAttribute("data-trackid",b);var b="caption-track-"+b,f=document.createElement("input");f.setAttribute("type","radio");f.setAttribute("name","language");f.setAttribute("value",c);f.id=b;f.checked=d;EMBx(f,"yt-uix-button-menu-close");c=document.createTextNode(c);d=document.createElement("label");d.setAttribute("for",b);e.appendChild(f);d.appendChild(c);e.appendChild(d);
a.appendChild(e)};EMB8.prototype.Yb=function(a){return!!a.getVideoData().lj};var EMB1k=function(a){EMB6.call(this,a);var b=a.getVideoData();b.$e&&EMB_k(this);EMB0k(this,"html5-threed-conversion-on",EMBk(this.vt,this));EMB0k(this,"html5-threed-conversion-off",EMBk(this.ut,this));var c=this.D.getRootNode(),a=EMBD("html5-threed-popup-menu-change-mode-link",c),c=EMBD("html5-threed-dialog-change-mode-button",c),b="/select_3d_mode?video_id="+b.n;a.setAttribute("href",b);c.setAttribute("href",b)};EMBo(EMB1k,EMB6);
var EMB0k=function(a,b,c){a=a.D.getRootNode();b=EMBD(b,a);EMBG(b,"click",c)};EMB=EMB1k.prototype;EMB.aa="threed";EMB.ag="threed";EMB.create=function(){this.D.preparePlayerThreeD();EMB1k.k.create.call(this)};EMB.oa=function(){this.D.preparePlayerThreeD(EMBc);this.unload();EMB1k.k.oa.call(this)};EMB.Yb=function(a){a=a.getVideoData();return!!a.$e||!!a.Tg};EMB.vt=function(){EMB2k(this,EMBc)};EMB.ut=function(){EMB2k(this,EMBe)};
var EMB2k=function(a,b){var c=a.D.getVideoData();c.Tg&&c.dd!=b&&(a.D.toggleThreeD(),b?EMB_k(a):EMB1h(a))},EMB_k=function(a){if(!EMB3h(a,"warning-shown")&&!EMBJg()){var b=a.D.getRootNode(),b=EMBD("threed-html5-warning-dialog",b);EMBU(b);EMB0k(a,"threed-html5-warning-close",EMBk(a.nu,a))}};EMB1k.prototype.nu=function(){EMB4h(this,"warning-shown",EMBc);EMB1h(this)};var EMB3k=function(a,b,c){this.Oe=[];this.Pi=[];this.Nb=[];this.qf="//s.youtube.com/s";c=c||{};this.Dm=c.nbe;this.Em=c.bc;this.Fm=c.bd;this.Dq=c.bt;this.Gm=c.fs;this.source=c.sourceid;this.Eq=c.sd;this.webkitAudioDecodedByteCount=c.hmewadbc;this.webkitDecodedFrameCount=c.hmewdfc;this.webkitDroppedFrameCount=c.hmewdrop;this.webkitVideoDecodedByteCount=c.hmewvdbc;this.mozDecodedFrames=c.hmemdf;this.mozPaintDelay=c.hmempaintdelay;this.mozPaintedFrames=c.hmempainted;this.mozParsedFrames=c.hmempf;this.mozPresentedFrames=
c.hmempresented;this.autoplay=b.autoplay;this.Ja=b.Ja;this.F=b.F;this.Nb=b.Nb;this.Oc=b.Oc;this.jc=b.jc;this.Hm=b.Pe();this.qb=b.qb;this.referrer=b.referrer;this.region=b.region;this.ic=b.ic;this.Im=new EMBs(window.screen.width,window.screen.height);this.eh=b.eh;this.hf=b.hf;this.jf=b.jf;this.Jm=EMB_g(b);this.Id=b.Id;!a.format||!a.Ze?EMBOc("yt.tracking.VideoStatsPing","Attempted to construct a VideoStatsPing for a video that has no format or videoSize."):(this.Wg=a.Wg,this.format=a.format,this.tb=
a.tb,this.Tc=a.Tc,this.Kd=a.Kd,this.ra=a.ra,this.Le=a.Le,this.rb=a.rb,this.Pd=a.Pd,this.Lb=a.Lb,this.Vg=a.Vg,this.n=a.n,this.Ze=a.Ze)};EMB=EMB3k.prototype;EMB.autoplay=EMBe;EMB.Gm=EMBe;EMB.Ui=EMBe;EMB.tb=EMBe;EMB.Gq="yt";EMB.Pd=EMBe;EMB.Sm=EMBe;
EMB.send=function(){if(this.Sm)EMBOc("yt.tracking.VideoStatsPing","send should be called only once for a given ping object.");else{var a={html5:"1",ns:this.Gq,ps:this.qb,el:this.F,hl:this.jc,cr:this.region,docid:this.n,sd:this.Eq,sourceid:this.source,referrer:this.referrer,q:this.eh,plid:this.ra,fmt:this.format.Qc,fs:this.Gm?"1":"0",screenw:this.Im.width,screenh:this.Im.height,w:this.Jm.width,h:this.Jm.height,vw:this.Ze.width,vh:this.Ze.height,playerw:this.Hm.width,playerh:this.Hm.height,vid:this.Id,
hbid:this.Le,rt:this.uh(this.Hp),subscribed:this.Lb,sw:this.Wg,list:this.rb,eurl:this.Ja,framer:this.Oc,feature:this.ic,threed:this.Vg};this.Ui&&(a.playback="1");this.autoplay&&(a.autoplay="1");this.tb&&(a.splay="1");this.Pd&&!this.Ui&&(a.vtmp="1");this.hf!=EMBb&&this.jf&&(a.uga=this.jf+this.hf);this.hm!=EMBb&&(a.len=this.uh(this.hm));0<this.Nb.length&&(a.fexp=this.Nb.toString());if(0<this.Tc)a.idpj=this.Tc;if(0<this.Kd)a.ldpj=this.Kd;if(this.Em)a.bc=this.Em;if(this.Fm)a.bd=this.Fm,a.bt=this.Dq;if(0<
this.Dm)a.nbe=this.Dm;if(this.webkitDecodedFrameCount!=EMBb)a.hmewdfc=this.webkitDecodedFrameCount,a.hmewdrop=this.webkitDroppedFrameCount,a.hmewvdbc=this.webkitVideoDecodedByteCount,a.hmewadbc=this.webkitAudioDecodedByteCount;if(this.mozParsedFrames!=EMBb)a.hmempf=this.mozParsedFrames,a.hmemdf=this.mozDecodedFrames,a.hmempresented=this.mozPresentedFrames,a.hmempainted=this.mozPaintedFrames,a.hmempaintdelay=this.mozPaintDelay;if(0<this.Oe.length)a.st=this.Oe.map(this.uh).join(","),a.et=this.Pi.map(this.uh).join(",");
a=EMBL(this.qf,a);EMBW(a);this.Sm=EMBc}};EMB.uh=function(a){return(1*a.toFixed(3)).toString()};var EMB4k=function(){};EMBo(EMB4k,EMBtd);EMB=EMB4k.prototype;EMB.Hj=[10,10,10,40];EMB.Hl=0;EMB.on=0;EMB.bb=EMBd;EMB.Mb=EMBd;EMB.Ul="";EMB.ba=0;EMB.Yi=0;EMB.Ve=0;EMB.Kf=0;EMB.Nh=[];EMB.We=0;EMB.Oh=[];EMB.$i=function(a,b,c,d,e,f){this.a=b;this.b=c;this.Ul=this.b.Kb+"get_video";this.bb=d;this.Aq=e;this.Mb=f;this.Ne=EMBe;if(this.a.wg)EMB4k.prototype.Hj=[10+this.a.Tc,10,10,40+this.a.Kd-this.a.Tc,40],this.kh!=EMBb&&EMBN(this.kh),this.kh=EMBfd(EMBk(this.Cq,this),100)};
EMB.Xl=function(){EMB5k(this);this.Hl=Math.min(this.Hl+1,this.Hj.length-1);var a=this.Hj[this.Hl];EMB6k(this);this.Lg=EMBfd(EMBk(this.Xl,this),1E3*a)};var EMB6k=function(a){a.Lg!=EMBb&&EMBN(a.Lg)};EMB4k.prototype.Cq=function(){var a=this.Mb(),b=(EMBm()-this.Ve)/1E3,c=a-this.ba;if(0!=c){var d=b-this.Yi;if(0>c||c>d+0.2)EMB7k(this),this.We=a;this.Yi=b}this.ba=a};
var EMB7k=function(a){if(400<a.on)EMB6k(a);else if(3<a.ba-a.We)a.Oh[a.Kf]=a.We,a.Nh[a.Kf]=a.ba,a.Kf++,a.We=a.ba},EMB8k=function(a){var b={},c=a.bb();EMBl(b,c);b=new EMB3k(a.a,a.b,b);b.Hp=(EMBm()-a.Ve)/1E3;b.hm=a.Aq();return b};EMB4k.prototype.Ka=function(){var a=this.b,b=this.a,c={ns:"yt",html5:"1",el:a.F,ps:a.qb,fexp:a.Nb.join(",")||EMBb,list:b.rb};a.autoplay&&(c.autoplay="1");if(b.Lb)c.subscribed=b.Lb;return c};EMB4k.prototype.fh=function(){this.Ve=EMBm()};
var EMB5k=function(a){EMB7k(a);if(0<a.Kf&&a.a.wg){var b=EMB8k(a);if(a.Oh.length&&a.Nh.length)b.Oe=a.Oh,b.Pi=a.Nh;b.send();a.Oh=[];a.Nh=[];a.on++}a.Kf=0},EMB9k=function(a,b){b.rt=(EMBm()-a.Ve)/1E3;var c=a.bb();EMBl(b,c);"streamingerror"==b.event?(c="//s.youtube.com/stream_204",b.videoId&&delete b.videoId):c=a.b.Kb+"player_204";c=EMBL(c,a.Ka());c=EMBL(c,b);EMBW(c)};EMB4k.prototype.j=function(a,b){b||(b=EMBAc);EMB1.log(b,a)};
EMB4k.prototype.u=function(){EMB4k.k.u.call(this);EMB6k(this);this.kh!=EMBb&&EMBN(this.kh)};var EMB$k=function(a){this.Hb=EMBD("html5-modal-panel",a);this.uo=EMBD("html5-modal-panel-close-button",this.Hb);this.to=EMBD("html5-modal-panel-clipboard-substitute-content",this.Hb);this.fg=EMBNe("input",this.to);this.qm=EMBD("html5-modal-panel-infobox-content",this.Hb);this.Ia=new EMB1f;this.Ia.H(document,"keydown",EMBk(this.Ct,this));this.Ia.H(this.uo,"click",EMBk(this.zt,this));this.Ia.H(this.Hb,"contextmenu",EMBk(this.Bt,this));EMBG(this.fg,"click",EMBk(this.po,this))};EMB=EMB$k.prototype;
EMB.Ia=EMBd;EMB.to=EMBd;EMB.fg=EMBd;EMB.uo=EMBd;EMB.Ji=EMBd;EMB.qm=EMBd;EMB.Hb=EMBd;EMB.zt=function(){this.Ee()};EMB.Bt=function(a){a.preventDefault();a.stopPropagation()};EMB.Ee=function(){EMBV(this.Hb);EMBSe("panelhidden")};EMB.Ct=function(a){27==a.keyCode&&this.Ee()};EMB.po=function(){this.fg.select()};var EMBal=function(a,b){a.Ji&&EMBy(a.Hb,a.Ji);a.Ji=b;EMBx(a.Hb,a.Ji);a.show()};EMB$k.prototype.show=function(){EMBU(this.Hb)};var EMBbl=[function(a){return!EMBOe("video-annotations",a.getRootNode())?EMBd:new EMBFk(a)},function(a){return new EMBjj(a)},function(a){a.bq("seek");return EMBd},function(a){return!EMB8.prototype.Yb(a)?EMBd:new EMB8(a)},function(a){return!EMB7i.prototype.Yb(a)?EMBd:new EMB7i(a)},function(a){return EMB1k.prototype.Yb(a)?new EMB1k(a):EMBd}],EMB9=function(a,b){this.Ti={};this.oc=[];this.vj=[];this.Ue=[];this.ab=[];this.Oi={};this.Ni={};this.hh=a;this.pubsub=new EMBP;this.pubsub.e("nothtml5servable",
EMBk(this.kq,this));this.pubsub.e("unabletoplay",EMBk(this.nq,this));this.pubsub.e("openingpage",EMBk(this.lq,this));this.pubsub.e("initializingmode",EMBk(this.jq,this));this.pubsub.e("internalstatechange",EMBk(this.mq,this));this.pubsub.e("internalvideodatachange",EMBk(this.oq,this));this.pubsub.e("internalvolumechange",EMBk(this.Qe,this));var c=b;c instanceof EMBO||(c=new EMBO(c));this.la=c;c=this.la.O;this.j("Setting environment data");this.b=new EMBWg(c);if(this.b.pb)this.b.Ig="dark";this.$i();
EMBcl(this,EMBC(this.hh));this.A||"complete"==document.readyState?this.um():EMBG(document,"DOMContentLoaded",EMBk(this.um,this))},EMBdl;EMB=EMB9.prototype;EMB.Ug=EMBd;EMB.ih=EMBd;EMB.hb=EMBd;EMB.of=EMBd;EMB.hh=EMBd;EMB.list=EMBd;EMB.ma=EMBd;EMB.i=EMBd;EMB.Ng=EMBd;EMB.ej=EMBd;EMB.bf=EMBd;EMB.Jd=EMBd;EMB.Ol=EMBd;EMB.xg=EMBd;EMB.cj=0;EMB.Yg=EMBe;EMB.Gp=EMBe;EMB.ja=EMBe;EMB.oc=EMBd;EMB.vj=EMBd;EMB.ub=EMBc;EMB.$d=EMBe;EMB.Qj=0;EMB.Hd=EMBe;EMB.Kg=0;EMB.Sc=0;EMB.Zl=EMBe;EMB.Je=0;EMB.Ia=EMBd;EMB.pubsub=EMBd;
EMB.ie=EMBd;EMB.sa=EMBd;EMB.la=EMBd;EMB.$=-1;EMB.Yc=EMBBd;EMB.Md=EMBd;EMB.ea=EMBd;EMB.mc=0;EMB.Sg=0;EMB.dj=0;EMB.aj=EMBc;EMB.Sl=0;EMB.Cg=EMBd;EMB.Ll=0;EMB.nk=EMBd;
var EMBfl=function(a,b,c){a.f=b;EMBel(a);EMBx(a.f,"video-stream");a.b.Pc&&a.b.$a&&a.f.setAttribute("controls",EMBc);a.b.loop&&a.f.setAttribute("loop",EMBc);a.b.gj&&a.f.setAttribute("webkit-playsinline",EMBc);a.f.setAttribute("x-webkit-airplay","allow");a.f.setAttribute("data-youtube-id",a.a.n);a.f.setVolume(a.ea.volume,a.ea.muted);c!=EMBe&&!a.f.parentNode&&a.Fg.appendChild(a.f);a.b.f=a.f},EMBcl=function(a,b){b?(a.A=b,a.b.A=b):EMBOc("yt.player.VideoPlayer","Attempted to set videoPlayerElement_ to null.")},
EMBnl=function(a){a.Ue=EMBOa(a.a.Yl);EMBF(a.f);EMBfl(a,EMBgi.getTag());a.ab=EMBgl(a);var b=a.a.am||a.b.Rg;b&&EMBhl(a,b);EMBil(a)||EMBjl(a);a.i&&EMBgh(a.i,a.ab);EMBkl(a);EMBll(a);EMBml(a)},EMBml=function(a){var b=EMBD("html5-watermark",a.ma);EMBy(b,"html5-branded-watermark");a.b.Lj&&a.a&&a.a.ij&&!EMBOg.test(a.a.ij)?(b.src=a.a.ij,EMBx(b,"html5-branded-watermark"),EMBU(b)):a.b.Lj&&a.b.Pc?EMBU(b):!a.b.Hg&&a.b.Dg?EMBU(b):EMBV(b)},EMBol=function(a,b){a.j("Setting video data");a.a=new EMBMg(b);a.a.e("videoinfo",
a.Kp,a);a.a.e("onStatusFail",a.Lp,a);a.pubsub.c("internalvideodatachange","newvideodata");a.ia&&(a.ia.Vc(),delete a.ia);a.ia=new EMB4k;a.la&&a.ia.$i("yt",a.a,a.b,EMBk(a.Qg,a),EMBk(a.getDuration,a),EMBk(a.getCurrentTime,a));a.sa&&a.sa.reset();var c=EMBD("html5-context-menu-copy-embed-html",a.La);EMBle(c,a.a.Tl)};EMB9.prototype.j=function(a,b){b||(b=EMBAc);EMB1.log(b,a)};EMB9.prototype.jq=function(){EMBN(this.Sc);this.Qe(this.ea);EMBae(this.Ng,EMBe)};
EMB9.prototype.$i=function(){this.j("Initializing the player");this.hb=new EMB1f(this);this.sa=new EMBMh(EMBk(this.getCurrentTime,this),EMBk(this.Eg,this),EMBk(this.Un,this));var a;if(a=this.la.ek.css){a=EMBE("div",{"class":"html5-player-css-loaded"});document.body.appendChild(a);var b=300==EMBS(a,"z-index");EMBF(a);a=!b}if(a){a={rel:"stylesheet",type:"text/css",href:this.la.ek.css};b=document.getElementById("www-player-css");a.id="www-player-css";var c=b||document.createElement("link");EMBLb(c,a);
b||document.getElementsByTagName("head")[0].appendChild(c)}this.Md=new EMBTd};
EMB9.prototype.Qg=function(){var a={},a=this.a.Qg();if(this.f.webkitDecodedFrameCount)a.hmewdfc=this.f.webkitDecodedFrameCount,a.hmewdrop=this.f.webkitDroppedFrameCount,a.hmewvdbc=this.f.webkitVideoDecodedByteCount,a.hmewadbc=this.f.webkitAudioDecodedByteCount;if(this.f.mozParsedFrames)a.hmempf=this.f.mozParsedFrames,a.hmemdf=this.f.mozDecodedFrames,a.hmempresented=this.f.mozPresentedFrames,a.hmempainted=this.f.mozPaintedFrames,a.hmempaintdelay=this.f.mozPaintDelay;a.volume=this.getVolume();a.mos=
this.isMuted()?1:0;return a};var EMBpl=function(a,b){b.video_id==a.a.n?EMBLg(a.a,b):EMBol(a,b)};EMB9.prototype.um=function(){EMBX.sb("fs");var a=EMBC(this.hh);if(EMBz(a,"html5-video-player"))EMBcl(this,a);else{a=EMBC("video-player")||EMBdl;a||(EMBEe(this.la.ek.html,{format:"RAW",method:"GET",Rb:this,za:this.Qt}),a=EMBb);if(!a)return;EMBql(this,a)}EMBrl(this)};
EMB9.prototype.Qt=function(a){if(a.responseText){var b=document.createElement("div");b.innerHTML=a.responseText;EMBdl=EMBD("html5-video-player",b);EMBql(this,EMBdl);EMBrl(this)}else this.pubsub.c("nothtml5servable")};
var EMBql=function(a,b){var c=EMBC(a.hh);EMBcl(a,b.cloneNode(EMBc));a.A.setAttribute("id",a.la.Bc.id||"video-player");c.appendChild(a.A)},EMBrl=function(a){a.Bg(a.A);EMBol(a,a.la.O);a.ea=a.Md.getVolume();if("detailpage"==a.b.F){var b;a:{var c=a.Md;b=a.a.n;if(c.Nd&&(c=c.Nd.get("yt-player-restore-playhead"))){b=c[b];break a}b=EMBb}if(b)a.a.Z=b}b=a.Md;b.Nd&&b.Nd.remove("yt-player-restore-playhead");EMBfl(a,EMBei(),EMBe);EMBsl(a);EMBtl(a,a.A);EMBFg()?a.b.autoplay||"detailpage"==a.b.F&&!a.b.pb&&!a.b.Pc?
EMBul(a):"leanback"!=a.b.F&&EMBvl(a):a.pubsub.c("nothtml5servable")},EMBvl=function(a){a.pubsub.c("initializingmode");a.j("Creating thumbnail element");EMBwl(a);var b=a.Ma,c=a.a,d=a.b.Te,e=document.body;e.style.backgroundSize!=EMBb||e.style.MozBackgroundSize!=EMBb||e.style.WebkitBackgroundSize!=EMBb||e.style.MsBackgroundSize!=EMBb||e.style.OBackgroundSize!=EMBb?(e=document.createElement("div"),e.style.backgroundImage="url("+EMBdj(b,c,d)+")"):(e=document.createElement("img"),e.src=EMBdj(b,c,d),c=e,
b.clientWidth/b.clientHeight<EMBbj?(c.style.height="100%",c.style.width="auto"):(c.style.height="auto",c.style.width="100%"));EMBx(e,"video-thumbnail");a.of=e;a.Ma.appendChild(a.of);a.ub=EMBc;a.pubsub.c("internalstatechange",5)},EMBwl=function(a){if(a.of)EMBF(a.of),a.of=EMBd;a.ub=EMBe},EMBul=function(a){a.pubsub.c("initializingmode");a.j("initializing playback");EMBwl(a);a.ia.fh();a.pubsub.c("internalstatechange",3);EMBxl(a)&&(EMBgl(a).length?EMBnl(a):EMBTg(a.a,EMBYg(a.b,a.a)))};
EMB9.prototype.iq=function(){this.Je+=45;this.bf.style.MozTransform="rotate("+this.Je+"deg)";this.bf.style.WebkitTransform="rotate("+this.Je+"deg)";this.bf.style.OTransform="rotate("+this.Je+"deg)";this.bf.style.msTransform="rotate("+this.Je+"deg)"};var EMBkl=function(a){a.j("In loadVideo");0==a.Ue.length?(a.sa.fh(),a.playVideo()):(a.pubsub.c("internalstatechange",2),a.pauseVideo())};EMB9.prototype.dq=function(a){this.oc.forEach(function(b){b.aa==a&&b.load()},this)};
EMB9.prototype.hq=function(a){this.oc.forEach(function(b){b.aa==a&&b.unload()},this)};
var EMBll=function(a){EMBbl.forEach(function(a){var c=EMBia(a),d=this.vj[c];if(!d&&(d=a(this.Ug)))this.vj[c]=d,d.pubsub.e("command_add_cuerange",EMBk(this.Pr,this)),d.pubsub.e("command_remove_cuerange",EMBk(this.Zr,this)),d.pubsub.e("command_remove_cuerange_all",EMBk(this.$r,this)),d.pubsub.e("command_preroll_ready",EMBk(this.Xr,this)),d.pubsub.e("command_hide_all_dialogs",EMBk(this.Sr,this)),d.pubsub.e("command_log",EMBk(this.Tr,this)),d.pubsub.e("command_log_timing",EMBk(this.Ur,this)),d.pubsub.e("command_disable_controls",
EMBk(this.Qr,this)),d.pubsub.e("command_enable_controls",EMBk(this.Rr,this)),d.pubsub.e("command_redirect_controls",EMBk(this.Yr,this)),d.pubsub.e("command_stop_redirect_controls",EMBk(this.ds,this)),d.pubsub.e("command_pause",EMBk(this.Vr,this)),d.pubsub.e("command_play",EMBk(this.Wr,this)),d.pubsub.e("command_seek",EMBk(this.as,this)),d.pubsub.e("command_redirected_show_is_playing",EMBk(this.cs,this)),d.pubsub.e("command_share",EMBk(this.bs,this));d&&d.Yb(this.Ug)&&(d.create(),this.oc.push(d))},
a)},EMByl=function(a){a.oc.forEach(function(a){a.oa()});a.oc=[]};EMB=EMB9.prototype;EMB.Pr=function(a){var b=this.a.xa;0<b&&a.forEach(function(a){a.visible&&this.i.Sa(a.start/(1E3*b))},this);this.sa.addCueRange.apply(this.sa,a)};EMB.Zr=function(a){var b=this.a.xa;0<b&&a.forEach(function(a){a.visible&&this.i.yf(a.start/(1E3*b))},this);this.sa.removeCueRange.apply(this.sa,a)};EMB.$r=function(a){for(var b=this.sa,c=b.mb.length-1;0<=c;c--)b.mb[c].Tj==a&&EMBNh(b,c);b.kb()};
EMB.Xr=function(a){a=this.Ue.indexOf(a);0<=a&&this.Ue.splice(a,1);0==this.Ue.length?(this.sa.fh(),0<EMB9f(this.sa.Ub,-2147483648).length||this.playVideo()):this.pauseVideo()};EMB.Sr=function(){var a=EMBIb("html5-popup-dialog",this.A);EMBq(a,function(a){EMBV(a)},this)};EMB.Tr=function(a,b){b.event=a;EMB9k(this.ia,b)};EMB.Ur=function(a,b){for(var c in a)this.Oi[c]=a[c];for(var d in b)this.Ni[d]=b[d]};EMB.Qr=function(a){EMBzl(this,a)};
EMB.Rr=function(){for(var a in EMBDd)EMBy(this.ma,"disabled-control-"+EMBDd[a])};EMB.Yr=function(a,b){this.ie==a&&this.j("Already redirect controls to this target");EMBAl(this);this.ie=a;EMBBl(this,b)};EMB.ds=function(){EMBAl(this);this.ie=EMBd};EMB.Vr=function(){EMBxf(EMBk(this.pauseVideo,this))};EMB.Wr=function(){EMBxf(EMBk(this.playVideo,this))};EMB.as=function(a){EMBxf(EMBk(this.seekTo,this,a))};EMB.cs=function(a){EMBxf(EMBk(this.i.Xe,this.i,a))};
EMB.bs=function(){this.pubsub.c("SHARE_CLICKED",this.a.n,this.a.rb)};EMB.lc=function(a){return EMBz(this.ma,"disabled-control-"+a)};
var EMBzl=function(a,b){b.forEach(function(a){EMBx(this.ma,"disabled-control-"+a)},a)},EMBCl=function(a){["audio"].forEach(function(a){EMBy(this.ma,"disabled-control-"+a)},a)},EMBDl=function(a){return EMBz(a.ma,"redirected-control-play_pause")},EMBBl=function(a,b){b.forEach(function(a){EMBx(this.ma,"redirected-control-"+a)},a)},EMBAl=function(a){for(var b in EMBDd)EMBy(a.ma,"redirected-control-"+EMBDd[b])},EMBel=function(a){"loadstart,loadeddata,loadedmetadata,play,playing,pause,ended,suspend,progress,seeking,seeked,timeupdate,durationchange,loaded,error,stalled,waiting".split(",").forEach(function(a){this.hb.H(this.f,
a,this.Js)},a)};
EMB9.prototype.Js=function(a){var b=a.target;if(b.hasSrc()){var c,d="internalstatechange";switch(a.type){case "durationchange":this.a.xa=b.getDuration();this.pubsub.c("internalvideodatachange","videoinfo");break;case "ended":a.target.pauseVideo();this.pubsub.c(d,2);this.Hd&&EMBEl(this,EMBe);c=0;break;case "error":b={event:"streamingerror"};a=a.target.error;b.ec=107;a&&a.code&&(a.code==a.MEDIA_ERR_ABORTED?b.ec=200:a.code==a.MEDIA_ERR_NETWORK?b.ec=201:a.code==a.MEDIA_ERR_DECODE?b.ec=202:a.code==a.MEDIA_ERR_SRC_NOT_SUPPORTED&&
(b.ec=203));EMB9k(this.ia,b);break;case "loaded":b=this.i;b.Vi=1;EMBkh(b);EMBFl(this);break;case "loadeddata":EMBN(this.Kg);this.dh&&window.clearTimeout(this.dh);break;case "loadedmetadata":EMBX.sb("fvb");if(this.a.Z)this.f.currentTime=this.a.Z;EMBFl(this);break;case "loadstart":EMBX.sb("gv");this.Sc&&EMBN(this.Sc);this.Sc=EMBfd(EMBk(this.nm,this),100);break;case "pause":this.i.Xe(EMBe);this.f.ended||(c=2);break;case "play":this.i.Xe(EMBc);c=1;break;case "playing":this.Hd&&EMBEl(this,EMBc);c=1;this.Sc&&
(EMBX.sb("plev"),this.nm());break;case "suspend":case "progress":this.Se();d="onLoadProgress";c=this.getLoadProgressFraction();break;case "seeking":EMBGl(this,EMBCd);b.inUnbufferedArea()&&(c=3);break;case "seeked":EMBGl(this);c=this.getCurrentTime();this.i.Mi.innerHTML=EMB0g(c);c=this.i;a=this.getPlayProgressFraction();c.Re=a;EMBkh(c);c=this.i;var a=this.getCurrentTime(),e=this.getDuration();c.dm.innerHTML=parseInt(100*c.Re,10)+"% at "+parseInt(a,10)+" of "+parseInt(e,10)+" seconds";b=this.Yg||!b.paused;
this.i.Xe(b);c=b?1:2;break;case "stalled":EMB9k(this.ia,{event:"streamingerror",ec:300});break;case "timeupdate":this.Se();d="onVideoProgress";c=b.currentTime;break;case "waiting":EMB9k(this.ia,{event:"streamingerror",ec:301}),b.ended||(c=3)}c!=EMBb&&this.pubsub.c(d,c)}};var EMBHl=function(a,b,c){b==EMBd?a.j("setCurrentFormat_(null) called. Ignoring."):(a.j("Setting current format to: "+b.toString()),a.a.format=b,EMBjh(a.i,a.a.format.yc),!a.ub&&!c&&(a.j("Loading video"),EMBkl(a)))};
EMB9.prototype.toggleThreeD=function(){this.a.dd=!this.a.dd;this.preparePlayerThreeD();this.a.Z=this.f.currentTime;this.ab=EMBgl(this);EMBHl(this,EMBIg(this.b.Ob,this.ab));this.i&&(EMBgh(this.i,this.ab),EMBmh(this.i,this.a.dd))};var EMBgl=function(a){return EMBHg(a.a.Me,!!a.a.$e||a.a.dd)},EMBjl=function(a){0==a.ab.length?a.j("setFormatForPlayerSize_ called when there are no supportedFormats_.",EMByc):EMBHl(a,EMBIg(a.b.Ob,a.ab),EMBc)};EMB9.prototype.sh=["hd1080","hd720","large","medium","small"];
EMB9.prototype.bl=1E3;EMB9.prototype.Yp=function(){return EMBil(this)||this.a.am||this.b.Rg};var EMBil=function(a){if(a.a.format)return a.a.format.Qd};EMB9.prototype.gq=function(a){this.a.Z=this.f.currentTime;EMBhl(this,a)};var EMBhl=function(a,b){if(!a.a.format||a.a.format.Qd!=b){var c=EMBd,d=a.sh.indexOf(b);if(0>d)c=EMBIg(a.b.Ob,a.ab);else for(var e=a.sh.length;d<e&&!(c=a.Rm(a.sh[d]));d++);EMBIl(a,c)}},EMBIl=function(a,b){b&&b!=a.a.format&&(EMBjh(a.i,b.yc),EMBHl(a,b))};
EMB9.prototype.ku=function(a){a=EMB7c(a.responseText);"fail"==a.status?this.jn(0,a):(EMBHe.addto_ajax=a.addto_ajax_token,EMBJl(this))};var EMBJl=function(a){var b=a.Xq,c=a.jn,d={video_ids:a.a.n,playlist_id:"",new_playlist_name:"",session_token:EMBHe.addto_ajax},e={},f="";switch("WL"){case "PL":f="action_add_to_playlist";break;case "FL":f="action_add_to_favorites";break;case "WL":f="action_add_to_watch_later_list"}e[f]=1;EMBEe("/addto_ajax",{Cm:EMBc,format:"XML",method:"POST",Xc:e,Fj:d,Rb:a,Yd:c,za:b})};
EMB=EMB9.prototype;EMB.Xq=function(){EMB5g(this.i.Uc,"html5-async-success")};EMB.jn=function(a,b){EMB6g(this.i.Uc,b&&b.error_message)};EMB.Xp=function(){return this.sh.filter(this.Rm,this)};EMB.Zp=function(){var a=this.getLoadProgressFraction();return Math.floor(a*this.bl)};EMB.aq=function(){var a=0;this.getDuration()&&(a=this.f.startTime/this.getDuration());return Math.floor(a*this.bl)};EMB.$p=function(){return this.bl};
EMB.Bg=function(a){this.j("decorate called");this.b.Ig&&EMBx(a,this.b.Ig+"-theme");EMBx(a,"el-"+this.b.F);this.b.Dg&&EMBx(a,"modest-branding");var b=document.createElement("video"),c=b.muted;b.muted=!c;b.muted!=c||EMBx(a,"html5-hide-volume");a.style.display="";this.Ma=EMBD("video-container",a);this.Fg=EMBD("video-content",a);this.ma=EMBD("video-controls",a);this.Ng=EMBD("video-fallback",a);this.ej=EMBD("video-fallback-content",this.Ng);this.bf=EMBD("html5-video-loader",this.Ma);this.La=EMBD("html5-context-menu",
this.Ma);this.Jd=EMBD("html5-info-bar",this.Ma);this.Ol=EMBD("html5-title",this.Jd);this.xg=EMBD("html5-author",this.Jd);this.Cg=new EMB$k(this.A);if(this.b.Zi)this.Hd=EMBx(a,"html5-autohide");this.b.Og&&this.Og();this.b.pb&&(EMBx(a,"html5-tablet"),EMBx(document.body,"html5-tablet-body"));(this.b.Pc||!this.b.$a)&&EMBx(a,"html5-native-controls");this.i=new EMBfh;this.i.Bg(this.ma);EMBgh(this.i,this.ab);this.i.pubsub.e("playpausetoggled",EMBk(this.Qp,this));this.i.pubsub.e("seekto",EMBk(this.Tp,this));
this.i.pubsub.e("mutetoggled",EMBk(this.Pp,this));this.i.pubsub.e("volumechanged",EMBk(this.kj,this));this.i.pubsub.e("speedchanged",EMBk(this.Up,this));this.i.pubsub.e("sizechangerequested",EMBk(this.Rp,this));this.i.pubsub.e("fullscreentoggled",EMBk(this.Op,this));this.i.pubsub.e("qualitychanged",EMBk(this.Sp,this));this.i.pubsub.e("beginseeking",EMBk(this.Mp,this));this.i.pubsub.e("endseeking",EMBk(this.Np,this));this.i.pubsub.e("watchlater",EMBk(this.Vp,this));this.i.pubsub.e("watchonyoutube",
EMBk(this.Wp,this));if(document.createElement("video").defaultPlaybackRate&&!EMBgb)this.i.Ld.style.display="block";if(this.b.Ye)b=this.i,EMBU(b.Gg),EMBU(b.Xi),EMBKl(this);this.b.Pg||EMBV(this.i.vg);a=EMBD("html5-show-video-info-template",a);this.Cp=EMBBf(a,"videoId,videoWidth,videoHeight,volume,streamType,decodedFrames,droppedFrames,parsedFrames,presentedFrames,videoBytesDecoded,audioBytesDecoded,paintedFrames,paintDelay".split(","))};
EMB.Og=function(){if(this.b.pb){var a=EMBk(function(a){return EMBLl(a)||EMBz(a.target,"html5-draggable")},this);new EMB8g(this.A,EMBk(function(a){this.ub?this.ub&&EMBgi.hasTags(EMBb)&&this.Vm(a):EMBLl(a)&&(EMBz(this.ma,"hide-controls")?this.$a():this.Um(),a=EMB2.getInstance(),a.Wd&&EMBtg(a,a.Wd))},this),EMBe,a);EMBG(this.A,"gesturechange",EMBk(this.Sq,this));EMBG(this.A,"gestureend",EMBk(this.Tq,this))}else EMBG(this.A,"click",EMBk(this.Vm,this)),EMBG(this.A,"dblclick",EMBk(this.Rq,this)),EMBG(this.A,
"mousemove",EMBk(this.$a,this)),EMBG(this.A,"click",EMBk(this.$a,this));var b=EMBk(function(){EMBgi.fillPool(4);this.b.pb&&EMBah();this.A.removeEventListener("click",b,EMBc)},this);this.A.addEventListener("click",b,EMBc);EMBF(this.La);document.body.appendChild(this.La);EMBG(this.A,"keypress",EMBk(this.Ij,this));EMBG(this.A,"keydown",EMBk(this.Qq,this));EMBMl(this);EMBJh(EMBk(this.Pq,this));EMBG(window,"resize",EMBk(this.Ej,this));var a=EMBD("html5-watermark",this.ma),c=EMBk(this.Uq,this);this.Yw=
EMBG(a,"click",c);EMBml(this);"embedded"==this.b.F&&EMBG(this.Jd,"click",c)};
var EMBMl=function(a){EMBF(a.La);document.body.appendChild(a.La);EMBG(a.A,"contextmenu",EMBk(a.tt,a));var b={Ys:a.it,Zs:a.jt,$s:EMBk(function(){EMBNl(this)},a),ct:EMBk(function(){EMBNl(this,EMBc)},a),dt:a.kt,ft:a.lt,gt:a.nt,ht:a.qt},c;for(c in b)EMBOl(a,c,b[c]);a=EMBD("html5-context-menu-pop-out",a.La);EMBle(a,window.opener==EMBd)},EMBOl=function(a,b,c){b=EMBD(EMBRd[b],a.La);EMBG(b,"click",EMBk(function(a,b){this.gg();a.call(this,b);b.stopPropagation()},a,c))},EMBNl=function(a,b){EMBPl(a,a.b.protocol+
"://"+window.location.host+EMBQl(a)+(b?"#t="+Math.floor(a.f.currentTime)+"s":""),"URL")};EMB9.prototype.jt=function(){var a=EMBed("EMBED_HTML_TEMPLATE"),b=EMBed("EMBED_HTML_URL"),c=this.b.Pe(),b=b.replace(/__videoid__/g,this.a.n),a=a.replace(/__url__/g,EMBwa(b)),a=a.replace(/__width__/g,c.width),a=a.replace(/__height__/g,c.height);EMBPl(this,a,"Text")};
var EMBPl=function(a,b,c){var d=EMBe;window.clipboardData&&(d=window.clipboardData.setData(c,b));if(!d)a=a.Cg,EMBal(a,"html5-modal-panel-clipboard-substitute"),a.fg.value=b,a.fg.focus(),EMBM(EMBk(a.po,a),100)};EMB=EMB9.prototype;EMB.qt=function(){this.stopVideo()};
EMB.lt=function(){var a={cr:this.b.region,csipt:this.a.Dp,ec:108,event:"streamingerror",feature:this.b.ic,h:this.f.clientHeight,hl:this.b.jc,playerh:this.A.clientHeight,playerw:this.A.clientWidth,ptk:this.a.Rc,referrer:this.b.referrer,screenh:window.screen.height,screenw:window.screen.width,sdetail:this.a.Ep,shost:EMB1c(EMBRg(this.a)),sourceid:this.a.Fp,vid:this.b.Id,vq:this.b.Rg,w:this.f.clientWidth};EMBl(a,this.Qg());if(a.videoId)a.v=a.videoId,delete a.videoId;this.b.Te&&(a.mobile="1");EMB9k(this.ia,
a);window.open(EMBZg(this.a))};EMB.it=function(){var a=EMB8k(this.ia);EMBPl(this,JSON.stringify(a),"Text")};EMB.nt=function(){if(!this.Ll)this.Ll=EMBfd(EMBk(this.tp,this),500);this.tp();EMBRe("panelhidden",EMBk(function(){EMBN(this.Ll)},this))};
EMB.tp=function(){var a=this.f,b="-",c="-",d="-",e="-",f="-",g="-",h="-",i="-";if(a.webkitDecodedFrameCount)b=a.webkitDecodedFrameCount,c=a.webkitDroppedFrameCount,f=a.webkitVideoDecodedByteCount,g=a.webkitAudioDecodedByteCount;if(a.mozParsedFrames)d=a.mozParsedFrames,b=a.mozDecodedFrames,e=a.mozPresentedFrames,h=a.mozPaintedFrames,i=a.mozPaintDelay;var j=EMB_g(this.b),a=this.Cg,b=this.Cp.Ud({videoId:this.a.n,videoWidth:j.width,videoHeight:j.height,volume:Math.round(this.getVolume()),streamType:this.b.protocol,
decodedFrames:b,droppedFrames:c,parsedFrames:d,presentedFrames:e,videoBytesDecoded:f,audioBytesDecoded:g,paintedFrames:h,paintDelay:i});EMBal(a,"html5-modal-panel-infobox");a.qm.innerHTML=b};
EMB.preparePlayerThreeD=function(a){this.a.Tg&&this.i&&EMBmh(this.i,this.a.dd);(a=!!this.a.$e||!!this.a.dd||!a)&&this.f.setAttribute("mozStereoMode","1");if(EMBJg()){this.f.setAttribute("mozStereoMode",a?"1":"0");var a=EMBKg[a?this.a.Ip:0],b=document.createElement("NvStereoExtDataElement");b.setAttribute("stereoMode",a);EMBPb(document.documentElement,b);EMB9b(b,"3DModeEvent")}};EMB.getCurrentTime=function(){return this.f.getCurrentTime()};EMB.getPlayerState=function(){return this.$};
EMB.Eg=function(){return-1==this.$||5==this.$?EMBBd:0==this.$?EMByd:2==this.$?EMBzd:EMBAd};EMB.mq=function(a){if(a!==this.$){EMBCb(this.A,EMBSd[this.$],EMBSd[a]);if(3==a)EMBN(this.Kg),this.Kg=EMBfd(EMBk(this.iq,this),125);this.$=a;var b=this.Eg();this.Yc!=EMBCd&&EMBGl(this,b);this.Yc==EMBBd&&this.i.Xe(EMBe);this.pubsub.c("onStateChange",a);this.Yc==EMByd&&"embedded"==this.b.F&&EMBXg(this.b)&&(this.j("Playing the next video in the playlist."),this.nextVideo())}};
EMB.oq=function(a){if("newvideodata"==a)this.Xw={},EMByl(this);if("embedded"==this.b.F&&this.b.Hg)this.a.title?(EMBU(this.Jd),this.Ol.innerHTML=this.a.title,this.a.author?(EMBU(this.xg),EMBNe("span",this.xg).innerHTML=this.a.author):EMBV(this.xg)):EMBV(this.Jd);this.a.Me.length?EMBU(this.i.kc):EMBV(this.i.kc);EMB5g(this.i.Uc);EMBih(this.i,this.a.xa);this.a.Ri?(this.f.setVolume(0,EMBc),this.i.setVolume(0,EMBc),EMBzl(this,["audio"])):this.lc("audio")&&(EMBCl(this),this.Qe(this.ea));this.Sl=Math.min(0.8*
this.a.xa,180);EMBih(this.i,this.a.xa);if(this.a.Qi&&this.Ti=={}){var b=1E3*this.a.xa;EMBRl(this,"part2viewed",0,b);EMBRl(this,"videoplaytime25",0.25*b,b);EMBRl(this,"videoplaytime50",0.5*b,b);EMBRl(this,"videoplaytime75",0.75*b,b);EMBRl(this,"videoplaytime100",b,2147483647)}this.pubsub.c("onVideoDataChange",a,this.a)};var EMBRl=function(a,b,c,d){b in a.Ti||(c=new EMBfg(c,d,{id:b,priority:0}),c.pubsub.e("onEnter",a.ko,a),c.pubsub.e("onExit",a.ko,a),a.sa.addCueRange(c),a.Ti[b]=c)};
EMB9.prototype.ko=function(a){var b=a.getId();"part2viewed"==b?(EMBSl(this),this.a.Qi&&EMBW(this.a.Qi),this.a.km&&EMBW(this.a.km)):"videoplaytime100"!=b&&EMB5k(this.ia);this.a.lm&&(b=a.getId(),b=EMB$c(this.a.lm,{label:b}),EMBW(b));this.sa.removeCueRange(a)};
var EMBSl=function(a){if(a.a.xj){var b=a.a.gh[1];if(b)EMBW(b),a.a.xj=EMBe}},EMBGl=function(a,b){var c=b||a.Eg();if(c!==a.Yc){var d=a.Yc;a.Yc=c;c=new EMBwd(c,d);d=a.sa;if(d.zh&&!d.zb)if(EMBOh(d),c.state.Sj){d.be=EMBd;for(var e=[],f=0;f<d.Ab.length;f++){var g=d.Ab[f];g.ah&&2147483647>g.end&&(e.push(g),d.Ab.splice(f--,1))}f=[];if(e.length)for(g=0;g<e.length;g++)f.push(["onExit",e[g]]);d=f.concat(EMBPh(d,EMB$f(d.Ub,d.ba)));for(f=0;f<d.length;f++)e=d[f],g=e[1],g.pubsub.c.apply(g.pubsub,e)}else if(c.state.Zj)d.ba=
1E3*d.Mb(),d.Bh.stop(),d.Bh.start(),d.kb();else if(d.Bh.stop(),c.Ym.Zj){if(c.state.zf&&!d.Wm()&&EMB3f(d.Ub,Math.max(d.ba-2E3,0)))d.Bf=EMBxf(EMBk(d.kb,d))}else d.kb();EMBTl(a,"onStateChange",c)}};EMB=EMB9.prototype;EMB.Un=function(){return this.f.isPaused()};EMB.seekTo=function(a){a=a||0;this.ub?(this.a.Z=a,EMBul(this)):this.f.seekTo(a)};EMB.getDuration=function(){return this.a&&this.a.xa||0};
EMB.getPlayProgressFraction=function(){var a=0;this.getDuration()&&(a=this.getCurrentTime()/this.getDuration());return a};EMB.getLoadProgressFraction=function(){return this.getDuration()&&this.f.buffered&&0<this.f.buffered.length?this.f.buffered.end(this.f.getBufferedTimeRangeIndex())/this.getDuration():0};EMB.getVolume=function(){return this.ea.volume};EMB.setVolume=function(a){this.ea.volume=a;this.pubsub.c("internalvolumechange",this.ea)};
EMB.kj=function(a){this.ea=a;this.pubsub.c("internalvolumechange",this.ea)};EMB.isMuted=function(){return this.ea.muted};EMB.mute=function(){this.ea.muted=EMBc;this.pubsub.c("internalvolumechange",this.ea)};EMB.unMute=function(){this.ea.muted=EMBe;this.pubsub.c("internalvolumechange",this.ea)};EMB.loadVideoById=function(a,b,c){return this.loadVideoByPlayerVars({list:this.list,start:b,video_id:a,vq:c})};
EMB.loadVideoByPlayerVars=function(a){this.stopVideo();EMBpl(this,a);if(!EMBxl(this))return EMBe;EMBul(this);return EMBc};EMB.df=function(a,b,c){if(this.loadVideoById(a,b,c))this.a.tb=EMBc};EMB.cueVideoById=function(a,b,c){this.cueVideoByPlayerVars({list:this.list,start:b,video_id:a,vq:c})};EMB.cueVideoByPlayerVars=function(a){this.stopVideo();EMBpl(this,a);EMBxl(this)&&EMBvl(this)};
EMB.watchVideoById=function(a,b){if(this.a.n==a)this.seekTo(0,EMBc);else if(!this.ja&&"detailpage"==this.b.F){var c={};b&&(c.feature=b);window.location.href=EMBUl(this,a,c)}else this.loadVideoById(a)};EMB.cuePlaylist=function(a,b,c,d){this.$d=EMBc;EMBVl(this,a,b,c,d)};EMB.loadPlaylist=function(a,b,c,d){this.$d=EMBe;EMBVl(this,a,b,c,d)};
var EMBVl=function(a,b,c,d,e){a.b.p="string"==typeof b||b instanceof Array?new EMBVh({api:b,index:c,startSeconds:d,suggestedQuality:e}):new EMBVh(b);b=a.b.p;a=EMBk(a.sr,a);b.$j=a;b.Xd&&b.$j()};EMB=EMB9.prototype;EMB.sr=function(){this.$d?this.cueVideoById(EMBXh(this.b.p).n,this.b.p.Z,this.b.p.Pm):this.df(EMBXh(this.b.p).n,this.b.p.Z,this.b.p.Pm)};EMB.nextVideo=function(){if(this.b.p)this.b.p.Xd?(this.b.p.loop||this.b.p.ha+1<this.b.p.na.length)&&this.df(this.b.p.Vb().n):(this.b.p.Vb(),this.$d=EMBe)};
EMB.previousVideo=function(){if(this.b.p)this.b.p.Xd?(this.b.p.loop||0<=this.b.p.ha-1)&&this.df(EMBYh(this.b.p).n):(EMBYh(this.b.p),this.$d=EMBe)};EMB.playVideoAt=function(a){if(this.b.p)this.b.p.Xd?this.df(EMBXh(this.b.p,a).n):(EMBWh(this.b.p,a),this.$d=EMBe)};EMB.getPlaylist=function(){if(!this.b.p)return EMBd;for(var a=[],b=0;b<this.b.p.getLength();b++)a[b]=EMBXh(this.b.p,b).n;return a};EMB.getPlaylistId=function(){return!this.b.p||!this.b.p.ce?EMBd:this.b.p.ce.toString()};
EMB.getPlaylistIndex=function(){return this.b.p?this.b.p.ha:EMBd};EMB.setShuffle=function(a){this.b.p&&this.b.p.setShuffle(a)};EMB.setLoop=function(a){if(this.b.p)this.b.p.loop=a};var EMBxl=function(a){if(a.a.n)return EMBc;a.pubsub.c("unabletoplay",2);return EMBe};EMB9.prototype.getVideoUrl=function(){return EMBUl(this,this.a.n)};
var EMBUl=function(a,b,c){c=c||{};c.v=b;!c.feature&&a.b.F&&(c.feature="player_"+a.b.F);a=EMBHh(c);return EMBsh(EMBCh(window.location.protocol+"//"+window.location.host+"/watch"),a).toString()};EMB9.prototype.addCueRange=function(){};EMB9.prototype.addEventListener=function(a,b){var c=b;"string"==typeof b&&(c=function(){EMBg(b).apply(window,arguments)});this.pubsub.e(a,c)};
var EMBtl=function(a,b){a.ih={addEventListener:EMBk(a.addEventListener,a),getCurrentTime:EMBk(a.getCurrentTime,a),getPlayerState:EMBk(a.getPlayerState,a),seekTo:EMBk(a.fq,a),getDuration:EMBk(a.getDuration,a),getVolume:EMBk(a.getVolume,a),setVolume:EMBk(a.setVolume,a),isMuted:EMBk(a.isMuted,a),mute:EMBk(a.mute,a),unMute:EMBk(a.unMute,a),playVideo:EMBk(a.eq,a),pauseVideo:EMBk(a.tm,a),stopVideo:EMBk(a.cq,a),getPlaybackQuality:EMBk(a.Yp,a),setPlaybackQuality:EMBk(a.gq,a),getAvailableQualityLevels:EMBk(a.Xp,
a),getVideoBytesLoaded:EMBk(a.Zp,a),getVideoBytesTotal:EMBk(a.$p,a),getVideoStartBytes:EMBk(a.aq,a),setSize:EMBk(a.setSize,a),loadModule:EMBk(a.dq,a),unloadModule:EMBk(a.hq,a),loadVideoById:EMBk(a.df,a),cueVideoById:EMBk(a.cueVideoById,a),getVideoUrl:EMBk(a.getVideoUrl,a),addCueRange:EMBk(a.addCueRange,a),loadPlaylist:EMBk(a.loadPlaylist,a),cuePlaylist:EMBk(a.cuePlaylist,a),nextVideo:EMBk(a.nextVideo,a),previousVideo:EMBk(a.previousVideo,a),playVideoAt:EMBk(a.playVideoAt,a),setLoop:EMBk(a.setLoop,
a),setShuffle:EMBk(a.setShuffle,a),getPlaylist:EMBk(a.getPlaylist,a),getPlaylistId:EMBk(a.getPlaylistId,a),getPlaylistIndex:EMBk(a.getPlaylistIndex,a),getApiInterface:EMBk(function(){var a=[],b;for(b in this.ih)a.push(b);return a},a),getVideoData:EMBk(function(){return{video_id:this.a.n,author:this.a.author,title:this.a.title}},a)};a.Ug=EMB3a(a.ih);var c={loadVideoById:EMBk(a.loadVideoById,a),loadVideoByPlayerVars:EMBk(a.loadVideoByPlayerVars,a),cueVideoByPlayerVars:EMBk(a.cueVideoByPlayerVars,a),
watchVideoById:EMBk(a.watchVideoById,a),playVideo:EMBk(a.sm,a),seekTo:EMBk(a.lf,a),appendToVideoContent:EMBk(a.appendToVideoContent,a),appendAboveVideoControls:EMBk(a.appendAboveVideoControls,a),preparePlayerThreeD:EMBk(a.preparePlayerThreeD,a),toggleThreeD:EMBk(a.toggleThreeD,a),getRootNode:EMBk(function(){return this.A},a),getEnvironmentData:EMBk(function(){return this.b},a),getVideoData:EMBk(function(){return this.a},a),isFullscreen:EMBk(function(){return this.ja},a),bq:EMBk(a.lc,a)};EMBl(a.Ug,
c);EMBl(b,a.ih);EMBWl(a)},EMBWl=function(a){if(a.la.O.jsapicallback){var b=a.la.O.jsapicallback;(b=EMBg(b))&&b(a.b.mh)}window.onYouTubePlayerReady&&onYouTubePlayerReady(a.b.mh)};EMB=EMB9.prototype;EMB.Up=function(a){this.j("Setting playback to: "+a);this.f.setPlaybackRate(parseFloat(a))};EMB.Yq=function(){EMB9k(this.ia,{event:"streamingerror",ec:102})};EMB.Pp=function(){this.isMuted()?this.unMute():this.mute()};EMB.Qp=function(){this.j("Play/pause toggled.");EMBXl(this);EMBGl(this)};
EMB.nm=function(){if(0<this.f.currentTime&&!this.Zl){EMBN(this.Sc);this.a.n&&EMBX.info("docid",this.a.n);this.a.ra&&EMBX.info("plid",this.a.ra);this.a.Le&&EMBX.info("hbid",this.a.Le);this.a.yg&&EMBX.info("vcb",this.a.yg);0<this.a.Z&&EMBX.info("start",this.a.Z.toString());window.WebGLRenderingContext&&EMBX.info("wgl","1");EMBX.info("fmt",this.a.format.Qc.toString());EMBX.info("tds",Math.round(this.getLoadProgressFraction()*this.getDuration()).toString());EMBX.sb("aft");if("detailpage"==this.b.F){for(var a in this.Oi)EMBX.sb(a,
this.Oi[a]);for(var b in this.Ni)EMBX.info(b,this.Ni[b]);EMBX.Mg()}this.Zl=EMBc;a=this.ia;if(a.Ne)a.j("Attempted to start sending initial pings twice.");else{b=EMB8k(a);b.Ui=EMBc;a.ba=a.Mb();a.We=a.ba;b.Oe=[a.ba];b.Pi=b.Oe;a.Yi=(EMBm()-a.Ve)/1E3;b.send();if(a.a.wg)a.Lg?a.j("Do not call startSendingDetailedPings_ twice"):(EMB6k(a),a.Lg=EMBfd(EMBk(a.Xl,a),1E4));if(a.b.Si)if(a.Ne)EMBOc("yt.tracking.VideoStats","Tried to logUserWatch inappropriately.");else{b=a.b;var c=a.a;b={noflv:"1",html5:"1",video_id:c.n,
plid:c.ra,referrer:b.referrer,eurl:b.Ja,framer:b.Oc,feature:b.ic,fmt:c.format.Qc,ptk:c.Rc};EMBl(b,a.Ka());b=EMBL(a.b.Kb+"user_watch",b);EMBW(b)}a.a.Rc&&a.a.zg&&a.a.Ag&&EMBW(EMBL(a.b.Kb+"ptracking",{html5:"1",video_id:a.a.n,plid:a.a.ra,ptk:a.a.Rc,oid:a.a.Ag,ptchn:a.a.zg}));if(a.a.Pl)if(a.Ne)EMBOc("yt.tracking.VideoStats","Tried to logGetVideo inappropriately.");else{b=a.b;var c=a.a,d={noflv:1,video_id:c.n,el:b.F,ps:b.qb,referrer:b.referrer,eurl:b.Ja,framer:b.Oc,fmt:c.format.Qc,ptk:c.Rc,subscribed:c.Lb,
t:c.Nl};b.autoplay&&(d.autoplay="1");c.tb&&(d.splay="1");0<c.Z&&(d.start=1E3*c.Z);c.Ql&&(d.tmi="1");b=EMBL(a.Ul,d);EMBW(b)}a.Ne=EMBc}EMBSl(this)}};EMB.Qe=function(a){a.volume=EMBQ(a.volume,0,100);this.b.$a&&EMBUd(this.Md,a);this.lc("audio")||(this.i.setVolume(a.volume,a.muted),this.f.setVolume(a.volume,a.muted),this.pubsub.c("onVolumeChange",a))};
EMB.Se=function(){this.mc=this.f.currentTime;if(1==this.$&&this.aj&&(0<this.Sg&&this.mc>this.Sg&&(this.dj+=this.mc-this.Sg),this.a.xa&&!this.a.bm&&this.dj>=this.Sl)){var a;a=this.b;var b=this.a,c=EMBQ(this.mc/b.xa,0,1),c={html5:"1",video_id:b.n,eurl:a.Ja,framer:a.Oc,referrer:a.referrer,feature:a.ic,ps:a.qb,el:a.F,hl:a.jc,list:b.rb,w:c,l:b.xa,plid:b.ra,t:b.Nl};a.autoplay&&(c.autoplay="1");b.tb&&(c.splay="1");if(b.Lb)c.subscribed=b.Lb;a=EMBL(a.Kb+"set_awesome",c);EMBW(a);this.a.bm=EMBc}if(this.a.Rl&&
(a=this.a.bj,1==a&&0<this.mc||2==a&&20<=this.mc||3==a&&30<=this.mc)){a=this.ia;if(a.Ne)b=a.b,c=a.a,a={ns:"yt",html5:"1",docid:c.n,plid:c.ra,fmt:c.format.Qc,el:b.F,ps:b.qb,subscribed:c.Lb,yttk:"1",st:a.Mb(),et:a.Mb(),ctp:c.bj,vid:b.Id},a=EMBL("//s2.youtube.com/s",a),EMBW(a);this.a.bj++}this.Sg=this.mc;this.i.Mi.innerHTML=EMB0g(this.f.currentTime);a=this.getPlayProgressFraction();this.f.buffered&&0<this.f.buffered.length?(b=this.getLoadProgressFraction(),c=this.i,c.Re=a,c.Vi=b,EMBkh(c),a=this.f.getBufferedTimeRangeIndex(),
!EMBX.timer.l2s&&2<this.f.buffered.end(a)&&EMBX.sb("l2s"),this.f.buffered.end(a)):(b=this.i,b.Re=a,EMBkh(b));this.getDuration();if(!this.Gp&&(this.cj&&window.clearTimeout(this.cj),!this.f.isPaused()))this.cj=this.f.played&&0==this.f.played.length?window.setTimeout(EMBk(this.Se,this),100):window.setTimeout(EMBk(this.Se,this),500)};EMB.Mp=function(){EMBx(this.A,"html5-seeking");this.Yg=!this.f.paused;this.f.paused||(this.f.pause(),EMBGl(this,EMBzd))};
EMB.Np=function(){EMBy(this.A,"html5-seeking");if(this.Yg)this.Yg=EMBe,this.f.playVideo();this.$a()};EMB.Tp=function(a){this.lf(a*this.getDuration(),EMBc);this.aj=EMBe;this.Se();this.aj=EMBc};EMB.Rp=function(a){this.ja&&EMBYl(this,EMBe);if(a!=this.b.Od)this.b.Od=a,this.pubsub.c("SIZE_CLICKED",a),EMBKl(this)};EMB.Op=function(){EMBYl(this,!this.ja)};EMB.Sp=function(a){a=EMBZl(this,a);this.a.Z=this.f.currentTime;EMBIl(this,a)};
EMB.Vp=function(){if(EMBHe.addto_ajax)EMBJl(this);else{var a=EMB2c()+"/token_ajax";EMBEe(a,{format:"RAW",method:"GET",Xc:{action_get_wl_token:1},Rb:this,za:this.ku})}};EMB.Wp=function(){EMB_l(this,EMBQl(this))};EMB.Pq=function(){var a=EMBPe("fullScreen",document);a==EMBd&&(a=!this.ja);EMB0l(this,a)};
var EMB0l=function(a,b){if(!b&&"detailpage"==a.b.F){var c=EMBg("checkCurrentVideo");if(c&&EMBed("VIDEO_ID")!=a.a.n){var d=a.Md;try{var e={};e[a.a.n]=a.f.currentTime;d.Nd.set("yt-player-restore-playhead",e)}catch(f){}c(a.a.n);a.pubsub.c("openingpage")}}a.ja=b;!b&&!a.Hd?EMBEl(a,EMBe):EMBEl(a,EMBc);EMBKl(a);EMBhh(a.i.vg,b);EMBFl(a);b&&a.b.Wi&&EMBjl(a);EMBTl(a,"onResize")},EMBKl=function(a){var b="small";a.ja?b="fullscreen":a.b.Od&&(b="large");EMBue(document.body,"player-size",b)};
EMB9.prototype.Ij=function(a){var b=a.keyCode;if(179==b||178==b)179==b&&(EMBXl(this,EMBc),a.preventDefault()),178==b&&(this.tm(),a.preventDefault());98==b&&EMBTl(this,"onToggleBackground");(187==b||43==b)&&EMBTl(this,"onFontSizeIncrease");(189==b||45==b)&&EMBTl(this,"onFontSizeDecrease");32==b&&EMBLl(a)&&(EMBXl(this,EMBc),a.preventDefault())};
EMB9.prototype.Qq=function(a){var b=a.keyCode;if(38==b||40==b||37==b||39==b)38==b?this.kj({volume:this.ea.volume+5,muted:EMBe}):40==b?this.kj({volume:this.ea.volume-5,muted:EMBe}):37==b?this.lf(this.getCurrentTime()-20,EMBc):39==b&&this.lf(this.getCurrentTime()+20,EMBc),a.preventDefault();27==b&&this.ja&&(EMBYl(this,EMBe),a.preventDefault())};EMB9.prototype.Ej=function(){0==this.Ma.clientWidth&&0==this.Ma.clientHeight||(EMBFl(this),EMBTl(this,"onResize"))};
var EMBTl=function(a,b,c){for(var d in a.oc)a.oc[d].pubsub.c(b,c)},EMBZl=function(a,b){var c;a.ab.some(function(a){if(a.yc==b)return c=a,EMBc});return c};EMB=EMB9.prototype;EMB.Rm=function(a){var b;this.ab.some(function(c){if(c.Qd==a)return b=c,EMBc});return b};EMB.Xg=function(a){this.ub?EMBul(this):(this.f.togglePlayPause(),a&&EMB1l(this))};
EMB.playVideo=function(){if(this.ub)EMBul(this);else{if(this.f.getSrc()!=EMBRg(this.a))this.f.activate(EMBRg(this.a)),this.dh&&window.clearTimeout(this.dh),this.dh=EMBM(EMBk(this.Yq,this),15E3);EMBM(EMBk(function(){this.f.playVideo()},this),0)}};EMB.pauseVideo=function(){this.f.pauseVideo()};EMB.stopVideo=function(){if(this.Eg()!=EMBBd){var a=this.ia;EMB5k(a);a.u();this.pauseVideo();this.a.Z=this.f.currentTime;this.f.stopVideo();this.pubsub.c("internalstatechange",-1)}};
var EMB1l=function(a){var b=document.createElement("div");EMBx(b,"html5-bezel","html5-center-overlay");var c=document.createElement("div");a.Un()?EMBx(c,"html5-bezel-pause"):EMBx(c,"html5-bezel-play");b.appendChild(c);a.Ma.appendChild(b);EMBM(function(){EMBx(b,"html5-bezel-fade")},0);EMBM(function(){EMBF(b)},300)};EMB9.prototype.eq=function(){this.a.tb=EMBc;this.sm()};EMB9.prototype.sm=function(){this.lc("play_pause")||(EMBDl(this)?this.ie.Uh("control_play"):this.playVideo())};
EMB9.prototype.tm=function(){this.lc("play_pause")||(EMBDl(this)?this.ie.Uh("control_pause"):this.pauseVideo())};var EMBXl=function(a,b){if(!a.lc("play_pause")&&(!a.b.pb||!a.ub||EMBgi.hasTags(EMBb)))EMBDl(a)?a.ie.Uh("control_toggle_play_pause"):a.Xg(b)};EMB9.prototype.cq=function(){this.lc("play_pause")||this.stopVideo()};EMB9.prototype.fq=function(a,b){this.a.tb=EMBc;this.lf(a,b)};EMB9.prototype.lf=function(a,b){this.lc("seek")||this.seekTo(a,b)};
var EMBYl=function(a,b){var c=EMBPe("fullScreenEnabled",document);if(c||c==EMBb&&!EMBu&&EMBPe("requestFullScreen",document.body))if(b){var c=a.A,d=EMBPe("requestFullScreen",c);d&&d.apply(c,[Element.ALLOW_KEYBOARD_INPUT])}else(c=EMBPe("cancelFullScreen",document))&&c.call(document);else EMB0l(a,b)};EMB9.prototype.Vm=function(a){EMBLl(a)&&(this.A.focus(),EMBXl(this,EMBc))};EMB9.prototype.Rq=function(a){EMBLl(a)&&EMBYl(this,!this.ja)};
EMB9.prototype.Sq=function(a){a.scale*(this.ja?-1:1)>(this.ja?-0.7:1.3)&&EMBYl(this,!this.ja);a.preventDefault()};EMB9.prototype.Tq=function(a){a.scale*(this.ja?-1:1)>(this.ja?-0.9:1.1)&&EMBYl(this,!this.ja)};var EMBLl=function(a){return!EMBMe(a.target,"html5-stop-propagation")};EMB9.prototype.Uq=function(a){this.a&&this.a.rm?EMB_l(this,this.a.rm):EMB_l(this,EMBQl(this));a.stopPropagation()};var EMB_l=function(a,b){a.ja&&EMBYl(a,EMBe);a.pubsub.c("openingpage");EMBre(b)};
EMB9.prototype.kt=function(){var a=EMBd,b={html5:1};if(!this.ub)b.autoplay=1,b.vq=this.a.format.Qd;if(this.b.Ja)b.eurl=this.b.Ja;(a=Math.round(this.A.getCurrentTime()))&&10<a&&(b.start=a);a=EMBHh(b);a=EMBsh(EMBCh("/embed/"+this.a.n),a);b=this.b.Pe();b={top:0,left:0,width:b.width,height:b.height,resizable:EMBc};this.pubsub.c("openingpage");EMBse(a.toString(),b)};
var EMBQl=function(a){var b={v:a.a.n};if(a.a.rb)b.list=a.a.rb;if(a.b.Ja)b.eurl=a.b.Ja;a.b.F&&(b.feature="player_"+a.b.F);a=EMBHh(b);return EMBsh(EMBCh("/watch"),a).toString()};EMB=EMB9.prototype;
EMB.Kp=function(a){this.j("Handling get_video_info response");this.pubsub.c("internalvideodatachange","videoinfo");this.a.$l&&!this.b.Te?(this.j("Has unsupported ad content"),this.pubsub.c("nothtml5servable",a)):EMBgl(this).length?EMBnl(this):(this.j("No available formats"),this.pubsub.c("nothtml5servable",a))};EMB.Lp=function(a){this.pubsub.c("unabletoplay",a.errorcode,unescape(a.reason))};
EMB.kq=function(a){if(this.la.$c){this.j("Calling fallback");var b=this.la;if(this.a)b.O.video_id=this.a.n,b.O.start=this.a.Z;b.O.html5_unavailable="1";EMBl(b,a||{});var c=this.A.parentNode;b.cf=EMBk(function(){c.appendChild(this.A);this.pubsub.c("unabletoplay",5)},this);this.la.$c(b)}else this.pubsub.c("unabletoplay",5)};
EMB.nq=function(a,b){EMBN(this.Sc);EMBN(this.Kg);EMBwl(this);this.ej?(this.ej.innerHTML=b?b:EMBgd("HTML5_DEFAULT_FALLBACK"),EMBae(this.Ng,EMBc)):this.la.cf&&this.la.cf();this.pubsub.c("internalstatechange",-1);this.pubsub.c("onError",a)};EMB.lq=function(){this.pauseVideo()};var EMBEl=function(a,b){EMBA(a.A,"html5-autohide",b);a.$a()};EMB9.prototype.$a=function(){EMBA(this.ma,"hide-controls",EMBe);window.clearTimeout(this.Qj);0!=this.$&&EMB2l(this);this.Hd&&EMBTl(this,"showcontrols")};
var EMB2l=function(a){var b=a.b.pb?4E3:3E3;a.Qj=EMBM(EMBk(a.Um,a),b)};EMB=EMB9.prototype;EMB.setSize=function(){EMBFl(this);EMBTl(this,"onResize")};EMB.Um=function(){var a;if(a=this.b.pb)if(!(a=this.Yc==EMBCd)){a=this.i;var b=EMB2.getInstance();a=!!b.Wd&&EMBLe(b.Wd,a.V)}a?(window.clearTimeout(this.Qj),EMB2l(this)):(EMBA(this.ma,"hide-controls",EMBc),this.Hd&&EMBTl(this,"hidecontrols"))};
EMB.tt=function(a){a.preventDefault();if(!EMBme(this.Cg.Hb)){EMBme(this.La)&&a.stopPropagation();EMB2g(this.La,a);EMBU(this.La);if(!this.Ia)this.Ia=new EMB1f;this.Ia.H(this.La,"contextmenu",function(a){a.preventDefault()});a=EMBk(function(){this.Ia.H(document,"click",EMBk(this.gg,this));this.Ia.H(document,"contextmenu",EMBk(this.gg,this));this.Ia.H(window,"blur",EMBk(this.gg,this))},this);EMBM(a,0);this.Ia.H(document,"keydown",EMBk(this.Et,this))}};EMB.Et=function(a){27==a.keyCode&&this.gg()};
EMB.gg=function(){EMBV(this.La);this.Ia.Pb()};
var EMBsl=function(a){a.b.Ob=new EMBs(a.Ma.clientWidth,a.Ma.clientHeight);if(!a.nk||!EMBXa(a.nk,a.b.Ob)){a.nk=a.b.Ob;var b=a.b.Ob.width,c=a.b.Ob.height,d=0,e=0;b/c>480/360?(d=c,e=360):(d=b,e=480);b=EMBQ(d/e,0.53,1);a.zr=EMBLh(".html5-scalable-icon",["transform: scale("+b+") !important","-webkit-transform: scale("+b+") !important","-moz-transform: scale("+b+") !important","-o-transform: scale("+b+") !important","-ms-transform: scale("+b+") !important"],{Af:a.zr,reset:EMBc})}},EMBFl=function(a){EMBsl(a);
var b=a.f.videoWidth,c=a.f.videoHeight;if(0!=a.f.readyState)a.a.Ze=new EMBs(b,c);if(!(a.b.Pc||0==b*c)){var b=a.Ma.clientHeight,c=a.Ma.clientWidth,d=a.f.videoWidth,e=a.f.videoHeight,f=Math.min(b/e,c/d),d=d*f,e=e*f,b=new EMBR((c-d)/2,(b-e)/2,d,e);a.b.Wc=new EMBR(0,0,b.width,b.height);EMB7d(a.Fg,b.width,b.height);EMB_d(a.Fg,b.left,b.top)}};EMB9.prototype.appendToVideoContent=function(a){this.Fg.appendChild(a)};
EMB9.prototype.appendAboveVideoControls=function(a){var b=this.ma;b.insertBefore(a,b.childNodes[0]||EMBd)};var EMB3l=EMBg("yt.playerConfig")||{};EMBn("yt.playerConfig",EMB3l);
var EMB4l={},EMBam=function(a){var b=EMBC("player");if(b){var c;c=a instanceof EMBO?a:new EMBO(a);var a=!!c.disable.html5,d=!!c.disable.flash,e=EMBFg();c.O.eurl||(c.O.eurl=EMB5l());c.O.enablejsapi="1";var f=EMBe;c.yk&&(f=EMBc);f&&!e&&(c.O.html5_unavailable="1");var g={pubsub:new EMBP,subscribedEvents:{}},h=b;EMB6l(b);var h=EMBD("player-container",b),b="player"+EMBia(h),i={target:h,bx:b,$n:c.O.playerapiid,Yn:EMB7l(c.O.jsapicallback),Ds:c.Bc.id,Ic:g,Zn:EMBe,F:c.O.el,Xn:new EMB4g};c.O.playerapiid=b;
c.O.jsapicallback="ytPlayerOnYouTubePlayerReady";var j,k,l=EMB8l;f&&e?(j=EMB9l,d||(k=l)):(j=l,e&&!a&&(k=EMB9l));if(k)c.$c=function(a){a=a||c;a instanceof EMBO||(a=new EMBO(a));delete a.$c;f?a.O.autoplay=1:EMBEe("/html5",{Cm:EMBc,method:"POST",Fj:{prefer_html5:EMBc,session_token:EMBHe.html5_ajax}});a.Bc.id=i.Ds;k(h,a)};c.cf=EMB$l(h);EMB4l[b]=i;EMBM(function(){j(h,c)},0);return g}},EMB$l=function(a){return function(){var b=EMBgd("PLAYER_FALLBACK",EMBb,'The Adobe Flash Player or an HTML5 supported browser is required for video playback. <br> <a href="http://get.adobe.com/flashplayer/">Get the latest Flash Player</a> <br> <a href="/html5">Learn more about upgrading to an HTML5 browser</a>');
a.innerHTML="<div>"+b+"</div>"}},EMB6l=function(a){EMBbm(a);EMBx(a,"player-root");EMBXd(a,"overflow","hidden");var b=EMBE("div","player-container"),c=EMBE("div","player-actions-container",EMBE("div","player-actions-share"),EMBE("div","player-actions-close",EMBE("div","player-actions-close-button")));EMBPb(a,b,c)},EMB9l=function(a,b){EMBbm(a);b.Bc.id+="-html5";new EMB9(a,b)},EMB8l=function(a,b){EMBbm(a);b.Bc.id+="-flash";EMBsd(a,b)},EMBbm=function(a){a=EMBC(a);EMBQb(a)},EMB5l=function(){var a="unknown";
document.referrer&&(a=document.referrer.substring(0,128));return a},EMBcm=function(a,b){var c=b+EMBia(a),d="yt.player."+c;EMBg("yt.player")[c]=EMBk(function(a){this.pubsub.c(b,a)},a);return d},EMBdm=function(a,b){var c=EMB7l(b);this.subscribedEvents[a]||this.nativeAddEventListener(a,EMBcm(this,a));this.subscribedEvents[a]=1;this.pubsub.e(a,c)},EMB7l=function(a){var b=a;"string"==typeof a&&(b=function(){EMBg(a).apply(window,arguments)});return b};EMBn("yt.player.VideoPlayer",EMB9);
EMBn("yt.player.util.Controls.formatTime",EMB0g);EMBn("yt.net.ajax.setToken",function(a,b){EMBHe[a]=b});
EMBn("ytPlayerOnYouTubePlayerReady",function(a){var b=EMB4l[a],c=EMBC(b.target).firstElementChild!=EMBb?EMBC(b.target).firstElementChild:EMBRb(EMBC(b.target).firstChild),a=c.getApiInterface();EMBq(a,function(a){b.Ic[a]=EMBk(c[a],c)});b.Ic.nativeAddEventListener=EMBk(b.Ic.addEventListener,c);for(var d in b.Ic.subscribedEvents)b.Ic.nativeAddEventListener(d,EMBcm(b.Ic,d));b.Ic.addEventListener=EMBdm;"embedded"===b.F&&b.Ic.addEventListener("SHARE_CLICKED",EMBk(b.Xn.share,b.Xn));if(!b.Zn){b.Zn=EMBc;if(b.Yn)(d=
b.Yn)&&d(b.$n);window.onYouTubePlayerReady&&onYouTubePlayerReady(b.$n)}});EMBn("yt.tracking.share",EMBqe);EMBn("yt.window.popup",EMBse);EMB1e(EMB2);EMB1e(EMBEf);EMB1e(EMB0);EMB1e(EMB3g);EMBLc();var EMB$,EMBem=EMBd,EMBfm=EMBd,EMBgm="*",EMBhm=EMBd,EMBim=EMBe,EMBjm=function(){var a=document.documentElement.clientHeight||document.body.clientHeight,a=Math.round(100*(a-EMBC("watch-longform-ad").offsetHeight)/a)+"%";EMBC("player").style.height=a},EMBpm=function(){EMBem=new EMBTd;EMBim=EMBc;EMB$.addEventListener("onStateChange",EMBkm);EMB$.addEventListener("onPlaybackQualityChange",EMBlm);EMB$.addEventListener("onError",EMBmm);EMB$.addEventListener("onVideoProgress",EMBnm);EMB$.addEventListener("onVolumeChange",
EMBom)},EMBrm=function(){for(var a=EMB$.getApiInterface(),b={event:"initialDelivery",apiInterface:a,info:{}},c=0,d=a.length;c<d;c++){var e=a[c];if(0==e.search("get")||0==e.search("is")){var f;f=e;var g=0;0==f.search("get")?g=3:0==f.search("is")&&(g=2);f=f[g].toLowerCase()+f.substr(g+1);try{var h=EMB$[e]();b.info[f]=h}catch(i){EMBJ("js api",e+" threw an error.")}}}EMBqm(b)},EMBkm=function(a){a={event:"onStateChange",info:{playerState:a,duration:EMB$.getDuration(),videoData:EMB$.getVideoData(),videoStartBytes:EMB$.getVideoStartBytes(),
videoBytesTotal:EMB$.getVideoBytesTotal(),playbackQuality:EMB$.getPlaybackQuality(),availableQualityLevels:EMB$.getAvailableQualityLevels(),videoUrl:EMB$.getVideoUrl()}};if(EMB$.getPlaylist)a.info.playlist=EMB$.getPlaylist(),a.info.playlistIndex=EMB$.getPlaylistIndex();EMBqm(a)},EMBom=function(a){EMBUd(EMBem,a);a={event:"infoDelivery",info:{muted:EMB$.isMuted(),volume:EMB$.getVolume()}};EMBqm(a)},EMBlm=function(a){EMBqm({event:"onPlaybackQualityChange",playbackQuality:a})},EMBnm=function(a){a={event:"infoDelivery",
info:{currentTime:a,videoBytesLoaded:EMB$.getVideoBytesLoaded()}};EMBqm(a)},EMBmm=function(a){EMBqm({event:"onError",error:a})},EMBqm=function(a){a.id=EMBhm;a=JSON.stringify(a);EMBfm&&EMBfm.postMessage(a,EMBgm)};EMBn("yt.embed.writeEmbed",function(){var a=new EMBO(EMBed("PLAYER_CONFIG"));var b;b=a instanceof EMBO?a.O:a.args;var c;c=window.location.hash;"#"==c.charAt(0)&&(c="!"==c.charAt(1)?c.substr(2):c.substr(1));c=EMB7c(c);if(c=c.t||c.at){var d=window.location.hash.replace(/\bat=[^&]*&?/,"");window.location.hash=d&&"#"!=d?d:"#!";c=EMBwg(c)}else c=0;c&&(b.start=c);window!=window.top&&(a.O.el="embedded");EMBed("CUED_AUTOPLAY")&&(a.O.autoplay=1);a.O.jsapicallback=EMBpm;EMB$=EMBam(a)});
EMBn("yt.setConfig",function(a){EMBhd(EMBad,arguments)});EMBn("yt.setMsg",function(a){EMBhd(EMBbd,arguments)});EMBG(window,"load",EMBX.Pw);EMBG(window,"resize",EMBjm);EMBG(EMBC("watch-longform-ad-placeholder"),"resize",EMBjm);
EMBG(window,"message",function(a){if(!("*"!=EMBed("ORIGIN")&&a.origin!=EMBed("ORIGIN")))switch(EMBfm=a.source,EMBgm=a.origin,a=JSON.parse(a.data),EMBhm=a.id,a.event){case "listening":EMBim&&(EMBrm(),EMBqm({event:"onReady"}),EMBim=EMBe);break;case "command":var b=a.func,c=EMB$;c[b]&&(c[b].apply(c,a.args||[]),(0==b.search("cue")||0==b.search("load"))&&EMBrm())}});
