(function(){var f,aa=aa||{},m=this;function n(a){return void 0!==a}function ba(a,b,c){a=a.split(".");c=c||m;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&n(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}}function q(a,b){for(var c=a.split("."),d=b||m,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d}function ca(){}function da(a){a.getInstance=function(){return a.Eb?a.Eb:a.Eb=new a}}
function ea(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function fa(a){return null!=a}function ga(a){return"array"==ea(a)}function ha(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length}function r(a){return"string"==typeof a}function ia(a){return"number"==typeof a}function ja(a){return"function"==ea(a)}function ka(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function la(a){return a[ma]||(a[ma]=++na)}
var ma="closure_uid_"+(1E9*Math.random()>>>0),na=0;function oa(a,b,c){return a.call.apply(a.bind,arguments)}function pa(a,b,c){if(!a)throw Error();if(2<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)}}
function u(a,b,c){u=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?oa:pa;return u.apply(null,arguments)}function qa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}function ra(a,b){for(var c in b)a[c]=b[c]}var v=Date.now||function(){return+new Date};function sa(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return d in b?b[d]:a}));return a}
function w(a,b){function c(){}c.prototype=b.prototype;a.G=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.$E=function(a,c,g){return b.prototype[c].apply(a,Array.prototype.slice.call(arguments,2))}}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 u.apply(null,c)}return u(this,a)};function ta(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ta);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}w(ta,Error);ta.prototype.name="CustomError";var ua;function va(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function wa(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}function xa(a){return/^[\s\xa0]*$/.test(a)}function x(a){return xa(ya(a))}function za(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function Aa(a){return encodeURIComponent(String(a))}function Ba(a){return decodeURIComponent(a.replace(/\+/g," "))}
function Ca(a){if(!Da.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Ea,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Fa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ga,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ha,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ia,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ja,"&#0;"));return a}var Ea=/&/g,Fa=/</g,Ga=/>/g,Ha=/"/g,Ia=/'/g,Ja=/\x00/g,Da=/[\x00&<>"']/;function Ka(a){return La(a,"&")?"document"in m?Na(a):Oa(a):a}
function Na(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(Pa,function(a,e){var g=b[a];if(g)return g;if("#"==e.charAt(0)){var h=Number("0"+e.substr(1));isNaN(h)||(g=String.fromCharCode(h))}g||(c.innerHTML=a+" ",g=c.firstChild.nodeValue.slice(0,-1));return b[a]=g})}
function Oa(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return a}})}var Pa=/&([^;\s<&]+);?/g;function La(a,b){return-1!=a.indexOf(b)}function Qa(a,b){return La(a.toLowerCase(),b.toLowerCase())}function Ra(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}
function Sa(a,b){return Array(b+1).join(a)}function Ta(a){a=n(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return Sa("0",Math.max(0,2-b))+a}function ya(a){return null==a?"":String(a)}function Ua(a){return Array.prototype.join.call(arguments,"")}
function Va(a,b){for(var c=0,d=za(String(a)).split("."),e=za(String(b)).split("."),g=Math.max(d.length,e.length),h=0;0==c&&h<g;h++){var k=d[h]||"",l=e[h]||"",p=RegExp("(\\d*)(\\D*)","g"),s=RegExp("(\\d*)(\\D*)","g");do{var t=p.exec(k)||["","",""],y=s.exec(l)||["","",""];if(0==t[0].length&&0==y[0].length)break;c=Wa(0==t[1].length?0:parseInt(t[1],10),0==y[1].length?0:parseInt(y[1],10))||Wa(0==t[2].length,0==y[2].length)||Wa(t[2],y[2])}while(0==c)}return c}function Wa(a,b){return a<b?-1:a>b?1:0}
function Xa(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b}var Ya=2147483648*Math.random()|0;function Za(){return"goog_"+Ya++}function $a(a){var b=Number(a);return 0==b&&xa(a)?NaN:b}function ab(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function bb(a){var b=r(void 0)?Ra(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};function cb(){};function db(a){return a[a.length-1]}
var eb=Array.prototype,fb=eb.indexOf?function(a,b,c){return eb.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(r(a))return r(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},gb=eb.lastIndexOf?function(a,b,c){return eb.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(r(a))return r(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;
return-1},z=eb.forEach?function(a,b,c){eb.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},hb=eb.filter?function(a,b,c){return eb.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=r(a)?a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];b.call(c,l,k,a)&&(e[g++]=l)}return e},B=eb.map?function(a,b,c){return eb.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=r(a)?a.split(""):a,h=0;h<d;h++)h in g&&(e[h]=b.call(c,
g[h],h,a));return e},ib=eb.reduce?function(a,b,c,d){d&&(b=u(b,d));return eb.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;z(a,function(c,h){e=b.call(d,e,c,h,a)});return e},jb=eb.some?function(a,b,c){return eb.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},kb=eb.every?function(a,b,c){return eb.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&!b.call(c,e[g],g,a))return!1;
return!0};function lb(a,b,c){b=mb(a,b,c);return 0>b?null:r(a)?a.charAt(b):a[b]}function mb(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return g;return-1}function nb(a,b){var c=ob(a,b,void 0);return 0>c?null:r(a)?a.charAt(c):a[c]}function ob(a,b,c){for(var d=r(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1}function C(a,b){return 0<=fb(a,b)}function D(a){return 0==a.length}
function pb(a){if(!ga(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function qb(a,b){C(a,b)||a.push(b)}function rb(a,b){var c=fb(a,b),d;(d=0<=c)&&sb(a,c);return d}function sb(a,b){eb.splice.call(a,b,1)}function tb(a,b){var c=mb(a,b,void 0);0<=c&&sb(a,c)}function ub(a){return eb.concat.apply(eb,arguments)}function vb(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}
function wb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ga(d)||(e=ha(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var g=a.length,h=d.length,k=0;k<h;k++)a[g+k]=d[k];else a.push(d)}}function xb(a,b,c,d){eb.splice.apply(a,yb(arguments,1))}function yb(a,b,c){return 2>=arguments.length?eb.slice.call(a,b):eb.slice.call(a,b,c)}
function zb(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++],g=ka(e)?"o"+la(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,g)||(b[g]=!0,a[c++]=e)}a.length=c}function Ab(a,b,c){c=c||Bb;for(var d=0,e=a.length,g;d<e;){var h=d+e>>1,k;k=c(b,a[h]);0<k?d=h+1:(e=h,g=!k)}return g?d:~d}function Cb(a,b){a.sort(b||Bb)}function Eb(a,b){var c=Bb;Cb(a,function(a,e){return c(a[b],e[b])})}
function Fb(a,b,c){if(!ha(a)||!ha(b)||a.length!=b.length)return!1;var d=a.length;c=c||Gb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function Bb(a,b){return a>b?1:a<b?-1:0}function Gb(a,b){return a===b}function Hb(a,b,c){c=Ab(a,b,c);0>c&&xb(a,-(c+1),0,b)}function Ib(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];ga(d)?b.push.apply(b,Ib.apply(null,d)):b.push(d)}return b};function Jb(a,b,c){return Math.min(Math.max(a,b),c)}function Kb(a,b,c){return a+c*(b-a)};function F(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}f=F.prototype;f.clone=function(){return new F(this.x,this.y)};function Lb(a,b){return new F(a.x-b.x,a.y-b.y)}f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};f.scale=function(a,b){var c=ia(b)?b:a;this.x*=a;this.y*=c;return this};function G(a,b){this.width=a;this.height=b}function Mb(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=G.prototype;f.clone=function(){return new G(this.width,this.height)};function Nb(a){return a.width/a.height}f.isEmpty=function(){return!(this.width*this.height)};f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};f.scale=function(a,b){var c=ia(b)?b:a;this.width*=a;this.height*=c;return this};function Ob(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Pb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Qb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Rb(a){var b=0,c;for(c in a)b++;return b}function Sb(a){for(var b in a)return a[b]}function Tb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ub(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Vb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}
function Wb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Xb(a){var b=Yb;return(a=Wb(b,a,void 0))&&b[a]}function Zb(a){for(var b in a)return!1;return!0}function $b(a){for(var b in a)delete a[b]}function ac(a,b){return b in a?a[b]:void 0}function bc(a){var b={},c;for(c in a)b[c]=a[c];return b}function cc(a){var b=ea(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=cc(a[c]);return b}return a}var dc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function ec(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 g=0;g<dc.length;g++)c=dc[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function fc(a){var b=arguments.length;if(1==b&&ga(arguments[0]))return fc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var gc;t:{var hc=m.navigator;if(hc){var ic=hc.userAgent;if(ic){gc=ic;break t}}gc=""}function jc(a){return La(gc,a)};var kc,lc,mc,nc,oc;function pc(){return m.navigator||null}var qc=jc("Opera")||jc("OPR"),rc=jc("Trident")||jc("MSIE"),sc=jc("Gecko")&&!Qa(gc,"WebKit")&&!(jc("Trident")||jc("MSIE")),tc=Qa(gc,"WebKit"),uc=tc&&jc("Mobile"),vc=pc(),wc=vc&&vc.platform||"";kc=La(wc,"Mac");lc=La(wc,"Win");mc=!!pc()&&La(pc().appVersion||"","X11");var xc=gc;nc=!!xc&&La(xc,"Android");oc=!!xc&&La(xc,"iPhone");var yc=!!xc&&La(xc,"iPad");function zc(){var a=m.document;return a?a.documentMode:void 0}
var Ac=function(){var a="",b;if(qc&&m.opera)return a=m.opera.version,ja(a)?a():a;sc?b=/rv\:([^\);]+)(\)|;)/:rc?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:tc&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(gc))?a[1]:"");return rc&&(b=zc(),b>parseFloat(a))?String(b):a}(),Bc={};function Cc(a){return Bc[a]||(Bc[a]=0<=Va(Ac,a))}function Dc(a){return rc&&Ec>=a}var Fc=m.document,Ec=Fc&&rc?zc()||("CSS1Compat"==Fc.compatMode?parseInt(Ac,10):5):void 0;var Gc=!rc||Dc(9),Hc=!sc&&!rc||rc&&Dc(9)||sc&&Cc("1.9.1"),Ic=rc&&!Cc("9"),Jc=rc||qc||tc;function Kc(a){return a?new Lc(Mc(a)):ua||(ua=new Lc)}function Nc(a){return r(a)?document.getElementById(a):a}function Oc(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Pc("*",a,b)}function H(a,b){var c=b||document,d=null;c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Pc("*",a,b)[0];return d||null}
function Pc(a,b,c){var d=document;c=c||d;a=a&&"*"!=a?a.toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))return c.querySelectorAll(a+(b?"."+b:""));if(b&&c.getElementsByClassName){c=c.getElementsByClassName(b);if(a){for(var d={},e=0,g=0,h;h=c[g];g++)a==h.nodeName&&(d[e++]=h);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(g=e=0;h=c[g];g++)a=h.className,"function"==typeof a.split&&C(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c}
function Qc(a,b){Ob(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Rc?a.setAttribute(Rc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Rc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function Sc(a){a=a.document;a=Tc(a)?a.documentElement:a.body;return new G(a.clientWidth,a.clientHeight)}function Uc(a){var b=Vc(a);a=a.parentWindow||a.defaultView;return rc&&Cc("10")&&a.pageYOffset!=b.scrollTop?new F(b.scrollLeft,b.scrollTop):new F(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Vc(a){return!tc&&Tc(a)?a.documentElement:a.body||a.documentElement}function Wc(a){return a?a.parentWindow||a.defaultView:window}function I(a,b,c){return Xc(document,arguments)}
function Xc(a,b){var c=b[0],d=b[1];if(!Gc&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ca(d.name),'"');if(d.type){c.push(' type="',Ca(d.type),'"');var e={};ec(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(r(d)?c.className=d:ga(d)?c.className=d.join(" "):Qc(c,d));2<b.length&&Zc(a,c,b,2);return c}function Zc(a,b,c,d){function e(c){c&&b.appendChild(r(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!ha(g)||ka(g)&&0<g.nodeType?e(g):z($c(g)?vb(g):g,e)}}
function ad(a){return document.createElement(a)}function bd(a){return document.createTextNode(String(a))}function Tc(a){return"CSS1Compat"==a.compatMode}function cd(a,b){a.appendChild(b)}function dd(a,b){Zc(Mc(a),a,arguments,1)}function ed(a){for(var b;b=a.firstChild;)a.removeChild(b)}function fd(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function gd(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function hd(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}
function id(a){return Hc&&void 0!=a.children?a.children:hb(a.childNodes,function(a){return 1==a.nodeType})}function jd(a){return void 0!=a.firstElementChild?a.firstElementChild:kd(a.firstChild)}function kd(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function ld(a){var b;if(Jc&&!(rc&&Cc("9")&&!Cc("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ka(b)&&1==b.nodeType?b:null}
function md(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}function Mc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function nd(a){return a.contentWindow||Wc(a.contentDocument||a.contentWindow.document)}
function od(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{ed(a);var c=Mc(a);a.appendChild(c.createTextNode(String(b)))}}function pd(a,b){var c=[];return qd(a,b,c,!0)?c[0]:void 0}function qd(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||qd(a,b,c,d))return!0;a=a.nextSibling}return!1}
var rd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},sd={IMG:" ",BR:"\n"};function td(a,b,c){if(!(a.nodeName in rd))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in sd)b.push(sd[a.nodeName]);else for(a=a.firstChild;a;)td(a,b,c),a=a.nextSibling}function $c(a){if(a&&"number"==typeof a.length){if(ka(a))return"function"==typeof a.item||"string"==typeof a.item;if(ja(a))return"function"==typeof a.item}return!1}
function ud(a,b,c){if(!b&&!c)return null;var d=b?b.toUpperCase():null;return vd(a,function(a){return(!d||a.nodeName==d)&&(!c||r(a.className)&&C(a.className.split(/\s+/),c))},!0)}function wd(a,b){return ud(a,null,b)}function vd(a,b,c,d){c||(a=a.parentNode);c=null==d;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return null}function Lc(a){this.b=a||m.document||document}f=Lc.prototype;f.K=function(a){return r(a)?this.b.getElementById(a):a};f.WB=function(a,b,c){return Xc(this.b,arguments)};
f.createElement=function(a){return this.b.createElement(a)};function xd(a){return Tc(a.b)}function yd(a){a=a.b;return a.parentWindow||a.defaultView}function zd(a){return Uc(a.b)}f.appendChild=cd;f.append=dd;f.contains=md;var Ad="StopIteration"in m?m.StopIteration:Error("StopIteration");function Bd(){}Bd.prototype.next=function(){throw Ad;};Bd.prototype.Vb=function(){return this};function Cd(a){if(a instanceof Bd)return a;if("function"==typeof a.Vb)return a.Vb(!1);if(ha(a)){var b=0,c=new Bd;c.next=function(){for(;;){if(b>=a.length)throw Ad;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function Dd(a,b,c){if(ha(a))try{z(a,b,c)}catch(d){if(d!==Ad)throw d;}else{a=Cd(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==Ad)throw e;}}}function Ed(a){if(ha(a))return vb(a);a=Cd(a);var b=[];Dd(a,function(a){b.push(a)});return b};function Fd(a,b){this.g={};this.b=[];this.j=this.fa=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Fd?(c=a.Ma(),d=a.Qa()):(c=Ub(a),d=Tb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=Fd.prototype;f.Na=function(){return this.fa};f.Qa=function(){Gd(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};f.Ma=function(){Gd(this);return this.b.concat()};
function Hd(a,b){return Id(a.g,b)}f.kg=function(a){for(var b=0;b<this.b.length;b++){var c=this.b[b];if(Id(this.g,c)&&this.g[c]==a)return!0}return!1};f.equals=function(a,b){if(this===a)return!0;if(this.fa!=a.Na())return!1;var c=b||Jd;Gd(this);for(var d,e=0;d=this.b[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function Jd(a,b){return a===b}f.isEmpty=function(){return 0==this.fa};f.clear=function(){this.g={};this.j=this.fa=this.b.length=0};
f.remove=function(a){return Id(this.g,a)?(delete this.g[a],this.fa--,this.j++,this.b.length>2*this.fa&&Gd(this),!0):!1};function Gd(a){if(a.fa!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];Id(a.g,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.fa!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],Id(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}}f.get=function(a,b){return Id(this.g,a)?this.g[a]:b};f.set=function(a,b){Id(this.g,a)||(this.fa++,this.b.push(a),this.j++);this.g[a]=b};
f.forEach=function(a,b){for(var c=this.Ma(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};f.clone=function(){return new Fd(this)};f.Vb=function(a){Gd(this);var b=0,c=this.b,d=this.g,e=this.j,g=this,h=new Bd;h.next=function(){for(;;){if(e!=g.j)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw Ad;var h=c[b++];return a?h:d[h]}};return h};function Id(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Kd(a){return"function"==typeof a.Na?a.Na():ha(a)||r(a)?a.length:Rb(a)}function Ld(a){if("function"==typeof a.Qa)return a.Qa();if(r(a))return a.split("");if(ha(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Tb(a)}function Md(a){if("function"==typeof a.Ma)return a.Ma();if("function"!=typeof a.Qa){if(ha(a)||r(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Ub(a)}}
function Nd(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(ha(a)||r(a))z(a,b,void 0);else for(var c=Md(a),d=Ld(a),e=d.length,g=0;g<e;g++)b.call(void 0,d[g],c&&c[g],a)}function Od(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ha(a)||r(a))return kb(a,b,c);for(var d=Md(a),e=Ld(a),g=e.length,h=0;h<g;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};function Pd(a,b,c,d,e,g,h){var k="";a&&(k+=a+":");c&&(k+="//",b&&(k+=b+"@"),k+=c,d&&(k+=":"+d));e&&(k+=e);g&&(k+="?"+g);h&&(k+="#"+h);return k}var Qd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function Rd(a){if(Sd){Sd=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Td(c))&&c!=b.hostname)throw Sd=!0,Error();}}return a.match(Qd)}var Sd=tc;function Td(a){return(a=Rd(a)[3]||null)&&decodeURIComponent(a)}
function Ud(a){return(a=Rd(a)[5]||null)&&decodeURIComponent(a)}function Vd(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")}function Wd(a,b,c){if(ga(b))for(var d=0;d<b.length;d++)Wd(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",Aa(b))}function Xd(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)Wd(b[c],b[c+1],a);return a}
function Yd(a,b){for(var c in b)Wd(c,b[c],a);return a}function Zd(a){a=Yd([],a);a[0]="";return a.join("")}function $d(a,b){return Vd(2==arguments.length?Xd([a],arguments[1],0):Xd([a],arguments,1))}function ae(a,b){return Vd(Yd([a],b))}function be(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var g=a.charCodeAt(b-1);if(38==g||63==g)if(g=a.charCodeAt(b+e),!g||61==g||38==g||35==g)return b;b+=e+1}return-1}var ce=/#|$/,de=/[?&]($|#)/;
function ee(a,b,c){for(var d=a.search(ce),e=0,g,h=[];0<=(g=be(a,e,b,d));)h.push(a.substring(e,g)),e=Math.min(a.indexOf("&",g)+1||d,d);h.push(a.substr(e));a=[h.join("").replace(de,"$1"),"&",b];null!=c&&a.push("=",Aa(c));return Vd(a)};function J(a,b){var c;a instanceof J?(this.cf=n(b)?b:a.cf,fe(this,a.Fb),this.bf=a.bf,ge(this,a.Cb),he(this,a.af),ie(this,a.Lb),je(this,a.b.clone()),ke(this,a.Pg())):a&&(c=Rd(String(a)))?(this.cf=!!b,fe(this,c[1]||"",!0),this.bf=le(c[2]||""),ge(this,c[3]||"",!0),he(this,c[4]),ie(this,c[5]||"",!0),je(this,c[6]||"",!0),ke(this,c[7]||"",!0)):(this.cf=!!b,this.b=new me(null,0,this.cf))}f=J.prototype;f.Fb="";f.bf="";f.Cb="";f.af=null;f.Lb="";f.yn="";f.cf=!1;
f.toString=function(){var a=[],b=this.Fb;b&&a.push(oe(b,pe),":");if(b=this.Cb){a.push("//");var c=this.bf;c&&a.push(oe(c,pe),"@");a.push(Aa(b));b=this.af;null!=b&&a.push(":",String(b))}if(b=this.Lb)this.Cb&&"/"!=b.charAt(0)&&a.push("/"),a.push(oe(b,"/"==b.charAt(0)?qe:re));(b=this.b.toString())&&a.push("?",b);(b=this.Pg())&&a.push("#",oe(b,se));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.Fb;c?fe(b,a.Fb):c=!!a.bf;c?b.bf=a.bf:c=!!a.Cb;c?ge(b,a.Cb):c=null!=a.af;var d=a.Lb;if(c)he(b,a.af);else if(c=!!a.Lb){if("/"!=d.charAt(0))if(this.Cb&&!this.Lb)d="/"+d;else{var e=b.Lb.lastIndexOf("/");-1!=e&&(d=b.Lb.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(La(e,"./")||La(e,"/.")){for(var d=0==e.lastIndexOf("/",0),e=e.split("/"),g=[],h=0;h<e.length;){var k=e[h++];"."==k?d&&h==e.length&&g.push(""):".."==k?((1<g.length||1==g.length&&""!=g[0])&&
g.pop(),d&&h==e.length&&g.push("")):(g.push(k),d=!0)}d=g.join("/")}else d=e}c?ie(b,d):c=""!==a.b.toString();c?je(b,le(a.b.toString())):c=!!a.yn;c&&ke(b,a.Pg());return b};f.clone=function(){return new J(this)};function fe(a,b,c){a.Fb=c?le(b):b;a.Fb&&(a.Fb=a.Fb.replace(/:$/,""));return a}function te(a){return a.Cb}function ge(a,b,c){a.Cb=c?le(b):b;return a}function he(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.af=b}else a.af=null;return a}
function ue(a){return a.Lb}function ie(a,b,c){a.Lb=c?le(b):b}function je(a,b,c){b instanceof me?(a.b=b,ve(a.b,a.cf)):(c||(b=oe(b,we)),a.b=new me(b,0,a.cf));return a}function xe(a){return a.b}function K(a,b,c){a.b.set(b,c);return a}function ye(a,b,c){ga(c)||(c=[String(c)]);ze(a.b,b,c)}function Ae(a,b){return a.b.get(b)}f.Pg=function(){return this.yn};function ke(a,b,c){a.yn=c?le(b):b;return a}
function Be(a){K(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^v()).toString(36));return a}function Ce(a){return a instanceof J?a.clone():new J(a,void 0)}function De(a,b,c,d){var e=new J(null,void 0);a&&fe(e,a);b&&ge(e,b);c&&he(e,c);d&&ie(e,d);return e}function le(a){return a?decodeURIComponent(a):""}function oe(a,b){return r(a)?encodeURI(a).replace(b,Ee):null}
function Ee(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var pe=/[#\/\?@]/g,re=/[\#\?:]/g,qe=/[\#\?]/g,we=/[\#\?@]/g,se=/#/g;function me(a,b,c){this.b=a||null;this.g=!!c}function Fe(a){if(!a.Ya&&(a.Ya=new Fd,a.fa=0,a.b))for(var b=a.b.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null,g=null;0<=d?(e=b[c].substring(0,d),g=b[c].substring(d+1)):e=b[c];e=Ba(e);e=Ge(a,e);a.add(e,g?Ba(g):"")}}f=me.prototype;f.Ya=null;f.fa=null;f.Na=function(){Fe(this);return this.fa};
f.add=function(a,b){Fe(this);this.b=null;a=Ge(this,a);var c=this.Ya.get(a);c||this.Ya.set(a,c=[]);c.push(b);this.fa++;return this};f.remove=function(a){Fe(this);a=Ge(this,a);return Hd(this.Ya,a)?(this.b=null,this.fa-=this.Ya.get(a).length,this.Ya.remove(a)):!1};f.clear=function(){this.Ya=this.b=null;this.fa=0};f.isEmpty=function(){Fe(this);return 0==this.fa};function He(a,b){Fe(a);b=Ge(a,b);return Hd(a.Ya,b)}f.kg=function(a){var b=this.Qa();return C(b,a)};
f.Ma=function(){Fe(this);for(var a=this.Ya.Qa(),b=this.Ya.Ma(),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};f.Qa=function(a){Fe(this);var b=[];if(r(a))He(this,a)&&(b=ub(b,this.Ya.get(Ge(this,a))));else{a=this.Ya.Qa();for(var c=0;c<a.length;c++)b=ub(b,a[c])}return b};f.set=function(a,b){Fe(this);this.b=null;a=Ge(this,a);He(this,a)&&(this.fa-=this.Ya.get(a).length);this.Ya.set(a,[b]);this.fa++;return this};
f.get=function(a,b){var c=a?this.Qa(a):[];return 0<c.length?String(c[0]):b};function ze(a,b,c){a.remove(b);0<c.length&&(a.b=null,a.Ya.set(Ge(a,b),vb(c)),a.fa+=c.length)}f.toString=function(){if(this.b)return this.b;if(!this.Ya)return"";for(var a=[],b=this.Ya.Ma(),c=0;c<b.length;c++)for(var d=b[c],e=Aa(d),d=this.Qa(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+Aa(d[g]));a.push(h)}return this.b=a.join("&")};
f.clone=function(){var a=new me;a.b=this.b;this.Ya&&(a.Ya=this.Ya.clone(),a.fa=this.fa);return a};function Ge(a,b){var c=String(b);a.g&&(c=c.toLowerCase());return c}function ve(a,b){b&&!a.g&&(Fe(a),a.b=null,a.Ya.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),ze(this,e,a))},a));a.g=b};var Ie=/^https?:\/\/([-\w.]+\.youtube(education)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com\/|yt-devenv-shared\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/]+\/|)|play\.google\.com\/)/,Je=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,Ke=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?\/embed\//,
Le=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,Me=/^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Ne=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,Oe=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,Pe=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(ba\.l\.google\.com|c\.googlesyndication\.com|corp\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|ed\.video\.google\.com|vp\.video\.l\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,
Qe=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|corp\.google\.com|googlesyndication\.com|prod\.google\.com|static\.doubleclick\.net|static\.googleadsserving\.cn|studioapi\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|ytimg\.com)(:[0-9]+)?([\/\?\#]|$))/,Re=/^https?:\/\/((www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|(101epmpngvqtgfsf73utp3aomcvh4be6|mb33edaaot4tnevadfqhve4857kpq1rs|ot5106nq9r49sc62k7h52rtfngv5j94j)-a-hangout-opensocial\.googleusercontent\.com\/|24e12c4a-a-95274a9c-s-sites.googlegroups.com\/a\/google.com\/flash-api-test-harness\/apiharness.swf|([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|mail\.google\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube-nocookie\.com|youtubeeducation\.com|vevo\.com)(:[0-9]+)?([\/\?\#]|$))/;var Se=window.yt&&window.yt.config_||{};ba("yt.config_",Se,void 0);ba("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Te=window.yt&&window.yt.msgs_||{};ba("yt.msgs_",Te,void 0);function Ue(a){Ve(Se,arguments)}function We(a){return a in Se?Se[a]:void 0}function L(a,b){ja(a)&&(a=Xe(a));return window.setTimeout(a,b)}function Ye(a,b){ja(a)&&(a=Xe(a));return window.setInterval(a,b)}function M(a){window.clearTimeout(a)}function Ze(a){window.clearInterval(a)}
function Xe(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw $e(b),b;}}:a}function $e(a){if(window&&window.yterr){var b=q("yt.www.errors.log");b?b(a,void 0):(b=We("ERRORS")||[],b.push([a,void 0]),Ue("ERRORS",b))}}function af(a){Ve(Te,arguments)}function bf(a,b,c){var d=b||{};if(a=a in Te?Te[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}
sa=function(a,b){var c=b||{},d=a in Te?Te[a]:a;if(d)for(var e in c)var g=(""+c[e]).replace(/\$/g,"$$$$"),d=d.replace(new RegExp("\\{\\$"+e+"\\}","gi"),g),d=d.replace(new RegExp("\\$"+e,"gi"),g);return d};function Ve(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]}};var cf="corp.google.com googleplex.com youtube.com youtube-nocookie.com youtubeeducation.com prod.google.com sandbox.google.com docs.google.com drive.google.com mail.google.com plus.google.com play.google.com googlevideo.com talkgadget.google.com 101epmpngvqtgfsf73utp3aomcvh4be6-a-hangout-opensocial.googleusercontent.com mb33edaaot4tnevadfqhve4857kpq1rs-a-hangout-opensocial.googleusercontent.com ot5106nq9r49sc62k7h52rtfngv5j94j-a-hangout-opensocial.googleusercontent.com survey.g.doubleclick.net".split(" "),
df="2mdn.net corp.google.com imasdk.googleapis.com static.doubleclick.net studioapi.doubleclick.net googleads.g.doubleclick.net gstatic.com/doubleclick/studio/innovation/ytplayer".split(" "),ef="";function ff(a){return a&&a==ef?!0:gf(a,cf)?(ef=a,!0):!1}function hf(a){var b=!!a&&-1!=a.search(Pe),c=ff(a);b!=c&&$e(Error(a+" behavior is not consistent"));return c}
function jf(){var a=document.location.toString(),b=!!a&&-1!=a.search(Ke),c=-1!=a.indexOf("/embed/");b!=c&&$e(Error(a+" behavior is not consistent"));return c}function kf(a){var b=!!a&&-1!=a.search(Qe),c=gf(a,df);c&&!b&&$e(Error(a+" behavior is not consistent"));return c}function gf(a,b){return(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}
function lf(a){a=new J(a);fe(a,document.location.protocol);ge(a,document.location.hostname);document.location.port&&he(a,document.location.port);return a.toString()}function mf(a){a=new J(a);fe(a,document.location.protocol);return a.toString()};var nf={},of=0,pf=q("yt.net.ping.workerUrl_")||null;ba("yt.net.ping.workerUrl_",pf,void 0);function qf(a,b,c){a&&(c?a&&(a=I("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),Mc(a).body.appendChild(a)):rf(a,b))}function rf(a,b){var c=new Image,d=""+of++;nf[d]=c;c.onload=c.onerror=function(){b&&nf[d]&&b();delete nf[d]};c.src=a;c=eval("null")};function sf(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function tf(a){return eval("("+a+")")}function uf(a){return vf(new wf(void 0),a)}function wf(a){this.b=a}
function vf(a,b){var c=[];xf(a,b,c);return c.join("")}
function xf(a,b,c){switch(typeof b){case "string":yf(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(null==b){c.push("null");break}if(ga(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],xf(a,a.b?a.b.call(b,String(g),e):e,c),e=",";c.push("]");break}c.push("{");d="";for(g in b)Object.prototype.hasOwnProperty.call(b,g)&&(e=b[g],"function"!=typeof e&&(c.push(d),yf(g,c),
c.push(":"),xf(a,a.b?a.b.call(b,g,e):e,c),d=","));c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var zf={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Af=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function yf(a,b){b.push('"',a.replace(Af,function(a){if(a in zf)return zf[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return zf[a]=e+b.toString(16)}),'"')};function Bf(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=Bf.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new Bf(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof Bf?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:!1};
f.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};f.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};f.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
f.scale=function(a,b){var c=ia(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Cf(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=Cf.prototype;f.clone=function(){return new Cf(this.left,this.top,this.width,this.height)};function Df(a){return new Cf(a.left,a.top,a.right-a.left,a.bottom-a.top)}function Ef(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1}
f.contains=function(a){return a instanceof Cf?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};function Ff(a){return new G(a.width,a.height)}f.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
f.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};f.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};f.scale=function(a,b){var c=ia(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Gf(a){Gf[" "](a);return a}Gf[" "]=ca;function Hf(){return tc?"Webkit":sc?"Moz":rc?"ms":qc?"O":null}function If(){return tc?"-webkit":sc?"-moz":rc?"-ms":qc?"-o":null}function Jf(a,b){if(b&&a in b)return a;var c=Hf();return c?(c=c.toLowerCase(),c+=bb(a),!n(b)||c in b?c:null):null};function Kf(a,b,c){r(b)?Lf(a,c,b):Ob(b,qa(Lf,a))}function Lf(a,b,c){(c=Mf(a,c))&&(a.style[c]=b)}function Mf(a,b){var c=ab(b);if(void 0===a.style[c]){var d=Hf()+bb(c);if(void 0!==a.style[d])return d}return c}function Nf(a,b){var c=Mc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Of(a,b){return Nf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
function Pf(a,b,c){var d,e=sc&&(kc||mc)&&Cc("1.9");b instanceof F?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Qf(d,e);a.style.top=Qf(b,e)}function Rf(a){return new F(a.offsetLeft,a.offsetTop)}function Sf(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}rc&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Tf(a){if(rc&&!Dc(8))return a.offsetParent;var b=Mc(a),c=Of(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Of(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 null}
function Uf(a){for(var b=new Bf(0,Infinity,Infinity,0),c=Kc(a),d=c.b.body,e=c.b.documentElement,g=Vc(c.b);a=Tf(a);)if(!(rc&&0==a.clientWidth||tc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Of(a,"overflow")){var h=Vf(a),k;k=a;if(sc&&!Cc("1.9")){var l=parseFloat(Nf(k,"borderLeftWidth"));if(Wf(k))var p=k.offsetWidth-k.clientWidth-l-parseFloat(Nf(k,"borderRightWidth")),l=l+p;k=new F(l,parseFloat(Nf(k,"borderTopWidth")))}else k=new F(k.clientLeft,k.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,
h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,g);c=Sc(yd(c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null}
function Vf(a){var b,c=Mc(a),d=Of(a,"position"),e=sc&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),g=new F(0,0),h;b=c?Mc(c):document;h=!rc||Dc(9)||xd(Kc(b))?b.documentElement:b.body;if(a==h)return g;if(a.getBoundingClientRect)b=Sf(a),a=zd(Kc(c)),g.x=b.left+a.x,g.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(h),g.x=b.screenX-a.screenX,g.y=b.screenY-a.screenY;else{b=a;do{g.x+=b.offsetLeft;g.y+=
b.offsetTop;b!=a&&(g.x+=b.clientLeft||0,g.y+=b.clientTop||0);if(tc&&"fixed"==Of(b,"position")){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(qc||tc&&"absolute"==d)g.y-=c.body.offsetTop;for(b=a;(b=Tf(b))&&b!=c.body&&b!=h;)g.x-=b.scrollLeft,qc&&"TR"==b.tagName||(g.y-=b.scrollTop)}return g}
function Xf(a){var b;if(a.getBoundingClientRect)b=Sf(a),b=new F(b.left,b.top);else{b=zd(Kc(a));var c=Vf(a);b=new F(c.x-b.x,c.y-b.y)}if(sc&&!Cc(12)){i:{c=ab("transform");if(void 0===a.style[c]&&(c=Hf()+bb(c),void 0!==a.style[c])){c=If()+"-transform";break i}c="transform"}a=(a=Of(a,c)||Of(a,"transform"))?(a=a.match(Yf))?new F(parseFloat(a[1]),parseFloat(a[2])):new F(0,0):new F(0,0);a=new F(b.x+a.x,b.y+a.y)}else a=b;return a}
function Zf(a){if(1==a.nodeType)return Xf(a);var b=ja(a.uC),c=a;a.targetTouches?c=a.targetTouches[0]:b&&a.b.targetTouches&&(c=a.b.targetTouches[0]);return new F(c.clientX,c.clientY)}function $f(a,b,c){if(b instanceof G)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");bg(a,b);a.style.height=Qf(c,!0)}function Qf(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function bg(a,b){a.style.width=Qf(b,!0)}function cg(a){return dg(a)}
function dg(a){var b=eg;if("none"!=Of(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=e;return a}function eg(a){var b=a.offsetWidth,c=a.offsetHeight,d=tc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new G(b,c):(a=Sf(a),new G(a.right-a.left,a.bottom-a.top))}function fg(a){var b=Vf(a);a=dg(a);return new Cf(b.x,b.y,a.width,a.height)}
function gg(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*b+")")}function hg(a,b){a.style.display=b?"":"none"}function Wf(a){return"rtl"==Of(a,"direction")}function ig(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}
function jg(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?ig(a,c):0}var kg={thin:2,medium:4,thick:6};function lg(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in kg?kg[c]:ig(a,c)}
function mg(a){if(rc&&!Dc(9)){var b=lg(a,"borderLeft"),c=lg(a,"borderRight"),d=lg(a,"borderTop");a=lg(a,"borderBottom");return new Bf(d,c,a,b)}b=Nf(a,"borderLeftWidth");c=Nf(a,"borderRightWidth");d=Nf(a,"borderTopWidth");a=Nf(a,"borderBottomWidth");return new Bf(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var ng=/[^\d]+$/,og={cm:1,"in":1,mm:1,pc:1,pt:1},pg={em:1,ex:1};
function qg(a){var b=Of(a,"fontSize"),c;c=(c=b.match(ng))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(rc){if(c in og)return ig(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in pg)return a=a.parentNode,c=Of(a,"fontSize"),ig(a,b==c?"1em":b)}c=I("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;gd(c);return b}var Yf=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function rg(a){if(a.classList)return a.classList;a=a.className;return r(a)&&a.match(/\S+/g)||[]}function sg(a,b){return a.classList?a.classList.contains(b):C(rg(a),b)}function N(a,b){a.classList?a.classList.add(b):sg(a,b)||(a.className+=0<a.className.length?" "+b:b)}function tg(a,b){if(a.classList)z(b,function(b){N(a,b)});else{var c={};z(rg(a),function(a){c[a]=!0});z(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function O(a,b){a.classList?a.classList.remove(b):sg(a,b)&&(a.className=hb(rg(a),function(a){return a!=b}).join(" "))}function ug(a,b){a.classList?z(b,function(b){O(a,b)}):a.className=hb(rg(a),function(a){return!C(b,a)}).join(" ")}function P(a,b,c){c?N(a,b):O(a,b)}function vg(a,b){var c=!sg(a,b);P(a,b,c);return c};function wg(a,b,c){a&&(a.dataset?a.dataset[xg(b)]=c:a.setAttribute("data-"+b,c))}function yg(a,b){return a?a.dataset?a.dataset[xg(b)]:a.getAttribute("data-"+b):null}function zg(a,b){a&&(a.dataset?delete a.dataset[xg(b)]:a.removeAttribute("data-"+b))}var Ag={};function xg(a){return Ag[a]||(Ag[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var Bg=tc?"webkit":sc?"moz":rc?"ms":qc?"o":"";function Cg(a){var b=a.__yt_uid_key;b||(b=Dg(),a.__yt_uid_key=b);return b}var Dg=q("yt.dom.getNextId_");if(!Dg){Dg=function(){return++Eg};ba("yt.dom.getNextId_",Dg,void 0);var Eg=0}function Fg(a,b){var c=Pc(a,null,b);return c.length?c[0]:null}function Gg(a,b){if(a in b)return b[a];var c=Bg+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function Hg(a,b){var c;jb(a,function(a){c=Gg(a,b);return!!c});return c}
function Ig(a){P(document.body,"hide-players",!0);a&&P(a,"preserve-players",!0)}function Jg(){P(document.body,"hide-players",!1);var a=Oc("preserve-players");z(a,function(a){O(a,"preserve-players")})};function Kg(a){if(a=a||window.event){for(var b in a)b in Lg||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.Sc=a;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName&&b}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;
this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;"MozMousePixelScroll"==this.type?(this.wheelDeltaX=a.axis==a.HORIZONTAL_AXIS?a.detail:0,this.wheelDeltaY=a.axis==a.HORIZONTAL_AXIS?0:a.detail):window.opera?(this.wheelDeltaX=0,this.wheelDeltaY=a.detail):0==a.wheelDelta%120?"WebkitTransform"in document.documentElement.style?window.chrome&&0==navigator.platform.indexOf("Mac")?(this.wheelDeltaX=a.wheelDeltaX/-30,this.wheelDeltaY=
a.wheelDeltaY/-30):(this.wheelDeltaX=a.wheelDeltaX/-1.2,this.wheelDeltaY=a.wheelDeltaY/-1.2):(this.wheelDeltaX=0,this.wheelDeltaY=a.wheelDelta/-1.6):(this.wheelDeltaX=a.wheelDeltaX/-3,this.wheelDeltaY=a.wheelDeltaY/-3);this.b=a.pageX;this.g=a.pageY}}function Mg(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.b=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.g=a.clientY+b}}
function Ng(a){n(a.b)||Mg(a);return a.b}function Og(a){n(a.g)||Mg(a);return a.g}f=Kg.prototype;f.Sc=null;f.type="";f.target=null;f.relatedTarget=null;f.currentTarget=null;f.data=null;f.source=null;f.state=null;f.keyCode=0;f.charCode=0;f.altKey=!1;f.ctrlKey=!1;f.shiftKey=!1;f.clientX=0;f.clientY=0;f.wheelDeltaX=0;f.wheelDeltaY=0;f.rotation=0;f.scale=1;f.touches=null;f.changedTouches=null;f.preventDefault=function(){this.Sc.returnValue=!1;this.Sc.preventDefault&&this.Sc.preventDefault()};
f.stopPropagation=function(){this.Sc.cancelBubble=!0;this.Sc.stopPropagation&&this.Sc.stopPropagation()};f.stopImmediatePropagation=function(){this.Sc.cancelBubble=!0;this.Sc.stopImmediatePropagation&&this.Sc.stopImmediatePropagation()};var Lg={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var Pg=q("yt.events.listeners_")||{};ba("yt.events.listeners_",Pg,void 0);var Qg=q("yt.events.counter_")||{count:0};ba("yt.events.counter_",Qg,void 0);function Rg(a,b,c,d){return Wb(Pg,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function Q(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Rg(a,b,c,d);if(e)return e;var e=++Qg.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new Kg(d);if(!vd(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Kg(b);b.currentTarget=a;return c.call(a,b)};h=Xe(h);Pg[e]=[a,b,c,h,d];a.addEventListener?"mouseenter"==b&&g?a.addEventListener("mouseover",
h,d):"mouseleave"==b&&g?a.addEventListener("mouseout",h,d):"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style?a.addEventListener("MozMousePixelScroll",h,d):a.addEventListener(b,h,d):a.attachEvent("on"+b,h);return e}function Sg(a,b){var c;c=Q(a,"playing",function(){Tg(c);b.apply(a,arguments)},void 0)}function Ug(a,b,c,d){return Vg(a,b,c,function(a){return sg(a,d)})}
function Vg(a,b,c,d){var e=a||document;return Q(e,b,function(a){var b=vd(a.target,function(a){return a===e||d(a)},!0);b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function Wg(a,b,c){(a=Rg(a,b,c,!1))&&Tg(a)}function Tg(a){a&&("string"==typeof a&&(a=[a]),z(a,function(a){if(a in Pg){var c=Pg[a],d=c[0],e=c[1],g=c[3],c=c[4];d.removeEventListener?d.removeEventListener(e,g,c):d.detachEvent&&d.detachEvent("on"+e,g);delete Pg[a]}}))}function Xg(a){for(var b in Pg)Pg[b][0]==a&&Tg(b)}
function Yg(a,b){if(document.createEvent){var c=document.createEvent("HTMLEvents");c.initEvent(b,!0,!0);a.dispatchEvent(c)}else c=document.createEventObject(),a.fireEvent("on"+b,c)};function Zg(){return!!Hg(["fullscreenEnabled","fullScreenEnabled"],document)}function $g(){return Hg(["fullscreenElement","fullScreenElement"],document)};function ah(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||bc(bh);this.assets=a.assets||{};this.attrs=a.attrs||bc(ch);this.params=a.params||bc(dh);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded}var bh={enablejsapi:1},ch={},dh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
ah.prototype.clone=function(){var a=new ah,b;for(b in this){var c=this[b];"object"==ea(c)?a[b]=bc(c):a[b]=c}return a};var eh,fh,gh,hh,ih,jh,kh;kh=jh=ih=hh=gh=fh=eh=!1;var lh=gc;lh&&(-1!=lh.indexOf("Firefox")?eh=!0:-1!=lh.indexOf("Camino")?fh=!0:-1!=lh.indexOf("iPhone")||-1!=lh.indexOf("iPod")?gh=!0:-1!=lh.indexOf("iPad")?hh=!0:-1!=lh.indexOf("Chrome")?jh=!0:-1!=lh.indexOf("Android")?ih=!0:-1!=lh.indexOf("Safari")&&(kh=!0));var mh=eh,nh=fh,oh=gh,ph=hh,qh=ih,rh=jh,sh=kh;var th=v(),uh=null,vh=Array(50),wh=-1,xh=!1;function yh(){var a=zh;Ah();uh.push(a);Bh(uh)}function Ch(a,b){Ah();var c=uh,d=Dh(a,String(b));D(c)?Eh(d):(Bh(c),z(c,function(a){a(d)}))}function Ah(){uh||(uh=q("yt.mdx.remote.debug.handlers_")||[],ba("yt.mdx.remote.debug.handlers_",uh,void 0))}function Eh(a){var b=(wh+1)%50;wh=b;vh[b]=a;xh||(xh=49==b)}function Bh(a){var b=vh;if(b[0]){var c=wh,d=xh?c:-1;do{var d=(d+1)%50,e=b[d];z(a,function(a){a(e)})}while(d!=c);vh=Array(50);wh=-1;xh=!1}}
function Dh(a,b){var c=(v()-th)/1E3;c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"\n");return d.join("")};function Fh(a){a=a||{};this.name=a.name||"";this.id=a.screenId||"";this.token=a.loungeToken||"";this.uuid=a.dialId||""}function Gh(a,b){return a||b?!a!=!b?!1:a.id==b.id&&a.token==b.token&&a.name==b.name&&a.uuid==b.uuid:!0}function Hh(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function Ih(a){return new Fh(a)}function Jh(a){return ga(a)?B(a,Ih):[]}
function Kh(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.uuid?".."+a.uuid.slice(-6):"-")+"}":"null"}function Lh(a){return ga(a)?"["+B(a,Kh).join(",")+"]":"null"};function Mh(){}Mh.prototype.Wc=!1;Mh.prototype.ga=function(){return this.Wc};Mh.prototype.dispose=function(){this.Wc||(this.Wc=!0,this.J())};function R(a,b){Nh(a,qa(Oh,b))}function Nh(a,b){a.zb||(a.zb=[]);a.zb.push(n(void 0)?u(b,void 0):b)}Mh.prototype.J=function(){if(this.zb)for(;this.zb.length;)this.zb.shift()()};function Ph(a){return a&&"function"==typeof a.ga?a.ga():!1}function Oh(a){a&&"function"==typeof a.dispose&&a.dispose()}
function Qh(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ha(d)?Qh.apply(null,d):Oh(d)}};function Rh(){this.b=[];this.Zb={}}w(Rh,Mh);f=Rh.prototype;f.gs=1;f.xj=0;f.subscribe=function(a,b,c){var d=this.Zb[a];d||(d=this.Zb[a]=[]);var e=this.gs;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.gs=e+3;d.push(e);return e};f.ha=function(a,b,c){if(a=this.Zb[a]){var d=this.b;if(a=lb(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Hb(a)}return!1};
f.Hb=function(a){if(0!=this.xj)return this.g||(this.g=[]),this.g.push(a),!1;var b=this.b[a];if(b){var c=this.Zb[b];c&&rb(c,a);delete this.b[a];delete this.b[a+1];delete this.b[a+2]}return!!b};f.H=function(a,b){var c=this.Zb[a];if(c){this.xj++;for(var d=yb(arguments,1),e=0,g=c.length;e<g;e++){var h=c[e];this.b[h+1].apply(this.b[h+2],d)}this.xj--;if(this.g&&0==this.xj)for(;c=this.g.pop();)this.Hb(c);return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.Zb[a];b&&(z(b,this.Hb,this),delete this.Zb[a])}else this.b.length=0,this.Zb={}};f.Na=function(a){if(a){var b=this.Zb[a];return b?b.length:0}a=0;for(b in this.Zb)a+=this.Na(b);return a};f.J=function(){Rh.G.J.call(this);delete this.b;delete this.Zb;delete this.g};var Sh=q("yt.pubsub.instance_")||new Rh;Rh.prototype.subscribe=Rh.prototype.subscribe;Rh.prototype.unsubscribeByKey=Rh.prototype.Hb;Rh.prototype.publish=Rh.prototype.H;Rh.prototype.clear=Rh.prototype.clear;ba("yt.pubsub.instance_",Sh,void 0);var Th=q("yt.pubsub.subscribedKeys_")||{};ba("yt.pubsub.subscribedKeys_",Th,void 0);var Uh=q("yt.pubsub.topicToKeys_")||{};ba("yt.pubsub.topicToKeys_",Uh,void 0);var Vh=q("yt.pubsub.isSynchronous_")||{};ba("yt.pubsub.isSynchronous_",Vh,void 0);
var Wh=q("yt.pubsub.skipSubId_")||null;ba("yt.pubsub.skipSubId_",Wh,void 0);function Xh(a,b,c){var d=Yh();if(d){var e=d.subscribe(a,function(){if(!Wh||Wh!=e){var d=arguments,h=function(){Th[e]&&b.apply(c||window,d)};try{Vh[a]?h():L(h,0)}catch(k){$e(k)}}},c);Th[e]=!0;Uh[a]||(Uh[a]=[]);Uh[a].push(e);return e}return 0}function Zh(a){var b=Yh();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),z(a,function(a){b.unsubscribeByKey(a);delete Th[a]}))}
function $h(a,b){var c=Yh();return c?c.publish.apply(c,arguments):!1}function ai(a,b){Vh[a]=!0;var c=Yh();c&&c.publish.apply(c,arguments);Vh[a]=!1}function bi(a){Uh[a]&&(a=Uh[a],z(a,function(a){Th[a]&&delete Th[a]}),a.length=0)}function ci(a){var b=Yh();if(b)if(b.clear(a),a)bi(a);else for(var c in Uh)bi(c)}function Yh(){return q("yt.pubsub.instance_")};function di(){};function ei(){}w(ei,di);ei.prototype.Na=function(){var a=0;Dd(this.Vb(!0),function(){a++});return a};ei.prototype.clear=function(){var a=Ed(this.Vb(!0)),b=this;z(a,function(a){b.remove(a)})};function fi(a){this.b=a}w(fi,ei);f=fi.prototype;f.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};f.set=function(a,b){try{this.b.setItem(a,b)}catch(c){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};f.get=function(a){a=this.b.getItem(a);if(!r(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.b.removeItem(a)};
f.Na=function(){return this.b.length};f.Vb=function(a){var b=0,c=this.b,d=new Bd;d.next=function(){if(b>=c.length)throw Ad;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!r(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};f.clear=function(){this.b.clear()};f.key=function(a){return this.b.key(a)};function gi(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a}w(gi,fi);function hi(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a}w(hi,fi);function ii(a){this.b=a}ii.prototype.set=function(a,b){n(b)?this.b.set(a,uf(b)):this.b.remove(a)};ii.prototype.get=function(a){var b;try{b=this.b.get(a)}catch(c){return}if(null!==b)try{return sf(b)}catch(d){throw"Storage: Invalid value was encountered";}};ii.prototype.remove=function(a){this.b.remove(a)};function ji(a){this.b=a}w(ji,ii);function ki(a){this.data=a}function li(a){return!n(a)||a instanceof ki?a:new ki(a)}ji.prototype.set=function(a,b){ji.G.set.call(this,a,li(b))};ji.prototype.g=function(a){a=ji.G.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};ji.prototype.get=function(a){if(a=this.g(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function mi(a){this.b=a}w(mi,ji);function ni(a){var b=a.creation;a=a.expiration;return!!a&&a<v()||!!b&&b>v()}mi.prototype.set=function(a,b,c){if(b=li(b)){if(c){if(c<v()){mi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=v()}mi.G.set.call(this,a,b)};mi.prototype.g=function(a,b){var c=mi.G.g.call(this,a);if(c)if(!b&&ni(c))mi.prototype.remove.call(this,a);else return c};function oi(a){this.b=a}w(oi,mi);function pi(a,b){var c=[];Dd(b,function(a){var b;try{b=oi.prototype.g.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?ni(b)&&c.push(a):c.push(a)},a);return c}function qi(a,b){var c=pi(a,b);z(c,function(a){oi.prototype.remove.call(this,a)},a)}oi.prototype.j=function(){qi(this,this.b.Vb(!0))};function ri(a,b,c){var d=c&&0<c?c:0;c=d?v()+1E3*d:0;if((d=d?si:ti)&&window.JSON){r(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function ui(a){if(!ti&&!si||!window.JSON)return null;var b;try{b=ti.get(a)}catch(c){}if(!r(b))try{b=si.get(a)}catch(d){}if(!r(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function vi(a){ti&&ti.remove(a);si&&si.remove(a)}var si,wi=new gi;si=wi.isAvailable()?new oi(wi):null;var ti,xi=new hi;ti=xi.isAvailable()?new oi(xi):null;function yi(a,b){for(var c=a.split(b),d={},e=0,g=c.length;e<g;e++){var h=c[e].split("=");if(1==h.length&&h[0]||2==h.length){var k=Ba(h[0]||""),h=Ba(h[1]||"");k in d?ga(d[k])?wb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function zi(a,b){var c=[];Ob(a,function(a,b){var g=Aa(b),h;ga(a)?h=a:h=[a];z(h,function(a){""==a?c.push(g):c.push(g+"="+Aa(a))})});return c.join(b)}function Ai(a){"?"==a.charAt(0)&&(a=a.substr(1));return yi(a,"&")}
function Bi(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Ai(1<a.length?a[1]:a[0])):{}}var Ci=Td;function Di(a){a=Rd(a);return Pd(a[1],a[2],a[3],a[4])}function Ei(a,b){var c=a.split("#",2);a=c[0];var c=1<c.length?"#"+c[1]:"",d=a.split("?",2);a=d[0];var d=Ai(d[1]||""),e;for(e in b)d[e]=b[e];return ae(a,d)+c};var Fi=null;"undefined"!=typeof XMLHttpRequest?Fi=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(Fi=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Gi(a){switch(a&&"status"in a?a.status:-1){case 0:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};function Hi(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Xe(b)(l)}var l=Fi&&Fi();if(!("open"in l))return null;"onloadend"in l?l.addEventListener("loadend",k,!1):l.onreadystatechange=k;c=(c||"GET").toUpperCase();d=d||"";l.open(c,a,!0);g&&(l.responseType=g);h&&(l.withCredentials=!0);g="POST"==c;if(e=Ii(a,e))for(var p in e)l.setRequestHeader(p,e[p]),"content-type"==p.toLowerCase()&&(g=!1);g&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.send(d);return l}
function Ii(a,b){b=b||{};var c;if(c=We("PAGE_CL")&&We("PAGE_BUILD_TIMESTAMP")){var d;d||(d=window.location.href);c=Rd(a)[1]||null;var e=Ci(a);c&&e?(c=d,d=Rd(a),c=Rd(c),d=d[3]==c[3]&&d[1]==c[1]&&d[4]==c[4]):d=e?Ci(d)==e&&(Number(Rd(d)[4]||null)||null)==(Number(Rd(a)[4]||null)||null):!0;c=d||Ji(a)}c&&(b["X-YouTube-Page-CL"]=We("PAGE_CL"),b["X-YouTube-Page-Timestamp"]=We("PAGE_BUILD_TIMESTAMP"));return b}
function Ji(a){var b=["X-YouTube-Page-CL","X-YouTube-Page-Timestamp"],c=We("CORS_HEADER_WHITELIST")||{};a=Ci(a);if(!a)return!0;var d=c[a];return d?kb(b,function(a){return C(d,a)}):!1}function Ki(a,b){var c=We("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.fF&&(!Ci(a)||Ci(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.fd&&b.fd[c])}
function Li(a,b){var c=b.format||"JSON";b.eF&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=We("XSRF_FIELD_NAME"),e=We("XSRF_TOKEN"),g=b.Ih;g&&(g[d]&&delete g[d],a=Ei(a,g));var h=b.nx||"",g=b.fd;Ki(a,b)&&(g||(g={}),g[d]=e);g&&r(h)&&(d=Ai(h),ec(d,g),h=Zd(d));var k=!1,l,p=Hi(a,function(a){if(!k){k=!0;l&&M(l);var d=Gi(a),e=null;if(d||400<=a.status&&500>a.status)e=Mi(c,a);if(d)t:{switch(c){case "XML":d=0==parseInt(e&&e.return_code,
10);break t;case "RAW":d=!0;break t}d=!!e}var e=e||{},g=b.context||m;d?b.onSuccess&&b.onSuccess.call(g,a,e):b.onError&&b.onError.call(g,a,e);b.ub&&b.ub.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.kh&&0<b.timeout&&(l=L(function(){k||(k=!0,p.abort(),M(l),b.kh.call(b.context||m,p))},b.timeout))}
function Mi(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=tf(d));break;case "XML":if(d=(d=b.responseXML)?Ni(d):null)c={},z(d.getElementsByTagName("*"),function(a){c[a.tagName]=Oi(a)})}return c}function Ni(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Oi(a){var b="";z(a.childNodes,function(a){b+=a.nodeValue});return b}
var Pi={html5_ajax:"action_get_html5_token",watch_actions_ajax:"action_get_watch_actions_token",addto_ajax:"action_get_wl_token",playlist_video_ajax:"action_get_html5_wl_token"},Qi={html5_ajax:"html5_ajax_token",watch_actions_ajax:"watch_actions_ajax_token",addto_ajax:"addto_ajax_token",playlist_video_ajax:"playlist_video_ajax_token"};
function Ri(a,b,c,d){if(We("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=Di(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Pi.watch_actions_ajax]=1;Li(e,{format:"RAW",method:"GET",Ih:g,ub:function(a){var b=Ai(a.responseText);b[Qi.watch_actions_ajax]?c&&c():d&&d(a,b)}})}};function Si(){this.port=this.g="";this.b=!0;var a=document.location.href,b=Number(Rd(a)[4]||null)||null||"";b&&(this.port=":"+b);this.g=Td(a)||"";a=gc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Va(a,"10.0")&&(this.b=!1))}function Ti(a,b,c,d){var e="/api/lounge";if(n(d)?d:a.b)e="https://"+a.g+a.port+"/api/lounge";return ae(e+b,c||{})};function Ui(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}Ui.prototype.id="";Ui.prototype.name="";Ui.prototype.activityId="";Ui.prototype.status="UNKNOWN";function Vi(a){return{id:a.id,name:a.name,activityId:a.activityId,status:a.status}}Ui.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};
function Wi(a){a=a||[];return"["+B(a,function(a){return a?a.toString():"null"}).join(",")+"]"};function Xi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})}function Yi(a){return B(a,function(a){return{key:a.id,name:a.name}})}function Zi(a){return B(a,function(a){return Vi(a)})}function $i(a){return B(a,function(a){return new Ui(a)})}function aj(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0}function bj(a,b){return lb(a,function(a){return a.id==b})}
function cj(a,b){return lb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function dj(a,b){return lb(a,function(a){return a.id==b||a.uuid==b})};function ej(){this.M=new Rh;R(this,this.M)}w(ej,Mh);ej.prototype.subscribe=function(a,b,c){return this.ga()?0:this.M.subscribe(a,b,c)};ej.prototype.ha=function(a,b,c){return this.ga()?!1:this.M.ha(a,b,c)};ej.prototype.Hb=function(a){return this.ga()?!1:this.M.Hb(a)};ej.prototype.H=function(a,b){return this.ga()?!1:this.M.H.apply(this.M,arguments)};function fj(a){ej.call(this);this.j=a;this.g=[]}w(fj,ej);fj.prototype.Xn=function(){return this.g};fj.prototype.contains=function(a){return!!cj(this.g,a)};fj.prototype.get=function(a){return dj(this.g,a)};fj.prototype.info=function(a){Ch(this.j,a)};function gj(a){this.b=a}var hj=/\s*;\s*/;f=gj.prototype;f.set=function(a,b,c,d,e,g){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');n(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";g=g?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(v()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+g};
f.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(hj),e=0,g;g=d[e];e++){if(0==g.lastIndexOf(c,0))return g.substr(c.length);if(g==a)return""}return b};f.remove=function(a,b,c){var d=n(this.get(a));this.set(a,"",0,b,c);return d};f.Ma=function(){return ij(this).keys};f.Qa=function(){return ij(this).os};f.isEmpty=function(){return!this.b.cookie};f.Na=function(){return this.b.cookie?(this.b.cookie||"").split(hj).length:0};
f.kg=function(a){for(var b=ij(this).os,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=ij(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function ij(a){a=(a.b.cookie||"").split(hj);for(var b=[],c=[],d,e,g=0;e=a[g];g++)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,os:c}}var jj=new gj(document);jj.g=3950;function kj(a,b){jj.set(""+a,b,void 0,"/","youtube.com")};function lj(){var a=mj(),b=nj();C(a,b);oj()&&Hb(a,b);a=pj(a);D(a)?jj.remove("remote_sid","/","youtube.com"):kj("remote_sid",a.join(","))}function mj(){var a=ui("yt-remote-connected-devices")||[];Cb(a);return a}function pj(a){if(D(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return B(a,function(a,b){return 0==b?a:a.substring(c.length)})}function qj(a){ri("yt-remote-connected-devices",a,86400)}
function nj(){if(rj)return rj;var a=ui("yt-remote-device-id");a||(a=Xi(),ri("yt-remote-device-id",a,31536E3));for(var b=mj(),c=1,d=a;C(b,d);)c++,d=a+"#"+c;return rj=d}function sj(){return ui("yt-remote-session-browser-channel")}function oj(){return ui("yt-remote-session-screen-id")}
function tj(a){5<a.length&&(a=a.slice(a.length-5));var b=B(uj(),function(a){return a.loungeToken}),c=B(a,function(a){return a.loungeToken});kb(c,function(a){return!C(b,a)})&&ri("yt-remote-lounge-token-expiration",!0,86400);ri("yt-remote-local-screens",a,31536E3)}function uj(){return ui("yt-remote-local-screens")||[]}function wj(){return ui("yt-remote-online-screens")||[]}function xj(a){ri("yt-remote-online-dial-devices",a,30)}function yj(){return ui("yt-remote-online-dial-devices")||[]}
function zj(a){a||vi("yt-remote-session-screen-id");lj();a=mj();rb(a,nj());qj(a)}var rj="";function Aj(){return!!ui("yt-remote-cast-installed")}function Bj(){var a=ui("yt-remote-cast-receiver");return a?a.friendlyName:null}function Cj(){return Aj()?Ej()?Fj.getCastSession():(Dj("getCastSelector: Cast is not initialized."),null):(Dj("getCastSelector: Cast API is not installed!"),null)}
function Gj(){Aj()?Ej()?Hj()?(Ch("cloudview","Requesting cast selector."),Fj.requestSession()):(Ch("cloudview","Wait for cast API to be ready to request the session."),Ij.push(Xh("yt-remote-cast2-api-ready",Gj))):Dj("requestCastSelector: Cast is not initialized."):Dj("requestCastSelector: Cast API is not installed!")}function Jj(a){Hj()?Ej().setLaunchParams(a):Dj("setLaunchParams called before ready.")}var Fj=null;function Ej(){Fj||(Fj=q("yt.mdx.remote.cloudview.instance_"));return Fj}
function Dj(a){Ch("cloudview",a)}function Hj(){return!!q("yt.mdx.remote.cloudview.apiReady_")}var Ij=[];function Kj(a){a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.b=a.user||"")}Kj.prototype.id="";Kj.prototype.name="";Kj.prototype.app="";Kj.prototype.type="REMOTE_CONTROL";Kj.prototype.b="";Kj.prototype.equals=function(a){return a?this.id==a.id:!1};function Lj(a,b){this.action=a;this.params=b||null};function Mj(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Nj(a){Ch("CAST",a)}function zh(a){var b=Oj();b&&b.logMessage&&b.logMessage(a)}function Pj(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Qj.length;)Qj.shift()()}
function Rj(){if(!q("yt.mdx.remote.castv2_")&&!Sj&&(D(Tj)&&wb(Tj,yj()),Mj())){var a=Oj();a?(a.removeReceiverListener("YouTube",Uj),a.addReceiverListener("YouTube",Uj),Nj("API initialized in the other binary")):(a=new cast.Api,Vj(a),a.addReceiverListener("YouTube",Uj),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){L(function(){window.location.reload(!0)},1E3)}),yh(),Nj("API initialized"));Sj=!0}}
function Wj(){var a=Oj();if(a){Nj("API disposed");var b=q("yt.mdx.remote.debug.handlers_");rb(b||[],zh);a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(ca);a.removeReceiverListener("YouTube",Uj);Vj(null)}Sj=!1;Qj=null;Wg(window,"message",Pj)}function Xj(a){var b=mb(Tj,function(b){return b.id==a.id});0<=b&&(Tj[b]=Vi(a))}
function Uj(a){a.length&&Nj("Updating receivers: "+uf(a));Yj(a);$h("yt-remote-cast-device-list-update");z(Zj(),function(a){ak(a.id)});z(a,function(a){if(a.isTabProjected){var c=bk(a.id);Nj("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");L(function(){$h("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function ck(a,b){Nj("Updating "+a+" activity status: "+uf(b));var c=bk(a);c?(b.activityId&&(c.activityId=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.activityId=""),Xj(c),$h("yt-remote-cast-device-status-update",c)):Nj("Device not found")}function Zj(){Rj();return $i(Tj)}
function Yj(a){a=B(a,function(a){var c={id:a.id,name:Ka(a.name)};if(a=bk(a.id))c.activityId=a.activityId,c.status=a.status;return c});pb(Tj);wb(Tj,a)}function bk(a){var b=Zj();return lb(b,function(b){return b.id==a})||null}function ak(a){var b=bk(a),c=Oj();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");ck(a,b)})}
function dk(a){Rj();var b=bk(a),c=Oj();c&&b&&b.activityId?(Nj("Stopping cast activity"),c.stopActivity(b.activityId,qa(ck,a))):Nj("Dropping cast activity stop")}function Oj(){return q("yt.mdx.remote.castapi.api_")}function Vj(a){ba("yt.mdx.remote.castapi.api_",a,void 0)}var Sj=!1,Qj=null,Tj=q("yt.mdx.remote.castapi.devices_")||[];ba("yt.mdx.remote.castapi.devices_",Tj,void 0);function ek(a){this.b=new Fd;if(a){a=Ld(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}}function fk(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+la(a):b.substr(0,1)+a}f=ek.prototype;f.Na=function(){return this.b.Na()};f.add=function(a){this.b.set(fk(a),a)};f.removeAll=function(a){a=Ld(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.b.remove(fk(a))};f.clear=function(){this.b.clear()};f.isEmpty=function(){return this.b.isEmpty()};
f.contains=function(a){return Hd(this.b,fk(a))};f.Qa=function(){return this.b.Qa()};f.clone=function(){return new ek(this)};f.equals=function(a){return this.Na()==Kd(a)&&gk(this,a)};function gk(a,b){var c=Kd(b);if(a.Na()>c)return!1;!(b instanceof ek)&&5<c&&(b=new ek(b));return Od(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.kg?c.kg(a):ha(c)||r(c)?C(c,a):Vb(c,a)})}f.Vb=function(){return this.b.Vb(!1)};function hk(){};function ik(){this.b=v()}new ik;ik.prototype.set=function(a){this.b=a};ik.prototype.reset=function(){this.set(v())};ik.prototype.get=function(){return this.b};function S(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.g=!1;this.Pr=!0}S.prototype.J=function(){};S.prototype.dispose=function(){};S.prototype.stopPropagation=function(){this.g=!0};S.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Pr=!1};function jk(a){a.stopPropagation()};var kk=!rc||Dc(9),lk=rc&&!Cc("9");!tc||Cc("528");sc&&Cc("1.9b")||rc&&Cc("8")||qc&&Cc("9.5")||tc&&Cc("528");sc&&!Cc("8")||rc&&Cc("9");var mk="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function nk(a,b){S.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.b=this.state=null;a&&this.init(a,b)}w(nk,S);f=nk.prototype;
f.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(sc){var e;t:{try{Gf(d.nodeName);e=!0;break t}catch(g){}e=!1}e||(d=null)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.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.state=a.state;this.b=a;a.defaultPrevented&&this.preventDefault()};f.stopPropagation=function(){nk.G.stopPropagation.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0};
f.preventDefault=function(){nk.G.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,lk)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};f.uC=function(){return this.b};f.J=function(){};var ok="closure_listenable_"+(1E6*Math.random()|0);function pk(a){return!(!a||!a[ok])}var qk=0;function rk(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.Tf=!!d;this.Qc=e;this.key=++qk;this.removed=this.wj=!1}function sk(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Qc=null};function tk(a){this.src=a;this.b={};this.g=0}tk.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.b[g];a||(a=this.b[g]=[],this.g++);var h=uk(a,b,d,e);-1<h?(b=a[h],c||(b.wj=!1)):(b=new rk(b,this.src,g,!!d,e),b.wj=c,a.push(b));return b};tk.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.b))return!1;var e=this.b[a];b=uk(e,b,c,d);return-1<b?(sk(e[b]),sb(e,b),0==e.length&&(delete this.b[a],this.g--),!0):!1};
function vk(a,b){var c=b.type;if(!(c in a.b))return!1;var d=rb(a.b[c],b);d&&(sk(b),0==a.b[c].length&&(delete a.b[c],a.g--));return d}tk.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.b)if(!a||c==a){for(var d=this.b[c],e=0;e<d.length;e++)++b,sk(d[e]);delete this.b[c];this.g--}return b};function wk(a,b,c,d,e){a=a.b[b.toString()];b=-1;a&&(b=uk(a,c,d,e));return-1<b?a[b]:null}
function uk(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.Tf==!!c&&g.Qc==d)return e}return-1};var xk="closure_lm_"+(1E6*Math.random()|0),yk={},zk=0;function Ak(a,b,c,d,e){if(ga(b)){for(var g=0;g<b.length;g++)Ak(a,b[g],c,d,e);return null}c=Bk(c);return pk(a)?a.listen(b,c,d,e):Ck(a,b,c,!1,d,e)}function Ck(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=Dk(a);k||(a[xk]=k=new tk(a));c=k.add(b,c,d,e,g);if(c.proxy)return c;d=Ek();c.proxy=d;d.src=a;d.listener=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(Fk(b.toString()),d);zk++;return c}
function Ek(){var a=Gk,b=kk?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b}function Hk(a,b,c,d,e){if(ga(b)){for(var g=0;g<b.length;g++)Hk(a,b[g],c,d,e);return null}c=Bk(c);return pk(a)?a.Ed.add(String(b),c,!0,d,e):Ck(a,b,c,!0,d,e)}function Ik(a,b,c,d,e){if(ga(b))for(var g=0;g<b.length;g++)Ik(a,b[g],c,d,e);else c=Bk(c),pk(a)?a.Fa(b,c,d,e):a&&(a=Dk(a))&&(b=wk(a,b,c,!!d,e))&&Jk(b)}
function Jk(a){if(ia(a)||!a||a.removed)return!1;var b=a.src;if(pk(b))return vk(b.Ed,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.Tf):b.detachEvent&&b.detachEvent(Fk(c),d);zk--;(c=Dk(b))?(vk(c,a),0==c.g&&(c.src=null,b[xk]=null)):sk(a);return!0}function Fk(a){return a in yk?yk[a]:yk[a]="on"+a}function Kk(a,b,c,d){var e=1;if(a=Dk(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.Tf==c&&!g.removed&&(e&=!1!==Lk(g,d))}return Boolean(e)}
function Lk(a,b){var c=a.listener,d=a.Qc||a.src;a.wj&&Jk(a);return c.call(d,b)}
function Gk(a,b){if(a.removed)return!0;if(!kk){var c=b||q("window.event"),d=new nk(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){t:{var g=!1;if(0==c.keyCode)try{c.keyCode=-1;break t}catch(h){g=!0}if(g||void 0==c.returnValue)c.returnValue=!0}c=[];for(g=d.currentTarget;g;g=g.parentNode)c.push(g);for(var g=a.type,k=c.length-1;!d.g&&0<=k;k--)d.currentTarget=c[k],e&=Kk(c[k],g,!0,d);for(k=0;!d.g&&k<c.length;k++)d.currentTarget=c[k],e&=Kk(c[k],g,!1,d)}return e}return Lk(a,new nk(b,this))}
function Dk(a){a=a[xk];return a instanceof tk?a:null}var Mk="__closure_events_fn_"+(1E9*Math.random()>>>0);function Bk(a){if(ja(a))return a;a[Mk]||(a[Mk]=function(b){return a.handleEvent(b)});return a[Mk]};function T(){this.Ed=new tk(this);this.la=this;this.V=null}w(T,Mh);T.prototype[ok]=!0;f=T.prototype;f.gi=function(a){this.V=a};f.addEventListener=function(a,b,c,d){Ak(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Ik(this,a,b,c,d)};
f.S=function(a){var b,c=this.V;if(c){b=[];for(var d=1;c;c=c.V)b.push(c),++d}c=this.la;d=a.type||a;if(r(a))a=new S(a,c);else if(a instanceof S)a.target=a.target||c;else{var e=a;a=new S(d,c);ec(a,e)}var e=!0,g;if(b)for(var h=b.length-1;!a.g&&0<=h;h--)g=a.currentTarget=b[h],e=Nk(g,d,!0,a)&&e;a.g||(g=a.currentTarget=c,e=Nk(g,d,!0,a)&&e,a.g||(e=Nk(g,d,!1,a)&&e));if(b)for(h=0;!a.g&&h<b.length;h++)g=a.currentTarget=b[h],e=Nk(g,d,!1,a)&&e;return e};
f.J=function(){T.G.J.call(this);this.removeAllListeners();this.V=null};f.listen=function(a,b,c,d){return this.Ed.add(String(a),b,!1,c,d)};f.Fa=function(a,b,c,d){return this.Ed.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.Ed?this.Ed.removeAll(a):0};
function Nk(a,b,c,d){b=a.Ed.b[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,g=0;g<b.length;++g){var h=b[g];if(h&&!h.removed&&h.Tf==c){var k=h.listener,l=h.Qc||h.src;h.wj&&vk(a.Ed,h);e=!1!==k.call(l,d)&&e}}return e&&!1!=d.Pr};function Ok(a,b){this.g=new wf(a);this.b=b?tf:sf}Ok.prototype.stringify=function(a){return vf(this.g,a)};Ok.prototype.parse=function(a){return this.b(a)};function Pk(a){this.g=0;this.j=a||100;this.b=[]}f=Pk.prototype;f.add=function(a){var b=this.b[this.g];this.b[this.g]=a;this.g=(this.g+1)%this.j;return b};f.get=function(a){a=Qk(this,a);return this.b[a]};f.set=function(a,b){a=Qk(this,a);this.b[a]=b};f.Na=function(){return this.b.length};f.isEmpty=function(){return 0==this.b.length};f.clear=function(){this.g=this.b.length=0};f.Qa=function(){for(var a=this.Na(),b=this.Na(),c=[],a=this.Na()-a;a<b;a++)c.push(this.get(a));return c};
f.Ma=function(){for(var a=[],b=this.Na(),c=0;c<b;c++)a[c]=c;return a};f.kg=function(a){for(var b=this.Na(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function Qk(a,b){if(b>=a.b.length)throw Error("Out of bounds exception");return a.b.length<a.j?b:(a.g+Number(b))%a.j};function Rk(a,b){T.call(this);this.b=a||1;this.g=b||m;this.j=u(this.cz,this);this.k=v()}w(Rk,T);f=Rk.prototype;f.ed=!1;f.uc=null;function Sk(a,b){a.b=b;a.uc&&a.ed?(a.stop(),a.start()):a.uc&&a.stop()}f.cz=function(){if(this.ed){var a=v()-this.k;0<a&&a<.8*this.b?this.uc=this.g.setTimeout(this.j,this.b-a):(this.uc&&(this.g.clearTimeout(this.uc),this.uc=null),this.S("tick"),this.ed&&(this.uc=this.g.setTimeout(this.j,this.b),this.k=v()))}};
f.start=function(){this.ed=!0;this.uc||(this.uc=this.g.setTimeout(this.j,this.b),this.k=v())};f.stop=function(){this.ed=!1;this.uc&&(this.g.clearTimeout(this.uc),this.uc=null)};f.J=function(){Rk.G.J.call(this);this.stop();delete this.g};function Tk(a,b,c){if(ja(a))c&&(a=u(a,c));else if(a&&"function"==typeof a.handleEvent)a=u(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)}function Uk(a){m.clearTimeout(a)};function Vk(a,b,c){this.k=a;this.j=b;this.g=c;this.b=u(this.ez,this)}w(Vk,Mh);f=Vk.prototype;f.mg=!1;f.Nh=0;f.Ve=null;function Wk(a){a.Ve||a.Nh?a.mg=!0:Xk(a)}f.stop=function(){this.Ve&&(Uk(this.Ve),this.Ve=null,this.mg=!1)};f.pause=function(){this.Nh++};f.resume=function(){this.Nh--;this.Nh||!this.mg||this.Ve||(this.mg=!1,Xk(this))};f.J=function(){Vk.G.J.call(this);this.stop()};f.ez=function(){this.Ve=null;this.mg&&!this.Nh&&(this.mg=!1,Xk(this))};function Xk(a){a.Ve=Tk(a.b,a.j);a.k.call(a.g)};function Yk(a){this.j=a;this.g={}}w(Yk,Mh);var Zk=[];f=Yk.prototype;f.listen=function(a,b,c,d){return $k(this,a,b,c,d)};function al(a,b,c,d,e){$k(a,b,c,d,!1,e)}function $k(a,b,c,d,e,g){ga(c)||(c&&(Zk[0]=c.toString()),c=Zk);for(var h=0;h<c.length;h++){var k=Ak(b,c[h],d||a.handleEvent,e||!1,g||a.j||a);if(!k)break;a.g[k.key]=k}return a}function bl(a,b,c,d){cl(a,b,c,d,void 0)}function dl(a,b,c,d,e){cl(a,b,c,d,!1,e)}
function cl(a,b,c,d,e,g){if(ga(c))for(var h=0;h<c.length;h++)cl(a,b,c[h],d,e,g);else(b=Hk(b,c,d||a.handleEvent,e,g||a.j||a))&&(a.g[b.key]=b)}f.Fa=function(a,b,c,d,e){if(ga(b))for(var g=0;g<b.length;g++)this.Fa(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.j||this,c=Bk(c),d=!!d,b=pk(a)?wk(a.Ed,String(b),c,d,e):a?(a=Dk(a))?wk(a,b,c,d,e):null:null,b&&(Jk(b),delete this.g[b.key]);return this};f.removeAll=function(){Ob(this.g,Jk);this.g={}};f.J=function(){Yk.G.J.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function el(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};function fl(){}fl.prototype.b=null;function gl(a){var b;(b=a.b)||(b={},hl(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};var il;function jl(){}w(jl,fl);function kl(a){return(a=hl(a))?new ActiveXObject(a):new XMLHttpRequest}function hl(a){if(!a.g&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.g=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.g}il=new jl;function ll(a,b,c,d,e){this.b=a;this.j=c;this.B=d;this.A=e||1;this.kb=45E3;this.k=new Yk(this);this.g=new Rk;Sk(this.g,250)}f=ll.prototype;f.Je=null;f.Oc=!1;f.gg=null;f.An=null;f.qh=null;f.Xf=null;f.he=null;f.le=null;f.Ie=null;f.ib=null;f.Ch=0;f.Pc=null;f.Aj=null;f.Re=null;f.Vg=-1;f.Ar=!0;f.We=!1;f.Rm=0;f.gj=null;var ml={},nl={};f=ll.prototype;f.setTimeout=function(a){this.kb=a};function ol(a,b,c){a.Xf=1;a.he=Be(b.clone());a.Ie=c;a.o=!0;pl(a,null)}
function ql(a,b,c,d,e){a.Xf=1;a.he=Be(b.clone());a.Ie=null;a.o=c;e&&(a.Ar=!1);pl(a,d)}function pl(a,b){a.qh=v();rl(a);a.le=a.he.clone();ye(a.le,"t",a.A);a.Ch=0;a.ib=a.b.hn(a.b.oh()?b:null);0<a.Rm&&(a.gj=new Vk(u(a.Ur,a,a.ib),a.Rm));a.k.listen(a.ib,"readystatechange",a.yB);var c=a.Je?bc(a.Je):{};a.Ie?(a.Aj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.ib.send(a.le,a.Aj,a.Ie,c)):(a.Aj="GET",a.Ar&&!tc&&(c.Connection="close"),a.ib.send(a.le,a.Aj,null,c));a.b.Nc(1)}
f.yB=function(a){a=a.target;var b=this.gj;b&&3==sl(a)?Wk(b):this.Ur(a)};
f.Ur=function(a){try{if(a==this.ib)t:{var b=sl(this.ib),c=this.ib.g,d=this.ib.getStatus();if(rc&&!Dc(10)||tc&&!Cc("420+")){if(4>b)break t}else if(3>b||3==b&&!qc&&!tl(this.ib))break t;this.We||4!=b||7==c||(8==c||0>=d?this.b.Nc(3):this.b.Nc(2));ul(this);var e=this.ib.getStatus();this.Vg=e;var g=tl(this.ib);(this.Oc=200==e)?(4==b&&vl(this),this.o?(wl(this,b,g),qc&&this.Oc&&3==b&&(this.k.listen(this.g,"tick",this.oz),this.g.start())):xl(this,g),this.Oc&&!this.We&&(4==b?this.b.fj(this):(this.Oc=!1,rl(this)))):
(this.Re=400==e&&0<g.indexOf("Unknown SID")?3:0,yl(),vl(this),zl(this))}}catch(h){this.ib&&tl(this.ib)}finally{}};function wl(a,b,c){for(var d=!0;!a.We&&a.Ch<c.length;){var e=Al(a,c);if(e==nl){4==b&&(a.Re=4,yl(),d=!1);break}else if(e==ml){a.Re=4;yl();d=!1;break}else xl(a,e)}4==b&&0==c.length&&(a.Re=1,yl(),d=!1);a.Oc=a.Oc&&d;d||(vl(a),zl(a))}f.oz=function(){var a=sl(this.ib),b=tl(this.ib);this.Ch<b.length&&(ul(this),wl(this,a,b),this.Oc&&4!=a&&rl(this))};
function Al(a,b){var c=a.Ch,d=b.indexOf("\n",c);if(-1==d)return nl;c=Number(b.substring(c,d));if(isNaN(c))return ml;d+=1;if(d+c>b.length)return nl;var e=b.substr(d,c);a.Ch=d+c;return e}
function Bl(a,b){a.qh=v();rl(a);var c=b?window.location.hostname:"";a.le=a.he.clone();K(a.le,"DOMAIN",c);K(a.le,"t",a.A);try{a.Pc=new ActiveXObject("htmlfile")}catch(d){vl(a);a.Re=7;yl();zl(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.Pc.open();a.Pc.write(e);a.Pc.close();a.Pc.parentWindow.m=u(a.PB,a);a.Pc.parentWindow.d=u(a.Zr,a,!0);a.Pc.parentWindow.rpcClose=u(a.Zr,a,!1);c=a.Pc.createElement("div");a.Pc.parentWindow.document.body.appendChild(c);
c.innerHTML='<iframe src="'+a.le+'"></iframe>';a.b.Nc(1)}f.PB=function(a){Cl(u(this.TE,this,a),0)};f.TE=function(a){this.We||(ul(this),xl(this,a),rl(this))};f.Zr=function(a){Cl(u(this.SE,this,a),0)};f.SE=function(a){this.We||(vl(this),this.Oc=a,this.b.fj(this),this.b.Nc(4))};f.cancel=function(){this.We=!0;vl(this)};function rl(a){a.An=v()+a.kb;Dl(a,a.kb)}function Dl(a,b){if(null!=a.gg)throw Error("WatchDog timer not null");a.gg=Cl(u(a.pE,a),b)}
function ul(a){a.gg&&(m.clearTimeout(a.gg),a.gg=null)}f.pE=function(){this.gg=null;var a=v();0<=a-this.An?(2!=this.Xf&&this.b.Nc(3),vl(this),this.Re=2,yl(),zl(this)):Dl(this,this.An-a)};function zl(a){a.b.ds()||a.We||a.b.fj(a)}function vl(a){ul(a);Oh(a.gj);a.gj=null;a.g.stop();a.k.removeAll();if(a.ib){var b=a.ib;a.ib=null;El(b);b.dispose()}a.Pc&&(a.Pc=null)}function xl(a,b){try{a.b.hs(a,b),a.b.Nc(4)}catch(c){}};function Fl(a,b,c,d,e){if(0==d)c(!1);else{var g=e||0;d--;Gl(a,b,function(e){e?c(!0):m.setTimeout(function(){Fl(a,b,c,d,g)},g)})}}function Gl(a,b,c){var d=new Image;d.onload=function(){try{Hl(d),c(!0)}catch(a){}};d.onerror=function(){try{Hl(d),c(!1)}catch(a){}};d.onabort=function(){try{Hl(d),c(!1)}catch(a){}};d.ontimeout=function(){try{Hl(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function Hl(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function Il(a){this.b=a;this.g=new Ok(null,!0)}f=Il.prototype;f.Em=null;f.Yb=null;f.vj=!1;f.sr=null;f.uj=null;f.Zm=null;f.un=null;f.wc=null;f.Id=-1;f.sh=null;f.yh=null;f.connect=function(a){this.un=a;a=Jl(this.b,null,this.un);yl();this.sr=v();var b=this.b.C;null!=b?(this.sh=b[0],(this.yh=b[1])?(this.wc=1,Kl(this)):(this.wc=2,Ll(this))):(ye(a,"MODE","init"),this.Yb=new ll(this,0,void 0,void 0,void 0),this.Yb.Je=this.Em,ql(this.Yb,a,!1,null,!0),this.wc=0)};
function Kl(a){var b=Jl(a.b,a.yh,"/mail/images/cleardot.gif");Be(b);Fl(b.toString(),5E3,u(a.aC,a),3,2E3);a.Nc(1)}f.aC=function(a){if(a)this.wc=2,Ll(this);else{yl();var b=this.b;b.Kc=b.je.Id;Ml(b,9)}a&&this.Nc(2)};
function Ll(a){var b=a.b.D;if(null!=b)yl(),b?(yl(),Nl(a.b,a,!1)):(yl(),Nl(a.b,a,!0));else if(a.Yb=new ll(a,0,void 0,void 0,void 0),a.Yb.Je=a.Em,b=a.b,b=Jl(b,b.oh()?a.sh:null,a.un),yl(),!rc||Dc(10))ye(b,"TYPE","xmlhttp"),ql(a.Yb,b,!1,a.sh,!1);else{ye(b,"TYPE","html");var c=a.Yb;a=Boolean(a.sh);c.Xf=3;c.he=Be(b.clone());Bl(c,a)}}f.hn=function(a){return this.b.hn(a)};f.ds=function(){return!1};
f.hs=function(a,b){this.Id=a.Vg;if(0==this.wc)if(b){try{var c=this.g.parse(b)}catch(d){c=this.b;c.Kc=this.Id;Ml(c,2);return}this.sh=c[0];this.yh=c[1]}else c=this.b,c.Kc=this.Id,Ml(c,2);else if(2==this.wc)if(this.vj)yl(),this.Zm=v();else if("11111"==b){if(yl(),this.vj=!0,this.uj=v(),c=this.uj-this.sr,!rc||Dc(10)||500>c)this.Id=200,this.Yb.cancel(),yl(),Nl(this.b,this,!0)}else yl(),this.uj=this.Zm=v(),this.vj=!1};
f.fj=function(){this.Id=this.Yb.Vg;if(this.Yb.Oc)0==this.wc?this.yh?(this.wc=1,Kl(this)):(this.wc=2,Ll(this)):2==this.wc&&(a=!1,(a=!rc||Dc(10)?this.vj:200>this.Zm-this.uj?!1:!0)?(yl(),Nl(this.b,this,!0)):(yl(),Nl(this.b,this,!1)));else{0==this.wc?yl():2==this.wc&&yl();var a=this.b;a.Kc=this.Id;Ml(a,2)}};f.oh=function(){return this.b.oh()};f.Nc=function(a){this.b.Nc(a)};function Ol(a){T.call(this);this.headers=new Fd;this.M=a||null;this.j=!1;this.I=this.b=null;this.P=this.C="";this.g=0;this.A="";this.k=this.N=this.B=this.L=!1;this.o=0;this.D=null;this.T="";this.F=this.O=!1}w(Ol,T);var Pl=/^https?$/i,Ql=["POST","PUT"];function Rl(a,b){a.o=Math.max(0,b)}f=Ol.prototype;
f.send=function(a,b,c,d){if(this.b)throw Error("[goog.net.XhrIo] Object is active with another request="+this.C+"; newUri="+a);b=b?b.toUpperCase():"GET";this.C=a;this.A="";this.g=0;this.P=b;this.L=!1;this.j=!0;this.b=this.M?kl(this.M):kl(il);this.I=this.M?gl(this.M):gl(il);this.b.onreadystatechange=u(this.Oo,this);try{hk(Sl(this,"Opening Xhr")),this.N=!0,this.b.open(b,String(a),!0),this.N=!1}catch(e){hk(Sl(this,"Error opening Xhr: "+e.message));Tl(this,e);return}a=c||"";var g=this.headers.clone();
d&&Nd(d,function(a,b){g.set(b,a)});d=lb(g.Ma(),Ul);c=m.FormData&&a instanceof m.FormData;!C(Ql,b)||d||c||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");g.forEach(function(a,b){this.b.setRequestHeader(b,a)},this);this.T&&(this.b.responseType=this.T);"withCredentials"in this.b&&(this.b.withCredentials=this.O);try{Vl(this),0<this.o&&(this.F=Wl(this.b),hk(Sl(this,"Will abort after "+this.o+"ms if incomplete, xhr2 "+this.F)),this.F?(this.b.timeout=this.o,this.b.ontimeout=u(this.kb,
this)):this.D=Tk(this.kb,this.o,this)),hk(Sl(this,"Sending request")),this.B=!0,this.b.send(a),this.B=!1}catch(h){hk(Sl(this,"Send error: "+h.message)),Tl(this,h)}};function Wl(a){return rc&&Cc(9)&&ia(a.timeout)&&n(a.ontimeout)}function Ul(a){return"content-type"==a.toLowerCase()}f.kb=function(){"undefined"!=typeof aa&&this.b&&(this.A="Timed out after "+this.o+"ms, aborting",this.g=8,Sl(this,this.A),this.S("timeout"),El(this,8))};
function Tl(a,b){a.j=!1;a.b&&(a.k=!0,a.b.abort(),a.k=!1);a.A=b;a.g=5;Xl(a);Yl(a)}function Xl(a){a.L||(a.L=!0,a.S("complete"),a.S("error"))}function El(a,b){a.b&&a.j&&(Sl(a,"Aborting"),a.j=!1,a.k=!0,a.b.abort(),a.k=!1,a.g=b||7,a.S("complete"),a.S("abort"),Yl(a))}f.J=function(){this.b&&(this.j&&(this.j=!1,this.k=!0,this.b.abort(),this.k=!1),Yl(this,!0));Ol.G.J.call(this)};f.Oo=function(){this.ga()||(this.N||this.B||this.k?Zl(this):this.MC())};f.MC=function(){Zl(this)};
function Zl(a){if(a.j&&"undefined"!=typeof aa)if(a.I[1]&&4==sl(a)&&2==a.getStatus())Sl(a,"Local request error detected and ignored");else if(a.B&&4==sl(a))Tk(a.Oo,0,a);else if(a.S("readystatechange"),4==sl(a)){Sl(a,"Request complete");a.j=!1;try{var b=a.getStatus(),c,d;t:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:d=!0;break t;default:d=!1}if(!(c=d)){var e;if(e=0===b){var g=Rd(String(a.C))[1]||null;if(!g&&self.location)var h=self.location.protocol,g=h.substr(0,h.length-
1);e=!Pl.test(g?g.toLowerCase():"")}c=e}if(c)a.S("complete"),a.S("success");else{a.g=6;var k;try{k=2<sl(a)?a.b.statusText:""}catch(l){k=""}a.A=k+" ["+a.getStatus()+"]";Xl(a)}}finally{Yl(a)}}}function Yl(a,b){if(a.b){Vl(a);var c=a.b,d=a.I[0]?ca:null;a.b=null;a.I=null;b||a.S("ready");try{c.onreadystatechange=d}catch(e){}}}function Vl(a){a.b&&a.F&&(a.b.ontimeout=null);ia(a.D)&&(Uk(a.D),a.D=null)}function sl(a){return a.b?a.b.readyState:0}f.getStatus=function(){try{return 2<sl(this)?this.b.status:-1}catch(a){return-1}};
function tl(a){try{return a.b?a.b.responseText:""}catch(b){return""}}function Sl(a,b){return b+" ["+a.P+" "+a.C+" "+a.getStatus()+"]"};function $l(a,b,c){this.B=a||null;this.b=1;this.g=[];this.k=[];this.o=new Ok(null,!0);this.C=b||null;this.D=null!=c?c:null}function am(a,b){this.b=a;this.map=b;this.context=null}f=$l.prototype;f.Kh=null;f.Gb=null;f.bb=null;f.vm=null;f.Yi=null;f.lr=null;f.oj=null;f.$g=0;f.wB=0;f.Db=null;f.ne=null;f.Hd=null;f.Ze=null;f.je=null;f.Si=null;f.Ff=-1;f.Lr=-1;f.Kc=-1;f.Yg=0;f.$f=0;f.Ne=8;var bm=new T;function cm(a){S.call(this,"statevent",a)}w(cm,S);
function dm(a,b){S.call(this,"timingevent",a);this.size=b}w(dm,S);function em(a){S.call(this,"serverreachability",a)}w(em,S);f=$l.prototype;f.connect=function(a,b,c,d,e){yl();this.vm=b;this.Kh=c||{};d&&n(e)&&(this.Kh.OSID=d,this.Kh.OAID=e);this.je=new Il(this);this.je.Em=null;this.je.g=this.o;this.je.connect(a)};
f.disconnect=function(){fm(this);if(3==this.b){var a=this.$g++,b=this.Yi.clone();K(b,"SID",this.j);K(b,"RID",a);K(b,"TYPE","terminate");gm(this,b);a=new ll(this,0,this.j,a,void 0);a.Xf=2;a.he=Be(b.clone());(new Image).src=a.he;a.qh=v();rl(a)}hm(this)};function fm(a){if(a.je){var b=a.je;b.Yb&&(b.Yb.cancel(),b.Yb=null);b.Id=-1;a.je=null}a.bb&&(a.bb.cancel(),a.bb=null);a.Hd&&(m.clearTimeout(a.Hd),a.Hd=null);im(a);a.Gb&&(a.Gb.cancel(),a.Gb=null);a.ne&&(m.clearTimeout(a.ne),a.ne=null)}
function jm(a,b){if(0==a.b)throw Error("Invalid operation: sending map when state is closed");a.g.push(new am(a.wB++,b));2!=a.b&&3!=a.b||km(a)}f.ds=function(){return 0==this.b};function km(a){a.Gb||a.ne||(a.ne=Cl(u(a.Yr,a),0),a.Yg=0)}f.Yr=function(a){this.ne=null;lm(this,a)};
function lm(a,b){if(1==a.b){if(!b){a.$g=Math.floor(1E5*Math.random());var c=a.$g++,d=new ll(a,0,"",c,void 0);d.Je=null;var e=mm(a),g=a.Yi.clone();K(g,"RID",c);a.B&&K(g,"CVER",a.B);gm(a,g);ol(d,g,e);a.Gb=d;a.b=2}}else 3==a.b&&(b?nm(a,b):0!=a.g.length&&(a.Gb||nm(a)))}
function nm(a,b){var c,d;b?6<a.Ne?(a.g=a.k.concat(a.g),a.k.length=0,c=a.$g-1,d=mm(a)):(c=b.B,d=b.Ie):(c=a.$g++,d=mm(a));var e=a.Yi.clone();K(e,"SID",a.j);K(e,"RID",c);K(e,"AID",a.Ff);gm(a,e);c=new ll(a,0,a.j,c,a.Yg+1);c.Je=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Gb=c;ol(c,e,d)}function gm(a,b){if(a.Db){var c=a.Db.zt(a);c&&Ob(c,function(a,c){K(b,c,a)})}}
function mm(a){var b=Math.min(a.g.length,1E3),c=["count="+b],d;6<a.Ne&&0<b?(d=a.g[0].b,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var g=a.g[e].b,h=a.g[e].map,g=6>=a.Ne?e:g-d;try{Nd(h,function(a,b){c.push("req"+g+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+g+"_type="+encodeURIComponent("_badmap"))}}a.k=a.k.concat(a.g.splice(0,b));return c.join("&")}function om(a){a.bb||a.Hd||(a.A=1,a.Hd=Cl(u(a.Us,a),0),a.$f=0)}
function pm(a){if(a.bb||a.Hd||3<=a.$f)return!1;a.A++;a.Hd=Cl(u(a.Us,a),qm(a,a.$f));a.$f++;return!0}f.Us=function(){this.Hd=null;this.bb=new ll(this,0,this.j,"rpc",this.A);this.bb.Je=null;this.bb.Rm=0;var a=this.lr.clone();K(a,"RID","rpc");K(a,"SID",this.j);K(a,"CI",this.Si?"0":"1");K(a,"AID",this.Ff);gm(this,a);if(!rc||Dc(10))K(a,"TYPE","xmlhttp"),ql(this.bb,a,!0,this.oj,!1);else{K(a,"TYPE","html");var b=this.bb,c=Boolean(this.oj);b.Xf=3;b.he=Be(a.clone());Bl(b,c)}};
function Nl(a,b,c){a.Si=c;a.Kc=b.Id;a.TD(1,0);a.Yi=Jl(a,null,a.vm);km(a)}
f.hs=function(a,b){if(0!=this.b&&(this.bb==a||this.Gb==a))if(this.Kc=a.Vg,this.Gb==a&&3==this.b)if(7<this.Ne){var c;try{c=this.o.parse(b)}catch(d){c=null}if(ga(c)&&3==c.length)if(0==c[0])t:{if(!this.Hd){if(this.bb)if(this.bb.qh+3E3<this.Gb.qh)im(this),this.bb.cancel(),this.bb=null;else break t;pm(this);yl()}}else this.Lr=c[1],0<this.Lr-this.Ff&&37500>c[2]&&this.Si&&0==this.$f&&!this.Ze&&(this.Ze=Cl(u(this.FA,this),6E3));else Ml(this,11)}else"y2f%"!=b&&Ml(this,11);else if(this.bb==a&&im(this),!xa(b)){c=
this.o.parse(b);ga(c);for(var e=0;e<c.length;e++){var g=c[e];this.Ff=g[0];g=g[1];2==this.b?"c"==g[0]?(this.j=g[1],this.oj=g[2],g=g[3],null!=g?this.Ne=g:this.Ne=6,this.b=3,this.Db&&this.Db.Kr(this),this.lr=Jl(this,this.oh()?this.oj:null,this.vm),om(this)):"stop"==g[0]&&Ml(this,7):3==this.b&&("stop"==g[0]?Ml(this,7):"noop"!=g[0]&&this.Db&&this.Db.Jr(this,g),this.$f=0)}}};f.FA=function(){null!=this.Ze&&(this.Ze=null,this.bb.cancel(),this.bb=null,pm(this),yl())};
function im(a){null!=a.Ze&&(m.clearTimeout(a.Ze),a.Ze=null)}
f.fj=function(a){var b;if(this.bb==a)im(this),this.bb=null,b=2;else if(this.Gb==a)this.Gb=null,b=1;else return;this.Kc=a.Vg;if(0!=this.b)if(a.Oc)1==b?(v(),bm.S(new dm(bm,a.Ie?a.Ie.length:0)),km(this),this.k.length=0):om(this);else{var c=a.Re,d;if(!(d=3==c||7==c||0==c&&0<this.Kc)){if(d=1==b)this.Gb||this.ne||1==this.b||2<=this.Yg?d=!1:(this.ne=Cl(u(this.Yr,this,a),qm(this,this.Yg)),this.Yg++,d=!0);d=!(d||2==b&&pm(this))}if(d)switch(c){case 1:Ml(this,5);break;case 4:Ml(this,10);break;case 3:Ml(this,
6);break;case 7:Ml(this,12);break;default:Ml(this,2)}}};function qm(a,b){var c=5E3+Math.floor(1E4*Math.random());a.Db||(c*=2);return c*b}f.TD=function(a){if(!C(arguments,this.b))throw Error("Unexpected channel state: "+this.b);};function Ml(a,b){if(2==b||9==b){var c=null;a.Db&&(c=null);var d=u(a.bE,a);c||(c=new J("//www.google.com/images/cleardot.gif"),Be(c));Gl(c.toString(),1E4,d)}else yl();rm(a,b)}f.bE=function(a){a?yl():(yl(),rm(this,8))};function rm(a,b){a.b=0;a.Db&&a.Db.cs(a,b);hm(a);fm(a)}
function hm(a){a.b=0;a.Kc=-1;if(a.Db)if(0==a.k.length&&0==a.g.length)a.Db.Qm(a);else{var b=vb(a.k),c=vb(a.g);a.k.length=0;a.g.length=0;a.Db.Qm(a,b,c)}}function Jl(a,b,c){var d=Ce(c);if(""!=d.Cb)b&&ge(d,b+"."+d.Cb),he(d,d.af);else var e=window.location,d=De(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Kh&&Ob(a.Kh,function(a,b){K(d,b,a)});K(d,"VER",a.Ne);gm(a,d);return d}f.hn=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new Ol;a.O=!1;return a};
function Cl(a,b){if(!ja(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}f.Nc=function(){bm.S(new em(bm))};function yl(){bm.S(new cm(bm))}f.oh=function(){return!(!rc||Dc(10))};function sm(){}f=sm.prototype;f.Kr=function(){};f.Jr=function(){};f.cs=function(){};f.Qm=function(){};f.zt=function(){return{}};function tm(a,b){Rk.call(this);if(ja(a))b&&(a=u(a,b));else if(a&&ja(a.handleEvent))a=u(a.handleEvent,a);else throw Error("Invalid listener argument");this.B=a;Ak(this,"tick",u(this.A,this));this.stop();Sk(this,5E3+2E4*Math.random())}w(tm,Rk);tm.prototype.o=0;tm.prototype.A=function(){if(500<this.b){var a=this.b;24E4>2*a&&(a*=2);Sk(this,a)}this.B()};tm.prototype.start=function(){tm.G.start.call(this);this.o=v()+this.b};tm.prototype.stop=function(){this.o=0;tm.G.stop.call(this)};function um(a,b){this.I=a;this.k=b;this.j=new Rh;this.g=new tm(this.dv,this);this.b=null;this.F=!1;this.A=null;this.D="";this.C=this.o=0;this.B=[]}w(um,sm);f=um.prototype;f.subscribe=function(a,b,c){return this.j.subscribe(a,b,c)};f.ha=function(a,b,c){return this.j.ha(a,b,c)};f.Hb=function(a){return this.j.Hb(a)};f.H=function(a,b){return this.j.H.apply(this.j,arguments)};f.dispose=function(){this.F||(this.F=!0,this.j.clear(),this.disconnect(),Oh(this.j))};f.ga=function(){return this.F};
f.connect=function(a,b,c){if(!this.b||2!=this.b.b){this.D="";this.g.stop();this.A=a||null;this.o=b||0;a=this.I+"/test";b=this.I+"/bind";var d=new $l("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.b;e&&(e.Db=null);d.Db=this;this.b=d;e?this.b.connect(a,b,this.k,e.j,e.Ff):c?this.b.connect(a,b,this.k,c.sessionId,c.arrayId):this.b.connect(a,b,this.k)}};f.disconnect=function(a){this.C=a||0;this.g.stop();this.b&&(3==this.b.b&&lm(this.b),this.b.disconnect());this.C=0};
f.sendMessage=function(a,b){var c={_sc:a};b&&ec(c,b);this.g.ed||2==(this.b?this.b.b:0)?this.B.push(c):this.b&&3==this.b.b&&jm(this.b,c)};f.Kr=function(){var a=this.g;a.stop();Sk(a,5E3+2E4*Math.random());this.A=null;this.o=0;if(this.B.length){a=this.B;this.B=[];for(var b=0,c=a.length;b<c;++b)jm(this.b,a[b])}this.H("handlerOpened")};f.cs=function(a,b){var c=2==b&&401==this.b.Kc;if(4!=b&&!c){if(6==b||410==this.b.Kc)c=this.g,c.stop(),Sk(c,500);this.g.start()}this.H("handlerError",b)};
f.Qm=function(a,b,c){if(!this.g.ed)this.H("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.B.push(c[a].map)};f.zt=function(){var a={v:2};this.D&&(a.gsessionid=this.D);0!=this.o&&(a.ui=""+this.o);0!=this.C&&(a.ui=""+this.C);this.A&&ec(a,this.A);return a};f.Jr=function(a,b){if("S"==b[0])this.D=b[1];else if("gracefulReconnect"==b[0]){var c=this.g;c.stop();Sk(c,500);this.g.start();this.b.disconnect()}else this.H("handlerMessage",new Lj(b[0],b[1]))};f.getDeviceId=function(){return this.k.id};
f.dv=function(){this.g.stop();var a=this.b,b=0;a.bb&&b++;a.Gb&&b++;0!=b?this.g.start():this.connect(this.A,this.o)};function vm(){this.b=[];this.g=[]}function wm(a){D(a.b)&&(a.b=a.g,a.b.reverse(),a.g=[])}function xm(a,b){a.g.push(b)}function ym(a){wm(a);return a.b.pop()}f=vm.prototype;f.Na=function(){return this.b.length+this.g.length};f.isEmpty=function(){return D(this.b)&&D(this.g)};f.clear=function(){this.b=[];this.g=[]};f.contains=function(a){return C(this.b,a)||C(this.g,a)};f.remove=function(a){var b=gb(this.b,a);if(0>b)return rb(this.g,a);sb(this.b,b);return!0};
f.Qa=function(){for(var a=[],b=this.b.length-1;0<=b;--b)a.push(this.b[b]);for(var c=this.g.length,b=0;b<c;++b)a.push(this.g[b]);return a};function zm(a){this.reset(a)}function Am(a,b){if(a.g)throw Error(b+" is not allowed in V3.");}function Bm(a){a.volume=-1;a.muted=!1;a.j=null;a.b=-1;a.k=null;a.o=0;a.A=v()}zm.prototype.reset=function(a){this.Va=[];this.g="";Cm(this);a&&(this.Va=a.videoIds,this.index=a.index,this.g=a.listId,this.videoId=a.videoId,this.b=a.playerState,this.k=a.errorReason,this.volume=a.volume,this.muted=a.muted,this.j=a.trackData,this.o=a.playerTime,this.A=a.playerTimeAt)};
function Cm(a){a.index=-1;a.videoId="";Bm(a)}function Dm(a){return a.g?a.videoId:a.Va[a.index]}function Em(a,b){a.o=b;a.A=v()}function Fm(a){switch(a.b){case 1:return(v()-a.A)/1E3+a.o;case -1E3:return 0}return a.o}function Gm(a,b){Am(a,"setVideoId");var c=a.index;a.index=fb(a.Va,b);c!=a.index&&Bm(a)}function Hm(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&Bm(a)}function Im(a,b,c){Am(a,"setPlaylist");c=c||Dm(a);Fb(a.Va,b)&&c==Dm(a)||(a.Va=vb(b),Gm(a,c))}
zm.prototype.add=function(a){Am(this,"add");return a&&!C(this.Va,a)?(this.Va.push(a),!0):!1};zm.prototype.remove=function(a){Am(this,"remove");var b=Dm(this);return rb(this.Va,a)?(this.index=fb(this.Va,b),!0):!1};function Jm(a){var b={};b.videoIds=vb(a.Va);b.index=a.index;b.listId=a.g;b.videoId=a.videoId;b.playerState=a.b;b.errorReason=a.k;b.volume=a.volume;b.muted=a.muted;b.trackData=cc(a.j);b.playerTime=a.o;b.playerTimeAt=a.A;return b}zm.prototype.clone=function(){return new zm(Jm(this))};function Km(a){ej.call(this);this.b=0;this.k=a;this.B=[];this.A=new vm;this.o=NaN;this.j=this.g=null;this.F=u(this.lv,this);this.C=u(this.Pk,this);this.D=u(this.kv,this);var b=0;a?(b=a.getProxyState(),3!=b&&(a.subscribe("proxyStateChange",this.Ro,this),Lm(this))):b=3;0!=b&&L(u(function(){this.Ro(b)},this),0);Mm(this,Cj())}w(Km,ej);function Nm(a){return new zm(a.k.getPlayerContextData())}f=Km.prototype;
f.play=function(){1==this.b?(this.g?this.g.play(null,ca,u(function(){this.Bh("Failed to play video with cast v2 channel.");Om(this,"play")},this)):Om(this,"play"),Pm(this,1,Fm(Nm(this))),Qm(this)):Rm(this,this.play)};f.pause=function(){1==this.b?(this.g?this.g.pause(null,ca,u(function(){this.Bh("Failed to pause video with cast v2 channel.");Om(this,"pause")},this)):Om(this,"pause"),Pm(this,2,Fm(Nm(this))),Qm(this)):Rm(this,this.pause)};
f.Fr=function(a){if(1==this.b){if(this.g){var b=Nm(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=1==b.b||3==b.b?chrome.cast.media.ResumeState.PLAYBACK_START:chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.g.seek(c,ca,u(function(){this.Bh("Failed to seek in video with cast v2 channel.");Om(this,"seekTo",{newTime:a})},this))}else Om(this,"seekTo",{newTime:a});Pm(this,3,a);Qm(this)}else Rm(this,qa(this.Fr,a))};
f.stop=function(){if(1==this.b){this.g?this.g.stop(null,ca,u(function(){this.Bh("Failed to stop video with cast v2 channel.");Om(this,"stopVideo")},this)):Om(this,"stopVideo");var a=Nm(this);Cm(a);Sm(this,a);Qm(this)}else Rm(this,this.stop)};
f.setVolume=function(a,b){if(1==this.b){var c=Nm(this);if(this.j)c.volume!=a&&this.j.setReceiverVolumeLevel(a,ca,ca),c.muted!=b&&this.j.setReceiverMuted(b,ca,ca);else{var d={volume:a,muted:b};-1!=c.volume&&(d.delta=a-c.volume);Om(this,"setVolume",d)}c.muted=b;c.volume=a;Sm(this,c);Qm(this)}else Rm(this,qa(this.setVolume,a,b))};
f.tm=function(a,b){if(1==this.b){var c=Nm(this);if(b){c.j={trackName:b.name,languageCode:b.languageCode,sourceLanguageCode:b.translationLanguage?b.translationLanguage.languageCode:"",languageName:b.languageName,format:b.format,kind:b.kind};var d={videoId:a,style:uf(b.style)};ec(d,c.j);Om(this,"setSubtitlesTrack",d)}else d={videoId:a},Om(this,"setSubtitlesTrack",d);Sm(this,c)}else Rm(this,qa(this.tm,a,b))};
function Tm(a,b,c,d,e){var g=Nm(a);d=d||0;e={videoId:b,currentIndex:d,listId:e||g.g};Hm(g,b,d);n(c)&&(Em(g,c),e.currentTime=c);Om(a,"setPlaylist",e);Sm(a,g)}f.oi=function(a,b){if(1==this.b){var c=Nm(this);if(a!=Dm(c)){var d;Am(c,"insert");a&&!C(c.Va,a)?(-1<c.index&&c.index>=c.Va.length-1?c.Va.push(a):c.Va.splice(c.index+1,0,a),d=!0):d=!1;d&&(d={videoId:a},Om(this,"insertVideo",d));Gm(c,a);d={videoId:a};n(b)&&(Em(c,b),d.currentTime=b);Om(this,"setVideo",d);Sm(this,c)}}else Rm(this,qa(this.oi,a,b))};
f.Mk=function(a,b,c){if(1==this.b){var d=Nm(this),e=a==Dm(d),d=Fb(b,d.Va);e?d||(Om(this,"updatePlaylist",{videoIds:b.join(",")}),a=Nm(this),Im(a,b),Sm(this,a)):d?this.oi(a,c):(Om(this,"setPlaylist",{videoIds:b.join(","),videoId:a,currentTime:c}),e=Nm(this),Em(e,c),Im(e,b,a),Sm(this,e))}else Rm(this,qa(this.Mk,a,b,c))};f.dispose=function(){if(3!=this.b){var a=this.b;this.b=3;this.H("proxyStateChange",a,this.b)}Km.G.dispose.call(this)};
f.J=function(){M(this.o);this.o=NaN;Um(this);this.k=null;this.A.clear();Mm(this,null);Km.G.J.call(this)};function Lm(a){z(["remotePlayerChange","remoteQueueChange"],function(a){this.B.push(this.k.subscribe(a,qa(this.PC,a),this))},a)}function Um(a){z(a.B,function(a){this.k.unsubscribeByKey(a)},a);a.B.length=0}function Rm(a,b){50>a.A.Na()&&xm(a.A,b)}function Pm(a,b,c){var d=Nm(a);Em(d,c);-1E3!=d.b&&(d.b=b);Sm(a,d)}function Om(a,b,c){a.k.sendMessage(b,c)}
function Sm(a,b){Um(a);a.k.setPlayerContextData(Jm(b));Lm(a)}f.Ro=function(a){if((a!=this.b||2==a)&&3!=this.b&&0!=a){var b=this.b;this.b=a;this.H("proxyStateChange",b,a);if(1==a)for(;!this.A.isEmpty();)ym(this.A).apply(this);else 3==a&&this.dispose()}};function Qm(a){M(a.o);a.o=L(u(function(){this.H("remotePlayerChange");this.o=NaN},a),2E3)}f.PC=function(a){("remotePlayerChange"!=a||isNaN(this.o))&&this.H(a)};
function Mm(a,b){a.j&&(a.j.removeUpdateListener(a.F),a.j.removeMediaListener(a.C));a.j=b;a.j&&(a.j.addUpdateListener(a.F),a.j.addMediaListener(a.C))}f.lv=function(a){if(!a)this.Pk(null),Mm(this,null);else if(this.j.receiver.volume){a=this.j.receiver.volume;var b=Nm(this);if(b.volume!=a.level||b.muted!=a.muted)b.volume=a.level||0,b.muted=!!a.muted,Sm(this,b),Qm(this)}};f.Pk=function(a){this.g&&this.g.removeUpdateListener(this.D);if(this.g=a)this.g.addUpdateListener(this.D),Vm(this),Qm(this)};
function Vm(a){var b=a.g.customData;if(a.g.media){var c=a.g.media,d=Nm(a);c.contentId!=d.videoId&&Ch("CP","Cast changing video to: "+c.contentId);var e=c.customData;d.index=e.currentIndex;d.g=e.listId;d.videoId=c.contentId;d.b=b.playerState;Em(d,a.g.getEstimatedTime());Sm(a,d)}else Ch("CP","No cast media. Ignoring.")}f.kv=function(a){a?(Vm(this),Qm(this)):this.Pk(null)};f.Bh=function(a){Ch("CP",a)};function Wm(a,b,c){ej.call(this);this.O=a;this.jd=[];this.jd.push(Q(window,"beforeunload",u(this.Rx,this)));this.j=[];this.b=new zm;3==c["mdx-version"]&&(this.b.g="RQ"+b.token);this.D=b.id;this.g=new um(Ti(this.O,"/bc",void 0,!1),c);this.g.subscribe("handlerOpened",this.Wx,this);this.g.subscribe("handlerClosed",this.Sx,this);this.g.subscribe("handlerError",this.Tx,this);this.b.g?this.g.subscribe("handlerMessage",this.Ux,this):this.g.subscribe("handlerMessage",this.Vx,this);a=this.g;b=b.token;(a.k.loungeIdToken=
b)||a.g.stop()}w(Wm,ej);f=Wm.prototype;f.xh=NaN;f.Ln=NaN;f.Xi=NaN;
f.connect=function(a,b){if(b){if(this.b.g){var c=b.listId,d=b.videoId,e=b.index,g=b.currentTime||0;5>=g&&(g=0);h={videoId:d,currentTime:g};c&&(h.listId=c);n(e)&&(h.currentIndex=e);c&&(this.b.g=c);this.b.videoId=d;this.b.index=e||0}else{var d=b.videoIds[b.index],g=b.currentTime||0;5>=g&&(g=0);var h={videoIds:d,videoId:d,currentTime:g};this.b.Va=[d];this.b.index=0}this.b.state=3;Em(this.b,g);this.log_("Connecting with setPlaylist and params: "+uf(h));this.g.connect({method:"setPlaylist",params:uf(h)},
a,sj())}else this.log_("Connecting without params"),this.g.connect({},a,sj());Xm(this)};f.dispose=function(){this.ga()||Ym(this,3);Wm.G.dispose.call(this)};f.J=function(){Zm(this);$m(this);M(this.Xi);this.Xi=NaN;this.k=null;Tg(this.jd);this.jd.length=0;this.g.dispose();Wm.G.J.call(this);this.j=this.b=this.g=null};f.log_=function(a){Ch("conn",a)};f.Rx=function(){this.A(2)};function Ym(a,b){a.H("proxyStateChange",b)}
function Xm(a){a.xh=L(u(function(){this.log_("Connecting timeout");this.A(1)},a),1E4)}function Zm(a){M(a.xh);a.xh=NaN}function an(a){$m(a);a.Ln=L(u(function(){this.o("getNowPlaying")},a),2E4)}function $m(a){M(a.Ln);a.Ln=NaN}function bn(a){var b=a.g;return!!b.b&&3==b.b.b&&isNaN(a.xh)}
f.Wx=function(){this.log_("Channel opened");var a=this.g,b=this.D;ri("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!a.b.Si,sessionId:a.b.j,arrayId:a.b.Ff});ri("yt-remote-session-screen-id",b);a=mj();b=nj();C(a,b)||a.push(b);qj(a);lj()};f.Sx=function(){this.log_("Channel closed");isNaN(this.xh)?zj(!0):zj();this.dispose()};
f.Tx=function(a){zj();isNaN(this.B())?(this.log_("Channel error: "+a+" without reconnection"),this.dispose()):(this.log_("Channel error: "+a+" with reconnection in "+this.B()+" ms"),Ym(this,2))};function cn(a,b){b==bn(a)?b&&Ym(a,1):b?(Zm(a),a.C()&&a.b.reset(),Ym(a,1),a.o("getNowPlaying")):a.A(1)}function dn(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.b.videoId&&(Zb(b.params)?a.b.j=null:a.b.j=b.params,a.H("remotePlayerChange"))}
function en(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.b.g=b.params.listId;Hm(a.b,c,d);a.H("remoteQueueChange")}function fn(a,b){en(a,b);gn(a,b)}
function gn(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);Em(a.b,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.b.b&&(c=-1E3);a.b.b=c;var d=null;-1E3==c&&(d=a.b.k||"unknown",n(b.params.currentError)&&(d=sf(b.params.currentError).reason||d));a.b.k=d;1==a.b.b?an(a):$m(a);a.H("remotePlayerChange")}function hn(a,b){var c="true"==b.params.muted;a.b.volume=parseInt(b.params.volume,10);a.b.muted=c;a.H("remotePlayerChange")}
f.Ux=function(a){a.params?this.log_("Received: action="+a.action+", params="+uf(a.params)):this.log_("Received: action="+a.action);switch(a.action){case "loungeStatus":a=sf(a.params.devices);this.j=B(a,function(a){return new Kj(a)});a=!!lb(this.j,function(a){return"LOUNGE_SCREEN"==a.type});cn(this,a);break;case "loungeScreenConnected":cn(this,!0);break;case "loungeScreenDisconnected":tb(this.j,function(a){return"LOUNGE_SCREEN"==a.type});cn(this,!1);break;case "remoteConnected":var b=new Kj(sf(a.params.device));
lb(this.j,function(a){return a.equals(b)})||qb(this.j,b);break;case "remoteDisconnected":b=new Kj(sf(a.params.device));tb(this.j,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":en(this,a);break;case "nowPlaying":fn(this,a);break;case "onStateChange":gn(this,a);break;case "onVolumeChanged":hn(this,a);break;case "onSubtitlesTrackChanged":dn(this,a);break;default:this.log_("Unrecognized action: "+a.action)}};
f.Vx=function(a){a.params?this.log_("Received: action="+a.action+", params="+uf(a.params)):this.log_("Received: action="+a.action);jn(this,a);kn(this,a);if(bn(this)){var b=this.b.clone(),c=!1,d,e,g,h,k,l,p;a.params&&(d=a.params.videoId||a.params.video_id,e=a.params.videoIds||a.params.video_ids,g=a.params.state,h=a.params.currentTime||a.params.current_time,k=a.params.volume,l=a.params.muted,n(a.params.currentError)&&(p=sf(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==Dm(this.b)&&
(delete a.params.videoId,Zb(a.params)?this.b.j=null:this.b.j=a.params,this.H("remotePlayerChange"));else if(Dm(this.b)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=Dm(this.b)):Gm(this.b,""),e&&(e=e.split(","),Im(this.b,e,d))):Im(this.b,[]),this.b.add(d)&&this.o("getPlaylist"),d&&Gm(this.b,d),b.index==this.b.index&&Fb(b.Va,this.b.Va)||this.H("remoteQueueChange"),n(g)&&(b=parseInt(g,10),b=
isNaN(b)?-1:b,-1==b&&-1E3==this.b.b&&(b=-1E3),0==b&&"0"==h&&(b=-1),c=c||b!=this.b.b,this.b.b=b,d=null,-1E3==b&&(d=this.b.k||"unknown",p&&(d=p.reason||d)),c=c||this.b.k!=d,this.b.k=d,1==this.b.b?an(this):$m(this)),"onError"!=a.action||-1!=this.b.b&&-1E3!=this.b.b||(a=sf(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==Dm(this.b)&&(this.b.b=-1E3,this.b.k=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),Em(this.b,isNaN(b)?0:b),c=!0),n(k)&&(b=parseInt(k,10),isNaN(b)||(c=c||
this.b.volume!=b,this.b.volume=b),n(l)&&(l="true"==l,c=c||this.b.muted!=l,this.b.muted=l)),c&&this.H("remotePlayerChange")}};
function jn(a,b){switch(b.action){case "loungeStatus":var c=sf(b.params.devices);a.j=B(c,function(a){return new Kj(a)});break;case "loungeScreenDisconnected":tb(a.j,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new Kj(sf(b.params.device));lb(a.j,function(a){return a.equals(d)})||qb(a.j,d);break;case "remoteDisconnected":d=new Kj(sf(b.params.device)),tb(a.j,function(a){return a.equals(d)})}}
function kn(a,b){var c=!1;if("loungeStatus"==b.action)c=!!lb(a.j,function(a){return"LOUNGE_SCREEN"==a.type});else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;c==bn(a)?c&&Ym(a,1):c?(Zm(a),a.C()&&a.b.reset(),Ym(a,1),a.o("getNowPlaying")):a.A(1)}f.Ly=function(){if(this.k){var a=this.k;this.k=null;this.b.videoId!=a&&this.o("getNowPlaying")}};Wm.prototype.subscribe=Wm.prototype.subscribe;Wm.prototype.unsubscribeByKey=Wm.prototype.Hb;
Wm.prototype.L=function(){var a=3;this.ga()||(a=0,isNaN(this.B())?bn(this)&&(a=1):a=2);return a};Wm.prototype.getProxyState=Wm.prototype.L;Wm.prototype.A=function(a){this.log_("Disconnecting with "+a);1==a&&zj();this.g.disconnect(a);this.dispose()};Wm.prototype.disconnect=Wm.prototype.A;Wm.prototype.I=function(){var a=this.b;this.k&&(a=this.b.clone(),Hm(a,this.k,a.index));return Jm(a)};Wm.prototype.getPlayerContextData=Wm.prototype.I;
Wm.prototype.N=function(a){var b=new zm(a);b.videoId&&b.videoId!=this.b.videoId&&(this.k=b.videoId,M(this.Xi),this.Xi=L(u(this.Ly,this),5E3));var c=[];this.b.g==b.g&&this.b.videoId==b.videoId&&this.b.index==b.index&&Fb(this.b.Va,b.Va)||c.push("remoteQueueChange");this.b.b==b.b&&this.b.volume==b.volume&&this.b.muted==b.muted&&Fm(this.b)==Fm(b)&&uf(this.b.j)==uf(b.j)||c.push("remotePlayerChange");this.b.reset(a);z(c,function(a){this.H(a)},this)};Wm.prototype.setPlayerContextData=Wm.prototype.N;
Wm.prototype.F=function(){return this.g.k.loungeIdToken};Wm.prototype.getLoungeToken=Wm.prototype.F;Wm.prototype.C=function(){var a=this.g.getDeviceId(),b=lb(this.j,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};Wm.prototype.getOtherConnectedRemoteId=Wm.prototype.C;Wm.prototype.B=function(){var a=this.g;return a.g.ed?a.g.o-v():NaN};Wm.prototype.getReconnectTimeout=Wm.prototype.B;Wm.prototype.P=function(){if(!isNaN(this.B())){var a=this.g.g;a.ed&&(a.stop(),a.start(),a.A())}};
Wm.prototype.reconnect=Wm.prototype.P;Wm.prototype.o=function(a,b){b?this.log_("Sending: action="+a+", params="+uf(b)):this.log_("Sending: action="+a);this.g.sendMessage(a,b)};Wm.prototype.sendMessage=Wm.prototype.o;function ln(a){ej.call(this);this.k=a;this.Lc=Jh(uj());this.log_("Initializing local screens: "+Lh(this.Lc));this.j=mn();this.log_("Initializing account screens: "+Lh(this.j));this.$l=null;this.b=[];this.g=[];nn(this,Zj()||[]);this.log_("Initializing DIAL devices: "+Wi(this.g));a=Jh(wj());on(this,a);this.log_("Initializing online screens: "+Lh(this.b));this.o=v()+3E5;pn(this)}w(ln,ej);var qn=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=ln.prototype;f.Hh=NaN;f.Ij="";f.log_=function(a){Ch("RM",a)};
f.Bh=function(a){Ch("RM",a)};function mn(){var a=Jh(uj()),b=Jh(wj());return hb(b,function(b){return!cj(a,b)})}function pn(a){Xh("yt-remote-cast-device-list-update",function(){var a=Zj();nn(this,a||[])},a);Xh("yt-remote-cast-device-status-update",a.iD,a);a.Ss();var b=v()>a.o?2E4:1E4;Ye(u(a.Ss,a),b)}f.H=function(a,b){if(this.ga())return!1;this.log_("Firing "+a);return this.M.H.apply(this.M,arguments)};
f.Ss=function(){var a=Zj()||[];D(a)||nn(this,a);a=rn(this);D(a)||(jb(a,function(a){return!cj(this.j,a)},this)&&!ui("yt-remote-lounge-token-expiration")?sn(this):tn(this,a))};function un(a,b){var c=rn(a);return hb(b,function(a){return a.uuid?(a=bj(this.g,a.uuid),!!a&&"RUNNING"==a.status):!!cj(c,a)},a)}
function nn(a,b){var c=!1;z(b,function(a){var b=dj(this.Lc,a.id);b&&b.name!=a.name&&(this.log_("Renaming screen id "+b.id+" from "+b.name+" to "+a.name),b.name=a.name,c=!0)},a);c&&(a.log_("Renaming due to DIAL."),vn(a));xj(Zi(b));var d=!Fb(a.g,b,aj);d&&a.log_("Updating DIAL devices: "+Wi(a.g)+" to "+Wi(b));a.g=b;on(a,a.b);d&&a.H("onlineReceiverChange")}
f.iD=function(a){var b=bj(this.g,a.id);b&&(this.log_("Updating DIAL device: "+b.id+"("+b.name+") from status: "+b.status+" to status: "+a.status+" and from activityId: "+b.activityId+" to activityId: "+a.activityId),b.activityId=a.activityId,b.status=a.status,xj(Zi(this.g)));on(this,this.b)};function on(a,b,c){var d=un(a,b),e=!Fb(a.b,d,Gh);!e&&!c||D(b)||(b=B(d,Hh),ri("yt-remote-online-screens",b,60));e&&(a.log_("Updating online screens: "+Lh(a.b)+" -> "+Lh(d)),a.b=d,a.H("onlineReceiverChange"))}
function tn(a,b){var c=[],d={};z(b,function(a){a.token&&(d[a.token]=a,c.push(a.token))});var e={method:"POST",fd:{lounge_token:c.join(",")},context:a,onSuccess:function(a,b){var c=[];z(b.screens||[],function(a){"online"==a.status&&c.push(d[a.loungeToken])});var e=this.$l?wn(this,this.$l):null;e&&!cj(c,e)&&c.push(e);on(this,c,!0)}};Li(Ti(a.k,"/pairing/get_screen_availability"),e)}
function sn(a){var b=rn(a),c=B(b,function(a){return a.id});D(c)||(a.log_("Updating lounge tokens for: "+uf(c)),Li(Ti(a.k,"/pairing/get_lounge_token_batch"),{fd:{screen_ids:c.join(",")},method:"POST",context:a,onSuccess:function(a,c){xn(this,c.screens||[]);this.Lc=hb(this.Lc,function(a){return!!a.token});vn(this);tn(this,b)}}))}function xn(a,b){z(ub(a.Lc,a.j),function(a){var d=lb(b,function(b){return a.id==b.screenId});d&&(a.token=d.loungeToken)})}
function vn(a){var b=Jh(uj());Fb(a.Lc,b,Gh)||(a.log_("Saving local screens: "+Lh(b)+" to "+Lh(a.Lc)),tj(B(a.Lc,Hh)),on(a,a.b,!0),nn(a,Zj()||[]),a.H("managedScreenChange",rn(a)))}function yn(a,b,c){var d=mb(b,function(a){return c||a?!c!=!a?!1:c.id==a.id:!0}),e=0>d;0>d?b.push(c):b[d]=c;cj(a.b,c)||a.b.push(c);return e}
f.ws=function(a,b,c){var d=!1;b>=qn.length&&(this.log_("Pairing DIAL device "+a+" with "+c+" timed out."),d=!0);var e=bj(this.g,a);if(!e)this.log_("Pairing DIAL device "+a+" with "+c+" failed: no device for "+a),d=!0;else if("ERROR"==e.status||"STOPPED"==e.status)this.log_("Pairing DIAL device "+a+" with "+c+" failed: launch error on "+a),d=!0;d?(zn(this),this.H("screenPair",null)):Li(Ti(this.k,"/pairing/get_screen"),{method:"POST",fd:{pairing_code:c},context:this,onSuccess:function(a,b){if(c==this.Ij){zn(this);
var d=new Fh(b.screen);d.name=e.name;d.uuid=e.id;this.log_("Pairing "+c+" succeeded.");var l=yn(this,this.Lc,d);this.log_("Paired with "+(l?"a new":"an old")+" local screen:"+Kh(d));vn(this);this.H("screenPair",d)}},onError:function(){c==this.Ij&&(this.log_("Polling pairing code: "+c),M(this.Hh),this.Hh=L(u(this.ws,this,a,b+1,c),qn[b]))}})};
function An(a,b,c){var d=Bn,e="";zn(d);if(bj(d.g,a)){if(!e){var g=e=Xi();Rj();var h=bk(a),k=Oj();if(k&&h){var l=new cast.Receiver(h.id,h.name),l=new cast.LaunchRequest("YouTube",l);l.parameters="pairingCode="+g;l.description=new cast.LaunchDescription;l.description.text=document.title;b&&(l.parameters+="&v="+b,c&&(l.parameters+="&t="+Math.round(c)),l.description.url="http://i.ytimg.com/vi/"+b+"/default.jpg");"UNKNOWN"!=h.status&&(h.status="UNKNOWN",Xj(h),$h("yt-remote-cast-device-status-update",h));
Nj("Sending a cast launch request with params: "+l.parameters);k.launch(l,qa(ck,a))}else Nj("No cast API or no cast device. Dropping cast launch.")}d.Ij=e;d.Hh=L(u(d.ws,d,a,0,e),qn[0])}else d.log_("No DIAL device with id: "+a)}function zn(a){M(a.Hh);a.Hh=NaN;a.Ij=""}function wn(a,b){var c=dj(rn(a),b);a.log_("Found screen: "+Kh(c)+" with key: "+b);return c}function Cn(a){var b=Bn,c=dj(b.b,a);b.log_("Found online screen: "+Kh(c)+" with key: "+a);return c}
function Dn(a){var b=Bn,c=bj(b.g,a);if(!c){var d=dj(b.Lc,a);d&&(c=bj(b.g,d.uuid))}b.log_("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function rn(a){return ub(a.j,hb(a.Lc,function(a){return!cj(this.j,a)},a))};function En(a){fj.call(this,"ScreenServiceProxy");this.Eb=a;this.b=[];this.b.push(this.Eb.$_s("screenChange",u(this.cC,this)));this.b.push(this.Eb.$_s("onlineScreenChange",u(this.bC,this)))}w(En,fj);f=En.prototype;f.Xn=function(a){return this.Eb.$_gos(a)};f.contains=function(a){return!!this.Eb.$_c(a)};f.get=function(a){return this.Eb.$_g(a)};f.start=function(){};f.add=function(a,b,c){this.Eb.$_a(a,b,c)};f.remove=function(a,b,c){this.Eb.$_r(a,b,c)};
f.J=function(){for(var a=0,b=this.b.length;a<b;++a)this.Eb.$_ubk(this.b[a]);this.b.length=0;this.Eb=null;En.G.J.call(this)};f.cC=function(){this.H("screenChange")};f.bC=function(){this.H("onlineScreenChange")};function Fn(a){a?ba("yt.mdx.remote.castv2_",!0,void 0):Rj();si&&si.j();lj();Gn||(Gn=new Si);Bn||a||(Bn=new ln(Gn),Bn.subscribe("screenPair",Hn),Bn.subscribe("managedScreenChange",In),Bn.subscribe("onlineReceiverChange",function(){$h("yt-remote-receiver-availability-change")}));Jn||(Jn=q("yt.mdx.remote.deferredProxies_")||[],ba("yt.mdx.remote.deferredProxies_",Jn,void 0));Zb(Kn)&&(Kn=q("yt.mdx.remote.channelParams_")||{})}
function Ln(){Zh(Mn);Mn.length=0;Oh(Nn);Nn=null;Jn&&(z(Jn,function(a){a(null)}),Jn.length=0,Jn=null,ba("yt.mdx.remote.deferredProxies_",null,void 0));Bn&&(Oh(Bn),Bn=null);Gn=null;Kn={};Wj()}
function On(){if(Pn()&&Aj()){var a=[];if(ui("yt-remote-cast-available")||ui("yt-remote-cloudview-cast-button-shown")||Qn())a.push({key:"cast-selector-receiver",name:Rn()}),ri("yt-remote-cloudview-cast-button-shown",!0);return a}if(q("yt.mdx.remote.cloudview.initializing_"))return[];var b=[],b=Sn()?Tn().Eb.$_gos(!0):Jh(wj());(a=Un())&&Qn()&&(cj(b,a)||b.push(a));Sn()||(a=$i(yj()),a=hb(a,function(a){return!dj(b,a.id)}),b=ub(b,a));return Yi(b)}
function Vn(){if(Pn()&&Aj()){var a=Bj();return a?{key:"cast-selector-receiver",name:a}:null}var a=On(),b=Wn(),c=Un();c||(c=Xn());return lb(a,function(a){var e;if(e=c)e=a.key,e=c.id==e||c.uuid==e;return e||b&&(a=Dn(a.key))&&a.id==b?!0:!1})}function Rn(){if(Pn()&&Aj())return Bj();var a=Un();return a?a.name:null}function Un(){var a=Yn();if(!a)return null;if(!Bn){var b=Tn().Xn();return dj(b,a)}return wn(Bn,a)}
function Zn(a,b){$n("Connecting to: "+uf(a));if("cast-selector-receiver"==a.key)ao(b||null),Jj(b||null);else{bo();ao(b||null);var c=null;Bn?c=Cn(a.key):(c=Tn().Eb.$_gos(void 0),c=dj(c,a.key));if(c)co(c);else{if(Bn&&(c=Dn(a.key))){eo(c);return}L(function(){fo(null)},0)}}}
function bo(){Bn&&zn(Bn);t:{var a=Qn();if(a&&(a=a.getOtherConnectedRemoteId())){$n("Do not stop DIAL due to "+a);go("");break t}(a=Wn())?($n("Stopping DIAL: "+a),dk(a),go("")):(a=Un())&&a.uuid&&($n("Stopping DIAL: "+a.uuid),dk(a.uuid))}Hj()?Ej().stopSession():Dj("stopSession called before API ready.");(a=Qn())&&a.disconnect(1);fo(null)}function ho(){var a=io(),a=a?a.currentTime:0,b=jo();0==a&&b&&(a=Fm(Nm(b)));return a}function jo(){var a=Qn();return a?new Km(a):null}
function $n(a){Ch("remote",a)}function Pn(){return!!q("yt.mdx.remote.castv2_")}function Sn(){return q("yt.mdx.remote.screenService_")}function Tn(){if(!Nn){var a=Sn();a&&(Nn=new En(a))}return Nn}function Yn(){return q("yt.mdx.remote.currentScreenId_")}function ko(a){ba("yt.mdx.remote.currentScreenId_",a,void 0);if(Bn){var b=Bn;b.o=v()+3E5;if((b.$l=a)&&(a=wn(b,a))&&!cj(b.b,a)){var c=vb(b.b);c.push(a);on(b,c,!0)}}}function Wn(){return q("yt.mdx.remote.currentDialId_")}
function go(a){ba("yt.mdx.remote.currentDialId_",a,void 0)}function io(){return q("yt.mdx.remote.connectData_")}function ao(a){ba("yt.mdx.remote.connectData_",a,void 0)}function Qn(){return q("yt.mdx.remote.connection_")}function fo(a){var b=Qn();ao(null);a?cb(!Qn()):(ko(""),go(""));ba("yt.mdx.remote.connection_",a,void 0);z(Jn,function(b){b(a)});Jn.length=0;b&&!a?$h("yt-remote-connection-change",!1):!b&&a&&$h("yt-remote-connection-change",!0)}
function Xn(){var a=oj();if(!a)return null;if(Sn()){var b=Tn().Xn();return dj(b,a)}return Bn?wn(Bn,a):null}function co(a){cb(!Yn());ko(a.id);var b=q("yt.mdx.remote.channelParams_");a=new Wm(Gn,a,b);a.connect(1,io());Nh(a,function(){Qn()&&(Qn(),fo(null))});fo(a)}function eo(a){Wn();$n("Connecting to: "+(a?a.toString():"null"));go(a.id);var b=io();b?An(a.id,b.videoIds[b.index],b.currentTime):An(a.id)}function Hn(a){$n("Paired with: "+Kh(a));a?co(a):fo(null)}
function In(){var a=Yn();a&&!Un()&&($n("Dropping current screen with id: "+a),bo());Xn()||zj()}var Gn=null,Jn=null,Nn=null,Bn=null,Kn={},Mn=[];var lo={wS:function(a){return a.reverse()},IC:function(a,b){return a.slice(b)},rw:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c;return a}};function mo(a){a=a.split("");a=lo.rw(a,1);a=lo.rw(a,32);a=lo.IC(a,1);a=lo.wS(a,77);a=lo.IC(a,3);a=lo.wS(a,77);a=lo.IC(a,3);a=lo.wS(a,44);return a.join("")};function no(){};var oo={160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",138:"h",140:"a",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",147:"H",149:"A",261:"M",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",272:"9",171:"v",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",273:"(",274:"(",275:"(",276:"(",277:"("};function po(a,b,c,d,e,g,h){this.id=""+a;this.b=0<=b.indexOf("/mp4")?1:0<=b.indexOf("/webm")?2:0<=b.indexOf("/x-flv")?3:0<=b.indexOf("/vtt")?4:0;this.mimeType=b;this.ua=h||0;this.g=c||null;this.video=d||null;this.k=e||null;this.o=g||null;this.j=oo[this.id.split(":")[0]]||""}function qo(a){return 2==a.b}function ro(a){return!(a.g&&a.video)}function so(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function to(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function uo(a,b,c){this.name=a;this.b="original"==c}uo.prototype.toString=function(){return this.name};var Yb={BE:"auto",YJ:"tiny",uI:"light",SMALL:"small",JE:"medium",LARGE:"large",VH:"hd720",TH:"hd1080",UH:"hd1440",dI:"highres",UNKNOWN:"unknown"},vo={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,highres:2160};function wo(a,b,c,d){this.width=a;this.height=b;if(!d)t:{for(d=2;d<xo.length;d++){var e=yo[xo[d]];if(a>e[0]&&b>=e[1]||a>=e[0]&&b>e[1]){d=xo[d-1];break t}}d="tiny"}this.b=d;this.g=c||0}var xo="auto highres hd1440 hd1080 hd720 large medium small tiny".split(" "),yo={auto:[0,0],tiny:[256,144],light:[426,240],small:[426,240],medium:[640,360],large:[854,480],hd720:[1280,720],hd1080:[1920,1080],hd1440:[2560,1440],highres:[3840,2160]};function zo(a,b){this.start=a;this.end=b;this.length=b-a+1}function Ao(a){a=a.split("-");return 2==a.length&&(a=new zo(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function Bo(a,b){return new zo(a,a+b-1)}zo.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function Co(a,b){var c=Rd(a),d=c[6];if(d&&(d=d.match(new RegExp("(^|&)"+b+"=([^&]*)&?"))))return decodeURIComponent(d[2]);if(c=c[5])for(c=c.split("/"),c[c.length-1]||c.pop(),d=c.length-2;0<d;d-=2)if(c[d]==b)return decodeURIComponent(c[d+1])}
function Do(a,b){var c=Rd(a),d=c[6];d&&(d=d.replace(new RegExp("(^|&)"+b+"=[^&]*&?"),"$1"),"&"==d.charAt(d.length-1)&&(d=d.substring(0,d.length-1)));var e=c[5];if(e){e=e.split("/");e[e.length-1]||e.pop();for(var g=e.length-2;0<g;g-=2)if(e[g]==b){e.splice(g,2);break}e=e.join("/")}return Pd(c[1],c[2],c[3],c[4],e,d,c[7])}
function Eo(a,b,c){a=Rd(a);var d=!1,e=a[6];if(e){var g=new RegExp("((^|&)"+b+"=)[^&]*");0<=e.search(g)&&(e=e.replace(g,"$1"+c),d=!0)}if(g=a[5]){g=g.split("/");g[g.length-1]||g.pop();for(var h=g.length-2;0<h;h-=2)if(g[h]==b){g[h+1]=c;d=!0;break}g=g.join("/")}d||(e=e?e+"&"+b+"="+c:b+"="+c);return Pd(a[1],a[2],a[3],a[4],g,e,a[7])}function Fo(a,b){var c=a,d;for(d in b)null!=b[d]&&(c=Eo(c,d,b[d]));return c};function Go(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.b=a;this.sourceURL=d;this.startTime=b;this.$=e||null};function Ho(){this.da=[]}f=Ho.prototype;f.hj=function(a){return(a=Io(this,a))?a.duration:0};f.Ql=function(a){return this.hj(a)};f.Rs=function(){return this.da[0].b};f.jc=function(){return this.da[this.da.length-1].b};f.yf=function(){return this.da[this.da.length-1].endTime};f.rn=function(){return this.da[0].startTime};f.Bj=function(){return 0};f.Tn=function(a){return(a=Jo(this,a))?a.b:-1};f.Is=function(a){return Io(this,a).sourceURL};f.Ui=function(a){return(a=Io(this,a))?a.startTime:0};
f.Bn=function(){return 0<this.da.length};function Io(a,b){var c=Ab(a.da,new Go(b,0,0,""),function(a,b){return a.b-b.b});return 0<=c?a.da[c]:null}function Jo(a,b){var c=Ab(a.da,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.da[c]:a.da[Math.max(0,-c-2)]}f.append=function(a){if(0!=a.length)if(a=vb(a),0==this.da.length)this.da=a;else{var b=a[0].b-this.jc();1<b&&pb(this.da);for(b=0<b?0:-b+1;b<a.length;b++)this.da.push(a[b])}};
function Ko(a,b){var c=mb(a.da,function(a){return a.b>=b},a);0<c&&a.da.splice(0,c)};function Lo(a){this.b=a;this.g=0;this.j=-1}var Mo=0;function No(a,b){this.index=null;this.info=b;this.b=null;this.o=this.j=!1;this.A=new Lo(a)}No.prototype.Xl=function(){return!1};No.prototype.lc=function(){return!1};No.prototype.Dr=function(a){return[a]};No.prototype.Hi=function(a){return[a]};function Oo(a,b,c,d,e,g,h,k,l){this.b=b;this.$=c;this.type=a;this.k=0<=d?d:-1;this.startTime=e||0;this.duration=g||0;this.j=h||0;this.g=0<=k?k:this.$?this.$.length:NaN;this.B=!!l;this.$?(this.A=this.j+this.g==this.$.length,this.o=this.startTime+this.duration*this.j/this.$.length,this.D=this.duration*this.g/this.$.length):(this.A=0!=this.g,this.o=this.startTime,this.D=this.duration);this.C=this.o+this.D}function Po(a){return 1==a.type||2==a.type}
function Qo(a,b){return a.b==b.b&&a.$.start+a.j+a.g==b.$.start+b.j}function Ro(a){cb(1==a.length||kb(a,function(a){return!!a.$}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new zo(a[0].$.start+a[0].j,b.$.start+b.j+b.g-1)}
function So(a,b){var c;c=a.b;var d=a;c.Dg(d);if(c.lc()){4==d.type&&(d=c.Hi(d),d=d[d.length-1]);var e=0,g=d.$.start+d.j+d.g;3==d.type&&(e=d.k,g==d.$.end+1&&(e+=1));c=To(c,e,g,b)}else e=Bo(d.$.end+1,b),e.end+1>c.g&&(e=new zo(e.start,c.g-1)),c=[new Oo(4,d.b,e)],c=new Uo(c);return c}function Vo(a){var b="i="+a.b.info.id;a.$&&(b=b+",r="+(a.$.start+a.j)+"-"+(a.$.start+a.j+a.g-1));return b=b+",t="+a.o.toFixed(1)+","+(a.o+a.D).toFixed(1)};function Uo(a,b){this.j=a[0].b.A;this.g=b||"";this.b=a;this.$=this.b[0].$&&0<this.b[0].g?Ro(this.b):null}function Wo(a){var b;if(Ci(a.g))b=a.g;else{b=a.j.b;var c=a.g;if(c){b=b.split("?");var c=c.split("?"),d=[];b[1]&&d.push(b[1]);c[1]&&d.push(c[1]);d=d.join("&");b=b[0];c[0]&&(b=b+"/"+c[0]);b=d?b+"?"+d:b}}return a.$?Eo(b,"range",a.$.toString()):b}function Xo(a){if(a.$)return a.$.length;a=a.b[0];return Math.round(a.D*a.b.info.ua)};function Yo(a,b,c,d,e){No.call(this,a,b);this.index=e||new Ho;this.k=d||null;this.B=c;this.g=!0}w(Yo,No);f=Yo.prototype;f.Kl=function(){return!1};f.Tr=function(){var a=new Oo(1,this,this.k);return[new Uo([a],this.B)]};function Zo(a,b){a.Dg(b);return $o(a,b.A?b.k+1:b.k,!1)}f.zi=function(a,b){var c=this.index.Tn(a);b&&(c=Math.min(this.index.jc(),c+1));return $o(this,c,!0)};f.bq=function(a){this.b=new Uint8Array(ap(a).buffer)};f.Xl=function(){return!1};f.lc=function(){return null!==this.b&&this.index.Bn()};
f.Dg=function(a){return this.index.jc()>a.k&&this.index.Rs()<=a.k+1};f.update=function(a,b,c){this.index.append(a);Ko(this.index,c);this.g=b};function $o(a,b,c){var d=a.index.Is(b),e=a.index.Ui(b),g=a.index.hj(b);c?g=c=0:c=0<a.info.ua?a.info.ua*g:1E3;a=new Oo(3,a,null,b,e,g,0,c,b==a.index.jc()&&!a.g&&0<c);return new Uo([a],d)};function bp(a,b){var c=cp(a,0,1836019558);if(!c)return null;var d=cp(a,c.b+8,1835427940),e=cp(a,c.b+8,1953653094);if(!d||!e)return null;var g=cp(a,e.b+8,1952868452),h=cp(a,e.b+8,1953658222),k=cp(a,e.b+8,1952867444);if(!g||!h||!k)return null;for(var l=cp(a,e.b+8,1935763823),e=cp(a,e.b+8,1935763834),p=dp(g),s=dp(g),t=p&2,y=p&1?ep(g):0,E=t?dp(g):0,A=p&8?dp(g):0,$=p&16?dp(g):0,Ma=p&32?dp(g):0,p=dp(h),Yc=p&1,vj=p&4,nw=p&256,g=p&512,ow=p&1024,pT=p&2048,p=dp(h),qT=Yc?dp(h):0,rT=vj?dp(h):0,Yc=[],KF=[],pw=
[],qw=[],LF=0,ne=0,Db=0;Db<p;Db++){var sT=nw?dp(h):A;g&&Yc.push(dp(h));var ag=Ma;vj&&0==Db?ag=rT:ow&&(ag=dp(h));KF.push(ag);ag=pT?dp(h):0;0==Db&&(LF=ag);pw.push(ne+ag);qw.push(Db);ne+=sT}Cb(qw,function(a,b){return pw[a]-pw[b]});h=[];for(Db=0;Db<p;Db++)h[qw[Db]]=Db;ne=t?4:0;Db=16*p;Ma=68+ne+k.size+Db+(l?l.size:0)+(e?e.size:0);A=new fp(Ma);gp(A,Ma);gp(A,1836019558);hp(A,d);gp(A,Ma-24);gp(A,1953653094);gp(A,16+ne);gp(A,1952868452);gp(A,131072|(t?2:0));gp(A,s);t&&gp(A,E);hp(A,k);gp(A,20+Db);gp(A,1953658222);
gp(A,16781057);gp(A,p);gp(A,y+qT+Ma-c.size);for(Db=ne=0;Db<p;Db++)d=h[Db],c=Math.round(b*d/p),d=Math.round(b*(d+1)/p)-c,ag=c-ne+LF,gp(A,d),gp(A,g?Yc[Db]:$),gp(A,KF[Db]),gp(A,ag),ne+=d;l&&hp(A,l);e&&hp(A,e);return A.data.buffer}function cp(a,b,c){for(;ip(a,b);){var d=jp(a,b);if(d.type==c)return d;b+=d.size}return null}function jp(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new kp(a,b,c,d)}function lp(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)}
function ip(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c)return!1;for(var d=4;8>d;d++){var e=a.getInt8(b+d);if(97>e||122<e)return!1}return a.byteLength-b>=c}function kp(a,b,c,d){this.data=a;this.b=b;this.size=c;this.type=d;this.g=8}function dp(a){var b=a.data.getInt32(a.b+a.g);a.g+=4;return b}function ep(a){var b=lp(a.data,a.b+a.g);a.g+=8;return b}kp.prototype.skip=function(a){this.g+=a};function fp(a){this.data=new DataView(new ArrayBuffer(a));this.b=0}
function gp(a,b){a.data.setInt32(a.b,b);a.b+=4}function hp(a,b){for(var c=0;c+4<=b.size;)gp(a,b.data.getUint32(b.b+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.b++,b.data.getUint8(b.b+c++))};function mp(a,b,c,d){this.info=a;this.buffer=b;this.$=c;this.b=d}function ap(a){return a.$?new DataView(a.buffer,a.$.start,a.$.length):new DataView(a.buffer)}function np(a){if(a.info.g!=a.$.length)return!1;if(1==a.info.b.info.b){if(8>a.info.g||4==a.info.type)return!0;var b=ap(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.g&&1936286840==b;if(3==a.info.type&&0==a.info.j)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b}return!0}
function op(a){var b;if(1==a.info.b.info.b){var c=NaN;b=NaN;var d=0;for(a=new DataView(a.buffer);ip(a,d);){var e=jp(a,d);1936286840==e.type?b=e.data.getUint32(e.b+16):1952867444==e.type&&(c=e,c=c.data.getUint8(c.b+8)?lp(c.data,c.b+12):c.data.getUint32(c.b+12));var g=e.type,d=1836019558==g||1953653094==g?d+8:d+e.size}b=c/b}else b=NaN;return b};function pp(){this.fa=0;this.b=new Float64Array(128);this.g=new Float64Array(128);this.k=1;this.j=!1}f=pp.prototype;f.Bj=function(a){return this.b[a]};f.Ui=function(a){return this.g[a]/this.k};f.hj=function(a){a=this.Ql(a);return 0<=a?a/this.k:-1};f.Ql=function(a){return a+1<this.fa||this.j?this.g[a+1]-this.g[a]:-1};f.Rs=function(){return 0};f.jc=function(){return this.fa-1};f.yf=function(){return this.j?this.g[this.fa]/this.k:NaN};f.rn=function(){return 0};f.Is=function(){return""};
f.Tn=function(a){a=Ab(this.g.subarray(0,this.fa),a*this.k);return 0<=a?a:Math.max(0,-a-2)};f.Bn=function(){return 0<=this.jc()};function qp(a){if(a.b.length<a.fa+1){var b=2*a.b.length,b=b+2,c=a.b;a.b=new Float64Array(b+1);var d=a.g;a.g=new Float64Array(b+1);for(b=0;b<a.fa+1;b++)a.b[b]=c[b],a.g[b]=d[b]}}function rp(a,b){this.g=a;this.b=0;this.j=b||0}function sp(a){for(var b=tp(a,!1);236==b;)up(a),b=tp(a,!1);return b}
function vp(a){var b=tp(a,!0),c=a.g.byteOffset+a.b,d=Math.min(b,a.g.buffer.byteLength-c),c=new DataView(a.g.buffer,c,d),c=new rp(c,a.j+a.b);a.b+=b;return c}function wp(a){for(var b=tp(a,!0),c=xp(a),d=1;d<b;d++)c=(c<<8)+xp(a);return c}function up(a){var b=tp(a,!0);a.b+=b}function tp(a,b){var c=xp(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+xp(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+xp(a),e*=128;return b?c-e:c}function xp(a){return a.g.getUint8(a.b++)};function yp(a,b,c,d,e){No.call(this,a,b);this.C=c;this.B=d;this.k=null;this.index=new pp;this.g=e}w(yp,No);f=yp.prototype;f.lc=function(){return!(!this.b||!this.index.Bn())};f.Tr=function(a){var b=new Oo(1,this,this.C),c=new Oo(2,this,this.B),d=[],e=[b];Qo(b,c)?e.push(c):(d.push(new Uo([c])),a=0);isNaN(this.g)?a=0:a>this.g&&(a=this.g);b=e[e.length-1];c=b.$.end-e[0].$.start+1;a>c&&(a=Bo(b.$.end+1,a-c),e.push(new Oo(4,this,a)));d.push(new Uo(e));return d};
f.bq=function(a){if(1==a.info.type){if(this.b)return;this.b=new Uint8Array(a.buffer,a.$.start,a.$.length)}else if(2==a.info.type){if(this.k||0<=this.index.jc())return;if(1==this.info.b){var b=this.index,c=ap(a),d=a.info.$.start;a=0;var e=c.getUint32(0,!1),g=c.getUint8(a+8);a+=12;var h=c.getUint32(a+4,!1);b.k=h;a+=8;0==g?(g=c.getUint32(a,!1),h=c.getUint32(a+4,!1),a+=8):(g=(c.getUint32(a,!1)<<32)+c.getUint32(a+4,!1),h=(c.getUint32(a+8,!1)<<32)+c.getUint32(a+12,!1),a+=16);b.b[0]=h+(e+d);b.g[0]=g;b.j=
!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){var k=c.getUint32(a,!1),h=c.getUint32(a+4,!1);a+=12;g=b;g.fa++;qp(g);g.b[g.fa]=g.b[g.fa-1]+k;g.g[g.fa]=g.g[g.fa-1]+h}}else this.k=ap(a)}if(qo(this.info)&&this.b&&this.k){c=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength);b=this.index;g=this.k;c=new rp(c);if(440786851==sp(c)&&(up(c),408125543==sp(c))){d=c;e=d.b;a=tp(d,!0);d.b=e;for(var c=vp(c),d=c.j+c.b,l=sp(c);357149030!=l;)up(c),l=sp(c);c=vp(c);h=1E6;k=1E9;for(e=0;!(c.b>=c.g.byteLength);)if(l=
sp(c),2807729==l)h=wp(c);else if(2807730==l)k=wp(c);else if(17545==l){var e=c,l=tp(e,!0),p=0;4==l?p=e.g.getFloat32(e.b):8==l&&(p=e.g.getFloat64(e.b));e.b+=l;e=p}else up(c);b.k=k/h;c=new rp(g);if(475249515==sp(c)){for(c=vp(c);!(c.b>=c.g.byteLength);)if(l=sp(c),187==l){g=vp(c);h=d;if(179!=sp(g))k=null;else if(k=wp(g),183!=sp(g))k=null;else{g=vp(g);for(l=h;!(g.b>=g.g.byteLength);)241==sp(g)?l=wp(g)+h:up(g);k=[l,k]}g=b;h=k[0];k=k[1];qp(g);g.b[g.fa]=h;g.g[g.fa]=k;g.fa++}else up(c);c=a+d;a=e;qp(b);b.j=
!0;b.g[b.fa]=a;b.b[b.fa]=c}}this.k=null}};function To(a,b,c,d){for(var e=[];b<=a.index.jc();b++){var g;g=a.index;var h=b;g=Bo(g.Bj(h),h+1<g.fa||g.j?g.b[h+1]-g.b[h]:-1);var h=a.index.Ui(b),k=a.index.hj(b),l=Math.max(0,c-g.start),p=Math.min(g.end+1,c+d)-(g.start+l);e.push(new Oo(3,a,g,b,h,k,l,p,b==a.index.jc()&&l+p==g.length));if(g.start+l+p>=c+d)break}return new Uo(e)}
f.Dr=function(a){for(var b=this.Hi(a.info),c=[],d=a.b,e=0;e<b.length;e++){var g=Bo(b[e].$.start+b[e].j-a.info.$.start+a.$.start,b[e].g);c.push(new mp(b[e],a.buffer,g,d));d=!1}return c};f.Hi=function(a){for(var b=0;b<this.index.jc()&&a.$.start>=this.index.Bj(b+1);)b++;return To(this,b,a.$.start,a.$.length).b};f.Dg=function(a){return this.lc()?!0:isNaN(this.g)?!1:a.$.end+1<this.g};f.zi=function(a,b){var c=this.index.Tn(a);b&&(c=Math.min(this.index.jc(),c+1));return To(this,c,this.index.Bj(c),0)};
f.Xl=function(){var a;if(a=this.lc()&&!isNaN(this.g))a=this.index,a=(a.j?a.b[a.fa]:-1)!=this.g;return a};f.Kl=function(){return!0};function zp(a){this.A=this.duration=0;this.g=!1;this.B=v();this.o=Infinity;this.b={};this.D=a||"";this.j=this.k=!1}function Ap(a){return Pb(a.b,function(a){return!!a.info.o},a)}var Bp=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;
function Cp(a,b){var c=new zp;z(a,function(a){var e=a.type,g=a.itag,h=null;to(e)&&(h=a.size.split("x"),h=new wo(parseInt(h[0],10),parseInt(h[1],10)));var k=null,l=null;if(so(e)){var k=new no,p=a.lang,s=a.acont;p&&s&&(l=a.name,g=g+":"+p+":"+s,l=new uo(l,0,s))}var p=parseInt(a.bitrate,10)/8,t=null;b&&a.drm_families&&(t={},z(a.drm_families.split(","),function(a){t[a]=b[a]}));e=new po(g,e,k,h,l,t,p);h=Ao(a.init);k=Ao(a.index);l=Dp(a.url,e,a.s);a=parseInt(a.clen,10);l&&(c.b[g]=new yp(l,e,h,k,a))});return c}
function Ep(a){if(!a)return 0;var b=Bp.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function Fp(a,b){for(var c=a;c;c=c.parentNode)if(c.attributes){var d=c.attributes[b];if(d)return d.value}return""}function Gp(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);if(0<d.length)return d[0]}return null}
function Dp(a,b,c){if(!hf(a))return"";var d={alr:"yes",ratebypass:"yes"};Co(a,"mime")||(d.mime=encodeURIComponent(b.mimeType.split(";")[0]));c&&(d.signature=mo(c));return Fo(a,d)}
function Hp(a){var b=Fp(a,"id");"captions"==b&&(b=Fp(a,"lang"));var c=Fp(a,"mimeType"),d=Fp(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(Fp(a,"bandwidth"),10)/8,e=null;to(c)&&(e=new wo(parseInt(Fp(a,"width"),10),parseInt(Fp(a,"height"),10)));var g=null,h=null;if(so(c)){g=new no;var h=Fp(a,"lang")||"",k=Gp(a,"Role");if(k){var k=Fp(k,"value")||"",l="invalid";"main"==k?l="original":"dub"==k?l="dubbed":"descriptive"==k?l="descriptive":"commentary"==k&&(l="commentary");h="invalid"!=l&&h?new uo(b,
0,l):null}else h=null}k=null;if(a=Gp(a,"ContentProtection"))if((k=a.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==k.textContent)for(k={},a=a.firstChild;null!=a;a=a.nextSibling)"yt:SystemURL"==a.nodeName&&(k[a.attributes.type.textContent]=a.textContent.trim());else k=null;return new po(b,c,g,e,h,k,d)}function Ip(a,b,c,d){a.k=!0;a={format:"RAW",method:"GET",ub:u(a.C,a,c,d||null)};Li(b,a)}
zp.prototype.C=function(a,b,c){if(200<=c.status&&400>c.status){b=c.responseText;c=(new DOMParser).parseFromString(b,"text/xml").getElementsByTagName("MPD")[0];b=c.getElementsByTagName("Representation");if(0<c.getElementsByTagName("SegmentList").length)for(this.o=1E3*Ep(Fp(c,"minimumUpdatePeriod"))||Infinity,this.g=Infinity>this.o,this.j=!0,this.A=parseInt(Fp(c,"yt:earliestMediaSequence"),10),c=0;c<b.length;c++){var d=Hp(b[c]);if(!this.b[d.id]){var e=Dp(Gp(b[c],"BaseURL").textContent,d),g=Gp(b[c],
"Initialization"),h=Fp(g,"sourceURL"),g=Ao(Fp(g,"range"));this.b[d.id]=new Yo(e,d,h,null===g?void 0:g)}var h=Gp(b[c],"SegmentList"),k=Gp(h,"SegmentTimeline"),e=k.getElementsByTagName("S"),h=h.getElementsByTagName("SegmentURL");g=this.g?(g=Fp(k,"start"))?Ep(g):0:0;var l;if(this.g){l=parseInt(Fp(k,"startNumber"),10)||0;var p=parseInt(Fp(k,"yt:earliestMediaSequence"),10);l<p&&(l=p)}else l=0;for(var k=parseInt(Fp(k,"timescale"),10)||1,p=[],s=0;s<h.length;s++){var t;t=l+s;var y=g,E=k,A=h[s],E=parseFloat(e[s].getAttribute("d"))/
E,$=A.getAttribute("media"),Ma=null,A=A.getAttribute("mediaRange");null!=A&&(0<=parseInt(A.split("-")[1],10)?Ma=Ao(A):$=$+"?range="+A);t=new Go(t,y,E,$,Ma);p.push(t);g+=t.duration}this.b[d.id].update(p,this.g,this.A)}else i:for(this.duration=Ep(Fp(c,"mediaPresentationDuration")),c=0;c<b.length;c++){g=b[c];d=Hp(g);h=Gp(g,"BaseURL");e=Dp(h.textContent,d);l=Gp(g,"SegmentBase");g=Ao(l.attributes.indexRange.value);l=Ao(l.getElementsByTagName("Initialization")[0].attributes.range.value);h=parseInt(h.getAttribute("yt:contentLength"),
10);d=new yp(e,d,l,g,h);if(!d)break i;this.b[d.info.id]=d}this.B=v();a&&a(this)}else b&&b(c);this.k=!1};function Jp(a){for(var b in a.b)if(a.b[b].index)return a.b[b].index.yf();return NaN}function Kp(a){for(var b in a.b)if(a.b[b].index)return a.b[b].index.rn();return 0}function Lp(a,b){Ob(a.b,function(a){a=a.A;a.b=Fo(a.b,b)})};function Mp(a,b){this.id=a;this.name=b}Mp.prototype.toString=function(){return this.name};function Np(a,b,c){this.g=a||0;this.b=b||0;this.j=c}Np.prototype.equals=function(a){return this.g==a.g&&this.b==a.b&&this.j==a.j};function Op(a,b,c){return new Np(vo[a]||0,vo[b]||0,c)}var Pp=Op("auto","large",!1),Qp=Op("auto","auto",!1);function Rp(a){var b=vo.auto;return a.g==b&&a.b==b}function Sp(a){return a.j&&!!a.g&&a.g==a.b}
function Tp(a,b){if(b.j&&Rp(b))return Qp;if(b.j||Rp(a))return b;if(a.j||Rp(b))return a;var c=a.g&&b.g?Math.max(a.g,b.g):a.g||b.g,d=a.b&&b.b?Math.min(a.b,b.b):a.b||b.b,c=Math.min(c,d);return c==a.g&&d==a.b?a:new Np(c,d,!1)}function Up(a){var b=a.b||a.g;return Xb(function(a){return vo[a]==b})||"auto"}Np.prototype.k=function(a){if(!a.video)return!1;a=vo[a.video.b];return this.g<=a&&(!this.b||this.b>=a)};function Vp(a,b){this.g=a;this.b=b||null}function Wp(a,b){var c=b||Qp,c=hb(a.g,u(c.k,c)),c=B(c,function(a){return a.video.b});zb(c);return c}function Xp(a){if(!a.b)return[];var b=[];z(a.b,function(a){a.k&&b.push(new Mp(a.id,a.k.name))});zb(b);return b};function Yp(a,b,c,d,e,g,h,k,l){this.k={};this.B=a;this.D=b;this.g=c;this.b=d;this.j=e;this.C=g;this.o=h;this.A=k;this.F=l}function Zp(a,b){var c=a.C,c=c.replace("$N",a.o),c=c.replace("$L",a.F.toString()),c=c.replace("$M",b.toString());a.A&&(c=ae(c,{sigh:a.A}));return c}function $p(a,b){var c=Math.floor(b/(a.b*a.j)),d=a.b*a.j,e=b%d,g=e%a.b,e=Math.floor(e/a.b),h=a.j,k=a.g-d*c;k<d&&(h=Math.ceil(k/a.b));return{url:Zp(a,c),gz:g,dj:a.b,row:e,rows:h,Hq:a.B*a.b,Gq:a.D*h}};function aq(a){var b=[];a=a.split("|");for(var c=a[0],d,e,g,h,k,l,p,s,t=1;t<a.length;t++)d=a[t].split("#"),e=t-1,g=parseInt(d[0],10),h=parseInt(d[1],10),180<=h||(k=parseInt(d[2],10),l=parseInt(d[3],10),p=parseInt(d[4],10),s=d[6],d=d[7],b.push(new Yp(g,h,k,l,p,c,s,d,e)));this.b=b;this.g={};1<this.b.length&&-1!=this.b[0].o.indexOf("default")&&this.b.splice(0,1)}function bq(a,b){var c=a.b[0].g-1;return Jb(Math.round(c*b),0,c)}
function cq(a,b){var c=a.g[b];if(c)return c;for(var c=a.b.length,d=0;d<c;d++)if(a.b[d].B>=b)return a.g[b]=d;a.g[b]=c-1;return c-1};var dq={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};var eq={zI:1,AI:2,BI:3};var fq;var gq=gc,gq=gq.toLowerCase();if(La(gq,"android")){var hq=gq.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(hq)fq=Number(hq[1]);else{var iq={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},jq=gq.match("("+Ub(iq).join("|")+")");fq=jq?iq[jq[0]]:0}}else fq=void 0;var kq,lq;function mq(){var a=q("yt.player.utils.videoElement_");a||(a=document.createElement("video"),ba("yt.player.utils.videoElement_",a,void 0));return a}function nq(){if(2.2==fq)return!0;var a=mq();try{return!(!a||!a.canPlayType||!a.canPlayType('video/mp4; codecs="avc1.42001E, mp4a.40.2"')&&!a.canPlayType('video/webm; codecs="vp8.0, vorbis"'))}catch(b){return!1}}
function oq(){var a=I("div",{"class":"html5-player-css-loaded"});document.body.appendChild(a);var b="none"==Nf(a,"display");gd(a);return b};function pq(){var a;if(void 0==kq&&(kq=!1,window.crypto&&window.crypto.getRandomValues))try{a=new Uint8Array(1),window.crypto.getRandomValues(a),kq=!0}catch(b){}if(kq){a=Array(16);var c=new Uint8Array(16);window.crypto.getRandomValues(c);for(var d=0;d<a.length;d++)a[d]=c[d]}else for(a=Array(16),c=0;16>c;c++){for(var d=v(),e=0;e<d%23;e++)a[c]=Math.random();a[c]=Math.floor(256*Math.random())}return a}
function qq(){for(var a=pq(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function rq(){return B(pq(),function(a){return(a&15).toString(16)}).join("")};function sq(a,b,c){b={cpn:b};c&&(b.ibw="1369843");return{url:ae(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};function tq(a,b){return void 0==b?a:"1"==b?!0:!1}function uq(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function vq(a,b){return void 0==b?a:Number(b)}function wq(a,b){return void 0==b?a:b.toString()}function xq(a,b){var c=wq(a,b);c&&(c=lf(c));return c}var yq=/^([0-9\.]+)\:([0-9\.]+)$/;function zq(a){if(a&&(a=a.match(yq))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function Aq(a,b){var c=vo.auto,d=vo[b];return d>=vo.medium?new Np(d,c,!1):d>=c?new Np(c,d,!1):a};var Bq,Cq=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},Dq=u(Cq.clearResourceTimings||Cq.webkitClearResourceTimings||Cq.mozClearResourceTimings||Cq.msClearResourceTimings||Cq.oClearResourceTimings||ca,Cq),Eq=Cq.mark?function(a){Cq.mark(a)}:ca;function Fq(a,b,c){Gq(c).tick[a]=b||v();b||Eq(a)}function Hq(a,b){var c=Gq(b).tick;return a in c}
var Jq="https:"===window.location.protocol&&ja(Cq.getEntriesByType)?function(a){var b={};Cq.getEntriesByType("resource").forEach(function(a){if(0===a.name.indexOf("https://s.ytimg.com/yts/")){var d=Iq[a.initiatorType];if(d&&d.extension.test(a.name)){var e=d.Uj,d=e+"t",e=e+"c";void 0===b[d]&&(b[d]=0,b[e]=0);b[d]++;0!==a.responseStart&&a.responseStart!==a.requestStart||b[e]++}}});Object.keys(b).forEach(function(c){a["cs"+c]=b[c]})}:ca;
function Kq(a){var b="https:"==window.location.protocol?"https://gg.google.com/csi":"http://csi.gstatic.com/csi",c="",d;for(d in a)c+="&"+d+"="+a[d];qf(b+"?"+c.substring(1))}function Lq(a){return Gq(a).info}function Gq(a){return q("ytcsi."+(a||"")+"data_")||Mq(a)}function Mq(a){var b={tick:{},span:{},info:{}};ba("ytcsi."+(a||"")+"data_",b,void 0);return b}var Iq={link:{Uj:"c",extension:/\.css$/},script:{Uj:"j",extension:/\.js$/},css:{Uj:"s",extension:/\.(?:webp|png)$/},"":{Uj:"f",extension:/\.swf$/}};var Nq,Oq;var Pq=gc,Qq=Pq.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Qq||2>Qq.length)Nq=void 0;else{var Rq=Pq.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Nq=Rq&&6==Rq.length?Number(Rq[5].replace("_",".")):0}(Oq=0<=Nq)&&0<=gc.search("Safari")&&gc.search("Version");var Sq={vI:0,FH:1,kI:2};function Tq(a,b,c){c=c||{};Ri(c.Sa,c.$a,u(Uq,m,a,b,c),c.onError)}
function Uq(a,b,c){var d={};0===b?d.action_like_video=1:1===b?d.action_dislike_video=1:d.action_indifferent_video=1;d.video_id=a;d.plid=c.xb;c.La&&(d.list=c.La);c.Sa&&(d.authuser=c.Sa);c.$a&&(d.pageid=c.$a);a={screen:Zd({h:screen.height,w:screen.width,d:screen.colorDepth}),session_token:We("XSRF_TOKEN")};c.AD&&(a.station_id=c.AD);Li("/watch_actions_ajax",{format:"XML",method:"POST",Ih:d,fd:a,onSuccess:c.onSuccess,onError:c.onError,ub:c.ub})};var Vq=[.25,.5,1,1.25,1.5,2];function Wq(a){this.b=(a||"").split(",");var b={};z(this.b,function(a){b[a]=!0});this.ya=!!b["925900"];this.C=!!b["913424"];this.A=!!b["932250"];this.wa=!!b["945000"];this.zb=!!b["945004"];this.N=!!b["945005"];this.U=!!b["945025"];this.V=!!b["945035"];this.F=!!b["945042"];this.O=!!b["945045"];this.I=!!b["945056"];this.qa=!!b["945058"];this.la=!!b["945059"];this.oa=!!b["945060"];this.Ca=!!b["945062"];this.xa=!!b["945063"];this.Wc=!!b["945064"];this.L=!!b["945065"];this.ca=!!b["927845"];this.P=!!b["936926"];
this.B=!!b["913430"];this.k=!(!b["926301"]&&!b["926305"]);this.g=!!b["926304"];this.D=!!b["931972"];this.j=!!b["907252"];this.ea=!!b["927877"];this.T=!!b["943602"];this.M=!!b["907253"];this.aa=!!b["939937"];this.o=!(!b["924220"]&&!b["924222"]);this.za=!!b["913436"]};function Xq(a,b){this.b=a;this.g=b}Xq.prototype.clone=function(){return new Xq(this.b,this.g)};function Yq(a){this.b=[];if(a)t:{var b,c;if(a instanceof Yq){if(b=a.Ma(),c=a.Qa(),0>=a.Na()){a=this.b;for(var d=0;d<b.length;d++)a.push(new Xq(b[d],c[d]));break t}}else b=Ub(a),c=Tb(a);for(d=0;d<b.length;d++)Zq(this,b[d],c[d])}}function Zq(a,b,c){var d=a.b;d.push(new Xq(b,c));b=d.length-1;a=a.b;for(c=a[b];0<b;)if(d=b-1>>1,a[d].b>c.b)a[b]=a[d],b=d;else break;a[b]=c}f=Yq.prototype;
f.remove=function(){var a=this.b,b=a.length,c=a[0];if(!(0>=b)){if(1==b)pb(a);else{a[0]=a.pop();for(var a=0,b=this.b,d=b.length,e=b[a];a<d>>1;){var g=2*a+1,h=2*a+2,g=h<d&&b[h].b<b[g].b?h:g;if(b[g].b>e.b)break;b[a]=b[g];a=g}b[a]=e}return c.g}};f.Qa=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].g);return b};f.Ma=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].b);return b};f.kg=function(a){return jb(this.b,function(b){return b.g==a})};f.clone=function(){return new Yq(this)};
f.Na=function(){return this.b.length};f.isEmpty=function(){return D(this.b)};f.clear=function(){pb(this.b)};function $q(){Yq.call(this)}w($q,Yq);function ar(a,b){ej.call(this);this.b=a;this.j=new $q;this.o={};this.k=b||""}w(ar,ej);ar.prototype.g=!1;function br(a,b,c){var d;for(c=cq(a.b,c);0<=c;){d=a.b.b[c];if(d=d.k[Math.floor(b/(d.b*d.j))]?$p(d,b):null)return d;c--}return $p(a.b.b[0],b)}function cr(a){if(!a.g)if(a.j.isEmpty())a.g=!1;else{a.g=!0;var b=a.j.remove(),c=new Image;a.k&&(c.crossOrigin=a.k);c.src=Zp(a.b.b[b.Op],b.Pp);c.onload=u(a.A,a,b.Op,b.Pp)}}
ar.prototype.A=function(a,b){this.g=!1;var c=this.b.b[a];c.k[b]=!0;cr(this);var d,e=c.b*c.j;d=b*e;c=Math.min(d+e-1,c.g-1);d=[d,c];this.H("l",d[0],d[1])};function dr(a,b,c){this.g=a;this.b=b;this.j=c}var er={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},fr=["widevine","playready"];function gr(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null}
function hr(a,b,c){var d,e=gr();if(e)d=function(a,b){return e.isTypeSupported(b,a)};else if(a.addKey||a.webkitAddKey)d=function(b,c){return a.canPlayType(b,c)};else return null;for(var g=0;g<fr.length;g++){var h=fr[g];if(c[h])for(var k=er[h],l=0;l<k.length;l++){var p=k[l];if(d(b,p)||0==b.indexOf("audio/mp4")&&"widevine"==h&&a.canPlayType(b)&&a.canPlayType('video/mp4; codecs="avc1"',p))return new dr(h,p,c[h])}}return null};function ir(a,b){this.b=a;this.j=b;this.k=0;Object.defineProperty(this,"timestampOffset",{get:this.xA,set:this.yA});Object.defineProperty(this,"buffered",{get:this.wA})}f=ir.prototype;f.append=function(a){this.b.webkitSourceAppend(this.j,a)};f.abort=function(){this.b.webkitSourceAbort(this.j)};f.wA=function(){return this.b.webkitSourceState==this.b.SOURCE_CLOSED?new jr:this.b.webkitSourceBuffered(this.j)};f.xA=function(){return this.k};
f.yA=function(a){this.k=a;this.b.webkitSourceTimestampOffset(this.j,a)};function jr(){this.length=0};function kr(a){this.activeSourceBuffers=this.sourceBuffers=[];this.b=a;this.g=NaN;this.j=0;Object.defineProperty(this,"duration",{get:this.Xz,set:this.$z});Object.defineProperty(this,"readyState",{get:this.Yz});this.b.addEventListener("webkitsourceclose",u(this.Zz,this),!0)}f=kr.prototype;f.addEventListener=function(a,b,c){this.b.addEventListener(a,b,c)};f.sB=function(){return this.b.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.j++).toString();this.b.webkitSourceAddId(b,a);a=new ir(this.b,b);this.sourceBuffers.push(a);return a};f.Yz=function(){switch(this.b.webkitSourceState){case this.b.SOURCE_CLOSED:return"closed";case this.b.SOURCE_OPEN:return"open";case this.b.SOURCE_ENDED:return"ended"}return""};f.endOfStream=function(a){var b=this.b.EOS_NO_ERROR;"network"==a?b=this.b.EOS_NETWORK_ERR:"decode"==a&&(b=this.b.EOS_DECODE_ERR);this.b.webkitSourceEndOfStream(b)};f.Zz=function(){pb(this.sourceBuffers)};
f.Xz=function(){return this.g};f.$z=function(a){this.g=a;this.b.webkitSourceSetDuration&&this.b.webkitSourceSetDuration(a)};function lr(a){this.k=[];this.F=a||null}function mr(a,b,c,d){for(var e=0;e<c.length;e++)a.listen(b,c[e],d)}lr.prototype.listen=function(a,b,c){c=u(c,this.F||this);a.addEventListener(b,c,!1);this.k.push(a,b,c)};lr.prototype.removeAll=function(){if(this.k)for(;this.k.length;){var a=this.k.shift(),b=this.k.shift(),c=this.k.shift();a.removeEventListener&&a.removeEventListener(b,c)}};lr.prototype.ga=function(){return null===this.k};lr.prototype.dispose=function(){this.removeAll();this.k=null};var nr=oh||ph;function or(){return pr("(ps3; leanback shell)")}function pr(a){var b=gc;return b?0<=b.toLowerCase().indexOf(a.toLowerCase()):!1};function qr(a,b,c,d){lr.call(this);this.g=this.b=null;this.A=b;this.j=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new kr(a);this.o="";this.B=null;mr(this,this.j,["sourceopen","webkitsourceopen"],qa(this.D,d,c));mr(this,this.j,["sourceclose","webkitsourceclose"],this.C)}w(qr,lr);function rr(a,b){a.B=b}function sr(a){if(!a.o){var b;b=a.j;b=b.sB?b.b.webkitMediaSourceURL:window.URL.createObjectURL(b);a.o=b}return a.o}
qr.prototype.wf=function(a){tr(this)?this.j.duration=a:this.A=a};function tr(a){return"open"==a.j.readyState}function ur(a){return"closed"==a.j.readyState}function vr(a){return a.b.updating||a.g.updating}function wr(a){return a.b?!!a.b.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}qr.prototype.D=function(a,b){isNaN(this.A)||(this.j.duration=this.A,this.A=NaN,this.b=this.j.addSourceBuffer(a),this.g=this.j.addSourceBuffer(b),this.B&&(this.B(this),this.B=null))};
qr.prototype.C=function(){this.dispose()};qr.prototype.dispose=function(){var a=this.o;if(a)try{window.URL.revokeObjectURL(a)}catch(b){}this.o="";qr.G.dispose.call(this)};function xr(a){if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if('video/webm; codecs="vp9"'==a&&!pr("(ps4; leanback shell)"))return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!mq().canPlayType(a)};function yr(a,b,c,d){this.b=c;this.j=a;this.o=d||"";this.k=b;this.g={}}function zr(a){if(a.b)a=a.j;else if(a.k){var b=Ae(new J(a.j),"id"),b="http://www.youtube.com/api/manifest/t2b/source/youtube/id/"+encodeURIComponent(b),b=b+("/itag/"+a.o),b=b+"/mfmt/amf";a=ke(new J(ae(a.j,a.g)),b).toString()}else a=ae(a.j,a.g);return a};function Ar(a,b){this.b=new yr(a,b.id in Br&&or(),!1,b.id);this.dg=b}var Cr="9h8(H*".split(""),Dr="h98(H*".split(""),Er=["M","a","v","A","V"];Ar.prototype.getInfo=function(){return this.dg};Ar.prototype.Qn=function(){return this.dg.video.b};var Fr={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Gr={"application/x-mpegURL":"maybe"},Hr={"application/x-mpegURL":"maybe"};
function Ir(a,b){if(!nq())return[];var c=Jr(a,b);a=!c.length&&b?Jr(a,!1):c;for(var d={},c=mq(),e=0;e<a.length;e++){var g=a[e];if(Kr(c,g.getInfo().mimeType)&&!(g.dg.id in Lr||or()&&"5"==g.dg.id)){var h=g.Qn();if(!d[h]||qo(d[h].getInfo()))d[h]=g}}var k=[];z(xo,function(a){(g=d[a])&&k.push(g)});return k}function Kr(a,b){var c;if(!(c=a.canPlayType(b))){var d;ph?d=Hr[b]:2.2==fq?d=Fr[b]:pr("android")&&pr("chrome")&&(d=Gr[b]);c=d||""}return c}
function Mr(){return pr("android")&&pr("chrome")&&!Cc(29)?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var Br={5:!0,34:!0,35:!0},Lr={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function Nr(a){var b=[];z(a,function(a){a.url&&b.push(Or(a.url,a.type,"medium","0"))});return b}
function Or(a,b,c,d,e){var g=new no,h=yo[c];h||(c="small",h=yo.small);c=new wo(h[0],h[1],e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new Ar(a,new po(d,b,g,c))}function Jr(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d],g;if(g=sc&&0!=e.dg.video.g)g=1==e.getInfo().b;g||0!=e.dg.video.g==b&&c.push(e)}return c}
function Pr(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||mo(e.s);e.url=Ei(e.url,{signature:g})}e.url&&c.push(Or(e.url,e.type,e.quality,e.itag,e.stereo3d))}return Ir(c,!!b)}function Qr(a){a=Nr(a);return Ir(a,!1)}function Rr(a,b){if(!b.b)return a[0];for(var c=0;c<a.length;c++){var d=a[c].getInfo();if(vo[d.video.b]<=b.b)return a[c]}return a[a.length-1]}
function Sr(a){function b(a){return!!c[a]}var c={},d,e;for(e in a.b){var g=a.b[e];if(xr(g.info.mimeType)){if(g.info.o){d||(d=mq());if(!hr(d,g.info.mimeType,g.info.o))continue;if(261==g.info.id&&(or()||!d.canPlayType('audio/mp4; codecs="aac51"',"com.widevine.alpha")))continue}c[g.info.j]=c[g.info.j]||[];c[g.info.j].push(g.info)}}a=Cr;if(pr("cros armv7")||pr("windows nt 5.1"))a=Dr;d=lb(a,b);a=lb(Er,b);if(!d||!a)return null;"9"==d&&c.h&&(e=function(a,b){return Math.max(a,b.video.height)},g=ib(c["9"],
e,0),ib(c.h,e,0)>1.5*g&&(d="h"));d=c[d];a=c[a];Cb(d,function(a,b){return b.video.width-a.video.width||b.ua-a.ua});Cb(a,function(a,b){return b.ua-a.ua});return new Vp(d,a)};function Tr(a){ej.call(this);this.Wa=new G(0,0);this.la=!1;this.D=[];this.k={};this.Ia={};this.o={};Ur(this,a)}w(Tr,ej);Tr.A=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Tr.b=1;Tr.j=-21;Tr.o=18E3;Tr.k="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords requires_purchase rvs sentiment subscribed title ttsurl ypc_buy_url ypc_full_video_length ypc_item_thumbnail ypc_item_title ypc_item_url ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_preview ypc_price_string ypc_video_rental_bar_text".split(" ");
Tr.g=["www.youtube.com","manifest.googlevideo.com"];f=Tr.prototype;f.Y=!1;f.Um="";f.xr=null;f.qq=!0;f.nb=!1;f.Ym="";f.Xm="";f.uk=!1;f.pq=Tr.b;f.Qh=null;f.Vo=null;f.th="";f.pg=0;f.Zl=!1;f.ao=3;f.wr=!1;f.Of="";f.Da="";f.re=0;f.xk=!1;f.ai=!1;f.rk=!1;f.vf=0;f.Me=!1;f.Ao=!1;f.Oh=0;f.rg=!1;f.wo=!0;f.qk=!1;f.Jm=!1;f.hm=!1;f.Za=!1;f.Km=!1;f.gm=!1;f.se=!1;f.ip=!1;f.Lm=!1;f.qv=0;f.Oa=0;f.Xj=0;f.Ns=!1;f.Gm="";f.pm=!1;f.fk=!1;f.jm=Qp;f.Po=0;f.Dk=!1;f.Ta=0;f.Vj=null;f.lm=2;f.tf=Qp;f.Xr=!1;f.Pf=!1;f.te=null;
f.title="";f.ve="";f.Kn=null;f.$j="vvt";f.Os=!1;f.xo=!1;f.clipStart=0;f.clipEnd=Infinity;
function Vr(a,b){var c=b||{};c.iv_invideo_url&&(a.Ym=lf(c.iv_invideo_url));c.iv_cta_url&&(a.Xm=lf(c.iv_cta_url));c.cta_conversion_urls&&(a.jb=c.cta_conversion_urls);a.th=wq(a.th,c.author);a.Zl=tq(a.Zl,c.cc_asr);var d=c.ttsurl||a.Of;d&&ff(d)?a.Of=d:a.Of=xq(a.Of,c.ttsurl);a.Da=wq(a.Da,c.cpn);a.I=wq(a.I,c.subscribed);a.lm=uq(a.lm,c.sentiment,Sq);a.title=wq(a.title,c.title);a.ya=wq(a.ya,c.ypc_preview);a.Ns=tq(a.Ns,c.paygated);a.Os=tq(a.Os,c.requires_purchase);c.keywords&&(a.Ia=Wr(c.keywords));c.rvs&&
(a.L=Xr(c.rvs));c.poster&&(a.Gm=c.poster);z(Tr.k,function(a){a in c&&(this.k[a]=c[a])},a)}
function Ur(a,b){var c=b||{};a.nb="1"!=c.hlsdvr||sh||ph&&5>Nq?!1:!0;a.uk="1"==c.infringe||"1"==c.muted;a.mb=c.authkey;a.Sa=c.authuser;a.Da||(a.Da=c.cpn||qq());a.Nx=v();a.Wj=c.t;a.xk=tq(a.xk,c.cenchd);a.ai=tq(a.ai,c.enable_cardio);a.rk=tq(a.rk,c.enable_cardio_before_playback);a.vf=vq(a.vf,c.end||c.endSeconds);a.wo="1"!=c.no_get_video_log;a.qk="1"==c.tmi;a.Jm=tq(a.Jm,c.noiba);a.hm="1"==c.livemonitor;a.Za="1"==c.live_playback;a.Km=tq(a.Km,c.mdx);a.gm=tq(a.gm,c.on3g);a.Lm=tq(a.Lm,c.utpsa);a.ac=c.iurlmaxres_webp||
c.iurlmaxres;a.B=wq(a.B,c.oauth_token);a.C=wq(a.C,c.vvt);a.Zj=c.osig;a.Vc=c.ptchn;a.Md=c.oid;a.P=c.ptk;a.Ld=c.pltype;a.xb=c.plid;a.A=c.eventid;a.eb=c.osid;a.La=wq(a.La,c.list);a.kf=c.pyv_view_beacon_url;a.bk=c.pyv_quartile25_beacon_url;a.ek=c.pyv_quartile50_beacon_url;a.ck=c.pyv_quartile75_beacon_url;a.ak=c.pyv_quartile100_beacon_url;a.Yj=c.purchase_id;a.mf=c.sdetail;!a.Ha&&c.session_data&&(a.Ha=yi(c.session_data,"&").feature);a.wb=1==vq(a.wb?1:0,c.is_fling);a.gb=wq(a.gb,c.ctrl);a.hb=wq(a.hb,c.ytr);
a.of=c.iurlsd_webp||c.iurlsd;a.xo="1"==c.skip_kansas_logging;a.jm=Aq(a.jm,c.vq);a.tf=Aq(a.tf,c.suggestedQuality);a.EB=c.approx_threed_layout||0;a.Xr="1"==c.threed_converted;a.xa=c.iurl_webp||c.iurl;a.Ta=vq(a.Ta,c.start||c.startSeconds);a.Ph=tq(a.Ph,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId;a.pf=wq(a.pf,c.vss_credentials_token);a.$j=wq(a.$j,c.vss_credentials_token_type);Yr(a,c.watermark);a.jf=wq(a.jf,c.ypc_gid);a.lf=wq(a.lf,c.ypc_license_session_token);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?
(a.Y=!0,"1"==c.ad_preroll&&a.D.push("ad")):"1"!=c.supported_without_ads&&(a.Ao=!0);c.adaptive_fmts&&(a.Um=c.adaptive_fmts);c.license_info&&(a.xr=Zr(c.license_info));c.allow_embed&&(a.qq="1"==c.allow_embed);c.autoplay&&(a.rg="1"==c.autoplay);c.iv_load_policy&&(a.za=$r(c.iv_load_policy,a.za));c.cc_load_policy&&(a.ao=$r(c.cc_load_policy,2));"0"==c.dash&&(a.wr=!0);if(c.dashmpd){a.O=ae(c.dashmpd,{cpn:a.Da});var d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.O);e&&(e=mo(e[1]),a.O=a.O.replace(d,"/signature/"+e))}c.delay&&
(a.re=$a(c.delay));c.idpj&&(a.Oh=$a(c.idpj));c.url_encoded_fmt_stream_map&&(a.ve=c.url_encoded_fmt_stream_map);c.hlsvp&&(a.aa=c.hlsvp);c.length_seconds&&(a.Oa=$a(c.length_seconds));c.ldpj&&(a.Xj=$a(c.ldpj));c.loudness&&(a.nf=c.loudness,a.pq=as(a));c.partnerid&&(a.U=$a(c.partnerid));c.probe_url&&(a.hf=mf(ae(c.probe_url,{cpn:a.Da})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(Ne)&&(a.T=c.pyv_billable_url);c.pyv_conv_url&&-1!=c.pyv_conv_url.search(Ne)&&(a.qa=c.pyv_conv_url);c.url_encoded_third_party_media&&
(a.te=Xr(c.url_encoded_third_party_media));c.threed_module&&!c.threed_converted&&(a.wa=c.threed_module,a.Ox=6);if("1"==c.track_embed||c.tk)a.fk=!0;c.two_stage_token&&(a.Qh=c.two_stage_token);c.watch_ajax_token&&(a.Vo=c.watch_ajax_token);c.fresca_preroll&&a.D.push("fresca");c.ypc_module&&a.D.push("ypc");c.ypc_clickwrap_module&&a.D.push("ypc_clickwrap");c.spacecast_address&&(a.D.push("spacecast"),a.Ra=c.spacecast_address);void 0==c.start||"1"==c.resume||a.Za||(a.clipStart=c.start);void 0!=c.end&&(a.clipEnd=
c.end);void 0!=c.atc&&(a.ea=c.atc);a.gf=wq(a.gf,c.ucid);z("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.o[a]=c[a])},a);a.o.focEnabled=tq(a.o.focEnabled,c.focEnabled);a.o.rmktEnabled=tq(a.o.rmktEnabled,c.rmktEnabled);a.k=c;Vr(a,c);bs(a)}function bs(a){(a.Za||a.hm)&&"1"==a.k.as3fb||!Mr()||a.wr||(a.Um?a.j=Cp(cs(a,a.Um),a.xr):a.O&&(a.Me=!0,a.la=!0))}f.Wz=function(a){if(!this.ga()){if(this.j=a)this.Oa=this.j.duration||this.Oa;this.fm()}};
f.fm=function(){this.ga()||(this.Me=!1,this.H("dataloaded",this.k))};function ds(a){if(!a.ga()){a.g=null;a.V=null;a.F=null;if(a.ca){var b=cs(a,a.ca);a.F=Pr(b,!1);a.g=new Vp(B(a.F,function(a){return a.getInfo()}))}!a.g&&a.j&&(a.g=Sr(a.j));if(!a.g){if(a.te&&a.ip)a.F=Qr(a.te);else{b=cs(a,a.ve);if(a.aa){var c=sq(a.aa,a.Da,!a.gm);b.push(c)}a.F=Pr(b,!!a.wa||a.Pf)}a.F.length&&(a.g=new Vp(B(a.F,function(a){return a.getInfo()})))}a.Po=Math.min(.8*a.Oa,180)}}function es(a){return a.b&&a.b.o||null}
function fs(a,b){return r(a.Ia[b])?a.Ia[b]:null}function gs(a){!a.Kn&&a.k.storyboard_spec&&(a.Kn=new aq(a.k.storyboard_spec));return a.Kn}function hs(a){var b=gs(a);!a.Vj&&b&&(a.Vj=new ar(b),R(a,a.Vj));return a.Vj}function is(a){return!a.ga()&&!(!a.videoId&&!a.te)}function js(a){return is(a)&&!a.Me&&!a.la&&(!!(a.j||a.ve||a.te||a.ca||a.aa)||C(a.D,"fresca")||C(a.D,"ypc"))}function ks(a,b){var c={format:"RAW",method:"GET",context:a,onSuccess:a.eE,onError:a.dE};a.Me=!0;Li(b,c);Fq("vir")}
function as(a){return a.nf?(a=Math.min(Tr.j-a.nf,0),Math.pow(10,a/20)):Tr.b}f.eE=function(a){this.ga()||(this.Me=!1,a=Ai(a.responseText),"fail"==a.status?this.H("onStatusFail",a):(Fq("virc"),Ur(this,a),this.fm()))};f.dE=function(){this.ga()||(this.Me=!1,this.H("onStatusFail",{errorcode:"manifest.net",reason:""}))};function $r(a,b){var c=parseInt(a,10);return Vb(eq,c)?c:b}function Xr(a){a=a.split(",");return a=a.map(function(a){return Ai(a)})}
function cs(a,b){var c=Xr(b);z(c,function(a){a.url&&(a.url=ae(a.url,{cpn:this.Da}))},a);return c}function Wr(a){var b={};z(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});return b}function Yr(a,b){if(b){var c=b.split(",");2<=c.length&&(a.oa=c[1],-1!=a.oa.search(Tr.A)&&(a.oa=""))}}function Zr(a){a=Xr(a);var b={};z(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}function ls(a,b){return!!a.k[b]}function ms(a){return a.Za&&!a.nb}
function ns(a){return a.Za&&a.nb};function os(a,b){this.type=a||"";this.id=b||""}function ps(a){return new os(a.substr(0,2),a.substr(2))}os.prototype.toString=function(){return this.type+this.id};function qs(a){ej.call(this);this.views=0;this.b=[];this.g=[];this.Ga=Math.max(0,a.index||0);this.Uf=!!a.loop;this.Im=a.startSeconds||0;this.Pq="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";a.video_id&&(this.b[this.Ga]=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":rs(this,a.list);break;case "user_favorites":ss(this,a.list);break;case "search":ts(this,a.list);break;default:a.playlist_length&&
(this.sc=a.playlist_length),this.j=ps(a.list),0==a.fetch&&a.videoList?us(this,a.videoList):vs(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.Ga&&(this.b=[]);z(b,function(a){a&&this.b.push({video_id:a})},this);this.sc=this.b.length;b=B(this.b,function(a){return a.video_id});ws(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.ce=!0}else a.videoList&&us(this,a.videoList);xs(this,!!a.shuffle)}w(qs,ej);f=qs.prototype;f.Uf=!1;f.Im=0;f.Er=!1;
f.Ga=0;f.title="";f.sc=0;f.Pq=!1;f.ce=!1;f.Dh=!1;f.Le=null;function ys(a){return a.Uf||a.Ga+1<a.sc}function zs(a){if(++a.Ga>=a.sc)if(a.Uf)a.Ga=0;else return null;As(a,a.Ga);return Bs(a,a.Ga)}function Cs(a){if(0>--a.Ga)if(a.Uf)a.Ga=a.sc-1;else return null;As(a,a.Ga);return Bs(a,a.Ga)}function Bs(a,b){var c=void 0!=b?b:a.Ga,c=a.b&&c in a.b?a.b[a.g[c]]:null,d=null;c&&(d=new Tr(c),d.Ta=a.Im||d.clipStart||0,a.j&&(d.La=a.j.toString()));return d}
function xs(a,b){a.Er=b;var c=a.g&&null!=a.g[a.Ga]?a.g[a.Ga]:a.Ga;a.g=[];for(var d=0;d<a.b.length;d++)a.g.push(d);a.Ga=c;if(a.Er){c=a.g[a.Ga];for(d=1;d<a.g.length;d++){var e=Math.floor(Math.random()*(d+1)),g=a.g[d];a.g[d]=a.g[e];a.g[e]=g}for(d=0;d<a.g.length;d++)a.g[d]==c&&(a.Ga=d)}a.H("shuffle")}function As(a,b){a.Ga=Jb(b,0,a.sc-1);a.Im=0}function rs(a,b){a.Dh||(a.j=new os("UU","PLAYER_"+b),ws(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}
function ss(a,b){a.Dh||(a.j=new os("FL","PLAYER_"+b),ws(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function ts(a,b){if(!a.Dh){a.j=new os("SR",b);var c={search_query:b};a.Pq&&(c.mob="1");ws(a,"/search_ajax?style=json&embeddable=1",c)}}function vs(a){if(!a.Dh){var b={list:a.j},c=Bs(a);c&&c.videoId&&(b.v=c.videoId);ws(a,"/list_ajax?style=json&action_get_list=1",b)}}function ws(a,b,c){Li(ae(b,c),{format:"JSON",onSuccess:function(a,b){Ds(this,b)},context:a})}
function Ds(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;var c=Bs(a);a.b=[];z(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.b.push(a))},a);a.sc=a.b.length;Es(a,c);xs(a,!1);a.Dh=!1;a.ce=!0;a.Le&&a.Le()}}function us(a,b){0<a.Ga&&(a.b=[]);z(b,function(a){this.b.push(a)},a);a.sc=a.b.length;a.ce=!0}function Es(a,b){if(b){var c=b.videoId;if(!a.b[a.Ga]||a.b[a.Ga].video_id!=c)for(var d=0;d<a.b.length;d++)if(a.b[d].video_id==c){a.Ga=d;break}}}
f.J=function(){this.Le=null;Qh(this.b);qs.G.J.call(this)};function Fs(){var a={volume:100,muted:!1},b=ui("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Jb(b.volume,0,100);a.muted=void 0==b.muted?!1:b.muted;return a};function Gs(a,b,c){r(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=a;c=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);b.videoId=c&&c[2]?c[2]:null;return Hs(a)}function Hs(a,b,c){if(ka(a)){b="endSeconds startSeconds mediaContentUrl suggestedQuality videoId two_stage_token".split(" ");c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}};function Is(a,b){this.app=a;this.g=null;this.k={};this.o={};this.B={};this.A={};this.j=null;this.b=b;U(this,"cueVideoById",this.Jv);U(this,"loadVideoById",this.al);U(this,"cueVideoByUrl",this.Kv);U(this,"loadVideoByUrl",this.cw);U(this,"playVideo",this.Mg);U(this,"pauseVideo",this.pauseVideo);U(this,"stopVideo",this.Hk);U(this,"clearVideo",this.Hv);U(this,"getVideoBytesLoaded",this.Uv);U(this,"getVideoBytesTotal",this.Vv);U(this,"getVideoLoadedFraction",this.El);U(this,"getVideoStartBytes",this.Xv);
U(this,"cuePlaylist",this.Iv);U(this,"loadPlaylist",this.bw);U(this,"nextVideo",this.dw);U(this,"previousVideo",this.ew);U(this,"playVideoAt",this.zp);U(this,"setShuffle",this.lw);U(this,"setLoop",this.iw);U(this,"getPlaylist",this.hc);U(this,"getPlaylistIndex",this.vp);U(this,"getPlaylistId",this.wp);U(this,"loadModule",this.aw);U(this,"unloadModule",this.yp);U(this,"setOption",this.xp);U(this,"getOption",this.mi);U(this,"getOptions",this.Qv);U(this,"mute",this.Yo);U(this,"unMute",this.Zo);U(this,
"isMuted",this.Xo);U(this,"setVolume",this.setVolume);U(this,"getVolume",this.Wo);U(this,"seekTo",this.Ng);U(this,"getPlayerState",this.getPlayerState);U(this,"getPlaybackRate",this.Sv);U(this,"setPlaybackRate",this.kw);U(this,"getAvailablePlaybackRates",this.Mv);U(this,"getPlaybackQuality",this.Rv);U(this,"setPlaybackQuality",this.rp);U(this,"getAvailableQualityLevels",this.Nv);U(this,"getCurrentTime",this.getCurrentTime);U(this,"getDuration",this.Ag);U(this,"addEventListener",this.addEventListener);
U(this,"removeEventListener",this.removeEventListener);U(this,"getVideoUrl",this.Yv);U(this,"getDebugText",this.Ov);U(this,"getVideoEmbedCode",this.Wv);U(this,"getVideoData",this.getVideoData);U(this,"addCueRange",this.Ap);U(this,"removeCueRange",this.fw);U(this,"setSize",this.mw);U(this,"getApiInterface",this.Lv);U(this,"destroy",this.destroy);U(this,"showVideoInfo",this.ow);U(this,"hideVideoInfo",this.Zv);Js(this,"getInternalApiInterface",this.Pv);Js(this,"getAdState",this.getAdState);Js(this,"isNotServable",
this.$v);Js(this,"getUpdatedConfigurationData",this.Tv);Js(this,"updateRemoteReceivers",this.qw);Js(this,"sendAbandonmentPing",this.gw);Js(this,"setAutonav",this.hw);Js(this,"setMinimized",this.jw);Js(this,"channelSubscribed",ca);Js(this,"channelUnsubscribed",ca)}w(Is,Mh);function U(a,b,c){a.k[b]=u(c,a)}function Js(a,b,c){a.o[b]=u(c,a)}f=Is.prototype;f.Lv=function(){return Ub(this.k)};f.Pv=function(){return Ub(this.o)};f.K=function(){return this.g};
f.addEventListener=function(a,b){var c=b;r(b)&&(c=function(){q(b).apply(window,arguments)},this.B[b]=c);this.app.subscribe(a,c)};f.Pu=function(a,b){var c=r(b)?a+b:a+la(b);if(!this.A[c]){r(b)&&(b=function(){q(b).apply(window,arguments)});var d=u(function(a){b({target:this.j,data:a})},this);this.A[c]=d;this.addEventListener(a,d)}};f.removeEventListener=function(a,b){var c=b;if(r(b)&&b in this.B){var c=this.B[b],d=this.B;b in d&&delete d[b]}this.app.ha(a,c)};
f.Qu=function(a,b){var c=r(b)?a+b:a+la(b);this.A[c]&&this.removeEventListener(a,this.A[c])};f.getPlayerState=function(){return this.app.qa};f.Ng=function(a,b){Ks(this.app,!0,this.b);Ls(this.app,a,b,void 0,this.b)};f.getCurrentTime=function(){return this.app.getCurrentTime(this.b)};f.Ag=function(){return Ms(this.app)};f.Wo=function(){return this.app.D.volume};f.setVolume=function(a){this.app.setVolume(a)};f.Xo=function(){return this.app.D.muted};f.Yo=function(){Ns(this.app)};f.Zo=function(){Os(this.app)};
f.Mg=function(){Ks(this.app,!0,this.b);Ps(this.app,this.b)};f.pauseVideo=function(){Qs(this.app,this.b)};f.Hk=function(){var a=this.app;Rs(a,"play_pause")||Ss(a,this.b)};f.Hv=function(){};f.Sv=function(){return this.app.la};f.kw=function(a){Ts(this.app,a)};f.Mv=function(){return this.app.b.zg?Vq:[1]};f.Rv=function(){return Us(this.app,this.b)};f.rp=function(a){Vs(this.app,a,this.b)};f.Nv=function(){var a=Ws(this.app,this.b);return a?Xs(a):[]};f.Uv=function(){return this.El()};f.Vv=function(){return 1};
f.El=function(){return Ys(this.app.U)};f.Xv=function(){return 0};f.mw=function(){this.app.g.rh()};f.hw=function(a){this.app.getVideoData().pm=a};f.jw=function(a){this.app.b.ir=a};f.aw=function(a){this.app.C.isAvailable(a)&&(a=Zs(this.app.C,a))&&!a.loaded&&a.load()};f.yp=function(a){this.app.C.isAvailable(a)&&(a=Zs(this.app.C,a))&&a.loaded&&a.unload()};f.al=function(a,b,c){a=$s(this.app,Hs(a,b,c),this.b);Ks(this.app,a,this.b)};f.Jv=function(a,b,c){at(this.app,Hs(a,b,c),this.b)};
f.cw=function(a,b,c){a=Gs(a,b,c);b=$s(this.app,a,this.b);Ks(this.app,b,this.b);b=this.app;(a=xe(new J(a.mediaContentUrl)))&&bt(b.b,a)};f.Kv=function(a,b,c){b=Gs(a,b,c);at(this.app,b,this.b);a=this.app;(b=xe(new J(b.mediaContentUrl)))&&bt(a.b,b)};f.Yv=function(){return ct(this.app)};f.Ov=function(){return dt(this.app)};f.Wv=function(){return""};f.Ap=function(a,b,c){return et(this.app,a,b,c)};
f.fw=function(a){t:{for(var b=this.app,c=b.j.A.j||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){e.ab.clear();b.j.A.Eg(e);b.H("cuerangesremoved",[e]);a=!0;break t}}a=!1}return a};f.bw=function(a,b,c,d){var e=this.app;e.O=!1;ft(e,a,b,c,d)};f.Iv=function(a,b,c,d){var e=this.app;e.O=!0;ft(e,a,b,c,d)};f.dw=function(){gt(this.app)};f.ew=function(){ht(this.app)};f.zp=function(a){var b=this.app;b.o&&(b.o.ce?it(b,Bs(b.o,a)):b.O=!1,As(b.o,a))};f.lw=function(a){var b=this.app;b.o&&xs(b.o,a)};
f.iw=function(a){var b=this.app;b.o&&(b.o.Uf=a)};f.hc=function(){var a=this.app.o;if(!a)return null;for(var b=[],c=0;c<a.sc;c++)b[c]=Bs(a,c).videoId;return b};f.vp=function(){var a;a=this.app;a=a.o?a.o.Ga:null;return null==a?-1:a};f.wp=function(){return jt(this.app)};f.xp=function(a,b,c){return kt(this.app,a,b,c)};f.mi=function(a,b,c){return kt(this.app,a,b,c)};f.Qv=function(a){var b;b=this.app;a?b=b.B&&a==b.B.va?b.B.Ej():lt(b.C,a):(a=lt(b.C),b.B&&a.push(b.B.va),b=a);return b};
f.getVideoData=function(){var a=Ws(this.app,this.b),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.th,title:a.title},b=this.wp();b&&(a.list=b);return a};f.ow=function(){mt(this.app.g)};f.Zv=function(){this.app.g.zm()};f.getAdState=function(){return this.app.getAdState()};f.$v=function(){var a=this.app.getPlayerState();return!(!a||!V(a,128)||5!=nt[a.b.errorCode])};f.Tv=function(){var a=this.app,b=a.N.clone(),c=b.args,a=ot(a),d=bc(a.k);!a.Za&&0<a.Ta&&(d.start=a.Ta);ra(c,d);return b};
f.qw=function(a,b){var c=this.app;c.F&&pt(c.F,a,b);qt(c.b)&&6!=c.I&&(c.b.Fg=!D(a),c.b.Fg?(1!=c.I&&3!=c.I||!b||rt(c.B),a.length&&1!=c.I&&st(c)):rt(c.F))};f.destroy=function(){this.app.dispose()};f.gw=function(){var a=Ws(this.app);if(a){var b=a.getPlayerState();V(b,2)||V(b,128)||(tt(a),ut(a))}};f.J=function(){if(this.g){for(var a in this.k)this.g[a]=null;for(a in this.o)this.g[a]=null}this.B=this.A=this.g=null;Is.G.J.call(this)};function vt(a,b){Is.call(this,a,b);U(this,"cueVideoByPlayerVars",this.GD);U(this,"loadVideoByPlayerVars",this.lq);U(this,"preloadVideoByPlayerVars",this.LD);U(this,"seekBy",this.bt);U(this,"enableLicenseIntercept",this.HD);U(this,"updatePlaylist",this.QD);U(this,"resumeLicenseSession",this.MD);U(this,"updateLastActiveTime",this.PD);U(this,"updateVideoData",this.RD);U(this,"getStoryboardFormat",this.JD);U(this,"getProgressState",this.Hf);U(this,"hideUserInterface",this.KD);U(this,"showUserInterface",
this.OD);U(this,"getHousebrandProperties",this.ID);U(this,"setPlaybackQualityRange",this.ND)}w(vt,Is);f=vt.prototype;f.Ap=function(a,b,c,d,e){return et(this.app,a,b,c,d,e)};f.GD=function(a){at(this.app,a,this.b)};f.getPlayerState=function(a){var b=this.app;return 2==a?b.za:b.qa};f.lq=function(a){$s(this.app,a,this.b)};f.LD=function(){};f.Mg=function(){Ps(this.app,this.b)};f.Ng=function(a,b){Ls(this.app,a,b,void 0,this.b)};
f.bt=function(a,b,c){var d=this.app,e=this.b;Ls(d,d.getCurrentTime()+a,b,c,e)};f.HD=function(){var a=this.app;a.Ha||(a.Ha=!0,a.wa={})};f.QD=function(){var a=this.app;wt(a);a.Ua("onPlaylistUpdate")};f.MD=function(a,b){var c=this.app,d=c.wa[a];d&&(xt(d,b),d.start(),delete c.wa[a])};f.PD=function(){this.app.b.fg=v()};f.RD=function(a){var b=Ws(this.app,this.b||1);b&&(b=b.b,Vr(b,a),b.H("dataupdated"))};f.JD=function(){return this.app.getVideoData().k.storyboard_spec};f.KD=function(){this.app.g.Jj(!1)};
f.OD=function(){this.app.g.Jj(!0)};f.ID=function(){var a=this.app.R();return{yc:a.yc,Ab:a.Ab(),bc:a.bc}};f.getVideoData=function(){var a=vt.G.getVideoData.call(this),b=Ws(this.app,this.b),b=b?b.getVideoData():{};a.cpn=b.Da;a.isLive=b.Za;return a};f.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):vt.G.getCurrentTime.call(this)};f.Ag=function(a){return a?Ms(this.app,a):vt.G.Ag.call(this)};
f.Hf=function(){var a=this.app.getVideoData(),b=a.Za&&!a.nb?this.getCurrentTime():a.j&&!isNaN(Jp(a.j))?Jp(a.j):a.Oa,c=!a.Za||a.nb,d=a.clipEnd,e=a.clipStart,g=this.getCurrentTime(),h=this.Ag(),k;k=(k=Ws(this.app,void 0))?zt(k.g):0;return{allowSeeking:c,clipEnd:d,clipStart:e,current:g,displayedStart:-1,duration:h,loaded:k,seekableEnd:b,seekableStart:a.j&&!isNaN(Kp(a.j))?Kp(a.j):0}};f.El=function(a){var b=this.app;return(b.A&&2==b.A.getPlayerType())==(2==a)?Ys(b.U):0};
f.ND=function(a,b){Vs(this.app,a,this.b,b)};function At(a,b){vt.call(this,a,b)}w(At,vt);f=At.prototype;f.getPlayerType=function(){return this.b};f.al=function(a,b,c){$s(this.app,Hs(a,b,c),this.b)};f.Mg=function(){Ps(this.app,this.b)};f.Ng=function(a,b){Ls(this.app,a,b,void 0,this.b)};function Bt(a,b){a.app.g.g.appendChild(b)}function Ct(a){return a.app.g.element}f.R=function(){return this.app.R()};f.hc=function(){return this.app.o};f.getVideoData=function(){var a=Ws(this.app,this.b);return a&&a.getVideoData()};f.isFullscreen=function(){return this.app.R().tb};function Dt(a,b){this.lg=a;this.ef=b+"::"}w(Dt,ei);f=Dt.prototype;f.lg=null;f.ef="";f.set=function(a,b){this.lg.set(this.ef+a,b)};f.get=function(a){return this.lg.get(this.ef+a)};f.remove=function(a){this.lg.remove(this.ef+a)};f.Vb=function(a){var b=this.lg.Vb(!0),c=this,d=new Bd;d.next=function(){for(var d=b.next();d.substr(0,c.ef.length)!=c.ef;)d=b.next();return a?d.substr(c.ef.length):c.lg.get(d)};return d};function Et(a,b){this.start=a;this.end=b;this.b=la(this)}function Ft(a,b){return a.start!=b.start?a.start-b.start:a.end!=b.end?a.end-b.end:a.b!=b.b?a.b-b.b:0}Et.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a==this.end&&this.start==this.end)&&(null==b||a<b&&b<=this.end)};Et.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function Gt(){this.b=[]}function Ht(a,b){for(var c=[],d=0;d<a.b.length;++d){var e=a.b[d];e.contains(b)&&c.push(e);if(e.start>b)break}return c}function It(a,b,c){for(var d=[],e=0;e<a.b.length;++e){var g=a.b[e];if(null!=c&&g.start>c)break;g.start>b&&d.push(g)}return d}function Jt(a,b){for(var c=[],d=0;d<a.b.length;++d){var e=a.b[d];e.contains(b)&&c.push(e.end);if(e.start>b){c.push(e.start);break}}c.sort(Bb);return c[0]};function Kt(a){var b="";if(a)for(var c=0;c<a.length;c++)b+=a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3)+",";return b}function Lt(a,b){if(!a)return-1;for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c;return-1}function Mt(a,b){var c=Lt(a,b);return 0<=c?a.end(c):NaN}function Nt(a){return a&&a.length?a.end(a.length-1):NaN}function Ot(a,b){var c=Mt(a,b);return 0<=c?c-b:0};function Pt(){}var Qt=Oq&&4>Nq?.1:0,Rt=new Pt;f=Pt.prototype;f.yd=null;f.Sk=!1;function St(a,b){var c="";b&&(a.yd=b,c=zr(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.b||a.load())}function Tt(a,b){0<a.readyState&&(a.currentTime=Math.max(Qt,b))}f.getCurrentTime=function(){return this.currentTime||0};function zt(a){return 0<Nt(a.buffered)&&a.duration?Mt(a.buffered,a.currentTime):0}function Ys(a){var b=a.duration||0;return Infinity==b?1:b?zt(a)/b:0}function Ut(a){return a.paused||a.ended}
function Vt(a){a.ended&&Tt(a,0);!a.hasAttribute("src")&&a.yd&&(a.src=zr(a.yd),a.yd.b||a.load());a.play();Oq&&7<=Nq&&Sg(a,u(function(){L(u(this.is,this,this.currentTime,0),500)},a))}f.is=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),L(u(this.is,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function Wt(a){a.currentSrc&&(nr&&Tt(a,0),ed(a),a.removeAttribute("src"),a.load(),a.yd&&a.yd.b&&(a.yd=null))}function Xt(a){Wt(a);a.yd=null}
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function Yt(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.JC=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.KC=function(){this.Sk&&!this.muted&&(this.muted=!0)};
Pt.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:Kt(this.played),vbu:Kt(this.buffered),vpa:this.paused,vsk:this.seeking,vpr:this.playbackRate,vrs:this.readyState,vns:this.networkState,vec:this.error?this.error.errorCode:null}};function Zt(a,b){for(var c=0;c<b.length;c++)a.appendChild(b[c])};function $t(a,b){a=a||64;a&128&&!b||a&2&&a&16||(this.g=a,this.b=b||null)}$t.prototype.g=64;$t.prototype.b=null;
function au(a,b,c){if(V(a,128))return a;var d=a.g,e=a.b,g=b.target;switch(b.type){case "ended":if(0>=g.networkState||!g.src)break;d=bu();e=null;break;case "pause":V(a,256)?d^=256:V(a,32)||V(a,2)||(d=4,V(a,1)&&V(a,8)&&(d|=1),e=null);break;case "playing":d=8;e=null;break;case "abort":if(64==d)break;case "error":t:if((b=g.error)&&b.code){switch(b.code){case b.MEDIA_ERR_NETWORK:b="progressive.net";break;case b.MEDIA_ERR_DECODE:b="fmt.decode";break;case b.MEDIA_ERR_SRC_NOT_SUPPORTED:b="fmt.unplayable";
break;default:b=null;break t}b={errorCode:b}}else b=null;b&&(e=b,d|=128);break;case "canplay":d&=-2;break;case "progress":V(a,8)&&cu(c,g)&&(d|=1);break;case "seeked":d&=-18;break;case "seeking":d|=16;0>=Ot(g.buffered,g.currentTime)&&(d|=1);d&=-3;break;case "waiting":V(a,2)||(d|=1);break;case "timeupdate":V(a,16)||(d=cu(c,g)?d|1:d&-2);1<g.readyState&&0<g.currentTime&&(d&=-65);break;default:return a}return du(a,d,e)}
function cu(a,b){if(!a)return!1;var c=Ot(b.buffered,b.currentTime);return eu(a,b.currentTime,v(),c)}function du(a,b,c){return b==a.g&&c==a.b||b&128&&!c||b&2&&b&16?a:new $t(b,c)}function fu(a,b){return du(a,a.g|b)}function V(a,b){return!!(a.g&b)}function gu(a){return V(a,128)?-1:V(a,2)?0:V(a,1)&&!V(a,32)?3:V(a,64)?-1:V(a,8)?1:V(a,4)?2:-1}function bu(){var a;return a=14};function hu(a,b,c){Et.call(this,a,b);a=c||{};this.pa=a.id||"";void 0!=a.priority&&(this.Lh=a.priority);this.namespace=a.namespace||"";this.ab=new Rh;this.g=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.Zd=a.visible)}w(hu,Et);f=hu.prototype;f.pa="";f.Lh=7;f.active=!0;f.Zd=!1;f.style="ytp-ad-progress";f.ab=null;f.namespace="";f.getId=function(){return this.pa};function iu(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6}}
function ju(a,b){return a.start==b.start?a.Lh==b.Lh?0:a.Lh<b.Lh?-1:1:a.start<b.start?-1:1};function ku(a,b,c){ej.call(this);this.C=a;this.B=b;this.D=c;this.o=new Rk(250);Ak(this.o,"tick",this.kc,!1,this);R(this,this.o);this.j=[];this.b=[];this.g=new Gt}w(ku,ej);f=ku.prototype;f.wi=!1;f.Bg=!1;f.sm=!1;f.rm=!1;f.Hg=null;f.xi=function(a){this.kc();z(arguments,function(a){this.j.push(a);var c=this.g.b;!c.length||0<Ft(a,c[c.length-1])?c.push(a):Hb(c,a,Ft);this.H("onAdd",a)},this);this.kc()};f.Eg=function(a){z(arguments,function(a){a=this.j.indexOf(a);0<=a&&lu(this,a)},this);this.kc()};
function lu(a,b){var c=a.j.splice(b,1)[0],d=a.g.b,e=Ab(d,c,Ft);0<=e&&sb(d,e);b=a.b.indexOf(c);0<=b&&a.b.splice(b,1);a.H("onRemove",c)}f.Og=function(){this.k=mu(this);this.Bg=!0;this.kc()};f.reset=function(){this.Bg=this.wi=!1;nu(this);for(var a=this.j.length-1;0<=a;a--)lu(this,a);this.kc();this.A=null};function ou(a,b){var c=[];if(!b.length)return c;b.sort(ju);for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.b.indexOf(e)&&(a.b.push(e),c.push(["onEnter",e]))}return c}
function pu(a,b){var c=[];if(!b.length)return c;b.sort(ju);for(var d=0;d<b.length;d++){var e=b[d],g=a.b.indexOf(e);0>g||(a.b.splice(g,1),c.push(["onExit",e]))}return c}
f.kc=function(){this.rm=!0;if(!this.sm)for(var a=3;this.rm&&a;){this.rm=!1;this.sm=!0;if(this.Bg&&!this.wi){nu(this);for(var b=mu(this),c=[],d=[],e=0;e<this.b.length;e++){var g=this.b[e];g.active&&!g.contains(b)&&d.push(g)}c=c.concat(pu(this,d));d=Ht(this.g,b);e=this.B();!V(e,48)&&b>this.k&&(d=d.concat(It(this.g,this.k,b)));c=c.concat(ou(this,d));this.k=b;!this.wi&&this.A&&(c.unshift(["onLockBlockExit",this.A]),this.A=null,V(e,2)&&(this.k=2147483647));this.D()&&(b=Jt(this.g,this.k),null!=b&&(this.Hg=
Tk(u(this.kc,this),b-this.k)));qu(this,c)}this.sm=!1;a--}};function qu(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];"onLockBlockExit"==d[0]||"onLockBlockEnter"==d[0]?a.H.apply(a,d):e.ab.H.apply(e.ab,d)}}function nu(a){null!=a.Hg&&(Uk(a.Hg),a.Hg=null)}function mu(a){return V(a.B(),2)?2147483647:1E3*a.C()}f.J=function(){Ik(this.o,"tick",this.kc,!1,this);nu(this);this.A=this.g=this.b=this.j=null;ku.G.J.call(this)};function ru(a){ej.call(this);this.b=a;if(this.zn){a="yt-html5-player-modules::"+this.zn;var b=new gi;if(a=b.isAvailable()?a?new Dt(b,a):b:null)this.aa=new ii(a)}}w(ru,ej);f=ru.prototype;f.va="";f.gc="";f.Ac=!1;f.loaded=!1;f.hk=!1;f.nc=null;f.Kf=function(a){var b=vb(arguments),c=u(this.Ec,this),d=u(this.kd,this);z(b,function(a){a.namespace=this.va;a.ab.subscribe("onEnter",c);a.ab.subscribe("onExit",d)},this);this.H("command_add_cuerange",b,this.b.getPlayerType())};
f.hD=function(a){var b=vb(arguments);this.H("command_remove_cuerange",b,this.b.getPlayerType())};function su(a){a.H("command_remove_cuerange_all",a.va,a.b.getPlayerType())}function tu(a){a.H("command_preroll_ready",a.va,a.b.getPlayerType())}function uu(a,b){N(b,a.va);a.b.app.g.N.K().appendChild(b)}function vu(a,b){a.H("command_show_dialog",b)}f.ug=function(){vu(this)};f.create=function(){this.Ac||(this.Ja(this.b),N(Ct(this.b),this.va+"-created"),this.Ac=!0)};
f.destroy=function(){this.loaded&&this.unload();O(Ct(this.b),this.va+"-created");this.Ac=!1};f.load=function(){this.loaded=!0;N(Ct(this.b),this.va+"-loaded");this.H("loaded",this.va)};f.unload=function(){this.loaded=!1;O(Ct(this.b),this.va+"-loaded");this.H("unloaded",this.va)};f.Ec=function(){};f.kd=function(){};f.ke=function(){};function wu(a,b,c){a.H("command_navigate_to_url",b,c)}f.log=function(a){this.H("command_log",this.gc,a)};
function xu(a,b,c){var d={},e;for(e in b)d[a.va+"_"+e]=b[e];b={};for(var g in c)b[a.va+"_"+g]=c[g];a.H("command_log_timing",d,b)}f.bh=function(){return null};function yu(a,b){if(!a.aa)return null;var c;try{c=a.aa.get(b)}catch(d){a.aa&&a.aa.remove(b)}return c}function zu(a,b,c){if(a.aa)try{a.aa.set(b,c)}catch(d){}}function Au(a,b){a.H("command_disable_controls",b,a.va)}function Bu(a,b){a.H("command_enable_controls",b,a.va)}function Cu(a){a.H("command_stop_redirect_controls")}
function Du(a){a.H("command_play",!1,a.b.getPlayerType())}f.pauseVideo=function(){this.H("command_pause",!1,this.b.getPlayerType())};function Eu(a,b){a.H("command_redirected_show_is_playing",b)}function Fu(a){return a.b.app.g.j}function Gu(a,b){a.H("module_menu_item_add",b)}function Hu(a,b){a.H("module_menu_item_remove",b)}function Iu(a){a.H("module_menu_show",void 0)}f.Kj=function(){};f.Ej=function(){return[]};f.Ja=function(){return!1};f.Om=function(){return!0};
f.Tl=function(a,b){this.nc&&this.nc.ke&&this.nc.ke.apply(this.nc,arguments)};f.Ii=function(){};var Ju={rG:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",wG:"ERROR_AUTHENTICATION_EXPIRED",xG:"ERROR_AUTHENTICATION_MALFORMED",yG:"ERROR_AUTHENTICATION_MISSING",BG:"ERROR_BAD_REQUEST",HG:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",PG:"ERROR_CGI_PARAMS_MALFORMED",QG:"ERROR_CGI_PARAMS_MISSING",EH:"YTP_DEVICE_FALLBACK",MH:"YTP_ERROR_LICENSE",PH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",SH:"YTP_ERROR_GEO_FAILURE",fI:"YTP_ERROR_GENERIC",gI:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",pI:"YTP_ERROR_INVALID_DRM_MESSAGE",
tI:"LEARN_MORE",XI:"YTP_ERROR_NOT_SIGNED_IN",lJ:"YTP_ERROR_PURCHASE_NOT_FOUND",mJ:"YTP_ERROR_PURCHASE_REFUNDED",pJ:"YTP_ERROR_RENTAL_EXPIRED",JG:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",KG:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",MG:"YTP_ERROR_CAST_TOKEN_FAILED",LG:"YTP_ERROR_CAST_TOKEN_EXPIRED",NG:"YTP_ERROR_CAST_TOKEN_MALFORMED",AJ:"YTP_ERROR_SERVER_ERROR",PJ:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",RJ:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",SJ:"YTP_ERROR_STREAMING_NOT_ALLOWED",TJ:"YTP_ERROR_STREAMING_UNAVAILABLE",
sJ:"YTP_ERROR_RETRYABLE_ERROR",aK:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",$J:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",fK:"YTP_ERROR_UNSUPPORTED_DEVICE",hK:"YTP_ERROR_UNUSUAL_ACTIVITY",qK:"YTP_ERROR_VIDEO_FORBIDDEN",sK:"YTP_ERROR_VIDEO_NOT_FOUND"},Ku={300:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",303:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",304:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",305:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"YTP_ERROR_VIDEO_NOT_FOUND",
401:"YTP_ERROR_GEO_FAILURE",402:"YTP_ERROR_STREAMING_NOT_ALLOWED",403:"YTP_ERROR_UNSUPPORTED_DEVICE",405:"YTP_ERROR_VIDEO_FORBIDDEN",500:"YTP_ERROR_PURCHASE_NOT_FOUND",501:"YTP_ERROR_RENTAL_EXPIRED",502:"YTP_ERROR_PURCHASE_REFUNDED",5E3:"ERROR_BAD_REQUEST",5001:"ERROR_CGI_PARAMS_MISSING",5002:"ERROR_CGI_PARAMS_MALFORMED",5100:"ERROR_AUTHENTICATION_MISSING",5101:"ERROR_AUTHENTICATION_MALFORMED",5102:"ERROR_AUTHENTICATION_EXPIRED",5200:"YTP_ERROR_CAST_TOKEN_MALFORMED",5201:"YTP_ERROR_CAST_TOKEN_EXPIRED",
5202:"YTP_ERROR_CAST_TOKEN_FAILED",5203:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",5204:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",6E3:"YTP_ERROR_INVALID_DRM_MESSAGE",7E3:"YTP_ERROR_SERVER_ERROR",8E3:"YTP_ERROR_RETRYABLE_ERROR"};function Lu(a){return(a=Ku[a.toString()])?a:"YTP_ERROR_LICENSE"};var Mu={created:1,ready:2,testing:4,"testing-starting":3,live:6,"live-starting":5,complete:8,"complete-starting":7};function Nu(a){m.setTimeout(function(){throw a;},0)}var Ou;
function Pu(){var a=m.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(a=function(){var a=document.createElement("iframe");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d=b.location.protocol+"//"+b.location.host,a=u(function(a){if(a.origin==d||a.data==c)this.port1.onmessage()},this);b.addEventListener("message",
a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a){var b=new a,c={},d=c;b.port1.onmessage=function(){c=c.next;var a=c.Ft;c.Ft=null;a()};return function(a){d.next={Ft:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(a){var b=document.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};
document.documentElement.appendChild(b)}:function(a){m.setTimeout(a,0)}};function Qu(a,b){Ru||Su();Tu||(Ru(),Tu=!0);Uu.push(new Vu(a,b))}var Ru;function Su(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();Ru=function(){a.then(Wu)}}else Ru=function(){var a=Wu;ja(m.setImmediate)?m.setImmediate(a):(Ou||(Ou=Pu()),Ou(a))}}var Tu=!1,Uu=[];function Wu(){for(;Uu.length;){var a=Uu;Uu=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.b.call(c.scope)}catch(d){Nu(d)}}}Tu=!1}function Vu(a,b){this.b=a;this.scope=b};function Xu(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function Yu(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Zu(a,b){this.g=0;this.A=void 0;this.b=this.j=null;this.k=this.o=!1;try{var c=this;a.call(b,function(a){$u(c,2,a)},function(a){$u(c,3,a)})}catch(d){$u(this,3,d)}}Zu.prototype.then=function(a,b,c){return av(this,ja(a)?a:null,ja(b)?b:null,c)};Xu(Zu);Zu.prototype.cancel=function(a){0==this.g&&Qu(function(){var b=new bv(a);cv(this,b)},this)};
function cv(a,b){if(0==a.g)if(a.j){var c=a.j;if(c.b){for(var d=0,e=-1,g=0,h;h=c.b[g];g++)if(h=h.ij)if(d++,h==a&&(e=g),0<=e&&1<d)break;0<=e&&(0==c.g&&1==d?cv(c,b):(d=c.b.splice(e,1)[0],dv(c,d,3,b)))}}else $u(a,3,b)}function ev(a,b){a.b&&a.b.length||2!=a.g&&3!=a.g||fv(a);a.b||(a.b=[]);a.b.push(b)}
function av(a,b,c,d){var e={ij:null,Es:null,Fs:null};e.ij=new Zu(function(a,h){e.Es=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){h(p)}}:a;e.Fs=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof bv?h(b):a(e)}catch(p){h(p)}}:h});e.ij.j=a;ev(a,e);return e.ij}Zu.prototype.B=function(a){this.g=0;$u(this,2,a)};Zu.prototype.C=function(a){this.g=0;$u(this,3,a)};
function $u(a,b,c){if(0==a.g){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(Yu(c)){a.g=1;c.then(a.B,a.C,a);return}if(ka(c))try{var d=c.then;if(ja(d)){gv(a,c,d);return}}catch(e){b=3,c=e}}a.A=c;a.g=b;fv(a);3!=b||c instanceof bv||hv(a,c)}}function gv(a,b,c){function d(b){g||(g=!0,a.C(b))}function e(b){g||(g=!0,a.B(b))}a.g=1;var g=!1;try{c.call(b,e,d)}catch(h){d(h)}}function fv(a){a.o||(a.o=!0,Qu(a.D,a))}
Zu.prototype.D=function(){for(;this.b&&this.b.length;){var a=this.b;this.b=[];for(var b=0;b<a.length;b++)dv(this,a[b],this.g,this.A)}this.o=!1};function dv(a,b,c,d){if(2==c)b.Es(d);else{for(;a&&a.k;a=a.j)a.k=!1;b.Fs(d)}}function hv(a,b){a.k=!0;Qu(function(){a.k&&iv.call(null,b)})}var iv=Nu;function bv(a){ta.call(this,a)}w(bv,ta);bv.prototype.name="cancel";/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
function jv(a,b){this.o=[];this.I=a;this.F=b||null;this.k=this.b=!1;this.j=void 0;this.D=this.M=this.B=!1;this.A=0;this.g=null;this.C=0}f=jv.prototype;f.cancel=function(a){if(this.b)this.j instanceof jv&&this.j.cancel();else{if(this.g){var b=this.g;delete this.g;a?b.cancel(a):(b.C--,0>=b.C&&b.cancel())}this.I?this.I.call(this.F,this):this.D=!0;this.b||this.fh(new kv)}};f.bp=function(a,b){this.B=!1;lv(this,a,b)};function lv(a,b,c){a.b=!0;a.j=c;a.k=!b;mv(a)}
function nv(a){if(a.b){if(!a.D)throw new ov;a.D=!1}}f.ct=function(a){nv(this);lv(this,!0,a)};f.fh=function(a){nv(this);lv(this,!1,a)};function pv(a,b,c){qv(a,b,null,c)}function qv(a,b,c,d){a.o.push([b,c,d]);a.b&&mv(a)}f.then=function(a,b,c){var d,e,g=new Zu(function(a,b){d=a;e=b});qv(this,d,function(a){a instanceof kv?g.cancel():e(a)});return g.then(a,b,c)};Xu(jv);function rv(a){return jb(a.o,function(a){return ja(a[1])})}
function mv(a){if(a.A&&a.b&&rv(a)){var b=a.A,c=sv[b];c&&(m.clearTimeout(c.pa),delete sv[b]);a.A=0}a.g&&(a.g.C--,delete a.g);for(var b=a.j,d=c=!1;a.o.length&&!a.B;){var e=a.o.shift(),g=e[0],h=e[1],e=e[2];if(g=a.k?h:g)try{var k=g.call(e||a.F,b);n(k)&&(a.k=a.k&&(k==b||k instanceof Error),a.j=b=k);Yu(b)&&(d=!0,a.B=!0)}catch(l){b=l,a.k=!0,rv(a)||(c=!0)}}a.j=b;d&&(k=u(a.bp,a,!0),d=u(a.bp,a,!1),b instanceof jv?(qv(b,k,d),b.M=!0):b.then(k,d));c&&(b=new tv(b),sv[b.pa]=b,a.A=b.pa)}
function ov(){ta.call(this)}w(ov,ta);ov.prototype.message="Deferred has already fired";ov.prototype.name="AlreadyCalledError";function kv(){ta.call(this)}w(kv,ta);kv.prototype.message="Deferred was canceled";kv.prototype.name="CanceledError";function tv(a){this.pa=m.setTimeout(u(this.g,this),0);this.b=a}tv.prototype.g=function(){delete sv[this.pa];throw this.b;};var sv={};function uv(a,b){var c=b||{},d=c.document||document,e=ad("SCRIPT"),g={dt:e,kb:void 0},h=new jv(vv,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){wv(e,!0);h.fh(new xv(1,"Timeout reached for loading script "+a))},l),g.kb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(wv(e,c.IA||!1,k),h.ct(null))};e.onerror=function(){wv(e,!0,k);h.fh(new xv(0,"Error while loading script "+a))};Qc(e,{type:"text/javascript",charset:"UTF-8",
src:a});yv(d).appendChild(e);return h}function yv(a){var b=a.getElementsByTagName("HEAD");return!b||D(b)?a.documentElement:b[0]}function vv(){if(this&&this.dt){var a=this.dt;a&&"SCRIPT"==a.tagName&&wv(a,!0,this.kb)}}function wv(a,b,c){null!=c&&m.clearTimeout(c);a.onload=ca;a.onerror=ca;a.onreadystatechange=ca;b&&window.setTimeout(function(){gd(a)},0)}function xv(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ta.call(this,c);this.code=a}w(xv,ta);function zv(a,b){this.g=new J(a);this.b=b?b:"callback";this.kb=5E3}var Av=0;zv.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(Av++).toString(36)+v().toString(36);m._callbacks_||(m._callbacks_={});var e=this.g.clone();if(a)for(var g in a)a.hasOwnProperty&&!a.hasOwnProperty(g)||ye(e,g,a[g]);b&&(m._callbacks_[d]=Bv(d,b),ye(e,this.b,"_callbacks_."+d));b=uv(e.toString(),{timeout:this.kb,IA:!0});qv(b,null,Cv(d,a,c),void 0);return{pa:d,Nr:b}};
zv.prototype.cancel=function(a){a&&(a.Nr&&a.Nr.cancel(),a.pa&&Dv(a.pa,!1))};function Cv(a,b,c){return function(){Dv(a,!1);c&&c(b)}}function Bv(a,b){return function(c){Dv(a,!0);b.apply(void 0,arguments)}}function Dv(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=ca)};function Ev(a){this.b=a;a=null;a=Fv(this.b);a="("+a.join("|")+")";a=wa("__%s__",a);this.j=new RegExp(a,"g");this.g={}}var Gv=/__([a-z]+(?:_[a-z]+)*)__/g;function Fv(a){var b=[],c={};a.replace(Gv,function(a,e){e in c||(c[e]=!0,b.push(e))});return b}function Hv(a,b){var c=u(function(a,c){return Ca(b[c]||this.g[c]||"")},a);return a.b.replace(a.j,c)};function Iv(a,b){ej.call(this);this.j=Hv(new Ev(b),{video_id:a});this.b=new Rk(15E3+Math.floor(3E4*Math.random()));Ak(this.b,"tick",u(this.g,this));this.g();this.b.start()}w(Iv,ej);Iv.prototype.J=function(){this.b.dispose();Iv.G.J.call(this)};Iv.prototype.g=function(){(new zv(this.j)).send(null,u(this.o,this),u(this.k,this))};Iv.prototype.o=function(a){this.H("payload",a);Sk(this.b,15E3+Math.floor(3E4*Math.random()))};Iv.prototype.k=function(){this.H("error");var a=this.b.b;192E4>a&&Sk(this.b,2*a)};function Jv(a){this.b={};this.j={};this.k={};this.g=Kv(this,a)}w(Jv,Mh);function Kv(a,b,c){var d=0,e=ad(b[d++]);if(r(b[d])||ga(b[d])||null===b[d]){var g=b[d++];ga(g)&&(g=g.join(" "));if(g=Lv(a,e,"className",g))Mv(a,e,"className",g),Nv(a,g,e)}for(;d<b.length;d++){var h=b[d];if(ga(h))Kv(a,h,e);else if(ka(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&Mv(g,k,l,Lv(g,k,l,h[l]))}else r(h)&&(g=Lv(a,e,"child",h),null!=g&&e.appendChild(bd(g)))}c&&c.appendChild(e);return e}f=Jv.prototype;f.K=function(){return this.g};
function Nv(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)Nv(a,d[b],c);else a.b[b]=c}f.W=function(a,b){n(b)?fd(a,this.g,b):a.appendChild(this.g)};f.bd=function(){gd(this.g)};function Lv(a,b,c,d){return r(d)&&"{{"==d.substr(0,2)?(a.j[d]=[b,c],null):d}f.update=function(a){for(var b in a)Ov(this,b,a[b])};function Ov(a,b,c){if(c!=a.k[b]){var d=a.j["{{"+b+"}}"];d&&(a.k[b]=c,Mv(a,d[0],d[1],c))}}function Pv(a){return ga(a)&&r(a[0])}
function Mv(a,b,c,d){if("child"==c){ed(b);if(!ga(d)||Pv(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ia(g)||r(g)||ka(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?Pv(g)?c.push(Kv(a,g)):g.K?c.push(g.K()):c.push(bd(g.toString())):c.push(g)}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"className"==c?b.className=d:null===d?b.removeAttribute(c):b.setAttribute(c,d.toString())}f.J=function(){this.b={};this.j={};this.k={};this.bd();delete this.g;Jv.G.J.call(this)};function Qv(a){var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60),b=Math.floor(b%60),g="";0<c&&(g+=c+":",10>d&&(g+="0"));if(0<c||0<d)g+=d+":",10>e&&(g+="0");g+=e+":";10>b&&(g+="0");g+=b;return 0<=a?g:"-"+g}function Rv(a){return Math.round(1E3*a)/10};var Sv={QJ:"html5-stop-propagation",SG:"html5-chromeless",wI:"html5-live-dvr-disabled",xI:"html5-live-dvr-engaged",yI:"html5-live-playback",JI:"html5-mobile",LI:"modest-branding",VI:"html5-native-controls",VJ:"html5-tablet",UJ:"html5-tablet-body",EI:"html5-main-video",lK:"html5-video-container",mK:"html5-video-content",nK:"html5-video-controls",oK:"ytp-fallback",pK:"ytp-fallback-content",rK:"html5-video-loader",zK:"html5-watermark",DG:"html5-branded-watermark",YG:"html5-context-menu",rz:"html5-context-menu-copy-debug-info",
uz:"html5-context-menu-copy-embed-html",vz:"html5-context-menu-copy-video-url",wz:"html5-context-menu-copy-video-url-at-current-time",xz:"html5-context-menu-link",yz:"html5-context-menu-report-playback-issue",zz:"html5-context-menu-show-video-info",ZG:"html5-show-video-info-template",KI:"html5-modal-panel",hI:"ideal-aspect",GI:"autominimize-controls",HI:"autominimize-controls-aspect",WH:"autohide-controls",XH:"autohide-controls-fullscreenonly",II:"autominimize-progress-bar",QH:"hide-controls-when-cued",
jK:"ytp-user-idle",YH:"hide-info-bar",ZH:"html5-hide-share",$H:"html5-hide-volume",zG:"ytp-autohide-fade",uK:"video-thumbnail",fJ:"ytp-dialog",tG:"html5-async-progress",uG:"html5-async-success",sG:"html5-async-error",OG:"html5-center-overlay",vJ:"ytp-scalable-icon-shrink",uJ:"ytp-scalable-icon-grow",eI:"house-brand",zJ:"sentiment-like",yJ:"sentiment-dislike"};function Tv(){this.j=new Jv(["div","html5-fresca-module",["div","html5-fresca-band-slate",["hgroup","html5-fresca-message",["h2","html5-fresca-heading","{{heading}}"],["h3","html5-fresca-subheading","{{subheading}}"],["h4","html5-fresca-long-test","{{long_text}}"]],["span","html5-fresca-countdown","{{countdown}}"]]]);R(this,this.j);this.g=this.j.b["html5-fresca-module"];N(this.g,"html5-stop-propagation");this.k=0;this.b=null}w(Tv,Mh);Tv.prototype.K=function(){return this.g};
Tv.prototype.update=function(a){this.A&&this.b.state==a.state&&this.b.startTime==a.startTime&&this.b.g==a.g&&this.b.b.join()==a.b.join()||(this.b=a,this.g.style.backgroundImage=this.b.g||"none",a=this.b.getMessage(),this.j.update({heading:a[0]||"",subheading:a[1]||"",long_text:a[2]||""}),this.o())};function Uv(a){var b=Math.floor((new Date).valueOf()/1E3);return b>a?bf("YTP_FRESCA_STARTING_SOON_MESSAGE"):Qv(a-b)}
Tv.prototype.o=function(){var a;a=this.b;a.startTime?(a=a.state,a=6==a||8==a||7==a?!1:!0):a=!1;P(this.g,"html5-fresca-show-countdown",a);a&&(this.j.update({countdown:Uv(this.b.startTime)}),M(this.k),this.k=L(u(this.o,this),1E3))};Tv.prototype.J=function(){M(this.k);this.g=null;Tv.G.J.call(this)};function Vv(a){this.b=[];this.j=!1;a&&Wv(this,a)}Vv.prototype.state=-1;function Xv(a){return{imageUrl:a.g,messageText:a.getMessage(),startTime:a.startTime,state:a.state}}
function Wv(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=Mu[d.$t]||-1);(d=c.yt$when)&&d.start&&(d=new Date(d.start),a.startTime=Math.floor(d.valueOf()/1E3));if(d=c.yt$slate)d.imgUrl&&(a.g="url("+d.imgUrl+")"),(d=d.content)&&d.length&&(d=d.splice(0,3),a.b=B(d,function(a){return a.$t}));if(c=c.entry)a.j=0<=mb(c,function(a){a=a.yt$status;return!!a&&"inactive"!=a.$t})}}Vv.prototype.getMessage=function(){return this.b.length?this.b:Yv(this)};
function Yv(a){switch(a.state){case 6:return a.j?[]:[bf("YTP_FRESCA_STAND_BY_MESSAGE"),bf("YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE")];case 8:return[bf("YTP_FRESCA_EVENT_OVER_MESSAGE")];case 7:return[bf("YTP_FRESCA_EVENT_OVER_MESSAGE"),bf("YTP_FRESCA_COMPLETE_MESSAGE")];default:return[bf("YTP_FRESCA_STAND_BY_MESSAGE")]}};function Zv(a){ru.call(this,a);af({YTP_FRESCA_STARTING_SOON_MESSAGE:"Starting soon...",YTP_FRESCA_EVENT_OVER_MESSAGE:"This live event is over.",YTP_FRESCA_COMPLETE_MESSAGE:"Thanks for watching!",YTP_FRESCA_STAND_BY_MESSAGE:"Please stand by.",YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE:"We're experiencing technical difficulties."})}w(Zv,ru);f=Zv.prototype;f.va="fresca";f.gc="fresca";f.$i=!1;f.ah=!1;f.Ja=function(){return ls(this.b.getVideoData(),"fresca_module")};
f.create=function(a){Zv.G.create.call(this);Kr(mq(),"application/x-mpegURL")||Mr()?(this.$i=this.ah=!1,Au(this,["play_pause","seek"]),this.j=new Tv,Bt(this.b,this.j.K()),this.k=a||new Iv(this.b.getVideoData().videoId,this.b.R().Qo+(this.b.R(),"feeds/api/users/live/broadcasts/__video_id__/states?v=2&alt=json-in-script")),this.k.subscribe("payload",this.pA,this),this.k.subscribe("error",this.oA,this),this.subscribe("onStateChange",this.kr,this)):$v(this.b.app.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
void 0)};f.destroy=function(){this.ha("onStateChange",this.kr,this);Qh(this.k,this.j);Zv.G.destroy.call(this)};f.kr=function(a){this.g&&(this.$i=V(a.state,2),(aw(a,16)||this.$i)&&bw(this,this.g))};f.oA=function(){this.ah||(cw(this,new Vv),bw(this,this.g))};f.pA=function(a){cw(this,new Vv(a));a=this.b.getVideoData();6!=this.g.state||a.aa||a.O?bw(this,this.g):this.b.al(a.videoId)};
function bw(a,b){var c=6>b.state;!c&&a.b.app.j.wa&&(b.g||b.b.length)&&(c=!0);a.$i&&!a.b.R().Jc&&(c=!0);b.j||(c=!0);if(!a.ah)switch(b.state){case 6:b.j&&(a.ah=!0,Bu(a,["play_pause","seek"]),tu(a));break;case 8:case 7:c=a.ah=!0}c&&a.j.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function dw(a){return ls(a.getVideoData(),"fresca_module")?new Zv(a):null}function cw(a,b){a.g!=b&&(a.g=b,a.b.R().Ab()&&a.H("publish_external_event","onFrescaStateChange",Xv(a.g)))};function ew(a){this.Vn=a||window;this.jd=[]}f=ew.prototype;f.Vn=null;f.jd=null;f.listen=function(a,b,c,d){c=u(c,d||this.Vn);a=Q(a,b,c);this.jd.push(a);return a};function fw(a,b,c,d,e,g){d=u(d,g||a.Vn);b=Ug(b,c,d,e);a.jd.push(b)}f.Fa=function(a){Tg(a);rb(this.jd,a)};f.removeAll=function(){Tg(this.jd);this.jd=[]};function gw(a,b,c){this.b=a;this.k=b||0;this.g=c;this.j=u(this.dz,this)}w(gw,Mh);f=gw.prototype;f.pa=0;f.J=function(){gw.G.J.call(this);this.stop();delete this.b;delete this.g};f.start=function(a){this.stop();this.pa=Tk(this.j,n(a)?a:this.k)};f.stop=function(){0!=this.pa&&Uk(this.pa);this.pa=0};f.dz=function(){this.pa=0;this.b&&this.b.call(this.g)};function hw(){T.call(this);this.b=0;this.endTime=this.startTime=null}w(hw,T);f=hw.prototype;f.Mc=function(){this.Ib("begin")};f.Cd=function(){this.Ib("end")};f.ub=function(){this.Ib("finish")};f.onStop=function(){this.Ib("stop")};f.Ib=function(a){this.S(a)};function iw(){hw.call(this);this.g=[]}w(iw,hw);iw.prototype.add=function(a){C(this.g,a)||(this.g.push(a),Ak(a,"finish",this.k,!1,this))};iw.prototype.remove=function(a){rb(this.g,a)&&Ik(a,"finish",this.k,!1,this)};iw.prototype.J=function(){z(this.g,function(a){a.dispose()});this.g.length=0;iw.G.J.call(this)};function jw(){iw.call(this);this.j=0}w(jw,iw);
jw.prototype.play=function(a){if(0==this.g.length)return!1;if(a||0==this.b)this.j=0,this.Mc();else if(1==this.b)return!1;this.Ib("play");-1==this.b&&this.Ib("resume");var b=-1==this.b&&!a;this.startTime=v();this.endTime=null;this.b=1;z(this.g,function(c){b&&-1!=c.b||c.play(a)});return!0};jw.prototype.pause=function(){1==this.b&&(z(this.g,function(a){1==a.b&&a.pause()}),this.b=-1,this.Ib("pause"))};
jw.prototype.stop=function(a){z(this.g,function(b){0==b.b||b.stop(a)});this.b=0;this.endTime=v();this.onStop();this.Cd()};jw.prototype.k=function(){this.j++;this.j==this.g.length&&(this.endTime=v(),this.b=0,this.ub(),this.Cd())};var kw=/#(.)(.)(.)/;function lw(a){if(!mw.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(kw,"#$1$1$2$2$3$3"));a=a.toLowerCase();return[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)]}var mw=/^#(?:[0-9a-f]{3}){1,2}$/i;var rw={},sw=null;function tw(a){a=la(a);delete rw[a];Zb(rw)&&sw&&sw.stop()}function uw(){sw||(sw=new gw(function(){vw()},20));var a=sw;0!=a.pa||a.start()}function vw(){var a=v();Ob(rw,function(b){ww(b,a)});Zb(rw)||uw()};function xw(a,b,c,d){hw.call(this);if(!ga(a)||!ga(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.k=a;this.A=b;this.duration=c;this.o=d;this.g=[]}w(xw,hw);f=xw.prototype;f.md=0;
f.play=function(a){if(a||0==this.b)this.md=0,this.g=this.k;else if(1==this.b)return!1;tw(this);this.startTime=a=v();-1==this.b&&(this.startTime-=this.duration*this.md);this.endTime=this.startTime+this.duration;this.md||this.Mc();this.Ib("play");-1==this.b&&this.Ib("resume");this.b=1;var b=la(this);b in rw||(rw[b]=this);uw();ww(this,a);return!0};f.stop=function(a){tw(this);this.b=0;a&&(this.md=1);yw(this,this.md);this.onStop();this.Cd()};f.pause=function(){1==this.b&&(tw(this),this.b=-1,this.Ib("pause"))};
f.J=function(){0==this.b||this.stop(!1);this.Ib("destroy");xw.G.J.call(this)};f.destroy=function(){this.dispose()};function ww(a,b){a.md=(b-a.startTime)/(a.endTime-a.startTime);1<=a.md&&(a.md=1);yw(a,a.md);1==a.md?(a.b=0,tw(a),a.ub(),a.Cd()):1==a.b&&a.mn()}function yw(a,b){ja(a.o)&&(b=a.o(b));a.g=Array(a.k.length);for(var c=0;c<a.k.length;c++)a.g[c]=(a.A[c]-a.k[c])*b+a.k[c]}f.mn=function(){this.Ib("animate")};f.Ib=function(a){this.S(new zw(a,this))};
function zw(a,b){S.call(this,a);this.x=b.g[0];this.y=b.g[1];this.duration=b.duration;this.state=b.b}w(zw,S);function Aw(a,b,c,d,e){xw.call(this,b,c,d,e);this.element=a}w(Aw,xw);Aw.prototype.j=ca;Aw.prototype.mn=function(){this.j();Aw.G.mn.call(this)};Aw.prototype.Cd=function(){this.j();Aw.G.Cd.call(this)};Aw.prototype.Mc=function(){this.j();Aw.G.Mc.call(this)};function Bw(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Aw.apply(this,arguments)}w(Bw,Aw);
Bw.prototype.j=function(){this.element.style.left=Math.round(this.g[0])+"px";this.element.style.top=Math.round(this.g[1])+"px"};function Cw(a,b,c,d){Bw.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}w(Cw,Bw);Cw.prototype.Mc=function(){this.k=[this.element.offsetLeft,this.element.offsetTop];Cw.G.Mc.call(this)};function Dw(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Aw.apply(this,arguments)}w(Dw,Aw);
Dw.prototype.j=function(){this.element.style.width=Math.round(this.g[0])+"px";this.element.style.height=Math.round(this.g[1])+"px"};function Ew(a,b,c,d,e){Aw.call(this,a,[b],[c],d,e)}w(Ew,Aw);Ew.prototype.j=function(){this.element.style.width=Math.round(this.g[0])+"px"};function Fw(a,b,c,d,e){ia(b)&&(b=[b]);ia(c)&&(c=[c]);Aw.call(this,a,b,c,d,e);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");}w(Fw,Aw);Fw.prototype.j=function(){gg(this.element,this.g[0])};
Fw.prototype.show=function(){this.element.style.display=""};Fw.prototype.hide=function(){this.element.style.display="none"};function Gw(a,b,c){Fw.call(this,a,1,0,b,c)}w(Gw,Fw);Gw.prototype.Mc=function(){this.show();Gw.G.Mc.call(this)};Gw.prototype.Cd=function(){this.hide();Gw.G.Cd.call(this)};function Hw(a,b,c){Fw.call(this,a,0,1,b,c)}w(Hw,Fw);Hw.prototype.Mc=function(){this.show();Hw.G.Mc.call(this)};function Iw(a){return Math.pow(a,3)}function Jw(a){return 3*a*a-2*a*a*a};function Kw(a){return ga(a)&&a.length?a[0]:a}function Lw(a){var b=/.+/;return r(a)&&null!=b&&null!=a&&a.match(b)?a:""}function Mw(a,b){if(null==a)return b;var c=parseInt(a,0);if(isNaN(c))return b;c=c.toString(16);return"#"+"000000".substring(0,6-c.length)+c}function Nw(a){return r(a)?a:""}function Ow(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function Pw(a,b){return"true"==a||"false"==a?"true"==a:b}function Qw(a,b){return r(a)?parseFloat(a):b}
function Rw(a,b,c,d,e,g){a=10==b?parseFloat(a):parseInt(a,b);if(null!=a&&!isNaN(a)){if(e)return Jb(a,c,d);if(a>=c&&a<=d)return a}return g}function Sw(a){if(null==a)return 0;if("never"==a)return-1;a=a.split(":");if(3<a.length)return 0;var b=0,c=1;z(a,function(a){a=parseFloat(a);0>a&&(c=-c);b=60*b+Math.abs(a)});return c*b}function Tw(a,b){if(null==a)return null;if(ha(a)){var c=[];z(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]}
function Uw(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new Bf(parseFloat(a.top),parseFloat(a.right),parseFloat(a.bottom),parseFloat(a.left)):null)&&b(a.top)&&b(a.right)&&b(a.bottom)&&b(a.left)?a:null}function Vw(a){function b(a){return hb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function Ww(a){this.value=a};function Xw(a,b,c){this.value=a;this.target=b;this.b=c}var Yw={cH:"current",WI:"new"};function Zw(a){return a.value?a.value:null};function $w(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var ax={CLOSE:"close",aJ:"openUrl",PAUSE:"pause",NE:"subscribe"},bx={CLICK:"click",CLOSE:"close",HE:"hidden",tJ:"rollOut",LE:"rollOver",ME:"shown"};
function cx(a){if(!a)return null;var b=Ow(a.type,ax),c=Ow(a.trigger,bx),d;if(d=Kw(a.url)){var e=Nw(d.value);if(e&&null!=Bi(e)){var g=Ow(d.target,Yw,"current");d=null==g?null:new Xw(e,g,Pw(d.show_link_icon,!0))}else d=null}else d=null;Kw(a.subscribeData);(a=Kw(a.duration))?(a=Sw(a.value),a=new Ww(a)):a=null;return b?new $w(b,c,d,a):null};function dx(a,b,c,d,e,g,h,k,l,p,s,t,y,E){this.A=a;this.o=b;this.B=c;this.C=d;this.j=e;this.I=g;this.k=h;this.textAlign=k;this.M=l;this.D=p;this.F=s;this.b=t;this.g=y;this.L=E}
function ex(a){if(!a)return null;var b=Mw(a.fgColor,"#1A1A1A"),c=Mw(a.bgColor,"#FFF"),d=Mw(a.borderColor,"#000"),e=Rw(a.borderWidth,10,0,5,!1,0),g=Rw(a.bgAlpha,10,0,1,!1,.8);Rw(a.borderAlpha,10,0,1,!1,.2);Rw(a.gloss,16,0,255,!1,0);var h=Mw(a.highlightFontColor,"#F2F2F2"),k=Rw(a.highlightWidth,10,0,5,!1,3),l=Nw(a.textAlign),p=Rw(a.textSize,10,3.3,30.1,!0,3.6107),s=Nw(a.fontWeight),t=Uw(a.padding),y=Vw(a.effects),E=Rw(a.cornerRadius,10,0,10,!0,0);var A=Kw(a.gradient);if(A){a=Rw(A.x1,10,0,100,!0,0);
var $=Rw(A.y1,10,0,100,!0,0),Ma=Rw(A.x2,10,0,100,!0,100),Yc=Rw(A.y2,10,0,100,!0,100),vj=Mw(A.color1,"#FFF"),nw=Mw(A.color2,"#000"),ow=Rw(A.opacity1,10,0,100,!0,100),A=Rw(A.opacity2,10,0,100,!0,0);a=new fx(a,$,Ma,Yc,vj,nw,ow,A)}else a=null;return new dx(b,c,d,e,g,h,k,l,p,s,t,y,E,a)}function fx(a,b,c,d,e,g,h,k){this.o=a;this.B=b;this.A=c;this.C=d;this.b=e;this.g=g;this.j=h;this.k=k};function gx(a,b){this.b=a;this.videoId=b};var hx={FK:"xx",GK:"xy",KK:"yx",LK:"yy"};var ix=fc("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var jx=/<[^>]*>|&[^;]+;/g;function kx(a,b){return b?a.replace(jx,""):a}
var lx=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),mx=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),nx=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),ox=/^http:\/\/.*/,px=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,qx=
/\s+/,rx=/\d/;function sx(){this.b=tx}sx.prototype.Tj=!0;sx.prototype.Sj=function(){return""};sx.prototype.toString=function(){return"Const{}"};function ux(a){return a instanceof sx&&a.constructor===sx&&a.b===tx?"":"type_error:Const"}var tx={};function vx(){this.b="";this.g=wx}vx.prototype.Tj=!0;var wx={};vx.prototype.Sj=function(){return this.b};function xx(a){var b=new vx;b.b=a;return b}var yx=xx(""),zx=/^[-.%_!# a-zA-Z0-9]+$/;function Ax(){this.b=Bx}Ax.prototype.Tj=!0;Ax.prototype.Sj=function(){return""};Ax.prototype.wt=!0;Ax.prototype.Ah=function(){return 1};var Bx={};function Cx(){this.b="";this.j=Dx;this.g=null}Cx.prototype.wt=!0;Cx.prototype.Ah=function(){return this.g};Cx.prototype.Tj=!0;Cx.prototype.Sj=function(){return this.b};function Ex(a){return a instanceof Cx&&a.constructor===Cx&&a.j===Dx?a.b:"type_error:SafeHtml"}var Fx=/^[a-zA-Z0-9-]+$/,Gx=fc("action","cite","data","formaction","href","manifest","poster","src"),Hx=fc("link","script","style");
function Ix(a){function b(a){if(ga(a))z(a,b);else{if(!(a instanceof Cx)){var g=null;a.wt&&(g=a.Ah());a=Jx(Ca(a.Tj?a.Sj():String(a)),g)}d+=Ex(a);a=a.Ah();0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,d="";z(arguments,b);return Jx(d,c)}var Dx={};function Jx(a,b){var c=new Cx;c.b=a;c.g=b;return c}Jx("",0);function Kx(a,b){ga(b)||(b=[b]);var c=B(b,function(a){return r(a)?a:a.Ep+" "+a.duration+"s "+a.timing+" "+a.Dp+"s"});Lx(a,c.join(","))}
var Mx=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(rc)return Cc("10.0");var a=document.createElement("div"),b=If(),c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!Fx.test("div"))throw Error("Invalid tag name <div>.");if("div"in Hx)throw Error("Tag name <div> is not allowed for SafeHtml.");var d=null,b="<div";if(c)for(var e in c){if(!Fx.test(e))throw Error('Invalid attribute name "'+e+'".');var g=c[e];if(null!=g){if(g instanceof
sx)g=ux(g);else if("style"==e.toLowerCase()){if(!ka(g))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof g+" given: "+g);if(!(g instanceof vx)){var h="",k=void 0;for(k in g){if(!/^[-_a-zA-Z0-9]+$/.test(k))throw Error("Name allows only [-_a-zA-Z0-9], got: "+k);var l=g[k];null!=l&&(l instanceof sx?l=ux(l):zx.test(l)||(l="zClosurez"),h+=k+":"+l+";")}g=h?xx(h):yx}h=void 0;h=g instanceof vx&&g.constructor===vx&&g.g===wx?g.b:"type_error:SafeStyle";g=h}else{if(/^on/i.test(e))throw Error('Attribute "'+
e+'" requires goog.string.Const value, "'+g+'" given.');if(g instanceof Ax)g=g instanceof Ax&&g.constructor===Ax&&g.b===Bx?"":"type_error:SafeUrl";else if(e.toLowerCase()in Gx)throw Error('Attribute "'+e+'" requires goog.string.Const or goog.html.SafeUrl value, "'+g+'" given.');}b+=" "+e+'="'+Ca(String(g))+'"'}}e=void 0;n(e)?ga(e)||(e=[e]):e=[];!0===ix.div?b+=">":(d=Ix(e),b+=">"+Ex(d)+"</div>",d=d.Ah());(c=c&&c.dir)&&(/^(ltr|rtl|auto)$/i.test(c)?d=0:d=null);b=Jx(b,d);a.innerHTML=Ex(b);a=a.firstChild;
b=a.style[ab("transition")];return""!=("undefined"!==typeof b?b:a.style[Mf(a,"transition")]||"")});function Lx(a,b){Kf(a,"transition",b)};function Nx(a,b){(a=Nc(a))&&a.style&&(hg(a,b),P(a,"hid",!b))}function Ox(a){return(a=Nc(a))?!("none"==a.style.display||sg(a,"hid")):!1}function Px(a){z(arguments,function(a){Nx(a,!0)})}function Qx(a){z(arguments,function(a){Nx(a,!1)})}var Rx={};function Sx(a){if(a in Rx)return Rx[a];var b=Jf(a,document.body.style);return Rx[a]=b}function Tx(a,b,c){(a=Nc(a))&&a.style&&(b=Sx(b))&&(a.style[b]=c)};function Ux(a,b,c){var d=a.B,e=a.C,g=a.b?a.b:"xy",h=Vx(c,a.k,g);a=Wx(c,a.j,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new Cf(0==d?640*b.left*h/100:0<d?d:c.width+d-g,0==e?360*b.top*a/100:0<e?e:c.height+e-k,g,k)}function Vx(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function Wx(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function Xx(a,b,c,d,e,g,h,k,l,p,s){this.x=a;this.y=b;this.o=c;this.h=d;this.g=e;this.A=g;this.B=h;this.C=k;this.k=l;this.j=p;this.b=s}function Yx(a,b){if(!a)return null;var c=Qw(a.x,0),d=Qw(a.y,0),e=Qw(a.w,0),g=Qw(a.h,0),h=Sw(a.t),k=Qw(a.scaleSlope,1);return b(c,d,e,g,h,Qw(a.d,0),Qw(a.px,0),Qw(a.py,0),Qw(a.scaleSlopeX,k),Qw(a.scaleSlopeY,k),Ow(a.scaleDimension,hx,"xy"))}
function Zx(a,b,c){c=c?Zx(c,b):null;a=Ux(a,new Cf(a.x,a.y,a.o,a.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);c=a.clone();b&&!b.contains(a)&&(a.width<b.width?c.left=Jb(a.left,b.left,b.left+b.width-a.width):(c.left=b.left,c.width=b.width),a.height<b.height?c.top=Jb(a.top,b.top,b.top+b.height-a.height):(c.top=b.top,c.height=b.height));return c}function $x(a){return a?Yx(a,function(a,c,d,e,g,h,k,l,p,s,t){return new Xx(a,c,d,e,g,h,k,l,p,s,t)}):null};function ay(a,b,c,d,e,g,h,k,l,p,s,t,y){Xx.call(this,a,b,c,d,e,k,l,p,s,t,y);this.D=g;this.F=h}w(ay,Xx);function by(a){if(!a)return null;var b=Qw(a.sx,0),c=Qw(a.sy,0);return Yx(a,function(a,e,g,h,k,l,p,s,t,y,E){return new ay(a,e,g,h,k,b,c,l,p,s,t,y,E)})};function cy(a,b,c,d){this.type=a;this.g=b;this.b=c;this.j=d}var dy={AE:"anchored",nJ:"rect",BJ:"shapeless"};function ey(a){if(!a)return null;var b=Ow(a.type,dy,"rect"),c=Tw(a.rectRegion,$x),d=Tw(a.anchoredRegion,by);a=Tw(a.shapelessRegion,$x);return new cy(b,c,d,a)}function fy(a){return a.g&&a.g.length?a.g[0]:a.b&&a.b.length?a.b[0]:a.j&&a.j.length?a.j[0]:null};function gy(a,b){this.g=a;this.b=b};function hy(a,b){this.state=a;this.b=b}var iy={CLOSED:"closed",bJ:"playerControlShow",LE:"rollOver",ME:"shown"};function jy(a){if(!a)return null;var b=Ow(a.state,iy);a=Lw(a.ref);return b?new hy(b,a):null};function ky(a,b,c,d){this.b=a||[];this.j=b||[];this.k=c;this.g=d;this.value=!1}function ly(a){if(!a)return null;var b=Tw(a.condition,jy),c=Tw(a.notCondition,jy),d=Pw(a.show_delay,!1);a=Pw(a.hide_delay,!1);return b||c?new ky(b,c,d,a):null}function my(a,b,c){z(a.b,qa(b,!1),c);z(a.j,qa(b,!0),c)};function ny(a,b,c,d,e,g,h,k,l,p,s,t,y,E){this.id=a;this.type=b;this.style=c;this.A=d;this.g=e;this.o=g||[];this.C=h||[];this.b=k;this.D=l;this.k=p;this.B=s;this.j=t;this.data=y;this.Rb=E}
var oy={AE:"anchored",Et:"branding",RG:"channel",aH:"cta",cI:"highlightText",sI:"label",dJ:"playlist",eJ:"popup",JJ:"speech",NE:"subscribe",ZJ:"title",VIDEO:"video",yK:"vote",BK:"website"},py={Et:"branding",IG:"card",bI:"highlight",IMAGE:"image",MARKER:"marker",PAUSE:"pause",iJ:"promotion",en:"survey",TEXT:"text",CK:"widget"},qy={tK:"video_relative",cJ:"player_relative"};
function ry(a){if(!a)return null;var b=Lw(a.id);Lw(a.author);var c=Ow(a.type,py),d=Ow(a.style,oy),e=Nw(Kw(a.TEXT)),g=Nw(a.data),g=0!=g.length?sf(g):{},h;var k=Kw(a.segment);k?(Lw(k.timeRelative),h=Lw(k.spaceRelative),h=(k=Tw(k.movingRegion,ey))?new gy(h,k):null):h=null;var k=Tw(a.action,cx),l=Tw(a.trigger,ly),p=ex(Kw(a.appearance));p||(p=ex({}));var s=Ow(a.coordinate_system,qy,"video_relative"),t;t=(t=Kw(a.image_source))?new gx(Nw(t.standard_url),Nw(t.video_id)):null;var y=Pw(a.closeable,!0),E=Nw(a.html_blob);
a=Nw(a.log_data);return b&&c?new ny(b,c,d,e,h,k,l,p,s,t,y,E,g,a):null}function sy(a){return(a=ty(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}function uy(a){return vy(a,function(a){return null!=a.url&&a.url.b})}function wy(a){return vy(a,function(a){return"click"==a.trigger})}function vy(a,b){return jb(a.o,b,void 0)}function xy(a,b,c){z(a.o,b,c)}function ty(a,b){return lb(a.o,b,void 0)}function yy(a,b,c){z(a.C,b,c)}function zy(a,b){B(a.C,b,void 0)}
function Ay(a){return(a=By(a))?fy(a):null}function By(a){a.g?(a=a.g,a=a.b.length?a.b[0]:null):a=null;return a}function Cy(a,b){var c=Ay(a);return c&&b?Wx(b,c.j,c.b?c.b:"xy"):1};function Dy(a){if(!a)return!1;var b=Ey(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function Ey(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function Fy(a,b){if("new"==a.target)return-1;var c=Zw(a);if(!c)return-1;var c=c.replace(/https?:\/\//g,""),d;(d=!Dy(c))||(d=Ud(c)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=Bi(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=Ai(c[1]))&&c.t?(d=c.t,c=0,-1!=d.indexOf("h")&&(d=d.split("h"),c=3600*d[0],d=d[1]),-1!=d.indexOf("m")&&(d=d.split("m"),c=60*d[0]+c,d=d[1]),-1!=d.indexOf("s")?(d=d.split("s"),c=1*d[0]+c):c=1*d+c):c=-1;return c}
function Gy(a,b,c,d){(a=Zw(a))?Dy(a)?d=Ei(a,{src_vid:c,feature:"iv",annotation_id:b}):(a?(b=Ey(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=qa(Hy,d.$a,d.Sa),a=new J(a),ie(a,d(a.Lb)),d=a.toString()):d=a):d=null;return d}function Hy(a,b,c){c=c.replace(/\/(u|b)\/[0-9]+/g,"");var d=/^[0-9]+$/;a&&d.test(a)&&(c="/b/"+a+c);b&&d.test(b)&&(c="/u/"+b+c);return c}function Iy(a){return a.target?"new"==a.target?"_blank":"_top":Dy(Zw(a))?"_top":"_blank"};function Jy(a,b){this.j=a;this.g=b;this.b={}}function Ky(a,b,c,d){b&&(c=Ly(a,b,c),a.b[b]=c["p-time"],c["iv-event"]=c.link||c["l-class"]||c["link-id"]?2:7,ec(c,d||{}),a.log_(c))}function My(a,b,c,d,e){b&&(d=Ly(a,b,d),d["iv-event"]=3,d["i-time"]=a.b[b]||"",ec(d,e||{}),a.log_(d,c))}function Ny(a,b,c,d){b&&(c=Ly(a,b,c),c["iv-event"]=4,c["i-time"]=a.b[b]||"",ec(c,d||{}),a.log_(c))}
function Oy(a,b,c){a=a.g.getVideoData();a.jb?(c=a.jb[c])&&-1!=c.search(Ne)&&(a=Aa("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),qf(c)):a.qa&&qf(Ei(a.qa,{label:c,value:"a_id="+b}))}function Ly(a,b,c){var d={},e=new me(b);z(e.Ma(),function(a){d[a]=escape(e.get(a,""))});d["p-time"]=a.g.getCurrentTime().toFixed(2);d.ps=a.g.R().ob;d["a-type"]=c||d["a-type"];return d}Jy.prototype.log_=function(a,b){this.j.H("command_log","iv",a,b)};function Py(a,b){this.T=a;this.context=b;this.O=this.N=this.M=null;this.C=0}function Qy(a,b,c,d,e,g){b=new hu(b,c,{id:d});b.namespace="iv-module";e&&b.ab.subscribe("onEnter",e,a);g&&b.ab.subscribe("onExit",g,a);a.context.ab.H("command_add_cuerange",[b],a.context.g.getPlayerType())}f=Py.prototype;f.zj=function(){this.context.ab.subscribe("onResize",this.ud,this)};f.K=function(){return this.T};
function Ry(a,b,c,d,e){fw(a.context.b,b,"click",qa(a.Ug,b,c,d,e),"iv-click-target",a);fw(a.context.b,b,"touchend",qa(a.Ug,b,c,d,e),"iv-click-target",a)}f.Ug=function(a,b,c,d,e){e.stopPropagation();e.preventDefault();var g=Gy(b,c,this.context.k.videoId);a=u(function(){this.context.g.pauseVideo();window.open(g,Iy(b))},this);Dy(Zw(b))&&"new"!=b.target||(a(),a=null);c={};c.interval=v()-this.C;My(this.context.logger,d.Rb,a,null,c);"cta"==d.style&&Oy(this.context.logger,d.id,"cta_annotation_clicked");return!1};
f.show=function(){this.C=v()};f.hide=function(){};f.destroy=function(){gd(this.K())};function Sy(a){a.O||(a.O=wd(a.K(),"html5-video-player"));return a.O}
function Ty(a){var b=a.context.j.Td;if(!b)return null;var c=a.context.j.Bf||new Cf(0,0,b.width,b.height),d=-c.top,e=b.height-c.top,g;a.N||(a.N=H("html5-video-container",Sy(a)));g=a.N;if(!g)return null;g=35-(parseInt(Nf(g,"bottom"),10)||0);var h;a.M||(a.M=H("html5-info-bar",Sy(a)));(h=a.M)&&a.context.j.Ub&&"none"!=Nf(h,"display")&&(d+=dg(h).height);return new Bf(d,b.width-c.left,e-g,-c.left)}f.ud=function(){};function Uy(a,b,c){this.id=a;this.type=b.card_type;this.A=b.teaser_text||b.title;this.k=b.teaser_image_url||b.image_url;this.td=b.start_ms;this.g=b.end_ms;this.ia=c};function Vy(a,b,c,d){Uy.call(this,a,b,d);this.b=b.banner_image_url;this.B=b.image_url;this.j=b.g_plus_url;this.title=b.title;this.description=b.description;this.o=b.html_blobs;this.url=c}w(Vy,Uy);function Wy(a,b,c,d){Uy.call(this,a,b,d);this.B=b.profile_image_url;this.j=b.intro;this.C=b.image_url;this.b=b.playlist_video_count;this.title=b.title;this.o=b.meta_info;this.url=c}w(Wy,Uy);function Xy(a,b,c,d){Uy.call(this,a,b,d);this.F=b.image_url;this.b=b.button_icon_url;this.title=b.title;this.description=b.description;this.j=b.custom_message;this.url=c}w(Xy,Uy);function Yy(a,b,c,d){Xy.call(this,a,b,c,d);this.D=b.ypc_item_type;this.C=b.ypc_item_id;this.B=b.ypc_flow_type;this.o="true"==b.logged_in_user}w(Yy,Xy);function Zy(a,b,c,d){Uy.call(this,a,b,d);this.B=b.profile_image_url;this.j=b.intro;this.C=b.image_url;this.b=b.video_duration;this.title=b.title;this.o=b.meta_info;this.description=b.description;this.url=c}w(Zy,Uy);function $y(a){a&&(a.style.display="block")}function az(a){a&&(a.style.display="none")}function bz(a,b){var c=Gg("requestAnimationFrame",window);return L(function(){c?c.call(window,a):a()},b||0)};function W(a){this.template=new Jv(a);R(this,this.template);this.element=this.template.K();this.aa="block";this.P=!0;this.Vc=[];this.ca={}}w(W,Mh);f=W.prototype;f.K=function(){return this.element};f.W=function(a,b){this.template.W(a,b)};f.bd=function(){this.template.bd()};f.na=function(a,b){Ov(this.template,b||"content",a)};f.show=function(){var a=this.element;a&&(a.style.display=this.aa);this.P=!0;this.element.removeAttribute("aria-hidden")};
f.hide=function(){az(this.element);this.P=!1;this.element.setAttribute("aria-hidden","true")};f.vb=function(a){Yg(this.element,a)};f.listen=function(a,b,c,d){return cz(this,this.element,a,b,c,d)};function cz(a,b,c,d,e,g,h){b=Q(b,c,u(d,e||a),h);a.Vc.push(b);r(g)&&(a.ca[g]?a.ca[g].push(b):a.ca[g]=[b]);return b}f.Fa=function(a){Tg(a)};function dz(a,b){a.Fa(a.ca[b]);a.ca[b]=[]}f.stopPropagation=function(a){this.listen(a,this.UE)};f.UE=function(a){a.stopPropagation()};
f.J=function(){this.Fa(this.Vc);delete this.element;W.G.J.call(this)};function ez(a){var b=We("YPC_LOADER_JS");if(window.spf){var c="";if(b){var d=b.indexOf("jsbin/"),e=b.lastIndexOf(".js"),g=d+6;-1<d&&-1<e&&e>g&&(c=b.substring(g,e),c=c.replace(fz,""),c=c.replace(gz,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(b,c,a)}else hz(b,a)}function hz(a,b){var c=iz(a),d=document.getElementById(c),e=d&&yg(d,"loaded"),g=d&&!e;e?b&&b():(b&&(Xh(c,b),la(b)),g||(d=jz(a,c,function(){yg(d,"loaded")||(wg(d,"loaded","true"),$h(c),L(qa(ci,c),0))})))}
function jz(a,b,c){var d=document.createElement("script");d.id=b;d.onload=function(){c&&setTimeout(c,0)};d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}};d.src=a;a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(d,a.firstChild);return d}function iz(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Xa(a)}var fz=/-vfl[a-zA-Z0-9_+=-]+/,gz=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function kz(){var a=We("YPC_LOADER_CSS");if(window.spf){var b=a.match(lz);spf.style.load(a,b?b[1]:"",void 0)}else mz(a)}function mz(a){var b=nz(a),c=document.getElementById(b),d=c&&yg(c,"loaded");d||c&&!d||(c=oz(a,b,function(){yg(c,"loaded")||(wg(c,"loaded","true"),$h(b),L(qa(ci,b),0))}))}
function oz(a,b,c){var d=document.createElement("link");d.id=b;d.rel="stylesheet";d.onload=function(){c&&setTimeout(c,0)};d.href=a;(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d}function nz(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+Xa(a)}var lz=/cssbin\/(?:debug-)?([a-zA-Z0-9_-]+?)(?:-2x|-web|-rtl|-vfl|.css)/;function pz(){return!!q("yt.scheduler.instance")}function qz(a,b){void 0===b&&(b=NaN);var c=q("yt.scheduler.instance.addJob");return c?(isNaN(b)&&(b=0),c(a,0,b)):isNaN(b)?(a(),NaN):L(a,b||0)}function rz(a,b){return qz(a,b)}function sz(a){var b=q("yt.scheduler.instance.cancelJob");b?b(a):M(a)}function tz(){var a=q("yt.scheduler.instance.start");a&&(Hq("jsp")&&!Hq("jsr")&&Fq("jsr"),M(uz),a())}var uz=0;
function vz(){var a=q("yt.scheduler.instance.pause");a&&(a(),Hq("jsp")||Fq("jsp"),M(uz),uz=L(tz,800))};var wz=q("yt.pubsub2.instance_")||new Rh;Rh.prototype.subscribe=Rh.prototype.subscribe;Rh.prototype.unsubscribeByKey=Rh.prototype.Hb;Rh.prototype.publish=Rh.prototype.H;Rh.prototype.clear=Rh.prototype.clear;ba("yt.pubsub2.instance_",wz,void 0);var xz=q("yt.pubsub2.subscribedKeys_")||{};ba("yt.pubsub2.subscribedKeys_",xz,void 0);var yz=q("yt.pubsub2.topicToKeys_")||{};ba("yt.pubsub2.topicToKeys_",yz,void 0);var zz=q("yt.pubsub2.isAsync_")||{};ba("yt.pubsub2.isAsync_",zz,void 0);
ba("yt.pubsub2.skipSubKey_",null,void 0);var Az=2;function Bz(a,b,c,d){Cz(function(){q("yt.www.ypc.checkout.showYpcOverlay")(a,b,c,d)})}function Cz(a){if(Az){kz();var b=We("YPC_LOADER_CONFIGS"),c=function(){(Az-=1)||Dz(a)};ez(c);Li(b,{onSuccess:function(a,b){Ue(b.configs);af(b.messages);c()}})}else a&&a()}function Dz(a){z(We("YPC_LOADER_CALLBACKS"),function(a){(a=q(a))&&a()});a&&a()};function Ez(a){this.b=a}
function Fz(a,b){var c=Gz(a,b.url,b.id),d=["div","iv-card-channel-banner",""];b.b&&(d=["div",["iv-card-channel-banner","iv-card-channel-banner-custom"],{style:"background-image: url("+b.b+");"}]);var e=b.j?["a","iv-card-gplus",{href:b.j,target:"_blank",title:bf("YTP_ON_GOOGLE_PLUS")}]:null,c=new W(["article","iv-card-channel",d,["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.B}]],["div","iv-card-content",e,["h1","iv-click-target",b.title],["div","iv-card-subscribe",""],["p","",b.description]]]),
g=c.K();g&&Ob(b.o,function(a,b){var c=Oc(b,g);z(c,function(b){b.innerHTML=a})},c);return c}
function Hz(a,b){var c=Gz(a,b.url,b.id),d=["ul","iv-card-meta-info"];z(b.o,function(a){d.push(["li","",a])});c=["article",["iv-card-watchable","iv-card-playlist"],["h1",{style:"background-image: url("+b.B+");"},b.j],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.C}],["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.b.toString()],["span","iv-card-playlist-play-all",bf("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],["h2",
"",b.title],d]]];return new W(c)}
function Iz(a,b){var c=Gz(a,b.url,b.id),d=["iv-click-target","yt-uix-button","yt-uix-button-primary","yt-uix-button-size-large"],e="";b.b&&(d.push("yt-uix-button-has-icon"),e=["span","yt-uix-button-icon-wrapper",["img",["yt-uix-button-icon","iv-card-button-icon"],{src:b.b}]]);return new W(["article","iv-card-simple",["div","iv-card-image",{style:"background-image: url("+b.F+");"}],["div","iv-card-content",["h1","",b.title],["p","",b.description],["a",d,{href:c,role:"button"},e,["span","yt-uix-button-content",
b.j]]]])}function Jz(a,b,c){var d=Iz(a,b),e=d.K();fw(a.b.b,e,"click",qa(a.g,b,c),"iv-click-target",a);return d}
function Kz(a,b){var c=Gz(a,b.url,b.id),d=["ul","iv-card-meta-info"];z(b.o,function(a){d.push(["li","",a])});return new W(["article",["iv-card-watchable","iv-card-video"],["h1",{style:"background-image: url("+b.B+");"},b.j],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.C}],["span","iv-card-video-duration",b.b]],["div",["iv-card-content","iv-click-target"],["h2","",b.title],d]]])}
Ez.prototype.g=function(a,b,c){c.stopPropagation();c.preventDefault();We("YPC_LOADER_ENABLED")?(this.b.g.pauseVideo(),this.b.g.isFullscreen()&&Lz(this.b.g.app),this.b.ab.H("external_overlay_activated"),Bz(a.D,a.C,a.B,a.o)):b(c.target,a.url,a.id,a.ia,c)};function Gz(a,b,c){return b?Gy(b,c,a.b.k.videoId,a.b.j):null};function Mz(a,b){Py.call(this,a,b);this.V=!1;this.F=I("div",["iv-cards-thumbnails","hid"]);this.P=I("button",void 0,I("div"));this.o=I("div","iv-cards-background",I("div"),this.P);this.Be=I("div");this.k=I("div",["iv-cards-notif","iv-cards-notif-inactive"],void 0,this.Be,I("button",{type:"button"},I("div")));this.j=I("div","iv-cards-details");this.B=new Ez(this.context);this.b=[];this.I=null;this.L=0;this.g=-1;this.Pb=null;this.D=this.A=!1;N(this.K(),"iv-cards");Qy(this,1E3*this.context.k.Oa-1200,
2147483647,"",this.Zu);this.context.g.addEventListener("onStateChange",u(this.Qd,this));this.context.g.addEventListener("onAdStateChange",u(this.Qd,this))}w(Mz,Py);var Nz={channel:Vy,fundraising:Xy,merch:Xy,playlist:Wy,product:Xy,tip:Yy,video:Zy};function Oz(a,b){return new Cw(a,[b,a.offsetTop],200,Jw)}function Pz(a,b,c){a=new Gw(a,200,Jw);b&&Hk(a,"end",b,!1,c);return a}function Qz(a){var b=new Hw(a,200,Jw);Hk(b,"end",qa(function(a,b){Kf(a,"opacity","");b.target.J()},a));return b}
function Rz(a){hg(a.o,!1);a.K().appendChild(a.o);Ak(a.o,"click",a.Pi,!1,a);Ak(a.o,"touchend",a.Pi,!1,a);a.K().appendChild(a.F);hg(a.j,!1);a.K().appendChild(a.j);a.K().appendChild(a.k);Sz(a);a.context.b.listen(a.k,"click",a.Oq,a);a.context.b.listen(a.k,"touchend",a.Oq,a);a.context.b.listen(a.k,"mouseover",function(){Tz(this);this.Pb&&this.Pb.Hm.stop()},a);a.context.b.listen(a.k,"mouseout",function(){this.Pb&&this.Pb.Hm.start(200)},a);a.context.ab.subscribe("external_overlay_activated",a.Pi,a);var b=
Ty(a);Nx(a.K(),b?445<b.right-b.left&&243<b.bottom-b.top:!1)}f=Mz.prototype;
f.add=function(a){this.V||(Rz(this),this.V=!0);var b=(new W(["button",{type:"button",style:"background-image: url("+a.k+");"}])).K();hg(b,!1);var c,d;switch(a.type){case "fundraising":case "merch":case "product":if(c=Iz(this.B,a))d=c.K(),Ry(this,d,a.url,a.id,a.ia);break;case "tip":(c=Jz(this.B,a,u(this.Ug,this)))&&(d=c.K());break;case "video":if(c=Kz(this.B,a))d=c.K(),Ry(this,d,a.url,a.id,a.ia);break;case "playlist":if(c=Hz(this.B,a))d=c.K(),Ry(this,d,a.url,a.id,a.ia);break;case "channel":if(c=Fz(this.B,
a))d=c.K(),Ry(this,d,a.url,a.id,a.ia)}if(d){var e={Vd:a,Ik:d,yg:b},g=Ab(this.b,e,function(a,b){return a.Vd.td-b.Vd.td});0>g&&(g=-(g+1));xb(this.b,g,0,e);fd(this.F,b,g);1<this.b.length&&Px(this.F);c.W(this.j,g);c=qa(this.hx,e);this.context.b.listen(b,"click",c,this);this.context.b.listen(d,"click",c,this);this.context.b.listen(b,"touchend",c,this);this.context.b.listen(d,"touchend",c,this);Qy(this,a.td,a.g,a.id,qa(this.ix,a),this.jx)}};
f.Ug=function(a,b,c,d,e){ud(a,"article","iv-card-active")?Mz.G.Ug.call(this,a,b,c,d,e):e.preventDefault()};f.hx=function(a,b){var c=mb(this.b,function(b){return b===a});Uz(this,c,!0);ud(b.target,"button","yt-uix-button")||b.stopPropagation()};f.ix=function(){++this.L;Vz(this)?Tz(this):this.D=!0;O(this.k,"iv-cards-notif-inactive")};f.jx=function(){--this.L;0==this.L&&N(this.k,"iv-cards-notif-inactive")};
function Wz(a,b){if(!a.Pb){a.ud();var c=new W(["div","",["span","",b.A],["span","iv-card-image",{style:"background-image: url("+b.k+");"}]]);a.Be.innerHTML="";dd(a.Be,id(c.K()));Ky(a.context.logger,b.ia.Rb,50)}}function Tz(a){if(!a.Pb){var b=Xz(a);if(!(0>b)){Wz(a,a.b[b].Vd);bg(a.Be,"");var c=a.Be.offsetWidth;(new Ew(a.Be,0,c,400,Jw)).play();a.Pb={Hm:new gw(function(){this.Pb&&((new Ew(this.Be,c,0,200,Jw)).play(),this.Pb=null)},4E3,a),Uy:b};a.Pb.Hm.start()}}}function Sz(a){a.ud();Qz(a.k)}
f.Oq=function(a){a&&a.stopPropagation();if(!this.A){a=new jw;$f(this.K(),this.context.j.Td);for(var b=0;b<this.b.length;++b){var c=this.b[b].yg;a.add(Qz(c));gg(c,0);hg(c,!0);a.add(Oz(c,b*(c.offsetWidth+15)))}a.add(Pz(this.k));a.add(Qz(this.o));for(b=0;b<this.b.length;++b)a.add(Qz(this.b[b].Ik));this.A=!0;Hk(a,"end",this.mp,!1,this);a.play();this.C=v();this.j.style.width=445*this.b.length+"px";hg(this.j,!0);gg(this.j,1);this.ud();a=this.Pb?this.Pb.Uy:Math.max(0,Xz(this));Uz(this,a,!1);b={};b.notif=
this.Pb?"1":"0";My(this.context.logger,this.b[a].Vd.ia.Rb,null,50,b);this.I=this.context.b.listen(this.K(),"keydown",this.Vy,this)}};f.mp=function(){this.A=!1};f.Vy=function(a){switch(a.keyCode){case 27:this.Pi();break;case 37:0<this.g&&Uz(this,this.g-1,!0);break;case 39:this.g+1<this.b.length&&Uz(this,this.g+1,!0);break;case 9:Uz(this,this.g+1<this.b.length?this.g+1:0,!0)}a.stopPropagation();a.preventDefault();return!1};
f.Pi=function(a){a&&a.stopPropagation();if(!this.A){var b=new jw;z(this.b,function(a){b.add(Pz(a.yg));b.add(Oz(a.yg,0))});b.add(Pz(this.o));b.add(Qz(this.k));b.add(Pz(this.j,function(){$f(this.K(),"","")},this));this.A=!0;Hk(b,"end",this.mp,!1,this);b.play();a={};a.interval=v()-this.C;this.b[this.g]&&Ny(this.context.logger,this.b[this.g].Vd.ia.Rb,null,a);this.I&&this.context.b.Fa(this.I)}};f.Zu=function(){"none"!=this.j.style.display&&this.context.g.pauseVideo()};
function Uz(a,b,c){var d=a.b[b];a.P.focus();if(a.g!=b){if(0<=a.g){var e=a.b[a.g];O(e.yg,"yt-uix-button-toggled");O(e.Ik,"iv-card-active")}a.g=b;N(d.yg,"yt-uix-button-toggled");N(d.Ik,"iv-card-active");Oz(a.j,Yz(a).x).play();b={};b.nav=c?"1":"0";Ky(a.context.logger,d.Vd.ia.Rb,null,b)}}function Yz(a){var b=Ty(a),c=b.right-b.left,b=b.bottom-b.top,d=dg(a.j);return new F(445*-(isNaN(void 0)?a.g||0:NaN)+(c-445)/2,(b-d.height+(1<a.b.length?63:0))/2)}
f.ud=function(){var a=Ty(this);a&&(Nx(this.K(),a?445<a.right-a.left&&243<a.bottom-a.top:!1),Ox(this.j)&&($f(this.K(),this.context.j.Td),Pf(this.j,Yz(this))),Pf(this.K(),a.left,a.top))};f.Qd=function(a){Vz(this,a)&&this.D&&(this.D=!1,Tz(this))};function Vz(a,b){return 2==Ws(a.context.g.app).getPlayerType()?1==(isNaN(b)?a.context.g.getAdState():b):1==(isNaN(b)?a.context.g.getPlayerState():b)}
function Xz(a){var b=1E3*a.context.g.getCurrentTime();return ob(a.b,function(a){return a.Vd.td<=b&&b<a.Vd.g})};function Zz(a,b,c){Py.call(this,a,b);this.ia=c;this.g=!1}w(Zz,Py);Zz.prototype.zj=function(){Zz.G.zj.call(this);var a=this.ia.data;"start_ms"in a&&"end_ms"in a&&Qy(this,this.ia.data.start_ms,this.ia.data.end_ms,this.ia.id,this.show,this.hide)};function $z(a,b,c){Zz.call(this,a,b,c);this.j=null;this.k=!1;this.qj=null;this.zd=!1;this.b=0}w($z,Zz);
function aA(a){var b=a.ia.data;a.b=b.image_width;a.j=I("img",{src:b.image_url,"class":"branding-img iv-click-target iv-view-target hid",width:b.image_width,height:b.image_height});var c=I("div","branding-img-container",a.j);a.K().appendChild(c);var d=I("div","iv-branding-context-name");od(d,b.channel_name);var e=I("div","iv-branding-context-subscribe");a.ia.j?e.innerHTML=a.ia.j:b.num_subscribers&&od(e,b.num_subscribers);c=I("div","iv-branding-context-subscribe-caret");d=I("div",["branding-context-container-inner",
"iv-view-target"],c,d,e);e=I("div","branding-context-container-outer",d);Kf(e,"right",a.b+"px");a.K().appendChild(e);Ry(a,a.K(),sy(a.ia),a.ia.id,a.ia);a.qj=new gw(qa(function(a){var b=dg(a.parentElement);(new Dw(a.parentElement,[b.width,b.height],[0,0],200,Iw)).play();this.zd=!1},d),500,a);fw(a.context.b,a.K(),"mouseover",qa(function(a,b,c){this.qj.stop();if(!this.zd){var d=dg(a);bg(a,d.width);c=Math.min(d.height,c);c=Math.max(c/2-10,0);Pf(b,d.width,c);this.zd=!0;b=9;d=dg(a);c=dg(a.parentElement);
(new Dw(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,Iw)).play()}},d,c,b.image_height),"iv-view-target",a);fw(a.context.b,a.K(),"mouseout",u(a.qj.start,a.qj),"iv-view-target",a)}$z.prototype.show=function(){if(!this.g){$z.G.show.call(this);this.k||(aA(this),this.k=!0);this.ud();Ky(this.context.logger,this.ia.Rb);Px(this.K());this.g=!0;var a=this.j,b,c=fg(a).width,d=ia(void 0)?void 0:c;b=b||0;Pf(a,d);b=new Bw(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,Iw);Ak(b,"begin",qa(Px,a));b.play()}};
$z.prototype.hide=function(){this.g&&(Qx(this.K()),this.g=!1)};$z.prototype.ud=function(){var a=Ty(this);if(a){var b=a.right-this.b-20,a=a.top+20;Pf(this.K(),b,a)}};function bA(a,b,c,d,e,g){this.b=a;this.j=b;this.k=c;this.logger=d;this.g=e;this.ab=g};function cA(a,b,c){Zz.call(this,a,b,c);this.jj=this.j=this.o=!1;this.k=5E3;this.b=null;this.Wf=I("div","iv-promo-contents")}w(cA,Zz);
function dA(a){var b=a.ia.data;a.k=b.collapse_delay_ms||a.k;var c=["iv-promo","iv-promo-inactive"];a.context.j.b.T&&c.push("iv-promo-exp");var d;if(b.image_url){d=I("div","iv-promo-img");var e=I("img",{src:b.image_url,"class":"iv-click-target"});d.appendChild(e);b.video_duration?(e=I("span",["iv-promo-video-duration","iv-click-target"],b.video_duration),d.appendChild(e)):b.playlist_length&&(e=I("span",["iv-promo-playlist-length","iv-click-target"],b.playlist_length.toString()),d.appendChild(e))}var e=
I("div","iv-promo-txt"),g,h,k;switch(a.ia.style){case "cta":case "website":g=I("p","iv-click-target",I("strong",null,b.text_line_1));h=I("p",["iv-promo-link","iv-click-target"],b.text_line_2);N(e,"iv-click-target");break;case "playlist":case "video":g=I("p","iv-click-target",b.text_line_1);h=I("p","iv-click-target",I("strong",null,b.text_line_2));N(e,"iv-click-target");c.push("iv-promo-video");break;case "vote":g=I("p",null,I("strong",null,b.text_line_1)),h=I("p",null,b.text_line_2),k=I("div","iv-promo-button"),
b=I("button",["yt-uix-button","yt-uix-button-primary"],I("span","yt-uix-button-content",b.button_text)),a.context.b.listen(b,"click",function(a){a.stopPropagation();My(this.context.logger,this.ia.Rb,null,null,{contest_vote:"1"});var b=this.ia.data;a=H("iv-promo-txt",this.Wf);var c=H("iv-promo-button",this.Wf),d=I("div",["iv-promo-txt","iv-click-target"]),e=I("p","iv-click-target",I("strong",null,b.text_line_3)),b=I("p","iv-click-target",b.text_line_4);dd(d,e,b);gd(c);hd(d,a);Ry(this,this.Wf,sy(this.ia),
this.ia.id,this.ia)},a),k.appendChild(b),c.push("iv-promo-with-button")}g&&e.appendChild(g);h&&e.appendChild(h);a.Wf.appendChild(e);k&&a.Wf.appendChild(k);g=I("div","iv-promo-actions");h=I("div","iv-promo-expand");g.appendChild(h);a.context.b.listen(a.K(),"mouseover",a.rr,a);a.context.b.listen(h,"touchend",function(a){a.stopPropagation();this.rr();this.jj=!1},a);a.context.b.listen(a.K(),"mouseout",a.qA,a);h=I("div","iv-promo-close");g.appendChild(h);eA(a,u(function(){this.hide()},a),h);tg(a.K(),c);
d&&cd(a.K(),d);cd(a.K(),a.Wf);cd(a.K(),g);Ry(a,a.K(),sy(a.ia),a.ia.id,a.ia)}f=cA.prototype;f.show=function(){this.g||(cA.G.show.call(this),this.o||(dA(this),this.o=!0),this.ud(),Px(this.K()),this.ia&&this.ia.Rb&&Ky(this.context.logger,this.ia.Rb),"cta"==this.ia.style&&Oy(this.context.logger,this.ia.id,"cta_annotation_shown"),O(this.K(),"iv-promo-inactive"),this.g=!0,this.b&&(Uk(this.b),this.b=null),fA(this),gA(this,this.k))};f.hide=function(){this.g&&(N(this.K(),"iv-promo-inactive"),this.g=!1)};
f.rr=function(){this.jj=!0;fA(this);gA(this,500)};f.qA=function(){this.jj=!1;hA(this)};function hA(a){a.j||a.jj||a.b||(N(a.K(),"iv-promo-collapsed"),a.j=!0)}function fA(a){a.j&&(O(a.K(),"iv-promo-collapsed"),a.j=!1)}function gA(a,b){a.b||(a.b=Tk(function(){this.b&&(Uk(this.b),this.b=null);hA(this)},b,a))}f.ud=function(){var a=Ty(this);if(a){var b=cg(this.K()),b=b.width<a.right-a.left&&b.height<a.bottom-a.top?a.bottom-b.height- -8-25:a.bottom;Pf(this.K(),a.left,b)}};
function eA(a,b,c){function d(a){Ny(this.context.logger,this.ia.Rb);"cta"==this.ia.style&&Oy(this.context.logger,this.ia.id,"cta_annotation_closed");b(a);a.stopPropagation()}a.context.b.listen(c,"click",u(d,a));a.context.b.listen(c,"touchend",u(d,a))};function iA(a,b,c){this.b={};this.g=!1;this.o="ivTrigger:"+a;this.j=c;my(b,function(a,b){var c=jA(b.state,b.b);this.j.subscribe(c,u(this.k,this,c,a));this.b[c]=a},this)}iA.prototype.k=function(a,b,c,d){this.b[a]=b?!c:c;a=Qb(this.b,function(a){return a});this.g!=a&&(this.g=a,this.j.H(this.o,a,d))};function jA(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function kA(a,b,c){this.j=a;this.ia=b;this.b=c;this.g=null;this.o=this.isVisible=!1;lA(b,a)}function lA(a,b){zy(a,function(c){return new iA(a.id,c,b)})}kA.prototype.hide=function(){this.isVisible=!1;this.j.ha("onResize",this.k,this);this.b&&this.b.hide()};kA.prototype.show=function(){this.isVisible=!0;this.b&&this.b.show();this.j.subscribe("onResize",this.k,this)};kA.prototype.destroy=function(){this.j.ha("onResize",this.k,this);if(this.b){var a=this.b;a.C.removeAll();a.g&&gd(a.g);a.j&&a.j.K()&&gd(a.j.K())}mA(this)};
function mA(a){a.g&&(a.g.stop(),a.g=null)}kA.prototype.k=function(){this.b&&nA(this.b)};function oA(){};function pA(a,b,c,d,e,g,h,k){this.o=a;this.B=b;this.A=c;this.C=d;this.b=e;this.g=g;this.j=n(h)?h:null;this.k=n(k)?k:null}w(pA,oA);function qA(){this.da=[];this.fa=[];this.Jd=[]}qA.prototype.jg=null;qA.prototype.od=null;qA.prototype.Oj=!0;var rA=[2,2,6,6,0];f=qA.prototype;f.clear=function(){this.da.length=0;this.fa.length=0;this.Jd.length=0;delete this.jg;delete this.od;delete this.Oj;return this};function sA(a,b,c){0==db(a.da)?a.Jd.length-=2:(a.da.push(0),a.fa.push(1));a.Jd.push(b,c);a.od=a.jg=[b,c]}
f.Xa=function(a){var b=db(this.da);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.da.push(1),this.fa.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Jd.push(c,d)}this.fa[this.fa.length-1]+=b/2;this.od=[c,d]};f.close=function(){var a=db(this.da);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.da.push(4),this.fa.push(1),this.od=this.jg);return this};
function tA(a,b,c,d,e){var g=a.od[0]-b*Math.cos(d*Math.PI/180),h=a.od[1]-c*Math.sin(d*Math.PI/180),g=g+b*Math.cos((d+e)*Math.PI/180),h=h+c*Math.sin((d+e)*Math.PI/180);a.da.push(3);a.fa.push(1);a.Jd.push(b,c,d,e,g,h);a.Oj=!1;a.od=[g,h]}function uA(a,b){for(var c=a.Jd,d=0,e=0,g=a.da.length;e<g;e++){var h=a.da[e],k=rA[h]*a.fa[e];b(h,c.slice(d,d+k));d+=k}}
f.clone=function(){var a=new this.constructor;a.da=this.da.concat();a.fa=this.fa.concat();a.Jd=this.Jd.concat();a.jg=this.jg&&this.jg.concat();a.od=this.od&&this.od.concat();a.Oj=this.Oj;return a};f.isEmpty=function(){return 0==this.da.length};function vA(a,b){this.D=a;this.F=null==b?1:b}w(vA,oA);function wA(a,b){this.b=a;this.g=b};function xA(){}da(xA);xA.prototype.b=0;function yA(a){T.call(this);this.I=a||Kc();this.pa=null;this.Oe=!1;this.b=null;this.o=void 0;this.A=this.C=this.D=null}w(yA,T);f=yA.prototype;f.XB=xA.getInstance();f.getId=function(){return this.pa||(this.pa=":"+(this.XB.b++).toString(36))};f.K=function(){return this.b};f.gi=function(a){if(this.D&&this.D!=a)throw Error("Method not supported");yA.G.gi.call(this,a)};f.Gs=function(){this.b=this.I.createElement("div")};
f.uh=function(){zA(this,function(a){a.Oe&&a.uh()});this.o&&this.o.removeAll();this.Oe=!1};f.J=function(){this.Oe&&this.uh();this.o&&(this.o.dispose(),delete this.o);zA(this,function(a){a.dispose()});this.b&&gd(this.b);this.D=this.b=this.A=this.C=null;yA.G.J.call(this)};f.nd=function(){return this.b};function zA(a,b){a.C&&z(a.C,b,void 0)}
f.removeChild=function(a,b){if(a){var c=r(a)?a:a.getId();a=this.A&&c?ac(this.A,c)||null:null;if(c&&a){var d=this.A;c in d&&delete d[c];rb(this.C,a);b&&(a.uh(),a.b&&gd(a.b));c=a;if(null==c)throw Error("Unable to set parent component");c.D=null;yA.G.gi.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function AA(a,b,c,d,e){yA.call(this,e);this.width=a;this.height=b;this.k=c||null;this.F=d||null}w(AA,yA);AA.prototype.j=null;AA.prototype.Jh=function(){return this.Oe?cg(this.K()):ia(this.width)&&ia(this.height)?new G(this.width,this.height):null};function BA(a){var b=a.Jh();return b?b.width/(a.k?new G(a.k,a.F):a.Jh()).width:0}AA.prototype.resume=function(){};function CA(a,b){T.call(this);this.Fh=a;this.Ok=b;this[ok]=!1}w(CA,T);f=CA.prototype;f.Ok=null;f.Fh=null;f.K=function(){return this.Fh};f.addEventListener=function(a,b,c,d){Ak(this.Fh,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Ik(this.Fh,a,b,c,d)};f.J=function(){CA.G.J.call(this);var a=this.Fh;if(a)if(pk(a))a.removeAllListeners(void 0);else if(a=Dk(a)){var b=0,c;for(c in a.b)for(var d=a.b[c].concat(),e=0;e<d.length;++e)Jk(d[e])&&++b}};function DA(a,b,c,d){CA.call(this,a,b);a=this.Ok;b=this.K();c?(b.setAttribute("stroke",c.g),c=c.b,r(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/BA(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.Ok;a=this.K();if(d instanceof vA)a.setAttribute("fill",d.D),a.setAttribute("fill-opacity",d.F);else if(d instanceof pA){b="lg-"+d.o+"-"+d.B+"-"+d.A+"-"+d.C+"-"+d.b+"-"+d.g;var e=EA(c,b);if(!e){var e=FA(c,"linearGradient",{x1:d.o,y1:d.B,x2:d.A,y2:d.C,gradientUnits:"userSpaceOnUse"}),
g="stop-color:"+d.b;ia(d.j)&&(g+=";stop-opacity:"+d.j);g=FA(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.g;ia(d.k)&&(g+=";stop-opacity:"+d.k);d=FA(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=GA(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}w(DA,CA);function HA(a,b){CA.call(this,a,b)}w(HA,CA);function IA(a,b){CA.call(this,a,b)}w(IA,CA);function JA(a,b,c,d){DA.call(this,a,b,c,d)}w(JA,DA);function KA(a,b){CA.call(this,a,b)}w(KA,HA);KA.prototype.clear=function(){ed(this.K())};function LA(a,b,c,d){DA.call(this,a,b,c,d)}w(LA,JA);function MA(a,b){CA.call(this,a,b)}w(MA,IA);function NA(a,b,c,d,e){AA.call(this,a,b,c,d,e);this.g={};this.M=tc&&!Cc(526);this.L=new Yk(this)}var OA;w(NA,AA);var PA=0;function FA(a,b,c){a=a.I.b.createElementNS("http://www.w3.org/2000/svg",b);if(c)for(var d in c)a.setAttribute(d,c[d]);return a}f=NA.prototype;
f.Gs=function(){var a=FA(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=FA(this,"g");this.B=FA(this,"defs");this.j=new KA(b,this);a.appendChild(this.B);a.appendChild(b);this.b=a;this.k&&(this.K().setAttribute("preserveAspectRatio","none"),this.M?this.Mq():this.K().setAttribute("viewBox","0 0 "+(this.k?this.k+" "+this.F:"")))};
f.Mq=function(){if(this.Oe){var a=this.Jh();if(0==a.width)this.K().style.visibility="hidden";else{this.K().style.visibility="";var b=a.width/this.k,a=a.height/this.F;this.j.K().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
f.Jh=function(){if(!sc)return this.Oe?cg(this.K()):NA.G.Jh.call(this);var a=this.width,b=this.height,c=r(a)&&-1!=a.indexOf("%"),d=r(b)&&-1!=b.indexOf("%");if(!this.Oe&&(c||d))return null;var e,g;c&&(e=this.K().parentNode,g=dg(e),a=parseFloat(a)*g.width/100);d&&(e=e||this.K().parentNode,g=g||dg(e),b=parseFloat(b)*g.height/100);return new G(a,b)};f.clear=function(){this.j.clear();ed(this.B);this.g={}};function QA(a,b,c,d){b=FA(a,"path",{d:RA(b)});c=new LA(b,a,c,d);a.j.K().appendChild(c.K())}
function RA(a){var b=[];uA(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(" ")}function GA(a,b,c){if(b in a.g)return a.g[b];var d="_svgdef_"+PA++;c.setAttribute("id",d);a.g[b]=d;a.B.appendChild(c);return d}
function EA(a,b){return b in a.g?a.g[b]:null}f.uh=function(){NA.G.uh.call(this);this.M&&this.L.Fa(SA(),"tick",this.Mq)};f.J=function(){delete this.g;delete this.B;delete this.j;NA.G.J.call(this)};function SA(){OA||(OA=new Rk(400),OA.start());return OA};function TA(a,b,c){this.b=a;this.g=0;this.B=b;this.C=c||70;this.j=!1}TA.prototype.start=function(a){this.A=v();this.g=a;this.o=this.A+this.g;this.j=!0;Px(this.b);Ze(this.k);this.k=Ye(u(this.D,this),this.C)};TA.prototype.stop=function(){this.j=!1;Qx(this.b);this.k&&Ze(this.k)};
TA.prototype.D=function(){if(this.j){var a=v(),b;b=0==this.g||a>=this.o?0:1-(a-this.A)/this.g;var c=H("countdowntimer-diminishing-pieslice",this.b),d=Fg("svg",this.b);!d&&this.b.querySelectorAll&&(d=this.b.querySelectorAll("svg"),d=d.length?d[0]:null);var d=parseInt(d.getAttribute("width"),10),e=new qA,g=d/2-5;sA(e,d/2,d/2);e.Xa(d/2,5);tA(e,g,g,-90,360*-b);e.Xa(d/2,d/2);e.close();c.setAttribute("d",RA(e));a>=this.o&&(this.stop(),this.B&&this.B())}};function UA(){this.element=this.b=null;this.priority=0;this.o=this.C=!1;this.A=null}w(UA,Mh);UA.prototype.listen=function(a,b,c){return this.element.listen(a,b,c||this)};UA.prototype.Fa=function(a){this.element.Fa(a)};function VA(a,b,c,d){W.call(this,["div",{className:"ytp-button",role:"button","aria-label":"{{label}}","aria-disabled":"{{disabled}}",tabindex:"{{tabindex}}"},"{{content}}"]);this.aa="inline-block";this.D=a;this.I=this.g=this.o=null;this.k=!1;this.listen("click",this.MB);this.listen("keypress",this.NB);this.D.Rg(this.element,u(this.LB,this));b&&WA(this,b);c&&XA(this,c);d&&(this.g=d)}w(VA,W);function WA(a,b){b&&""!=b&&(a.o&&O(a.element,a.o),a.o=b,N(a.element,b))}
function XA(a,b){Ov(a.template,"label",b)}function YA(a,b){a.I=b;Ov(a.template,"tabindex",b)}f=VA.prototype;f.LB=function(){return this.k?null:this.g?this.g:null};f.enable=function(){this.k=!1;this.template.update({disabled:null,tabindex:this.I});O(this.element,"ytp-disabled")};f.disable=function(){this.k=!0;this.template.update({disabled:"true",tabindex:null});N(this.element,"ytp-disabled")};f.MB=function(a){this.k&&(a.stopImmediatePropagation(),a.preventDefault())};
f.NB=function(a){if(13==a.keyCode||32==a.keyCode)a.stopPropagation(),a.preventDefault(),this.vb("click")};f.J=function(){this.D.vn(this.element);this.D=null;VA.G.J.call(this)};function ZA(a,b,c){W.call(this,["div","ytp-segmented-control"]);this.k=a;this.g=-1;this.b=[];if(null!=b)for(Qh(this.b),this.b=[],a=0;a<b.length;a++){var d=new VA(this.k);this.b.push(d);c?d.na(["div",b[a]]):d.na(b[a]);0!=a&&N(d.K(),"ytp-segmented-control-other");$A(d,a==this.g);d.listen("click",qa(this.j,a),this);d.W(this.element)}}w(ZA,W);
ZA.prototype.W=function(a,b){ZA.G.W.call(this,a,b);for(var c=0,d=0;d<this.b.length;d++)c=Math.max(c,cg(this.b[d].K()).width);if(c)for(d=0;d<this.b.length;d++)bg(this.b[d].K(),c)};function aB(a,b){a.g=b;for(var c=0;c<a.b.length;c++)$A(a.b[c],c==b)}ZA.prototype.getSelected=function(){return this.g};function bB(a,b){for(var c=0;c<a.b.length;c++)YA(a.b[c],b)}
function $A(a,b){if(b){var c=a.K();O(c,"ytp-segmented-control-deselected");N(c,"ytp-segmented-control-selected")}else c=a.K(),O(c,"ytp-segmented-control-selected"),N(c,"ytp-segmented-control-deselected")}ZA.prototype.j=function(a){a!=this.g&&(aB(this,a),this.vb("change"))};ZA.prototype.J=function(){Qh(this.b);this.b=[];ZA.G.J.call(this)};function cB(a){UA.call(this);this.b=X(0,"YTP_ANNOTATIONS");this.element=new ZA(a,[X(0,"YTP_ON"),X(0,"YTP_OFF")]);R(this,this.element);bB(this.element,2400);this.priority=2;aB(this.element,1)}w(cB,UA);cB.prototype.getSelected=function(){return this.element.getSelected()};function dB(a,b){this.start=a<b?a:b;this.end=a<b?b:a}dB.prototype.clone=function(){return new dB(this.start,this.end)};function eB(){this.b=!1;this.o=this.j=null}function fB(a,b,c){a.j?($f(a.j.K(),b,c),a.j.clear()):(b=new NA(b,c,void 0,void 0,void 0),a.j=b,a.j.Gs(),a.o=I("div"),b=a.j.K(),a.o.appendChild(b));return a.j}eB.prototype.K=function(){return this.o};eB.prototype.g=function(){};function gB(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Ob(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function hB(a,b){var c;c=":"+(xA.getInstance().b++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function iB(a,b){var c=hB(a,gB("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=hB(a,gB("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},gB("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=hB(a,gB("feComposite",{"in":c,in2:b,operator:"in"}));return hB(a,gB("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function jB(a,b){var c=hB(a,gB("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=hB(a,gB("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=hB(a,gB("feColorMatrix",{"in":c,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0"})),d=hB(a,gB("feColorMatrix",{"in":b,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 100 0"})),d=hB(a,gB("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=hB(a,gB("feComposite",{operator:"out","in":c,in2:d}));return hB(a,gB("feComposite",{operator:"over","in":b,in2:c}))}
function kB(a,b){return b}function lB(a){var b=gB("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";z(a,function(a){t:{switch(a){case "bevel":a=iB;break t;case "dropshadow":a=jB;break t}a=kB}c=a(b,c)});return b}function mB(a){a=hb(a,function(a){return a in nB});Cb(a,function(a,c){return nB[a]-nB[c]});return a}function oB(a){return lb(a,function(a){return"dropshadow"==a})?new Bf(0,7,7,0):new Bf(0,0,0,0)}var nB={bevel:1,dropshadow:2};function pB(a,b,c,d,e){b=qB(b,c,d?d.b/2+1:0);QA(a,b,d,e)}function qB(a,b,c){var d=new qA;sA(d,a.left+b+c,a.top+c);d.Xa(a.left+a.width-b-c,a.top+c);tA(d,b,b,-90,90);d.Xa(a.left+a.width-c,a.top+a.height-b-c);tA(d,b,b,0,90);d.Xa(a.left+b+c,a.top+a.height-c);tA(d,b,b,90,90);d.Xa(a.left+c,a.top+b+c);tA(d,b,b,180,90);d.close();return d}function rB(a,b,c,d){var e=a.L;e?a=new pA(e.o*b/100,e.B*c/100,e.A*b/100,e.C*c/100,e.b,e.g,e.j,e.k):(b=sB(d,a.j),a=new vA(a.o,b));return a}
function sB(a,b){return a?Math.max(b,.9):b}function tB(a,b){var c=new Bf(a.top,a.left+a.width,a.top+a.height,a.left),d=oB(b);ka(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=void 0,c.bottom+=void 0,c.left-=NaN);return Df(c)}
function uB(a,b,c){if(c.length&&(b=Pc("g",void 0,b),b.length)){var d=mB(c);if(d){c="effects:"+(d?d.join("|"):"");var e=EA(a,c);e?a=e:(d=lB(d),a=0<d.childNodes.length?GA(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function vB(){eB.call(this);this.k=0}w(vB,eB);
vB.prototype.g=function(a,b,c){var d=a.b,e=d.C,g=this.b&&wy(a),e=(e+=g?1:0)?new wA(e,g?d.A:d.B):null;if(g=Ay(a)){var h=Zx(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=By(a))&&a.b?a.b:null)&&a.length?a[0]:null){var l;c=c?Zx(c,b):null;a=Ux(k,new Cf(k.D,k.F,k.o,k.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);l=new F(a.left,a.top);c=h.clone();a=new Cf(l.x,l.y,1,1);var g=Math.max(c.left+c.width,a.left+a.width),p=Math.max(c.top+c.height,a.top+a.height);c.left=Math.min(c.left,
a.left);c.top=Math.min(c.top,a.top);c.width=g-c.left;c.height=p-c.top;c=tB(c,d.b);a=fB(this,c.width,c.height);var g=rB(d,c.width,c.height,this.b),h=new Cf(h.left-c.left,h.top-c.top,h.width,h.height),s=new F(l.x-c.left,l.y-c.top);this.k=17*Wx(b,k.j,k.b?k.b:"xy");b=d.g;k=e?e.b/2:0;l=wB(h,s);var p=this.A(h,b,s,l),t=s.x,s=s.y,y=h.width,E=h.height,A=h.left,h=h.top,$=new qA;sA($,A+b+k,h+k);"t"==l&&($.Xa(p.start,h+k),$.Xa(t,s),$.Xa(p.end,h+k));$.Xa(A+y-b-k,h+k);tA($,b,b,-90,90);"r"==l&&($.Xa(A+y-k,p.start),
$.Xa(t,s),$.Xa(A+y-k,p.end));$.Xa(A+y-k,h+E-b-k);tA($,b,b,0,90);"b"==l&&($.Xa(p.end,h+E-k),$.Xa(t,s),$.Xa(p.start,h+E-k));$.Xa(A+b+k,h+E-k);tA($,b,b,90,90);"l"==l&&($.Xa(A+k,p.end),$.Xa(t,s),$.Xa(A+k,p.start));$.Xa(A+k,h+b+k);tA($,b,b,180,90);$.close();QA(a,$,e,g);if(e=this.K())N(e,"annotation-shape"),N(e,"annotation-speech-shape"),Pf(e,c.left,c.top),$f(e,c.width,c.height),uB(a,e,d.b)}}}};
function wB(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,g=a.left-b.x,h=Math.max(c,d,e,g);if(0>h)return"i";switch(h){case c:return"t";case d:return"r";case e:return"b";case g:return"l"}return"i"}vB.prototype.A=function(a,b,c,d){function e(a,c,d){h=Math.min(Math.max(d-2*b,0),g);k=Jb(a-h/2,c+b,c+d-h-b)}var g=this.k,h=0,k=0;"t"==d||"b"==d?e(c.x,a.left,a.width):"l"!=d&&"r"!=d||e(c.y,a.top,a.height);return new dB(k,k+h)};function xB(){eB.call(this)}w(xB,eB);xB.prototype.g=function(a,b,c){var d=Ay(a);d&&(b=Zx(d,b,c),0>=b.width||0>=b.height||(a=a.b,c=tB(b,a.b),d=fB(this,c.width,c.height),pB(d,new Cf(0,0,b.width,b.height),a.g,new wA(!a.k&&this.b?1:a.k,a.o),new vA("#000",0)),b=this.K(),N(b,"annotation-shape"),gg(b,sB(this.b,a.j)),Pf(b,c.left,c.top),$f(b,c.width,c.height)))};var yB=window.location.protocol+"//i.ytimg.com/",zB=4/3;function AB(a,b,c){var d;switch(b.U){case 30:d=BB;break;default:d=CB}return d(a,b,c)}function CB(a,b,c){if(!c){c=a.clientHeight;a=a.clientWidth;if((900<a||600<c)&&b.ac)return b.ac;if((430<a||320<c)&&b.of)return b.of}return b.xa?b.xa:b.videoId?DB(b.videoId):""}function BB(a,b){return b.xa?b.xa:b.videoId?ae("//docs.google.com/vt",{id:b.videoId,authuser:b.Sa,authkey:b.mb}):"//docs.google.com/images/doclist/cleardot.gif"}
function DB(a,b){return(yB+"vi/"+escape(a)+"/"+escape(b||"hqdefault.jpg")).replace("i.","i"+(a.charCodeAt(0)%1+1)+".")};function EB(a,b,c){eB.call(this);this.k=a||0;this.B=b||0;this.A=c||!1}w(EB,eB);function FB(a,b){var c=a.width,d=a.height,e=0,g=0;0<b&&(a.width/a.height>b?(d=a.width/b,g=(a.height-d)/2):(c=a.height*b,e=(a.width-c)/2));return new Cf(e,g,c,d)}
EB.prototype.g=function(a,b,c){var d=Zx(Ay(a),b,c);if(!(0>=d.width||0>=d.height)){var e=FB(d,this.B);e.left+=d.left;e.top+=d.top;b=a.b;c=tB(e,b.b);var g=fB(this,c.width,c.height),h=new vA("#000",0),e=FB(e,this.k);a=a.k?a.k.b?a.k.b:a.k.videoId?DB(a.k.videoId,"hqdefault.jpg"):"":"";e=FA(g,"image",{x:e.left,y:e.top,width:e.width,height:e.height,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});e.setAttributeNS("http://www.w3.org/1999/xlink","href",a);e=new MA(e,g);g.j.K().appendChild(e.K());
if(a=this.K()){var k=sB(this.b,b.j);gg(a,k);if(this.A&&0<b.k){var k=new wA(b.k,b.o),d=new Cf(0,0,d.width,d.height),l;l=qB(d,b.g,k.b/2+1);var p=EA(g,"mask");if(p)l=p;else{var p=document.createElementNS("http://www.w3.org/2000/svg","mask"),s=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("d",RA(l));s.setAttribute("fill","#FFF");p.appendChild(s);l=GA(g,"mask",p)}e=e.K();l&&e.setAttribute("mask","url(#"+l+")");pB(g,d,b.g,k,h)}N(a,"annotation-shape");N(a,"annotation-image-shape");
Pf(a,c.left,c.top);$f(a,c.width,c.height);uB(g,a,b.b)}}};function GB(){eB.call(this)}w(GB,eB);GB.prototype.g=function(a,b,c){var d=Ay(a);if(d){var e=Zx(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.b;c=tB(e,b.b);var d=fB(this,c.width,c.height),g=b.C;a=this.b&&wy(a);a=(g+=a?1:0)?new wA(g,a?b.A:b.B):null;g=new Cf(0,0,e.width,e.height);e=rB(b,e.width,e.height,this.b);pB(d,g,b.g,a,e);if(a=this.K())N(a,"annotation-shape"),N(a,"annotation-popup-shape"),Pf(a,c.left,c.top),$f(a,c.width,c.height),uB(d,a,b.b)}}};function HB(){vB.call(this)}w(HB,vB);HB.prototype.A=function(a,b,c,d){function e(a,c,d){h=Math.min(Math.max(d-2*b,0),g);k=a<=c+d/2?Math.max(c+d/4-h/2,c+b):Math.min(c+3*d/4-h/2,c+d-h-b)}var g=this.k,h=0,k=0;"t"==d||"b"==d?e(c.x,a.left,a.width):"l"!=d&&"r"!=d||e(c.y,a.top,a.height);return new dB(k,k+h)};function IB(a,b,c,d,e){this.b=a;this.F=b;this.B=c;this.M=d;this.I=e;this.C=new ew(this);this.D=this.j=this.o=this.k=this.A=this.g=null}function JB(a,b){var c=u(function(a,c,g){c=g?KB(this,c,u(g,this)):KB(this,c);this.C.listen(b,a,c)},a);c("mouseover","d",a.N);c("mouseout","c",a.L);c("click","a");c("touchend","a")}
function LB(a){if(a.b.B){var b;vy(a.b,function(a){return"close"==a.type})?b=a.g:(a.o=I("div",["annotation-close-button","hid"]),wg(a.o,"annotation_id",a.b.id),a.g.appendChild(a.o),b=a.o);var c=function(a){a.stopPropagation()};a.C.listen(b,"click",KB(a,"b",c));a.C.listen(b,"touchend",KB(a,"b",c))}}
function KB(a,b,c){return u(function(a){if(this.I)c&&c(a);else if(a.target instanceof Element){var e=a.target;Qx(e);try{var g=document.elementFromPoint(a.clientX,a.clientY);if(wd(g,"annotation")){var h=document.createEvent("MouseEvent");h.initMouseEvent(a.type,a.bubbles,a.cancelable,a.view,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget);g.dispatchEvent(h)}}finally{Px(e)}}e=fg(a.target);a=new F(a.clientX,a.clientY);"c"==b&&e.contains(a)||
this.M.H(b,this.b)},a)}IB.prototype.N=function(){this.o&&Px(this.o);this.k&&gg(this.k,1);var a=MB(this);this.j&&(this.j.b=!0,gg(this.g,NB(this)?1:0),a&&this.j.g(this.b,a,OB(this)))};IB.prototype.L=function(){this.o&&Qx(this.o);this.k&&gg(this.k,0);var a=MB(this);this.j&&(this.j.b=!1,gg(this.g,NB(this)?1:0),a&&this.j.g(this.b,a,OB(this)))};function OB(a){return a.D?Ay(a.D):null}
function nA(a){if(a.g||a.j){var b=Ay(a.b);if(b){var c=MB(a),d=OB(a);if(a.g&&c){b=Zx(b,c,d);$f(a.g,b.width,b.height);Pf(a.g,b.left,b.top);var e=a.B.Bf;if(e){var g;g=(g=Ay(a.b))&&e?Vx(e,g.k,g.b?g.b:"xy"):1;var e=Cy(a.b,e),h;h=a.b.b;h.F?h=h.F:(h="speech"==a.b.style?1.6:.8,h=new Bf(h,h,h,h));h=new Bf(360*h.top*e/100,640*h.right*g/100,360*h.bottom*e/100,640*h.left*g/100);a.k&&(h.right+=1.5*c.height/100);a.g.style.padding=h.top+"px "+h.right+"px "+h.bottom+"px "+h.left+"px";"label"==a.b.style&&a.A&&(a.A.style.padding=
a.g.style.padding);a.k&&(g=g/e*c.height*4.2/100,g=new G(g,g),$f(a.k,g),"highlight"==a.b.type||"label"==a.b.style?(e=1.5*c.height/100,g=new F(b.width-g.width-e,b.height-g.height-e)):g=new F(b.width-g.width-3*c.height/100,(b.height-g.height)/2),Pf(a.k,g));a.o&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,Pf(a.o,g&&e?new F(b.width-9,-9):g?new F(b.width-9,45<b.height?9:b.height-9):e?new F(45<b.width?b.width-9-18:-9,-9):b.width/c.width>b.height/c.height?new F(45<b.width?b.width-9-18:-9,b.height-
9):new F(-9,45<b.height?9:b.height-9)))}}a.j&&c&&a.j.g(a.b,c,d);if(a.g){c=a.g;d=a.b.b;c.style.color="highlightText"==a.b.style?d.I:d.A;c.style.fontSize=360*d.M*Cy(a.b,a.B.Bf)/100+"px";b=a.b.style;c.style.textAlign=d.textAlign?d.textAlign:"title"==b||"highlightText"==b?"center":"left";d.D&&(c.style.fontWeight=d.D);a=a.g;c=a.style.overflow;d=H("annotation-link-icon",a);b=Ox(d);g=H("annotation-close-button",a);e=Ox(g);d&&b&&Qx(d);g&&e&&Qx(g);var k=h="",l=H("inner-text",a);l&&(h=l.style.overflow,k=l.style.position,
l.style.overflow="visible",l.style.position="static");a.style.overflow="scroll";if(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth){for(var p=qg(a),s=p,t=5,y=Math.floor(p/2);y;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(t=s,s=Math.min(s+y,p)):s=Math.max(s-y,t),y=Math.floor(y/2),a.style.fontSize=s+"px";s!=t&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=t+"px")}a.style.overflow=c;l&&(l.style.overflow=h,l.style.position=k);g&&e&&Px(g);
d&&b&&Px(d)}}}}
IB.prototype.show=function(){var a=this.b.b,a=(a&&0==a.j||"title"==this.b.style||"highlightText"==this.b.style||"pause"==this.b.type?!1:!0)&&!this.j,b=!this.g,c="widget"==this.b.type;if(a){var d=MB(this);if(d){var e=null;"highlight"==this.b.type||"label"==this.b.style?e=new xB:"popup"==this.b.style?e=new GB:"anchored"==this.b.style?e=new vB:"speech"==this.b.style?e=new HB:"image"==this.b.type&&("video"==this.b.style?e=new EB(4/3,16/9,!0):"channel"==this.b.style&&(e=new EB));e&&(e.g(this.b,d,OB(this)),
this.j=e,d=e.K())&&(Qx(d),N(d,"annotation-type-"+this.b.type.toLowerCase()),this.F(d))}}if(b){d=["annotation","hid"];"highlightText"!=this.b.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.b.type.toLowerCase());this.g=I("div",d);this.b.A&&(this.A=I("div","inner-text"),"label"==this.b.style&&(N(this.A,"label-text"),this.A.style.backgroundColor=this.b.b.o),od(this.A,this.b.A),this.g.appendChild(this.A));wg(this.g,"annotation_id",this.b.id);this.F(this.g);JB(this,this.g);if(wy(this.b)&&
"image"!=this.b.type&&uy(this.b)){if(d=sy(this.b))this.g.title=Zw(d);this.k=I("span","annotation-link-icon");this.g.appendChild(this.k)}LB(this);wy(this.b)||(this.g.style.cursor="default")}c&&("subscribe"==this.b.style?H("yt-uix-subscription-button",this.g)||(this.g.innerHTML=this.b.j):this.b.j&&(this.g.innerHTML=this.b.j));if(a||b){t:{a=this.b.g.b;if(a.length&&(a=fy(a[0]))){a=a.A;break t}a=0}this.g&&(this.g.style.zIndex=a);this.j&&this.j.K()&&(this.j.K().style.zIndex=a)}Px(this.g);gg(this.g,NB(this)?
1:0);nA(this);this.j&&Px(this.j.K())};IB.prototype.hide=function(){Qx(this.g);this.j&&Qx(this.j.K())};function NB(a){return"label"!=a.b.style||a.j.b}function MB(a){var b=a.B.Bf;return b?"player_relative"==a.b.D?(a=a.B.Td)?new Cf(-b.left,-b.top,a.width,a.height):null:new Cf(0,0,b.width,b.height):null};function PB(a){ru.call(this,a);this.hk=!0;this.va="iv-module";this.gc="iv";this.L=!1;this.P=!0;this.B=!1;this.k=0;this.g={};this.F={};this.A=new Jy(this.M,this.b);a=QB;this.o=new cB(Fu(this));R(this,this.o);this.o.listen("change",this.vu,this);this.subscribe("onHideControls",this.su,this);this.subscribe("onShowControls",this.uu,this);this.subscribe("onStateChange",this.tu,this);this.subscribe("d",this.xu,this);this.subscribe("c",this.wu,this);this.subscribe("a",this.qu,this);this.subscribe("b",this.ru,
this);var b=new Jv(["div",[a.nu,"hid"],["svg",{width:"60",height:"60"},["g","",["circle","countdowntimer-background-circle",{cx:"30",cy:"30",r:"15"}],["path","countdowntimer-diminishing-pieslice",{d:"M30,30 z"}],["circle","countdowntimer-middle-dot",{cx:"30",cy:"30",r:"4"}]]]]);R(this,b);b=b.K();this.O=I("DIV",[a.pu,"html5-stop-propagation"]);this.C=I("DIV",a.ou);uu(this,I("DIV",a.mu,this.O,this.C));uu(this,b);this.D=new TA(b,u(this.pk,this));this.j=null;this.N=[];this.I=null}w(PB,ru);PB.o="AnnotationsModule";
var QB={mu:"video-annotations",nu:"countdowntimer",ou:"video-custom-annotations",pu:"video-legacy-annotations"};PB.k=function(a){switch(a.type){case "branding":case "promotion":case "survey":return!0}return!1};PB.j=function(a){return"card"==a.type};PB.g=function(a){return PB.Ja(a)?new PB(a):null};PB.Ja=function(a){return"leanback"==a.R().ba?!1:ls(a.getVideoData(),"iv3_module")};PB.b=function(){return I("div",["annotation","annotation-type-custom","hid"])};f=PB.prototype;f.Ja=function(){return PB.Ja(this.b)};
f.create=function(){PB.G.create.call(this);Gu(this,this.o);1==(this.b.R().ea||this.b.getVideoData().za)&&this.load()};f.destroy=function(){Hu(this,this.o);PB.G.destroy.call(this)};f.vu=function(){var a=this.B||this.k,b=0==this.o.getSelected();a&&!b?(this.unload(),this.log({toggle:0})):!a&&b&&(this.load(),this.log({toggle:1}))};f.tu=function(a){this.P=V(a.state,8);0>aw(a,4)&&this.D.stop()};
f.load=function(){PB.G.load.call(this);var a=this.b.getVideoData(),b=u(this.Sr,this,a.videoId);pz()&&(b=RB(this,b));b={format:"XML",method:"GET",ub:b};a.Ym&&(this.k++,Li(a.Ym,b));a.Xm&&(b=u(this.Sr,this,a.videoId),pz()&&(b=RB(this,b)),b={format:"XML",method:"GET",ub:b},this.k++,Li(a.Xm,b));aB(this.o.element,0)};
f.unload=function(){aB(this.o.element,1);this.A.log_({"iv-event":1});this.pk();su(this);Ob(this.g,function(a){a.destroy()});Ob(this.F,function(a){a.destroy()});this.j&&(this.j.destroy(),this.j=null);this.k=0;this.B=!1;this.g={};this.F={};PB.G.unload.call(this)};
function SB(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 g;if(c[e.tagName])g=c[e.tagName];else if("html_blob"==e.tagName||"data"==e.tagName){0<e.childNodes.length&&(c[e.tagName]=e.childNodes[0].nodeValue.trim());continue}else g=[],c[e.tagName]=g;e&&"TEXT"==e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?g.push(e.childNodes[0].nodeValue):g.push(""):e&&g.push(SB(a,e))}return c}
f.Sr=function(a,b){if(this.k&&!this.B&&this.b.getVideoData().videoId==a){this.k--;var c=b.responseXML?b.responseXML.getElementsByTagName("annotations"):null;if(Gi(b)&&c){TB(this,c[0]);N(Ct(this.b),this.va+"-loaded");0==this.k&&(this.B=!0);var c=[],d;for(d in this.g){var e=this.g[d].ia,g;if(e.g)if(g=e.g,g.b.length)if(g=g.b[0].g||g.b[0].b||g.b[0].j,!g||2>g.length)g=null;else{var h=g.length-1;g=0>=g[0].g&&0>=g[h].g?null:{start:g[0].g,end:g[h].g}}else g=null;else g=null;if(h=g)if(g=1E3*h.start,h=1E3*
h.end,0==g&&(g++,h++),g==h&&h++,!(h<g)){var k={id:d};"marker"==e.type&&(k.style="ytp-chapter-marker",k.tooltip=e.A,k.visible=!0);e=new hu(g,h,k);c.push(e)}}this.Kf.apply(this,c)}}};function UB(a,b){var c=VB(a,b);if(!c&&"marker"!=b.type)return null;yy(b,function(a){a=u(this.zD,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new kA(a.M,b,c)}
function WB(a,b){var c=PB.b(),d=null;switch(b.type){case "branding":a.C.appendChild(c);d=new $z(c,XB(a),b);break;case "promotion":a.C.appendChild(c),d=new cA(c,XB(a),b)}d&&d.zj();return d}function YB(a,b){if(!a.j){var c=PB.b();a.C.appendChild(c);a.j=new Mz(c,XB(a));a.j.zj()}var c=a.j,d=b&&b.data&&b.data.card_type;if(d){var e=sy(b);e&&Nz[d]&&c.add(new Nz[d](b.id,b.data,e,b))}}function XB(a){a.I||(a.I=new bA(new ew(a),a.b.R(),a.b.getVideoData(),a.A,a.b,a.M));return a.I}
function TB(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=SB(a,c[d]),g=null;try{g=ry(e)}catch(h){}g&&(PB.k(g)?(e=WB(a,g))&&(a.F[g.id]=e):PB.j(g)?YB(a,g):(e=UB(a,g))&&(a.g[g.id]=e))}Ob(a.g,function(a){var b=a.ia;b.g&&b.g.g&&(b=this.g[b.g.g])&&(a.b.D=b.ia)},a)}f.Ec=function(a){PB.G.Ec.call(this,a);a=a.getId();var b=this.g[a];b&&!b.o&&(b=b.ia,"pause"==b.type?ZB(this,b):($B(this,a),Ky(this.A,b.Rb)))};f.kd=function(a){PB.G.kd.call(this,a);aC(this,a.getId())};
function ZB(a,b){if(a.P){var c=ty(b,function(a){return"pause"==a.type&&!!a.duration&&!!a.duration.value});c&&(a.L=!0,a.H("command_pause"),a.D.start(1E3*c.duration.value))}}function bC(a,b,c,d){d?$B(a,b,c):aC(a,b,c)}function aC(a,b,c){if(b=a.g[b])mA(b),c&&c.g?(a=u(a.Ls,a,b),b.g=new gw(a,2E3),b.g.start()):a.Ls(b)}f.Ls=function(a){a&&(a.hide(),cC(this,"shown",!1,a.ia.id),dC(this,a.ia,"hidden"))};function $B(a,b,c){if(b=a.g[b])mA(b),c&&c.k?(a=u(a.zs,a,b),b.g=new gw(a,2E3),b.g.start()):a.zs(b)}
f.zs=function(a){a&&(a.show(),cC(this,"shown",!0,a.ia.id),dC(this,a.ia,"shown"))};f.zD=function(a,b,c){var d=this.g[a];if(d&&b.value!=c){b.value=c;var e=!1;yy(d.ia,function(a){e|=a.value});bC(this,a,b,e)}};f.qu=function(a){if(a&&a.id){var b=sy(a);if(b){var c=u(function(){dC(this,a,"click")},this);Dy(Zw(b))&&"new"!=b.target||(c(),c=null);My(this.A,a.Rb,c)}}};
function dC(a,b,c){xy(b,function(a){if(a.trigger==c&&"openUrl"==a.type){var e=this.b.getVideoData(),g=Fy(a.url,e.videoId);if(-1!=g)this.H("command_seek",g),this.pk();else if(e=Gy(a.url,b.id,e.videoId,this.b.R()))this.pauseVideo(),window.open(e,Iy(a.url))}},a)}f.su=function(){cC(this,"playerControlShow",!1)};f.uu=function(){cC(this,"playerControlShow",!0)};f.xu=function(a){cC(this,"rollOver",!0,a.id)};f.wu=function(a){cC(this,"rollOver",!1,a.id)};
f.ru=function(a){if(a||a.id)this.g[a.id].o=!0,aC(this,a.id),a&&(Ny(this.A,a.Rb),dC(this,a,"close")),cC(this,"closed",!0,a.id)};f.pk=function(){this.D.stop();this.L&&(this.L=!1,this.H("command_play"))};function VB(a,b){if(eC(b)){var c=b.B||vy(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new IB(b,u(a.O.appendChild,a.O),a.b.R(),a.M,c)}return null}
function eC(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in oy)if(a.style==oy[b])return!0;return!1}function cC(a,b,c,d){a.H(jA(b,d),c,d)}function RB(a,b){return u(function(){if(!this.ga()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=qa.apply(window,a);this.N.push(qz(b,void 0))}},a)}f.J=function(){for(var a=this.N,b=0,c=a.length;b<c;b++)sz(a[b]);this.N.length=0;PB.G.J.call(this)};function fC(a,b,c){c=c||{};var d=c.gd;d||(d=document.createElement("style"),d.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(d),d=d.sheet||d.styleSheet);c.reset&&gC(d);b=b instanceof Array?b.join(";"):b;d.insertRule?d.insertRule(a+"{"+b+"}",d.cssRules.length):d.addRule(a,b,-1);return d}function gC(a){for(var b=(a.cssRules||a.rules).length;0<b;b--){var c=a;c.deleteRule?c.deleteRule(0):c.removeRule(0)}};function hC(a,b,c){W.call(this,["div","ytp-drop-down","{{content}}"]);this.o=!1;this.B=0;this.D=this.C=null;this.g=new W(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);R(this,this.g);this.b=new VA(a,"ytp-drop-down-label");R(this,this.b);this.b.listen("click",this.F,this);this.A=new W(["div","ytp-drop-down-label-content","{{content}}"]);R(this,this.A);this.b.na([this.A,["div","ytp-drop-down-arrow"]]);this.na([this.g,this.b]);this.stopPropagation("click");n(b)&&this.k(b);n(c)&&this.D!=c&&
(this.g.na(c),this.D=c,iC(this));iC(this)}w(hC,W);hC.prototype.k=function(a){this.C!=a&&(this.A.na(a),this.C=a,iC(this))};hC.prototype.j=function(){this.o=!1;iC(this)};hC.prototype.F=function(){this.o=!this.o;iC(this);this.o&&this.g.K().focus()};function jC(a,b){b>a.B&&(a.B=b,a.element.style.minWidth=a.B+"px")}
function iC(a){a.o?(a.g.show(),cz(a,window,"blur",a.j,a,"menu"),cz(a,document,"click",a.j,a,"menu")):(a.g.hide(),dz(a,"menu"));var b=cg(a.b.K());a.g.K().style.bottom=b.height-1+"px";jC(a,b.width)};function kC(a,b){VA.call(this,a,"ytp-drop-down-menu-button");this.b=new W(["div","ytp-drop-down-menu-button-check"]);R(this,this.b);this.j=!!b}w(kC,VA);kC.prototype.na=function(a){kC.G.na.call(this,[this.b,a])};function lC(a,b){P(a.element,"ytp-drop-down-menu-button-selected",b);a.j||P(a.element,"ytp-drop-down-menu-button-checked",b)}function mC(a,b){P(a.element,"ytp-drop-down-menu-button-separated",b)}function nC(a,b){P(a.element,"ytp-drop-down-menu-button-checked",b)};function oC(a,b,c,d){W.call(this,["div","ytp-drop-down-menu-content",{tabindex:"{{tabindex}}"},"{{content}}"]);this.C=a;this.o=!!d;this.j={};this.k=[];this.b=this.g=null;this.A=b;this.B=c}w(oC,W);function pC(a,b){Fb(a.k,b)||(Ob(a.j,function(a){a.bd()}),a.k=[],b&&z(b,function(a){this.k.push(a);var b=qC(this,a);this.o&&nC(b,a==this.b);lC(b,a==this.g);b.W(this.element)},a))}function rC(a,b){null!=a.g&&lC(qC(a,a.g),!1);null!=b&&lC(qC(a,b),!0);a.g=b;a.o||(a.b=b)}oC.prototype.getSelected=function(){return this.g};
function sC(a,b){Ob(a.j,function(a){YA(a,b)})}function qC(a,b){var c=a.j[b.toString()];if(c)return c;c=new kC(a.C,a.o);R(a,c);a.j[b.toString()]=c;c.na(a.A(b));c.listen("click",u(a.B,a,b));return c};function tC(a){UA.call(this);this.D=this.j;this.k={};this.k[this.j]=X(0,"YTP_TRANSLATE_MENU_ITEM");this.k.contribute=X(0,"YTP_CONTRIBUTE_MENU_ITEM");this.F=!0;this.b=X(0,"YTP_SUBTITLES");this.g=new oC(a,u(this.I,this),u(this.N,this));R(this,this.g);this.element=new hC(a,void 0,this.g);R(this,this.element);jC(this.element,150);this.priority=2;this.o=!0;this.A="captions";this.B=this.L=!1}w(tC,UA);tC.prototype.j="translate";
function uC(a,b){var c=[a.j];a.B&&c.push("contribute");for(var d=0;d<b.length;d++){var e=b[d],g=e.toString();a.k[g]||(a.k[g]=vC(e));c.push(g)}pC(a.g,c);c=!a.L;d=qC(a.g,a.j);c?d.disable():d.enable();c=!a.B;mC(qC(a.g,a.j),c);a.B&&mC(qC(a.g,"contribute"),!0);c=2100;sC(a.g,c++);c=c++;YA(a.element.b,c)}function wC(a,b){a.k[b]&&(a.D=b,rC(a.g,b),a.element.k(a.I(b)))}function xC(a,b){a.L=b;var c=!b,d=qC(a.g,a.j);c?d.disable():d.enable()}tC.prototype.I=function(a){return this.k[a]};
tC.prototype.N=function(a){this.element.j();a==this.j?(this.F=!0,this.element.vb("select")):"contribute"==a?(this.F=!1,this.element.vb("select")):(wC(this,a),this.element.vb("change"))};function yC(a){UA.call(this);this.b=X(0,"YTP_SUBTITLES");this.element=new ZA(a,[X(0,"YTP_ON"),X(0,"YTP_OFF")]);R(this,this.element);bB(this.element,2200);this.priority=1;this.C=!0;this.A="captions";aB(this.element,1)}w(yC,UA);yC.prototype.M=function(){this.element.vb("select")};yC.prototype.getSelected=function(){return this.element.getSelected()};function zC(a){W.call(this,a)}w(zC,W);zC.prototype.Hr=function(){};zC.prototype.rj=function(){};var AC={NI:"monoSerif",kJ:"propSerif",MI:"monoSans",jJ:"propSans",CASUAL:"casual",CURSIVE:"cursive",IJ:"smallCaps"},BC={NONE:"none",DROP_SHADOW:"dropShadow",RAISED:"raised",DEPRESSED:"depressed",eK:"uniform"},CC=["left","right","center"],DC={id:0,priority:0,anchorPoint:7,cj:50,VE:80,fe:95,xd:15,wm:100,isVisible:!0,textAlign:CC[2],Pe:0,backgroundColor:"#080808",foregroundColor:"#fff",PE:1,Rn:1},EC={id:98},FC={id:99,priority:1,anchorPoint:0,cj:5,fe:7,xd:2,wm:32,textAlign:CC[0]},GC=["CA","MX","US"];var HC=[{ja:"#fff",message:"YTP_COLOR_WHITE"},{ja:"#ff0",message:"YTP_COLOR_YELLOW"},{ja:"#0f0",message:"YTP_COLOR_GREEN"},{ja:"#0ff",message:"YTP_COLOR_CYAN"},{ja:"#00f",message:"YTP_COLOR_BLUE"},{ja:"#f0f",message:"YTP_COLOR_MAGENTA"},{ja:"#f00",message:"YTP_COLOR_RED"},{ja:"#080808",message:"YTP_COLOR_BLACK"}],IC=[{ja:0,text:"0%"},{ja:.25,text:"25%"},{ja:.5,text:"50%"},{ja:.75,text:"75%"},{ja:1,text:"100%"}],JC=[{ja:"fontFamilyOption",message:"YTP_FONT_FAMILY",options:[{ja:"monoSerif",message:"YTP_FONT_FAMILY_MONO_SERIF"},
{ja:"propSerif",message:"YTP_FONT_FAMILY_PROP_SERIF"},{ja:"monoSans",message:"YTP_FONT_FAMILY_MONO_SANS"},{ja:"propSans",message:"YTP_FONT_FAMILY_PROP_SANS"},{ja:"casual",message:"YTP_FONT_FAMILY_CASUAL"},{ja:"cursive",message:"YTP_FONT_FAMILY_CURSIVE"},{ja:"smallCaps",message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{ja:"color",message:"YTP_FONT_COLOR",options:HC},{ja:"fontSizeIncrement",message:"YTP_FONT_SIZE",options:[{ja:-2,text:"50%"},{ja:-1,text:"75%"},{ja:0,text:"100%"},{ja:1,text:"150%"},{ja:2,text:"200%"},
{ja:3,text:"300%"},{ja:4,text:"400%"}]},{ja:"background",message:"YTP_BACKGROUND_COLOR",options:HC},{ja:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:IC},{ja:"windowColor",message:"YTP_WINDOW_COLOR",options:HC},{ja:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:IC},{ja:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",options:[{ja:"none",message:"YTP_EDGE_STYLE_NONE"},{ja:"dropShadow",message:"YTP_EDGE_STYLE_DROP_SHADOW"},{ja:"raised",message:"YTP_EDGE_STYLE_RAISED"},{ja:"depressed",
message:"YTP_EDGE_STYLE_DEPRESSED"},{ja:"uniform",message:"YTP_EDGE_STYLE_OUTLINE"}]},{ja:"textOpacity",message:"YTP_FONT_OPACITY",options:[{ja:.25,text:"25%"},{ja:.5,text:"50%"},{ja:.75,text:"75%"},{ja:1,text:"100%"}]}];function KC(a,b,c,d){W.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);var e=b.text||(b.message?X(0,b.message):""),e=[new Jv(["div","ytp-subtitles-settings-dialog-list-text",e])];d&&(d=new Jv(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.K().style.background=b.ja,e.unshift(d));c?e.unshift(new Jv(["div","ytp-subtitles-settings-dialog-list-caret"])):e.unshift(new Jv(["div","ytp-subtitles-settings-dialog-list-check"]));this.b=new VA(a);R(this,this.b);this.b.na(e);
this.na(this.b)}w(KC,W);KC.prototype.setEnabled=function(a){P(this.b.K(),"ytp-subtitles-settings-dialog-list-selected",a)};function LC(a){W.call(this,["div",["ytp-subtitles-settings-dialog","ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body",["div","ytp-subtitles-settings-dialog-top-level","{{top}}"],["div","ytp-subtitles-settings-dialog-sub-level","{{sub}}"]],["div","ytp-dialog-buttons","{{buttons}}"]]);this.k=a;this.g=null;var b=X(0,"YTP_DONE"),c=new VA(a,"ytp-dialog-button",b);R(this,c);c.na(b);c.listen("click",qa(this.vb,"cancel"),this);YA(c,1400);b=X(0,"YTP_RESET");a=new VA(a,"ytp-dialog-button",b);R(this,
a);a.na(b);N(a.K(),"ytp-dialog-button-left");a.listen("click",qa(this.vb,"select"),this);YA(a,1300);this.j={};this.b={};this.template.update({top:MC(this,JC),buttons:[a,c]})}w(LC,zC);
function MC(a,b,c){var d=new W(["ul","ytp-subtitles-settings-dialog-list"]),e,g=!1;n(c)?(a.b={},e=a.b):(a.j={},e=a.j,g=!0);for(var h=0;h<b.length;h++){var k=b[h],l=new KC(a.k,k,g,b==HC);g?(l.listen("click",u(a.rq,a,k.options,k.ja)),YA(l.b,1100)):c&&(l.listen("click",u(a.rA,a,c,k.ja)),YA(l.b,1200));e[k.ja]=l;l.W(d.K())}return d}f=LC.prototype;f.rq=function(a,b){this.template.update({sub:MC(this,a,b)});NC(this,this.j,b);NC(this,this.b,this.g[b]);OC(this.template.b["ytp-subtitles-settings-dialog-sub-level"])};
function OC(a){(a=H("ytp-subtitles-settings-dialog-list-selected",a))&&a.focus()}f.rj=function(){OC(this.template.b["ytp-subtitles-settings-dialog-top-level"])};function NC(a,b,c){Ob(b,function(a,b){a.setEnabled(b==c)},a)}function PC(a,b){a.g=b;var c=JC[0];c&&c.options&&a.rq(c.options,c.ja)}f.rA=function(a,b){this.g&&(this.g[a]=b,this.vb("change"));NC(this,this.b,b);this.rj()};
f.Hr=function(){var a=this.k.pd(),b=2*Math.floor(Math.min(560,Math.max(230,.65*a.width))/2);this.K().style.width=b+"px";this.template.b["ytp-dialog-body"].style.height=a.height-140+"px"};f.J=function(){this.j=[];this.b=[];LC.G.J.call(this)};function QC(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",X(0,"YTP_TRANSLATE_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];W.call(this,b);var c=X(0,"YTP_DISMISS"),b=new VA(a,"ytp-dialog-button",c);R(this,b);b.na(c);b.listen("click",qa(this.vb,"change"),this);YA(b,1400);var c=X(0,"YTP_CANCEL"),d=new VA(a,"ytp-dialog-button",c);R(this,d);d.na(c);d.listen("click",qa(this.vb,"cancel"),this);YA(d,1500);this.g=new oC(a,
u(this.j,this),u(this.o,this),!0);R(this,this.g);this.g.element.style.maxHeight="100px";this.b=new hC(a,void 0,this.g);R(this,this.b);jC(this.b,200);this.k=null;this.template.update({content:this.b,buttons:[b,d]})}w(QC,zC);function RC(a,b){a.k=b;a.b.k(b?a.j(b):null)}QC.prototype.getSelected=function(){return this.k};QC.prototype.o=function(a){this.b.j();RC(this,a)};QC.prototype.j=function(a){return a.vi+" -- "+a.Wk};QC.prototype.rj=function(){this.b.b.K().focus()};var SC;function TC(a,b){ha(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;SC||(SC={atomic:!1,autocomplete:"none",dropeffect:"none",haspopup:!1,live:"off",multiline:!1,multiselectable:!1,orientation:"vertical",readonly:!1,relevant:"additions text",required:!1,sort:"none",busy:!1,disabled:!1,hidden:!1,invalid:"false"});c=SC;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function UC(a,b,c,d,e){VA.call(this,a,b,c,c);this.F=b;this.L=this.M=c;this.A=d||null;this.B=e||null;this.C=e||null;this.b=!1}w(UC,VA);function VC(a){WA(a,a.b&&a.A?a.A:a.F);XA(a,a.b&&a.B?a.B:a.M);a.g=a.b&&a.C?a.C:a.L;P(a.element,"ytp-button-pressed",a.b)}function WC(a){a.b=!0;TC(a.element,!0);VC(a)}function XC(a){a.b=!1;TC(a.element,!1);VC(a)}function YC(a,b){a.F=b;VC(a)}UC.prototype.J=function(){this.C=this.B=this.A=null;UC.G.J.call(this)};function ZC(a){a=a||DC;ra(this,a)}f=ZC.prototype;f.anchorPoint=7;f.cj=50;f.fe=95;f.VE=80;f.Pe=0;f.textAlign="center";f.backgroundColor="#080808";f.foregroundColor="#fff";f.PE=1;f.Rn=1;f.xd=15;f.wm=32;f.isVisible=!0;f.Zs='"Arial Unicode Ms", Arial';f.BD="100%";function $C(a,b){this.id=a;this.Ea=new ZC(b);var c="caption-window";0==this.id&&(c="standard-caption-window");this.Aa=I("div",{id:"caption-window-"+this.id,"class":c});this.Nb=I("span",{"class":"captions-text",style:"visibility: hidden"});this.Nb.innerHTML="C";this.Ba=I("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.Pj=I("div",{"class":"caption-window-transform"});this.Pj.appendChild(this.Ba);this.Aa.appendChild(this.Pj)}$C.prototype.id=0;f=$C.prototype;f.Ea=null;
f.hh="";f.Tc=null;f.Aa=null;f.Pj=null;f.Ba=null;f.Nb=null;f.type=1;f.Lj=function(){var a;this.Nb.style.fontFamily=this.Ba.style.fontFamily;this.Aa.appendChild(this.Nb);a=this.Nb.offsetHeight;this.Aa.removeChild(this.Nb);return a};f.Ye=function(){this.Ba&&(0!=this.id&&(bg(this.Aa,"100%"),bg(this.Aa,this.Ba.offsetWidth)),aD(this),Nx(this.Aa,this.Ea.isVisible))};function aD(a){Pf(a.Aa,a.Ea.cj+"%",a.Ea.fe+"%");for(var b=0;8>=b;b++)O(a.Aa,"anchor-point-"+b);N(a.Aa,"anchor-point-"+a.Ea.anchorPoint)}
f.yr=function(a){var b=[];z(a,function(a){a.Nj?b[b.length-1]+=a.ge:b.push(a.ge)});this.Ue(b.join("\n"));this.Tc=a};f.Ue=function(a){this.hh=a=bD(a);this.Ba.innerHTML=this.hh;this.Sn();this.Ye()};function cD(a,b){b&&(b=b.replace(/<[^>]*>?/g,""),a.Ue(b))}
f.Sn=function(){this.Aa.style.textAlign=this.Ea.textAlign;this.Ba.style.backgroundColor=this.Ea.backgroundColor;this.Ba.style.color=this.Ea.foregroundColor;this.Ba.style.opacity=this.Ea.Rn;this.Ba.style.fontFamily=this.Ea.Zs;this.Ba.style.fontSize=this.Ea.BD;1==this.Ea.Pe?this.Ba.setAttribute("dir","rtl"):this.Ba.removeAttribute("dir")};f.toString=function(){var a="Caption window ("+this.id+"): "+this.hh,b;for(b in this.Ea)a+=b+" "+this.Ea[b]+" | ";return a};
function bD(a){a=a.split("\n");for(var b=0,c=a.length;b<c;b++)a[b]=a[b]?"&nbsp;"+a[b]+"&nbsp;":"";return a.join("<br>")}f.Qj=function(){this.Tc=[];this.Ue("")};function dD(){this.o=20971520;this.k=8388608;this.j=5242880;this.ua=NaN;this.A=this.C=2;this.O=25;this.F=2097152;this.g=!0;this.b=1800;this.P=this.N=!1;this.B=1.15;this.ci=vo.auto;this.L=!0;this.V=pr("xboxone");this.D=0;this.T=this.M=this.I=!1};function eD(){this.da=[]}eD.prototype.contains=function(a){a=Ab(this.da,a);return 0<=a||0>a&&1==(-a-1)%2};eD.prototype.length=function(){return this.da.length/2};function fD(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=gD();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function hD(a){if("undefined"!=typeof XMLSerializer)return(new XMLSerializer).serializeToString(a);if(a=a.xml)return a;throw Error("Your browser does not support serializing XML documents");}
function iD(a){if("undefined"!=typeof a.selectNodes){var b=Mc(a);"undefined"!=typeof b.setProperty&&b.setProperty("SelectionLanguage","XPath");return a.selectNodes('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]')}if(document.implementation.hasFeature("XPath","3.0")){var b=Mc(a),c=b.createNSResolver(b.documentElement);a=b.evaluate('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]',a,c,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var b=
[],c=a.snapshotLength,d=0;d<c;d++)b.push(a.snapshotItem(d));return b}return[]}function gD(){var a=new ActiveXObject("MSXML2.DOMDocument");if(a){a.resolveExternals=!1;a.validateOnParse=!1;try{a.setProperty("ProhibitDTD",!0),a.setProperty("MaxXMLSize",2048),a.setProperty("MaxElementDepth",256)}catch(b){}}return a};function jD(){this.g=[];this.j=[]};function kD(a){this.b=a.td;this.k=a.priority;this.tc=a.tc||this.tc}kD.prototype.b=0;kD.prototype.k=0;kD.prototype.tc=0;kD.prototype.toString=function(){return this.b+", "+this.tc};function lD(a){kD.call(this,a);this.ge=a.text||this.ge;this.Ti=a.windowId||this.Ti;this.Nj=a.params.append||this.Nj;this.lt=a.params.row||this.lt;this.kt=a.params.ED||this.kt}w(lD,kD);f=lD.prototype;f.ge="";f.Nj=!1;f.lt=0;f.kt=0;f.Ti=0;f.toString=function(){return this.b+", "+this.tc+": "+this.ge};
function mD(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={td:c,tc:d,text:b,windowId:e,priority:5,params:{}};a.getAttribute("r")&&(b.params.row=parseInt(a.getAttribute("r"),10));a.getAttribute("c")&&(b.params.ED=parseInt(a.getAttribute("c"),10));
a.getAttribute("append")&&(b.priority=6,b.params.append=!0);return new lD(b)}function nD(a){kD.call(this,a);this.id=a.windowId||this.id;this.params=a.params}w(nD,kD);nD.prototype.id=0;nD.prototype.params=null;nD.prototype.j="";nD.prototype.g=!1;function oD(){return new nD({td:-2147483648,tc:4294967295,params:DC})};function pD(a){jD.call(this);this.j.push(oD());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=mD(a[b]);this.g.push(d)}}w(pD,jD);function qD(a){jD.call(this);this.b={};a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++)switch(a[b].tagName){case "window":var d=a[b],e=parseInt(d.getAttribute("id"),10);t:{var g=this.b[e];if(d.getAttribute("t")||d.getAttribute("start")){var h=parseInt(d.getAttribute("t"),10);d.getAttribute("start")&&(h=1E3*parseFloat(d.getAttribute("start")));g&&(g.b+g.tc>=h?g.tc=h:g=null);switch(d.getAttribute("op")){case "kill":d=null;break t;case "define":g=null}g?g.o=!0:g=oD();var k={};ra(k,g?g.params:
DC);d.getAttribute("id")&&(k.id=d.getAttribute("id"));d.getAttribute("op")&&(k.WE=d.getAttribute("op"));d.getAttribute("rc")&&(k.xd=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(k.wm=parseInt(d.getAttribute("cc"),10));d.getAttribute("ap")&&(g=parseInt(d.getAttribute("ap"),10),k.anchorPoint=0>g||8<g?7:g);d.getAttribute("ah")&&(k.cj=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(k.fe=parseInt(d.getAttribute("av"),10));d.getAttribute("id")&&(k.id=parseInt(d.getAttribute("id"),
10)||0);d.getAttribute("vs")&&(k.isVisible=Boolean(d.getAttribute("vs")));d.getAttribute("ju")&&(k.textAlign=CC[parseInt(d.getAttribute("ju"),10)]);d.getAttribute("pd")&&(k.Pe=1,0==parseInt(d.getAttribute("pd"),10)&&(k.Pe=0));d.getAttribute("bc")&&(k.backgroundColor=parseInt(d.getAttribute("bc"),16));d.getAttribute("bo")&&(k.opacity=parseInt(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(k.foregroundColor=parseInt(d.getAttribute("fc"),16));d.getAttribute("sd")&&(k.am=parseInt(d.getAttribute("sd"),
10));g=parseInt(d.getAttribute("d"),10)||1E3*parseFloat(d.getAttribute("dur"))||2147483647;d={td:h,tc:g,params:k,windowId:parseInt(d.getAttribute("id"),10)};d=new nD(d)}else d=null}this.b[e]=d;this.j.push(d);break;case "text":e=mD(a[b]),this.g.push(e),d=e.Ti,this.b[d]&&(d=this.b[d],e=e.ge,""!=d.j&&(d.g=!0),d.j+=e)}}w(qD,jD);function rD(){jD.call(this)}w(rD,jD);function sD(a){this.b=a.languageCode;this.vi=a.languageName||null;this.Wk=a.languageOriginal||null;this.id=a.id||null;this.g=a.is_default||!1}sD.prototype.toString=function(){return this.b+"_"+this.vi+"_"+this.Wk+"_"+this.id+"_"+this.g};function tD(a){a=a||{};this.F=a.formats||"";this.o=a.format||1;if(1==this.o)for(var b=this.F.split(","),c=0;c<b.length;c++){var d=parseInt(b[c],10);isNaN(d)||(this.o=Math.max(d,this.o))}this.g=a.languageCode||"";this.A=a.languageName;this.j=a.kind||"";this.k=a.name;this.pa=a.id;this.I=a.is_servable;this.B=a.is_default;this.C=a.is_translateable;this.D=a.vss_id||"";this.b=null;a.translationLanguage&&(this.b=new sD(a.translationLanguage))}
function uD(a){var b={format:a.o,languageCode:a.g,languageName:a.A,displayName:vC(a),kind:a.j,name:a.k,id:a.pa,is_servable:a.I,is_default:a.B,is_translateable:a.C};a.b&&(a=a.b,b.translationLanguage={languageCode:a.b,languageName:a.vi,languageOriginal:a.Wk,id:a.id,is_default:a.g});return b}function vC(a){var b=[a.A];if("asr"==a.j){var c=bf("YTP_ASR_SETTINGS_LABEL");b.push(" (",c,")")}a.k&&b.push(" - ",a.k);a.b&&b.push(" >> ",a.b.vi);return b.join("")}
tD.prototype.toString=function(){var a=[this.g,": ",this.k," (",this.j,")"];this.b&&a.push(" >> ",this.b.b);return a.join("")};tD.prototype.equals=function(a){if(!a)return!1;var b=this.b,c=a.b;if(b&&c){if(b.b!=c.b)return!1}else if(b||c)return!1;return this.g==a.g&&this.k==a.k&&this.j==a.j};function vD(a,b){jD.call(this);this.j.push(oD());for(var c=a.split(wD),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(xD))e=null;else{var h=e.split(yD),k=0,l=h[k++].match(zD);l||(l=h[k++].match(zD));l?(e=AD(l[1],g),g=AD(l[3],g),h=h.slice(k).join("\n"),e=new lD({td:e,tc:g-e,text:h,windowId:0,priority:5,params:{}})):e=null}e&&this.g.push(e)}}w(vD,jD);var xD=/NOTE/,wD=/[\r\n|\r|\n]{2,}/,yD=/\r\n|\r|\n/,zD=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function AD(a,b){for(var c=a.split(":"),d=0,e=0;e<c.length;e++)d=60*d+parseFloat(c[e]);return 1E3*d+b};function BD(a,b){this.b=[];this.g=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new vD(a,b||0):(c=fD(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new rD:new qD(c):new pD(c):null:null;c&&(this.g=c.j,this.b=c.g)};function CD(a,b){this.ta=a;this.X=b;this.A=new eD;this.k=!0;this.B=this.j=this.o=this.b=null;this.g=0}w(CD,Mh);CD.prototype.J=function(){Ze(this.g);this.g=0;this.k=!0};CD.prototype.resume=function(){this.k=!1;Ze(this.g);this.seek(this.X.getCurrentTime());DD(this)};CD.prototype.seek=function(a){this.b=db(this.B.zi(a).b)};function ED(a,b){a.o=b}function FD(a){var b;if(b=!a.k&&null!==a.b)b=a.b,b=b.b.Dg(b);return b&&!a.j&&!(a.b&&30<a.b.startTime-a.X.getCurrentTime())}
function GD(a){var b;b=a.b;b=Zo(b.b,b);if(!a.A.contains(b.b[0].k)){Li(Wo(b),{format:"RAW",ub:u(a.C,a),withCredentials:!0});a.j=b;var c=a.A,d=a.j.b[0].k,e=Ab(c.da,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.da[e-1]&&e<c.da.length&&1==c.da[e]-d?(sb(c.da,e),sb(c.da,e-1)):0<e&&1==d-c.da[e-1]?c.da[e-1]=d:e<c.da.length&&1==c.da[e]-d?c.da[e]=d:(xb(c.da,e,0,d),xb(c.da,e+1,0,d)))}a.b=db(b.b)}
CD.prototype.C=function(a){null==a.responseText||400<=a.status||this.k||null===this.o||(a=new BD(a.responseText,1E3*this.j.b[0].startTime),this.o(a));this.j=null};function DD(a){a.g=Ye(u(function(){FD(this)&&GD(this)},a),1E3);FD(a)&&GD(a)};function HD(){this.j=[];this.g=[];this.b=-1}function ID(a,b){return b?a.g.concat(a.j):a.g}function JD(a,b){switch(b.j){case "asr":return KD(b,a.j);default:if(b.B||0>a.b)a.b=a.g.length;return KD(b,a.g)}}function KD(a,b){return lb(b,u(a.equals,a))?!1:(b.push(a),!0)};function LD(a){this.Aq=!!a;this.b=new HD;this.A=[]}function MD(a,b){return lb(ID(a.b,!0),function(a){return a.toString()==b})}LD.prototype.seek=function(){};LD.prototype.B=function(){};function ND(a,b){LD.call(this);this.j=a;this.g=new CD(new dD,b)}w(ND,LD);ND.prototype.k=function(a,b){ED(this.g,function(c){b(c,a)});this.g.B=this.j.b[a.g];this.g.resume()};ND.prototype.o=function(a){JD(this.b,new tD({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};ND.prototype.seek=function(a){this.g.seek(a)};ND.prototype.B=function(){var a=this.g;Ze(a.g);a.g=0;a.k=!0};function OD(a,b){$C.call(this,a,b);this.Ba.style.display="block";this.Ba.style.padding="0";this.Xb=[];var c=this.Ba;O(c,"captions-text");N(c,"caption-painton-text-rows")}w(OD,$C);f=OD.prototype;f.type=0;f.Fq="";f.gh=!1;f.Jb=null;f.Xb=null;f.Lj=function(){return this.Xb[0]?this.Xb[0].offsetHeight:0};function PD(a){return a.Xb.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
f.Ye=function(){0!=this.id&&(bg(this.Aa,"100%"),bg(this.Aa,this.gh?PD(this):this.Jb.width));var a=Math.round(this.Ea.xd*this.Lj());this.Aa.style.maxHeight=a+"px";aD(this);Nx(this.Aa,this.Ea.isVisible)};
f.Ue=function(a){this.Qj();a=bD(a);this.gh||(this.hh=a);a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=I("div",{"class":"caption-row-holder"}),e=I("span",{"class":"caption-row captions-text"});d.appendChild(e);e.innerHTML=a[b];this.gh||(this.Ba.style.height=this.Jb.height+"px",this.Ba.style.width=this.Jb.width+"px",d.style.position="absolute",d.style.top=this.Jb.Cq[b]+"px",d.style.left=this.Jb.Bq[b]+"px");this.Ba.appendChild(d);this.Xb.push(e)}this.Sn();this.Ye()};
f.Qj=function(){for(var a=0,b=this.Xb.length;a<b;a++){var c=wd(this.Xb[a],"caption-row-holder");gd(c)}this.Xb=[]};f.Sn=function(){this.Aa.style.textAlign=this.Ea.textAlign;for(var a=0,b=this.Xb.length;a<b;a++)this.Xb[a].style.backgroundColor=this.Ea.backgroundColor;this.Ba.style.color=this.Ea.foregroundColor;this.Ba.style.opacity=this.Ea.Rn;this.Ba.style.fontFamily=this.Ea.Zs;1==this.Ea.Pe?this.Ba.setAttribute("dir","rtl"):this.Ba.removeAttribute("dir")};function QD(a,b){$C.call(this,a,b);this.Tc=[];this.oe=[];this.Mb=[];this.ig=new Rk(433);this.ig.stop();Q(this.ig,"tick",u(this.SD,this))}w(QD,$C);f=QD.prototype;f.type=2;f.FD=32;f.Mb=null;f.pe=0;f.oe=null;f.ig=null;f.Ye=function(){bg(this.Aa,"100%");var a=this.Aa.offsetWidth,a=Math.min(RD(this),a);bg(this.Aa,a+"px");bg(this.Pj,"100%");this.Ba.style.whiteSpace="nowrap";aD(this);Nx(this.Aa,this.Ea.isVisible)};
f.yr=function(a){var b=a.length;if(0>=b)this.Qj();else{for(var c=0;c<b&&0<=this.Tc.indexOf(a[c]);)c++;this.Tc=this.Tc.concat(a.slice(c));SD(this)}};f.Qj=function(){this.Tc=[];this.Mb=[];this.pe=0;this.Mb=[];this.oe=[];TD(this)};
function SD(a){if(!UD(a))if(a.pe>=a.Tc.length)TD(a);else{var b=a.Mb.length-1;0>b&&(a.oe.push(0),a.pe=0,a.Mb.push(""),b=0);for(var c=a.Tc.length,d=a.pe;d<c;d++){var e=a.Tc[d];if("\n"==e.ge){a.pe++;a.oe[b]++;break}if(e.Nj||0==a.Mb[b].length)a.Mb[b]+=e.ge,a.pe++,a.oe[b]++;else break}TD(a);d<c&&!UD(a)&&(b=a.Lj(),N(a.Ba,"caption-rollup"),a.Aa.style.overflow="hidden",a.Ba.style.top=-b+"px",a.ig.start())}}function UD(a){return a.ig.ed||sg(a.Ba,"caption-rollup")}
f.SD=function(){this.Aa.style.overflow="visible";this.Ba.style.top=0;this.ig.stop();O(this.Ba,"caption-rollup");this.Mb.push("");this.oe.push(0);SD(this)};function TD(a){if(!UD(a)){for(;a.Mb.length<a.Ea.xd;)a.Mb.unshift(""),a.oe.unshift(0);for(;a.Mb.length>a.Ea.xd;){a.Mb.shift();var b=a.oe.shift();0<b&&(a.pe-=b,a.Tc.splice(0,b))}a.Ue(a.Mb.join("\n"))}}
function RD(a){a.Nb.style.fontFamily=a.Ba.style.fontFamily;a.Nb.style.fontSize=a.Ba.style.fontSize;a.Ba.appendChild(a.Nb);a.Nb.innerHTML="\u2014";var b=a.Nb.offsetWidth;a.Nb.innerHTML="&nbsp;";b=2*a.Nb.offsetWidth+b*a.FD;a.Ba.removeChild(a.Nb);return b};function VD(a,b,c,d){LD.call(this,d);c||(c=Bi(a).hl||"",c=c.split("_").join("-"));this.g=Ei(a,{hl:c});this.j=b;this.C={}}w(VD,LD);VD.prototype.k=function(a,b){var c=WD(this,a);Li(c,{format:"RAW",onSuccess:function(c){c=new BD(c.responseText);b(c,a)},withCredentials:!0})};
VD.prototype.o=function(a,b,c){var d=this.g;b={type:"list",tlangs:1,v:this.j,fmts:Number(b||!1),vssids:1};this.Aq&&(b.asrs=1);d=Ei(d,b);b=u(function(b){if((b=b.responseXML)&&b.firstChild){for(var d=this.b,h=b.getElementsByTagName("track"),k=h.length,l=0;l<k;l++){var p=h[l].getAttribute("formats"),s=c,t=h[l].getAttribute("lang_code"),y=h[l].getAttribute("lang_translated"),E=h[l].getAttribute("name"),A=h[l].getAttribute("kind"),$=h[l].getAttribute("id"),Ma="true"==h[l].getAttribute("lang_default"),
Yc="true"==h[l].getAttribute("cantran"),vj=h[l].getAttribute("vss_id"),p=new tD({formats:p,format:s,languageCode:t,languageName:y,name:E,kind:A,id:$,is_servable:!0,is_default:Ma,is_translateable:Yc,vss_id:vj});JD(d,p)}b=b.getElementsByTagName("target");d=b.length;for(h=0;h<d;h++)k=b[h].getAttribute("lang_code"),l=b[h].getAttribute("lang_translated"),p=b[h].getAttribute("lang_original"),s=b[h].getAttribute("id"),t="true"==b[h].getAttribute("lang_default"),k={languageCode:k,languageName:l,languageOriginal:p,
id:s,is_default:t},this.C[k.languageCode]=k.languageName,this.A.push(new sD(k))}a()},this);Li(d,{format:"RAW",onSuccess:b,withCredentials:!0})};function WD(a,b){var c=a.g,d={v:a.j,type:"track",lang:b.g,name:b.k,kind:b.j,fmt:b.o};b.b&&(d.tlang=b.b.b);return c=Ei(c,d)};function XD(a){ru.call(this,a);af({YTP_TRANSLATE_MENU_ITEM:"Translate captions",YTP_CONTRIBUTE_MENU_ITEM:"Add subtitles/CC",YTP_TRANSLATE_DIALOG_TITLE:"Translate...",YTP_ASR_SETTINGS_LABEL:"Automatic Captions",YTP_FONT_FAMILY:"Font family",YTP_FONT_SIZE:"Font size",YTP_FONT_COLOR:"Font color",YTP_FONT_OPACITY:"Font opacity",YTP_BACKGROUND_COLOR:"Background color",YTP_BACKGROUND_OPACITY:"Background opacity",YTP_WINDOW_COLOR:"Window color",YTP_WINDOW_OPACITY:"Window opacity",YTP_COLOR_WHITE:"White",
YTP_COLOR_YELLOW:"Yellow",YTP_COLOR_GREEN:"Green",YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Blue",YTP_COLOR_MAGENTA:"Magenta",YTP_COLOR_RED:"Red",YTP_COLOR_BLACK:"Black",YTP_FONT_FAMILY_MONO_SERIF:"Monospaced Serif",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Monospaced Sans-Serif",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif",YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",YTP_FONT_FAMILY_SMALL_CAPS:"Small Capitals",YTP_CHAR_EDGE_STYLE:"Character edge style",
YTP_EDGE_STYLE_NONE:"None",YTP_EDGE_STYLE_RAISED:"Raised",YTP_EDGE_STYLE_DEPRESSED:"Depressed",YTP_EDGE_STYLE_OUTLINE:"Outline",YTP_EDGE_STYLE_DROP_SHADOW:"Drop Shadow"});this.hk=!0;this.A=this.V=!1;this.wb=new ew(this);this.D=a.R();this.B=null;this.ea=a.app.g;this.qa={};this.ca=[];this.Ha=0;this.C={};this.U={};this.oa=this.za=this.ya=this.xa=!1;this.wa=new $C(99,FC);this.j=this.k=this.I=null;this.Ca=!1;this.P=this.L=0;this.O=new UC(Fu(this),"ytp-subtitles-button",X(Fu(this),"YTP_SUBTITLES"),"ytp-subtitles-button-active");
this.O.listen("click",this.yx,this);YA(this.O,6500);this.F=new yC(Fu(this));R(this,this.F);aB(this.F.element,1);this.F.listen("change",this.Ix,this);this.F.listen("select",this.Jx,this);this.o=new tC(Fu(this));R(this,this.o);this.o.listen("change",this.iq,this);this.o.listen("select",this.xx,this);xC(this.o,!1);this.N=new LC(Fu(this));R(this,this.N);this.N.listen("change",u(this.we,this,!0));this.N.listen("cancel",this.wx,this);this.N.listen("select",this.kq,this);this.T=new QC(Fu(this));R(this,this.T);
this.T.listen("change",this.Ex,this);this.T.listen("cancel",this.ug,this);this.subscribe("onResize",u(this.to,this));this.subscribe("onBackgroundChange",u(this.Fx,this));this.subscribe("onTextOpacityChange",u(this.Gx,this));this.subscribe("onWindowOpacityChange",u(this.Hx,this));this.subscribe("onFontSizeIncrease",u(this.Cx,this));this.subscribe("onFontSizeDecrease",u(this.Bx,this));this.subscribe("onShowControls",u(this.Ax,this));this.subscribe("onHideControls",u(this.zx,this));"detailpage"==this.D.ba&&
(a=H("captions-account-settings-link",Ct(a)))&&Px(a)}w(XD,ru);XD.prototype.va="captions";XD.prototype.gc="cc";XD.prototype.zn="subtitlesModuleData";XD.prototype.Ia=1;var YD={background:"#080808",backgroundOpacity:1,charEdgeStyle:"uniform",color:"#fff",fontFamily:'"Arial Unicode Ms", Arial',fontFamilyOption:"propSans",fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};function ZD(a){return a.D.Ob?!!a.ea.b.textTracks:!1}f=XD.prototype;
f.create=function(){XD.G.create.call(this);this.B=this.b.getVideoData();-1==GC.indexOf(this.D.la)&&N(Ct(this.b),"cc-international");this.g=bc(YD);ra(this.g,yu(this,"display-settings"));PC(this.N,this.g);ZD(this)||(this.H("module_menu_button_add",this.va,this.O),Gu(this,this.F));var a;1==this.D.j.cc_load_policy||1==this.B.ao||"alwayson"==fs(this.B,"yt:cc")||ZD(this)?a=!0:(a=yu(this,"module-enabled"),a=null!=a?!!a:"on"==fs(this.B,"yt:cc")||this.D.j.cc_prefer_on);a&&this.load()};
function $D(a){Hu(a,a.o);Hu(a,a.F);a.H("module_menu_button_remove",a.va)}f.destroy=function(){$D(this);XD.G.destroy.call(this)};function aE(a){a.k.o(u(a.LC,a),!0,ZD(a)?"vtt":void 0)}
f.load=function(){this.oa="alwayson"==fs(this.B,"yt:cc");this.za="1"==this.B.k.cc_auto_caps||"1"==this.D.j.cc_auto_caps;this.o.B="1"==this.B.k.cc_contribute||"1"==this.D.j.cc_contribute;if(this.V||this.A)this.A&&(XD.G.load.call(this),this.V=!1,ZD(this)||(this.we(),this.to()));else{this.V=!0;this.A=!1;if(this.B.Za)this.k=new ND(this.B.j,this.b),this.subscribe("seekto",this.oq,this);else{var a=this.B.k.cc_lang_pref||this.D.j.cc_lang_pref||fs(this.B,"yt:cc_default_lang")||this.D.B,a=a&&a.split("_").join("-");
this.k=new VD(this.B.Of,this.B.videoId,a,this.B.Zl)}aE(this)}};f.unload=function(){this.nc&&(bE(this,!1),this.Tl("control_subtitles_set_track"));if(ZD(this)){var a;a=Pc("track",void 0,void 0);for(var b=0;b<a.length;b++)gd(a[b])}else cE(this,!1),dE(this),this.ha("seekto",this.oq,this),this.k=null,this.ug();this.ya=this.V=!1;this.A&&(this.A=!1,XD.G.unload.call(this))};f.log_=function(){};
f.LC=function(){if(this.k)if(this.V=!1,ZD(this)){for(var a=this.ea.b,b=this.k,c=[],d=ID(b.b,void 0),e=0;e<d.length;e++){var g=d[e],h=WD(b,g),h={kind:"subtitles",label:g.k,srclang:g.g,src:h};g.B&&(h["default"]=1);c.push(I("track",h))}Zt(a,c)}else a=this.T,b=this.k.A,pC(a.g,b),sC(a.g,1E3),Ov(a.g.template,"tabindex",1E3),YA(a.b.b,1001),b.length?RC(a,b[0]):RC(a,null),a=ID(this.k.b,!0),0<a.length?(this.log_("Caption track list loaded, found "+a.length+" tracks."),Gu(this,this.o),uC(this.o,a),b=this.k.b.b,
(a=a[b]&&a[b].toString())&&wC(this.o,a),b=this.k,a=b.b.b,b=ID(b.b,!0),(a=0>a?null:b[a])?(this.xa=!0,eE(this,a)):this.A||(this.A=!0,this.load(),a=this.k.b.j,a.length&&(a=a[0].toString(),wC(this.o,a),(this.ya||this.za)&&fE(this,a))),this.H("publish_external_event","onCaptionsTrackListChanged")):(this.log_("No captions found."),$D(this),this.unload())};
f.mx=function(a,b){this.k&&(this.A||(this.A=!0,this.load()),this.xa&&(this.xa=!1,this.H("publish_external_event","onCaptionsTrackListChanged")),!b||this.j&&b.equals(this.j)||gE(this,b),hE(this,a.g.concat(a.b)))};
function gE(a,b){dE(a);a.j=b;a.Ca=px.test(b.g);var c={trackName:b.k,trackKind:b.j};b.b?(c.trackLangCode=b.b.b,c.fromLangCode=b.g):c.trackLangCode=b.g;a.log(c);cD(a.wa,vC(b));uu(a,a.wa.Aa);a.P||(a.P=L(u(a.Sw,a),0));a.H("publish_external_event","captionschanged",uD(b));YC(a.O,"ytp-subtitles-button-active");aB(a.F.element,0);xC(a.o,!0);zu(a,"module-enabled",!0);a.H("vss_segment")}
function hE(a,b){a.log_("Caption track loaded with "+b.length+" events.");var c=[];z(b,function(a){var b;this.Ha++;b="caption"+this.Ha.toString();c.push(new hu(a.b,a.b+a.tc,{id:b}));this.qa[b]=a},a);a.Kf.apply(a,c)}f.Ec=function(a){if(a=iE(this,a))this.ca.push(a),this.L||(this.L=L(u(this.pj,this),0))};f.kd=function(a){if(a=iE(this,a))rb(this.ca,a),this.L||(this.L=L(u(this.pj,this),0))};function iE(a,b){var c=b.getId();return 0!=c.indexOf("caption")?null:a.qa[c]}
f.sA=function(a){if(a instanceof nD){var b=this.C[a.id];ra(a.params,this.g);b&&b.type!=(a.params.am?2:a.g?0:1)&&(gd(b.Aa),delete this.C[a.id]);if(!this.C[a.id]){var b=this.C,c=a.id,d;t:{d=a.id;var e=a.params;switch(a.params.am?2:a.g?0:1){case 0:d=new OD(d,e);break t;case 2:d=new QD(d,e);break t;default:d=new $C(d,e)}}b[c]=d;b=this.C[a.id].Aa;P(b,"captions-asr","asr"==this.j.j);null!=a.params.Pe&&(a.params.Pe=this.Ca?1:0);0==this.C[a.id].id?(N(b,this.va),fd(this.b.app.g.F,b,0)):uu(this,b)}ra(this.C[a.id].Ea,
a.params);if(0==(a.params.am?2:a.g?0:1)){b=this.C[a.id];b.Fq=a.j;b.Jb={};b.gh=!0;b.Ue(b.Fq);b.Jb.xd=b.Xb.length;b.Jb.width=b.Aa.offsetWidth;b.Jb.height=b.Aa.offsetHeight;b.Jb.Bq=[];b.Jb.Cq=[];for(a=0;a<b.Jb.xd;a++)b.Jb.Cq.push(b.Xb[a].offsetTop),b.Jb.Bq.push(b.Xb[a].offsetLeft);b.gh=!1;b.Ue(b.hh)}}else b=a.Ti,this.U[b]||(this.U[b]=[]),this.U[b].push(a)};f.to=function(){this.A&&(this.Ia=jE(this.ea).height/360,this.we(),Ob(this.C,function(a){a.Ye()},this))};
function kE(a){var b=[];Ob(a.C,function(a){a instanceof OD&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.Ea.fe-a.Ea.fe});var c=jE(a.ea).height,d=b[0].Ea.fe;z(b,function(a){a.Ea.fe=d;var b=Math.round(a.Ea.xd*a.Lj());d-=Math.round(b/c*100);a.Ye()},a)}}f.Sw=function(){this.P=0;gd(this.wa.Aa)};
f.pj=function(){this.L=0;this.A&&($b(this.U),this.ca.sort(function(a,b){return a.b==b.b?a.k-b.k:a.b-b.b}),z(this.ca,this.sA,this),Ob(this.C,function(a,b){this.U[b]?a.yr(this.U[b]):(gd(a.Aa),delete this.C[b])},this),kE(this),this.I&&this.I.Ye(),this.log_("Refreshing caption display..."))};function lE(a,b){var c=H(a).querySelectorAll("."+b+" input[type=radio]"),d=ob(c,function(a){return a.checked}),d=(-1==d?1:d+1)%c.length;c[d].click()}f.Fx=function(){lE("captions-settings-background-opacity","captions-settings-background-opacity-radio")};
f.Gx=function(){lE("captions-settings-text-opacity","captions-settings-text-opacity-radio")};f.Hx=function(){lE("captions-settings-window-opacity","captions-settings-window-opacity-radio")};f.Ax=function(){var a=this.C[0];a&&a.Aa&&(a=a.Aa,O(a,"controls-hidden"),N(a,"controls-visible"))};f.zx=function(){var a=this.C[0];a&&a.Aa&&(a=a.Aa,sg(a,"controls-visible")&&(O(a,"controls-visible"),N(a,"controls-hidden")))};f.Bx=function(){mE(this,-1)};f.Cx=function(){mE(this,1)};
function mE(a,b){var c=a.g.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.g.fontSizeIncrement=c;a.we()}function nE(a,b){var c=H(b);c&&(c.querySelector('input[value="'+a.toFixed(1)+'"]').checked=!0)}function oE(a,b,c){var d=H(b);d&&(b=d.querySelector("span.yt-uix-form-input-select-value"),d=d.querySelector("select"),d.value=a.g[c],od(b,d.options[d.selectedIndex].text))}
function dE(a){a.j&&(a.j=null,su(a),a.ca=[],a.qa={},a.j=null,a.pj(),YC(a.O,"ytp-subtitles-button"),aB(a.F.element,1),xC(a.o,!1),a.k.B())}function fE(a,b){var c=MD(a.k,b);eE(a,c);a.log_("Caption change failed for "+b)}
function eE(a,b){if(b&&(!a.j||!b.equals(a.j)))if(a.nc)a.j=b,bE(a,!0),a.Tl("control_subtitles_set_track",uD(b)),a.A||(a.A=!0,a.load());else if(a.D.b.ya){var c=a.ea.b,d=a.k,e={v:d.j,type:"track",lang:b.g,name:b.k,kind:b.j,fmt:"vtt"};b.b&&(e.tlang=b.b.b);var g=document.createElement("track");g.src=Ei(d.g,e);g.mode="showing";g.setAttribute("kind","captions");g.setAttribute("default","");Zt(c,[g]);gE(a,b)}else a.k.k(b,u(a.mx,a)),a.V=!0}
f.Ex=function(){if(!this.oa){this.ug();var a=this.T.getSelected();if(a){var b=this.j,c=new tD;c.g=b.g;c.A=b.A;c.k=b.k;c.j=b.j;c.B=!1;c.C=b.C;c.D=b.D;c.b=a;JD(this.k.b,c)&&(a=c.toString(),Gu(this,this.o),uC(this.o,ID(this.k.b,!0)),wC(this.o,a));eE(this,c)}}};f.wx=function(){this.ug();this.nc&&this.j&&this.Tl("control_subtitles_set_track",uD(this.j))};f.kq=function(){delete this.g;this.g=bc(YD);PC(this.N,this.g);zu(this,"display-settings",this.g);this.we()};
f.we=function(a){pE(this);var b=lw(this.g.background),c=this.g.backgroundOpacity;this.Ra=fC(".captions-text, .caption-row","background-color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{gd:this.Ra,reset:!0});nE(c,"captions-settings-background-opacity");b=lw(this.g.color);c=this.g.textOpacity;this.hb=fC(".captions-text","color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{gd:this.hb,reset:!0});nE(c,"captions-settings-text-opacity");b=lw(this.g.windowColor);c=this.g.windowOpacity;this.mb=
fC(".caption-window-transform","background-color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{gd:this.mb,reset:!0});nE(c,"captions-settings-window-opacity");var b=this.g.charEdgeStyle,d=this.g.textOpacity;if("none"==b)this.la&&gC(this.la);else{var c="",e="rgba(34, 34, 34, "+d+")",d="rgba(204, 204, 204, "+d+")";switch(b){case "dropShadow":c="text-shadow: 2px 2px 3px "+e+", 2px 2px 4px "+e+", 2px 2px 5px "+e+";";break;case "raised":c="text-shadow: 1px 1px "+e+", 2px 2px "+e+", 3px 3px "+e+
";";break;case "depressed":c="text-shadow: 1px 1px "+d+", 0 1px "+d+", -1px -1px "+e+", 0 -1px "+e+";";break;case "uniform":c="text-shadow: 0 0 4px "+e+", 0 0 4px "+e+", 0 0 4px "+e+", 0 0 4px "+e+";"}this.la=fC(".captions-text",c,{gd:this.la,reset:!0})}oE(this,"captions-settings-char-edge-style","charEdgeStyle");c=b="";switch(this.g.fontFamilyOption){case "monoSerif":b='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case "propSerif":b='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';
break;case "monoSans":b='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case "propSans":b='"Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif';break;case "casual":b='"Comic Sans MS", Impact, Handlee, fantasy';break;case "cursive":b='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case "smallCaps":b='"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif',c="font-variant: small-caps;"}this.eb=
fC(".captions-text",c+"font-family: "+b+" !important;",{gd:this.eb,reset:!0});this.g.fontFamily=b;oE(this,"captions-settings-font-family","fontFamilyOption");b="font-size: "+Math.round(16*(1+.25*(this.g.fontSizeIncrement||0))*this.Ia)+"px;";this.gb=fC(".caption-window-transform",b,{gd:this.gb,reset:!0});this.pj();n(a)&&!a||zu(this,"display-settings",this.g)};
function pE(a){var b=[],c=u(function(a){var c=this.g[a];c&&b.push(a+": "+c+" !important")},a);c("color");c("background");c={gd:a.Wa,reset:!0};a.Wa=fC(".captions-text",b,c);var d=lw(a.g.windowColor),c={gd:a.jb,reset:!0};a.jb=fC(".caption-window-transform","background-color: rgba("+d[0]+","+d[1]+","+d[2]+", 1)",c)}f.yx=function(){this.A||this.load()};
f.Ix=function(){var a=0==this.F.getSelected();this.A&&!a?(this.unload(),zu(this,"module-enabled",!1),Iu(this),this.H("vss_segment")):!this.A&&a?(this.ya=!0,this.load()):this.o.D&&this.iq()};f.Jx=function(){vu(this,this.N);Iu(this)};f.iq=function(){fE(this,this.o.D)};f.xx=function(){this.o.F?this.oa||vu(this,this.T):wu(this,this.D.qb+"timedtext_video?v="+this.B.videoId);Iu(this)};function qE(a){return XD.prototype.Ja(a)?new XD(a):null}
f.Kj=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.g.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.we()),this.g.fontSizeIncrement;case "reload":b&&aE(this);break;case "stickyLoading":this.D.Ab()&&zu(this,"module-enabled",!!b);break;case "track":if(b){if(!ka(b))break;var c=new tD(b);c.equals(this.j)||(eE(this,c),wC(this.o,c.toString()))}else return this.j?uD(this.j):{};return"";case "tracklist":return this.A?B(ID(this.k.b,b&&b.includeAsr),function(a){return uD(a)}):[];case "displaySettings":return b&&
ka(b)&&rE(this,b),c=bc(this.g),delete c.fontFamily,c;case "sampleSubtitles":cE(this,!!b)}};function cE(a,b){if(b&&!a.I){a.I=new $C(98,EC);var c=a.I.Aa;N(c,a.va);fd(a.b.app.g.F,c,0);cD(a.I,X(Fu(a),"YTP_SAMPLE_SUBTITLES"))}else!b&&a.I&&(gd(a.I.Aa),a.I=null)}f.Ej=function(){var a="reload fontSize track tracklist displaySettings sampleSubtitle".split(" ");this.D.Ab()&&a.push("stickyLoading");return a};var sE=/^#(?:[0-9a-f]{3}){1,2}$/i;f=XD.prototype;f.Fn=function(a,b){return a&&r(a)&&sE.test(a)?a:b};
f.Gn=function(a,b){return ia(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.yC=function(a,b){return a&&r(a)&&Vb(BC,a)?a:b};f.zC=function(a,b){return a&&r(a)&&Vb(AC,a)?a:b};f.AC=function(a,b){return ia(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var tE=null;
function rE(a,b){if(b)if(ac(b,"reset"))a.kq();else{if(!tE){var c={};c.color=a.Fn;c.textOpacity=a.Gn;c.background=a.Fn;c.backgroundOpacity=a.Gn;c.windowColor=a.Fn;c.windowOpacity=a.Gn;c.charEdgeStyle=a.yC;c.fontFamilyOption=a.zC;c.fontSizeIncrement=a.AC;tE=c}var c=tE,d;for(d in c)a.g[d]=c[d](b[d],a.g[d]);a.we(uE(a.D))}}f=XD.prototype;f.Ja=function(a){return!!a.getVideoData().Of};f.Ii=function(a){a?(a=this.j,dE(this),this.j=a):(bE(this,this.A),this.j&&eE(this,this.j))};
function bE(a,b){b?(YC(a.O,"ytp-subtitles-button-active"),aB(a.F.element,0)):(YC(a.O,"ytp-subtitles-button"),aB(a.F.element,1))}f.oq=function(){this.k.seek(this.b.getCurrentTime())};f.bh=function(){var a=this.j;return a?{cc:a.D}:null};f.J=function(){this.wb.removeAll();this.L&&(M(this.L),this.L=0);this.P&&(Ze(this.P),this.P=0);XD.G.J.call(this)};function vE(a){ru.call(this,a);this.va="ypc_license_checker";this.gc="ypc_license";this.A=!1;this.o=0;this.k=!1;this.g=NaN;this.C=rq();this.B=a.R().qb+"ypc_license_server";this.j=null}w(vE,ru);
var wE={LICENSE_DENIED_CANNOT_ACTIVATE_RENTAL:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",LICENSE_DENIED_NOT_SIGNED_IN:"YTP_ERROR_NOT_SIGNED_IN",LICENSE_DENIED_VIDEO_NOT_FOUND:"YTP_ERROR_VIDEO_NOT_FOUND",LICENSE_DENIED_NO_ACTIVE_PURCHASE_AGREEMENT:"YTP_ERROR_PURCHASE_REFUNDED",LICENSE_DENIED_PURCHASE_NOT_FOUND:"YTP_ERROR_PURCHASE_NOT_FOUND",LICENSE_DENIED_PURCHASE_EXPIRED:"YTP_ERROR_RENTAL_EXPIRED",LICENSE_DENIED_STREAMING_UNAVAILABLE:"YTP_ERROR_STREAMING_UNAVAILABLE",LICENSE_DENIED_ALREADY_PINNED_ON_A_DEVICE:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",
LICENSE_DENIED_CONCURRENT_PLAYBACK:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",LICENSE_DENIED_TOO_MANY_STREAMS_PER_USER:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",LICENSE_DENIED_TOO_MANY_STREAMS_PER_ENTITLEMENT:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",LICENSE_DENIED_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",LICENSE_DENIED_UNUSUAL_ACTIVITY:"YTP_ERROR_UNUSUAL_ACTIVITY",LICENSE_DENIED_UNKNOWN:"YTP_ERROR_RETRYABLE_ERROR",LICENSE_DENIED_PLAYBACK_CAP:"YTP_ERROR_LICENSE"};
function xE(a){return ls(a.getVideoData(),"ypc_license_checker_module")}f=vE.prototype;f.Ja=function(){return xE(this.b)};f.create=function(){vE.G.create.call(this);var a=new hu(1E3,2147483646,{priority:0});this.Kf(a);this.subscribe("heartbeatparams",this.vD,this);this.subscribe("onStateChange",this.wD,this)};function yE(a){return xE(a)?new vE(a):null}f.Ec=function(){this.A=!0;zE(this,6E4)};f.vD=function(a){this.j=a;zE(this,6E4)};
f.wD=function(a){V(a.state,2)?(this.o=0,this.g&&(M(this.g),this.g=NaN),this.k=!1):(V(a.state,1)||V(a.state,8))&&zE(this,6E4)};function zE(a,b){if(!a.g&&a.A){var c=a.b.getVideoData();if(!es(c)||a.j)if(es(c)||!uE(a.b.R()))c=b,void 0==c&&(c=a.k?a.j?1E3*a.j.b:6E4:1E3),a.g=L(u(a.vx,a),c)}}
f.vx=function(){var a,b,c,d=this.b.getVideoData();es(d)?(b="GET",a={},c=ae(this.j.url,{request_id:rq()}),d.C&&(c=ae(c,{vvt:d.C})),d.B&&(c=ae(c,{access_token:d.B}))):(b="POST",a={video_id:d.videoId,player_id:this.C,request_id:rq(),purchase_id:d.Yj,version:"4",player_time_seconds:this.b.getCurrentTime().toString(),gid:d.jf,ypc_token:d.lf},d.C&&(a.vvt=d.C),d.B&&(a.access_token=d.B),c=this.B);c=ae(c,{cpn:d.Da});Li(c,{format:"RAW",method:b,fd:a,timeout:3E4,onSuccess:u(this.BA,this),onError:u(this.AA,this),
kh:u(this.CA,this),withCredentials:!0})};f.BA=function(a){if(this.g){a=a.responseText;var b;t:{b=a;var c=b.match(AE);if(c){if("0"!=c[1]){b=1;break t}b=c[3]}b=b in wE?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?BE(this,"decode"):(this.o=0,this.g=NaN,1==b?(this.k=!1,b="YTP_ERROR_LICENSE",(c=a.match(AE))?(a=parseInt(c[1],10))&&(b=Lu(a)):a in wE&&(b=wE[a]),a=bf(b),$v(this.b.app.j,"heartbeat",a,void 0)):(this.k=!0,zE(this)))}};f.AA=function(a){BE(this,"net-"+a.status)};f.CA=function(){BE(this,"timeout")};
function BE(a,b){if(a.g)if(a.log({errorType:b}),a.g=NaN,5<++a.o){var c=bf("YTP_ERROR_LICENSE");$v(a.b.app.j,"heartbeat",c,void 0)}else zE(a)}var AE=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([^]*)$/;function CE(){this.b=[];this.g=[]}da(CE);var DE=q("yt.player.utils.VideoTagPool.instance_")||CE.getInstance();ba("yt.player.utils.VideoTagPool.instance_",DE,void 0);CE.prototype.j=function(a){if(!(this.b.length>=a)){a-=this.b.length;for(var b=0;b<a;b++){var c=EE(this);this.b.push(c)}}};function EE(a,b){var c=document.createElement("video");ra(c,Rt);Q(c,"loadeddata",u(c.JC,c));Q(c,"volumechange",u(c.KC,c));oh&&6<=Nq&&Q(c,"webkitbeginfullscreen",u(c.play,c));b||St(c);a.g.push(c);return c}
CE.prototype.A=function(a){return this.b.length?this.b.pop():EE(this,a)};CE.prototype.o=function(a){a&&C(this.g,a)&&(Xt(a),Xg(a),rb(this.g,a))};CE.prototype.k=function(a){return this.b.length>=(a||1)};CE.prototype.fillPool=CE.prototype.j;CE.prototype.getTag=CE.prototype.A;CE.prototype.releaseTag=CE.prototype.o;CE.prototype.hasTags=CE.prototype.k;var FE={YI:"0",$I:"1",BE:"2",UI:"3"};function GE(){W.call(this,["div",["html5-bezel","html5-center-overlay"],["div","{{icon}}"]]);this.b=NaN;this.hide()}w(GE,W);GE.prototype.g=function(){N(this.element,"html5-bezel-fade");this.b=L(u(this.hide,this),300)};GE.prototype.hide=function(){GE.G.hide.call(this);HE(this)};GE.prototype.setIcon=function(a){Ov(this.template,"icon",a)};GE.prototype.show=function(a){HE(this);a&&this.setIcon(a);GE.G.show.call(this)};function HE(a){M(a.b);O(a.element,"html5-bezel-fade")};function IE(a){W.call(this,a);this.T=new ej;R(this,this.T)}w(IE,W);IE.prototype.subscribe=function(a,b,c){return this.T.subscribe(a,b,c)};IE.prototype.ha=function(a,b,c){return this.T.ha(a,b,c)};IE.prototype.Hb=function(a){return this.T.Hb(a)};IE.prototype.H=function(a,b){return this.T.H.apply(this.T,arguments)};function JE(){this.g=this.b=null}function X(a,b,c){return bf(b,c,void 0)}f=JE.prototype;f.Rg=function(a,b){this.b&&this.b.Rg(a,b)};f.Af=function(a,b,c){this.b&&this.b.Af(a,b,c)};f.vn=function(a){this.b&&this.b.vn(a)};f.pd=function(){return this.g.pd()};f.Sb=function(){return this.g.Sb()};function KE(a){W.call(this,["span"]);this.element.innerHTML=a}w(KE,W);function LE(a,b){W.call(this,["span","","{{sparkline_container}}"]);this.j=a;this.g=b;this.b=new KE("");R(this,this.b);Ov(this.template,"sparkline_container",this.b)}w(LE,W);function ME(){W.call(this,["div","html5-video-info-panel",["span","html5-video-info-panel-close",{role:"button",title:"close"},"[x]"],["div","html5-video-info-panel-content",["table","html5-video-info-table",["tr","",["th","","Video ID:"],["td","","{{video_id}}"]],["tr","",["th","","Dimensions:"],["td","","{{dimensions}}"]],["tr","",["th","","Resolution:"],["td","","{{resolution}}"]],["tr","",["th","","Volume:"],["td","","{{volume}}"]],["tr","",["th","","Stream Type:"],["td","","{{stream_type}}"]],
["tr",{style:"{{cpn_style}}"},["th","","CPN:"],["td","","{{cpn}}"]],["tr","",["th","","Mime Type:"],["td","","{{mime}}"]],["tr","",["th","","DASH:"],["td","","{{dash}}"]],["tr",{style:"{{drm_style}}"},["th","","Protected:"],["td","","{{drm}}"]],["tr","",["th","","Bandwidth:"],["td","",["span","","{{bandwidth_sparkline}}"],["span","","{{bandwidth_kbps}}"]]]],["table",["html5-video-info-table","html5-video-element-info-table"],["tr","",["th","","Decoded Frames"],["th","","Dropped Frames"],["th","",
"Parsed Frames"],["th","","Presented Frames"]],["tr","",["td","","{{decoded_frames}}"],["td","","{{dropped_frames}}"],["td","","{{parsed_frames}}"],["td","","{{presented_frames}}"]],["tr","",["th","","Video Bytes Decoded"],["th","","Audio Bytes Decoded"],["th","","Painted Frames"],["th","","Paint Delay"]],["tr","",["td","","{{video_bytes_decoded}}"],["td","","{{audio_bytes_decoded}}"],["td","","{{painted_frames}}"],["td","","{{paint_delay}}"]]]]]);this.g=this.template.b["html5-video-info-panel-close"];
this.b=new LE(200,14);R(this,this.b);Ov(this.template,"bandwidth_sparkline",this.b)}w(ME,W);
ME.prototype.update=function(a){a.dimensions=a.video_element_width+" x "+a.video_element_height;1<a.device_pixel_ratio&&(a.dimensions+=" * "+a.device_pixel_ratio);a.resolution=a.video_width+" x "+a.video_height;a.volume+="%";a.drm_flavor?(a.drm_style="",a.drm=a.drm_flavor+" / "+a.drm_key_system):(a.drm_style="display:none",a.drm="");var b=a.bandwidth_history;a.bandwidth_kbps=(8*db(b)/1024).toFixed(0)+" Kbps";for(var c=this.b,d=c.b,e=Math.max.apply(Math,b)||1,g=[],h=0;h<b.length;h++)g.push(h/b.length*
c.j+","+c.g*(1-b[h]/e));b='<svg width="'+c.j+'" height="'+c.g+'" viewbox="0 0 '+c.j+" "+c.g+'"><g><polyline stroke="white" fill="none" points="'+g.join(" ")+'"/></g></svg>';d.element.innerHTML=b;a.cpn_style=a.cpn?"":"display:none";this.template.update(a)};ME.prototype.J=function(){this.g=null;ME.G.J.call(this)};function NE(a){IE.call(this,["div","html5-video-player",{tabindex:-1}]);this.app=a;this.g=this.Wa=null;this.L=new Cf(0,0,0,0);this.b=null;this.qa=new Cf(0,0,0,0);this.F=this.N=null;this.hb=this.wb=0;this.ea=null;this.U=0;this.ya=null;a=a.R();this.mb=jf()||"blazer"==a.ob;this.eb=0;this.A=null;this.j=new JE;this.Xg()}w(NE,IE);f=NE.prototype;
f.Xg=function(){this.app.subscribe("initializingmode",this.qE,this);this.app.subscribe("videoplayerreset",this.sE,this);this.app.subscribe("videodatachange",this.rE,this)};
f.initialize=function(a){this.Wa=Nc(a);this.element.setAttribute("id",this.app.N.attrs.id);wg(this.element,"version",this.app.N.assets.js);this.element.style.display="none";this.W(this.Wa);af({YTP_ADVERTISEMENT:"Advertisement",YTP_AUDIO_TRACK_TITLE:"Audio track",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Auto ($VIDEO_QUALITY)",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Change quality ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Copy debug info",YTP_COPY_VIDEO_URL:"Copy video URL",YTP_COPY_VIDEO_URL_AT_TIME:"Copy video URL at current time",
YTP_GET_DEBUG_INFO:"Get debug info",YTP_GET_VIDEO_URL:"Get video URL",YTP_GET_VIDEO_URL_AT_TIME:"Get video URL at current time",YTP_GET_EMBED:"Get embed code",YTP_DEFAULT_VIEW:"Default view",YTP_EMBED_COPY:"Copy embed code",YTP_ERROR_GENERIC:"An error occurred, please try again later.",YTP_ERROR_GENERIC_WITH_LINK_2:"An error occurred, please try again later. $BEGIN_LINKLearn More$END_LINK",YTP_EXIT_FULLSCREEN:"Exit full screen",YTP_FEATURED:"Featured",YTP_FULLSCREEN:"Full screen",YTP_MIX:"Mix",YTP_MORE:"More",
YTP_MDX_TITLE:"Play on",YTP_MDX_TOOLTIP:"Play on TV",YTP_MDX_MY_COMPUTER:"This computer",YTP_MUTE:"Mute",YTP_NEXT:"Next",YTP_NEXT_VIDEO_IN:"Next video in $TIME_LEFT",YTP_NORMAL_SPEED:"Normal",YTP_ON:"On",YTP_OFF:"Off",YTP_OPTIONS:"Options",YTP_PLAY_ALL:"Play all",YTP_PREVIOUS:"Previous",YTP_PLAYLIST:"Playlist",YTP_PLAYLIST_UP_NEXT:"Up Next",YTP_QUALITY_TITLE:"Quality",YTP_REPLAY:"Replay",YTP_REPORT_ISSUE:"Report playback issue",YTP_SETTINGS:"Settings",YTP_SHARE:"share",YTP_SHARE_WITH_PLAYLIST:"Share with playlist",
YTP_SHOW_VIDEO_INFO:"Stats for nerds",YTP_SPEED_TITLE:"Speed",YTP_ST_COLLAPSE:"Collapse",YTP_ST_EXPAND:"Expand",YTP_SUBTITLES:"Captions",YTP_THEATER_MODE:"Theater mode",YTP_UNMUTE:"Unmute",YTP_URL_NAVIGATE:"Watch on YouTube.com",YTP_WATCH_ALL:"Watch entire video",YTP_WATCH_LATER:"Watch Later",YTP_WATCH_LATER_AS_2:"Watch later as $USER_NAME",YTP_SUBSCRIBE_AS:"Subscribe as $USER_NAME",YTP_LIKE_AS:"Like as $USER_NAME",YTP_DISLIKE_AS:"Dislike as $USER_NAME",YTP_WATCH_NEXT:"Watch next",YTP_PLAY:"Play",
YTP_WATERMARK:"Watermark",YTP_ERROR_STREAMING_UNAVAILABLE:"Video playback is unavailable right now because this video has been downloaded for offline viewing.",YTP_ERROR_LICENSE:"Sorry, there was an error licensing this video.",YTP_ERROR_VIDEO_NOT_FOUND:"This video can not be found.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",
YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"An error occurred when activating your rental. Please reload this page or try again later.",YTP_ERROR_PURCHASE_NOT_FOUND:"This video requires payment.",YTP_ERROR_PURCHASE_REFUNDED:"This video's purchase has been refunded.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Your account is playing this video in another location. Please reload this page to resume watching.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Playback stopped because too many videos belonging to the same account are playing.",
YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Playback stopped because this video has been played on too many devices.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Too many devices/IP addresses have been used over the 24 hour period.",YTP_ERROR_UNUSUAL_ACTIVITY:"Due to unusual account activity, this video is not currently available.",YTP_ERROR_NOT_SIGNED_IN:"Please sign in to resume watching.",YTP_CLOSE:"Close",YTP_ANNOTATIONS:"Annotations",YTP_DONE:"Done",YTP_SHARE_THIS_PLAYLIST:"Share this playlist",
YTP_UPLOADED_BY_2:"by $AUTHOR",YTP_PAUSE:"Pause",YTP_AUTOPLAY:"Autoplay",YTP_AUTOPLAY_COUNTDOWN_2:"Next video in $SECONDS_LEFT",YTP_CANCEL:"Cancel",YTP_ON_GOOGLE_PLUS:"On Google+",YTP_STILL_THERE:"Are you still there? If so, please click the button below to continue watching the playlist.",YTP_DISMISS:"OK",YTP_RESET:"Reset",YTP_STOP:"Stop live playback",YTP_LIKE:"Like",YTP_DISLIKE:"Dislike",YTP_MORE_INFO:"More info",YTP_SCREENREADER_VOLUME_SETTING:"volume",YTP_SCREENREADER_VOLUME_MUTED:"muted",YTP_SCREENREADER_VOLUME_MUTE:"mute",
YTP_SCREENREADER_VOLUME_UNMUTE:"unmute",YTP_SCREENREADER_CONTROL_TOGGLE:"toggle",YTP_SAMPLE_SUBTITLES:"Captions look like this",YTP_HTML5_CONTEXT_MENU_LINK:"About the HTML5 player",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"This video format is not supported.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"The Adobe Flash Player is required for video playback. $BEGIN_LINKGet the latest Flash Player$END_LINK.",
YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"The device in the cast session doesn't match the requested one.",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"The video in the cast session doesn't match the requested one.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Cast session was expired. Please refresh.",YTP_ERROR_CAST_TOKEN_FAILED:"Cast session not available. Please refresh or try again later.",YTP_ERROR_CAST_TOKEN_MALFORMED:"Invalid cast session. Please refresh or try again later.",YTP_ERROR_GEO_FAILURE:"This video isn't available in your country.",
YTP_ERROR_INVALID_DRM_MESSAGE:"The DRM system specific message is invalid.",YTP_ERROR_RENTAL_EXPIRED:"This video's rental has expired.",YTP_ERROR_RETRYABLE_ERROR:"There was a temporary server error. Please try again later.",YTP_ERROR_SERVER_ERROR:"There was an internal server error. Please try again later.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Playback not allowed because this video is pinned on another device.",YTP_ERROR_UNSUPPORTED_DEVICE:"Playback isn't supported on this device.",YTP_ERROR_VIDEO_FORBIDDEN:"Access to this video is forbidden.",
YTP_MDX_STATUS_CONNECTED:"Playing on",YTP_MDX_STATUS_CONNECTING:"Connecting to",YTP_MDX_STATUS_ERROR:"Error on",YTP_MDX_PLAYER_ERROR:"This video is not available for remote playback.",YTP_MDX_PLAYER_RECONNECT_TIME:"Please check your Internet connection. Retrying in $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"Reconnect",YTP_DEVICE_FALLBACK:"Sorry, this video is not available on this device.",YTP_AD_RESUME_MESSAGE:"Your video will resume after the following ad.",YTP_VISIT_ADVERTISERS_SITE:"Visit advertiser's site"});
this.Ys()};f.Ys=function(){this.H("templateready")};f.qE=function(){this.qa=new Cf(0,0,0,0);this.L=new Cf(0,0,0,0)};f.addClass=function(a){tg(this.element,arguments)};f.removeClass=function(a){ug(this.element,arguments)};
f.Sg=function(){this.bm();var a=this.app.R();this.addClass("el-"+a.ba);this.addClass("ps-"+a.ob);P(this.element,"html5-native-controls",a.Ob);P(this.element,"html5-mobile",a.$b);a.Pd||this.addClass("html5-chromeless");a.Qb||this.addClass("tag-pool-enabled");this.element.style.display="";a=new Jv(["div","html5-video-container"]);R(this,a);a.W(this.element);this.g=a.K();this.N=new Jv(["div","html5-video-content"]);R(this,this.N);this.N.W(this.g);a=new Jv(["div","html5-video-controls"]);R(this,a);a.W(this.element);
this.F=a.K();this.A=new ME;this.A.W(this.element);cz(this,this.A.g,"click",this.zm);R(this,this.A);this.mb?this.ea=Q(window,"resize",u(this.rh,this)):(a=pz()?u(this.mC,this):u(this.rh,this),this.ea=Ye(a,250))};f.Jj=function(a){a?$y(this.F):az(this.F)};f.mC=function(){this.U&&sz(this.U);this.U=rz(u(this.rh,this),0)};f.rh=function(){Mb(this.Sb(),Ff(this.L))||this.Zf()};
f.Zf=function(){if(this.b){var a=this.Sb();if(!a.isEmpty()){var b=!Mb(a,Ff(this.L)),c,d=OE(this),e=this.Sb();c=1;var g=PE(this),h=!1,k;g?(k=QE(this,e,d,g,!1),c=RE(new G(k.width,k.height))/RE(d),k=new Cf(k.left+k.width/2*(1-1/c),k.top,k.width/c,k.height)):k=new Cf(0,0,e.width,e.height);Ef(this.qa,k)||(this.qa=k,$f(this.b,Ff(k)),Pf(this.b,new F(k.left,k.top)),h=!0);d=QE(this,e,d,g);Ef(this.L,d)||(this.L=d,$f(this.N.K(),d.width,d.height),Pf(this.N.K(),d.left,d.top),h=!0);Tx(this.b,"transform",1==c?"none":
"scaleX("+c+")");c=h;b&&(this.L.width=a.width,this.L.height=a.height,this.gn(a));(c||b)&&this.H("resize")}}};f.gn=function(){};f.Ml=function(){};f.rE=function(a,b){this.Dj(b)};f.sE=function(a){a.getVideoData()&&this.Dj(a.getVideoData())};
f.Dj=function(a){this.b&&(this.b.setAttribute("data-youtube-id",a.videoId),nr&&(a.title?this.b.setAttribute("title",a.title):this.b.removeAttribute("title")),a.Gm&&(this.b.poster=a.Gm));var b=fs(a,"yt:bgcolor");this.g.style.backgroundColor=b?b:"";this.wb=zq(fs(a,"yt:stretch"));a=fs(a,"yt:crop");this.hb="fullwidth"==a?Infinity:zq(a)};f.Tg=function(){};f.Dm=function(){};f.pd=function(){return this.element?new G(this.element.clientWidth,this.element.clientHeight):new G(0,0)};
f.Sb=function(){return this.g?new G(this.g.clientWidth,this.g.clientHeight):new G(0,0)};f.Ks=function(){return this.Sb()};function jE(a){return a.b?new G(a.b.clientWidth,a.b.clientHeight):new G(0,0)}function OE(a){return a.b?new G(a.b.videoWidth,a.b.videoHeight):new G(0,0)}function SE(a){return QE(a,a.Sb(),OE(a),PE(a),void 0)}
function QE(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.wb||RE(c),a=a.hb||c,d=RE(b),d=a>d?new G(b.width,b.width/(isFinite(a)?a:c)):a<d?new G(b.height*a,b.height):b.clone(),e||(c>a?d.width=d.height*c:c<a&&(d.height=d.width/c))):(e=c.clone(),d=e.scale(Nb(e)>Nb(b)?b.width/e.width:b.height/e.height));return new Cf((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}function RE(a){var b=16/9;return 1>Math.abs(b*a.height-a.width)||1>Math.abs(b/a.width-a.height)?b:Nb(a)}
function PE(a){return!a.app.R().Ob&&!OE(a).isEmpty()}f.lk=function(){};function mt(a){a.A&&(a.A.show(),a.Vs(),Ze(a.eb),a.eb=Ye(u(a.Vs,a),500))}
f.Vs=function(){var a=Ws(this.app),b=this.app.getVideoData(),c=this.app.Zh(),d=this.b,e=this.app.R(),g=b.videoId,h=d.videoWidth,k=d.videoHeight,l=d.clientWidth,d=d.clientHeight,p=window.devicePixelRatio,s=Math.round(this.app.D.volume),t;t:{if(b.ve&&(t=b.ve.match(/url=(https?)/))&&2==t.length){t=t[1];break t}t=""}t=t||e.protocol;var y=this.app;if(y.xa){var E=[];y.xa.M.forEach(u(E.push,E));y=E}else y=[0];c={video_id:g,video_width:h,video_height:k,video_element_width:l,video_element_height:d,device_pixel_ratio:p,
cpn:"",mime:"",dash:"no",drm_flavor:"",drm_key_system:"",volume:s,stream_type:t,bandwidth_history:y,decoded_frames:c.hmewdfc||c.hmemdf||"-",dropped_frames:c.hmewdrop||"-",parsed_frames:c.hmempf||"-",presented_frames:c.hmempresented||"-",video_bytes_decoded:c.hmewvdbc||"-",audio_bytes_decoded:c.hmewadbc||"-",painted_frames:c.hmempainted||"-",paint_delay:c.hmempaintdelay||"-"};b.b&&(g=ro(b.b)?"yes":"no",g+=" ("+b.b.id,b.N&&ro(b.b)&&(g+="/"+b.N.id),c.dash=g+")",c.mime=b.b.mimeType);if(a=a.C?a.C.b:null)c.drm_flavor=
a.g,c.drm_key_system=a.b;uE(e)&&(c.cpn=b.Da);this.A.update(c)};f.zm=function(a){a&&a.stopPropagation();this.A&&(Ze(this.eb),this.A.hide())};f.bm=function(){this.j.g=this};f.J=function(){this.ea&&(this.mb?Tg(this.ea):Ze(this.ea),this.U&&sz(this.U));this.ya&&Tg(this.ya);this.zm();this.A&&Xg(this.A.g);this.F=this.N=this.b=this.g=this.Wa=null;NE.G.J.call(this)};function TE(a){W.call(this,["div","ytp-dialog-holder","{{content}}"]);this.g=a;this.b=null}w(TE,W);TE.prototype.show=function(){TE.G.show.call(this);UE(this);this.b.rj()};function UE(a){if(a.b){a.b.Hr();var b=a.g.pd(),c=cg(a.b.K());a=a.b;b=new F(Math.floor((b.width-c.width)/2),Math.floor((b.height-c.height)/2));a.K().style.marginLeft=b.x+"px";a.K().style.marginTop=b.y+"px"}}TE.prototype.J=function(){this.b=null;TE.G.J.call(this)};function VE(a,b){W.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.b=0;this.o=null}w(VE,W);VE.prototype.j=function(a,b){M(this.b);this.context&&(this.b=bz(u(this.j,this,a,b),b),a.call(this,new Date-this.o))};VE.prototype.J=function(){M(this.b);this.context=null;VE.G.J.call(this)};function WE(a,b){VE.call(this,a,b);this.A=null;this.B=this.C=this.k=this.g=0;N(this.element,"ytp-tv-static");XE(this,a,b)}w(WE,VE);function YE(a){for(var b=Math.floor(.6*a),c=b;c<a;++c){for(var d=!1,e=2;e<Math.sqrt(c);e++){if(!(c%e)){d=!1;break}d=!0}if(d)return c}return b}
function XE(a,b,c){if(b&&c){a.width=a.element.width=b;a.height=a.element.height=c;var d=document.createElement("canvas");d.width=b;d.height=c;for(var e=d.getContext("2d"),g=e.getImageData(0,0,b,c),h=b*c,k=0;k<h;k++){var l=4*k;g.data[l]=g.data[l+1]=g.data[l+2]=Math.floor(35*Math.random());g.data[l+3]=255}e.putImageData(g,0,0);a.A=d;a.C=YE(b);a.B=YE(c/10);a.context.scale(1.5,1.5)}}WE.prototype.show=function(){WE.G.show.call(this);var a=this.D;this.o=new Date;this.j(a,75)};
WE.prototype.D=function(){var a=1-1/1.5;this.g=(this.g+this.C)%(this.width*a);this.k=(this.k+this.B)%(this.height*a);this.context.drawImage(this.A,-1*this.g,-1*this.k)};WE.prototype.hide=function(){M(this.b);WE.G.hide.call(this)};function ZE(){W.call(this,["div",["ytp-error","html5-stop-propagation"],["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.aa="table";this.g=[];if(void 0==lq){var a=document.createElement("canvas");lq=!(!a.getContext||!a.getContext("2d"))}lq&&(this.b=new WE(1,1),this.b.W(this.element,0),R(this,this.b))}w(ZE,W);ZE.prototype.show=function(){ZE.G.show.call(this);$E(this);this.b&&this.b.show()};ZE.prototype.hide=function(){ZE.G.hide.call(this);this.b&&this.b.hide()};
function $E(a){a.b&&XE(a.b,a.element.clientWidth,a.element.clientHeight)}ZE.prototype.J=function(){Tg(this.g);this.g=[];ZE.G.J.call(this)};function aF(a,b){var c=["ytp-large-play-button","html5-center-overlay","ytp-scalable-icon-shrink"],d;b&&c.push("ytp-housebrand-large-play-button");a?b?c.push("ytp-housebrand-large-play-button-image"):c.push("ytp-large-play-button-image"):d=b?'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-housebrand-large-play-button-svg" d="M59.6,1.35c0.267,0.5,0.4,1.133,0.4,1.9v53.5c0,0.767-0.133,1.4-0.4,1.9c-0.5,0.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.333-0.433-2.8-1.3C0.15,58.167,0,57.517,0,56.75V3.25c0-0.833,0.167-1.5,0.5-2C1,0.417,1.917,0,3.25,0h53.5C58.15,0,59.1,0.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="21,41.65 21,18 43.7,29.85"/></svg>':
'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-large-play-button-svg" d="M84.15,26.4v6.35c0,2.833-0.15,5.967-0.45,9.4c-0.133,1.7-0.267,3.117-0.4,4.25l-0.15,0.95c-0.167,0.767-0.367,1.517-0.6,2.25c-0.667,2.367-1.533,4.083-2.6,5.15c-1.367,1.4-2.967,2.383-4.8,2.95c-0.633,0.2-1.316,0.333-2.05,0.4c-0.767,0.1-1.3,0.167-1.6,0.2c-4.9,0.367-11.283,0.617-19.15,0.75c-2.434,0.034-4.883,0.067-7.35,0.1h-2.95C38.417,59.117,34.5,59.067,30.3,59c-8.433-0.167-14.05-0.383-16.85-0.65c-0.067-0.033-0.667-0.117-1.8-0.25c-0.9-0.133-1.683-0.283-2.35-0.45c-2.066-0.533-3.783-1.5-5.15-2.9c-1.033-1.067-1.9-2.783-2.6-5.15C1.317,48.867,1.133,48.117,1,47.35L0.8,46.4c-0.133-1.133-0.267-2.55-0.4-4.25C0.133,38.717,0,35.583,0,32.75V26.4c0-2.833,0.133-5.95,0.4-9.35l0.4-4.25c0.167-0.966,0.417-2.05,0.75-3.25c0.7-2.333,1.567-4.033,2.6-5.1c1.367-1.434,2.967-2.434,4.8-3c0.633-0.167,1.333-0.3,2.1-0.4c0.4-0.066,0.917-0.133,1.55-0.2c4.9-0.333,11.283-0.567,19.15-0.7C35.65,0.05,39.083,0,42.05,0L45,0.05c2.467,0,4.933,0.034,7.4,0.1c7.833,0.133,14.2,0.367,19.1,0.7c0.3,0.033,0.833,0.1,1.6,0.2c0.733,0.1,1.417,0.233,2.05,0.4c1.833,0.566,3.434,1.566,4.8,3c1.066,1.066,1.933,2.767,2.6,5.1c0.367,1.2,0.617,2.284,0.75,3.25l0.4,4.25C84,20.45,84.15,23.567,84.15,26.4z M33.3,41.4L56,29.6L33.3,17.75V41.4z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="33.3,41.4 33.3,17.75 56,29.6"/></svg>';
W.call(this,["div",c]);d&&(this.element.innerHTML=d)}w(aF,W);function bF(a){this.g=a||30;VE.call(this,this.g,this.g);this.A=this.width/2;this.k=this.height/2;this.B=0;this.context.translate(this.A,this.k);this.hide()}w(bF,VE);bF.prototype.show=function(){bF.G.show.call(this);var a=this.C;this.o=new Date;this.j(a,125)};
bF.prototype.C=function(){this.context.clearRect(-this.A,-this.k,this.width,this.height);for(var a=this.B++%8,b=0;8>b;b++){var c=2*Math.PI/8*(a+b),d=11/30*this.g,e=d*Math.cos(c),c=d*Math.sin(c),d=(b+1)/9;this.context.beginPath();this.context.arc(e,c,4/30*this.g,0,2*Math.PI,!1);this.context.fillStyle="rgba(189, 189, 189, "+d+")";this.context.fill()}};bF.prototype.hide=function(){M(this.b);bF.G.hide.call(this)};function cF(a){W.call(this,["div","ytp-thumbnail"]);this.b=a}w(cF,W);
cF.prototype.show=function(a){if(a||this.element.childNodes.length){if(a){ed(this.element);var b=this.element,c=this.b;if(null!=Sx("backgroundSize")){if(d=document.createElement("div"),b=AB(b,a,c))d.style.backgroundImage="url("+b+")"}else{var d=document.createElement("img");d.src=AB(b,a,c);a=d;b.clientWidth/b.clientHeight<zB?(a.style.height="100%",a.style.width="auto"):(a.style.height="auto",a.style.width="100%")}N(d,"video-thumbnail");this.element.appendChild(d)}cF.G.show.call(this)}};function dF(a,b,c,d,e,g,h){var k,l;if(k=c.offsetParent){var p="HTML"==k.tagName||"BODY"==k.tagName;p&&"static"==Of(k,"position")||(l=Vf(k),p||(p=(p=Wf(k))&&sc?-k.scrollLeft:!p||rc&&Cc("8")||"visible"==Of(k,"overflowX")?k.scrollLeft:k.scrollWidth-k.clientWidth-k.scrollLeft,l=Lb(l,new F(p,k.scrollTop))))}k=l||new F;l=fg(a);if(p=Uf(a)){var s=Df(p),p=Math.max(l.left,s.left),t=Math.min(l.left+l.width,s.left+s.width);if(p<=t){var y=Math.max(l.top,s.top),s=Math.min(l.top+l.height,s.top+s.height);y<=s&&(l.left=
p,l.top=y,l.width=t-p,l.height=s-y)}}p=Kc(a);y=Kc(c);if(p.b!=y.b){var t=p.b.body,y=yd(y),s=new F(0,0),E=Wc(Mc(t)),A=t;do{var $=E==y?Vf(A):Xf(A);s.x+=$.x;s.y+=$.y}while(E&&E!=y&&(A=E.frameElement)&&(E=E.parent));t=Lb(s,Vf(t));rc&&!xd(p)&&(t=Lb(t,zd(p)));l.left+=t.x;l.top+=t.y}a=eF(a,b);b=new F(a&2?l.left+l.width:l.left,a&1?l.top+l.height:l.top);b=Lb(b,k);e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var Ma;h&&(Ma=Uf(c))&&(Ma.top-=k.y,Ma.right-=k.x,Ma.bottom-=k.y,Ma.left-=k.x);return fF(b,c,d,g,Ma,h,
void 0)}
function fF(a,b,c,d,e,g,h){a=a.clone();var k=0,l=eF(b,c);c=dg(b);h=h?h.clone():c.clone();if(d||0!=l)l&2?a.x-=h.width+(d?d.right:0):d&&(a.x+=d.left),l&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);if(g&&(e?(k=a,d=0,65==(g&65)&&(k.x<e.left||k.x>=e.right)&&(g&=-2),132==(g&132)&&(k.y<e.top||k.y>=e.bottom)&&(g&=-5),k.x<e.left&&g&1&&(k.x=e.left,d|=1),k.x<e.left&&k.x+h.width>e.right&&g&16&&(h.width=Math.max(h.width-(k.x+h.width-e.right),0),d|=4),k.x+h.width>e.right&&g&1&&(k.x=Math.max(e.right-h.width,e.left),
d|=1),g&2&&(d=d|(k.x<e.left?16:0)|(k.x+h.width>e.right?32:0)),k.y<e.top&&g&4&&(k.y=e.top,d|=2),k.y<=e.top&&k.y+h.height<e.bottom&&g&32&&(h.height=Math.max(h.height-(e.top-k.y),0),k.y=e.top,d|=8),k.y>=e.top&&k.y+h.height>e.bottom&&g&32&&(h.height=Math.max(h.height-(k.y+h.height-e.bottom),0),d|=8),k.y+h.height>e.bottom&&g&4&&(k.y=Math.max(e.bottom-h.height,e.top),d|=2),g&8&&(d=d|(k.y<e.top?64:0)|(k.y+h.height>e.bottom?128:0)),k=d):k=256,k&496))return k;Pf(b,a);Mb(c,h)||(a=Mc(b),e=xd(Kc(a)),!rc||e&&
Cc("8")?(b=b.style,sc?b.MozBoxSizing="border-box":tc?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(h.width,0)+"px",b.height=Math.max(h.height,0)+"px"):(a=b.style,e?(rc?(e=jg(b,"paddingLeft"),c=jg(b,"paddingRight"),g=jg(b,"paddingTop"),d=jg(b,"paddingBottom"),e=new Bf(g,c,d,e)):(e=Nf(b,"paddingLeft"),c=Nf(b,"paddingRight"),g=Nf(b,"paddingTop"),d=Nf(b,"paddingBottom"),e=new Bf(parseFloat(g),parseFloat(c),parseFloat(d),parseFloat(e))),b=mg(b),a.pixelWidth=h.width-b.left-e.left-
e.right-b.right,a.pixelHeight=h.height-b.top-e.top-e.bottom-b.bottom):(a.pixelWidth=h.width,a.pixelHeight=h.height)));return k}function eF(a,b){return(b&4&&Wf(a)?b^2:b)&-5};var gF={},hF="ontouchstart"in document;function iF(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return vd(c,function(a){return sg(a,b)},!0,d)}
function jF(a){var b="mouseover"==a.type&&"mouseenter"in gF||"mouseout"==a.type&&"mouseleave"in gF,c=a.type in gF||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=gF[b],d;for(d in c.Zb){var e=iF(b,d,a.target);e&&!vd(a.relatedTarget,function(a){return a==e},!0)&&c.H(d,e,b,a)}}if(b=gF[a.type])for(d in b.Zb)(e=iF(a.type,d,a.target))&&b.H(d,e,a.type,a)}}Q(document,"blur",jF,!0);Q(document,"change",jF,!0);Q(document,"click",jF);Q(document,"focus",jF,!0);
Q(document,"mouseover",jF);Q(document,"mouseout",jF);Q(document,"mousedown",jF);Q(document,"keydown",jF);Q(document,"keyup",jF);Q(document,"keypress",jF);Q(document,"cut",jF);Q(document,"paste",jF);hF&&(Q(document,"touchstart",jF),Q(document,"touchend",jF),Q(document,"touchcancel",jF));function kF(){this.k={};this.o=[]}f=kF.prototype;f.ld=function(a){return wd(a,Y(this))};function Y(a,b){return"yt-uix"+(a.Kd?"-"+a.Kd:"")+(b?"-"+b:"")}f.dispose=ca;function lF(a,b,c){b=Xh(b,c,a);a.o.push(b)}function mF(a,b,c,d){d=Y(a,d);var e=u(c,a);b in gF||(gF[b]=new Rh);gF[b].subscribe(d,e);a.k[c]=e}f.ag=function(a,b,c){var d=this.Z(a,b);if(d&&(d=q(d))){var e=yb(arguments,2);xb(e,0,0,a);d.apply(null,e)}};f.Z=function(a,b){return yg(a,b)};function nF(a,b){wg(a,"tooltip-text",b)}
f.removeData=function(a,b){zg(a,b)};function oF(){kF.call(this);this.b={}}w(oF,kF);da(oF);f=oF.prototype;f.Kd="tooltip";f.Gj=0;f.register=function(){mF(this,"mouseover",this.xt);mF(this,"mouseout",this.Hj);mF(this,"click",this.Hj);mF(this,"touchstart",this.cE);mF(this,"touchend",this.At);mF(this,"touchcancel",this.At)};f.dispose=function(){for(var a in this.b)this.Hj(this.b[a]);this.b={}};
f.xt=function(a){if(!(this.Gj&&1E3>v()-this.Gj)){var b=parseInt(this.Z(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),M(b));var b=u(function(){pF(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(this.Z(a,"tooltip-show-delay"),10)||0,b=L(b,c);wg(a,"tooltip-show-timer",b.toString());a.title&&(nF(a,qF(this,a)),a.title="");b=la(a).toString();this.b[b]=a}};
f.Hj=function(a){var b=parseInt(this.Z(a,"tooltip-show-timer"),10);b&&(M(b),this.removeData(a,"tooltip-show-timer"));b=u(function(){rF(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=L(b,50);wg(a,"tooltip-hide-timer",b.toString());if(b=this.Z(a,"tooltip-text"))a.title=b;b=la(a).toString();delete this.b[b]};f.cE=function(a,b,c){this.Gj=0;a=iF(b,Y(this),c.changedTouches[0].target);this.xt(a)};f.At=function(a,b,c){this.Gj=v();a=iF(b,Y(this),c.changedTouches[0].target);this.Hj(a)};
function sF(a,b,c){nF(b,c);a=a.Z(b,"content-id");if(a=Nc(a))a.innerHTML=c}function qF(a,b){return a.Z(b,"tooltip-text")||b.title}
function pF(a,b){if(b){var c=qF(a,b);if(c){var d=Nc(tF(a,b));if(!d){d=document.createElement("div");d.id=tF(a,b);d.className=Y(a,"tip");var e=document.createElement("div");e.className=Y(a,"tip-body");var g=document.createElement("div");g.className=Y(a,"tip-arrow");var h=document.createElement("div");h.className=Y(a,"tip-content");var k=uF(a,b),l=tF(a,b,"content");h.id=l;wg(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);($g()||document.body).appendChild(d);
sF(a,b,c);(c=parseInt(a.Z(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",N(h,Y(a,"normal-wrap")));h=sg(b,Y(a,"reverse"));vF(a,b,d,e,k,h)||vF(a,b,d,e,k,!h);var p=Y(a,"tip-visible");L(function(){N(d,p)},0)}}}}
function vF(a,b,c,d,e,g){P(c,Y(a,"tip-reverse"),g);var h=0;g&&(h=1);var k=dg(b);g=new F((k.width-10)/2,g?k.height:0);var l=Vf(b);fF(new F(l.x+g.x,l.y+g.y),c,h);var l=Sc(window),p=Zf(c);c=dg(d);var s=Math.floor(c.width/2),h=!!(l.height<p.y+k.height),k=!!(p.y<k.height);g=!!(p.x<s);l=!!(l.width<p.x+s);p=(c.width+3)/-2- -5;a=a.Z(b,"force-tooltip-direction");if("left"==a||g)p=-5;else if("right"==a||l)p=20-c.width-3;a=Math.floor(p)+"px";d.style.left=a;e&&(e.style.left=a,e.style.height=c.height+"px",e.style.width=
c.width+"px");return!(h||k)}function rF(a,b){if(b){var c=Nc(tF(a,b));c&&(wF(c),gd(c),a.removeData(b,"content-id"))}}function tF(a,b,c){a=Y(a)+Cg(b);c&&(a+="-"+c);return a}function uF(a,b){var c=null;lc&&sg(b,Y(a,"masked"))&&((c=Nc("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),Px(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=Y(a,"tip-mask")));return c}
function wF(a){var b=Nc("yt-uix-tooltip-shared-mask"),c=b&&vd(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),Qx(b),document.body.appendChild(b))};function xF(a,b){ug(a,["html5-async-progress","html5-async-success","html5-async-error"]);b&&N(a,b);rF(oF.getInstance(),a)};function yF(a){UA.call(this);this.j=null;this.g=new oC(a,u(this.k,this),u(this.B,this));R(this,this.g);this.b=X(0,"YTP_AUDIO_TRACK_TITLE");this.element=new hC(a,void 0,this.g);R(this,this.element);jC(this.element,100);this.priority=0;this.o=!0}w(yF,UA);function zF(a,b){a.j!=b&&(a.j=b,rC(a.g,b),a.element.k(a.k(b)))}yF.prototype.k=function(a){return a.name};yF.prototype.B=function(a){this.element.j();zF(this,a);this.element.vb("change")};function AF(a){this.cb=a;this.df=0;this.Ka=new ew(this);BF(this,"focusin","focusout",1,this.cb);BF(this,"mouseover","mouseout",2,this.cb);BF(this,"mousedown","mouseup",4,document)}function BF(a,b,c,d,e){function g(){this.df|=d;P(this.cb,"ytp-block-autohide",!!this.df);this.Ka.Fa(h);h=this.Ka.listen(e,c,k)}var h,k;k=function(){this.df&=~d;P(this.cb,"ytp-block-autohide",!!this.df);this.Ka.Fa(h);h=this.Ka.listen(this.cb,b,g)};h=a.Ka.listen(a.cb,b,g)}
AF.prototype.J=function(){this.df&&O(this.cb,"ytp-block-autohide");this.Ka.removeAll();AF.G.J.call(this)};function CF(a,b){IE.call(this,b);this.D=a;this.videoId=null}w(CF,IE);
CF.prototype.Df=function(a,b){this.videoId=a?a.id||a.video_id:"";P(this.element,"ytp-suggestion-set",!!this.videoId);if(this.videoId){var c;b&&a.iurlhq_webp?c=a.iurlhq_webp:!b&&a.iurlmq_webp?c=a.iurlmq_webp:c=DB(a.thumbnail_ids?a.thumbnail_ids.split(",")[0]:this.videoId,b?"hqdefault.jpg":"mqdefault.jpg");var d=bc(a);d.playlist_length=d.playlist_length||0;d.title=d.title||d.playlist_title;d.author=d.author||d.playlist_author;d.image=c;d.background="background-image: url("+c+")";d.duration=Qv(a.length_seconds);
d.episodic_title=d.title;d.episodic_index=parseInt(d.index,10)+1;d.episodic_length=d.playlist_length;this.template.update(d)}};function DF(a){var b=["div","ytp-autonav-widget",["img","ytp-autonav-widget-thumbnail",{src:"{{image}}"}],["div","ytp-autonav-widget-info",["div","ytp-autonav-widget-header",X(0,"YTP_AUTOPLAY")],["div","ytp-autonav-widget-next-video-in","{{next-video-in}}"]],["div","ytp-autonav-widget-divider"],["div","ytp-autonav-widget-cancel",X(0,"YTP_CANCEL")]];CF.call(this,a,b);cz(this,this.template.b["ytp-autonav-widget-thumbnail"],"click",this.b,this);cz(this,this.template.b["ytp-autonav-widget-cancel"],"click",
this.g,this)}w(DF,CF);DF.prototype.g=function(a){a.stopPropagation();this.H("autonavcancel",a)};DF.prototype.b=function(a){a.stopPropagation();this.H("nextvideo",a)};function EF(a){VA.call(this,a);YA(this,6900);FF(this)}w(EF,VA);function FF(a){WA(a,"ytp-button-fullscreen-enter");var b=X(0,"YTP_FULLSCREEN");XA(a,b);a.g=b};function GF(a,b){W.call(this,["div",["ytp-menu-container","html5-stop-propagation"],{tabindex:-1},["div","ytp-menu",["div","ytp-menu-content","{{content}}"]]]);this.k=a;this.j=b||!1;this.b=[];this.g=[];this.stopPropagation("click")}w(GF,W);GF.prototype.add=function(a){for(var b=this.b.length,c=0;c<this.b.length;c++){if(this.b[c]==a)return;if(c<b&&this.b[c].priority<a.priority){b=c;break}}xb(this.b,b,0,a);HF(this)};GF.prototype.remove=function(a){rb(this.b,a);HF(this)};
function HF(a){Qh(a.g);a.g=[];var b,c,d=[],e=1==a.b.length||a.j;e&&a.b.length&&(c=new W(["div","ytp-menu-row",["div","ytp-menu-cell",a.b[0].b]]),d.push(c));var g=!1;for(b=0;b<a.b.length;b++)g=g||a.b[b].C;var h=g?["ytp-menu-cell","ytp-menu-cell-span"]:"ytp-menu-cell";for(b=0;b<a.b.length;b++){var k=a.b[b];c=k.o;c=e?!g||c?new W(["div","ytp-menu-row",["div",h,"{{content}}"]]):new W(["div","ytp-menu-row",["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]):!g||k.o?new W(["div","ytp-menu-row",
["div",["ytp-menu-cell","ytp-menu-title"],k.b],["div",h,"{{content}}"]]):new W(["div","ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.b],["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]);c.na(k.element);c.na(IF(a,k),"more");d.push(c)}a.na(d)}function IF(a,b){if(b.C){var c=X(0,"YTP_OPTIONS"),d=new VA(a.k,"ytp-menu-more-options",c);YA(d,2700);d.na(c);a.g.push(d);d.listen("click",b.M,b);return d}return null}GF.prototype.J=function(){this.b=[];HF(this);GF.G.J.call(this)};function JF(a){VA.call(this,a);YA(this,6E3);MF(this)}w(JF,VA);function MF(a){WA(a,"ytp-button-play");var b=X(0,"YTP_PLAY");XA(a,b)};function NF(a){W.call(this,["div","ytp-playlist-controls","{{content}}"]);this.g=new VA(a,"ytp-button-prev",X(0,"YTP_PREVIOUS"),X(0,"YTP_PREVIOUS"));R(this,this.g);YA(this.g,6050);this.b=new VA(a,"ytp-button-next",X(0,"YTP_NEXT"),X(0,"YTP_NEXT"));R(this,this.b);YA(this.b,6051);this.na([this.g,this.b])}w(NF,W);function OF(a,b){ej.call(this);this.g=!!b;this.cb=a;this.Ka=new ew(this);this.b=this.j=null;PF(this)}w(OF,ej);function PF(a){a.b=null;a.j=null;a.Ka.listen(a.cb,QF("over"),a.CB);a.Ka.listen(a.cb,"touchstart",a.DB)}f=OF.prototype;f.CB=function(a){this.Ka.removeAll();this.Ka.listen(this.cb,QF("move"),this.Cs);this.Ka.listen(this.cb,QF("out"),this.Ds);this.g&&this.Ka.listen(this.cb,QF("down"),this.Bs);this.H("hoverstart",Ng(a),Og(a),a.target);this.H("hovermove",Ng(a),Og(a),a.target)};
f.Cs=function(a){this.b&&Ng(this.b)==Ng(a)&&Og(this.b)==Og(a)&&this.b.relatedTarget==a.target||this.H("hovermove",Ng(a),Og(a),a.target);this.b=null};f.Ds=function(a){a.relatedTarget&&md(this.cb,a.relatedTarget)?(this.b=a,this.H("hovermove",Ng(a),Og(a),a.relatedTarget)):(this.Ka.removeAll(),PF(this),this.H("hoverend",Ng(a),Og(a),a.relatedTarget))};
f.Bs=function(a){ia(a.button)&&0!=a.button||(a.preventDefault(),this.Ka.removeAll(),this.Ka.listen(document,QF("move"),this.tD),this.Ka.listen(document,QF("up"),this.uD),this.H("dragstart",Ng(a),Og(a),a.target),this.H("dragmove",Ng(a),Og(a),a.target))};f.tD=function(a){this.H("hovermove",Ng(a),Og(a),a.target);this.H("dragmove",Ng(a),Og(a),a.target)};
f.uD=function(a){this.Ka.removeAll();a.target&&md(this.cb,a.target)?(this.Ka.listen(this.cb,QF("move"),this.Cs),this.Ka.listen(this.cb,QF("out"),this.Ds),this.Ka.listen(this.cb,QF("down"),this.Bs),this.H("dragend",Ng(a),Og(a),a.target)):(PF(this),this.H("dragend",Ng(a),Og(a),a.target),this.H("hoverend",Ng(a),Og(a),a.target))};
f.DB=function(a){var b=a.changedTouches[0];b&&(this.Ka.removeAll(),this.Ka.listen(this.cb,"touchmove",this.VB),this.Ka.listen(this.cb,"touchend",this.bs),this.Ka.listen(this.cb,"touchcancel",this.bs),this.j=b.identifier,this.H("hoverstart",b.pageX,b.pageY,a.target),this.H("hovermove",b.pageX,b.pageY,a.target),this.g&&(this.H("dragstart",b.pageX,b.pageY,a.target),this.H("dragmove",b.pageX,b.pageY,a.target)))};
f.VB=function(a){var b=RF(this,a);b&&(a.preventDefault(),this.H("hovermove",b.pageX,b.pageY,a.target),this.g&&this.H("dragmove",b.pageX,b.pageY,a.target))};f.bs=function(a){var b=RF(this,a);b&&(a.preventDefault(),this.Ka.removeAll(),PF(this),this.g&&this.H("dragend",b.pageX,b.pageY,a.target),this.H("hoverend",b.pageX,b.pageY,a.target))};function RF(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.j)return d}return null}
function QF(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}f.J=function(){this.Ka.removeAll();OF.G.J.call(this)};function SF(a,b,c,d,e,g,h,k){this.b=a;this.B=b;this.j=c;this.o=d;this.k=e;this.A=g;this.g=h;this.C=k}SF.prototype.clone=function(){return new SF(this.b,this.B,this.j,this.o,this.k,this.A,this.g,this.C)};SF.prototype.equals=function(a){return this.b==a.b&&this.B==a.B&&this.j==a.j&&this.o==a.o&&this.k==a.k&&this.A==a.A&&this.g==a.g&&this.C==a.C};function TF(a,b){if(0==b)return a.b;if(1==b)return a.g;var c=Kb(a.b,a.j,b),d=Kb(a.j,a.k,b),e=Kb(a.k,a.g,b),c=Kb(c,d,b),d=Kb(d,e,b);return Kb(c,d,b)}
function UF(a,b){var c=(b-a.b)/(a.g-a.b);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,g=0;8>g;g++){var h=TF(a,c),k=(TF(a,c+1E-6)-h)/1E-6;if(1E-6>Math.abs(h-b))return c;if(1E-6>Math.abs(k))break;else h<b?d=c:e=c,c-=(h-b)/k}for(g=0;1E-6<Math.abs(h-b)&&8>g;g++)h<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),h=TF(a,c);return c};var VF=new function(){this.b=new SF(0,0,0,0,.58,1,1,1)};function WF(a,b){this.g=a;this.b=b}function XF(a){return a.b-a.g}function YF(a,b){return a.g+b*XF(a)}function ZF(a,b){return XF(a)?Jb((b-a.g)/XF(a),0,1):Infinity};function $F(a,b,c,d){var e=Math.min(c/(b.Hq/b.dj),d/(b.Gq/b.rows)),g=b.Hq*e,e=b.Gq*e,g=Math.floor(g/b.dj)*b.dj,e=Math.floor(e/b.rows)*b.rows,h=g/b.dj,k=e/b.rows,l=Math.floor((c-h)/2);c=Math.ceil((c-h)/2);var p=Math.floor((d-k)/2);d=b.gz*h*-1;var s=b.row*k*-1;a=a.style;a.width=h+"px";a.height=k+"px";h=p+"px";a.marginTop=h;a.marginBottom=h;a.marginLeft=l+"px";a.marginRight=c+"px";a.backgroundImage="url("+b.url+")";a.backgroundPosition=d+"px "+s+"px";a.backgroundSize=g+"px "+e+"px"};function aG(a){IE.call(this,["div","html5-storyboard",["div","html5-storyboard-filmstrip",["img","html5-storyboard-thumbnail",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]],["div","html5-storyboard-lens",["img","html5-storyboard-lens-thumbnail",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}],["span","html5-storyboard-lens-timestamp"]]]);this.B=!1;this.o=new Vk(this.rv,250,this);R(this,this.o);this.Xd=a;this.b=this.template.b["html5-storyboard-filmstrip"];
this.A=this.template.b["html5-storyboard-lens"];this.C=this.template.b["html5-storyboard-lens-thumbnail"];this.D=this.template.b["html5-storyboard-lens-timestamp"];this.j=this.template.b["html5-storyboard-thumbnail"];gd(this.j);this.g=0;this.k=new WF(0,0)}w(aG,IE);f=aG.prototype;f.wq=!1;f.Xd=0;f.Ll=0;f.Zk=0;f.Wq=10;f.Tb=0;f.Vi=0;f.Am=0;f.Cc=null;f.Ke=null;f.disable=function(){this.wq=!0};
f.My=function(){for(var a=this.b.cloneNode(!0),b=this.Cc.b[0].g,c,d,e=0;e<b;e++)d=this.j.cloneNode(!1),c=br(this.Ke,e,this.Tb),$F(d,c,this.Tb,this.Vi),a.appendChild(d);hd(a,this.b);this.b=a};f.aq=function(a,b){hg(this.b,!1);for(var c,d,e=a;e<=b;e++)if(d=this.b.children[e])c=br(this.Ke,e,this.Tb),$F(d,c,this.Tb,this.Vi);hg(this.b,!0)};function bG(a,b){if(b!=a.Am){var c=br(a.Ke,b,2*a.Tb),d=Math.round(2*a.Tb),e=Math.round(2*a.Vi);$F(a.C,c,d,e);a.Am=b}}
f.rv=function(){for(var a=this.Ll,b=Math.max(Math.floor(a/this.Tb),0),a=Math.min(Math.ceil((a+this.Xd)/this.Tb),this.Cc.b[0].g-1);b<=a;b++){for(var c=this.Ke,d=b,e=cq(c.b,2*this.Tb),g=void 0,h=void 0;0<=e;e--)if(g=c.b.b[e],h=Math.floor(d/(g.b*g.j)),!g.k[h]){var g=c,k=e,l=k+"-"+h;g.o[l]||(g.o[l]=!0,Zq(g.j,k,{Op:k,Pp:h}))}cr(c)}};
function cG(a,b){a.Wq=Math.min(10,Math.ceil(a.Xd/72));a.Tb=Math.floor(a.Xd/a.Wq);a.Vi=.555*a.Tb;a.Zk=a.Tb*a.Cc.b[0].g;bg(a.b,a.Zk);var c=Math.round(2*a.Tb),d=.555*c+12;$f(a.A,c,d);Pf(a.A,(a.Xd-c)/2);c=d+20;a.K().style.height=Qf(c,!0);b&&(a.aq(0,a.Cc.b[0].g-1),bG(a,a.Am),a.B=!0)}f.show=function(){this.Cc&&aG.G.show.call(this)};f.J=function(){this.Ke=this.Cc=null;sz(this.g);aG.G.J.call(this)};function dG(a,b,c,d){this.width=b;this.g=c;this.o=d;this.b=b-c-d;this.k=Jb(a-c,0,this.b);this.position=this.k+c;this.j=this.k/this.b};function eG(){W.call(this,["div","ytp-progress-tooltip",["div","ytp-progress-tooltip-thumbnail-container",["div","ytp-progress-tooltip-thumbnail"]],["div","ytp-progress-tooltip-text-container",["div","ytp-progress-tooltip-text","{{text}}"]],["div","ytp-progress-tooltip-timestamp-container",["div","ytp-progress-tooltip-timestamp","{{timestamp}}"]],["div","ytp-progress-tooltip-arrow"]]);this.j=this.template.b["ytp-progress-tooltip-arrow"];this.b=-1;this.aa="";this.g=new WF(0,0);this.hide()}w(eG,W);
f=eG.prototype;f.bj=!1;f.Qf=null;f.Zg=null;f.disable=function(){this.bj=!0};f.show=function(){this.bj||eG.G.show.call(this)};f.reset=function(){O(this.K(),"with-thumbnail");this.Zg=this.Qf=null};f.Ny=function(a,b){(a<=this.b||this.b<=b)&&fG(this)};function fG(a){var b=br(a.Zg,a.b,108);$F(a.template.b["ytp-progress-tooltip-thumbnail"],b,108,60)}f.J=function(){this.j=this.Zg=this.Qf=null;eG.G.J.call(this)};function gG(a,b){var c=["div","ytp-progress-bar-container",["div",["html5-progress-bar","html5-stop-propagation","ytp-force-transform"],["div","ytp-progress-bar-padding"],["div","ytp-progress-list",["div","ytp-unloaded-progress"],["div","ytp-play-progress"],["div","ytp-load-progress"],["div","ytp-spacecast-load-progress"],["div","ytp-clip-start-exclude"],["div","ytp-clip-end-exclude"],["div","html5-ad-progress-list"],["div","ytp-marker-crenellation-list"],["div","ytp-marker-progress-list"]],["div",
"ytp-scrubber-pull-indicator"],["div","html5-scrubber-button"]],["div","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div",["ytp-clip-start","html5-clip-marker","yt-uix-tooltip"],{title:X(0,"YTP_TOOLTIP_CLIP_MARKER")}],["div",["ytp-clip-end","html5-clip-marker","yt-uix-tooltip"],{title:X(0,"YTP_TOOLTIP_CLIP_MARKER")}],["div","html5-progress-screenreader",{"aria-live":"assertive"}]];IE.call(this,c);this.k=a.pd().width;this.C=1;this.M=this.U=this.A=
this.jb=this.I=0;this.wa=this.template.b["html5-ad-progress-list"];this.ac=this.template.b["ytp-marker-progress-list"];this.gb=this.template.b["ytp-marker-crenellation-list"];this.F={};this.V={};this.N=Infinity;this.la=this.template.b["ytp-clip-end"];this.ya=new OF(this.la,!0);R(this,this.ya);this.ya.subscribe("hoverstart",this.vo,this);this.ya.subscribe("hoverend",this.uo,this);cz(this,this.la,"click",this.ok);this.xa=this.template.b["ytp-clip-end-exclude"];this.eb=this.template.b["ytp-clip-start-exclude"];
this.O=0;this.oa=this.template.b["ytp-clip-start"];this.za=new OF(this.oa,!0);R(this,this.za);this.za.subscribe("hoverstart",this.vo,this);this.za.subscribe("hoverend",this.uo,this);cz(this,this.oa,"click",this.ok);this.j=null;this.Ra=this.template.b["ytp-unloaded-progress"];this.Ha=this.template.b["ytp-load-progress"];this.D=0;this.Wa=this.template.b["ytp-play-progress"];this.B=0;this.L=this.template.b["html5-progress-bar"];this.o=null;this.Ld=new AF(this.K());R(this,this.Ld);this.hb=this.template.b["html5-progress-screenreader"];
this.g=null;this.qa=this.template.b["html5-scrubber-button"];this.Md=this.template.b["ytp-scrubber-pull-indicator"];this.mb=0;this.Ca=!1;this.Ia=new F;this.b=new WF(0,0);this.wb=!1;this.ea=b;hG(this)}w(gG,IE);f=gG.prototype;f.Py=function(){this.g&&this.g.show()};f.Ry=function(a,b,c){var d=Vf(this.K()),e=iG(this).b,g=c?c.getAttribute("data-tooltip"):null;g&&(a=ZF(this.b,Number(c.getAttribute("data-position")))*e+Vf(this.L).x);this.Ia.x=a-d.x;this.Ia.y=b-d.y;g?jG(this,g):jG(this)};
function jG(a,b){if(a.g){var c=a.wb?a.b.b:0,d=iG(a),e=a.g;if(!e.bj){var g=50;e.Qf?(g=108,b&&(g*=2)):b&&(g=108);e.K().style.padding="2px";e.K().style.width=g+"px";g=g/2+2;g=(new dG(d.position,d.width,g,g)).position-g;e.K().style.left=g+"px";e.j.style.left=Jb(d.position,0,d.width)-g-5+"px";c=Qv(YF(e.g,d.j)-c);e.na(c,"timestamp");e.Qf&&(d=bq(e.Qf,d.j),d!=e.b&&(e.b=d,fG(e)));b?(N(e.K(),"with-text"),e.na(b,"text")):O(e.K(),"with-text")}}}f.Qy=function(){this.g&&this.g.hide()};
f.Oy=function(a,b){var c=kG(this);this.mb=c.g-iG(this).j*(c.g+c.o);this.g&&this.j&&(this.g.hide(),this.j.show());this.A&&(Ze(this.A),this.A=0);this.jb=b;this.Ca=!0;this.H("beginseeking")};f.Sy=function(){this.U=0;O(this.K(),"ytp-pull-ui");O(this.K(),"ytp-pulling");if(0<this.I){var a=v(),b=this.I,c=iG(this).position;this.A&&Ze(this.A);this.A=bz(u(this.No,this,a,b,c),0)}this.g&&this.j&&(this.g.show(),this.j.hide());this.Ca=!1;this.H("endseeking")};
f.No=function(a,b,c){var d,e=(v()-a)/200;d=VF.b;e=UF(d,e);if(0==e)d=d.B;else if(1==e)d=d.C;else{var g=Kb(d.B,d.o,e),h=Kb(d.o,d.A,e);d=Kb(d.A,d.C,e);g=Kb(g,h,e);h=Kb(h,d,e);d=Kb(g,h,e)}e=c+d*(this.B*this.k-c);if(0>d||1<d)d=1;lG(this,(1-d)*b,e,this.B);this.A=1>d?bz(u(this.No,this,a,b,c),0):0};function lG(a,b,c,d){b=Jb(b,0,40);a.I=b;var e=a.C,g=Math.max(XF(a.b)/a.k,1);a.C=b/40*(g-1)+1;b=a.k*a.C;a.M=Jb(d*b-c,0,b-a.k);e!=a.C&&hG(a)}
f.Ty=function(a,b){var c=!1,d=!1,e=iG(this);3600<=XF(this.b)&&(lG(this,this.jb-b-10,e.position,e.j),d=!0,c=4<this.I,e=iG(this));P(this.K(),"ytp-pull-ui",d);c&&N(this.K(),"ytp-pulling");c=0;e.g&&0>=e.position?c=-1:e.o&&e.position>=e.width&&(c=1);!this.A||c&&c==this.U||M(this.A);c&&(this.A=bz(u(this.dp,this,v(),this.M),0));this.U=c;this.H("seekto",YF(this.b,e.j),!1)};
f.dp=function(a,b){if(this.U){var c=this.k*(this.C-1);this.M=Jb(b+this.U*(v()-a)*.3,0,c);hG(this);this.H("seekto",YF(this.b,iG(this).j),!1);0<this.M&&this.M<c&&(this.A=bz(u(this.dp,this,a,b),0))}};
function hG(a){var b=iG(a),c=id(a.gb),d=0;if(8<a.I)for(var e=(-b.g+b.width)/b.b*(XF(a.b)/60),g=Math.ceil(-b.g/b.b*(XF(a.b)/60));g<e;g++){var h=c[d];h||(h=document.createElement("div"),h.style.width="1px",a.gb.appendChild(h));d++;h.className=0==g%60?"ytp-60m-progress":0==g%30?"ytp-30m-progress":0==g%15?"ytp-15m-progress":"ytp-1m-progress";h.style.left=60*g/XF(a.b)*b.b+"px"}for(e=c.length-1;e>=d;e--)gd(c[e]);c=(-b.g+b.width)/b.b;a.na(Qv(YF(a.b,-b.g/b.b)),"boundTimeLeft");a.na(Qv(YF(a.b,c)),"boundTimeRight");
a.L.style.width=b.b+"px";a.K().style.height=a.I+(a.ea?20:8)+"px";b=b.g;Tx(a.L,"transform",b?"translatex("+b+"px)":"");a.qa.style.height=a.I+(a.ea?12:6)+"px";for(var k in a.F)mG(a,a.F[k],a.V[k]);nG(a);oG(a,a.B,a.D)}function iG(a){var b=a.Ia.x;if(a.Ca)var c=a.ea?32:16,b=(b+a.mb-c/2)/(a.k-c)*a.k;c=a.k*a.C;b=Jb(b,0,a.k);return new dG(b,a.k,-a.M,-(c-a.M-a.k))}function kG(a){var b=a.ea?32:16,c=a.k*a.C;return new dG(a.B*(c-b)+b/2,c,b/2,b/2)}
function oG(a,b,c){if(b<a.O||b>a.N)a.ok();else{a.B=b;a.D=Math.max(a.B,c);var d=ZF(a.b,a.O),e=ZF(a.b,a.N),g=Jb(b,d,e);c=Jb(c,d,e);var h=g;g<e&&(h=a.k*a.C,h=(g*h-g)/h);a.Wa.style.left=Rv(d)+"%";Tx(a.Wa,"transform","scalex("+(h-d)+")");Tx(a.qa,"transformOrigin",Rv(b)+"%");b=kG(a).position+"px";a.qa.style.left=b;a.Md.style.left=b;a.Ha.style.left=Rv(d)+"%";Tx(a.Ha,"transform","scalex("+(c-d)+")");a.Ra.style.left=Rv(d)+"%";Tx(a.Ra,"transform","scalex("+(e-d)+")")}}
function nG(a){var b=a.O>a.b.g,c=0<a.b.b&&a.N<a.b.b;P(a.K(),"ytp-clip-start-enabled",b);P(a.K(),"ytp-clip-end-enabled",c);b=b?ZF(a.b,a.O):0;c=c?ZF(a.b,a.N):1;a.oa.style.left=Rv(b)+"%";a.la.style.left=Rv(c)+"%";a.eb.style.width=Rv(b)+"%";a.xa.style.left=Rv(c)+"%";a.xa.style.width=Rv(1-c)+"%"}f.vo=function(){N(this.K(),"ytp-clip-hover")};f.uo=function(){O(this.K(),"ytp-clip-hover")};f.ok=function(){this.O=0;this.N=Infinity;nG(this);oG(this,this.B,this.D)};
function mG(a,b,c){var d=iG(a).b,e=ZF(a.b,b.start/1E3)*d;switch(b.style){case "ytp-chapter-marker":a=iu(b);var g=a/2,d=Jb(e,g,d-g)-g;break;default:a=Math.min(Math.min(ZF(a.b,b.end/1E3)*d,d)-e,iu(b)),d=Jb(e,0,d-a)}c.style.width=a+"px";c.style.left=d+"px";c.className=b.style}
function pG(a,b){z(b,function(a){if(a.Zd){var b=a.getId();if(!this.F[b]){var e=document.createElement("div");a.g&&(e.setAttribute("data-tooltip",a.g),e.setAttribute("data-position",a.start/1E3));this.F[b]=a;this.V[b]=e;mG(this,a,e);"ytp-chapter-marker"==a.style?this.ac.appendChild(e):this.wa.appendChild(e)}}else qG(this,a)},a)}function rG(a,b){z(b,function(a){qG(this,a)},a)}function qG(a,b){var c=b.getId();a.F[c]==b&&(gd(a.V[c]),delete a.F[c],delete a.V[c])}
function sG(a,b){var c=a.L;O(c,"spacecast-cached");b&&L(function(){N(c,"spacecast-cached")},100)}f.J=function(){this.A&&(M(this.A),this.A=0);this.o&&(this.o.dispose(),this.o=null);this.Ha=this.oa=this.eb=this.la=this.xa=this.wa=null;this.V={};this.Ra=this.qa=this.hb=this.L=this.Wa=null;this.ea=!1;gG.G.J.call(this)};function tG(a){UA.call(this);this.B=this.k="unknown";this.b=X(0,"YTP_QUALITY_TITLE");this.j=new oC(a,u(this.D,this),u(this.F,this),!0);R(this,this.j);this.g=NaN;this.element=new hC(a,void 0,this.j);R(this,this.element);jC(this.element,100);this.priority=-1;this.o=!0}w(tG,UA);tG.prototype.Qn=function(){return this.k};
function uG(a,b,c){if(a.k!=b||a.B!=c){a.k=b;a.B=c;rC(a.j,c);var d=a.j;null!=d.b&&nC(qC(d,d.b),!1);null!=b&&nC(qC(d,b),!0);d.b=b;"auto"==c&&c!=b?(b=X(0,"YTP_AUTO_WITH_QUALITY_2",{VIDEO_QUALITY:vG(b)}),b=new KE(b)):b=a.D(b);isNaN(a.g)||(pz()?sz(a.g):M(a.g));pz()?a.g=rz(u(a.element.k,a.element,b),0):a.g=L(u(a.element.k,a.element,b),0)}}
function vG(a){switch(a){case "highres":return"2160p";case "hd1440":return"1440p";case "hd1080":return"1080p";case "hd720":return"720p";case "large":return"480p";case "medium":return"360p";case "small":return"240p";case "tiny":return"144p";case "auto":return bf("YTP_AUTO")}return""}tG.prototype.D=function(a){var b=["span","",vG(a)];"highres"==a?(b.push(" "),b.push(["sup","","4K"])):0==a.indexOf("hd")&&(b.push(" "),b.push(["sup","","HD"]));return new Jv(b)};
tG.prototype.F=function(a){this.element.j();this.element.vb("blur");if("auto"!=this.B||"auto"!=a)uG(this,a,a),this.element.vb("change")};tG.prototype.J=function(){pz()?sz(this.g):M(this.g);tG.G.J.call(this)};function wG(a){UC.call(this,a,"ytp-settings-button",X(0,"YTP_SETTINGS"),"ytp-settings-button-active");YA(this,6600);this.j=new W(["div","{{content}}"]);R(this,this.j);this.na(this.j);xG(this,"")}w(wG,UC);function xG(a,b){"highres"==b?a.j.na("ytp-settings-4k-quality-badge"):-1!=b.indexOf("hd")?a.j.na("ytp-settings-hd-quality-badge"):a.j.na("")};function yG(a){UC.call(this,a,"ytp-size-toggle-large",X(0,"YTP_THEATER_MODE"),"ytp-size-toggle-small",X(0,"YTP_DEFAULT_VIEW"));YA(this,6800)}w(yG,UC);function zG(a){UA.call(this);this.j=1;this.b=X(0,"YTP_SPEED_TITLE");this.g=new oC(a,u(this.k,this),u(this.B,this));R(this,this.g);this.element=new hC(a,void 0,this.g);R(this,this.element);jC(this.element,100);AG(this,this.j);this.priority=1;this.o=!0}w(zG,UA);function AG(a,b){a.j=b;rC(a.g,b);a.element.k(a.k(b))}zG.prototype.k=function(a){return 1==a?X(0,"YTP_NORMAL_SPEED"):a.toString()};zG.prototype.B=function(a){this.element.j();AG(this,a);this.element.vb("change")};function BG(){W.call(this,["div",["ytp-time-display","html5-control"],["span","ytp-time-current","{{current}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"],["span","ytp-time-live-badge","Live"]]);this.b=this.template.b["ytp-time-live-badge"]}w(BG,W);BG.prototype.wf=function(a){Ov(this.template,"duration",Qv(a))};function CG(a,b,c){P(a.element,"ytp-time-liveonly",b&&!c);P(a.element,"ytp-time-live",b&&c)}BG.prototype.J=function(){this.b=null;BG.G.J.call(this)};function DG(a){this.C=a;W.call(this,["div","ytp-volume-control",["div","ytp-volume-panel",{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:6200},["div","ytp-volume-slider",["div","ytp-volume-slider-foreground"]]]]);this.b=new VA(this.C,"ytp-button-volume",X(0,"YTP_BUTTON_VOLUME"));R(this,this.b);this.b.W(this.element,0);YA(this.b,6100);this.A=this.template.b["ytp-volume-panel"];this.g=this.template.b["ytp-volume-slider"];
this.o=this.template.b["ytp-volume-slider-foreground"];this.k=this.j=0;this.B=new AF(this.A);R(this,this.B)}w(DG,W);function EG(a){a.j||(a.j=a.g.clientWidth);return a.j}
DG.prototype.setVolume=function(a,b){var c=X(0,b?"YTP_UNMUTE":"YTP_MUTE");this.b.g=c;var c=Math.round(a),d=c+"% "+X(0,"YTP_SCREENREADER_VOLUME_SETTING")+(b?" "+X(0,"YTP_SCREENREADER_VOLUME_MUTED"):""),e=X(0,b?"YTP_SCREENREADER_VOLUME_UNMUTE":"YTP_SCREENREADER_VOLUME_MUTE")+" "+X(0,"YTP_SCREENREADER_CONTROL_TOGGLE");XA(this.b,e);Ov(this.template,"valuenow",c);Ov(this.template,"valuetext",d);c="max";b||0==a?c="off":20>a?c="min":40>a?c="quiet":60>a?c="normal":80>a&&(c="loud");wg(this.b.K(),"value",c);
c=EG(this);this.k||(this.k=this.o.clientWidth);c=c-this.k;d=b?0:a;0>=d?c=0:100<=d||(d=(c-0)*d/100,c=0>=d?0:d>=c?c:0+Math.round(d));this.o.style.left=c+"px"};function FG(a,b){ej.call(this);this.rb=a;this.nk=new ew(this);this.Lu=b;this.Yc=null;this.b={};this.g={};this.k=this.j=this.Od=this.zc=this.Rd=null;this.o=new ew(this);this.Do=this.fc=null;this.B=-1;this.A=null;this.C=!1;this.uf=new W(["div","ytp-video-controls-clickguard"]);this.uf.hide();R(this,this.uf)}w(FG,ej);f=FG.prototype;f.Bc=null;f.Hc=null;f.Ee=null;f.yi=null;f.ni=null;f.Fm=!1;f.ad=null;f.disable=function(a){GG(this,a,!0)};f.enable=function(a){GG(this,a,!1)};
function GG(a,b,c){for(var d=0;d<b.length;d++)switch(b[d]){case "audio":P(a.Bc,"disabled-control-audio",c);break;case "play_pause":var e=a.Hc;c?e.disable():e.enable();break;case "seek":P(a.Bc,"disabled-control-seek",c)}}f.setVolume=function(a,b){if(this.B!=a||this.A!=b)this.$c.setVolume(a,b),this.B=a,this.A=b};f.wf=function(a){this.cd.wf(a)};f.fx=function(){this.H("mutetoggled")};
function HG(a,b){if(b){if(a.Fm){var c=a.Hc;WA(c,"ytp-button-stop");var d=X(0,"YTP_STOP")}else c=a.Hc,WA(c,"ytp-button-pause"),d=X(0,"YTP_PAUSE");XA(c,d)}else MF(a.Hc)}f.bx=function(){this.H("playpausetoggled")};f.Zw=function(a){a=(a-Vf(this.$c.g).x)/EG(this.$c)*100;a={volume:Jb(a,0,100),muted:!1};this.H("volumechanged",a)};f.Yw=function(){this.H("fullscreentoggled")};function IG(a,b){var c=a.g[b.A||"__default__"];c&&c.add(b)}function JG(a,b){var c=a.g[b.A||"__default__"];c&&c.remove(b)}
function KG(a,b,c,d){if(!a.b[b]){a.b[b]=c;if("remote"==b)fd(ld(a.Yc.K()),c.K(),0);else{var e=c.K();d=d||a.Yc.K();d.parentNode&&d.parentNode.insertBefore(e,d.nextSibling)}c.listen("click",qa(a.vA,b),a,"menuButtonClick");c=new GF(a.rb,"__default__"!=b);R(a,c);c.hide();c.W(a.Bc);a.g[b]=c}}f.$w=function(){var a=this.Bb.K();if(!sg(a,"html5-async-progress")){var b=sg(a,"html5-async-success");xF(a,"html5-async-progress");this.H("watchlater",b)}};f.ax=function(){this.H("watchonyoutube")};
function LG(a,b,c){a.Ud();a.H("showdialog");var d=a.rb.pd();$f(a.uf.K(),d);a.uf.show();c&&(a.k=c,WC(a.k));a.j=b;a.j.show();a.j.K().focus();a.o.listen(window,"blur",a.Ud);a.o.listen(document,"click",a.Ud)}f.Ud=function(){this.o.removeAll();this.j&&(this.j.hide(),this.j=null);this.k&&(XC(this.k),this.k=null);this.uf.hide()};f.vA=function(a,b){b.stopPropagation();var c=this.b[a];c&&(c.b?this.Ud():LG(this,this.g[a],c))};f.Tw=function(){this.H("audiotrackchanged",this.Rd.j)};
f.Vw=function(){var a=this.zc.Qn();this.H("qualitychanged",a);this.H("controlclick","quality-"+a)};f.Uw=function(){this.Ud()};f.Ww=function(){var a=this.fc;a.b?XC(a):WC(a);this.H("sizechangerequested",1==this.fc.b)};f.Xw=function(){var a=this.Od.j;this.H("speedchanged",a);this.H("controlclick","speed-"+a)};
f.Ay=function(a){var b=a.target;a=b==this.Hc.K()?"playpause":b==this.$c?"volume":b==this.cd?"time":b==this.Yc?"settings":b==this.Bb?"watchlater":b==this.ad?"youtube":b==this.Yd.K()?"fullscreen":b==this.fc?"size":a.target.className;this.H("controlclick",a)};
f.J=function(){this.Ho.dispose();this.nk.removeAll();this.o.removeAll();this.Ud();this.Bb=this.ad=this.ni=this.$c=this.Bc=null;for(var a in this.b){var b=this.b[a];b&&(b.bd(),dz(b,"menuButtonClick"))}this.b={};this.g={};this.fc=this.Yc=this.Od=this.zc=null;this.C||(this.B=-1,this.A=null);FG.G.J.call(this)};function MG(a){Li("/playlist_video_ajax?action_add_to_watch_later_list=1",{method:"POST",Ih:{privacy:a.privacy||null,feature:a.aF||null,authuser:a.Sa||null,pageid:a.$a||null},fd:{video_ids:a.Va,src_playlist_id:a.dF,full_list_id:a.bF||null,new_playlist_name:a.cF||null,plid:We("PLAYBACK_ID")||null},context:a.context,onError:a.onError,onSuccess:a.onSuccess,ub:a.ub})}
function NG(a){Li("/playlist_video_ajax?action_delete_from_watch_later_list=1",{method:"POST",fd:{video_ids:a.Va,session_token:We("XSRF_TOKEN")},context:a.context,onError:a.onError,onSuccess:a.onSuccess,ub:a.ub})};function OG(a,b){this.C=a;this.k=[];this.D=b;this.o=[]}w(OG,Mh);function PG(a,b,c){a.k.push(a.C.subscribe(b,c,a))}function QG(a,b,c){a.o.push(a.D.subscribe(b,c,a))}function RG(a){for(var b=0;b<a.k.length;b++)a.C.Hb(a.k[b]);for(b=0;b<a.o.length;b++)a.D.Hb(a.o[b])}OG.prototype.J=function(){RG(this);OG.G.J.call(this)};function SG(a,b){OG.call(this,a,b);PG(this,"videodatachange",this.I);PG(this,"presentingplayerstatechange",this.F);PG(this,"progresssync",this.M);this.g=a;this.b=b;this.B=!1;this.A=0;this.j=Infinity}w(SG,OG);function TG(a){a.B&&5>a.j-a.A&&a.g.getVideoData().pm?a.b.show():a.b.hide()}SG.prototype.F=function(a){this.B=V(a.state,8)&&!(V(a.state,16)||V(a.state,32)||V(a.state,2));TG(this)};
SG.prototype.M=function(a){var b=this.g.yb.Hf();this.j=Math.min(b.duration,b.clipEnd);this.A=n(a)?a:b.current;a=Math.max(0,Math.ceil(this.j-this.A));Ov(this.b.template,"next-video-in",X(0,"YTP_NEXT_VIDEO_IN",{TIME_LEFT:a}));TG(this)};SG.prototype.I=function(a,b){b&&Ws(this.g)&&1==Ws(this.g).getPlayerType()&&(this.b.Df(b&&b.L?b.L[0]:null),TG(this))};function UG(a,b){OG.call(this,a,b);this.j=!1;this.g=a;this.b=b;var c=a.R();c.color&&N(this.b.L,c.color);c.aj&&(c=this.b,c.g=new eG,c.g.W(c.K()),R(c,c.g),c.j=new aG(c.k),c.j.hide(),c.j.W(c.K(),0),R(c,c.j));VG(this)}w(UG,OG);
function VG(a){RG(a);a.j=!0;PG(a,"cuerangesadded",a.TC);PG(a,"cuerangesremoved",a.UC);PG(a,"cuerangemarkersupdated",a.SC);PG(a,"presentingplayerstatechange",a.YC);PG(a,"progresssync",a.Eq);PG(a,"resize",a.WC);PG(a,"seekto",a.ZC);PG(a,"videodatachange",a.$C);PG(a,"videoplayerreset",a.Dq);PG(a,"videoready",a.XC);QG(a,"beginseeking",a.RC);QG(a,"endseeking",a.VC);QG(a,"seekto",a.QC)}f=UG.prototype;f.TC=function(a){pG(this.b,a)};f.UC=function(a){rG(this.b,a)};f.SC=function(a){pG(this.b,a)};
f.WC=function(a){var b=this.b;b.k=a.width;hG(b);b.j&&(b=b.j,a=a.width,!b.Cc||b.Xd==a&&b.B||(b.Xd=a,cG(b,!0)))};f.ZC=function(a){var b=this.g.yb.Hf();a=ZF(new WF(b.seekableStart,b.seekableEnd),a);b=this.b;oG(b,n(a)?a:b.B,n(void 0)?void 0:b.D);if(this.b.j&&(b=this.b.j,b.Cc)){b.Ll=b.Zk*a-b.Xd/2;Pf(b.b,-1*b.Ll);var c=bq(b.Cc,a);bG(b,c);a=YF(b.k,a);od(b.D,Qv(a));Wk(b.o)}};
f.YC=function(a){if(0>aw(a,16)){a=this.b;var b=this.g.getCurrentTime();a.hb.innerHTML=Math.floor(100*a.B)+"% at "+Math.floor(b)+" of "+Math.floor(a.b.b)+" seconds"}};f.Dq=function(a){if(1!=a.getPlayerType()){if(!this.j)return;RG(this);this.j=!1;PG(this,"videoplayerreset",this.Dq)}else if(!this.j){VG(this);var b=this.b;ed(b.wa);b.F={};b.V={};pG(this.b,a.A.j||[]);this.b.g&&this.b.g.reset()}this.Eq()};
f.$C=function(a,b){var c=new WF(0,b.Oa),d=this.b;d.b=c;hG(d);this.b.g&&(this.b.g.g=c);this.b.j&&(this.b.j.k=c);c=this.b;c.O=b.clipStart;nG(c);oG(c,c.B,c.D);c=this.b;c.N=b.clipEnd;nG(c);oG(c,c.B,c.D);sG(this.b,!!b.ca)};
f.XC=function(a){if(this.b.g){var b=this.b.g;if(!b.bj)if(gs(a)){N(b.K(),"with-thumbnail");b.Qf=gs(a);b.Zg=hs(a);var c=u(b.Ny,b);b.Zg.subscribe("l",c)}else b.reset()}this.b.j&&(b=this.b.j,b.j&&ed(b.b),O(b.K(),"enabled"),sz(b.g),b.Cc=gs(a),b.Ke=hs(a),b.Cc&&!b.wq&&(N(b.K(),"enabled"),c=u(b.aq,b),b.Ke.subscribe("l",c),cG(b),sz(b.g),b.g=rz(u(b.My,b))));this.b.wb=a.nb?!0:!1;ms(a)?(a=this.b,a.o&&(a.o.dispose(),a.o=null)):(a=this.b,a.o||(a.o=new OF(a.L,!0),a.o.subscribe("hoverstart",a.Py,a),a.o.subscribe("hovermove",
a.Ry,a),a.o.subscribe("hoverend",a.Qy,a),a.o.subscribe("dragstart",a.Oy,a),a.o.subscribe("dragmove",a.Ty,a),a.o.subscribe("dragend",a.Sy,a)))};f.Eq=function(a,b){var c=this.g.yb.Hf(),d=n(a)?a:c.current,e=new WF(c.seekableStart,n(b)?b:c.seekableEnd),c=ZF(e,c.loaded),d=ZF(e,d),g=this.b;g.b=e;hG(g);g=this.b;oG(g,n(d)?d:g.B,n(c)?c:g.D);this.b.g&&(this.b.g.g=e);this.b.j&&(this.b.j.k=e)};f.RC=function(){WG(this.g.j)};f.VC=function(){this.g.j.Oi()};f.QC=function(a,b){Ls(this.g,a,b)};f.J=function(){UG.G.J.call(this)};function XG(a,b){OG.call(this,a,b);PG(this,"applicationplayerstatechange",this.Xx);PG(this,"controlsdisabled",this.$x);PG(this,"controlsenabled",this.ay);PG(this,"liveviewshift",this.fy);PG(this,"fullscreentoggled",this.ey);PG(this,"presentingplayerstatechange",this.Cy);PG(this,"progresssync",this.Hy);PG(this,"threedenabled",this.vy);PG(this,"videoplayerreset",this.Gy);PG(this,"videodatachange",this.Fy);PG(this,"onPlaybackQualityChange",this.qy);PG(this,"onVolumeChange",this.wy);PG(this,"menu_button_add",
this.gy);PG(this,"menu_button_remove",this.hy);PG(this,"menu_item_add",this.iy);PG(this,"menu_item_remove",this.jy);PG(this,"menu_show",this.ky);QG(this,"fullscreentoggled",this.by);QG(this,"mutetoggled",this.ly);QG(this,"nextvideo",this.my);QG(this,"playpausetoggled",this.ny);QG(this,"previousvideo",this.oy);QG(this,"qualitychanged",this.ry);QG(this,"audiotrackchanged",this.Yx);QG(this,"seekto",this.Ey);QG(this,"sizechangerequested",this.ty);QG(this,"speedchanged",this.uy);QG(this,"volumechanged",
this.xy);QG(this,"watchlater",this.yy);QG(this,"watchonyoutube",this.zy);QG(this,"controlclick",this.Zx);QG(this,"showdialog",this.By);this.b=a;this.g=b;this.A=new UG(a,b.yi);R(this,this.A);this.j=new SG(a,b.np);R(this,this.j);var c=a.R();if(c.mc){var d=this.g;this.b.R().qd?WC(d.fc):XC(d.fc);d.fc.show()}c.Sf||this.g.Bb.hide();c.Gf&&this.g.Yd.show();if(c.zg){var d=this.g,e=d.Od;pC(e.g,this.b.b.zg?Vq:[1]);var g=2500;sC(e.g,g++);g=g++;YA(e.element.b,g);IG(d,d.Od)}if(c.b.C)for(d=this.g,e=[d.Hc,d.$c,d.cd,
d.Bb,d.ad,d.Yd,d.Yc],g=0;g<e.length;g++)d.nk.listen(e[g],"click",d.Ay);d=null!=c.ze&&0==c.ze.search("^https?://www.youtube.com");("detailpage"==c.ba||"profilepage"==c.ba||d)&&this.g.ad.hide()}w(XG,OG);f=XG.prototype;f.$x=function(a){this.g.disable(a)};f.ay=function(a){this.g.enable(a)};f.fy=function(a){P(this.g.cd.element,"ytp-time-live-dvr",!a)};f.ey=function(a){var b=this.g;this.b.R();a?(a=b.Yd,WA(a,"ytp-button-fullscreen-exit"),b=X(0,"YTP_EXIT_FULLSCREEN"),XA(a,b),a.g=b):FF(b.Yd);YG(this)};
f.Cy=function(a){V(a.state,2)||(0<aw(a,8)?HG(this.g,!0):0>aw(a,8)?HG(this.g,!1):0>aw(a,2)&&HG(this.g,V(a.state,8)));0>aw(a,16)&&ZG(this,this.b.getCurrentTime())};f.Xx=function(a){if(V(a.state,2)){a=this.g.Hc;WA(a,"ytp-button-replay");var b=X(0,"YTP_REPLAY");XA(a,b)}};f.vy=function(){var a=this.g,b=this.b.getVideoData().Pf,c=H("html5-threed-conversion-on",a.ni),a=H("html5-threed-conversion-off",a.ni);Nx(c,!b);Nx(a,b)};
f.Gy=function(a){$G(this)&&(ZG(this,a.getCurrentTime()),xF(this.g.Bb.K()),AG(this.g.Od,1),a.getVideoData()&&aH(this,a.getVideoData()))};f.Fy=function(a,b){$G(this)&&aH(this,b)};function YG(a){a.b.o&&("detailpage"!=a.b.R().ba||a.b.R().tb)?a.g.Ee.show():a.g.Ee.hide()}
function aH(a,b){a.g.wf(b.Oa);var c=Ws(a.b),d=a.g,e=Xs(c),g=d.zc;pC(g.j,e);sC(g.j,2600);YA(g.element.b,2601);e.length?IG(d,d.zc):JG(d,d.zc);d=a.g;e=Us(a.b);g=bH(a.b);uG(d.zc,e,g);xG(d.Yc,e);d=a.g;c.b.g?(c.oa||(c.oa=Xp(c.b.g)),c=c.oa):c=[];pC(d.Rd.g,c);1<c.length?IG(d,d.Rd):JG(d,d.Rd);c=a.g;(d=(d=Ws(a.b,void 0))?cH(d):null)&&zF(c.Rd,d);c=a.g;d=b.Za;e=b.nb;c.Fm=d&&!e;CG(c.cd,d,e);V(a.b.getPlayerState(),2)||HG(a.g,V(a.b.getPlayerState(),8));YG(a)}
f.qy=function(a){if($G(this)){var b=this.g,c=bH(this.b);uG(b.zc,a,c);xG(b.Yc,a)}};f.wy=function(a){this.g.setVolume(a.volume,a.muted)};f.iy=function(a){IG(this.g,a)};f.jy=function(a){JG(this.g,a)};f.gy=function(a,b){KG(this.g,a,b)};f.hy=function(a){var b=this.g,c=b.b[a];c&&(c.bd(),dz(c,"menuButtonClick"),b.b[a]=null,b.g[a].dispose(),b.g[a]=null)};f.ky=function(a){var b=this.g;a&&b.g[a]?LG(b,b.g[a],b.b[a]):b.Ud()};f.Hy=function(a){ZG(this,n(a)?a:this.b.yb.Hf().current)};f.by=function(){dH(this.b,!this.b.R().tb)};
f.ly=function(){this.b.D.muted?Os(this.b):Ns(this.b)};f.my=function(){gt(this.b)};f.ny=function(){eH(this.b)};f.oy=function(){ht(this.b)};f.ry=function(a){Vs(this.b,a,1)};f.Yx=function(a){var b=Ws(this.b,1);if(b&&!b.ga()&&!V(b.j,128)&&b.b.g.b&&(b=b.k,!b.ga())){var c=b.o;a=a.id;c.o="m";c.g=c.B.b[a];c.C=c.g;fH(b,new gH(c.C,c.j,c.o));hH(b,b.j,b.o.g);iH(b.j,!1);b.j.g=null;b.j.B=!0;jH(b)}};f.By=function(a){this.b.jk(a)};f.Ey=function(a){Ls(this.b,a,!0)};f.ty=function(a){kH(this.b,a)};
f.uy=function(a){Ts(this.b,a)};f.xy=function(a){lH(this.b,a)};f.zy=function(){mH(this.b)};f.Zx=function(a){nH(this.b,a)};f.yy=function(a){(a?NG:MG).call(this,oH(this,a?this.xE:this.yE))};function oH(a,b){return{Va:ot(a.b).videoId,Sa:a.b.R().Sa,$a:a.b.R().$a,onSuccess:b,onError:a.UB,context:a}}f.yE=function(){var a=this.g.Bb.K();xF(a,"html5-async-success");this.b.H("WATCH_LATER_VIDEO_ADDED")};f.xE=function(){xF(this.g.Bb.K());this.b.H("WATCH_LATER_VIDEO_REMOVED")};
f.UB=function(a,b){var c=b&&b.error_message,d=this.g.Bb.K();xF(d,"html5-async-error");if(c){var e=oF.getInstance(),g=qF(e,d);sF(e,d,c);pF(e,d);nF(d,g)}};function $G(a){return 1==Ws(a.b).getPlayerType()}function ZG(a,b){if($G(a)&&(Ov(a.g.cd.template,"current",Qv(b)),43200<b&&a.b.getVideoData().nb)){var c=a.g;c.Fm=!0;CG(c.cd,!0,!1)}};var pH={0:[],1:["autohide-controls","autominimize-progress-bar"],2:["autominimize-controls-aspect","autohide-controls-fullscreenonly","autominimize-progress-bar"],3:["autominimize-progress-bar"]};function qH(a){NE.call(this,a);this.V=this.I=this.M=this.D=null;this.xa=[];this.wa=this.gb=this.B=this.jb=null;this.Ia=this.la=!1;this.Ra={x:0,y:0};this.Ha=null;this.C=new TE(this.j);R(this,this.C);a=this.app.R().dc?4E3:3E3;this.oa=new gw(this.dq,a,this);R(this,this.oa);this.oa.start()}w(qH,NE);f=qH.prototype;
f.Xg=function(){qH.G.Xg.call(this);this.app.subscribe("appstatechange",this.oD,this);this.app.subscribe("applicationplayerstatechange",this.pD,this);this.app.subscribe("initializingmode",this.rD,this);this.app.subscribe("presentingplayerstatechange",this.qD,this);this.app.subscribe("onDetailedError",this.sD,this)};f.Sg=function(){qH.G.Sg.call(this);var a=this.app.R();this.Pn(a);this.xn(a);this.Jn()};
f.Pn=function(a){a.F&&this.addClass(a.F+"-theme");a.yc&&this.addClass("house-brand");!a.Lf&&a.Pd||this.addClass("modest-branding");a.Pl&&this.addClass("html5-hide-share");a.Mp||this.addClass("html5-hide-volume");a.dc&&(this.addClass("html5-tablet"),N(document.body,"html5-tablet-body"));a.Ob||(this.xa=pH[a.Li],0<=this.xa.indexOf("autohide-controls")&&this.addClass("hide-controls-when-cued"));rH(this)&&this.addClass("ideal-aspect");a.b.M&&this.addClass("ytp-autohide-fade")};
f.xn=function(a){if(a.Pd&&!a.Ob){this.B=new FG(this.j,a.dc);a.b.ca&&(this.B.C=!0);var b=this.B;b.Bc=this.F;b.Do=new AF(b.Bc);R(b,b.Do);b.uf.W(b.Bc);b.yi||(b.yi=new gG(b.rb,b.Lu));b.yi.W(b.Bc);var c=new Jv(["div",["html5-player-chrome","html5-stop-propagation"]]);R(b,c);c.W(b.Bc);c=c.K();b.Hc=new JF(b.rb);R(b,b.Hc);b.Hc.W(c);b.Hc.listen("click",b.bx,b);b.Ee=new NF(b.rb);R(b,b.Ee);b.Ee.W(c);b.Ee.b.listen("click",qa(b.H,"nextvideo"),b);b.Ee.g.listen("click",qa(b.H,"previousvideo"),b);b.$c=new DG(b.rb);
R(b,b.$c);b.$c.W(c);b.$c.b.listen("click",b.fx,b);b.Ho=new OF(b.$c.g,!0);b.Ho.subscribe("dragmove",b.Zw,b);b.cd=new BG;R(b,b.cd);b.cd.W(c);b.nk.listen(b.cd.b,"click",qa(b.H,"seekto",Infinity));b.ni=H("html5-threed-popup-menu",b.Bc);b.Yd=new EF(b.rb);b.Yd.W(c);R(b,b.Yd);b.Yd.listen("click",b.Yw,b);b.fc=new yG(b.rb);b.fc.hide();b.fc.W(c);R(b,b.fc);b.fc.listen("click",b.Ww,b);b.ad=new VA(b.rb,"ytp-button-watch-on-youtube",X(0,"YTP_URL_NAVIGATE"),X(0,"YTP_URL_NAVIGATE"));YA(b.ad,6700);b.ad.W(c);R(b,b.ad);
b.ad.listen("click",b.ax,b);b.Yc=new wG(b.rb);R(b,b.Yc);KG(b,"__default__",b.Yc,b.ad.K());b.Sl=new VA(b.rb,"ytp-button-playlist",X(0,"YTP_PLAYLIST"),X(0,"YTP_PLAYLIST"));YA(b.Sl,6400);b.Sl.W(c);R(b,b.Sl);b.Bb=new VA(b.rb,"ytp-button-watch-later",X(0,"YTP_WATCH_LATER"));b.rb.Af(b.Bb.K(),"YTP_WATCH_LATER_AS_2",X(0,"YTP_WATCH_LATER"));b.Bb.W(c);YA(b.Bb,6300);XA(b.Bb,X(0,"YTP_WATCH_LATER"));R(b,b.Bb);b.Bb.listen("click",b.$w,b);b.np=new DF(b.rb);b.np.W(b.Bc);b.zc=new tG(b.rb);R(b,b.zc);b.zc.listen("change",
b.Vw,b);b.zc.listen("blur",b.Uw,b);b.Od=new zG(b.rb);R(b,b.Od);b.Od.listen("change",b.Xw,b);b.Rd=new yF(b.rb);R(b,b.Rd);b.Rd.listen("change",b.Tw,b);R(this,this.B);this.gb=new XG(this.app,this.B);R(this,this.gb)}a.Rp&&(this.Ha=new aF(a.$b,a.yc),this.Ha.W(this.g),R(this,this.Ha));this.M=new bF(60);N(this.M.element,"html5-video-loader");N(this.M.element,"html5-center-overlay");N(this.M.element,"ytp-scalable-icon-grow");this.M.W(this.g);R(this,this.M);this.I=new cF(a.$b);this.I.W(this.g);R(this,this.I);
this.V=new GE;this.V.W(this.g);R(this,this.V);this.C.hide();this.C.W(this.element)};f.gn=function(a){qH.G.gn.call(this,a);sH(this,a);this.D&&$E(this.D);P(this.element,"ideal-aspect",rH(this));this.C.P&&UE(this.C)};f.Ml=function(){qH.G.Ml.call(this);sH(this,this.Sb())};f.oD=function(a){2==a?tH(this):uH(this);this.app.R().b.j&&3==a&&this.I.show(this.app.getVideoData())};
f.qD=function(a){if(this.element){var b;b=a.state;if(V(b,2))b=["ended-mode"];else{var c=[];V(b,8)?c.push("playing-mode"):V(b,4)&&c.push("paused-mode");V(b,1)&&!V(b,32)&&c.push("buffering-mode");V(b,32)&&c.push("seeking-mode");V(b,64)&&c.push("unstarted-mode");b=c}V(a.state,2)||(b=b.concat(this.xa));this.wa&&ug(this.element,this.wa);tg(this.element,b);this.wa=b;V(Ws(this.app).j,1)?this.M.show():this.M.hide();b=Ws(this.app);this.app.R().b.j&&b.Wh()&&!V(b.j,1)&&this.I.hide();0>aw(a,64)&&vH(this.app)}};
f.pD=function(a){!V(a.state,2)||this.app.R().yc||wH()?0>aw(a,2)&&uH(this):tH(this)};
f.Jn=function(){var a=this.app.R();if(a.Np){a.dc&&(cz(this,this.element,"gesturechange",this.DA),cz(this,this.element,"gestureend",this.EA));nr?this.g.onclick=u(function(a){this.Vm(new Kg(a))},this):this.Wm();cz(this,this.element,"click",this.Ir);cz(this,this.element,"mousemove",this.Ir);cz(this,this.element,"mouseout",this.dq);var b,a=u(function(){var a=this.b;a&&(St(a),DE.fillPool(4),this.Fa(b))},this);b=cz(this,this.element,"click",a,void 0,void 0,!0)}};
f.Wm=function(){cz(this,this.g,"click",this.Vm);cz(this,this.g,"dblclick",this.As)};f.Vm=function(a){xH(a)&&(this.element.focus(),sg(this.element,"cued-mode")||!this.app.R().Ob)&&(yH(this),eH(this.app));nH(this.app,"screenclick")};f.As=function(a){6!=this.app.I&&this.app.R().Gf&&(xH(a)&&Lz(this.app),nH(this.app,"screendoubleclick"))};f.DA=function(a){var b=a.scale,c=this.app.R().tb;b*(c?-1:1)>(c?-.7:1.3)&&Lz(this.app);a.preventDefault()};
f.EA=function(a){a=a.scale;var b=this.app.R().tb;a*(b?-1:1)>(b?-.9:1.1)&&Lz(this.app)};function xH(a){return!wd(a.target,"html5-stop-propagation")}function rH(a){a=Nb(new G(a.element.clientWidth,a.element.clientHeight)).toFixed(1);return"1.3"==a||"1.8"==a}f.Ir=function(a){if(a){var b=a.x||a.screenX;a=a.y||a.screenY;if(this.Ra.x==b&&this.Ra.y==a)return;this.Ra={x:b,y:a}}this.app.b.fg=v();this.Ia=!1;this.oa.start();this.la&&(this.la=!1,this.removeClass("ytp-user-idle"),this.app.Ua("onShowControls"))};
f.dq=function(a){if(a&&(a=a.relatedTarget)&&md(this.element,a))return;this.Ia=!0;this.oa.stop();if(!this.la){a=this.B&&null!=this.B.j;var b=Zs(this.app.C,"playlist"),b=b&&b.loaded;!this.Ia||a||b||(this.la=!0,this.addClass("ytp-user-idle"),this.app.Ua("onHideControls"))}};function tH(a){a.I.show(a.app.getVideoData());a.addClass("cued-mode")}function uH(a){a.app.R().b.j||a.I.hide();a.removeClass("cued-mode")}
f.Tg=function(a){if(a){var b=this.C;b.b=a;b.na(a);this.C.show()}else a=this.C,a.b=null,a.na(null),this.C.hide()};
f.sD=function(a){if(this.element){this.D||(this.D=new ZE,this.D.W(this.element),R(this,this.D));var b=this.app.R(),c=a.message,d="embedded"==b.ba;a=a.messageKey;var e;"YTP_ERROR_GENERIC"!=a||b.yc?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==a?(e="https://get.adobe.com/flashplayer/",d=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=a||b.yc||(e="/html5",a="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(e="//support.google.com/youtube/?p=player_error1",a="YTP_ERROR_GENERIC_WITH_LINK_2");e&&
(c=bf(a,{BEGIN_LINK:'<br/><a href="'+e+'"'+(d?' target="_blank"':"")+">",END_LINK:"</a>"}));b=this.D;Tg(b.g);b.g=[];Ov(b.template,"content",new KE(c));this.D.show()}};f.rD=function(){this.D&&this.D.hide()};function yH(a){var b=a.app.getPlayerState(),c=a.app.getVideoData(),d="html5-bezel-pause";V(b,8)?c.Za&&!c.nb&&(d="html5-bezel-stop"):d="html5-bezel-play";a=a.V;a.show(d);a.b=L(u(a.g,a),10)}
f.Zf=function(){var a=this.app.R();wg(document.documentElement,"player-size",a.tb?"fullscreen":a.qd?"large":"small");qH.G.Zf.call(this)};function sH(a,b){if(!b.isEmpty()){var c=b.width,d=b.height,e=0,g=0;c/d>480/360?(e=d,g=360):(e=c,g=480);for(var c=Jb(e/g,.5,1),d=Oc("ytp-scalable-icon-shrink",a.element),h=0;h<d.length;h++)Tx(d[h],"transform","scale("+c+")");c=Jb(e/g*.33,.5,1);d=Oc("ytp-scalable-icon-grow",a.element);for(h=0;h<d.length;h++)Tx(d[h],"transform","scale("+c+")")}}
f.lk=function(a){this.B&&HG(this.B,a)};f.J=function(){Xg(this.element);gd(this.jb);qH.G.J.call(this);this.I=this.V=this.jb=null};function zH(a,b,c,d){IE.call(this,["div",["html5-endscreen",c||"base-endscreen","html5-stop-propagation"],["div","html5-endscreen-content"]]);this.aa="";this.b=this.template.b["html5-endscreen-content"];this.g=a;this.ab=b;this.Ac=!1;this.C=d||!1}w(zH,IE);zH.prototype.create=function(){this.Ac=!0};zH.prototype.destroy=function(){this.Ac=!1};function AH(a,b,c){var d=!!b.featured,e="1"==b.is_episodic;b=!!b.endscreen_autoplay_session_data;return c&&(d||e)||b||a.C&&a.Jl()}zH.prototype.Jl=function(){return!1};function BH(){W.call(this,["div","ytp-channel-banner-container",["img","ytp-channel-banner",{src:"{{banner}}"}]])}w(BH,W);function CH(){W.call(this,["div","ytp-subscribe-card",["img","ytp-author-image",{src:"{{image}}"}],["div","ytp-subscribe-card-right",["div","ytp-author-name","{{author}}"],["div","html5-subscribe-button-container"]]])}w(CH,W);function DH(a){var b=["div","ytp-watch-next-card",["div","ytp-watch-next-content",["div","ytp-watch-next-header",X(0,"YTP_WATCH_NEXT")],["img","ytp-watch-next-thumbnail",{src:"{{image}}"}],["div","ytp-watch-next-title","{{title}}"],["div","ytp-watch-next-views","{{view_count_string}}"],["div","ytp-watch-next-uploaded","{{uploaded}}"]]];CF.call(this,a,b)}w(DH,CF);function EH(a,b,c,d,e,g,h){a&&(a={video_id:a,html5:1,page_subscribe:b?1:0},g&&(a.authuser=g),h&&(a.pageid=h),Li("/get_video_metadata",{method:"GET",onError:d,onSuccess:c,Ih:a,context:e}))};function FH(a,b,c){zH.call(this,a,b,"subscribecard-endscreen");this.o=new BH;R(this,this.o);this.A=new Jv(["div","ytp-channel-curtain"]);R(this,this.A);this.k=new CH;R(this,this.k);(this.j=c?new DH(this.g.app.g.j):null)&&R(this,this.j);this.hide()}w(FH,zH);
FH.prototype.create=function(){FH.G.create.call(this);ed(this.b);this.o.W(this.b);this.A.W(this.b);this.k.W(this.b);if(this.j){var a=this.g.getVideoData().L;a&&AH(this,a[0])&&(this.j.Df(a[0]),this.j.W(this.b))}EH(this.g.getVideoData().videoId,!0,this.B,ca,this,this.g.R().Sa,this.g.R().$a)};
FH.prototype.B=function(a,b){if(this.Ac){var c=b.user_info,d=this.g.getVideoData();d&&(d.Ca=c.external_id);d=c.channel_logo_url||c.image_url;Ov(this.o.template,"banner",c.channel_banner_url);Ov(this.k.template,"image",d);Ov(this.k.template,"author",c.channel_title||c.username);this.j&&b.watch_next&&(this.j.Df(b.watch_next),this.j.W(this.b));c=c.subscription_button_html;this.k.template.b["html5-subscribe-button-container"].innerHTML=c?c:""}};function GH(a,b){return C(a.b.b,b)};function HH(a,b){var c=["div",["video-ads","html5-stop-propagation"],["div","video-ad-interstitial",["span","",X(0,"YTP_AD_RESUME_MESSAGE")]],["div","video-ad-status-bar",["div","video-ad-label",X(0,"YTP_ADVERTISEMENT")],["div","video-ad-time-left"],["div",["html5-progress-bar","html5-stop-propagation"],["div",["html5-ad-progress-list","html5-progress-list"]]]],["div","ad-container",{id:"osd-id"}]];W.call(this,c);this.X=b}w(HH,W);HH.prototype.g=null;HH.prototype.j=null;HH.prototype.b=null;
function IH(a){if(!a.g&&(a.g=a.template.b["ad-container"],a.X.R().Qb)){var b=GH(a.X.R(),"927622")?"ad-container-single-media-element-annotations":"ad-container-single-media-element";N(a.g,b)}return a.g}function JH(a){a.b&&(a.X.R().Qb?(O(a.b,"ad-video"),KH(a.X.app,a.b),a.b=null):(gd(a.b),Xt(a.b)))}
function LH(a){if(!a.j){if(a.X.R().dc){var b=ad("button");N(b,"video-click-tracking");dd(b,bf("YTP_VISIT_ADVERTISERS_SITE"));var c=ad("div");N(c,"video-click-tracking-container");c.appendChild(b);IH(a).appendChild(c)}else b=ad("div"),tg(b,["video-click-tracking","ad-video"]),IH(a).appendChild(b);a.j=b}return a.j}HH.prototype.J=function(){HH.G.J.call(this);this.b&&(KH(this.X.app,this.b),this.b=null);JH(this);ed(IH(this));ed(LH(this));this.j=this.g=null;delete this.X};
function MH(a){if(!a.b){var b;b=a.X.app;if(b.b.Qb){var c=Rf(b.k),d=dg(b.k);b.T=new Cf(c.x,c.y,d.width,d.height);NH(b.A);Yt(b.k,1);Xt(b.k);b=b.k}else b=DE.getTag(void 0);a.b=b;tg(a.b,["video-stream","ad-video"])}return a.b};function OH(){VE.call(this,84,84);this.g=this.width/2;this.k=this.height/2}w(OH,VE);var PH=3*Math.PI/2,QH=2*Math.PI;function RH(a,b){CF.call(this,a.app.g.j,["a","videowall-still",{tabIndex:0,style:"{{background}}"},["span","videowall-still-featured-label",X(0,"YTP_FEATURED")],["span","videowall-still-info",["span","videowall-still-info-bg"],["span","videowall-still-info-title","{{title}}"],["span","videowall-still-info-author","{{author}}"],["span","videowall-still-info-duration","{{duration}}"],["span","videowall-still-info-view-count","{{view_count_string}}"]],["div",["videowall-still-listlabel-episodic","videowall-still-listlabel"],
["div","videowall-still-listlabel-episodic-heading",X(0,"YTP_PLAYLIST_UP_NEXT")],["span","videowall-still-listlabel-episodic-icon"],["div","videowall-still-listlabel-episodic-info",["span","videowall-still-listlabel-episodic-index",["span","","{{episodic_index}}"]," / ",["span","","{{episodic_length}}"]],["span","","{{episodic_title}}"]]],["span",["videowall-still-listlabel-regular","videowall-still-listlabel"],["span","videowall-still-listlabel-icon"],X(0,"YTP_PLAYLIST"),["span","videowall-still-listlabel-length",
" (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix","videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],X(0,"YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.X=a;this.C=b;this.A={};this.k={};this.B=this.o=null;this.g=0;this.b=this.j=null;this.listen("click",this.wv);this.listen("keypress",this.xv)}w(RH,CF);f=RH.prototype;
f.Df=function(a,b){RH.G.Df.call(this,a,b);this.A=a.session_data;this.k=a.endscreen_autoplay_session_data;this.k||"1"!=a.endscreen_autoplay||(this.k={autonav:"1",feature:"related-auto",playnext:"1"});this.o=a.list;var c=!1,d=!1,e=!1;"1"==a.is_episodic?d=!0:this.o&&"RD"==ps(this.o).type?e=!0:this.o&&(c=!0);P(this.element,"videowall-still-featured",!!a.featured);P(this.element,"videowall-still-list",c);P(this.element,"videowall-still-episodic",d);P(this.element,"videowall-still-mix",e)};
f.select=function(a,b){SH(this);var c=this.X.app,d=this.videoId,e=a?this.k:this.A,g=this.o||void 0;if(!d&&!g)throw Error("Playback source is invalid");d={video_id:d,list:g};c.b.tb||"detailpage"!=c.b.ba?g?(c.O=!1,ft(c,d,void 0,void 0,void 0)):$s(c,d,1):(g=new Tr(d),g=TH(c.b,g,{}),q("yt.player.exports.navigate")(g,e,!0),c.gk(g,b))};
f.Ip=function(){var a=new Date-this.B,b=this.j,c=a/1E4;b.context.clearRect(0,0,b.width,b.height);b.context.beginPath();b.context.arc(b.g,b.k,42,0,QH);b.context.fillStyle="rgba(0, 0, 0, 0.6)";b.context.fill();var d=Math.sqrt(3)/2*35;b.context.save();b.context.fillStyle="#fff";b.context.translate(d,b.g);b.context.beginPath();b.context.lineTo(0,d/2);b.context.lineTo(28,0);b.context.lineTo(0,-d/2);b.context.closePath();b.context.fill();b.context.restore();b.context.beginPath();b.context.arc(b.g,b.k,40,
PH,c*QH+PH,!1);b.context.lineWidth=4;b.context.strokeStyle="#fff";b.context.stroke();b=Math.max(1E4-a,0);Ov(this.b,"autoplay",bf("YTP_AUTOPLAY_COUNTDOWN_2",{SECONDS_LEFT:Math.ceil(b/1E3)}));1E4<=a&&this.select(!0)};f.Rw=function(a){a.stopPropagation();this.g&&(this.C.log({cancelButtonClick:"1"}),SH(this))};function SH(a){a.g&&(Ze(a.g),a.g=0,P(a.element,"videowall-still-autoplay",!1))}f.wv=function(a){this.select(!1,a.ctrlKey);a.stopPropagation()};
f.xv=function(a){switch(a.keyCode){case 13:case 32:this.select(),a.preventDefault()}};f.J=function(){SH(this);RH.G.J.call(this)};function UH(a,b,c,d){zH.call(this,a,b,"videowall-endscreen",d);this.D=c;this.A=[];this.j=this.k=null;this.B=!1;this.o=0;this.ab.subscribe("onResize",this.JB,this);this.ab.subscribe("videodatachange",this.KB,this);this.hide()}w(UH,zH);UH.b="feature-video";f=UH.prototype;f.create=function(){UH.G.create.call(this);var a=this.g.getVideoData();a&&(this.j=a.L);VH(this)};f.destroy=function(){ed(this.b);this.j=[];UH.G.destroy.call(this)};f.Jl=function(){return this.g.getVideoData().pm};
f.show=function(){UH.G.show.call(this);var a=this.j&&this.j.length,b=this.C?this.Jl():!!WH(this,0).k;a&&b&&(a=WH(this,0),SH(a),a.b||(a.b=new Jv(["div",["videowall-still-listlabel-autoplay","videowall-still-listlabel"],["div","videowall-still-listlabel-autoplay-label",["span","videowall-still-listlabel-autoplay-label-message",X(0,"YTP_AUTOPLAY")]," ",["span","","{{autoplay}}"]]]),R(a,a.b),a.b.W(a.element),b=new VA(a.D),R(a,b),b.listen("click",a.Rw,a),b.W(a.b.K(),0),WA(b,"videowall-still-listlabel-autoplay-cancel"),
b.na(X(0,"YTP_CANCEL")),a.j=new OH,R(a,a.j),N(a.j.K(),"autoplay-play-canvas"),a.j.W(a.element)),P(a.element,"videowall-still-autoplay",!0),a.C.log({cancelButtonShow:"1"}),a.B=new Date,a.g=Ye(u(a.Ip,a),50),a.Ip())};f.hide=function(){UH.G.hide.call(this);var a=this.A[0];a&&SH(a)};
function VH(a){if(a.Ac){ed(a.b);var b=cg(a.K()),c=b.height,d;t:{if(sg(Ct(a.g),"ad-showing")&&(d=H("ad-container"))){d=dg(d).height;break t}d=0}b.height=c-d;d=Math.floor(b.width/158);var e=Math.floor(b.height/(158/1.45));if(1>e||1>d)a.o=0;else{var g=a.j.length,c=!1;AH(a,a.j[0],2<e&&2<d)&&(c=!0,g+=3);P(a.b,UH.b,c);for(var h=0,k=0,l=Nb(b),p=!0;0<=g&&(h<d||k<e);){var s=g>=k,t=g>=h;if(p&&t||!s&&t)g-=h,k++;else if(s)g-=k,h++;else break;p=h/k*1.45>l}a.B=p;d=new G(h,k);a.B?(e=1/d.width,e*=b.width,g=e/1.45):
(e=1/d.height,g=b.height*e,e=1.45*g);e=new G(Math.floor(e),Math.floor(g));a.o=d.width*d.height;c&&(a.o-=3);a.k&&gC(a.k);c=XH(e);g={gd:a.k};a.k=fC(".videowall-still",c,g);c=XH(e.clone().scale(2));g.gd=a.k;h="."+UH.b+" .videowall-still:first-child";fC(h,c,g);c=e.width*d.width;d=e.height*d.height;$f(a.b,c,d);Pf(a.b,(b.width-c)/2,(b.height-d)/2)}b=0;for(c=a.o;b<c;b++)WH(a,b).W(a.b)}}function WH(a,b){var c=a.A[b];c||(c=new RH(a.g,a.D),R(a,c),a.A[b]=c);c.Df(a.j[b],0==b&&a.j[0].featured);return c}
function XH(a){return["width:"+a.width+"px","height:"+a.height+"px"]}f.JB=function(){VH(this)};f.KB=function(){var a=this.g.getVideoData().L;this.j!=a&&(this.j=a,VH(this))};function YH(a){ru.call(this,a);af({});this.va="endscreen";this.gc="end";this.g=null;var b=a.R();ZH(a)?this.g=new UH(this.b,this.M,this,b.b.za):b.dh?(a=b.b.B,b=new FH(this.b,this.M,a),a&&Q(b.j.K(),"click",u(this.bz,this)),this.g=b):this.g=new zH(this.b,this.M);this.g.W(Ct(this.b))}w(YH,ru);function $H(a){return aI(a.R())&&1==Ws(a.app).getPlayerType()}function ZH(a){a=a.R();return a.Jc&&!a.dh}f=YH.prototype;f.Ja=function(a){return $H(a)};
f.create=function(){YH.G.create.call(this);bI(this);this.b.getVideoData().subscribe("dataupdated",this.Cr,this)};f.destroy=function(){this.b.getVideoData().ha("dataupdated",this.Cr,this);su(this);this.g.destroy();YH.G.destroy.call(this)};f.load=function(){YH.G.load.call(this);this.g.show();if(this.b.R().dh&&.01>Math.random()){var a=this.b.R().b.B;this.log({trailerEndscreenShow:1,watchNext:a?1:0})}};f.unload=function(){YH.G.unload.call(this);this.g.hide()};
f.Ec=function(a){YH.G.Ec.call(this,a);var b=this.b.getVideoData(),c=!ZH(this.b)||!(!b.L||!b.L.length);this.b.R();b=ls(b,"ypc_module");c&&!b&&("preload"==a.getId()?this.g.create():cI(this.b.app)||this.load())};f.kd=function(a){"load"==a.getId()&&this.loaded&&this.unload();YH.G.kd.call(this,a)};f.Cr=function(){su(this);bI(this)};f.bz=function(a){var b=this.g.j.videoId,b=dI(this.b.R(),b,null);wu(this,b,a.ctrlKey)};
function bI(a){var b=Math.max(1E3*(a.b.getVideoData().Oa-10),0),b=new hu(b,2147483647,{id:"preload"}),c=new hu(2147483647,2147483647,{id:"load",priority:6});a.Kf(b,c)}function eI(a){return $H(a)?new YH(a):null};function fI(a){qf("/gen_204?"+a,void 0)}function gI(a,b,c,d,e,g){var h={};b&&(h.v=b);c&&(h.list=c);d&&(h.url=d);a={name:a,locale:e,feature:g};for(var k in h)a[k]=h[k];h=ae("/sharing_services",a);qf(h)};function hI(a){var b=document.location.protocol+"//"+document.domain+"/post_login",b=$d(b,"mode","subscribe"),b=$d("/signin?context=popup","next",b),b=$d(b,"feature","sub_button");if(b=window.open(b,"loginPopup","width=375,height=440,resizable=yes,scrollbars=yes",!0)){var c=Xh("LOGGED_IN",function(b){Zh(We("LOGGED_IN_PUBSUB_KEY"));Ue("LOGGED_IN",!0);a(b)});Ue("LOGGED_IN_PUBSUB_KEY",c);b.moveTo((screen.width-375)/2,(screen.height-440)/2)}}ba("yt.pubsub.publish",$h,void 0);function iI(){kF.call(this)}w(iI,kF);da(iI);f=iI.prototype;f.Kd="subscription-button";
f.register=function(){mF(this,"click",this.ut);lF(this,"subscription-subscribe-loading",this.tt);lF(this,"subscription-subscribe-loaded",this.qt);lF(this,"subscription-unsubscirbe-loading",this.tt);lF(this,"subscription-unsubscribe-loaded",this.qt);lF(this,"subscription-subscribe-success",this.ZD);lF(this,"subscription-unsubscribe-success",this.$D);lF(this,"subscription-enable-ypc",this.YD);lF(this,"subscription-disable-ypc",this.XD)};
f.ut=function(a){var b=this.Z(a,"href"),c;c=(c=We("PLAYER_CONFIG"))&&c.args&&void 0!==c.args.authuser?!0:!(!We("SESSION_INDEX")&&!We("LOGGED_IN"));if(b)a=this.Z(a,"target")||"_self",window.open(b,a);else if(c){b=this.Z(a,"channel-external-id");c=this.Z(a,"sessionlink");var d;if(this.Z(a,"ypc-enabled")){d=this.Z(a,"ypc-item-type");var e=this.Z(a,"ypc-item-id"),g=this.Z(a,"ypc-offers-url");d={itemType:d,itemId:e,offersUrl:g,subscriptionElement:a}}else d=null;e=this.Z(a,"parent-url");this.Z(a,"is-subscribed")?
(g=this.Z(a,"subscription-id"),$h("subscription-unsubscribe",b,g,d,a,c,e)):$h("subscription-subscribe",b,d,a,c,e)}else jI(this,a)};f.tt=function(a){this.ng(a,this.Bt,!0)};f.qt=function(a){this.ng(a,this.Bt,!1)};f.ZD=function(a,b){this.ng(a,this.Ct,!0,b)};f.$D=function(a){this.ng(a,this.Ct,!1)};f.YD=function(a){this.ng(a,this.oE)};f.XD=function(a){this.ng(a,this.nE)};
f.Ct=function(a,b,c){b?(wg(a,"is-subscribed","true"),c&&wg(a,"subscription-id",c)):(this.removeData(a,"is-subscribed"),this.removeData(a,"subscription-id"));kI(this,a)};f.Bt=function(a,b){var c=wd(a,"yt-uix-button-subscription-container");P(c,"yt-subscription-button-disabled-mask-container",b);a.setAttribute("aria-busy",b?"true":"false");a.disabled=b};
function kI(a,b){var c=a.Z(b,"style-type"),d=!!a.Z(b,"is-subscribed"),c="-"+c,e="yt-uix-button-subscribed"+c;P(b,"yt-uix-button-subscribe"+c,!d);P(b,e,d);a.Z(b,"subscriber-count-tooltip")&&!a.Z(b,"subscriber-count-show-when-subscribed")&&(c=Y(oF.getInstance()),P(b,c,!d),b.title=d?"":a.Z(b,"subscriber-count-title"));d?L(function(){N(b,"hover-enabled")},1E3):O(b,"hover-enabled")}
f.oE=function(a){var b=!!this.Z(a,"ypc-item-type"),c=!!this.Z(a,"ypc-item-id"),d=!!this.Z(a,"ypc-offers-url");!this.Z(a,"ypc-enabled")&&b&&c&&d&&(N(a,"ypc-enabled"),wg(a,"ypc-enabled","true"))};f.nE=function(a){this.Z(a,"ypc-enabled")&&(O(a,"ypc-enabled"),this.removeData(a,"ypc-enabled"))};function lI(a,b){var c=Oc(Y(a));return hb(c,function(a){return b==this.Z(a,"channel-external-id")},a)}f.OE=function(a,b,c){var d=yb(arguments,2);z(a,function(a){b.apply(this,ub(a,d))},this)};
f.ng=function(a,b,c){var d=lI(this,a),d=ub([d],yb(arguments,1));this.OE.apply(this,d)};function jI(a,b){var c=u(function(a){a.discoverable_subscriptions&&Ue("SUBSCRIBE_EMBED_DISCOVERABLE_SUBSCRIPTIONS",a.discoverable_subscriptions);this.ut(b)},a);hI(c)};function mI(a,b,c){b||(b={});var d=c||window;c="undefined"!=typeof a.href?a.href:String(a);a=b.target||a.target;var e=[],g;for(g in b)switch(g){case "width":case "height":case "top":case "left":e.push(g+"="+b[g]);break;case "target":case "noreferrer":break;default:e.push(g+"="+(b[g]?1:0))}g=e.join(",");if(b.noreferrer){if(b=d.open("",a,g))rc&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=null,c=Ca(c),b.document.write('<META HTTP-EQUIV="refresh" content="0; url='+c+'">'),b.document.close()}else b=
d.open(c,a,g);return b}function nI(a,b){var c;c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;(c=mI(a,c))?(c.opener||(c.opener=window),c.focus()):c=null;return!c};function oI(a){W.call(this,["div","ytp-action-buttons"]);this.j=new VA(a,"ytp-button-info",X(0,"YTP_MORE_INFO"));R(this,this.j);this.j.W(this.element);YA(this.j,3500);this.k=new VA(a,"ytp-button-share",X(0,"YTP_SHARE"));R(this,this.k);this.k.W(this.element);YA(this.k,3400);this.b=new VA(a,"ytp-button-dislike",X(0,"YTP_DISLIKE"));R(this,this.b);YA(this.b,3300);wg(this.b.K(),"tooltip-below","1");a.Af(this.b.K(),"YTP_DISLIKE_AS",X(0,"YTP_DISLIKE"));this.g=new VA(a,"ytp-button-like",X(0,"YTP_LIKE"));
R(this,this.g);YA(this.g,3200);wg(this.g.K(),"tooltip-below","1");a.Af(this.g.K(),"YTP_LIKE_AS",X(0,"YTP_LIKE"))}w(oI,W);function pI(){W.call(this,["div","ytp-sentiment-display",["div","ytp-sentiment-bar",["div","ytp-sentiment-bar-likes"],["div","ytp-sentiment-bar-dislikes"]]]);this.g=this.template.b["ytp-sentiment-bar-likes"];this.b=this.template.b["ytp-sentiment-bar-dislikes"]}w(pI,W);pI.prototype.J=function(){this.b=this.g=null;pI.G.J.call(this)};function qI(){var a=["button","ytp-button-share-more",{tabIndex:3800},["div",["ytp-button-share-more-icon","yt-uix-button-icon-new-window"]],["span","ytp-button-share-more-content",X(0,"YTP_MORE")]];W.call(this,a)}w(qI,W);function rI(a,b,c,d){VA.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);N(this.element,"share-service-icon-sharebar");YA(this,3700)}w(rI,VA);function sI(){W.call(this,["div","ytp-share-url-container",{tabIndex:3600},["input","ytp-share-url"]]);this.b=this.template.b["ytp-share-url"]}w(sI,W);sI.prototype.J=function(){this.b=null;sI.G.J.call(this)};function tI(a,b){var c=["div","share-bar",["div","share-bar-content"],["div","share-bar-playlist",["input",["ytp-share-bar-checkbox","ytp-share-bar-checked"],{type:"checkbox",checked:"checked"}],["div","share-bar-playlist-message",X(0,"YTP_SHARE_WITH_PLAYLIST")]]];IE.call(this,c);this.k=b;this.B=a;this.b=null;this.o=[];this.j=this.g=null;this.A=new VA(this.B,"yt-uix-button-icon-share-bar-close",X(0,"YTP_CLOSE"),X(0,"YTP_CLOSE"));this.A.W(this.template.b["share-bar-content"]);YA(this.A,3900)}
w(tI,IE);function uI(a){var b={action_get_share_info:1,feature:"player_embedded",video_id:a.j?a.j.videoId:void 0};a.k.Sa&&(b.authuser=a.k.Sa);a.k.$a&&(b.pageid=a.k.$a);var c;vI(a)?(c=H("ytp-share-bar-checkbox"),c=!c||sg(c,"ytp-share-bar-checked")):c=!1;c&&(b.list=vI(a));Li("/share_ajax",{context:a,method:"GET",onError:a.F,onSuccess:a.C,Ih:b})}
tI.prototype.C=function(a,b){if(!this.ga()){wI(this);var c=this.template.b["share-bar-content"];this.b=new sI;R(this,this.b);Qc(this.b.b,{value:b.url_short});this.b.W(c);for(var d=b.links,e=0;e<Math.min(3,d.length);e++){var g=new rI(this.B,d[e].name,d[e].sname,d[e].img);R(this,g);g.W(c);g.listen("click",qa(nI,d[e].url,{}));this.o.push(g)}this.g=new qI;R(this,this.g);this.g.listen("click",u(this.I,this,b.more));this.g.W(c);cz(this,this.template.b["ytp-share-bar-checkbox"],"click",this.D,this);this.H("menu_show")}};
tI.prototype.F=function(){};tI.prototype.I=function(a){mI(a)};function vI(a){return a.j?a.j.La:void 0}tI.prototype.D=function(){var a=H("ytp-share-bar-checkbox");vg(a,"ytp-share-bar-checked");uI(this)};function wI(a){a.b&&(a.b.bd(),a.b=null);a.g&&(a.g.bd(),a.g=null);z(a.o,function(a){gd(a.K())});a.o=[]};function xI(a,b){IE.call(this,["div",["html5-info-bar","html5-stop-propagation"],["div","html5-title",["div",["html5-like-dislike-buttons","hid"]],["div","","{{titlelogobutton}}"],["div","html5-title-text-wrapper","{{titlebutton}}"]],["div","html5-info-panel",["div","html5-info-panel-loading-icon"],["div",["html5-info-panel-content","hid"],["div","",["div","html5-author-img",["img","",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]],["div","html5-author-info",
["div","html5-author-name"]],["div","html5-subscribe-button-container"]],["div","",["div","html5-video-info",["div","html5-view-count"]],["p","html5-description-text",{dir:"auto"}]]]]]);this.j=b;this.B=a;this.M=new AF(this.K());R(this,this.M);this.b=null;var c=this.template.b["html5-title"];this.A=new VA(this.B);N(this.A.K(),"html5-title-text");R(this,this.A);YA(this.A,3100);this.A.listen("click",this.Vk,this);Ov(this.template,"titlebutton",this.A);var d=new VA(this.B,"html5-title-logo",X(0,"YTP_URL_NAVIGATE"),
X(0,"YTP_URL_NAVIGATE"));R(this,d);d.na("YouTube");YA(d,3550);wg(d.K(),"tooltip-below","1");d.listen("click",this.Vk,this);Ov(this.template,"titlelogobutton",d);this.k=new oI(this.B);R(this,this.k);this.k.W(c,1);this.k.k.listen("click",this.pi,this);this.k.j.listen("click",this.Jk,this);this.j.yc&&this.k.j.hide();this.o=null;this.F=!1;this.g=null}w(xI,IE);f=xI.prototype;f.update=function(a){this.b=a;if(this.g){var b=this.g;b.j=a;uI(b)}a=a.title||"";this.A.na(a);XA(this.A,a)};f.Vk=function(){this.Ht()};
f.Jk=function(){if(!this.F){this.F=!0;EH(this.b?this.b.videoId:void 0,!1,this.tA,ca,this,this.j.Sa,this.j.$a);if(!this.o){var a=this.template.b["html5-info-panel-loading-icon"];this.o=new bF;R(this,this.o);N(this.o.element,"html5-info-panel-loader");this.o.W(a);R(this,this.o)}this.o.show()}O(this.element,"show-share");return vg(this.element,"show-more-info")};
f.pi=function(a){O(this.element,"show-more-info");if("detailpage"!=this.j.ba){if(!this.g){var b=this.g=new tI(this.B,this.j);b.j=this.b;uI(b);this.g.W(this.template.b["html5-info-bar"]);this.g.A.listen("click",this.pi,this);this.g.subscribe("menu_show",u(this.uq,this))}vg(this.element,"show-share");this.uq();a&&a.stopPropagation();P(this.element,"share-with-playlist",!!vI(this.g))}};f.uq=function(){sg(this.element,"show-share")&&this.g.b&&this.g.b.K().focus()};
f.tA=function(a,b){if(!this.ga()){var c=this.template.b["html5-info-panel"],d=b.user_info;this.b&&(this.b.Ca=d.external_id);var e=H("html5-author-img",c).getElementsByTagName("img")[0];e.src=d.image_url;cz(this,e,"click",this.Tq);e=H("html5-author-name",c);od(e,d.channel_title||d.public_name||d.username);cz(this,e,"click",this.Tq);var e=b.video_info,g=H("html5-subscribe-button-container",c);g.innerHTML=d.subscription_button_html?d.subscription_button_html:"";d=iI.getInstance();(d=H(Y(d),g))&&this.B.Af(d,
"YTP_SUBSCRIBE_AS");H("html5-view-count",c).innerHTML=e.view_count_string;var d=parseInt(e.likes_count_unformatted,10),g=parseInt(e.dislikes_count_unformatted,10),h=new pI;R(this,h);var k=0,l=0;0<d+g&&(k=100*d/(d+g),l=100*g/(d+g));h.g.style.width=k+"%";h.b.style.width=l+"%";h.W(H("html5-video-info",c),2);d=H("html5-description-text",c);od(d,e.description);this.o.hide();c=H("html5-info-panel-content",c);Px(c)}};
f.Tq=function(){var a=this.j,b=this.b,c="",c=b.Ca?a.qb+"channel/UC"+b.Ca:a.qb+"user/"+b.th;this.pn(c)};f.pn=function(a){mI(a)};f.Ht=function(){this.pn(TH(this.j,this.b))};f.J=function(){this.b=this.j=null;xI.G.J.call(this)};function yI(){W.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}w(yI,W);yI.prototype.Qi=function(a){Ov(this.template,"index",a+1)};function zI(a){UC.call(this,a,"ytp-button-expand",X(0,"YTP_ST_EXPAND"),"ytp-button-collapse",X(0,"YTP_ST_COLLAPSE"));this.na([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",X(0,"YTP_PLAYLIST")]])}w(zI,UC);function AI(a){W.call(this,["div","ytp-playlist-tray-controller"]);this.b=new zI(a);this.b.W(this.template.K());R(this,this.b);this.g=new yI;this.g.W(this.template.K());R(this,this.g)}w(AI,W);function BI(a,b){W.call(this,["div","ytp-playlist-tray-item",["span","ytp-playlist-tray-item-index","{{index}}"],["span","ytp-playlist-tray-item-now-playing","\u25b6"],["img","ytp-playlist-tray-item-thumbnail",{src:"{{image}}"}],["span","ytp-playlist-tray-item-title","{{title}}"],["span","ytp-playlist-tray-item-author","{{author}}"]]);this.b=b;this.template.update({index:b+1,title:a.title,author:a.th,image:DB(a.videoId,"default.jpg")})}w(BI,W);
BI.prototype.Qi=function(a){P(this.element,"ytp-playlist-tray-item-current",this.b==a)};function CI(){IE.call(this,["div","ytp-playlist-tray-tray"]);this.b=null;this.g=[]}w(CI,IE);function DI(a,b){a.b&&a.b.ha("shuffle",a.j,a);a.b=b;a.b.subscribe("shuffle",a.j,a);a.j()}CI.prototype.j=function(){Qh(this.g);this.g=[];ed(this.element);for(var a=0;a<=this.b.sc-1;++a){var b=Bs(this.b,a);b&&(b=new BI(b,a),b.Qi(this.b.Ga),this.g.push(b),b.listen("click",u(this.k,this,a)),b.W(this.element))}};CI.prototype.k=function(a){this.H("playvideoat",a)};
CI.prototype.J=function(){Qh(this.g);this.g=[];ed(this.element);CI.G.J.call(this)};function EI(a){ru.call(this,a);var b=Ct(a);this.B=a.app.g.j;this.o=!1;this.j=null;this.A=H("ytp-button-playlist",b);Q(this.A,"click",u(this.kp,this));this.g=this.k=null}w(EI,ru);f=EI.prototype;f.va="playlist";
f.create=function(){EI.G.create.call(this);var a=this.b.hc();this.k=new Jv(["div",["ytp-playlist-tray-container","html5-stop-propagation"]]);Bt(this.b,this.k.K());this.j=new CI;this.j.subscribe("playvideoat",this.Gp,this);this.j.W(this.k.K(),0);this.g=new AI(this.B);this.g.W(H("html5-title",void 0),0);this.g.b.listen("click",this.kp,this);this.subscribe("fullscreentoggled",this.fq,this);this.subscribe("videodatachange",this.hq,this);this.subscribe("clearvideooverlays",this.gq,this);this.Qg();a.subscribe("shuffle",
this.Qg,this)};f.Qg=function(){var a=this.b.vp(),b=this.g.g;null!=a?b.show():b.hide();this.g.g.Qi(a);a=this.g.g;b=this.b.hc();Ov(a.template,"length",b.sc)};f.destroy=function(){EI.G.destroy.call(this);var a=this.b.hc();a&&a.ha("shuffle",this.Qg,this);this.ha("fullscreentoggled",this.fq,this);this.ha("videodatachange",this.hq,this);this.ha("clearvideooverlays",this.gq,this);gd(this.k.K());this.j.dispose();this.j=null;this.k.dispose();this.k=null;gd(this.g.K());this.g.dispose();this.g=null};
f.load=function(){EI.G.load.call(this);var a=this.b.hc();this.o||(DI(this.j,a),this.Qg(),this.o=!0);for(var a=this.j,b=0;b<a.g.length;b++)a.g[b].Qi(a.b.Ga);WC(this.g.b)};f.unload=function(){EI.G.unload.call(this);this.o=!1;XC(this.g.b)};f.gq=function(){this.loaded&&this.unload()};f.Gp=function(a){this.b.zp(a);this.unload()};f.kp=function(){this.loaded?this.unload():(this.H("command_clear_video_overlays"),this.load())};f.hide=function(){var a=H("ytp-playlist-tray-info");O(a,"show-more-info");O(a,"show-share")};
f.fq=function(a){var b=this.b.R().ba;this.loaded&&!a&&"detailpage"==b&&this.unload()};f.hq=function(){var a=this.b.hc();DI(this.j,a);this.Qg()};EI.Ja=function(a){return!!a.hc()};EI.prototype.Ja=function(a){return EI.Ja(a)};EI.prototype.Om=function(a){return!EI.Ja(a)};EI.b=function(a){return EI.Ja(a)?new EI(a):null};EI.prototype.J=function(){this.j.ha("playvideoat",this.Gp,this);Xg(this.A);EI.G.J.call(this)};function FI(a,b){this.b=a;this.g=!!b}w(FI,Mh);
function GI(a,b,c){if(c)if(a.g)HI(b,c);else{var d;a.b&&(d=II(a.b));d&&b.length?(d=[d,"/cache/videos?q=",b.join("&q=")].join(""),Li(d,{format:"JSON",method:"GET",context:a,timeout:2E3,onSuccess:function(a,d){var h=0;d&&d.ids&&(h=d.ids.length);JI("search","success",{"num-requested":b.length,"num-cached":h});c(d)},onError:function(){JI("search","error",{"num-requested":b.length});c({})},kh:function(){JI("search","timeout",{"num-requested":b.length});KI("__notfound__");c({})}})):c({})}}
function LI(a,b,c){if(c)if(a.g)c({id:b,fmt_list:[{itag:18,lmt:14200992E5}]});else{var d;a.b&&(d=II(a.b));d&&b?(d=[d,"cache/videos",b,"metadata"].join("/"),Li(d,{format:"JSON",method:"GET",context:a,timeout:600,onSuccess:function(a,d){c(d);JI("meta","success",{v:b})},onError:function(){JI("meta","error",{v:b});c({})},kh:function(){JI("meta","timeout",{v:b});KI("__notfound__");c({})}})):c({})}}function JI(a,b,c){a={a:"spacecast",module:"cache",request:a,status:b};ec(a,c);fI(Zd(a))}
function HI(a,b){a.length?b({ids:a}):b({})}FI.prototype.J=function(){this.b=null;FI.G.J.call(this)};function MI(a){(this.b=a)&&KI("http://"+a)}w(MI,Mh);function II(a){var b;(b=(b=ui("yt-spacecast-uri"))&&b.hasOwnProperty("uri")?b.uri:null)?"__notfound__"==b&&(b=null):b=a.b?"http://"+a.b:null;return b}MI.prototype.reset=function(){vi("yt-spacecast-uri")};function KI(a){var b=ui("yt-spacecast-uri");b||(b={});a?b.uri=a:delete b.uri;ri("yt-spacecast-uri",b)};var NI=q("yt.prefs.UserPrefs.prefs_")||{};ba("yt.prefs.UserPrefs.prefs_",NI,void 0);function OI(){kF.call(this)}w(OI,kF);f=OI.prototype;f.ld=function(a){var b=kF.prototype.ld.call(this,a);return b?b:a};f.Z=function(a,b){var c=OI.G.Z.call(this,a,b);return c?c:(c=OI.G.Z.call(this,a,"card-config"))&&(c=q(c))&&c[b]?c[b]:null};
f.show=function(a){var b=this.ld(a);if(b){N(b,Y(this,"active"));var c=PI(this,a,b);if(c){c.cardTargetNode=a;c.cardRootNode=b;QI(this,a,c);var d=Y(this,"card-visible"),e=this.Z(a,"card-delegate-show")&&this.Z(b,"card-action");this.ag(b,"card-action",a);this.g=a;Qx(c);L(u(function(){e||Px(c);RI(c);N(c,d)},this),10)}}};
function PI(a,b,c){var d=c||b,e=Y(a,"card");c=a.nd(d);var g=Nc(Y(a,"card")+Cg(d));if(g)return a=H(Y(a,"card-body"),g),md(a,c)||(gd(c),a.appendChild(c)),g;g=document.createElement("div");g.id=Y(a,"card")+Cg(d);g.className=e;(d=a.Z(d,"card-class"))&&tg(g,d.split(/\s+/));d=document.createElement("div");d.className=Y(a,"card-border");b=a.Z(b,"orientation")||"horizontal";e=document.createElement("div");e.className="yt-uix-card-border-arrow yt-uix-card-border-arrow-"+b;var h=document.createElement("div");
h.className=Y(a,"card-body");a=document.createElement("div");a.className="yt-uix-card-body-arrow yt-uix-card-body-arrow-"+b;gd(c);h.appendChild(c);d.appendChild(a);d.appendChild(h);g.appendChild(e);g.appendChild(d);document.body.appendChild(g);return g}
function QI(a,b,c){var d=a.Z(b,"orientation")||"horizontal",e=a.Z(b,"position"),g=!!a.Z(b,"force-position"),h=a.Z(b,"position-fixed"),d="horizontal"==d,k="bottomright"==e||"bottomleft"==e,l="topright"==e||"bottomright"==e,p,s;l&&k?(s=7,p=4):l&&!k?(s=6,p=5):!l&&k?(s=5,p=6):(s=4,p=7);var t=Wf(document.body),e=Wf(b);t!=e&&(s^=2);var y;d?(e=b.offsetHeight/2-12,y=new F(-12,b.offsetHeight+6)):(e=b.offsetWidth/2-6,y=new F(b.offsetWidth+6,-12));var E=dg(c),e=Math.min(e,(d?E.height:E.width)-24-6);6>e&&(e=
6,d?y.y+=12-b.offsetHeight/2:y.x+=12-b.offsetWidth/2);var A=null;g||(A=10);E=Y(a,"card-flip");a=Y(a,"card-reverse");P(c,E,l);P(c,a,k);A=dF(b,s,c,p,y,null,A);!g&&A&&(A&48&&(l=!l,s^=2,p^=2),A&192&&(k=!k,s^=1,p^=1),P(c,E,l),P(c,a,k),dF(b,s,c,p,y));h&&(b=parseInt(c.style.top,10),g=Uc(document).y,Tx(c,"position","fixed"),Tx(c,"top",b-g+"px"));t&&(b=fg(c),g=Sc(window),c.style.left="",c.style.right=g.width-b.left-b.width+"px");b=H("yt-uix-card-body-arrow",c);g=H("yt-uix-card-border-arrow",c);d=d?k?"top":
"bottom":!t&&l||t&&!l?"left":"right";b.setAttribute("style","");g.setAttribute("style","");b.style[d]=e+"px";g.style[d]=e+"px";k=H("yt-uix-card-arrow",c);l=H("yt-uix-card-arrow-background",c);k&&l&&(c="right"==d?dg(c).width-e-13:e+11,e=c/Math.sqrt(2),k.style.left=c+"px",k.style.marginLeft="1px",l.style.marginLeft=-e+"px",l.style.marginTop=e+"px")}
f.hide=function(a){if(a=this.ld(a)){var b=Nc(Y(this,"card")+Cg(a));b&&(O(a,Y(this,"active")),O(b,Y(this,"card-visible")),Qx(b),this.g=null,b.cardTargetNode=null,b.cardRootNode=null,b.cardMask&&(gd(b.cardMask),b.cardMask=null))}};function SI(a){a.g&&a.hide(a.g)}f.BB=function(a,b){var c=this.ld(a);if(c){if(b){var d=this.nd(c);if(!d)return;d.innerHTML=b}sg(c,Y(this,"active"))&&(c=PI(this,a,c),QI(this,a,c),Px(c),RI(c))}};
f.nd=function(a){var b=a.cardContentNode;if(!b){var c=Y(this,"content"),d=Y(this,"card-content");(b=(b=this.Z(a,"card-id"))?Nc(b):H(c,a))||(b=document.createElement("div"));var e=b;O(e,c);N(e,d);a.cardContentNode=b}return b};
function RI(a){var b=a.cardMask;b||(b=document.createElement("iframe"),b.src='javascript:""',tg(b,["yt-uix-card-iframe-mask"]),a.cardMask=b);b.style.position=a.style.position;b.style.top=a.style.top;b.style.left=a.offsetLeft+"px";b.style.height=a.clientHeight+"px";b.style.width=a.clientWidth+"px";document.body.appendChild(b)};function TI(){kF.call(this);this.b={};this.j={}}w(TI,OI);da(TI);f=TI.prototype;f.Kd="clickcard";f.register=function(){mF(this,"click",this.uE,"target");mF(this,"click",this.tE,"close")};f.uE=function(a,b,c){b=ud(c.target,"button");b&&b.disabled||(a=(b=this.Z(a,"card-target"))?Nc(b):a,b=this.ld(a),this.Z(b,"disabled")||(sg(b,Y(this,"active"))?(this.hide(a),O(b,Y(this,"active"))):(this.show(a),N(b,Y(this,"active")))))};
f.show=function(a){TI.G.show.call(this,a);var b=this.ld(a);if(!yg(b,"click-outside-persists")){var c=la(a);if(this.b[c])return;b=Q(document,"click",u(this.AB,this,a));this.b[c]=b}a=Q(window,"resize",u(this.BB,this,a,void 0));this.j[c]=a};f.hide=function(a){TI.G.hide.call(this,a);a=la(a);var b=this.b[a];b&&(Tg(b),this.b[a]=null);if(b=this.j[a])Tg(b),this.j[a]=null};f.AB=function(a,b){wd(b.target,"yt-uix"+(this.Kd?"-"+this.Kd:"")+"-card")||this.hide(a)};f.tE=function(a){(a=wd(a,Y(this,"card")))&&this.hide(a.cardTargetNode)};function UI(){kF.call(this)}w(UI,OI);da(UI);f=UI.prototype;f.Kd="hovercard";f.register=function(){mF(this,"mouseenter",this.iE,"target");mF(this,"mouseleave",this.kE,"target");mF(this,"mouseenter",this.jE,"card");mF(this,"mouseleave",this.lE,"card")};
f.iE=function(a){if(VI!=a){VI&&(this.hide(VI),VI=null);var b=u(this.show,this,a),c=parseInt(this.Z(a,"delay-show"),10),b=L(b,-1<c?c:200);wg(a,"card-timer",b.toString());VI=a;a.alt&&(wg(a,"card-alt",a.alt),a.alt="");a.title&&(wg(a,"card-title",a.title),a.title="")}};
f.kE=function(a){var b=parseInt(this.Z(a,"card-timer"),10);M(b);this.ld(a).isCardHidable=!0;b=parseInt(this.Z(a,"delay-hide"),10);b=-1<b?b:200;L(u(this.CD,this,a),b);if(b=this.Z(a,"card-alt"))a.alt=b;if(b=this.Z(a,"card-title"))a.title=b};f.CD=function(a){this.ld(a).isCardHidable&&(this.hide(a),VI=null)};f.jE=function(a){a&&(a.cardRootNode.isCardHidable=!1)};f.lE=function(a){a&&this.hide(a.cardTargetNode)};var VI=null;function WI(a,b,c){this.Ic=a;this.o=!1;this.g=new Rh;this.A=Ug(this.Ic,"click",u(this.GA,this),"yt-dialog-dismiss");XI(this);this.j=b;this.k=c}var YI={LOADING:"loading",CE:"content",DK:"working"};function ZI(a,b){a.ga()||a.g.subscribe("post-all",b)}function XI(a){a=H("yt-dialog-fg-content",a.Ic);var b=[];Ob(YI,function(a){b.push("yt-dialog-show-"+a)});ug(a,b);N(a,"yt-dialog-show-content")}f=WI.prototype;
f.show=function(){if(!this.ga()){document.activeElement&&document.activeElement!=document.body&&document.activeElement.blur();this.b||(this.b=Nc("yt-dialog-bg"),this.b||(this.b=ad("div"),this.b.id="yt-dialog-bg",this.b.className="yt-dialog-bg",document.body.appendChild(this.b)));var a;t:{var b=window,c=b.document;a=0;if(c){a=c.body;var d=c.documentElement;if(!a&&!d){a=0;break t}b=Sc(b).height;if(Tc(c)&&d.scrollHeight)a=d.scrollHeight!=b?d.scrollHeight:d.offsetHeight;else{var c=d.scrollHeight,e=d.offsetHeight;
d.clientHeight!=e&&(c=a.scrollHeight,e=a.offsetHeight);a=c>b?c>e?c:e:c<e?c:e}}}this.b.style.height=a+"px";Px(this.b);Ig(this.Ic);a=$I(this);aJ(a);this.j||Q(document,"keydown",u(this.sq,this));a=this.Ic;d=Xh("player-added",this.uA,this);wg(a,"player-ready-pubsub-key",d);this.k&&Q(document,"click",u(this.tq,this));Px(this.Ic);N(document.body,"yt-dialog-active");SI(TI.getInstance());SI(UI.getInstance())}};function bJ(){var a=Oc("yt-dialog");return jb(a,function(a){return Ox(a)})}f.uA=function(){Ig(this.Ic)};
function $I(a){var b=Pc("iframe",null,a.Ic);z(b,function(a){var b=yg(a,"onload");b&&(b=q(b))&&Q(a,"load",b);if(b=yg(a,"src"))a.src=b},a);return vb(b)}function aJ(a){z(document.getElementsByTagName("iframe"),function(b){-1==fb(a,b)&&N(b,"iframe-hid")})}function cJ(){var a=Oc("iframe-hid");z(a,function(a){O(a,"iframe-hid")})}f.GA=function(a){a=a.currentTarget;a.disabled||(a=yg(a,"action")||"",dJ(this,a))};
function dJ(a,b){if(!a.ga()){a.g.H("pre-all");a.g.H("pre-"+b);Qx(a.Ic);SI(TI.getInstance());SI(UI.getInstance());bJ()||(Qx(a.b),O(document.body,"yt-dialog-active"),Jg(),cJ());a.j||Wg(document,"keydown",u(a.sq,a));a.k&&Wg(document,"click",u(a.tq,a));var c=a.Ic;if(c){var d=yg(c,"player-ready-pubsub-key");d&&(Zh(d),zg(c,"player-ready-pubsub-key"))}a.g.H("post-all");$h("yt-ui-dialog-hide-complete",a);"cancel"==b&&$h("yt-ui-dialog-cancelled",a);a.g&&a.g.H("post-"+b)}}
f.sq=function(a){L(u(function(){27==a.keyCode&&dJ(this,"cancel")},this),0)};f.tq=function(a){"yt-dialog-base"==a.target.className&&dJ(this,"cancel")};f.ga=function(){return this.o};f.dispose=function(){Ox(this.Ic)&&dJ(this,"dispose");Tg(this.A);this.g.dispose();this.g=null;this.o=!0};ba("yt.ui.Dialog",WI,void 0);function eJ(){kF.call(this);this.b=[];this.g={}}w(eJ,kF);da(eJ);f=eJ.prototype;f.Kd="button";f.cg=null;f.register=function(){mF(this,"click",this.mE);mF(this,"keydown",this.gE);mF(this,"keypress",this.hE);lF(this,"page-scroll",this.fE)};f.mE=function(a){a&&!a.disabled&&(fJ(this,a),this.click(a))};
f.gE=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=gJ(this,a))){var d=function(a){var b="";a.tagName&&(b=a.tagName.toLowerCase());return"ul"==b||"table"==b},e;d(b)?e=b:e=pd(b,d);if(e){e=e.tagName.toLowerCase();var g;"ul"==e?g=this.wE:"table"==e&&(g=this.vE);g&&hJ(this,a,b,c,u(g,this))}}};f.fE=function(){var a=this.g;if(0!=Rb(a))for(var b in a){var c=a[b],d=wd(c.activeButtonNode||c.parentNode,Y(this));if(void 0==d||void 0==c)break;iJ(this,d,c,!0)}};
function hJ(a,b,c,d,e){var g=Ox(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=jJ(a,c))?(b=jd(d),"a"==b.tagName.toLowerCase()?window.location=b.href:Yg(b,"click")):h&&kJ(a,b):g?27==d.keyCode?(jJ(a,c),kJ(a,b)):e(b,c,d):(a=sg(b,Y(a,"reverse"))?38:40,d.keyCode==a&&(Yg(b,"click"),d.preventDefault()))}f.hE=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=gJ(this,a),Ox(a)&&c.preventDefault())};function jJ(a,b){var c=Y(a,"menu-item-highlight"),d=H(c,b);d&&O(d,c);return d}
function lJ(a,b,c){N(c,Y(a,"menu-item-highlight"));b.setAttribute("aria-activedescendant",c.getAttribute("id"))}f.vE=function(a,b,c){var d=jJ(this,b);b=Fg("table",b);var e=Fg("tr",b),e=Pc("td",null,e).length;b=Pc("td",null,b);d=mJ(d,b,e,c);-1!=d&&(lJ(this,a,b[d]),c.preventDefault())};f.wE=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=jJ(this,b);b=hb(Pc("li",null,b),Ox);d=mJ(d,b,1,c);lJ(this,a,b[d]);c.preventDefault()}};
function mJ(a,b,c,d){var e=b.length;a=fb(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}function nJ(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=Y(a,"menu-mask"),b.iframeMask=c);return c}
function iJ(a,b,c,d){var e=wd(b,Y(a,"group")),g=!!a.Z(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=fg(b);if(sg(b,Y(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(l){}}sg(b,"flip")&&(sg(b,Y(a,"reverse"))?(g=6,h=7):(g=7,h=6));var p;a.Z(b,"button-has-sibling-menu")?p=Tf(e):a.Z(b,"button-menu-root-container")&&(p=oJ(a,b));rc&&!Cc("8")&&(p=null);var s;p&&(s=fg(p),s=new Bf(-s.top,s.left,s.top,-s.left));p=new F(0,1);sg(b,Y(a,"center-menu"))&&(p.x-=Math.round((dg(c).width-dg(b).width)/
2));d&&(p.y+=Uc(document).y);if(a=nJ(a,b))b=dg(c),a.style.width=b.width+"px",a.style.height=b.height+"px",dF(e,g,a,h,p,s,65),d&&Tx(a,"position","fixed");dF(e,g,c,h,p,s,65)}function oJ(a,b){if(a.Z(b,"button-menu-root-container")){var c=a.Z(b,"button-menu-root-container");return wd(b,c)}return document.body}
f.Dt=function(a){if(a){var b=gJ(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);var c;this.Z(a,"button-has-sibling-menu")?c=a.parentNode:c=oJ(this,a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=nJ(this,a);d&&c.appendChild(d);(c=!!this.Z(a,"button-menu-fixed"))&&(this.g[Cg(a).toString()]=b);iJ(this,a,b,c);ai("yt-uix-button-menu-before-show",a,b);Px(b);this.ag(a,
"button-menu-action",!0);N(a,Y(this,"active"));b=u(this.Mr,this,a,!1);c=u(this.Mr,this,a,!0);d=u(this.HA,this,a,void 0);this.cg&&gJ(this,this.cg)==gJ(this,a)||pJ(this);$h("yt-uix-button-menu-show",a);Tg(this.b);this.b=[Q(document,"click",c),Q(document,"contextmenu",b),Q(window,"resize",d)];this.cg=a}}};
function kJ(a,b){if(b){var c=gJ(a,b);if(c){a.cg=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");Qx(c);a.ag(b,"button-menu-action",!1);var d=nJ(a,b),e=Cg(c).toString();delete a.g[e];L(function(){d&&d.parentNode&&d.parentNode.removeChild(d);c.originalParentNode&&(c.parentNode.removeChild(c),c.originalParentNode.appendChild(c),c.originalParentNode=null,c.activeButtonNode=null)},1)}var e=wd(b,Y(a,"group")),g=[Y(a,"active")];
e&&g.push(Y(a,"group-active"));ug(b,g);$h("yt-uix-button-menu-hide",b);Tg(a.b);a.b.length=0}}f.HA=function(a,b){var c=gJ(this,a);if(c){b&&(c.innerHTML=b);var d=!!this.Z(a,"button-menu-fixed");iJ(this,a,c,d)}};
f.Mr=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=wd(c,Y(this));if(d){var d=gJ(this,d),e=gJ(this,a);if(d==e)return}var d=wd(c,Y(this,"menu")),e=d==gJ(this,a),g=sg(c,Y(this,"menu-item")),h=sg(c,Y(this,"menu-close"));if(!d||e&&(g||h))if(kJ(this,a),d&&b&&this.Z(a,"button-menu-indicate-selected")){if(a=H(Y(this,"content"),a))Ic&&"innerText"in c?b=c.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(b=[],td(c,b,!0),b=b.join("")),b=b.replace(/ \xAD /g," ").replace(/\xAD/g,
""),b=b.replace(/\u200B/g,""),Ic||(b=b.replace(/ +/g," "))," "!=b&&(b=b.replace(/^\s*/,"")),od(a,b);qJ(this,d,c)}};function qJ(a,b,c){var d=Y(a,"menu-item-selected");a=Oc(d,b);z(a,function(a){O(a,d)});N(c.parentNode,d)}function gJ(a,b){if(!b.widgetMenu){var c=a.Z(b,"button-menu-id"),c=c&&Nc(c),d=Y(a,"menu");c?tg(c,[d,Y(a,"menu-external")]):c=H(d,b);b.widgetMenu=c}return b.widgetMenu}
function fJ(a,b){if(a.Z(b,"button-toggle")){var c=wd(b,Y(a,"group"));if(c&&a.Z(c,"button-toggle-group")){var d=a.Z(c,"button-toggle-group"),c=Oc(Y(a),c),e=Y(a,"toggled"),g=sg(b,e);z(c,function(a){a!=b||"optional"==d&&g?O(a,e):N(b,e)})}else vg(b,Y(a,"toggled"))}}f.click=function(a){if(gJ(this,a)){var b=gJ(this,a),c=wd(b.activeButtonNode||b.parentNode,Y(this));c&&c!=a?(kJ(this,c),L(u(this.Dt,this,a),1)):Ox(b)?kJ(this,a):this.Dt(a);a.focus()}this.ag(a,"button-action")};
function pJ(a){a.cg&&kJ(a,a.cg)};function rJ(){kF.call(this)}w(rJ,kF);da(rJ);f=rJ.prototype;f.Rc=null;f.tj=null;f.Kd="overlay";f.register=function(){mF(this,"click",this.Gt,"target");mF(this,"click",this.hide,"close");sJ(this)};
f.Gt=function(a){if(!this.Rc||!Ox(this.Rc.Ic)){var b=this.ld(a);a=tJ(b,a);b||(b=a?a.overlayParentNode:null);if(b&&a){var c=!!this.Z(b,"disable-shortcuts")||!1;this.Rc=new WI(a,c);this.tj=b;var d=H("yt-dialog-fg",a);if(d){var e=this.Z(b,"overlay-class")||"",g=this.Z(b,"overlay-style")||"default",h=this.Z(b,"overlay-shape")||"default",e=e?e.split(" "):[];e.push(Y(this,g));e.push(Y(this,h));tg(d,e)}this.Rc.show();sJ(this);c||(c=u(function(a){sg(a.target,"yt-dialog-base")&&uJ(this)},this),a=H("yt-dialog-base",
a),this.b=Q(a,"click",c));this.ag(b,"overlay-shown");SI(TI.getInstance());pJ(eJ.getInstance())}}};function sJ(a){a.g||(a.g=Xh("yt-uix-overlay-hide",vJ));a.Rc&&ZI(a.Rc,function(){var a=rJ.getInstance();a.tj=null;a.Rc.dispose();a.Rc=null})}function uJ(a){if(a.Rc){var b=a.tj;dJ(a.Rc,"overlayhide");a.ag(b,"overlay-hidden");a.tj=null;a.b&&(Tg(a.b),a.b=null);a.Rc=null}}
function tJ(a,b){var c;if(a)if(c=H("yt-dialog",a)){var d=Nc("body-container");d&&(d.appendChild(c),a.overlayContentNode=c,c.overlayParentNode=a)}else c=a.overlayContentNode;else b&&(c=wd(b,"yt-dialog"));return c}f.nd=function(a){return H("yt-dialog-content",a.overlayContentNode||a)};f.hide=function(){$h("yt-uix-overlay-hide")};function vJ(){uJ(rJ.getInstance())}f.show=function(a){this.Gt(a)};function wJ(a){this.g=a;this.b=[];this.b.push(Xh("yt-uix-load-more-success",this.j,this))}w(wJ,Mh);var xJ=!1;wJ.prototype.j=function(){var a={},b=ub(vb(Oc("spacecast-item")),vb(Oc("yt-lockup-video")));z(b,function(b){var c=b.getAttributeNode("data-context-item-id");if(c&&c.value){var c=c.value,g=a[c];g||(g=[],a[c]=g);g.push(b)}});var b=Ub(a),c=v();GI(this.g,b,u(this.k,this,a,c))};
wJ.prototype.k=function(a,b,c){b=v()-b;var d=0;c&&c.ids&&(yJ(),z(c.ids,function(b){z(a[b],function(a){N(a,"spacecast-cached")})}),d=c.ids.length);fI(Zd({a:"spacecast",module:"highlight",count:Ub(a).length,cached:d,"cache-latency":b}));d&&zJ()};function zJ(){if(We("INIT_SPACECAST_PROMO")&&!xJ){var a=H("spacecast-promo-overlay");a&&(xJ=!0,rJ.getInstance().show(a))}}function yJ(){var a=q("yt.player.getPlayerByElement");a&&a("player-api")}
wJ.prototype.J=function(){this.g=null;this.b.length&&(Zh(this.b),this.b=[]);wJ.G.J.call(this)};function AJ(){this.j=this.g=this.b=null}w(AJ,Mh);da(AJ);AJ.prototype.init=function(a){this.b||(this.b=new MI(a||null),this.g=new FI(this.b),this.j=new wJ(this.g))};AJ.prototype.J=function(){this.k&&(this.j.dispose(),this.j=null);this.g&&(this.g.dispose(),this.g=null);this.b&&(this.b.dispose(),this.b=null);AJ.G.J.call(this);delete AJ.Eb};function BJ(a){ru.call(this,a);this.gc=this.va="spacecast";this.g=null}w(BJ,ru);f=BJ.prototype;f.Ja=function(){return!!this.b.getVideoData().Ra};function CJ(a){return a.getVideoData().Ra?new BJ(a):null}f.create=function(){BJ.G.create.call(this);var a=this.b.getVideoData().Ra,b=AJ.getInstance();b&&b.init(a);this.g=b;this.load()};f.destroy=function(){BJ.G.destroy.call(this);this.g=null};
f.load=function(){BJ.G.load.call(this);var a=this.b.getVideoData().videoId,b=this.g.g,c=v(),c=u(this.zA,this,a,c),d=window.spacecastMeta;d&&d.id&&d.id==a?(c(d),JI("meta","prefetch",{v:a})):LI(b,a,c)};f.zA=function(a,b,c){b=v()-b;var d=0;if(c){var e=c.id;c=c.fmt_list;if(e&&c){var g={};z(c,function(a){a.itag&&(g[a.itag.toString()]=!0)});if(c=DJ(this,II(this.g.b),e,g))d=this.b.getVideoData(),d.ca=c,ds(d),this.b.rp("auto"),d=1}}tu(this);fI(Zd({a:"spacecast",module:"player",v:a,docid:a,cached:d,"cache-latency":b}))};
function DJ(a,b,c,d){if(!b)return null;a=a.b.getVideoData();a=Xr(a.ve);a=hb(a,function(a){return!!d[a.itag]});if(!a.length)return null;var e=Ci(b)||"",g=Number(Rd(b)[4]||null)||null;return B(a,function(a){var b=K(K(he(ge(fe(Ce(a.url),"http"),e),g),"orig_host",Di(a.url)),"scid",c);a.url=b.toString();return Zd(a)}).join(",")};function EJ(){var a=gc,b;if(b=nq())t:{if(navigator.plugins&&0<navigator.plugins.length)for(b=0;b<navigator.plugins.length;b++)if(0<=navigator.plugins[b].name.indexOf("NVIDIA 3D Vision")){b=!0;break t}b=!1}if(b)t:{var c=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);if(c&&1<c.length&&4<=c[1]){c=document.createElement("embed");c.setAttribute("id","NvImageDetectionFFID");c.setAttribute("style","visibility: hidden");c.setAttribute("width",25);c.setAttribute("height",25);c.setAttribute("type","image/jps");
dd(document.documentElement,c);c=Nc("NvImageDetectionFFID");try{if(null!=c){b=27527<=c.NvGetDriverVersion();break t}}catch(d){}}b=!1}return b||!(!a||-1==a.indexOf("Sony"))};function FJ(a){UA.call(this);this.b="3D";this.element=new ZA(a,[X(0,"YTP_ON"),X(0,"YTP_OFF")]);R(this,this.element);bB(this.element,2300);this.priority=10;this.C=!0;aB(this.element,1)}w(FJ,UA);FJ.prototype.M=function(){this.element.vb("select")};FJ.prototype.getSelected=function(){return this.element.getSelected()};function GJ(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",X(0,"YTP_THREED_HTML5_WARNING_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];W.call(this,b);b=X(0,"YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE");this.b=new VA(a,"ytp-dialog-button",b);R(this,this.b);this.b.na(b);b=X(0,"YTP_CLOSE");this.g=new VA(a,"ytp-dialog-button",b);this.g.na(b);R(this,this.g);this.template.update({content:new KE(X(0,"YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE",
{BEGIN_LINK:'<a href="//support.google.com/youtube/bin/answer.py?answer=1229982">',END_LINK:"</a>"})),buttons:[this.b,this.g]})}w(GJ,zC);function HJ(a){ru.call(this,a);af({YTP_THREED_HTML5_WARNING_DIALOG_TITLE:"No HTML5 3D hardware detected",YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE:"Get $BEGIN_LINKhelp setting up HTML5 3D$END_LINK, or change 3D viewing modes.",YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE:"Change 3D viewing mode"});this.g=new FJ(Fu(this));R(this,this.g);aB(this.g.element,1);this.g.listen("change",this.Uz,this);this.g.listen("select",this.Vz,this);this.j=new GJ(Fu(this));R(this,this.j);this.j.b.listen("click",this.Uq,
this);this.j.g.listen("click",this.ug,this)}w(HJ,ru);f=HJ.prototype;f.zn="threeDModuleData";f.va="threed";f.gc="threed";f.create=function(){IJ(this.b.app,void 0);Gu(this,this.g);HJ.G.create.call(this)};f.destroy=function(){Hu(this,this.g);IJ(this.b.app,!0);HJ.G.destroy.call(this)};function JJ(a){return HJ.prototype.Ja(a)?new HJ(a):null}f.Ja=function(a){a=a.getVideoData();return!!a.wa||!!a.Xr};
function KJ(a,b){if(a.b.getVideoData().Pf!=b)if(vu(a),EJ()){var c=a.b.app,d=Ws(c);d.b.g&&d.b.g.b||(d.b.Pf=!d.b.Pf,ds(d.b),LJ(d,"r"));IJ(c)}else b&&(vu(a,a.j),aB(a.g.element,1),Iu(a))}f.Uq=function(){wu(this,"/select_3d_mode?video_id="+this.b.getVideoData().videoId)};f.Uz=function(){0==this.g.getSelected()?KJ(this,!0):KJ(this,!1)};f.Vz=function(){Iu(this);this.Uq()};function MJ(a){ru.call(this,a);af({YTP_YPC_START_RENTAL_HEADER:"Would you like to start this rental?",YTP_YPC_START_RENTAL_BUTTON:"Start rental period"});this.g=new Jv(["div","ytp-ypc-clickwrap-overlay",["h2","header",bf("YTP_YPC_START_RENTAL_HEADER")],["div","description",this.b.getVideoData().k.ypc_clickwrap_message],["button","confirm-button",bf("YTP_YPC_START_RENTAL_BUTTON")]]);az(this.g.K());Bt(this.b,this.g.K());R(this,this.g);this.j=this.g.b["confirm-button"]}w(MJ,ru);f=MJ.prototype;f.va="ypc_clickwrap";
f.gc="ypc-clickwrap";f.Ja=function(){return ls(this.b.getVideoData(),"ypc_clickwrap_module")};function NJ(a){return ls(a.getVideoData(),"ypc_clickwrap_module")?new MJ(a):null}f.create=function(){MJ.G.create.call(this);this.load()};f.load=function(){MJ.G.load.call(this);$y(this.g.K());Q(this.j,"click",u(this.TB,this))};f.unload=function(){az(this.g.K());Xg(this.j);MJ.G.unload.call(this)};f.TB=function(){tu(this);this.destroy()};function OJ(a){a=a.k;this.o=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.B=a.ypc_offer_headline;this.A=a.ypc_full_video_message;this.k=a.ypc_offer_id;this.b=a.ypc_buy_url;this.g=a.ypc_item_thumbnail;this.title=a.ypc_item_title;this.j=a.ypc_item_url;this.videoId=a.ypc_vid};function PJ(){W.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["a","ytp-drawer-close-button"],["a","ytp-drawer-open-button"]]);this.g=this.template.b["ytp-drawer-close-button"];cz(this,this.g,"click",this.hide);this.b=this.template.b["ytp-drawer-open-button"];cz(this,this.b,"click",this.show);this.na(null);this.hide()}w(PJ,W);PJ.prototype.hide=function(){N(this.element,"ytp-drawer-closed")};
PJ.prototype.na=function(a){a?(PJ.G.na.call(this,a),$y(this.element)):az(this.element)};PJ.prototype.show=function(){L(qa(O,this.element,"ytp-drawer-closed"),0)};PJ.prototype.J=function(){Xg(this.g);Xg(this.b);this.b=this.g=null;PJ.G.J.call(this)};function QJ(a,b){ej.call(this);this.b=new PJ;R(this,this.b);this.g=document.createElement("div");tg(this.g,["html5-stop-propagation","html5-ypc-endscreen"]);this.k=document.createElement("div");N(this.k,"html5-ypc-overlay");this.j=new Jv(["div","html5-ypc-module",["div","html5-ypc-action-heading","{{heading}}"],["div","html5-ypc-thumbnail","{{thumbnail_element}}"],["div","html5-ypc-title","{{title}}"],["div","html5-ypc-description","{{description}}"],["button","html5-ypc-purchase","{{button_label}}"]]);
R(this,this.j);this.o=this.j.b["html5-ypc-purchase"];Q(this.o,"click",u(this.A,this));od(this.k,b.A);var c=b.title;b.j&&(c=["a",{href:b.j,target:"blank_"},b.title]);var d="";b.g&&(d=["img",{src:b.g}]);this.j.update({heading:b.B,title:c,thumbnail_element:d,description:b.description,button_label:b.o});this.W(a)}w(QJ,ej);QJ.prototype.J=function(){QJ.G.J.call(this);this.o&&Xg(this.o);gd(this.g);gd(this.k);this.k=this.g=this.b=null};QJ.prototype.W=function(a){this.b.W(a);this.b.na(this.j.K());a.appendChild(this.g)};
function RJ(a){var b=a.j.K();a.g.appendChild(b);a.b.na(null);$y(a.g)}QJ.prototype.A=function(){this.H("ypcContentRequest")};function SJ(a){ru.call(this,a);this.j=this.g=null;this.k=NaN}w(SJ,ru);f=SJ.prototype;f.va="ypc";f.gc="ypc";f.Ja=function(){return ls(this.b.getVideoData(),"ypc_module")};function TJ(a){return ls(a.getVideoData(),"ypc_module")?new SJ(a):null}f.create=function(){SJ.G.create.call(this);this.g=new OJ(this.b.getVideoData());L(u(this.load,this),0)};f.destroy=function(){SJ.G.destroy.call(this);this.g=null};
f.load=function(){if(this.g){SJ.G.load.call(this);var a=this.b.getVideoData();if(this.g.videoId&&!a.ya)this.b.lq({video_id:this.g.videoId,ypc_preview:1});else{var b=H("html5-video-container",Ct(this.b));this.j=new QJ(b,this.g);this.j.subscribe("ypcContentRequest",this.Lx,this);this.g.videoId&&fd(this.b.app.g.F,this.j.k,0);aI(this.b.R())&&(b=new hu(2147483647,2147483647,{priority:2}),this.Kf(b));this.j.b.show();M(this.k);this.k=L(u(function(){this.j.b.hide()},this),1E4);this.g.videoId?a.ya&&tu(this):
RJ(this.j)}}};f.unload=function(){su(this);Qh(this.j);this.j=null;SJ.G.unload.call(this)};f.Ec=function(a){SJ.G.Ec.call(this,a);RJ(this.j)};f.kd=function(a){SJ.G.kd.call(this,a);a=this.j;az(a.g);a.b.na(a.j.K())};f.Lx=function(){if(this.g.b)"embedded"==this.b.R().ba?mI(this.g.b):window.location=ae(this.g.b,{})+"";else if(this.g.k){var a=q("yt.www.watch.player.handleEndPreview");a&&(this.b.isFullscreen()&&Lz(this.b.app),a(this.g.k))}};function UJ(a,b,c){this.o=Q(a,"click",u(this.F,this));this.A=Q(a,"dblclick",u(this.C,this));this.D=b;this.j=c;this.g=new gw(this.B,200,this);R(this,this.g);this.b=!0;this.k=null}w(UJ,Mh);UJ.prototype.F=function(a){0!=this.g.pa?(this.g.stop(),this.j(a),this.b=!1):(this.k=a,this.g.start(),this.b=!0)};UJ.prototype.C=function(a){this.b&&this.j(a)};UJ.prototype.B=function(){this.D(this.k);this.b=!0};UJ.prototype.J=function(){Tg(this.o);Tg(this.A);UJ.G.J.call(this)};var VJ=new G(1294,630),WJ=new G(1320,870),XJ=new G(1280,720),YJ=new G(854,480),ZJ=new G(640,360);function $J(a){var b;b=rh?new G(window.innerWidth,window.innerHeight):Sc(window);return a.tb?b:a.qd?b.width>=WJ.width&&b.height>=WJ.height?XJ.clone():YJ.clone():b.width>=VJ.width&&b.height>=VJ.height?YJ.clone():ZJ.clone()};function aK(a){W.call(this,["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]]);this.b=new W(["input","html5-modal-panel-input",{type:"text",readonly:"readonly"}]);R(this,this.b);uc&&this.b.K().removeAttribute("readonly");this.b.listen("click",this.j,this);var b=X(0,"YTP_CLOSE");this.g=new VA(a,"ytp-dialog-button",b);this.g.na(b);R(this,this.g);this.template.update({content:this.b,buttons:this.g});this.listen("contextmenu",
this.k)}w(aK,zC);aK.prototype.k=function(a){a.stopPropagation()};aK.prototype.j=function(){this.b.K().select()};function bK(a,b,c){W.call(this,["ul",["html5-context-menu","yt-uix-button-menu"],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url"],X(0,"YTP_GET_VIDEO_URL")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url-at-current-time"],X(0,"YTP_GET_VIDEO_URL_AT_TIME")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-embed-html"],X(0,"YTP_GET_EMBED")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-report-playback-issue"],
X(0,"YTP_REPORT_ISSUE")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-debug-info"],X(0,"YTP_GET_DEBUG_INFO")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-show-video-info"],X(0,"YTP_SHOW_VIDEO_INFO")]],["li","",["a",["yt-uix-button-menu-item","html5-context-menu-link"],{target:"_blank",href:"/html5"},X(0,"YTP_HTML5_CONTEXT_MENU_LINK")]]]);this.X=a;this.X.subscribe("internalvideodatachange",this.Jq,this);this.j=new ew(this);this.j.listen(b,"contextmenu",
this.Bz);this.b=new ew(this);this.g=new aK(c);R(this,this.g);this.g.g.listen("click",this.Az,this);a={rz:this.Cz,uz:this.Dz,vz:u(this.Nq,this,!1),wz:u(this.Nq,this,!0),yz:this.Fz,zz:this.Gz,xz:this.Ez};for(var d in a)cK(this,d,a[d]);this.hide()}w(bK,W);f=bK.prototype;f.Az=function(){this.X.g.Tg()};function dK(a,b){var c=a.g;c.b.K().value=b;c.b.K().focus();L(u(c.j,c),100);a.X.g.Tg(a.g)}
function cK(a,b,c){a.j.listen(a.template.b[Sv[b]],"click",function(a){a.stopImmediatePropagation();a.preventDefault();c.call(this,a);this.hide();a=b.replace("CONTEXT_MENU_","").toLowerCase();nH(this.X,"contextmenu."+a)})}f.Jq=function(a,b){Nx(this.template.b["html5-context-menu-copy-embed-html"],b.qq)};f.Nq=function(a){dK(this,ct(this.X,a))};
f.Dz=function(){var a=We("EMBED_HTML_TEMPLATE"),b=We("EMBED_HTML_URL"),c=this.X.g.pd(),d=this.X.getVideoData().videoId,b=b.replace(/__videoid__/g,d),a=a.replace(/__url__/g,Ca(b)),a=a.replace(/__width__/g,c.width),a=a.replace(/__height__/g,c.height);dK(this,a)};f.Ez=function(a){eK(this.X,a.target.getAttribute("href"))};
f.Fz=function(){var a=Ws(this.X);a&&a.zo("feedback");var a=this.X.R(),b=!0;"detailpage"==a.ba&&(b=q("yt.player.exports.feedbackStart")("59",{html5:!0,player:!0}));b&&(this.X.pauseVideo(),window.open(fK(a,this.X.getVideoData())))};f.Cz=function(){dK(this,dt(this.X,!0))};f.Gz=function(){mt(this.X.g)};f.Bz=function(a){a.preventDefault();var b=Ng(a);a=Og(a);var c=Uf(document.body);fF(new F(b,a),this.element,0,null,c,5);this.show()};f.RB=function(a){!1===a.Sc.returnValue||this.hide()};
f.show=function(){this.P||(this.b.removeAll(),this.b.listen(window,"blur",this.hide),this.b.listen(document,"click",this.SB),this.b.listen(document,"contextmenu",this.RB),bK.G.show.call(this))};f.SB=function(a){2==a.button||a.target&&md(this.element,a.target)||this.hide()};f.hide=function(){bK.G.hide.call(this);this.b.removeAll()};f.J=function(){this.j.removeAll();this.b.removeAll();this.X.ha("internalvideodatachange",this.Jq,this);this.X=null;bK.G.J.call(this)};function gK(a,b){xI.call(this,a,b.R());this.X=b;this.D=2;this.I=this.C=!1;this.k.g.listen("click",this.jz,this);this.k.b.listen("click",this.iz,this);this.X.subscribe("presentingplayerstatechange",this.Qd,this)}w(gK,xI);f=gK.prototype;f.update=function(a){gK.G.update.call(this,a);hK(this,a.lm);a&&a.Vo&&!this.X.o?(a=this.k,a.b.W(a.element),a.g.W(a.element)):(a=this.k,a.g.bd(),a.b.bd())};f.pi=function(a){var b=sg(this.element,"show-share");this.H("share-click");b||gK.G.pi.call(this,a)};
f.Vk=function(a){this.H("title-click",a)};f.Jk=function(){var a=sg(this.element,"show-more-info");this.H("info-click");if(a)this.I&&this.X.Nd();else{gK.G.Jk.call(this);var b=this.X.getPlayerState();this.I=V(b,8)&&!V(b,2);this.X.pauseVideo()}return!a};f.jz=function(){iK(this,0)};f.iz=function(){iK(this,1)};f.Qd=function(a){V(a.state,8)&&O(this.element,"show-more-info")};
function iK(a,b){if(!a.C&&(a.D==b&&(b=2),hK(a,b),a.b)){if("detailpage"!=a.j.ba){a.C=!0;var c={xb:a.b.xb,onSuccess:u(function(){this.C=!1},a),onError:u(function(){this.C=!1},a),Sa:a.j.Sa,$a:a.j.$a};Tq(a.b.videoId,b,c)}a.X.H("RATE_SENTIMENT",{videoId:a.b.videoId,sentiment:b})}}function hK(a,b){a.D=b;P(a.element,"sentiment-like",0==b);P(a.element,"sentiment-dislike",1==b)}f.pn=function(a){eK(this.X,a)};f.Ht=function(){mH(this.X)};
f.J=function(){this.X.ha("presentingplayerstatechange",this.Qd,this);this.X=null;gK.G.J.call(this)};function jK(a,b,c,d,e,g,h,k){this.o=[];z(Ib(b),function(b){this.o.push(Q(a,b,u(this.nv,this)))},this);z(Ib(d),function(b){this.o.push(Q(a,b,u(this.mv,this)))},this);this.A=g||null;this.F=c;this.D=h||0;this.j=0;this.k=!1;this.C=e;this.B=k||0;this.b=0;this.g=!1}f=jK.prototype;f.nv=function(a){M(this.b);this.b=0;this.j=L(u(this.zB,this,a),this.D)};f.mv=function(a){M(this.j);this.j=0;this.b=L(u(this.xB,this,a),this.B)};f.zB=function(a){this.g||this.k||(this.k=!0,this.F.call(this.A||m,a))};
f.xB=function(a){!this.g&&this.k&&(this.k=!1,this.C.call(this.A||m,a))};f.dispose=function(){this.g=!0;M(this.j);M(this.b);Tg(this.o)};f.ga=function(){return this.g};function kK(){W.call(this,["div","ytp-tooltip",["div","ytp-tooltip-body","{{content}}"],["div","ytp-tooltip-arrow"]]);this.b=this.template.b["ytp-tooltip-body"]}w(kK,W);kK.prototype.hide=function(){kK.G.hide.call(this);Pf(this.b,0)};kK.prototype.J=function(){ed(this.b);this.b=null;kK.G.J.call(this)};function lK(a,b){this.b={};this.Tm=a;this.g=b}w(lK,Mh);
lK.prototype.Rg=function(a,b){var c,d=new jK(a,"mouseover",function(){if(this.Tm){var d=new kK;d.W(this.Tm);c=d}else c=null;if(c&&(d=b&&b(a),!b||d)){d=d||yg(a,"tooltip")||"";if(r(d)){var g=bd(d),d=ad("span");d.className="ytp-text-tooltip";d.appendChild(g)}Ov(c.template,"content",d);var g=!!yg(a,"tooltip-below"),d=c,h=dg(a),h=new F(h.width/2,g?h.height:0),k=Vf(a),h=new F(k.x+h.x,k.y+h.y),g=!!g;P(d.element,"ytp-tooltip-below",g);if(k=Tf(d.element))var l=Vf(k),p=mg(k),h=Lb(h,new F(l.x+p.left,l.y+p.top));
fF(h,d.element,g?1:0);d.show();var p=dg(d.b),g=p.width/2*-1,s=Sc(window),t=Uc(document),h=t.x,s=s.width+t.x,t=h,y=s;k&&(k=dg(k),t=l.x,y=k.width+l.x);k=Vf(d.b);l=k.x+g;k=k.x+p.width+g;l<Math.max(h,t)?g-=l-Math.max(h,t):k>Math.min(s,y)&&(g-=k-Math.min(s,y));Pf(d.b,g)}},["mouseout","mousedown"],function(){c&&(c.hide(),Oh(c),c=null)},this,10,50);this.b[la(a)]=d};
lK.prototype.Af=function(a,b,c){var d=this.g;this.Rg(a,function(){if(d){var a="detailpage"==d.ba;if(!d.ca||a)return c}else return c;var g=d.ca,h=d.xa,a=ad("div");N(a,"ytp-identity-tooltip");var k=ad("img");k.src=h;h=ad("span");g=bd(bf(b,{USER_NAME:g}));dd(h,g);dd(a,k,h);return a})};lK.prototype.vn=function(a){a=la(a);Oh(this.b[a]);this.b[a]=null};lK.prototype.J=function(){this.g=this.Tm=null;for(var a in this.b)Oh(this.b[a]);this.b={};lK.G.J.call(this)};function mK(a){qH.call(this,a);this.o=this.Ca=this.k=this.O=null;this.ac=this.za=!1}w(mK,qH);mK.b=50;mK.g=200;f=mK.prototype;f.Xg=function(){mK.G.Xg.call(this);this.app.subscribe("clearvideooverlays",this.xD,this)};
f.Ys=function(){var a=this.app.N.assets;if(a.css&&!oq()){var a={rel:"stylesheet",type:"text/css",href:a.css},b=document.getElementById("www-player-css");a.id="www-player-css";var c=b||document.createElement("link");Qc(c,a);b||document.getElementsByTagName("head")[0].appendChild(c);this.zr(mK.g)}else this.za=!0;this.H("templateready")};f.zr=function(a){0>=a||oq()?(this.za=!0,this.element&&$y(this.element)):L(u(this.zr,this,a-1),mK.b)};f.Sg=function(){this.za||az(this.element);mK.G.Sg.call(this)};
f.Pn=function(a){mK.G.Pn.call(this,a);a.Ub||this.addClass("hide-info-bar");a.mc&&this.Zf()};
f.xn=function(a){mK.G.xn.call(this,a);var b=new W(["img",["html5-watermark","html5-stop-propagation","ytp-scalable-icon-shrink","hid"],{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:X(0,"YTP_WATERMARK")}]);this.O=b.K();b.W(this.element);this.k=new bK(this.app,this.element,this.j);R(this,this.k);this.k.W(document.body);this.o=new gK(this.j,this.app);this.o.W(this.element);R(this,this.o);a.yc&&N(this.k.K(),"house-brand")};
f.Wm=function(){this.app.R().Gf?this.Ca||(this.Ca=new UJ(this.g,u(this.Vm,this),u(this.As,this)),R(this,this.Ca)):mK.G.Wm.call(this)};f.Jj=function(a){mK.G.Jj.call(this,a);a?$y(this.o.K()):az(this.o.K())};f.Dj=function(a){mK.G.Dj.call(this,a);this.o&&this.o.update(a);var b=this.app;if(b.b.Xk?0:b.getVideoData().oa||b.b.Fc){if(a=a.oa)this.O.src=a;Px(this.O)}};
f.Jn=function(){mK.G.Jn.call(this);var a=this.app.R();a.dc||(cz(this,this.element,"click",u(this.Qs,this,!1),void 0,void 0,!0),cz(this,this.element,"keydown",u(this.Qs,this,!0),void 0,void 0,!0),cz(this,this.element,"focus",this.cD,void 0,void 0,!0));a.Tk||(cz(this,this.element,"keypress",this.gD),cz(this,this.element,"keydown",this.fD));cz(this,this.O,"click",this.Ps);this.o.subscribe("title-click",u(this.Ps,this));this.o.subscribe("share-click",u(this.eD,this));this.o.subscribe("info-click",u(this.dD,
this))};
f.gD=function(a){this.app.b.fg=v();var b=!1,c=a.keyCode;if(179==c||178==c)179==c&&(this.H("playpausetoggled",!0),a.preventDefault(),b=!0),178==c&&(this.app.b.fg=v(),Qs(this.app),a.preventDefault(),b=!0);98==c&&(this.app.$e("onBackgroundChange"),b=!0);111==c&&(this.app.$e("onTextOpacityChange"),b=!0);119==c&&(this.app.$e("onWindowOpacityChange"),b=!0);if(61==c||43==c)this.app.$e("onFontSizeIncrease"),b=!0;if(45==c||95==c)this.app.$e("onFontSizeDecrease"),b=!0;32==c&&xH(a)&&(yH(this),eH(this.app),a.preventDefault(),
b=!0);48<=c&&57>=c&&(Ls(this.app,(c-48)/10*Ms(this.app)),a.preventDefault(),b=!0);this.app.R().Ab()&&this.app.Uh("onKeyPress",{keyCode:c,handled:b})};
f.fD=function(a){var b=!1,c=a.keyCode;if(38==c||40==c||37==c||39==c){b=5;a.ctrlKey&&(b*=2);if(38==c)b=this.app,lH(b,{volume:b.D.volume+5,muted:!1});else if(40==c)b=this.app,lH(b,{volume:b.D.volume-5,muted:!1});else if(37==c){var d=this.app,b=-1*b;Ls(d,d.getCurrentTime()+b,!1,250,void 0)}else 39==c&&(d=this.app,Ls(d,d.getCurrentTime()+b,!1,250,void 0));b=!0}36==c&&(Ls(this.app,0),b=!0);35==c&&(Ls(this.app,Infinity),b=!0);27==c&&($g()?(dH(this.app,!1),b=!0):this.k&&this.k.P?(this.k.hide(),b=!0):null!=
this.B.j?(this.B.Ud(),b=!0):this.C.P&&(this.Tg(),b=!0));b&&a.preventDefault();this.app.R().Ab()&&this.app.Uh("onKeyPress",{keyCode:c,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:b,fullscreen:this.app.R().tb})};f.Ps=function(a){a.preventDefault();mH(this.app)};f.eD=function(){this.app.Vh();if("detailpage"==this.app.R().ba){dH(this.app,!1);var a=this.app,b=a.getVideoData();a.H("SHARE_CLICKED",{videoId:b.videoId,listId:b.La,feature:"player_"+a.b.ba})}};f.dD=function(){this.app.Vh()};
f.xD=function(){var a=this.o;O(a.element,"show-share");O(a.element,"show-more-info")};f.Qs=function(a){this.ac=a};f.cD=function(){P(this.element,"ytp-keyboard-focus",this.ac)};f.Dm=function(a){mK.G.Dm.call(this,a);this.k&&(a?this.k.W(this.element):this.k.W(document.body),this.k.hide());a&&this.element.focus()};f.bm=function(){mK.G.bm.call(this);if(!this.app.R().$b){var a=new lK(this.element,this.app.R());R(this,a);this.j.b=a;var b=Oc("ytp-tooltip-anchor",this.element);z(b,function(b){a.Rg(b)})}};
f.Sb=function(){var a=this.app.R(),b=Ws(this.app)&&2==Ws(this.app).getPlayerType();return"detailpage"==a.ba&&!b&&a.b.D?$J(a):mK.G.Sb.call(this)};f.Ks=function(){var a=this.Sb();this.app.R().Pd&&(a=a.clone(),a.height+=3);return a};f.J=function(){mK.G.J.call(this);Xg(this.O);this.O=null};function nK(a){this.k=Math.exp(Math.log(.5)/a);this.g=this.j=0}nK.prototype.b=function(a,b){var c=Math.pow(this.k,a);this.g=b*(1-c)+c*this.g;this.j+=a};nK.prototype.o=function(){return this.g/(1-Math.pow(this.k,this.j))};function oK(a){this.g=window.Float32Array?new Float32Array(a):Array(a);this.b=a-1}oK.prototype.add=function(a){this.b=(this.b+1)%this.g.length;this.g[this.b]=a};oK.prototype.forEach=function(a){for(var b=this.b+1;b<this.g.length;b++)a(this.g[b]||0);for(b=0;b<=this.b;b++)a(this.g[b]||0)};function pK(a,b,c){this.D=0;this.B=a;this.k=b||.5;this.A=c||0;this.C="index";this.g=0;this.j=[]}pK.prototype.b=function(a,b){qK(this,"index");this.j.push({index:this.D++,weight:a,value:b});this.g+=a;for(qK(this,"index");this.g>this.B;){var c=this.g-this.B,d=this.j[0];d.weight<=c?(this.g-=d.weight,this.j.shift()):(this.g-=c,d.weight-=c)}};function rK(a,b){qK(a,"value");var c=b*a.g,d=0,e=NaN;a.j.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e}
pK.prototype.o=function(){return this.A?(rK(this,this.k-this.A)+rK(this,this.k)+rK(this,this.k+this.A))/3:rK(this,this.k)};function qK(a,b){a.C!=b&&(a.C=b,Eb(a.j,b))};function sK(a){this.b=a;this.A=this.D=this.F=0;this.M=new oK(100);this.I=0;this.B=new pK(16,.6);this.C=new nK(4);this.b.j?this.j=new nK(this.b.g):this.j=new pK(this.b.g,.5,.1);this.g=this.o=this.k=0;a=ui("yt-player-bandwidth")||{};this.j.b(this.b.B,0<a.byterate?a.byterate:13E4);0<a.delay&&this.B.b(1,Math.min(+a.delay,2));0<a.tailDelay&&this.C.b(1,+a.tailDelay);this.A=v()}function tK(a,b,c){a.b.b||(b=Math.max(b,.05),a.j.b(b,c/b),uK(a))}
function vK(a,b,c){a.B.b(1,c);1E4<v()-a.A&&wK(a);0==a.k&&(a.o=b/1E3);a.k++}function xK(a,b,c){isNaN(c)||(a.D+=c);isNaN(b)||(a.F+=b/1E3);uK(a)}function yK(a,b,c){b=Math.max(b,8192);a.C.b(1,c/b);1E4<v()-a.A&&wK(a)}function zK(a){var b=a.B.o(),b=isNaN(b)?.5:b;0<=a.b.k&&(b=Math.min(b,a.b.k));return b}function AK(a){return a.C.o()||0}function BK(a){a=a.j.o()*a.b.o-a.b.A;return 0<a?a:1}function CK(a){var b={};b.delay=zK(a);b.tailDelay=AK(a);b.byterate=BK(a);return b}
function wK(a){var b=CK(a);ri("yt-player-bandwidth",b,2592E3);a.A=v()}function uK(a){var b=v();500<b-a.I&&(a.M.add(1/(1/BK(a)+AK(a))),a.I=b)};function DK(){this.g=17;this.k=-1;this.B=.5;this.C=this.b=this.j=!1;this.A=0;this.o=1};function EK(){this.b=[];this.k={};this.B={};this.C={};this.g=this.o=null;this.j=[];this.A=null}w(EK,Mh);EK.prototype.Sq=function(a){if(this.g){var b;var c=la(a);b=this.k[c];if(!b)if(this.g){if(b=a(this.g)){a=this.k[c]=b;for(var d in this.o)a.subscribe(d,this.o[d]);a.subscribe("command_log_timing",this.D,this);R(this,b)}}else b=null;b&&b.Ja(this.g)&&!C(this.b,b)&&(b.create(),this.b.push(b),C(this.j,b.va)&&(b.nc=this.A,b.Ii(!!b.nc)))}};
function FK(a){a.b=hb(a.b,function(a){if(!this.g||a.Om(this.g)){try{a.destroy()}catch(c){$e(c)}return!1}return!0},a)}function GK(a,b,c){HK(a);a.A=b;a.j=vb(c);z(a.b,function(a){0<=fb(c,a.va)&&(a.nc=b,a.Ii(!!a.nc))})}function HK(a){z(a.j,function(a){if(a=Zs(this,a))a.nc=null,a.Ii(!1)},a);a.A=null;a.j=[]}function lt(a,b){if(!b)return B(a.b,function(a){return a.va});var c=Zs(a,b);return c?c.Ej():[]}function Zs(a,b){return lb(a.b,function(a){return a.va==b})}
EK.prototype.F=function(a,b){z(this.b,function(c){c.H(a,b)})};function IK(a){var b={};z(a.b,function(a){ra(b,a.bh())});return b}EK.prototype.D=function(a,b){ra(this.C,a||null);ra(this.B,b||null)};EK.prototype.isAvailable=function(a){return(a=Zs(this,a))?a.hk:!1};function JK(a){this.b={};for(var b=0;b<a.length;b++){var c=a[b];this.b[c.b]=c}}function KK(a){a=Tb(a.b);Cb(a,function(a,c){return a.b-c.b});return a};function LK(a,b,c){this.j=a;this.b=b;this.k=!!c.Te;this.g=c.ra};function MK(){this.vc={};this.g=this.Wb().b;this.b=null}f=MK.prototype;f.Wb=function(){var a=this.constructor,b;if(!(b=a.vt)){var c;b=a.aE;var d=[];for(c in b)0!=c&&d.push(new LK(a,c,b[c]));c=new JK(d);b=a.vt=c}return b};f.get=function(a,b){a.j.Wb();this.Wb();var c;c=a.b;var d=NK(this,c);c=this.g[c].k?d[b||0]:d;return c};f.set=function(a,b){a.j.Wb();this.Wb();OK(this,a.b,b)};f.add=function(a,b){a.j.Wb();this.Wb();PK(this,a.b,b)};
f.clear=function(a){a.j.Wb();this.Wb();a=a.b;delete this.vc[a];this.b&&delete this.b[a]};f.equals=function(a){if(!a||this.constructor!=a.constructor)return!1;for(var b=KK(this.Wb()),c=0;c<b.length;c++){var d=b[c],e=d.b;if(null!=this.vc[e]!=(null!=a.vc[e]))return!1;if(null!=this.vc[e]){var g=11==d.g||10==d.g,h=NK(this,e),e=NK(a,e);if(d.k){if(h.length!=e.length)return!1;for(d=0;d<h.length;d++){var k=h[d],l=e[d];if(g?!k.equals(l):k!=l)return!1}}else if(g?!h.equals(e):h!=e)return!1}}return!0};
function QK(a,b){for(var c=KK(a.Wb()),d=0;d<c.length;d++){var e=c[d],g=e.b;if(null!=b.vc[g]){a.b&&delete a.b[e.b];var h=11==e.g||10==e.g;if(e.k)for(var e=NK(b,g)||[],k=0;k<e.length;k++)PK(a,g,h?e[k].clone():e[k]);else e=NK(b,g),h?(h=NK(a,g))?QK(h,e):OK(a,g,e.clone()):OK(a,g,e)}}}f.clone=function(){var a=new this.constructor;a!=this&&(a.vc={},a.b&&(a.b={}),QK(a,this));return a};function NK(a,b){var c=a.vc[b];return null==c?null:c}function OK(a,b,c){a.vc[b]=c;a.b&&(a.b[b]=c)}
function PK(a,b,c){a.vc[b]||(a.vc[b]=[]);a.vc[b].push(c);a.b&&delete a.b[b]}function RK(a,b){a.aE=b;a.Wb=function(){return a.vt||(new a).Wb()}};function SK(){MK.apply(this)}w(SK,MK);function TK(){MK.apply(this)}w(TK,MK);RK(SK,{0:{name:"MessageDetails",ff:"logs_proto.MessageDetails"},1:{name:"may_appear_in",Te:!0,ra:11,type:TK}});RK(TK,{0:{name:"Type",NK:SK,ff:"logs_proto.MessageDetails.Type"},1:{name:"source_type",required:!0,ra:9,type:String},2:{name:"log_type",required:!0,ra:9,type:String}});var UK={wF:0,fH:1,qH:2,vF:3,EF:4,dH:5,oH:6,lH:7,mH:8,nH:9,jH:10,kH:11,GF:12,FF:13,uF:14,oF:15,eH:20,sH:21,nF:22,gH:23,rH:24,pH:25,BF:30,tH:31,AF:32,CF:33,iH:40,hH:41,HF:42,IF:43,pF:50,sF:51,xF:52,yF:53,zF:54,kF:55,lF:56,DF:57,tF:58,rF:60,qF:61,mF:70,jF:80,JF:90};function VK(){MK.apply(this)}w(VK,MK);function WK(){MK.apply(this)}w(WK,MK);function XK(){MK.apply(this)}w(XK,MK);function YK(){MK.apply(this)}w(YK,MK);function ZK(){MK.apply(this)}w(ZK,MK);function $K(){MK.apply(this)}w($K,MK);
$K.prototype.hasFeature=function(){return null!=this.vc[7]};
RK(VK,{0:{name:"YtAdType",ff:"video.YtAdType"},1:{name:"ad_namespace",required:!0,ra:14,defaultValue:0,type:{iG:0,GH:1,jG:2,yH:3,RH:4,DH:5,CH:6,Et:7,AH:8,FG:9,xH:10,BH:11,vG:12,EK:13}},2:{name:"ad_format",required:!0,ra:14,defaultValue:0,type:{eG:0,qI:1,oI:2,TI:3,iK:4,rI:5,lI:6,nI:7,JK:8,LH:9}},3:{name:"ad_invideo",ra:14,defaultValue:0,type:{gG:0,UG:1,VG:2,WG:3,zH:4,TG:5,GG:6}},4:{name:"invideo_autoplay",ra:14,defaultValue:0,type:{AG:0,KE:1}},5:{name:"ad_instream",ra:14,defaultValue:0,type:{fG:0,
cK:1,gK:2,en:3,EG:4}},6:{name:"ad_instream_long",ra:8,type:Boolean}});RK(WK,{0:{name:"AdId",ff:"video.AdId"},1:{name:"ad_network",ra:14,defaultValue:1,type:{OTHER:1,hF:2}},2:{name:"ad_network_name",ra:9,type:String},3:{name:"ad_id",required:!0,ra:9,type:String}});
RK(XK,{0:{name:"YtAdEvent",ff:"video.YtAdEvent"},1:{name:"ad_event_type",required:!0,ra:14,defaultValue:0,type:{RF:0,YF:1,SF:2,aG:3,TF:4,UF:5,OF:6,MF:7,uH:8,KF:9,ZF:10,$F:11,LF:12,wH:13,bG:14,PF:15,vH:16,QF:17,NF:18,cG:100,dG:101,WF:130,VF:131,XF:132}},2:{name:"wall_time",required:!0,ra:2,type:Number},3:{name:"media_time",required:!0,ra:2,type:Number},4:{name:"logentry_time_usec",required:!0,ra:3,type:String},5:{name:"ad_error_type",ra:14,defaultValue:0,type:UK}});
RK(YK,{0:{name:"YtAdSlot",ff:"video.YtAdSlot"},1:{name:"slot_time",required:!0,ra:2,type:Number},2:{name:"ad_type",required:!0,ra:11,type:VK},3:{name:"ad_events",Te:!0,ra:11,type:XK},4:{name:"ad_video_duration",ra:2,type:Number},5:{name:"ad_id",ra:9,type:String},6:{name:"slot_index",ra:5,type:Number}});
RK(ZK,{0:{name:"YtVideoMetadata",ff:"video.YtVideoMetadata"},1:{name:"content_owner_ids",Te:!0,ra:9,type:String},2:{name:"video_duration_seconds",ra:2,type:Number},3:{name:"all_content_owner_ids",ra:9,type:String}});
RK($K,{0:{name:"YtWatchAdInfo",ff:"video.YtWatchAdInfo"},1:{name:"video_id",required:!0,ra:9,type:String},2:{name:"allowed_ads",Te:!0,ra:11,type:VK},3:{name:"ad_slots",Te:!0,ra:11,type:YK},4:{name:"ps",ra:9,type:String},5:{name:"el",ra:9,type:String},6:{name:"country",ra:9,type:String},7:{name:"feature",ra:9,type:String},8:{name:"blocked",ra:8,type:Boolean},9:{name:"plid",ra:9,type:String},10:{name:"video_metadata",ra:11,type:ZK},11:{name:"experiment_id",Te:!0,ra:3,type:String},12:{name:"ad_flags",
ra:4,type:String},13:{name:"all_experiment_ids",ra:9,type:String},14:{name:"no_ads_returned",ra:8,type:Boolean},15:{name:"ad_errors",Te:!0,ra:14,defaultValue:0,type:UK},16:{name:"ad_slot_with_event",ra:11,type:YK}});function aL(a,b){vt.call(this,a,b)}w(aL,vt);f=aL.prototype;f.Mg=function(){Ks(this.app,!0,this.b);this.app.Nd(this.b)};f.pauseVideo=function(){this.app.pauseVideo(this.b)};f.bt=function(a,b,c){Ks(this.app,!0,this.b);var d=this.app,e=this.b;d.rf(d.getCurrentTime()+a,b,c,e)};f.Ng=function(a,b){Ks(this.app,!0,this.b);this.app.rf(a,b,void 0,this.b)};f.Hk=function(){Ss(this.app,this.b)};function bL(a){this.app=a;ru.call(this,a.yb)}w(bL,ru);bL.prototype.getAdState=function(){return-1};var cL={oJ:"red",WHITE:"white"};var dL={HE:"0",KJ:"1",bH:"2"};var eL={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},fL={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},gL={adunit:{Ub:!1,Rp:!1,Fc:!1},detailpage:{mc:!0}};gL.embedded={Gf:Zg(),Fc:!0};gL.profilepage={dh:!0};
var hL="blogger books docs google-live play picasaweb".split(" "),iL={blazer:{MK:"youtube_mobile",xc:!1,QE:!1,aj:!1,Wn:!1,$b:!0,mc:!1,Nk:!0,Ob:!1,Qb:!1,dc:!0},blogger:{ye:!1,og:!1,bc:!1,Ub:!1,Jc:!1,mc:!1,Sf:!1,Fc:!1,Xc:"bl"},books:{ye:!1,og:!1,bc:!1,Ub:!1,Jc:!1,mc:!0,Sf:!1,Fc:!1,Xc:"gb"},docs:{ye:!1,og:!1,bc:!1,Ub:!1,Jc:!1,mc:!1,Sf:!1,Fc:!1,Xc:"gd"},"google-live":{ye:!1,og:!1,bc:!1,Ub:!1,Jc:!1,mc:!1,Sf:!1,Fc:!1,Xc:"gl"},play:{Ub:!1,Jc:!1,mc:!1,Fc:!1,Xc:"gp"},"native":{aj:!1,Wn:!1,Ob:!0},picasaweb:{ye:!1,
og:!1,bc:!1,Ub:!1,Jc:!1,mc:!1,Sf:!1,Fc:!1,Xc:"pw"},touch:{aj:!1,Wn:!1,dc:!0}};
function jL(a){a=bc(a);this.j={};this.b=new Wq(a.fexp);this.wa=a.forced_experiments||null;this.origin=wq(this.origin,a.origin);this.ze=wq(this.ze,a.loaderUrl);if("adunit"!=a.el||kf(this.ze))this.ba=a.el||this.ba;var b=gL[this.ba];b&&ra(this,b);b=a.ps;if(!C(hL,b)||this.Ab())this.ob=b||this.ob;(b=iL[this.ob])&&ra(this,b);this.yc=this.Ab()&&C(hL,this.ob);this.zg=!(!mq().defaultPlaybackRate||qc||ph||oh||qh);if(a.use_media_volume)b=!1;else{var b=mq(),c=b.muted;b.muted=!c;b=b.muted!=c}this.Mp=b;this.Qp=
qh;if(ph||oh||sh)this.Eo="blazer"!=this.ob;this.Np="0"!=a.add_player_event_listeners;b=tq(this.Gf,a.fs);this.Gf="detailpage"==this.ba?b:b&&Zg();this.Sa=wq(this.Sa,a.authuser);this.Li=uq(this.Li,a.autohide,FE);this.xc=tq(this.xc,a.autoplay);this.Vl=tq(this.Vl,a.autoplayoverride);this.color=uq(this.color,a.color,cL);this.A=wq(this.A,a.content_v);this.Wl=uq(this.Wl,a.controls,dL);this.Tk=tq(this.Tk,a.disablekb);this.Mi=tq(this.Mi,a.edu_mode);this.g=wq(this.g,a.eurl);this.D=wq(this.D,a.framer);this.ea=
uq(this.ea,a.iv_load_policy,eq);this.B=wq(this.B,a.hl);this.Xp=tq(this.Xp,a.bwlogging);this.$b=tq(this.$b,a.is_html5_mobile_device);this.qd=tq(this.qd,a.player_wide);this.Yp=tq(this.Yp,a.is_playground);this.bi=tq(this.bi,a.privembed);this.$p=tq(this.$p,a.loop);this.Lf=tq(this.Lf,a.modestbranding);"red"!=this.color&&(this.Lf=!1);this.Zp=tq(this.Zp,a.on3g);this.$a=wq(this.$a,a.pageid);this.Ul=Aq(this.Ul,a.vq);this.Gk=wq(this.Gk,a.playerapiid);this.ri=tq(this.ri,a.playsinline);this.Uk=tq(this.Uk,a.playonclick);
this.la=wq(this.la,a.cr);this.bc=tq(this.bc,a.logwatch);this.Bk=tq(this.Bk,a.canplaylive);this.Ub=tq(this.Ub,a.showinfo);this.Jc=tq(this.Jc,a.rel);this.mc=tq(this.mc,a.enablesizebutton);this.Pl=tq(this.Pl,a.ss);this.F=wq(this.F,a.theme);this.Ob=tq(this.Ob,a.use_native_controls);this.Qb=!oh&&tq(this.Qb,a.svt);this.Ab()&&(this.zk=tq(this.zk,a.retryneterr),this.Xk=tq(this.Xk,a.nologo));this.Ob&&(this.Lf=!0,this.ea=3);this.Ni=tq(this.Ni,a.ssl);if(this.qi=tq(this.qi,a.ssl_stream))this.Ni=!0;if(this.dc=
tq(this.dc,a.use_tablet_controls))this.F="dark",this.Li="blazer"==this.ob?"3":"1";b=this.tg;if(c=a.video_container_override){var d=c.split("x");2==d.length&&(c=parseInt(d[0],10),d=parseInt(d[1],10),b=isNaN(c)||isNaN(d)||0>=c*d?b:new G(c,d))}this.tg=b;this.Ha=wq(this.Ha,a.attrib);this.ya=wq(this.ya,a.sk);this.protocol=this.Ni?"https":"http";this.Pd="0"!=this.Wl;this.dk=tq(this.Pd,a.store_user_volume);this.Wd=tq(this.Wd,a.use_media_volume);if(b=a.BASE_YT_URL)c=(c=b&&b.match(Ie))?c[0]:"",d=ff(b)?b:"",
c!=d&&$e(Error(b+" behavior is not consistent")),d&&(this.qb=d);if(c=b=a.gdatabaseurl)c=!!b&&-1!=b.search(Le),d=ff(b),c!=d&&$e(Error(b+" behavior is not consistent")),c=d;c&&(this.Qo=b);kL(this,a);b=!this.b.aa;("detailpage"==this.ba||b&&"unknown"==this.g||"undefined"==this.g)&&delete this.g;this.Fc=this.Lf&&!this.Ob?!this.Ub:this.Ub||this.Pd?!1:this.Fc;b=this.xc||"detailpage"==this.ba;c=!0;this.$b&&(c=!1);pr("nintendo wiiu")&&(c=!1);this.Vl&&(c=!0);this.Rh=b&&c;this.j=a}w(jL,Mh);f=jL.prototype;
f.sf=null;f.Np=!0;f.Gf=!0;f.Sa="";f.Li="2";f.xc=!1;f.Vl=!1;f.qb="/";f.Qo="//gdata.youtube.com/";f.QE=!0;f.color="red";f.Wl="1";f.qf="web";f.ue="html5";f.Tk=!1;f.Mi=!1;f.aj=!0;f.Wn=!0;f.zg=!1;f.Mp=!1;f.ba="detailpage";f.Xp=!1;f.yc=!1;f.$b=!1;f.tb=!1;f.ir=!1;f.qd=!1;f.ye=!0;f.Yp=!1;f.bi=!1;f.og=!0;f.fg=0;f.Fg=!1;f.ze="";f.$p=!1;f.Lf=!1;f.Ul=Qp;f.Gk="";f.Zp=!1;f.$a="";f.ob=null;f.ri=!1;f.Qp=!1;f.zk=!1;f.Rh=!1;f.bc=!1;f.Bk=!0;f.Pd=!0;f.dk=!0;f.Wd=!1;f.Ub=!0;f.Rp=!0;f.Jc=!0;f.dh=!1;f.mc=!1;f.Sf=!0;
f.Fc=!1;f.Pl=!1;f.Xk=!1;f.Eo=!1;f.Ob=!1;f.Qb=!0;f.Ni=!1;f.qi=!1;f.dc=!1;f.Td=null;f.tg=null;f.Kq=null;f.Bf=null;f.Pa=null;f.ii=null;f.Xc="yt";f.Uk=!1;function bt(a,b){a.qa=b.get("d",a.qa);a.aa=b.get("f",a.aa)}
function kL(a,b){if(b){var c;(c=b.adformat)||(c=(c=b.attrib)&&c in eL&&c in fL?fL[c]+"_"+eL[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);d&&5==d.length&&(d=d[3],d=6==d||7==d||8==d||10==d,a.Ab()||d)&&(a.k=c,a.j.adformat=b.adformat,d||(a.ba="adunit"))}}a.sf=(b&&b.adpings?Ai(b.adpings):null)||a.sf;c=b.agcid;a.Ia=c;a.j.agcid=c;c=b.feature;a.C=c;a.j.feature=c;c=b.referrer;a.T=c;a.j.referrer=c;a.Ra=b.q;a.I=wq(a.I,b.cbrand);a.M=wq(a.M,b.cbr);a.L=wq(a.L,b.cbrver);a.qf=wq(a.qf,b.c);a.ue=wq(a.ue,
b.cver);a.N=wq(a.N,b.cmodel);a.O=wq(a.O,b.cnetwork);a.P=wq(a.P,b.cos);a.V=wq(a.V,b.cosver);a.o=wq(a.o,b.cplatform);a.bc=tq(a.bc,b.logwatch);a.za=vq(a.za,b.user_age);a.xa=wq(a.xa,b.user_display_image);a.ca=wq(a.ca,b.user_display_name);a.Ca=wq(a.Ca,b.user_gender);a.U=wq(a.U,b.eventid);a.oa=wq(a.oa,b.csi_page_type);a.Nk=tq(a.Nk,b.enablecsi)}
function lL(a){var b={};b.c=a.qf;a.ue&&(b.cver=a.ue);a.o&&(b.cplatform=a.o);a.I&&(b.cbrand=a.I);a.N&&(b.cmodel=a.N);a.O&&(b.cnetwork=a.O);a.M&&(b.cbr=a.M);a.L&&(b.cbrver=a.L);a.P&&(b.cos=a.P);a.V&&(b.cosver=a.V);return b}
function mL(a,b){switch(b.U){case 38:var c=b.videoId.indexOf(":");return ae("//play.google.com/books/volumes/"+b.videoId.slice(0,c)+"/content/media",{aid:b.videoId.slice(c+1),sig:b.Zj});case 30:return c="//docs.google.com/",a.qb!=jL.prototype.qb&&(c=a.qb),ae(c+"get_video_info",{docid:b.videoId,authuser:b.Sa,authkey:b.mb,eurl:a.g});case 33:return ae("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});default:c={html5:"1",video_id:b.videoId,cpn:b.Da,eurl:a.g,ps:a.ob,el:a.ba,hl:a.B,list:b.La,
agcid:a.Ia,sts:16268};a.wa&&(c.forced_experiments=a.wa);b.C?c.vvt=b.C:b.B&&(c.access_token=b.B);a.k&&(c.adformat=a.k);b.za&&(c.iv_load_policy=b.za);b.rg&&(c.autoplay="1");b.Jm&&(c.noiba="1");b.Km&&(c.mdx="1");b.Lm&&(c.utpsa="1");b.wb&&(c.is_fling="1");var d;d=(d=a.ii)?new G(d.clientWidth,d.clientHeight):new G(Number.NaN,Number.NaN);d.width&&(c.width=d.width);d.height&&(c.height=d.height);b.ya&&(c.ypc_preview="1");b.se&&(c.splay="1");a.A&&(c.content_v=a.A);b.hm&&(c.livemonitor=1);a.Sa&&(c.authuser=
a.Sa);a.$a&&(c.pageid=a.$a);a.U&&(c.ei=a.U);a.qi&&(c.ssl_stream="1");jf()&&(c.iframe="1");b.Qh&&(c.tst=b.Qh);ra(c,lL(a));return ae(a.qb+"get_video_info",c)}}function nL(a){return a.Mi?"//s.youtubeeducation.com/":a.og?"//s.youtube.com/":"//video.google.com/"}function oL(a){return nL(a)+(a.b.I?"api/stats/qoe":"stream_204")}function pL(a){return a.T?a.T.slice(0,128):""}function TH(a,b,c,d){return dI(a,b.videoId,b.La,c,d)}
function dI(a,b,c,d,e){b={v:b,list:c};d&&ra(b,d);a=ae(a.protocol+"://"+("www.youtube-nocookie.com"==window.location.host||a.Mi?"www.youtube.com":window.location.host)+"/watch",b);if(e){d="";d="!"=="#".charAt(1)?"#".substr(0,2):"#";b="#";"#"==b.charAt(0)&&(b="!"==b.charAt(1)?b.substr(2):b.substr(1));b=Ai(b);for(var g in e)b[g]=e[g];e=d+Zd(b);a=a+e}return a}
function fK(a,b){if("play"!=a.ob)return"https://support.google.com/youtube/?p=report_playback";var c={contact_type:"playbackissue",html5:1,plid:b.xb,ei:b.A,v:b.videoId,p:"movies_playback"};b.b&&(c.fmt=b.b.id);b.Da&&(c.cpn=b.Da);b.U&&(c.partnerid=b.U);return ae("//support.google.com/googleplay/",c)}
function qL(a){var b={};if(!a.Pa)return b;a.Pa.webkitDecodedFrameCount&&(b.hmewdfc=a.Pa.webkitDecodedFrameCount,b.hmewdrop=a.Pa.webkitDroppedFrameCount,b.hmewvdbc=a.Pa.webkitVideoDecodedByteCount,b.hmewadbc=a.Pa.webkitAudioDecodedByteCount);a.Pa.mozParsedFrames&&(b.hmempf=a.Pa.mozParsedFrames,b.hmemdf=a.Pa.mozDecodedFrames,b.hmempresented=a.Pa.mozPresentedFrames,b.hmempainted=a.Pa.mozPaintedFrames,b.hmempaintdelay=a.Pa.mozPaintDelay);return b}
function rL(a){var b=q("yt.www.watch.activity.getTimeSinceActive",window);if("detailpage"==a.ba&&b)return b();b=0;a.fg&&(b=v()-a.fg);return b}function aI(a){return"leanback"==a.ba||a.yc||!a.Jc&&!a.dh?!1:!0}function qt(a){return"detailpage"!=a.ba&&"embedded"!=a.ba&&"profilepage"!=a.ba?!1:!0}
f.Ab=function(){var a=document.location.toString(),b=!!a&&-1!=a.search(Je),c=ff(a);b!=c&&$e(Error(a+" behavior is not consistent"));a=c&&!jf();if(c=c&&jf()){var c=this.ze,b=!!c&&-1!=c.search(Re),d=ff(c)||gf(c,df);b!=d&&$e(Error(c+" behavior is not consistent"));c=d}return c||a};function uE(a){return rh&&pr("crkey")||"tv"==a.o}f.J=function(){this.ii=this.Pa=null;jL.G.J.call(this)};function sL(a,b){this.b=a;this.ta=b;this.g=1}function tL(a,b,c,d){d/=a.g;var e=AK(a.b)+1/BK(a.b),g;g=Math.max(.9*(d-3),zK(a.b)+8192*e);c=g/e/(b+c);c=Math.max(a.ta.A,Math.min(a.ta.O,c));c=Math.min(c,d);a=Math.max(a.ta.F,Math.ceil(a.ta.A*b));return Math.min(a,Math.max(Math.ceil(c*b),65536))}function uL(a){if(a.ta.P)return 1/(AK(a.b)+1/BK(a.b));var b=BK(a.b);a=zK(a.b)+1048576*AK(a.b);return b*Math.min(1,1048576/(b*a))}function vL(a){return uL(a)/a.g};function gH(a,b,c){this.b=a;this.video=b;this.g=c};function wL(a,b,c,d){this.N=a;this.ta=b;this.B=c;this.D=d;this.j=this.C=this.b=null;this.o="i";this.I=-1;this.A=this.g=null;this.k=[];this.F=this.M=0;this.L=null}function xL(a,b,c){"m"==c&&Sp(a.b)&&!Sp(b)&&(c="a");if("m"==c&&Sp(b))return a.o=c,yL(a,b),a.j=zL(a),new gH(a.g,a.j,c);var d=a.b.equals(b);if("m"==a.o&&Sp(a.b)&&d)return null;"r"!=c||d||(a.I=-1);yL(a,b);b=zL(a);if("r"==c&&!d&&b==a.j)return a.j=b,new gH(a.g,b,c);a.o=c;return null}function AL(a,b){BL(a);a.L=b;a.F=v();a.I=-1;yL(a,a.b)}
function BL(a){return!!a.F&&9E4>=v()-a.F}function zL(a){if(Sp(a.b)||!(8E3>v()-a.I)){a.F&&!BL(a)&&(a.F=0,yL(a,a.b));var b=vL(a.N);if(Sp(a.b))a.A=a.B.b[a.k[a.k.length-1].id];else{for(var c=Math.min(a.M,a.k.length-1),d=b/1.05-a.g.info.ua;0<c&&!(a.k[c].ua<=d);c--);for(b=b/a.ta.B-a.g.info.ua;c<a.k.length-1&&!(a.k[c+1].ua>=b);c++);a.M=c;a.A=a.B.b[a.k[c].id]}}return a.A}function CL(a){var b=a.o;a.o="a";a.I=v();return new gH(a.C,a.j,b)}
function yL(a,b){a.b=b;var c=a.D.g;if(!Sp(a.b)&&(c=hb(c,function(a){return a.ua>this.ta.ua?!1:!this.B.b[a.id].o},a),BL(a))){var c=hb(c,function(a){return a.id!=this.L.id},a),d=hb(c,function(a){return"140"==a.id||"134"==a.id||"243"==a.id});d.length&&(c=d)}c.length||(c=a.D.g);c=hb(c,a.b.k,a.b);c.length||(c=[a.D.g[0]]);c.sort(function(a,b){return a.ua-b.ua});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.ua*a.ta.B>g.ua&&(sb(c,e.video.width<=g.video.width?d-1:d),d--)}a.k=c}
function DL(a){var b=lb(a.D.b,function(a){return!!a.k&&a.k.b});b||(b=a.D.b[0]);a.g=a.B.b[b.id]}function EL(a){var b=vL(a.N)/1.05-a.g.info.ua,c=ob(a.k,function(a){return this.ta.ci&&this.ta.ci<vo[a.video.b]?!1:a.ua<b},a);0>c&&(c=0);a.M=c;a.A=a.B.b[a.k[c].id]};function FL(a,b){this.ta=a;this.j=b;this.pendingRequests_=[];this.b=[];this.k=this.g=null;this.o=0;this.ua=b.info.ua;this.B=this.A=this.C=!1}function GL(a,b){a.pendingRequests_.push(b);a.g=db(b.info.b);a.o+=Xo(b.info)}function HL(a){for(;a.pendingRequests_.length&&5==a.pendingRequests_[0].state;){var b=a.pendingRequests_.shift();a.o-=Xo(b.info);a.o+=db(b.k).buffer.byteLength;z(b.k,a.F,a)}}
FL.prototype.F=function(a){if(4==a.info.type){var b=a.info.b.Dr(a);a.info==this.g&&(this.g=db(b).info);z(b,this.F,this)}else 3==a.info.type&&this.b.push(a)};
function IL(a,b){if(a.ta.M?a.b.length&&!JL(a):a.C)return a.b[0].$;var c=a.j.info.g;if(a.b[0].info.o>=b)return null;var d;for(d=1;d<a.b.length;d++){var e=a.b[d].buffer!=a.b[d-1].buffer;if(a.b[d].info.o>b||e||a.ta.I)break}d--;var e=a.b[d].$.end,g=a.b[d].info.C-b;if(c&&1<g){c=Math.floor((b-a.b[d].info.o)/a.b[d].info.D*a.b[d].info.g);if(0==c)return null;e=a.b[d].$.start+c-1}return new zo(a.b[0].b?0:a.b[0].$.start,e)}
function KL(a,b){for(var c;a.b.length;){if(a.b[0].$.end>b.end){var d;c=a.b[0];var e=b.end-a.b[0].$.start+1,e=Math.min(e,c.info.g),g=new Oo(c.info.type,c.info.b,c.info.$,c.info.k,c.info.startTime,c.info.duration,c.info.j,e,!1);d=Bo(c.$.start,e);g=new mp(g,c.buffer,d,c.b);e=new Oo(c.info.type,c.info.b,c.info.$,c.info.k,c.info.startTime,c.info.duration,c.info.j+e,c.info.g-e,c.info.B);d=new zo(d.end+1,c.$.end);d=[g,new mp(e,c.buffer,d,!1)];c=d[0];a.b[0]=d[1]}else c=a.b.shift();d=a;g=c.info;d.k=g;d.C&&
d.k.A&&(d.C=!1);d.ua=Math.max(d.ua,g.b.info.ua);if(c.$.end==b.end)break}a.b.length&&c.buffer==a.b[0].buffer||(a.o-=c.buffer.byteLength)}function LL(a){a.pendingRequests_.length?a.g=db(a.pendingRequests_[a.pendingRequests_.length-1].info.b):a.b.length?a.g=db(a.b).info:a.g=a.k}function ML(a,b){var c=NL(a,b);if(0<=c)return c;a.g=a.j.zi(b).b[0];a.k&&a.k.B&&(a.k=null);return a.g.startTime}
function iH(a,b){OL(a);if(a.j.info.video&&a.k&&!a.k.A&&b){var c=mb(a.b,function(a){return a.info.A});a.b=yb(a.b,0,c+1);a.C=!0}else a.b=[];if(a.b.length)for(a.o=a.b[0].buffer.byteLength,c=1;c<a.b.length;c++)a.b[c].buffer!=a.b[c-1].buffer&&(a.o+=a.b[c].buffer.byteLength);else a.o=0}function PL(a){var b=!1,c;for(c=0;c<a.pendingRequests_.length;c++)if(7==a.pendingRequests_[c].state){b=!0;break}if(b){for(;c<a.pendingRequests_.length;)a.D(a.pendingRequests_.pop());LL(a)}}
function QL(a){return jb(a.b,function(a){return a.info.A})}function RL(a){return!!a.k&&a.k.B}function SL(a){var b=[];a.k&&b.push(a.k);z(a.b,function(a){b.push(a.info)});z(a.pendingRequests_,function(a){z(a.info.b,function(a){3!=a.type&&4!=a.type||b.push(a)})});a.g&&a.g!=db(b)&&b.push(a.g);return b}function JL(a){if(!a.g||!a.g.g)return!1;a=SL(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].o-a[b-1].C)))return!1;return!0}
function NL(a,b){if(JL(a)){var c;t:{c=SL(a);for(var d=0;d<c.length;d++)if(c[d].o<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break t}c=null}if(c)return c.startTime}return NaN}function TL(a){return jb(a.pendingRequests_,function(a){return 1==a.timing.priority&&3<=a.state})}function UL(a){return!!(a.g&&a.j.lc()&&a.g.b!=a.j&&a.g.b.info.ua<a.j.info.ua)}function VL(a,b){return!!(a.g&&!a.g.B&&a.g.C<b)}FL.prototype.D=function(a){Po(a.info.b[0])||a.dispose();this.o-=Xo(a.info)};
function OL(a){z(a.pendingRequests_,a.D,a);a.pendingRequests_=[];a.g=null};function WL(a,b,c){this.ta=a;this.info=b;this.timing=c;this.state=1;this.b=this.k=null;this.F=NaN;this.A=this.j=0;this.g=NaN;this.B=null;this.D="";this.o=null;this.C=0}WL.g=!1;WL.b=1E4;f=WL.prototype;f.getErrorCode=function(){return this.o};function XL(a){var b;b=a.timing;b={rt:((v()-b.j)/1E3).toFixed(2),lb:b.g,pt:(b.M/1E3).toFixed(2),pb:b.I};b.shost=Ci(a.D)||"";a.C&&(b.rc=a.C.toString());return b}
f.start=function(){var a=1==this.state,b=6==this.state;1==this.state||4==this.state||b&&YL(this);ZL(this,2);if(b){if(2>this.j){this.j++;a=WL.b*(.5+Math.random());1==this.j&&(a=2E3);L(u(this.Cm,this),a);return}b=this.info.j;if(!(this.F<=b.j)){b.g++;b.j=Mo-1;var c=lf(b.b);b.b=Eo(c,"cmo",encodeURIComponent("pf="+b.g));c.match("c\\.youtube\\.com/")&&(b.b+="&cmo=sensitive_content%3Dyes")}this.j=0}a?this.Cm():L(u(this.Cm,this),0)};
f.Cm=function(){if(!this.ga()){this.F=Mo++;var a;a=Wo(this.info);a=Eo(a,"keepalive","yes");this.j&&(a=Eo(a,"playerretry",this.j.toString()));this.D=a;this.b=new XMLHttpRequest;try{this.b.open("GET",a)}catch(b){this.o="net.ssl";ZL(this,6);return}this.b.responseType="arraybuffer";this.b.withCredentials=!0;var c=u(this.av,this);this.b.addEventListener("load",c,!1);this.b.addEventListener("error",c,!1);this.b.send();this.A=0;c=this.timing;c.j=v();c.o=c.j;c.g=0;c.D=!1;c.F=!1;c.k=0;c.C=CK(c.b);$L(c);c.M=
c.B-c.j;this.b.addEventListener("progress",u(this.cv,this),!1);0<this.ta.b&&(this.g=L(u(this.Go,this),this.ta.b));Co(a,"itag");Co(a,"range");Math.round(this.info.b[0].o);Math.round(db(this.info.b).C);v()}};f.cv=function(a){if(!this.ga()){this.b&&(this.C=this.b.status);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.j&&4E12>c?c:v();20>c-b.o||aM(b,c,a);b=this.timing;b.g>b.L&&8192<b.g&&3>this.state&&ZL(this,3)}};
f.av=function(a){var b=this.b;if(!this.ga()&&a.target==b){this.g&&(M(this.g),this.g=NaN);this.C=b.status;a=!1;400<=b.status?(a=!0,this.o="net.badstatus"):null==b.response&&(a=!0,this.o="net.connect");if(!a){var b=b.response,c;t:{if(2048>b.byteLength&&(c=String.fromCharCode.apply(String,new Uint8Array(b)),hf(c)))break t;c=""}if(c){c=Do(c,"keepalive");c=Do(c,"playerretry");b=this.info;if(b.g){var d=b.g;if(d){var e=d.split("?");if(0<e.length)for(var g=e[0].split("/"),d=0;d<g.length;d+=2)c=Do(c,g[d]);
if(1<e.length)for(e=e[1].split("&"),d=0;d<e.length;d++)c=Do(c,e[d].split("=")[0])}}c=Do(c,"range");b.j.b=c;ZL(this,4)}else if(this.info.$&&b.byteLength!=this.info.$.length)a=!0,this.o="fmt.unparseable";else{c=this.info.b;1!=c.length||c[0].$||(d=c[0],e=Bo(0,b.byteLength),d=new Oo(d.type,d.b,e,d.k,d.startTime,d.duration,d.j,e.length,d.B),c[0]=d);for(var d=[],e=0,h=!1,g=!1,k=0;k<c.length;k++){var l=c[k],p=b,s=Bo(e,l.g),t=!1;if(1==l.type)b.slice?p=b.slice(e,e+l.g):(h=new Uint8Array(b,e,e+l.g),p=(new Uint8Array(h)).buffer),
s=Bo(0,l.g),h=!0;else if(3==l.type||4==l.type)t=h&&!g,g=!0;d.push(new mp(l,p,s,t));e+=l.g}this.k=d;c=this.timing;d=v();b=b.byteLength;c.D||(c.D=!0,d=d>c.j&&4E12>d?d:v(),aM(c,d,b),e=(d-c.j)/1E3,c.F||!(8192<=c.g)||c.b.b.b||tK(c.b,e,b),8192<=c.g&&yK(c.b,b,c.k),xK(c.b,d-c.j,c.g),bM(c));v();ZL(this,5)}}a&&(YL(this),ZL(this,6))}};function YL(a){if(2>a.j)a=!0;else{var b=a.info.j;a=!(a.F>b.j&&1<=b.g)}return a}function ZL(a,b){a.state=b;4<=a.state&&bM(a.timing);a.B&&a.B(a)}
f.Go=function(){this.g=NaN;if(!this.ga()){var a=v(),b=!1;if(8192<=this.timing.g){var c=this.timing.B;$L(this.timing);this.timing.B-c>=.8*this.ta.b?(this.A++,b=5<=this.A):this.A=0}else b=this.timing,b=5E3<a-(b.j+1E3*b.C.delay);b?(b=this.timing,a=a>b.j&&4E12>a?a:v(),8192<=b.g||b.b.b.C?(b.k+=(a-b.o)/1E3,yK(b.b,b.I,b.k)):vK(b.b,a,(a-b.j)/1E3),xK(b.b,a-b.j,b.g),cM(this),this.o="net.timeout",ZL(this,Po(this.info.b[0])?6:7)):this.g=L(u(this.Go,this),this.ta.b)}};f.ga=function(){return-1==this.state};
f.dispose=function(){ZL(this,-1);this.B=this.k=null;cM(this);M(this.g);this.g=NaN};function cM(a){if(a.b){var b=a.b;a.b=null;b.abort()}bM(a.timing)};function dM(a,b,c,d){this.b=a;this.priority=b;this.I=c;this.L=d;this.g=this.o=this.j=NaN;this.F=this.D=this.A=!1;this.k=0;this.B=this.M=NaN}function bM(a){if(a.A){var b=a.b;b.k--;0==b.k&&b.g&&(b.j.b(.1,b.g/.1),b.g=0);a.A=!1}}
function aM(a,b,c){if(!a.A)8192<=c&&(vK(a.b,b,(b-a.j)/1E3),a.A=!0);else if(!a.b.b.b){var d=(b-a.o)/1E3,e=c-a.g;0<e&&(.2<d||1024>e?(a.k+=d,.2<d&&tK(a.b,.05,e)):tK(a.b,d,e),a.F=!0)}if(a.A&&a.b.b.b&&(e=c-a.g,d=a.b,d.b.b)){if(0<d.k){for(var g=b/1E3,h=0;d.o+.1<g&&10>h;h++)d.j.b(.1,d.g/.1),d.g=0,d.o+=.1;d.g+=e}uK(d)}a.o=b;a.g=c}function $L(a){var b=a.I-a.g,b=1E3*(b*a.C.tailDelay+b/a.C.byterate),c=v(),b=8192<=a.g?b+c:b+Math.max(c,a.j+1E3*a.C.delay);a.B=b};function eM(a,b,c,d){ej.call(this);this.A=a;this.ta=b;this.D=c;this.g=this.j=null;this.B=new sL(a,b);this.b=null;this.o=new wL(this.B,b,this.D,d);this.k=this.aa=this.O=this.P=NaN;this.F=!1;this.L=NaN;this.T=0;this.C=!1;this.ca={};this.N="";this.U=!1;this.I=0}w(eM,ej);eM.k=!1;eM.b=2/24;eM.g=1E3;eM.j=1E4;f=eM.prototype;
f.initialize=function(a,b,c){a=a||0;var d=this.o;d.o="i";DL(d);d.C=d.g;yL(d,b);EL(d);d.j=d.A;b=CL(d);this.j=new FL(this.ta,b.b);this.g=new FL(this.ta,b.video);this.H("formatchange",b);0!=a||c||(this.j.j.j||fM(this,this.j,!0),this.g.j.j||fM(this,this.g,!0));this.seek(a);gM(this,"gv")};f.resume=function(){this.C=!1};
f.aA=function(a){this.resume();this.b=a;wr(a)&&(a.b.addEventListener("updateend",u(this.oc,this),!1),a.g.addEventListener("updateend",u(this.oc,this),!1));gM(this,"msa");this.oc();this.aa=Ye(u(this.oc,this),eM.j)};function hM(a){a.b&&a.b.b&&a.b.b.removeEventListener&&(a.b.b.removeEventListener("updateend",u(a.oc,a),!1),a.b.g.removeEventListener("updateend",u(a.oc,a),!1));a.b=null;a.C=!0;a.j&&(iH(a.g,!1),iH(a.j,!1))}function iM(a){a.b&&ur(a.b)&&hM(a)}
function jM(a,b,c){if(!b.B||!c.remove)return!1;if(c.updating)return!0;if(c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),!0;b.B=!1;a.H("seekrequired");return!1}
function kM(a,b,c){if(!b.g){if(!b.j.lc())return b.j.j||fM(a,b,!1),!1;ML(b,a.k)}if(a.C)return!1;var d=b.pendingRequests_.length+c.pendingRequests_.length;if(TL(b)||TL(c))d-=1;if(2<=d+1)return!1;d=b.g;4==d.type&&d.b.lc()&&(b.g=db(d.b.Hi(d)),d=b.g);!d.B&&!d.b.Dg(d)||d.b.info.g&&4==d.type?a=!1:UL(b)&&a.ta.g?a=!0:(!(c=d.B||b.o+c.o>a.ta.j||VL(c,d.C))&&(c=3==d.type)&&(d=d.C,b=lM(a,b,!0),Sp(a.o.b)||(c=(v()-a.T)/1E3,b=Math.min(b,30+2*c)),c=d>a.k+b),a=c?!1:!0);return a}
function mM(a,b,c){if(!a.b||tr(a.b)||wr(a.b)){var d=a.k,e;e=a.B;c=tL(e,b.j.info.ua,c.j.info.ua,0);e=zK(e.b)+c*AK(e.b)+c/BK(e.b);e=Math.max(e,e+5-c/b.j.info.ua);d=d+e;(e=a.ta.N)||(a=a.o,e=!!(a.j&&a.A&&a.j.info.ua<a.A.info.ua&&"r"==a.o));t:if(a=e,!b.ta.M||JL(b)){if(b.pendingRequests_.length){if(b.pendingRequests_[0].info.b[0].startTime<=d)break t;OL(b)}for(e=b.b.length-1;0<=e;e--)c=b.b[e],c.info.startTime>d&&(b.b.pop(),b.b.length&&b.b[e-1].buffer==c.buffer||(b.o-=c.buffer.byteLength));LL(b);a&&b.g&&
d<b.g.startTime&&(b.g=b.j.zi(d,!0).b[0])}}}
function nM(a,b,c){kM(a,b,c);var d=b.g;if(b.g.b.lc()){UL(b)&&a.ta.g&&(mM(a,b,c),b.g||ML(b,a.k));var d=b.g,e=d.C-a.k,g;(g=b.j.lc()&&b.g.b!=b.j)&&!UL(b)&&(g=15>=e);var h=!d.$||0==d.g&&0==d.j?0:d.$.length-(d.j+d.g);g&&0==h&&(g=d.startTime+eM.b,d.g&&(g+=d.duration),ML(b,g),d=b.g,g=!1);d.b.Kl()?(c=tL(a.B,d.b.info.ua,c.j.info.ua,e),e=g,c=So(d,c),c.$&&1<c.b.length&&(e?c=So(d,c.b[0].g):(e=c.b[c.b.length-1],g=e.g/c.$.length,!e.A&&.4>g&&(c=So(d,c.$.length-e.g)))),d=c):d=Zo(d.b,d)}else d.b.Kl()?(c=tL(a.B,b.j.info.ua,
c.j.info.ua,0),d=So(d,c)):d=Zo(d.b,d);GL(b,oM(a,d,!1))}function oM(a,b,c){if(3==b.b[b.b.length-1].type){var d;t:{d=a.o;var e=b.b[0].b;if(e.info.video){if(d.j!=e){d.j=e;d=CL(d);break t}}else d.C=e;d=null}fH(a,d)}e=c?2:1;a.C&&(e=0);c=Xo(b);d=a.A;var g=a.B,h=Math.min(2.5,zK(g.b)),g=uL(g);b=new WL(a.ta,b,new dM(d,e,c,c-h*g));a=u(a.qz,a);b.B=a;b.start();return b}function fH(a,b){b&&a.H("formatchange",b)}
f.qz=function(a){if(!this.ga()&&3<=a.state){var b=a.info.b[0].b,c=!this.ea&&b.info.video,d=!this.V&&b.info.g;6==a.state&&YL(a)?(this.xf(!1,a.getErrorCode(),XL(a)),b.info.video&&0<a.j&&!BL(this.o)?(AL(this.o,b.info),OL(this.g),Po(a.info.b[0])&&fM(this,this.g,!1),this.oc()):a.start()):4==a.state?(c?gM(this,"vrr"):d&&gM(this,"arr"),a.start()):5==a.state?(c?(this.ea=a.D,pz()&&vz()):d&&(this.V=a.D),z(a.k,function(a){Po(a.info)&&a.info.b.bq(a)}),kb(a.k,function(a){return np(a)})&&!a.k[0].info.b.Xl()?this.oc():
this.xf(!0,"fmt.unparseable",XL(a))):7==a.state?(this.xf(!1,a.getErrorCode(),XL(a)),jH(this)):3==a.state?(this.oc(),c&&pz()&&sg(document.body,"exp-js-scheduler-aggressive")&&vz()):Po(a.info.b[0])?(b.o=!0,this.oc()):this.xf(!0,"net.retryexhausted",XL(a))}};function jH(a){if(isNaN(a.P)){var b=u(a.oc,a);a.P=L(b,0)}}function pM(a){if(isNaN(a.O)){var b=u(function(){this.O=NaN;this.oc()},a);a.O=L(b,eM.g)}}
f.oc=function(){this.P=NaN;iM(this);if(this.b&&!vr(this.b))if(this.D.g)Infinity!=this.L&&(this.L=Infinity,this.b.wf(Infinity));else if(!isFinite(this.L)){var a=Math.floor(Math.max(this.j.j.index.yf(),this.g.j.index.yf()));0<a&&(this.b.wf(a),this.L=a)}if(!this.ga())if(a=this.D,v()-a.B>=a.o){a=this.D;if(!a.k){var b=Eo(a.D,"start_seq",(Sb(a.b).index.jc()+1).toString());Ip(a,b)}pM(this)}else if("prerender"==window.document.webkitVisibilityState)pM(this);else if(iM(this),HL(this.g),HL(this.j),PL(this.g),
PL(this.j),!this.b||jM(this,this.j,this.b.b)||jM(this,this.g,this.b.g)||((a=qM(this,this.g,this.b.g))&&!this.I&&(this.I=v(),gM(this,"vda")),b=Mt(this.b.g.buffered,this.k),isNaN(b)&&!RL(this.g)&&this.b.b.buffered.length||(RL(this.g)&&(b=NaN),a|=qM(this,this.j,this.b.b,b)),RL(this.g)&&RL(this.j)&&tr(this.b)&&!vr(this.b)&&(b=this.b,tr(b)&&b.j.endOfStream(),wK(this.A)),a&&!wr(this.b)&&jH(this)),hH(this,this.g,zL(this.o)),hH(this,this.j,this.o.g),this.g.j.o||this.j.j.o)this.xf(!0,"net.retryexhausted");
else{a=this.I?v()-this.I:0;if(this.U||a>=this.ta.D)kM(this,this.g,this.j)&&nM(this,this.g,this.j),kM(this,this.j,this.g)&&nM(this,this.j,this.g);!this.ta.L||!this.N||this.C||this.g.pendingRequests_.length||this.j.pendingRequests_.length||(a=30+this.k,VL(this.g,a)||VL(this.j,a)||(a=this.N,this.N="",b=Ci(a),Li(a,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:u(this.xf,this,!1,"pathprobe.net",{shost:b})})))}};
function qM(a,b,c,d){if(c.updating)return!0;var e=b.b.length?b.b[0]:null;if(!e)return!1;!b.k||b.k.A||Qo(b.k,e.info)||(b.k=null,tr(a.b)&&c.abort(),c.g=null);var g=!(!b.ta.I||!b.b.length||1!=b.b[0].info.b.info.b||0!=b.b[0].info.j),h;if(h=g||!e.b)h=e.info.b.b,c.g==h?h=!1:(rM(a,c,h),c.g=h,a.H("initsegment",c.g),h=c.updating);if(h)return!0;h=lM(a,b,!1);h=a.k+h;0<=d&&(h=Math.min(h,d));d=IL(b,h);if(!d)return!1;if(g)return e=b.b[0],g=ap(e),d=e.info.b.index.Ql(e.info.k),(d=bp(g,d))?(g=g.getInt32(0),KL(b,Bo(e.$.start,
g)),g=d):g=null,rM(a,c,new Uint8Array(g)),!0;g=new Uint8Array(e.buffer,d.start,d.length);a.D.j&&3==e.info.type&&ia(c.timestampOffset)&&(h=0,h=a.ta.V&&!b.A?-op(e):-(op(e)-e.info.startTime),c.timestampOffset==h||isNaN(h)||(c.timestampOffset=h));if(!rM(a,c,g))return!1;a.D.j&&a.ta.V&&!b.A||KL(b,d);b.A||(b.A=!0);e.b&&(c.g=e.info.b.b,a.H("initsegment",c.g));return!0}function rM(a,b,c){if(wr(a.b))try{b.appendBuffer(c)}catch(d){return!1}else b.append(c);return!ur(a.b)}
function lM(a,b,c){var d;d=Sp(a.o.b)&&a.ta.g?b.j.info.g?10485760:62914560:b.j.info.g?a.ta.k:a.ta.o;c&&(d+=a.ta.j);return d/(Sp(a.o.b)?b.g?b.g.b.info.ua:b.j.info.ua:b.ua)}f.seek=function(a){if(!this.ga()){iM(this);this.T=v();this.g.j=zL(this.o);var b=sM(this,this.g,a,this.b&&this.b.g);this.j.j=this.o.g;var c=sM(this,this.j,b,this.b&&this.b.b);this.k=Math.max(a,b,c);this.F=!0;jH(this)}};
function sM(a,b,c,d){if(b.j.lc())if(d){var e=Mt(d.buffered,c),g=NaN,h=b.k;h&&(g=Mt(d.buffered,h.b.index.Ui(h.k)));if(e==g&&JL(b))return c;d=NL(b,c);if(0<=d)return d;iH(b,!0);b.j.info.video&&b.k&&!b.k.A&&!QL(b)&&(d=b.k,b.b.length&&(d=db(b.b).info),d=b.g||d,d=So(d,d.$.length-(d.g+d.j)),GL(b,oM(a,d,!0)));if(isNaN(e))return ML(b,c);ML(b,e+eM.b)}else ML(b,c);else b.j.j||fM(a,b,!1),0!=c&&OL(b);return c}function hH(a,b,c){b.j!=c&&(b.j=c,c.j||fM(a,b,!1))}
function fM(a,b,c){var d=c?65536:0;c&&!isNaN(a.ta.C)&&(d=Math.floor(Math.max(d,a.ta.C*b.j.info.ua)));c=b.j.Tr(d);z(c,function(a){var c=oM(this,a,!0);!Po(a.b[a.b.length-1])&&GL(b,c)},a);b.j.j=!0}f.J=function(){hM(this);this.j&&(OL(this.j),OL(this.g));Ze(this.aa);this.g=this.j=null;eM.G.J.call(this)};f.xf=function(a,b,c){var d;if(c)for(var e in c)d=(d?d+";":"")+e+"."+c[e];this.H(a?"fatalerror":"softerror",b,d);a&&(this.b&&tr(this.b)&&(a=this.b,tr(a)&&a.j.endOfStream("network")),this.dispose())};
eM.prototype.getDebugInfo=function(){var a={lct:this.k.toFixed(3),lsk:this.F,lmf:Sp(this.o.b),lbw:BK(this.A).toFixed(3),lhd:zK(this.A).toFixed(3),ltd:(1E9*AK(this.A)).toFixed(3),laa:this.j.k?Vo(this.j.k):"",lva:this.g.k?Vo(this.g.k):"",lar:this.j.g?Vo(this.j.g):"",lvr:this.g.g?Vo(this.g.g):""};this.b&&!ur(this.b)&&(a.lab=Kt(this.b.b.buffered),a.lvb=Kt(this.b.g.buffered));return a};function gM(a,b,c){a.ca[b]=c?window.performance.timing.navigationStart+c:v()};function tM(a,b,c,d){this.j=a;this.F=b;this.A=c;this.b=d;this.o="";this.g=this.B=this.C=this.D=null;this.k=new lr(this);R(this,this.k);this.b&&(mr(this.k,this.b,["message","mskeymessage"],this.Uo),mr(this.k,this.b,["error","mskeyerror"],this.To),mr(this.k,this.b,["ready","mskeyadded"],this.So))}w(tM,Mh);f=tM.prototype;f.setCallbacks=function(a,b,c,d){this.D=a;this.C=b;this.B=c;this.g=d};f.Uo=function(a){this.D.call(this.g,a)};
f.To=function(a){var b;this.b?(b=this.b.error.code,a=this.b.error.systemCode):(b=a.errorCode.code,a=a.systemCode);this.C.call(this.g,b,a)};f.So=function(a){this.B.call(this.g,a)};f.update=function(a){this.b?this.b.update(a):this.j.addKey?this.j.addKey(this.F.b,a,this.A,this.o):this.j.webkitAddKey(this.F.b,a,this.A,this.o)};f.J=function(){this.j=null;tM.G.J.call(this)};function uM(a,b){this.b=a;this.k=b;this.A={};this.j=null;this.o=new lr(this);R(this,this.o);gr()||(mr(this.o,this.b,["keymessage","webkitkeymessage"],this.D),mr(this.o,this.b,["keyerror","webkitkeyerror"],this.C),mr(this.o,this.b,["keyadded","webkitkeyadded"],this.B));this.g=null}w(uM,Mh);function vM(a){a.g=new (gr())(a.k.b);a.b&&(a.b.msSetMediaKeys?a.b.msSetMediaKeys(a.g):a.b.setMediaKeys(a.g))}
function wM(a,b){var c=a.A[b.sessionId];!c&&a.j&&(c=a.j,a.j=null,c.o=b.sessionId,a.A[b.sessionId]=c);return c}uM.prototype.D=function(a){var b=wM(this,a);b&&b.Uo(a)};uM.prototype.C=function(a){var b=wM(this,a);b&&b.To(a)};uM.prototype.B=function(a){var b=wM(this,a);b&&b.So(a)};uM.prototype.J=function(){this.b=null;uM.G.J.call(this)};var xM=null,yM=null;function zM(a,b){this.url=a;this.b=b};function AM(a,b,c){this.b=a;this.headers=b;this.message=c};function BM(a,b,c,d,e,g){this.F=a;this.g=d;this.C=e;this.o={session_id:g};xt(this,a.j);this.b=[];this.k=this.B=this.D=!1;var h;try{var k=c.b;if(gr()){b.g||vM(b);var l=c.g||"video/mp4",p;if("com.microsoft.playready"==b.k.b){var s=new Uint8Array(270);for(a=0;135>a;a++)s[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);p=b.g.createSession(l,k,s)}else p=b.g.createSession(l,k);h=new tM(null,null,
null,p)}else b.b.generateKeyRequest?b.b.generateKeyRequest(b.k.b,k):b.b.webkitGenerateKeyRequest(b.k.b,k),b.j=new tM(b.b,b.k,k,null),h=b.j}catch(t){b="g",t instanceof DOMException&&(b+=t.code),this.g.H("licenseerror","html5.missingapi.drm",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),h=null}if(this.j=h)this.j.setCallbacks(this.Yk,this.tv,this.sv,this),R(this,this.j)}w(BM,Mh);function xt(a,b){if(ff(b)){for(var c in a.o)b=ee(b,c,a.o[c]);a.A=b}else CM(a,"drm.auth","u")}f=BM.prototype;
f.start=function(){this.ga()||(this.D=!0,this.b.length&&this.Yk(this.b.shift()))};
f.Yk=function(a){if(!this.ga())if(this.k&&a.defaultURL&&xt(this,a.defaultURL),this.D){a=a.message;if("com.microsoft.playready"==this.F.b){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);b=(new DOMParser).parseFromString(b,"text/xml").querySelector("Challenge");a=Uint8Array;b=b.childNodes[0].data;if(!xM)for(xM={},yM={},c=0;65>c;c++)xM[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),yM[xM[c]]=c;for(var c=yM,d=[],e=0;e<b.length;){var g=c[b.charAt(e++)],
h=e<b.length?c[b.charAt(e)]:0;++e;var k=e<b.length?c[b.charAt(e)]:64;++e;var l=e<b.length?c[b.charAt(e)]:64;++e;if(null==g||null==h||null==k||null==l)throw Error();d.push(g<<2|h>>4);64!=k&&(d.push(h<<4&240|k>>2),64!=l&&d.push(k<<6&192|l))}a=new a(d)}a={format:"RAW",method:"POST",nx:a,responseType:"arraybuffer",withCredentials:!0,onSuccess:this.ox,onError:this.lp,context:this};b=this.A;this.C&&(b=ee(b,"access_token",this.C));Li(b,a)}else this.b.push(a),this.B||(this.B=!0,this.g.H("newsession",this))};
f.sv=function(){this.ga()||(this.k||(this.g.H("sessionready"),this.k=!0),this.b.length&&this.Yk(this.b.shift()))};
f.ox=function(a){if(!this.ga())if(0!=a.status&&a.response){t:{a=new Uint8Array(a.response);var b=0,c=String.fromCharCode.apply(String,a.subarray(0,16384)).split("\r\n"),d=c[0];sb(c,0);c.pop();var b=b+(d.length+2),e=d.match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null!=e){d=e[1];isFinite(d)&&(d=String(d));for(var d=r(d)?/^\s*-?0x/i.test(d)?parseInt(d,16):parseInt(d,10):NaN,g={},h=0;h<c.length;h++){e=c[h];b+=e.length+2;if(0==e.length){a=new AM(d,g,a.subarray(b));break t}e=e.match(/([^:]+):\s+([^]+)/);
if(null==e)break;g[e[1]]=e[2]}}a=null}a?0!=a.b?CM(this,"drm.auth","f"+a.b,Lu(a.b)):(b=(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new zM(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60)),(b||c)&&this.g.H("newlicense",b,c),this.j.update(a.message)):CM(this,"drm.net","r0","YTP_ERROR_SERVER_ERROR")}else this.lp(a)};f.tv=function(a,b){this.ga()||CM(this,"drm.keyerror","s"+a+"."+b)};f.lp=function(a){CM(this,"drm.net","r"+a.status)};
function CM(a,b,c,d){a.ga()||a.g.H("licenseerror",b,c,d);a.dispose()}f.J=function(){this.g=null;BM.G.J.call(this)};function DM(a,b){this.b=a;this.g=b||null};function EM(a,b){ej.call(this);this.C=a;this.b=b;this.subscribe("newlicense",this.Tu,this);this.subscribe("newsession",this.Uu,this);this.subscribe("sessionready",this.Vu,this);this.N=rq();this.L=null;this.B={};this.g=[];this.j=Pp;this.I=new uM("com.microsoft.playready"==b.b?null:a,b);R(this,this.I);this.o=new uM(a,b);R(this,this.o);this.A=2;this.D=new lr(this);R(this,this.D);this.k=!1;this.F=null;mr(this.D,this.C,gr()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.Su)}w(EM,ej);f=EM.prototype;
f.Su=function(a){FM(this,new DM(a.initData,a.contentType),!0)};
function FM(a,b,c){if(!(a.ga()||"com.microsoft.playready"==a.b.b^!c||(c=b.b,a.k&&"widevine"==a.b.g))){var d=String.fromCharCode.apply(String,c);if(!a.B[d]){a.B[d]=!0;d="clearkey"==a.b.g;if(112==c[4]&&115==c[5]&&115==c[6]&&104==c[7]&&d){t:{for(var e=new DataView(c.buffer),d=0;d<e.byteLength;){var g=e.getUint32(d,!1);if(1886614376!=e.getUint32(d+4,!1))break;if(1477738184==e.getUint32(d+12,!1)&&69420633==e.getUint32(d+16,!1)&&2464609580==e.getUint32(d+20,!1)&&1558758348==e.getUint32(d+24,!1)){e=e.getUint32(d+
28,!1);if(16!=e)break;c=c.subarray(d+32,d+32+e);break t}d+=g}c=null}if(!c)return}a.g.push(b);1<a.g.length||(GM(a,b),a.k=!0)}}}function GM(a,b){var c=new BM(a.b,a.I,b,a,a.L,a.N);R(a,c)}f.Tu=function(a,b){a&&C(a,"HD")&&!Rp(this.j)&&"com.microsoft.playready"!=this.b.b&&(this.j=Qp,this.H("qualitychange"));b&&!this.F&&(this.F=b,this.H("heartbeatparams",b))};f.Uu=function(){this.ga()||(this.g.shift(),this.g.length&&GM(this,this.g[0]))};f.Vu=function(){this.A--;0==this.A&&vM(this.o)};
f.J=function(){this.C=null;this.g=[];EM.G.J.call(this)};function HM(a){this.j={};this.j.c1a=u(this.k,this);this.j.c3a=u(this.o,this);(this.b=a)&&this.b.ea?this.g=Ai(this.b.ea):this.g=[]}HM.prototype.k=function(){var a=q("yt.abuse.botguardInitialized");return a&&a()?(a=q("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};HM.prototype.o=function(a){return"r3a="+Math.floor(this.b.Oa%$a(a.c3a))};function IM(a,b,c){this.b=a;this.j=b;this.g=c};function JM(a){this.b=a}function KM(a,b){return Tp(Tp(a.b.Ul,b.jm),b.tf)}
function LM(a,b){var c;c=!!b.g.b;var d;!a.b.b.D||"detailpage"!=a.b.ba&&"adunit"!=a.b.ba||(d=$J(a.b).clone());d||(a.b.tg?d=a.b.tg.clone():oh&&!a.b.ri?d=window.screen&&window.screen.width?new G(window.screen.width,window.screen.height):null:a.b.Td&&(d=a.b.Td.clone()));d?((oh||kc||c)&&d.scale(window.devicePixelRatio||1),c=d):c=new G(640,360);var e;d=b.g.g;if(d.length){for(var g=0;g<d.length&&!(e=d[g].video,null===c||.85*e.width<c.width&&.85*e.height<c.height);g++);e=Op("auto",e.b,!1)}else e=Qp;c=e.b;
a.b.b.N&&(c=Math.max(c,vo.large));rh&&pr("crkey")&&(c=Math.max(c,vo.hd1080));if(d=(pr("armv7")||pr("android"))&&!uE(a.b))d=b.g.g[0],d="9"==d.j||"("==d.j;d&&(c=Math.min(c,vo.large));c=Math.max(c,vo.medium);e.b!=c&&(e=new Np(e.g,c,e.j));return e};function MM(){this.k=this.b=NaN;this.j=this.g=!1}function eu(a,b,c,d){if(d=1<d)a.j=!0;if(a.g)b!=a.b&&(a.g=!1);else if(0<b&&a.b==b)return c-a.k>(d||!a.j?1500:400);a.b=b;a.k=c;return!1};function NM(){this.b=this.g=!1}NM.prototype.start=function(){this.g=!0};function OM(){this.g=0;this.b=this.o=this.j=this.k=NaN};var PM={};function QM(a){return a?24==a.length&&"UC"==a.slice(0,2)?a.substr(2):22==a.length?a:null:null};var RM;
RM={o:["BC","AD"],k:["Before Christ","Anno Domini"],B:"JFMAMJJASOND".split(""),N:"JFMAMJJASOND".split(""),A:"January February March April May June July August September October November December".split(" "),L:"January February March April May June July August September October November December".split(" "),F:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),P:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),aa:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),T:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
M:"Sun Mon Tue Wed Thu Fri Sat".split(" "),V:"Sun Mon Tue Wed Thu Fri Sat".split(" "),C:"SMTWTFS".split(""),O:"SMTWTFS".split(""),I:["Q1","Q2","Q3","Q4"],D:["1st quarter","2nd quarter","3rd quarter","4th quarter"],b:["AM","PM"],g:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],U:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],j:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],EE:6,ca:[5,6],FE:5};function SM(a,b,c,d,e,g){r(a)?(this.j="y"==a?b:0,this.g="m"==a?b:0,this.b="d"==a?b:0,this.k="h"==a?b:0,this.o="n"==a?b:0,this.A="s"==a?b:0):(this.j=a||0,this.g=b||0,this.b=c||0,this.k=d||0,this.o=e||0,this.A=g||0)}SM.prototype.equals=function(a){return a.j==this.j&&a.g==this.g&&a.b==this.b&&a.k==this.k&&a.o==this.o&&a.A==this.A};SM.prototype.clone=function(){return new SM(this.j,this.g,this.b,this.k,this.o,this.A)};
SM.prototype.add=function(a){this.j+=a.j;this.g+=a.g;this.b+=a.b;this.k+=a.k;this.o+=a.o;this.A+=a.A};function TM(a,b,c){ia(a)?(this.b=UM(a,b||0,c||1),VM(this,c||1)):ka(a)?(this.b=UM(a.getFullYear(),a.getMonth(),a.getDate()),VM(this,a.getDate())):(this.b=new Date(v()),this.b.setHours(0),this.b.setMinutes(0),this.b.setSeconds(0),this.b.setMilliseconds(0))}function UM(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=TM.prototype;f.ks=RM.EE;f.ls=RM.FE;
f.clone=function(){var a=new TM(this.b);a.ks=this.ks;a.ls=this.ls;return a};f.getFullYear=function(){return this.b.getFullYear()};f.getMonth=function(){return this.b.getMonth()};f.getDate=function(){return this.b.getDate()};f.getTime=function(){return this.b.getTime()};f.set=function(a){this.b=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
f.add=function(a){if(a.j||a.g){var b=this.getMonth()+a.g+12*a.j,c=this.getFullYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var d;t:{switch(b){case 1:d=0!=c%4||0==c%100&&0!=c%400?28:29;break t;case 5:case 8:case 10:case 3:d=30;break t}d=31}d=Math.min(d,this.getDate());this.b.setDate(1);this.b.setFullYear(c);this.b.setMonth(b);this.b.setDate(d)}a.b&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.b),this.b.setDate(1),this.b.setFullYear(a.getFullYear()),
this.b.setMonth(a.getMonth()),this.b.setDate(a.getDate()),VM(this,a.getDate()))};f.RE=function(){return[this.getFullYear(),Ta(this.getMonth()+1),Ta(this.getDate())].join("")+""};f.equals=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};f.toString=function(){return this.RE()};function VM(a,b){a.getDate()!=b&&a.b.setUTCHours(a.b.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.b.valueOf()};var WM=["3djj8jS0370cu_ghKs_Ong","LsooMJoIpl_7ux2jvdPB-Q","JkWoS4RsldA1coEIot5yDA","jVkjd2VWCWO-9DHRQER3Yg","L8ZULXASCc1I_oaOT0NaOQ"];function XM(a){this.g=a;this.b=0;this.o=NaN;this.j=0;this.da=[];this.k=YM(this.g);this.A=this.B=0}function ZM(a){a.k.startTime=a.j;a.k.endTime=a.b;a.da.length&&db(a.da).isEmpty()?a.da[a.da.length-1]=a.k:a.da.length&&a.k.isEmpty()||a.da.push(a.k);a.B+=a.b-a.j;a.k=YM(a.g);a.j=a.b}function $M(a){return a.B+a.g.j()-a.j}function aN(a){a.da.length&&a.b==a.j||ZM(a);var b=a.da;a.da=[];return b}
XM.prototype.update=function(){var a=this.g.j()||0,b=bN(this.g);if(a!=this.b||cN(this,a,b)){if(a<this.b||a-this.b>b-this.o+.5||cN(this,a,b))ZM(this),this.j=a;this.o=b;this.b=a}};function cN(a,b,c){c-=a.o;return b==a.b&&.5<c};function dN(a,b){this.b=b;this.k=!1;this.g=a}dN.prototype.j=function(){return{ps:this.b.ob,el:this.b.ba}};dN.prototype.send=function(){this.k||(qf(ae(this.b.qb+"set_awesome",this.j())),this.k=!0)};function eN(a,b,c){dN.call(this,b,c);this.o=a}w(eN,dN);
eN.prototype.j=function(){var a=eN.G.j.call(this);ra(a,lL(this.b));var b=Jb(this.g.pg/this.g.Oa,0,1);ra(a,{html5:"1",video_id:this.g.videoId,eurl:this.b.g,framer:this.b.D,feature:this.b.C,list:this.g.La,w:b,l:this.g.Oa,plid:this.g.xb,ei:this.g.A,access_token:this.g.B,tpmt:$M(this.o),cpn:this.g.Da});this.b.k&&(a.adformat=this.b.k);this.b.T&&(a.referrer=pL(this.b));this.b.xc&&(a.autoplay="1");this.b.Sa&&(a.authuser=this.b.Sa);this.b.$a&&(a.pageid=this.b.$a);this.g.se&&(a.splay="1");this.g.I&&(a.subscribed=
this.g.I);ra(a,eN.G.j.call(this));ra(a,lL(this.b));return a};function fN(a){this.b=a;this.j={};this.M=NaN;this.o=new gw(this.Ou,3E4,this);R(this,this.o);this.A=new gw(this.Ck,100,this);R(this,this.A);this.g="N";this.k=0;this.D=this.L=NaN;this.N="";this.C=this.F=0;this.I=this.B=!1}w(fN,Mh);var gN={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function hN(a,b,c,d){var e=a.j[b];e||(e=[],a.j[b]=e);a=0<=d?d:bN(a.b);e.push(a.toFixed(3)+":"+c.join(":"))}f=fN.prototype;
f.Ck=function(a){a=a||bN(this.b);var b=this.b.B();if(!isNaN(this.O)&&!isNaN(b.j)){var c=b.j-this.O;0<c&&hN(this,"bwm",[c,(b.o-this.P).toFixed(3)],a)}this.O=b.j;this.P=b.o;isNaN(b.b)||hN(this,"bwe",[b.b.toFixed(0)],a);isNaN(b.g)||(c=b.g,b.k<c&&(c=b.k),this.L!=c&&(hN(this,"bh",[c.toFixed(3)],a),this.L=c),this.b.g.b.A&&3>c&&("PL"==this.g||"B"==this.g)&&this.A.start());hN(this,"cmt",[this.b.j()],a)};
function iN(a){var b={event:"streamingstats"};a.b.b.b&&(b.fmt=a.b.b.b.id);b.cpn=a.b.b.Da;b.ei=a.b.b.A;b.el=a.b.g.ba;b.docid=a.b.b.videoId;b.ns=a.b.g.Xc;b.fexp=a.b.g.b.b.toString();a.b.g.k&&(b.adformat=a.b.g.k);a.b.b.Za&&(b.live=a.b.b.nb?"dvr":"live");b.html5="1";return b}
f.xg=function(a){if(!this.ga()&&!Zb(this.j)){0!=this.A.pa||this.Ck(a);a=qL(this.b.g).hmewdrop;0<=a&&a!=this.D&&hN(this,"df",[a-(this.D||0)]);this.D=a;a=iN(this);ec(a,lL(this.b.g));a=ae(oL(this.b.g),a);for(var b in this.j)a+="&"+b+"="+this.j[b].join(",");qf(a);this.j={};this.o.start()}};f.Og=function(){hN(this,"vps",["N"]);this.M=Ye(u(this.xg,this),1E4);this.o.start()};f.onError=function(a,b){var c=this.b.j(),c=[a,c.toFixed(3)];b&&c.push(b);hN(this,"error",c)};
f.Ou=function(){"PL"==this.g&&(hN(this,"vps",[this.g]),this.xg())};f.J=function(){fN.G.J.call(this);Ze(this.M)};function jN(a,b,c,d){this.b=[];this.o=[];this.I=!1;this.g="watchtime"==c;this.la="playback"==c;this.ea="delayplay"==c;this.za=(this.F="atr"==c)?"/api/stats/"+c:nL(b)+"api/stats/"+c;d&&(this.Zn=d.fs,d.rtn&&(this.qg=d.rtn),this.g?(this.of=d.state,0<d.rti&&(this.Th=d.rti)):(this.oa=d.mos,this.wa=d.volume,d.at&&(this.L=d.at),d.allowed&&(this.A=d.allowed),d.ex_ads&&(this.D=d.ex_ads)));this.Ca=b.k;this.Xh=b.xc;this.Ia=b.A;this.Ha=b.I;this.Ra=b.M;this.Wa=b.L;this.eb=b.qf;this.gb=b.ue;this.hb=b.N;this.jb=
b.O;this.mb=b.P;this.wb=b.V;this.ac=b.o;this.Vc=b.g;this.Ld=b.ba;this.o=b.b.b;this.O=b.B;this.Yn=b.Xc;this.gf=b.T;this.P=b.la;this.j=b.C;this.pf=b.Ra;this.aa=b.za;this.ca=b.Ca;this.ya=rL(b);!a.b||a.Wa.isEmpty();this.Xh=a.rg||this.Xh;this.U=a.Qh;this.Wc=a.Da;this.C=a.pf;this.zb=a.$j;this.k=a.pg;this.N=a.re;this.mf=a.b.id;this.$n=a.se;this.nf=a.Oh;a.Za&&(this.qa=a.nb?"dvr":"live");this.hf=a.Xj;this.xb=a.xb;this.Md=a.A;this.La=a.La;this.j=a.Ha||this.j;this.V=a.gb;this.T=a.hb;this.jf=a.Ph;this.lf=a.I;
this.videoId=a.videoId;this.kf=a.eb}f=jN.prototype;f.Xh=!1;f.pv=!1;f.Fo=!1;f.Zn=!1;f.Nu=!1;f.$n=!1;f.Yn="yt";f.Th=null;f.qg=null;f.send=function(){if(!this.I){var a=kN(this),a=ae(this.za,a);if(this.F)this.B&&Li(a,{method:"POST",fd:{atr:this.B}});else{var b;b||(b=document.location.href);b=Rd(b)[1]||null;null!==b&&"https"==b&&this.C?Li(a,{headers:{Authorization:"CredentialTransfer type="+this.zb+",token="+this.C}}):qf(a)}this.I=!0}};
function kN(a){var b={ns:a.Yn,el:a.Ld,cpn:a.Wc,docid:a.videoId,ver:2,referrer:a.gf,cmt:a.zf(a.k),plid:a.xb,ei:a.Md,fmt:a.mf,fs:a.Zn?"1":"0",rt:a.zf(a.xa),c:a.eb,cver:a.gb,adformat:a.Ca,content_v:a.Ia,euri:a.Vc,subscribed:a.lf,lact:a.ya,live:a.qa,cplatform:a.ac,cbrand:a.Ha,cmodel:a.hb,cnetwork:a.jb,cbr:a.Ra,cbrver:a.Wa,cos:a.mb,cosver:a.wb,mos:a.oa,q:a.pf,osid:a.kf,state:a.of,volume:a.wa};a.Xh&&(b.autoplay="1");a.Fo&&(b["final"]="1");a.$n&&(b.splay="1");a.N&&(b.delay=a.N);a.O&&(b.hl=a.O);a.P&&(b.cr=
a.P);n(a.aa)&&a.ca&&(b.uga=a.ca+a.aa);n(a.M)&&(b.len=a.zf(a.M));!a.g&&0<a.o.length&&(b.fexp=a.o.toString());null!=a.qg&&(b.rtn=a.zf(a.qg));a.j&&(b.feature=a.j);a.La&&(b.list=a.La);a.V&&(b.ctrl=a.V);a.T&&(b.ytr=a.T);a.jf&&(b.ssrt="1");a.g?(b.idpj=a.nf,b.ldpj=a.hf,null!=a.Th&&(b.rti=a.zf(a.Th))):(n(a.L)&&(b.at=a.L),n(a.A)&&(b.allowed=a.A),n(a.D)&&(b.ex_ads=a.D));(a.la||a.ea)&&a.U&&(b.tst=a.U);a.g&&(b.st=lN(a,B(a.b,function(a){return a.startTime})),b.et=lN(a,B(a.b,function(a){return a.endTime})));jb(a.b,
function(a){return 0!=a.visibilityState})&&(b.vis=lN(a,B(a.b,function(a){return a.visibilityState})));jb(a.b,function(a){return 1!=a.playbackRate})&&(b.rate=lN(a,B(a.b,function(a){return a.playbackRate})));jb(a.b,function(a){return"-"!=a.Fk})&&(b.cc=B(a.b,function(a){return a.Fk}).join(","));return b}f.zf=function(a){return(1*a.toFixed(3)).toString()};function lN(a,b){return B(b,a.zf).join(",")};function mN(a){this.b=a;this.k=new fN(a);R(this,this.k);this.g=new XM(a);this.A="paused";this.B=NaN;this.D=[10,10,10,40];this.F=this.C=0;this.L=this.M=this.I=this.j=!1;this.o=NaN;this.N=new eN(this.g,this.b.b,this.b.g)}w(mN,Mh);function nN(a,b,c){var d=bN(a.b);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.D[a.C];a.C+1<a.D.length&&a.C++;c=c+e;d=1E3*(c-d);a.B=L(u(a.FB,a,c,b),d);return c}f=mN.prototype;
f.FB=function(a,b){if(!this.ga()){this.B=NaN;this.g.update();var c=aN(this.g),d=oN(this,c);b&&(d.Th=a);var e=400<this.F;!(1<c.length)&&c[0].isEmpty()||e||(d.qg=nN(this,!0,a));d.send();this.F++}};function pN(a,b){var c=qN(a.b);ra(c,{state:a.A});c=new jN(a.b.b,a.b.g,b,c);c.k=a.b.j();c.M=a.b.A();c.xa=bN(a.b);c.b=[YM(a.b)];return c}function oN(a,b){var c=pN(a,"watchtime");c.b=b;c.k=a.g.b;return c}function rN(a){a.g.update();return oN(a,aN(a.g))}
function sN(a){var b=a.b.g;a=a.b.b;var c=a.Ha||b.C,c={ns:b.Xc,html5:"1",el:b.ba,ps:b.ob,fexp:b.b.b.join(",")||void 0,feature:c||void 0,ctrl:a.gb||void 0,ytr:a.hb||void 0,list:a.La,d:b.qa,f:b.aa};b.xc&&(c.autoplay="1");a.I&&(c.subscribed=a.I);return c}f.Og=function(){this.k.Og()};f.onError=function(a,b){this.k.onError(a,b)};
function tN(a,b){if(!a.ga()){V(b.state,2)?(a.A="paused",a.j&&rN(a).send()):V(b.state,8)?(a.A="playing",a.j&&isNaN(a.B)&&nN(a,!1)):a.A="paused";var c=a.k,d=b.state,e;e=b.state;if(V(e,128))e="ER";else if(V(e,16)||V(e,32))e="S";else{var g=gN[gu(e)];"B"==g&&V(e,4)&&(g="PB");e=g}if(e!=c.g){var g=e,h=bN(c.b);if(!(h<c.k)){if("PL"==c.g)c.C+=h-c.k;else if("B"==c.g&&c.B&&(c.B=!1,c.F+=h-c.k,!c.I&&10<=c.F&&180>=c.C)){c.b.C();if(!c.ga()){var k=iN(c);k.qoealert="1";k=ae(oL(c.b.g),k);qf(k)}c.I=!0}"B"!=g||"PL"!=
c.g&&"PB"!=c.g||(c.B=!0);c.k=h}!c.b.g.b.A||"B"!=e&&"PB"!=e?hN(c,"cmt",[c.b.j().toFixed(3)]):c.Ck();hN(c,"vps",[e]);c.g=e}if(V(d,128))c.onError(d.b.errorCode,d.b.errorDetail);(V(d,2)||V(d,128))&&c.xg();a.o&&V(b.state,128)&&(a.di("error-100"),M(a.o))}}function uN(a){a.o=Ye(u(a.di,a,"heartbeat"),3E4)}
f.di=function(a){var b=this.b.g,c=this.b.b,d={ns:b.Xc,el:b.ba,eurl:b.g,fmt:c.b?c.b.id:0,html5:1,list:c.La,plid:c.xb,cpn:c.Da,ei:c.A,ps:b.ob,noflv:1,st:this.b.j(),video_id:c.videoId,metric:a};b.xc&&(d.autoplay="1");c.qk&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=$M(this.g));ra(d,lL(b));qf(ae("//www.youtube.com/live_204",d))};f.J=function(){mN.G.J.call(this);M(this.B);this.B=NaN;var a=this.g;Ze(a.A);a.A=NaN};mN.prototype.getDebugInfo=function(){return kN(pN(this,"playback"))};
function vN(a){if(!a.M){a.b.b.o.eventLabel=a.b.g.ba;a.b.b.o.playerStyle=a.b.g.ob;a.b.b.T&&(a.b.b.o.feature="pyv");a.b.b.o.vid=a.b.b.videoId;a.b.b.o.isAd=!("adunit"!=a.b.g.ba&&!a.b.b.T);var b=a.b.b.o;b&&b.uid&&(PM[b.uid]=b);t:{b=a.b.b.o.uid;if(!b){b=We("CONVERSION_CONFIG_DICT");if(!b)break t;b=b.uid||null;if(!b)break t}i:{var c=We("CONVERSION_CONFIG_DICT");if(r(b)){var d=QM(b);if(!c||c.uid!=d)if(c=PM[d],!c||c.uid!=d)break i}var e;if(c&&c.baseUrl&&c.uid){var g=c.rmktEnabled,d=c.focEnabled&&(!c.isAd||
!1);if(g||d){var h={};if(g){g={utuid:c.uid,type:"view",client_name:"html5"};c.vid&&(g.utvid=c.vid);c.eventLabel&&(g.el=c.eventLabel);c.playerStyle&&(g.ps=c.playerStyle);c.feature&&(g.feature=c.feature);c.ppe&&(g.ppe=c.ppe);c.subscribed&&(g.subscribed=c.subscribed);c.engaged&&(g.engaged=c.engaged);var k=[];for(e in g)k.push(encodeURIComponent(e)+"="+encodeURIComponent(g[e]));e=k.join(";");h.data=e}d&&c.vid&&c.uid&&(c.oeid||c.ieid)&&(c.oeid&&(h.oeid=c.oeid),c.ieid&&(h.ieid=c.ieid),h.evid=c.vid);d&&
(h.label="followon_view",h.foc_id=c.uid);e=ae(c.baseUrl,h)}else e=null}else e=null;e&&qf(e)}(e=We("CONVERSION_CONFIG_DICT"))&&(!r(b)||e.uid==QM(b))&&Vb(WM,e.uid)&&e.baseUrl&&e.uid&&e.focEnabled&&!e.isAd&&(b={label_no_cache:"followon_view",foc_id_no_cache:e.uid,random_no_cache:Math.round(1E4*Math.random())},(b=ae(e.baseUrl,b))&&qf(b))}a.M=!0}};function wN(){this.endTime=this.startTime=-1;this.Fk="-";this.playbackRate=1;this.visibilityState=0}wN.prototype.isEmpty=function(){return this.endTime==this.startTime};function xN(a,b,c,d,e,g,h){this.b=a;this.g=b;this.o=c;this.A=d;this.j=e;this.B=g;this.C=h||function(){};this.k=-1}function bN(a){var b=window.performance&&window.performance.now?window.performance.now():v();0>a.k&&(a.k=b);return Math.round(b-a.k)/1E3}
function qN(a){var b=a.o();a=a.b;var c={};a.b&&(c.fmt=a.b.id,a.N&&(c.afmt=a.N.id));a.wa&&(c.threed=a.Ox);c.plid=a.xb;c.ei=a.A;c.list=a.La;c.cpn=a.Da;a.videoId&&(c.v=a.videoId);a.uk&&(c.infringe=1);a.se&&(c.splay=1);a.Za&&(c.live=a.nb?"dvr":"live");a.rg&&(c.autoplay=1);a.mf&&(c.sdetail=a.mf);a.U&&(c.partnerid=a.U);a.eb&&(c.osid=a.eb);ra(b,c);return b}
function YM(a){var b=new wN;b.Fk=a.o().cc||"-";var c=a.g;b.playbackRate=c.Pa&&c.Pa.playbackRate||1;(c=Gg("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.g.tb?b.visibilityState=2:a.g.ir&&(b.visibilityState=1);return b};function yN(a,b){this.state=a;this.b=b}function aw(a,b){return V(a.state,b)&&!V(a.b,b)?1:!V(a.state,b)&&V(a.b,b)?-1:0};function zN(a,b){ej.call(this);this.ya=new MM;this.A=new ku(u(this.getCurrentTime,this),u(this.getPlayerState,this),u(this.Wh,this));R(this,this.A);this.T=NaN;this.I=this.C=null;this.B=a;this.qa=new JM(a);this.wa=!1;this.D=this.k=null;this.L=[];this.P=new NM;this.N=new NM;this.xa=NaN;this.j=new $t;this.Ha=b;this.V=this.ea=null;this.F=NaN;this.U=new ew(this);this.b=new Tr;this.g=this.O=null;this.ca=NaN;this.o=null;this.Ca=!1;this.aa=0;this.Ia=null;this.la=!1;this.oa=null}w(zN,ej);
function ut(a){pz()?sz(a.aa):M(a.aa)}f=zN.prototype;f.J=function(){M(this.ca);Ze(this.xa);tt(this);AN(this);ut(this);NH(this);Qh(this.V,this.U,this.b);this.U=this.I=null;this.la=!1};
function BN(a,b,c){a.L.length=0;a.P=new NM;a.N=new NM;a.T=NaN;a.F=NaN;a.O=null;a.Ca=!1;a.g&&Xt(a.g);CN(a);tt(a);AN(a);ut(a);Oh(a.b);a.A.reset();if(2==a.Ha||kf(a.B.ze))b.ip=!0;a.b=b;a.b.subscribe("dataupdated",a.ux,a);a.b.subscribe("dataloaded",a.jq,a);a.b.subscribe("onStatusFail",a.tx,a);b.vf&&b.vf>b.Ta&&(b=b.vf,a.I&&(a.A.Eg(a.I),a.I=null),a.I=new hu(1E3*b,2147483646),a.I.ab.subscribe("onEnter",a.wg,a),a.A.xi(a.I));tt(a);a.b.te||(c=new xN(a.b,a.B,c,u(a.Sd,a),u(a.getCurrentTime,a),u(a.qx,a),u(a.rx,
a)),a.o=new mN(c));a.la=!1;DN(a,"newdata");EN(a,new $t)}function tt(a){if(a.o){var b=a.o;if(!b.ga()&&b.j){b.A="paused";var c=rN(b);c.Fo=!0;c.send();c=b.k;"PL"==c.g&&(c.g="N");hN(c,"vps",[c.g]);c.xg();M(b.o);b.dispose()}Oh(a.o);a.o=null}}f.getVideoData=function(){return this.b};f.R=function(){return this.B};function FN(a){return!(!a.b.g||!a.b.g.g.length)}function GN(a){if(is(a.b))return!0;$v(a,"api.invalidparam");return!1}function HN(a){GN(a)&&!a.P.g&&(a.P.start(),a.o&&a.o.Og(),a.jq())}
f.jq=function(){if(js(this.b))js(this.b),this.P.b=!0,this.L=vb(this.b.D),ds(this.b),FN(this)&&(this.b.nb&&(IN(this,this.b.Oa),JN(this,!0)),this.b.g.b&&KN(this),LJ(this,"i")),DN(this,"dataloaded"),this.N.g&&LN(this);else if(this.b.la){var a=this.b;a.la=!1;var b=a.O,c=Ci(b),b=0>Tr.g.indexOf(c)?lf(b):mf(b),c=u(a.Wz,a),a=u(a.fm,a);Ip(new zp(b),b,c,a)}else this.b.Me||(a=mL(this.B,this.b),ks(this.b,a))};function MN(a){HN(a);GN(a)&&(a.N.g||(a.N.start(),EN(a,fu(a.j,8))),LN(a))}
function LN(a){if(!(a.N.b||!a.P.b||V(a.j,128)||a.L.length||(a.A.Bg||a.A.Og(),a.L.length||0<Ht(a.A.g,-2147483648).length))){a.b.Za&&NN(a,Infinity,!0);a.N.b=!0;if(a.o){var b=a.o;b.b.b.ai&&b.b.b.rk&&(b.di("connected"),uN(b))}a.H("playbackready",a)}}f.wg=function(a){this.pauseVideo();EN(this,!1==a?new $t:new $t(bu()))};
function ON(a,b,c,d){a.b.b=c;a.b.N=d||c;if(a.o){d=a.b;var e=LM(a.qa,d),e=lb(d.g.g,u(e.k,e));d=a.o.k;e=new IM(c,b,e?e.id:"");c=bN(d.b);hN(d,"vfs",[e.b.id,e.g,d.N,e.j],c);d.N=e.b.id;e=d.b.g;e=e.Pa?new G(0<e.Pa.style.width.indexOf("px")?parseInt(e.Pa.style.width,10):e.Pa.clientWidth,0<e.Pa.style.height.indexOf("px")?parseInt(e.Pa.style.height,10):e.Pa.clientHeight):new G(Number.NaN,Number.NaN);0<e.width&&0<e.height&&hN(d,"view",[Math.round(e.width),Math.round(e.height)],c);hN(d,"vps",[d.g],c);d.xg(c)}a.H("internalvideoformatchange",
a.b,"m"==b)}function $v(a,b,c,d){if(Vb(Ju,c))var e=c;else var g=c;EN(a,du(a.j,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));PN(a)}function QN(a,b){a.L=a.L.filter(function(a){return b!=a});a.N.g&&LN(a)}f.Wh=function(){return V(this.j,8)&&!V(this.j,64)&&!V(this.j,2)};f.getPlayerState=function(){return this.j};f.getPlayerType=function(){return this.Ha};function RN(a,b){a.g&&NH(a);a.g=b;SN(a)}
function NH(a){a.D=null;a.k&&(a.k.C=!0);a.g&&(a.o&&a.P.g&&V(a.j,64)&&tN(a.o,new yN(new $t(4),a.j)),CN(a),a.U.removeAll(),Xt(a.g),a.g=null)}
function TN(a){MN(a);V(a.j,64)&&EN(a,fu(a.j,8));if(a.N.b&&a.g)if(a.b.g){var b;if(a.b.g.b)UN(a),b=a.Ia,a.k.resume();else{AN(a);b=a.b.V.b;var c=a.b,d={};c.P&&(d.ptk=c.P,d.oid=c.Md,d.ptchn=c.Vc,d.pltype=c.Ld);ra(b.g,d);ra(b.g,{c:a.B.qf,cver:a.B.ue})}a.g.yd!=b?VN(a,b):(ms(a.b)&&Ut(a.g)&&NN(a,Infinity,!0),Vt(a.g))}else $v(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function Xs(a){if(!a.b.g)return[];var b=WN(a);a=Wp(a.b.g,b);a.length&&(a=a.concat(["auto"]));return a}
function XN(a){return Tp(Tp(KM(a.qa,a.b),LM(a.qa,a.b)),WN(a))}function WN(a){return a.b.xk?Qp:a.C?a.C.j:FN(a)&&a.b.g.b&&Ap(a.b.j)?Pp:Qp}function LJ(a,b,c){if(!a.ga()&&!V(a.j,128)&&(c&&(a.b.tf=c),FN(a))){"m"==b&&c&&Rp(c)&&(b="a");c=XN(a);if(a.b.g.b){if("i"!=b){var d=a.k;d.ga()||(fH(d,xL(d.o,c,b)),hH(d,d.g,zL(d.o)),Sp(d.o.b)&&"m"==b&&(d.ta.T?(iH(d.g,!1),d.g.B=!0):iH(d.g,!0),d.g.j.lc()&&ML(d.g,d.k)),UL(d.g)&&mM(d,d.g,d.j),jH(d))}}else a.b.V=Rr(a.b.F,c),ON(a,b,a.b.V.getInfo());a.Wh()&&TN(a)}}
function cH(a){if(!a.getVideoData().N)return null;var b=a.getVideoData().N;return lb(a.oa,function(a){return a.id==b.id})}
function KN(a){Lp(a.b.j,{c:a.B.qf,cver:a.B.ue});var b=a.B,c=new dD;if(pr("safari/")&&pr(" version/8")||b.b.qa)c.I=!0;b.b.wa&&(c.P=!0);b.b.zb&&(c.N=!0,c.B=1.25);b.b.U&&(c.A=1.5);b.b.V&&(c.C=3.5);b.b.ea&&(c.D=300);b.b.Ca&&(c.M=!0);b.b.Wc&&(c.T=!0);b.b.L&&(c.b=1E5);uE(b)&&(c.o=8388608,c.k=524288,c.j=2097152,c.F=1048576,c.A=1.5,c.O=15,c.g=!1,c.L=!1,c.D=0,c.ci=vo.hd720,or()&&(c.ua=3E5));rh&&pr("crkey")&&(c.o=20971520,c.k=1572864,c.j=20971520,c.g=!0,c.b=1E3);var b=b.tg||new G(window.screen.width,window.screen.height),
d=window.devicePixelRatio||1;2560<=b.width*d&&1440<=b.height*d&&(c.o=52428800,c.k=5242880,c.j=20971520,c.F=8388608,c.ci=vo.auto);a.k=new eM(a.ea,c,a.b.j,a.b.g);a.k.subscribe("initsegment",a.iu,a);a.k.subscribe("formatchange",a.ku,a);a.k.subscribe("fatalerror",a.ju,a);a.k.subscribe("softerror",a.zo,a);a.k.subscribe("seekrequired",a.lu,a);c=C(a.L,"spacecast");a.k.initialize(a.b.Ta,XN(a),c);a.b.hf&&(a.k.N=a.b.hf);a.L.length&&(a.k.C=!0)}
function AN(a){a.k&&(a.k.dispose(),a.k=null);a.D&&(a.D.dispose(),a.D=null)}function UN(a){if(!a.D){a.k?a.k.seek(a.getCurrentTime()):KN(a);a.D=new qr(a.g,a.b.Oa,a.b.g.g[0].mimeType,a.b.g.b[0].mimeType);try{var b=sr(a.D)}catch(c){c.message="window.URL object overwritten by external code";window.setTimeout(function(){throw c;},0);$v(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.Ia=new yr(b,!1,!0);rr(a.D,u(a.k.aA,a.k))}}
f.iu=function(a){if(this.C){var b=this.C;if("com.microsoft.playready"==b.b.b){for(var c=new Uint8Array(0),d=new DataView(a.buffer,a.byteOffset,a.length),e=0;e<a.length-8;){var g=d.getUint32(e);if(1>g)break;var h=d.getUint32(e+4);if(1836019574==h)e+=8;else{if(1886614376==h){var h=a.subarray(e,e+g),k=new Uint8Array(c.length+h.length);k.set(c);k.set(h,c.length);c=k}e+=g}}a=c;0!=a.length&&FM(b,new DM(a),!1)}}};f.ku=function(a){ON(this,a.g,a.video.info,a.b.info)};
f.ju=function(a,b){$v(this,a,void 0,b);AN(this)};f.zo=function(a,b){if(this.o)this.o.onError(a,b);var c;if(c="net.badstatus"==a)if(c=this.B.b.P)c=this.b,c=v()-c.Nx>Tr.o;c&&(this.o.onError("staleconfig"),this.H("urlauthexpired"))};f.pauseVideo=function(a){if(V(this.j,64)){var b=this.j;EN(this,du(b,b.g&-9))}this.g&&(a&&EN(this,fu(this.j,256)),this.g.pauseVideo())};
function PN(a){a.pauseVideo(!0);a.g&&(CN(a),a.D&&(a.D.dispose(),a.D=null),a.b&&(a.b.Ta=a.getCurrentTime()),a.F=NaN,Wt(a.g),V(a.j,128)||EN(a,du(a.j)))}function NN(a,b,c,d){if(a.g){b=Jb(b||0,0,YN(a));b>=YN(a)?JN(a,!0):JN(a,!1);a.b.Ta=b;a.F=b;var e=a.ya;e.b=b;e.g=!0;c?a.Oi():(WG(a),d&&(a.V||(a.V=new gw(a.Oi,d,a)),a.V.start()),ZN(a,!0));a.I&&b>a.b.vf&&(a.A.Eg(a.I),a.I=null);a.H("seekto",a,b)}else a.b.Ta=b||0}
function WG(a){V(a.j,32)||(EN(a,fu(a.j,32)),V(a.j,8)&&a.pauseVideo(!0),a.H("beginseeking",a))}f.Oi=function(){if(!isNaN(this.F)&&this.g){var a=this.Sd();!this.b.Za&&this.F>=Math.floor(a)?(this.F=a,this.H("endseeking",this),this.pauseVideo(!0),this.wg()):(this.k&&this.k.seek(this.F),Tt(this.g,this.F))}this.V&&(this.V.dispose(),this.V=null);V(this.j,32)&&(a=this.j,EN(this,fu(du(a,a.g&-33),16)),this.H("endseeking",this))};
f.getCurrentTime=function(){if(!isNaN(this.F))return this.F;var a=0;this.g&&1<=this.g.readyState?a=this.g.getCurrentTime():this.b&&(a=this.b.pg||this.b.Ta||0);return a};f.Sd=function(){return ms(this.b)?Infinity:this.b&&this.b.Oa?this.b.Oa:YN(this)?YN(this):0};
f.qx=function(){var a=new OM;if(this.ea&&this.k){var b=this.ea;a.j=b.D;a.o=b.F;a.b=BK(b);b=this.k;b.b&&!ur(b.b)&&(a.g=Ot(b.b.g.buffered,b.k),a.k=Ot(b.b.b.buffered,b.k));a.b=uL(b.B);BK(b.A);zK(b.A);AK(b.A)}else this.g&&(a.g=Ot(this.g.buffered,this.getCurrentTime()));return a};function $N(a){if(a.g)if(ms(a.b))a=1;else if(ns(a.b))if(a.wa)a=0;else{var b=a.g;a=(0<Nt(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.Sd()}else a=Ys(a.g);else a=0;return a}
zN.prototype.getDebugInfo=function(a){var b={};a&&(this.o&&ra(b,this.o.getDebugInfo()),this.g&&ra(b,this.g.getDebugInfo()),this.k&&ra(b,this.k.getDebugInfo()),V(this.j,128)&&(b.debug_error=this.j.b));b.debug_videoId=this.b.videoId;return b};f=zN.prototype;f.ux=function(){DN(this)};f.tx=function(a){$v(this,"auth",unescape(a.reason),a.errordetail)};function DN(a,b){a.H("internalvideodatachange",b||"dataupdated",a,a.b)}
function SN(a){z("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.U.listen(this.g,a,this.EC)},a)}
f.EC=function(a){var b=a.target;if(b==this.g&&b.currentSrc){switch(a.type){case "error":if(this.B.zk&&b.error&&b.error.errorCode==b.error.MEDIA_ERR_NETWORK){setTimeout(u(function(){this.g&&(this.b.V&&this.g.load(),TN(this))},this),500);if(this.o)this.o.onError("progressive.net");return}break;case "durationchange":if(!this.b.nb||this.b.j&&!this.b.j.g)b=b.duration||0,(!this.D||isFinite(b)&&0<b)&&IN(this,b);break;case "ratechange":this.k&&(this.k.B.g=Math.max(1,this.g.playbackRate));break;case "ended":EN(this,
du(this.j,4));this.wk();break;case "loadedmetadata":this.b.Ta&&(this.g.currentTime=this.b.Ta),this.B.Eo&&this.b.Ta&&(this.T=this.b.Ta,this.pauseVideo(!0));case "loadeddata":this.ca&&M(this.ca);break;case "loadstart":Ze(this.xa);this.ji()||(this.xa=Ye(u(this.ji,this),100));break;case "progress":this.T&&this.g.seekable.length&&this.g.seekable.end(0)>this.T&&(this.g.currentTime=this.T,this.T=NaN,this.za=this.U.listen(this.g,"canplay",this.Fv));case "suspend":ZN(this);this.H("onLoadProgress",this,$N(this));
break;case "seeked":aO(this);break;case "playing":Fq("plev");break;case "timeupdate":this.Ca=!0,this.ji(),aO(this),ZN(this),this.H("onVideoProgress",this,b.getCurrentTime())}this.H("videoelementevent",a);a=au(this.j,a,this.ya);EN(this,a)}};
f.ji=function(){var a=this.g;a&&this.Ca&&!this.b.Dk&&!Hq("vfp")&&2<=a.readyState&&!a.ended&&0<Nt(a.buffered)&&Fq("vfp");if((a=this.g)&&!this.b.Dk&&0<(a.duration||0)&&(!Hq("paft")&&Hq("plev")&&Ut(a)&&2<=a.readyState&&0<Nt(a.buffered)&&Fq("pbr"),0<a.getCurrentTime())){Ze(this.xa);this.b.Dk=!0;bO(this);if(this.o){a=this.o;if(!a.j){var b=pN(a,"playback");a.D=[10+a.b.b.Oh,10,10,40+a.b.b.Xj-a.b.b.Oh,40];var c=a.g;Ze(c.A);c.A=NaN;c.A=Ye(u(c.update,c),100);c.o=bN(c.g);c.k=YM(c.g);b.qg=nN(a,!0);b.Nu=!0;b.send();
!a.b.g.bc||a.b.g.bi||a.j||(b=a.b.g,c=a.b.b,b={noflv:"1",html5:"1",video_id:c.videoId,cpn:c.Da,plid:c.xb,ei:c.A,referrer:pL(b),eurl:b.g,framer:b.D,feature:b.C,fmt:c.b?c.b.id:0,ptk:c.P,skl:c.xo,access_token:c.B,ucid:c.gf},ra(b,sN(a)),delete b.fexp,b=ae(a.b.g.qb+"user_watch",b),qf(b));a.b.b.P&&(b=a.b.g,c=a.b.b,b=ae(b.qb+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.Da,plid:c.xb,ei:c.A,ptk:c.P,oid:c.Md,ptchn:c.Vc,pltype:c.Ld,content_v:b.A}),qf(b));if(a.b.b.wo&&a.b.g.ye&&!a.j){var b=a.b.g,c=a.b.b,d=
{noflv:1,video_id:c.videoId,cpn:c.Da,el:b.ba,ps:b.ob,referrer:pL(b),eurl:b.g,framer:b.D,fmt:c.b?c.b.id:0,ptk:c.P,subscribed:c.I,t:c.Wj};b.xc&&(d.autoplay="1");c.se&&(d.splay="1");0<c.Ta&&(d.start=1E3*c.Ta);c.qk&&(d.tmi="1");b=ae(a.b.g.qb+"get_video",d);qf(b)}a.b.b.ai&&(a.di("playback"),a.o||uN(a));a.b.b.re||vN(a);a.j=!0;a=a.g;a.b=a.g.j();a.o=bN(a.g);.5<a.b-a.j&&(a.j=a.b)}L(u(this.wk,this),4500)}this.H("playbackstarted");this.k&&(this.k.U=!0);pz()&&tz();return!0}return!1};
function bO(a){var b=v(),c=a.getCurrentTime(),d=a.b;if(!Hq("pbs")){var e=1E3*(c-d.Ta);0>e&&(e=0);Fq("pbs",b-e);Cq.measure&&Cq.getEntriesByName&&(Cq.getEntriesByName("mark_navigation_requested")[0]?Cq.measure("measure_above_the_fold","mark_navigation_requested"):Cq.measure("measure_above_the_fold"))}d.videoId&&(b=d.videoId,Lq(void 0).docid=b);d.A&&(b=d.A,Lq(void 0).ei=b);d.Da&&(b=d.Da,Lq(void 0).cpn=b);0<d.Ta&&(b=d.Ta.toString(),Lq(void 0).start=b);a.g&&Ut(a.g)&&(Lq(void 0).paused=1);d.b?(d=d.b.id,
Lq(void 0).fmt=d):Lq(void 0).fmt="-1";d=Math.round($N(a)*a.Sd()).toString();Lq(void 0).tds=d;c=c.toFixed(3);Lq(void 0).cmt=c;if(a.k){a=a.k;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(a.ea),c.length&&(c=c[0],gM(a,"vri",c.fetchStart),gM(a,"vdns",c.domainLookupEnd),gM(a,"vreq",c.requestStart),gM(a,"fvb",c.responseStart),gM(a,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(a.V),c.length&&(c=c[0],gM(a,"ari",c.fetchStart),gM(a,"adns",
c.domainLookupEnd),gM(a,"areq",c.requestStart),gM(a,"fab",c.responseStart),gM(a,"arc",c.responseEnd)));a=a.ca;for(var g in a)Fq(g,a[g])}}f.Fv=function(){this.za&&(this.U.Fa(this.za),this.za=void 0,Vt(this.g))};
function ZN(a,b){if(a.g&&a.b){var c=a.getCurrentTime();if(c<cO(a))NN(a,YN(a),!0);else{if(a.k){var d=a.k;if(d.b){d.resume();if(d.F&&!ur(d.b)){var e=d.k<=c&&c<d.k+10,g=0<=Lt(d.b.b.buffered,d.k)&&0<=Lt(d.b.g.buffered,d.k);e&&g&&(d.F=!1)}d.F||(d.k=c);pM(d)}}ns(a.b)&&c>a.Sd()&&(d=a.Sd(),0==d&&(d=c),IN(a,1.2*d));5<c&&(a.b.Ta=c);(d=pz())?sz(a.aa):M(a.aa);Ut(a.g)||(e=u(a.ov,a),a.aa=a.g.played&&0==a.g.played.length?d?qz(e,100):L(e,100):d?qz(e,500):L(e,500));a.b.pg=c;!b&&a.Wh()&&a.o&&(d=a.o,d.g.update(),d.b.b.Oa&&
d.b.b.re&&!d.L&&$M(d.g)>=d.b.b.re&&(d.j&&d.b.b.re&&(e=pN(d,"delayplay"),e.pv=!0,e.send(),d.L=!0),vN(d)),e=d.N,!e.k&&e.b.ye&&!e.b.bi&&e.g.Oa&&$M(e.o)>=e.g.Po&&d.N.send());a.ji()&&a.b.fk&&0<a.b.pg&&(d=a.o,d.j&&(e=d.b.g,g=d.b.b,d={ns:"yt",docid:g.videoId,plid:g.xb,ei:g.A,cpn:g.Da,fmt:g.b?g.b.id:0,el:e.ba,ps:e.ob,subscribed:g.I,yttk:"1",st:d.b.j(),et:d.b.j(),ctp:"1",vid:e.ya},d=ae("//s2.youtube.com/s",d),qf(d)),a.b.fk=!1);a.H("progresssync",a,b);a.b.qv=c}}}
f.ov=function(){this.g&&(V(this.j,8)&&eu(this.ya,this.getCurrentTime(),Date.now(),Ot(this.g.buffered,this.g.getCurrentTime()))&&EN(this,fu(this.j,1)),ZN(this))};
function EN(a,b){var c=a.j;if(b.g!=c.g||b.b!=c.b){c=new yN(b,a.j);a.j=b;0>aw(c,8)&&JN(a,!1);0<aw(c,32)&&JN(a,!1);ns(a.b)&&V(c.state,2)&&(IN(a,a.getCurrentTime()),ZN(a,!0));a.o&&tN(a.o,c);var d=a.A;if(d.Bg&&!d.wi)if(nu(d),V(c.state,2)){d.A=null;for(var e=[],g=0;g<d.b.length;g++){var h=d.b[g];h.active&&2147483647>h.end&&e.push(h)}g=Ht(d.g,2147483646);g=g.concat(It(d.g,2147483646));e=pu(d,e).concat(ou(d,g));qu(d,e)}else V(c.state,16)?(d.k=mu(d),d.o.stop(),d.o.start(),d.kc()):(d.o.stop(),V(c.b,16)?(d.k=
mu(d),null!=Jt(d.g,Math.max(d.k-2E3,0))&&(d.Hg=Tk(u(d.kc,d)))):d.kc());a.H("statechange",c)}}f.rx=function(){this.b.Za||this.H("connectionissue")};f.lu=function(){Tt(this.g,Math.max(0,this.g.currentTime+.1))};function aO(a){V(a.j,2)||V(a.j,32)||(a.F=NaN)}function JN(a,b){a.b.nb&&a.wa!=b&&(a.wa=b,a.H("liveviewshift",b))}function VN(a,b){St(a.g,b);a.D&&!b.b&&(a.D=null);es(a.b)&&dO(a);M(a.ca);a.ca=L(u(a.iA,a),15E3);a.B.Qp?L(u(function(){Vt(this.g)},a),0):Vt(a.g)}
function dO(a){var b=es(a.b);b&&!a.C&&a.g&&((b=hr(a.g,a.b.b.mimeType,b))?(a.C=new EM(a.g,b),a.C.subscribe("newsession",a.gA,a),a.C.subscribe("licenseerror",a.dA,a),a.C.subscribe("qualitychange",a.eA,a),a.C.subscribe("heartbeatparams",a.fA,a),a.C.L=a.b.B,R(a,a.C)):$v(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"))}function CN(a){a.C&&(a.C.dispose(),a.C=null)}
f.gA=function(a){var b=lL(this.B);b.cpn=this.b.Da;this.b.C&&(b.vvt=this.b.C);this.B.Sa&&(b.authuser=this.B.Sa);this.B.$a&&(b.pageid=this.B.$a);ec(a.o,b);xt(a,a.A);this.H("newlicensesession",a)};f.dA=function(a,b,c){$v(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};f.eA=function(){LJ(this,"r");DN(this)};f.fA=function(a){this.H("heartbeatparams",a)};f.iA=function(){this.o.onError("qoe.start15s");this.H("loadsofttimeout")};function IN(a,b){a.b.Oa!=b&&(a.b.Oa=b,DN(a))}
f.wk=function(){if(!this.la){var a=new HM(this.b),b;"c1a"in a.g?(b=q("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)L(u(this.wk,this),4500);else{this.la=!0;var c;if(a.b&&a.b.ea){b=[a.b.ea];for(c in a.j)if(a.g[c]){var d=a.j[c](a.g);d&&b.push(d)}c=b.join("&")}else c=null;c&&(a=this.o,a.I||(b=pN(a,"atr"),b.B=c,b.send(),a.I=!0))}}};
function YN(a){if(!a.g)return 0;if(a.k){var b=a.k,c=Math.floor(Math.min(b.j.j.index.yf(),b.g.j.index.yf()));return Math.max(b.D.g?c-14:c,cO(a))}a=a.g;return(1>a.seekable.length?NaN:a.seekable.end(a.seekable.length-1))||0}function cO(a){return a.b.j?(a=Sb(a.b.j.b))?a.index.rn():0:0};function eO(){this.j=!1;this.g=0;this.b=""};function fO(a,b,c){this.k=b;this.b=c;this.j=a}fO.prototype.getMessage=function(){return this.k};fO.prototype.getErrorCode=function(){return this.b};fO.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.g?" Caused by: "+this.g:"")};function gO(a,b){S.call(this,"adError");this.j=a;this.k=b?b:null}w(gO,S);var hO="creativeview start firstquartile midpoint thirdquartile complete mute unmute pause rewind resume fullscreen exitfullscreen expand collapse close acceptinvitation acceptinvitationlinear engagedview videoShareClicked videoShareShown skipshown skip replay stop click progress userClose viewable_impression".split(" ");function iO(a,b,c){S.call(this,a);this.k=b;this.j=null!=c?c:null}w(iO,S);iO.prototype.getAd=function(){return this.k};
var jO={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",KH:"engagedview",OH:"expandedChanged",STARTED:"start",Or:"impression",vK:"viewable_impression",PAUSED:"pause",rJ:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",USER_CLOSE:"userClose",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",HJ:"skipshown",FJ:"skippableStateChanged",hG:"adMetadata",iF:"adBreakReady",
CI:"log",VOLUME_CHANGED:"volumeChange",xK:"mute",XG:"companionBackfill",IK:"youTubeVideoMetadata",HK:"youTubeChannelMetadata"};var kO=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www.youtube.com/gen_204\\?a=sul"];function lO(a){return x(a)?!1:null!=lb(kO,function(b){return null!=a.match(b)})}
function mO(a){a=lO(a)?'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"':a;var b=I("iframe",{src:a,style:"display:none"});a=Mc(b).body;var c,d=Tk(function(){Jk(c);gd(b)},15E3);c=Hk(b,["load","error"],function(){Tk(function(){Uk(d);gd(b)},5E3)});a.appendChild(b)};var nO=["google-developers.appspot.com","devsite.googleplex.com"],oO=["*.googlesyndication.com"],pO=["*.youtu.be","*.youtube.com"],qO="ad.doubleclick.net bid.g.doubleclick.net corp.google.com ggpht.com google.co.uk google.com googleads.g.doubleclick.net googleads4.g.doubleclick.net googleadservices.com googlesyndication.com googleusercontent.com gstatic.com prod.google.com pubads.g.doubleclick.net s0.2mdn.net static.doubleclick.net static.doubleclick.net surveys.g.doubleclick.net youtube.com ytimg.com".split(" "),
rO=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function sO(a){var b;if(b=null!=a)(b=tO(nO,a))||(b=te(new J(a)),b=null!=b?va(b,".corp.google.com")||"corp.google.com"==b:!1),b=b||(null!=a?tO(pO,a):!1);return b}function tO(a,b){try{var c=te(new J(b)),c=c.replace(/^www./i,"");return jb(a,function(a){return uO(a,c)})}catch(d){return!1}}
function uO(a,b){if(x(b))return!1;a=a.toLowerCase();b=b.toLowerCase();return"*."==a.substr(0,2)?(a=a.substr(2),a.length>b.length?!1:b.substr(-a.length)==a&&(b.length==a.length||"."==b.charAt(b.length-a.length-1))):a==b}function vO(a){if("https:"==window.location.protocol){var b=new J(a);if((new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+qO.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a))return fe(b,"https"),b.toString()}return a};function wO(a){window.open(vO(a),"_blank")}function xO(a,b,c){null!=a?(K(a,"label",b),null!=c&&K(a,"value",c.join(";")),a=a.toString()):a="";yO(a)}function yO(a,b,c){null!=b&&(a=zO(a,b));null!=c&&(x(c)||(b=new J(a),He(b.b,"label")&&(K(b,"acvw",c),a=b.toString())));a=vO(a);mO(a)}function AO(a,b){null!=a&&z(a,function(a){yO(a,b)})}
function zO(a,b){return a.replace(/\[[a-zA-Z0-9_]+\]/g,function(a){try{var d=ac(b,a),d=d.toString();if(!x(d))return encodeURIComponent(d).replace("%2C",",")}catch(e){}return a})};function BO(a,b){this.message=a;this.errorCode=b}BO.prototype.getErrorCode=function(){return this.errorCode};BO.prototype.getMessage=function(){return this.message};
var CO=new BO("Unable to request ads from server. Cause: {0}.",1005),DO=new BO("Unable to request ads from server due to network error.",1012),EO=new BO("Cannot parse the {0} value for the adslist response: {1}.",900),FO=new BO("Invalid usage of the API. Cause: {0}",900),GO=new BO("Unable to display one or more required companions.",602),HO=new BO("There was a problem requesting ads from the server.",1005),IO=new BO("The provided ad type: {0} is not supported.",1005),JO=new BO("The provided {0} information: {1} is invalid.",
1101),KO=new BO("The response does not contain any valid ads.",1009),LO=new BO("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),MO=new BO("The ad playlist response was malformed or empty.",1010),NO=new BO("The ad response was not understood and cannot be parsed.",1010),OO=new BO("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),PO=new BO("The ad response contains unexpected element. Cause {0}.",
1010),QO=new BO("No assets were found in the VAST ad response.",200),RO=new BO("Duplicate node in <{0}>: {1}",101),SO=new BO("The VAST response document is empty.",1009),TO=new BO("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),UO=new BO("Ad request reached a timeout.",301),VO=new BO("VAST response was malformed and could not be parsed.",100),WO=new BO("VAST media file loading reached a timeout of {0} seconds.",402),XO=new BO("Ad request could not be completed due to a network error.",
301),YO=new BO("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),ZO=new BO("The maximum number of VAST wrappers ({0}) has been reached.",302),$O=new BO("VAST media file duration differs from the VAST response duration by {0} seconds.",202),aP=new BO("Video player received an ad with unexpected or incompatible linearity",201),bP=new BO("Unknown node in <{0}>: {1}",101),cP=new BO("Invalid VAST resource type: {0}",101),dP=new BO("Invalid VAST version",
102),eP=new BO("No additional VAST wrappers allowed.",300),fP=new BO("No Ads VAST response after one or more Wrappers",303),gP=new BO("There was an error playing the video ad.",400),hP=new BO("VMAP unsupported node in <{0}>: {1}",1010),iP=new BO("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);function jP(a,b,c){return kP("adLoadError",a,b||null,yb(arguments,2))}function lP(a,b,c){return kP("adPlayError",a,b||null,yb(arguments,2))}
function mP(a,b,c,d,e){var g=a.apply(null,ub([c,d],yb(arguments,3)));b.S(new iO("log",null,g))}function kP(a,b,c,d){if(c instanceof fO)return c;var e=b.errorCode;b=b.message;if(0<d.length)for(var g=0;g<d.length;g++)b=b.replace(new RegExp("\\{"+g+"\\}","ig"),d[g]);a=new fO(a,b,e);a.g=c;return a}function nP(a,b,c,d){var e=lP.apply(null,ub([b,c],yb(arguments,3)));a.S(new gO(e))};function oP(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};var pP=new function(){this.j="always";this.b=this.k=this.g=!1};function qP(a){return(a=a.exec(gc))?a[1]:""}var rP=function(){if(mh)return qP(/Firefox\/([0-9.]+)/);if(rc||qc)return Ac;if(rh)return qP(/Chrome\/([0-9.]+)/);if(sh)return qP(/Version\/([0-9.]+)/);if(oh||ph){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(gc))return a[1]+"."+a[2]}else{if(qh)return(a=qP(/Android\s+([0-9.]+)/))?a:qP(/Version\/([0-9.]+)/);if(nh)return qP(/Camino\/([0-9.]+)/)}return""}();var sP={},tP="",uP=/OS (\S+) like/,vP=/Android (\S+);/;function wP(){return nc||Qa(gc,"Mobile")}function xP(a,b){if(null==sP[b]){var c;xa(tP)&&(c=a.exec(gc))&&(tP=c[1]);(c=tP)?(c.replace(/_/g,"."),sP[b]=0<=Va(c,b)):sP[b]=!1}return sP[b]}function yP(){return oc&&wP()&&Qa(gc,"Safari")||nc&&(!nc||!xP(vP,4))?!1:!0};function zP(){this.g=.05>Math.random();this.b=Math.floor(4503599627370496*Math.random())}da(zP);function AP(a,b,c,d){if(a.g||d){c=c||{};c.lid=b;c=BP(a,c);var e=new J("http://pagead2.googlesyndication.com/pagead/gen_204");Ob(c,function(a,b){K(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=CP();fe(e,a.Fb);yO(e.toString())}}function BP(a,b){b.id="";var c=CP();b.c=a.b;b.domain=c.Cb;return b}function CP(){var a=Wc(),b=document;return new J(a.parent==a?a.location.href:b.referrer)};function DP(){}f=DP.prototype;f.lD=!1;f.Ws=!1;f.Iq=!0;f.baseYouTubeUrl=null;f.Vf=-1;f.contentId=null;f.yk=!1;f.nh=null;f.En=null;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.loadVideoTimeout=15E3;var EP={"application/flash":"Flash","application/shockwave-flash":"Flash","application/x-shockwave-flash":"Flash","image/jpeg":"Image","image/jpg":"Image","image/png":"Image","image/gif":"Image",text:"Text"},FP=["ADSENSE","ADSENSE/ADX"],GP=["DART","DART_DFA","DART_DFP"],HP=["GDFP"],IP={QI:"video/mp4",SI:"video/mpeg",DI:"application/x-mpegURL",ZI:"video/ogg",WJ:"video/3gpp",AK:"video/webm",OI:"audio/mpeg",RI:"audio/mp4"};function JP(a,b,c){if(D(a))return null;a=hb(a,function(a){var b=a.j;return"application/x-mpegurl"==ya(a.b).toLowerCase()||"progressive"==b});D(c)||(c=B(c,function(a){return a.toLowerCase()}),a=hb(a,function(a){return C(c,ya(a.b).toLowerCase())}));if(!ia(b)||0>=b)b=jc("iPad")||jc("Android")&&!jc("Mobile")||jc("Silk")||!(jc("iPod")||jc("iPhone")||jc("Android")||jc("IEMobile"))?1E3:500;return KP(a,b)}function KP(a,b){return LP(a,b)||MP(a,b)||NP(a,b)}
function LP(a,b){var c=null;z(a,function(a){var e=a.Qe,g=a.de;e>b||g<b||!(null==c||c.Qe>e)||(c=a)});return c}function MP(a,b){var c=null;z(a,function(a){var e=a.Qe,g=a.de;g>b||(null==c||c.de<g?c=a:null!=c&&c.de==g&&c.Qe>e&&(c=a))});return c}function NP(a,b){var c=null;z(a,function(a){var e=a.Qe,g=a.de;if(!(e<b))if(null!=c&&c.Qe==e&&c.de<g)c=a;else if(null==c||c.Qe>e)c=a});return c};function OP(){T.call(this);this.k=this.o=this.j=!1;this.g=0;this.A=[];this.B=!1}w(OP,T);function PP(a,b){null==b||a.j||(a.b=b,a.C=!oc&&!yc,a.D=oc||yc,a.j=!0,a.b instanceof T||a.C?a.b.addEventListener("click",u(a.ep,a),!1):a.D?(a.b.addEventListener("touchstart",u(a.hp,a),!1),a.b.addEventListener("touchmove",u(a.gp,a),!1),a.b.addEventListener("touchend",u(a.fp,a),!1)):a.j=!1)}
function QP(a){null!=a.b&&a.j&&(a.C?a.b.removeEventListener("click",u(a.ep,a),!1):a.D&&(a.b.removeEventListener("touchstart",u(a.hp,a),!1),a.b.removeEventListener("touchmove",u(a.gp,a),!1),a.b.removeEventListener("touchend",u(a.fp,a),!1)),a.j=!1,a.o=!1,a.k=!1,a.g=0,a.A=[],a.B=!1)}f=OP.prototype;f.hp=function(a){this.o=!0;this.g=a.touches.length;this.B=RP(this,a.touches)||1!=a.touches.length;SP(this,a.touches)};f.gp=function(a){this.k=!0;this.g=a.touches.length};
f.fp=function(a){this.o&&1==this.g&&!this.k&&!this.B&&RP(this,a.changedTouches)&&this.S(new S("click"));this.g=a.touches.length;0==this.g&&(this.k=this.o=!1)};f.ep=function(){this.S(new S("click"))};function SP(a,b){a.A=[];z(b,function(a){qb(this.A,a.identifier)},a)}function RP(a,b){return jb(b,function(a){return C(this.A,a.identifier)},a)}f.J=function(){QP(this);OP.G.J.call(this)};function TP(a,b,c,d,e,g,h,k,l){this.j=a;this.b=b;isNaN(c)&&isNaN(d)&&isNaN(e)?e=d=0:isNaN(d)&&!isNaN(e)?d=e:!isNaN(d)&&isNaN(e)?e=d:!isNaN(c)&&isNaN(d)&&isNaN(e)&&(d=e=c);this.Qe=d;this.de=e;this.o=h;this.g=k;this.k=l}TP.prototype.getHeight=function(){return this.o};function UP(a,b,c,d,e,g,h){this.b=a;this.g=b;this.j=c;this.k=h;this.o=d;this.A=e;this.kb=g};function VP(){T.call(this)}w(VP,T);var WP={CG:"beginFullscreen",CLICK:"click",HH:"end",JH:"endFullscreen",ERROR:"error",FI:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",EJ:"skip",MJ:"start",XJ:"timeUpdate",wK:"volumeChange"};function XP(a){T.call(this);this.b=a;this.M=new Pk(4);this.C=this.N=0;this.I=this.j=this.B=!1;this.size=this.Mm();this.D=this.Zi();this.O=15E3;this.F=!1}w(XP,VP);f=XP.prototype;
f.br=function(a,b,c,d){a=hb(a,function(a){if(!d&&x(a.g))a=!1;else{var b=a.b;"progressive"!=a.j&&"application/x-mpegurl"!=ya(b).toLowerCase()?a=!1:(b=ya(b).toLowerCase(),a=xa(b)||nc&&xP(vP,2.3)&&La(b,"application/ogg")?!1:nc&&(La(b,"video/mp4")||La(b,"video/3gpp"))||(oc||yc)&&(La(b,"application/x-mpegurl")||La(b,"application/vnd.apple.mpegurl"))?!0:!xa(this.b.canPlayType(b)))}return a},this);return JP(a,b,c)};f.ys=function(){return hb(Tb(IP),function(a){return!xa(this.b.canPlayType(a))},this)};
f.Gl=function(a){this.O=0<a.kb?a.kb:15E3};f.Cg=function(a){YP(this);this.b.src=a;this.b.load()};f.Dn=function(){return this.b.src};f.setVolume=function(a){this.b.volume=a};f.ae=function(){return this.b.volume};f.play=function(){this.F=!1;Tk(this.b.play,0,this.b);this.L=Tk(this.QB,this.O,this)};f.pause=function(){this.F=!0;this.b.pause()};f.eh=function(){return this.b.paused?oc||yc||rh?this.b.currentTime<this.b.duration:!0:!1};f.Ji=function(){return this.b.muted};
f.jn=function(){oc&&this.b.webkitSupportsFullscreen&&this.b.webkitDisplayingFullscreen&&this.b.webkitExitFullscreen()};f.Zi=function(){if(oc)return this.b.webkitSupportsFullscreen&&this.b.webkitDisplayingFullscreen;var a=window.screen.availWidth||window.screen.width,b=window.screen.availHeight||window.screen.height,c=ja(this.b.getBoundingClientRect)?this.b.getBoundingClientRect():{width:this.b.offsetWidth,height:this.b.offsetHeight};return c.width>=a&&c.height>=b};
f.zh=function(a){var b;t:{for(b=this.M.Qa();b.length;){var c=b.pop();if(0<c){b=c;break t}}b=-1}return b>=a};f.Nf=function(a){this.b.currentTime=a};f.getCurrentTime=function(){return this.b.currentTime};f.rd=function(){return isNaN(this.b.duration)?-1:this.b.duration};f.Ge=function(){return this.b.ended};f.Mm=function(){return new G(this.b.offsetWidth,this.b.offsetHeight)};f.er=function(){return this.b.seeking};f.J=function(){this.Cf();this.b=null;XP.G.J.call(this)};f.ms=function(){return this.b.error};
f.Gi=function(){this.Cf();this.g=new Yk(this);this.g.listen(this.b,"canplay",this.Qz);this.g.listen(this.b,"ended",this.Nz);this.g.listen(this.b,"webkitbeginfullscreen",this.Yl);this.g.listen(this.b,"webkitendfullscreen",this.Lq);this.g.listen(this.b,"pause",this.Oz);this.g.listen(this.b,"playing",this.Sz);this.g.listen(this.b,"timeupdate",this.Tz);this.g.listen(this.b,"volumechange",this.Pz);this.g.listen(this.b,"error",this.Jp);this.o=new OP;this.g.listen(this.o,"click",this.Mz);PP(this.o,this.b);
this.A=new Rk(1E3);this.g.listen(this.A,"tick",this.Rz);this.A.start()};f.Cf=function(){null!=this.o&&(QP(this.o),this.o=null);null!=this.A&&this.A.dispose();null!=this.g&&(this.g.dispose(),this.g=null);YP(this)};function YP(a){a.j=!1;a.I=!1;a.M.clear();Uk(a.L);Oh(a.k)}function ZP(a){a.j||(a.j=!0,Uk(a.L),a.S("start"),(!nc||nc&&xP(vP,3))&&(!oc||(oc||yc)&&xP(uP,4))||a.Yl())}f.Qz=function(){var a;if(a=sh)a=gc,a=!(null!=a&&Qa(a,"Samsung")&&Qa(a,"SMART-TV"));a&&!this.I&&(this.Nf(.001),this.I=!0)};
f.Sz=function(){this.S("play");oc||yc||qh||ZP(this)};f.Tz=function(){if(!this.j&&(oc||yc||qh)){if(0>=this.getCurrentTime())return;if(qh&&this.Ge()&&1==this.rd()){this.Jp();return}ZP(this)}if(oc||yc){if(!this.B&&1.5<this.getCurrentTime()-this.N){this.B=!0;this.Nf(this.C);return}this.N=this.getCurrentTime();this.B=!1;this.getCurrentTime()>this.C&&(this.C=this.getCurrentTime())}this.M.add(this.b.currentTime);this.S("timeUpdate")};f.Pz=function(){this.S("volumeChange")};
f.Oz=function(){var a;this.j&&(oc||yc)&&!this.F&&2>$P(this)-this.b.currentTime?(this.k=new Rk(250),this.g.listen(this.k,"tick",this.Iy),this.k.start(),a=!0):a=!1;a||this.S("pause")};f.Nz=function(){var a=!0;(oc||yc)&&(a=this.C>=this.b.duration-1.5);!this.B&&a&&this.S("end")};f.Yl=function(){this.S("beginFullscreen")};f.Lq=function(){this.S("endFullscreen")};f.Jp=function(){Uk(this.L);this.S("error")};f.Mz=function(){this.S("click")};
f.Rz=function(){var a=this.Mm(),b=this.Zi();if(a.width!=this.size.width||a.height!=this.size.height)!this.D&&b?this.Yl():this.D&&!b&&this.Lq(),this.D=b,this.size=a};f.QB=function(){if(!this.j){try{AP(zP.getInstance(),16)}catch(a){}YP(this);this.S("mediaLoadTimeout")}};f.Iy=function(){if(this.Ge()||!this.eh())Oh(this.k);else{var a=this.b.duration-this.b.currentTime,b=$P(this)-this.b.currentTime;0<b&&(2<=b||2>a)&&(Oh(this.k),this.play())}};
function $P(a){for(var b=a.b.buffered.length-1;0<=b;){if(a.b.buffered.start(b)<=a.b.currentTime)return a.b.buffered.end(b);b--}return 0};function aQ(a,b){if(null==a||!md(Mc(a),a))throw lP(JO,null,"containerElement","element");this.o=a;this.g=this.b=null;this.k=b;this.j=null;this.b=I("div",{style:"display:none;"});var c=I("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;"});c.setAttribute("webkit-playsinline",!0);this.g=c;this.j=I("div",{style:"position:absolute;width:100%;height:100%;"});this.o.appendChild(this.b);this.b.appendChild(this.g);this.k&&(c=I("div",{id:this.k,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),
this.b.appendChild(c));this.b.appendChild(this.j)}w(aQ,Mh);aQ.prototype.initialize=function(){wP()&&this.g.load()};aQ.prototype.dispose=function(){gd(this.b)};aQ.prototype.show=function(){var a=this.b;null!=a&&(a.style.display="block")};aQ.prototype.hide=function(){var a=this.b;null!=a&&(a.style.display="none")};function bQ(a){null!=a?tO(oO,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&tO(pO,a)?cQ(a):null:a=null;return a}function dQ(a,b,c){if(null==a)return null;c=new J((null!=c?c:"//www.youtube.com/")+"watch");var d=c.b;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");je(c,d);return c.toString()}
function cQ(a){if(x(a))return null;var b=a.match(/^https?:\/\/[^\/]*youtu\.be\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/video\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/watch\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];a=xe(new J(a));return He(a,"v")?a.get("v").toString():He(a,"video_id")?a.get("video_id").toString():null};function eQ(a){T.call(this);this.N="ima-chromeless-video";var b=null;null!=a&&(r(a)?this.N=a:b=a);this.O=new Yk(this);this.k=null;this.j=!1;this.B=-1;this.I=!1;this.o=-1;this.g=this.F=this.C=null;this.L="";this.b=!1;this.P=null!=b;this.D=this.M=this.X=null;this.A=void 0;null!=b?(this.b=!0,this.X=b,this.A=2):(a=u(this.Mu,this),fQ?a():(gQ.push(a),a=ad("script"),a.src="//www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))}w(eQ,VP);
var hQ=["video/mp4","video/webm"],iQ={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},gQ=[],fQ=!1;f=eQ.prototype;f.br=function(a,b,c){var d=lb(a,function(a){return null!==bQ(a.g)});return null!==d||!D(c)&&(c=hb(c,function(a){return C(hQ,a)}),d=JP(a,b,c),null!==d)?d:lb(a,function(a){return C(hQ,a.b)})};f.Gl=function(a){this.g=a};f.Cg=function(a,b){null!==a&&(this.L=a,this.b?jQ(this,a,b):(this.C=a,this.F=b))};f.Dn=function(){return this.L};
f.setVolume=function(a){this.P?this.S("volumeChange"):this.b?(a=Jb(100*a,0,100),this.X.setVolume(a),this.o=-1,this.S("volumeChange")):this.o=a};f.ae=function(){return this.b?this.X.getVolume()/100:this.o};f.play=function(){if(!x(this.L)){if(!this.j){kQ(this);var a=15E3;null!=this.g&&0<this.g.kb&&(a=this.g.kb);this.T=Tk(this.Kx,a,this)}this.b?(this.I=!1,lQ(this),this.k=new Rk(100),this.O.listen(this.k,"tick",this.mq),this.k.start(),this.X.playVideo()):this.I=!0}};
f.pause=function(){this.b&&this.j&&(lQ(this),this.X.pauseVideo())};f.eh=function(){return this.b?2==this.X.getPlayerState(this.A):!1};f.Ji=function(){return this.U?this.X.isMuted():0==this.ae()};f.jn=function(){};f.Zi=function(){return!1};f.zh=function(a){return this.b?this.X.getCurrentTime(this.A)>=a:!1};f.Nf=function(a){this.b?this.X.seekTo(a,!1):this.B=a};f.getCurrentTime=function(){return this.b?this.X.getCurrentTime(this.A):-1};
f.rd=function(){return this.b&&this.j?this.X.getDuration(this.A):-1};f.ms=function(){return null};f.ys=function(){return Tb(IP)};f.Ge=function(){return this.b?0==this.X.getPlayerState(this.A):!1};f.Mm=function(){var a=document.getElementById(this.N);return new G(a.offsetWidth,a.offsetHeight)};f.er=function(){return!1};
f.Gi=function(){this.M=u(this.Ts,this);this.D=u(this.Nn,this);this.P&&(this.X.addEventListener("onAdStateChange",this.D),this.X.addEventListener("onReady",this.M),this.X.addEventListener("onStateChange",this.D))};f.Cf=function(){this.P&&(this.X.removeEventListener("onAdStateChange",this.D),this.X.removeEventListener("onReady",this.M),this.X.removeEventListener("onStateChange",this.D))};
f.Mu=function(){var a=this.N,b={playerVars:bc(iQ),events:{onError:u(this.yD,this),onReady:u(this.Ts,this),onAdStateChange:u(this.Nn,this),onStateChange:u(this.Nn,this)}},c=q("YT");this.X=null!=c&&null!=c.Player?new c.Player(a,b):null};
function jQ(a,b,c){var d={};if(null!=a.g){var e=a.g.g;null!=e&&(d.agcid=e);e=a.g.b;null!=e&&(d.adformat=e);(e=a.g.j)&&(d.cta_conversion_urls=e);d.iv_load_policy=a.g.o?1:3;a.g.k&&(d.noiba=1);a.g.A&&(d.utpsa=1)}e=bQ(b);null===e?d.url_encoded_third_party_media="url="+encodeURIComponent(b)+"&type="+encodeURIComponent(null===c?"":c):d.videoId=e;a.j=!1;a.X.cueVideoByPlayerVars(d)}f.yD=function(){this.S("error")};
f.Ts=function(){this.b=!0;-1!=this.o&&(this.setVolume(this.o),this.o=-1);null!=this.C&&(jQ(this,this.C,this.F),this.F=this.C=null);-1!=this.B&&(this.Nf(this.B),this.B=-1);this.I&&this.play()};f.Nn=function(a){switch(a.data){case 0:this.j?this.S("end"):this.S("error");break;case 1:this.j||(kQ(this),this.j=!0,this.S("start"));this.S("play");break;case 2:this.S("pause")}};function lQ(a){a.O.Fa(a.k,"tick",a.mq);null!=a.k&&(a.k.stop(),a.k=null)}function kQ(a){null!=a.T&&Uk(a.T)}f.mq=function(){this.S("timeUpdate")};
f.Kx=function(){this.S("mediaLoadTimeout")};f.J=function(){lQ(this);kQ(this);this.Cf();this.b=!1;this.O.dispose();this.B=-1;this.F=null;this.I=!1;this.C=null;this.o=-1;this.M=this.X=this.g=null;this.j=!1;this.L="";eQ.G.J.call(this)};ba("onYouTubeIframeAPIReady",function(){fQ=!0;z(gQ,function(a){a()});pb(gQ)},window);function mQ(a){T.call(this);this.b=a||Za();this.g=[]}w(mQ,T);mQ.prototype.j=!1;mQ.prototype.connect=function(){for(this.j=!0;!D(this.g);){var a=this.g.shift();this.sendMessage(a.name,a.type,a.data)}};mQ.prototype.send=function(a,b,c){this.j?this.sendMessage(a,b,c):this.g.push({name:a,type:b,data:c})};function nQ(a,b,c,d,e){S.call(this,a);this.hd=b;this.Xe=c;this.ar=d;this.k=e}w(nQ,S);nQ.prototype.getOrigin=function(){return this.k};nQ.prototype.toString=function(){return""};function oQ(a,b){mQ.call(this,b);this.k=a;this.Gc=null;this.o=new Yk(this);this.logger=null;this.o.listen(Wc(),"message",this.receive)}w(oQ,mQ);function pQ(a){if(null==a||!r(a)||0!=a.lastIndexOf("ima://",0))return null;a=a.substr(6);try{return sf(a)}catch(b){return null}}oQ.prototype.sendMessage=function(a,b,c){null!=this.Gc&&null!=this.Gc.postMessage&&this.Gc.postMessage(qQ(this,a,b,c),"*");null!=this.Gc&&null==this.Gc.postMessage&&AP(zP.getInstance(),11)};
oQ.prototype.J=function(){this.o.dispose();oQ.G.J.call(this)};oQ.prototype.receive=function(a){a=a.b;var b=pQ(a.data);if(null!=b){if(null==this.Gc)this.Gc=a.source;else if(this.Gc!=a.source)return;var c=b.channel;null!=c&&c==this.k&&(c=b.sid,null!=c&&("*"!=this.b&&c!=this.b||this.S(new nQ(b.name,b.type,b.data||{},b.sid,a.origin))))}};function qQ(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.b;e.channel=a.k;return"ima://"+uf(e)};function rQ(a,b){T.call(this);this.k=a;this.j=b;this.b={};this.g=new Yk(this);this.g.listen(Wc(),"message",this.o)}w(rQ,T);rQ.prototype.send=function(a){var b=a.getChannelId();this.b.hasOwnProperty(b)?this.b[b].send(a.type,a.hd,a.Xe):a.getChannelId()};function sQ(a,b,c,d){a.b.hasOwnProperty(b)||(c=new oQ(b,c),a.g.listen(c,a.k,function(a){a=new tQ(a.type,a.hd,a.Xe,a.ar,a.getOrigin(),b);this.S(a)}),c.Gc=d,c.connect(),a.b[b]=c)}rQ.prototype.J=function(){this.g.dispose();Qh(this.b);rQ.G.J.call(this)};
rQ.prototype.o=function(a){a=a.b;var b=pQ(a.data);if(null!=b){var c=b.channel;if(this.j&&!this.b.hasOwnProperty(c)){var d=b.sid;sQ(this,c,d,a.source);this.S(new tQ(b.name,b.type,b.data||{},d,a.origin,c))}}};function tQ(a,b,c,d,e,g){nQ.call(this,a,b,c,d,e);this.j=g}w(tQ,nQ);tQ.prototype.getChannelId=function(){return this.j};function uQ(){var a=q("google.ima.gptProxyInstance",Wc());if(null!=a)return a;Yk.call(this);this.k=new rQ("gpt",!0);this.listen(this.k,"gpt",this.A);this.b=null;vQ()||Wc().top===Wc()||(this.b=new rQ("gpt",!1),this.listen(this.b,"gpt",this.o))}w(uQ,Yk);function vQ(){return!!q("googletag.cmd",Wc())}function wQ(){var a=q("googletag.console",Wc());return null!=a?a:null}
uQ.prototype.A=function(a){var b=a.getOrigin(),c=Rd("//imasdk.googleapis.com"),b=Rd(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.b)sQ(this.b,a.getChannelId(),a.ar,Wc().parent),null!=this.b&&this.b.send(a);else if(c=a.Xe,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.hd,"isGptPresent"==c?d=vQ():"isConsolePresent"==c&&(d=null!=wQ());else if(vQ())if("pubads"==b||"companionAds"==b){d=a.hd;var e,g=Wc().googletag;if(null!=g&&null!=g[b]&&(g=g[b](),null!=g&&(d=g[d],null!=d)))try{e=d.apply(g,
c)}catch(h){}d=e}else if("console"==b){if(g=a.hd,e=wQ(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.hd;d=Wc();if(C(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{g=e.apply(d,c)}catch(l){}d=g}n(d)&&(a.Xe.returnValue=d,this.k.send(a))}};uQ.prototype.o=function(a){this.k.send(a)};function xQ(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,d,k,l,p,s,t){if("%"==p)return"%";var y=c.shift();if("undefined"==typeof y)throw Error("[goog.string.format] Not enough arguments");arguments[0]=y;return yQ[p].apply(null,arguments)})}
var yQ={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Sa(" ",c-a.length):Sa(" ",c-a.length)+a},f:function(a,b,c,d,e){d=a.toString();isNaN(e)||""==e||(d=a.toFixed(e));var g;g=0>a?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=a&&(d=g+d);if(isNaN(c)||d.length>=c)return d;d=isNaN(e)?Math.abs(a).toString():Math.abs(a).toFixed(e);a=c-d.length-g.length;return d=0<=b.indexOf("-",0)?g+d+Sa(" ",a):g+Sa(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,g,h,k){return yQ.f(parseInt(a,
10),b,c,d,0,g,h,k)}};yQ.i=yQ.d;yQ.u=yQ.d;function zQ(a,b){T.call(this);this.j=new Yk(this);this.B=!1;this.C=Za();this.o=new Fd;var c=this.C,c=I("iframe",{src:("https:"==document.location.protocol?"https:":"http:")+xQ("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en")+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});bl(this.j,c,"load",this.yv);a.appendChild(c);this.fb=c;c=this.o.get("*");null==c&&(c=new oQ(this.C,"*"),this.B&&(c.Gc=nd(this.fb),c.connect()),this.o.set("*",c));this.k=c;this.A=b;this.b=this.A.j;
this.g=null;this.j.listen(this.k,"mouse",this.Av);this.j.listen(this.k,"touch",this.Cv);null!=this.b&&(this.j.listen(this.k,"displayContainer",this.zv),this.j.listen(this.k,"videoDisplay",this.Bv),this.j.listen(this.b,Tb(WP),this.Dv));var c=Wc(),d=q("google.ima.gptProxyInstance",c);null==d&&(d=new uQ,ba("google.ima.gptProxyInstance",d,c))}w(zQ,T);f=zQ.prototype;
f.J=function(){this.j.dispose();null!==this.g&&(this.g.dispose(),this.g=null);Dd(this.o.Vb(!1),function(a){a.dispose()});this.o.clear();gd(this.fb);zQ.G.J.call(this)};f.Av=function(a){var b=a.Xe,c=Vf(this.fb),d=document.createEvent("MouseEvent");d.initMouseEvent(a.hd,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,null);if(!sh||oc||yc||!1==document.webkitIsFullScreen)this.fb.blur(),window.focus();this.fb.dispatchEvent(d)};
function AQ(a,b){var c=Vf(a.fb),d=B(b,function(a){return document.createTouch(window,this.fb,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return document.createTouchList.apply(document,d)}
f.Cv=function(a){var b=a.Xe,c=Vf(this.fb),d=document.createEvent("TouchEvent");d.initTouchEvent(a.hd,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,AQ(this,b.touches),AQ(this,b.targetTouches),AQ(this,b.changedTouches),b.scale,b.rotation);this.fb.dispatchEvent(d)};
f.Bv=function(a){if(null!=this.b){var b=a.Xe;switch(a.hd){case "startTracking":this.b.Gi();break;case "stopTracking":this.b.Cf();break;case "exitFullscreen":this.b.jn();break;case "play":this.b.play();break;case "pause":this.b.pause();break;case "load":this.b.Cg(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.b.Nf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.b.Gl(new UP(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled))}}};
f.Dv=function(a){var b={};switch(a.type){case "beginFullscreen":a="fullscreen";break;case "endFullscreen":a="exitFullscreen";break;case "click":a="click";break;case "end":a="end";break;case "error":a="error";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.b.Ge();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.b.getCurrentTime();b.duration=this.b.rd();break;case "volumeChange":a=
"volumeChange";b.volume=this.b.ae();break;default:return}this.k.send("videoDisplay",a,b)};f.zv=function(a){switch(a.hd){case "showVideo":null!=this.g?QP(this.g):(this.g=new OP,this.j.listen(this.g,"click",this.az));a=this.A;PP(this.g,null!=a.B?a.B:null!=a.b?a.b.j:null);a=this.A;null!=a.b&&a.b.show();break;case "hide":null!==this.g&&(this.g.dispose(),this.g=null),this.A.hide()}};f.az=function(){this.k.send("displayContainer","videoClick")};
f.yv=function(){Dd(this.o.Vb(!1),function(a){a.Gc=nd(this.fb);a.connect()},this);this.B=!0};function BQ(a,b,c,d){if(null==a||!md(Mc(a),a))throw lP(JO,null,"containerElement","element");this.C=a;var e=null!=b||null!=d;this.A=(this.k=e)&&null!=d;AP(zP.getInstance(),8,{enabled:this.k,yt:null!=d,customClick:null!=c});pP.g?a=null:(e=I("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.g=a;this.b=this.k||null==this.g||pP.g||!wP()?null:new aQ(this.g,null);a=null;this.k?null!=d?a=new eQ(d):null!=b&&(a=new XP(b)):null!=this.b&&(a=new XP(this.b.g));this.j=a;this.B=c||null;
this.o=null==this.g||pP.g?null:new zQ(this.g,this)}BQ.prototype.initialize=function(){null!=this.b&&this.b.initialize()};BQ.prototype.destroy=function(){Oh(this.b);Oh(this.o);Oh(this.j);gd(this.g)};BQ.prototype.hide=function(){null!=this.b&&this.b.hide()};function CQ(){T.call(this);this.currentTime=0}w(CQ,T);function DQ(a){CQ.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw lP(JO,null,"content","currentTime");this.g=a;this.b=new Rk(250);this.j=new Yk(this);al(this.j,this.b,"tick",this.k,this)}w(DQ,CQ);DQ.prototype.start=function(){this.b.start()};DQ.prototype.stop=function(){this.b.stop()};DQ.prototype.J=function(){DQ.G.J.call(this);this.j.dispose();this.b.dispose()};
DQ.prototype.k=function(){if("currentTime"in this.g&&!isNaN(this.g.currentTime)){var a=this.currentTime;this.currentTime=this.g.currentTime;a!=this.currentTime&&this.S(new S("currentTimeUpdate"))}else this.S(new S("contentWrapperError")),this.stop()};function EQ(){this.reset()}EQ.prototype.reset=function(){this.b=0;this.g=null};function FQ(){this.g=this.b=null}FQ.prototype.reset=function(){this.g=this.b=null};function GQ(){this.b=HQ();this.M=this.L=this.j=this.B=this.k=null;this.I=HQ();this.g=null;this.N=this.C=this.D="";this.A=this.F=this.o=null}function HQ(){return Math.floor(4503599627370496*Math.random())}var IQ=new GQ;GQ.prototype.clear=function(){this.b=HQ();this.j=this.B=this.k=null;this.I=HQ();this.g=null;this.N=this.C=this.D="";this.A=this.F=this.o=null};function JQ(a){if(pP.g)return"h.3.0.0";var b="h."+a.N;null!=a.o&&(b+="/n."+a.o,null!=a.k&&(b+="/"+a.k));return b};function KQ(a,b){this.A=a;this.o=B(b,function(a){return a.clone()});this.k="";this.b=this.j=0;this.g=!0}function LQ(a){a.k="";a.j=0;a.b=0;a.g=!0}KQ.prototype.clone=function(){var a=new KQ(this.A,this.o),b=this.j,c=this.b,d=this.g;a.k=this.k;a.j=b;a.b=c;a.g=d;return a};function MQ(){T.call(this);this.k=!1}w(MQ,T);function NQ(a){S.call(this,a)}w(NQ,S);function OQ(){MQ.call(this);this.B=[];this.o=!1;this.j="not_loaded";this.g=null;this.A=0;this.b=null;this.C=new Lc}w(OQ,MQ);da(OQ);function PQ(a){var b=["googletag","googletag.cmd"];return lb(a,function(a){return kb(b,function(b){return null!==q(b,a)})})||null}f=OQ.prototype;f.J=function(){this.g&&this.g.dispose()};f.initialize=function(){if(!this.k){var a;var b=yd(new Lc);try{q("googletag"),PQ([b,b.top]),a=!0}catch(c){a=!1}a?QQ(this):(this.k=!0,this.j="not_available")}};
function RQ(a){return a.k?B(a.B,function(a){return a.clone()}):[]}function SQ(a){a=RQ(a);return null!=a?B(a,function(a){return a.o}):void 0}function TQ(a,b,c){var d=0,e=0;null!=b&&(b=new J(b.adTagUrl),d=Number(Ae(b,"pod")||0),e=Number(Ae(b,"ppos")||0));if(null!=a.setVideoSessionInfo)try{a.setVideoSessionInfo(IQ.b,"","","",d,e,c)}catch(g){}}function UQ(a,b){var c=VQ(a);if(null!==c){TQ(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}
f.setVideoContent=function(a,b){var c=WQ(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};function VQ(a){null==a.b&&XQ(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.companionAds?a.b.googletag.companionAds():null}function WQ(a){null==a.b&&XQ(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.pubads?a.b.googletag.pubads():null}f.pp=function(){0<this.A&&v()>=this.A?(this.k=!0,YQ(this),ZQ(this)):QQ(this)};
function YQ(a){a.g&&(a.g.stop(),a.g.Fa("tick",a.pp,!1,a),a.g.dispose(),a.g=null)}
function QQ(a){var b;if(b=!a.o)XQ(a),b=null!=a.b&&null!=a.b.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.b)a.o=!0,c=[];else{var d=a.b.googleGetCompanionAdSlots();c=B(d,a.Ev,a)}}catch(e){a.o=!0,c=[]}a.B=c;a.o=!0}if(b="retrieved"!=a.j&&"not_available"!=a.j)b=null!==VQ(a);if(b){var g;b=VQ(a);if(null!==b&&null!=b.getDisplayAdsCorrelator)try{g=b.getDisplayAdsCorrelator()}catch(h){g=null}else g=null;switch(g){case "not_loaded":case "not_available":a.j=g;break;default:g=Number(g),isNaN(g)?a.j="not_available":
(a.D=g,a.j="retrieved")}}a.o&&"retrieved"==a.j?(a.k=!0,YQ(a),a.S(new NQ("companions_success"))):a.o&&"not_available"==a.j?(a.k=!0,YQ(a),ZQ(a)):a.g||(a.A=v()+5E3,a.g=new Rk(100),a.g.listen("tick",a.pp,!1,a),a.g.start())}function XQ(a){var b=yd(a.C);try{a.b=PQ([b,b.top])}catch(c){a.b=null}}function ZQ(a){a.S(new NQ("companion_initialization_failed"))}f.Ev=function(a){var b=B(a.adSizes,function(a){return new G(a.adWidth,a.adHeight)});return new KQ(a.slotId,b)};
f.hz=function(a){var b={};b.slotId=a.A;b.adContent=a.k;b.adWidth=a.j;b.adHeight=a.b;b.friendlyIframeRendering=a.g;return b};function $Q(a){S.call(this,a)}w($Q,S);function aR(){T.call(this);this.j=[]}w(aR,T);aR.prototype.ti=function(){return null};aR.prototype.Xs=function(){return!0};function bR(){return new cR("empty-ad","GDFP",0,"",0,0,0,[],[],[],[],new Fd)};function dR(a){aR.call(this);this.b=a;this.A=null;this.B=!1;this.g=null;this.o=new Yk;al(this.o,this.b,["companions_success","companion_initialization_failed"],this.Qx,this);al(this.o,this.b,"companion_display_error",this.Px,this);this.b.k?this.B=!0:this.b.initialize()}w(dR,aR);f=dR.prototype;f.destroy=function(){null!=this.o&&this.o.dispose();this.g=null};function eR(a,b){a.g=b;a.k=!0;a.B?fR(a):(a.k=gR(hR(b),[]),a.k||(a.g=null))}
function fR(a){var b=a.g;a.g=null;if(null!=a.b)if(D(a.j))iR(a);else if(null!=b){var c=jR(a,b),d=a.b;try{d.b.googleSetCompanionAdContents(B(a.j,d.hz,d))}catch(e){d.S(new NQ("companion_display_error"))}if(0<c.length&&b.aa&&(d=a.b,0!=c.length&&"GDFP"==kR(b)[0])){a=[];for(var g=0;g<c.length;g++)a.push(c[g].A);b=b.j;c=VQ(d);if(null!==c){TQ(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else iR(a)}function iR(a){a.S(new $Q("companion_display_error"))}f.Xs=function(){return this.k};
f.Qx=function(){null!=this.A&&(this.A.stop(),this.A.dispose(),this.A=null);if(null!=this.b){var a=RQ(this.b);null!=a&&(this.j=a)}this.B=!0;null!=this.g&&fR(this);this.S(new S("initialized"))};f.Px=function(){iR(this)};
function jR(a,b){var c=[],d=[];z(a.j,function(a){LQ(a);jb(a.o,function(d){t:{var e=lR(b);d=mR(new nR(new G(d.width,d.height)),e);if(!D(d)&&(d=oR(d,c),null!=d)){e=d.j;if(null!=e&&0!=a.A.indexOf(e)){d=!1;break t}c.push(d);var e=d.b.Dl(),l=d.b.sd(),p=d.getHeight();d="IFrame"!=d.b.P;a.k=e;a.j=l;a.b=p;a.g=d;d=!0;break t}d=!1}return d},this)||d.push(a)},a);var e=hR(b);a.k=gR(e,c);a.k||z(a.j,function(a){LQ(a)},a);return d}
function gR(a,b){if(null==a)return!0;var c=a.b;return"all"==a.g?pR(c,b):"any"==a.g?qR(c,b):!0}function hR(a){return null!=a&&fa(a.getSelectedCreative())&&!isNaN(rR(a.getSelectedCreative()))?lb(sR(a,!0),function(a){a=a.b;return D(a)?!1:isNaN(a[0].b.b)?!1:a[0].b.b==tR(a[0])}):null}function pR(a,b){return kb(a,function(a){return C(b,a)})}function qR(a,b){return jb(a,function(a){return C(b,a)})}function oR(a,b){return lb(a,function(a){return!C(b,a)})}f.ti=function(){return this.b};function uR(a){S.call(this,a);this.o=[];this.k={};this.j=null}w(uR,S);function vR(){T.call(this);this.pa="";this.g=this.b=!1}w(vR,T);var wR=null;function xR(){null!=wR||(wR=new vR);return wR}f=vR.prototype;f.init=function(){this.b||(qv(uv("//pagead2.googlesyndication.com/pagead/js/lidar.js",{timeout:3E4}),this.qC,this.pC,this),this.b=!0)};f.start=function(){this.b&&(this.pa=String(1E9*Math.random()))};function yR(a,b){if(a.b&&a.g){var c={},d;d=pP.o;pP.b&&null!=d&&(c.opt_videoAdElement=Nc(d));return Goog_AdSense_Lidar_sendVastMessage(b,a.pa,c)}return""}
f.destroy=function(){this.pa="";this.g=this.b=!1};f.qC=function(){this.g=!0};f.pC=function(){this.g=!1};ba("ima.common.triggerViewEvent",function(a,b){var c={};c.viewability=b;xR().S(new iO("viewable_impression",null,c))},void 0);function zR(a,b,c){this.A=b;this.k=c;this.o=null;this.g=new Yk(this);this.F=a;this.j=this.b=null;this.B=!1}zR.prototype.start=function(a,b){this.o=a;this.D=b;AR(this);this.A.B?this.C():dl(this.g,this.A,"initialized",this.C,this)};zR.prototype.C=function(){var a=this.A.ti(),b;b=a.k?"retrieved"!=a.j?void 0:a.D:void 0;a=SQ(a);null!=b&&(this.k.I=b);null!=a&&(this.k.A=a);BR(this)};
function BR(a){if(null===a.o)CR(a);else{var b=new J(a.o.adTagUrl),c=ya(Ae(b,"vid")),b=ya(Ae(b,"cmsid")),d=a.k.D,e=a.k.C;a.k.D=c;a.k.C=b;if(x(c)||x(b))CR(a);else if(c==d&&b==e)CR(a);else{var g=a.A.ti();g.setVideoContent(c,b);UQ(g,a.o);a.j=new Rk(100);al(a.g,a.j,"tick",function(){var a;t:{var b=WQ(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break t}catch(c){a=!0;break t}a=!1}a&&CR(this)},a);a.j.start()}}}
function AR(a){a.b=new Rk;dl(a.g,a.b,"tick",function(){CR(this)},a);Sk(a.b,a.F);a.b.start()}function CR(a){null!=a.g&&(a.g.dispose(),a.g=null);null!=a.b&&(a.b.stop(),a.b=null);null!=a.j&&(a.j.stop(),a.j=null);a.B=!0;null===a.D||a.D()};function DR(){};function ER(a){return jP(bP,null,a.parentNode.nodeName,a.nodeName)}function FR(a){return jP(RO,null,a.parentNode.nodeName,a.nodeName)}function GR(a,b){return null!=a?hb(id(a),function(a){return a.nodeName==b}):[]}function HR(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function IR(a,b){if(null==a)return null;var c="";z(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});c=za(c);return b?Ka(c):c}
function JR(a,b,c,d){null!=a&&z(id(a),function(a){if(a.nodeName==b)c.call(d,a);else throw ER(a);})}function KR(a){return x(a)?NaN:$a(ya(a))}function LR(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new SM(0,0,0,$a(c[0]),$a(c[1]),$a(c[2])),60*(60*(24*c.b+c.k)+c.o)+c.A}return null!=b?b:-1}function MR(a,b){if(!x(a))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};function NR(a,b,c){this.g=a;this.b=c;this.j=b};function OR(a){this.j=a};function PR(a){this.j=a;this.g=this.b=!1}w(PR,OR);function QR(a,b,c){this.b=a;this.g=b;this.j=c};function RR(){this.b=new Fd}function SR(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];Hd(a.b,c)&&(d=a.b.get(c,[]));z(b,function(a){null!=a&&qb(d,a)});a.b.set(c,d)};function TR(a,b){this.b=a;this.g=b}w(TR,DR);TR.prototype.j=function(){return new NR(this.b,null,UR(this))};
function UR(a){var b=new RR;z(id(jd(a.b)),function(a){switch(a.nodeName){case "Preroll":a=VR(this,a);SR(b,a,0);break;case "Midroll":var d=HR(a,"timeOffset"),e=LR(d);if(-1==e)throw jP(EO,null,"timeOffset",ya(d));a=VR(this,a);SR(b,a,e);break;case "Postroll":a=VR(this,a);SR(b,a,-1);break;default:throw jP(NO,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.b.Ma().length)throw jP(MO);return b}
function VR(a,b){var c=[];z(id(b),function(a){switch(a.nodeName){case "Ad":var b=ya(IR(a));if(!xa(b)){a=HR(a,"bumper");var g=this.g.clone();g.adTagUrl=b;b=new PR(g);b.b=null!=a;b.g="always"==a;qb(c,b)}break;default:throw jP(NO,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function WR(a){a=0>a?0:Math.round(a);return 3600<=a?""+Math.floor(a/3600)+":"+("0"+Math.floor(a/60)%60).slice(-2)+":"+("0"+a%60).slice(-2):""+Math.floor(a/60)%60+":"+("0"+a%60).slice(-2)}function XR(a){var b={};z(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=za(d[0]),d=za(d[1]),0<a.length&&(b[a]=d))});return b};var YR=["ai","sigh"];function ZR(a){var b;b=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?La(a,"/pagead/adview")?$R(a)?0:2:La(a,"/pagead/conversion")?$R(a)?1:2:2:2;if(2==b)return a;switch(b){case 0:return b=IQ.F,a=null!=b?aS(a,"&ppid="+b):a,aS(a,"&sdkv="+JQ(IQ));case 1:return aS(a,"&sdkv="+JQ(IQ))}return a}function aS(a,b){var c=a.indexOf("&adurl=");return-1!=c?Ua(a.substr(0,c),b,a.substr(c,a.length)):a+b}
function $R(a){return kb(YR,function(b){var c=a||"";return 0<=be(c,0,b,c.search(ce))})};function bS(a,b){this.b=a;this.g=b}function cS(a){return a.g?-1:a.b};function dS(){this.b=new Fd}function eS(a,b){this.g=a;this.b=b}function fS(a,b){eS.call(this,"progress",a);this.j=b}w(fS,eS);function gS(a,b){z(b,function(a){this.b.set(a.g,b)},a)}function hS(a,b,c,d){var e=b.toLowerCase();b=iS(a,b);null!=d?(d=new fS(c,d),null!=d?b.push(d):b.push(new eS(e,c))):b.push(new eS(e,c));a.b.set(e,b)}function jS(a,b){z(b,function(a){var d=iS(this,a.g);b=ub(d,b);this.b.set(a.g,b)},a)}function iS(a,b){return null!=b?a.b.get(b.toLowerCase())||[]:[]}
function kS(a,b){var c=iS(a,"progress");z(c,function(a){a=a.j;a.g&&(a.g=!1,a.b=a.b*b/100)});Cb(c,function(a,b){return cS(a.j)-cS(b.j)})}dS.prototype.isEmpty=function(){return this.b.isEmpty()};function lS(a,b){return B(iS(a,b)||[],function(a){return a.b})};function mS(a){var b=new dS;JR(a,"Tracking",function(a){var d=HR(a,"event"),e=ZR(IR(a));nS(e)&&null!=d&&("progress"==d?(a=HR(a,"offset"),a=oS(a),null!=a&&hS(b,d,e,a)):hS(b,d,e))});return b}function pS(a){if(x(a))return null;a=new J(a);if("thismessage"!=a.Fb||"extensions"!=a.Cb)return null;a=a.Lb;if(0!=a.lastIndexOf("/",0))return null;a=a.substr(1);return x(a)?null:a}
function oS(a){if(x(a))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!isNaN(a)&&0<=a&&(b=new bS(a,!0))):(a=LR(a),0<=a&&(b=new bS(a,!1)));return b}function nS(a){var b=!0;if(x(a))b=!1;else try{new J(a)}catch(c){b=!1}return b};function qS(a){this.b=null!=a?a:new dS}function rS(a,b){var c=b.b;z(c.Ma(),function(a){jS(this.b,c.get(a))},a)}function sS(a,b){var c=lS(a.b,b);return null!=c?c:[]};function tS(){this.b="Ads by Google";this.g="http://www.google.com/adsense/support";this.j=0};function uS(a,b,c,d,e,g,h,k,l){qS.call(this,l);this.k=a;this.o=b;this.g=c;this.j=e;this.A=g;this.B=h}w(uS,qS);function vS(){}vS.prototype.parse=function(a){var b;JR(a,"config",function(a){null!=b||(b=wS(this,a))},this);return b};function wS(a,b){var c;z(id(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new tS:null;break;case "params":null!=c&&xS(this,c,a)}},a);return c}function xS(a,b,c){z(id(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.g=c;break;case "attribution_text":b.b=c;break;case "signals":b.j=parseInt(c,10)}},a)};function yS(){}
yS.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,g,h,k=!1;z(id(a),function(a){switch(a.nodeName){case "AttributionText":b=IR(a);break;case "AttributionUrl":c=IR(a);break;case "ConversionUrl":e=IR(a);break;case "CustomTracking":null!=id(a)&&(d=mS(a));break;case "PreviousAdInformation":IR(a);break;case "VisibleUrl":g=IR(a);break;case "UI":h=(new vS).parse(a);break;case "ShowYouTubeAnnotations":var p=IR(a);k=MR(ya(p),!1);case "QueryId":IR(a)}},this);null!=h||(h=new tS);return new uS(b,
c,e,0,g,h,k,0,d)};function zS(a,b){qS.call(this,b);this.g=a}w(zS,qS);function AS(){}AS.prototype.parse=function(a){if(null==a)return null;var b;z(id(a),function(a){switch(a.nodeName){case "CustomTracking":null!=id(a)&&(b=mS(a))}});a=null;null!=b&&0<iS(b,"skip").length&&(a="Generic");return new zS(a,b)};function BS(){}BS.prototype.parse=function(a){if(null==a)return null;var b,c;z(id(a),function(a){switch(a.nodeName){case "SkippableAdType":b=IR(a);break;case "CustomTracking":null!=id(a)&&(c=mS(a))}});return new zS(b,c)};function CS(){}CS.prototype.parse=function(a){if(null==a)return null;var b;z(id(a),function(a){switch(a.nodeName){case "CustomTracking":null!=id(a)&&(b=mS(a))}},this);return new qS(b)};function DS(){qS.call(this)}w(DS,qS);function ES(){}ES.prototype.parse=function(a){a=hD(a);return x(a)?null:new DS};function FS(a){qS.call(this);this.g=a}w(FS,qS);function GS(){qS.call(this)}w(GS,qS);function HS(){}HS.prototype.b={sC:"TEMPLATE_PARAMETERS",tC:"TEMPLATE_URL"};HS.prototype.parse=function(a){if(null==a)return null;z(id(a),function(a){switch(a.nodeName){case this.b.sC:IS(this,a)}},this);return new GS};function IS(a,b){z(id(b),function(a){a.nodeName==this.b.tC&&IR(a)},a)};function JS(a,b,c,d){qS.call(this);this.j=a;this.k=b;this.o=c;this.g=d}w(JS,qS);function KS(){}KS.prototype.b={hC:"Line1",iC:"Line2",jC:"Line3",gC:"ImageUrl"};KS.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;z(id(a),function(a){switch(a.nodeName){case this.b.hC:b=IR(a,!0);break;case this.b.iC:c=IR(a,!0);break;case this.b.jC:d=IR(a,!0);break;case this.b.gC:e=IR(a)}},this);return new JS(b,c,d,e)};function LS(a){qS.call(this);this.g=a}w(LS,qS);function MS(){}MS.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?$a(a):NaN;a=isNaN(a)?-1:a;return new LS(a)};function NS(){qS.call(this)}w(NS,qS);function OS(){}OS.prototype.parse=function(a){return null!=a?new NS:null};function PS(a){qS.call(this);this.g=isNaN(a)?-1:a}w(PS,qS);function QS(){}QS.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?$a(a):NaN;return new PS(a)};function RS(){}var SS={IMAGE:"Image",GE:"Flash",zE:"All"},TS={HTML:"Html",iI:"IFrame",NJ:"Static",zE:"All"},US={jI:"IgnoreSize",wJ:"SelectExactMatch",xJ:"SelectNearMatch"};var VS=!1,WS="";function XS(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var YS=navigator.plugins["Shockwave Flash"];YS&&(VS=!0,YS.description&&(WS=XS(YS.description)));navigator.plugins["Shockwave Flash 2.0"]&&(VS=!0,WS="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var ZS=navigator.mimeTypes["application/x-shockwave-flash"];(VS=ZS&&ZS.enabledPlugin)&&(WS=XS(ZS.enabledPlugin.description))}else try{var $S=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),VS=!0,WS=XS($S.GetVariable("$version"))}catch(aT){try{$S=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),VS=!0,WS="6.0.21"}catch(bT){try{$S=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),VS=!0,WS=XS($S.GetVariable("$version"))}catch(cT){}}}var dT=VS,eT=WS;function nR(a){if(null==a||0>=a.width||0>=a.height)throw lP(JO,null,"ad slot size",a.toString());this.g=a;this.b=new RS;this.o=fT(TS,this.b.k)?this.b.k:"All";this.k=fT(SS,this.b.j)?this.b.j:"All";this.B=fT(US,this.b.o)?this.b.o:"SelectExactMatch";this.j=null!=this.b.g?this.b.g:[];this.A=ia(this.b.b)&&0<this.b.b&&100>=this.b.b?this.b.b:90}
function mR(a,b){var c=[];z(b,function(a){!x(a.b.k)&&(isNaN(a.b.b)||isNaN(tR(a))||tR(a)==a.b.b)&&gT(this,a)?c.push(a):(a=hT(this,a),null!=a&&!x(a.b.k)&&c.push(a))},a);return c}
function gT(a,b){var c;if(c="Flash"!=b.getContentType()||dT){if(c="All"==a.o||a.o==b.b.P)c=b.getContentType(),c=null!=c?"All"==a.k||a.k==c:!0;c&&(c=b.j,c=D(a.j)?!0:null!=c?0<=fb(a.j,c):!1)}c?(c=b.b.$d(),c="IgnoreSize"==a.B||Mb(a.g,c)?!0:"SelectNearMatch"==a.B&&(c.width>a.g.width||c.height>a.g.height||c.width<a.A/100*a.g.width||c.height<a.A/100*a.g.height?!1:!0)):c=!1;return c}function hT(a,b){var c=b.g;return null!=c?lb(c,function(a){return gT(this,a)},a):null}
function fT(a,b){return null!=b&&Vb(a,b)};function iT(a,b,c,d){this.pa=a;this.b=Jb(c||0,0,1);this.g=null!=d?d:!0}iT.prototype.getId=function(){return this.pa};function jT(a){this.pa=a;this.g=new Fd;this.b=null}function kT(a){var b=Math.random(),c=0,d=a.g.Qa();z(d,function(a){c+=a.b},a);var e=1<c?c:1;a.b=null;for(var g=0,h=0;h<d.length;++h)if(g+=d[h].b,g/e>=b){a.b=d[h];break}};function lT(){this.b=new Fd;mT(this,41351021,0);mT(this,41351022,1);nT(this)}var oT=null;function tT(){oT||(oT=new lT);return oT}function mT(a,b,c){x("GvnExternalLayer")||isNaN(b)||0>=b||(b=new iT(b,0,c),uT(a,"GvnExternalLayer").g.set(b.getId(),b))}function nT(a){z(a.b.Qa(),function(a){kT(a)},a)}function vT(a,b){z(b,function(a){var b=Number(a);a="forcedLayer"+a;isNaN(b)||0>=b||x(a)||(a=uT(this,a),b=new iT(b),a.b=b)},a)}
function wT(a){var b=tT();return jb(b.b.Qa(),function(b){return!!b.b&&b.b.getId()==a})}function xT(a){var b=[];z(a.b.Qa(),function(a){(a=a.b)&&a.g&&b.push(a.getId())});return b.sort().join(",")}function uT(a,b){var c=a.b.get(b);null==c&&(c=new jT(b),a.b.set(b,c));return c};function yT(a){J.call(this,a);this.g=new Fd;a=this.Lb;var b=a.indexOf(";"),c=null;0<=b?(ie(this,a.substring(0,b)),c=a.substring(b+1)):ie(this,a);zT(this,c)}w(yT,J);yT.prototype.toString=function(){return AT(this,yT.G.toString.call(this))};yT.prototype.Pg=function(){return""};function zT(a,b){x(b)||z(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=Ba(a.substring(0,b));a=Ba(a.substring(b+1));b=this.g.get(e);null!=b?C(b,a)||b.push(a):b=[ya(a)];this.g.set(e,b)}},a)}
function BT(a){if(x("ord"))return null;a=a.g.get("ord");return null!=a?a:null}function CT(a,b,c){x(b)||(c=B(c,ya),a.g.set(b,c))}function AT(a,b){var c=[ya(b)];wb(c,DT(a));return c.join(";")}function DT(a){var b=BT(a);null!=b?x("ord")||a.g.remove("ord"):b=[ya(v())];var c=[];z(a.g.Ma(),function(a){z(this.g.get(a),function(b){wb(c,a+"="+b)})},a);wb(c,"ord="+b[0]);CT(a,"ord",b);return c}yT.prototype.clone=function(){return new yT(this.toString())};var ET=["iu","sz"];function FT(a){if(null==a.adTagUrl)return!1;a=new J(a.adTagUrl);return"googleads.g.doubleclick.net"==a.Cb&&"/pagead/ads"==a.Lb}function GT(a){var b=a.adTagUrl;if(null==b)return!1;a=ue(new J(b));return(x(a)?0:/\/gampad\/ads/.test(a))?kb(ET,function(a){return 0<=be(b,0,a,b.search(ce))}):!1}
function HT(a){a=a.adTagUrl;if(null==a)return!1;a=new yT(a);var b=a.Cb,c;if(c=!va(b,".g.doubleclick.net")){if(b=va(b,"doubleclick.net"))a=AT(a,a.Lb),b=x(a)?!1:/\/(ad|pfad)[x|i|j]?\//.test(a);c=b}return c?!0:!1}function IT(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==te(new J(a)):!1};function JT(){this.b=1;this.k=this.j=0;this.g=1};function KT(){this.L={};this.T="";this.ie=new dS}function rR(a){return a.b}KT.prototype.Hn=function(){return null};function LT(a,b,c){a.T=b;a.L=c}KT.prototype.vg=function(a){this.aa=a};KT.prototype.getAd=function(){return this.aa};function MT(a,b){for(var c=iS(a.ie,b)||[],d=a.aa.b;null!=d;){var e=NT(a,d)||NT(a,d,!0);null!=e&&(e=iS(e.ie,b)||[],c=ub(e,c));d=d.b}return c}KT.prototype.On=function(a){a=MT(this,a);return B(a||[],function(a){return a.b})};
function NT(a,b,c){var d=c||!1;return lb(b.k,function(a){var b=a.b==this.b;return a instanceof this.constructor&&(d||b)},a)};function OT(a,b,c,d,e){KT.call(this);this.ca=a;this.j=b;this.g=c;this.D=vb(d);this.zb=this.oa=null;this.k=e}w(OT,KT);OT.prototype.Fd=function(){return this.j};OT.prototype.getMediaUrl=function(a){var b="";jb(this.D,function(c){var d=c.g;return!x(a)&&a!=c.b||null==d||x(d)?!1:(b=d,!0)},this);return b};OT.prototype.setMediaUrl=function(a){this.zb=a};
OT.prototype.Hn=function(){var a=lb(this.D,function(a){return!x(a.b)&&-1!=a.b.indexOf("javascript")&&("VPAID"==a.k||"surveys"==a.k)});return null!=a?a.g:null};function PT(a,b,c){this.g=a;this.j=b;this.k=c;this.A=0;this.b=new Yk(this);QT(this)}w(PT,Mh);function QT(a){a.k.forEach(function(a,c){this.b.listen(c,"mousedown",this.B);this.b.listen(c,"mouseup",this.D)},a);a.b.listen(a.j,"mouseover",a.C)}PT.prototype.B=function(){this.o=v()};
PT.prototype.D=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.g&1&&c.push("nm="+this.A);this.g&2&&c.push("nb="+this.k.get(b));if(this.g&8){var d=Vf(this.j);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.g&16&&null!=this.o&&c.push("clkt="+(v()-this.o));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};PT.prototype.C=function(){this.A++};PT.prototype.J=function(){PT.G.J.call(this);this.b.dispose()};function RT(a,b,c,d,e){KT.call(this);x(a)&&(a=Za()+"_ima");this.pa=ya(a);this.qa=b;this.P=c;this.O=d;this.k=e;null!=this.O?this.U=EP[this.O]||"Other":this.U=null}w(RT,KT);f=RT.prototype;f.Dl=function(){var a;a=this.nd();if("outerHTML"in a)a=a.outerHTML;else{var b=Mc(a).createElement("div");b.appendChild(a.cloneNode(!0));a=b.innerHTML}return a};f.getContentType=function(){return this.U};f.$d=function(){return this.qa};f.sd=function(){return this.$d().width};f.getHeight=function(){return this.$d().height};
f.Hn=function(){return"VPAID"==this.B?this.k:null};f.Fd=function(){return this.I};function ST(a,b,c,d,e){RT.call(this,a,b,c,d,e);this.ea=-2;this.j=null;new Yk(this);this.M=this.F=ca;this.N=[];this.la=!0;this.V=[];this.C=!1}w(ST,RT);function TT(a,b){a.j=b;null!=a.g&&null!=b&&(UT(a,a.F),VT(a,a.M))}function UT(a,b){null!=a.j&&null!=a.g&&z(a.N,function(a){this.j.Fa(a,"click",this.F);x(this.Fd())||this.j.listen(a,"click",b)},a);a.F=b}function VT(a,b){null!=a.j&&null!=a.g&&(a.j.Fa(a.g,"creativeview",a.M),a.j.listen(a.g,"creativeview",b));a.M=b}
function WT(a){z(a.V,function(a){gd(Nc(a))},a);a.V=[]}ST.prototype.o=function(a){null==this.j||x(this.Fd())||(this.j.listen(a,"click",this.F),this.N.push(a))};ST.prototype.nd=function(){null==this.g&&(this.g=this.Gh(),dd(this.g,XT(this)));null!=this.j&&this.j.listen(this.g,"creativeview",this.M);return this.g};
function ZT(a,b){var c=a.pa,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.sd()+"px");x(c)||(d.id=c);return I("div",d,b)}ST.prototype.Hs=function(){return 2};
function XT(a){if(!a.la)return null;var b=MT(a,"start");wb(b,MT(a,"creativeview"));if(null!=b&&!D(b)){var c=[];z(b,function(a){if(!x(a)){var b;b=Kc().WB("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});Kf(b,{display:"block",height:"0px",width:"0px"});var g="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",vO(a.b));b.setAttribute("id",g);this.V.push(g);qb(c,b)}},a);return c}return null}
function $T(a,b){if(null!=a.g){var c=new Fd;z(a.N,function(a){c.set(a,this.Hs(a))},a);new PT(b,a.g,c)}};function cR(a,b,c,d,e,g,h,k,l,p,s,t,y,E,A,$){T.call(this);this.N=a;this.A=b;this.za=d;this.O=new Yk(this);this.O.listen(xR(),"viewable_impression",this.gu);this.ea=isNaN(h)||""==h||0==h?-1:h;this.F=k?vb(k):[];this.ca=l?vb(l):[];this.k=p?vb(p):[];this.L=s?vb(s):[];this.o=[];z(this.L,function(a){wb(this.o,vb(a.b))},this);this.aa=!0;this.b=this.g=null;this.B=new Fd(t);this.P=null!=$;this.qa=(this.C=null!=y)?E||!1:!1;this.wa=this.hu?A||!1:!1;this.xa=ya(y);this.ya=ya($);this.oa=this.j=null;this.D=new JT;
this.U=new G(0,0);this.I=this.M=this.T=null;z(ub(this.k,this.o),function(a){a.vg(this)},this);pP.b&&aU(this)&&(this.o=hb(this.o,function(a){return 60>=a.getHeight()}))}w(cR,T);function bU(a){var b;b=cU(a)?dU(a)?"2_1":"2_2":"2";return(eU(a,GP)||eU(a,HP)?1:eU(a,FP)?2:0)+"_"+b}function fU(a){return null!=a.A?a.A:""}function gU(a){return null!=a.b?ub(gU(a.b),a.F):a.F}function hU(a){return null!=a.b?ub(hU(a.b),a.ca):a.ca}f=cR.prototype;
f.getContentType=function(){var a=this.getSelectedCreative(),b="";if(null===a)return b;if(a instanceof OT)a=a.oa,null===a||(b=ya(a.b));else if(a instanceof ST)switch(a.P){case "IFrame":case "Html":case "Static":b=ya(a.O)}return b};function lR(a){return null!=a.b?ub(a.o,lR(a.b)):a.o}function iU(a){return null!=a.g?a.g.T:""}f.getExtension=function(a){return this.B.get(a)};function jU(a,b){a.g=b;a.U=null!=a.g&&a.g instanceof ST?a.g.$d():new G(0,0)}f.getSelectedCreative=function(){return this.g};
f.gu=function(a){this.S(new iO("viewable_impression",this,a.j))};function kU(a){return null!=a.N?a.N:""}function lU(a){if(null==a.b)return[];var b=[kU(a.b)];wb(b,lU(a.b));return b}function mU(a){var b=lU(a).reverse();b.push(kU(a));return b}function nU(a){if(null==a.b)return[];var b=[fU(a.b)];wb(b,nU(a.b));return b}function kR(a){var b=nU(a).reverse();b.push(fU(a));return b}function oU(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.g?a.g:-1}
function pU(a){if(-1!=a.ea)return a.ea;a=a.getExtension("pod");return null!=a&&-1!=a.g?a.g:-1}function sR(a,b){return b||null==a.b?a.L:ub(a.L,sR(a.b))}function qU(a,b){return jb(a.k,function(a){return a instanceof OT&&"linear"==b||a instanceof ST&&"nonlinear"==b?!0:!1})}function aU(a){return rU(a)?"video"==a.za:qU(a,"linear")}function cU(a){return null!=sU(a)}
function sU(a){if(wT(919139)||wT(919140))return new bS(0,!1);var b=new bS(5,!1),c=tU(a);if("implicit"==c)return b;a=a.getSelectedCreative();var d=null;null!=a&&a instanceof OT&&(d=a.k);null!=d||"explicit"!=c||(d=b);return null!=d&&pP.b?b:d}
function tU(a){if(null!=lb(a.B.Qa(),function(a){return!D(sS(a,"skip"))}))return"implicit";var b=a.B.get("DFP");if(b instanceof zS)switch(b.g){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.getSelectedCreative();return null==a||(a=a.ie,null==a||D(iS(a,"skip")))?"none":"explicit"}function dU(a){if(null==a.A||null==a.j)return!1;var b=FT(a.j),c=null!=a.b,d=GT(a.j);if(!c&&(b||d&&uU(a)))return!0;a=eU(a,["ADSENSE/ADX"])||eU(a,FP)&&c;return pP.b&&!a}f.hu=function(){return this.C};
function vU(a){return null===a.g?null:a.g.Fd()}function wU(a){return null==a.g||a.g instanceof ST?-1:a.g.ca}function xU(a){return null===a.g?null:a.g.Hn()}function rU(a){return yU(a,FP)}f.getHeight=function(){return this.U.height};function zU(a){return a.T}function uU(a){if(!yU(a,HP))return!1;a=a.B.get("DFP");return null!=a?"InstreamSelect"==a.g:!1}f.toString=function(){return"Ad: "+this.N};function yU(a,b){return null!=a.A?C(b,a.A.toUpperCase()):!1}
function eU(a,b){return C(b,kR(a)[0].toUpperCase())}f.J=function(){null!=this.O&&this.O.dispose();cR.G.J.call(this)};function AU(a,b){this.b=a;this.g=b};function BU(a,b,c){this.b=a;this.g=b;this.j=c}BU.prototype.getContentType=function(){return this.b.getContentType()};BU.prototype.getHeight=function(){return this.b.getHeight()};function tR(a){a=a.b.getAd().getSelectedCreative();return null!=a?a.b:NaN}BU.prototype.On=function(a){return lS(this.b.ie,a)};BU.prototype.vg=function(a){this.b.vg(a);z(this.g,function(b){b.vg(a)},this)};function CU(a,b,c){this.g=a;this.b=b;this.j=c}CU.prototype.getContentType=function(){return null!=this.b?EP[this.b]||"Other":null};rc&&Cc(8);function DU(){};var EU={},FU={},GU={};function HU(){throw Error("Do not instantiate directly");}HU.prototype.qe=null;HU.prototype.toString=function(){return this.content};function IU(a,b){var c=Kc().createElement("DIV"),d=JU(a(b||KU,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function JU(a){if(!ka(a))return String(a);if(a instanceof HU){if(a.Uc===EU)return a.content;if(a.Uc===GU)return Ca(a.content)}return"zSoyz"}var KU={};function LU(a){if(null!=a)switch(a.qe){case 1:return 1;case -1:return-1;case 0:return 0}return null}function MU(){HU.call(this)}w(MU,HU);MU.prototype.Uc=EU;function NU(a){return null!=a&&a.Uc===EU?a:a instanceof Cx?OU(Ex(a),a.Ah()):OU(Ca(String(String(a))),LU(a))}function PU(){HU.call(this)}w(PU,HU);PU.prototype.Uc={};PU.prototype.qe=1;function QU(){HU.call(this)}w(QU,HU);QU.prototype.Uc={};function RU(){HU.call(this)}w(RU,HU);RU.prototype.Uc=FU;RU.prototype.qe=1;function SU(){HU.call(this)}
w(SU,HU);SU.prototype.Uc={};SU.prototype.qe=1;function TU(){HU.call(this)}w(TU,HU);TU.prototype.Uc={};TU.prototype.qe=1;function UU(a,b){this.content=String(a);this.qe=null!=b?b:null}w(UU,HU);UU.prototype.Uc=GU;function VU(a){function b(){}b.prototype=a.prototype;return function(a,d){var e=new b;e.content=String(a);void 0!==d&&(e.qe=d);return e}}function WU(a){function b(){}b.prototype=a.prototype;return function(a){var d=new b;d.content=String(a);return d}}var OU=VU(MU);WU(PU);VU(QU);WU(RU);
var XU=WU(SU);WU(TU);(function(a){function b(){}b.prototype=a.prototype;return function(a,d){if(!String(a))return"";var e=new b;e.content=String(a);void 0!==d&&(e.qe=d);return e}})(MU);var YU=/['()]/g;function ZU(a){return"%"+a.charCodeAt(0).toString(16)}function $U(a){if(null!=a&&a.Uc===FU)return String(a).replace(aV,bV);a=Aa(String(a));YU.lastIndex=0;return YU.test(a)?a.replace(YU,ZU):a}var cV={};
function dV(a){cV[1]||(cV[1]=new DU);var b=LU(a);if(null==b){var c=b=0,d=!1;a=kx(a+"",null!=a&&a.Uc===EU).split(qx);for(var e=0;e<a.length;e++){var g=a[e];nx.test(kx(g,void 0))?(b++,c++):ox.test(g)?d=!0:mx.test(kx(g,void 0))?c++:rx.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return XU(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var eV={"\x00":"%00","\u0001":"%01","\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\x0B":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11","\u0012":"%12","\u0013":"%13","\u0014":"%14","\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",
")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87","\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB",
"\uff3d":"%EF%BC%BD"};function bV(a){return eV[a]}var aV=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g;function fV(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+NU(a.Gd)+'"><img src="'+NU(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+NU(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+NU(a.Gd)+'" target="_blank" dir='+NU(a.dir)+">"+NU(a.title)+'</a><div class="text-description" dir='+NU(a.dir)+">"+NU(a.text)+"</div>"+(a.Gr?'<a target="_blank" href="'+
NU(a.Gd)+'" class="text-ad-channel">'+NU(a.Gr)+"</a>":"")+"</div></div>"}
function gV(a){return'<div class="flash-container '+(a.Tf?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+NU(a.Gd)+'"></a><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+NU(a.width)+'" height="'+NU(a.height)+'"><param name="movie" value="'+NU(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+$U(a.Gd)+
'"><embed width="'+NU(a.width)+'" height="'+NU(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+NU(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+$U(a.Gd)+'"></object></div>'}function hV(a){return'<div class="image-container" id="'+NU(a.id)+'" style="width:'+NU(a.width)+";height:"+NU(a.height)+'"><a target="_blank" href="'+NU(a.Gd)+'"><img src="'+NU(a.url)+'" border="0"></a></div>'};function iV(a,b,c,d){ST.call(this,a,b,"Static",c,d);this.$r=!1}w(iV,ST);iV.prototype.Gh=function(){var a=this.B,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:vO(ya(this.k)),width:this.sd(),height:this.getHeight(),Gd:this.Fd(),Tf:this.$r||!a},a=IU(gV,a);a.style.width=this.sd()+"px";a.style.height=this.getHeight()+"px";a.id=this.pa;z(a.getElementsByTagName("object"),this.o,this);z(a.getElementsByTagName("a"),this.o,this);return a};function jV(a,b,c,d){ST.call(this,a,b,"Html",c,d)}w(jV,ST);jV.prototype.Gh=function(){var a=I("div");a.innerHTML=this.k;this.o(a);return ZT(this,a)};function kV(a,b,c,d){ST.call(this,a,b,"Static",c,d)}w(kV,ST);kV.prototype.Dl=function(){var a=kV.G.Dl.call(this);this.C&&(a=a.replace('<img src=""','<img src="'+vO(ya(this.k))+'"'));return a};kV.prototype.Gh=function(){var a="";this.C||(a=vO(ya(this.k)));a={id:this.pa,url:a,Gd:this.Fd(),width:this.sd()+"px",height:this.getHeight()+"px"};a=IU(hV,a);z(a.getElementsByTagName("a"),this.o,this);return a};function lV(a){a=a.className;return r(a)&&a.match(/\S+/g)||[]}function mV(a,b){for(var c=lV(a),d=yb(arguments,1),e=c,g=0;g<d.length;g++)C(e,d[g])||e.push(d[g]);c=c.join(" ");a.className=c}function nV(a,b){var c=lV(a),d=yb(arguments,1),c=oV(c,d).join(" ");a.className=c}function oV(a,b){return hb(a,function(a){return!C(b,a)})}function pV(a,b,c){c?mV(a,b):nV(a,b)};function qV(a,b){ST.call(this,a,b,"Static","text","")}w(qV,ST);f=qV.prototype;f.$d=function(){return new G(this.sd(),this.getHeight())};f.getHeight=function(){return 63};f.sd=function(){return null!=this.A?fg(this.A).width:0};f.Hs=function(a){return C(lV(a),"text-image")?9:C(lV(a),"text-ad-channel")?1:0};
f.Gh=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.j,e="rtl";null!=d&&(e=lx.test(kx(d,void 0))?"rtl":"ltr");d={title:d,text:c.k+" "+c.o,dir:e,Gd:this.Fd()};if(c=c.g)d.image=vO(c),a=lb(a.k,function(a){return a instanceof OT}),null!=a&&(d.duration=WR(a.ca));b.j&&(d.Gr=b.j);this.A=IU(fV,d);z(this.A.getElementsByTagName("a"),this.o,this);this.A.id=this.pa;this.A.style.height=this.getHeight()+"px";return this.A};function rV(a,b,c,d,e){ST.call(this,a,b,c,d,e)}w(rV,ST);rV.prototype.Gh=function(){var a=ya(this.k);x(this.Fd())||(a=new J(a),K(a,"clickTAG",Aa(this.Fd())),a=a.toString());var b=I("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.sd());b.setAttribute("src",vO(a));this.o(b);return ZT(this,b)};function sV(a,b,c){var d=tV(c);c=d.g;var e=d.b,d=d.j;switch(c){case "Html":return new jV(a,b,e,d);case "Static":switch(EP[e]){case "Image":return new kV(a,b,e,d);case "Flash":return new iV(a,b,e,d);case "Text":return new qV(a,b)}}return new rV(a,b,c,e,d)}
function tV(a){var b=lb(a,function(a){return"Static"==a.g&&"Flash"==EP[a.b]}),c=lb(a,function(a){return"IFrame"==a.g}),d=lb(a,function(a){return"Html"==a.g}),e=lb(a,function(a){return"Static"==a.g&&"Image"==EP[a.b]}),g=lb(a,function(a){return"Static"==a.g&&"Text"==EP[a.b]});return dT&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function uV(a,b,c,d,e){var g=tV(e),h=sV(a.id,a.size,[g]);h.C=!0;h.B=a.Nm;h.I=b;h.b=c;null!=d&&(h.ie=d);rb(e,g);var k=[];z(e,function(e){e=sV(a.id,a.size,[e]);e.C=!0;e.B=a.Nm;e.I=b;e.b=c;null!=d&&(e.ie=d);k.push(new BU(e,[],a.Zq))});return new BU(h,k,a.Zq)};function vV(){};function wV(a,b,c,d){a=sV("icon",a,d);a.B=b;a.I=c.OB;return new vV};function xV(a){this.k=a;this.logger=null}w(xV,DR);
xV.prototype.b={hA:"Ad",Sm:"AdParameters",YA:"AdSystem",ZA:"AdTitle",gF:"Advertiser",YB:"AltText",lB:"ClickThrough",mB:"ClickTracking",uB:"Companion",pB:"CompanionAds",ZB:"CompanionClickThrough",$B:"CompanionClickTracking",qB:"Creative",$G:"CreativeExtensions",aB:"Creatives",nB:"CustomClick",bB:"Description",bn:"Duration",ERROR:"Error",tB:"Extension",cB:"Extensions",lj:"HTMLResource",rC:"Icon",UA:"Icons",OA:"IconClicks",kC:"IconClickThrough",lC:"IconClickTracking",PA:"IconViewTracking",mj:"IFrameResource",
Or:"Impression",mI:"InLine",LINEAR:"Linear",jB:"MediaFile",VA:"MediaFiles",fC:"NonLinear",rB:"NonLinearAds",lA:"NonLinearClickThrough",mA:"NonLinearClickTracking",hJ:"Pricing",nj:"StaticResource",en:"Survey",bK:"Tracking",cn:"TrackingEvents",kK:"VAST",eB:"VASTAdTagURI",XA:"VideoClicks",fB:"Wrapper"};
xV.prototype.g={FC:"adSlotID",$A:"allowMultipleAds",kj:"apiFramework",gB:"bitrate",oB:"creativeType",hB:"delivery",bn:"duration",NH:"event",dB:"followAdditionalWrappers",GC:"expandedHeight",HC:"expandedWidth",$m:"height",Pm:"id",jA:"maintainAspectRatio",iB:"maxBitrate",kB:"minBitrate",kA:"minSuggestedDuration",QA:"offset",RA:"program",vB:"required",nA:"scalable",dr:"sequence",WA:"skipoffset",Qr:"type",VERSION:"version",an:"width",SA:"xPosition",TA:"yPosition"};
function yV(a){if(null==a)return!1;a=jd(a);return null!=a&&"VAST"==a.nodeName}function zV(a){var b=[];JR(jd(a.k),a.b.hA,function(a){var d;d=AV(a);if(null==d)throw ER(a);var e=a.getAttribute(this.g.Pm);a=Number(a.getAttribute(this.g.dr));d=BV(this,d,e||null,a||0);null!=d&&b.push(d)},a);return b}xV.prototype.j=function(){return new NR(this.k,zV(this),null)};function AV(a){var b=null;z(id(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw ER(a);}});return b}
function BV(a,b,c,d){var e,g,h=[],k=[],l=[],p=[],s=new Fd,t,y=b.nodeName==a.b.fB,E=y,A=y,$;z(id(b),function(a){switch(a.nodeName){case this.b.eB:if(y){if(null!=t)throw FR(a);t=IR(a);$=pS(t);E=MR(b.getAttribute(this.g.$A),E);A=MR(b.getAttribute(this.g.dB),A)}else throw ER(a);break;case this.b.YA:e=IR(a);break;case this.b.ZA:g=IR(a);break;case this.b.bB:IR(a);break;case this.b.en:IR(a);break;case this.b.Or:a=IR(a);nS(a)&&h.push(ZR(a));break;case this.b.ERROR:a=IR(a);k.push(a);break;case this.b.aB:a=
CV(this,a);l=a.NA;p=a.MA;break;case this.b.cB:s=DV(this,a,$)}},a);return new cR(ya(c),e,0,g,0,0,d,k,h,l,p,s,t,E,A,EV(s))}function EV(a){var b=null;a=a.get("AdSense");null!=a&&(a=sS(a,"vast2tracking"),null!=a&&!D(a)&&(b=a[0]));return b}function FV(a){if(x(a))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function DV(a,b,c){var d=new Fd;try{var e=GR(b,a.b.tB);z(e,function(a){var b=a.getAttribute(this.g.Qr);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new OS).parse(a);break;case "pod":a=(new MS).parse(a);break;case "waterfall":a=(new QS).parse(a);break;case "dart":a=(new AS).parse(a);break;case "dfp":b="DFP";a=(new BS).parse(a);break;case "adsense":b="AdSense";a=(new yS).parse(a);break;case "textad":b="TextAd";a=(new KS).parse(a);break;case "templatead":b="TemplateAd";a=(new HS).parse(a);break;
case "infocards":b="InfoCards";a=(new ES).parse(a);break;case c:b="LocalRedirect";if(null!=a){var e=null;a=GR(a,"AdXml");1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+hD(jd(a[0])));a=new FS(e)}else a=null;break;default:e=new CS,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(rS(e,a.b),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d}
function CV(a,b){var c=[],d=[];JR(b,a.b.qB,function(a){var b=a.getAttribute(this.g.dr),h;x(b)||(h=parseFloat(b));var k=!1;z(id(a),function(a){switch(a.nodeName){case this.b.LINEAR:if(k)throw FR(a);a=GV(this,a,isNaN(h)?0:h);wb(c,a);k=!0;break;case this.b.pB:if(k)throw FR(a);a=HV(this,a,isNaN(h)?void 0:h);wb(d,a);k=!0;break;case this.b.rB:if(k)throw FR(a);a=IV(this,a,isNaN(h)?0:h);wb(c,a);k=!0}},this)},a);return{NA:c,MA:d}}
function IV(a,b,c){var d=[],e=new dS;z(id(b),function(a){switch(a.nodeName){case this.b.fC:a=JV(this,a,c);null!=a&&d.push(a);break;case this.b.cn:e=mS(a);break;default:throw ER(a);}},a);0!=d.length||e.isEmpty()||(a=new ST(null,new G(-1,-1),"",null,""),a.b=c,d.push(a));z(d,function(a){null!=e&&(a.ie=e)});return d}
function KV(a,b){var c={};c.id=b.getAttribute(a.g.Pm);c.Zq=b.getAttribute(a.g.FC);c.Nm=b.getAttribute(a.g.kj);var d=$a(b.getAttribute(a.g.an)),e=$a(b.getAttribute(a.g.$m));c.size=new G(d,e);d=b.getAttribute(a.g.HC);e=b.getAttribute(a.g.GC);x(d)||x(e)||(c.YE=new G($a(d),$a(e)));return c}
function JV(a,b,c){var d=KV(a,b);b.getAttribute(a.g.kj);b.getAttribute(a.g.nA);b.getAttribute(a.g.jA);var e=b.getAttribute(a.g.kA),e=LR(e,-1),g=[];new Fd;var h={},k="",l;z(id(b),function(a){switch(a.nodeName){case this.b.mA:break;case this.b.lA:l=IR(a);break;case this.b.Sm:h=LV(a);k=ya(IR(a));break;case this.b.mj:case this.b.nj:case this.b.lj:g.push(MV(this,a));break;default:throw ER(a);}},a);if(D(g))return null;a=sV(d.id,d.size,g);LT(a,k,h);a.B=d.Nm;a.I=l;a.ea=e;a.b=c;return a}
function MV(a,b){var c=HR(b,a.g.oB),d;t:switch(d=b.nodeName,d){case a.b.nj:d="Static";break t;case a.b.mj:d="IFrame";break t;case a.b.lj:d="Html";break t;default:throw jP(cP,null,d);}var e=IR(b);null!=e||(e="");return new CU(d,c,e)}function HV(a,b,c){var d=[],e=FV(HR(b,a.g.vB));JR(b,a.b.uB,function(a){a=NV(this,a,c);null!=a&&d.push(a)},a);return new AU(d,e)}
function NV(a,b,c){var d=KV(a,b),e=[],g=new dS,h;z(id(b),function(a){switch(a.nodeName){case this.b.$B:break;case this.b.cn:g=mS(a);break;case this.b.ZB:h=IR(a);break;case this.b.YB:IR(a);break;case this.b.Sm:IR(a);break;case this.b.mj:case this.b.nj:case this.b.lj:e.push(MV(this,a));break;default:throw ER(a);}},a);return D(e)?null:uV(d,h,c,g,e)}
function GV(a,b,c){var d=new dS,e={},g="",h=[],k,l=new Fd,p=[],s,t=oS(HR(b,a.g.WA));z(id(b),function(a){switch(a.nodeName){case this.b.UA:OV(this,a);break;case this.b.Sm:e=LV(a);g=ya(IR(a));break;case this.b.bn:s=LR(IR(a),0);break;case this.b.cn:d=mS(a);break;case this.b.VA:p=PV(this,a);break;case this.b.XA:a=QV(this,a);l=a.LA;k=a.JA;h=a.KA;break;default:throw ER(a);}},a);z(h,function(a){hS(d,"click",a)});a=new OT(s,k,l,p,t);LT(a,g,e);a.b=c;null!=d&&(a.ie=d);return a}
function QV(a,b){var c,d=[],e=new Fd;z(id(b),function(a){switch(a.nodeName){case this.b.lB:c=IR(a);break;case this.b.mB:a=IR(a);d.push(a);break;case this.b.nB:var b=HR(a,this.g.Pm);null!=b||(b="");var k=e.get(b,[]);k.push(IR(a));e.set(b,k);break;default:throw ER(a);}},a);return{JA:c,KA:d,LA:e}}
function PV(a,b){var c=[];JR(b,a.b.jB,function(a){var b=HR(a,this.g.hB),g=HR(a,this.g.Qr);a.getAttribute(this.g.an);var h=$a(a.getAttribute(this.g.$m)),k=a.getAttribute(this.g.kj),l=IR(a),p=KR(a.getAttribute(this.g.gB)),s=KR(a.getAttribute(this.g.kB));a=KR(a.getAttribute(this.g.iB));c.push(new TP(b,g,p,s,a,0,h,l,k))},a);return c}function OV(a,b){var c=[];JR(b,a.b.rC,function(a){a=RV(this,a);null!=a&&c.push(a)},a)}
function RV(a,b){HR(b,a.g.RA);HR(b,a.g.SA);HR(b,a.g.TA);var c=$a(b.getAttribute(a.g.an)),d=$a(b.getAttribute(a.g.$m)),c=new G(c,d),d=b.getAttribute(a.g.kj);oS(HR(b,a.g.QA));var e=b.getAttribute(a.g.bn);LR(e,-1);var g=[],h=[],k;z(id(b),function(a){switch(a.nodeName){case this.b.PA:h.push(IR(a));break;case this.b.OA:k=SV(this,a);break;case this.b.mj:case this.b.nj:case this.b.lj:g.push(MV(this,a));break;default:throw ER(a);}},a);return D(g)?null:wV(c,d,k,g)}
function SV(a,b){var c=[],d;z(id(b),function(a){switch(a.nodeName){case this.b.kC:d=IR(a);break;case this.b.lC:c.push(IR(a));break;default:throw ER(a);}},a);return{OB:d,XE:c}}function LV(a){a=IR(a);return null!=a?XR(a):{}};function TV(a,b){this.g=a;this.b=b}w(TV,DR);TV.prototype.j=function(){return new NR(this.g,null,UV(this))};function VV(a){var b=iD(a);return D(b)?[HR(a,"timeOffset")]:B(b,function(a){return HR(a,"timeOffset")})}
function UV(a){var b=new RR;z(id(jd(a.g)),function(a){if("vmap:AdBreak"==a.nodeName){var d=WV(this,a);a=VV(a);z(a,function(a,c){var h=LR(a);0<c&&(d=XV(this,d));if("start"==a||0==h)SR(b,d,0);else if("end"==a)SR(b,d,-1);else{if(-1==h)throw jP(EO,null,"timeOffset",ya(a));SR(b,d,h)}},this)}},a);if(0==b.b.Ma().length)throw jP(KO);return b}function XV(a,b){return B(b,function(a){var b=new PR(a.j.clone());b.b=a.b;b.g=a.g;return b},a)}
function WV(a,b){var c=[],d="",e=null,g=!1,h=!1;z(id(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){if("undefined"!=typeof a.selectSingleNode){var b=Mc(a);"undefined"!=typeof b.setProperty&&b.setProperty("SelectionLanguage","XPath");e=a.selectSingleNode("vmap:VASTData/VAST")}else if(document.implementation.hasFeature("XPath","3.0")){var b=Mc(a),c=b.createNSResolver(b.documentElement);e=b.evaluate("vmap:VASTData/VAST",a,c,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}else e=
null;if(!e){b=GR(a,"vmap:AdTagURI");c="";b.length&&(c=ya(IR(b[0])));if(xa(c))throw jP(hP,null,a.parentNode.nodeName,a.nodeName);d=c}}break;case "vmap:Extensions":a=GR(a,"vmap:Extension"),a=YV(this,a),null!=a&&(g=!0,a=HR(a,"suppress_bumper"),h=null!=a?"true"==a:!0)}},a);var k=null;e?k=ZV(a,e):xa(d)||(k=$V(a,d));k&&(k=new PR(k),k.b=g,k.g=g&&!h,qb(c,k));return c}function YV(a,b){return lb(b,function(a){return"bumper"==HR(a,"type")},a)}
function $V(a,b){var c=a.b.clone();xa(c.adsResponse)||(c.adsResponse="");c.adTagUrl=b;return c}function ZV(a,b){var c=a.b.clone();c.adsResponse=hD(b);c.adTagUrl="";return c};function aW(a,b){if(null!=a){var c;null!=a?(c=jd(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return new TR(a,b);null!=a?(c=jd(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return new TV(a,b);if(yV(a)){if(!yV(a))throw jP(NO);c=jd(a);var d;null==c?d=0:(d=parseInt(c.getAttribute("version"),10),d=ia(d)?d:0);if(1>d||3<d)throw jP(dP);c=GR(c,"Ad");if(D(c))throw jP(SO);c=AV(c[0]);if(null==c)throw jP(VO);if(1!=GR(c,"AdSystem").length)throw jP(VO);return new xV(a)}}return null};function bW(a,b){this.g=a;this.j=b}function cW(a,b){var c=a.j.o;null!=c&&b.set("js","ima-"+c)}function dW(a){pP.k&&a.set("osd",2)}function eW(a){return a.k(a.A())}function fW(a){return pP.g?"h.3.0.0":null!=a.j?JQ(a.j):null}bW.prototype.o=function(){var a=0;this.g.ph&&(a+=1);yP()&&(a+=4);return a};function gW(){this.b=["video"]}var hW={dK:"ultrahigh",aI:"high",JE:"medium"},iW={kG:1E3,lG:1001,mG:1002,nG:1003,oG:1004,pG:1005,qG:1006},jW={IE:1,DE:2},kW={CE:"content",CJ:"site",DJ:"site_content"};f=gW.prototype;f.Ai="high";f.ll=!1;f.dl=1;f.fl=null;f.He="video";f.bl=1;f.gl=null;f.nl=null;f.il=!1;f.jl=null;f.kl=null;f.Lg=null;f.qc=null;f.pl=null;f.host=null;f.ql=null;f.rl=!1;f.tl=null;f.Up=null;f.Tp=null;f.Bi=1E5;f.Di=null;f.Wp=null;f.Vp=null;f.xl=0;f.Jf=null;f.Ei=null;f.Ki=null;f.yl=null;f.Fi=-1;
f.url=null;f.Ci=null;f.ul=null;f.wl=null;f.Cl=null;f.zl=null;f.Al=null;f.Bl=null;var lW=(new Date).getTime();var mW={GE:"flash",IMAGE:"image",GJ:"skippablevideo",LJ:"standardvideo",OJ:"staticimage",TEXT:"text",VIDEO:"video"},nW=["flash","image","staticimage"],oW=[new G(200,200),new G(250,250),new G(300,250),new G(336,280),new G(450,50),new G(468,60),new G(480,70),new G(728,90)];
function pW(a,b){var c=null!=b.linearAdSlotHeight?b.linearAdSlotHeight:0,d=null!=b.nonLinearAdSlotHeight?b.nonLinearAdSlotHeight:0;a.set("sz",Math.max(null!=b.linearAdSlotWidth?b.nonLinearAdSlotWidth:0,null!=b.nonLinearAdSlotWidth?b.nonLinearAdSlotWidth:0)+"x"+Math.max(c,d))}
function qW(a){var b={};b.u_tz=-(new Date).getTimezoneOffset();var c;var d=window;try{c=d.history.length}catch(e){c=0}b.u_his=c;b.u_java=navigator.javaEnabled();window.screen&&(b.u_h=window.screen.height,b.u_w=window.screen.width,b.u_ah=window.screen.availHeight,b.u_aw=window.screen.availWidth,b.u_cd=window.screen.colorDepth);navigator.plugins&&(b.u_nplug=navigator.plugins.length);navigator.mimeTypes&&(b.u_nmime=navigator.mimeTypes.length);for(var g in b)a.set(g,b[g]);a.set("dt",lW);t:{var h;try{h=
window.top.location.href}catch(k){b=2;break t}b=null!=h?h==window.document.location.href?0:1:2}a.set("frm",b)}function rW(a,b,c){var d=new Fd;d.set("ad_type",b.He);dT&&d.set("flash",eT);pW(d,a);sW(b)&&(d.set("ea","0"),null!=a.nonLinearAdSlotWidth&&null!=a.nonLinearAdSlotHeight&&d.set("image_size",tW(b,a.nonLinearAdSlotWidth,a.nonLinearAdSlotHeight)));uW(d,c);d.set("lact",a.lastActivity);d.set("videoad_start_delay",a.youTubeVideoAdStartDelay);qW(d);x(a.b)||vW("ref",a.b,d);return d}
function wW(a,b){if(null==b)return a;var c=b.split("_");z(c,function(a){if(!Vb(mW,a))throw jP(JO,null,"ad_type",String(b));});if(!yP()){var d=[];z(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw jP(IO,null,"skippablevideo");return d}return c}function xW(a,b){return null!=b?b.split(/[+, ]/):a}function tW(a,b,c){a.k&&(c=Math.min(c,90));var d=[];z(oW,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")}
function yW(a,b){return null==b||isNaN(b)?a:Number(b)}function zW(a,b){return null!=b?String(b):null!=a?a:null}function AW(a,b){if(null==b)return a;switch(b.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return a}function BW(a,b,c){return null!=b&&Vb(c,b)?b:a}function sW(a){return jb(nW,function(b){return C(a.b,b)})}
function uW(a,b){dT?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.j;null!=c&&0<c.length&&(c=c[0].o,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}}function vW(a,b,c){null!=b&&c.set(a,b)};function CW(a,b,c){bW.call(this,a,b);b=new gW;a=xe(new J(a.adTagUrl));b.nl=BW(b.nl,a.get("cust_age"),iW);b.Ai=BW(b.Ai,a.get("adsafe"),hW);b.b=wW(b.b,a.get("ad_type"));b.He=b.b.join("_");b.dl=yW(b.dl,a.get("videoad_start_delay"));b.fl=zW(b.fl,a.get("slotname"));b.ll=AW(b.ll,a.get("adtest"));b.gl=zW(b.gl,a.get("afi_url"));b.il=AW(b.il,a.get("scs"));b.jl=zW(b.jl,a.get("alternate_ad_url"));b.g=xW(b.g,a.get("channel"));b.kl=yW(b.kl,a.get("cpm"));b.Lg=zW(b.Lg,a.get("description_url"));b.qc=zW(b.qc,a.get("eid"));
b.pl=BW(b.pl,a.get("cust_gender"),jW);b.k=AW(b.k,a.get("overlay"));b.host=zW(b.host,a.get("host"));b.j=xW(b.j,a.get("hostChannels"));b.ql=yW(b.ql,a.get("hostTierId"));b.rl=AW(b.rl,a.get("lsv"));var d;null!=this.g.g?d=this.g.g:(d=pc(),d=oP(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=zW(e,d);var g;null!=d&&!x(d)&&(g=oP(d));b.tl=zW(b.tl,g);b.Up=yW(b.Up,a.get("linearAdSlotWidth"));b.Tp=yW(b.Tp,a.get("linearAdSlotHeight"));b.Bi=
yW(b.Bi,a.get("max_ad_duration"));b.xl=yW(b.xl,a.get("min_ad_duration"));b.Di=yW(b.Di,a.get("sdmax"));b.Wp=yW(b.Wp,a.get("nonLinearAdSlotWidth"));b.Vp=yW(b.Vp,a.get("nonLinearAdSlotHeight"));b.Jf=zW(b.Jf,a.get("client"));b.Ei=zW(b.Ei,a.get("t_pyv"));b.Ki=yW(b.Ki,a.get("sdki"));b.Fi=yW(b.Fi,a.get("tfcd"));b.yl=BW(b.yl,a.get("targeting"),kW);b.Ci=yW(b.Ci,a.get("video_format"));b.ul=yW(b.ul,a.get("video_cpm"));b.wl=zW(b.wl,a.get("loeid"));b.Cl=zW(b.Cl,a.get("yt_pt"));b.zl=zW(b.zl,a.get("ytdevice"));
b.Al=zW(b.Al,a.get("ytdevicever"));b.Bl=zW(b.Bl,a.get("as_dbp"));b.o=zW(b.o,a.get("ms"));b.bl=yW(b.bl,a.get("adBlock"));b.url=zW(b.url,a.get("url"));this.b=b;this.C=c;x(this.b.qc)||(c=this.b.qc.split(","),vT(tT(),c))}w(CW,bW);var DW=["skippablevideo","standardvideo","video"];CW.prototype.B={kx:"allow",lx:"exclude",qJ:"require"};function EW(a){return null!=a.b.g?-1<a.b.g.indexOf("afitc"):!1}CW.prototype.o=function(){var a=CW.G.o.call(this);this.b.Ki&&(a+=this.b.Ki&2);return a};
CW.prototype.k=function(a){var b=new J("//googleads.g.doubleclick.net/pagead/ads"),c=a.Ma();z(c,function(c){K(b,c,a.get(c))});return b};
CW.prototype.A=function(){var a=new Fd;a.set("sdkv",fW(this));a.set("sdki",this.o().toString(16));a.set("video_product_type",null!=this.b.Jf?pP.b?5:EW(this)?7:0==this.b.Jf.lastIndexOf("ca-games-",0)?4:0==this.b.Jf.lastIndexOf("ca-video-",0)?0:-1:-1);a.set("correlator",this.j.b);a.set("client",this.b.Jf);pP.b&&!x(this.b.url)?a.set("url",this.b.url):a.set("url",this.g.location?this.g.location:this.g.b);a.set("num_ads",FW(this));a.set("channel",GW(this));a.set("ad_type",this.b.He);a.set("output","xml_vast2");
this.b.ll&&a.set("adtest","on");dT&&a.set("flash",eT);vW("alternate_ad_url",this.b.jl,a);vW("cpm",this.b.kl,a);pW(a,this.g);pP.b||Vb(hW,this.b.Ai)&&a.set("adsafe",this.b.Ai);this.b.host&&(a.set("host",this.b.host),vW("ht_id",this.b.ql,a),null!=this.b.j&&vW("h_ch",this.b.j.join("+"),a));vW("hl",this.b.tl,a);vW("cust_age",this.b.nl,a);vW("cust_gender",this.b.pl,a);-1!=this.b.Fi&&vW("tfcd",this.b.Fi,a);EW(this)?vW("afi_url",this.b.gl,a):vW("slotname",this.b.fl,a);var b=xT(tT());x(b)||a.set("eid",b);
qW(a);b=this.b.Lg;if(null!=b){var c,d;d=this.j;null==d.j&&(d.j=new EQ);d=d.j;EW(this)?c=this.b.bl:(null!=b&&d.g!=b?(d.b=1,d.g=b):d.b=null!=b?d.b+1:1,c=d.b);1!=c&&a.set("ad_block",c);c=this.j;null==c.M&&(c.M=new FQ);c=c.M;var e=b!=this.j.L;(d=0==d.b%100||e)||(d=36E5<(null===c.b?0:(new TM).getTime()-c.b));d&&c.reset();this.j.L=b;b=c.g;null!==b&&a.set("tok",b)}a.set("unviewed_position_start","1");b=this.b.dl;a.set("videoad_start_delay",null!=b?b:1);cW(this,a);dW(a);sW(this.b)&&(a.set("ea","0"),null!=
this.g.nonLinearAdSlotWidth&&null!=this.g.nonLinearAdSlotHeight&&a.set("image_size",tW(this.b,this.g.nonLinearAdSlotWidth,this.g.nonLinearAdSlotHeight)));HW(this)&&a.set("video_format",null!=this.b.Ci&&pP.b?this.b.Ci:rh&&0<=Va(rP,6)||mh&&0<=Va(rP,4)||nc&&xP(vP,2.3)?43:18);b=null!=this.b.Ei?this.b.Ei:C(this.b.He.split("_"),"text")?this.B.kx:this.B.lx;a.set("t_pyv",b);vW("min_ad_duration",this.b.xl,a);0<this.b.Bi&&a.set("max_ad_duration",IW(this.b.Bi,FW(this)));0<this.b.Di&&a.set("sdmax",IW(this.b.Di,
FW(this)));uW(a,this.C);pP.b&&(b=bQ(this.b.Lg),null!=b&&a.set("video_doc_id","yt_"+b));vW("description_url",this.b.Lg,a);pP.b&&(vW("lact",this.g.lastActivity,a),vW("loeid",this.b.wl,a),vW("lsv",this.b.rl,a),vW("scs",this.b.il,a),vW("targeting",this.b.yl,a),vW("video_cpm",this.b.ul,a),vW("yt_pt",this.b.Cl,a),vW("ytdevice",this.b.zl,a),vW("ytdevicever",this.b.Al,a),vW("as_dbp",this.b.Bl,a));vW("ms",this.b.o,a);b=this.g;x(b.b)||vW("ref",b.b,a);null!=this.g.Ce&&vW("loc",this.g.Ce.page_location,a);return a};
function HW(a){return jb(DW,function(a){return C(this.b.b,a)},a)}function FW(a){return EW(a)||pP.b?1:C(a.b.He.split("_"),"text")?3:1}function GW(a){a=a.b.g?a.b.g:[];zb(a);a=yb(a,0,30);return a.join("+")}function IW(a,b){return Math.round(1.1*(a||0)+0*b)};function JW(){}f=JW.prototype;
f.clone=function(){var a=new JW;a.adTagUrl=this.adTagUrl;a.Ce=bc(this.Ce);a.adsResponse=this.adsResponse;a.Wg=bc(this.Wg);a.Rr=this.Rr;a.isYouTube=this.isYouTube;a.location=this.location;a.b=this.b;a.lastActivity=this.lastActivity;a.g=this.g;a.linearAdSlotWidth=this.linearAdSlotWidth;a.linearAdSlotHeight=this.linearAdSlotHeight;a.nonLinearAdSlotWidth=this.nonLinearAdSlotWidth;a.nonLinearAdSlotHeight=this.nonLinearAdSlotHeight;a.tagForChildDirectedContent=this.tagForChildDirectedContent;a.Ri=this.Ri;
a.ph=this.ph;a.youTubeAdType=this.youTubeAdType;a.youTubeExperimentIds=this.youTubeExperimentIds;a.youTubeVideoAdStartDelay=this.youTubeVideoAdStartDelay;return a};f.Ce=null;f.Wg=null;f.Rr=!1;f.isYouTube=!1;f.linearAdSlotWidth=0;f.linearAdSlotHeight=0;f.nonLinearAdSlotWidth=0;f.nonLinearAdSlotHeight=0;f.tagForChildDirectedContent=!1;f.Ri=!1;f.ph=!0;f.youTubeVideoAdStartDelay=0;function KW(a,b){bW.call(this,a,b)}w(KW,bW);KW.prototype.k=function(a){var b=new J(this.g.adTagUrl);z(a.Ma(),function(c){xa(a.get(c))?b.b.remove(c):K(b,c,a.get(c))});return b};KW.prototype.A=function(){var a=new Fd;a.set("sdkv",fW(this));return a};function LW(a,b){bW.call(this,a,b)}w(LW,bW);LW.prototype.A=function(){return null};LW.prototype.k=function(){var a=new yT(this.g.adTagUrl),b=fW(this);b&&CT(a,"dc_sdkv",[b]);(b=this.o().toString(16))&&CT(a,"dc_sdki",[b]);(b=this.j.B)&&CT(a,"dc_submodel",[b]);b=new Fd;cW(this,b);dW(b);Hd(b,"js")&&CT(a,"dc_js",[b.get("js")]);Hd(b,"msid")&&CT(a,"dc_msid",[b.get("msid")]);Hd(b,"osd")&&CT(a,"osd",[b.get("osd")]);return a};function MW(a){bW.call(this,a,null)}w(MW,bW);MW.prototype.k=function(a){return new J(a.get("adTagUrl"))};MW.prototype.A=function(){var a=new Fd;a.set("adTagUrl",this.g.adTagUrl);a.set("adsResponse",this.g.adsResponse);return a};function NW(a,b){bW.call(this,a,b)}w(NW,bW);NW.prototype.k=function(a){var b=new J(this.g.adTagUrl);z(a.Ma(),function(c){xa(a.get(c))?b.b.remove(c):K(b,c,a.get(c))});return b};
NW.prototype.A=function(){var a=new Fd;a.set("sdkv",fW(this));a.set("sdki",this.o().toString(16));a.set("correlator",this.j.I);a.set("scor",this.j.b);cW(this,a);dW(a);var b=this.j.g;null!=b&&(this.j.g=null,a.set("fbidx",b));b=this.j.F;null!=b&&a.set("ppid",b);var b="null",c=this.j.k;null!=c?b=c:(c=this.g.location,x(c)?c=!1:(c=new J(c),!c.Fb||"http"!=c.Fb&&"https"!=c.Fb?c=!1:(c=c.Cb,c=-1==c.indexOf(".")||c.match(/^[\.0-9]*$/)?!1:!0)),c&&(b=this.g.location));a.set("url",b);b=this.j.B;null!=b&&a.set("submodel",
b);b=this.j.A;null!=b&&(b=OW(b),a.set("ciu_szs",b));a.set("impl","");return a};function OW(a){var b=[];z(a,function(a){0<a.length&&b.push(B(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function PW(a,b,c){bW.call(this,a,b);this.C=x(a.youTubeAdType);a=new gW;a.b=wW(a.b,this.g.youTubeAdType);a.He=a.b.join("_");a.qc=zW(a.qc,this.g.youTubeExperimentIds);this.b=a;this.B=c;x(this.b.qc)||(c=this.b.qc.split(","),vT(tT(),c))}w(PW,NW);PW.prototype.k=function(a){a=PW.G.k.call(this,a);this.C||QW(this,a);return a};function RW(a){var b=rW(a.g,a.b,a.B);b.set("sdkv",fW(a));b.set("sdki",a.o().toString(16));return b}
function QW(a,b){var c=RW(a),d=B(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});ye(b,"afvparams",[Aa(d.join("&"))])};function SW(a,b,c){bW.call(this,a,b);this.C=x(a.youTubeAdType);a=new gW;a.b=wW(a.b,this.g.youTubeAdType);a.He=a.b.join("_");a.qc=zW(a.qc,this.g.youTubeExperimentIds);this.b=a;this.B=c;x(this.b.qc)||(c=this.b.qc.split(","),vT(tT(),c))}w(SW,LW);SW.prototype.k=function(a){a=SW.G.k.call(this,a);this.C||TW(this,a);return a};function UW(a){var b=rW(a.g,a.b,a.B);b.set("sdkv",fW(a));b.set("sdki",a.o().toString(16));return b}
function TW(a,b){var c=UW(a),d=B(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});CT(b,"afvparams",[Aa(d.join("&"))])};function VW(a,b){return!HT(a)&&!GT(a)||x(a.youTubeAdType)?HT(a)?new LW(a,IQ):FT(a)?new CW(a,IQ,b):GT(a)?new NW(a,IQ):IT(a)?new KW(a,IQ):new MW(a):HT(a)?new SW(a,IQ,b):new PW(a,IQ,b)};function WW(a){a=hb(a,function(a){return 0<pU(a)});Cb(a,function(a,c){return pU(a)-pU(c)});return a}function XW(a){return hb(a,function(a){return-1==pU(a)})};function YW(a){this.b=a};function ZW(){}function $W(a,b,c,d,e,g){var h=u(function(a){d(a,Error(el(a)))},a),k=u(function(a){6==a?aX(this,b,!1,c,h,e,g):h(a)},a);aX(a,b,!0,c,k,e,g)}
function aX(a,b,c,d,e,g,h){var k=new Ol;k.O=c;Rl(k,bX(g));var l=new Yk,p=u(function(){l.dispose();k.dispose()},a);c=u(function(){e(k.g);p()},a);dl(l,k,"success",function(){var a;try{a=k.b?k.b.responseXML:null}catch(b){a=null}if(null==a){var c=tl(k);try{a=fD(c)}catch(e){t:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=gD())){a.appendChild(a.createNode(1,"parsererror",""));
break t}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);dl(l,k,["error","timeout"],c,a);var s;"POST"==h&&(a=new J(b),s=a.b.toString(),je(a,""),b=a.toString());k.send(vO(b),h,s)};function cX(a,b,c){var d=null,e=c+b;z(a.k,function(a){var h;if(h=a instanceof ST)0==c&&0==b||a instanceof qV?h=!0:(h=a.$d(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-a.$d().height+b-a.$d().width,"Flash"!=a.getContentType()||dT))if(null==d)d=a,e=h;else if(h==e&&a.b<d.b||h<e)d=a,e=h});jU(a,d)}function dX(a){var b=null;z(a.k,function(a){a instanceof OT&&(null===b||a.b<b.b)&&(b=a)});jU(a,b)};var eX=[202,1009],fX=["[CONTENT_V]","[CPN]","[DISALLOW]","[LACT]"],gX={toString:function(){var a=xR();return yR(a,"metric")}};function hX(a,b,c){var d={};a=new iX(a,n(b)?b:null,n(c)?c:null);jX(d,a);b=a.error;d["[ERRORCODE]"]=1E3>b.b?b.b:900;kX(d);lX(d,a);mX(d,a);b=a.error.getErrorCode();d["[ERROR_MSG]"]=a.error.getMessage();d["[IMA_ERROR]"]=b;d["[INTERNAL_ID]"]="0";a=-1!=fb(eX,b);d["[BLOCKING_ERROR]"]=a?"1":"0";d["[YT_ERROR_CODE]"]=3;return d}
function nX(a,b){var c={},d=new iX(null,a,n(b)?b:null);jX(c,d);kX(c);lX(c,d);mX(c,d);c["[BREAK_TYPE]"]="0";c["[SLOT_POS]"]="0";c["[MIDROLL_POS]"]="0";if(null!=d.b){var e=d.b.j;null!=e&&null!=e.Ce&&null!=e.Ce.video_start_delay?(e=e.Ce.video_start_delay,0==e?c["[BREAK_TYPE]"]="1":-1==e?c["[BREAK_TYPE]"]="3":(c["[BREAK_TYPE]"]="2",c["[MIDROLL_POS]"]=e)):(e=d.b.D,c["[BREAK_TYPE]"]=0==e.j?"1":-1==e.j?"3":"2",c["[SLOT_POS]"]=e.b-1,0<e.k&&(c["[MIDROLL_POS]"]=Math.round(1E3*e.k)))}oX(c,d);return c}
function iX(a,b,c){this.error=a;this.b=b;this.display=c}function jX(a,b){a["[CACHEBUSTING]"]={toString:function(){return Math.round(1E8*Math.random()+1E8).toString().slice(1)}};a["[ASSETURI]"]={toString:function(){return null!=b.display?b.display.Dn():""}}}function kX(a){a["[SDKV]"]="h.0.0.0";a["[EL]"]="adunit";a["[CONN]"]="0";a["[VIEWABILITY]"]=gX;a["[VIS]"]="0";a["[WT]"]={toString:function(){return Date.now()}}}
function lX(a,b){if(null!=b.b&&null!=b.b.j&&null!=b.b.j.Wg&&pP.b){var c=b.b.j.Wg;z(fX,function(b){b in c&&(a[b]=c[b])})}}
function mX(a,b){if(null!=b.b){a["[AD_ID]"]=mU(b.b);a["[AD_SYS]"]=kR(b.b);a["[AD_V]"]={toString:function(){return null!=b.display?bQ(b.display.Dn()):""}};a["[FORMAT_NAMESPACE]"]="0";a["[FORMAT_TYPE]"]="0";a["[FORMAT_SUBTYPE]"]="0";var c=[];try{c=bU(b.b).split("_")}catch(d){}1<=c.length&&(a["[FORMAT_NAMESPACE]"]=c[0]);2<=c.length&&(a["[FORMAT_TYPE]"]=c[1]);3<=c.length&&(a["[FORMAT_SUBTYPE]"]=c[2])}}
function oX(a,b){null!=b.b&&(a["[AD_LEN]"]={toString:function(){var a=wU(b.b);return 0>a?"-1":Math.round(1E3*a).toString()}},a["[VOL]"]={toString:function(){return null!=b.display?Math.round(100*b.display.ae()).toString():""}})};function pX(a,b,c,d){this.o=a;this.F=b;this.g=0<this.o.length?this.o:this.F;this.B=c;this.A=this.M=!0;this.j=-1;this.b=null;this.C=0;this.N=d;this.logger=null}pX.prototype.Bd=function(){return null!=this.b&&this.b.Bd()?!0:0<this.g.length&&this.j<this.g.length-1};function qX(a,b,c){null!=a.b?rX(a,b,c):a.Bd()?sX(a,b,u(function(a){this.Bd()&&301!=a.getErrorCode()?qX(this,b,c):c(a)},a)):c(new fO("adLoadError","The ad source contains no more ads.",1005))}
pX.prototype.I=function(a,b){return this.A?0<a.length?a:b:yb(b,0,1)};pX.prototype.k=function(a,b,c){var d;if(!(d=null!=a.getSelectedCreative())){var e=this.B;d=e.nonLinearAdSlotWidth||0;e=e.nonLinearAdSlotHeight||0;rU(a)&&!a.C?qU(a,"nonlinear")?cX(a,d,e):dX(a):qU(a,"linear")?dX(a):qU(a,"nonlinear")&&cX(a,d,e);d=null!=a.getSelectedCreative()}d?(this.C++,b(a)):(b=D(a.k)?jP(VO):aU(a)?jP(QO):jP(YO),d=hX(b,a),AO(a.F,d),c(b))};
pX.prototype.D=function(a,b,c){var d=this.B.clone();d.adsResponse="";d.adTagUrl=a.xa;tX(this,a,d,b,c)};function uX(a,b,c,d){var e=a.B.clone();e.adsResponse="";e.adTagUrl=b.ya;tX(a,b,e,c,d)}
function tX(a,b,c,d,e){var g=b.getExtension("LocalRedirect");null!=g&&(g=g.g,null!=g&&(c.adsResponse=g));a.N.g(c,u(function(a){if(a instanceof pX){var c=this.A&&b.qa,g=b.wa,p;for(p in a.g){var s=a.g[p],t=b;if(!pP.b&&t&&rU(s)){var y={loc:document.URL,ref:document.referrer,skippable:cU(s)};try{AP(zP.getInstance(),23,y,!0)}catch(E){}}s.b=t}a.A=c;a.g=a.I(a.o,a.F);a.j=-1;a.M=g;d(a)}else a instanceof YW?e(new fO("adLoadError","Ad source cannot contain playlist response.",2)):e(new fO("adLoadError","Unknown ad source.",
2))},a),e)}function vX(a){var b=0;for(a=a.b;null!=a;)a=a.b,b++;return b}function rX(a,b,c){a.b.Bd()?qX(a.b,u(function(a){this.k(a,b,u(function(a){this.Bd()?qX(this,b,c):c(a)},this))},a),u(function(a){wX(this.g[this.j],a);this.b=null;301==a.getErrorCode()?c(a):this.Bd()?qX(this,b,c):c(a)},a)):(0==a.b.C&&wX(a.g[a.j],jP(fP)),a.b=null,qX(a,b,c))}function wX(a,b){1012==b.getErrorCode()&&(b=jP(XO));var c=hX(b,a);AO(a.F,c)}
function sX(a,b,c){a.j++;var d=a.g[a.j];d.C||d.P?d.P?uX(a,d,u(function(a){this.b=a;qX(this,b,c)},a),u(function(a){a=xX(a);wX(d,a);c(a)},a)):4<=vX(d)?(a=jP(ZO,null,"4"),wX(d,a),c(a)):a.M?a.D(d,u(function(a){this.b=a;qX(this,b,c)},a),u(function(a){a=xX(a);wX(d,a);c(a)},a)):c(jP(eP)):a.k(d,b,c)}function xX(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=jP(fP)}return a};function yX(a,b,c,d){pX.call(this,[],a,b,c);this.L=d}w(yX,pX);yX.prototype.Bd=function(){return null!=this.b&&this.b.Bd()?!0:0<this.g.length&&this.j<this.g.length-1&&0==this.C};yX.prototype.I=function(a,b){return b};yX.prototype.k=function(a,b,c){var d=-1,d=null==this.b?oU(a):oU(this.g[this.j]);this.L.g=d;yX.G.k.call(this,a,b,c)};yX.prototype.D=function(a,b,c){this.L.g=-1;yX.G.D.call(this,a,b,c)};function zX(a,b,c,d,e){this.k=a;this.o=b;this.j=c;this.b=d;this.kb=e}zX.prototype.g=function(a,b,c){x(a.adsResponse)?GT(a)&&null!=this.b&&!this.b.B?this.b.start(a,u(function(){AX(this,a,b,c)},this)):AX(this,a,b,c):BX(this,a,b,c)};function BX(a,b,c,d){var e;try{e=fD(b.adsResponse)}catch(g){d(jP(NO,g));return}null!=e?CX(a,e,b,c,d):d(jP(NO))}
function AX(a,b,c,d){var e=eW(VW(b,a.j)).toString(),g=b.Ri&&tO(rO,e)?"POST":"GET";$W(a.o,e,u(function(a){CX(this,a,b,c,d)},a),u(function(a,c){var e;e=8==a?jP(UO):5==a||6==a?jP(DO):jP(HO,c);d(e);e="third_party";FT(b)?e="adsense":HT(b)?e="dart":GT(b)&&(e="xfp");e={rt:e,ec:a};AP(zP.getInstance(),18,e,!0)},a),a.kb,g);DX(b)}function DX(a){var b="third_party";FT(a)?b="adsense":HT(a)?b="dart":GT(a)?b="xfp":IT(a)&&(b="dbm");a={rt:b};AP(zP.getInstance(),17,a,!0)}
function CX(a,b,c,d,e){var g;try{var h=aW(b,c);if(!h)throw jP(NO);g=h.j();EX(a,g,c,d)}catch(k){k instanceof fO?e(k):e(jP(OO,k))}}function EX(a,b,c,d){var e=b.b;if(null!=e)d(new YW(e));else{var g=b.j;if(null==g)throw jP(SO);z(g,function(a){a.j=c;pP.b&&(a.oa=b.g)});e=WW(g);g=XW(g);0<g.length&&0<=oU(g[0])?d(new yX(g,c,a,a.k)):d(new pX(e,g,c,a))}};function FX(a){this.b=a+v()}FX.prototype.reset=function(a){this.b=a+v()};function bX(a){var b=v();a=a.b-b;return 0<a?a:0};function GX(a,b){this.b=a;this.g=b;pP.k&&xR().init()}function HX(a,b,c,d){var e=null;null!=a.b&&(e=new zR(1E3,a.b,a.g));(new zX(a.g,new ZW,a.b,e,new FX(8E3))).g(b,u(function(a){a instanceof YW?c(a):IX(this,a,c,d)},a),d)}function IX(a,b,c,d){var e=[],g=u(function(a,b){a.Bd()?qX(a,u(function(b){e.push(b);g(a,null)},this),u(function(b){301==b.getErrorCode()?d(jP(UO)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=jP(KO)),1012==b.getErrorCode()&&(b=jP(XO)),d(b))},a);g(b,null)};function JX(a){this.g=a;this.b=new vm}function KX(a,b,c,d){var e=u(function(a){c(a);ym(this.b);LX(this)},a),g=u(function(a){d(a);ym(this.b);LX(this)},a);xm(a.b,u(function(){HX(this.g,b,e,g)},a));LX(a)}function LX(a){1==a.b.Na()?(a=a.b,wm(a),a=db(a.b),null!=a&&a()):a.b.Na()};function MX(a,b,c){T.call(this);this.g=new JX(new GX(b,c));this.b=b;this.Ae=!0}w(MX,T);function NX(a,b,c){if(a.Ae){var d=null!=c?c:{};KX(a.g,b,u(function(a){OX(this,a,d)},a),u(function(a){PX(this,a,d)},a))}}function QX(a,b,c){if(!a.Ae){var d=null!=c?c:{};KX(a.g,b,u(function(a){OX(this,a,d)},a),u(function(a){PX(this,a,d)},a))}}
function OX(a,b,c){if(a.Ae)b instanceof YW?(b=new RX(b.b,a),b.D=a.b,a.S(new SX(b,c))):(b=TX(b),b.D=a.b,null!=b?a.S(new SX(b,c)):PX(a,jP(QO,null),c));else if(b instanceof YW)PX(a,jP(CO,null,"Unsupported ad format."),c);else{var d=new uR("adsLoaderSdkAdLoaded");d.o=b;d.k=c;a.S(d)}}function PX(a,b,c){a.Ae?("always"==pP.j&&null!=a.b&&eR(a.b,bR()),a.S(new gO(b,c))):(c=new uR("adsLoaderSdkAdError"),c.j=b,a.S(c))};var UX={NORMAL:"normal",FULLSCREEN:"fullscreen"};function VX(){return'<div class="close-padding"><div class="close-button"></div></div>'}function WX(a){return'<div class="recall-button '+(a.mD?"auto-hide":"")+'"></div>'}function XX(a){return'<a target="_blank" href="'+NU(a.url)+'" class="attribution-button">'+NU(a.text)+"</a>"};function YX(a,b){this.A=a;this.b=I("div",{"class":"controls"});this.O=b||ca;this.Qc=new Yk(this)}w(YX,Mh);f=YX.prototype;f.zd=!1;f.Wr=1E3;f.Br=30;f.fr=45E3;f.gr=15E3;f.Js=!1;function ZX(a){var b=I("div",{"class":"container"});Kx(b,"opacity 0.4s");a.Qc.listen(b,"mouseover",a.dC);a.Qc.listen(b,"mouseout",a.eC);b.appendChild(a.b);return b}f.Mj=function(){var a=ZX(this);this.b.appendChild(this.A);this.display(this.A);this.play();return a};f.K=function(){null==this.I&&(this.I=this.Mj());return this.I};
f.play=function(){null==this.g&&(this.g=Tk(function(){this.zd||(this.hide(),this.Js=!0);this.g=null},this.Js?this.gr:this.fr,this))};f.stop=function(){null!=this.g&&(Uk(this.g),this.g=null)};f.display=function(a){var b=document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};f.show=function(){gg(this.K(),1);null!=this.j&&(Uk(this.j),this.j=null)};f.hide=function(){gg(this.K(),this.Br/100);null==this.j&&(this.j=Tk(function(){this.O();this.j=null},400,this))};
f.dC=function(){this.show();this.zd=!0;this.B=Tk(function(){this.zd&&this.stop();this.B=null},this.Wr,this)};f.eC=function(){null!=this.B&&(Uk(this.B),this.B=null);this.zd&&this.play();this.zd=!1};f.J=function(){YX.G.J.call(this);this.stop();Oh(this.Qc)};function $X(a,b){this.F=a;this.N=new Fd;this.L=15E3;this.C=I("span");YX.call(this,a[0],b);this.b.appendChild(this.C)}w($X,YX);
$X.prototype.Mj=function(){var a=ZX(this);mV(a,"container-rotator");this.D=I("div");this.b.appendChild(this.D);z(this.F,function(a,c){mV(a,"container-highlight");var d=63/this.F.length*(c+.5)-5,e=I("div",{id:Za(),"class":"container-selector"});e.style.top=d+"px";this.Qc.listen(e,"click",function(a){aY(this,a.target)});this.N.set(e.id,a);this.C.appendChild(e)},this);aY(this,jd(this.C));this.play();return a};
$X.prototype.play=function(){null==this.k&&(this.k=new Rk(this.L),this.Qc.listen(this.k,"tick",this.P));$X.G.play.call(this);this.k.start()};$X.prototype.stop=function(){null!=this.k&&this.k.stop();$X.G.stop.call(this)};$X.prototype.P=function(){var a=this.o;aY(this,(void 0!=a.nextElementSibling?a.nextElementSibling:kd(a.nextSibling))||jd(this.o.parentNode))};function aY(a,b){a.o&&nV(a.o,"container-active");mV(b,"container-active");var c=a.N.get(b.id);hd(c,a.D);a.o=b;a.D=c;a.display(c)};function bY(a,b){YX.call(this,a,b)}w(bY,YX);YX.prototype.M=!1;bY.prototype.Mj=function(){var a=ZX(this);mV(a,"container-slider");this.b.appendChild(this.A);this.Qc.listen(this.b,"click",this.k);this.play();return a};bY.prototype.show=function(){this.display(this.A);cY(this);nV(this.K(),"hidden")};bY.prototype.hide=function(){cY(this);mV(this.K(),"hidden")};bY.prototype.k=function(a){0!=Rf(this.b).y&&(a.preventDefault(),a.stopPropagation())};function cY(a){a.M?mV(a.K(),"animated"):a.M=!0};function dY(a,b){YX.call(this,a[0],b);this.k=a;mV(this.b,"container-stack")}w(dY,YX);dY.prototype.hide=ca;dY.prototype.Mj=function(){var a=ZX(this);z(this.k,function(a){mV(a,"container-highlight");this.b.appendChild(a);this.display(a)},this);this.play();return a};function eY(a){T.call(this);this.B=a;this.o=null;this.I="normal";this.k=this.volume=null;this.g=new DP;this.ea=!1;this.content={};this.N=!1;z(a,function(){});z(a,function(a,c){var d=a.D,e=c+1;d.b=e;d.g=e})}w(eY,T);function Z(a){if(null!=a.o){if(cU(a.o)&&!yP())throw lP(IO,null,"skippablevideo");return a.o}throw lP(FO,null,"An ad has not been selected.");}f=eY.prototype;f.Gg=function(){var a=fb(this.B,this.o);-1!=a&&++a<this.B.length?this.o=this.B[a]:this.o=null};
f.xs=function(){if(null==this.o){if(D(this.B))throw lP(QO);this.o=this.B[0];if(null==this.o.getSelectedCreative())throw jP(QO);}};f.ma=function(a){null!=this.o?this.S(new iO(a,Z(this))):this.S(new iO(a,null))};function fY(a){null==a.j&&(a.j=new Yk(a));return a.j}function gY(a,b){if(null!=a.D&&(bl(fY(a),a.D,"companion_display_error",function(){}),eR(a.D,b),!a.D.Xs()))throw lP(GO);}f.destroy=function(){this.dispose()};
f.J=function(){null!=this.o&&(jU(this.o,null),this.o=null);Oh(this.j);this.j=null;Oh(this.D);this.D=null;this.N=!1;eY.G.J.call(this)};f.$s=function(){return[]};f.getCurrentAd=function(){return this.B[0]};f.init=function(a){hY(this);this.Cj(a);this.ea=!0;this.Rj()};f.Rj=function(){this.ma("loaded")};f.sendImpressionUrls=function(a){null!=this.o&&pP.b&&AO(hU(Z(this)),a)};
f.Zc=function(a,b,c){if(!this.N){if(null==a)throw lP(JO,null,"displayContainer");if(null!=c){var d=new ek(Ub(this.g));if(!Od(Ub(c),d.contains,d))throw lP(JO,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.g;if(null==c.Vf||0>=c.Vf)c.Vf=-1;null==c.nh&&(c.nh=[]);iY(c.nh);ia(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);ec(d,c)}this.content=b;this.k=a;this.xs();this.N=!0}};f.getRemainingTime=function(){return-1};f.Eh=ca;f.pause=function(){};f.resume=function(){};
f.skip=function(){};f.start=function(){hY(this);if(!this.ea)throw jP(FO,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&nP(this,JO,null,"volume",String(a));this.volume=a};f.Cj=function(a){if(!Vb(UX,a))throw lP(JO,null,"view mode",a);this.I=a};f.setMediaUrl=function(){};function hY(a){if(!a.N)throw lP(FO,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null};
function iY(a){if(!ga(a))throw lP(FO,null,"adsRenderingSettings.mimeTypes should be an array");var b=ub(Tb(IP),Tb(EP));z(a,function(a){if(!C(b,a))throw lP(FO,null,"Invalid or unsuppoted mime type "+a);})};function jY(a){eY.call(this,a);this.A=null;this.P=!1;this.O=I("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"})}w(jY,eY);f=jY.prototype;f.start=function(){jY.G.start.call(this);this.k.li();this.A=this.k.Rf();if(null!=this.A){ed(this.A);var a=this.In();this.A.appendChild(a);kY(this);this.ma("start")}};f.Eh=function(){jY.G.Eh.call(this);kY(this)};f.getSelectedCreative=function(){return Z(this).getSelectedCreative()};
f.J=function(){Oh(this.b);this.k=this.b=null;null!=this.A&&(ed(this.A),this.A=null);jY.G.J.call(this)};f.In=function(){var a=Z(this).getSelectedCreative();if(null==a)throw a=lP(QO),lY(this,a),a;TT(a,fY(this));UT(a,jk);try{gY(this,Z(this))}catch(b){throw lY(this,b),b;}var c=nX(Z(this));AO(hU(Z(this)),c);this.ma("impression");return mY(this,[a.nd()])};f.Xq=function(a,b){return new YX(a[0],b)};
function mY(a,b){null!=a.b&&a.b.stop();a.b=a.Xq(b,u(a.Vq,a));var c=a.b.K();if(pP.g){var d=I("style",{type:"text/css"},".close-padding{color:#fff;cursor:pointer;margin:0;padding-bottom:10px;padding-left:10px;position:absolute;right:0;top:0;z-index:1001}.close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAt0lEQVQY03XQMW7CQBAAwLmTlSp9JFpHiCYfiFzkCZbfkqfwjshPoEART6BwWmRQ5IrqikDB4QQFb7V7o7vd2/CiPr26F5/aEJan0lR8KUos7uJWKV6LTvcvo7gercHzn2zk6ADW+nzzYO4iKDS5vOBck5+NkAwas9xvpjFIv0yyscu8s8k4cmcFHsFqnD1zDxbe8w76249ViGrfah9+VLdM5cEgSd7GzhR7T7YTO9+LbThO4FEbzuewMmr11FxHAAAAAElFTkSuQmCC);float:right;height:15px;margin:5px 4px 0 0;width:15px}.yt-text-overlay .close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAAN1JREFUCNcB0gAt/wDbutvr23TbBAAA2wXbeNvs27UAAAHb9QAK+v3CoyBzJGAAhAAJ9vsvjgNuAftABgMUKvtBDlEBDvv9ouLGAAEAAJunMVIPBgAAAADx+aXjj90AoAAAAAAAwM/b/9v/2/+k6wCtAFUAAAIAANtxGxcAAAAAAAAlDX8LAKsAAAPbdgCDABH1+dDwEAUPBiggNCGxsQHb9AAL+/2c4KPZdQlNPwQC9vsvWwIAzff8ouGU3euhs1TJrvj82vQAXQEAAACRACMApwCpAPwABABaAFcA1sKJVOsU6fRuAAAAAElFTkSuQmCC);height:10px;margin:9px 9px 0 0;width:10px}.close-padding:hover .close-button{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAs0lEQVQY03XQLc7CQBAA0LdQjf8UQSCBcIHvAHgM6Wm4CB4kAk96g+IQhECCJATbUMy2NIGO2Mzs298JU/Py36/Y24SwKofa4ihkJYOfeEKnKnL5V0ZSTe3AqJHVHFzBzsUBXI2pDu9K4+pD3JnqfrjwkOrH+/pSD8WHKWTOkc+yiDXntqAHtvXbI1/AxNKkUdcfmyFYuFt4Kc0iN7qWoIhj1bXk5s+ppec3nXV4tuDTOrwBYQs0jH6JoccAAAAASUVORK5CYII=)}.yt-text-overlay .close-padding:hover .close-button{background-color:rgba(0,0,0,0.15);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAALpJREFUCNclyL1Kw1AAgNFPqLh3cu/D+ARV8S0UEcFVoYOL4Kw4FSmClBZiB38WHZ10sQUnB6MR2hruTVI/h5zx4MjUXRvgsvt+OQT81VBdn7803THXWUEHD+JCf+L48e9bY9WZ0AcG3SyqahYO30jYBOD9uc67lCvaALjtR52f4TSpa89cp+E+nRYayuQMcK6xOhqvDi9ui4XOCtr4MC+PJys3rK81R728fMroLwEntOhySUWDLTZ4/QdyroIjdfxoFwAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:inset 0 -1px 3px rgba(0,0,0,0.3),0 1px 0 rgba(255,255,255,0.5);height:20px;margin:4px 4px 0 0;width:20px}.recall-button{background:rgba(200,200,200,0.2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAgAfJAUZwAAAURJREFUGNMFwb1LAmEAB+Dfe+/daZ3aWX6k1WFmSElQUBYUVIsguTQ0BUm4VtDYFLT4b7hkYLQGDg5BtERkUIRDgX1oWg6deKl359vzEFZO0mwWJgAUjgr88fe7R/2BkVonXVOGOQRQAJSwcp4CWWhKhnI6Vg0TkWYbnc8G7hbCjlLM3SQOBZQDAPgyk3wP+/Vf2Oyu4JV/NHDf1CG/1NREdZuZVRUCeiaLal12iETBQ4E1iN4QaNLqAafMptlw6Yvtwh4cI5CiIm09BAh06fbDbEx7saXp0M9vkDtJELQ5jPQAK1i5Irb+mGwYbEfV2AHiZz7M7YVLNZZ6rLDYACac8xAkwjp6ROf4ePEV19EZmaCrdQXwbzq19V8W68qUH+Hx4OYFnp6ZjJWck4NlUYLVf5pOgpXzdAOCOIg+N1zLIQuPpX9L/XzfXOCrFgAAAABJRU5ErkJggg==) no-repeat center;border:1px solid rgba(255,255,255,0.498039);box-shadow:rgba(0,0,0,0.701961) 0 4px 3px;color:#fff;cursor:pointer;height:11px;width:26px;z-index:1001}.yt-text-overlay .recall-button{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(0,0,0,0);box-shadow:none;height:17px;width:29px}.autoalign .recall-button{margin:auto}.yt-text-overlay.autoalign .recall-button{margin:auto auto 6px}.recall-button:hover{background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAHCAAAAAAUx4O/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAcA+wgIqAAAAEtJREFUCNcVi1kRwEAIQ3GAhEpAAhJWChKQsBIqBQlIQAIS0jQ/OeZFAIz70ARIjdDL2GYF1OMrxZ6JvUugjGoCG5rcJSHv+d/oMx893S/cqF2DpwAAAABJRU5ErkJggg==) no-repeat center}.yt-text-overlay .recall-button:hover{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(255,255,255,0.5)}.auto-hide{display:none}body:hover .auto-hide{display:block}.attribution-button{bottom:12px;color:#fff;font:11px arial,sans-serif;position:absolute;right:5px;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;z-index:1001}.yt-text-overlay .attribution-button{color:#888;text-shadow:none}.viewmode-fullscreen .attribution-button{right:22px;top:5px}.yt-text-overlay.viewmode-fullscreen .attribution-button{right:5px;top:auto}.text-container .attribution-button{bottom:7px}.container{position:absolute;width:100%}.container.autoalign{bottom:0;text-align:center}.container-stack{background-color:#666;border-radius:5px;display:block;padding:3px 0}.container-rotator .attribution-button{bottom:7px}.container-rotator .text-inner-container{left:20px}.container-selector{-webkit-box-shadow:0 4px 3px rgba(0,0,0,.7);-moz-box-shadow:0 4px 3px rgba(0,0,0,.7);box-shadow:0 4px 3px rgba(0,0,0,.7);background:#666;border-radius:2px;cursor:pointer;height:10px;left:5px;position:absolute;width:10px;z-index:1002}.container-selector:hover{background:#fff}.container-rotator .container-highlight:hover{border-color:#fff!important}.container-stack .container-highlight:hover{background-color:#999!important}.container-active{background:#fc0!important}.container-slider .attribution-button{bottom:7px}.container-slider .controls{max-width:100%!important}.container-slider .text-container{background-color:#000;border-radius:5px 5px 0 0;margin-bottom:0}.container-slider .text-title:hover{text-decoration:underline!important}.container-slider.hidden .controls{top:38px}.container-slider.animated .controls{-webkit-transition:top .4s;-moz-transition:top .4s;-o-transition:top .4s;transition:top .4s}.controls{display:inline-block;position:relative}.controls.scalable{display:block;min-width:320px;max-width:450px}.autoalign .controls.scalable{margin:auto}.flash-container,.image-container{display:inline-block;position:relative}.flash-container.click-capture .click-layer{display:block}.click-layer{background:rgba(0,0,0,0.0);bottom:0;left:0;position:absolute;right:0;top:0;z-index:100}.text-container{margin-bottom:5px;position:relative}.yt-text-overlay .text-container{margin-bottom:3px}.text-inner-container{background-image:-webkit-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-moz-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-ms-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-o-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));border:1px solid rgba(102,102,102,0.7);border-radius:3px;box-shadow:rgba(0,0,0,0.7) 0 5px 5px;padding-left:10px;position:absolute;text-align:left;top:0;bottom:0;left:0;right:0}.afi .text-container .text-inner-container{background-image:none;border:none;border-radius:0;box-shadow:none}.yt-text-overlay .text-container .text-inner-container{background-color:rgba(0,0,0,0.6);background-image:none;border:1px solid rgba(0,0,0,0.6);border-radius:0;box-shadow:none;padding-left:10px}.viewmode-fullscreen .text-inner-container{background-image:none;border:none;box-shadow:none}.yt-text-overlay .controls:hover .text-inner-container{border:1px solid rgba(58,58,58,1.0)}.text-title{text-decoration:underline}.afi .text-title{text-decoration:none}.yt-text-overlay .text-title{text-decoration:none}.viewmode-fullscreen .text-title{text-decoration:none}.yt-text-overlay .controls:hover .text-container .text-title{text-decoration:underline}.text-image-link{float:left;position:relative}.text-image{box-shadow:rgba(0,0,0,0.498039) 0 3px 5px;height:57px;margin:3px 10px 0 0;width:79px}.yt-text-overlay .text-image{margin:2px 10px 0 0}.text-image-duration{background:#000;color:#fff;font:10px arial,sans-serif;padding:2px;position:absolute;right:10px;top:43px}.text-title{color:#fff;display:block;font:bold 14px arial,sans-serif;margin:7px 16px 0 0;overflow:hidden;padding-bottom:4px;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-title{margin-top:7px;text-shadow:#000 0 -1px 0}.text-description{color:#fff;font:12px arial,sans-serif;margin-top:-3px;overflow:hidden;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-description{text-align:left;text-shadow:none}.text-ad-channel{bottom:7px;color:#f9fcc0;font:bold 11px arial,sans-serif;left:10px;position:absolute;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px}.yt-text-overlay .text-ad-channel{bottom:9px;color:#eade90;font-weight:normal;left:10px;text-shadow:#000 0 -1px 0}.pyv .text-ad-channel{left:99px}.yt-text-overlay .pyv .text-ad-channel{left:99px}.viewmode-fullscreen .text-ad-channel{color:#ccc}.yt-text-overlay.viewmode-fullscreen .text-ad-channel{color:#eade90}.ima-sdk-frame body{background:transparent;height:100%;margin:0;overflow:hidden}.ima-sdk-frame{height:100%}.videoAdUi{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0}.videoAdUiTopBarWithGradients{background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-color:rgba(0,0,0,0);border-bottom:none;height:40px}.videoAdUiTopBarTransitions{-webkit-transition:opacity ease-in .5s;-moz-transition:opacity ease-in .5s;-o-transition:opacity ease-in .5s;transition:opacity ease-in .5s;opacity:0}.videoAdUi:hover .videoAdUiTopBarTransitions{-webkit-transition:opacity ease-out .5s;-moz-transition:opacity ease-out .5s;-o-transition:opacity ease-out .5s;transition:opacity ease-out .5s;opacity:.8}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiBottomBar{background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);bottom:5px;left:0;opacity:.9;padding:0;position:absolute;width:100%}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%}.videoAdUiProgress{background-image:-webkit-linear-gradient(top,#ffec7b,#dea405);background-image:-moz-linear-gradient(top,#ffec7b,#dea405);background-image:-ms-linear-gradient(top,#ffec7b,#dea405);background-image:-o-linear-gradient(top,#ffec7b,#dea405);background-image:linear-gradient(top,#ffec7b,#dea405);border-right:solid 1px #666;height:4px;opacity:.9;width:0%}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiAuthorIconImage{cursor:pointer;width:40px;height:40px}.videoAdUiAuthorIconImage:hover{opacity:.6}.videoAdUiAuthorName{color:#ccc;cursor:pointer;display:inline-block;font:normal 12px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:20%}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;font:normal 13px arial,sans-serif;margin-bottom:5px;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAoATqZ25QAAAJdJREFUGNN1j70NwkAMRp+PMAXKBGmgvQWYAOYgMAjMQRZggoiOC0UWQFmAFoEp4EIOzGss+Ud+n2CggTWw6RtC7axFHJf0Ei/aUKH4/njKBEDPLHiwi/0Mxcdhwh0P7BGWryeW44ktI2qZUeJYRfFuEGKugU4Dx1/tlOJdcwBtqD6OQ8YcuAHKNaY1F6WgBVrLO/v2/McTvRgrpKpY5XsAAAAASUVORK5CYII=);display:inline-block;height:10px;margin-left:3px;width:10px}.videoAdUiTitle{color:#fff;cursor:pointer;display:inline-block;font:normal 13px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:50%}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttribution{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;padding:5px;padding-right:10px;position:absolute}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiPreSkipContainer{bottom:22px;cursor:default;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiPreSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiSkipContainer{-webkit-tap-highlight-color:rgba(0,0,0,0);bottom:22px;cursor:pointer;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{width:100%;padding-right:0;line-height:21px}.videoAdUiPreSkipThumbnail{cursor:pointer;display:inline-block;vertical-align:middle}.videoAdUiPreSkipThumbnailImage{display:block;max-width:78px;max-height:42px;width:auto;height:auto}.videoAdUiSkipButton{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0.8);border:1px solid rgba(255,255,255,0.5);border-right:0;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center}.videoAdUi-mobile .videoAdUiSkipButton{font:normal 16px arial,helvetica,sans-serif;min-width:100px;padding:6px 7px}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUi-swipeable .videoAdUiSkipButton{background:rgba(255,255,255,0.8);border:1px solid rgba(0,0,0,0.8);color:#000}.videoAdUiSkipIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiAttribution{font-size:13px}.videoAdUiAttribution-gvn{font-size:16px!important}.videoAdUiPreSkipButton{min-width:200px}.videoAdUiPreSkipText{font-size:13px;width:105px;padding-right:6px}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{font-size:13px}.videoAdUiPreSkipThumbnailImage{max-width:98px;max-height:52px}.videoAdUiShare{font-size:15px}.videoAdUiSkipButton{font-size:23px;min-width:200px}}");
c.appendChild(d)}pV(c,"autoalign",a.g.Iq);pV(c,"viewmode-fullscreen","fullscreen"==a.I);c.appendChild(a.O);fY(a).listen(c,"click",jk);(null!=a.o&&rU(Z(a))||a.g.useStyledNonLinearAds)&&a.dm(a.b.b);return c}f.dm=function(a){var b=fY(this);this.L=IU(WX,{mD:this.P});b.listen(this.L,"click",this.nD);var c=IU(VX);b.listen(c,"click",this.Mn);a.appendChild(c)};function kY(a){if(null!=a.b){var b=dg(a.k.Rf()),c=dg(jd(a.b.b));if(c.width>b.width||c.height>b.height)throw b=lP(LO,null),lY(a,b),a.stop(),b;}}
function lY(a,b){var c=hX(b,Z(a)),d=gU(Z(a));AO(d,c)}f.Mn=function(){this.Vq();this.ma("userClose")};f.Vq=function(){this.b.stop();var a=this.getSelectedCreative();null!=a&&WT(a);hd(this.L,this.b.b)};f.nD=function(a){jk(a);this.b.show();this.b.play();hd(this.b.b,this.L);Tk(function(){hg(this.O,!1)},500,this);hg(this.O,!0)};function nY(a){jY.call(this,a);this.C=!1;this.F=this.T=null;!D(a)&&null!=a[0].j&&(this.T=a[0].j,a=Ae(new J(this.T.adTagUrl),"channel"),this.wh=null!=a&&-1<a.split("+").indexOf("afitc"))&&(this.P=!0)}w(nY,jY);f=nY.prototype;f.wh=!1;
f.Xq=function(a,b){if(this.C||null==b)b=ca;var c;this.wh?c=new bY(a[0]):pP.b&&this.C?c=new YX(a[0],b):"fullscreen"==this.I?c=new dY(a):1<a.length?(c=new $X(a),c.L=15E3):c=new YX(a[0],b);c.Wr=100;this.C&&(c.Br=30);c.fr=this.wh?1E4:45E3;c.gr=6E3;pV(c.b,"scalable",this.C);pV(c.K(),"afi",this.wh);pV(c.K(),"yt-text-overlay",pP.b&&this.C);return c};
f.BC=function(a){var b=a.getSelectedCreative();null!=b?(null==this.M&&(this.M=a.getExtension("AdSense").A),VT(b,qa(this.OC,a,b)),UT(b,qa(this.NC,a,b)),b.la=!1,"Text"==b.getContentType()&&(this.C=!0),this.F.push(b)):(b=jP(QO),b=hX(b,a),AO(gU(a),b))};f.Zc=function(a,b,c){nY.G.Zc.call(this,a,b,c);this.g.Iq=!0;null!=this.B[0]&&0<lR(this.B[0]).length?gY(this,this.B[0]):this.ma("companionBackfill")};
f.In=function(){null==this.F&&(this.F=[],z(this.B,this.BC,this));if(0==this.F.length)throw lP(QO);var a=[];z(this.F,function(b){TT(b,fY(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.$r=!0);a.push(b.nd());$T(b,this.M.j)},this);if(0==a.length)throw lP(QO);return mY(this,a)};f.Mn=function(a){z(this.F,function(a){var c=nX(a.getAd());AO(a.On("close"),c)},this);nY.G.Mn.call(this,a)};
f.dm=function(a){nY.G.dm.call(this,a);var b=this.B[0].getExtension("AdSense"),c=b.k,b=b.o,c=IU(XX,{text:null!=c?c:this.M.b,url:null!=b?b:this.M.g});a.appendChild(c)};f.OC=function(a,b){var c=nX(a);AO(hU(a),c);AO(b.On("creativeview"),c);VT(b,ca)};
f.NC=function(a,b,c){c=Zf(c);a=a.getExtension("AdSense");a=new J(a.g);var d=b.sd();isNaN(d)&&(d=cg(b.nd()).width);var e=b.getHeight();isNaN(e)&&(e=cg(b.nd()).height);b=tT();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.I,"sdkv=h.0.0.0","eids="+xT(b)];xO(a,"elementclick",b);this.ma("click")};f.Cj=function(a){this.I!=a&&(nY.G.Cj.call(this,a),null!=this.A&&(ed(this.A),a=this.In(),this.A.appendChild(a)),this.ma("expandedChanged"))};function oY(a){iO.call(this,"adMetadata",a)}w(oY,iO);function pY(a,b,c){var d=ca;a=new J("https://gdata.youtube.com/feeds/api/videos/"+a);null!=c&&(b=u(b,c),d=u(d,c));qY(new Ol,a,b,d)}function rY(a,b,c){var d=ca;a=new J("https://gdata.youtube.com/feeds/api/channels/"+a);null!=c&&(b=u(b,c),d=u(d,c));qY(new Ol,a,b,d)}
function qY(a,b,c,d){sY(b);Rl(a,2E3);var e=new Yk(a);bl(e,a,"success",function(a){a=a.target;var b;b=a.b?sf(a.b.responseText):void 0;c(b||{});e.dispose();a.dispose()});bl(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.g&&(b=Error(el(a.g)));d(b);e.dispose();a.dispose()});a.send(b)}function sY(a){K(a,"alt","json");K(a,"v","2")};function tY(a){uY(this,a)}function uY(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&jb(d.$t.split(":"),function(a,b,c){return"channel"==a?(this.b=c[b+1],!0):!1},a);(d=c.author)&&d[0]&&d[0].name&&(a.j=d[0].name.$t);(c=c.media$thumbnail)&&c[0]&&(a.g=c[0].url)}}};function vY(a){wY(this,a)}vY.prototype.b=!0;function wY(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&jb(d.$t.split(":"),function(a,b,c){return"video"==a?(this.videoId=c[b+1],!0):!1},a);if(d=c.title)a.title=d.$t;if(d=c.media$group)if(d=d.yt$uploaderId)a.g=d.$t;c.yt$accessControl&&(c=lb(c.yt$accessControl,function(a){return"list"==a.action}))&&(a.b="denied"!=c.permission)}}};function xY(a,b,c,d,e){hw.call(this);this.g=a;this.o=b;this.A=c;this.j=d;this.B=ga(e)?e:[e]}w(xY,hw);f=xY.prototype;f.play=function(){if(1==this.b)return!1;this.Mc();this.Ib("play");this.startTime=v();this.b=1;if(Mx())return Kf(this.g,this.A),this.k=Tk(this.pz,void 0,this),!0;this.Fl(!1);return!1};f.pz=function(){Kx(this.g,this.B);Kf(this.g,this.j);this.k=Tk(u(this.Fl,this,!1),1E3*this.o)};f.stop=function(){1==this.b&&this.Fl(!0)};
f.Fl=function(a){Lx(this.g,"");Uk(this.k);Kf(this.g,this.j);this.endTime=v();this.b=0;if(a)this.onStop();else this.ub();this.Cd()};f.J=function(){this.stop();xY.G.J.call(this)};f.pause=function(){};function yY(a,b,c,d){return new xY(a,.5,{opacity:c},{opacity:d},{Ep:"opacity",duration:.5,timing:b,Dp:0})};function zY(a,b){T.call(this);this.j=a;this.M=0;this.D=!1;this.g=1;this.b=this.P=this.F=this.N=this.k=null;this.o=new Yk(this);this.O=!1;this.U=this.T=this.L=0;this.A=this.C=this.B=null;this.I=!1;this.j.j&&(this.o.listen(b,"touchstart",this.Au),this.o.listen(b,"touchmove",this.zu),this.o.listen(b,"touchend",this.yu));this.k=IU(AY);this.N=H("videoAdUiPreSkipButton",this.k);this.F=H("videoAdUiPreSkipText",this.N);this.P=H("videoAdUiPreSkipThumbnail",this.N);od(this.F,BY({Co:CY(this)}));var c=this.j.V,
c=(x(c)?null:"//i1.ytimg.com/vi/"+c+"/mqdefault.jpg")||"";if(this.j.O&&!x(c)){var d=ad("img");d.setAttribute("src",c);mV(d,"videoAdUiPreSkipThumbnailImage");this.P.appendChild(d)}else mV(this.F,"videoAdUiPreSkipTextOnly");this.j.j?c="\u00ab Swipe to Skip":(c="",d=sa("Skip Ad \u00bb"),c=c+d,d=new RegExp(Ra("\u00bb"),""),c=c.replace(d,""),c=za(c));this.b=IU(DY,{Cu:c});hg(this.k,!1);b.appendChild(this.k);hg(this.b,!1);gg(this.b,0);b.appendChild(this.b);this.o.listen(this.b,"click",this.Bu)}w(zY,T);
f=zY.prototype;f.J=function(){null!=this.B&&(this.B.dispose(),this.B=null);null!=this.C&&(this.C.dispose(),this.C=null);EY(this);null!=this.k&&(gd(this.k),this.k=null);null!=this.b&&(gd(this.b),this.b=null);this.o.dispose();this.o=null;this.I=!1;zY.G.J.call(this)};
f.update=function(a,b){this.M=b;if(!(0>=this.M||null==this.j.b||0>cS(this.j.b))){var c=cS(this.j.b);c>=this.M||3==this.g||(0>a?this.g=1:a<=c?(2!=this.g&&(FY(this,0),yY(this.k,"ease-out",0,1).play(),hg(this.k,!0)),this.g=2):(3!=this.g&&(hg(this.b,!0),this.C=new xY(this.k,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{Ep:"opacity",duration:.5,timing:"ease-out",Dp:0}),this.B=yY(this.b,"ease-out",0,1),this.C.play(),this.B.play(),this.o.listen(ld(this.b),"mouseover",this.sw),this.o.listen(ld(this.b),
"mouseout",this.Fp),this.Fp()),this.g=3,this.S("skipshown")))}2==this.g&&FY(this,a)};f.skip=function(){return null==this.j.b||3!=this.g||this.D?!1:(this.D=!0,this.S("PUBLISHER_INVOKED_SKIP"),!0)};f.Au=function(a){var b=a.b;3==this.g&&1==b.touches.length&&(this.O=!0,this.U=b.touches[0].pageX,a.preventDefault())};f.zu=function(a){var b=a.b;3==this.g&&1==b.touches.length&&this.O&&(b=b.touches[0].pageX,this.L=this.T-b,this.T=b,b=this.U-b,0<b&&(this.b.style.right=b+"px"),a.preventDefault())};
f.yu=function(){this.O=!1;if(3==this.g){var a=cg(ld(this.b));if(parseInt(this.b.style.right,10)+4*this.L>.25*a.width&&0<this.L){hg(this.b,!1);this.D=!0;this.S("skip");return}}this.b.style.right=0};function CY(a){return null!=a.j.b&&-1!=cS(a.j.b)?cS(a.j.b):-1}function FY(a,b){var c=CY(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+WR(c));c=BY({Co:d});od(a.F,c)}}f.Bu=function(a){a.stopPropagation();3!=this.g||this.D||(this.D=!0,this.S("skip"))};
f.Fp=function(){null==this.A&&(this.A=Tk(function(){this.I=!0;yY(this.b,"ease-in",1,.5).play();this.A=null},this.I?5E3:15E3,this))};f.sw=function(){gg(this.b,1);EY(this)};function EY(a){null!=a.A&&(Uk(a.A),a.A=null)};function GY(a,b,c){T.call(this);this.b=a;this.T=c;this.P=this.N=this.L=this.C=this.B=this.F=this.g=null;this.O=!1;this.D=this.k=this.A=this.M=this.I=this.o=null;this.j=new Yk(this);a=this.b.C;c="";var d=sa("Learn More {$suffix}",{suffix:NU("")});this.g=IU(this.b.B,{ki:a,Du:c+d});this.j.listen(this.g,"touchmove",this.Gu);this.M=H("videoAdUiProgress",this.g);this.F=H("videoAdUiAttribution",this.g);this.B=H("videoAdUiAuthorIcon",this.g);this.C=H("videoAdUiAuthorName",this.g);this.L=H("videoAdUiLearnMore",
this.g);this.N=H("videoAdUiLearnMoreText",this.g);this.D=H("videoAdUiShare",this.g);this.o=H("videoAdUiTitle",this.g);this.I=H("videoAdUiTopBar",this.g);this.P=H("videoAdUiBottomBar",this.g);null!=this.B&&this.j.listen(this.B,"click",this.Eu);null!=this.C&&this.j.listen(this.C,"click",this.Fu);null!=this.L&&this.j.listen(this.L,"click",this.Hu);null!=this.N&&this.j.listen(this.N,"click",this.vk);null!=this.D&&this.j.listen(this.D,"click",this.Ju);null!=this.o&&this.j.listen(this.o,"click",this.Ku);
null!=this.I&&this.j.listen(this.g,"mouseover",this.Iu);null!=this.b.b&&(this.k=new zY(this.b,this.g),this.k.gi(this));400>=(parseInt(Nf(b,"width"),10)||b.width)&&mV(this.g,"videoAdUi-mobile");this.b.j&&mV(this.g,"videoAdUi-swipeable");hg(this.g,!1);b.appendChild(this.g);this.b.g||(this.A=I("div",{style:"width:100%;height:100%"}),this.g.appendChild(this.A));HY(this)}w(GY,T);f=GY.prototype;f.show=function(){null!=this.g&&hg(this.g,!0)};
f.skip=function(){var a;if(a=null!=this.k)a=this.k,a=null!=a.j.b&&3==a.g;return a?this.k.skip():!1};f.J=function(){null!=this.g&&(gd(this.g),this.g=null);null!=this.k&&(this.k.dispose(),this.k=null);this.A=null;this.j.dispose();this.j=null;this.O=!1;GY.G.J.call(this)};
f.update=function(a,b){this.O=!0;if(null!=this.g){if(null!=this.F){var c=this.b.C,d=WR(b-a);od(this.F,c+(" ("+d+")"));hg(this.F,this.b.k&&this.O)}null!=this.M&&bg(this.M,a/b*100+"%");0<b&&null!=this.b.b&&null!=this.k&&(c=this.b.b,c.g&&(c.g=!1,c.b=c.b*b/100),this.k.update(a,b));this.b.A&&0<b&&5>b-a&&mV(this.I,"videoAdUiTopBarNoFade")}};
function HY(a){var b=a.b.I&&(6E3<a.T||0==a.T),c=b&&a.b.L,d=b&&a.b.N,e=b&&a.b.o,g=b&&a.b.F,b=b&&a.b.A,h=a.b.D&&!0,k="0px";null!=a.o&&(hg(a.o,b),null!=a.B&&hg(a.B,c),null!=a.C&&hg(a.C,d),null!=a.L&&hg(a.L,e),null!=a.D&&(hg(a.D,g),g&&a.S("videoShareShown")),null!=a.I&&hg(a.I,b||c||d||e));null!=a.F&&hg(a.F,a.b.k&&a.O);null!=a.M&&(hg(a.M,h),h&&(k=Nf(a.M,"height")));null!=a.P&&Kf(a.P,"bottom",k);null!=a.N&&hg(a.N,a.b.g)}f.Eu=function(){this.S("videoAuthorIconClicked")};f.Fu=function(){this.S("videoAuthorClicked")};
f.Hu=function(){this.S("videoLearnMoreClicked")};f.Ju=function(){this.S("videoShareClicked")};f.Ku=function(){this.S("videoTitleClicked")};f.Gu=function(a){a.preventDefault()};f.vk=function(){this.S("click")};f.Iu=function(){mV(this.I,"videoAdUiTopBarTransitions")};function IY(a){var b='<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+NU(a.Du)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">Learn More<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttribution"',c;c=dV(a.ki);
c=NU(c);return b+c+">"+NU(a.ki)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}function JY(a){var b=dV(a.ki);return'<div class="videoAdUi videoAdUi-gvn"><div class="videoAdUiTopBar"><div class="videoAdUiAttribution videoAdUiAttribution-gvn"'+NU(b)+">"+NU(a.ki)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}
function AY(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail"></div></div></div>'}function BY(a){var b="";a=sa("You can skip to video in {$xSeconds}",{xSeconds:NU(a.Co)});return b+a}function DY(a){return'<div class="videoAdUiSkipContainer"><div class="videoAdUiSkipButton">'+NU(a.Cu)+'<div class="videoAdUiSkipIcon"></div></div></div>'};function KY(){var a="",b=sa("Advertisement");this.C=a+b+":";this.b=null;this.k=this.I=!0;this.F=this.o=!1;this.D=!0;this.g=!1;this.M=!0;this.A=this.N=this.L=!1;this.B=null;this.j=!1;this.O=!0}function LY(a,b,c,d,e,g,h,k){var l=new KY;l.P=b;l.V=e;l.M=g;l.o=!1;l.F=h;l.D=k;l.b=c;l.g=a;l.B=IY;l.U=dQ(b,null!=c,d.baseYouTubeUrl);l.j=mk&&wT(0);l.O=null!=e&&(null!=d?d.showContentThumbnail:!0);return l};function MY(){this.b=new dS;this.k=new Fd;this.g=[];this.o=!1;this.Mf={};this.j=-1}w(MY,Mh);MY.prototype.J=function(){this.g=[];this.Mf={}};function NY(a,b){a.Mf=b}function OY(a,b){var c=yR(xR(),b.type);"impression"==b.type&&!a.o&&null!=a.g&&0<a.g.length&&(PY(a,a.g),a.o=!0);var d;t:switch(d=b.type,d){case "click":d=!0;break t;default:d=!Hd(a.k,d)}d&&(d=lS(a.b,b.type),0<d.length&&(PY(a,d,c),a.k.set(b.type,!0)))}function PY(a,b,c){z(b,function(a){yO(a,this.Mf,c)},a)};function QY(a){S.call(this,a)}w(QY,S);function RY(a){T.call(this);this.C=a;this.D=new Fd;this.B=-1;this.F=!1}w(RY,T);function SY(a){this.g=!1;this.b=a.Ji();this.volume=a.ae()}SY.prototype.muted=function(a,b){return!this.b&&a||0<this.volume&&0==b};f=RY.prototype;f.J=function(){TY(this);RY.G.J.call(this)};function TY(a){null!=a.g&&a.g.dispose();null!=a.b&&a.b.Cf();null!=a.o&&a.o.dispose();a.o=null;null!=a.A&&a.A.dispose();a.A=null;a.D.clear();a.B=-1;a.F=!1}
function UY(a,b,c){c&&null!=a.D.get(b)||(a.D.set(b,!0),OY(a.C,new S(b)),a.S(b))}f.Pw=function(a){var b=a.j;a=this.C;var c=this.C.Mf,b=null!=b?b.viewability:null;c["[VIEWABILITY]"]=null!=b?b:gX;a.Mf=c;UY(this,"viewable_impression",!1)};
f.Dw=function(){var a=this.b.rd();if(-1!=a){this.b.zh(.25*a)&&UY(this,"firstquartile",!0);this.b.zh(.5*a)&&UY(this,"midpoint",!0);this.b.zh(.75*a)&&UY(this,"thirdquartile",!0);var b=this.C,c=this.b.getCurrentTime();0>b.j&&(kS(b.b,a),b.j=0);for(var a=iS(b.b,"progress"),d=b.j;d<a.length;d++){var e=a[d];if(cS(e.j)>c)break;b.j=d+1;yO(e.b,b.Mf)}}VY(this)};function VY(a){0>a.B||a.F||!a.b.zh(a.B)&&!a.b.Ge()||(a.F=!0,UY(a,"engagedview",!0),a.S(new QY("viewCount")))}
f.Cw=function(){UY(this,"impression",!0);UY(this,"creativeview",!0);null!=this.I||null!=this.j||this.g.listen(this.b,"click",this.Mx);null!=this.I&&(this.o=new OP,this.g.listen(this.o,"click",this.nq,!1),PP(this.o,this.I));null!=this.j&&(this.A=new OP,this.g.listen(this.A,"click",this.nq,!1),PP(this.A,this.j));UY(this,"start",!0);(this.b.Ji()||0==this.b.ae())&&UY(this,"mute",!1)};
f.Ew=function(){var a=this.b.Ji(),b=this.b.ae(),c=this.k;c.b&&!a||!a&&0==c.volume&&0<b?UY(this,"unmute",!1):this.k.muted(a,b)&&UY(this,"mute",!1);this.k.b=a;this.k.volume=b};f.Aw=function(){this.b.Ge()?(VY(this),UY(this,"complete",!0)):this.b.eh()&&!this.b.er()&&(this.k.g=!0,UY(this,"pause",!1))};f.Bw=function(){this.k.g&&(this.k.g=!1,UY(this,"resume",!1))};f.ww=function(){VY(this);UY(this,"complete",!0)};f.nq=function(){UY(this,"click",!1)};f.xw=function(){UY(this,"error",!1)};
f.zw=function(){UY(this,"mediaLoadTimeout",!1)};f.Hw=function(){UY(this,"skipshown",!0)};f.Jw=function(){UY(this,"videoAuthorIconClicked",!1)};f.Iw=function(){UY(this,"videoAuthorClicked",!1)};f.Kw=function(){UY(this,"videoLearnMoreClicked",!1)};f.Lw=function(){UY(this,"videoShareClicked",!1)};f.Mw=function(){UY(this,"videoShareShown",!0)};f.Ow=function(){UY(this,"videoTitleClicked",!0)};f.Hp=function(){UY(this,"skip",!0)};f.Gw=function(){UY(this,"skip",!0)};f.Mx=function(){UY(this,"click",!1)};
f.yw=function(){UY(this,"fullscreen",!1)};f.Fw=function(){UY(this,"exitfullscreen",!1)};function WY(a){eY.call(this,a);this.M=this.A=null;this.F=new MY;this.C=new RY(this.F);this.P=this.T=this.L=!1;this.O=1}w(WY,eY);f=WY.prototype;f.J=function(){XY(this);var a=!1;null!=this.k&&(a=this.k.ln(),this.k.hide(),this.k=null);this.L&&(this.L=!1,this.b.eh()||this.b.Ge()||this.b.pause(),!oc&&!yc||a||(this.b.Nf(.001),this.b.Cg("","")),this.ma("contentResumeRequested"),this.ma("allAdsCompleted"),oc&&this.b.Zi()&&!a&&this.b.jn());WY.G.J.call(this)};
function XY(a){Oh(a.A);a.A=null;a.M=null;Oh(a.C);Oh(a.F);Oh(a.o);a.U=null}function YY(a){a.Gg();null!=a.o?a.start():a.stop()}f.Gg=function(){XY(this);WY.G.Gg.call(this);null!=this.o&&(this.F=new MY,this.C=new RY(this.F))};
f.Qw=function(a,b,c){this.T||(this.T=!0,this.ma("contentPauseRequested"));this.L=!0;var d=this.C,e=this.b,g=this.U,h=this.A;TY(d);d.b=e;d.j=h||null;d.b.Gi();d.k=new SY(d.b);d.I=g||null;d.g=new Yk(d);d.g.listen(a,"viewable_impression",d.Pw);d.g.listen(d.b,"timeUpdate",d.Dw);d.g.listen(d.b,"volumeChange",d.Ew);d.g.listen(d.b,"pause",d.Aw);d.g.listen(d.b,"play",d.Bw);d.g.listen(d.b,"end",d.ww);d.g.listen(d.b,"beginFullscreen",d.yw);d.g.listen(d.b,"endFullscreen",d.Fw);d.g.listen(d.b,"skip",d.Hp);d.g.listen(d.b,
"start",d.Cw);d.g.listen(d.b,"error",d.xw);d.g.listen(d.b,"mediaLoadTimeout",d.zw);null!=d.j&&(d.g.listen(d.j,"videoAuthorIconClicked",d.Jw),d.g.listen(d.j,"videoAuthorClicked",d.Iw),d.g.listen(d.j,"videoLearnMoreClicked",d.Kw),d.g.listen(d.j,"videoTitleClicked",d.Ow),d.g.listen(d.j,"videoShareClicked",d.Lw),d.g.listen(d.j,"videoShareShown",d.Mw),d.g.listen(d.j,"skipshown",d.Hw),d.g.listen(d.j,"skip",d.Hp),d.g.listen(d.j,"PUBLISHER_INVOKED_SKIP",d.Gw));fY(this).listen(this.C,"engagedview",this.be);
fY(this).listen(this.C,"videoAuthorIconClicked",this.be);fY(this).listen(this.C,"videoAuthorClicked",this.be);fY(this).listen(this.C,"videoLearnMoreClicked",this.be);fY(this).listen(this.C,"videoShareClicked",this.be);fY(this).listen(this.C,"videoShareShown",this.be);fY(this).listen(this.C,"videoTitleClicked",this.be);fY(this).listen(this.b,"timeUpdate",this.Nw);fY(this).listen(this.b,"volumeChange",this.uw);this.setVolume(this.O);ZY(this,a);$Y(this,a);this.k.fi();this.A&&(x(vU(a))?(d=this.A,null!=
d.A&&(d.j.Fa(d.A,"click",d.vk),Kf(d.A,"cursor","default"))):(d=this.A,null!=d.A&&(d.j.listen(d.A,"click",d.vk),Kf(d.A,"cursor","pointer"))),this.b.Gl(aZ(this,a)));this.b.Cg(b,c);try{gY(this,a)}catch(k){bZ(this,GO,k);return}this.b.play()};function cZ(a,b,c,d){b=iS(b.b,c);D(b)||(a[d]=b[0].b)}function dZ(a,b,c){b=c.getExtension(b);null!=b&&(cZ(a,b,"annotation_click","cta_annotation_clicked"),cZ(a,b,"annotation_close","cta_annotation_closed"),cZ(a,b,"annotation_start","cta_annotation_shown"))}
function aZ(a,b){var c=rU(b)&&!b.C?kU(b):null,d=cU(b)&&!dU(b),e=a.g.yk&&a.M.g,g=bU(b),h={};dZ(h,"AdSense",b);dZ(h,"dart",b);dZ(h,"DFP",b);return new UP(g,c,h,e,d,a.g.loadVideoTimeout,b.j.tagForChildDirectedContent)}function eZ(a){var b=0;z(a.B,function(a){fZ(a)&&b++},a);var c=1;z(a.B,function(a){var b=a.D;fZ(a)&&(b.b=c,b.g=c,c++)},a)}function fZ(a){a=a.getSelectedCreative();return null!=a&&a instanceof OT}
function gZ(a){return jb(a.B,function(a){a=hZ(a);return jb(a,function(a){return!x(bQ(a.g))})},a)}function hZ(a){var b=a.b;if(null!=b&&b.P&&(b=b.k,!D(b)&&b[0]instanceof OT))return b[0].D;b=a.getSelectedCreative();return fZ(a)?b.D:[]}function iZ(a,b){if(!fZ(b))throw lP(aP);var c=b.getSelectedCreative(),d=c.zb;if(!x(d))return new TP("","",0,0,0,0,0,d,"");var e=null!=b&&(pP.b||a.k.ej()),d=hZ(b),e=a.b.br(d,a.g.Vf,a.g.nh||[],e);jZ(d,a.g.Vf,e);if(null!=e)return c.oa=e;throw lP(TO);}
function jZ(a,b,c){try{var d=B(a,function(a){return a.de}),e=B(a,function(a){return a.b}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.de,selmt:null===c?"":c.b,nat:!1};AP(zP.getInstance(),22,g)}catch(h){}}f.Rj=function(){this.ma("loaded");this.S(new oY(Z(this)))};f.Zc=function(a,b,c){WY.G.Zc.call(this,a,b,c);this.b=this.k.sj(gZ(this))};f.skip=function(){null!=this.o&&cU(Z(this))&&(null!=this.A?this.A.skip():(OY(this.F,new S("skip")),kZ(this)))};
f.start=function(){WY.G.start.call(this);eZ(this);this.U=this.k.Hl();try{var a=iZ(this,Z(this));this.P=!1;if(this.g.useVideoAdUi){var b=Z(this),c;c=iZ(this,b).g;var d=b.getExtension("AdSense"),e=this.g.yk&&((null===c?!1:"modules"==(new J(c)).Pg().toLowerCase())||null!=d&&d.B),g=bQ(c),h;if(pP.b)h=LY(e,g,sU(b),this.g,this.g.contentId,!0,this.g.useShareButton,!0);else{var k;if(!yU(b,GP)&&!yU(b,HP)||uU(b)){var l=sU(b),p=LY(e,g,l,this.g,this.g.contentId,!1,!1,!1);p.B=JY;k=p}else{var s=sU(b),t=LY(e,g,s,
this.g,this.g.contentId,!1,!1,!1);t.k=!1;t.I=!1;k=t}h=k}var y=this.M=h,E=this.k.Il();if(null===E)E=document.body;else{ed(E);var A=I("style",{type:"text/css"},".close-padding{color:#fff;cursor:pointer;margin:0;padding-bottom:10px;padding-left:10px;position:absolute;right:0;top:0;z-index:1001}.close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAt0lEQVQY03XQMW7CQBAAwLmTlSp9JFpHiCYfiFzkCZbfkqfwjshPoEART6BwWmRQ5IrqikDB4QQFb7V7o7vd2/CiPr26F5/aEJan0lR8KUos7uJWKV6LTvcvo7gercHzn2zk6ADW+nzzYO4iKDS5vOBck5+NkAwas9xvpjFIv0yyscu8s8k4cmcFHsFqnD1zDxbe8w76249ViGrfah9+VLdM5cEgSd7GzhR7T7YTO9+LbThO4FEbzuewMmr11FxHAAAAAElFTkSuQmCC);float:right;height:15px;margin:5px 4px 0 0;width:15px}.yt-text-overlay .close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAAN1JREFUCNcB0gAt/wDbutvr23TbBAAA2wXbeNvs27UAAAHb9QAK+v3CoyBzJGAAhAAJ9vsvjgNuAftABgMUKvtBDlEBDvv9ouLGAAEAAJunMVIPBgAAAADx+aXjj90AoAAAAAAAwM/b/9v/2/+k6wCtAFUAAAIAANtxGxcAAAAAAAAlDX8LAKsAAAPbdgCDABH1+dDwEAUPBiggNCGxsQHb9AAL+/2c4KPZdQlNPwQC9vsvWwIAzff8ouGU3euhs1TJrvj82vQAXQEAAACRACMApwCpAPwABABaAFcA1sKJVOsU6fRuAAAAAElFTkSuQmCC);height:10px;margin:9px 9px 0 0;width:10px}.close-padding:hover .close-button{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAs0lEQVQY03XQLc7CQBAA0LdQjf8UQSCBcIHvAHgM6Wm4CB4kAk96g+IQhECCJATbUMy2NIGO2Mzs298JU/Py36/Y24SwKofa4ihkJYOfeEKnKnL5V0ZSTe3AqJHVHFzBzsUBXI2pDu9K4+pD3JnqfrjwkOrH+/pSD8WHKWTOkc+yiDXntqAHtvXbI1/AxNKkUdcfmyFYuFt4Kc0iN7qWoIhj1bXk5s+ppec3nXV4tuDTOrwBYQs0jH6JoccAAAAASUVORK5CYII=)}.yt-text-overlay .close-padding:hover .close-button{background-color:rgba(0,0,0,0.15);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAALpJREFUCNclyL1Kw1AAgNFPqLh3cu/D+ARV8S0UEcFVoYOL4Kw4FSmClBZiB38WHZ10sQUnB6MR2hruTVI/h5zx4MjUXRvgsvt+OQT81VBdn7803THXWUEHD+JCf+L48e9bY9WZ0AcG3SyqahYO30jYBOD9uc67lCvaALjtR52f4TSpa89cp+E+nRYayuQMcK6xOhqvDi9ui4XOCtr4MC+PJys3rK81R728fMroLwEntOhySUWDLTZ4/QdyroIjdfxoFwAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:inset 0 -1px 3px rgba(0,0,0,0.3),0 1px 0 rgba(255,255,255,0.5);height:20px;margin:4px 4px 0 0;width:20px}.recall-button{background:rgba(200,200,200,0.2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAgAfJAUZwAAAURJREFUGNMFwb1LAmEAB+Dfe+/daZ3aWX6k1WFmSElQUBYUVIsguTQ0BUm4VtDYFLT4b7hkYLQGDg5BtERkUIRDgX1oWg6deKl359vzEFZO0mwWJgAUjgr88fe7R/2BkVonXVOGOQRQAJSwcp4CWWhKhnI6Vg0TkWYbnc8G7hbCjlLM3SQOBZQDAPgyk3wP+/Vf2Oyu4JV/NHDf1CG/1NREdZuZVRUCeiaLal12iETBQ4E1iN4QaNLqAafMptlw6Yvtwh4cI5CiIm09BAh06fbDbEx7saXp0M9vkDtJELQ5jPQAK1i5Irb+mGwYbEfV2AHiZz7M7YVLNZZ6rLDYACac8xAkwjp6ROf4ePEV19EZmaCrdQXwbzq19V8W68qUH+Hx4OYFnp6ZjJWck4NlUYLVf5pOgpXzdAOCOIg+N1zLIQuPpX9L/XzfXOCrFgAAAABJRU5ErkJggg==) no-repeat center;border:1px solid rgba(255,255,255,0.498039);box-shadow:rgba(0,0,0,0.701961) 0 4px 3px;color:#fff;cursor:pointer;height:11px;width:26px;z-index:1001}.yt-text-overlay .recall-button{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(0,0,0,0);box-shadow:none;height:17px;width:29px}.autoalign .recall-button{margin:auto}.yt-text-overlay.autoalign .recall-button{margin:auto auto 6px}.recall-button:hover{background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAHCAAAAAAUx4O/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAcA+wgIqAAAAEtJREFUCNcVi1kRwEAIQ3GAhEpAAhJWChKQsBIqBQlIQAIS0jQ/OeZFAIz70ARIjdDL2GYF1OMrxZ6JvUugjGoCG5rcJSHv+d/oMx893S/cqF2DpwAAAABJRU5ErkJggg==) no-repeat center}.yt-text-overlay .recall-button:hover{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(255,255,255,0.5)}.auto-hide{display:none}body:hover .auto-hide{display:block}.attribution-button{bottom:12px;color:#fff;font:11px arial,sans-serif;position:absolute;right:5px;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;z-index:1001}.yt-text-overlay .attribution-button{color:#888;text-shadow:none}.viewmode-fullscreen .attribution-button{right:22px;top:5px}.yt-text-overlay.viewmode-fullscreen .attribution-button{right:5px;top:auto}.text-container .attribution-button{bottom:7px}.container{position:absolute;width:100%}.container.autoalign{bottom:0;text-align:center}.container-stack{background-color:#666;border-radius:5px;display:block;padding:3px 0}.container-rotator .attribution-button{bottom:7px}.container-rotator .text-inner-container{left:20px}.container-selector{-webkit-box-shadow:0 4px 3px rgba(0,0,0,.7);-moz-box-shadow:0 4px 3px rgba(0,0,0,.7);box-shadow:0 4px 3px rgba(0,0,0,.7);background:#666;border-radius:2px;cursor:pointer;height:10px;left:5px;position:absolute;width:10px;z-index:1002}.container-selector:hover{background:#fff}.container-rotator .container-highlight:hover{border-color:#fff!important}.container-stack .container-highlight:hover{background-color:#999!important}.container-active{background:#fc0!important}.container-slider .attribution-button{bottom:7px}.container-slider .controls{max-width:100%!important}.container-slider .text-container{background-color:#000;border-radius:5px 5px 0 0;margin-bottom:0}.container-slider .text-title:hover{text-decoration:underline!important}.container-slider.hidden .controls{top:38px}.container-slider.animated .controls{-webkit-transition:top .4s;-moz-transition:top .4s;-o-transition:top .4s;transition:top .4s}.controls{display:inline-block;position:relative}.controls.scalable{display:block;min-width:320px;max-width:450px}.autoalign .controls.scalable{margin:auto}.flash-container,.image-container{display:inline-block;position:relative}.flash-container.click-capture .click-layer{display:block}.click-layer{background:rgba(0,0,0,0.0);bottom:0;left:0;position:absolute;right:0;top:0;z-index:100}.text-container{margin-bottom:5px;position:relative}.yt-text-overlay .text-container{margin-bottom:3px}.text-inner-container{background-image:-webkit-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-moz-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-ms-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-o-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));border:1px solid rgba(102,102,102,0.7);border-radius:3px;box-shadow:rgba(0,0,0,0.7) 0 5px 5px;padding-left:10px;position:absolute;text-align:left;top:0;bottom:0;left:0;right:0}.afi .text-container .text-inner-container{background-image:none;border:none;border-radius:0;box-shadow:none}.yt-text-overlay .text-container .text-inner-container{background-color:rgba(0,0,0,0.6);background-image:none;border:1px solid rgba(0,0,0,0.6);border-radius:0;box-shadow:none;padding-left:10px}.viewmode-fullscreen .text-inner-container{background-image:none;border:none;box-shadow:none}.yt-text-overlay .controls:hover .text-inner-container{border:1px solid rgba(58,58,58,1.0)}.text-title{text-decoration:underline}.afi .text-title{text-decoration:none}.yt-text-overlay .text-title{text-decoration:none}.viewmode-fullscreen .text-title{text-decoration:none}.yt-text-overlay .controls:hover .text-container .text-title{text-decoration:underline}.text-image-link{float:left;position:relative}.text-image{box-shadow:rgba(0,0,0,0.498039) 0 3px 5px;height:57px;margin:3px 10px 0 0;width:79px}.yt-text-overlay .text-image{margin:2px 10px 0 0}.text-image-duration{background:#000;color:#fff;font:10px arial,sans-serif;padding:2px;position:absolute;right:10px;top:43px}.text-title{color:#fff;display:block;font:bold 14px arial,sans-serif;margin:7px 16px 0 0;overflow:hidden;padding-bottom:4px;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-title{margin-top:7px;text-shadow:#000 0 -1px 0}.text-description{color:#fff;font:12px arial,sans-serif;margin-top:-3px;overflow:hidden;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-description{text-align:left;text-shadow:none}.text-ad-channel{bottom:7px;color:#f9fcc0;font:bold 11px arial,sans-serif;left:10px;position:absolute;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px}.yt-text-overlay .text-ad-channel{bottom:9px;color:#eade90;font-weight:normal;left:10px;text-shadow:#000 0 -1px 0}.pyv .text-ad-channel{left:99px}.yt-text-overlay .pyv .text-ad-channel{left:99px}.viewmode-fullscreen .text-ad-channel{color:#ccc}.yt-text-overlay.viewmode-fullscreen .text-ad-channel{color:#eade90}.ima-sdk-frame body{background:transparent;height:100%;margin:0;overflow:hidden}.ima-sdk-frame{height:100%}.videoAdUi{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0}.videoAdUiTopBarWithGradients{background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-color:rgba(0,0,0,0);border-bottom:none;height:40px}.videoAdUiTopBarTransitions{-webkit-transition:opacity ease-in .5s;-moz-transition:opacity ease-in .5s;-o-transition:opacity ease-in .5s;transition:opacity ease-in .5s;opacity:0}.videoAdUi:hover .videoAdUiTopBarTransitions{-webkit-transition:opacity ease-out .5s;-moz-transition:opacity ease-out .5s;-o-transition:opacity ease-out .5s;transition:opacity ease-out .5s;opacity:.8}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiBottomBar{background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);bottom:5px;left:0;opacity:.9;padding:0;position:absolute;width:100%}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%}.videoAdUiProgress{background-image:-webkit-linear-gradient(top,#ffec7b,#dea405);background-image:-moz-linear-gradient(top,#ffec7b,#dea405);background-image:-ms-linear-gradient(top,#ffec7b,#dea405);background-image:-o-linear-gradient(top,#ffec7b,#dea405);background-image:linear-gradient(top,#ffec7b,#dea405);border-right:solid 1px #666;height:4px;opacity:.9;width:0%}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiAuthorIconImage{cursor:pointer;width:40px;height:40px}.videoAdUiAuthorIconImage:hover{opacity:.6}.videoAdUiAuthorName{color:#ccc;cursor:pointer;display:inline-block;font:normal 12px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:20%}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;font:normal 13px arial,sans-serif;margin-bottom:5px;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAoATqZ25QAAAJdJREFUGNN1j70NwkAMRp+PMAXKBGmgvQWYAOYgMAjMQRZggoiOC0UWQFmAFoEp4EIOzGss+Ud+n2CggTWw6RtC7axFHJf0Ei/aUKH4/njKBEDPLHiwi/0Mxcdhwh0P7BGWryeW44ktI2qZUeJYRfFuEGKugU4Dx1/tlOJdcwBtqD6OQ8YcuAHKNaY1F6WgBVrLO/v2/McTvRgrpKpY5XsAAAAASUVORK5CYII=);display:inline-block;height:10px;margin-left:3px;width:10px}.videoAdUiTitle{color:#fff;cursor:pointer;display:inline-block;font:normal 13px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:50%}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttribution{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;padding:5px;padding-right:10px;position:absolute}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiPreSkipContainer{bottom:22px;cursor:default;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiPreSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiSkipContainer{-webkit-tap-highlight-color:rgba(0,0,0,0);bottom:22px;cursor:pointer;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{width:100%;padding-right:0;line-height:21px}.videoAdUiPreSkipThumbnail{cursor:pointer;display:inline-block;vertical-align:middle}.videoAdUiPreSkipThumbnailImage{display:block;max-width:78px;max-height:42px;width:auto;height:auto}.videoAdUiSkipButton{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0.8);border:1px solid rgba(255,255,255,0.5);border-right:0;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center}.videoAdUi-mobile .videoAdUiSkipButton{font:normal 16px arial,helvetica,sans-serif;min-width:100px;padding:6px 7px}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUi-swipeable .videoAdUiSkipButton{background:rgba(255,255,255,0.8);border:1px solid rgba(0,0,0,0.8);color:#000}.videoAdUiSkipIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiAttribution{font-size:13px}.videoAdUiAttribution-gvn{font-size:16px!important}.videoAdUiPreSkipButton{min-width:200px}.videoAdUiPreSkipText{font-size:13px;width:105px;padding-right:6px}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{font-size:13px}.videoAdUiPreSkipThumbnailImage{max-width:98px;max-height:52px}.videoAdUiShare{font-size:15px}.videoAdUiSkipButton{font-size:23px;min-width:200px}}");
E.appendChild(A)}var $=1E3*wU(Z(this));this.A=new GY(y,E,$);var Ma=y.P;null!=Ma&&(Z(this).T=Ma,y.M&&lZ(this,Ma));this.A.show()}Tk(u(WY.prototype.Qw,this,Z(this),a.g,a.b))}catch(Yc){mZ(this,Yc),this.Gg(),null!=this.o?(mP(lP,this,gP,Yc,void 0),this.start()):(this.L?mP(lP,this,gP,Yc,void 0):(null!=this.D&&eR(this.D,bR()),nP(this,gP,Yc)),this.stop())}};f.setVolume=function(a){hY(this);this.L?this.b.setVolume(a):this.O=a};
f.setMediaUrl=function(a){hY(this);var b;if(b=null!=this.o)b=null!=Z(this).j;b&&(b=Z(this),(sO(b.j.location)||pP.b)&&null!=b.getSelectedCreative()&&b.getSelectedCreative()instanceof OT&&b.getSelectedCreative().setMediaUrl(a))};f.pause=function(){hY(this);this.b.pause()};f.resume=function(){hY(this);this.b.play()};f.getRemainingTime=function(){hY(this);var a=this.b.rd(),b=this.b.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.bA=function(){bZ(this,gP,lP(gP,this.b.ms()))};
f.cA=function(){bZ(this,WO,lP(WO,null,(this.g.loadVideoTimeout/1E3).toString()))};function bZ(a,b,c){mZ(a,c);a.Gg();null!=a.o?(mP(lP,a,b,c,void 0),a.start()):(nP(a,b,c),a.stop())}function mZ(a,b){var c=lP(gP,b),c=hX(c,Z(a),a.b),d=gU(Z(a));AO(d,c)}
function $Y(a,b){NY(a.F,nX(b,a.b));var c=b.getSelectedCreative();if(null!=c&&c instanceof OT){nZ(a,c.g);z(hO,function(a){var b=MT(c,a);gS(this.F.b,b);oZ(this,a)},a);var d=fY(a);al(d,a.C,"error",a.bA,a);al(d,a.C,"mediaLoadTimeout",a.cA,a)}pZ(a,b);cU(b)&&(a.C.B=30)}function nZ(a,b){z(b.Ma(),function(a){var d=b.get(a);z(d,function(b){hS(this.F.b,a,b);oZ(this,a)},this)},a)}function qZ(a){if(pP.g){var b=vU(Z(a));null!=b&&wO(b)}a.ma("click")}
function pZ(a,b){b.B.forEach(function(a){z(hO,function(b){var e=iS(a.b,b);D(e)||rZ(this,b,e)},this)},a)}function rZ(a,b,c){z(c,function(a){hS(this.F.b,a.g,a.b)},a);oZ(a,b)}function ZY(a,b){z(hU(b),function(a){qb(this.F.g,a)},a);oZ(a,"impression")}function oZ(a,b){Vb(jO,b)&&al(fY(a),a.C,b,a.be,a)}
f.be=function(a){switch(a.type){case "start":this.ma("start");break;case "impression":this.ma("impression");break;case "pause":this.ma("pause");break;case "resume":this.ma("resume");break;case "firstquartile":this.ma("firstquartile");break;case "midpoint":this.ma("midpoint");break;case "thirdquartile":this.ma("thirdquartile");break;case "complete":this.ma("complete");YY(this);break;case "click":null!=this.M&&this.M.o?this.b.eh()?this.resume():this.pause():qZ(this);break;case "engagedview":this.ma("engagedview");
var b=Z(this);a=b.T;if(dU(b)&&!pP.b&&!this.k.ej()&&a){var b=this.b.getCurrentTime(),c=this.b.rd(),d=new J("//s.youtube.com/s");K(d,"ns","yt");K(d,"el","adunit");K(d,"docid",a);K(d,"eurl",document.URL);K(d,"len",c.toFixed(2));K(d,"tv","1");K(d,"ps","trueview-instream");K(d,"st",b.toFixed(2));K(d,"et",b.toFixed(2));K(d,"rt",b.toFixed(2));yO(d.toString())}break;case "videoAuthorIconClicked":sZ(this);break;case "videoAuthorClicked":sZ(this);break;case "videoLearnMoreClicked":this.b.pause();qZ(this);break;
case "videoShareClicked":a=Z(this).M;null!=a&&(a=a.videoId,b=this.g.baseYouTubeUrl,x(a)?a=null:(b=new J((null!=b?b:"//www.youtube.com/")+"share_popup"),c=b.b,c.set("v",a),je(b,c),a=b.toString()),null===a||window.open(a,"_blank","width="+(550).toString()+",height="+(500).toString()),a=tZ(this),null!=a&&xO(a,"sharebuttonclicked"));break;case "videoShareShown":a=tZ(this);null!=a&&xO(a,"sharebuttondisplayed");break;case "videoTitleClicked":a=Z(this);b=a.M;null!=b&&(a=dQ(b.videoId,null!=sU(a),this.g.baseYouTubeUrl),
null!==a&&(this.b.pause(),wO(a)));break;case "skipshown":this.ma("skippableStateChanged");break;case "skip":kZ(this)}};function tZ(a){var b;b=Z(a).getExtension("AdSense");if(!(b=null!=b?new J(b.g):null))t:{a=Z(a).getSelectedCreative();if(null!=a&&(a=MT(a,"start"),!D(a))){b=new J(a[0].b);break t}b=null}return b}function kZ(a){Tk(function(){this.ma("skip");YY(this)},0,a)}f.getSelectedCreative=function(){var a=Z(this);return sO(a.j.location)?Z(this).getSelectedCreative():null};
f.getMediaUrl=function(){if(null==this.o)return null;var a=Z(this);if(!fZ(a))throw lP(aP);a=a.getSelectedCreative().D;return D(a)?null:a[0].g};f.Nw=function(){var a=this.b.rd(),b=this.b.getCurrentTime();if(null!=this.A&&0<=a&&0<=b){if(!this.P){var c=this.b.rd(),d=wU(Z(this)),c=Math.abs(c-d);2<c&&(c=lP($O,null,Number(c).toFixed(2)),c=hX(c,Z(this),this.b),d=gU(Z(this)),AO(d,c));this.P=!0}this.A.update(b,a)}};f.uw=function(){var a=this.b.ae();a!=this.O&&(this.O=a,this.ma("volumeChange"),0==a&&this.ma("mute"))};
function lZ(a,b){null!=a.A&&pY(b,function(a){a=new vY(a);zU(Z(this))==a.videoId&&(uZ(this,a),!x(a.g)&&a.b&&rY(a.g,function(a){a=new tY(a);if(null!=this.A){var b=this.A,c=a.j;b.b.N=!x(c);b.b.T=c;if(null!=b.C){var c="",h=sa("by {$userDisplayName}",{userDisplayName:""+b.b.T});od(b.C,(new UU(c+h,void 0)).content)}HY(b);b=this.A;c=a.g;b.b.L=!x(c);null!=b.B&&(h=ad("img"),h.setAttribute("src",c),mV(h,"videoAdUiAuthorIconImage"),b.B.appendChild(h),null!=b.o&&mV(b.o,"videoAdUiTitleWithAuthorIcon"));HY(b)}Z(this).I=
a;this.ma("youTubeChannelMetadata");a=Z(this);b=a.M;if(pP.b&&D(lR(a))&&null!=a.I&&null!=b&&b.b){a=Z(this);fY(this).listen(window,"message",this.Gv);var b=Z(this),c=b.I.b,h=bU(b),k=this.g.baseYouTubeUrl,k=new J((null!=k?k:"//www.youtube.com/")+"ad_companion"),l=k.b;l.set("adformat",h);l.set("p",c);l.set("render","video_wall_companion");c=new rV("1",new G(300,250),"IFrame",null,k.toString());c.vg(b);c.C=!0;a.o=[new BU(c,[],null)];gY(this,a)}},this))},a)}
f.Gv=function(a){var b=a.b;if("companion-setup-complete"==b.data){a=Z(this);var c=encodeURIComponent(ya(vU(a)))+","+encodeURIComponent(tZ(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=vU(a)?210:185}else"pause-video"==b.data&&this.pause()};
function uZ(a,b){if(null!=a.A&&b.b){var c=a.A,d=b.title;c.b.A=!x(d);c.b.title=d;lx.test(kx(c.b.title,void 0));null!=c.o&&od(c.o,c.b.title);HY(c);c=a.A;if(null!=c.D){var c=c.D,d="",e=sa("Share");od(c,d+e)}}Z(a).M=b;a.ma("youTubeVideoMetadata")}function sZ(a){var b;b=Z(a).I;if(null!=b){b=b.b;var c=a.g.baseYouTubeUrl;b=x(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/UC"+b;null!==b&&(a.b.pause(),wO(b))}};function vZ(a){this.b=a}f=vZ.prototype;f.Hl=function(){return this.b.Hl()};f.Il=function(){return this.b.Il()};f.Rf=function(){return this.b.Rf()};f.sj=function(a){return this.b.sj(a)};f.ln=function(){return this.b.ln()};f.ej=function(){return this.b.ej()};f.hide=ca;f.fi=ca;f.li=ca;function wZ(a,b,c,d,e,g,h){T.call(this);this.k=this.A=0;this.B=a;this.D=b;this.aa=c;this.o=null;this.N=d;this.ca=g;this.L=pP.j;this.b=null;this.T="normal";this.M=null;this.F=e;this.j=[];this.U=this.P=this.I=!1;this.O=h;xZ(this)}w(wZ,T);f=wZ.prototype;f.init=function(a,b,c){yZ(this,c);null==this.C&&(this.C=new Yk(this),al(this.C,this.N,"adsLoaderSdkAdLoaded",this.kD,this),al(this.C,this.N,"adsLoaderSdkAdError",this.jD,this));zZ(this)};
f.start=function(){this.I=!0;AZ(this);0<this.j.length?BZ(this):("always"==pP.j&&null!=this.O&&eR(this.O,bR()),mP(jP,this,KO,void 0,void 0),0==this.D&&this.S("contentResumeRequested"),CZ(this))};f.destroy=function(){null!=this.C&&(this.C.dispose(),this.C=null);this.F.hide();DZ(this);pP.j=this.L;this.I=!1};f.getCurrentAd=function(){return this.k<this.j.length?this.j[this.k].b[0]:null};f.pause=function(){null!=this.b&&this.b.pause()};f.resume=function(){null!=this.b&&this.b.resume()};
f.skip=function(){null!=this.b&&this.b.skip()};f.getRemainingTime=function(){return null!=this.b?this.b.getRemainingTime():-1};f.setVolume=function(a){null!=a&&(this.M=a,null!=this.b&&this.b.setVolume(this.M))};function yZ(a,b){null!=b&&(a.T=b);null!=a.b&&(a.b.Cj(b),a.b.Eh())}function xZ(a){z(a.B,function(a){a=new J(a.j.adTagUrl);var c=Ae(a,"max_ad_duration");n(c)||Ae(a,"pmxd")})}
f.kD=function(a){pP.j=this.L;var b=a.o;D(b)||(a=a.k,a.b&&z(b,function(a){a.aa=!1},this),qb(this.j,new QR(b,a.b,a.g)));this.A++;zZ(this)};f.jD=function(a){a=a.j;pP.j=this.L;a.getMessage();mP(jP,this,KO,void 0,void 0);this.A++;zZ(this)};function zZ(a){a.A<a.B.length&&null!=a.B[a.A]&&!(2<=a.j.length-a.k)?EZ(a):a.P||(a.S("adBreakInitialized"),a.P=!0)}function EZ(a){var b=a.B[a.A];pP.j="on_master_ad";QX(a.N,b.j,b)}
function AZ(a){null==a.D||jb(a.j,function(a){return!a.g})||(a.j=hb(a.j,function(a){return!(a.g&&!a.j)}))}
function BZ(a){if(a.k<a.j.length){var b=a.j[a.k];DZ(a);try{var c=b.b,b=null;if(aU(c[0]))b=new WY(c);else{var d=c[0];if(null!=d&&qU(d,"nonlinear"))b=new jY(c);else throw Error("No valid creative type found.");}b.D=a.O;b.Zc(new vZ(a.F),{currentTime:0},a.ca);a.b=b;if(null==a.b)throw Error("The current ads manager is not defined");null!=a.g&&(a.g.dispose(),a.g=null);a.g=new Yk(a);var e=a.b;al(a.g,e,"adError",a.hv,a);al(a.g,e,"click start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),
a.iv,a);a.g.listen(e,["allAdsCompleted"],ca);al(a.g,e,"contentPauseRequested",a.ev,a);al(a.g,e,"contentResumeRequested",a.fv,a);if(FZ(a.b)){var g;g=a.b.getSelectedCreative().ea;g=0<g?g:15;null!=a.o&&a.o.dispose();a.o=new Rk(1E3*g);dl(a.g,a.o,"tick",a.jv,a)}a.b.init(a.T);null!=a.M&&a.b.setVolume(a.M);if(FZ(a.b))a.S("contentResumeRequested"),a.F.li(),a.b.start(),null!=a.o&&a.o.start();else{var h=a.b;if(null!=h&&h instanceof WY)a.F.fi(),a.b.start();else throw Error("Unknown ads manager type.");}}catch(k){a.k++,
BZ(a)}a.A<a.B.length&&null!=a.B[a.A]&&EZ(a)}else a.S("contentResumeRequested"),CZ(a)}function DZ(a){null!=a.o&&(a.o.dispose(),a.o=null);null!=a.g&&(a.g.dispose(),a.g=null);null!=a.b&&(a.b.destroy(),a.b=null)}f.jv=function(){DZ(this);CZ(this)};f.hv=function(){this.k++;BZ(this)};f.fv=function(){this.k++;BZ(this)};f.ev=function(){this.U||(this.S("contentPauseRequested"),this.U=!0)};function FZ(a){return null!=a&&a instanceof jY}function CZ(a){a.I=!1;a.S("allAdsCompleted")}
f.iv=function(a){GZ(this,a.type,a.getAd());this.S(a)};function GZ(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0;z(a.j,function(a,b){var h=a.b;fb(h,c);b<this.k&&(d+=h.length)},a);b=c.D;b.b=d+b.g;b.j=a.aa;b.k=a.D}};function HZ(a){S.call(this,a);this.j=null}w(HZ,S);function IZ(a,b,c){T.call(this);this.g=a;this.b=[];this.A=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.C=null!=c&&ia(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.j=null;this.k=!1;JZ(this,b)}w(IZ,T);function KZ(a){this.b=a;this.j=this.g=!1}function LZ(a){null!=a.j&&(a.j.dispose(),a.j=null);a.g.stop();a.k=!1}function MZ(a){if(a.k){var b=lb(a.b,function(a){return-1==a.b},a);null!=b&&NZ(a,!0,b)}}
function JZ(a,b){z(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Hb(this.b,new KZ(a),function(a,b){return Bb(a.b,b.b)})},a)}IZ.prototype.o=function(){if(this.k){var a=this.g.currentTime;if(isNaN(a)||0>a)OZ(this);else{var b=PZ(this,a);this.A?z(b,function(a){NZ(this,!0,a)},this):NZ(this,!0,db(b));NZ(this,!1,QZ(this,a))}}};function PZ(a,b){for(var c=[],d=0;d<a.b.length;d++){var e=a.b[d];-1!=e.b&&e.b<=b&&qb(c,e)}return c}
function QZ(a,b){for(var c=0;c<a.b.length;c++){var d=a.b[c];if(-1!=d.b&&b>=d.b-a.C&&b<d.b&&!a.b[c].g)return d}return null}IZ.prototype.B=function(){OZ(this)};function OZ(a){a.S(new HZ("contentTrackingError"))}function NZ(a,b,c){if(null!=c){if(!c.g){var d=new HZ("requestAds");d.j=c.b;a.S(d);c.g=!0}b&&!c.j&&(b=new HZ("playAds"),b.j=c.b,a.S(b),c.j=!0)}};function RX(a,b){eY.call(this,[]);this.P=a;this.F=new Fd;this.A=this.b=null;this.U=new vm;this.C=null;this.L=b;this.T=this.O=!1;this.M=null;this.aa=this.ca=-1}w(RX,eY);f=RX.prototype;
f.Zc=function(a,b,c){null!=this.A&&(LZ(this.A),this.A.dispose(),this.A=null);RX.G.Zc.call(this,a,b,c);c=this.P.b.Ma();b=new DQ(b);this.A=new IZ(b,c,{prefetch:4});z(c,function(b,c){if(isNaN(b))throw jP(EO,null,"timeOffset",b+"");var g=ia(b)&&!isNaN(b)?this.P.b.get(b,[]):[];if(!D(g)){g=new wZ(g,b,0==b||-1==b?b:c,this.L,a,this.g,this.D);if(Hd(this.F,b))throw jP(PO,null,"Multiple ad breaks cannot share same ad play time.");this.F.set(b,g)}},this);this.M=db(c);jb(c,function(a){if(-1==a)return this.M=a,
!0;this.M=this.M<a?a:this.M;return!1},this)};
f.init=function(a){RX.G.init.call(this,a);null!=this.A&&(RZ(this),this.j=new Yk(this),al(this.j,this.A,"requestAds",this,this),al(this.j,this.A,"playAds",this,this),al(this.j,this.A,"contentTrackingError",this,this),al(this.j,this.A,"adBreakReady",this.uv,this),al(this.j,this.L,"contentComplete",this.vv,this),this.L.Ae=!1,a=this.A,a.k||(null==a.j&&(a.j=new Yk(a)),a.j.listen(a.g,"currentTimeUpdate",a.o,!1),a.j.listen(a.g,"contentWrapperError",a.B,!1)),a.g.start(),a.k=!0,this.A.o(),a=ia(0)&&!isNaN(0)?
this.P.b.get(0,[]):[],D(a)&&this.ma("contentResumeRequested"))};f.Rj=function(){this.$s();this.S(new oY(null))};f.destroy=function(){this.dispose()};f.J=function(){this.L.Ae=!0;if(0<this.F.Na()){var a=this.F.Qa();z(a,this.ym,this);this.F.clear()}RZ(this);SZ(this);null!=this.k&&(this.k.hide(),this.k=null);RX.G.J.call(this)};f.start=function(){RX.G.start.call(this)};f.stop=function(){null!=this.b&&this.b.destroy()};f.pause=function(){null!=this.b&&this.b.pause()};f.resume=function(){null!=this.b&&this.b.resume()};
f.skip=function(){null!=this.b&&this.b.skip()};f.setVolume=function(a){RX.G.setVolume.call(this,a);null!=this.b&&this.b.setVolume(a)};f.Eh=function(){RX.G.Eh.call(this);var a=Sc(window);this.ca=a.width;this.aa=a.height;null!=this.b&&yZ(this.b,this.I)};f.getRemainingTime=function(){return null!=this.b?this.b.getRemainingTime():-1};f.$s=function(){return this.P.b.Ma()};f.getCurrentAd=function(){return null!=this.b?this.b.getCurrentAd():null};f.xs=function(){};
f.handleEvent=function(a){"contentTrackingError"!=a.type&&(xm(this.U,a),TZ(this))};function RZ(a){null!=a.j&&(a.j.dispose(),a.j=null);a.O=!1;null!=a.A&&LZ(a.A)}
function TZ(a){if(null==a.C){var b=ym(a.U);if(null!=b){a.C=b;var c=a.F.get(a.C.j);null!=c?"requestAds"==b.type?(null==a.j&&(a.j=new Yk(a)),al(a.j,c,"click start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),a.S,a),al(a.j,c,"allAdsCompleted",a.or,a),al(a.j,c,"contentPauseRequested",a.mr,a),al(a.j,c,"contentResumeRequested",a.nr,a),al(a.j,c,"adBreakInitialized",a.pr,a),c.init(a.ca,a.aa,a.I)):"playAds"==b.type?(null!=a.b&&a.b.I&&a.ym(a.b),a.b=c,a.b.setVolume(a.volume),
yZ(a.b,a.I),a.b.start()):(a.C=null,TZ(a)):(a.C=null,TZ(a))}}}f.ym=function(a){a.destroy();this.F.remove(a.D);this.b=null;null!=this.j&&(this.j.Fa(a,"click start pause firstquartile midpoint thirdquartile complete loaded adMetadata".split(" "),this.S,!1,this),this.j.Fa(a,"allAdsCompleted",this.or,!1,this),this.j.Fa(a,"contentPauseRequested",this.mr,!1,this),this.j.Fa(a,"contentResumeRequested",this.nr,!1,this),this.j.Fa(a,"adBreakInitialized",this.pr,!1,this))};
f.vv=function(){this.O=!0;-1==this.M||UZ(this);MZ(this.A)};f.uv=function(a){a=a.j;-1==a?Tk(function(){UZ(this)},500,this):0==a&&Tk(function(){this.ma("contentResumeRequested")},100,this);this.S(new iO("adBreakReady",null,{ZE:a}))};f.or=function(a){this.ym(a.target);(0==this.F.Qa().length||this.O)&&UZ(this);this.C=null;TZ(this)};function UZ(a){a.T||(a.T=!0,a.L.Ae=!0,a.ma("allAdsCompleted"),-1==a.M&&SZ(a))}function SZ(a){IQ.clear();null!=a.D&&(a=a.D.ti(),null!=a&&a.F(IQ.b))}
f.mr=function(){var a=this.A;a.g.stop();a.k=!1;this.ma("contentPauseRequested")};f.nr=function(){this.ma("contentResumeRequested");if(!this.O){var a=this.A;a.g.start();a.k=!0}this.C=null};f.pr=function(){this.C=null;TZ(this)};f.ma=function(a){var b=null;null!=this.b&&(b=this.b.getCurrentAd());this.S(new iO(a,b))};function VZ(a){eY.call(this,a);this.U=this.T=this.L=!1;this.M=[];this.P=Za();this.A=null;this.b=new MY;this.C=!0;this.O=-1;this.F=1}w(VZ,eY);f=VZ.prototype;
f.init=function(a){VZ.G.init.call(this,a);a=xU(Z(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="en".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.g.contentId&&(a=ee(a,"v",this.g.contentId))}a=ya(a)}else{var b=new J(a),c=new J("http://tpc.googlesyndication.com/pagead/js/loader5.html");"https"==b.Fb&&fe(c,"https");a=je(c,a||"",void 0).toString()}this.fb=I("iframe",{src:vO(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"});
fY(this).listen(window,"message",this.xC);fY(this).listen(this.fb,"load",this.vC);fY(this).listen(this.fb,"error",this.wC);this.k.Rf().appendChild(this.fb)};f.Zc=function(a,b,c){VZ.G.Zc.call(this,a,b,c);this.C=Z(this).getSelectedCreative()instanceof OT;this.A=a.sj(!1);fY(this).listen(this.A,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.bD)};f.stop=function(){this.k.hide();VZ.G.stop.call(this)};
function WZ(a,b){NY(a.b,nX(b,a.A));var c=b.getSelectedCreative();null!=c&&(c instanceof OT&&XZ(a,c.g),z(hO,function(a){a=MT(c,a);gS(this.b.b,a)},a),z(hU(b),function(a){qb(this.b.g,a)},a))}function XZ(a,b){z(b.Ma(),function(a){var d=b.get(a);z(d,function(b){hS(this.b.b,a,b)},this)},a)}f.start=function(){VZ.G.start.call(this);WZ(this,Z(this));this.A.Gi();this.k.li();this.fb.style.opacity=1;this.U=!0;this.C&&this.ma("contentPauseRequested");YZ(this)};f.pause=function(){ZZ(this,"pauseAd")};
f.resume=function(){ZZ(this,"resumeAd")};f.setVolume=function(a){VZ.G.setVolume.call(this,a);ZZ(this,"setAdVolume",{value:a})};f.J=function(){var a=this.k.Rf();null!=a&&ed(a);this.C&&this.ma("contentResumeRequested");this.ma("allAdsCompleted");this.L=!1;this.M=[];VZ.G.J.call(this)};f.Rj=function(){};
f.vC=function(){var a=this.A.ys();D(a)&&(a=this.g.nh);$Z(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=iU(Z(this)),b={desiredBitrate:this.g.Vf,creativeData:a,viewMode:this.I};xU(Z(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.g.En&&(b.creativeData=this.g.En);$Z(this,"initAd",b);z(this.M,function(a){$Z(this,a.type,a.params)},this);this.L=!0;this.M=[]};
function ZZ(a,b,c){a.L?$Z(a,b,c):a.M.push({type:b,params:c})}function $Z(a,b,c){null!=a.fb?(null!=c||(c={}),c.session=a.P,c.type=b,a.fb.contentWindow.postMessage(uf(c),"*")):(a_(a,iP,null),a.stop())}
f.xC=function(a){a=a.b;if(a.source==this.fb.contentWindow&&(a=sf(a.data),a.session==this.P&&r(a.type)))switch(a.type){case "videoCall":switch(a.func){case "play":this.k.fi();this.A.Cg(a.src,a.mimetype);this.A.play();break;case "pause":this.A.pause()}break;case "getAdRemainingTime":a=a.remainingTime;this.C||(Uk(this.O),ia(a)&&-1!=a||(a=30),this.O=Tk(this.Jy,1E3*a,this));break;case "AdClickThru":OY(this.b,new S("click"));a.url&&yO(a.url);n(a.Ky)&&!1==a.Ky&&pP.g&&(a=vU(Z(this)),null!=a&&wO(a));this.ma("click");
break;case "AdError":a_(this,iP,null);this.stop();break;case "AdExpandedChange":this.ma("expandedChanged");break;case "AdImpression":this.ma("impression");break;case "AdLinearChange":a=a.isLinear;!this.C&&a?(this.ma("contentPauseRequested"),Uk(this.O)):!a&&this.C&&(this.ma("contentResumeRequested"),this.C=a,ZZ(this,"getAdRemainingTime"));this.C=a;break;case "AdLoaded":this.T=!0;YZ(this);b_(this,"loaded");break;case "AdPaused":b_(this,"pause");break;case "AdPlaying":b_(this,"resume");break;case "AdRemainingTimeChange":this.C||
ZZ(this,"getAdRemainingTime");break;case "AdSkipped":b_(this,"skip");break;case "AdStarted":OY(this.b,new S("impression"));OY(this.b,new S("creativeview"));this.ma("start");break;case "AdStopped":OY(this.b,new S("stop"));this.stop();break;case "AdUserAcceptInvitation":this.C?OY(this.b,new S("acceptinvitationlinear")):OY(this.b,new S("acceptinvitation"));break;case "AdUserMinimize":OY(this.b,new S("collapse"));break;case "AdUserClose":b_(this,"userClose");break;case "AdVideoComplete":b_(this,"complete");
break;case "AdVideoFirstQuartile":b_(this,"firstquartile");break;case "AdVideoMidpoint":b_(this,"midpoint");break;case "AdVideoStart":OY(this.b,new S("start"));break;case "AdVideoThirdQuartile":b_(this,"thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.F&&this.ma("volumeChange");0==a&&0!=this.F?(OY(this.b,new S("mute")),this.ma("mute")):0==this.F&&0!=a&&OY(this.b,new S("unmute"));this.F=a;this.A.setVolume(a);break;case "Ping":yO(a.url)}};f.wC=function(a){a_(this,QO,a);this.stop()};
function a_(a,b,c){var d=lP(b,c),d=hX(d,Z(a)),e=gU(Z(a));AO(e,d);nP(a,b,c)}function b_(a,b){OY(a.b,new S(b));a.ma(b)}f.bD=function(a){switch(a.type){case "timeUpdate":a=this.A.rd();var b=this.A.getCurrentTime();$Z(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":c_(this,"ended");break;case "mediaLoadTimeout":c_(this,"stalled");break;default:c_(this,a.type)}};function c_(a,b){$Z(a,"wrapperCall",{messageType:b})}
function YZ(a){a.T&&a.U&&(ZZ(a,"startAd"),a.C||ZZ(a,"getAdRemainingTime"))}f.Jy=function(){ZZ(this,"stopAd")};function d_(){}function TX(a){if(!D(a)){var b=a[0],c=yU(b,["402"])&&pP.b;switch(null!=xU(b)&&c?"vpaid":rU(b)&&qU(b,"nonlinear")?"overlay":qU(b,"linear")?"video":qU(b,"nonlinear")?"overlay":null){case "overlay":return rU(b)?new nY(a):new jY(a);case "video":return new WY(a);case "vpaid":return new VZ(a)}}return null};function e_(){try{return window.top.location.href}catch(a){return window.location.href}};function f_(a){T.call(this);this.g=a;a=new dR(new OQ);this.b=new MX(new d_,a,IQ);this.b.listen("adsManagerLoaded",this.S,!1,this);this.b.listen("adError",this.S,!1,this);this.b.listen("adLoadError",this.S,!1,this)}w(f_,T);f_.prototype.J=function(){null!=this.b&&(this.b.Fa("adsManagerLoaded",this.S),this.b.Fa("adError",this.S),this.b.Fa("adLoadError",this.S),this.b=null);f_.G.J.call(this)};var g_={gJ:0,KE:-1,IH:-2};function h_(a){this.b=a}f=h_.prototype;f.Hl=function(){return null};f.Il=function(){return this.b.C};f.Rf=function(){return this.b.C};f.sj=function(){var a=this.b.j;return null!=a?a:new eQ};f.fi=function(){var a=this.b;null!=a.b&&a.b.show()};f.li=function(){};f.ln=function(){return this.b.k};f.ej=function(){return this.b.A};f.hide=function(){};function SX(a,b){S.call(this,"adsManagerLoaded");this.j=a;this.k=b}w(SX,S);function i_(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function j_(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null;c?b.error_code=c:(c=("getMessage"in a&&ja(a.getMessage)?a.getMessage():a.message)||"",50<c.length&&(c=c.substring(0,47)+"..."),b.error_message=c)}}function k_(a,b){if(a){var c=kU(a);if(c){var d=lU(a)||[];b.ad_id=ub(d,c).join(",");if(c=fU(a))d=nU(a)||[],b.ad_sys=ub(d,c).join(",");cU(a)&&(b.skip=1)}}}
function l_(a,b){if(a[b])return i_(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return i_(a[d]);return!1}function m_(a){var b="";a&2&&a&1?b="video":a&2?b="skippablevideo":a&1&&(b="standardvideo");a&4&&(b&&(b+="_"),b+="text_image_flash");return b};function n_(a,b,c,d){this.k=a;this.o=b;this.b=c;this.A=d}n_.prototype.j="";n_.prototype.g="";function o_(a){p_(a.b,9,q_(a))}function q_(a){var b={};b.l_ns=a.o;b.l_state=a.A;b.sst=a.k;b.sidx=0;a.j&&(b.at=a.j);a.g&&(b.ad_id=a.g);return b};var r_=!1;function s_(){window.google_ad_output="html";window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div"}function t_(){var a=q("window.google_show_companion_ad");ja(a)?a():r_=!0}function u_(){var a=q("yt.www.watch.ads.setCompanion");a&&a()}function v_(a){var b=q("yt.www.watch.ads.showForcedMpu");b&&b(a)}Xh("showCompanionAdLoaded",function(){r_&&(t_(),r_=!1)});function w_(a,b,c,d){ej.call(this);this.b=a;this.type=b+"_"+c;this.g=d;this.j=null}w(w_,ej);w_.prototype.A=function(){return this.type};w_.prototype.getCurrentAd=function(){return this.g?this.g.getCurrentAd():null};function x_(a,b,c){this.isSkippable=b;this.skip=c;this.skipTime=5;this.videoId=a};function y_(a){this.b=a}function z_(a){switch(parseInt(a.toString(),10)){case 12:return 2;case 13:case 53:return 3;case 14:return 4;case 15:return 5;case 22:case 52:case 61:return 7;case 30:return 8;case 32:case 33:return 9;case 51:case 55:case 60:case 90:return 10;case 54:return 1;case 56:return 11;case 57:return 12;case 58:return 13}return 0}
function A_(a){switch(parseInt(a.toString(),10)){case 2:return 1;case 3:case 4:return 2;case 5:return 3;case 6:return 4;case 7:return 5;case 15:case 100:return 6;case 14:return 7;case 777:return 8;default:return 0}};function B_(a,b){this.b=a;this.k=b}B_.prototype.o=null;B_.prototype.g=NaN;function C_(a,b,c){a.b.H("AD_LOGGING_EVENT",b,c)}function D_(a){E_(a);var b=F_(a);if(a.j){var c=G_(a.k),d=a.j.y-c.top,d=Math.round(a.j.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}C_(a,15,b)}function H_(a){E_(a);var b=F_(a);if(isNaN(a.g))E_(a);else{var c=v()-a.g;b.ad_stl=c}C_(a,4,b)}function I_(a){E_(a);var b=F_(a),c=a.b.Cn();c?b.ad_fmt=c:E_(a);C_(a,5,b)}
function J_(a){var b=F_(a),c=a.b.Cn();c?b.ad_fmt=c:E_(a);C_(a,14,b)}function F_(a){var b={},c=a.b.j,d=a.b.Wi(),e=a.b.hr();k_(a.b.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);c&&c.videoId?b.ad_v=c.videoId:e&&(c=Ci(e),b.ad_dom=c,a.k.ka.A&&(b.ad_v_url=e.substr(0,512)));b.at=a.b.A();return b}function E_(a){a.o||(a.o="InstreamAdDisplay ("+a.b.A()+")")};function K_(a,b,c,d,e){w_.call(this,b,a,2,c);this.b.subscribe("onVolumeChange",this.Kp,this);this.b.subscribe("control_toggle_play_pause",this.Lp,this);this.b.subscribe("control_play",this.Ol,this);this.b.subscribe("control_pause",this.Nl,this);this.F=d;this.o=new B_(this,this.b);this.k=new ew(this);this.D=this.B=!1;this.C=0;this.I=e}w(K_,w_);K_.b=2E3;f=K_.prototype;f.Kb=null;f.eg=!1;f.jh=null;f.ih=null;f.lh=null;
f.show=function(){this.o.g=v();var a;if(a=this.F){var b=Bi(a),b=b.v||b.video_id;if(!b){var c=Ud(a).match(/^\/watch\/([^\/]*)$/i);c&&(b=c[1])}b||(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),null!=a&&1<a.length&&(b=a[1]));a=b?new Tr({video_id:b,dash:"0"}):null}else a=null;this.j=a;var d,e;this.j?(this.j.se=!0,d={video_id:this.j.videoId},e=new x_(this.j.videoId,this.I,u(this.tw,this)),this.j.subscribe("onStatusFail",this.Bp,this),this.j.subscribe("dataloaded",this.Cp,this),a=this.b.R(),a=new jL(a.j),a.ba=
"adunit",a.xc=!0,a.k=this.type,a=mL(a,this.j),ks(this.j,a)):L_(this);this.B||(M_(this.b,-1,d,e),this.qp())};f.tw=function(){this.b.k.j.S("skip")};function N_(a){a.j&&(a.j.ha("onStatusFail",a.Bp,a),a.j.ha("dataloaded",a.Cp,a))}f.Cp=function(){N_(this);ds(this.j);var a=new JM(this.b.R());(a=Rr(this.j.F,LM(a,this.j)))?(a=a.b)?(a=new J(zr(a)),a.b.set("autoplay","1"),this.g.setMediaUrl(a.toString()),L_(this)):O_(this,Error("Failed to determine ad media resource.")):O_(this,Error("Failed to determine ad media format."))};
function L_(a){if(oh||2.2<=fq&&3>fq){var b=v()-a.o.g,b=K_.b-b;a.C=L(u(a.Yq,a),Math.max(0,b));N(Ct(a.b.b),"ad-interstitial-showing")}else a.Yq()}
f.Yq=function(){P_(this);this.Kb=Q_(this.b,!0);this.lh=Ct(this.b.b);if(this.b.ka.M)gd(H("video-ad-status-bar"));else{var a=Ct(this.b.b);this.jh=H("video-ad-time-left",a);var a=H("html5-ad-progress-list",a),b=ad("div");N(b,"ytp-ad-progress");a.appendChild(b);this.ih=b;this.k.listen(this.Kb,"timeupdate",this.Lz)}tg(this.lh,["ad-showing","ad-interrupting"]);this.k.listen(LH(this.b.g),"mouseup",this.Jz);this.k.listen(this.Kb,"waiting",this.qp);this.b.subscribe("onResize",this.um,this);try{this.k.listen(this.g,
"adError",this.Iz);this.k.listen(this.g,"click",this.Hz);this.k.listen(this.g,"complete",this.xm);this.k.listen(this.g,"pause",this.Qq);this.k.listen(this.g,"start",this.Rq);this.k.listen(this.g,"skip",this.Kz);this.um();var c=this.b,d=c.g,e=R_(c);d.X.R().Qb&&($f(d.b,e),Pf(d.b,0,0));this.g.start()}catch(g){O_(this,g)}};f.Rq=function(){this.eg=!0;this.B=!1;this.D||(this.D=!0,H_(this.o),S_(this.b,1));Eu(this.b,!0);M_(this.b,1);this.H("adPlay",this)};
f.Qq=function(){this.eg=!1;Eu(this.b,!1);M_(this.b,2)};f.Kz=function(){J_(this.o);this.xm()};f.xm=function(){this.B||(I_(this.o),this.eg=!1,this.B=!0,M_(this.b,0),S_(this.b,0),this.H("adEnd",this))};f.Iz=function(a){O_(this,a.j)};function O_(a,b){a.eg=!1;a.B=!0;M_(a.b,0);a.H("adError",b)}f.Bp=function(){N_(this);O_(this,Error("Request to get video data failed."))};f.Hz=function(){D_(this.o);this.H("select")};f.Jz=function(a){a=new F(Ng(a),Og(a));this.o.j=a};
f.Lz=function(a){var b=Qv(this.g.getRemainingTime());this.jh.innerHTML=b;b=this.Wi()?this.Kb.getCurrentTime()/this.Wi():0;b=Rv(b);this.ih.style.width=b+"%";this.Kb.ended&&L(u(this.xm,this,a),50)};f.qp=function(){!this.eg&&this.D||M_(this.b,3)};
f.J=function(){this.b.ha("control_toggle_play_pause",this.Lp,this);this.b.ha("control_play",this.Ol,this);this.b.ha("control_pause",this.Nl,this);this.b.ha("onResize",this.um,this);this.b.ha("onVolumeChange",this.Kp,this);this.k.removeAll();N_(this);this.g.destroy();this.Kb&&(JH(this.b.g),this.Kb=null);P_(this);this.jh&&(this.jh.innerHTML="",this.jh=null);this.ih&&(gd(this.ih),this.ih=null);this.lh&&(ug(this.lh,["ad-showing","ad-interrupting"]),this.lh=null);this.B=!0;K_.G.J.call(this)};
function P_(a){a.C&&(M(a.C),a.C=0,O(Ct(a.b.b),"ad-interstitial-showing"))}f.Wi=function(){return this.Kb?this.Kb.duration||0:null};f.Cn=function(){return null};f.hr=function(){return this.Kb&&this.Kb.currentSrc?this.Kb.currentSrc:null};f.Kp=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Jb(a/100,0,1),this.g.setVolume(a))};f.Lp=function(){this.eg?this.Nl():this.Ol()};f.Ol=function(){this.Kb&&(this.g.resume(),this.Rq())};f.Nl=function(){this.Kb&&(this.g.pause(),this.Qq())};f.um=function(){R_(this.b)};function T_(a,b,c,d){w_.call(this,b,a,2,c);this.b.subscribe("control_toggle_play_pause",this.ap,this);this.b.subscribe("control_play",this.Rk,this);this.b.subscribe("control_pause",this.Qk,this);this.B=new B_(this,this.b);this.k=new ew(this);this.o=U_(b);this.o.subscribe("statechange",this.Qd,this);this.o.subscribe("internalvideodatachange",this.$o,this);this.C=this.D=!1;this.F=d}w(T_,w_);f=T_.prototype;f.qn=!1;f.Jg=null;f.Ig=null;f.Kg=null;
f.show=function(){var a=this.b;V_(a.app,U_(a));this.B.g=v();this.Kg=Ct(this.b.b);this.o.subscribe("progresssync",this.jp,this);if(this.b.ka.M)gd(H("video-ad-status-bar"));else{a=Ct(this.b.b);this.Jg=H("video-ad-time-left",a);var a=H("html5-ad-progress-list",a),b=ad("div");N(b,"ytp-ad-progress");a.appendChild(b);this.Ig=b}tg(this.Kg,["ad-showing","ad-interrupting"]);this.b.subscribe("onResize",this.$k,this);try{this.k.listen(this.g,"adError",this.Zy),this.k.listen(this.g,"click",this.Yy),this.k.listen(this.g,
"complete",this.Wy),this.k.listen(this.g,"engagedview",this.Xy),this.k.listen(this.g,"pause",this.xq),this.k.listen(this.g,"start",this.yq),this.k.listen(this.g,"skip",this.$y),this.$k(),this.g.start()}catch(c){W_(this,c)}};f.$o=function(a,b,c){"newdata"==a&&this.j!=c&&(a={video_id:c.videoId},b=new x_(c.videoId,this.F,u(this.g.skip,this.g)),M_(this.b,-1,a,b));this.j=c};f.Qd=function(a){a=a.state;V(a,128)&&W_(this,Error(a.b.message||"Video player error."))};
f.yq=function(){this.qn=!0;this.C=!1;this.D||(this.D=!0,H_(this.B),S_(this.b,1));M_(this.b,1);this.H("adPlay",this)};f.xq=function(){this.qn=!1;M_(this.b,2)};f.Wy=function(){I_(this.B);X_(this)};function X_(a){var b=new eO;b.j=a.C;b.g=v();a.j&&a.j.Da&&(b.b=a.j.Da);PN(U_(a.b));M_(a.b,0,b);S_(a.b,0);a.H("adEnd",a)}f.Xy=function(){var a=this.B;a.b.H("AD_LOGGING_EVENT",777,F_(a))};f.$y=function(){this.C=!0;J_(this.B);X_(this)};
f.Zy=function(a){var b={};b.error_code=a.j.getErrorCode();var c=this.B;E_(c);var d=F_(c);b&&ra(d,b);d.ad_error=32;C_(c,7,d);W_(this,a.j)};function W_(a,b){a.o.wg();M_(a.b,0);a.H("adError",b)}f.Yy=function(){D_(this.B);this.g.pause();this.H("select")};f.jp=function(){var a=this.b.b.Hf();this.b.ka.M||(this.Jg.innerHTML=Qv(a.duration-a.current),a=Rv(a.current/a.duration),this.Ig.style.width=a+"%")};
f.J=function(){this.b.ha("control_toggle_play_pause",this.ap,this);this.b.ha("control_play",this.Rk,this);this.b.ha("control_pause",this.Qk,this);this.b.ha("onResize",this.$k,this);this.k.removeAll();this.o.subscribe("statechange",this.Qd,this);this.o.ha("internalvideodatachange",this.$o,this);this.o.ha("progresssync",this.jp,this);var a=this.b;if(a.j){var b=a.app,a=a.j;Y_(b);a!=b.j&&V_(b,b.j)}this.g.destroy();this.Jg&&(this.Jg.innerHTML="",this.Jg=null);this.Ig&&(gd(this.Ig),this.Ig=null);this.Kg&&
(ug(this.Kg,["ad-showing","ad-interrupting"]),this.Kg=null);this.C=!1;T_.G.J.call(this)};f.Wi=function(){return this.o.Sd()};f.Cn=function(){return this.j&&this.j.b?this.j.b.mimeType:null};f.hr=function(){return this.j&&this.j.V?zr(this.j.V.b):null};f.ap=function(){this.qn?this.Qk():this.Rk()};f.Rk=function(){this.g.resume();this.yq()};f.Qk=function(){this.g.pause();this.xq()};f.$k=function(){$f(IH(this.b.g),R_(this.b))};function Z_(a,b){this.g=a;this.b=b}function $_(a,b,c){a.g.H("AD_LOGGING_EVENT",b,c)}function a0(a){var b={};k_(a.g.getCurrentAd(),b);a.o&&a.k&&(b.ot=a.k-a.o);var c;c=a.b.isFullscreen()?2:a.b.R().qd?1:0;b.ad_ps=c;b.at=a.g.A();return b};function b0(a,b,c){w_.call(this,b,a,1,c);this.o=new Z_(this,b);this.k=new ew(this)}w(b0,w_);f=b0.prototype;f.Dd=null;f.nm=!1;
f.show=function(){if(!this.nm||!c0(this.b)){var a=Ct(this.b.b);N(a,"ad-showing");this.Dd=IH(this.b.g);a=this.g.getCurrentAd().getHeight();this.Dd.style.height=Qf(a,!0);N(this.Dd,"ad-overlay");this.k.listen(this.Dd,"mouseup",this.mz);try{this.k.listen(this.g,"userClose",this.nz);this.k.listen(this.g,"click",this.lz);this.k.listen(this.g,"adError",this.kz);d0(this,"normal");this.g.start();var b=this.o;b.o=v();var c=a0(b);$_(b,3,c);this.b.subscribe("onResize",this.om,this);this.b.subscribe("onStateChange",
this.zq,this);this.H("adEnd",this)}catch(d){this.H("adError",d)}}};f.J=function(){this.k.removeAll();this.b.ha("onResize",this.om,this);this.b.ha("onStateChange",this.zq,this);var a=Ct(this.b.b);O(a,"ad-showing");this.g&&(this.g.destroy(),this.g=null);this.Dd&&O(this.Dd,"ad-overlay");this.Dd=null;this.nm=!1;b0.G.J.call(this)};f.nz=function(){this.Dd&&this.g&&this.g.getCurrentAd()&&(this.Dd.style.height=Qf(0,!0));this.nm=!0;var a=this.o;a.k=v();var b=a0(a);$_(a,6,b)};
f.lz=function(){this.b.pauseVideo();var a=this.o;a.k=v();var b=a0(a);if(a.j){var c=G_(a.b),d=a.j.y-c.top,d=Math.round(a.j.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}$_(a,100,b)};f.mz=function(a){this.o.j=a.target==a.currentTarget?null:new F(a.pageX,a.pageY)};f.kz=function(a){this.H("adError",a.j)};f.zq=function(a){V(a.state,16)&&d0(this,"normal")};function d0(a,b){a.B!=b&&(a.B=b)}f.om=function(){};function e0(a,b,c,d){this.I=a;this.b=b.b;this.B=b;this.M=b.getId();this.Y=c;this.j=d;this.k=new n_(this.b,this.De(),c,d);this.o=null;this.F=new Yk(this);this.g=new Yk(this)}w(e0,Mh);e0.b="rm";e0.g=10;e0.A=200;e0.k=200;e0.o=190;e0.j=100;f=e0.prototype;f.Rl=null;f.load=function(){var a;a=this.Y;a=a.ka.A?R_(a):a.app.g.j.pd();var b;this.Y.ka.b?b=!1:(b=0<(this.j&3)?e0.o:e0.k,b=a.width<e0.A||a.height<b);if(b){b=this.k;var c=q_(b);c.ck_wh=a.width+"x"+a.height;f0(b.b,14,c);u_();this.Fe(Error("The player size is too small."))}else g0(this)};
f.tn=function(){var a=new DP;a.baseYouTubeUrl=this.Y.R().qb;a.contentId=ot(this.Y.app).videoId;a.yk=GH(this.Y.R(),"927622");a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=this.Y.ka.M;a.youTubeAdNamespace=this.De();a.showContentThumbnail=this.Y.ka.Bo;a.En=this.Y.ka.Yj;return a};f.De=function(){return this.I};function h0(a){var b=e0.g;a.b=b;a.k.k=b}function i0(a,b){a.Rl=b;a.k.j=b.A()}function j0(a,b){var c=q("yt.www.watch.ads.setAdId");c&&c(b);a.k.g=b}
function k0(a){a=a.b;return 0==a||-1==a?a:1E3*a}
function g0(a){a.o=a.Y.Ak;if(a.o){o_(a.k);var b=new JW;b.adTagUrl=a.hg();var c=a.Y.ka.hf;c&&(b.adsResponse=c);c=R_(a.Y);b.linearAdSlotWidth=c.width;b.linearAdSlotHeight=c.height;b.nonLinearAdSlotWidth=c.width;b.nonLinearAdSlotHeight=e0.j;if(c=rL(a.Y.R()))b.lastActivity=c;a.Y.ka.wb&&(b.tagForChildDirectedContent=!0);GH(a.Y.R(),"937420")&&(b.Ri=!0);var c=ot(a.Y.app),d=a.Y;b.Wg={"[CONTENT_V]":c.videoId,"[CPN]":c.Da,"[LACT]":{toString:function(){return null==d||d.ga()?d=null:rL(d.R()).toString()}}};a.o.listen("adsManagerLoaded",
a.ur,!1,a);a.o.listen("adError",a.tr,!1,a);a.Fj(a.o,b)}}f.ur=function(a){if(a.k===this){Fq("aml");try{var b=this.tn(),c=a.j}catch(d){this.ee(d);return}this.g.listen(c,"companionBackfill",u(this.GB,this,c));this.g.listen(c,"loaded",u(this.IB,this,c));this.g.listen(c,"adError",u(this.HB,this,c));this.g.listen(c,"allAdsCompleted",ca);this.g.listen(c,"contentPauseRequested",ca);this.g.listen(c,"contentResumeRequested",ca);a.j.Zc(new h_(this.Y.k),{},b);c=a.j;try{c.init("normal")}catch(e){c.destroy(),this.ee(e)}}};
f.IB=function(a,b){this.g.removeAll();var c=b.getAd(),d=aU(c),e=this.k,g=q_(e);g.ad_man=d?"instream":"overlay";p_(e.b,12,g);e=a.getMediaUrl();switch(d?this.mh(a,c,e):this.Se(a,c)){case 0:l0(this.B,this.Rl,this.b);break;case 1:a.destroy();this.Fe(Error("Unable to create a display state."));break;case 2:c=this.k;f0(c.b,21,q_(c));a.destroy();this.Fe(Error("Fallback to next ad."));break;default:a.destroy()}};f.HB=function(a,b){this.g.removeAll();a.destroy();this.ee(b.j)};
f.tr=function(a){var b=a.j;"adLoadError"==b.j&&a.k===this&&this.ee(b)};f.GB=function(){t_()};f.mh=function(a,b,c){j0(this,kU(b));var d;this.Y.ka.T?d=new T_(this.De(),this.Y,a,cU(b)):d=new K_(this.De(),this.Y,a,c,cU(b));i0(this,d);return 0};f.Se=function(a,b){j0(this,kU(b));i0(this,new b0(this.De(),this.Y,a));return 0};f.ee=function(a){if(a){var b=this.k,c=q_(b);a&&j_(a,c);f0(b.b,32,c);this.Fe(a)}};f.Fe=function(){m0(this.B)};
f.J=function(){this.o&&(this.o.Fa("adsManagerLoaded",this.ur,!1,this),this.o.Fa("adError",this.tr,!1,this));this.F.removeAll();this.g.removeAll();e0.G.J.call(this)};f.Fj=function(a,b){try{b.location=e_(),b.ph=a.g.A,NX(a.b,b,this),Fq("ra")}catch(c){this.ee(c)}};function n0(a,b){this.b=a;this.g=b};function o0(a){w_.call(this,a,2,3,null);this.k=this.o=0}w(o0,w_);o0.prototype.show=function(){var a=q("yt.www.watch.ads.loadAfc");a&&a();this.H("adEnd",this);this.o=Ye(u(this.B,this),1E3)};o0.prototype.J=function(){p0(this);o0.G.J.call(this)};function p0(a){a.o&&(Ze(a.o),a.k=0)}o0.prototype.B=function(){var a=q("yt.www.watch.ads.isAfcAdVisible");this.k++;var b={};b.at=this.A();10<=this.k||!a?(p0(this),this.H("AD_LOGGING_EVENT",2,b)):a()&&(p0(this),this.H("AD_LOGGING_EVENT",3,b))};function q0(a,b,c){e0.call(this,2,a,b,c);this.A=new n0(this.Y.ka,this.Y.R());s_()}w(q0,e0);q0.prototype.tn=function(){var a=q0.G.tn.call(this);a.Ws=0==this.M;a.lD=c0(this.Y)?a.Ws:!0;return a};
q0.prototype.hg=function(){var a=this.A,b=this.j,c=k0(this),d={},e;if(a.b.cq&&(e=4==b&&a.b.wa?a.b.wa:a.b.pf)){0==e.lastIndexOf("http:",0)&&(e=e.substr(5));ec(d,Bi(e));var g=e.indexOf("?");-1!=g&&(e=e.substring(0,g+1))}e||(e="//googleads.g.doubleclick.net/pagead/ads?",d.eid=a.b.oa,d.scs=a.b.ak,d.client=a.b.ck,d.description_url=a.b.ya,d.loeid=a.b.bk,d.cust_gender=a.b.of,d.host=a.b.host,d.hl=a.g.B,d.max_ad_duration=a.b.Md,a.b.gf&&(d.adtest="on"),isNaN(a.b.la)||(d.cust_age=a.b.la),isNaN(a.b.Wc)||(d.hostTierId=
a.b.Wc),a.b.jb&&(d.yt_pt=a.b.jb),a.b.Vc&&(d.video_cpm=a.b.Vc),a.b.L&&(d.as_dbp=a.b.L),d.ytdevice=a.b.mb,d.ad_type=m_(b),0<(b&3)?a.b.Ia&&(d.channel=a.b.Ia.join("+")):b&4&&a.b.hb&&(d.channel=a.b.hb.join("+")),a.b.U&&(d.lsv=1),a.b.wb&&(d.tfcd=1));d.videoad_start_delay=c;d.url="embedded"==a.g.ba&&a.g.g?a.g.g:a.b.ya;var a=d,b={},h;for(h in a)fa.call(void 0,a[h])&&(b[h]=a[h]);return e+zi(b,"&")};
q0.prototype.Se=function(a,b){if(this.Y.ka.b)return 1;0==this.b&&(h0(this),p_(this.Y,1));return q0.G.Se.call(this,a,b)};q0.prototype.Fe=function(a){var b=this.Y.ka;b.b?q0.G.Fe.call(this,a):b.Ha||this.j&4?(i0(this,new o0(this.Y)),l0(this.B,this.Rl,this.b)):q0.G.Fe.call(this,a)};function r0(a,b){if(a){this.nt=a;this.gt=b;var c,d=this.nt,e=d.indexOf(";sz=");c=yi(d.substring(e),";");d=d.substring(0,e).split("pfadx");if(c=2!=d.length?null:{UD:d[0],VD:d[1],WD:c})this.ft=c.UD,this.ht=c.VD,this.jt=c.WD}}f=r0.prototype;f.nt="";f.ft="";f.gt=!1;f.Un="";f.ht="";f.jt=null;
f.yj=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos=0",d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos=0",d.push("480x361"));b&12&&d.push("480x70");var e=[],g,h;b&12&&(e.push("300x250"),g="watch-channel-brand-div",h=1);0<(b&3)&&(e.push("300x60"),g="watch-longform-ad",h=1);var k=cc(this.jt);c&&(k.pos=c);h&&(k.tile=h.toString());g&&(k.kmyd=g);e&&0<e.length&&this.gt&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";this.Un||(this.Un=Math.floor(999999999*Math.random()).toString());
k.ord=this.Un;d&&d.length&&"sz"in k&&delete k.sz;e=zi(k,";");d&&d.length&&(e="sz="+d.join(",")+";"+e);return[this.ft,"pfadx",this.ht,";",e,"?"].join("")};function s0(a){this.b=a?a:""}s0.prototype.yj=function(a,b){if(b&1){var c="mid",d="midroll";0==a?(c="pre",d="preroll"):-1==a&&(c="post",d="postroll");var e=new J(this.b),g=e.b,h=g.get("scp",""),c=(h?h+"&":"")+("pos="+c);g.set("scp",c);g.set("vpos",d);return e.toString()}return this.b};function t0(a,b){b0.call(this,1,a,b)}w(t0,b0);t0.prototype.om=function(){};t0.prototype.A=function(){return"1_3"};function u0(a,b,c){e0.call(this,1,a,b,c);a=this.Y.ka;this.L=a.hi?new s0(a.qa):new r0(a.qa,a.Ca)}w(u0,e0);u0.prototype.hg=function(){return this.L.yj(this.b,this.j)};
u0.prototype.Se=function(a,b){j0(this,kU(b));var c=null!=b.g?b.g.L:{};if(l_(c,e0.b))return 1==this.j||c0(this.Y)||u_(),a.sendImpressionUrls(),this.Y.ka.mk?(i0(this,new o0(this.Y)),0):2;if(l_(c,"blockAllAds"))return a.sendImpressionUrls(),i0(this,new t0(this.Y,a)),0;if(l_(c,"hideMaster"))return i0(this,new t0(this.Y,a)),0;if(this.Y.ka.b)return 1;i0(this,new b0(this.De(),this.Y,a));return 0};function v0(a,b,c,d){u0.call(this,a,b,c|d);this.D=c;this.C=d;this.A=null;s_()}w(v0,u0);var w0={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=v0.prototype;f.hg=function(){if(this.Y.ka.hi){var a=new s0(this.Y.ka.N);return a.yj(this.b,this.D)}a=new r0(this.Y.ka.N,this.Y.ka.Ca);return a.yj(this.b,this.D)};f.Fj=function(a,b){if(this.C){b.youTubeAdType=m_(this.C);var c=this.Y.ka.oa;c&&(b.youTubeExperimentIds=c);b.youTubeVideoAdStartDelay=k0(this)}v0.G.Fj.call(this,a,b)};
f.mh=function(a,b,c){x0(this,a);return 1!=this.A&&2!=this.A?1:v0.G.mh.call(this,a,b,c)};f.Se=function(a,b){x0(this,a);switch(this.A){case 1:return v0.G.Se.call(this,a,b);case 2:var c;this.Y.ka.b?c=1:(0==this.b&&(h0(this),p_(this.Y,1)),j0(this,kU(b)),i0(this,new b0(2,this.Y,a)),c=0);return c;default:return 1}};f.De=function(){return this.A||0};function x0(a,b){var c=nU(b.getCurrentAd()),c=D(c)?fU(b.getCurrentAd()):c[0],c=w0[c.toUpperCase()];a.A=c?c:0};function y0(a,b){var c=b.ka;this.A=c.mf;var d=0,c=c.lf.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);e0.call(this,2,a,b,d)}w(y0,e0);y0.g="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";y0.j="43";
y0.b=function(a){var b=new jv;Li(a,{format:"RAW",method:"GET",timeout:5E3,kh:function(){b.fh(Error(a+" timed out"))},onError:function(c){b.fh(Error("Problem loading "+a+" with status code "+c.status))},onSuccess:function(a){b.ct(a)}});return b};y0.prototype.hg=function(){return""};
y0.prototype.Fj=function(a,b){var c=this.j;c&1||c&4||c&8?this.A?c&8?v_(this.A):("goo.gl"==Ci(this.A)?(c=y0.b(y0.g+this.A),pv(c,function(a){a=sf(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new J(a.longUrl);K(a,"video_format",y0.j);return y0.b(a.toString())},this)):c=y0.b(this.A),pv(c,function(c){b.adsResponse=c.responseText;b.location=e_();b.ph=a.g.A;NX(a.b,b,this)},this),qv(c,null,this.ee,this)):this.ee(Error("Invalid empty URL")):
this.ee(Error("Invalid request type: "+c))};function z0(a,b,c,d){this.b=a;this.g=d;this.k=b;this.j=oh||ph?"html5_ios":qh?"html5_android":or()?"html5_ps3":"leanback"==c?"html5_tv_leanback":"html5_desktop"};function A0(a,b,c){e0.call(this,4,a,b,c);this.A=new z0(this.Y.ka,ot(this.Y.app).Oa,this.Y.R().ba,c)}w(A0,e0);
A0.prototype.hg=function(){var a;var b=this.A;if(b.b.ca&&b.b.ac){var c="youtube_watch_"+b.j;a={nw:"10613"};a.asnw=b.b.ca;a.ssnw=b.b.ca;a.caid=b.b.ac;a.prof="10613:10613_youtube_html5_2014";a.vdur=b.k;a.csid=c;a.resp="vast2";a.crtp="youtube";a.flag="+slcb+qtcb+amcb+exvt";c={};isNaN(b.b.xa)||(c._fw_d_001=b.b.xa);b.b.za&&(c._fw_d_002=b.b.za);b.b.gb&&(c["_fwu:10613:lang"]=b.b.gb);b.b.L&&(c._fw_dbp=b.b.L);c._fw_yt_type=b.b.B?"short":"long";var d="";b.g&1?(b={ptgt:"a",slid:"preroll",slau:"yt_html5_pre",
tpos:"0"},d=zi(b,"&"),b={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"yt_html5_dis1",flag:"+cmpn"},d=d+";"+zi(b,"&")):b.g&4?(b={ptgt:"a",slid:"overlay",slau:"yt_html5_overlay",tpos:"10"},d=zi(b,"&"),b={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"yt_html5_dis2",flag:"+cmpn"},d=d+";"+zi(b,"&")):b.g&8&&(b={ptgt:"s",slid:"dis",slau:"yt_html5_dis_standalone",w:"300",h:"250"},d=zi(b,"&"));b=d;a="//2975c.v.fwmrm.net/ad/g/1?"+zi(a,"&")+";"+zi(c,"&")+";"+b}else a="";return a};
A0.prototype.mh=function(a,b){return 0!=this.b?1:A0.G.mh.call(this,a,b,null)};A0.prototype.Se=function(a,b){return l_(null!=b.g?b.g.L:{},e0.b)?(this.B.k=a,2):1};function B0(a,b,c){e0.call(this,13,a,b,c)}w(B0,e0);var C0=[{nn:4,size:"480x70",Vr:"300x250"},{nn:1,size:"480x360",Vr:"300x60"}];
B0.prototype.hg=function(){var a=new J(this.Y.ka.nf,!0),b=this.j,c=C0.filter(function(a){return(b&a.nn)==a.nn}),d=c.map(function(a){return a.size}).join("|");K(a,"sz",d);c=c.map(function(a){return a.Vr}).join(",");K(a,"ciu_szs",c);c=4==(this.j&4);1==(this.j&1)?(c||K(a,"vad_type","linear"),c="midroll",0==this.b?c="preroll":-1==this.b&&(c="postroll"),K(a,"vpos",c)):c&&K(a,"vad_type","nonlinear");return a.toString()};function D0(a,b,c){this.j=a;this.b=b;this.g=c||0}D0.prototype.create=function(a,b){switch(this.j){case 1:return new q0(a,b,this.b);case 2:return new u0(a,b,this.b);case 3:return new v0(a,b,this.b,this.g);case 5:return new A0(a,b,this.b);case 4:return new y0(a,b);case 6:return new B0(a,b,this.b);default:return null}};function E0(a){return 0<((a.b|a.g)&3)};function F0(a,b,c,d,e){ej.call(this);this.pa=b;this.j=a;this.b=c;this.o=d;this.k=this.g=null;this.A=!!e}w(F0,ej);f=F0.prototype;f.im=!0;f.Dc=!1;f.isVisible=!0;f.dd="unloaded";f.Bm=!1;function G0(a){return 0==a.b?H0(a)&&I0(a)?-2147483648:0:-1==a.b||-2==a.b?2147483647:1E3*a.b}function J0(a){return 0==a.b||-2==a.b?!1:kb(a.o,function(a){switch(a.j){case 1:case 2:case 3:case 6:return!0;default:return!1}})}function H0(a){return"loaded"==a.dd||"error"==a.dd}
function I0(a){if(!H0(a))throw Error("Preroll status is undefined before ad load.");return 0==a.b&&a.Dc}function m0(a){a.dd="loading";0==a.b&&!jb(a.o,E0)&&tu(a.j);if(a.A)a.dd="loaded",a.Dc=!0,K0(a);else{var b=a.o.shift();b?(0==a.b&&L0(a.j,"nl"),b=b.create(a,a.j),R(a,b),b.load()):(p_(a.j,2,M0(a,{})),N0(a,!1),a.dd="error",K0(a))}}f.getId=function(){return this.pa};function O0(a){a.g&&(a.g.ha("adEnd",a.ts,a),a.g.ha("adError",a.us,a),a.g.ha("AD_LOGGING_EVENT",a.vs,a),a.g.ha("select",a.rs,a))}
function l0(a,b,c){a.g=b;a.b=c;R(a,a.g);0==a.pa&&(a.j.A.at=a.g.A());a.g instanceof K_||a.g instanceof T_?a.Dc=!0:a.g instanceof o0?a.isVisible=!1:a.g instanceof t0&&(a.isVisible=!1);a.dd="loaded";K0(a)}function K0(a){a.H("adBreakComplete",a)}
f.show=function(){this.Bm?this.g instanceof b0&&d0(this.g,"normal"):(this.Bm=!0,(this.g instanceof K_||this.g instanceof T_)&&L0(this.j,"bs"),this.g.subscribe("adEnd",this.ts,this),this.g.subscribe("adError",this.us,this),this.g.subscribe("AD_LOGGING_EVENT",this.vs,this),this.g.subscribe("select",this.rs,this),this.g.show(),N0(this,!0))};function N0(a,b){a.k&&(a.k.sendImpressionUrls({"[FILLED_OPPORTUNITY]":b?1:0}),a.k=null)}
f.ts=function(){if(this.Dc){O0(this);var a=this.j;if(a.ka.Zj&&!a.Ek){var b=a.R().qb;qf(b+"mac_204?action_fcts=1");kj("CLAD","tlip="+v());a.Ek=!0}}K0(this)};f.us=function(a){if(a){var b={};j_(a,b);M0(this,b);f0(this.j,32,b)}O0(this);K0(this)};f.vs=function(a,b){M0(this,b);p_(this.j,a,b)};f.rs=function(){this.im=!1};function M0(a,b){b.sst=a.b;b.sidx=0}f.J=function(){O0(this);this.k=this.g=null;F0.G.J.call(this)};function P0(a){this.Ru=a}function Q0(a){try{var b=fD(a).getElementsByTagName("AdBreak"),c=B(b,function(a){a=a.getAttribute("time");return $a(a)});return new P0(c)}catch(d){return new P0([0])}};function R0(a){this.b=a};function S0(a,b){this.P=a;this.Ra=this.P.$b;this.A="leanback"==this.P.ba;this.b=this.Ra||this.A;var c=GH(a,"927619"),c=this.A&&c,d=this.Ra&&GH(this.P,"947202");this.M=!this.b||d;this.T=a.Qb&&(!this.b||c)||d;this.cq=GH(a,"906369");this.apply(b)}var T0={IE:"m",DE:"f"};f=S0.prototype;
f.apply=function(a){var b=i_(a.instream),c=i_(a.trueview),d=i_(a.aftv);this.zb=a.ad_slots;this.ea=a.ad_breaks;this.kf=a.ad_flags||0;this.la=parseInt(a.cust_age,10);this.oa=a.cafe_experiment_id;var e=parseInt(a.cust_gender,10);isNaN(e)||(this.of=e);this.qa=a.ad_tag;this.gf=!!a.adtest;this.pf=a.afv_ad_tag;this.wa=a.afv_invideo_ad_tag;this.xa=parseInt(a.ad_age,10);this.jf=a.cid;this.ya=a.ad_eurl;this.N=a.dynamic_allocation_ad_tag;this.V=a.excluded_ads;this.lf=a.force_ad_type;this.mf=a.force_ad_url;this.za=
Wb(T0,function(b){return b==a.ad_gender});this.L=a.dbp;this.mk=i_(a.afc_rm_fallback);this.Ca=!!a.mpu;this.host=a.ad_host;this.Wc=parseInt(a.ad_host_tier,10);this.C=i_(a.afv)&&!this.b;this.k=d&&c;this.o=d&&b&&!i_(a.no_afv_instream);this.D=i_(a.dclk);this.hi=i_(a.gpt_migration);this.U=1==a.livestream;this.eb=i_(a.forced_ad)&&!this.b;this.O=1==parseInt(a.tpas_ad_type_id,10);this.Wj=!!a.fqsf;this.g=b;this.F=i_(a.invideo)&&!this.b;this.aa=i_(a.mpu)&&!this.b;this.Zj=i_(a.shortform);this.B=i_(a.sffb);this.Sh=
i_(a.xfp);this.nf=a.xfp_tag;this.ak="1"==a.as_launched_in_country;this.yo=!this.b&&!this.O;this.I=c;b=a.ad_channel_code_instream;this.Ia=r(b)?b.split(","):[];this.gb=a.ad_language_iso639_2;this.bk=a.loeid;b=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(b)&&(b=2E3);this.ek=b;b=parseInt(a.afv_instream_max,10);isNaN(b)&&(b=15E3);this.Md=b;this.j=parseInt(a.midroll_freqcap,10);isNaN(this.j)&&(this.j=-1);this.Ld=parseInt(a.midroll_prefetch_size_html5,10)||0;b=a.ad_channel_code_overlay;this.hb=
r(b)?b.split(","):[];this.jb=a.yt_pt;this.ck=a.ad_video_pub_id;"boolean"==typeof a.show_content_thumbnail&&(this.Bo=a.show_content_thumbnail);this.wb=i_(a.tag_for_child_directed);this.hf=a.server_prefetched_vast;this.Yj=a.surveyCreativeData;this.Vc=parseInt(a.afv_video_min_cpm,10);this.Ha=d&&this.B&&!this.C;this.Ph=this.C||this.Ha;this.mb=parseInt(a.ad_device,10);this.ac=a.tpas_video_id;this.ca=a.tpas_partner_id;this.Wa=U0(this)};
function U0(a){if(x(a.N)||!a.T)return!1;var b=(a.g||a.I)&&a.D;a.B&&a.D&&(b=b||a.F||a.aa);if(!b)return!1;b=a.k||a.o;if(!(b||a.B&&a.C))return!1;var c=a.N.length+330+(a.hi?25:102);window.document.referrer&&(c+=Aa("ref="+window.document.referrer).length);b||(c+=41);return c<=a.ek}f.yo=!0;f.mk=!1;f.hi=!1;f.Sh=!1;f.Bo=!0;f.cq=!1;function V0(a,b,c){this.b=a;this.A=b;this.j=c;this.o=this.g=-1;this.j&&0<this.b.ka.j&&this.b.subscribe("endseeking",this.k,this)}w(V0,Mh);function W0(a,b){X0(a);0<b&&(a.o=L(u(a.k,a),1E3*b))}function X0(a){-1!=a.o&&(M(a.o),a.o=-1)}
V0.prototype.k=function(){var a=this.b.ka.j;if(this.j&&!(0>=a)){var b=this.b.b.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Ob(this.A.j,function(a){if(a.isVisible&&!(0>=Y0(this,a))){var g;g=a.getId();g=this.A.k[g];if(Y0(this,a)>b){var l=!Z0(this,a);l!=g.Zd&&(g.Zd=l,c.push(g));l||(g=Y0(this,a)-b,g<e&&(e=g,d=a))}else g.Zd||(g.Zd=!0,c.push(g))}},this);0<c.length&&$0(this.b,c);if(d){var g=0;0<this.g&&(g=v()/1E3-this.g);W0(this,a-g-e+2)}else X0(this)}};
function Z0(a,b){if(!a.j||!(0<b.b)&&-1!=b.b)return!1;var c=a.b.ka.j;if(0>=c||0>=a.g)return!1;var d=v()/1E3,e=Y0(a,b)-a.b.b.getCurrentTime();0<e&&(d+=e);return d-a.g<=c}function Y0(a,b){return-1==b.b?a.b.b.getVideoData().Oa:b.b}V0.prototype.J=function(){X0(this)};function a1(a,b){this.b=b;this.A=[];this.j={};this.k={};this.Y=a;var c=!a.ka.U&&jb(this.b,function(a){return 0<a.b||-1==a.b});this.D=new V0(this.Y,this,c);this.F=jb(this.b,function(a){return 0==a.b})}w(a1,Mh);f=a1.prototype;f.wd=null;function b1(a){a.A.length||(a.A=hb(a.b,function(a){return"unloaded"==a.dd}),0==a.A.length?tu(a.Y):(a.F||tu(a.Y),c1(a)))}function c1(a){if(a.A.length){var b=a.A.shift();b.subscribe("adBreakComplete",a.Yf,a);m0(b)}}
f.Yf=function(a){a.ha("adBreakComplete",this.Yf,this);L(u(this.DD,this,a),0)};f.DD=function(a){var b=fb(this.b,a),c=this.b[b+1],b=this.b[b-1],d=2147483646;-2==a.b||-1==a.b?d=2147483647:c&&2147483647!=c.b&&(d=G0(c)-1);0==a.pa&&(L0(this.Y,"bl"),I0(a)||L0(this.Y,"fb"));if(c="loaded"!=a.dd||0==a.pa&&I0(a)&&c&&this.Y.b.getCurrentTime()>c.b){if(b&&H0(b)){var e=G0(b);e>d&&(d=e);d1(this,b);e1(this,b,d)}}else this.j[a.getId()]=a,e1(this,a,d);tu(this.Y);c&&this.Ef(a);Rb(this.j)==this.b.length&&this.D.k();c1(this)};
function e1(a,b,c){var d=G0(b);if(!isNaN(d)){var e={};e.priority=-2!=b.b?2:3;e.id=String(b.getId());e.visible=b.isVisible;c=new hu(d,c,e);a.k[b.getId()]=c;a.Y.Kf(c)}}function d1(a,b){a.k[b.getId()]&&(a.Y.hD(a.k[b.getId()]),delete a.k[b.getId()])}f.Ef=function(a){a.ha("adBreakComplete",this.Yf,this);this.wd&&a==this.wd&&(this.wd=null);d1(this,a);rb(this.b,a);delete this.j[a.getId()];Oh(a)};f.km=function(a){return this.j[a]};
f.wn=function(a){if(a.Dc){if(-1!=a.b&&a.im){var b=this.Y;f1(b);Du(b)}else I0(a)&&!a.im?(b=this.Y,f1(b),Du(b)):(f1(this.Y),Eu(this.Y,!1));this.Ef(a)}else a.isVisible||this.Ef(a);a=this.D;a.j&&0<a.b.ka.j&&(a.g=v()/1E3,a.k())};f.J=function(){Oh(this.D);z(this.b,this.Ef,this);a1.G.J.call(this)};function g1(a,b,c){a1.call(this,a,b);this.B=[];this.C=[];this.o=[];this.M=c;this.g=null;this.I=a.ka.j;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],J0(c)){var d=new F0(c.j,c.pa,c.b,c.o,!0);b[a]=d;this.B.push(c)}this.F||this.If()}w(g1,a1);f=g1.prototype;
f.km=function(a){a=g1.G.km.call(this,a);if(!a)return null;if(!a.A)return a;var b;b=null;if(this.o.length){var c=b=this.o.shift();c.b=a.b;c.pa=a.getId()}b&&"loaded"==b.dd?(a.ha("adBreakComplete",this.Yf,this),this.j[a.getId()]=b,this.b[this.b.indexOf(a)]=b,Oh(a)):(this.If(),b&&(Oh(b),b=null),this.Ef(a));b&&!b.Dc&&this.If();return b};f.Yf=function(a){0!=a.b||"loaded"==a.dd&&a.Dc||this.If();g1.G.Yf.call(this,a)};
f.wn=function(a){a.Dc&&10<this.I?(ia(this.g)&&M(this.g),this.g=L(u(this.If,this),1E3*(this.I-10))):this.If();g1.G.wn.call(this,a)};f.If=function(){for(this.g=null;this.B.length&&this.C.length+this.o.length<this.M;){var a=this.B.shift();a.subscribe("adBreakComplete",this.as,this);this.C.push(a);m0(a)}};f.as=function(a){a.ha("adBreakComplete",this.as,this);rb(this.C,a);this.o.push(a)};f.J=function(){ia(this.g)&&(M(this.g),this.g=null);z(this.C,Oh);z(this.o,Oh);z(this.B,Oh);g1.G.J.call(this)};function h1(a,b){this.B=a;this.X=b;this.C=v();this.b=a.ka;this.k={};this.A=new y_(a);var c=[];this.b.O&&this.b.g&&c.push("4_2");this.b.Sh&&(this.b.g&&c.push("13_2"),this.b.F&&c.push("13_1"));this.b.D&&(this.b.g&&c.push("1_2"),this.b.I&&c.push("1_2_1"),this.b.F&&c.push("1_1"),this.b.aa&&c.push("1_3"));this.b.k&&c.push("2_2_1");this.b.o&&c.push("2_2");this.b.C&&c.push("2_1");(this.b.Ph||this.b.mk)&&c.push("2_3");this.j=c.join(",");this.g="";this.k.allowed=this.j;(c=this.b.V)&&(this.k.ex_ads=c)}
h1.prototype.o=0;function i1(a){bL.call(this,a);pP.g=!0;pP.b=!0;pP.o="osd-id";pP.k=!0;this.k=null;this.B={};this.A={at:"0"};this.g=new HH(0,this.b);Bt(this.b,this.g.K());this.j=null;this.o=-1}w(i1,bL);f=i1.prototype;f.va="ad";f.gc="ad";f.xe=null;f.ic=null;f.ka=null;f.Ek=!1;f.fn=!1;f.Ak=null;i1.Ja=function(a){return!!a.yb.getVideoData().Y};f=i1.prototype;f.Ja=function(){return i1.Ja(this.app)};
f.create=function(){i1.G.create.call(this);L0(this,"i");this.ka=new S0(this.R(),this.b.getVideoData().k||{});this.xe=new h1(this,this.b);this.Ek=!1;t:if(!this.Ak){var a=this.ka.M?void 0:LH(this.g);if(this.ka.T){var b=new aL(this.app,2),c=IH(this.g);b.j||(b.j=bc(b.k),b.j.addEventListener=u(b.Pu,b),b.j.removeEventListener=u(b.Qu,b));this.k=new BQ(c,void 0,a,b.j)}else{b=Q_(this,!1);if(!b)break t;this.k=new BQ(IH(this.g),b,a,void 0)}a=this.k;b=a.g;null!=b&&(b.style.right=0,b.style.left=0,b.style.bottom=
0,b.style.top=0);null!=a.o&&(a=a.o,a.fb.width="100%",a.fb.height="100%");this.Ak=new f_(this.k)}a=new R0(this);t:{b=[];try{var d=a.b.ka,e;if(d.yo){var g;if(d.ea)g=Q0(d.ea);else{var h;if(d.zb){var k=B(d.zb.split(","),$a);h=new P0(k)}else h=new P0([0]);g=h}e=g}else e=new P0([0]);for(var l=e.Ru,d=0;d<l.length;d++){var p=a.b;e=d;var s=l[d],t=a.b,y;if(t.ka.B){g=[];var E=t.ka;if(E.eb)g.push(new D0(4,0));else{E.O&&(E.g||E.I)&&g.push(new D0(5,1));E.Sh&&(h=0,E.g&&(h|=1),E.F&&(h|=4),g.push(new D0(6,h)));h=
0;E.D&&(E.g&&(h|=1),E.I&&(h|=2),E.F&&(h|=4),E.aa&&(h|=8));k=0;if(E.o||E.k)E.o&&(k|=1),E.k&&(k|=2);c=0;E.C&&(c=4);k||(k=c,c=0);E.Wa&&h&&(k||c)?g.push(new D0(3,h,k)):(h&&g.push(new D0(2,h)),k&&g.push(new D0(1,k)));c&&g.push(new D0(1,c))}}else{g=[];var A=t.ka;if(A.eb)g.push(new D0(4,0));else{A.O&&A.g&&g.push(new D0(5,1));A.Sh&&A.g&&g.push(new D0(6,1));h=0;A.D&&(A.g&&(h|=1),A.I&&(h|=2));k=0;if(A.o||A.k)A.o&&(k|=1),A.k&&(k|=2);A.Wa&&h&&k?g.push(new D0(3,h,k)):(h&&g.push(new D0(2,h)),k&&g.push(new D0(1,
k)))}}y=g;var $=new F0(p,e,s,y);b.push($)}}catch(Ma){}finally{break t}}l=b;L0(this,"bd");p=this.ka;s=p.Ld;this.ic=!p.U&&0<s?new g1(this,l,s):new a1(this,l);b1(this.ic);l={};l.allowed=this.xe.j;xu(this,{},l)};f.destroy=function(){this.fn&&f1(this);if(this.j){var a=this.app,b=this.j;Y_(a);b!=a.j&&V_(a,a.j)}Qh(this.ic,this.j);this.xe=this.j=this.ic=null;JH(this.g);r_=!1;i1.G.destroy.call(this)};f.R=function(){return this.app.R()};f.isFullscreen=function(){return this.b.isFullscreen()||this.ka.A};
function p_(a,b,c){a=a.xe;c=c||{};var d=(v()-a.C)/1E3;c.art=d;d=a.B.R();d.C&&(c.feature=d.aa);c.ad_flags=a.b.kf;var e=a.b.jf;e&&(c.cid=e);c.mt=a.X.getCurrentTime();(d=rL(d))&&(c.lact=d);(d=a.X.Ag())&&(c.len=d);a.b.Wj&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.g=c.at;b=a.A;t:{if(7==c.ad_event&&(a=c.ad_error,21==a||30==a||54==a||32==a&&(1009==c.error_code||!c.ad_id))){a=!1;break t}a=c&&c.ad_event?A_(c.ad_event):0;a=8==a||0!=a?!0:!1}if(a){var g;c.at&&(g=c.at);var h;c.sst&&(h=c.sst);"2_1"==g&&
10==h&&(c.sst=0);g={};g.device=b.b.ka.mb;g.ns=1;g.sdkv="h.3.0";g.ver="2.0";for(var k in c)switch(h=g,a=k,d=c[k],e=c,a){case "at":h.format=d;e.skip&&(h.format+="_1");break;case "sst":0==d?h.break_type=1:-1==d||-2==g_?h.break_type=3:(h.break_type=2,h.m_pos=d);break;case "trsp":h.slot_pos=d;break;case "ad_id":case "ad_v":case "ad_sys":h[a]=d;break;case "ad_len":h[a]=Math.round(1E3*d);break;case "ad_error":h.error_code=z_(d);break;case "error_code":h.ima_error=d;case "error_message":h.error_msg=d;break;
case "ad_event":h.event=A_(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(h.i_x=a[0],h.i_y=a[1])}k=U_(b.b);c=ot(b.b.app);g.cpn=c.Da;g.content_v=c.videoId;g.mt=Math.round(1E3*k.getCurrentTime());g.ei=c.A;g.lact=rL(b.b.R());k=G_(b.b);g.p_w=k.width;g.p_h=k.height;g.rt=(new Date).getTime();c=Md(g);if("undefined"==typeof c)throw Error("Keys are undefined");k=new me(null,0,void 0);g=Ld(g);for(h=0;h<c.length;h++)a=c[h],d=g[h],ga(d)?ze(k,a,d):k.add(a,d);b=b.b.R().qb+"api/stats/ads";b=new J(b);je(b,k);
qf(b.toString())}}function f0(a,b,c){c=c||{};c.ad_error=b;p_(a,7,c)}f.bh=function(){var a;if(this.xe){a=this.xe;var b={allowed:a.j};a.b.V&&(b.ex_ad=a.b.V);a.g&&(b.at=a.g);a=b}else a=i1.G.bh.call(this);return a};function Q_(a,b){var c;if(b){c=a.g;var d=MH(c);c.X.R().Qb||ld(d)||IH(c).appendChild(d);c=d}else c=a.g,c=c.X.R().Qb?c.X.app.g.b:MH(c);return c}function U_(a){if(!a.j){var b=new jL(a.R().j);b.ba="adunit";b.xc=!0;b.ii=a.app.g.element;var c=Q_(a,!1);b.Pa=c;a.j=new zN(b,2)}return a.j}
function G_(a){return a.ka.A?(a=R_(a),new Cf(0,0,a.width,a.height)):fg(Ct(a.b))}function R_(a){return a.app.g.Ks()}function f1(a){JH(a.g);a.fn=!1;Cu(a);Bu(a,["seek"]);a.R().Wd&&Bu(a,["audio"])}f.getAdState=function(){return this.o};function S_(a,b){switch(b){case 1:a.o=1;a.H("publish_external_event","onAdStart");break;case 0:a.o=0,a.H("publish_external_event","onAdEnd")}}
function M_(a,b,c,d){d&&a.H("publish_external_event","onAdInfoChange",d);a.H("publish_external_event","onAdStateChange",b,Q_(a,!1),c)}
f.Ec=function(a){i1.G.Ec.call(this,a);var b=parseInt(a.getId(),10);this.ic&&!isNaN(b)&&(a=this.ic,n(b)&&(b=a.km(b)))&&(a.wd==b&&!b.Dc&&b.isVisible?b.show():(a.wd&&a.Ef(a.wd),Z0(a.D,b)?(a.wd=null,b=a.k[b.getId()],b.Zd||(b.Zd=!0,$0(a.Y,[b]))):(a.wd=b,b.subscribe("adBreakComplete",a.wn,a),b.Dc&&(a=a.Y,a.fn=!0,a.H("command_redirect_controls",a,["play_pause"],void 0),Au(a,["seek"]),a.R().Wd&&Au(a,["audio"]),a.pauseVideo()),b.show())))};
f.kd=function(a){i1.G.kd.call(this,a);var b=parseInt(a.getId(),10),c=1E3*this.b.getCurrentTime();this.ic&&!isNaN(b)&&c>a.start&&(2147483647==a.end||2147483646==a.end)&&(a=this.ic,(b=a.j[b])&&a.wd==b&&!b.Dc&&b.isVisible&&b.Bm&&b.g instanceof b0&&d0(b.g,"fullscreen"))};function L0(a,b){var c=b;"nl"==b&&(c=a.xe,c.o++,c=c.o.toString());a.B[c]=v();"bs"!=c&&"fb"!=c||xu(a,a.B,a.A)}function $0(a,b){a.H("command_update_cuerange_markers",b,a.b.getPlayerType())}
function c0(a){return Boolean(a.ka.B&&a.ic&&1<a.ic.b.length)}f.ke=function(a){this.H(a)};f.Kj=function(a){switch(a){case "breaks":return this.ic?this.ic.b.length:0}};f.Ej=function(){var a=[];this.R().Ab()&&a.push("breaks");return a};function j1(a,b,c){var d=["html5-center-transform","html5-center-overlay"];IE.call(this,["div","html5-remote-module",["div","ytp-remote-display-thumbnail","{{thumbnail}}"],["div",d.concat("ytp-remote-display-controls"),["div",d.concat("ytp-remote-display-error"),["div","ytp-remote-display-error-icon"],["p","ytp-remote-display-error-text","{{error}}"],["div","","{{reconnectbutton}}"]],["div","","{{loadingicon}}"]],["div","ytp-remote-display-status",["div","ytp-remote-display-status-icon"],["div","ytp-remote-display-status-text",
"{{statustext}}"],["div","ytp-remote-display-status-receiver","{{receiver}}"]],["div","ytp-remote-display-watch-while",["div","","{{maximizebutton}}"]]]);this.j=c;this.g=this.b=null;k1(this,a,b)}w(j1,IE);function l1(a){m1(a,X(0,"YTP_MDX_STATUS_CONNECTING"));n1(a,2)}function o1(a,b){m1(a,X(0,"YTP_MDX_STATUS_ERROR"));Ov(a.template,"error",b);n1(a,0)}function n1(a,b){var c=a.template.b["ytp-remote-display-error"];Qx(c);a.g.hide();a.b.hide();switch(b){case 0:Px(c);break;case 2:a.g.show()}}
function k1(a,b,c){var d=new cF(b.b.R().$b);d.show(b.b.getVideoData());R(a,d);a.g=new bF;N(a.g.element,"html5-center-overlay");N(a.g.element,"html5-center-transform");R(a,a.g);a.b=new VA(a.j,"ytp-button-remote-reconnect");a.b.na(X(0,"YTP_MDX_PLAYER_RECONNECT_BUTTON"));R(a,a.b);b=new VA(a.j,"ytp-button-remote-maximize");b.na(["div",["html5-center-transform","html5-center-overlay","ytp-button-remote-maximize-icon"]]);R(a,b);Ov(a.template,"reconnectbutton",a.b);Ov(a.template,"thumbnail",d);Ov(a.template,
"loadingicon",a.g);Ov(a.template,"maximizebutton",b);a.b.listen("click",function(){this.H("reconnect-button-click")},a);b.listen("click",function(a){a.stopPropagation();this.H("maximize-button-click")},a);l1(a);Ov(a.template,"receiver",c)}function m1(a,b){Ov(a.template,"statustext",b)};function p1(a,b,c,d){this.g=a;a.subscribe("onVolumeChange",this.Jo,this);d||a.subscribe("onPlaylistUpdate",this.Io,this);this.j=b;b.subscribe("reconnect-button-click",this.Lo,this);b.subscribe("maximize-button-click",this.Ko,this);this.b=c;c.subscribe("proxyStateChange",this.Mo,this);c.subscribe("remotePlayerChange",this.Kk,this);c.subscribe("remoteQueueChange",this.Lk,this);this.F=new $t;this.B=this.A=NaN;this.D=0;this.k={};this.C=new Vk(this.$u,1E3,this);R(this,this.C);this.I=0;this.o=d;this.o||
(a=ui("yt-player-remoteservice-listid"),b=this.g.b,b.getVideoData().La&&b.getVideoData().La!=a?this.b.Mk(b.getVideoData().videoId,q1(this.g),b.getCurrentTime()):this.b.oi(b.getVideoData().videoId,b.getCurrentTime()),b.hc()?ri("yt-player-remoteservice-listid",b.getVideoData().La):vi("yt-player-remoteservice-listid"));(a=this.g.b.mi("captions","track"))&&r1(this,a);this.Lk();this.Kk()}w(p1,Mh);f=p1.prototype;
f.J=function(){s1(this,new $t);t1(this);u1(this);this.g.ha("onVolumeChange",this.Jo,this);this.o||this.g.ha("onPlaylistUpdate",this.Io,this);Ph(this.j)||(this.j.ha("reconnect-button-click",this.Lo,this),this.j.ha("maximize-button-click",this.Ko,this));Ph(this.b)||(this.b.ha("proxyStateChange",this.Mo,this),this.b.ha("remotePlayerChange",this.Kk,this),this.b.ha("remoteQueueChange",this.Lk,this));v1(this,this.k);this.b=this.j=this.g=null};
f.aD=function(a,b){2==this.b.b||(w1(this)?this.oC.apply(this,arguments):this.nC.apply(this,arguments))};function x1(a,b){var c=a.g.b.getVideoData().Oa;a.g.H("command_progress",b,c)}f.nC=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":y1(this,this.g.b.getCurrentTime());break;case "control_seek":y1(this,c[0])}};
f.oC=function(a,b){if(1081==Nm(this.b).b)switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":case "control_seek":return}var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":1==Nm(this.b).b?z1(this):A1(this);break;case "control_play":A1(this);break;case "control_pause":z1(this);break;case "control_seek":this.I=c[0];Wk(this.C);break;case "control_subtitles_set_track":r1(this,c[0])}};
f.Jo=function(a){if(w1(this)){var b=Math.round(a.volume);a=!!a.muted;var c=Nm(this.b);b==c.volume&&a==c.muted||this.b.setVolume(b,a)}};f.Io=function(){var a=ui("yt-player-remoteservice-listid"),b=this.g.b;b.getVideoData().La!=a&&(this.b.Mk(B1(this),q1(this.g),b.getCurrentTime()),ri("yt-player-remoteservice-listid",b.getVideoData().La))};f.Lo=function(){u1(this);this.b.k.reconnect();l1(this.j)};
f.Ko=function(){var a=this.g,b={video_id:a.b.getVideoData().videoId},b=new Tr(b),b=TH(a.app.yb.R(),b,{});wu(a,b)};f.Mo=function(a,b){u1(this);2==b&&this.qr()};
f.Kk=function(){if(w1(this)){t1(this);var a=Nm(this.b);switch(a.b){case 1:C1(this);s1(this,new $t(8));break;case 3:s1(this,new $t(1));break;case 0:s1(this,new $t(2));this.C.stop();var b=this.g.b;(b=Ws(b.app,b.b||1))&&b.wg(!0);x1(this,this.g.b.getVideoData().Oa);break;case 2:s1(this,new $t(4));x1(this,Fm(a));break;case -1:s1(this,new $t);break;case -1E3:s1(this,new $t(128))}0==this.D&&(b=this.g.b,(b=Ws(b.app,b.b||1))&&b.wg(!1));this.D=a.b;a=Nm(this.b).j;b=this.k;(a||b?a&&b&&a.trackName==b.trackName&&
a.languageCode==b.languageCode&&a.languageName==b.languageName&&a.format==b.format&&a.kind==b.kind:1)||(this.k=a,v1(this,a));a=Nm(this.b);-1==a.volume||Math.round(this.g.b.Wo())==a.volume&&this.g.b.Xo()==a.muted||(this.g.b.setVolume(a.volume),a.muted?this.g.b.Yo():this.g.b.Zo())}else s1(this,new $t)};f.Lk=function(){w1(this)||(x1(this,0),t1(this),s1(this,new $t))};
function r1(a,b){if(w1(a)){if(b){var c={style:a.g.b.mi("captions","displaySettings")};ec(c,b);a.b.tm(B1(a),c)}else a.b.tm(B1(a),null);a.k=Nm(a.b).j}}function z1(a){a.b.pause();var b=Nm(a.b);x1(a,Fm(b));t1(a);s1(a,new $t(4))}function A1(a){a.b.play();C1(a);s1(a,new $t(8))}function y1(a,b){if(a.o){var c=a.g.b.hc();c?Tm(a.b,B1(a),b,c.Ga,a.g.b.getVideoData().La):Tm(a.b,B1(a),b)}else a.b.oi(B1(a),b);s1(a,new $t(1))}
function v1(a,b){if(b){var c=a.g.b.mi("captions","tracklist",{Aq:1});c&&(c=lb(c,function(a){return a.languageCode==b.languageCode&&a.name==b.trackName}),a.g.b.xp("captions","track",c))}else a.g.b.yp("captions")}f.$u=function(){var a=this.I;t1(this);x1(this,a);-1==Nm(this.b).b?y1(this,a):this.b.Fr(a);s1(this,new $t(1))};function w1(a){return Dm(Nm(a.b))==B1(a)}function B1(a){return a.g.b.getVideoData().videoId}
function C1(a){t1(a);var b=Nm(a.b);1==b.b&&s1(a,new $t(8));x1(a,Fm(b));a.A=L(u(function(){C1(this)},a),500)}function t1(a){M(a.A);a.A=NaN}f.qr=function(){u1(this);t1(this);var a=this.b.k.getReconnectTimeout();if(2!=this.b.b||isNaN(a))l1(this.j);else{var b=this.j;o1(b,X(0,"YTP_MDX_PLAYER_RECONNECT_TIME",{FORMATTED_TIME:Qv(a/1E3)}));b.b.show();this.B=L(u(this.qr,this),1E3)}};function u1(a){M(a.B);a.B=NaN}
function s1(a,b){u1(a);var c=a.F;a.F=b;var d=a.j;m1(d,X(0,"YTP_MDX_STATUS_CONNECTED"));n1(d,1);V(b,1)&&(d=a.j,m1(d,X(0,"YTP_MDX_STATUS_CONNECTED")),n1(d,2));V(b,128)&&o1(a.j,bf("YTP_MDX_PLAYER_ERROR"));d=a.g;Eu(d,V(b,8));d.app.H("presentingplayerstatechange",new yN(b,c))};function D1(a){bL.call(this,a);this.F=a.g.j;this.A={key:Xi(),name:X(0,"YTP_MDX_MY_COMPUTER")};this.k=this.j=null;this.I=[];this.g=null;this.B=new UC(this.F,"ytp-remote-button",X(0,"YTP_MDX_TOOLTIP"),"ytp-remote-button-active");R(this,this.B);this.B.listen("click",this.Yu,this);this.o=new oC(this.F,u(this.Wu,this),u(this.Xu,this));N(this.o.K(),"ytp-drop-down-background");R(this,this.o);this.C=new UA;this.C.b=X(0,"YTP_MDX_TITLE");this.C.element=this.o;this.C.A=this.va;R(this,this.C);this.D=!1}
w(D1,bL);var E1=["play_pause","seek"],F1=["captions"];f=D1.prototype;f.va="remote";f.gc="remote";f.Ja=function(){return this.app.yb.R().Fg};f.create=function(){D1.G.create.call(this);this.I.push(Xh("yt-remote-connection-change",this.jr,this));this.jr();this.H("module_menu_button_add",this.va,this.B);Gu(this,this.C);var a=this.b.app.I;this.o.getSelected()&&this.o.getSelected()!=this.A&&1!=a&&3!=a&&this.load()};f.destroy=function(){Zh(this.I);this.I.length=0;Oh(this.g);this.g=null;D1.G.destroy.call(this)};
f.load=function(){if(!this.loaded){D1.G.load.call(this);this.app.yb.R().qd&&(this.D=!0);kH(this.app,!1);YC(this.B,"ytp-remote-button-active");var a=this.o.getSelected();this.k=new j1(this,a.name,this.F);Bt(this.b,this.k.K());this.g&&(a=this.app.yb.R(),this.j=new p1(this,this.k,this.g,a.b.k||a.b.g));this.b.Hk();this.H("command_redirect_controls",this,E1,F1);var b=ho();0!=b&&((a=this.g?Dm(Nm(this.g)):null)&&a!=this.b.getVideoData().videoId||L(u(function(){this.H("command_progress",b,void 0)},this),
0))}};f.unload=function(){if(this.loaded){var a=Qn();a&&a.getLoungeToken()||(kH(this.app,this.D),this.D=!1);YC(this.B,"ytp-remote-button");rC(this.o,this.A);Cu(this);Qh(this.j,this.k);this.k=this.j=null;D1.G.unload.call(this)}};f.J=function(){this.destroy();Qh(this.j,this.k,this.g);this.g=this.k=this.j=null;D1.G.J.call(this)};f.ke=function(a,b){this.j&&this.j.aD.apply(this.j,arguments)};
function pt(a,b,c){var d=c||a.A;b.unshift(a.A);G1(a,b);d=lb(b,function(a){return a.key==d.key});rC(a.o,d);a.k&&Ov(a.k.template,"receiver",d.name)}function q1(a){var b=a.b.hc();if(b){a=[];for(var c=0;c<b.sc;c++)a[c]=Bs(b,c).videoId;return a}return[a.b.getVideoData().videoId]}f.jr=function(){var a=jo();a?(this.g=a,this.load(),this.j||(a=this.app.yb.R(),this.j=new p1(this,this.k,this.g,a.b.k||a.b.g))):(Oh(this.g),this.g=null,this.unload())};
f.Xu=function(a){Iu(this);if(a!=this.o.getSelected())if(rC(this.o,a),a.key==this.A.key)a=this.g?Nm(this.g):null,bo(),this.unload(),a&&Dm(a)==this.b.getVideoData().videoId&&(0<Fm(a)&&this.b.Ng(Fm(a)),1==a.b&&this.b.Mg());else{var b=0,c="",d=this.b.hc();d&&(b=d.Ga,c=this.b.getVideoData().La);b={videoIds:q1(this),listId:c,videoId:this.b.getVideoData().videoId,index:b,currentTime:this.b.getCurrentTime()};Zn(a,b);this.k&&Ov(this.k.template,"receiver",a.name);Oh(this.j);this.j=null;this.load()}};
function G1(a,b){z(b,function(a){a.toString=function(){return a.key}},a);pC(a.o,b)}f.Yu=function(a){var b=On();1==b.length&&"cast-selector-receiver"==b[0].key&&(a.stopImmediatePropagation(),a.preventDefault(),Gj())};f.Wu=function(a){return a.name};function H1(a,b){this.g=a;this.j=b;this.b=!1}function I1(a){var b;if(b=Hq("grc",""))Gq(""),b=!0;if(b){b=Gq("").span;var c=Gq("").tick;"grc"in c&&(b[a]=v()-c.grc)}else Hq(a,"")||Fq(a,void 0,"")}H1.prototype.info=function(a,b){Lq("")[a]=b};
function J1(a){var b=a.g;if(!b.Nk||!("detailpage"==b.ba||"leanback"==b.ba||"embedded"==b.ba&&b.Rh)||a.b)return NaN;a.b=!0;We("TIMING_ACTION")||Ue("TIMING_ACTION",a.g.oa);var b=a.j.C,c;for(c in b)Fq(c,b[c],"");a=a.j.B;for(var d in a)c=d,b=a[d],Lq("")[c]=b;if(d=Gg("visibilityState",document)){a=-1;switch(d){case "hidden":a=0;break;case "visible":a=1;break;case "prerender":a=2;break;case "unloaded":a=3}d=a;Lq("").yt_vis=d}Lq("").yt_pt="html5";var e;if(Hq("_start",""))if(c=Gq("").tick,d=Gq("").span,b=
Lq(""),a=q("yt.timing.reportbuilder_")){if(a=a(c,d,b,""))Kq(a),Mq(""),Dq();e=NaN}else{a={v:2,s:"youtube",action:We("TIMING_ACTION")};var g=We("TIMING_INFO")||{},h;for(h in g)b[h]=g[h];h=b.srt;delete b.srt;var k;h||0===h||(k=Cq.timing||{},h=Math.max(0,k.responseStart-k.navigationStart),isNaN(h)&&b.pt&&(h=b.pt));if(h||0===h)b.srt=h;b.h5jse&&(g=window.location.protocol+q("ytplayer.config.assets.js"),(g=Cq.getEntriesByName?Cq.getEntriesByName(g)[0]:null)?b.h5jse=Math.round(b.h5jse-g.responseEnd):delete b.h5jse);
c.aft||(c.aft=c.pbr&&c.pbs>c.pbr?c.pbr:c.pbs?c.pbs:c.vr&&c.cl&&c.cl>c.vr?c.cl:c.vr?c.vr:c.ol);c.vr&&c.gv&&(d.vl=Math.round(c.vr-c.gv));g=c._start;if(!Bq){k||(k=Cq.timing||{});var l;i:if(l=k,l.msFirstPaint)l=Math.max(0,l.msFirstPaint);else{var p=window.chrome;if(p&&(p=p.loadTimes,ja(p))){var p=p(),s=1E3*Math.min(p.requestTime||Infinity,p.startLoadTime||Infinity),s=Infinity===s?0:l.navigationStart-s;l=Math.max(0,Math.round(1E3*p.firstPaintTime+s)||0);break i}l=0}0<l&&l>g&&(c.fpt=l);l=k.redirectEnd-
k.redirectStart;0<l&&(d.rtime_=l);l=k.domainLookupEnd-k.domainLookupStart;0<l&&(d.dns_=l);l=k.connectEnd-k.connectStart;0<l&&(d.tcp_=l);l=k.connectEnd-k.secureConnectionStart;k.secureConnectionStart&&0<l&&(d.stcp_=l);l=k.responseStart-k.requestStart;0<l&&(d.req_=l);l=k.responseEnd-k.responseStart;0<l&&(d.rcv_=l);Bq=!0}.001>Math.random()&&Jq(d);for(var t in b)"_"!=t.charAt(0)&&(a[t]=b[t]);t={};k=[];for(var y in c)"_"!=y.charAt(0)&&(l=Math.max(Math.round(c[y]-g),0),t[y]=l,k.push(y+"."+l));a.rt=k.join(",");
y={};k=[];for(e in d)"_"!=e.charAt(0)&&(y[e]=d[e],k.push(e+"."+d[e]));a.it=k.join(",");Kq(a);(e=q("ytdebug.logTiming"))&&e(a,t,y);Mq("");Dq();e=t.aft+(h||0)}else e=NaN;return e}Jf("hidden",window.document);var nt={"api.invalidparam":2,auth:150,"html5.unsupportedads":5,"fmt.noneavailable":5,"fmt.decode":5,"fmt.unplayable":5,"html5.missingapi":5,"html5.missingapi.drm":5};function K1(a,b){ej.call(this);var c=b;c instanceof ah||(c=new ah(c));this.N=c;this.b=new jL(this.N.args||{});R(this,this.b);this.g=new mK(this);R(this,this.g);this.g.subscribe("templateready",this.Vt,this);this.g.subscribe("resize",this.bu,this);this.I=1;this.ya={};this.V=null;this.D=this.b.dk?Fs():{volume:100,muted:!1};this.jb=this.b.Ab()?new vt(this,1):new Is(this,1);R(this,this.jb);this.gb=new At(this);R(this,this.gb);this.yb=new At(this,1);R(this,this.yb);this.U=this.k=null;this.ea={};var c=
this.b,d=new DK;uE(c)&&(d.j=!0,d.B=.1);c.b.F&&(d.g=8,d.b=!0,d.j=!0);c.b.O&&(d.g=8,d.j=!0);c.b.xa&&(d.k=5,d.C=!0);c.b.la&&(d.A=12500);c.b.oa&&(d.o=.9);this.xa=new sK(d);c=new zN(this.b,1);d={};d.internalvideodatachange=this.It;d.liveviewshift=this.Pt;d.playbackready=this.Jt;d.playbackstarted=this.Kt;d.statechange=this.Lt;d.urlauthexpired=this.Wt;for(var e in d)c.subscribe(e,d[e],this);this.j=c;this.j.ea=this.xa;R(this,this.j);this.hb={beginseeking:this.Mt,endseeking:this.Ot,internalvideodatachange:this.du,
internalvideoformatchange:this.Xt,progresssync:this.Ut,seekto:this.cu,onLoadProgress:this.Qt,onVideoProgress:this.Yt,newlicensesession:this.au,playbackready:this.Rt,statechange:this.Tt,connectionissue:this.Nt,heartbeatparams:this.Zt,videoelementevent:this.eu};this.A=null;this.za=this.qa=-1;e=new EK;c=this.gb;e.g!=c&&(FK(e),e.k={},e.g=c);c={};c.loaded=u(this.jo,this);c.unloaded=u(this.ko,this);c.command_pause=L1(this.pauseVideo,this);c.command_play=L1(this.Nd,this);c.command_seek=L1(this.rf,this);
c.command_disable_controls=u(this.sg,this);c.command_enable_controls=u(this.Yh,this);c.command_redirect_controls=u(this.oo,this);c.command_stop_redirect_controls=u(this.$h,this);c.command_redirected_show_is_playing=u(this.g.lk,this.g);c.command_progress=u(this.kk,this);c.command_add_cuerange=u(this.no,this);c.command_remove_cuerange=u(this.po,this);c.command_remove_cuerange_all=u(this.lo,this);c.command_preroll_ready=u(this.qo,this);c.command_update_cuerange_markers=u(this.ro,this);c.command_show_dialog=
u(this.jk,this);c.command_clear_video_overlays=u(this.Vh,this);c.command_navigate_to_url=u(this.gk,this);c.command_log=u(this.ik,this);c.publish_external_event=u(this.Uh,this);c.module_menu_button_add=u(this.bo,this);c.module_menu_button_remove=u(this.co,this);c.module_menu_item_add=u(this.eo,this);c.module_menu_item_remove=u(this.fo,this);c.module_menu_show=u(this.ho,this);c.vss_segment=u(this.fu,this);e.o=c;this.C=e;R(this,this.C);this.oa=new H1(this.b,this.C);this.F=this.B=null;this.L={};this.T=
null;this.P={};this.ca=null;this.Wa=0;this.Ra=!1;this.O=!0;this.o=null;this.la=1;this.aa=this.Ca=null;this.Ha=this.Ia=!1;this.wa=null;this.eb=0;this.mb=Q(window,"popstate",u(this.St,this),!1);e=new Tr(this.N.args);is(e)&&(BN(this.j,e,u(this.Zh,this)),"detailpage"==this.b.ba&&(c=e.videoId,c=(d=ui("yt-player-restore-playhead"))?d[c]:void 0,c&&(e.Ta=c)),vi("yt-player-restore-playhead"),this.b.Rh&&HN(this.j));I1("fs");this.g.initialize(a);nH(this,"init")}w(K1,ej);K1.g="defaultcontext";K1.b={};
K1.create=function(a,b){try{var c=K1.j(a);if(K1.b[c]){try{K1.b[c].dispose()}catch(d){$e(d)}K1.b[c]=null}var e=new K1(a,b);Nh(e,function(){K1.b[c]=null});return K1.b[c]=e}catch(g){throw $e(g),g;}};K1.j=function(a){return r(a)?a:"player"+la(a)};
function M1(a){a.k=DE.getTag(!0);a.U=a.k;a.A&&RN(a.A,a.k);Yt(a.k,a.la);a.b.Wd?(a.aa&&Tg(a.aa),a.aa=Q(a.k,"volumechange",u(a.fz,a),!1)):a.k.setVolume(a.D.volume,a.D.muted);var b=a.g;b.b=a.k;b.qa=new Cf(0,0,0,0);b.b.parentNode||b.g.appendChild(b.b);N(b.b,"video-stream");N(b.b,"html5-main-video");var c=b.app.R();c.Ob&&c.Pd&&b.b.setAttribute("controls",!0);c.ri&&b.b.setAttribute("webkit-playsinline","");b.b.setAttribute("x-webkit-airplay","allow");c.Uk&&(b.ya=Q(b.b,"click",u(b.b.play,b.b)));a.b.Pa=a.k;
St(a.k)}function N1(a){if(a.k){a.aa&&(Tg(a.aa),a.aa=null);a.A&&NH(a.A);var b=a.g;b.b&&(gd(b.b),b.b=null);a.b.Pa=null;DE.releaseTag(a.k);a.k=null}}function KH(a,b){a.b.Qb?(a.T&&(Pf(a.k,a.T.left,a.T.top),$f(a.k,Ff(a.T)),a.T=null),Xt(a.k),NH(a.A),RN(a.A,a.k),Yt(a.k,a.la)):DE.releaseTag(b)}
function V_(a,b){if(a.A!=b){a.A&&(FK(a.C),Y_(a));if(b!=a.j){var c=b.getPlayerType();a.ea[c]=b}a.A=b;b.ea=a.xa;a.k&&RN(b,a.k);var c=a.hb,d;for(d in c)b.subscribe(d,c[d],a);O1(a,b,b.getVideoData());b.P.b&&P1(a,"dataloaded",b,b.getVideoData())}}function Y_(a){NH(a.A);var b=a.A,c=a.hb,d;for(d in c)b.ha(d,c[d],a);b=a.A;b!=a.j&&(c=b.getPlayerType(),a.ea[c]==b&&delete a.ea[c]);a.A=null}function Ws(a,b){return b?1==b?a.j:a.ea[b]||null:a.A}
function Q1(a){var b=a.C,c=[PB.g,eI,dw,CJ,qE,JJ,NJ,yE,TJ];c.push(EI.b);z(c,b.Sq,b);a.H("videoready",a.getVideoData())}f=K1.prototype;f.Jt=function(){R1(this,5)};f.Rt=function(a){6!=this.I&&(S1(this),a=a.getPlayerState(),V(a,8)&&!V(a,2)&&this.Nd())};function st(a){!a.F&&a.yb.R().Fg&&(a.F=new D1(a),T1(a,a.F));if(a.F){var b=Vn();pt(a.F,On(),b);var c=a.F;c&&!c.Ac&&c.Ja(a.yb)&&c.create();b&&a.F.load()}}
function T1(a,b){R(a,b);b.subscribe("loaded",a.jo,a);b.subscribe("unloaded",a.ko,a);b.subscribe("command_pause",L1(a.pauseVideo,a));b.subscribe("command_play",L1(a.Nd,a));b.subscribe("command_seek",L1(a.rf,a));b.subscribe("command_disable_controls",a.sg,a);b.subscribe("command_enable_controls",a.Yh,a);b.subscribe("command_redirect_controls",a.oo,a);b.subscribe("command_stop_redirect_controls",a.$h,a);b.subscribe("command_redirected_show_is_playing",a.g.lk,a.g);b.subscribe("command_progress",a.kk,
a);b.subscribe("command_add_cuerange",a.no,a);b.subscribe("command_remove_cuerange",a.po,a);b.subscribe("command_remove_cuerange_all",a.lo,a);b.subscribe("command_update_cuerange_markers",a.ro,a);b.subscribe("command_preroll_ready",a.qo,a);b.subscribe("command_show_dialog",a.jk,a);b.subscribe("command_clear_video_overlays",a.Vh,a);b.subscribe("command_log",a.ik,a);b.subscribe("command_navigate_to_url",a.gk,a);b.subscribe("publish_external_event",a.Uh,a);b.subscribe("module_menu_button_add",a.bo,a);
b.subscribe("module_menu_button_remove",a.co,a);b.subscribe("module_menu_item_add",a.eo,a);b.subscribe("module_menu_item_remove",a.fo,a);b.subscribe("module_menu_show",a.ho,a);b.subscribe("command_log_timing",a.C.D,a.C)}function rt(a){a&&a.Ac&&a.destroy()}f.Ua=function(a,b){this.H.apply(this,arguments);this.$e.apply(this,arguments)};f.Mh=function(a,b){var c=vb(arguments);this.b.Ab()&&this.A&&c.push(this.A.getPlayerType());this.H.apply(this,c)};f.R=function(){return this.b};f.getVideoData=function(){return this.A.getVideoData()};
function ot(a){return a.j.getVideoData()}f.Zh=function(){var a=qL(this.b);ra(a,IK(this.C));this.B&&ra(a,this.B.bh());a.fs=this.b.tb;a.volume=Math.round(this.D.volume);a.mos=this.D.muted?1:0;return a};f.jk=function(a){this.g.Tg(a)};
f.Vt=function(){this.b.ii=this.g.element;this.g.Sg();var a=this.jb;a.g=this.g.element;for(var b in a.k)a.g[b]=a.k[b];for(b in a.o)a.g[b]=a.o[b];a=u(this.gx,this);b=document;var c;"onfullscreenchange"in b?c="fullscreenchange":(c=Bg+"fullscreenchange",c="on"+c in b?c:null);"msfullscreenchange"==c&&(c="MSFullscreenChange");this.Ca=c?Q(b,c,a):null;b=this.N.args;if(nq()){M1(this);a=ot(this);c=this.g.Sb();this.b.Td=c;this.Ua("onVolumeChange",this.D);"detailpage"==this.b.ba?wt(this):b&&(b.playlist||b.list||
b.api)&&(U1(this,b),is(a)||(b=this.o,c=u(this.Sp,this),b.Le=c,b.ce&&L(b.Le,0)));if(b=this.N.args.jsapicallback)ja(b)||(b=q(b)),b&&L1(u(b,m,this.b.Gk),m);Fn(this.b.b.g);this.b.Fg=qt(this.b)&&!D(On());V_(this,this.j);this.b.Rh&&is(a)?V1(this):"leanback"!=this.b.ba&&W1(this)}else $v(this.j,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0);this.g.Ml()};function W1(a){a.H("initializingmode");R1(a,2)}
function V1(a){V(a.getPlayerState(),128)||(a.H("initializingmode"),V_(a,a.j),R1(a,3),a.b.Qb||(N1(a),M1(a),RN(a.j,a.k)),MN(a.j),X1(a,3))}function L1(a,b){return function(){var c=Array.prototype.slice.call(arguments);L(function(){a.apply(b||this,c)},0)}}f.gk=function(a,b){b?eK(this,a):(window.ytspf||{}).enabled?spf.navigate(a):window.location=ae(a,{})+""};
f.ik=function(a,b,c){var d=Ws(this);b.event=a;d.o&&(a=d.o,b.rt=bN(a.b).toFixed(3),ra(b,qN(a.b)),ra(b,sN(a)),delete b.fexp,b=Ei(a.b.g.qb+"player_204",b),qf(b,c))};function Ts(a,b){if(!isNaN(b)&&a.k){var c=1,c=a.b.zg?Vq:[1],c=1>b?lb(c,function(a){return a>=b}):nb(c,function(a){return a<=b});a.la!=c&&(a.la=c,a.j==a.A&&Yt(a.k,c),a.H("onPlaybackRateChange",c))}}function Us(a,b){var c=Ws(a,b);return c&&c.getVideoData().b?c.getVideoData().b.video.b:"unknown"}
function bH(a){return(a=Ws(a,void 0))?Up(KM(a.qa,a.b)):"unknown"}function Vs(a,b,c,d){if(c=Ws(a,c))a=a.b.o,"mobile"!=a&&"tablet"!=a&&(b=Op(b,d||b,!0),LJ(c,"m",b))}f.getCurrentTime=function(a){return(a=Ws(this,a))?a.getCurrentTime():0};function Ms(a,b){var c=Ws(a,b);return c?c.Sd():0}function dt(a,b){var c=a.j.getDebugInfo(b);c.debug_playbackQuality=Us(a);c.debug_date=(new Date).toString();delete c.uga;return uf(c)}
function IJ(a,b){var c=a.getVideoData(),d=!!c.wa||!!c.Pf||!b;a.H("threedenabled",d);d&&a.k.setAttribute("mozStereoMode","1");EJ()&&(a.k.setAttribute("mozStereoMode",d?"1":"0"),c=dq[d?c.EB:0],d=document.createElement("NvStereoExtDataElement"),d.setAttribute("stereoMode",c),dd(document.documentElement,d),Yg(d,"3DModeEvent"))}f.getPlayerState=function(a){return(a=Ws(this,a||1))&&a.getPlayerState()};
f.eu=function(a){var b=a.target;switch(a.type){case "loadedmetadata":I1("fvb");this.Wa=L(u(this.g.Zf,this.g),16);break;case "loadstart":I1("gv");break;case "progress":case "timeupdate":I1("1pb"),2<=Nt(b.buffered)&&I1("l2s")}};f.au=function(a){if(this.Ha){var b=this.eb.toString();this.eb++;this.wa[b]=a;a={request:vb(a.b[0]?a.b[0].message:null),sessionId:b,system:a.F.b,url:a.A};this.H("onNewLicenseSession",a)}else a.start()};f.Qt=function(a,b){this.Mh("onLoadProgress",b)};
f.Yt=function(a,b){this.Mh("onVideoProgress",b)};f.Ut=function(){this.kk()};f.kk=function(a,b){this.H("progresssync",a,b)};
f.Lt=function(a){var b;(b=!V(a.state,2))||(this.o&&("embedded"==this.b.ba||this.b.tb)&&cI(this)?(gt(this),b=!0):b=!1,b=!b);b&&(V(a.state,2)&&(this.pauseVideo(),V(a.b,32)&&this.j.Oi(),this.b.$b&&dH(this,!1)),V(a.state,128)&&(b=a.state,Ss(this),b=b.b,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=bf(b.messageKey)),this.H("onError",nt[b.errorCode]||5),this.H("onDetailedError",b)),this.H("applicationplayerstatechange",a),V(a.state,2)&&(a=this.getVideoData(),a.Za&&!a.nb&&
this.sg(["play_pause"])))};f.Tt=function(a){!V(a.state,32)&&0>aw(a,16)&&(!V(a.state,8)||this.k.ended&&!V(a.state,2)||this.Nd());this.H("presentingplayerstatechange",a);this.$e("onStateChange",a);X1(this,gu(a.state))};function O1(a,b){FK(a.C);Ts(a,1);a.Ua("videoplayerreset",b)}
function P1(a,b,c,d){if(a.k){if("dataloaded"==b)if(kL(c.R(),d.k),a.A==a.j){Fn(a.b.b.g);var e=qt(a.b)&&!!Vn(),g;if(g=!e)g=ot(a).Ao&&!a.b.$b;if(g){var h="YTP_DEVICE_FALLBACK";uc||pr("iemobile")||pr("xbox")&&pr("trident")||pr("nintendo wiiu")||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");$v(a.j,"html5.unsupportedads",h,void 0)}else if(g=ot(a),!(g.j||g.ve||g.te||g.ca||g.aa)||e||FN(a.j)){js(g);e&&R1(a,6);e=i1.Ja;!a.B&&e(a)&&(a.B=new i1(a),a.B&&T1(a,a.B));try{(h=a.B)&&!h.Ac&&h.Ja(a.yb)&&h.create()}catch(k){$e(k),
a.j&&QN(a.j,"ad")}st(a);Q1(a)}else $v(a.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else Q1(a);1==c.getPlayerType()&&(a.getVideoData().uk?(a.V=bc(a.D),a.sg(["audio"]),h=a.k,h.Sk=!0,h.muted=!0):(Rs(a,"audio")&&a.Yh(["audio"]),a.k.Sk=!1,a.V&&(lH(a,a.V),a.V=null)),h=a.getVideoData(),h.Za&&!a.b.Bk?$v(a.j,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0):h.Za&&!h.nb?a.sg(["seek"]):a.Yh(["seek"]),d.T||d.o.focEnabled||d.o.rmktEnabled||a.b.sf)&&(h=a.getVideoData(),e=1E3*h.Oa,
Y1(a,"part2viewed",1,e),a.b.b.o&&Y1(a,"engagedview",Math.max(1,1E3*h.re),e),Y1(a,"videoplaytime25",.25*e,e),Y1(a,"videoplaytime50",.5*e,e),Y1(a,"videoplaytime75",.75*e,e),Y1(a,"videoplaytime100",e,2147483647),Y1(a,"conversionview",e,2147483647));a.Ua("videodatachange",b,d,c.getPlayerType())}}f.It=function(a){if("newdata"==a){rt(this.B);rt(this.F);this.Ia=!1;a=[];for(var b in this.L)Rs(this,b)&&a.push(b);this.L={};0<a.length&&this.H("controlsenabled",a);this.$h();this.ya={};this.oa.b=!1}};
f.du=function(a,b,c){"newdata"==a?O1(this,b):P1(this,a,b,c)};f.Xt=function(a,b){var c=this.A.getVideoData();a==c&&this.H("onPlaybackQualityChange",a.b.video.b,b)};function wt(a){var b=wH();if(b&&0<=b.index){var c=[];z(b.videoIds,function(a){if(a=b.videoData?b.videoData[a]:void 0)a.video_id=a.id,c.push(a)});U1(a,{videoList:c,loop:b.autoPlay,index:b.index,list:b.list,playlist_title:b.listTitle,playlist_description:b.listDescription,author:b.author,fetch:0})}}
function U1(a,b){if(a.o){var c=Zs(a.C,"playlist");if(c){var d=a.C;if(!d.g||c.Om(d.g))c.destroy(),rb(d.b,c)}}Oh(a.o);b?(a.o=new qs(b),a.C&&(c=a.C,z([EI.b],c.Sq,c))):a.o=null}function Y1(a,b,c,d){b in a.ya||(c=new hu(c,d,{id:b,priority:1}),c.ab.subscribe("onEnter",a.Ms,a),c.ab.subscribe("onExit",a.Ms,a),a.j.A.xi(c),a.ya[b]=c)}
f.Ms=function(a){var b=a.getId(),c=ot(this);"part2viewed"==b?(c.T&&!this.b.b.o&&qf(c.T),c.kf&&qf(c.kf)):"conversionview"==b?vN(this.j.o):"engagedview"==b&&this.b.b.o&&qf(c.T);if(c.qa){var d;d=a.getId();d=Ei(c.qa,{label:d});qf(d)}switch(b){case "videoplaytime25":qf(c.bk);break;case "videoplaytime50":qf(c.ek);break;case "videoplaytime75":qf(c.ck);break;case "videoplaytime100":qf(c.ak)}this.b.sf&&this.b.sf[a.getId()]&&(b=this.b.sf[a.getId()],c=x(b)?!1:-1!=b.search(Oe)||-1!=b.search(Me),qf(b,void 0,c));
this.j.A.Eg(a)};function R1(a,b){b!=a.I&&(2==b&&(X1(a,-1),X1(a,5)),a.I=b,a.H("appstatechange",b))}function X1(a,b){a.A&&2==a.A.getPlayerType()?a.za!=b&&(a.za=b,a.Mh("onAdStateChange",b)):a.qa!=b&&(a.qa=b,a.Mh("onStateChange",b))}function nH(a,b){if(a.b.b.C){var c={controlClicked:b};a.b.tb&&(c.fs=1);a.ik("controlclicked",c)}}f.rf=function(a,b,c,d){(d=Ws(this,d))&&NN(d,a,!1!=b,c)};f.cu=function(a,b){var c=a.getVideoData();if(1==this.I||2==this.I)c.Ta=b;2==this.I?V1(this):this.Ua("seekto",b)};f.Mt=function(){this.Ua("beginseeking")};
f.Ot=function(){this.Ua("endseeking")};f.setVolume=function(a){var b=this.D;b.volume=a;lH(this,b)};function lH(a,b){a.D=b;b.volume=Jb(b.volume,0,100);if(a.b.dk&&!a.b.Wd){var c={};c.volume=isNaN(b.volume)?Fs().volume:Jb(b.volume,0,100);c.muted=void 0==b.muted?Fs().muted:b.muted;ri("yt-player-volume",c,2592E3)}Rs(a,"audio")?a.V&&(a.V=bc(b),a.Ua("onVolumeChange",b)):(S1(a),a.b.Wd||a.Ua("onVolumeChange",b))}function Ns(a){var b=a.D;b.muted=!0;lH(a,b)}
function Os(a){var b=a.D;b.muted=!1;5>b.volume&&(b.volume=5);lH(a,b)}function $s(a,b,c){b.list=b.list||null;b=new Tr(b);var d;if(d=a.b.b.k&&"detailpage"==a.b.ba&&a.F&&a.F.loaded){d=b.videoId;var e;e=a.F;e=e.g?Dm(Nm(e.g)):"";d=d!=e}if(d)return!1;(d=a.getVideoData())&&d.La!=b.La&&U1(a,null);b.La&&"detailpage"==a.b.ba&&wt(a);return Z1(a,b,void 0,c)}
function Z1(a,b,c,d){Hq("_start","")||(Fq("_start",void 0,""),a.oa.info("srt",0));var e=Ws(a,d);if(!e)return!1;M(a.Wa);b.tf=Aq(b.tf,c);Ss(a,d);BN(e,b,u(a.Zh,a));if(!GN(e))return!1;e==a.j?(R1(a,1),V1(a)):MN(e);return!0}function it(a,b){var c=Z1(a,b);Ks(a,c,void 0)}function Ks(a,b,c){c=Ws(a,c);b&&c==a.j&&(c.getVideoData().se=!0)}function at(a,b,c){b.list=b.list||null;$1(a,new Tr(b),c)}function $1(a,b,c){var d=Ws(a,c);d&&(Ss(a,c),BN(d,b,u(a.Zh,a)),GN(d)&&(kL(d.R(),b.k),d==a.j&&(R1(a,1),W1(a))))}
function ft(a,b,c,d,e){if(ka(b)&&!ga(b)){c="playlist list listType index startSeconds suggestedQuality".split(" ");d={};for(e=0;e<c.length;e++){var g=c[e];b[g]&&(d[g]=b[g])}b=d}else d={index:c,startSeconds:d,suggestedQuality:e},r(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;U1(a,b);b=a.o;a=u(a.Sp,a);b.Le=a;b.ce&&L(b.Le,0)}f.Sp=function(){var a=Bs(this.o);this.getVideoData().rg||!this.O?it(this,a):a&&$1(this,a)};function cI(a){var b=wH();return!(!a.o||!ys(a.o)||b&&!b.autoPlay)}
function gt(a){a.o&&(a.o.ce?ys(a.o)&&it(a,zs(a.o)):(zs(a.o),a.O=!1))}function ht(a){if(a.o)if(a.o.ce){var b=a.o;(b.Uf||0<=b.Ga-1)&&it(a,Cs(a.o))}else Cs(a.o),a.O=!1}function wH(){var a=q("yt.www.watch.lists.getState");return a?a():null}function jt(a){return a.o&&a.o.j?a.o.j.toString():null}function ct(a,b){var c=null;if(b){var d=a.getCurrentTime(1),e=Ms(a,1);10<d&&10<e-d&&(c={t:Math.floor(d)})}return TH(a.b,ot(a),null,c)}
function et(a,b,c,d,e,g){b={id:b};"chapter"==g?(b.style="ytp-chapter-marker",b.visible=!0):isNaN(e)||(b.style="ytp-ad-progress",b.visible=!0);c=new hu(1E3*c,1E3*d,b);c.ab.subscribe("onEnter",a.CC,a);c.ab.subscribe("onExit",a.DC,a);a.j.A.xi(c);a.H("cuerangesadded",[c]);return!0}f.CC=function(a){this.H("onCueRangeEnter",a.getId())};f.DC=function(a){this.H("onCueRangeExit",a.getId())};f.no=function(a,b){var c=Ws(this,b);c&&(c.A.xi.apply(c.A,a),this.H("cuerangesadded",a))};
f.po=function(a,b){var c=Ws(this,b);c&&(c.A.Eg.apply(c.A,a),this.H("cuerangesremoved",a))};f.lo=function(a,b){var c=Ws(this,b);if(c){for(var c=c.A,d=c.j.length-1;0<=d;d--)c.j[d].namespace==a&&lu(c,d);c.kc()}};f.ro=function(a){this.H("cuerangemarkersupdated",a)};f.qo=function(a,b){var c=Ws(this,b);c&&QN(c,a)};
f.Kt=function(){a2(this,J1(this.oa));if(!this.Ia&&"detailpage"==this.b.ba){this.Ia=!0;var a=this.j;if(a.O&&a.O.b){var b={},c={};a.b.videoId&&(b.docid=a.b.videoId);a.b.xb&&(b.plid=a.b.xb);b.cpn=a.b.Da;b.ad_cpn=a.O.b;var d=v()-a.O.g;a.O.j?c.astv=d:c.actv=d;var a={v:2,s:"youtube",action:"watch7ad_html5"},d=[],e;for(e in c)"_"!=e.charAt(0)&&d.push(e+"."+c[e]);a.rt=d.join(",");for(var g in b)"_"!=g.charAt(0)&&(a[g]=b[g]);b=We("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);Kq(a)}}this.Ra=!1};
function a2(a,b){if(!isNaN(b)&&0<b&&a.j){var c=a.j;c.o&&0<b&&(c.o.k.j.aft=[b])}}f.jo=function(a){"remote"==a?(R1(this,6),rt(this.B)):this.Mh("onApiChange")};f.ko=function(a){"remote"==a&&W1(this)};f.fz=function(){if(!Rs(this,"audio")){var a={volume:100*this.k.volume,muted:this.k.muted};this.D=bc(a);this.Ua("onVolumeChange",a)}};function S1(a){var b=a.b.Wd?Tr.b:a.getVideoData().pq;a.k.setVolume(a.D.volume*b,a.D.muted)}f.gx=function(){b2(this,!!$g())};f.St=function(){b2(this,!1)};
function b2(a,b){a.g.Dm(b);if("detailpage"==a.b.ba&&!b){var c=ot(a);if(We("VIDEO_ID")!=c.videoId){var d=a.getCurrentTime(),e={};e[c.videoId]=d;ri("yt-player-restore-playhead",e,172800);a.pauseVideo()}}a.b.tb=b;a.g.Zf();a.Ua("fullscreentoggled",b);c={fullscreen:b,videoId:ot(a).videoId};jt(a)&&(c.listId=jt(a));a.H("onFullscreenChange",c)}f.bu=function(){vH(this)};f.Vh=function(){this.Ua("clearvideooverlays")};f.bo=function(a,b){this.Ua("menu_button_add",a,b)};
f.co=function(a){this.Ua("menu_button_remove",a)};f.eo=function(a){this.Ua("menu_item_add",a)};f.fo=function(a){this.Ua("menu_item_remove",a)};f.ho=function(a){this.Ua("menu_show",a)};f.fu=function(a){(a=Ws(this,a))&&a.o&&ZM(a.o.g)};f.Pt=function(a){this.Ua("liveviewshift",a)};
f.Uh=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(I1("vr"),bO(this.A),a2(this,J1(this.oa)));0==c&&e&&(this.j.O=e);var g=this.b;"leanback"==g.ba&&g.Ab()&&(0==c?this.U=this.k:this.U=d,this.H("onAdStateChange",c,e.video_id))}else this.H.apply(this,arguments)};f.$e=function(a,b){this.C.F.apply(this.C,arguments);this.B&&this.B.H.apply(this.B,arguments);this.F&&this.F.H.apply(this.F,arguments)};
f.Nd=function(a){(a=Ws(this,a))&&(2==this.I?V1(this):V(a.getPlayerState(),2)?this.rf(0):TN(a))};f.pauseVideo=function(a){(a=Ws(this,a))&&a.pauseVideo()};function Ss(a,b){var c=Ws(a,b);c&&1!=a.I&&2!=a.I&&(PN(c),1==b&&rt(a.B))}function Ps(a,b){if(!Rs(a,"play_pause")){var c=a.P.play_pause?a.ca:null;c?c.ke("control_play"):a.Nd(b)}}function Qs(a,b){if(!Rs(a,"play_pause")){var c=a.P.play_pause?a.ca:null;c?c.ke("control_pause"):a.pauseVideo(b)}}
function eH(a){var b;if(b=!Rs(a,"play_pause"))(b=!a.b.dc||2!=a.I)||(b=DE.hasTags(void 0));b&&((b=a.P.play_pause?a.ca:null)?b.ke("control_toggle_play_pause"):(b=Ws(a,void 0))&&(V(b.j,8)&&!V(b.j,2)?a.pauseVideo(void 0):a.Nd(void 0)))}function Ls(a,b,c,d,e){if(!Rs(a,"seek")){var g=a.P.seek?a.ca:null;g?g.ke("control_seek",b):a.rf(b,c,d,e)}}function kH(a,b){dH(a,!1);b!=a.b.qd&&(a.b.qd=b,a.H("SIZE_CLICKED",b),a.g.rh())}
function dH(a,b){if(a.b.tb!=b)if(Zg())if(b){var c=a.g.element,d=Hg(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=Hg(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else b2(a,b)}function Lz(a){dH(a,!a.b.tb)}function eK(a,b){dH(a,!1);a.pauseVideo();mI(b)}function mH(a){var b=a.getVideoData();"detailpage"==a.b.ba&&a.b.tb&&We("VIDEO_ID")==b.videoId?dH(a,!1):eK(a,ct(a,!0))}f.getAdState=function(){return this.B?this.B.getAdState():-1};
function vH(a){var b=a.g.Sb();a.b.Td=b;if(a.k){b=!1;if(0!=a.k.readyState&&a.A){var c=new G(a.k.videoWidth,a.k.videoHeight),d=a.getVideoData();Mb(d.Wa,c)||(d.Wa=c,b=!0)}c=SE(a.g);Ef(a.b.Kq,c)||(a.b.Kq=c,b=!0);c=SE(a.g);Ef(a.b.Bf,c)||(a.b.Bf=c,b=!0);b&&(LJ(Ws(a),"r"),a.H("resize",a.g.pd()),a.Ua("onResize"))}}function Rs(a,b){return!(!a.L[b]||!a.L[b].length)}
f.sg=function(a,b){b=b||K1.g;var c=[];z(a,function(a){this.L[a]?0>this.L[a].indexOf(b)&&this.L[a].push(b):(this.L[a]=[b],c.push(a))},this);0<c.length&&this.H("controlsdisabled",c)};f.Yh=function(a,b){b=b||K1.g;var c=[];z(a,function(a){if(Rs(this,a)){var e=this.L[a].indexOf(b);0<=e&&this.L[a].splice(e,1);0==this.L[a].length&&c.push(a)}},this);0<c.length&&this.H("controlsenabled",c)};f.oo=function(a,b,c){this.$h();this.ca=a;b&&z(b,function(a){this.P[a]=!0},this);c&&GK(this.C,a,c)};
f.$h=function(){this.ca=null;this.P={};HK(this.C)};function kt(a,b,c,d){c=a.B&&b==a.B.va?a.B.Kj(c,d):b&&c?(a=Zs(a.C,b))?a.Kj(c,d):null:null;return c}f.Wt=function(){if(!this.Ra){this.Ra=!0;var a=this.getVideoData(),b=Ws(this).getCurrentTime();$s(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.Nt=function(){this.Ua("CONNECTION_ISSUE")};f.Zt=function(a){this.Ua("heartbeatparams",a)};
f.J=function(){Ln();N1(this);this.Ca&&Tg(this.Ca);Tg(this.mb);Qh(Tb(this.ea),this.o);this.U=null;M(this.Wa);K1.G.J.call(this)};var c2=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};ba("yt.uix.widgets_",c2,void 0);function d2(a){a=a.getInstance();var b=Y(a);b in c2||(a.register(),lF(a,"yt-uix-dispose-"+b,a.dispose),c2[b]=a)};d2(eJ);d2(oF);q("yt.tracking.share")||ba("yt.tracking.share",gI,void 0);q("yt.net.ping")||ba("yt.net.ping.send",qf,void 0);q("yt.window.popup")||(ba("yt.window.popup",nI,void 0),ba("yt.window.open",mI,void 0));ba("yt.player.Application.create",K1.create,void 0);var e2=q("ytcsi.tick");e2&&e2("pe");})();
