(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.Db?a.Db:a.Db=new a}}
function fa(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 ga(a){return null!=a}function ha(a){return"array"==fa(a)}function ia(a){var b=fa(a);return"array"==b||"object"==b&&"number"==typeof a.length}function s(a){return"string"==typeof a}function ja(a){return"number"==typeof a}function ka(a){return"function"==fa(a)}function la(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ma(a){return a[na]||(a[na]=++oa)}
var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(a,b,c){return a.call.apply(a.bind,arguments)}function qa(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")?pa:qa;return u.apply(null,arguments)}function ra(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 sa(a,b){for(var c in b)a[c]=b[c]}var v=Date.now||function(){return+new Date};function ta(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.KE=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 ua(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ua);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}w(ua,Error);ua.prototype.name="CustomError";var va;function wa(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function xa(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 ya(a){return/^[\s\xa0]*$/.test(a)}function x(a){return ya(za(a))}function Aa(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function Ba(a){return encodeURIComponent(String(a))}function Ca(a){return decodeURIComponent(a.replace(/\+/g," "))}
function Da(a){if(!Ea.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Fa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ga,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ha,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ia,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ja,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ka,"&#0;"));return a}var Fa=/&/g,Ga=/</g,Ha=/>/g,Ia=/"/g,Ja=/'/g,Ka=/\x00/g,Ea=/[\x00&<>"']/;function La(a){return Ma(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 Ma(a,b){return-1!=a.indexOf(b)}function Qa(a,b){return Ma(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 za(a){return null==a?"":String(a)}function Ua(a){return Array.prototype.join.call(arguments,"")}
function Va(a,b){for(var c=0,d=Aa(String(a)).split("."),e=Aa(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"),r=RegExp("(\\d*)(\\D*)","g");do{var t=p.exec(k)||["","",""],y=r.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&&ya(a)?NaN:b}function ab(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function bb(a){var b=s(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(s(a))return s(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(s(a))return s(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=s(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=s(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},A=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=s(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.some?function(a,b,c){return eb.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(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=s(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 B(a,b,c){b=lb(a,b,c);return 0>b?null:s(a)?a.charAt(b):a[b]}
function lb(a,b,c){for(var d=a.length,e=s(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 mb(a,b){var c=nb(a,b,void 0);return 0>c?null:s(a)?a.charAt(c):a[c]}function nb(a,b,c){for(var d=s(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 E(a){return 0==a.length}function ob(a){if(!ha(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function pb(a,b){C(a,b)||a.push(b)}
function qb(a,b){var c=fb(a,b),d;(d=0<=c)&&rb(a,c);return d}function rb(a,b){eb.splice.call(a,b,1)}function sb(a,b){var c=lb(a,b,void 0);0<=c&&rb(a,c)}function tb(a){return eb.concat.apply(eb,arguments)}function ub(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 vb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ha(d)||(e=ia(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 wb(a,b,c,d){eb.splice.apply(a,xb(arguments,1))}function xb(a,b,c){return 2>=arguments.length?eb.slice.call(a,b):eb.slice.call(a,b,c)}
function yb(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++],g=la(e)?"o"+ma(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,g)||(b[g]=!0,a[c++]=e)}a.length=c}function zb(a,b,c){c=c||Ab;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 Bb(a,b){a.sort(b||Ab)}function Cb(a,b){var c=Ab;Bb(a,function(a,e){return c(a[b],e[b])})}
function Db(a,b,c){if(!ia(a)||!ia(b)||a.length!=b.length)return!1;var d=a.length;c=c||Eb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function Ab(a,b){return a>b?1:a<b?-1:0}function Eb(a,b){return a===b}function Fb(a,b,c){c=zb(a,b,c);0>c&&wb(a,-(c+1),0,b)}function Gb(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];ha(d)?b.push.apply(b,Gb.apply(null,d)):b.push(d)}return b};function Hb(a,b,c){return Math.min(Math.max(a,b),c)}function Ib(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 Jb(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=ja(b)?b:a;this.x*=a;this.y*=c;return this};function G(a,b){this.width=a;this.height=b}function Kb(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 Lb(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=ja(b)?b:a;this.width*=a;this.height*=c;return this};function Mb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Nb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Ob(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Pb(a){var b=0,c;for(c in a)b++;return b}function Qb(a){for(var b in a)return a[b]}function Rb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Sb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Tb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}
function Ub(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Vb(a){var b=Wb;return(a=Ub(b,a,void 0))&&b[a]}function Xb(a){for(var b in a)return!1;return!0}function Yb(a){for(var b in a)delete a[b]}function Zb(a,b){return b in a?a[b]:void 0}function $b(a){var b={},c;for(c in a)b[c]=a[c];return b}function ac(a){var b=fa(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=ac(a[c]);return b}return a}var bc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function cc(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<bc.length;g++)c=bc[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function dc(a){var b=arguments.length;if(1==b&&ha(arguments[0]))return dc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var ec;t:{var fc=m.navigator;if(fc){var gc=fc.userAgent;if(gc){ec=gc;break t}}ec=""}function hc(a){return Ma(ec,a)};var ic,jc,kc,lc,mc;function nc(){return m.navigator||null}var oc=hc("Opera")||hc("OPR"),pc=hc("Trident")||hc("MSIE"),qc=hc("Gecko")&&!Qa(ec,"WebKit")&&!(hc("Trident")||hc("MSIE")),rc=Qa(ec,"WebKit"),sc=rc&&hc("Mobile"),tc=nc(),uc=tc&&tc.platform||"";ic=Ma(uc,"Mac");jc=Ma(uc,"Win");kc=!!nc()&&Ma(nc().appVersion||"","X11");var vc=ec;lc=!!vc&&Ma(vc,"Android");mc=!!vc&&Ma(vc,"iPhone");var wc=!!vc&&Ma(vc,"iPad");function xc(){var a=m.document;return a?a.documentMode:void 0}
var yc=function(){var a="",b;if(oc&&m.opera)return a=m.opera.version,ka(a)?a():a;qc?b=/rv\:([^\);]+)(\)|;)/:pc?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:rc&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(ec))?a[1]:"");return pc&&(b=xc(),b>parseFloat(a))?String(b):a}(),zc={};function Ac(a){return zc[a]||(zc[a]=0<=Va(yc,a))}function Bc(a){return pc&&Cc>=a}var Dc=m.document,Cc=Dc&&pc?xc()||("CSS1Compat"==Dc.compatMode?parseInt(yc,10):5):void 0;var Ec=!pc||Bc(9),Fc=!qc&&!pc||pc&&Bc(9)||qc&&Ac("1.9.1"),Gc=pc&&!Ac("9"),Hc=pc||oc||rc;function Ic(a){return a?new Jc(Kc(a)):va||(va=new Jc)}function Lc(a){return s(a)?document.getElementById(a):a}function Mc(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Nc("*",a,b)}function H(a,b){var c=b||document,d=null;c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Nc("*",a,b)[0];return d||null}
function Nc(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 Oc(a,b){Mb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Pc?a.setAttribute(Pc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Pc={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 Qc(a){a=a.document;a=Rc(a)?a.documentElement:a.body;return new G(a.clientWidth,a.clientHeight)}function Sc(a){var b=Tc(a);a=a.parentWindow||a.defaultView;return pc&&Ac("10")&&a.pageYOffset!=b.scrollTop?new F(b.scrollLeft,b.scrollTop):new F(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Tc(a){return!rc&&Rc(a)?a.documentElement:a.body||a.documentElement}function Uc(a){return a?a.parentWindow||a.defaultView:window}function I(a,b,c){return Vc(document,arguments)}
function Vc(a,b){var c=b[0],d=b[1];if(!Ec&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Da(d.name),'"');if(d.type){c.push(' type="',Da(d.type),'"');var e={};cc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(s(d)?c.className=d:ha(d)?c.className=d.join(" "):Oc(c,d));2<b.length&&Wc(a,c,b,2);return c}function Wc(a,b,c,d){function e(c){c&&b.appendChild(s(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!ia(g)||la(g)&&0<g.nodeType?e(g):z(Xc(g)?ub(g):g,e)}}
function Yc(a){return document.createElement(a)}function Zc(a){return document.createTextNode(String(a))}function Rc(a){return"CSS1Compat"==a.compatMode}function $c(a,b){a.appendChild(b)}function ad(a,b){Wc(Kc(a),a,arguments,1)}function bd(a){for(var b;b=a.firstChild;)a.removeChild(b)}function cd(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function dd(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function ed(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}
function fd(a){return Fc&&void 0!=a.children?a.children:hb(a.childNodes,function(a){return 1==a.nodeType})}function gd(a){return void 0!=a.firstElementChild?a.firstElementChild:hd(a.firstChild)}function hd(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function id(a){var b;if(Hc&&!(pc&&Ac("9")&&!Ac("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return la(b)&&1==b.nodeType?b:null}
function jd(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 Kc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function kd(a){return a.contentWindow||Uc(a.contentDocument||a.contentWindow.document)}
function ld(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{bd(a);var c=Kc(a);a.appendChild(c.createTextNode(String(b)))}}function md(a,b){var c=[];return nd(a,b,c,!0)?c[0]:void 0}function nd(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||nd(a,b,c,d))return!0;a=a.nextSibling}return!1}
var od={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},pd={IMG:" ",BR:"\n"};function qd(a,b,c){if(!(a.nodeName in od))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 pd)b.push(pd[a.nodeName]);else for(a=a.firstChild;a;)qd(a,b,c),a=a.nextSibling}function Xc(a){if(a&&"number"==typeof a.length){if(la(a))return"function"==typeof a.item||"string"==typeof a.item;if(ka(a))return"function"==typeof a.item}return!1}
function rd(a,b,c){if(!b&&!c)return null;var d=b?b.toUpperCase():null;return sd(a,function(a){return(!d||a.nodeName==d)&&(!c||s(a.className)&&C(a.className.split(/\s+/),c))},!0)}function td(a,b){return rd(a,null,b)}function sd(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 Jc(a){this.b=a||m.document||document}f=Jc.prototype;f.K=function(a){return s(a)?this.b.getElementById(a):a};f.HB=function(a,b,c){return Vc(this.b,arguments)};
f.createElement=function(a){return this.b.createElement(a)};function ud(a){return Rc(a.b)}function vd(a){a=a.b;return a.parentWindow||a.defaultView}function wd(a){return Sc(a.b)}f.appendChild=$c;f.append=ad;f.contains=jd;var xd="StopIteration"in m?m.StopIteration:Error("StopIteration");function yd(){}yd.prototype.next=function(){throw xd;};yd.prototype.Wb=function(){return this};function zd(a){if(a instanceof yd)return a;if("function"==typeof a.Wb)return a.Wb(!1);if(ia(a)){var b=0,c=new yd;c.next=function(){for(;;){if(b>=a.length)throw xd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function Ad(a,b,c){if(ia(a))try{z(a,b,c)}catch(d){if(d!==xd)throw d;}else{a=zd(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==xd)throw e;}}}function Bd(a){if(ia(a))return ub(a);a=zd(a);var b=[];Ad(a,function(a){b.push(a)});return b};function Cd(a,b){this.g={};this.b=[];this.j=this.ea=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 Cd?(c=a.Ma(),d=a.Qa()):(c=Sb(a),d=Rb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=Cd.prototype;f.Na=function(){return this.ea};f.Qa=function(){Dd(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};f.Ma=function(){Dd(this);return this.b.concat()};
f.eg=function(a){for(var b=0;b<this.b.length;b++){var c=this.b[b];if(Ed(this.g,c)&&this.g[c]==a)return!0}return!1};f.equals=function(a,b){if(this===a)return!0;if(this.ea!=a.Na())return!1;var c=b||Fd;Dd(this);for(var d,e=0;d=this.b[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function Fd(a,b){return a===b}f.isEmpty=function(){return 0==this.ea};f.clear=function(){this.g={};this.j=this.ea=this.b.length=0};
f.remove=function(a){return Ed(this.g,a)?(delete this.g[a],this.ea--,this.j++,this.b.length>2*this.ea&&Dd(this),!0):!1};function Dd(a){if(a.ea!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];Ed(a.g,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.ea!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],Ed(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}}f.get=function(a,b){return Ed(this.g,a)?this.g[a]:b};f.set=function(a,b){Ed(this.g,a)||(this.ea++,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 Cd(this)};f.Wb=function(a){Dd(this);var b=0,c=this.b,d=this.g,e=this.j,g=this,h=new yd;h.next=function(){for(;;){if(e!=g.j)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw xd;var h=c[b++];return a?h:d[h]}};return h};function Ed(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Gd(a){return"function"==typeof a.Na?a.Na():ia(a)||s(a)?a.length:Pb(a)}function Hd(a){if("function"==typeof a.Qa)return a.Qa();if(s(a))return a.split("");if(ia(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Rb(a)}function Id(a){if("function"==typeof a.Ma)return a.Ma();if("function"!=typeof a.Qa){if(ia(a)||s(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Sb(a)}}
function Jd(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(ia(a)||s(a))z(a,b,void 0);else for(var c=Id(a),d=Hd(a),e=d.length,g=0;g<e;g++)b.call(void 0,d[g],c&&c[g],a)}function Kd(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ia(a)||s(a))return kb(a,b,c);for(var d=Id(a),e=Hd(a),g=e.length,h=0;h<g;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};function Ld(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 Md=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function Nd(a){if(Od){Od=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Pd(c))&&c!=b.hostname)throw Od=!0,Error();}}return a.match(Md)}var Od=rc;function Pd(a){return(a=Nd(a)[3]||null)&&decodeURIComponent(a)}
function Qd(a){return(a=Nd(a)[5]||null)&&decodeURIComponent(a)}function Rd(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 Sd(a,b,c){if(ha(b))for(var d=0;d<b.length;d++)Sd(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",Ba(b))}function Td(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)Sd(b[c],b[c+1],a);return a}
function Ud(a,b){for(var c in b)Sd(c,b[c],a);return a}function Vd(a){a=Ud([],a);a[0]="";return a.join("")}function Wd(a,b){return Rd(2==arguments.length?Td([a],arguments[1],0):Td([a],arguments,1))}function Xd(a,b){return Rd(Ud([a],b))}function Yd(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 Zd=/#|$/,$d=/[?&]($|#)/;
function ae(a,b,c){for(var d=a.search(Zd),e=0,g,h=[];0<=(g=Yd(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($d,"$1"),"&",b];null!=c&&a.push("=",Ba(c));return Rd(a)};function J(a,b){var c;a instanceof J?(this.df=n(b)?b:a.df,be(this,a.Gb),this.cf=a.cf,ce(this,a.Bb),de(this,a.bf),ee(this,a.Mb),fe(this,a.b.clone()),ge(this,a.Pg())):a&&(c=Nd(String(a)))?(this.df=!!b,be(this,c[1]||"",!0),this.cf=he(c[2]||""),ce(this,c[3]||"",!0),de(this,c[4]),ee(this,c[5]||"",!0),fe(this,c[6]||"",!0),ge(this,c[7]||"",!0)):(this.df=!!b,this.b=new ie(null,0,this.df))}f=J.prototype;f.Gb="";f.cf="";f.Bb="";f.bf=null;f.Mb="";f.mn="";f.df=!1;
f.toString=function(){var a=[],b=this.Gb;b&&a.push(je(b,ke),":");if(b=this.Bb){a.push("//");var c=this.cf;c&&a.push(je(c,ke),"@");a.push(Ba(b));b=this.bf;null!=b&&a.push(":",String(b))}if(b=this.Mb)this.Bb&&"/"!=b.charAt(0)&&a.push("/"),a.push(je(b,"/"==b.charAt(0)?le:me));(b=this.b.toString())&&a.push("?",b);(b=this.Pg())&&a.push("#",je(b,ne));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.Gb;c?be(b,a.Gb):c=!!a.cf;c?b.cf=a.cf:c=!!a.Bb;c?ce(b,a.Bb):c=null!=a.bf;var d=a.Mb;if(c)de(b,a.bf);else if(c=!!a.Mb){if("/"!=d.charAt(0))if(this.Bb&&!this.Mb)d="/"+d;else{var e=b.Mb.lastIndexOf("/");-1!=e&&(d=b.Mb.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Ma(e,"./")||Ma(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?ee(b,d):c=""!==a.b.toString();c?fe(b,he(a.b.toString())):c=!!a.mn;c&&ge(b,a.Pg());return b};f.clone=function(){return new J(this)};function be(a,b,c){a.Gb=c?he(b):b;a.Gb&&(a.Gb=a.Gb.replace(/:$/,""));return a}function oe(a){return a.Bb}function ce(a,b,c){a.Bb=c?he(b):b;return a}function de(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.bf=b}else a.bf=null;return a}
function pe(a){return a.Mb}function ee(a,b,c){a.Mb=c?he(b):b}function fe(a,b,c){b instanceof ie?(a.b=b,qe(a.b,a.df)):(c||(b=je(b,re)),a.b=new ie(b,0,a.df));return a}function se(a){return a.b}function K(a,b,c){a.b.set(b,c);return a}function te(a,b,c){ha(c)||(c=[String(c)]);ue(a.b,b,c)}function ve(a,b){return a.b.get(b)}f.Pg=function(){return this.mn};function ge(a,b,c){a.mn=c?he(b):b;return a}
function we(a){K(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^v()).toString(36));return a}function xe(a){return a instanceof J?a.clone():new J(a,void 0)}function ye(a,b,c,d){var e=new J(null,void 0);a&&be(e,a);b&&ce(e,b);c&&de(e,c);d&&ee(e,d);return e}function he(a){return a?decodeURIComponent(a):""}function je(a,b){return s(a)?encodeURI(a).replace(b,ze):null}
function ze(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var ke=/[#\/\?@]/g,me=/[\#\?:]/g,le=/[\#\?]/g,re=/[\#\?@]/g,ne=/#/g;function ie(a,b,c){this.b=a||null;this.g=!!c}function Ae(a){if(!a.Ya&&(a.Ya=new Cd,a.ea=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=Ca(e);e=Be(a,e);a.add(e,g?Ca(g):"")}}f=ie.prototype;f.Ya=null;f.ea=null;f.Na=function(){Ae(this);return this.ea};
f.add=function(a,b){Ae(this);this.b=null;a=Be(this,a);var c=this.Ya.get(a);c||this.Ya.set(a,c=[]);c.push(b);this.ea++;return this};f.remove=function(a){Ae(this);a=Be(this,a);return Ed(this.Ya.g,a)?(this.b=null,this.ea-=this.Ya.get(a).length,this.Ya.remove(a)):!1};f.clear=function(){this.Ya=this.b=null;this.ea=0};f.isEmpty=function(){Ae(this);return 0==this.ea};function Ce(a,b){Ae(a);b=Be(a,b);return Ed(a.Ya.g,b)}f.eg=function(a){var b=this.Qa();return C(b,a)};
f.Ma=function(){Ae(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){Ae(this);var b=[];if(s(a))Ce(this,a)&&(b=tb(b,this.Ya.get(Be(this,a))));else{a=this.Ya.Qa();for(var c=0;c<a.length;c++)b=tb(b,a[c])}return b};f.set=function(a,b){Ae(this);this.b=null;a=Be(this,a);Ce(this,a)&&(this.ea-=this.Ya.get(a).length);this.Ya.set(a,[b]);this.ea++;return this};
f.get=function(a,b){var c=a?this.Qa(a):[];return 0<c.length?String(c[0]):b};function ue(a,b,c){a.remove(b);0<c.length&&(a.b=null,a.Ya.set(Be(a,b),ub(c)),a.ea+=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=Ba(d),d=this.Qa(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+Ba(d[g]));a.push(h)}return this.b=a.join("&")};
f.clone=function(){var a=new ie;a.b=this.b;this.Ya&&(a.Ya=this.Ya.clone(),a.ea=this.ea);return a};function Be(a,b){var c=String(b);a.g&&(c=c.toLowerCase());return c}function qe(a,b){b&&!a.g&&(Ae(a),a.b=null,a.Ya.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),ue(this,e,a))},a));a.g=b};var De=/^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\/)/,Ee=/^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]+)?([\/\?\#]|$)/,Fe=/^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\//,
Ge=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,He=/^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Ie=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,Je=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,Ke=/^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]+)?([\/\?\#]|$)/,
Le=/^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]+)?([\/\?\#]|$))/,Me=/^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 Ne=window.yt&&window.yt.config_||{};ba("yt.config_",Ne,void 0);ba("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Oe=window.yt&&window.yt.msgs_||{};ba("yt.msgs_",Oe,void 0);function Pe(a){Qe(Ne,arguments)}function Re(a){return a in Ne?Ne[a]:void 0}function L(a,b){ka(a)&&(a=Se(a));return window.setTimeout(a,b)}function Te(a,b){ka(a)&&(a=Se(a));return window.setInterval(a,b)}function N(a){window.clearTimeout(a)}function Ue(a){window.clearInterval(a)}
function Se(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Ve(b),b;}}:a}function Ve(a){if(window&&window.yterr){var b=q("yt.www.errors.log");b?b(a,void 0):(b=Re("ERRORS")||[],b.push([a,void 0]),Pe("ERRORS",b))}}function We(a){Qe(Oe,arguments)}function Xe(a,b,c){var d=b||{};if(a=a in Oe?Oe[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}
ta=function(a,b){var c=b||{},d=a in Oe?Oe[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 Qe(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 Ye="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(" "),
Ze="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(" "),$e="";function af(a){return a&&a==$e?!0:bf(a,Ye)?($e=a,!0):!1}function cf(a){var b=!!a&&-1!=a.search(Ke),c=af(a);b!=c&&Ve(Error(a+" behavior is not consistent"));return c}
function df(){var a=document.location.toString(),b=!!a&&-1!=a.search(Fe),c=-1!=a.indexOf("/embed/");b!=c&&Ve(Error(a+" behavior is not consistent"));return c}function ef(a){var b=!!a&&-1!=a.search(Le),c=bf(a,Ze);c&&!b&&Ve(Error(a+" behavior is not consistent"));return c}function bf(a,b){return(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}
function ff(a){a=new J(a);be(a,document.location.protocol);ce(a,document.location.hostname);document.location.port&&de(a,document.location.port);return a.toString()}function gf(a){a=new J(a);be(a,document.location.protocol);return a.toString()};var hf={},jf=0,kf=q("yt.net.ping.workerUrl_")||null;ba("yt.net.ping.workerUrl_",kf,void 0);function lf(a,b,c){a&&(c?a&&(a=I("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),Kc(a).body.appendChild(a)):mf(a,b))}function mf(a,b){var c=new Image,d=""+jf++;hf[d]=c;c.onload=c.onerror=function(){b&&hf[d]&&b();delete hf[d]};c.src=a;c=eval("null")};function nf(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 of(a){return eval("("+a+")")}function pf(a){return qf(new rf(void 0),a)}function rf(a){this.b=a}
function qf(a,b){var c=[];sf(a,b,c);return c.join("")}
function sf(a,b,c){switch(typeof b){case "string":tf(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(ha(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],sf(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),tf(g,c),
c.push(":"),sf(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 uf={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},vf=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function tf(a,b){b.push('"',a.replace(vf,function(a){if(a in uf)return uf[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return uf[a]=e+b.toString(16)}),'"')};function wf(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=wf.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new wf(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof wf?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=ja(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function xf(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=xf.prototype;f.clone=function(){return new xf(this.left,this.top,this.width,this.height)};function yf(a){return new xf(a.left,a.top,a.right-a.left,a.bottom-a.top)}function zf(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 xf?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 Af(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=ja(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Bf(a){Bf[" "](a);return a}Bf[" "]=ca;function Cf(){return rc?"Webkit":qc?"Moz":pc?"ms":oc?"O":null}function Df(){return rc?"-webkit":qc?"-moz":pc?"-ms":oc?"-o":null}function Ef(a,b){if(b&&a in b)return a;var c=Cf();return c?(c=c.toLowerCase(),c+=bb(a),!n(b)||c in b?c:null):null};function Ff(a,b,c){s(b)?Gf(a,c,b):Mb(b,ra(Gf,a))}function Gf(a,b,c){(c=Hf(a,c))&&(a.style[c]=b)}function Hf(a,b){var c=ab(b);if(void 0===a.style[c]){var d=Cf()+bb(c);if(void 0!==a.style[d])return d}return c}function If(a,b){var c=Kc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Jf(a,b){return If(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
function Kf(a,b,c){var d,e=qc&&(ic||kc)&&Ac("1.9");b instanceof F?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Lf(d,e);a.style.top=Lf(b,e)}function Mf(a){return new F(a.offsetLeft,a.offsetTop)}function Nf(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}pc&&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 Of(a){if(pc&&!Bc(8))return a.offsetParent;var b=Kc(a),c=Jf(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Jf(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 Pf(a){for(var b=new wf(0,Infinity,Infinity,0),c=Ic(a),d=c.b.body,e=c.b.documentElement,g=Tc(c.b);a=Of(a);)if(!(pc&&0==a.clientWidth||rc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Jf(a,"overflow")){var h=Qf(a),k;k=a;if(qc&&!Ac("1.9")){var l=parseFloat(If(k,"borderLeftWidth"));if(Rf(k))var p=k.offsetWidth-k.clientWidth-l-parseFloat(If(k,"borderRightWidth")),l=l+p;k=new F(l,parseFloat(If(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=Qc(vd(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 Qf(a){var b,c=Kc(a),d=Jf(a,"position"),e=qc&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),g=new F(0,0),h;b=c?Kc(c):document;h=!pc||Bc(9)||ud(Ic(b))?b.documentElement:b.body;if(a==h)return g;if(a.getBoundingClientRect)b=Nf(a),a=wd(Ic(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(rc&&"fixed"==Jf(b,"position")){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(oc||rc&&"absolute"==d)g.y-=c.body.offsetTop;for(b=a;(b=Of(b))&&b!=c.body&&b!=h;)g.x-=b.scrollLeft,oc&&"TR"==b.tagName||(g.y-=b.scrollTop)}return g}
function Sf(a){var b;if(a.getBoundingClientRect)b=Nf(a),b=new F(b.left,b.top);else{b=wd(Ic(a));var c=Qf(a);b=new F(c.x-b.x,c.y-b.y)}if(qc&&!Ac(12)){i:{c=ab("transform");if(void 0===a.style[c]&&(c=Cf()+bb(c),void 0!==a.style[c])){c=Df()+"-transform";break i}c="transform"}a=(a=Jf(a,c)||Jf(a,"transform"))?(a=a.match(Tf))?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 Uf(a){if(1==a.nodeType)return Sf(a);var b=ka(a.fC),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 Vf(a,b,c){if(b instanceof G)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Wf(a,b);a.style.height=Lf(c,!0)}function Lf(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Wf(a,b){a.style.width=Lf(b,!0)}function Xf(a){return Yf(a)}
function Yf(a){var b=Zf;if("none"!=Jf(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 Zf(a){var b=a.offsetWidth,c=a.offsetHeight,d=rc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new G(b,c):(a=Nf(a),new G(a.right-a.left,a.bottom-a.top))}function $f(a){var b=Qf(a);a=Yf(a);return new xf(b.x,b.y,a.width,a.height)}
function ag(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 cg(a,b){a.style.display=b?"":"none"}function Rf(a){return"rtl"==Jf(a,"direction")}function dg(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 eg(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?dg(a,c):0}var fg={thin:2,medium:4,thick:6};function gg(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 fg?fg[c]:dg(a,c)}
function hg(a){if(pc&&!Bc(9)){var b=gg(a,"borderLeft"),c=gg(a,"borderRight"),d=gg(a,"borderTop");a=gg(a,"borderBottom");return new wf(d,c,a,b)}b=If(a,"borderLeftWidth");c=If(a,"borderRightWidth");d=If(a,"borderTopWidth");a=If(a,"borderBottomWidth");return new wf(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var ig=/[^\d]+$/,jg={cm:1,"in":1,mm:1,pc:1,pt:1},kg={em:1,ex:1};
function lg(a){var b=Jf(a,"fontSize"),c;c=(c=b.match(ig))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(pc){if(c in jg)return dg(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in kg)return a=a.parentNode,c=Jf(a,"fontSize"),dg(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;dd(c);return b}var Tf=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function mg(a){if(a.classList)return a.classList;a=a.className;return s(a)&&a.match(/\S+/g)||[]}function ng(a,b){return a.classList?a.classList.contains(b):C(mg(a),b)}function O(a,b){a.classList?a.classList.add(b):ng(a,b)||(a.className+=0<a.className.length?" "+b:b)}function og(a,b){if(a.classList)z(b,function(b){O(a,b)});else{var c={};z(mg(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 P(a,b){a.classList?a.classList.remove(b):ng(a,b)&&(a.className=hb(mg(a),function(a){return a!=b}).join(" "))}function pg(a,b){a.classList?z(b,function(b){P(a,b)}):a.className=hb(mg(a),function(a){return!C(b,a)}).join(" ")}function Q(a,b,c){c?O(a,b):P(a,b)}function qg(a,b){var c=!ng(a,b);Q(a,b,c);return c};function rg(a,b,c){a&&(a.dataset?a.dataset[sg(b)]=c:a.setAttribute("data-"+b,c))}function tg(a,b){return a?a.dataset?a.dataset[sg(b)]:a.getAttribute("data-"+b):null}function ug(a,b){a&&(a.dataset?delete a.dataset[sg(b)]:a.removeAttribute("data-"+b))}var vg={};function sg(a){return vg[a]||(vg[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var wg=rc?"webkit":qc?"moz":pc?"ms":oc?"o":"";function xg(a){var b=a.__yt_uid_key;b||(b=yg(),a.__yt_uid_key=b);return b}var yg=q("yt.dom.getNextId_");if(!yg){yg=function(){return++zg};ba("yt.dom.getNextId_",yg,void 0);var zg=0}function Ag(a,b){var c=Nc(a,null,b);return c.length?c[0]:null}function Bg(a,b){if(a in b)return b[a];var c=wg+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function Cg(a,b){var c;ib(a,function(a){c=Bg(a,b);return!!c});return c}
function Dg(a){Q(document.body,"hide-players",!0);a&&Q(a,"preserve-players",!0)}function Eg(){Q(document.body,"hide-players",!1);var a=Mc("preserve-players");z(a,function(a){P(a,"preserve-players")})};function Fg(a){if(a=a||window.event){for(var b in a)b in Gg||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.Rc=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 Hg(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 Ig(a){n(a.b)||Hg(a);return a.b}function Jg(a){n(a.g)||Hg(a);return a.g}f=Fg.prototype;f.Rc=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.Rc.returnValue=!1;this.Rc.preventDefault&&this.Rc.preventDefault()};
f.stopPropagation=function(){this.Rc.cancelBubble=!0;this.Rc.stopPropagation&&this.Rc.stopPropagation()};f.stopImmediatePropagation=function(){this.Rc.cancelBubble=!0;this.Rc.stopImmediatePropagation&&this.Rc.stopImmediatePropagation()};var Gg={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var Kg=q("yt.events.listeners_")||{};ba("yt.events.listeners_",Kg,void 0);var Lg=q("yt.events.counter_")||{count:0};ba("yt.events.counter_",Lg,void 0);function Mg(a,b,c,d){return Ub(Kg,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function R(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Mg(a,b,c,d);if(e)return e;var e=++Lg.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new Fg(d);if(!sd(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Fg(b);b.currentTarget=a;return c.call(a,b)};h=Se(h);Kg[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 Ng(a,b){var c;c=R(a,"playing",function(){Og(c);b.apply(a,arguments)},void 0)}function Pg(a,b,c,d){return Qg(a,b,c,function(a){return ng(a,d)})}
function Qg(a,b,c,d){var e=a||document;return R(e,b,function(a){var b=sd(a.target,function(a){return a===e||d(a)},!0);b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function Rg(a,b,c){(a=Mg(a,b,c,!1))&&Og(a)}function Og(a){a&&("string"==typeof a&&(a=[a]),z(a,function(a){if(a in Kg){var c=Kg[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 Kg[a]}}))}function Sg(a){for(var b in Kg)Kg[b][0]==a&&Og(b)}
function Tg(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 Ug(){return!!Cg(["fullscreenEnabled","fullScreenEnabled"],document)}function Vg(){return Cg(["fullscreenElement","fullScreenElement"],document)};function Wg(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||$b(Xg);this.assets=a.assets||{};this.attrs=a.attrs||$b(Yg);this.params=a.params||$b(Zg);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 Xg={enablejsapi:1},Yg={},Zg={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
Wg.prototype.clone=function(){var a=new Wg,b;for(b in this){var c=this[b];"object"==fa(c)?a[b]=$b(c):a[b]=c}return a};var $g,ah,bh,ch,dh,eh,fh;fh=eh=dh=ch=bh=ah=$g=!1;var gh=ec;gh&&(-1!=gh.indexOf("Firefox")?$g=!0:-1!=gh.indexOf("Camino")?ah=!0:-1!=gh.indexOf("iPhone")||-1!=gh.indexOf("iPod")?bh=!0:-1!=gh.indexOf("iPad")?ch=!0:-1!=gh.indexOf("Chrome")?eh=!0:-1!=gh.indexOf("Android")?dh=!0:-1!=gh.indexOf("Safari")&&(fh=!0));var hh=$g,ih=ah,jh=bh,kh=ch,lh=dh,mh=eh,nh=fh;var oh=v(),ph=null,qh=Array(50),rh=-1,sh=!1;function th(){var a=uh;vh();ph.push(a);wh(ph)}function xh(a,b){vh();var c=ph,d=yh(a,String(b));E(c)?zh(d):(wh(c),z(c,function(a){a(d)}))}function vh(){ph||(ph=q("yt.mdx.remote.debug.handlers_")||[],ba("yt.mdx.remote.debug.handlers_",ph,void 0))}function zh(a){var b=(rh+1)%50;rh=b;qh[b]=a;sh||(sh=49==b)}function wh(a){var b=qh;if(b[0]){var c=rh,d=sh?c:-1;do{var d=(d+1)%50,e=b[d];z(a,function(a){a(e)})}while(d!=c);qh=Array(50);rh=-1;sh=!1}}
function yh(a,b){var c=(v()-oh)/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 Ah(a){a=a||{};this.name=a.name||"";this.id=a.screenId||"";this.token=a.loungeToken||"";this.uuid=a.dialId||""}function Bh(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 Ch(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function Dh(a){return new Ah(a)}function Eh(a){return ha(a)?A(a,Dh):[]}
function Fh(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 Gh(a){return ha(a)?"["+A(a,Fh).join(",")+"]":"null"};function Hh(){}Hh.prototype.Uc=!1;Hh.prototype.fa=function(){return this.Uc};Hh.prototype.dispose=function(){this.Uc||(this.Uc=!0,this.J())};function S(a,b){Ih(a,ra(Jh,b))}function Ih(a,b){a.qb||(a.qb=[]);a.qb.push(n(void 0)?u(b,void 0):b)}Hh.prototype.J=function(){if(this.qb)for(;this.qb.length;)this.qb.shift()()};function Kh(a){return a&&"function"==typeof a.fa?a.fa():!1}function Jh(a){a&&"function"==typeof a.dispose&&a.dispose()}
function Lh(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ia(d)?Lh.apply(null,d):Jh(d)}};function Mh(){this.b=[];this.$b={}}w(Mh,Hh);f=Mh.prototype;f.Ur=1;f.uj=0;f.subscribe=function(a,b,c){var d=this.$b[a];d||(d=this.$b[a]=[]);var e=this.Ur;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.Ur=e+3;d.push(e);return e};f.ja=function(a,b,c){if(a=this.$b[a]){var d=this.b;if(a=B(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Ib(a)}return!1};
f.Ib=function(a){if(0!=this.uj)return this.g||(this.g=[]),this.g.push(a),!1;var b=this.b[a];if(b){var c=this.$b[b];c&&qb(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.$b[a];if(c){this.uj++;for(var d=xb(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.uj--;if(this.g&&0==this.uj)for(;c=this.g.pop();)this.Ib(c);return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.$b[a];b&&(z(b,this.Ib,this),delete this.$b[a])}else this.b.length=0,this.$b={}};f.Na=function(a){if(a){var b=this.$b[a];return b?b.length:0}a=0;for(b in this.$b)a+=this.Na(b);return a};f.J=function(){Mh.G.J.call(this);delete this.b;delete this.$b;delete this.g};var Nh=q("yt.pubsub.instance_")||new Mh;Mh.prototype.subscribe=Mh.prototype.subscribe;Mh.prototype.unsubscribeByKey=Mh.prototype.Ib;Mh.prototype.publish=Mh.prototype.H;Mh.prototype.clear=Mh.prototype.clear;ba("yt.pubsub.instance_",Nh,void 0);var Oh=q("yt.pubsub.subscribedKeys_")||{};ba("yt.pubsub.subscribedKeys_",Oh,void 0);var Ph=q("yt.pubsub.topicToKeys_")||{};ba("yt.pubsub.topicToKeys_",Ph,void 0);var Qh=q("yt.pubsub.isSynchronous_")||{};ba("yt.pubsub.isSynchronous_",Qh,void 0);
var Rh=q("yt.pubsub.skipSubId_")||null;ba("yt.pubsub.skipSubId_",Rh,void 0);function Sh(a,b,c){var d=Th();if(d){var e=d.subscribe(a,function(){if(!Rh||Rh!=e){var d=arguments,h=function(){Oh[e]&&b.apply(c||window,d)};try{Qh[a]?h():L(h,0)}catch(k){Ve(k)}}},c);Oh[e]=!0;Ph[a]||(Ph[a]=[]);Ph[a].push(e);return e}return 0}function Uh(a){var b=Th();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),z(a,function(a){b.unsubscribeByKey(a);delete Oh[a]}))}
function Vh(a,b){var c=Th();return c?c.publish.apply(c,arguments):!1}function Wh(a,b){Qh[a]=!0;var c=Th();c&&c.publish.apply(c,arguments);Qh[a]=!1}function Xh(a){Ph[a]&&(a=Ph[a],z(a,function(a){Oh[a]&&delete Oh[a]}),a.length=0)}function Yh(a){var b=Th();if(b)if(b.clear(a),a)Xh(a);else for(var c in Ph)Xh(c)}function Th(){return q("yt.pubsub.instance_")};function Zh(){};function $h(){}w($h,Zh);$h.prototype.Na=function(){var a=0;Ad(this.Wb(!0),function(){a++});return a};$h.prototype.clear=function(){var a=Bd(this.Wb(!0)),b=this;z(a,function(a){b.remove(a)})};function ai(a){this.b=a}w(ai,$h);f=ai.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(!s(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.Wb=function(a){var b=0,c=this.b,d=new yd;d.next=function(){if(b>=c.length)throw xd;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!s(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 bi(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a}w(bi,ai);function ci(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a}w(ci,ai);function di(a){this.b=a}di.prototype.set=function(a,b){n(b)?this.b.set(a,pf(b)):this.b.remove(a)};di.prototype.get=function(a){var b;try{b=this.b.get(a)}catch(c){return}if(null!==b)try{return nf(b)}catch(d){throw"Storage: Invalid value was encountered";}};di.prototype.remove=function(a){this.b.remove(a)};function ei(a){this.b=a}w(ei,di);function fi(a){this.data=a}function gi(a){return!n(a)||a instanceof fi?a:new fi(a)}ei.prototype.set=function(a,b){ei.G.set.call(this,a,gi(b))};ei.prototype.g=function(a){a=ei.G.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};ei.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 hi(a){this.b=a}w(hi,ei);function ii(a){var b=a.creation;a=a.expiration;return!!a&&a<v()||!!b&&b>v()}hi.prototype.set=function(a,b,c){if(b=gi(b)){if(c){if(c<v()){hi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=v()}hi.G.set.call(this,a,b)};hi.prototype.g=function(a,b){var c=hi.G.g.call(this,a);if(c)if(!b&&ii(c))hi.prototype.remove.call(this,a);else return c};function ji(a){this.b=a}w(ji,hi);function ki(a,b){var c=[];Ad(b,function(a){var b;try{b=ji.prototype.g.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?ii(b)&&c.push(a):c.push(a)},a);return c}function li(a,b){var c=ki(a,b);z(c,function(a){ji.prototype.remove.call(this,a)},a)}ji.prototype.j=function(){li(this,this.b.Wb(!0))};function mi(a,b,c){var d=c&&0<c?c:0;c=d?v()+1E3*d:0;if((d=d?ni:oi)&&window.JSON){s(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function pi(a){if(!oi&&!ni||!window.JSON)return null;var b;try{b=oi.get(a)}catch(c){}if(!s(b))try{b=ni.get(a)}catch(d){}if(!s(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function qi(a){oi&&oi.remove(a);ni&&ni.remove(a)}var ni,ri=new bi;ni=ri.isAvailable()?new ji(ri):null;var oi,si=new ci;oi=si.isAvailable()?new ji(si):null;function ti(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=Ca(h[0]||""),h=Ca(h[1]||"");k in d?ha(d[k])?vb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function ui(a,b){var c=[];Mb(a,function(a,b){var g=Ba(b),h;ha(a)?h=a:h=[a];z(h,function(a){""==a?c.push(g):c.push(g+"="+Ba(a))})});return c.join(b)}function vi(a){"?"==a.charAt(0)&&(a=a.substr(1));return ti(a,"&")}
function wi(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),vi(1<a.length?a[1]:a[0])):{}}var xi=Pd;function yi(a){a=Nd(a);return Ld(a[1],a[2],a[3],a[4])}function zi(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=vi(d[1]||""),e;for(e in b)d[e]=b[e];return Xd(a,d)+c};var Ai=null;"undefined"!=typeof XMLHttpRequest?Ai=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(Ai=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Bi(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 Ci(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Se(b)(l)}var l=Ai&&Ai();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=Di(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 Di(a,b){b=b||{};var c;if(c=Re("PAGE_CL")&&Re("PAGE_BUILD_TIMESTAMP")){var d;d||(d=window.location.href);c=Nd(a)[1]||null;var e=xi(a);c&&e?(c=d,d=Nd(a),c=Nd(c),d=d[3]==c[3]&&d[1]==c[1]&&d[4]==c[4]):d=e?xi(d)==e&&(Number(Nd(d)[4]||null)||null)==(Number(Nd(a)[4]||null)||null):!0;c=d||Ei(a)}c&&(b["X-YouTube-Page-CL"]=Re("PAGE_CL"),b["X-YouTube-Page-Timestamp"]=Re("PAGE_BUILD_TIMESTAMP"));return b}
function Ei(a){var b=["X-YouTube-Page-CL","X-YouTube-Page-Timestamp"],c=Re("CORS_HEADER_WHITELIST")||{};a=xi(a);if(!a)return!0;var d=c[a];return d?kb(b,function(a){return C(d,a)}):!1}function Fi(a,b){var c=Re("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.QE&&(!xi(a)||xi(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.gd&&b.gd[c])}
function Gi(a,b){var c=b.format||"JSON";b.PE&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=Re("XSRF_FIELD_NAME"),e=Re("XSRF_TOKEN"),g=b.Gh;g&&(g[d]&&delete g[d],a=zi(a,g));var h=b.Ww||"",g=b.gd;Fi(a,b)&&(g||(g={}),g[d]=e);g&&s(h)&&(d=vi(h),cc(d,g),h=Vd(d));var k=!1,l,p=Ci(a,function(a){if(!k){k=!0;l&&N(l);var d=Bi(a),e=null;if(d||400<=a.status&&500>a.status)e=Hi(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.vb&&b.vb.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.jh&&0<b.timeout&&(l=L(function(){k||(k=!0,p.abort(),N(l),b.jh.call(b.context||m,p))},b.timeout))}
function Hi(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=of(d));break;case "XML":if(d=(d=b.responseXML)?Ii(d):null)c={},z(d.getElementsByTagName("*"),function(a){c[a.tagName]=Ji(a)})}return c}function Ii(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Ji(a){var b="";z(a.childNodes,function(a){b+=a.nodeValue});return b}
var Ki={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"},Li={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 Mi(a,b,c,d){if(Re("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=yi(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Ki.watch_actions_ajax]=1;Gi(e,{format:"RAW",method:"GET",Gh:g,vb:function(a){var b=vi(a.responseText);b[Li.watch_actions_ajax]?c&&c():d&&d(a,b)}})}};function Ni(){this.port=this.g="";this.b=!0;var a=document.location.href,b=Number(Nd(a)[4]||null)||null||"";b&&(this.port=":"+b);this.g=Pd(a)||"";a=ec;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Va(a,"10.0")&&(this.b=!1))}function Oi(a,b,c,d){var e="/api/lounge";if(n(d)?d:a.b)e="https://"+a.g+a.port+"/api/lounge";return Xd(e+b,c||{})};function Pi(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}Pi.prototype.id="";Pi.prototype.name="";Pi.prototype.activityId="";Pi.prototype.status="UNKNOWN";function Qi(a){return{id:a.id,name:a.name,activityId:a.activityId,status:a.status}}Pi.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};
function Ri(a){a=a||[];return"["+A(a,function(a){return a?a.toString():"null"}).join(",")+"]"};function Si(){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 Ti(a){return A(a,function(a){return{key:a.id,name:a.name}})}function Ui(a){return A(a,function(a){return Qi(a)})}function Vi(a){return A(a,function(a){return new Pi(a)})}function Wi(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0}function Xi(a,b){return B(a,function(a){return a.id==b})}
function Yi(a,b){return B(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function Zi(a,b){return B(a,function(a){return a.id==b||a.uuid==b})};function $i(){this.M=new Mh;S(this,this.M)}w($i,Hh);$i.prototype.subscribe=function(a,b,c){return this.fa()?0:this.M.subscribe(a,b,c)};$i.prototype.ja=function(a,b,c){return this.fa()?!1:this.M.ja(a,b,c)};$i.prototype.Ib=function(a){return this.fa()?!1:this.M.Ib(a)};$i.prototype.H=function(a,b){return this.fa()?!1:this.M.H.apply(this.M,arguments)};function aj(a){$i.call(this);this.j=a;this.g=[]}w(aj,$i);aj.prototype.On=function(){return this.g};aj.prototype.contains=function(a){return!!Yi(this.g,a)};aj.prototype.get=function(a){return Zi(this.g,a)};aj.prototype.info=function(a){xh(this.j,a)};function bj(a){this.b=a}var cj=/\s*;\s*/;f=bj.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(cj),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 dj(this).keys};f.Qa=function(){return dj(this).$r};f.isEmpty=function(){return!this.b.cookie};f.Na=function(){return this.b.cookie?(this.b.cookie||"").split(cj).length:0};
f.eg=function(a){for(var b=dj(this).$r,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=dj(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function dj(a){a=(a.b.cookie||"").split(cj);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,$r:c}}var ej=new bj(document);ej.g=3950;function fj(a,b){ej.set(""+a,b,void 0,"/","youtube.com")};function gj(){var a=hj(),b=ij();C(a,b);jj()&&Fb(a,b);a=kj(a);E(a)?ej.remove("remote_sid","/","youtube.com"):fj("remote_sid",a.join(","))}function hj(){var a=pi("yt-remote-connected-devices")||[];Bb(a);return a}function kj(a){if(E(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return A(a,function(a,b){return 0==b?a:a.substring(c.length)})}function lj(a){mi("yt-remote-connected-devices",a,86400)}
function ij(){if(mj)return mj;var a=pi("yt-remote-device-id");a||(a=Si(),mi("yt-remote-device-id",a,31536E3));for(var b=hj(),c=1,d=a;C(b,d);)c++,d=a+"#"+c;return mj=d}function nj(){return pi("yt-remote-session-browser-channel")}function jj(){return pi("yt-remote-session-screen-id")}
function oj(a){5<a.length&&(a=a.slice(a.length-5));var b=A(pj(),function(a){return a.loungeToken}),c=A(a,function(a){return a.loungeToken});kb(c,function(a){return!C(b,a)})&&mi("yt-remote-lounge-token-expiration",!0,86400);mi("yt-remote-local-screens",a,31536E3)}function pj(){return pi("yt-remote-local-screens")||[]}function qj(){return pi("yt-remote-online-screens")||[]}function rj(a){mi("yt-remote-online-dial-devices",a,30)}function sj(){return pi("yt-remote-online-dial-devices")||[]}
function tj(a){a||qi("yt-remote-session-screen-id");gj();a=hj();qb(a,ij());lj(a)}var mj="";function uj(){return!!pi("yt-remote-cast-installed")}function vj(){var a=pi("yt-remote-cast-receiver");return a?a.friendlyName:null}function wj(){return uj()?yj()?zj.getCastSession():(xj("getCastSelector: Cast is not initialized."),null):(xj("getCastSelector: Cast API is not installed!"),null)}
function Aj(){uj()?yj()?Bj()?(xh("cloudview","Requesting cast selector."),zj.requestSession()):(xh("cloudview","Wait for cast API to be ready to request the session."),Cj.push(Sh("yt-remote-cast2-api-ready",Aj))):xj("requestCastSelector: Cast is not initialized."):xj("requestCastSelector: Cast API is not installed!")}function Dj(a){Bj()?yj().setLaunchParams(a):xj("setLaunchParams called before ready.")}var zj=null;function yj(){zj||(zj=q("yt.mdx.remote.cloudview.instance_"));return zj}
function xj(a){xh("cloudview",a)}function Bj(){return!!q("yt.mdx.remote.cloudview.apiReady_")}var Cj=[];function Ej(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||"")}Ej.prototype.id="";Ej.prototype.name="";Ej.prototype.app="";Ej.prototype.type="REMOTE_CONTROL";Ej.prototype.b="";Ej.prototype.equals=function(a){return a?this.id==a.id:!1};function Fj(a,b){this.action=a;this.params=b||null};function Gj(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Hj(a){xh("CAST",a)}function uh(a){var b=Ij();b&&b.logMessage&&b.logMessage(a)}function Jj(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Kj.length;)Kj.shift()()}
function Lj(){if(!q("yt.mdx.remote.castv2_")&&!Mj&&(E(Nj)&&vb(Nj,sj()),Gj())){var a=Ij();a?(a.removeReceiverListener("YouTube",Oj),a.addReceiverListener("YouTube",Oj),Hj("API initialized in the other binary")):(a=new cast.Api,Pj(a),a.addReceiverListener("YouTube",Oj),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){L(function(){window.location.reload(!0)},1E3)}),th(),Hj("API initialized"));Mj=!0}}
function Qj(){var a=Ij();if(a){Hj("API disposed");var b=q("yt.mdx.remote.debug.handlers_");qb(b||[],uh);a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(ca);a.removeReceiverListener("YouTube",Oj);Pj(null)}Mj=!1;Kj=null;Rg(window,"message",Jj)}function Rj(a){var b=lb(Nj,function(b){return b.id==a.id});0<=b&&(Nj[b]=Qi(a))}
function Oj(a){a.length&&Hj("Updating receivers: "+pf(a));Sj(a);Vh("yt-remote-cast-device-list-update");z(Tj(),function(a){Uj(a.id)});z(a,function(a){if(a.isTabProjected){var c=Vj(a.id);Hj("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");L(function(){Vh("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function Wj(a,b){Hj("Updating "+a+" activity status: "+pf(b));var c=Vj(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=""),Rj(c),Vh("yt-remote-cast-device-status-update",c)):Hj("Device not found")}function Tj(){Lj();return Vi(Nj)}
function Sj(a){a=A(a,function(a){var c={id:a.id,name:La(a.name)};if(a=Vj(a.id))c.activityId=a.activityId,c.status=a.status;return c});ob(Nj);vb(Nj,a)}function Vj(a){var b=Tj();return B(b,function(b){return b.id==a})||null}function Uj(a){var b=Vj(a),c=Ij();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");Wj(a,b)})}
function Xj(a){Lj();var b=Vj(a),c=Ij();c&&b&&b.activityId?(Hj("Stopping cast activity"),c.stopActivity(b.activityId,ra(Wj,a))):Hj("Dropping cast activity stop")}function Ij(){return q("yt.mdx.remote.castapi.api_")}function Pj(a){ba("yt.mdx.remote.castapi.api_",a,void 0)}var Mj=!1,Kj=null,Nj=q("yt.mdx.remote.castapi.devices_")||[];ba("yt.mdx.remote.castapi.devices_",Nj,void 0);function Yj(a){this.b=new Cd;if(a){a=Hd(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}}function Zj(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ma(a):b.substr(0,1)+a}f=Yj.prototype;f.Na=function(){return this.b.Na()};f.add=function(a){this.b.set(Zj(a),a)};f.removeAll=function(a){a=Hd(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.b.remove(Zj(a))};f.clear=function(){this.b.clear()};f.isEmpty=function(){return this.b.isEmpty()};
f.contains=function(a){a=Zj(a);return Ed(this.b.g,a)};f.Qa=function(){return this.b.Qa()};f.clone=function(){return new Yj(this)};f.equals=function(a){return this.Na()==Gd(a)&&ak(this,a)};function ak(a,b){var c=Gd(b);if(a.Na()>c)return!1;!(b instanceof Yj)&&5<c&&(b=new Yj(b));return Kd(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.eg?c.eg(a):ia(c)||s(c)?C(c,a):Tb(c,a)})}f.Wb=function(){return this.b.Wb(!1)};function bk(){};function ck(){this.b=v()}new ck;ck.prototype.set=function(a){this.b=a};ck.prototype.reset=function(){this.set(v())};ck.prototype.get=function(){return this.b};function T(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.g=!1;this.Br=!0}T.prototype.J=function(){};T.prototype.dispose=function(){};T.prototype.stopPropagation=function(){this.g=!0};T.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Br=!1};function dk(a){a.stopPropagation()};var ek=!pc||Bc(9),fk=pc&&!Ac("9");!rc||Ac("528");qc&&Ac("1.9b")||pc&&Ac("8")||oc&&Ac("9.5")||rc&&Ac("528");qc&&!Ac("8")||pc&&Ac("9");var gk="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function hk(a,b){T.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(hk,T);f=hk.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(qc){var e;t:{try{Bf(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(){hk.G.stopPropagation.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0};
f.preventDefault=function(){hk.G.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,fk)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};f.fC=function(){return this.b};f.J=function(){};var ik="closure_listenable_"+(1E6*Math.random()|0);function jk(a){return!(!a||!a[ik])}var kk=0;function lk(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.Pf=!!d;this.Qc=e;this.key=++kk;this.removed=this.tj=!1}function mk(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Qc=null};function nk(a){this.src=a;this.b={};this.g=0}nk.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=ok(a,b,d,e);-1<h?(b=a[h],c||(b.tj=!1)):(b=new lk(b,this.src,g,!!d,e),b.tj=c,a.push(b));return b};nk.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.b))return!1;var e=this.b[a];b=ok(e,b,c,d);return-1<b?(mk(e[b]),rb(e,b),0==e.length&&(delete this.b[a],this.g--),!0):!1};
function pk(a,b){var c=b.type;if(!(c in a.b))return!1;var d=qb(a.b[c],b);d&&(mk(b),0==a.b[c].length&&(delete a.b[c],a.g--));return d}nk.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,mk(d[e]);delete this.b[c];this.g--}return b};function qk(a,b,c,d,e){a=a.b[b.toString()];b=-1;a&&(b=ok(a,c,d,e));return-1<b?a[b]:null}
function ok(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.Pf==!!c&&g.Qc==d)return e}return-1};var rk="closure_lm_"+(1E6*Math.random()|0),sk={},tk=0;function uk(a,b,c,d,e){if(ha(b)){for(var g=0;g<b.length;g++)uk(a,b[g],c,d,e);return null}c=vk(c);return jk(a)?a.listen(b,c,d,e):wk(a,b,c,!1,d,e)}function wk(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=xk(a);k||(a[rk]=k=new nk(a));c=k.add(b,c,d,e,g);if(c.proxy)return c;d=yk();c.proxy=d;d.src=a;d.listener=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(zk(b.toString()),d);tk++;return c}
function yk(){var a=Ak,b=ek?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 Bk(a,b,c,d,e){if(ha(b)){for(var g=0;g<b.length;g++)Bk(a,b[g],c,d,e);return null}c=vk(c);return jk(a)?a.Gd.add(String(b),c,!0,d,e):wk(a,b,c,!0,d,e)}function Ck(a,b,c,d,e){if(ha(b))for(var g=0;g<b.length;g++)Ck(a,b[g],c,d,e);else c=vk(c),jk(a)?a.Fa(b,c,d,e):a&&(a=xk(a))&&(b=qk(a,b,c,!!d,e))&&Dk(b)}
function Dk(a){if(ja(a)||!a||a.removed)return!1;var b=a.src;if(jk(b))return pk(b.Gd,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.Pf):b.detachEvent&&b.detachEvent(zk(c),d);tk--;(c=xk(b))?(pk(c,a),0==c.g&&(c.src=null,b[rk]=null)):mk(a);return!0}function zk(a){return a in sk?sk[a]:sk[a]="on"+a}function Ek(a,b,c,d){var e=1;if(a=xk(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.Pf==c&&!g.removed&&(e&=!1!==Fk(g,d))}return Boolean(e)}
function Fk(a,b){var c=a.listener,d=a.Qc||a.src;a.tj&&Dk(a);return c.call(d,b)}
function Ak(a,b){if(a.removed)return!0;if(!ek){var c=b||q("window.event"),d=new hk(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&=Ek(c[k],g,!0,d);for(k=0;!d.g&&k<c.length;k++)d.currentTarget=c[k],e&=Ek(c[k],g,!1,d)}return e}return Fk(a,new hk(b,this))}
function xk(a){a=a[rk];return a instanceof nk?a:null}var Gk="__closure_events_fn_"+(1E9*Math.random()>>>0);function vk(a){if(ka(a))return a;a[Gk]||(a[Gk]=function(b){return a.handleEvent(b)});return a[Gk]};function U(){this.Gd=new nk(this);this.ka=this;this.V=null}w(U,Hh);U.prototype[ik]=!0;f=U.prototype;f.ci=function(a){this.V=a};f.addEventListener=function(a,b,c,d){uk(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Ck(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.ka;d=a.type||a;if(s(a))a=new T(a,c);else if(a instanceof T)a.target=a.target||c;else{var e=a;a=new T(d,c);cc(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=Hk(g,d,!0,a)&&e;a.g||(g=a.currentTarget=c,e=Hk(g,d,!0,a)&&e,a.g||(e=Hk(g,d,!1,a)&&e));if(b)for(h=0;!a.g&&h<b.length;h++)g=a.currentTarget=b[h],e=Hk(g,d,!1,a)&&e;return e};
f.J=function(){U.G.J.call(this);this.removeAllListeners();this.V=null};f.listen=function(a,b,c,d){return this.Gd.add(String(a),b,!1,c,d)};f.Fa=function(a,b,c,d){return this.Gd.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.Gd?this.Gd.removeAll(a):0};
function Hk(a,b,c,d){b=a.Gd.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.Pf==c){var k=h.listener,l=h.Qc||h.src;h.tj&&pk(a.Gd,h);e=!1!==k.call(l,d)&&e}}return e&&!1!=d.Br};function Ik(a,b){this.g=new rf(a);this.b=b?of:nf}Ik.prototype.stringify=function(a){return qf(this.g,a)};Ik.prototype.parse=function(a){return this.b(a)};function Jk(a){this.g=0;this.j=a||100;this.b=[]}f=Jk.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=Kk(this,a);return this.b[a]};f.set=function(a,b){a=Kk(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.eg=function(a){for(var b=this.Na(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function Kk(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 Lk(a,b){U.call(this);this.b=a||1;this.g=b||m;this.j=u(this.by,this);this.k=v()}w(Lk,U);f=Lk.prototype;f.ed=!1;f.vc=null;function Mk(a,b){a.b=b;a.vc&&a.ed?(a.stop(),a.start()):a.vc&&a.stop()}f.by=function(){if(this.ed){var a=v()-this.k;0<a&&a<.8*this.b?this.vc=this.g.setTimeout(this.j,this.b-a):(this.vc&&(this.g.clearTimeout(this.vc),this.vc=null),this.S("tick"),this.ed&&(this.vc=this.g.setTimeout(this.j,this.b),this.k=v()))}};
f.start=function(){this.ed=!0;this.vc||(this.vc=this.g.setTimeout(this.j,this.b),this.k=v())};f.stop=function(){this.ed=!1;this.vc&&(this.g.clearTimeout(this.vc),this.vc=null)};f.J=function(){Lk.G.J.call(this);this.stop();delete this.g};function Nk(a,b,c){if(ka(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 Ok(a){m.clearTimeout(a)};function Pk(a,b,c){this.k=a;this.j=b;this.g=c;this.b=u(this.fy,this)}w(Pk,Hh);f=Pk.prototype;f.gg=!1;f.Lh=0;f.Ve=null;function Qk(a){a.Ve||a.Lh?a.gg=!0:Rk(a)}f.stop=function(){this.Ve&&(Ok(this.Ve),this.Ve=null,this.gg=!1)};f.pause=function(){this.Lh++};f.resume=function(){this.Lh--;this.Lh||!this.gg||this.Ve||(this.gg=!1,Rk(this))};f.J=function(){Pk.G.J.call(this);this.stop()};f.fy=function(){this.Ve=null;this.gg&&!this.Lh&&(this.gg=!1,Rk(this))};function Rk(a){a.Ve=Nk(a.b,a.j);a.k.call(a.g)};function Sk(a){this.j=a;this.g={}}w(Sk,Hh);var Tk=[];f=Sk.prototype;f.listen=function(a,b,c,d){return Uk(this,a,b,c,d)};function Vk(a,b,c,d,e){Uk(a,b,c,d,!1,e)}function Uk(a,b,c,d,e,g){ha(c)||(c&&(Tk[0]=c.toString()),c=Tk);for(var h=0;h<c.length;h++){var k=uk(b,c[h],d||a.handleEvent,e||!1,g||a.j||a);if(!k)break;a.g[k.key]=k}return a}function Wk(a,b,c,d){Xk(a,b,c,d,void 0)}function Yk(a,b,c,d,e){Xk(a,b,c,d,!1,e)}
function Xk(a,b,c,d,e,g){if(ha(c))for(var h=0;h<c.length;h++)Xk(a,b,c[h],d,e,g);else(b=Bk(b,c,d||a.handleEvent,e,g||a.j||a))&&(a.g[b.key]=b)}f.Fa=function(a,b,c,d,e){if(ha(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=vk(c),d=!!d,b=jk(a)?qk(a.Gd,String(b),c,d,e):a?(a=xk(a))?qk(a,b,c,d,e):null:null,b&&(Dk(b),delete this.g[b.key]);return this};f.removeAll=function(){Mb(this.g,Dk);this.g={}};f.J=function(){Sk.G.J.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Zk(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 $k(){}$k.prototype.b=null;function al(a){var b;(b=a.b)||(b={},bl(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};var cl;function dl(){}w(dl,$k);function el(a){return(a=bl(a))?new ActiveXObject(a):new XMLHttpRequest}function bl(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}cl=new dl;function fl(a,b,c,d,e){this.b=a;this.j=c;this.B=d;this.A=e||1;this.kb=45E3;this.k=new Sk(this);this.g=new Lk;Mk(this.g,250)}f=fl.prototype;f.Je=null;f.Nc=!1;f.$f=null;f.pn=null;f.nh=null;f.Uf=null;f.ge=null;f.je=null;f.Ie=null;f.jb=null;f.Ah=0;f.Oc=null;f.xj=null;f.Se=null;f.Tg=-1;f.pr=!0;f.Xe=!1;f.Hm=0;f.fj=null;var gl={},hl={};f=fl.prototype;f.setTimeout=function(a){this.kb=a};function il(a,b,c){a.Uf=1;a.ge=we(b.clone());a.Ie=c;a.o=!0;jl(a,null)}
function kl(a,b,c,d,e){a.Uf=1;a.ge=we(b.clone());a.Ie=null;a.o=c;e&&(a.pr=!1);jl(a,d)}function jl(a,b){a.nh=v();ll(a);a.je=a.ge.clone();te(a.je,"t",a.A);a.Ah=0;a.jb=a.b.Xm(a.b.lh()?b:null);0<a.Hm&&(a.fj=new Pk(u(a.Gr,a,a.jb),a.Hm));a.k.listen(a.jb,"readystatechange",a.mB);var c=a.Je?$b(a.Je):{};a.Ie?(a.xj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.jb.send(a.je,a.xj,a.Ie,c)):(a.xj="GET",a.pr&&!rc&&(c.Connection="close"),a.jb.send(a.je,a.xj,null,c));a.b.Lc(1)}
f.mB=function(a){a=a.target;var b=this.fj;b&&3==ml(a)?Qk(b):this.Gr(a)};
f.Gr=function(a){try{if(a==this.jb)t:{var b=ml(this.jb),c=this.jb.g,d=this.jb.getStatus();if(pc&&!Bc(10)||rc&&!Ac("420+")){if(4>b)break t}else if(3>b||3==b&&!oc&&!nl(this.jb))break t;this.Xe||4!=b||7==c||(8==c||0>=d?this.b.Lc(3):this.b.Lc(2));ol(this);var e=this.jb.getStatus();this.Tg=e;var g=nl(this.jb);(this.Nc=200==e)?(4==b&&pl(this),this.o?(ql(this,b,g),oc&&this.Nc&&3==b&&(this.k.listen(this.g,"tick",this.Zy),this.g.start())):rl(this,g),this.Nc&&!this.Xe&&(4==b?this.b.ej(this):(this.Nc=!1,ll(this)))):
(this.Se=400==e&&0<g.indexOf("Unknown SID")?3:0,sl(),pl(this),tl(this))}}catch(h){this.jb&&nl(this.jb)}finally{}};function ql(a,b,c){for(var d=!0;!a.Xe&&a.Ah<c.length;){var e=ul(a,c);if(e==hl){4==b&&(a.Se=4,sl(),d=!1);break}else if(e==gl){a.Se=4;sl();d=!1;break}else rl(a,e)}4==b&&0==c.length&&(a.Se=1,sl(),d=!1);a.Nc=a.Nc&&d;d||(pl(a),tl(a))}f.Zy=function(){var a=ml(this.jb),b=nl(this.jb);this.Ah<b.length&&(ol(this),ql(this,a,b),this.Nc&&4!=a&&ll(this))};
function ul(a,b){var c=a.Ah,d=b.indexOf("\n",c);if(-1==d)return hl;c=Number(b.substring(c,d));if(isNaN(c))return gl;d+=1;if(d+c>b.length)return hl;var e=b.substr(d,c);a.Ah=d+c;return e}
function vl(a,b){a.nh=v();ll(a);var c=b?window.location.hostname:"";a.je=a.ge.clone();K(a.je,"DOMAIN",c);K(a.je,"t",a.A);try{a.Oc=new ActiveXObject("htmlfile")}catch(d){pl(a);a.Se=7;sl();tl(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.Oc.open();a.Oc.write(e);a.Oc.close();a.Oc.parentWindow.m=u(a.AB,a);a.Oc.parentWindow.d=u(a.Pr,a,!0);a.Oc.parentWindow.rpcClose=u(a.Pr,a,!1);c=a.Oc.createElement("div");a.Oc.parentWindow.document.body.appendChild(c);
c.innerHTML='<iframe src="'+a.je+'"></iframe>';a.b.Lc(1)}f.AB=function(a){wl(u(this.EE,this,a),0)};f.EE=function(a){this.Xe||(ol(this),rl(this,a),ll(this))};f.Pr=function(a){wl(u(this.DE,this,a),0)};f.DE=function(a){this.Xe||(pl(this),this.Nc=a,this.b.ej(this),this.b.Lc(4))};f.cancel=function(){this.Xe=!0;pl(this)};function ll(a){a.pn=v()+a.kb;xl(a,a.kb)}function xl(a,b){if(null!=a.$f)throw Error("WatchDog timer not null");a.$f=wl(u(a.aE,a),b)}
function ol(a){a.$f&&(m.clearTimeout(a.$f),a.$f=null)}f.aE=function(){this.$f=null;var a=v();0<=a-this.pn?(2!=this.Uf&&this.b.Lc(3),pl(this),this.Se=2,sl(),tl(this)):xl(this,this.pn-a)};function tl(a){a.b.Tr()||a.Xe||a.b.ej(a)}function pl(a){ol(a);Jh(a.fj);a.fj=null;a.g.stop();a.k.removeAll();if(a.jb){var b=a.jb;a.jb=null;yl(b);b.dispose()}a.Oc&&(a.Oc=null)}function rl(a,b){try{a.b.Vr(a,b),a.b.Lc(4)}catch(c){}};function zl(a,b,c,d,e){if(0==d)c(!1);else{var g=e||0;d--;Al(a,b,function(e){e?c(!0):m.setTimeout(function(){zl(a,b,c,d,g)},g)})}}function Al(a,b,c){var d=new Image;d.onload=function(){try{Bl(d),c(!0)}catch(a){}};d.onerror=function(){try{Bl(d),c(!1)}catch(a){}};d.onabort=function(){try{Bl(d),c(!1)}catch(a){}};d.ontimeout=function(){try{Bl(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function Bl(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function Cl(a){this.b=a;this.g=new Ik(null,!0)}f=Cl.prototype;f.tm=null;f.Zb=null;f.sj=!1;f.mr=null;f.rj=null;f.Qm=null;f.gn=null;f.wc=null;f.Jd=-1;f.rh=null;f.xh=null;f.connect=function(a){this.gn=a;a=Dl(this.b,null,this.gn);sl();this.mr=v();var b=this.b.C;null!=b?(this.rh=b[0],(this.xh=b[1])?(this.wc=1,El(this)):(this.wc=2,Fl(this))):(te(a,"MODE","init"),this.Zb=new fl(this,0,void 0,void 0,void 0),this.Zb.Je=this.tm,kl(this.Zb,a,!1,null,!0),this.wc=0)};
function El(a){var b=Dl(a.b,a.xh,"/mail/images/cleardot.gif");we(b);zl(b.toString(),5E3,u(a.NB,a),3,2E3);a.Lc(1)}f.NB=function(a){if(a)this.wc=2,Fl(this);else{sl();var b=this.b;b.Hc=b.ie.Jd;Gl(b,9)}a&&this.Lc(2)};
function Fl(a){var b=a.b.D;if(null!=b)sl(),b?(sl(),Hl(a.b,a,!1)):(sl(),Hl(a.b,a,!0));else if(a.Zb=new fl(a,0,void 0,void 0,void 0),a.Zb.Je=a.tm,b=a.b,b=Dl(b,b.lh()?a.rh:null,a.gn),sl(),!pc||Bc(10))te(b,"TYPE","xmlhttp"),kl(a.Zb,b,!1,a.rh,!1);else{te(b,"TYPE","html");var c=a.Zb;a=Boolean(a.rh);c.Uf=3;c.ge=we(b.clone());vl(c,a)}}f.Xm=function(a){return this.b.Xm(a)};f.Tr=function(){return!1};
f.Vr=function(a,b){this.Jd=a.Tg;if(0==this.wc)if(b){try{var c=this.g.parse(b)}catch(d){c=this.b;c.Hc=this.Jd;Gl(c,2);return}this.rh=c[0];this.xh=c[1]}else c=this.b,c.Hc=this.Jd,Gl(c,2);else if(2==this.wc)if(this.sj)sl(),this.Qm=v();else if("11111"==b){if(sl(),this.sj=!0,this.rj=v(),c=this.rj-this.mr,!pc||Bc(10)||500>c)this.Jd=200,this.Zb.cancel(),sl(),Hl(this.b,this,!0)}else sl(),this.rj=this.Qm=v(),this.sj=!1};
f.ej=function(){this.Jd=this.Zb.Tg;if(this.Zb.Nc)0==this.wc?this.xh?(this.wc=1,El(this)):(this.wc=2,Fl(this)):2==this.wc&&(a=!1,(a=!pc||Bc(10)?this.sj:200>this.Qm-this.rj?!1:!0)?(sl(),Hl(this.b,this,!0)):(sl(),Hl(this.b,this,!1)));else{0==this.wc?sl():2==this.wc&&sl();var a=this.b;a.Hc=this.Jd;Gl(a,2)}};f.lh=function(){return this.b.lh()};f.Lc=function(a){this.b.Lc(a)};function Il(a){U.call(this);this.headers=new Cd;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(Il,U);var Jl=/^https?$/i,Kl=["POST","PUT"];function Ll(a,b){a.o=Math.max(0,b)}f=Il.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?el(this.M):el(cl);this.I=this.M?al(this.M):al(cl);this.b.onreadystatechange=u(this.Fo,this);try{bk(Ml(this,"Opening Xhr")),this.N=!0,this.b.open(b,String(a),!0),this.N=!1}catch(e){bk(Ml(this,"Error opening Xhr: "+e.message));Nl(this,e);return}a=c||"";var g=this.headers.clone();
d&&Jd(d,function(a,b){g.set(b,a)});d=B(g.Ma(),Ol);c=m.FormData&&a instanceof m.FormData;!C(Kl,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{Pl(this),0<this.o&&(this.F=Ql(this.b),bk(Ml(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=Nk(this.kb,this.o,this)),bk(Ml(this,"Sending request")),this.B=!0,this.b.send(a),this.B=!1}catch(h){bk(Ml(this,"Send error: "+h.message)),Nl(this,h)}};function Ql(a){return pc&&Ac(9)&&ja(a.timeout)&&n(a.ontimeout)}function Ol(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,Ml(this,this.A),this.S("timeout"),yl(this,8))};
function Nl(a,b){a.j=!1;a.b&&(a.k=!0,a.b.abort(),a.k=!1);a.A=b;a.g=5;Rl(a);Sl(a)}function Rl(a){a.L||(a.L=!0,a.S("complete"),a.S("error"))}function yl(a,b){a.b&&a.j&&(Ml(a,"Aborting"),a.j=!1,a.k=!0,a.b.abort(),a.k=!1,a.g=b||7,a.S("complete"),a.S("abort"),Sl(a))}f.J=function(){this.b&&(this.j&&(this.j=!1,this.k=!0,this.b.abort(),this.k=!1),Sl(this,!0));Il.G.J.call(this)};f.Fo=function(){this.fa()||(this.N||this.B||this.k?Tl(this):this.yC())};f.yC=function(){Tl(this)};
function Tl(a){if(a.j&&"undefined"!=typeof aa)if(a.I[1]&&4==ml(a)&&2==a.getStatus())Ml(a,"Local request error detected and ignored");else if(a.B&&4==ml(a))Nk(a.Fo,0,a);else if(a.S("readystatechange"),4==ml(a)){Ml(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=Nd(String(a.C))[1]||null;if(!g&&self.location)var h=self.location.protocol,g=h.substr(0,h.length-
1);e=!Jl.test(g?g.toLowerCase():"")}c=e}if(c)a.S("complete"),a.S("success");else{a.g=6;var k;try{k=2<ml(a)?a.b.statusText:""}catch(l){k=""}a.A=k+" ["+a.getStatus()+"]";Rl(a)}}finally{Sl(a)}}}function Sl(a,b){if(a.b){Pl(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 Pl(a){a.b&&a.F&&(a.b.ontimeout=null);ja(a.D)&&(Ok(a.D),a.D=null)}function ml(a){return a.b?a.b.readyState:0}f.getStatus=function(){try{return 2<ml(this)?this.b.status:-1}catch(a){return-1}};
function nl(a){try{return a.b?a.b.responseText:""}catch(b){return""}}function Ml(a,b){return b+" ["+a.P+" "+a.C+" "+a.getStatus()+"]"};function Ul(a,b,c){this.B=a||null;this.b=1;this.g=[];this.k=[];this.o=new Ik(null,!0);this.C=b||null;this.D=null!=c?c:null}function Vl(a,b){this.b=a;this.map=b;this.context=null}f=Ul.prototype;f.Ih=null;f.Hb=null;f.ab=null;f.jm=null;f.Yi=null;f.ar=null;f.oj=null;f.Yg=0;f.hB=0;f.Cb=null;f.le=null;f.Id=null;f.$e=null;f.ie=null;f.Si=null;f.Ef=-1;f.yr=-1;f.Hc=-1;f.Wg=0;f.Wf=0;f.Ne=8;var Wl=new U;function Xl(a){T.call(this,"statevent",a)}w(Xl,T);
function Yl(a,b){T.call(this,"timingevent",a);this.size=b}w(Yl,T);function Zl(a){T.call(this,"serverreachability",a)}w(Zl,T);f=Ul.prototype;f.connect=function(a,b,c,d,e){sl();this.jm=b;this.Ih=c||{};d&&n(e)&&(this.Ih.OSID=d,this.Ih.OAID=e);this.ie=new Cl(this);this.ie.tm=null;this.ie.g=this.o;this.ie.connect(a)};
f.disconnect=function(){$l(this);if(3==this.b){var a=this.Yg++,b=this.Yi.clone();K(b,"SID",this.j);K(b,"RID",a);K(b,"TYPE","terminate");am(this,b);a=new fl(this,0,this.j,a,void 0);a.Uf=2;a.ge=we(b.clone());(new Image).src=a.ge;a.nh=v();ll(a)}bm(this)};function $l(a){if(a.ie){var b=a.ie;b.Zb&&(b.Zb.cancel(),b.Zb=null);b.Jd=-1;a.ie=null}a.ab&&(a.ab.cancel(),a.ab=null);a.Id&&(m.clearTimeout(a.Id),a.Id=null);cm(a);a.Hb&&(a.Hb.cancel(),a.Hb=null);a.le&&(m.clearTimeout(a.le),a.le=null)}
function dm(a,b){if(0==a.b)throw Error("Invalid operation: sending map when state is closed");a.g.push(new Vl(a.hB++,b));2!=a.b&&3!=a.b||em(a)}f.Tr=function(){return 0==this.b};function em(a){a.Hb||a.le||(a.le=wl(u(a.Or,a),0),a.Wg=0)}f.Or=function(a){this.le=null;fm(this,a)};
function fm(a,b){if(1==a.b){if(!b){a.Yg=Math.floor(1E5*Math.random());var c=a.Yg++,d=new fl(a,0,"",c,void 0);d.Je=null;var e=gm(a),g=a.Yi.clone();K(g,"RID",c);a.B&&K(g,"CVER",a.B);am(a,g);il(d,g,e);a.Hb=d;a.b=2}}else 3==a.b&&(b?hm(a,b):0!=a.g.length&&(a.Hb||hm(a)))}
function hm(a,b){var c,d;b?6<a.Ne?(a.g=a.k.concat(a.g),a.k.length=0,c=a.Yg-1,d=gm(a)):(c=b.B,d=b.Ie):(c=a.Yg++,d=gm(a));var e=a.Yi.clone();K(e,"SID",a.j);K(e,"RID",c);K(e,"AID",a.Ef);am(a,e);c=new fl(a,0,a.j,c,a.Wg+1);c.Je=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Hb=c;il(c,e,d)}function am(a,b){if(a.Cb){var c=a.Cb.dt(a);c&&Mb(c,function(a,c){K(b,c,a)})}}
function gm(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{Jd(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 im(a){a.ab||a.Id||(a.A=1,a.Id=wl(u(a.Gs,a),0),a.Wf=0)}
function jm(a){if(a.ab||a.Id||3<=a.Wf)return!1;a.A++;a.Id=wl(u(a.Gs,a),km(a,a.Wf));a.Wf++;return!0}f.Gs=function(){this.Id=null;this.ab=new fl(this,0,this.j,"rpc",this.A);this.ab.Je=null;this.ab.Hm=0;var a=this.ar.clone();K(a,"RID","rpc");K(a,"SID",this.j);K(a,"CI",this.Si?"0":"1");K(a,"AID",this.Ef);am(this,a);if(!pc||Bc(10))K(a,"TYPE","xmlhttp"),kl(this.ab,a,!0,this.oj,!1);else{K(a,"TYPE","html");var b=this.ab,c=Boolean(this.oj);b.Uf=3;b.ge=we(a.clone());vl(b,c)}};
function Hl(a,b,c){a.Si=c;a.Hc=b.Jd;a.ED(1,0);a.Yi=Dl(a,null,a.jm);em(a)}
f.Vr=function(a,b){if(0!=this.b&&(this.ab==a||this.Hb==a))if(this.Hc=a.Tg,this.Hb==a&&3==this.b)if(7<this.Ne){var c;try{c=this.o.parse(b)}catch(d){c=null}if(ha(c)&&3==c.length)if(0==c[0])t:{if(!this.Id){if(this.ab)if(this.ab.nh+3E3<this.Hb.nh)cm(this),this.ab.cancel(),this.ab=null;else break t;jm(this);sl()}}else this.yr=c[1],0<this.yr-this.Ef&&37500>c[2]&&this.Si&&0==this.Wf&&!this.$e&&(this.$e=wl(u(this.tA,this),6E3));else Gl(this,11)}else"y2f%"!=b&&Gl(this,11);else if(this.ab==a&&cm(this),!ya(b)){c=
this.o.parse(b);ha(c);for(var e=0;e<c.length;e++){var g=c[e];this.Ef=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.Cb&&this.Cb.xr(this),this.ar=Dl(this,this.lh()?this.oj:null,this.jm),im(this)):"stop"==g[0]&&Gl(this,7):3==this.b&&("stop"==g[0]?Gl(this,7):"noop"!=g[0]&&this.Cb&&this.Cb.wr(this,g),this.Wf=0)}}};f.tA=function(){null!=this.$e&&(this.$e=null,this.ab.cancel(),this.ab=null,jm(this),sl())};
function cm(a){null!=a.$e&&(m.clearTimeout(a.$e),a.$e=null)}
f.ej=function(a){var b;if(this.ab==a)cm(this),this.ab=null,b=2;else if(this.Hb==a)this.Hb=null,b=1;else return;this.Hc=a.Tg;if(0!=this.b)if(a.Nc)1==b?(v(),Wl.S(new Yl(Wl,a.Ie?a.Ie.length:0)),em(this),this.k.length=0):im(this);else{var c=a.Se,d;if(!(d=3==c||7==c||0==c&&0<this.Hc)){if(d=1==b)this.Hb||this.le||1==this.b||2<=this.Wg?d=!1:(this.le=wl(u(this.Or,this,a),km(this,this.Wg)),this.Wg++,d=!0);d=!(d||2==b&&jm(this))}if(d)switch(c){case 1:Gl(this,5);break;case 4:Gl(this,10);break;case 3:Gl(this,
6);break;case 7:Gl(this,12);break;default:Gl(this,2)}}};function km(a,b){var c=5E3+Math.floor(1E4*Math.random());a.Cb||(c*=2);return c*b}f.ED=function(a){if(!C(arguments,this.b))throw Error("Unexpected channel state: "+this.b);};function Gl(a,b){if(2==b||9==b){var c=null;a.Cb&&(c=null);var d=u(a.ND,a);c||(c=new J("//www.google.com/images/cleardot.gif"),we(c));Al(c.toString(),1E4,d)}else sl();lm(a,b)}f.ND=function(a){a?sl():(sl(),lm(this,8))};function lm(a,b){a.b=0;a.Cb&&a.Cb.Sr(a,b);bm(a);$l(a)}
function bm(a){a.b=0;a.Hc=-1;if(a.Cb)if(0==a.k.length&&0==a.g.length)a.Cb.Gm(a);else{var b=ub(a.k),c=ub(a.g);a.k.length=0;a.g.length=0;a.Cb.Gm(a,b,c)}}function Dl(a,b,c){var d=xe(c);if(""!=d.Bb)b&&ce(d,b+"."+d.Bb),de(d,d.bf);else var e=window.location,d=ye(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Ih&&Mb(a.Ih,function(a,b){K(d,b,a)});K(d,"VER",a.Ne);am(a,d);return d}f.Xm=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new Il;a.O=!1;return a};
function wl(a,b){if(!ka(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}f.Lc=function(){Wl.S(new Zl(Wl))};function sl(){Wl.S(new Xl(Wl))}f.lh=function(){return!(!pc||Bc(10))};function mm(){}f=mm.prototype;f.xr=function(){};f.wr=function(){};f.Sr=function(){};f.Gm=function(){};f.dt=function(){return{}};function nm(a,b){Lk.call(this);if(ka(a))b&&(a=u(a,b));else if(a&&ka(a.handleEvent))a=u(a.handleEvent,a);else throw Error("Invalid listener argument");this.B=a;uk(this,"tick",u(this.A,this));this.stop();Mk(this,5E3+2E4*Math.random())}w(nm,Lk);nm.prototype.o=0;nm.prototype.A=function(){if(500<this.b){var a=this.b;24E4>2*a&&(a*=2);Mk(this,a)}this.B()};nm.prototype.start=function(){nm.G.start.call(this);this.o=v()+this.b};nm.prototype.stop=function(){this.o=0;nm.G.stop.call(this)};function om(a,b){this.I=a;this.k=b;this.j=new Mh;this.g=new nm(this.Mu,this);this.b=null;this.F=!1;this.A=null;this.D="";this.C=this.o=0;this.B=[]}w(om,mm);f=om.prototype;f.subscribe=function(a,b,c){return this.j.subscribe(a,b,c)};f.ja=function(a,b,c){return this.j.ja(a,b,c)};f.Ib=function(a){return this.j.Ib(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(),Jh(this.j))};f.fa=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 Ul("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.b;e&&(e.Cb=null);d.Cb=this;this.b=d;e?this.b.connect(a,b,this.k,e.j,e.Ef):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&&fm(this.b),this.b.disconnect());this.C=0};
f.sendMessage=function(a,b){var c={_sc:a};b&&cc(c,b);this.g.ed||2==(this.b?this.b.b:0)?this.B.push(c):this.b&&3==this.b.b&&dm(this.b,c)};f.xr=function(){var a=this.g;a.stop();Mk(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)dm(this.b,a[b])}this.H("handlerOpened")};f.Sr=function(a,b){var c=2==b&&401==this.b.Hc;if(4!=b&&!c){if(6==b||410==this.b.Hc)c=this.g,c.stop(),Mk(c,500);this.g.start()}this.H("handlerError",b)};
f.Gm=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.dt=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&&cc(a,this.A);return a};f.wr=function(a,b){if("S"==b[0])this.D=b[1];else if("gracefulReconnect"==b[0]){var c=this.g;c.stop();Mk(c,500);this.g.start();this.b.disconnect()}else this.H("handlerMessage",new Fj(b[0],b[1]))};f.getDeviceId=function(){return this.k.id};
f.Mu=function(){this.g.stop();var a=this.b,b=0;a.ab&&b++;a.Hb&&b++;0!=b?this.g.start():this.connect(this.A,this.o)};function pm(){this.b=[];this.g=[]}function qm(a){E(a.b)&&(a.b=a.g,a.b.reverse(),a.g=[])}function rm(a,b){a.g.push(b)}function sm(a){qm(a);return a.b.pop()}f=pm.prototype;f.Na=function(){return this.b.length+this.g.length};f.isEmpty=function(){return E(this.b)&&E(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 qb(this.g,a);rb(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 tm(a){this.reset(a)}function um(a,b){if(a.g)throw Error(b+" is not allowed in V3.");}function vm(a){a.volume=-1;a.muted=!1;a.j=null;a.b=-1;a.k=null;a.o=0;a.A=v()}tm.prototype.reset=function(a){this.Va=[];this.g="";wm(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 wm(a){a.index=-1;a.videoId="";vm(a)}function xm(a){return a.g?a.videoId:a.Va[a.index]}function ym(a,b){a.o=b;a.A=v()}function zm(a){switch(a.b){case 1:return(v()-a.A)/1E3+a.o;case -1E3:return 0}return a.o}function Am(a,b){um(a,"setVideoId");var c=a.index;a.index=fb(a.Va,b);c!=a.index&&vm(a)}function Bm(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&vm(a)}function Cm(a,b,c){um(a,"setPlaylist");c=c||xm(a);Db(a.Va,b)&&c==xm(a)||(a.Va=ub(b),Am(a,c))}
tm.prototype.add=function(a){um(this,"add");return a&&!C(this.Va,a)?(this.Va.push(a),!0):!1};tm.prototype.remove=function(a){um(this,"remove");var b=xm(this);return qb(this.Va,a)?(this.index=fb(this.Va,b),!0):!1};function Dm(a){var b={};b.videoIds=ub(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=ac(a.j);b.playerTime=a.o;b.playerTimeAt=a.A;return b}tm.prototype.clone=function(){return new tm(Dm(this))};function Em(a){$i.call(this);this.b=0;this.k=a;this.B=[];this.A=new pm;this.o=NaN;this.j=this.g=null;this.F=u(this.Wu,this);this.C=u(this.Ik,this);this.D=u(this.Vu,this);var b=0;a?(b=a.getProxyState(),3!=b&&(a.subscribe("proxyStateChange",this.Go,this),Fm(this))):b=3;0!=b&&L(u(function(){this.Go(b)},this),0);Gm(this,wj())}w(Em,$i);function Hm(a){return new tm(a.k.getPlayerContextData())}f=Em.prototype;
f.play=function(){1==this.b?(this.g?this.g.play(null,ca,u(function(){this.zh("Failed to play video with cast v2 channel.");Im(this,"play")},this)):Im(this,"play"),Jm(this,1,zm(Hm(this))),Km(this)):Lm(this,this.play)};f.pause=function(){1==this.b?(this.g?this.g.pause(null,ca,u(function(){this.zh("Failed to pause video with cast v2 channel.");Im(this,"pause")},this)):Im(this,"pause"),Jm(this,2,zm(Hm(this))),Km(this)):Lm(this,this.pause)};
f.tr=function(a){if(1==this.b){if(this.g){var b=Hm(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.zh("Failed to seek in video with cast v2 channel.");Im(this,"seekTo",{newTime:a})},this))}else Im(this,"seekTo",{newTime:a});Jm(this,3,a);Km(this)}else Lm(this,ra(this.tr,a))};
f.stop=function(){if(1==this.b){this.g?this.g.stop(null,ca,u(function(){this.zh("Failed to stop video with cast v2 channel.");Im(this,"stopVideo")},this)):Im(this,"stopVideo");var a=Hm(this);wm(a);Mm(this,a);Km(this)}else Lm(this,this.stop)};
f.setVolume=function(a,b){if(1==this.b){var c=Hm(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);Im(this,"setVolume",d)}c.muted=b;c.volume=a;Mm(this,c);Km(this)}else Lm(this,ra(this.setVolume,a,b))};
f.hm=function(a,b){if(1==this.b){var c=Hm(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:pf(b.style)};cc(d,c.j);Im(this,"setSubtitlesTrack",d)}else d={videoId:a},Im(this,"setSubtitlesTrack",d);Mm(this,c)}else Lm(this,ra(this.hm,a,b))};
function Nm(a,b,c,d,e){var g=Hm(a);d=d||0;e={videoId:b,currentIndex:d,listId:e||g.g};Bm(g,b,d);n(c)&&(ym(g,c),e.currentTime=c);Im(a,"setPlaylist",e);Mm(a,g)}f.mi=function(a,b){if(1==this.b){var c=Hm(this);if(a!=xm(c)){var d;um(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},Im(this,"insertVideo",d));Am(c,a);d={videoId:a};n(b)&&(ym(c,b),d.currentTime=b);Im(this,"setVideo",d);Mm(this,c)}}else Lm(this,ra(this.mi,a,b))};
f.Fk=function(a,b,c){if(1==this.b){var d=Hm(this),e=a==xm(d),d=Db(b,d.Va);e?d||(Im(this,"updatePlaylist",{videoIds:b.join(",")}),a=Hm(this),Cm(a,b),Mm(this,a)):d?this.mi(a,c):(Im(this,"setPlaylist",{videoIds:b.join(","),videoId:a,currentTime:c}),e=Hm(this),ym(e,c),Cm(e,b,a),Mm(this,e))}else Lm(this,ra(this.Fk,a,b,c))};f.dispose=function(){if(3!=this.b){var a=this.b;this.b=3;this.H("proxyStateChange",a,this.b)}Em.G.dispose.call(this)};
f.J=function(){N(this.o);this.o=NaN;Om(this);this.k=null;this.A.clear();Gm(this,null);Em.G.J.call(this)};function Fm(a){z(["remotePlayerChange","remoteQueueChange"],function(a){this.B.push(this.k.subscribe(a,ra(this.zC,a),this))},a)}function Om(a){z(a.B,function(a){this.k.unsubscribeByKey(a)},a);a.B.length=0}function Lm(a,b){50>a.A.Na()&&rm(a.A,b)}function Jm(a,b,c){var d=Hm(a);ym(d,c);-1E3!=d.b&&(d.b=b);Mm(a,d)}function Im(a,b,c){a.k.sendMessage(b,c)}
function Mm(a,b){Om(a);a.k.setPlayerContextData(Dm(b));Fm(a)}f.Go=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();)sm(this.A).apply(this);else 3==a&&this.dispose()}};function Km(a){N(a.o);a.o=L(u(function(){this.H("remotePlayerChange");this.o=NaN},a),2E3)}f.zC=function(a){("remotePlayerChange"!=a||isNaN(this.o))&&this.H(a)};
function Gm(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.Wu=function(a){if(!a)this.Ik(null),Gm(this,null);else if(this.j.receiver.volume){a=this.j.receiver.volume;var b=Hm(this);if(b.volume!=a.level||b.muted!=a.muted)b.volume=a.level||0,b.muted=!!a.muted,Mm(this,b),Km(this)}};f.Ik=function(a){this.g&&this.g.removeUpdateListener(this.D);if(this.g=a)this.g.addUpdateListener(this.D),Pm(this),Km(this)};
function Pm(a){var b=a.g.customData;if(a.g.media){var c=a.g.media,d=Hm(a);c.contentId!=d.videoId&&xh("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;ym(d,a.g.getEstimatedTime());Mm(a,d)}else xh("CP","No cast media. Ignoring.")}f.Vu=function(a){a?(Pm(this),Km(this)):this.Ik(null)};f.zh=function(a){xh("CP",a)};function Qm(a,b,c){$i.call(this);this.O=a;this.kd=[];this.kd.push(R(window,"beforeunload",u(this.Bx,this)));this.j=[];this.b=new tm;3==c["mdx-version"]&&(this.b.g="RQ"+b.token);this.D=b.id;this.g=new om(Oi(this.O,"/bc",void 0,!1),c);this.g.subscribe("handlerOpened",this.Hx,this);this.g.subscribe("handlerClosed",this.Cx,this);this.g.subscribe("handlerError",this.Ex,this);this.b.g?this.g.subscribe("handlerMessage",this.Fx,this):this.g.subscribe("handlerMessage",this.Gx,this);a=this.g;b=b.token;(a.k.loungeIdToken=
b)||a.g.stop()}w(Qm,$i);f=Qm.prototype;f.uh=NaN;f.Bn=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;ym(this.b,g);this.log_("Connecting with setPlaylist and params: "+pf(h));this.g.connect({method:"setPlaylist",params:pf(h)},
a,nj())}else this.log_("Connecting without params"),this.g.connect({},a,nj());Rm(this)};f.dispose=function(){this.fa()||Sm(this,3);Qm.G.dispose.call(this)};f.J=function(){Tm(this);Um(this);N(this.Xi);this.Xi=NaN;this.k=null;Og(this.kd);this.kd.length=0;this.g.dispose();Qm.G.J.call(this);this.j=this.b=this.g=null};f.log_=function(a){xh("conn",a)};f.Bx=function(){this.A(2)};function Sm(a,b){a.H("proxyStateChange",b)}
function Rm(a){a.uh=L(u(function(){this.log_("Connecting timeout");this.A(1)},a),1E4)}function Tm(a){N(a.uh);a.uh=NaN}function Vm(a){Um(a);a.Bn=L(u(function(){this.o("getNowPlaying")},a),2E4)}function Um(a){N(a.Bn);a.Bn=NaN}function Wm(a){var b=a.g;return!!b.b&&3==b.b.b&&isNaN(a.uh)}
f.Hx=function(){this.log_("Channel opened");var a=this.g,b=this.D;mi("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!a.b.Si,sessionId:a.b.j,arrayId:a.b.Ef});mi("yt-remote-session-screen-id",b);a=hj();b=ij();C(a,b)||a.push(b);lj(a);gj()};f.Cx=function(){this.log_("Channel closed");isNaN(this.uh)?tj(!0):tj();this.dispose()};
f.Ex=function(a){tj();isNaN(this.B())?(this.log_("Channel error: "+a+" without reconnection"),this.dispose()):(this.log_("Channel error: "+a+" with reconnection in "+this.B()+" ms"),Sm(this,2))};function Xm(a,b){b==Wm(a)?b&&Sm(a,1):b?(Tm(a),a.C()&&a.b.reset(),Sm(a,1),a.o("getNowPlaying")):a.A(1)}function Ym(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.b.videoId&&(Xb(b.params)?a.b.j=null:a.b.j=b.params,a.H("remotePlayerChange"))}
function Zm(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.b.g=b.params.listId;Bm(a.b,c,d);a.H("remoteQueueChange")}function $m(a,b){Zm(a,b);an(a,b)}
function an(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);ym(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=nf(b.params.currentError).reason||d));a.b.k=d;1==a.b.b?Vm(a):Um(a);a.H("remotePlayerChange")}function bn(a,b){var c="true"==b.params.muted;a.b.volume=parseInt(b.params.volume,10);a.b.muted=c;a.H("remotePlayerChange")}
f.Fx=function(a){a.params?this.log_("Received: action="+a.action+", params="+pf(a.params)):this.log_("Received: action="+a.action);switch(a.action){case "loungeStatus":a=nf(a.params.devices);this.j=A(a,function(a){return new Ej(a)});a=!!B(this.j,function(a){return"LOUNGE_SCREEN"==a.type});Xm(this,a);break;case "loungeScreenConnected":Xm(this,!0);break;case "loungeScreenDisconnected":sb(this.j,function(a){return"LOUNGE_SCREEN"==a.type});Xm(this,!1);break;case "remoteConnected":var b=new Ej(nf(a.params.device));
B(this.j,function(a){return a.equals(b)})||pb(this.j,b);break;case "remoteDisconnected":b=new Ej(nf(a.params.device));sb(this.j,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":Zm(this,a);break;case "nowPlaying":$m(this,a);break;case "onStateChange":an(this,a);break;case "onVolumeChanged":bn(this,a);break;case "onSubtitlesTrackChanged":Ym(this,a);break;default:this.log_("Unrecognized action: "+a.action)}};
f.Gx=function(a){a.params?this.log_("Received: action="+a.action+", params="+pf(a.params)):this.log_("Received: action="+a.action);cn(this,a);dn(this,a);if(Wm(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=nf(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==xm(this.b)&&
(delete a.params.videoId,Xb(a.params)?this.b.j=null:this.b.j=a.params,this.H("remotePlayerChange"));else if(xm(this.b)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=xm(this.b)):Am(this.b,""),e&&(e=e.split(","),Cm(this.b,e,d))):Cm(this.b,[]),this.b.add(d)&&this.o("getPlaylist"),d&&Am(this.b,d),b.index==this.b.index&&Db(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?Vm(this):Um(this)),"onError"!=a.action||-1!=this.b.b&&-1E3!=this.b.b||(a=nf(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==xm(this.b)&&(this.b.b=-1E3,this.b.k=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),ym(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 cn(a,b){switch(b.action){case "loungeStatus":var c=nf(b.params.devices);a.j=A(c,function(a){return new Ej(a)});break;case "loungeScreenDisconnected":sb(a.j,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new Ej(nf(b.params.device));B(a.j,function(a){return a.equals(d)})||pb(a.j,d);break;case "remoteDisconnected":d=new Ej(nf(b.params.device)),sb(a.j,function(a){return a.equals(d)})}}
function dn(a,b){var c=!1;if("loungeStatus"==b.action)c=!!B(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==Wm(a)?c&&Sm(a,1):c?(Tm(a),a.C()&&a.b.reset(),Sm(a,1),a.o("getNowPlaying")):a.A(1)}f.Lx=function(){if(this.k){var a=this.k;this.k=null;this.b.videoId!=a&&this.o("getNowPlaying")}};Qm.prototype.subscribe=Qm.prototype.subscribe;Qm.prototype.unsubscribeByKey=Qm.prototype.Ib;
Qm.prototype.L=function(){var a=3;this.fa()||(a=0,isNaN(this.B())?Wm(this)&&(a=1):a=2);return a};Qm.prototype.getProxyState=Qm.prototype.L;Qm.prototype.A=function(a){this.log_("Disconnecting with "+a);1==a&&tj();this.g.disconnect(a);this.dispose()};Qm.prototype.disconnect=Qm.prototype.A;Qm.prototype.I=function(){var a=this.b;this.k&&(a=this.b.clone(),Bm(a,this.k,a.index));return Dm(a)};Qm.prototype.getPlayerContextData=Qm.prototype.I;
Qm.prototype.N=function(a){var b=new tm(a);b.videoId&&b.videoId!=this.b.videoId&&(this.k=b.videoId,N(this.Xi),this.Xi=L(u(this.Lx,this),5E3));var c=[];this.b.g==b.g&&this.b.videoId==b.videoId&&this.b.index==b.index&&Db(this.b.Va,b.Va)||c.push("remoteQueueChange");this.b.b==b.b&&this.b.volume==b.volume&&this.b.muted==b.muted&&zm(this.b)==zm(b)&&pf(this.b.j)==pf(b.j)||c.push("remotePlayerChange");this.b.reset(a);z(c,function(a){this.H(a)},this)};Qm.prototype.setPlayerContextData=Qm.prototype.N;
Qm.prototype.F=function(){return this.g.k.loungeIdToken};Qm.prototype.getLoungeToken=Qm.prototype.F;Qm.prototype.C=function(){var a=this.g.getDeviceId(),b=B(this.j,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};Qm.prototype.getOtherConnectedRemoteId=Qm.prototype.C;Qm.prototype.B=function(){var a=this.g;return a.g.ed?a.g.o-v():NaN};Qm.prototype.getReconnectTimeout=Qm.prototype.B;Qm.prototype.P=function(){if(!isNaN(this.B())){var a=this.g.g;a.ed&&(a.stop(),a.start(),a.A())}};
Qm.prototype.reconnect=Qm.prototype.P;Qm.prototype.o=function(a,b){b?this.log_("Sending: action="+a+", params="+pf(b)):this.log_("Sending: action="+a);this.g.sendMessage(a,b)};Qm.prototype.sendMessage=Qm.prototype.o;function en(a){$i.call(this);this.k=a;this.Jc=Eh(pj());this.log_("Initializing local screens: "+Gh(this.Jc));this.j=fn();this.log_("Initializing account screens: "+Gh(this.j));this.Sl=null;this.b=[];this.g=[];gn(this,Tj()||[]);this.log_("Initializing DIAL devices: "+Ri(this.g));a=Eh(qj());hn(this,a);this.log_("Initializing online screens: "+Gh(this.b));this.o=v()+3E5;jn(this)}w(en,$i);var kn=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=en.prototype;f.Fh=NaN;f.Dj="";f.log_=function(a){xh("RM",a)};
f.zh=function(a){xh("RM",a)};function fn(){var a=Eh(pj()),b=Eh(qj());return hb(b,function(b){return!Yi(a,b)})}function jn(a){Sh("yt-remote-cast-device-list-update",function(){var a=Tj();gn(this,a||[])},a);Sh("yt-remote-cast-device-status-update",a.UC,a);a.Es();var b=v()>a.o?2E4:1E4;Te(u(a.Es,a),b)}f.H=function(a,b){if(this.fa())return!1;this.log_("Firing "+a);return this.M.H.apply(this.M,arguments)};
f.Es=function(){var a=Tj()||[];E(a)||gn(this,a);a=ln(this);E(a)||(ib(a,function(a){return!Yi(this.j,a)},this)&&!pi("yt-remote-lounge-token-expiration")?mn(this):nn(this,a))};function on(a,b){var c=ln(a);return hb(b,function(a){return a.uuid?(a=Xi(this.g,a.uuid),!!a&&"RUNNING"==a.status):!!Yi(c,a)},a)}
function gn(a,b){var c=!1;z(b,function(a){var b=Zi(this.Jc,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."),pn(a));rj(Ui(b));var d=!Db(a.g,b,Wi);d&&a.log_("Updating DIAL devices: "+Ri(a.g)+" to "+Ri(b));a.g=b;hn(a,a.b);d&&a.H("onlineReceiverChange")}
f.UC=function(a){var b=Xi(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,rj(Ui(this.g)));hn(this,this.b)};function hn(a,b,c){var d=on(a,b),e=!Db(a.b,d,Bh);!e&&!c||E(b)||(b=A(d,Ch),mi("yt-remote-online-screens",b,60));e&&(a.log_("Updating online screens: "+Gh(a.b)+" -> "+Gh(d)),a.b=d,a.H("onlineReceiverChange"))}
function nn(a,b){var c=[],d={};z(b,function(a){a.token&&(d[a.token]=a,c.push(a.token))});var e={method:"POST",gd:{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.Sl?qn(this,this.Sl):null;e&&!Yi(c,e)&&c.push(e);hn(this,c,!0)}};Gi(Oi(a.k,"/pairing/get_screen_availability"),e)}
function mn(a){var b=ln(a),c=A(b,function(a){return a.id});E(c)||(a.log_("Updating lounge tokens for: "+pf(c)),Gi(Oi(a.k,"/pairing/get_lounge_token_batch"),{gd:{screen_ids:c.join(",")},method:"POST",context:a,onSuccess:function(a,c){rn(this,c.screens||[]);this.Jc=hb(this.Jc,function(a){return!!a.token});pn(this);nn(this,b)}}))}function rn(a,b){z(tb(a.Jc,a.j),function(a){var d=B(b,function(b){return a.id==b.screenId});d&&(a.token=d.loungeToken)})}
function pn(a){var b=Eh(pj());Db(a.Jc,b,Bh)||(a.log_("Saving local screens: "+Gh(b)+" to "+Gh(a.Jc)),oj(A(a.Jc,Ch)),hn(a,a.b,!0),gn(a,Tj()||[]),a.H("managedScreenChange",ln(a)))}function sn(a,b,c){var d=lb(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;Yi(a.b,c)||a.b.push(c);return e}
f.bs=function(a,b,c){var d=!1;b>=kn.length&&(this.log_("Pairing DIAL device "+a+" with "+c+" timed out."),d=!0);var e=Xi(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?(tn(this),this.H("screenPair",null)):Gi(Oi(this.k,"/pairing/get_screen"),{method:"POST",gd:{pairing_code:c},context:this,onSuccess:function(a,b){if(c==this.Dj){tn(this);
var d=new Ah(b.screen);d.name=e.name;d.uuid=e.id;this.log_("Pairing "+c+" succeeded.");var l=sn(this,this.Jc,d);this.log_("Paired with "+(l?"a new":"an old")+" local screen:"+Fh(d));pn(this);this.H("screenPair",d)}},onError:function(){c==this.Dj&&(this.log_("Polling pairing code: "+c),N(this.Fh),this.Fh=L(u(this.bs,this,a,b+1,c),kn[b]))}})};
function un(a,b,c){var d=vn,e="";tn(d);if(Xi(d.g,a)){if(!e){var g=e=Si();Lj();var h=Vj(a),k=Ij();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",Rj(h),Vh("yt-remote-cast-device-status-update",h));
Hj("Sending a cast launch request with params: "+l.parameters);k.launch(l,ra(Wj,a))}else Hj("No cast API or no cast device. Dropping cast launch.")}d.Dj=e;d.Fh=L(u(d.bs,d,a,0,e),kn[0])}else d.log_("No DIAL device with id: "+a)}function tn(a){N(a.Fh);a.Fh=NaN;a.Dj=""}function qn(a,b){var c=Zi(ln(a),b);a.log_("Found screen: "+Fh(c)+" with key: "+b);return c}function wn(a){var b=vn,c=Zi(b.b,a);b.log_("Found online screen: "+Fh(c)+" with key: "+a);return c}
function xn(a){var b=vn,c=Xi(b.g,a);if(!c){var d=Zi(b.Jc,a);d&&(c=Xi(b.g,d.uuid))}b.log_("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function ln(a){return tb(a.j,hb(a.Jc,function(a){return!Yi(this.j,a)},a))};function yn(a){aj.call(this,"ScreenServiceProxy");this.Db=a;this.b=[];this.b.push(this.Db.$_s("screenChange",u(this.PB,this)));this.b.push(this.Db.$_s("onlineScreenChange",u(this.OB,this)))}w(yn,aj);f=yn.prototype;f.On=function(a){return this.Db.$_gos(a)};f.contains=function(a){return!!this.Db.$_c(a)};f.get=function(a){return this.Db.$_g(a)};f.start=function(){};f.add=function(a,b,c){this.Db.$_a(a,b,c)};f.remove=function(a,b,c){this.Db.$_r(a,b,c)};
f.J=function(){for(var a=0,b=this.b.length;a<b;++a)this.Db.$_ubk(this.b[a]);this.b.length=0;this.Db=null;yn.G.J.call(this)};f.PB=function(){this.H("screenChange")};f.OB=function(){this.H("onlineScreenChange")};function zn(a){a?ba("yt.mdx.remote.castv2_",!0,void 0):Lj();ni&&ni.j();gj();An||(An=new Ni);vn||a||(vn=new en(An),vn.subscribe("screenPair",Bn),vn.subscribe("managedScreenChange",Cn),vn.subscribe("onlineReceiverChange",function(){Vh("yt-remote-receiver-availability-change")}));Dn||(Dn=q("yt.mdx.remote.deferredProxies_")||[],ba("yt.mdx.remote.deferredProxies_",Dn,void 0));Xb(En)&&(En=q("yt.mdx.remote.channelParams_")||{})}
function Fn(){Uh(Gn);Gn.length=0;Jh(Hn);Hn=null;Dn&&(z(Dn,function(a){a(null)}),Dn.length=0,Dn=null,ba("yt.mdx.remote.deferredProxies_",null,void 0));vn&&(Jh(vn),vn=null);An=null;En={};Qj()}
function In(){if(Jn()&&uj()){var a=[];if(pi("yt-remote-cast-available")||pi("yt-remote-cloudview-cast-button-shown")||Kn())a.push({key:"cast-selector-receiver",name:Ln()}),mi("yt-remote-cloudview-cast-button-shown",!0);return a}var b=[],b=Mn()?Nn().Db.$_gos(!0):Eh(qj());(a=On())&&Kn()&&(Yi(b,a)||b.push(a));Mn()||(a=Vi(sj()),a=hb(a,function(a){return!Zi(b,a.id)}),b=tb(b,a));return Ti(b)}
function Pn(){if(Jn()&&uj()){var a=vj();return a?{key:"cast-selector-receiver",name:a}:null}var a=In(),b=Qn(),c=On();c||(c=Rn());return B(a,function(a){var e;if(e=c)e=a.key,e=c.id==e||c.uuid==e;return e||b&&(a=xn(a.key))&&a.id==b?!0:!1})}function Ln(){if(Jn()&&uj())return vj();var a=On();return a?a.name:null}function On(){var a=Sn();if(!a)return null;if(!vn){var b=Nn().On();return Zi(b,a)}return qn(vn,a)}
function Tn(a,b){Un("Connecting to: "+pf(a));if("cast-selector-receiver"==a.key)Vn(b||null),Dj(b||null);else{Wn();Vn(b||null);var c=null;vn?c=wn(a.key):(c=Nn().Db.$_gos(void 0),c=Zi(c,a.key));if(c)Xn(c);else{if(vn&&(c=xn(a.key))){Yn(c);return}L(function(){Zn(null)},0)}}}
function Wn(){vn&&tn(vn);t:{var a=Kn();if(a&&(a=a.getOtherConnectedRemoteId())){Un("Do not stop DIAL due to "+a);$n("");break t}(a=Qn())?(Un("Stopping DIAL: "+a),Xj(a),$n("")):(a=On())&&a.uuid&&(Un("Stopping DIAL: "+a.uuid),Xj(a.uuid))}Bj()?yj().stopSession():xj("stopSession called before API ready.");(a=Kn())&&a.disconnect(1);Zn(null)}function ao(){var a=bo(),a=a?a.currentTime:0,b=co();0==a&&b&&(a=zm(Hm(b)));return a}function co(){var a=Kn();return a?new Em(a):null}
function Un(a){xh("remote",a)}function Jn(){return!!q("yt.mdx.remote.castv2_")}function Mn(){return q("yt.mdx.remote.screenService_")}function Nn(){if(!Hn){var a=Mn();a&&(Hn=new yn(a))}return Hn}function Sn(){return q("yt.mdx.remote.currentScreenId_")}function eo(a){ba("yt.mdx.remote.currentScreenId_",a,void 0);if(vn){var b=vn;b.o=v()+3E5;if((b.Sl=a)&&(a=qn(b,a))&&!Yi(b.b,a)){var c=ub(b.b);c.push(a);hn(b,c,!0)}}}function Qn(){return q("yt.mdx.remote.currentDialId_")}
function $n(a){ba("yt.mdx.remote.currentDialId_",a,void 0)}function bo(){return q("yt.mdx.remote.connectData_")}function Vn(a){ba("yt.mdx.remote.connectData_",a,void 0)}function Kn(){return q("yt.mdx.remote.connection_")}function Zn(a){var b=Kn();Vn(null);a?cb(!Kn()):(eo(""),$n(""));ba("yt.mdx.remote.connection_",a,void 0);z(Dn,function(b){b(a)});Dn.length=0;b&&!a?Vh("yt-remote-connection-change",!1):!b&&a&&Vh("yt-remote-connection-change",!0)}
function Rn(){var a=jj();if(!a)return null;if(Mn()){var b=Nn().On();return Zi(b,a)}return vn?qn(vn,a):null}function Xn(a){cb(!Sn());eo(a.id);var b=q("yt.mdx.remote.channelParams_");a=new Qm(An,a,b);a.connect(1,bo());Ih(a,function(){Kn()&&(Kn(),Zn(null))});Zn(a)}function Yn(a){Qn();Un("Connecting to: "+(a?a.toString():"null"));$n(a.id);var b=bo();b?un(a.id,b.videoIds[b.index],b.currentTime):un(a.id)}function Bn(a){Un("Paired with: "+Fh(a));a?Xn(a):Zn(null)}
function Cn(){var a=Sn();a&&!On()&&(Un("Dropping current screen with id: "+a),Wn());Rn()||tj()}var An=null,Dn=null,Hn=null,vn=null,En={},Gn=[];var fo={XG:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c;return a},NZ:function(a){return a.reverse()},PL:function(a,b){return a.slice(b)}};function go(a){a=a.split("");a=fo.XG(a,15);a=fo.XG(a,44);a=fo.NZ(a,66);a=fo.XG(a,24);a=fo.PL(a,3);a=fo.NZ(a,51);a=fo.XG(a,2);a=fo.XG(a,50);return a.join("")};function ho(){};var io={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 jo(a,b,c,d,e,g,h){this.id=""+a;this.g=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.ra=h||0;this.b=c||null;this.video=d||null;this.k=e||null;this.o=g||null;this.j=io[this.id.split(":")[0]]||""}function ko(a){return 2==a.g}function lo(a){return!(a.b&&a.video)}function mo(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function no(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function oo(a,b,c){this.name=a;this.b="original"==c}oo.prototype.toString=function(){return this.name};var Wb={mE:"auto",JJ:"tiny",fI:"light",SMALL:"small",uE:"medium",LARGE:"large",GH:"hd720",EH:"hd1080",FH:"hd1440",PH:"highres",UNKNOWN:"unknown"},po={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,highres:2160};function qo(a,b,c,d){this.width=a;this.height=b;if(!d)t:{for(d=2;d<ro.length;d++){var e=so[ro[d]];if(a>e[0]&&b>=e[1]||a>=e[0]&&b>e[1]){d=ro[d-1];break t}}d="tiny"}this.b=d;this.g=c||0}var ro="auto highres hd1440 hd1080 hd720 large medium small tiny".split(" "),so={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 to(a,b){this.start=a;this.end=b;this.length=b-a+1}function uo(a){a=a.split("-");return 2==a.length&&(a=new to(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function vo(a,b){return new to(a,a+b-1)}to.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function wo(a,b){var c=Nd(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 xo(a,b){var c=Nd(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 Ld(c[1],c[2],c[3],c[4],e,d,c[7])}
function yo(a,b,c){a=Nd(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 Ld(a[1],a[2],a[3],a[4],g,e,a[7])}function zo(a,b){var c=a,d;for(d in b)null!=b[d]&&(c=yo(c,d,b[d]));return c};function Ao(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.b=a;this.sourceURL=d;this.startTime=b;this.Z=e||null};function Bo(){this.ba=[]}f=Bo.prototype;f.ym=function(a){return(a=Co(this,a))?a.duration:0};f.Ds=function(){return this.ba[0].b};f.kc=function(){return this.ba[this.ba.length-1].b};f.zf=function(){return this.ba[this.ba.length-1].endTime};f.en=function(){return this.ba[0].startTime};f.yj=function(){return 0};f.Jn=function(a){return(a=Do(this,a))?a.b:-1};f.us=function(a){return Co(this,a).sourceURL};f.Ti=function(a){return(a=Co(this,a))?a.startTime:0};f.qn=function(){return 0<this.ba.length};
function Co(a,b){var c=zb(a.ba,new Ao(b,0,0,""),function(a,b){return a.b-b.b});return 0<=c?a.ba[c]:null}function Do(a,b){var c=zb(a.ba,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.ba[c]:a.ba[Math.max(0,-c-2)]}f.append=function(a){if(0!=a.length)if(a=ub(a),0==this.ba.length)this.ba=a;else{var b=a[0].b-this.kc();1<b&&ob(this.ba);for(b=0<b?0:-b+1;b<a.length;b++)this.ba.push(a[b])}};function Eo(a,b){var c=lb(a.ba,function(a){return a.b>=b},a);0<c&&a.ba.splice(0,c)};function Fo(a){this.b=a;this.g=0;this.j=-1}var Go=0;function Ho(a,b){this.index=null;this.info=b;this.b=null;this.o=this.j=!1;this.A=new Fo(a)}Ho.prototype.Ml=function(){return!1};Ho.prototype.mc=function(){return!1};Ho.prototype.zq=function(a){return[a]};Ho.prototype.Gi=function(a){return[a]};function Io(a,b,c,d,e,g,h,k,l){this.b=b;this.Z=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.Z?this.Z.length:NaN;this.B=!!l;this.Z?(this.A=this.j+this.g==this.Z.length,this.o=this.startTime+this.duration*this.j/this.Z.length,this.D=this.duration*this.g/this.Z.length):(this.A=0!=this.g,this.o=this.startTime,this.D=this.duration);this.C=this.o+this.D}function Jo(a){return 1==a.type||2==a.type}
function Ko(a,b){return a.b==b.b&&a.Z.start+a.j+a.g==b.Z.start+b.j}function Lo(a){cb(1==a.length||kb(a,function(a){return!!a.Z}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new to(a[0].Z.start+a[0].j,b.Z.start+b.j+b.g-1)}
function Mo(a,b){var c;c=a.b;var d=a;c.zg(d);if(c.mc()){4==d.type&&(d=c.Gi(d),d=d[d.length-1]);var e=0,g=d.Z.start+d.j+d.g;3==d.type&&(e=d.k,g==d.Z.end+1&&(e+=1));c=No(c,e,g,b)}else e=vo(d.Z.end+1,b),e.end+1>c.g&&(e=new to(e.start,c.g-1)),c=[new Io(4,d.b,e)],c=new Oo(c);return c}function Po(a){var b="i="+a.b.info.id;a.Z&&(b=b+",r="+(a.Z.start+a.j)+"-"+(a.Z.start+a.j+a.g-1));return b=b+",t="+a.o.toFixed(1)+","+(a.o+a.D).toFixed(1)};function Oo(a,b){this.j=a[0].b.A;this.g=b||"";this.b=a;this.Z=this.b[0].Z&&0<this.b[0].g?Lo(this.b):null}function Qo(a){var b;if(xi(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.Z?yo(b,"range",a.Z.toString()):b}function Ro(a){if(a.Z)return a.Z.length;a=a.b[0];return Math.round(a.D*a.b.info.ra)};function So(a,b,c,d,e){Ho.call(this,a,b);this.index=e||new Bo;this.k=d||null;this.B=c;this.g=!0}w(So,Ho);f=So.prototype;f.Dl=function(){return!1};f.Fr=function(){var a=new Io(1,this,this.k);return[new Oo([a],this.B)]};function To(a,b){a.zg(b);return Uo(a,b.A?b.k+1:b.k,!1)}f.xi=function(a,b){var c=this.index.Jn(a);b&&(c=Math.min(this.index.kc(),c+1));return Uo(this,c,!0)};f.Np=function(a){this.b=new Uint8Array(Vo(a).buffer)};f.Ml=function(){return!1};f.mc=function(){return null!==this.b&&this.index.qn()};
f.zg=function(a){return this.index.kc()>a.k&&this.index.Ds()<=a.k+1};f.update=function(a,b,c){this.index.append(a);Eo(this.index,c);this.g=b};function Uo(a,b,c){var d=a.index.us(b),e=a.index.Ti(b),g=a.index.ym(b);c?g=c=0:c=0<a.info.ra?a.info.ra*g:1E3;a=new Io(3,a,null,b,e,g,0,c,b==a.index.kc()&&!a.g&&0<c);return new Oo([a],d)};function Wo(a,b,c){var d=a.getUint32(c);c+=4;var e=d&1,g=d&4,h=d&512,k=d&1024,l=d&2048;if(d&256&&(b||l))if(d=a.getUint32(c),c+=4,e&&(c+=4),g&&(c+=4),e=c,g=4,h&&(g+=4),k&&(g+=4),l&&(g+=4),b)for(b=0;b<d;b++)1023==a.getUint32(c)&&a.setUint32(c,1024),c+=g;else{var h=a.getUint32(c+g-4),k=[],l=[],p=0;for(b=0;b<d;b++){var r=a.getUint32(c),t=a.getUint32(c+g-4);l.push([p+t-h,b]);k.push(p);c+=g;p+=r}k.push(p);Bb(l,function(a,b){return a[0]-b[0]});t=[];for(b=0;b<l.length;b++)r=k[b+1]-k[b],c=l[b][1],a.setUint32(e+
g*c,r),t[c]=k[b];c=e;for(b=p=0;b<d;b++)r=a.getUint32(c),a.setUint32(c+g-4,h+t[b]-p),c+=g,p+=r}}function Xo(a,b,c){for(;Yo(a,b);){var d=Zo(a,b);if(d.type==c)return d;b+=d.size}return null}function Zo(a,b){var c=a.getUint32(b),d=a.getUint32(b+4),e=8;1==c&&(c=$o(a,b+8),e=16);1836019558==d||1953653094==d||(e=0);return new ap(a,b,c,d,e)}function $o(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)}
function Yo(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(1==c){if(16>a.byteLength-b)return!1;c=$o(a,b+8)}if(0>=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 ap(a,b,c,d,e){this.data=a;this.b=b;this.size=c;this.type=d;this.g=e};function bp(a,b,c,d){this.info=a;this.buffer=b;this.Z=c;this.b=d}function Vo(a){return a.Z?new DataView(a.buffer,a.Z.start,a.Z.length):new DataView(a.buffer)}function cp(a){if(a.info.g!=a.Z.length)return!1;if(1==a.info.b.info.g){if(8>a.info.g||4==a.info.type)return!0;var b=Vo(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 dp(a){var b;if(1==a.info.b.info.g){var c=NaN;b=NaN;var d=0;for(a=new DataView(a.buffer);Yo(a,d);){var e=Zo(a,d);1936286840==e.type?b=e.data.getUint32(e.b+16):1952867444==e.type&&(c=e,c=c.data.getUint8(c.b+8)?$o(c.data,c.b+12):c.data.getUint32(c.b+12));var g=e.type,d=1836019558==g||1953653094==g?d+e.g:d+e.size}b=c/b}else b=NaN;return b};function ep(){this.ea=0;this.b=new Float64Array(128);this.g=new Float64Array(128);this.k=1;this.j=!1}f=ep.prototype;f.yj=function(a){return this.b[a]};f.Ti=function(a){return this.g[a]/this.k};f.ym=function(a){return a+1<this.ea||this.j?(this.g[a+1]-this.g[a])/this.k:-1};f.Ds=function(){return 0};f.kc=function(){return this.ea-1};f.zf=function(){return this.j?this.g[this.ea]/this.k:NaN};f.en=function(){return 0};f.us=function(){return""};
f.Jn=function(a){a=zb(this.g.subarray(0,this.ea),a*this.k);return 0<=a?a:Math.max(0,-a-2)};f.qn=function(){return 0<=this.kc()};function fp(a){if(a.b.length<a.ea+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.ea+1;b++)a.b[b]=c[b],a.g[b]=d[b]}}function gp(a,b){this.g=a;this.b=0;this.j=b||0}function hp(a){for(var b=ip(a,!1);236==b;)jp(a),b=ip(a,!1);return b}
function kp(a){var b=ip(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 gp(c,a.j+a.b);a.b+=b;return c}function lp(a){for(var b=ip(a,!0),c=mp(a),d=1;d<b;d++)c=(c<<8)+mp(a);return c}function jp(a){var b=ip(a,!0);a.b+=b}function ip(a,b){var c=mp(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+mp(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+mp(a),e*=128;return b?c-e:c}function mp(a){return a.g.getUint8(a.b++)};function np(a,b,c,d,e){Ho.call(this,a,b);this.C=c;this.B=d;this.k=null;this.index=new ep;this.g=e}w(np,Ho);f=np.prototype;f.mc=function(){return!(!this.b||!this.index.qn())};f.Fr=function(a){var b=new Io(1,this,this.C),c=new Io(2,this,this.B),d=[],e=[b];Ko(b,c)?e.push(c):(d.push(new Oo([c])),a=0);isNaN(this.g)?a=0:a>this.g&&(a=this.g);b=e[e.length-1];c=b.Z.end-e[0].Z.start+1;a>c&&(a=vo(b.Z.end+1,a-c),e.push(new Io(4,this,a)));d.push(new Oo(e));return d};
f.Np=function(a){if(1==a.info.type){if(this.b)return;this.b=new Uint8Array(a.buffer,a.Z.start,a.Z.length)}else if(2==a.info.type){if(this.k||0<=this.index.kc())return;if(1==this.info.g){var b=this.index,c=Vo(a),d=a.info.Z.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.ea++;fp(g);g.b[g.ea]=g.b[g.ea-1]+k;g.g[g.ea]=g.g[g.ea-1]+h}}else this.k=Vo(a)}if(ko(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 gp(c);if(440786851==hp(c)&&(jp(c),408125543==hp(c))){d=c;e=d.b;a=ip(d,!0);d.b=e;for(var c=kp(c),d=c.j+c.b,l=hp(c);357149030!=l;)jp(c),l=hp(c);c=kp(c);h=1E6;k=1E9;for(e=0;!(c.b>=c.g.byteLength);)if(l=
hp(c),2807729==l)h=lp(c);else if(2807730==l)k=lp(c);else if(17545==l){var e=c,l=ip(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 jp(c);b.k=k/h;c=new gp(g);if(475249515==hp(c)){for(c=kp(c);!(c.b>=c.g.byteLength);)if(l=hp(c),187==l){g=kp(c);h=d;if(179!=hp(g))k=null;else if(k=lp(g),183!=hp(g))k=null;else{g=kp(g);for(l=h;!(g.b>=g.g.byteLength);)241==hp(g)?l=lp(g)+h:jp(g);k=[l,k]}g=b;h=k[0];k=k[1];fp(g);g.b[g.ea]=h;g.g[g.ea]=k;g.ea++}else jp(c);c=a+d;a=e;fp(b);b.j=
!0;b.g[b.ea]=a;b.b[b.ea]=c}}this.k=null}};function No(a,b,c,d){for(var e=[];b<=a.index.kc();b++){var g;g=a.index;var h=b;g=vo(g.yj(h),h+1<g.ea||g.j?g.b[h+1]-g.b[h]:-1);var h=a.index.Ti(b),k=a.index.ym(b),l=Math.max(0,c-g.start),p=Math.min(g.end+1,c+d)-(g.start+l);e.push(new Io(3,a,g,b,h,k,l,p,b==a.index.kc()&&l+p==g.length));if(g.start+l+p>=c+d)break}return new Oo(e)}
f.zq=function(a){for(var b=this.Gi(a.info),c=[],d=a.b,e=0;e<b.length;e++){var g=vo(b[e].Z.start+b[e].j-a.info.Z.start+a.Z.start,b[e].g);c.push(new bp(b[e],a.buffer,g,d));d=!1}return c};f.Gi=function(a){for(var b=0;b<this.index.kc()&&a.Z.start>=this.index.yj(b+1);)b++;return No(this,b,a.Z.start,a.Z.length).b};f.zg=function(a){return this.mc()?!0:isNaN(this.g)?!1:a.Z.end+1<this.g};f.xi=function(a,b){var c=this.index.Jn(a);b&&(c=Math.min(this.index.kc(),c+1));return No(this,c,this.index.yj(c),0)};
f.Ml=function(){var a;if(a=this.mc()&&!isNaN(this.g))a=this.index,a=(a.j?a.b[a.ea]:-1)!=this.g;return a};f.Dl=function(){return!0};function op(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 pp(a){return Nb(a.b,function(a){return!!a.info.o},a)}var qp=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;
function rp(a,b){var c=new op;z(a,function(a){var e=a.type,g=a.itag,h=null;no(e)&&(h=a.size.split("x"),h=new qo(parseInt(h[0],10),parseInt(h[1],10)));var k=null,l=null;if(mo(e)){var k=new ho,p=a.lang,r=a.acont;p&&r&&(l=a.name,g=g+":"+p+":"+r,l=new oo(l,0,r))}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 jo(g,e,k,h,l,t,p);h=uo(a.init);k=uo(a.index);l=sp(a.url,e,a.s);a=parseInt(a.clen,10);l&&(c.b[g]=new np(l,e,h,k,a))});return c}
function tp(a){if(!a)return 0;var b=qp.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function up(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 vp(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 sp(a,b,c){if(!cf(a))return"";var d={alr:"yes",ratebypass:"yes"};wo(a,"mime")||(d.mime=encodeURIComponent(b.mimeType.split(";")[0]));c&&(d.signature=go(c));return zo(a,d)}
function wp(a){var b=up(a,"id");"captions"==b&&(b=up(a,"lang"));var c=up(a,"mimeType"),d=up(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(up(a,"bandwidth"),10)/8,e=null;no(c)&&(e=new qo(parseInt(up(a,"width"),10),parseInt(up(a,"height"),10)));var g=null,h=null;if(mo(c)){g=new ho;var h=up(a,"lang")||"",k=vp(a,"Role");if(k){var k=up(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 oo(b,
0,l):null}else h=null}k=null;if(a=vp(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 jo(b,c,g,e,h,k,d)}function xp(a,b,c,d){a.k=!0;a={format:"RAW",method:"GET",vb:u(a.C,a,c,d||null)};Gi(b,a)}
op.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*tp(up(c,"minimumUpdatePeriod"))||Infinity,this.g=Infinity>this.o,this.j=!0,this.A=parseInt(up(c,"yt:earliestMediaSequence"),10),c=0;c<b.length;c++){var d=wp(b[c]);if(!this.b[d.id]){var e=sp(vp(b[c],"BaseURL").textContent,d),g=vp(b[c],
"Initialization"),h=up(g,"sourceURL"),g=uo(up(g,"range"));this.b[d.id]=new So(e,d,h,null===g?void 0:g)}var h=vp(b[c],"SegmentList"),k=vp(h,"SegmentTimeline"),e=k.getElementsByTagName("S"),h=h.getElementsByTagName("SegmentURL");g=this.g?(g=up(k,"start"))?tp(g):0:0;var l;if(this.g){l=parseInt(up(k,"startNumber"),10)||0;var p=parseInt(up(k,"yt:earliestMediaSequence"),10);l<p&&(l=p)}else l=0;for(var k=parseInt(up(k,"timescale"),10)||1,p=[],r=0;r<h.length;r++){var t;t=l+r;var y=g,D=k,M=h[r],D=parseFloat(e[r].getAttribute("d"))/
D,ea=M.getAttribute("media"),jb=null,M=M.getAttribute("mediaRange");null!=M&&(0<=parseInt(M.split("-")[1],10)?jb=uo(M):ea=ea+"?range="+M);t=new Ao(t,y,D,ea,jb);p.push(t);g+=t.duration}this.b[d.id].update(p,this.g,this.A)}else i:for(this.duration=tp(up(c,"mediaPresentationDuration")),c=0;c<b.length;c++){g=b[c];d=wp(g);h=vp(g,"BaseURL");e=sp(h.textContent,d);l=vp(g,"SegmentBase");g=uo(l.attributes.indexRange.value);l=uo(l.getElementsByTagName("Initialization")[0].attributes.range.value);h=parseInt(h.getAttribute("yt:contentLength"),
10);d=new np(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 yp(a){for(var b in a.b)if(a.b[b].index)return a.b[b].index.zf();return NaN}function zp(a){for(var b in a.b)if(a.b[b].index)return a.b[b].index.en();return 0}function Ap(a,b){Mb(a.b,function(a){a=a.A;a.b=zo(a.b,b)})};function Bp(a,b){this.id=a;this.name=b}Bp.prototype.toString=function(){return this.name};function Cp(a,b,c){this.g=a||0;this.b=b||0;this.j=c}Cp.prototype.equals=function(a){return this.g==a.g&&this.b==a.b&&this.j==a.j};function Dp(a,b,c){return new Cp(po[a]||0,po[b]||0,c)}var Ep=Dp("auto","large",!1),Fp=Dp("auto","auto",!1);function Gp(a){var b=po.auto;return a.g==b&&a.b==b}function Hp(a){return a.j&&!!a.g&&a.g==a.b}
function Ip(a,b){if(b.j&&Gp(b))return Fp;if(b.j||Gp(a))return b;if(a.j||Gp(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 Cp(c,d,!1)}function Jp(a){var b=a.b||a.g;return Vb(function(a){return po[a]==b})||"auto"}Cp.prototype.k=function(a){if(!a.video)return!1;a=po[a.video.b];return this.g<=a&&(!this.b||this.b>=a)};function Kp(a,b){this.g=a;this.b=b||null}function Lp(a,b){var c=b||Fp,c=hb(a.g,u(c.k,c)),c=A(c,function(a){return a.video.b});yb(c);return c}function Mp(a){if(!a.b)return[];var b=[];z(a.b,function(a){a.k&&b.push(new Bp(a.id,a.k.name))});yb(b);return b};function Np(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 Op(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=Xd(c,{sigh:a.A}));return c}function Pp(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:Op(a,c),hy:g,dj:a.b,row:e,rows:h,uq:a.B*a.b,tq:a.D*h}};function Qp(a){var b=[];a=a.split("|");for(var c=a[0],d,e,g,h,k,l,p,r,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),r=d[6],d=d[7],b.push(new Np(g,h,k,l,p,c,r,d,e)));this.b=b;this.g={};1<this.b.length&&-1!=this.b[0].o.indexOf("default")&&this.b.splice(0,1)}function Rp(a,b){var c=a.b[0].g-1;return Hb(Math.round(c*b),0,c)}
function Sp(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 Tp={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};var Up={kI:1,lI:2,mI:3};var Vp;var Wp=ec,Wp=Wp.toLowerCase();if(Ma(Wp,"android")){var Xp=Wp.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(Xp)Vp=Number(Xp[1]);else{var Yp={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},Zp=Wp.match("("+Sb(Yp).join("|")+")");Vp=Zp?Yp[Zp[0]]:0}}else Vp=void 0;var $p,aq;function bq(){var a=q("yt.player.utils.videoElement_");a||(a=document.createElement("video"),ba("yt.player.utils.videoElement_",a,void 0));return a}function cq(){if(2.2==Vp)return!0;var a=bq();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 dq(){var a=I("div",{"class":"html5-player-css-loaded"});document.body.appendChild(a);var b="none"==If(a,"display");dd(a);return b};function eq(){var a;if(void 0==$p&&($p=!1,window.crypto&&window.crypto.getRandomValues))try{a=new Uint8Array(1),window.crypto.getRandomValues(a),$p=!0}catch(b){}if($p){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 fq(){for(var a=eq(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function gq(){return A(eq(),function(a){return(a&15).toString(16)}).join("")};function hq(a,b,c){b={cpn:b};c&&(b.ibw="1369843");return{url:Xd(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};function iq(a,b){return void 0==b?a:"1"==b?!0:!1}function jq(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function kq(a,b){return void 0==b?a:Number(b)}function lq(a,b){return void 0==b?a:b.toString()}function mq(a,b){var c=lq(a,b);c&&(c=ff(c));return c}var nq=/^([0-9\.]+)\:([0-9\.]+)$/;function oq(a){if(a&&(a=a.match(nq))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function pq(a,b){var c=po.auto,d=po[b];return d>=po.medium?new Cp(d,c,!1):d>=c?new Cp(c,d,!1):a};var qq,rq=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},sq=u(rq.clearResourceTimings||rq.webkitClearResourceTimings||rq.mozClearResourceTimings||rq.msClearResourceTimings||rq.oClearResourceTimings||ca,rq),tq=rq.mark?function(a){rq.mark(a)}:ca;function uq(a,b,c){vq(c).tick[a]=b||v();b||tq(a)}function wq(a,b){var c=vq(b).tick;return a in c}
var yq="https:"===window.location.protocol&&ka(rq.getEntriesByType)?function(a){var b={};rq.getEntriesByType("resource").forEach(function(a){if(0===a.name.indexOf("https://s.ytimg.com/yts/")){var d=xq[a.initiatorType];if(d&&d.extension.test(a.name)){var e=d.Qj,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 zq(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];lf(b+"?"+c.substring(1))}function Aq(a){return vq(a).info}function vq(a){return q("ytcsi."+(a||"")+"data_")||Bq(a)}function Bq(a){var b={tick:{},span:{},info:{}};ba("ytcsi."+(a||"")+"data_",b,void 0);return b}var xq={link:{Qj:"c",extension:/\.css$/},script:{Qj:"j",extension:/\.js$/},css:{Qj:"s",extension:/\.(?:webp|png)$/},"":{Qj:"f",extension:/\.swf$/}};var Cq,Dq;var Eq=ec,Fq=Eq.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Fq||2>Fq.length)Cq=void 0;else{var Gq=Eq.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Cq=Gq&&6==Gq.length?Number(Gq[5].replace("_",".")):0}(Dq=0<=Cq)&&0<=ec.search("Safari")&&ec.search("Version");var Hq={gI:0,qH:1,WH:2};function Iq(a,b,c){c=c||{};Mi(c.Sa,c.Za,u(Jq,m,a,b,c),c.onError)}
function Jq(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.yb;c.La&&(d.list=c.La);c.Sa&&(d.authuser=c.Sa);c.Za&&(d.pageid=c.Za);a={screen:Vd({h:screen.height,w:screen.width,d:screen.colorDepth}),session_token:Re("XSRF_TOKEN")};c.lD&&(a.station_id=c.lD);Gi("/watch_actions_ajax",{format:"XML",method:"POST",Gh:d,gd:a,onSuccess:c.onSuccess,onError:c.onError,vb:c.vb})};var Kq=[.25,.5,1,1.25,1.5,2];function Lq(a){this.b=(a||"").split(",");var b={};z(this.b,function(a){b[a]=!0});this.Ba=!!b["925900"];this.D=!!b["913424"];this.B=!!b["932250"];this.wa=!!b["945000"];this.qb=!!b["945004"];this.N=!!b["945005"];this.aa=!!b["945025"];this.T=!!b["945035"];this.I=!!b["945042"];this.O=!!b["945045"];this.M=!!b["945056"];this.xa=!!b["945058"];this.la=!!b["945059"];this.pa=!!b["945060"];this.Ca=!!b["945062"];this.za=!!b["945063"];this.Uc=!!b["945064"];this.ca=!!b["927845"];this.P=!!b["936926"];this.C=!!b["913430"];
this.o=!(!b["926301"]&&!b["926305"]);this.j=!!b["926304"];this.g=!!(b["931959"]||b["931960"]||b["931961"]||b["931962"]||b["931963"]||b["931973"]||b["931974"]||b["931979"]||b["931981"]);this.V=!(!b["931974"]&&!b["931960"]);this.F=!!b["931972"];this.k=!!b["907252"];this.ka=!!b["927877"];this.U=!!b["943602"];this.L=!!b["907253"];this.da=!!b["939937"];this.A=!(!b["924220"]&&!b["924222"])};function Mq(a,b){this.b=a;this.g=b}Mq.prototype.clone=function(){return new Mq(this.b,this.g)};function Nq(a){this.b=[];if(a)t:{var b,c;if(a instanceof Nq){if(b=a.Ma(),c=a.Qa(),0>=a.Na()){a=this.b;for(var d=0;d<b.length;d++)a.push(new Mq(b[d],c[d]));break t}}else b=Sb(a),c=Rb(a);for(d=0;d<b.length;d++)Oq(this,b[d],c[d])}}function Oq(a,b,c){var d=a.b;d.push(new Mq(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=Nq.prototype;
f.remove=function(){var a=this.b,b=a.length,c=a[0];if(!(0>=b)){if(1==b)ob(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.eg=function(a){return ib(this.b,function(b){return b.g==a})};f.clone=function(){return new Nq(this)};
f.Na=function(){return this.b.length};f.isEmpty=function(){return E(this.b)};f.clear=function(){ob(this.b)};function Pq(){Nq.call(this)}w(Pq,Nq);function Qq(a,b){$i.call(this);this.b=a;this.j=new Pq;this.o={};this.k=b||""}w(Qq,$i);Qq.prototype.g=!1;function Rq(a,b,c){var d;for(c=Sp(a.b,c);0<=c;){d=a.b.b[c];if(d=d.k[Math.floor(b/(d.b*d.j))]?Pp(d,b):null)return d;c--}return Pp(a.b.b[0],b)}function Sq(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=Op(a.b.b[b.Cp],b.Dp);c.onload=u(a.A,a,b.Cp,b.Dp)}}
Qq.prototype.A=function(a,b){this.g=!1;var c=this.b.b[a];c.k[b]=!0;Sq(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 Tq(a,b,c){this.g=a;this.b=b;this.j=c}var Uq={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},Vq=["widevine","playready"];function Wq(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null}
function Xq(a,b,c){var d,e=Wq();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<Vq.length;g++){var h=Vq[g];if(c[h])for(var k=Uq[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 Tq(h,p,c[h])}}return null};function Yq(a,b){this.b=a;this.j=b;this.k=0;Object.defineProperty(this,"timestampOffset",{get:this.kA,set:this.lA});Object.defineProperty(this,"buffered",{get:this.jA})}f=Yq.prototype;f.append=function(a){this.b.webkitSourceAppend(this.j,a)};f.abort=function(){this.b.webkitSourceAbort(this.j)};f.jA=function(){return this.b.webkitSourceState==this.b.SOURCE_CLOSED?new Zq:this.b.webkitSourceBuffered(this.j)};f.kA=function(){return this.k};
f.lA=function(a){this.k=a;this.b.webkitSourceTimestampOffset(this.j,a)};function Zq(){this.length=0};function $q(a){this.activeSourceBuffers=this.sourceBuffers=[];this.b=a;this.g=NaN;this.j=0;Object.defineProperty(this,"duration",{get:this.Jz,set:this.Mz});Object.defineProperty(this,"readyState",{get:this.Kz});this.b.addEventListener("webkitsourceclose",u(this.Lz,this),!0)}f=$q.prototype;f.addEventListener=function(a,b,c){this.b.addEventListener(a,b,c)};f.iB=function(){return this.b.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.j++).toString();this.b.webkitSourceAddId(b,a);a=new Yq(this.b,b);this.sourceBuffers.push(a);return a};f.Kz=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.Lz=function(){ob(this.sourceBuffers)};
f.Jz=function(){return this.g};f.Mz=function(a){this.g=a;this.b.webkitSourceSetDuration&&this.b.webkitSourceSetDuration(a)};function ar(a){this.k=[];this.F=a||null}function br(a,b,c,d){for(var e=0;e<c.length;e++)a.listen(b,c[e],d)}ar.prototype.listen=function(a,b,c){c=u(c,this.F||this);a.addEventListener(b,c,!1);this.k.push(a,b,c)};ar.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)}};ar.prototype.fa=function(){return null===this.k};ar.prototype.dispose=function(){this.removeAll();this.k=null};function cr(a,b,c,d){ar.call(this);this.g=this.b=null;this.A=b;this.j=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new $q(a);this.o="";this.B=null;br(this,this.j,["sourceopen","webkitsourceopen"],ra(this.D,d,c));br(this,this.j,["sourceclose","webkitsourceclose"],this.C)}w(cr,ar);function dr(a,b){a.B=b}function er(a){if(!a.o){var b;b=a.j;b=b.iB?b.b.webkitMediaSourceURL:window.URL.createObjectURL(b);a.o=b}return a.o}
cr.prototype.xf=function(a){fr(this)?this.j.duration=a:this.A=a};function fr(a){return"open"==a.j.readyState}function gr(a){return"closed"==a.j.readyState}function hr(a){return a.b.updating||a.g.updating}function ir(a){return a.b?!!a.b.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}cr.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))};
cr.prototype.C=function(){this.dispose()};cr.prototype.dispose=function(){var a=this.o;if(a)try{window.URL.revokeObjectURL(a)}catch(b){}this.o="";cr.G.dispose.call(this)};function jr(a){if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if('video/webm; codecs="vp9"'==a)return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!bq().canPlayType(a)};var kr=jh||kh;function lr(){return mr("(ps3; leanback shell)")}function mr(a){var b=ec;return b?0<=b.toLowerCase().indexOf(a.toLowerCase()):!1};function nr(a,b,c,d){this.b=c;this.j=a;this.o=d||"";this.k=b;this.g={}}function or(a){if(a.b)a=a.j;else if(a.k){var b=ve(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=ge(new J(Xd(a.j,a.g)),b).toString()}else a=Xd(a.j,a.g);return a};function pr(a,b){this.b=new nr(a,b.id in qr&&lr(),!1,b.id);this.Xf=b}var rr="9h8(H*".split(""),sr="h98(H*".split(""),tr=["M","a","v","A","V"];pr.prototype.getInfo=function(){return this.Xf};pr.prototype.Gn=function(){return this.Xf.video.b};var ur={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},vr={"application/x-mpegURL":"maybe"},wr={"application/x-mpegURL":"maybe"};
function xr(a,b){if(!cq())return[];var c=yr(a,b);a=!c.length&&b?yr(a,!1):c;for(var d={},c=bq(),e=0;e<a.length;e++){var g=a[e];if(zr(c,g.getInfo().mimeType)&&!(g.Xf.id in Ar||lr()&&"5"==g.Xf.id)){var h=g.Gn();if(!d[h]||ko(d[h].getInfo()))d[h]=g}}var k=[];z(ro,function(a){(g=d[a])&&k.push(g)});return k}function zr(a,b){var c;if(!(c=a.canPlayType(b))){var d;kh?d=wr[b]:2.2==Vp?d=ur[b]:mr("android")&&mr("chrome")&&(d=vr[b]);c=d||""}return c}
function Br(){return mr("android")&&mr("chrome")&&!Ac(29)?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var qr={5:!0,34:!0,35:!0},Ar={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function Cr(a){var b=[];z(a,function(a){a.url&&b.push(Dr(a.url,a.type,"medium","0"))});return b}
function Dr(a,b,c,d,e){var g=new ho,h=so[c];h||(c="small",h=so.small);c=new qo(h[0],h[1],e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new pr(a,new jo(d,b,g,c))}function yr(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d],g;if(g=qc&&0!=e.Xf.video.g)g=1==e.getInfo().g;g||0!=e.Xf.video.g==b&&c.push(e)}return c}
function Er(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||go(e.s);e.url=zi(e.url,{signature:g})}e.url&&c.push(Dr(e.url,e.type,e.quality,e.itag,e.stereo3d))}return xr(c,!!b)}function Fr(a){a=Cr(a);return xr(a,!1)}function Gr(a,b){if(!b.b)return a[0];for(var c=0;c<a.length;c++){var d=a[c].getInfo();if(po[d.video.b]<=b.b)return a[c]}return a[a.length-1]}
function Hr(a){function b(a){return!!c[a]}var c={},d,e;for(e in a.b){var g=a.b[e];if(jr(g.info.mimeType)){if(g.info.o){d||(d=bq());if(!Xq(d,g.info.mimeType,g.info.o))continue;if(261==g.info.id&&(lr()||!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=rr;if(mr("cros armv7")||mr("windows nt 5.1"))a=sr;d=B(a,b);a=B(tr,b);if(!d||!a)return null;d=c[d];a=c[a];Bb(d,function(a,b){return b.video.width-a.video.width||b.ra-a.ra});
Bb(a,function(a,b){return b.ra-a.ra});return new Kp(d,a)};function Ir(a){$i.call(this);this.Wa=new G(0,0);this.ka=!1;this.D=[];this.k={};this.Ia={};this.o={};Jr(this,a)}w(Ir,$i);Ir.A=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Ir.b=1;Ir.j=-21;Ir.o=18E3;Ir.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(" ");
Ir.g=["www.youtube.com","manifest.googlevideo.com"];f=Ir.prototype;f.ga=!1;f.Jm="";f.ir=null;f.fq=!0;f.tb=!1;f.Pm="";f.Om="";f.Uk=!1;f.dq=Ir.b;f.Oh=null;f.Eo=null;f.th="";f.jg=0;f.Rl=!1;f.Sn=3;f.hr=!1;f.Mf="";f.Da="";f.qe=0;f.qk=!1;f.Th=!1;f.lk=!1;f.yf=0;f.Le=!1;f.ip=!1;f.Mh=0;f.lg=!1;f.Tn=!0;f.ck=!1;f.vm=!1;f.Yl=!1;f.ib=!1;f.wm=!1;f.Ul=!1;f.re=!1;f.Wo=!1;f.xm=!1;f.av=0;f.Oa=0;f.Sj=0;f.zs=!1;f.Bm="";f.$j=!1;f.$l=Fp;f.Do=0;f.rk=!1;f.Ta=0;f.Rj=null;f.am=2;f.tf=Fp;f.Nr=!1;f.Lf=!1;f.te=null;f.title="";
f.ue="";f.An=null;f.Uj="vvt";f.As=!1;f.Un=!1;f.clipStart=0;f.clipEnd=Infinity;
function Kr(a,b){var c=b||{};c.iv_invideo_url&&(a.Pm=ff(c.iv_invideo_url));c.iv_cta_url&&(a.Om=ff(c.iv_cta_url));c.cta_conversion_urls&&(a.nb=c.cta_conversion_urls);a.th=lq(a.th,c.author);a.Rl=iq(a.Rl,c.cc_asr);var d=c.ttsurl||a.Mf;d&&af(d)?a.Mf=d:a.Mf=mq(a.Mf,c.ttsurl);a.Da=lq(a.Da,c.cpn);a.I=lq(a.I,c.subscribed);a.am=jq(a.am,c.sentiment,Hq);a.title=lq(a.title,c.title);a.za=lq(a.za,c.ypc_preview);a.zs=iq(a.zs,c.paygated);a.As=iq(a.As,c.requires_purchase);c.keywords&&(a.Ia=Lr(c.keywords));c.rvs&&
(a.da=Mr(c.rvs));c.poster&&(a.Bm=c.poster);z(Ir.k,function(a){a in c&&(this.k[a]=c[a])},a)}
function Jr(a,b){var c=b||{};a.tb="1"!=c.hlsdvr||nh||kh&&5>Cq?!1:!0;a.Uk="1"==c.infringe||"1"==c.muted;a.xb=c.authkey;a.Sa=c.authuser;a.Da||(a.Da=c.cpn||fq());a.ux=v();a.Tj=c.t;a.qk=iq(a.qk,c.cenchd);a.Th=iq(a.Th,c.enable_cardio);a.lk=iq(a.lk,c.enable_cardio_before_playback);a.yf=kq(a.yf,c.end||c.endSeconds);a.Tn="1"!=c.no_get_video_log;a.ck="1"==c.tmi;a.vm=iq(a.vm,c.noiba);a.Yl="1"==c.livemonitor;a.ib="1"==c.live_playback;a.wm=iq(a.wm,c.mdx);a.Ul=iq(a.Ul,c.on3g);a.xm=iq(a.xm,c.utpsa);a.bc=c.iurlmaxres_webp||
c.iurlmaxres;a.B=lq(a.B,c.oauth_token);a.C=lq(a.C,c.vvt);a.Xj=c.osig;a.qd=c.ptchn;a.Md=c.oid;a.L=c.ptk;a.hf=c.pltype;a.yb=c.plid;a.A=c.eventid;a.cb=c.osid;a.La=lq(a.La,c.list);a.of=c.pyv_view_beacon_url;a.ak=c.pyv_quartile25_beacon_url;a.Zj=c.pyv_quartile50_beacon_url;a.Vj=c.pyv_quartile75_beacon_url;a.Yj=c.pyv_quartile100_beacon_url;a.Aw=c.purchase_id;a.fb=c.sdetail;a.az=c.sourceid;!a.Ha&&c.session_data&&(a.Ha=ti(c.session_data,"&").feature);a.ac=1==kq(a.ac?1:0,c.is_fling);a.hb=lq(a.hb,c.ctrl);a.gb=
lq(a.gb,c.ytr);a.qf=c.iurlsd_webp||c.iurlsd;a.Un="1"==c.skip_kansas_logging;a.$l=pq(a.$l,c.vq);a.tf=pq(a.tf,c.suggestedQuality);a.oB=c.approx_threed_layout||0;a.Nr="1"==c.threed_converted;a.wa=c.iurl_webp||c.iurl;a.Ta=kq(a.Ta,c.start||c.startSeconds);a.Nh=iq(a.Nh,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId;a.pf=lq(a.pf,c.vss_credentials_token);a.Uj=lq(a.Uj,c.vss_credentials_token_type);Nr(a,c.watermark);a.nf=lq(a.nf,c.ypc_gid);a.lf=lq(a.lf,c.ypc_license_session_token);if(c.ad3_module||c.ad_module)"1"==
c.allow_html5_ads?(a.ga=!0,"1"==c.ad_preroll&&a.D.push("ad")):"1"!=c.supported_without_ads&&(a.ip=!0);c.adaptive_fmts&&(a.Jm=c.adaptive_fmts);c.license_info&&(a.ir=Or(c.license_info));c.allow_embed&&(a.fq="1"==c.allow_embed);c.autoplay&&(a.lg="1"==c.autoplay);c.iv_load_policy&&(a.Ba=Pr(c.iv_load_policy,a.Ba));c.cc_load_policy&&(a.Sn=Pr(c.cc_load_policy,2));"0"==c.dash&&(a.hr=!0);if(c.dashmpd){a.O=Xd(c.dashmpd,{cpn:a.Da});var d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.O);e&&(e=go(e[1]),a.O=a.O.replace(d,"/signature/"+
e))}c.delay&&(a.qe=$a(c.delay));c.idpj&&(a.Mh=$a(c.idpj));c.url_encoded_fmt_stream_map&&(a.ue=c.url_encoded_fmt_stream_map);c.hlsvp&&(a.U=c.hlsvp);c.length_seconds&&(a.Oa=$a(c.length_seconds));c.ldpj&&(a.Sj=$a(c.ldpj));c.loudness&&(a.kf=c.loudness,a.dq=Qr(a));c.partnerid&&(a.T=$a(c.partnerid));c.probe_url&&(a.mf=gf(Xd(c.probe_url,{cpn:a.Da})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(Ie)&&(a.V=c.pyv_billable_url);c.pyv_conv_url&&-1!=c.pyv_conv_url.search(Ie)&&(a.pa=c.pyv_conv_url);c.url_encoded_third_party_media&&
(a.te=Mr(c.url_encoded_third_party_media));c.threed_module&&!c.threed_converted&&(a.xa=c.threed_module,a.yx=6);if("1"==c.track_embed||c.tk)a.$j=!0;c.two_stage_token&&(a.Oh=c.two_stage_token);c.watch_ajax_token&&(a.Eo=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&&(a.clipStart=c.start);void 0!=c.end&&(a.clipEnd=c.end);void 0!=
c.atc&&(a.ca=c.atc);a.jf=lq(a.jf,c.ucid);z("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.o[a]=c[a])},a);a.o.focEnabled=iq(a.o.focEnabled,c.focEnabled);a.o.rmktEnabled=iq(a.o.rmktEnabled,c.rmktEnabled);a.k=c;Kr(a,c);Rr(a)}function Rr(a){(a.ib||a.Yl)&&"1"==a.k.as3fb||!Br()||a.hr||(a.Jm?a.j=rp(Sr(a,a.Jm),a.ir):a.O&&(a.Le=!0,a.ka=!0))}f.Gz=function(a){if(!this.fa()){if(this.j=a)this.Oa=this.j.duration||this.Oa;this.Xl()}};
f.Xl=function(){this.fa()||(this.Le=!1,this.H("dataloaded",this.k))};function Tr(a){if(!a.fa()){a.g=null;a.P=null;a.F=null;if(a.aa){var b=Sr(a,a.aa);a.F=Er(b,!1);a.g=new Kp(A(a.F,function(a){return a.getInfo()}))}!a.g&&a.j&&(a.g=Hr(a.j));if(!a.g){if(a.te&&a.Wo)a.F=Fr(a.te);else{b=Sr(a,a.ue);if(a.U){var c=hq(a.U,a.Da,!a.Ul);b.push(c)}a.F=Er(b,!!a.xa||a.Lf)}a.F.length&&(a.g=new Kp(A(a.F,function(a){return a.getInfo()})))}a.Do=Math.min(.8*a.Oa,180)}}function Ur(a){return a.b&&a.b.o||null}
function Vr(a,b){return s(a.Ia[b])?a.Ia[b]:null}function Wr(a){!a.An&&a.k.storyboard_spec&&(a.An=new Qp(a.k.storyboard_spec));return a.An}function Xr(a){var b=Wr(a);!a.Rj&&b&&(a.Rj=new Qq(b),S(a,a.Rj));return a.Rj}function Yr(a){return!a.fa()&&!(!a.videoId&&!a.te)}function Zr(a){return Yr(a)&&!a.Le&&!a.ka&&(!!(a.j||a.ue||a.te||a.aa||a.U)||C(a.D,"fresca")||C(a.D,"ypc"))}function $r(a,b){var c={format:"RAW",method:"GET",context:a,onSuccess:a.QD,onError:a.PD};a.Le=!0;Gi(b,c);uq("vir")}
function Qr(a){return a.kf?(a=Math.min(Ir.j-a.kf,0),Math.pow(10,a/20)):Ir.b}f.QD=function(a){this.fa()||(this.Le=!1,a=vi(a.responseText),"fail"==a.status?this.H("onStatusFail",a):(uq("virc"),Jr(this,a),this.Xl()))};f.PD=function(){this.fa()||(this.Le=!1,this.H("onStatusFail",{errorcode:"manifest.net",reason:""}))};function Pr(a,b){var c=parseInt(a,10);return Tb(Up,c)?c:b}function Mr(a){a=a.split(",");return a=a.map(function(a){return vi(a)})}
function Sr(a,b){var c=Mr(b);z(c,function(a){a.url&&(a.url=Xd(a.url,{cpn:this.Da}))},a);return c}function Lr(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 Nr(a,b){if(b){var c=b.split(",");2<=c.length&&(a.la=c[1],-1!=a.la.search(Ir.A)&&(a.la=""))}}function Or(a){a=Mr(a);var b={};z(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}function as(a,b){return!!a.k[b]}function bs(a){return a.ib&&!a.tb}
function cs(a){return a.ib&&a.tb};function ds(a,b){this.type=a||"";this.id=b||""}function es(a){return new ds(a.substr(0,2),a.substr(2))}ds.prototype.toString=function(){return this.type+this.id};function fs(a){$i.call(this);this.views=0;this.b=[];this.g=[];this.Ga=Math.max(0,a.index||0);this.Qf=!!a.loop;this.Am=a.startSeconds||0;this.Fq="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":gs(this,a.list);break;case "user_favorites":hs(this,a.list);break;case "search":is(this,a.list);break;default:a.playlist_length&&
(this.tc=a.playlist_length),this.j=es(a.list),0==a.fetch&&a.videoList?js(this,a.videoList):ks(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.tc=this.b.length;b=A(this.b,function(a){return a.video_id});ls(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.be=!0}else a.videoList&&js(this,a.videoList);ms(this,!!a.shuffle)}w(fs,$i);f=fs.prototype;f.Qf=!1;f.Am=0;f.rr=!1;
f.Ga=0;f.title="";f.tc=0;f.Fq=!1;f.be=!1;f.Bh=!1;f.Me=null;function ns(a){return a.Qf||a.Ga+1<a.tc}function os(a){if(++a.Ga>=a.tc)if(a.Qf)a.Ga=0;else return null;ps(a,a.Ga);return qs(a,a.Ga)}function rs(a){if(0>--a.Ga)if(a.Qf)a.Ga=a.tc-1;else return null;ps(a,a.Ga);return qs(a,a.Ga)}function qs(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 Ir(c),d.Ta=a.Am||d.clipStart||0,a.j&&(d.La=a.j.toString()));return d}
function ms(a,b){a.rr=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.rr){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 ps(a,b){a.Ga=Hb(b,0,a.tc-1);a.Am=0}function gs(a,b){a.Bh||(a.j=new ds("UU","PLAYER_"+b),ls(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}
function hs(a,b){a.Bh||(a.j=new ds("FL","PLAYER_"+b),ls(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function is(a,b){if(!a.Bh){a.j=new ds("SR",b);var c={search_query:b};a.Fq&&(c.mob="1");ls(a,"/search_ajax?style=json&embeddable=1",c)}}function ks(a){if(!a.Bh){var b={list:a.j},c=qs(a);c&&c.videoId&&(b.v=c.videoId);ls(a,"/list_ajax?style=json&action_get_list=1",b)}}function ls(a,b,c){Gi(Xd(b,c),{format:"JSON",onSuccess:function(a,b){ss(this,b)},context:a})}
function ss(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;var c=qs(a);a.b=[];z(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.b.push(a))},a);a.tc=a.b.length;ts(a,c);ms(a,!1);a.Bh=!1;a.be=!0;a.Me&&a.Me()}}function js(a,b){0<a.Ga&&(a.b=[]);z(b,function(a){this.b.push(a)},a);a.tc=a.b.length;a.be=!0}function ts(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.Me=null;Lh(this.b);fs.G.J.call(this)};function us(){var a={volume:100,muted:!1},b=pi("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Hb(b.volume,0,100);a.muted=void 0==b.muted?!1:b.muted;return a};function vs(a,b,c){s(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 ws(a)}function ws(a,b,c){if(la(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 xs(a,b){this.app=a;this.g=null;this.k={};this.o={};this.B={};this.A={};this.j=null;this.b=b;V(this,"cueVideoById",this.uv);V(this,"loadVideoById",this.Tk);V(this,"cueVideoByUrl",this.vv);V(this,"loadVideoByUrl",this.Ov);V(this,"playVideo",this.Jg);V(this,"pauseVideo",this.pauseVideo);V(this,"stopVideo",this.yk);V(this,"clearVideo",this.sv);V(this,"getVideoBytesLoaded",this.Fv);V(this,"getVideoBytesTotal",this.Gv);V(this,"getVideoLoadedFraction",this.xl);V(this,"getVideoStartBytes",this.Iv);
V(this,"cuePlaylist",this.tv);V(this,"loadPlaylist",this.Nv);V(this,"nextVideo",this.Pv);V(this,"previousVideo",this.Qv);V(this,"playVideoAt",this.jp);V(this,"setShuffle",this.Xv);V(this,"setLoop",this.Uv);V(this,"getPlaylist",this.jc);V(this,"getPlaylistIndex",this.ep);V(this,"getPlaylistId",this.fp);V(this,"loadModule",this.Mv);V(this,"unloadModule",this.hp);V(this,"setOption",this.gp);V(this,"getOption",this.ki);V(this,"getOptions",this.Bv);V(this,"mute",this.Mo);V(this,"unMute",this.No);V(this,
"isMuted",this.Lo);V(this,"setVolume",this.setVolume);V(this,"getVolume",this.Ko);V(this,"seekTo",this.Kg);V(this,"getPlayerState",this.getPlayerState);V(this,"getPlaybackRate",this.Dv);V(this,"setPlaybackRate",this.Wv);V(this,"getAvailablePlaybackRates",this.xv);V(this,"getPlaybackQuality",this.Cv);V(this,"setPlaybackQuality",this.dp);V(this,"getAvailableQualityLevels",this.yv);V(this,"getCurrentTime",this.getCurrentTime);V(this,"getDuration",this.ug);V(this,"addEventListener",this.addEventListener);
V(this,"removeEventListener",this.removeEventListener);V(this,"getVideoUrl",this.Jv);V(this,"getDebugText",this.zv);V(this,"getVideoEmbedCode",this.Hv);V(this,"getVideoData",this.getVideoData);V(this,"addCueRange",this.kp);V(this,"removeCueRange",this.Rv);V(this,"setSize",this.Yv);V(this,"getApiInterface",this.wv);V(this,"destroy",this.destroy);V(this,"showVideoInfo",this.Zv);V(this,"hideVideoInfo",this.Kv);ys(this,"getInternalApiInterface",this.Av);ys(this,"getAdState",this.getAdState);ys(this,"isNotServable",
this.Lv);ys(this,"getUpdatedConfigurationData",this.Ev);ys(this,"updateRemoteReceivers",this.$v);ys(this,"sendAbandonmentPing",this.Sv);ys(this,"setAutonav",this.Tv);ys(this,"setMinimized",this.Vv);ys(this,"channelSubscribed",ca);ys(this,"channelUnsubscribed",ca)}w(xs,Hh);function V(a,b,c){a.k[b]=u(c,a)}function ys(a,b,c){a.o[b]=u(c,a)}f=xs.prototype;f.wv=function(){return Sb(this.k)};f.Av=function(){return Sb(this.o)};f.K=function(){return this.g};
f.addEventListener=function(a,b){var c=b;s(b)&&(c=function(){q(b).apply(window,arguments)},this.B[b]=c);this.app.subscribe(a,c)};f.Nu=function(a,b){var c=s(b)?a+b:a+ma(b);if(!this.A[c]){s(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(s(b)&&b in this.B){var c=this.B[b],d=this.B;b in d&&delete d[b]}this.app.ja(a,c)};
f.Ou=function(a,b){var c=s(b)?a+b:a+ma(b);this.A[c]&&this.removeEventListener(a,this.A[c])};f.getPlayerState=function(){return this.app.pa};f.Kg=function(a,b){zs(this.app,!0,this.b);As(this.app,a,b,void 0,this.b)};f.getCurrentTime=function(){return this.app.getCurrentTime(this.b)};f.ug=function(){return Bs(this.app)};f.Ko=function(){return this.app.D.volume};f.setVolume=function(a){this.app.setVolume(a)};f.Lo=function(){return this.app.D.muted};f.Mo=function(){Cs(this.app)};f.No=function(){Ds(this.app)};
f.Jg=function(){zs(this.app,!0,this.b);Es(this.app,this.b)};f.pauseVideo=function(){Fs(this.app,this.b)};f.yk=function(){var a=this.app;Gs(a,"play_pause")||Hs(a,this.b)};f.sv=function(){};f.Dv=function(){return this.app.la};f.Wv=function(a){Is(this.app,a)};f.xv=function(){return this.app.b.vg?Kq:[1]};f.Cv=function(){return Js(this.app,this.b)};f.dp=function(a){Ks(this.app,a,this.b)};f.yv=function(){var a=Ls(this.app,this.b);return a?Ms(a):[]};f.Fv=function(){return this.xl()};f.Gv=function(){return 1};
f.xl=function(){return Ns(this.app.aa)};f.Iv=function(){return 0};f.Yv=function(){this.app.g.oh()};f.Tv=function(){};f.Vv=function(a){this.app.b.Xq=a};f.Mv=function(a){this.app.C.isAvailable(a)&&(a=Os(this.app.C,a))&&!a.loaded&&a.load()};f.hp=function(a){this.app.C.isAvailable(a)&&(a=Os(this.app.C,a))&&a.loaded&&a.unload()};f.Tk=function(a,b,c){a=Ps(this.app,ws(a,b,c),this.b);zs(this.app,a,this.b)};f.uv=function(a,b,c){Qs(this.app,ws(a,b,c),this.b)};
f.Ov=function(a,b,c){a=vs(a,b,c);b=Ps(this.app,a,this.b);zs(this.app,b,this.b);b=this.app;(a=se(new J(a.mediaContentUrl)))&&Rs(b.b,a)};f.vv=function(a,b,c){b=vs(a,b,c);Qs(this.app,b,this.b);a=this.app;(b=se(new J(b.mediaContentUrl)))&&Rs(a.b,b)};f.Jv=function(){return Ss(this.app)};f.zv=function(){return Ts(this.app)};f.Hv=function(){return""};f.kp=function(a,b,c){return Us(this.app,a,b,c)};
f.Rv=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.$a.clear();b.j.A.Ag(e);b.H("cuerangesremoved",[e]);a=!0;break t}}a=!1}return a};f.Nv=function(a,b,c,d){var e=this.app;e.P=!1;Vs(e,a,b,c,d)};f.tv=function(a,b,c,d){var e=this.app;e.P=!0;Vs(e,a,b,c,d)};f.Pv=function(){Ws(this.app)};f.Qv=function(){Xs(this.app)};f.jp=function(a){var b=this.app;b.o&&(b.o.be?Ys(b,qs(b.o,a)):b.P=!1,ps(b.o,a))};f.Xv=function(a){var b=this.app;b.o&&ms(b.o,a)};
f.Uv=function(a){var b=this.app;b.o&&(b.o.Qf=a)};f.jc=function(){var a=this.app.o;if(!a)return null;for(var b=[],c=0;c<a.tc;c++)b[c]=qs(a,c).videoId;return b};f.ep=function(){var a;a=this.app;a=a.o?a.o.Ga:null;return null==a?-1:a};f.fp=function(){return Zs(this.app)};f.gp=function(a,b,c){return $s(this.app,a,b,c)};f.ki=function(a,b,c){return $s(this.app,a,b,c)};f.Bv=function(a){var b;b=this.app;a?b=b.B&&a==b.B.ua?b.B.Bj():at(b.C,a):(a=at(b.C),b.B&&a.push(b.B.ua),b=a);return b};
f.getVideoData=function(){var a=Ls(this.app,this.b),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.th,title:a.title},b=this.fp();b&&(a.list=b);return a};f.Zv=function(){bt(this.app.g)};f.Kv=function(){this.app.g.om()};f.getAdState=function(){return this.app.getAdState()};f.Lv=function(){var a=this.app.getPlayerState();return!(!a||!W(a,128)||5!=ct[a.b.errorCode])};f.Ev=function(){var a=this.app,b=a.O.clone(),c=b.args,a=dt(a),d=$b(a.k);!a.ib&&0<a.Ta&&(d.start=a.Ta);sa(c,d);return b};
f.$v=function(a,b){var c=this.app;c.F&&et(c.F,a,b);ft(c.b)&&6!=c.I&&(c.b.Cg=!E(a),c.b.Cg?(1!=c.I&&3!=c.I||!b||gt(c.B),a.length&&1!=c.I&&ht(c)):gt(c.F))};f.destroy=function(){this.app.dispose()};f.Sv=function(){var a=Ls(this.app);if(a){var b=a.getPlayerState();W(b,2)||W(b,128)||(it(a),jt(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;xs.G.J.call(this)};function kt(a,b){xs.call(this,a,b);V(this,"cueVideoByPlayerVars",this.rD);V(this,"loadVideoByPlayerVars",this.$p);V(this,"preloadVideoByPlayerVars",this.wD);V(this,"seekBy",this.Ns);V(this,"enableLicenseIntercept",this.sD);V(this,"updatePlaylist",this.BD);V(this,"resumeLicenseSession",this.xD);V(this,"updateLastActiveTime",this.AD);V(this,"updateVideoData",this.CD);V(this,"getStoryboardFormat",this.uD);V(this,"getProgressState",this.Mg);V(this,"hideUserInterface",this.vD);V(this,"showUserInterface",
this.zD);V(this,"getHousebrandProperties",this.tD);V(this,"setPlaybackQualityRange",this.yD)}w(kt,xs);f=kt.prototype;f.kp=function(a,b,c,d,e){return Us(this.app,a,b,c,d,e)};f.rD=function(a){Qs(this.app,a,this.b)};f.getPlayerState=function(a){var b=this.app;return 2==a?b.Ba:b.pa};f.$p=function(a){Ps(this.app,a,this.b)};f.wD=function(){};f.Jg=function(){Es(this.app,this.b)};f.Kg=function(a,b){As(this.app,a,b,void 0,this.b)};
f.Ns=function(a,b,c){var d=this.app,e=this.b;As(d,d.getCurrentTime()+a,b,c,e)};f.sD=function(){var a=this.app;a.Ha||(a.Ha=!0,a.xa={})};f.BD=function(){var a=this.app;lt(a);a.Ua("onPlaylistUpdate")};f.xD=function(a,b){var c=this.app,d=c.xa[a];d&&(mt(d,b),d.start(),delete c.xa[a])};f.AD=function(){this.app.b.Zf=v()};f.CD=function(a){var b=Ls(this.app,this.b||1);b&&(b=b.b,Kr(b,a),b.H("dataupdated"))};f.uD=function(){return this.app.getVideoData().k.storyboard_spec};f.vD=function(){this.app.g.Ej(!1)};
f.zD=function(){this.app.g.Ej(!0)};f.tD=function(){var a=this.app.R();return{yc:a.yc,zb:a.zb(),dc:a.dc}};f.getVideoData=function(){var a=kt.G.getVideoData.call(this),b=Ls(this.app,this.b),b=b?b.getVideoData():{};a.cpn=b.Da;a.isLive=b.ib;return a};f.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):kt.G.getCurrentTime.call(this)};f.ug=function(a){return a?Bs(this.app,a):kt.G.ug.call(this)};
f.Mg=function(){var a=this.app.getVideoData(),b=!a.ib||a.tb,c=a.clipEnd,d=a.clipStart,e=this.getCurrentTime(),g=this.ug(),h;h=(h=Ls(this.app,void 0))?nt(h.g):0;return{allowSeeking:b,clipEnd:c,clipStart:d,current:e,displayedStart:-1,duration:g,loaded:h,seekableEnd:a.j&&!isNaN(yp(a.j))?yp(a.j):a.Oa,seekableStart:a.j&&!isNaN(zp(a.j))?zp(a.j):0}};f.xl=function(a){var b=this.app;return(b.A&&2==b.A.getPlayerType())==(2==a)?Ns(b.aa):0};f.yD=function(a,b){Ks(this.app,a,this.b,b)};function ot(a,b){kt.call(this,a,b)}w(ot,kt);f=ot.prototype;f.getPlayerType=function(){return this.b};f.Tk=function(a,b,c){Ps(this.app,ws(a,b,c),this.b)};f.Jg=function(){Es(this.app,this.b)};f.Kg=function(a,b){As(this.app,a,b,void 0,this.b)};function pt(a,b){a.app.g.g.appendChild(b)}function qt(a){return a.app.g.element}f.R=function(){return this.app.R()};f.jc=function(){return this.app.o};f.getVideoData=function(){var a=Ls(this.app,this.b);return a&&a.getVideoData()};f.isFullscreen=function(){return this.app.R().mb};function rt(a,b){this.fg=a;this.ff=b+"::"}w(rt,$h);f=rt.prototype;f.fg=null;f.ff="";f.set=function(a,b){this.fg.set(this.ff+a,b)};f.get=function(a){return this.fg.get(this.ff+a)};f.remove=function(a){this.fg.remove(this.ff+a)};f.Wb=function(a){var b=this.fg.Wb(!0),c=this,d=new yd;d.next=function(){for(var d=b.next();d.substr(0,c.ff.length)!=c.ff;)d=b.next();return a?d.substr(c.ff.length):c.fg.get(d)};return d};function st(a,b){this.start=a;this.end=b;this.b=ma(this)}function tt(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}st.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)};st.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function ut(){this.b=[]}function vt(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 wt(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 xt(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(Ab);return c[0]};function zt(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 At(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 Bt(a,b){var c=At(a,b);return 0<=c?a.end(c):NaN}function Ct(a){return a&&a.length?a.end(a.length-1):NaN}function Dt(a,b){var c=Bt(a,b);return 0<=c?c-b:0};function Et(){}var Ft=Dq&&4>Cq?.1:0,Gt=new Et;f=Et.prototype;f.xd=null;f.Zl=!1;function Ht(a,b){var c="";b&&(a.xd=b,c=or(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.b||a.load())}function It(a,b){0<a.readyState&&(a.currentTime=Math.max(Ft,b))}f.getCurrentTime=function(){return this.currentTime||0};function nt(a){return 0<Ct(a.buffered)&&a.duration?Bt(a.buffered,a.currentTime):0}function Ns(a){var b=a.duration||0;return Infinity==b?1:b?nt(a)/b:0}function Jt(a){return a.paused||a.ended}
function Kt(a){a.ended&&It(a,0);!a.hasAttribute("src")&&a.xd&&(a.src=or(a.xd),a.xd.b||a.load());a.play();Dq&&7<=Cq&&Ng(a,u(function(){L(u(this.Wr,this,this.currentTime,0),500)},a))}f.Wr=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),L(u(this.Wr,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function Lt(a){a.currentSrc&&(kr&&It(a,0),bd(a),a.removeAttribute("src"),a.load(),a.xd&&a.xd.b&&(a.xd=null))}function Mt(a){Lt(a);a.xd=null}
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function Nt(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.vC=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.wC=function(){this.Zl&&!this.muted&&(this.muted=!0)};
Et.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:zt(this.played),vbu:zt(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 Ot(a,b){for(var c=0;c<b.length;c++)a.appendChild(b[c])};function Pt(a,b){a=a||64;a&128&&!b||a&2&&a&16||(this.g=a,this.b=b||null)}Pt.prototype.g=64;Pt.prototype.b=null;
function Qt(a,b,c){if(W(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=Rt();e=null;break;case "pause":W(a,256)?d^=256:W(a,32)||W(a,2)||(d=4,W(a,1)&&W(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":W(a,8)&&St(c,g)&&(d|=1);break;case "seeked":d&=-18;break;case "seeking":d|=16;0>=Dt(g.buffered,g.currentTime)&&(d|=1);d&=-3;break;case "waiting":W(a,2)||(d|=1);break;case "timeupdate":W(a,16)||(d=St(c,g)?d|1:d&-2);1<g.readyState&&0<g.currentTime&&(d&=-65);break;default:return a}return Tt(a,d,e)}
function St(a,b){if(!a)return!1;var c=Dt(b.buffered,b.currentTime);return Ut(a,b.currentTime,v(),c)}function Tt(a,b,c){return b==a.g&&c==a.b||b&128&&!c||b&2&&b&16?a:new Pt(b,c)}function Vt(a,b){return Tt(a,a.g|b)}function W(a,b){return!!(a.g&b)}function Wt(a){return W(a,128)?-1:W(a,2)?0:W(a,1)&&!W(a,32)?3:W(a,64)?-1:W(a,8)?1:W(a,4)?2:-1}function Rt(){var a;return a=14};function Xt(a,b,c){st.call(this,a,b);a=c||{};this.ta=a.id||"";void 0!=a.priority&&(this.Jh=a.priority);this.namespace=a.namespace||"";this.$a=new Mh;this.g=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.Wd=a.visible)}w(Xt,st);f=Xt.prototype;f.ta="";f.Jh=7;f.active=!0;f.Wd=!1;f.style="ytp-ad-progress";f.$a=null;f.namespace="";f.getId=function(){return this.ta};function Yt(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6}}
function Zt(a,b){return a.start==b.start?a.Jh==b.Jh?0:a.Jh<b.Jh?-1:1:a.start<b.start?-1:1};function $t(a,b,c){$i.call(this);this.C=a;this.B=b;this.D=c;this.o=new Lk(250);uk(this.o,"tick",this.lc,!1,this);S(this,this.o);this.j=[];this.b=[];this.g=new ut}w($t,$i);f=$t.prototype;f.ti=!1;f.wg=!1;f.gm=!1;f.fm=!1;f.Dg=null;f.wi=function(a){this.lc();z(arguments,function(a){this.j.push(a);var c=this.g.b;!c.length||0<tt(a,c[c.length-1])?c.push(a):Fb(c,a,tt);this.H("onAdd",a)},this);this.lc()};f.Ag=function(a){z(arguments,function(a){a=this.j.indexOf(a);0<=a&&au(this,a)},this);this.lc()};
function au(a,b){var c=a.j.splice(b,1)[0],d=a.g.b,e=zb(d,c,tt);0<=e&&rb(d,e);b=a.b.indexOf(c);0<=b&&a.b.splice(b,1);a.H("onRemove",c)}f.Lg=function(){this.k=bu(this);this.wg=!0;this.lc()};f.reset=function(){this.wg=this.ti=!1;cu(this);for(var a=this.j.length-1;0<=a;a--)au(this,a);this.lc();this.A=null};function du(a,b){var c=[];if(!b.length)return c;b.sort(Zt);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 eu(a,b){var c=[];if(!b.length)return c;b.sort(Zt);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.lc=function(){this.fm=!0;if(!this.gm)for(var a=3;this.fm&&a;){this.fm=!1;this.gm=!0;if(this.wg&&!this.ti){cu(this);for(var b=bu(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(eu(this,d));d=vt(this.g,b);e=this.B();!W(e,48)&&b>this.k&&(d=d.concat(wt(this.g,this.k,b)));c=c.concat(du(this,d));this.k=b;!this.ti&&this.A&&(c.unshift(["onLockBlockExit",this.A]),this.A=null,W(e,2)&&(this.k=2147483647));this.D()&&(b=xt(this.g,this.k),null!=b&&(this.Dg=
Nk(u(this.lc,this),b-this.k)));fu(this,c)}this.gm=!1;a--}};function fu(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.$a.H.apply(e.$a,d)}}function cu(a){null!=a.Dg&&(Ok(a.Dg),a.Dg=null)}function bu(a){return W(a.B(),2)?2147483647:1E3*a.C()}f.J=function(){Ck(this.o,"tick",this.lc,!1,this);cu(this);this.A=this.g=this.b=this.j=null;$t.G.J.call(this)};function gu(a){$i.call(this);this.b=a;if(this.nn){a="yt-html5-player-modules::"+this.nn;var b=new bi;if(a=b.isAvailable()?a?new rt(b,a):b:null)this.aa=new di(a)}}w(gu,$i);f=gu.prototype;f.ua="";f.hc="";f.Ac=!1;f.loaded=!1;f.ek=!1;f.nc=null;f.Hf=function(a){var b=ub(arguments),c=u(this.Ec,this),d=u(this.ld,this);z(b,function(a){a.namespace=this.ua;a.$a.subscribe("onEnter",c);a.$a.subscribe("onExit",d)},this);this.H("command_add_cuerange",b,this.b.getPlayerType())};
f.sB=function(a){var b=ub(arguments);this.H("command_remove_cuerange",b,this.b.getPlayerType())};function hu(a){a.H("command_remove_cuerange_all",a.ua,a.b.getPlayerType())}function iu(a){a.H("command_preroll_ready",a.ua,a.b.getPlayerType())}function ju(a,b){O(b,a.ua);a.b.app.g.N.K().appendChild(b)}function ku(a,b){a.H("command_show_dialog",b)}f.pg=function(){ku(this)};f.create=function(){this.Ac||(this.Ja(this.b),O(qt(this.b),this.ua+"-created"),this.Ac=!0)};
f.destroy=function(){this.loaded&&this.unload();P(qt(this.b),this.ua+"-created");this.Ac=!1};f.load=function(){this.loaded=!0;O(qt(this.b),this.ua+"-loaded");this.H("loaded",this.ua)};f.unload=function(){this.loaded=!1;P(qt(this.b),this.ua+"-loaded");this.H("unloaded",this.ua)};f.Ec=function(){};f.ld=function(){};f.ke=function(){};function lu(a,b,c){a.H("command_navigate_to_url",b,c)}f.log=function(a){this.H("command_log",this.hc,a)};
function mu(a,b,c){var d={},e;for(e in b)d[a.ua+"_"+e]=b[e];b={};for(var g in c)b[a.ua+"_"+g]=c[g];a.H("command_log_timing",d,b)}f.$g=function(){return null};function nu(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 ou(a,b,c){if(a.aa)try{a.aa.set(b,c)}catch(d){}}function pu(a,b){a.H("command_disable_controls",b,a.ua)}function qu(a,b){a.H("command_enable_controls",b,a.ua)}function ru(a){a.H("command_stop_redirect_controls")}
function su(a){a.H("command_play",!1,a.b.getPlayerType())}f.pauseVideo=function(){this.H("command_pause",!1,this.b.getPlayerType())};function tu(a,b){a.H("command_redirected_show_is_playing",b)}function uu(a){return a.b.app.g.j}function vu(a,b){a.H("module_menu_item_add",b)}function wu(a,b){a.H("module_menu_item_remove",b)}function xu(a){a.H("module_menu_show",void 0)}f.Fj=function(){};f.Bj=function(){return[]};f.Ja=function(){return!1};f.Dm=function(){return!0};
f.Jl=function(a,b){this.nc&&this.nc.ke&&this.nc.ke.apply(this.nc,arguments)};f.Hi=function(){};var yu={bG:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",gG:"ERROR_AUTHENTICATION_EXPIRED",hG:"ERROR_AUTHENTICATION_MALFORMED",iG:"ERROR_AUTHENTICATION_MISSING",lG:"ERROR_BAD_REQUEST",rG:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",zG:"ERROR_CGI_PARAMS_MALFORMED",AG:"ERROR_CGI_PARAMS_MISSING",pH:"YTP_DEVICE_FALLBACK",xH:"YTP_ERROR_LICENSE",AH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",DH:"YTP_ERROR_GEO_FAILURE",RH:"YTP_ERROR_GENERIC",SH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",aI:"YTP_ERROR_INVALID_DRM_MESSAGE",
eI:"LEARN_MORE",HI:"YTP_ERROR_NOT_SIGNED_IN",XI:"YTP_ERROR_PURCHASE_NOT_FOUND",YI:"YTP_ERROR_PURCHASE_REFUNDED",aJ:"YTP_ERROR_RENTAL_EXPIRED",tG:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",uG:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",wG:"YTP_ERROR_CAST_TOKEN_FAILED",vG:"YTP_ERROR_CAST_TOKEN_EXPIRED",xG:"YTP_ERROR_CAST_TOKEN_MALFORMED",lJ:"YTP_ERROR_SERVER_ERROR",AJ:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",CJ:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",DJ:"YTP_ERROR_STREAMING_NOT_ALLOWED",EJ:"YTP_ERROR_STREAMING_UNAVAILABLE",
dJ:"YTP_ERROR_RETRYABLE_ERROR",MJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",LJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",RJ:"YTP_ERROR_UNSUPPORTED_DEVICE",TJ:"YTP_ERROR_UNUSUAL_ACTIVITY",bK:"YTP_ERROR_VIDEO_FORBIDDEN",dK:"YTP_ERROR_VIDEO_NOT_FOUND"},zu={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 Au(a){return(a=zu[a.toString()])?a:"YTP_ERROR_LICENSE"};var Bu={created:1,ready:2,testing:4,"testing-starting":3,live:6,"live-starting":5,complete:8,"complete-starting":7};function Cu(a){m.setTimeout(function(){throw a;},0)}var Du;
function Eu(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();return function(b){a.then(function(){try{b()}catch(a){Cu(a)}})}}var b=m.MessageChannel;"undefined"===typeof b&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(b=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 b){var c=new b,d={},e=d;c.port1.onmessage=function(){d=d.next;var a=d.kt;d.kt=null;a()};return function(a){e.next={kt:a};e=e.next;c.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 Fu(a,b){if(!Gu){var c=Hu;ka(m.setImmediate)?m.setImmediate(c):(Du||(Du=Eu()),Du(c));Gu=!0}Iu.push(new Ju(a,b))}var Gu=!1,Iu=[];function Hu(){for(;Iu.length;){var a=Iu;Iu=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.b.call(c.scope)}catch(d){Cu(d)}}}Gu=!1}function Ju(a,b){this.b=a;this.scope=b};function Ku(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function Lu(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Mu(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){Nu(c,2,a)},function(a){Nu(c,3,a)})}catch(d){Nu(this,3,d)}}Mu.prototype.then=function(a,b,c){return Ou(this,ka(a)?a:null,ka(b)?b:null,c)};Ku(Mu);Mu.prototype.cancel=function(a){0==this.g&&Fu(function(){var b=new Pu(a);Qu(this,b)},this)};
function Qu(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.hj)if(d++,h==a&&(e=g),0<=e&&1<d)break;0<=e&&(0==c.g&&1==d?Qu(c,b):(d=c.b.splice(e,1)[0],Ru(c,d,3,b)))}}else Nu(a,3,b)}function Su(a,b){a.b&&a.b.length||2!=a.g&&3!=a.g||Tu(a);a.b||(a.b=[]);a.b.push(b)}
function Ou(a,b,c,d){var e={hj:null,ms:null,os:null};e.hj=new Mu(function(a,h){e.ms=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){h(p)}}:a;e.os=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof Pu?h(b):a(e)}catch(p){h(p)}}:h});e.hj.j=a;Su(a,e);return e.hj}Mu.prototype.B=function(a){this.g=0;Nu(this,2,a)};Mu.prototype.C=function(a){this.g=0;Nu(this,3,a)};
function Nu(a,b,c){if(0==a.g){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(Lu(c)){a.g=1;c.then(a.B,a.C,a);return}if(la(c))try{var d=c.then;if(ka(d)){Uu(a,c,d);return}}catch(e){b=3,c=e}}a.A=c;a.g=b;Tu(a);3!=b||c instanceof Pu||Vu(a,c)}}function Uu(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 Tu(a){a.o||(a.o=!0,Fu(a.D,a))}
Mu.prototype.D=function(){for(;this.b&&this.b.length;){var a=this.b;this.b=[];for(var b=0;b<a.length;b++)Ru(this,a[b],this.g,this.A)}this.o=!1};function Ru(a,b,c,d){if(2==c)b.ms(d);else{for(;a&&a.k;a=a.j)a.k=!1;b.os(d)}}function Vu(a,b){a.k=!0;Fu(function(){a.k&&Wu.call(null,b)})}var Wu=Cu;function Pu(a){ua.call(this,a)}w(Pu,ua);Pu.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 Xu(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=Xu.prototype;f.cancel=function(a){if(this.b)this.j instanceof Xu&&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.bh(new Yu)}};f.Qo=function(a,b){this.B=!1;Zu(this,a,b)};function Zu(a,b,c){a.b=!0;a.j=c;a.k=!b;$u(a)}
function av(a){if(a.b){if(!a.D)throw new bv;a.D=!1}}f.Os=function(a){av(this);Zu(this,!0,a)};f.bh=function(a){av(this);Zu(this,!1,a)};function cv(a,b,c){dv(a,b,null,c)}function dv(a,b,c,d){a.o.push([b,c,d]);a.b&&$u(a)}f.then=function(a,b,c){var d,e,g=new Mu(function(a,b){d=a;e=b});dv(this,d,function(a){a instanceof Yu?g.cancel():e(a)});return g.then(a,b,c)};Ku(Xu);function ev(a){return ib(a.o,function(a){return ka(a[1])})}
function $u(a){if(a.A&&a.b&&ev(a)){var b=a.A,c=fv[b];c&&(m.clearTimeout(c.ta),delete fv[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);Lu(b)&&(d=!0,a.B=!0)}catch(l){b=l,a.k=!0,ev(a)||(c=!0)}}a.j=b;d&&(k=u(a.Qo,a,!0),d=u(a.Qo,a,!1),b instanceof Xu?(dv(b,k,d),b.M=!0):b.then(k,d));c&&(b=new gv(b),fv[b.ta]=b,a.A=b.ta)}
function bv(){ua.call(this)}w(bv,ua);bv.prototype.message="Deferred has already fired";bv.prototype.name="AlreadyCalledError";function Yu(){ua.call(this)}w(Yu,ua);Yu.prototype.message="Deferred was canceled";Yu.prototype.name="CanceledError";function gv(a){this.ta=m.setTimeout(u(this.g,this),0);this.b=a}gv.prototype.g=function(){delete fv[this.ta];throw this.b;};var fv={};function hv(a,b){var c=b||{},d=c.document||document,e=Yc("SCRIPT"),g={Ps:e,kb:void 0},h=new Xu(iv,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){jv(e,!0);h.bh(new kv(1,"Timeout reached for loading script "+a))},l),g.kb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(jv(e,c.uA||!1,k),h.Os(null))};e.onerror=function(){jv(e,!0,k);h.bh(new kv(0,"Error while loading script "+a))};Oc(e,{type:"text/javascript",charset:"UTF-8",
src:a});lv(d).appendChild(e);return h}function lv(a){var b=a.getElementsByTagName("HEAD");return!b||E(b)?a.documentElement:b[0]}function iv(){if(this&&this.Ps){var a=this.Ps;a&&"SCRIPT"==a.tagName&&jv(a,!0,this.kb)}}function jv(a,b,c){null!=c&&m.clearTimeout(c);a.onload=ca;a.onerror=ca;a.onreadystatechange=ca;b&&window.setTimeout(function(){dd(a)},0)}function kv(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ua.call(this,c);this.code=a}w(kv,ua);function mv(a,b){this.g=new J(a);this.b=b?b:"callback";this.kb=5E3}var nv=0;mv.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(nv++).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)||te(e,g,a[g]);b&&(m._callbacks_[d]=ov(d,b),te(e,this.b,"_callbacks_."+d));b=hv(e.toString(),{timeout:this.kb,uA:!0});dv(b,null,pv(d,a,c),void 0);return{ta:d,zr:b}};
mv.prototype.cancel=function(a){a&&(a.zr&&a.zr.cancel(),a.ta&&qv(a.ta,!1))};function pv(a,b,c){return function(){qv(a,!1);c&&c(b)}}function ov(a,b){return function(c){qv(a,!0);b.apply(void 0,arguments)}}function qv(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=ca)};function rv(a){this.b=a;a=null;a=sv(this.b);a="("+a.join("|")+")";a=xa("__%s__",a);this.j=new RegExp(a,"g");this.g={}}var tv=/__([a-z]+(?:_[a-z]+)*)__/g;function sv(a){var b=[],c={};a.replace(tv,function(a,e){e in c||(c[e]=!0,b.push(e))});return b}function uv(a,b){var c=u(function(a,c){return Da(b[c]||this.g[c]||"")},a);return a.b.replace(a.j,c)};function vv(a,b){$i.call(this);this.j=uv(new rv(b),{video_id:a});this.b=new Lk(15E3+Math.floor(3E4*Math.random()));uk(this.b,"tick",u(this.g,this));this.g();this.b.start()}w(vv,$i);vv.prototype.J=function(){this.b.dispose();vv.G.J.call(this)};vv.prototype.g=function(){(new mv(this.j)).send(null,u(this.o,this),u(this.k,this))};vv.prototype.o=function(a){this.H("payload",a);Mk(this.b,15E3+Math.floor(3E4*Math.random()))};vv.prototype.k=function(){this.H("error");var a=this.b.b;192E4>a&&Mk(this.b,2*a)};function wv(a){this.b={};this.j={};this.k={};this.g=xv(this,a)}w(wv,Hh);function xv(a,b,c){var d=0,e=Yc(b[d++]);if(s(b[d])||ha(b[d])||null===b[d]){var g=b[d++];ha(g)&&(g=g.join(" "));if(g=yv(a,e,"className",g))zv(a,e,"className",g),Av(a,g,e)}for(;d<b.length;d++){var h=b[d];if(ha(h))xv(a,h,e);else if(la(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&zv(g,k,l,yv(g,k,l,h[l]))}else s(h)&&(g=yv(a,e,"child",h),null!=g&&e.appendChild(Zc(g)))}c&&c.appendChild(e);return e}f=wv.prototype;f.K=function(){return this.g};
function Av(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)Av(a,d[b],c);else a.b[b]=c}f.X=function(a,b){n(b)?cd(a,this.g,b):a.appendChild(this.g)};f.dd=function(){dd(this.g)};function yv(a,b,c,d){return s(d)&&"{{"==d.substr(0,2)?(a.j[d]=[b,c],null):d}f.update=function(a){for(var b in a)Bv(this,b,a[b])};function Bv(a,b,c){if(c!=a.k[b]){var d=a.j["{{"+b+"}}"];d&&(a.k[b]=c,zv(a,d[0],d[1],c))}}function Cv(a){return ha(a)&&s(a[0])}
function zv(a,b,c,d){if("child"==c){bd(b);if(!ha(d)||Cv(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ja(g)||s(g)||la(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?Cv(g)?c.push(xv(a,g)):g.K?c.push(g.K()):c.push(Zc(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.dd();delete this.g;wv.G.J.call(this)};function Dv(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 Ev(a){return Math.round(1E3*a)/10};var Fv={BJ:"html5-stop-propagation",CG:"html5-chromeless",hI:"html5-live-dvr-disabled",iI:"html5-live-dvr-engaged",jI:"html5-live-playback",uI:"html5-mobile",wI:"modest-branding",FI:"html5-native-controls",GJ:"html5-tablet",FJ:"html5-tablet-body",pI:"html5-main-video",XJ:"html5-video-container",YJ:"html5-video-content",ZJ:"html5-video-controls",$J:"ytp-fallback",aK:"ytp-fallback-content",cK:"html5-video-loader",jK:"html5-watermark",nG:"html5-branded-watermark",IG:"html5-context-menu",cz:"html5-context-menu-copy-debug-info",
dz:"html5-context-menu-copy-embed-html",ez:"html5-context-menu-copy-video-url",fz:"html5-context-menu-copy-video-url-at-current-time",gz:"html5-context-menu-link",hz:"html5-context-menu-report-playback-issue",iz:"html5-context-menu-show-video-info",JG:"html5-show-video-info-template",vI:"html5-modal-panel",TH:"ideal-aspect",rI:"autominimize-controls",sI:"autominimize-controls-aspect",HH:"autohide-controls",IH:"autohide-controls-fullscreenonly",tI:"autominimize-progress-bar",BH:"hide-controls-when-cued",
VJ:"ytp-user-idle",JH:"hide-info-bar",KH:"html5-hide-share",LH:"html5-hide-volume",jG:"ytp-autohide-fade",fK:"video-thumbnail",RI:"ytp-dialog",dG:"html5-async-progress",eG:"html5-async-success",cG:"html5-async-error",yG:"html5-center-overlay",gJ:"ytp-scalable-icon-shrink",fJ:"ytp-scalable-icon-grow",QH:"house-brand",kJ:"sentiment-like",jJ:"sentiment-dislike"};function Gv(){this.j=new wv(["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}}"]]]);S(this,this.j);this.g=this.j.b["html5-fresca-module"];O(this.g,"html5-stop-propagation");this.k=0;this.b=null}w(Gv,Hh);Gv.prototype.K=function(){return this.g};
Gv.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 Hv(a){var b=Math.floor((new Date).valueOf()/1E3);return b>a?Xe("YTP_FRESCA_STARTING_SOON_MESSAGE"):Dv(a-b)}
Gv.prototype.o=function(){var a;a=this.b;a.startTime?(a=a.state,a=6==a||8==a||7==a?!1:!0):a=!1;Q(this.g,"html5-fresca-show-countdown",a);a&&(this.j.update({countdown:Hv(this.b.startTime)}),N(this.k),this.k=L(u(this.o,this),1E3))};Gv.prototype.J=function(){N(this.k);this.g=null;Gv.G.J.call(this)};function Iv(a){this.b=[];this.j=!1;a&&Jv(this,a)}Iv.prototype.state=-1;function Kv(a){return{imageUrl:a.g,messageText:a.getMessage(),startTime:a.startTime,state:a.state}}
function Jv(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=Bu[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=A(d,function(a){return a.$t}));if(c=c.entry)a.j=0<=lb(c,function(a){a=a.yt$status;return!!a&&"inactive"!=a.$t})}}Iv.prototype.getMessage=function(){return this.b.length?this.b:Lv(this)};
function Lv(a){switch(a.state){case 6:return a.j?[]:[Xe("YTP_FRESCA_STAND_BY_MESSAGE"),Xe("YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE")];case 8:return[Xe("YTP_FRESCA_EVENT_OVER_MESSAGE")];case 7:return[Xe("YTP_FRESCA_EVENT_OVER_MESSAGE"),Xe("YTP_FRESCA_COMPLETE_MESSAGE")];default:return[Xe("YTP_FRESCA_STAND_BY_MESSAGE")]}};function Mv(a){gu.call(this,a);We({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(Mv,gu);f=Mv.prototype;f.ua="fresca";f.hc="fresca";f.Zi=!1;f.Zg=!1;f.Ja=function(){return as(this.b.getVideoData(),"fresca_module")};
f.create=function(a){Mv.G.create.call(this);zr(bq(),"application/x-mpegURL")||Br()?(this.Zi=this.Zg=!1,pu(this,["play_pause","seek"]),this.j=new Gv,pt(this.b,this.j.K()),this.k=a||new vv(this.b.getVideoData().videoId,this.b.R().Ro+(this.b.R(),"feeds/api/users/live/broadcasts/__video_id__/states?v=2&alt=json-in-script")),this.k.subscribe("payload",this.Zz,this),this.k.subscribe("error",this.Yz,this),this.subscribe("onStateChange",this.Zq,this)):Nv(this.b.app.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
void 0)};f.destroy=function(){this.ja("onStateChange",this.Zq,this);Lh(this.k,this.j);Mv.G.destroy.call(this)};f.Zq=function(a){this.g&&(this.Zi=W(a.state,2),(Ov(a,16)||this.Zi)&&Pv(this,this.g))};f.Yz=function(){this.Zg||(Qv(this,new Iv),Pv(this,this.g))};f.Zz=function(a){Qv(this,new Iv(a));a=this.b.getVideoData();6!=this.g.state||a.U||a.O?Pv(this,this.g):this.b.Tk(a.videoId)};
function Pv(a,b){var c=6>b.state;!c&&a.b.app.j.xa&&(b.g||b.b.length)&&(c=!0);a.Zi&&!a.b.R().Ic&&(c=!0);b.j||(c=!0);if(!a.Zg)switch(b.state){case 6:b.j&&(a.Zg=!0,qu(a,["play_pause","seek"]),iu(a));break;case 8:case 7:c=a.Zg=!0}c&&a.j.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function Rv(a){return as(a.getVideoData(),"fresca_module")?new Mv(a):null}function Qv(a,b){a.g!=b&&(a.g=b,a.b.R().zb()&&a.H("publish_external_event","onFrescaStateChange",Kv(a.g)))};function Sv(a){this.Mn=a||window;this.kd=[]}f=Sv.prototype;f.Mn=null;f.kd=null;f.listen=function(a,b,c,d){c=u(c,d||this.Mn);a=R(a,b,c);this.kd.push(a);return a};function Tv(a,b,c,d,e,g){d=u(d,g||a.Mn);b=Pg(b,c,d,e);a.kd.push(b)}f.Fa=function(a){Og(a);qb(this.kd,a)};f.removeAll=function(){Og(this.kd);this.kd=[]};function Uv(a,b,c){this.b=a;this.k=b||0;this.g=c;this.j=u(this.ey,this)}w(Uv,Hh);f=Uv.prototype;f.ta=0;f.J=function(){Uv.G.J.call(this);this.stop();delete this.b;delete this.g};f.start=function(a){this.stop();this.ta=Nk(this.j,n(a)?a:this.k)};f.stop=function(){0!=this.ta&&Ok(this.ta);this.ta=0};f.ey=function(){this.ta=0;this.b&&this.b.call(this.g)};function Vv(){U.call(this);this.b=0;this.endTime=this.startTime=null}w(Vv,U);f=Vv.prototype;f.Kc=function(){this.Jb("begin")};f.Dd=function(){this.Jb("end")};f.vb=function(){this.Jb("finish")};f.onStop=function(){this.Jb("stop")};f.Jb=function(a){this.S(a)};function Wv(){Vv.call(this);this.g=[]}w(Wv,Vv);Wv.prototype.add=function(a){C(this.g,a)||(this.g.push(a),uk(a,"finish",this.k,!1,this))};Wv.prototype.remove=function(a){qb(this.g,a)&&Ck(a,"finish",this.k,!1,this)};Wv.prototype.J=function(){z(this.g,function(a){a.dispose()});this.g.length=0;Wv.G.J.call(this)};function Xv(){Wv.call(this);this.j=0}w(Xv,Wv);
Xv.prototype.play=function(a){if(0==this.g.length)return!1;if(a||0==this.b)this.j=0,this.Kc();else if(1==this.b)return!1;this.Jb("play");-1==this.b&&this.Jb("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};Xv.prototype.pause=function(){1==this.b&&(z(this.g,function(a){1==a.b&&a.pause()}),this.b=-1,this.Jb("pause"))};
Xv.prototype.stop=function(a){z(this.g,function(b){0==b.b||b.stop(a)});this.b=0;this.endTime=v();this.onStop();this.Dd()};Xv.prototype.k=function(){this.j++;this.j==this.g.length&&(this.endTime=v(),this.b=0,this.vb(),this.Dd())};var Yv=/#(.)(.)(.)/;function Zv(a){if(!$v.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Yv,"#$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 $v=/^#(?:[0-9a-f]{3}){1,2}$/i;var aw={},bw=null;function cw(a){a=ma(a);delete aw[a];Xb(aw)&&bw&&bw.stop()}function dw(){bw||(bw=new Uv(function(){ew()},20));var a=bw;0!=a.ta||a.start()}function ew(){var a=v();Mb(aw,function(b){fw(b,a)});Xb(aw)||dw()};function gw(a,b,c,d){Vv.call(this);if(!ha(a)||!ha(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(gw,Vv);f=gw.prototype;f.nd=0;
f.play=function(a){if(a||0==this.b)this.nd=0,this.g=this.k;else if(1==this.b)return!1;cw(this);this.startTime=a=v();-1==this.b&&(this.startTime-=this.duration*this.nd);this.endTime=this.startTime+this.duration;this.nd||this.Kc();this.Jb("play");-1==this.b&&this.Jb("resume");this.b=1;var b=ma(this);b in aw||(aw[b]=this);dw();fw(this,a);return!0};f.stop=function(a){cw(this);this.b=0;a&&(this.nd=1);hw(this,this.nd);this.onStop();this.Dd()};f.pause=function(){1==this.b&&(cw(this),this.b=-1,this.Jb("pause"))};
f.J=function(){0==this.b||this.stop(!1);this.Jb("destroy");gw.G.J.call(this)};f.destroy=function(){this.dispose()};function fw(a,b){a.nd=(b-a.startTime)/(a.endTime-a.startTime);1<=a.nd&&(a.nd=1);hw(a,a.nd);1==a.nd?(a.b=0,cw(a),a.vb(),a.Dd()):1==a.b&&a.$m()}function hw(a,b){ka(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.$m=function(){this.Jb("animate")};f.Jb=function(a){this.S(new iw(a,this))};
function iw(a,b){T.call(this,a);this.x=b.g[0];this.y=b.g[1];this.duration=b.duration;this.state=b.b}w(iw,T);function jw(a,b,c,d,e){gw.call(this,b,c,d,e);this.element=a}w(jw,gw);jw.prototype.j=ca;jw.prototype.$m=function(){this.j();jw.G.$m.call(this)};jw.prototype.Dd=function(){this.j();jw.G.Dd.call(this)};jw.prototype.Kc=function(){this.j();jw.G.Kc.call(this)};function kw(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");jw.apply(this,arguments)}w(kw,jw);
kw.prototype.j=function(){this.element.style.left=Math.round(this.g[0])+"px";this.element.style.top=Math.round(this.g[1])+"px"};function lw(a,b,c,d){kw.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}w(lw,kw);lw.prototype.Kc=function(){this.k=[this.element.offsetLeft,this.element.offsetTop];lw.G.Kc.call(this)};function mw(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");jw.apply(this,arguments)}w(mw,jw);
mw.prototype.j=function(){this.element.style.width=Math.round(this.g[0])+"px";this.element.style.height=Math.round(this.g[1])+"px"};function nw(a,b,c,d,e){jw.call(this,a,[b],[c],d,e)}w(nw,jw);nw.prototype.j=function(){this.element.style.width=Math.round(this.g[0])+"px"};function ow(a,b,c,d,e){ja(b)&&(b=[b]);ja(c)&&(c=[c]);jw.call(this,a,b,c,d,e);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");}w(ow,jw);ow.prototype.j=function(){ag(this.element,this.g[0])};
ow.prototype.show=function(){this.element.style.display=""};ow.prototype.hide=function(){this.element.style.display="none"};function pw(a,b,c){ow.call(this,a,1,0,b,c)}w(pw,ow);pw.prototype.Kc=function(){this.show();pw.G.Kc.call(this)};pw.prototype.Dd=function(){this.hide();pw.G.Dd.call(this)};function qw(a,b,c){ow.call(this,a,0,1,b,c)}w(qw,ow);qw.prototype.Kc=function(){this.show();qw.G.Kc.call(this)};function rw(a){return Math.pow(a,3)}function sw(a){return 3*a*a-2*a*a*a};function tw(a){return ha(a)&&a.length?a[0]:a}function uw(a){var b=/.+/;return s(a)&&null!=b&&null!=a&&a.match(b)?a:""}function vw(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 ww(a){return s(a)?a:""}function xw(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function yw(a,b){return"true"==a||"false"==a?"true"==a:b}function zw(a,b){return s(a)?parseFloat(a):b}
function Aw(a,b,c,d,e,g){a=10==b?parseFloat(a):parseInt(a,b);if(null!=a&&!isNaN(a)){if(e)return Hb(a,c,d);if(a>=c&&a<=d)return a}return g}function Bw(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 Cw(a,b){if(null==a)return null;if(ia(a)){var c=[];z(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]}
function Dw(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new wf(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 Ew(a){function b(a){return hb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function Fw(a){this.value=a};function Gw(a,b,c){this.value=a;this.target=b;this.b=c}var Hw={NG:"current",GI:"new"};function Iw(a){return a.value?a.value:null};function Jw(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var Kw={CLOSE:"close",LI:"openUrl",PAUSE:"pause",yE:"subscribe"},Lw={CLICK:"click",CLOSE:"close",sE:"hidden",eJ:"rollOut",wE:"rollOver",xE:"shown"};
function Mw(a){if(!a)return null;var b=xw(a.type,Kw),c=xw(a.trigger,Lw),d;if(d=tw(a.url)){var e=ww(d.value);if(e&&null!=wi(e)){var g=xw(d.target,Hw,"current");d=null==g?null:new Gw(e,g,yw(d.show_link_icon,!0))}else d=null}else d=null;tw(a.subscribeData);(a=tw(a.duration))?(a=Bw(a.value),a=new Fw(a)):a=null;return b?new Jw(b,c,d,a):null};function Nw(a,b,c,d,e,g,h,k,l,p,r,t,y,D){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=r;this.b=t;this.g=y;this.L=D}
function Ow(a){if(!a)return null;var b=vw(a.fgColor,"#1A1A1A"),c=vw(a.bgColor,"#FFF"),d=vw(a.borderColor,"#000"),e=Aw(a.borderWidth,10,0,5,!1,0),g=Aw(a.bgAlpha,10,0,1,!1,.8);Aw(a.borderAlpha,10,0,1,!1,.2);Aw(a.gloss,16,0,255,!1,0);var h=vw(a.highlightFontColor,"#F2F2F2"),k=Aw(a.highlightWidth,10,0,5,!1,3),l=ww(a.textAlign),p=Aw(a.textSize,10,3.3,30.1,!0,3.6107),r=ww(a.fontWeight),t=Dw(a.padding),y=Ew(a.effects),D=Aw(a.cornerRadius,10,0,10,!0,0);var M=tw(a.gradient);if(M){a=Aw(M.x1,10,0,100,!0,0);
var ea=Aw(M.y1,10,0,100,!0,0),jb=Aw(M.x2,10,0,100,!0,100),bg=Aw(M.y2,10,0,100,!0,100),ax=vw(M.color1,"#FFF"),EU=vw(M.color2,"#000"),FU=Aw(M.opacity1,10,0,100,!0,100),M=Aw(M.opacity2,10,0,100,!0,0);a=new Pw(a,ea,jb,bg,ax,EU,FU,M)}else a=null;return new Nw(b,c,d,e,g,h,k,l,p,r,t,y,D,a)}function Pw(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 Qw(a,b){this.b=a;this.videoId=b};var Rw={pK:"xx",qK:"xy",uK:"yx",vK:"yy"};var Sw=dc("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var Tw=/<[^>]*>|&[^;]+;/g;function Uw(a,b){return b?a.replace(Tw,""):a}
var Vw=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Ww=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),Xw=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]"),Yw=/^http:\/\/.*/,Zw=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,$w=
/\s+/,bx=/\d/;function cx(){this.b=dx}cx.prototype.Pj=!0;cx.prototype.Oj=function(){return""};cx.prototype.toString=function(){return"Const{}"};function ex(a){return a instanceof cx&&a.constructor===cx&&a.b===dx?"":"type_error:Const"}var dx={};function fx(){this.b="";this.g=gx}fx.prototype.Pj=!0;var gx={};fx.prototype.Oj=function(){return this.b};function hx(a){var b=new fx;b.b=a;return b}var ix=hx(""),jx=/^[-.%_!# a-zA-Z0-9]+$/;function kx(){this.b=lx}kx.prototype.Pj=!0;kx.prototype.Oj=function(){return""};kx.prototype.bt=!0;kx.prototype.yh=function(){return 1};var lx={};function mx(){this.b="";this.j=nx;this.g=null}mx.prototype.bt=!0;mx.prototype.yh=function(){return this.g};mx.prototype.Pj=!0;mx.prototype.Oj=function(){return this.b};function ox(a){return a instanceof mx&&a.constructor===mx&&a.j===nx?a.b:"type_error:SafeHtml"}var px=/^[a-zA-Z0-9-]+$/,qx=dc("action","cite","data","formaction","href","manifest","poster","src"),rx=dc("link","script","style");
function sx(a){function b(a){if(ha(a))z(a,b);else{if(!(a instanceof mx)){var g=null;a.bt&&(g=a.yh());a=tx(Da(a.Pj?a.Oj():String(a)),g)}d+=ox(a);a=a.yh();0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,d="";z(arguments,b);return tx(d,c)}var nx={};function tx(a,b){var c=new mx;c.b=a;c.g=b;return c}tx("",0);function ux(a,b){ha(b)||(b=[b]);var c=A(b,function(a){return s(a)?a:a.qp+" "+a.duration+"s "+a.timing+" "+a.pp+"s"});vx(a,c.join(","))}
var wx=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(pc)return Ac("10.0");var a=document.createElement("div"),b=Df(),c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!px.test("div"))throw Error("Invalid tag name <div>.");if("div"in rx)throw Error("Tag name <div> is not allowed for SafeHtml.");var d=null,b="<div";if(c)for(var e in c){if(!px.test(e))throw Error('Invalid attribute name "'+e+'".');var g=c[e];if(null!=g){if(g instanceof
cx)g=ex(g);else if("style"==e.toLowerCase()){if(!la(g))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof g+" given: "+g);if(!(g instanceof fx)){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 cx?l=ex(l):jx.test(l)||(l="zClosurez"),h+=k+":"+l+";")}g=h?hx(h):ix}h=void 0;h=g instanceof fx&&g.constructor===fx&&g.g===gx?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 kx)g=g instanceof kx&&g.constructor===kx&&g.b===lx?"":"type_error:SafeUrl";else if(e.toLowerCase()in qx)throw Error('Attribute "'+e+'" requires goog.string.Const or goog.html.SafeUrl value, "'+g+'" given.');}b+=" "+e+'="'+Da(String(g))+'"'}}e=void 0;n(e)?ha(e)||(e=[e]):e=[];!0===Sw.div?b+=">":(d=sx(e),b+=">"+ox(d)+"</div>",d=d.yh());(c=c&&c.dir)&&(/^(ltr|rtl|auto)$/i.test(c)?d=0:d=null);b=tx(b,d);a.innerHTML=ox(b);a=a.firstChild;
b=a.style[ab("transition")];return""!=("undefined"!==typeof b?b:a.style[Hf(a,"transition")]||"")});function vx(a,b){Ff(a,"transition",b)};function xx(a,b){(a=Lc(a))&&a.style&&(cg(a,b),Q(a,"hid",!b))}function yx(a){return(a=Lc(a))?!("none"==a.style.display||ng(a,"hid")):!1}function zx(a){z(arguments,function(a){xx(a,!0)})}function Ax(a){z(arguments,function(a){xx(a,!1)})}var Bx={};function Cx(a){if(a in Bx)return Bx[a];var b=Ef(a,document.body.style);return Bx[a]=b}function Dx(a,b,c){(a=Lc(a))&&a.style&&(b=Cx(b))&&(a.style[b]=c)};function Ex(a,b,c){var d=a.B,e=a.C,g=a.b?a.b:"xy",h=Fx(c,a.k,g);a=Gx(c,a.j,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new xf(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 Fx(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function Gx(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function Hx(a,b,c,d,e,g,h,k,l,p,r){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=r}function Ix(a,b){if(!a)return null;var c=zw(a.x,0),d=zw(a.y,0),e=zw(a.w,0),g=zw(a.h,0),h=Bw(a.t),k=zw(a.scaleSlope,1);return b(c,d,e,g,h,zw(a.d,0),zw(a.px,0),zw(a.py,0),zw(a.scaleSlopeX,k),zw(a.scaleSlopeY,k),xw(a.scaleDimension,Rw,"xy"))}
function Jx(a,b,c){c=c?Jx(c,b):null;a=Ex(a,new xf(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=Hb(a.left,b.left,b.left+b.width-a.width):(c.left=b.left,c.width=b.width),a.height<b.height?c.top=Hb(a.top,b.top,b.top+b.height-a.height):(c.top=b.top,c.height=b.height));return c}function Kx(a){return a?Ix(a,function(a,c,d,e,g,h,k,l,p,r,t){return new Hx(a,c,d,e,g,h,k,l,p,r,t)}):null};function Lx(a,b,c,d,e,g,h,k,l,p,r,t,y){Hx.call(this,a,b,c,d,e,k,l,p,r,t,y);this.D=g;this.F=h}w(Lx,Hx);function Mx(a){if(!a)return null;var b=zw(a.sx,0),c=zw(a.sy,0);return Ix(a,function(a,e,g,h,k,l,p,r,t,y,D){return new Lx(a,e,g,h,k,b,c,l,p,r,t,y,D)})};function Nx(a,b,c,d){this.type=a;this.g=b;this.b=c;this.j=d}var Ox={lE:"anchored",ZI:"rect",mJ:"shapeless"};function Px(a){if(!a)return null;var b=xw(a.type,Ox,"rect"),c=Cw(a.rectRegion,Kx),d=Cw(a.anchoredRegion,Mx);a=Cw(a.shapelessRegion,Kx);return new Nx(b,c,d,a)}function Qx(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 Rx(a,b){this.g=a;this.b=b};function Sx(a,b){this.state=a;this.b=b}var Tx={CLOSED:"closed",MI:"playerControlShow",wE:"rollOver",xE:"shown"};function Ux(a){if(!a)return null;var b=xw(a.state,Tx);a=uw(a.ref);return b?new Sx(b,a):null};function Vx(a,b,c,d){this.b=a||[];this.j=b||[];this.k=c;this.g=d;this.value=!1}function Wx(a){if(!a)return null;var b=Cw(a.condition,Ux),c=Cw(a.notCondition,Ux),d=yw(a.show_delay,!1);a=yw(a.hide_delay,!1);return b||c?new Vx(b,c,d,a):null}function Xx(a,b,c){z(a.b,ra(b,!1),c);z(a.j,ra(b,!0),c)};function Yx(a,b,c,d,e,g,h,k,l,p,r,t,y,D){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=r;this.j=t;this.data=y;this.Sb=D}
var Zx={lE:"anchored",jt:"branding",BG:"channel",LG:"cta",OH:"highlightText",dI:"label",OI:"playlist",QI:"popup",uJ:"speech",yE:"subscribe",KJ:"title",VIDEO:"video",iK:"vote",lK:"website"},$x={jt:"branding",sG:"card",NH:"highlight",IMAGE:"image",MARKER:"marker",PAUSE:"pause",UI:"promotion",Vm:"survey",TEXT:"text",mK:"widget"},ay={eK:"video_relative",NI:"player_relative"};
function by(a){if(!a)return null;var b=uw(a.id);uw(a.author);var c=xw(a.type,$x),d=xw(a.style,Zx),e=ww(tw(a.TEXT)),g=ww(a.data),g=0!=g.length?nf(g):{},h;var k=tw(a.segment);k?(uw(k.timeRelative),h=uw(k.spaceRelative),h=(k=Cw(k.movingRegion,Px))?new Rx(h,k):null):h=null;var k=Cw(a.action,Mw),l=Cw(a.trigger,Wx),p=Ow(tw(a.appearance));p||(p=Ow({}));var r=xw(a.coordinate_system,ay,"video_relative"),t;t=(t=tw(a.image_source))?new Qw(ww(t.standard_url),ww(t.video_id)):null;var y=yw(a.closeable,!0),D=ww(a.html_blob);
a=ww(a.log_data);return b&&c?new Yx(b,c,d,e,h,k,l,p,r,t,y,D,g,a):null}function cy(a){return(a=dy(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}function ey(a){return fy(a,function(a){return null!=a.url&&a.url.b})}function gy(a){return fy(a,function(a){return"click"==a.trigger})}function fy(a,b){return ib(a.o,b,void 0)}function hy(a,b,c){z(a.o,b,c)}function dy(a,b){return B(a.o,b,void 0)}function iy(a,b,c){z(a.C,b,c)}function jy(a,b){A(a.C,b,void 0)}
function ky(a){return(a=ly(a))?Qx(a):null}function ly(a){a.g?(a=a.g,a=a.b.length?a.b[0]:null):a=null;return a}function my(a,b){var c=ky(a);return c&&b?Gx(b,c.j,c.b?c.b:"xy"):1};function ny(a){if(!a)return!1;var b=oy(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function oy(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function py(a,b){if("new"==a.target)return-1;var c=Iw(a);if(!c)return-1;var c=c.replace(/https?:\/\//g,""),d;(d=!ny(c))||(d=Qd(c)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=wi(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=vi(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 qy(a,b,c,d){(a=Iw(a))?ny(a)?d=zi(a,{src_vid:c,feature:"iv",annotation_id:b}):(a?(b=oy(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=ra(ry,d.Za,d.Sa),a=new J(a),ee(a,d(a.Mb)),d=a.toString()):d=a):d=null;return d}function ry(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 sy(a){return a.target?"new"==a.target?"_blank":"_top":ny(Iw(a))?"_top":"_blank"};function ty(a,b){this.j=a;this.g=b;this.b={}}function uy(a,b,c,d){b&&(c=vy(a,b,c),a.b[b]=c["p-time"],c["iv-event"]=c.link||c["l-class"]||c["link-id"]?2:7,cc(c,d||{}),a.log_(c))}function wy(a,b,c,d,e){b&&(d=vy(a,b,d),d["iv-event"]=3,d["i-time"]=a.b[b]||"",cc(d,e||{}),a.log_(d,c))}function xy(a,b,c,d){b&&(c=vy(a,b,c),c["iv-event"]=4,c["i-time"]=a.b[b]||"",cc(c,d||{}),a.log_(c))}
function yy(a,b,c){a=a.g.getVideoData();a.nb?(c=a.nb[c])&&-1!=c.search(Ie)&&(a=Ba("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),lf(c)):a.pa&&lf(zi(a.pa,{label:c,value:"a_id="+b}))}function vy(a,b,c){var d={},e=new ie(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}ty.prototype.log_=function(a,b){this.j.H("command_log","iv",a,b)};function zy(a,b){this.T=a;this.context=b;this.O=this.N=this.M=null;this.C=0}function Ay(a,b,c,d,e,g){b=new Xt(b,c,{id:d});b.namespace="iv-module";e&&b.$a.subscribe("onEnter",e,a);g&&b.$a.subscribe("onExit",g,a);a.context.$a.H("command_add_cuerange",[b],a.context.g.getPlayerType())}f=zy.prototype;f.wj=function(){this.context.$a.subscribe("onResize",this.wd,this)};f.K=function(){return this.T};
function By(a,b,c,d,e){Tv(a.context.b,b,"click",ra(a.Sg,b,c,d,e),"iv-click-target",a);Tv(a.context.b,b,"touchend",ra(a.Sg,b,c,d,e),"iv-click-target",a)}f.Sg=function(a,b,c,d,e){e.stopPropagation();e.preventDefault();var g=qy(b,c,this.context.k.videoId);a=u(function(){this.context.g.pauseVideo();window.open(g,sy(b))},this);ny(Iw(b))&&"new"!=b.target||(a(),a=null);c={};c.interval=v()-this.C;wy(this.context.logger,d.Sb,a,null,c);"cta"==d.style&&yy(this.context.logger,d.id,"cta_annotation_clicked");return!1};
f.show=function(){this.C=v()};f.hide=function(){};f.destroy=function(){dd(this.K())};function Cy(a){a.O||(a.O=td(a.K(),"html5-video-player"));return a.O}
function Dy(a){var b=a.context.j.Yc;if(!b)return null;var c=a.context.j.Cf||new xf(0,0,b.width,b.height),d=-c.top,e=b.height-c.top,g;a.N||(a.N=H("html5-video-container",Cy(a)));g=a.N;if(!g)return null;g=35-(parseInt(If(g,"bottom"),10)||0);var h;a.M||(a.M=H("html5-info-bar",Cy(a)));(h=a.M)&&a.context.j.Vb&&"none"!=If(h,"display")&&(d+=Yf(h).height);return new wf(d,b.width-c.left,e-g,-c.left)}f.wd=function(){};function Ey(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.ud=b.start_ms;this.g=b.end_ms;this.ha=c};function Fy(a,b,c,d){Ey.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(Fy,Ey);function Gy(a,b,c,d){Ey.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(Gy,Ey);function Hy(a,b,c,d){Ey.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(Hy,Ey);function Iy(a,b,c,d){Hy.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(Iy,Hy);function Jy(a,b,c,d){Ey.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(Jy,Ey);function Ky(a){a&&(a.style.display="block")}function Ly(a){a&&(a.style.display="none")}function My(a,b){var c=Bg("requestAnimationFrame",window);return L(function(){c?c.call(window,a):a()},b||0)};function X(a){this.template=new wv(a);S(this,this.template);this.element=this.template.K();this.aa="block";this.P=!0;this.qd=[];this.da={}}w(X,Hh);f=X.prototype;f.K=function(){return this.element};f.X=function(a,b){this.template.X(a,b)};f.dd=function(){this.template.dd()};f.oa=function(a,b){Bv(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(){Ly(this.element);this.P=!1;this.element.setAttribute("aria-hidden","true")};f.wb=function(a){Tg(this.element,a)};f.listen=function(a,b,c,d){return Ny(this,this.element,a,b,c,d)};function Ny(a,b,c,d,e,g,h){b=R(b,c,u(d,e||a),h);a.qd.push(b);s(g)&&(a.da[g]?a.da[g].push(b):a.da[g]=[b]);return b}f.Fa=function(a){Og(a)};function Oy(a,b){a.Fa(a.da[b]);a.da[b]=[]}f.stopPropagation=function(a){this.listen(a,this.FE)};f.FE=function(a){a.stopPropagation()};
f.J=function(){this.Fa(this.qd);delete this.element;X.G.J.call(this)};function Py(a){var b=Re("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(Qy,""),c=c.replace(Ry,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(b,c,a)}else Sy(b,a)}function Sy(a,b){var c=Ty(a),d=document.getElementById(c),e=d&&tg(d,"loaded"),g=d&&!e;e?b&&b():(b&&(Sh(c,b),ma(b)),g||(d=Uy(a,c,function(){tg(d,"loaded")||(rg(d,"loaded","true"),Vh(c),L(ra(Yh,c),0))})))}
function Uy(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 Ty(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Xa(a)}var Qy=/-vfl[a-zA-Z0-9_+=-]+/,Ry=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function Vy(){var a=Re("YPC_LOADER_CSS");if(window.spf){var b=a.match(Wy);spf.style.load(a,b?b[1]:"",void 0)}else Xy(a)}function Xy(a){var b=Yy(a),c=document.getElementById(b),d=c&&tg(c,"loaded");d||c&&!d||(c=Zy(a,b,function(){tg(c,"loaded")||(rg(c,"loaded","true"),Vh(b),L(ra(Yh,b),0))}))}
function Zy(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 Yy(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+Xa(a)}var Wy=/cssbin\/(?:debug-)?([a-zA-Z0-9_-]+?)(?:-2x|-web|-rtl|-vfl|.css)/;function $y(){return!!q("yt.scheduler.instance")}function az(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 bz(a,b){return az(a,b)}function cz(a){var b=q("yt.scheduler.instance.cancelJob");b?b(a):N(a)}function dz(){var a=q("yt.scheduler.instance.start");a&&(wq("jsp")&&!wq("jsr")&&uq("jsr"),N(ez),a())}var ez=0;
function fz(){var a=q("yt.scheduler.instance.pause");a&&(a(),wq("jsp")||uq("jsp"),N(ez),ez=L(dz,800))};var gz=q("yt.pubsub2.instance_")||new Mh;Mh.prototype.subscribe=Mh.prototype.subscribe;Mh.prototype.unsubscribeByKey=Mh.prototype.Ib;Mh.prototype.publish=Mh.prototype.H;Mh.prototype.clear=Mh.prototype.clear;ba("yt.pubsub2.instance_",gz,void 0);var hz=q("yt.pubsub2.subscribedKeys_")||{};ba("yt.pubsub2.subscribedKeys_",hz,void 0);var iz=q("yt.pubsub2.topicToKeys_")||{};ba("yt.pubsub2.topicToKeys_",iz,void 0);var jz=q("yt.pubsub2.isAsync_")||{};ba("yt.pubsub2.isAsync_",jz,void 0);
ba("yt.pubsub2.skipSubKey_",null,void 0);var kz=2;function lz(a,b,c,d){mz(function(){q("yt.www.ypc.checkout.showYpcOverlay")(a,b,c,d)})}function mz(a){if(kz){Vy();var b=Re("YPC_LOADER_CONFIGS"),c=function(){(kz-=1)||nz(a)};Py(c);Gi(b,{onSuccess:function(a,b){Pe(b.configs);We(b.messages);c()}})}else a&&a()}function nz(a){z(Re("YPC_LOADER_CALLBACKS"),function(a){(a=q(a))&&a()});a&&a()};function oz(a){this.b=a}
function pz(a,b){var c=qz(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:Xe("YTP_ON_GOOGLE_PLUS")}]:null,c=new X(["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&&Mb(b.o,function(a,b){var c=Mc(b,g);z(c,function(b){b.innerHTML=a})},c);return c}
function rz(a,b){var c=qz(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",Xe("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],["h2",
"",b.title],d]]];return new X(c)}
function sz(a,b){var c=qz(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 X(["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 tz(a,b,c){var d=sz(a,b),e=d.K();Tv(a.b.b,e,"click",ra(a.g,b,c),"iv-click-target",a);return d}
function uz(a,b){var c=qz(a,b.url,b.id),d=["ul","iv-card-meta-info"];z(b.o,function(a){d.push(["li","",a])});return new X(["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]]])}
oz.prototype.g=function(a,b,c){c.stopPropagation();c.preventDefault();Re("YPC_LOADER_ENABLED")?(this.b.g.pauseVideo(),this.b.g.isFullscreen()&&vz(this.b.g.app),this.b.$a.H("external_overlay_activated"),lz(a.D,a.C,a.B,a.o)):b(c.target,a.url,a.id,a.ha,c)};function qz(a,b,c){return b?qy(b,c,a.b.k.videoId,a.b.j):null};function wz(a,b){zy.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.Ae=I("div");this.k=I("div",["iv-cards-notif","iv-cards-notif-inactive"],void 0,this.Ae,I("button",{type:"button"},I("div")));this.j=I("div","iv-cards-details");this.B=new oz(this.context);this.b=[];this.I=null;this.L=0;this.g=-1;this.Rb=null;this.D=this.A=!1;O(this.K(),"iv-cards");Ay(this,1E3*this.context.k.Oa-1200,
2147483647,"",this.Iu);this.context.g.addEventListener("onStateChange",u(this.Qd,this));this.context.g.addEventListener("onAdStateChange",u(this.Qd,this))}w(wz,zy);var xz={channel:Fy,fundraising:Hy,merch:Hy,playlist:Gy,product:Hy,tip:Iy,video:Jy};function yz(a,b){return new lw(a,[b,a.offsetTop],200,sw)}function zz(a,b,c){a=new pw(a,200,sw);b&&Bk(a,"end",b,!1,c);return a}function Az(a){var b=new qw(a,200,sw);Bk(b,"end",ra(function(a,b){Ff(a,"opacity","");b.target.J()},a));return b}
function Bz(a){cg(a.o,!1);a.K().appendChild(a.o);uk(a.o,"click",a.Ni,!1,a);uk(a.o,"touchend",a.Ni,!1,a);a.K().appendChild(a.F);cg(a.j,!1);a.K().appendChild(a.j);a.K().appendChild(a.k);Cz(a);a.context.b.listen(a.k,"click",a.Dq,a);a.context.b.listen(a.k,"touchend",a.Dq,a);a.context.b.listen(a.k,"mouseover",function(){Dz(this);this.Rb&&this.Rb.zm.stop()},a);a.context.b.listen(a.k,"mouseout",function(){this.Rb&&this.Rb.zm.start(200)},a);a.context.$a.subscribe("external_overlay_activated",a.Ni,a);var b=
Dy(a);xx(a.K(),b?445<b.right-b.left&&243<b.bottom-b.top:!1)}f=wz.prototype;
f.add=function(a){this.V||(Bz(this),this.V=!0);var b=(new X(["button",{type:"button",style:"background-image: url("+a.k+");"}])).K();cg(b,!1);var c,d;switch(a.type){case "fundraising":case "merch":case "product":if(c=sz(this.B,a))d=c.K(),By(this,d,a.url,a.id,a.ha);break;case "tip":(c=tz(this.B,a,u(this.Sg,this)))&&(d=c.K());break;case "video":if(c=uz(this.B,a))d=c.K(),By(this,d,a.url,a.id,a.ha);break;case "playlist":if(c=rz(this.B,a))d=c.K(),By(this,d,a.url,a.id,a.ha);break;case "channel":if(c=pz(this.B,
a))d=c.K(),By(this,d,a.url,a.id,a.ha)}if(d){var e={Vd:a,zk:d,tg:b},g=zb(this.b,e,function(a,b){return a.Vd.ud-b.Vd.ud});0>g&&(g=-(g+1));wb(this.b,g,0,e);cd(this.F,b,g);1<this.b.length&&zx(this.F);c.X(this.j,g);c=ra(this.Qw,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);Ay(this,a.ud,a.g,a.id,ra(this.Rw,a),this.Sw)}};
f.Sg=function(a,b,c,d,e){rd(a,"article","iv-card-active")?wz.G.Sg.call(this,a,b,c,d,e):e.preventDefault()};f.Qw=function(a,b){var c=lb(this.b,function(b){return b===a});Ez(this,c,!0);rd(b.target,"button","yt-uix-button")||b.stopPropagation()};f.Rw=function(){++this.L;Fz(this)?Dz(this):this.D=!0;P(this.k,"iv-cards-notif-inactive")};f.Sw=function(){--this.L;0==this.L&&O(this.k,"iv-cards-notif-inactive")};
function Gz(a,b){if(!a.Rb){a.wd();var c=new X(["div","",["span","",b.A],["span","iv-card-image",{style:"background-image: url("+b.k+");"}]]);a.Ae.innerHTML="";ad(a.Ae,fd(c.K()));uy(a.context.logger,b.ha.Sb,50)}}function Dz(a){if(!a.Rb){var b=Hz(a);if(!(0>b)){Gz(a,a.b[b].Vd);Wf(a.Ae,"");var c=a.Ae.offsetWidth;(new nw(a.Ae,0,c,400,sw)).play();a.Rb={zm:new Uv(function(){this.Rb&&((new nw(this.Ae,c,0,200,sw)).play(),this.Rb=null)},4E3,a),Ux:b};a.Rb.zm.start()}}}function Cz(a){a.wd();Az(a.k)}
f.Dq=function(a){a&&a.stopPropagation();if(!this.A){a=new Xv;Vf(this.K(),this.context.j.Yc);for(var b=0;b<this.b.length;++b){var c=this.b[b].tg;a.add(Az(c));ag(c,0);cg(c,!0);a.add(yz(c,b*(c.offsetWidth+15)))}a.add(zz(this.k));a.add(Az(this.o));for(b=0;b<this.b.length;++b)a.add(Az(this.b[b].zk));this.A=!0;Bk(a,"end",this.$o,!1,this);a.play();this.C=v();this.j.style.width=445*this.b.length+"px";cg(this.j,!0);ag(this.j,1);this.wd();a=this.Rb?this.Rb.Ux:Math.max(0,Hz(this));Ez(this,a,!1);b={};b.notif=
this.Rb?"1":"0";wy(this.context.logger,this.b[a].Vd.ha.Sb,null,50,b);this.I=this.context.b.listen(this.K(),"keydown",this.Vx,this)}};f.$o=function(){this.A=!1};f.Vx=function(a){switch(a.keyCode){case 27:this.Ni();break;case 37:0<this.g&&Ez(this,this.g-1,!0);break;case 39:this.g+1<this.b.length&&Ez(this,this.g+1,!0);break;case 9:Ez(this,this.g+1<this.b.length?this.g+1:0,!0)}a.stopPropagation();a.preventDefault();return!1};
f.Ni=function(a){a&&a.stopPropagation();if(!this.A){var b=new Xv;z(this.b,function(a){b.add(zz(a.tg));b.add(yz(a.tg,0))});b.add(zz(this.o));b.add(Az(this.k));b.add(zz(this.j,function(){Vf(this.K(),"","")},this));this.A=!0;Bk(b,"end",this.$o,!1,this);b.play();a={};a.interval=v()-this.C;this.b[this.g]&&xy(this.context.logger,this.b[this.g].Vd.ha.Sb,null,a);this.I&&this.context.b.Fa(this.I)}};f.Iu=function(){"none"!=this.j.style.display&&this.context.g.pauseVideo()};
function Ez(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];P(e.tg,"yt-uix-button-toggled");P(e.zk,"iv-card-active")}a.g=b;O(d.tg,"yt-uix-button-toggled");O(d.zk,"iv-card-active");yz(a.j,Iz(a).x).play();b={};b.nav=c?"1":"0";uy(a.context.logger,d.Vd.ha.Sb,null,b)}}function Iz(a){var b=Dy(a),c=b.right-b.left,b=b.bottom-b.top,d=Yf(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.wd=function(){var a=Dy(this);a&&(xx(this.K(),a?445<a.right-a.left&&243<a.bottom-a.top:!1),yx(this.j)&&(Vf(this.K(),this.context.j.Yc),Kf(this.j,Iz(this))),Kf(this.K(),a.left,a.top))};f.Qd=function(a){Fz(this,a)&&this.D&&(this.D=!1,Dz(this))};function Fz(a,b){return 2==Ls(a.context.g.app).getPlayerType()?1==(isNaN(b)?a.context.g.getAdState():b):1==(isNaN(b)?a.context.g.getPlayerState():b)}
function Hz(a){var b=1E3*a.context.g.getCurrentTime();return nb(a.b,function(a){return a.Vd.ud<=b&&b<a.Vd.g})};function Jz(a,b,c){zy.call(this,a,b);this.ha=c;this.g=!1}w(Jz,zy);Jz.prototype.wj=function(){Jz.G.wj.call(this);var a=this.ha.data;"start_ms"in a&&"end_ms"in a&&Ay(this,this.ha.data.start_ms,this.ha.data.end_ms,this.ha.id,this.show,this.hide)};function Kz(a,b,c){Jz.call(this,a,b,c);this.j=null;this.k=!1;this.pj=null;this.zd=!1;this.b=0}w(Kz,Jz);
function Lz(a){var b=a.ha.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");ld(d,b.channel_name);var e=I("div","iv-branding-context-subscribe");a.ha.j?e.innerHTML=a.ha.j:b.num_subscribers&&ld(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);Ff(e,"right",a.b+"px");a.K().appendChild(e);By(a,a.K(),cy(a.ha),a.ha.id,a.ha);a.pj=new Uv(ra(function(a){var b=Yf(a.parentElement);(new mw(a.parentElement,[b.width,b.height],[0,0],200,rw)).play();this.zd=!1},d),500,a);Tv(a.context.b,a.K(),"mouseover",ra(function(a,b,c){this.pj.stop();if(!this.zd){var d=Yf(a);Wf(a,d.width);c=Math.min(d.height,c);c=Math.max(c/2-10,0);Kf(b,d.width,c);this.zd=!0;b=9;d=Yf(a);c=Yf(a.parentElement);
(new mw(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,rw)).play()}},d,c,b.image_height),"iv-view-target",a);Tv(a.context.b,a.K(),"mouseout",u(a.pj.start,a.pj),"iv-view-target",a)}Kz.prototype.show=function(){if(!this.g){Kz.G.show.call(this);this.k||(Lz(this),this.k=!0);this.wd();uy(this.context.logger,this.ha.Sb);zx(this.K());this.g=!0;var a=this.j,b,c=$f(a).width,d=ja(void 0)?void 0:c;b=b||0;Kf(a,d);b=new kw(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,rw);uk(b,"begin",ra(zx,a));b.play()}};
Kz.prototype.hide=function(){this.g&&(Ax(this.K()),this.g=!1)};Kz.prototype.wd=function(){var a=Dy(this);if(a){var b=a.right-this.b-20,a=a.top+20;Kf(this.K(),b,a)}};function Mz(a,b,c,d,e,g){this.b=a;this.j=b;this.k=c;this.logger=d;this.g=e;this.$a=g};function Nz(a,b,c){Jz.call(this,a,b,c);this.ij=this.j=this.o=!1;this.k=5E3;this.b=null;this.Tf=I("div","iv-promo-contents")}w(Nz,Jz);
function Oz(a){var b=a.ha.data;a.k=b.collapse_delay_ms||a.k;var c=["iv-promo","iv-promo-inactive"];a.context.j.b.U&&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.ha.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);O(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));O(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();wy(this.context.logger,this.ha.Sb,null,null,{contest_vote:"1"});var b=this.ha.data;a=H("iv-promo-txt",this.Tf);var c=H("iv-promo-button",this.Tf),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);ad(d,e,b);dd(c);ed(d,a);By(this,this.Tf,cy(this.ha),
this.ha.id,this.ha)},a),k.appendChild(b),c.push("iv-promo-with-button")}g&&e.appendChild(g);h&&e.appendChild(h);a.Tf.appendChild(e);k&&a.Tf.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.jr,a);a.context.b.listen(h,"touchend",function(a){a.stopPropagation();this.jr();this.ij=!1},a);a.context.b.listen(a.K(),"mouseout",a.eA,a);h=I("div","iv-promo-close");g.appendChild(h);Pz(a,u(function(){this.hide()},a),h);og(a.K(),c);
d&&$c(a.K(),d);$c(a.K(),a.Tf);$c(a.K(),g);By(a,a.K(),cy(a.ha),a.ha.id,a.ha)}f=Nz.prototype;f.show=function(){this.g||(Nz.G.show.call(this),this.o||(Oz(this),this.o=!0),this.wd(),zx(this.K()),this.ha&&this.ha.Sb&&uy(this.context.logger,this.ha.Sb),"cta"==this.ha.style&&yy(this.context.logger,this.ha.id,"cta_annotation_shown"),P(this.K(),"iv-promo-inactive"),this.g=!0,this.b&&(Ok(this.b),this.b=null),Qz(this),Rz(this,this.k))};f.hide=function(){this.g&&(O(this.K(),"iv-promo-inactive"),this.g=!1)};
f.jr=function(){this.ij=!0;Qz(this);Rz(this,500)};f.eA=function(){this.ij=!1;Sz(this)};function Sz(a){a.j||a.ij||a.b||(O(a.K(),"iv-promo-collapsed"),a.j=!0)}function Qz(a){a.j&&(P(a.K(),"iv-promo-collapsed"),a.j=!1)}function Rz(a,b){a.b||(a.b=Nk(function(){this.b&&(Ok(this.b),this.b=null);Sz(this)},b,a))}f.wd=function(){var a=Dy(this);if(a){var b=Xf(this.K()),b=b.width<a.right-a.left&&b.height<a.bottom-a.top?a.bottom-b.height- -8-25:a.bottom;Kf(this.K(),a.left,b)}};
function Pz(a,b,c){function d(a){xy(this.context.logger,this.ha.Sb);"cta"==this.ha.style&&yy(this.context.logger,this.ha.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 Tz(a,b,c){this.b={};this.g=!1;this.o="ivTrigger:"+a;this.j=c;Xx(b,function(a,b){var c=Uz(b.state,b.b);this.j.subscribe(c,u(this.k,this,c,a));this.b[c]=a},this)}Tz.prototype.k=function(a,b,c,d){this.b[a]=b?!c:c;a=Ob(this.b,function(a){return a});this.g!=a&&(this.g=a,this.j.H(this.o,a,d))};function Uz(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function Vz(a,b,c){this.j=a;this.ha=b;this.b=c;this.g=null;this.o=this.isVisible=!1;Wz(b,a)}function Wz(a,b){jy(a,function(c){return new Tz(a.id,c,b)})}Vz.prototype.hide=function(){this.isVisible=!1;this.j.ja("onResize",this.k,this);this.b&&this.b.hide()};Vz.prototype.show=function(){this.isVisible=!0;this.b&&this.b.show();this.j.subscribe("onResize",this.k,this)};Vz.prototype.destroy=function(){this.j.ja("onResize",this.k,this);if(this.b){var a=this.b;a.C.removeAll();a.g&&dd(a.g);a.j&&a.j.K()&&dd(a.j.K())}Xz(this)};
function Xz(a){a.g&&(a.g.stop(),a.g=null)}Vz.prototype.k=function(){this.b&&Yz(this.b)};function Zz(){};function $z(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($z,Zz);function aA(){this.ba=[];this.ea=[];this.Kd=[]}aA.prototype.dg=null;aA.prototype.pd=null;aA.prototype.Jj=!0;var bA=[2,2,6,6,0];f=aA.prototype;f.clear=function(){this.ba.length=0;this.ea.length=0;this.Kd.length=0;delete this.dg;delete this.pd;delete this.Jj;return this};function cA(a,b,c){0==db(a.ba)?a.Kd.length-=2:(a.ba.push(0),a.ea.push(1));a.Kd.push(b,c);a.pd=a.dg=[b,c]}
f.Xa=function(a){var b=db(this.ba);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ba.push(1),this.ea.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Kd.push(c,d)}this.ea[this.ea.length-1]+=b/2;this.pd=[c,d]};f.close=function(){var a=db(this.ba);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ba.push(4),this.ea.push(1),this.pd=this.dg);return this};
function dA(a,b,c,d,e){var g=a.pd[0]-b*Math.cos(d*Math.PI/180),h=a.pd[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.ba.push(3);a.ea.push(1);a.Kd.push(b,c,d,e,g,h);a.Jj=!1;a.pd=[g,h]}function eA(a,b){for(var c=a.Kd,d=0,e=0,g=a.ba.length;e<g;e++){var h=a.ba[e],k=bA[h]*a.ea[e];b(h,c.slice(d,d+k));d+=k}}
f.clone=function(){var a=new this.constructor;a.ba=this.ba.concat();a.ea=this.ea.concat();a.Kd=this.Kd.concat();a.dg=this.dg&&this.dg.concat();a.pd=this.pd&&this.pd.concat();a.Jj=this.Jj;return a};f.isEmpty=function(){return 0==this.ba.length};function fA(a,b){this.D=a;this.F=null==b?1:b}w(fA,Zz);function gA(a,b){this.b=a;this.g=b};function hA(){}da(hA);hA.prototype.b=0;function iA(a){U.call(this);this.I=a||Ic();this.ta=null;this.Pe=!1;this.b=null;this.o=void 0;this.A=this.C=this.D=null}w(iA,U);f=iA.prototype;f.JB=hA.getInstance();f.getId=function(){return this.ta||(this.ta=":"+(this.JB.b++).toString(36))};f.K=function(){return this.b};f.ci=function(a){if(this.D&&this.D!=a)throw Error("Method not supported");iA.G.ci.call(this,a)};f.rs=function(){this.b=this.I.createElement("div")};
f.sh=function(){jA(this,function(a){a.Pe&&a.sh()});this.o&&this.o.removeAll();this.Pe=!1};f.J=function(){this.Pe&&this.sh();this.o&&(this.o.dispose(),delete this.o);jA(this,function(a){a.dispose()});this.b&&dd(this.b);this.D=this.b=this.A=this.C=null;iA.G.J.call(this)};f.od=function(){return this.b};function jA(a,b){a.C&&z(a.C,b,void 0)}
f.removeChild=function(a,b){if(a){var c=s(a)?a:a.getId();a=this.A&&c?Zb(this.A,c)||null:null;if(c&&a){var d=this.A;c in d&&delete d[c];qb(this.C,a);b&&(a.sh(),a.b&&dd(a.b));c=a;if(null==c)throw Error("Unable to set parent component");c.D=null;iA.G.ci.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function kA(a,b,c,d,e){iA.call(this,e);this.width=a;this.height=b;this.k=c||null;this.F=d||null}w(kA,iA);kA.prototype.j=null;kA.prototype.Hh=function(){return this.Pe?Xf(this.K()):ja(this.width)&&ja(this.height)?new G(this.width,this.height):null};function lA(a){var b=a.Hh();return b?b.width/(a.k?new G(a.k,a.F):a.Hh()).width:0}kA.prototype.resume=function(){};function mA(a,b){U.call(this);this.Dh=a;this.Hk=b;this[ik]=!1}w(mA,U);f=mA.prototype;f.Hk=null;f.Dh=null;f.K=function(){return this.Dh};f.addEventListener=function(a,b,c,d){uk(this.Dh,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Ck(this.Dh,a,b,c,d)};f.J=function(){mA.G.J.call(this);var a=this.Dh;if(a)if(jk(a))a.removeAllListeners(void 0);else if(a=xk(a)){var b=0,c;for(c in a.b)for(var d=a.b[c].concat(),e=0;e<d.length;++e)Dk(d[e])&&++b}};function nA(a,b,c,d){mA.call(this,a,b);a=this.Hk;b=this.K();c?(b.setAttribute("stroke",c.g),c=c.b,s(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/lA(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.Hk;a=this.K();if(d instanceof fA)a.setAttribute("fill",d.D),a.setAttribute("fill-opacity",d.F);else if(d instanceof $z){b="lg-"+d.o+"-"+d.B+"-"+d.A+"-"+d.C+"-"+d.b+"-"+d.g;var e=oA(c,b);if(!e){var e=pA(c,"linearGradient",{x1:d.o,y1:d.B,x2:d.A,y2:d.C,gradientUnits:"userSpaceOnUse"}),
g="stop-color:"+d.b;ja(d.j)&&(g+=";stop-opacity:"+d.j);g=pA(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.g;ja(d.k)&&(g+=";stop-opacity:"+d.k);d=pA(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=qA(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}w(nA,mA);function rA(a,b){mA.call(this,a,b)}w(rA,mA);function sA(a,b){mA.call(this,a,b)}w(sA,mA);function tA(a,b,c,d){nA.call(this,a,b,c,d)}w(tA,nA);function uA(a,b){mA.call(this,a,b)}w(uA,rA);uA.prototype.clear=function(){bd(this.K())};function vA(a,b,c,d){nA.call(this,a,b,c,d)}w(vA,tA);function wA(a,b){mA.call(this,a,b)}w(wA,sA);function xA(a,b,c,d,e){kA.call(this,a,b,c,d,e);this.g={};this.M=rc&&!Ac(526);this.L=new Sk(this)}var yA;w(xA,kA);var zA=0;function pA(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=xA.prototype;
f.rs=function(){var a=pA(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=pA(this,"g");this.B=pA(this,"defs");this.j=new uA(b,this);a.appendChild(this.B);a.appendChild(b);this.b=a;this.k&&(this.K().setAttribute("preserveAspectRatio","none"),this.M?this.Bq():this.K().setAttribute("viewBox","0 0 "+(this.k?this.k+" "+this.F:"")))};
f.Bq=function(){if(this.Pe){var a=this.Hh();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.Hh=function(){if(!qc)return this.Pe?Xf(this.K()):xA.G.Hh.call(this);var a=this.width,b=this.height,c=s(a)&&-1!=a.indexOf("%"),d=s(b)&&-1!=b.indexOf("%");if(!this.Pe&&(c||d))return null;var e,g;c&&(e=this.K().parentNode,g=Yf(e),a=parseFloat(a)*g.width/100);d&&(e=e||this.K().parentNode,g=g||Yf(e),b=parseFloat(b)*g.height/100);return new G(a,b)};f.clear=function(){this.j.clear();bd(this.B);this.g={}};function AA(a,b,c,d){b=pA(a,"path",{d:BA(b)});c=new vA(b,a,c,d);a.j.K().appendChild(c.K())}
function BA(a){var b=[];eA(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 qA(a,b,c){if(b in a.g)return a.g[b];var d="_svgdef_"+zA++;c.setAttribute("id",d);a.g[b]=d;a.B.appendChild(c);return d}
function oA(a,b){return b in a.g?a.g[b]:null}f.sh=function(){xA.G.sh.call(this);this.M&&this.L.Fa(CA(),"tick",this.Bq)};f.J=function(){delete this.g;delete this.B;delete this.j;xA.G.J.call(this)};function CA(){yA||(yA=new Lk(400),yA.start());return yA};function DA(a,b,c){this.b=a;this.g=0;this.B=b;this.C=c||70;this.j=!1}DA.prototype.start=function(a){this.A=v();this.g=a;this.o=this.A+this.g;this.j=!0;zx(this.b);Ue(this.k);this.k=Te(u(this.D,this),this.C)};DA.prototype.stop=function(){this.j=!1;Ax(this.b);this.k&&Ue(this.k)};
DA.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=Ag("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 aA,g=d/2-5;cA(e,d/2,d/2);e.Xa(d/2,5);dA(e,g,g,-90,360*-b);e.Xa(d/2,d/2);e.close();c.setAttribute("d",BA(e));a>=this.o&&(this.stop(),this.B&&this.B())}};function EA(){this.element=this.b=null;this.priority=0;this.o=this.C=!1;this.A=null}w(EA,Hh);EA.prototype.listen=function(a,b,c){return this.element.listen(a,b,c||this)};EA.prototype.Fa=function(a){this.element.Fa(a)};function FA(a,b,c,d){X.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.xB);this.listen("keypress",this.yB);this.D.Og(this.element,u(this.wB,this));b&&GA(this,b);c&&HA(this,c);d&&(this.g=d)}w(FA,X);function GA(a,b){b&&""!=b&&(a.o&&P(a.element,a.o),a.o=b,O(a.element,b))}
function HA(a,b){Bv(a.template,"label",b)}function IA(a,b){a.I=b;Bv(a.template,"tabindex",b)}f=FA.prototype;f.wB=function(){return this.k?null:this.g?this.g:null};f.enable=function(){this.k=!1;this.template.update({disabled:null,tabindex:this.I});P(this.element,"ytp-disabled")};f.disable=function(){this.k=!0;this.template.update({disabled:"true",tabindex:null});O(this.element,"ytp-disabled")};f.xB=function(a){this.k&&(a.stopImmediatePropagation(),a.preventDefault())};
f.yB=function(a){if(13==a.keyCode||32==a.keyCode)a.stopPropagation(),a.preventDefault(),this.wb("click")};f.J=function(){this.D.jn(this.element);this.D=null;FA.G.J.call(this)};function JA(a,b,c){X.call(this,["div","ytp-segmented-control"]);this.k=a;this.g=-1;this.b=[];if(null!=b)for(Lh(this.b),this.b=[],a=0;a<b.length;a++){var d=new FA(this.k);this.b.push(d);c?d.oa(["div",b[a]]):d.oa(b[a]);0!=a&&O(d.K(),"ytp-segmented-control-other");KA(d,a==this.g);d.listen("click",ra(this.j,a),this);d.X(this.element)}}w(JA,X);
JA.prototype.X=function(a,b){JA.G.X.call(this,a,b);for(var c=0,d=0;d<this.b.length;d++)c=Math.max(c,Xf(this.b[d].K()).width);if(c)for(d=0;d<this.b.length;d++)Wf(this.b[d].K(),c)};function LA(a,b){a.g=b;for(var c=0;c<a.b.length;c++)KA(a.b[c],c==b)}JA.prototype.getSelected=function(){return this.g};function MA(a,b){for(var c=0;c<a.b.length;c++)IA(a.b[c],b)}
function KA(a,b){if(b){var c=a.K();P(c,"ytp-segmented-control-deselected");O(c,"ytp-segmented-control-selected")}else c=a.K(),P(c,"ytp-segmented-control-selected"),O(c,"ytp-segmented-control-deselected")}JA.prototype.j=function(a){a!=this.g&&(LA(this,a),this.wb("change"))};JA.prototype.J=function(){Lh(this.b);this.b=[];JA.G.J.call(this)};function NA(a){EA.call(this);this.b=Y(0,"YTP_ANNOTATIONS");this.element=new JA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);S(this,this.element);MA(this.element,2400);this.priority=2;LA(this.element,1)}w(NA,EA);NA.prototype.getSelected=function(){return this.element.getSelected()};function OA(a,b){this.start=a<b?a:b;this.end=a<b?b:a}OA.prototype.clone=function(){return new OA(this.start,this.end)};function PA(){this.b=!1;this.o=this.j=null}function QA(a,b,c){a.j?(Vf(a.j.K(),b,c),a.j.clear()):(b=new xA(b,c,void 0,void 0,void 0),a.j=b,a.j.rs(),a.o=I("div"),b=a.j.K(),a.o.appendChild(b));return a.j}PA.prototype.K=function(){return this.o};PA.prototype.g=function(){};function RA(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Mb(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function SA(a,b){var c;c=":"+(hA.getInstance().b++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function TA(a,b){var c=SA(a,RA("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=SA(a,RA("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},RA("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=SA(a,RA("feComposite",{"in":c,in2:b,operator:"in"}));return SA(a,RA("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function UA(a,b){var c=SA(a,RA("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=SA(a,RA("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=SA(a,RA("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=SA(a,RA("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=SA(a,RA("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=SA(a,RA("feComposite",{operator:"out","in":c,in2:d}));return SA(a,RA("feComposite",{operator:"over","in":b,in2:c}))}
function VA(a,b){return b}function WA(a){var b=RA("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";z(a,function(a){t:{switch(a){case "bevel":a=TA;break t;case "dropshadow":a=UA;break t}a=VA}c=a(b,c)});return b}function XA(a){a=hb(a,function(a){return a in YA});Bb(a,function(a,c){return YA[a]-YA[c]});return a}function ZA(a){return B(a,function(a){return"dropshadow"==a})?new wf(0,7,7,0):new wf(0,0,0,0)}var YA={bevel:1,dropshadow:2};function $A(a,b,c,d,e){b=aB(b,c,d?d.b/2+1:0);AA(a,b,d,e)}function aB(a,b,c){var d=new aA;cA(d,a.left+b+c,a.top+c);d.Xa(a.left+a.width-b-c,a.top+c);dA(d,b,b,-90,90);d.Xa(a.left+a.width-c,a.top+a.height-b-c);dA(d,b,b,0,90);d.Xa(a.left+b+c,a.top+a.height-c);dA(d,b,b,90,90);d.Xa(a.left+c,a.top+b+c);dA(d,b,b,180,90);d.close();return d}function bB(a,b,c,d){var e=a.L;e?a=new $z(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=cB(d,a.j),a=new fA(a.o,b));return a}
function cB(a,b){return a?Math.max(b,.9):b}function dB(a,b){var c=new wf(a.top,a.left+a.width,a.top+a.height,a.left),d=ZA(b);la(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 yf(c)}
function eB(a,b,c){if(c.length&&(b=Nc("g",void 0,b),b.length)){var d=XA(c);if(d){c="effects:"+(d?d.join("|"):"");var e=oA(a,c);e?a=e:(d=WA(d),a=0<d.childNodes.length?qA(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function fB(){PA.call(this);this.k=0}w(fB,PA);
fB.prototype.g=function(a,b,c){var d=a.b,e=d.C,g=this.b&&gy(a),e=(e+=g?1:0)?new gA(e,g?d.A:d.B):null;if(g=ky(a)){var h=Jx(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=ly(a))&&a.b?a.b:null)&&a.length?a[0]:null){var l;c=c?Jx(c,b):null;a=Ex(k,new xf(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 xf(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=dB(c,d.b);a=QA(this,c.width,c.height);var g=bB(d,c.width,c.height,this.b),h=new xf(h.left-c.left,h.top-c.top,h.width,h.height),r=new F(l.x-c.left,l.y-c.top);this.k=17*Gx(b,k.j,k.b?k.b:"xy");b=d.g;k=e?e.b/2:0;l=gB(h,r);var p=this.A(h,b,r,l),t=r.x,r=r.y,y=h.width,D=h.height,M=h.left,h=h.top,ea=new aA;cA(ea,M+b+k,h+k);"t"==l&&(ea.Xa(p.start,h+k),ea.Xa(t,r),ea.Xa(p.end,h+k));ea.Xa(M+y-b-k,h+k);dA(ea,b,b,-90,90);"r"==l&&(ea.Xa(M+y-
k,p.start),ea.Xa(t,r),ea.Xa(M+y-k,p.end));ea.Xa(M+y-k,h+D-b-k);dA(ea,b,b,0,90);"b"==l&&(ea.Xa(p.end,h+D-k),ea.Xa(t,r),ea.Xa(p.start,h+D-k));ea.Xa(M+b+k,h+D-k);dA(ea,b,b,90,90);"l"==l&&(ea.Xa(M+k,p.end),ea.Xa(t,r),ea.Xa(M+k,p.start));ea.Xa(M+k,h+b+k);dA(ea,b,b,180,90);ea.close();AA(a,ea,e,g);if(e=this.K())O(e,"annotation-shape"),O(e,"annotation-speech-shape"),Kf(e,c.left,c.top),Vf(e,c.width,c.height),eB(a,e,d.b)}}}};
function gB(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"}fB.prototype.A=function(a,b,c,d){function e(a,c,d){h=Math.min(Math.max(d-2*b,0),g);k=Hb(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 OA(k,k+h)};function hB(){PA.call(this)}w(hB,PA);hB.prototype.g=function(a,b,c){var d=ky(a);d&&(b=Jx(d,b,c),0>=b.width||0>=b.height||(a=a.b,c=dB(b,a.b),d=QA(this,c.width,c.height),$A(d,new xf(0,0,b.width,b.height),a.g,new gA(!a.k&&this.b?1:a.k,a.o),new fA("#000",0)),b=this.K(),O(b,"annotation-shape"),ag(b,cB(this.b,a.j)),Kf(b,c.left,c.top),Vf(b,c.width,c.height)))};var iB=window.location.protocol+"//i.ytimg.com/",jB=4/3;function kB(a,b,c){var d;switch(b.T){case 30:d=lB;break;default:d=mB}return d(a,b,c)}function mB(a,b,c){if(!c){c=a.clientHeight;a=a.clientWidth;if((900<a||600<c)&&b.bc)return b.bc;if((430<a||320<c)&&b.qf)return b.qf}return b.wa?b.wa:b.videoId?nB(b.videoId):""}function lB(a,b){return b.wa?b.wa:b.videoId?Xd("//docs.google.com/vt",{id:b.videoId,authuser:b.Sa,authkey:b.xb}):"//docs.google.com/images/doclist/cleardot.gif"}
function nB(a,b){return(iB+"vi/"+escape(a)+"/"+escape(b||"hqdefault.jpg")).replace("i.","i"+(a.charCodeAt(0)%1+1)+".")};function oB(a,b,c){PA.call(this);this.k=a||0;this.B=b||0;this.A=c||!1}w(oB,PA);function pB(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 xf(e,g,c,d)}
oB.prototype.g=function(a,b,c){var d=Jx(ky(a),b,c);if(!(0>=d.width||0>=d.height)){var e=pB(d,this.B);e.left+=d.left;e.top+=d.top;b=a.b;c=dB(e,b.b);var g=QA(this,c.width,c.height),h=new fA("#000",0),e=pB(e,this.k);a=a.k?a.k.b?a.k.b:a.k.videoId?nB(a.k.videoId,"hqdefault.jpg"):"":"";e=pA(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 wA(e,g);g.j.K().appendChild(e.K());
if(a=this.K()){var k=cB(this.b,b.j);ag(a,k);if(this.A&&0<b.k){var k=new gA(b.k,b.o),d=new xf(0,0,d.width,d.height),l;l=aB(d,b.g,k.b/2+1);var p=oA(g,"mask");if(p)l=p;else{var p=document.createElementNS("http://www.w3.org/2000/svg","mask"),r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d",BA(l));r.setAttribute("fill","#FFF");p.appendChild(r);l=qA(g,"mask",p)}e=e.K();l&&e.setAttribute("mask","url(#"+l+")");$A(g,d,b.g,k,h)}O(a,"annotation-shape");O(a,"annotation-image-shape");
Kf(a,c.left,c.top);Vf(a,c.width,c.height);eB(g,a,b.b)}}};function qB(){PA.call(this)}w(qB,PA);qB.prototype.g=function(a,b,c){var d=ky(a);if(d){var e=Jx(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.b;c=dB(e,b.b);var d=QA(this,c.width,c.height),g=b.C;a=this.b&&gy(a);a=(g+=a?1:0)?new gA(g,a?b.A:b.B):null;g=new xf(0,0,e.width,e.height);e=bB(b,e.width,e.height,this.b);$A(d,g,b.g,a,e);if(a=this.K())O(a,"annotation-shape"),O(a,"annotation-popup-shape"),Kf(a,c.left,c.top),Vf(a,c.width,c.height),eB(d,a,b.b)}}};function rB(){fB.call(this)}w(rB,fB);rB.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 OA(k,k+h)};function sB(a,b,c,d,e){this.b=a;this.F=b;this.B=c;this.M=d;this.I=e;this.C=new Sv(this);this.D=this.j=this.o=this.k=this.A=this.g=null}function tB(a,b){var c=u(function(a,c,g){c=g?uB(this,c,u(g,this)):uB(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 vB(a){if(a.b.B){var b;fy(a.b,function(a){return"close"==a.type})?b=a.g:(a.o=I("div",["annotation-close-button","hid"]),rg(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",uB(a,"b",c));a.C.listen(b,"touchend",uB(a,"b",c))}}
function uB(a,b,c){return u(function(a){if(this.I)c&&c(a);else if(a.target instanceof Element){var e=a.target;Ax(e);try{var g=document.elementFromPoint(a.clientX,a.clientY);if(td(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{zx(e)}}e=$f(a.target);a=new F(a.clientX,a.clientY);"c"==b&&e.contains(a)||
this.M.H(b,this.b)},a)}sB.prototype.N=function(){this.o&&zx(this.o);this.k&&ag(this.k,1);var a=wB(this);this.j&&(this.j.b=!0,ag(this.g,xB(this)?1:0),a&&this.j.g(this.b,a,yB(this)))};sB.prototype.L=function(){this.o&&Ax(this.o);this.k&&ag(this.k,0);var a=wB(this);this.j&&(this.j.b=!1,ag(this.g,xB(this)?1:0),a&&this.j.g(this.b,a,yB(this)))};function yB(a){return a.D?ky(a.D):null}
function Yz(a){if(a.g||a.j){var b=ky(a.b);if(b){var c=wB(a),d=yB(a);if(a.g&&c){b=Jx(b,c,d);Vf(a.g,b.width,b.height);Kf(a.g,b.left,b.top);var e=a.B.Cf;if(e){var g;g=(g=ky(a.b))&&e?Fx(e,g.k,g.b?g.b:"xy"):1;var e=my(a.b,e),h;h=a.b.b;h.F?h=h.F:(h="speech"==a.b.style?1.6:.8,h=new wf(h,h,h,h));h=new wf(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),Vf(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),Kf(a.k,g));a.o&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,Kf(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*my(a.b,a.B.Cf)/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=yx(d);g=H("annotation-close-button",a);e=yx(g);d&&b&&Ax(d);g&&e&&Ax(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=lg(a),r=p,t=5,y=Math.floor(p/2);y;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(t=r,r=Math.min(r+y,p)):r=Math.max(r-y,t),y=Math.floor(y/2),a.style.fontSize=r+"px";r!=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&&zx(g);
d&&b&&zx(d)}}}}
sB.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=wB(this);if(d){var e=null;"highlight"==this.b.type||"label"==this.b.style?e=new hB:"popup"==this.b.style?e=new qB:"anchored"==this.b.style?e=new fB:"speech"==this.b.style?e=new rB:"image"==this.b.type&&("video"==this.b.style?e=new oB(4/3,16/9,!0):"channel"==this.b.style&&(e=new oB));e&&(e.g(this.b,d,yB(this)),
this.j=e,d=e.K())&&(Ax(d),O(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&&(O(this.A,"label-text"),this.A.style.backgroundColor=this.b.b.o),ld(this.A,this.b.A),this.g.appendChild(this.A));rg(this.g,"annotation_id",this.b.id);this.F(this.g);tB(this,this.g);if(gy(this.b)&&
"image"!=this.b.type&&ey(this.b)){if(d=cy(this.b))this.g.title=Iw(d);this.k=I("span","annotation-link-icon");this.g.appendChild(this.k)}vB(this);gy(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=Qx(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)}zx(this.g);ag(this.g,xB(this)?
1:0);Yz(this);this.j&&zx(this.j.K())};sB.prototype.hide=function(){Ax(this.g);this.j&&Ax(this.j.K())};function xB(a){return"label"!=a.b.style||a.j.b}function wB(a){var b=a.B.Cf;return b?"player_relative"==a.b.D?(a=a.B.Yc)?new xf(-b.left,-b.top,a.width,a.height):null:new xf(0,0,b.width,b.height):null};function zB(a){gu.call(this,a);this.ek=!0;this.ua="iv-module";this.hc="iv";this.L=!1;this.P=!0;this.B=!1;this.k=0;this.g={};this.F={};this.A=new ty(this.M,this.b);a=AB;this.o=new NA(uu(this));S(this,this.o);this.o.listen("change",this.gu,this);this.subscribe("onHideControls",this.du,this);this.subscribe("onShowControls",this.fu,this);this.subscribe("onStateChange",this.eu,this);this.subscribe("d",this.iu,this);this.subscribe("c",this.hu,this);this.subscribe("a",this.bu,this);this.subscribe("b",this.cu,
this);var b=new wv(["div",[a.Yt,"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"}]]]]);S(this,b);b=b.K();this.O=I("DIV",[a.au,"html5-stop-propagation"]);this.C=I("DIV",a.Zt);ju(this,I("DIV",a.Xt,this.O,this.C));ju(this,b);this.D=new DA(b,u(this.kk,this));this.j=null;this.N=[];this.I=null}w(zB,gu);zB.o="AnnotationsModule";
var AB={Xt:"video-annotations",Yt:"countdowntimer",Zt:"video-custom-annotations",au:"video-legacy-annotations"};zB.k=function(a){switch(a.type){case "branding":case "promotion":case "survey":return!0}return!1};zB.j=function(a){return"card"==a.type};zB.g=function(a){return zB.Ja(a)?new zB(a):null};zB.Ja=function(a){return"leanback"==a.R().$?!1:as(a.getVideoData(),"iv3_module")};zB.b=function(){return I("div",["annotation","annotation-type-custom","hid"])};f=zB.prototype;f.Ja=function(){return zB.Ja(this.b)};
f.create=function(){zB.G.create.call(this);vu(this,this.o);1==(this.b.R().pa||this.b.getVideoData().Ba)&&this.load()};f.destroy=function(){wu(this,this.o);zB.G.destroy.call(this)};f.gu=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.eu=function(a){this.P=W(a.state,8);0>Ov(a,4)&&this.D.stop()};
f.load=function(){zB.G.load.call(this);var a=this.b.getVideoData(),b=u(this.Er,this,a.videoId);$y()&&(b=BB(this,b));b={format:"XML",method:"GET",vb:b};a.Pm&&(this.k++,Gi(a.Pm,b));a.Om&&(b=u(this.Er,this,a.videoId),$y()&&(b=BB(this,b)),b={format:"XML",method:"GET",vb:b},this.k++,Gi(a.Om,b));LA(this.o.element,0)};
f.unload=function(){LA(this.o.element,1);this.A.log_({"iv-event":1});this.kk();hu(this);Mb(this.g,function(a){a.destroy()});Mb(this.F,function(a){a.destroy()});this.j&&(this.j.destroy(),this.j=null);this.k=0;this.B=!1;this.g={};this.F={};zB.G.unload.call(this)};
function CB(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(CB(a,e))}return c}
f.Er=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(Bi(b)&&c){DB(this,c[0]);O(qt(this.b),this.ua+"-loaded");0==this.k&&(this.B=!0);var c=[],d;for(d in this.g){var e=this.g[d].ha,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 Xt(g,h,k);c.push(e)}}this.Hf.apply(this,c)}}};function EB(a,b){var c=FB(a,b);if(!c&&"marker"!=b.type)return null;iy(b,function(a){a=u(this.kD,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new Vz(a.M,b,c)}
function GB(a,b){var c=zB.b(),d=null;switch(b.type){case "branding":a.C.appendChild(c);d=new Kz(c,HB(a),b);break;case "promotion":a.C.appendChild(c),d=new Nz(c,HB(a),b)}d&&d.wj();return d}function IB(a,b){if(!a.j){var c=zB.b();a.C.appendChild(c);a.j=new wz(c,HB(a));a.j.wj()}var c=a.j,d=b&&b.data&&b.data.card_type;if(d){var e=cy(b);e&&xz[d]&&c.add(new xz[d](b.id,b.data,e,b))}}function HB(a){a.I||(a.I=new Mz(new Sv(a),a.b.R(),a.b.getVideoData(),a.A,a.b,a.M));return a.I}
function DB(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=CB(a,c[d]),g=null;try{g=by(e)}catch(h){}g&&(zB.k(g)?(e=GB(a,g))&&(a.F[g.id]=e):zB.j(g)?IB(a,g):(e=EB(a,g))&&(a.g[g.id]=e))}Mb(a.g,function(a){var b=a.ha;b.g&&b.g.g&&(b=this.g[b.g.g])&&(a.b.D=b.ha)},a)}f.Ec=function(a){zB.G.Ec.call(this,a);a=a.getId();var b=this.g[a];b&&!b.o&&(b=b.ha,"pause"==b.type?JB(this,b):(KB(this,a),uy(this.A,b.Sb)))};f.ld=function(a){zB.G.ld.call(this,a);LB(this,a.getId())};
function JB(a,b){if(a.P){var c=dy(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 MB(a,b,c,d){d?KB(a,b,c):LB(a,b,c)}function LB(a,b,c){if(b=a.g[b])Xz(b),c&&c.g?(a=u(a.xs,a,b),b.g=new Uv(a,2E3),b.g.start()):a.xs(b)}f.xs=function(a){a&&(a.hide(),NB(this,"shown",!1,a.ha.id),OB(this,a.ha,"hidden"))};function KB(a,b,c){if(b=a.g[b])Xz(b),c&&c.k?(a=u(a.gs,a,b),b.g=new Uv(a,2E3),b.g.start()):a.gs(b)}
f.gs=function(a){a&&(a.show(),NB(this,"shown",!0,a.ha.id),OB(this,a.ha,"shown"))};f.kD=function(a,b,c){var d=this.g[a];if(d&&b.value!=c){b.value=c;var e=!1;iy(d.ha,function(a){e|=a.value});MB(this,a,b,e)}};f.bu=function(a){if(a&&a.id){var b=cy(a);if(b){var c=u(function(){OB(this,a,"click")},this);ny(Iw(b))&&"new"!=b.target||(c(),c=null);wy(this.A,a.Sb,c)}}};
function OB(a,b,c){hy(b,function(a){if(a.trigger==c&&"openUrl"==a.type){var e=this.b.getVideoData(),g=py(a.url,e.videoId);if(-1!=g)this.H("command_seek",g),this.kk();else if(e=qy(a.url,b.id,e.videoId,this.b.R()))this.pauseVideo(),window.open(e,sy(a.url))}},a)}f.du=function(){NB(this,"playerControlShow",!1)};f.fu=function(){NB(this,"playerControlShow",!0)};f.iu=function(a){NB(this,"rollOver",!0,a.id)};f.hu=function(a){NB(this,"rollOver",!1,a.id)};
f.cu=function(a){if(a||a.id)this.g[a.id].o=!0,LB(this,a.id),a&&(xy(this.A,a.Sb),OB(this,a,"close")),NB(this,"closed",!0,a.id)};f.kk=function(){this.D.stop();this.L&&(this.L=!1,this.H("command_play"))};function FB(a,b){if(PB(b)){var c=b.B||fy(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new sB(b,u(a.O.appendChild,a.O),a.b.R(),a.M,c)}return null}
function PB(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in Zx)if(a.style==Zx[b])return!0;return!1}function NB(a,b,c,d){a.H(Uz(b,d),c,d)}function BB(a,b){return u(function(){if(!this.fa()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=ra.apply(window,a);this.N.push(az(b,void 0))}},a)}f.J=function(){for(var a=this.N,b=0,c=a.length;b<c;b++)cz(a[b]);this.N.length=0;zB.G.J.call(this)};function QB(a,b,c){c=c||{};var d=c.hd;d||(d=document.createElement("style"),d.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(d),d=d.sheet||d.styleSheet);c.reset&&RB(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 RB(a){for(var b=(a.cssRules||a.rules).length;0<b;b--){var c=a;c.deleteRule?c.deleteRule(0):c.removeRule(0)}};function SB(a,b,c){X.call(this,["div","ytp-drop-down","{{content}}"]);this.o=!1;this.B=0;this.D=this.C=null;this.g=new X(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);S(this,this.g);this.b=new FA(a,"ytp-drop-down-label");S(this,this.b);this.b.listen("click",this.F,this);this.A=new X(["div","ytp-drop-down-label-content","{{content}}"]);S(this,this.A);this.b.oa([this.A,["div","ytp-drop-down-arrow"]]);this.oa([this.g,this.b]);this.stopPropagation("click");n(b)&&this.k(b);n(c)&&this.D!=c&&
(this.g.oa(c),this.D=c,TB(this));TB(this)}w(SB,X);SB.prototype.k=function(a){this.C!=a&&(this.A.oa(a),this.C=a,TB(this))};SB.prototype.j=function(){this.o=!1;TB(this)};SB.prototype.F=function(){this.o=!this.o;TB(this);this.o&&this.g.K().focus()};function UB(a,b){b>a.B&&(a.B=b,a.element.style.minWidth=a.B+"px")}
function TB(a){a.o?(a.g.show(),Ny(a,window,"blur",a.j,a,"menu"),Ny(a,document,"click",a.j,a,"menu")):(a.g.hide(),Oy(a,"menu"));var b=Xf(a.b.K());a.g.K().style.bottom=b.height-1+"px";UB(a,b.width)};function VB(a,b){FA.call(this,a,"ytp-drop-down-menu-button");this.b=new X(["div","ytp-drop-down-menu-button-check"]);S(this,this.b);this.j=!!b}w(VB,FA);VB.prototype.oa=function(a){VB.G.oa.call(this,[this.b,a])};function WB(a,b){Q(a.element,"ytp-drop-down-menu-button-selected",b);a.j||Q(a.element,"ytp-drop-down-menu-button-checked",b)}function XB(a,b){Q(a.element,"ytp-drop-down-menu-button-separated",b)}function YB(a,b){Q(a.element,"ytp-drop-down-menu-button-checked",b)};function ZB(a,b,c,d){X.call(this,["div","ytp-drop-down-menu-content","{{content}}"]);this.C=a;this.o=!!d;this.j={};this.k=[];this.b=this.g=null;this.A=b;this.B=c}w(ZB,X);function $B(a,b){Db(a.k,b)||(Mb(a.j,function(a){a.dd()}),a.k=[],b&&z(b,function(a){this.k.push(a);var b=aC(this,a);this.o&&YB(b,a==this.b);WB(b,a==this.g);b.X(this.element)},a))}function bC(a,b){null!=a.g&&WB(aC(a,a.g),!1);null!=b&&WB(aC(a,b),!0);a.g=b;a.o||(a.b=b)}ZB.prototype.getSelected=function(){return this.g};
function cC(a,b){Mb(a.j,function(a){IA(a,b)})}function aC(a,b){var c=a.j[b.toString()];if(c)return c;c=new VB(a.C,a.o);S(a,c);a.j[b.toString()]=c;c.oa(a.A(b));c.listen("click",u(a.B,a,b));return c};function dC(a){EA.call(this);this.D=this.j;this.k={};this.k[this.j]=Y(0,"YTP_TRANSLATE_MENU_ITEM");this.k.contribute=Y(0,"YTP_CONTRIBUTE_MENU_ITEM");this.F=!0;this.b=Y(0,"YTP_SUBTITLES");this.g=new ZB(a,u(this.I,this),u(this.N,this));S(this,this.g);this.element=new SB(a,void 0,this.g);S(this,this.element);UB(this.element,150);this.priority=2;this.o=!0;this.A="captions";this.B=this.L=!1}w(dC,EA);dC.prototype.j="translate";
function eC(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]=fC(e));c.push(g)}$B(a.g,c);c=!a.L;d=aC(a.g,a.j);c?d.disable():d.enable();c=!a.B;XB(aC(a.g,a.j),c);a.B&&XB(aC(a.g,"contribute"),!0);c=2100;cC(a.g,c++);c=c++;IA(a.element.b,c)}function gC(a,b){a.k[b]&&(a.D=b,bC(a.g,b),a.element.k(a.I(b)))}function hC(a,b){a.L=b;var c=!b,d=aC(a.g,a.j);c?d.disable():d.enable()}dC.prototype.I=function(a){return this.k[a]};
dC.prototype.N=function(a){this.element.j();a==this.j?(this.F=!0,this.element.wb("select")):"contribute"==a?(this.F=!1,this.element.wb("select")):(gC(this,a),this.element.wb("change"))};function iC(a){EA.call(this);this.b=Y(0,"YTP_SUBTITLES");this.element=new JA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);S(this,this.element);MA(this.element,2200);this.priority=1;this.C=!0;this.A="captions";LA(this.element,1)}w(iC,EA);iC.prototype.M=function(){this.element.wb("select")};iC.prototype.getSelected=function(){return this.element.getSelected()};function jC(a){X.call(this,a)}w(jC,X);jC.prototype.A=function(){};var kC={yI:"monoSerif",WI:"propSerif",xI:"monoSans",VI:"propSans",CASUAL:"casual",CURSIVE:"cursive",tJ:"smallCaps"},lC={NONE:"none",DROP_SHADOW:"dropShadow",RAISED:"raised",DEPRESSED:"depressed",QJ:"uniform"},mC=["left","right","center"],nC={id:0,priority:0,anchorPoint:7,bj:50,GE:80,ee:95,yd:15,km:100,isVisible:!0,textAlign:mC[2],Qe:0,backgroundColor:"#080808",foregroundColor:"#fff",AE:1,Hn:1},oC={id:98},pC={id:99,priority:1,anchorPoint:0,bj:5,ee:7,yd:2,km:32,textAlign:mC[0]},qC=["CA","MX","US"];var rC=[{ia:"#fff",message:"YTP_COLOR_WHITE"},{ia:"#ff0",message:"YTP_COLOR_YELLOW"},{ia:"#0f0",message:"YTP_COLOR_GREEN"},{ia:"#0ff",message:"YTP_COLOR_CYAN"},{ia:"#00f",message:"YTP_COLOR_BLUE"},{ia:"#f0f",message:"YTP_COLOR_MAGENTA"},{ia:"#f00",message:"YTP_COLOR_RED"},{ia:"#080808",message:"YTP_COLOR_BLACK"}],sC=[{ia:0,text:"0%"},{ia:.25,text:"25%"},{ia:.5,text:"50%"},{ia:.75,text:"75%"},{ia:1,text:"100%"}],tC=[{ia:"fontFamilyOption",message:"YTP_FONT_FAMILY",options:[{ia:"monoSerif",message:"YTP_FONT_FAMILY_MONO_SERIF"},
{ia:"propSerif",message:"YTP_FONT_FAMILY_PROP_SERIF"},{ia:"monoSans",message:"YTP_FONT_FAMILY_MONO_SANS"},{ia:"propSans",message:"YTP_FONT_FAMILY_PROP_SANS"},{ia:"casual",message:"YTP_FONT_FAMILY_CASUAL"},{ia:"cursive",message:"YTP_FONT_FAMILY_CURSIVE"},{ia:"smallCaps",message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{ia:"color",message:"YTP_FONT_COLOR",options:rC},{ia:"fontSizeIncrement",message:"YTP_FONT_SIZE",options:[{ia:-2,text:"50%"},{ia:-1,text:"75%"},{ia:0,text:"100%"},{ia:1,text:"150%"},{ia:2,text:"200%"},
{ia:3,text:"300%"},{ia:4,text:"400%"}]},{ia:"background",message:"YTP_BACKGROUND_COLOR",options:rC},{ia:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:sC},{ia:"windowColor",message:"YTP_WINDOW_COLOR",options:rC},{ia:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:sC},{ia:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",options:[{ia:"none",message:"YTP_EDGE_STYLE_NONE"},{ia:"dropShadow",message:"YTP_EDGE_STYLE_DROP_SHADOW"},{ia:"raised",message:"YTP_EDGE_STYLE_RAISED"},{ia:"depressed",
message:"YTP_EDGE_STYLE_DEPRESSED"},{ia:"uniform",message:"YTP_EDGE_STYLE_OUTLINE"}]},{ia:"textOpacity",message:"YTP_FONT_OPACITY",options:[{ia:.25,text:"25%"},{ia:.5,text:"50%"},{ia:.75,text:"75%"},{ia:1,text:"100%"}]}];function uC(a,b,c,d){X.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);var e=b.text||(b.message?Y(0,b.message):""),e=[new wv(["div","ytp-subtitles-settings-dialog-list-text",e])];d&&(d=new wv(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.K().style.background=b.ia,e.unshift(d));c?e.unshift(new wv(["div","ytp-subtitles-settings-dialog-list-caret"])):e.unshift(new wv(["div","ytp-subtitles-settings-dialog-list-check"]));this.b=new FA(a);S(this,this.b);this.b.oa(e);
this.oa(this.b)}w(uC,X);uC.prototype.setEnabled=function(a){Q(this.b.K(),"ytp-subtitles-settings-dialog-list-selected",a)};function vC(a){X.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.o=a;this.g=null;var b=Y(0,"YTP_DONE"),c=new FA(a,"ytp-dialog-button",b);S(this,c);c.oa(b);c.listen("click",ra(this.wb,"cancel"),this);b=Y(0,"YTP_RESET");a=new FA(a,"ytp-dialog-button",b);S(this,a);a.oa(b);
O(a.K(),"ytp-dialog-button-left");a.listen("click",ra(this.wb,"select"),this);this.j={};this.b={};this.template.update({top:wC(this,tC),buttons:[a,c]})}w(vC,jC);function wC(a,b,c){var d=new X(["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 uC(a.o,k,g,b==rC);g?l.listen("click",u(a.k,a,k.options,k.ia)):c&&l.listen("click",u(a.B,a,c,k.ia));e[k.ia]=l;l.X(d.K())}return d}
vC.prototype.k=function(a,b){this.template.update({sub:wC(this,a,b)});xC(this,this.j,b);xC(this,this.b,this.g[b])};function xC(a,b,c){Mb(b,function(a,b){a.setEnabled(b==c)},a)}function yC(a,b){a.g=b;var c=tC[0];c&&c.options&&a.k(c.options,c.ia)}vC.prototype.B=function(a,b){this.g&&(this.g[a]=b,this.wb("change"));xC(this,this.b,b)};
vC.prototype.A=function(){var a=this.o.Vc(),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"};vC.prototype.J=function(){this.j=[];this.b=[];vC.G.J.call(this)};function zC(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y(0,"YTP_TRANSLATE_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);var c=Y(0,"YTP_DISMISS"),b=new FA(a,"ytp-dialog-button",c);S(this,b);b.oa(c);b.listen("click",ra(this.wb,"change"),this);var c=Y(0,"YTP_CANCEL"),d=new FA(a,"ytp-dialog-button",c);S(this,d);d.oa(c);d.listen("click",ra(this.wb,"cancel"),this);this.g=new ZB(a,u(this.j,this),u(this.o,
this),!0);S(this,this.g);this.g.element.style.maxHeight="100px";this.b=new SB(a,void 0,this.g);S(this,this.b);UB(this.b,200);this.k=null;this.template.update({content:this.b,buttons:[b,d]})}w(zC,jC);function AC(a,b){a.k=b;a.b.k(b?a.j(b):null)}zC.prototype.getSelected=function(){return this.k};zC.prototype.o=function(a){this.b.j();AC(this,a)};zC.prototype.j=function(a){return a.ri+" -- "+a.Nk};var BC;function CC(a,b){ia(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;BC||(BC={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=BC;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function DC(a,b,c,d,e){FA.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(DC,FA);function EC(a){GA(a,a.b&&a.A?a.A:a.F);HA(a,a.b&&a.B?a.B:a.M);a.g=a.b&&a.C?a.C:a.L;Q(a.element,"ytp-button-pressed",a.b)}function FC(a){a.b=!0;CC(a.element,!0);EC(a)}function GC(a){a.b=!1;CC(a.element,!1);EC(a)}function HC(a,b){a.F=b;EC(a)}DC.prototype.J=function(){this.C=this.B=this.A=null;DC.G.J.call(this)};function IC(a){a=a||nC;sa(this,a)}f=IC.prototype;f.anchorPoint=7;f.bj=50;f.ee=95;f.GE=80;f.Qe=0;f.textAlign="center";f.backgroundColor="#080808";f.foregroundColor="#fff";f.AE=1;f.Hn=1;f.yd=15;f.km=32;f.isVisible=!0;f.Ls='"Arial Unicode Ms", Arial';f.mD="100%";function JC(a,b){this.id=a;this.Ea=new IC(b);var c="caption-window";0==this.id&&(c="standard-caption-window");this.ya=I("div",{id:"caption-window-"+this.id,"class":c});this.Ob=I("span",{"class":"captions-text",style:"visibility: hidden"});this.Ob.innerHTML="C";this.Aa=I("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.Kj=I("div",{"class":"caption-window-transform"});this.Kj.appendChild(this.Aa);this.ya.appendChild(this.Kj)}JC.prototype.id=0;f=JC.prototype;f.Ea=null;
f.gh="";f.Sc=null;f.ya=null;f.Kj=null;f.Aa=null;f.Ob=null;f.type=1;f.Gj=function(){var a;this.Ob.style.fontFamily=this.Aa.style.fontFamily;this.ya.appendChild(this.Ob);a=this.Ob.offsetHeight;this.ya.removeChild(this.Ob);return a};f.Ze=function(){this.Aa&&(0!=this.id&&(Wf(this.ya,"100%"),Wf(this.ya,this.Aa.offsetWidth)),KC(this),xx(this.ya,this.Ea.isVisible))};function KC(a){Kf(a.ya,a.Ea.bj+"%",a.Ea.ee+"%");for(var b=0;8>=b;b++)P(a.ya,"anchor-point-"+b);O(a.ya,"anchor-point-"+a.Ea.anchorPoint)}
f.nr=function(a){var b=[];z(a,function(a){a.Ij?b[b.length-1]+=a.fe:b.push(a.fe)});this.We(b.join("\n"));this.Sc=a};f.We=function(a){this.gh=a=LC(a);this.Aa.innerHTML=this.gh;this.In();this.Ze()};function MC(a,b){b&&(b=b.replace(/<[^>]*>?/g,""),a.We(b))}
f.In=function(){this.ya.style.textAlign=this.Ea.textAlign;this.Aa.style.backgroundColor=this.Ea.backgroundColor;this.Aa.style.color=this.Ea.foregroundColor;this.Aa.style.opacity=this.Ea.Hn;this.Aa.style.fontFamily=this.Ea.Ls;this.Aa.style.fontSize=this.Ea.mD;1==this.Ea.Qe?this.Aa.setAttribute("dir","rtl"):this.Aa.removeAttribute("dir")};f.toString=function(){var a="Caption window ("+this.id+"): "+this.gh,b;for(b in this.Ea)a+=b+" "+this.Ea[b]+" | ";return a};
function LC(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.Lj=function(){this.Sc=[];this.We("")};function NC(){this.o=20971520;this.k=8388608;this.g=5242880;this.ra=NaN;this.A=this.C=2;this.N=25;this.F=2097152;this.b=!0;this.j=1800;this.P=this.L=!1;this.B=1.15;this.ai=po.auto;this.M=!0;this.V=mr("xboxone");this.D=0;this.T=this.I=this.O=!1};function OC(){this.ba=[]}OC.prototype.contains=function(a){a=zb(this.ba,a);return 0<=a||0>a&&1==(-a-1)%2};OC.prototype.length=function(){return this.ba.length/2};function PC(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=QC();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function RC(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 QC(){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 SC(){this.g=[];this.j=[]};function TC(a){this.b=a.ud;this.k=a.priority;this.uc=a.uc||this.uc}TC.prototype.b=0;TC.prototype.k=0;TC.prototype.uc=0;TC.prototype.toString=function(){return this.b+", "+this.uc};function UC(a){TC.call(this,a);this.fe=a.text||this.fe;this.Ui=a.windowId||this.Ui;this.Ij=a.params.append||this.Ij;this.Vs=a.params.row||this.Vs;this.Us=a.params.oD||this.Us}w(UC,TC);f=UC.prototype;f.fe="";f.Ij=!1;f.Vs=0;f.Us=0;f.Ui=0;f.toString=function(){return this.b+", "+this.uc+": "+this.fe};
function VC(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={ud:c,uc:d,text:b,windowId:e,priority:5,params:{}};a.getAttribute("r")&&(b.params.row=parseInt(a.getAttribute("r"),10));a.getAttribute("c")&&(b.params.oD=parseInt(a.getAttribute("c"),10));
a.getAttribute("append")&&(b.priority=6,b.params.append=!0);return new UC(b)}function WC(a){TC.call(this,a);this.id=a.windowId||this.id;this.params=a.params}w(WC,TC);WC.prototype.id=0;WC.prototype.params=null;WC.prototype.j="";WC.prototype.g=!1;function XC(){return new WC({ud:-2147483648,uc:4294967295,params:nC})};function YC(a){SC.call(this);this.j.push(XC());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=VC(a[b]);this.g.push(d)}}w(YC,SC);function ZC(a){SC.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.uc>=h?g.uc=h:g=null);switch(d.getAttribute("op")){case "kill":d=null;break t;case "define":g=null}g?g.o=!0:g=XC();var k={};sa(k,g?g.params:
nC);d.getAttribute("id")&&(k.id=d.getAttribute("id"));d.getAttribute("op")&&(k.HE=d.getAttribute("op"));d.getAttribute("rc")&&(k.yd=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(k.km=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.bj=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(k.ee=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=mC[parseInt(d.getAttribute("ju"),10)]);d.getAttribute("pd")&&(k.Qe=1,0==parseInt(d.getAttribute("pd"),10)&&(k.Qe=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.Tl=parseInt(d.getAttribute("sd"),
10));g=parseInt(d.getAttribute("d"),10)||1E3*parseFloat(d.getAttribute("dur"))||2147483647;d={ud:h,uc:g,params:k,windowId:parseInt(d.getAttribute("id"),10)};d=new WC(d)}else d=null}this.b[e]=d;this.j.push(d);break;case "text":e=VC(a[b]),this.g.push(e),d=e.Ui,this.b[d]&&(d=this.b[d],e=e.fe,""!=d.j&&(d.g=!0),d.j+=e)}}w(ZC,SC);function $C(){SC.call(this)}w($C,SC);function aD(a){this.b=a.languageCode;this.ri=a.languageName||null;this.Nk=a.languageOriginal||null;this.id=a.id||null;this.g=a.is_default||!1}aD.prototype.toString=function(){return this.b+"_"+this.ri+"_"+this.Nk+"_"+this.id+"_"+this.g};function bD(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.ta=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 aD(a.translationLanguage))}
function cD(a){var b={format:a.o,languageCode:a.g,languageName:a.A,displayName:fC(a),kind:a.j,name:a.k,id:a.ta,is_servable:a.I,is_default:a.B,is_translateable:a.C};a.b&&(a=a.b,b.translationLanguage={languageCode:a.b,languageName:a.ri,languageOriginal:a.Nk,id:a.id,is_default:a.g});return b}function fC(a){var b=[a.A];if("asr"==a.j){var c=Xe("YTP_ASR_SETTINGS_LABEL");b.push(" (",c,")")}a.k&&b.push(" - ",a.k);a.b&&b.push(" >> ",a.b.ri);return b.join("")}
bD.prototype.toString=function(){var a=[this.g,": ",this.k," (",this.j,")"];this.b&&a.push(" >> ",this.b.b);return a.join("")};bD.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 dD(a,b){SC.call(this);this.j.push(XC());for(var c=a.split(eD),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(fD))e=null;else{var h=e.split(gD),k=0,l=h[k++].match(hD);l||(l=h[k++].match(hD));l?(e=iD(l[1],g),g=iD(l[3],g),h=h.slice(k).join("\n"),e=new UC({ud:e,uc:g-e,text:h,windowId:0,priority:5,params:{}})):e=null}e&&this.g.push(e)}}w(dD,SC);var fD=/NOTE/,eD=/[\r\n|\r|\n]{2,}/,gD=/\r\n|\r|\n/,hD=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function iD(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 jD(a,b){this.b=[];this.g=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new dD(a,b||0):(c=PC(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new $C:new ZC(c):new YC(c):null:null;c&&(this.g=c.j,this.b=c.g)};function kD(a,b){this.va=a;this.W=b;this.A=new OC;this.k=!0;this.B=this.j=this.o=this.b=null;this.g=0}w(kD,Hh);kD.prototype.J=function(){Ue(this.g);this.g=0;this.k=!0};kD.prototype.resume=function(){this.k=!1;Ue(this.g);this.seek(this.W.getCurrentTime());lD(this)};kD.prototype.seek=function(a){this.b=db(this.B.xi(a).b)};function mD(a,b){a.o=b}function nD(a){var b;if(b=!a.k&&null!==a.b)b=a.b,b=b.b.zg(b);return b&&!a.j&&!(a.b&&30<a.b.startTime-a.W.getCurrentTime())}
function oD(a){var b;b=a.b;b=To(b.b,b);if(!a.A.contains(b.b[0].k)){Gi(Qo(b),{format:"RAW",vb:u(a.C,a),withCredentials:!0});a.j=b;var c=a.A,d=a.j.b[0].k,e=zb(c.ba,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ba[e-1]&&e<c.ba.length&&1==c.ba[e]-d?(rb(c.ba,e),rb(c.ba,e-1)):0<e&&1==d-c.ba[e-1]?c.ba[e-1]=d:e<c.ba.length&&1==c.ba[e]-d?c.ba[e]=d:(wb(c.ba,e,0,d),wb(c.ba,e+1,0,d)))}a.b=db(b.b)}
kD.prototype.C=function(a){null==a.responseText||400<=a.status||this.k||null===this.o||(a=new jD(a.responseText,1E3*this.j.b[0].startTime),this.o(a));this.j=null};function lD(a){a.g=Te(u(function(){nD(this)&&oD(this)},a),1E3);nD(a)&&oD(a)};function pD(){this.j=[];this.g=[];this.b=-1}function qD(a,b){return b?a.g.concat(a.j):a.g}function rD(a,b){switch(b.j){case "asr":return sD(b,a.j);default:if(b.B||0>a.b)a.b=a.g.length;return sD(b,a.g)}}function sD(a,b){return B(b,u(a.equals,a))?!1:(b.push(a),!0)};function tD(a){this.nq=!!a;this.b=new pD;this.A=[]}function uD(a,b){return B(qD(a.b,!0),function(a){return a.toString()==b})}tD.prototype.seek=function(){};tD.prototype.B=function(){};function vD(a,b){tD.call(this);this.j=a;this.g=new kD(new NC,b)}w(vD,tD);vD.prototype.k=function(a,b){mD(this.g,function(c){b(c,a)});this.g.B=this.j.b[a.g];this.g.resume()};vD.prototype.o=function(a){rD(this.b,new bD({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};vD.prototype.seek=function(a){this.g.seek(a)};vD.prototype.B=function(){var a=this.g;Ue(a.g);a.g=0;a.k=!0};function wD(a,b){JC.call(this,a,b);this.Aa.style.display="block";this.Aa.style.padding="0";this.Yb=[];var c=this.Aa;P(c,"captions-text");O(c,"caption-painton-text-rows")}w(wD,JC);f=wD.prototype;f.type=0;f.sq="";f.dh=!1;f.Lb=null;f.Yb=null;f.Gj=function(){return this.Yb[0]?this.Yb[0].offsetHeight:0};function xD(a){return a.Yb.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
f.Ze=function(){0!=this.id&&(Wf(this.ya,"100%"),Wf(this.ya,this.dh?xD(this):this.Lb.width));var a=Math.round(this.Ea.yd*this.Gj());this.ya.style.maxHeight=a+"px";KC(this);xx(this.ya,this.Ea.isVisible)};
f.We=function(a){this.Lj();a=LC(a);this.dh||(this.gh=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.dh||(this.Aa.style.height=this.Lb.height+"px",this.Aa.style.width=this.Lb.width+"px",d.style.position="absolute",d.style.top=this.Lb.rq[b]+"px",d.style.left=this.Lb.qq[b]+"px");this.Aa.appendChild(d);this.Yb.push(e)}this.In();this.Ze()};
f.Lj=function(){for(var a=0,b=this.Yb.length;a<b;a++){var c=td(this.Yb[a],"caption-row-holder");dd(c)}this.Yb=[]};f.In=function(){this.ya.style.textAlign=this.Ea.textAlign;for(var a=0,b=this.Yb.length;a<b;a++)this.Yb[a].style.backgroundColor=this.Ea.backgroundColor;this.Aa.style.color=this.Ea.foregroundColor;this.Aa.style.opacity=this.Ea.Hn;this.Aa.style.fontFamily=this.Ea.Ls;1==this.Ea.Qe?this.Aa.setAttribute("dir","rtl"):this.Aa.removeAttribute("dir")};function yD(a,b){JC.call(this,a,b);this.Sc=[];this.ne=[];this.Nb=[];this.cg=new Lk(433);this.cg.stop();R(this.cg,"tick",u(this.DD,this))}w(yD,JC);f=yD.prototype;f.type=2;f.qD=32;f.Nb=null;f.oe=0;f.ne=null;f.cg=null;f.Ze=function(){Wf(this.ya,"100%");var a=this.ya.offsetWidth,a=Math.min(zD(this),a);Wf(this.ya,a+"px");Wf(this.Kj,"100%");this.Aa.style.whiteSpace="nowrap";KC(this);xx(this.ya,this.Ea.isVisible)};
f.nr=function(a){var b=a.length;if(0>=b)this.Lj();else{for(var c=0;c<b&&0<=this.Sc.indexOf(a[c]);)c++;this.Sc=this.Sc.concat(a.slice(c));AD(this)}};f.Lj=function(){this.Sc=[];this.Nb=[];this.oe=0;this.Nb=[];this.ne=[];BD(this)};
function AD(a){if(!CD(a))if(a.oe>=a.Sc.length)BD(a);else{var b=a.Nb.length-1;0>b&&(a.ne.push(0),a.oe=0,a.Nb.push(""),b=0);for(var c=a.Sc.length,d=a.oe;d<c;d++){var e=a.Sc[d];if("\n"==e.fe){a.oe++;a.ne[b]++;break}if(e.Ij||0==a.Nb[b].length)a.Nb[b]+=e.fe,a.oe++,a.ne[b]++;else break}BD(a);d<c&&!CD(a)&&(b=a.Gj(),O(a.Aa,"caption-rollup"),a.ya.style.overflow="hidden",a.Aa.style.top=-b+"px",a.cg.start())}}function CD(a){return a.cg.ed||ng(a.Aa,"caption-rollup")}
f.DD=function(){this.ya.style.overflow="visible";this.Aa.style.top=0;this.cg.stop();P(this.Aa,"caption-rollup");this.Nb.push("");this.ne.push(0);AD(this)};function BD(a){if(!CD(a)){for(;a.Nb.length<a.Ea.yd;)a.Nb.unshift(""),a.ne.unshift(0);for(;a.Nb.length>a.Ea.yd;){a.Nb.shift();var b=a.ne.shift();0<b&&(a.oe-=b,a.Sc.splice(0,b))}a.We(a.Nb.join("\n"))}}
function zD(a){a.Ob.style.fontFamily=a.Aa.style.fontFamily;a.Ob.style.fontSize=a.Aa.style.fontSize;a.Aa.appendChild(a.Ob);a.Ob.innerHTML="\u2014";var b=a.Ob.offsetWidth;a.Ob.innerHTML="&nbsp;";b=2*a.Ob.offsetWidth+b*a.qD;a.Aa.removeChild(a.Ob);return b};function DD(a,b,c,d){tD.call(this,d);c||(c=wi(a).hl||"",c=c.split("_").join("-"));this.g=zi(a,{hl:c});this.j=b;this.C={}}w(DD,tD);DD.prototype.k=function(a,b){var c=ED(this,a);Gi(c,{format:"RAW",onSuccess:function(c){c=new jD(c.responseText);b(c,a)},withCredentials:!0})};
DD.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.nq&&(b.asrs=1);d=zi(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"),r=c,t=h[l].getAttribute("lang_code"),y=h[l].getAttribute("lang_translated"),D=h[l].getAttribute("name"),M=h[l].getAttribute("kind"),ea=h[l].getAttribute("id"),jb="true"==h[l].getAttribute("lang_default"),
bg="true"==h[l].getAttribute("cantran"),ax=h[l].getAttribute("vss_id"),p=new bD({formats:p,format:r,languageCode:t,languageName:y,name:D,kind:M,id:ea,is_servable:!0,is_default:jb,is_translateable:bg,vss_id:ax});rD(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"),r=b[h].getAttribute("id"),t="true"==b[h].getAttribute("lang_default"),k={languageCode:k,languageName:l,languageOriginal:p,
id:r,is_default:t},this.C[k.languageCode]=k.languageName,this.A.push(new aD(k))}a()},this);Gi(d,{format:"RAW",onSuccess:b,withCredentials:!0})};function ED(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=zi(c,d)};function FD(a){gu.call(this,a);We({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.ek=!0;this.A=this.V=!1;this.xb=new Sv(this);this.D=a.R();this.B=null;this.ca=a.app.g;this.pa={};this.da=[];this.Ha=0;this.C={};this.U={};this.la=this.Ba=this.za=this.wa=!1;this.xa=new JC(99,pC);this.j=this.k=this.I=null;this.Ca=!1;this.P=this.L=0;this.O=new DC(uu(this),"ytp-subtitles-button",Y(uu(this),"YTP_SUBTITLES"),"ytp-subtitles-button-active");
this.O.listen("click",this.gx,this);IA(this.O,6500);this.F=new iC(uu(this));S(this,this.F);LA(this.F.element,1);this.F.listen("change",this.qx,this);this.F.listen("select",this.rx,this);this.o=new dC(uu(this));S(this,this.o);this.o.listen("change",this.Wp,this);this.o.listen("select",this.fx,this);hC(this.o,!1);this.N=new vC(uu(this));S(this,this.N);this.N.listen("change",u(this.ve,this,!0));this.N.listen("cancel",this.bx,this);this.N.listen("select",this.Yp,this);this.T=new zC(uu(this));S(this,this.T);
this.T.listen("change",this.lx,this);this.T.listen("cancel",this.pg,this);this.subscribe("onResize",u(this.ko,this));this.subscribe("onBackgroundChange",u(this.mx,this));this.subscribe("onTextOpacityChange",u(this.nx,this));this.subscribe("onWindowOpacityChange",u(this.ox,this));this.subscribe("onFontSizeIncrease",u(this.kx,this));this.subscribe("onFontSizeDecrease",u(this.jx,this));this.subscribe("onShowControls",u(this.ix,this));this.subscribe("onHideControls",u(this.hx,this));"detailpage"==this.D.$&&
(a=H("captions-account-settings-link",qt(a)))&&zx(a)}w(FD,gu);FD.prototype.ua="captions";FD.prototype.hc="cc";FD.prototype.nn="subtitlesModuleData";FD.prototype.Ia=1;var GD={background:"#080808",backgroundOpacity:1,charEdgeStyle:"uniform",color:"#fff",fontFamily:'"Arial Unicode Ms", Arial',fontFamilyOption:"propSans",fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};function HD(a){return a.D.Qb?!!a.ca.b.textTracks:!1}f=FD.prototype;
f.create=function(){FD.G.create.call(this);this.B=this.b.getVideoData();-1==qC.indexOf(this.D.U)&&O(qt(this.b),"cc-international");this.g=$b(GD);sa(this.g,nu(this,"display-settings"));yC(this.N,this.g);HD(this)||(this.H("module_menu_button_add",this.ua,this.O),vu(this,this.F));var a;1==this.D.j.cc_load_policy||1==this.B.Sn||"alwayson"==Vr(this.B,"yt:cc")||HD(this)?a=!0:(a=nu(this,"module-enabled"),a=null!=a?!!a:"on"==Vr(this.B,"yt:cc")||this.D.j.cc_prefer_on);a&&this.load()};
function ID(a){wu(a,a.o);wu(a,a.F);a.H("module_menu_button_remove",a.ua)}f.destroy=function(){ID(this);FD.G.destroy.call(this)};function JD(a){a.k.o(u(a.xC,a),!0,HD(a)?"vtt":void 0)}
f.load=function(){this.la="alwayson"==Vr(this.B,"yt:cc");this.Ba="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&&(FD.G.load.call(this),this.V=!1,HD(this)||(this.ve(),this.ko()));else{this.V=!0;this.A=!1;if(this.B.ib)this.k=new vD(this.B.j,this.b),this.subscribe("seekto",this.bq,this);else{var a=this.B.k.cc_lang_pref||this.D.j.cc_lang_pref||Vr(this.B,"yt:cc_default_lang")||this.D.A,a=a&&a.split("_").join("-");
this.k=new DD(this.B.Mf,this.B.videoId,a,this.B.Rl)}JD(this)}};f.unload=function(){this.nc&&(KD(this,!1),this.Jl("control_subtitles_set_track"));if(HD(this)){var a;a=Nc("track",void 0,void 0);for(var b=0;b<a.length;b++)dd(a[b])}else LD(this,!1),MD(this),this.ja("seekto",this.bq,this),this.k=null,this.pg();this.za=this.V=!1;this.A&&(this.A=!1,FD.G.unload.call(this))};f.log_=function(){};
f.xC=function(){if(this.k)if(this.V=!1,HD(this)){for(var a=this.ca.b,b=this.k,c=[],d=qD(b.b,void 0),e=0;e<d.length;e++){var g=d[e],h=ED(b,g),h={kind:"subtitles",label:g.k,srclang:g.g,src:h};g.B&&(h["default"]=1);c.push(I("track",h))}Ot(a,c)}else a=this.T,b=this.k.A,$B(a.g,b),b.length?AC(a,b[0]):AC(a,null),a=qD(this.k.b,!0),0<a.length?(this.log_("Caption track list loaded, found "+a.length+" tracks."),vu(this,this.o),eC(this.o,a),b=this.k.b.b,(a=a[b]&&a[b].toString())&&gC(this.o,a),b=this.k,a=b.b.b,
b=qD(b.b,!0),(a=0>a?null:b[a])?(this.wa=!0,ND(this,a)):this.A||(this.A=!0,this.load(),a=this.k.b.j,a.length&&(a=a[0].toString(),gC(this.o,a),(this.za||this.Ba)&&OD(this,a))),this.H("publish_external_event","onCaptionsTrackListChanged")):(this.log_("No captions found."),ID(this),this.unload())};f.Vw=function(a,b){this.k&&(this.A||(this.A=!0,this.load()),this.wa&&(this.wa=!1,this.H("publish_external_event","onCaptionsTrackListChanged")),!b||this.j&&b.equals(this.j)||PD(this,b),QD(this,a.g.concat(a.b)))};
function PD(a,b){MD(a);a.j=b;a.Ca=Zw.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);MC(a.xa,fC(b));ju(a,a.xa.ya);a.P||(a.P=L(u(a.Dw,a),0));a.H("publish_external_event","captionschanged",cD(b));HC(a.O,"ytp-subtitles-button-active");LA(a.F.element,0);hC(a.o,!0);ou(a,"module-enabled",!0);a.H("vss_segment")}
function QD(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 Xt(a.b,a.b+a.uc,{id:b}));this.pa[b]=a},a);a.Hf.apply(a,c)}f.Ec=function(a){if(a=RD(this,a))this.da.push(a),this.L||(this.L=L(u(this.kj,this),0))};f.ld=function(a){if(a=RD(this,a))qb(this.da,a),this.L||(this.L=L(u(this.kj,this),0))};function RD(a,b){var c=b.getId();return 0!=c.indexOf("caption")?null:a.pa[c]}
f.fA=function(a){if(a instanceof WC){var b=this.C[a.id];sa(a.params,this.g);b&&b.type!=(a.params.Tl?2:a.g?0:1)&&(dd(b.ya),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.Tl?2:a.g?0:1){case 0:d=new wD(d,e);break t;case 2:d=new yD(d,e);break t;default:d=new JC(d,e)}}b[c]=d;b=this.C[a.id].ya;Q(b,"captions-asr","asr"==this.j.j);null!=a.params.Qe&&(a.params.Qe=this.Ca?1:0);0==this.C[a.id].id?(O(b,this.ua),cd(this.b.app.g.F,b,0)):ju(this,b)}sa(this.C[a.id].Ea,
a.params);if(0==(a.params.Tl?2:a.g?0:1)){b=this.C[a.id];b.sq=a.j;b.Lb={};b.dh=!0;b.We(b.sq);b.Lb.yd=b.Yb.length;b.Lb.width=b.ya.offsetWidth;b.Lb.height=b.ya.offsetHeight;b.Lb.qq=[];b.Lb.rq=[];for(a=0;a<b.Lb.yd;a++)b.Lb.rq.push(b.Yb[a].offsetTop),b.Lb.qq.push(b.Yb[a].offsetLeft);b.dh=!1;b.We(b.gh)}}else b=a.Ui,this.U[b]||(this.U[b]=[]),this.U[b].push(a)};f.ko=function(){this.A&&(this.Ia=SD(this.ca).height/360,this.ve(),Mb(this.C,function(a){a.Ze()},this))};
function TD(a){var b=[];Mb(a.C,function(a){a instanceof wD&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.Ea.ee-a.Ea.ee});var c=SD(a.ca).height,d=b[0].Ea.ee;z(b,function(a){a.Ea.ee=d;var b=Math.round(a.Ea.yd*a.Gj());d-=Math.round(b/c*100);a.Ze()},a)}}f.Dw=function(){this.P=0;dd(this.xa.ya)};
f.kj=function(){this.L=0;this.A&&(Yb(this.U),this.da.sort(function(a,b){return a.b==b.b?a.k-b.k:a.b-b.b}),z(this.da,this.fA,this),Mb(this.C,function(a,b){this.U[b]?a.nr(this.U[b]):(dd(a.ya),delete this.C[b])},this),TD(this),this.I&&this.I.Ze(),this.log_("Refreshing caption display..."))};function UD(a,b){var c=H(a).querySelectorAll("."+b+" input[type=radio]"),d=nb(c,function(a){return a.checked}),d=(-1==d?1:d+1)%c.length;c[d].click()}f.mx=function(){UD("captions-settings-background-opacity","captions-settings-background-opacity-radio")};
f.nx=function(){UD("captions-settings-text-opacity","captions-settings-text-opacity-radio")};f.ox=function(){UD("captions-settings-window-opacity","captions-settings-window-opacity-radio")};f.ix=function(){var a=this.C[0];a&&a.ya&&(a=a.ya,P(a,"controls-hidden"),O(a,"controls-visible"))};f.hx=function(){var a=this.C[0];a&&a.ya&&(a=a.ya,ng(a,"controls-visible")&&(P(a,"controls-visible"),O(a,"controls-hidden")))};f.jx=function(){VD(this,-1)};f.kx=function(){VD(this,1)};
function VD(a,b){var c=a.g.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.g.fontSizeIncrement=c;a.ve()}function WD(a,b){var c=H(b);c&&(c.querySelector('input[value="'+a.toFixed(1)+'"]').checked=!0)}function XD(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],ld(b,d.options[d.selectedIndex].text))}
function MD(a){a.j&&(a.j=null,hu(a),a.da=[],a.pa={},a.j=null,a.kj(),HC(a.O,"ytp-subtitles-button"),LA(a.F.element,1),hC(a.o,!1),a.k.B())}function OD(a,b){var c=uD(a.k,b);ND(a,c);a.log_("Caption change failed for "+b)}
function ND(a,b){if(b&&(!a.j||!b.equals(a.j)))if(a.nc)a.j=b,KD(a,!0),a.Jl("control_subtitles_set_track",cD(b)),a.A||(a.A=!0,a.load());else if(a.D.b.Ba){var c=a.ca.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=zi(d.g,e);g.mode="showing";g.setAttribute("kind","captions");g.setAttribute("default","");Ot(c,[g]);PD(a,b)}else a.k.k(b,u(a.Vw,a)),a.V=!0}
f.lx=function(){if(!this.la){this.pg();var a=this.T.getSelected();if(a){var b=this.j,c=new bD;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;rD(this.k.b,c)&&(a=c.toString(),vu(this,this.o),eC(this.o,qD(this.k.b,!0)),gC(this.o,a));ND(this,c)}}};f.bx=function(){this.pg();this.nc&&this.j&&this.Jl("control_subtitles_set_track",cD(this.j))};f.Yp=function(){delete this.g;this.g=$b(GD);yC(this.N,this.g);ou(this,"display-settings",this.g);this.ve()};
f.ve=function(a){YD(this);var b=Zv(this.g.background),c=this.g.backgroundOpacity;this.Ra=QB(".captions-text, .caption-row","background-color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{hd:this.Ra,reset:!0});WD(c,"captions-settings-background-opacity");b=Zv(this.g.color);c=this.g.textOpacity;this.hb=QB(".captions-text","color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{hd:this.hb,reset:!0});WD(c,"captions-settings-text-opacity");b=Zv(this.g.windowColor);c=this.g.windowOpacity;this.nb=
QB(".caption-window-transform","background-color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{hd:this.nb,reset:!0});WD(c,"captions-settings-window-opacity");var b=this.g.charEdgeStyle,d=this.g.textOpacity;if("none"==b)this.ka&&RB(this.ka);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.ka=QB(".captions-text",c,{hd:this.ka,reset:!0})}XD(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.cb=
QB(".captions-text",c+"font-family: "+b+" !important;",{hd:this.cb,reset:!0});this.g.fontFamily=b;XD(this,"captions-settings-font-family","fontFamilyOption");b="font-size: "+Math.round(16*(1+.25*(this.g.fontSizeIncrement||0))*this.Ia)+"px;";this.fb=QB(".caption-window-transform",b,{hd:this.fb,reset:!0});this.kj();n(a)&&!a||ou(this,"display-settings",this.g)};
function YD(a){var b=[],c=u(function(a){var c=this.g[a];c&&b.push(a+": "+c+" !important")},a);c("color");c("background");c={hd:a.Wa,reset:!0};a.Wa=QB(".captions-text",b,c);var d=Zv(a.g.windowColor),c={hd:a.gb,reset:!0};a.gb=QB(".caption-window-transform","background-color: rgba("+d[0]+","+d[1]+","+d[2]+", 1)",c)}f.gx=function(){this.A||this.load()};
f.qx=function(){var a=0==this.F.getSelected();this.A&&!a?(this.unload(),ou(this,"module-enabled",!1),xu(this),this.H("vss_segment")):!this.A&&a?(this.za=!0,this.load()):this.o.D&&this.Wp()};f.rx=function(){ku(this,this.N);xu(this)};f.Wp=function(){OD(this,this.o.D)};f.fx=function(){this.o.F?this.la||ku(this,this.T):lu(this,this.D.rb+"timedtext_video?v="+this.B.videoId);xu(this)};function ZD(a){return FD.prototype.Ja(a)?new FD(a):null}
f.Fj=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.g.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.ve()),this.g.fontSizeIncrement;case "reload":b&&JD(this);break;case "stickyLoading":this.D.zb()&&ou(this,"module-enabled",!!b);break;case "track":if(b){if(!la(b))break;var c=new bD(b);c.equals(this.j)||(ND(this,c),gC(this.o,c.toString()))}else return this.j?cD(this.j):{};return"";case "tracklist":return this.A?A(qD(this.k.b,b&&b.includeAsr),function(a){return cD(a)}):[];case "displaySettings":return b&&
la(b)&&$D(this,b),c=$b(this.g),delete c.fontFamily,c;case "sampleSubtitles":LD(this,!!b)}};function LD(a,b){if(b&&!a.I){a.I=new JC(98,oC);var c=a.I.ya;O(c,a.ua);cd(a.b.app.g.F,c,0);MC(a.I,Y(uu(a),"YTP_SAMPLE_SUBTITLES"))}else!b&&a.I&&(dd(a.I.ya),a.I=null)}f.Bj=function(){var a="reload fontSize track tracklist displaySettings sampleSubtitle".split(" ");this.D.zb()&&a.push("stickyLoading");return a};var aE=/^#(?:[0-9a-f]{3}){1,2}$/i;f=FD.prototype;f.vn=function(a,b){return a&&s(a)&&aE.test(a)?a:b};
f.wn=function(a,b){return ja(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.lC=function(a,b){return a&&s(a)&&Tb(lC,a)?a:b};f.mC=function(a,b){return a&&s(a)&&Tb(kC,a)?a:b};f.nC=function(a,b){return ja(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var bE=null;
function $D(a,b){if(b)if(Zb(b,"reset"))a.Yp();else{if(!bE){var c={};c.color=a.vn;c.textOpacity=a.wn;c.background=a.vn;c.backgroundOpacity=a.wn;c.windowColor=a.vn;c.windowOpacity=a.wn;c.charEdgeStyle=a.lC;c.fontFamilyOption=a.mC;c.fontSizeIncrement=a.nC;bE=c}var c=bE,d;for(d in c)a.g[d]=c[d](b[d],a.g[d]);a.ve(cE(a.D))}}f=FD.prototype;f.Ja=function(a){return!!a.getVideoData().Mf};f.Hi=function(a){a?(a=this.j,MD(this),this.j=a):(KD(this,this.A),this.j&&ND(this,this.j))};
function KD(a,b){b?(HC(a.O,"ytp-subtitles-button-active"),LA(a.F.element,0)):(HC(a.O,"ytp-subtitles-button"),LA(a.F.element,1))}f.bq=function(){this.k.seek(this.b.getCurrentTime())};f.$g=function(){var a=this.j;return a?{cc:a.D}:null};f.J=function(){this.xb.removeAll();this.L&&(N(this.L),this.L=0);this.P&&(Ue(this.P),this.P=0);FD.G.J.call(this)};function dE(a){gu.call(this,a);this.ua="ypc_license_checker";this.hc="ypc_license";this.A=!1;this.o=0;this.k=!1;this.g=NaN;this.C=gq();this.B=a.R().rb+"ypc_license_server";this.j=null}w(dE,gu);
var eE={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 fE(a){return as(a.getVideoData(),"ypc_license_checker_module")}f=dE.prototype;f.Ja=function(){return fE(this.b)};f.create=function(){dE.G.create.call(this);var a=new Xt(1E3,2147483646,{priority:0});this.Hf(a);this.subscribe("heartbeatparams",this.gD,this);this.subscribe("onStateChange",this.hD,this)};function gE(a){return fE(a)?new dE(a):null}f.Ec=function(){this.A=!0;hE(this,6E4)};f.gD=function(a){this.j=a;hE(this,6E4)};
f.hD=function(a){W(a.state,2)?(this.o=0,this.g&&(N(this.g),this.g=NaN),this.k=!1):(W(a.state,1)||W(a.state,8))&&hE(this,6E4)};function hE(a,b){if(!a.g&&a.A){var c=a.b.getVideoData();if(!Ur(c)||a.j)if(Ur(c)||!cE(a.b.R()))c=b,void 0==c&&(c=a.k?a.j?1E3*a.j.b:6E4:1E3),a.g=L(u(a.tx,a),c)}}
f.tx=function(){var a,b,c,d=this.b.getVideoData();Ur(d)?(b="GET",a={},c=Xd(this.j.url,{request_id:gq()}),d.C&&(c=Xd(c,{vvt:d.C})),d.B&&(c=Xd(c,{access_token:d.B}))):(b="POST",a={video_id:d.videoId,player_id:this.C,request_id:gq(),purchase_id:d.Aw,version:"4",player_time_seconds:this.b.getCurrentTime().toString(),gid:d.nf,ypc_token:d.lf},d.C&&(a.vvt=d.C),d.B&&(a.access_token=d.B),c=this.B);c=Xd(c,{cpn:d.Da});Gi(c,{format:"RAW",method:b,gd:a,timeout:3E4,onSuccess:u(this.oA,this),onError:u(this.nA,this),
jh:u(this.pA,this),withCredentials:!0})};f.oA=function(a){if(this.g){a=a.responseText;var b;t:{b=a;var c=b.match(iE);if(c){if("0"!=c[1]){b=1;break t}b=c[3]}b=b in eE?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?jE(this,"decode"):(this.o=0,this.g=NaN,1==b?(this.k=!1,b="YTP_ERROR_LICENSE",(c=a.match(iE))?(a=parseInt(c[1],10))&&(b=Au(a)):a in eE&&(b=eE[a]),a=Xe(b),Nv(this.b.app.j,"heartbeat",a,void 0)):(this.k=!0,hE(this)))}};f.nA=function(a){jE(this,"net-"+a.status)};f.pA=function(){jE(this,"timeout")};
function jE(a,b){if(a.g)if(a.log({errorType:b}),a.g=NaN,5<++a.o){var c=Xe("YTP_ERROR_LICENSE");Nv(a.b.app.j,"heartbeat",c,void 0)}else hE(a)}var iE=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([^]*)$/;function kE(){this.b=[];this.g=[]}da(kE);var lE=q("yt.player.utils.VideoTagPool.instance_")||kE.getInstance();ba("yt.player.utils.VideoTagPool.instance_",lE,void 0);kE.prototype.j=function(a){if(!(this.b.length>=a)){a-=this.b.length;for(var b=0;b<a;b++){var c=mE(this);this.b.push(c)}}};function mE(a,b){var c=document.createElement("video");sa(c,Gt);R(c,"loadeddata",u(c.vC,c));R(c,"volumechange",u(c.wC,c));jh&&6<=Cq&&R(c,"webkitbeginfullscreen",u(c.play,c));b||Ht(c);a.g.push(c);return c}
kE.prototype.A=function(a){return this.b.length?this.b.pop():mE(this,a)};kE.prototype.o=function(a){a&&C(this.g,a)&&(Mt(a),Sg(a),qb(this.g,a))};kE.prototype.k=function(a){return this.b.length>=(a||1)};kE.prototype.fillPool=kE.prototype.j;kE.prototype.getTag=kE.prototype.A;kE.prototype.releaseTag=kE.prototype.o;kE.prototype.hasTags=kE.prototype.k;var nE={II:"0",KI:"1",mE:"2",EI:"3"};function oE(){X.call(this,["div",["html5-bezel","html5-center-overlay"],["div","{{icon}}"]]);this.b=NaN;this.hide()}w(oE,X);oE.prototype.g=function(){O(this.element,"html5-bezel-fade");this.b=L(u(this.hide,this),300)};oE.prototype.hide=function(){oE.G.hide.call(this);pE(this)};oE.prototype.setIcon=function(a){Bv(this.template,"icon",a)};oE.prototype.show=function(a){pE(this);a&&this.setIcon(a);oE.G.show.call(this)};function pE(a){N(a.b);P(a.element,"html5-bezel-fade")};function qE(a){X.call(this,a);this.T=new $i;S(this,this.T)}w(qE,X);qE.prototype.subscribe=function(a,b,c){return this.T.subscribe(a,b,c)};qE.prototype.ja=function(a,b,c){return this.T.ja(a,b,c)};qE.prototype.Ib=function(a){return this.T.Ib(a)};qE.prototype.H=function(a,b){return this.T.H.apply(this.T,arguments)};function rE(){this.g=this.b=null}function Y(a,b,c){return Xe(b,c,void 0)}f=rE.prototype;f.Og=function(a,b){this.b&&this.b.Og(a,b)};f.Bf=function(a,b,c){this.b&&this.b.Bf(a,b,c)};f.jn=function(a){this.b&&this.b.jn(a)};f.Vc=function(){return this.g.Vc()};f.Fb=function(){return this.g.Fb()};function sE(a){X.call(this,["span"]);this.element.innerHTML=a}w(sE,X);function tE(a,b){X.call(this,["span","","{{sparkline_container}}"]);this.j=a;this.g=b;this.b=new sE("");S(this,this.b);Bv(this.template,"sparkline_container",this.b)}w(tE,X);function uE(){X.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 tE(200,14);S(this,this.b);Bv(this.template,"bandwidth_sparkline",this.b)}w(uE,X);
uE.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)};uE.prototype.J=function(){this.g=null;uE.G.J.call(this)};function vE(a){qE.call(this,["div","html5-video-player",{tabindex:-1}]);this.app=a;this.g=this.Wa=null;this.L=new xf(0,0,0,0);this.b=null;this.pa=new xf(0,0,0,0);this.F=this.N=null;this.hb=this.ac=0;this.ca=null;this.U=0;this.za=null;a=a.R();this.xb=df()||"blazer"==a.ob;this.cb=0;this.A=null;this.j=new rE;this.Vg()}w(vE,qE);f=vE.prototype;
f.Vg=function(){this.app.subscribe("initializingmode",this.bE,this);this.app.subscribe("videoplayerreset",this.dE,this);this.app.subscribe("videodatachange",this.cE,this)};
f.initialize=function(a){this.Wa=Lc(a);this.element.setAttribute("id",this.app.O.attrs.id);rg(this.element,"version",this.app.O.assets.js);this.element.style.display="none";this.X(this.Wa);We({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_LARGE_PLAYER:"Large player",
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_SMALL_PLAYER:"Small player",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.Ks()};f.Ks=function(){this.H("templateready")};f.bE=function(){this.pa=new xf(0,0,0,0);this.L=new xf(0,0,0,0)};f.addClass=function(a){og(this.element,arguments)};f.removeClass=function(a){pg(this.element,arguments)};
f.Qg=function(){this.Vl();var a=this.app.R();this.addClass("el-"+a.$);this.addClass("ps-"+a.ob);Q(this.element,"html5-native-controls",a.Qb);Q(this.element,"html5-mobile",a.Pb);a.Pd||this.addClass("html5-chromeless");a.Tb||this.addClass("tag-pool-enabled");this.element.style.display="";a=new wv(["div","html5-video-container"]);S(this,a);a.X(this.element);this.g=a.K();this.N=new wv(["div","html5-video-content"]);S(this,this.N);this.N.X(this.g);a=new wv(["div","html5-video-controls"]);S(this,a);a.X(this.element);
this.F=a.K();this.A=new uE;this.A.X(this.element);Ny(this,this.A.g,"click",this.om);S(this,this.A);this.xb?this.ca=R(window,"resize",u(this.oh,this)):(a=$y()?u(this.IB,this):u(this.oh,this),this.ca=Te(a,250))};f.Ej=function(a){a?Ky(this.F):Ly(this.F)};f.IB=function(){this.U&&cz(this.U);this.U=bz(u(this.oh,this),0)};f.oh=function(){Kb(this.Fb(),Af(this.L))||this.Vf()};
f.Vf=function(){if(this.b){var a=this.Fb();if(!a.isEmpty()){var b=!Kb(a,Af(this.L)),c,d=wE(this),e=this.Fb();c=1;var g=xE(this),h=!1,k;g?(k=yE(this,e,d,g,!1),c=zE(new G(k.width,k.height))/zE(d),k=new xf(k.left+k.width/2*(1-1/c),k.top,k.width/c,k.height)):k=new xf(0,0,e.width,e.height);zf(this.pa,k)||(this.pa=k,Vf(this.b,Af(k)),Kf(this.b,new F(k.left,k.top)),h=!0);d=yE(this,e,d,g);zf(this.L,d)||(this.L=d,Vf(this.N.K(),d.width,d.height),Kf(this.N.K(),d.left,d.top),h=!0);Dx(this.b,"transform",1==c?"none":
"scaleX("+c+")");c=h;b&&(this.L.width=a.width,this.L.height=a.height,this.Wm(a));(c||b)&&this.H("resize")}}};f.Wm=function(){};f.Fl=function(){};f.cE=function(a,b){this.Aj(b)};f.dE=function(a){a.getVideoData()&&this.Aj(a.getVideoData())};
f.Aj=function(a){this.b&&(this.b.setAttribute("data-youtube-id",a.videoId),kr&&(a.title?this.b.setAttribute("title",a.title):this.b.removeAttribute("title")),a.Bm&&(this.b.poster=a.Bm));var b=Vr(a,"yt:bgcolor");this.g.style.backgroundColor=b?b:"";this.ac=oq(Vr(a,"yt:stretch"));a=Vr(a,"yt:crop");this.hb="fullwidth"==a?Infinity:oq(a)};f.Rg=function(){};f.sm=function(){};f.Vc=function(){return this.element?new G(this.element.clientWidth,this.element.clientHeight):new G(0,0)};
f.Fb=function(){return this.g?new G(this.g.clientWidth,this.g.clientHeight):new G(0,0)};f.ws=function(){return this.Fb()};function SD(a){return a.b?new G(a.b.clientWidth,a.b.clientHeight):new G(0,0)}function wE(a){return a.b?new G(a.b.videoWidth,a.b.videoHeight):new G(0,0)}function AE(a){return yE(a,a.Fb(),wE(a),xE(a),void 0)}
function yE(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.ac||zE(c),a=a.hb||c,d=zE(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(Lb(e)>Lb(b)?b.width/e.width:b.height/e.height));return new xf((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}function zE(a){var b=16/9;return 1>Math.abs(b*a.height-a.width)||1>Math.abs(b/a.width-a.height)?b:Lb(a)}
function xE(a){return!a.app.R().Qb&&!wE(a).isEmpty()}f.hk=function(){};function bt(a){a.A&&(a.A.show(),a.Hs(),Ue(a.cb),a.cb=Te(u(a.Hs,a),500))}
f.Hs=function(){var a=Ls(this.app),b=this.app.getVideoData(),c=this.app.ng(),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,r=Math.round(this.app.D.volume),t;t:{if(b.ue&&(t=b.ue.match(/url=(https?)/))&&2==t.length){t=t[1];break t}t=""}t=t||e.protocol;var y=this.app;if(y.wa){var D=[];y.wa.M.forEach(u(D.push,D));y=D}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:r,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=lo(b.b)?"yes":"no",g+=" ("+b.b.id,b.N&&lo(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;cE(e)&&(c.cpn=b.Da);this.A.update(c)};f.om=function(a){a&&a.stopPropagation();this.A&&(Ue(this.cb),this.A.hide())};f.Vl=function(){this.j.g=this};f.J=function(){this.ca&&(this.xb?Og(this.ca):Ue(this.ca),this.U&&cz(this.U));this.za&&Og(this.za);this.om();this.A&&Sg(this.A.g);this.F=this.N=this.b=this.g=this.Wa=null;vE.G.J.call(this)};function BE(a){X.call(this,["div","ytp-dialog-holder","{{content}}"]);this.g=a;this.b=null}w(BE,X);BE.prototype.show=function(){BE.G.show.call(this);CE(this)};function CE(a){if(a.b){a.b.A();var b=a.g.Vc(),c=Xf(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"}}BE.prototype.J=function(){this.b=null;BE.G.J.call(this)};function DE(a,b){X.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(DE,X);DE.prototype.j=function(a,b){N(this.b);this.context&&(this.b=My(u(this.j,this,a,b),b),a.call(this,new Date-this.o))};DE.prototype.J=function(){N(this.b);this.context=null;DE.G.J.call(this)};function EE(a,b){DE.call(this,a,b);this.A=null;this.B=this.C=this.k=this.g=0;O(this.element,"ytp-tv-static");FE(this,a,b)}w(EE,DE);function GE(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 FE(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=GE(b);a.B=GE(c/10);a.context.scale(1.5,1.5)}}EE.prototype.show=function(){EE.G.show.call(this);var a=this.D;this.o=new Date;this.j(a,75)};
EE.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)};EE.prototype.hide=function(){N(this.b);EE.G.hide.call(this)};function HE(){X.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==aq){var a=document.createElement("canvas");aq=!(!a.getContext||!a.getContext("2d"))}aq&&(this.b=new EE(1,1),this.b.X(this.element,0),S(this,this.b))}w(HE,X);HE.prototype.show=function(){HE.G.show.call(this);IE(this);this.b&&this.b.show()};HE.prototype.hide=function(){HE.G.hide.call(this);this.b&&this.b.hide()};
function IE(a){a.b&&FE(a.b,a.element.clientWidth,a.element.clientHeight)}HE.prototype.J=function(){Og(this.g);this.g=[];HE.G.J.call(this)};function JE(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>';
X.call(this,["div",c]);d&&(this.element.innerHTML=d)}w(JE,X);function KE(a){this.g=a||30;DE.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(KE,DE);KE.prototype.show=function(){KE.G.show.call(this);var a=this.C;this.o=new Date;this.j(a,125)};
KE.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()}};KE.prototype.hide=function(){N(this.b);KE.G.hide.call(this)};function LE(a){X.call(this,["div","ytp-thumbnail"]);this.b=a}w(LE,X);
LE.prototype.show=function(a){if(a||this.element.childNodes.length){if(a){bd(this.element);var b=this.element,c=this.b;if(null!=Cx("backgroundSize")){if(d=document.createElement("div"),b=kB(b,a,c))d.style.backgroundImage="url("+b+")"}else{var d=document.createElement("img");d.src=kB(b,a,c);a=d;b.clientWidth/b.clientHeight<jB?(a.style.height="100%",a.style.width="auto"):(a.style.height="auto",a.style.width="100%")}O(d,"video-thumbnail");this.element.appendChild(d)}LE.G.show.call(this)}};function ME(a,b,c,d,e,g,h){var k,l;if(k=c.offsetParent){var p="HTML"==k.tagName||"BODY"==k.tagName;p&&"static"==Jf(k,"position")||(l=Qf(k),p||(p=(p=Rf(k))&&qc?-k.scrollLeft:!p||pc&&Ac("8")||"visible"==Jf(k,"overflowX")?k.scrollLeft:k.scrollWidth-k.clientWidth-k.scrollLeft,l=Jb(l,new F(p,k.scrollTop))))}k=l||new F;l=$f(a);if(p=Pf(a)){var r=yf(p),p=Math.max(l.left,r.left),t=Math.min(l.left+l.width,r.left+r.width);if(p<=t){var y=Math.max(l.top,r.top),r=Math.min(l.top+l.height,r.top+r.height);y<=r&&(l.left=
p,l.top=y,l.width=t-p,l.height=r-y)}}p=Ic(a);y=Ic(c);if(p.b!=y.b){var t=p.b.body,y=vd(y),r=new F(0,0),D=Uc(Kc(t)),M=t;do{var ea=D==y?Qf(M):Sf(M);r.x+=ea.x;r.y+=ea.y}while(D&&D!=y&&(M=D.frameElement)&&(D=D.parent));t=Jb(r,Qf(t));pc&&!ud(p)&&(t=Jb(t,wd(p)));l.left+=t.x;l.top+=t.y}a=NE(a,b);b=new F(a&2?l.left+l.width:l.left,a&1?l.top+l.height:l.top);b=Jb(b,k);e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var jb;h&&(jb=Pf(c))&&(jb.top-=k.y,jb.right-=k.x,jb.bottom-=k.y,jb.left-=k.x);return OE(b,c,d,g,jb,
h,void 0)}
function OE(a,b,c,d,e,g,h){a=a.clone();var k=0,l=NE(b,c);c=Yf(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;Kf(b,a);Kb(c,h)||(a=Kc(b),e=ud(Ic(a)),!pc||e&&
Ac("8")?(b=b.style,qc?b.MozBoxSizing="border-box":rc?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?(pc?(e=eg(b,"paddingLeft"),c=eg(b,"paddingRight"),g=eg(b,"paddingTop"),d=eg(b,"paddingBottom"),e=new wf(g,c,d,e)):(e=If(b,"paddingLeft"),c=If(b,"paddingRight"),g=If(b,"paddingTop"),d=If(b,"paddingBottom"),e=new wf(parseFloat(g),parseFloat(c),parseFloat(d),parseFloat(e))),b=hg(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 NE(a,b){return(b&4&&Rf(a)?b^2:b)&-5};var PE={},QE="ontouchstart"in document;function RE(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return sd(c,function(a){return ng(a,b)},!0,d)}
function SE(a){var b="mouseover"==a.type&&"mouseenter"in PE||"mouseout"==a.type&&"mouseleave"in PE,c=a.type in PE||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=PE[b],d;for(d in c.$b){var e=RE(b,d,a.target);e&&!sd(a.relatedTarget,function(a){return a==e},!0)&&c.H(d,e,b,a)}}if(b=PE[a.type])for(d in b.$b)(e=RE(a.type,d,a.target))&&b.H(d,e,a.type,a)}}R(document,"blur",SE,!0);R(document,"change",SE,!0);R(document,"click",SE);R(document,"focus",SE,!0);
R(document,"mouseover",SE);R(document,"mouseout",SE);R(document,"mousedown",SE);R(document,"keydown",SE);R(document,"keyup",SE);R(document,"keypress",SE);R(document,"cut",SE);R(document,"paste",SE);QE&&(R(document,"touchstart",SE),R(document,"touchend",SE),R(document,"touchcancel",SE));function TE(){this.o={};this.A=[]}TE.prototype.md=function(a){return td(a,Z(this))};function Z(a,b){return"yt-uix"+(a.Ld?"-"+a.Ld:"")+(b?"-"+b:"")}function UE(a,b,c){b=Sh(b,c,a);a.A.push(b)}function VE(a,b,c,d){d=Z(a,d);var e=u(c,a);b in PE||(PE[b]=new Mh);PE[b].subscribe(d,e);a.o[c]=e}TE.prototype.b=function(a,b,c){var d=this.Y(a,b);if(d&&(d=q(d))){var e=xb(arguments,2);wb(e,0,0,a);d.apply(null,e)}};TE.prototype.Y=function(a,b){return tg(a,b)};function WE(a,b){rg(a,"tooltip-text",b)}
TE.prototype.removeData=function(a,b){ug(a,b)};function XE(){TE.call(this)}w(XE,TE);da(XE);f=XE.prototype;f.Ld="tooltip";f.Mj=0;f.register=function(){VE(this,"mouseover",this.ct);VE(this,"mouseout",this.Kn);VE(this,"click",this.Kn);VE(this,"touchstart",this.OD);VE(this,"touchend",this.ft);VE(this,"touchcancel",this.ft)};
f.ct=function(a){if(!(this.Mj&&1E3>v()-this.Mj)){var b=parseInt(this.Y(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),N(b));var b=u(function(){YE(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(this.Y(a,"tooltip-show-delay"),10)||0,b=L(b,c);rg(a,"tooltip-show-timer",b.toString());a.title&&(WE(a,ZE(this,a)),a.title="")}};
f.Kn=function(a){var b=parseInt(this.Y(a,"tooltip-show-timer"),10);b&&(N(b),this.removeData(a,"tooltip-show-timer"));b=u(function(){$E(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=L(b,50);rg(a,"tooltip-hide-timer",b.toString());if(b=this.Y(a,"tooltip-text"))a.title=b};f.OD=function(a,b,c){this.Mj=0;a=RE(b,Z(this),c.changedTouches[0].target);this.ct(a)};f.ft=function(a,b,c){this.Mj=v();a=RE(b,Z(this),c.changedTouches[0].target);this.Kn(a)};
function aF(a,b,c){WE(b,c);a=a.Y(b,"content-id");if(a=Lc(a))a.innerHTML=c}function ZE(a,b){return a.Y(b,"tooltip-text")||b.title}
function YE(a,b){if(b){var c=ZE(a,b);if(c){var d=Lc(bF(a,b));if(!d){d=document.createElement("div");d.id=bF(a,b);d.className=Z(a,"tip");var e=document.createElement("div");e.className=Z(a,"tip-body");var g=document.createElement("div");g.className=Z(a,"tip-arrow");var h=document.createElement("div");h.className=Z(a,"tip-content");var k=cF(a,b),l=bF(a,b,"content");h.id=l;rg(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);(Vg()||document.body).appendChild(d);
aF(a,b,c);(c=parseInt(a.Y(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",O(h,Z(a,"normal-wrap")));h=ng(b,Z(a,"reverse"));dF(a,b,d,e,k,h)||dF(a,b,d,e,k,!h);var p=Z(a,"tip-visible");L(function(){O(d,p)},0)}}}}
function dF(a,b,c,d,e,g){Q(c,Z(a,"tip-reverse"),g);var h=0;g&&(h=1);var k=Yf(b);g=new F((k.width-10)/2,g?k.height:0);var l=Qf(b);OE(new F(l.x+g.x,l.y+g.y),c,h);var l=Qc(window),p=Uf(c);c=Yf(d);var r=Math.floor(c.width/2),h=!!(l.height<p.y+k.height),k=!!(p.y<k.height);g=!!(p.x<r);l=!!(l.width<p.x+r);p=(c.width+3)/-2- -5;a=a.Y(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 $E(a,b){if(b){var c=Lc(bF(a,b));c&&(eF(c),dd(c),a.removeData(b,"content-id"))}}function bF(a,b,c){a=Z(a)+xg(b);c&&(a+="-"+c);return a}function cF(a,b){var c=null;jc&&ng(b,Z(a,"masked"))&&((c=Lc("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),zx(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=Z(a,"tip-mask")));return c}
function eF(a){var b=Lc("yt-uix-tooltip-shared-mask"),c=b&&sd(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),Ax(b),document.body.appendChild(b))};function fF(a,b){pg(a,["html5-async-progress","html5-async-success","html5-async-error"]);b&&O(a,b);$E(XE.getInstance(),a)};function gF(a){EA.call(this);this.j=null;this.g=new ZB(a,u(this.k,this),u(this.B,this));S(this,this.g);this.b=Y(0,"YTP_AUDIO_TRACK_TITLE");this.element=new SB(a,void 0,this.g);S(this,this.element);UB(this.element,100);this.priority=0;this.o=!0}w(gF,EA);function hF(a,b){a.j!=b&&(a.j=b,bC(a.g,b),a.element.k(a.k(b)))}gF.prototype.k=function(a){return a.name};gF.prototype.B=function(a){this.element.j();hF(this,a);this.element.wb("change")};function iF(a){this.bb=a;this.ef=0;this.Ka=new Sv(this);jF(this,"focusin","focusout",1,this.bb);jF(this,"mouseover","mouseout",2,this.bb);jF(this,"mousedown","mouseup",4,document)}function jF(a,b,c,d,e){function g(){this.ef|=d;Q(this.bb,"ytp-block-autohide",!!this.ef);this.Ka.Fa(h);h=this.Ka.listen(e,c,k)}var h,k;k=function(){this.ef&=~d;Q(this.bb,"ytp-block-autohide",!!this.ef);this.Ka.Fa(h);h=this.Ka.listen(this.bb,b,g)};h=a.Ka.listen(a.bb,b,g)}
iF.prototype.J=function(){this.ef&&P(this.bb,"ytp-block-autohide");this.Ka.removeAll();iF.G.J.call(this)};function kF(a){FA.call(this,a);IA(this,6900);lF(this)}w(kF,FA);function lF(a){GA(a,"ytp-button-fullscreen-enter");var b=Y(0,"YTP_FULLSCREEN");HA(a,b);a.g=b};function mF(a,b){X.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(mF,X);mF.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}}wb(this.b,b,0,a);nF(this)};mF.prototype.remove=function(a){qb(this.b,a);nF(this)};
function nF(a){Lh(a.g);a.g=[];var b,c,d=[],e=1==a.b.length||a.j;e&&a.b.length&&(c=new X(["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 X(["div","ytp-menu-row",["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]):!g||k.o?new X(["div","ytp-menu-row",
["div",["ytp-menu-cell","ytp-menu-title"],k.b],["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.b],["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]);c.oa(k.element);c.oa(oF(a,k),"more");d.push(c)}a.oa(d)}function oF(a,b){if(b.C){var c=Y(0,"YTP_OPTIONS"),d=new FA(a.k,"ytp-menu-more-options",c);IA(d,2700);d.oa(c);a.g.push(d);d.listen("click",b.M,b);return d}return null}mF.prototype.J=function(){this.b=[];nF(this);mF.G.J.call(this)};function pF(a){FA.call(this,a);IA(this,6E3);qF(this)}w(pF,FA);function qF(a){GA(a,"ytp-button-play");var b=Y(0,"YTP_PLAY");HA(a,b)};function rF(a){X.call(this,["div","ytp-playlist-controls","{{content}}"]);this.g=new FA(a,"ytp-button-prev",Y(0,"YTP_PREVIOUS"),Y(0,"YTP_PREVIOUS"));S(this,this.g);IA(this.g,6050);this.b=new FA(a,"ytp-button-next",Y(0,"YTP_NEXT"),Y(0,"YTP_NEXT"));S(this,this.b);IA(this.b,6051);this.oa([this.g,this.b])}w(rF,X);function sF(a,b){$i.call(this);this.g=!!b;this.bb=a;this.Ka=new Sv(this);this.b=this.j=null;tF(this)}w(sF,$i);function tF(a){a.b=null;a.j=null;a.Ka.listen(a.bb,uF("over"),a.pB);a.Ka.listen(a.bb,"touchstart",a.qB)}f=sF.prototype;f.pB=function(a){this.Ka.removeAll();this.Ka.listen(this.bb,uF("move"),this.ks);this.Ka.listen(this.bb,uF("out"),this.ls);this.g&&this.Ka.listen(this.bb,uF("down"),this.is);this.H("hoverstart",Ig(a),Jg(a),a.target);this.H("hovermove",Ig(a),Jg(a),a.target)};
f.ks=function(a){this.b&&Ig(this.b)==Ig(a)&&Jg(this.b)==Jg(a)&&this.b.relatedTarget==a.target||this.H("hovermove",Ig(a),Jg(a),a.target);this.b=null};f.ls=function(a){a.relatedTarget&&jd(this.bb,a.relatedTarget)?(this.b=a,this.H("hovermove",Ig(a),Jg(a),a.relatedTarget)):(this.Ka.removeAll(),tF(this),this.H("hoverend",Ig(a),Jg(a),a.relatedTarget))};
f.is=function(a){ja(a.button)&&0!=a.button||(a.preventDefault(),this.Ka.removeAll(),this.Ka.listen(document,uF("move"),this.eD),this.Ka.listen(document,uF("up"),this.fD),this.H("dragstart",Ig(a),Jg(a),a.target),this.H("dragmove",Ig(a),Jg(a),a.target))};f.eD=function(a){this.H("hovermove",Ig(a),Jg(a),a.target);this.H("dragmove",Ig(a),Jg(a),a.target)};
f.fD=function(a){this.Ka.removeAll();a.target&&jd(this.bb,a.target)?(this.Ka.listen(this.bb,uF("move"),this.ks),this.Ka.listen(this.bb,uF("out"),this.ls),this.Ka.listen(this.bb,uF("down"),this.is),this.H("dragend",Ig(a),Jg(a),a.target)):(tF(this),this.H("dragend",Ig(a),Jg(a),a.target),this.H("hoverend",Ig(a),Jg(a),a.target))};
f.qB=function(a){var b=a.changedTouches[0];b&&(this.Ka.removeAll(),this.Ka.listen(this.bb,"touchmove",this.GB),this.Ka.listen(this.bb,"touchend",this.Rr),this.Ka.listen(this.bb,"touchcancel",this.Rr),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.GB=function(a){var b=vF(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.Rr=function(a){var b=vF(this,a);b&&(a.preventDefault(),this.Ka.removeAll(),tF(this),this.g&&this.H("dragend",b.pageX,b.pageY,a.target),this.H("hoverend",b.pageX,b.pageY,a.target))};function vF(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 uF(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}f.J=function(){this.Ka.removeAll();sF.G.J.call(this)};function wF(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}wF.prototype.clone=function(){return new wF(this.b,this.B,this.j,this.o,this.k,this.A,this.g,this.C)};wF.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 xF(a,b){if(0==b)return a.b;if(1==b)return a.g;var c=Ib(a.b,a.j,b),d=Ib(a.j,a.k,b),e=Ib(a.k,a.g,b),c=Ib(c,d,b),d=Ib(d,e,b);return Ib(c,d,b)}
function yF(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=xF(a,c),k=(xF(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=xF(a,c);return c};var zF=new function(){this.b=new wF(0,0,0,0,.58,1,1,1)};function AF(a,b){this.g=a;this.b=b}function BF(a){return a.b-a.g}function CF(a,b){return a.g+b*BF(a)}function DF(a,b){return BF(a)?Hb((b-a.g)/BF(a),0,1):Infinity};function EF(a,b,c,d){var e=Math.min(c/(b.uq/b.dj),d/(b.tq/b.rows)),g=b.uq*e,e=b.tq*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.hy*h*-1;var r=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 "+r+"px";a.backgroundSize=g+"px "+e+"px"};function FF(a){qE.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 Pk(this.cv,250,this);S(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"];dd(this.j);this.g=0;this.k=new AF(0,0)}w(FF,qE);f=FF.prototype;f.jq=!1;f.Xd=0;f.El=0;f.Qk=0;f.Lq=10;f.Ub=0;f.Vi=0;f.pm=0;f.Bc=null;f.Ke=null;f.disable=function(){this.jq=!0};
f.Mx=function(){for(var a=this.b.cloneNode(!0),b=this.Bc.b[0].g,c,d,e=0;e<b;e++)d=this.j.cloneNode(!1),c=Rq(this.Ke,e,this.Ub),EF(d,c,this.Ub,this.Vi),a.appendChild(d);ed(a,this.b);this.b=a};f.Mp=function(a,b){cg(this.b,!1);for(var c,d,e=a;e<=b;e++)if(d=this.b.children[e])c=Rq(this.Ke,e,this.Ub),EF(d,c,this.Ub,this.Vi);cg(this.b,!0)};function GF(a,b){if(b!=a.pm){var c=Rq(a.Ke,b,2*a.Ub),d=Math.round(2*a.Ub),e=Math.round(2*a.Vi);EF(a.C,c,d,e);a.pm=b}}
f.cv=function(){for(var a=this.El,b=Math.max(Math.floor(a/this.Ub),0),a=Math.min(Math.ceil((a+this.Xd)/this.Ub),this.Bc.b[0].g-1);b<=a;b++){for(var c=this.Ke,d=b,e=Sp(c.b,2*this.Ub),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,Oq(g.j,k,{Cp:k,Dp:h}))}Sq(c)}};
function HF(a,b){a.Lq=Math.min(10,Math.ceil(a.Xd/72));a.Ub=Math.floor(a.Xd/a.Lq);a.Vi=.555*a.Ub;a.Qk=a.Ub*a.Bc.b[0].g;Wf(a.b,a.Qk);var c=Math.round(2*a.Ub),d=.555*c+12;Vf(a.A,c,d);Kf(a.A,(a.Xd-c)/2);c=d+20;a.K().style.height=Lf(c,!0);b&&(a.Mp(0,a.Bc.b[0].g-1),GF(a,a.pm),a.B=!0)}f.show=function(){this.Bc&&FF.G.show.call(this)};f.J=function(){this.Ke=this.Bc=null;cz(this.g);FF.G.J.call(this)};function IF(a,b,c,d){this.width=b;this.g=c;this.A=d;this.b=b-c-d;this.o=Hb(a-c,0,this.b);this.j=this.o+c;this.k=this.o/this.b};function JF(){X.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 AF(0,0);this.hide()}w(JF,X);
f=JF.prototype;f.Ki=!1;f.If=null;f.Xg=null;f.disable=function(){this.Ki=!0};f.show=function(){this.Ki||JF.G.show.call(this)};f.reset=function(){P(this.K(),"with-thumbnail");this.Xg=this.If=null};f.Nx=function(a,b){(a<=this.b||this.b<=b)&&KF(this)};function KF(a){var b=Rq(a.Xg,a.b,108);EF(a.template.b["ytp-progress-tooltip-thumbnail"],b,108,60)}f.J=function(){this.j=this.Xg=this.If=null;JF.G.J.call(this)};function LF(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:Y(0,"YTP_TOOLTIP_CLIP_MARKER")}],["div",["ytp-clip-end","html5-clip-marker","yt-uix-tooltip"],{title:Y(0,"YTP_TOOLTIP_CLIP_MARKER")}],["div","html5-progress-screenreader",{"aria-live":"assertive"}]];qE.call(this,c);this.k=a.Vc().width;this.C=1;this.M=this.U=this.A=
this.gb=this.I=0;this.xa=this.template.b["html5-ad-progress-list"];this.ac=this.template.b["ytp-marker-progress-list"];this.fb=this.template.b["ytp-marker-crenellation-list"];this.F={};this.V={};this.N=Infinity;this.ka=this.template.b["ytp-clip-end"];this.za=new sF(this.ka,!0);S(this,this.za);this.za.subscribe("hoverstart",this.no,this);this.za.subscribe("hoverend",this.lo,this);Ny(this,this.ka,"click",this.jk);this.wa=this.template.b["ytp-clip-end-exclude"];this.cb=this.template.b["ytp-clip-start-exclude"];
this.O=0;this.la=this.template.b["ytp-clip-start"];this.Ba=new sF(this.la,!0);S(this,this.Ba);this.Ba.subscribe("hoverstart",this.no,this);this.Ba.subscribe("hoverend",this.lo,this);Ny(this,this.la,"click",this.jk);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.Md=new iF(this.K());S(this,this.Md);this.hb=this.template.b["html5-progress-screenreader"];
this.g=null;this.pa=this.template.b["html5-scrubber-button"];this.bc=this.template.b["ytp-scrubber-pull-indicator"];this.nb=0;this.Ca=!1;this.Ia=new F;this.b=new AF(0,0);this.xb=!1;this.ca=b;MF(this)}w(LF,qE);f=LF.prototype;f.Px=function(){this.g&&this.g.show()};f.Rx=function(a,b,c){var d=Qf(this.K()),e=NF(this).b,g=c?c.getAttribute("data-tooltip"):null;g&&(a=DF(this.b,Number(c.getAttribute("data-position")))*e+Qf(this.L).x);this.Ia.x=a-d.x;this.Ia.y=b-d.y;g?OF(this,g):OF(this)};
function OF(a,b){if(a.g){var c=a.xb?a.b.b:0,d=NF(a),e=a.g;if(!e.Ki){var g=50;e.If?(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 IF(d.j,d.width,g,g)).j-g;e.K().style.left=g+"px";e.j.style.left=Hb(d.j,0,d.width)-g-5+"px";c=Dv(CF(e.g,d.k)-c);e.oa(c,"timestamp");e.If&&(d=Rp(e.If,d.k),d!=e.b&&(e.b=d,KF(e)));b?(O(e.K(),"with-text"),e.oa(b,"text")):P(e.K(),"with-text")}}}f.Qx=function(){this.g&&this.g.hide()};
f.Ox=function(a,b){var c=PF(this);this.nb=c.g-NF(this).k*(c.g+c.A);this.g&&this.j&&(this.g.hide(),this.j.show());this.A&&(Ue(this.A),this.A=0);this.gb=b;this.Ca=!0;this.H("beginseeking")};f.Sx=function(){this.U=0;P(this.K(),"ytp-pull-ui");P(this.K(),"ytp-pulling");if(0<this.I){var a=v(),b=this.I,c=NF(this).j;this.A&&Ue(this.A);this.A=My(u(this.Co,this,a,b,c),0)}this.g&&this.j&&(this.g.show(),this.j.hide());this.Ca=!1;this.H("endseeking")};
f.Co=function(a,b,c){var d,e=(v()-a)/200;d=zF.b;e=yF(d,e);if(0==e)d=d.B;else if(1==e)d=d.C;else{var g=Ib(d.B,d.o,e),h=Ib(d.o,d.A,e);d=Ib(d.A,d.C,e);g=Ib(g,h,e);h=Ib(h,d,e);d=Ib(g,h,e)}e=c+d*(this.B*this.k-c);if(0>d||1<d)d=1;QF(this,(1-d)*b,e,this.B);this.A=1>d?My(u(this.Co,this,a,b,c),0):0};function QF(a,b,c,d){b=Hb(b,0,40);a.I=b;var e=a.C,g=Math.max(BF(a.b)/a.k,1);a.C=b/40*(g-1)+1;b=a.k*a.C;a.M=Hb(d*b-c,0,b-a.k);e!=a.C&&MF(a)}
f.Tx=function(a,b){var c=!1,d=!1,e=NF(this);3600<=BF(this.b)&&(QF(this,this.gb-b-10,e.j,e.k),d=!0,c=4<this.I,e=NF(this));Q(this.K(),"ytp-pull-ui",d);c&&O(this.K(),"ytp-pulling");c=0;e.g&&0>=e.j?c=-1:e.A&&e.j>=e.width&&(c=1);!this.A||c&&c==this.U||N(this.A);c&&(this.A=My(u(this.wp,this,v(),this.M),0));this.U=c;this.H("seekto",CF(this.b,e.k),!1)};
f.wp=function(a,b){if(this.U){var c=this.k*(this.C-1);this.M=Hb(b+this.U*(v()-a)*.3,0,c);MF(this);this.H("seekto",CF(this.b,NF(this).k),!1);0<this.M&&this.M<c&&(this.A=My(u(this.wp,this,a,b),0))}};
function MF(a){var b=NF(a),c=fd(a.fb),d=0;if(8<a.I)for(var e=(-b.g+b.width)/b.b*(BF(a.b)/60),g=Math.ceil(-b.g/b.b*(BF(a.b)/60));g<e;g++){var h=c[d];h||(h=document.createElement("div"),h.style.width="1px",a.fb.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/BF(a.b)*b.b+"px"}for(e=c.length-1;e>=d;e--)dd(c[e]);c=(-b.g+b.width)/b.b;a.oa(Dv(CF(a.b,-b.g/b.b)),"boundTimeLeft");a.oa(Dv(CF(a.b,c)),"boundTimeRight");
a.L.style.width=b.b+"px";a.K().style.height=a.I+(a.ca?20:8)+"px";b=b.g;Dx(a.L,"transform",b?"translatex("+b+"px)":"");a.pa.style.height=a.I+(a.ca?12:6)+"px";for(var k in a.F)RF(a,a.F[k],a.V[k]);SF(a);TF(a,a.B,a.D)}function NF(a){var b=a.Ia.x;if(a.Ca)var c=a.ca?32:16,b=(b+a.nb-c/2)/(a.k-c)*a.k;c=a.k*a.C;b=Hb(b,0,a.k);return new IF(b,a.k,-a.M,-(c-a.M-a.k))}function PF(a){var b=a.ca?32:16,c=a.k*a.C;return new IF(a.B*(c-b)+b/2,c,b/2,b/2)}
function TF(a,b,c){if(b<a.O||b>a.N)a.jk();else{a.B=b;a.D=Math.max(a.B,c);var d=DF(a.b,a.O),e=DF(a.b,a.N),g=Hb(b,d,e);c=Hb(c,d,e);var h=g;g<e&&(h=a.k*a.C,h=(g*h-g)/h);a.Wa.style.left=Ev(d)+"%";Dx(a.Wa,"transform","scalex("+(h-d)+")");Dx(a.pa,"transformOrigin",Ev(b)+"%");b=PF(a).j+"px";a.pa.style.left=b;a.bc.style.left=b;a.Ha.style.left=Ev(d)+"%";Dx(a.Ha,"transform","scalex("+(c-d)+")");a.Ra.style.left=Ev(d)+"%";Dx(a.Ra,"transform","scalex("+(e-d)+")")}}
function SF(a){var b=a.O>a.b.g,c=0<a.b.b&&a.N<a.b.b;Q(a.K(),"ytp-clip-start-enabled",b);Q(a.K(),"ytp-clip-end-enabled",c);b=b?DF(a.b,a.O):0;c=c?DF(a.b,a.N):1;a.la.style.left=Ev(b)+"%";a.ka.style.left=Ev(c)+"%";a.cb.style.width=Ev(b)+"%";a.wa.style.left=Ev(c)+"%";a.wa.style.width=Ev(1-c)+"%"}f.no=function(){O(this.K(),"ytp-clip-hover")};f.lo=function(){P(this.K(),"ytp-clip-hover")};f.jk=function(){this.O=0;this.N=Infinity;SF(this);TF(this,this.B,this.D)};
function RF(a,b,c){var d=NF(a).b,e=DF(a.b,b.start/1E3)*d;switch(b.style){case "ytp-chapter-marker":a=Yt(b);var g=a/2,d=Hb(e,g,d-g)-g;break;default:a=Math.min(Math.min(DF(a.b,b.end/1E3)*d,d)-e,Yt(b)),d=Hb(e,0,d-a)}c.style.width=a+"px";c.style.left=d+"px";c.className=b.style}
function UF(a,b){z(b,function(a){if(a.Wd){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;RF(this,a,e);"ytp-chapter-marker"==a.style?this.ac.appendChild(e):this.xa.appendChild(e)}}else VF(this,a)},a)}function WF(a,b){z(b,function(a){VF(this,a)},a)}function VF(a,b){var c=b.getId();a.F[c]==b&&(dd(a.V[c]),delete a.F[c],delete a.V[c])}
function XF(a,b){var c=a.L;P(c,"spacecast-cached");b&&L(function(){O(c,"spacecast-cached")},100)}f.J=function(){this.A&&(N(this.A),this.A=0);this.o&&(this.o.dispose(),this.o=null);this.Ha=this.la=this.cb=this.ka=this.wa=this.xa=null;this.V={};this.Ra=this.pa=this.hb=this.L=this.Wa=null;this.ca=!1;LF.G.J.call(this)};function YF(a){EA.call(this);this.B=this.k="unknown";this.b=Y(0,"YTP_QUALITY_TITLE");this.j=new ZB(a,u(this.D,this),u(this.F,this),!0);S(this,this.j);this.g=NaN;this.element=new SB(a,void 0,this.j);S(this,this.element);UB(this.element,100);this.priority=-1;this.o=!0}w(YF,EA);YF.prototype.Gn=function(){return this.k};
function ZF(a,b,c){if(a.k!=b||a.B!=c){a.k=b;a.B=c;bC(a.j,c);var d=a.j;null!=d.b&&YB(aC(d,d.b),!1);null!=b&&YB(aC(d,b),!0);d.b=b;"auto"==c&&c!=b?(b=Y(0,"YTP_AUTO_WITH_QUALITY_2",{VIDEO_QUALITY:$F(b)}),b=new sE(b)):b=a.D(b);isNaN(a.g)||($y()?cz(a.g):N(a.g));$y()?a.g=bz(u(a.element.k,a.element,b),0):a.g=L(u(a.element.k,a.element,b),0)}}
function $F(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 Xe("YTP_AUTO")}return""}YF.prototype.D=function(a){var b=["span","",$F(a)];"highres"==a?(b.push(" "),b.push(["sup","","4K"])):0==a.indexOf("hd")&&(b.push(" "),b.push(["sup","","HD"]));return new wv(b)};
YF.prototype.F=function(a){this.element.j();this.element.wb("blur");if("auto"!=this.B||"auto"!=a)ZF(this,a,a),this.element.wb("change")};YF.prototype.J=function(){$y()?cz(this.g):N(this.g);YF.G.J.call(this)};function aG(a){DC.call(this,a,"ytp-settings-button",Y(0,"YTP_SETTINGS"),"ytp-settings-button-active");IA(this,6600);this.j=new X(["div","{{content}}"]);S(this,this.j);this.oa(this.j);bG(this,"")}w(aG,DC);function bG(a,b){"highres"==b?a.j.oa("ytp-settings-4k-quality-badge"):-1!=b.indexOf("hd")?a.j.oa("ytp-settings-hd-quality-badge"):a.j.oa("")};function cG(a,b){var c=b?Y(0,"YTP_THEATER_MODE"):Y(0,"YTP_LARGE_PLAYER"),d=b?Y(0,"YTP_DEFAULT_VIEW"):Y(0,"YTP_SMALL_PLAYER");DC.call(this,a,"ytp-size-toggle-large",c,"ytp-size-toggle-small",d);IA(this,6800)}w(cG,DC);function dG(a){EA.call(this);this.j=1;this.b=Y(0,"YTP_SPEED_TITLE");this.g=new ZB(a,u(this.k,this),u(this.B,this));S(this,this.g);this.element=new SB(a,void 0,this.g);S(this,this.element);UB(this.element,100);eG(this,this.j);this.priority=1;this.o=!0}w(dG,EA);function eG(a,b){a.j=b;bC(a.g,b);a.element.k(a.k(b))}dG.prototype.k=function(a){return 1==a?Y(0,"YTP_NORMAL_SPEED"):a.toString()};dG.prototype.B=function(a){this.element.j();eG(this,a);this.element.wb("change")};function fG(){X.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(fG,X);fG.prototype.xf=function(a){Bv(this.template,"duration",Dv(a))};function gG(a,b,c){Q(a.element,"ytp-time-liveonly",b&&!c);Q(a.element,"ytp-time-live",b&&c)}fG.prototype.J=function(){this.b=null;fG.G.J.call(this)};function hG(a){this.C=a;X.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 FA(this.C,"ytp-button-volume",Y(0,"YTP_BUTTON_VOLUME"));S(this,this.b);this.b.X(this.element,0);IA(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 iF(this.A);S(this,this.B)}w(hG,X);function iG(a){a.j||(a.j=a.g.clientWidth);return a.j}
hG.prototype.setVolume=function(a,b){var c=Y(0,b?"YTP_UNMUTE":"YTP_MUTE");this.b.g=c;var c=Math.round(a),d=c+"% "+Y(0,"YTP_SCREENREADER_VOLUME_SETTING")+(b?" "+Y(0,"YTP_SCREENREADER_VOLUME_MUTED"):""),e=Y(0,b?"YTP_SCREENREADER_VOLUME_UNMUTE":"YTP_SCREENREADER_VOLUME_MUTE")+" "+Y(0,"YTP_SCREENREADER_CONTROL_TOGGLE");HA(this.b,e);Bv(this.template,"valuenow",c);Bv(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");rg(this.b.K(),"value",c);
c=iG(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 jG(a,b,c){$i.call(this);this.ub=a;this.bk=new Sv(this);this.xu=!!c;this.yu=b;this.Wc=null;this.b={};this.g={};this.k=this.j=this.Od=this.zc=this.Sd=null;this.o=new Sv(this);this.to=this.fc=null;this.B=-1;this.A=null;this.C=!1;this.uf=new X(["div","ytp-video-controls-clickguard"]);this.uf.hide();S(this,this.uf)}w(jG,$i);f=jG.prototype;f.bd=null;f.Fc=null;f.Ee=null;f.Fi=null;f.li=null;f.um=!1;f.ad=null;f.disable=function(a){kG(this,a,!0)};f.enable=function(a){kG(this,a,!1)};
function kG(a,b,c){for(var d=0;d<b.length;d++)switch(b[d]){case "audio":Q(a.bd,"disabled-control-audio",c);break;case "play_pause":var e=a.Fc;c?e.disable():e.enable();break;case "seek":Q(a.bd,"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.xf=function(a){this.fd.xf(a)};f.Pw=function(){this.H("mutetoggled")};
function lG(a,b){if(b){if(a.um){var c=a.Fc;GA(c,"ytp-button-stop");var d=Y(0,"YTP_STOP")}else c=a.Fc,GA(c,"ytp-button-pause"),d=Y(0,"YTP_PAUSE");HA(c,d)}else qF(a.Fc)}f.Ow=function(){this.H("playpausetoggled")};f.Lw=function(a){a=(a-Qf(this.$c.g).x)/iG(this.$c)*100;a={volume:Hb(a,0,100),muted:!1};this.H("volumechanged",a)};f.Kw=function(){this.H("fullscreentoggled")};function mG(a,b){var c=a.g[b.A||"__default__"];c&&c.add(b)}function nG(a,b){var c=a.g[b.A||"__default__"];c&&c.remove(b)}
function oG(a,b,c,d){if(!a.b[b]){a.b[b]=c;if("remote"==b)cd(id(a.Wc.K()),c.K(),0);else{var e=c.K();d=d||a.Wc.K();d.parentNode&&d.parentNode.insertBefore(e,d.nextSibling)}c.listen("click",ra(a.iA,b),a,"menuButtonClick");c=new mF(a.ub,"__default__"!=b);S(a,c);c.hide();c.X(a.bd);a.g[b]=c}}f.Mw=function(){var a=this.Ab.K();if(!ng(a,"html5-async-progress")){var b=ng(a,"html5-async-success");fF(a,"html5-async-progress");this.H("watchlater",b)}};f.Nw=function(){this.H("watchonyoutube")};
function pG(a,b,c){a.Ud();a.H("showdialog");var d=a.ub.Vc();Vf(a.uf.K(),d);a.uf.show();c&&(a.k=c,FC(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&&(GC(this.k),this.k=null);this.uf.hide()};f.iA=function(a,b){b.stopPropagation();var c=this.b[a];c&&(c.b?this.Ud():pG(this,this.g[a],c))};f.Fw=function(){this.H("audiotrackchanged",this.Sd.j)};
f.Hw=function(){var a=this.zc.Gn();this.H("qualitychanged",a);this.H("controlclick","quality-"+a)};f.Gw=function(){this.Ud()};f.Iw=function(){var a=this.fc;a.b?GC(a):FC(a);this.H("sizechangerequested",1==this.fc.b)};f.Jw=function(){var a=this.Od.j;this.H("speedchanged",a);this.H("controlclick","speed-"+a)};
f.Oy=function(a){var b=a.target;a=b==this.Fc.K()?"playpause":b==this.$c?"volume":b==this.fd?"time":b==this.Wc?"settings":b==this.Ab?"watchlater":b==this.ad?"youtube":b==this.Zd.K()?"fullscreen":b==this.fc?"size":a.target.className;this.H("controlclick",a)};
f.J=function(){this.wo.dispose();this.bk.removeAll();this.o.removeAll();this.Ud();this.Ab=this.ad=this.li=this.$c=this.bd=null;for(var a in this.b){var b=this.b[a];b&&(b.dd(),Oy(b,"menuButtonClick"))}this.b={};this.g={};this.fc=this.Wc=this.Od=this.zc=null;this.C||(this.B=-1,this.A=null);jG.G.J.call(this)};function qG(a){Gi("/playlist_video_ajax?action_add_to_watch_later_list=1",{method:"POST",Gh:{privacy:a.privacy||null,feature:a.LE||null,authuser:a.Sa||null,pageid:a.Za||null},gd:{video_ids:a.Va,src_playlist_id:a.OE,full_list_id:a.ME||null,new_playlist_name:a.NE||null,plid:Re("PLAYBACK_ID")||null},context:a.context,onError:a.onError,onSuccess:a.onSuccess,vb:a.vb})}
function rG(a){Gi("/playlist_video_ajax?action_delete_from_watch_later_list=1",{method:"POST",gd:{video_ids:a.Va,session_token:Re("XSRF_TOKEN")},context:a.context,onError:a.onError,onSuccess:a.onSuccess,vb:a.vb})};function sG(a,b){this.A=a;this.k=[];this.B=b;this.o=[]}w(sG,Hh);function tG(a,b,c){a.k.push(a.A.subscribe(b,c,a))}function uG(a,b,c){a.o.push(a.B.subscribe(b,c,a))}function vG(a){for(var b=0;b<a.k.length;b++)a.A.Ib(a.k[b]);for(b=0;b<a.o.length;b++)a.B.Ib(a.o[b])}sG.prototype.J=function(){vG(this);sG.G.J.call(this)};function wG(a,b){sG.call(this,a,b);this.j=!1;this.g=a;this.b=b;var c=a.R();c.color&&O(this.b.L,c.color);c.aj&&(c=this.b,c.g=new JF,c.g.X(c.K()),S(c,c.g),c.j=new FF(c.k),c.j.hide(),c.j.X(c.K(),0),S(c,c.j));xG(this)}w(wG,sG);
function xG(a){vG(a);a.j=!0;tG(a,"cuerangesadded",a.FC);tG(a,"cuerangesremoved",a.GC);tG(a,"cuerangemarkersupdated",a.EC);tG(a,"presentingplayerstatechange",a.KC);tG(a,"progresssync",a.pq);tG(a,"resize",a.IC);tG(a,"seekto",a.LC);tG(a,"videodatachange",a.MC);tG(a,"videoplayerreset",a.oq);tG(a,"videoready",a.JC);uG(a,"beginseeking",a.DC);uG(a,"endseeking",a.HC);uG(a,"seekto",a.CC)}f=wG.prototype;f.FC=function(a){UF(this.b,a)};f.GC=function(a){WF(this.b,a)};f.EC=function(a){UF(this.b,a)};
f.IC=function(a){var b=this.b;b.k=a.width;MF(b);b.j&&(b=b.j,a=a.width,!b.Bc||b.Xd==a&&b.B||(b.Xd=a,HF(b,!0)))};f.LC=function(a){var b=this.g.Eb.Mg();a=DF(new AF(b.seekableStart,b.seekableEnd),a);b=this.b;TF(b,n(a)?a:b.B,n(void 0)?void 0:b.D);if(this.b.j&&(b=this.b.j,b.Bc)){b.El=b.Qk*a-b.Xd/2;Kf(b.b,-1*b.El);var c=Rp(b.Bc,a);GF(b,c);a=CF(b.k,a);ld(b.D,Dv(a));Qk(b.o)}};
f.KC=function(a){if(0>Ov(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.oq=function(a){if(1!=a.getPlayerType()){if(!this.j)return;vG(this);this.j=!1;tG(this,"videoplayerreset",this.oq)}else if(!this.j){xG(this);var b=this.b;bd(b.xa);b.F={};b.V={};UF(this.b,a.A.j||[]);this.b.g&&this.b.g.reset()}this.pq()};
f.MC=function(a,b){var c=new AF(0,b.Oa),d=this.b;d.b=c;MF(d);this.b.g&&(this.b.g.g=c);this.b.j&&(this.b.j.k=c);c=this.b;c.O=b.clipStart;SF(c);TF(c,c.B,c.D);c=this.b;c.N=b.clipEnd;SF(c);TF(c,c.B,c.D);XF(this.b,!!b.aa)};
f.JC=function(a){if(this.b.g){var b=this.b.g;if(!b.Ki)if(Wr(a)){O(b.K(),"with-thumbnail");b.If=Wr(a);b.Xg=Xr(a);var c=u(b.Nx,b);b.Xg.subscribe("l",c)}else b.reset()}this.b.j&&(b=this.b.j,b.j&&bd(b.b),P(b.K(),"enabled"),cz(b.g),b.Bc=Wr(a),b.Ke=Xr(a),b.Bc&&!b.jq&&(O(b.K(),"enabled"),c=u(b.Mp,b),b.Ke.subscribe("l",c),HF(b),cz(b.g),b.g=bz(u(b.Mx,b))));this.b.xb=a.tb?!0:!1;bs(a)?(a=this.b,a.o&&(a.o.dispose(),a.o=null)):(a=this.b,a.o||(a.o=new sF(a.L,!0),a.o.subscribe("hoverstart",a.Px,a),a.o.subscribe("hovermove",
a.Rx,a),a.o.subscribe("hoverend",a.Qx,a),a.o.subscribe("dragstart",a.Ox,a),a.o.subscribe("dragmove",a.Tx,a),a.o.subscribe("dragend",a.Sx,a)))};f.pq=function(a,b){var c=this.g.Eb.Mg(),d=n(a)?a:c.current,e=new AF(c.seekableStart,n(b)?b:c.seekableEnd),c=DF(e,c.loaded),d=DF(e,d),g=this.b;g.b=e;MF(g);g=this.b;TF(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.DC=function(){yG(this.g.j)};f.HC=function(){this.g.j.Mi()};f.CC=function(a,b){As(this.g,a,b)};f.J=function(){wG.G.J.call(this)};function zG(a,b){sG.call(this,a,b);tG(this,"applicationplayerstatechange",this.ly);tG(this,"controlsdisabled",this.oy);tG(this,"controlsenabled",this.qy);tG(this,"liveviewshift",this.uy);tG(this,"fullscreentoggled",this.ty);tG(this,"presentingplayerstatechange",this.Qy);tG(this,"progresssync",this.Uy);tG(this,"threedenabled",this.Jy);tG(this,"videoplayerreset",this.Ty);tG(this,"videodatachange",this.Sy);tG(this,"onPlaybackQualityChange",this.Fy);tG(this,"onVolumeChange",this.Ky);tG(this,"menu_button_add",
this.vy);tG(this,"menu_button_remove",this.wy);tG(this,"menu_item_add",this.xy);tG(this,"menu_item_remove",this.yy);tG(this,"menu_show",this.zy);uG(this,"fullscreentoggled",this.ry);uG(this,"mutetoggled",this.Ay);uG(this,"nextvideo",this.By);uG(this,"playpausetoggled",this.Cy);uG(this,"previousvideo",this.Ey);uG(this,"qualitychanged",this.Gy);uG(this,"audiotrackchanged",this.my);uG(this,"seekto",this.Ry);uG(this,"sizechangerequested",this.Hy);uG(this,"speedchanged",this.Iy);uG(this,"volumechanged",
this.Ly);uG(this,"watchlater",this.My);uG(this,"watchonyoutube",this.Ny);uG(this,"controlclick",this.ny);uG(this,"showdialog",this.Py);this.b=a;this.g=b;this.j=new wG(a,b.Fi);S(this,this.j);var c=a.R();if(c.oc){var d=this.g;this.b.R().rd?FC(d.fc):GC(d.fc);d.fc.show()}c.Rf||this.g.Ab.hide();c.Gf&&this.g.Zd.show();if(c.vg){var d=this.g,e=d.Od;$B(e.g,this.b.b.vg?Kq:[1]);var g=2500;cC(e.g,g++);g=g++;IA(e.element.b,g);mG(d,d.Od)}if(c.b.D)for(d=this.g,e=[d.Fc,d.$c,d.fd,d.Ab,d.ad,d.Zd,d.Wc],g=0;g<e.length;g++)d.bk.listen(e[g],
"click",d.Oy);d=null!=c.ye&&0==c.ye.search("^https?://www.youtube.com");("detailpage"==c.$||"profilepage"==c.$||d)&&this.g.ad.hide()}w(zG,sG);f=zG.prototype;f.oy=function(a){this.g.disable(a)};f.qy=function(a){this.g.enable(a)};f.uy=function(a){Q(this.g.fd.element,"ytp-time-live-dvr",!a)};f.ty=function(a){var b=this.g;this.b.R();a?(a=b.Zd,GA(a,"ytp-button-fullscreen-exit"),b=Y(0,"YTP_EXIT_FULLSCREEN"),HA(a,b),a.g=b):lF(b.Zd);AG(this)};
f.Qy=function(a){W(a.state,2)||(0<Ov(a,8)?lG(this.g,!0):0>Ov(a,8)?lG(this.g,!1):0>Ov(a,2)&&lG(this.g,W(a.state,8)));0>Ov(a,16)&&BG(this,this.b.getCurrentTime())};f.ly=function(a){if(W(a.state,2)){a=this.g.Fc;GA(a,"ytp-button-replay");var b=Y(0,"YTP_REPLAY");HA(a,b)}};f.Jy=function(){var a=this.g,b=this.b.getVideoData().Lf,c=H("html5-threed-conversion-on",a.li),a=H("html5-threed-conversion-off",a.li);xx(c,!b);xx(a,b)};
f.Ty=function(a){CG(this)&&(BG(this,a.getCurrentTime()),fF(this.g.Ab.K()),eG(this.g.Od,1),a.getVideoData()&&DG(this,a.getVideoData()))};f.Sy=function(a,b){CG(this)&&DG(this,b)};function AG(a){a.b.o&&("detailpage"!=a.b.R().$||a.b.R().mb)?a.g.Ee.show():a.g.Ee.hide()}
function DG(a,b){a.g.xf(b.Oa);var c=Ls(a.b),d=a.g,e=Ms(c),g=d.zc;$B(g.j,e);cC(g.j,2600);IA(g.element.b,2601);e.length?mG(d,d.zc):nG(d,d.zc);d=a.g;e=Js(a.b);g=EG(a.b);ZF(d.zc,e,g);bG(d.Wc,e);d=a.g;c.b.g?(c.la||(c.la=Mp(c.b.g)),c=c.la):c=[];$B(d.Sd.g,c);1<c.length?mG(d,d.Sd):nG(d,d.Sd);c=a.g;(d=(d=Ls(a.b,void 0))?FG(d):null)&&hF(c.Sd,d);c=a.g;d=b.ib;e=b.tb;c.um=d&&!e;gG(c.fd,d,e);W(a.b.getPlayerState(),2)||lG(a.g,W(a.b.getPlayerState(),8));AG(a)}
f.Fy=function(a){if(CG(this)){var b=this.g,c=EG(this.b);ZF(b.zc,a,c);bG(b.Wc,a)}};f.Ky=function(a){this.g.setVolume(a.volume,a.muted)};f.xy=function(a){mG(this.g,a)};f.yy=function(a){nG(this.g,a)};f.vy=function(a,b){oG(this.g,a,b)};f.wy=function(a){var b=this.g,c=b.b[a];c&&(c.dd(),Oy(c,"menuButtonClick"),b.b[a]=null,b.g[a].dispose(),b.g[a]=null)};f.zy=function(a){var b=this.g;a&&b.g[a]?pG(b,b.g[a],b.b[a]):b.Ud()};f.Uy=function(a){BG(this,n(a)?a:this.b.Eb.Mg().current)};f.ry=function(){GG(this.b,!this.b.R().mb)};
f.Ay=function(){this.b.D.muted?Ds(this.b):Cs(this.b)};f.By=function(){Ws(this.b)};f.Cy=function(){HG(this.b)};f.Ey=function(){Xs(this.b)};f.Gy=function(a){Ks(this.b,a,1)};f.my=function(a){var b=Ls(this.b,1);if(b&&!b.fa()&&!W(b.j,128)&&b.b.g.b&&(b=b.k,!b.fa())){var c=b.o;a=a.id;c.o="m";c.g=c.B.b[a];c.C=c.g;IG(b,new JG(c.C,c.j,c.o));KG(b,b.j,b.o.g);LG(b.j,!1);b.j.g=null;b.j.B=!0;MG(b)}};f.Py=function(a){this.b.fk(a)};f.Ry=function(a){As(this.b,a,!0)};f.Hy=function(a){NG(this.b,a)};
f.Iy=function(a){Is(this.b,a)};f.Ly=function(a){OG(this.b,a)};f.Ny=function(){PG(this.b)};f.ny=function(a){QG(this.b,a)};f.My=function(a){(a?rG:qG).call(this,RG(this,a?this.iE:this.jE))};function RG(a,b){return{Va:dt(a.b).videoId,Sa:a.b.R().Sa,Za:a.b.R().Za,onSuccess:b,onError:a.FB,context:a}}f.jE=function(){var a=this.g.Ab.K();fF(a,"html5-async-success");this.b.H("WATCH_LATER_VIDEO_ADDED")};f.iE=function(){fF(this.g.Ab.K());this.b.H("WATCH_LATER_VIDEO_REMOVED")};
f.FB=function(a,b){var c=b&&b.error_message,d=this.g.Ab.K();fF(d,"html5-async-error");if(c){var e=XE.getInstance(),g=ZE(e,d);aF(e,d,c);YE(e,d);WE(d,g)}};function CG(a){return 1==Ls(a.b).getPlayerType()}function BG(a,b){if(CG(a)&&(Bv(a.g.fd.template,"current",Dv(b)),43200<b&&a.b.getVideoData().tb)){var c=a.g;c.um=!0;gG(c.fd,!0,!1)}};var SG={0:[],1:["autohide-controls","autominimize-progress-bar"],2:["autominimize-controls-aspect","autohide-controls-fullscreenonly","autominimize-progress-bar"],3:["autominimize-progress-bar"]};function TG(a){vE.call(this,a);this.V=this.I=this.M=this.D=null;this.wa=[];this.xa=this.fb=this.B=this.nb=null;this.Ia=this.ka=!1;this.Ra={x:0,y:0};this.Ha=null;this.C=new BE(this.j);S(this,this.C);a=this.app.R().gc?4E3:3E3;this.la=new Uv(this.Vp,a,this);S(this,this.la);this.la.start()}w(TG,vE);f=TG.prototype;
f.Vg=function(){TG.G.Vg.call(this);this.app.subscribe("appstatechange",this.$C,this);this.app.subscribe("applicationplayerstatechange",this.aD,this);this.app.subscribe("initializingmode",this.cD,this);this.app.subscribe("presentingplayerstatechange",this.bD,this);this.app.subscribe("onDetailedError",this.dD,this)};f.Qg=function(){TG.G.Qg.call(this);var a=this.app.R();this.Fn(a);this.ln(a);this.zn()};
f.Fn=function(a){a.I&&this.addClass(a.I+"-theme");a.yc&&this.addClass("house-brand");!a.Jf&&a.Pd||this.addClass("modest-branding");a.Ll&&this.addClass("html5-hide-share");a.Gp||this.addClass("html5-hide-volume");a.gc&&(this.addClass("html5-tablet"),O(document.body,"html5-tablet-body"));a.Qb||(this.wa=SG[a.Li],0<=this.wa.indexOf("autohide-controls")&&this.addClass("hide-controls-when-cued"));UG(this)&&this.addClass("ideal-aspect");a.b.L&&this.addClass("ytp-autohide-fade")};
f.ln=function(a){if(a.Pd&&!a.Qb){this.B=new jG(this.j,a.gc,a.b.g);a.b.ca&&(this.B.C=!0);var b=this.B;b.bd=this.F;b.to=new iF(b.bd);S(b,b.to);b.uf.X(b.bd);b.Fi||(b.Fi=new LF(b.ub,b.yu));b.Fi.X(b.bd);var c=new wv(["div",["html5-player-chrome","html5-stop-propagation"]]);S(b,c);c.X(b.bd);c=c.K();b.Fc=new pF(b.ub);S(b,b.Fc);b.Fc.X(c);b.Fc.listen("click",b.Ow,b);b.Ee=new rF(b.ub);S(b,b.Ee);b.Ee.X(c);b.Ee.b.listen("click",ra(b.H,"nextvideo"),b);b.Ee.g.listen("click",ra(b.H,"previousvideo"),b);b.$c=new hG(b.ub);
S(b,b.$c);b.$c.X(c);b.$c.b.listen("click",b.Pw,b);b.wo=new sF(b.$c.g,!0);b.wo.subscribe("dragmove",b.Lw,b);b.fd=new fG;S(b,b.fd);b.fd.X(c);b.bk.listen(b.fd.b,"click",ra(b.H,"seekto",Infinity));b.li=H("html5-threed-popup-menu",b.bd);b.Zd=new kF(b.ub);b.Zd.X(c);S(b,b.Zd);b.Zd.listen("click",b.Kw,b);b.fc=new cG(b.ub,b.xu);b.fc.hide();b.fc.X(c);S(b,b.fc);b.fc.listen("click",b.Iw,b);b.ad=new FA(b.ub,"ytp-button-watch-on-youtube",Y(0,"YTP_URL_NAVIGATE"),Y(0,"YTP_URL_NAVIGATE"));IA(b.ad,6700);b.ad.X(c);
S(b,b.ad);b.ad.listen("click",b.Nw,b);b.Wc=new aG(b.ub);S(b,b.Wc);oG(b,"__default__",b.Wc,b.ad.K());b.Kl=new FA(b.ub,"ytp-button-playlist",Y(0,"YTP_PLAYLIST"),Y(0,"YTP_PLAYLIST"));IA(b.Kl,6400);b.Kl.X(c);S(b,b.Kl);b.Ab=new FA(b.ub,"ytp-button-watch-later",Y(0,"YTP_WATCH_LATER"));b.ub.Bf(b.Ab.K(),"YTP_WATCH_LATER_AS_2",Y(0,"YTP_WATCH_LATER"));b.Ab.X(c);IA(b.Ab,6300);HA(b.Ab,Y(0,"YTP_WATCH_LATER"));S(b,b.Ab);b.Ab.listen("click",b.Mw,b);b.zc=new YF(b.ub);S(b,b.zc);b.zc.listen("change",b.Hw,b);b.zc.listen("blur",
b.Gw,b);b.Od=new dG(b.ub);S(b,b.Od);b.Od.listen("change",b.Jw,b);b.Sd=new gF(b.ub);S(b,b.Sd);b.Sd.listen("change",b.Fw,b);S(this,this.B);this.fb=new zG(this.app,this.B);S(this,this.fb)}a.Fp&&(this.Ha=new JE(a.Pb,a.yc),this.Ha.X(this.g),S(this,this.Ha));this.M=new KE(60);O(this.M.element,"html5-video-loader");O(this.M.element,"html5-center-overlay");O(this.M.element,"ytp-scalable-icon-grow");this.M.X(this.g);S(this,this.M);this.I=new LE(a.Pb);this.I.X(this.g);S(this,this.I);this.V=new oE;this.V.X(this.g);
S(this,this.V);this.C.hide();this.C.X(this.element)};f.Wm=function(a){TG.G.Wm.call(this,a);VG(this,a);this.D&&IE(this.D);Q(this.element,"ideal-aspect",UG(this));this.C.P&&CE(this.C)};f.Fl=function(){TG.G.Fl.call(this);VG(this,this.Fb())};f.$C=function(a){2==a?WG(this):XG(this);this.app.R().b.k&&3==a&&this.I.show(this.app.getVideoData())};
f.bD=function(a){if(this.element){var b;b=a.state;if(W(b,2))b=["ended-mode"];else{var c=[];W(b,8)?c.push("playing-mode"):W(b,4)&&c.push("paused-mode");W(b,1)&&!W(b,32)&&c.push("buffering-mode");W(b,32)&&c.push("seeking-mode");W(b,64)&&c.push("unstarted-mode");b=c}W(a.state,2)||(b=b.concat(this.wa));this.xa&&pg(this.element,this.xa);og(this.element,b);this.xa=b;W(Ls(this.app).j,1)?this.M.show():this.M.hide();b=Ls(this.app);this.app.R().b.k&&b.Vh()&&!W(b.j,1)&&this.I.hide();0>Ov(a,64)&&YG(this.app)}};
f.aD=function(a){!W(a.state,2)||this.app.R().yc||ZG()?0>Ov(a,2)&&XG(this):WG(this)};
f.zn=function(){var a=this.app.R();if(a.Lp){a.gc&&(Ny(this,this.element,"gesturechange",this.qA),Ny(this,this.element,"gestureend",this.rA));kr?this.g.onclick=u(function(a){this.Lm(new Fg(a))},this):this.Mm();Ny(this,this.element,"click",this.ur);Ny(this,this.element,"mousemove",this.ur);Ny(this,this.element,"mouseout",this.Vp);var b,a=u(function(){var a=this.b;a&&(Ht(a),lE.fillPool(4),this.Fa(b))},this);b=Ny(this,this.element,"click",a,void 0,void 0,!0)}};
f.Mm=function(){Ny(this,this.g,"click",this.Lm);Ny(this,this.g,"dblclick",this.hs)};f.Lm=function(a){$G(a)&&(this.element.focus(),ng(this.element,"cued-mode")||!this.app.R().Qb)&&(aH(this),HG(this.app));QG(this.app,"screenclick")};f.hs=function(a){6!=this.app.I&&this.app.R().Gf&&($G(a)&&vz(this.app),QG(this.app,"screendoubleclick"))};f.qA=function(a){var b=a.scale,c=this.app.R().mb;b*(c?-1:1)>(c?-.7:1.3)&&vz(this.app);a.preventDefault()};
f.rA=function(a){a=a.scale;var b=this.app.R().mb;a*(b?-1:1)>(b?-.9:1.1)&&vz(this.app)};function $G(a){return!td(a.target,"html5-stop-propagation")}function UG(a){a=Lb(new G(a.element.clientWidth,a.element.clientHeight)).toFixed(1);return"1.3"==a||"1.8"==a}f.ur=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.Zf=v();this.Ia=!1;this.la.start();this.ka&&(this.ka=!1,this.removeClass("ytp-user-idle"),this.app.Ua("onShowControls"))};
f.Vp=function(a){if(a&&(a=a.relatedTarget)&&jd(this.element,a))return;this.Ia=!0;this.la.stop();if(!this.ka){a=this.B&&null!=this.B.j;var b=Os(this.app.C,"playlist"),b=b&&b.loaded;!this.Ia||a||b||(this.ka=!0,this.addClass("ytp-user-idle"),this.app.Ua("onHideControls"))}};function WG(a){a.I.show(a.app.getVideoData());a.addClass("cued-mode")}function XG(a){a.app.R().b.k||a.I.hide();a.removeClass("cued-mode")}
f.Rg=function(a){if(a){var b=this.C;b.b=a;b.oa(a);this.C.show()}else a=this.C,a.b=null,a.oa(null),this.C.hide()};
f.dD=function(a){if(this.element){this.D||(this.D=new HE,this.D.X(this.element),S(this,this.D));var b=this.app.R(),c=a.message,d="embedded"==b.$;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=
Xe(a,{BEGIN_LINK:'<br/><a href="'+e+'"'+(d?' target="_blank"':"")+">",END_LINK:"</a>"}));b=this.D;Og(b.g);b.g=[];Bv(b.template,"content",new sE(c));this.D.show()}};f.cD=function(){this.D&&this.D.hide()};function aH(a){var b=a.app.getPlayerState(),c=a.app.getVideoData(),d="html5-bezel-pause";W(b,8)?c.ib&&!c.tb&&(d="html5-bezel-stop"):d="html5-bezel-play";a=a.V;a.show(d);a.b=L(u(a.g,a),10)}
f.Vf=function(){var a=this.app.R();rg(document.documentElement,"player-size",a.mb?"fullscreen":a.rd?"large":"small");TG.G.Vf.call(this)};function VG(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=Hb(e/g,.5,1),d=Mc("ytp-scalable-icon-shrink",a.element),h=0;h<d.length;h++)Dx(d[h],"transform","scale("+c+")");c=Hb(e/g*.33,.5,1);d=Mc("ytp-scalable-icon-grow",a.element);for(h=0;h<d.length;h++)Dx(d[h],"transform","scale("+c+")")}}
f.hk=function(a){this.B&&lG(this.B,a)};f.J=function(){Sg(this.element);dd(this.nb);TG.G.J.call(this);this.I=this.V=this.nb=null};function bH(a,b,c){qE.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.j=a;this.$a=b;this.Ac=!1}w(bH,qE);bH.prototype.create=function(){this.Ac=!0};bH.prototype.destroy=function(){this.Ac=!1};function cH(a,b){var c=!!a.featured,d="1"==a.is_episodic,e=!!a.endscreen_autoplay_session_data;return b&&(c||d)||e};function dH(){X.call(this,["div","ytp-channel-banner-container",["img","ytp-channel-banner",{src:"{{banner}}"}]])}w(dH,X);function eH(){X.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(eH,X);function fH(a,b){qE.call(this,b);this.D=a;this.videoId=null}w(fH,qE);
fH.prototype.xg=function(a,b){this.videoId=a?a.id||a.video_id:"";Q(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=nB(a.thumbnail_ids?a.thumbnail_ids.split(",")[0]:this.videoId,b?"hqdefault.jpg":"mqdefault.jpg");var d=$b(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=Dv(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 gH(a){var b=["div","ytp-watch-next-card",["div","ytp-watch-next-content",["div","ytp-watch-next-header",Y(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}}"]]];fH.call(this,a,b)}w(gH,fH);function hH(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),Gi("/get_video_metadata",{method:"GET",onError:d,onSuccess:c,Gh:a,context:e}))};function iH(a,b,c){bH.call(this,a,b,"subscribecard-endscreen");this.o=new dH;S(this,this.o);this.A=new wv(["div","ytp-channel-curtain"]);S(this,this.A);this.k=new eH;S(this,this.k);(this.g=c?new gH(this.j.app.g.j):null)&&S(this,this.g);this.hide()}w(iH,bH);
iH.prototype.create=function(){iH.G.create.call(this);bd(this.b);this.o.X(this.b);this.A.X(this.b);this.k.X(this.b);if(this.g){var a=this.j.getVideoData().da;a&&cH(a[0])&&(this.g.xg(a[0]),this.g.X(this.b))}hH(this.j.getVideoData().videoId,!0,this.B,ca,this,this.j.R().Sa,this.j.R().Za)};
iH.prototype.B=function(a,b){if(this.Ac){var c=b.user_info,d=this.j.getVideoData();d&&(d.Ca=c.external_id);d=c.channel_logo_url||c.image_url;Bv(this.o.template,"banner",c.channel_banner_url);Bv(this.k.template,"image",d);Bv(this.k.template,"author",c.channel_title||c.username);this.g&&b.watch_next&&(this.g.xg(b.watch_next),this.g.X(this.b));c=c.subscription_button_html;this.k.template.b["html5-subscribe-button-container"].innerHTML=c?c:""}};function jH(a,b){return C(a.b.b,b)};function kH(a,b){var c=["div",["video-ads","html5-stop-propagation"],["div","video-ad-interstitial",["span","",Y(0,"YTP_AD_RESUME_MESSAGE")]],["div","video-ad-status-bar",["div","video-ad-label",Y(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"}]];X.call(this,c);this.W=b}w(kH,X);kH.prototype.g=null;kH.prototype.j=null;kH.prototype.b=null;
function lH(a){if(!a.g&&(a.g=a.template.b["ad-container"],a.W.R().Tb)){var b=jH(a.W.R(),"927622")?"ad-container-single-media-element-annotations":"ad-container-single-media-element";O(a.g,b)}return a.g}function mH(a){a.b&&(a.W.R().Tb?(P(a.b,"ad-video"),nH(a.W.app,a.b),a.b=null):(dd(a.b),Mt(a.b)))}
function oH(a){if(!a.j){if(a.W.R().gc){var b=Yc("button");O(b,"video-click-tracking");ad(b,Xe("YTP_VISIT_ADVERTISERS_SITE"));var c=Yc("div");O(c,"video-click-tracking-container");c.appendChild(b);lH(a).appendChild(c)}else b=Yc("div"),og(b,["video-click-tracking","ad-video"]),lH(a).appendChild(b);a.j=b}return a.j}kH.prototype.J=function(){kH.G.J.call(this);this.b&&(nH(this.W.app,this.b),this.b=null);mH(this);bd(lH(this));bd(oH(this));this.j=this.g=null;delete this.W};
function pH(a){if(!a.b){var b;b=a.W.app;if(b.b.Tb){var c=Mf(b.k),d=Yf(b.k);b.U=new xf(c.x,c.y,d.width,d.height);qH(b.A);Nt(b.k,1);Mt(b.k);b=b.k}else b=lE.getTag(void 0);a.b=b;og(a.b,["video-stream","ad-video"])}return a.b};function rH(){DE.call(this,84,84);this.g=this.width/2;this.k=this.height/2}w(rH,DE);var sH=3*Math.PI/2,tH=2*Math.PI;function uH(a,b){fH.call(this,a.app.g.j,["a","videowall-still",{tabIndex:0,style:"{{background}}"},["span","videowall-still-featured-label",Y(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",Y(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"],Y(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"],Y(0,"YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.W=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.iv);this.listen("keypress",this.jv)}w(uH,fH);f=uH.prototype;
f.xg=function(a,b){uH.G.xg.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"==es(this.o).type?e=!0:this.o&&(c=!0);Q(this.element,"videowall-still-featured",!!a.featured);Q(this.element,"videowall-still-list",c);Q(this.element,"videowall-still-episodic",d);Q(this.element,"videowall-still-mix",e)};
f.select=function(a,b){vH(this);var c=this.W.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.mb||"detailpage"!=c.b.$?g?(c.P=!1,Vs(c,d,void 0,void 0,void 0)):Ps(c,d,1):(g=new Ir(d),g=wH(c.b,g,{}),q("yt.player.exports.navigate")(g,e,!0),c.dk(g,b))};
f.yp=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,tH);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,
sH,c*tH+sH,!1);b.context.lineWidth=4;b.context.strokeStyle="#fff";b.context.stroke();b=Math.max(1E4-a,0);Bv(this.b,"autoplay",Xe("YTP_AUTOPLAY_COUNTDOWN_2",{SECONDS_LEFT:Math.ceil(b/1E3)}));1E4<=a&&this.select(!0)};f.Cw=function(a){a.stopPropagation();this.g&&(this.C.log({cancelButtonClick:"1"}),vH(this))};function vH(a){a.g&&(Ue(a.g),a.g=0,Q(a.element,"videowall-still-autoplay",!1))}f.iv=function(a){this.select(!1,a.ctrlKey);a.stopPropagation()};
f.jv=function(a){switch(a.keyCode){case 13:case 32:this.select(),a.preventDefault()}};f.J=function(){vH(this);uH.G.J.call(this)};function xH(a,b,c){bH.call(this,a,b,"videowall-endscreen");this.C=c;this.A=[];this.g=this.k=null;this.B=!1;this.o=0;this.$a.subscribe("onResize",this.kB,this);this.$a.subscribe("videodatachange",this.lB,this);this.hide()}w(xH,bH);xH.b="feature-video";f=xH.prototype;f.create=function(){xH.G.create.call(this);var a=this.j.getVideoData();a&&(this.g=a.da);yH(this)};f.destroy=function(){bd(this.b);this.g=[];xH.G.destroy.call(this)};
f.show=function(){xH.G.show.call(this);var a;if(a=this.g&&this.g.length)a=!!zH(this,0).k;if(a){a=zH(this,0);vH(a);if(!a.b){a.b=new wv(["div",["videowall-still-listlabel-autoplay","videowall-still-listlabel"],["div","videowall-still-listlabel-autoplay-label",["span","videowall-still-listlabel-autoplay-label-message",Y(0,"YTP_AUTOPLAY")]," ",["span","","{{autoplay}}"]]]);S(a,a.b);a.b.X(a.element);var b=new FA(a.D);S(a,b);b.listen("click",a.Cw,a);b.X(a.b.K(),0);GA(b,"videowall-still-listlabel-autoplay-cancel");
b.oa(Y(0,"YTP_CANCEL"));a.j=new rH;S(a,a.j);O(a.j.K(),"autoplay-play-canvas");a.j.X(a.element)}Q(a.element,"videowall-still-autoplay",!0);a.C.log({cancelButtonShow:"1"});a.B=new Date;a.g=Te(u(a.yp,a),50);a.yp()}};f.hide=function(){xH.G.hide.call(this);var a=this.A[0];a&&vH(a)};
function yH(a){if(a.Ac){bd(a.b);var b=Xf(a.K()),c=b.height,d;t:{if(ng(qt(a.j),"ad-showing")&&(d=H("ad-container"))){d=Yf(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.g.length,c=!1;cH(a.g[0],2<e&&2<d)&&(c=!0,g+=3);Q(a.b,xH.b,c);for(var h=0,k=0,l=Lb(b),p=!0;0<=g&&(h<d||k<e);){var r=g>=k,t=g>=h;if(p&&t||!r&&t)g-=h,k++;else if(r)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&&RB(a.k);c=AH(e);g={hd:a.k};a.k=QB(".videowall-still",c,g);c=AH(e.clone().scale(2));g.hd=a.k;h="."+xH.b+" .videowall-still:first-child";QB(h,c,g);c=e.width*d.width;d=e.height*d.height;Vf(a.b,c,d);Kf(a.b,(b.width-c)/2,(b.height-d)/2)}b=0;for(c=a.o;b<c;b++)zH(a,b).X(a.b)}}function zH(a,b){var c=a.A[b];c||(c=new uH(a.j,a.C),S(a,c),a.A[b]=c);c.xg(a.g[b],0==b&&a.g[0].featured);return c}
function AH(a){return["width:"+a.width+"px","height:"+a.height+"px"]}f.kB=function(){yH(this)};f.lB=function(){var a=this.j.getVideoData().da;this.g!=a&&(this.g=a,yH(this))};function BH(a){gu.call(this,a);We({});this.ua="endscreen";this.hc="end";this.g=null;var b=a.R();CH(a)?this.g=new xH(this.b,this.M,this):b.qh?(a=b.b.C,b=new iH(this.b,this.M,a),a&&R(b.g.K(),"click",u(this.Vz,this)),this.g=b):this.g=new bH(this.b,this.M);this.g.X(qt(this.b))}w(BH,gu);function DH(a){return EH(a.R())&&1==Ls(a.app).getPlayerType()}function CH(a){a=a.R();return a.Ic&&!a.qh}f=BH.prototype;f.Ja=function(a){return DH(a)};
f.create=function(){BH.G.create.call(this);var a=Math.max(1E3*(this.b.getVideoData().Oa-10),0),a=new Xt(a,2147483647,{id:"preload"}),b=new Xt(2147483647,2147483647,{id:"load",priority:6});this.Hf(a,b)};f.destroy=function(){hu(this);this.g.destroy();BH.G.destroy.call(this)};f.load=function(){BH.G.load.call(this);this.g.show();if(this.b.R().qh&&.01>Math.random()){var a=this.b.R().b.C;this.log({trailerEndscreenShow:1,watchNext:a?1:0})}};f.unload=function(){BH.G.unload.call(this);this.g.hide()};
f.Ec=function(a){BH.G.Ec.call(this,a);var b=this.b.getVideoData(),c=!CH(this.b)||!(!b.da||!b.da.length);this.b.R();b=as(b,"ypc_module");c&&!b&&("preload"==a.getId()?this.g.create():FH(this.b.app)||this.load())};f.ld=function(a){"load"==a.getId()&&this.loaded&&this.unload();BH.G.ld.call(this,a)};f.Vz=function(a){var b=this.g.g.videoId,b=GH(this.b.R(),b,null);lu(this,b,a.ctrlKey)};function HH(a){return DH(a)?new BH(a):null};function IH(a){lf("/gen_204?"+a,void 0)}function JH(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=Xd("/sharing_services",a);lf(h)};function KH(a){var b=document.location.protocol+"//"+document.domain+"/post_login",b=Wd(b,"mode","subscribe"),b=Wd("/signin?context=popup","next",b),b=Wd(b,"feature","sub_button");if(b=window.open(b,"loginPopup","width=375,height=440,resizable=yes,scrollbars=yes",!0)){var c=Sh("LOGGED_IN",function(b){Uh(Re("LOGGED_IN_PUBSUB_KEY"));Pe("LOGGED_IN",!0);a(b)});Pe("LOGGED_IN_PUBSUB_KEY",c);b.moveTo((screen.width-375)/2,(screen.height-440)/2)}}ba("yt.pubsub.publish",Vh,void 0);function LH(){TE.call(this)}w(LH,TE);da(LH);f=LH.prototype;f.Ld="subscription-button";
f.register=function(){VE(this,"click",this.Zs);UE(this,"subscription-subscribe-loading",this.Ys);UE(this,"subscription-subscribe-loaded",this.Xs);UE(this,"subscription-unsubscirbe-loading",this.Ys);UE(this,"subscription-unsubscribe-loaded",this.Xs);UE(this,"subscription-subscribe-success",this.KD);UE(this,"subscription-unsubscribe-success",this.LD);UE(this,"subscription-enable-ypc",this.JD);UE(this,"subscription-disable-ypc",this.ID)};
f.Zs=function(a){var b=this.Y(a,"href"),c;c=(c=Re("PLAYER_CONFIG"))&&c.args&&void 0!==c.args.authuser?!0:!(!Re("SESSION_INDEX")&&!Re("LOGGED_IN"));if(b)a=this.Y(a,"target")||"_self",window.open(b,a);else if(c){b=this.Y(a,"channel-external-id");c=this.Y(a,"sessionlink");var d;if(this.Y(a,"ypc-enabled")){d=this.Y(a,"ypc-item-type");var e=this.Y(a,"ypc-item-id"),g=this.Y(a,"ypc-offers-url");d={itemType:d,itemId:e,offersUrl:g,subscriptionElement:a}}else d=null;e=this.Y(a,"parent-url");this.Y(a,"is-subscribed")?
(g=this.Y(a,"subscription-id"),Vh("subscription-unsubscribe",b,g,d,a,c,e)):Vh("subscription-subscribe",b,d,a,c,e)}else MH(this,a)};f.Ys=function(a){this.hg(a,this.gt,!0)};f.Xs=function(a){this.hg(a,this.gt,!1)};f.KD=function(a,b){this.hg(a,this.ht,!0,b)};f.LD=function(a){this.hg(a,this.ht,!1)};f.JD=function(a){this.hg(a,this.$D)};f.ID=function(a){this.hg(a,this.ZD)};
f.ht=function(a,b,c){b?(rg(a,"is-subscribed","true"),c&&rg(a,"subscription-id",c)):(this.removeData(a,"is-subscribed"),this.removeData(a,"subscription-id"));NH(this,a)};f.gt=function(a,b){var c=td(a,"yt-uix-button-subscription-container");Q(c,"yt-subscription-button-disabled-mask-container",b);a.setAttribute("aria-busy",b?"true":"false");a.disabled=b};
function NH(a,b){var c=a.Y(b,"style-type"),d=!!a.Y(b,"is-subscribed"),c="-"+c,e="yt-uix-button-subscribed"+c;Q(b,"yt-uix-button-subscribe"+c,!d);Q(b,e,d);a.Y(b,"subscriber-count-tooltip")&&!a.Y(b,"subscriber-count-show-when-subscribed")&&(c=Z(XE.getInstance()),Q(b,c,!d),b.title=d?"":a.Y(b,"subscriber-count-title"));d?L(function(){O(b,"hover-enabled")},1E3):P(b,"hover-enabled")}
f.$D=function(a){var b=!!this.Y(a,"ypc-item-type"),c=!!this.Y(a,"ypc-item-id"),d=!!this.Y(a,"ypc-offers-url");!this.Y(a,"ypc-enabled")&&b&&c&&d&&(O(a,"ypc-enabled"),rg(a,"ypc-enabled","true"))};f.ZD=function(a){this.Y(a,"ypc-enabled")&&(P(a,"ypc-enabled"),this.removeData(a,"ypc-enabled"))};function OH(a,b){var c=Mc(Z(a));return hb(c,function(a){return b==this.Y(a,"channel-external-id")},a)}f.zE=function(a,b,c){var d=xb(arguments,2);z(a,function(a){b.apply(this,tb(a,d))},this)};
f.hg=function(a,b,c){var d=OH(this,a),d=tb([d],xb(arguments,1));this.zE.apply(this,d)};function MH(a,b){var c=u(function(a){a.discoverable_subscriptions&&Pe("SUBSCRIBE_EMBED_DISCOVERABLE_SUBSCRIPTIONS",a.discoverable_subscriptions);this.Zs(b)},a);KH(c)};function PH(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))pc&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=null,c=Da(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 QH(a,b){var c;c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;(c=PH(a,c))?(c.opener||(c.opener=window),c.focus()):c=null;return!c};function RH(a){X.call(this,["div","ytp-action-buttons"]);this.j=new FA(a,"ytp-button-info",Y(0,"YTP_MORE_INFO"));S(this,this.j);this.j.X(this.element);IA(this.j,3500);this.k=new FA(a,"ytp-button-share",Y(0,"YTP_SHARE"));S(this,this.k);this.k.X(this.element);IA(this.k,3400);this.b=new FA(a,"ytp-button-dislike",Y(0,"YTP_DISLIKE"));S(this,this.b);IA(this.b,3300);rg(this.b.K(),"tooltip-below","1");a.Bf(this.b.K(),"YTP_DISLIKE_AS",Y(0,"YTP_DISLIKE"));this.g=new FA(a,"ytp-button-like",Y(0,"YTP_LIKE"));
S(this,this.g);IA(this.g,3200);rg(this.g.K(),"tooltip-below","1");a.Bf(this.g.K(),"YTP_LIKE_AS",Y(0,"YTP_LIKE"))}w(RH,X);function SH(){X.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(SH,X);SH.prototype.J=function(){this.b=this.g=null;SH.G.J.call(this)};function TH(){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",Y(0,"YTP_MORE")]];X.call(this,a)}w(TH,X);function UH(a,b,c,d){FA.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);O(this.element,"share-service-icon-sharebar");IA(this,3700)}w(UH,FA);function VH(){X.call(this,["div","ytp-share-url-container",{tabIndex:3600},["input","ytp-share-url"]]);this.b=this.template.b["ytp-share-url"]}w(VH,X);VH.prototype.J=function(){this.b=null;VH.G.J.call(this)};function WH(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",Y(0,"YTP_SHARE_WITH_PLAYLIST")]]];qE.call(this,c);this.k=b;this.B=a;this.b=null;this.o=[];this.j=this.g=null;this.A=new FA(this.B,"yt-uix-button-icon-share-bar-close",Y(0,"YTP_CLOSE"),Y(0,"YTP_CLOSE"));this.A.X(this.template.b["share-bar-content"]);IA(this.A,3900)}
w(WH,qE);function XH(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.Za&&(b.pageid=a.k.Za);var c;YH(a)?(c=H("ytp-share-bar-checkbox"),c=!c||ng(c,"ytp-share-bar-checked")):c=!1;c&&(b.list=YH(a));Gi("/share_ajax",{context:a,method:"GET",onError:a.F,onSuccess:a.C,Gh:b})}
WH.prototype.C=function(a,b){if(!this.fa()){ZH(this);var c=this.template.b["share-bar-content"];this.b=new VH;S(this,this.b);Oc(this.b.b,{value:b.url_short});this.b.X(c);for(var d=b.links,e=0;e<Math.min(3,d.length);e++){var g=new UH(this.B,d[e].name,d[e].sname,d[e].img);S(this,g);g.X(c);g.listen("click",ra(QH,d[e].url,{}));this.o.push(g)}this.g=new TH;S(this,this.g);this.g.listen("click",u(this.I,this,b.more));this.g.X(c);Ny(this,this.template.b["ytp-share-bar-checkbox"],"click",this.D,this);this.H("menu_show")}};
WH.prototype.F=function(){};WH.prototype.I=function(a){PH(a)};function YH(a){return a.j?a.j.La:void 0}WH.prototype.D=function(){var a=H("ytp-share-bar-checkbox");qg(a,"ytp-share-bar-checked");XH(this)};function ZH(a){a.b&&(a.b.dd(),a.b=null);a.g&&(a.g.dd(),a.g=null);z(a.o,function(a){dd(a.K())});a.o=[]};function $H(a,b){qE.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 iF(this.K());S(this,this.M);this.b=null;var c=this.template.b["html5-title"];this.A=new FA(this.B);O(this.A.K(),"html5-title-text");S(this,this.A);IA(this.A,3100);this.A.listen("click",this.Mk,this);Bv(this.template,"titlebutton",this.A);var d=new FA(this.B,"html5-title-logo",Y(0,"YTP_URL_NAVIGATE"),
Y(0,"YTP_URL_NAVIGATE"));S(this,d);d.oa("YouTube");IA(d,3550);rg(d.K(),"tooltip-below","1");d.listen("click",this.Mk,this);Bv(this.template,"titlelogobutton",d);this.k=new RH(this.B);S(this,this.k);this.k.X(c,1);this.k.k.listen("click",this.ni,this);this.k.j.listen("click",this.Ak,this);this.j.yc&&this.k.j.hide();this.o=null;this.F=!1;this.g=null}w($H,qE);f=$H.prototype;f.update=function(a){this.b=a;if(this.g){var b=this.g;b.j=a;XH(b)}a=a.title||"";this.A.oa(a);HA(this.A,a)};f.Mk=function(){this.nt()};
f.Ak=function(){if(!this.F){this.F=!0;hH(this.b?this.b.videoId:void 0,!1,this.gA,ca,this,this.j.Sa,this.j.Za);if(!this.o){var a=this.template.b["html5-info-panel-loading-icon"];this.o=new KE;S(this,this.o);O(this.o.element,"html5-info-panel-loader");this.o.X(a);S(this,this.o)}this.o.show()}P(this.element,"show-share");return qg(this.element,"show-more-info")};
f.ni=function(a){P(this.element,"show-more-info");if("detailpage"!=this.j.$){if(!this.g){var b=this.g=new WH(this.B,this.j);b.j=this.b;XH(b);this.g.X(this.template.b["html5-info-bar"]);this.g.A.listen("click",this.ni,this);this.g.subscribe("menu_show",u(this.iq,this))}qg(this.element,"show-share");this.iq();a&&a.stopPropagation();Q(this.element,"share-with-playlist",!!YH(this.g))}};f.iq=function(){ng(this.element,"show-share")&&this.g.b&&this.g.b.K().focus()};
f.gA=function(a,b){if(!this.fa()){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;Ny(this,e,"click",this.Jq);e=H("html5-author-name",c);ld(e,d.channel_title||d.public_name||d.username);Ny(this,e,"click",this.Jq);var e=b.video_info,g=H("html5-subscribe-button-container",c);g.innerHTML=d.subscription_button_html?d.subscription_button_html:"";d=LH.getInstance();(d=H(Z(d),g))&&this.B.Bf(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 SH;S(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.X(H("html5-video-info",c),2);d=H("html5-description-text",c);ld(d,e.description);this.o.hide();c=H("html5-info-panel-content",c);zx(c)}};
f.Jq=function(){var a=this.j,b=this.b,c="",c=b.Ca?a.rb+"channel/UC"+b.Ca:a.rb+"user/"+b.th;this.bn(c)};f.bn=function(a){PH(a)};f.nt=function(){this.bn(wH(this.j,this.b))};f.J=function(){this.b=this.j=null;$H.G.J.call(this)};function aI(){X.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}w(aI,X);aI.prototype.Qi=function(a){Bv(this.template,"index",a+1)};function bI(a){DC.call(this,a,"ytp-button-expand",Y(0,"YTP_ST_EXPAND"),"ytp-button-collapse",Y(0,"YTP_ST_COLLAPSE"));this.oa([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",Y(0,"YTP_PLAYLIST")]])}w(bI,DC);function cI(a){X.call(this,["div","ytp-playlist-tray-controller"]);this.b=new bI(a);this.b.X(this.template.K());S(this,this.b);this.g=new aI;this.g.X(this.template.K());S(this,this.g)}w(cI,X);function dI(a,b){X.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:nB(a.videoId,"default.jpg")})}w(dI,X);
dI.prototype.Qi=function(a){Q(this.element,"ytp-playlist-tray-item-current",this.b==a)};function eI(){qE.call(this,["div","ytp-playlist-tray-tray"]);this.b=null;this.g=[]}w(eI,qE);function fI(a,b){a.b&&a.b.ja("shuffle",a.j,a);a.b=b;a.b.subscribe("shuffle",a.j,a);a.j()}eI.prototype.j=function(){Lh(this.g);this.g=[];bd(this.element);for(var a=0;a<=this.b.tc-1;++a){var b=qs(this.b,a);b&&(b=new dI(b,a),b.Qi(this.b.Ga),this.g.push(b),b.listen("click",u(this.k,this,a)),b.X(this.element))}};eI.prototype.k=function(a){this.H("playvideoat",a)};
eI.prototype.J=function(){Lh(this.g);this.g=[];bd(this.element);eI.G.J.call(this)};function gI(a){gu.call(this,a);var b=qt(a);this.B=a.app.g.j;this.o=!1;this.j=null;this.A=H("ytp-button-playlist",b);R(this.A,"click",u(this.Yo,this));this.g=this.k=null}w(gI,gu);f=gI.prototype;f.ua="playlist";
f.create=function(){gI.G.create.call(this);var a=this.b.jc();this.k=new wv(["div",["ytp-playlist-tray-container","html5-stop-propagation"]]);pt(this.b,this.k.K());this.j=new eI;this.j.subscribe("playvideoat",this.xp,this);this.j.X(this.k.K(),0);this.g=new cI(this.B);this.g.X(H("html5-title",void 0),0);this.g.b.listen("click",this.Yo,this);this.subscribe("fullscreentoggled",this.Sp,this);this.subscribe("videodatachange",this.Up,this);this.subscribe("clearvideooverlays",this.Tp,this);this.Ng();a.subscribe("shuffle",
this.Ng,this)};f.Ng=function(){var a=this.b.ep(),b=this.g.g;null!=a?b.show():b.hide();this.g.g.Qi(a);a=this.g.g;b=this.b.jc();Bv(a.template,"length",b.tc)};f.destroy=function(){gI.G.destroy.call(this);var a=this.b.jc();a&&a.ja("shuffle",this.Ng,this);this.ja("fullscreentoggled",this.Sp,this);this.ja("videodatachange",this.Up,this);this.ja("clearvideooverlays",this.Tp,this);dd(this.k.K());this.j.dispose();this.j=null;this.k.dispose();this.k=null;dd(this.g.K());this.g.dispose();this.g=null};
f.load=function(){gI.G.load.call(this);var a=this.b.jc();this.o||(fI(this.j,a),this.Ng(),this.o=!0);for(var a=this.j,b=0;b<a.g.length;b++)a.g[b].Qi(a.b.Ga);FC(this.g.b)};f.unload=function(){gI.G.unload.call(this);this.o=!1;GC(this.g.b)};f.Tp=function(){this.loaded&&this.unload()};f.xp=function(a){this.b.jp(a);this.unload()};f.Yo=function(){this.loaded?this.unload():(this.H("command_clear_video_overlays"),this.load())};f.hide=function(){var a=H("ytp-playlist-tray-info");P(a,"show-more-info");P(a,"show-share")};
f.Sp=function(a){var b=this.b.R().$;this.loaded&&!a&&"detailpage"==b&&this.unload()};f.Up=function(){var a=this.b.jc();fI(this.j,a);this.Ng()};gI.Ja=function(a){return!!a.jc()};gI.prototype.Ja=function(a){return gI.Ja(a)};gI.prototype.Dm=function(a){return!gI.Ja(a)};gI.b=function(a){return gI.Ja(a)?new gI(a):null};gI.prototype.J=function(){this.j.ja("playvideoat",this.xp,this);Sg(this.A);gI.G.J.call(this)};function hI(a,b){this.b=a;this.g=!!b}w(hI,Hh);
function iI(a,b,c){if(c)if(a.g)jI(b,c);else{var d;a.b&&(d=kI(a.b));d&&b.length?(d=[d,"/cache/videos?q=",b.join("&q=")].join(""),Gi(d,{format:"JSON",method:"GET",context:a,timeout:2E3,onSuccess:function(a,d){var h=0;d&&d.ids&&(h=d.ids.length);lI("search","success",{"num-requested":b.length,"num-cached":h});c(d)},onError:function(){lI("search","error",{"num-requested":b.length});c({})},jh:function(){lI("search","timeout",{"num-requested":b.length});mI("__notfound__");c({})}})):c({})}}
function nI(a,b,c){if(c)if(a.g)c({id:b,fmt_list:[{itag:18,lmt:14200992E5}]});else{var d;a.b&&(d=kI(a.b));d&&b?(d=[d,"cache/videos",b,"metadata"].join("/"),Gi(d,{format:"JSON",method:"GET",context:a,timeout:600,onSuccess:function(a,d){c(d);lI("meta","success",{v:b})},onError:function(){lI("meta","error",{v:b});c({})},jh:function(){lI("meta","timeout",{v:b});mI("__notfound__");c({})}})):c({})}}function lI(a,b,c){a={a:"spacecast",module:"cache",request:a,status:b};cc(a,c);IH(Vd(a))}
function jI(a,b){a.length?b({ids:a}):b({})}hI.prototype.J=function(){this.b=null;hI.G.J.call(this)};function oI(a){(this.b=a)&&mI("http://"+a)}w(oI,Hh);function kI(a){var b;(b=(b=pi("yt-spacecast-uri"))&&b.hasOwnProperty("uri")?b.uri:null)?"__notfound__"==b&&(b=null):b=a.b?"http://"+a.b:null;return b}oI.prototype.reset=function(){qi("yt-spacecast-uri")};function mI(a){var b=pi("yt-spacecast-uri");b||(b={});a?b.uri=a:delete b.uri;mi("yt-spacecast-uri",b)};var pI=q("yt.prefs.UserPrefs.prefs_")||{};ba("yt.prefs.UserPrefs.prefs_",pI,void 0);function qI(){TE.call(this)}w(qI,TE);f=qI.prototype;f.md=function(a){var b=TE.prototype.md.call(this,a);return b?b:a};f.Y=function(a,b){var c=qI.G.Y.call(this,a,b);return c?c:(c=qI.G.Y.call(this,a,"card-config"))&&(c=q(c))&&c[b]?c[b]:null};
f.show=function(a){var b=this.md(a);if(b){O(b,Z(this,"active"));var c=rI(this,a,b);if(c){c.cardTargetNode=a;c.cardRootNode=b;sI(this,a,c);var d=Z(this,"card-visible"),e=this.Y(a,"card-delegate-show")&&this.Y(b,"card-action");this.b(b,"card-action",a);this.j=a;Ax(c);L(u(function(){e||zx(c);tI(c);O(c,d)},this),10)}}};
function rI(a,b,c){var d=c||b,e=Z(a,"card");c=a.od(d);var g=Lc(Z(a,"card")+xg(d));if(g)return a=H(Z(a,"card-body"),g),jd(a,c)||(dd(c),a.appendChild(c)),g;g=document.createElement("div");g.id=Z(a,"card")+xg(d);g.className=e;(d=a.Y(d,"card-class"))&&og(g,d.split(/\s+/));d=document.createElement("div");d.className=Z(a,"card-border");b=a.Y(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=Z(a,"card-body");a=document.createElement("div");a.className="yt-uix-card-body-arrow yt-uix-card-body-arrow-"+b;dd(c);h.appendChild(c);d.appendChild(a);d.appendChild(h);g.appendChild(e);g.appendChild(d);document.body.appendChild(g);return g}
function sI(a,b,c){var d=a.Y(b,"orientation")||"horizontal",e=a.Y(b,"position"),g=!!a.Y(b,"force-position"),h=a.Y(b,"position-fixed"),d="horizontal"==d,k="bottomright"==e||"bottomleft"==e,l="topright"==e||"bottomright"==e,p,r;l&&k?(r=7,p=4):l&&!k?(r=6,p=5):!l&&k?(r=5,p=6):(r=4,p=7);var t=Rf(document.body),e=Rf(b);t!=e&&(r^=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));h&&(Dx(c,"position","fixed"),y.y+=Sc(document).y);h=Yf(c);e=
Math.min(e,(d?h.height:h.width)-24-6);6>e&&(e=6,d?y.y+=12-b.offsetHeight/2:y.x+=12-b.offsetWidth/2);var D=null;g||(D=10);h=Z(a,"card-flip");a=Z(a,"card-reverse");Q(c,h,l);Q(c,a,k);D=ME(b,r,c,p,y,null,D);!g&&D&&(D&48&&(l=!l,r^=2,p^=2),D&192&&(k=!k,r^=1,p^=1),Q(c,h,l),Q(c,a,k),ME(b,r,c,p,y));t&&(b=$f(c),g=Qc(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?Yf(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.md(a)){var b=Lc(Z(this,"card")+xg(a));b&&(P(a,Z(this,"active")),P(b,Z(this,"card-visible")),Ax(b),this.j=null,b.cardTargetNode=null,b.cardRootNode=null,b.cardMask&&(dd(b.cardMask),b.cardMask=null))}};function uI(a){a.j&&a.hide(a.j)}f.kC=function(a,b){var c=this.md(a);if(c){if(b){var d=this.od(c);if(!d)return;d.innerHTML=b}ng(c,Z(this,"active"))&&(c=rI(this,a,c),sI(this,a,c),zx(c),tI(c))}};
f.od=function(a){var b=a.cardContentNode;if(!b){var c=Z(this,"content"),d=Z(this,"card-content");(b=(b=this.Y(a,"card-id"))?Lc(b):H(c,a))||(b=document.createElement("div"));var e=b;P(e,c);O(e,d);a.cardContentNode=b}return b};function tI(a){var b=a.cardMask;b||(b=document.createElement("iframe"),b.src='javascript:""',og(b,["yt-uix-card-iframe-mask"]),a.cardMask=b);document.body.appendChild(b);b.style.top=a.offsetTop+"px";b.style.left=a.offsetLeft+"px";b.style.height=a.clientHeight+"px"};function vI(){TE.call(this);this.g={};this.k={}}w(vI,qI);da(vI);f=vI.prototype;f.Ld="clickcard";f.register=function(){VE(this,"click",this.fE,"target");VE(this,"click",this.eE,"close")};f.fE=function(a,b,c){b=rd(c.target,"button");b&&b.disabled||(a=(b=this.Y(a,"card-target"))?Lc(b):a,b=this.md(a),this.Y(b,"disabled")||(ng(b,Z(this,"active"))?(this.hide(a),P(b,Z(this,"active"))):(this.show(a),O(b,Z(this,"active")))))};
f.show=function(a){vI.G.show.call(this,a);var b=this.md(a);if(!tg(b,"click-outside-persists")){var c=ma(a);if(this.g[c])return;b=R(document,"click",u(this.jC,this,a));this.g[c]=b}a=R(window,"resize",u(this.kC,this,a,void 0));this.k[c]=a};f.hide=function(a){vI.G.hide.call(this,a);a=ma(a);var b=this.g[a];b&&(Og(b),this.g[a]=null);if(b=this.k[a])Og(b),this.k[a]=null};f.jC=function(a,b){td(b.target,"yt-uix"+(this.Ld?"-"+this.Ld:"")+"-card")||this.hide(a)};f.eE=function(a){(a=td(a,Z(this,"card")))&&this.hide(a.cardTargetNode)};function wI(){TE.call(this)}w(wI,qI);da(wI);f=wI.prototype;f.Ld="hovercard";f.register=function(){VE(this,"mouseenter",this.UD,"target");VE(this,"mouseleave",this.WD,"target");VE(this,"mouseenter",this.VD,"card");VE(this,"mouseleave",this.XD,"card")};
f.UD=function(a){if(xI!=a){xI&&(this.hide(xI),xI=null);var b=u(this.show,this,a),c=parseInt(this.Y(a,"delay-show"),10),b=L(b,-1<c?c:200);rg(a,"card-timer",b.toString());xI=a;a.alt&&(rg(a,"card-alt",a.alt),a.alt="");a.title&&(rg(a,"card-title",a.title),a.title="")}};
f.WD=function(a){var b=parseInt(this.Y(a,"card-timer"),10);N(b);this.md(a).isCardHidable=!0;b=parseInt(this.Y(a,"delay-hide"),10);b=-1<b?b:200;L(u(this.nD,this,a),b);if(b=this.Y(a,"card-alt"))a.alt=b;if(b=this.Y(a,"card-title"))a.title=b};f.nD=function(a){this.md(a).isCardHidable&&(this.hide(a),xI=null)};f.VD=function(a){a&&(a.cardRootNode.isCardHidable=!1)};f.XD=function(a){a&&this.hide(a.cardTargetNode)};var xI=null;function yI(a,b,c){this.Gc=a;this.o=!1;this.g=new Mh;this.A=Pg(this.Gc,"click",u(this.sA,this),"yt-dialog-dismiss");zI(this);this.j=b;this.k=c}var AI={LOADING:"loading",nE:"content",nK:"working"};function BI(a,b){a.fa()||a.g.subscribe("post-all",b)}function zI(a){a=H("yt-dialog-fg-content",a.Gc);var b=[];Mb(AI,function(a){b.push("yt-dialog-show-"+a)});pg(a,b);O(a,"yt-dialog-show-content")}f=yI.prototype;
f.show=function(){if(!this.fa()){document.activeElement&&document.activeElement!=document.body&&document.activeElement.blur();this.b||(this.b=Lc("yt-dialog-bg"),this.b||(this.b=Yc("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=Qc(b).height;if(Rc(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";zx(this.b);Dg(this.Gc);a=CI(this);DI(a);this.j||R(document,"keydown",u(this.gq,this));a=this.Gc;d=Sh("player-added",this.hA,this);rg(a,"player-ready-pubsub-key",d);this.k&&R(document,"click",u(this.hq,this));zx(this.Gc);O(document.body,"yt-dialog-active");uI(vI.getInstance());uI(wI.getInstance())}};function EI(){var a=Mc("yt-dialog");return ib(a,function(a){return yx(a)})}f.hA=function(){Dg(this.Gc)};
function CI(a){var b=Nc("iframe",null,a.Gc);z(b,function(a){var b=tg(a,"onload");b&&(b=q(b))&&R(a,"load",b);if(b=tg(a,"src"))a.src=b},a);return ub(b)}function DI(a){z(document.getElementsByTagName("iframe"),function(b){-1==fb(a,b)&&O(b,"iframe-hid")})}function FI(){var a=Mc("iframe-hid");z(a,function(a){P(a,"iframe-hid")})}f.sA=function(a){a=a.currentTarget;a.disabled||(a=tg(a,"action")||"",GI(this,a))};
function GI(a,b){if(!a.fa()){a.g.H("pre-all");a.g.H("pre-"+b);Ax(a.Gc);uI(vI.getInstance());uI(wI.getInstance());EI()||(Ax(a.b),P(document.body,"yt-dialog-active"),Eg(),FI());a.j||Rg(document,"keydown",u(a.gq,a));a.k&&Rg(document,"click",u(a.hq,a));var c=a.Gc;if(c){var d=tg(c,"player-ready-pubsub-key");d&&(Uh(d),ug(c,"player-ready-pubsub-key"))}a.g.H("post-all");Vh("yt-ui-dialog-hide-complete",a);"cancel"==b&&Vh("yt-ui-dialog-cancelled",a);a.g&&a.g.H("post-"+b)}}
f.gq=function(a){L(u(function(){27==a.keyCode&&GI(this,"cancel")},this),0)};f.hq=function(a){"yt-dialog-base"==a.target.className&&GI(this,"cancel")};f.fa=function(){return this.o};f.dispose=function(){yx(this.Gc)&&GI(this,"dispose");Og(this.A);this.g.dispose();this.g=null;this.o=!0};ba("yt.ui.Dialog",yI,void 0);function HI(){TE.call(this);this.g=[];this.j={}}w(HI,TE);da(HI);f=HI.prototype;f.Ld="button";f.Sf=null;f.register=function(){VE(this,"click",this.YD);VE(this,"keydown",this.SD);VE(this,"keypress",this.TD);UE(this,"page-scroll",this.RD)};f.YD=function(a){a&&!a.disabled&&(II(this,a),this.click(a))};
f.SD=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=JI(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=md(b,d);if(e){e=e.tagName.toLowerCase();var g;"ul"==e?g=this.hE:"table"==e&&(g=this.gE);g&&KI(this,a,b,c,u(g,this))}}};f.RD=function(){var a=this.j;if(0!=Pb(a))for(var b in a){var c=a[b],d=td(c.activeButtonNode||c.parentNode,Z(this));if(void 0==d||void 0==c)break;LI(this,d,c,!0)}};
function KI(a,b,c,d,e){var g=yx(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=MI(a,c))?(b=gd(d),"a"==b.tagName.toLowerCase()?window.location=b.href:Tg(b,"click")):h&&NI(a,b):g?27==d.keyCode?(MI(a,c),NI(a,b)):e(b,c,d):(a=ng(b,Z(a,"reverse"))?38:40,d.keyCode==a&&(Tg(b,"click"),d.preventDefault()))}f.TD=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=JI(this,a),yx(a)&&c.preventDefault())};function MI(a,b){var c=Z(a,"menu-item-highlight"),d=H(c,b);d&&P(d,c);return d}
function OI(a,b,c){O(c,Z(a,"menu-item-highlight"));b.setAttribute("aria-activedescendant",c.getAttribute("id"))}f.gE=function(a,b,c){var d=MI(this,b);b=Ag("table",b);var e=Ag("tr",b),e=Nc("td",null,e).length;b=Nc("td",null,b);d=PI(d,b,e,c);-1!=d&&(OI(this,a,b[d]),c.preventDefault())};f.hE=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=MI(this,b);b=hb(Nc("li",null,b),yx);d=PI(d,b,1,c);OI(this,a,b[d]);c.preventDefault()}};
function PI(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 QI(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=Z(a,"menu-mask"),b.iframeMask=c);return c}
function LI(a,b,c,d){var e=td(b,Z(a,"group")),g=!!a.Y(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=$f(b);if(ng(b,Z(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(l){}}ng(b,"flip")&&(ng(b,Z(a,"reverse"))?(g=6,h=7):(g=7,h=6));var p;a.Y(b,"button-has-sibling-menu")?p=Of(e):a.Y(b,"button-menu-root-container")&&(p=RI(a,b));pc&&!Ac("8")&&(p=null);var r;p&&(r=$f(p),r=new wf(-r.top,r.left,r.top,-r.left));p=new F(0,1);ng(b,Z(a,"center-menu"))&&(p.x-=Math.round((Yf(c).width-Yf(b).width)/
2));d&&(p.y+=Sc(document).y);if(a=QI(a,b))b=Yf(c),a.style.width=b.width+"px",a.style.height=b.height+"px",ME(e,g,a,h,p,r,65),d&&Dx(a,"position","fixed");ME(e,g,c,h,p,r,65)}function RI(a,b){if(a.Y(b,"button-menu-root-container")){var c=a.Y(b,"button-menu-root-container");return td(b,c)}return document.body}
f.as=function(a){if(a){var b=JI(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.Y(a,"button-has-sibling-menu")?c=a.parentNode:c=RI(this,a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=QI(this,a);d&&c.appendChild(d);(c=!!this.Y(a,"button-menu-fixed"))&&(this.j[xg(a).toString()]=b);LI(this,a,b,c);Wh("yt-uix-button-menu-before-show",a,b);zx(b);this.b(a,
"button-menu-action",!0);O(a,Z(this,"active"));b=u(this.Eq,this,a,!1);c=u(this.Eq,this,a,!0);d=u(this.qz,this,a,void 0);this.Sf&&JI(this,this.Sf)==JI(this,a)||SI(this);Vh("yt-uix-button-menu-show",a);Og(this.g);this.g=[R(document,"click",c),R(document,"contextmenu",b),R(window,"resize",d)];this.Sf=a}}};
function NI(a,b){if(b){var c=JI(a,b);if(c){a.Sf=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");Ax(c);a.b(b,"button-menu-action",!1);var d=QI(a,b),e=xg(c).toString();delete a.j[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=td(b,Z(a,"group")),g=[Z(a,"active")];
e&&g.push(Z(a,"group-active"));pg(b,g);Vh("yt-uix-button-menu-hide",b);Og(a.g);a.g.length=0}}f.qz=function(a,b){var c=JI(this,a);if(c){b&&(c.innerHTML=b);var d=!!this.Y(a,"button-menu-fixed");LI(this,a,c,d)}};
f.Eq=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=td(c,Z(this));if(d){var d=JI(this,d),e=JI(this,a);if(d==e)return}var d=td(c,Z(this,"menu")),e=d==JI(this,a),g=ng(c,Z(this,"menu-item")),h=ng(c,Z(this,"menu-close"));if(!d||e&&(g||h))if(NI(this,a),d&&b&&this.Y(a,"button-menu-indicate-selected")){if(a=H(Z(this,"content"),a))Gc&&"innerText"in c?b=c.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(b=[],qd(c,b,!0),b=b.join("")),b=b.replace(/ \xAD /g," ").replace(/\xAD/g,
""),b=b.replace(/\u200B/g,""),Gc||(b=b.replace(/ +/g," "))," "!=b&&(b=b.replace(/^\s*/,"")),ld(a,b);TI(this,d,c)}};function TI(a,b,c){var d=Z(a,"menu-item-selected");a=Mc(d,b);z(a,function(a){P(a,d)});O(c.parentNode,d)}function JI(a,b){if(!b.widgetMenu){var c=a.Y(b,"button-menu-id"),c=c&&Lc(c),d=Z(a,"menu");c?og(c,[d,Z(a,"menu-external")]):c=H(d,b);b.widgetMenu=c}return b.widgetMenu}
function II(a,b){if(a.Y(b,"button-toggle")){var c=td(b,Z(a,"group"));if(c&&a.Y(c,"button-toggle-group")){var d=a.Y(c,"button-toggle-group"),c=Mc(Z(a),c),e=Z(a,"toggled"),g=ng(b,e);z(c,function(a){a!=b||"optional"==d&&g?P(a,e):O(b,e)})}else qg(b,Z(a,"toggled"))}}f.click=function(a){if(JI(this,a)){var b=JI(this,a),c=td(b.activeButtonNode||b.parentNode,Z(this));c&&c!=a?(NI(this,c),L(u(this.as,this,a),1)):yx(b)?NI(this,a):this.as(a);a.focus()}this.b(a,"button-action")};
function SI(a){a.Sf&&NI(a,a.Sf)};function UI(){TE.call(this)}w(UI,TE);da(UI);f=UI.prototype;f.Pc=null;f.gj=null;f.Ld="overlay";f.register=function(){VE(this,"click",this.lt,"target");VE(this,"click",this.hide,"close");VI(this)};
f.lt=function(a){if(!this.Pc||!yx(this.Pc.Gc)){var b=this.md(a);a=WI(b,a);b||(b=a?a.overlayParentNode:null);if(b&&a){var c=!!this.Y(b,"disable-shortcuts")||!1;this.Pc=new yI(a,c);this.gj=b;var d=H("yt-dialog-fg",a);if(d){var e=this.Y(b,"overlay-class")||"",g=this.Y(b,"overlay-style")||"default",h=this.Y(b,"overlay-shape")||"default",e=e?e.split(" "):[];e.push(Z(this,g));e.push(Z(this,h));og(d,e)}this.Pc.show();VI(this);c||(c=u(function(a){ng(a.target,"yt-dialog-base")&&XI(this)},this),a=H("yt-dialog-base",
a),this.g=R(a,"click",c));this.b(b,"overlay-shown");uI(vI.getInstance());SI(HI.getInstance())}}};function VI(a){a.j||(a.j=Sh("yt-uix-overlay-hide",YI));a.Pc&&BI(a.Pc,function(){var a=UI.getInstance();a.gj=null;a.Pc.dispose();a.Pc=null})}function XI(a){if(a.Pc){var b=a.gj;GI(a.Pc,"overlayhide");a.b(b,"overlay-hidden");a.gj=null;a.g&&(Og(a.g),a.g=null);a.Pc=null}}
function WI(a,b){var c;if(a)if(c=H("yt-dialog",a)){var d=Lc("body-container");d&&(d.appendChild(c),a.overlayContentNode=c,c.overlayParentNode=a)}else c=a.overlayContentNode;else b&&(c=td(b,"yt-dialog"));return c}f.od=function(a){return H("yt-dialog-content",a.overlayContentNode||a)};f.hide=function(){Vh("yt-uix-overlay-hide")};function YI(){XI(UI.getInstance())}f.show=function(a){this.lt(a)};function ZI(a){this.g=a;this.b=[];this.b.push(Sh("yt-uix-load-more-success",this.j,this))}w(ZI,Hh);var $I=!1;ZI.prototype.j=function(){var a={},b=tb(ub(Mc("spacecast-item")),ub(Mc("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=Sb(a),c=v();iI(this.g,b,u(this.k,this,a,c))};
ZI.prototype.k=function(a,b,c){b=v()-b;var d=0;c&&c.ids&&(aJ(),z(c.ids,function(b){z(a[b],function(a){O(a,"spacecast-cached")})}),d=c.ids.length);IH(Vd({a:"spacecast",module:"highlight",count:Sb(a).length,cached:d,"cache-latency":b}));d&&bJ()};function bJ(){if(Re("INIT_SPACECAST_PROMO")&&!$I){var a=H("spacecast-promo-overlay");a&&($I=!0,UI.getInstance().show(a))}}function aJ(){var a=q("yt.player.getPlayerByElement");a&&a("player-api")}
ZI.prototype.J=function(){this.g=null;this.b.length&&(Uh(this.b),this.b=[]);ZI.G.J.call(this)};function cJ(){this.j=this.g=this.b=null}w(cJ,Hh);da(cJ);cJ.prototype.init=function(a){this.b||(this.b=new oI(a||null),this.g=new hI(this.b),this.j=new ZI(this.g))};cJ.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);cJ.G.J.call(this);delete cJ.Db};function dJ(a){gu.call(this,a);this.hc=this.ua="spacecast";this.g=null}w(dJ,gu);f=dJ.prototype;f.Ja=function(){return!!this.b.getVideoData().Ra};function eJ(a){return a.getVideoData().Ra?new dJ(a):null}f.create=function(){dJ.G.create.call(this);var a=this.b.getVideoData().Ra,b=cJ.getInstance();b&&b.init(a);this.g=b;this.load()};f.destroy=function(){dJ.G.destroy.call(this);this.g=null};
f.load=function(){dJ.G.load.call(this);var a=this.b.getVideoData().videoId,b=this.g.g,c=v(),c=u(this.mA,this,a,c),d=window.spacecastMeta;d&&d.id&&d.id==a?(c(d),lI("meta","prefetch",{v:a})):nI(b,a,c)};f.mA=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=fJ(this,kI(this.g.b),e,g))d=this.b.getVideoData(),d.aa=c,Tr(d),this.b.dp("auto"),d=1}}iu(this);IH(Vd({a:"spacecast",module:"player",v:a,docid:a,cached:d,"cache-latency":b}))};
function fJ(a,b,c,d){if(!b)return null;a=a.b.getVideoData();a=Mr(a.ue);a=hb(a,function(a){return!!d[a.itag]});if(!a.length)return null;var e=xi(b)||"",g=Number(Nd(b)[4]||null)||null;return A(a,function(a){var b=K(K(de(ce(be(xe(a.url),"http"),e),g),"orig_host",yi(a.url)),"scid",c);a.url=b.toString();return Vd(a)}).join(",")};function gJ(){var a=ec,b;if(b=cq())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");
ad(document.documentElement,c);c=Lc("NvImageDetectionFFID");try{if(null!=c){b=27527<=c.NvGetDriverVersion();break t}}catch(d){}}b=!1}return b||!(!a||-1==a.indexOf("Sony"))};function hJ(a){EA.call(this);this.b="3D";this.element=new JA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);S(this,this.element);MA(this.element,2300);this.priority=10;this.C=!0;LA(this.element,1)}w(hJ,EA);hJ.prototype.M=function(){this.element.wb("select")};hJ.prototype.getSelected=function(){return this.element.getSelected()};function iJ(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);b=Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE");this.b=new FA(a,"ytp-dialog-button",b);S(this,this.b);this.b.oa(b);b=Y(0,"YTP_CLOSE");this.g=new FA(a,"ytp-dialog-button",b);this.g.oa(b);S(this,this.g);this.template.update({content:new sE(Y(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(iJ,jC);function jJ(a){gu.call(this,a);We({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 hJ(uu(this));S(this,this.g);LA(this.g.element,1);this.g.listen("change",this.Hz,this);this.g.listen("select",this.Iz,this);this.j=new iJ(uu(this));S(this,this.j);this.j.b.listen("click",this.Kq,
this);this.j.g.listen("click",this.pg,this)}w(jJ,gu);f=jJ.prototype;f.nn="threeDModuleData";f.ua="threed";f.hc="threed";f.create=function(){kJ(this.b.app,void 0);vu(this,this.g);jJ.G.create.call(this)};f.destroy=function(){wu(this,this.g);kJ(this.b.app,!0);jJ.G.destroy.call(this)};function lJ(a){return jJ.prototype.Ja(a)?new jJ(a):null}f.Ja=function(a){a=a.getVideoData();return!!a.xa||!!a.Nr};
function mJ(a,b){if(a.b.getVideoData().Lf!=b)if(ku(a),gJ()){var c=a.b.app,d=Ls(c);d.b.g&&d.b.g.b||(d.b.Lf=!d.b.Lf,Tr(d.b),nJ(d,"r"));kJ(c)}else b&&(ku(a,a.j),LA(a.g.element,1),xu(a))}f.Kq=function(){lu(this,"/select_3d_mode?video_id="+this.b.getVideoData().videoId)};f.Hz=function(){0==this.g.getSelected()?mJ(this,!0):mJ(this,!1)};f.Iz=function(){xu(this);this.Kq()};function oJ(a){gu.call(this,a);We({YTP_YPC_START_RENTAL_HEADER:"Would you like to start this rental?",YTP_YPC_START_RENTAL_BUTTON:"Start rental period"});this.g=new wv(["div","ytp-ypc-clickwrap-overlay",["h2","header",Xe("YTP_YPC_START_RENTAL_HEADER")],["div","description",this.b.getVideoData().k.ypc_clickwrap_message],["button","confirm-button",Xe("YTP_YPC_START_RENTAL_BUTTON")]]);Ly(this.g.K());pt(this.b,this.g.K());S(this,this.g);this.j=this.g.b["confirm-button"]}w(oJ,gu);f=oJ.prototype;f.ua="ypc_clickwrap";
f.hc="ypc-clickwrap";f.Ja=function(){return as(this.b.getVideoData(),"ypc_clickwrap_module")};function pJ(a){return as(a.getVideoData(),"ypc_clickwrap_module")?new oJ(a):null}f.create=function(){oJ.G.create.call(this);this.load()};f.load=function(){oJ.G.load.call(this);Ky(this.g.K());R(this.j,"click",u(this.EB,this))};f.unload=function(){Ly(this.g.K());Sg(this.j);oJ.G.unload.call(this)};f.EB=function(){iu(this);this.destroy()};function qJ(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 rJ(){X.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"];Ny(this,this.g,"click",this.hide);this.b=this.template.b["ytp-drawer-open-button"];Ny(this,this.b,"click",this.show);this.oa(null);this.hide()}w(rJ,X);rJ.prototype.hide=function(){O(this.element,"ytp-drawer-closed")};
rJ.prototype.oa=function(a){a?(rJ.G.oa.call(this,a),Ky(this.element)):Ly(this.element)};rJ.prototype.show=function(){L(ra(P,this.element,"ytp-drawer-closed"),0)};rJ.prototype.J=function(){Sg(this.g);Sg(this.b);this.b=this.g=null;rJ.G.J.call(this)};function sJ(a,b){$i.call(this);this.b=new rJ;S(this,this.b);this.g=document.createElement("div");og(this.g,["html5-stop-propagation","html5-ypc-endscreen"]);this.k=document.createElement("div");O(this.k,"html5-ypc-overlay");this.j=new wv(["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}}"]]);
S(this,this.j);this.o=this.j.b["html5-ypc-purchase"];R(this.o,"click",u(this.A,this));ld(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.X(a)}w(sJ,$i);sJ.prototype.J=function(){sJ.G.J.call(this);this.o&&Sg(this.o);dd(this.g);dd(this.k);this.k=this.g=this.b=null};sJ.prototype.X=function(a){this.b.X(a);this.b.oa(this.j.K());a.appendChild(this.g)};
function tJ(a){var b=a.j.K();a.g.appendChild(b);a.b.oa(null);Ky(a.g)}sJ.prototype.A=function(){this.H("ypcContentRequest")};function uJ(a){gu.call(this,a);this.j=this.g=null;this.k=NaN}w(uJ,gu);f=uJ.prototype;f.ua="ypc";f.hc="ypc";f.Ja=function(){return as(this.b.getVideoData(),"ypc_module")};function vJ(a){return as(a.getVideoData(),"ypc_module")?new uJ(a):null}f.create=function(){uJ.G.create.call(this);this.g=new qJ(this.b.getVideoData());L(u(this.load,this),0)};f.destroy=function(){uJ.G.destroy.call(this);this.g=null};
f.load=function(){if(this.g){uJ.G.load.call(this);var a=this.b.getVideoData();if(this.g.videoId&&!a.za)this.b.$p({video_id:this.g.videoId,ypc_preview:1});else{var b=H("html5-video-container",qt(this.b));this.j=new sJ(b,this.g);this.j.subscribe("ypcContentRequest",this.xx,this);this.g.videoId&&cd(this.b.app.g.F,this.j.k,0);EH(this.b.R())&&(b=new Xt(2147483647,2147483647,{priority:2}),this.Hf(b));this.j.b.show();N(this.k);this.k=L(u(function(){this.j.b.hide()},this),1E4);this.g.videoId?a.za&&iu(this):
tJ(this.j)}}};f.unload=function(){hu(this);Lh(this.j);this.j=null;uJ.G.unload.call(this)};f.Ec=function(a){uJ.G.Ec.call(this,a);tJ(this.j)};f.ld=function(a){uJ.G.ld.call(this,a);a=this.j;Ly(a.g);a.b.oa(a.j.K())};f.xx=function(){if(this.g.b)"embedded"==this.b.R().$?PH(this.g.b):window.location=Xd(this.g.b,{})+"";else if(this.g.k){var a=q("yt.www.watch.player.handleEndPreview");a&&(this.b.isFullscreen()&&vz(this.b.app),a(this.g.k))}};function wJ(a,b,c){this.o=R(a,"click",u(this.F,this));this.A=R(a,"dblclick",u(this.C,this));this.D=b;this.j=c;this.g=new Uv(this.B,200,this);S(this,this.g);this.b=!0;this.k=null}w(wJ,Hh);wJ.prototype.F=function(a){0!=this.g.ta?(this.g.stop(),this.j(a),this.b=!1):(this.k=a,this.g.start(),this.b=!0)};wJ.prototype.C=function(a){this.b&&this.j(a)};wJ.prototype.B=function(){this.D(this.k);this.b=!0};wJ.prototype.J=function(){Og(this.o);Og(this.A);wJ.G.J.call(this)};var xJ=new G(1294,630),yJ=new G(1320,870),zJ=new G(1280,720),AJ=new G(854,480),BJ=new G(640,360);function CJ(a){var b;b=mh?new G(window.innerWidth,window.innerHeight):Qc(window);return a.mb?b:a.rd?b.width>=yJ.width&&b.height>=yJ.height?zJ.clone():AJ.clone():b.width>=xJ.width&&b.height>=xJ.height?AJ.clone():BJ.clone()};function DJ(a){X.call(this,["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]]);this.b=new X(["input","html5-modal-panel-input",{type:"text",readonly:"readonly"}]);S(this,this.b);sc&&this.b.K().removeAttribute("readonly");this.b.listen("click",this.j,this);var b=Y(0,"YTP_CLOSE");this.g=new FA(a,"ytp-dialog-button",b);this.g.oa(b);S(this,this.g);this.template.update({content:this.b,buttons:this.g});this.listen("contextmenu",
this.k)}w(DJ,jC);DJ.prototype.k=function(a){a.stopPropagation()};DJ.prototype.j=function(){this.b.K().select()};function EJ(a,b,c){X.call(this,["ul",["html5-context-menu","yt-uix-button-menu"],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url"],Y(0,"YTP_GET_VIDEO_URL")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url-at-current-time"],Y(0,"YTP_GET_VIDEO_URL_AT_TIME")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-embed-html"],Y(0,"YTP_GET_EMBED")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-report-playback-issue"],
Y(0,"YTP_REPORT_ISSUE")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-debug-info"],Y(0,"YTP_GET_DEBUG_INFO")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-show-video-info"],Y(0,"YTP_SHOW_VIDEO_INFO")]],["li","",["a",["yt-uix-button-menu-item","html5-context-menu-link"],{target:"_blank",href:"/html5"},Y(0,"YTP_HTML5_CONTEXT_MENU_LINK")]]]);this.W=a;this.W.subscribe("internalvideodatachange",this.xq,this);this.j=new Sv(this);this.j.listen(b,"contextmenu",
this.kz);this.b=new Sv(this);this.g=new DJ(c);S(this,this.g);this.g.g.listen("click",this.jz,this);a={cz:this.lz,dz:this.mz,ez:u(this.Cq,this,!1),fz:u(this.Cq,this,!0),hz:this.oz,iz:this.pz,gz:this.nz};for(var d in a)FJ(this,d,a[d]);this.hide()}w(EJ,X);f=EJ.prototype;f.jz=function(){this.W.g.Rg()};function GJ(a,b){var c=a.g;c.b.K().value=b;c.b.K().focus();L(u(c.j,c),100);a.W.g.Rg(a.g)}
function FJ(a,b,c){a.j.listen(a.template.b[Fv[b]],"click",function(a){a.stopImmediatePropagation();a.preventDefault();c.call(this,a);this.hide();a=b.replace("CONTEXT_MENU_","").toLowerCase();QG(this.W,"contextmenu."+a)})}f.xq=function(a,b){xx(this.template.b["html5-context-menu-copy-embed-html"],b.fq)};f.Cq=function(a){GJ(this,Ss(this.W,a))};
f.mz=function(){var a=Re("EMBED_HTML_TEMPLATE"),b=Re("EMBED_HTML_URL"),c=this.W.g.Vc(),d=this.W.getVideoData().videoId,b=b.replace(/__videoid__/g,d),a=a.replace(/__url__/g,Da(b)),a=a.replace(/__width__/g,c.width),a=a.replace(/__height__/g,c.height);GJ(this,a)};f.nz=function(a){HJ(this.W,a.target.getAttribute("href"))};
f.oz=function(){var a=this.W.getVideoData(),b=this.W.R(),c=this.W.g,d=c.Vc(),c=SD(c),d={cr:b.U,csipt:b.aa,ec:"108",feature:b.B,h:c.height,hl:b.A,playerh:d.height,playerw:d.width,ptk:a.L,referrer:b.D,screenh:window.screen.height,screenw:window.screen.width,sdetail:a.fb,sourceid:a.az,vid:b.la,vq:b.vi,w:c.width};sa(d,this.W.ng());(c=Ls(this.W))&&sa(d,c.getDebugInfo(!0));d.videoId&&(d.v=d.videoId,delete d.videoId);b.Pb&&(d.mobile="1");this.W.Zh("streamingerror",d);d=!0;"detailpage"==b.$&&(d=q("yt.player.exports.feedbackStart")("59",
{html5:!0,player:!0}));d&&(this.W.pauseVideo(),window.open(IJ(b,a)))};f.lz=function(){GJ(this,Ts(this.W,!0))};f.pz=function(){bt(this.W.g)};f.kz=function(a){a.preventDefault();var b=Ig(a);a=Jg(a);var c=Pf(document.body);OE(new F(b,a),this.element,0,null,c,5);this.show()};f.CB=function(a){!1===a.Rc.returnValue||this.hide()};f.show=function(){this.P||(this.b.removeAll(),this.b.listen(window,"blur",this.hide),this.b.listen(document,"click",this.DB),this.b.listen(document,"contextmenu",this.CB),EJ.G.show.call(this))};
f.DB=function(a){2==a.button||a.target&&jd(this.element,a.target)||this.hide()};f.hide=function(){EJ.G.hide.call(this);this.b.removeAll()};f.J=function(){this.j.removeAll();this.b.removeAll();this.W.ja("internalvideodatachange",this.xq,this);this.W=null;EJ.G.J.call(this)};function JJ(a,b){$H.call(this,a,b.R());this.W=b;this.D=2;this.I=this.C=!1;this.k.g.listen("click",this.ky,this);this.k.b.listen("click",this.jy,this);this.W.subscribe("presentingplayerstatechange",this.Qd,this)}w(JJ,$H);f=JJ.prototype;f.update=function(a){JJ.G.update.call(this,a);KJ(this,a.am);a&&a.Eo&&!this.W.o?(a=this.k,a.b.X(a.element),a.g.X(a.element)):(a=this.k,a.g.dd(),a.b.dd())};f.ni=function(a){var b=ng(this.element,"show-share");this.H("share-click");b||JJ.G.ni.call(this,a)};
f.Mk=function(a){this.H("title-click",a)};f.Ak=function(){var a=ng(this.element,"show-more-info");this.H("info-click");if(a)this.I&&this.W.Nd();else{JJ.G.Ak.call(this);var b=this.W.getPlayerState();this.I=W(b,8)&&!W(b,2);this.W.pauseVideo()}return!a};f.ky=function(){LJ(this,0)};f.jy=function(){LJ(this,1)};f.Qd=function(a){W(a.state,8)&&P(this.element,"show-more-info")};
function LJ(a,b){if(!a.C&&(a.D==b&&(b=2),KJ(a,b),a.b)){if("detailpage"!=a.j.$){a.C=!0;var c={yb:a.b.yb,onSuccess:u(function(){this.C=!1},a),onError:u(function(){this.C=!1},a),Sa:a.j.Sa,Za:a.j.Za};Iq(a.b.videoId,b,c)}a.W.H("RATE_SENTIMENT",{videoId:a.b.videoId,sentiment:b})}}function KJ(a,b){a.D=b;Q(a.element,"sentiment-like",0==b);Q(a.element,"sentiment-dislike",1==b)}f.bn=function(a){HJ(this.W,a)};f.nt=function(){PG(this.W)};
f.J=function(){this.W.ja("presentingplayerstatechange",this.Qd,this);this.W=null;JJ.G.J.call(this)};function MJ(a,b,c,d,e,g,h,k){this.o=[];z(Gb(b),function(b){this.o.push(R(a,b,u(this.Yu,this)))},this);z(Gb(d),function(b){this.o.push(R(a,b,u(this.Xu,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=MJ.prototype;f.Yu=function(a){N(this.b);this.b=0;this.j=L(u(this.nB,this,a),this.D)};f.Xu=function(a){N(this.j);this.j=0;this.b=L(u(this.jB,this,a),this.B)};f.nB=function(a){this.g||this.k||(this.k=!0,this.F.call(this.A||m,a))};
f.jB=function(a){!this.g&&this.k&&(this.k=!1,this.C.call(this.A||m,a))};f.dispose=function(){this.g=!0;N(this.j);N(this.b);Og(this.o)};f.fa=function(){return this.g};function NJ(){X.call(this,["div","ytp-tooltip",["div","ytp-tooltip-body","{{content}}"],["div","ytp-tooltip-arrow"]]);this.b=this.template.b["ytp-tooltip-body"]}w(NJ,X);NJ.prototype.hide=function(){NJ.G.hide.call(this);Kf(this.b,0)};NJ.prototype.J=function(){bd(this.b);this.b=null;NJ.G.J.call(this)};function OJ(a,b){this.b={};this.Km=a;this.g=b}w(OJ,Hh);
OJ.prototype.Og=function(a,b){var c,d=new MJ(a,"mouseover",function(){if(this.Km){var d=new NJ;d.X(this.Km);c=d}else c=null;if(c&&(d=b&&b(a),!b||d)){d=d||tg(a,"tooltip")||"";if(s(d)){var g=Zc(d),d=Yc("span");d.className="ytp-text-tooltip";d.appendChild(g)}Bv(c.template,"content",d);var g=!!tg(a,"tooltip-below"),d=c,h=Yf(a),h=new F(h.width/2,g?h.height:0),k=Qf(a),h=new F(k.x+h.x,k.y+h.y),g=!!g;Q(d.element,"ytp-tooltip-below",g);if(k=Of(d.element))var l=Qf(k),p=hg(k),h=Jb(h,new F(l.x+p.left,l.y+p.top));
OE(h,d.element,g?1:0);d.show();var p=Yf(d.b),g=p.width/2*-1,r=Qc(window),t=Sc(document),h=t.x,r=r.width+t.x,t=h,y=r;k&&(k=Yf(k),t=l.x,y=k.width+l.x);k=Qf(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(r,y)&&(g-=k-Math.min(r,y));Kf(d.b,g)}},["mouseout","mousedown"],function(){c&&(c.hide(),Jh(c),c=null)},this,10,50);this.b[ma(a)]=d};
OJ.prototype.Bf=function(a,b,c){var d=this.g;this.Og(a,function(){if(d){var a="detailpage"==d.$;if(!d.ka||a)return c}else return c;var g=d.ka,h=d.za,a=Yc("div");O(a,"ytp-identity-tooltip");var k=Yc("img");k.src=h;h=Yc("span");g=Zc(Xe(b,{USER_NAME:g}));ad(h,g);ad(a,k,h);return a})};OJ.prototype.jn=function(a){a=ma(a);Jh(this.b[a]);this.b[a]=null};OJ.prototype.J=function(){this.g=this.Km=null;for(var a in this.b)Jh(this.b[a]);this.b={};OJ.G.J.call(this)};function PJ(a){TG.call(this,a);this.o=this.Ca=this.k=this.O=null;this.bc=this.Ba=!1;this.gb={"watch-small":new G(640,360),"watch-medium":new G(854,480),"watch-large":new G(1280,720)}}w(PJ,TG);PJ.b=50;PJ.g=200;f=PJ.prototype;f.Vg=function(){PJ.G.Vg.call(this);this.app.subscribe("clearvideooverlays",this.iD,this)};
f.Ks=function(){var a=this.app.O.assets;if(a.css&&!dq()){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");Oc(c,a);b||document.getElementsByTagName("head")[0].appendChild(c);this.or(PJ.g)}else this.Ba=!0;this.H("templateready")};f.or=function(a){0>=a||dq()?(this.Ba=!0,this.element&&Ky(this.element)):L(u(this.or,this,a-1),PJ.b)};f.Qg=function(){this.Ba||Ly(this.element);PJ.G.Qg.call(this)};
f.Fn=function(a){PJ.G.Fn.call(this,a);a.Vb||this.addClass("hide-info-bar");a.oc&&this.Vf()};
f.ln=function(a){PJ.G.ln.call(this,a);var b=new X(["img",["html5-watermark","html5-stop-propagation","ytp-scalable-icon-shrink","hid"],{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:Y(0,"YTP_WATERMARK")}]);this.O=b.K();b.X(this.element);this.k=new EJ(this.app,this.element,this.j);S(this,this.k);this.k.X(document.body);this.o=new JJ(this.j,this.app);this.o.X(this.element);S(this,this.o);a.yc&&O(this.k.K(),"house-brand")};
f.Mm=function(){this.app.R().Gf?this.Ca||(this.Ca=new wJ(this.g,u(this.Lm,this),u(this.hs,this)),S(this,this.Ca)):PJ.G.Mm.call(this)};f.Ej=function(a){PJ.G.Ej.call(this,a);a?Ky(this.o.K()):Ly(this.o.K())};f.Aj=function(a){PJ.G.Aj.call(this,a);this.o&&this.o.update(a);var b=this.app;if(b.b.Sk?0:b.getVideoData().la||b.b.Dc){if(a=a.la)this.O.src=a;zx(this.O)}};
f.zn=function(){PJ.G.zn.call(this);var a=this.app.R();a.gc||(Ny(this,this.element,"click",u(this.Cs,this,!1),void 0,void 0,!0),Ny(this,this.element,"keydown",u(this.Cs,this,!0),void 0,void 0,!0),Ny(this,this.element,"focus",this.PC,void 0,void 0,!0));a.Pk||(Ny(this,this.element,"keypress",this.TC),Ny(this,this.element,"keydown",this.SC));Ny(this,this.O,"click",this.Bs);this.o.subscribe("title-click",u(this.Bs,this));this.o.subscribe("share-click",u(this.RC,this));this.o.subscribe("info-click",u(this.QC,
this))};
f.TC=function(a){this.app.b.Zf=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.Zf=v(),Fs(this.app),a.preventDefault(),b=!0);98==c&&(this.app.af("onBackgroundChange"),b=!0);111==c&&(this.app.af("onTextOpacityChange"),b=!0);119==c&&(this.app.af("onWindowOpacityChange"),b=!0);if(61==c||43==c)this.app.af("onFontSizeIncrease"),b=!0;if(45==c||95==c)this.app.af("onFontSizeDecrease"),b=!0;32==c&&$G(a)&&(aH(this),HG(this.app),a.preventDefault(),
b=!0);48<=c&&57>=c&&(As(this.app,(c-48)/10*Bs(this.app)),a.preventDefault(),b=!0);this.app.R().zb()&&this.app.Sh("onKeyPress",{keyCode:c,handled:b})};
f.SC=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,OG(b,{volume:b.D.volume+5,muted:!1});else if(40==c)b=this.app,OG(b,{volume:b.D.volume-5,muted:!1});else if(37==c){var d=this.app,b=-1*b;As(d,d.getCurrentTime()+b,!1,250,void 0)}else 39==c&&(d=this.app,As(d,d.getCurrentTime()+b,!1,250,void 0));b=!0}36==c&&(As(this.app,0),b=!0);35==c&&(As(this.app,Infinity),b=!0);27==c&&(Vg()?(GG(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.Rg(),b=!0));b&&a.preventDefault();this.app.R().zb()&&this.app.Sh("onKeyPress",{keyCode:c,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:b,fullscreen:this.app.R().mb})};f.Bs=function(a){a.preventDefault();PG(this.app)};f.RC=function(){this.app.Uh();if("detailpage"==this.app.R().$){GG(this.app,!1);var a=this.app,b=a.getVideoData();a.H("SHARE_CLICKED",{videoId:b.videoId,listId:b.La,feature:"player_"+a.b.$})}};f.QC=function(){this.app.Uh()};
f.iD=function(){var a=this.o;P(a.element,"show-share");P(a.element,"show-more-info")};f.Cs=function(a){this.bc=a};f.PC=function(){Q(this.element,"ytp-keyboard-focus",this.bc)};f.sm=function(a){PJ.G.sm.call(this,a);this.k&&(a?this.k.X(this.element):this.k.X(document.body),this.k.hide());a&&this.element.focus()};f.Vl=function(){PJ.G.Vl.call(this);if(!this.app.R().Pb){var a=new OJ(this.element,this.app.R());S(this,a);this.j.b=a;var b=Mc("ytp-tooltip-anchor",this.element);z(b,function(b){a.Og(b)})}};
f.Fb=function(){var a=this.app.R(),b=Ls(this.app)&&2==Ls(this.app).getPlayerType();if("detailpage"==a.$&&!b){if(a.b.F)return CJ(a);b=Lc("player");if(!b||a.mb||a.b.g)return PJ.G.Fb.call(this);for(var c in this.gb)if(ng(b,c))return this.gb[c]}return PJ.G.Fb.call(this)};f.ws=function(){var a=this.Fb();this.app.R().Pd&&(a=a.clone(),a.height+=3);return a};f.J=function(){PJ.G.J.call(this);Sg(this.O);this.O=null};function QJ(a){this.k=Math.exp(Math.log(.5)/a);this.g=this.j=0}QJ.prototype.b=function(a,b){var c=Math.pow(this.k,a);this.g=b*(1-c)+c*this.g;this.j+=a};QJ.prototype.o=function(){return this.g/(1-Math.pow(this.k,this.j))};function RJ(a){this.g=window.Float32Array?new Float32Array(a):Array(a);this.b=a-1}RJ.prototype.add=function(a){this.b=(this.b+1)%this.g.length;this.g[this.b]=a};RJ.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 SJ(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=[]}SJ.prototype.b=function(a,b){TJ(this,"index");this.j.push({index:this.D++,weight:a,value:b});this.g+=a;for(TJ(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 UJ(a,b){TJ(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}
SJ.prototype.o=function(){return this.A?(UJ(this,this.k-this.A)+UJ(this,this.k)+UJ(this,this.k+this.A))/3:UJ(this,this.k)};function TJ(a,b){a.C!=b&&(a.C=b,Cb(a.j,b))};function VJ(a){this.b=a;this.A=this.D=this.F=0;this.M=new RJ(100);this.I=0;this.B=new SJ(16,.6);this.C=new QJ(4);this.b.j?this.j=new QJ(this.b.g):this.j=new SJ(this.b.g,.5,.1);this.g=this.o=this.k=0;a=pi("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 WJ(a,b,c){a.b.b||(b=Math.max(b,.05),a.j.b(b,c/b),XJ(a))}
function YJ(a,b,c){a.B.b(1,c);1E4<v()-a.A&&ZJ(a);0==a.k&&(a.o=b/1E3);a.k++}function $J(a,b,c){isNaN(c)||(a.D+=c);isNaN(b)||(a.F+=b/1E3);XJ(a)}function aK(a,b,c){b=Math.max(b,8192);a.C.b(1,c/b);1E4<v()-a.A&&ZJ(a)}function bK(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 cK(a){return a.C.o()||0}function dK(a){a=a.j.o()*a.b.o-a.b.A;return 0<a?a:1}function eK(a){var b={};b.delay=bK(a);b.tailDelay=cK(a);b.byterate=dK(a);return b}
function ZJ(a){var b=eK(a);mi("yt-player-bandwidth",b,2592E3);a.A=v()}function XJ(a){var b=v();500<b-a.I&&(a.M.add(1/(1/dK(a)+cK(a))),a.I=b)};function fK(){this.g=17;this.k=-1;this.B=.5;this.C=this.b=this.j=!1;this.A=0;this.o=1};function gK(){this.b=[];this.k={};this.B={};this.C={};this.g=this.o=null;this.j=[];this.A=null}w(gK,Hh);gK.prototype.Iq=function(a){if(this.g){var b;var c=ma(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);S(this,b)}}else b=null;b&&b.Ja(this.g)&&!C(this.b,b)&&(b.create(),this.b.push(b),C(this.j,b.ua)&&(b.nc=this.A,b.Hi(!!b.nc)))}};
function hK(a){a.b=hb(a.b,function(a){return!this.g||a.Dm(this.g)?(a.destroy(),!1):!0},a)}function iK(a,b,c){jK(a);a.A=b;a.j=ub(c);z(a.b,function(a){0<=fb(c,a.ua)&&(a.nc=b,a.Hi(!!a.nc))})}function jK(a){z(a.j,function(a){if(a=Os(this,a))a.nc=null,a.Hi(!1)},a);a.A=null;a.j=[]}function at(a,b){if(!b)return A(a.b,function(a){return a.ua});var c=Os(a,b);return c?c.Bj():[]}function Os(a,b){return B(a.b,function(a){return a.ua==b})}gK.prototype.F=function(a,b){z(this.b,function(c){c.H(a,b)})};
function kK(a){var b={};z(a.b,function(a){sa(b,a.$g())});return b}gK.prototype.D=function(a,b){sa(this.C,a||null);sa(this.B,b||null)};gK.prototype.isAvailable=function(a){return(a=Os(this,a))?a.ek:!1};function lK(a){this.b={};for(var b=0;b<a.length;b++){var c=a[b];this.b[c.b]=c}}function mK(a){a=Rb(a.b);Bb(a,function(a,c){return a.b-c.b});return a};function nK(a,b,c){this.j=a;this.b=b;this.k=!!c.Ue;this.g=c.qa};function oK(){this.Mc={};this.g=this.Xb().b;this.b=null}f=oK.prototype;f.Xb=function(){var a=this.constructor,b;if(!(b=a.$s)){var c;b=a.MD;var d=[];for(c in b)0!=c&&d.push(new nK(a,c,b[c]));c=new lK(d);b=a.$s=c}return b};f.get=function(a,b){a.j.Xb();this.Xb();var c;c=a.b;var d=pK(this,c);c=this.g[c].k?d[b||0]:d;return c};f.set=function(a,b){a.j.Xb();this.Xb();qK(this,a.b,b)};f.add=function(a,b){a.j.Xb();this.Xb();rK(this,a.b,b)};
f.clear=function(a){a.j.Xb();this.Xb();a=a.b;delete this.Mc[a];this.b&&delete this.b[a]};f.equals=function(a){if(!a||this.constructor!=a.constructor)return!1;for(var b=mK(this.Xb()),c=0;c<b.length;c++){var d=b[c],e=d.b;if(null!=this.Mc[e]!=(null!=a.Mc[e]))return!1;if(null!=this.Mc[e]){var g=11==d.g||10==d.g,h=pK(this,e),e=pK(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 sK(a,b){for(var c=mK(a.Xb()),d=0;d<c.length;d++){var e=c[d],g=e.b;if(null!=b.Mc[g]){a.b&&delete a.b[e.b];var h=11==e.g||10==e.g;if(e.k)for(var e=pK(b,g)||[],k=0;k<e.length;k++)rK(a,g,h?e[k].clone():e[k]);else e=pK(b,g),h?(h=pK(a,g))?sK(h,e):qK(a,g,e.clone()):qK(a,g,e)}}}f.clone=function(){var a=new this.constructor;a!=this&&(a.Mc={},a.b&&(a.b={}),sK(a,this));return a};function pK(a,b){var c=a.Mc[b];return null==c?null:c}function qK(a,b,c){a.Mc[b]=c;a.b&&(a.b[b]=c)}
function rK(a,b,c){a.Mc[b]||(a.Mc[b]=[]);a.Mc[b].push(c);a.b&&delete a.b[b]}function tK(a,b){a.MD=b;a.Xb=function(){return a.$s||(new a).Xb()}};function uK(){oK.apply(this)}w(uK,oK);function vK(){oK.apply(this)}w(vK,oK);tK(uK,{0:{name:"MessageDetails",gf:"logs_proto.MessageDetails"},1:{name:"may_appear_in",Ue:!0,qa:11,type:vK}});tK(vK,{0:{name:"Type",xK:uK,gf:"logs_proto.MessageDetails.Type"},1:{name:"source_type",required:!0,qa:9,type:String},2:{name:"log_type",required:!0,qa:9,type:String}});var wK={gF:0,QG:1,bH:2,fF:3,oF:4,OG:5,$G:6,WG:7,YG:8,ZG:9,UG:10,VG:11,qF:12,pF:13,eF:14,ZE:15,PG:20,dH:21,YE:22,RG:23,cH:24,aH:25,lF:30,eH:31,kF:32,mF:33,TG:40,SG:41,rF:42,sF:43,$E:50,cF:51,hF:52,iF:53,jF:54,VE:55,WE:56,nF:57,dF:58,bF:60,aF:61,XE:70,UE:80,tF:90};function xK(){oK.apply(this)}w(xK,oK);function yK(){oK.apply(this)}w(yK,oK);function zK(){oK.apply(this)}w(zK,oK);function AK(){oK.apply(this)}w(AK,oK);function BK(){oK.apply(this)}w(BK,oK);function CK(){oK.apply(this)}w(CK,oK);
tK(xK,{0:{name:"YtAdType",gf:"video.YtAdType"},1:{name:"ad_namespace",required:!0,qa:14,defaultValue:0,type:{TF:0,rH:1,UF:2,jH:3,CH:4,oH:5,nH:6,jt:7,lH:8,pG:9,iH:10,mH:11,fG:12,oK:13}},2:{name:"ad_format",required:!0,qa:14,defaultValue:0,type:{PF:0,bI:1,$H:2,DI:3,UJ:4,cI:5,XH:6,ZH:7,tK:8,wH:9}},3:{name:"ad_invideo",qa:14,defaultValue:0,type:{RF:0,EG:1,FG:2,GG:3,kH:4,DG:5,qG:6}},4:{name:"invideo_autoplay",qa:14,defaultValue:0,type:{kG:0,vE:1}},5:{name:"ad_instream",qa:14,defaultValue:0,type:{QF:0,
OJ:1,SJ:2,Vm:3,oG:4}},6:{name:"ad_instream_long",qa:8,type:Boolean}});tK(yK,{0:{name:"AdId",gf:"video.AdId"},1:{name:"ad_network",qa:14,defaultValue:1,type:{OTHER:1,SE:2}},2:{name:"ad_network_name",qa:9,type:String},3:{name:"ad_id",required:!0,qa:9,type:String}});
tK(zK,{0:{name:"YtAdEvent",gf:"video.YtAdEvent"},1:{name:"ad_event_type",required:!0,qa:14,defaultValue:0,type:{BF:0,IF:1,CF:2,LF:3,DF:4,EF:5,yF:6,wF:7,fH:8,uF:9,JF:10,KF:11,vF:12,hH:13,MF:14,zF:15,gH:16,AF:17,xF:18,NF:100,OF:101,GF:130,FF:131,HF:132}},2:{name:"wall_time",required:!0,qa:2,type:Number},3:{name:"media_time",required:!0,qa:2,type:Number},4:{name:"logentry_time_usec",required:!0,qa:3,type:String},5:{name:"ad_error_type",qa:14,defaultValue:0,type:wK}});
tK(AK,{0:{name:"YtAdSlot",gf:"video.YtAdSlot"},1:{name:"slot_time",required:!0,qa:2,type:Number},2:{name:"ad_type",required:!0,qa:11,type:xK},3:{name:"ad_events",Ue:!0,qa:11,type:zK},4:{name:"ad_video_duration",qa:2,type:Number},5:{name:"ad_id",qa:9,type:String},6:{name:"slot_index",qa:5,type:Number}});
tK(BK,{0:{name:"YtVideoMetadata",gf:"video.YtVideoMetadata"},1:{name:"content_owner_ids",Ue:!0,qa:9,type:String},2:{name:"video_duration_seconds",qa:2,type:Number},3:{name:"all_content_owner_ids",qa:9,type:String}});
tK(CK,{0:{name:"YtWatchAdInfo",gf:"video.YtWatchAdInfo"},1:{name:"video_id",required:!0,qa:9,type:String},2:{name:"allowed_ads",Ue:!0,qa:11,type:xK},3:{name:"ad_slots",Ue:!0,qa:11,type:AK},4:{name:"ps",qa:9,type:String},5:{name:"el",qa:9,type:String},6:{name:"country",qa:9,type:String},7:{name:"feature",qa:9,type:String},8:{name:"blocked",qa:8,type:Boolean},9:{name:"plid",qa:9,type:String},10:{name:"video_metadata",qa:11,type:BK},11:{name:"experiment_id",Ue:!0,qa:3,type:String},12:{name:"ad_flags",
qa:4,type:String},13:{name:"all_experiment_ids",qa:9,type:String},14:{name:"no_ads_returned",qa:8,type:Boolean},15:{name:"ad_errors",Ue:!0,qa:14,defaultValue:0,type:wK},16:{name:"ad_slot_with_event",qa:11,type:AK}});function DK(a,b){kt.call(this,a,b)}w(DK,kt);f=DK.prototype;f.Jg=function(){zs(this.app,!0,this.b);this.app.Nd(this.b)};f.pauseVideo=function(){this.app.pauseVideo(this.b)};f.Ns=function(a,b,c){zs(this.app,!0,this.b);var d=this.app,e=this.b;d.sf(d.getCurrentTime()+a,b,c,e)};f.Kg=function(a,b){zs(this.app,!0,this.b);this.app.sf(a,b,void 0,this.b)};f.yk=function(){Hs(this.app,this.b)};function EK(a){this.app=a;gu.call(this,a.Eb)}w(EK,gu);EK.prototype.getAdState=function(){return-1};var FK={$I:"red",WHITE:"white"};var GK={sE:"0",vJ:"1",MG:"2"};var HK={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},IK={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},JK={adunit:{Vb:!1,Fp:!1,Dc:!1},detailpage:{oc:!0}};JK.embedded={Gf:Ug(),Dc:!0};JK.profilepage={qh:!0};
var KK="blogger books docs google-live play picasaweb".split(" "),LK={blazer:{wK:"youtube_mobile",xc:!1,BE:!1,aj:!1,Nn:!1,Pb:!0,oc:!1,Ck:!0,Qb:!1,Tb:!1,gc:!0},blogger:{xe:!1,ig:!1,dc:!1,Vb:!1,Ic:!1,oc:!1,Rf:!1,Dc:!1,Xc:"bl"},books:{xe:!1,ig:!1,dc:!1,Vb:!1,Ic:!1,oc:!0,Rf:!1,Dc:!1,Xc:"gb"},docs:{xe:!1,ig:!1,dc:!1,Vb:!1,Ic:!1,oc:!1,Rf:!1,Dc:!1,Xc:"gd"},"google-live":{xe:!1,ig:!1,dc:!1,Vb:!1,Ic:!1,oc:!1,Rf:!1,Dc:!1,Xc:"gl"},play:{Vb:!1,Ic:!1,oc:!1,Dc:!1,Xc:"gp"},"native":{aj:!1,Nn:!1,Qb:!0},picasaweb:{xe:!1,
ig:!1,dc:!1,Vb:!1,Ic:!1,oc:!1,Rf:!1,Dc:!1,Xc:"pw"},touch:{aj:!1,Nn:!1,gc:!0}};
function MK(a){a=$b(a);this.j={};this.b=new Lq(a.fexp);this.wa=a.forced_experiments||null;this.origin=lq(this.origin,a.origin);this.ye=lq(this.ye,a.loaderUrl);if("adunit"!=a.el||ef(this.ye))this.$=a.el||this.$;var b=JK[this.$];b&&sa(this,b);b=a.ps;if(!C(KK,b)||this.zb())this.ob=b||this.ob;(b=LK[this.ob])&&sa(this,b);this.yc=this.zb()&&C(KK,this.ob);this.vg=!(!bq().defaultPlaybackRate||oc||kh||jh||lh);if(a.use_media_volume)b=!1;else{var b=bq(),c=b.muted;b.muted=!c;b=b.muted!=c}this.Gp=b;this.lp=lh;
if(kh||jh||nh)this.po="blazer"!=this.ob;this.Lp="0"!=a.add_player_event_listeners;b=iq(this.Gf,a.fs);this.Gf="detailpage"==this.$?b:b&&Ug();this.Sa=lq(this.Sa,a.authuser);this.Li=jq(this.Li,a.autohide,nE);this.xc=iq(this.xc,a.autoplay);this.Nl=iq(this.Nl,a.autoplayoverride);this.color=jq(this.color,a.color,FK);this.C=lq(this.C,a.content_v);this.Ol=jq(this.Ol,a.controls,GK);this.Pk=iq(this.Pk,a.disablekb);this.Oi=iq(this.Oi,a.edu_mode);this.g=lq(this.g,a.eurl);this.F=lq(this.F,a.framer);this.pa=jq(this.pa,
a.iv_load_policy,Up);this.A=lq(this.A,a.hl);this.Op=iq(this.Op,a.bwlogging);this.Pb=iq(this.Pb,a.is_html5_mobile_device);this.rd=iq(this.rd,a.player_wide);this.Pp=iq(this.Pp,a.is_playground);this.$h=iq(this.$h,a.privembed);this.Rp=iq(this.Rp,a.loop);this.Jf=iq(this.Jf,a.modestbranding);"red"!=this.color&&(this.Jf=!1);this.Qp=iq(this.Qp,a.on3g);this.Za=lq(this.Za,a.pageid);this.vi=pq(this.vi,a.vq);this.wk=lq(this.wk,a.playerapiid);this.pi=iq(this.pi,a.playsinline);this.Lk=iq(this.Lk,a.playonclick);
this.U=lq(this.U,a.cr);this.dc=iq(this.dc,a.logwatch);this.ok=iq(this.ok,a.canplaylive);this.Vb=iq(this.Vb,a.showinfo);this.Ic=iq(this.Ic,a.rel);this.oc=iq(this.oc,a.enablesizebutton);this.Ll=iq(this.Ll,a.ss);this.I=lq(this.I,a.theme);this.Qb=iq(this.Qb,a.use_native_controls);this.Tb=!jh&&iq(this.Tb,a.svt);this.zb()&&(this.mk=iq(this.mk,a.retryneterr),this.Sk=iq(this.Sk,a.nologo));this.Qb&&(this.Jf=!0,this.pa=3);this.Pi=iq(this.Pi,a.ssl);if(this.oi=iq(this.oi,a.ssl_stream))this.Pi=!0;if(this.gc=iq(this.gc,
a.use_tablet_controls))this.I="dark",this.Li="blazer"==this.ob?"3":"1";b=this.og;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.og=b;this.Ha=lq(this.Ha,a.attrib);this.la=lq(this.la,a.sk);this.protocol=this.Pi?"https":"http";this.Pd="0"!=this.Ol;this.Wj=iq(this.Pd,a.store_user_volume);this.Rd=iq(this.Rd,a.use_media_volume);if(b=a.BASE_YT_URL)c=(c=b&&b.match(De))?c[0]:"",d=af(b)?b:"",c!=d&&Ve(Error(b+
" behavior is not consistent")),d&&(this.rb=d);if(c=b=a.gdatabaseurl)c=!!b&&-1!=b.search(Ge),d=af(b),c!=d&&Ve(Error(b+" behavior is not consistent")),c=d;c&&(this.Ro=b);NK(this,a);b=!this.b.da;("detailpage"==this.$||b&&"unknown"==this.g||"undefined"==this.g)&&delete this.g;this.Dc=this.Jf&&!this.Qb?!this.Vb:this.Vb||this.Pd?!1:this.Dc;b=this.xc||"detailpage"==this.$;c=!0;this.Pb&&(c=!1);mr("nintendo wiiu")&&(c=!1);this.Nl&&(c=!0);this.Ph=b&&c;this.j=a}w(MK,Hh);f=MK.prototype;f.vf=null;f.Lp=!0;
f.Gf=!0;f.Sa="";f.Li="2";f.xc=!1;f.Nl=!1;f.rb="/";f.Ro="//gdata.youtube.com/";f.BE=!0;f.color="red";f.Ol="1";f.rf="web";f.se="html5";f.Pk=!1;f.Oi=!1;f.aj=!0;f.Nn=!0;f.vg=!1;f.Gp=!1;f.$="detailpage";f.Op=!1;f.yc=!1;f.Pb=!1;f.mb=!1;f.Xq=!1;f.rd=!1;f.xe=!0;f.Pp=!1;f.$h=!1;f.ig=!0;f.Zf=0;f.Cg=!1;f.ye="";f.Rp=!1;f.Jf=!1;f.vi=Fp;f.wk="";f.Qp=!1;f.Za="";f.ob=null;f.pi=!1;f.lp=!1;f.mk=!1;f.Ph=!1;f.dc=!1;f.ok=!0;f.Pd=!0;f.Wj=!0;f.Rd=!1;f.Vb=!0;f.Fp=!0;f.Ic=!0;f.qh=!1;f.oc=!1;f.Rf=!0;f.Dc=!1;f.Ll=!1;f.Sk=!1;
f.po=!1;f.Qb=!1;f.Tb=!0;f.Pi=!1;f.oi=!1;f.gc=!1;f.Yc=null;f.og=null;f.yq=null;f.Cf=null;f.Pa=null;f.gi=null;f.Xc="yt";f.Lk=!1;function Rs(a,b){a.xa=b.get("d",a.xa);a.ca=b.get("f",a.ca)}
function NK(a,b){if(b){var c;(c=b.adformat)||(c=(c=b.attrib)&&c in HK&&c in IK?IK[c]+"_"+HK[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.zb()||d)&&(a.k=c,a.j.adformat=b.adformat,d||(a.$="adunit"))}}a.vf=(b&&b.adpings?vi(b.adpings):null)||a.vf;c=b.agcid;a.Ia=c;a.j.agcid=c;c=b.feature;a.B=c;a.j.feature=c;c=b.referrer;a.D=c;a.j.referrer=c;a.Ra=b.q;a.M=lq(a.M,b.cbrand);a.L=lq(a.L,b.cbr);a.N=lq(a.N,b.cbrver);a.rf=lq(a.rf,b.c);a.se=lq(a.se,
b.cver);a.O=lq(a.O,b.cmodel);a.P=lq(a.P,b.cnetwork);a.V=lq(a.V,b.cos);a.T=lq(a.T,b.cosver);a.o=lq(a.o,b.cplatform);a.b.g=iq(a.b.g,b.flexwatch_enabled);a.dc=iq(a.dc,b.logwatch);a.Ba=kq(a.Ba,b.user_age);a.za=lq(a.za,b.user_display_image);a.ka=lq(a.ka,b.user_display_name);a.Ca=lq(a.Ca,b.user_gender);a.da=lq(a.da,b.eventid);a.aa=lq(a.aa,b.csi_page_type);a.Ck=iq(a.Ck,b.enablecsi)}
function OK(a){var b={};b.c=a.rf;a.se&&(b.cver=a.se);a.o&&(b.cplatform=a.o);a.M&&(b.cbrand=a.M);a.O&&(b.cmodel=a.O);a.P&&(b.cnetwork=a.P);a.L&&(b.cbr=a.L);a.N&&(b.cbrver=a.N);a.V&&(b.cos=a.V);a.T&&(b.cosver=a.T);return b}
function PK(a,b){switch(b.T){case 38:var c=b.videoId.indexOf(":");return Xd("//play.google.com/books/volumes/"+b.videoId.slice(0,c)+"/content/media",{aid:b.videoId.slice(c+1),sig:b.Xj});case 30:return c="//docs.google.com/",a.rb!=MK.prototype.rb&&(c=a.rb),Xd(c+"get_video_info",{docid:b.videoId,authuser:b.Sa,authkey:b.xb,eurl:a.g});case 33:return Xd("//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.$,hl:a.A,list:b.La,
agcid:a.Ia,sts:16265};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.Ba&&(c.iv_load_policy=b.Ba);b.lg&&(c.autoplay="1");b.vm&&(c.noiba="1");b.wm&&(c.mdx="1");b.xm&&(c.utpsa="1");b.ac&&(c.is_fling="1");var d;d=(d=a.gi)?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.za&&(c.ypc_preview="1");b.re&&(c.splay="1");a.C&&(c.content_v=a.C);b.Yl&&(c.livemonitor=1);a.Sa&&(c.authuser=
a.Sa);a.Za&&(c.pageid=a.Za);a.da&&(c.ei=a.da);a.oi&&(c.ssl_stream="1");df()&&(c.iframe="1");b.Oh&&(c.tst=b.Oh);sa(c,OK(a));return Xd(a.rb+"get_video_info",c)}}function QK(a){return a.Oi?"//s.youtubeeducation.com/":a.ig?"//s.youtube.com/":"//video.google.com/"}function RK(a){return QK(a)+(a.b.M?"api/stats/qoe":"stream_204")}function SK(a){return a.D?a.D.slice(0,128):""}function wH(a,b,c,d){return GH(a,b.videoId,b.La,c,d)}
function GH(a,b,c,d,e){b={v:b,list:c};d&&sa(b,d);a=Xd(a.protocol+"://"+("www.youtube-nocookie.com"==window.location.host||a.Oi?"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=vi(b);for(var g in e)b[g]=e[g];e=d+Vd(b);a=a+e}return a}
function IJ(a,b){if("play"!=a.ob)return"https://support.google.com/youtube/?p=report_playback";var c={contact_type:"playbackissue",html5:1,plid:b.yb,ei:b.A,v:b.videoId,p:"movies_playback"};b.b&&(c.fmt=b.b.id);b.Da&&(c.cpn=b.Da);b.T&&(c.partnerid=b.T);return Xd("//support.google.com/googleplay/",c)}
function TK(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 UK(a){var b=q("yt.www.watch.activity.getTimeSinceActive",window);if("detailpage"==a.$&&b)return b();b=0;a.Zf&&(b=v()-a.Zf);return b}function EH(a){return"leanback"==a.$||a.yc||!a.Ic&&!a.qh?!1:!0}function ft(a){return"detailpage"!=a.$&&"embedded"!=a.$&&"profilepage"!=a.$?!1:!0}
f.zb=function(){var a=document.location.toString(),b=!!a&&-1!=a.search(Ee),c=af(a);b!=c&&Ve(Error(a+" behavior is not consistent"));a=c&&!df();if(c=c&&df()){var c=this.ye,b=!!c&&-1!=c.search(Me),d=af(c)||bf(c,Ze);b!=d&&Ve(Error(c+" behavior is not consistent"));c=d}return c||a};function cE(a){return mh&&mr("crkey")||"tv"==a.o}f.J=function(){this.gi=this.Pa=null;MK.G.J.call(this)};function VK(a,b){this.b=a;this.va=b;this.g=1}function WK(a,b,c,d){d/=a.g;var e=cK(a.b)+1/dK(a.b),g;g=Math.max(.9*(d-3),bK(a.b)+8192*e);c=g/e/(b+c);c=Math.max(a.va.A,Math.min(a.va.N,c));c=Math.min(c,d);a=Math.max(a.va.F,Math.ceil(a.va.A*b));return Math.min(a,Math.max(Math.ceil(c*b),65536))}function XK(a){if(a.va.P)return 1/(cK(a.b)+1/dK(a.b));var b=dK(a.b);a=bK(a.b)+1048576*cK(a.b);return b*Math.min(1,1048576/(b*a))}function YK(a){return XK(a)/a.g};function JG(a,b,c){this.b=a;this.video=b;this.g=c};function ZK(a,b,c,d){this.N=a;this.va=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 $K(a,b,c){"m"==c&&Hp(a.b)&&!Hp(b)&&(c="a");if("m"==c&&Hp(b))return a.o=c,aL(a,b),a.j=bL(a),new JG(a.g,a.j,c);var d=a.b.equals(b);if("m"==a.o&&Hp(a.b)&&d)return null;"r"!=c||d||(a.I=-1);aL(a,b);b=bL(a);if("r"==c&&!d&&b==a.j)return a.j=b,new JG(a.g,b,c);a.o=c;return null}function cL(a,b){dL(a);a.L=b;a.F=v();a.I=-1;aL(a,a.b)}
function dL(a){return!!a.F&&9E4>=v()-a.F}function bL(a){if(Hp(a.b)||!(8E3>v()-a.I)){a.F&&!dL(a)&&(a.F=0,aL(a,a.b));var b=YK(a.N);if(Hp(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.ra;0<c&&!(a.k[c].ra<=d);c--);for(b=b/a.va.B-a.g.info.ra;c<a.k.length-1&&!(a.k[c+1].ra>=b);c++);a.M=c;a.A=a.B.b[a.k[c].id]}}return a.A}function eL(a){var b=a.o;a.o="a";a.I=v();return new JG(a.C,a.j,b)}
function aL(a,b){a.b=b;var c=a.D.g;if(!Hp(a.b)&&(c=hb(c,function(a){return a.ra>this.va.ra?!1:!this.B.b[a.id].o},a),dL(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.ra-b.ra});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.ra*a.va.B>g.ra&&(rb(c,e.video.width<=g.video.width?d-1:d),d--)}a.k=c}
function fL(a){var b=B(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 gL(a){var b=YK(a.N)/1.05-a.g.info.ra,c=nb(a.k,function(a){return this.va.ai&&this.va.ai<po[a.video.b]?!1:a.ra<b},a);0>c&&(c=0);a.M=c;a.A=a.B.b[a.k[c].id]};function hL(a,b){this.va=a;this.j=b;this.pendingRequests_=[];this.b=[];this.k=this.g=null;this.o=0;this.ra=b.info.ra;this.B=this.A=this.C=!1}function iL(a,b){a.pendingRequests_.push(b);a.g=db(b.info.b);a.o+=Ro(b.info)}function jL(a){for(;a.pendingRequests_.length&&5==a.pendingRequests_[0].state;){var b=a.pendingRequests_.shift();a.o-=Ro(b.info);a.o+=db(b.k).buffer.byteLength;z(b.k,a.F,a)}}
hL.prototype.F=function(a){if(4==a.info.type){var b=a.info.b.zq(a);a.info==this.g&&(this.g=db(b).info);z(b,this.F,this)}else if(3==a.info.type){var c=a.info.b.info;if(this.va.O&&0==a.info.j&&1==c.g){var b=Vo(a),c=!!c.b,d=Xo(b,0,1836019558);d&&(d=Xo(b,d.b+d.g,1953653094))&&(d=Xo(b,d.b+d.g,1953658222))&&Wo(b,c,d.b+8)}this.b.push(a)}};
function kL(a,b){if(a.va.I?a.b.length&&!lL(a):a.C)return a.b[0].Z;var c=a.j.info.b;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)break}d--;var e=a.b[d].Z.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].Z.start+c-1}return new to(a.b[0].b?0:a.b[0].Z.start,e)}
function mL(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 nL(a,b){var c=oL(a,b);if(0<=c)return c;a.g=a.j.xi(b).b[0];a.k&&a.k.B&&(a.k=null);return a.g.startTime}
function LG(a,b){pL(a);if(a.j.info.video&&a.k&&!a.k.A&&b){var c=lb(a.b,function(a){return a.info.A});a.b=xb(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 qL(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());mL(a)}}
function rL(a){return ib(a.b,function(a){return a.info.A})}function sL(a){return!!a.k&&a.k.B}function tL(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 lL(a){if(!a.g||!a.g.g)return!1;a=tL(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 oL(a,b){if(lL(a)){var c;t:{c=tL(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 uL(a){return ib(a.pendingRequests_,function(a){return 1==a.timing.priority&&3<=a.state})}function vL(a){return!!(a.g&&a.j.mc()&&a.g.b!=a.j&&a.g.b.info.ra<a.j.info.ra)}function wL(a,b){return!!(a.g&&!a.g.B&&a.g.C<b)}hL.prototype.D=function(a){Jo(a.info.b[0])||a.dispose();this.o-=Ro(a.info)};
function pL(a){z(a.pendingRequests_,a.D,a);a.pendingRequests_=[];a.g=null};function xL(a,b,c){this.va=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}xL.g=!1;xL.b=1E4;f=xL.prototype;f.getErrorCode=function(){return this.o};function yL(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=xi(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&&zL(this);AL(this,2);if(b){if(2>this.j){this.j++;a=xL.b*(.5+Math.random());1==this.j&&(a=2E3);L(u(this.rm,this),a);return}b=this.info.j;if(!(this.F<=b.j)){b.g++;b.j=Go-1;var c=ff(b.b);b.b=yo(c,"cmo",encodeURIComponent("pf="+b.g));c.match("c\\.youtube\\.com/")&&(b.b+="&cmo=sensitive_content%3Dyes")}this.j=0}a?this.rm():L(u(this.rm,this),0)};
f.rm=function(){if(!this.fa()){this.F=Go++;var a;a=Qo(this.info);a=yo(a,"keepalive","yes");this.j&&(a=yo(a,"playerretry",this.j.toString()));this.D=a;this.b=new XMLHttpRequest;this.b.open("GET",a);this.b.responseType="arraybuffer";this.b.withCredentials=!0;var b=u(this.Ku,this);this.b.addEventListener("load",b,!1);this.b.addEventListener("error",b,!1);this.b.send();this.A=0;b=this.timing;b.j=v();b.o=b.j;b.g=0;b.D=!1;b.F=!1;b.k=0;b.C=eK(b.b);BL(b);b.M=b.B-b.j;this.b.addEventListener("progress",u(this.Lu,
this),!1);0<this.va.j&&(this.g=L(u(this.vo,this),this.va.j));wo(a,"itag");wo(a,"range");Math.round(this.info.b[0].o);Math.round(db(this.info.b).C);v()}};f.Lu=function(a){if(!this.fa()){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||CL(b,c,a);b=this.timing;b.g>b.L&&8192<b.g&&3>this.state&&AL(this,3)}};
f.Ku=function(a){var b=this.b;if(!this.fa()&&a.target==b){this.g&&(N(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)),cf(c)))break t;c=""}if(c){c=xo(c,"keepalive");c=xo(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=xo(c,g[d]);
if(1<e.length)for(e=e[1].split("&"),d=0;d<e.length;d++)c=xo(c,e[d].split("=")[0])}}c=xo(c,"range");b.j.b=c;AL(this,4)}else if(this.info.Z&&b.byteLength!=this.info.Z.length)a=!0,this.o="fmt.unparseable";else{c=this.info.b;1!=c.length||c[0].Z||(d=c[0],e=vo(0,b.byteLength),d=new Io(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,r=vo(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),
r=vo(0,l.g),h=!0;else if(3==l.type||4==l.type)t=h&&!g,g=!0;d.push(new bp(l,p,r,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(),CL(c,d,b),e=(d-c.j)/1E3,c.F||!(8192<=c.g)||c.b.b.b||WJ(c.b,e,b),8192<=c.g&&aK(c.b,b,c.k),$J(c.b,d-c.j,c.g),DL(c));v();AL(this,5)}}a&&(zL(this),AL(this,6))}};function zL(a){if(2>a.j)a=!0;else{var b=a.info.j;a=!(a.F>b.j&&1<=b.g)}return a}function AL(a,b){a.state=b;4<=a.state&&DL(a.timing);a.B&&a.B(a)}
f.vo=function(){this.g=NaN;if(!this.fa()){var a=v(),b=!1;if(8192<=this.timing.g){var c=this.timing.B;BL(this.timing);this.timing.B-c>=.8*this.va.j?(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,aK(b.b,b.I,b.k)):YJ(b.b,a,(a-b.j)/1E3),$J(b.b,a-b.j,b.g),EL(this),this.o="net.timeout",AL(this,Jo(this.info.b[0])?6:7)):this.g=L(u(this.vo,this),this.va.j)}};f.fa=function(){return-1==this.state};
f.dispose=function(){AL(this,-1);this.B=this.k=null;EL(this);N(this.g);this.g=NaN};function EL(a){if(a.b){var b=a.b;a.b=null;b.abort()}DL(a.timing)};function FL(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 DL(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 CL(a,b,c){if(!a.A)8192<=c&&(YJ(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&&WJ(a.b,.05,e)):WJ(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}XJ(d)}a.o=b;a.g=c}function BL(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 GL(a,b,c,d){$i.call(this);this.A=a;this.va=b;this.D=c;this.g=this.j=null;this.B=new VK(a,b);this.b=null;this.o=new ZK(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.da={};this.N="";this.U=!1;this.I=0}w(GL,$i);GL.k=!1;GL.b=2/24;GL.g=1E3;GL.j=1E4;f=GL.prototype;
f.initialize=function(a,b,c){a=a||0;var d=this.o;d.o="i";fL(d);d.C=d.g;aL(d,b);gL(d);d.j=d.A;b=eL(d);this.j=new hL(this.va,b.b);this.g=new hL(this.va,b.video);this.H("formatchange",b);0!=a||c||(this.j.j.j||HL(this,this.j,!0),this.g.j.j||HL(this,this.g,!0));this.seek(a);IL(this,"gv")};f.resume=function(){this.C=!1};
f.Nz=function(a){this.resume();this.b=a;ir(a)&&(a.b.addEventListener("updateend",u(this.qc,this),!1),a.g.addEventListener("updateend",u(this.qc,this),!1));IL(this,"msa");this.qc();this.aa=Te(u(this.qc,this),GL.j)};function JL(a){a.b&&a.b.b&&a.b.b.removeEventListener&&(a.b.b.removeEventListener("updateend",u(a.qc,a),!1),a.b.g.removeEventListener("updateend",u(a.qc,a),!1));a.b=null;a.C=!0;a.j&&(LG(a.g,!1),LG(a.j,!1))}function KL(a){a.b&&gr(a.b)&&JL(a)}
function LL(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 ML(a,b,c){if(!b.g){if(!b.j.mc())return b.j.j||HL(a,b,!1),!1;nL(b,a.k)}if(a.C)return!1;var d=b.pendingRequests_.length+c.pendingRequests_.length;if(uL(b)||uL(c))d-=1;if(2<=d+1)return!1;d=b.g;4==d.type&&d.b.mc()&&(b.g=db(d.b.Gi(d)),d=b.g);!d.B&&!d.b.zg(d)||d.b.info.b&&4==d.type?a=!1:vL(b)&&a.va.b?a=!0:(!(c=d.B||b.o+c.o>a.va.g||wL(c,d.C))&&(c=3==d.type)&&(d=d.C,b=NL(a,b,!0),Hp(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 OL(a,b,c){if(!a.b||fr(a.b)||ir(a.b)){var d=a.k,e;e=a.B;c=WK(e,b.j.info.ra,c.j.info.ra,0);e=bK(e.b)+c*cK(e.b)+c/dK(e.b);e=Math.max(e,e+5-c/b.j.info.ra);d=d+e;(e=a.va.L)||(a=a.o,e=!!(a.j&&a.A&&a.j.info.ra<a.A.info.ra&&"r"==a.o));t:if(a=e,!b.va.I||lL(b)){if(b.pendingRequests_.length){if(b.pendingRequests_[0].info.b[0].startTime<=d)break t;pL(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));mL(b);a&&b.g&&
d<b.g.startTime&&(b.g=b.j.xi(d,!0).b[0])}}}
function PL(a,b,c){ML(a,b,c);var d=b.g;if(b.g.b.mc()){vL(b)&&a.va.b&&(OL(a,b,c),b.g||nL(b,a.k));var d=b.g,e=d.C-a.k,g;(g=b.j.mc()&&b.g.b!=b.j)&&!vL(b)&&(g=15>=e);var h=!d.Z||0==d.g&&0==d.j?0:d.Z.length-(d.j+d.g);g&&0==h&&(g=d.startTime+GL.b,d.g&&(g+=d.duration),nL(b,g),d=b.g,g=!1);d.b.Dl()?(c=WK(a.B,d.b.info.ra,c.j.info.ra,e),e=g,c=Mo(d,c),c.Z&&1<c.b.length&&(e?c=Mo(d,c.b[0].g):(e=c.b[c.b.length-1],g=e.g/c.Z.length,!e.A&&.4>g&&(c=Mo(d,c.Z.length-e.g)))),d=c):d=To(d.b,d)}else d.b.Dl()?(c=WK(a.B,b.j.info.ra,
c.j.info.ra,0),d=Mo(d,c)):d=To(d.b,d);iL(b,QL(a,d,!1))}function QL(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=eL(d);break t}}else d.C=e;d=null}IG(a,d)}e=c?2:1;a.C&&(e=0);c=Ro(b);d=a.A;var g=a.B,h=Math.min(2.5,bK(g.b)),g=XK(g);b=new xL(a.va,b,new FL(d,e,c,c-h*g));a=u(a.bz,a);b.B=a;b.start();return b}function IG(a,b){b&&a.H("formatchange",b)}
f.bz=function(a){if(!this.fa()&&3<=a.state){var b=a.info.b[0].b,c=!this.ca&&b.info.video,d=!this.V&&b.info.b;6==a.state&&zL(a)?(this.wf(!1,a.getErrorCode(),yL(a)),b.info.video&&0<a.j&&!dL(this.o)?(cL(this.o,b.info),pL(this.g),Jo(a.info.b[0])&&HL(this,this.g,!1),this.qc()):a.start()):4==a.state?(c?IL(this,"vrr"):d&&IL(this,"arr"),a.start()):5==a.state?(c?(this.ca=a.D,$y()&&fz()):d&&(this.V=a.D),z(a.k,function(a){Jo(a.info)&&a.info.b.Np(a)}),kb(a.k,function(a){return cp(a)})&&!a.k[0].info.b.Ml()?this.qc():
this.wf(!0,"fmt.unparseable",yL(a))):7==a.state?(this.wf(!1,a.getErrorCode(),yL(a)),MG(this)):3==a.state?(this.qc(),c&&$y()&&ng(document.body,"exp-js-scheduler-aggressive")&&fz()):Jo(a.info.b[0])?(b.o=!0,this.qc()):this.wf(!0,"net.retryexhausted",yL(a))}};function MG(a){if(isNaN(a.P)){var b=u(a.qc,a);a.P=L(b,0)}}function RL(a){if(isNaN(a.O)){var b=u(function(){this.O=NaN;this.qc()},a);a.O=L(b,GL.g)}}
f.qc=function(){this.P=NaN;KL(this);if(this.b&&!hr(this.b))if(this.D.g)Infinity!=this.L&&(this.L=Infinity,this.b.xf(Infinity));else if(!isFinite(this.L)){var a=Math.floor(Math.max(this.j.j.index.zf(),this.g.j.index.zf()));0<a&&(this.b.xf(a),this.L=a)}if(!this.fa())if(a=this.D,v()-a.B>=a.o){a=this.D;if(!a.k){var b=yo(a.D,"start_seq",(Qb(a.b).index.kc()+1).toString());xp(a,b)}RL(this)}else if("prerender"==window.document.webkitVisibilityState)RL(this);else if(KL(this),jL(this.g),jL(this.j),qL(this.g),
qL(this.j),!this.b||LL(this,this.j,this.b.b)||LL(this,this.g,this.b.g)||((a=SL(this,this.g,this.b.g))&&!this.I&&(this.I=v(),IL(this,"vda")),b=Bt(this.b.g.buffered,this.k),isNaN(b)&&!sL(this.g)&&this.b.b.buffered.length||(sL(this.g)&&(b=NaN),a|=SL(this,this.j,this.b.b,b)),sL(this.g)&&sL(this.j)&&fr(this.b)&&!hr(this.b)&&(b=this.b,fr(b)&&b.j.endOfStream(),ZJ(this.A)),a&&!ir(this.b)&&MG(this)),KG(this,this.g,bL(this.o)),KG(this,this.j,this.o.g),this.g.j.o||this.j.j.o)this.wf(!0,"net.retryexhausted");
else{a=this.I?v()-this.I:0;if(this.U||a>=this.va.D)ML(this,this.g,this.j)&&PL(this,this.g,this.j),ML(this,this.j,this.g)&&PL(this,this.j,this.g);!this.va.M||!this.N||this.C||this.g.pendingRequests_.length||this.j.pendingRequests_.length||(a=30+this.k,wL(this.g,a)||wL(this.j,a)||(a=this.N,this.N="",b=xi(a),Gi(a,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:u(this.wf,this,!1,"pathprobe.net",{shost:b})})))}};
function SL(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||Ko(b.k,e.info)||(b.k=null,fr(a.b)&&c.abort(),c.g=null);var g;e.b?g=!1:(g=e.info.b.b,c.g==g?g=!1:(TL(a,c,g),c.g=g,a.H("initsegment",c.g),g=!0));if(g&&c.updating)return!0;g=NL(a,b,!1);g=a.k+g;0<=d&&(g=Math.min(g,d));d=kL(b,g);if(!d)return!1;g=new Uint8Array(e.buffer,d.start,d.length);if(a.D.j&&3==e.info.type&&ja(c.timestampOffset)){var h=0,h=a.va.V&&!b.A?-dp(e):-(dp(e)-e.info.startTime);c.timestampOffset==
h||isNaN(h)||(c.timestampOffset=h)}if(!TL(a,c,g))return!1;if(!a.D.j||!a.va.V||b.A){for(var k;b.b.length;){if(b.b[0].Z.end>d.end){k=b.b[0];var l=d.end-b.b[0].Z.start+1,l=Math.min(l,k.info.g),h=new Io(k.info.type,k.info.b,k.info.Z,k.info.k,k.info.startTime,k.info.duration,k.info.j,l,!1);g=vo(k.Z.start,l);h=new bp(h,k.buffer,g,k.b);l=new Io(k.info.type,k.info.b,k.info.Z,k.info.k,k.info.startTime,k.info.duration,k.info.j+l,k.info.g-l,k.info.B);g=new to(g.end+1,k.Z.end);g=[h,new bp(l,k.buffer,g,!1)];k=
g[0];b.b[0]=g[1]}else k=b.b.shift();g=b;h=k.info;g.k=h;g.C&&g.k.A&&(g.C=!1);g.ra=Math.max(g.ra,h.b.info.ra);if(k.Z.end==d.end)break}b.b.length&&k.buffer==b.b[0].buffer||(b.o-=k.buffer.byteLength)}b.A||(b.A=!0);e.b&&(c.g=e.info.b.b,a.H("initsegment",c.g));return!ir(a.b)||c.updating}function TL(a,b,c){if(ir(a.b))try{b.appendBuffer(c)}catch(d){return!1}else b.append(c);return!gr(a.b)}
function NL(a,b,c){var d;d=Hp(a.o.b)&&a.va.b?b.j.info.b?10485760:62914560:b.j.info.b?a.va.k:a.va.o;c&&(d+=a.va.g);return d/(Hp(a.o.b)?b.g?b.g.b.info.ra:b.j.info.ra:b.ra)}f.seek=function(a){if(!this.fa()){KL(this);this.T=v();this.g.j=bL(this.o);var b=UL(this,this.g,a,this.b&&this.b.g);this.j.j=this.o.g;var c=UL(this,this.j,b,this.b&&this.b.b);this.k=Math.max(a,b,c);this.F=!0;MG(this)}};
function UL(a,b,c,d){if(b.j.mc())if(d){var e=Bt(d.buffered,c),g=NaN,h=b.k;h&&(g=Bt(d.buffered,h.b.index.Ti(h.k)));if(e==g&&lL(b))return c;d=oL(b,c);if(0<=d)return d;LG(b,!0);b.j.info.video&&b.k&&!b.k.A&&!rL(b)&&(d=b.k,b.b.length&&(d=db(b.b).info),d=b.g||d,d=Mo(d,d.Z.length-(d.g+d.j)),iL(b,QL(a,d,!0)));if(isNaN(e))return nL(b,c);nL(b,e+GL.b)}else nL(b,c);else b.j.j||HL(a,b,!1),0!=c&&pL(b);return c}function KG(a,b,c){b.j!=c&&(b.j=c,c.j||HL(a,b,!1))}
function HL(a,b,c){var d=c?65536:0;c&&!isNaN(a.va.C)&&(d=Math.floor(Math.max(d,a.va.C*b.j.info.ra)));c=b.j.Fr(d);z(c,function(a){var c=QL(this,a,!0);!Jo(a.b[a.b.length-1])&&iL(b,c)},a);b.j.j=!0}f.J=function(){JL(this);this.j&&(pL(this.j),pL(this.g));Ue(this.aa);this.g=this.j=null;GL.G.J.call(this)};f.wf=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&&fr(this.b)&&(a=this.b,fr(a)&&a.j.endOfStream("network")),this.dispose())};
GL.prototype.getDebugInfo=function(){var a={lct:this.k.toFixed(3),lsk:this.F,lmf:Hp(this.o.b),lbw:dK(this.A).toFixed(3),lhd:bK(this.A).toFixed(3),ltd:(1E9*cK(this.A)).toFixed(3),laa:this.j.k?Po(this.j.k):"",lva:this.g.k?Po(this.g.k):"",lar:this.j.g?Po(this.j.g):"",lvr:this.g.g?Po(this.g.g):""};this.b&&!gr(this.b)&&(a.lab=zt(this.b.b.buffered),a.lvb=zt(this.b.g.buffered));return a};function IL(a,b,c){a.da[b]=c?window.performance.timing.navigationStart+c:v()};function VL(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 ar(this);S(this,this.k);this.b&&(br(this.k,this.b,["message","mskeymessage"],this.Jo),br(this.k,this.b,["error","mskeyerror"],this.Io),br(this.k,this.b,["ready","mskeyadded"],this.Ho))}w(VL,Hh);f=VL.prototype;f.setCallbacks=function(a,b,c,d){this.D=a;this.C=b;this.B=c;this.g=d};f.Jo=function(a){this.D.call(this.g,a)};
f.Io=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.Ho=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;VL.G.J.call(this)};function WL(a,b){this.b=a;this.k=b;this.A={};this.j=null;this.o=new ar(this);S(this,this.o);Wq()||(br(this.o,this.b,["keymessage","webkitkeymessage"],this.D),br(this.o,this.b,["keyerror","webkitkeyerror"],this.C),br(this.o,this.b,["keyadded","webkitkeyadded"],this.B));this.g=null}w(WL,Hh);function XL(a){a.g=new (Wq())(a.k.b);a.b&&(a.b.msSetMediaKeys?a.b.msSetMediaKeys(a.g):a.b.setMediaKeys(a.g))}
function YL(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}WL.prototype.D=function(a){var b=YL(this,a);b&&b.Jo(a)};WL.prototype.C=function(a){var b=YL(this,a);b&&b.Io(a)};WL.prototype.B=function(a){var b=YL(this,a);b&&b.Ho(a)};WL.prototype.J=function(){this.b=null;WL.G.J.call(this)};var ZL=null,$L=null;function aM(a,b){this.url=a;this.b=b};function bM(a,b,c){this.b=a;this.headers=b;this.message=c};function cM(a,b,c,d,e,g){this.F=a;this.g=d;this.C=e;this.o={session_id:g};mt(this,a.j);this.b=[];this.k=this.B=this.D=!1;var h;try{var k=c.b;if(Wq()){b.g||XL(b);var l=c.g||"video/mp4",p;if("com.microsoft.playready"==b.k.b){var r=new Uint8Array(270);for(a=0;135>a;a++)r[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);p=b.g.createSession(l,k,r)}else p=b.g.createSession(l,k);h=new VL(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 VL(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.Ok,this.ev,this.dv,this),S(this,this.j)}w(cM,Hh);function mt(a,b){if(af(b)){for(var c in a.o)b=ae(b,c,a.o[c]);a.A=b}else dM(a,"drm.auth","u")}f=cM.prototype;
f.start=function(){this.fa()||(this.D=!0,this.b.length&&this.Ok(this.b.shift()))};
f.Ok=function(a){if(!this.fa())if(this.k&&a.defaultURL&&mt(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(!ZL)for(ZL={},$L={},c=0;65>c;c++)ZL[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),$L[ZL[c]]=c;for(var c=$L,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",Ww:a,responseType:"arraybuffer",withCredentials:!0,onSuccess:this.Xw,onError:this.Zo,context:this};b=this.A;this.C&&(b=ae(b,"access_token",this.C));Gi(b,a)}else this.b.push(a),this.B||(this.B=!0,this.g.H("newsession",this))};
f.dv=function(){this.fa()||(this.k||(this.g.H("sessionready"),this.k=!0),this.b.length&&this.Ok(this.b.shift()))};
f.Xw=function(a){if(!this.fa())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];rb(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=s(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 bM(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?dM(this,"drm.auth","f"+a.b,Au(a.b)):(b=(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new aM(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60)),(b||c)&&this.g.H("newlicense",b,c),this.j.update(a.message)):dM(this,"drm.net","r0","YTP_ERROR_SERVER_ERROR")}else this.Zo(a)};f.ev=function(a,b){this.fa()||dM(this,"drm.keyerror","s"+a+"."+b)};f.Zo=function(a){dM(this,"drm.net","r"+a.status)};
function dM(a,b,c,d){a.fa()||a.g.H("licenseerror",b,c,d);a.dispose()}f.J=function(){this.g=null;cM.G.J.call(this)};function eM(a,b){this.b=a;this.g=b||null};function fM(a,b){$i.call(this);this.C=a;this.b=b;this.subscribe("newlicense",this.Cu,this);this.subscribe("newsession",this.Du,this);this.subscribe("sessionready",this.Eu,this);this.N=gq();this.L=null;this.B={};this.g=[];this.j=Ep;this.I=new WL("com.microsoft.playready"==b.b?null:a,b);S(this,this.I);this.o=new WL(a,b);S(this,this.o);this.A=2;this.D=new ar(this);S(this,this.D);this.k=!1;this.F=null;br(this.D,this.C,Wq()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.Bu)}w(fM,$i);f=fM.prototype;
f.Bu=function(a){gM(this,new eM(a.initData,a.contentType),!0)};
function gM(a,b,c){if(!(a.fa()||"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||(hM(a,b),a.k=!0)}}}function hM(a,b){var c=new cM(a.b,a.I,b,a,a.L,a.N);S(a,c)}f.Cu=function(a,b){a&&C(a,"HD")&&!Gp(this.j)&&"com.microsoft.playready"!=this.b.b&&(this.j=Fp,this.H("qualitychange"));b&&!this.F&&(this.F=b,this.H("heartbeatparams",b))};f.Du=function(){this.fa()||(this.g.shift(),this.g.length&&hM(this,this.g[0]))};f.Eu=function(){this.A--;0==this.A&&XL(this.o)};
f.J=function(){this.C=null;this.g=[];fM.G.J.call(this)};function iM(a){this.j={};this.j.c1a=u(this.k,this);this.j.c3a=u(this.o,this);(this.b=a)&&this.b.ca?this.g=vi(this.b.ca):this.g=[]}iM.prototype.k=function(){var a=q("yt.abuse.botguardInitialized");return a&&a()?(a=q("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};iM.prototype.o=function(a){return"r3a="+Math.floor(this.b.Oa%$a(a.c3a))};function jM(a,b,c){this.b=a;this.j=b;this.g=c};function kM(a){this.b=a}function lM(a,b){return Ip(Ip(a.b.vi,b.$l),b.tf)}
function mM(a,b){var c;c=!!b.g.b;var d;!a.b.b.F||"detailpage"!=a.b.$&&"adunit"!=a.b.$||(d=CJ(a.b).clone());d||(a.b.og?d=a.b.og.clone():jh&&!a.b.pi?d=window.screen&&window.screen.width?new G(window.screen.width,window.screen.height):null:a.b.Yc&&(d=a.b.Yc.clone()));d?((jh||ic||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=Dp("auto",e.b,!1)}else e=Fp;c=e.b;a.b.b.N&&
(c=Math.max(c,po.large));mh&&mr("crkey")&&(c=Math.max(c,po.hd1080));if(d=(mr("armv7")||mr("android"))&&!cE(a.b))d=b.g.g[0],d="9"==d.j||"("==d.j;d&&(c=Math.min(c,po.large));a.b.b.V&&a.b.Yc&&540==a.b.Yc.height&&(c=Math.max(c,po.hd720));c=Math.max(c,po.medium);e.b!=c&&(e=new Cp(e.g,c,e.j));return e};function nM(){this.k=this.b=NaN;this.j=this.g=!1}function Ut(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 oM(){this.b=this.g=!1}oM.prototype.start=function(){this.g=!0};function pM(){this.g=0;this.b=this.o=this.j=this.k=NaN};var qM={};function rM(a){return a?24==a.length&&"UC"==a.slice(0,2)?a.substr(2):22==a.length?a:null:null};var sM;
sM={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}"],pE:6,da:[5,6],qE:5};function tM(a,b,c,d,e,g){s(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)}tM.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};tM.prototype.clone=function(){return new tM(this.j,this.g,this.b,this.k,this.o,this.A)};
tM.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 uM(a,b,c){ja(a)?(this.b=vM(a,b||0,c||1),wM(this,c||1)):la(a)?(this.b=vM(a.getFullYear(),a.getMonth(),a.getDate()),wM(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 vM(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=uM.prototype;f.Xr=sM.pE;f.Yr=sM.qE;
f.clone=function(){var a=new uM(this.b);a.Xr=this.Xr;a.Yr=this.Yr;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()),wM(this,a.getDate()))};f.CE=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.CE()};function wM(a,b){a.getDate()!=b&&a.b.setUTCHours(a.b.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.b.valueOf()};var xM=["3djj8jS0370cu_ghKs_Ong","LsooMJoIpl_7ux2jvdPB-Q","JkWoS4RsldA1coEIot5yDA","jVkjd2VWCWO-9DHRQER3Yg","L8ZULXASCc1I_oaOT0NaOQ"];function yM(a){this.g=a;this.b=0;this.o=NaN;this.j=0;this.ba=[];this.k=zM(this.g);this.A=this.B=0}function AM(a){a.k.startTime=a.j;a.k.endTime=a.b;a.ba.length&&db(a.ba).isEmpty()?a.ba[a.ba.length-1]=a.k:a.ba.length&&a.k.isEmpty()||a.ba.push(a.k);a.B+=a.b-a.j;a.k=zM(a.g);a.j=a.b}function BM(a){return a.B+a.g.j()-a.j}function CM(a){a.ba.length&&a.b==a.j||AM(a);var b=a.ba;a.ba=[];return b}
yM.prototype.update=function(){var a=this.g.j()||0,b=DM(this.g);if(a!=this.b||EM(this,a,b)){if(a<this.b||a-this.b>b-this.o+.5||EM(this,a,b))AM(this),this.j=a;this.o=b;this.b=a}};function EM(a,b,c){c-=a.o;return b==a.b&&.5<c};function FM(a,b){this.b=b;this.k=!1;this.g=a}FM.prototype.j=function(){return{ps:this.b.ob,el:this.b.$}};FM.prototype.send=function(){this.k||(lf(Xd(this.b.rb+"set_awesome",this.j())),this.k=!0)};function GM(a,b,c){FM.call(this,b,c);this.o=a}w(GM,FM);
GM.prototype.j=function(){var a=GM.G.j.call(this);sa(a,OK(this.b));var b=Hb(this.g.jg/this.g.Oa,0,1);sa(a,{html5:"1",video_id:this.g.videoId,eurl:this.b.g,framer:this.b.F,feature:this.b.B,list:this.g.La,w:b,l:this.g.Oa,plid:this.g.yb,ei:this.g.A,access_token:this.g.B,tpmt:BM(this.o),cpn:this.g.Da});this.b.k&&(a.adformat=this.b.k);this.b.D&&(a.referrer=SK(this.b));this.b.xc&&(a.autoplay="1");this.b.Sa&&(a.authuser=this.b.Sa);this.b.Za&&(a.pageid=this.b.Za);this.g.re&&(a.splay="1");this.g.I&&(a.subscribed=
this.g.I);sa(a,GM.G.j.call(this));sa(a,OK(this.b));return a};function HM(a){this.b=a;this.j={};this.M=NaN;this.o=new Uv(this.Au,3E4,this);S(this,this.o);this.A=new Uv(this.vk,100,this);S(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(HM,Hh);var IM={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function JM(a,b,c,d){var e=a.j[b];e||(e=[],a.j[b]=e);a=0<=d?d:DM(a.b);e.push(a.toFixed(3)+":"+c.join(":"))}f=HM.prototype;
f.vk=function(a){a=a||DM(this.b);var b=this.b.B();if(!isNaN(this.O)&&!isNaN(b.j)){var c=b.j-this.O;0<c&&JM(this,"bwm",[c,(b.o-this.P).toFixed(3)],a)}this.O=b.j;this.P=b.o;isNaN(b.b)||JM(this,"bwe",[b.b.toFixed(0)],a);isNaN(b.g)||(c=b.g,b.k<c&&(c=b.k),this.L!=c&&(JM(this,"bh",[c.toFixed(3)],a),this.L=c),this.b.g.b.B&&3>c&&("PL"==this.g||"B"==this.g)&&this.A.start());JM(this,"cmt",[this.b.j()],a)};
function KM(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.$;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.ib&&(b.live=a.b.b.tb?"dvr":"live");b.html5="1";return b}
f.sg=function(a){if(!this.fa()&&!Xb(this.j)){0!=this.A.ta||this.vk(a);a=TK(this.b.g).hmewdrop;0<=a&&a!=this.D&&JM(this,"df",[a-(this.D||0)]);this.D=a;a=KM(this);cc(a,OK(this.b.g));a=Xd(RK(this.b.g),a);for(var b in this.j)a+="&"+b+"="+this.j[b].join(",");lf(a);this.j={};this.o.start()}};f.Lg=function(){JM(this,"vps",["N"]);this.M=Te(u(this.sg,this),1E4);this.o.start()};f.onError=function(a,b){var c=this.b.j(),c=[a,c.toFixed(3)];b&&c.push(b);JM(this,"error",c)};
f.Au=function(){"PL"==this.g&&(JM(this,"vps",[this.g]),this.sg())};f.J=function(){HM.G.J.call(this);Ue(this.M)};function LM(a,b,c,d){this.b=[];this.o=[];this.I=!1;this.g="watchtime"==c;this.ka="playback"==c;this.qb="delayplay"==c;this.Ba=(this.F="atr"==c)?"/api/stats/"+c:QK(b)+"api/stats/"+c;d&&(this.Qn=d.fs,d.rtn&&(this.kg=d.rtn),this.g?(this.of=d.state,0<d.rti&&(this.Rh=d.rti)):(this.la=d.mos,this.xa=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.Wh=b.xc;this.Ia=b.C;this.Ha=b.M;this.Ra=b.L;this.Wa=b.N;this.cb=b.rf;this.fb=b.se;this.hb=b.O;this.gb=
b.P;this.nb=b.V;this.xb=b.T;this.ac=b.o;this.bc=b.g;this.Md=b.$;this.o=b.b.b;this.O=b.A;this.Pn=b.Xc;this.qf=b.D;this.P=b.U;this.j=b.B;this.jf=b.Ra;this.aa=b.Ba;this.da=b.Ca;this.za=UK(b);!a.b||a.Wa.isEmpty();this.Wh=a.lg||this.Wh;this.U=a.Oh;this.Uc=a.Da;this.C=a.pf;this.ca=a.Uj;this.k=a.jg;this.N=a.qe;this.lf=a.b.id;this.Rn=a.re;this.hf=a.Mh;a.ib&&(this.pa=a.tb?"dvr":"live");this.kf=a.Sj;this.yb=a.yb;this.qd=a.A;this.La=a.La;this.j=a.Ha||this.j;this.V=a.hb;this.T=a.gb;this.pf=a.Nh;this.nf=a.I;this.videoId=
a.videoId;this.mf=a.cb}f=LM.prototype;f.Wh=!1;f.$u=!1;f.uo=!1;f.Qn=!1;f.ou=!1;f.Rn=!1;f.Pn="yt";f.Rh=null;f.kg=null;f.send=function(){if(!this.I){var a=MM(this),a=Xd(this.Ba,a);this.F?this.B&&Gi(a,{method:"POST",gd:{atr:this.B}}):this.C?Gi(a,{headers:{Authorization:"CredentialTransfer type="+this.ca+",token="+this.C}}):lf(a);this.I=!0}};
function MM(a){var b={ns:a.Pn,el:a.Md,cpn:a.Uc,docid:a.videoId,ver:2,referrer:a.qf,cmt:a.Af(a.k),plid:a.yb,ei:a.qd,fmt:a.lf,fs:a.Qn?"1":"0",rt:a.Af(a.wa),c:a.cb,cver:a.fb,adformat:a.Ca,content_v:a.Ia,euri:a.bc,subscribed:a.nf,lact:a.za,live:a.pa,cplatform:a.ac,cbrand:a.Ha,cmodel:a.hb,cnetwork:a.gb,cbr:a.Ra,cbrver:a.Wa,cos:a.nb,cosver:a.xb,mos:a.la,q:a.jf,osid:a.mf,state:a.of,volume:a.xa};a.Wh&&(b.autoplay="1");a.uo&&(b["final"]="1");a.Rn&&(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.da&&(b.uga=a.da+a.aa);n(a.M)&&(b.len=a.Af(a.M));!a.g&&0<a.o.length&&(b.fexp=a.o.toString());null!=a.kg&&(b.rtn=a.Af(a.kg));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.pf&&(b.ssrt="1");a.g?(b.idpj=a.hf,b.ldpj=a.kf,null!=a.Rh&&(b.rti=a.Af(a.Rh))):(n(a.L)&&(b.at=a.L),n(a.A)&&(b.allowed=a.A),n(a.D)&&(b.ex_ads=a.D));(a.ka||a.qb)&&a.U&&(b.tst=a.U);a.g&&(b.st=NM(a,A(a.b,function(a){return a.startTime})),b.et=NM(a,A(a.b,function(a){return a.endTime})));ib(a.b,
function(a){return 0!=a.visibilityState})&&(b.vis=NM(a,A(a.b,function(a){return a.visibilityState})));ib(a.b,function(a){return 1!=a.playbackRate})&&(b.rate=NM(a,A(a.b,function(a){return a.playbackRate})));ib(a.b,function(a){return"-"!=a.xk})&&(b.cc=A(a.b,function(a){return a.xk}).join(","));return b}f.Af=function(a){return(1*a.toFixed(3)).toString()};function NM(a,b){return A(b,a.Af).join(",")};function OM(a){this.b=a;this.k=new HM(a);S(this,this.k);this.g=new yM(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 GM(this.g,this.b.b,this.b.g)}w(OM,Hh);function PM(a,b,c){var d=DM(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.rB,a,c,b),d);return c}f=OM.prototype;
f.rB=function(a,b){if(!this.fa()){this.B=NaN;this.g.update();var c=CM(this.g),d=QM(this,c);b&&(d.Rh=a);var e=400<this.F;!(1<c.length)&&c[0].isEmpty()||e||(d.kg=PM(this,!0,a));d.send();this.F++}};function RM(a,b){var c=SM(a.b);sa(c,{state:a.A});c=new LM(a.b.b,a.b.g,b,c);c.k=a.b.j();c.M=a.b.A();c.wa=DM(a.b);c.b=[zM(a.b)];return c}function QM(a,b){var c=RM(a,"watchtime");c.b=b;c.k=a.g.b;return c}function TM(a){a.g.update();return QM(a,CM(a.g))}
function UM(a){var b=a.b.g;a=a.b.b;var c=a.Ha||b.B,c={ns:b.Xc,html5:"1",el:b.$,ps:b.ob,fexp:b.b.b.join(",")||void 0,feature:c||void 0,ctrl:a.hb||void 0,ytr:a.gb||void 0,list:a.La,d:b.xa,f:b.ca};b.xc&&(c.autoplay="1");a.I&&(c.subscribed=a.I);return c}f.Lg=function(){this.k.Lg()};f.onError=function(a,b){this.k.onError(a,b)};
function VM(a,b){if(!a.fa()){W(b.state,2)?(a.A="paused",a.j&&TM(a).send()):W(b.state,8)?(a.A="playing",a.j&&isNaN(a.B)&&PM(a,!1)):a.A="paused";var c=a.k,d=b.state,e;e=b.state;if(W(e,128))e="ER";else if(W(e,16)||W(e,32))e="S";else{var g=IM[Wt(e)];"B"==g&&W(e,4)&&(g="PB");e=g}if(e!=c.g){var g=e,h=DM(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.fa()){var k=KM(c);k.qoealert="1";k=Xd(RK(c.b.g),k);lf(k)}c.I=!0}"B"!=g||"PL"!=
c.g&&"PB"!=c.g||(c.B=!0);c.k=h}!c.b.g.b.B||"B"!=e&&"PB"!=e?JM(c,"cmt",[c.b.j().toFixed(3)]):c.vk();JM(c,"vps",[e]);c.g=e}if(W(d,128))c.onError(d.b.errorCode,d.b.errorDetail);(W(d,2)||W(d,128))&&c.sg();a.o&&W(b.state,128)&&(a.bi("error-100"),N(a.o))}}function WM(a){a.o=Te(u(a.bi,a,"heartbeat"),3E4)}
f.bi=function(a){var b=this.b.g,c=this.b.b,d={ns:b.Xc,el:b.$,eurl:b.g,fmt:c.b?c.b.id:0,html5:1,list:c.La,plid:c.yb,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.ck&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=BM(this.g));sa(d,OK(b));lf(Xd("//www.youtube.com/live_204",d))};f.J=function(){OM.G.J.call(this);N(this.B);this.B=NaN;var a=this.g;Ue(a.A);a.A=NaN};OM.prototype.getDebugInfo=function(){return MM(RM(this,"playback"))};
function XM(a){if(!a.M){a.b.b.o.eventLabel=a.b.g.$;a.b.b.o.playerStyle=a.b.g.ob;a.b.b.V&&(a.b.b.o.feature="pyv");a.b.b.o.vid=a.b.b.videoId;a.b.b.o.isAd=!("adunit"!=a.b.g.$&&!a.b.b.V);var b=a.b.b.o;b&&b.uid&&(qM[b.uid]=b);t:{b=a.b.b.o.uid;if(!b){b=Re("CONVERSION_CONFIG_DICT");if(!b)break t;b=b.uid||null;if(!b)break t}i:{var c=Re("CONVERSION_CONFIG_DICT");if(s(b)){var d=rM(b);if(!c||c.uid!=d)if(c=qM[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=Xd(c.baseUrl,h)}else e=null}else e=null;e&&lf(e)}(e=Re("CONVERSION_CONFIG_DICT"))&&(!s(b)||e.uid==rM(b))&&Tb(xM,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=Xd(e.baseUrl,b))&&lf(b))}a.M=!0}};function YM(){this.endTime=this.startTime=-1;this.xk="-";this.playbackRate=1;this.visibilityState=0}YM.prototype.isEmpty=function(){return this.endTime==this.startTime};function ZM(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 DM(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 SM(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.xa&&(c.threed=a.yx);c.plid=a.yb;c.ei=a.A;c.list=a.La;c.cpn=a.Da;a.videoId&&(c.v=a.videoId);a.Uk&&(c.infringe=1);a.re&&(c.splay=1);a.ib&&(c.live=a.tb?"dvr":"live");a.lg&&(c.autoplay=1);a.fb&&(c.sdetail=a.fb);a.T&&(c.partnerid=a.T);a.cb&&(c.osid=a.cb);sa(b,c);return b}
function zM(a){var b=new YM;b.xk=a.o().cc||"-";var c=a.g;b.playbackRate=c.Pa&&c.Pa.playbackRate||1;(c=Bg("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.g.mb?b.visibilityState=2:a.g.Xq&&(b.visibilityState=1);return b};function $M(a,b){this.state=a;this.b=b}function Ov(a,b){return W(a.state,b)&&!W(a.b,b)?1:!W(a.state,b)&&W(a.b,b)?-1:0};function aN(a,b){$i.call(this);this.za=new nM;this.A=new $t(u(this.getCurrentTime,this),u(this.getPlayerState,this),u(this.Vh,this));S(this,this.A);this.T=NaN;this.I=this.C=null;this.B=a;this.pa=new kM(a);this.xa=!1;this.D=this.k=null;this.L=[];this.P=new oM;this.N=new oM;this.wa=NaN;this.j=new Pt;this.Ha=b;this.V=this.ca=null;this.F=NaN;this.U=new Sv(this);this.b=new Ir;this.g=this.O=null;this.da=NaN;this.o=null;this.Ca=!1;this.aa=0;this.Ia=null;this.ka=!1;this.la=null}w(aN,$i);
function jt(a){$y()?cz(a.aa):N(a.aa)}f=aN.prototype;f.J=function(){N(this.da);Ue(this.wa);it(this);bN(this);jt(this);qH(this);Lh(this.V,this.U,this.b);this.U=this.I=null;this.ka=!1};
function cN(a,b,c){a.L.length=0;a.P=new oM;a.N=new oM;a.T=NaN;a.F=NaN;a.O=null;a.Ca=!1;a.g&&Mt(a.g);dN(a);it(a);bN(a);jt(a);Jh(a.b);a.A.reset();if(2==a.Ha||ef(a.B.ye))b.Wo=!0;a.b=b;a.b.subscribe("dataupdated",a.ax,a);a.b.subscribe("dataloaded",a.Xp,a);a.b.subscribe("onStatusFail",a.$w,a);b.yf&&b.yf>b.Ta&&(b=b.yf,a.I&&(a.A.Ag(a.I),a.I=null),a.I=new Xt(1E3*b,2147483646),a.I.$a.subscribe("onEnter",a.rg,a),a.A.wi(a.I));it(a);a.b.te||(c=new ZM(a.b,a.B,c,u(a.Td,a),u(a.getCurrentTime,a),u(a.Yw,a),u(a.Zw,
a)),a.o=new OM(c));a.ka=!1;eN(a,"newdata");fN(a,new Pt)}function it(a){if(a.o){var b=a.o;if(!b.fa()&&b.j){b.A="paused";var c=TM(b);c.uo=!0;c.send();c=b.k;"PL"==c.g&&(c.g="N");JM(c,"vps",[c.g]);c.sg();N(b.o);b.dispose()}Jh(a.o);a.o=null}}f.getVideoData=function(){return this.b};f.R=function(){return this.B};function gN(a){return!(!a.b.g||!a.b.g.g.length)}function hN(a){if(Yr(a.b))return!0;Nv(a,"api.invalidparam");return!1}function iN(a){hN(a)&&!a.P.g&&(a.P.start(),a.o&&a.o.Lg(),a.Xp())}
f.Xp=function(){if(Zr(this.b))Zr(this.b),this.P.b=!0,this.L=ub(this.b.D),Tr(this.b),gN(this)&&(this.b.tb&&(jN(this,this.b.Oa),kN(this,!0)),this.b.g.b&&lN(this),nJ(this,"i")),eN(this,"dataloaded"),this.N.g&&mN(this);else if(this.b.ka){var a=this.b;a.ka=!1;var b=a.O,c=xi(b),b=0>Ir.g.indexOf(c)?ff(b):gf(b),c=u(a.Gz,a),a=u(a.Xl,a);xp(new op(b),b,c,a)}else this.b.Le||(a=PK(this.B,this.b),$r(this.b,a))};function nN(a){iN(a);hN(a)&&(a.N.g||(a.N.start(),fN(a,Vt(a.j,8))),mN(a))}
function mN(a){if(!(a.N.b||!a.P.b||W(a.j,128)||a.L.length||(a.A.wg||a.A.Lg(),a.L.length||0<vt(a.A.g,-2147483648).length))){a.b.ib&&oN(a,Infinity,!0);a.N.b=!0;if(a.o){var b=a.o;b.b.b.Th&&b.b.b.lk&&(b.bi("connected"),WM(b))}a.H("playbackready",a)}}f.rg=function(a){this.pauseVideo();fN(this,!1==a?new Pt:new Pt(Rt()))};
function pN(a,b,c,d){a.b.b=c;a.b.N=d||c;if(a.o){d=a.b;var e=mM(a.pa,d),e=B(d.g.g,u(e.k,e));d=a.o.k;e=new jM(c,b,e?e.id:"");c=DM(d.b);JM(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&&JM(d,"view",[Math.round(e.width),Math.round(e.height)],c);JM(d,"vps",[d.g],c);d.sg(c)}a.H("internalvideoformatchange",
a.b,"m"==b)}function Nv(a,b,c,d){if(Tb(yu,c))var e=c;else var g=c;fN(a,Tt(a.j,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));qN(a)}function rN(a,b){a.L=a.L.filter(function(a){return b!=a});a.N.g&&mN(a)}f.Vh=function(){return W(this.j,8)&&!W(this.j,64)&&!W(this.j,2)};f.getPlayerState=function(){return this.j};f.getPlayerType=function(){return this.Ha};function sN(a,b){a.g&&qH(a);a.g=b;tN(a)}
function qH(a){a.D=null;a.k&&(a.k.C=!0);a.g&&(a.o&&a.P.g&&W(a.j,64)&&VM(a.o,new $M(new Pt(4),a.j)),dN(a),a.U.removeAll(),Mt(a.g),a.g=null)}
function uN(a){nN(a);W(a.j,64)&&fN(a,Vt(a.j,8));if(a.N.b&&a.g)if(a.b.g){var b;if(a.b.g.b)vN(a),b=a.Ia,a.k.resume();else{bN(a);b=a.b.P.b;var c=a.b,d={};c.L&&(d.ptk=c.L,d.oid=c.Md,d.ptchn=c.qd,d.pltype=c.hf);sa(b.g,d);sa(b.g,{c:a.B.rf,cver:a.B.se})}a.g.xd!=b?wN(a,b):(bs(a.b)&&Jt(a.g)&&oN(a,Infinity,!0),Kt(a.g))}else Nv(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function Ms(a){if(!a.b.g)return[];var b=xN(a);a=Lp(a.b.g,b);a.length&&(a=a.concat(["auto"]));return a}
function yN(a){return Ip(Ip(lM(a.pa,a.b),mM(a.pa,a.b)),xN(a))}function xN(a){return a.b.qk?Fp:a.C?a.C.j:gN(a)&&a.b.g.b&&pp(a.b.j)?Ep:Fp}function nJ(a,b,c){if(!a.fa()&&!W(a.j,128)&&(c&&(a.b.tf=c),gN(a))){"m"==b&&c&&Gp(c)&&(b="a");c=yN(a);if(a.b.g.b){if("i"!=b){var d=a.k;d.fa()||(IG(d,$K(d.o,c,b)),KG(d,d.g,bL(d.o)),Hp(d.o.b)&&"m"==b&&(d.va.T?(LG(d.g,!1),d.g.B=!0):LG(d.g,!0),d.g.j.mc()&&nL(d.g,d.k)),vL(d.g)&&OL(d,d.g,d.j),MG(d))}}else a.b.P=Gr(a.b.F,c),pN(a,b,a.b.P.getInfo());a.Vh()&&uN(a)}}
function FG(a){if(!a.getVideoData().N)return null;var b=a.getVideoData().N;return B(a.la,function(a){return a.id==b.id})}
function lN(a){Ap(a.b.j,{c:a.B.rf,cver:a.B.se});var b=a.B,c=new NC;if(mr("safari/")&&mr(" version/8")||b.b.xa)c.O=!0;b.b.wa&&(c.P=!0);b.b.qb&&(c.L=!0,c.B=1.25);b.b.aa&&(c.A=1.5);b.b.T&&(c.C=3.5);b.b.ka&&(c.D=300);b.b.Ca&&(c.I=!0);b.b.Uc&&(c.T=!0);cE(b)&&(c.o=8388608,c.k=524288,c.g=2097152,c.F=1048576,c.A=1.5,c.N=15,c.b=!1,c.M=!1,c.D=0,c.ai=po.hd720,lr()&&(c.ra=3E5));mh&&mr("crkey")&&(c.o=20971520,c.k=1572864,c.g=20971520,c.b=!0,c.j=1E3);var b=b.og||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.g=20971520,c.F=8388608,c.ai=po.auto);a.k=new GL(a.ca,c,a.b.j,a.b.g);a.k.subscribe("initsegment",a.St,a);a.k.subscribe("formatchange",a.Ut,a);a.k.subscribe("fatalerror",a.Tt,a);a.k.subscribe("softerror",a.Vt,a);a.k.subscribe("seekrequired",a.Wt,a);c=C(a.L,"spacecast");a.k.initialize(a.b.Ta,yN(a),c);a.b.mf&&(a.k.N=a.b.mf);a.L.length&&(a.k.C=!0)}
function bN(a){a.k&&(a.k.dispose(),a.k=null);a.D&&(a.D.dispose(),a.D=null)}function vN(a){if(!a.D){a.k?a.k.seek(a.getCurrentTime()):lN(a);a.D=new cr(a.g,a.b.Oa,a.b.g.g[0].mimeType,a.b.g.b[0].mimeType);try{var b=er(a.D)}catch(c){c.message="window.URL object overwritten by external code";window.setTimeout(function(){throw c;},0);Nv(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.Ia=new nr(b,!1,!0);dr(a.D,u(a.k.Nz,a.k))}}
f.St=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&&gM(b,new eM(a),!1)}}};f.Ut=function(a){pN(this,a.g,a.video.info,a.b.info)};
f.Tt=function(a,b){Nv(this,a,void 0,b);bN(this)};f.Vt=function(a,b){this.o.onError(a,b);var c;if(c="net.badstatus"==a)if(c=this.B.b.P)c=this.b,c=v()-c.ux>Ir.o;c&&(this.o.onError("staleconfig"),this.H("urlauthexpired"))};f.pauseVideo=function(a){if(W(this.j,64)){var b=this.j;fN(this,Tt(b,b.g&-9))}this.g&&(a&&fN(this,Vt(this.j,256)),this.g.pauseVideo())};
function qN(a){a.pauseVideo(!0);a.g&&(dN(a),a.D&&(a.D.dispose(),a.D=null),a.b&&(a.b.Ta=a.getCurrentTime()),a.F=NaN,Lt(a.g),W(a.j,128)||fN(a,Tt(a.j)))}function oN(a,b,c,d){if(a.g){b=Hb(b||0,0,zN(a));b>=zN(a)?kN(a,!0):kN(a,!1);a.b.Ta=b;a.F=b;var e=a.za;e.b=b;e.g=!0;c?a.Mi():(yG(a),d&&(a.V||(a.V=new Uv(a.Mi,d,a)),a.V.start()),AN(a,!0));a.I&&b>a.b.yf&&(a.A.Ag(a.I),a.I=null);a.H("seekto",a,b)}else a.b.Ta=b||0}
function yG(a){W(a.j,32)||(fN(a,Vt(a.j,32)),W(a.j,8)&&a.pauseVideo(!0),a.H("beginseeking",a))}f.Mi=function(){if(!isNaN(this.F)&&this.g){var a=this.Td();!this.b.ib&&this.F>=Math.floor(a)?(this.F=a,this.H("endseeking",this),this.pauseVideo(!0),this.rg()):(this.k&&this.k.seek(this.F),It(this.g,this.F))}this.V&&(this.V.dispose(),this.V=null);W(this.j,32)&&(a=this.j,fN(this,Vt(Tt(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.jg||this.b.Ta||0);return a};f.Td=function(){return bs(this.b)?Infinity:this.b&&this.b.Oa?this.b.Oa:zN(this)?zN(this):0};
f.Yw=function(){var a=new pM;if(this.ca&&this.k){var b=this.ca;a.j=b.D;a.o=b.F;a.b=dK(b);b=this.k;b.b&&!gr(b.b)&&(a.g=Dt(b.b.g.buffered,b.k),a.k=Dt(b.b.b.buffered,b.k));a.b=XK(b.B);dK(b.A);bK(b.A);cK(b.A)}else this.g&&(a.g=Dt(this.g.buffered,this.getCurrentTime()));return a};function BN(a){if(a.g)if(bs(a.b))a=1;else if(cs(a.b))if(a.xa)a=0;else{var b=a.g;a=(0<Ct(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.Td()}else a=Ns(a.g);else a=0;return a}
aN.prototype.getDebugInfo=function(a){var b={};a&&(this.o&&sa(b,this.o.getDebugInfo()),this.g&&sa(b,this.g.getDebugInfo()),this.k&&sa(b,this.k.getDebugInfo()),W(this.j,128)&&(b.debug_error=this.j.b));b.debug_videoId=this.b.videoId;return b};f=aN.prototype;f.ax=function(){eN(this)};f.$w=function(a){Nv(this,"auth",unescape(a.reason),a.errordetail)};function eN(a,b){a.H("internalvideodatachange",b||"dataupdated",a,a.b)}
function tN(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.rC)},a)}
f.rC=function(a){var b=a.target;if(b==this.g&&b.currentSrc){switch(a.type){case "error":if(this.B.mk&&b.error&&b.error.errorCode==b.error.MEDIA_ERR_NETWORK){setTimeout(u(function(){this.g&&(this.b.P&&this.g.load(),uN(this))},this),500);if(this.o)this.o.onError("progressive.net");return}break;case "durationchange":if(!this.b.tb||this.b.j&&!this.b.j.g)b=b.duration||0,(!this.D||isFinite(b)&&0<b)&&jN(this,b);break;case "ratechange":this.k&&(this.k.B.g=Math.max(1,this.g.playbackRate));break;case "ended":fN(this,
Tt(this.j,4));this.nk();break;case "loadedmetadata":this.b.Ta&&(this.g.currentTime=this.b.Ta),this.B.po&&this.b.Ta&&(this.T=this.b.Ta,this.pauseVideo(!0));case "loadeddata":this.da&&N(this.da);break;case "loadstart":Ue(this.wa);this.fi()||(this.wa=Te(u(this.fi,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.Ba=this.U.listen(this.g,"canplay",this.rv));case "suspend":AN(this);this.H("onLoadProgress",this,BN(this));
break;case "seeked":CN(this);break;case "playing":uq("plev");break;case "timeupdate":this.Ca=!0,this.fi(),CN(this),AN(this),this.H("onVideoProgress",this,b.getCurrentTime())}this.H("videoelementevent",a);a=Qt(this.j,a,this.za);fN(this,a)}};
f.fi=function(){var a=this.g;a&&this.Ca&&!this.b.rk&&!wq("vfp")&&2<=a.readyState&&!a.ended&&0<Ct(a.buffered)&&uq("vfp");if((a=this.g)&&!this.b.rk&&0<(a.duration||0)&&(!wq("paft")&&wq("plev")&&Jt(a)&&2<=a.readyState&&0<Ct(a.buffered)&&uq("pbr"),0<a.getCurrentTime())){Ue(this.wa);this.b.rk=!0;DN(this);if(this.o){a=this.o;if(!a.j){var b=RM(a,"playback");a.D=[10+a.b.b.Mh,10,10,40+a.b.b.Sj-a.b.b.Mh,40];var c=a.g;Ue(c.A);c.A=NaN;c.A=Te(u(c.update,c),100);c.o=DM(c.g);c.k=zM(c.g);b.kg=PM(a,!0);b.ou=!0;b.send();
!a.b.g.dc||a.b.g.$h||a.j||(b=a.b.g,c=a.b.b,b={noflv:"1",html5:"1",video_id:c.videoId,cpn:c.Da,plid:c.yb,ei:c.A,referrer:SK(b),eurl:b.g,framer:b.F,feature:b.B,fmt:c.b?c.b.id:0,ptk:c.L,skl:c.Un,access_token:c.B,ucid:c.jf},sa(b,UM(a)),delete b.fexp,b=Xd(a.b.g.rb+"user_watch",b),lf(b));a.b.b.L&&(b=a.b.g,c=a.b.b,b=Xd(b.rb+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.Da,plid:c.yb,ei:c.A,ptk:c.L,oid:c.Md,ptchn:c.qd,pltype:c.hf,content_v:b.C}),lf(b));if(a.b.b.Tn&&a.b.g.xe&&!a.j){var b=a.b.g,c=a.b.b,d=
{noflv:1,video_id:c.videoId,cpn:c.Da,el:b.$,ps:b.ob,referrer:SK(b),eurl:b.g,framer:b.F,fmt:c.b?c.b.id:0,ptk:c.L,subscribed:c.I,t:c.Tj};b.xc&&(d.autoplay="1");c.re&&(d.splay="1");0<c.Ta&&(d.start=1E3*c.Ta);c.ck&&(d.tmi="1");b=Xd(a.b.g.rb+"get_video",d);lf(b)}a.b.b.Th&&(a.bi("playback"),a.o||WM(a));a.b.b.qe||XM(a);a.j=!0;a=a.g;a.b=a.g.j();a.o=DM(a.g);.5<a.b-a.j&&(a.j=a.b)}L(u(this.nk,this),4500)}this.H("playbackstarted");this.k&&(this.k.U=!0);$y()&&dz();return!0}return!1};
function DN(a){var b=v(),c=a.getCurrentTime(),d=a.b;if(!wq("pbs")){var e=1E3*(c-d.Ta);0>e&&(e=0);uq("pbs",b-e);rq.measure&&rq.getEntriesByName&&(rq.getEntriesByName("mark_navigation_requested")[0]?rq.measure("measure_above_the_fold","mark_navigation_requested"):rq.measure("measure_above_the_fold"))}d.videoId&&(b=d.videoId,Aq(void 0).docid=b);d.A&&(b=d.A,Aq(void 0).ei=b);d.Da&&(b=d.Da,Aq(void 0).cpn=b);0<d.Ta&&(b=d.Ta.toString(),Aq(void 0).start=b);a.g&&Jt(a.g)&&(Aq(void 0).paused=1);d.b?(d=d.b.id,
Aq(void 0).fmt=d):Aq(void 0).fmt="-1";d=Math.round(BN(a)*a.Td()).toString();Aq(void 0).tds=d;c=c.toFixed(3);Aq(void 0).cmt=c;if(a.k){a=a.k;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(a.ca),c.length&&(c=c[0],IL(a,"vri",c.fetchStart),IL(a,"vdns",c.domainLookupEnd),IL(a,"vreq",c.requestStart),IL(a,"fvb",c.responseStart),IL(a,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(a.V),c.length&&(c=c[0],IL(a,"ari",c.fetchStart),IL(a,"adns",
c.domainLookupEnd),IL(a,"areq",c.requestStart),IL(a,"fab",c.responseStart),IL(a,"arc",c.responseEnd)));a=a.da;for(var g in a)uq(g,a[g])}}f.rv=function(){this.Ba&&(this.U.Fa(this.Ba),this.Ba=void 0,Kt(this.g))};
function AN(a,b){if(a.g&&a.b){var c=a.getCurrentTime();if(c<EN(a))oN(a,zN(a),!0);else{if(a.k){var d=a.k;if(d.b){d.resume();if(d.F&&!gr(d.b)){var e=d.k<=c&&c<d.k+10,g=0<=At(d.b.b.buffered,d.k)&&0<=At(d.b.g.buffered,d.k);e&&g&&(d.F=!1)}d.F||(d.k=c);RL(d)}}cs(a.b)&&c>a.Td()&&(d=a.Td(),0==d&&(d=c),jN(a,1.2*d));5<c&&(a.b.Ta=c);(d=$y())?cz(a.aa):N(a.aa);Jt(a.g)||(e=u(a.Zu,a),a.aa=a.g.played&&0==a.g.played.length?d?az(e,100):L(e,100):d?az(e,500):L(e,500));a.b.jg=c;!b&&a.Vh()&&a.o&&(d=a.o,d.g.update(),d.b.b.Oa&&
d.b.b.qe&&!d.L&&BM(d.g)>=d.b.b.qe&&(d.j&&d.b.b.qe&&(e=RM(d,"delayplay"),e.$u=!0,e.send(),d.L=!0),XM(d)),e=d.N,!e.k&&e.b.xe&&!e.b.$h&&e.g.Oa&&BM(e.o)>=e.g.Do&&d.N.send());a.fi()&&a.b.$j&&0<a.b.jg&&(d=a.o,d.j&&(e=d.b.g,g=d.b.b,d={ns:"yt",docid:g.videoId,plid:g.yb,ei:g.A,cpn:g.Da,fmt:g.b?g.b.id:0,el:e.$,ps:e.ob,subscribed:g.I,yttk:"1",st:d.b.j(),et:d.b.j(),ctp:"1",vid:e.la},d=Xd("//s2.youtube.com/s",d),lf(d)),a.b.$j=!1);a.H("progresssync",a,b);a.b.av=c}}}
f.Zu=function(){this.g&&(W(this.j,8)&&Ut(this.za,this.getCurrentTime(),Date.now(),Dt(this.g.buffered,this.g.getCurrentTime()))&&fN(this,Vt(this.j,1)),AN(this))};
function fN(a,b){var c=a.j;if(b.g!=c.g||b.b!=c.b){c=new $M(b,a.j);a.j=b;0>Ov(c,8)&&kN(a,!1);0<Ov(c,32)&&kN(a,!1);cs(a.b)&&W(c.state,2)&&(jN(a,a.getCurrentTime()),AN(a,!0));a.o&&VM(a.o,c);var d=a.A;if(d.wg&&!d.ti)if(cu(d),W(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=vt(d.g,2147483646);g=g.concat(wt(d.g,2147483646));e=eu(d,e).concat(du(d,g));fu(d,e)}else W(c.state,16)?(d.k=bu(d),d.o.stop(),d.o.start(),d.lc()):(d.o.stop(),W(c.b,16)?(d.k=
bu(d),null!=xt(d.g,Math.max(d.k-2E3,0))&&(d.Dg=Nk(u(d.lc,d)))):d.lc());a.H("statechange",c)}}f.Zw=function(){this.b.ib||this.H("connectionissue")};f.Wt=function(){It(this.g,Math.max(0,this.g.currentTime+.1))};function CN(a){W(a.j,2)||W(a.j,32)||(a.F=NaN)}function kN(a,b){a.b.tb&&a.xa!=b&&(a.xa=b,a.H("liveviewshift",b))}function wN(a,b){Ht(a.g,b);a.D&&!b.b&&(a.D=null);Ur(a.b)&&FN(a);N(a.da);a.da=L(u(a.Wz,a),15E3);a.B.lp?L(u(function(){Kt(this.g)},a),0):Kt(a.g)}
function FN(a){var b=Ur(a.b);b&&!a.C&&a.g&&((b=Xq(a.g,a.b.b.mimeType,b))?(a.C=new fM(a.g,b),a.C.subscribe("newsession",a.Tz,a),a.C.subscribe("licenseerror",a.Qz,a),a.C.subscribe("qualitychange",a.Rz,a),a.C.subscribe("heartbeatparams",a.Sz,a),a.C.L=a.b.B,S(a,a.C)):Nv(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"))}function dN(a){a.C&&(a.C.dispose(),a.C=null)}
f.Tz=function(a){var b=OK(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.Za&&(b.pageid=this.B.Za);cc(a.o,b);mt(a,a.A);this.H("newlicensesession",a)};f.Qz=function(a,b,c){Nv(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};f.Rz=function(){nJ(this,"r");eN(this)};f.Sz=function(a){this.H("heartbeatparams",a)};f.Wz=function(){this.o.onError("qoe.start15s");this.H("loadsofttimeout")};function jN(a,b){a.b.Oa!=b&&(a.b.Oa=b,eN(a))}
f.nk=function(){if(!this.ka){var a=new iM(this.b),b;"c1a"in a.g?(b=q("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)L(u(this.nk,this),4500);else{this.ka=!0;var c;if(a.b&&a.b.ca){b=[a.b.ca];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=RM(a,"atr"),b.B=c,b.send(),a.I=!0))}}};
function zN(a){if(!a.g)return 0;if(a.k){var b=a.k,c=Math.floor(Math.min(b.j.j.index.zf(),b.g.j.index.zf()));return Math.max(b.D.g?c-14:c,EN(a))}a=a.g;return(1>a.seekable.length?NaN:a.seekable.end(a.seekable.length-1))||0}function EN(a){return a.b.j?(a=Qb(a.b.j.b))?a.index.en():0:0};function GN(){this.j=!1;this.g=0;this.b=""};function HN(a,b,c){this.k=b;this.b=c;this.j=a}HN.prototype.getMessage=function(){return this.k};HN.prototype.getErrorCode=function(){return this.b};HN.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.g?" Caused by: "+this.g:"")};function IN(a,b){T.call(this,"adError");this.j=a;this.k=b?b:null}w(IN,T);var JN="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".split(" ");function KN(a,b){T.call(this,a);this.j=b}w(KN,T);KN.prototype.getAd=function(){return this.j};
var LN={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",vH:"engagedview",zH:"expandedChanged",STARTED:"start",Ar:"impression",PAUSED:"pause",cJ:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",USER_CLOSE:"userClose",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",sJ:"skipshown",qJ:"skippableStateChanged",SF:"adMetadata",TE:"adBreakReady",nI:"log",VOLUME_CHANGED:"volumeChange",
hK:"mute",HG:"companionBackfill",sK:"youTubeVideoMetadata",rK:"youTubeChannelMetadata"};var MN=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www.youtube.com/gen_204\\?a=sul"];function NN(a){return x(a)?!1:null!=B(MN,function(b){return null!=a.match(b)})}
function ON(a){a=NN(a)?'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"':a;var b=I("iframe",{src:a,style:"display:none"});a=Kc(b).body;var c,d=Nk(function(){Dk(c);dd(b)},15E3);c=Bk(b,["load","error"],function(){Nk(function(){Ok(d);dd(b)},5E3)});a.appendChild(b)};var PN=["google-developers.appspot.com","devsite.googleplex.com"],QN=["*.googlesyndication.com"],RN=["*.youtu.be","*.youtube.com"],SN="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(" "),
TN=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function UN(a){var b;if(b=null!=a)(b=VN(PN,a))||(b=oe(new J(a)),b=null!=b?wa(b,".corp.google.com")||"corp.google.com"==b:!1),b=b||(null!=a?VN(RN,a):!1);return b}function VN(a,b){try{var c=oe(new J(b)),c=c.replace(/^www./i,"");return ib(a,function(a){return WN(a,c)})}catch(d){return!1}}
function WN(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 XN(a){if("https:"==window.location.protocol){var b=new J(a);if((new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+SN.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a))return be(b,"https"),b.toString()}return a};function YN(a){window.open(XN(a),"_blank")}function ZN(a,b,c){null!=a?(K(a,"label",b),null!=c&&K(a,"value",c.join(";")),a=a.toString()):a="";$N(a)}function $N(a,b,c){null!=b&&(a=aO(a,b));null!=c&&(x(c)||(b=new J(a),Ce(b.b,"label")&&(K(b,"acvw",c),a=b.toString())));a=XN(a);ON(a)}function bO(a,b){null!=a&&z(a,function(a){$N(a,b)})}
function aO(a,b){return a.replace(/\[[a-zA-Z0-9_]+\]/g,function(a){try{var d=Zb(b,a),d=d.toString();if(!x(d))return encodeURIComponent(d).replace("%2C",",")}catch(e){}return a})};function cO(a,b){this.message=a;this.errorCode=b}cO.prototype.getErrorCode=function(){return this.errorCode};cO.prototype.getMessage=function(){return this.message};
var dO=new cO("Unable to request ads from server. Cause: {0}.",1005),eO=new cO("Unable to request ads from server due to network error.",1012),fO=new cO("Cannot parse the {0} value for the adslist response: {1}.",900),gO=new cO("Invalid usage of the API. Cause: {0}",900),hO=new cO("Unable to display one or more required companions.",602),iO=new cO("There was a problem requesting ads from the server.",1005),jO=new cO("The provided ad type: {0} is not supported.",1005),kO=new cO("The provided {0} information: {1} is invalid.",
1101),lO=new cO("The response does not contain any valid ads.",1009),mO=new cO("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),nO=new cO("The ad playlist response was malformed or empty.",1010),oO=new cO("The ad response was not understood and cannot be parsed.",1010),pO=new cO("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),qO=new cO("The ad response contains unexpected element. Cause {0}.",
1010),rO=new cO("No assets were found in the VAST ad response.",200),sO=new cO("Duplicate node in <{0}>: {1}",101),tO=new cO("The VAST response document is empty.",1009),uO=new cO("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),vO=new cO("Ad request reached a timeout.",301),wO=new cO("VAST response was malformed and could not be parsed.",100),xO=new cO("VAST media file loading reached a timeout of {0} seconds.",402),yO=new cO("Ad request could not be completed due to a network error.",
301),zO=new cO("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),AO=new cO("The maximum number of VAST wrappers ({0}) has been reached.",302),BO=new cO("VAST media file duration differs from the VAST response duration by {0} seconds.",202),CO=new cO("Video player received an ad with unexpected or incompatible linearity",201),DO=new cO("Unknown node in <{0}>: {1}",101),EO=new cO("Invalid VAST resource type: {0}",101),FO=new cO("Invalid VAST version",
102),GO=new cO("No additional VAST wrappers allowed.",300),HO=new cO("No Ads VAST response after one or more Wrappers",303),IO=new cO("There was an error playing the video ad.",400),JO=new cO("VMAP unsupported node in <{0}>: {1}",1010),KO=new cO("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);function LO(a,b,c){return MO("adLoadError",a,b||null,xb(arguments,2))}function NO(a,b,c){return MO("adPlayError",a,b||null,xb(arguments,2))}
function OO(a,b,c,d,e){a.apply(null,tb([c,d],xb(arguments,3)));b.S(new KN("log",null))}function MO(a,b,c,d){if(c instanceof HN)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 HN(a,b,e);a.g=c;return a}function PO(a,b,c,d){var e=NO.apply(null,tb([b,c],xb(arguments,3)));a.S(new IN(e))};function QO(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};var RO=new function(){this.j="always";this.b=this.k=this.g=!1};function SO(a){return(a=a.exec(ec))?a[1]:""}var TO=function(){if(hh)return SO(/Firefox\/([0-9.]+)/);if(pc||oc)return yc;if(mh)return SO(/Chrome\/([0-9.]+)/);if(nh)return SO(/Version\/([0-9.]+)/);if(jh||kh){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(ec))return a[1]+"."+a[2]}else{if(lh)return(a=SO(/Android\s+([0-9.]+)/))?a:SO(/Version\/([0-9.]+)/);if(ih)return SO(/Camino\/([0-9.]+)/)}return""}();var UO={},VO="",WO=/OS (\S+) like/,XO=/Android (\S+);/;function YO(){return lc||Qa(ec,"Mobile")}function ZO(a,b){if(null==UO[b]){var c;ya(VO)&&(c=a.exec(ec))&&(VO=c[1]);(c=VO)?(c.replace(/_/g,"."),UO[b]=0<=Va(c,b)):UO[b]=!1}return UO[b]}function $O(){return mc&&YO()&&Qa(ec,"Safari")||lc&&(!lc||!ZO(XO,4))?!1:!0};function aP(){this.g=.05>Math.random();this.b=Math.floor(4503599627370496*Math.random())}da(aP);function bP(a,b,c,d){if(a.g||d){c=c||{};c.lid=b;c=cP(a,c);var e=new J("http://pagead2.googlesyndication.com/pagead/gen_204");Mb(c,function(a,b){K(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=dP();be(e,a.Gb);$N(e.toString())}}function cP(a,b){b.id="";var c=dP();b.c=a.b;b.domain=c.Bb;return b}function dP(){var a=Uc(),b=document;return new J(a.parent==a?a.location.href:b.referrer)};function eP(){}f=eP.prototype;f.XC=!1;f.Is=!1;f.wq=!0;f.baseYouTubeUrl=null;f.Of=-1;f.contentId=null;f.uk=!1;f.ih=null;f.un=null;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.loadVideoTimeout=15E3;var fP={"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"},gP=["ADSENSE","ADSENSE/ADX"],hP=["DART","DART_DFA","DART_DFP"],iP=["GDFP"],jP={AI:"video/mp4",CI:"video/mpeg",oI:"application/x-mpegURL",JI:"video/ogg",HJ:"video/3gpp",kK:"video/webm",zI:"audio/mpeg",BI:"audio/mp4"};function kP(a,b,c){if(E(a))return null;a=hb(a,function(a){var b=a.j;return"application/x-mpegurl"==za(a.b).toLowerCase()||"progressive"==b});E(c)||(c=A(c,function(a){return a.toLowerCase()}),a=hb(a,function(a){return C(c,za(a.b).toLowerCase())}));if(!ja(b)||0>=b)b=hc("iPad")||hc("Android")&&!hc("Mobile")||hc("Silk")||!(hc("iPod")||hc("iPhone")||hc("Android"))?1E3:500;return lP(a,b)}function lP(a,b){return mP(a,b)||nP(a,b)||oP(a,b)}
function mP(a,b){var c=null;z(a,function(a){var e=a.Re,g=a.ce;e>b||g<b||!(null==c||c.Re>e)||(c=a)});return c}function nP(a,b){var c=null;z(a,function(a){var e=a.Re,g=a.ce;g>b||(null==c||c.ce<g?c=a:null!=c&&c.ce==g&&c.Re>e&&(c=a))});return c}function oP(a,b){var c=null;z(a,function(a){var e=a.Re,g=a.ce;if(!(e<b))if(null!=c&&c.Re==e&&c.ce<g)c=a;else if(null==c||c.Re>e)c=a});return c};function pP(){U.call(this);this.k=this.o=this.j=!1;this.g=0;this.A=[];this.B=!1}w(pP,U);function qP(a,b){null==b||a.j||(a.b=b,a.C=!mc&&!wc,a.D=mc||wc,a.j=!0,a.b instanceof U||a.C?a.b.addEventListener("click",u(a.So,a),!1):a.D?(a.b.addEventListener("touchstart",u(a.Vo,a),!1),a.b.addEventListener("touchmove",u(a.Uo,a),!1),a.b.addEventListener("touchend",u(a.To,a),!1)):a.j=!1)}
function rP(a){null!=a.b&&a.j&&(a.C?a.b.removeEventListener("click",u(a.So,a),!1):a.D&&(a.b.removeEventListener("touchstart",u(a.Vo,a),!1),a.b.removeEventListener("touchmove",u(a.Uo,a),!1),a.b.removeEventListener("touchend",u(a.To,a),!1)),a.j=!1,a.o=!1,a.k=!1,a.g=0,a.A=[],a.B=!1)}f=pP.prototype;f.Vo=function(a){this.o=!0;this.g=a.touches.length;this.B=sP(this,a.touches)||1!=a.touches.length;tP(this,a.touches)};f.Uo=function(a){this.k=!0;this.g=a.touches.length};
f.To=function(a){this.o&&1==this.g&&!this.k&&!this.B&&sP(this,a.changedTouches)&&this.S(new T("click"));this.g=a.touches.length;0==this.g&&(this.k=this.o=!1)};f.So=function(){this.S(new T("click"))};function tP(a,b){a.A=[];z(b,function(a){pb(this.A,a.identifier)},a)}function sP(a,b){return ib(b,function(a){return C(this.A,a.identifier)},a)}f.J=function(){rP(this);pP.G.J.call(this)};function uP(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.Re=d;this.ce=e;this.o=h;this.g=k;this.k=l}uP.prototype.getHeight=function(){return this.o};function vP(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 wP(){U.call(this)}w(wP,U);var xP={mG:"beginFullscreen",CLICK:"click",sH:"end",uH:"endFullscreen",ERROR:"error",qI:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",pJ:"skip",xJ:"start",IJ:"timeUpdate",gK:"volumeChange"};function yP(a){U.call(this);this.b=a;this.M=new Jk(4);this.C=this.N=0;this.I=this.j=this.B=!1;this.size=this.Cm();this.D=this.$i();this.O=15E3;this.F=!1}w(yP,wP);f=yP.prototype;
f.Rq=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"!=za(b).toLowerCase()?a=!1:(b=za(b).toLowerCase(),a=ya(b)||lc&&ZO(XO,2.3)&&Ma(b,"application/ogg")?!1:lc&&(Ma(b,"video/mp4")||Ma(b,"video/3gpp"))||(mc||wc)&&(Ma(b,"application/x-mpegurl")||Ma(b,"application/vnd.apple.mpegurl"))?!0:!ya(this.b.canPlayType(b)))}return a},this);return kP(a,b,c)};f.ds=function(){return hb(Rb(jP),function(a){return!ya(this.b.canPlayType(a))},this)};
f.zl=function(a){this.O=0<a.kb?a.kb:15E3};f.Bg=function(a){zP(this);this.b.src=a;this.b.load()};f.tn=function(){return this.b.src};f.setVolume=function(a){this.b.volume=a};f.$d=function(){return this.b.volume};f.play=function(){this.F=!1;Nk(this.b.play,0,this.b);this.L=Nk(this.BB,this.O,this)};f.pause=function(){this.F=!0;this.b.pause()};f.ah=function(){return this.b.paused?mc||wc||mh?this.b.currentTime<this.b.duration:!0:!1};f.Ii=function(){return this.b.muted};
f.Ym=function(){mc&&this.b.webkitSupportsFullscreen&&this.b.webkitDisplayingFullscreen&&this.b.webkitExitFullscreen()};f.$i=function(){if(mc)return this.b.webkitSupportsFullscreen&&this.b.webkitDisplayingFullscreen;var a=window.screen.availWidth||window.screen.width,b=window.screen.availHeight||window.screen.height,c=ka(this.b.getBoundingClientRect)?this.b.getBoundingClientRect():{width:this.b.offsetWidth,height:this.b.offsetHeight};return c.width>=a&&c.height>=b};
f.ph=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.Kf=function(a){this.b.currentTime=a};f.getCurrentTime=function(){return this.b.currentTime};f.sd=function(){return isNaN(this.b.duration)?-1:this.b.duration};f.Fe=function(){return this.b.ended};f.Cm=function(){return new G(this.b.offsetWidth,this.b.offsetHeight)};f.Tq=function(){return this.b.seeking};f.J=function(){this.Df();this.b=null;yP.G.J.call(this)};f.Zr=function(){return this.b.error};
f.Ei=function(){this.Df();this.g=new Sk(this);this.g.listen(this.b,"canplay",this.Cz);this.g.listen(this.b,"ended",this.zz);this.g.listen(this.b,"webkitbeginfullscreen",this.Ql);this.g.listen(this.b,"webkitendfullscreen",this.Aq);this.g.listen(this.b,"pause",this.Az);this.g.listen(this.b,"playing",this.Ez);this.g.listen(this.b,"timeupdate",this.Fz);this.g.listen(this.b,"volumechange",this.Bz);this.g.listen(this.b,"error",this.zp);this.o=new pP;this.g.listen(this.o,"click",this.yz);qP(this.o,this.b);
this.A=new Lk(1E3);this.g.listen(this.A,"tick",this.Dz);this.A.start()};f.Df=function(){null!=this.o&&(rP(this.o),this.o=null);null!=this.A&&this.A.dispose();null!=this.g&&(this.g.dispose(),this.g=null);zP(this)};function zP(a){a.j=!1;a.I=!1;a.M.clear();Ok(a.L);Jh(a.k)}function AP(a){a.j||(a.j=!0,Ok(a.L),a.S("start"),(!lc||lc&&ZO(XO,3))&&(!mc||(mc||wc)&&ZO(WO,4))||a.Ql())}f.Cz=function(){var a;if(a=nh)a=ec,a=!(null!=a&&Qa(a,"Samsung")&&Qa(a,"SMART-TV"));a&&!this.I&&(this.Kf(.001),this.I=!0)};
f.Ez=function(){this.S("play");mc||wc||lh||AP(this)};f.Fz=function(){if(!this.j&&(mc||wc||lh)){if(0>=this.getCurrentTime())return;if(lh&&this.Fe()&&1==this.sd()){this.zp();return}AP(this)}if(mc||wc){if(!this.B&&1.5<this.getCurrentTime()-this.N){this.B=!0;this.Kf(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.Bz=function(){this.S("volumeChange")};
f.Az=function(){var a;this.j&&(mc||wc)&&!this.F&&2>BP(this)-this.b.currentTime?(this.k=new Lk(250),this.g.listen(this.k,"tick",this.Ix),this.k.start(),a=!0):a=!1;a||this.S("pause")};f.zz=function(){var a=!0;(mc||wc)&&(a=this.C>=this.b.duration-1.5);!this.B&&a&&this.S("end")};f.Ql=function(){this.S("beginFullscreen")};f.Aq=function(){this.S("endFullscreen")};f.zp=function(){Ok(this.L);this.S("error")};f.yz=function(){this.S("click")};
f.Dz=function(){var a=this.Cm(),b=this.$i();if(a.width!=this.size.width||a.height!=this.size.height)!this.D&&b?this.Ql():this.D&&!b&&this.Aq(),this.D=b,this.size=a};f.BB=function(){if(!this.j){try{bP(aP.getInstance(),16)}catch(a){}zP(this);this.S("mediaLoadTimeout")}};f.Ix=function(){if(this.Fe()||!this.ah())Jh(this.k);else{var a=this.b.duration-this.b.currentTime,b=BP(this)-this.b.currentTime;0<b&&(2<=b||2>a)&&(Jh(this.k),this.play())}};
function BP(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 CP(a,b){if(null==a||!jd(Kc(a),a))throw NO(kO,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(CP,Hh);CP.prototype.initialize=function(){YO()&&this.g.load()};CP.prototype.dispose=function(){dd(this.b)};CP.prototype.show=function(){var a=this.b;null!=a&&(a.style.display="block")};CP.prototype.hide=function(){var a=this.b;null!=a&&(a.style.display="none")};function DP(a){null!=a?VN(QN,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&VN(RN,a)?EP(a):null:a=null;return a}function FP(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");fe(c,d);return c.toString()}
function EP(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=se(new J(a));return Ce(a,"v")?a.get("v").toString():Ce(a,"video_id")?a.get("video_id").toString():null};function GP(a){U.call(this);this.N="ima-chromeless-video";var b=null;null!=a&&(s(a)?this.N=a:b=a);this.O=new Sk(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.W=null;this.A=void 0;null!=b?(this.b=!0,this.W=b,this.A=2):(a=u(this.zu,this),HP?a():(IP.push(a),a=Yc("script"),a.src="//www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))}w(GP,wP);
var JP=["video/mp4","video/webm"],KP={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},IP=[],HP=!1;f=GP.prototype;f.Rq=function(a,b,c){var d=B(a,function(a){return null!==DP(a.g)});return null!==d||!E(c)&&(c=hb(c,function(a){return C(JP,a)}),d=kP(a,b,c),null!==d)?d:B(a,function(a){return C(JP,a.b)})};f.zl=function(a){this.g=a};f.Bg=function(a,b){null!==a&&(this.L=a,this.b?LP(this,a,b):(this.C=a,this.F=b))};f.tn=function(){return this.L};
f.setVolume=function(a){this.P?this.S("volumeChange"):this.b?(a=Hb(100*a,0,100),this.W.setVolume(a),this.o=-1,this.S("volumeChange")):this.o=a};f.$d=function(){return this.b?this.W.getVolume()/100:this.o};f.play=function(){if(!x(this.L)){if(!this.j){MP(this);var a=15E3;null!=this.g&&0<this.g.kb&&(a=this.g.kb);this.T=Nk(this.wx,a,this)}this.b?(this.I=!1,NP(this),this.k=new Lk(100),this.O.listen(this.k,"tick",this.Zp),this.k.start(),this.W.playVideo()):this.I=!0}};
f.pause=function(){this.b&&this.j&&(NP(this),this.W.pauseVideo())};f.ah=function(){return this.b?2==this.W.getPlayerState(this.A):!1};f.Ii=function(){return this.U?this.W.isMuted():0==this.$d()};f.Ym=function(){};f.$i=function(){return!1};f.ph=function(a){return this.b?this.W.getCurrentTime(this.A)>=a:!1};f.Kf=function(a){this.b?this.W.seekTo(a,!1):this.B=a};f.getCurrentTime=function(){return this.b?this.W.getCurrentTime(this.A):-1};
f.sd=function(){return this.b&&this.j?this.W.getDuration(this.A):-1};f.Zr=function(){return null};f.ds=function(){return Rb(jP)};f.Fe=function(){return this.b?0==this.W.getPlayerState(this.A):!1};f.Cm=function(){var a=document.getElementById(this.N);return new G(a.offsetWidth,a.offsetHeight)};f.Tq=function(){return!1};
f.Ei=function(){this.M=u(this.Fs,this);this.D=u(this.Dn,this);this.P&&(this.W.addEventListener("onAdStateChange",this.D),this.W.addEventListener("onReady",this.M),this.W.addEventListener("onStateChange",this.D))};f.Df=function(){this.P&&(this.W.removeEventListener("onAdStateChange",this.D),this.W.removeEventListener("onReady",this.M),this.W.removeEventListener("onStateChange",this.D))};
f.zu=function(){var a=this.N,b={playerVars:$b(KP),events:{onError:u(this.jD,this),onReady:u(this.Fs,this),onAdStateChange:u(this.Dn,this),onStateChange:u(this.Dn,this)}},c=q("YT");this.W=null!=c&&null!=c.Player?new c.Player(a,b):null};
function LP(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=DP(b);null===e?d.url_encoded_third_party_media="url="+encodeURIComponent(b)+"&type="+encodeURIComponent(null===c?"":c):d.videoId=e;a.j=!1;a.W.cueVideoByPlayerVars(d)}f.jD=function(){this.S("error")};
f.Fs=function(){this.b=!0;-1!=this.o&&(this.setVolume(this.o),this.o=-1);null!=this.C&&(LP(this,this.C,this.F),this.F=this.C=null);-1!=this.B&&(this.Kf(this.B),this.B=-1);this.I&&this.play()};f.Dn=function(a){switch(a.data){case 0:this.j?this.S("end"):this.S("error");break;case 1:this.j||(MP(this),this.j=!0,this.S("start"));this.S("play");break;case 2:this.S("pause")}};function NP(a){a.O.Fa(a.k,"tick",a.Zp);null!=a.k&&(a.k.stop(),a.k=null)}function MP(a){null!=a.T&&Ok(a.T)}f.Zp=function(){this.S("timeUpdate")};
f.wx=function(){this.S("mediaLoadTimeout")};f.J=function(){NP(this);MP(this);this.Df();this.b=!1;this.O.dispose();this.B=-1;this.F=null;this.I=!1;this.C=null;this.o=-1;this.M=this.W=this.g=null;this.j=!1;this.L="";GP.G.J.call(this)};ba("onYouTubeIframeAPIReady",function(){HP=!0;z(IP,function(a){a()});ob(IP)},window);function OP(a){U.call(this);this.b=a||Za();this.g=[]}w(OP,U);OP.prototype.j=!1;OP.prototype.connect=function(){for(this.j=!0;!E(this.g);){var a=this.g.shift();this.sendMessage(a.name,a.type,a.data)}};OP.prototype.send=function(a,b,c){this.j?this.sendMessage(a,b,c):this.g.push({name:a,type:b,data:c})};function PP(a,b,c,d,e){T.call(this,a);this.jd=b;this.Ye=c;this.Qq=d;this.k=e}w(PP,T);PP.prototype.getOrigin=function(){return this.k};PP.prototype.toString=function(){return""};function QP(a,b){OP.call(this,b);this.k=a;this.Cc=null;this.o=new Sk(this);this.logger=null;this.o.listen(Uc(),"message",this.receive)}w(QP,OP);function RP(a){if(null==a||!s(a)||0!=a.lastIndexOf("ima://",0))return null;a=a.substr(6);try{return nf(a)}catch(b){return null}}QP.prototype.sendMessage=function(a,b,c){null!=this.Cc&&null!=this.Cc.postMessage&&this.Cc.postMessage(SP(this,a,b,c),"*");null!=this.Cc&&null==this.Cc.postMessage&&bP(aP.getInstance(),11)};
QP.prototype.J=function(){this.o.dispose();QP.G.J.call(this)};QP.prototype.receive=function(a){a=a.b;var b=RP(a.data);if(null!=b){if(null==this.Cc)this.Cc=a.source;else if(this.Cc!=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 PP(b.name,b.type,b.data||{},b.sid,a.origin))))}};function SP(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://"+pf(e)};function TP(a,b){U.call(this);this.k=a;this.j=b;this.b={};this.g=new Sk(this);this.g.listen(Uc(),"message",this.o)}w(TP,U);TP.prototype.send=function(a){var b=a.getChannelId();this.b.hasOwnProperty(b)?this.b[b].send(a.type,a.jd,a.Ye):a.getChannelId()};function UP(a,b,c,d){a.b.hasOwnProperty(b)||(c=new QP(b,c),a.g.listen(c,a.k,function(a){a=new VP(a.type,a.jd,a.Ye,a.Qq,a.getOrigin(),b);this.S(a)}),c.Cc=d,c.connect(),a.b[b]=c)}TP.prototype.J=function(){this.g.dispose();Lh(this.b);TP.G.J.call(this)};
TP.prototype.o=function(a){a=a.b;var b=RP(a.data);if(null!=b){var c=b.channel;if(this.j&&!this.b.hasOwnProperty(c)){var d=b.sid;UP(this,c,d,a.source);this.S(new VP(b.name,b.type,b.data||{},d,a.origin,c))}}};function VP(a,b,c,d,e,g){PP.call(this,a,b,c,d,e);this.j=g}w(VP,PP);VP.prototype.getChannelId=function(){return this.j};function WP(){var a=q("google.ima.gptProxyInstance",Uc());if(null!=a)return a;Sk.call(this);this.k=new TP("gpt",!0);this.listen(this.k,"gpt",this.A);this.b=null;XP()||Uc().top===Uc()||(this.b=new TP("gpt",!1),this.listen(this.b,"gpt",this.o))}w(WP,Sk);function XP(){return!!q("googletag.cmd",Uc())}function YP(){var a=q("googletag.console",Uc());return null!=a?a:null}
WP.prototype.A=function(a){var b=a.getOrigin(),c=Nd("//imasdk.googleapis.com"),b=Nd(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.b)UP(this.b,a.getChannelId(),a.Qq,Uc().parent),null!=this.b&&this.b.send(a);else if(c=a.Ye,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.jd,"isGptPresent"==c?d=XP():"isConsolePresent"==c&&(d=null!=YP());else if(XP())if("pubads"==b||"companionAds"==b){d=a.jd;var e,g=Uc().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.jd,e=YP(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.jd;d=Uc();if(C(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{g=e.apply(d,c)}catch(l){}d=g}n(d)&&(a.Ye.returnValue=d,this.k.send(a))}};WP.prototype.o=function(a){this.k.send(a)};function ZP(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,r,t){if("%"==p)return"%";var y=c.shift();if("undefined"==typeof y)throw Error("[goog.string.format] Not enough arguments");arguments[0]=y;return $P[p].apply(null,arguments)})}
var $P={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 $P.f(parseInt(a,
10),b,c,d,0,g,h,k)}};$P.i=$P.d;$P.u=$P.d;function aQ(a,b){U.call(this);this.j=new Sk(this);this.B=!1;this.C=Za();this.o=new Cd;var c=this.C,c=I("iframe",{src:("https:"==document.location.protocol?"https:":"http:")+ZP("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en")+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});Wk(this.j,c,"load",this.kv);a.appendChild(c);this.eb=c;c=this.o.get("*");null==c&&(c=new QP(this.C,"*"),this.B&&(c.Cc=kd(this.eb),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.mv);this.j.listen(this.k,"touch",this.ov);null!=this.b&&(this.j.listen(this.k,"displayContainer",this.lv),this.j.listen(this.k,"videoDisplay",this.nv),this.j.listen(this.b,Rb(xP),this.pv));var c=Uc(),d=q("google.ima.gptProxyInstance",c);null==d&&(d=new WP,ba("google.ima.gptProxyInstance",d,c))}w(aQ,U);f=aQ.prototype;
f.J=function(){this.j.dispose();null!==this.g&&(this.g.dispose(),this.g=null);Ad(this.o.Wb(!1),function(a){a.dispose()});this.o.clear();dd(this.eb);aQ.G.J.call(this)};f.mv=function(a){var b=a.Ye,c=Qf(this.eb),d=document.createEvent("MouseEvent");d.initMouseEvent(a.jd,!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(!nh||mc||wc||!1==document.webkitIsFullScreen)this.eb.blur(),window.focus();this.eb.dispatchEvent(d)};
function bQ(a,b){var c=Qf(a.eb),d=A(b,function(a){return document.createTouch(window,this.eb,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return document.createTouchList.apply(document,d)}
f.ov=function(a){var b=a.Ye,c=Qf(this.eb),d=document.createEvent("TouchEvent");d.initTouchEvent(a.jd,!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,bQ(this,b.touches),bQ(this,b.targetTouches),bQ(this,b.changedTouches),b.scale,b.rotation);this.eb.dispatchEvent(d)};
f.nv=function(a){if(null!=this.b){var b=a.Ye;switch(a.jd){case "startTracking":this.b.Ei();break;case "stopTracking":this.b.Df();break;case "exitFullscreen":this.b.Ym();break;case "play":this.b.play();break;case "pause":this.b.pause();break;case "load":this.b.Bg(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.b.Kf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.b.zl(new vP(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled))}}};
f.pv=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.Fe();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.sd();break;case "volumeChange":a=
"volumeChange";b.volume=this.b.$d();break;default:return}this.k.send("videoDisplay",a,b)};f.lv=function(a){switch(a.jd){case "showVideo":null!=this.g?rP(this.g):(this.g=new pP,this.j.listen(this.g,"click",this.ay));a=this.A;qP(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.ay=function(){this.k.send("displayContainer","videoClick")};
f.kv=function(){Ad(this.o.Wb(!1),function(a){a.Cc=kd(this.eb);a.connect()},this);this.B=!0};function cQ(a,b,c,d){if(null==a||!jd(Kc(a),a))throw NO(kO,null,"containerElement","element");this.C=a;var e=null!=b||null!=d;this.A=(this.k=e)&&null!=d;bP(aP.getInstance(),8,{enabled:this.k,yt:null!=d,customClick:null!=c});RO.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||RO.g||!YO()?null:new CP(this.g,null);a=null;this.k?null!=d?a=new GP(d):null!=b&&(a=new yP(b)):null!=this.b&&(a=new yP(this.b.g));this.j=a;this.B=c||null;
this.o=null==this.g||RO.g?null:new aQ(this.g,this)}cQ.prototype.initialize=function(){null!=this.b&&this.b.initialize()};cQ.prototype.destroy=function(){Jh(this.b);Jh(this.o);Jh(this.j);dd(this.g)};cQ.prototype.hide=function(){null!=this.b&&this.b.hide()};function dQ(){U.call(this);this.currentTime=0}w(dQ,U);function eQ(a){dQ.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw NO(kO,null,"content","currentTime");this.g=a;this.b=new Lk(250);this.j=new Sk(this);Vk(this.j,this.b,"tick",this.k,this)}w(eQ,dQ);eQ.prototype.start=function(){this.b.start()};eQ.prototype.stop=function(){this.b.stop()};eQ.prototype.J=function(){eQ.G.J.call(this);this.j.dispose();this.b.dispose()};
eQ.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 T("currentTimeUpdate"))}else this.S(new T("contentWrapperError")),this.stop()};function fQ(){this.reset()}fQ.prototype.reset=function(){this.b=0;this.g=null};function gQ(){this.g=this.b=null}gQ.prototype.reset=function(){this.g=this.b=null};function hQ(){this.b=iQ();this.M=this.L=this.j=this.B=this.k=null;this.I=iQ();this.g=null;this.N=this.C=this.D="";this.A=this.F=this.o=null}function iQ(){return Math.floor(4503599627370496*Math.random())}var jQ=new hQ;hQ.prototype.clear=function(){this.b=iQ();this.j=this.B=this.k=null;this.I=iQ();this.g=null;this.N=this.C=this.D="";this.A=this.F=this.o=null};function kQ(a){if(RO.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 lQ(a,b){this.A=a;this.o=A(b,function(a){return a.clone()});this.k="";this.b=this.j=0;this.g=!0}function mQ(a){a.k="";a.j=0;a.b=0;a.g=!0}lQ.prototype.clone=function(){var a=new lQ(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 nQ(){U.call(this);this.k=!1}w(nQ,U);function oQ(a){T.call(this,a)}w(oQ,T);function pQ(){nQ.call(this);this.B=[];this.o=!1;this.j="not_loaded";this.g=null;this.A=0;this.b=null;this.C=new Jc}w(pQ,nQ);da(pQ);function qQ(a){var b=["googletag","googletag.cmd"];return B(a,function(a){return kb(b,function(b){return null!==q(b,a)})})||null}f=pQ.prototype;f.J=function(){this.g&&this.g.dispose()};f.initialize=function(){if(!this.k){var a;var b=vd(new Jc);try{q("googletag"),qQ([b,b.top]),a=!0}catch(c){a=!1}a?rQ(this):(this.k=!0,this.j="not_available")}};
function sQ(a){return a.k?A(a.B,function(a){return a.clone()}):[]}function tQ(a){a=sQ(a);return null!=a?A(a,function(a){return a.o}):void 0}function uQ(a,b,c){var d=0,e=0;null!=b&&(b=new J(b.adTagUrl),d=Number(ve(b,"pod")||0),e=Number(ve(b,"ppos")||0));if(null!=a.setVideoSessionInfo)try{a.setVideoSessionInfo(jQ.b,"","","",d,e,c)}catch(g){}}function vQ(a,b){var c=wQ(a);if(null!==c){uQ(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}
f.setVideoContent=function(a,b){var c=xQ(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};function wQ(a){null==a.b&&yQ(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.companionAds?a.b.googletag.companionAds():null}function xQ(a){null==a.b&&yQ(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.pubads?a.b.googletag.pubads():null}f.ap=function(){0<this.A&&v()>=this.A?(this.k=!0,zQ(this),AQ(this)):rQ(this)};
function zQ(a){a.g&&(a.g.stop(),a.g.Fa("tick",a.ap,!1,a),a.g.dispose(),a.g=null)}
function rQ(a){var b;if(b=!a.o)yQ(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=A(d,a.qv,a)}}catch(e){a.o=!0,c=[]}a.B=c;a.o=!0}if(b="retrieved"!=a.j&&"not_available"!=a.j)b=null!==wQ(a);if(b){var g;b=wQ(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,zQ(a),a.S(new oQ("companions_success"))):a.o&&"not_available"==a.j?(a.k=!0,zQ(a),AQ(a)):a.g||(a.A=v()+5E3,a.g=new Lk(100),a.g.listen("tick",a.ap,!1,a),a.g.start())}function yQ(a){var b=vd(a.C);try{a.b=qQ([b,b.top])}catch(c){a.b=null}}function AQ(a){a.S(new oQ("companion_initialization_failed"))}f.qv=function(a){var b=A(a.adSizes,function(a){return new G(a.adWidth,a.adHeight)});return new lQ(a.slotId,b)};
f.iy=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 BQ(a){T.call(this,a)}w(BQ,T);function CQ(){U.call(this);this.j=[]}w(CQ,U);CQ.prototype.qi=function(){return null};CQ.prototype.Js=function(){return!0};function DQ(){return new EQ("empty-ad","GDFP",0,"",0,0,0,[],[],[],[],new Cd)};function FQ(a){CQ.call(this);this.b=a;this.A=null;this.B=!1;this.g=null;this.o=new Sk;Vk(this.o,this.b,["companions_success","companion_initialization_failed"],this.Ax,this);Vk(this.o,this.b,"companion_display_error",this.zx,this);this.b.k?this.B=!0:this.b.initialize()}w(FQ,CQ);f=FQ.prototype;f.destroy=function(){null!=this.o&&this.o.dispose();this.g=null};function GQ(a,b){a.g=b;a.k=!0;a.B?HQ(a):(a.k=IQ(JQ(b),[]),a.k||(a.g=null))}
function HQ(a){var b=a.g;a.g=null;if(null!=a.b)if(E(a.j))KQ(a);else if(null!=b){var c=LQ(a,b),d=a.b;try{d.b.googleSetCompanionAdContents(A(a.j,d.iy,d))}catch(e){d.S(new oQ("companion_display_error"))}if(0<c.length&&b.T&&(d=a.b,0!=c.length&&"GDFP"==MQ(b)[0])){a=[];for(var g=0;g<c.length;g++)a.push(c[g].A);b=b.j;c=wQ(d);if(null!==c){uQ(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else KQ(a)}function KQ(a){a.S(new BQ("companion_display_error"))}f.Js=function(){return this.k};
f.Ax=function(){null!=this.A&&(this.A.stop(),this.A.dispose(),this.A=null);if(null!=this.b){var a=sQ(this.b);null!=a&&(this.j=a)}this.B=!0;null!=this.g&&HQ(this);this.S(new T("initialized"))};f.zx=function(){KQ(this)};
function LQ(a,b){var c=[],d=[];z(a.j,function(a){mQ(a);ib(a.o,function(d){t:{var e=NQ(b);d=OQ(new PQ(new G(d.width,d.height)),e);if(!E(d)&&(d=QQ(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.wl(),l=d.b.td(),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=JQ(b);a.k=IQ(e,c);a.k||z(a.j,function(a){mQ(a)},a);return d}
function IQ(a,b){if(null==a)return!0;var c=a.b;return"all"==a.g?RQ(c,b):"any"==a.g?SQ(c,b):!0}function JQ(a){return null!=a&&ga(a.getSelectedCreative())&&!isNaN(TQ(a.getSelectedCreative()))?B(UQ(a,!0),function(a){a=a.b;return E(a)?!1:isNaN(a[0].b.b)?!1:a[0].b.b==VQ(a[0])}):null}function RQ(a,b){return kb(a,function(a){return C(b,a)})}function SQ(a,b){return ib(a,function(a){return C(b,a)})}function QQ(a,b){return B(a,function(a){return!C(b,a)})}f.qi=function(){return this.b};function WQ(a){T.call(this,a);this.o=[];this.k={};this.j=null}w(WQ,T);function XQ(){this.ta="";this.g=this.b=!1}var YQ=null;function ZQ(){null!=YQ||(YQ=new XQ);return YQ}f=XQ.prototype;f.init=function(){this.b||(dv(hv("//pagead2.googlesyndication.com/pagead/js/lidar.js",{timeout:3E4}),this.bC,this.aC,this),this.b=!0)};f.start=function(){this.b&&(this.ta=String(1E9*Math.random()))};function $Q(a,b){if(a.b&&a.g){var c={},d;d=RO.o;RO.b&&null!=d&&(c.opt_videoAdElement=Lc(d));return Goog_AdSense_Lidar_sendVastMessage(b,a.ta,c)}return""}
f.destroy=function(){this.ta="";this.g=this.b=!1};f.bC=function(){this.g=!0};f.aC=function(){this.g=!1};ba("ima.common.triggerViewEvent",function(){},void 0);function aR(a,b,c){this.A=b;this.k=c;this.o=null;this.g=new Sk(this);this.F=a;this.j=this.b=null;this.B=!1}aR.prototype.start=function(a,b){this.o=a;this.D=b;bR(this);this.A.B?this.C():Yk(this.g,this.A,"initialized",this.C,this)};aR.prototype.C=function(){var a=this.A.qi(),b;b=a.k?"retrieved"!=a.j?void 0:a.D:void 0;a=tQ(a);null!=b&&(this.k.I=b);null!=a&&(this.k.A=a);cR(this)};
function cR(a){if(null===a.o)dR(a);else{var b=new J(a.o.adTagUrl),c=za(ve(b,"vid")),b=za(ve(b,"cmsid")),d=a.k.D,e=a.k.C;a.k.D=c;a.k.C=b;if(x(c)||x(b))dR(a);else if(c==d&&b==e)dR(a);else{var g=a.A.qi();g.setVideoContent(c,b);vQ(g,a.o);a.j=new Lk(100);Vk(a.g,a.j,"tick",function(){var a;t:{var b=xQ(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break t}catch(c){a=!0;break t}a=!1}a&&dR(this)},a);a.j.start()}}}
function bR(a){a.b=new Lk;Yk(a.g,a.b,"tick",function(){dR(this)},a);Mk(a.b,a.F);a.b.start()}function dR(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 eR(){};function fR(a){return LO(DO,null,a.parentNode.nodeName,a.nodeName)}function gR(a){return LO(sO,null,a.parentNode.nodeName,a.nodeName)}function hR(a,b){return null!=a?hb(fd(a),function(a){return a.nodeName==b}):[]}function iR(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function jR(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=Aa(c);return b?La(c):c}
function kR(a,b,c,d){null!=a&&z(fd(a),function(a){if(a.nodeName==b)c.call(d,a);else throw fR(a);})}function lR(a){return x(a)?NaN:$a(za(a))}function mR(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new tM(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 nR(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 oR(a,b,c){this.g=a;this.b=c;this.j=b};function pR(a){this.j=a};function qR(a){this.j=a;this.g=this.b=!1}w(qR,pR);function rR(a,b,c){this.b=a;this.g=b;this.j=c};function sR(){this.b=new Cd}function tR(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];Ed(a.b.g,c)&&(d=a.b.get(c,[]));z(b,function(a){null!=a&&pb(d,a)});a.b.set(c,d)};function uR(a,b){this.b=a;this.g=b}w(uR,eR);uR.prototype.j=function(){return new oR(this.b,null,vR(this))};
function vR(a){var b=new sR;z(fd(gd(a.b)),function(a){switch(a.nodeName){case "Preroll":a=wR(this,a);tR(b,a,0);break;case "Midroll":var d=iR(a,"timeOffset"),e=mR(d);if(-1==e)throw LO(fO,null,"timeOffset",za(d));a=wR(this,a);tR(b,a,e);break;case "Postroll":a=wR(this,a);tR(b,a,-1);break;default:throw LO(oO,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.b.Ma().length)throw LO(nO);return b}
function wR(a,b){var c=[];z(fd(b),function(a){switch(a.nodeName){case "Ad":var b=za(jR(a));if(!ya(b)){a=iR(a,"bumper");var g=this.g.clone();g.adTagUrl=b;b=new qR(g);b.b=null!=a;b.g="always"==a;pb(c,b)}break;default:throw LO(oO,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function xR(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 yR(a){var b={};z(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Aa(d[0]),d=Aa(d[1]),0<a.length&&(b[a]=d))});return b};var zR=["ai","sigh"];function AR(a){var b;b=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Ma(a,"/pagead/adview")?BR(a)?0:2:Ma(a,"/pagead/conversion")?BR(a)?1:2:2:2;if(2==b)return a;switch(b){case 0:return b=jQ.F,a=null!=b?CR(a,"&ppid="+b):a,CR(a,"&sdkv="+kQ(jQ));case 1:return CR(a,"&sdkv="+kQ(jQ))}return a}function CR(a,b){var c=a.indexOf("&adurl=");return-1!=c?Ua(a.substr(0,c),b,a.substr(c,a.length)):a+b}
function BR(a){return kb(zR,function(b){var c=a||"";return 0<=Yd(c,0,b,c.search(Zd))})};function DR(a,b){this.b=a;this.g=b}function ER(a){return a.g?-1:a.b};function FR(){this.b=new Cd}function GR(a,b){this.g=a;this.b=b}function HR(a,b){GR.call(this,"progress",a);this.j=b}w(HR,GR);function IR(a,b){z(b,function(a){this.b.set(a.g,b)},a)}function JR(a,b,c,d){var e=b.toLowerCase();b=KR(a,b);null!=d?(d=new HR(c,d),null!=d?b.push(d):b.push(new GR(e,c))):b.push(new GR(e,c));a.b.set(e,b)}function LR(a,b){z(b,function(a){var d=KR(this,a.g);b=tb(d,b);this.b.set(a.g,b)},a)}function KR(a,b){return null!=b?a.b.get(b.toLowerCase())||[]:[]}
function MR(a,b){var c=KR(a,"progress");z(c,function(a){a=a.j;a.g&&(a.g=!1,a.b=a.b*b/100)});Bb(c,function(a,b){return ER(a.j)-ER(b.j)})}FR.prototype.isEmpty=function(){return this.b.isEmpty()};function NR(a,b){return A(KR(a,b)||[],function(a){return a.b})};function OR(a){var b=new FR;kR(a,"Tracking",function(a){var d=iR(a,"event"),e=AR(jR(a));PR(e)&&null!=d&&("progress"==d?(a=iR(a,"offset"),a=QR(a),null!=a&&JR(b,d,e,a)):JR(b,d,e))});return b}function RR(a){if(x(a))return null;a=new J(a);if("thismessage"!=a.Gb||"extensions"!=a.Bb)return null;a=a.Mb;if(0!=a.lastIndexOf("/",0))return null;a=a.substr(1);return x(a)?null:a}
function QR(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 DR(a,!0))):(a=mR(a),0<=a&&(b=new DR(a,!1)));return b}function PR(a){var b=!0;if(x(a))b=!1;else try{new J(a)}catch(c){b=!1}return b};function SR(a){this.b=null!=a?a:new FR}function TR(a,b){var c=b.b;z(c.Ma(),function(a){LR(this.b,c.get(a))},a)}function UR(a,b){var c=NR(a.b,b);return null!=c?c:[]};function VR(){this.b="Ads by Google";this.g="http://www.google.com/adsense/support";this.j=0};function WR(a,b,c,d,e,g,h,k,l){SR.call(this,l);this.k=a;this.o=b;this.g=c;this.j=e;this.A=g;this.B=h}w(WR,SR);function XR(){}XR.prototype.parse=function(a){var b;kR(a,"config",function(a){null!=b||(b=YR(this,a))},this);return b};function YR(a,b){var c;z(fd(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new VR:null;break;case "params":null!=c&&ZR(this,c,a)}},a);return c}function ZR(a,b,c){z(fd(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 $R(){}
$R.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,g,h,k=!1;z(fd(a),function(a){switch(a.nodeName){case "AttributionText":b=jR(a);break;case "AttributionUrl":c=jR(a);break;case "ConversionUrl":e=jR(a);break;case "CustomTracking":null!=fd(a)&&(d=OR(a));break;case "PreviousAdInformation":jR(a);break;case "VisibleUrl":g=jR(a);break;case "UI":h=(new XR).parse(a);break;case "ShowYouTubeAnnotations":var p=jR(a);k=nR(za(p),!1);case "QueryId":jR(a)}},this);null!=h||(h=new VR);return new WR(b,
c,e,0,g,h,k,0,d)};function aS(a,b){SR.call(this,b);this.g=a}w(aS,SR);function bS(){}bS.prototype.parse=function(a){if(null==a)return null;var b;z(fd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=fd(a)&&(b=OR(a))}});a=null;null!=b&&0<KR(b,"skip").length&&(a="Generic");return new aS(a,b)};function cS(){}cS.prototype.parse=function(a){if(null==a)return null;var b,c;z(fd(a),function(a){switch(a.nodeName){case "SkippableAdType":b=jR(a);break;case "CustomTracking":null!=fd(a)&&(c=OR(a))}});return new aS(b,c)};function dS(){}dS.prototype.parse=function(a){if(null==a)return null;var b;z(fd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=fd(a)&&(b=OR(a))}},this);return new SR(b)};function eS(){SR.call(this)}w(eS,SR);function fS(){}fS.prototype.parse=function(a){a=RC(a);return x(a)?null:new eS};function gS(a){SR.call(this);this.g=a}w(gS,SR);function hS(){SR.call(this)}w(hS,SR);function iS(){}iS.prototype.b={dC:"TEMPLATE_PARAMETERS",eC:"TEMPLATE_URL"};iS.prototype.parse=function(a){if(null==a)return null;z(fd(a),function(a){switch(a.nodeName){case this.b.dC:jS(this,a)}},this);return new hS};function jS(a,b){z(fd(b),function(a){a.nodeName==this.b.eC&&jR(a)},a)};function kS(a,b,c,d){SR.call(this);this.j=a;this.k=b;this.o=c;this.g=d}w(kS,SR);function lS(){}lS.prototype.b={UB:"Line1",VB:"Line2",WB:"Line3",TB:"ImageUrl"};lS.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;z(fd(a),function(a){switch(a.nodeName){case this.b.UB:b=jR(a,!0);break;case this.b.VB:c=jR(a,!0);break;case this.b.WB:d=jR(a,!0);break;case this.b.TB:e=jR(a)}},this);return new kS(b,c,d,e)};function mS(a){SR.call(this);this.g=a}w(mS,SR);function nS(){}nS.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 mS(a)};function oS(){SR.call(this)}w(oS,SR);function pS(){}pS.prototype.parse=function(a){return null!=a?new oS:null};function qS(a){SR.call(this);this.g=isNaN(a)?-1:a}w(qS,SR);function rS(){}rS.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?$a(a):NaN;return new qS(a)};function sS(){}var tS={IMAGE:"Image",rE:"Flash",kE:"All"},uS={HTML:"Html",UH:"IFrame",yJ:"Static",kE:"All"},vS={VH:"IgnoreSize",hJ:"SelectExactMatch",iJ:"SelectNearMatch"};var wS=!1,xS="";function yS(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var zS=navigator.plugins["Shockwave Flash"];zS&&(wS=!0,zS.description&&(xS=yS(zS.description)));navigator.plugins["Shockwave Flash 2.0"]&&(wS=!0,xS="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var AS=navigator.mimeTypes["application/x-shockwave-flash"];(wS=AS&&AS.enabledPlugin)&&(xS=yS(AS.enabledPlugin.description))}else try{var BS=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),wS=!0,xS=yS(BS.GetVariable("$version"))}catch(CS){try{BS=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),wS=!0,xS="6.0.21"}catch(DS){try{BS=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),wS=!0,xS=yS(BS.GetVariable("$version"))}catch(ES){}}}var FS=wS,GS=xS;function PQ(a){if(null==a||0>=a.width||0>=a.height)throw NO(kO,null,"ad slot size",a.toString());this.g=a;this.b=new sS;this.o=HS(uS,this.b.k)?this.b.k:"All";this.k=HS(tS,this.b.j)?this.b.j:"All";this.B=HS(vS,this.b.o)?this.b.o:"SelectExactMatch";this.j=null!=this.b.g?this.b.g:[];this.A=ja(this.b.b)&&0<this.b.b&&100>=this.b.b?this.b.b:90}
function OQ(a,b){var c=[];z(b,function(a){!x(a.b.k)&&(isNaN(a.b.b)||isNaN(VQ(a))||VQ(a)==a.b.b)&&IS(this,a)?c.push(a):(a=JS(this,a),null!=a&&!x(a.b.k)&&c.push(a))},a);return c}
function IS(a,b){var c;if(c="Flash"!=b.getContentType()||FS){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=E(a.j)?!0:null!=c?0<=fb(a.j,c):!1)}c?(c=b.b.Yd(),c="IgnoreSize"==a.B||Kb(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 JS(a,b){var c=b.g;return null!=c?B(c,function(a){return IS(this,a)},a):null}
function HS(a,b){return null!=b&&Tb(a,b)};function KS(a,b,c,d){this.ta=a;this.b=Hb(c||0,0,1);this.g=null!=d?d:!0}KS.prototype.getId=function(){return this.ta};function LS(a){this.ta=a;this.g=new Cd;this.b=null}function MS(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 NS(){this.b=new Cd;OS(this,41351021,0);OS(this,41351022,1);PS(this)}var QS=null;function RS(){QS||(QS=new NS);return QS}function OS(a,b,c){x("GvnExternalLayer")||isNaN(b)||0>=b||(b=new KS(b,0,c),SS(a,"GvnExternalLayer").g.set(b.getId(),b))}function PS(a){z(a.b.Qa(),function(a){MS(a)},a)}function TS(a,b){z(b,function(a){var b=Number(a);a="forcedLayer"+a;isNaN(b)||0>=b||x(a)||(a=SS(this,a),b=new KS(b),a.b=b)},a)}
function US(a){var b=RS();return ib(b.b.Qa(),function(b){return!!b.b&&b.b.getId()==a})}function VS(a){var b=[];z(a.b.Qa(),function(a){(a=a.b)&&a.g&&b.push(a.getId())});return b.sort().join(",")}function SS(a,b){var c=a.b.get(b);null==c&&(c=new LS(b),a.b.set(b,c));return c};function WS(a){J.call(this,a);this.g=new Cd;a=this.Mb;var b=a.indexOf(";"),c=null;0<=b?(ee(this,a.substring(0,b)),c=a.substring(b+1)):ee(this,a);XS(this,c)}w(WS,J);WS.prototype.toString=function(){return YS(this,WS.G.toString.call(this))};WS.prototype.Pg=function(){return""};function XS(a,b){x(b)||z(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=Ca(a.substring(0,b));a=Ca(a.substring(b+1));b=this.g.get(e);null!=b?C(b,a)||b.push(a):b=[za(a)];this.g.set(e,b)}},a)}
function ZS(a){if(x("ord"))return null;a=a.g.get("ord");return null!=a?a:null}function $S(a,b,c){x(b)||(c=A(c,za),a.g.set(b,c))}function YS(a,b){var c=[za(b)];vb(c,aT(a));return c.join(";")}function aT(a){var b=ZS(a);null!=b?x("ord")||a.g.remove("ord"):b=[za(v())];var c=[];z(a.g.Ma(),function(a){z(this.g.get(a),function(b){vb(c,a+"="+b)})},a);vb(c,"ord="+b[0]);$S(a,"ord",b);return c}WS.prototype.clone=function(){return new WS(this.toString())};var bT=["iu","sz"];function cT(a){if(null==a.adTagUrl)return!1;a=new J(a.adTagUrl);return"googleads.g.doubleclick.net"==a.Bb&&"/pagead/ads"==a.Mb}function dT(a){var b=a.adTagUrl;if(null==b)return!1;a=pe(new J(b));return(x(a)?0:/\/gampad\/ads/.test(a))?kb(bT,function(a){return 0<=Yd(b,0,a,b.search(Zd))}):!1}
function eT(a){a=a.adTagUrl;if(null==a)return!1;a=new WS(a);var b=a.Bb,c;if(c=!wa(b,".g.doubleclick.net")){if(b=wa(b,"doubleclick.net"))a=YS(a,a.Mb),b=x(a)?!1:/\/(ad|pfad)[x|i|j]?\//.test(a);c=b}return c?!0:!1}function fT(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==oe(new J(a)):!1};function gT(){this.b=1;this.k=this.j=0;this.g=1};function hT(){this.L={};this.T="";this.he=new FR}function TQ(a){return a.b}hT.prototype.xn=function(){return null};function iT(a,b,c){a.T=b;a.L=c}hT.prototype.qg=function(a){this.aa=a};hT.prototype.getAd=function(){return this.aa};function jT(a,b){for(var c=KR(a.he,b)||[],d=a.aa.b;null!=d;){var e=kT(a,d)||kT(a,d,!0);null!=e&&(e=KR(e.he,b)||[],c=tb(e,c));d=d.b}return c}hT.prototype.En=function(a){a=jT(this,a);return A(a||[],function(a){return a.b})};
function kT(a,b,c){var d=c||!1;return B(b.k,function(a){var b=a.b==this.b;return a instanceof this.constructor&&(d||b)},a)};function lT(a,b,c,d,e){hT.call(this);this.da=a;this.j=b;this.g=c;this.D=ub(d);this.ca=this.la=null;this.k=e}w(lT,hT);lT.prototype.Fd=function(){return this.j};lT.prototype.getMediaUrl=function(a){var b="";ib(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};lT.prototype.setMediaUrl=function(a){this.ca=a};
lT.prototype.xn=function(){var a=B(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 mT(a,b,c){this.g=a;this.j=b;this.k=c;this.A=0;this.b=new Sk(this);nT(this)}w(mT,Hh);function nT(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)}mT.prototype.B=function(){this.o=v()};
mT.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=Qf(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("&"))};mT.prototype.C=function(){this.A++};mT.prototype.J=function(){mT.G.J.call(this);this.b.dispose()};function oT(a,b,c,d,e){hT.call(this);x(a)&&(a=Za()+"_ima");this.ta=za(a);this.pa=b;this.P=c;this.O=d;this.k=e;null!=this.O?this.U=fP[this.O]||"Other":this.U=null}w(oT,hT);f=oT.prototype;f.wl=function(){var a;a=this.od();if("outerHTML"in a)a=a.outerHTML;else{var b=Kc(a).createElement("div");b.appendChild(a.cloneNode(!0));a=b.innerHTML}return a};f.getContentType=function(){return this.U};f.Yd=function(){return this.pa};f.td=function(){return this.Yd().width};f.getHeight=function(){return this.Yd().height};
f.xn=function(){return"VPAID"==this.B?this.k:null};f.Fd=function(){return this.I};function pT(a,b,c,d,e){oT.call(this,a,b,c,d,e);this.qb=-2;this.j=null;new Sk(this);this.M=this.F=ca;this.N=[];this.ka=!0;this.V=[];this.C=!1}w(pT,oT);function qT(a,b){a.j=b;null!=a.g&&null!=b&&(rT(a,a.F),sT(a,a.M))}function rT(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 sT(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 tT(a){z(a.V,function(a){dd(Lc(a))},a);a.V=[]}pT.prototype.o=function(a){null==this.j||x(this.Fd())||(this.j.listen(a,"click",this.F),this.N.push(a))};pT.prototype.od=function(){null==this.g&&(this.g=this.Eh(),ad(this.g,uT(this)));null!=this.j&&this.j.listen(this.g,"creativeview",this.M);return this.g};
function vT(a,b){var c=a.ta,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.td()+"px");x(c)||(d.id=c);return I("div",d,b)}pT.prototype.ts=function(){return 2};
function uT(a){if(!a.ka)return null;var b=jT(a,"start");vb(b,jT(a,"creativeview"));if(null!=b&&!E(b)){var c=[];z(b,function(a){if(!x(a)){var b;b=Ic().HB("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});Ff(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",XN(a.b));b.setAttribute("id",g);this.V.push(g);pb(c,b)}},a);return c}return null}
function wT(a,b){if(null!=a.g){var c=new Cd;z(a.N,function(a){c.set(a,this.ts(a))},a);new mT(b,a.g,c)}};function EQ(a,b,c,d,e,g,h,k,l,p,r,t,y,D,M,ea){this.N=a;this.A=b;this.pa=d;this.aa=isNaN(h)||""==h||0==h?-1:h;this.F=k?ub(k):[];this.U=l?ub(l):[];this.k=p?ub(p):[];this.L=r?ub(r):[];this.o=[];z(this.L,function(a){vb(this.o,ub(a.b))},this);this.T=!0;this.b=this.g=null;this.B=new Cd(t);this.O=null!=ea;this.ca=(this.C=null!=y)?D||!1:!1;this.qb=this.Rt?M||!1:!1;this.ka=za(y);this.la=za(ea);this.da=this.j=null;this.D=new gT;this.V=new G(0,0);this.I=this.M=this.P=null;z(tb(this.k,this.o),function(a){a.qg(this)},
this);RO.b&&xT(this)&&(this.o=hb(this.o,function(a){return 60>=a.getHeight()}))}function yT(a){var b;b=zT(a)?AT(a)?"2_1":"2_2":"2";return(BT(a,hP)||BT(a,iP)?1:BT(a,gP)?2:0)+"_"+b}function CT(a){return null!=a.A?a.A:""}function DT(a){return null!=a.b?tb(DT(a.b),a.F):a.F}function ET(a){return null!=a.b?tb(ET(a.b),a.U):a.U}f=EQ.prototype;
f.getContentType=function(){var a=this.getSelectedCreative(),b="";if(null===a)return b;if(a instanceof lT)a=a.la,null===a||(b=za(a.b));else if(a instanceof pT)switch(a.P){case "IFrame":case "Html":case "Static":b=za(a.O)}return b};function NQ(a){return null!=a.b?tb(a.o,NQ(a.b)):a.o}function FT(a){return null!=a.g?a.g.T:""}f.getExtension=function(a){return this.B.get(a)};function GT(a,b){a.g=b;a.V=null!=a.g&&a.g instanceof pT?a.g.Yd():new G(0,0)}f.getSelectedCreative=function(){return this.g};
function HT(a){return null!=a.N?a.N:""}function IT(a){if(null==a.b)return[];var b=[HT(a.b)];vb(b,IT(a.b));return b}function JT(a){var b=IT(a).reverse();b.push(HT(a));return b}function KT(a){if(null==a.b)return[];var b=[CT(a.b)];vb(b,KT(a.b));return b}function MQ(a){var b=KT(a).reverse();b.push(CT(a));return b}function LT(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.g?a.g:-1}function MT(a){if(-1!=a.aa)return a.aa;a=a.getExtension("pod");return null!=a&&-1!=a.g?a.g:-1}
function UQ(a,b){return b||null==a.b?a.L:tb(a.L,UQ(a.b))}function NT(a,b){return ib(a.k,function(a){return a instanceof lT&&"linear"==b||a instanceof pT&&"nonlinear"==b?!0:!1})}function xT(a){return OT(a)?"video"==a.pa:NT(a,"linear")}function zT(a){return null!=PT(a)}
function PT(a){if(US(919139)||US(919140))return new DR(0,!1);var b=new DR(5,!1),c=QT(a);if("implicit"==c)return b;a=a.getSelectedCreative();var d=null;null!=a&&a instanceof lT&&(d=a.k);null!=d||"explicit"!=c||(d=b);return null!=d&&RO.b?b:d}
function QT(a){if(null!=B(a.B.Qa(),function(a){return!E(UR(a,"skip"))}))return"implicit";var b=a.B.get("DFP");if(b instanceof aS)switch(b.g){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.getSelectedCreative();return null==a||(a=a.he,null==a||E(KR(a,"skip")))?"none":"explicit"}function AT(a){if(null==a.A||null==a.j)return!1;var b=cT(a.j),c=null!=a.b,d=dT(a.j);if(!c&&(b||d&&RT(a)))return!0;a=BT(a,["ADSENSE/ADX"])||BT(a,gP)&&c;return RO.b&&!a}f.Rt=function(){return this.C};
function ST(a){return null===a.g?null:a.g.Fd()}function TT(a){return null==a.g||a.g instanceof pT?-1:a.g.da}function UT(a){return null===a.g?null:a.g.xn()}function OT(a){return VT(a,gP)}f.getHeight=function(){return this.V.height};function WT(a){return a.P}function RT(a){if(!VT(a,iP))return!1;a=a.B.get("DFP");return null!=a?"InstreamSelect"==a.g:!1}f.toString=function(){return"Ad: "+this.N};function VT(a,b){return null!=a.A?C(b,a.A.toUpperCase()):!1}
function BT(a,b){return C(b,MQ(a)[0].toUpperCase())};function XT(a,b){this.b=a;this.g=b};function ZT(a,b,c){this.b=a;this.g=b;this.j=c}ZT.prototype.getContentType=function(){return this.b.getContentType()};ZT.prototype.getHeight=function(){return this.b.getHeight()};function VQ(a){a=a.b.getAd().getSelectedCreative();return null!=a?a.b:NaN}ZT.prototype.En=function(a){return NR(this.b.he,a)};ZT.prototype.qg=function(a){this.b.qg(a);z(this.g,function(b){b.qg(a)},this)};function $T(a,b,c){this.g=a;this.b=b;this.j=c}$T.prototype.getContentType=function(){return null!=this.b?fP[this.b]||"Other":null};pc&&Ac(8);function aU(){};var bU={},cU={},dU={};function eU(){throw Error("Do not instantiate directly");}eU.prototype.pe=null;eU.prototype.toString=function(){return this.content};function fU(a,b){var c=Ic().createElement("DIV"),d=gU(a(b||hU,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function gU(a){if(!la(a))return String(a);if(a instanceof eU){if(a.Tc===bU)return a.content;if(a.Tc===dU)return Da(a.content)}return"zSoyz"}var hU={};function iU(a){if(null!=a)switch(a.pe){case 1:return 1;case -1:return-1;case 0:return 0}return null}function jU(){eU.call(this)}w(jU,eU);jU.prototype.Tc=bU;function kU(a){return null!=a&&a.Tc===bU?a:a instanceof mx?lU(ox(a),a.yh()):lU(Da(String(String(a))),iU(a))}function mU(){eU.call(this)}w(mU,eU);mU.prototype.Tc={};mU.prototype.pe=1;function nU(){eU.call(this)}w(nU,eU);nU.prototype.Tc={};function oU(){eU.call(this)}w(oU,eU);oU.prototype.Tc=cU;oU.prototype.pe=1;function pU(){eU.call(this)}
w(pU,eU);pU.prototype.Tc={};pU.prototype.pe=1;function qU(){eU.call(this)}w(qU,eU);qU.prototype.Tc={};qU.prototype.pe=1;function rU(a,b){this.content=String(a);this.pe=null!=b?b:null}w(rU,eU);rU.prototype.Tc=dU;function sU(a){function b(){}b.prototype=a.prototype;return function(a,d){var e=new b;e.content=String(a);void 0!==d&&(e.pe=d);return e}}function tU(a){function b(){}b.prototype=a.prototype;return function(a){var d=new b;d.content=String(a);return d}}var lU=sU(jU);tU(mU);sU(nU);tU(oU);
var uU=tU(pU);tU(qU);(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.pe=d);return e}})(jU);var vU=/['()]/g;function wU(a){return"%"+a.charCodeAt(0).toString(16)}function xU(a){if(null!=a&&a.Tc===cU)return String(a).replace(yU,zU);a=Ba(String(a));vU.lastIndex=0;return vU.test(a)?a.replace(vU,wU):a}var AU={};
function BU(a){AU[1]||(AU[1]=new aU);var b=iU(a);if(null==b){var c=b=0,d=!1;a=Uw(a+"",null!=a&&a.Tc===bU).split($w);for(var e=0;e<a.length;e++){var g=a[e];Xw.test(Uw(g,void 0))?(b++,c++):Yw.test(g)?d=!0:Ww.test(Uw(g,void 0))?c++:bx.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return uU(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var CU={"\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 zU(a){return CU[a]}var yU=/[\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 DU(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+kU(a.Hd)+'"><img src="'+kU(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+kU(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+kU(a.Hd)+'" target="_blank" dir='+kU(a.dir)+">"+kU(a.title)+'</a><div class="text-description" dir='+kU(a.dir)+">"+kU(a.text)+"</div>"+(a.sr?'<a target="_blank" href="'+
kU(a.Hd)+'" class="text-ad-channel">'+kU(a.sr)+"</a>":"")+"</div></div>"}
function GU(a){return'<div class="flash-container '+(a.Pf?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+kU(a.Hd)+'"></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="'+kU(a.width)+'" height="'+kU(a.height)+'"><param name="movie" value="'+kU(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+xU(a.Hd)+
'"><embed width="'+kU(a.width)+'" height="'+kU(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+kU(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+xU(a.Hd)+'"></object></div>'}function HU(a){return'<div class="image-container" id="'+kU(a.id)+'" style="width:'+kU(a.width)+";height:"+kU(a.height)+'"><a target="_blank" href="'+kU(a.Hd)+'"><img src="'+kU(a.url)+'" border="0"></a></div>'};function IU(a,b,c,d){pT.call(this,a,b,"Static",c,d);this.Qr=!1}w(IU,pT);IU.prototype.Eh=function(){var a=this.B,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:XN(za(this.k)),width:this.td(),height:this.getHeight(),Hd:this.Fd(),Pf:this.Qr||!a},a=fU(GU,a);a.style.width=this.td()+"px";a.style.height=this.getHeight()+"px";a.id=this.ta;z(a.getElementsByTagName("object"),this.o,this);z(a.getElementsByTagName("a"),this.o,this);return a};function JU(a,b,c,d){pT.call(this,a,b,"Html",c,d)}w(JU,pT);JU.prototype.Eh=function(){var a=I("div");a.innerHTML=this.k;this.o(a);return vT(this,a)};function KU(a,b,c,d){pT.call(this,a,b,"Static",c,d)}w(KU,pT);KU.prototype.wl=function(){var a=KU.G.wl.call(this);this.C&&(a=a.replace('<img src=""','<img src="'+XN(za(this.k))+'"'));return a};KU.prototype.Eh=function(){var a="";this.C||(a=XN(za(this.k)));a={id:this.ta,url:a,Hd:this.Fd(),width:this.td()+"px",height:this.getHeight()+"px"};a=fU(HU,a);z(a.getElementsByTagName("a"),this.o,this);return a};function LU(a){a=a.className;return s(a)&&a.match(/\S+/g)||[]}function MU(a,b){for(var c=LU(a),d=xb(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 NU(a,b){var c=LU(a),d=xb(arguments,1),c=OU(c,d).join(" ");a.className=c}function OU(a,b){return hb(a,function(a){return!C(b,a)})}function PU(a,b,c){c?MU(a,b):NU(a,b)};function QU(a,b){pT.call(this,a,b,"Static","text","")}w(QU,pT);f=QU.prototype;f.Yd=function(){return new G(this.td(),this.getHeight())};f.getHeight=function(){return 63};f.td=function(){return null!=this.A?$f(this.A).width:0};f.ts=function(a){return C(LU(a),"text-image")?9:C(LU(a),"text-ad-channel")?1:0};
f.Eh=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.j,e="rtl";null!=d&&(e=Vw.test(Uw(d,void 0))?"rtl":"ltr");d={title:d,text:c.k+" "+c.o,dir:e,Hd:this.Fd()};if(c=c.g)d.image=XN(c),a=B(a.k,function(a){return a instanceof lT}),null!=a&&(d.duration=xR(a.da));b.j&&(d.sr=b.j);this.A=fU(DU,d);z(this.A.getElementsByTagName("a"),this.o,this);this.A.id=this.ta;this.A.style.height=this.getHeight()+"px";return this.A};function RU(a,b,c,d,e){pT.call(this,a,b,c,d,e)}w(RU,pT);RU.prototype.Eh=function(){var a=za(this.k);x(this.Fd())||(a=new J(a),K(a,"clickTAG",Ba(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.td());b.setAttribute("src",XN(a));this.o(b);return vT(this,b)};function SU(a,b,c){var d=TU(c);c=d.g;var e=d.b,d=d.j;switch(c){case "Html":return new JU(a,b,e,d);case "Static":switch(fP[e]){case "Image":return new KU(a,b,e,d);case "Flash":return new IU(a,b,e,d);case "Text":return new QU(a,b)}}return new RU(a,b,c,e,d)}
function TU(a){var b=B(a,function(a){return"Static"==a.g&&"Flash"==fP[a.b]}),c=B(a,function(a){return"IFrame"==a.g}),d=B(a,function(a){return"Html"==a.g}),e=B(a,function(a){return"Static"==a.g&&"Image"==fP[a.b]}),g=B(a,function(a){return"Static"==a.g&&"Text"==fP[a.b]});return FS&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function UU(a,b,c,d,e){var g=TU(e),h=SU(a.id,a.size,[g]);h.C=!0;h.B=a.Em;h.I=b;h.b=c;null!=d&&(h.he=d);qb(e,g);var k=[];z(e,function(e){e=SU(a.id,a.size,[e]);e.C=!0;e.B=a.Em;e.I=b;e.b=c;null!=d&&(e.he=d);k.push(new ZT(e,[],a.Pq))});return new ZT(h,k,a.Pq)};function VU(){};function WU(a,b,c,d){a=SU("icon",a,d);a.B=b;a.I=c.zB;return new VU};function XU(a){this.k=a;this.logger=null}w(XU,eR);
XU.prototype.b={Uz:"Ad",Im:"AdParameters",KA:"AdSystem",LA:"AdTitle",RE:"Advertiser",KB:"AltText",YA:"ClickThrough",ZA:"ClickTracking",fB:"Companion",bB:"CompanionAds",LB:"CompanionClickThrough",MB:"CompanionClickTracking",cB:"Creative",KG:"CreativeExtensions",NA:"Creatives",$A:"CustomClick",OA:"Description",Tm:"Duration",ERROR:"Error",eB:"Extension",PA:"Extensions",lj:"HTMLResource",cC:"Icon",GA:"Icons",AA:"IconClicks",XB:"IconClickThrough",YB:"IconClickTracking",BA:"IconViewTracking",mj:"IFrameResource",
Ar:"Impression",YH:"InLine",LINEAR:"Linear",WA:"MediaFile",HA:"MediaFiles",SB:"NonLinear",dB:"NonLinearAds",bA:"NonLinearClickThrough",cA:"NonLinearClickTracking",TI:"Pricing",nj:"StaticResource",Vm:"Survey",NJ:"Tracking",Um:"TrackingEvents",WJ:"VAST",RA:"VASTAdTagURI",JA:"VideoClicks",SA:"Wrapper"};
XU.prototype.g={sC:"adSlotID",MA:"allowMultipleAds",jj:"apiFramework",TA:"bitrate",aB:"creativeType",UA:"delivery",Tm:"duration",yH:"event",QA:"followAdditionalWrappers",tC:"expandedHeight",uC:"expandedWidth",Rm:"height",Fm:"id",$z:"maintainAspectRatio",VA:"maxBitrate",XA:"minBitrate",aA:"minSuggestedDuration",CA:"offset",DA:"program",gB:"required",dA:"scalable",Sq:"sequence",IA:"skipoffset",Cr:"type",VERSION:"version",Sm:"width",EA:"xPosition",FA:"yPosition"};
function YU(a){if(null==a)return!1;a=gd(a);return null!=a&&"VAST"==a.nodeName}function ZU(a){var b=[];kR(gd(a.k),a.b.Uz,function(a){var d;d=$U(a);if(null==d)throw fR(a);var e=a.getAttribute(this.g.Fm);a=Number(a.getAttribute(this.g.Sq));d=aV(this,d,e||null,a||0);null!=d&&b.push(d)},a);return b}XU.prototype.j=function(){return new oR(this.k,ZU(this),null)};function $U(a){var b=null;z(fd(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw fR(a);}});return b}
function aV(a,b,c,d){var e,g,h=[],k=[],l=[],p=[],r=new Cd,t,y=b.nodeName==a.b.SA,D=y,M=y,ea;z(fd(b),function(a){switch(a.nodeName){case this.b.RA:if(y){if(null!=t)throw gR(a);t=jR(a);ea=RR(t);D=nR(b.getAttribute(this.g.MA),D);M=nR(b.getAttribute(this.g.QA),M)}else throw fR(a);break;case this.b.KA:e=jR(a);break;case this.b.LA:g=jR(a);break;case this.b.OA:jR(a);break;case this.b.Vm:jR(a);break;case this.b.Ar:a=jR(a);PR(a)&&h.push(AR(a));break;case this.b.ERROR:a=jR(a);k.push(a);break;case this.b.NA:a=
bV(this,a);l=a.zA;p=a.yA;break;case this.b.PA:r=cV(this,a,ea)}},a);return new EQ(za(c),e,0,g,0,0,d,k,h,l,p,r,t,D,M,dV(r))}function dV(a){var b=null;a=a.get("AdSense");null!=a&&(a=UR(a,"vast2tracking"),null!=a&&!E(a)&&(b=a[0]));return b}function eV(a){if(x(a))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function cV(a,b,c){var d=new Cd;try{var e=hR(b,a.b.eB);z(e,function(a){var b=a.getAttribute(this.g.Cr);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new pS).parse(a);break;case "pod":a=(new nS).parse(a);break;case "waterfall":a=(new rS).parse(a);break;case "dart":a=(new bS).parse(a);break;case "dfp":b="DFP";a=(new cS).parse(a);break;case "adsense":b="AdSense";a=(new $R).parse(a);break;case "textad":b="TextAd";a=(new lS).parse(a);break;case "templatead":b="TemplateAd";a=(new iS).parse(a);break;
case "infocards":b="InfoCards";a=(new fS).parse(a);break;case c:b="LocalRedirect";if(null!=a){var e=null;a=hR(a,"AdXml");1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+RC(gd(a[0])));a=new gS(e)}else a=null;break;default:e=new dS,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(TR(e,a.b),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d}
function bV(a,b){var c=[],d=[];kR(b,a.b.cB,function(a){var b=a.getAttribute(this.g.Sq),h;x(b)||(h=parseFloat(b));var k=!1;z(fd(a),function(a){switch(a.nodeName){case this.b.LINEAR:if(k)throw gR(a);a=fV(this,a,isNaN(h)?0:h);vb(c,a);k=!0;break;case this.b.bB:if(k)throw gR(a);a=gV(this,a,isNaN(h)?void 0:h);vb(d,a);k=!0;break;case this.b.dB:if(k)throw gR(a);a=hV(this,a,isNaN(h)?0:h);vb(c,a);k=!0}},this)},a);return{zA:c,yA:d}}
function hV(a,b,c){var d=[],e=new FR;z(fd(b),function(a){switch(a.nodeName){case this.b.SB:a=iV(this,a,c);null!=a&&d.push(a);break;case this.b.Um:e=OR(a);break;default:throw fR(a);}},a);0!=d.length||e.isEmpty()||(a=new pT(null,new G(-1,-1),"",null,""),a.b=c,d.push(a));z(d,function(a){null!=e&&(a.he=e)});return d}
function jV(a,b){var c={};c.id=b.getAttribute(a.g.Fm);c.Pq=b.getAttribute(a.g.sC);c.Em=b.getAttribute(a.g.jj);var d=$a(b.getAttribute(a.g.Sm)),e=$a(b.getAttribute(a.g.Rm));c.size=new G(d,e);d=b.getAttribute(a.g.uC);e=b.getAttribute(a.g.tC);x(d)||x(e)||(c.JE=new G($a(d),$a(e)));return c}
function iV(a,b,c){var d=jV(a,b);b.getAttribute(a.g.jj);b.getAttribute(a.g.dA);b.getAttribute(a.g.$z);var e=b.getAttribute(a.g.aA),e=mR(e,-1),g=[];new Cd;var h={},k="",l;z(fd(b),function(a){switch(a.nodeName){case this.b.cA:break;case this.b.bA:l=jR(a);break;case this.b.Im:h=kV(a);k=za(jR(a));break;case this.b.mj:case this.b.nj:case this.b.lj:g.push(lV(this,a));break;default:throw fR(a);}},a);if(E(g))return null;a=SU(d.id,d.size,g);iT(a,k,h);a.B=d.Em;a.I=l;a.qb=e;a.b=c;return a}
function lV(a,b){var c=iR(b,a.g.aB),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 LO(EO,null,d);}var e=jR(b);null!=e||(e="");return new $T(d,c,e)}function gV(a,b,c){var d=[],e=eV(iR(b,a.g.gB));kR(b,a.b.fB,function(a){a=mV(this,a,c);null!=a&&d.push(a)},a);return new XT(d,e)}
function mV(a,b,c){var d=jV(a,b),e=[],g=new FR,h;z(fd(b),function(a){switch(a.nodeName){case this.b.MB:break;case this.b.Um:g=OR(a);break;case this.b.LB:h=jR(a);break;case this.b.KB:jR(a);break;case this.b.Im:jR(a);break;case this.b.mj:case this.b.nj:case this.b.lj:e.push(lV(this,a));break;default:throw fR(a);}},a);return E(e)?null:UU(d,h,c,g,e)}
function fV(a,b,c){var d=new FR,e={},g="",h=[],k,l=new Cd,p=[],r,t=QR(iR(b,a.g.IA));z(fd(b),function(a){switch(a.nodeName){case this.b.GA:nV(this,a);break;case this.b.Im:e=kV(a);g=za(jR(a));break;case this.b.Tm:r=mR(jR(a),0);break;case this.b.Um:d=OR(a);break;case this.b.HA:p=oV(this,a);break;case this.b.JA:a=pV(this,a);l=a.xA;k=a.vA;h=a.wA;break;default:throw fR(a);}},a);z(h,function(a){JR(d,"click",a)});a=new lT(r,k,l,p,t);iT(a,g,e);a.b=c;null!=d&&(a.he=d);return a}
function pV(a,b){var c,d=[],e=new Cd;z(fd(b),function(a){switch(a.nodeName){case this.b.YA:c=jR(a);break;case this.b.ZA:a=jR(a);d.push(a);break;case this.b.$A:var b=iR(a,this.g.Fm);null!=b||(b="");var k=e.get(b,[]);k.push(jR(a));e.set(b,k);break;default:throw fR(a);}},a);return{vA:c,wA:d,xA:e}}
function oV(a,b){var c=[];kR(b,a.b.WA,function(a){var b=iR(a,this.g.UA),g=iR(a,this.g.Cr);a.getAttribute(this.g.Sm);var h=$a(a.getAttribute(this.g.Rm)),k=a.getAttribute(this.g.jj),l=jR(a),p=lR(a.getAttribute(this.g.TA)),r=lR(a.getAttribute(this.g.XA));a=lR(a.getAttribute(this.g.VA));c.push(new uP(b,g,p,r,a,0,h,l,k))},a);return c}function nV(a,b){var c=[];kR(b,a.b.cC,function(a){a=qV(this,a);null!=a&&c.push(a)},a)}
function qV(a,b){iR(b,a.g.DA);iR(b,a.g.EA);iR(b,a.g.FA);var c=$a(b.getAttribute(a.g.Sm)),d=$a(b.getAttribute(a.g.Rm)),c=new G(c,d),d=b.getAttribute(a.g.jj);QR(iR(b,a.g.CA));var e=b.getAttribute(a.g.Tm);mR(e,-1);var g=[],h=[],k;z(fd(b),function(a){switch(a.nodeName){case this.b.BA:h.push(jR(a));break;case this.b.AA:k=rV(this,a);break;case this.b.mj:case this.b.nj:case this.b.lj:g.push(lV(this,a));break;default:throw fR(a);}},a);return E(g)?null:WU(c,d,k,g)}
function rV(a,b){var c=[],d;z(fd(b),function(a){switch(a.nodeName){case this.b.XB:d=jR(a);break;case this.b.YB:c.push(jR(a));break;default:throw fR(a);}},a);return{zB:d,IE:c}}function kV(a){a=jR(a);return null!=a?yR(a):{}};function sV(a,b){this.b=a;this.g=b}w(sV,eR);sV.prototype.j=function(){return new oR(this.b,null,tV(this))};function tV(a){var b=new sR;z(fd(gd(a.b)),function(a){if("vmap:AdBreak"==a.nodeName){var d=iR(a,"timeOffset"),e=mR(d);a=uV(this,a);if("start"==d||0==e)tR(b,a,0);else if("end"==d)tR(b,a,-1);else{if(-1==e)throw LO(fO,null,"timeOffset",za(d));tR(b,a,e)}}},a);if(0==b.b.Ma().length)throw LO(lO);return b}
function uV(a,b){var c=[],d="",e=!1,g=!1;z(fd(b),function(a){switch(a.nodeName){case "vmap:AdSource":var b=hR(a,"vmap:AdTagURI"),c="";b.length&&(c=za(jR(b[0])));if(ya(c))throw LO(JO,null,a.parentNode.nodeName,a.nodeName);d=c;break;case "vmap:Extensions":a=hR(a,"vmap:Extension"),a=vV(this,a),null!=a&&(e=!0,a=iR(a,"suppress_bumper"),g=null!=a?"true"==a:!0)}},a);if(!ya(d)){var h=new qR(wV(a,d));h.b=e;h.g=e&&!g;pb(c,h)}return c}
function vV(a,b){return B(b,function(a){return"bumper"==iR(a,"type")},a)}function wV(a,b){var c=a.g.clone();c.adTagUrl=b;return c};function xV(a,b){if(null!=a){var c;null!=a?(c=gd(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return new uR(a,b);null!=a?(c=gd(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return new sV(a,b);if(YU(a)){if(!YU(a))throw LO(oO);c=gd(a);var d;null==c?d=0:(d=parseInt(c.getAttribute("version"),10),d=ja(d)?d:0);if(1>d||3<d)throw LO(FO);c=hR(c,"Ad");if(E(c))throw LO(tO);c=$U(c[0]);if(null==c)throw LO(wO);if(1!=hR(c,"AdSystem").length)throw LO(wO);return new XU(a)}}return null};function yV(a,b){this.g=a;this.j=b}function zV(a,b){var c=a.j.o;null!=c&&b.set("js","ima-"+c)}function AV(a){return a.k(a.A())}function BV(a){return RO.g?"h.3.0.0":null!=a.j?kQ(a.j):null}yV.prototype.o=function(){var a=0;this.g.mh&&(a+=1);$O()&&(a+=4);return a};function CV(){this.b=["video"]}var DV={PJ:"ultrahigh",MH:"high",uE:"medium"},EV={VF:1E3,WF:1001,XF:1002,YF:1003,ZF:1004,$F:1005,aG:1006},FV={tE:1,oE:2},GV={nE:"content",nJ:"site",oJ:"site_content"};f=CV.prototype;f.yi="high";f.bl=!1;f.Wk=1;f.Xk=null;f.He="video";f.Vk=1;f.Yk=null;f.dl=null;f.Zk=!1;f.$k=null;f.al=null;f.Ig=null;f.sc=null;f.fl=null;f.host=null;f.gl=null;f.il=!1;f.jl=null;f.Ip=null;f.Hp=null;f.zi=1E5;f.Bi=null;f.Kp=null;f.Jp=null;f.nl=0;f.Ff=null;f.Ci=null;f.Ji=null;f.pl=null;f.Di=-1;
f.url=null;f.Ai=null;f.kl=null;f.ll=null;f.ul=null;f.ql=null;f.rl=null;f.tl=null;var HV=(new Date).getTime();var IV={rE:"flash",IMAGE:"image",rJ:"skippablevideo",wJ:"standardvideo",zJ:"staticimage",TEXT:"text",VIDEO:"video"},JV=["flash","image","staticimage"],KV=[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 LV(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 MV(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",HV);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 NV(a,b,c){var d=new Cd;d.set("ad_type",b.He);FS&&d.set("flash",GS);LV(d,a);OV(b)&&(d.set("ea","0"),null!=a.nonLinearAdSlotWidth&&null!=a.nonLinearAdSlotHeight&&d.set("image_size",PV(b,a.nonLinearAdSlotWidth,a.nonLinearAdSlotHeight)));QV(d,c);d.set("lact",a.lastActivity);d.set("videoad_start_delay",a.youTubeVideoAdStartDelay);MV(d);x(a.b)||RV("ref",a.b,d);return d}
function SV(a,b){if(null==b)return a;var c=b.split("_");z(c,function(a){if(!Tb(IV,a))throw LO(kO,null,"ad_type",String(b));});if(!$O()){var d=[];z(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw LO(jO,null,"skippablevideo");return d}return c}function TV(a,b){return null!=b?b.split(/[+, ]/):a}function PV(a,b,c){a.k&&(c=Math.min(c,90));var d=[];z(KV,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")}
function UV(a,b){return null==b||isNaN(b)?a:Number(b)}function VV(a,b){return null!=b?String(b):null!=a?a:null}function WV(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 XV(a,b,c){return null!=b&&Tb(c,b)?b:a}function OV(a){return ib(JV,function(b){return C(a.b,b)})}
function QV(a,b){FS?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 RV(a,b,c){null!=b&&c.set(a,b)};function YV(a,b,c){yV.call(this,a,b);b=new CV;a=se(new J(a.adTagUrl));b.dl=XV(b.dl,a.get("cust_age"),EV);b.yi=XV(b.yi,a.get("adsafe"),DV);b.b=SV(b.b,a.get("ad_type"));b.He=b.b.join("_");b.Wk=UV(b.Wk,a.get("videoad_start_delay"));b.Xk=VV(b.Xk,a.get("slotname"));b.bl=WV(b.bl,a.get("adtest"));b.Yk=VV(b.Yk,a.get("afi_url"));b.Zk=WV(b.Zk,a.get("scs"));b.$k=VV(b.$k,a.get("alternate_ad_url"));b.g=TV(b.g,a.get("channel"));b.al=UV(b.al,a.get("cpm"));b.Ig=VV(b.Ig,a.get("description_url"));b.sc=VV(b.sc,a.get("eid"));
b.fl=XV(b.fl,a.get("cust_gender"),FV);b.k=WV(b.k,a.get("overlay"));b.host=VV(b.host,a.get("host"));b.j=TV(b.j,a.get("hostChannels"));b.gl=UV(b.gl,a.get("hostTierId"));b.il=WV(b.il,a.get("lsv"));var d;null!=this.g.g?d=this.g.g:(d=nc(),d=QO(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=VV(e,d);var g;null!=d&&!x(d)&&(g=QO(d));b.jl=VV(b.jl,g);b.Ip=UV(b.Ip,a.get("linearAdSlotWidth"));b.Hp=UV(b.Hp,a.get("linearAdSlotHeight"));b.zi=
UV(b.zi,a.get("max_ad_duration"));b.nl=UV(b.nl,a.get("min_ad_duration"));b.Bi=UV(b.Bi,a.get("sdmax"));b.Kp=UV(b.Kp,a.get("nonLinearAdSlotWidth"));b.Jp=UV(b.Jp,a.get("nonLinearAdSlotHeight"));b.Ff=VV(b.Ff,a.get("client"));b.Ci=VV(b.Ci,a.get("t_pyv"));b.Ji=UV(b.Ji,a.get("sdki"));b.Di=UV(b.Di,a.get("tfcd"));b.pl=XV(b.pl,a.get("targeting"),GV);b.Ai=UV(b.Ai,a.get("video_format"));b.kl=UV(b.kl,a.get("video_cpm"));b.ll=VV(b.ll,a.get("loeid"));b.ul=VV(b.ul,a.get("yt_pt"));b.ql=VV(b.ql,a.get("ytdevice"));
b.rl=VV(b.rl,a.get("ytdevicever"));b.tl=VV(b.tl,a.get("as_dbp"));b.o=VV(b.o,a.get("ms"));b.Vk=UV(b.Vk,a.get("adBlock"));b.url=VV(b.url,a.get("url"));this.b=b;this.C=c;x(this.b.sc)||(c=this.b.sc.split(","),TS(RS(),c))}w(YV,yV);var ZV=["skippablevideo","standardvideo","video"];YV.prototype.B={Tw:"allow",Uw:"exclude",bJ:"require"};function $V(a){return null!=a.b.g?-1<a.b.g.indexOf("afitc"):!1}YV.prototype.o=function(){var a=YV.G.o.call(this);this.b.Ji&&(a+=this.b.Ji&2);return a};
YV.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};
YV.prototype.A=function(){var a=new Cd;a.set("sdkv",BV(this));a.set("sdki",this.o().toString(16));a.set("video_product_type",null!=this.b.Ff?RO.b?5:$V(this)?7:0==this.b.Ff.lastIndexOf("ca-games-",0)?4:0==this.b.Ff.lastIndexOf("ca-video-",0)?0:-1:-1);a.set("correlator",this.j.b);a.set("client",this.b.Ff);RO.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",aW(this));a.set("channel",bW(this));a.set("ad_type",this.b.He);a.set("output","xml_vast2");
this.b.bl&&a.set("adtest","on");FS&&a.set("flash",GS);RV("alternate_ad_url",this.b.$k,a);RV("cpm",this.b.al,a);LV(a,this.g);RO.b||Tb(DV,this.b.yi)&&a.set("adsafe",this.b.yi);this.b.host&&(a.set("host",this.b.host),RV("ht_id",this.b.gl,a),null!=this.b.j&&RV("h_ch",this.b.j.join("+"),a));RV("hl",this.b.jl,a);RV("cust_age",this.b.dl,a);RV("cust_gender",this.b.fl,a);-1!=this.b.Di&&RV("tfcd",this.b.Di,a);$V(this)?RV("afi_url",this.b.Yk,a):RV("slotname",this.b.Xk,a);var b=VS(RS());x(b)||a.set("eid",b);
MV(a);b=this.b.Ig;if(null!=b){var c,d;d=this.j;null==d.j&&(d.j=new fQ);d=d.j;$V(this)?c=this.b.Vk:(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 gQ);c=c.M;var e=b!=this.j.L;(d=0==d.b%100||e)||(d=36E5<(null===c.b?0:(new uM).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.Wk;a.set("videoad_start_delay",null!=b?b:1);zV(this,a);OV(this.b)&&(a.set("ea","0"),null!=this.g.nonLinearAdSlotWidth&&
null!=this.g.nonLinearAdSlotHeight&&a.set("image_size",PV(this.b,this.g.nonLinearAdSlotWidth,this.g.nonLinearAdSlotHeight)));cW(this)&&a.set("video_format",null!=this.b.Ai&&RO.b?this.b.Ai:mh&&0<=Va(TO,6)||hh&&0<=Va(TO,4)||lc&&ZO(XO,2.3)?43:18);b=null!=this.b.Ci?this.b.Ci:C(this.b.He.split("_"),"text")?this.B.Tw:this.B.Uw;a.set("t_pyv",b);RV("min_ad_duration",this.b.nl,a);0<this.b.zi&&a.set("max_ad_duration",dW(this.b.zi,aW(this)));0<this.b.Bi&&a.set("sdmax",dW(this.b.Bi,aW(this)));QV(a,this.C);RO.b&&
(b=DP(this.b.Ig),null!=b&&a.set("video_doc_id","yt_"+b));RV("description_url",this.b.Ig,a);RO.b&&(RV("lact",this.g.lastActivity,a),RV("loeid",this.b.ll,a),RV("lsv",this.b.il,a),RV("scs",this.b.Zk,a),RV("targeting",this.b.pl,a),RV("video_cpm",this.b.kl,a),RV("yt_pt",this.b.ul,a),RV("ytdevice",this.b.ql,a),RV("ytdevicever",this.b.rl,a),RV("as_dbp",this.b.tl,a));RV("ms",this.b.o,a);b=this.g;x(b.b)||RV("ref",b.b,a);null!=this.g.Ce&&RV("loc",this.g.Ce.page_location,a);return a};
function cW(a){return ib(ZV,function(a){return C(this.b.b,a)},a)}function aW(a){return $V(a)||RO.b?1:C(a.b.He.split("_"),"text")?3:1}function bW(a){a=a.b.g?a.b.g:[];yb(a);a=xb(a,0,30);return a.join("+")}function dW(a,b){return Math.round(1.1*(a||0)+0*b)};function eW(){}f=eW.prototype;
f.clone=function(){var a=new eW;a.adTagUrl=this.adTagUrl;a.Ce=$b(this.Ce);a.adsResponse=this.adsResponse;a.Ug=$b(this.Ug);a.Dr=this.Dr;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.mh=this.mh;a.youTubeAdType=this.youTubeAdType;a.youTubeExperimentIds=this.youTubeExperimentIds;a.youTubeVideoAdStartDelay=this.youTubeVideoAdStartDelay;return a};f.Ce=null;f.Ug=null;f.Dr=!1;f.isYouTube=!1;f.linearAdSlotWidth=0;f.linearAdSlotHeight=0;f.nonLinearAdSlotWidth=0;f.nonLinearAdSlotHeight=0;f.tagForChildDirectedContent=!1;f.Ri=!1;f.mh=!0;f.youTubeVideoAdStartDelay=0;function fW(a,b){yV.call(this,a,b)}w(fW,yV);fW.prototype.k=function(a){var b=new J(this.g.adTagUrl);z(a.Ma(),function(c){ya(a.get(c))?b.b.remove(c):K(b,c,a.get(c))});return b};fW.prototype.A=function(){var a=new Cd;a.set("sdkv",BV(this));return a};function gW(a,b){yV.call(this,a,b)}w(gW,yV);gW.prototype.A=function(){return null};gW.prototype.k=function(){var a=new WS(this.g.adTagUrl),b=BV(this);b&&$S(a,"dc_sdkv",[b]);(b=this.o().toString(16))&&$S(a,"dc_sdki",[b]);(b=this.j.B)&&$S(a,"dc_submodel",[b]);b=new Cd;zV(this,b);Ed(b.g,"js")&&$S(a,"dc_js",[b.get("js")]);Ed(b.g,"msid")&&$S(a,"dc_msid",[b.get("msid")]);return a};function hW(a){yV.call(this,a,null)}w(hW,yV);hW.prototype.k=function(a){return new J(a.get("adTagUrl"))};hW.prototype.A=function(){var a=new Cd;a.set("adTagUrl",this.g.adTagUrl);a.set("adsResponse",this.g.adsResponse);return a};function iW(a,b){yV.call(this,a,b)}w(iW,yV);iW.prototype.k=function(a){var b=new J(this.g.adTagUrl);z(a.Ma(),function(c){ya(a.get(c))?b.b.remove(c):K(b,c,a.get(c))});return b};
iW.prototype.A=function(){var a=new Cd;a.set("sdkv",BV(this));a.set("sdki",this.o().toString(16));a.set("correlator",this.j.I);a.set("scor",this.j.b);zV(this,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.Gb||"http"!=c.Gb&&"https"!=c.Gb?c=!1:(c=c.Bb,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=jW(b),a.set("ciu_szs",b));a.set("impl","");return a};function jW(a){var b=[];z(a,function(a){0<a.length&&b.push(A(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function kW(a,b,c){yV.call(this,a,b);this.C=x(a.youTubeAdType);a=new CV;a.b=SV(a.b,this.g.youTubeAdType);a.He=a.b.join("_");a.sc=VV(a.sc,this.g.youTubeExperimentIds);this.b=a;this.B=c;x(this.b.sc)||(c=this.b.sc.split(","),TS(RS(),c))}w(kW,iW);kW.prototype.k=function(a){a=kW.G.k.call(this,a);this.C||lW(this,a);return a};function mW(a){var b=NV(a.g,a.b,a.B);b.set("sdkv",BV(a));b.set("sdki",a.o().toString(16));return b}
function lW(a,b){var c=mW(a),d=A(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});te(b,"afvparams",[Ba(d.join("&"))])};function nW(a,b,c){yV.call(this,a,b);this.C=x(a.youTubeAdType);a=new CV;a.b=SV(a.b,this.g.youTubeAdType);a.He=a.b.join("_");a.sc=VV(a.sc,this.g.youTubeExperimentIds);this.b=a;this.B=c;x(this.b.sc)||(c=this.b.sc.split(","),TS(RS(),c))}w(nW,gW);nW.prototype.k=function(a){a=nW.G.k.call(this,a);this.C||oW(this,a);return a};function pW(a){var b=NV(a.g,a.b,a.B);b.set("sdkv",BV(a));b.set("sdki",a.o().toString(16));return b}
function oW(a,b){var c=pW(a),d=A(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});$S(b,"afvparams",[Ba(d.join("&"))])};function qW(a,b){return!eT(a)&&!dT(a)||x(a.youTubeAdType)?eT(a)?new gW(a,jQ):cT(a)?new YV(a,jQ,b):dT(a)?new iW(a,jQ):fT(a)?new fW(a,jQ):new hW(a):eT(a)?new nW(a,jQ,b):new kW(a,jQ,b)};function rW(a){a=hb(a,function(a){return 0<MT(a)});Bb(a,function(a,c){return MT(a)-MT(c)});return a}function sW(a){return hb(a,function(a){return-1==MT(a)})};function tW(a){this.b=a};function uW(){}function vW(a,b,c,d,e,g){var h=u(function(a){d(a,Error(Zk(a)))},a),k=u(function(a){6==a?wW(this,b,!1,c,h,e,g):h(a)},a);wW(a,b,!0,c,k,e,g)}
function wW(a,b,c,d,e,g,h){var k=new Il;k.O=c;Ll(k,xW(g));var l=new Sk,p=u(function(){l.dispose();k.dispose()},a);c=u(function(){e(k.g);p()},a);Yk(l,k,"success",function(){var a;try{a=k.b?k.b.responseXML:null}catch(b){a=null}if(null==a){var c=nl(k);try{a=PC(c)}catch(e){t:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=QC())){a.appendChild(a.createNode(1,"parsererror",""));
break t}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);Yk(l,k,["error","timeout"],c,a);var r;"POST"==h&&(a=new J(b),r=a.b.toString(),fe(a,""),b=a.toString());k.send(XN(b),h,r)};function yW(a,b,c){var d=null,e=c+b;z(a.k,function(a){var h;if(h=a instanceof pT)0==c&&0==b||a instanceof QU?h=!0:(h=a.Yd(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-a.Yd().height+b-a.Yd().width,"Flash"!=a.getContentType()||FS))if(null==d)d=a,e=h;else if(h==e&&a.b<d.b||h<e)d=a,e=h});GT(a,d)}function zW(a){var b=null;z(a.k,function(a){a instanceof lT&&(null===b||a.b<b.b)&&(b=a)});GT(a,b)};var AW=[202,1009],BW=["[CONTENT_V]","[CPN]","[DISALLOW]","[LACT]"];function CW(a,b,c){var d={};a=new DW(a,n(b)?b:null,n(c)?c:null);EW(d,a);b=a.error;d["[ERRORCODE]"]=1E3>b.b?b.b:900;FW(d);GW(d,a);HW(d,a);b=a.error.getErrorCode();d["[ERROR_MSG]"]=a.error.getMessage();d["[IMA_ERROR]"]=b;d["[INTERNAL_ID]"]="0";a=-1!=fb(AW,b);d["[BLOCKING_ERROR]"]=a?"1":"0";d["[YT_ERROR_CODE]"]=3;return d}
function IW(a,b){var c={},d=new DW(null,a,n(b)?b:null);EW(c,d);FW(c);GW(c,d);HW(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)))}JW(c,d);return c}
function DW(a,b,c){this.error=a;this.b=b;this.display=c}function EW(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.tn():""}}}function FW(a){a["[SDKV]"]="h.0.0.0";a["[EL]"]="adunit";a["[CONN]"]="0";a["[VIEWABILITY]"]={toString:function(){var a=ZQ();return $Q(a,"metric")}};a["[VIS]"]="0";a["[WT]"]={toString:function(){return Date.now()}}}
function GW(a,b){if(null!=b.b&&null!=b.b.j&&null!=b.b.j.Ug&&RO.b){var c=b.b.j.Ug;z(BW,function(b){b in c&&(a[b]=c[b])})}}
function HW(a,b){if(null!=b.b){a["[AD_ID]"]=JT(b.b);a["[AD_SYS]"]=MQ(b.b);a["[AD_V]"]={toString:function(){return null!=b.display?DP(b.display.tn()):""}};a["[FORMAT_NAMESPACE]"]="0";a["[FORMAT_TYPE]"]="0";a["[FORMAT_SUBTYPE]"]="0";var c=[];try{c=yT(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 JW(a,b){null!=b.b&&(a["[AD_LEN]"]={toString:function(){var a=TT(b.b);return 0>a?"-1":Math.round(1E3*a).toString()}},a["[VOL]"]={toString:function(){return null!=b.display?Math.round(100*b.display.$d()).toString():""}})};function KW(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}KW.prototype.Cd=function(){return null!=this.b&&this.b.Cd()?!0:0<this.g.length&&this.j<this.g.length-1};function LW(a,b,c){null!=a.b?MW(a,b,c):a.Cd()?NW(a,b,u(function(a){this.Cd()&&301!=a.getErrorCode()?LW(this,b,c):c(a)},a)):c(new HN("adLoadError","The ad source contains no more ads.",1005))}
KW.prototype.I=function(a,b){return this.A?0<a.length?a:b:xb(b,0,1)};KW.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;OT(a)&&!a.C?NT(a,"nonlinear")?yW(a,d,e):zW(a):NT(a,"linear")?zW(a):NT(a,"nonlinear")&&yW(a,d,e);d=null!=a.getSelectedCreative()}d?(this.C++,b(a)):(b=E(a.k)?LO(wO):xT(a)?LO(rO):LO(zO),d=CW(b,a),bO(a.F,d),c(b))};
KW.prototype.D=function(a,b,c){var d=this.B.clone();d.adsResponse="";d.adTagUrl=a.ka;OW(this,a,d,b,c)};function PW(a,b,c,d){var e=a.B.clone();e.adsResponse="";e.adTagUrl=b.la;OW(a,b,e,c,d)}
function OW(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 KW){var c=this.A&&b.ca,g=b.qb,p;for(p in a.g){var r=a.g[p],t=b;if(!RO.b&&t&&OT(r)){var y={loc:document.URL,ref:document.referrer,skippable:zT(r)};try{bP(aP.getInstance(),23,y,!0)}catch(D){}}r.b=t}a.A=c;a.g=a.I(a.o,a.F);a.j=-1;a.M=g;d(a)}else a instanceof tW?e(new HN("adLoadError","Ad source cannot contain playlist response.",2)):e(new HN("adLoadError","Unknown ad source.",
2))},a),e)}function QW(a){var b=0;for(a=a.b;null!=a;)a=a.b,b++;return b}function MW(a,b,c){a.b.Cd()?LW(a.b,u(function(a){this.k(a,b,u(function(a){this.Cd()?LW(this,b,c):c(a)},this))},a),u(function(a){RW(this.g[this.j],a);this.b=null;301==a.getErrorCode()?c(a):this.Cd()?LW(this,b,c):c(a)},a)):(0==a.b.C&&RW(a.g[a.j],LO(HO)),a.b=null,LW(a,b,c))}function RW(a,b){1012==b.getErrorCode()&&(b=LO(yO));var c=CW(b,a);bO(a.F,c)}
function NW(a,b,c){a.j++;var d=a.g[a.j];d.C||d.O?d.O?PW(a,d,u(function(a){this.b=a;LW(this,b,c)},a),u(function(a){a=SW(a);RW(d,a);c(a)},a)):4<=QW(d)?(a=LO(AO,null,"4"),RW(d,a),c(a)):a.M?a.D(d,u(function(a){this.b=a;LW(this,b,c)},a),u(function(a){a=SW(a);RW(d,a);c(a)},a)):c(LO(GO)):a.k(d,b,c)}function SW(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=LO(HO)}return a};function TW(a,b,c,d){KW.call(this,[],a,b,c);this.L=d}w(TW,KW);TW.prototype.Cd=function(){return null!=this.b&&this.b.Cd()?!0:0<this.g.length&&this.j<this.g.length-1&&0==this.C};TW.prototype.I=function(a,b){return b};TW.prototype.k=function(a,b,c){var d=-1,d=null==this.b?LT(a):LT(this.g[this.j]);this.L.g=d;TW.G.k.call(this,a,b,c)};TW.prototype.D=function(a,b,c){this.L.g=-1;TW.G.D.call(this,a,b,c)};function UW(a,b,c,d,e){this.k=a;this.o=b;this.j=c;this.b=d;this.kb=e}UW.prototype.g=function(a,b,c){x(a.adsResponse)?dT(a)&&null!=this.b&&!this.b.B?this.b.start(a,u(function(){VW(this,a,b,c)},this)):VW(this,a,b,c):WW(this,a,b,c)};function WW(a,b,c,d){var e;try{e=PC(b.adsResponse)}catch(g){d(LO(oO,g));return}null!=e?XW(a,e,b,c,d):d(LO(oO))}
function VW(a,b,c,d){var e=AV(qW(b,a.j)).toString(),g=b.Ri&&VN(TN,e)?"POST":"GET";vW(a.o,e,u(function(a){XW(this,a,b,c,d)},a),u(function(a,c){var e;e=8==a?LO(vO):5==a||6==a?LO(eO):LO(iO,c);d(e);e="third_party";cT(b)?e="adsense":eT(b)?e="dart":dT(b)&&(e="xfp");e={rt:e,ec:a};bP(aP.getInstance(),18,e,!0)},a),a.kb,g);YW(b)}function YW(a){var b="third_party";cT(a)?b="adsense":eT(a)?b="dart":dT(a)?b="xfp":fT(a)&&(b="dbm");a={rt:b};bP(aP.getInstance(),17,a,!0)}
function XW(a,b,c,d,e){var g;try{var h=xV(b,c);if(!h)throw LO(oO);g=h.j();ZW(a,g,c,d)}catch(k){k instanceof HN?e(k):e(LO(pO,k))}}function ZW(a,b,c,d){var e=b.b;if(null!=e)d(new tW(e));else{var g=b.j;if(null==g)throw LO(tO);z(g,function(a){a.j=c;RO.b&&(a.da=b.g)});e=rW(g);g=sW(g);0<g.length&&0<=LT(g[0])?d(new TW(g,c,a,a.k)):d(new KW(e,g,c,a))}};function $W(a){this.b=a+v()}$W.prototype.reset=function(a){this.b=a+v()};function xW(a){var b=v();a=a.b-b;return 0<a?a:0};function aX(a,b){this.b=a;this.g=b;RO.k&&ZQ().init()}function bX(a,b,c,d){var e=null;null!=a.b&&(e=new aR(1E3,a.b,a.g));(new UW(a.g,new uW,a.b,e,new $W(8E3))).g(b,u(function(a){a instanceof tW?c(a):cX(this,a,c,d)},a),d)}function cX(a,b,c,d){var e=[],g=u(function(a,b){a.Cd()?LW(a,u(function(b){e.push(b);g(a,null)},this),u(function(b){301==b.getErrorCode()?d(LO(vO)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=LO(lO)),1012==b.getErrorCode()&&(b=LO(yO)),d(b))},a);g(b,null)};function dX(a){this.g=a;this.b=new pm}function eX(a,b,c,d){var e=u(function(a){c(a);sm(this.b);fX(this)},a),g=u(function(a){d(a);sm(this.b);fX(this)},a);rm(a.b,u(function(){bX(this.g,b,e,g)},a));fX(a)}function fX(a){1==a.b.Na()?(a=a.b,qm(a),a=db(a.b),null!=a&&a()):a.b.Na()};function gX(a,b,c){U.call(this);this.g=new dX(new aX(b,c));this.b=b;this.ze=!0}w(gX,U);function hX(a,b,c){if(a.ze){var d=null!=c?c:{};eX(a.g,b,u(function(a){iX(this,a,d)},a),u(function(a){jX(this,a,d)},a))}}function kX(a,b,c){if(!a.ze){var d=null!=c?c:{};eX(a.g,b,u(function(a){iX(this,a,d)},a),u(function(a){jX(this,a,d)},a))}}
function iX(a,b,c){if(a.ze)b instanceof tW?(b=new lX(b.b,a),b.D=a.b,a.S(new mX(b,c))):(b=nX(b),b.D=a.b,null!=b?a.S(new mX(b,c)):jX(a,LO(rO,null),c));else if(b instanceof tW)jX(a,LO(dO,null,"Unsupported ad format."),c);else{var d=new WQ("adsLoaderSdkAdLoaded");d.o=b;d.k=c;a.S(d)}}function jX(a,b,c){a.ze?("always"==RO.j&&null!=a.b&&GQ(a.b,DQ()),a.S(new IN(b,c))):(c=new WQ("adsLoaderSdkAdError"),c.j=b,a.S(c))};var oX={NORMAL:"normal",FULLSCREEN:"fullscreen"};function pX(){return'<div class="close-padding"><div class="close-button"></div></div>'}function qX(a){return'<div class="recall-button '+(a.YC?"auto-hide":"")+'"></div>'}function rX(a){return'<a target="_blank" href="'+kU(a.url)+'" class="attribution-button">'+kU(a.text)+"</a>"};function sX(a,b){this.A=a;this.b=I("div",{"class":"controls"});this.O=b||ca;this.Qc=new Sk(this)}w(sX,Hh);f=sX.prototype;f.zd=!1;f.Ir=1E3;f.qr=30;f.Uq=45E3;f.Vq=15E3;f.vs=!1;function tX(a){var b=I("div",{"class":"container"});ux(b,"opacity 0.4s");a.Qc.listen(b,"mouseover",a.QB);a.Qc.listen(b,"mouseout",a.RB);b.appendChild(a.b);return b}f.Hj=function(){var a=tX(this);this.b.appendChild(this.A);this.display(this.A);this.play();return a};f.K=function(){null==this.I&&(this.I=this.Hj());return this.I};
f.play=function(){null==this.g&&(this.g=Nk(function(){this.zd||(this.hide(),this.vs=!0);this.g=null},this.vs?this.Vq:this.Uq,this))};f.stop=function(){null!=this.g&&(Ok(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(){ag(this.K(),1);null!=this.j&&(Ok(this.j),this.j=null)};f.hide=function(){ag(this.K(),this.qr/100);null==this.j&&(this.j=Nk(function(){this.O();this.j=null},400,this))};
f.QB=function(){this.show();this.zd=!0;this.B=Nk(function(){this.zd&&this.stop();this.B=null},this.Ir,this)};f.RB=function(){null!=this.B&&(Ok(this.B),this.B=null);this.zd&&this.play();this.zd=!1};f.J=function(){sX.G.J.call(this);this.stop();Jh(this.Qc)};function uX(a,b){this.F=a;this.N=new Cd;this.L=15E3;this.C=I("span");sX.call(this,a[0],b);this.b.appendChild(this.C)}w(uX,sX);
uX.prototype.Hj=function(){var a=tX(this);MU(a,"container-rotator");this.D=I("div");this.b.appendChild(this.D);z(this.F,function(a,c){MU(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){vX(this,a.target)});this.N.set(e.id,a);this.C.appendChild(e)},this);vX(this,gd(this.C));this.play();return a};
uX.prototype.play=function(){null==this.k&&(this.k=new Lk(this.L),this.Qc.listen(this.k,"tick",this.P));uX.G.play.call(this);this.k.start()};uX.prototype.stop=function(){null!=this.k&&this.k.stop();uX.G.stop.call(this)};uX.prototype.P=function(){var a=this.o;vX(this,(void 0!=a.nextElementSibling?a.nextElementSibling:hd(a.nextSibling))||gd(this.o.parentNode))};function vX(a,b){a.o&&NU(a.o,"container-active");MU(b,"container-active");var c=a.N.get(b.id);ed(c,a.D);a.o=b;a.D=c;a.display(c)};function wX(a,b){sX.call(this,a,b)}w(wX,sX);sX.prototype.M=!1;wX.prototype.Hj=function(){var a=tX(this);MU(a,"container-slider");this.b.appendChild(this.A);this.Qc.listen(this.b,"click",this.k);this.play();return a};wX.prototype.show=function(){this.display(this.A);xX(this);NU(this.K(),"hidden")};wX.prototype.hide=function(){xX(this);MU(this.K(),"hidden")};wX.prototype.k=function(a){0!=Mf(this.b).y&&(a.preventDefault(),a.stopPropagation())};function xX(a){a.M?MU(a.K(),"animated"):a.M=!0};function yX(a,b){sX.call(this,a[0],b);this.k=a;MU(this.b,"container-stack")}w(yX,sX);yX.prototype.hide=ca;yX.prototype.Hj=function(){var a=tX(this);z(this.k,function(a){MU(a,"container-highlight");this.b.appendChild(a);this.display(a)},this);this.play();return a};function zX(a){U.call(this);this.B=a;this.o=null;this.I="normal";this.k=this.volume=null;this.g=new eP;this.ca=!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(zX,U);function $(a){if(null!=a.o){if(zT(a.o)&&!$O())throw NO(jO,null,"skippablevideo");return a.o}throw NO(gO,null,"An ad has not been selected.");}f=zX.prototype;f.Eg=function(){var a=fb(this.B,this.o);-1!=a&&++a<this.B.length?this.o=this.B[a]:this.o=null};
f.cs=function(){if(null==this.o){if(E(this.B))throw NO(rO);this.o=this.B[0];if(null==this.o.getSelectedCreative())throw LO(rO);}};f.na=function(a){null!=this.o?this.S(new KN(a,$(this))):this.S(new KN(a,null))};function AX(a){null==a.j&&(a.j=new Sk(a));return a.j}function BX(a,b){if(null!=a.D&&(Wk(AX(a),a.D,"companion_display_error",function(){}),GQ(a.D,b),!a.D.Js()))throw NO(hO);}f.destroy=function(){this.dispose()};
f.J=function(){null!=this.o&&(GT(this.o,null),this.o=null);Jh(this.j);this.j=null;Jh(this.D);this.D=null;this.N=!1;zX.G.J.call(this)};f.Ms=function(){return[]};f.getCurrentAd=function(){return this.B[0]};f.init=function(a){CX(this);this.zj(a);this.ca=!0;this.Nj()};f.Nj=function(){this.na("loaded")};f.sendImpressionUrls=function(a){null!=this.o&&RO.b&&bO(ET($(this)),a)};
f.Zc=function(a,b,c){if(!this.N){if(null==a)throw NO(kO,null,"displayContainer");if(null!=c){var d=new Yj(Sb(this.g));if(!Kd(Sb(c),d.contains,d))throw NO(kO,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.g;if(null==c.Of||0>=c.Of)c.Of=-1;null==c.ih&&(c.ih=[]);DX(c.ih);ja(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);cc(d,c)}this.content=b;this.k=a;this.cs();this.N=!0}};f.getRemainingTime=function(){return-1};f.Ch=ca;f.pause=function(){};f.resume=function(){};
f.skip=function(){};f.start=function(){CX(this);if(!this.ca)throw LO(gO,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&PO(this,kO,null,"volume",String(a));this.volume=a};f.zj=function(a){if(!Tb(oX,a))throw NO(kO,null,"view mode",a);this.I=a};f.setMediaUrl=function(){};function CX(a){if(!a.N)throw NO(gO,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null};
function DX(a){if(!ha(a))throw NO(gO,null,"adsRenderingSettings.mimeTypes should be an array");var b=tb(Rb(jP),Rb(fP));z(a,function(a){if(!C(b,a))throw NO(gO,null,"Invalid or unsuppoted mime type "+a);})};function EX(a){zX.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(EX,zX);f=EX.prototype;f.start=function(){EX.G.start.call(this);this.k.ji();this.A=this.k.Nf();if(null!=this.A){bd(this.A);var a=this.yn();this.A.appendChild(a);FX(this);this.na("start")}};f.Ch=function(){EX.G.Ch.call(this);FX(this)};f.getSelectedCreative=function(){return $(this).getSelectedCreative()};
f.J=function(){Jh(this.b);this.k=this.b=null;null!=this.A&&(bd(this.A),this.A=null);EX.G.J.call(this)};f.yn=function(){var a=$(this).getSelectedCreative();if(null==a)throw a=NO(rO),GX(this,a),a;qT(a,AX(this));rT(a,dk);try{BX(this,$(this))}catch(b){throw GX(this,b),b;}var c=IW($(this));bO(ET($(this)),c);this.na("impression");return HX(this,[a.od()])};f.Nq=function(a,b){return new sX(a[0],b)};
function HX(a,b){null!=a.b&&a.b.stop();a.b=a.Nq(b,u(a.Mq,a));var c=a.b.K();if(RO.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)}PU(c,"autoalign",a.g.wq);PU(c,"viewmode-fullscreen","fullscreen"==a.I);c.appendChild(a.O);AX(a).listen(c,"click",dk);(null!=a.o&&OT($(a))||a.g.useStyledNonLinearAds)&&a.Wl(a.b.b);return c}f.Wl=function(a){var b=AX(this);this.L=fU(qX,{YC:this.P});b.listen(this.L,"click",this.ZC);var c=fU(pX);b.listen(c,"click",this.Cn);a.appendChild(c)};function FX(a){if(null!=a.b){var b=Yf(a.k.Nf()),c=Yf(gd(a.b.b));if(c.width>b.width||c.height>b.height)throw b=NO(mO,null),GX(a,b),a.stop(),b;}}
function GX(a,b){var c=CW(b,$(a)),d=DT($(a));bO(d,c)}f.Cn=function(){this.Mq();this.na("userClose")};f.Mq=function(){this.b.stop();var a=this.getSelectedCreative();null!=a&&tT(a);ed(this.L,this.b.b)};f.ZC=function(a){dk(a);this.b.show();this.b.play();ed(this.b.b,this.L);Nk(function(){cg(this.O,!1)},500,this);cg(this.O,!0)};function IX(a){EX.call(this,a);this.C=!1;this.F=this.T=null;!E(a)&&null!=a[0].j&&(this.T=a[0].j,a=ve(new J(this.T.adTagUrl),"channel"),this.wh=null!=a&&-1<a.split("+").indexOf("afitc"))&&(this.P=!0)}w(IX,EX);f=IX.prototype;f.wh=!1;
f.Nq=function(a,b){if(this.C||null==b)b=ca;var c;this.wh?c=new wX(a[0]):RO.b&&this.C?c=new sX(a[0],b):"fullscreen"==this.I?c=new yX(a):1<a.length?(c=new uX(a),c.L=15E3):c=new sX(a[0],b);c.Ir=100;this.C&&(c.qr=30);c.Uq=this.wh?1E4:45E3;c.Vq=6E3;PU(c.b,"scalable",this.C);PU(c.K(),"afi",this.wh);PU(c.K(),"yt-text-overlay",RO.b&&this.C);return c};
f.oC=function(a){var b=a.getSelectedCreative();null!=b?(null==this.M&&(this.M=a.getExtension("AdSense").A),sT(b,ra(this.BC,a,b)),rT(b,ra(this.AC,a,b)),b.ka=!1,"Text"==b.getContentType()&&(this.C=!0),this.F.push(b)):(b=LO(rO),b=CW(b,a),bO(DT(a),b))};f.Zc=function(a,b,c){IX.G.Zc.call(this,a,b,c);this.g.wq=!0;null!=this.B[0]&&0<NQ(this.B[0]).length?BX(this,this.B[0]):this.na("companionBackfill")};
f.yn=function(){null==this.F&&(this.F=[],z(this.B,this.oC,this));if(0==this.F.length)throw NO(rO);var a=[];z(this.F,function(b){qT(b,AX(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.Qr=!0);a.push(b.od());wT(b,this.M.j)},this);if(0==a.length)throw NO(rO);return HX(this,a)};f.Cn=function(a){z(this.F,function(a){var c=IW(a.getAd());bO(a.En("close"),c)},this);IX.G.Cn.call(this,a)};
f.Wl=function(a){IX.G.Wl.call(this,a);var b=this.B[0].getExtension("AdSense"),c=b.k,b=b.o,c=fU(rX,{text:null!=c?c:this.M.b,url:null!=b?b:this.M.g});a.appendChild(c)};f.BC=function(a,b){var c=IW(a);bO(ET(a),c);bO(b.En("creativeview"),c);sT(b,ca)};
f.AC=function(a,b,c){c=Uf(c);a=a.getExtension("AdSense");a=new J(a.g);var d=b.td();isNaN(d)&&(d=Xf(b.od()).width);var e=b.getHeight();isNaN(e)&&(e=Xf(b.od()).height);b=RS();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.I,"sdkv=h.0.0.0","eids="+VS(b)];ZN(a,"elementclick",b);this.na("click")};f.zj=function(a){this.I!=a&&(IX.G.zj.call(this,a),null!=this.A&&(bd(this.A),a=this.yn(),this.A.appendChild(a)),this.na("expandedChanged"))};function JX(a){KN.call(this,"adMetadata",a)}w(JX,KN);function KX(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));LX(new Il,a,b,d)}function MX(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));LX(new Il,a,b,d)}
function LX(a,b,c,d){NX(b);Ll(a,2E3);var e=new Sk(a);Wk(e,a,"success",function(a){a=a.target;var b;b=a.b?nf(a.b.responseText):void 0;c(b||{});e.dispose();a.dispose()});Wk(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.g&&(b=Error(Zk(a.g)));d(b);e.dispose();a.dispose()});a.send(b)}function NX(a){K(a,"alt","json");K(a,"v","2")};function OX(a){PX(this,a)}function PX(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&ib(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 QX(a){RX(this,a)}QX.prototype.b=!0;function RX(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&ib(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=B(c.yt$accessControl,function(a){return"list"==a.action}))&&(a.b="denied"!=c.permission)}}};function SX(a,b,c,d,e){Vv.call(this);this.g=a;this.o=b;this.A=c;this.j=d;this.B=ha(e)?e:[e]}w(SX,Vv);f=SX.prototype;f.play=function(){if(1==this.b)return!1;this.Kc();this.Jb("play");this.startTime=v();this.b=1;if(wx())return Ff(this.g,this.A),this.k=Nk(this.$y,void 0,this),!0;this.Al(!1);return!1};f.$y=function(){ux(this.g,this.B);Ff(this.g,this.j);this.k=Nk(u(this.Al,this,!1),1E3*this.o)};f.stop=function(){1==this.b&&this.Al(!0)};
f.Al=function(a){vx(this.g,"");Ok(this.k);Ff(this.g,this.j);this.endTime=v();this.b=0;if(a)this.onStop();else this.vb();this.Dd()};f.J=function(){this.stop();SX.G.J.call(this)};f.pause=function(){};function TX(a,b,c,d){return new SX(a,.5,{opacity:c},{opacity:d},{qp:"opacity",duration:.5,timing:b,pp:0})};function UX(a,b){U.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 Sk(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.lu),this.o.listen(b,"touchmove",this.ku),this.o.listen(b,"touchend",this.ju));this.k=fU(VX);this.N=H("videoAdUiPreSkipButton",this.k);this.F=H("videoAdUiPreSkipText",this.N);this.P=H("videoAdUiPreSkipThumbnail",this.N);ld(this.F,WX({ro:XX(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=Yc("img");d.setAttribute("src",c);MU(d,"videoAdUiPreSkipThumbnailImage");this.P.appendChild(d)}else MU(this.F,"videoAdUiPreSkipTextOnly");this.j.j?c="\u00ab Swipe to Skip":(c="",d=ta("Skip Ad \u00bb"),c=c+d,d=new RegExp(Ra("\u00bb"),""),c=c.replace(d,""),c=Aa(c));this.b=fU(YX,{nu:c});cg(this.k,!1);b.appendChild(this.k);cg(this.b,!1);ag(this.b,0);b.appendChild(this.b);this.o.listen(this.b,"click",this.mu)}w(UX,U);
f=UX.prototype;f.J=function(){null!=this.B&&(this.B.dispose(),this.B=null);null!=this.C&&(this.C.dispose(),this.C=null);ZX(this);null!=this.k&&(dd(this.k),this.k=null);null!=this.b&&(dd(this.b),this.b=null);this.o.dispose();this.o=null;this.I=!1;UX.G.J.call(this)};
f.update=function(a,b){this.M=b;if(!(0>=this.M||null==this.j.b||0>ER(this.j.b))){var c=ER(this.j.b);c>=this.M||3==this.g||(0>a?this.g=1:a<=c?(2!=this.g&&($X(this,0),TX(this.k,"ease-out",0,1).play(),cg(this.k,!0)),this.g=2):(3!=this.g&&(cg(this.b,!0),this.C=new SX(this.k,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{qp:"opacity",duration:.5,timing:"ease-out",pp:0}),this.B=TX(this.b,"ease-out",0,1),this.C.play(),this.B.play(),this.o.listen(id(this.b),"mouseover",this.bw),this.o.listen(id(this.b),
"mouseout",this.rp),this.rp()),this.g=3,this.S("skipshown")))}2==this.g&&$X(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.lu=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.ku=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.ju=function(){this.O=!1;if(3==this.g){var a=Xf(id(this.b));if(parseInt(this.b.style.right,10)+4*this.L>.25*a.width&&0<this.L){cg(this.b,!1);this.D=!0;this.S("skip");return}}this.b.style.right=0};function XX(a){return null!=a.j.b&&-1!=ER(a.j.b)?ER(a.j.b):-1}function $X(a,b){var c=XX(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+xR(c));c=WX({ro:d});ld(a.F,c)}}f.mu=function(a){a.stopPropagation();3!=this.g||this.D||(this.D=!0,this.S("skip"))};
f.rp=function(){null==this.A&&(this.A=Nk(function(){this.I=!0;TX(this.b,"ease-in",1,.5).play();this.A=null},this.I?5E3:15E3,this))};f.bw=function(){ag(this.b,1);ZX(this)};function ZX(a){null!=a.A&&(Ok(a.A),a.A=null)};function aY(a,b,c){U.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 Sk(this);a=this.b.C;c="";var d=ta("Learn More {$suffix}",{suffix:kU("")});this.g=fU(this.b.B,{ii:a,pu:c+d});this.j.listen(this.g,"touchmove",this.su);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.qu);null!=this.C&&this.j.listen(this.C,"click",this.ru);null!=this.L&&this.j.listen(this.L,"click",this.tu);null!=this.N&&this.j.listen(this.N,"click",this.pk);null!=this.D&&this.j.listen(this.D,"click",this.vu);null!=this.o&&this.j.listen(this.o,"click",this.wu);
null!=this.I&&this.j.listen(this.g,"mouseover",this.uu);null!=this.b.b&&(this.k=new UX(this.b,this.g),this.k.ci(this));400>=(parseInt(If(b,"width"),10)||b.width)&&MU(this.g,"videoAdUi-mobile");this.b.j&&MU(this.g,"videoAdUi-swipeable");cg(this.g,!1);b.appendChild(this.g);this.b.g||(this.A=I("div",{style:"width:100%;height:100%"}),this.g.appendChild(this.A));bY(this)}w(aY,U);f=aY.prototype;f.show=function(){null!=this.g&&cg(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&&(dd(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;aY.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=xR(b-a);ld(this.F,c+(" ("+d+")"));cg(this.F,this.b.k&&this.O)}null!=this.M&&Wf(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&&MU(this.I,"videoAdUiTopBarNoFade")}};
function bY(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&&(cg(a.o,b),null!=a.B&&cg(a.B,c),null!=a.C&&cg(a.C,d),null!=a.L&&cg(a.L,e),null!=a.D&&(cg(a.D,g),g&&a.S("videoShareShown")),null!=a.I&&cg(a.I,b||c||d||e));null!=a.F&&cg(a.F,a.b.k&&a.O);null!=a.M&&(cg(a.M,h),h&&(k=If(a.M,"height")));null!=a.P&&Ff(a.P,"bottom",k);null!=a.N&&cg(a.N,a.b.g)}f.qu=function(){this.S("videoAuthorIconClicked")};f.ru=function(){this.S("videoAuthorClicked")};
f.tu=function(){this.S("videoLearnMoreClicked")};f.vu=function(){this.S("videoShareClicked")};f.wu=function(){this.S("videoTitleClicked")};f.su=function(a){a.preventDefault()};f.pk=function(){this.S("click")};f.uu=function(){MU(this.I,"videoAdUiTopBarTransitions")};function cY(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">'+kU(a.pu)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">Learn More<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttribution"',c;c=BU(a.ii);
c=kU(c);return b+c+">"+kU(a.ii)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}function dY(a){var b=BU(a.ii);return'<div class="videoAdUi videoAdUi-gvn"><div class="videoAdUiTopBar"><div class="videoAdUiAttribution videoAdUiAttribution-gvn"'+kU(b)+">"+kU(a.ii)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}
function VX(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail"></div></div></div>'}function WX(a){var b="";a=ta("You can skip to video in {$xSeconds}",{xSeconds:kU(a.ro)});return b+a}function YX(a){return'<div class="videoAdUiSkipContainer"><div class="videoAdUiSkipButton">'+kU(a.nu)+'<div class="videoAdUiSkipIcon"></div></div></div>'};function eY(){var a="",b=ta("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 fY(a,b,c,d,e,g,h,k){var l=new eY;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=cY;l.U=FP(b,null!=c,d.baseYouTubeUrl);l.j=gk&&US(0);l.O=null!=e&&(null!=d?d.showContentThumbnail:!0);return l};function gY(){this.b=new FR;this.o=new Cd;this.g=[];this.A=!1;this.j={};this.k=-1}w(gY,Hh);gY.prototype.J=function(){this.g=[];this.j={}};function hY(a,b){a.j=b}function iY(a,b){var c=$Q(ZQ(),b.type);"impression"==b.type&&!a.A&&null!=a.g&&0<a.g.length&&(jY(a,a.g),a.A=!0);var d;t:switch(d=b.type,d){case "click":d=!0;break t;default:d=!Ed(a.o.g,d)}d&&(d=NR(a.b,b.type),0<d.length&&(jY(a,d,c),a.o.set(b.type,!0)))}function jY(a,b,c){z(b,function(a){$N(a,this.j,c)},a)};function kY(a){T.call(this,a)}w(kY,T);function lY(a){U.call(this);this.I=a;this.C=new Cd;this.B=-1;this.D=!1}w(lY,U);function mY(a){this.g=!1;this.b=a.Ii();this.volume=a.$d()}mY.prototype.muted=function(a,b){return!this.b&&a||0<this.volume&&0==b};f=lY.prototype;f.J=function(){nY(this);lY.G.J.call(this)};function nY(a){null!=a.g&&a.g.dispose();null!=a.b&&a.b.Df();null!=a.o&&a.o.dispose();a.o=null;null!=a.A&&a.A.dispose();a.A=null;a.C.clear();a.B=-1;a.D=!1}
function oY(a,b,c){c&&null!=a.C.get(b)||(a.C.set(b,!0),iY(a.I,new T(b)),a.S(b))}f.lw=function(){var a=this.b.sd();if(-1!=a){this.b.ph(.25*a)&&oY(this,"firstquartile",!0);this.b.ph(.5*a)&&oY(this,"midpoint",!0);this.b.ph(.75*a)&&oY(this,"thirdquartile",!0);var b=this.I,c=this.b.getCurrentTime();0>b.k&&(MR(b.b,a),b.k=0);for(var a=KR(b.b,"progress"),d=b.k;d<a.length;d++){var e=a[d];if(ER(e.j)>c)break;b.k=d+1;$N(e.b,b.j)}}pY(this)};
function pY(a){0>a.B||a.D||!a.b.ph(a.B)&&!a.b.Fe()||(a.D=!0,oY(a,"engagedview",!0),a.S(new kY("viewCount")))}f.kw=function(){oY(this,"impression",!0);oY(this,"creativeview",!0);null!=this.F||null!=this.j||this.g.listen(this.b,"click",this.vx);null!=this.F&&(this.o=new pP,this.g.listen(this.o,"click",this.aq,!1),qP(this.o,this.F));null!=this.j&&(this.A=new pP,this.g.listen(this.A,"click",this.aq,!1),qP(this.A,this.j));oY(this,"start",!0);(this.b.Ii()||0==this.b.$d())&&oY(this,"mute",!1)};
f.mw=function(){var a=this.b.Ii(),b=this.b.$d(),c=this.k;c.b&&!a||!a&&0==c.volume&&0<b?oY(this,"unmute",!1):this.k.muted(a,b)&&oY(this,"mute",!1);this.k.b=a;this.k.volume=b};f.iw=function(){this.b.Fe()?(pY(this),oY(this,"complete",!0)):this.b.ah()&&!this.b.Tq()&&(this.k.g=!0,oY(this,"pause",!1))};f.jw=function(){this.k.g&&(this.k.g=!1,oY(this,"resume",!1))};f.ew=function(){pY(this);oY(this,"complete",!0)};f.aq=function(){oY(this,"click",!1)};f.fw=function(){oY(this,"error",!1)};
f.hw=function(){oY(this,"mediaLoadTimeout",!1)};f.rw=function(){oY(this,"skipshown",!0)};f.tw=function(){oY(this,"videoAuthorIconClicked",!1)};f.sw=function(){oY(this,"videoAuthorClicked",!1)};f.uw=function(){oY(this,"videoLearnMoreClicked",!1)};f.ww=function(){oY(this,"videoShareClicked",!1)};f.xw=function(){oY(this,"videoShareShown",!0)};f.zw=function(){oY(this,"videoTitleClicked",!0)};f.vp=function(){oY(this,"skip",!0)};f.qw=function(){oY(this,"skip",!0)};f.vx=function(){oY(this,"click",!1)};
f.gw=function(){oY(this,"fullscreen",!1)};f.ow=function(){oY(this,"exitfullscreen",!1)};function qY(a){zX.call(this,a);this.M=this.A=null;this.F=new gY;this.C=new lY(this.F);this.P=this.T=this.L=!1;this.O=1}w(qY,zX);f=qY.prototype;f.J=function(){rY(this);var a=!1;null!=this.k&&(a=this.k.Zm(),this.k.hide(),this.k=null);this.L&&(this.L=!1,this.b.ah()||this.b.Fe()||this.b.pause(),!mc&&!wc||a||(this.b.Kf(.001),this.b.Bg("","")),this.na("contentResumeRequested"),this.na("allAdsCompleted"),mc&&this.b.$i()&&!a&&this.b.Ym());qY.G.J.call(this)};
function rY(a){Jh(a.A);a.A=null;a.M=null;Jh(a.C);Jh(a.F);a.U=null}function sY(a){a.Eg();null!=a.o?a.start():a.stop()}f.Eg=function(){rY(this);qY.G.Eg.call(this);null!=this.o&&(this.F=new gY,this.C=new lY(this.F))};
f.Bw=function(a,b,c){this.T||(this.T=!0,this.na("contentPauseRequested"));this.L=!0;var d=this.C,e=this.b,g=this.U,h=this.A;nY(d);d.b=e;d.j=h||null;d.b.Ei();d.k=new mY(d.b);d.F=g||null;d.g=new Sk(d);d.g.listen(d.b,"timeUpdate",d.lw);d.g.listen(d.b,"volumeChange",d.mw);d.g.listen(d.b,"pause",d.iw);d.g.listen(d.b,"play",d.jw);d.g.listen(d.b,"end",d.ew);d.g.listen(d.b,"beginFullscreen",d.gw);d.g.listen(d.b,"endFullscreen",d.ow);d.g.listen(d.b,"skip",d.vp);d.g.listen(d.b,"start",d.kw);d.g.listen(d.b,
"error",d.fw);d.g.listen(d.b,"mediaLoadTimeout",d.hw);null!=d.j&&(d.g.listen(d.j,"videoAuthorIconClicked",d.tw),d.g.listen(d.j,"videoAuthorClicked",d.sw),d.g.listen(d.j,"videoLearnMoreClicked",d.uw),d.g.listen(d.j,"videoTitleClicked",d.zw),d.g.listen(d.j,"videoShareClicked",d.ww),d.g.listen(d.j,"videoShareShown",d.xw),d.g.listen(d.j,"skipshown",d.rw),d.g.listen(d.j,"skip",d.vp),d.g.listen(d.j,"PUBLISHER_INVOKED_SKIP",d.qw));AX(this).listen(this.C,"engagedview",this.ae);AX(this).listen(this.C,"videoAuthorIconClicked",
this.ae);AX(this).listen(this.C,"videoAuthorClicked",this.ae);AX(this).listen(this.C,"videoLearnMoreClicked",this.ae);AX(this).listen(this.C,"videoShareClicked",this.ae);AX(this).listen(this.C,"videoShareShown",this.ae);AX(this).listen(this.C,"videoTitleClicked",this.ae);AX(this).listen(this.b,"timeUpdate",this.yw);AX(this).listen(this.b,"volumeChange",this.dw);this.setVolume(this.O);tY(this,a);uY(this,a);this.k.hi();this.A&&(x(ST(a))?(d=this.A,null!=d.A&&(d.j.Fa(d.A,"click",d.pk),Ff(d.A,"cursor",
"default"))):(d=this.A,null!=d.A&&(d.j.listen(d.A,"click",d.pk),Ff(d.A,"cursor","pointer"))),this.b.zl(vY(this,a)));this.b.Bg(b,c);try{BX(this,a)}catch(k){wY(this,hO,k);return}this.b.play()};function xY(a,b,c,d){b=KR(b.b,c);E(b)||(a[d]=b[0].b)}function yY(a,b,c){b=c.getExtension(b);null!=b&&(xY(a,b,"annotation_click","cta_annotation_clicked"),xY(a,b,"annotation_close","cta_annotation_closed"),xY(a,b,"annotation_start","cta_annotation_shown"))}
function vY(a,b){var c=OT(b)&&!b.C?HT(b):null,d=zT(b)&&!AT(b),e=a.g.uk&&a.M.g,g=yT(b),h={};yY(h,"AdSense",b);yY(h,"dart",b);yY(h,"DFP",b);return new vP(g,c,h,e,d,a.g.loadVideoTimeout,b.j.tagForChildDirectedContent)}function zY(a){var b=0;z(a.B,function(a){AY(a)&&b++},a);var c=1;z(a.B,function(a){var b=a.D;AY(a)&&(b.b=c,b.g=c,c++)},a)}function AY(a){a=a.getSelectedCreative();return null!=a&&a instanceof lT}
function BY(a){return ib(a.B,function(a){a=CY(a);return ib(a,function(a){return!x(DP(a.g))})},a)}function CY(a){var b=a.b;if(null!=b&&b.O&&(b=b.k,!E(b)&&b[0]instanceof lT))return b[0].D;b=a.getSelectedCreative();return AY(a)?b.D:[]}function DY(a,b){if(!AY(b))throw NO(CO);var c=b.getSelectedCreative(),d=c.ca;if(!x(d))return new uP("","",0,0,0,0,0,d,"");var e=null!=b&&(RO.b||a.k.cj()),d=CY(b),e=a.b.Rq(d,a.g.Of,a.g.ih||[],e);EY(d,a.g.Of,e);if(null!=e)return c.la=e;throw NO(uO);}
function EY(a,b,c){try{var d=A(a,function(a){return a.ce}),e=A(a,function(a){return a.b}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.ce,selmt:null===c?"":c.b,nat:!1};bP(aP.getInstance(),22,g)}catch(h){}}f.Nj=function(){this.na("loaded");this.S(new JX($(this)))};f.Zc=function(a,b,c){qY.G.Zc.call(this,a,b,c);this.b=this.k.qj(BY(this))};f.skip=function(){null!=this.o&&zT($(this))&&(null!=this.A?this.A.skip():(iY(this.F,new T("skip")),FY(this)))};
f.start=function(){qY.G.start.call(this);zY(this);this.U=this.k.Bl();try{var a=DY(this,$(this));this.P=!1;if(this.g.useVideoAdUi){var b=$(this),c;c=DY(this,b).g;var d=b.getExtension("AdSense"),e=this.g.uk&&((null===c?!1:"modules"==(new J(c)).Pg().toLowerCase())||null!=d&&d.B),g=DP(c),h;if(RO.b)h=fY(e,g,PT(b),this.g,this.g.contentId,!0,this.g.useShareButton,!0);else{var k;if(!VT(b,hP)&&!VT(b,iP)||RT(b)){var l=PT(b),p=fY(e,g,l,this.g,this.g.contentId,!1,!1,!1);p.B=dY;k=p}else{var r=PT(b),t=fY(e,g,r,
this.g,this.g.contentId,!1,!1,!1);t.k=!1;t.I=!1;k=t}h=k}var y=this.M=h,D=this.k.Cl();if(null===D)D=document.body;else{bd(D);var M=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}}");
D.appendChild(M)}var ea=1E3*TT($(this));this.A=new aY(y,D,ea);var jb=y.P;null!=jb&&($(this).P=jb,y.M&&GY(this,jb));this.A.show()}Nk(u(qY.prototype.Bw,this,$(this),a.g,a.b))}catch(bg){HY(this,bg),this.Eg(),null!=this.o?(OO(NO,this,IO,bg,void 0),this.start()):(this.L?OO(NO,this,IO,bg,void 0):(null!=this.D&&GQ(this.D,DQ()),PO(this,IO,bg)),this.stop())}};f.setVolume=function(a){CX(this);this.L?this.b.setVolume(a):this.O=a};
f.setMediaUrl=function(a){CX(this);var b;if(b=null!=this.o)b=null!=$(this).j;b&&(b=$(this),(UN(b.j.location)||RO.b)&&null!=b.getSelectedCreative()&&b.getSelectedCreative()instanceof lT&&b.getSelectedCreative().setMediaUrl(a))};f.pause=function(){CX(this);this.b.pause()};f.resume=function(){CX(this);this.b.play()};f.getRemainingTime=function(){CX(this);var a=this.b.sd(),b=this.b.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.Oz=function(){wY(this,IO,NO(IO,this.b.Zr()))};
f.Pz=function(){wY(this,xO,NO(xO,null,(this.g.loadVideoTimeout/1E3).toString()))};function wY(a,b,c){HY(a,c);a.Eg();null!=a.o?(OO(NO,a,b,c,void 0),a.start()):(PO(a,b,c),a.stop())}function HY(a,b){var c=NO(IO,b),c=CW(c,$(a),a.b),d=DT($(a));bO(d,c)}
function uY(a,b){hY(a.F,IW(b,a.b));var c=b.getSelectedCreative();if(null!=c&&c instanceof lT){IY(a,c.g);z(JN,function(a){var b=jT(c,a);IR(this.F.b,b);JY(this,a)},a);var d=AX(a);Vk(d,a.C,"error",a.Oz,a);Vk(d,a.C,"mediaLoadTimeout",a.Pz,a)}KY(a,b);zT(b)&&(a.C.B=30)}function IY(a,b){z(b.Ma(),function(a){var d=b.get(a);z(d,function(b){JR(this.F.b,a,b);JY(this,a)},this)},a)}function LY(a){if(RO.g){var b=ST($(a));null!=b&&YN(b)}a.na("click")}
function KY(a,b){b.B.forEach(function(a){z(JN,function(b){var e=KR(a.b,b);E(e)||MY(this,b,e)},this)},a)}function MY(a,b,c){z(c,function(a){JR(this.F.b,a.g,a.b)},a);JY(a,b)}function tY(a,b){z(ET(b),function(a){pb(this.F.g,a)},a);JY(a,"impression")}function JY(a,b){Tb(LN,b)&&Vk(AX(a),a.C,b,a.ae,a)}
f.ae=function(a){switch(a.type){case "start":this.na("start");break;case "impression":this.na("impression");break;case "pause":this.na("pause");break;case "resume":this.na("resume");break;case "firstquartile":this.na("firstquartile");break;case "midpoint":this.na("midpoint");break;case "thirdquartile":this.na("thirdquartile");break;case "complete":this.na("complete");sY(this);break;case "click":null!=this.M&&this.M.o?this.b.ah()?this.resume():this.pause():LY(this);break;case "engagedview":this.na("engagedview");
var b=$(this);a=b.P;if(AT(b)&&!RO.b&&!this.k.cj()&&a){var b=this.b.getCurrentTime(),c=this.b.sd(),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));$N(d.toString())}break;case "videoAuthorIconClicked":NY(this);break;case "videoAuthorClicked":NY(this);break;case "videoLearnMoreClicked":this.b.pause();LY(this);break;
case "videoShareClicked":a=$(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),fe(b,c),a=b.toString()),null===a||window.open(a,"_blank","width="+(550).toString()+",height="+(500).toString()),a=OY(this),null!=a&&ZN(a,"sharebuttonclicked"));break;case "videoShareShown":a=OY(this);null!=a&&ZN(a,"sharebuttondisplayed");break;case "videoTitleClicked":a=$(this);b=a.M;null!=b&&(a=FP(b.videoId,null!=PT(a),this.g.baseYouTubeUrl),
null!==a&&(this.b.pause(),YN(a)));break;case "skipshown":this.na("skippableStateChanged");break;case "skip":FY(this)}};function OY(a){var b;b=$(a).getExtension("AdSense");if(!(b=null!=b?new J(b.g):null))t:{a=$(a).getSelectedCreative();if(null!=a&&(a=jT(a,"start"),!E(a))){b=new J(a[0].b);break t}b=null}return b}function FY(a){Nk(function(){this.na("skip");sY(this)},0,a)}f.getSelectedCreative=function(){var a=$(this);return UN(a.j.location)?$(this).getSelectedCreative():null};
f.getMediaUrl=function(){if(null==this.o)return null;var a=$(this);if(!AY(a))throw NO(CO);a=a.getSelectedCreative().D;return E(a)?null:a[0].g};f.yw=function(){var a=this.b.sd(),b=this.b.getCurrentTime();if(null!=this.A&&0<=a&&0<=b){if(!this.P){var c=this.b.sd(),d=TT($(this)),c=Math.abs(c-d);2<c&&(c=NO(BO,null,Number(c).toFixed(2)),c=CW(c,$(this),this.b),d=DT($(this)),bO(d,c));this.P=!0}this.A.update(b,a)}};f.dw=function(){var a=this.b.$d();a!=this.O&&(this.O=a,this.na("volumeChange"),0==a&&this.na("mute"))};
function GY(a,b){null!=a.A&&KX(b,function(a){a=new QX(a);WT($(this))==a.videoId&&(PY(this,a),!x(a.g)&&a.b&&MX(a.g,function(a){a=new OX(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=ta("by {$userDisplayName}",{userDisplayName:""+b.b.T});ld(b.C,(new rU(c+h,void 0)).content)}bY(b);b=this.A;c=a.g;b.b.L=!x(c);null!=b.B&&(h=Yc("img"),h.setAttribute("src",c),MU(h,"videoAdUiAuthorIconImage"),b.B.appendChild(h),null!=b.o&&MU(b.o,"videoAdUiTitleWithAuthorIcon"));bY(b)}$(this).I=
a;this.na("youTubeChannelMetadata");a=$(this);b=a.M;if(RO.b&&OT(a)&&E(NQ(a))&&null!=a.I&&null!=b&&b.b){a=$(this);AX(this).listen(window,"message",this.aw);var b=$(this),c=b.I.b,h=yT(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 RU("1",new G(300,250),"IFrame",null,k.toString());c.qg(b);c.C=!0;a.o=[new ZT(c,[],null)];BX(this,a)}},this))},a)}
f.aw=function(a){var b=a.b;if("companion-setup-complete"==b.data){a=$(this);var c=encodeURIComponent(za(ST(a)))+","+encodeURIComponent(OY(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=ST(a)?210:185}else"pause-video"==b.data&&this.pause()};
function PY(a,b){if(null!=a.A&&b.b){var c=a.A,d=b.title;c.b.A=!x(d);c.b.title=d;Vw.test(Uw(c.b.title,void 0));null!=c.o&&ld(c.o,c.b.title);bY(c);c=a.A;if(null!=c.D){var c=c.D,d="",e=ta("Share");ld(c,d+e)}}$(a).M=b;a.na("youTubeVideoMetadata")}function NY(a){var b;b=$(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(),YN(b))}};function QY(a){this.b=a}f=QY.prototype;f.Bl=function(){return this.b.Bl()};f.Cl=function(){return this.b.Cl()};f.Nf=function(){return this.b.Nf()};f.qj=function(a){return this.b.qj(a)};f.Zm=function(){return this.b.Zm()};f.cj=function(){return this.b.cj()};f.hide=ca;f.hi=ca;f.ji=ca;function RY(a,b,c,d,e,g,h){U.call(this);this.k=this.A=0;this.B=a;this.D=b;this.aa=c;this.o=null;this.N=d;this.da=g;this.L=RO.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;SY(this)}w(RY,U);f=RY.prototype;f.init=function(a,b,c){TY(this,c);null==this.C&&(this.C=new Sk(this),Vk(this.C,this.N,"adsLoaderSdkAdLoaded",this.WC,this),Vk(this.C,this.N,"adsLoaderSdkAdError",this.VC,this));UY(this)};
f.start=function(){this.I=!0;VY(this);0<this.j.length?WY(this):("always"==RO.j&&null!=this.O&&GQ(this.O,DQ()),OO(LO,this,lO,void 0,void 0),0==this.D&&this.S("contentResumeRequested"),XY(this))};f.destroy=function(){null!=this.C&&(this.C.dispose(),this.C=null);this.F.hide();YY(this);RO.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 TY(a,b){null!=b&&(a.T=b);null!=a.b&&(a.b.zj(b),a.b.Ch())}function SY(a){z(a.B,function(a){a=new J(a.j.adTagUrl);var c=ve(a,"max_ad_duration");n(c)||ve(a,"pmxd")})}
f.WC=function(a){RO.j=this.L;var b=a.o;E(b)||(a=a.k,a.b&&z(b,function(a){a.T=!1},this),pb(this.j,new rR(b,a.b,a.g)));this.A++;UY(this)};f.VC=function(a){a=a.j;RO.j=this.L;a.getMessage();OO(LO,this,lO,void 0,void 0);this.A++;UY(this)};function UY(a){a.A<a.B.length&&null!=a.B[a.A]&&!(2<=a.j.length-a.k)?ZY(a):a.P||(a.S("adBreakInitialized"),a.P=!0)}function ZY(a){var b=a.B[a.A];RO.j="on_master_ad";kX(a.N,b.j,b)}
function VY(a){null==a.D||ib(a.j,function(a){return!a.g})||(a.j=hb(a.j,function(a){return!(a.g&&!a.j)}))}
function WY(a){if(a.k<a.j.length){var b=a.j[a.k];YY(a);try{var c=b.b,b=null;if(xT(c[0]))b=new qY(c);else{var d=c[0];if(null!=d&&NT(d,"nonlinear"))b=new EX(c);else throw Error("No valid creative type found.");}b.D=a.O;b.Zc(new QY(a.F),{currentTime:0},a.da);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 Sk(a);var e=a.b;Vk(a.g,e,"adError",a.Su,a);Vk(a.g,e,"click start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),
a.Tu,a);a.g.listen(e,["allAdsCompleted"],ca);Vk(a.g,e,"contentPauseRequested",a.Qu,a);Vk(a.g,e,"contentResumeRequested",a.Ru,a);if($Y(a.b)){var g;g=a.b.getSelectedCreative().qb;g=0<g?g:15;null!=a.o&&a.o.dispose();a.o=new Lk(1E3*g);Yk(a.g,a.o,"tick",a.Uu,a)}a.b.init(a.T);null!=a.M&&a.b.setVolume(a.M);if($Y(a.b))a.S("contentResumeRequested"),a.F.ji(),a.b.start(),null!=a.o&&a.o.start();else{var h=a.b;if(null!=h&&h instanceof qY)a.F.hi(),a.b.start();else throw Error("Unknown ads manager type.");}}catch(k){a.k++,
WY(a)}a.A<a.B.length&&null!=a.B[a.A]&&ZY(a)}else a.S("contentResumeRequested"),XY(a)}function YY(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.Uu=function(){YY(this);XY(this)};f.Su=function(){this.k++;WY(this)};f.Ru=function(){this.k++;WY(this)};f.Qu=function(){this.U||(this.S("contentPauseRequested"),this.U=!0)};function $Y(a){return null!=a&&a instanceof EX}function XY(a){a.I=!1;a.S("allAdsCompleted")}
f.Tu=function(a){aZ(this,a.type,a.getAd());this.S(a)};function aZ(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 bZ(a){T.call(this,a);this.j=null}w(bZ,T);function cZ(a,b,c){U.call(this);this.g=a;this.b=[];this.A=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.C=null!=c&&ja(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.j=null;this.k=!1;dZ(this,b)}w(cZ,U);function eZ(a){this.b=a;this.j=this.g=!1}function fZ(a){null!=a.j&&(a.j.dispose(),a.j=null);a.g.stop();a.k=!1}function gZ(a){if(a.k){var b=B(a.b,function(a){return-1==a.b},a);null!=b&&hZ(a,!0,b)}}
function dZ(a,b){z(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Fb(this.b,new eZ(a),function(a,b){return Ab(a.b,b.b)})},a)}cZ.prototype.o=function(){if(this.k){var a=this.g.currentTime;if(isNaN(a)||0>a)iZ(this);else{var b=jZ(this,a);this.A?z(b,function(a){hZ(this,!0,a)},this):hZ(this,!0,db(b));hZ(this,!1,kZ(this,a))}}};function jZ(a,b){for(var c=[],d=0;d<a.b.length;d++){var e=a.b[d];-1!=e.b&&e.b<=b&&pb(c,e)}return c}
function kZ(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}cZ.prototype.B=function(){iZ(this)};function iZ(a){a.S(new bZ("contentTrackingError"))}function hZ(a,b,c){if(null!=c){if(!c.g){var d=new bZ("requestAds");d.j=c.b;a.S(d);c.g=!0}b&&!c.j&&(b=new bZ("playAds"),b.j=c.b,a.S(b),c.j=!0)}};function lX(a,b){zX.call(this,[]);this.P=a;this.F=new Cd;this.A=this.b=null;this.U=new pm;this.C=null;this.L=b;this.T=this.O=!1;this.M=null;this.aa=this.da=-1}w(lX,zX);f=lX.prototype;
f.Zc=function(a,b,c){null!=this.A&&(fZ(this.A),this.A.dispose(),this.A=null);lX.G.Zc.call(this,a,b,c);c=this.P.b.Ma();b=new eQ(b);this.A=new cZ(b,c,{prefetch:4});z(c,function(b,c){if(isNaN(b))throw LO(fO,null,"timeOffset",b+"");var g=ja(b)&&!isNaN(b)?this.P.b.get(b,[]):[];if(!E(g)){g=new RY(g,b,0==b||-1==b?b:c,this.L,a,this.g,this.D);if(Ed(this.F.g,b))throw LO(qO,null,"Multiple ad breaks cannot share same ad play time.");this.F.set(b,g)}},this);this.M=db(c);ib(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){lX.G.init.call(this,a);null!=this.A&&(lZ(this),this.j=new Sk(this),Vk(this.j,this.A,"requestAds",this,this),Vk(this.j,this.A,"playAds",this,this),Vk(this.j,this.A,"contentTrackingError",this,this),Vk(this.j,this.A,"adBreakReady",this.fv,this),Vk(this.j,this.L,"contentComplete",this.hv,this),this.L.ze=!1,a=this.A,a.k||(null==a.j&&(a.j=new Sk(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=ja(0)&&!isNaN(0)?
this.P.b.get(0,[]):[],E(a)&&this.na("contentResumeRequested"))};f.Nj=function(){this.Ms();this.S(new JX(null))};f.destroy=function(){this.dispose()};f.J=function(){this.L.ze=!0;if(0<this.F.Na()){var a=this.F.Qa();z(a,this.nm,this);this.F.clear()}lZ(this);mZ(this);null!=this.k&&(this.k.hide(),this.k=null);lX.G.J.call(this)};f.start=function(){lX.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){lX.G.setVolume.call(this,a);null!=this.b&&this.b.setVolume(a)};f.Ch=function(){lX.G.Ch.call(this);var a=Qc(window);this.da=a.width;this.aa=a.height;null!=this.b&&TY(this.b,this.I)};f.getRemainingTime=function(){return null!=this.b?this.b.getRemainingTime():-1};f.Ms=function(){return this.P.b.Ma()};f.getCurrentAd=function(){return null!=this.b?this.b.getCurrentAd():null};f.cs=function(){};
f.handleEvent=function(a){"contentTrackingError"!=a.type&&(rm(this.U,a),nZ(this))};function lZ(a){null!=a.j&&(a.j.dispose(),a.j=null);a.O=!1;null!=a.A&&fZ(a.A)}
function nZ(a){if(null==a.C){var b=sm(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 Sk(a)),Vk(a.j,c,"click start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),a.S,a),Vk(a.j,c,"allAdsCompleted",a.er,a),Vk(a.j,c,"contentPauseRequested",a.br,a),Vk(a.j,c,"contentResumeRequested",a.dr,a),Vk(a.j,c,"adBreakInitialized",a.fr,a),c.init(a.da,a.aa,a.I)):"playAds"==b.type?(null!=a.b&&a.b.I&&a.nm(a.b),a.b=c,a.b.setVolume(a.volume),
TY(a.b,a.I),a.b.start()):(a.C=null,nZ(a)):(a.C=null,nZ(a))}}}f.nm=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.er,!1,this),this.j.Fa(a,"contentPauseRequested",this.br,!1,this),this.j.Fa(a,"contentResumeRequested",this.dr,!1,this),this.j.Fa(a,"adBreakInitialized",this.fr,!1,this))};
f.hv=function(){this.O=!0;-1==this.M||oZ(this);gZ(this.A)};f.fv=function(a){a=a.j;-1==a?Nk(function(){oZ(this)},500,this):0==a&&Nk(function(){this.na("contentResumeRequested")},100,this);this.S(new KN("adBreakReady",null))};f.er=function(a){this.nm(a.target);(0==this.F.Qa().length||this.O)&&oZ(this);this.C=null;nZ(this)};function oZ(a){a.T||(a.T=!0,a.L.ze=!0,a.na("allAdsCompleted"),-1==a.M&&mZ(a))}function mZ(a){jQ.clear();null!=a.D&&(a=a.D.qi(),null!=a&&a.F(jQ.b))}
f.br=function(){var a=this.A;a.g.stop();a.k=!1;this.na("contentPauseRequested")};f.dr=function(){this.na("contentResumeRequested");if(!this.O){var a=this.A;a.g.start();a.k=!0}this.C=null};f.fr=function(){this.C=null;nZ(this)};f.na=function(a){var b=null;null!=this.b&&(b=this.b.getCurrentAd());this.S(new KN(a,b))};function pZ(a){zX.call(this,a);this.U=this.T=this.L=!1;this.M=[];this.P=Za();this.A=null;this.b=new gY;this.C=!0;this.O=-1;this.F=1}w(pZ,zX);f=pZ.prototype;
f.init=function(a){pZ.G.init.call(this,a);a=UT($(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=ae(a,"v",this.g.contentId))}a=za(a)}else{var b=new J(a),c=new J("http://tpc.googlesyndication.com/pagead/js/loader5.html");"https"==b.Gb&&be(c,"https");a=fe(c,a||"",void 0).toString()}this.eb=I("iframe",{src:XN(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"});
AX(this).listen(window,"message",this.iC);AX(this).listen(this.eb,"load",this.gC);AX(this).listen(this.eb,"error",this.hC);this.k.Nf().appendChild(this.eb)};f.Zc=function(a,b,c){pZ.G.Zc.call(this,a,b,c);this.C=$(this).getSelectedCreative()instanceof lT;this.A=a.qj(!1);AX(this).listen(this.A,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.OC)};f.stop=function(){this.k.hide();pZ.G.stop.call(this)};
function qZ(a,b){hY(a.b,IW(b,a.A));var c=b.getSelectedCreative();null!=c&&(c instanceof lT&&rZ(a,c.g),z(JN,function(a){a=jT(c,a);IR(this.b.b,a)},a),z(ET(b),function(a){pb(this.b.g,a)},a))}function rZ(a,b){z(b.Ma(),function(a){var d=b.get(a);z(d,function(b){JR(this.b.b,a,b)},this)},a)}f.start=function(){pZ.G.start.call(this);qZ(this,$(this));this.A.Ei();this.k.ji();this.eb.style.opacity=1;this.U=!0;this.C&&this.na("contentPauseRequested");sZ(this)};f.pause=function(){tZ(this,"pauseAd")};
f.resume=function(){tZ(this,"resumeAd")};f.setVolume=function(a){pZ.G.setVolume.call(this,a);tZ(this,"setAdVolume",{value:a})};f.J=function(){var a=this.k.Nf();null!=a&&bd(a);this.C&&this.na("contentResumeRequested");this.na("allAdsCompleted");this.L=!1;this.M=[];pZ.G.J.call(this)};f.Nj=function(){};
f.gC=function(){var a=this.A.ds();E(a)&&(a=this.g.ih);uZ(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=FT($(this)),b={desiredBitrate:this.g.Of,creativeData:a,viewMode:this.I};UT($(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.g.un&&(b.creativeData=this.g.un);uZ(this,"initAd",b);z(this.M,function(a){uZ(this,a.type,a.params)},this);this.L=!0;this.M=[]};
function tZ(a,b,c){a.L?uZ(a,b,c):a.M.push({type:b,params:c})}function uZ(a,b,c){null!=a.eb?(null!=c||(c={}),c.session=a.P,c.type=b,a.eb.contentWindow.postMessage(pf(c),"*")):(vZ(a,KO,null),a.stop())}
f.iC=function(a){a=a.b;if(a.source==this.eb.contentWindow&&(a=nf(a.data),a.session==this.P&&s(a.type)))switch(a.type){case "videoCall":switch(a.func){case "play":this.k.hi();this.A.Bg(a.src,a.mimetype);this.A.play();break;case "pause":this.A.pause()}break;case "getAdRemainingTime":a=a.remainingTime;this.C||(Ok(this.O),ja(a)&&-1!=a||(a=30),this.O=Nk(this.Jx,1E3*a,this));break;case "AdClickThru":iY(this.b,new T("click"));a.url&&$N(a.url);n(a.Kx)&&!1==a.Kx&&RO.g&&(a=ST($(this)),null!=a&&YN(a));this.na("click");
break;case "AdError":vZ(this,KO,null);this.stop();break;case "AdExpandedChange":this.na("expandedChanged");break;case "AdImpression":this.na("impression");break;case "AdLinearChange":a=a.isLinear;!this.C&&a?(this.na("contentPauseRequested"),Ok(this.O)):!a&&this.C&&(this.na("contentResumeRequested"),this.C=a,tZ(this,"getAdRemainingTime"));this.C=a;break;case "AdLoaded":this.T=!0;sZ(this);wZ(this,"loaded");break;case "AdPaused":wZ(this,"pause");break;case "AdPlaying":wZ(this,"resume");break;case "AdRemainingTimeChange":this.C||
tZ(this,"getAdRemainingTime");break;case "AdSkipped":wZ(this,"skip");break;case "AdStarted":iY(this.b,new T("impression"));iY(this.b,new T("creativeview"));this.na("start");break;case "AdStopped":iY(this.b,new T("stop"));this.stop();break;case "AdUserAcceptInvitation":this.C?iY(this.b,new T("acceptinvitationlinear")):iY(this.b,new T("acceptinvitation"));break;case "AdUserMinimize":iY(this.b,new T("collapse"));break;case "AdUserClose":wZ(this,"userClose");break;case "AdVideoComplete":wZ(this,"complete");
break;case "AdVideoFirstQuartile":wZ(this,"firstquartile");break;case "AdVideoMidpoint":wZ(this,"midpoint");break;case "AdVideoStart":iY(this.b,new T("start"));break;case "AdVideoThirdQuartile":wZ(this,"thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.F&&this.na("volumeChange");0==a&&0!=this.F?(iY(this.b,new T("mute")),this.na("mute")):0==this.F&&0!=a&&iY(this.b,new T("unmute"));this.F=a;this.A.setVolume(a);break;case "Ping":$N(a.url)}};f.hC=function(a){vZ(this,rO,a);this.stop()};
function vZ(a,b,c){var d=NO(b,c),d=CW(d,$(a)),e=DT($(a));bO(e,d);PO(a,b,c)}function wZ(a,b){iY(a.b,new T(b));a.na(b)}f.OC=function(a){switch(a.type){case "timeUpdate":a=this.A.sd();var b=this.A.getCurrentTime();uZ(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":xZ(this,"ended");break;case "mediaLoadTimeout":xZ(this,"stalled");break;default:xZ(this,a.type)}};function xZ(a,b){uZ(a,"wrapperCall",{messageType:b})}
function sZ(a){a.T&&a.U&&(tZ(a,"startAd"),a.C||tZ(a,"getAdRemainingTime"))}f.Jx=function(){tZ(this,"stopAd")};function yZ(){}function nX(a){if(!E(a)){var b=a[0],c=VT(b,["402"])&&RO.b;switch(null!=UT(b)&&c?"vpaid":OT(b)&&NT(b,"nonlinear")?"overlay":NT(b,"linear")?"video":NT(b,"nonlinear")?"overlay":null){case "overlay":return OT(b)?new IX(a):new EX(a);case "video":return new qY(a);case "vpaid":return new pZ(a)}}return null};function zZ(){try{return window.top.location.href}catch(a){return window.location.href}};function AZ(a){U.call(this);this.g=a;a=new FQ(new pQ);this.b=new gX(new yZ,a,jQ);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(AZ,U);AZ.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);AZ.G.J.call(this)};var BZ={SI:0,vE:-1,tH:-2};function CZ(a){this.b=a}f=CZ.prototype;f.Bl=function(){return null};f.Cl=function(){return this.b.C};f.Nf=function(){return this.b.C};f.qj=function(){var a=this.b.j;return null!=a?a:new GP};f.hi=function(){var a=this.b;null!=a.b&&a.b.show()};f.ji=function(){};f.Zm=function(){return this.b.k};f.cj=function(){return this.b.A};f.hide=function(){};function mX(a,b){T.call(this,"adsManagerLoaded");this.j=a;this.k=b}w(mX,T);function DZ(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function EZ(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null;c?b.error_code=c:(c=("getMessage"in a&&ka(a.getMessage)?a.getMessage():a.message)||"",50<c.length&&(c=c.substring(0,47)+"..."),b.error_message=c)}}function FZ(a,b){if(a){var c=HT(a);if(c){var d=IT(a)||[];b.ad_id=tb(d,c).join(",");if(c=CT(a))d=KT(a)||[],b.ad_sys=tb(d,c).join(",");zT(a)&&(b.skip=1)}}}
function GZ(a,b){if(a[b])return DZ(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return DZ(a[d]);return!1}function HZ(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 IZ(a,b,c,d){this.k=a;this.o=b;this.b=c;this.A=d}IZ.prototype.j="";IZ.prototype.g="";function JZ(a){KZ(a.b,9,LZ(a))}function LZ(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 MZ=!1;function NZ(){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 OZ(){var a=q("window.google_show_companion_ad");ka(a)?a():MZ=!0}function PZ(){var a=q("yt.www.watch.ads.setCompanion");a&&a()}function QZ(a){var b=q("yt.www.watch.ads.showForcedMpu");b&&b(a)}Sh("showCompanionAdLoaded",function(){MZ&&(OZ(),MZ=!1)});function RZ(a,b,c,d){$i.call(this);this.b=a;this.type=b+"_"+c;this.g=d;this.j=null}w(RZ,$i);RZ.prototype.A=function(){return this.type};RZ.prototype.getCurrentAd=function(){return this.g?this.g.getCurrentAd():null};function SZ(a,b,c){this.isSkippable=b;this.skip=c;this.skipTime=5;this.videoId=a};function TZ(a){this.b=a}function UZ(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 VZ(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 WZ(a,b){this.b=a;this.k=b}WZ.prototype.o=null;WZ.prototype.g=NaN;function XZ(a,b,c){a.b.H("AD_LOGGING_EVENT",b,c)}function YZ(a){ZZ(a);var b=$Z(a);if(a.j){var c=a_(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}XZ(a,15,b)}function b_(a){ZZ(a);var b=$Z(a);if(isNaN(a.g))ZZ(a);else{var c=v()-a.g;b.ad_stl=c}XZ(a,4,b)}function c_(a){ZZ(a);var b=$Z(a),c=a.b.rn();c?b.ad_fmt=c:ZZ(a);XZ(a,5,b)}
function d_(a){var b=$Z(a),c=a.b.rn();c?b.ad_fmt=c:ZZ(a);XZ(a,14,b)}function $Z(a){var b={},c=a.b.j,d=a.b.Wi(),e=a.b.Wq();FZ(a.b.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);c&&c.videoId?b.ad_v=c.videoId:e&&(c=xi(e),b.ad_dom=c,a.k.ma.A&&(b.ad_v_url=e.substr(0,512)));b.at=a.b.A();return b}function ZZ(a){a.o||(a.o="InstreamAdDisplay ("+a.b.A()+")")};function e_(a,b,c,d,e){RZ.call(this,b,a,2,c);this.b.subscribe("onVolumeChange",this.Ap,this);this.b.subscribe("control_toggle_play_pause",this.Bp,this);this.b.subscribe("control_play",this.Hl,this);this.b.subscribe("control_pause",this.Gl,this);this.F=d;this.o=new WZ(this,this.b);this.k=new Sv(this);this.D=this.B=!1;this.C=0;this.I=e}w(e_,RZ);e_.b=2E3;f=e_.prototype;f.Kb=null;f.Yf=!1;f.fh=null;f.eh=null;f.hh=null;
f.show=function(){this.o.g=v();var a;if(a=this.F){var b=wi(a),b=b.v||b.video_id;if(!b){var c=Qd(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 Ir({video_id:b,dash:"0"}):null}else a=null;this.j=a;var d,e;this.j?(this.j.re=!0,d={video_id:this.j.videoId},e=new SZ(this.j.videoId,this.I,u(this.cw,this)),this.j.subscribe("onStatusFail",this.mp,this),this.j.subscribe("dataloaded",this.np,this),a=this.b.R(),a=new MK(a.j),a.$=
"adunit",a.xc=!0,a.k=this.type,a=PK(a,this.j),$r(this.j,a)):f_(this);this.B||(g_(this.b,-1,d,e),this.bp())};f.cw=function(){this.b.k.j.S("skip")};function h_(a){a.j&&(a.j.ja("onStatusFail",a.mp,a),a.j.ja("dataloaded",a.np,a))}f.np=function(){h_(this);Tr(this.j);var a=new kM(this.b.R());(a=Gr(this.j.F,mM(a,this.j)))?(a=a.b)?(a=new J(or(a)),a.b.set("autoplay","1"),this.g.setMediaUrl(a.toString()),f_(this)):i_(this,Error("Failed to determine ad media resource.")):i_(this,Error("Failed to determine ad media format."))};
function f_(a){if(jh||2.2<=Vp&&3>Vp){var b=v()-a.o.g,b=e_.b-b;a.C=L(u(a.Oq,a),Math.max(0,b));O(qt(a.b.b),"ad-interstitial-showing")}else a.Oq()}
f.Oq=function(){j_(this);this.Kb=k_(this.b,!0);this.hh=qt(this.b.b);if(this.b.ma.M)dd(H("video-ad-status-bar"));else{var a=qt(this.b.b);this.fh=H("video-ad-time-left",a);var a=H("html5-ad-progress-list",a),b=Yc("div");O(b,"ytp-ad-progress");a.appendChild(b);this.eh=b;this.k.listen(this.Kb,"timeupdate",this.xz)}og(this.hh,["ad-showing","ad-interrupting"]);this.k.listen(oH(this.b.g),"mouseup",this.vz);this.k.listen(this.Kb,"waiting",this.bp);this.b.subscribe("onResize",this.im,this);try{this.k.listen(this.g,
"adError",this.uz);this.k.listen(this.g,"click",this.rz);this.k.listen(this.g,"complete",this.lm);this.k.listen(this.g,"pause",this.Gq);this.k.listen(this.g,"start",this.Hq);this.k.listen(this.g,"skip",this.wz);this.im();var c=this.b,d=c.g,e=l_(c);d.W.R().Tb&&(Vf(d.b,e),Kf(d.b,0,0));this.g.start()}catch(g){i_(this,g)}};f.Hq=function(){this.Yf=!0;this.B=!1;this.D||(this.D=!0,b_(this.o),m_(this.b,1));tu(this.b,!0);g_(this.b,1);this.H("adPlay",this)};
f.Gq=function(){this.Yf=!1;tu(this.b,!1);g_(this.b,2)};f.wz=function(){d_(this.o);this.lm()};f.lm=function(){this.B||(c_(this.o),this.Yf=!1,this.B=!0,g_(this.b,0),m_(this.b,0),this.H("adEnd",this))};f.uz=function(a){i_(this,a.j)};function i_(a,b){a.Yf=!1;a.B=!0;g_(a.b,0);a.H("adError",b)}f.mp=function(){h_(this);i_(this,Error("Request to get video data failed."))};f.rz=function(){YZ(this.o);this.H("select")};f.vz=function(a){a=new F(Ig(a),Jg(a));this.o.j=a};
f.xz=function(a){var b=Dv(this.g.getRemainingTime());this.fh.innerHTML=b;b=this.Wi()?this.Kb.getCurrentTime()/this.Wi():0;b=Ev(b);this.eh.style.width=b+"%";this.Kb.ended&&L(u(this.lm,this,a),50)};f.bp=function(){!this.Yf&&this.D||g_(this.b,3)};
f.J=function(){this.b.ja("control_toggle_play_pause",this.Bp,this);this.b.ja("control_play",this.Hl,this);this.b.ja("control_pause",this.Gl,this);this.b.ja("onResize",this.im,this);this.b.ja("onVolumeChange",this.Ap,this);this.k.removeAll();h_(this);this.g.destroy();this.Kb&&(mH(this.b.g),this.Kb=null);j_(this);this.fh&&(this.fh.innerHTML="",this.fh=null);this.eh&&(dd(this.eh),this.eh=null);this.hh&&(pg(this.hh,["ad-showing","ad-interrupting"]),this.hh=null);this.B=!0;e_.G.J.call(this)};
function j_(a){a.C&&(N(a.C),a.C=0,P(qt(a.b.b),"ad-interstitial-showing"))}f.Wi=function(){return this.Kb?this.Kb.duration||0:null};f.rn=function(){return null};f.Wq=function(){return this.Kb&&this.Kb.currentSrc?this.Kb.currentSrc:null};f.Ap=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Hb(a/100,0,1),this.g.setVolume(a))};f.Bp=function(){this.Yf?this.Gl():this.Hl()};f.Hl=function(){this.Kb&&(this.g.resume(),this.Hq())};f.Gl=function(){this.Kb&&(this.g.pause(),this.Gq())};f.im=function(){l_(this.b)};function n_(a,b,c,d){RZ.call(this,b,a,2,c);this.b.subscribe("control_toggle_play_pause",this.Po,this);this.b.subscribe("control_play",this.Kk,this);this.b.subscribe("control_pause",this.Jk,this);this.B=new WZ(this,this.b);this.k=new Sv(this);this.o=o_(b);this.o.subscribe("statechange",this.Qd,this);this.o.subscribe("internalvideodatachange",this.Oo,this);this.C=this.D=!1;this.F=d}w(n_,RZ);f=n_.prototype;f.cn=!1;f.Gg=null;f.Fg=null;f.Hg=null;
f.show=function(){var a=this.b;p_(a.app,o_(a));this.B.g=v();this.Hg=qt(this.b.b);this.o.subscribe("progresssync",this.Xo,this);if(this.b.ma.M)dd(H("video-ad-status-bar"));else{a=qt(this.b.b);this.Gg=H("video-ad-time-left",a);var a=H("html5-ad-progress-list",a),b=Yc("div");O(b,"ytp-ad-progress");a.appendChild(b);this.Fg=b}og(this.Hg,["ad-showing","ad-interrupting"]);this.b.subscribe("onResize",this.Rk,this);try{this.k.listen(this.g,"adError",this.Zx),this.k.listen(this.g,"click",this.Yx),this.k.listen(this.g,
"complete",this.Wx),this.k.listen(this.g,"engagedview",this.Xx),this.k.listen(this.g,"pause",this.kq),this.k.listen(this.g,"start",this.lq),this.k.listen(this.g,"skip",this.$x),this.Rk(),this.g.start()}catch(c){q_(this,c)}};f.Oo=function(a,b,c){"newdata"==a&&this.j!=c&&(a={video_id:c.videoId},b=new SZ(c.videoId,this.F,u(this.g.skip,this.g)),g_(this.b,-1,a,b));this.j=c};f.Qd=function(a){a=a.state;W(a,128)&&q_(this,Error(a.b.message||"Video player error."))};
f.lq=function(){this.cn=!0;this.C=!1;this.D||(this.D=!0,b_(this.B),m_(this.b,1));g_(this.b,1);this.H("adPlay",this)};f.kq=function(){this.cn=!1;g_(this.b,2)};f.Wx=function(){c_(this.B);r_(this)};function r_(a){var b=new GN;b.j=a.C;b.g=v();a.j&&a.j.Da&&(b.b=a.j.Da);qN(o_(a.b));g_(a.b,0,b);m_(a.b,0);a.H("adEnd",a)}f.Xx=function(){var a=this.B;a.b.H("AD_LOGGING_EVENT",777,$Z(a))};f.$x=function(){this.C=!0;d_(this.B);r_(this)};
f.Zx=function(a){var b={};b.error_code=a.j.getErrorCode();var c=this.B;ZZ(c);var d=$Z(c);b&&sa(d,b);d.ad_error=32;XZ(c,7,d);q_(this,a.j)};function q_(a,b){a.o.rg();g_(a.b,0);a.H("adError",b)}f.Yx=function(){YZ(this.B);this.g.pause();this.H("select")};f.Xo=function(){var a=this.b.b.Mg();this.b.ma.M||(this.Gg.innerHTML=Dv(a.duration-a.current),a=Ev(a.current/a.duration),this.Fg.style.width=a+"%")};
f.J=function(){this.b.ja("control_toggle_play_pause",this.Po,this);this.b.ja("control_play",this.Kk,this);this.b.ja("control_pause",this.Jk,this);this.b.ja("onResize",this.Rk,this);this.k.removeAll();this.o.subscribe("statechange",this.Qd,this);this.o.ja("internalvideodatachange",this.Oo,this);this.o.ja("progresssync",this.Xo,this);var a=this.b;if(a.j){var b=a.app,a=a.j;s_(b);a!=b.j&&p_(b,b.j)}this.g.destroy();this.Gg&&(this.Gg.innerHTML="",this.Gg=null);this.Fg&&(dd(this.Fg),this.Fg=null);this.Hg&&
(pg(this.Hg,["ad-showing","ad-interrupting"]),this.Hg=null);this.C=!1;n_.G.J.call(this)};f.Wi=function(){return this.o.Td()};f.rn=function(){return this.j&&this.j.b?this.j.b.mimeType:null};f.Wq=function(){return this.j&&this.j.P?or(this.j.P.b):null};f.Po=function(){this.cn?this.Jk():this.Kk()};f.Kk=function(){this.g.resume();this.lq()};f.Jk=function(){this.g.pause();this.kq()};f.Rk=function(){Vf(lH(this.b.g),l_(this.b))};function t_(a,b){this.g=a;this.b=b}function u_(a,b,c){a.g.H("AD_LOGGING_EVENT",b,c)}function v_(a){var b={};FZ(a.g.getCurrentAd(),b);a.o&&a.k&&(b.ot=a.k-a.o);var c;c=a.b.isFullscreen()?2:a.b.R().rd?1:0;b.ad_ps=c;b.at=a.g.A();return b};function w_(a,b,c){RZ.call(this,b,a,1,c);this.o=new t_(this,b);this.k=new Sv(this)}w(w_,RZ);f=w_.prototype;f.Ed=null;f.bm=!1;
f.show=function(){if(!this.bm||!x_(this.b)){var a=qt(this.b.b);O(a,"ad-showing");this.Ed=lH(this.b.g);a=this.g.getCurrentAd().getHeight();this.Ed.style.height=Lf(a,!0);O(this.Ed,"ad-overlay");this.k.listen(this.Ed,"mouseup",this.Xy);try{this.k.listen(this.g,"userClose",this.Yy);this.k.listen(this.g,"click",this.Wy);this.k.listen(this.g,"adError",this.Vy);y_(this,"normal");this.g.start();var b=this.o;b.o=v();var c=v_(b);u_(b,3,c);this.b.subscribe("onResize",this.dm,this);this.b.subscribe("onStateChange",
this.mq,this);this.H("adEnd",this)}catch(d){this.H("adError",d)}}};f.J=function(){this.k.removeAll();this.b.ja("onResize",this.dm,this);this.b.ja("onStateChange",this.mq,this);var a=qt(this.b.b);P(a,"ad-showing");this.g&&(this.g.destroy(),this.g=null);this.Ed&&P(this.Ed,"ad-overlay");this.Ed=null;this.bm=!1;w_.G.J.call(this)};f.Yy=function(){this.Ed&&this.g&&this.g.getCurrentAd()&&(this.Ed.style.height=Lf(0,!0));this.bm=!0;var a=this.o;a.k=v();var b=v_(a);u_(a,6,b)};
f.Wy=function(){this.b.pauseVideo();var a=this.o;a.k=v();var b=v_(a);if(a.j){var c=a_(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}u_(a,100,b)};f.Xy=function(a){this.o.j=a.target==a.currentTarget?null:new F(a.pageX,a.pageY)};f.Vy=function(a){this.H("adError",a.j)};f.mq=function(a){W(a.state,16)&&y_(this,"normal")};function y_(a,b){a.B!=b&&(a.B=b)}f.dm=function(){};function z_(a,b,c,d){this.I=a;this.b=b.g;this.B=b;this.M=b.getId();this.ga=c;this.j=d;this.k=new IZ(this.b,this.De(),c,d);this.o=null;this.F=new Sk(this);this.g=new Sk(this)}w(z_,Hh);z_.b="rm";z_.g=10;z_.A=200;z_.k=200;z_.o=190;z_.j=100;f=z_.prototype;f.Il=null;f.load=function(){var a;a=this.ga;a=a.ma.A?l_(a):a.app.g.j.Vc();var b;this.ga.ma.g?b=!1:(b=0<(this.j&3)?z_.o:z_.k,b=a.width<z_.A||a.height<b);if(b){b=this.k;var c=LZ(b);c.ck_wh=a.width+"x"+a.height;A_(b.b,14,c);PZ();this.Ge(Error("The player size is too small."))}else B_(this)};
f.fn=function(){var a=new eP;a.baseYouTubeUrl=this.ga.R().rb;a.contentId=dt(this.ga.app).videoId;a.uk=jH(this.ga.R(),"927622");a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=this.ga.ma.M;a.youTubeAdNamespace=this.De();a.showContentThumbnail=this.ga.ma.qo;a.un=this.ga.ma.Vj;return a};f.De=function(){return this.I};function C_(a){var b=z_.g;a.b=b;a.k.k=b}function D_(a,b){a.Il=b;a.k.j=b.A()}function E_(a,b){var c=q("yt.www.watch.ads.setAdId");c&&c(b);a.k.g=b}
function F_(a){a=a.b;return 0==a||-1==a?a:1E3*a}
function B_(a){a.o=a.ga.Bk;if(a.o){JZ(a.k);var b=new eW;b.adTagUrl=a.ag();var c=a.ga.ma.hf;c&&(b.adsResponse=c);c=l_(a.ga);b.linearAdSlotWidth=c.width;b.linearAdSlotHeight=c.height;b.nonLinearAdSlotWidth=c.width;b.nonLinearAdSlotHeight=z_.j;if(c=UK(a.ga.R()))b.lastActivity=c;a.ga.ma.xb&&(b.tagForChildDirectedContent=!0);jH(a.ga.R(),"937420")&&(b.Ri=!0);var c=dt(a.ga.app),d=a.ga;b.Ug={"[CONTENT_V]":c.videoId,"[CPN]":c.Da,"[LACT]":{toString:function(){return null==d||d.fa()?d=null:UK(d.R()).toString()}}};
a.o.listen("adsManagerLoaded",a.lr,!1,a);a.o.listen("adError",a.kr,!1,a);a.Cj(a.o,b)}}
f.lr=function(a){if(a.k===this){uq("aml");try{var b=this.fn(),c=a.j}catch(d){this.de(d);return}this.g.listen(c,"companionBackfill",u(this.tB,this,c));this.g.listen(c,"loaded",u(this.vB,this,c));this.g.listen(c,"adError",u(this.uB,this,c));this.g.listen(c,"allAdsCompleted",ca);this.g.listen(c,"contentPauseRequested",ca);this.g.listen(c,"contentResumeRequested",ca);a.j.Zc(new CZ(this.ga.k),{},b);c=a.j;try{c.init("normal")}catch(e){c.destroy(),this.de(e)}}};
f.vB=function(a,b){this.g.removeAll();var c=b.getAd(),d=xT(c),e=this.k,g=LZ(e);g.ad_man=d?"instream":"overlay";KZ(e.b,12,g);e=a.getMediaUrl();switch(d?this.kh(a,c,e):this.Te(a,c)){case 0:G_(this.B,this.Il,this.b);break;case 1:a.destroy();this.Ge(Error("Unable to create a display state."));break;case 2:c=this.k;A_(c.b,21,LZ(c));a.destroy();this.Ge(Error("Fallback to next ad."));break;default:a.destroy()}};f.uB=function(a,b){this.g.removeAll();a.destroy();this.de(b.j)};
f.kr=function(a){var b=a.j;"adLoadError"==b.j&&a.k===this&&this.de(b)};f.tB=function(){OZ()};f.kh=function(a,b,c){E_(this,HT(b));var d;this.ga.ma.T?d=new n_(this.De(),this.ga,a,zT(b)):d=new e_(this.De(),this.ga,a,c,zT(b));D_(this,d);return 0};f.Te=function(a,b){E_(this,HT(b));D_(this,new w_(this.De(),this.ga,a));return 0};f.de=function(a){if(a){var b=this.k,c=LZ(b);a&&EZ(a,c);A_(b.b,32,c);this.Ge(a)}};f.Ge=function(){H_(this.B)};
f.J=function(){this.o&&(this.o.Fa("adsManagerLoaded",this.lr,!1,this),this.o.Fa("adError",this.kr,!1,this));this.F.removeAll();this.g.removeAll();z_.G.J.call(this)};f.Cj=function(a,b){try{b.location=zZ(),b.mh=a.g.A,hX(a.b,b,this),uq("ra")}catch(c){this.de(c)}};function I_(a,b){this.b=a;this.g=b};function J_(a){RZ.call(this,a,2,3,null);this.k=this.o=0}w(J_,RZ);J_.prototype.show=function(){var a=q("yt.www.watch.ads.loadAfc");a&&a();this.H("adEnd",this);this.o=Te(u(this.B,this),1E3)};J_.prototype.J=function(){K_(this);J_.G.J.call(this)};function K_(a){a.o&&(Ue(a.o),a.k=0)}J_.prototype.B=function(){var a=q("yt.www.watch.ads.isAfcAdVisible");this.k++;var b={};b.at=this.A();10<=this.k||!a?(K_(this),this.H("AD_LOGGING_EVENT",2,b)):a()&&(K_(this),this.H("AD_LOGGING_EVENT",3,b))};function L_(a,b,c){z_.call(this,2,a,b,c);this.A=new I_(this.ga.ma,this.ga.R());NZ()}w(L_,z_);L_.prototype.fn=function(){var a=L_.G.fn.call(this);a.Is=0==this.M;a.XC=x_(this.ga)?a.Is:!0;return a};
L_.prototype.ag=function(){var a=this.A,b=this.j,c=F_(this),d={},e;if(a.b.cq&&(e=4==b&&a.b.pa?a.b.pa:a.b.qf)){0==e.lastIndexOf("http:",0)&&(e=e.substr(5));cc(d,wi(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.ka,d.scs=a.b.Xj,d.client=a.b.Zj,d.description_url=a.b.wa,d.loeid=a.b.Yj,d.cust_gender=a.b.mf,d.host=a.b.host,d.hl=a.g.A,d.max_ad_duration=a.b.qd,a.b.of&&(d.adtest="on"),isNaN(a.b.qb)||(d.cust_age=a.b.qb),isNaN(a.b.Ca)||(d.hostTierId=
a.b.Ca),a.b.gb&&(d.yt_pt=a.b.gb),a.b.bc&&(d.video_cpm=a.b.bc),a.b.L&&(d.as_dbp=a.b.L),d.ytdevice=a.b.nb,d.ad_type=HZ(b),0<(b&3)?a.b.Uc&&(d.channel=a.b.Uc.join("+")):b&4&&a.b.hb&&(d.channel=a.b.hb.join("+")),a.b.cb&&(d.lsv=1),a.b.xb&&(d.tfcd=1));d.videoad_start_delay=c;d.url="embedded"==a.g.$&&a.g.g?a.g.g:a.b.wa;var a=d,b={},h;for(h in a)ga.call(void 0,a[h])&&(b[h]=a[h]);return e+ui(b,"&")};
L_.prototype.Te=function(a,b){if(this.ga.ma.g)return 1;0==this.b&&(C_(this),KZ(this.ga,1));return L_.G.Te.call(this,a,b)};L_.prototype.Ge=function(a){var b=this.ga.ma;b.g?L_.G.Ge.call(this,a):b.Ia||this.j&4?(D_(this,new J_(this.ga)),G_(this.B,this.Il,this.b)):L_.G.Ge.call(this,a)};function M_(a,b){if(a){this.Ws=a;this.Rs=b;var c,d=this.Ws,e=d.indexOf(";sz=");c=ti(d.substring(e),";");d=d.substring(0,e).split("pfadx");if(c=2!=d.length?null:{FD:d[0],GD:d[1],HD:c})this.Qs=c.FD,this.Ss=c.GD,this.Ts=c.HD}}f=M_.prototype;f.Ws="";f.Qs="";f.Rs=!1;f.Ln="";f.Ss="";f.Ts=null;
f.vj=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=ac(this.Ts);c&&(k.pos=c);h&&(k.tile=h.toString());g&&(k.kmyd=g);e&&0<e.length&&this.Rs&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";this.Ln||(this.Ln=Math.floor(999999999*Math.random()).toString());
k.ord=this.Ln;d&&d.length&&"sz"in k&&delete k.sz;e=ui(k,";");d&&d.length&&(e="sz="+d.join(",")+";"+e);return[this.Qs,"pfadx",this.Ss,";",e,"?"].join("")};function N_(a){this.b=a?a:""}N_.prototype.vj=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 O_(a,b){w_.call(this,1,a,b)}w(O_,w_);O_.prototype.dm=function(){};O_.prototype.A=function(){return"1_3"};function P_(a,b,c){z_.call(this,1,a,b,c);a=this.ga.ma;this.L=a.di?new N_(a.la):new M_(a.la,a.Ba)}w(P_,z_);P_.prototype.ag=function(){return this.L.vj(this.b,this.j)};
P_.prototype.Te=function(a,b){E_(this,HT(b));var c=null!=b.g?b.g.L:{};if(GZ(c,z_.b))return 1==this.j||x_(this.ga)||PZ(),a.sendImpressionUrls(),this.ga.ma.ik?(D_(this,new J_(this.ga)),0):2;if(GZ(c,"blockAllAds"))return a.sendImpressionUrls(),D_(this,new O_(this.ga,a)),0;if(GZ(c,"hideMaster"))return D_(this,new O_(this.ga,a)),0;if(this.ga.ma.g)return 1;D_(this,new w_(this.De(),this.ga,a));return 0};function Q_(a,b,c,d){P_.call(this,a,b,c|d);this.D=c;this.C=d;this.A=null;NZ()}w(Q_,P_);var R_={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=Q_.prototype;f.ag=function(){if(this.ga.ma.di){var a=new N_(this.ga.ma.N);return a.vj(this.b,this.D)}a=new M_(this.ga.ma.N,this.ga.ma.Ba);return a.vj(this.b,this.D)};f.Cj=function(a,b){if(this.C){b.youTubeAdType=HZ(this.C);var c=this.ga.ma.ka;c&&(b.youTubeExperimentIds=c);b.youTubeVideoAdStartDelay=F_(this)}Q_.G.Cj.call(this,a,b)};
f.kh=function(a,b,c){S_(this,a);return 1!=this.A&&2!=this.A?1:Q_.G.kh.call(this,a,b,c)};f.Te=function(a,b){S_(this,a);switch(this.A){case 1:return Q_.G.Te.call(this,a,b);case 2:var c;this.ga.ma.g?c=1:(0==this.b&&(C_(this),KZ(this.ga,1)),E_(this,HT(b)),D_(this,new w_(2,this.ga,a)),c=0);return c;default:return 1}};f.De=function(){return this.A||0};function S_(a,b){var c=KT(b.getCurrentAd()),c=E(c)?CT(b.getCurrentAd()):c[0],c=R_[c.toUpperCase()];a.A=c?c:0};function T_(a,b){var c=b.ma;this.A=c.nf;var d=0,c=c.pf.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);z_.call(this,2,a,b,d)}w(T_,z_);T_.g="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";T_.j="43";
T_.b=function(a){var b=new Xu;Gi(a,{format:"RAW",method:"GET",timeout:5E3,jh:function(){b.bh(Error(a+" timed out"))},onError:function(c){b.bh(Error("Problem loading "+a+" with status code "+c.status))},onSuccess:function(a){b.Os(a)}});return b};T_.prototype.ag=function(){return""};
T_.prototype.Cj=function(a,b){var c=this.j;c&1||c&4||c&8?this.A?c&8?QZ(this.A):("goo.gl"==xi(this.A)?(c=T_.b(T_.g+this.A),cv(c,function(a){a=nf(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",T_.j);return T_.b(a.toString())},this)):c=T_.b(this.A),cv(c,function(c){b.adsResponse=c.responseText;b.location=zZ();b.mh=a.g.A;hX(a.b,b,this)},this),dv(c,null,this.de,this)):this.de(Error("Invalid empty URL")):
this.de(Error("Invalid request type: "+c))};function U_(a,b,c){this.b=a;this.j=b;this.g=jh||kh?"html5_ios":lh?"html5_android":lr()?"html5_ps3":"leanback"==c?"html5_tv_leanback":"html5"};function V_(a,b,c){z_.call(this,4,a,b,c);this.A=new U_(this.ga.ma,dt(this.ga.app).Oa,this.ga.R().$)}w(V_,z_);
V_.prototype.ag=function(){var a;a=this.A;if(a.b.aa&&a.b.ac){var b="10613:10613_youtube_"+a.g,c="youtube_watch_"+a.g,d="10613:10613_youtube_"+a.g.split("_")[0],e={nw:"10613"};e.asnw=a.b.aa;e.ssnw=a.b.aa;e.caid=a.b.ac;e.prof=b;e.vdur=a.j;e.csid=c;e.resp="vast2";e.crtp="vast2s";e.flag="+emcr";b={};isNaN(a.b.xa)||(b._fw_d_001=a.b.xa);a.b.za&&(b._fw_d_002=a.b.za);a.b.fb&&(b["_fwu:10613:lang"]=a.b.fb);a.b.L&&(b._fw_dbp=a.b.L);b._fw_yt_type=a.b.B?"short":"long";var c={ptgt:"a",slid:"preroll"},g="";a.b.j&&
!a.b.b?g=";linear-skippable":!a.b.j&&a.b.b&&(g=";video");c.slau="preroll"+g;c.w="480";c.h="360";c.tpos="0";c.tpcl="preroll";c.envp=d;c.cd="1440,900";a="//2975c.v.fwmrm.net/ad/g/1?"+ui(e,"&")+";"+ui(b,"&")+";"+ui(c,"&")}else a="";return a};V_.prototype.kh=function(a,b){return 0!=this.b?1:V_.G.kh.call(this,a,b,null)};V_.prototype.Te=function(a,b){return GZ(null!=b.g?b.g.L:{},z_.b)?(this.B.k=a,2):1};function W_(a,b,c){z_.call(this,13,a,b,c)}w(W_,z_);var X_=[{an:4,size:"480x70",Hr:"300x250"},{an:1,size:"480x360",Hr:"300x60"}];
W_.prototype.ag=function(){var a=new J(this.ga.ma.Md,!0),b=this.j,c=X_.filter(function(a){return(b&a.an)==a.an}),d=c.map(function(a){return a.size}).join("|");K(a,"sz",d);c=c.map(function(a){return a.Hr}).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 Y_(a,b,c){this.j=a;this.b=b;this.g=c||0}Y_.prototype.create=function(a,b){switch(this.j){case 1:return new L_(a,b,this.b);case 2:return new P_(a,b,this.b);case 3:return new Q_(a,b,this.b,this.g);case 5:return new V_(a,b,this.b);case 4:return new T_(a,b);case 6:return new W_(a,b,this.b);default:return null}};function Z_(a){return 0<((a.b|a.g)&3)};function $_(a,b,c,d){$i.call(this);this.ta=b;this.j=a;this.g=c;this.o=d;this.k=this.b=null}w($_,$i);f=$_.prototype;f.Pl=!0;f.Be=!1;f.isVisible=!0;f.Oe="unloaded";f.Nm=!1;function a0(a){return 0==a.g?b0(a)&&c0(a)?-2147483648:0:-1==a.g||-2==a.g?2147483647:1E3*a.g}function b0(a){return"loaded"==a.Oe||"error"==a.Oe}function c0(a){if(!b0(a))throw Error("Preroll status is undefined before ad load.");return 0==a.g&&a.Be}
function H_(a){a.Oe="loading";0==a.g&&!ib(a.o,Z_)&&iu(a.j);var b=a.o.shift();b?(0==a.g&&d0(a.j,"nl"),b=b.create(a,a.j),S(a,b),b.load()):(KZ(a.j,2,e0(a,{})),f0(a,!1),a.Oe="error",g0(a))}f.getId=function(){return this.ta};function h0(a){a.b&&(a.b.ja("adEnd",a.Kr,a),a.b.ja("adError",a.Lr,a),a.b.ja("AD_LOGGING_EVENT",a.Mr,a),a.b.ja("select",a.Jr,a))}
function G_(a,b,c){a.b=b;a.g=c;S(a,a.b);0==a.ta&&(a.j.A.at=a.b.A());a.b instanceof e_||a.b instanceof n_?a.Be=!0:a.b instanceof J_?a.isVisible=!1:a.b instanceof O_&&(a.isVisible=!1);a.Oe="loaded";g0(a)}function g0(a){a.H("adBreakComplete",a)}
f.show=function(){this.Nm?this.b instanceof w_&&y_(this.b,"normal"):(this.Nm=!0,(this.b instanceof e_||this.b instanceof n_)&&d0(this.j,"bs"),this.b.subscribe("adEnd",this.Kr,this),this.b.subscribe("adError",this.Lr,this),this.b.subscribe("AD_LOGGING_EVENT",this.Mr,this),this.b.subscribe("select",this.Jr,this),this.b.show(),f0(this,!0))};function f0(a,b){a.k&&(a.k.sendImpressionUrls({"[FILLED_OPPORTUNITY]":b?1:0}),a.k=null)}
f.Kr=function(){if(this.Be){h0(this);var a=this.j;if(a.ma.Tj&&!a.Gk){var b=a.R().rb;lf(b+"mac_204?action_fcts=1");fj("CLAD","tlip="+v());a.Gk=!0}}g0(this)};f.Lr=function(a){if(a){var b={};EZ(a,b);e0(this,b);A_(this.j,32,b)}h0(this);g0(this)};f.Mr=function(a,b){e0(this,b);KZ(this.j,a,b)};f.Jr=function(){this.Pl=!1};function e0(a,b){b.sst=a.g;b.sidx=0}f.J=function(){h0(this);this.k=this.b=null;$_.G.J.call(this)};function i0(a){this.Pu=a}function j0(a){try{var b=PC(a).getElementsByTagName("AdBreak"),c=A(b,function(a){a=a.getAttribute("time");return $a(a)});return new i0(c)}catch(d){return new i0([0])}};function k0(a){this.b=a};function l0(a,b){this.P=a;this.Ha=this.P.Pb;this.A="leanback"==this.P.$;this.g=this.Ha||this.A;var c=jH(a,"927619"),c=this.A&&c,d=this.Ha&&jH(this.P,"947202");this.M=!this.g||d;this.T=a.Tb&&(!this.g||c)||d;this.cq=jH(a,"906369");this.apply(b)}var m0={tE:"m",oE:"f"};f=l0.prototype;
f.apply=function(a){var b=DZ(a.instream),c=DZ(a.trueview),d=DZ(a.aftv);this.da=a.ad_slots;this.ca=a.ad_breaks;this.kf=a.ad_flags||0;this.qb=parseInt(a.cust_age,10);this.ka=a.cafe_experiment_id;var e=parseInt(a.cust_gender,10);isNaN(e)||(this.mf=e);this.la=a.ad_tag;this.of=!!a.adtest;this.qf=a.afv_ad_tag;this.pa=a.afv_invideo_ad_tag;this.xa=parseInt(a.ad_age,10);this.jf=a.cid;this.wa=a.ad_eurl;this.N=a.dynamic_allocation_ad_tag;this.V=a.excluded_ads;this.pf=a.force_ad_type;this.nf=a.force_ad_url;this.za=
Ub(m0,function(b){return b==a.ad_gender});this.L=a.dbp;this.ik=DZ(a.afc_rm_fallback);this.Ba=!!a.mpu;this.host=a.ad_host;this.Ca=parseInt(a.ad_host_tier,10);this.D=DZ(a.afv)&&!this.g;this.k=d&&c;this.o=d&&b&&!DZ(a.no_afv_instream);this.F=DZ(a.dclk);this.di=DZ(a.gpt_migration);this.cb=1==a.livestream;this.Wa=DZ(a.forced_ad)&&!this.g;this.O=1==parseInt(a.tpas_ad_type_id,10);this.Nh=!!a.fqsf;this.b=b;this.I=DZ(a.invideo)&&!this.g;this.U=DZ(a.mpu)&&!this.g;this.Tj=DZ(a.shortform);this.B=DZ(a.sffb);this.Qh=
DZ(a.xfp);this.Md=a.xfp_tag;this.Xj="1"==a.as_launched_in_country;this.oo=!this.g&&!this.O;this.j=c;b=a.ad_channel_code_instream;this.Uc=s(b)?b.split(","):[];this.fb=a.ad_language_iso639_2;this.Yj=a.loeid;b=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(b)&&(b=2E3);this.ak=b;b=parseInt(a.afv_instream_max,10);isNaN(b)&&(b=15E3);this.qd=b;this.C=parseInt(a.midroll_freqcap,10);isNaN(this.C)&&(this.C=-1);b=a.ad_channel_code_overlay;this.hb=s(b)?b.split(","):[];this.gb=a.yt_pt;this.Zj=a.ad_video_pub_id;
"boolean"==typeof a.show_content_thumbnail&&(this.qo=a.show_content_thumbnail);this.xb=DZ(a.tag_for_child_directed);this.hf=a.server_prefetched_vast;this.Vj=a.surveyCreativeData;this.bc=parseInt(a.afv_video_min_cpm,10);this.Ia=d&&this.B&&!this.D;this.lf=this.D||this.Ia;this.nb=parseInt(a.ad_device,10);this.ac=a.tpas_video_id;this.aa=a.tpas_partner_id;this.Ra=n0(this)};
function n0(a){if(x(a.N)||!a.T)return!1;var b=(a.b||a.j)&&a.F;a.B&&a.F&&(b=b||a.I||a.U);if(!b)return!1;b=a.k||a.o;if(!(b||a.B&&a.D))return!1;var c=a.N.length+330+(a.di?25:102);window.document.referrer&&(c+=Ba("ref="+window.document.referrer).length);b||(c+=41);return c<=a.ak}f.oo=!0;f.ik=!1;f.di=!1;f.Qh=!1;f.qo=!0;f.cq=!1;function o0(a,b,c){this.b=a;this.A=b;this.j=c;this.o=this.g=-1;this.j&&0<this.b.ma.C&&this.b.subscribe("endseeking",this.k,this)}w(o0,Hh);function p0(a,b){q0(a);0<b&&(a.o=L(u(a.k,a),1E3*b))}function q0(a){-1!=a.o&&(N(a.o),a.o=-1)}
o0.prototype.k=function(){var a=this.b.ma.C;if(this.j&&!(0>=a)){var b=this.b.b.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Mb(this.A.o,function(a){if(a.isVisible&&!(0>=r0(this,a))){var g;g=a.getId();g=this.A.k[g];if(r0(this,a)>b){var l=!s0(this,a);l!=g.Wd&&(g.Wd=l,c.push(g));l||(g=r0(this,a)-b,g<e&&(e=g,d=a))}else g.Wd||(g.Wd=!0,c.push(g))}},this);0<c.length&&t0(this.b,c);if(d){var g=0;0<this.g&&(g=v()/1E3-this.g);p0(this,a-g-e+2)}else q0(this)}};
function s0(a,b){if(!a.j||!(0<b.g)&&-1!=b.g)return!1;var c=a.b.ma.C;if(0>=c||0>=a.g)return!1;var d=v()/1E3,e=r0(a,b)-a.b.b.getCurrentTime();0<e&&(d+=e);return d-a.g<=c}function r0(a,b){return-1==b.g?a.b.b.getVideoData().Oa:b.g}o0.prototype.J=function(){q0(this)};function u0(a,b){this.g=b;this.j=[];this.o={};this.k={};this.b=a;var c=!a.ma.cb&&ib(this.g,function(a){return 0<a.g||-1==a.g});this.A=new o0(this.b,this,c)}w(u0,Hh);f=u0.prototype;f.Bd=null;function v0(a){a.j.length||(a.j=hb(a.g,function(a){return"unloaded"==a.Oe}),0==a.j.length?iu(a.b):(null===B(a.j,function(a){return 0==a.g})&&iu(a.b),w0(a)))}function w0(a){if(a.j.length){var b=a.j.shift();b.subscribe("adBreakComplete",a.hn,a);H_(b)}}
f.hn=function(a){a.ja("adBreakComplete",this.hn,this);L(u(this.pD,this,a),0)};f.pD=function(a){var b=fb(this.g,a),c=this.g[b+1],b=this.g[b-1],d=2147483646;-2==a.g||-1==a.g?d=2147483647:c&&2147483647!=c.g&&(d=a0(c)-1);0==a.ta&&(d0(this.b,"bl"),c0(a)||d0(this.b,"fb"));if(c="loaded"!=a.Oe||0==a.ta&&c0(a)&&c&&this.b.b.getCurrentTime()>c.g){if(b&&b0(b)){var e=a0(b);e>d&&(d=e);x0(this,b);y0(this,b,d)}}else this.o[a.getId()]=a,y0(this,a,d);iu(this.b);c&&this.yg(a);Pb(this.o)==this.g.length&&this.A.k();w0(this)};
function y0(a,b,c){var d=a0(b);if(!isNaN(d)){var e={};e.priority=-2!=b.g?2:3;e.id=String(b.getId());e.visible=b.isVisible;c=new Xt(d,c,e);a.k[b.getId()]=c;a.b.Hf(c)}}function x0(a,b){a.k[b.getId()]&&(a.b.sB(a.k[b.getId()]),delete a.k[b.getId()])}f.yg=function(a){a.ja("adBreakComplete",this.hn,this);this.Bd&&a==this.Bd&&(this.Bd=null);x0(this,a);qb(this.g,a);delete this.o[a.getId()];Jh(a)};
f.Xz=function(a){if(a.Be){if(-1!=a.g&&a.Pl){var b=this.b;z0(b);su(b)}else c0(a)&&!a.Pl?(b=this.b,z0(b),su(b)):(z0(this.b),tu(this.b,!1));this.yg(a)}else a.isVisible||this.yg(a);a=this.A;a.j&&0<a.b.ma.C&&(a.g=v()/1E3,a.k())};f.J=function(){Jh(this.A);z(this.g,this.yg,this);u0.G.J.call(this)};function A0(a,b){this.B=a;this.W=b;this.C=v();this.b=a.ma;this.k={};this.A=new TZ(a);var c=[];this.b.O&&this.b.b&&c.push("4_2");this.b.Qh&&(this.b.b&&c.push("13_2"),this.b.I&&c.push("13_1"));this.b.F&&(this.b.b&&c.push("1_2"),this.b.j&&c.push("1_2_1"),this.b.I&&c.push("1_1"),this.b.U&&c.push("1_3"));this.b.k&&c.push("2_2_1");this.b.o&&c.push("2_2");this.b.D&&c.push("2_1");(this.b.lf||this.b.ik)&&c.push("2_3");this.j=c.join(",");this.g="";this.k.allowed=this.j;(c=this.b.V)&&(this.k.ex_ads=c)}
A0.prototype.o=0;function B0(a){EK.call(this,a);RO.g=!0;RO.b=!0;RO.o="osd-id";RO.k=!0;this.k=null;this.B={};this.A={at:"0"};this.g=new kH(0,this.b);pt(this.b,this.g.K());this.j=null;this.o=-1}w(B0,EK);f=B0.prototype;f.ua="ad";f.hc="ad";f.we=null;f.ic=null;f.ma=null;f.Gk=!1;f.yl=!1;f.Bk=null;B0.Ja=function(a){return!!a.Eb.getVideoData().ga};f=B0.prototype;f.Ja=function(){return B0.Ja(this.app)};
f.create=function(){B0.G.create.call(this);d0(this,"i");this.ma=new l0(this.R(),this.b.getVideoData().k||{});this.we=new A0(this,this.b);this.Gk=!1;t:if(!this.Bk){var a=this.ma.M?void 0:oH(this.g);if(this.ma.T){var b=new DK(this.app,2),c=lH(this.g);b.j||(b.j=$b(b.k),b.j.addEventListener=u(b.Nu,b),b.j.removeEventListener=u(b.Ou,b));this.k=new cQ(c,void 0,a,b.j)}else{b=k_(this,!1);if(!b)break t;this.k=new cQ(lH(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.eb.width="100%",a.eb.height="100%");this.Bk=new AZ(this.k)}a=new k0(this);t:{b=[];try{var d=a.b.ma,e;if(d.oo){var g;if(d.ca)g=j0(d.ca);else{var h;if(d.da){var k=A(d.da.split(","),$a);h=new i0(k)}else h=new i0([0]);g=h}e=g}else e=new i0([0]);for(var l=e.Pu,d=0;d<l.length;d++){var p=a.b;e=d;var r=l[d],t=a.b,y;if(t.ma.B){g=[];var D=t.ma;if(D.Wa)g.push(new Y_(4,0));else{D.O&&(D.b||D.j)&&g.push(new Y_(5,1));D.Qh&&(h=0,D.b&&(h|=1),D.I&&(h|=4),g.push(new Y_(6,h)));h=
0;D.F&&(D.b&&(h|=1),D.j&&(h|=2),D.I&&(h|=4),D.U&&(h|=8));k=0;if(D.o||D.k)D.o&&(k|=1),D.k&&(k|=2);c=0;D.D&&(c=4);k||(k=c,c=0);D.Ra&&h&&(k||c)?g.push(new Y_(3,h,k)):(h&&g.push(new Y_(2,h)),k&&g.push(new Y_(1,k)));c&&g.push(new Y_(1,c))}}else{g=[];var M=t.ma;if(M.Wa)g.push(new Y_(4,0));else{M.O&&M.b&&g.push(new Y_(5,1));M.Qh&&M.b&&g.push(new Y_(6,1));h=0;M.F&&(M.b&&(h|=1),M.j&&(h|=2));k=0;if(M.o||M.k)M.o&&(k|=1),M.k&&(k|=2);M.Ra&&h&&k?g.push(new Y_(3,h,k)):(h&&g.push(new Y_(2,h)),k&&g.push(new Y_(1,
k)))}}y=g;var ea=new $_(p,e,r,y);b.push(ea)}}catch(jb){}finally{break t}}l=b;d0(this,"bd");this.ic=new u0(this,l);v0(this.ic);l={};l.allowed=this.we.j;mu(this,{},l)};f.destroy=function(){this.yl&&z0(this);if(this.j){var a=this.app,b=this.j;s_(a);b!=a.j&&p_(a,a.j)}Lh(this.ic,this.j);this.we=this.j=this.ic=null;mH(this.g);MZ=!1;B0.G.destroy.call(this)};f.R=function(){return this.app.R()};f.isFullscreen=function(){return this.b.isFullscreen()||this.ma.A};
function KZ(a,b,c){a=a.we;c=c||{};var d=(v()-a.C)/1E3;c.art=d;d=a.B.R();d.B&&(c.feature=d.ca);c.ad_flags=a.b.kf;var e=a.b.jf;e&&(c.cid=e);c.mt=a.W.getCurrentTime();(d=UK(d))&&(c.lact=d);(d=a.W.ug())&&(c.len=d);a.b.Nh&&(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?VZ(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.ma.nb;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==BZ?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=UZ(d);break;case "error_code":h.ima_error=d;case "error_message":h.error_msg=d;break;
case "ad_event":h.event=VZ(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(h.i_x=a[0],h.i_y=a[1])}k=o_(b.b);c=dt(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=UK(b.b.R());k=a_(b.b);g.p_w=k.width;g.p_h=k.height;g.rt=(new Date).getTime();c=Id(g);if("undefined"==typeof c)throw Error("Keys are undefined");k=new ie(null,0,void 0);g=Hd(g);for(h=0;h<c.length;h++)a=c[h],d=g[h],ha(d)?ue(k,a,d):k.add(a,d);b=b.b.R().rb+"api/stats/ads";b=new J(b);fe(b,k);
lf(b.toString())}}function A_(a,b,c){c=c||{};c.ad_error=b;KZ(a,7,c)}f.$g=function(){var a;if(this.we){a=this.we;var b={allowed:a.j};a.b.V&&(b.ex_ad=a.b.V);a.g&&(b.at=a.g);a=b}else a=B0.G.$g.call(this);return a};function k_(a,b){var c;if(b){c=a.g;var d=pH(c);c.W.R().Tb||id(d)||lH(c).appendChild(d);c=d}else c=a.g,c=c.W.R().Tb?c.W.app.g.b:pH(c);return c}function o_(a){if(!a.j){var b=new MK(a.R().j);b.$="adunit";b.xc=!0;b.gi=a.app.g.element;var c=k_(a,!1);b.Pa=c;a.j=new aN(b,2)}return a.j}
function a_(a){return a.ma.A?(a=l_(a),new xf(0,0,a.width,a.height)):$f(qt(a.b))}function l_(a){return a.app.g.ws()}function z0(a){mH(a.g);a.yl=!1;ru(a);qu(a,["seek"]);a.R().Rd&&qu(a,["audio"])}f.getAdState=function(){return this.o};function m_(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 g_(a,b,c,d){d&&a.H("publish_external_event","onAdInfoChange",d);a.H("publish_external_event","onAdStateChange",b,k_(a,!1),c)}
f.Ec=function(a){B0.G.Ec.call(this,a);var b=parseInt(a.getId(),10);this.ic&&!isNaN(b)&&(a=this.ic,n(b)&&(b=a.o[b]))&&(a.Bd==b&&!b.Be&&b.isVisible?b.show():(a.Bd&&a.yg(a.Bd),s0(a.A,b)?(a.Bd=null,b=a.k[b.getId()],b.Wd||(b.Wd=!0,t0(a.b,[b]))):(a.Bd=b,b.subscribe("adBreakComplete",a.Xz,a),b.Be&&(a=a.b,a.yl=!0,a.H("command_redirect_controls",a,["play_pause"],void 0),pu(a,["seek"]),a.R().Rd&&pu(a,["audio"]),a.pauseVideo()),b.show())))};
f.ld=function(a){B0.G.ld.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.o[b])&&a.Bd==b&&!b.Be&&b.isVisible&&b.Nm&&b.b instanceof w_&&y_(b.b,"fullscreen"))};function d0(a,b){var c=b;"nl"==b&&(c=a.we,c.o++,c=c.o.toString());a.B[c]=v();"bs"!=c&&"fb"!=c||mu(a,a.B,a.A)}function t0(a,b){a.H("command_update_cuerange_markers",b,a.b.getPlayerType())}
function x_(a){return Boolean(a.ma.B&&a.ic&&1<a.ic.g.length)}f.ke=function(a){this.H(a)};f.Fj=function(a){switch(a){case "breaks":return this.ic?this.ic.g.length:0}};f.Bj=function(){var a=[];this.R().zb()&&a.push("breaks");return a};function C0(a,b,c){var d=["html5-center-transform","html5-center-overlay"];qE.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;D0(this,a,b)}w(C0,qE);function E0(a){F0(a,Y(0,"YTP_MDX_STATUS_CONNECTING"));G0(a,2)}function H0(a,b){F0(a,Y(0,"YTP_MDX_STATUS_ERROR"));Bv(a.template,"error",b);G0(a,0)}function G0(a,b){var c=a.template.b["ytp-remote-display-error"];Ax(c);a.g.hide();a.b.hide();switch(b){case 0:zx(c);break;case 2:a.g.show()}}
function D0(a,b,c){var d=new LE(b.b.R().Pb);d.show(b.b.getVideoData());S(a,d);a.g=new KE;O(a.g.element,"html5-center-overlay");O(a.g.element,"html5-center-transform");S(a,a.g);a.b=new FA(a.j,"ytp-button-remote-reconnect");a.b.oa(Y(0,"YTP_MDX_PLAYER_RECONNECT_BUTTON"));S(a,a.b);b=new FA(a.j,"ytp-button-remote-maximize");b.oa(["div",["html5-center-transform","html5-center-overlay","ytp-button-remote-maximize-icon"]]);S(a,b);Bv(a.template,"reconnectbutton",a.b);Bv(a.template,"thumbnail",d);Bv(a.template,
"loadingicon",a.g);Bv(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);E0(a);Bv(a.template,"receiver",c)}function F0(a,b){Bv(a.template,"statustext",b)};function I0(a,b,c,d){this.g=a;a.subscribe("onVolumeChange",this.yo,this);d||a.subscribe("onPlaylistUpdate",this.xo,this);this.j=b;b.subscribe("reconnect-button-click",this.Ao,this);b.subscribe("maximize-button-click",this.zo,this);this.b=c;c.subscribe("proxyStateChange",this.Bo,this);c.subscribe("remotePlayerChange",this.Dk,this);c.subscribe("remoteQueueChange",this.Ek,this);this.F=new Pt;this.B=this.A=NaN;this.D=0;this.k={};this.C=new Pk(this.Ju,1E3,this);S(this,this.C);this.I=0;this.o=d;this.o||
(a=pi("yt-player-remoteservice-listid"),b=this.g.b,b.getVideoData().La&&b.getVideoData().La!=a?this.b.Fk(b.getVideoData().videoId,J0(this.g),b.getCurrentTime()):this.b.mi(b.getVideoData().videoId,b.getCurrentTime()),b.jc()?mi("yt-player-remoteservice-listid",b.getVideoData().La):qi("yt-player-remoteservice-listid"));(a=this.g.b.ki("captions","track"))&&K0(this,a);this.Ek();this.Dk()}w(I0,Hh);f=I0.prototype;
f.J=function(){L0(this,new Pt);M0(this);N0(this);this.g.ja("onVolumeChange",this.yo,this);this.o||this.g.ja("onPlaylistUpdate",this.xo,this);Kh(this.j)||(this.j.ja("reconnect-button-click",this.Ao,this),this.j.ja("maximize-button-click",this.zo,this));Kh(this.b)||(this.b.ja("proxyStateChange",this.Bo,this),this.b.ja("remotePlayerChange",this.Dk,this),this.b.ja("remoteQueueChange",this.Ek,this));O0(this,this.k);this.b=this.j=this.g=null};
f.NC=function(a,b){2==this.b.b||(P0(this)?this.$B.apply(this,arguments):this.ZB.apply(this,arguments))};function Q0(a,b){var c=a.g.b.getVideoData().Oa;a.g.H("command_progress",b,c)}f.ZB=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":R0(this,this.g.b.getCurrentTime());break;case "control_seek":R0(this,c[0])}};
f.$B=function(a,b){if(1081==Hm(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==Hm(this.b).b?S0(this):T0(this);break;case "control_play":T0(this);break;case "control_pause":S0(this);break;case "control_seek":this.I=c[0];Qk(this.C);break;case "control_subtitles_set_track":K0(this,c[0])}};
f.yo=function(a){if(P0(this)){var b=Math.round(a.volume);a=!!a.muted;var c=Hm(this.b);b==c.volume&&a==c.muted||this.b.setVolume(b,a)}};f.xo=function(){var a=pi("yt-player-remoteservice-listid"),b=this.g.b;b.getVideoData().La!=a&&(this.b.Fk(U0(this),J0(this.g),b.getCurrentTime()),mi("yt-player-remoteservice-listid",b.getVideoData().La))};f.Ao=function(){N0(this);this.b.k.reconnect();E0(this.j)};
f.zo=function(){var a=this.g,b={video_id:a.b.getVideoData().videoId},b=new Ir(b),b=wH(a.app.Eb.R(),b,{});lu(a,b)};f.Bo=function(a,b){N0(this);2==b&&this.gr()};
f.Dk=function(){if(P0(this)){M0(this);var a=Hm(this.b);switch(a.b){case 1:V0(this);L0(this,new Pt(8));break;case 3:L0(this,new Pt(1));break;case 0:L0(this,new Pt(2));this.C.stop();var b=this.g.b;(b=Ls(b.app,b.b||1))&&b.rg(!0);Q0(this,this.g.b.getVideoData().Oa);break;case 2:L0(this,new Pt(4));Q0(this,zm(a));break;case -1:L0(this,new Pt);break;case -1E3:L0(this,new Pt(128))}0==this.D&&(b=this.g.b,(b=Ls(b.app,b.b||1))&&b.rg(!1));this.D=a.b;a=Hm(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,O0(this,a));a=Hm(this.b);-1==a.volume||Math.round(this.g.b.Ko())==a.volume&&this.g.b.Lo()==a.muted||(this.g.b.setVolume(a.volume),a.muted?this.g.b.Mo():this.g.b.No())}else L0(this,new Pt)};f.Ek=function(){P0(this)||(Q0(this,0),M0(this),L0(this,new Pt))};
function K0(a,b){if(P0(a)){if(b){var c={style:a.g.b.ki("captions","displaySettings")};cc(c,b);a.b.hm(U0(a),c)}else a.b.hm(U0(a),null);a.k=Hm(a.b).j}}function S0(a){a.b.pause();var b=Hm(a.b);Q0(a,zm(b));M0(a);L0(a,new Pt(4))}function T0(a){a.b.play();V0(a);L0(a,new Pt(8))}function R0(a,b){if(a.o){var c=a.g.b.jc();c?Nm(a.b,U0(a),b,c.Ga,a.g.b.getVideoData().La):Nm(a.b,U0(a),b)}else a.b.mi(U0(a),b);L0(a,new Pt(1))}
function O0(a,b){if(b){var c=a.g.b.ki("captions","tracklist",{nq:1}),c=B(c,function(a){return a.languageCode==b.languageCode&&a.name==b.trackName});a.g.b.gp("captions","track",c)}else a.g.b.hp("captions")}f.Ju=function(){var a=this.I;M0(this);Q0(this,a);-1==Hm(this.b).b?R0(this,a):this.b.tr(a);L0(this,new Pt(1))};function P0(a){return xm(Hm(a.b))==U0(a)}function U0(a){return a.g.b.getVideoData().videoId}
function V0(a){M0(a);var b=Hm(a.b);1==b.b&&L0(a,new Pt(8));Q0(a,zm(b));a.A=L(u(function(){V0(this)},a),500)}function M0(a){N(a.A);a.A=NaN}f.gr=function(){N0(this);M0(this);var a=this.b.k.getReconnectTimeout();if(2!=this.b.b||isNaN(a))E0(this.j);else{var b=this.j;H0(b,Y(0,"YTP_MDX_PLAYER_RECONNECT_TIME",{FORMATTED_TIME:Dv(a/1E3)}));b.b.show();this.B=L(u(this.gr,this),1E3)}};function N0(a){N(a.B);a.B=NaN}
function L0(a,b){N0(a);var c=a.F;a.F=b;var d=a.j;F0(d,Y(0,"YTP_MDX_STATUS_CONNECTED"));G0(d,1);W(b,1)&&(d=a.j,F0(d,Y(0,"YTP_MDX_STATUS_CONNECTED")),G0(d,2));W(b,128)&&H0(a.j,Xe("YTP_MDX_PLAYER_ERROR"));d=a.g;tu(d,W(b,8));d.app.H("presentingplayerstatechange",new $M(b,c))};function W0(a){EK.call(this,a);this.F=a.g.j;this.A={key:Si(),name:Y(0,"YTP_MDX_MY_COMPUTER")};this.k=this.j=null;this.I=[];this.g=null;this.B=new DC(this.F,"ytp-remote-button",Y(0,"YTP_MDX_TOOLTIP"),"ytp-remote-button-active");S(this,this.B);this.B.listen("click",this.Hu,this);this.o=new ZB(this.F,u(this.Fu,this),u(this.Gu,this));O(this.o.K(),"ytp-drop-down-background");S(this,this.o);this.C=new EA;this.C.b=Y(0,"YTP_MDX_TITLE");this.C.element=this.o;this.C.A=this.ua;S(this,this.C);this.D=!1}
w(W0,EK);var X0=["play_pause","seek"],Y0=["captions"];f=W0.prototype;f.ua="remote";f.hc="remote";f.Ja=function(){return this.app.Eb.R().Cg};f.create=function(){W0.G.create.call(this);this.I.push(Sh("yt-remote-connection-change",this.Yq,this));this.Yq();this.H("module_menu_button_add",this.ua,this.B);vu(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(){Uh(this.I);this.I.length=0;Jh(this.g);this.g=null;W0.G.destroy.call(this)};
f.load=function(){if(!this.loaded){W0.G.load.call(this);this.app.Eb.R().rd&&(this.D=!0);NG(this.app,!1);HC(this.B,"ytp-remote-button-active");var a=this.o.getSelected();this.k=new C0(this,a.name,this.F);pt(this.b,this.k.K());this.g&&(a=this.app.Eb.R(),this.j=new I0(this,this.k,this.g,a.b.o||a.b.j));this.b.yk();this.H("command_redirect_controls",this,X0,Y0);var b=ao();0!=b&&((a=this.g?xm(Hm(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=Kn();a&&a.getLoungeToken()||(NG(this.app,this.D),this.D=!1);HC(this.B,"ytp-remote-button");bC(this.o,this.A);ru(this);Lh(this.j,this.k);this.k=this.j=null;W0.G.unload.call(this)}};f.J=function(){this.destroy();Lh(this.j,this.k,this.g);this.g=this.k=this.j=null;W0.G.J.call(this)};f.ke=function(a,b){this.j&&this.j.NC.apply(this.j,arguments)};
function et(a,b,c){var d=c||a.A;b.unshift(a.A);Z0(a,b);d=B(b,function(a){return a.key==d.key});bC(a.o,d);a.k&&Bv(a.k.template,"receiver",d.name)}function J0(a){var b=a.b.jc();if(b){a=[];for(var c=0;c<b.tc;c++)a[c]=qs(b,c).videoId;return a}return[a.b.getVideoData().videoId]}f.Yq=function(){var a=co();a?(this.g=a,this.load(),this.j||(a=this.app.Eb.R(),this.j=new I0(this,this.k,this.g,a.b.o||a.b.j))):(Jh(this.g),this.g=null,this.unload())};
f.Gu=function(a){xu(this);if(a!=this.o.getSelected())if(bC(this.o,a),a.key==this.A.key)a=this.g?Hm(this.g):null,Wn(),this.unload(),a&&xm(a)==this.b.getVideoData().videoId&&(0<zm(a)&&this.b.Kg(zm(a)),1==a.b&&this.b.Jg());else{var b=0,c="",d=this.b.jc();d&&(b=d.Ga,c=this.b.getVideoData().La);b={videoIds:J0(this),listId:c,videoId:this.b.getVideoData().videoId,index:b,currentTime:this.b.getCurrentTime()};Tn(a,b);this.k&&Bv(this.k.template,"receiver",a.name);Jh(this.j);this.j=null;this.load()}};
function Z0(a,b){z(b,function(a){a.toString=function(){return a.key}},a);$B(a.o,b)}f.Hu=function(a){var b=In();1==b.length&&"cast-selector-receiver"==b[0].key&&(a.stopImmediatePropagation(),a.preventDefault(),Aj())};f.Fu=function(a){return a.name};function $0(a,b){this.j=a;this.k=b;this.b=!1}function a1(a,b){var c;if(c=wq("grc",""))vq(""),c=!0;if(c){c=vq("").span;var d=vq("").tick;"grc"in d&&(c[b]=v()-d.grc)}else wq(b,"")||a.g(b)}$0.prototype.g=function(a){uq(a,void 0,"")};$0.prototype.info=function(a,b){Aq("")[a]=b};
function b1(a){var b=a.j;if(!b.Ck||!("detailpage"==b.$||"leanback"==b.$||"embedded"==b.$&&b.Ph)||a.b)return NaN;a.b=!0;Re("TIMING_ACTION")||Pe("TIMING_ACTION",a.j.aa);var b=a.k.C,c;for(c in b)uq(c,b[c],"");a=a.k.B;for(var d in a)c=d,b=a[d],Aq("")[c]=b;if(d=Bg("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;Aq("").yt_vis=d}Aq("").yt_pt="html5";var e;if(wq("_start",""))if(c=vq("").tick,d=vq("").span,b=Aq(""),
a=q("yt.timing.reportbuilder_")){if(a=a(c,d,b,""))zq(a),Bq(""),sq();e=NaN}else{a={v:2,s:"youtube",action:Re("TIMING_ACTION")};var g=Re("TIMING_INFO")||{},h;for(h in g)b[h]=g[h];h=b.srt;delete b.srt;var k;h||0===h||(k=rq.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=rq.getEntriesByName?rq.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(!qq){k||(k=rq.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,ka(p))){var p=p(),r=1E3*Math.min(p.requestTime||Infinity,p.startLoadTime||Infinity),r=Infinity===r?0:l.navigationStart-r;l=Math.max(0,Math.round(1E3*p.firstPaintTime+r)||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);qq=!0}.001>Math.random()&&yq(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(",");zq(a);(e=q("ytdebug.logTiming"))&&e(a,t,y);Bq("");sq();e=t.aft+(h||0)}else e=NaN;return e}Ef("hidden",window.document);var ct={"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 c1(a,b){$i.call(this);var c=b;c instanceof Wg||(c=new Wg(c));this.O=c;this.b=new MK(this.O.args||{});S(this,this.b);this.g=new PJ(this);S(this,this.g);this.g.subscribe("templateready",this.Gt,this);this.g.subscribe("resize",this.Mt,this);this.I=1;this.za={};this.T=null;this.D=this.b.Wj?us():{volume:100,muted:!1};this.gb=this.b.zb()?new kt(this,1):new xs(this,1);S(this,this.gb);this.fb=new ot(this);S(this,this.fb);this.Eb=new ot(this,1);S(this,this.Eb);this.aa=this.k=null;this.ka={};var c=
this.b,d=new fK;cE(c)&&(d.j=!0,d.B=.1);c.b.I&&(d.g=8,d.b=!0,d.j=!0);c.b.O&&(d.g=8,d.j=!0);c.b.za&&(d.k=5,d.C=!0);c.b.la&&(d.A=12500);c.b.pa&&(d.o=.9);this.wa=new VJ(d);c=new aN(this.b,1);d={};d.internalvideodatachange=this.qt;d.liveviewshift=this.At;d.playbackready=this.tt;d.playbackstarted=this.ut;d.statechange=this.vt;d.urlauthexpired=this.Ht;for(var e in d)c.subscribe(e,d[e],this);this.j=c;this.j.ca=this.wa;S(this,this.j);this.hb={beginseeking:this.wt,endseeking:this.zt,internalvideodatachange:this.Ot,
internalvideoformatchange:this.It,progresssync:this.Ft,seekto:this.Nt,onLoadProgress:this.Bt,onVideoProgress:this.Jt,newlicensesession:this.Lt,playbackready:this.Ct,statechange:this.Et,connectionissue:this.xt,heartbeatparams:this.Kt,videoelementevent:this.Pt};this.A=null;this.Ba=this.pa=-1;e=new gK;c=this.fb;e.g!=c&&(hK(e),e.k={},e.g=c);c={};c.loaded=u(this.$n,this);c.unloaded=u(this.ao,this);c.command_pause=d1(this.pauseVideo,this);c.command_play=d1(this.Nd,this);c.command_seek=d1(this.sf,this);
c.command_disable_controls=u(this.mg,this);c.command_enable_controls=u(this.Xh,this);c.command_redirect_controls=u(this.eo,this);c.command_stop_redirect_controls=u(this.Yh,this);c.command_redirected_show_is_playing=u(this.g.hk,this.g);c.command_progress=u(this.gk,this);c.command_add_cuerange=u(this.co,this);c.command_remove_cuerange=u(this.fo,this);c.command_remove_cuerange_all=u(this.bo,this);c.command_preroll_ready=u(this.ho,this);c.command_update_cuerange_markers=u(this.jo,this);c.command_show_dialog=
u(this.fk,this);c.command_clear_video_overlays=u(this.Uh,this);c.command_navigate_to_url=u(this.dk,this);c.command_log=u(this.Zh,this);c.publish_external_event=u(this.Sh,this);c.module_menu_button_add=u(this.Vn,this);c.module_menu_button_remove=u(this.Wn,this);c.module_menu_item_add=u(this.Xn,this);c.module_menu_item_remove=u(this.Yn,this);c.module_menu_show=u(this.Zn,this);c.vss_segment=u(this.Qt,this);e.o=c;this.C=e;S(this,this.C);this.L=new $0(this.b,this.C);this.F=this.B=null;this.N={};this.U=
null;this.V={};this.ca=null;this.Wa=0;this.Ra=!1;this.P=!0;this.o=null;this.la=1;this.da=this.Ca=null;this.Ha=this.Ia=!1;this.xa=null;this.cb=0;this.nb=R(window,"popstate",u(this.Dt,this),!1);e=new Ir(this.O.args);Yr(e)&&(cN(this.j,e,u(this.ng,this)),"detailpage"==this.b.$&&(c=e.videoId,c=(d=pi("yt-player-restore-playhead"))?d[c]:void 0,c&&(e.Ta=c)),qi("yt-player-restore-playhead"),this.b.Ph&&iN(this.j));a1(this.L,"fs");this.g.initialize(a);QG(this,"init")}w(c1,$i);c1.g="defaultcontext";c1.b={};
c1.create=function(a,b){try{var c=c1.j(a);if(c1.b[c]){try{c1.b[c].dispose()}catch(d){Ve(d)}c1.b[c]=null}var e=new c1(a,b);Ih(e,function(){c1.b[c]=null});return c1.b[c]=e}catch(g){throw Ve(g),g;}};c1.j=function(a){return s(a)?a:"player"+ma(a)};
function e1(a){a.k=lE.getTag(!0);a.aa=a.k;a.A&&sN(a.A,a.k);Nt(a.k,a.la);a.b.Rd?(a.da&&Og(a.da),a.da=R(a.k,"volumechange",u(a.gy,a),!1)):a.k.setVolume(a.D.volume,a.D.muted);var b=a.g;b.b=a.k;b.pa=new xf(0,0,0,0);b.b.parentNode||b.g.appendChild(b.b);O(b.b,"video-stream");O(b.b,"html5-main-video");var c=b.app.R();c.Qb&&c.Pd&&b.b.setAttribute("controls",!0);c.pi&&b.b.setAttribute("webkit-playsinline","");b.b.setAttribute("x-webkit-airplay","allow");c.Lk&&(b.za=R(b.b,"click",u(b.b.play,b.b)));a.b.Pa=a.k;
Ht(a.k)}function f1(a){if(a.k){a.da&&(Og(a.da),a.da=null);a.A&&qH(a.A);var b=a.g;b.b&&(dd(b.b),b.b=null);a.b.Pa=null;lE.releaseTag(a.k);a.k=null}}function nH(a,b){a.b.Tb?(a.U&&(Kf(a.k,a.U.left,a.U.top),Vf(a.k,Af(a.U)),a.U=null),Mt(a.k),qH(a.A),sN(a.A,a.k),Nt(a.k,a.la)):lE.releaseTag(b)}
function p_(a,b){if(a.A!=b){a.A&&(hK(a.C),s_(a));if(b!=a.j){var c=b.getPlayerType();a.ka[c]=b}a.A=b;b.ca=a.wa;a.k&&sN(b,a.k);var c=a.hb,d;for(d in c)b.subscribe(d,c[d],a);g1(a,b,b.getVideoData());b.P.b&&h1(a,"dataloaded",b,b.getVideoData())}}function s_(a){qH(a.A);var b=a.A,c=a.hb,d;for(d in c)b.ja(d,c[d],a);b=a.A;b!=a.j&&(c=b.getPlayerType(),a.ka[c]==b&&delete a.ka[c]);a.A=null}function Ls(a,b){return b?1==b?a.j:a.ka[b]||null:a.A}
function i1(a){var b=a.C,c=[zB.g,HH,Rv,eJ,ZD,lJ,pJ,gE,vJ];c.push(gI.b);z(c,b.Iq,b);a.H("videoready",a.getVideoData())}f=c1.prototype;f.tt=function(){j1(this,5)};f.Ct=function(a){6!=this.I&&(k1(this),a=a.getPlayerState(),W(a,8)&&!W(a,2)&&this.Nd())};function ht(a){!a.F&&a.Eb.R().Cg&&(a.F=new W0(a),l1(a,a.F));if(a.F){var b=Pn();et(a.F,In(),b);var c=a.F;c&&!c.Ac&&c.Ja(a.Eb)&&c.create();b&&a.F.load()}}
function l1(a,b){S(a,b);b.subscribe("loaded",a.$n,a);b.subscribe("unloaded",a.ao,a);b.subscribe("command_pause",d1(a.pauseVideo,a));b.subscribe("command_play",d1(a.Nd,a));b.subscribe("command_seek",d1(a.sf,a));b.subscribe("command_disable_controls",a.mg,a);b.subscribe("command_enable_controls",a.Xh,a);b.subscribe("command_redirect_controls",a.eo,a);b.subscribe("command_stop_redirect_controls",a.Yh,a);b.subscribe("command_redirected_show_is_playing",a.g.hk,a.g);b.subscribe("command_progress",a.gk,
a);b.subscribe("command_add_cuerange",a.co,a);b.subscribe("command_remove_cuerange",a.fo,a);b.subscribe("command_remove_cuerange_all",a.bo,a);b.subscribe("command_update_cuerange_markers",a.jo,a);b.subscribe("command_preroll_ready",a.ho,a);b.subscribe("command_show_dialog",a.fk,a);b.subscribe("command_clear_video_overlays",a.Uh,a);b.subscribe("command_log",a.Zh,a);b.subscribe("command_navigate_to_url",a.dk,a);b.subscribe("publish_external_event",a.Sh,a);b.subscribe("module_menu_button_add",a.Vn,a);
b.subscribe("module_menu_button_remove",a.Wn,a);b.subscribe("module_menu_item_add",a.Xn,a);b.subscribe("module_menu_item_remove",a.Yn,a);b.subscribe("module_menu_show",a.Zn,a);b.subscribe("command_log_timing",a.C.D,a.C)}function gt(a){a&&a.Ac&&a.destroy()}f.Ua=function(a,b){this.H.apply(this,arguments);this.af.apply(this,arguments)};f.Kh=function(a,b){var c=ub(arguments);this.b.zb()&&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 dt(a){return a.j.getVideoData()}f.ng=function(){var a=TK(this.b);sa(a,kK(this.C));this.B&&sa(a,this.B.$g());a.fs=this.b.mb;a.volume=Math.round(this.D.volume);a.mos=this.D.muted?1:0;return a};f.fk=function(a){this.g.Rg(a)};
f.Gt=function(){this.b.gi=this.g.element;this.g.Qg();var a=this.gb;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.Ew,this);b=document;var c;"onfullscreenchange"in b?c="fullscreenchange":(c=wg+"fullscreenchange",c="on"+c in b?c:null);"msfullscreenchange"==c&&(c="MSFullscreenChange");this.Ca=c?R(b,c,a):null;b=this.O.args;if(cq()){e1(this);a=dt(this);c=this.g.Fb();this.b.Yc=c;this.Ua("onVolumeChange",this.D);"detailpage"==this.b.$?lt(this):b&&(b.playlist||b.list||
b.api)&&(m1(this,b),Yr(a)||(b=this.o,c=u(this.Ep,this),b.Me=c,b.be&&L(b.Me,0)));if(b=this.O.args.jsapicallback)ka(b)||(b=q(b)),b&&d1(u(b,m,this.b.wk),m);zn(this.b.b.j);this.b.Cg=ft(this.b)&&!E(In());p_(this,this.j);this.b.Ph&&Yr(a)?n1(this):"leanback"!=this.b.$&&o1(this)}else Nv(this.j,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0);this.g.Fl()};function o1(a){a.H("initializingmode");j1(a,2)}
function n1(a){W(a.getPlayerState(),128)||(a.H("initializingmode"),p_(a,a.j),j1(a,3),a.b.Tb||(f1(a),e1(a),sN(a.j,a.k)),nN(a.j),p1(a,3))}function d1(a,b){return function(){var c=Array.prototype.slice.call(arguments);L(function(){a.apply(b||this,c)},0)}}f.dk=function(a,b){b?HJ(this,a):(window.ytspf||{}).enabled?spf.navigate(a):window.location=Xd(a,{})+""};
f.Zh=function(a,b,c){var d=Ls(this);b.event=a;d.o&&(a=d.o,b.rt=DM(a.b).toFixed(3),sa(b,SM(a.b)),sa(b,UM(a)),delete b.fexp,a=a.b.g.rb+"player_204","streamingerror"==b.event&&(a="//s.youtube.com/stream_204"),b=zi(a,b),lf(b,c))};function Is(a,b){if(!isNaN(b)&&a.k){var c=1,c=a.b.vg?Kq:[1],c=1>b?B(c,function(a){return a>=b}):mb(c,function(a){return a<=b});a.la!=c&&(a.la=c,a.j==a.A&&Nt(a.k,c),a.H("onPlaybackRateChange",c))}}
function Js(a,b){var c=Ls(a,b);return c&&c.getVideoData().b?c.getVideoData().b.video.b:"unknown"}function EG(a){return(a=Ls(a,void 0))?Jp(lM(a.pa,a.b)):"unknown"}function Ks(a,b,c,d){if(c=Ls(a,c))a=a.b.o,"mobile"!=a&&"tablet"!=a&&(b=Dp(b,d||b,!0),nJ(c,"m",b))}f.getCurrentTime=function(a){return(a=Ls(this,a))?a.getCurrentTime():0};function Bs(a,b){var c=Ls(a,b);return c?c.Td():0}
function Ts(a,b){var c=a.j.getDebugInfo(b);c.debug_playbackQuality=Js(a);c.debug_date=(new Date).toString();delete c.uga;return pf(c)}function kJ(a,b){var c=a.getVideoData(),d=!!c.xa||!!c.Lf||!b;a.H("threedenabled",d);d&&a.k.setAttribute("mozStereoMode","1");gJ()&&(a.k.setAttribute("mozStereoMode",d?"1":"0"),c=Tp[d?c.oB:0],d=document.createElement("NvStereoExtDataElement"),d.setAttribute("stereoMode",c),ad(document.documentElement,d),Tg(d,"3DModeEvent"))}
f.getPlayerState=function(a){return(a=Ls(this,a||1))&&a.getPlayerState()};f.Pt=function(a){var b=a.target;switch(a.type){case "loadedmetadata":a1(this.L,"fvb");this.Wa=L(u(this.g.Vf,this.g),16);break;case "loadstart":a1(this.L,"gv");break;case "progress":case "timeupdate":a1(this.L,"1pb"),2<=Ct(b.buffered)&&a1(this.L,"l2s")}};
f.Lt=function(a){if(this.Ha){var b=this.cb.toString();this.cb++;this.xa[b]=a;a={request:ub(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.Bt=function(a,b){this.Kh("onLoadProgress",b)};f.Jt=function(a,b){this.Kh("onVideoProgress",b)};f.Ft=function(){this.gk()};f.gk=function(a,b){this.H("progresssync",a,b)};
f.vt=function(a){var b;(b=!W(a.state,2))||(this.o&&("embedded"==this.b.$||this.b.mb)&&FH(this)?(Ws(this),b=!0):b=!1,b=!b);b&&(W(a.state,2)&&(this.pauseVideo(),W(a.b,32)&&this.j.Mi(),this.b.Pb&&GG(this,!1)),W(a.state,128)&&(b=a.state,Hs(this),b=b.b,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=Xe(b.messageKey)),this.H("onError",ct[b.errorCode]||5),this.H("onDetailedError",b)),this.H("applicationplayerstatechange",a),W(a.state,2)&&(a=this.getVideoData(),a.ib&&!a.tb&&
this.mg(["play_pause"])))};f.Et=function(a){!W(a.state,32)&&0>Ov(a,16)&&(!W(a.state,8)||this.k.ended&&!W(a.state,2)||this.Nd());this.H("presentingplayerstatechange",a);this.af("onStateChange",a);p1(this,Wt(a.state))};function g1(a,b){hK(a.C);Is(a,1);a.Ua("videoplayerreset",b)}
function h1(a,b,c,d){if(a.k){if("dataloaded"==b)if(NK(c.R(),d.k),a.A==a.j){zn(a.b.b.j);var e=ft(a.b)&&!!Pn(),g;if(g=!e)g=dt(a).ip&&!a.b.Pb;if(g){var h="YTP_DEVICE_FALLBACK";sc||mr("iemobile")||mr("xbox")&&mr("trident")||mr("nintendo wiiu")||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");Nv(a.j,"html5.unsupportedads",h,void 0)}else if(g=dt(a),!(g.j||g.ue||g.te||g.aa||g.U)||e||gN(a.j)){Zr(g);e&&j1(a,6);e=B0.Ja;!a.B&&e(a)&&(a.B=new B0(a),a.B&&l1(a,a.B));try{(h=a.B)&&!h.Ac&&h.Ja(a.Eb)&&h.create()}catch(k){Ve(k),
a.j&&rN(a.j,"ad")}ht(a);i1(a)}else Nv(a.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else i1(a);1==c.getPlayerType()&&(a.getVideoData().Uk?(a.T=$b(a.D),a.mg(["audio"]),h=a.k,h.Zl=!0,h.muted=!0):(Gs(a,"audio")&&a.Xh(["audio"]),a.k.Zl=!1,a.T&&(OG(a,a.T),a.T=null)),h=a.getVideoData(),h.ib&&!a.b.ok?Nv(a.j,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0):h.ib&&!h.tb?a.mg(["seek"]):a.Xh(["seek"]),d.V||d.o.focEnabled||d.o.rmktEnabled||a.b.vf)&&(h=a.getVideoData(),e=1E3*h.Oa,
q1(a,"part2viewed",1,e),a.b.b.A&&q1(a,"engagedview",Math.max(1,1E3*h.qe),e),q1(a,"videoplaytime25",.25*e,e),q1(a,"videoplaytime50",.5*e,e),q1(a,"videoplaytime75",.75*e,e),q1(a,"videoplaytime100",e,2147483647),q1(a,"conversionview",e,2147483647));a.Ua("videodatachange",b,d,c.getPlayerType())}}f.qt=function(a){if("newdata"==a){gt(this.B);gt(this.F);this.Ia=!1;a=[];for(var b in this.N)Gs(this,b)&&a.push(b);this.N={};0<a.length&&this.H("controlsenabled",a);this.Yh();this.za={};this.L.b=!1}};
f.Ot=function(a,b,c){"newdata"==a?g1(this,b):h1(this,a,b,c)};f.It=function(a,b){var c=this.A.getVideoData();a==c&&this.H("onPlaybackQualityChange",a.b.video.b,b)};function lt(a){var b=ZG();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)});m1(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 m1(a,b){if(a.o){var c=Os(a.C,"playlist");if(c){var d=a.C;if(!d.g||c.Dm(d.g))c.destroy(),qb(d.b,c)}}Jh(a.o);b?(a.o=new fs(b),a.C&&(c=a.C,z([gI.b],c.Iq,c))):a.o=null}function q1(a,b,c,d){b in a.za||(c=new Xt(c,d,{id:b,priority:1}),c.$a.subscribe("onEnter",a.ys,a),c.$a.subscribe("onExit",a.ys,a),a.j.A.wi(c),a.za[b]=c)}
f.ys=function(a){var b=a.getId(),c=dt(this);"part2viewed"==b?(c.V&&!this.b.b.A&&lf(c.V),c.of&&lf(c.of)):"conversionview"==b?XM(this.j.o):"engagedview"==b&&this.b.b.A&&lf(c.V);if(c.pa){var d;d=a.getId();d=zi(c.pa,{label:d});lf(d)}switch(b){case "videoplaytime25":lf(c.ak);break;case "videoplaytime50":lf(c.Zj);break;case "videoplaytime75":lf(c.Vj);break;case "videoplaytime100":lf(c.Yj)}this.b.vf&&this.b.vf[a.getId()]&&(b=this.b.vf[a.getId()],c=x(b)?!1:-1!=b.search(Je)||-1!=b.search(He),lf(b,void 0,c));
this.j.A.Ag(a)};function j1(a,b){b!=a.I&&(2==b&&(p1(a,-1),p1(a,5)),a.I=b,a.H("appstatechange",b))}function p1(a,b){a.A&&2==a.A.getPlayerType()?a.Ba!=b&&(a.Ba=b,a.Kh("onAdStateChange",b)):a.pa!=b&&(a.pa=b,a.Kh("onStateChange",b))}function QG(a,b){if(a.b.b.D){var c={controlClicked:b};a.b.mb&&(c.fs=1);a.Zh("controlclicked",c)}}f.sf=function(a,b,c,d){(d=Ls(this,d))&&oN(d,a,!1!=b,c)};f.Nt=function(a,b){var c=a.getVideoData();if(1==this.I||2==this.I)c.Ta=b;2==this.I?n1(this):this.Ua("seekto",b)};f.wt=function(){this.Ua("beginseeking")};
f.zt=function(){this.Ua("endseeking")};f.setVolume=function(a){var b=this.D;b.volume=a;OG(this,b)};function OG(a,b){a.D=b;b.volume=Hb(b.volume,0,100);if(a.b.Wj&&!a.b.Rd){var c={};c.volume=isNaN(b.volume)?us().volume:Hb(b.volume,0,100);c.muted=void 0==b.muted?us().muted:b.muted;mi("yt-player-volume",c,2592E3)}Gs(a,"audio")?a.T&&(a.T=$b(b),a.Ua("onVolumeChange",b)):(k1(a),a.b.Rd||a.Ua("onVolumeChange",b))}function Cs(a){var b=a.D;b.muted=!0;OG(a,b)}
function Ds(a){var b=a.D;b.muted=!1;5>b.volume&&(b.volume=5);OG(a,b)}function Ps(a,b,c){b.list=b.list||null;b=new Ir(b);var d;if(d=a.b.b.o&&"detailpage"==a.b.$&&a.F&&a.F.loaded){d=b.videoId;var e;e=a.F;e=e.g?xm(Hm(e.g)):"";d=d!=e}if(d)return!1;(d=a.getVideoData())&&d.La!=b.La&&m1(a,null);b.La&&"detailpage"==a.b.$&&lt(a);return r1(a,b,void 0,c)}
function r1(a,b,c,d){wq("_start","")||(a.L.g("_start"),a.L.info("srt",0));var e=Ls(a,d);if(!e)return!1;N(a.Wa);b.tf=pq(b.tf,c);Hs(a,d);cN(e,b,u(a.ng,a));if(!hN(e))return!1;e==a.j?(j1(a,1),n1(a)):nN(e);return!0}function Ys(a,b){var c=r1(a,b);zs(a,c,void 0)}function zs(a,b,c){c=Ls(a,c);b&&c==a.j&&(c.getVideoData().re=!0)}function Qs(a,b,c){b.list=b.list||null;s1(a,new Ir(b),c)}function s1(a,b,c){var d=Ls(a,c);d&&(Hs(a,c),cN(d,b,u(a.ng,a)),hN(d)&&(NK(d.R(),b.k),d==a.j&&(j1(a,1),o1(a))))}
function Vs(a,b,c,d,e){if(la(b)&&!ha(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},s(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;m1(a,b);b=a.o;a=u(a.Ep,a);b.Me=a;b.be&&L(b.Me,0)}f.Ep=function(){var a=qs(this.o);this.getVideoData().lg||!this.P?Ys(this,a):a&&s1(this,a)};function FH(a){var b=ZG();return!(!a.o||!ns(a.o)||b&&!b.autoPlay)}
function Ws(a){a.o&&(a.o.be?ns(a.o)&&Ys(a,os(a.o)):(os(a.o),a.P=!1))}function Xs(a){if(a.o)if(a.o.be){var b=a.o;(b.Qf||0<=b.Ga-1)&&Ys(a,rs(a.o))}else rs(a.o),a.P=!1}function ZG(){var a=q("yt.www.watch.lists.getState");return a?a():null}function Zs(a){return a.o&&a.o.j?a.o.j.toString():null}function Ss(a,b){var c=null;if(b){var d=a.getCurrentTime(1),e=Bs(a,1);10<d&&10<e-d&&(c={t:Math.floor(d)})}return wH(a.b,dt(a),null,c)}
function Us(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 Xt(1E3*c,1E3*d,b);c.$a.subscribe("onEnter",a.pC,a);c.$a.subscribe("onExit",a.qC,a);a.j.A.wi(c);a.H("cuerangesadded",[c]);return!0}f.pC=function(a){this.H("onCueRangeEnter",a.getId())};f.qC=function(a){this.H("onCueRangeExit",a.getId())};f.co=function(a,b){var c=Ls(this,b);c&&(c.A.wi.apply(c.A,a),this.H("cuerangesadded",a))};
f.fo=function(a,b){var c=Ls(this,b);c&&(c.A.Ag.apply(c.A,a),this.H("cuerangesremoved",a))};f.bo=function(a,b){var c=Ls(this,b);if(c){for(var c=c.A,d=c.j.length-1;0<=d;d--)c.j[d].namespace==a&&au(c,d);c.lc()}};f.jo=function(a){this.H("cuerangemarkersupdated",a)};f.ho=function(a,b){var c=Ls(this,b);c&&rN(c,a)};
f.ut=function(){t1(this,b1(this.L));if(!this.Ia&&"detailpage"==this.b.$){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.yb&&(b.plid=a.b.yb);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=Re("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);zq(a)}}this.Ra=!1};
function t1(a,b){if(!isNaN(b)&&0<b&&a.j){var c=a.j;c.o&&0<b&&(c.o.k.j.aft=[b])}}f.$n=function(a){"remote"==a?(j1(this,6),gt(this.B)):this.Kh("onApiChange")};f.ao=function(a){"remote"==a&&o1(this)};f.gy=function(){if(!Gs(this,"audio")){var a={volume:100*this.k.volume,muted:this.k.muted};this.D=$b(a);this.Ua("onVolumeChange",a)}};function k1(a){var b=a.b.Rd?Ir.b:a.getVideoData().dq;a.k.setVolume(a.D.volume*b,a.D.muted)}f.Ew=function(){u1(this,!!Vg())};f.Dt=function(){u1(this,!1)};
function u1(a,b){a.g.sm(b);if("detailpage"==a.b.$&&!b){var c=dt(a);if(Re("VIDEO_ID")!=c.videoId){var d=a.getCurrentTime(),e={};e[c.videoId]=d;mi("yt-player-restore-playhead",e,172800);a.pauseVideo()}}a.b.mb=b;a.g.Vf();a.Ua("fullscreentoggled",b);c={fullscreen:b,videoId:dt(a).videoId};Zs(a)&&(c.listId=Zs(a));a.H("onFullscreenChange",c)}f.Mt=function(){YG(this)};f.Uh=function(){this.Ua("clearvideooverlays")};f.Vn=function(a,b){this.Ua("menu_button_add",a,b)};
f.Wn=function(a){this.Ua("menu_button_remove",a)};f.Xn=function(a){this.Ua("menu_item_add",a)};f.Yn=function(a){this.Ua("menu_item_remove",a)};f.Zn=function(a){this.Ua("menu_show",a)};f.Qt=function(a){(a=Ls(this,a))&&a.o&&AM(a.o.g)};f.At=function(a){this.Ua("liveviewshift",a)};
f.Sh=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(a1(this.L,"vr"),DN(this.A),t1(this,b1(this.L)));0==c&&e&&(this.j.O=e);var g=this.b;"leanback"==g.$&&g.zb()&&(0==c?this.aa=this.k:this.aa=d,this.H("onAdStateChange",c,e.video_id))}else this.H.apply(this,arguments)};f.af=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=Ls(this,a))&&(2==this.I?n1(this):W(a.getPlayerState(),2)?this.sf(0):uN(a))};f.pauseVideo=function(a){(a=Ls(this,a))&&a.pauseVideo()};function Hs(a,b){var c=Ls(a,b);c&&1!=a.I&&2!=a.I&&(qN(c),1==b&&gt(a.B))}function Es(a,b){if(!Gs(a,"play_pause")){var c=a.V.play_pause?a.ca:null;c?c.ke("control_play"):a.Nd(b)}}function Fs(a,b){if(!Gs(a,"play_pause")){var c=a.V.play_pause?a.ca:null;c?c.ke("control_pause"):a.pauseVideo(b)}}
function HG(a){var b;if(b=!Gs(a,"play_pause"))(b=!a.b.gc||2!=a.I)||(b=lE.hasTags(void 0));b&&((b=a.V.play_pause?a.ca:null)?b.ke("control_toggle_play_pause"):(b=Ls(a,void 0))&&(W(b.j,8)&&!W(b.j,2)?a.pauseVideo(void 0):a.Nd(void 0)))}function As(a,b,c,d,e){if(!Gs(a,"seek")){var g=a.V.seek?a.ca:null;g?g.ke("control_seek",b):a.sf(b,c,d,e)}}function NG(a,b){GG(a,!1);b!=a.b.rd&&(a.b.rd=b,a.H("SIZE_CLICKED",b),a.g.oh())}
function GG(a,b){if(a.b.mb!=b)if(Ug())if(b){var c=a.g.element,d=Cg(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=Cg(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else u1(a,b)}function vz(a){GG(a,!a.b.mb)}function HJ(a,b){GG(a,!1);a.pauseVideo();PH(b)}function PG(a){var b=a.getVideoData();"detailpage"==a.b.$&&a.b.mb&&Re("VIDEO_ID")==b.videoId?GG(a,!1):HJ(a,Ss(a,!0))}f.getAdState=function(){return this.B?this.B.getAdState():-1};
function YG(a){var b=a.g.Fb();a.b.Yc=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();Kb(d.Wa,c)||(d.Wa=c,b=!0)}c=AE(a.g);zf(a.b.yq,c)||(a.b.yq=c,b=!0);c=AE(a.g);zf(a.b.Cf,c)||(a.b.Cf=c,b=!0);b&&(nJ(Ls(a),"r"),a.H("resize",a.g.Vc()),a.Ua("onResize"))}}function Gs(a,b){return!(!a.N[b]||!a.N[b].length)}
f.mg=function(a,b){b=b||c1.g;var c=[];z(a,function(a){this.N[a]?0>this.N[a].indexOf(b)&&this.N[a].push(b):(this.N[a]=[b],c.push(a))},this);0<c.length&&this.H("controlsdisabled",c)};f.Xh=function(a,b){b=b||c1.g;var c=[];z(a,function(a){if(Gs(this,a)){var e=this.N[a].indexOf(b);0<=e&&this.N[a].splice(e,1);0==this.N[a].length&&c.push(a)}},this);0<c.length&&this.H("controlsenabled",c)};f.eo=function(a,b,c){this.Yh();this.ca=a;b&&z(b,function(a){this.V[a]=!0},this);c&&iK(this.C,a,c)};
f.Yh=function(){this.ca=null;this.V={};jK(this.C)};function $s(a,b,c,d){c=a.B&&b==a.B.ua?a.B.Fj(c,d):b&&c?(a=Os(a.C,b))?a.Fj(c,d):null:null;return c}f.Ht=function(){if(!this.Ra){this.Ra=!0;var a=this.getVideoData(),b=Ls(this).getCurrentTime();Ps(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.xt=function(){this.Ua("CONNECTION_ISSUE")};f.Kt=function(a){this.Ua("heartbeatparams",a)};
f.J=function(){Fn();f1(this);this.Ca&&Og(this.Ca);Og(this.nb);Lh(Rb(this.ka),this.o);this.aa=null;N(this.Wa);c1.G.J.call(this)};var v1=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};ba("yt.uix.widgets_",v1,void 0);function w1(a){a=a.getInstance();var b=Z(a);b in v1||(a.register(),v1[b]=a)};w1(HI);w1(XE);q("yt.tracking.share")||ba("yt.tracking.share",JH,void 0);q("yt.net.ping")||ba("yt.net.ping.send",lf,void 0);q("yt.window.popup")||(ba("yt.window.popup",QH,void 0),ba("yt.window.open",PH,void 0));ba("yt.player.Application.create",c1.create,void 0);var x1=q("ytcsi.tick");x1&&x1("pe");})();
